@atlaskit/smart-card 30.3.0 → 30.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/cjs/state/analytics/useSmartLinkAnalytics.js +146 -216
  3. package/dist/cjs/utils/analytics/analytics.js +78 -140
  4. package/dist/cjs/utils/analytics/index.js +0 -6
  5. package/dist/cjs/view/BlockCard/components/Name.js +1 -3
  6. package/dist/cjs/view/BlockCard/views/ResolvingView.js +1 -2
  7. package/dist/cjs/view/CardWithUrl/component.js +14 -41
  8. package/dist/cjs/view/EmbedCard/components/styled.js +4 -11
  9. package/dist/cjs/view/EmbedCard/views/ErroredView.js +2 -2
  10. package/dist/cjs/view/EmbedCard/views/unresolved-view/index.js +1 -1
  11. package/dist/cjs/view/EmbedModal/components/link-info/styled.js +2 -3
  12. package/dist/cjs/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +1 -6
  13. package/dist/cjs/view/FlexibleCard/components/blocks/action-block/action-footer/index.js +1 -4
  14. package/dist/cjs/view/FlexibleCard/components/elements/link/index.js +1 -1
  15. package/dist/cjs/view/LinkUrl/index.js +1 -1
  16. package/dist/es2019/state/analytics/useSmartLinkAnalytics.js +1 -69
  17. package/dist/es2019/utils/analytics/analytics.js +1 -63
  18. package/dist/es2019/utils/analytics/index.js +1 -1
  19. package/dist/es2019/view/BlockCard/components/Name.js +1 -3
  20. package/dist/es2019/view/BlockCard/views/ResolvingView.js +1 -2
  21. package/dist/es2019/view/CardWithUrl/component.js +14 -41
  22. package/dist/es2019/view/EmbedCard/components/styled.js +4 -11
  23. package/dist/es2019/view/EmbedCard/views/ErroredView.js +2 -2
  24. package/dist/es2019/view/EmbedCard/views/unresolved-view/index.js +1 -1
  25. package/dist/es2019/view/EmbedModal/components/link-info/styled.js +2 -3
  26. package/dist/es2019/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +1 -6
  27. package/dist/es2019/view/FlexibleCard/components/blocks/action-block/action-footer/index.js +1 -4
  28. package/dist/es2019/view/FlexibleCard/components/elements/link/index.js +1 -1
  29. package/dist/es2019/view/LinkUrl/index.js +1 -1
  30. package/dist/esm/state/analytics/useSmartLinkAnalytics.js +147 -217
  31. package/dist/esm/utils/analytics/analytics.js +77 -139
  32. package/dist/esm/utils/analytics/index.js +1 -1
  33. package/dist/esm/view/BlockCard/components/Name.js +1 -3
  34. package/dist/esm/view/BlockCard/views/ResolvingView.js +1 -2
  35. package/dist/esm/view/CardWithUrl/component.js +14 -41
  36. package/dist/esm/view/EmbedCard/components/styled.js +4 -11
  37. package/dist/esm/view/EmbedCard/views/ErroredView.js +2 -2
  38. package/dist/esm/view/EmbedCard/views/unresolved-view/index.js +1 -1
  39. package/dist/esm/view/EmbedModal/components/link-info/styled.js +2 -3
  40. package/dist/esm/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +1 -6
  41. package/dist/esm/view/FlexibleCard/components/blocks/action-block/action-footer/index.js +1 -4
  42. package/dist/esm/view/FlexibleCard/components/elements/link/index.js +1 -1
  43. package/dist/esm/view/LinkUrl/index.js +1 -1
  44. package/dist/types/state/analytics/useSmartLinkAnalytics.d.ts +1 -29
  45. package/dist/types/state/hooks/useSmartLink.d.ts +0 -2
  46. package/dist/types/utils/analytics/analytics.d.ts +1 -9
  47. package/dist/types/utils/analytics/index.d.ts +1 -1
  48. package/dist/types/utils/analytics/types.d.ts +0 -12
  49. package/dist/types/utils/mocks.d.ts +0 -2
  50. package/dist/types-ts4.5/state/analytics/useSmartLinkAnalytics.d.ts +1 -29
  51. package/dist/types-ts4.5/state/hooks/useSmartLink.d.ts +0 -2
  52. package/dist/types-ts4.5/utils/analytics/analytics.d.ts +1 -9
  53. package/dist/types-ts4.5/utils/analytics/index.d.ts +1 -1
  54. package/dist/types-ts4.5/utils/analytics/types.d.ts +0 -12
  55. package/dist/types-ts4.5/utils/mocks.d.ts +0 -2
  56. package/package.json +2 -5
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/smart-card
2
2
 
