@atlaskit/smart-card 44.3.24 → 44.5.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.
Files changed (119) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/analytics.spec.yaml +5 -0
  3. package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/vrblock-card-resolved-rovo-actions--default.png +3 -0
  4. package/dist/cjs/__tests__/vr-tests/__snapshots__/hover-card/hover-card-with-generic-3p-rovo-chat-action--default.png +2 -2
  5. package/dist/cjs/__tests__/vr-tests/__snapshots__/hover-card/hover-card-with-google-rovo-chat-action--default--rovogrowth-640-inline-action-nudge-exp-true.png +2 -2
  6. package/dist/cjs/common/analytics/generated/create-event-payload.js +7 -7
  7. package/dist/cjs/common/analytics/generated/use-analytics-events.js +1 -1
  8. package/dist/cjs/messages.js +59 -49
  9. package/dist/cjs/preloadLazyCardWithUrlContent.js +15 -0
  10. package/dist/cjs/utils/analytics/analytics.js +1 -1
  11. package/dist/cjs/view/BlockCard/views/ResolvedView.js +17 -11
  12. package/dist/cjs/view/FlexibleCard/components/actions/action/action-button/index.compiled.css +4 -0
  13. package/dist/cjs/view/FlexibleCard/components/actions/action/action-button/index.js +10 -1
  14. package/dist/cjs/view/FlexibleCard/components/actions/action/action-stack-item/action-button.compiled.css +0 -2
  15. package/dist/cjs/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +1 -1
  16. package/dist/cjs/view/FlexibleCard/components/actions/action/action-stack-item/index.js +10 -1
  17. package/dist/cjs/view/FlexibleCard/components/actions/ai-summary-action/ai-summarise-action.js +1 -1
  18. package/dist/cjs/view/FlexibleCard/components/actions/automation-action/index.js +1 -1
  19. package/dist/cjs/view/FlexibleCard/components/actions/copy-link-action/index.js +1 -1
  20. package/dist/cjs/view/FlexibleCard/components/actions/preview-action/index.js +2 -2
  21. package/dist/cjs/view/FlexibleCard/components/actions/rovo-chat-action/index.js +41 -26
  22. package/dist/cjs/view/FlexibleCard/components/blocks/action-block/ask-rovo-section-header.compiled.css +1 -1
  23. package/dist/cjs/view/FlexibleCard/components/blocks/action-block/ask-rovo-section-header.js +1 -1
  24. package/dist/cjs/view/FlexibleCard/components/blocks/action-block/index.compiled.css +4 -3
  25. package/dist/cjs/view/FlexibleCard/components/blocks/action-block/index.js +1 -1
  26. package/dist/cjs/view/FlexibleCard/components/blocks/action-group/index.js +29 -11
  27. package/dist/cjs/view/FlexibleCard/components/blocks/footer-block/resolved/index.compiled.css +3 -1
  28. package/dist/cjs/view/FlexibleCard/components/blocks/footer-block/resolved/index.js +25 -7
  29. package/dist/cjs/view/FlexibleCard/components/blocks/hover-card-footer-block/index.compiled.css +1 -0
  30. package/dist/cjs/view/FlexibleCard/components/blocks/hover-card-footer-block/index.js +4 -1
  31. package/dist/cjs/view/FlexibleCard/components/common/image-icon/index.js +1 -1
  32. package/dist/cjs/view/FlexibleCard/components/elements/common/base-badge-element/index.js +6 -2
  33. package/dist/cjs/view/LinkUrl/index.js +1 -1
  34. package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/vrblock-card-resolved-rovo-actions--default.png +3 -0
  35. package/dist/es2019/__tests__/vr-tests/__snapshots__/hover-card/hover-card-with-generic-3p-rovo-chat-action--default.png +2 -2
  36. package/dist/es2019/__tests__/vr-tests/__snapshots__/hover-card/hover-card-with-google-rovo-chat-action--default--rovogrowth-640-inline-action-nudge-exp-true.png +2 -2
  37. package/dist/es2019/common/analytics/generated/create-event-payload.js +6 -6
  38. package/dist/es2019/common/analytics/generated/use-analytics-events.js +2 -2
  39. package/dist/es2019/messages.js +59 -49
  40. package/dist/es2019/preloadLazyCardWithUrlContent.js +2 -0
  41. package/dist/es2019/utils/analytics/analytics.js +1 -1
  42. package/dist/es2019/view/BlockCard/views/ResolvedView.js +29 -21
  43. package/dist/es2019/view/FlexibleCard/components/actions/action/action-button/index.compiled.css +4 -0
  44. package/dist/es2019/view/FlexibleCard/components/actions/action/action-button/index.js +12 -3
  45. package/dist/es2019/view/FlexibleCard/components/actions/action/action-stack-item/action-button.compiled.css +0 -2
  46. package/dist/es2019/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +1 -1
  47. package/dist/es2019/view/FlexibleCard/components/actions/action/action-stack-item/index.js +21 -10
  48. package/dist/es2019/view/FlexibleCard/components/actions/ai-summary-action/ai-summarise-action.js +1 -1
  49. package/dist/es2019/view/FlexibleCard/components/actions/automation-action/index.js +1 -1
  50. package/dist/es2019/view/FlexibleCard/components/actions/copy-link-action/index.js +1 -1
  51. package/dist/es2019/view/FlexibleCard/components/actions/preview-action/index.js +2 -2
  52. package/dist/es2019/view/FlexibleCard/components/actions/rovo-chat-action/index.js +41 -28
  53. package/dist/es2019/view/FlexibleCard/components/blocks/action-block/ask-rovo-section-header.compiled.css +1 -1
  54. package/dist/es2019/view/FlexibleCard/components/blocks/action-block/ask-rovo-section-header.js +1 -1
  55. package/dist/es2019/view/FlexibleCard/components/blocks/action-block/index.compiled.css +4 -3
  56. package/dist/es2019/view/FlexibleCard/components/blocks/action-block/index.js +1 -1
  57. package/dist/es2019/view/FlexibleCard/components/blocks/action-group/index.js +29 -12
  58. package/dist/es2019/view/FlexibleCard/components/blocks/footer-block/resolved/index.compiled.css +3 -1
  59. package/dist/es2019/view/FlexibleCard/components/blocks/footer-block/resolved/index.js +22 -8
  60. package/dist/es2019/view/FlexibleCard/components/blocks/hover-card-footer-block/index.compiled.css +1 -0
  61. package/dist/es2019/view/FlexibleCard/components/blocks/hover-card-footer-block/index.js +4 -1
  62. package/dist/es2019/view/FlexibleCard/components/common/image-icon/index.js +1 -1
  63. package/dist/es2019/view/FlexibleCard/components/elements/common/base-badge-element/index.js +5 -2
  64. package/dist/es2019/view/LinkUrl/index.js +1 -1
  65. package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/vrblock-card-resolved-rovo-actions--default.png +3 -0
  66. package/dist/esm/__tests__/vr-tests/__snapshots__/hover-card/hover-card-with-generic-3p-rovo-chat-action--default.png +2 -2
  67. package/dist/esm/__tests__/vr-tests/__snapshots__/hover-card/hover-card-with-google-rovo-chat-action--default--rovogrowth-640-inline-action-nudge-exp-true.png +2 -2
  68. package/dist/esm/common/analytics/generated/create-event-payload.js +7 -7
  69. package/dist/esm/common/analytics/generated/use-analytics-events.js +1 -1
  70. package/dist/esm/messages.js +59 -49
  71. package/dist/esm/preloadLazyCardWithUrlContent.js +4 -0
  72. package/dist/esm/utils/analytics/analytics.js +1 -1
  73. package/dist/esm/view/BlockCard/views/ResolvedView.js +18 -12
  74. package/dist/esm/view/FlexibleCard/components/actions/action/action-button/index.compiled.css +4 -0
  75. package/dist/esm/view/FlexibleCard/components/actions/action/action-button/index.js +12 -3
  76. package/dist/esm/view/FlexibleCard/components/actions/action/action-stack-item/action-button.compiled.css +0 -2
  77. package/dist/esm/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +1 -1
  78. package/dist/esm/view/FlexibleCard/components/actions/action/action-stack-item/index.js +10 -1
  79. package/dist/esm/view/FlexibleCard/components/actions/ai-summary-action/ai-summarise-action.js +1 -1
  80. package/dist/esm/view/FlexibleCard/components/actions/automation-action/index.js +1 -1
  81. package/dist/esm/view/FlexibleCard/components/actions/copy-link-action/index.js +1 -1
  82. package/dist/esm/view/FlexibleCard/components/actions/preview-action/index.js +2 -2
  83. package/dist/esm/view/FlexibleCard/components/actions/rovo-chat-action/index.js +42 -27
  84. package/dist/esm/view/FlexibleCard/components/blocks/action-block/ask-rovo-section-header.compiled.css +1 -1
  85. package/dist/esm/view/FlexibleCard/components/blocks/action-block/ask-rovo-section-header.js +1 -1
  86. package/dist/esm/view/FlexibleCard/components/blocks/action-block/index.compiled.css +4 -3
  87. package/dist/esm/view/FlexibleCard/components/blocks/action-block/index.js +1 -1
  88. package/dist/esm/view/FlexibleCard/components/blocks/action-group/index.js +30 -12
  89. package/dist/esm/view/FlexibleCard/components/blocks/footer-block/resolved/index.compiled.css +3 -1
  90. package/dist/esm/view/FlexibleCard/components/blocks/footer-block/resolved/index.js +26 -8
  91. package/dist/esm/view/FlexibleCard/components/blocks/hover-card-footer-block/index.compiled.css +1 -0
  92. package/dist/esm/view/FlexibleCard/components/blocks/hover-card-footer-block/index.js +4 -1
  93. package/dist/esm/view/FlexibleCard/components/common/image-icon/index.js +1 -1
  94. package/dist/esm/view/FlexibleCard/components/elements/common/base-badge-element/index.js +6 -2
  95. package/dist/esm/view/LinkUrl/index.js +1 -1
  96. package/dist/types/common/analytics/generated/analytics.types.d.ts +116 -114
  97. package/dist/types/common/analytics/generated/create-event-payload.d.ts +1 -1
  98. package/dist/types/common/analytics/generated/use-analytics-events.d.ts +4 -1
  99. package/dist/types/messages.d.ts +1 -1
  100. package/dist/types/preloadLazyCardWithUrlContent.d.ts +1 -0
  101. package/dist/types/view/FlexibleCard/components/actions/action/types.d.ts +6 -1
  102. package/dist/types/view/FlexibleCard/components/blocks/action-group/index.d.ts +1 -1
  103. package/dist/types/view/FlexibleCard/components/blocks/action-group/types.d.ts +4 -0
  104. package/dist/types/view/FlexibleCard/components/blocks/footer-block/types.d.ts +4 -0
  105. package/dist/types/view/FlexibleCard/components/blocks/types.d.ts +7 -2
  106. package/dist/types/view/FlexibleCard/components/elements/common/base-badge-element/index.d.ts +5 -0
  107. package/dist/types-ts4.5/common/analytics/generated/analytics.types.d.ts +116 -114
  108. package/dist/types-ts4.5/common/analytics/generated/create-event-payload.d.ts +1 -1
  109. package/dist/types-ts4.5/common/analytics/generated/use-analytics-events.d.ts +4 -5
  110. package/dist/types-ts4.5/messages.d.ts +1 -1
  111. package/dist/types-ts4.5/preloadLazyCardWithUrlContent.d.ts +1 -0
  112. package/dist/types-ts4.5/view/FlexibleCard/components/actions/action/types.d.ts +6 -1
  113. package/dist/types-ts4.5/view/FlexibleCard/components/blocks/action-group/index.d.ts +1 -1
  114. package/dist/types-ts4.5/view/FlexibleCard/components/blocks/action-group/types.d.ts +4 -0
  115. package/dist/types-ts4.5/view/FlexibleCard/components/blocks/footer-block/types.d.ts +4 -0
  116. package/dist/types-ts4.5/view/FlexibleCard/components/blocks/types.d.ts +7 -2
  117. package/dist/types-ts4.5/view/FlexibleCard/components/elements/common/base-badge-element/index.d.ts +5 -0
  118. package/package.json +5 -4
  119. package/preload-lazy-card-with-url-content/package.json +17 -0
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Generates Typescript types for analytics events from analytics.spec.yaml
5
5
  *
