@atlaskit/smart-card 26.27.0 → 26.27.2

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 (49) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/cjs/state/analytics/useSmartLinkAnalytics.js +6 -2
  3. package/dist/cjs/state/helpers.js +11 -2
  4. package/dist/cjs/utils/analytics/analytics.js +5 -3
  5. package/dist/cjs/utils/mocks.js +53 -71
  6. package/dist/cjs/view/BlockCard/views/flexible/styled.js +1 -1
  7. package/dist/cjs/view/CardWithUrl/component.js +4 -2
  8. package/dist/cjs/view/EmbedCard/components/styled.js +2 -2
  9. package/dist/cjs/view/HoverCard/components/views/resolved/index.js +5 -2
  10. package/dist/cjs/view/LinkUrl/index.js +1 -1
  11. package/dist/cjs/view/RedesignedInlineCard/Frame/styled.js +3 -3
  12. package/dist/cjs/view/RedesignedInlineCard/utils/withFrameStyleControl.js +2 -2
  13. package/dist/es2019/state/analytics/useSmartLinkAnalytics.js +5 -2
  14. package/dist/es2019/state/helpers.js +5 -0
  15. package/dist/es2019/utils/analytics/analytics.js +5 -3
  16. package/dist/es2019/utils/mocks.js +51 -71
  17. package/dist/es2019/view/BlockCard/views/flexible/styled.js +1 -1
  18. package/dist/es2019/view/CardWithUrl/component.js +5 -3
  19. package/dist/es2019/view/EmbedCard/components/styled.js +2 -2
  20. package/dist/es2019/view/HoverCard/components/views/resolved/index.js +5 -2
  21. package/dist/es2019/view/LinkUrl/index.js +1 -1
  22. package/dist/es2019/view/RedesignedInlineCard/Frame/styled.js +3 -3
  23. package/dist/es2019/view/RedesignedInlineCard/utils/withFrameStyleControl.js +2 -2
  24. package/dist/esm/state/analytics/useSmartLinkAnalytics.js +6 -2
  25. package/dist/esm/state/helpers.js +7 -0
  26. package/dist/esm/utils/analytics/analytics.js +5 -3
  27. package/dist/esm/utils/mocks.js +53 -71
  28. package/dist/esm/view/BlockCard/views/flexible/styled.js +1 -1
  29. package/dist/esm/view/CardWithUrl/component.js +5 -3
  30. package/dist/esm/view/EmbedCard/components/styled.js +2 -2
  31. package/dist/esm/view/HoverCard/components/views/resolved/index.js +5 -2
  32. package/dist/esm/view/LinkUrl/index.js +1 -1
  33. package/dist/esm/view/RedesignedInlineCard/Frame/styled.js +3 -3
  34. package/dist/esm/view/RedesignedInlineCard/utils/withFrameStyleControl.js +2 -2
  35. package/dist/types/state/analytics/useSmartLinkAnalytics.d.ts +2 -1
  36. package/dist/types/state/helpers.d.ts +3 -0
  37. package/dist/types/state/hooks/useSmartLink.d.ts +1 -1
  38. package/dist/types/utils/analytics/analytics.d.ts +1 -1
  39. package/dist/types/utils/analytics/types.d.ts +1 -0
  40. package/dist/types/utils/mocks.d.ts +42 -1
  41. package/dist/types-ts4.5/state/analytics/useSmartLinkAnalytics.d.ts +2 -1
  42. package/dist/types-ts4.5/state/helpers.d.ts +3 -0
  43. package/dist/types-ts4.5/state/hooks/useSmartLink.d.ts +1 -1
  44. package/dist/types-ts4.5/utils/analytics/analytics.d.ts +1 -1
  45. package/dist/types-ts4.5/utils/analytics/types.d.ts +1 -0
  46. package/dist/types-ts4.5/utils/mocks.d.ts +42 -1
  47. package/package.json +5 -5
  48. package/report.api.md +2 -0
  49. package/tmp/api-report-tmp.d.ts +2 -1
