@atlaskit/smart-card 40.7.2 → 40.8.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 +21 -0
- package/analytics.spec.yaml +129 -112
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/CardWithUrl/component-lazy/LazyIntersectionObserverCard.js +24 -8
- package/dist/cjs/view/CardWithUrl/component.js +23 -0
- package/dist/cjs/view/FlexibleCard/components/elements/common/base-avatar-group-element/index.compiled.css +1 -3
- package/dist/cjs/view/FlexibleCard/components/elements/common/base-avatar-group-element/index.js +1 -10
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/CardWithUrl/component-lazy/LazyIntersectionObserverCard.js +24 -8
- package/dist/es2019/view/CardWithUrl/component.js +23 -0
- package/dist/es2019/view/FlexibleCard/components/elements/common/base-avatar-group-element/index.compiled.css +1 -3
- package/dist/es2019/view/FlexibleCard/components/elements/common/base-avatar-group-element/index.js +2 -10
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/CardWithUrl/component-lazy/LazyIntersectionObserverCard.js +25 -9
- package/dist/esm/view/CardWithUrl/component.js +23 -0
- package/dist/esm/view/FlexibleCard/components/elements/common/base-avatar-group-element/index.compiled.css +1 -3
- package/dist/esm/view/FlexibleCard/components/elements/common/base-avatar-group-element/index.js +2 -11
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/types/common/analytics/generated/analytics.types.d.ts +8 -1
- package/dist/types/view/CardWithUrl/component-lazy/LazyIntersectionObserverCard.d.ts +5 -0
- package/dist/types/view/FlexibleCard/components/elements/common/base-avatar-group-element/index.d.ts +1 -1
- package/dist/types-ts4.5/common/analytics/generated/analytics.types.d.ts +8 -1
- package/dist/types-ts4.5/view/CardWithUrl/component-lazy/LazyIntersectionObserverCard.d.ts +5 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/common/base-avatar-group-element/index.d.ts +1 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 40.8.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#198611](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/198611)
|
|
8
|
+
[`a608f23cb3d4e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a608f23cb3d4e) -
|
|
9
|
+
[https://product-fabric.atlassian.net/browse/ED-28628](ED-28628) - add SSR support for smart cards
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 40.7.3
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- [`e6f659fcbc13b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e6f659fcbc13b) -
|
|
20
|
+
Add smartlinks click analytics managed by 3P Workflows Team
|
|
21
|
+
- [`ec543e641c64f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ec543e641c64f) -
|
|
22
|
+
[ux] NAVX-1064 cleaning up platform-linking-fix-smart-card-avatar-overrides
|
|
23
|
+
|
|
3
24
|
## 40.7.2
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
package/analytics.spec.yaml
CHANGED
|
@@ -62,7 +62,7 @@ context:
|
|
|
62
62
|
values
|
|
63
63
|
required: false
|
|
64
64
|
displayCategory:
|
|
65
|
-
type: [
|
|
65
|
+
type: ['smartLink', 'link']
|
|
66
66
|
description: |
|
|
67
67
|
The overarching category of what the link is shown as.
|
|
68
68
|
`smartLink` : we are able to resolve the link and is displayed as a smart link
|
|
@@ -151,69 +151,69 @@ attributes:
|
|
|
151
151
|
]
|
|
152
152
|
description: The type of action being invoked
|
|
153
153
|
ClientActionAttributes: &ClientActionAttributes
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
154
|
+
actionType:
|
|
155
|
+
required: false
|
|
156
|
+
type: string
|
|
157
|
+
description: The type of action being invoked.
|
|
158
|
+
id:
|
|
159
|
+
required: false
|
|
160
|
+
type: string
|
|
161
|
+
description: The unique ID for this Smart Link.
|
|
162
|
+
definitionId:
|
|
163
|
+
type: string
|
|
164
|
+
required: false
|
|
165
|
+
description: The definitionId of the Smart Link resolver invoked.
|
|
166
|
+
display:
|
|
167
|
+
required: false
|
|
168
|
+
type: ['inline', 'block', 'embed', 'embedPreview', 'flexible', 'hoverCardPreview']
|
|
169
|
+
description: Whether the card was an Inline, Block, Embed or Flexible UI.
|
|
170
|
+
resourceType:
|
|
171
|
+
required: false
|
|
172
|
+
type: string
|
|
173
|
+
description: Type of resource the link is pointing to
|
|
174
174
|
events:
|
|
175
175
|
- button clicked (copyLink):
|
|
176
176
|
type: ui
|
|
177
177
|
description: Fired when an copy link is clicked
|
|
178
178
|
attributes:
|
|
179
|
-
|
|
179
|
+
<<: [*PackageMetaDataContext, *ResolvedContext, *ClientActionAttributes]
|
|
180
180
|
- button clicked (downloadDocument):
|
|
181
181
|
type: ui
|
|
182
182
|
description: Fired when an download is clicked
|
|
183
183
|
attributes:
|
|
184
|
-
|
|
184
|
+
<<: [*PackageMetaDataContext, *ResolvedContext, *ClientActionAttributes]
|
|
185
185
|
- button clicked (invokePreviewScreen):
|
|
186
186
|
type: ui
|
|
187
187
|
description: Fired when an preview is clicked
|
|
188
188
|
attributes:
|
|
189
|
-
|
|
189
|
+
<<: [*PackageMetaDataContext, *ResolvedContext, *ClientActionAttributes]
|
|
190
190
|
- button clicked (shortcutGoToLink):
|
|
191
191
|
type: ui
|
|
192
192
|
description: Fired when an view link is clicked
|
|
193
193
|
attributes:
|
|
194
|
-
|
|
194
|
+
<<: [*PackageMetaDataContext, *ResolvedContext, *ClientActionAttributes]
|
|
195
195
|
- button clicked (issueStatusUpdate):
|
|
196
196
|
type: ui
|
|
197
197
|
description: fires an event that represents a user clicking on the preview action button
|
|
198
198
|
attributes:
|
|
199
|
-
<<: [
|
|
199
|
+
<<: [*PackageMetaDataContext, *CommonContext, *ClientActionAttributes]
|
|
200
200
|
- button clicked (aiSummary):
|
|
201
201
|
type: ui
|
|
202
202
|
description: fired when an ai summary is clicked
|
|
203
203
|
attributes:
|
|
204
|
-
<<: [
|
|
204
|
+
<<: [*PackageMetaDataContext, *ResolvedContext]
|
|
205
205
|
|
|
206
206
|
- button clicked (copySummary):
|
|
207
207
|
type: ui
|
|
208
208
|
description: fired when the copy ai summary button is clicked
|
|
209
209
|
attributes:
|
|
210
|
-
<<: [
|
|
210
|
+
<<: [*PackageMetaDataContext, *ResolvedContext]
|
|
211
211
|
|
|
212
212
|
- summary viewed:
|
|
213
213
|
type: ui
|
|
214
214
|
description: fired when a summary is viewed
|
|
215
215
|
attributes:
|
|
216
|
-
<<: [
|
|
216
|
+
<<: [*PackageMetaDataContext, *ResolvedContext]
|
|
217
217
|
fromCache:
|
|
218
218
|
required: false
|
|
219
219
|
type: boolean
|
|
@@ -223,19 +223,19 @@ events:
|
|
|
223
223
|
type: ui
|
|
224
224
|
description: fired when a summary error is viewed
|
|
225
225
|
attributes:
|
|
226
|
-
<<: [
|
|
226
|
+
<<: [*PackageMetaDataContext, *ResolvedContext]
|
|
227
227
|
|
|
228
228
|
- summary success:
|
|
229
229
|
type: operational
|
|
230
230
|
description: fired when a summary request finishes with a successful response
|
|
231
231
|
attributes:
|
|
232
|
-
<<: [
|
|
232
|
+
<<: [*PackageMetaDataContext, *ResolvedContext]
|
|
233
233
|
|
|
234
234
|
- summary failed:
|
|
235
235
|
type: operational
|
|
236
236
|
description: fired when a summary request finishes with a failed response
|
|
237
237
|
attributes:
|
|
238
|
-
<<: [
|
|
238
|
+
<<: [*PackageMetaDataContext, *ResolvedContext]
|
|
239
239
|
reason:
|
|
240
240
|
required: false
|
|
241
241
|
type: string
|
|
@@ -249,31 +249,31 @@ events:
|
|
|
249
249
|
type: track
|
|
250
250
|
description: fired when an explicit request is made to use an AI-powered feature
|
|
251
251
|
attributes:
|
|
252
|
-
<<: [
|
|
252
|
+
<<: [*PackageMetaDataContext, *AiInteractionAttributes]
|
|
253
253
|
|
|
254
254
|
- button clicked (automationAction):
|
|
255
255
|
type: ui
|
|
256
256
|
description: fired when the automation action button is clicked
|
|
257
257
|
attributes:
|
|
258
|
-
<<: [
|
|
258
|
+
<<: [*PackageMetaDataContext, *ResolvedContext]
|
|
259
259
|
|
|
260
260
|
- button clicked (relatedLinks):
|
|
261
261
|
type: ui
|
|
262
262
|
description: fired when the related links action button is clicked
|
|
263
263
|
attributes:
|
|
264
|
-
<<: [
|
|
264
|
+
<<: [*PackageMetaDataContext, *ResolvedContext]
|
|
265
265
|
|
|
266
266
|
- modal opened (relatedLinks):
|
|
267
267
|
type: ui
|
|
268
268
|
description: fired when related links modal is opened
|
|
269
269
|
attributes:
|
|
270
|
-
<<: [
|
|
270
|
+
<<: [*PackageMetaDataContext, *ResolvedContext]
|
|
271
271
|
|
|
272
272
|
- modal closed (relatedLinks):
|
|
273
273
|
type: ui
|
|
274
274
|
description: fired when related links modal is closed
|
|
275
275
|
attributes:
|
|
276
|
-
<<: [
|
|
276
|
+
<<: [*PackageMetaDataContext, *ResolvedContext]
|
|
277
277
|
dwellTime:
|
|
278
278
|
required: true
|
|
279
279
|
type: number
|
|
@@ -283,7 +283,7 @@ events:
|
|
|
283
283
|
type: operational
|
|
284
284
|
description: fired when related links are retrieved successfully
|
|
285
285
|
attributes:
|
|
286
|
-
<<: [
|
|
286
|
+
<<: [*PackageMetaDataContext, *ResolvedContext]
|
|
287
287
|
incomingCount:
|
|
288
288
|
type: number
|
|
289
289
|
required: true
|
|
@@ -297,7 +297,7 @@ events:
|
|
|
297
297
|
type: operational
|
|
298
298
|
description: fired when related links retrieval fails
|
|
299
299
|
attributes:
|
|
300
|
-
<<: [
|
|
300
|
+
<<: [*PackageMetaDataContext, *ResolvedContext]
|
|
301
301
|
reason:
|
|
302
302
|
required: true
|
|
303
303
|
type: string
|
|
@@ -306,14 +306,14 @@ events:
|
|
|
306
306
|
type: ui
|
|
307
307
|
description: fired when a user dwells their cursor on a Smart Link's iframe
|
|
308
308
|
attributes:
|
|
309
|
-
<<: [
|
|
309
|
+
<<: [*PackageMetaDataContext, *ResolvedContext]
|
|
310
310
|
id:
|
|
311
311
|
required: true
|
|
312
312
|
type: string
|
|
313
313
|
description: The unique ID for this Smart Link
|
|
314
314
|
display:
|
|
315
315
|
required: true
|
|
316
|
-
type: [
|
|
316
|
+
type: ['inline', 'block', 'embed', 'embedPreview', 'flexible', 'hoverCardPreview']
|
|
317
317
|
description: Whether the card was an Inline, Block, Embed or Flexible UI
|
|
318
318
|
definitionId:
|
|
319
319
|
required: false
|
|
@@ -337,7 +337,7 @@ events:
|
|
|
337
337
|
description: The unique ID for this Smart Link.
|
|
338
338
|
display:
|
|
339
339
|
required: true
|
|
340
|
-
type: [
|
|
340
|
+
type: ['inline', 'block', 'embed', 'embedPreview', 'flexible', 'hoverCardPreview']
|
|
341
341
|
description: Whether the card was an Inline, Block, Embed or Flexible UI.
|
|
342
342
|
definitionId:
|
|
343
343
|
required: false
|
|
@@ -347,36 +347,36 @@ events:
|
|
|
347
347
|
type: track
|
|
348
348
|
description: user connecting their account to view a Smart Link.
|
|
349
349
|
attributes:
|
|
350
|
-
<<: [
|
|
350
|
+
<<: [*PackageMetaDataContext, *CommonAttributes, *CommonContext]
|
|
351
351
|
- applicationAccount authStarted:
|
|
352
352
|
type: track
|
|
353
353
|
description: user starting the Smart Link connect account process.
|
|
354
354
|
attributes:
|
|
355
|
-
<<: [
|
|
355
|
+
<<: [*PackageMetaDataContext, *CommonContext]
|
|
356
356
|
- smartLinkQuickAction started:
|
|
357
357
|
type: track
|
|
358
358
|
description: fires event before an action invoke api call is made
|
|
359
359
|
attributes:
|
|
360
|
-
<<: [
|
|
360
|
+
<<: [*PackageMetaDataContext, *CommonContext, *smartLinkActionTypeAttribute]
|
|
361
361
|
- smartLinkQuickAction success:
|
|
362
362
|
type: track
|
|
363
363
|
description: fires a tracking event after an action invoke api call is successful
|
|
364
364
|
attributes:
|
|
365
|
-
<<: [
|
|
365
|
+
<<: [*PackageMetaDataContext, *CommonContext, *smartLinkActionTypeAttribute]
|
|
366
366
|
- smartLinkQuickAction failed:
|
|
367
367
|
type: track
|
|
368
368
|
description: fires a tracking event after an action invoke api call has failed
|
|
369
369
|
attributes:
|
|
370
|
-
<<: [
|
|
370
|
+
<<: [*PackageMetaDataContext, *CommonContext, *smartLinkActionTypeAttribute]
|
|
371
371
|
reason:
|
|
372
372
|
required: false
|
|
373
373
|
description: The reason for the failure
|
|
374
|
-
type: [
|
|
374
|
+
type: ['PermissionError', 'ValidationError', 'UnknownError']
|
|
375
375
|
- consentModal viewed:
|
|
376
376
|
type: screen
|
|
377
377
|
description: fires an event which represents the connect account page being opened.
|
|
378
378
|
attributes:
|
|
379
|
-
<<: [
|
|
379
|
+
<<: [*PackageMetaDataContext, *CommonContext]
|
|
380
380
|
definitionId:
|
|
381
381
|
required: false
|
|
382
382
|
type: string
|
|
@@ -385,21 +385,21 @@ events:
|
|
|
385
385
|
type: screen
|
|
386
386
|
description: Fires an event that represents when a user view a modal.
|
|
387
387
|
attributes:
|
|
388
|
-
<<: [
|
|
388
|
+
<<: [*PackageMetaDataContext, *CommonContext]
|
|
389
389
|
origin:
|
|
390
390
|
required: false
|
|
391
|
-
type: [
|
|
391
|
+
type: ['smartLinkCard', 'smartLinkEmbed', 'smartLinkInline', 'smartLinkPreviewHoverCard']
|
|
392
392
|
description: The origin of the event
|
|
393
393
|
size:
|
|
394
394
|
required: false
|
|
395
|
-
type: [
|
|
395
|
+
type: ['large', 'small']
|
|
396
396
|
description: The size of the modal
|
|
397
397
|
- smartLink connectSucceeded:
|
|
398
398
|
type: operational
|
|
399
399
|
description:
|
|
400
400
|
fires an event that represents an account successfully being connected via a Smart Link.
|
|
401
401
|
attributes:
|
|
402
|
-
<<: [
|
|
402
|
+
<<: [*PackageMetaDataContext, *CommonContext]
|
|
403
403
|
definitionId:
|
|
404
404
|
required: false
|
|
405
405
|
type: string
|
|
@@ -408,7 +408,7 @@ events:
|
|
|
408
408
|
type: operational
|
|
409
409
|
description: fires an event that represents an account unsuccessfully being connected.
|
|
410
410
|
attributes:
|
|
411
|
-
<<: [
|
|
411
|
+
<<: [*PackageMetaDataContext, *CommonContext]
|
|
412
412
|
reason:
|
|
413
413
|
required: false
|
|
414
414
|
description: The reason why the Smart Link connect account failed.
|
|
@@ -421,7 +421,7 @@ events:
|
|
|
421
421
|
type: operational
|
|
422
422
|
description: fires an event which represents a Smart Link request succeeding.
|
|
423
423
|
attributes:
|
|
424
|
-
<<: [
|
|
424
|
+
<<: [*PackageMetaDataContext, *CommonContext]
|
|
425
425
|
status:
|
|
426
426
|
type:
|
|
427
427
|
[
|
|
@@ -447,7 +447,7 @@ events:
|
|
|
447
447
|
type: operational
|
|
448
448
|
description: fires an event which represents a Smart Link request failing.
|
|
449
449
|
attributes:
|
|
450
|
-
<<: [
|
|
450
|
+
<<: [*PackageMetaDataContext, *CommonContext]
|
|
451
451
|
status:
|
|
452
452
|
type:
|
|
453
453
|
[
|
|
@@ -477,10 +477,10 @@ events:
|
|
|
477
477
|
type: operational
|
|
478
478
|
description: fires an event that represents when a Smart Link renders unsuccessfully.
|
|
479
479
|
attributes:
|
|
480
|
-
<<: [
|
|
480
|
+
<<: [*PackageMetaDataContext, *CommonContext]
|
|
481
481
|
display:
|
|
482
482
|
required: true
|
|
483
|
-
type: [
|
|
483
|
+
type: ['inline', 'block', 'embed', 'embedPreview', 'flexible', 'hoverCardPreview']
|
|
484
484
|
description: Whether the card was an Inline, Block, Embed or Flexible UI.
|
|
485
485
|
definitionId:
|
|
486
486
|
required: false
|
|
@@ -495,39 +495,39 @@ events:
|
|
|
495
495
|
description: Additional details about the error including the stack trace.
|
|
496
496
|
type: object
|
|
497
497
|
- smartLinkAction resolved:
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
498
|
+
type: operational
|
|
499
|
+
description: Fires an event when a Smart Link action is successfully resolved.
|
|
500
|
+
attributes:
|
|
501
|
+
<<: [*PackageMetaDataContext, *ResolvedContext, *ClientActionAttributes]
|
|
502
|
+
duration:
|
|
503
|
+
required: false
|
|
504
|
+
type: number
|
|
505
|
+
description: Total time the action take to complete its invocation
|
|
506
506
|
- smartLinkAction unresolved:
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
507
|
+
type: operational
|
|
508
|
+
description: Fires an event when a Smart Link action is failed to resolved.
|
|
509
|
+
attributes:
|
|
510
|
+
<<: [*PackageMetaDataContext, *ResolvedContext, *ClientActionAttributes]
|
|
511
|
+
duration:
|
|
512
|
+
required: false
|
|
513
|
+
type: number
|
|
514
|
+
description: Total time the action take to complete its invocation
|
|
515
|
+
reason:
|
|
516
|
+
required: false
|
|
517
|
+
type: string
|
|
518
|
+
description: Failure reason
|
|
519
519
|
- smartLink clicked:
|
|
520
520
|
type: ui
|
|
521
521
|
description: fires an event that represents when a user clicks on a Smart Link.
|
|
522
522
|
attributes:
|
|
523
|
-
<<: [
|
|
523
|
+
<<: [*PackageMetaDataContext, *CommonContext, *ResolvedContext]
|
|
524
524
|
id:
|
|
525
525
|
required: true
|
|
526
526
|
type: string
|
|
527
527
|
description: The unique ID for this Smart Link.
|
|
528
528
|
display:
|
|
529
529
|
required: true
|
|
530
|
-
type: [
|
|
530
|
+
type: ['inline', 'block', 'embed', 'embedPreview', 'flexible', 'hoverCardPreview']
|
|
531
531
|
description: Whether the card was an Inline, Block, Embed or Flexible UI
|
|
532
532
|
definitionId:
|
|
533
533
|
required: false
|
|
@@ -541,14 +541,14 @@ events:
|
|
|
541
541
|
type: ui
|
|
542
542
|
description: fires an event that represents when a user clicks on a Smart Link.
|
|
543
543
|
attributes:
|
|
544
|
-
<<: [
|
|
544
|
+
<<: [*PackageMetaDataContext, *CommonContext, *ResolvedContext]
|
|
545
545
|
id:
|
|
546
546
|
required: true
|
|
547
547
|
type: string
|
|
548
548
|
description: The unique ID for this Smart Link.
|
|
549
549
|
display:
|
|
550
550
|
required: true
|
|
551
|
-
type: [
|
|
551
|
+
type: ['inline', 'block', 'embed', 'embedPreview', 'flexible', 'hoverCardPreview']
|
|
552
552
|
description: Whether the card was an Inline, Block, Embed or Flexible UI
|
|
553
553
|
definitionId:
|
|
554
554
|
required: false
|
|
@@ -562,13 +562,13 @@ events:
|
|
|
562
562
|
type: ui
|
|
563
563
|
description: fires an event that represents a hover preview being opened.
|
|
564
564
|
attributes:
|
|
565
|
-
<<: [
|
|
565
|
+
<<: [*PackageMetaDataContext, *CommonContext, *ResolvedContext]
|
|
566
566
|
previewDisplay:
|
|
567
|
-
type: [
|
|
567
|
+
type: ['card', 'embed']
|
|
568
568
|
required: true
|
|
569
569
|
description: What format the preview is in.
|
|
570
570
|
previewInvokeMethod:
|
|
571
|
-
type: [
|
|
571
|
+
type: ['keyboard', 'mouse_hover', 'mouse_click']
|
|
572
572
|
required: false
|
|
573
573
|
description: How the preview was triggered.
|
|
574
574
|
definitionId:
|
|
@@ -579,9 +579,9 @@ events:
|
|
|
579
579
|
type: ui
|
|
580
580
|
description: fires an event that represents a hover preview being dismissed.
|
|
581
581
|
attributes:
|
|
582
|
-
<<: [
|
|
582
|
+
<<: [*PackageMetaDataContext, *CommonContext, *ResolvedContext]
|
|
583
583
|
previewDisplay:
|
|
584
|
-
type: [
|
|
584
|
+
type: ['card', 'embed']
|
|
585
585
|
required: true
|
|
586
586
|
description: What format the preview is in.
|
|
587
587
|
hoverTime:
|
|
@@ -590,7 +590,7 @@ events:
|
|
|
590
590
|
description:
|
|
591
591
|
The duration that the user hovered over a Smart Link before the preview was dismissed.
|
|
592
592
|
previewInvokeMethod:
|
|
593
|
-
type: [
|
|
593
|
+
type: ['keyboard', 'mouse_hover', 'mouse_click']
|
|
594
594
|
required: false
|
|
595
595
|
description: How the preview was triggered.
|
|
596
596
|
definitionId:
|
|
@@ -603,10 +603,10 @@ events:
|
|
|
603
603
|
fires an event that represents when a user clicks on the authentication call to action with
|
|
604
604
|
no current authenticated account. (i.e. Connect to Preview).
|
|
605
605
|
attributes:
|
|
606
|
-
<<: [
|
|
606
|
+
<<: [*PackageMetaDataContext, *CommonContext]
|
|
607
607
|
display:
|
|
608
608
|
required: true
|
|
609
|
-
type: [
|
|
609
|
+
type: ['inline', 'block', 'embed', 'embedPreview', 'flexible', 'hoverCardPreview']
|
|
610
610
|
description: Whether the card was an Inline, Block, Embed or Flexible UI.
|
|
611
611
|
definitionId:
|
|
612
612
|
required: false
|
|
@@ -618,10 +618,10 @@ events:
|
|
|
618
618
|
fires an event that represents when a user clicks on the authentication call to action with
|
|
619
619
|
a forbidden authenticated account. (i.e. Try another account).
|
|
620
620
|
attributes:
|
|
621
|
-
<<: [
|
|
621
|
+
<<: [*PackageMetaDataContext, *CommonContext]
|
|
622
622
|
display:
|
|
623
623
|
required: true
|
|
624
|
-
type: [
|
|
624
|
+
type: ['inline', 'block', 'embed', 'embedPreview', 'flexible', 'hoverCardPreview']
|
|
625
625
|
description: Whether the card was an Inline, Block, Embed or Flexible UI.
|
|
626
626
|
definitionId:
|
|
627
627
|
required: false
|
|
@@ -633,10 +633,10 @@ events:
|
|
|
633
633
|
fires an event that represents when a user closed the authentication window without
|
|
634
634
|
authenticating after opening it.
|
|
635
635
|
attributes:
|
|
636
|
-
<<: [
|
|
636
|
+
<<: [*PackageMetaDataContext, *CommonContext]
|
|
637
637
|
display:
|
|
638
638
|
required: true
|
|
639
|
-
type: [
|
|
639
|
+
type: ['inline', 'block', 'embed', 'embedPreview', 'flexible', 'hoverCardPreview']
|
|
640
640
|
description: Whether the card was an Inline, Block, Embed or Flexible UI.
|
|
641
641
|
definitionId:
|
|
642
642
|
required: false
|
|
@@ -646,10 +646,10 @@ events:
|
|
|
646
646
|
type: ui
|
|
647
647
|
description: Fires an event that represents when a user close a modal.
|
|
648
648
|
attributes:
|
|
649
|
-
<<: [
|
|
649
|
+
<<: [*PackageMetaDataContext, *CommonContext]
|
|
650
650
|
origin:
|
|
651
651
|
required: false
|
|
652
|
-
type: [
|
|
652
|
+
type: ['smartLinkCard', 'smartLinkEmbed', 'smartLinkInline', 'smartLinkPreviewHoverCard']
|
|
653
653
|
description: The origin of the event
|
|
654
654
|
previewTime:
|
|
655
655
|
required: false
|
|
@@ -657,7 +657,7 @@ events:
|
|
|
657
657
|
description: Duration that user spent on the preview.
|
|
658
658
|
size:
|
|
659
659
|
required: false
|
|
660
|
-
type: [
|
|
660
|
+
type: ['large', 'small']
|
|
661
661
|
description: The size of the modal
|
|
662
662
|
- button clicked (learnMore):
|
|
663
663
|
type: ui
|
|
@@ -665,54 +665,54 @@ events:
|
|
|
665
665
|
fires an event that signifies that a "Learn More" link was clicked on an unauthenticated
|
|
666
666
|
card
|
|
667
667
|
attributes:
|
|
668
|
-
<<: [
|
|
668
|
+
<<: [*PackageMetaDataContext, *CommonContext]
|
|
669
669
|
- button clicked (smartLinkStatusLozenge):
|
|
670
670
|
type: ui
|
|
671
671
|
description: fires an event that represent a click was performed on a Status Lozenge
|
|
672
672
|
attributes:
|
|
673
|
-
<<: [
|
|
673
|
+
<<: [*PackageMetaDataContext, *CommonContext]
|
|
674
674
|
- button clicked (smartLinkStatusListItem):
|
|
675
675
|
type: ui
|
|
676
676
|
description:
|
|
677
677
|
fires an event that represent a click was performed on a Status Lozenge's dropdown item
|
|
678
678
|
attributes:
|
|
679
|
-
<<: [
|
|
679
|
+
<<: [*PackageMetaDataContext, *CommonContext]
|
|
680
680
|
- button clicked (smartLinkStatusOpenPreview):
|
|
681
681
|
type: ui
|
|
682
682
|
description:
|
|
683
683
|
fires an event that represent a click was performed on a Status Lozenge open preview button
|
|
684
684
|
attributes:
|
|
685
|
-
<<: [
|
|
685
|
+
<<: [*PackageMetaDataContext, *CommonContext]
|
|
686
686
|
- button clicked (smartLinkFollowButton):
|
|
687
687
|
type: ui
|
|
688
688
|
description: fires an event that represents a click was performed on the follow button.
|
|
689
689
|
attributes:
|
|
690
|
-
<<: [
|
|
690
|
+
<<: [*PackageMetaDataContext, *CommonContext]
|
|
691
691
|
- button clicked (StatusUpdateAction):
|
|
692
692
|
type: ui
|
|
693
693
|
attributes:
|
|
694
|
-
<<: [
|
|
694
|
+
<<: [*PackageMetaDataContext, *CommonContext]
|
|
695
695
|
- button clicked (GetStatusTransitionsAction):
|
|
696
696
|
type: ui
|
|
697
697
|
attributes:
|
|
698
|
-
<<: [
|
|
698
|
+
<<: [*PackageMetaDataContext, *CommonContext]
|
|
699
699
|
- button clicked (embedPreviewResize):
|
|
700
700
|
type: ui
|
|
701
701
|
description:
|
|
702
702
|
fires an event that represents a user clicking on the resize button in the embed preview
|
|
703
703
|
attributes:
|
|
704
|
-
<<: [
|
|
704
|
+
<<: [*PackageMetaDataContext, *CommonContext]
|
|
705
705
|
newSize:
|
|
706
706
|
required: true
|
|
707
|
-
type: [
|
|
707
|
+
type: ['large', 'small']
|
|
708
708
|
description: The new size of the embed preview
|
|
709
709
|
origin:
|
|
710
710
|
required: false
|
|
711
|
-
type: [
|
|
711
|
+
type: ['smartLinkCard', 'smartLinkEmbed', 'smartLinkInline', 'smartLinkPreviewHoverCard']
|
|
712
712
|
description: The origin of the resize event
|
|
713
713
|
previousSize:
|
|
714
714
|
required: true
|
|
715
|
-
type: [
|
|
715
|
+
type: ['large', 'small']
|
|
716
716
|
description: The previous size of the embed preview
|
|
717
717
|
- smartLink renderSuccess:
|
|
718
718
|
type: ui
|
|
@@ -720,19 +720,19 @@ events:
|
|
|
720
720
|
fires an event that represents when a Smart Link was rendered successfully (even if the
|
|
721
721
|
Smart Link errors out)
|
|
722
722
|
attributes:
|
|
723
|
-
<<: [
|
|
723
|
+
<<: [*PackageMetaDataContext, *CommonContext]
|
|
724
724
|
display:
|
|
725
725
|
required: true
|
|
726
|
-
type: [
|
|
726
|
+
type: ['inline', 'block', 'embed', 'embedPreview', 'flexible', 'hoverCardPreview']
|
|
727
727
|
description: Whether the card was an Inline, Block, Embed or Flexible UI
|
|
728
728
|
- smartLink renderFailed:
|
|
729
729
|
type: ui
|
|
730
730
|
description: fires an event that represents when a Smart Link renders unsuccessfully.
|
|
731
731
|
attributes:
|
|
732
|
-
<<: [
|
|
732
|
+
<<: [*PackageMetaDataContext, *CommonContext]
|
|
733
733
|
display:
|
|
734
734
|
required: true
|
|
735
|
-
type: [
|
|
735
|
+
type: ['inline', 'block', 'embed', 'embedPreview', 'flexible', 'hoverCardPreview']
|
|
736
736
|
description: Whether the card was an Inline, Block, Embed or Flexible UI
|
|
737
737
|
error:
|
|
738
738
|
required: true
|
|
@@ -746,3 +746,20 @@ events:
|
|
|
746
746
|
required: false
|
|
747
747
|
type: string
|
|
748
748
|
description: The unique ID for this Smart Link
|
|
749
|
+
- smartLink clicked (smartlinkClickAnalyticsWorkflows):
|
|
750
|
+
type: ui
|
|
751
|
+
description:
|
|
752
|
+
fires an event that represents when a user clicks on a Smart Link to track analytics for the
|
|
753
|
+
3P Workflows team
|
|
754
|
+
attributes:
|
|
755
|
+
<<: [*PackageMetaDataContext, *CommonContext, *ResolvedContext]
|
|
756
|
+
sourceURL:
|
|
757
|
+
required: true
|
|
758
|
+
type: string
|
|
759
|
+
description:
|
|
760
|
+
The first party URL for this Smart Link - this is NOT the URL the user clicked on, but
|
|
761
|
+
the URL of the page where the Smart Link is rendered
|
|
762
|
+
thirdPartyARI:
|
|
763
|
+
required: true
|
|
764
|
+
type: string
|
|
765
|
+
description: The third-party ARI for this Smart Link
|
|
@@ -11,7 +11,7 @@ var ANALYTICS_CHANNEL = exports.ANALYTICS_CHANNEL = 'media';
|
|
|
11
11
|
var context = exports.context = {
|
|
12
12
|
componentName: 'smart-cards',
|
|
13
13
|
packageName: "@atlaskit/smart-card",
|
|
14
|
-
packageVersion: "40.7.
|
|
14
|
+
packageVersion: "40.7.3"
|
|
15
15
|
};
|
|
16
16
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
17
17
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|