@atlaskit/smart-card 32.4.0 → 32.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/analytics.spec.yaml +100 -0
  3. package/dist/cjs/state/actions/index.js +35 -11
  4. package/dist/cjs/state/analytics/useSmartLinkAnalytics.js +5 -1
  5. package/dist/cjs/utils/analytics/analytics.js +21 -1
  6. package/dist/cjs/utils/analytics/index.js +3 -0
  7. package/dist/cjs/view/CardWithUrl/component.js +32 -10
  8. package/dist/cjs/view/CardWithUrl/loader.js +19 -6
  9. package/dist/cjs/view/LinkUrl/index.js +12 -5
  10. package/dist/es2019/state/actions/index.js +35 -11
  11. package/dist/es2019/state/analytics/useSmartLinkAnalytics.js +5 -1
  12. package/dist/es2019/utils/analytics/analytics.js +21 -1
  13. package/dist/es2019/utils/analytics/index.js +4 -0
  14. package/dist/es2019/view/CardWithUrl/component.js +32 -10
  15. package/dist/es2019/view/CardWithUrl/loader.js +20 -6
  16. package/dist/es2019/view/LinkUrl/index.js +9 -3
  17. package/dist/esm/state/actions/index.js +35 -11
  18. package/dist/esm/state/analytics/useSmartLinkAnalytics.js +5 -1
  19. package/dist/esm/utils/analytics/analytics.js +21 -1
  20. package/dist/esm/utils/analytics/index.js +4 -0
  21. package/dist/esm/view/CardWithUrl/component.js +32 -10
  22. package/dist/esm/view/CardWithUrl/loader.js +19 -6
  23. package/dist/esm/view/LinkUrl/index.js +11 -4
  24. package/dist/types/common/analytics/generated/analytics.types.d.ts +38 -1
  25. package/dist/types/state/analytics/useLinkClicked.d.ts +1 -1
  26. package/dist/types/state/analytics/useSmartLinkAnalytics.d.ts +5 -1
  27. package/dist/types/utils/analytics/analytics.d.ts +15 -0
  28. package/dist/types/utils/analytics/click.d.ts +3 -8
  29. package/dist/types/utils/analytics/index.d.ts +3 -0
  30. package/dist/types/utils/analytics/types.d.ts +12 -0
  31. package/dist/types/view/FlexibleCard/components/blocks/ai-footer-block/icons/info/index.d.ts +2 -2
  32. package/dist/types/view/LinkUrl/index.d.ts +4 -0
  33. package/dist/types/view/LinkUrl/types.d.ts +1 -0
  34. package/dist/types-ts4.5/common/analytics/generated/analytics.types.d.ts +38 -1
  35. package/dist/types-ts4.5/state/analytics/useLinkClicked.d.ts +1 -1
  36. package/dist/types-ts4.5/state/analytics/useSmartLinkAnalytics.d.ts +5 -1
  37. package/dist/types-ts4.5/utils/analytics/analytics.d.ts +15 -0
  38. package/dist/types-ts4.5/utils/analytics/click.d.ts +3 -8
  39. package/dist/types-ts4.5/utils/analytics/index.d.ts +3 -0
  40. package/dist/types-ts4.5/utils/analytics/types.d.ts +12 -0
  41. package/dist/types-ts4.5/view/FlexibleCard/components/blocks/ai-footer-block/icons/info/index.d.ts +2 -2
  42. package/dist/types-ts4.5/view/LinkUrl/index.d.ts +4 -0
  43. package/dist/types-ts4.5/view/LinkUrl/types.d.ts +1 -0
  44. package/package.json +13 -7
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import { type GasPayload } from '@atlaskit/analytics-gas-types';
3
3
  import { type AnalyticsEventPayload, type UIAnalyticsEvent } from '@atlaskit/analytics-next';
4
+ import { type LinkProps } from '@atlaskit/link';
4
5
  import { type AnalyticsPayload } from '../types';
5
6
  import { type ClickOutcome, type ClickType, type UiLinkClickedEventProps } from './types';
6
7
  export declare const buttonMap: Map<number | undefined, "left" | "right" | "none" | "middle">;
