@atlaskit/media-card 74.5.0 → 74.5.2

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 (267) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/cjs/card/actions.js +0 -5
  3. package/dist/cjs/card/card.js +126 -260
  4. package/dist/cjs/card/cardAnalytics.js +0 -18
  5. package/dist/cjs/card/cardImageView/cardImageViewWrapper.js +7 -16
  6. package/dist/cjs/card/cardImageView/cardOverlay/cardOverlayComponents.js +3 -15
  7. package/dist/cjs/card/cardImageView/cardOverlay/index.js +20 -52
  8. package/dist/cjs/card/cardImageView/cardOverlay/styles.js +1 -19
  9. package/dist/cjs/card/cardImageView/cardViewWrapper.js +7 -10
  10. package/dist/cjs/card/cardImageView/fileCardImageView.js +66 -111
  11. package/dist/cjs/card/cardImageView/index.js +0 -1
  12. package/dist/cjs/card/cardImageView/styles.js +0 -14
  13. package/dist/cjs/card/cardLoader.js +3 -20
  14. package/dist/cjs/card/cardState.js +0 -9
  15. package/dist/cjs/card/cardView.js +105 -198
  16. package/dist/cjs/card/getCardPreview/cache.js +0 -12
  17. package/dist/cjs/card/getCardPreview/filePreviewStatus.js +8 -16
  18. package/dist/cjs/card/getCardPreview/helpers.js +0 -39
  19. package/dist/cjs/card/getCardPreview/imageRefetchingAnalytics.js +0 -8
  20. package/dist/cjs/card/getCardPreview/index.js +16 -85
  21. package/dist/cjs/card/getCardStatus.js +5 -24
  22. package/dist/cjs/card/index.js +0 -2
  23. package/dist/cjs/card/inlinePlayer.js +19 -102
  24. package/dist/cjs/card/inlinePlayerLazy.js +0 -11
  25. package/dist/cjs/card/inlinePlayerWrapper.js +5 -8
  26. package/dist/cjs/card/media-card-analytics-error-boundary.js +6 -34
  27. package/dist/cjs/card/styles/animations.js +0 -5
  28. package/dist/cjs/card/styles/getSelectedBorderStyle.js +0 -4
  29. package/dist/cjs/card/styles/index.js +0 -14
  30. package/dist/cjs/card/styles/mixins.js +0 -11
  31. package/dist/cjs/card/styles/styles.js +4 -20
  32. package/dist/cjs/card/ui/actionsBar/actionsBar.js +2 -20
  33. package/dist/cjs/card/ui/actionsBar/actionsBarWrapper.js +1 -4
  34. package/dist/cjs/card/ui/actionsBar/styles.js +0 -8
  35. package/dist/cjs/card/ui/blanket/blanket.js +1 -4
  36. package/dist/cjs/card/ui/blanket/styles.js +0 -9
  37. package/dist/cjs/card/ui/common.js +0 -8
  38. package/dist/cjs/card/ui/iconMessage/iconMessageWrapper.js +2 -5
  39. package/dist/cjs/card/ui/iconMessage/index.js +4 -22
  40. package/dist/cjs/card/ui/iconMessage/styles.js +1 -10
  41. package/dist/cjs/card/ui/iconWrapper/iconWrapper.js +2 -5
  42. package/dist/cjs/card/ui/iconWrapper/styles.js +3 -11
  43. package/dist/cjs/card/ui/imageRenderer/imageRenderer.js +8 -21
  44. package/dist/cjs/card/ui/loadingRateLimited/styles.js +1 -10
  45. package/dist/cjs/card/ui/newFileExperience/newFileExperienceWrapper.js +14 -19
  46. package/dist/cjs/card/ui/newFileExperience/styles.js +10 -26
  47. package/dist/cjs/card/ui/playButton/playButton.js +0 -7
  48. package/dist/cjs/card/ui/playButton/playButtonBackground.js +1 -4
  49. package/dist/cjs/card/ui/playButton/playButtonWrapper.js +1 -4
  50. package/dist/cjs/card/ui/playButton/styles.js +0 -6
  51. package/dist/cjs/card/ui/progressBar/progressBar.js +6 -14
  52. package/dist/cjs/card/ui/progressBar/styledBar.js +4 -7
  53. package/dist/cjs/card/ui/progressBar/styles.js +4 -18
  54. package/dist/cjs/card/ui/styles.js +12 -46
  55. package/dist/cjs/card/ui/tickBox/styles.js +0 -11
  56. package/dist/cjs/card/ui/tickBox/tickBox.js +0 -6
  57. package/dist/cjs/card/ui/tickBox/tickBoxWrapper.js +1 -4
  58. package/dist/cjs/card/ui/titleBox/failedTitleBox.js +2 -11
  59. package/dist/cjs/card/ui/titleBox/styles.js +4 -19
  60. package/dist/cjs/card/ui/titleBox/titleBox.js +9 -21
  61. package/dist/cjs/card/ui/titleBox/titleBoxComponents.js +2 -14
  62. package/dist/cjs/card/ui/unhandledErrorCard/index.js +6 -36
  63. package/dist/cjs/classnames.js +0 -1
  64. package/dist/cjs/errors.js +7 -66
  65. package/dist/cjs/index.js +0 -8
  66. package/dist/cjs/inline/index.js +0 -2
  67. package/dist/cjs/inline/loader.js +2 -43
  68. package/dist/cjs/inline/mediaInlineAnalyticsErrorBoundary.js +4 -29
  69. package/dist/cjs/inline/mediaInlineCard.js +21 -57
  70. package/dist/cjs/types.js +0 -2
  71. package/dist/cjs/utils/analytics.js +0 -49
  72. package/dist/cjs/utils/breakpoint.js +0 -10
  73. package/dist/cjs/utils/cardActions/cardActionButton.js +1 -4
  74. package/dist/cjs/utils/cardActions/cardActionIconButton.js +7 -29
  75. package/dist/cjs/utils/cardActions/cardActionsDropdownMenu.js +6 -35
  76. package/dist/cjs/utils/cardActions/cardActionsView.js +7 -34
  77. package/dist/cjs/utils/cardActions/index.js +0 -4
  78. package/dist/cjs/utils/cardActions/styles.js +0 -13
  79. package/dist/cjs/utils/cardDimensions.js +5 -22
  80. package/dist/cjs/utils/containsPixelUnit.js +0 -2
  81. package/dist/cjs/utils/dimensionComparer.js +0 -8
  82. package/dist/cjs/utils/document.js +0 -4
  83. package/dist/cjs/utils/errorIcon/index.js +0 -18
  84. package/dist/cjs/utils/errorIcon/styles.js +0 -5
  85. package/dist/cjs/utils/fileIcon/index.js +3 -21
  86. package/dist/cjs/utils/fileIcon/styles.js +0 -6
  87. package/dist/cjs/utils/generateUniqueId.js +0 -2
  88. package/dist/cjs/utils/getCSSUnitValue.js +0 -1
  89. package/dist/cjs/utils/getDataURIDimension.js +0 -13
  90. package/dist/cjs/utils/getElementDimension.js +0 -2
  91. package/dist/cjs/utils/getErrorMessage.js +0 -6
  92. package/dist/cjs/utils/getMediaCardCursor.js +1 -6
  93. package/dist/cjs/utils/globalScope/getSSRData.js +0 -5
  94. package/dist/cjs/utils/globalScope/globalScope.js +8 -25
  95. package/dist/cjs/utils/globalScope/index.js +0 -2
  96. package/dist/cjs/utils/index.js +0 -12
  97. package/dist/cjs/utils/isRetina.js +0 -1
  98. package/dist/cjs/utils/isValidPercentageUnit.js +0 -2
  99. package/dist/cjs/utils/lightCards/cardError.js +0 -21
  100. package/dist/cjs/utils/lightCards/cardLoading.js +3 -27
  101. package/dist/cjs/utils/lightCards/getDimensionsWithDefault.js +0 -2
  102. package/dist/cjs/utils/lightCards/lightCardWrappers.js +1 -9
  103. package/dist/cjs/utils/lightCards/styles.js +1 -13
  104. package/dist/cjs/utils/metadata.js +0 -7
  105. package/dist/cjs/utils/objectURLCache.js +0 -22
  106. package/dist/cjs/utils/preventClickThrough.js +0 -5
  107. package/dist/cjs/utils/printScript.js +0 -10
  108. package/dist/cjs/utils/progressBar/index.js +0 -17
  109. package/dist/cjs/utils/progressBar/styles.js +0 -6
  110. package/dist/cjs/utils/resizeModeToMediaImageProps.js +0 -1
  111. package/dist/cjs/utils/shouldDisplayImageThumbnail.js +0 -5
  112. package/dist/cjs/utils/ufoExperiences.js +1 -21
  113. package/dist/cjs/utils/videoSnapshot.js +2 -11
  114. package/dist/cjs/utils/viewportDetector.js +5 -24
  115. package/dist/cjs/version.json +1 -1
  116. package/dist/es2019/card/actions.js +2 -1
  117. package/dist/es2019/card/card.js +26 -121
  118. package/dist/es2019/card/cardAnalytics.js +0 -5
  119. package/dist/es2019/card/cardImageView/cardOverlay/index.js +2 -16
  120. package/dist/es2019/card/cardImageView/cardOverlay/styles.js +1 -2
  121. package/dist/es2019/card/cardImageView/fileCardImageView.js +3 -36
  122. package/dist/es2019/card/cardImageView/styles.js +0 -3
  123. package/dist/es2019/card/cardLoader.js +3 -14
  124. package/dist/es2019/card/cardState.js +1 -2
  125. package/dist/es2019/card/cardView.js +24 -68
  126. package/dist/es2019/card/getCardPreview/cache.js +0 -4
  127. package/dist/es2019/card/getCardPreview/filePreviewStatus.js +8 -5
  128. package/dist/es2019/card/getCardPreview/helpers.js +0 -9
  129. package/dist/es2019/card/getCardPreview/imageRefetchingAnalytics.js +0 -3
  130. package/dist/es2019/card/getCardPreview/index.js +16 -30
  131. package/dist/es2019/card/getCardStatus.js +2 -15
  132. package/dist/es2019/card/inlinePlayer.js +2 -35
  133. package/dist/es2019/card/inlinePlayerLazy.js +1 -2
  134. package/dist/es2019/card/media-card-analytics-error-boundary.js +1 -15
  135. package/dist/es2019/card/styles/getSelectedBorderStyle.js +1 -1
  136. package/dist/es2019/card/styles/styles.js +0 -3
  137. package/dist/es2019/card/ui/actionsBar/actionsBar.js +0 -3
  138. package/dist/es2019/card/ui/common.js +0 -2
  139. package/dist/es2019/card/ui/iconMessage/styles.js +0 -2
  140. package/dist/es2019/card/ui/iconWrapper/styles.js +2 -2
  141. package/dist/es2019/card/ui/imageRenderer/imageRenderer.js +0 -3
  142. package/dist/es2019/card/ui/progressBar/styles.js +1 -3
  143. package/dist/es2019/card/ui/styles.js +3 -4
  144. package/dist/es2019/card/ui/titleBox/styles.js +2 -3
  145. package/dist/es2019/card/ui/unhandledErrorCard/index.js +0 -8
  146. package/dist/es2019/errors.js +8 -17
  147. package/dist/es2019/index.js +1 -0
  148. package/dist/es2019/inline/loader.js +1 -18
  149. package/dist/es2019/inline/mediaInlineAnalyticsErrorBoundary.js +1 -12
  150. package/dist/es2019/inline/mediaInlineCard.js +0 -15
  151. package/dist/es2019/types.js +1 -1
  152. package/dist/es2019/utils/analytics.js +0 -3
  153. package/dist/es2019/utils/breakpoint.js +0 -4
  154. package/dist/es2019/utils/cardActions/cardActionIconButton.js +3 -5
  155. package/dist/es2019/utils/cardActions/cardActionsDropdownMenu.js +0 -5
  156. package/dist/es2019/utils/cardActions/cardActionsView.js +0 -10
  157. package/dist/es2019/utils/cardActions/styles.js +0 -3
  158. package/dist/es2019/utils/cardDimensions.js +7 -14
  159. package/dist/es2019/utils/dimensionComparer.js +0 -3
  160. package/dist/es2019/utils/document.js +0 -2
  161. package/dist/es2019/utils/errorIcon/index.js +0 -3
  162. package/dist/es2019/utils/fileIcon/index.js +0 -1
  163. package/dist/es2019/utils/getDataURIDimension.js +0 -4
  164. package/dist/es2019/utils/getMediaCardCursor.js +1 -4
  165. package/dist/es2019/utils/globalScope/getSSRData.js +0 -2
  166. package/dist/es2019/utils/globalScope/globalScope.js +3 -10
  167. package/dist/es2019/utils/lightCards/cardError.js +0 -3
  168. package/dist/es2019/utils/lightCards/cardLoading.js +0 -3
  169. package/dist/es2019/utils/lightCards/lightCardWrappers.js +0 -1
  170. package/dist/es2019/utils/metadata.js +0 -5
  171. package/dist/es2019/utils/objectURLCache.js +0 -10
  172. package/dist/es2019/utils/printScript.js +0 -3
  173. package/dist/es2019/utils/progressBar/index.js +0 -2
  174. package/dist/es2019/utils/shouldDisplayImageThumbnail.js +0 -2
  175. package/dist/es2019/utils/ufoExperiences.js +5 -10
  176. package/dist/es2019/utils/videoSnapshot.js +2 -4
  177. package/dist/es2019/utils/viewportDetector.js +0 -5
  178. package/dist/es2019/version.json +1 -1
  179. package/dist/esm/card/actions.js +0 -3
  180. package/dist/esm/card/card.js +126 -254
  181. package/dist/esm/card/cardAnalytics.js +0 -6
  182. package/dist/esm/card/cardImageView/cardImageViewWrapper.js +6 -6
  183. package/dist/esm/card/cardImageView/cardOverlay/cardOverlayComponents.js +2 -2
  184. package/dist/esm/card/cardImageView/cardOverlay/index.js +22 -37
  185. package/dist/esm/card/cardImageView/cardOverlay/styles.js +2 -6
  186. package/dist/esm/card/cardImageView/cardViewWrapper.js +6 -6
  187. package/dist/esm/card/cardImageView/fileCardImageView.js +66 -104
  188. package/dist/esm/card/cardImageView/styles.js +0 -5
  189. package/dist/esm/card/cardLoader.js +6 -17
  190. package/dist/esm/card/cardState.js +1 -2
  191. package/dist/esm/card/cardView.js +105 -171
  192. package/dist/esm/card/getCardPreview/cache.js +0 -7
  193. package/dist/esm/card/getCardPreview/filePreviewStatus.js +11 -11
  194. package/dist/esm/card/getCardPreview/helpers.js +0 -28
  195. package/dist/esm/card/getCardPreview/imageRefetchingAnalytics.js +0 -3
  196. package/dist/esm/card/getCardPreview/index.js +16 -53
  197. package/dist/esm/card/getCardStatus.js +5 -20
  198. package/dist/esm/card/inlinePlayer.js +19 -85
  199. package/dist/esm/card/inlinePlayerLazy.js +1 -5
  200. package/dist/esm/card/inlinePlayerWrapper.js +4 -4
  201. package/dist/esm/card/media-card-analytics-error-boundary.js +6 -28
  202. package/dist/esm/card/styles/animations.js +0 -2
  203. package/dist/esm/card/styles/getSelectedBorderStyle.js +1 -1
  204. package/dist/esm/card/styles/index.js +0 -2
  205. package/dist/esm/card/styles/styles.js +4 -9
  206. package/dist/esm/card/ui/actionsBar/actionsBar.js +2 -12
  207. package/dist/esm/card/ui/actionsBar/styles.js +0 -2
  208. package/dist/esm/card/ui/blanket/styles.js +0 -2
  209. package/dist/esm/card/ui/common.js +0 -4
  210. package/dist/esm/card/ui/iconMessage/iconMessageWrapper.js +1 -1
  211. package/dist/esm/card/ui/iconMessage/index.js +4 -4
  212. package/dist/esm/card/ui/iconMessage/styles.js +1 -5
  213. package/dist/esm/card/ui/iconWrapper/iconWrapper.js +1 -1
  214. package/dist/esm/card/ui/iconWrapper/styles.js +3 -5
  215. package/dist/esm/card/ui/imageRenderer/imageRenderer.js +8 -11
  216. package/dist/esm/card/ui/loadingRateLimited/styles.js +1 -3
  217. package/dist/esm/card/ui/newFileExperience/newFileExperienceWrapper.js +13 -13
  218. package/dist/esm/card/ui/newFileExperience/styles.js +10 -12
  219. package/dist/esm/card/ui/playButton/styles.js +0 -2
  220. package/dist/esm/card/ui/progressBar/progressBar.js +6 -6
  221. package/dist/esm/card/ui/progressBar/styledBar.js +3 -3
  222. package/dist/esm/card/ui/progressBar/styles.js +4 -8
  223. package/dist/esm/card/ui/styles.js +12 -20
  224. package/dist/esm/card/ui/tickBox/styles.js +0 -2
  225. package/dist/esm/card/ui/titleBox/failedTitleBox.js +2 -2
  226. package/dist/esm/card/ui/titleBox/styles.js +4 -7
  227. package/dist/esm/card/ui/titleBox/titleBox.js +9 -11
  228. package/dist/esm/card/ui/titleBox/titleBoxComponents.js +1 -1
  229. package/dist/esm/card/ui/unhandledErrorCard/index.js +6 -24
  230. package/dist/esm/errors.js +8 -40
  231. package/dist/esm/index.js +1 -0
  232. package/dist/esm/inline/loader.js +3 -40
  233. package/dist/esm/inline/mediaInlineAnalyticsErrorBoundary.js +4 -23
  234. package/dist/esm/inline/mediaInlineCard.js +21 -40
  235. package/dist/esm/types.js +1 -1
  236. package/dist/esm/utils/analytics.js +0 -6
  237. package/dist/esm/utils/breakpoint.js +0 -5
  238. package/dist/esm/utils/cardActions/cardActionIconButton.js +7 -18
  239. package/dist/esm/utils/cardActions/cardActionsDropdownMenu.js +6 -19
  240. package/dist/esm/utils/cardActions/cardActionsView.js +7 -22
  241. package/dist/esm/utils/cardActions/styles.js +0 -5
  242. package/dist/esm/utils/cardDimensions.js +7 -14
  243. package/dist/esm/utils/dimensionComparer.js +0 -3
  244. package/dist/esm/utils/document.js +0 -2
  245. package/dist/esm/utils/errorIcon/index.js +0 -9
  246. package/dist/esm/utils/errorIcon/styles.js +0 -2
  247. package/dist/esm/utils/fileIcon/index.js +3 -11
  248. package/dist/esm/utils/fileIcon/styles.js +0 -2
  249. package/dist/esm/utils/getDataURIDimension.js +0 -4
  250. package/dist/esm/utils/getMediaCardCursor.js +1 -4
  251. package/dist/esm/utils/globalScope/getSSRData.js +0 -2
  252. package/dist/esm/utils/globalScope/globalScope.js +8 -15
  253. package/dist/esm/utils/lightCards/cardError.js +0 -9
  254. package/dist/esm/utils/lightCards/cardLoading.js +3 -13
  255. package/dist/esm/utils/lightCards/lightCardWrappers.js +0 -1
  256. package/dist/esm/utils/lightCards/styles.js +1 -3
  257. package/dist/esm/utils/metadata.js +0 -5
  258. package/dist/esm/utils/objectURLCache.js +0 -15
  259. package/dist/esm/utils/printScript.js +0 -5
  260. package/dist/esm/utils/progressBar/index.js +0 -9
  261. package/dist/esm/utils/progressBar/styles.js +0 -2
  262. package/dist/esm/utils/shouldDisplayImageThumbnail.js +0 -2
  263. package/dist/esm/utils/ufoExperiences.js +1 -12
  264. package/dist/esm/utils/videoSnapshot.js +2 -6
  265. package/dist/esm/utils/viewportDetector.js +5 -16
  266. package/dist/esm/version.json +1 -1
  267. package/package.json +2 -2
