@atlaskit/media-card 74.8.1 → 75.0.1

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.
Files changed (156) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/cjs/card/card.js +2 -7
  3. package/dist/cjs/card/media-card-analytics-error-boundary.js +1 -1
  4. package/dist/cjs/card/styles/index.js +1 -7
  5. package/dist/cjs/inline/mediaInlineAnalyticsErrorBoundary.js +1 -1
  6. package/dist/cjs/inline/mediaInlineCard.js +12 -21
  7. package/dist/cjs/utils/ufoExperiences.js +1 -1
  8. package/dist/cjs/version.json +1 -1
  9. package/dist/es2019/card/card.js +2 -7
  10. package/dist/es2019/card/media-card-analytics-error-boundary.js +1 -1
  11. package/dist/es2019/card/styles/index.js +0 -4
  12. package/dist/es2019/inline/mediaInlineAnalyticsErrorBoundary.js +1 -1
  13. package/dist/es2019/inline/mediaInlineCard.js +12 -21
  14. package/dist/es2019/utils/ufoExperiences.js +1 -1
  15. package/dist/es2019/version.json +1 -1
  16. package/dist/esm/card/card.js +2 -7
  17. package/dist/esm/card/media-card-analytics-error-boundary.js +1 -1
  18. package/dist/esm/card/styles/index.js +1 -5
  19. package/dist/esm/inline/mediaInlineAnalyticsErrorBoundary.js +1 -1
  20. package/dist/esm/inline/mediaInlineCard.js +12 -21
  21. package/dist/esm/utils/ufoExperiences.js +1 -1
  22. package/dist/esm/version.json +1 -1
  23. package/dist/types/card/styles/index.d.ts +0 -1
  24. package/dist/types/inline/mediaInlineCard.d.ts +0 -8
  25. package/dist/types/types.d.ts +0 -8
  26. package/dist/types-ts4.5/card/actions.d.ts +9 -0
  27. package/dist/types-ts4.5/card/card.d.ts +63 -0
  28. package/dist/types-ts4.5/card/cardAnalytics.d.ts +10 -0
  29. package/dist/types-ts4.5/card/cardConstants.d.ts +1 -0
  30. package/dist/types-ts4.5/card/cardImageView/cardImageViewWrapper.d.ts +6 -0
  31. package/dist/types-ts4.5/card/cardImageView/cardOverlay/cardOverlayComponents.d.ts +8 -0
  32. package/dist/types-ts4.5/card/cardImageView/cardOverlay/index.d.ts +39 -0
  33. package/dist/types-ts4.5/card/cardImageView/cardOverlay/styles.d.ts +26 -0
  34. package/dist/types-ts4.5/card/cardImageView/cardViewWrapper.d.ts +4 -0
  35. package/dist/types-ts4.5/card/cardImageView/classnames.d.ts +2 -0
  36. package/dist/types-ts4.5/card/cardImageView/fileCardImageView.d.ts +49 -0
  37. package/dist/types-ts4.5/card/cardImageView/index.d.ts +2 -0
  38. package/dist/types-ts4.5/card/cardImageView/styles.d.ts +24 -0
  39. package/dist/types-ts4.5/card/cardLoader.d.ts +6 -0
  40. package/dist/types-ts4.5/card/cardState.d.ts +10 -0
  41. package/dist/types-ts4.5/card/cardView.d.ts +80 -0
  42. package/dist/types-ts4.5/card/getCardPreview/cache.d.ts +19 -0
  43. package/dist/types-ts4.5/card/getCardPreview/filePreviewStatus.d.ts +5 -0
  44. package/dist/types-ts4.5/card/getCardPreview/helpers.d.ts +10 -0
  45. package/dist/types-ts4.5/card/getCardPreview/imageRefetchingAnalytics.d.ts +10 -0
  46. package/dist/types-ts4.5/card/getCardPreview/index.d.ts +59 -0
  47. package/dist/types-ts4.5/card/getCardStatus.d.ts +5 -0
  48. package/dist/types-ts4.5/card/index.d.ts +1 -0
  49. package/dist/types-ts4.5/card/inlinePlayer.d.ts +52 -0
  50. package/dist/types-ts4.5/card/inlinePlayerLazy.d.ts +2 -0
  51. package/dist/types-ts4.5/card/inlinePlayerWrapper.d.ts +4 -0
  52. package/dist/types-ts4.5/card/media-card-analytics-error-boundary.d.ts +14 -0
  53. package/dist/types-ts4.5/card/styles/animations.d.ts +1 -0
  54. package/dist/types-ts4.5/card/styles/config.d.ts +1 -0
  55. package/dist/types-ts4.5/card/styles/easing.d.ts +2 -0
  56. package/dist/types-ts4.5/card/styles/getSelectedBorderStyle.d.ts +3 -0
  57. package/dist/types-ts4.5/card/styles/index.d.ts +8 -0
  58. package/dist/types-ts4.5/card/styles/mixins.d.ts +21 -0
  59. package/dist/types-ts4.5/card/styles/styles.d.ts +10 -0
  60. package/dist/types-ts4.5/card/types.d.ts +24 -0
  61. package/dist/types-ts4.5/card/ui/actionsBar/actionsBar.d.ts +5 -0
  62. package/dist/types-ts4.5/card/ui/actionsBar/actionsBarWrapper.d.ts +4 -0
  63. package/dist/types-ts4.5/card/ui/actionsBar/styles.d.ts +6 -0
  64. package/dist/types-ts4.5/card/ui/actionsBar/types.d.ts +10 -0
  65. package/dist/types-ts4.5/card/ui/blanket/blanket.d.ts +6 -0
  66. package/dist/types-ts4.5/card/ui/blanket/styles.d.ts +6 -0
  67. package/dist/types-ts4.5/card/ui/common.d.ts +23 -0
  68. package/dist/types-ts4.5/card/ui/iconMessage/iconMessageWrapper.d.ts +4 -0
  69. package/dist/types-ts4.5/card/ui/iconMessage/index.d.ts +8 -0
  70. package/dist/types-ts4.5/card/ui/iconMessage/styles.d.ts +5 -0
  71. package/dist/types-ts4.5/card/ui/iconMessage/types.d.ts +19 -0
  72. package/dist/types-ts4.5/card/ui/iconWrapper/iconWrapper.d.ts +4 -0
  73. package/dist/types-ts4.5/card/ui/iconWrapper/styles.d.ts +7 -0
  74. package/dist/types-ts4.5/card/ui/iconWrapper/types.d.ts +6 -0
  75. package/dist/types-ts4.5/card/ui/imageRenderer/imageRenderer.d.ts +15 -0
  76. package/dist/types-ts4.5/card/ui/loadingRateLimited/styles.d.ts +13 -0
  77. package/dist/types-ts4.5/card/ui/newFileExperience/newFileExperienceWrapper.d.ts +4 -0
  78. package/dist/types-ts4.5/card/ui/newFileExperience/styles.d.ts +5 -0
  79. package/dist/types-ts4.5/card/ui/newFileExperience/types.d.ts +25 -0
  80. package/dist/types-ts4.5/card/ui/playButton/playButton.d.ts +2 -0
  81. package/dist/types-ts4.5/card/ui/playButton/playButtonBackground.d.ts +3 -0
  82. package/dist/types-ts4.5/card/ui/playButton/playButtonWrapper.d.ts +3 -0
  83. package/dist/types-ts4.5/card/ui/playButton/styles.d.ts +5 -0
  84. package/dist/types-ts4.5/card/ui/progressBar/progressBar.d.ts +10 -0
  85. package/dist/types-ts4.5/card/ui/progressBar/styledBar.d.ts +4 -0
  86. package/dist/types-ts4.5/card/ui/progressBar/styles.d.ts +7 -0
  87. package/dist/types-ts4.5/card/ui/progressBar/types.d.ts +7 -0
  88. package/dist/types-ts4.5/card/ui/styles.d.ts +11 -0
  89. package/dist/types-ts4.5/card/ui/tickBox/styles.d.ts +7 -0
  90. package/dist/types-ts4.5/card/ui/tickBox/tickBox.d.ts +3 -0
  91. package/dist/types-ts4.5/card/ui/tickBox/tickBoxWrapper.d.ts +4 -0
  92. package/dist/types-ts4.5/card/ui/tickBox/types.d.ts +4 -0
  93. package/dist/types-ts4.5/card/ui/titleBox/failedTitleBox.d.ts +3 -0
  94. package/dist/types-ts4.5/card/ui/titleBox/styles.d.ts +15 -0
  95. package/dist/types-ts4.5/card/ui/titleBox/titleBox.d.ts +4 -0
  96. package/dist/types-ts4.5/card/ui/titleBox/titleBoxComponents.d.ts +8 -0
  97. package/dist/types-ts4.5/card/ui/titleBox/types.d.ts +34 -0
  98. package/dist/types-ts4.5/card/ui/unhandledErrorCard/index.d.ts +7 -0
  99. package/dist/types-ts4.5/card/ui/unhandledErrorCard/types.d.ts +6 -0
  100. package/dist/types-ts4.5/classnames.d.ts +5 -0
  101. package/dist/types-ts4.5/errors.d.ts +41 -0
  102. package/dist/types-ts4.5/index.d.ts +15 -0
  103. package/dist/types-ts4.5/inline/index.d.ts +1 -0
  104. package/dist/types-ts4.5/inline/loader.d.ts +26 -0
  105. package/dist/types-ts4.5/inline/mediaInlineAnalyticsErrorBoundary.d.ts +12 -0
  106. package/dist/types-ts4.5/inline/mediaInlineCard.d.ts +15 -0
  107. package/dist/types-ts4.5/types.d.ts +103 -0
  108. package/dist/types-ts4.5/utils/analytics.d.ts +95 -0
  109. package/dist/types-ts4.5/utils/breakpoint.d.ts +11 -0
  110. package/dist/types-ts4.5/utils/cardActions/cardActionButton.d.ts +3 -0
  111. package/dist/types-ts4.5/utils/cardActions/cardActionIconButton.d.ts +12 -0
  112. package/dist/types-ts4.5/utils/cardActions/cardActionsDropdownMenu.d.ts +14 -0
  113. package/dist/types-ts4.5/utils/cardActions/cardActionsView.d.ts +16 -0
  114. package/dist/types-ts4.5/utils/cardActions/index.d.ts +7 -0
  115. package/dist/types-ts4.5/utils/cardActions/styles.d.ts +18 -0
  116. package/dist/types-ts4.5/utils/cardDimensions.d.ts +49 -0
  117. package/dist/types-ts4.5/utils/containsPixelUnit.d.ts +1 -0
  118. package/dist/types-ts4.5/utils/dimensionComparer.d.ts +3 -0
  119. package/dist/types-ts4.5/utils/document.d.ts +2 -0
  120. package/dist/types-ts4.5/utils/errorIcon/index.d.ts +12 -0
  121. package/dist/types-ts4.5/utils/errorIcon/styles.d.ts +1 -0
  122. package/dist/types-ts4.5/utils/fileIcon/index.d.ts +12 -0
  123. package/dist/types-ts4.5/utils/fileIcon/styles.d.ts +1 -0
  124. package/dist/types-ts4.5/utils/generateUniqueId.d.ts +1 -0
  125. package/dist/types-ts4.5/utils/getCSSUnitValue.d.ts +1 -0
  126. package/dist/types-ts4.5/utils/getDataURIDimension.d.ts +9 -0
  127. package/dist/types-ts4.5/utils/getElementDimension.d.ts +2 -0
  128. package/dist/types-ts4.5/utils/getErrorMessage.d.ts +2 -0
  129. package/dist/types-ts4.5/utils/getMediaCardCursor.d.ts +6 -0
  130. package/dist/types-ts4.5/utils/globalScope/getSSRData.d.ts +3 -0
  131. package/dist/types-ts4.5/utils/globalScope/globalScope.d.ts +21 -0
  132. package/dist/types-ts4.5/utils/globalScope/index.d.ts +4 -0
  133. package/dist/types-ts4.5/utils/globalScope/types.d.ts +8 -0
  134. package/dist/types-ts4.5/utils/index.d.ts +14 -0
  135. package/dist/types-ts4.5/utils/isRetina.d.ts +1 -0
  136. package/dist/types-ts4.5/utils/isValidPercentageUnit.d.ts +1 -0
  137. package/dist/types-ts4.5/utils/lightCards/cardError.d.ts +12 -0
  138. package/dist/types-ts4.5/utils/lightCards/cardLoading.d.ts +5 -0
  139. package/dist/types-ts4.5/utils/lightCards/getDimensionsWithDefault.d.ts +2 -0
  140. package/dist/types-ts4.5/utils/lightCards/lightCardWrappers.d.ts +5 -0
  141. package/dist/types-ts4.5/utils/lightCards/styles.d.ts +4 -0
  142. package/dist/types-ts4.5/utils/lightCards/types.d.ts +15 -0
  143. package/dist/types-ts4.5/utils/metadata.d.ts +2 -0
  144. package/dist/types-ts4.5/utils/objectURLCache.d.ts +11 -0
  145. package/dist/types-ts4.5/utils/preventClickThrough.d.ts +8 -0
  146. package/dist/types-ts4.5/utils/printScript.d.ts +2 -0
  147. package/dist/types-ts4.5/utils/progressBar/index.d.ts +9 -0
  148. package/dist/types-ts4.5/utils/progressBar/styles.d.ts +1 -0
  149. package/dist/types-ts4.5/utils/resizeModeToMediaImageProps.d.ts +5 -0
  150. package/dist/types-ts4.5/utils/shouldDisplayImageThumbnail.d.ts +3 -0
  151. package/dist/types-ts4.5/utils/ufoExperiences.d.ts +7 -0
  152. package/dist/types-ts4.5/utils/videoIsPlayable.d.ts +2 -0
  153. package/dist/types-ts4.5/utils/videoSnapshot.d.ts +1 -0
  154. package/dist/types-ts4.5/utils/viewportDetector.d.ts +6 -0
  155. package/package.json +5 -5
  156. package/report.api.md +0 -5
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @atlaskit/media-card
2
2
 
