@atlaskit/smart-card 31.0.2 → 32.0.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 (84) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/dist/cjs/extractors/action/extractDownloadActionProps.js +28 -0
  3. package/dist/cjs/extractors/action/extractPreviewActionProps.js +43 -0
  4. package/dist/cjs/extractors/action/extractViewActionProps.js +27 -0
  5. package/dist/cjs/extractors/common/actions/extractActions.js +5 -0
  6. package/dist/cjs/extractors/common/actions/extractPreviewAction.js +5 -0
  7. package/dist/cjs/extractors/common/actions/types.js +5 -0
  8. package/dist/cjs/extractors/flexible/actions/extract-preview-action.js +3 -1
  9. package/dist/cjs/state/actions/index.js +4 -12
  10. package/dist/cjs/state/analytics/useSmartLinkAnalytics.js +0 -23
  11. package/dist/cjs/state/hooks-external/useSmartLinkActions.js +38 -0
  12. package/dist/cjs/utils/actions/to-action.js +18 -0
  13. package/dist/cjs/utils/analytics/analytics.js +54 -76
  14. package/dist/cjs/utils/analytics/index.js +0 -6
  15. package/dist/cjs/view/LinkUrl/index.js +1 -1
  16. package/dist/es2019/extractors/action/extractDownloadActionProps.js +19 -0
  17. package/dist/es2019/extractors/action/extractPreviewActionProps.js +31 -0
  18. package/dist/es2019/extractors/action/extractViewActionProps.js +18 -0
  19. package/dist/es2019/extractors/common/actions/extractActions.js +5 -0
  20. package/dist/es2019/extractors/common/actions/extractPreviewAction.js +5 -0
  21. package/dist/es2019/extractors/common/actions/types.js +1 -0
  22. package/dist/es2019/extractors/flexible/actions/extract-preview-action.js +3 -1
  23. package/dist/es2019/state/actions/index.js +4 -12
  24. package/dist/es2019/state/analytics/useSmartLinkAnalytics.js +1 -24
  25. package/dist/es2019/state/hooks-external/useSmartLinkActions.js +38 -0
  26. package/dist/es2019/utils/actions/to-action.js +9 -0
  27. package/dist/es2019/utils/analytics/analytics.js +1 -23
  28. package/dist/es2019/utils/analytics/index.js +1 -1
  29. package/dist/es2019/view/LinkUrl/index.js +1 -1
  30. package/dist/esm/extractors/action/extractDownloadActionProps.js +22 -0
  31. package/dist/esm/extractors/action/extractPreviewActionProps.js +36 -0
  32. package/dist/esm/extractors/action/extractViewActionProps.js +21 -0
  33. package/dist/esm/extractors/common/actions/extractActions.js +5 -0
  34. package/dist/esm/extractors/common/actions/extractPreviewAction.js +5 -0
  35. package/dist/esm/extractors/common/actions/types.js +1 -0
  36. package/dist/esm/extractors/flexible/actions/extract-preview-action.js +3 -1
  37. package/dist/esm/state/actions/index.js +4 -12
  38. package/dist/esm/state/analytics/useSmartLinkAnalytics.js +1 -24
  39. package/dist/esm/state/hooks-external/useSmartLinkActions.js +38 -0
  40. package/dist/esm/utils/actions/to-action.js +11 -0
  41. package/dist/esm/utils/analytics/analytics.js +53 -75
  42. package/dist/esm/utils/analytics/index.js +1 -1
  43. package/dist/esm/view/LinkUrl/index.js +1 -1
  44. package/dist/types/extractors/action/extractDownloadActionProps.d.ts +3 -0
  45. package/dist/types/extractors/action/extractPreviewActionProps.d.ts +3 -0
  46. package/dist/types/extractors/action/extractViewActionProps.d.ts +3 -0
  47. package/dist/types/extractors/common/__mocks__/jsonld.d.ts +5 -0
  48. package/dist/types/extractors/common/actions/extractActions.d.ts +4 -0
  49. package/dist/types/extractors/common/actions/extractPreviewAction.d.ts +4 -0
  50. package/dist/types/extractors/common/actions/types.d.ts +21 -0
  51. package/dist/types/state/analytics/useSmartLinkAnalytics.d.ts +1 -9
  52. package/dist/types/state/flexible-ui-context/types.d.ts +1 -0
  53. package/dist/types/state/hooks/use-invoke-client-action/index.d.ts +2 -2
  54. package/dist/types/state/hooks/use-invoke-client-action/types.d.ts +1 -0
  55. package/dist/types/state/hooks/useSmartLink.d.ts +0 -1
  56. package/dist/types/utils/actions/to-action.d.ts +8 -0
  57. package/dist/types/utils/analytics/analytics.d.ts +1 -5
  58. package/dist/types/utils/analytics/index.d.ts +1 -1
  59. package/dist/types/utils/analytics/types.d.ts +0 -4
  60. package/dist/types/utils/mocks.d.ts +0 -1
  61. package/dist/types-ts4.5/extractors/action/extractDownloadActionProps.d.ts +3 -0
  62. package/dist/types-ts4.5/extractors/action/extractPreviewActionProps.d.ts +3 -0
  63. package/dist/types-ts4.5/extractors/action/extractViewActionProps.d.ts +3 -0
  64. package/dist/types-ts4.5/extractors/common/__mocks__/jsonld.d.ts +5 -0
  65. package/dist/types-ts4.5/extractors/common/actions/extractActions.d.ts +4 -0
  66. package/dist/types-ts4.5/extractors/common/actions/extractPreviewAction.d.ts +4 -0
  67. package/dist/types-ts4.5/extractors/common/actions/types.d.ts +21 -0
  68. package/dist/types-ts4.5/state/analytics/useSmartLinkAnalytics.d.ts +1 -9
  69. package/dist/types-ts4.5/state/flexible-ui-context/types.d.ts +1 -0
  70. package/dist/types-ts4.5/state/hooks/use-invoke-client-action/index.d.ts +2 -2
  71. package/dist/types-ts4.5/state/hooks/use-invoke-client-action/types.d.ts +1 -0
  72. package/dist/types-ts4.5/state/hooks/useSmartLink.d.ts +0 -1
  73. package/dist/types-ts4.5/utils/actions/to-action.d.ts +8 -0
  74. package/dist/types-ts4.5/utils/analytics/analytics.d.ts +1 -5
  75. package/dist/types-ts4.5/utils/analytics/index.d.ts +1 -1
  76. package/dist/types-ts4.5/utils/analytics/types.d.ts +0 -4
  77. package/dist/types-ts4.5/utils/mocks.d.ts +0 -1
  78. package/package.json +3 -4
  79. package/client/package.json +0 -15
  80. package/dist/cjs/client/index.js +0 -12
  81. package/dist/es2019/client/index.js +0 -5
  82. package/dist/esm/client/index.js +0 -5
  83. package/dist/types/client/index.d.ts +0 -5
  84. package/dist/types-ts4.5/client/index.d.ts +0 -5
