@atlaskit/smart-card 32.4.0 → 32.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/CHANGELOG.md +16 -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 +1 -1
  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 +1 -1
  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 +1 -1
  24. package/dist/types/common/analytics/generated/analytics.types.d.ts +38 -1
  25. package/dist/types/state/analytics/useSmartLinkAnalytics.d.ts +5 -1
  26. package/dist/types/utils/analytics/analytics.d.ts +15 -0
  27. package/dist/types/utils/analytics/index.d.ts +3 -0
  28. package/dist/types/utils/analytics/types.d.ts +12 -0
  29. package/dist/types/view/FlexibleCard/components/blocks/ai-footer-block/icons/info/index.d.ts +2 -2
  30. package/dist/types-ts4.5/common/analytics/generated/analytics.types.d.ts +38 -1
  31. package/dist/types-ts4.5/state/analytics/useSmartLinkAnalytics.d.ts +5 -1
  32. package/dist/types-ts4.5/utils/analytics/analytics.d.ts +15 -0
  33. package/dist/types-ts4.5/utils/analytics/index.d.ts +3 -0
  34. package/dist/types-ts4.5/utils/analytics/types.d.ts +12 -0
  35. package/dist/types-ts4.5/view/FlexibleCard/components/blocks/ai-footer-block/icons/info/index.d.ts +2 -2
  36. package/package.json +9 -6
@@ -22,11 +22,23 @@ export declare class SmartLinkEvents {
22
22
  insertSmartLink(url: string, type: CardInnerAppearance, createAnalyticsEvent?: CreateUIAnalyticsEvent): void;
23
23
  }
24
24
  export declare const fireSmartLinkEvent: (payload: AnalyticsPayload, createAnalyticsEvent?: CreateUIAnalyticsEvent) => void;
25
+ /**
26
+ * @deprecated remove with platform_smart-card-migrate-operational-analytics clean up
27
+ */
25
28
  export declare const resolvedEvent: (props: ResolvedEventProps) => AnalyticsPayload;
29
+ /**
30
+ * @deprecated remove with platform_smart-card-migrate-operational-analytics clean up
31
+ */
26
32
  export declare const unresolvedEvent: ({ id, definitionId, extensionKey, resourceType, destinationSubproduct, destinationProduct, error, status, location, }: UnresolvedEventProps) => AnalyticsPayload;
27
33
  export declare const invokeSucceededEvent: ({ id, actionType, display, extensionKey, definitionId, destinationProduct, destinationSubproduct, location, }: InvokeSucceededEventProps) => AnalyticsPayload;
28
34
  export declare const invokeFailedEvent: ({ id, actionType, display, reason, extensionKey, definitionId, destinationProduct, destinationSubproduct, location, }: InvokeFailedEventProps) => AnalyticsPayload;
35
+ /**
36
+ * @deprecated remove with platform_smart-card-migrate-operational-analytics clean up
37
+ */
29
38
  export declare const connectSucceededEvent: ({ definitionId, extensionKey, destinationProduct, destinationSubproduct, location, }: ConnectSucceededEventProps) => AnalyticsPayload;
39
+ /**
40
+ * @deprecated remove with platform_smart-card-migrate-operational-analytics clean up
41
+ */
30
42
  export declare const connectFailedEvent: ({ definitionId, extensionKey, destinationProduct, destinationSubproduct, location, reason, }: ConnectFailedEventProps) => AnalyticsPayload;
31
43
  export declare const uiAuthEvent: ({ definitionId, extensionKey, destinationProduct, destinationSubproduct, location, display, }: UiAuthEventProps) => AnalyticsPayload;
32
44
  export declare const uiAuthAlternateAccountEvent: ({ definitionId, extensionKey, destinationProduct, destinationSubproduct, location, display, }: UiAuthAlternateAccountEventProps) => AnalyticsPayload;