3
+ ## 75.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
8
+
9
+ ## 75.0.0
10
+
11
+ ### Major Changes
12
+
13
+ - [`8c6a6cf4bc4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8c6a6cf4bc4) - Media Card now only accepts a list of items for Media Viewer, no longer collection name
14
+
15
+ ### Patch Changes
16
+
17
+ - [`6fd9d7aeaec`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6fd9d7aeaec) - Fixed Inline Card file state handling
18
+ - [`eb4991f04b4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/eb4991f04b4) - Removed unused util
19
+ - Updated dependencies
20
+
3
21
  ## 74.8.1
4
22
 
5
23
  ### Patch Changes
@@ -48,7 +48,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
48
48
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
49
49
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
50
50
  var packageName = "@atlaskit/media-card";
51
- var packageVersion = "74.8.1";
51
+ var packageVersion = "75.0.1";
52
52
  var CardBase = /*#__PURE__*/function (_Component) {
53
53
  (0, _inherits2.default)(CardBase, _Component);
54
54
  var _super = _createSuper(CardBase);
@@ -504,7 +504,6 @@ var CardBase = /*#__PURE__*/function (_Component) {
504
504
  var _this$props7 = _this.props,
505
505
  mediaClient = _this$props7.mediaClient,
506
506
  identifier = _this$props7.identifier,
507
- mediaViewerDataSource = _this$props7.mediaViewerDataSource,
508
507
  mediaViewerItems = _this$props7.mediaViewerItems,
509
508
  contextId = _this$props7.contextId,
510
509
  featureFlags = _this$props7.featureFlags;
@@ -512,13 +511,9 @@ var CardBase = /*#__PURE__*/function (_Component) {
512
511
  return;
513
512
  }
514
513
  var collectionName = (0, _mediaClient2.isFileIdentifier)(identifier) ? identifier.collectionName || '' : '';
515
- var dataSource = mediaViewerDataSource || {
516
- list: []
517
- };
518
514
  return /*#__PURE__*/_reactDom.default.createPortal( /*#__PURE__*/_react.default.createElement(_mediaViewer.MediaViewer, {
519
515
  collectionName: collectionName,
520
- dataSource: dataSource,
521
- items: mediaViewerItems,
516
+ items: mediaViewerItems || [],
522
517
  mediaClientConfig: mediaClient.config,
523
518
  selectedItem: mediaViewerSelectedItem,
524
519
  onClose: _this.onMediaViewerClose,
@@ -90,7 +90,7 @@ var WrappedMediaCardAnalyticsErrorBoundary = /*#__PURE__*/function (_React$Compo
90
90
  }(_react.default.Component);
91
91
  (0, _defineProperty2.default)(WrappedMediaCardAnalyticsErrorBoundary, "displayName", 'MediaCardAnalyticsErrorBoundary');
92
92
  var packageName = "@atlaskit/media-card";
93
- var packageVersion = "74.8.1";
93
+ var packageVersion = "75.0.1";
94
94
  var MediaCardAnalyticsErrorBoundary = (0, _mediaCommon.withMediaAnalyticsContext)({
95
95
  packageVersion: packageVersion,
96
96
  packageName: packageName,
@@ -66,7 +66,6 @@ Object.defineProperty(exports, "easeOutExpo", {
66
66
  return _easing.easeOutExpo;
67
67
  }
68
68
  });
69
- exports.fadeinImageStyles = void 0;
70
69
  Object.defineProperty(exports, "hexToRgb", {
71
70
  enumerable: true,
72
71
  get: function get() {
@@ -107,21 +106,16 @@ Object.defineProperty(exports, "withAppearance", {
107
106
  var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
108
107
  var _react = require("@emotion/react");
109
108
  var _constants = require("@atlaskit/theme/constants");
110
- var _mediaUi = require("@atlaskit/media-ui");
111
109
  var _config = require("./config");
112
110
  var _mixins = require("./mixins");
113
111
  var _easing = require("./easing");
114
112
  var _animations = require("./animations");
115
- var _templateObject, _templateObject2;
113
+ var _templateObject;
116
114
  var rootStyles = function rootStyles() {
117
115
  return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n box-sizing: border-box;\n font-family: ", ";\n\n * {\n box-sizing: border-box;\n }\n"])), (0, _constants.fontFamily)());
118
116
  };
119
117
  exports.rootStyles = rootStyles;
120
118
  var cardShadow = "\n box-shadow: ".concat("var(--ds-shadow-raised, 0 1px 1px rgba(9, 30, 66, 0.2), 0 0 1px 0 rgba(9, 30, 66, 0.24))", ";\n");
121
119
  exports.cardShadow = cardShadow;
122
- var fadeinImageStyles = function fadeinImageStyles() {
123
- return (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n ", ";\n"])), _mediaUi.fadeIn);
124
- };
125
- exports.fadeinImageStyles = fadeinImageStyles;
126
120
  var _default = rootStyles;
127
121
  exports.default = _default;
@@ -127,7 +127,7 @@ var WrappedMediaInlineAnalyticsErrorBoundary = /*#__PURE__*/function (_React$Com
127
127
  }(_react.default.Component);
128
128
  (0, _defineProperty2.default)(WrappedMediaInlineAnalyticsErrorBoundary, "displayName", 'MediaInlineAnalyticsErrorBoundary');
129
129
  var packageName = "@atlaskit/media-card";
130
- var packageVersion = "74.8.1";
130
+ var packageVersion = "75.0.1";
131
131
  var MediaInlineAnalyticsErrorBoundary = (0, _mediaCommon.withMediaAnalyticsContext)({
132
132
  packageVersion: packageVersion,
133
133
  packageName: packageName,
@@ -25,7 +25,6 @@ var MediaInlineCardInternal = function MediaInlineCardInternal(_ref) {
25
25
  shouldDisplayToolTip = _ref.shouldDisplayToolTip,
26
26
  isSelected = _ref.isSelected,
27
27
  onClick = _ref.onClick,
28
- mediaViewerDataSource = _ref.mediaViewerDataSource,
29
28
  mediaViewerItems = _ref.mediaViewerItems,
30
29
  intl = _ref.intl;
31
30
  var _useState = (0, _react.useState)(),
@@ -57,13 +56,9 @@ var MediaInlineCardInternal = function MediaInlineCardInternal(_ref) {
57
56
  };
58
57
  var renderMediaViewer = function renderMediaViewer() {
59
58
  if (isMediaViewerVisible) {
60
- var dataSource = mediaViewerDataSource || {
61
- list: []
62
- };
63
59
  return /*#__PURE__*/_reactDom.default.createPortal( /*#__PURE__*/_react.default.createElement(_mediaViewer.MediaViewer, {
64
60
  collectionName: identifier.collectionName || '',
65
- dataSource: dataSource,
66
- items: mediaViewerItems,
61
+ items: mediaViewerItems || [],
67
62
  mediaClientConfig: mediaClient.mediaClientConfig,
68
63
  selectedItem: identifier,
69
64
  onClose: onMediaViewerClose
@@ -95,33 +90,29 @@ var MediaInlineCardInternal = function MediaInlineCardInternal(_ref) {
95
90
  subscription.unsubscribe();
96
91
  };
97
92
  }, [identifier.collectionName, identifier.id, mediaClient.file]);
98
- if (!fileState) {
99
- return /*#__PURE__*/_react.default.createElement(_mediaUi.MediaInlineCardLoadingView, {
100
- message: (intl || defaultIntl).formatMessage(_mediaUi.messages.loading_file),
101
- isSelected: isSelected
102
- });
103
- }
104
- if (isErrored) {
93
+ if (isErrored && (fileState === null || fileState === void 0 ? void 0 : fileState.status) === 'uploading') {
105
94
  return /*#__PURE__*/_react.default.createElement(_mediaUi.MediaInlineCardErroredView, {
106
- message: (intl || defaultIntl).formatMessage(_mediaUi.messages.couldnt_load_file),
95
+ message: (intl || defaultIntl).formatMessage(_mediaUi.messages.failed_to_upload),
107
96
  isSelected: isSelected
108
97
  });
109
98
  }
110
- if (fileState.status === 'error') {
99
+ if (isErrored || (fileState === null || fileState === void 0 ? void 0 : fileState.status) === 'error' || (fileState === null || fileState === void 0 ? void 0 : fileState.status) === 'failed-processing' ||
100
+ // Empty file handling
101
+ fileState && !fileState.name) {
111
102
  return /*#__PURE__*/_react.default.createElement(_mediaUi.MediaInlineCardErroredView, {
112
- message: fileState.message || '',
103
+ message: (intl || defaultIntl).formatMessage(_mediaUi.messages.couldnt_load_file),
113
104
  isSelected: isSelected
114
105
  });
115
106
  }
116
- if (fileState.status === 'failed-processing') {
117
- return /*#__PURE__*/_react.default.createElement(_mediaUi.MediaInlineCardErroredView, {
118
- message: (intl || defaultIntl).formatMessage(_mediaUi.messages.couldnt_load_file),
107
+ if ((fileState === null || fileState === void 0 ? void 0 : fileState.status) === 'uploading') {
108
+ return /*#__PURE__*/_react.default.createElement(_mediaUi.MediaInlineCardLoadingView, {
109
+ message: fileState.name,
119
110
  isSelected: isSelected
120
111
  });
121
112
  }
122
- if (fileState.status === 'uploading') {
113
+ if (!fileState) {
123
114
  return /*#__PURE__*/_react.default.createElement(_mediaUi.MediaInlineCardLoadingView, {
124
- message: fileState.name,
115
+ message: (intl || defaultIntl).formatMessage(_mediaUi.messages.loading_file),
125
116
  isSelected: isSelected
126
117
  });
127
118
  }
@@ -14,7 +14,7 @@ var _mediaClient = require("@atlaskit/media-client");
14
14
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
15
15
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
16
16
  var packageName = "@atlaskit/media-card";
17
- var packageVersion = "74.8.1";
17
+ var packageVersion = "75.0.1";
18
18
  var concurrentExperience;
19
19
  var getExperience = function getExperience(id) {
20
20
  if (!concurrentExperience) {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/media-card",
3
- "version": "74.8.1",
3
+ "version": "75.0.1",
4
4
  "sideEffects": false
5
5
  }
@@ -27,7 +27,7 @@ import { getMediaCardCursor } from '../utils/getMediaCardCursor';
27
27
  import { completeUfoExperience, startUfoExperience } from '../utils/ufoExperiences';
28
28
  import { generateUniqueId } from '../utils/generateUniqueId';
29
29
  const packageName = "@atlaskit/media-card";
30
- const packageVersion = "74.8.1";
30
+ const packageVersion = "75.0.1";
31
31
  export class CardBase extends Component {
32
32
  constructor(props) {
33
33
  super(props);
@@ -461,7 +461,6 @@ export class CardBase extends Component {
461
461
  const {
462
462
  mediaClient,
463
463
  identifier,
464
- mediaViewerDataSource,
465
464
  mediaViewerItems,
466
465
  contextId,
467
466
  featureFlags
@@ -470,13 +469,9 @@ export class CardBase extends Component {
470
469
  return;
471
470
  }
472
471
  const collectionName = isFileIdentifier(identifier) ? identifier.collectionName || '' : '';
473
- const dataSource = mediaViewerDataSource || {
474
- list: []
475
- };
476
472
  return /*#__PURE__*/ReactDOM.createPortal( /*#__PURE__*/React.createElement(MediaViewer, {
477
473
  collectionName: collectionName,
478
- dataSource: dataSource,
479
- items: mediaViewerItems,
474
+ items: mediaViewerItems || [],
480
475
  mediaClientConfig: mediaClient.config,
481
476
  selectedItem: mediaViewerSelectedItem,
482
477
  onClose: this.onMediaViewerClose,
@@ -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 = "74.8.1";
69
+ const packageVersion = "75.0.1";
70
70
  const MediaCardAnalyticsErrorBoundary = withMediaAnalyticsContext({
71
71
  packageVersion,
72
72
  packageName,
@@ -1,6 +1,5 @@
1
1
  import { css } from '@emotion/react';
2
2
  import { fontFamily } from '@atlaskit/theme/constants';
3
- import { fadeIn } from '@atlaskit/media-ui';
4
3
  export { defaultTransitionDuration } from './config';
5
4
  export { antialiased, borderRadiusLeft, capitalize, centerSelf, centerSelfX, centerSelfY, centerX, hexToRgb, rgba, spaceAround, transition, withAppearance } from './mixins';
6
5
  export { easeOutCubic, easeOutExpo } from './easing';
@@ -16,7 +15,4 @@ export const rootStyles = () => css`
16
15
  export const cardShadow = `
17
16
  box-shadow: ${"var(--ds-shadow-raised, 0 1px 1px rgba(9, 30, 66, 0.2), 0 0 1px 0 rgba(9, 30, 66, 0.24))"};
18
17
  `;
19
- export const fadeinImageStyles = () => css`
20
- ${fadeIn};
21
- `;
22
18
  export default rootStyles;
@@ -107,7 +107,7 @@ class WrappedMediaInlineAnalyticsErrorBoundary extends React.Component {
107
107
  }
108
108
  _defineProperty(WrappedMediaInlineAnalyticsErrorBoundary, "displayName", 'MediaInlineAnalyticsErrorBoundary');
109
109
  const packageName = "@atlaskit/media-card";
110
- const packageVersion = "74.8.1";
110
+ const packageVersion = "75.0.1";
111
111
  const MediaInlineAnalyticsErrorBoundary = withMediaAnalyticsContext({
112
112
  packageVersion,
113
113
  packageName,
@@ -14,7 +14,6 @@ export const MediaInlineCardInternal = ({
14
14
  shouldDisplayToolTip,
15
15
  isSelected,
16
16
  onClick,
17
- mediaViewerDataSource,
18
17
  mediaViewerItems,
19
18
  intl
20
19
  }) => {
@@ -36,13 +35,9 @@ export const MediaInlineCardInternal = ({
36
35
  const onMediaViewerClose = () => setMediaViewerVisible(false);
37
36
  const renderMediaViewer = () => {
38
37
  if (isMediaViewerVisible) {
39
- const dataSource = mediaViewerDataSource || {
40
- list: []
41
- };
42
38
  return /*#__PURE__*/ReactDOM.createPortal( /*#__PURE__*/React.createElement(MediaViewer, {
43
39
  collectionName: identifier.collectionName || '',
44
- dataSource: dataSource,
45
- items: mediaViewerItems,
40
+ items: mediaViewerItems || [],
46
41
  mediaClientConfig: mediaClient.mediaClientConfig,
47
42
  selectedItem: identifier,
48
43
  onClose: onMediaViewerClose
@@ -74,33 +69,29 @@ export const MediaInlineCardInternal = ({
74
69
  subscription.unsubscribe();
75
70
  };
76
71
  }, [identifier.collectionName, identifier.id, mediaClient.file]);
77
- if (!fileState) {
78
- return /*#__PURE__*/React.createElement(MediaInlineCardLoadingView, {
79
- message: (intl || defaultIntl).formatMessage(messages.loading_file),
80
- isSelected: isSelected
81
- });
82
- }
83
- if (isErrored) {
72
+ if (isErrored && (fileState === null || fileState === void 0 ? void 0 : fileState.status) === 'uploading') {
84
73
  return /*#__PURE__*/React.createElement(MediaInlineCardErroredView, {
85
- message: (intl || defaultIntl).formatMessage(messages.couldnt_load_file),
74
+ message: (intl || defaultIntl).formatMessage(messages.failed_to_upload),
86
75
  isSelected: isSelected
87
76
  });
88
77
  }
89
- if (fileState.status === 'error') {
78
+ if (isErrored || (fileState === null || fileState === void 0 ? void 0 : fileState.status) === 'error' || (fileState === null || fileState === void 0 ? void 0 : fileState.status) === 'failed-processing' ||
79
+ // Empty file handling
80
+ fileState && !fileState.name) {
90
81
  return /*#__PURE__*/React.createElement(MediaInlineCardErroredView, {
91
- message: fileState.message || '',
82
+ message: (intl || defaultIntl).formatMessage(messages.couldnt_load_file),
92
83
  isSelected: isSelected
93
84
  });
94
85
  }
95
- if (fileState.status === 'failed-processing') {
96
- return /*#__PURE__*/React.createElement(MediaInlineCardErroredView, {
97
- message: (intl || defaultIntl).formatMessage(messages.couldnt_load_file),
86
+ if ((fileState === null || fileState === void 0 ? void 0 : fileState.status) === 'uploading') {
87
+ return /*#__PURE__*/React.createElement(MediaInlineCardLoadingView, {
88
+ message: fileState.name,
98
89
  isSelected: isSelected
99
90
  });
100
91
  }
101
- if (fileState.status === 'uploading') {
92
+ if (!fileState) {
102
93
  return /*#__PURE__*/React.createElement(MediaInlineCardLoadingView, {
103
- message: fileState.name,
94
+ message: (intl || defaultIntl).formatMessage(messages.loading_file),
104
95
  isSelected: isSelected
105
96
  });
106
97
  }
@@ -4,7 +4,7 @@ import { extractErrorInfo, getRenderErrorRequestMetadata } from './analytics';
4
4
  import { MediaCardError } from '../errors';
5
5
  import { getMediaEnvironment, getMediaRegion } from '@atlaskit/media-client';
6
6
  const packageName = "@atlaskit/media-card";
7
- const packageVersion = "74.8.1";
7
+ const packageVersion = "75.0.1";
8
8
  let concurrentExperience;
9
9
  const getExperience = id => {
10
10
  if (!concurrentExperience) {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/media-card",
3
- "version": "74.8.1",
3
+ "version": "75.0.1",
4
4
  "sideEffects": false
5
5
  }
@@ -40,7 +40,7 @@ import { getMediaCardCursor } from '../utils/getMediaCardCursor';
40
40
  import { completeUfoExperience, startUfoExperience } from '../utils/ufoExperiences';
41
41
  import { generateUniqueId } from '../utils/generateUniqueId';
42
42
  var packageName = "@atlaskit/media-card";
43
- var packageVersion = "74.8.1";
43
+ var packageVersion = "75.0.1";
44
44
  export var CardBase = /*#__PURE__*/function (_Component) {
45
45
  _inherits(CardBase, _Component);
46
46
  var _super = _createSuper(CardBase);
@@ -496,7 +496,6 @@ export var CardBase = /*#__PURE__*/function (_Component) {
496
496
  var _this$props7 = _this.props,
497
497
  mediaClient = _this$props7.mediaClient,
498
498
  identifier = _this$props7.identifier,
499
- mediaViewerDataSource = _this$props7.mediaViewerDataSource,
500
499
  mediaViewerItems = _this$props7.mediaViewerItems,
501
500
  contextId = _this$props7.contextId,
502
501
  featureFlags = _this$props7.featureFlags;
@@ -504,13 +503,9 @@ export var CardBase = /*#__PURE__*/function (_Component) {
504
503
  return;
505
504
  }
506
505
  var collectionName = isFileIdentifier(identifier) ? identifier.collectionName || '' : '';
507
- var dataSource = mediaViewerDataSource || {
508
- list: []
509
- };
510
506
  return /*#__PURE__*/ReactDOM.createPortal( /*#__PURE__*/React.createElement(MediaViewer, {
511
507
  collectionName: collectionName,
512
- dataSource: dataSource,
513
- items: mediaViewerItems,
508
+ items: mediaViewerItems || [],
514
509
  mediaClientConfig: mediaClient.config,
515
510
  selectedItem: mediaViewerSelectedItem,
516
511
  onClose: _this.onMediaViewerClose,
@@ -83,7 +83,7 @@ var WrappedMediaCardAnalyticsErrorBoundary = /*#__PURE__*/function (_React$Compo
83
83
  }(React.Component);
84
84
  _defineProperty(WrappedMediaCardAnalyticsErrorBoundary, "displayName", 'MediaCardAnalyticsErrorBoundary');
85
85
  var packageName = "@atlaskit/media-card";
86
- var packageVersion = "74.8.1";
86
+ var packageVersion = "75.0.1";
87
87
  var MediaCardAnalyticsErrorBoundary = withMediaAnalyticsContext({
88
88
  packageVersion: packageVersion,
89
89
  packageName: packageName,
@@ -1,8 +1,7 @@
1
1
  import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
- var _templateObject, _templateObject2;
2
+ var _templateObject;
3
3
  import { css } from '@emotion/react';
4
4
  import { fontFamily } from '@atlaskit/theme/constants';
5
- import { fadeIn } from '@atlaskit/media-ui';
6
5
  export { defaultTransitionDuration } from './config';
7
6
  export { antialiased, borderRadiusLeft, capitalize, centerSelf, centerSelfX, centerSelfY, centerX, hexToRgb, rgba, spaceAround, transition, withAppearance } from './mixins';
8
7
  export { easeOutCubic, easeOutExpo } from './easing';
@@ -11,7 +10,4 @@ export var rootStyles = function rootStyles() {
11
10
  return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n box-sizing: border-box;\n font-family: ", ";\n\n * {\n box-sizing: border-box;\n }\n"])), fontFamily());
12
11
  };
13
12
  export var cardShadow = "\n box-shadow: ".concat("var(--ds-shadow-raised, 0 1px 1px rgba(9, 30, 66, 0.2), 0 0 1px 0 rgba(9, 30, 66, 0.24))", ";\n");
14
- export var fadeinImageStyles = function fadeinImageStyles() {
15
- return css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n ", ";\n"])), fadeIn);
16
- };
17
13
  export default rootStyles;
@@ -120,7 +120,7 @@ var WrappedMediaInlineAnalyticsErrorBoundary = /*#__PURE__*/function (_React$Com
120
120
  }(React.Component);
121
121
  _defineProperty(WrappedMediaInlineAnalyticsErrorBoundary, "displayName", 'MediaInlineAnalyticsErrorBoundary');
122
122
  var packageName = "@atlaskit/media-card";
123
- var packageVersion = "74.8.1";
123
+ var packageVersion = "75.0.1";
124
124
  var MediaInlineAnalyticsErrorBoundary = withMediaAnalyticsContext({
125
125
  packageVersion: packageVersion,
126
126
  packageName: packageName,
@@ -15,7 +15,6 @@ export var MediaInlineCardInternal = function MediaInlineCardInternal(_ref) {
15
15
  shouldDisplayToolTip = _ref.shouldDisplayToolTip,
16
16
  isSelected = _ref.isSelected,
17
17
  onClick = _ref.onClick,
18
- mediaViewerDataSource = _ref.mediaViewerDataSource,
19
18
  mediaViewerItems = _ref.mediaViewerItems,
20
19
  intl = _ref.intl;
21
20
  var _useState = useState(),
@@ -47,13 +46,9 @@ export var MediaInlineCardInternal = function MediaInlineCardInternal(_ref) {
47
46
  };
48
47
  var renderMediaViewer = function renderMediaViewer() {
49
48
  if (isMediaViewerVisible) {
50
- var dataSource = mediaViewerDataSource || {
51
- list: []
52
- };
53
49
  return /*#__PURE__*/ReactDOM.createPortal( /*#__PURE__*/React.createElement(MediaViewer, {
54
50
  collectionName: identifier.collectionName || '',
55
- dataSource: dataSource,
56
- items: mediaViewerItems,
51
+ items: mediaViewerItems || [],
57
52
  mediaClientConfig: mediaClient.mediaClientConfig,
58
53
  selectedItem: identifier,
59
54
  onClose: onMediaViewerClose
@@ -85,33 +80,29 @@ export var MediaInlineCardInternal = function MediaInlineCardInternal(_ref) {
85
80
  subscription.unsubscribe();
86
81
  };
87
82
  }, [identifier.collectionName, identifier.id, mediaClient.file]);
88
- if (!fileState) {
89
- return /*#__PURE__*/React.createElement(MediaInlineCardLoadingView, {
90
- message: (intl || defaultIntl).formatMessage(messages.loading_file),
91
- isSelected: isSelected
92
- });
93
- }
94
- if (isErrored) {
83
+ if (isErrored && (fileState === null || fileState === void 0 ? void 0 : fileState.status) === 'uploading') {
95
84
  return /*#__PURE__*/React.createElement(MediaInlineCardErroredView, {
96
- message: (intl || defaultIntl).formatMessage(messages.couldnt_load_file),
85
+ message: (intl || defaultIntl).formatMessage(messages.failed_to_upload),
97
86
  isSelected: isSelected
98
87
  });
99
88
  }
100
- if (fileState.status === 'error') {
89
+ if (isErrored || (fileState === null || fileState === void 0 ? void 0 : fileState.status) === 'error' || (fileState === null || fileState === void 0 ? void 0 : fileState.status) === 'failed-processing' ||
90
+ // Empty file handling
91
+ fileState && !fileState.name) {
101
92
  return /*#__PURE__*/React.createElement(MediaInlineCardErroredView, {
102
- message: fileState.message || '',
93
+ message: (intl || defaultIntl).formatMessage(messages.couldnt_load_file),
103
94
  isSelected: isSelected
104
95
  });
105
96
  }
106
- if (fileState.status === 'failed-processing') {
107
- return /*#__PURE__*/React.createElement(MediaInlineCardErroredView, {
108
- message: (intl || defaultIntl).formatMessage(messages.couldnt_load_file),
97
+ if ((fileState === null || fileState === void 0 ? void 0 : fileState.status) === 'uploading') {
98
+ return /*#__PURE__*/React.createElement(MediaInlineCardLoadingView, {
99
+ message: fileState.name,
109
100
  isSelected: isSelected
110
101
  });
111
102
  }
112
- if (fileState.status === 'uploading') {
103
+ if (!fileState) {
113
104
  return /*#__PURE__*/React.createElement(MediaInlineCardLoadingView, {
114
- message: fileState.name,
105
+ message: (intl || defaultIntl).formatMessage(messages.loading_file),
115
106
  isSelected: isSelected
116
107
  });
117
108
  }
@@ -7,7 +7,7 @@ import { extractErrorInfo, getRenderErrorRequestMetadata } from './analytics';
7
7
  import { MediaCardError } from '../errors';
8
8
  import { getMediaEnvironment, getMediaRegion } from '@atlaskit/media-client';
9
9
  var packageName = "@atlaskit/media-card";
10
- var packageVersion = "74.8.1";
10
+ var packageVersion = "75.0.1";
11
11
  var concurrentExperience;
12
12
  var getExperience = function getExperience(id) {
13
13
  if (!concurrentExperience) {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/media-card",
3
- "version": "74.8.1",
3
+ "version": "75.0.1",
4
4
  "sideEffects": false
5
5
  }
@@ -5,5 +5,4 @@ export { easeOutCubic, easeOutExpo } from './easing';
5
5
  export { spin } from './animations';
6
6
  export declare const rootStyles: () => import("@emotion/react").SerializedStyles;
7
7
  export declare const cardShadow: string;
8
- export declare const fadeinImageStyles: () => import("@emotion/react").SerializedStyles;
9
8
  export default rootStyles;
@@ -1,7 +1,6 @@
1
1
  import React, { FC } from 'react';
2
2
  import { FileIdentifier, Identifier, MediaClient } from '@atlaskit/media-client';
3
3
  import { WrappedComponentProps } from 'react-intl-next';
4
- import { MediaViewerDataSource } from '@atlaskit/media-viewer';
5
4
  import { InlineCardOnClickCallback } from '../types';
6
5
  export interface MediaInlineCardProps {
7
6
  identifier: FileIdentifier;
@@ -10,13 +9,6 @@ export interface MediaInlineCardProps {
10
9
  shouldDisplayToolTip?: boolean;
11
10
  isSelected?: boolean;
12
11
  onClick?: InlineCardOnClickCallback;
13
- /**
14
- * Includes data source like collection name,
15
- * media file list.
16
- * @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-149 Internal documentation for deprecation (no external access)}}
17
- * Use mediaViewerItems instead
18
- */
19
- mediaViewerDataSource?: MediaViewerDataSource;
20
12
  mediaViewerItems?: Identifier[];
21
13
  }
22
14
  export declare const MediaInlineCardInternal: FC<MediaInlineCardProps & WrappedComponentProps>;
@@ -7,7 +7,6 @@ import { FileDetails, MediaClient, Identifier, ImageResizeMode, FileState } from
7
7
  import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
8
8
  import { MediaFeatureFlags, NumericalCardDimensions, SSR } from '@atlaskit/media-common';
9
9
  import { CardAction } from './card/actions';
10
- import { MediaViewerDataSource } from '@atlaskit/media-viewer';
11
10
  import { MediaCardError } from './errors';
12
11
  export type CardStatus = 'uploading' | 'loading' | 'processing' | 'loading-preview' | 'complete' | 'error' | 'failed-processing';
13
12
  export type FilePreviewStatus = {
@@ -82,13 +81,6 @@ export interface CardProps extends SharedCardProps, CardEventProps {
82
81
  readonly isLazy?: boolean;
83
82
  readonly useInlinePlayer?: boolean;
84
83
  readonly shouldOpenMediaViewer?: boolean;
85
- /**
86
- * Includes data source like collection name,
87
- * media file list.
88
- * @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-149 Internal documentation for deprecation (no external access)}}
89
- * Use mediaViewerItems instead
90
- */
91
- readonly mediaViewerDataSource?: MediaViewerDataSource;
92
84
  readonly mediaViewerItems?: Identifier[];
93
85
  readonly contextId?: string;
94
86
  readonly shouldEnableDownloadButton?: boolean;
@@ -0,0 +1,9 @@
1
+ import { FileItem, FileDetails } from '@atlaskit/media-client';
2
+ import { ReactNode } from 'react';
3
+ export interface CardAction {
4
+ label?: string;
5
+ handler: CardEventHandler;
6
+ icon?: ReactNode;
7
+ }
8
+ export type CardEventHandler = (item?: FileItem, event?: Event) => void;
9
+ export declare function attachDetailsToActions(actions: Array<CardAction>, details: FileDetails): Array<CardAction>;
@@ -0,0 +1,63 @@
1
+ import React, { Component } from 'react';
2
+ import { UIAnalyticsEvent, WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
3
+ import { FileIdentifier, FileState, MediaSubscription } from '@atlaskit/media-client';
4
+ import { WrappedComponentProps } from 'react-intl-next';
5
+ import { CardAction } from './actions';
6
+ import { CardProps, CardState, CardStatus } from '../types';
7
+ export type CardBaseProps = CardProps & WithAnalyticsEventsProps & Partial<WrappedComponentProps>;
8
+ export declare class CardBase extends Component<CardBaseProps, CardState> {
9
+ private internalOccurrenceKey;
10
+ private hasBeenMounted;
11
+ private fileStateFlags;
12
+ private ssrReliability;
13
+ private timeElapsedTillCommenced;
14
+ subscription?: MediaSubscription;
15
+ private ssrData?;
16
+ private traceContext;
17
+ static defaultProps: Partial<CardProps>;
18
+ constructor(props: CardBaseProps);
19
+ private getSSRPreview;
20
+ componentDidMount(): void;
21
+ componentDidUpdate(prevProps: CardProps, prevState: CardState): void;
22
+ componentWillUnmount(): void;
23
+ updateStateForIdentifier(identifier: FileIdentifier): void;
24
+ private getImageURLParams;
25
+ private getMediaBlobUrlAttrs;
26
+ private getCardPreviewParams;
27
+ private setCacheSSRPreview;
28
+ private refetchSSRPreview;
29
+ private resolveUpfrontPreview;
30
+ private fetchAndCacheRemotePreview;
31
+ private resolvePreview;
32
+ updateFileStateFlag(fileState?: FileState): void;
33
+ subscribeInternalFile(identifier: FileIdentifier): void;
34
+ private get requestedDimensions();
35
+ private get metadata();
36
+ private get fileAttributes();
37
+ private getPerformanceAttributes;
38
+ private logSSRImageError;
39
+ private onImageError;
40
+ private onImageLoad;
41
+ private fireOperationalEvent;
42
+ private fireCommencedEvent;
43
+ private fireCopiedEvent;
44
+ private fireScreenEvent;
45
+ private fireNonCriticalErrorEvent;
46
+ private safeSetState;
47
+ unsubscribe: () => void;
48
+ get actions(): CardAction[];
49
+ onCardViewClick: (event: React.MouseEvent<HTMLDivElement>, analyticsEvent?: UIAnalyticsEvent) => void;
50
+ onInlinePlayerError: () => void;
51
+ setRef: (cardRef: HTMLDivElement | null) => void;
52
+ renderInlinePlayer: () => JSX.Element;
53
+ onMediaViewerClose: () => void;
54
+ private onDisplayImage;
55
+ renderMediaViewer: () => React.ReactPortal | undefined;
56
+ renderCard: (withCallbacks?: boolean, cardStatusOverride?: CardStatus, izLazyOverride?: boolean) => JSX.Element;
57
+ private storeSSRData;
58
+ render(): JSX.Element;
59
+ private onCardInViewport;
60
+ onClick: (event: React.MouseEvent<HTMLDivElement>, analyticsEvent?: UIAnalyticsEvent) => void;
61
+ onMouseEnter: (event: React.MouseEvent<HTMLDivElement>) => void;
62
+ }
63
+ export declare const Card: React.ComponentType<CardBaseProps>;