@atlaskit/smart-card 32.3.0 → 32.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.
- package/CHANGELOG.md +28 -0
- package/analytics.spec.yaml +100 -0
- package/dist/cjs/state/actions/index.js +35 -11
- package/dist/cjs/state/analytics/useSmartLinkAnalytics.js +5 -1
- package/dist/cjs/utils/analytics/analytics.js +21 -1
- package/dist/cjs/utils/analytics/index.js +3 -0
- package/dist/cjs/view/CardWithUrl/component.js +33 -10
- package/dist/cjs/view/CardWithUrl/loader.js +19 -6
- package/dist/cjs/view/EmbedCard/index.js +33 -4
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/state/actions/index.js +35 -11
- package/dist/es2019/state/analytics/useSmartLinkAnalytics.js +5 -1
- package/dist/es2019/utils/analytics/analytics.js +21 -1
- package/dist/es2019/utils/analytics/index.js +4 -0
- package/dist/es2019/view/CardWithUrl/component.js +33 -10
- package/dist/es2019/view/CardWithUrl/loader.js +20 -6
- package/dist/es2019/view/EmbedCard/index.js +35 -5
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/state/actions/index.js +35 -11
- package/dist/esm/state/analytics/useSmartLinkAnalytics.js +5 -1
- package/dist/esm/utils/analytics/analytics.js +21 -1
- package/dist/esm/utils/analytics/index.js +4 -0
- package/dist/esm/view/CardWithUrl/component.js +33 -10
- package/dist/esm/view/CardWithUrl/loader.js +19 -6
- package/dist/esm/view/EmbedCard/index.js +33 -4
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/types/common/analytics/generated/analytics.types.d.ts +38 -1
- package/dist/types/state/analytics/useSmartLinkAnalytics.d.ts +5 -1
- package/dist/types/utils/analytics/analytics.d.ts +15 -0
- package/dist/types/utils/analytics/index.d.ts +3 -0
- package/dist/types/utils/analytics/types.d.ts +12 -0
- package/dist/types/view/EmbedCard/types.d.ts +2 -0
- package/dist/types/view/FlexibleCard/components/blocks/ai-footer-block/icons/info/index.d.ts +2 -2
- package/dist/types-ts4.5/common/analytics/generated/analytics.types.d.ts +38 -1
- package/dist/types-ts4.5/state/analytics/useSmartLinkAnalytics.d.ts +5 -1
- package/dist/types-ts4.5/utils/analytics/analytics.d.ts +15 -0
- package/dist/types-ts4.5/utils/analytics/index.d.ts +3 -0
- package/dist/types-ts4.5/utils/analytics/types.d.ts +12 -0
- package/dist/types-ts4.5/view/EmbedCard/types.d.ts +2 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/ai-footer-block/icons/info/index.d.ts +2 -2
- package/package.json +13 -7
|
@@ -10,7 +10,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
10
10
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
11
11
|
var PACKAGE_DATA = {
|
|
12
12
|
packageName: "@atlaskit/smart-card",
|
|
13
|
-
packageVersion: "32.
|
|
13
|
+
packageVersion: "32.5.0",
|
|
14
14
|
componentName: 'linkUrl'
|
|
15
15
|
};
|
|
16
16
|
var Link = 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::519effabaa6c383d7fa35374469faada>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlassian/analytics-tooling run analytics:codegen smart-card
|
|
8
8
|
*/
|
|
9
9
|
export type PackageMetaDataContextType = {
|
|
@@ -93,6 +93,28 @@ export type SmartLinkQuickActionFailedAttributesType = {
|
|
|
93
93
|
export type ConsentModalViewedAttributesType = {
|
|
94
94
|
definitionId: string | null;
|
|
95
95
|
};
|
|
96
|
+
export type SmartLinkConnectSucceededAttributesType = {
|
|
97
|
+
definitionId: string | null;
|
|
98
|
+
};
|
|
99
|
+
export type SmartLinkConnectFailedAttributesType = {
|
|
100
|
+
reason: string | null;
|
|
101
|
+
definitionId: string | null;
|
|
102
|
+
};
|
|
103
|
+
export type SmartLinkResolvedAttributesType = {
|
|
104
|
+
definitionId: string | null;
|
|
105
|
+
duration: number | null;
|
|
106
|
+
};
|
|
107
|
+
export type SmartLinkUnresolvedAttributesType = {
|
|
108
|
+
definitionId: string | null;
|
|
109
|
+
error: Record<string, unknown> | null;
|
|
110
|
+
reason: string;
|
|
111
|
+
};
|
|
112
|
+
export type SmartLinkChunkLoadFailedAttributesType = {
|
|
113
|
+
display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview';
|
|
114
|
+
definitionId: string | null;
|
|
115
|
+
error: Record<string, unknown>;
|
|
116
|
+
errorInfo: Record<string, unknown>;
|
|
117
|
+
};
|
|
96
118
|
export type AnalyticsEventAttributes = {
|
|
97
119
|
/**
|
|
98
120
|
* fired when an ai summary is clicked */
|
|
@@ -157,5 +179,20 @@ export type AnalyticsEventAttributes = {
|
|
|
157
179
|
/**
|
|
158
180
|
* fires an event which represents the connect account page being opened. */
|
|
159
181
|
'screen.consentModal.viewed': ConsentModalViewedAttributesType;
|
|
182
|
+
/**
|
|
183
|
+
* fires an event that represents an account successfully being connected via a Smart Link. */
|
|
184
|
+
'operational.smartLink.connectSucceeded': SmartLinkConnectSucceededAttributesType;
|
|
185
|
+
/**
|
|
186
|
+
* fires an event that represents an account unsuccessfully being connected. */
|
|
187
|
+
'operational.smartLink.connectFailed': SmartLinkConnectFailedAttributesType;
|
|
188
|
+
/**
|
|
189
|
+
* fires an event which represents a Smart Link request succeeding. */
|
|
190
|
+
'operational.smartLink.resolved': SmartLinkResolvedAttributesType;
|
|
191
|
+
/**
|
|
192
|
+
* fires an event which represents a Smart Link request failing. */
|
|
193
|
+
'operational.smartLink.unresolved': SmartLinkUnresolvedAttributesType;
|
|
194
|
+
/**
|
|
195
|
+
* fires an event that represents when a Smart Link renders unsuccessfully. */
|
|
196
|
+
'operational.smartLink.chunkLoadFailed': SmartLinkChunkLoadFailedAttributesType;
|
|
160
197
|
};
|
|
161
198
|
export type EventKey = keyof AnalyticsEventAttributes;
|
|
@@ -164,6 +164,7 @@ export declare const useSmartLinkAnalytics: (url: string, id?: string, defaultLo
|
|
|
164
164
|
* @param id The unique ID for this Smart Link.
|
|
165
165
|
* @param definitionId The definitionId of the Smart Link resolver invoked.
|
|
166
166
|
* @param extensionKey The extensionKey of the Smart Link resovler invoked.
|
|
167
|
+
* @deprecated remove with platform_smart-card-migrate-operational-analytics clean up
|
|
167
168
|
*/
|
|
168
169
|
connectSucceededEvent: ({ id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: ConnectSucceededEventProps) => void;
|
|
169
170
|
/**
|
|
@@ -172,6 +173,7 @@ export declare const useSmartLinkAnalytics: (url: string, id?: string, defaultLo
|
|
|
172
173
|
* @param definitionId The definitionId of the Smart Link resolver invoked.
|
|
173
174
|
* @param extensionKey The extensionKey of the Smart Link resovler invoked.
|
|
174
175
|
* @param reason The reason why the Smart Link connect account failed.
|
|
176
|
+
* @deprecated remove with platform_smart-card-migrate-operational-analytics clean up
|
|
175
177
|
*/
|
|
176
178
|
connectFailedEvent: ({ id, reason, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: ConnectFailedEventProps) => void;
|
|
177
179
|
/**
|
|
@@ -182,14 +184,16 @@ export declare const useSmartLinkAnalytics: (url: string, id?: string, defaultLo
|
|
|
182
184
|
* @param extensionKey The extensionKey of the Smart Link resovler invoked.
|
|
183
185
|
* @param resourceType The type of resource that was invoked. This is provider specific (e.g. File, PullRequest).
|
|
184
186
|
* @param error An error representing why the Smart Link request failed.
|
|
187
|
+
* @deprecated remove with platform_smart-card-migrate-operational-analytics clean up
|
|
185
188
|
*/
|
|
186
189
|
instrument: ({ id, status, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, error, }: InstrumentEventProps) => void;
|
|
187
190
|
/**
|
|
188
|
-
* This fires an event that represents when a Smart Link renders
|
|
191
|
+
* This fires an event that represents when a Smart Link renders unsuccessfully.
|
|
189
192
|
* @param display Whether the card was an Inline, Block, Embed or Flexible UI.
|
|
190
193
|
* @param id The unique ID for this Smart Link.
|
|
191
194
|
* @param error: An error representing why the Smart Link render failed.
|
|
192
195
|
* @param errorInfo: Additional details about the error including the stack trace.
|
|
196
|
+
* @deprecated remove with platform_smart-card-migrate-operational-analytics clean up
|
|
193
197
|
*/
|
|
194
198
|
chunkloadFailedEvent: ({ display, error, errorInfo, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: UiRenderFailedEventProps) => void;
|
|
195
199
|
};
|
|
@@ -22,11 +22,23 @@ export declare class SmartLinkEvents {
|
|
|
22
22
|
insertSmartLink(url: string, type: CardInnerAppearance, createAnalyticsEvent?: CreateUIAnalyticsEvent): void;
|
|
23
23
|
}
|
|
24
24
|
export declare const fireSmartLinkEvent: (payload: AnalyticsPayload, createAnalyticsEvent?: CreateUIAnalyticsEvent) => void;
|
|
25
|
+
/**
|
|
26
|
+
* @deprecated remove with platform_smart-card-migrate-operational-analytics clean up
|
|
27
|
+
*/
|
|
25
28
|
export declare const resolvedEvent: (props: ResolvedEventProps) => AnalyticsPayload;
|
|
29
|
+
/**
|
|
30
|
+
* @deprecated remove with platform_smart-card-migrate-operational-analytics clean up
|
|
31
|
+
*/
|
|
26
32
|
export declare const unresolvedEvent: ({ id, definitionId, extensionKey, resourceType, destinationSubproduct, destinationProduct, error, status, location, }: UnresolvedEventProps) => AnalyticsPayload;
|
|
27
33
|
export declare const invokeSucceededEvent: ({ id, actionType, display, extensionKey, definitionId, destinationProduct, destinationSubproduct, location, }: InvokeSucceededEventProps) => AnalyticsPayload;
|
|
28
34
|
export declare const invokeFailedEvent: ({ id, actionType, display, reason, extensionKey, definitionId, destinationProduct, destinationSubproduct, location, }: InvokeFailedEventProps) => AnalyticsPayload;
|
|
35
|
+
/**
|
|
36
|
+
* @deprecated remove with platform_smart-card-migrate-operational-analytics clean up
|
|
37
|
+
*/
|
|
29
38
|
export declare const connectSucceededEvent: ({ definitionId, extensionKey, destinationProduct, destinationSubproduct, location, }: ConnectSucceededEventProps) => AnalyticsPayload;
|
|
39
|
+
/**
|
|
40
|
+
* @deprecated remove with platform_smart-card-migrate-operational-analytics clean up
|
|
41
|
+
*/
|
|
30
42
|
export declare const connectFailedEvent: ({ definitionId, extensionKey, destinationProduct, destinationSubproduct, location, reason, }: ConnectFailedEventProps) => AnalyticsPayload;
|
|
31
43
|
export declare const uiAuthEvent: ({ definitionId, extensionKey, destinationProduct, destinationSubproduct, location, display, }: UiAuthEventProps) => AnalyticsPayload;
|
|
32
44
|
export declare const uiAuthAlternateAccountEvent: ({ definitionId, extensionKey, destinationProduct, destinationSubproduct, location, display, }: UiAuthAlternateAccountEventProps) => AnalyticsPayload;
|
|
@@ -39,6 +51,9 @@ export declare const uiHoverCardViewedEvent: ({ id, previewDisplay, extensionKey
|
|
|
39
51
|
export declare const uiHoverCardDismissedEvent: ({ id, previewDisplay, hoverTime, extensionKey, definitionId, destinationProduct, destinationSubproduct, location, previewInvokeMethod, status, }: UiHoverCardDismissedEventProps) => AnalyticsPayload;
|
|
40
52
|
export declare const uiHoverCardOpenLinkClickedEvent: ({ id, previewDisplay, extensionKey, definitionId, destinationProduct, destinationSubproduct, location, previewInvokeMethod, }: UiHoverCardOpenLinkClickedEventProps) => AnalyticsPayload;
|
|
41
53
|
export declare const uiLearnMoreLinkClickedEvent: () => AnalyticsPayload;
|
|
54
|
+
/**
|
|
55
|
+
* @deprecated remove with platform_smart-card-migrate-operational-analytics clean up
|
|
56
|
+
*/
|
|
42
57
|
export declare const chunkloadFailedEvent: ({ display, error, errorInfo, extensionKey, definitionId, destinationProduct, destinationSubproduct, location, }: UiRenderFailedEventProps) => AnalyticsPayload;
|
|
43
58
|
export declare const uiSmartLinkStatusLozengeButtonClicked: () => AnalyticsPayload;
|
|
44
59
|
export declare const uiSmartLinkStatusListItemButtonClicked: () => AnalyticsPayload;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { type AnalyticsPayload } from '../types';
|
|
2
2
|
import { type InstrumentEventProps } from './types';
|
|
3
3
|
export { ANALYTICS_CHANNEL, context, fireSmartLinkEvent, resolvedEvent, unresolvedEvent, invokeSucceededEvent, invokeFailedEvent, chunkloadFailedEvent, connectSucceededEvent, connectFailedEvent, uiAuthEvent, uiAuthAlternateAccountEvent, uiCardClickedEvent, uiActionClickedEvent, uiClosedAuthEvent, uiRenderSuccessEvent, uiRenderFailedEvent, uiHoverCardViewedEvent, uiHoverCardDismissedEvent, uiHoverCardOpenLinkClickedEvent, uiLearnMoreLinkClickedEvent, uiSmartLinkStatusLozengeButtonClicked, uiSmartLinkStatusListItemButtonClicked, uiSmartLinkStatusOpenPreviewButtonClicked, } from './analytics';
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated remove with platform_smart-card-migrate-operational-analytics clean up
|
|
6
|
+
*/
|
|
4
7
|
export declare const instrumentEvent: ({ id, status, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, error, }: InstrumentEventProps) => AnalyticsPayload | undefined;
|
|
@@ -36,9 +36,15 @@ export type InvokeFailedEventProps = CommonEventProps & {
|
|
|
36
36
|
display?: CardInnerAppearance;
|
|
37
37
|
reason: string;
|
|
38
38
|
};
|
|
39
|
+
/**
|
|
40
|
+
* @deprecated remove with platform_smart-card-migrate-operational-analytics clean up
|
|
41
|
+
*/
|
|
39
42
|
export type ConnectSucceededEventProps = CommonEventProps & {
|
|
40
43
|
id?: string;
|
|
41
44
|
};
|
|
45
|
+
/**
|
|
46
|
+
* @deprecated remove with platform_smart-card-migrate-operational-analytics clean up
|
|
47
|
+
*/
|
|
42
48
|
export type ConnectFailedEventProps = CommonEventProps & {
|
|
43
49
|
id?: string;
|
|
44
50
|
reason?: string;
|
|
@@ -73,6 +79,9 @@ export type UiRenderSuccessEventProps = CommonEventProps & {
|
|
|
73
79
|
status: CardType;
|
|
74
80
|
canBeDatasource?: boolean;
|
|
75
81
|
};
|
|
82
|
+
/**
|
|
83
|
+
* @deprecated remove with platform_smart-card-migrate-operational-analytics clean up
|
|
84
|
+
*/
|
|
76
85
|
export type UiRenderFailedEventProps = CommonEventProps & {
|
|
77
86
|
display: CardInnerAppearance;
|
|
78
87
|
error: Error;
|
|
@@ -93,6 +102,9 @@ export type UiHoverCardOpenLinkClickedEventProps = CommonEventProps & {
|
|
|
93
102
|
previewDisplay: PreviewDisplay;
|
|
94
103
|
previewInvokeMethod?: PreviewInvokeMethod;
|
|
95
104
|
};
|
|
105
|
+
/**
|
|
106
|
+
* @deprecated remove with platform_smart-card-migrate-operational-analytics clean up
|
|
107
|
+
*/
|
|
96
108
|
export type InstrumentEventProps = CommonEventProps & {
|
|
97
109
|
error?: APIError;
|
|
98
110
|
status: CardType;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
|
+
import { type CardProviderRenderers } from '@atlaskit/link-provider';
|
|
2
3
|
import { type RequestAccessMessageKey } from '../../messages';
|
|
3
4
|
import { type InvokeHandler } from '../../model/invoke-handler';
|
|
4
5
|
import { type AnalyticsFacade } from '../../state/analytics';
|
|
@@ -26,6 +27,7 @@ export type EmbedCardProps = {
|
|
|
26
27
|
onIframeDwell?: (dwellTime: number, dwellPercentVisible: number) => void;
|
|
27
28
|
onIframeFocus?: () => void;
|
|
28
29
|
iframeUrlType?: EmbedIframeUrlType;
|
|
30
|
+
renderers?: CardProviderRenderers;
|
|
29
31
|
};
|
|
30
32
|
export interface WithShowControlMethodProp {
|
|
31
33
|
showControls?: () => void;
|
package/dist/types/view/FlexibleCard/components/blocks/ai-footer-block/icons/info/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { type
|
|
3
|
-
export declare const InfoIcon: (props:
|
|
2
|
+
import { type NewCoreIconProps } from '@atlaskit/icon';
|
|
3
|
+
export declare const InfoIcon: (props: NewCoreIconProps) => JSX.Element;
|
|
@@ -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::519effabaa6c383d7fa35374469faada>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlassian/analytics-tooling run analytics:codegen smart-card
|
|
8
8
|
*/
|
|
9
9
|
export type PackageMetaDataContextType = {
|
|
@@ -93,6 +93,28 @@ export type SmartLinkQuickActionFailedAttributesType = {
|
|
|
93
93
|
export type ConsentModalViewedAttributesType = {
|
|
94
94
|
definitionId: string | null;
|
|
95
95
|
};
|
|
96
|
+
export type SmartLinkConnectSucceededAttributesType = {
|
|
97
|
+
definitionId: string | null;
|
|
98
|
+
};
|
|
99
|
+
export type SmartLinkConnectFailedAttributesType = {
|
|
100
|
+
reason: string | null;
|
|
101
|
+
definitionId: string | null;
|
|
102
|
+
};
|
|
103
|
+
export type SmartLinkResolvedAttributesType = {
|
|
104
|
+
definitionId: string | null;
|
|
105
|
+
duration: number | null;
|
|
106
|
+
};
|
|
107
|
+
export type SmartLinkUnresolvedAttributesType = {
|
|
108
|
+
definitionId: string | null;
|
|
109
|
+
error: Record<string, unknown> | null;
|
|
110
|
+
reason: string;
|
|
111
|
+
};
|
|
112
|
+
export type SmartLinkChunkLoadFailedAttributesType = {
|
|
113
|
+
display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview';
|
|
114
|
+
definitionId: string | null;
|
|
115
|
+
error: Record<string, unknown>;
|
|
116
|
+
errorInfo: Record<string, unknown>;
|
|
117
|
+
};
|
|
96
118
|
export type AnalyticsEventAttributes = {
|
|
97
119
|
/**
|
|
98
120
|
* fired when an ai summary is clicked */
|
|
@@ -157,5 +179,20 @@ export type AnalyticsEventAttributes = {
|
|
|
157
179
|
/**
|
|
158
180
|
* fires an event which represents the connect account page being opened. */
|
|
159
181
|
'screen.consentModal.viewed': ConsentModalViewedAttributesType;
|
|
182
|
+
/**
|
|
183
|
+
* fires an event that represents an account successfully being connected via a Smart Link. */
|
|
184
|
+
'operational.smartLink.connectSucceeded': SmartLinkConnectSucceededAttributesType;
|
|
185
|
+
/**
|
|
186
|
+
* fires an event that represents an account unsuccessfully being connected. */
|
|
187
|
+
'operational.smartLink.connectFailed': SmartLinkConnectFailedAttributesType;
|
|
188
|
+
/**
|
|
189
|
+
* fires an event which represents a Smart Link request succeeding. */
|
|
190
|
+
'operational.smartLink.resolved': SmartLinkResolvedAttributesType;
|
|
191
|
+
/**
|
|
192
|
+
* fires an event which represents a Smart Link request failing. */
|
|
193
|
+
'operational.smartLink.unresolved': SmartLinkUnresolvedAttributesType;
|
|
194
|
+
/**
|
|
195
|
+
* fires an event that represents when a Smart Link renders unsuccessfully. */
|
|
196
|
+
'operational.smartLink.chunkLoadFailed': SmartLinkChunkLoadFailedAttributesType;
|
|
160
197
|
};
|
|
161
198
|
export type EventKey = keyof AnalyticsEventAttributes;
|
|
@@ -164,6 +164,7 @@ export declare const useSmartLinkAnalytics: (url: string, id?: string, defaultLo
|
|
|
164
164
|
* @param id The unique ID for this Smart Link.
|
|
165
165
|
* @param definitionId The definitionId of the Smart Link resolver invoked.
|
|
166
166
|
* @param extensionKey The extensionKey of the Smart Link resovler invoked.
|
|
167
|
+
* @deprecated remove with platform_smart-card-migrate-operational-analytics clean up
|
|
167
168
|
*/
|
|
168
169
|
connectSucceededEvent: ({ id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: ConnectSucceededEventProps) => void;
|
|
169
170
|
/**
|
|
@@ -172,6 +173,7 @@ export declare const useSmartLinkAnalytics: (url: string, id?: string, defaultLo
|
|
|
172
173
|
* @param definitionId The definitionId of the Smart Link resolver invoked.
|
|
173
174
|
* @param extensionKey The extensionKey of the Smart Link resovler invoked.
|
|
174
175
|
* @param reason The reason why the Smart Link connect account failed.
|
|
176
|
+
* @deprecated remove with platform_smart-card-migrate-operational-analytics clean up
|
|
175
177
|
*/
|
|
176
178
|
connectFailedEvent: ({ id, reason, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: ConnectFailedEventProps) => void;
|
|
177
179
|
/**
|
|
@@ -182,14 +184,16 @@ export declare const useSmartLinkAnalytics: (url: string, id?: string, defaultLo
|
|
|
182
184
|
* @param extensionKey The extensionKey of the Smart Link resovler invoked.
|
|
183
185
|
* @param resourceType The type of resource that was invoked. This is provider specific (e.g. File, PullRequest).
|
|
184
186
|
* @param error An error representing why the Smart Link request failed.
|
|
187
|
+
* @deprecated remove with platform_smart-card-migrate-operational-analytics clean up
|
|
185
188
|
*/
|
|
186
189
|
instrument: ({ id, status, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, error, }: InstrumentEventProps) => void;
|
|
187
190
|
/**
|
|
188
|
-
* This fires an event that represents when a Smart Link renders
|
|
191
|
+
* This fires an event that represents when a Smart Link renders unsuccessfully.
|
|
189
192
|
* @param display Whether the card was an Inline, Block, Embed or Flexible UI.
|
|
190
193
|
* @param id The unique ID for this Smart Link.
|
|
191
194
|
* @param error: An error representing why the Smart Link render failed.
|
|
192
195
|
* @param errorInfo: Additional details about the error including the stack trace.
|
|
196
|
+
* @deprecated remove with platform_smart-card-migrate-operational-analytics clean up
|
|
193
197
|
*/
|
|
194
198
|
chunkloadFailedEvent: ({ display, error, errorInfo, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: UiRenderFailedEventProps) => void;
|
|
195
199
|
};
|
|
@@ -22,11 +22,23 @@ export declare class SmartLinkEvents {
|
|
|
22
22
|
insertSmartLink(url: string, type: CardInnerAppearance, createAnalyticsEvent?: CreateUIAnalyticsEvent): void;
|
|
23
23
|
}
|
|
24
24
|
export declare const fireSmartLinkEvent: (payload: AnalyticsPayload, createAnalyticsEvent?: CreateUIAnalyticsEvent) => void;
|
|
25
|
+
/**
|
|
26
|
+
* @deprecated remove with platform_smart-card-migrate-operational-analytics clean up
|
|
27
|
+
*/
|
|
25
28
|
export declare const resolvedEvent: (props: ResolvedEventProps) => AnalyticsPayload;
|
|
29
|
+
/**
|
|
30
|
+
* @deprecated remove with platform_smart-card-migrate-operational-analytics clean up
|
|
31
|
+
*/
|
|
26
32
|
export declare const unresolvedEvent: ({ id, definitionId, extensionKey, resourceType, destinationSubproduct, destinationProduct, error, status, location, }: UnresolvedEventProps) => AnalyticsPayload;
|
|
27
33
|
export declare const invokeSucceededEvent: ({ id, actionType, display, extensionKey, definitionId, destinationProduct, destinationSubproduct, location, }: InvokeSucceededEventProps) => AnalyticsPayload;
|
|
28
34
|
export declare const invokeFailedEvent: ({ id, actionType, display, reason, extensionKey, definitionId, destinationProduct, destinationSubproduct, location, }: InvokeFailedEventProps) => AnalyticsPayload;
|
|
35
|
+
/**
|
|
36
|
+
* @deprecated remove with platform_smart-card-migrate-operational-analytics clean up
|
|
37
|
+
*/
|
|
29
38
|
export declare const connectSucceededEvent: ({ definitionId, extensionKey, destinationProduct, destinationSubproduct, location, }: ConnectSucceededEventProps) => AnalyticsPayload;
|
|
39
|
+
/**
|
|
40
|
+
* @deprecated remove with platform_smart-card-migrate-operational-analytics clean up
|
|
41
|
+
*/
|
|
30
42
|
export declare const connectFailedEvent: ({ definitionId, extensionKey, destinationProduct, destinationSubproduct, location, reason, }: ConnectFailedEventProps) => AnalyticsPayload;
|
|
31
43
|
export declare const uiAuthEvent: ({ definitionId, extensionKey, destinationProduct, destinationSubproduct, location, display, }: UiAuthEventProps) => AnalyticsPayload;
|
|
32
44
|
export declare const uiAuthAlternateAccountEvent: ({ definitionId, extensionKey, destinationProduct, destinationSubproduct, location, display, }: UiAuthAlternateAccountEventProps) => AnalyticsPayload;
|
|
@@ -39,6 +51,9 @@ export declare const uiHoverCardViewedEvent: ({ id, previewDisplay, extensionKey
|
|
|
39
51
|
export declare const uiHoverCardDismissedEvent: ({ id, previewDisplay, hoverTime, extensionKey, definitionId, destinationProduct, destinationSubproduct, location, previewInvokeMethod, status, }: UiHoverCardDismissedEventProps) => AnalyticsPayload;
|
|
40
52
|
export declare const uiHoverCardOpenLinkClickedEvent: ({ id, previewDisplay, extensionKey, definitionId, destinationProduct, destinationSubproduct, location, previewInvokeMethod, }: UiHoverCardOpenLinkClickedEventProps) => AnalyticsPayload;
|
|
41
53
|
export declare const uiLearnMoreLinkClickedEvent: () => AnalyticsPayload;
|
|
54
|
+
/**
|
|
55
|
+
* @deprecated remove with platform_smart-card-migrate-operational-analytics clean up
|
|
56
|
+
*/
|
|
42
57
|
export declare const chunkloadFailedEvent: ({ display, error, errorInfo, extensionKey, definitionId, destinationProduct, destinationSubproduct, location, }: UiRenderFailedEventProps) => AnalyticsPayload;
|
|
43
58
|
export declare const uiSmartLinkStatusLozengeButtonClicked: () => AnalyticsPayload;
|
|
44
59
|
export declare const uiSmartLinkStatusListItemButtonClicked: () => AnalyticsPayload;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { type AnalyticsPayload } from '../types';
|
|
2
2
|
import { type InstrumentEventProps } from './types';
|
|
3
3
|
export { ANALYTICS_CHANNEL, context, fireSmartLinkEvent, resolvedEvent, unresolvedEvent, invokeSucceededEvent, invokeFailedEvent, chunkloadFailedEvent, connectSucceededEvent, connectFailedEvent, uiAuthEvent, uiAuthAlternateAccountEvent, uiCardClickedEvent, uiActionClickedEvent, uiClosedAuthEvent, uiRenderSuccessEvent, uiRenderFailedEvent, uiHoverCardViewedEvent, uiHoverCardDismissedEvent, uiHoverCardOpenLinkClickedEvent, uiLearnMoreLinkClickedEvent, uiSmartLinkStatusLozengeButtonClicked, uiSmartLinkStatusListItemButtonClicked, uiSmartLinkStatusOpenPreviewButtonClicked, } from './analytics';
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated remove with platform_smart-card-migrate-operational-analytics clean up
|
|
6
|
+
*/
|
|
4
7
|
export declare const instrumentEvent: ({ id, status, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, error, }: InstrumentEventProps) => AnalyticsPayload | undefined;
|
|
@@ -36,9 +36,15 @@ export type InvokeFailedEventProps = CommonEventProps & {
|
|
|
36
36
|
display?: CardInnerAppearance;
|
|
37
37
|
reason: string;
|
|
38
38
|
};
|
|
39
|
+
/**
|
|
40
|
+
* @deprecated remove with platform_smart-card-migrate-operational-analytics clean up
|
|
41
|
+
*/
|
|
39
42
|
export type ConnectSucceededEventProps = CommonEventProps & {
|
|
40
43
|
id?: string;
|
|
41
44
|
};
|
|
45
|
+
/**
|
|
46
|
+
* @deprecated remove with platform_smart-card-migrate-operational-analytics clean up
|
|
47
|
+
*/
|
|
42
48
|
export type ConnectFailedEventProps = CommonEventProps & {
|
|
43
49
|
id?: string;
|
|
44
50
|
reason?: string;
|
|
@@ -73,6 +79,9 @@ export type UiRenderSuccessEventProps = CommonEventProps & {
|
|
|
73
79
|
status: CardType;
|
|
74
80
|
canBeDatasource?: boolean;
|
|
75
81
|
};
|
|
82
|
+
/**
|
|
83
|
+
* @deprecated remove with platform_smart-card-migrate-operational-analytics clean up
|
|
84
|
+
*/
|
|
76
85
|
export type UiRenderFailedEventProps = CommonEventProps & {
|
|
77
86
|
display: CardInnerAppearance;
|
|
78
87
|
error: Error;
|
|
@@ -93,6 +102,9 @@ export type UiHoverCardOpenLinkClickedEventProps = CommonEventProps & {
|
|
|
93
102
|
previewDisplay: PreviewDisplay;
|
|
94
103
|
previewInvokeMethod?: PreviewInvokeMethod;
|
|
95
104
|
};
|
|
105
|
+
/**
|
|
106
|
+
* @deprecated remove with platform_smart-card-migrate-operational-analytics clean up
|
|
107
|
+
*/
|
|
96
108
|
export type InstrumentEventProps = CommonEventProps & {
|
|
97
109
|
error?: APIError;
|
|
98
110
|
status: CardType;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
|
+
import { type CardProviderRenderers } from '@atlaskit/link-provider';
|
|
2
3
|
import { type RequestAccessMessageKey } from '../../messages';
|
|
3
4
|
import { type InvokeHandler } from '../../model/invoke-handler';
|
|
4
5
|
import { type AnalyticsFacade } from '../../state/analytics';
|
|
@@ -26,6 +27,7 @@ export type EmbedCardProps = {
|
|
|
26
27
|
onIframeDwell?: (dwellTime: number, dwellPercentVisible: number) => void;
|
|
27
28
|
onIframeFocus?: () => void;
|
|
28
29
|
iframeUrlType?: EmbedIframeUrlType;
|
|
30
|
+
renderers?: CardProviderRenderers;
|
|
29
31
|
};
|
|
30
32
|
export interface WithShowControlMethodProp {
|
|
31
33
|
showControls?: () => void;
|
package/dist/types-ts4.5/view/FlexibleCard/components/blocks/ai-footer-block/icons/info/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { type
|
|
3
|
-
export declare const InfoIcon: (props:
|
|
2
|
+
import { type NewCoreIconProps } from '@atlaskit/icon';
|
|
3
|
+
export declare const InfoIcon: (props: NewCoreIconProps) => JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "32.
|
|
3
|
+
"version": "32.5.0",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
"@atlaskit/dropdown-menu": "^12.23.0",
|
|
36
36
|
"@atlaskit/form": "^10.6.0",
|
|
37
37
|
"@atlaskit/frontend-utilities": "^2.7.0",
|
|
38
|
-
"@atlaskit/heading": "^
|
|
39
|
-
"@atlaskit/icon": "^
|
|
40
|
-
"@atlaskit/icon-file-type": "^6.
|
|
41
|
-
"@atlaskit/icon-object": "^6.
|
|
38
|
+
"@atlaskit/heading": "^4.0.0",
|
|
39
|
+
"@atlaskit/icon": "^23.0.0",
|
|
40
|
+
"@atlaskit/icon-file-type": "^6.8.0",
|
|
41
|
+
"@atlaskit/icon-object": "^6.9.0",
|
|
42
42
|
"@atlaskit/icon-priority": "^6.3.0",
|
|
43
43
|
"@atlaskit/legacy-custom-icons": "^0.20.0",
|
|
44
44
|
"@atlaskit/link-analytics": "^8.5.0",
|
|
@@ -52,10 +52,10 @@
|
|
|
52
52
|
"@atlaskit/modal-dialog": "^12.18.0",
|
|
53
53
|
"@atlaskit/outbound-auth-flow-client": "^3.4.0",
|
|
54
54
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
55
|
-
"@atlaskit/popup": "^1.
|
|
55
|
+
"@atlaskit/popup": "^1.30.0",
|
|
56
56
|
"@atlaskit/primitives": "^13.3.0",
|
|
57
57
|
"@atlaskit/section-message": "^6.8.0",
|
|
58
|
-
"@atlaskit/select": "^18.
|
|
58
|
+
"@atlaskit/select": "^18.7.0",
|
|
59
59
|
"@atlaskit/spinner": "^16.3.0",
|
|
60
60
|
"@atlaskit/textarea": "^5.6.0",
|
|
61
61
|
"@atlaskit/textfield": "^6.6.0",
|
|
@@ -173,6 +173,12 @@
|
|
|
173
173
|
},
|
|
174
174
|
"smart_links_for_plans_platform": {
|
|
175
175
|
"type": "boolean"
|
|
176
|
+
},
|
|
177
|
+
"platform_smart-card-migrate-operational-analytics": {
|
|
178
|
+
"type": "boolean"
|
|
179
|
+
},
|
|
180
|
+
"smart-card-remove-block-card-from-embed": {
|
|
181
|
+
"type": "boolean"
|
|
176
182
|
}
|
|
177
183
|
}
|
|
178
184
|
}
|