@atlaskit/smart-card 26.24.0 → 26.25.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 +10 -0
- package/dist/cjs/extractors/block/index.js +1 -1
- package/dist/cjs/extractors/common/actions/extractActions.js +3 -31
- package/dist/cjs/state/analytics/useSmartLinkAnalytics.js +7 -15
- package/dist/cjs/state/hooks/use-invoke-client-action/index.js +20 -14
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/BlockCard/views/flexible/FlexibleErroredView.js +1 -0
- package/dist/cjs/view/BlockCard/views/flexible/FlexibleResolvedView.js +3 -45
- package/dist/cjs/view/FlexibleCard/components/actions/action/download-action/index.js +33 -1
- package/dist/cjs/view/FlexibleCard/components/actions/action/preview-action/index.js +41 -15
- package/dist/cjs/view/FlexibleCard/components/actions/action/view-action/index.js +33 -1
- package/dist/cjs/view/FlexibleCard/components/utils.js +9 -20
- package/dist/cjs/view/FlexibleCard/index.js +14 -1
- package/dist/cjs/view/HoverCard/components/HoverCardContent.js +1 -0
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/extractors/block/index.js +2 -2
- package/dist/es2019/extractors/common/actions/extractActions.js +2 -23
- package/dist/es2019/state/analytics/useSmartLinkAnalytics.js +7 -15
- package/dist/es2019/state/hooks/use-invoke-client-action/index.js +14 -8
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/BlockCard/views/flexible/FlexibleErroredView.js +1 -0
- package/dist/es2019/view/BlockCard/views/flexible/FlexibleResolvedView.js +4 -42
- package/dist/es2019/view/FlexibleCard/components/actions/action/download-action/index.js +15 -1
- package/dist/es2019/view/FlexibleCard/components/actions/action/preview-action/index.js +18 -7
- package/dist/es2019/view/FlexibleCard/components/actions/action/view-action/index.js +15 -1
- package/dist/es2019/view/FlexibleCard/components/utils.js +3 -17
- package/dist/es2019/view/FlexibleCard/index.js +11 -1
- package/dist/es2019/view/HoverCard/components/HoverCardContent.js +1 -0
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/extractors/block/index.js +2 -2
- package/dist/esm/extractors/common/actions/extractActions.js +2 -30
- package/dist/esm/state/analytics/useSmartLinkAnalytics.js +7 -15
- package/dist/esm/state/hooks/use-invoke-client-action/index.js +20 -14
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/BlockCard/views/flexible/FlexibleErroredView.js +1 -0
- package/dist/esm/view/BlockCard/views/flexible/FlexibleResolvedView.js +4 -46
- package/dist/esm/view/FlexibleCard/components/actions/action/download-action/index.js +33 -1
- package/dist/esm/view/FlexibleCard/components/actions/action/preview-action/index.js +41 -15
- package/dist/esm/view/FlexibleCard/components/actions/action/view-action/index.js +33 -1
- package/dist/esm/view/FlexibleCard/components/utils.js +9 -20
- package/dist/esm/view/FlexibleCard/index.js +14 -1
- package/dist/esm/view/HoverCard/components/HoverCardContent.js +1 -0
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/types/extractors/common/__mocks__/jsonld.d.ts +0 -1
- package/dist/types/extractors/common/actions/extractActions.d.ts +1 -1
- package/dist/types/state/analytics/useSmartLinkAnalytics.d.ts +4 -4
- package/dist/types/state/flexible-ui-context/index.d.ts +3 -119
- package/dist/types/state/flexible-ui-context/types.d.ts +6 -0
- package/dist/types/state/hooks/useSmartLink.d.ts +3 -3
- package/dist/types/utils/analytics/types.d.ts +3 -3
- package/dist/types/utils/mocks.d.ts +3 -3
- package/dist/types/view/Card/index.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/utils.d.ts +2 -63
- package/dist/types/view/FlexibleCard/types.d.ts +2 -3
- package/dist/types-ts4.5/extractors/common/__mocks__/jsonld.d.ts +0 -1
- package/dist/types-ts4.5/extractors/common/actions/extractActions.d.ts +1 -1
- package/dist/types-ts4.5/state/analytics/useSmartLinkAnalytics.d.ts +4 -4
- package/dist/types-ts4.5/state/flexible-ui-context/index.d.ts +3 -119
- package/dist/types-ts4.5/state/flexible-ui-context/types.d.ts +6 -0
- package/dist/types-ts4.5/state/hooks/useSmartLink.d.ts +3 -3
- package/dist/types-ts4.5/utils/analytics/types.d.ts +3 -3
- package/dist/types-ts4.5/utils/mocks.d.ts +3 -3
- package/dist/types-ts4.5/view/Card/index.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/utils.d.ts +2 -63
- package/dist/types-ts4.5/view/FlexibleCard/types.d.ts +2 -3
- package/package.json +1 -1
- package/report.api.md +6 -6
- package/tmp/api-report-tmp.d.ts +6 -6
|
@@ -25,12 +25,12 @@ export type UnresolvedEventProps = CommonEventProps & {
|
|
|
25
25
|
error?: APIError;
|
|
26
26
|
};
|
|
27
27
|
export type InvokeSucceededEventProps = CommonEventProps & {
|
|
28
|
-
id
|
|
28
|
+
id?: string;
|
|
29
29
|
actionType: string;
|
|
30
30
|
display?: CardInnerAppearance;
|
|
31
31
|
};
|
|
32
32
|
export type InvokeFailedEventProps = CommonEventProps & {
|
|
33
|
-
id
|
|
33
|
+
id?: string;
|
|
34
34
|
actionType: string;
|
|
35
35
|
display?: CardInnerAppearance;
|
|
36
36
|
reason: string;
|
|
@@ -69,7 +69,7 @@ export type UiIframeFocusedEventProps = CommonEventProps & {
|
|
|
69
69
|
status: CardType;
|
|
70
70
|
};
|
|
71
71
|
export type UiActionClickedEventProps = CommonEventProps & {
|
|
72
|
-
id
|
|
72
|
+
id?: string;
|
|
73
73
|
display?: CardInnerAppearance;
|
|
74
74
|
actionType: string;
|
|
75
75
|
invokeType?: InvokeType;
|
|
@@ -49,7 +49,7 @@ export declare const mockAnalytics: {
|
|
|
49
49
|
cardClickedEvent: ({ id, display, status, definitionId, extensionKey, isModifierKeyPressed, location, destinationProduct, destinationSubproduct, actionSubjectId, }: import("./analytics/types").UiCardClickedEventProps) => void;
|
|
50
50
|
iframeDwelledEvent: ({ id, display, status, definitionId, extensionKey, location, destinationProduct, destinationSubproduct, dwellTime, dwellPercentVisible, }: import("./analytics/types").UiIframeDwelledEventProps) => void;
|
|
51
51
|
iframeFocusedEvent: ({ id, display, status, definitionId, extensionKey, location, destinationProduct, destinationSubproduct, }: import("./analytics/types").UiIframeFocusedEventProps) => void;
|
|
52
|
-
actionClickedEvent: ({ id
|
|
52
|
+
actionClickedEvent: ({ id, actionType, display, invokeType, extensionKey: overrideExtensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("./analytics/types").UiActionClickedEventProps) => void;
|
|
53
53
|
hoverCardOpenLinkClickedEvent: ({ previewDisplay, definitionId, extensionKey, destinationProduct, destinationSubproduct, location, previewInvokeMethod, }: import("./analytics/types").UiHoverCardOpenLinkClickedEventProps) => void;
|
|
54
54
|
closedAuthEvent: ({ display, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("./analytics/types").UiClosedAuthEventProps) => void;
|
|
55
55
|
modalClosedEvent: (data: Partial<import("./types").AnalyticsPayload> & {
|
|
@@ -65,8 +65,8 @@ export declare const mockAnalytics: {
|
|
|
65
65
|
smartLinkLozengeActionErrorOpenPreviewClickedEvent: () => void;
|
|
66
66
|
};
|
|
67
67
|
operational: {
|
|
68
|
-
invokeSucceededEvent: ({ id
|
|
69
|
-
invokeFailedEvent: ({ id
|
|
68
|
+
invokeSucceededEvent: ({ id, actionType, display, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("./analytics/types").InvokeSucceededEventProps) => void;
|
|
69
|
+
invokeFailedEvent: ({ id, actionType, display, reason, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("./analytics/types").InvokeFailedEventProps) => void;
|
|
70
70
|
connectSucceededEvent: ({ id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("./analytics/types").ConnectSucceededEventProps) => void;
|
|
71
71
|
connectFailedEvent: ({ id, reason, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("./analytics/types").ConnectFailedEventProps) => void;
|
|
72
72
|
instrument: ({ id, status, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, error, }: import("./analytics/types").InstrumentEventProps) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { CardAppearance, CardPlatform, CardProps } from './types';
|
|
3
3
|
import { WrappedComponentProps } from 'react-intl-next';
|
|
4
|
-
export declare const Card: React.ForwardRefExoticComponent<Pick<Omit<React.PropsWithChildren<import("react-intl-next").WithIntlProps<CardProps & WrappedComponentProps<"intl">>>, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "url" | "children" | "data" | "key" | "id" | "placeholder" | "onError" | "onClick" | "appearance" | "testId" | "analyticsContext" | "isSelected" | "inheritDimensions" | "
|
|
4
|
+
export declare const Card: React.ForwardRefExoticComponent<Pick<Omit<React.PropsWithChildren<import("react-intl-next").WithIntlProps<CardProps & WrappedComponentProps<"intl">>>, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "url" | "children" | "data" | "key" | "id" | "placeholder" | "onError" | "onClick" | "appearance" | "testId" | "analyticsContext" | "isSelected" | "inheritDimensions" | "showServerActions" | "onResolve" | "ui" | "showHoverPreview" | "showAuthTooltip" | "platform" | "isFrameVisible" | "frameStyle" | "importer" | "container" | "showActions" | "fallbackComponent" | "embedIframeRef" | "embedIframeUrlType" | "inlinePreloaderStyle" | "analyticsEvents" | "forwardedRef"> & React.RefAttributes<any>>;
|
|
5
5
|
export type { CardAppearance, CardProps, CardPlatform };
|
|
@@ -3,9 +3,9 @@ import { SerializedStyles } from '@emotion/react';
|
|
|
3
3
|
import { Spacing } from '@atlaskit/button';
|
|
4
4
|
import { SmartLinkSize } from '../../../constants';
|
|
5
5
|
import { MessageProps } from './types';
|
|
6
|
-
import { AnalyticsFacade } from '../../../state/analytics';
|
|
7
6
|
import { PreviewActionData } from '../../../state/flexible-ui-context/types';
|
|
8
7
|
import { IntlShape, MessageDescriptor } from 'react-intl-next';
|
|
8
|
+
import { EmbedModalProps } from '../../EmbedModal/types';
|
|
9
9
|
export declare const sizeToButtonSpacing: Record<SmartLinkSize, Spacing>;
|
|
10
10
|
export declare const getFormattedMessage: (message?: MessageProps) => JSX.Element | undefined;
|
|
11
11
|
export declare const getFormattedMessageAsString: (intl: IntlShape, message: MessageDescriptor, context?: string) => string;
|
|
@@ -17,65 +17,4 @@ export declare const getMaxLineHeight: (size: SmartLinkSize) => 1.5 | 1.75;
|
|
|
17
17
|
export declare const getMaxLines: (value: number, defaultValue: number, max: number, min: number) => number;
|
|
18
18
|
export declare const getTruncateStyles: (maxLines: number, lineHeight?: string, wordBreak?: 'break-word' | 'break-all') => SerializedStyles;
|
|
19
19
|
export declare const hasWhiteSpace: (str: string) => boolean;
|
|
20
|
-
export declare const openEmbedModalWithFlexibleUiIcon: ({
|
|
21
|
-
analytics?: {
|
|
22
|
-
ui: {
|
|
23
|
-
authEvent: ({ display, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../../utils/analytics/types").UiAuthEventProps) => void;
|
|
24
|
-
authAlternateAccountEvent: ({ display, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../../utils/analytics/types").UiAuthAlternateAccountEventProps) => void;
|
|
25
|
-
buttonClickedEvent: (data: Partial<import("../../..").AnalyticsPayload> & {
|
|
26
|
-
actionSubjectId: string;
|
|
27
|
-
}) => void;
|
|
28
|
-
cardClickedEvent: ({ id, display, status, definitionId, extensionKey, isModifierKeyPressed, location, destinationProduct, destinationSubproduct, actionSubjectId, }: import("../../../utils/analytics/types").UiCardClickedEventProps) => void;
|
|
29
|
-
iframeDwelledEvent: ({ id, display, status, definitionId, extensionKey, location, destinationProduct, destinationSubproduct, dwellTime, dwellPercentVisible, }: import("../../../utils/analytics/types").UiIframeDwelledEventProps) => void;
|
|
30
|
-
iframeFocusedEvent: ({ id, display, status, definitionId, extensionKey, location, destinationProduct, destinationSubproduct, }: import("../../../utils/analytics/types").UiIframeFocusedEventProps) => void;
|
|
31
|
-
actionClickedEvent: ({ id: experienceId, actionType, display, invokeType, extensionKey: overrideExtensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../../utils/analytics/types").UiActionClickedEventProps) => void;
|
|
32
|
-
hoverCardOpenLinkClickedEvent: ({ previewDisplay, definitionId, extensionKey, destinationProduct, destinationSubproduct, location, previewInvokeMethod, }: import("../../../utils/analytics/types").UiHoverCardOpenLinkClickedEventProps) => void;
|
|
33
|
-
closedAuthEvent: ({ display, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../../utils/analytics/types").UiClosedAuthEventProps) => void;
|
|
34
|
-
modalClosedEvent: (data: Partial<import("../../..").AnalyticsPayload> & {
|
|
35
|
-
actionSubjectId: string;
|
|
36
|
-
}) => void;
|
|
37
|
-
renderSuccessEvent: ({ display, status, id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../../utils/analytics/types").UiRenderSuccessEventProps) => void;
|
|
38
|
-
renderFailedEvent: ({ display, id, error, errorInfo, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../../utils/analytics/types").UiRenderFailedEventProps) => void;
|
|
39
|
-
hoverCardViewedEvent: ({ previewDisplay, previewInvokeMethod, id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, status, }: import("../../../utils/analytics/types").UiHoverCardViewedEventProps) => void;
|
|
40
|
-
hoverCardDismissedEvent: ({ id, previewDisplay, hoverTime, previewInvokeMethod, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, status, }: import("../../../utils/analytics/types").UiHoverCardDismissedEventProps) => void;
|
|
41
|
-
learnMoreClickedEvent: () => void;
|
|
42
|
-
smartLinkLozengeActionClickedEvent: () => void;
|
|
43
|
-
smartLinkLozengeActionListItemClickedEvent: () => void;
|
|
44
|
-
smartLinkLozengeActionErrorOpenPreviewClickedEvent: () => void;
|
|
45
|
-
};
|
|
46
|
-
operational: {
|
|
47
|
-
invokeSucceededEvent: ({ id: experienceId, actionType, display, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../../utils/analytics/types").InvokeSucceededEventProps) => void;
|
|
48
|
-
invokeFailedEvent: ({ id: experienceId, actionType, display, reason, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../../utils/analytics/types").InvokeFailedEventProps) => void;
|
|
49
|
-
connectSucceededEvent: ({ id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../../utils/analytics/types").ConnectSucceededEventProps) => void;
|
|
50
|
-
connectFailedEvent: ({ id, reason, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../../utils/analytics/types").ConnectFailedEventProps) => void;
|
|
51
|
-
instrument: ({ id, status, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, error, }: import("../../../utils/analytics/types").InstrumentEventProps) => void;
|
|
52
|
-
chunkloadFailedEvent: ({ display, error, errorInfo, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../../utils/analytics/types").UiRenderFailedEventProps) => void;
|
|
53
|
-
};
|
|
54
|
-
track: {
|
|
55
|
-
appAccountConnected: ({ extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../../utils/analytics/types").CommonEventProps) => void;
|
|
56
|
-
appAccountAuthStarted: ({ extensionKey, location, }: import("../../../utils/analytics/types").CommonEventProps) => void;
|
|
57
|
-
linkUpdated: (props: import("../../../utils/analytics/types").CommonEventProps & {
|
|
58
|
-
[key: string]: any;
|
|
59
|
-
}) => void;
|
|
60
|
-
smartLinkQuickActionStarted: (props: {
|
|
61
|
-
smartLinkActionType: import("@atlaskit/linking-types").SmartLinkActionType | import("../../../utils/analytics/analytics").TrackQuickActionType;
|
|
62
|
-
}) => void;
|
|
63
|
-
smartLinkQuickActionSuccess: (props: {
|
|
64
|
-
smartLinkActionType: import("@atlaskit/linking-types").SmartLinkActionType | import("../../../utils/analytics/analytics").TrackQuickActionType;
|
|
65
|
-
}) => void;
|
|
66
|
-
smartLinkQuickActionFailed: (props: {
|
|
67
|
-
smartLinkActionType: import("@atlaskit/linking-types").SmartLinkActionType | import("../../../utils/analytics/analytics").TrackQuickActionType;
|
|
68
|
-
reason?: import("../../../utils/analytics/analytics").TrackQuickActionFailureReason | undefined;
|
|
69
|
-
step?: string | undefined;
|
|
70
|
-
}) => void;
|
|
71
|
-
hoverCardResolutionStarted: () => void;
|
|
72
|
-
};
|
|
73
|
-
screen: {
|
|
74
|
-
authPopupEvent: ({ extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../../utils/analytics/types").CommonEventProps) => void;
|
|
75
|
-
modalViewedEvent: (data: Partial<import("../../..").AnalyticsPayload> & {
|
|
76
|
-
name: "embedPreviewModal";
|
|
77
|
-
}) => void;
|
|
78
|
-
};
|
|
79
|
-
} | undefined;
|
|
80
|
-
onClose?: (() => void) | undefined;
|
|
81
|
-
}) => Promise<void>;
|
|
20
|
+
export declare const openEmbedModalWithFlexibleUiIcon: ({ linkIcon, ...props }: Partial<EmbedModalProps> & Pick<PreviewActionData, 'linkIcon'>) => Promise<void>;
|
|
@@ -4,8 +4,7 @@ import type { JsonLd } from 'json-ld-types';
|
|
|
4
4
|
import { CardState, LinkingPlatformFeatureFlags } from '@atlaskit/linking-common';
|
|
5
5
|
import { CardProviderRenderers } from '@atlaskit/link-provider';
|
|
6
6
|
import { SmartLinkSize, SmartLinkStatus, SmartLinkTheme } from '../../constants';
|
|
7
|
-
import {
|
|
8
|
-
import { OnResolveCallback } from '../Card/types';
|
|
7
|
+
import { CardInnerAppearance, OnResolveCallback } from '../Card/types';
|
|
9
8
|
import { OnErrorCallback } from '../types';
|
|
10
9
|
import { AnalyticsFacade } from '../../state/analytics';
|
|
11
10
|
export type FlexibleCardProps = {
|
|
@@ -22,7 +21,7 @@ export type FlexibleCardProps = {
|
|
|
22
21
|
* Determines the appearance of the Smart Link.
|
|
23
22
|
* @internal
|
|
24
23
|
*/
|
|
25
|
-
appearance?:
|
|
24
|
+
appearance?: CardInnerAppearance;
|
|
26
25
|
/**
|
|
27
26
|
* Determines the status and data of the Smart Link.
|
|
28
27
|
* @internal
|
package/package.json
CHANGED
package/report.api.md
CHANGED
|
@@ -637,7 +637,7 @@ type InstrumentEventProps = CommonEventProps & {
|
|
|
637
637
|
|
|
638
638
|
// @public (undocumented)
|
|
639
639
|
type InvokeFailedEventProps = CommonEventProps & {
|
|
640
|
-
id
|
|
640
|
+
id?: string;
|
|
641
641
|
actionType: string;
|
|
642
642
|
display?: CardInnerAppearance;
|
|
643
643
|
reason: string;
|
|
@@ -645,7 +645,7 @@ type InvokeFailedEventProps = CommonEventProps & {
|
|
|
645
645
|
|
|
646
646
|
// @public (undocumented)
|
|
647
647
|
type InvokeSucceededEventProps = CommonEventProps & {
|
|
648
|
-
id
|
|
648
|
+
id?: string;
|
|
649
649
|
actionType: string;
|
|
650
650
|
display?: CardInnerAppearance;
|
|
651
651
|
};
|
|
@@ -986,7 +986,7 @@ enum TrackQuickActionType {
|
|
|
986
986
|
|
|
987
987
|
// @public (undocumented)
|
|
988
988
|
type UiActionClickedEventProps = CommonEventProps & {
|
|
989
|
-
id
|
|
989
|
+
id?: string;
|
|
990
990
|
display?: CardInnerAppearance;
|
|
991
991
|
actionType: string;
|
|
992
992
|
invokeType?: InvokeType;
|
|
@@ -1132,7 +1132,7 @@ export const useSmartLinkAnalytics: (
|
|
|
1132
1132
|
destinationSubproduct,
|
|
1133
1133
|
}: UiIframeFocusedEventProps) => void;
|
|
1134
1134
|
actionClickedEvent: ({
|
|
1135
|
-
id
|
|
1135
|
+
id,
|
|
1136
1136
|
actionType,
|
|
1137
1137
|
display,
|
|
1138
1138
|
invokeType,
|
|
@@ -1221,7 +1221,7 @@ export const useSmartLinkAnalytics: (
|
|
|
1221
1221
|
};
|
|
1222
1222
|
operational: {
|
|
1223
1223
|
invokeSucceededEvent: ({
|
|
1224
|
-
id
|
|
1224
|
+
id,
|
|
1225
1225
|
actionType,
|
|
1226
1226
|
display,
|
|
1227
1227
|
extensionKey,
|
|
@@ -1232,7 +1232,7 @@ export const useSmartLinkAnalytics: (
|
|
|
1232
1232
|
location,
|
|
1233
1233
|
}: InvokeSucceededEventProps) => void;
|
|
1234
1234
|
invokeFailedEvent: ({
|
|
1235
|
-
id
|
|
1235
|
+
id,
|
|
1236
1236
|
actionType,
|
|
1237
1237
|
display,
|
|
1238
1238
|
reason,
|
package/tmp/api-report-tmp.d.ts
CHANGED
|
@@ -492,7 +492,7 @@ type InstrumentEventProps = CommonEventProps & {
|
|
|
492
492
|
|
|
493
493
|
// @public (undocumented)
|
|
494
494
|
type InvokeFailedEventProps = CommonEventProps & {
|
|
495
|
-
id
|
|
495
|
+
id?: string;
|
|
496
496
|
actionType: string;
|
|
497
497
|
display?: CardInnerAppearance;
|
|
498
498
|
reason: string;
|
|
@@ -500,7 +500,7 @@ type InvokeFailedEventProps = CommonEventProps & {
|
|
|
500
500
|
|
|
501
501
|
// @public (undocumented)
|
|
502
502
|
type InvokeSucceededEventProps = CommonEventProps & {
|
|
503
|
-
id
|
|
503
|
+
id?: string;
|
|
504
504
|
actionType: string;
|
|
505
505
|
display?: CardInnerAppearance;
|
|
506
506
|
};
|
|
@@ -834,7 +834,7 @@ enum TrackQuickActionType {
|
|
|
834
834
|
|
|
835
835
|
// @public (undocumented)
|
|
836
836
|
type UiActionClickedEventProps = CommonEventProps & {
|
|
837
|
-
id
|
|
837
|
+
id?: string;
|
|
838
838
|
display?: CardInnerAppearance;
|
|
839
839
|
actionType: string;
|
|
840
840
|
invokeType?: InvokeType;
|
|
@@ -925,7 +925,7 @@ export const useSmartLinkAnalytics: (url: string, _dispatchAnalytics?: Analytics
|
|
|
925
925
|
cardClickedEvent: ({ id, display, status, definitionId, extensionKey, isModifierKeyPressed, location, destinationProduct, destinationSubproduct, actionSubjectId, }: UiCardClickedEventProps) => void;
|
|
926
926
|
iframeDwelledEvent: ({ id, display, status, definitionId, extensionKey, location, destinationProduct, destinationSubproduct, dwellTime, dwellPercentVisible, }: UiIframeDwelledEventProps) => void;
|
|
927
927
|
iframeFocusedEvent: ({ id, display, status, definitionId, extensionKey, location, destinationProduct, destinationSubproduct, }: UiIframeFocusedEventProps) => void;
|
|
928
|
-
actionClickedEvent: ({ id
|
|
928
|
+
actionClickedEvent: ({ id, actionType, display, invokeType, extensionKey: overrideExtensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: UiActionClickedEventProps) => void;
|
|
929
929
|
hoverCardOpenLinkClickedEvent: ({ previewDisplay, definitionId, extensionKey, destinationProduct, destinationSubproduct, location, previewInvokeMethod, }: UiHoverCardOpenLinkClickedEventProps) => void;
|
|
930
930
|
closedAuthEvent: ({ display, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: UiClosedAuthEventProps) => void;
|
|
931
931
|
modalClosedEvent: (data: Partial<AnalyticsPayload> & {
|
|
@@ -941,8 +941,8 @@ export const useSmartLinkAnalytics: (url: string, _dispatchAnalytics?: Analytics
|
|
|
941
941
|
smartLinkLozengeActionErrorOpenPreviewClickedEvent: () => void;
|
|
942
942
|
};
|
|
943
943
|
operational: {
|
|
944
|
-
invokeSucceededEvent: ({ id
|
|
945
|
-
invokeFailedEvent: ({ id
|
|
944
|
+
invokeSucceededEvent: ({ id, actionType, display, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: InvokeSucceededEventProps) => void;
|
|
945
|
+
invokeFailedEvent: ({ id, actionType, display, reason, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: InvokeFailedEventProps) => void;
|
|
946
946
|
connectSucceededEvent: ({ id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: ConnectSucceededEventProps) => void;
|
|
947
947
|
connectFailedEvent: ({ id, reason, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: ConnectFailedEventProps) => void;
|
|
948
948
|
instrument: ({ id, status, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, error, }: InstrumentEventProps) => void;
|