@atlaskit/smart-card 23.10.2 → 23.11.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/extractors/common/lozenge/extractLozengeText.js +21 -0
- package/dist/cjs/state/actions/index.js +29 -4
- package/dist/cjs/state/analytics/useSmartLinkAnalytics.js +12 -3
- package/dist/cjs/utils/analytics/analytics.js +122 -104
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/extractors/common/lozenge/extractLozengeText.js +11 -0
- package/dist/es2019/state/actions/index.js +25 -3
- package/dist/es2019/state/analytics/useSmartLinkAnalytics.js +8 -0
- package/dist/es2019/utils/analytics/analytics.js +12 -0
- package/dist/es2019/version.json +1 -1
- package/dist/esm/extractors/common/lozenge/extractLozengeText.js +11 -0
- package/dist/esm/state/actions/index.js +28 -4
- package/dist/esm/state/analytics/useSmartLinkAnalytics.js +11 -3
- package/dist/esm/utils/analytics/analytics.js +117 -103
- package/dist/esm/version.json +1 -1
- package/dist/types/extractors/common/lozenge/extractLozengeText.d.ts +2 -0
- package/dist/types/state/analytics/useSmartLinkAnalytics.d.ts +7 -1
- package/dist/types/state/flexible-ui-context/index.d.ts +6 -0
- package/dist/types/state/hooks/useSmartLink.d.ts +3 -0
- package/dist/types/utils/analytics/analytics.d.ts +4 -1
- package/dist/types/utils/mocks.d.ts +3 -0
- package/dist/types/utils/types.d.ts +2 -2
- package/dist/types/view/EmbedCard/components/styled.d.ts +64 -16
- package/dist/types/view/InlineCard/Frame/styled.d.ts +8 -2
- package/dist/types/view/InlineCard/Icon.d.ts +12 -3
- package/dist/types/view/InlineCard/IconAndTitleLayout/styled.d.ts +36 -9
- package/dist/types/view/InlineCard/ResolvingView/styled.d.ts +6 -11
- package/dist/types/view/InlineCard/styled.d.ts +16 -8
- package/package.json +6 -6
- package/report.api.md +7 -0
- package/tmp/api-report-tmp.d.ts +5 -2
|
@@ -11,16 +11,17 @@ import { chunkloadFailedEvent as _chunkloadFailedEvent, connectFailedEvent as _c
|
|
|
11
11
|
import { failUfoExperience, startUfoExperience, succeedUfoExperience } from './ufoExperiences';
|
|
12
12
|
import { getDefinitionId, getExtensionKey, getProduct, getResourceType, getSubproduct } from '../helpers';
|
|
13
13
|
import { useSmartLinkContext } from '@atlaskit/link-provider';
|
|
14
|
+
import { trackLinkUpdated } from '../../utils/analytics/analytics';
|
|
14
15
|
|
|
15
16
|
var applyCommonAttributes = function applyCommonAttributes(event, commonAttributes) {
|
|
16
17
|
if (event && event.attributes) {
|
|
17
18
|
for (var _i = 0, _Object$entries = Object.entries(commonAttributes); _i < _Object$entries.length; _i++) {
|
|
18
19
|
var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2),
|
|
19
|
-
|
|
20
|
+
_key = _Object$entries$_i[0],
|
|
20
21
|
value = _Object$entries$_i[1];
|
|
21
22
|
|
|
22
|
-
if (event.attributes[
|
|
23
|
-
event.attributes[
|
|
23
|
+
if (event.attributes[_key] === undefined) {
|
|
24
|
+
event.attributes[_key] = value;
|
|
24
25
|
}
|
|
25
26
|
}
|
|
26
27
|
}
|
|
@@ -674,6 +675,13 @@ export var useSmartLinkAnalytics = function useSmartLinkAnalytics(url, dispatchA
|
|
|
674
675
|
extensionKey: extensionKey,
|
|
675
676
|
location: location
|
|
676
677
|
})), commonAttributes));
|
|
678
|
+
},
|
|
679
|
+
|
|
680
|
+
/**
|
|
681
|
+
* This fires a tracking event before and after link updated.
|
|
682
|
+
*/
|
|
683
|
+
linkUpdated: function linkUpdated(props) {
|
|
684
|
+
return dispatchAnalytics(applyCommonAttributes(trackLinkUpdated(_objectSpread(_objectSpread({}, commonAttributes), props)), commonAttributes));
|
|
677
685
|
}
|
|
678
686
|
};
|
|
679
687
|
}, [commonAttributes, dispatchAnalytics]);
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
1
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
3
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
3
4
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
5
|
+
var _excluded = ["actionSubjectId"];
|
|
4
6
|
|
|
5
7
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
6
8
|
|
|
@@ -228,13 +230,25 @@ export var trackAppAccountAuthStarted = function trackAppAccountAuthStarted(_ref
|
|
|
228
230
|
})
|
|
229
231
|
};
|
|
230
232
|
};
|
|
231
|
-
export var
|
|
232
|
-
var
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
233
|
+
export var trackLinkUpdated = function trackLinkUpdated(_ref8) {
|
|
234
|
+
var actionSubjectId = _ref8.actionSubjectId,
|
|
235
|
+
attributes = _objectWithoutProperties(_ref8, _excluded);
|
|
236
|
+
|
|
237
|
+
return {
|
|
238
|
+
action: 'updated',
|
|
239
|
+
actionSubject: 'link',
|
|
240
|
+
actionSubjectId: actionSubjectId,
|
|
241
|
+
eventType: 'track',
|
|
242
|
+
attributes: _objectSpread(_objectSpread({}, context), attributes)
|
|
243
|
+
};
|
|
244
|
+
};
|
|
245
|
+
export var uiAuthEvent = function uiAuthEvent(_ref9) {
|
|
246
|
+
var definitionId = _ref9.definitionId,
|
|
247
|
+
extensionKey = _ref9.extensionKey,
|
|
248
|
+
destinationProduct = _ref9.destinationProduct,
|
|
249
|
+
destinationSubproduct = _ref9.destinationSubproduct,
|
|
250
|
+
location = _ref9.location,
|
|
251
|
+
display = _ref9.display;
|
|
238
252
|
return {
|
|
239
253
|
action: 'clicked',
|
|
240
254
|
actionSubject: 'button',
|
|
@@ -250,13 +264,13 @@ export var uiAuthEvent = function uiAuthEvent(_ref8) {
|
|
|
250
264
|
})
|
|
251
265
|
};
|
|
252
266
|
};
|
|
253
|
-
export var uiAuthAlternateAccountEvent = function uiAuthAlternateAccountEvent(
|
|
254
|
-
var definitionId =
|
|
255
|
-
extensionKey =
|
|
256
|
-
destinationProduct =
|
|
257
|
-
destinationSubproduct =
|
|
258
|
-
location =
|
|
259
|
-
display =
|
|
267
|
+
export var uiAuthAlternateAccountEvent = function uiAuthAlternateAccountEvent(_ref10) {
|
|
268
|
+
var definitionId = _ref10.definitionId,
|
|
269
|
+
extensionKey = _ref10.extensionKey,
|
|
270
|
+
destinationProduct = _ref10.destinationProduct,
|
|
271
|
+
destinationSubproduct = _ref10.destinationSubproduct,
|
|
272
|
+
location = _ref10.location,
|
|
273
|
+
display = _ref10.display;
|
|
260
274
|
return {
|
|
261
275
|
action: 'clicked',
|
|
262
276
|
actionSubject: 'smartLink',
|
|
@@ -272,17 +286,17 @@ export var uiAuthAlternateAccountEvent = function uiAuthAlternateAccountEvent(_r
|
|
|
272
286
|
})
|
|
273
287
|
};
|
|
274
288
|
};
|
|
275
|
-
export var uiCardClickedEvent = function uiCardClickedEvent(
|
|
276
|
-
var id =
|
|
277
|
-
display =
|
|
278
|
-
status =
|
|
279
|
-
definitionId =
|
|
280
|
-
extensionKey =
|
|
281
|
-
isModifierKeyPressed =
|
|
282
|
-
location =
|
|
283
|
-
destinationProduct =
|
|
284
|
-
destinationSubproduct =
|
|
285
|
-
actionSubjectId =
|
|
289
|
+
export var uiCardClickedEvent = function uiCardClickedEvent(_ref11) {
|
|
290
|
+
var id = _ref11.id,
|
|
291
|
+
display = _ref11.display,
|
|
292
|
+
status = _ref11.status,
|
|
293
|
+
definitionId = _ref11.definitionId,
|
|
294
|
+
extensionKey = _ref11.extensionKey,
|
|
295
|
+
isModifierKeyPressed = _ref11.isModifierKeyPressed,
|
|
296
|
+
location = _ref11.location,
|
|
297
|
+
destinationProduct = _ref11.destinationProduct,
|
|
298
|
+
destinationSubproduct = _ref11.destinationSubproduct,
|
|
299
|
+
actionSubjectId = _ref11.actionSubjectId;
|
|
286
300
|
return {
|
|
287
301
|
action: 'clicked',
|
|
288
302
|
actionSubject: 'smartLink',
|
|
@@ -301,15 +315,15 @@ export var uiCardClickedEvent = function uiCardClickedEvent(_ref10) {
|
|
|
301
315
|
})
|
|
302
316
|
};
|
|
303
317
|
};
|
|
304
|
-
export var uiActionClickedEvent = function uiActionClickedEvent(
|
|
305
|
-
var id =
|
|
306
|
-
actionType =
|
|
307
|
-
extensionKey =
|
|
308
|
-
display =
|
|
309
|
-
definitionId =
|
|
310
|
-
destinationProduct =
|
|
311
|
-
destinationSubproduct =
|
|
312
|
-
location =
|
|
318
|
+
export var uiActionClickedEvent = function uiActionClickedEvent(_ref12) {
|
|
319
|
+
var id = _ref12.id,
|
|
320
|
+
actionType = _ref12.actionType,
|
|
321
|
+
extensionKey = _ref12.extensionKey,
|
|
322
|
+
display = _ref12.display,
|
|
323
|
+
definitionId = _ref12.definitionId,
|
|
324
|
+
destinationProduct = _ref12.destinationProduct,
|
|
325
|
+
destinationSubproduct = _ref12.destinationSubproduct,
|
|
326
|
+
location = _ref12.location;
|
|
313
327
|
return {
|
|
314
328
|
action: 'clicked',
|
|
315
329
|
actionSubject: 'button',
|
|
@@ -327,13 +341,13 @@ export var uiActionClickedEvent = function uiActionClickedEvent(_ref11) {
|
|
|
327
341
|
})
|
|
328
342
|
};
|
|
329
343
|
};
|
|
330
|
-
export var uiClosedAuthEvent = function uiClosedAuthEvent(
|
|
331
|
-
var display =
|
|
332
|
-
extensionKey =
|
|
333
|
-
definitionId =
|
|
334
|
-
destinationProduct =
|
|
335
|
-
destinationSubproduct =
|
|
336
|
-
location =
|
|
344
|
+
export var uiClosedAuthEvent = function uiClosedAuthEvent(_ref13) {
|
|
345
|
+
var display = _ref13.display,
|
|
346
|
+
extensionKey = _ref13.extensionKey,
|
|
347
|
+
definitionId = _ref13.definitionId,
|
|
348
|
+
destinationProduct = _ref13.destinationProduct,
|
|
349
|
+
destinationSubproduct = _ref13.destinationSubproduct,
|
|
350
|
+
location = _ref13.location;
|
|
337
351
|
return {
|
|
338
352
|
action: 'closed',
|
|
339
353
|
actionSubject: 'consentModal',
|
|
@@ -348,12 +362,12 @@ export var uiClosedAuthEvent = function uiClosedAuthEvent(_ref12) {
|
|
|
348
362
|
})
|
|
349
363
|
};
|
|
350
364
|
};
|
|
351
|
-
export var screenAuthPopupEvent = function screenAuthPopupEvent(
|
|
352
|
-
var extensionKey =
|
|
353
|
-
definitionId =
|
|
354
|
-
destinationProduct =
|
|
355
|
-
destinationSubproduct =
|
|
356
|
-
location =
|
|
365
|
+
export var screenAuthPopupEvent = function screenAuthPopupEvent(_ref14) {
|
|
366
|
+
var extensionKey = _ref14.extensionKey,
|
|
367
|
+
definitionId = _ref14.definitionId,
|
|
368
|
+
destinationProduct = _ref14.destinationProduct,
|
|
369
|
+
destinationSubproduct = _ref14.destinationSubproduct,
|
|
370
|
+
location = _ref14.location;
|
|
357
371
|
return {
|
|
358
372
|
actionSubject: 'consentModal',
|
|
359
373
|
eventType: 'screen',
|
|
@@ -366,14 +380,14 @@ export var screenAuthPopupEvent = function screenAuthPopupEvent(_ref13) {
|
|
|
366
380
|
})
|
|
367
381
|
};
|
|
368
382
|
};
|
|
369
|
-
export var uiRenderSuccessEvent = function uiRenderSuccessEvent(
|
|
370
|
-
var display =
|
|
371
|
-
status =
|
|
372
|
-
extensionKey =
|
|
373
|
-
definitionId =
|
|
374
|
-
destinationProduct =
|
|
375
|
-
destinationSubproduct =
|
|
376
|
-
location =
|
|
383
|
+
export var uiRenderSuccessEvent = function uiRenderSuccessEvent(_ref15) {
|
|
384
|
+
var display = _ref15.display,
|
|
385
|
+
status = _ref15.status,
|
|
386
|
+
extensionKey = _ref15.extensionKey,
|
|
387
|
+
definitionId = _ref15.definitionId,
|
|
388
|
+
destinationProduct = _ref15.destinationProduct,
|
|
389
|
+
destinationSubproduct = _ref15.destinationSubproduct,
|
|
390
|
+
location = _ref15.location;
|
|
377
391
|
return {
|
|
378
392
|
action: 'renderSuccess',
|
|
379
393
|
actionSubject: 'smartLink',
|
|
@@ -389,15 +403,15 @@ export var uiRenderSuccessEvent = function uiRenderSuccessEvent(_ref14) {
|
|
|
389
403
|
})
|
|
390
404
|
};
|
|
391
405
|
};
|
|
392
|
-
export var uiRenderFailedEvent = function uiRenderFailedEvent(
|
|
393
|
-
var display =
|
|
394
|
-
error =
|
|
395
|
-
errorInfo =
|
|
396
|
-
extensionKey =
|
|
397
|
-
definitionId =
|
|
398
|
-
destinationProduct =
|
|
399
|
-
destinationSubproduct =
|
|
400
|
-
location =
|
|
406
|
+
export var uiRenderFailedEvent = function uiRenderFailedEvent(_ref16) {
|
|
407
|
+
var display = _ref16.display,
|
|
408
|
+
error = _ref16.error,
|
|
409
|
+
errorInfo = _ref16.errorInfo,
|
|
410
|
+
extensionKey = _ref16.extensionKey,
|
|
411
|
+
definitionId = _ref16.definitionId,
|
|
412
|
+
destinationProduct = _ref16.destinationProduct,
|
|
413
|
+
destinationSubproduct = _ref16.destinationSubproduct,
|
|
414
|
+
location = _ref16.location;
|
|
401
415
|
return {
|
|
402
416
|
actionSubject: 'smartLink',
|
|
403
417
|
action: 'renderFailed',
|
|
@@ -414,16 +428,16 @@ export var uiRenderFailedEvent = function uiRenderFailedEvent(_ref15) {
|
|
|
414
428
|
})
|
|
415
429
|
};
|
|
416
430
|
};
|
|
417
|
-
export var uiHoverCardViewedEvent = function uiHoverCardViewedEvent(
|
|
418
|
-
var id =
|
|
419
|
-
previewDisplay =
|
|
420
|
-
extensionKey =
|
|
421
|
-
definitionId =
|
|
422
|
-
destinationProduct =
|
|
423
|
-
destinationSubproduct =
|
|
424
|
-
location =
|
|
425
|
-
previewInvokeMethod =
|
|
426
|
-
status =
|
|
431
|
+
export var uiHoverCardViewedEvent = function uiHoverCardViewedEvent(_ref17) {
|
|
432
|
+
var id = _ref17.id,
|
|
433
|
+
previewDisplay = _ref17.previewDisplay,
|
|
434
|
+
extensionKey = _ref17.extensionKey,
|
|
435
|
+
definitionId = _ref17.definitionId,
|
|
436
|
+
destinationProduct = _ref17.destinationProduct,
|
|
437
|
+
destinationSubproduct = _ref17.destinationSubproduct,
|
|
438
|
+
location = _ref17.location,
|
|
439
|
+
previewInvokeMethod = _ref17.previewInvokeMethod,
|
|
440
|
+
status = _ref17.status;
|
|
427
441
|
return {
|
|
428
442
|
action: 'viewed',
|
|
429
443
|
actionSubject: 'hoverCard',
|
|
@@ -441,17 +455,17 @@ export var uiHoverCardViewedEvent = function uiHoverCardViewedEvent(_ref16) {
|
|
|
441
455
|
})
|
|
442
456
|
};
|
|
443
457
|
};
|
|
444
|
-
export var uiHoverCardDismissedEvent = function uiHoverCardDismissedEvent(
|
|
445
|
-
var id =
|
|
446
|
-
previewDisplay =
|
|
447
|
-
hoverTime =
|
|
448
|
-
extensionKey =
|
|
449
|
-
definitionId =
|
|
450
|
-
destinationProduct =
|
|
451
|
-
destinationSubproduct =
|
|
452
|
-
location =
|
|
453
|
-
previewInvokeMethod =
|
|
454
|
-
status =
|
|
458
|
+
export var uiHoverCardDismissedEvent = function uiHoverCardDismissedEvent(_ref18) {
|
|
459
|
+
var id = _ref18.id,
|
|
460
|
+
previewDisplay = _ref18.previewDisplay,
|
|
461
|
+
hoverTime = _ref18.hoverTime,
|
|
462
|
+
extensionKey = _ref18.extensionKey,
|
|
463
|
+
definitionId = _ref18.definitionId,
|
|
464
|
+
destinationProduct = _ref18.destinationProduct,
|
|
465
|
+
destinationSubproduct = _ref18.destinationSubproduct,
|
|
466
|
+
location = _ref18.location,
|
|
467
|
+
previewInvokeMethod = _ref18.previewInvokeMethod,
|
|
468
|
+
status = _ref18.status;
|
|
455
469
|
return {
|
|
456
470
|
action: 'dismissed',
|
|
457
471
|
actionSubject: 'hoverCard',
|
|
@@ -470,15 +484,15 @@ export var uiHoverCardDismissedEvent = function uiHoverCardDismissedEvent(_ref17
|
|
|
470
484
|
})
|
|
471
485
|
};
|
|
472
486
|
};
|
|
473
|
-
export var uiHoverCardOpenLinkClickedEvent = function uiHoverCardOpenLinkClickedEvent(
|
|
474
|
-
var id =
|
|
475
|
-
previewDisplay =
|
|
476
|
-
extensionKey =
|
|
477
|
-
definitionId =
|
|
478
|
-
destinationProduct =
|
|
479
|
-
destinationSubproduct =
|
|
480
|
-
location =
|
|
481
|
-
previewInvokeMethod =
|
|
487
|
+
export var uiHoverCardOpenLinkClickedEvent = function uiHoverCardOpenLinkClickedEvent(_ref19) {
|
|
488
|
+
var id = _ref19.id,
|
|
489
|
+
previewDisplay = _ref19.previewDisplay,
|
|
490
|
+
extensionKey = _ref19.extensionKey,
|
|
491
|
+
definitionId = _ref19.definitionId,
|
|
492
|
+
destinationProduct = _ref19.destinationProduct,
|
|
493
|
+
destinationSubproduct = _ref19.destinationSubproduct,
|
|
494
|
+
location = _ref19.location,
|
|
495
|
+
previewInvokeMethod = _ref19.previewInvokeMethod;
|
|
482
496
|
return {
|
|
483
497
|
action: 'clicked',
|
|
484
498
|
actionSubject: 'button',
|
|
@@ -505,15 +519,15 @@ export var uiLearnMoreLinkClickedEvent = function uiLearnMoreLinkClickedEvent()
|
|
|
505
519
|
attributes: _objectSpread({}, context)
|
|
506
520
|
};
|
|
507
521
|
};
|
|
508
|
-
export var chunkloadFailedEvent = function chunkloadFailedEvent(
|
|
509
|
-
var display =
|
|
510
|
-
error =
|
|
511
|
-
errorInfo =
|
|
512
|
-
extensionKey =
|
|
513
|
-
definitionId =
|
|
514
|
-
destinationProduct =
|
|
515
|
-
destinationSubproduct =
|
|
516
|
-
location =
|
|
522
|
+
export var chunkloadFailedEvent = function chunkloadFailedEvent(_ref20) {
|
|
523
|
+
var display = _ref20.display,
|
|
524
|
+
error = _ref20.error,
|
|
525
|
+
errorInfo = _ref20.errorInfo,
|
|
526
|
+
extensionKey = _ref20.extensionKey,
|
|
527
|
+
definitionId = _ref20.definitionId,
|
|
528
|
+
destinationProduct = _ref20.destinationProduct,
|
|
529
|
+
destinationSubproduct = _ref20.destinationSubproduct,
|
|
530
|
+
location = _ref20.location;
|
|
517
531
|
return {
|
|
518
532
|
action: 'chunkLoadFailed',
|
|
519
533
|
actionSubject: 'smartLink',
|
package/dist/esm/version.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AnalyticsHandler, AnalyticsName, AnalyticsPayload } from '../../utils/types';
|
|
2
|
-
import { ConnectFailedEventProps, ConnectSucceededEventProps, InstrumentEventProps, InvokeFailedEventProps, InvokeSucceededEventProps, ScreenAuthPopupEventProps, TrackAppAccountConnectedProps, UiActionClickedEventProps, UiAuthAlternateAccountEventProps, UiAuthEventProps, UiCardClickedEventProps, UiClosedAuthEventProps, UiHoverCardDismissedEventProps, UiHoverCardOpenLinkClickedEventProps, UiHoverCardViewedEventProps, UiRenderFailedEventProps, UiRenderSuccessEventProps } from '../../utils/analytics/types';
|
|
2
|
+
import { CommonEventProps, ConnectFailedEventProps, ConnectSucceededEventProps, InstrumentEventProps, InvokeFailedEventProps, InvokeSucceededEventProps, ScreenAuthPopupEventProps, TrackAppAccountConnectedProps, UiActionClickedEventProps, UiAuthAlternateAccountEventProps, UiAuthEventProps, UiCardClickedEventProps, UiClosedAuthEventProps, UiHoverCardDismissedEventProps, UiHoverCardOpenLinkClickedEventProps, UiHoverCardViewedEventProps, UiRenderFailedEventProps, UiRenderSuccessEventProps } from '../../utils/analytics/types';
|
|
3
3
|
/**
|
|
4
4
|
* This hook provides usage of Smart Link analytics outside of the Card component.
|
|
5
5
|
* Can be provided to Card via the analyticsEvents prop to change the analytics events.
|
|
@@ -195,6 +195,12 @@ export declare const useSmartLinkAnalytics: (url: string, dispatchAnalytics: Ana
|
|
|
195
195
|
* @returns
|
|
196
196
|
*/
|
|
197
197
|
appAccountAuthStarted: ({ extensionKey, location, }: TrackAppAccountConnectedProps) => void;
|
|
198
|
+
/**
|
|
199
|
+
* This fires a tracking event before and after link updated.
|
|
200
|
+
*/
|
|
201
|
+
linkUpdated: (props: CommonEventProps & {
|
|
202
|
+
[key: string]: any;
|
|
203
|
+
}) => void;
|
|
198
204
|
};
|
|
199
205
|
screen: {
|
|
200
206
|
/**
|
|
@@ -41,6 +41,9 @@ export declare const FlexibleUiAnalyticsContext: import("react").Context<{
|
|
|
41
41
|
track: {
|
|
42
42
|
appAccountConnected: ({ extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").CommonEventProps) => void;
|
|
43
43
|
appAccountAuthStarted: ({ extensionKey, location, }: import("../../utils/analytics/types").CommonEventProps) => void;
|
|
44
|
+
linkUpdated: (props: import("../../utils/analytics/types").CommonEventProps & {
|
|
45
|
+
[key: string]: any;
|
|
46
|
+
}) => void;
|
|
44
47
|
};
|
|
45
48
|
screen: {
|
|
46
49
|
authPopupEvent: ({ extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").CommonEventProps) => void;
|
|
@@ -80,6 +83,9 @@ export declare const useFlexibleUiAnalyticsContext: () => {
|
|
|
80
83
|
track: {
|
|
81
84
|
appAccountConnected: ({ extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").CommonEventProps) => void;
|
|
82
85
|
appAccountAuthStarted: ({ extensionKey, location, }: import("../../utils/analytics/types").CommonEventProps) => void;
|
|
86
|
+
linkUpdated: (props: import("../../utils/analytics/types").CommonEventProps & {
|
|
87
|
+
[key: string]: any;
|
|
88
|
+
}) => void;
|
|
83
89
|
};
|
|
84
90
|
screen: {
|
|
85
91
|
authPopupEvent: ({ extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").CommonEventProps) => void;
|
|
@@ -40,6 +40,9 @@ export declare function useSmartLink(id: string, url: string, dispatchAnalytics:
|
|
|
40
40
|
track: {
|
|
41
41
|
appAccountConnected: ({ extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").CommonEventProps) => void;
|
|
42
42
|
appAccountAuthStarted: ({ extensionKey, location, }: import("../../utils/analytics/types").CommonEventProps) => void;
|
|
43
|
+
linkUpdated: (props: import("../../utils/analytics/types").CommonEventProps & {
|
|
44
|
+
[key: string]: any;
|
|
45
|
+
}) => void;
|
|
43
46
|
};
|
|
44
47
|
screen: {
|
|
45
48
|
authPopupEvent: ({ extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").CommonEventProps) => void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
2
2
|
import { AnalyticsPayload } from '../types';
|
|
3
3
|
import { CardInnerAppearance } from '../../view/Card/types';
|
|
4
|
-
import { ConnectFailedEventProps, ConnectSucceededEventProps, InvokeFailedEventProps, InvokeSucceededEventProps, ResolvedEventProps, ScreenAuthPopupEventProps, TrackAppAccountConnectedProps, UiActionClickedEventProps, UiAuthAlternateAccountEventProps, UiAuthEventProps, UiCardClickedEventProps, UiClosedAuthEventProps, UiHoverCardDismissedEventProps, UiHoverCardOpenLinkClickedEventProps, UiHoverCardViewedEventProps, UiRenderFailedEventProps, UiRenderSuccessEventProps, UnresolvedEventProps } from './types';
|
|
4
|
+
import { CommonEventProps, ConnectFailedEventProps, ConnectSucceededEventProps, InvokeFailedEventProps, InvokeSucceededEventProps, ResolvedEventProps, ScreenAuthPopupEventProps, TrackAppAccountConnectedProps, UiActionClickedEventProps, UiAuthAlternateAccountEventProps, UiAuthEventProps, UiCardClickedEventProps, UiClosedAuthEventProps, UiHoverCardDismissedEventProps, UiHoverCardOpenLinkClickedEventProps, UiHoverCardViewedEventProps, UiRenderFailedEventProps, UiRenderSuccessEventProps, UnresolvedEventProps } from './types';
|
|
5
5
|
export declare const ANALYTICS_CHANNEL = "media";
|
|
6
6
|
export declare const context: {
|
|
7
7
|
componentName: string;
|
|
@@ -20,6 +20,9 @@ export declare const connectSucceededEvent: ({ definitionId, extensionKey, desti
|
|
|
20
20
|
export declare const connectFailedEvent: ({ definitionId, extensionKey, destinationProduct, destinationSubproduct, location, reason, }: ConnectFailedEventProps) => AnalyticsPayload;
|
|
21
21
|
export declare const trackAppAccountConnected: ({ definitionId, extensionKey, destinationProduct, destinationSubproduct, location, }: TrackAppAccountConnectedProps) => AnalyticsPayload;
|
|
22
22
|
export declare const trackAppAccountAuthStarted: ({ extensionKey, location, }: TrackAppAccountConnectedProps) => AnalyticsPayload;
|
|
23
|
+
export declare const trackLinkUpdated: ({ actionSubjectId, ...attributes }: CommonEventProps & {
|
|
24
|
+
[key: string]: any;
|
|
25
|
+
}) => AnalyticsPayload;
|
|
23
26
|
export declare const uiAuthEvent: ({ definitionId, extensionKey, destinationProduct, destinationSubproduct, location, display, }: UiAuthEventProps) => AnalyticsPayload;
|
|
24
27
|
export declare const uiAuthAlternateAccountEvent: ({ definitionId, extensionKey, destinationProduct, destinationSubproduct, location, display, }: UiAuthAlternateAccountEventProps) => AnalyticsPayload;
|
|
25
28
|
export declare const uiCardClickedEvent: ({ id, display, status, definitionId, extensionKey, isModifierKeyPressed, location, destinationProduct, destinationSubproduct, actionSubjectId, }: UiCardClickedEventProps) => AnalyticsPayload;
|
|
@@ -70,6 +70,9 @@ export declare const mockAnalytics: {
|
|
|
70
70
|
track: {
|
|
71
71
|
appAccountConnected: ({ extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("./analytics/types").CommonEventProps) => void;
|
|
72
72
|
appAccountAuthStarted: ({ extensionKey, location, }: import("./analytics/types").CommonEventProps) => void;
|
|
73
|
+
linkUpdated: (props: import("./analytics/types").CommonEventProps & {
|
|
74
|
+
[key: string]: any;
|
|
75
|
+
}) => void;
|
|
73
76
|
};
|
|
74
77
|
screen: {
|
|
75
78
|
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' | 'chunkLoadFailed';
|
|
4
|
-
export declare type AnalyticsActionSubject = 'smartLink' | 'smartLinkAction' | 'applicationAccount' | 'button' | 'consentModal' | 'hoverCard' | 'modal' | 'embedPreviewModal';
|
|
3
|
+
export declare type AnalyticsAction = 'authStarted' | 'clicked' | 'closed' | 'connected' | 'connectFailed' | 'connectSucceeded' | 'created' | 'dismissed' | 'inserted' | 'renderFailed' | 'renderSuccess' | 'renderWithStatus' | 'resolved' | 'viewed' | 'unresolved' | 'updated' | 'chunkLoadFailed';
|
|
4
|
+
export declare type AnalyticsActionSubject = 'smartLink' | 'smartLinkAction' | 'applicationAccount' | 'button' | 'consentModal' | 'hoverCard' | 'modal' | 'embedPreviewModal' | 'link';
|
|
5
5
|
export declare type AnalyticsName = 'embedPreviewModal';
|
|
6
6
|
export declare type AnalyticsOrigin = 'smartLinkCard' | 'smartLinkEmbed' | 'smartLinkInline' | 'smartLinkPreviewHoverCard';
|
|
7
7
|
export declare type AnalyticsPayload = GasPayload & {
|
|
@@ -13,34 +13,82 @@ export interface WrapperProps {
|
|
|
13
13
|
export declare const borderRadius: string;
|
|
14
14
|
export declare const ellipsis: (maxWidth?: string | number) => string;
|
|
15
15
|
export declare const csssize: (value?: string | number) => string;
|
|
16
|
-
export declare const LinkWrapper: import("@emotion/styled
|
|
17
|
-
|
|
16
|
+
export declare const LinkWrapper: import("@emotion/styled").StyledComponent<{
|
|
17
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
18
|
+
as?: import("react").ElementType<any> | undefined;
|
|
19
|
+
} & WrapperProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
20
|
+
export declare const Wrapper: import("@emotion/styled").StyledComponent<{
|
|
21
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
22
|
+
as?: import("react").ElementType<any> | undefined;
|
|
23
|
+
} & WrapperProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
18
24
|
export declare const embedHeaderHeight = 32;
|
|
19
|
-
export declare const Header: import("@emotion/styled
|
|
25
|
+
export declare const Header: import("@emotion/styled").StyledComponent<{
|
|
26
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
27
|
+
as?: import("react").ElementType<any> | undefined;
|
|
28
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
20
29
|
export interface PlaceholderProps {
|
|
21
30
|
isPlaceholder: boolean;
|
|
22
31
|
}
|
|
23
|
-
export declare const IconWrapper: import("@emotion/styled
|
|
24
|
-
|
|
32
|
+
export declare const IconWrapper: import("@emotion/styled").StyledComponent<{
|
|
33
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
34
|
+
as?: import("react").ElementType<any> | undefined;
|
|
35
|
+
} & PlaceholderProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
36
|
+
export declare const TextWrapper: import("@emotion/styled").StyledComponent<{
|
|
37
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
38
|
+
as?: import("react").ElementType<any> | undefined;
|
|
39
|
+
} & PlaceholderProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
25
40
|
export interface ContentProps {
|
|
26
41
|
isInteractive: boolean;
|
|
27
42
|
allowScrollBar: boolean;
|
|
28
43
|
}
|
|
29
|
-
export declare const Content: import("@emotion/styled
|
|
44
|
+
export declare const Content: import("@emotion/styled").StyledComponent<{
|
|
45
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
46
|
+
as?: import("react").ElementType<any> | undefined;
|
|
47
|
+
} & ContentProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
30
48
|
export interface ImageProps {
|
|
31
49
|
size: number;
|
|
32
50
|
}
|
|
33
|
-
export declare const Image: import("@emotion/styled
|
|
51
|
+
export declare const Image: import("@emotion/styled").StyledComponent<{
|
|
52
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
53
|
+
as?: import("react").ElementType<any> | undefined;
|
|
54
|
+
} & ImageProps, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
34
55
|
export declare const maxAvatarCount = 6;
|
|
35
|
-
export declare const ContentWrapper: import("@emotion/styled
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
export declare const
|
|
56
|
+
export declare const ContentWrapper: import("@emotion/styled").StyledComponent<{
|
|
57
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
58
|
+
as?: import("react").ElementType<any> | undefined;
|
|
59
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
60
|
+
export declare const Title: import("@emotion/styled").StyledComponent<{
|
|
61
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
62
|
+
as?: import("react").ElementType<any> | undefined;
|
|
63
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
64
|
+
export declare const Byline: import("@emotion/styled").StyledComponent<{
|
|
65
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
66
|
+
as?: import("react").ElementType<any> | undefined;
|
|
67
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
68
|
+
export declare const Description: import("@emotion/styled").StyledComponent<{
|
|
69
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
70
|
+
as?: import("react").ElementType<any> | undefined;
|
|
71
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
72
|
+
export declare const ResolvedViewIconWrapper: import("@emotion/styled").StyledComponent<{
|
|
73
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
74
|
+
as?: import("react").ElementType<any> | undefined;
|
|
75
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
40
76
|
export interface ThumbnailProps {
|
|
41
77
|
src: string;
|
|
42
78
|
}
|
|
43
|
-
export declare const Thumbnail: import("@emotion/styled
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
79
|
+
export declare const Thumbnail: import("@emotion/styled").StyledComponent<{
|
|
80
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
81
|
+
as?: import("react").ElementType<any> | undefined;
|
|
82
|
+
} & ThumbnailProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
83
|
+
export declare const UsersWrapper: import("@emotion/styled").StyledComponent<{
|
|
84
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
85
|
+
as?: import("react").ElementType<any> | undefined;
|
|
86
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
87
|
+
export declare const ActionsWrapper: import("@emotion/styled").StyledComponent<{
|
|
88
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
89
|
+
as?: import("react").ElementType<any> | undefined;
|
|
90
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
91
|
+
export declare const AlertWrapper: import("@emotion/styled").StyledComponent<{
|
|
92
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
93
|
+
as?: import("react").ElementType<any> | undefined;
|
|
94
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -5,5 +5,11 @@ export interface WrapperProps {
|
|
|
5
5
|
isInteractive?: boolean;
|
|
6
6
|
withoutBackground?: boolean;
|
|
7
7
|
}
|
|
8
|
-
export declare const WrapperAnchor: import("@emotion/styled
|
|
9
|
-
|
|
8
|
+
export declare const WrapperAnchor: import("@emotion/styled").StyledComponent<{
|
|
9
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
10
|
+
as?: import("react").ElementType<any> | undefined;
|
|
11
|
+
} & WrapperProps, import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, {}>;
|
|
12
|
+
export declare const WrapperSpan: import("@emotion/styled").StyledComponent<{
|
|
13
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
14
|
+
as?: import("react").ElementType<any> | undefined;
|
|
15
|
+
} & WrapperProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const Icon: import("@emotion/styled
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
export declare const Icon: import("@emotion/styled").StyledComponent<{
|
|
3
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
+
as?: import("react").ElementType<any> | undefined;
|
|
5
|
+
}, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
6
|
+
export declare const AKIconWrapper: import("@emotion/styled").StyledComponent<{
|
|
7
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
8
|
+
as?: import("react").ElementType<any> | undefined;
|
|
9
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
10
|
+
export declare const Shimmer: import("@emotion/styled").StyledComponent<{
|
|
11
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
12
|
+
as?: import("react").ElementType<any> | undefined;
|
|
13
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|