@atlaskit/smart-card 31.0.1 → 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 +15 -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/BlockCard/components/Provider.js +3 -1
- package/dist/cjs/view/EmbedCard/components/IFrame.js +1 -0
- package/dist/cjs/view/EmbedCard/views/unresolved-view/index.js +1 -0
- package/dist/cjs/view/FlexibleCard/components/common/image-icon/index.js +3 -1
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-item/index.js +12 -8
- package/dist/cjs/view/HoverCard/components/HoverCardComponent.js +1 -0
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/cjs/view/common/Metadata.js +1 -0
- package/dist/cjs/view/common/stop-propagation/index.js +7 -4
- 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/BlockCard/components/Provider.js +3 -1
- package/dist/es2019/view/EmbedCard/components/IFrame.js +1 -0
- package/dist/es2019/view/EmbedCard/views/unresolved-view/index.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/common/image-icon/index.js +3 -1
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-item/index.js +12 -8
- package/dist/es2019/view/HoverCard/components/HoverCardComponent.js +1 -0
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/es2019/view/common/Metadata.js +1 -0
- package/dist/es2019/view/common/stop-propagation/index.js +7 -4
- 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/BlockCard/components/Provider.js +3 -1
- package/dist/esm/view/EmbedCard/components/IFrame.js +1 -0
- package/dist/esm/view/EmbedCard/views/unresolved-view/index.js +1 -0
- package/dist/esm/view/FlexibleCard/components/common/image-icon/index.js +3 -1
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-item/index.js +12 -8
- package/dist/esm/view/HoverCard/components/HoverCardComponent.js +1 -0
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/esm/view/common/Metadata.js +1 -0
- package/dist/esm/view/common/stop-propagation/index.js +7 -4
- 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 +4 -7
|
@@ -189,6 +189,7 @@ export const HoverCardComponent = ({
|
|
|
189
189
|
}) => jsx("span", {
|
|
190
190
|
ref: parentSpan
|
|
191
191
|
}, jsx("span", _extends({}, triggerProps, {
|
|
192
|
+
// eslint-disable-next-line jsx-a11y/mouse-events-have-key-events
|
|
192
193
|
onMouseOver: initShowCard,
|
|
193
194
|
onMouseLeave: initHideCard,
|
|
194
195
|
onMouseMove: setMousePosition,
|
|
@@ -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');
|
|
@@ -18,8 +18,11 @@ export const StopPropagation = ({
|
|
|
18
18
|
// Prevent click event inside modal from bubble up
|
|
19
19
|
e.stopPropagation();
|
|
20
20
|
}, []);
|
|
21
|
-
return
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
return (
|
|
22
|
+
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
|
|
23
|
+
jsx("span", {
|
|
24
|
+
css: styles,
|
|
25
|
+
onClick: onClick
|
|
26
|
+
}, children)
|
|
27
|
+
);
|
|
25
28
|
};
|
|
@@ -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,
|
|
@@ -33,7 +33,9 @@ export var Provider = function Provider(_ref) {
|
|
|
33
33
|
icon = _ref.icon;
|
|
34
34
|
var iconToRender = icon || null;
|
|
35
35
|
if (typeof icon === 'string') {
|
|
36
|
-
iconToRender =
|
|
36
|
+
iconToRender =
|
|
37
|
+
// eslint-disable-next-line jsx-a11y/alt-text
|
|
38
|
+
jsx("img", {
|
|
37
39
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
38
40
|
className: "smart-link-icon",
|
|
39
41
|
css: imgStyles,
|
|
@@ -8,6 +8,7 @@ import React from 'react';
|
|
|
8
8
|
export var IFrame = function IFrame(_ref) {
|
|
9
9
|
var childRef = _ref.childRef,
|
|
10
10
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
11
|
+
// eslint-disable-next-line jsx-a11y/iframe-has-title
|
|
11
12
|
return /*#__PURE__*/React.createElement("iframe", _extends({}, props, {
|
|
12
13
|
ref: childRef
|
|
13
14
|
}));
|
|
@@ -70,6 +70,7 @@ var UnresolvedView = function UnresolvedView(_ref) {
|
|
|
70
70
|
}
|
|
71
71
|
var imageTestId = "".concat(testId, "-unresolved-image");
|
|
72
72
|
if (typeof imageUrlOrElement === 'string') {
|
|
73
|
+
// eslint-disable-next-line jsx-a11y/alt-text
|
|
73
74
|
return jsx("img", {
|
|
74
75
|
css: imageStyles,
|
|
75
76
|
"data-testid": imageTestId,
|
|
@@ -17,7 +17,9 @@ var ImageIcon = function ImageIcon(_ref) {
|
|
|
17
17
|
src: url,
|
|
18
18
|
loading: jsx(LoadingSkeleton, {
|
|
19
19
|
testId: "".concat(testId, "-loading")
|
|
20
|
-
})
|
|
20
|
+
})
|
|
21
|
+
// eslint-disable-next-line jsx-a11y/alt-text
|
|
22
|
+
,
|
|
21
23
|
loaded: jsx("img", {
|
|
22
24
|
src: url,
|
|
23
25
|
"data-testid": "".concat(testId, "-image")
|
|
@@ -19,13 +19,17 @@ var LozengeActionItem = function LozengeActionItem(_ref) {
|
|
|
19
19
|
var _e$currentTarget;
|
|
20
20
|
(_e$currentTarget = e.currentTarget) === null || _e$currentTarget === void 0 || (_e$currentTarget = _e$currentTarget.firstElementChild) === null || _e$currentTarget === void 0 || _e$currentTarget.focus();
|
|
21
21
|
}, []);
|
|
22
|
-
return
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
22
|
+
return (
|
|
23
|
+
/*#__PURE__*/
|
|
24
|
+
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
|
|
25
|
+
React.createElement("span", {
|
|
26
|
+
onMouseEnter: handleMouseEnter
|
|
27
|
+
}, /*#__PURE__*/React.createElement(DropdownItem, {
|
|
28
|
+
onClick: handleClick,
|
|
29
|
+
testId: testId
|
|
30
|
+
}, /*#__PURE__*/React.createElement(Lozenge, {
|
|
31
|
+
appearance: appearance
|
|
32
|
+
}, text)))
|
|
33
|
+
);
|
|
30
34
|
};
|
|
31
35
|
export default LozengeActionItem;
|
|
@@ -203,6 +203,7 @@ export var HoverCardComponent = function HoverCardComponent(_ref) {
|
|
|
203
203
|
return jsx("span", {
|
|
204
204
|
ref: parentSpan
|
|
205
205
|
}, jsx("span", _extends({}, triggerProps, {
|
|
206
|
+
// eslint-disable-next-line jsx-a11y/mouse-events-have-key-events
|
|
206
207
|
onMouseOver: initShowCard,
|
|
207
208
|
onMouseLeave: initHideCard,
|
|
208
209
|
onMouseMove: setMousePosition,
|
|
@@ -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');
|
|
@@ -17,8 +17,11 @@ export var StopPropagation = function StopPropagation(_ref) {
|
|
|
17
17
|
// Prevent click event inside modal from bubble up
|
|
18
18
|
e.stopPropagation();
|
|
19
19
|
}, []);
|
|
20
|
-
return
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
return (
|
|
21
|
+
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
|
|
22
|
+
jsx("span", {
|
|
23
|
+
css: styles,
|
|
24
|
+
onClick: onClick
|
|
25
|
+
}, children)
|
|
26
|
+
);
|
|
24
27
|
};
|
|
@@ -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;
|