@atlaskit/media-card 74.1.9 → 74.2.0

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 (37) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/cjs/card/card.js +11 -6
  3. package/dist/cjs/card/cardAnalytics.js +6 -5
  4. package/dist/cjs/card/getCardPreview/helpers.js +3 -3
  5. package/dist/cjs/card/getCardPreview/index.js +6 -6
  6. package/dist/cjs/utils/analytics.js +14 -8
  7. package/dist/cjs/utils/ufoExperiences.js +1 -1
  8. package/dist/cjs/utils/videoSnapshot.js +36 -11
  9. package/dist/cjs/version.json +1 -1
  10. package/dist/es2019/card/card.js +13 -6
  11. package/dist/es2019/card/cardAnalytics.js +6 -6
  12. package/dist/es2019/card/getCardPreview/helpers.js +2 -2
  13. package/dist/es2019/card/getCardPreview/index.js +5 -4
  14. package/dist/es2019/utils/analytics.js +14 -8
  15. package/dist/es2019/utils/ufoExperiences.js +1 -1
  16. package/dist/es2019/utils/videoSnapshot.js +36 -5
  17. package/dist/es2019/version.json +1 -1
  18. package/dist/esm/card/card.js +13 -6
  19. package/dist/esm/card/cardAnalytics.js +6 -5
  20. package/dist/esm/card/getCardPreview/helpers.js +3 -3
  21. package/dist/esm/card/getCardPreview/index.js +6 -6
  22. package/dist/esm/utils/analytics.js +14 -8
  23. package/dist/esm/utils/ufoExperiences.js +1 -1
  24. package/dist/esm/utils/videoSnapshot.js +36 -10
  25. package/dist/esm/version.json +1 -1
  26. package/dist/types/card/card.d.ts +1 -0
  27. package/dist/types/card/cardAnalytics.d.ts +3 -3
  28. package/dist/types/card/getCardPreview/helpers.d.ts +1 -1
  29. package/dist/types/card/getCardPreview/index.d.ts +3 -2
  30. package/dist/types/utils/analytics.d.ts +8 -8
  31. package/dist/types-ts4.0/card/card.d.ts +1 -0
  32. package/dist/types-ts4.0/card/cardAnalytics.d.ts +3 -3
  33. package/dist/types-ts4.0/card/getCardPreview/helpers.d.ts +1 -1
  34. package/dist/types-ts4.0/card/getCardPreview/index.d.ts +3 -2
  35. package/dist/types-ts4.0/utils/analytics.d.ts +8 -8
  36. package/package.json +7 -8
  37. package/report.api.md +192 -85
@@ -22,6 +22,7 @@ import ReactDOM from 'react-dom';
22
22
  import { withAnalyticsEvents } from '@atlaskit/analytics-next';
23
23
  import { withMediaAnalyticsContext } from '@atlaskit/media-common';
24
24
  import DownloadIcon from '@atlaskit/icon/glyph/download';
25
+ import { getRandomHex } from '@atlaskit/media-common';
25
26
  import { globalMediaEventEmitter, isDifferentIdentifier, isFileIdentifier, RECENTS_COLLECTION, isImageRepresentationReady, isExternalImageIdentifier, isProcessedFileState, imageResizeModeToFileImageMode } from '@atlaskit/media-client';
26
27
  import { MediaViewer } from '@atlaskit/media-viewer';
27
28
  import { injectIntl, IntlProvider } from 'react-intl-next';
@@ -43,7 +44,7 @@ import { getMediaCardCursor } from '../utils/getMediaCardCursor';
43
44
  import { completeUfoExperience, startUfoExperience } from '../utils/ufoExperiences';
44
45
  import { generateUniqueId } from '../utils/generateUniqueId';
45
46
  var packageName = "@atlaskit/media-card";
