@atlaskit/media-card 79.15.7 → 79.15.9

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 (78) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/cjs/card/card.js +1 -1
  3. package/dist/cjs/card/inlinePlayerWrapper-compiled.js +1 -1
  4. package/dist/cjs/card/media-card-analytics-error-boundary.js +1 -1
  5. package/dist/cjs/card/svgView/svgImage-compiled.js +1 -1
  6. package/dist/cjs/card/ui/actionsBar/actionsBarWrapper-compiled.js +1 -1
  7. package/dist/cjs/card/ui/actionsBar/cardActions/cardActionButton-compiled.js +1 -1
  8. package/dist/cjs/card/ui/blanket/blanket-compiled.js +1 -1
  9. package/dist/cjs/card/ui/iconMessage/iconMessageWrapper-compiled.js +1 -1
  10. package/dist/cjs/card/ui/iconWrapper/iconWrapper-compiled.js +1 -1
  11. package/dist/cjs/card/ui/imageRenderer/imageRendererV2.js +1 -1
  12. package/dist/cjs/card/ui/imageRenderer/wrapper.js +1 -1
  13. package/dist/cjs/card/ui/playButton/playButtonBackground-compiled.js +1 -1
  14. package/dist/cjs/card/ui/playButton/playButtonWrapper-compiled.js +1 -1
  15. package/dist/cjs/card/ui/progressBar/styledBar-compiled.js +1 -1
  16. package/dist/cjs/card/ui/tickBox/tickBoxWrapper-compiled.js +1 -1
  17. package/dist/cjs/card/ui/titleBox/failedTitleBox.js +1 -1
  18. package/dist/cjs/card/ui/titleBox/titleBoxComponents-compiled.js +1 -1
  19. package/dist/cjs/card/ui/unhandledErrorCard/unhandledErrorCard-compiled.js +1 -1
  20. package/dist/cjs/card/ui/wrapper/imageContainer-compiled.js +1 -1
  21. package/dist/cjs/card/ui/wrapper/wrapper-compiled.js +1 -1
  22. package/dist/cjs/inline/loader.js +1 -1
  23. package/dist/cjs/utils/analytics/analytics.js +5 -2
  24. package/dist/cjs/utils/ufoExperiences.js +1 -1
  25. package/dist/es2019/card/card.js +1 -1
  26. package/dist/es2019/card/inlinePlayerWrapper-compiled.js +1 -1
  27. package/dist/es2019/card/media-card-analytics-error-boundary.js +1 -1
  28. package/dist/es2019/card/svgView/svgImage-compiled.js +1 -1
  29. package/dist/es2019/card/ui/actionsBar/actionsBarWrapper-compiled.js +1 -1
  30. package/dist/es2019/card/ui/actionsBar/cardActions/cardActionButton-compiled.js +1 -1
  31. package/dist/es2019/card/ui/blanket/blanket-compiled.js +1 -1
  32. package/dist/es2019/card/ui/iconMessage/iconMessageWrapper-compiled.js +1 -1
  33. package/dist/es2019/card/ui/iconWrapper/iconWrapper-compiled.js +1 -1
  34. package/dist/es2019/card/ui/imageRenderer/imageRendererV2.js +1 -1
  35. package/dist/es2019/card/ui/imageRenderer/wrapper.js +1 -1
  36. package/dist/es2019/card/ui/playButton/playButtonBackground-compiled.js +1 -1
  37. package/dist/es2019/card/ui/playButton/playButtonWrapper-compiled.js +1 -1
  38. package/dist/es2019/card/ui/progressBar/styledBar-compiled.js +1 -1
  39. package/dist/es2019/card/ui/tickBox/tickBoxWrapper-compiled.js +1 -1
  40. package/dist/es2019/card/ui/titleBox/failedTitleBox.js +1 -1
  41. package/dist/es2019/card/ui/titleBox/titleBoxComponents-compiled.js +1 -1
  42. package/dist/es2019/card/ui/unhandledErrorCard/unhandledErrorCard-compiled.js +1 -1
  43. package/dist/es2019/card/ui/wrapper/imageContainer-compiled.js +1 -1
  44. package/dist/es2019/card/ui/wrapper/wrapper-compiled.js +1 -1
  45. package/dist/es2019/inline/loader.js +1 -1
  46. package/dist/es2019/utils/analytics/analytics.js +23 -17
  47. package/dist/es2019/utils/ufoExperiences.js +1 -1
  48. package/dist/esm/card/card.js +1 -1
  49. package/dist/esm/card/inlinePlayerWrapper-compiled.js +1 -1
  50. package/dist/esm/card/media-card-analytics-error-boundary.js +1 -1
  51. package/dist/esm/card/svgView/svgImage-compiled.js +1 -1
  52. package/dist/esm/card/ui/actionsBar/actionsBarWrapper-compiled.js +1 -1
  53. package/dist/esm/card/ui/actionsBar/cardActions/cardActionButton-compiled.js +1 -1
  54. package/dist/esm/card/ui/blanket/blanket-compiled.js +1 -1
  55. package/dist/esm/card/ui/iconMessage/iconMessageWrapper-compiled.js +1 -1
  56. package/dist/esm/card/ui/iconWrapper/iconWrapper-compiled.js +1 -1
  57. package/dist/esm/card/ui/imageRenderer/imageRendererV2.js +1 -1
  58. package/dist/esm/card/ui/imageRenderer/wrapper.js +1 -1
  59. package/dist/esm/card/ui/playButton/playButtonBackground-compiled.js +1 -1
  60. package/dist/esm/card/ui/playButton/playButtonWrapper-compiled.js +1 -1
  61. package/dist/esm/card/ui/progressBar/styledBar-compiled.js +1 -1
  62. package/dist/esm/card/ui/tickBox/tickBoxWrapper-compiled.js +1 -1
  63. package/dist/esm/card/ui/titleBox/failedTitleBox.js +1 -1
  64. package/dist/esm/card/ui/titleBox/titleBoxComponents-compiled.js +1 -1
  65. package/dist/esm/card/ui/unhandledErrorCard/unhandledErrorCard-compiled.js +1 -1
  66. package/dist/esm/card/ui/wrapper/imageContainer-compiled.js +1 -1
  67. package/dist/esm/card/ui/wrapper/wrapper-compiled.js +1 -1
  68. package/dist/esm/inline/loader.js +1 -1
  69. package/dist/esm/utils/analytics/analytics.js +5 -2
  70. package/dist/esm/utils/ufoExperiences.js +1 -1
  71. package/example-helpers/svg-helpers/cardContainer.tsx +9 -3
  72. package/example-helpers/svg-helpers/controls.tsx +1 -1
  73. package/example-helpers/svg-helpers/dimensionPicker.tsx +2 -2
  74. package/example-helpers/svg-helpers/mediaApiTweaks.ts +6 -6
  75. package/example-helpers/svg-helpers/svgContainer.tsx +2 -2
  76. package/example-helpers/svg-helpers/toggle.tsx +1 -1
  77. package/example-helpers/svg-helpers/uploader.ts +6 -2
  78. package/package.json +10 -10
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/media-card
2
2
 
