@atlaskit/smart-card 31.0.2 → 31.0.3
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.
- package/CHANGELOG.md +9 -0
- package/dist/cjs/state/actions/index.js +4 -12
- package/dist/cjs/state/analytics/useSmartLinkAnalytics.js +0 -23
- package/dist/cjs/utils/analytics/analytics.js +54 -76
- package/dist/cjs/utils/analytics/index.js +0 -6
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/state/actions/index.js +4 -12
- package/dist/es2019/state/analytics/useSmartLinkAnalytics.js +1 -24
- package/dist/es2019/utils/analytics/analytics.js +1 -23
- package/dist/es2019/utils/analytics/index.js +1 -1
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/state/actions/index.js +4 -12
- package/dist/esm/state/analytics/useSmartLinkAnalytics.js +1 -24
- package/dist/esm/utils/analytics/analytics.js +53 -75
- package/dist/esm/utils/analytics/index.js +1 -1
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/types/state/analytics/useSmartLinkAnalytics.d.ts +1 -9
- package/dist/types/state/hooks/useSmartLink.d.ts +0 -1
- package/dist/types/utils/analytics/analytics.d.ts +1 -5
- package/dist/types/utils/analytics/index.d.ts +1 -1
- package/dist/types/utils/analytics/types.d.ts +0 -4
- package/dist/types/utils/mocks.d.ts +0 -1
- package/dist/types-ts4.5/state/analytics/useSmartLinkAnalytics.d.ts +1 -9
- package/dist/types-ts4.5/state/hooks/useSmartLink.d.ts +0 -1
- package/dist/types-ts4.5/utils/analytics/analytics.d.ts +1 -5
- package/dist/types-ts4.5/utils/analytics/index.d.ts +1 -1
- package/dist/types-ts4.5/utils/analytics/types.d.ts +0 -4
- package/dist/types-ts4.5/utils/mocks.d.ts +0 -1
- package/package.json +2 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 31.0.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#169708](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/169708)
|
|
8
|
+
[`17cabe50b6e6b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/17cabe50b6e6b) -
|
|
9
|
+
Remove FF platform_smart-card-migrate-screen-analytics
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 31.0.2
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -11,7 +11,6 @@ var _react = require("react");
|
|
|
11
11
|
var _linkProvider = require("@atlaskit/link-provider");
|
|
12
12
|
var _linkingCommon = require("@atlaskit/linking-common");
|
|
13
13
|
var _outboundAuthFlowClient = require("@atlaskit/outbound-auth-flow-client");
|
|
14
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
15
14
|
var _useAnalyticsEvents2 = require("../../common/analytics/generated/use-analytics-events");
|
|
16
15
|
var _constants = require("../../constants");
|
|
17
16
|
var _helpers = require("../helpers");
|
|
@@ -120,16 +119,9 @@ var useSmartCardActions = exports.useSmartCardActions = function useSmartCardAct
|
|
|
120
119
|
});
|
|
121
120
|
}
|
|
122
121
|
if (services.length > 0) {
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
});
|
|
127
|
-
} else {
|
|
128
|
-
analytics.screen.authPopupEvent({
|
|
129
|
-
definitionId: definitionId,
|
|
130
|
-
extensionKey: extensionKey
|
|
131
|
-
});
|
|
132
|
-
}
|
|
122
|
+
fireEvent('screen.consentModal.viewed', {
|
|
123
|
+
definitionId: definitionId !== null && definitionId !== void 0 ? definitionId : null
|
|
124
|
+
});
|
|
133
125
|
(0, _outboundAuthFlowClient.auth)(services[0].url).then(function () {
|
|
134
126
|
fireEvent('track.applicationAccount.connected', {
|
|
135
127
|
definitionId: definitionId !== null && definitionId !== void 0 ? definitionId : null
|
|
@@ -157,7 +149,7 @@ var useSmartCardActions = exports.useSmartCardActions = function useSmartCardAct
|
|
|
157
149
|
reload();
|
|
158
150
|
});
|
|
159
151
|
}
|
|
160
|
-
}, [getSmartLinkState, analytics.ui, analytics.
|
|
152
|
+
}, [getSmartLinkState, analytics.ui, analytics.operational, id, reload, fireEvent]);
|
|
161
153
|
var invoke = (0, _react.useCallback)( /*#__PURE__*/function () {
|
|
162
154
|
var _ref3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(opts, appearance) {
|
|
163
155
|
var key, action, source;
|
|
@@ -643,29 +643,6 @@ var useSmartLinkAnalytics = exports.useSmartLinkAnalytics = function useSmartLin
|
|
|
643
643
|
/** Contains all screen analytics events */
|
|
644
644
|
var screen = (0, _react.useMemo)(function () {
|
|
645
645
|
return {
|
|
646
|
-
/**
|
|
647
|
-
* This fires an event which represents the connect account page being opened.
|
|
648
|
-
* @param definitionId The definitionId of the Smart Link resolver invoked.
|
|
649
|
-
* @param extensionKey The extensionKey of the Smart Link resovler invoked.
|
|
650
|
-
* @returns
|
|
651
|
-
* @deprecated remove when platform_smart-card-migrate-screen-analytics is cleaned up
|
|
652
|
-
*/
|
|
653
|
-
authPopupEvent: function authPopupEvent(_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;
|
|
660
|
-
return dispatchAnalytics(applyCommonAttributes((0, _analytics.screenAuthPopupEvent)(_objectSpread(_objectSpread({}, commonAttributes), {}, {
|
|
661
|
-
extensionKey: extensionKey,
|
|
662
|
-
definitionId: definitionId,
|
|
663
|
-
resourceType: resourceType,
|
|
664
|
-
destinationProduct: destinationProduct,
|
|
665
|
-
destinationSubproduct: destinationSubproduct,
|
|
666
|
-
location: location
|
|
667
|
-
})), commonAttributes));
|
|
668
|
-
},
|
|
669
646
|
/**
|
|
670
647
|
* This fires an event that represents when a user view a modal.
|
|
671
648
|
* @param data A partial analytics event payload
|
|
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.unresolvedEvent = exports.uiSmartLinkStatusOpenPreviewButtonClicked = exports.uiSmartLinkStatusLozengeButtonClicked = exports.uiSmartLinkStatusListItemButtonClicked = exports.uiServerActionClicked = exports.uiRenderSuccessEvent = exports.uiRenderFailedEvent = exports.uiLearnMoreLinkClickedEvent = exports.uiHoverCardViewedEvent = exports.uiHoverCardOpenLinkClickedEvent = exports.uiHoverCardDismissedEvent = exports.uiClosedAuthEvent = exports.uiCardClickedEvent = exports.uiAuthEvent = exports.uiAuthAlternateAccountEvent = exports.uiActionClickedEvent = exports.
|
|
7
|
+
exports.unresolvedEvent = exports.uiSmartLinkStatusOpenPreviewButtonClicked = exports.uiSmartLinkStatusLozengeButtonClicked = exports.uiSmartLinkStatusListItemButtonClicked = exports.uiServerActionClicked = exports.uiRenderSuccessEvent = exports.uiRenderFailedEvent = exports.uiLearnMoreLinkClickedEvent = exports.uiHoverCardViewedEvent = exports.uiHoverCardOpenLinkClickedEvent = exports.uiHoverCardDismissedEvent = exports.uiClosedAuthEvent = exports.uiCardClickedEvent = exports.uiAuthEvent = exports.uiAuthAlternateAccountEvent = exports.uiActionClickedEvent = exports.resolvedEvent = exports.invokeSucceededEvent = exports.invokeFailedEvent = exports.fireSmartLinkEvent = exports.context = exports.connectSucceededEvent = exports.connectFailedEvent = exports.chunkloadFailedEvent = exports.TrackQuickActionType = exports.TrackQuickActionFailureReason = exports.SmartLinkEvents = exports.SmartLinkActionTypeUiEventMapper = exports.SmartLinkActionTypeTrackingEventMapper = exports.ANALYTICS_CHANNEL = void 0;
|
|
8
8
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
9
9
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
10
10
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
@@ -17,7 +17,7 @@ var ANALYTICS_CHANNEL = exports.ANALYTICS_CHANNEL = 'media';
|
|
|
17
17
|
var context = exports.context = {
|
|
18
18
|
componentName: 'smart-cards',
|
|
19
19
|
packageName: "@atlaskit/smart-card",
|
|
20
|
-
packageVersion: "31.0.
|
|
20
|
+
packageVersion: "31.0.3"
|
|
21
21
|
};
|
|
22
22
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
23
23
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -327,81 +327,87 @@ var uiClosedAuthEvent = exports.uiClosedAuthEvent = function uiClosedAuthEvent(_
|
|
|
327
327
|
})
|
|
328
328
|
};
|
|
329
329
|
};
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
var screenAuthPopupEvent = exports.screenAuthPopupEvent = function screenAuthPopupEvent(_ref11) {
|
|
335
|
-
var extensionKey = _ref11.extensionKey,
|
|
330
|
+
var uiRenderSuccessEvent = exports.uiRenderSuccessEvent = function uiRenderSuccessEvent(_ref11) {
|
|
331
|
+
var display = _ref11.display,
|
|
332
|
+
status = _ref11.status,
|
|
333
|
+
extensionKey = _ref11.extensionKey,
|
|
336
334
|
definitionId = _ref11.definitionId,
|
|
337
335
|
destinationProduct = _ref11.destinationProduct,
|
|
338
336
|
destinationSubproduct = _ref11.destinationSubproduct,
|
|
339
|
-
location = _ref11.location
|
|
337
|
+
location = _ref11.location,
|
|
338
|
+
canBeDatasource = _ref11.canBeDatasource;
|
|
340
339
|
return {
|
|
341
|
-
|
|
342
|
-
|
|
340
|
+
action: 'renderSuccess',
|
|
341
|
+
actionSubject: 'smartLink',
|
|
342
|
+
eventType: 'ui',
|
|
343
343
|
attributes: _objectSpread(_objectSpread({}, context), {}, {
|
|
344
|
+
status: status,
|
|
344
345
|
extensionKey: extensionKey,
|
|
345
346
|
definitionId: definitionId,
|
|
346
347
|
destinationProduct: destinationProduct,
|
|
347
348
|
destinationSubproduct: destinationSubproduct,
|
|
348
|
-
location: location
|
|
349
|
+
location: location,
|
|
350
|
+
display: display,
|
|
351
|
+
canBeDatasource: canBeDatasource
|
|
349
352
|
})
|
|
350
353
|
};
|
|
351
354
|
};
|
|
352
|
-
var
|
|
355
|
+
var uiRenderFailedEvent = exports.uiRenderFailedEvent = function uiRenderFailedEvent(_ref12) {
|
|
353
356
|
var display = _ref12.display,
|
|
354
|
-
|
|
357
|
+
error = _ref12.error,
|
|
358
|
+
errorInfo = _ref12.errorInfo,
|
|
355
359
|
extensionKey = _ref12.extensionKey,
|
|
356
360
|
definitionId = _ref12.definitionId,
|
|
357
361
|
destinationProduct = _ref12.destinationProduct,
|
|
358
362
|
destinationSubproduct = _ref12.destinationSubproduct,
|
|
359
|
-
location = _ref12.location
|
|
360
|
-
canBeDatasource = _ref12.canBeDatasource;
|
|
363
|
+
location = _ref12.location;
|
|
361
364
|
return {
|
|
362
|
-
action: 'renderSuccess',
|
|
363
365
|
actionSubject: 'smartLink',
|
|
366
|
+
action: 'renderFailed',
|
|
364
367
|
eventType: 'ui',
|
|
365
368
|
attributes: _objectSpread(_objectSpread({}, context), {}, {
|
|
366
|
-
|
|
369
|
+
error: error,
|
|
370
|
+
errorInfo: errorInfo,
|
|
371
|
+
display: display,
|
|
367
372
|
extensionKey: extensionKey,
|
|
368
373
|
definitionId: definitionId,
|
|
369
374
|
destinationProduct: destinationProduct,
|
|
370
375
|
destinationSubproduct: destinationSubproduct,
|
|
371
|
-
location: location
|
|
372
|
-
display: display,
|
|
373
|
-
canBeDatasource: canBeDatasource
|
|
376
|
+
location: location
|
|
374
377
|
})
|
|
375
378
|
};
|
|
376
379
|
};
|
|
377
|
-
var
|
|
378
|
-
var
|
|
379
|
-
|
|
380
|
-
errorInfo = _ref13.errorInfo,
|
|
380
|
+
var uiHoverCardViewedEvent = exports.uiHoverCardViewedEvent = function uiHoverCardViewedEvent(_ref13) {
|
|
381
|
+
var id = _ref13.id,
|
|
382
|
+
previewDisplay = _ref13.previewDisplay,
|
|
381
383
|
extensionKey = _ref13.extensionKey,
|
|
382
384
|
definitionId = _ref13.definitionId,
|
|
383
385
|
destinationProduct = _ref13.destinationProduct,
|
|
384
386
|
destinationSubproduct = _ref13.destinationSubproduct,
|
|
385
|
-
location = _ref13.location
|
|
387
|
+
location = _ref13.location,
|
|
388
|
+
previewInvokeMethod = _ref13.previewInvokeMethod,
|
|
389
|
+
status = _ref13.status;
|
|
386
390
|
return {
|
|
387
|
-
|
|
388
|
-
|
|
391
|
+
action: 'viewed',
|
|
392
|
+
actionSubject: 'hoverCard',
|
|
389
393
|
eventType: 'ui',
|
|
390
394
|
attributes: _objectSpread(_objectSpread({}, context), {}, {
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
display: display,
|
|
395
|
+
id: id,
|
|
396
|
+
previewDisplay: previewDisplay,
|
|
394
397
|
extensionKey: extensionKey,
|
|
395
398
|
definitionId: definitionId,
|
|
396
399
|
destinationProduct: destinationProduct,
|
|
397
400
|
destinationSubproduct: destinationSubproduct,
|
|
398
|
-
location: location
|
|
401
|
+
location: location,
|
|
402
|
+
previewInvokeMethod: previewInvokeMethod,
|
|
403
|
+
status: status
|
|
399
404
|
})
|
|
400
405
|
};
|
|
401
406
|
};
|
|
402
|
-
var
|
|
407
|
+
var uiHoverCardDismissedEvent = exports.uiHoverCardDismissedEvent = function uiHoverCardDismissedEvent(_ref14) {
|
|
403
408
|
var id = _ref14.id,
|
|
404
409
|
previewDisplay = _ref14.previewDisplay,
|
|
410
|
+
hoverTime = _ref14.hoverTime,
|
|
405
411
|
extensionKey = _ref14.extensionKey,
|
|
406
412
|
definitionId = _ref14.definitionId,
|
|
407
413
|
destinationProduct = _ref14.destinationProduct,
|
|
@@ -410,12 +416,13 @@ var uiHoverCardViewedEvent = exports.uiHoverCardViewedEvent = function uiHoverCa
|
|
|
410
416
|
previewInvokeMethod = _ref14.previewInvokeMethod,
|
|
411
417
|
status = _ref14.status;
|
|
412
418
|
return {
|
|
413
|
-
action: '
|
|
419
|
+
action: 'dismissed',
|
|
414
420
|
actionSubject: 'hoverCard',
|
|
415
421
|
eventType: 'ui',
|
|
416
422
|
attributes: _objectSpread(_objectSpread({}, context), {}, {
|
|
417
423
|
id: id,
|
|
418
424
|
previewDisplay: previewDisplay,
|
|
425
|
+
hoverTime: hoverTime,
|
|
419
426
|
extensionKey: extensionKey,
|
|
420
427
|
definitionId: definitionId,
|
|
421
428
|
destinationProduct: destinationProduct,
|
|
@@ -426,44 +433,15 @@ var uiHoverCardViewedEvent = exports.uiHoverCardViewedEvent = function uiHoverCa
|
|
|
426
433
|
})
|
|
427
434
|
};
|
|
428
435
|
};
|
|
429
|
-
var
|
|
436
|
+
var uiHoverCardOpenLinkClickedEvent = exports.uiHoverCardOpenLinkClickedEvent = function uiHoverCardOpenLinkClickedEvent(_ref15) {
|
|
430
437
|
var id = _ref15.id,
|
|
431
438
|
previewDisplay = _ref15.previewDisplay,
|
|
432
|
-
hoverTime = _ref15.hoverTime,
|
|
433
439
|
extensionKey = _ref15.extensionKey,
|
|
434
440
|
definitionId = _ref15.definitionId,
|
|
435
441
|
destinationProduct = _ref15.destinationProduct,
|
|
436
442
|
destinationSubproduct = _ref15.destinationSubproduct,
|
|
437
443
|
location = _ref15.location,
|
|
438
|
-
previewInvokeMethod = _ref15.previewInvokeMethod
|
|
439
|
-
status = _ref15.status;
|
|
440
|
-
return {
|
|
441
|
-
action: 'dismissed',
|
|
442
|
-
actionSubject: 'hoverCard',
|
|
443
|
-
eventType: 'ui',
|
|
444
|
-
attributes: _objectSpread(_objectSpread({}, context), {}, {
|
|
445
|
-
id: id,
|
|
446
|
-
previewDisplay: previewDisplay,
|
|
447
|
-
hoverTime: hoverTime,
|
|
448
|
-
extensionKey: extensionKey,
|
|
449
|
-
definitionId: definitionId,
|
|
450
|
-
destinationProduct: destinationProduct,
|
|
451
|
-
destinationSubproduct: destinationSubproduct,
|
|
452
|
-
location: location,
|
|
453
|
-
previewInvokeMethod: previewInvokeMethod,
|
|
454
|
-
status: status
|
|
455
|
-
})
|
|
456
|
-
};
|
|
457
|
-
};
|
|
458
|
-
var uiHoverCardOpenLinkClickedEvent = exports.uiHoverCardOpenLinkClickedEvent = function uiHoverCardOpenLinkClickedEvent(_ref16) {
|
|
459
|
-
var id = _ref16.id,
|
|
460
|
-
previewDisplay = _ref16.previewDisplay,
|
|
461
|
-
extensionKey = _ref16.extensionKey,
|
|
462
|
-
definitionId = _ref16.definitionId,
|
|
463
|
-
destinationProduct = _ref16.destinationProduct,
|
|
464
|
-
destinationSubproduct = _ref16.destinationSubproduct,
|
|
465
|
-
location = _ref16.location,
|
|
466
|
-
previewInvokeMethod = _ref16.previewInvokeMethod;
|
|
444
|
+
previewInvokeMethod = _ref15.previewInvokeMethod;
|
|
467
445
|
return {
|
|
468
446
|
action: 'clicked',
|
|
469
447
|
actionSubject: 'button',
|
|
@@ -490,15 +468,15 @@ var uiLearnMoreLinkClickedEvent = exports.uiLearnMoreLinkClickedEvent = function
|
|
|
490
468
|
attributes: _objectSpread({}, context)
|
|
491
469
|
};
|
|
492
470
|
};
|
|
493
|
-
var chunkloadFailedEvent = exports.chunkloadFailedEvent = function chunkloadFailedEvent(
|
|
494
|
-
var display =
|
|
495
|
-
error =
|
|
496
|
-
errorInfo =
|
|
497
|
-
extensionKey =
|
|
498
|
-
definitionId =
|
|
499
|
-
destinationProduct =
|
|
500
|
-
destinationSubproduct =
|
|
501
|
-
location =
|
|
471
|
+
var chunkloadFailedEvent = exports.chunkloadFailedEvent = function chunkloadFailedEvent(_ref16) {
|
|
472
|
+
var display = _ref16.display,
|
|
473
|
+
error = _ref16.error,
|
|
474
|
+
errorInfo = _ref16.errorInfo,
|
|
475
|
+
extensionKey = _ref16.extensionKey,
|
|
476
|
+
definitionId = _ref16.definitionId,
|
|
477
|
+
destinationProduct = _ref16.destinationProduct,
|
|
478
|
+
destinationSubproduct = _ref16.destinationSubproduct,
|
|
479
|
+
location = _ref16.location;
|
|
502
480
|
return {
|
|
503
481
|
action: 'chunkLoadFailed',
|
|
504
482
|
actionSubject: 'smartLink',
|
|
@@ -542,9 +520,9 @@ var uiSmartLinkStatusOpenPreviewButtonClicked = exports.uiSmartLinkStatusOpenPre
|
|
|
542
520
|
attributes: _objectSpread({}, context)
|
|
543
521
|
};
|
|
544
522
|
};
|
|
545
|
-
var uiServerActionClicked = exports.uiServerActionClicked = function uiServerActionClicked(
|
|
523
|
+
var uiServerActionClicked = exports.uiServerActionClicked = function uiServerActionClicked(_ref17) {
|
|
546
524
|
var _SmartLinkActionTypeU2;
|
|
547
|
-
var smartLinkActionType =
|
|
525
|
+
var smartLinkActionType = _ref17.smartLinkActionType;
|
|
548
526
|
return {
|
|
549
527
|
action: 'clicked',
|
|
550
528
|
actionSubject: 'button',
|
|
@@ -59,12 +59,6 @@ Object.defineProperty(exports, "resolvedEvent", {
|
|
|
59
59
|
return _analytics.resolvedEvent;
|
|
60
60
|
}
|
|
61
61
|
});
|
|
62
|
-
Object.defineProperty(exports, "screenAuthPopupEvent", {
|
|
63
|
-
enumerable: true,
|
|
64
|
-
get: function get() {
|
|
65
|
-
return _analytics.screenAuthPopupEvent;
|
|
66
|
-
}
|
|
67
|
-
});
|
|
68
62
|
Object.defineProperty(exports, "uiActionClickedEvent", {
|
|
69
63
|
enumerable: true,
|
|
70
64
|
get: function get() {
|
|
@@ -17,7 +17,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId"],
|
|
|
17
17
|
_excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
|
|
18
18
|
var PACKAGE_DATA = {
|
|
19
19
|
packageName: "@atlaskit/smart-card",
|
|
20
|
-
packageVersion: "31.0.
|
|
20
|
+
packageVersion: "31.0.3",
|
|
21
21
|
componentName: 'linkUrl'
|
|
22
22
|
};
|
|
23
23
|
var Link = (0, _click.withLinkClickedEvent)('a');
|
|
@@ -2,7 +2,6 @@ import { useCallback, useMemo } from 'react';
|
|
|
2
2
|
import { useSmartLinkContext } from '@atlaskit/link-provider';
|
|
3
3
|
import { ACTION_RESOLVING, ACTION_UPDATE_METADATA_STATUS, cardAction } from '@atlaskit/linking-common';
|
|
4
4
|
import { auth } from '@atlaskit/outbound-auth-flow-client';
|
|
5
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
5
|
import { useAnalyticsEvents } from '../../common/analytics/generated/use-analytics-events';
|
|
7
6
|
import { SmartLinkStatus } from '../../constants';
|
|
8
7
|
import { getByDefinitionId, getDefinitionId, getExtensionKey, getServices } from '../helpers';
|
|
@@ -101,16 +100,9 @@ export const useSmartCardActions = (id, url, analytics) => {
|
|
|
101
100
|
});
|
|
102
101
|
}
|
|
103
102
|
if (services.length > 0) {
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
});
|
|
108
|
-
} else {
|
|
109
|
-
analytics.screen.authPopupEvent({
|
|
110
|
-
definitionId,
|
|
111
|
-
extensionKey
|
|
112
|
-
});
|
|
113
|
-
}
|
|
103
|
+
fireEvent('screen.consentModal.viewed', {
|
|
104
|
+
definitionId: definitionId !== null && definitionId !== void 0 ? definitionId : null
|
|
105
|
+
});
|
|
114
106
|
auth(services[0].url).then(() => {
|
|
115
107
|
fireEvent('track.applicationAccount.connected', {
|
|
116
108
|
definitionId: definitionId !== null && definitionId !== void 0 ? definitionId : null
|
|
@@ -138,7 +130,7 @@ export const useSmartCardActions = (id, url, analytics) => {
|
|
|
138
130
|
reload();
|
|
139
131
|
});
|
|
140
132
|
}
|
|
141
|
-
}, [getSmartLinkState, analytics.ui, analytics.
|
|
133
|
+
}, [getSmartLinkState, analytics.ui, analytics.operational, id, reload, fireEvent]);
|
|
142
134
|
const invoke = useCallback(async (opts, appearance) => {
|
|
143
135
|
const {
|
|
144
136
|
key,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useMemo } from 'react';
|
|
2
2
|
import { useSmartLinkContext } from '@atlaskit/link-provider';
|
|
3
3
|
import { getUrl } from '@atlaskit/linking-common';
|
|
4
|
-
import { chunkloadFailedEvent, connectFailedEvent, connectSucceededEvent, context, instrumentEvent, invokeFailedEvent, invokeSucceededEvent,
|
|
4
|
+
import { chunkloadFailedEvent, connectFailedEvent, connectSucceededEvent, context, instrumentEvent, invokeFailedEvent, invokeSucceededEvent, uiActionClickedEvent, uiAuthAlternateAccountEvent, uiAuthEvent, uiCardClickedEvent, uiClosedAuthEvent, uiHoverCardDismissedEvent, uiHoverCardOpenLinkClickedEvent, uiHoverCardViewedEvent, uiLearnMoreLinkClickedEvent, uiRenderFailedEvent, uiRenderSuccessEvent, uiSmartLinkStatusListItemButtonClicked, uiSmartLinkStatusLozengeButtonClicked, uiSmartLinkStatusOpenPreviewButtonClicked } from '../../utils/analytics';
|
|
5
5
|
import { uiServerActionClicked } from '../../utils/analytics/analytics';
|
|
6
6
|
import { getDefinitionId, getExtensionKey, getProduct, getResourceType, getStatusDetails, getSubproduct } from '../helpers';
|
|
7
7
|
import { failUfoExperience, startUfoExperience, succeedUfoExperience } from './ufoExperiences';
|
|
@@ -622,29 +622,6 @@ export const useSmartLinkAnalytics = (url, id, defaultLocation) => {
|
|
|
622
622
|
|
|
623
623
|
/** Contains all screen analytics events */
|
|
624
624
|
const screen = useMemo(() => ({
|
|
625
|
-
/**
|
|
626
|
-
* This fires an event which represents the connect account page being opened.
|
|
627
|
-
* @param definitionId The definitionId of the Smart Link resolver invoked.
|
|
628
|
-
* @param extensionKey The extensionKey of the Smart Link resovler invoked.
|
|
629
|
-
* @returns
|
|
630
|
-
* @deprecated remove when platform_smart-card-migrate-screen-analytics is cleaned up
|
|
631
|
-
*/
|
|
632
|
-
authPopupEvent: ({
|
|
633
|
-
extensionKey,
|
|
634
|
-
definitionId,
|
|
635
|
-
resourceType,
|
|
636
|
-
destinationProduct,
|
|
637
|
-
destinationSubproduct,
|
|
638
|
-
location
|
|
639
|
-
}) => dispatchAnalytics(applyCommonAttributes(screenAuthPopupEvent({
|
|
640
|
-
...commonAttributes,
|
|
641
|
-
extensionKey,
|
|
642
|
-
definitionId,
|
|
643
|
-
resourceType,
|
|
644
|
-
destinationProduct,
|
|
645
|
-
destinationSubproduct,
|
|
646
|
-
location
|
|
647
|
-
}), commonAttributes)),
|
|
648
625
|
/**
|
|
649
626
|
* This fires an event that represents when a user view a modal.
|
|
650
627
|
* @param data A partial analytics event payload
|
|
@@ -4,7 +4,7 @@ export const ANALYTICS_CHANNEL = 'media';
|
|
|
4
4
|
export const context = {
|
|
5
5
|
componentName: 'smart-cards',
|
|
6
6
|
packageName: "@atlaskit/smart-card",
|
|
7
|
-
packageVersion: "31.0.
|
|
7
|
+
packageVersion: "31.0.3"
|
|
8
8
|
};
|
|
9
9
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -324,28 +324,6 @@ export const uiClosedAuthEvent = ({
|
|
|
324
324
|
display
|
|
325
325
|
}
|
|
326
326
|
});
|
|
327
|
-
|
|
328
|
-
/**
|
|
329
|
-
* @deprecated remove when platform_smart-card-migrate-screen-analytics is cleaned up
|
|
330
|
-
*/
|
|
331
|
-
export const screenAuthPopupEvent = ({
|
|
332
|
-
extensionKey,
|
|
333
|
-
definitionId,
|
|
334
|
-
destinationProduct,
|
|
335
|
-
destinationSubproduct,
|
|
336
|
-
location
|
|
337
|
-
}) => ({
|
|
338
|
-
actionSubject: 'consentModal',
|
|
339
|
-
eventType: 'screen',
|
|
340
|
-
attributes: {
|
|
341
|
-
...context,
|
|
342
|
-
extensionKey,
|
|
343
|
-
definitionId,
|
|
344
|
-
destinationProduct,
|
|
345
|
-
destinationSubproduct,
|
|
346
|
-
location
|
|
347
|
-
}
|
|
348
|
-
});
|
|
349
327
|
export const uiRenderSuccessEvent = ({
|
|
350
328
|
display,
|
|
351
329
|
status,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getMeasure } from '../performance';
|
|
2
2
|
import { resolvedEvent, unresolvedEvent } from './analytics';
|
|
3
|
-
export { ANALYTICS_CHANNEL, context, fireSmartLinkEvent, resolvedEvent, unresolvedEvent, invokeSucceededEvent, invokeFailedEvent, chunkloadFailedEvent, connectSucceededEvent, connectFailedEvent, uiAuthEvent, uiAuthAlternateAccountEvent, uiCardClickedEvent, uiActionClickedEvent, uiClosedAuthEvent,
|
|
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 const instrumentEvent = ({
|
|
5
5
|
id,
|
|
6
6
|
status,
|
|
@@ -7,7 +7,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
7
7
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
8
8
|
const PACKAGE_DATA = {
|
|
9
9
|
packageName: "@atlaskit/smart-card",
|
|
10
|
-
packageVersion: "31.0.
|
|
10
|
+
packageVersion: "31.0.3",
|
|
11
11
|
componentName: 'linkUrl'
|
|
12
12
|
};
|
|
13
13
|
const Link = withLinkClickedEvent('a');
|
|
@@ -4,7 +4,6 @@ import { useCallback, useMemo } from 'react';
|
|
|
4
4
|
import { useSmartLinkContext } from '@atlaskit/link-provider';
|
|
5
5
|
import { ACTION_RESOLVING, ACTION_UPDATE_METADATA_STATUS, cardAction } from '@atlaskit/linking-common';
|
|
6
6
|
import { auth } from '@atlaskit/outbound-auth-flow-client';
|
|
7
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
7
|
import { useAnalyticsEvents } from '../../common/analytics/generated/use-analytics-events';
|
|
9
8
|
import { SmartLinkStatus } from '../../constants';
|
|
10
9
|
import { getByDefinitionId, getDefinitionId, getExtensionKey, getServices } from '../helpers';
|
|
@@ -113,16 +112,9 @@ export var useSmartCardActions = function useSmartCardActions(id, url, analytics
|
|
|
113
112
|
});
|
|
114
113
|
}
|
|
115
114
|
if (services.length > 0) {
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
});
|
|
120
|
-
} else {
|
|
121
|
-
analytics.screen.authPopupEvent({
|
|
122
|
-
definitionId: definitionId,
|
|
123
|
-
extensionKey: extensionKey
|
|
124
|
-
});
|
|
125
|
-
}
|
|
115
|
+
fireEvent('screen.consentModal.viewed', {
|
|
116
|
+
definitionId: definitionId !== null && definitionId !== void 0 ? definitionId : null
|
|
117
|
+
});
|
|
126
118
|
auth(services[0].url).then(function () {
|
|
127
119
|
fireEvent('track.applicationAccount.connected', {
|
|
128
120
|
definitionId: definitionId !== null && definitionId !== void 0 ? definitionId : null
|
|
@@ -150,7 +142,7 @@ export var useSmartCardActions = function useSmartCardActions(id, url, analytics
|
|
|
150
142
|
reload();
|
|
151
143
|
});
|
|
152
144
|
}
|
|
153
|
-
}, [getSmartLinkState, analytics.ui, analytics.
|
|
145
|
+
}, [getSmartLinkState, analytics.ui, analytics.operational, id, reload, fireEvent]);
|
|
154
146
|
var invoke = useCallback( /*#__PURE__*/function () {
|
|
155
147
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(opts, appearance) {
|
|
156
148
|
var key, action, source;
|
|
@@ -5,7 +5,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
5
5
|
import { useMemo } from 'react';
|
|
6
6
|
import { useSmartLinkContext } from '@atlaskit/link-provider';
|
|
7
7
|
import { getUrl } from '@atlaskit/linking-common';
|
|
8
|
-
import { chunkloadFailedEvent as _chunkloadFailedEvent, connectFailedEvent as _connectFailedEvent, connectSucceededEvent as _connectSucceededEvent, context, instrumentEvent, invokeFailedEvent as _invokeFailedEvent, invokeSucceededEvent as _invokeSucceededEvent,
|
|
8
|
+
import { chunkloadFailedEvent as _chunkloadFailedEvent, connectFailedEvent as _connectFailedEvent, connectSucceededEvent as _connectSucceededEvent, context, instrumentEvent, invokeFailedEvent as _invokeFailedEvent, invokeSucceededEvent as _invokeSucceededEvent, uiActionClickedEvent, uiAuthAlternateAccountEvent, uiAuthEvent, uiCardClickedEvent, uiClosedAuthEvent, uiHoverCardDismissedEvent, uiHoverCardOpenLinkClickedEvent, uiHoverCardViewedEvent, uiLearnMoreLinkClickedEvent, uiRenderFailedEvent, uiRenderSuccessEvent, uiSmartLinkStatusListItemButtonClicked, uiSmartLinkStatusLozengeButtonClicked, uiSmartLinkStatusOpenPreviewButtonClicked } from '../../utils/analytics';
|
|
9
9
|
import { uiServerActionClicked } from '../../utils/analytics/analytics';
|
|
10
10
|
import { getDefinitionId, getExtensionKey, getProduct, getResourceType, getStatusDetails, getSubproduct } from '../helpers';
|
|
11
11
|
import { failUfoExperience, startUfoExperience, succeedUfoExperience } from './ufoExperiences';
|
|
@@ -636,29 +636,6 @@ export var useSmartLinkAnalytics = function useSmartLinkAnalytics(url, id, defau
|
|
|
636
636
|
/** Contains all screen analytics events */
|
|
637
637
|
var screen = useMemo(function () {
|
|
638
638
|
return {
|
|
639
|
-
/**
|
|
640
|
-
* This fires an event which represents the connect account page being opened.
|
|
641
|
-
* @param definitionId The definitionId of the Smart Link resolver invoked.
|
|
642
|
-
* @param extensionKey The extensionKey of the Smart Link resovler invoked.
|
|
643
|
-
* @returns
|
|
644
|
-
* @deprecated remove when platform_smart-card-migrate-screen-analytics is cleaned up
|
|
645
|
-
*/
|
|
646
|
-
authPopupEvent: function authPopupEvent(_ref17) {
|
|
647
|
-
var extensionKey = _ref17.extensionKey,
|
|
648
|
-
definitionId = _ref17.definitionId,
|
|
649
|
-
resourceType = _ref17.resourceType,
|
|
650
|
-
destinationProduct = _ref17.destinationProduct,
|
|
651
|
-
destinationSubproduct = _ref17.destinationSubproduct,
|
|
652
|
-
location = _ref17.location;
|
|
653
|
-
return dispatchAnalytics(applyCommonAttributes(screenAuthPopupEvent(_objectSpread(_objectSpread({}, commonAttributes), {}, {
|
|
654
|
-
extensionKey: extensionKey,
|
|
655
|
-
definitionId: definitionId,
|
|
656
|
-
resourceType: resourceType,
|
|
657
|
-
destinationProduct: destinationProduct,
|
|
658
|
-
destinationSubproduct: destinationSubproduct,
|
|
659
|
-
location: location
|
|
660
|
-
})), commonAttributes));
|
|
661
|
-
},
|
|
662
639
|
/**
|
|
663
640
|
* This fires an event that represents when a user view a modal.
|
|
664
641
|
* @param data A partial analytics event payload
|
|
@@ -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.
|
|
13
|
+
packageVersion: "31.0.3"
|
|
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
|
-
|
|
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
|
-
|
|
335
|
-
|
|
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
|
|
348
|
+
export var uiRenderFailedEvent = function uiRenderFailedEvent(_ref12) {
|
|
346
349
|
var display = _ref12.display,
|
|
347
|
-
|
|
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
|
-
|
|
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
|
|
371
|
-
var
|
|
372
|
-
|
|
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
|
-
|
|
381
|
-
|
|
384
|
+
action: 'viewed',
|
|
385
|
+
actionSubject: 'hoverCard',
|
|
382
386
|
eventType: 'ui',
|
|
383
387
|
attributes: _objectSpread(_objectSpread({}, context), {}, {
|
|
384
|
-
|
|
385
|
-
|
|
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
|
|
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: '
|
|
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
|
|
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(
|
|
487
|
-
var display =
|
|
488
|
-
error =
|
|
489
|
-
errorInfo =
|
|
490
|
-
extensionKey =
|
|
491
|
-
definitionId =
|
|
492
|
-
destinationProduct =
|
|
493
|
-
destinationSubproduct =
|
|
494
|
-
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(
|
|
516
|
+
export var uiServerActionClicked = function uiServerActionClicked(_ref17) {
|
|
539
517
|
var _SmartLinkActionTypeU2;
|
|
540
|
-
var 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,
|
|
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.
|
|
13
|
+
packageVersion: "31.0.3",
|
|
14
14
|
componentName: 'linkUrl'
|
|
15
15
|
};
|
|
16
16
|
var Link = withLinkClickedEvent('a');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ConnectFailedEventProps, type ConnectSucceededEventProps, type InstrumentEventProps, type InvokeFailedEventProps, type InvokeSucceededEventProps, type
|
|
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
|
|
@@ -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;
|
|
@@ -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
|
|
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,
|
|
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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ConnectFailedEventProps, type ConnectSucceededEventProps, type InstrumentEventProps, type InvokeFailedEventProps, type InvokeSucceededEventProps, type
|
|
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
|
|
@@ -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;
|
|
@@ -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
|
|
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,
|
|
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;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "31.0.
|
|
3
|
+
"version": "31.0.3",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"@atlaskit/outbound-auth-flow-client": "^3.4.0",
|
|
54
54
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
55
55
|
"@atlaskit/popup": "^1.29.0",
|
|
56
|
-
"@atlaskit/primitives": "^13.
|
|
56
|
+
"@atlaskit/primitives": "^13.3.0",
|
|
57
57
|
"@atlaskit/section-message": "^6.7.0",
|
|
58
58
|
"@atlaskit/select": "^18.6.0",
|
|
59
59
|
"@atlaskit/spinner": "^16.3.0",
|
|
@@ -174,9 +174,6 @@
|
|
|
174
174
|
},
|
|
175
175
|
"smart_links_for_plans_platform": {
|
|
176
176
|
"type": "boolean"
|
|
177
|
-
},
|
|
178
|
-
"platform_smart-card-migrate-screen-analytics": {
|
|
179
|
-
"type": "boolean"
|
|
180
177
|
}
|
|
181
178
|
}
|
|
182
179
|
}
|