@atlaskit/smart-card 30.2.7 → 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 (81) hide show
  1. package/CHANGELOG.md +24 -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/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/header/main.js +2 -4
  14. package/dist/cjs/view/FlexibleCard/components/actions/follow-action/goal-icon/index.js +2 -21
  15. package/dist/cjs/view/FlexibleCard/components/actions/follow-action/projects-icon/index.js +3 -21
  16. package/dist/cjs/view/FlexibleCard/components/actions/follow-action/unfollow-icon/index.js +4 -28
  17. package/dist/cjs/view/FlexibleCard/components/blocks/action-block/action-footer/index.js +1 -4
  18. package/dist/cjs/view/FlexibleCard/components/blocks/ai-footer-block/icons/info/index.js +6 -23
  19. package/dist/cjs/view/FlexibleCard/components/blocks/ai-footer-block/resolved/ai-footer-metadata.js +2 -2
  20. package/dist/cjs/view/FlexibleCard/components/elements/link/index.js +1 -1
  21. package/dist/cjs/view/LinkUrl/index.js +1 -1
  22. package/dist/es2019/state/analytics/useSmartLinkAnalytics.js +1 -69
  23. package/dist/es2019/utils/analytics/analytics.js +1 -63
  24. package/dist/es2019/utils/analytics/index.js +1 -1
  25. package/dist/es2019/view/BlockCard/components/Name.js +1 -3
  26. package/dist/es2019/view/BlockCard/views/ResolvingView.js +1 -2
  27. package/dist/es2019/view/CardWithUrl/component.js +14 -41
  28. package/dist/es2019/view/EmbedCard/components/styled.js +4 -11
  29. package/dist/es2019/view/EmbedCard/views/ErroredView.js +2 -2
  30. package/dist/es2019/view/EmbedCard/views/unresolved-view/index.js +1 -1
  31. package/dist/es2019/view/EmbedModal/components/link-info/styled.js +2 -3
  32. package/dist/es2019/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +1 -6
  33. package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/header/main.js +2 -4
  34. package/dist/es2019/view/FlexibleCard/components/actions/follow-action/goal-icon/index.js +1 -16
  35. package/dist/es2019/view/FlexibleCard/components/actions/follow-action/projects-icon/index.js +2 -16
  36. package/dist/es2019/view/FlexibleCard/components/actions/follow-action/unfollow-icon/index.js +4 -26
  37. package/dist/es2019/view/FlexibleCard/components/blocks/action-block/action-footer/index.js +1 -4
  38. package/dist/es2019/view/FlexibleCard/components/blocks/ai-footer-block/icons/info/index.js +6 -21
  39. package/dist/es2019/view/FlexibleCard/components/blocks/ai-footer-block/resolved/ai-footer-metadata.js +2 -2
  40. package/dist/es2019/view/FlexibleCard/components/elements/link/index.js +1 -1
  41. package/dist/es2019/view/LinkUrl/index.js +1 -1
  42. package/dist/esm/state/analytics/useSmartLinkAnalytics.js +147 -217
  43. package/dist/esm/utils/analytics/analytics.js +77 -139
  44. package/dist/esm/utils/analytics/index.js +1 -1
  45. package/dist/esm/view/BlockCard/components/Name.js +1 -3
  46. package/dist/esm/view/BlockCard/views/ResolvingView.js +1 -2
  47. package/dist/esm/view/CardWithUrl/component.js +14 -41
  48. package/dist/esm/view/EmbedCard/components/styled.js +4 -11
  49. package/dist/esm/view/EmbedCard/views/ErroredView.js +2 -2
  50. package/dist/esm/view/EmbedCard/views/unresolved-view/index.js +1 -1
  51. package/dist/esm/view/EmbedModal/components/link-info/styled.js +2 -3
  52. package/dist/esm/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +1 -6
  53. package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/header/main.js +2 -4
  54. package/dist/esm/view/FlexibleCard/components/actions/follow-action/goal-icon/index.js +1 -20
  55. package/dist/esm/view/FlexibleCard/components/actions/follow-action/projects-icon/index.js +2 -20
  56. package/dist/esm/view/FlexibleCard/components/actions/follow-action/unfollow-icon/index.js +4 -28
  57. package/dist/esm/view/FlexibleCard/components/blocks/action-block/action-footer/index.js +1 -4
  58. package/dist/esm/view/FlexibleCard/components/blocks/ai-footer-block/icons/info/index.js +6 -23
  59. package/dist/esm/view/FlexibleCard/components/blocks/ai-footer-block/resolved/ai-footer-metadata.js +2 -2
  60. package/dist/esm/view/FlexibleCard/components/elements/link/index.js +1 -1
  61. package/dist/esm/view/LinkUrl/index.js +1 -1
  62. package/dist/types/state/analytics/useSmartLinkAnalytics.d.ts +1 -29
  63. package/dist/types/state/hooks/useSmartLink.d.ts +0 -2
  64. package/dist/types/utils/analytics/analytics.d.ts +1 -9
  65. package/dist/types/utils/analytics/index.d.ts +1 -1
  66. package/dist/types/utils/analytics/types.d.ts +0 -12
  67. package/dist/types/utils/mocks.d.ts +0 -2
  68. package/dist/types/view/FlexibleCard/components/blocks/ai-footer-block/icons/info/index.d.ts +2 -2
  69. package/dist/types-ts4.5/state/analytics/useSmartLinkAnalytics.d.ts +1 -29
  70. package/dist/types-ts4.5/state/hooks/useSmartLink.d.ts +0 -2
  71. package/dist/types-ts4.5/utils/analytics/analytics.d.ts +1 -9
  72. package/dist/types-ts4.5/utils/analytics/index.d.ts +1 -1
  73. package/dist/types-ts4.5/utils/analytics/types.d.ts +0 -12
  74. package/dist/types-ts4.5/utils/mocks.d.ts +0 -2
  75. package/dist/types-ts4.5/view/FlexibleCard/components/blocks/ai-footer-block/icons/info/index.d.ts +2 -2
  76. package/package.json +4 -6
  77. package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/header/manual-trigger-icon/index.js +0 -29
  78. package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/header/manual-trigger-icon/index.js +0 -20
  79. package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/header/manual-trigger-icon/index.js +0 -22
  80. package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/header/manual-trigger-icon/index.d.ts +0 -3
  81. package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/header/manual-trigger-icon/index.d.ts +0 -3