3
+ ## 79.15.9
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 79.15.8
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 79.15.7
4
16
 
5
17
  ### Patch Changes
@@ -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 = "79.15.6";
23
+ var packageVersion = "0.0.0-development";
24
24
  var CardBase = exports.CardBase = function CardBase(_ref) {
25
25
  var identifier = _ref.identifier,
26
26
  otherProps = (0, _objectWithoutProperties2.default)(_ref, _excluded);
@@ -1,4 +1,4 @@
1
- /* inlinePlayerWrapper-compiled.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* inlinePlayerWrapper-compiled.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -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 = "79.15.6";
90
+ var packageVersion = "0.0.0-development";
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)({
@@ -1,4 +1,4 @@
1
- /* svgImage-compiled.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* svgImage-compiled.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -1,4 +1,4 @@
1
- /* actionsBarWrapper-compiled.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* actionsBarWrapper-compiled.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  "use strict";
3
3
 
4
4
  var _typeof = require("@babel/runtime/helpers/typeof");
@@ -1,4 +1,4 @@
1
- /* cardActionButton-compiled.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* cardActionButton-compiled.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -1,4 +1,4 @@
1
- /* blanket-compiled.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* blanket-compiled.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  "use strict";
3
3
 
4
4
  var _typeof = require("@babel/runtime/helpers/typeof");
@@ -1,4 +1,4 @@
1
- /* iconMessageWrapper-compiled.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* iconMessageWrapper-compiled.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  "use strict";
3
3
 
4
4
  var _typeof = require("@babel/runtime/helpers/typeof");
@@ -1,4 +1,4 @@
1
- /* iconWrapper-compiled.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* iconWrapper-compiled.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  "use strict";
3
3
 
4
4
  var _typeof = require("@babel/runtime/helpers/typeof");
@@ -1,4 +1,4 @@
1
- /* imageRendererV2.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* imageRendererV2.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -1,4 +1,4 @@
1
- /* wrapper.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* wrapper.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  "use strict";
3
3
 
4
4
  var _typeof = require("@babel/runtime/helpers/typeof");
@@ -1,4 +1,4 @@
1
- /* playButtonBackground-compiled.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* playButtonBackground-compiled.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  "use strict";
3
3
 
4
4
  var _typeof = require("@babel/runtime/helpers/typeof");
@@ -1,4 +1,4 @@
1
- /* playButtonWrapper-compiled.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* playButtonWrapper-compiled.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  "use strict";
3
3
 
4
4
  var _typeof = require("@babel/runtime/helpers/typeof");
@@ -1,4 +1,4 @@
1
- /* styledBar-compiled.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* styledBar-compiled.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -1,4 +1,4 @@
1
- /* tickBoxWrapper-compiled.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* tickBoxWrapper-compiled.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  "use strict";
3
3
 
4
4
  var _typeof = require("@babel/runtime/helpers/typeof");
@@ -1,4 +1,4 @@
1
- /* failedTitleBox.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* failedTitleBox.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -1,4 +1,4 @@
1
- /* titleBoxComponents-compiled.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* titleBoxComponents-compiled.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  "use strict";
3
3
 
4
4
  var _typeof = require("@babel/runtime/helpers/typeof");
@@ -1,4 +1,4 @@
1
- /* unhandledErrorCard-compiled.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* unhandledErrorCard-compiled.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -1,4 +1,4 @@
1
- /* imageContainer-compiled.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* imageContainer-compiled.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  "use strict";
3
3
 
4
4
  var _typeof = require("@babel/runtime/helpers/typeof");
@@ -1,4 +1,4 @@
1
- /* wrapper-compiled.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* wrapper-compiled.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -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: "79.15.6",
119
+ packageName: "0.0.0-development",
120
120
  componentName: 'mediaInlineCard',
121
121
  component: 'mediaInlineCard'
122
122
  };
@@ -23,11 +23,12 @@ var getFileAttributes = exports.getFileAttributes = function getFileAttributes(m
23
23
  };
24
24
  };
25
25
  var getRenderSucceededEventPayload = exports.getRenderSucceededEventPayload = function getRenderSucceededEventPayload(fileAttributes, performanceAttributes, ssrReliability, traceContext, metadataTraceContext, samplingRate) {
26
+ var isSamplingEnabled = samplingRate !== undefined && samplingRate < 1;
26
27
  return {
27
28
  eventType: 'operational',
28
29
  action: 'succeeded',
29
30
  actionSubject: 'mediaCardRender',
30
- attributes: _objectSpread({
31
+ attributes: _objectSpread(_objectSpread({
31
32
  fileMimetype: fileAttributes.fileMimetype,
32
33
  fileAttributes: fileAttributes,
33
34
  performanceAttributes: performanceAttributes,
@@ -35,7 +36,9 @@ var getRenderSucceededEventPayload = exports.getRenderSucceededEventPayload = fu
35
36
  ssrReliability: ssrReliability,
36
37
  traceContext: traceContext,
37
38
  metadataTraceContext: metadataTraceContext
38
- }, samplingRate !== undefined && {
39
+ }, isSamplingEnabled && {
40
+ isSamplingEnabled: isSamplingEnabled
41
+ }), samplingRate !== undefined && {
39
42
  samplingRate: samplingRate
40
43
  })
41
44
  };
@@ -19,7 +19,7 @@ var _globalScope = require("./globalScope/globalScope");
19
19
  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; }
20
20
  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; }
21
21
  var packageName = "@atlaskit/media-card";
22
- var packageVersion = "79.15.6";
22
+ var packageVersion = "0.0.0-development";
23
23
  var SAMPLE_RATE = 0.05;
24
24
 
25
25
  /**
@@ -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 = "79.15.6";
12
+ const packageVersion = "0.0.0-development";
13
13
  export const CardBase = ({
14
14
  identifier,
15
15
  ...otherProps
@@ -1,4 +1,4 @@
1
- /* inlinePlayerWrapper-compiled.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* inlinePlayerWrapper-compiled.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import "./inlinePlayerWrapper-compiled.compiled.css";
4
4
  import * as React from 'react';
@@ -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 = "79.15.6";
69
+ const packageVersion = "0.0.0-development";
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({
@@ -1,4 +1,4 @@
1
- /* svgImage-compiled.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* svgImage-compiled.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  import "./svgImage-compiled.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React, { useState, useRef, useEffect, useCallback } from 'react';
@@ -1,4 +1,4 @@
1
- /* actionsBarWrapper-compiled.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* actionsBarWrapper-compiled.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  import "./actionsBarWrapper-compiled.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* cardActionButton-compiled.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* cardActionButton-compiled.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import "./cardActionButton-compiled.compiled.css";
4
4
  import * as React from 'react';
@@ -1,4 +1,4 @@
1
- /* blanket-compiled.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* blanket-compiled.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  import "./blanket-compiled.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* iconMessageWrapper-compiled.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* iconMessageWrapper-compiled.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  import "./iconMessageWrapper-compiled.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* iconWrapper-compiled.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* iconWrapper-compiled.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  import "./iconWrapper-compiled.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* imageRendererV2.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* imageRendererV2.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  import "./imageRendererV2.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React, { useState, useRef, useEffect, useLayoutEffect } from 'react';
@@ -1,4 +1,4 @@
1
- /* wrapper.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* wrapper.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  import "./wrapper.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* playButtonBackground-compiled.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* playButtonBackground-compiled.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  import "./playButtonBackground-compiled.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* playButtonWrapper-compiled.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* playButtonWrapper-compiled.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  import "./playButtonWrapper-compiled.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* styledBar-compiled.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* styledBar-compiled.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  import "./styledBar-compiled.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* tickBoxWrapper-compiled.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* tickBoxWrapper-compiled.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  import "./tickBoxWrapper-compiled.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* failedTitleBox.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* failedTitleBox.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  import "./failedTitleBox.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React from 'react';
@@ -1,4 +1,4 @@
1
- /* titleBoxComponents-compiled.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* titleBoxComponents-compiled.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  import "./titleBoxComponents-compiled.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* unhandledErrorCard-compiled.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* unhandledErrorCard-compiled.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  import "./unhandledErrorCard-compiled.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* imageContainer-compiled.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* imageContainer-compiled.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  import "./imageContainer-compiled.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* wrapper-compiled.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* wrapper-compiled.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import "./wrapper-compiled.compiled.css";
4
4
  import * as React from 'react';
@@ -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: "79.15.6",
40
+ packageName: "0.0.0-development",
41
41
  componentName: 'mediaInlineCard',
42
42
  component: 'mediaInlineCard'
43
43
  };
@@ -8,23 +8,29 @@ export const getFileAttributes = (metadata, fileStatus) => ({
8
8
  fileSize: metadata.size,
9
9
  fileStatus
10
10
  });
11
- export const getRenderSucceededEventPayload = (fileAttributes, performanceAttributes, ssrReliability, traceContext, metadataTraceContext, samplingRate) => ({
12
- eventType: 'operational',
13
- action: 'succeeded',
14
- actionSubject: 'mediaCardRender',
15
- attributes: {
16
- fileMimetype: fileAttributes.fileMimetype,
17
- fileAttributes,
18
- performanceAttributes,
19
- status: 'success',
20
- ssrReliability,
21
- traceContext,
22
- metadataTraceContext,
23
- ...(samplingRate !== undefined && {
24
- samplingRate
25
- })
26
- }
27
- });
11
+ export const getRenderSucceededEventPayload = (fileAttributes, performanceAttributes, ssrReliability, traceContext, metadataTraceContext, samplingRate) => {
12
+ const isSamplingEnabled = samplingRate !== undefined && samplingRate < 1;
13
+ return {
14
+ eventType: 'operational',
15
+ action: 'succeeded',
16
+ actionSubject: 'mediaCardRender',
17
+ attributes: {
18
+ fileMimetype: fileAttributes.fileMimetype,
19
+ fileAttributes,
20
+ performanceAttributes,
21
+ status: 'success',
22
+ ssrReliability,
23
+ traceContext,
24
+ metadataTraceContext,
25
+ ...(isSamplingEnabled && {
26
+ isSamplingEnabled
27
+ }),
28
+ ...(samplingRate !== undefined && {
29
+ samplingRate
30
+ })
31
+ }
32
+ };
33
+ };
28
34
  export const getDownloadSucceededEventPayload = (fileAttributes, traceContext, metadataTraceContext) => ({
29
35
  eventType: 'operational',
30
36
  action: 'succeeded',
@@ -9,7 +9,7 @@ import { getMediaEnvironment, getMediaRegion } from '@atlaskit/media-client';
9
9
  import { getActiveInteraction } from '@atlaskit/react-ufo/interaction-metrics';
10
10
  import { getMediaGlobalScope } from './globalScope/globalScope';
11
11
  const packageName = "@atlaskit/media-card";
12
- const packageVersion = "79.15.6";
12
+ const packageVersion = "0.0.0-development";
13
13
  const SAMPLE_RATE = 0.05;
14
14
 
15
15
  /**
@@ -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 = "79.15.6";
14
+ var packageVersion = "0.0.0-development";
15
15
  export var CardBase = function CardBase(_ref) {
16
16
  var identifier = _ref.identifier,
17
17
  otherProps = _objectWithoutProperties(_ref, _excluded);
@@ -1,4 +1,4 @@
1
- /* inlinePlayerWrapper-compiled.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* inlinePlayerWrapper-compiled.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
4
4
  import "./inlinePlayerWrapper-compiled.compiled.css";
@@ -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 = "79.15.6";
83
+ var packageVersion = "0.0.0-development";
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({
@@ -1,4 +1,4 @@
1
- /* svgImage-compiled.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* svgImage-compiled.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
3
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
4
4
  import "./svgImage-compiled.compiled.css";
@@ -1,4 +1,4 @@
1
- /* actionsBarWrapper-compiled.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* actionsBarWrapper-compiled.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  import "./actionsBarWrapper-compiled.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* cardActionButton-compiled.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* cardActionButton-compiled.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
4
4
  import "./cardActionButton-compiled.compiled.css";
@@ -1,4 +1,4 @@
1
- /* blanket-compiled.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* blanket-compiled.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  import "./blanket-compiled.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* iconMessageWrapper-compiled.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* iconMessageWrapper-compiled.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  import "./iconMessageWrapper-compiled.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* iconWrapper-compiled.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* iconWrapper-compiled.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  import "./iconWrapper-compiled.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* imageRendererV2.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* imageRendererV2.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
3
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
4
4
  import "./imageRendererV2.compiled.css";
@@ -1,4 +1,4 @@
1
- /* wrapper.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* wrapper.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  import "./wrapper.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* playButtonBackground-compiled.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* playButtonBackground-compiled.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  import "./playButtonBackground-compiled.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* playButtonWrapper-compiled.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* playButtonWrapper-compiled.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  import "./playButtonWrapper-compiled.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* styledBar-compiled.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* styledBar-compiled.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
3
  import "./styledBar-compiled.compiled.css";
4
4
  import * as React from 'react';
@@ -1,4 +1,4 @@
1
- /* tickBoxWrapper-compiled.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* tickBoxWrapper-compiled.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  import "./tickBoxWrapper-compiled.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* failedTitleBox.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* failedTitleBox.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  import "./failedTitleBox.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React from 'react';
@@ -1,4 +1,4 @@
1
- /* titleBoxComponents-compiled.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* titleBoxComponents-compiled.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  import "./titleBoxComponents-compiled.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* unhandledErrorCard-compiled.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* unhandledErrorCard-compiled.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
3
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
4
4
  import _createClass from "@babel/runtime/helpers/createClass";
@@ -1,4 +1,4 @@
1
- /* imageContainer-compiled.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* imageContainer-compiled.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  import "./imageContainer-compiled.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* wrapper-compiled.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* wrapper-compiled.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
4
4
  import "./wrapper-compiled.compiled.css";
@@ -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: "79.15.6",
104
+ packageName: "0.0.0-development",
105
105
  componentName: 'mediaInlineCard',
106
106
  component: 'mediaInlineCard'
107
107
  };
@@ -14,11 +14,12 @@ export var getFileAttributes = function getFileAttributes(metadata, fileStatus)
14
14
  };
15
15
  };
16
16
  export var getRenderSucceededEventPayload = function getRenderSucceededEventPayload(fileAttributes, performanceAttributes, ssrReliability, traceContext, metadataTraceContext, samplingRate) {
17
+ var isSamplingEnabled = samplingRate !== undefined && samplingRate < 1;
17
18
  return {
18
19
  eventType: 'operational',
19
20
  action: 'succeeded',
20
21
  actionSubject: 'mediaCardRender',
21
- attributes: _objectSpread({
22
+ attributes: _objectSpread(_objectSpread({
22
23
  fileMimetype: fileAttributes.fileMimetype,
23
24
  fileAttributes: fileAttributes,
24
25
  performanceAttributes: performanceAttributes,
@@ -26,7 +27,9 @@ export var getRenderSucceededEventPayload = function getRenderSucceededEventPayl
26
27
  ssrReliability: ssrReliability,
27
28
  traceContext: traceContext,
28
29
  metadataTraceContext: metadataTraceContext
29
- }, samplingRate !== undefined && {
30
+ }, isSamplingEnabled && {
31
+ isSamplingEnabled: isSamplingEnabled
32
+ }), samplingRate !== undefined && {
30
33
  samplingRate: samplingRate
31
34
  })
32
35
  };
@@ -13,7 +13,7 @@ import { getMediaEnvironment, getMediaRegion } from '@atlaskit/media-client';
13
13
  import { getActiveInteraction } from '@atlaskit/react-ufo/interaction-metrics';
14
14
  import { getMediaGlobalScope } from './globalScope/globalScope';
15
15
  var packageName = "@atlaskit/media-card";
16
- var packageVersion = "79.15.6";
16
+ var packageVersion = "0.0.0-development";
17
17
  var SAMPLE_RATE = 0.05;
18
18
 
19
19
  /**
@@ -4,10 +4,16 @@
4
4
  */
5
5
  import React from 'react';
6
6
 
7
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
7
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766
8
8
  import { jsx } from '@emotion/react';
9
9
 
10
- export const CardBox = ({ title, children }: { title: string; children: React.ReactNode }) => (
10
+ export const CardBox = ({
11
+ title,
12
+ children,
13
+ }: {
14
+ title: string;
15
+ children: React.ReactNode;
16
+ }): jsx.JSX.Element => (
11
17
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
12
18
  <div style={{ marginBottom: '10px' }}>
13
19
  {/* eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop, @atlaskit/design-system/use-heading -- Ignored via go/DSP-18766 */}
@@ -16,7 +22,7 @@ export const CardBox = ({ title, children }: { title: string; children: React.Re
16
22
  </div>
17
23
  );
18
24
 
19
- export const CardRow = ({ children }: { children: React.ReactNode }) => (
25
+ export const CardRow = ({ children }: { children: React.ReactNode }): jsx.JSX.Element => (
20
26
  <div
21
27
  style={{
22
28
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
@@ -17,6 +17,6 @@ const controlsBoxStyles = xcss({
17
17
  },
18
18
  });
19
19
 
20
- export const ControlsBox = ({ children }: { children: ReactNode }) => (
20
+ export const ControlsBox = ({ children }: { children: ReactNode }): React.JSX.Element => (
21
21
  <Box xcss={controlsBoxStyles}>{children}</Box>
22
22
  );
@@ -29,7 +29,7 @@ export const DimensionPicker = ({
29
29
  targetName: string;
30
30
  dimensionName: string;
31
31
  onChange: OnValue;
32
- }) => {
32
+ }): React.JSX.Element => {
33
33
  const rangeId = `range-${targetName}-${dimensionName}`;
34
34
 
35
35
  const [isPercent, setIsPercent] = useState(initialUnit === '%');
@@ -83,7 +83,7 @@ export const DimensionsPicker = ({
83
83
  onContainerHeight: OnValue;
84
84
  onImageWidth: OnValue;
85
85
  onImageHeight: OnValue;
86
- }) => {
86
+ }): React.JSX.Element => {
87
87
  return (
88
88
  <Flex alignItems="stretch" direction="row" xcss={wrapperStyles}>
89
89
  <DimensionPicker
@@ -7,7 +7,7 @@ type Endpoints = Partial<Record<keyof MediaApi, number>>;
7
7
  export const delayApiResponses = (
8
8
  mediaApi: MediaApi,
9
9
  { getImage, getItems, getFileBinary }: Endpoints,
10
- ) => {
10
+ ): void => {
11
11
  const baseGetImage = mediaApi.getImage;
12
12
  mediaApi.getImage = async (...params) => {
13
13
  await sleep(getImage);
@@ -28,7 +28,7 @@ export const delayApiResponses = (
28
28
  };
29
29
 
30
30
  export const errorApiResponses = {
31
- getFileBinary: (mediaApi: MediaApi, error?: Error) => {
31
+ getFileBinary: (mediaApi: MediaApi, error?: Error): void => {
32
32
  mediaApi.getFileBinary = async () => {
33
33
  throw (
34
34
  error ||
@@ -39,7 +39,7 @@ export const errorApiResponses = {
39
39
  );
40
40
  };
41
41
  },
42
- getFileImage: (mediaApi: MediaApi, error?: Error) => {
42
+ getFileImage: (mediaApi: MediaApi, error?: Error): void => {
43
43
  mediaApi.getImage = async () => {
44
44
  throw (
45
45
  error ||
@@ -50,7 +50,7 @@ export const errorApiResponses = {
50
50
  );
51
51
  };
52
52
  },
53
- getArtifactBinary: (mediaApi: MediaApi, error?: Error) => {
53
+ getArtifactBinary: (mediaApi: MediaApi, error?: Error): void => {
54
54
  mediaApi.getArtifactBinary = async (...params) => {
55
55
  throw (
56
56
  error ||
@@ -61,7 +61,7 @@ export const errorApiResponses = {
61
61
  );
62
62
  };
63
63
  },
64
- uploadArtifact: (mediaApi: MediaApi, error?: Error) => {
64
+ uploadArtifact: (mediaApi: MediaApi, error?: Error): void => {
65
65
  mediaApi.uploadArtifact = async (...params) => {
66
66
  throw (
67
67
  error ||
@@ -72,7 +72,7 @@ export const errorApiResponses = {
72
72
  );
73
73
  };
74
74
  },
75
- deleteArtifact: (mediaApi: MediaApi, error?: Error) => {
75
+ deleteArtifact: (mediaApi: MediaApi, error?: Error): void => {
76
76
  mediaApi.deleteArtifact = async (...params) => {
77
77
  throw (
78
78
  error ||
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import React from 'react';
6
6
 
7
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
7
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766
8
8
  import { jsx } from '@emotion/react';
9
9
 
10
10
  // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
@@ -28,7 +28,7 @@ export const SvgContainer = ({
28
28
  children: React.ReactNode;
29
29
  width?: string;
30
30
  height?: string;
31
- }) => {
31
+ }): jsx.JSX.Element => {
32
32
  return (
33
33
  <Box xcss={containerStyles} style={{ width, height }}>
34
34
  {children}
@@ -23,7 +23,7 @@ export const ToggleBox = ({
23
23
  }: Omit<React.ComponentProps<typeof Toggle>, 'onChange'> & {
24
24
  label: string;
25
25
  onChange: (val: boolean) => void;
26
- }) => {
26
+ }): React.JSX.Element => {
27
27
  const [id] = useState(makeid());
28
28
 
29
29
  return (
@@ -3,12 +3,16 @@ import { type SyntheticEvent, useState } from 'react';
3
3
  import { type FileIdentifier } from '@atlaskit/media-client';
4
4
  import { useMediaClient } from '@atlaskit/media-client-react';
5
5
 
6
- export const useSvgUploader = (collectionName?: string) => {
6
+ export const useSvgUploader = (collectionName?: string): {
7
+ status: string;
8
+ identifier: FileIdentifier | undefined;
9
+ uploadFn: (event: SyntheticEvent<HTMLInputElement>) => Promise<void>;
10
+ } => {
7
11
  const mediaClient = useMediaClient();
8
12
  const [identifier, setIdentifier] = useState<FileIdentifier>();
9
13
  const [status, setStatus] = useState<string>('');
10
14
 
11
- const uploadFn = async (event: SyntheticEvent<HTMLInputElement>) => {
15
+ const uploadFn = async (event: SyntheticEvent<HTMLInputElement>): Promise<void> => {
12
16
  if (!event.currentTarget.files || !event.currentTarget.files.length) {
13
17
  return;
14
18
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/media-card",
3
- "version": "79.15.7",
3
+ "version": "79.15.9",
4
4
  "description": "Includes all media card related components, CardView, CardViewSmall, Card...",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -32,9 +32,9 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@atlaskit/analytics-next": "^11.1.0",
35
- "@atlaskit/dropdown-menu": "^16.5.0",
35
+ "@atlaskit/dropdown-menu": "^16.7.0",
36
36
  "@atlaskit/editor-shared-styles": "^3.10.0",
37
- "@atlaskit/icon": "^32.0.0",
37
+ "@atlaskit/icon": "^33.0.0",
38
38
  "@atlaskit/link": "^3.3.0",
39
39
  "@atlaskit/media-client": "^36.0.0",
40
40
  "@atlaskit/media-client-react": "^5.0.0",
@@ -48,12 +48,12 @@
48
48
  "@atlaskit/react-ufo": "^5.4.0",
49
49
  "@atlaskit/spinner": "^19.0.0",
50
50
  "@atlaskit/theme": "^22.0.0",
51
- "@atlaskit/tokens": "^11.0.0",
52
- "@atlaskit/tooltip": "^20.14.0",
51
+ "@atlaskit/tokens": "^11.1.0",
52
+ "@atlaskit/tooltip": "^21.0.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.6",
56
+ "@compiled/react": "^0.20.0",
57
57
  "classnames": "^2.2.5",
58
58
  "eventemitter2": "^4.1.0",
59
59
  "lru_map": "^0.4.1",
@@ -71,18 +71,18 @@
71
71
  "@af/integration-testing": "workspace:^",
72
72
  "@atlaskit/analytics-listeners": "^10.0.0",
73
73
  "@atlaskit/analytics-namespaced-context": "^7.2.0",
74
- "@atlaskit/form": "^15.3.0",
75
- "@atlaskit/inline-message": "^15.5.0",
74
+ "@atlaskit/form": "^15.4.0",
75
+ "@atlaskit/inline-message": "^15.6.0",
76
76
  "@atlaskit/media-core": "^37.0.0",
77
77
  "@atlaskit/media-picker": "^70.1.0",
78
78
  "@atlaskit/media-state": "^2.0.0",
79
79
  "@atlaskit/media-test-data": "^3.2.0",
80
80
  "@atlaskit/media-test-helpers": "^40.0.0",
81
81
  "@atlaskit/radio": "^8.4.0",
82
- "@atlaskit/range": "^9.3.0",
82
+ "@atlaskit/range": "^10.0.0",
83
83
  "@atlaskit/ssr": "workspace:^",
84
84
  "@atlaskit/toggle": "^15.2.0",
85
- "@atlassian/a11y-jest-testing": "^0.11.0",
85
+ "@atlassian/a11y-jest-testing": "^0.10.0",
86
86
  "@atlassian/feature-flags-test-utils": "^1.0.0",
87
87
  "@atlassian/ufo": "^0.7.0",
88
88
  "@testing-library/dom": "^10.1.0",