3
+ ## 30.3.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#166125](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/166125)
8
+ [`83c6d7ca56278`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/83c6d7ca56278) -
9
+ Typography uplift for Linking packages.
10
+ - [#166787](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/166787)
11
+ [`e6cb2efbffc55`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e6cb2efbffc55) -
12
+ Remove FF smart-card-migrate-smartLinkIframe-analytics
13
+ - Updated dependencies
14
+
3
15
  ## 30.3.0
4
16
 
5
17
  ### Minor Changes
@@ -175,94 +175,24 @@ var useSmartLinkAnalytics = exports.useSmartLinkAnalytics = function useSmartLin
175
175
  }), commonAttributes));
176
176
  },
177
177
  /**
178
- * This fires an event that represents when a user dwells their cursor on a Smart Link's iframe.
178
+ * This fires an event that represents when a user clicks on a Smart Link action.
179
+ * Note: This also starts the UFO smart-link-action-invocation experience.
179
180
  * @param id The unique ID for this Smart Link.
180
- * @param display Whether the card was an Inline, Block, Embed or Flexible UI.
181
- * @param status What status the Smart Link is currently in (e.g. resolved, unresolved)
182
- * @param definitionId The definitionId of the Smart Link resolver invoked.
183
181
  * @param extensionKey The extensionKey of the Smart Link resovler invoked.
184
- * @param location Where the Smart Link is currently rendered.
185
- * @param destinationProduct The product the Smart Link is linked to.
186
- * @param dwellTime Total seconds that the user has dwelled on this iframe
187
- * @param dwellPercentVisible Percentage element was visible at end of dwell
182
+ * @param actionType The type of the action that was clicked, e.g. PreviewAction
183
+ * @param display Whether the card was an Inline, Block, Embed or Flexible UI.
188
184
  * @returns
189
- * @deprecated
190
185
  */
