@atlaskit/media-card 79.5.13 → 79.5.15

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,20 @@
1
1
  # @atlaskit/media-card
2
2
 
3
+ ## 79.5.15
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 79.5.14
10
+
11
+ ### Patch Changes
12
+
13
+ - [`eec573b4a7a6a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/eec573b4a7a6a) -
14
+ Moving the cursor styles from class based to inline styles to avoid VC offense and removing hidden
15
+ Titlebox hack implemented previously for VC removal
16
+ - Updated dependencies
17
+
3
18
  ## 79.5.13
4
19
 
5
20
  ### Patch Changes
@@ -927,7 +942,6 @@
927
942
  - [#141583](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/141583)
928
943
  [`ba6def6b9d3ce`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/ba6def6b9d3ce) -
929
944
  Updated Media card and UI to avoid contributing to TTVC metrics
930
-
931
945
  - Media card will always render the `img`, even while it is still loading (in that case, the `img`
932
946
  will just be hidden). It will also use a custom loading spinner with no interaction context.
933
947
  - Media image will allow a null value for the image source. It will also always render the `img`
@@ -3020,7 +3034,6 @@
3020
3034
  - [#4749](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/4749)
3021
3035
  [`ae50a98f18`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ae50a98f18) - ED-9125
3022
3036
  ED-8837 Update styles for selected media cards
3023
-
3024
3037
  - Use editor selection styles from @atlaskit/editor-shared-styles
3025
3038
  - Update UI for selected items in media group to no longer set blue background and tick in corner
3026
3039
  - No longer set set text selection over filename, filesize etc. for media group cards when
@@ -3622,7 +3635,6 @@
3622
3635
 
3623
3636
  Remove namespace imports from React, ReactDom, and PropTypes- Updated dependencies
3624
3637
  [6548261c9a](https://bitbucket.org/atlassian/atlassian-frontend/commits/6548261c9a):
3625
-
3626
3638
  - @atlaskit/docs@8.3.2
3627
3639
  - @atlaskit/analytics-next@6.3.5
3628
3640
  - @atlaskit/button@13.3.7
@@ -3807,7 +3819,6 @@
3807
3819
 
3808
3820
  ED-4359 fix focus being reset on remove mediagroup- Updated dependencies
3809
3821
  [768bac6d81](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/768bac6d81):
3810
-
3811
3822
  - @atlaskit/analytics-next@6.3.2
3812
3823
 
3813
3824
  ## 66.1.0
@@ -3912,7 +3923,6 @@
3912
3923
  > remove deprecated "context" property from media components in favor of "mediaClientConfig"
3913
3924
 
3914
3925
  This affects all public media UI components:
3915
-
3916
3926
  - Card
3917
3927
  - Filmstrip
3918
3928
  - SmartMediaEditor
@@ -4416,7 +4426,6 @@ withAnalyticsEvents<Props>()(Button);
4416
4426
  ### Patch Changes
4417
4427
 
4418
4428
  - [patch][0a313cd541](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/0a313cd541):
4419
-
4420
4429
  - rename AsyncCardState
4421
4430
 
4422
4431
  ## 63.1.2
@@ -4432,14 +4441,12 @@ withAnalyticsEvents<Props>()(Button);
4432
4441
  ## 63.1.1
4433
4442
 
4434
4443
  - [patch][b0ef06c685](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/b0ef06c685):
4435
-
4436
4444
  - This is just a safety release in case anything strange happened in in the previous one. See Pull
4437
4445
  Request #5942 for details
4438
4446
 
4439
4447
  ## 63.1.0
4440
4448
 
4441
4449
  - [minor][a02cbd46c0](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/a02cbd46c0):
4442
-
4443
4450
  - Now you can provide `MediaClientConfig` as `mediaClientConfig` prop to a Card as an alternative
4444
4451
  to Context. This is preferential, since Context prop will be dropped very soon.
4445
4452
 
@@ -4458,13 +4465,11 @@ withAnalyticsEvents<Props>()(Button);
4458
4465
  ## 63.0.4
4459
4466
 
4460
4467
  - [patch][b91590107b](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/b91590107b):
4461
-
4462
4468
  - ED-6178 Fix media wrapper having a transparent background for images
4463
4469
 
4464
4470
  ## 63.0.3
4465
4471
 
4466
4472
  - [patch][a6f27f106a](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/a6f27f106a):
4467
-
4468
4473
  - use componentDidMount in CardLoader to make it SSR hydrate friendly
4469
4474
 
4470
4475
  ## 63.0.2
@@ -4480,13 +4485,11 @@ withAnalyticsEvents<Props>()(Button);
4480
4485
  ## 63.0.1
4481
4486
 
4482
4487
  - [patch][cbc9ff5b6a](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/cbc9ff5b6a):
4483
-
4484
4488
  - Fix support for exif orientation when dropping a picture
4485
4489
 
4486
4490
  ## 63.0.0
4487
4491
 
4488
4492
  - [major][7c17b35107](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/7c17b35107):
4489
-
4490
4493
  - Updates react and react-dom peer dependencies to react@^16.8.0 and react-dom@^16.8.0. To use
4491
4494
  this package, please ensure you use at least this version of react and react-dom.
4492
4495
 
@@ -4531,19 +4534,16 @@ withAnalyticsEvents<Props>()(Button);
4531
4534
  ## 60.0.6
4532
4535
 
4533
4536
  - [patch][d3cad2622e](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/d3cad2622e):
4534
-
4535
4537
  - Removes babel-runtime in favour of @babel/runtime
4536
4538
 
4537
4539
  ## 60.0.5
4538
4540
 
4539
4541
  - [patch][8f17450f46](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/8f17450f46):
4540
-
4541
4542
  - Fix media-card code split from 82kB to 10kB
4542
4543
 
4543
4544
  ## 60.0.4
4544
4545
 
4545
4546
  - [patch][0a4ccaafae](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/0a4ccaafae):
4546
-
4547
4547
  - Bump tslib
4548
4548
 
4549
4549
  ## 60.0.3
@@ -4567,7 +4567,6 @@ withAnalyticsEvents<Props>()(Button);
4567
4567
  ## 60.0.2
4568
4568
 
4569
4569
  - [patch][3f28e6443c](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/3f28e6443c):
4570
-
4571
4570
  - @atlaskit/analytics-next-types is deprecated. Now you can use types for @atlaskit/analytics-next
4572
4571
  supplied from itself.
4573
4572
 
@@ -4595,7 +4594,6 @@ withAnalyticsEvents<Props>()(Button);
4595
4594
  ## 60.0.0
4596
4595
 
4597
4596
  - [major][0ff405bd0f](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/0ff405bd0f):
4598
-
4599
4597
  - Removed CardView and CardViewLoader from public APIs and replaced it with light-weight and
4600
4598
  stateless CardLoading and CardError components. Handling of external images is now done by Card
4601
4599
  component itself using ExternalImageIdentifier interface.
@@ -4640,13 +4638,11 @@ withAnalyticsEvents<Props>()(Button);
4640
4638
  ## 59.1.1
4641
4639
 
4642
4640
  - [patch][d13fad66df](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/d13fad66df):
4643
-
4644
4641
  - Enable esModuleInterop for typescript, this allows correct use of default exports
4645
4642
 
4646
4643
  ## 59.1.0
4647
4644
 
4648
4645
  - [minor][e1c1fa454a](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/e1c1fa454a):
4649
-
4650
4646
  - Support external image identifier in MediaViewer
4651
4647
 
4652
4648
  ## 59.0.0
@@ -4661,37 +4657,31 @@ withAnalyticsEvents<Props>()(Button);
4661
4657
  ## 58.0.1
4662
4658
 
4663
4659
  - [patch][106d046114](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/106d046114):
4664
-
4665
4660
  - Fix issue with media-viewer opening in CC on inline video player controlls clicked
4666
4661
 
4667
4662
  ## 58.0.0
4668
4663
 
4669
4664
  - [major][9c316bd8aa](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/9c316bd8aa):
4670
-
4671
4665
  - Exported MediaImage component is removed from media-card and moved to @atlaskit/media-ui
4672
4666
 
4673
4667
  ## 57.0.3
4674
4668
 
4675
4669
  - [patch][d402fdb775](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/d402fdb775):
4676
-
4677
4670
  - FIX ED-6584: Keep card dataURI regardless of previus state
4678
4671
 
4679
4672
  ## 57.0.2
4680
4673
 
4681
4674
  - [patch][1bcaa1b991](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/1bcaa1b991):
4682
-
4683
4675
  - Add npmignore for index.ts to prevent some jest tests from resolving that instead of index.js
4684
4676
 
4685
4677
  ## 57.0.1
4686
4678
 
4687
4679
  - [patch][9192df506a](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/9192df506a):
4688
-
4689
4680
  - Do not call given onClick if it's a video file and inline video player is enabled
4690
4681
 
4691
4682
  ## 57.0.0
4692
4683
 
4693
4684
  - [major][9d5cc39394](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/9d5cc39394):
4694
-
4695
4685
  - Dropped ES5 distributables from the typescript packages
4696
4686
 
4697
4687
  - Updated dependencies
@@ -4727,14 +4717,12 @@ withAnalyticsEvents<Props>()(Button);
4727
4717
  ## 55.0.4
4728
4718
 
4729
4719
  - [patch][ff3f40bc38](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/ff3f40bc38):
4730
-
4731
4720
  - Fix remove from cache function, which fixes issue when user is deleting recent image in media
4732
4721
  picker
4733
4722
 
4734
4723
  ## 55.0.3
4735
4724
 
4736
4725
  - [patch][3591859b2f](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/3591859b2f):
4737
-
4738
4726
  - use ReactDOM.createPortal to render MediaViewer when shouldOpenMediaViewer=true
4739
4727
 
4740
4728
  ## 55.0.2
@@ -4762,13 +4750,11 @@ withAnalyticsEvents<Props>()(Button);
4762
4750
  ## 55.0.1
4763
4751
 
4764
4752
  - [patch][d18b085e2a](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/d18b085e2a):
4765
-
4766
4753
  - Integrating truly upfront ID
4767
4754
 
4768
4755
  ## 55.0.0
4769
4756
 
4770
4757
  - [patch][6bd4c428e2](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/6bd4c428e2):
4771
-
4772
4758
  - load image preview as soon representation is present instead of waiting for file status to be
4773
4759
  processed
4774
4760
 
@@ -4781,14 +4767,12 @@ withAnalyticsEvents<Props>()(Button);
4781
4767
  ## 54.1.0
4782
4768
 
4783
4769
  - [minor][eda74c4dce](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/eda74c4dce):
4784
-
4785
4770
  - Add shouldOpenMediaViewer + mediaViewerDataSource optional props to Card api to simplify
4786
4771
  MediaViewer integration
4787
4772
 
4788
4773
  ## 54.0.0
4789
4774
 
4790
4775
  - [major][190c4b7bd3](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/190c4b7bd3):
4791
-
4792
4776
  - Remove Identifier type + related utilities and use the one from media-core
4793
4777
 
4794
4778
  - Updated dependencies
@@ -4800,26 +4784,22 @@ withAnalyticsEvents<Props>()(Button);
4800
4784
  ## 53.0.0
4801
4785
 
4802
4786
  - [major][46dfcfbeca](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/46dfcfbeca):
4803
-
4804
4787
  - remove Link support from media-card
4805
4788
 
4806
4789
  ## 52.0.7
4807
4790
 
4808
4791
  - [patch][ab6ba14cd3](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/ab6ba14cd3):
4809
-
4810
4792
  - Fix a bug where droping image with EXIF orientation >= 5 end up screwing up proportions for some
4811
4793
  of the cases
4812
4794
 
4813
4795
  ## 52.0.6
4814
4796
 
4815
4797
  - [patch][05c5bf7a93](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/05c5bf7a93):
4816
-
4817
4798
  - Dont user pointer cursor for external images in Cards
4818
4799
 
4819
4800
  ## 52.0.5
4820
4801
 
4821
4802
  - [patch][c415876da9](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/c415876da9):
4822
-
4823
4803
  - add selected state to InlinePlayer in media-card
4824
4804
 
4825
4805
  ## 52.0.4
@@ -4832,19 +4812,16 @@ withAnalyticsEvents<Props>()(Button);
4832
4812
  ## 52.0.3
4833
4813
 
4834
4814
  - [patch][ef469cbb0b](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/ef469cbb0b):
4835
-
4836
4815
  - MS-357 replaced @atlaskit/util-shared-styles from media components by @atlaskit/theme
4837
4816
 
4838
4817
  ## 52.0.2
4839
4818
 
4840
4819
  - [patch][0e164e542a](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/0e164e542a):
4841
-
4842
4820
  - MS-1465: Dont fetch file preview if we already have a local one
4843
4821
 
4844
4822
  ## 52.0.1
4845
4823
 
4846
4824
  - [patch][1d3e336534](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/1d3e336534):
4847
-
4848
4825
  - Show progress bar while file is uploading
4849
4826
 
4850
4827
  ## 52.0.0
@@ -4858,7 +4835,6 @@ withAnalyticsEvents<Props>()(Button);
4858
4835
  ## 51.0.3
4859
4836
 
4860
4837
  - [patch][a3f8e527aa](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/a3f8e527aa):
4861
-
4862
4838
  - Take into account if image is on it's side according to orientation tag when deciding how to
4863
4839
  crop/fit and image
4864
4840
 
@@ -4888,7 +4864,6 @@ withAnalyticsEvents<Props>()(Button);
4888
4864
  ## 51.0.0
4889
4865
 
4890
4866
  - [patch][b1627a5837](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/b1627a5837):
4891
-
4892
4867
  - Enable inline video player in Editor and Renderer
4893
4868
 
4894
4869
  - Updated dependencies
@@ -4900,7 +4875,6 @@ withAnalyticsEvents<Props>()(Button);
4900
4875
  ## 50.0.0
4901
4876
 
4902
4877
  - [patch][5b1e270](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/5b1e270):
4903
-
4904
4878
  - Minor bug fixes
4905
4879
 
4906
4880
  - Updated dependencies [dadef80](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/dadef80):
@@ -4918,7 +4892,6 @@ withAnalyticsEvents<Props>()(Button);
4918
4892
  ## 48.0.0
4919
4893
 
4920
4894
  - [minor][72d37fb](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/72d37fb):
4921
-
4922
4895
  - Remove deprecated methods from media-core
4923
4896
  - Use context.collection methods in MediaViewer
4924
4897
  - Remove link support from media-card
@@ -4934,13 +4907,11 @@ withAnalyticsEvents<Props>()(Button);
4934
4907
  ## 47.0.0
4935
4908
 
4936
4909
  - [major][135ed00](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/135ed00):
4937
-
4938
4910
  - remove "small" appearance from media-card
4939
4911
 
4940
4912
  ## 46.0.1
4941
4913
 
4942
4914
  - [patch][ca16fa9](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/ca16fa9):
4943
-
4944
4915
  - Add SSR support to media components
4945
4916
 
4946
4917
  ## 46.0.0
@@ -4952,7 +4923,6 @@ withAnalyticsEvents<Props>()(Button);
4952
4923
  ## 45.0.0
4953
4924
 
4954
4925
  - [minor][b5ab1a5](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/b5ab1a5):
4955
-
4956
4926
  - Add stretch as a prop for CardContent and MediaImage; Convert new stretchy-fit resizeMode to
4957
4927
  stretch=true;
4958
4928
 
@@ -4963,13 +4933,11 @@ withAnalyticsEvents<Props>()(Button);
4963
4933
  ## 44.2.0
4964
4934
 
4965
4935
  - [minor][34369e4](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/34369e4):
4966
-
4967
4936
  - ED-5888 Add dark mode for media-card
4968
4937
 
4969
4938
  ## 44.1.4
4970
4939
 
4971
4940
  - [patch][6f44079](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/6f44079):
4972
-
4973
4941
  - ED-5612: make image preview display correctly after replacing Card props
4974
4942
 
4975
4943
  ## 44.1.3
@@ -4991,20 +4959,17 @@ withAnalyticsEvents<Props>()(Button);
4991
4959
  ## 44.1.2
4992
4960
 
4993
4961
  - [patch][676257b](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/676257b):
4994
-
4995
4962
  - Prepare/fix card to be displayed as video inline player in renderer/editor contexts
4996
4963
 
4997
4964
  ## 44.1.1
4998
4965
 
4999
4966
  - [patch][5de3574](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/5de3574):
5000
-
5001
4967
  - CustomVideoPlayer is now CustomMediaPlayer and supports audio through type property. Media
5002
4968
  Viewer now uses custom audio player for audio everywhere except IE11.
5003
4969
 
5004
4970
  ## 44.1.0
5005
4971
 
5006
4972
  - [minor][c1ea81c](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/c1ea81c):
5007
-
5008
4973
  - use custom video player for inline video in media-card
5009
4974
 
5010
4975
  ## 44.0.2
@@ -5045,7 +5010,6 @@ withAnalyticsEvents<Props>()(Button);
5045
5010
  ## 43.0.0
5046
5011
 
5047
5012
  - [minor][2c21466](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/2c21466):
5048
-
5049
5013
  - Allow to inline play video files in media-card
5050
5014
 
5051
5015
  - Updated dependencies [2c21466](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/2c21466):
@@ -5055,25 +5019,21 @@ withAnalyticsEvents<Props>()(Button);
5055
5019
  ## 42.0.0
5056
5020
 
5057
5021
  - [major][04c7192](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/04c7192):
5058
-
5059
5022
  - remove CardList component from media-card
5060
5023
 
5061
5024
  ## 41.4.0
5062
5025
 
5063
5026
  - [minor][abef80b](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/abef80b):
5064
-
5065
5027
  - ED-5527: apply max-width: 100% and pass container size to Card as dimension
5066
5028
 
5067
5029
  ## 41.3.0
5068
5030
 
5069
5031
  - [minor][4718333](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/4718333):
5070
-
5071
5032
  - Add play icon for video files in MediaCard
5072
5033
 
5073
5034
  ## 41.2.0
5074
5035
 
5075
5036
  - [minor][439dde6](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/439dde6" d):
5076
-
5077
5037
  - rotate local image preview in cards based on the file orientation
5078
5038
 
5079
5039
  ## 41.1.2
@@ -20,7 +20,7 @@ var _label = _interopRequireDefault(require("@atlaskit/react-ufo/label"));
20
20
  var _excluded = ["identifier"];
21
21
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
22
22
  var packageName = "@atlaskit/media-card";
23
- var packageVersion = "0.0.0-development";
23
+ var packageVersion = "79.5.14";
24
24
  var CardBase = exports.CardBase = function CardBase(_ref) {
25
25
  var identifier = _ref.identifier,
26
26
  otherProps = (0, _objectWithoutProperties2.default)(_ref, _excluded);
@@ -87,7 +87,7 @@ var WrappedMediaCardAnalyticsErrorBoundary = /*#__PURE__*/function (_React$Compo
87
87
  }(_react.default.Component);
88
88
  (0, _defineProperty2.default)(WrappedMediaCardAnalyticsErrorBoundary, "displayName", 'MediaCardAnalyticsErrorBoundary');
89
89
  var packageName = "@atlaskit/media-card";
90
- var packageVersion = "0.0.0-development";
90
+ var packageVersion = "79.5.14";
91
91
 
92
92
  // @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
93
93
  var MediaCardAnalyticsErrorBoundary = (0, _mediaCommon.withMediaAnalyticsContext)({
@@ -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, ")"))
@@ -116,7 +116,7 @@ var MediaInlineCardLoader = exports.default = /*#__PURE__*/function (_React$Pure
116
116
  ErrorBoundary = _this$state.ErrorBoundary;
117
117
  var analyticsContext = {
118
118
  packageVersion: "@atlaskit/media-card",
119
- packageName: "0.0.0-development",
119
+ packageName: "79.5.14",
120
120
  componentName: 'mediaInlineCard',
121
121
  component: 'mediaInlineCard'
122
122
  };
@@ -15,7 +15,7 @@ var _mediaClient = require("@atlaskit/media-client");
15
15
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
16
16
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
17
17
  var packageName = "@atlaskit/media-card";
18
- var packageVersion = "0.0.0-development";
18
+ var packageVersion = "79.5.14";
19
19
  var SAMPLE_RATE = 0.05;
20
20
  var concurrentExperience;
21
21
  var getExperience = function getExperience(id) {
@@ -9,7 +9,7 @@ import { startResourceObserver, setAnalyticsContext } from '../utils/mediaPerfor
9
9
  import { useAnalyticsEvents } from '@atlaskit/analytics-next';
10
10
  import UFOLabel from '@atlaskit/react-ufo/label';
11
11
  const packageName = "@atlaskit/media-card";
12
- const packageVersion = "0.0.0-development";
12
+ const packageVersion = "79.5.14";
13
13
  export const CardBase = ({
14
14
  identifier,
15
15
  ...otherProps
@@ -66,7 +66,7 @@ class WrappedMediaCardAnalyticsErrorBoundary extends React.Component {
66
66
  }
67
67
  _defineProperty(WrappedMediaCardAnalyticsErrorBoundary, "displayName", 'MediaCardAnalyticsErrorBoundary');
68
68
  const packageName = "@atlaskit/media-card";
69
- const packageVersion = "0.0.0-development";
69
+ const packageVersion = "79.5.14";
70
70
 
71
71
  // @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
72
72
  const MediaCardAnalyticsErrorBoundary = withMediaAnalyticsContext({
@@ -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
  },
@@ -37,7 +37,7 @@ export default class MediaInlineCardLoader extends React.PureComponent {
37
37
  } = this.state;
38
38
  const analyticsContext = {
39
39
  packageVersion: "@atlaskit/media-card",
40
- packageName: "0.0.0-development",
40
+ packageName: "79.5.14",
41
41
  componentName: 'mediaInlineCard',
42
42
  component: 'mediaInlineCard'
43
43
  };
@@ -5,7 +5,7 @@ import { extractErrorInfo, getRenderErrorRequestMetadata } from './analytics';
5
5
  import { MediaCardError } from '../errors';
6
6
  import { getMediaEnvironment, getMediaRegion } from '@atlaskit/media-client';
7
7
  const packageName = "@atlaskit/media-card";
8
- const packageVersion = "0.0.0-development";
8
+ const packageVersion = "79.5.14";
9
9
  const SAMPLE_RATE = 0.05;
10
10
  let concurrentExperience;
11
11
  const getExperience = id => {
@@ -11,7 +11,7 @@ import { startResourceObserver, setAnalyticsContext } from '../utils/mediaPerfor
11
11
  import { useAnalyticsEvents } from '@atlaskit/analytics-next';
12
12
  import UFOLabel from '@atlaskit/react-ufo/label';
13
13
  var packageName = "@atlaskit/media-card";
14
- var packageVersion = "0.0.0-development";
14
+ var packageVersion = "79.5.14";
15
15
  export var CardBase = function CardBase(_ref) {
16
16
  var identifier = _ref.identifier,
17
17
  otherProps = _objectWithoutProperties(_ref, _excluded);
@@ -80,7 +80,7 @@ var WrappedMediaCardAnalyticsErrorBoundary = /*#__PURE__*/function (_React$Compo
80
80
  }(React.Component);
81
81
  _defineProperty(WrappedMediaCardAnalyticsErrorBoundary, "displayName", 'MediaCardAnalyticsErrorBoundary');
82
82
  var packageName = "@atlaskit/media-card";
83
- var packageVersion = "0.0.0-development";
83
+ var packageVersion = "79.5.14";
84
84
 
85
85
  // @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
86
86
  var MediaCardAnalyticsErrorBoundary = withMediaAnalyticsContext({
@@ -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, ")"))
@@ -101,7 +101,7 @@ var MediaInlineCardLoader = /*#__PURE__*/function (_React$PureComponent) {
101
101
  ErrorBoundary = _this$state.ErrorBoundary;
102
102
  var analyticsContext = {
103
103
  packageVersion: "@atlaskit/media-card",
104
- packageName: "0.0.0-development",
104
+ packageName: "79.5.14",
105
105
  componentName: 'mediaInlineCard',
106
106
  component: 'mediaInlineCard'
107
107
  };
@@ -8,7 +8,7 @@ import { extractErrorInfo, getRenderErrorRequestMetadata } from './analytics';
8
8
  import { MediaCardError } from '../errors';
9
9
  import { getMediaEnvironment, getMediaRegion } from '@atlaskit/media-client';
10
10
  var packageName = "@atlaskit/media-card";
11
- var packageVersion = "0.0.0-development";
11
+ var packageVersion = "79.5.14";
12
12
  var SAMPLE_RATE = 0.05;
13
13
  var concurrentExperience;
14
14
  var getExperience = function getExperience(id) {
@@ -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.15",
4
4
  "description": "Includes all media card related components, CardView, CardViewSmall, Card...",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -45,15 +45,15 @@
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
- "@atlaskit/tokens": "^6.5.0",
51
+ "@atlaskit/tokens": "^7.0.0",
52
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.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",