@atlaskit/smart-card 26.24.0 → 26.26.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 (84) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/cjs/extractors/block/index.js +1 -1
  3. package/dist/cjs/extractors/common/actions/extractActions.js +3 -31
  4. package/dist/cjs/state/analytics/useSmartLinkAnalytics.js +10 -15
  5. package/dist/cjs/state/hooks/use-invoke/utils.js +23 -0
  6. package/dist/cjs/state/hooks/use-invoke-client-action/index.js +20 -14
  7. package/dist/cjs/utils/analytics/analytics.js +28 -7
  8. package/dist/cjs/utils/mocks.js +7 -2
  9. package/dist/cjs/view/BlockCard/views/flexible/FlexibleErroredView.js +1 -0
  10. package/dist/cjs/view/BlockCard/views/flexible/FlexibleResolvedView.js +3 -45
  11. package/dist/cjs/view/FlexibleCard/components/actions/action/download-action/index.js +33 -1
  12. package/dist/cjs/view/FlexibleCard/components/actions/action/preview-action/index.js +41 -15
  13. package/dist/cjs/view/FlexibleCard/components/actions/action/server-action/index.js +32 -15
  14. package/dist/cjs/view/FlexibleCard/components/actions/action/view-action/index.js +33 -1
  15. package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/index.js +2 -4
  16. package/dist/cjs/view/FlexibleCard/components/utils.js +9 -20
  17. package/dist/cjs/view/FlexibleCard/index.js +14 -1
  18. package/dist/cjs/view/HoverCard/components/HoverCardContent.js +1 -0
  19. package/dist/cjs/view/LinkUrl/index.js +1 -1
  20. package/dist/es2019/extractors/block/index.js +2 -2
  21. package/dist/es2019/extractors/common/actions/extractActions.js +2 -23
  22. package/dist/es2019/state/analytics/useSmartLinkAnalytics.js +10 -17
  23. package/dist/es2019/state/hooks/use-invoke/utils.js +13 -0
  24. package/dist/es2019/state/hooks/use-invoke-client-action/index.js +14 -8
  25. package/dist/es2019/utils/analytics/analytics.js +65 -32
  26. package/dist/es2019/utils/mocks.js +7 -2
  27. package/dist/es2019/view/BlockCard/views/flexible/FlexibleErroredView.js +1 -0
  28. package/dist/es2019/view/BlockCard/views/flexible/FlexibleResolvedView.js +4 -42
  29. package/dist/es2019/view/FlexibleCard/components/actions/action/download-action/index.js +15 -1
  30. package/dist/es2019/view/FlexibleCard/components/actions/action/preview-action/index.js +18 -7
  31. package/dist/es2019/view/FlexibleCard/components/actions/action/server-action/index.js +19 -1
  32. package/dist/es2019/view/FlexibleCard/components/actions/action/view-action/index.js +15 -1
  33. package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/index.js +1 -1
  34. package/dist/es2019/view/FlexibleCard/components/utils.js +3 -17
  35. package/dist/es2019/view/FlexibleCard/index.js +11 -1
  36. package/dist/es2019/view/HoverCard/components/HoverCardContent.js +1 -0
  37. package/dist/es2019/view/LinkUrl/index.js +1 -1
  38. package/dist/esm/extractors/block/index.js +2 -2
  39. package/dist/esm/extractors/common/actions/extractActions.js +2 -30
  40. package/dist/esm/state/analytics/useSmartLinkAnalytics.js +11 -16
  41. package/dist/esm/state/hooks/use-invoke/utils.js +15 -0
  42. package/dist/esm/state/hooks/use-invoke-client-action/index.js +20 -14
  43. package/dist/esm/utils/analytics/analytics.js +23 -5
  44. package/dist/esm/utils/mocks.js +7 -2
  45. package/dist/esm/view/BlockCard/views/flexible/FlexibleErroredView.js +1 -0
  46. package/dist/esm/view/BlockCard/views/flexible/FlexibleResolvedView.js +4 -46
  47. package/dist/esm/view/FlexibleCard/components/actions/action/download-action/index.js +33 -1
  48. package/dist/esm/view/FlexibleCard/components/actions/action/preview-action/index.js +41 -15
  49. package/dist/esm/view/FlexibleCard/components/actions/action/server-action/index.js +32 -15
  50. package/dist/esm/view/FlexibleCard/components/actions/action/view-action/index.js +33 -1
  51. package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/index.js +1 -3
  52. package/dist/esm/view/FlexibleCard/components/utils.js +9 -20
  53. package/dist/esm/view/FlexibleCard/index.js +14 -1
  54. package/dist/esm/view/HoverCard/components/HoverCardContent.js +1 -0
  55. package/dist/esm/view/LinkUrl/index.js +1 -1
  56. package/dist/types/extractors/common/__mocks__/jsonld.d.ts +0 -1
  57. package/dist/types/extractors/common/actions/extractActions.d.ts +1 -1
  58. package/dist/types/state/analytics/useSmartLinkAnalytics.d.ts +6 -5
  59. package/dist/types/state/flexible-ui-context/index.d.ts +3 -119
  60. package/dist/types/state/flexible-ui-context/types.d.ts +6 -0
  61. package/dist/types/state/hooks/use-invoke/utils.d.ts +4 -0
  62. package/dist/types/state/hooks/useSmartLink.d.ts +4 -3
  63. package/dist/types/utils/analytics/analytics.d.ts +4 -1
  64. package/dist/types/utils/analytics/types.d.ts +7 -3
  65. package/dist/types/utils/mocks.d.ts +4 -3
  66. package/dist/types/view/Card/index.d.ts +1 -1
  67. package/dist/types/view/FlexibleCard/components/utils.d.ts +2 -63
  68. package/dist/types/view/FlexibleCard/types.d.ts +2 -3
  69. package/dist/types-ts4.5/extractors/common/__mocks__/jsonld.d.ts +0 -1
  70. package/dist/types-ts4.5/extractors/common/actions/extractActions.d.ts +1 -1
  71. package/dist/types-ts4.5/state/analytics/useSmartLinkAnalytics.d.ts +6 -5
  72. package/dist/types-ts4.5/state/flexible-ui-context/index.d.ts +3 -119
  73. package/dist/types-ts4.5/state/flexible-ui-context/types.d.ts +6 -0
  74. package/dist/types-ts4.5/state/hooks/use-invoke/utils.d.ts +4 -0
  75. package/dist/types-ts4.5/state/hooks/useSmartLink.d.ts +4 -3
  76. package/dist/types-ts4.5/utils/analytics/analytics.d.ts +4 -1
  77. package/dist/types-ts4.5/utils/analytics/types.d.ts +7 -3
  78. package/dist/types-ts4.5/utils/mocks.d.ts +4 -3
  79. package/dist/types-ts4.5/view/Card/index.d.ts +1 -1
  80. package/dist/types-ts4.5/view/FlexibleCard/components/utils.d.ts +2 -63
  81. package/dist/types-ts4.5/view/FlexibleCard/types.d.ts +2 -3
  82. package/package.json +2 -2
  83. package/report.api.md +14 -6
  84. package/tmp/api-report-tmp.d.ts +12 -6
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { FlexibleUiDataContext } from './types';
2
+ import type { FlexibleAnalyticsContextType, FlexibleUiDataContext } from './types';
3
3
  import { FlexibleUiOptions } from '../../view/FlexibleCard/types';