@@ -8,11 +8,8 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
8
8
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
9
9
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
10
10
  import _regeneratorRuntime from "@babel/runtime/regenerator";
11
-
12
11
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
13
-
14
12
  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; } }
15
-
16
13
  import React from 'react';
17
14
  import { Component } from 'react';
18
15
  import { globalMediaEventEmitter } from '@atlaskit/media-client';
@@ -27,45 +24,32 @@ import { InlinePlayerWrapper } from './inlinePlayerWrapper';
27
24
  export var getPreferredVideoArtifact = function getPreferredVideoArtifact(fileState) {
28
25
  if (fileState.status === 'processed' || fileState.status === 'processing') {
29
26
  var artifacts = fileState.artifacts;
30
-
31
27
  if (!artifacts) {
32
28
  return undefined;
33
29
  }
34
-
35
30
  return artifacts['video_1280.mp4'] ? 'video_1280.mp4' : artifacts['video_640.mp4'] ? 'video_640.mp4' : undefined;
36
31
  }
37
-
38
32
  return undefined;
39
33
  };
40
34
  export var InlinePlayerBase = /*#__PURE__*/function (_Component) {
41
35
  _inherits(InlinePlayerBase, _Component);
42
-
43
36
  var _super = _createSuper(InlinePlayerBase);
44
-
45
37
  function InlinePlayerBase() {
46
38
  var _this;
47
-
48
39
  _classCallCheck(this, InlinePlayerBase);
49
-
50
40
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
51
41
  args[_key] = arguments[_key];
52
42
  }
53
-
54
43
  _this = _super.call.apply(_super, [this].concat(args));
55
-
56
44
  _defineProperty(_assertThisInitialized(_this), "state", {});
57
-
58
45
  _defineProperty(_assertThisInitialized(_this), "divRef", /*#__PURE__*/React.createRef());
59
-
60
46
  _defineProperty(_assertThisInitialized(_this), "setFileSrc", function (fileSrc) {
61
47
  _this.setState({
62
48
  fileSrc: fileSrc
63
49
  });
64
50
  });
65
-
66
51
  _defineProperty(_assertThisInitialized(_this), "setBinaryURL", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
67
52
  var _this$props, mediaClient, identifier, onError, id, collectionName, fileSrc;
68
-
69
53
  return _regeneratorRuntime.wrap(function _callee$(_context) {
70
54
  while (1) {
71
55
  switch (_context.prev = _context.next) {
@@ -75,23 +59,17 @@ export var InlinePlayerBase = /*#__PURE__*/function (_Component) {
75
59
  _context.prev = 2;
76
60
  _context.next = 5;
77
61
  return mediaClient.file.getFileBinaryURL(id, collectionName);
78
-
79
62
  case 5:
80
63
  fileSrc = _context.sent;
81
-
82
64
  _this.setFileSrc(fileSrc);
83
-
84
65
  _context.next = 12;
85
66
  break;
86
-
87
67
  case 9:
88
68
  _context.prev = 9;
89
69
  _context.t0 = _context["catch"](2);
90
-
91
70
  if (onError && _context.t0 instanceof Error) {
92
71
  onError(_context.t0);
93
72
  }
94
-
95
73
  case 12:
96
74
  case "end":
97
75
  return _context.stop();
@@ -99,30 +77,25 @@ export var InlinePlayerBase = /*#__PURE__*/function (_Component) {
99
77
  }
100
78
  }, _callee, null, [[2, 9]]);
101
79
  })));
102
-
103
80
  _defineProperty(_assertThisInitialized(_this), "unsubscribe", function () {
104
81
  if (_this.subscription) {
105
82
  _this.subscription.unsubscribe();
106
83
  }
107
84
  });
108
-
109
85
  _defineProperty(_assertThisInitialized(_this), "revoke", function () {
110
86
  var fileSrc = _this.state.fileSrc;
111
-
112
87
  if (fileSrc) {
113
88
  URL.revokeObjectURL(fileSrc);
114
89
  }
115
90
  });
116
-
117
91
  _defineProperty(_assertThisInitialized(_this), "onDownloadClick", function () {
118
92
  var _this$props2 = _this.props,
119
- mediaClient = _this$props2.mediaClient,
120
- identifier = _this$props2.identifier;
93
+ mediaClient = _this$props2.mediaClient,
94
+ identifier = _this$props2.identifier;
121
95
  var id = identifier.id,
122
- collectionName = identifier.collectionName;
96
+ collectionName = identifier.collectionName;
123
97
  mediaClient.file.downloadBinary(id, undefined, collectionName);
124
98
  });
125
-
126
99
  _defineProperty(_assertThisInitialized(_this), "onFirstPlay", function () {
127
100
  var identifier = _this.props.identifier;
128
101
  globalMediaEventEmitter.emit('media-viewed', {
@@ -130,39 +103,31 @@ export var InlinePlayerBase = /*#__PURE__*/function (_Component) {
130
103
  viewingLevel: 'full'
131
104
  });
132
105
  });
133
-
134
106
  _defineProperty(_assertThisInitialized(_this), "saveElementWidth", function () {
135
107
  var dimensions = _this.props.dimensions;
136
-
137
108
  if (!dimensions) {
138
109
  return;
139
110
  }
140
-
141
111
  var width = dimensions.width;
142
-
143
112
  if (width && isValidPercentageUnit(width) && !!_this.divRef.current) {
144
113
  var elementWidth = getElementDimension(_this.divRef.current, 'width');
145
-
146
114
  _this.setState({
147
115
  elementWidth: elementWidth
148
116
  });
149
117
  }
150
118
  });
151
-
152
119
  return _this;
153
120
  }
154
-
155
121
  _createClass(InlinePlayerBase, [{
156
122
  key: "componentDidMount",
157
123
  value: function componentDidMount() {
158
124
  var _this2 = this;
159
-
160
125
  this.saveElementWidth();
161
126
  var _this$props3 = this.props,
162
- mediaClient = _this$props3.mediaClient,
163
- identifier = _this$props3.identifier;
127
+ mediaClient = _this$props3.mediaClient,
128
+ identifier = _this$props3.identifier;
164
129
  var id = identifier.id,
165
- collectionName = identifier.collectionName;
130
+ collectionName = identifier.collectionName;
166
131
  this.revoke();
167
132
  this.unsubscribe();
168
133
  this.subscription = mediaClient.file.getFileState(id, {
@@ -171,7 +136,6 @@ export var InlinePlayerBase = /*#__PURE__*/function (_Component) {
171
136
  next: function () {
172
137
  var _next = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(fileState) {
173
138
  var existingFileSrc, _yield$fileState$prev, value, fileSrc, artifactName, artifacts, _fileSrc, onError;
174
-
175
139
  return _regeneratorRuntime.wrap(function _callee2$(_context2) {
176
140
  while (1) {
177
141
  switch (_context2.prev = _context2.next) {
@@ -186,80 +150,58 @@ export var InlinePlayerBase = /*#__PURE__*/function (_Component) {
186
150
  isUploading: false
187
151
  });
188
152
  }
189
-
190
153
  existingFileSrc = _this2.state.fileSrc; // we want to reuse the existing fileSrc to prevent re renders
191
-
192
154
  if (!existingFileSrc) {
193
155
  _context2.next = 4;
194
156
  break;
195
157
  }
196
-
197
158
  return _context2.abrupt("return");
198
-
199
159
  case 4:
200
160
  if (!(fileState.status !== 'error' && fileState.preview)) {
201
161
  _context2.next = 13;
202
162
  break;
203
163
  }
204
-
205
164
  _context2.next = 7;
206
165
  return fileState.preview;
207
-
208
166
  case 7:
209
167
  _yield$fileState$prev = _context2.sent;
210
168
  value = _yield$fileState$prev.value;
211
-
212
169
  if (!(value instanceof Blob && value.type.indexOf('video/') === 0)) {
213
170
  _context2.next = 13;
214
171
  break;
215
172
  }
216
-
217
173
  fileSrc = URL.createObjectURL(value);
218
-
219
174
  _this2.setFileSrc(fileSrc);
220
-
221
175
  return _context2.abrupt("return");
222
-
223
176
  case 13:
224
177
  if (!(fileState.status === 'processed' || fileState.status === 'processing')) {
225
178
  _context2.next = 30;
226
179
  break;
227
180
  }
228
-
229
181
  artifactName = getPreferredVideoArtifact(fileState);
230
182
  artifacts = fileState.artifacts;
231
-
232
183
  if (!(!artifactName || !artifacts)) {
233
184
  _context2.next = 19;
234
185
  break;
235
186
  }
236
-
237
187
  _this2.setBinaryURL();
238
-
239
188
  return _context2.abrupt("return");
240
-
241
189
  case 19:
242
190
  _context2.prev = 19;
243
191
  _context2.next = 22;
244
192
  return mediaClient.file.getArtifactURL(artifacts, artifactName, collectionName);
245
-
246
193
  case 22:
247
194
  _fileSrc = _context2.sent;
248
-
249
195
  _this2.setFileSrc(_fileSrc);
250
-
251
196
  _context2.next = 30;
252
197
  break;
253
-
254
198
  case 26:
255
199
  _context2.prev = 26;
256
200
  _context2.t0 = _context2["catch"](19);
257
201
  onError = _this2.props.onError;
258
-
259
202
  if (onError && _context2.t0 instanceof Error) {
260
203
  onError(_context2.t0);
261
204
  }
262
-
263
205
  case 30:
264
206
  case "end":
265
207
  return _context2.stop();
@@ -267,11 +209,9 @@ export var InlinePlayerBase = /*#__PURE__*/function (_Component) {
267
209
  }
268
210
  }, _callee2, null, [[19, 26]]);
269
211
  }));
270
-
271
212
  function next(_x) {
272
213
  return _next.apply(this, arguments);
273
214
  }
274
-
275
215
  return next;
276
216
  }()
277
217
  });
@@ -292,30 +232,27 @@ export var InlinePlayerBase = /*#__PURE__*/function (_Component) {
292
232
  key: "render",
293
233
  value: function render() {
294
234
  var _this3 = this;
295
-
296
235
  var _this$props4 = this.props,
297
- onClick = _this$props4.onClick,
298
- dimensions = _this$props4.dimensions,
299
- originalDimensions = _this$props4.originalDimensions,
300
- selected = _this$props4.selected,
301
- testId = _this$props4.testId,
302
- identifier = _this$props4.identifier,
303
- forwardRef = _this$props4.forwardRef,
304
- autoplay = _this$props4.autoplay,
305
- cardPreview = _this$props4.cardPreview,
306
- onFullscreenChange = _this$props4.onFullscreenChange;
236
+ onClick = _this$props4.onClick,
237
+ dimensions = _this$props4.dimensions,
238
+ originalDimensions = _this$props4.originalDimensions,
239
+ selected = _this$props4.selected,
240
+ testId = _this$props4.testId,
241
+ identifier = _this$props4.identifier,
242
+ forwardRef = _this$props4.forwardRef,
243
+ autoplay = _this$props4.autoplay,
244
+ cardPreview = _this$props4.cardPreview,
245
+ onFullscreenChange = _this$props4.onFullscreenChange;
307
246
  var _this$state = this.state,
308
- fileSrc = _this$state.fileSrc,
309
- isUploading = _this$state.isUploading,
310
- progress = _this$state.progress;
311
-
247
+ fileSrc = _this$state.fileSrc,
248
+ isUploading = _this$state.isUploading,
249
+ progress = _this$state.progress;
312
250
  if (!fileSrc) {
313
251
  return /*#__PURE__*/React.createElement(CardLoading, {
314
252
  testId: testId,
315
253
  dimensions: dimensions
316
254
  });
317
255
  }
318
-
319
256
  return /*#__PURE__*/React.createElement(InlinePlayerWrapper, {
320
257
  testId: testId || 'media-card-inline-player',
321
258
  selected: {
@@ -349,14 +286,11 @@ export var InlinePlayerBase = /*#__PURE__*/function (_Component) {
349
286
  }) : null);
350
287
  }
351
288
  }]);
352
-
353
289
  return InlinePlayerBase;
354
290
  }(Component);
355
-
356
291
  _defineProperty(InlinePlayerBase, "defaultProps", {
357
292
  dimensions: defaultImageCardDimensions
358
293
  });
359
-
360
294
  var InlinePlayerForwardRef = /*#__PURE__*/React.forwardRef(function (props, ref) {
361
295
  return /*#__PURE__*/React.createElement(InlinePlayerBase, _extends({}, props, {
362
296
  forwardRef: ref
@@ -3,23 +3,19 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
3
3
  import { lazy } from 'react';
4
4
  export var InlinePlayerLazy = /*#__PURE__*/lazy( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
5
5
  var _yield$import, InlinePlayer;
6
-
7
6
  return _regeneratorRuntime.wrap(function _callee$(_context) {
8
7
  while (1) {
9
8
  switch (_context.prev = _context.next) {
10
9
  case 0:
11
10
  _context.next = 2;
12
- return import(
13
- /* webpackChunkName: "@atlaskit-internal_media-card-inlineplayer" */
11
+ return import( /* webpackChunkName: "@atlaskit-internal_media-card-inlineplayer" */
14
12
  './inlinePlayer');
15
-
16
13
  case 2:
17
14
  _yield$import = _context.sent;
18
15
  InlinePlayer = _yield$import.InlinePlayer;
19
16
  return _context.abrupt("return", {
20
17
  default: InlinePlayer
21
18
  });
22
-
23
19
  case 5:
24
20
  case "end":
25
21
  return _context.stop();
@@ -3,10 +3,10 @@ import { jsx } from '@emotion/react';
3
3
  import { inlinePlayerWrapperStyles, inlinePlayerClassName } from './styles/styles';
4
4
  export var InlinePlayerWrapper = function InlinePlayerWrapper(props) {
5
5
  var testId = props.testId,
6
- selected = props.selected,
7
- dimensions = props.dimensions,
8
- onClick = props.onClick,
9
- innerRef = props.innerRef;
6
+ selected = props.selected,
7
+ dimensions = props.dimensions,
8
+ onClick = props.onClick,
9
+ innerRef = props.innerRef;
10
10
  return jsx("div", {
11
11
  id: "inlinePlayerWrapper",
12
12
  "data-testid": testId,
@@ -5,40 +5,28 @@ import _inherits from "@babel/runtime/helpers/inherits";
5
5
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
6
6
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
7
7
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
8
-
9
8
  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; }
10
-
11
9
  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) { _defineProperty(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; }
12
-
13
10
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
14
-
15
11
  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; } }
16
-
17
12
  import React from 'react';
18
13
  import { withMediaAnalyticsContext } from '@atlaskit/media-common';
19
14
  import { UnhandledErrorCard } from './ui/unhandledErrorCard';
20
15
  import { withAnalyticsEvents } from '@atlaskit/analytics-next';
21
16
  import { fireMediaCardEvent } from '../utils/analytics';
22
-
23
17
  var WrappedMediaCardAnalyticsErrorBoundary = /*#__PURE__*/function (_React$Component) {
24
18
  _inherits(WrappedMediaCardAnalyticsErrorBoundary, _React$Component);
25
-
26
19
  var _super = _createSuper(WrappedMediaCardAnalyticsErrorBoundary);
27
-
28
20
  function WrappedMediaCardAnalyticsErrorBoundary(props) {
29
21
  var _this;
30
-
31
22
  _classCallCheck(this, WrappedMediaCardAnalyticsErrorBoundary);
32
-
33
23
  _this = _super.call(this, props);
34
-
35
24
  _defineProperty(_assertThisInitialized(_this), "fireOperationalEvent", function (error, info) {
36
25
  var _window, _window$navigator;
37
-
38
26
  var _this$props = _this.props,
39
- _this$props$data = _this$props.data,
40
- data = _this$props$data === void 0 ? {} : _this$props$data,
41
- createAnalyticsEvent = _this$props.createAnalyticsEvent;
27
+ _this$props$data = _this$props.data,
28
+ data = _this$props$data === void 0 ? {} : _this$props$data,
29
+ createAnalyticsEvent = _this$props.createAnalyticsEvent;
42
30
  var payload = {
43
31
  eventType: 'operational',
44
32
  action: 'failed',
@@ -52,30 +40,25 @@ var WrappedMediaCardAnalyticsErrorBoundary = /*#__PURE__*/function (_React$Compo
52
40
  };
53
41
  fireMediaCardEvent(payload, createAnalyticsEvent);
54
42
  });
55
-
56
43
  _defineProperty(_assertThisInitialized(_this), "handleOnClick", function (event) {
57
44
  try {
58
45
  var _this$props$onClick, _this$props2;
59
-
60
46
  (_this$props$onClick = (_this$props2 = _this.props).onClick) === null || _this$props$onClick === void 0 ? void 0 : _this$props$onClick.call(_this$props2, {
61
47
  event: event
62
48
  });
63
49
  } catch (e) {}
64
50
  });
65
-
66
51
  _this.state = {
67
52
  hasError: false
68
53
  };
69
54
  return _this;
70
55
  }
71
-
72
56
  _createClass(WrappedMediaCardAnalyticsErrorBoundary, [{
73
57
  key: "componentDidCatch",
74
58
  value: function componentDidCatch(error, info) {
75
59
  try {
76
60
  this.fireOperationalEvent(error, info);
77
61
  } catch (e) {}
78
-
79
62
  this.setState({
80
63
  hasError: true
81
64
  });
@@ -85,27 +68,22 @@ var WrappedMediaCardAnalyticsErrorBoundary = /*#__PURE__*/function (_React$Compo
85
68
  value: function render() {
86
69
  var hasError = this.state.hasError;
87
70
  var _this$props3 = this.props,
88
- dimensions = _this$props3.dimensions,
89
- children = _this$props3.children;
90
-
71
+ dimensions = _this$props3.dimensions,
72
+ children = _this$props3.children;
91
73
  if (hasError) {
92
74
  return /*#__PURE__*/React.createElement(UnhandledErrorCard, {
93
75
  dimensions: dimensions,
94
76
  onClick: this.handleOnClick
95
77
  });
96
78
  }
97
-
98
79
  return children;
99
80
  }
100
81
  }]);
101
-
102
82
  return WrappedMediaCardAnalyticsErrorBoundary;
103
83
  }(React.Component);
104
-
105
84
  _defineProperty(WrappedMediaCardAnalyticsErrorBoundary, "displayName", 'MediaCardAnalyticsErrorBoundary');
106
-
107
85
  var packageName = "@atlaskit/media-card";
108
- var packageVersion = "74.5.0";
86
+ var packageVersion = "74.5.2";
109
87
  var MediaCardAnalyticsErrorBoundary = withMediaAnalyticsContext({
110
88
  packageVersion: packageVersion,
111
89
  packageName: packageName,
@@ -1,6 +1,4 @@
1
1
  import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
-
3
2
  var _templateObject;
4
-
5
3
  import { keyframes } from '@emotion/react';
6
4
  export var spin = keyframes(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n to { transform: rotate(360deg); }\n"])));
@@ -1,10 +1,10 @@
1
1
  import { borderRadius } from '@atlaskit/media-ui';
2
2
  import { getSelectionStyles, SelectionStyle, hideNativeBrowserTextSelectionStyles } from '@atlaskit/editor-shared-styles/selection';
3
+
3
4
  /*
4
5
  * Used to display the blue border around a selected card without
5
6
  * shrinking the image OR growing the card size
6
7
  */
7
-
8
8
  export var getSelectedBorderStyle = function getSelectedBorderStyle(_ref) {
9
9
  var selected = _ref.selected;
10
10
  return "\n ".concat(hideNativeBrowserTextSelectionStyles, "\n\n &::after {\n content: '';\n width: 100%;\n height: 100%;\n position: absolute;\n top: 0;\n box-sizing: border-box;\n pointer-events: none;\n ").concat(borderRadius, "\n ").concat(selected ? getSelectionStyles([SelectionStyle.Border]) : '', "\n }\n ");
@@ -1,7 +1,5 @@
1
1
  import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
-
3
2
  var _templateObject, _templateObject2;
4
-
5
3
  import { css } from '@emotion/react';
6
4
  import { fontFamily } from '@atlaskit/theme/constants';
7
5
  import { fadeIn } from '@atlaskit/media-ui';
@@ -1,7 +1,5 @@
1
1
  import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
-
3
2
  var _templateObject, _templateObject2;
4
-
5
3
  import { css } from '@emotion/react';
6
4
  import { borderRadius } from '@atlaskit/theme/constants';
7
5
  import { getCSSUnitValue } from '../../utils/getCSSUnitValue';
@@ -9,20 +7,17 @@ import { breakpointStyles } from '../../utils/breakpoint';
9
7
  import { getSelectedBorderStyle } from './getSelectedBorderStyle';
10
8
  import { getDimensionsWithDefault } from '../../utils/lightCards/getDimensionsWithDefault';
11
9
  export var inlinePlayerClassName = 'media-card-inline-player';
12
-
13
10
  var getWrapperHeight = function getWrapperHeight(dimensions) {
14
11
  return dimensions && dimensions.height ? "height: ".concat(getCSSUnitValue(dimensions.height), "; max-height: 100%;") : '';
15
12
  };
16
-
17
13
  var getWrapperWidth = function getWrapperWidth(dimensions) {
18
14
  return dimensions && dimensions.width ? "width: ".concat(getCSSUnitValue(dimensions.width), "; max-width: 100%;") : '';
19
15
  };
20
-
21
16
  export var wrapperStyles = function wrapperStyles(_ref) {
22
17
  var dimensions = _ref.dimensions,
23
- _ref$breakpointSize = _ref.breakpointSize,
24
- breakpointSize = _ref$breakpointSize === void 0 ? 'medium' : _ref$breakpointSize,
25
- shouldUsePointerCursor = _ref.shouldUsePointerCursor;
18
+ _ref$breakpointSize = _ref.breakpointSize,
19
+ breakpointSize = _ref$breakpointSize === void 0 ? 'medium' : _ref$breakpointSize,
20
+ shouldUsePointerCursor = _ref.shouldUsePointerCursor;
26
21
  return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n ", "\n ", "\n cursor: ", ";\n"])), breakpointStyles({
27
22
  breakpointSize: breakpointSize
28
23
  }), getWrapperHeight(dimensions), getWrapperWidth(dimensions), shouldUsePointerCursor ? 'pointer' : 'default');
@@ -30,7 +25,7 @@ export var wrapperStyles = function wrapperStyles(_ref) {
30
25
  wrapperStyles.displayName = 'CardViewWrapper';
31
26
  export var inlinePlayerWrapperStyles = function inlinePlayerWrapperStyles(_ref2) {
32
27
  var dimensions = _ref2.dimensions,
33
- selected = _ref2.selected;
28
+ selected = _ref2.selected;
34
29
  return css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n width: ", ";\n height: ", ";\n overflow: hidden;\n border-radius: ", "px;\n position: relative;\n max-width: 100%;\n max-height: 100%;\n\n ", "\n\n video {\n width: 100%;\n height: 100%;\n }\n"])), getDimensionsWithDefault(dimensions).width || '100%', getDimensionsWithDefault(dimensions).height || 'auto', borderRadius(), getSelectedBorderStyle(selected));
35
30
  };
36
31
  inlinePlayerWrapperStyles.displayName = 'InlinePlayerWrapper';
@@ -3,36 +3,27 @@ import _createClass from "@babel/runtime/helpers/createClass";
3
3
  import _inherits from "@babel/runtime/helpers/inherits";
4
4
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
5
5
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
6
-
7
6
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
8
-
9
7
  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; } }
10
-
11
8
  import React from 'react';
12
9
  import { CardActionIconButtonVariant, CardActionsView } from '../../../utils/cardActions';
13
10
  import { ActionsBarWrapper } from './actionsBarWrapper';
14
11
  export var ActionsBar = /*#__PURE__*/function (_React$Component) {
15
12
  _inherits(ActionsBar, _React$Component);
16
-
17
13
  var _super = _createSuper(ActionsBar);
18
-
19
14
  function ActionsBar() {
20
15
  _classCallCheck(this, ActionsBar);
21
-
22
16
  return _super.apply(this, arguments);
23
17
  }
24
-
25
18
  _createClass(ActionsBar, [{
26
19
  key: "render",
27
20
  value: function render() {
28
21
  var _this$props = this.props,
29
- isFixed = _this$props.isFixed,
30
- actions = _this$props.actions;
31
-
22
+ isFixed = _this$props.isFixed,
23
+ actions = _this$props.actions;
32
24
  if (actions.length === 0) {
33
25
  return null;
34
26
  }
35
-
36
27
  return /*#__PURE__*/React.createElement(ActionsBarWrapper, {
37
28
  isFixed: isFixed
38
29
  }, /*#__PURE__*/React.createElement(CardActionsView, {
@@ -41,6 +32,5 @@ export var ActionsBar = /*#__PURE__*/function (_React$Component) {
41
32
  }));
42
33
  }
43
34
  }]);
44
-
45
35
  return ActionsBar;
46
36
  }(React.Component);
@@ -1,7 +1,5 @@
1
1
  import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
-
3
2
  var _templateObject;
4
-
5
3
  import { css } from '@emotion/react';
6
4
  import { transition } from '../../styles';
7
5
  export var actionsBarClassName = 'media-card-actions-bar';
@@ -1,7 +1,5 @@
1
1
  import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
-
3
2
  var _templateObject;
4
-
5
3
  import { css } from '@emotion/react';
6
4
  import { transition } from '../../styles';
7
5
  import { N90A } from '@atlaskit/theme/colors';
@@ -1,14 +1,10 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
-
3
2
  var _responsiveSettings;
4
-
5
3
  export var Breakpoint;
6
-
7
4
  (function (Breakpoint) {
8
5
  Breakpoint["SMALL"] = "small";
9
6
  Breakpoint["LARGE"] = "large";
10
7
  })(Breakpoint || (Breakpoint = {}));
11
-
12
8
  export var responsiveSettings = (_responsiveSettings = {}, _defineProperty(_responsiveSettings, Breakpoint.SMALL, {
13
9
  fontSize: 11,
14
10
  lineHeight: 14,
@@ -3,7 +3,7 @@ import { jsx } from '@emotion/react';
3
3
  import { iconMessageWrapperStyles } from './styles';
4
4
  export var IconMessageWrapper = function IconMessageWrapper(props) {
5
5
  var animated = props.animated,
6
- reducedFont = props.reducedFont;
6
+ reducedFont = props.reducedFont;
7
7
  return jsx("div", {
8
8
  id: "iconMessageWrapper",
9
9
  css: iconMessageWrapperStyles({
@@ -5,10 +5,10 @@ import { messages } from '@atlaskit/media-ui';
5
5
  import { FormattedMessage } from 'react-intl-next';
6
6
  export var IconMessage = function IconMessage(_ref) {
7
7
  var messageDescriptor = _ref.messageDescriptor,
8
- _ref$animated = _ref.animated,
9
- animated = _ref$animated === void 0 ? false : _ref$animated,
10
- _ref$reducedFont = _ref.reducedFont,
11
- reducedFont = _ref$reducedFont === void 0 ? false : _ref$reducedFont;
8
+ _ref$animated = _ref.animated,
9
+ animated = _ref$animated === void 0 ? false : _ref$animated,
10
+ _ref$reducedFont = _ref.reducedFont,
11
+ reducedFont = _ref$reducedFont === void 0 ? false : _ref$reducedFont;
12
12
  return /*#__PURE__*/React.createElement(IconMessageWrapper, {
13
13
  animated: animated,
14
14
  reducedFont: reducedFont
@@ -1,18 +1,14 @@
1
1
  import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
-
3
2
  var _templateObject, _templateObject2, _templateObject3, _templateObject4;
4
-
5
3
  import { css, keyframes } from '@emotion/react';
6
4
  import { N300 } from '@atlaskit/theme/colors';
7
5
  var breatheAnimation = keyframes(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n 0% { opacity: 1}\n 50% { opacity: 0.3 }\n 100% { opacity: 1; }"])));
8
6
  var animatedStyles = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n animation-name: ", ";\n animation-duration: 3.5s;\n animation-timing-function: ease-in-out;\n animation-iteration-count: infinite;\n"])), breatheAnimation);
9
-
10
7
  var getStylesBasedOnProps = function getStylesBasedOnProps(_ref) {
11
8
  var animated = _ref.animated,
12
- reducedFont = _ref.reducedFont;
9
+ reducedFont = _ref.reducedFont;
13
10
  return css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n overflow: hidden;\n opacity: 1;\n font-weight: 450;\n ", "\n color: ", ";\n text-align: center;\n ", "\n margin-bottom: -1em;\n padding: 3px 10px;\n"])), reducedFont ? 'font-size: 0.7em;' : '', "var(--ds-text-subtlest, ".concat(N300, ")"), animated ? animatedStyles : '');
14
11
  };
15
-
16
12
  export var iconMessageWrapperStyles = function iconMessageWrapperStyles(props) {
17
13
  return css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n ", "\n"])), getStylesBasedOnProps(props));
18
14
  };