46
- var packageVersion = "74.1.9";
47
+ var packageVersion = "74.2.0";
47
48
  export var CardBase = /*#__PURE__*/function (_Component) {
48
49
  _inherits(CardBase, _Component);
49
50
 
@@ -53,6 +54,7 @@ export var CardBase = /*#__PURE__*/function (_Component) {
53
54
  // of Cards regardless of whether it shares the same file (either internal or external)
54
55
  // We initialise timeElapsedTillCommenced
55
56
  // to avoid extra branching on a possibly undefined value.
57
+ // Generate unique traceId for file
56
58
  function CardBase(props) {
57
59
  var _this;
58
60
 
@@ -80,6 +82,10 @@ export var CardBase = /*#__PURE__*/function (_Component) {
80
82
 
81
83
  _defineProperty(_assertThisInitialized(_this), "timeElapsedTillCommenced", performance.now());
82
84
 
85
+ _defineProperty(_assertThisInitialized(_this), "traceContext", {
86
+ traceId: getRandomHex(16)
87
+ });
88
+
83
89
  _defineProperty(_assertThisInitialized(_this), "getImageURLParams", function (_ref) {
84
90
  var collection = _ref.collectionName;
85
91
  return _objectSpread(_objectSpread({
@@ -115,7 +121,7 @@ export var CardBase = /*#__PURE__*/function (_Component) {
115
121
  }) : undefined;
116
122
  });
117
123
 
118
- _defineProperty(_assertThisInitialized(_this), "getCardPreviewParams", function (identifier, fileState) {
124
+ _defineProperty(_assertThisInitialized(_this), "getCardPreviewParams", function (identifier, fileState, traceContext) {
119
125
  var isBannedLocalPreview = _this.state.isBannedLocalPreview;
120
126
  var id = identifier.id;
121
127
  var _this$props2 = _this.props,
@@ -133,7 +139,8 @@ export var CardBase = /*#__PURE__*/function (_Component) {
133
139
  imageUrlParams: _this.getImageURLParams(identifier),
134
140
  mediaBlobUrlAttrs: _this.getMediaBlobUrlAttrs(identifier, fileState),
135
141
  createAnalyticsEvent: createAnalyticsEvent,
136
- featureFlags: _this.props.featureFlags
142
+ featureFlags: _this.props.featureFlags,
143
+ traceId: traceContext.traceId
137
144
  };
138
145
  });
139
146
 
@@ -197,7 +204,7 @@ export var CardBase = /*#__PURE__*/function (_Component) {
197
204
  switch (_context2.prev = _context2.next) {
198
205
  case 0:
199
206
  _context2.prev = 0;
200
- params = _this.getCardPreviewParams(identifier, fileState);
207
+ params = _this.getCardPreviewParams(identifier, fileState, _this.traceContext);
201
208
  _context2.next = 4;
202
209
  return getCardPreview(params);
203
210
 
@@ -973,7 +980,7 @@ export var CardBase = /*#__PURE__*/function (_Component) {
973
980
  status = _this$state7.status,
974
981
  error = _this$state7.error;
975
982
  var createAnalyticsEvent = this.props.createAnalyticsEvent;
976
- createAnalyticsEvent && _fireOperationalEvent(createAnalyticsEvent, status, this.fileAttributes, this.getPerformanceAttributes(), this.ssrReliability, error);
983
+ createAnalyticsEvent && _fireOperationalEvent(createAnalyticsEvent, status, this.fileAttributes, this.getPerformanceAttributes(), this.ssrReliability, error, this.traceContext);
977
984
  completeUfoExperience(this.internalOccurrenceKey, status, this.fileAttributes, this.fileStateFlags, this.ssrReliability, error);
978
985
  }
979
986
  }, {
@@ -985,7 +992,7 @@ export var CardBase = /*#__PURE__*/function (_Component) {
985
992
  overall: {
986
993
  durationSincePageStart: this.timeElapsedTillCommenced
987
994
  }
988
- });
995
+ }, this.traceContext);
989
996
  startUfoExperience(this.internalOccurrenceKey);
990
997
  }
991
998
  }, {
@@ -2,6 +2,7 @@ import { fireMediaCardEvent, getRenderSucceededEventPayload, getRenderErrorEvent
2
2
  import { MediaCardError } from '../errors';
3
3
  export var fireOperationalEvent = function fireOperationalEvent(createAnalyticsEvent, status, fileAttributes, performanceAttributes, ssrReliability) {
4
4
  var error = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : new MediaCardError('missing-error-data');
5
+ var traceContext = arguments.length > 6 ? arguments[6] : undefined;
5
6
 
6
7
  var fireEvent = function fireEvent(payload) {
7
8
  return fireMediaCardEvent(payload, createAnalyticsEvent);
@@ -9,20 +10,20 @@ export var fireOperationalEvent = function fireOperationalEvent(createAnalyticsE
9
10
 
10
11
  switch (status) {
11
12
  case 'complete':
12
- fireEvent(getRenderSucceededEventPayload(fileAttributes, performanceAttributes, ssrReliability));
13
+ fireEvent(getRenderSucceededEventPayload(fileAttributes, performanceAttributes, ssrReliability, traceContext));
13
14
  break;
14
15
 
15
16
  case 'failed-processing':
16
- fireEvent(getRenderFailedFileStatusPayload(fileAttributes, performanceAttributes, ssrReliability));
17
+ fireEvent(getRenderFailedFileStatusPayload(fileAttributes, performanceAttributes, ssrReliability, traceContext));
17
18
  break;
18
19
 
19
20
  case 'error':
20
- fireEvent(getRenderErrorEventPayload(fileAttributes, performanceAttributes, error, ssrReliability));
21
+ fireEvent(getRenderErrorEventPayload(fileAttributes, performanceAttributes, error, ssrReliability, traceContext));
21
22
  break;
22
23
  }
23
24
  };
24
- export var fireCommencedEvent = function fireCommencedEvent(createAnalyticsEvent, fileAttributes, performanceAttributes) {
25
- fireMediaCardEvent(getRenderCommencedEventPayload(fileAttributes, performanceAttributes), createAnalyticsEvent);
25
+ export var fireCommencedEvent = function fireCommencedEvent(createAnalyticsEvent, fileAttributes, performanceAttributes, traceContext) {
26
+ fireMediaCardEvent(getRenderCommencedEventPayload(fileAttributes, performanceAttributes, traceContext), createAnalyticsEvent);
26
27
  };
27
28
  export var fireCopiedEvent = function fireCopiedEvent(createAnalyticsEvent, fileId, cardRef) {
28
29
  if (typeof window.getSelection === 'function') {
@@ -157,7 +157,7 @@ export var getCardPreviewFromFilePreview = /*#__PURE__*/function () {
157
157
  };
158
158
  }();
159
159
  export var getCardPreviewFromBackend = /*#__PURE__*/function () {
160
- var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee4(mediaClient, id, params) {
160
+ var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee4(mediaClient, id, params, traceId) {
161
161
  var blob;
162
162
  return _regeneratorRuntime.wrap(function _callee4$(_context4) {
163
163
  while (1) {
@@ -165,7 +165,7 @@ export var getCardPreviewFromBackend = /*#__PURE__*/function () {
165
165
  case 0:
166
166
  _context4.prev = 0;
167
167
  _context4.next = 3;
168
- return mediaClient.getImage(id, params);
168
+ return mediaClient.getImage(id, params, undefined, undefined, traceId);
169
169
 
170
170
  case 3:
171
171
  blob = _context4.sent;
@@ -188,7 +188,7 @@ export var getCardPreviewFromBackend = /*#__PURE__*/function () {
188
188
  }, _callee4, null, [[0, 7]]);
189
189
  }));
190
190
 
191
- return function getCardPreviewFromBackend(_x4, _x5, _x6) {
191
+ return function getCardPreviewFromBackend(_x4, _x5, _x6, _x7) {
192
192
  return _ref4.apply(this, arguments);
193
193
  };
194
194
  }();
@@ -77,13 +77,13 @@ var extendAndCachePreview = function extendAndCachePreview(id, mode, preview, me
77
77
 
78
78
  export var getCardPreview = /*#__PURE__*/function () {
79
79
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(_ref) {
80
- var mediaClient, id, _ref$dimensions, dimensions, filePreview, onLocalPreviewError, isRemotePreviewReady, imageUrlParams, mediaBlobUrlAttrs, createAnalyticsEvent, featureFlags, mode, cachedPreview, dimensionsAreBigger, localPreview, remotePreview;
80
+ var mediaClient, id, _ref$dimensions, dimensions, filePreview, onLocalPreviewError, isRemotePreviewReady, imageUrlParams, mediaBlobUrlAttrs, createAnalyticsEvent, featureFlags, traceId, mode, cachedPreview, dimensionsAreBigger, localPreview, remotePreview;
81
81
 
82
82
  return _regeneratorRuntime.wrap(function _callee$(_context) {
83
83
  while (1) {
84
84
  switch (_context.prev = _context.next) {
85
85
  case 0:
86
- mediaClient = _ref.mediaClient, id = _ref.id, _ref$dimensions = _ref.dimensions, dimensions = _ref$dimensions === void 0 ? {} : _ref$dimensions, filePreview = _ref.filePreview, onLocalPreviewError = _ref.onLocalPreviewError, isRemotePreviewReady = _ref.isRemotePreviewReady, imageUrlParams = _ref.imageUrlParams, mediaBlobUrlAttrs = _ref.mediaBlobUrlAttrs, createAnalyticsEvent = _ref.createAnalyticsEvent, featureFlags = _ref.featureFlags;
86
+ mediaClient = _ref.mediaClient, id = _ref.id, _ref$dimensions = _ref.dimensions, dimensions = _ref$dimensions === void 0 ? {} : _ref$dimensions, filePreview = _ref.filePreview, onLocalPreviewError = _ref.onLocalPreviewError, isRemotePreviewReady = _ref.isRemotePreviewReady, imageUrlParams = _ref.imageUrlParams, mediaBlobUrlAttrs = _ref.mediaBlobUrlAttrs, createAnalyticsEvent = _ref.createAnalyticsEvent, featureFlags = _ref.featureFlags, traceId = _ref.traceId;
87
87
  mode = imageUrlParams.mode;
88
88
  cachedPreview = cardPreviewCache.get(id, mode);
89
89
  dimensionsAreBigger = isBigger(cachedPreview === null || cachedPreview === void 0 ? void 0 : cachedPreview.dimensions, dimensions);
@@ -165,7 +165,7 @@ export var getCardPreview = /*#__PURE__*/function () {
165
165
 
166
166
  case 22:
167
167
  _context.next = 24;
168
- return fetchAndCacheRemotePreview(mediaClient, id, dimensions, imageUrlParams, mediaBlobUrlAttrs);
168
+ return fetchAndCacheRemotePreview(mediaClient, id, dimensions, imageUrlParams, mediaBlobUrlAttrs, traceId);
169
169
 
170
170
  case 24:
171
171
  remotePreview = _context.sent;
@@ -245,14 +245,14 @@ export var isSSRDataPreview = function isSSRDataPreview(preview) {
245
245
  return preview.source === 'ssr-data';
246
246
  };
247
247
  export var fetchAndCacheRemotePreview = /*#__PURE__*/function () {
248
- var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(mediaClient, id, dimensions, params, mediaBlobUrlAttrs) {
248
+ var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(mediaClient, id, dimensions, params, mediaBlobUrlAttrs, traceId) {
249
249
  var remotePreview;
250
250
  return _regeneratorRuntime.wrap(function _callee2$(_context2) {
251
251
  while (1) {
252
252
  switch (_context2.prev = _context2.next) {
253
253
  case 0:
254
254
  _context2.next = 2;
255
- return getCardPreviewFromBackend(mediaClient, id, params);
255
+ return getCardPreviewFromBackend(mediaClient, id, params, traceId);
256
256
 
257
257
  case 2:
258
258
  remotePreview = _context2.sent;
@@ -268,7 +268,7 @@ export var fetchAndCacheRemotePreview = /*#__PURE__*/function () {
268
268
  }, _callee2);
269
269
  }));
270
270
 
271
- return function fetchAndCacheRemotePreview(_x2, _x3, _x4, _x5, _x6) {
271
+ return function fetchAndCacheRemotePreview(_x2, _x3, _x4, _x5, _x6, _x7) {
272
272
  return _ref4.apply(this, arguments);
273
273
  };
274
274
  }();
@@ -41,18 +41,21 @@ export var getRenderPreviewableCardPayload = function getRenderPreviewableCardPa
41
41
  }
42
42
  };
43
43
  };
44
- export var getRenderCommencedEventPayload = function getRenderCommencedEventPayload(fileAttributes, performanceAttributes) {
44
+ export var getRenderCommencedEventPayload = function getRenderCommencedEventPayload(fileAttributes, performanceAttributes, traceContext) {
45
45
  return {
46
46
  eventType: 'operational',
47
47
  action: 'commenced',
48
48
  actionSubject: 'mediaCardRender',
49
49
  attributes: {
50
50
  fileAttributes: fileAttributes,
51
- performanceAttributes: performanceAttributes
51
+ performanceAttributes: performanceAttributes,
52
+ traceContext: {
53
+ traceId: traceContext.traceId
54
+ }
52
55
  }
53
56
  };
54
57
  };
55
- export var getRenderSucceededEventPayload = function getRenderSucceededEventPayload(fileAttributes, performanceAttributes, ssrReliability) {
58
+ export var getRenderSucceededEventPayload = function getRenderSucceededEventPayload(fileAttributes, performanceAttributes, ssrReliability, traceContext) {
56
59
  return {
57
60
  eventType: 'operational',
58
61
  action: 'succeeded',
@@ -61,7 +64,8 @@ export var getRenderSucceededEventPayload = function getRenderSucceededEventPayl
61
64
  fileAttributes: fileAttributes,
62
65
  performanceAttributes: performanceAttributes,
63
66
  status: 'success',
64
- ssrReliability: ssrReliability
67
+ ssrReliability: ssrReliability,
68
+ traceContext: traceContext
65
69
  }
66
70
  };
67
71
  };
@@ -135,7 +139,7 @@ export var extractErrorInfo = function extractErrorInfo(error) {
135
139
  errorDetail: getRenderErrorErrorDetail(error)
136
140
  };
137
141
  };
138
- export var getRenderErrorEventPayload = function getRenderErrorEventPayload(fileAttributes, performanceAttributes, error, ssrReliability) {
142
+ export var getRenderErrorEventPayload = function getRenderErrorEventPayload(fileAttributes, performanceAttributes, error, ssrReliability, traceContext) {
139
143
  return {
140
144
  eventType: 'operational',
141
145
  action: 'failed',
@@ -146,11 +150,12 @@ export var getRenderErrorEventPayload = function getRenderErrorEventPayload(file
146
150
  status: 'fail'
147
151
  }, extractErrorInfo(error)), {}, {
148
152
  request: getRenderErrorRequestMetadata(error),
149
- ssrReliability: ssrReliability
153
+ ssrReliability: ssrReliability,
154
+ traceContext: traceContext
150
155
  })
151
156
  };
152
157
  };
153
- export var getRenderFailedFileStatusPayload = function getRenderFailedFileStatusPayload(fileAttributes, performanceAttributes, ssrReliability) {
158
+ export var getRenderFailedFileStatusPayload = function getRenderFailedFileStatusPayload(fileAttributes, performanceAttributes, ssrReliability, traceContext) {
154
159
  return {
155
160
  eventType: 'operational',
156
161
  action: 'failed',
@@ -160,7 +165,8 @@ export var getRenderFailedFileStatusPayload = function getRenderFailedFileStatus
160
165
  performanceAttributes: performanceAttributes,
161
166
  status: 'fail',
162
167
  failReason: 'failed-processing',
163
- ssrReliability: ssrReliability
168
+ ssrReliability: ssrReliability,
169
+ traceContext: traceContext
164
170
  }
165
171
  };
166
172
  };
@@ -9,7 +9,7 @@ import { extractErrorInfo, getRenderErrorRequestMetadata, LOGGED_FEATURE_FLAG_KE
9
9
  import { MediaCardError } from '../errors';
10
10
  import { getMediaEnvironment, getMediaRegion } from '@atlaskit/media-client';
11
11
  var packageName = "@atlaskit/media-card";
12
- var packageVersion = "74.1.9";
12
+ var packageVersion = "74.2.0";
13
13
  var concurrentExperience;
14
14
 
15
15
  var getExperience = function getExperience(id) {
@@ -1,23 +1,49 @@
1
1
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
2
  import _regeneratorRuntime from "@babel/runtime/regenerator";
3
- import VideoSnapshot from 'video-snapshot';
4
3
  export var takeSnapshot = /*#__PURE__*/function () {
5
4
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(blob) {
6
- var snapshooter, dataUri;
7
5
  return _regeneratorRuntime.wrap(function _callee$(_context) {
8
6
  while (1) {
9
7
  switch (_context.prev = _context.next) {
10
8
  case 0:
11
- snapshooter = new VideoSnapshot(blob);
12
- _context.next = 3;
13
- return snapshooter.takeSnapshot();
9
+ return _context.abrupt("return", new Promise(function (resolve, reject) {
10
+ var url = URL.createObjectURL(blob);
11
+ var video = document.createElement('video');
12
+ video.preload = 'metadata';
13
+ video.src = url;
14
+ video.muted = true;
15
+ video.play().catch(function () {
16
+ return reject(new Error('failed to play video'));
17
+ });
18
+ video.addEventListener('timeupdate', function timeUpdateHandler() {
19
+ video.removeEventListener('timeupdate', timeUpdateHandler);
20
+ video.pause();
21
+ URL.revokeObjectURL(url); //create canvas to draw our first frame on.
14
22
 
15
- case 3:
16
- dataUri = _context.sent;
17
- snapshooter.end();
18
- return _context.abrupt("return", dataUri);
23
+ if (!video.videoWidth && !video.videoHeight) {
24
+ return reject(new Error('error retrieving video dimensions'));
25
+ }
19
26
 
20
- case 6:
27
+ var canvas = document.createElement('canvas');
28
+ canvas.width = video.videoWidth;
29
+ canvas.height = video.videoHeight;
30
+ var context = canvas.getContext('2d');
31
+
32
+ if (!context) {
33
+ return reject(new Error('error creating canvas context'));
34
+ }
35
+
36
+ context.drawImage(video, 0, 0, canvas.width, canvas.height);
37
+ var dataURL = canvas.toDataURL('image/jpeg', 0.85);
38
+ resolve(dataURL);
39
+ });
40
+ video.addEventListener('error', function () {
41
+ reject(new Error('failed to load video'));
42
+ URL.revokeObjectURL(url);
43
+ });
44
+ }));
45
+
46
+ case 1:
21
47
  case "end":
22
48
  return _context.stop();
23
49
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/media-card",
3
- "version": "74.1.9",
3
+ "version": "74.2.0",
4
4
  "sideEffects": false
5
5
  }
@@ -13,6 +13,7 @@ export declare class CardBase extends Component<CardBaseProps, CardState> {
13
13
  private timeElapsedTillCommenced;
14
14
  subscription?: MediaSubscription;
15
15
  private ssrData?;
16
+ private traceContext;
16
17
  static defaultProps: Partial<CardProps>;
17
18
  constructor(props: CardBaseProps);
18
19
  componentDidMount(): void;
@@ -1,9 +1,9 @@
1
- import { FileAttributes, PerformanceAttributes } from '@atlaskit/media-common';
1
+ import { FileAttributes, MediaTraceContext, PerformanceAttributes } from '@atlaskit/media-common';
2
2
  import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
3
3
  import { SSRStatus } from '../utils/analytics';
4
4
  import { CardStatus } from '../types';
5
5
  import { MediaCardError } from '../errors';
6
- export declare const fireOperationalEvent: (createAnalyticsEvent: CreateUIAnalyticsEvent, status: CardStatus, fileAttributes: FileAttributes, performanceAttributes: PerformanceAttributes, ssrReliability: SSRStatus, error?: MediaCardError) => void;
7
- export declare const fireCommencedEvent: (createAnalyticsEvent: CreateUIAnalyticsEvent, fileAttributes: FileAttributes, performanceAttributes: PerformanceAttributes) => void;
6
+ export declare const fireOperationalEvent: (createAnalyticsEvent: CreateUIAnalyticsEvent, status: CardStatus, fileAttributes: FileAttributes, performanceAttributes: PerformanceAttributes, ssrReliability: SSRStatus, error: MediaCardError | undefined, traceContext: MediaTraceContext) => void;
7
+ export declare const fireCommencedEvent: (createAnalyticsEvent: CreateUIAnalyticsEvent, fileAttributes: FileAttributes, performanceAttributes: PerformanceAttributes, traceContext: MediaTraceContext) => void;
8
8
  export declare const fireCopiedEvent: (createAnalyticsEvent: CreateUIAnalyticsEvent, fileId: string, cardRef: HTMLDivElement) => void;
9
9
  export declare const fireScreenEvent: (createAnalyticsEvent: CreateUIAnalyticsEvent, fileAttributes: FileAttributes) => void;
@@ -6,4 +6,4 @@ import { CardPreview } from '../../types';
6
6
  */
7
7
  export declare const isSupportedLocalPreview: (mediaType?: MediaType | undefined) => boolean;
8
8
  export declare const getCardPreviewFromFilePreview: (filePreview: FilePreview | Promise<FilePreview>) => Promise<CardPreview>;
9
- export declare const getCardPreviewFromBackend: (mediaClient: MediaClient, id: string, params: MediaStoreGetFileImageParams) => Promise<CardPreview>;
9
+ export declare const getCardPreviewFromBackend: (mediaClient: MediaClient, id: string, params: MediaStoreGetFileImageParams, traceId?: string | undefined) => Promise<CardPreview>;
@@ -25,6 +25,7 @@ export declare type CardPreviewParams = {
25
25
  mediaBlobUrlAttrs?: MediaBlobUrlAttrs;
26
26
  createAnalyticsEvent?: CreateUIAnalyticsEvent;
27
27
  featureFlags?: MediaFeatureFlags;
28
+ traceId?: string;
28
29
  };
29
30
  /**
30
31
  * This function will try to return a Card preview, either from cache, local preview or remote preview.
@@ -36,7 +37,7 @@ export declare type CardPreviewParams = {
36
37
  * In that case, we still want to report the local preview error to the caller, for feature realiability track.
37
38
  * hence the use of the optional callback onLocalPreviewError
38
39
  */
39
- export declare const getCardPreview: ({ mediaClient, id, dimensions, filePreview, onLocalPreviewError, isRemotePreviewReady, imageUrlParams, mediaBlobUrlAttrs, createAnalyticsEvent, featureFlags, }: CardPreviewParams) => Promise<CardPreview>;
40
+ export declare const getCardPreview: ({ mediaClient, id, dimensions, filePreview, onLocalPreviewError, isRemotePreviewReady, imageUrlParams, mediaBlobUrlAttrs, createAnalyticsEvent, featureFlags, traceId, }: CardPreviewParams) => Promise<CardPreview>;
40
41
  export declare const shouldResolvePreview: ({ status, fileState, prevDimensions, dimensions, identifier, fileImageMode, hasCardPreview, isBannedLocalPreview, featureFlags, }: {
41
42
  status: CardStatus;
42
43
  fileState: FileState;
@@ -54,4 +55,4 @@ export declare const isSSRPreview: (preview: CardPreview) => boolean;
54
55
  export declare const isSSRServerPreview: (preview: CardPreview) => boolean;
55
56
  export declare const isSSRClientPreview: (preview: CardPreview) => boolean;
56
57
  export declare const isSSRDataPreview: (preview: CardPreview) => boolean;
57
- export declare const fetchAndCacheRemotePreview: (mediaClient: MediaClient, id: string, dimensions: CardDimensions, params: MediaStoreGetFileImageParams, mediaBlobUrlAttrs?: MediaBlobUrlAttrs | undefined) => Promise<CardPreview>;
58
+ export declare const fetchAndCacheRemotePreview: (mediaClient: MediaClient, id: string, dimensions: CardDimensions, params: MediaStoreGetFileImageParams, mediaBlobUrlAttrs?: MediaBlobUrlAttrs | undefined, traceId?: string | undefined) => Promise<CardPreview>;
@@ -1,5 +1,5 @@
1
1
  import { FileDetails, MediaClientErrorReason, RequestMetadata } from '@atlaskit/media-client';
2
- import { FileAttributes, PerformanceAttributes, OperationalEventPayload, UIEventPayload, WithFileAttributes, WithPerformanceAttributes, SuccessAttributes, FailureAttributes, ScreenEventPayload, ScreenAttributes } from '@atlaskit/media-common';
2
+ import { FileAttributes, PerformanceAttributes, OperationalEventPayload, UIEventPayload, WithFileAttributes, WithPerformanceAttributes, SuccessAttributes, FailureAttributes, ScreenEventPayload, ScreenAttributes, MediaTraceContext, WithTraceContext } from '@atlaskit/media-common';
3
3
  import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
4
4
  import { MediaCardError, MediaCardErrorPrimaryReason } from '../errors';
5
5
  import { CardPreviewSource, CardDimensions } from '../types';
@@ -37,13 +37,13 @@ export declare type SSRStatus = {
37
37
  export declare type WithSSRReliability = {
38
38
  ssrReliability?: SSRStatus;
39
39
  };
40
- export declare type RenderFailedEventPayload = OperationalEventPayload<WithFileAttributes & WithPerformanceAttributes & WithSSRReliability & FailureAttributes & {
40
+ export declare type RenderFailedEventPayload = OperationalEventPayload<WithFileAttributes & WithPerformanceAttributes & WithSSRReliability & WithTraceContext & FailureAttributes & {
41
41
  failReason: FailedErrorFailReason | 'failed-processing';
42
42
  error?: MediaClientErrorReason | 'nativeError';
43
43
  request?: RequestMetadata;
44
44
  }, 'failed', 'mediaCardRender'>;
45
- export declare type RenderSucceededEventPayload = OperationalEventPayload<WithFileAttributes & WithPerformanceAttributes & WithSSRReliability & SuccessAttributes, 'succeeded', 'mediaCardRender'>;
46
- export declare type RenderCommencedEventPayload = OperationalEventPayload<WithFileAttributes & WithPerformanceAttributes, 'commenced', 'mediaCardRender'>;
45
+ export declare type RenderSucceededEventPayload = OperationalEventPayload<WithFileAttributes & WithPerformanceAttributes & WithSSRReliability & SuccessAttributes & WithTraceContext, 'succeeded', 'mediaCardRender'>;
46
+ export declare type RenderCommencedEventPayload = OperationalEventPayload<WithFileAttributes & WithPerformanceAttributes & WithTraceContext, 'commenced', 'mediaCardRender'>;
47
47
  export declare type CacheHitEventPayload = OperationalEventPayload<WithCardPreviewCacheAttributes, 'cache-hit', 'mediaCardCache'>;
48
48
  export declare type RemoteSuccessEventPayload = OperationalEventPayload<WithCardPreviewCacheAttributes, 'Remote-success', 'mediaCardCache'>;
49
49
  export declare type CopiedFileEventPayload = UIEventPayload<{}, 'copied', string>;
@@ -59,8 +59,8 @@ export declare type RenderScreenEventPayload = Omit<ScreenEventPayload<ScreenAtt
59
59
  export declare type MediaCardAnalyticsEventPayload = RenderCommencedEventPayload | RenderSucceededEventPayload | RenderFailedEventPayload | CopiedFileEventPayload | ClickedEventPayload | RenderScreenEventPayload | CacheHitEventPayload | RemoteSuccessEventPayload;
60
60
  export declare const getFileAttributes: (metadata: FileDetails, fileStatus?: import("@atlaskit/media-common").FileStatus | undefined) => FileAttributes;
61
61
  export declare const getRenderPreviewableCardPayload: (fileAttributes: FileAttributes) => RenderScreenEventPayload;
62
- export declare const getRenderCommencedEventPayload: (fileAttributes: FileAttributes, performanceAttributes: PerformanceAttributes) => RenderCommencedEventPayload;
63
- export declare const getRenderSucceededEventPayload: (fileAttributes: FileAttributes, performanceAttributes: PerformanceAttributes, ssrReliability: SSRStatus) => RenderSucceededEventPayload;
62
+ export declare const getRenderCommencedEventPayload: (fileAttributes: FileAttributes, performanceAttributes: PerformanceAttributes, traceContext: MediaTraceContext) => RenderCommencedEventPayload;
63
+ export declare const getRenderSucceededEventPayload: (fileAttributes: FileAttributes, performanceAttributes: PerformanceAttributes, ssrReliability: SSRStatus, traceContext: MediaTraceContext) => RenderSucceededEventPayload;
64
64
  export declare const getCacheHitEventPayload: (cardPreviewAttributes: CardPreviewAttributes) => CacheHitEventPayload;
65
65
  export declare const getRemoteSuccessEventPayload: (cardPreviewAttributes: CardPreviewAttributes) => RemoteSuccessEventPayload;
66
66
  export declare const getRenderFailedExternalUriPayload: (fileAttributes: FileAttributes, performanceAttributes: PerformanceAttributes) => RenderFailedEventPayload;
@@ -69,8 +69,8 @@ export declare const getRenderErrorErrorReason: (error: MediaCardError) => Media
69
69
  export declare const getRenderErrorErrorDetail: (error: MediaCardError) => string;
70
70
  export declare const getRenderErrorRequestMetadata: (error: MediaCardError) => RequestMetadata | undefined;
71
71
  export declare const extractErrorInfo: (error: MediaCardError) => MediaCardErrorInfo;
72
- export declare const getRenderErrorEventPayload: (fileAttributes: FileAttributes, performanceAttributes: PerformanceAttributes, error: MediaCardError, ssrReliability: SSRStatus) => RenderFailedEventPayload;
73
- export declare const getRenderFailedFileStatusPayload: (fileAttributes: FileAttributes, performanceAttributes: PerformanceAttributes, ssrReliability: SSRStatus) => RenderFailedEventPayload;
72
+ export declare const getRenderErrorEventPayload: (fileAttributes: FileAttributes, performanceAttributes: PerformanceAttributes, error: MediaCardError, ssrReliability: SSRStatus, traceContext: MediaTraceContext) => RenderFailedEventPayload;
73
+ export declare const getRenderFailedFileStatusPayload: (fileAttributes: FileAttributes, performanceAttributes: PerformanceAttributes, ssrReliability: SSRStatus, traceContext: MediaTraceContext) => RenderFailedEventPayload;
74
74
  export declare const getCopiedFilePayload: (fileId: string) => CopiedFileEventPayload;
75
75
  export declare function fireMediaCardEvent(payload: MediaCardAnalyticsEventPayload, createAnalyticsEvent?: CreateUIAnalyticsEvent): void;
76
76
  export declare const createAndFireMediaCardEvent: (payload: MediaCardAnalyticsEventPayload) => (createAnalyticsEvent: CreateUIAnalyticsEvent) => import("@atlaskit/analytics-next").UIAnalyticsEvent;
@@ -13,6 +13,7 @@ export declare class CardBase extends Component<CardBaseProps, CardState> {
13
13
  private timeElapsedTillCommenced;
14
14
  subscription?: MediaSubscription;
15
15
  private ssrData?;
16
+ private traceContext;
16
17
  static defaultProps: Partial<CardProps>;
17
18
  constructor(props: CardBaseProps);
18
19
  componentDidMount(): void;
@@ -1,9 +1,9 @@
1
- import { FileAttributes, PerformanceAttributes } from '@atlaskit/media-common';
1
+ import { FileAttributes, MediaTraceContext, PerformanceAttributes } from '@atlaskit/media-common';
2
2
  import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
3
3
  import { SSRStatus } from '../utils/analytics';
4
4
  import { CardStatus } from '../types';
5
5
  import { MediaCardError } from '../errors';
6
- export declare const fireOperationalEvent: (createAnalyticsEvent: CreateUIAnalyticsEvent, status: CardStatus, fileAttributes: FileAttributes, performanceAttributes: PerformanceAttributes, ssrReliability: SSRStatus, error?: MediaCardError) => void;
7
- export declare const fireCommencedEvent: (createAnalyticsEvent: CreateUIAnalyticsEvent, fileAttributes: FileAttributes, performanceAttributes: PerformanceAttributes) => void;
6
+ export declare const fireOperationalEvent: (createAnalyticsEvent: CreateUIAnalyticsEvent, status: CardStatus, fileAttributes: FileAttributes, performanceAttributes: PerformanceAttributes, ssrReliability: SSRStatus, error: MediaCardError | undefined, traceContext: MediaTraceContext) => void;
7
+ export declare const fireCommencedEvent: (createAnalyticsEvent: CreateUIAnalyticsEvent, fileAttributes: FileAttributes, performanceAttributes: PerformanceAttributes, traceContext: MediaTraceContext) => void;
8
8
  export declare const fireCopiedEvent: (createAnalyticsEvent: CreateUIAnalyticsEvent, fileId: string, cardRef: HTMLDivElement) => void;
9
9
  export declare const fireScreenEvent: (createAnalyticsEvent: CreateUIAnalyticsEvent, fileAttributes: FileAttributes) => void;
@@ -6,4 +6,4 @@ import { CardPreview } from '../../types';
6
6
  */
7
7
  export declare const isSupportedLocalPreview: (mediaType?: MediaType | undefined) => boolean;
8
8
  export declare const getCardPreviewFromFilePreview: (filePreview: FilePreview | Promise<FilePreview>) => Promise<CardPreview>;
9
- export declare const getCardPreviewFromBackend: (mediaClient: MediaClient, id: string, params: MediaStoreGetFileImageParams) => Promise<CardPreview>;
9
+ export declare const getCardPreviewFromBackend: (mediaClient: MediaClient, id: string, params: MediaStoreGetFileImageParams, traceId?: string | undefined) => Promise<CardPreview>;
@@ -25,6 +25,7 @@ export declare type CardPreviewParams = {
25
25
  mediaBlobUrlAttrs?: MediaBlobUrlAttrs;
26
26
  createAnalyticsEvent?: CreateUIAnalyticsEvent;
27
27
  featureFlags?: MediaFeatureFlags;
28
+ traceId?: string;
28
29
  };
29
30
  /**
30
31
  * This function will try to return a Card preview, either from cache, local preview or remote preview.
@@ -36,7 +37,7 @@ export declare type CardPreviewParams = {
36
37
  * In that case, we still want to report the local preview error to the caller, for feature realiability track.
37
38
  * hence the use of the optional callback onLocalPreviewError
38
39
  */
39
- export declare const getCardPreview: ({ mediaClient, id, dimensions, filePreview, onLocalPreviewError, isRemotePreviewReady, imageUrlParams, mediaBlobUrlAttrs, createAnalyticsEvent, featureFlags, }: CardPreviewParams) => Promise<CardPreview>;
40
+ export declare const getCardPreview: ({ mediaClient, id, dimensions, filePreview, onLocalPreviewError, isRemotePreviewReady, imageUrlParams, mediaBlobUrlAttrs, createAnalyticsEvent, featureFlags, traceId, }: CardPreviewParams) => Promise<CardPreview>;
40
41
  export declare const shouldResolvePreview: ({ status, fileState, prevDimensions, dimensions, identifier, fileImageMode, hasCardPreview, isBannedLocalPreview, featureFlags, }: {
41
42
  status: CardStatus;
42
43
  fileState: FileState;
@@ -54,4 +55,4 @@ export declare const isSSRPreview: (preview: CardPreview) => boolean;
54
55
  export declare const isSSRServerPreview: (preview: CardPreview) => boolean;
55
56
  export declare const isSSRClientPreview: (preview: CardPreview) => boolean;
56
57
  export declare const isSSRDataPreview: (preview: CardPreview) => boolean;
57
- export declare const fetchAndCacheRemotePreview: (mediaClient: MediaClient, id: string, dimensions: CardDimensions, params: MediaStoreGetFileImageParams, mediaBlobUrlAttrs?: MediaBlobUrlAttrs | undefined) => Promise<CardPreview>;
58
+ export declare const fetchAndCacheRemotePreview: (mediaClient: MediaClient, id: string, dimensions: CardDimensions, params: MediaStoreGetFileImageParams, mediaBlobUrlAttrs?: MediaBlobUrlAttrs | undefined, traceId?: string | undefined) => Promise<CardPreview>;
@@ -1,5 +1,5 @@
1
1
  import { FileDetails, MediaClientErrorReason, RequestMetadata } from '@atlaskit/media-client';
2
- import { FileAttributes, PerformanceAttributes, OperationalEventPayload, UIEventPayload, WithFileAttributes, WithPerformanceAttributes, SuccessAttributes, FailureAttributes, ScreenEventPayload, ScreenAttributes } from '@atlaskit/media-common';
2
+ import { FileAttributes, PerformanceAttributes, OperationalEventPayload, UIEventPayload, WithFileAttributes, WithPerformanceAttributes, SuccessAttributes, FailureAttributes, ScreenEventPayload, ScreenAttributes, MediaTraceContext, WithTraceContext } from '@atlaskit/media-common';
3
3
  import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
4
4
  import { MediaCardError, MediaCardErrorPrimaryReason } from '../errors';
5
5
  import { CardPreviewSource, CardDimensions } from '../types';
@@ -37,13 +37,13 @@ export declare type SSRStatus = {
37
37
  export declare type WithSSRReliability = {
38
38
  ssrReliability?: SSRStatus;
39
39
  };
40
- export declare type RenderFailedEventPayload = OperationalEventPayload<WithFileAttributes & WithPerformanceAttributes & WithSSRReliability & FailureAttributes & {
40
+ export declare type RenderFailedEventPayload = OperationalEventPayload<WithFileAttributes & WithPerformanceAttributes & WithSSRReliability & WithTraceContext & FailureAttributes & {
41
41
  failReason: FailedErrorFailReason | 'failed-processing';
42
42
  error?: MediaClientErrorReason | 'nativeError';
43
43
  request?: RequestMetadata;
44
44
  }, 'failed', 'mediaCardRender'>;
45
- export declare type RenderSucceededEventPayload = OperationalEventPayload<WithFileAttributes & WithPerformanceAttributes & WithSSRReliability & SuccessAttributes, 'succeeded', 'mediaCardRender'>;
46
- export declare type RenderCommencedEventPayload = OperationalEventPayload<WithFileAttributes & WithPerformanceAttributes, 'commenced', 'mediaCardRender'>;
45
+ export declare type RenderSucceededEventPayload = OperationalEventPayload<WithFileAttributes & WithPerformanceAttributes & WithSSRReliability & SuccessAttributes & WithTraceContext, 'succeeded', 'mediaCardRender'>;
46
+ export declare type RenderCommencedEventPayload = OperationalEventPayload<WithFileAttributes & WithPerformanceAttributes & WithTraceContext, 'commenced', 'mediaCardRender'>;
47
47
  export declare type CacheHitEventPayload = OperationalEventPayload<WithCardPreviewCacheAttributes, 'cache-hit', 'mediaCardCache'>;
48
48
  export declare type RemoteSuccessEventPayload = OperationalEventPayload<WithCardPreviewCacheAttributes, 'Remote-success', 'mediaCardCache'>;
49
49
  export declare type CopiedFileEventPayload = UIEventPayload<{}, 'copied', string>;
@@ -59,8 +59,8 @@ export declare type RenderScreenEventPayload = Omit<ScreenEventPayload<ScreenAtt
59
59
  export declare type MediaCardAnalyticsEventPayload = RenderCommencedEventPayload | RenderSucceededEventPayload | RenderFailedEventPayload | CopiedFileEventPayload | ClickedEventPayload | RenderScreenEventPayload | CacheHitEventPayload | RemoteSuccessEventPayload;
60
60
  export declare const getFileAttributes: (metadata: FileDetails, fileStatus?: import("@atlaskit/media-common").FileStatus | undefined) => FileAttributes;
61
61
  export declare const getRenderPreviewableCardPayload: (fileAttributes: FileAttributes) => RenderScreenEventPayload;
62
- export declare const getRenderCommencedEventPayload: (fileAttributes: FileAttributes, performanceAttributes: PerformanceAttributes) => RenderCommencedEventPayload;
63
- export declare const getRenderSucceededEventPayload: (fileAttributes: FileAttributes, performanceAttributes: PerformanceAttributes, ssrReliability: SSRStatus) => RenderSucceededEventPayload;
62
+ export declare const getRenderCommencedEventPayload: (fileAttributes: FileAttributes, performanceAttributes: PerformanceAttributes, traceContext: MediaTraceContext) => RenderCommencedEventPayload;
63
+ export declare const getRenderSucceededEventPayload: (fileAttributes: FileAttributes, performanceAttributes: PerformanceAttributes, ssrReliability: SSRStatus, traceContext: MediaTraceContext) => RenderSucceededEventPayload;
64
64
  export declare const getCacheHitEventPayload: (cardPreviewAttributes: CardPreviewAttributes) => CacheHitEventPayload;
65
65
  export declare const getRemoteSuccessEventPayload: (cardPreviewAttributes: CardPreviewAttributes) => RemoteSuccessEventPayload;
66
66
  export declare const getRenderFailedExternalUriPayload: (fileAttributes: FileAttributes, performanceAttributes: PerformanceAttributes) => RenderFailedEventPayload;
@@ -69,8 +69,8 @@ export declare const getRenderErrorErrorReason: (error: MediaCardError) => Media
69
69
  export declare const getRenderErrorErrorDetail: (error: MediaCardError) => string;
70
70
  export declare const getRenderErrorRequestMetadata: (error: MediaCardError) => RequestMetadata | undefined;
71
71
  export declare const extractErrorInfo: (error: MediaCardError) => MediaCardErrorInfo;
72
- export declare const getRenderErrorEventPayload: (fileAttributes: FileAttributes, performanceAttributes: PerformanceAttributes, error: MediaCardError, ssrReliability: SSRStatus) => RenderFailedEventPayload;
73
- export declare const getRenderFailedFileStatusPayload: (fileAttributes: FileAttributes, performanceAttributes: PerformanceAttributes, ssrReliability: SSRStatus) => RenderFailedEventPayload;
72
+ export declare const getRenderErrorEventPayload: (fileAttributes: FileAttributes, performanceAttributes: PerformanceAttributes, error: MediaCardError, ssrReliability: SSRStatus, traceContext: MediaTraceContext) => RenderFailedEventPayload;
73
+ export declare const getRenderFailedFileStatusPayload: (fileAttributes: FileAttributes, performanceAttributes: PerformanceAttributes, ssrReliability: SSRStatus, traceContext: MediaTraceContext) => RenderFailedEventPayload;
74
74
  export declare const getCopiedFilePayload: (fileId: string) => CopiedFileEventPayload;
75
75
  export declare function fireMediaCardEvent(payload: MediaCardAnalyticsEventPayload, createAnalyticsEvent?: CreateUIAnalyticsEvent): void;
76
76
  export declare const createAndFireMediaCardEvent: (payload: MediaCardAnalyticsEventPayload) => (createAnalyticsEvent: CreateUIAnalyticsEvent) => import("@atlaskit/analytics-next").UIAnalyticsEvent;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/media-card",
3
- "version": "74.1.9",
3
+ "version": "74.2.0",
4
4
  "description": "Includes all media card related components, CardView, CardViewSmall, Card...",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -40,11 +40,11 @@
40
40
  "@atlaskit/dropdown-menu": "^11.5.0",
41
41
  "@atlaskit/editor-shared-styles": "^2.2.0",
42
42
  "@atlaskit/icon": "^21.11.0",
43
- "@atlaskit/media-client": "^18.0.0",
44
- "@atlaskit/media-common": "^2.16.0",
43
+ "@atlaskit/media-client": "^18.1.0",
44
+ "@atlaskit/media-common": "^2.17.0",
45
45
  "@atlaskit/media-ui": "^22.1.0",
46
46
  "@atlaskit/media-viewer": "^47.1.0",
47
- "@atlaskit/spinner": "^15.1.0",
47
+ "@atlaskit/spinner": "^15.2.0",
48
48
  "@atlaskit/theme": "^12.2.0",
49
49
  "@atlaskit/tooltip": "^17.6.0",
50
50
  "@atlaskit/ufo": "^0.1.0",
@@ -52,8 +52,7 @@
52
52
  "classnames": "^2.2.5",
53
53
  "eventemitter2": "^4.1.0",
54
54
  "lru_map": "^0.4.1",
55
- "react-loadable": "^5.1.0",
56
- "video-snapshot": "^1.0.11"
55
+ "react-loadable": "^5.1.0"
57
56
  },
58
57
  "peerDependencies": {
59
58
  "@emotion/react": "^11.7.1",
@@ -64,7 +63,7 @@
64
63
  "devDependencies": {
65
64
  "@atlaskit/analytics-listeners": "^8.3.0",
66
65
  "@atlaskit/analytics-namespaced-context": "^6.5.0",
67
- "@atlaskit/button": "^16.3.0",
66
+ "@atlaskit/button": "^16.4.0",
68
67
  "@atlaskit/checkbox": "^12.4.0",
69
68
  "@atlaskit/docs": "*",
70
69
  "@atlaskit/inline-message": "^11.4.0",
@@ -72,7 +71,7 @@
72
71
  "@atlaskit/media-picker": "^64.0.0",
73
72
  "@atlaskit/media-test-helpers": "^30.0.0",
74
73
  "@atlaskit/radio": "^5.4.0",
75
- "@atlaskit/range": "^6.1.0",
74
+ "@atlaskit/range": "^7.0.0",
76
75
  "@atlaskit/select": "^15.7.0",
77
76
  "@atlaskit/ssr": "*",
78
77
  "@atlaskit/toggle": "^12.5.0",