@@ -15,7 +15,7 @@ export var ANALYTICS_CHANNEL = 'media';
15
15
  export var context = {
16
16
  componentName: 'smart-cards',
17
17
  packageName: "@atlaskit/smart-card",
18
- packageVersion: "30.2.7"
18
+ packageVersion: "30.3.1"
19
19
  };
20
20
  export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
21
21
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -385,77 +385,15 @@ export var uiCardClickedEvent = function uiCardClickedEvent(_ref14) {
385
385
  })
386
386
  };
387
387
  };
388
-
389
- /**
390
- * @deprecated
391
- */
392
- export var uiIframeDwelledEvent = function uiIframeDwelledEvent(_ref15) {
388
+ export var uiActionClickedEvent = function uiActionClickedEvent(_ref15) {
393
389
  var id = _ref15.id,
390
+ actionType = _ref15.actionType,
391
+ extensionKey = _ref15.extensionKey,
394
392
  display = _ref15.display,
395
- status = _ref15.status,
396
393
  definitionId = _ref15.definitionId,
397
- extensionKey = _ref15.extensionKey,
398
- location = _ref15.location,
399
394
  destinationProduct = _ref15.destinationProduct,
400
395
  destinationSubproduct = _ref15.destinationSubproduct,
401
- dwellTime = _ref15.dwellTime,
402
- dwellPercentVisible = _ref15.dwellPercentVisible;
403
- return {
404
- action: 'dwelled',
405
- actionSubject: 'smartLinkIframe',
406
- eventType: 'ui',
407
- attributes: _objectSpread(_objectSpread({}, context), {}, {
408
- id: id,
409
- status: status,
410
- definitionId: definitionId,
411
- extensionKey: extensionKey,
412
- display: display,
413
- location: location,
414
- destinationProduct: destinationProduct,
415
- destinationSubproduct: destinationSubproduct,
416
- dwellTime: dwellTime,
417
- dwellPercentVisible: dwellPercentVisible
418
- })
419
- };
420
- };
421
-
422
- /**
423
- * @deprecated
424
- */
425
- export var uiIframeFocusedEvent = function uiIframeFocusedEvent(_ref16) {
426
- var id = _ref16.id,
427
- display = _ref16.display,
428
- status = _ref16.status,
429
- definitionId = _ref16.definitionId,
430
- extensionKey = _ref16.extensionKey,
431
- location = _ref16.location,
432
- destinationProduct = _ref16.destinationProduct,
433
- destinationSubproduct = _ref16.destinationSubproduct;
434
- return {
435
- action: 'focused',
436
- actionSubject: 'smartLinkIframe',
437
- eventType: 'ui',
438
- attributes: _objectSpread(_objectSpread({}, context), {}, {
439
- id: id,
440
- status: status,
441
- definitionId: definitionId,
442
- extensionKey: extensionKey,
443
- display: display,
444
- location: location,
445
- destinationProduct: destinationProduct,
446
- destinationSubproduct: destinationSubproduct
447
- })
448
- };
449
- };
450
- export var uiActionClickedEvent = function uiActionClickedEvent(_ref17) {
451
- var id = _ref17.id,
452
- actionType = _ref17.actionType,
453
- extensionKey = _ref17.extensionKey,
454
- display = _ref17.display,
455
- definitionId = _ref17.definitionId,
456
- destinationProduct = _ref17.destinationProduct,
457
- destinationSubproduct = _ref17.destinationSubproduct,
458
- location = _ref17.location;
396
+ location = _ref15.location;
459
397
  return {
460
398
  action: 'clicked',
461
399
  actionSubject: 'button',
@@ -473,13 +411,13 @@ export var uiActionClickedEvent = function uiActionClickedEvent(_ref17) {
473
411
  })
474
412
  };
475
413
  };
