@atlaskit/smart-card 21.3.0 → 22.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +43 -0
- package/dist/cjs/extractors/common/actions/extractPreviewAction.js +10 -2
- package/dist/cjs/state/actions/index.js +54 -10
- package/dist/cjs/state/analytics/types.js +5 -0
- package/dist/cjs/state/analytics/useSmartLinkAnalytics.js +386 -109
- package/dist/cjs/utils/analytics/analytics.js +239 -72
- package/dist/cjs/utils/analytics/index.js +32 -5
- package/dist/cjs/version.json +1 -1
- package/dist/cjs/view/CardWithUrl/component.js +25 -3
- package/dist/cjs/view/CardWithUrl/loader.js +6 -1
- package/dist/cjs/view/HoverCard/components/HoverCardComponent.js +9 -2
- package/dist/cjs/view/HoverCard/components/HoverCardContent.js +15 -4
- package/dist/cjs/view/HoverCard/index.js +6 -1
- package/dist/es2019/extractors/common/actions/extractPreviewAction.js +10 -2
- package/dist/es2019/state/actions/index.js +54 -10
- package/dist/es2019/state/analytics/types.js +1 -0
- package/dist/es2019/state/analytics/useSmartLinkAnalytics.js +379 -39
- package/dist/es2019/utils/analytics/analytics.js +253 -78
- package/dist/es2019/utils/analytics/index.js +32 -4
- package/dist/es2019/version.json +1 -1
- package/dist/es2019/view/CardWithUrl/component.js +25 -3
- package/dist/es2019/view/CardWithUrl/loader.js +6 -1
- package/dist/es2019/view/HoverCard/components/HoverCardComponent.js +9 -2
- package/dist/es2019/view/HoverCard/components/HoverCardContent.js +15 -4
- package/dist/es2019/view/HoverCard/index.js +6 -1
- package/dist/esm/extractors/common/actions/extractPreviewAction.js +10 -2
- package/dist/esm/state/actions/index.js +54 -10
- package/dist/esm/state/analytics/types.js +1 -0
- package/dist/esm/state/analytics/useSmartLinkAnalytics.js +383 -109
- package/dist/esm/utils/analytics/analytics.js +239 -72
- package/dist/esm/utils/analytics/index.js +31 -4
- package/dist/esm/version.json +1 -1
- package/dist/esm/view/CardWithUrl/component.js +25 -3
- package/dist/esm/view/CardWithUrl/loader.js +6 -1
- package/dist/esm/view/HoverCard/components/HoverCardComponent.js +9 -2
- package/dist/esm/view/HoverCard/components/HoverCardContent.js +15 -4
- package/dist/esm/view/HoverCard/index.js +6 -1
- package/dist/types/state/analytics/types.d.ts +9 -0
- package/dist/types/state/analytics/useSmartLinkAnalytics.d.ts +18 -23
- package/dist/types/state/hooks/useSmartLink.d.ts +17 -18
- package/dist/types/utils/analytics/analytics.d.ts +19 -21
- package/dist/types/utils/analytics/index.d.ts +2 -2
- package/dist/types/utils/analytics/types.d.ts +91 -0
- package/package.json +1 -1
- package/report.api.md +271 -108
package/report.api.md
CHANGED
|
@@ -348,6 +348,25 @@ declare type CommentCount = {
|
|
|
348
348
|
name: ElementName.CommentCount;
|
|
349
349
|
};
|
|
350
350
|
|
|
351
|
+
declare interface CommonEventProps {
|
|
352
|
+
id?: string;
|
|
353
|
+
definitionId?: string;
|
|
354
|
+
extensionKey?: string;
|
|
355
|
+
resourceType?: string;
|
|
356
|
+
destinationSubproduct?: DestinationSubproduct | string;
|
|
357
|
+
destinationProduct?: DestinationProduct | string;
|
|
358
|
+
location?: string;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
declare type ConnectFailedEventProps = CommonEventProps & {
|
|
362
|
+
id?: string;
|
|
363
|
+
reason?: string;
|
|
364
|
+
};
|
|
365
|
+
|
|
366
|
+
declare type ConnectSucceededEventProps = CommonEventProps & {
|
|
367
|
+
id?: string;
|
|
368
|
+
};
|
|
369
|
+
|
|
351
370
|
export declare const contentFooterClassName = 'smart-link-content-footer';
|
|
352
371
|
|
|
353
372
|
/**
|
|
@@ -569,6 +588,25 @@ declare type InlinePreloaderStyle =
|
|
|
569
588
|
| 'on-left-with-skeleton'
|
|
570
589
|
| 'on-right-without-skeleton';
|
|
571
590
|
|
|
591
|
+
declare type InstrumentEventProps = CommonEventProps & {
|
|
592
|
+
error?: APIError;
|
|
593
|
+
status: CardType;
|
|
594
|
+
id: string;
|
|
595
|
+
};
|
|
596
|
+
|
|
597
|
+
declare type InvokeFailedEventProps = CommonEventProps & {
|
|
598
|
+
id: string;
|
|
599
|
+
actionType: string;
|
|
600
|
+
display: CardInnerAppearance;
|
|
601
|
+
reason: string;
|
|
602
|
+
};
|
|
603
|
+
|
|
604
|
+
declare type InvokeSucceededEventProps = CommonEventProps & {
|
|
605
|
+
id: string;
|
|
606
|
+
actionType: string;
|
|
607
|
+
display: CardInnerAppearance;
|
|
608
|
+
};
|
|
609
|
+
|
|
572
610
|
declare type InvokeType = 'server' | 'client';
|
|
573
611
|
|
|
574
612
|
/**
|
|
@@ -760,6 +798,8 @@ declare type RetryOptions = {
|
|
|
760
798
|
values?: Record<string, string>;
|
|
761
799
|
};
|
|
762
800
|
|
|
801
|
+
declare type ScreenAuthPopupEventProps = CommonEventProps;
|
|
802
|
+
|
|
763
803
|
export { SmartCardContext as Context };
|
|
764
804
|
export { SmartCardContext };
|
|
765
805
|
|
|
@@ -983,6 +1023,62 @@ declare type TitleBlockProps = {
|
|
|
983
1023
|
theme?: SmartLinkTheme;
|
|
984
1024
|
} & BlockProps;
|
|
985
1025
|
|
|
1026
|
+
declare type TrackAppAccountConnectedProps = CommonEventProps;
|
|
1027
|
+
|
|
1028
|
+
declare type UiActionClickedEventProps = CommonEventProps & {
|
|
1029
|
+
id: string;
|
|
1030
|
+
display: CardInnerAppearance;
|
|
1031
|
+
actionType: string;
|
|
1032
|
+
invokeType?: InvokeType;
|
|
1033
|
+
};
|
|
1034
|
+
|
|
1035
|
+
declare type UiAuthAlternateAccountEventProps = CommonEventProps & {
|
|
1036
|
+
display: CardInnerAppearance;
|
|
1037
|
+
};
|
|
1038
|
+
|
|
1039
|
+
declare type UiAuthEventProps = CommonEventProps & {
|
|
1040
|
+
display: CardInnerAppearance;
|
|
1041
|
+
};
|
|
1042
|
+
|
|
1043
|
+
declare type UiCardClickedEventProps = CommonEventProps & {
|
|
1044
|
+
id: string;
|
|
1045
|
+
display: CardInnerAppearance;
|
|
1046
|
+
status: CardType;
|
|
1047
|
+
isModifierKeyPressed?: boolean;
|
|
1048
|
+
actionSubjectId?: string;
|
|
1049
|
+
};
|
|
1050
|
+
|
|
1051
|
+
declare type UiClosedAuthEventProps = CommonEventProps & {
|
|
1052
|
+
display: CardInnerAppearance;
|
|
1053
|
+
};
|
|
1054
|
+
|
|
1055
|
+
declare type UiHoverCardDismissedEventProps = CommonEventProps & {
|
|
1056
|
+
previewDisplay: PreviewDisplay;
|
|
1057
|
+
hoverTime: number;
|
|
1058
|
+
previewInvokeMethod?: PreviewInvokeMethod;
|
|
1059
|
+
};
|
|
1060
|
+
|
|
1061
|
+
declare type UiHoverCardOpenLinkClickedEventProps = CommonEventProps & {
|
|
1062
|
+
previewDisplay: PreviewDisplay;
|
|
1063
|
+
previewInvokeMethod?: PreviewInvokeMethod;
|
|
1064
|
+
};
|
|
1065
|
+
|
|
1066
|
+
declare type UiHoverCardViewedEventProps = CommonEventProps & {
|
|
1067
|
+
previewDisplay: PreviewDisplay;
|
|
1068
|
+
previewInvokeMethod?: PreviewInvokeMethod;
|
|
1069
|
+
};
|
|
1070
|
+
|
|
1071
|
+
declare type UiRenderFailedEventProps = CommonEventProps & {
|
|
1072
|
+
display: CardInnerAppearance;
|
|
1073
|
+
error: Error;
|
|
1074
|
+
errorInfo: ErrorInfo;
|
|
1075
|
+
};
|
|
1076
|
+
|
|
1077
|
+
declare type UiRenderSuccessEventProps = CommonEventProps & {
|
|
1078
|
+
display: CardInnerAppearance;
|
|
1079
|
+
status: CardType;
|
|
1080
|
+
};
|
|
1081
|
+
|
|
986
1082
|
/**
|
|
987
1083
|
* This hook provides usage of Smart Link analytics outside of the Card component.
|
|
988
1084
|
* Can be provided to Card via the analyticsEvents prop to change the analytics events.
|
|
@@ -1007,11 +1103,15 @@ export declare const useSmartLinkAnalytics: (
|
|
|
1007
1103
|
* @param extensionKey The extensionKey of the Smart Link resovler invoked.
|
|
1008
1104
|
* @returns
|
|
1009
1105
|
*/
|
|
1010
|
-
authEvent: (
|
|
1011
|
-
display
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1106
|
+
authEvent: ({
|
|
1107
|
+
display,
|
|
1108
|
+
extensionKey,
|
|
1109
|
+
definitionId,
|
|
1110
|
+
resourceType,
|
|
1111
|
+
destinationProduct,
|
|
1112
|
+
destinationSubproduct,
|
|
1113
|
+
location,
|
|
1114
|
+
}: UiAuthEventProps) => void;
|
|
1015
1115
|
/**
|
|
1016
1116
|
* This fires an event that represents when a user clicks on the authentication
|
|
1017
1117
|
* call to action with a forbidden authenticated account. (i.e. Try another account).
|
|
@@ -1020,11 +1120,15 @@ export declare const useSmartLinkAnalytics: (
|
|
|
1020
1120
|
* @param extensionKey The extensionKey of the Smart Link resovler invoked.
|
|
1021
1121
|
* @returns
|
|
1022
1122
|
*/
|
|
1023
|
-
authAlternateAccountEvent: (
|
|
1024
|
-
display
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1123
|
+
authAlternateAccountEvent: ({
|
|
1124
|
+
display,
|
|
1125
|
+
extensionKey,
|
|
1126
|
+
definitionId,
|
|
1127
|
+
resourceType,
|
|
1128
|
+
destinationProduct,
|
|
1129
|
+
destinationSubproduct,
|
|
1130
|
+
location,
|
|
1131
|
+
}: UiAuthAlternateAccountEventProps) => void;
|
|
1028
1132
|
/**
|
|
1029
1133
|
* This fires an event that represents when a user clicks on a Smart Link.
|
|
1030
1134
|
* @param id The unique ID for this Smart Link.
|
|
@@ -1037,18 +1141,18 @@ export declare const useSmartLinkAnalytics: (
|
|
|
1037
1141
|
* @param destinationProduct The product the Smart Link is linked to.
|
|
1038
1142
|
* @returns
|
|
1039
1143
|
*/
|
|
1040
|
-
cardClickedEvent: (
|
|
1041
|
-
id
|
|
1042
|
-
display
|
|
1043
|
-
status
|
|
1044
|
-
definitionId
|
|
1045
|
-
extensionKey
|
|
1046
|
-
isModifierKeyPressed
|
|
1047
|
-
location
|
|
1048
|
-
destinationProduct
|
|
1049
|
-
destinationSubproduct
|
|
1050
|
-
actionSubjectId
|
|
1051
|
-
) => void;
|
|
1144
|
+
cardClickedEvent: ({
|
|
1145
|
+
id,
|
|
1146
|
+
display,
|
|
1147
|
+
status,
|
|
1148
|
+
definitionId,
|
|
1149
|
+
extensionKey,
|
|
1150
|
+
isModifierKeyPressed,
|
|
1151
|
+
location,
|
|
1152
|
+
destinationProduct,
|
|
1153
|
+
destinationSubproduct,
|
|
1154
|
+
actionSubjectId,
|
|
1155
|
+
}: UiCardClickedEventProps) => void;
|
|
1052
1156
|
/**
|
|
1053
1157
|
* This fires an event that represents when a user clicks on a Smart Link action.
|
|
1054
1158
|
* Note: This also starts the UFO smart-link-action-invocation experience.
|
|
@@ -1059,13 +1163,18 @@ export declare const useSmartLinkAnalytics: (
|
|
|
1059
1163
|
* @param invokeType Whether the action invoked made a call to a server.
|
|
1060
1164
|
* @returns
|
|
1061
1165
|
*/
|
|
1062
|
-
actionClickedEvent: (
|
|
1063
|
-
id
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1166
|
+
actionClickedEvent: ({
|
|
1167
|
+
id,
|
|
1168
|
+
actionType,
|
|
1169
|
+
display,
|
|
1170
|
+
invokeType,
|
|
1171
|
+
extensionKey,
|
|
1172
|
+
definitionId,
|
|
1173
|
+
resourceType,
|
|
1174
|
+
destinationProduct,
|
|
1175
|
+
destinationSubproduct,
|
|
1176
|
+
location,
|
|
1177
|
+
}: UiActionClickedEventProps) => void;
|
|
1069
1178
|
/**
|
|
1070
1179
|
* This fires an event that represents when a user clicks on a hover preview's "navigate to link" button.
|
|
1071
1180
|
* https://product-fabric.atlassian.net/wiki/spaces/EM/pages/3206743323/Analytics+Metrics+-+Hover+Previews
|
|
@@ -1074,12 +1183,15 @@ export declare const useSmartLinkAnalytics: (
|
|
|
1074
1183
|
* @param extensionKey The extensionKey of the Smart Link resovler invoked.
|
|
1075
1184
|
* @param previewInvokeMethod How the preview was triggered.
|
|
1076
1185
|
*/
|
|
1077
|
-
hoverCardOpenLinkClickedEvent: (
|
|
1078
|
-
previewDisplay
|
|
1079
|
-
definitionId
|
|
1080
|
-
extensionKey
|
|
1081
|
-
|
|
1082
|
-
|
|
1186
|
+
hoverCardOpenLinkClickedEvent: ({
|
|
1187
|
+
previewDisplay,
|
|
1188
|
+
definitionId,
|
|
1189
|
+
extensionKey,
|
|
1190
|
+
destinationProduct,
|
|
1191
|
+
destinationSubproduct,
|
|
1192
|
+
location,
|
|
1193
|
+
previewInvokeMethod,
|
|
1194
|
+
}: UiHoverCardOpenLinkClickedEventProps) => void;
|
|
1083
1195
|
/**
|
|
1084
1196
|
* This fires an event that represents when a user closed the authentication window without authenticating after opening it.
|
|
1085
1197
|
* @param display Whether the card was an Inline, Block, Embed or Flexible UI.
|
|
@@ -1087,11 +1199,15 @@ export declare const useSmartLinkAnalytics: (
|
|
|
1087
1199
|
* @param extensionKey The extensionKey of the Smart Link resovler invoked.
|
|
1088
1200
|
* @returns
|
|
1089
1201
|
*/
|
|
1090
|
-
closedAuthEvent: (
|
|
1091
|
-
display
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1202
|
+
closedAuthEvent: ({
|
|
1203
|
+
display,
|
|
1204
|
+
extensionKey,
|
|
1205
|
+
definitionId,
|
|
1206
|
+
resourceType,
|
|
1207
|
+
destinationProduct,
|
|
1208
|
+
destinationSubproduct,
|
|
1209
|
+
location,
|
|
1210
|
+
}: UiClosedAuthEventProps) => void;
|
|
1095
1211
|
/**
|
|
1096
1212
|
* This fires an event that represents when a Smart Link was rendered successfully.
|
|
1097
1213
|
* Note: this fires even if the Smart Link request errored out.
|
|
@@ -1100,13 +1216,17 @@ export declare const useSmartLinkAnalytics: (
|
|
|
1100
1216
|
* @param definitionId The definitionId of the Smart Link resolver invoked.
|
|
1101
1217
|
* @param extensionKey The extensionKey of the Smart Link resovler invoked.
|
|
1102
1218
|
*/
|
|
1103
|
-
renderSuccessEvent: (
|
|
1104
|
-
display
|
|
1105
|
-
status
|
|
1106
|
-
id
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1219
|
+
renderSuccessEvent: ({
|
|
1220
|
+
display,
|
|
1221
|
+
status,
|
|
1222
|
+
id,
|
|
1223
|
+
extensionKey,
|
|
1224
|
+
definitionId,
|
|
1225
|
+
resourceType,
|
|
1226
|
+
destinationProduct,
|
|
1227
|
+
destinationSubproduct,
|
|
1228
|
+
location,
|
|
1229
|
+
}: UiRenderSuccessEventProps) => void;
|
|
1110
1230
|
/**
|
|
1111
1231
|
* This fires an event that represents when a Smart Link renders unsuccessfuly.
|
|
1112
1232
|
* @param display Whether the card was an Inline, Block, Embed or Flexible UI.
|
|
@@ -1114,12 +1234,18 @@ export declare const useSmartLinkAnalytics: (
|
|
|
1114
1234
|
* @param error: An error representing why the Smart Link render failed.
|
|
1115
1235
|
* @param errorInfo: Additional details about the error including the stack trace.
|
|
1116
1236
|
*/
|
|
1117
|
-
renderFailedEvent: (
|
|
1118
|
-
display
|
|
1119
|
-
id
|
|
1120
|
-
error
|
|
1121
|
-
errorInfo
|
|
1122
|
-
|
|
1237
|
+
renderFailedEvent: ({
|
|
1238
|
+
display,
|
|
1239
|
+
id,
|
|
1240
|
+
error,
|
|
1241
|
+
errorInfo,
|
|
1242
|
+
extensionKey,
|
|
1243
|
+
definitionId,
|
|
1244
|
+
resourceType,
|
|
1245
|
+
destinationProduct,
|
|
1246
|
+
destinationSubproduct,
|
|
1247
|
+
location,
|
|
1248
|
+
}: UiRenderFailedEventProps) => void;
|
|
1123
1249
|
/**
|
|
1124
1250
|
* This fires an event that represents a hover preview being opened.
|
|
1125
1251
|
* @param hoverDisplay Whether the hover preview was displayed as a card or embed.
|
|
@@ -1128,13 +1254,17 @@ export declare const useSmartLinkAnalytics: (
|
|
|
1128
1254
|
* @param previewInvokeMethod How the preview was triggered.
|
|
1129
1255
|
* @returns
|
|
1130
1256
|
*/
|
|
1131
|
-
hoverCardViewedEvent: (
|
|
1132
|
-
previewDisplay
|
|
1133
|
-
previewInvokeMethod
|
|
1134
|
-
id
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1257
|
+
hoverCardViewedEvent: ({
|
|
1258
|
+
previewDisplay,
|
|
1259
|
+
previewInvokeMethod,
|
|
1260
|
+
id,
|
|
1261
|
+
extensionKey,
|
|
1262
|
+
definitionId,
|
|
1263
|
+
resourceType,
|
|
1264
|
+
destinationProduct,
|
|
1265
|
+
destinationSubproduct,
|
|
1266
|
+
location,
|
|
1267
|
+
}: UiHoverCardViewedEventProps) => void;
|
|
1138
1268
|
/**
|
|
1139
1269
|
* This fires an event that represents a hover preview being dismissed.
|
|
1140
1270
|
* @param hoverDisplay Whether the hover preview was displayed as a card or embed.
|
|
@@ -1144,14 +1274,18 @@ export declare const useSmartLinkAnalytics: (
|
|
|
1144
1274
|
* @param previewInvokeMethod How the preview was triggered.
|
|
1145
1275
|
* @returns
|
|
1146
1276
|
*/
|
|
1147
|
-
hoverCardDismissedEvent: (
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1277
|
+
hoverCardDismissedEvent: ({
|
|
1278
|
+
id,
|
|
1279
|
+
previewDisplay,
|
|
1280
|
+
hoverTime,
|
|
1281
|
+
previewInvokeMethod,
|
|
1282
|
+
extensionKey,
|
|
1283
|
+
definitionId,
|
|
1284
|
+
resourceType,
|
|
1285
|
+
destinationProduct,
|
|
1286
|
+
destinationSubproduct,
|
|
1287
|
+
location,
|
|
1288
|
+
}: UiHoverCardDismissedEventProps) => void;
|
|
1155
1289
|
};
|
|
1156
1290
|
operational: {
|
|
1157
1291
|
/**
|
|
@@ -1161,12 +1295,17 @@ export declare const useSmartLinkAnalytics: (
|
|
|
1161
1295
|
* @param actionType The type of action invoked, e.g. PreviewAction
|
|
1162
1296
|
* @param display Whether the card was an Inline, Block, Embed or Flexible UI.
|
|
1163
1297
|
*/
|
|
1164
|
-
invokeSucceededEvent: (
|
|
1165
|
-
id
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1298
|
+
invokeSucceededEvent: ({
|
|
1299
|
+
id,
|
|
1300
|
+
actionType,
|
|
1301
|
+
display,
|
|
1302
|
+
extensionKey,
|
|
1303
|
+
definitionId,
|
|
1304
|
+
resourceType,
|
|
1305
|
+
destinationProduct,
|
|
1306
|
+
destinationSubproduct,
|
|
1307
|
+
location,
|
|
1308
|
+
}: InvokeSucceededEventProps) => void;
|
|
1170
1309
|
/**
|
|
1171
1310
|
* This fires an event that represents an action being unsuccessfully invoked.
|
|
1172
1311
|
* @param id The unique ID for this Smart Link.
|
|
@@ -1175,24 +1314,33 @@ export declare const useSmartLinkAnalytics: (
|
|
|
1175
1314
|
* @param display Whether the card was an Inline, Block, Embed or Flexible UI.
|
|
1176
1315
|
* @param reason The reason the invocation failed.
|
|
1177
1316
|
*/
|
|
1178
|
-
invokeFailedEvent: (
|
|
1179
|
-
id
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1317
|
+
invokeFailedEvent: ({
|
|
1318
|
+
id,
|
|
1319
|
+
actionType,
|
|
1320
|
+
display,
|
|
1321
|
+
reason,
|
|
1322
|
+
extensionKey,
|
|
1323
|
+
definitionId,
|
|
1324
|
+
resourceType,
|
|
1325
|
+
destinationProduct,
|
|
1326
|
+
destinationSubproduct,
|
|
1327
|
+
location,
|
|
1328
|
+
}: InvokeFailedEventProps) => void;
|
|
1185
1329
|
/**
|
|
1186
1330
|
* This fires an event that represents an account successfully being connected via a Smart Link.
|
|
1187
1331
|
* @param id The unique ID for this Smart Link.
|
|
1188
1332
|
* @param definitionId The definitionId of the Smart Link resolver invoked.
|
|
1189
1333
|
* @param extensionKey The extensionKey of the Smart Link resovler invoked.
|
|
1190
1334
|
*/
|
|
1191
|
-
connectSucceededEvent: (
|
|
1192
|
-
id
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1335
|
+
connectSucceededEvent: ({
|
|
1336
|
+
id,
|
|
1337
|
+
extensionKey,
|
|
1338
|
+
definitionId,
|
|
1339
|
+
resourceType,
|
|
1340
|
+
destinationProduct,
|
|
1341
|
+
destinationSubproduct,
|
|
1342
|
+
location,
|
|
1343
|
+
}: ConnectSucceededEventProps) => void;
|
|
1196
1344
|
/**
|
|
1197
1345
|
* This fires an event that represents an account unsuccessfully being connected.
|
|
1198
1346
|
* @param id The unique ID for this Smart Link.
|
|
@@ -1200,12 +1348,16 @@ export declare const useSmartLinkAnalytics: (
|
|
|
1200
1348
|
* @param extensionKey The extensionKey of the Smart Link resovler invoked.
|
|
1201
1349
|
* @param reason The reason why the Smart Link connect account failed.
|
|
1202
1350
|
*/
|
|
1203
|
-
connectFailedEvent: (
|
|
1204
|
-
id
|
|
1205
|
-
|
|
1206
|
-
extensionKey
|
|
1207
|
-
|
|
1208
|
-
|
|
1351
|
+
connectFailedEvent: ({
|
|
1352
|
+
id,
|
|
1353
|
+
reason,
|
|
1354
|
+
extensionKey,
|
|
1355
|
+
definitionId,
|
|
1356
|
+
resourceType,
|
|
1357
|
+
destinationProduct,
|
|
1358
|
+
destinationSubproduct,
|
|
1359
|
+
location,
|
|
1360
|
+
}: ConnectFailedEventProps) => void;
|
|
1209
1361
|
/**
|
|
1210
1362
|
* This fires an event which represents a Smart Link request succeeding or failing based on the status.
|
|
1211
1363
|
* @param id The unique ID for this Smart Link.
|
|
@@ -1215,14 +1367,17 @@ export declare const useSmartLinkAnalytics: (
|
|
|
1215
1367
|
* @param resourceType The type of resource that was invoked. This is provider specific (e.g. File, PullRequest).
|
|
1216
1368
|
* @param error An error representing why the Smart Link request failed.
|
|
1217
1369
|
*/
|
|
1218
|
-
instrument: (
|
|
1219
|
-
id
|
|
1220
|
-
status
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
resourceType
|
|
1224
|
-
|
|
1225
|
-
|
|
1370
|
+
instrument: ({
|
|
1371
|
+
id,
|
|
1372
|
+
status,
|
|
1373
|
+
extensionKey,
|
|
1374
|
+
definitionId,
|
|
1375
|
+
resourceType,
|
|
1376
|
+
destinationProduct,
|
|
1377
|
+
destinationSubproduct,
|
|
1378
|
+
location,
|
|
1379
|
+
error,
|
|
1380
|
+
}: InstrumentEventProps) => void;
|
|
1226
1381
|
};
|
|
1227
1382
|
track: {
|
|
1228
1383
|
/**
|
|
@@ -1231,10 +1386,14 @@ export declare const useSmartLinkAnalytics: (
|
|
|
1231
1386
|
* @param extensionKey The extensionKey of the Smart Link resovler invoked.
|
|
1232
1387
|
* @returns
|
|
1233
1388
|
*/
|
|
1234
|
-
appAccountConnected: (
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1389
|
+
appAccountConnected: ({
|
|
1390
|
+
extensionKey,
|
|
1391
|
+
definitionId,
|
|
1392
|
+
resourceType,
|
|
1393
|
+
destinationProduct,
|
|
1394
|
+
destinationSubproduct,
|
|
1395
|
+
location,
|
|
1396
|
+
}: TrackAppAccountConnectedProps) => void;
|
|
1238
1397
|
};
|
|
1239
1398
|
screen: {
|
|
1240
1399
|
/**
|
|
@@ -1243,10 +1402,14 @@ export declare const useSmartLinkAnalytics: (
|
|
|
1243
1402
|
* @param extensionKey The extensionKey of the Smart Link resovler invoked.
|
|
1244
1403
|
* @returns
|
|
1245
1404
|
*/
|
|
1246
|
-
authPopupEvent: (
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1405
|
+
authPopupEvent: ({
|
|
1406
|
+
extensionKey,
|
|
1407
|
+
definitionId,
|
|
1408
|
+
resourceType,
|
|
1409
|
+
destinationProduct,
|
|
1410
|
+
destinationSubproduct,
|
|
1411
|
+
location,
|
|
1412
|
+
}: ScreenAuthPopupEventProps) => void;
|
|
1250
1413
|
};
|
|
1251
1414
|
};
|
|
1252
1415
|
|