@@ -10,7 +10,7 @@ export var ANALYTICS_CHANNEL = 'media';
10
10
  export var context = {
11
11
  componentName: 'smart-cards',
12
12
  packageName: "@atlaskit/smart-card",
13
- packageVersion: "31.0.2"
13
+ packageVersion: "32.0.0"
14
14
  };
15
15
  export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
16
16
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -320,81 +320,87 @@ export var uiClosedAuthEvent = function uiClosedAuthEvent(_ref10) {
320
320
  })
321
321
  };
322
322
  };
323
-
324
- /**
325
- * @deprecated remove when platform_smart-card-migrate-screen-analytics is cleaned up
326
- */
327
- export var screenAuthPopupEvent = function screenAuthPopupEvent(_ref11) {
328
- var extensionKey = _ref11.extensionKey,
323
+ export var uiRenderSuccessEvent = function uiRenderSuccessEvent(_ref11) {
324
+ var display = _ref11.display,
325
+ status = _ref11.status,
326
+ extensionKey = _ref11.extensionKey,
329
327
  definitionId = _ref11.definitionId,
330
328
  destinationProduct = _ref11.destinationProduct,
331
329
  destinationSubproduct = _ref11.destinationSubproduct,
332
- location = _ref11.location;
330
+ location = _ref11.location,
331
+ canBeDatasource = _ref11.canBeDatasource;
333
332
  return {
334
- actionSubject: 'consentModal',
335
- eventType: 'screen',
333
+ action: 'renderSuccess',
334
+ actionSubject: 'smartLink',
335
+ eventType: 'ui',
336
336
  attributes: _objectSpread(_objectSpread({}, context), {}, {
337
+ status: status,
337
338
  extensionKey: extensionKey,
338
339
  definitionId: definitionId,
339
340
  destinationProduct: destinationProduct,
340
341
  destinationSubproduct: destinationSubproduct,
341
- location: location
342
+ location: location,
343
+ display: display,
344
+ canBeDatasource: canBeDatasource
342
345
  })
343
346
  };
344
347
  };
345
- export var uiRenderSuccessEvent = function uiRenderSuccessEvent(_ref12) {
348
+ export var uiRenderFailedEvent = function uiRenderFailedEvent(_ref12) {
346
349
  var display = _ref12.display,
347
- status = _ref12.status,
350
+ error = _ref12.error,
351
+ errorInfo = _ref12.errorInfo,
348
352
  extensionKey = _ref12.extensionKey,
349
353
  definitionId = _ref12.definitionId,
350
354
  destinationProduct = _ref12.destinationProduct,
351
355
  destinationSubproduct = _ref12.destinationSubproduct,
352
- location = _ref12.location,
353
- canBeDatasource = _ref12.canBeDatasource;
356
+ location = _ref12.location;
354
357
  return {
355
- action: 'renderSuccess',
356
358
  actionSubject: 'smartLink',
359
+ action: 'renderFailed',
357
360
  eventType: 'ui',
358
361
  attributes: _objectSpread(_objectSpread({}, context), {}, {
359
- status: status,
362
+ error: error,
363
+ errorInfo: errorInfo,
364
+ display: display,
360
365
  extensionKey: extensionKey,
361
366
  definitionId: definitionId,
362
367
  destinationProduct: destinationProduct,
363
368
  destinationSubproduct: destinationSubproduct,
364
- location: location,
365
- display: display,
366
- canBeDatasource: canBeDatasource
369
+ location: location
367
370
  })
368
371
  };
369
372
  };
370
- export var uiRenderFailedEvent = function uiRenderFailedEvent(_ref13) {
371
- var display = _ref13.display,
372
- error = _ref13.error,
373
- errorInfo = _ref13.errorInfo,
373
+ export var uiHoverCardViewedEvent = function uiHoverCardViewedEvent(_ref13) {
374
+ var id = _ref13.id,
375
+ previewDisplay = _ref13.previewDisplay,
374
376
  extensionKey = _ref13.extensionKey,
375
377
  definitionId = _ref13.definitionId,
376
378
  destinationProduct = _ref13.destinationProduct,
377
379
  destinationSubproduct = _ref13.destinationSubproduct,
378
- location = _ref13.location;
380
+ location = _ref13.location,
381
+ previewInvokeMethod = _ref13.previewInvokeMethod,
382
+ status = _ref13.status;
379
383
  return {
380
- actionSubject: 'smartLink',
381
- action: 'renderFailed',
384
+ action: 'viewed',
385
+ actionSubject: 'hoverCard',
382
386
  eventType: 'ui',
383
387
  attributes: _objectSpread(_objectSpread({}, context), {}, {
384
- error: error,
385
- errorInfo: errorInfo,
386
- display: display,
388
+ id: id,
389
+ previewDisplay: previewDisplay,
387
390
  extensionKey: extensionKey,
388
391
  definitionId: definitionId,
389
392
  destinationProduct: destinationProduct,
390
393
  destinationSubproduct: destinationSubproduct,
391
- location: location
394
+ location: location,
395
+ previewInvokeMethod: previewInvokeMethod,
396
+ status: status
392
397
  })
393
398
  };
394
399
  };
395
- export var uiHoverCardViewedEvent = function uiHoverCardViewedEvent(_ref14) {
400
+ export var uiHoverCardDismissedEvent = function uiHoverCardDismissedEvent(_ref14) {
396
401
  var id = _ref14.id,
397
402
  previewDisplay = _ref14.previewDisplay,
403
+ hoverTime = _ref14.hoverTime,
398
404
  extensionKey = _ref14.extensionKey,
399
405
  definitionId = _ref14.definitionId,
400
406
  destinationProduct = _ref14.destinationProduct,
@@ -403,12 +409,13 @@ export var uiHoverCardViewedEvent = function uiHoverCardViewedEvent(_ref14) {
403
409
  previewInvokeMethod = _ref14.previewInvokeMethod,
404
410
  status = _ref14.status;
405
411
  return {
406
- action: 'viewed',
412
+ action: 'dismissed',
407
413
  actionSubject: 'hoverCard',
408
414
  eventType: 'ui',
409
415
  attributes: _objectSpread(_objectSpread({}, context), {}, {
410
416
  id: id,
411
417
  previewDisplay: previewDisplay,
418
+ hoverTime: hoverTime,
412
419
  extensionKey: extensionKey,
413
420
  definitionId: definitionId,
414
421
  destinationProduct: destinationProduct,
@@ -419,44 +426,15 @@ export var uiHoverCardViewedEvent = function uiHoverCardViewedEvent(_ref14) {
419
426
  })
420
427
  };
421
428
  };
422
- export var uiHoverCardDismissedEvent = function uiHoverCardDismissedEvent(_ref15) {
429
+ export var uiHoverCardOpenLinkClickedEvent = function uiHoverCardOpenLinkClickedEvent(_ref15) {
423
430
  var id = _ref15.id,
424
431
  previewDisplay = _ref15.previewDisplay,
425
- hoverTime = _ref15.hoverTime,
426
432
  extensionKey = _ref15.extensionKey,
427
433
  definitionId = _ref15.definitionId,
428
434
  destinationProduct = _ref15.destinationProduct,
429
435
  destinationSubproduct = _ref15.destinationSubproduct,
430
436
  location = _ref15.location,
431
- previewInvokeMethod = _ref15.previewInvokeMethod,
432
- status = _ref15.status;
433
- return {
434
- action: 'dismissed',
435
- actionSubject: 'hoverCard',
436
- eventType: 'ui',
437
- attributes: _objectSpread(_objectSpread({}, context), {}, {
438
- id: id,
439
- previewDisplay: previewDisplay,
440
- hoverTime: hoverTime,
441
- extensionKey: extensionKey,
442
- definitionId: definitionId,
443
- destinationProduct: destinationProduct,
444
- destinationSubproduct: destinationSubproduct,
445
- location: location,
446
- previewInvokeMethod: previewInvokeMethod,
447
- status: status
448
- })
449
- };
450
- };
451
- export var uiHoverCardOpenLinkClickedEvent = function uiHoverCardOpenLinkClickedEvent(_ref16) {
452
- var id = _ref16.id,
453
- previewDisplay = _ref16.previewDisplay,
454
- extensionKey = _ref16.extensionKey,
455
- definitionId = _ref16.definitionId,
456
- destinationProduct = _ref16.destinationProduct,
457
- destinationSubproduct = _ref16.destinationSubproduct,
458
- location = _ref16.location,
459
- previewInvokeMethod = _ref16.previewInvokeMethod;
437
+ previewInvokeMethod = _ref15.previewInvokeMethod;
460
438
  return {
461
439
  action: 'clicked',
462
440
  actionSubject: 'button',
@@ -483,15 +461,15 @@ export var uiLearnMoreLinkClickedEvent = function uiLearnMoreLinkClickedEvent()
483
461
  attributes: _objectSpread({}, context)
484
462
  };
485
463
  };
486
- export var chunkloadFailedEvent = function chunkloadFailedEvent(_ref17) {
487
- var display = _ref17.display,
488
- error = _ref17.error,
489
- errorInfo = _ref17.errorInfo,
490
- extensionKey = _ref17.extensionKey,
491
- definitionId = _ref17.definitionId,
492
- destinationProduct = _ref17.destinationProduct,
493
- destinationSubproduct = _ref17.destinationSubproduct,
494
- location = _ref17.location;
464
+ export var chunkloadFailedEvent = function chunkloadFailedEvent(_ref16) {
465
+ var display = _ref16.display,
466
+ error = _ref16.error,
467
+ errorInfo = _ref16.errorInfo,
468
+ extensionKey = _ref16.extensionKey,
469
+ definitionId = _ref16.definitionId,
470
+ destinationProduct = _ref16.destinationProduct,
471
+ destinationSubproduct = _ref16.destinationSubproduct,
472
+ location = _ref16.location;
495
473
  return {
496
474
  action: 'chunkLoadFailed',
497
475
  actionSubject: 'smartLink',
@@ -535,9 +513,9 @@ export var uiSmartLinkStatusOpenPreviewButtonClicked = function uiSmartLinkStatu
535
513
  attributes: _objectSpread({}, context)
536
514
  };
537
515
  };
538
- export var uiServerActionClicked = function uiServerActionClicked(_ref18) {
516
+ export var uiServerActionClicked = function uiServerActionClicked(_ref17) {
539
517
  var _SmartLinkActionTypeU2;
540
- var smartLinkActionType = _ref18.smartLinkActionType;
518
+ var smartLinkActionType = _ref17.smartLinkActionType;
541
519
  return {
542
520
  action: 'clicked',
543
521
  actionSubject: 'button',
@@ -3,7 +3,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
3
3
  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) { _defineProperty(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; }
4
4
  import { getMeasure } from '../performance';
5
5
  import { resolvedEvent, unresolvedEvent } from './analytics';
6
- export { ANALYTICS_CHANNEL, context, fireSmartLinkEvent, resolvedEvent, unresolvedEvent, invokeSucceededEvent, invokeFailedEvent, chunkloadFailedEvent, connectSucceededEvent, connectFailedEvent, uiAuthEvent, uiAuthAlternateAccountEvent, uiCardClickedEvent, uiActionClickedEvent, uiClosedAuthEvent, screenAuthPopupEvent, uiRenderSuccessEvent, uiRenderFailedEvent, uiHoverCardViewedEvent, uiHoverCardDismissedEvent, uiHoverCardOpenLinkClickedEvent, uiLearnMoreLinkClickedEvent, uiSmartLinkStatusLozengeButtonClicked, uiSmartLinkStatusListItemButtonClicked, uiSmartLinkStatusOpenPreviewButtonClicked } from './analytics';
6
+ export { ANALYTICS_CHANNEL, context, fireSmartLinkEvent, resolvedEvent, unresolvedEvent, invokeSucceededEvent, invokeFailedEvent, chunkloadFailedEvent, connectSucceededEvent, connectFailedEvent, uiAuthEvent, uiAuthAlternateAccountEvent, uiCardClickedEvent, uiActionClickedEvent, uiClosedAuthEvent, uiRenderSuccessEvent, uiRenderFailedEvent, uiHoverCardViewedEvent, uiHoverCardDismissedEvent, uiHoverCardOpenLinkClickedEvent, uiLearnMoreLinkClickedEvent, uiSmartLinkStatusLozengeButtonClicked, uiSmartLinkStatusListItemButtonClicked, uiSmartLinkStatusOpenPreviewButtonClicked } from './analytics';
7
7
  export var instrumentEvent = function instrumentEvent(_ref) {
8
8
  var id = _ref.id,
9
9
  status = _ref.status,
@@ -10,7 +10,7 @@ import LinkWarningModal from './LinkWarningModal';
10
10
  import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
11
11
  var PACKAGE_DATA = {
12
12
  packageName: "@atlaskit/smart-card",
13
- packageVersion: "31.0.2",
13
+ packageVersion: "32.0.0",
14
14
  componentName: 'linkUrl'
15
15
  };
16
16
  var Link = withLinkClickedEvent('a');
@@ -0,0 +1,3 @@
1
+ import { type InvokeClientActionProps } from '../../state/hooks/use-invoke-client-action/types';
2
+ import { type ExtractActionsProps } from '../common/actions/types';
3
+ export declare const extractDownloadActionProps: ({ response, actionOptions, extensionKey, source, }: ExtractActionsProps) => InvokeClientActionProps | undefined;
@@ -0,0 +1,3 @@
1
+ import { type InvokeClientActionProps } from '../../state/hooks/use-invoke-client-action/types';
2
+ import type { ExtractActionsProps } from '../common/actions/types';
3
+ export declare const extractPreviewActionProps: ({ response, analytics, extensionKey, source, actionOptions, origin, }: ExtractActionsProps) => InvokeClientActionProps | undefined;
@@ -0,0 +1,3 @@
1
+ import { type InvokeClientActionProps } from '../../state/hooks/use-invoke-client-action/types';
2
+ import { type ExtractActionsProps } from '../common/actions/types';
3
+ export declare const extractViewActionProps: ({ response, actionOptions, extensionKey, source, }: ExtractActionsProps) => InvokeClientActionProps | undefined;
@@ -41,3 +41,8 @@ export declare const PREVIEW: JsonLd.Data.BaseData['preview'];
41
41
  export declare const TEST_DOCUMENT_WITH_PREVIEW: JsonLd.Data.BaseData;
42
42
  export declare const TEST_DATA_WITH_LATEST_COMMIT_OBJ: JsonLd.Data.SourceCodeRepository;
43
43
  export declare const TEST_DATA_WITH_LATEST_COMMIT_TEXT: JsonLd.Data.SourceCodeRepository;
44
+ export declare const TEST_RESPONSE: JsonLd.Response;
45
+ export declare const TEST_RESPONSE_WITH_PREVIEW_AND_DOWNLOAD: JsonLd.Response;
46
+ export declare const TEST_RESPONSE_WITH_DOWNLOAD: JsonLd.Response;
47
+ export declare const TEST_RESPONSE_WITH_PREVIEW: JsonLd.Response;
48
+ export declare const TEST_RESPONSE_WITH_VIEW: JsonLd.Response;
@@ -3,4 +3,8 @@ import { type InvokeHandler } from '../../../model/invoke-handler';
3
3
  import { type ActionProps } from '../../../view/BlockCard/components/Action';
4
4
  import { type CardActionOptions } from '../../../view/Card/types';
5
5
  export declare const getActionsFromJsonLd: (jsonLd: JsonLd.Data.BaseData) => JsonLd.Primitives.Action[];
6
+ /**
7
+ * @private
8
+ * @deprecated - use flexible extractors instead
9
+ */
6
10
  export declare function extractClientActions(jsonLd: JsonLd.Data.BaseData, handler: InvokeHandler, actionOptions?: CardActionOptions): ActionProps[];
@@ -2,6 +2,10 @@ import { type JsonLd } from 'json-ld-types';
2
2
  import { type BlockCardResolvedViewProps } from '../../../view/BlockCard';
3
3
  import { type CardPlatform } from '../../../view/Card/types';
4
4
  import { type ExtractBlockOpts } from '../../block/types';
5
+ /**
6
+ * @private
7
+ * @deprecated - use extractPreviewActionProps instead
8
+ */
5
9
  export declare const extractPreviewAction: ({ extensionKey, viewProps, jsonLd, handleInvoke, testId, platform, origin, source, analytics, meta, actionOptions, }: ExtractBlockOpts & {
6
10
  viewProps: BlockCardResolvedViewProps;
7
11
  jsonLd: JsonLd.Data.BaseData;
@@ -0,0 +1,21 @@
1
+ /// <reference types="react" />
2
+ import { type JsonLd } from 'json-ld-types';
3
+ import { type AnalyticsFacade } from '../../../state/analytics';
4
+ import { type AnalyticsOrigin } from '../../../utils/types';
5
+ import { type CardActionOptions, type CardInnerAppearance } from '../../../view/Card/types';
6
+ export type ExtractActionsProps = {
7
+ response: JsonLd.Response;
8
+ analytics: AnalyticsFacade;
9
+ actionOptions?: CardActionOptions;
10
+ extensionKey?: string;
11
+ source?: CardInnerAppearance;
12
+ origin?: AnalyticsOrigin;
13
+ };
14
+ export interface ActionProps {
15
+ /** String identifier for the action (e.g. 'preview-content') */
16
+ id: string;
17
+ /** The text to be displayed in the action's button */
18
+ text: React.ReactNode;
19
+ /** The function to be called on clicking the action. This is a promise so the state can transition correctly after the action finishes */
20
+ invoke: () => Promise<any>;
21
+ }
@@ -1,4 +1,4 @@
1
- import { type ConnectFailedEventProps, type ConnectSucceededEventProps, type InstrumentEventProps, type InvokeFailedEventProps, type InvokeSucceededEventProps, type ScreenAuthPopupEventProps, type UiActionClickedEventProps, type UiAuthAlternateAccountEventProps, type UiAuthEventProps, type UiCardClickedEventProps, type UiClosedAuthEventProps, type UiHoverCardDismissedEventProps, type UiHoverCardOpenLinkClickedEventProps, type UiHoverCardViewedEventProps, type UiRenderFailedEventProps, type UiRenderSuccessEventProps, type UiServerActionClickedEventProps } from '../../utils/analytics/types';
1
+ import { type ConnectFailedEventProps, type ConnectSucceededEventProps, type InstrumentEventProps, type InvokeFailedEventProps, type InvokeSucceededEventProps, type UiActionClickedEventProps, type UiAuthAlternateAccountEventProps, type UiAuthEventProps, type UiCardClickedEventProps, type UiClosedAuthEventProps, type UiHoverCardDismissedEventProps, type UiHoverCardOpenLinkClickedEventProps, type UiHoverCardViewedEventProps, type UiRenderFailedEventProps, type UiRenderSuccessEventProps, type UiServerActionClickedEventProps } from '../../utils/analytics/types';
2
2
  import { type AnalyticsName, type AnalyticsPayload } from '../../utils/types';
3
3
  /**
4
4
  * This hook provides usage of Smart Link analytics outside of the Card component.
@@ -194,14 +194,6 @@ export declare const useSmartLinkAnalytics: (url: string, id?: string, defaultLo
194
194
  chunkloadFailedEvent: ({ display, error, errorInfo, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: UiRenderFailedEventProps) => void;
195
195
  };
196
196
  screen: {
197
- /**
198
- * This fires an event which represents the connect account page being opened.
199
- * @param definitionId The definitionId of the Smart Link resolver invoked.
200
- * @param extensionKey The extensionKey of the Smart Link resovler invoked.
201
- * @returns
202
- * @deprecated remove when platform_smart-card-migrate-screen-analytics is cleaned up
203
- */
204
- authPopupEvent: ({ extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: ScreenAuthPopupEventProps) => void;
205
197
  /**
206
198
  * This fires an event that represents when a user view a modal.
207
199
  * @param data A partial analytics event payload
@@ -257,6 +257,7 @@ export type PreviewActionData = {
257
257
  title?: string;
258
258
  url?: string;
259
259
  isSupportTheming?: boolean;
260
+ isTrusted?: boolean;
260
261
  };
261
262
  export type ViewActionData = {
262
263
  viewUrl?: string;
@@ -1,6 +1,6 @@
1
- import type { InvokeClientActionProps, UseInvokeClientActionProps } from './types';
1
+ import type { InvokeClientActionHandler, UseInvokeClientActionProps } from './types';
2
2
  /**
3
3
  * Invoke client action such as preview, download and open link
4
4
  */
5
- declare const useInvokeClientAction: ({ analytics }: UseInvokeClientActionProps) => ({ actionType, actionFn, extensionKey, display }: InvokeClientActionProps) => Promise<void>;
5
+ declare const useInvokeClientAction: ({ analytics, }: UseInvokeClientActionProps) => InvokeClientActionHandler;
6
6
  export default useInvokeClientAction;
@@ -28,3 +28,4 @@ export type InvokeClientActionProps = {
28
28
  */
29
29
  extensionKey?: string;
30
30
  };
31
+ export type InvokeClientActionHandler = (opts: InvokeClientActionProps) => Promise<void>;
@@ -41,7 +41,6 @@ export declare function useSmartLink(id: string, url: string): {
41
41
  chunkloadFailedEvent: ({ display, error, errorInfo, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").UiRenderFailedEventProps) => void;
42
42
  };
43
43
  screen: {
44
- authPopupEvent: ({ extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").CommonEventProps) => void;
45
44
  modalViewedEvent: (data: Partial<import("../..").AnalyticsPayload> & {
46
45
  name: "embedPreviewModal";
47
46
  }) => void;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { type MessageDescriptor } from 'react-intl-next';
3
+ import { type InvokeClientActionHandler, type InvokeClientActionProps } from '../../state/hooks/use-invoke-client-action/types';
4
+ export declare const toAction: (action: InvokeClientActionProps, invokeClientAction: InvokeClientActionHandler, message: MessageDescriptor, id: string) => {
5
+ id: string;
6
+ text: JSX.Element;
7
+ invoke: () => Promise<void>;
8
+ };
@@ -1,7 +1,7 @@
1
1
  import { type CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
2
2
  import { type CardInnerAppearance } from '../../view/Card/types';
3
3
  import { type AnalyticsPayload } from '../types';
4
- import { type ConnectFailedEventProps, type ConnectSucceededEventProps, type InvokeFailedEventProps, type InvokeSucceededEventProps, type ResolvedEventProps, type ScreenAuthPopupEventProps, type UiActionClickedEventProps, type UiAuthAlternateAccountEventProps, type UiAuthEventProps, type UiCardClickedEventProps, type UiClosedAuthEventProps, type UiHoverCardDismissedEventProps, type UiHoverCardOpenLinkClickedEventProps, type UiHoverCardViewedEventProps, type UiRenderFailedEventProps, type UiRenderSuccessEventProps, type UiServerActionClickedEventProps, type UnresolvedEventProps } from './types';
4
+ import { type ConnectFailedEventProps, type ConnectSucceededEventProps, type InvokeFailedEventProps, type InvokeSucceededEventProps, type ResolvedEventProps, type UiActionClickedEventProps, type UiAuthAlternateAccountEventProps, type UiAuthEventProps, type UiCardClickedEventProps, type UiClosedAuthEventProps, type UiHoverCardDismissedEventProps, type UiHoverCardOpenLinkClickedEventProps, type UiHoverCardViewedEventProps, type UiRenderFailedEventProps, type UiRenderSuccessEventProps, type UiServerActionClickedEventProps, type UnresolvedEventProps } from './types';
5
5
  export declare const ANALYTICS_CHANNEL = "media";
6
6
  export declare const context: {
7
7
  componentName: string;
@@ -33,10 +33,6 @@ export declare const uiAuthAlternateAccountEvent: ({ definitionId, extensionKey,
33
33
  export declare const uiCardClickedEvent: ({ id, display, status, definitionId, extensionKey, isModifierKeyPressed, location, destinationProduct, destinationSubproduct, actionSubjectId, }: UiCardClickedEventProps) => AnalyticsPayload;
34
34
  export declare const uiActionClickedEvent: ({ id, actionType, extensionKey, display, definitionId, destinationProduct, destinationSubproduct, location, }: UiActionClickedEventProps) => AnalyticsPayload;
35
35
  export declare const uiClosedAuthEvent: ({ display, extensionKey, definitionId, destinationProduct, destinationSubproduct, location, }: UiClosedAuthEventProps) => AnalyticsPayload;
36
- /**
37
- * @deprecated remove when platform_smart-card-migrate-screen-analytics is cleaned up
38
- */
39
- export declare const screenAuthPopupEvent: ({ extensionKey, definitionId, destinationProduct, destinationSubproduct, location, }: ScreenAuthPopupEventProps) => AnalyticsPayload;
40
36
  export declare const uiRenderSuccessEvent: ({ display, status, extensionKey, definitionId, destinationProduct, destinationSubproduct, location, canBeDatasource, }: UiRenderSuccessEventProps) => AnalyticsPayload;
41
37
  export declare const uiRenderFailedEvent: ({ display, error, errorInfo, extensionKey, definitionId, destinationProduct, destinationSubproduct, location, }: UiRenderFailedEventProps) => AnalyticsPayload;
42
38
  export declare const uiHoverCardViewedEvent: ({ id, previewDisplay, extensionKey, definitionId, destinationProduct, destinationSubproduct, location, previewInvokeMethod, status, }: UiHoverCardViewedEventProps) => AnalyticsPayload;
@@ -1,4 +1,4 @@
1
1
  import { type AnalyticsPayload } from '../types';
2
2
  import { type InstrumentEventProps } from './types';
3
- export { ANALYTICS_CHANNEL, context, fireSmartLinkEvent, resolvedEvent, unresolvedEvent, invokeSucceededEvent, invokeFailedEvent, chunkloadFailedEvent, connectSucceededEvent, connectFailedEvent, uiAuthEvent, uiAuthAlternateAccountEvent, uiCardClickedEvent, uiActionClickedEvent, uiClosedAuthEvent, screenAuthPopupEvent, uiRenderSuccessEvent, uiRenderFailedEvent, uiHoverCardViewedEvent, uiHoverCardDismissedEvent, uiHoverCardOpenLinkClickedEvent, uiLearnMoreLinkClickedEvent, uiSmartLinkStatusLozengeButtonClicked, uiSmartLinkStatusListItemButtonClicked, uiSmartLinkStatusOpenPreviewButtonClicked, } from './analytics';
3
+ export { ANALYTICS_CHANNEL, context, fireSmartLinkEvent, resolvedEvent, unresolvedEvent, invokeSucceededEvent, invokeFailedEvent, chunkloadFailedEvent, connectSucceededEvent, connectFailedEvent, uiAuthEvent, uiAuthAlternateAccountEvent, uiCardClickedEvent, uiActionClickedEvent, uiClosedAuthEvent, uiRenderSuccessEvent, uiRenderFailedEvent, uiHoverCardViewedEvent, uiHoverCardDismissedEvent, uiHoverCardOpenLinkClickedEvent, uiLearnMoreLinkClickedEvent, uiSmartLinkStatusLozengeButtonClicked, uiSmartLinkStatusListItemButtonClicked, uiSmartLinkStatusOpenPreviewButtonClicked, } from './analytics';
4
4
  export declare const instrumentEvent: ({ id, status, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, error, }: InstrumentEventProps) => AnalyticsPayload | undefined;
@@ -65,10 +65,6 @@ export type UiActionClickedEventProps = CommonEventProps & {
65
65
  export type UiServerActionClickedEventProps = CommonEventProps & {
66
66
  smartLinkActionType: SmartLinkActionType;
67
67
  };
68
- /**
69
- * @deprecated remove when platform_smart-card-migrate-screen-analytics is cleaned up
70
- */
71
- export type ScreenAuthPopupEventProps = CommonEventProps;
72
68
  export type UiClosedAuthEventProps = CommonEventProps & {
73
69
  display: CardInnerAppearance;
74
70
  };
@@ -122,7 +122,6 @@ export declare const mockAnalytics: {
122
122
  chunkloadFailedEvent: ({ display, error, errorInfo, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("./analytics/types").UiRenderFailedEventProps) => void;
123
123
  };
124
124
  screen: {
125
- authPopupEvent: ({ extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("./analytics/types").CommonEventProps) => void;
126
125
  modalViewedEvent: (data: Partial<import("./types").AnalyticsPayload> & {
127
126
  name: "embedPreviewModal";
128
127
  }) => void;
@@ -0,0 +1,3 @@
1
+ import { type InvokeClientActionProps } from '../../state/hooks/use-invoke-client-action/types';
2
+ import { type ExtractActionsProps } from '../common/actions/types';
3
+ export declare const extractDownloadActionProps: ({ response, actionOptions, extensionKey, source, }: ExtractActionsProps) => InvokeClientActionProps | undefined;
@@ -0,0 +1,3 @@
1
+ import { type InvokeClientActionProps } from '../../state/hooks/use-invoke-client-action/types';
2
+ import type { ExtractActionsProps } from '../common/actions/types';
3
+ export declare const extractPreviewActionProps: ({ response, analytics, extensionKey, source, actionOptions, origin, }: ExtractActionsProps) => InvokeClientActionProps | undefined;
@@ -0,0 +1,3 @@
1
+ import { type InvokeClientActionProps } from '../../state/hooks/use-invoke-client-action/types';
2
+ import { type ExtractActionsProps } from '../common/actions/types';
3
+ export declare const extractViewActionProps: ({ response, actionOptions, extensionKey, source, }: ExtractActionsProps) => InvokeClientActionProps | undefined;
@@ -41,3 +41,8 @@ export declare const PREVIEW: JsonLd.Data.BaseData['preview'];
41
41
  export declare const TEST_DOCUMENT_WITH_PREVIEW: JsonLd.Data.BaseData;
42
42
  export declare const TEST_DATA_WITH_LATEST_COMMIT_OBJ: JsonLd.Data.SourceCodeRepository;
43
43
  export declare const TEST_DATA_WITH_LATEST_COMMIT_TEXT: JsonLd.Data.SourceCodeRepository;
44
+ export declare const TEST_RESPONSE: JsonLd.Response;
45
+ export declare const TEST_RESPONSE_WITH_PREVIEW_AND_DOWNLOAD: JsonLd.Response;
46
+ export declare const TEST_RESPONSE_WITH_DOWNLOAD: JsonLd.Response;
47
+ export declare const TEST_RESPONSE_WITH_PREVIEW: JsonLd.Response;
48
+ export declare const TEST_RESPONSE_WITH_VIEW: JsonLd.Response;
@@ -3,4 +3,8 @@ import { type InvokeHandler } from '../../../model/invoke-handler';
3
3
  import { type ActionProps } from '../../../view/BlockCard/components/Action';
4
4
  import { type CardActionOptions } from '../../../view/Card/types';
5
5
  export declare const getActionsFromJsonLd: (jsonLd: JsonLd.Data.BaseData) => JsonLd.Primitives.Action[];
6
+ /**
7
+ * @private
8
+ * @deprecated - use flexible extractors instead
9
+ */
6
10
  export declare function extractClientActions(jsonLd: JsonLd.Data.BaseData, handler: InvokeHandler, actionOptions?: CardActionOptions): ActionProps[];
@@ -2,6 +2,10 @@ import { type JsonLd } from 'json-ld-types';
2
2
  import { type BlockCardResolvedViewProps } from '../../../view/BlockCard';
3
3
  import { type CardPlatform } from '../../../view/Card/types';
4
4
  import { type ExtractBlockOpts } from '../../block/types';
5
+ /**
6
+ * @private
7
+ * @deprecated - use extractPreviewActionProps instead
8
+ */
5
9
  export declare const extractPreviewAction: ({ extensionKey, viewProps, jsonLd, handleInvoke, testId, platform, origin, source, analytics, meta, actionOptions, }: ExtractBlockOpts & {
6
10
  viewProps: BlockCardResolvedViewProps;
7
11
  jsonLd: JsonLd.Data.BaseData;
@@ -0,0 +1,21 @@
1
+ /// <reference types="react" />
2
+ import { type JsonLd } from 'json-ld-types';
3
+ import { type AnalyticsFacade } from '../../../state/analytics';
4
+ import { type AnalyticsOrigin } from '../../../utils/types';
5
+ import { type CardActionOptions, type CardInnerAppearance } from '../../../view/Card/types';
6
+ export type ExtractActionsProps = {
7
+ response: JsonLd.Response;
8
+ analytics: AnalyticsFacade;
9
+ actionOptions?: CardActionOptions;
10
+ extensionKey?: string;
11
+ source?: CardInnerAppearance;
12
+ origin?: AnalyticsOrigin;
13
+ };
14
+ export interface ActionProps {
15
+ /** String identifier for the action (e.g. 'preview-content') */
16
+ id: string;
17
+ /** The text to be displayed in the action's button */
18
+ text: React.ReactNode;
19
+ /** The function to be called on clicking the action. This is a promise so the state can transition correctly after the action finishes */
20
+ invoke: () => Promise<any>;
21
+ }
@@ -1,4 +1,4 @@
1
- import { type ConnectFailedEventProps, type ConnectSucceededEventProps, type InstrumentEventProps, type InvokeFailedEventProps, type InvokeSucceededEventProps, type ScreenAuthPopupEventProps, type UiActionClickedEventProps, type UiAuthAlternateAccountEventProps, type UiAuthEventProps, type UiCardClickedEventProps, type UiClosedAuthEventProps, type UiHoverCardDismissedEventProps, type UiHoverCardOpenLinkClickedEventProps, type UiHoverCardViewedEventProps, type UiRenderFailedEventProps, type UiRenderSuccessEventProps, type UiServerActionClickedEventProps } from '../../utils/analytics/types';
1
+ import { type ConnectFailedEventProps, type ConnectSucceededEventProps, type InstrumentEventProps, type InvokeFailedEventProps, type InvokeSucceededEventProps, type UiActionClickedEventProps, type UiAuthAlternateAccountEventProps, type UiAuthEventProps, type UiCardClickedEventProps, type UiClosedAuthEventProps, type UiHoverCardDismissedEventProps, type UiHoverCardOpenLinkClickedEventProps, type UiHoverCardViewedEventProps, type UiRenderFailedEventProps, type UiRenderSuccessEventProps, type UiServerActionClickedEventProps } from '../../utils/analytics/types';
2
2
  import { type AnalyticsName, type AnalyticsPayload } from '../../utils/types';
3
3
  /**
4
4
  * This hook provides usage of Smart Link analytics outside of the Card component.
@@ -194,14 +194,6 @@ export declare const useSmartLinkAnalytics: (url: string, id?: string, defaultLo
194
194
  chunkloadFailedEvent: ({ display, error, errorInfo, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: UiRenderFailedEventProps) => void;
195
195
  };
196
196
  screen: {
197
- /**
198
- * This fires an event which represents the connect account page being opened.
199
- * @param definitionId The definitionId of the Smart Link resolver invoked.
200
- * @param extensionKey The extensionKey of the Smart Link resovler invoked.
201
- * @returns
202
- * @deprecated remove when platform_smart-card-migrate-screen-analytics is cleaned up
203
- */
204
- authPopupEvent: ({ extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: ScreenAuthPopupEventProps) => void;
205
197
  /**
206
198
  * This fires an event that represents when a user view a modal.
207
199
  * @param data A partial analytics event payload
@@ -257,6 +257,7 @@ export type PreviewActionData = {
257
257
  title?: string;
258
258
  url?: string;
259
259
  isSupportTheming?: boolean;
260
+ isTrusted?: boolean;
260
261
  };
261
262
  export type ViewActionData = {
262
263
  viewUrl?: string;
@@ -1,6 +1,6 @@
1
- import type { InvokeClientActionProps, UseInvokeClientActionProps } from './types';
1
+ import type { InvokeClientActionHandler, UseInvokeClientActionProps } from './types';
2
2
  /**
3
3
  * Invoke client action such as preview, download and open link
4
4
  */
5
- declare const useInvokeClientAction: ({ analytics }: UseInvokeClientActionProps) => ({ actionType, actionFn, extensionKey, display }: InvokeClientActionProps) => Promise<void>;
5
+ declare const useInvokeClientAction: ({ analytics, }: UseInvokeClientActionProps) => InvokeClientActionHandler;
6
6
  export default useInvokeClientAction;
@@ -28,3 +28,4 @@ export type InvokeClientActionProps = {
28
28
  */
29
29
  extensionKey?: string;
30
30
  };
31
+ export type InvokeClientActionHandler = (opts: InvokeClientActionProps) => Promise<void>;
@@ -41,7 +41,6 @@ export declare function useSmartLink(id: string, url: string): {
41
41
  chunkloadFailedEvent: ({ display, error, errorInfo, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").UiRenderFailedEventProps) => void;
42
42
  };
43
43
  screen: {
44
- authPopupEvent: ({ extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").CommonEventProps) => void;
45
44
  modalViewedEvent: (data: Partial<import("../..").AnalyticsPayload> & {
46
45
  name: "embedPreviewModal";
47
46
  }) => void;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { type MessageDescriptor } from 'react-intl-next';
3
+ import { type InvokeClientActionHandler, type InvokeClientActionProps } from '../../state/hooks/use-invoke-client-action/types';
4
+ export declare const toAction: (action: InvokeClientActionProps, invokeClientAction: InvokeClientActionHandler, message: MessageDescriptor, id: string) => {
5
+ id: string;
6
+ text: JSX.Element;
7
+ invoke: () => Promise<void>;
8
+ };
@@ -1,7 +1,7 @@
1
1
  import { type CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
2
2
  import { type CardInnerAppearance } from '../../view/Card/types';
3
3
  import { type AnalyticsPayload } from '../types';
4
- import { type ConnectFailedEventProps, type ConnectSucceededEventProps, type InvokeFailedEventProps, type InvokeSucceededEventProps, type ResolvedEventProps, type ScreenAuthPopupEventProps, type UiActionClickedEventProps, type UiAuthAlternateAccountEventProps, type UiAuthEventProps, type UiCardClickedEventProps, type UiClosedAuthEventProps, type UiHoverCardDismissedEventProps, type UiHoverCardOpenLinkClickedEventProps, type UiHoverCardViewedEventProps, type UiRenderFailedEventProps, type UiRenderSuccessEventProps, type UiServerActionClickedEventProps, type UnresolvedEventProps } from './types';
4
+ import { type ConnectFailedEventProps, type ConnectSucceededEventProps, type InvokeFailedEventProps, type InvokeSucceededEventProps, type ResolvedEventProps, type UiActionClickedEventProps, type UiAuthAlternateAccountEventProps, type UiAuthEventProps, type UiCardClickedEventProps, type UiClosedAuthEventProps, type UiHoverCardDismissedEventProps, type UiHoverCardOpenLinkClickedEventProps, type UiHoverCardViewedEventProps, type UiRenderFailedEventProps, type UiRenderSuccessEventProps, type UiServerActionClickedEventProps, type UnresolvedEventProps } from './types';
5
5
  export declare const ANALYTICS_CHANNEL = "media";
6
6
  export declare const context: {
7
7
  componentName: string;
@@ -33,10 +33,6 @@ export declare const uiAuthAlternateAccountEvent: ({ definitionId, extensionKey,
33
33
  export declare const uiCardClickedEvent: ({ id, display, status, definitionId, extensionKey, isModifierKeyPressed, location, destinationProduct, destinationSubproduct, actionSubjectId, }: UiCardClickedEventProps) => AnalyticsPayload;
34
34
  export declare const uiActionClickedEvent: ({ id, actionType, extensionKey, display, definitionId, destinationProduct, destinationSubproduct, location, }: UiActionClickedEventProps) => AnalyticsPayload;
35
35
  export declare const uiClosedAuthEvent: ({ display, extensionKey, definitionId, destinationProduct, destinationSubproduct, location, }: UiClosedAuthEventProps) => AnalyticsPayload;
36
- /**
37
- * @deprecated remove when platform_smart-card-migrate-screen-analytics is cleaned up
38
- */
39
- export declare const screenAuthPopupEvent: ({ extensionKey, definitionId, destinationProduct, destinationSubproduct, location, }: ScreenAuthPopupEventProps) => AnalyticsPayload;
40
36
  export declare const uiRenderSuccessEvent: ({ display, status, extensionKey, definitionId, destinationProduct, destinationSubproduct, location, canBeDatasource, }: UiRenderSuccessEventProps) => AnalyticsPayload;
41
37
  export declare const uiRenderFailedEvent: ({ display, error, errorInfo, extensionKey, definitionId, destinationProduct, destinationSubproduct, location, }: UiRenderFailedEventProps) => AnalyticsPayload;
42
38
  export declare const uiHoverCardViewedEvent: ({ id, previewDisplay, extensionKey, definitionId, destinationProduct, destinationSubproduct, location, previewInvokeMethod, status, }: UiHoverCardViewedEventProps) => AnalyticsPayload;
@@ -1,4 +1,4 @@
1
1
  import { type AnalyticsPayload } from '../types';
2
2
  import { type InstrumentEventProps } from './types';
3
- export { ANALYTICS_CHANNEL, context, fireSmartLinkEvent, resolvedEvent, unresolvedEvent, invokeSucceededEvent, invokeFailedEvent, chunkloadFailedEvent, connectSucceededEvent, connectFailedEvent, uiAuthEvent, uiAuthAlternateAccountEvent, uiCardClickedEvent, uiActionClickedEvent, uiClosedAuthEvent, screenAuthPopupEvent, uiRenderSuccessEvent, uiRenderFailedEvent, uiHoverCardViewedEvent, uiHoverCardDismissedEvent, uiHoverCardOpenLinkClickedEvent, uiLearnMoreLinkClickedEvent, uiSmartLinkStatusLozengeButtonClicked, uiSmartLinkStatusListItemButtonClicked, uiSmartLinkStatusOpenPreviewButtonClicked, } from './analytics';
3
+ export { ANALYTICS_CHANNEL, context, fireSmartLinkEvent, resolvedEvent, unresolvedEvent, invokeSucceededEvent, invokeFailedEvent, chunkloadFailedEvent, connectSucceededEvent, connectFailedEvent, uiAuthEvent, uiAuthAlternateAccountEvent, uiCardClickedEvent, uiActionClickedEvent, uiClosedAuthEvent, uiRenderSuccessEvent, uiRenderFailedEvent, uiHoverCardViewedEvent, uiHoverCardDismissedEvent, uiHoverCardOpenLinkClickedEvent, uiLearnMoreLinkClickedEvent, uiSmartLinkStatusLozengeButtonClicked, uiSmartLinkStatusListItemButtonClicked, uiSmartLinkStatusOpenPreviewButtonClicked, } from './analytics';
4
4
  export declare const instrumentEvent: ({ id, status, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, error, }: InstrumentEventProps) => AnalyticsPayload | undefined;