@atlaskit/smart-card 44.4.0 → 44.5.1
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 +26 -0
- package/analytics.spec.yaml +5 -0
- package/dist/cjs/__tests__/vr-tests/__snapshots__/hover-card/hover-card-with-generic-3p-rovo-chat-action--default.png +2 -2
- 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
- package/dist/cjs/common/analytics/generated/create-event-payload.js +7 -7
- package/dist/cjs/common/analytics/generated/use-analytics-events.js +1 -1
- package/dist/cjs/extractors/flexible/actions/extract-rovo-chat-action.js +3 -4
- package/dist/cjs/messages.js +49 -49
- package/dist/cjs/preloadLazyCardWithUrlContent.js +15 -0
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-stack-item/action-button.compiled.css +0 -2
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-stack-item/index.js +10 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/action-block/ask-rovo-section-header.compiled.css +1 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/action-block/ask-rovo-section-header.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/action-block/index.compiled.css +4 -3
- package/dist/cjs/view/FlexibleCard/components/blocks/action-block/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/hover-card-footer-block/index.compiled.css +1 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/hover-card-footer-block/index.js +4 -1
- package/dist/cjs/view/FlexibleCard/components/common/image-icon/index.js +1 -1
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/__tests__/vr-tests/__snapshots__/hover-card/hover-card-with-generic-3p-rovo-chat-action--default.png +2 -2
- 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
- package/dist/es2019/common/analytics/generated/create-event-payload.js +6 -6
- package/dist/es2019/common/analytics/generated/use-analytics-events.js +2 -2
- package/dist/es2019/extractors/flexible/actions/extract-rovo-chat-action.js +3 -4
- package/dist/es2019/messages.js +49 -49
- package/dist/es2019/preloadLazyCardWithUrlContent.js +2 -0
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-stack-item/action-button.compiled.css +0 -2
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-stack-item/index.js +21 -10
- package/dist/es2019/view/FlexibleCard/components/blocks/action-block/ask-rovo-section-header.compiled.css +1 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/action-block/ask-rovo-section-header.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/action-block/index.compiled.css +4 -3
- package/dist/es2019/view/FlexibleCard/components/blocks/action-block/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/hover-card-footer-block/index.compiled.css +1 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/hover-card-footer-block/index.js +4 -1
- package/dist/es2019/view/FlexibleCard/components/common/image-icon/index.js +1 -1
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/__tests__/vr-tests/__snapshots__/hover-card/hover-card-with-generic-3p-rovo-chat-action--default.png +2 -2
- 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
- package/dist/esm/common/analytics/generated/create-event-payload.js +7 -7
- package/dist/esm/common/analytics/generated/use-analytics-events.js +1 -1
- package/dist/esm/extractors/flexible/actions/extract-rovo-chat-action.js +3 -4
- package/dist/esm/messages.js +49 -49
- package/dist/esm/preloadLazyCardWithUrlContent.js +4 -0
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/FlexibleCard/components/actions/action/action-stack-item/action-button.compiled.css +0 -2
- package/dist/esm/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +1 -1
- package/dist/esm/view/FlexibleCard/components/actions/action/action-stack-item/index.js +10 -1
- package/dist/esm/view/FlexibleCard/components/blocks/action-block/ask-rovo-section-header.compiled.css +1 -1
- package/dist/esm/view/FlexibleCard/components/blocks/action-block/ask-rovo-section-header.js +1 -1
- package/dist/esm/view/FlexibleCard/components/blocks/action-block/index.compiled.css +4 -3
- package/dist/esm/view/FlexibleCard/components/blocks/action-block/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/blocks/hover-card-footer-block/index.compiled.css +1 -0
- package/dist/esm/view/FlexibleCard/components/blocks/hover-card-footer-block/index.js +4 -1
- package/dist/esm/view/FlexibleCard/components/common/image-icon/index.js +1 -1
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/types/common/analytics/generated/analytics.types.d.ts +116 -114
- package/dist/types/common/analytics/generated/create-event-payload.d.ts +1 -1
- package/dist/types/common/analytics/generated/use-analytics-events.d.ts +4 -1
- package/dist/types/preloadLazyCardWithUrlContent.d.ts +1 -0
- package/dist/types-ts4.5/common/analytics/generated/analytics.types.d.ts +116 -114
- package/dist/types-ts4.5/common/analytics/generated/create-event-payload.d.ts +1 -1
- package/dist/types-ts4.5/common/analytics/generated/use-analytics-events.d.ts +4 -5
- package/dist/types-ts4.5/preloadLazyCardWithUrlContent.d.ts +1 -0
- package/package.json +2 -2
- package/preload-lazy-card-with-url-content/package.json +17 -0
|
@@ -6,6 +6,8 @@ import "./index.compiled.css";
|
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import { ax, ix } from "@compiled/react/runtime";
|
|
8
8
|
import { useMemo } from 'react';
|
|
9
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
|
+
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
9
11
|
import { ActionName } from '../../../../../constants';
|
|
10
12
|
import { useFlexibleCardContext } from '../../../../../state/flexible-ui-context';
|
|
11
13
|
import { useFlexibleUiContext } from '../../../../../state/flexible-ui-context';
|
|
@@ -18,6 +20,7 @@ import Block from '../block';
|
|
|
18
20
|
*/
|
|
19
21
|
var HIDDEN_HOVER_CARD_FOOTER_ACTIONS = [ActionName.RovoChatAction];
|
|
20
22
|
var ignoreContainerMarginStyles = null;
|
|
23
|
+
var inlineActionNudgeFooterMarginStyles = null;
|
|
21
24
|
var elevatedFooterStyles = null;
|
|
22
25
|
var providerStyles = null;
|
|
23
26
|
var actionsStyles = null;
|
|
@@ -63,7 +66,7 @@ var ResolvedHoverCardFooterBlock = function ResolvedHoverCardFooterBlock(_ref) {
|
|
|
63
66
|
return /*#__PURE__*/React.createElement(Block, _extends({}, props, {
|
|
64
67
|
size: size,
|
|
65
68
|
testId: "".concat(testId, "-resolved-view"),
|
|
66
|
-
className: ax(["_18zrpxbi _1rjcutpp _vchhusvi _1bsb129b _18u01ivi _2hwxc10g _otyr1ya9 _4t3ioahv", "_zulpu2gc _x3doj0fz _bfhkhfxm _mrkb1mok _1o0z1mok"])
|
|
69
|
+
className: ax(["_18zrpxbi _1rjcutpp _vchhusvi _1bsb129b _18u01ivi _2hwxc10g _otyr1ya9 _4t3ioahv", "_zulpu2gc _x3doj0fz _bfhkhfxm _mrkb1mok _1o0z1mok", fg('rovogrowth-640-inline-action-nudge-fg') && expValEqualsNoExposure('rovogrowth-640-inline-action-nudge-exp', 'isEnabled', true) && "_19pkutpp"])
|
|
67
70
|
}), !hideProvider && /*#__PURE__*/React.createElement("div", {
|
|
68
71
|
className: ax(["_4t3i1ejb _1e0c1txw _4cvr1h6o _1bah1y6m _vchhusvi _16jlkb7n"])
|
|
69
72
|
}, /*#__PURE__*/React.createElement(Provider, {
|
|
@@ -15,7 +15,7 @@ var messages = defineMessages({
|
|
|
15
15
|
imageAltText: {
|
|
16
16
|
id: 'smart-link.image-icon.altText',
|
|
17
17
|
defaultMessage: 'Link Icon',
|
|
18
|
-
description: '
|
|
18
|
+
description: 'Alternative text for the link icon image displayed on a flexible smart link card, used by screen readers and when the image cannot be rendered.'
|
|
19
19
|
}
|
|
20
20
|
});
|
|
21
21
|
var ImageIcon = function ImageIcon(_ref) {
|
|
@@ -15,7 +15,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
15
15
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
16
16
|
var PACKAGE_DATA = {
|
|
17
17
|
packageName: "@atlaskit/smart-card",
|
|
18
|
-
packageVersion: "44.
|
|
18
|
+
packageVersion: "44.5.0",
|
|
19
19
|
componentName: 'linkUrl'
|
|
20
20
|
};
|
|
21
21
|
var Anchor = withLinkClickedEvent('a');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Generates Typescript types for analytics events from analytics.spec.yaml
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
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
|
|
15
|
-
destinationObjectType
|
|
16
|
-
destinationSubproduct
|
|
17
|
-
destinationProduct
|
|
18
|
-
location
|
|
19
|
-
statusDetails
|
|
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
|
|
23
|
-
statusDetails
|
|
22
|
+
status?: 'pending' | 'resolving' | 'resolved' | 'errored' | 'fallback' | 'unauthorized' | 'forbidden' | 'not_found' | null;
|
|
23
|
+
statusDetails?: string | null;
|
|
24
24
|
displayCategory: 'smartLink' | 'link';
|
|
25
|
-
extensionKey
|
|
26
|
-
destinationProduct
|
|
27
|
-
destinationSubproduct
|
|
28
|
-
destinationCategory
|
|
29
|
-
destinationObjectId
|
|
30
|
-
destinationObjectType
|
|
31
|
-
destinationContainerId
|
|
32
|
-
destinationTenantId
|
|
33
|
-
canBeDatasource
|
|
34
|
-
location
|
|
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
|
|
38
|
-
id
|
|
39
|
-
definitionId
|
|
40
|
-
display
|
|
41
|
-
resourceType
|
|
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
|
|
45
|
-
id
|
|
46
|
-
definitionId
|
|
47
|
-
display
|
|
48
|
-
resourceType
|
|
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
|
|
52
|
-
id
|
|
53
|
-
definitionId
|
|
54
|
-
display
|
|
55
|
-
resourceType
|
|
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
|
|
59
|
-
id
|
|
60
|
-
definitionId
|
|
61
|
-
display
|
|
62
|
-
resourceType
|
|
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
|
|
66
|
-
id
|
|
67
|
-
definitionId
|
|
68
|
-
display
|
|
69
|
-
resourceType
|
|
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
|
|
74
|
-
id
|
|
75
|
-
definitionId
|
|
76
|
-
display
|
|
77
|
-
resourceType
|
|
78
|
-
prompt
|
|
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
|
|
82
|
+
fromCache?: boolean | null;
|
|
83
83
|
};
|
|
84
84
|
export type ErrorViewedAiSummaryAttributesType = {};
|
|
85
85
|
export type SummarySuccessAttributesType = {};
|
|
86
86
|
export type SummaryFailedAttributesType = {
|
|
87
|
-
reason
|
|
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
|
|
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
|
|
118
|
+
definitionId?: string | null;
|
|
119
119
|
interactionType?: 'mouseenter' | 'mouseleave' | 'focus' | null;
|
|
120
120
|
};
|
|
121
121
|
export type ApplicationAccountConnectedAttributesType = {
|
|
122
|
-
definitionId
|
|
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
|
|
133
|
+
reason?: 'PermissionError' | 'ValidationError' | 'UnknownError' | null;
|
|
134
134
|
};
|
|
135
135
|
export type ConsentModalViewedAttributesType = {
|
|
136
|
-
definitionId
|
|
136
|
+
definitionId?: string | null;
|
|
137
137
|
};
|
|
138
138
|
export type EmbedPreviewModalViewedAttributesType = {
|
|
139
|
-
origin
|
|
140
|
-
size
|
|
139
|
+
origin?: 'smartLinkCard' | 'smartLinkEmbed' | 'smartLinkInline' | 'smartLinkPreviewHoverCard' | null;
|
|
140
|
+
size?: 'large' | 'small' | null;
|
|
141
141
|
};
|
|
142
142
|
export type SmartLinkConnectSucceededAttributesType = {
|
|
143
|
-
definitionId
|
|
143
|
+
definitionId?: string | null;
|
|
144
144
|
};
|
|
145
145
|
export type SmartLinkConnectFailedAttributesType = {
|
|
146
|
-
reason
|
|
147
|
-
definitionId
|
|
146
|
+
reason?: string | null;
|
|
147
|
+
definitionId?: string | null;
|
|
148
148
|
};
|
|
149
149
|
export type SmartLinkResolvedAttributesType = {
|
|
150
|
-
|
|
151
|
-
|
|
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
|
-
|
|
155
|
-
|
|
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
|
|
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
|
|
166
|
-
id
|
|
167
|
-
definitionId
|
|
168
|
-
display
|
|
169
|
-
resourceType
|
|
170
|
-
duration
|
|
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
|
|
174
|
-
id
|
|
175
|
-
definitionId
|
|
176
|
-
display
|
|
177
|
-
resourceType
|
|
178
|
-
duration
|
|
179
|
-
reason
|
|
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
|
-
|
|
183
|
-
|
|
184
|
-
resourceType
|
|
185
|
-
duration
|
|
184
|
+
extensionKey?: string | null;
|
|
185
|
+
definitionId?: string | null;
|
|
186
|
+
resourceType?: string | null;
|
|
187
|
+
duration?: number | null;
|
|
186
188
|
};
|
|
187
189
|
export type HyperlinkUnresolvedAttributesType = {
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
resourceType
|
|
191
|
-
reason
|
|
192
|
-
error
|
|
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
|
|
198
|
-
isModifierKeyPressed
|
|
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
|
|
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
|
|
209
|
-
isModifierKeyPressed
|
|
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
|
|
219
|
-
definitionId
|
|
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
|
|
226
|
-
definitionId
|
|
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
|
|
233
|
+
definitionId?: string | null;
|
|
232
234
|
};
|
|
233
235
|
export type SmartLinkClickedTryAnotherAccountAttributesType = {
|
|
234
236
|
display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview' | 'url';
|
|
235
|
-
definitionId
|
|
237
|
+
definitionId?: string | null;
|
|
236
238
|
};
|
|
237
239
|
export type ConsentModalClosedAttributesType = {
|
|
238
240
|
display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview' | 'url';
|
|
239
|
-
definitionId
|
|
241
|
+
definitionId?: string | null;
|
|
240
242
|
};
|
|
241
243
|
export type ModalClosedEmbedPreviewAttributesType = {
|
|
242
|
-
origin
|
|
243
|
-
previewTime
|
|
244
|
-
size
|
|
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
|
|
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
|
|
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
|
|
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::
|
|
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:
|
|
5
|
+
fireEvent: UseAnalyticsEventsFireFn;
|
|
4
6
|
};
|
|
7
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const preloadLazyCardWithUrlContent: () => Promise<unknown>;
|