@@ -13,14 +14,8 @@ type DeepPartial<T> = T extends object ? {
13
14
  export declare const fireLinkClickedEvent: (createAnalyticsEvent: (payload: AnalyticsEventPayload) => UIAnalyticsEvent) => (event: React.MouseEvent, overrides?: DeepPartial<Omit<GasPayload, 'attributes'> & {
14
15
  attributes: UiLinkClickedEventProps;
15
16
  }>) => void;
16
- export declare function withLinkClickedEvent<Component extends React.ElementType<{
17
- onClick?: React.MouseEventHandler<HTMLAnchorElement>;
18
- onMouseDown?: React.MouseEventHandler<HTMLAnchorElement>;
19
- }>>(WrappedComponent: Component): {
20
- (props: React.ComponentProps<Component>): React.ReactElement<{
21
- onClick?: React.MouseEventHandler<HTMLAnchorElement> | undefined;
22
- onMouseDown?: React.MouseEventHandler<HTMLAnchorElement> | undefined;
23
- }, string | React.JSXElementConstructor<any>>;
17
+ export declare function withLinkClickedEvent<Component extends Extract<React.ElementType, 'a'> | React.ComponentType<LinkProps>>(WrappedComponent: Component): {
18
+ (props: LinkProps): React.ReactElement<LinkProps, string | React.JSXElementConstructor<any>>;
24
19
  displayName: string;
25
20
  };
26
21
  export {};
@@ -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,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- import { type UNSAFE_NewCoreIconProps } from '@atlaskit/icon';
3
- export declare const InfoIcon: (props: UNSAFE_NewCoreIconProps) => JSX.Element;
2
+ import { type NewCoreIconProps } from '@atlaskit/icon';
3
+ export declare const InfoIcon: (props: NewCoreIconProps) => JSX.Element;
@@ -1,4 +1,8 @@
1
1
  import React from 'react';
2
2
  import { type LinkUrlProps } from './types';
3
+ export declare const LinkComponent: {
4
+ (props: import("@atlaskit/link").LinkProps): React.ReactElement<import("@atlaskit/link").LinkProps, string | React.JSXElementConstructor<any>>;
5
+ displayName: string;
6
+ };
3
7
  declare const _default: React.ForwardRefExoticComponent<LinkUrlProps & import("@atlaskit/analytics-next").WithContextProps & React.RefAttributes<any>>;
4
8
  export default _default;
@@ -5,6 +5,7 @@ export interface LinkUrlProps extends React.AnchorHTMLAttributes<HTMLAnchorEleme
5
5
  */
6
6
  checkSafety?: boolean;
7
7
  testId?: string;
8
+ isLinkComponent?: boolean;
8
9
  }
9
10
  export type PackageDataType = {
10
11
  packageName: string;
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Generates Typescript types for analytics events from analytics.spec.yaml
5
5
  *
6
- * @codegen <<SignedSource::6a2a0a5715993e0dd235d38d95d6bbcc>>
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;
@@ -4,5 +4,5 @@ export declare enum ClickButton {
4
4
  Middle = 1,
5
5
  Right = 2
6
6
  }
7
- export declare const useLinkClicked: <T extends import("react").MouseEventHandler<Element>>(handler?: T, predicate?: ((event: React.MouseEvent) => boolean) | undefined) => (...args: Parameters<T>) => void;
7
+ export declare const useLinkClicked: <T extends (e: import("react").MouseEvent<HTMLAnchorElement, MouseEvent>, analyticsEvent: import("@atlaskit/analytics-next").UIAnalyticsEvent) => void>(handler?: T, predicate?: ((event: React.MouseEvent) => boolean) | undefined) => (...args: Parameters<T>) => void;
8
8
  export declare const useMouseDownEvent: <T extends import("react").MouseEventHandler<Element>>(onMouseDown?: T) => (...args: Parameters<T>) => void;
@@ -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 unsuccessfuly.
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,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import { type GasPayload } from '@atlaskit/analytics-gas-types';
3
3
  import { type AnalyticsEventPayload, type UIAnalyticsEvent } from '@atlaskit/analytics-next';
4
+ import { type LinkProps } from '@atlaskit/link';
4
5
  import { type AnalyticsPayload } from '../types';
5
6
  import { type ClickOutcome, type ClickType, type UiLinkClickedEventProps } from './types';
6
7
  export declare const buttonMap: Map<number | undefined, "left" | "right" | "none" | "middle">;
@@ -13,14 +14,8 @@ type DeepPartial<T> = T extends object ? {
13
14
  export declare const fireLinkClickedEvent: (createAnalyticsEvent: (payload: AnalyticsEventPayload) => UIAnalyticsEvent) => (event: React.MouseEvent, overrides?: DeepPartial<Omit<GasPayload, 'attributes'> & {
14
15
  attributes: UiLinkClickedEventProps;
15
16
  }>) => void;
16
- export declare function withLinkClickedEvent<Component extends React.ElementType<{
17
- onClick?: React.MouseEventHandler<HTMLAnchorElement>;
18
- onMouseDown?: React.MouseEventHandler<HTMLAnchorElement>;
19
- }>>(WrappedComponent: Component): {
20
- (props: React.ComponentProps<Component>): React.ReactElement<{
21
- onClick?: React.MouseEventHandler<HTMLAnchorElement> | undefined;
22
- onMouseDown?: React.MouseEventHandler<HTMLAnchorElement> | undefined;
23
- }, string | React.JSXElementConstructor<any>>;
17
+ export declare function withLinkClickedEvent<Component extends Extract<React.ElementType, 'a'> | React.ComponentType<LinkProps>>(WrappedComponent: Component): {
18
+ (props: LinkProps): React.ReactElement<LinkProps, string | React.JSXElementConstructor<any>>;
24
19
  displayName: string;
25
20
  };
26
21
  export {};
@@ -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,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- import { type UNSAFE_NewCoreIconProps } from '@atlaskit/icon';
3
- export declare const InfoIcon: (props: UNSAFE_NewCoreIconProps) => JSX.Element;
2
+ import { type NewCoreIconProps } from '@atlaskit/icon';
3
+ export declare const InfoIcon: (props: NewCoreIconProps) => JSX.Element;
@@ -1,4 +1,8 @@
1
1
  import React from 'react';
2
2
  import { type LinkUrlProps } from './types';
3
+ export declare const LinkComponent: {
4
+ (props: import("@atlaskit/link").LinkProps): React.ReactElement<import("@atlaskit/link").LinkProps, string | React.JSXElementConstructor<any>>;
5
+ displayName: string;
6
+ };
3
7
  declare const _default: React.ForwardRefExoticComponent<LinkUrlProps & import("@atlaskit/analytics-next").WithContextProps & React.RefAttributes<any>>;
4
8
  export default _default;
@@ -5,6 +5,7 @@ export interface LinkUrlProps extends React.AnchorHTMLAttributes<HTMLAnchorEleme
5
5
  */
6
6
  checkSafety?: boolean;
7
7
  testId?: string;
8
+ isLinkComponent?: boolean;
8
9
  }
9
10
  export type PackageDataType = {
10
11
  packageName: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "32.4.0",
3
+ "version": "32.5.1",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -36,11 +36,12 @@
36
36
  "@atlaskit/form": "^10.6.0",
37
37
  "@atlaskit/frontend-utilities": "^2.7.0",
38
38
  "@atlaskit/heading": "^4.0.0",
39
- "@atlaskit/icon": "^22.28.0",
40
- "@atlaskit/icon-file-type": "^6.7.0",
41
- "@atlaskit/icon-object": "^6.8.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
+ "@atlaskit/link": "^1.2.1",
44
45
  "@atlaskit/link-analytics": "^8.5.0",
45
46
  "@atlaskit/link-client-extension": "^3.0.0",
46
47
  "@atlaskit/link-extractors": "^1.9.0",
@@ -52,10 +53,10 @@
52
53
  "@atlaskit/modal-dialog": "^12.18.0",
53
54
  "@atlaskit/outbound-auth-flow-client": "^3.4.0",
54
55
  "@atlaskit/platform-feature-flags": "^0.3.0",
55
- "@atlaskit/popup": "^1.29.0",
56
+ "@atlaskit/popup": "^1.30.0",
56
57
  "@atlaskit/primitives": "^13.3.0",
57
58
  "@atlaskit/section-message": "^6.8.0",
58
- "@atlaskit/select": "^18.6.0",
59
+ "@atlaskit/select": "^18.7.0",
59
60
  "@atlaskit/spinner": "^16.3.0",
60
61
  "@atlaskit/textarea": "^5.6.0",
61
62
  "@atlaskit/textfield": "^6.6.0",
@@ -90,7 +91,6 @@
90
91
  "@af/visual-regression": "*",
91
92
  "@atlaskit/analytics-listeners": "^8.13.0",
92
93
  "@atlaskit/css-reset": "^6.11.0",
93
- "@atlaskit/link": "^1.2.1",
94
94
  "@atlaskit/link-test-helpers": "^7.5.0",
95
95
  "@atlaskit/media-test-helpers": "^34.6.0",
96
96
  "@atlaskit/ssr": "*",
@@ -174,8 +174,14 @@
174
174
  "smart_links_for_plans_platform": {
175
175
  "type": "boolean"
176
176
  },
177
+ "platform_smart-card-migrate-operational-analytics": {
178
+ "type": "boolean"
179
+ },
177
180
  "smart-card-remove-block-card-from-embed": {
178
181
  "type": "boolean"
182
+ },
183
+ "platform_editor_hyperlink_underline": {
184
+ "type": "boolean"
179
185
  }
180
186
  }
181
187
  }