476
- export var uiClosedAuthEvent = function uiClosedAuthEvent(_ref18) {
477
- var display = _ref18.display,
478
- extensionKey = _ref18.extensionKey,
479
- definitionId = _ref18.definitionId,
480
- destinationProduct = _ref18.destinationProduct,
481
- destinationSubproduct = _ref18.destinationSubproduct,
482
- location = _ref18.location;
414
+ export var uiClosedAuthEvent = function uiClosedAuthEvent(_ref16) {
415
+ var display = _ref16.display,
416
+ extensionKey = _ref16.extensionKey,
417
+ definitionId = _ref16.definitionId,
418
+ destinationProduct = _ref16.destinationProduct,
419
+ destinationSubproduct = _ref16.destinationSubproduct,
420
+ location = _ref16.location;
483
421
  return {
484
422
  action: 'closed',
485
423
  actionSubject: 'consentModal',
@@ -494,12 +432,12 @@ export var uiClosedAuthEvent = function uiClosedAuthEvent(_ref18) {
494
432
  })
495
433
  };
496
434
  };
497
- export var screenAuthPopupEvent = function screenAuthPopupEvent(_ref19) {
498
- var extensionKey = _ref19.extensionKey,
499
- definitionId = _ref19.definitionId,
500
- destinationProduct = _ref19.destinationProduct,
501
- destinationSubproduct = _ref19.destinationSubproduct,
502
- location = _ref19.location;
435
+ export var screenAuthPopupEvent = function screenAuthPopupEvent(_ref17) {
436
+ var extensionKey = _ref17.extensionKey,
437
+ definitionId = _ref17.definitionId,
438
+ destinationProduct = _ref17.destinationProduct,
439
+ destinationSubproduct = _ref17.destinationSubproduct,
440
+ location = _ref17.location;
503
441
  return {
504
442
  actionSubject: 'consentModal',
505
443
  eventType: 'screen',
@@ -512,15 +450,15 @@ export var screenAuthPopupEvent = function screenAuthPopupEvent(_ref19) {
512
450
  })
513
451
  };
514
452
  };
515
- export var uiRenderSuccessEvent = function uiRenderSuccessEvent(_ref20) {
516
- var display = _ref20.display,
517
- status = _ref20.status,
518
- extensionKey = _ref20.extensionKey,
519
- definitionId = _ref20.definitionId,
520
- destinationProduct = _ref20.destinationProduct,
521
- destinationSubproduct = _ref20.destinationSubproduct,
522
- location = _ref20.location,
523
- canBeDatasource = _ref20.canBeDatasource;
453
+ export var uiRenderSuccessEvent = function uiRenderSuccessEvent(_ref18) {
454
+ var display = _ref18.display,
455
+ status = _ref18.status,
456
+ extensionKey = _ref18.extensionKey,
457
+ definitionId = _ref18.definitionId,
458
+ destinationProduct = _ref18.destinationProduct,
459
+ destinationSubproduct = _ref18.destinationSubproduct,
460
+ location = _ref18.location,
461
+ canBeDatasource = _ref18.canBeDatasource;
524
462
  return {
525
463
  action: 'renderSuccess',
526
464
  actionSubject: 'smartLink',
@@ -537,15 +475,15 @@ export var uiRenderSuccessEvent = function uiRenderSuccessEvent(_ref20) {
537
475
  })
538
476
  };
539
477
  };
540
- export var uiRenderFailedEvent = function uiRenderFailedEvent(_ref21) {
541
- var display = _ref21.display,
542
- error = _ref21.error,
543
- errorInfo = _ref21.errorInfo,
544
- extensionKey = _ref21.extensionKey,
545
- definitionId = _ref21.definitionId,
546
- destinationProduct = _ref21.destinationProduct,
547
- destinationSubproduct = _ref21.destinationSubproduct,
548
- location = _ref21.location;
478
+ export var uiRenderFailedEvent = function uiRenderFailedEvent(_ref19) {
479
+ var display = _ref19.display,
480
+ error = _ref19.error,
481
+ errorInfo = _ref19.errorInfo,
482
+ extensionKey = _ref19.extensionKey,
483
+ definitionId = _ref19.definitionId,
484
+ destinationProduct = _ref19.destinationProduct,
485
+ destinationSubproduct = _ref19.destinationSubproduct,
486
+ location = _ref19.location;
549
487
  return {
550
488
  actionSubject: 'smartLink',
551
489
  action: 'renderFailed',
@@ -562,16 +500,16 @@ export var uiRenderFailedEvent = function uiRenderFailedEvent(_ref21) {
562
500
  })
563
501
  };
564
502
  };
565
- export var uiHoverCardViewedEvent = function uiHoverCardViewedEvent(_ref22) {
566
- var id = _ref22.id,
567
- previewDisplay = _ref22.previewDisplay,
568
- extensionKey = _ref22.extensionKey,
569
- definitionId = _ref22.definitionId,
570
- destinationProduct = _ref22.destinationProduct,
571
- destinationSubproduct = _ref22.destinationSubproduct,
572
- location = _ref22.location,
573
- previewInvokeMethod = _ref22.previewInvokeMethod,
574
- status = _ref22.status;
503
+ export var uiHoverCardViewedEvent = function uiHoverCardViewedEvent(_ref20) {
504
+ var id = _ref20.id,
505
+ previewDisplay = _ref20.previewDisplay,
506
+ extensionKey = _ref20.extensionKey,
507
+ definitionId = _ref20.definitionId,
508
+ destinationProduct = _ref20.destinationProduct,
509
+ destinationSubproduct = _ref20.destinationSubproduct,
510
+ location = _ref20.location,
511
+ previewInvokeMethod = _ref20.previewInvokeMethod,
512
+ status = _ref20.status;
575
513
  return {
576
514
  action: 'viewed',
577
515
  actionSubject: 'hoverCard',
@@ -589,17 +527,17 @@ export var uiHoverCardViewedEvent = function uiHoverCardViewedEvent(_ref22) {
589
527
  })
590
528
  };
591
529
  };