4
4
  /**
5
5
  * This provides the data that will be used by Smart Links Flexible UI to populate it's
@@ -11,124 +11,8 @@ export declare const useFlexibleUiContext: () => FlexibleUiDataContext | undefin
11
11
  * This provides the data that will be used by Smart Links Flexible UI to populate it's
12
12
  * underlying elements.
13
13
  */
14
- export declare const FlexibleUiAnalyticsContext: import("react").Context<{
15
- ui: {
16
- authEvent: ({ display, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").UiAuthEventProps) => void;
17
- authAlternateAccountEvent: ({ display, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").UiAuthAlternateAccountEventProps) => void;
18
- buttonClickedEvent: (data: Partial<import("../..").AnalyticsPayload> & {
19
- actionSubjectId: string;
20
- }) => void;
21
- cardClickedEvent: ({ id, display, status, definitionId, extensionKey, isModifierKeyPressed, location, destinationProduct, destinationSubproduct, actionSubjectId, }: import("../../utils/analytics/types").UiCardClickedEventProps) => void;
22
- iframeDwelledEvent: ({ id, display, status, definitionId, extensionKey, location, destinationProduct, destinationSubproduct, dwellTime, dwellPercentVisible, }: import("../../utils/analytics/types").UiIframeDwelledEventProps) => void;
23
- iframeFocusedEvent: ({ id, display, status, definitionId, extensionKey, location, destinationProduct, destinationSubproduct, }: import("../../utils/analytics/types").UiIframeFocusedEventProps) => void;
24
- actionClickedEvent: ({ id: experienceId, actionType, display, invokeType, extensionKey: overrideExtensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").UiActionClickedEventProps) => void;
25
- hoverCardOpenLinkClickedEvent: ({ previewDisplay, definitionId, extensionKey, destinationProduct, destinationSubproduct, location, previewInvokeMethod, }: import("../../utils/analytics/types").UiHoverCardOpenLinkClickedEventProps) => void;
26
- closedAuthEvent: ({ display, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").UiClosedAuthEventProps) => void;
27
- modalClosedEvent: (data: Partial<import("../..").AnalyticsPayload> & {
28
- actionSubjectId: string;
29
- }) => void;
30
- renderSuccessEvent: ({ display, status, id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").UiRenderSuccessEventProps) => void;
31
- renderFailedEvent: ({ display, id, error, errorInfo, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").UiRenderFailedEventProps) => void;
32
- hoverCardViewedEvent: ({ previewDisplay, previewInvokeMethod, id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, status, }: import("../../utils/analytics/types").UiHoverCardViewedEventProps) => void;
33
- hoverCardDismissedEvent: ({ id, previewDisplay, hoverTime, previewInvokeMethod, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, status, }: import("../../utils/analytics/types").UiHoverCardDismissedEventProps) => void;
34
- learnMoreClickedEvent: () => void;
35
- smartLinkLozengeActionClickedEvent: () => void;
36
- smartLinkLozengeActionListItemClickedEvent: () => void;
37
- smartLinkLozengeActionErrorOpenPreviewClickedEvent: () => void;
38
- };
39
- operational: {
40
- invokeSucceededEvent: ({ id: experienceId, actionType, display, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").InvokeSucceededEventProps) => void;
41
- invokeFailedEvent: ({ id: experienceId, actionType, display, reason, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").InvokeFailedEventProps) => void;
42
- connectSucceededEvent: ({ id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").ConnectSucceededEventProps) => void;
43
- connectFailedEvent: ({ id, reason, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").ConnectFailedEventProps) => void;
44
- instrument: ({ id, status, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, error, }: import("../../utils/analytics/types").InstrumentEventProps) => void;
45
- chunkloadFailedEvent: ({ display, error, errorInfo, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").UiRenderFailedEventProps) => void;
46
- };
47
- track: {
48
- appAccountConnected: ({ extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").CommonEventProps) => void;
49
- appAccountAuthStarted: ({ extensionKey, location, }: import("../../utils/analytics/types").CommonEventProps) => void;
50
- linkUpdated: (props: import("../../utils/analytics/types").CommonEventProps & {
51
- [key: string]: any;
52
- }) => void;
53
- smartLinkQuickActionStarted: (props: {
54
- smartLinkActionType: import("@atlaskit/linking-types").SmartLinkActionType | import("../../utils/analytics/analytics").TrackQuickActionType;
55
- }) => void;
56
- smartLinkQuickActionSuccess: (props: {
57
- smartLinkActionType: import("@atlaskit/linking-types").SmartLinkActionType | import("../../utils/analytics/analytics").TrackQuickActionType;
58
- }) => void;
59
- smartLinkQuickActionFailed: (props: {
60
- smartLinkActionType: import("@atlaskit/linking-types").SmartLinkActionType | import("../../utils/analytics/analytics").TrackQuickActionType;
61
- reason?: import("../../utils/analytics/analytics").TrackQuickActionFailureReason | undefined;
62
- step?: string | undefined;
63
- }) => void;
64
- hoverCardResolutionStarted: () => void;
65
- };
66
- screen: {
67
- authPopupEvent: ({ extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").CommonEventProps) => void;
68
- modalViewedEvent: (data: Partial<import("../..").AnalyticsPayload> & {
69
- name: "embedPreviewModal";
70
- }) => void;
71
- };
72
- } | undefined>;
73
- export declare const useFlexibleUiAnalyticsContext: () => {
74
- ui: {
75
- authEvent: ({ display, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").UiAuthEventProps) => void;
76
- authAlternateAccountEvent: ({ display, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").UiAuthAlternateAccountEventProps) => void;
77
- buttonClickedEvent: (data: Partial<import("../..").AnalyticsPayload> & {
78
- actionSubjectId: string;
79
- }) => void;
80
- cardClickedEvent: ({ id, display, status, definitionId, extensionKey, isModifierKeyPressed, location, destinationProduct, destinationSubproduct, actionSubjectId, }: import("../../utils/analytics/types").UiCardClickedEventProps) => void;
81
- iframeDwelledEvent: ({ id, display, status, definitionId, extensionKey, location, destinationProduct, destinationSubproduct, dwellTime, dwellPercentVisible, }: import("../../utils/analytics/types").UiIframeDwelledEventProps) => void;
82
- iframeFocusedEvent: ({ id, display, status, definitionId, extensionKey, location, destinationProduct, destinationSubproduct, }: import("../../utils/analytics/types").UiIframeFocusedEventProps) => void;
83
- actionClickedEvent: ({ id: experienceId, actionType, display, invokeType, extensionKey: overrideExtensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").UiActionClickedEventProps) => void;
84
- hoverCardOpenLinkClickedEvent: ({ previewDisplay, definitionId, extensionKey, destinationProduct, destinationSubproduct, location, previewInvokeMethod, }: import("../../utils/analytics/types").UiHoverCardOpenLinkClickedEventProps) => void;
85
- closedAuthEvent: ({ display, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").UiClosedAuthEventProps) => void;
86
- modalClosedEvent: (data: Partial<import("../..").AnalyticsPayload> & {
87
- actionSubjectId: string;
88
- }) => void;
89
- renderSuccessEvent: ({ display, status, id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").UiRenderSuccessEventProps) => void;
90
- renderFailedEvent: ({ display, id, error, errorInfo, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").UiRenderFailedEventProps) => void;
91
- hoverCardViewedEvent: ({ previewDisplay, previewInvokeMethod, id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, status, }: import("../../utils/analytics/types").UiHoverCardViewedEventProps) => void;
92
- hoverCardDismissedEvent: ({ id, previewDisplay, hoverTime, previewInvokeMethod, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, status, }: import("../../utils/analytics/types").UiHoverCardDismissedEventProps) => void;
93
- learnMoreClickedEvent: () => void;
94
- smartLinkLozengeActionClickedEvent: () => void;
95
- smartLinkLozengeActionListItemClickedEvent: () => void;
96
- smartLinkLozengeActionErrorOpenPreviewClickedEvent: () => void;
97
- };
98
- operational: {
99
- invokeSucceededEvent: ({ id: experienceId, actionType, display, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").InvokeSucceededEventProps) => void;
100
- invokeFailedEvent: ({ id: experienceId, actionType, display, reason, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").InvokeFailedEventProps) => void;
101
- connectSucceededEvent: ({ id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").ConnectSucceededEventProps) => void;
102
- connectFailedEvent: ({ id, reason, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").ConnectFailedEventProps) => void;
103
- instrument: ({ id, status, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, error, }: import("../../utils/analytics/types").InstrumentEventProps) => void;
104
- chunkloadFailedEvent: ({ display, error, errorInfo, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").UiRenderFailedEventProps) => void;
105
- };
106
- track: {
107
- appAccountConnected: ({ extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").CommonEventProps) => void;
108
- appAccountAuthStarted: ({ extensionKey, location, }: import("../../utils/analytics/types").CommonEventProps) => void;
109
- linkUpdated: (props: import("../../utils/analytics/types").CommonEventProps & {
110
- [key: string]: any;
111
- }) => void;
112
- smartLinkQuickActionStarted: (props: {
113
- smartLinkActionType: import("@atlaskit/linking-types").SmartLinkActionType | import("../../utils/analytics/analytics").TrackQuickActionType;
114
- }) => void;
115
- smartLinkQuickActionSuccess: (props: {
116
- smartLinkActionType: import("@atlaskit/linking-types").SmartLinkActionType | import("../../utils/analytics/analytics").TrackQuickActionType;
117
- }) => void;
118
- smartLinkQuickActionFailed: (props: {
119
- smartLinkActionType: import("@atlaskit/linking-types").SmartLinkActionType | import("../../utils/analytics/analytics").TrackQuickActionType;
120
- reason?: import("../../utils/analytics/analytics").TrackQuickActionFailureReason | undefined;
121
- step?: string | undefined;
122
- }) => void;
123
- hoverCardResolutionStarted: () => void;
124
- };
125
- screen: {
126
- authPopupEvent: ({ extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").CommonEventProps) => void;
127
- modalViewedEvent: (data: Partial<import("../..").AnalyticsPayload> & {
128
- name: "embedPreviewModal";
129
- }) => void;
130
- };
131
- } | undefined;
14
+ export declare const FlexibleUiAnalyticsContext: import("react").Context<FlexibleAnalyticsContextType | undefined>;
15
+ export declare const useFlexibleUiAnalyticsContext: () => FlexibleAnalyticsContextType | undefined;
132
16
  /**
133
17
  * This provides the ui options that will be used by Smart Links Flexible UI
134
18
  * to render its underlying elements.
@@ -2,6 +2,8 @@ import { LinkLozenge } from '../../extractors/common/lozenge/types';
2
2
  import { LinkPerson } from '@atlaskit/link-extractors';
3
3
  import { IconType, MediaType } from '../../constants';
4
4
  import { InvokeRequestWithCardDetails } from '../hooks/use-invoke/types';
5
+ import type { CardInnerAppearance } from '../../view/Card/types';
6
+ import type { AnalyticsFacade } from '../analytics';
5
7
  /**
6
8
  * This provides the data that will be used by Smart Links Flexible UI to populate it's
7
9
  * underlying elements.
@@ -261,6 +263,10 @@ export type ViewActionData = {
261
263
  export type DownloadActionData = {
262
264
  downloadUrl?: string;
263
265
  };
266
+ export type FlexibleAnalyticsContextType = AnalyticsFacade & {
267
+ display?: CardInnerAppearance;
268
+ extensionKey?: string;
269
+ };
264
270
  export type ServerActionProp<TValue> = {
265
271
  action: InvokeRequestWithCardDetails;
266
272
  value?: TValue;
@@ -0,0 +1,4 @@
1
+ import { InvokeError } from '@atlaskit/linking-types';
2
+ import { TrackQuickActionFailureReason } from '../../../utils/analytics/analytics';
3
+ export declare const getInvokeFailureReason: (err: InvokeError | Error) => TrackQuickActionFailureReason.PermissionError | TrackQuickActionFailureReason.UnknownError;
4
+ export declare const isInvokeCustomError: (err: InvokeError | Error) => err is InvokeError;
@@ -24,7 +24,7 @@ dispatchAnalytics?: AnalyticsHandler): {
24
24
  cardClickedEvent: ({ id, display, status, definitionId, extensionKey, isModifierKeyPressed, location, destinationProduct, destinationSubproduct, actionSubjectId, }: import("../../utils/analytics/types").UiCardClickedEventProps) => void;
25
25
  iframeDwelledEvent: ({ id, display, status, definitionId, extensionKey, location, destinationProduct, destinationSubproduct, dwellTime, dwellPercentVisible, }: import("../../utils/analytics/types").UiIframeDwelledEventProps) => void;
26
26
  iframeFocusedEvent: ({ id, display, status, definitionId, extensionKey, location, destinationProduct, destinationSubproduct, }: import("../../utils/analytics/types").UiIframeFocusedEventProps) => void;
27
- actionClickedEvent: ({ id: experienceId, actionType, display, invokeType, extensionKey: overrideExtensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").UiActionClickedEventProps) => void;
27
+ actionClickedEvent: ({ id, actionType, display, invokeType, extensionKey: overrideExtensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").UiActionClickedEventProps) => void;
28
28
  hoverCardOpenLinkClickedEvent: ({ previewDisplay, definitionId, extensionKey, destinationProduct, destinationSubproduct, location, previewInvokeMethod, }: import("../../utils/analytics/types").UiHoverCardOpenLinkClickedEventProps) => void;
29
29
  closedAuthEvent: ({ display, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").UiClosedAuthEventProps) => void;
30
30
  modalClosedEvent: (data: Partial<import("../../utils/types").AnalyticsPayload> & {
@@ -38,10 +38,11 @@ dispatchAnalytics?: AnalyticsHandler): {
38
38
  smartLinkLozengeActionClickedEvent: () => void;
39
39
  smartLinkLozengeActionListItemClickedEvent: () => void;
40
40
  smartLinkLozengeActionErrorOpenPreviewClickedEvent: () => void;
41
+ smartLinkServerActionClickedEvent: (props: import("../../utils/analytics/types").UiServerActionClickedEventProps) => void;
41
42
  };
42
43
  operational: {
43
- invokeSucceededEvent: ({ id: experienceId, actionType, display, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").InvokeSucceededEventProps) => void;
44
- invokeFailedEvent: ({ id: experienceId, actionType, display, reason, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").InvokeFailedEventProps) => void;
44
+ invokeSucceededEvent: ({ id, actionType, display, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").InvokeSucceededEventProps) => void;
45
+ invokeFailedEvent: ({ id, actionType, display, reason, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").InvokeFailedEventProps) => void;
45
46
  connectSucceededEvent: ({ id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").ConnectSucceededEventProps) => void;
46
47
  connectFailedEvent: ({ id, reason, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").ConnectFailedEventProps) => void;
47
48
  instrument: ({ id, status, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, error, }: import("../../utils/analytics/types").InstrumentEventProps) => void;
@@ -1,7 +1,7 @@
1
1
  import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
2
2
  import { AnalyticsPayload } from '../types';
3
3
  import { CardInnerAppearance } from '../../view/Card/types';
4
- import { CommonEventProps, ConnectFailedEventProps, ConnectSucceededEventProps, InvokeFailedEventProps, InvokeSucceededEventProps, ResolvedEventProps, ScreenAuthPopupEventProps, TrackAppAccountConnectedProps, UiActionClickedEventProps, UiAuthAlternateAccountEventProps, UiAuthEventProps, UiCardClickedEventProps, UiClosedAuthEventProps, UiHoverCardDismissedEventProps, UiHoverCardOpenLinkClickedEventProps, UiHoverCardViewedEventProps, UiIframeDwelledEventProps, UiIframeFocusedEventProps, UiRenderFailedEventProps, UiRenderSuccessEventProps, UnresolvedEventProps } from './types';
4
+ import { CommonEventProps, ConnectFailedEventProps, ConnectSucceededEventProps, InvokeFailedEventProps, InvokeSucceededEventProps, ResolvedEventProps, ScreenAuthPopupEventProps, TrackAppAccountConnectedProps, UiActionClickedEventProps, UiAuthAlternateAccountEventProps, UiAuthEventProps, UiCardClickedEventProps, UiClosedAuthEventProps, UiHoverCardDismissedEventProps, UiHoverCardOpenLinkClickedEventProps, UiHoverCardViewedEventProps, UiIframeDwelledEventProps, UiIframeFocusedEventProps, UiRenderFailedEventProps, UiRenderSuccessEventProps, UiServerActionClickedEventProps, UnresolvedEventProps } from './types';
5
5
  import { SmartLinkActionType } from '@atlaskit/linking-types';
6
6
  export declare const ANALYTICS_CHANNEL = "media";
7
7
  export declare const context: {
@@ -17,6 +17,8 @@ export declare enum TrackQuickActionFailureReason {
17
17
  ValidationError = "ValidationError",
18
18
  UnknownError = "UnknownError"
19
19
  }
20
+ export declare const SmartLinkActionTypeTrackingEventMapper: Record<string, string>;
21
+ export declare const SmartLinkActionTypeUiEventMapper: Record<string, string>;
20
22
  export declare class SmartLinkEvents {
21
23
  insertSmartLink(url: string, type: CardInnerAppearance, createAnalyticsEvent?: CreateUIAnalyticsEvent): void;
22
24
  }
@@ -57,3 +59,4 @@ export declare const chunkloadFailedEvent: ({ display, error, errorInfo, extensi
57
59
  export declare const uiSmartLinkStatusLozengeButtonClicked: () => AnalyticsPayload;
58
60
  export declare const uiSmartLinkStatusListItemButtonClicked: () => AnalyticsPayload;
59
61
  export declare const uiSmartLinkStatusOpenPreviewButtonClicked: () => AnalyticsPayload;
62
+ export declare const uiServerActionClicked: ({ smartLinkActionType, }: UiServerActionClickedEventProps) => AnalyticsPayload;
@@ -1,4 +1,5 @@
1
1
  import { APIError, CardType } from '@atlaskit/linking-common';
2
+ import { SmartLinkActionType } from '@atlaskit/linking-types';
2
3
  import { PreviewDisplay, PreviewInvokeMethod } from '../../view/HoverCard/types';
3
4
  import { ErrorInfo } from 'react';
4
5
  import { CardInnerAppearance } from '../../view/Card/types';
@@ -25,12 +26,12 @@ export type UnresolvedEventProps = CommonEventProps & {
25
26
  error?: APIError;
26
27
  };
27
28
  export type InvokeSucceededEventProps = CommonEventProps & {
28
- id: string;
29
+ id?: string;
29
30
  actionType: string;
30
31
  display?: CardInnerAppearance;
31
32
  };
32
33
  export type InvokeFailedEventProps = CommonEventProps & {
33
- id: string;
34
+ id?: string;
34
35
  actionType: string;
35
36
  display?: CardInnerAppearance;
36
37
  reason: string;
@@ -69,11 +70,14 @@ export type UiIframeFocusedEventProps = CommonEventProps & {
69
70
  status: CardType;
70
71
  };
71
72
  export type UiActionClickedEventProps = CommonEventProps & {
72
- id: string;
73
+ id?: string;
73
74
  display?: CardInnerAppearance;
74
75
  actionType: string;
75
76
  invokeType?: InvokeType;
76
77
  };
78
+ export type UiServerActionClickedEventProps = CommonEventProps & {
79
+ smartLinkActionType: SmartLinkActionType;
80
+ };
77
81
  export type ScreenAuthPopupEventProps = CommonEventProps;
78
82
  export type UiClosedAuthEventProps = CommonEventProps & {
79
83
  display: CardInnerAppearance;
@@ -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: experienceId, actionType, display, invokeType, extensionKey: overrideExtensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("./analytics/types").UiActionClickedEventProps) => void;
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> & {
@@ -63,10 +63,11 @@ export declare const mockAnalytics: {
63
63
  smartLinkLozengeActionClickedEvent: () => void;
64
64
  smartLinkLozengeActionListItemClickedEvent: () => void;
65
65
  smartLinkLozengeActionErrorOpenPreviewClickedEvent: () => void;
66
+ smartLinkServerActionClickedEvent: (props: import("./analytics/types").UiServerActionClickedEventProps) => void;
66
67
  };
67
68
  operational: {
68
- invokeSucceededEvent: ({ id: experienceId, actionType, display, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("./analytics/types").InvokeSucceededEventProps) => void;
69
- invokeFailedEvent: ({ id: experienceId, actionType, display, reason, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("./analytics/types").InvokeFailedEventProps) => void;
69
+ invokeSucceededEvent: ({ id, actionType, display, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("./analytics/types").InvokeSucceededEventProps) => void;
70
+ invokeFailedEvent: ({ id, actionType, display, reason, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("./analytics/types").InvokeFailedEventProps) => void;
70
71
  connectSucceededEvent: ({ id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("./analytics/types").ConnectSucceededEventProps) => void;
71
72
  connectFailedEvent: ({ id, reason, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("./analytics/types").ConnectFailedEventProps) => void;
72
73
  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" | "showActions" | "showHoverPreview" | "showServerActions" | "showAuthTooltip" | "onResolve" | "ui" | "platform" | "frameStyle" | "embedIframeRef" | "inlinePreloaderStyle" | "isFrameVisible" | "importer" | "container" | "fallbackComponent" | "embedIframeUrlType" | "analyticsEvents" | "forwardedRef"> & React.RefAttributes<any>>;
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: ({ analytics, downloadUrl, linkIcon, onClose, providerName, src, title, url, isSupportTheming, }: PreviewActionData & {
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 { CardAppearance } from '../../view/Card';
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?: CardAppearance;
24
+ appearance?: CardInnerAppearance;
26
25
  /**
27
26
  * Determines the status and data of the Smart Link.
28
27
  * @internal
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "26.24.0",
3
+ "version": "26.26.0",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -38,7 +38,7 @@
38
38
  "@atlaskit/link-analytics": "^8.2.0",
39
39
  "@atlaskit/link-client-extension": "^1.6.0",
40
40
  "@atlaskit/link-extractors": "^1.1.0",
41
- "@atlaskit/linking-common": "^4.7.0",
41
+ "@atlaskit/linking-common": "^4.8.0",
42
42
  "@atlaskit/linking-types": "^8.3.0",
43
43
  "@atlaskit/logo": "^13.14.0",
44
44
  "@atlaskit/lozenge": "^11.4.0",
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: string;
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: string;
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: string;
989
+ id?: string;
990
990
  display?: CardInnerAppearance;
991
991
  actionType: string;
992
992
  invokeType?: InvokeType;
@@ -1066,6 +1066,11 @@ type UiRenderSuccessEventProps = CommonEventProps & {
1066
1066
  status: CardType;
1067
1067
  };
1068
1068
 
1069
+ // @public (undocumented)
1070
+ type UiServerActionClickedEventProps = CommonEventProps & {
1071
+ smartLinkActionType: SmartLinkActionType;
1072
+ };
1073
+
1069
1074
  // @public @deprecated
1070
1075
  export const useSmartLinkAnalytics: (
1071
1076
  url: string,
@@ -1132,7 +1137,7 @@ export const useSmartLinkAnalytics: (
1132
1137
  destinationSubproduct,
1133
1138
  }: UiIframeFocusedEventProps) => void;
1134
1139
  actionClickedEvent: ({
1135
- id: experienceId,
1140
+ id,
1136
1141
  actionType,
1137
1142
  display,
1138
1143
  invokeType,
@@ -1218,10 +1223,13 @@ export const useSmartLinkAnalytics: (
1218
1223
  smartLinkLozengeActionClickedEvent: () => void;
1219
1224
  smartLinkLozengeActionListItemClickedEvent: () => void;
1220
1225
  smartLinkLozengeActionErrorOpenPreviewClickedEvent: () => void;
1226
+ smartLinkServerActionClickedEvent: (
1227
+ props: UiServerActionClickedEventProps,
1228
+ ) => void;
1221
1229
  };
1222
1230
  operational: {
1223
1231
  invokeSucceededEvent: ({
1224
- id: experienceId,
1232
+ id,
1225
1233
  actionType,
1226
1234
  display,
1227
1235
  extensionKey,
@@ -1232,7 +1240,7 @@ export const useSmartLinkAnalytics: (
1232
1240
  location,
1233
1241
  }: InvokeSucceededEventProps) => void;
1234
1242
  invokeFailedEvent: ({
1235
- id: experienceId,
1243
+ id,
1236
1244
  actionType,
1237
1245
  display,
1238
1246
  reason,
@@ -492,7 +492,7 @@ type InstrumentEventProps = CommonEventProps & {
492
492
 
493
493
  // @public (undocumented)
494
494
  type InvokeFailedEventProps = CommonEventProps & {
495
- id: string;
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: string;
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: string;
837
+ id?: string;
838
838
  display?: CardInnerAppearance;
839
839
  actionType: string;
840
840
  invokeType?: InvokeType;
@@ -914,6 +914,11 @@ type UiRenderSuccessEventProps = CommonEventProps & {
914
914
  status: CardType;
915
915
  };
916
916
 
917
+ // @public (undocumented)
918
+ type UiServerActionClickedEventProps = CommonEventProps & {
919
+ smartLinkActionType: SmartLinkActionType;
920
+ };
921
+
917
922
  // @public @deprecated
918
923
  export const useSmartLinkAnalytics: (url: string, _dispatchAnalytics?: AnalyticsHandler, id?: string, defaultLocation?: string) => {
919
924
  ui: {
@@ -925,7 +930,7 @@ export const useSmartLinkAnalytics: (url: string, _dispatchAnalytics?: Analytics
925
930
  cardClickedEvent: ({ id, display, status, definitionId, extensionKey, isModifierKeyPressed, location, destinationProduct, destinationSubproduct, actionSubjectId, }: UiCardClickedEventProps) => void;
926
931
  iframeDwelledEvent: ({ id, display, status, definitionId, extensionKey, location, destinationProduct, destinationSubproduct, dwellTime, dwellPercentVisible, }: UiIframeDwelledEventProps) => void;
927
932
  iframeFocusedEvent: ({ id, display, status, definitionId, extensionKey, location, destinationProduct, destinationSubproduct, }: UiIframeFocusedEventProps) => void;
928
- actionClickedEvent: ({ id: experienceId, actionType, display, invokeType, extensionKey: overrideExtensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: UiActionClickedEventProps) => void;
933
+ actionClickedEvent: ({ id, actionType, display, invokeType, extensionKey: overrideExtensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: UiActionClickedEventProps) => void;
929
934
  hoverCardOpenLinkClickedEvent: ({ previewDisplay, definitionId, extensionKey, destinationProduct, destinationSubproduct, location, previewInvokeMethod, }: UiHoverCardOpenLinkClickedEventProps) => void;
930
935
  closedAuthEvent: ({ display, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: UiClosedAuthEventProps) => void;
931
936
  modalClosedEvent: (data: Partial<AnalyticsPayload> & {
@@ -939,10 +944,11 @@ export const useSmartLinkAnalytics: (url: string, _dispatchAnalytics?: Analytics
939
944
  smartLinkLozengeActionClickedEvent: () => void;
940
945
  smartLinkLozengeActionListItemClickedEvent: () => void;
941
946
  smartLinkLozengeActionErrorOpenPreviewClickedEvent: () => void;
947
+ smartLinkServerActionClickedEvent: (props: UiServerActionClickedEventProps) => void;
942
948
  };
943
949
  operational: {
944
- invokeSucceededEvent: ({ id: experienceId, actionType, display, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: InvokeSucceededEventProps) => void;
945
- invokeFailedEvent: ({ id: experienceId, actionType, display, reason, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: InvokeFailedEventProps) => void;
950
+ invokeSucceededEvent: ({ id, actionType, display, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: InvokeSucceededEventProps) => void;
951
+ invokeFailedEvent: ({ id, actionType, display, reason, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: InvokeFailedEventProps) => void;
946
952
  connectSucceededEvent: ({ id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: ConnectSucceededEventProps) => void;
947
953
  connectFailedEvent: ({ id, reason, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: ConnectFailedEventProps) => void;
948
954
  instrument: ({ id, status, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, error, }: InstrumentEventProps) => void;