@atlaskit/smart-card 26.0.0 → 26.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/cjs/state/analytics/useSmartLinkAnalytics.js +37 -0
- package/dist/cjs/state/hooks/use-invoke/index.js +28 -8
- package/dist/cjs/utils/actions/create-status-update-request.js +3 -2
- package/dist/cjs/utils/analytics/analytics.js +198 -126
- package/dist/cjs/utils/analytics/index.js +18 -0
- package/dist/cjs/version.json +1 -1
- package/dist/cjs/view/BlockCard/views/flexible/FlexibleResolvedView.js +1 -0
- package/dist/cjs/view/CardWithUrl/component.js +2 -1
- package/dist/cjs/view/FlexibleCard/components/common/lozenge-action/index.js +43 -30
- package/dist/cjs/view/HoverCard/components/HoverCardContent.js +2 -1
- package/dist/es2019/state/analytics/useSmartLinkAnalytics.js +37 -3
- package/dist/es2019/state/hooks/use-invoke/index.js +23 -9
- package/dist/es2019/utils/actions/create-status-update-request.js +1 -1
- package/dist/es2019/utils/analytics/analytics.js +66 -0
- package/dist/es2019/utils/analytics/index.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/es2019/view/BlockCard/views/flexible/FlexibleResolvedView.js +1 -0
- package/dist/es2019/view/CardWithUrl/component.js +2 -1
- package/dist/es2019/view/FlexibleCard/components/common/lozenge-action/index.js +29 -18
- package/dist/es2019/view/HoverCard/components/HoverCardContent.js +2 -1
- package/dist/esm/state/analytics/useSmartLinkAnalytics.js +39 -2
- package/dist/esm/state/hooks/use-invoke/index.js +28 -8
- package/dist/esm/utils/actions/create-status-update-request.js +3 -2
- package/dist/esm/utils/analytics/analytics.js +190 -124
- package/dist/esm/utils/analytics/index.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/esm/view/BlockCard/views/flexible/FlexibleResolvedView.js +1 -0
- package/dist/esm/view/CardWithUrl/component.js +2 -1
- package/dist/esm/view/FlexibleCard/components/common/lozenge-action/index.js +43 -30
- package/dist/esm/view/HoverCard/components/HoverCardContent.js +2 -1
- package/dist/types/state/analytics/useSmartLinkAnalytics.d.ts +31 -0
- package/dist/types/state/flexible-ui-context/index.d.ts +24 -0
- package/dist/types/state/hooks/use-invoke/index.d.ts +7 -1
- package/dist/types/state/hooks/useSmartLink.d.ts +12 -0
- package/dist/types/utils/analytics/analytics.d.ts +13 -0
- package/dist/types/utils/analytics/index.d.ts +1 -1
- package/dist/types/utils/analytics/types.d.ts +1 -0
- package/dist/types/utils/mocks.d.ts +12 -0
- package/dist/types/utils/types.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/common/lozenge-action/types.d.ts +1 -1
- package/package.json +1 -1
- package/report.api.md +20 -1
- package/tmp/api-report-tmp.d.ts +909 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AnalyticsHandler, AnalyticsName, AnalyticsPayload } from '../../utils/types';
|
|
2
2
|
import { CommonEventProps, ConnectFailedEventProps, ConnectSucceededEventProps, InstrumentEventProps, InvokeFailedEventProps, InvokeSucceededEventProps, ScreenAuthPopupEventProps, TrackAppAccountConnectedProps, UiActionClickedEventProps, UiAuthAlternateAccountEventProps, UiAuthEventProps, UiCardClickedEventProps, UiClosedAuthEventProps, UiHoverCardDismissedEventProps, UiHoverCardOpenLinkClickedEventProps, UiHoverCardViewedEventProps, UiIframeDwelledEventProps, UiIframeFocusedEventProps, UiRenderFailedEventProps, UiRenderSuccessEventProps } from '../../utils/analytics/types';
|
|
3
|
+
import { SmartLinkActionType } from '@atlaskit/linking-types';
|
|
3
4
|
/**
|
|
4
5
|
* This hook provides usage of Smart Link analytics outside of the Card component.
|
|
5
6
|
* Can be provided to Card via the analyticsEvents prop to change the analytics events.
|
|
@@ -158,6 +159,18 @@ export declare const useSmartLinkAnalytics: (url: string, _dispatchAnalytics?: A
|
|
|
158
159
|
* @param location The location where a link is displayed (jiraWebLinks, confluencePages etc)
|
|
159
160
|
*/
|
|
160
161
|
learnMoreClickedEvent: () => void;
|
|
162
|
+
/**
|
|
163
|
+
* Fires an event that represent a click was performed on a Status Lozenge
|
|
164
|
+
*/
|
|
165
|
+
smartLinkLozengeActionClickedEvent: () => void;
|
|
166
|
+
/**
|
|
167
|
+
* Fires an event that represent a click was performed on a Status Lozenge's dropdown item
|
|
168
|
+
*/
|
|
169
|
+
smartLinkLozengeActionListItemClickedEvent: () => void;
|
|
170
|
+
/**
|
|
171
|
+
* Fires an event that represent a click was performed on a Status Lozenge open preview button
|
|
172
|
+
*/
|
|
173
|
+
smartLinkLozengeActionErrorOpenPreviewClickedEvent: () => void;
|
|
161
174
|
};
|
|
162
175
|
operational: {
|
|
163
176
|
/**
|
|
@@ -232,6 +245,24 @@ export declare const useSmartLinkAnalytics: (url: string, _dispatchAnalytics?: A
|
|
|
232
245
|
linkUpdated: (props: CommonEventProps & {
|
|
233
246
|
[key: string]: any;
|
|
234
247
|
}) => void;
|
|
248
|
+
/**
|
|
249
|
+
* This fires a tracking event before an action invoke api call is made
|
|
250
|
+
*/
|
|
251
|
+
smartLinkQuickActionStarted: (props: {
|
|
252
|
+
smartLinkActionType: SmartLinkActionType;
|
|
253
|
+
}) => void;
|
|
254
|
+
/**
|
|
255
|
+
* This fires a tracking event after an action invoke api call is successful
|
|
256
|
+
*/
|
|
257
|
+
smartLinkQuickActionSuccess: (props: {
|
|
258
|
+
smartLinkActionType: SmartLinkActionType;
|
|
259
|
+
}) => void;
|
|
260
|
+
/**
|
|
261
|
+
* This fires a tracking event after an action invoke api call has failed
|
|
262
|
+
*/
|
|
263
|
+
smartLinkQuickActionFailed: (props: {
|
|
264
|
+
smartLinkActionType: SmartLinkActionType;
|
|
265
|
+
}) => void;
|
|
235
266
|
};
|
|
236
267
|
screen: {
|
|
237
268
|
/**
|
|
@@ -32,6 +32,9 @@ export declare const FlexibleUiAnalyticsContext: import("react").Context<{
|
|
|
32
32
|
hoverCardViewedEvent: ({ previewDisplay, previewInvokeMethod, id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, status, }: import("../../utils/analytics/types").UiHoverCardViewedEventProps) => void;
|
|
33
33
|
hoverCardDismissedEvent: ({ id, previewDisplay, hoverTime, previewInvokeMethod, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, status, }: import("../../utils/analytics/types").UiHoverCardDismissedEventProps) => void;
|
|
34
34
|
learnMoreClickedEvent: () => void;
|
|
35
|
+
smartLinkLozengeActionClickedEvent: () => void;
|
|
36
|
+
smartLinkLozengeActionListItemClickedEvent: () => void;
|
|
37
|
+
smartLinkLozengeActionErrorOpenPreviewClickedEvent: () => void;
|
|
35
38
|
};
|
|
36
39
|
operational: {
|
|
37
40
|
invokeSucceededEvent: ({ id, actionType, display, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").InvokeSucceededEventProps) => void;
|
|
@@ -47,6 +50,15 @@ export declare const FlexibleUiAnalyticsContext: import("react").Context<{
|
|
|
47
50
|
linkUpdated: (props: import("../../utils/analytics/types").CommonEventProps & {
|
|
48
51
|
[key: string]: any;
|
|
49
52
|
}) => void;
|
|
53
|
+
smartLinkQuickActionStarted: (props: {
|
|
54
|
+
smartLinkActionType: import("@atlaskit/linking-types").SmartLinkActionType;
|
|
55
|
+
}) => void;
|
|
56
|
+
smartLinkQuickActionSuccess: (props: {
|
|
57
|
+
smartLinkActionType: import("@atlaskit/linking-types").SmartLinkActionType;
|
|
58
|
+
}) => void;
|
|
59
|
+
smartLinkQuickActionFailed: (props: {
|
|
60
|
+
smartLinkActionType: import("@atlaskit/linking-types").SmartLinkActionType;
|
|
61
|
+
}) => void;
|
|
50
62
|
};
|
|
51
63
|
screen: {
|
|
52
64
|
authPopupEvent: ({ extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").CommonEventProps) => void;
|
|
@@ -76,6 +88,9 @@ export declare const useFlexibleUiAnalyticsContext: () => {
|
|
|
76
88
|
hoverCardViewedEvent: ({ previewDisplay, previewInvokeMethod, id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, status, }: import("../../utils/analytics/types").UiHoverCardViewedEventProps) => void;
|
|
77
89
|
hoverCardDismissedEvent: ({ id, previewDisplay, hoverTime, previewInvokeMethod, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, status, }: import("../../utils/analytics/types").UiHoverCardDismissedEventProps) => void;
|
|
78
90
|
learnMoreClickedEvent: () => void;
|
|
91
|
+
smartLinkLozengeActionClickedEvent: () => void;
|
|
92
|
+
smartLinkLozengeActionListItemClickedEvent: () => void;
|
|
93
|
+
smartLinkLozengeActionErrorOpenPreviewClickedEvent: () => void;
|
|
79
94
|
};
|
|
80
95
|
operational: {
|
|
81
96
|
invokeSucceededEvent: ({ id, actionType, display, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").InvokeSucceededEventProps) => void;
|
|
@@ -91,6 +106,15 @@ export declare const useFlexibleUiAnalyticsContext: () => {
|
|
|
91
106
|
linkUpdated: (props: import("../../utils/analytics/types").CommonEventProps & {
|
|
92
107
|
[key: string]: any;
|
|
93
108
|
}) => void;
|
|
109
|
+
smartLinkQuickActionStarted: (props: {
|
|
110
|
+
smartLinkActionType: import("@atlaskit/linking-types").SmartLinkActionType;
|
|
111
|
+
}) => void;
|
|
112
|
+
smartLinkQuickActionSuccess: (props: {
|
|
113
|
+
smartLinkActionType: import("@atlaskit/linking-types").SmartLinkActionType;
|
|
114
|
+
}) => void;
|
|
115
|
+
smartLinkQuickActionFailed: (props: {
|
|
116
|
+
smartLinkActionType: import("@atlaskit/linking-types").SmartLinkActionType;
|
|
117
|
+
}) => void;
|
|
94
118
|
};
|
|
95
119
|
screen: {
|
|
96
120
|
authPopupEvent: ({ extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").CommonEventProps) => void;
|
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
import type { InvokeRequest } from '@atlaskit/linking-types/smart-link-actions';
|
|
2
|
-
|
|
2
|
+
import { AnalyticsFacade } from '../../../state/analytics';
|
|
3
|
+
declare type InvokeRequestTracker = {
|
|
4
|
+
started?: AnalyticsFacade['track']['smartLinkQuickActionStarted'];
|
|
5
|
+
success?: AnalyticsFacade['track']['smartLinkQuickActionSuccess'];
|
|
6
|
+
failed?: AnalyticsFacade['track']['smartLinkQuickActionFailed'];
|
|
7
|
+
};
|
|
8
|
+
declare const useInvoke: ({ failed, started, success }?: InvokeRequestTracker) => (req: InvokeRequest, cb?: Function | undefined) => Promise<any>;
|
|
3
9
|
export default useInvoke;
|
|
@@ -35,6 +35,9 @@ dispatchAnalytics?: AnalyticsHandler): {
|
|
|
35
35
|
hoverCardViewedEvent: ({ previewDisplay, previewInvokeMethod, id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, status, }: import("../../utils/analytics/types").UiHoverCardViewedEventProps) => void;
|
|
36
36
|
hoverCardDismissedEvent: ({ id, previewDisplay, hoverTime, previewInvokeMethod, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, status, }: import("../../utils/analytics/types").UiHoverCardDismissedEventProps) => void;
|
|
37
37
|
learnMoreClickedEvent: () => void;
|
|
38
|
+
smartLinkLozengeActionClickedEvent: () => void;
|
|
39
|
+
smartLinkLozengeActionListItemClickedEvent: () => void;
|
|
40
|
+
smartLinkLozengeActionErrorOpenPreviewClickedEvent: () => void;
|
|
38
41
|
};
|
|
39
42
|
operational: {
|
|
40
43
|
invokeSucceededEvent: ({ id, actionType, display, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").InvokeSucceededEventProps) => void;
|
|
@@ -50,6 +53,15 @@ dispatchAnalytics?: AnalyticsHandler): {
|
|
|
50
53
|
linkUpdated: (props: import("../../utils/analytics/types").CommonEventProps & {
|
|
51
54
|
[key: string]: any;
|
|
52
55
|
}) => void;
|
|
56
|
+
smartLinkQuickActionStarted: (props: {
|
|
57
|
+
smartLinkActionType: import("@atlaskit/linking-types").SmartLinkActionType;
|
|
58
|
+
}) => void;
|
|
59
|
+
smartLinkQuickActionSuccess: (props: {
|
|
60
|
+
smartLinkActionType: import("@atlaskit/linking-types").SmartLinkActionType;
|
|
61
|
+
}) => void;
|
|
62
|
+
smartLinkQuickActionFailed: (props: {
|
|
63
|
+
smartLinkActionType: import("@atlaskit/linking-types").SmartLinkActionType;
|
|
64
|
+
}) => void;
|
|
53
65
|
};
|
|
54
66
|
screen: {
|
|
55
67
|
authPopupEvent: ({ extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").CommonEventProps) => void;
|
|
@@ -2,6 +2,7 @@ import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
|
2
2
|
import { AnalyticsPayload } from '../types';
|
|
3
3
|
import { CardInnerAppearance } from '../../view/Card/types';
|
|
4
4
|
import { CommonEventProps, ConnectFailedEventProps, ConnectSucceededEventProps, InvokeFailedEventProps, InvokeSucceededEventProps, ResolvedEventProps, ScreenAuthPopupEventProps, TrackAppAccountConnectedProps, UiActionClickedEventProps, UiAuthAlternateAccountEventProps, UiAuthEventProps, UiCardClickedEventProps, UiClosedAuthEventProps, UiHoverCardDismissedEventProps, UiHoverCardOpenLinkClickedEventProps, UiHoverCardViewedEventProps, UiIframeDwelledEventProps, UiIframeFocusedEventProps, UiRenderFailedEventProps, UiRenderSuccessEventProps, UnresolvedEventProps } from './types';
|
|
5
|
+
import { SmartLinkActionType } from '@atlaskit/linking-types';
|
|
5
6
|
export declare const ANALYTICS_CHANNEL = "media";
|
|
6
7
|
export declare const context: {
|
|
7
8
|
componentName: string;
|
|
@@ -23,6 +24,15 @@ export declare const trackAppAccountAuthStarted: ({ extensionKey, location, }: T
|
|
|
23
24
|
export declare const trackLinkUpdated: ({ actionSubjectId, ...attributes }: CommonEventProps & {
|
|
24
25
|
[key: string]: any;
|
|
25
26
|
}) => AnalyticsPayload;
|
|
27
|
+
export declare const trackSmartLinkQuickActionStarted: ({ smartLinkActionType, ...attributes }: CommonEventProps & {
|
|
28
|
+
smartLinkActionType: SmartLinkActionType;
|
|
29
|
+
}) => AnalyticsPayload;
|
|
30
|
+
export declare const trackSmartLinkQuickActionSuccess: ({ smartLinkActionType, ...attributes }: CommonEventProps & {
|
|
31
|
+
smartLinkActionType: SmartLinkActionType;
|
|
32
|
+
}) => AnalyticsPayload;
|
|
33
|
+
export declare const trackSmartLinkQuickActionFailed: ({ smartLinkActionType, ...attributes }: CommonEventProps & {
|
|
34
|
+
smartLinkActionType: SmartLinkActionType;
|
|
35
|
+
}) => AnalyticsPayload;
|
|
26
36
|
export declare const uiAuthEvent: ({ definitionId, extensionKey, destinationProduct, destinationSubproduct, location, display, }: UiAuthEventProps) => AnalyticsPayload;
|
|
27
37
|
export declare const uiAuthAlternateAccountEvent: ({ definitionId, extensionKey, destinationProduct, destinationSubproduct, location, display, }: UiAuthAlternateAccountEventProps) => AnalyticsPayload;
|
|
28
38
|
export declare const uiCardClickedEvent: ({ id, display, status, definitionId, extensionKey, isModifierKeyPressed, location, destinationProduct, destinationSubproduct, actionSubjectId, }: UiCardClickedEventProps) => AnalyticsPayload;
|
|
@@ -38,3 +48,6 @@ export declare const uiHoverCardDismissedEvent: ({ id, previewDisplay, hoverTime
|
|
|
38
48
|
export declare const uiHoverCardOpenLinkClickedEvent: ({ id, previewDisplay, extensionKey, definitionId, destinationProduct, destinationSubproduct, location, previewInvokeMethod, }: UiHoverCardOpenLinkClickedEventProps) => AnalyticsPayload;
|
|
39
49
|
export declare const uiLearnMoreLinkClickedEvent: () => AnalyticsPayload;
|
|
40
50
|
export declare const chunkloadFailedEvent: ({ display, error, errorInfo, extensionKey, definitionId, destinationProduct, destinationSubproduct, location, }: UiRenderFailedEventProps) => AnalyticsPayload;
|
|
51
|
+
export declare const uiSmartLinkStatusLozengeButtonClicked: () => AnalyticsPayload;
|
|
52
|
+
export declare const uiSmartLinkStatusListItemButtonClicked: () => AnalyticsPayload;
|
|
53
|
+
export declare const uiSmartLinkStatusOpenPreviewButtonClicked: () => AnalyticsPayload;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { AnalyticsPayload } from '../types';
|
|
2
2
|
import { InstrumentEventProps } from './types';
|
|
3
|
-
export { ANALYTICS_CHANNEL, context, fireSmartLinkEvent, resolvedEvent, unresolvedEvent, invokeSucceededEvent, invokeFailedEvent, chunkloadFailedEvent, connectSucceededEvent, connectFailedEvent, trackAppAccountAuthStarted, trackAppAccountConnected, uiAuthEvent, uiAuthAlternateAccountEvent, uiCardClickedEvent, uiActionClickedEvent, uiClosedAuthEvent, screenAuthPopupEvent, uiRenderSuccessEvent, uiRenderFailedEvent, uiHoverCardViewedEvent, uiHoverCardDismissedEvent, uiHoverCardOpenLinkClickedEvent, uiLearnMoreLinkClickedEvent, uiIframeDwelledEvent, } from './analytics';
|
|
3
|
+
export { ANALYTICS_CHANNEL, context, fireSmartLinkEvent, resolvedEvent, unresolvedEvent, invokeSucceededEvent, invokeFailedEvent, chunkloadFailedEvent, connectSucceededEvent, connectFailedEvent, trackAppAccountAuthStarted, trackAppAccountConnected, uiAuthEvent, uiAuthAlternateAccountEvent, uiCardClickedEvent, uiActionClickedEvent, uiClosedAuthEvent, screenAuthPopupEvent, uiRenderSuccessEvent, uiRenderFailedEvent, uiHoverCardViewedEvent, uiHoverCardDismissedEvent, uiHoverCardOpenLinkClickedEvent, uiLearnMoreLinkClickedEvent, uiIframeDwelledEvent, uiSmartLinkStatusLozengeButtonClicked, uiSmartLinkStatusListItemButtonClicked, uiSmartLinkStatusOpenPreviewButtonClicked, } from './analytics';
|
|
4
4
|
export declare const instrumentEvent: ({ id, status, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, error, }: InstrumentEventProps) => AnalyticsPayload | undefined;
|
|
@@ -10,6 +10,7 @@ export interface CommonEventProps {
|
|
|
10
10
|
definitionId?: string;
|
|
11
11
|
extensionKey?: string;
|
|
12
12
|
resourceType?: string;
|
|
13
|
+
destinatinoObjectType?: string;
|
|
13
14
|
destinationSubproduct?: DestinationSubproduct | string;
|
|
14
15
|
destinationProduct?: DestinationProduct | string;
|
|
15
16
|
location?: string;
|
|
@@ -60,6 +60,9 @@ export declare const mockAnalytics: {
|
|
|
60
60
|
hoverCardViewedEvent: ({ previewDisplay, previewInvokeMethod, id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, status, }: import("./analytics/types").UiHoverCardViewedEventProps) => void;
|
|
61
61
|
hoverCardDismissedEvent: ({ id, previewDisplay, hoverTime, previewInvokeMethod, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, status, }: import("./analytics/types").UiHoverCardDismissedEventProps) => void;
|
|
62
62
|
learnMoreClickedEvent: () => void;
|
|
63
|
+
smartLinkLozengeActionClickedEvent: () => void;
|
|
64
|
+
smartLinkLozengeActionListItemClickedEvent: () => void;
|
|
65
|
+
smartLinkLozengeActionErrorOpenPreviewClickedEvent: () => void;
|
|
63
66
|
};
|
|
64
67
|
operational: {
|
|
65
68
|
invokeSucceededEvent: ({ id, actionType, display, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("./analytics/types").InvokeSucceededEventProps) => void;
|
|
@@ -75,6 +78,15 @@ export declare const mockAnalytics: {
|
|
|
75
78
|
linkUpdated: (props: import("./analytics/types").CommonEventProps & {
|
|
76
79
|
[key: string]: any;
|
|
77
80
|
}) => void;
|
|
81
|
+
smartLinkQuickActionStarted: (props: {
|
|
82
|
+
smartLinkActionType: import("@atlaskit/linking-types").SmartLinkActionType;
|
|
83
|
+
}) => void;
|
|
84
|
+
smartLinkQuickActionSuccess: (props: {
|
|
85
|
+
smartLinkActionType: import("@atlaskit/linking-types").SmartLinkActionType;
|
|
86
|
+
}) => void;
|
|
87
|
+
smartLinkQuickActionFailed: (props: {
|
|
88
|
+
smartLinkActionType: import("@atlaskit/linking-types").SmartLinkActionType;
|
|
89
|
+
}) => void;
|
|
78
90
|
};
|
|
79
91
|
screen: {
|
|
80
92
|
authPopupEvent: ({ extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("./analytics/types").CommonEventProps) => void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { GasPayload } from '@atlaskit/analytics-gas-types';
|
|
2
2
|
import { CardInnerAppearance } from '../view/Card/types';
|
|
3
|
-
export declare type AnalyticsAction = 'authStarted' | 'clicked' | 'closed' | 'connected' | 'connectFailed' | 'connectSucceeded' | 'created' | 'dismissed' | 'inserted' | 'renderFailed' | 'renderSuccess' | 'renderWithStatus' | 'resolved' | 'viewed' | 'unresolved' | 'updated' | 'chunkLoadFailed' | 'dwelled' | 'focused';
|
|
4
|
-
export declare type AnalyticsActionSubject = 'smartLink' | 'smartLinkAction' | 'applicationAccount' | 'button' | 'consentModal' | 'hoverCard' | 'modal' | 'embedPreviewModal' | 'smartLinkIframe' | 'link';
|
|
3
|
+
export declare type AnalyticsAction = 'authStarted' | 'clicked' | 'closed' | 'connected' | 'connectFailed' | 'connectSucceeded' | 'created' | 'dismissed' | 'inserted' | 'renderFailed' | 'renderSuccess' | 'renderWithStatus' | 'resolved' | 'viewed' | 'unresolved' | 'updated' | 'chunkLoadFailed' | 'dwelled' | 'focused' | 'started' | 'success' | 'failed';
|
|
4
|
+
export declare type AnalyticsActionSubject = 'smartLink' | 'smartLinkAction' | 'applicationAccount' | 'button' | 'consentModal' | 'hoverCard' | 'modal' | 'embedPreviewModal' | 'smartLinkIframe' | 'link' | 'smartLinkQuickAction';
|
|
5
5
|
export declare type AnalyticsName = 'embedPreviewModal';
|
|
6
6
|
export declare type AnalyticsOrigin = 'smartLinkCard' | 'smartLinkEmbed' | 'smartLinkInline' | 'smartLinkPreviewHoverCard';
|
|
7
7
|
export declare type AnalyticsPayload = GasPayload & {
|
package/package.json
CHANGED
package/report.api.md
CHANGED
|
@@ -42,6 +42,7 @@ import { ReactChild } from 'react';
|
|
|
42
42
|
import { Ref } from 'react';
|
|
43
43
|
import { SerializedStyles } from '@emotion/react';
|
|
44
44
|
import { SmartCardContext } from '@atlaskit/link-provider';
|
|
45
|
+
import { SmartLinkActionType } from '@atlaskit/linking-types';
|
|
45
46
|
import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
46
47
|
import { WithContextProps } from '@atlaskit/analytics-next';
|
|
47
48
|
import { WithIntlProps } from 'react-intl-next';
|
|
@@ -95,12 +96,15 @@ export type AnalyticsAction =
|
|
|
95
96
|
| 'created'
|
|
96
97
|
| 'dismissed'
|
|
97
98
|
| 'dwelled'
|
|
99
|
+
| 'failed'
|
|
98
100
|
| 'focused'
|
|
99
101
|
| 'inserted'
|
|
100
102
|
| 'renderFailed'
|
|
101
103
|
| 'renderSuccess'
|
|
102
104
|
| 'renderWithStatus'
|
|
103
105
|
| 'resolved'
|
|
106
|
+
| 'started'
|
|
107
|
+
| 'success'
|
|
104
108
|
| 'unresolved'
|
|
105
109
|
| 'updated'
|
|
106
110
|
| 'viewed';
|
|
@@ -116,7 +120,8 @@ export type AnalyticsActionSubject =
|
|
|
116
120
|
| 'modal'
|
|
117
121
|
| 'smartLink'
|
|
118
122
|
| 'smartLinkAction'
|
|
119
|
-
| 'smartLinkIframe'
|
|
123
|
+
| 'smartLinkIframe'
|
|
124
|
+
| 'smartLinkQuickAction';
|
|
120
125
|
|
|
121
126
|
// @public (undocumented)
|
|
122
127
|
type AnalyticsFacade = ReturnType<typeof useSmartLinkAnalytics>;
|
|
@@ -357,6 +362,8 @@ interface CommonEventProps {
|
|
|
357
362
|
// (undocumented)
|
|
358
363
|
definitionId?: string;
|
|
359
364
|
// (undocumented)
|
|
365
|
+
destinatinoObjectType?: string;
|
|
366
|
+
// (undocumented)
|
|
360
367
|
destinationProduct?: DestinationProduct | string;
|
|
361
368
|
// (undocumented)
|
|
362
369
|
destinationSubproduct?: DestinationSubproduct | string;
|
|
@@ -1118,6 +1125,9 @@ export const useSmartLinkAnalytics: (
|
|
|
1118
1125
|
status,
|
|
1119
1126
|
}: UiHoverCardDismissedEventProps) => void;
|
|
1120
1127
|
learnMoreClickedEvent: () => void;
|
|
1128
|
+
smartLinkLozengeActionClickedEvent: () => void;
|
|
1129
|
+
smartLinkLozengeActionListItemClickedEvent: () => void;
|
|
1130
|
+
smartLinkLozengeActionErrorOpenPreviewClickedEvent: () => void;
|
|
1121
1131
|
};
|
|
1122
1132
|
operational: {
|
|
1123
1133
|
invokeSucceededEvent: ({
|
|
@@ -1203,6 +1213,15 @@ export const useSmartLinkAnalytics: (
|
|
|
1203
1213
|
[key: string]: any;
|
|
1204
1214
|
},
|
|
1205
1215
|
) => void;
|
|
1216
|
+
smartLinkQuickActionStarted: (props: {
|
|
1217
|
+
smartLinkActionType: SmartLinkActionType;
|
|
1218
|
+
}) => void;
|
|
1219
|
+
smartLinkQuickActionSuccess: (props: {
|
|
1220
|
+
smartLinkActionType: SmartLinkActionType;
|
|
1221
|
+
}) => void;
|
|
1222
|
+
smartLinkQuickActionFailed: (props: {
|
|
1223
|
+
smartLinkActionType: SmartLinkActionType;
|
|
1224
|
+
}) => void;
|
|
1206
1225
|
};
|
|
1207
1226
|
screen: {
|
|
1208
1227
|
authPopupEvent: ({
|