6
- * @codegen <<SignedSource::4d978bf4946aee0ad737d8305df7a6a0>>
6
+ * @codegen <<SignedSource::4e18b8952a94e4fc3afd62ef6213f7b1>>
7
7
  * @codegenCommand yarn workspace @atlassian/analytics-tooling run analytics:codegen smart-card
8
8
  */
9
9
  export type PackageMetaDataContextType = {
@@ -11,80 +11,80 @@ export type PackageMetaDataContextType = {
11
11
  packageVersion: string;
12
12
  };
13
13
  export type CommonContextType = {
14
- extensionKey: string | null;
15
- destinationObjectType: string | null;
16
- destinationSubproduct: string | null;
17
- destinationProduct: string | null;
18
- location: string | null;
19
- statusDetails: string | null;
14
+ extensionKey?: string | null;
15
+ destinationObjectType?: string | null;
16
+ destinationSubproduct?: string | null;
17
+ destinationProduct?: string | null;
18
+ location?: string | null;
19
+ statusDetails?: string | null;
20
20
  };
21
21
  export type ResolvedContextType = {
22
- status: 'pending' | 'resolving' | 'resolved' | 'errored' | 'fallback' | 'unauthorized' | 'forbidden' | 'not_found' | null;
23
- statusDetails: string | null;
22
+ status?: 'pending' | 'resolving' | 'resolved' | 'errored' | 'fallback' | 'unauthorized' | 'forbidden' | 'not_found' | null;
23
+ statusDetails?: string | null;
24
24
  displayCategory: 'smartLink' | 'link';
25
- extensionKey: string | null;
26
- destinationProduct: string | null;
27
- destinationSubproduct: string | null;
28
- destinationCategory: string | null;
29
- destinationObjectId: string | null;
30
- destinationObjectType: string | null;
31
- destinationContainerId: string | null;
32
- destinationTenantId: string | null;
33
- canBeDatasource: boolean | null;
34
- location: string | null;
25
+ extensionKey?: string | null;
26
+ destinationProduct?: string | null;
27
+ destinationSubproduct?: string | null;
28
+ destinationCategory?: string | null;
29
+ destinationObjectId?: string | null;
30
+ destinationObjectType?: string | null;
31
+ destinationContainerId?: string | null;
32
+ destinationTenantId?: string | null;
33
+ canBeDatasource?: boolean | null;
34
+ location?: string | null;
35
35
  };
36
36
  export type ButtonClickedCopyLinkAttributesType = {
37
- actionType: string | null;
38
- id: string | null;
39
- definitionId: string | null;
40
- display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview' | 'url' | null;
41
- resourceType: string | null;
37
+ actionType?: string | null;
38
+ id?: string | null;
39
+ definitionId?: string | null;
40
+ display?: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview' | 'url' | null;
41
+ resourceType?: string | null;
42
42
  };
43
43
  export type ButtonClickedDownloadDocumentAttributesType = {
44
- actionType: string | null;
45
- id: string | null;
46
- definitionId: string | null;
47
- display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview' | 'url' | null;
48
- resourceType: string | null;
44
+ actionType?: string | null;
45
+ id?: string | null;
46
+ definitionId?: string | null;
47
+ display?: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview' | 'url' | null;
48
+ resourceType?: string | null;
49
49
  };
50
50
  export type ButtonClickedInvokePreviewScreenAttributesType = {
51
- actionType: string | null;
52
- id: string | null;
53
- definitionId: string | null;
54
- display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview' | 'url' | null;
55
- resourceType: string | null;
51
+ actionType?: string | null;
52
+ id?: string | null;
53
+ definitionId?: string | null;
54
+ display?: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview' | 'url' | null;
55
+ resourceType?: string | null;
56
56
  };
57
57
  export type ButtonClickedShortcutGoToLinkAttributesType = {
58
- actionType: string | null;
59
- id: string | null;
60
- definitionId: string | null;
61
- display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview' | 'url' | null;
62
- resourceType: string | null;
58
+ actionType?: string | null;
59
+ id?: string | null;
60
+ definitionId?: string | null;
61
+ display?: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview' | 'url' | null;
62
+ resourceType?: string | null;
63
63
  };
64
64
  export type ButtonClickedIssueStatusUpdateAttributesType = {
65
- actionType: string | null;
66
- id: string | null;
67
- definitionId: string | null;
68
- display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview' | 'url' | null;
69
- resourceType: string | null;
65
+ actionType?: string | null;
66
+ id?: string | null;
67
+ definitionId?: string | null;
68
+ display?: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview' | 'url' | null;
69
+ resourceType?: string | null;
70
70
  };
71
71
  export type ButtonClickedAiSummaryAttributesType = {};
72
72
  export type ButtonClickedRovoChatPromptAttributesType = {
73
- actionType: string | null;
74
- id: string | null;
75
- definitionId: string | null;
76
- display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview' | 'url' | null;
77
- resourceType: string | null;
78
- prompt: string | null;
73
+ actionType?: string | null;
74
+ id?: string | null;
75
+ definitionId?: string | null;
76
+ display?: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview' | 'url' | null;
77
+ resourceType?: string | null;
78
+ prompt?: string | null;
79
79
  };
80
80
  export type ButtonClickedCopySummaryAttributesType = {};
81
81
  export type SummaryViewedAttributesType = {
82
- fromCache: boolean | null;
82
+ fromCache?: boolean | null;
83
83
  };
84
84
  export type ErrorViewedAiSummaryAttributesType = {};
85
85
  export type SummarySuccessAttributesType = {};
86
86
  export type SummaryFailedAttributesType = {
87
- reason: string | null;
87
+ reason?: string | null;
88
88
  isSloError: boolean;
89
89
  };
90
90
  export type AiInteractionInitiatedAttributesType = {
@@ -108,18 +108,18 @@ export type RelatedLinksFailedAttributesType = {
108
108
  export type SmartLinkIframeDwelledAttributesType = {
109
109
  id: string;
110
110
  display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview' | 'url';
111
- definitionId: string | null;
111
+ definitionId?: string | null;
112
112
  dwellTime: number;
113
113
  dwellPercentVisible: number;
114
114
  };
115
115
  export type SmartLinkIframeFocusedAttributesType = {
116
116
  id: string;
117
117
  display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview' | 'url';
118
- definitionId: string | null;
118
+ definitionId?: string | null;
119
119
  interactionType?: 'mouseenter' | 'mouseleave' | 'focus' | null;
120
120
  };
121
121
  export type ApplicationAccountConnectedAttributesType = {
122
- definitionId: string | null;
122
+ definitionId?: string | null;
123
123
  };
124
124
  export type ApplicationAccountAuthStartedAttributesType = {};
125
125
  export type SmartLinkQuickActionStartedAttributesType = {
@@ -130,83 +130,85 @@ export type SmartLinkQuickActionSuccessAttributesType = {
130
130
  };
131
131
  export type SmartLinkQuickActionFailedAttributesType = {
132
132
  smartLinkActionType: 'FollowEntityAction' | 'GetStatusTransitionsAction' | 'StatusUpdateAction' | 'UnfollowEntityAction' | 'StatusUpdate';
133
- reason: 'PermissionError' | 'ValidationError' | 'UnknownError' | null;
133
+ reason?: 'PermissionError' | 'ValidationError' | 'UnknownError' | null;
134
134
  };
135
135
  export type ConsentModalViewedAttributesType = {
136
- definitionId: string | null;
136
+ definitionId?: string | null;
137
137
  };
138
138
  export type EmbedPreviewModalViewedAttributesType = {
139
- origin: 'smartLinkCard' | 'smartLinkEmbed' | 'smartLinkInline' | 'smartLinkPreviewHoverCard' | null;
140
- size: 'large' | 'small' | null;
139
+ origin?: 'smartLinkCard' | 'smartLinkEmbed' | 'smartLinkInline' | 'smartLinkPreviewHoverCard' | null;
140
+ size?: 'large' | 'small' | null;
141
141
  };
142
142
  export type SmartLinkConnectSucceededAttributesType = {
143
- definitionId: string | null;
143
+ definitionId?: string | null;
144
144
  };
145
145
  export type SmartLinkConnectFailedAttributesType = {
146
- reason: string | null;
147
- definitionId: string | null;
146
+ reason?: string | null;
147
+ definitionId?: string | null;
148
148
  };
149
149
  export type SmartLinkResolvedAttributesType = {
150
- definitionId: string | null;
151
- duration: number | null;
150
+ status?: 'pending' | 'resolving' | 'resolved' | 'errored' | 'fallback' | 'unauthorized' | 'forbidden' | 'not_found' | null;
151
+ definitionId?: string | null;
152
+ duration?: number | null;
152
153
  };
153
154
  export type SmartLinkUnresolvedAttributesType = {
154
- definitionId: string | null;
155
- error: Record<string, unknown> | null;
155
+ status?: 'pending' | 'resolving' | 'resolved' | 'errored' | 'fallback' | 'unauthorized' | 'forbidden' | 'not_found' | null;
156
+ definitionId?: string | null;
157
+ error?: Record<string, unknown> | null;
156
158
  reason: string;
157
159
  };
158
160
  export type SmartLinkChunkLoadFailedAttributesType = {
159
161
  display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview' | 'url';
160
- definitionId: string | null;
162
+ definitionId?: string | null;
161
163
  error: Record<string, unknown>;
162
164
  errorInfo: Record<string, unknown>;
163
165
  };
164
166
  export type SmartLinkActionResolvedAttributesType = {
165
- actionType: string | null;
166
- id: string | null;
167
- definitionId: string | null;
168
- display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview' | 'url' | null;
169
- resourceType: string | null;
170
- duration: number | null;
167
+ actionType?: string | null;
168
+ id?: string | null;
169
+ definitionId?: string | null;
170
+ display?: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview' | 'url' | null;
171
+ resourceType?: string | null;
172
+ duration?: number | null;
171
173
  };
172
174
  export type SmartLinkActionUnresolvedAttributesType = {
173
- actionType: string | null;
174
- id: string | null;
175
- definitionId: string | null;
176
- display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview' | 'url' | null;
177
- resourceType: string | null;
178
- duration: number | null;
179
- reason: string | null;
175
+ actionType?: string | null;
176
+ id?: string | null;
177
+ definitionId?: string | null;
178
+ display?: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview' | 'url' | null;
179
+ resourceType?: string | null;
180
+ duration?: number | null;
181
+ reason?: string | null;
180
182
  };
181
183
  export type HyperlinkResolvedAttributesType = {
182
- definitionId: string | null;
183
- extensionKey: string | null;
184
- resourceType: string | null;
185
- duration: number | null;
184
+ extensionKey?: string | null;
185
+ definitionId?: string | null;
186
+ resourceType?: string | null;
187
+ duration?: number | null;
186
188
  };
187
189
  export type HyperlinkUnresolvedAttributesType = {
188
- definitionId: string | null;
189
- extensionKey: string | null;
190
- resourceType: string | null;
191
- reason: string | null;
192
- error: Record<string, unknown> | null;
190
+ extensionKey?: string | null;
191
+ definitionId?: string | null;
192
+ resourceType?: string | null;
193
+ reason?: string | null;
194
+ error?: Record<string, unknown> | null;
193
195
  };
194
196
  export type SmartLinkClickedAttributesType = {
195
197
  id: string;
196
198
  display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview';
197
- definitionId: string | null;
198
- isModifierKeyPressed: boolean | null;
199
+ definitionId?: string | null;
200
+ isModifierKeyPressed?: boolean | null;
199
201
  };
200
202
  export type SmartLinkVisitedAttributesType = {
201
203
  id: string;
202
204
  display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview';
203
- definitionId: string | null;
205
+ definitionId?: string | null;
204
206
  };
205
207
  export type SmartLinkClickedTitleGoToLinkAttributesType = {
206
208
  id: string;
207
209
  display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview';
208
- definitionId: string | null;
209
- isModifierKeyPressed: boolean | null;
210
+ definitionId?: string | null;
211
+ isModifierKeyPressed?: boolean | null;
210
212
  };
211
213
  export type SmartLinkClickedPreviewHoverCardAttributesType = {
212
214
  id: string;
@@ -215,34 +217,35 @@ export type SmartLinkClickedPreviewHoverCardAttributesType = {
215
217
  };
216
218
  export type HoverCardViewedAttributesType = {
217
219
  previewDisplay: 'card' | 'embed';
218
- previewInvokeMethod: 'keyboard' | 'mouse_hover' | 'mouse_click' | null;
219
- definitionId: string | null;
220
- rovoActionsCtaShown?: boolean;
220
+ previewInvokeMethod?: 'keyboard' | 'mouse_hover' | 'mouse_click' | null;
221
+ definitionId?: string | null;
222
+ rovoActionsCtaShown?: boolean | null;
221
223
  };
222
224
  export type HoverCardDismissedAttributesType = {
223
225
  previewDisplay: 'card' | 'embed';
224
226
  hoverTime: number;
225
- previewInvokeMethod: 'keyboard' | 'mouse_hover' | 'mouse_click' | null;
226
- definitionId: string | null;
227
- rovoActionsCtaShown?: boolean;
227
+ previewInvokeMethod?: 'keyboard' | 'mouse_hover' | 'mouse_click' | null;
228
+ definitionId?: string | null;
229
+ rovoActionsCtaShown?: boolean | null;
228
230
  };
229
231
  export type ButtonClickedConnectAccountAttributesType = {
230
232
  display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview' | 'url';
231
- definitionId: string | null;
233
+ definitionId?: string | null;
232
234
  };
233
235
  export type SmartLinkClickedTryAnotherAccountAttributesType = {
234
236
  display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview' | 'url';
235
- definitionId: string | null;
237
+ definitionId?: string | null;
236
238
  };
237
239
  export type ConsentModalClosedAttributesType = {
238
240
  display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview' | 'url';
239
- definitionId: string | null;
241
+ definitionId?: string | null;
240
242
  };
241
243
  export type ModalClosedEmbedPreviewAttributesType = {
242
- origin: 'smartLinkCard' | 'smartLinkEmbed' | 'smartLinkInline' | 'smartLinkPreviewHoverCard' | null;
243
- previewTime: number | null;
244
- size: 'large' | 'small' | null;
244
+ origin?: 'smartLinkCard' | 'smartLinkEmbed' | 'smartLinkInline' | 'smartLinkPreviewHoverCard' | null;
245
+ previewTime?: number | null;
246
+ size?: 'large' | 'small' | null;
245
247
  };
248
+ export type ButtonClickedDismissAttributesType = {};
246
249
  export type ButtonClickedLearnMoreAttributesType = {};
247
250
  export type ButtonClickedSmartLinkStatusLozengeAttributesType = {};
248
251
  export type ButtonClickedSmartLinkStatusListItemAttributesType = {};
@@ -252,27 +255,26 @@ export type ButtonClickedStatusUpdateActionAttributesType = {};
252
255
  export type ButtonClickedGetStatusTransitionsActionAttributesType = {};
253
256
  export type ButtonClickedEmbedPreviewResizeAttributesType = {
254
257
  newSize: 'large' | 'small';
255
- origin: 'smartLinkCard' | 'smartLinkEmbed' | 'smartLinkInline' | 'smartLinkPreviewHoverCard' | null;
258
+ origin?: 'smartLinkCard' | 'smartLinkEmbed' | 'smartLinkInline' | 'smartLinkPreviewHoverCard' | null;
256
259
  previousSize: 'large' | 'small';
257
260
  };
258
261
  export type SmartLinkRenderSuccessAttributesType = {
259
262
  display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview';
260
- rovoActionsCtaShown?: boolean;
263
+ rovoActionsCtaShown?: boolean | null;
261
264
  };
262
265
  export type SmartLinkRenderFailedAttributesType = {
263
266
  display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview';
264
267
  error: Record<string, unknown>;
265
268
  errorInfo: Record<string, unknown>;
266
- id: string | null;
269
+ id?: string | null;
267
270
  };
268
- export type ButtonClickedDismissAttributesType = {};
269
271
  export type SmartLinkSeenAttributesType = {
270
272
  display: 'inline' | 'block' | 'embed' | 'flexible';
271
273
  };
272
274
  export type SmartLinkClickedSmartlinkClickAnalyticsWorkflowsAttributesType = {
273
275
  thirdPartyARI: string;
274
276
  eventName: string;
275
- firstPartyIdentifier: string | null;
277
+ firstPartyIdentifier?: string | null;
276
278
  clickedAt: string;
277
279
  };
278
280
  export type AnalyticsEventAttributes = {
@@ -417,6 +419,9 @@ export type AnalyticsEventAttributes = {
417
419
  /**
418
420
  * Fires an event that represents when a user close a modal. */
419
421
  'ui.modal.closed.embedPreview': ModalClosedEmbedPreviewAttributesType;
422
+ /**
423
+ * fires when a user dismisses a dismissible Smart Link or hover card control. */
424
+ 'ui.button.clicked.dismiss': ButtonClickedDismissAttributesType;
420
425
  /**
421
426
  * fires an event that signifies that a "Learn More" link was clicked on an unauthenticated card */
422
427
  'ui.button.clicked.learnMore': ButtonClickedLearnMoreAttributesType;
@@ -451,8 +456,5 @@ export type AnalyticsEventAttributes = {
451
456
  /**
452
457
  * fires an event that represents when a user clicks on a Smart Link to track analytics for the 3P Workflows team */
453
458
  'ui.smartLink.clicked.smartlinkClickAnalyticsWorkflows': SmartLinkClickedSmartlinkClickAnalyticsWorkflowsAttributesType;
454
- /**
455
- * fires an event that represents when a user dismisses a hover card */
456
- 'ui.button.clicked.dismiss': ButtonClickedDismissAttributesType;
457
459
  };
458
460
  export type EventKey = keyof AnalyticsEventAttributes;
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Generates Typescript types for analytics events from analytics.spec.yaml
5
5
  *
6
- * @codegen <<SignedSource::f914fb83fac56e7154ef460866628f7d>>
6
+ * @codegen <<SignedSource::268e746266cde1271e40a794eb774cf3>>
7
7
  * @codegenCommand yarn workspace @atlassian/analytics-tooling run analytics:codegen smart-card
8
8
  */
9
9
  import type { AnalyticsEventAttributes, EventKey } from './analytics.types';
@@ -1,4 +1,7 @@
1
1
  import type { EventKey } from './analytics.types';
2
+ import createEventPayload from './create-event-payload';
3
+ type UseAnalyticsEventsFireFn = <K extends EventKey>(...params: Parameters<typeof createEventPayload<K>>) => void;
2
4
  export declare const useAnalyticsEvents: () => {
3
- fireEvent: <K extends EventKey>(eventKey: K, ...params: undefined extends import("./analytics.types").AnalyticsEventAttributes[K] ? [param?: import("./analytics.types").AnalyticsEventAttributes[K] | undefined] : [param: import("./analytics.types").AnalyticsEventAttributes[K]]) => void;
5
+ fireEvent: UseAnalyticsEventsFireFn;
4
6
  };
7
+ export {};
@@ -1,6 +1,6 @@
1
1
  import { type MessageDescriptor } from 'react-intl';
2
2
  export type RequestAccessMessageKey = 'click_to_join' | 'click_to_join_description' | 'forbidden_description' | 'request_access' | 'request_access_description' | 'request_access_pending' | 'request_access_pending_title' | 'request_access_pending_description' | 'request_denied_description' | 'default_no_access_title' | 'direct_access_title' | 'direct_access_description' | 'direct_access' | 'access_exists_description' | 'not_found_description' | 'not_found_title';
3
- export type RovoChatActionMessageKey = 'rovo_prompt_context_generic' | 'rovo_prompt_context_generic_plural' | 'rovo_prompt_context_confluence_page' | 'rovo_prompt_context_confluence_page_short' | 'rovo_prompt_context_jira_work_item' | 'rovo_prompt_context_jira_work_item_short' | 'rovo_prompt_button_recommend_other_sources' | 'rovo_prompt_message_recommend_other_sources' | 'rovo_prompt_button_show_other_mentions' | 'rovo_prompt_message_show_other_mentions' | 'rovo_prompt_button_suggest_improvement' | 'rovo_prompt_message_suggest_improvement' | 'rovo_prompt_message_summarize' | 'rovo_prompt_button_ask_rovo_anything' | 'rovo_prompt_message_ask_rovo_anything' | 'rovo_prompt_button_highlight_relevant_content' | 'rovo_prompt_message_highlight_relevant_content' | 'rovo_prompt_button_identify_key_trends' | 'rovo_prompt_message_identify_key_trends' | 'rovo_prompt_button_identify_key_points' | 'rovo_prompt_message_identify_key_points' | 'rovo_prompt_button_find_open_questions' | 'rovo_prompt_message_find_open_questions';
3
+ export type RovoChatActionMessageKey = 'rovo_prompt_context_generic' | 'rovo_prompt_context_generic_plural' | 'rovo_prompt_context_confluence_page' | 'rovo_prompt_context_confluence_page_short' | 'rovo_prompt_context_jira_work_item' | 'rovo_prompt_context_jira_work_item_short' | 'rovo_prompt_button_recommend_other_sources' | 'rovo_prompt_message_recommend_other_sources' | 'rovo_prompt_button_show_other_mentions' | 'rovo_prompt_message_show_other_mentions' | 'rovo_prompt_button_suggest_improvement' | 'rovo_prompt_message_suggest_improvement' | 'rovo_prompt_message_summarize' | 'rovo_prompt_button_ask_rovo_anything' | 'rovo_prompt_message_ask_rovo_anything' | 'rovo_prompt_button_highlight_relevant_content' | 'rovo_prompt_message_highlight_relevant_content' | 'rovo_prompt_button_identify_key_trends' | 'rovo_prompt_message_identify_key_trends' | 'rovo_prompt_button_identify_key_points' | 'rovo_prompt_message_identify_key_points' | 'rovo_prompt_button_find_open_questions' | 'rovo_prompt_message_find_open_questions' | 'rovo_prompt_button_key_highlights' | 'rovo_prompt_message_key_highlights';
4
4
  export type MessageKey = 'assigned_to' | 'ai_summarize' | 'change_status' | 'ai_summarized' | 'ai_summarized_abbreviation' | 'ai_summarized_info' | 'ai_summarized_info_short' | 'ai_summarizing' | 'ai_summary_error_generic' | 'ai_summary_error_acceptable_use_violation' | 'ai_summary_error_hipaa_content_detected' | 'ai_summary_error_exceeding_context_length_error' | 'ai_summary_action' | 'ai_summary_action_description' | 'automation_action_title' | 'automation_action_tooltip' | 'automation_action_icon_label' | 'automation_action_confluence_page_modal_title' | 'automation_action_confluence_page_modal_description' | 'copy_summary_action' | 'copy_summary_action_description' | 'copied_summary_action_description' | 'beta' | 'cannot_find_link' | 'compass_applied_components_count' | 'connect_link_account_card' | 'connect_link_account_card_name' | 'connect_link_account_card_description' | 'connect_unauthorised_account_action' | 'connect_unauthorised_account_description' | 'connect_unauthorised_account_description_no_provider' | 'continue' | 'copy_url_to_clipboard' | 'copied_url_to_clipboard' | 'could_not_load_link' | 'download' | 'download_description' | 'download_file' | 'follow' | 'follow_project_description' | 'follow_project_descriptionGalaxia' | 'follow_project' | 'follow_goal' | 'follow_goal_description' | 'follow_project_error' | 'follow_project_errorGalaxia' | 'follow_goal_error' | 'go_back' | 'invalid_permissions' | 'invalid_permissions_description' | 'join_to_view' | 'connect_link_account' | 'created_by' | 'created_on_relative' | 'created_on_absolute' | 'check_this_link' | 'delete' | 'edit' | 'learn_more_about_smart_links' | 'learn_more_about_connecting_account' | 'loading' | 'link_safety_warning_message' | 'modified_by' | 'modified_on_relative' | 'modified_on_absolute' | 'more_actions' | 'not_found_title' | 'not_found_description' | 'open_issue_in_jira' | 'open_link_in_a_new_tab' | 'owned_by' | 'owned_by_override' | 'preview_description' | 'preview_improved' | 'preview_modal' | 'preview_panel' | 'preview_close' | 'preview_max_size' | 'preview_min_size' | 'priority_blocker' | 'priority_critical' | 'priority_high' | 'priority_highest' | 'priority_low' | 'priority_lowest' | 'priority_major' | 'priority_medium' | 'priority_minor' | 'priority_trivial' | 'priority_undefined' | 'forbidden_access' | 'pending_request' | 'read_time' | 'restricted_link' | 'request_access_to_view' | 'request_denied' | 'sent_on_relative' | 'sent_on_absolute' | 'status_change_load_error' | 'status_change_permission_error' | 'status_change_update_error' | 'try_again' | 'try_another_account' | 'unauthorised_account_description' | 'unauthorised_account_description_no_provider' | 'unauthorised_account_name' | 'unauthorised_account_name_no_provider' | 'rovo_actions_explore' | 'unassigned' | 'unfollow' | 'unfollow_project_description' | 'unfollow_project_descriptionGalaxia' | 'unfollow_project' | 'unfollow_project_error' | 'unfollow_project_errorGalaxia' | 'unfollow_goal' | 'unfollow_goal_description' | 'unfollow_goal_error' | 'user_attributes' | 'view' | 'viewIn' | 'viewOriginal' | 'actions' | 'add_account' | 'cancel' | 'close' | 'connect_to' | 'connect_account_description' | 'retry' | 'save' | 'unlink_account' | RequestAccessMessageKey | 'related' | 'generic_error_message' | 'related_links_modal_error_title' | 'related_links_modal_error_description' | 'related_links_modal_unavailable_title' | 'related_links_modal_unavailable_description' | 'related_links_modal_title' | 'related_links_view_related_urls' | 'related_links_view_related_links' | 'related_links_found_in' | 'related_links_includes_links_to' | 'related_links_not_found' | 'join_to_viewIssueTermRefresh' | 'open_issue_in_jiraIssueTermRefresh' | 'request_access_to_viewIssueTermRefresh' | 'team_members_count' | 'status_change_permission_errorIssueTermRefresh' | 'connect_unauthorised_account_description_appify' | 'connect_unauthorised_account_description_no_provider_appify' | 'learn_more_about_connecting_account_experiment_shorter' | 'learn_more_about_connecting_account_appify' | 'rovo_summary_loading' | 'ai_disclaimer' | 'rovo_unauthorised_title' | 'rovo_unauthorised_title_no_provider' | 'rovo_unauthorised_feature_clear_link_names' | 'rovo_unauthorised_feature_understand_linked_docs' | 'rovo_unauthorised_feature_go_deeper_smart_suggestions' | 'rovo_unauthorised_connect_account' | 'rovo_unauthorised_not_now' | 'rovo_chat_action_section_header' | 'rovo_prompt_button_summarize_this' | 'rovo_prompt_button_ask_a_specific_question' | 'rovo_prompt_button_show_me_whats_relevant' | RovoChatActionMessageKey;
5
5
  type Messages = {
6
6
  [K in MessageKey]: MessageDescriptor;
@@ -0,0 +1 @@
1
+ export declare const preloadLazyCardWithUrlContent: () => Promise<unknown>;
@@ -2,7 +2,7 @@ import type { ReactChild, ReactNode } from 'react';
2
2
  import { type UIAnalyticsEvent } from '@atlaskit/analytics-next';
3
3
  import type { Appearance } from '@atlaskit/button/types';
4
4
  import type { Space } from '@atlaskit/primitives/compiled';
5
- import type { SmartLinkSize } from '../../../../../constants';
5
+ import type { CardDisplay, SmartLinkSize } from '../../../../../constants';
6
6
  export type ActionMessageAppearance = 'error';
7
7
  export type ActionMessage = {
8
8
  appearance?: ActionMessageAppearance;
@@ -27,6 +27,11 @@ export type ActionProps = {
27
27
  * Used to determine whether the Action is in a Dropdown.
28
28
  */
29
29
  asDropDownItem?: boolean;
30
+ /**
31
+ * Used in block card 3P post-auth experiment to show different icons for Rovo actions
32
+ * Should be removed on clean up of platform_sl_3p_auth_rovo_block_card_kill_switch after finalizing which icons to use long term
33
+ */
34
+ cardAppearance?: CardDisplay;
30
35
  /**
31
36
  * For compiled css
32
37
  */
@@ -6,5 +6,5 @@ import { type ActionGroupProps } from './types';
6
6
  * @param {ActionGroupProps} ActionGroupProps
7
7
  * @see Action
8
8
  */
9
- declare const ActionGroup: ({ items, size, appearance, visibleButtonsNum, onDropdownOpenChange, }: ActionGroupProps) => JSX.Element | null;
9
+ declare const ActionGroup: ({ items, size, appearance, visibleButtonsNum, onDropdownOpenChange, containerWidth, }: ActionGroupProps) => JSX.Element | null;
10
10
  export default ActionGroup;
@@ -6,6 +6,10 @@ export type ActionGroupProps = {
6
6
  * Determines the default appearance of the Action Group.
7
7
  */
8
8
  appearance?: Appearance;
9
+ /**
10
+ * The measured width of the stable footer container (from FooterBlockResolvedView).
11
+ */
12
+ containerWidth?: number;
9
13
  /**
10
14
  * Determines the direction that the actions are rendered. Can be vertical
11
15
  * or horizontal.
@@ -15,6 +15,10 @@ export type FooterBlockProps = {
15
15
  * Allows hiding of the resources provider
16
16
  */
17
17
  hideProvider?: boolean;
18
+ /**
19
+ * Used with RovoActions to determine if the preview block is visible or not
20
+ */
21
+ isPreviewBlockErrored?: boolean;
18
22
  /**
19
23
  * Function to be called when footer action dropdown open state is changed.
20
24
  */
@@ -1,6 +1,6 @@
1
1
  import { type ReactNode, type Ref } from 'react';
2
2
  import { type LozengeProps as AtlaskitLozengeProps } from '@atlaskit/lozenge';
3
- import { type ActionName, type ElementName, type SmartLinkDirection, type SmartLinkSize } from '../../../../constants';
3
+ import { type ActionName, type CardDisplay, type ElementName, type SmartLinkDirection, type SmartLinkSize } from '../../../../constants';
4
4
  import { type ActionProps } from '../actions/action/types';
5
5
  import type { AssignedToGroupElementProps } from '../elements/assigned-to-group-element';
6
6
  import type { BaseAvatarGroupElementProps } from '../elements/common/base-avatar-group-element';
@@ -125,6 +125,11 @@ export type BaseActionItem = {
125
125
  * Used to represent an Action which self-hydrates with data when passing props into Flexible UI.
126
126
  */
127
127
  export type BaseDataActionItem = {
128
+ /**
129
+ * Used in block card 3P post-auth experiment to show different icons for Rovo actions
130
+ * Should be removed on clean up of platform_sl_3p_auth_rovo_block_card_kill_switch after finalizing which icons to use long term
131
+ */
132
+ cardAppearance?: CardDisplay;
128
133
  /**
129
134
  * Determines whether the action should hide the text content of the button.
130
135
  */
@@ -167,7 +172,7 @@ export type BaseDataActionItem = {
167
172
  */
168
173
  export type NamedDataActionItem = BaseDataActionItem & {
169
174
  name: ActionName.FollowAction | ActionName.PreviewAction | ActionName.DownloadAction | ActionName.AutomationAction | ActionName.CopyLinkAction | ActionName.RovoChatAction;
170
- };
175
+ } & Pick<ActionProps, 'iconSize'>;
171
176
  /**
172
177
  * This represents an action that does not fetch data where Icon and Content are provided implicitly.
173
178
  * @example DeleteAction - by default will contain a cross icon with the
@@ -24,6 +24,11 @@ export type BaseBadgeElementProps = ElementProps & {
24
24
  * the image will be rendered directly.
25
25
  */
26
26
  hideIconLoadingSkeleton?: boolean;
27
+ /**
28
+ * Determines whether the badge label should be hidden. When set to true,
29
+ * the badge will be displayed without the label, showing only the icon.
30
+ */
31
+ hideLabel?: boolean;
27
32
  /**
28
33
  * The Atlaskit Icon to display next to the label. If this is not supplied,
29
34
  * then the badge icon will fallback to the URL provided.