191
- iframeDwelledEvent: function iframeDwelledEvent(_ref4) {
186
+ actionClickedEvent: function actionClickedEvent(_ref4) {
192
187
  var id = _ref4.id,
188
+ actionType = _ref4.actionType,
193
189
  display = _ref4.display,
194
- status = _ref4.status,
190
+ overrideExtensionKey = _ref4.extensionKey,
195
191
  definitionId = _ref4.definitionId,
196
- extensionKey = _ref4.extensionKey,
197
- location = _ref4.location,
192
+ resourceType = _ref4.resourceType,
198
193
  destinationProduct = _ref4.destinationProduct,
199
194
  destinationSubproduct = _ref4.destinationSubproduct,
200
- dwellTime = _ref4.dwellTime,
201
- dwellPercentVisible = _ref4.dwellPercentVisible;
202
- return dispatchAnalytics(applyCommonAttributes((0, _analytics2.uiIframeDwelledEvent)({
203
- id: id,
204
- display: display,
205
- status: status,
206
- definitionId: definitionId,
207
- extensionKey: extensionKey,
208
- location: location,
209
- destinationProduct: destinationProduct,
210
- destinationSubproduct: destinationSubproduct,
211
- dwellTime: dwellTime,
212
- dwellPercentVisible: dwellPercentVisible
213
- }), commonAttributes));
214
- },
215
- /**
216
- * This fires an event that represents when a user clicks or tabs into a Smart Link's iframe.
217
- * @param id The unique ID for this Smart Link.
218
- * @param display Whether the card was an Inline, Block, Embed or Flexible UI.
219
- * @param status What status the Smart Link is currently in (e.g. resolved, unresolved)
220
- * @param definitionId The definitionId of the Smart Link resolver invoked.
221
- * @param extensionKey The extensionKey of the Smart Link resovler invoked.
222
- * @param location Where the Smart Link is currently rendered.
223
- * @param destinationProduct The product the Smart Link is linked to.
224
- * @returns
225
- * @deprecated
226
- */
227
- iframeFocusedEvent: function iframeFocusedEvent(_ref5) {
228
- var id = _ref5.id,
229
- display = _ref5.display,
230
- status = _ref5.status,
231
- definitionId = _ref5.definitionId,
232
- extensionKey = _ref5.extensionKey,
233
- location = _ref5.location,
234
- destinationProduct = _ref5.destinationProduct,
235
- destinationSubproduct = _ref5.destinationSubproduct;
236
- return dispatchAnalytics(applyCommonAttributes((0, _analytics2.uiIframeFocusedEvent)({
237
- id: id,
238
- display: display,
239
- status: status,
240
- definitionId: definitionId,
241
- extensionKey: extensionKey,
242
- location: location,
243
- destinationProduct: destinationProduct,
244
- destinationSubproduct: destinationSubproduct
245
- }), commonAttributes));
246
- },
247
- /**
248
- * This fires an event that represents when a user clicks on a Smart Link action.
249
- * Note: This also starts the UFO smart-link-action-invocation experience.
250
- * @param id The unique ID for this Smart Link.
251
- * @param extensionKey The extensionKey of the Smart Link resovler invoked.
252
- * @param actionType The type of the action that was clicked, e.g. PreviewAction
253
- * @param display Whether the card was an Inline, Block, Embed or Flexible UI.
254
- * @returns
255
- */
256
- actionClickedEvent: function actionClickedEvent(_ref6) {
257
- var id = _ref6.id,
258
- actionType = _ref6.actionType,
259
- display = _ref6.display,
260
- overrideExtensionKey = _ref6.extensionKey,
261
- definitionId = _ref6.definitionId,
262
- resourceType = _ref6.resourceType,
263
- destinationProduct = _ref6.destinationProduct,
264
- destinationSubproduct = _ref6.destinationSubproduct,
265
- location = _ref6.location;
195
+ location = _ref4.location;
266
196
  var extensionKey = overrideExtensionKey !== null && overrideExtensionKey !== void 0 ? overrideExtensionKey : extractedExtensionKey;
267
197
  dispatchAnalytics(applyCommonAttributes((0, _analytics.uiActionClickedEvent)({
268
198
  id: id !== null && id !== void 0 ? id : defaultId,
@@ -284,14 +214,14 @@ var useSmartLinkAnalytics = exports.useSmartLinkAnalytics = function useSmartLin
284
214
  * @param extensionKey The extensionKey of the Smart Link resovler invoked.
285
215
  * @param previewInvokeMethod How the preview was triggered.
286
216
  */
287
- hoverCardOpenLinkClickedEvent: function hoverCardOpenLinkClickedEvent(_ref7) {
288
- var previewDisplay = _ref7.previewDisplay,
289
- definitionId = _ref7.definitionId,
290
- extensionKey = _ref7.extensionKey,
291
- destinationProduct = _ref7.destinationProduct,
292
- destinationSubproduct = _ref7.destinationSubproduct,
293
- location = _ref7.location,
294
- previewInvokeMethod = _ref7.previewInvokeMethod;
217
+ hoverCardOpenLinkClickedEvent: function hoverCardOpenLinkClickedEvent(_ref5) {
218
+ var previewDisplay = _ref5.previewDisplay,
219
+ definitionId = _ref5.definitionId,
220
+ extensionKey = _ref5.extensionKey,
221
+ destinationProduct = _ref5.destinationProduct,
222
+ destinationSubproduct = _ref5.destinationSubproduct,
223
+ location = _ref5.location,
224
+ previewInvokeMethod = _ref5.previewInvokeMethod;
295
225
  dispatchAnalytics(applyCommonAttributes((0, _analytics.uiHoverCardOpenLinkClickedEvent)({
296
226
  id: defaultId,
297
227
  previewDisplay: previewDisplay,
@@ -310,14 +240,14 @@ var useSmartLinkAnalytics = exports.useSmartLinkAnalytics = function useSmartLin
310
240
  * @param extensionKey The extensionKey of the Smart Link resovler invoked.
311
241
  * @returns
312
242
  */
313
- closedAuthEvent: function closedAuthEvent(_ref8) {
314
- var display = _ref8.display,
315
- extensionKey = _ref8.extensionKey,
316
- definitionId = _ref8.definitionId,
317
- resourceType = _ref8.resourceType,
318
- destinationProduct = _ref8.destinationProduct,
319
- destinationSubproduct = _ref8.destinationSubproduct,
320
- location = _ref8.location;
243
+ closedAuthEvent: function closedAuthEvent(_ref6) {
244
+ var display = _ref6.display,
245
+ extensionKey = _ref6.extensionKey,
246
+ definitionId = _ref6.definitionId,
247
+ resourceType = _ref6.resourceType,
248
+ destinationProduct = _ref6.destinationProduct,
249
+ destinationSubproduct = _ref6.destinationSubproduct,
250
+ location = _ref6.location;
321
251
  return dispatchAnalytics(applyCommonAttributes((0, _analytics.uiClosedAuthEvent)({
322
252
  display: display,
323
253
  extensionKey: extensionKey,
@@ -350,18 +280,18 @@ var useSmartLinkAnalytics = exports.useSmartLinkAnalytics = function useSmartLin
350
280
  * @param extensionKey The extensionKey of the Smart Link resovler invoked.
351
281
  * @param canBeDatasource An indicator that shows that a smart link can be converted to a datasource
352
282
  */
353
- renderSuccessEvent: function renderSuccessEvent(_ref9) {
354
- var display = _ref9.display,
355
- status = _ref9.status,
356
- id = _ref9.id,
357
- extensionKey = _ref9.extensionKey,
358
- definitionId = _ref9.definitionId,
359
- resourceType = _ref9.resourceType,
360
- destinationProduct = _ref9.destinationProduct,
361
- destinationSubproduct = _ref9.destinationSubproduct,
362
- location = _ref9.location,
363
- _ref9$canBeDatasource = _ref9.canBeDatasource,
364
- canBeDatasource = _ref9$canBeDatasource === void 0 ? false : _ref9$canBeDatasource;
283
+ renderSuccessEvent: function renderSuccessEvent(_ref7) {
284
+ var display = _ref7.display,
285
+ status = _ref7.status,
286
+ id = _ref7.id,
287
+ extensionKey = _ref7.extensionKey,
288
+ definitionId = _ref7.definitionId,
289
+ resourceType = _ref7.resourceType,
290
+ destinationProduct = _ref7.destinationProduct,
291
+ destinationSubproduct = _ref7.destinationSubproduct,
292
+ location = _ref7.location,
293
+ _ref7$canBeDatasource = _ref7.canBeDatasource,
294
+ canBeDatasource = _ref7$canBeDatasource === void 0 ? false : _ref7$canBeDatasource;
365
295
  var experienceId = id ? id : defaultId;
366
296
  (0, _ufoExperiences.succeedUfoExperience)('smart-link-rendered', experienceId, {
367
297
  extensionKey: extensionKey,
@@ -391,17 +321,17 @@ var useSmartLinkAnalytics = exports.useSmartLinkAnalytics = function useSmartLin
391
321
  * @param error: An error representing why the Smart Link render failed.
392
322
  * @param errorInfo: Additional details about the error including the stack trace.
393
323
  */
394
- renderFailedEvent: function renderFailedEvent(_ref10) {
395
- var display = _ref10.display,
396
- id = _ref10.id,
397
- error = _ref10.error,
398
- errorInfo = _ref10.errorInfo,
399
- extensionKey = _ref10.extensionKey,
400
- definitionId = _ref10.definitionId,
401
- resourceType = _ref10.resourceType,
402
- destinationProduct = _ref10.destinationProduct,
403
- destinationSubproduct = _ref10.destinationSubproduct,
404
- location = _ref10.location;
324
+ renderFailedEvent: function renderFailedEvent(_ref8) {
325
+ var display = _ref8.display,
326
+ id = _ref8.id,
327
+ error = _ref8.error,
328
+ errorInfo = _ref8.errorInfo,
329
+ extensionKey = _ref8.extensionKey,
330
+ definitionId = _ref8.definitionId,
331
+ resourceType = _ref8.resourceType,
332
+ destinationProduct = _ref8.destinationProduct,
333
+ destinationSubproduct = _ref8.destinationSubproduct,
334
+ location = _ref8.location;
405
335
  var experienceId = id ? id : defaultId;
406
336
  // Start and fail the smart-link-rendered experience. If it has already
407
337
  // been started nothing happens.
@@ -428,17 +358,17 @@ var useSmartLinkAnalytics = exports.useSmartLinkAnalytics = function useSmartLin
428
358
  * @param previewInvokeMethod How the preview was triggered.
429
359
  * @returns
430
360
  */
431
- hoverCardViewedEvent: function hoverCardViewedEvent(_ref11) {
432
- var previewDisplay = _ref11.previewDisplay,
433
- previewInvokeMethod = _ref11.previewInvokeMethod,
434
- id = _ref11.id,
435
- extensionKey = _ref11.extensionKey,
436
- definitionId = _ref11.definitionId,
437
- resourceType = _ref11.resourceType,
438
- destinationProduct = _ref11.destinationProduct,
439
- destinationSubproduct = _ref11.destinationSubproduct,
440
- location = _ref11.location,
441
- status = _ref11.status;
361
+ hoverCardViewedEvent: function hoverCardViewedEvent(_ref9) {
362
+ var previewDisplay = _ref9.previewDisplay,
363
+ previewInvokeMethod = _ref9.previewInvokeMethod,
364
+ id = _ref9.id,
365
+ extensionKey = _ref9.extensionKey,
366
+ definitionId = _ref9.definitionId,
367
+ resourceType = _ref9.resourceType,
368
+ destinationProduct = _ref9.destinationProduct,
369
+ destinationSubproduct = _ref9.destinationSubproduct,
370
+ location = _ref9.location,
371
+ status = _ref9.status;
442
372
  return dispatchAnalytics(applyCommonAttributes((0, _analytics.uiHoverCardViewedEvent)({
443
373
  id: id,
444
374
  previewDisplay: previewDisplay,
@@ -461,18 +391,18 @@ var useSmartLinkAnalytics = exports.useSmartLinkAnalytics = function useSmartLin
461
391
  * @param previewInvokeMethod How the preview was triggered.
462
392
  * @returns
463
393
  */
464
- hoverCardDismissedEvent: function hoverCardDismissedEvent(_ref12) {
465
- var id = _ref12.id,
466
- previewDisplay = _ref12.previewDisplay,
467
- hoverTime = _ref12.hoverTime,
468
- previewInvokeMethod = _ref12.previewInvokeMethod,
469
- extensionKey = _ref12.extensionKey,
470
- definitionId = _ref12.definitionId,
471
- resourceType = _ref12.resourceType,
472
- destinationProduct = _ref12.destinationProduct,
473
- destinationSubproduct = _ref12.destinationSubproduct,
474
- location = _ref12.location,
475
- status = _ref12.status;
394
+ hoverCardDismissedEvent: function hoverCardDismissedEvent(_ref10) {
395
+ var id = _ref10.id,
396
+ previewDisplay = _ref10.previewDisplay,
397
+ hoverTime = _ref10.hoverTime,
398
+ previewInvokeMethod = _ref10.previewInvokeMethod,
399
+ extensionKey = _ref10.extensionKey,
400
+ definitionId = _ref10.definitionId,
401
+ resourceType = _ref10.resourceType,
402
+ destinationProduct = _ref10.destinationProduct,
403
+ destinationSubproduct = _ref10.destinationSubproduct,
404
+ location = _ref10.location,
405
+ status = _ref10.status;
476
406
  return dispatchAnalytics(applyCommonAttributes((0, _analytics.uiHoverCardDismissedEvent)({
477
407
  previewDisplay: previewDisplay,
478
408
  id: id,
@@ -529,16 +459,16 @@ var useSmartLinkAnalytics = exports.useSmartLinkAnalytics = function useSmartLin
529
459
  * @param actionType The type of action invoked, e.g. PreviewAction
530
460
  * @param display Whether the card was an Inline, Block, Embed or Flexible UI.
531
461
  */
532
- invokeSucceededEvent: function invokeSucceededEvent(_ref13) {
533
- var id = _ref13.id,
534
- actionType = _ref13.actionType,
535
- display = _ref13.display,
536
- extensionKey = _ref13.extensionKey,
537
- definitionId = _ref13.definitionId,
538
- resourceType = _ref13.resourceType,
539
- destinationProduct = _ref13.destinationProduct,
540
- destinationSubproduct = _ref13.destinationSubproduct,
541
- location = _ref13.location;
462
+ invokeSucceededEvent: function invokeSucceededEvent(_ref11) {
463
+ var id = _ref11.id,
464
+ actionType = _ref11.actionType,
465
+ display = _ref11.display,
466
+ extensionKey = _ref11.extensionKey,
467
+ definitionId = _ref11.definitionId,
468
+ resourceType = _ref11.resourceType,
469
+ destinationProduct = _ref11.destinationProduct,
470
+ destinationSubproduct = _ref11.destinationSubproduct,
471
+ location = _ref11.location;
542
472
  dispatchAnalytics(applyCommonAttributes((0, _analytics.invokeSucceededEvent)({
543
473
  id: id !== null && id !== void 0 ? id : defaultId,
544
474
  actionType: actionType,
@@ -559,17 +489,17 @@ var useSmartLinkAnalytics = exports.useSmartLinkAnalytics = function useSmartLin
559
489
  * @param display Whether the card was an Inline, Block, Embed or Flexible UI.
560
490
  * @param reason The reason the invocation failed.
561
491
  */
562
- invokeFailedEvent: function invokeFailedEvent(_ref14) {
563
- var id = _ref14.id,
564
- actionType = _ref14.actionType,
565
- display = _ref14.display,
566
- reason = _ref14.reason,
567
- extensionKey = _ref14.extensionKey,
568
- definitionId = _ref14.definitionId,
569
- resourceType = _ref14.resourceType,
570
- destinationProduct = _ref14.destinationProduct,
571
- destinationSubproduct = _ref14.destinationSubproduct,
572
- location = _ref14.location;
492
+ invokeFailedEvent: function invokeFailedEvent(_ref12) {
493
+ var id = _ref12.id,
494
+ actionType = _ref12.actionType,
495
+ display = _ref12.display,
496
+ reason = _ref12.reason,
497
+ extensionKey = _ref12.extensionKey,
498
+ definitionId = _ref12.definitionId,
499
+ resourceType = _ref12.resourceType,
500
+ destinationProduct = _ref12.destinationProduct,
501
+ destinationSubproduct = _ref12.destinationSubproduct,
502
+ location = _ref12.location;
573
503
  dispatchAnalytics(applyCommonAttributes((0, _analytics.invokeFailedEvent)({
574
504
  id: id !== null && id !== void 0 ? id : defaultId,
575
505
  actionType: actionType,
@@ -589,14 +519,14 @@ var useSmartLinkAnalytics = exports.useSmartLinkAnalytics = function useSmartLin
589
519
  * @param definitionId The definitionId of the Smart Link resolver invoked.
590
520
  * @param extensionKey The extensionKey of the Smart Link resovler invoked.
591
521
  */
592
- connectSucceededEvent: function connectSucceededEvent(_ref15) {
593
- var id = _ref15.id,
594
- extensionKey = _ref15.extensionKey,
595
- definitionId = _ref15.definitionId,
596
- resourceType = _ref15.resourceType,
597
- destinationProduct = _ref15.destinationProduct,
598
- destinationSubproduct = _ref15.destinationSubproduct,
599
- location = _ref15.location;
522
+ connectSucceededEvent: function connectSucceededEvent(_ref13) {
523
+ var id = _ref13.id,
524
+ extensionKey = _ref13.extensionKey,
525
+ definitionId = _ref13.definitionId,
526
+ resourceType = _ref13.resourceType,
527
+ destinationProduct = _ref13.destinationProduct,
528
+ destinationSubproduct = _ref13.destinationSubproduct,
529
+ location = _ref13.location;
600
530
  var experienceId = id ? id : defaultId;
601
531
  (0, _ufoExperiences.startUfoExperience)('smart-link-authenticated', experienceId, {
602
532
  extensionKey: extensionKey,
@@ -619,15 +549,15 @@ var useSmartLinkAnalytics = exports.useSmartLinkAnalytics = function useSmartLin
619
549
  * @param extensionKey The extensionKey of the Smart Link resovler invoked.
620
550
  * @param reason The reason why the Smart Link connect account failed.
621
551
  */
622
- connectFailedEvent: function connectFailedEvent(_ref16) {
623
- var id = _ref16.id,
624
- reason = _ref16.reason,
625
- extensionKey = _ref16.extensionKey,
626
- definitionId = _ref16.definitionId,
627
- resourceType = _ref16.resourceType,
628
- destinationProduct = _ref16.destinationProduct,
629
- destinationSubproduct = _ref16.destinationSubproduct,
630
- location = _ref16.location;
552
+ connectFailedEvent: function connectFailedEvent(_ref14) {
553
+ var id = _ref14.id,
554
+ reason = _ref14.reason,
555
+ extensionKey = _ref14.extensionKey,
556
+ definitionId = _ref14.definitionId,
557
+ resourceType = _ref14.resourceType,
558
+ destinationProduct = _ref14.destinationProduct,
559
+ destinationSubproduct = _ref14.destinationSubproduct,
560
+ location = _ref14.location;
631
561
  var experienceId = id ? id : defaultId;
632
562
  (0, _ufoExperiences.startUfoExperience)('smart-link-authenticated', experienceId, {
633
563
  extensionKey: extensionKey,
@@ -653,16 +583,16 @@ var useSmartLinkAnalytics = exports.useSmartLinkAnalytics = function useSmartLin
653
583
  * @param resourceType The type of resource that was invoked. This is provider specific (e.g. File, PullRequest).
654
584
  * @param error An error representing why the Smart Link request failed.
655
585
  */
656
- instrument: function instrument(_ref17) {
657
- var id = _ref17.id,
658
- status = _ref17.status,
659
- extensionKey = _ref17.extensionKey,
660
- definitionId = _ref17.definitionId,
661
- resourceType = _ref17.resourceType,
662
- destinationProduct = _ref17.destinationProduct,
663
- destinationSubproduct = _ref17.destinationSubproduct,
664
- location = _ref17.location,
665
- error = _ref17.error;
586
+ instrument: function instrument(_ref15) {
587
+ var id = _ref15.id,
588
+ status = _ref15.status,
589
+ extensionKey = _ref15.extensionKey,
590
+ definitionId = _ref15.definitionId,
591
+ resourceType = _ref15.resourceType,
592
+ destinationProduct = _ref15.destinationProduct,
593
+ destinationSubproduct = _ref15.destinationSubproduct,
594
+ location = _ref15.location,
595
+ error = _ref15.error;
666
596
  var event = (0, _analytics.instrumentEvent)(_objectSpread(_objectSpread({}, commonAttributes), {}, {
667
597
  id: id,
668
598
  status: status,
@@ -685,16 +615,16 @@ var useSmartLinkAnalytics = exports.useSmartLinkAnalytics = function useSmartLin
685
615
  * @param error: An error representing why the Smart Link render failed.
686
616
  * @param errorInfo: Additional details about the error including the stack trace.
687
617
  */
688
- chunkloadFailedEvent: function chunkloadFailedEvent(_ref18) {
689
- var display = _ref18.display,
690
- error = _ref18.error,
691
- errorInfo = _ref18.errorInfo,
692
- extensionKey = _ref18.extensionKey,
693
- definitionId = _ref18.definitionId,
694
- resourceType = _ref18.resourceType,
695
- destinationProduct = _ref18.destinationProduct,
696
- destinationSubproduct = _ref18.destinationSubproduct,
697
- location = _ref18.location;
618
+ chunkloadFailedEvent: function chunkloadFailedEvent(_ref16) {
619
+ var display = _ref16.display,
620
+ error = _ref16.error,
621
+ errorInfo = _ref16.errorInfo,
622
+ extensionKey = _ref16.extensionKey,
623
+ definitionId = _ref16.definitionId,
624
+ resourceType = _ref16.resourceType,
625
+ destinationProduct = _ref16.destinationProduct,
626
+ destinationSubproduct = _ref16.destinationSubproduct,
627
+ location = _ref16.location;
698
628
  dispatchAnalytics(applyCommonAttributes((0, _analytics.chunkloadFailedEvent)({
699
629
  display: display,
700
630
  error: error,
@@ -720,13 +650,13 @@ var useSmartLinkAnalytics = exports.useSmartLinkAnalytics = function useSmartLin
720
650
  * @returns
721
651
  * @deprecated
722
652
  */
723
- appAccountConnected: function appAccountConnected(_ref19) {
724
- var extensionKey = _ref19.extensionKey,
725
- definitionId = _ref19.definitionId,
726
- resourceType = _ref19.resourceType,
727
- destinationProduct = _ref19.destinationProduct,
728
- destinationSubproduct = _ref19.destinationSubproduct,
729
- location = _ref19.location;
653
+ appAccountConnected: function appAccountConnected(_ref17) {
654
+ var extensionKey = _ref17.extensionKey,
655
+ definitionId = _ref17.definitionId,
656
+ resourceType = _ref17.resourceType,
657
+ destinationProduct = _ref17.destinationProduct,
658
+ destinationSubproduct = _ref17.destinationSubproduct,
659
+ location = _ref17.location;
730
660
  return dispatchAnalytics(applyCommonAttributes((0, _analytics.trackAppAccountConnected)(_objectSpread(_objectSpread({}, commonAttributes), {}, {
731
661
  extensionKey: extensionKey,
732
662
  definitionId: definitionId,
@@ -743,9 +673,9 @@ var useSmartLinkAnalytics = exports.useSmartLinkAnalytics = function useSmartLin
743
673
  * @returns
744
674
  * @deprecated
745
675
  */
746
- appAccountAuthStarted: function appAccountAuthStarted(_ref20) {
747
- var extensionKey = _ref20.extensionKey,
748
- location = _ref20.location;
676
+ appAccountAuthStarted: function appAccountAuthStarted(_ref18) {
677
+ var extensionKey = _ref18.extensionKey,
678
+ location = _ref18.location;
749
679
  return dispatchAnalytics(applyCommonAttributes((0, _analytics.trackAppAccountAuthStarted)(_objectSpread(_objectSpread({}, commonAttributes), {}, {
750
680
  extensionKey: extensionKey,
751
681
  location: location
@@ -793,13 +723,13 @@ var useSmartLinkAnalytics = exports.useSmartLinkAnalytics = function useSmartLin
793
723
  * @param extensionKey The extensionKey of the Smart Link resovler invoked.
794
724
  * @returns
795
725
  */
796
- authPopupEvent: function authPopupEvent(_ref21) {
797
- var extensionKey = _ref21.extensionKey,
798
- definitionId = _ref21.definitionId,
799
- resourceType = _ref21.resourceType,
800
- destinationProduct = _ref21.destinationProduct,
801
- destinationSubproduct = _ref21.destinationSubproduct,
802
- location = _ref21.location;
726
+ authPopupEvent: function authPopupEvent(_ref19) {
727
+ var extensionKey = _ref19.extensionKey,
728
+ definitionId = _ref19.definitionId,
729
+ resourceType = _ref19.resourceType,
730
+ destinationProduct = _ref19.destinationProduct,
731
+ destinationSubproduct = _ref19.destinationSubproduct,
732
+ location = _ref19.location;
803
733
  return dispatchAnalytics(applyCommonAttributes((0, _analytics.screenAuthPopupEvent)(_objectSpread(_objectSpread({}, commonAttributes), {}, {
804
734
  extensionKey: extensionKey,
805
735
  definitionId: definitionId,