@@ -39,6 +51,9 @@ export declare const uiHoverCardViewedEvent: ({ id, previewDisplay, extensionKey
39
51
  export declare const uiHoverCardDismissedEvent: ({ id, previewDisplay, hoverTime, extensionKey, definitionId, destinationProduct, destinationSubproduct, location, previewInvokeMethod, status, }: UiHoverCardDismissedEventProps) => AnalyticsPayload;
40
52
  export declare const uiHoverCardOpenLinkClickedEvent: ({ id, previewDisplay, extensionKey, definitionId, destinationProduct, destinationSubproduct, location, previewInvokeMethod, }: UiHoverCardOpenLinkClickedEventProps) => AnalyticsPayload;
41
53
  export declare const uiLearnMoreLinkClickedEvent: () => AnalyticsPayload;
54
+ /**
55
+ * @deprecated remove with platform_smart-card-migrate-operational-analytics clean up
56
+ */
42
57
  export declare const chunkloadFailedEvent: ({ display, error, errorInfo, extensionKey, definitionId, destinationProduct, destinationSubproduct, location, }: UiRenderFailedEventProps) => AnalyticsPayload;
43
58
  export declare const uiSmartLinkStatusLozengeButtonClicked: () => AnalyticsPayload;
44
59
  export declare const uiSmartLinkStatusListItemButtonClicked: () => AnalyticsPayload;
@@ -1,4 +1,7 @@
1
1
  import { type AnalyticsPayload } from '../types';
2
2
  import { type InstrumentEventProps } from './types';
3
3
  export { ANALYTICS_CHANNEL, context, fireSmartLinkEvent, resolvedEvent, unresolvedEvent, invokeSucceededEvent, invokeFailedEvent, chunkloadFailedEvent, connectSucceededEvent, connectFailedEvent, uiAuthEvent, uiAuthAlternateAccountEvent, uiCardClickedEvent, uiActionClickedEvent, uiClosedAuthEvent, uiRenderSuccessEvent, uiRenderFailedEvent, uiHoverCardViewedEvent, uiHoverCardDismissedEvent, uiHoverCardOpenLinkClickedEvent, uiLearnMoreLinkClickedEvent, uiSmartLinkStatusLozengeButtonClicked, uiSmartLinkStatusListItemButtonClicked, uiSmartLinkStatusOpenPreviewButtonClicked, } from './analytics';
4
+ /**
5
+ * @deprecated remove with platform_smart-card-migrate-operational-analytics clean up
6
+ */
4
7
  export declare const instrumentEvent: ({ id, status, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, error, }: InstrumentEventProps) => AnalyticsPayload | undefined;
@@ -36,9 +36,15 @@ export type InvokeFailedEventProps = CommonEventProps & {
36
36
  display?: CardInnerAppearance;
37
37
  reason: string;
38
38
  };
39
+ /**
40
+ * @deprecated remove with platform_smart-card-migrate-operational-analytics clean up
41
+ */
39
42
  export type ConnectSucceededEventProps = CommonEventProps & {
40
43
  id?: string;
41
44
  };
45
+ /**
46
+ * @deprecated remove with platform_smart-card-migrate-operational-analytics clean up
47
+ */
42
48
  export type ConnectFailedEventProps = CommonEventProps & {
43
49
  id?: string;
44
50
  reason?: string;
@@ -73,6 +79,9 @@ export type UiRenderSuccessEventProps = CommonEventProps & {
73
79
  status: CardType;
74
80
  canBeDatasource?: boolean;
75
81
  };
82
+ /**
83
+ * @deprecated remove with platform_smart-card-migrate-operational-analytics clean up
84
+ */
76
85
  export type UiRenderFailedEventProps = CommonEventProps & {
77
86
  display: CardInnerAppearance;
78
87
  error: Error;
@@ -93,6 +102,9 @@ export type UiHoverCardOpenLinkClickedEventProps = CommonEventProps & {
93
102
  previewDisplay: PreviewDisplay;
94
103
  previewInvokeMethod?: PreviewInvokeMethod;
95
104
  };
105
+ /**
106
+ * @deprecated remove with platform_smart-card-migrate-operational-analytics clean up
107
+ */
96
108
  export type InstrumentEventProps = CommonEventProps & {
97
109
  error?: APIError;
98
110
  status: CardType;
@@ -1,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;
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.0",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -36,9 +36,9 @@
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
44
  "@atlaskit/link-analytics": "^8.5.0",
@@ -52,10 +52,10 @@
52
52
  "@atlaskit/modal-dialog": "^12.18.0",
53
53
  "@atlaskit/outbound-auth-flow-client": "^3.4.0",
54
54
  "@atlaskit/platform-feature-flags": "^0.3.0",
55
- "@atlaskit/popup": "^1.29.0",
55
+ "@atlaskit/popup": "^1.30.0",
56
56
  "@atlaskit/primitives": "^13.3.0",
57
57
  "@atlaskit/section-message": "^6.8.0",
58
- "@atlaskit/select": "^18.6.0",
58
+ "@atlaskit/select": "^18.7.0",
59
59
  "@atlaskit/spinner": "^16.3.0",
60
60
  "@atlaskit/textarea": "^5.6.0",
61
61
  "@atlaskit/textfield": "^6.6.0",
@@ -174,6 +174,9 @@
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"
179
182
  }