@@ -11,7 +11,7 @@ import LinkWarningModal from './LinkWarningModal';
11
11
  import { getBooleanFF } from '@atlaskit/platform-feature-flags';
12
12
  var PACKAGE_DATA = {
13
13
  packageName: "@atlaskit/smart-card",
14
- packageVersion: "26.27.0",
14
+ packageVersion: "26.27.2",
15
15
  componentName: 'linkUrl'
16
16
  };
17
17
  var Link = withLinkClickedEvent('a');
@@ -4,7 +4,7 @@ import styled from '@emotion/styled';
4
4
  import { B50, B100, B200, B400, N20, N40, N500 } from '@atlaskit/theme/colors';
5
5
  import { themed } from '@atlaskit/theme/components';
6
6
  var BACKGROUND_COLOR_DARK = '#262B31';
7
- var selected = "\n cursor: pointer;\n box-shadow: 0 0 0 2px ".concat("var(--ds-border-selected, ".concat(B100, ")"), ";\n outline: none;\n user-select: none;\n &, :hover, :focus, :active {\n text-decoration: none;\n }\n &:hover {\n border: 1px solid ", "var(--ds-border-input, ".concat(N40, ")"), ";\n }\n");
7
+ var selected = "\n cursor: pointer;\n box-shadow: 0 0 0 2px ".concat("var(--ds-border-selected, ".concat(B100, ")"), ";\n outline: none;\n user-select: none;\n &, :hover, :focus, :active {\n text-decoration: none;\n }\n &:hover {\n border: 1px solid ", "var(--ds-border, ".concat(N40, ")"), ";\n }\n");
8
8
  var isInteractive = function isInteractive(_ref) {
9
9
  var isInteractive = _ref.isInteractive;
10
10
  if (isInteractive) {
@@ -48,8 +48,8 @@ var baseWrapperStyle = function baseWrapperStyle(props) {
48
48
  light: "var(--ds-surface-raised, white)",
49
49
  dark: "var(--ds-surface-raised, ".concat(BACKGROUND_COLOR_DARK, ")")
50
50
  })(props), ";\n\n ").concat(isSelected(props), ";\n\n ").concat(props.withoutBackground ? '' : themed({
51
- light: "border: 1px solid ".concat("var(--ds-border-input, ".concat(N40, ")"), ";"),
52
- dark: "border: 1px solid ".concat("var(--ds-border-input, ".concat(N500, ")"), ";")
51
+ light: "border: 1px solid ".concat("var(--ds-border, ".concat(N40, ")"), ";"),
52
+ dark: "border: 1px solid ".concat("var(--ds-border, ".concat(N500, ")"), ";")
53
53
  })(props), "\n &:hover {\n ").concat(themed({
54
54
  light: "border-color: ".concat("var(--ds-border-accent-blue, ".concat(B200, ")"), ";"),
55
55
  dark: "border-color: ".concat("var(--ds-border-accent-blue, ".concat(B200, ")"), ";")
@@ -13,8 +13,8 @@ export default (function (Button, frameRef) {
13
13
  return function (props) {
14
14
  var setBorderStyle = function setBorderStyle() {
15
15
  var borderColor = themed({
16
- light: "".concat("var(--ds-border-input, ".concat(N40, ")")),
17
- dark: "".concat("var(--ds-border-input, ".concat(N500, ")"))
16
+ light: "".concat("var(--ds-border, ".concat(N40, ")")),
17
+ dark: "".concat("var(--ds-border, ".concat(N500, ")"))
18
18
  })();
19
19
  var frameNode = frameRef.current;
20
20
  if (frameNode) {
@@ -125,8 +125,9 @@ export declare const useSmartLinkAnalytics: (url: string, _dispatchAnalytics?: A
125
125
  * @param id The unique ID for this Smart Link.
126
126
  * @param definitionId The definitionId of the Smart Link resolver invoked.
127
127
  * @param extensionKey The extensionKey of the Smart Link resovler invoked.
128
+ * @param canBeDatasource An indicator that shows that a smart link can be converted to a datasource
128
129
  */
129
- renderSuccessEvent: ({ display, status, id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: UiRenderSuccessEventProps) => void;
130
+ renderSuccessEvent: ({ display, status, id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, canBeDatasource, }: UiRenderSuccessEventProps) => void;
130
131
  /**
131
132
  * This fires an event that represents when a Smart Link renders unsuccessfuly.
132
133
  * @param display Whether the card was an Inline, Block, Embed or Flexible UI.
@@ -1,6 +1,7 @@
1
1
  import { JsonLd } from 'json-ld-types';
2
2
  import { CardType, CardStore } from '@atlaskit/linking-common';
3
3
  import { DestinationProduct, DestinationSubproduct } from '../utils/analytics/types';
4
+ import { DatasourceResolveResponse, JsonLdDatasourceResponse } from '@atlaskit/link-client-extension';
4
5
  export declare const getByDefinitionId: (definitionId: string | undefined, store: CardStore) => string[];
5
6
  export declare const getClickUrl: (url: string, jsonLd?: JsonLd.Response) => string;
6
7
  export declare const getDefinitionId: (details?: JsonLd.Response) => string | undefined;
@@ -14,3 +15,5 @@ export declare const isAccessible: ({ meta: { access } }: JsonLd.Response) => bo
14
15
  export declare const isVisible: ({ meta: { visibility } }: JsonLd.Response) => boolean;
15
16
  export declare const getStatusDetails: (details?: JsonLd.Response) => string | undefined;
16
17
  export declare const isFinalState: (status: CardType) => boolean;
18
+ export declare const getDatasources: (details?: JsonLdDatasourceResponse) => DatasourceResolveResponse[] | undefined;
19
+ export declare const getCanBeDatasource: (details?: JsonLdDatasourceResponse) => boolean;
@@ -30,7 +30,7 @@ dispatchAnalytics?: AnalyticsHandler): {
30
30
  modalClosedEvent: (data: Partial<import("../../utils/types").AnalyticsPayload> & {
31
31
  actionSubjectId: string;
32
32
  }) => void;
33
- renderSuccessEvent: ({ display, status, id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").UiRenderSuccessEventProps) => void;
33
+ renderSuccessEvent: ({ display, status, id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, canBeDatasource, }: import("../../utils/analytics/types").UiRenderSuccessEventProps) => void;
34
34
  renderFailedEvent: ({ display, id, error, errorInfo, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").UiRenderFailedEventProps) => void;
35
35
  hoverCardViewedEvent: ({ previewDisplay, previewInvokeMethod, id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, status, }: import("../../utils/analytics/types").UiHoverCardViewedEventProps) => void;
36
36
  hoverCardDismissedEvent: ({ id, previewDisplay, hoverTime, previewInvokeMethod, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, status, }: import("../../utils/analytics/types").UiHoverCardDismissedEventProps) => void;
@@ -49,7 +49,7 @@ export declare const uiIframeFocusedEvent: ({ id, display, status, definitionId,
49
49
  export declare const uiActionClickedEvent: ({ id, actionType, extensionKey, display, definitionId, destinationProduct, destinationSubproduct, location, }: UiActionClickedEventProps) => AnalyticsPayload;
50
50
  export declare const uiClosedAuthEvent: ({ display, extensionKey, definitionId, destinationProduct, destinationSubproduct, location, }: UiClosedAuthEventProps) => AnalyticsPayload;
51
51
  export declare const screenAuthPopupEvent: ({ extensionKey, definitionId, destinationProduct, destinationSubproduct, location, }: ScreenAuthPopupEventProps) => AnalyticsPayload;
52
- export declare const uiRenderSuccessEvent: ({ display, status, extensionKey, definitionId, destinationProduct, destinationSubproduct, location, }: UiRenderSuccessEventProps) => AnalyticsPayload;
52
+ export declare const uiRenderSuccessEvent: ({ display, status, extensionKey, definitionId, destinationProduct, destinationSubproduct, location, canBeDatasource, }: UiRenderSuccessEventProps) => AnalyticsPayload;
53
53
  export declare const uiRenderFailedEvent: ({ display, error, errorInfo, extensionKey, definitionId, destinationProduct, destinationSubproduct, location, }: UiRenderFailedEventProps) => AnalyticsPayload;
54
54
  export declare const uiHoverCardViewedEvent: ({ id, previewDisplay, extensionKey, definitionId, destinationProduct, destinationSubproduct, location, previewInvokeMethod, status, }: UiHoverCardViewedEventProps) => AnalyticsPayload;
55
55
  export declare const uiHoverCardDismissedEvent: ({ id, previewDisplay, hoverTime, extensionKey, definitionId, destinationProduct, destinationSubproduct, location, previewInvokeMethod, status, }: UiHoverCardDismissedEventProps) => AnalyticsPayload;
@@ -85,6 +85,7 @@ export type UiClosedAuthEventProps = CommonEventProps & {
85
85
  export type UiRenderSuccessEventProps = CommonEventProps & {
86
86
  display: CardInnerAppearance;
87
87
  status: CardType;
88
+ canBeDatasource?: boolean;
88
89
  };
89
90
  export type UiRenderFailedEventProps = CommonEventProps & {
90
91
  display: CardInnerAppearance;
@@ -35,6 +35,47 @@ export declare const mocks: {
35
35
  };
36
36
  };
37
37
  };
38
+ withDatasource: {
39
+ meta: {
40
+ visibility: string;
41
+ access: string;
42
+ auth: never[];
43
+ definitionId: string;
44
+ key: string;
45
+ };
46
+ data: {
47
+ summary: string;
48
+ 'schema:potentialAction': {
49
+ '@id': string;
50
+ '@type': string;
51
+ identifier: string;
52
+ name: string;
53
+ };
54
+ 'atlassian:downloadUrl': string;
55
+ preview: {
56
+ href: string;
57
+ };
58
+ '@context': {
59
+ '@vocab': string;
60
+ atlassian: string;
61
+ schema: string;
62
+ };
63
+ '@type': string;
64
+ name: string;
65
+ url: string;
66
+ };
67
+ datasources: {
68
+ key: string;
69
+ parameters: {
70
+ jql: string;
71
+ cloudId: string;
72
+ };
73
+ id: string;
74
+ ari: string;
75
+ description: string;
76
+ name: string;
77
+ }[];
78
+ };
38
79
  };
39
80
  export declare const fakeResponse: () => Promise<JsonLd.Response<JsonLd.Data.BaseData>>;
40
81
  export declare const fakeFactory: any;
@@ -55,7 +96,7 @@ export declare const mockAnalytics: {
55
96
  modalClosedEvent: (data: Partial<import("./types").AnalyticsPayload> & {
56
97
  actionSubjectId: string;
57
98
  }) => void;
58
- renderSuccessEvent: ({ display, status, id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("./analytics/types").UiRenderSuccessEventProps) => void;
99
+ renderSuccessEvent: ({ display, status, id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, canBeDatasource, }: import("./analytics/types").UiRenderSuccessEventProps) => void;
59
100
  renderFailedEvent: ({ display, id, error, errorInfo, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("./analytics/types").UiRenderFailedEventProps) => void;
60
101
  hoverCardViewedEvent: ({ previewDisplay, previewInvokeMethod, id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, status, }: import("./analytics/types").UiHoverCardViewedEventProps) => void;
61
102
  hoverCardDismissedEvent: ({ id, previewDisplay, hoverTime, previewInvokeMethod, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, status, }: import("./analytics/types").UiHoverCardDismissedEventProps) => void;
@@ -125,8 +125,9 @@ export declare const useSmartLinkAnalytics: (url: string, _dispatchAnalytics?: A
125
125
  * @param id The unique ID for this Smart Link.
126
126
  * @param definitionId The definitionId of the Smart Link resolver invoked.
127
127
  * @param extensionKey The extensionKey of the Smart Link resovler invoked.
128
+ * @param canBeDatasource An indicator that shows that a smart link can be converted to a datasource
128
129
  */
129
- renderSuccessEvent: ({ display, status, id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: UiRenderSuccessEventProps) => void;
130
+ renderSuccessEvent: ({ display, status, id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, canBeDatasource, }: UiRenderSuccessEventProps) => void;
130
131
  /**
131
132
  * This fires an event that represents when a Smart Link renders unsuccessfuly.
132
133
  * @param display Whether the card was an Inline, Block, Embed or Flexible UI.
@@ -1,6 +1,7 @@
1
1
  import { JsonLd } from 'json-ld-types';
2
2
  import { CardType, CardStore } from '@atlaskit/linking-common';
3
3
  import { DestinationProduct, DestinationSubproduct } from '../utils/analytics/types';
4
+ import { DatasourceResolveResponse, JsonLdDatasourceResponse } from '@atlaskit/link-client-extension';
4
5
  export declare const getByDefinitionId: (definitionId: string | undefined, store: CardStore) => string[];
5
6
  export declare const getClickUrl: (url: string, jsonLd?: JsonLd.Response) => string;
6
7
  export declare const getDefinitionId: (details?: JsonLd.Response) => string | undefined;
@@ -14,3 +15,5 @@ export declare const isAccessible: ({ meta: { access } }: JsonLd.Response) => bo
14
15
  export declare const isVisible: ({ meta: { visibility } }: JsonLd.Response) => boolean;
15
16
  export declare const getStatusDetails: (details?: JsonLd.Response) => string | undefined;
16
17
  export declare const isFinalState: (status: CardType) => boolean;
18
+ export declare const getDatasources: (details?: JsonLdDatasourceResponse) => DatasourceResolveResponse[] | undefined;
19
+ export declare const getCanBeDatasource: (details?: JsonLdDatasourceResponse) => boolean;
@@ -30,7 +30,7 @@ dispatchAnalytics?: AnalyticsHandler): {
30
30
  modalClosedEvent: (data: Partial<import("../../utils/types").AnalyticsPayload> & {
31
31
  actionSubjectId: string;
32
32
  }) => void;
33
- renderSuccessEvent: ({ display, status, id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").UiRenderSuccessEventProps) => void;
33
+ renderSuccessEvent: ({ display, status, id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, canBeDatasource, }: import("../../utils/analytics/types").UiRenderSuccessEventProps) => void;
34
34
  renderFailedEvent: ({ display, id, error, errorInfo, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").UiRenderFailedEventProps) => void;
35
35
  hoverCardViewedEvent: ({ previewDisplay, previewInvokeMethod, id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, status, }: import("../../utils/analytics/types").UiHoverCardViewedEventProps) => void;
36
36
  hoverCardDismissedEvent: ({ id, previewDisplay, hoverTime, previewInvokeMethod, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, status, }: import("../../utils/analytics/types").UiHoverCardDismissedEventProps) => void;
@@ -49,7 +49,7 @@ export declare const uiIframeFocusedEvent: ({ id, display, status, definitionId,
49
49
  export declare const uiActionClickedEvent: ({ id, actionType, extensionKey, display, definitionId, destinationProduct, destinationSubproduct, location, }: UiActionClickedEventProps) => AnalyticsPayload;
50
50
  export declare const uiClosedAuthEvent: ({ display, extensionKey, definitionId, destinationProduct, destinationSubproduct, location, }: UiClosedAuthEventProps) => AnalyticsPayload;
51
51
  export declare const screenAuthPopupEvent: ({ extensionKey, definitionId, destinationProduct, destinationSubproduct, location, }: ScreenAuthPopupEventProps) => AnalyticsPayload;
52
- export declare const uiRenderSuccessEvent: ({ display, status, extensionKey, definitionId, destinationProduct, destinationSubproduct, location, }: UiRenderSuccessEventProps) => AnalyticsPayload;
52
+ export declare const uiRenderSuccessEvent: ({ display, status, extensionKey, definitionId, destinationProduct, destinationSubproduct, location, canBeDatasource, }: UiRenderSuccessEventProps) => AnalyticsPayload;
53
53
  export declare const uiRenderFailedEvent: ({ display, error, errorInfo, extensionKey, definitionId, destinationProduct, destinationSubproduct, location, }: UiRenderFailedEventProps) => AnalyticsPayload;
54
54
  export declare const uiHoverCardViewedEvent: ({ id, previewDisplay, extensionKey, definitionId, destinationProduct, destinationSubproduct, location, previewInvokeMethod, status, }: UiHoverCardViewedEventProps) => AnalyticsPayload;
55
55
  export declare const uiHoverCardDismissedEvent: ({ id, previewDisplay, hoverTime, extensionKey, definitionId, destinationProduct, destinationSubproduct, location, previewInvokeMethod, status, }: UiHoverCardDismissedEventProps) => AnalyticsPayload;
@@ -85,6 +85,7 @@ export type UiClosedAuthEventProps = CommonEventProps & {
85
85
  export type UiRenderSuccessEventProps = CommonEventProps & {
86
86
  display: CardInnerAppearance;
87
87
  status: CardType;
88
+ canBeDatasource?: boolean;
88
89
  };
89
90
  export type UiRenderFailedEventProps = CommonEventProps & {
90
91
  display: CardInnerAppearance;
@@ -35,6 +35,47 @@ export declare const mocks: {
35
35
  };
36
36
  };
37
37
  };
38
+ withDatasource: {
39
+ meta: {
40
+ visibility: string;
41
+ access: string;
42
+ auth: never[];
43
+ definitionId: string;
44
+ key: string;
45
+ };
46
+ data: {
47
+ summary: string;
48
+ 'schema:potentialAction': {
49
+ '@id': string;
50
+ '@type': string;
51
+ identifier: string;
52
+ name: string;
53
+ };
54
+ 'atlassian:downloadUrl': string;
55
+ preview: {
56
+ href: string;
57
+ };
58
+ '@context': {
59
+ '@vocab': string;
60
+ atlassian: string;
61
+ schema: string;
62
+ };
63
+ '@type': string;
64
+ name: string;
65
+ url: string;
66
+ };
67
+ datasources: {
68
+ key: string;
69
+ parameters: {
70
+ jql: string;
71
+ cloudId: string;
72
+ };
73
+ id: string;
74
+ ari: string;
75
+ description: string;
76
+ name: string;
77
+ }[];
78
+ };
38
79
  };
39
80
  export declare const fakeResponse: () => Promise<JsonLd.Response<JsonLd.Data.BaseData>>;
40
81
  export declare const fakeFactory: any;
@@ -55,7 +96,7 @@ export declare const mockAnalytics: {
55
96
  modalClosedEvent: (data: Partial<import("./types").AnalyticsPayload> & {
56
97
  actionSubjectId: string;
57
98
  }) => void;
58
- renderSuccessEvent: ({ display, status, id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("./analytics/types").UiRenderSuccessEventProps) => void;
99
+ renderSuccessEvent: ({ display, status, id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, canBeDatasource, }: import("./analytics/types").UiRenderSuccessEventProps) => void;
59
100
  renderFailedEvent: ({ display, id, error, errorInfo, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("./analytics/types").UiRenderFailedEventProps) => void;
60
101
  hoverCardViewedEvent: ({ previewDisplay, previewInvokeMethod, id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, status, }: import("./analytics/types").UiHoverCardViewedEventProps) => void;
61
102
  hoverCardDismissedEvent: ({ id, previewDisplay, hoverTime, previewInvokeMethod, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, status, }: import("./analytics/types").UiHoverCardDismissedEventProps) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "26.27.0",
3
+ "version": "26.27.2",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -28,7 +28,7 @@
28
28
  "@atlaskit/avatar-group": "^9.4.0",
29
29
  "@atlaskit/badge": "^15.1.0",
30
30
  "@atlaskit/button": "^16.10.0",
31
- "@atlaskit/dropdown-menu": "^11.13.0",
31
+ "@atlaskit/dropdown-menu": "^11.14.0",
32
32
  "@atlaskit/frontend-utilities": "^2.7.0",
33
33
  "@atlaskit/icon": "^21.12.0",
34
34
  "@atlaskit/icon-file-type": "^6.4.0",
@@ -42,13 +42,13 @@
42
42
  "@atlaskit/linking-types": "^8.3.0",
43
43
  "@atlaskit/logo": "^13.14.0",
44
44
  "@atlaskit/lozenge": "^11.4.0",
45
- "@atlaskit/modal-dialog": "^12.6.0",
45
+ "@atlaskit/modal-dialog": "^12.7.0",
46
46
  "@atlaskit/outbound-auth-flow-client": "^3.4.0",
47
47
  "@atlaskit/platform-feature-flags": "^0.2.1",
48
- "@atlaskit/popup": "^1.9.0",
48
+ "@atlaskit/popup": "^1.10.0",
49
49
  "@atlaskit/spinner": "^15.5.0",
50
50
  "@atlaskit/theme": "^12.6.0",
51
- "@atlaskit/tokens": "^1.23.0",
51
+ "@atlaskit/tokens": "^1.25.0",
52
52
  "@atlaskit/tooltip": "^17.8.0",
53
53
  "@atlaskit/ufo": "^0.2.0",
54
54
  "@babel/runtime": "^7.0.0",
package/report.api.md CHANGED
@@ -1064,6 +1064,7 @@ type UiRenderFailedEventProps = CommonEventProps & {
1064
1064
  type UiRenderSuccessEventProps = CommonEventProps & {
1065
1065
  display: CardInnerAppearance;
1066
1066
  status: CardType;
1067
+ canBeDatasource?: boolean;
1067
1068
  };
1068
1069
 
1069
1070
  // @public (undocumented)
@@ -1181,6 +1182,7 @@ export const useSmartLinkAnalytics: (
1181
1182
  destinationProduct,
1182
1183
  destinationSubproduct,
1183
1184
  location,
1185
+ canBeDatasource,
1184
1186
  }: UiRenderSuccessEventProps) => void;
1185
1187
  renderFailedEvent: ({
1186
1188
  display,
@@ -912,6 +912,7 @@ type UiRenderFailedEventProps = CommonEventProps & {
912
912
  type UiRenderSuccessEventProps = CommonEventProps & {
913
913
  display: CardInnerAppearance;
914
914
  status: CardType;
915
+ canBeDatasource?: boolean;
915
916
  };
916
917
 
917
918
  // @public (undocumented)
@@ -936,7 +937,7 @@ export const useSmartLinkAnalytics: (url: string, _dispatchAnalytics?: Analytics
936
937
  modalClosedEvent: (data: Partial<AnalyticsPayload> & {
937
938
  actionSubjectId: Required<string>;
938
939
  }) => void;
939
- renderSuccessEvent: ({ display, status, id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: UiRenderSuccessEventProps) => void;
940
+ renderSuccessEvent: ({ display, status, id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, canBeDatasource, }: UiRenderSuccessEventProps) => void;
940
941
  renderFailedEvent: ({ display, id, error, errorInfo, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: UiRenderFailedEventProps) => void;
941
942
  hoverCardViewedEvent: ({ previewDisplay, previewInvokeMethod, id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, status, }: UiHoverCardViewedEventProps) => void;
942
943
  hoverCardDismissedEvent: ({ id, previewDisplay, hoverTime, previewInvokeMethod, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, status, }: UiHoverCardDismissedEventProps) => void;