@atlaskit/smart-card 30.3.0 → 30.3.2
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 +18 -0
- package/dist/cjs/state/analytics/useSmartLinkAnalytics.js +146 -216
- package/dist/cjs/utils/analytics/analytics.js +78 -140
- package/dist/cjs/utils/analytics/index.js +0 -6
- package/dist/cjs/view/BlockCard/components/Name.js +1 -3
- package/dist/cjs/view/BlockCard/views/ResolvingView.js +1 -2
- package/dist/cjs/view/CardWithUrl/component.js +14 -41
- package/dist/cjs/view/EmbedCard/components/styled.js +4 -11
- package/dist/cjs/view/EmbedCard/views/ErroredView.js +2 -2
- package/dist/cjs/view/EmbedCard/views/unresolved-view/index.js +1 -1
- package/dist/cjs/view/EmbedModal/components/link-info/styled.js +2 -3
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +1 -6
- package/dist/cjs/view/FlexibleCard/components/blocks/action-block/action-footer/index.js +1 -4
- package/dist/cjs/view/FlexibleCard/components/elements/link/index.js +1 -1
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/state/analytics/useSmartLinkAnalytics.js +1 -69
- package/dist/es2019/utils/analytics/analytics.js +1 -63
- package/dist/es2019/utils/analytics/index.js +1 -1
- package/dist/es2019/view/BlockCard/components/Name.js +1 -3
- package/dist/es2019/view/BlockCard/views/ResolvingView.js +1 -2
- package/dist/es2019/view/CardWithUrl/component.js +14 -41
- package/dist/es2019/view/EmbedCard/components/styled.js +4 -11
- package/dist/es2019/view/EmbedCard/views/ErroredView.js +2 -2
- package/dist/es2019/view/EmbedCard/views/unresolved-view/index.js +1 -1
- package/dist/es2019/view/EmbedModal/components/link-info/styled.js +2 -3
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +1 -6
- package/dist/es2019/view/FlexibleCard/components/blocks/action-block/action-footer/index.js +1 -4
- package/dist/es2019/view/FlexibleCard/components/elements/link/index.js +1 -1
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/state/analytics/useSmartLinkAnalytics.js +147 -217
- package/dist/esm/utils/analytics/analytics.js +77 -139
- package/dist/esm/utils/analytics/index.js +1 -1
- package/dist/esm/view/BlockCard/components/Name.js +1 -3
- package/dist/esm/view/BlockCard/views/ResolvingView.js +1 -2
- package/dist/esm/view/CardWithUrl/component.js +14 -41
- package/dist/esm/view/EmbedCard/components/styled.js +4 -11
- package/dist/esm/view/EmbedCard/views/ErroredView.js +2 -2
- package/dist/esm/view/EmbedCard/views/unresolved-view/index.js +1 -1
- package/dist/esm/view/EmbedModal/components/link-info/styled.js +2 -3
- package/dist/esm/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +1 -6
- package/dist/esm/view/FlexibleCard/components/blocks/action-block/action-footer/index.js +1 -4
- package/dist/esm/view/FlexibleCard/components/elements/link/index.js +1 -1
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/types/state/analytics/useSmartLinkAnalytics.d.ts +1 -29
- package/dist/types/state/hooks/useSmartLink.d.ts +0 -2
- package/dist/types/utils/analytics/analytics.d.ts +1 -9
- package/dist/types/utils/analytics/index.d.ts +1 -1
- package/dist/types/utils/analytics/types.d.ts +0 -12
- package/dist/types/utils/mocks.d.ts +0 -2
- package/dist/types-ts4.5/state/analytics/useSmartLinkAnalytics.d.ts +1 -29
- package/dist/types-ts4.5/state/hooks/useSmartLink.d.ts +0 -2
- package/dist/types-ts4.5/utils/analytics/analytics.d.ts +1 -9
- package/dist/types-ts4.5/utils/analytics/index.d.ts +1 -1
- package/dist/types-ts4.5/utils/analytics/types.d.ts +0 -12
- package/dist/types-ts4.5/utils/mocks.d.ts +0 -2
- package/package.json +3 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 30.3.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 30.3.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#166125](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/166125)
|
|
14
|
+
[`83c6d7ca56278`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/83c6d7ca56278) -
|
|
15
|
+
Typography uplift for Linking packages.
|
|
16
|
+
- [#166787](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/166787)
|
|
17
|
+
[`e6cb2efbffc55`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e6cb2efbffc55) -
|
|
18
|
+
Remove FF smart-card-migrate-smartLinkIframe-analytics
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 30.3.0
|
|
4
22
|
|
|
5
23
|
### Minor Changes
|
|
@@ -175,94 +175,24 @@ var useSmartLinkAnalytics = exports.useSmartLinkAnalytics = function useSmartLin
|
|
|
175
175
|
}), commonAttributes));
|
|
176
176
|
},
|
|
177
177
|
/**
|
|
178
|
-
* This fires an event that represents when a user
|
|
178
|
+
* This fires an event that represents when a user clicks on a Smart Link action.
|
|
179
|
+
* Note: This also starts the UFO smart-link-action-invocation experience.
|
|
179
180
|
* @param id The unique ID for this Smart Link.
|
|
180
|
-
* @param display Whether the card was an Inline, Block, Embed or Flexible UI.
|
|
181
|
-
* @param status What status the Smart Link is currently in (e.g. resolved, unresolved)
|
|
182
|
-
* @param definitionId The definitionId of the Smart Link resolver invoked.
|
|
183
181
|
* @param extensionKey The extensionKey of the Smart Link resovler invoked.
|
|
184
|
-
* @param
|
|
185
|
-
* @param
|
|
186
|
-
* @param dwellTime Total seconds that the user has dwelled on this iframe
|
|
187
|
-
* @param dwellPercentVisible Percentage element was visible at end of dwell
|
|
182
|
+
* @param actionType The type of the action that was clicked, e.g. PreviewAction
|
|
183
|
+
* @param display Whether the card was an Inline, Block, Embed or Flexible UI.
|
|
188
184
|
* @returns
|
|
189
|
-
* @deprecated
|
|
190
185
|
*/
|
|
191
|
-
|
|
186
|
+
actionClickedEvent: function actionClickedEvent(_ref4) {
|
|
192
187
|
var id = _ref4.id,
|
|
188
|
+
actionType = _ref4.actionType,
|
|
193
189
|
display = _ref4.display,
|
|
194
|
-
|
|
190
|
+
overrideExtensionKey = _ref4.extensionKey,
|
|
195
191
|
definitionId = _ref4.definitionId,
|
|
196
|
-
|
|
197
|
-
location = _ref4.location,
|
|
192
|
+
resourceType = _ref4.resourceType,
|
|
198
193
|
destinationProduct = _ref4.destinationProduct,
|
|
199
194
|
destinationSubproduct = _ref4.destinationSubproduct,
|
|
200
|
-
|
|
201
|
-
dwellPercentVisible = _ref4.dwellPercentVisible;
|
|
202
|
-
return dispatchAnalytics(applyCommonAttributes((0, _analytics2.uiIframeDwelledEvent)({
|
|
203
|
-
id: id,
|
|
204
|
-
display: display,
|
|
205
|
-
status: status,
|
|
206
|
-
definitionId: definitionId,
|
|
207
|
-
extensionKey: extensionKey,
|
|
208
|
-
location: location,
|
|
209
|
-
destinationProduct: destinationProduct,
|
|
210
|
-
destinationSubproduct: destinationSubproduct,
|
|
211
|
-
dwellTime: dwellTime,
|
|
212
|
-
dwellPercentVisible: dwellPercentVisible
|
|
213
|
-
}), commonAttributes));
|
|
214
|
-
},
|
|
215
|
-
/**
|
|
216
|
-
* This fires an event that represents when a user clicks or tabs into a Smart Link's iframe.
|
|
217
|
-
* @param id The unique ID for this Smart Link.
|
|
218
|
-
* @param display Whether the card was an Inline, Block, Embed or Flexible UI.
|
|
219
|
-
* @param status What status the Smart Link is currently in (e.g. resolved, unresolved)
|
|
220
|
-
* @param definitionId The definitionId of the Smart Link resolver invoked.
|
|
221
|
-
* @param extensionKey The extensionKey of the Smart Link resovler invoked.
|
|
222
|
-
* @param location Where the Smart Link is currently rendered.
|
|
223
|
-
* @param destinationProduct The product the Smart Link is linked to.
|
|
224
|
-
* @returns
|
|
225
|
-
* @deprecated
|
|
226
|
-
*/
|
|
227
|
-
iframeFocusedEvent: function iframeFocusedEvent(_ref5) {
|
|
228
|
-
var id = _ref5.id,
|
|
229
|
-
display = _ref5.display,
|
|
230
|
-
status = _ref5.status,
|
|
231
|
-
definitionId = _ref5.definitionId,
|
|
232
|
-
extensionKey = _ref5.extensionKey,
|
|
233
|
-
location = _ref5.location,
|
|
234
|
-
destinationProduct = _ref5.destinationProduct,
|
|
235
|
-
destinationSubproduct = _ref5.destinationSubproduct;
|
|
236
|
-
return dispatchAnalytics(applyCommonAttributes((0, _analytics2.uiIframeFocusedEvent)({
|
|
237
|
-
id: id,
|
|
238
|
-
display: display,
|
|
239
|
-
status: status,
|
|
240
|
-
definitionId: definitionId,
|
|
241
|
-
extensionKey: extensionKey,
|
|
242
|
-
location: location,
|
|
243
|
-
destinationProduct: destinationProduct,
|
|
244
|
-
destinationSubproduct: destinationSubproduct
|
|
245
|
-
}), commonAttributes));
|
|
246
|
-
},
|
|
247
|
-
/**
|
|
248
|
-
* This fires an event that represents when a user clicks on a Smart Link action.
|
|
249
|
-
* Note: This also starts the UFO smart-link-action-invocation experience.
|
|
250
|
-
* @param id The unique ID for this Smart Link.
|
|
251
|
-
* @param extensionKey The extensionKey of the Smart Link resovler invoked.
|
|
252
|
-
* @param actionType The type of the action that was clicked, e.g. PreviewAction
|
|
253
|
-
* @param display Whether the card was an Inline, Block, Embed or Flexible UI.
|
|
254
|
-
* @returns
|
|
255
|
-
*/
|
|
256
|
-
actionClickedEvent: function actionClickedEvent(_ref6) {
|
|
257
|
-
var id = _ref6.id,
|
|
258
|
-
actionType = _ref6.actionType,
|
|
259
|
-
display = _ref6.display,
|
|
260
|
-
overrideExtensionKey = _ref6.extensionKey,
|
|
261
|
-
definitionId = _ref6.definitionId,
|
|
262
|
-
resourceType = _ref6.resourceType,
|
|
263
|
-
destinationProduct = _ref6.destinationProduct,
|
|
264
|
-
destinationSubproduct = _ref6.destinationSubproduct,
|
|
265
|
-
location = _ref6.location;
|
|
195
|
+
location = _ref4.location;
|
|
266
196
|
var extensionKey = overrideExtensionKey !== null && overrideExtensionKey !== void 0 ? overrideExtensionKey : extractedExtensionKey;
|
|
267
197
|
dispatchAnalytics(applyCommonAttributes((0, _analytics.uiActionClickedEvent)({
|
|
268
198
|
id: id !== null && id !== void 0 ? id : defaultId,
|
|
@@ -284,14 +214,14 @@ var useSmartLinkAnalytics = exports.useSmartLinkAnalytics = function useSmartLin
|
|
|
284
214
|
* @param extensionKey The extensionKey of the Smart Link resovler invoked.
|
|
285
215
|
* @param previewInvokeMethod How the preview was triggered.
|
|
286
216
|
*/
|
|
287
|
-
hoverCardOpenLinkClickedEvent: function hoverCardOpenLinkClickedEvent(
|
|
288
|
-
var previewDisplay =
|
|
289
|
-
definitionId =
|
|
290
|
-
extensionKey =
|
|
291
|
-
destinationProduct =
|
|
292
|
-
destinationSubproduct =
|
|
293
|
-
location =
|
|
294
|
-
previewInvokeMethod =
|
|
217
|
+
hoverCardOpenLinkClickedEvent: function hoverCardOpenLinkClickedEvent(_ref5) {
|
|
218
|
+
var previewDisplay = _ref5.previewDisplay,
|
|
219
|
+
definitionId = _ref5.definitionId,
|
|
220
|
+
extensionKey = _ref5.extensionKey,
|
|
221
|
+
destinationProduct = _ref5.destinationProduct,
|
|
222
|
+
destinationSubproduct = _ref5.destinationSubproduct,
|
|
223
|
+
location = _ref5.location,
|
|
224
|
+
previewInvokeMethod = _ref5.previewInvokeMethod;
|
|
295
225
|
dispatchAnalytics(applyCommonAttributes((0, _analytics.uiHoverCardOpenLinkClickedEvent)({
|
|
296
226
|
id: defaultId,
|
|
297
227
|
previewDisplay: previewDisplay,
|
|
@@ -310,14 +240,14 @@ var useSmartLinkAnalytics = exports.useSmartLinkAnalytics = function useSmartLin
|
|
|
310
240
|
* @param extensionKey The extensionKey of the Smart Link resovler invoked.
|
|
311
241
|
* @returns
|
|
312
242
|
*/
|
|
313
|
-
closedAuthEvent: function closedAuthEvent(
|
|
314
|
-
var display =
|
|
315
|
-
extensionKey =
|
|
316
|
-
definitionId =
|
|
317
|
-
resourceType =
|
|
318
|
-
destinationProduct =
|
|
319
|
-
destinationSubproduct =
|
|
320
|
-
location =
|
|
243
|
+
closedAuthEvent: function closedAuthEvent(_ref6) {
|
|
244
|
+
var display = _ref6.display,
|
|
245
|
+
extensionKey = _ref6.extensionKey,
|
|
246
|
+
definitionId = _ref6.definitionId,
|
|
247
|
+
resourceType = _ref6.resourceType,
|
|
248
|
+
destinationProduct = _ref6.destinationProduct,
|
|
249
|
+
destinationSubproduct = _ref6.destinationSubproduct,
|
|
250
|
+
location = _ref6.location;
|
|
321
251
|
return dispatchAnalytics(applyCommonAttributes((0, _analytics.uiClosedAuthEvent)({
|
|
322
252
|
display: display,
|
|
323
253
|
extensionKey: extensionKey,
|
|
@@ -350,18 +280,18 @@ var useSmartLinkAnalytics = exports.useSmartLinkAnalytics = function useSmartLin
|
|
|
350
280
|
* @param extensionKey The extensionKey of the Smart Link resovler invoked.
|
|
351
281
|
* @param canBeDatasource An indicator that shows that a smart link can be converted to a datasource
|
|
352
282
|
*/
|
|
353
|
-
renderSuccessEvent: function renderSuccessEvent(
|
|
354
|
-
var display =
|
|
355
|
-
status =
|
|
356
|
-
id =
|
|
357
|
-
extensionKey =
|
|
358
|
-
definitionId =
|
|
359
|
-
resourceType =
|
|
360
|
-
destinationProduct =
|
|
361
|
-
destinationSubproduct =
|
|
362
|
-
location =
|
|
363
|
-
|
|
364
|
-
canBeDatasource =
|
|
283
|
+
renderSuccessEvent: function renderSuccessEvent(_ref7) {
|
|
284
|
+
var display = _ref7.display,
|
|
285
|
+
status = _ref7.status,
|
|
286
|
+
id = _ref7.id,
|
|
287
|
+
extensionKey = _ref7.extensionKey,
|
|
288
|
+
definitionId = _ref7.definitionId,
|
|
289
|
+
resourceType = _ref7.resourceType,
|
|
290
|
+
destinationProduct = _ref7.destinationProduct,
|
|
291
|
+
destinationSubproduct = _ref7.destinationSubproduct,
|
|
292
|
+
location = _ref7.location,
|
|
293
|
+
_ref7$canBeDatasource = _ref7.canBeDatasource,
|
|
294
|
+
canBeDatasource = _ref7$canBeDatasource === void 0 ? false : _ref7$canBeDatasource;
|
|
365
295
|
var experienceId = id ? id : defaultId;
|
|
366
296
|
(0, _ufoExperiences.succeedUfoExperience)('smart-link-rendered', experienceId, {
|
|
367
297
|
extensionKey: extensionKey,
|
|
@@ -391,17 +321,17 @@ var useSmartLinkAnalytics = exports.useSmartLinkAnalytics = function useSmartLin
|
|
|
391
321
|
* @param error: An error representing why the Smart Link render failed.
|
|
392
322
|
* @param errorInfo: Additional details about the error including the stack trace.
|
|
393
323
|
*/
|
|
394
|
-
renderFailedEvent: function renderFailedEvent(
|
|
395
|
-
var display =
|
|
396
|
-
id =
|
|
397
|
-
error =
|
|
398
|
-
errorInfo =
|
|
399
|
-
extensionKey =
|
|
400
|
-
definitionId =
|
|
401
|
-
resourceType =
|
|
402
|
-
destinationProduct =
|
|
403
|
-
destinationSubproduct =
|
|
404
|
-
location =
|
|
324
|
+
renderFailedEvent: function renderFailedEvent(_ref8) {
|
|
325
|
+
var display = _ref8.display,
|
|
326
|
+
id = _ref8.id,
|
|
327
|
+
error = _ref8.error,
|
|
328
|
+
errorInfo = _ref8.errorInfo,
|
|
329
|
+
extensionKey = _ref8.extensionKey,
|
|
330
|
+
definitionId = _ref8.definitionId,
|
|
331
|
+
resourceType = _ref8.resourceType,
|
|
332
|
+
destinationProduct = _ref8.destinationProduct,
|
|
333
|
+
destinationSubproduct = _ref8.destinationSubproduct,
|
|
334
|
+
location = _ref8.location;
|
|
405
335
|
var experienceId = id ? id : defaultId;
|
|
406
336
|
// Start and fail the smart-link-rendered experience. If it has already
|
|
407
337
|
// been started nothing happens.
|
|
@@ -428,17 +358,17 @@ var useSmartLinkAnalytics = exports.useSmartLinkAnalytics = function useSmartLin
|
|
|
428
358
|
* @param previewInvokeMethod How the preview was triggered.
|
|
429
359
|
* @returns
|
|
430
360
|
*/
|
|
431
|
-
hoverCardViewedEvent: function hoverCardViewedEvent(
|
|
432
|
-
var previewDisplay =
|
|
433
|
-
previewInvokeMethod =
|
|
434
|
-
id =
|
|
435
|
-
extensionKey =
|
|
436
|
-
definitionId =
|
|
437
|
-
resourceType =
|
|
438
|
-
destinationProduct =
|
|
439
|
-
destinationSubproduct =
|
|
440
|
-
location =
|
|
441
|
-
status =
|
|
361
|
+
hoverCardViewedEvent: function hoverCardViewedEvent(_ref9) {
|
|
362
|
+
var previewDisplay = _ref9.previewDisplay,
|
|
363
|
+
previewInvokeMethod = _ref9.previewInvokeMethod,
|
|
364
|
+
id = _ref9.id,
|
|
365
|
+
extensionKey = _ref9.extensionKey,
|
|
366
|
+
definitionId = _ref9.definitionId,
|
|
367
|
+
resourceType = _ref9.resourceType,
|
|
368
|
+
destinationProduct = _ref9.destinationProduct,
|
|
369
|
+
destinationSubproduct = _ref9.destinationSubproduct,
|
|
370
|
+
location = _ref9.location,
|
|
371
|
+
status = _ref9.status;
|
|
442
372
|
return dispatchAnalytics(applyCommonAttributes((0, _analytics.uiHoverCardViewedEvent)({
|
|
443
373
|
id: id,
|
|
444
374
|
previewDisplay: previewDisplay,
|
|
@@ -461,18 +391,18 @@ var useSmartLinkAnalytics = exports.useSmartLinkAnalytics = function useSmartLin
|
|
|
461
391
|
* @param previewInvokeMethod How the preview was triggered.
|
|
462
392
|
* @returns
|
|
463
393
|
*/
|
|
464
|
-
hoverCardDismissedEvent: function hoverCardDismissedEvent(
|
|
465
|
-
var id =
|
|
466
|
-
previewDisplay =
|
|
467
|
-
hoverTime =
|
|
468
|
-
previewInvokeMethod =
|
|
469
|
-
extensionKey =
|
|
470
|
-
definitionId =
|
|
471
|
-
resourceType =
|
|
472
|
-
destinationProduct =
|
|
473
|
-
destinationSubproduct =
|
|
474
|
-
location =
|
|
475
|
-
status =
|
|
394
|
+
hoverCardDismissedEvent: function hoverCardDismissedEvent(_ref10) {
|
|
395
|
+
var id = _ref10.id,
|
|
396
|
+
previewDisplay = _ref10.previewDisplay,
|
|
397
|
+
hoverTime = _ref10.hoverTime,
|
|
398
|
+
previewInvokeMethod = _ref10.previewInvokeMethod,
|
|
399
|
+
extensionKey = _ref10.extensionKey,
|
|
400
|
+
definitionId = _ref10.definitionId,
|
|
401
|
+
resourceType = _ref10.resourceType,
|
|
402
|
+
destinationProduct = _ref10.destinationProduct,
|
|
403
|
+
destinationSubproduct = _ref10.destinationSubproduct,
|
|
404
|
+
location = _ref10.location,
|
|
405
|
+
status = _ref10.status;
|
|
476
406
|
return dispatchAnalytics(applyCommonAttributes((0, _analytics.uiHoverCardDismissedEvent)({
|
|
477
407
|
previewDisplay: previewDisplay,
|
|
478
408
|
id: id,
|
|
@@ -529,16 +459,16 @@ var useSmartLinkAnalytics = exports.useSmartLinkAnalytics = function useSmartLin
|
|
|
529
459
|
* @param actionType The type of action invoked, e.g. PreviewAction
|
|
530
460
|
* @param display Whether the card was an Inline, Block, Embed or Flexible UI.
|
|
531
461
|
*/
|
|
532
|
-
invokeSucceededEvent: function invokeSucceededEvent(
|
|
533
|
-
var id =
|
|
534
|
-
actionType =
|
|
535
|
-
display =
|
|
536
|
-
extensionKey =
|
|
537
|
-
definitionId =
|
|
538
|
-
resourceType =
|
|
539
|
-
destinationProduct =
|
|
540
|
-
destinationSubproduct =
|
|
541
|
-
location =
|
|
462
|
+
invokeSucceededEvent: function invokeSucceededEvent(_ref11) {
|
|
463
|
+
var id = _ref11.id,
|
|
464
|
+
actionType = _ref11.actionType,
|
|
465
|
+
display = _ref11.display,
|
|
466
|
+
extensionKey = _ref11.extensionKey,
|
|
467
|
+
definitionId = _ref11.definitionId,
|
|
468
|
+
resourceType = _ref11.resourceType,
|
|
469
|
+
destinationProduct = _ref11.destinationProduct,
|
|
470
|
+
destinationSubproduct = _ref11.destinationSubproduct,
|
|
471
|
+
location = _ref11.location;
|
|
542
472
|
dispatchAnalytics(applyCommonAttributes((0, _analytics.invokeSucceededEvent)({
|
|
543
473
|
id: id !== null && id !== void 0 ? id : defaultId,
|
|
544
474
|
actionType: actionType,
|
|
@@ -559,17 +489,17 @@ var useSmartLinkAnalytics = exports.useSmartLinkAnalytics = function useSmartLin
|
|
|
559
489
|
* @param display Whether the card was an Inline, Block, Embed or Flexible UI.
|
|
560
490
|
* @param reason The reason the invocation failed.
|
|
561
491
|
*/
|
|
562
|
-
invokeFailedEvent: function invokeFailedEvent(
|
|
563
|
-
var id =
|
|
564
|
-
actionType =
|
|
565
|
-
display =
|
|
566
|
-
reason =
|
|
567
|
-
extensionKey =
|
|
568
|
-
definitionId =
|
|
569
|
-
resourceType =
|
|
570
|
-
destinationProduct =
|
|
571
|
-
destinationSubproduct =
|
|
572
|
-
location =
|
|
492
|
+
invokeFailedEvent: function invokeFailedEvent(_ref12) {
|
|
493
|
+
var id = _ref12.id,
|
|
494
|
+
actionType = _ref12.actionType,
|
|
495
|
+
display = _ref12.display,
|
|
496
|
+
reason = _ref12.reason,
|
|
497
|
+
extensionKey = _ref12.extensionKey,
|
|
498
|
+
definitionId = _ref12.definitionId,
|
|
499
|
+
resourceType = _ref12.resourceType,
|
|
500
|
+
destinationProduct = _ref12.destinationProduct,
|
|
501
|
+
destinationSubproduct = _ref12.destinationSubproduct,
|
|
502
|
+
location = _ref12.location;
|
|
573
503
|
dispatchAnalytics(applyCommonAttributes((0, _analytics.invokeFailedEvent)({
|
|
574
504
|
id: id !== null && id !== void 0 ? id : defaultId,
|
|
575
505
|
actionType: actionType,
|
|
@@ -589,14 +519,14 @@ var useSmartLinkAnalytics = exports.useSmartLinkAnalytics = function useSmartLin
|
|
|
589
519
|
* @param definitionId The definitionId of the Smart Link resolver invoked.
|
|
590
520
|
* @param extensionKey The extensionKey of the Smart Link resovler invoked.
|
|
591
521
|
*/
|
|
592
|
-
connectSucceededEvent: function connectSucceededEvent(
|
|
593
|
-
var id =
|
|
594
|
-
extensionKey =
|
|
595
|
-
definitionId =
|
|
596
|
-
resourceType =
|
|
597
|
-
destinationProduct =
|
|
598
|
-
destinationSubproduct =
|
|
599
|
-
location =
|
|
522
|
+
connectSucceededEvent: function connectSucceededEvent(_ref13) {
|
|
523
|
+
var id = _ref13.id,
|
|
524
|
+
extensionKey = _ref13.extensionKey,
|
|
525
|
+
definitionId = _ref13.definitionId,
|
|
526
|
+
resourceType = _ref13.resourceType,
|
|
527
|
+
destinationProduct = _ref13.destinationProduct,
|
|
528
|
+
destinationSubproduct = _ref13.destinationSubproduct,
|
|
529
|
+
location = _ref13.location;
|
|
600
530
|
var experienceId = id ? id : defaultId;
|
|
601
531
|
(0, _ufoExperiences.startUfoExperience)('smart-link-authenticated', experienceId, {
|
|
602
532
|
extensionKey: extensionKey,
|
|
@@ -619,15 +549,15 @@ var useSmartLinkAnalytics = exports.useSmartLinkAnalytics = function useSmartLin
|
|
|
619
549
|
* @param extensionKey The extensionKey of the Smart Link resovler invoked.
|
|
620
550
|
* @param reason The reason why the Smart Link connect account failed.
|
|
621
551
|
*/
|
|
622
|
-
connectFailedEvent: function connectFailedEvent(
|
|
623
|
-
var id =
|
|
624
|
-
reason =
|
|
625
|
-
extensionKey =
|
|
626
|
-
definitionId =
|
|
627
|
-
resourceType =
|
|
628
|
-
destinationProduct =
|
|
629
|
-
destinationSubproduct =
|
|
630
|
-
location =
|
|
552
|
+
connectFailedEvent: function connectFailedEvent(_ref14) {
|
|
553
|
+
var id = _ref14.id,
|
|
554
|
+
reason = _ref14.reason,
|
|
555
|
+
extensionKey = _ref14.extensionKey,
|
|
556
|
+
definitionId = _ref14.definitionId,
|
|
557
|
+
resourceType = _ref14.resourceType,
|
|
558
|
+
destinationProduct = _ref14.destinationProduct,
|
|
559
|
+
destinationSubproduct = _ref14.destinationSubproduct,
|
|
560
|
+
location = _ref14.location;
|
|
631
561
|
var experienceId = id ? id : defaultId;
|
|
632
562
|
(0, _ufoExperiences.startUfoExperience)('smart-link-authenticated', experienceId, {
|
|
633
563
|
extensionKey: extensionKey,
|
|
@@ -653,16 +583,16 @@ var useSmartLinkAnalytics = exports.useSmartLinkAnalytics = function useSmartLin
|
|
|
653
583
|
* @param resourceType The type of resource that was invoked. This is provider specific (e.g. File, PullRequest).
|
|
654
584
|
* @param error An error representing why the Smart Link request failed.
|
|
655
585
|
*/
|
|
656
|
-
instrument: function instrument(
|
|
657
|
-
var id =
|
|
658
|
-
status =
|
|
659
|
-
extensionKey =
|
|
660
|
-
definitionId =
|
|
661
|
-
resourceType =
|
|
662
|
-
destinationProduct =
|
|
663
|
-
destinationSubproduct =
|
|
664
|
-
location =
|
|
665
|
-
error =
|
|
586
|
+
instrument: function instrument(_ref15) {
|
|
587
|
+
var id = _ref15.id,
|
|
588
|
+
status = _ref15.status,
|
|
589
|
+
extensionKey = _ref15.extensionKey,
|
|
590
|
+
definitionId = _ref15.definitionId,
|
|
591
|
+
resourceType = _ref15.resourceType,
|
|
592
|
+
destinationProduct = _ref15.destinationProduct,
|
|
593
|
+
destinationSubproduct = _ref15.destinationSubproduct,
|
|
594
|
+
location = _ref15.location,
|
|
595
|
+
error = _ref15.error;
|
|
666
596
|
var event = (0, _analytics.instrumentEvent)(_objectSpread(_objectSpread({}, commonAttributes), {}, {
|
|
667
597
|
id: id,
|
|
668
598
|
status: status,
|
|
@@ -685,16 +615,16 @@ var useSmartLinkAnalytics = exports.useSmartLinkAnalytics = function useSmartLin
|
|
|
685
615
|
* @param error: An error representing why the Smart Link render failed.
|
|
686
616
|
* @param errorInfo: Additional details about the error including the stack trace.
|
|
687
617
|
*/
|
|
688
|
-
chunkloadFailedEvent: function chunkloadFailedEvent(
|
|
689
|
-
var display =
|
|
690
|
-
error =
|
|
691
|
-
errorInfo =
|
|
692
|
-
extensionKey =
|
|
693
|
-
definitionId =
|
|
694
|
-
resourceType =
|
|
695
|
-
destinationProduct =
|
|
696
|
-
destinationSubproduct =
|
|
697
|
-
location =
|
|
618
|
+
chunkloadFailedEvent: function chunkloadFailedEvent(_ref16) {
|
|
619
|
+
var display = _ref16.display,
|
|
620
|
+
error = _ref16.error,
|
|
621
|
+
errorInfo = _ref16.errorInfo,
|
|
622
|
+
extensionKey = _ref16.extensionKey,
|
|
623
|
+
definitionId = _ref16.definitionId,
|
|
624
|
+
resourceType = _ref16.resourceType,
|
|
625
|
+
destinationProduct = _ref16.destinationProduct,
|
|
626
|
+
destinationSubproduct = _ref16.destinationSubproduct,
|
|
627
|
+
location = _ref16.location;
|
|
698
628
|
dispatchAnalytics(applyCommonAttributes((0, _analytics.chunkloadFailedEvent)({
|
|
699
629
|
display: display,
|
|
700
630
|
error: error,
|
|
@@ -720,13 +650,13 @@ var useSmartLinkAnalytics = exports.useSmartLinkAnalytics = function useSmartLin
|
|
|
720
650
|
* @returns
|
|
721
651
|
* @deprecated
|
|
722
652
|
*/
|
|
723
|
-
appAccountConnected: function appAccountConnected(
|
|
724
|
-
var extensionKey =
|
|
725
|
-
definitionId =
|
|
726
|
-
resourceType =
|
|
727
|
-
destinationProduct =
|
|
728
|
-
destinationSubproduct =
|
|
729
|
-
location =
|
|
653
|
+
appAccountConnected: function appAccountConnected(_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;
|
|
730
660
|
return dispatchAnalytics(applyCommonAttributes((0, _analytics.trackAppAccountConnected)(_objectSpread(_objectSpread({}, commonAttributes), {}, {
|
|
731
661
|
extensionKey: extensionKey,
|
|
732
662
|
definitionId: definitionId,
|
|
@@ -743,9 +673,9 @@ var useSmartLinkAnalytics = exports.useSmartLinkAnalytics = function useSmartLin
|
|
|
743
673
|
* @returns
|
|
744
674
|
* @deprecated
|
|
745
675
|
*/
|
|
746
|
-
appAccountAuthStarted: function appAccountAuthStarted(
|
|
747
|
-
var extensionKey =
|
|
748
|
-
location =
|
|
676
|
+
appAccountAuthStarted: function appAccountAuthStarted(_ref18) {
|
|
677
|
+
var extensionKey = _ref18.extensionKey,
|
|
678
|
+
location = _ref18.location;
|
|
749
679
|
return dispatchAnalytics(applyCommonAttributes((0, _analytics.trackAppAccountAuthStarted)(_objectSpread(_objectSpread({}, commonAttributes), {}, {
|
|
750
680
|
extensionKey: extensionKey,
|
|
751
681
|
location: location
|
|
@@ -793,13 +723,13 @@ var useSmartLinkAnalytics = exports.useSmartLinkAnalytics = function useSmartLin
|
|
|
793
723
|
* @param extensionKey The extensionKey of the Smart Link resovler invoked.
|
|
794
724
|
* @returns
|
|
795
725
|
*/
|
|
796
|
-
authPopupEvent: function authPopupEvent(
|
|
797
|
-
var extensionKey =
|
|
798
|
-
definitionId =
|
|
799
|
-
resourceType =
|
|
800
|
-
destinationProduct =
|
|
801
|
-
destinationSubproduct =
|
|
802
|
-
location =
|
|
726
|
+
authPopupEvent: function authPopupEvent(_ref19) {
|
|
727
|
+
var extensionKey = _ref19.extensionKey,
|
|
728
|
+
definitionId = _ref19.definitionId,
|
|
729
|
+
resourceType = _ref19.resourceType,
|
|
730
|
+
destinationProduct = _ref19.destinationProduct,
|
|
731
|
+
destinationSubproduct = _ref19.destinationSubproduct,
|
|
732
|
+
location = _ref19.location;
|
|
803
733
|
return dispatchAnalytics(applyCommonAttributes((0, _analytics.screenAuthPopupEvent)(_objectSpread(_objectSpread({}, commonAttributes), {}, {
|
|
804
734
|
extensionKey: extensionKey,
|
|
805
735
|
definitionId: definitionId,
|