@atlaskit/media-card 79.5.13 → 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 CHANGED
@@ -1,5 +1,14 @@
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
+
3
12
  ## 79.5.13
4
13
 
5
14
  ### Patch Changes
@@ -927,7 +936,6 @@
927
936
  - [#141583](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/141583)
928
937
  [`ba6def6b9d3ce`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/ba6def6b9d3ce) -
929
938
  Updated Media card and UI to avoid contributing to TTVC metrics
930
-
931
939
  - Media card will always render the `img`, even while it is still loading (in that case, the `img`
932
940
  will just be hidden). It will also use a custom loading spinner with no interaction context.
933
941
  - Media image will allow a null value for the image source. It will also always render the `img`
@@ -3020,7 +3028,6 @@
3020
3028
  - [#4749](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/4749)
3021
3029
  [`ae50a98f18`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ae50a98f18) - ED-9125
3022
3030
  ED-8837 Update styles for selected media cards
3023
-
3024
3031
  - Use editor selection styles from @atlaskit/editor-shared-styles
3025
3032
  - Update UI for selected items in media group to no longer set blue background and tick in corner
3026
3033
  - No longer set set text selection over filename, filesize etc. for media group cards when
@@ -3622,7 +3629,6 @@
3622
3629
 
3623
3630
  Remove namespace imports from React, ReactDom, and PropTypes- Updated dependencies
3624
3631
  [6548261c9a](https://bitbucket.org/atlassian/atlassian-frontend/commits/6548261c9a):
3625
-
3626
3632
  - @atlaskit/docs@8.3.2
3627
3633
  - @atlaskit/analytics-next@6.3.5
3628
3634
  - @atlaskit/button@13.3.7
@@ -3807,7 +3813,6 @@
3807
3813
 
3808
3814
  ED-4359 fix focus being reset on remove mediagroup- Updated dependencies
3809
3815
  [768bac6d81](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/768bac6d81):
3810
-
3811
3816
  - @atlaskit/analytics-next@6.3.2
3812
3817
 
3813
3818
  ## 66.1.0
@@ -3912,7 +3917,6 @@
3912
3917
  > remove deprecated "context" property from media components in favor of "mediaClientConfig"
3913
3918
 
3914
3919
  This affects all public media UI components:
3915
-
3916
3920
  - Card
3917
3921
  - Filmstrip
3918
3922
  - SmartMediaEditor
@@ -4416,7 +4420,6 @@ withAnalyticsEvents<Props>()(Button);
4416
4420
  ### Patch Changes
4417
4421
 
4418
4422
  - [patch][0a313cd541](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/0a313cd541):
4419
-
4420
4423
  - rename AsyncCardState
4421
4424
 
4422
4425
  ## 63.1.2
@@ -4432,14 +4435,12 @@ withAnalyticsEvents<Props>()(Button);
4432
4435
  ## 63.1.1
4433
4436
 
4434
4437
  - [patch][b0ef06c685](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/b0ef06c685):
4435
-
4436
4438
  - This is just a safety release in case anything strange happened in in the previous one. See Pull
4437
4439
  Request #5942 for details
4438
4440
 
4439
4441
  ## 63.1.0
4440
4442
 
4441
4443
  - [minor][a02cbd46c0](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/a02cbd46c0):
4442
-
4443
4444
  - Now you can provide `MediaClientConfig` as `mediaClientConfig` prop to a Card as an alternative
4444
4445
  to Context. This is preferential, since Context prop will be dropped very soon.
4445
4446
 
@@ -4458,13 +4459,11 @@ withAnalyticsEvents<Props>()(Button);
4458
4459
  ## 63.0.4
4459
4460
 
4460
4461
  - [patch][b91590107b](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/b91590107b):
4461
-
4462
4462
  - ED-6178 Fix media wrapper having a transparent background for images
4463
4463
 
4464
4464
  ## 63.0.3
4465
4465
 
4466
4466
  - [patch][a6f27f106a](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/a6f27f106a):
4467
-
4468
4467
  - use componentDidMount in CardLoader to make it SSR hydrate friendly
4469
4468
 
4470
4469
  ## 63.0.2
@@ -4480,13 +4479,11 @@ withAnalyticsEvents<Props>()(Button);
4480
4479
  ## 63.0.1
4481
4480
 
4482
4481
  - [patch][cbc9ff5b6a](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/cbc9ff5b6a):
4483
-
4484
4482
  - Fix support for exif orientation when dropping a picture
4485
4483
 
4486
4484
  ## 63.0.0
4487
4485
 
4488
4486
  - [major][7c17b35107](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/7c17b35107):
4489
-
4490
4487
  - Updates react and react-dom peer dependencies to react@^16.8.0 and react-dom@^16.8.0. To use
4491
4488
  this package, please ensure you use at least this version of react and react-dom.
4492
4489
 
@@ -4531,19 +4528,16 @@ withAnalyticsEvents<Props>()(Button);
4531
4528
  ## 60.0.6
4532
4529
 
4533
4530
  - [patch][d3cad2622e](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/d3cad2622e):
4534
-
4535
4531
  - Removes babel-runtime in favour of @babel/runtime
4536
4532
 
4537
4533
  ## 60.0.5
4538
4534
 
4539
4535
  - [patch][8f17450f46](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/8f17450f46):
4540
-
4541
4536
  - Fix media-card code split from 82kB to 10kB
4542
4537
 
4543
4538
  ## 60.0.4
4544
4539
 
4545
4540
  - [patch][0a4ccaafae](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/0a4ccaafae):
4546
-
4547
4541
  - Bump tslib
4548
4542
 
4549
4543
  ## 60.0.3
@@ -4567,7 +4561,6 @@ withAnalyticsEvents<Props>()(Button);
4567
4561
  ## 60.0.2
4568
4562
 
4569
4563
  - [patch][3f28e6443c](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/3f28e6443c):
4570
-
4571
4564
  - @atlaskit/analytics-next-types is deprecated. Now you can use types for @atlaskit/analytics-next
4572
4565
  supplied from itself.
4573
4566
 
@@ -4595,7 +4588,6 @@ withAnalyticsEvents<Props>()(Button);
4595
4588
  ## 60.0.0
4596
4589
 
4597
4590
  - [major][0ff405bd0f](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/0ff405bd0f):
4598
-
4599
4591
  - Removed CardView and CardViewLoader from public APIs and replaced it with light-weight and
4600
4592
  stateless CardLoading and CardError components. Handling of external images is now done by Card
4601
4593
  component itself using ExternalImageIdentifier interface.
@@ -4640,13 +4632,11 @@ withAnalyticsEvents<Props>()(Button);
4640
4632
  ## 59.1.1
4641
4633
 
4642
4634
  - [patch][d13fad66df](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/d13fad66df):
4643
-
4644
4635
  - Enable esModuleInterop for typescript, this allows correct use of default exports
4645
4636
 
4646
4637
  ## 59.1.0
4647
4638
 
4648
4639
  - [minor][e1c1fa454a](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/e1c1fa454a):
4649
-
4650
4640
  - Support external image identifier in MediaViewer
4651
4641
 
4652
4642
  ## 59.0.0
@@ -4661,37 +4651,31 @@ withAnalyticsEvents<Props>()(Button);
4661
4651
  ## 58.0.1
4662
4652
 
4663
4653
  - [patch][106d046114](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/106d046114):
4664
-
4665
4654
  - Fix issue with media-viewer opening in CC on inline video player controlls clicked
4666
4655
 
4667
4656
  ## 58.0.0
4668
4657
 
4669
4658
  - [major][9c316bd8aa](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/9c316bd8aa):
4670
-
4671
4659
  - Exported MediaImage component is removed from media-card and moved to @atlaskit/media-ui
4672
4660
 
4673
4661
  ## 57.0.3
4674
4662
 
4675
4663
  - [patch][d402fdb775](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/d402fdb775):
4676
-
4677
4664
  - FIX ED-6584: Keep card dataURI regardless of previus state
4678
4665
 
4679
4666
  ## 57.0.2
4680
4667
 
4681
4668
  - [patch][1bcaa1b991](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/1bcaa1b991):
4682
-
4683
4669
  - Add npmignore for index.ts to prevent some jest tests from resolving that instead of index.js
4684
4670
 
4685
4671
  ## 57.0.1
4686
4672
 
4687
4673
  - [patch][9192df506a](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/9192df506a):
4688
-
4689
4674
  - Do not call given onClick if it's a video file and inline video player is enabled
4690
4675
 
4691
4676
  ## 57.0.0
4692
4677
 
4693
4678
  - [major][9d5cc39394](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/9d5cc39394):
4694
-
4695
4679
  - Dropped ES5 distributables from the typescript packages
4696
4680
 
4697
4681
  - Updated dependencies
@@ -4727,14 +4711,12 @@ withAnalyticsEvents<Props>()(Button);
4727
4711
  ## 55.0.4
4728
4712
 
4729
4713
  - [patch][ff3f40bc38](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/ff3f40bc38):
4730
-
4731
4714
  - Fix remove from cache function, which fixes issue when user is deleting recent image in media
4732
4715
  picker
4733
4716
 
4734
4717
  ## 55.0.3
4735
4718
 
4736
4719
  - [patch][3591859b2f](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/3591859b2f):
4737
-
4738
4720
  - use ReactDOM.createPortal to render MediaViewer when shouldOpenMediaViewer=true
4739
4721
 
4740
4722
  ## 55.0.2
@@ -4762,13 +4744,11 @@ withAnalyticsEvents<Props>()(Button);
4762
4744
  ## 55.0.1
4763
4745
 
4764
4746
  - [patch][d18b085e2a](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/d18b085e2a):
4765
-
4766
4747
  - Integrating truly upfront ID
4767
4748
 
4768
4749
  ## 55.0.0
4769
4750
 
4770
4751
  - [patch][6bd4c428e2](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/6bd4c428e2):
4771
-
4772
4752
  - load image preview as soon representation is present instead of waiting for file status to be
4773
4753
  processed
4774
4754
 
@@ -4781,14 +4761,12 @@ withAnalyticsEvents<Props>()(Button);
4781
4761
  ## 54.1.0
4782
4762
 
4783
4763
  - [minor][eda74c4dce](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/eda74c4dce):
4784
-
4785
4764
  - Add shouldOpenMediaViewer + mediaViewerDataSource optional props to Card api to simplify
4786
4765
  MediaViewer integration
4787
4766
 
4788
4767
  ## 54.0.0
4789
4768
 
4790
4769
  - [major][190c4b7bd3](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/190c4b7bd3):
4791
-
4792
4770
  - Remove Identifier type + related utilities and use the one from media-core
4793
4771
 
4794
4772
  - Updated dependencies
@@ -4800,26 +4778,22 @@ withAnalyticsEvents<Props>()(Button);
4800
4778
  ## 53.0.0
4801
4779
 
4802
4780
  - [major][46dfcfbeca](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/46dfcfbeca):
4803
-
4804
4781
  - remove Link support from media-card
4805
4782
 
4806
4783
  ## 52.0.7
4807
4784
 
4808
4785
  - [patch][ab6ba14cd3](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/ab6ba14cd3):
4809
-
4810
4786
  - Fix a bug where droping image with EXIF orientation >= 5 end up screwing up proportions for some
4811
4787
  of the cases
4812
4788
 
4813
4789
  ## 52.0.6
4814
4790
 
4815
4791
  - [patch][05c5bf7a93](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/05c5bf7a93):
4816
-
4817
4792
  - Dont user pointer cursor for external images in Cards
4818
4793
 
4819
4794
  ## 52.0.5
4820
4795
 
4821
4796
  - [patch][c415876da9](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/c415876da9):
4822
-
4823
4797
  - add selected state to InlinePlayer in media-card
4824
4798
 
4825
4799
  ## 52.0.4
@@ -4832,19 +4806,16 @@ withAnalyticsEvents<Props>()(Button);
4832
4806
  ## 52.0.3
4833
4807
 
4834
4808
  - [patch][ef469cbb0b](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/ef469cbb0b):
4835
-
4836
4809
  - MS-357 replaced @atlaskit/util-shared-styles from media components by @atlaskit/theme
4837
4810
 
4838
4811
  ## 52.0.2
4839
4812
 
4840
4813
  - [patch][0e164e542a](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/0e164e542a):
4841
-
4842
4814
  - MS-1465: Dont fetch file preview if we already have a local one
4843
4815
 
4844
4816
  ## 52.0.1
4845
4817
 
4846
4818
  - [patch][1d3e336534](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/1d3e336534):
4847
-
4848
4819
  - Show progress bar while file is uploading
4849
4820
 
4850
4821
  ## 52.0.0
@@ -4858,7 +4829,6 @@ withAnalyticsEvents<Props>()(Button);
4858
4829
  ## 51.0.3
4859
4830
 
4860
4831
  - [patch][a3f8e527aa](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/a3f8e527aa):
4861
-
4862
4832
  - Take into account if image is on it's side according to orientation tag when deciding how to
4863
4833
  crop/fit and image
4864
4834
 
@@ -4888,7 +4858,6 @@ withAnalyticsEvents<Props>()(Button);
4888
4858
  ## 51.0.0
4889
4859
 
4890
4860
  - [patch][b1627a5837](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/b1627a5837):
4891
-
4892
4861
  - Enable inline video player in Editor and Renderer
4893
4862
 
4894
4863
  - Updated dependencies
@@ -4900,7 +4869,6 @@ withAnalyticsEvents<Props>()(Button);
4900
4869
  ## 50.0.0
4901
4870
 
4902
4871
  - [patch][5b1e270](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/5b1e270):
4903
-
4904
4872
  - Minor bug fixes
4905
4873
 
4906
4874
  - Updated dependencies [dadef80](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/dadef80):
@@ -4918,7 +4886,6 @@ withAnalyticsEvents<Props>()(Button);
4918
4886
  ## 48.0.0
4919
4887
 
4920
4888
  - [minor][72d37fb](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/72d37fb):
4921
-
4922
4889
  - Remove deprecated methods from media-core
4923
4890
  - Use context.collection methods in MediaViewer
4924
4891
  - Remove link support from media-card
@@ -4934,13 +4901,11 @@ withAnalyticsEvents<Props>()(Button);
4934
4901
  ## 47.0.0
4935
4902
 
4936
4903
  - [major][135ed00](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/135ed00):
4937
-
4938
4904
  - remove "small" appearance from media-card
4939
4905
 
4940
4906
  ## 46.0.1
4941
4907
 
4942
4908
  - [patch][ca16fa9](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/ca16fa9):
4943
-
4944
4909
  - Add SSR support to media components
4945
4910
 
4946
4911
  ## 46.0.0
@@ -4952,7 +4917,6 @@ withAnalyticsEvents<Props>()(Button);
4952
4917
  ## 45.0.0
4953
4918
 
4954
4919
  - [minor][b5ab1a5](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/b5ab1a5):
4955
-
4956
4920
  - Add stretch as a prop for CardContent and MediaImage; Convert new stretchy-fit resizeMode to
4957
4921
  stretch=true;
4958
4922
 
@@ -4963,13 +4927,11 @@ withAnalyticsEvents<Props>()(Button);
4963
4927
  ## 44.2.0
4964
4928
 
4965
4929
  - [minor][34369e4](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/34369e4):
4966
-
4967
4930
  - ED-5888 Add dark mode for media-card
4968
4931
 
4969
4932
  ## 44.1.4
4970
4933
 
4971
4934
  - [patch][6f44079](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/6f44079):
4972
-
4973
4935
  - ED-5612: make image preview display correctly after replacing Card props
4974
4936
 
4975
4937
  ## 44.1.3
@@ -4991,20 +4953,17 @@ withAnalyticsEvents<Props>()(Button);
4991
4953
  ## 44.1.2
4992
4954
 
4993
4955
  - [patch][676257b](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/676257b):
4994
-
4995
4956
  - Prepare/fix card to be displayed as video inline player in renderer/editor contexts
4996
4957
 
4997
4958
  ## 44.1.1
4998
4959
 
4999
4960
  - [patch][5de3574](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/5de3574):
5000
-
5001
4961
  - CustomVideoPlayer is now CustomMediaPlayer and supports audio through type property. Media
5002
4962
  Viewer now uses custom audio player for audio everywhere except IE11.
5003
4963
 
5004
4964
  ## 44.1.0
5005
4965
 
5006
4966
  - [minor][c1ea81c](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/c1ea81c):
5007
-
5008
4967
  - use custom video player for inline video in media-card
5009
4968
 
5010
4969
  ## 44.0.2
@@ -5045,7 +5004,6 @@ withAnalyticsEvents<Props>()(Button);
5045
5004
  ## 43.0.0
5046
5005
 
5047
5006
  - [minor][2c21466](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/2c21466):
5048
-
5049
5007
  - Allow to inline play video files in media-card
5050
5008
 
5051
5009
  - Updated dependencies [2c21466](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/2c21466):
@@ -5055,25 +5013,21 @@ withAnalyticsEvents<Props>()(Button);
5055
5013
  ## 42.0.0
5056
5014
 
5057
5015
  - [major][04c7192](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/04c7192):
5058
-
5059
5016
  - remove CardList component from media-card
5060
5017
 
5061
5018
  ## 41.4.0
5062
5019
 
5063
5020
  - [minor][abef80b](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/abef80b):
5064
-
5065
5021
  - ED-5527: apply max-width: 100% and pass container size to Card as dimension
5066
5022
 
5067
5023
  ## 41.3.0
5068
5024
 
5069
5025
  - [minor][4718333](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/4718333):
5070
-
5071
5026
  - Add play icon for video files in MediaCard
5072
5027
 
5073
5028
  ## 41.2.0
5074
5029
 
5075
5030
  - [minor][439dde6](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/439dde6" d):
5076
-
5077
5031
  - rotate local image preview in cards based on the file orientation
5078
5032
 
5079
5033
  ## 41.1.2
@@ -87,6 +87,7 @@ var ImageRenderer = exports.ImageRenderer = function ImageRenderer(_ref) {
87
87
  "data-resizemode": resizeMode,
88
88
  "data-source": cardPreview.source,
89
89
  src: cardPreview.dataURI,
90
+ srcSet: cardPreview.srcSet,
90
91
  alt: alt,
91
92
  onLoad: onLoad,
92
93
  onError: onError,
@@ -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, {
@@ -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,7 +75,7 @@ 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", mediaCardCursor && cursorStyleMap[mediaCardCursor], wrapperShadowKey && shadowStyleMap[wrapperShadowKey], selected && "_1p1y1j28 _1rk81j28 _14r11j28 _1np21j28", isPlayButtonClickable && "_1y898vuz _19zy8vuz", isTickBoxSelectable && "_1yf91flm _1xp5rcbj", shouldDisplayTooltip && "_9m3z1osq _10pb1osq", _cardConstants.newFileExperienceClassName]),
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
81
  onClick: onClick
@@ -87,7 +83,7 @@ var Wrapper = exports.Wrapper = function Wrapper(props) {
87
83
  ,
88
84
  onMouseEnter: onMouseEnter
89
85
  }, _vcMedia.VcMediaWrapperProps, {
90
- 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))), {}, {
91
87
  "--_1jkcdu5": (0, _runtime.ix)("var(--ds-background-neutral, ".concat(_colors.N20, ")")),
92
88
  "--_mt8cm6": (0, _runtime.ix)("var(--ds-background-input, ".concat(_colors.N0, ")")),
93
89
  "--_13xf2t5": (0, _runtime.ix)("var(--ds-icon-subtle, ".concat(_colors.N100, ")"))
@@ -67,6 +67,7 @@ export const ImageRenderer = ({
67
67
  "data-resizemode": resizeMode,
68
68
  "data-source": cardPreview.source,
69
69
  src: cardPreview.dataURI,
70
+ srcSet: cardPreview.srcSet,
70
71
  alt: alt,
71
72
  onLoad: onLoad,
72
73
  onError: onError,
@@ -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, {
@@ -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,11 +71,12 @@ 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", mediaCardCursor && cursorStyleMap[mediaCardCursor], wrapperShadowKey && shadowStyleMap[wrapperShadowKey], selected && "_1p1y1j28 _1rk81j28 _14r11j28 _1np21j28", isPlayButtonClickable && "_1y898vuz _19zy8vuz", isTickBoxSelectable && "_1yf91j9a _1xp5kufk", shouldDisplayTooltip && "_9m3z1osq _10pb1osq", newFileExperienceClassName]),
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
  },
@@ -78,6 +78,7 @@ export var ImageRenderer = function ImageRenderer(_ref) {
78
78
  "data-resizemode": resizeMode,
79
79
  "data-source": cardPreview.source,
80
80
  src: cardPreview.dataURI,
81
+ srcSet: cardPreview.srcSet,
81
82
  alt: alt,
82
83
  onLoad: onLoad,
83
84
  onError: onError,
@@ -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, {
@@ -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,7 +66,7 @@ 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", mediaCardCursor && cursorStyleMap[mediaCardCursor], wrapperShadowKey && shadowStyleMap[wrapperShadowKey], selected && "_1p1y1j28 _1rk81j28 _14r11j28 _1np21j28", isPlayButtonClickable && "_1y898vuz _19zy8vuz", isTickBoxSelectable && "_1yf91flm _1xp5rcbj", shouldDisplayTooltip && "_9m3z1osq _10pb1osq", newFileExperienceClassName]),
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
72
  onClick: onClick
@@ -78,7 +74,7 @@ export var Wrapper = function Wrapper(props) {
78
74
  ,
79
75
  onMouseEnter: onMouseEnter
80
76
  }, VcMediaWrapperProps, {
81
- 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))), {}, {
82
78
  "--_1jkcdu5": ix("var(--ds-background-neutral, ".concat(N20, ")")),
83
79
  "--_mt8cm6": ix("var(--ds-background-input, ".concat(N0, ")")),
84
80
  "--_13xf2t5": ix("var(--ds-icon-subtle, ".concat(N100, ")"))
@@ -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.13",
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/"
@@ -45,7 +45,7 @@
45
45
  "@atlaskit/media-viewer": "^52.4.0",
46
46
  "@atlaskit/platform-feature-flags": "^1.1.0",
47
47
  "@atlaskit/primitives": "^15.0.0",
48
- "@atlaskit/react-ufo": "^4.11.0",
48
+ "@atlaskit/react-ufo": "^4.12.0",
49
49
  "@atlaskit/spinner": "^19.0.0",
50
50
  "@atlaskit/theme": "^21.0.0",
51
51
  "@atlaskit/tokens": "^6.5.0",
@@ -53,7 +53,7 @@
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.3",
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",