592
- export var uiHoverCardDismissedEvent = function uiHoverCardDismissedEvent(_ref23) {
593
- var id = _ref23.id,
594
- previewDisplay = _ref23.previewDisplay,
595
- hoverTime = _ref23.hoverTime,
596
- extensionKey = _ref23.extensionKey,
597
- definitionId = _ref23.definitionId,
598
- destinationProduct = _ref23.destinationProduct,
599
- destinationSubproduct = _ref23.destinationSubproduct,
600
- location = _ref23.location,
601
- previewInvokeMethod = _ref23.previewInvokeMethod,
602
- status = _ref23.status;
530
+ export var uiHoverCardDismissedEvent = function uiHoverCardDismissedEvent(_ref21) {
531
+ var id = _ref21.id,
532
+ previewDisplay = _ref21.previewDisplay,
533
+ hoverTime = _ref21.hoverTime,
534
+ extensionKey = _ref21.extensionKey,
535
+ definitionId = _ref21.definitionId,
536
+ destinationProduct = _ref21.destinationProduct,
537
+ destinationSubproduct = _ref21.destinationSubproduct,
538
+ location = _ref21.location,
539
+ previewInvokeMethod = _ref21.previewInvokeMethod,
540
+ status = _ref21.status;
603
541
  return {
604
542
  action: 'dismissed',
605
543
  actionSubject: 'hoverCard',
@@ -618,15 +556,15 @@ export var uiHoverCardDismissedEvent = function uiHoverCardDismissedEvent(_ref23
618
556
  })
619
557
  };
620
558
  };
621
- export var uiHoverCardOpenLinkClickedEvent = function uiHoverCardOpenLinkClickedEvent(_ref24) {
622
- var id = _ref24.id,
623
- previewDisplay = _ref24.previewDisplay,
624
- extensionKey = _ref24.extensionKey,
625
- definitionId = _ref24.definitionId,
626
- destinationProduct = _ref24.destinationProduct,
627
- destinationSubproduct = _ref24.destinationSubproduct,
628
- location = _ref24.location,
629
- previewInvokeMethod = _ref24.previewInvokeMethod;
559
+ export var uiHoverCardOpenLinkClickedEvent = function uiHoverCardOpenLinkClickedEvent(_ref22) {
560
+ var id = _ref22.id,
561
+ previewDisplay = _ref22.previewDisplay,
562
+ extensionKey = _ref22.extensionKey,
563
+ definitionId = _ref22.definitionId,
564
+ destinationProduct = _ref22.destinationProduct,
565
+ destinationSubproduct = _ref22.destinationSubproduct,
566
+ location = _ref22.location,
567
+ previewInvokeMethod = _ref22.previewInvokeMethod;
630
568
  return {
631
569
  action: 'clicked',
632
570
  actionSubject: 'button',
@@ -653,15 +591,15 @@ export var uiLearnMoreLinkClickedEvent = function uiLearnMoreLinkClickedEvent()
653
591
  attributes: _objectSpread({}, context)
654
592
  };
655
593
  };
656
- export var chunkloadFailedEvent = function chunkloadFailedEvent(_ref25) {
657
- var display = _ref25.display,
658
- error = _ref25.error,
659
- errorInfo = _ref25.errorInfo,
660
- extensionKey = _ref25.extensionKey,
661
- definitionId = _ref25.definitionId,
662
- destinationProduct = _ref25.destinationProduct,
663
- destinationSubproduct = _ref25.destinationSubproduct,
664
- location = _ref25.location;
594
+ export var chunkloadFailedEvent = function chunkloadFailedEvent(_ref23) {
595
+ var display = _ref23.display,
596
+ error = _ref23.error,
597
+ errorInfo = _ref23.errorInfo,
598
+ extensionKey = _ref23.extensionKey,
599
+ definitionId = _ref23.definitionId,
600
+ destinationProduct = _ref23.destinationProduct,
601
+ destinationSubproduct = _ref23.destinationSubproduct,
602
+ location = _ref23.location;
665
603
  return {
666
604
  action: 'chunkLoadFailed',
667
605
  actionSubject: 'smartLink',
@@ -705,9 +643,9 @@ export var uiSmartLinkStatusOpenPreviewButtonClicked = function uiSmartLinkStatu
705
643
  attributes: _objectSpread({}, context)
706
644
  };
707
645
  };
708
- export var uiServerActionClicked = function uiServerActionClicked(_ref26) {
646
+ export var uiServerActionClicked = function uiServerActionClicked(_ref24) {
709
647
  var _SmartLinkActionTypeU2;
710
- var smartLinkActionType = _ref26.smartLinkActionType;
648
+ var smartLinkActionType = _ref24.smartLinkActionType;
711
649
  return {
712
650
  action: 'clicked',
713
651
  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, trackAppAccountAuthStarted, trackAppAccountConnected, uiAuthEvent, uiAuthAlternateAccountEvent, uiCardClickedEvent, uiActionClickedEvent, uiClosedAuthEvent, screenAuthPopupEvent, uiRenderSuccessEvent, uiRenderFailedEvent, uiHoverCardViewedEvent, uiHoverCardDismissedEvent, uiHoverCardOpenLinkClickedEvent, uiLearnMoreLinkClickedEvent, uiIframeDwelledEvent, uiSmartLinkStatusLozengeButtonClicked, uiSmartLinkStatusListItemButtonClicked, uiSmartLinkStatusOpenPreviewButtonClicked } from './analytics';
6
+ export { ANALYTICS_CHANNEL, context, fireSmartLinkEvent, resolvedEvent, unresolvedEvent, invokeSucceededEvent, invokeFailedEvent, chunkloadFailedEvent, connectSucceededEvent, connectFailedEvent, trackAppAccountAuthStarted, trackAppAccountConnected, uiAuthEvent, uiAuthAlternateAccountEvent, uiCardClickedEvent, uiActionClickedEvent, uiClosedAuthEvent, screenAuthPopupEvent, 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,
@@ -4,7 +4,6 @@
4
4
  */
5
5
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
6
6
  import { css, jsx } from '@emotion/react';
7
- import { fontSize } from '@atlaskit/theme/constants';
8
7
  import { gs } from '../../common/utils';
9
8
  /**
10
9
  * Class name for selecting non-flexible block card header name
@@ -14,8 +13,7 @@ import { gs } from '../../common/utils';
14
13
  */
15
14
  export var blockCardContentHeaderNameClassName = 'block-card-content-header-name';
16
15
  var baseStyles = css({
17
- fontSize: "".concat(fontSize(), "px"),
18
- fontWeight: 500,
16
+ font: "var(--ds-font-heading-xsmall, normal 600 14px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
19
17
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
20
18
  lineHeight: gs(2.5),
21
19
  // Spec: show max two lines.
@@ -7,7 +7,6 @@ import { css, jsx } from '@emotion/react';
7
7
  import { FormattedMessage } from 'react-intl-next';
8
8
  import DocumentFilledIcon from '@atlaskit/icon/core/migration/file--editor-file';
9
9
  import { N50, N90 } from '@atlaskit/theme/colors';
10
- import { fontSize } from '@atlaskit/theme/constants';
11
10
  import { messages } from '../../../messages';
12
11
  import { gs } from '../../common/utils';
13
12
  import { Frame } from '../components/Frame';
@@ -19,7 +18,7 @@ import { Frame } from '../components/Frame';
19
18
  */
20
19
  export var blockCardResolvingViewClassName = 'block-card-resolving-view';
21
20
  var messageStyles = css({
22
- fontSize: "".concat(fontSize(), "px"),
21
+ font: "var(--ds-font-heading-xsmall, normal 600 14px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
23
22
  color: "var(--ds-text-subtlest, ".concat(N90, ")"),
24
23
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
25
24
  marginLeft: gs(0.5)
@@ -1,6 +1,5 @@
1
1
  import React, { useCallback, useEffect, useMemo } from 'react';
2
2
  import { useAnalyticsEvents as useAnalyticsEventsNext } from '@atlaskit/analytics-next';
3
- import { fg } from '@atlaskit/platform-feature-flags';
4
3
  import { useAnalyticsEvents } from '../../common/analytics/generated/use-analytics-events';
5
4
  import { CardDisplay } from '../../constants';
6
5
  import { useSmartLink } from '../../state';
@@ -150,47 +149,21 @@ function Component(_ref) {
150
149
  }
151
150
  }, [isFlexibleUi, appearance, state.status, url, definitionId, extensionKey, analytics.ui, id, canBeDatasource]);
152
151
  var onIframeDwell = useCallback(function (dwellTime, dwellPercentVisible) {
153
- if (fg('smart-card-migrate-smartlinkiframe-analytics')) {
154
- fireEvent('ui.smartLinkIframe.dwelled', {
155
- id: id,
156
- definitionId: definitionId !== null && definitionId !== void 0 ? definitionId : null,
157
- display: isFlexibleUi ? 'flexible' : appearance,
158
- dwellPercentVisible: dwellPercentVisible,
159
- dwellTime: dwellTime
160
- });
161
- } else {
162
- analytics.ui.iframeDwelledEvent({
163
- id: id,
164
- display: isFlexibleUi ? 'flexible' : appearance,
165
- status: state.status,
166
- definitionId: definitionId,
167
- extensionKey: extensionKey,
168
- destinationProduct: product,
169
- destinationSubproduct: subproduct,
170
- dwellTime: dwellTime,
171
- dwellPercentVisible: dwellPercentVisible
172
- });
173
- }
174
- }, [id, state.status, analytics.ui, appearance, definitionId, extensionKey, isFlexibleUi, product, subproduct, fireEvent]);
152
+ fireEvent('ui.smartLinkIframe.dwelled', {
153
+ id: id,
154
+ definitionId: definitionId !== null && definitionId !== void 0 ? definitionId : null,
155
+ display: isFlexibleUi ? 'flexible' : appearance,
156
+ dwellPercentVisible: dwellPercentVisible,
157
+ dwellTime: dwellTime
158
+ });
159
+ }, [id, appearance, definitionId, isFlexibleUi, fireEvent]);
175
160
  var onIframeFocus = useCallback(function () {
176
- if (fg('smart-card-migrate-smartlinkiframe-analytics')) {
177
- fireEvent('ui.smartLinkIframe.focus', {
178
- id: id,
179
- definitionId: definitionId !== null && definitionId !== void 0 ? definitionId : null,
180
- display: isFlexibleUi ? 'flexible' : appearance
181
- });
182
- } else {
183
- analytics.ui.iframeFocusedEvent({
184
- id: id,
185
- display: isFlexibleUi ? 'flexible' : appearance,
186
- status: state.status,
187
- definitionId: definitionId,
188
- extensionKey: extensionKey,
189
- destinationProduct: product,
190
- destinationSubproduct: subproduct
191
- });
192
- }
193
- }, [id, state.status, analytics.ui, appearance, definitionId, extensionKey, isFlexibleUi, product, subproduct, fireEvent]);
161
+ fireEvent('ui.smartLinkIframe.focus', {
162
+ id: id,
163
+ definitionId: definitionId !== null && definitionId !== void 0 ? definitionId : null,
164
+ display: isFlexibleUi ? 'flexible' : appearance
165
+ });
166
+ }, [id, appearance, definitionId, isFlexibleUi, fireEvent]);
194
167
  if (isFlexibleUi) {
195
168
  var cardState = state;
196
169
  if (error) {
@@ -131,8 +131,7 @@ function (_ref10) {
131
131
  }, {
132
132
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
133
133
  color: "var(--ds-text-subtlest, ".concat(colors.N300, ")"),
134
- fontSize: '12px',
135
- lineHeight: '16px'
134
+ font: "var(--ds-font-body-UNSAFE_small, normal 400 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)"
136
135
  },
137
136
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
138
137
  ellipsis('none'));
@@ -180,9 +179,7 @@ export var ContentWrapper = styled.div({
180
179
  export var Title = styled.div({
181
180
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
182
181
  color: "var(--ds-text, ".concat(colors.N900, ")"),
183
- fontSize: '16px',
184
- fontWeight: 500,
185
- lineHeight: 20 / 16,
182
+ font: "var(--ds-font-heading-small, normal 600 16px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
186
183
  maxHeight: "".concat(20 * 4, "px"),
187
184
  overflow: 'hidden'
188
185
  });
@@ -192,9 +189,7 @@ export var Byline = styled.div({
192
189
  marginTop: "var(--ds-space-050, 4px)",
193
190
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
194
191
  color: "var(--ds-text-subtlest, ".concat(colors.N300, ")"),
195
- fontSize: '12px',
196
- fontWeight: 'normal',
197
- lineHeight: 16 / 12
192
+ font: "var(--ds-font-body-UNSAFE_small, normal 400 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)"
198
193
  },
199
194
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
200
195
  ellipsis('100%'));
@@ -204,9 +199,7 @@ export var Description = styled.div({
204
199
  marginTop: "calc(".concat("var(--ds-space-100, 8px)", " - 1px)"),
205
200
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
206
201
  color: "var(--ds-text, ".concat(colors.N800, ")"),
207
- fontSize: '12px',
208
- fontWeight: 'normal',
209
- lineHeight: 18 / 12,
202
+ font: "var(--ds-font-body-UNSAFE_small, normal 400 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
210
203
  maxHeight: "".concat(18 * 3, "px"),
211
204
  overflow: 'hidden'
212
205
  });
@@ -8,12 +8,12 @@ import { FormattedMessage } from 'react-intl-next';
8
8
  import Button from '@atlaskit/button';
9
9
  import ErrorIcon from '@atlaskit/icon/core/migration/error';
10
10
  import { R300 } from '@atlaskit/theme/colors';
11
- import { fontSize } from '@atlaskit/theme/constants';
12
11
  import { messages } from '../../../messages';
13
12
  import { Frame } from '../../BlockCard/components/Frame';
14
13
  import { gs } from '../../common/utils';
15
14
  var messageStyles = css({
16
- fontSize: "".concat(fontSize(), "px"),
15
+ font: "var(--ds-font-heading-xsmall, normal 600 14px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
16
+ fontWeight: "var(--ds-font-weight-regular, 400)",
17
17
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
18
18
  marginLeft: gs(0.5),
19
19
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
@@ -26,7 +26,7 @@ var contentStyles = css({
26
26
  maxWidth: gs(50)
27
27
  });
28
28
  var descriptionStyles = css({
29
- fontSize: '1em',
29
+ font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
30
30
  textAlign: 'center'
31
31
  });
32
32
  var imageStyles = css({
@@ -34,9 +34,8 @@ export var titleCss = css({
34
34
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
35
35
  h3: {
36
36
  flex: '1 1 auto',
37
- fontSize: '16px',
38
- fontWeight: 400,
39
- lineHeight: height,
37
+ font: "var(--ds-font-heading-small, normal 600 16px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
38
+ fontWeight: "var(--ds-font-weight-regular, 400)",
40
39
  display: '-webkit-box',
41
40
  marginBottom: 0,
42
41
  overflow: 'hidden',
@@ -17,12 +17,7 @@ var buttonStyles = xcss({
17
17
  });
18
18
  var contentStyles = xcss({
19
19
  color: 'color.text',
20
- // Replace with font token once it becomes stable (currently alpha)
21
- // font: 'font.body.small',
22
- fontSize: '12px',
23
- fontStyle: 'normal',
24
- fontWeight: '400',
25
- lineHeight: '20px'
20
+ font: "var(--ds-font-body-UNSAFE_small, normal 400 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)"
26
21
  });
27
22
  var ActionButton = function ActionButton(_ref) {
28
23
  var content = _ref.content,
@@ -1,12 +1,11 @@
1
1
  import React from 'react';
2
2
  import { defineMessages, useIntl } from 'react-intl-next';
3
3
  import Heading from '@atlaskit/heading';
4
- import Icon from '@atlaskit/icon';
4
+ import LegacyManualTriggerIcon from '@atlaskit/legacy-custom-icons/manual-trigger-icon';
5
5
  import { ModalHeader, useModal } from '@atlaskit/modal-dialog';
6
6
  import { Box, Inline, Stack, xcss } from '@atlaskit/primitives';
7
7
  import { G50 } from '@atlaskit/theme/colors';
8
8
  import { useAutomationMenu } from '../../menu-context';
9
- import { ManualTriggerGlyph } from './manual-trigger-icon';
10
9
  var i18n = defineMessages({
11
10
  modalHeaderIconLabel: {
12
11
  id: 'automation-menu.modal.header.icon.label',
@@ -39,9 +38,8 @@ export var AutomationModalHeader = function AutomationModalHeader(_ref) {
39
38
  xcss: iconStyle,
40
39
  paddingInline: "space.050",
41
40
  paddingBlock: "space.025"
42
- }, /*#__PURE__*/React.createElement(Icon, {
41
+ }, /*#__PURE__*/React.createElement(LegacyManualTriggerIcon, {
43
42
  size: "small",
44
- glyph: ManualTriggerGlyph,
45
43
  label: formatMessage(i18n.modalHeaderIconLabel),
46
44
  primaryColor: "var(--ds-icon-accent-green, ".concat(G50, ")")
47
45
  })), /*#__PURE__*/React.createElement(Heading, {
@@ -1,26 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import React from 'react';
3
- import Icon from '@atlaskit/icon';
4
3
  import GoalGlyph from '@atlaskit/icon/core/goal';
5
- var LegacyGoalGlyph = function LegacyGoalGlyph(_props) {
6
- return /*#__PURE__*/React.createElement("svg", {
7
- xmlns: "http://www.w3.org/2000/svg",
8
- width: "16",
9
- height: "16",
10
- viewBox: "0 0 16 16",
11
- fill: "none"
12
- }, /*#__PURE__*/React.createElement("path", {
13
- fillRule: "evenodd",
14
- clipRule: "evenodd",
15
- d: "M12.6667 8C12.6667 10.5773 10.5773 12.6667 8 12.6667C5.42267 12.6667 3.33333 10.5773 3.33333 8C3.33333 5.42267 5.42267 3.33333 8 3.33333C10.5773 3.33333 12.6667 5.42267 12.6667 8ZM14 8C14 11.3137 11.3137 14 8 14C4.68629 14 2 11.3137 2 8C2 4.68629 4.68629 2 8 2C11.3137 2 14 4.68629 14 8ZM9.33333 8C9.33333 8.73638 8.73638 9.33333 8 9.33333C7.26362 9.33333 6.66667 8.73638 6.66667 8C6.66667 7.26362 7.26362 6.66667 8 6.66667C8.73638 6.66667 9.33333 7.26362 9.33333 8ZM10.6667 8C10.6667 9.47276 9.47276 10.6667 8 10.6667C6.52724 10.6667 5.33333 9.47276 5.33333 8C5.33333 6.52724 6.52724 5.33333 8 5.33333C9.47276 5.33333 10.6667 6.52724 10.6667 8Z",
16
- fill: "var(--ds-icon, #44546F)"
17
- }));
18
- };
19
- var LegacyGoalIcon = function LegacyGoalIcon(props) {
20
- return /*#__PURE__*/React.createElement(Icon, _extends({
21
- glyph: LegacyGoalGlyph
22
- }, props));
23
- };
4
+ import LegacyGoalIcon from '@atlaskit/legacy-custom-icons/goal-bold-icon';
24
5
  export var GoalIcon = function GoalIcon(props) {
25
6
  return /*#__PURE__*/React.createElement(GoalGlyph, _extends({
26
7
  color: "var(--ds-icon, #44546F)",
@@ -1,30 +1,12 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import React from 'react';
3
- import Icon from '@atlaskit/icon';
4
3
  import ProjectIcon from '@atlaskit/icon/core/project';
5
- var ProjectsGlyph = function ProjectsGlyph(_props) {
6
- return /*#__PURE__*/React.createElement("svg", {
7
- xmlns: "http://www.w3.org/2000/svg",
8
- width: "16",
9
- height: "16",
10
- viewBox: "0 0 16 16",
11
- fill: "none"
12
- }, /*#__PURE__*/React.createElement("path", {
13
- fillRule: "evenodd",
14
- clipRule: "evenodd",
15
- d: "M9.88573 4.00002C9.70892 4.00002 9.53935 4.07026 9.41433 4.19528L6.97282 6.63678L4.20525 6.94429C4.05479 6.96101 3.91451 7.02844 3.80746 7.13548L3.60959 7.33335L4.35367 8.07743C4.6791 8.40287 4.6791 8.93051 4.35367 9.25594L3.47152 10.1381C3.21117 10.3984 2.78906 10.3984 2.52871 10.1381C2.26836 9.87774 2.26836 9.45563 2.52871 9.19528L3.0573 8.66669L2.43108 8.04046C2.04055 7.64993 2.04055 7.01677 2.43108 6.62625L2.86465 6.19267C3.18578 5.87154 3.60664 5.66927 4.05801 5.61911L6.36073 5.36326L8.47152 3.25247C8.84659 2.8774 9.3553 2.66669 9.88573 2.66669H12.0001C12.7365 2.66669 13.3334 3.26364 13.3334 4.00002V6.1144C13.3334 6.64483 13.1227 7.15354 12.7477 7.52862L10.6369 9.6394L10.381 11.9421C10.3309 12.3935 10.1286 12.8143 9.80746 13.1355L9.37389 13.5691C8.98336 13.9596 8.3502 13.9596 7.95967 13.5691L7.33345 12.9428L6.80485 13.4714C6.5445 13.7318 6.12239 13.7318 5.86204 13.4714C5.60169 13.2111 5.60169 12.789 5.86204 12.5286L6.74419 11.6465C7.06963 11.321 7.59726 11.321 7.9227 11.6465L8.66678 12.3905L8.86466 12.1927C8.9717 12.0856 9.03912 11.9453 9.05584 11.7949L9.36335 9.02731L11.8049 6.58581C11.9299 6.46078 12.0001 6.29121 12.0001 6.1144V4.00002H9.88573ZM5.80486 10.1953C6.06521 10.4556 6.06521 10.8777 5.80486 11.1381L3.80486 13.1381C3.54451 13.3984 3.1224 13.3984 2.86205 13.1381C2.6017 12.8777 2.6017 12.4556 2.86205 12.1953L4.86205 10.1953C5.1224 9.93493 5.54451 9.93493 5.80486 10.1953ZM10.0001 6.66669C10.3683 6.66669 10.6668 6.36821 10.6668 6.00002C10.6668 5.63183 10.3683 5.33335 10.0001 5.33335C9.63193 5.33335 9.33346 5.63183 9.33346 6.00002C9.33346 6.36821 9.63193 6.66669 10.0001 6.66669Z",
16
- fill: "var(--ds-icon, #44546F)"
17
- }));
18
- };
19
- var LegacyProjectsIcon = function LegacyProjectsIcon(props) {
20
- return /*#__PURE__*/React.createElement(Icon, _extends({
21
- glyph: ProjectsGlyph
22
- }, props));
23
- };
4
+ import LegacyProjectsIcon from '@atlaskit/legacy-custom-icons/project-icon';
24
5
  export var ProjectsIcon = function ProjectsIcon(props) {
25
6
  return /*#__PURE__*/React.createElement(ProjectIcon, _extends({
26
7
  color: "var(--ds-icon, #44546F)",
27
8
  LEGACY_fallbackIcon: LegacyProjectsIcon,
9
+ LEGACY_margin: "10px",
28
10
  spacing: "spacious"
29
11
  }, props));
30
12
  };
@@ -1,34 +1,10 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import React from 'react';
3
- import Icon from '@atlaskit/icon';
4
- var UnfollowGlyph = function UnfollowGlyph(props) {
5
- return /*#__PURE__*/React.createElement("svg", {
6
- width: "16",
7
- height: "16",
8
- viewBox: "0 0 16 16",
9
- "data-testid": props['data-testid'],
10
- "aria-label": props['aria-label']
11
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
12
- ,
13
- className: props.className,
14
- role: "presentation",
15
- xmlns: "http://www.w3.org/2000/svg"
16
- }, /*#__PURE__*/React.createElement("path", {
17
- d: "M14 4.66667H11.3333C10.9652 4.66667 10.6667 4.96514 10.6667 5.33333C10.6667 5.70152 10.9652 6 11.3333 6H14C14.3682 6 14.6667 5.70152 14.6667 5.33333C14.6667 4.96514 14.3682 4.66667 14 4.66667Z",
18
- fill: "currentColor"
19
- }), /*#__PURE__*/React.createElement("path", {
20
- fillRule: "evenodd",
21
- clipRule: "evenodd",
22
- d: "M3.33334 9.33333C3.33334 8.59667 3.93468 8 4.67268 8H9.99401C10.734 8 11.3333 8.596 11.3333 9.33733V12.2973C11.3333 14.5673 3.33334 14.5673 3.33334 12.2973V9.33333Z",
23
- fill: "currentColor"
24
- }), /*#__PURE__*/React.createElement("path", {
25
- d: "M7.33334 7.33333C8.8061 7.33333 10 6.13943 10 4.66667C10 3.19391 8.8061 2 7.33334 2C5.86058 2 4.66668 3.19391 4.66668 4.66667C4.66668 6.13943 5.86058 7.33333 7.33334 7.33333Z",
26
- fill: "currentColor"
27
- }));
28
- };
3
+ import PersonRemoveIcon from '@atlaskit/icon/core/person-remove';
4
+ import LegacyUnfollowIcon from '@atlaskit/legacy-custom-icons/unfollow-icon';
29
5
  var UnfollowIcon = function UnfollowIcon(props) {
30
- return /*#__PURE__*/React.createElement(Icon, _extends({
31
- glyph: UnfollowGlyph
6
+ return /*#__PURE__*/React.createElement(PersonRemoveIcon, _extends({
7
+ LEGACY_fallbackIcon: LegacyUnfollowIcon
32
8
  }, props));
33
9
  };
34
10
  export default UnfollowIcon;