@atlaskit/smart-card 26.47.0 → 26.48.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 (199) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/cjs/extractors/common/meta/extractIsTrusted.js +0 -7
  3. package/dist/cjs/i18n/cs.js +17 -21
  4. package/dist/cjs/i18n/da.js +17 -21
  5. package/dist/cjs/i18n/de.js +17 -21
  6. package/dist/cjs/i18n/en.js +17 -21
  7. package/dist/cjs/i18n/en_GB.js +17 -21
  8. package/dist/cjs/i18n/en_ZZ.js +17 -21
  9. package/dist/cjs/i18n/es.js +17 -21
  10. package/dist/cjs/i18n/fi.js +17 -21
  11. package/dist/cjs/i18n/fr.js +17 -21
  12. package/dist/cjs/i18n/hu.js +17 -21
  13. package/dist/cjs/i18n/it.js +17 -21
  14. package/dist/cjs/i18n/ja.js +17 -21
  15. package/dist/cjs/i18n/ko.js +17 -21
  16. package/dist/cjs/i18n/nb.js +17 -21
  17. package/dist/cjs/i18n/nl.js +17 -21
  18. package/dist/cjs/i18n/pl.js +17 -21
  19. package/dist/cjs/i18n/pt_BR.js +17 -21
  20. package/dist/cjs/i18n/ru.js +17 -21
  21. package/dist/cjs/i18n/sv.js +17 -21
  22. package/dist/cjs/i18n/th.js +17 -21
  23. package/dist/cjs/i18n/tr.js +17 -21
  24. package/dist/cjs/i18n/uk.js +17 -21
  25. package/dist/cjs/i18n/vi.js +17 -21
  26. package/dist/cjs/i18n/zh.js +13 -21
  27. package/dist/cjs/i18n/zh_TW.js +17 -21
  28. package/dist/cjs/state/hooks/use-ai-summary/ai-summary-service/index.js +179 -0
  29. package/dist/cjs/state/hooks/use-ai-summary/ai-summary-service/store.js +11 -0
  30. package/dist/cjs/state/hooks/use-ai-summary/ai-summary-service/types.js +5 -0
  31. package/dist/cjs/state/hooks/use-ai-summary/ai-summary-service/utils.js +131 -0
  32. package/dist/cjs/state/hooks/use-ai-summary/index.js +44 -0
  33. package/dist/cjs/utils/analytics/analytics.js +1 -1
  34. package/dist/cjs/utils/index.js +0 -5
  35. package/dist/cjs/view/FlexibleCard/components/blocks/ai-summary-block/resolved/index.js +12 -0
  36. package/dist/cjs/view/HoverCard/components/ContentContainer.js +43 -0
  37. package/dist/cjs/view/HoverCard/components/CustomPopupContainer.js +7 -1
  38. package/dist/cjs/view/HoverCard/components/HoverCardContent.js +18 -3
  39. package/dist/cjs/view/HoverCard/components/views/resolved/index.js +6 -7
  40. package/dist/cjs/view/HoverCard/styled.js +4 -2
  41. package/dist/cjs/view/HoverCard/utils.js +7 -1
  42. package/dist/cjs/view/LinkUrl/index.js +1 -1
  43. package/dist/es2019/extractors/common/meta/extractIsTrusted.js +0 -7
  44. package/dist/es2019/i18n/cs.js +17 -21
  45. package/dist/es2019/i18n/da.js +17 -21
  46. package/dist/es2019/i18n/de.js +17 -21
  47. package/dist/es2019/i18n/en.js +17 -21
  48. package/dist/es2019/i18n/en_GB.js +17 -21
  49. package/dist/es2019/i18n/en_ZZ.js +17 -21
  50. package/dist/es2019/i18n/es.js +17 -21
  51. package/dist/es2019/i18n/fi.js +17 -21
  52. package/dist/es2019/i18n/fr.js +17 -21
  53. package/dist/es2019/i18n/hu.js +17 -21
  54. package/dist/es2019/i18n/it.js +17 -21
  55. package/dist/es2019/i18n/ja.js +17 -21
  56. package/dist/es2019/i18n/ko.js +17 -21
  57. package/dist/es2019/i18n/nb.js +17 -21
  58. package/dist/es2019/i18n/nl.js +17 -21
  59. package/dist/es2019/i18n/pl.js +17 -21
  60. package/dist/es2019/i18n/pt_BR.js +17 -21
  61. package/dist/es2019/i18n/ru.js +17 -21
  62. package/dist/es2019/i18n/sv.js +17 -21
  63. package/dist/es2019/i18n/th.js +17 -21
  64. package/dist/es2019/i18n/tr.js +17 -21
  65. package/dist/es2019/i18n/uk.js +17 -21
  66. package/dist/es2019/i18n/vi.js +17 -21
  67. package/dist/es2019/i18n/zh.js +13 -21
  68. package/dist/es2019/i18n/zh_TW.js +17 -21
  69. package/dist/es2019/state/hooks/use-ai-summary/ai-summary-service/index.js +71 -0
  70. package/dist/es2019/state/hooks/use-ai-summary/ai-summary-service/store.js +5 -0
  71. package/dist/es2019/state/hooks/use-ai-summary/ai-summary-service/types.js +1 -0
  72. package/dist/es2019/state/hooks/use-ai-summary/ai-summary-service/utils.js +55 -0
  73. package/dist/es2019/state/hooks/use-ai-summary/index.js +35 -0
  74. package/dist/es2019/utils/analytics/analytics.js +1 -1
  75. package/dist/es2019/utils/index.js +0 -5
  76. package/dist/es2019/view/FlexibleCard/components/blocks/ai-summary-block/resolved/index.js +15 -1
  77. package/dist/es2019/view/HoverCard/components/ContentContainer.js +33 -0
  78. package/dist/es2019/view/HoverCard/components/CustomPopupContainer.js +8 -1
  79. package/dist/es2019/view/HoverCard/components/HoverCardContent.js +18 -6
  80. package/dist/es2019/view/HoverCard/components/views/resolved/index.js +6 -8
  81. package/dist/es2019/view/HoverCard/styled.js +4 -1
  82. package/dist/es2019/view/HoverCard/utils.js +4 -0
  83. package/dist/es2019/view/LinkUrl/index.js +1 -1
  84. package/dist/esm/extractors/common/meta/extractIsTrusted.js +0 -7
  85. package/dist/esm/i18n/cs.js +17 -21
  86. package/dist/esm/i18n/da.js +17 -21
  87. package/dist/esm/i18n/de.js +17 -21
  88. package/dist/esm/i18n/en.js +17 -21
  89. package/dist/esm/i18n/en_GB.js +17 -21
  90. package/dist/esm/i18n/en_ZZ.js +17 -21
  91. package/dist/esm/i18n/es.js +17 -21
  92. package/dist/esm/i18n/fi.js +17 -21
  93. package/dist/esm/i18n/fr.js +17 -21
  94. package/dist/esm/i18n/hu.js +17 -21
  95. package/dist/esm/i18n/it.js +17 -21
  96. package/dist/esm/i18n/ja.js +17 -21
  97. package/dist/esm/i18n/ko.js +17 -21
  98. package/dist/esm/i18n/nb.js +17 -21
  99. package/dist/esm/i18n/nl.js +17 -21
  100. package/dist/esm/i18n/pl.js +17 -21
  101. package/dist/esm/i18n/pt_BR.js +17 -21
  102. package/dist/esm/i18n/ru.js +17 -21
  103. package/dist/esm/i18n/sv.js +17 -21
  104. package/dist/esm/i18n/th.js +17 -21
  105. package/dist/esm/i18n/tr.js +17 -21
  106. package/dist/esm/i18n/uk.js +17 -21
  107. package/dist/esm/i18n/vi.js +17 -21
  108. package/dist/esm/i18n/zh.js +13 -21
  109. package/dist/esm/i18n/zh_TW.js +17 -21
  110. package/dist/esm/state/hooks/use-ai-summary/ai-summary-service/index.js +172 -0
  111. package/dist/esm/state/hooks/use-ai-summary/ai-summary-service/store.js +5 -0
  112. package/dist/esm/state/hooks/use-ai-summary/ai-summary-service/types.js +1 -0
  113. package/dist/esm/state/hooks/use-ai-summary/ai-summary-service/utils.js +123 -0
  114. package/dist/esm/state/hooks/use-ai-summary/index.js +37 -0
  115. package/dist/esm/utils/analytics/analytics.js +1 -1
  116. package/dist/esm/utils/index.js +0 -5
  117. package/dist/esm/view/FlexibleCard/components/blocks/ai-summary-block/resolved/index.js +13 -1
  118. package/dist/esm/view/HoverCard/components/ContentContainer.js +36 -0
  119. package/dist/esm/view/HoverCard/components/CustomPopupContainer.js +8 -1
  120. package/dist/esm/view/HoverCard/components/HoverCardContent.js +21 -6
  121. package/dist/esm/view/HoverCard/components/views/resolved/index.js +6 -7
  122. package/dist/esm/view/HoverCard/styled.js +4 -1
  123. package/dist/esm/view/HoverCard/utils.js +6 -0
  124. package/dist/esm/view/LinkUrl/index.js +1 -1
  125. package/dist/types/i18n/cs.d.ts +10 -14
  126. package/dist/types/i18n/da.d.ts +10 -14
  127. package/dist/types/i18n/de.d.ts +10 -14
  128. package/dist/types/i18n/en.d.ts +10 -14
  129. package/dist/types/i18n/en_GB.d.ts +10 -14
  130. package/dist/types/i18n/en_ZZ.d.ts +10 -14
  131. package/dist/types/i18n/es.d.ts +10 -14
  132. package/dist/types/i18n/fi.d.ts +10 -14
  133. package/dist/types/i18n/fr.d.ts +10 -14
  134. package/dist/types/i18n/hu.d.ts +10 -14
  135. package/dist/types/i18n/it.d.ts +10 -14
  136. package/dist/types/i18n/ja.d.ts +10 -14
  137. package/dist/types/i18n/ko.d.ts +10 -14
  138. package/dist/types/i18n/nb.d.ts +10 -14
  139. package/dist/types/i18n/nl.d.ts +10 -14
  140. package/dist/types/i18n/pl.d.ts +10 -14
  141. package/dist/types/i18n/pt_BR.d.ts +10 -14
  142. package/dist/types/i18n/ru.d.ts +10 -14
  143. package/dist/types/i18n/sv.d.ts +10 -14
  144. package/dist/types/i18n/th.d.ts +10 -14
  145. package/dist/types/i18n/tr.d.ts +10 -14
  146. package/dist/types/i18n/uk.d.ts +10 -14
  147. package/dist/types/i18n/vi.d.ts +10 -14
  148. package/dist/types/i18n/zh.d.ts +6 -14
  149. package/dist/types/i18n/zh_TW.d.ts +10 -14
  150. package/dist/types/state/hooks/use-ai-summary/ai-summary-service/index.d.ts +11 -0
  151. package/dist/types/state/hooks/use-ai-summary/ai-summary-service/store.d.ts +3 -0
  152. package/dist/types/state/hooks/use-ai-summary/ai-summary-service/types.d.ts +158 -0
  153. package/dist/types/state/hooks/use-ai-summary/ai-summary-service/utils.d.ts +3 -0
  154. package/dist/types/state/hooks/use-ai-summary/index.d.ts +9 -0
  155. package/dist/types/utils/index.d.ts +1 -1
  156. package/dist/types/view/HoverCard/components/ContentContainer.d.ts +4 -0
  157. package/dist/types/view/HoverCard/components/CustomPopupContainer.d.ts +5 -0
  158. package/dist/types/view/HoverCard/components/views/resolved/types.d.ts +3 -0
  159. package/dist/types/view/HoverCard/styled.d.ts +1 -0
  160. package/dist/types/view/HoverCard/types.d.ts +5 -0
  161. package/dist/types/view/HoverCard/utils.d.ts +2 -1
  162. package/dist/types-ts4.5/i18n/cs.d.ts +10 -14
  163. package/dist/types-ts4.5/i18n/da.d.ts +10 -14
  164. package/dist/types-ts4.5/i18n/de.d.ts +10 -14
  165. package/dist/types-ts4.5/i18n/en.d.ts +10 -14
  166. package/dist/types-ts4.5/i18n/en_GB.d.ts +10 -14
  167. package/dist/types-ts4.5/i18n/en_ZZ.d.ts +10 -14
  168. package/dist/types-ts4.5/i18n/es.d.ts +10 -14
  169. package/dist/types-ts4.5/i18n/fi.d.ts +10 -14
  170. package/dist/types-ts4.5/i18n/fr.d.ts +10 -14
  171. package/dist/types-ts4.5/i18n/hu.d.ts +10 -14
  172. package/dist/types-ts4.5/i18n/it.d.ts +10 -14
  173. package/dist/types-ts4.5/i18n/ja.d.ts +10 -14
  174. package/dist/types-ts4.5/i18n/ko.d.ts +10 -14
  175. package/dist/types-ts4.5/i18n/nb.d.ts +10 -14
  176. package/dist/types-ts4.5/i18n/nl.d.ts +10 -14
  177. package/dist/types-ts4.5/i18n/pl.d.ts +10 -14
  178. package/dist/types-ts4.5/i18n/pt_BR.d.ts +10 -14
  179. package/dist/types-ts4.5/i18n/ru.d.ts +10 -14
  180. package/dist/types-ts4.5/i18n/sv.d.ts +10 -14
  181. package/dist/types-ts4.5/i18n/th.d.ts +10 -14
  182. package/dist/types-ts4.5/i18n/tr.d.ts +10 -14
  183. package/dist/types-ts4.5/i18n/uk.d.ts +10 -14
  184. package/dist/types-ts4.5/i18n/vi.d.ts +10 -14
  185. package/dist/types-ts4.5/i18n/zh.d.ts +6 -14
  186. package/dist/types-ts4.5/i18n/zh_TW.d.ts +10 -14
  187. package/dist/types-ts4.5/state/hooks/use-ai-summary/ai-summary-service/index.d.ts +11 -0
  188. package/dist/types-ts4.5/state/hooks/use-ai-summary/ai-summary-service/store.d.ts +3 -0
  189. package/dist/types-ts4.5/state/hooks/use-ai-summary/ai-summary-service/types.d.ts +158 -0
  190. package/dist/types-ts4.5/state/hooks/use-ai-summary/ai-summary-service/utils.d.ts +3 -0
  191. package/dist/types-ts4.5/state/hooks/use-ai-summary/index.d.ts +9 -0
  192. package/dist/types-ts4.5/utils/index.d.ts +1 -1
  193. package/dist/types-ts4.5/view/HoverCard/components/ContentContainer.d.ts +4 -0
  194. package/dist/types-ts4.5/view/HoverCard/components/CustomPopupContainer.d.ts +5 -0
  195. package/dist/types-ts4.5/view/HoverCard/components/views/resolved/types.d.ts +3 -0
  196. package/dist/types-ts4.5/view/HoverCard/styled.d.ts +1 -0
  197. package/dist/types-ts4.5/view/HoverCard/types.d.ts +5 -0
  198. package/dist/types-ts4.5/view/HoverCard/utils.d.ts +2 -1
  199. package/package.json +7 -12
@@ -0,0 +1,158 @@
1
+ /// <reference types="filesystem" />
2
+ export interface AISummaryServiceInt {
3
+ summariseUrl: () => Promise<void>;
4
+ state: AISummaryState;
5
+ subscribe: (stateSetter: StateSetter) => void;
6
+ }
7
+ export type AISummaryServiceProps = {
8
+ baseUrl?: string;
9
+ headers?: Record<string, string>;
10
+ product?: ProductType;
11
+ url: string;
12
+ };
13
+ export type AISummaryServiceConfig = {
14
+ baseUrl: string;
15
+ headers: Record<string, string>;
16
+ };
17
+ export type AISummaryStatus = 'ready' | 'loading' | 'error' | 'done';
18
+ export type ProductType = 'confluence' | 'atlas' | 'jpd' | 'jsm' | 'jsw' | 'jwm' | 'bitbucket' | 'trello';
19
+ export type PostAgentPayload = {
20
+ recipient_agent_named_id: string;
21
+ agent_input: AgentInput;
22
+ user_intent?: string;
23
+ };
24
+ export type AgentInput = {
25
+ urls: Array<string>;
26
+ summary_style?: SummaryStyle;
27
+ };
28
+ export type SummaryStyle = 'short' | 'medium' | 'long';
29
+ export type AISummaryState = {
30
+ content: string;
31
+ status: AISummaryStatus;
32
+ };
33
+ export type StateSetter = (state: AISummaryState) => any;
34
+ export type StreamMessage = StreamTrace | StreamAnswerPart | StreamResponse | StreamError;
35
+ export type StreamResponse = {
36
+ type: 'FINAL_RESPONSE';
37
+ message: Message;
38
+ millisOffset?: number;
39
+ metadata?: {
40
+ request_id?: string;
41
+ };
42
+ };
43
+ export type StreamError = {
44
+ type: 'ERROR';
45
+ message: {
46
+ content: string;
47
+ status_code?: number;
48
+ message_template?: string;
49
+ };
50
+ millisOffset: number;
51
+ metadata: null | {
52
+ error_message?: string;
53
+ request_id?: string;
54
+ timeout?: number;
55
+ };
56
+ };
57
+ export type StreamAnswerPart = {
58
+ type: 'ANSWER_PART';
59
+ message: {
60
+ content: string;
61
+ role: 'ASSISTANT';
62
+ };
63
+ millisOffset: number;
64
+ metadata?: {
65
+ run_id?: string;
66
+ request_id?: string;
67
+ };
68
+ };
69
+ export type StreamTrace = {
70
+ type: 'TRACE';
71
+ message: {
72
+ content: string;
73
+ };
74
+ millisOffset: number;
75
+ metadata?: {
76
+ run_id: string;
77
+ request_id: string;
78
+ plugin_name?: string;
79
+ plugin_input?: string;
80
+ };
81
+ };
82
+ export type Usage = {
83
+ model_usage: {
84
+ [key: string]: ModelUsage;
85
+ };
86
+ total: ModelUsage;
87
+ };
88
+ export type ModelUsage = {
89
+ total_tokens: number;
90
+ prompt_tokens: number;
91
+ completion_tokens: number;
92
+ request_count: number;
93
+ total_cost: number;
94
+ duration: number;
95
+ };
96
+ export type Durations = {
97
+ events: {
98
+ [key: string]: number;
99
+ };
100
+ total: number;
101
+ };
102
+ export type Message = {
103
+ appendices?: Appendices;
104
+ author?: {
105
+ actor_type: string;
106
+ ari: string | null;
107
+ id: string;
108
+ name: string;
109
+ named_id: string;
110
+ };
111
+ author_id?: string;
112
+ content: string;
113
+ content_mime_type: ContentType;
114
+ conversation_channel_id?: string;
115
+ experience_id: ExpirienceID;
116
+ message_metadata?: Metadata;
117
+ plugin_invocations: PluginInvocationMessage[];
118
+ role: Role;
119
+ id: number;
120
+ time_created: string;
121
+ user_ari: string;
122
+ sources?: Sources;
123
+ };
124
+ export type ContentType = 'text/markdown';
125
+ export type ExpirienceID = 'ai-mate';
126
+ export type Role = 'ASSISTANT';
127
+ export type Appendices = Array<Appendix>;
128
+ export type Appendix = {
129
+ type: 'requestForm' | 'helpDesk';
130
+ content: string;
131
+ appendix_sources?: Sources;
132
+ };
133
+ export type Sources = Array<Source>;
134
+ export type Source = {
135
+ ari: string;
136
+ title: string;
137
+ type: string;
138
+ url: string;
139
+ lastModified: string;
140
+ message_id: number;
141
+ id: number;
142
+ };
143
+ export type PluginInvocation = {
144
+ id: number | null;
145
+ plugin_description: string | null;
146
+ plugin_error_message: string | null;
147
+ plugin_extra_info: string | null;
148
+ plugin_input: string | null;
149
+ plugin_invocation_duration: number | null;
150
+ plugin_invocation_id: string | null;
151
+ plugin_invocation_status: `PLUGIN_STARTED` | `PLUGIN_FINISHED` | null;
152
+ plugin_invocation_time: string | null;
153
+ plugin_name: string | null;
154
+ plugin_output: string | null;
155
+ };
156
+ export type PluginInvocationMessage = PluginInvocation & {
157
+ message_id: number | null;
158
+ };
@@ -0,0 +1,3 @@
1
+ export declare function readStream<T>(response: Response): AsyncGenerator<T>;
2
+ export declare const getBufferReader: (response: Response) => ReadableStreamDefaultReader<string>;
3
+ export declare const addPath: (baseUrl: string, path: string) => string;
@@ -0,0 +1,9 @@
1
+ import type { AISummaryServiceProps, AISummaryStatus } from './ai-summary-service/types';
2
+ export declare const useAISummary: (props: AISummaryServiceProps) => {
3
+ isSummarised: boolean;
4
+ summariseUrl: () => Promise<void> | undefined;
5
+ state: {
6
+ status: AISummaryStatus;
7
+ content: string;
8
+ };
9
+ };
@@ -16,7 +16,7 @@ export declare const isSpecialKey: (event: React.MouseEvent | React.KeyboardEven
16
16
  export declare const isSpecialClick: (event: React.MouseEvent) => boolean;
17
17
  export declare const getIconForFileType: (fileMimeType: string) => React.ReactNode | undefined;
18
18
  export declare const getLabelForFileType: (fileMimeType: string) => React.ReactNode | undefined;
19
- export declare const getIframeSandboxAttribute: (isTrusted: boolean) => string | undefined;
19
+ export declare const getIframeSandboxAttribute: (isTrusted: boolean) => "allow-downloads allow-forms allow-popups allow-popups-to-escape-sandbox allow-presentation allow-same-origin allow-scripts" | undefined;
20
20
  export declare const handleOnClick: (handler: Function) => (e: React.BaseSyntheticEvent) => void;
21
21
  export declare const isIntersectionObserverSupported: () => boolean;
22
22
  export declare const sleep: (ms: number) => Promise<void>;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import type { ContentContainerProps } from '../types';
3
+ declare const ContentContainer: React.FC<ContentContainerProps>;
4
+ export default ContentContainer;
@@ -1,5 +1,10 @@
1
1
  /** @jsx jsx */
2
2
  import React from 'react';
3
3
  import { PopupComponentProps } from '@atlaskit/popup';
4
+ /**
5
+ * The purpose of this component is to hide the default Popup border.
6
+ * HoverCard border implementation is in ContentContainer where it can
7
+ * change between the default border and prism border during runtime.
8
+ */
4
9
  declare const CustomPopupContainer: React.ForwardRefExoticComponent<Pick<PopupComponentProps, "children" | "style" | "id" | "tabIndex" | "data-testid" | "shouldRenderToParent" | "data-placement"> & React.RefAttributes<HTMLDivElement>>;
5
10
  export default CustomPopupContainer;
@@ -2,6 +2,7 @@ import { AnalyticsFacade } from '../../../../../state/analytics';
2
2
  import { LinkAction } from '../../../../../state/hooks-external/useSmartLinkActions';
3
3
  import { CardState } from '@atlaskit/linking-common';
4
4
  import { HoverCardLoadingViewProps } from '../resolving/types';
5
+ import { AISummaryBlockProps } from '../../../../FlexibleCard/components/blocks/ai-summary-block/types';
5
6
  export type HoverCardResolvedProps = {
6
7
  extensionKey?: string;
7
8
  id?: string;
@@ -9,5 +10,7 @@ export type HoverCardResolvedProps = {
9
10
  analytics: AnalyticsFacade;
10
11
  cardActions?: LinkAction[];
11
12
  cardState: CardState;
13
+ isAISummaryEnabled?: boolean;
12
14
  onActionClick: (actionId: string) => void;
15
+ onAIActionChange?: AISummaryBlockProps['onAIActionChange'];
13
16
  } & HoverCardLoadingViewProps;
@@ -2,6 +2,7 @@ import { FlexibleUiOptions } from '../FlexibleCard/types';
2
2
  export declare const HOVER_CARD_Z_INDEX: 510;
3
3
  export declare const flexibleUiOptions: FlexibleUiOptions;
4
4
  export declare const CARD_WIDTH_REM = 24;
5
+ export declare const NEW_CARD_WIDTH_REM = 28;
5
6
  export declare const CARD_GAP_PX = 10;
6
7
  export declare const separatorCss: import("@emotion/react").SerializedStyles;
7
8
  export declare const HoverCardContainer: import("@emotion/react").SerializedStyles;
@@ -99,6 +99,11 @@ export type HoverCardContentProps = {
99
99
  onMouseLeave?: MouseEventHandler;
100
100
  actionOptions?: CardActionOptions;
101
101
  };
102
+ export type ContentContainerProps = React.HTMLAttributes<HTMLDivElement> & {
103
+ isAIEnabled?: boolean;
104
+ showPrism?: boolean;
105
+ testId?: string;
106
+ };
102
107
  export type ImagePreviewProps = {
103
108
  data: JsonLd.Data.BaseData;
104
109
  fallbackElementHeight: number;
@@ -1,3 +1,4 @@
1
- import { JsonLd } from 'json-ld-types';
1
+ import type { JsonLd } from 'json-ld-types';
2
2
  export declare const getSimulatedMetadata: (extensionKey: string | undefined, data: JsonLd.Data.BaseData) => JsonLd.Primitives.Property<any>;
3
3
  export declare const getSimulatedBetterMetadata: (extensionKey: string | undefined, data: JsonLd.Data.BaseData) => JsonLd.Primitives.Property<any>;
4
+ export declare const getIsAISummaryEnabled: (isAdminHubAIEnabled?: boolean, response?: JsonLd.Response) => boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "26.47.0",
3
+ "version": "26.48.0",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -27,12 +27,12 @@
27
27
  "dependencies": {
28
28
  "@atlaskit/analytics-gas-types": "^5.1.0",
29
29
  "@atlaskit/analytics-next": "^9.2.0",
30
- "@atlaskit/avatar": "^21.4.0",
30
+ "@atlaskit/avatar": "^21.5.0",
31
31
  "@atlaskit/avatar-group": "^9.5.0",
32
32
  "@atlaskit/badge": "^15.2.0",
33
- "@atlaskit/button": "^17.3.0",
33
+ "@atlaskit/button": "^17.4.0",
34
34
  "@atlaskit/dropdown-menu": "^12.5.0",
35
- "@atlaskit/icon": "^22.0.0",
35
+ "@atlaskit/icon": "^22.1.0",
36
36
  "@atlaskit/icon-file-type": "^6.4.0",
37
37
  "@atlaskit/icon-object": "^6.3.0",
38
38
  "@atlaskit/icon-priority": "^6.3.0",
@@ -48,10 +48,10 @@
48
48
  "@atlaskit/outbound-auth-flow-client": "^3.4.0",
49
49
  "@atlaskit/platform-feature-flags": "^0.2.1",
50
50
  "@atlaskit/popup": "^1.12.0",
51
- "@atlaskit/primitives": "^2.0.0",
51
+ "@atlaskit/primitives": "^2.1.0",
52
52
  "@atlaskit/spinner": "^16.0.0",
53
53
  "@atlaskit/theme": "^12.6.0",
54
- "@atlaskit/tokens": "^1.36.0",
54
+ "@atlaskit/tokens": "^1.38.0",
55
55
  "@atlaskit/tooltip": "^18.1.0",
56
56
  "@atlaskit/ufo": "^0.2.0",
57
57
  "@babel/runtime": "^7.0.0",
@@ -60,6 +60,7 @@
60
60
  "@formatjs/intl-utils": "^3.8.4",
61
61
  "facepaint": "^1.2.1",
62
62
  "json-ld-types": "^3.11.0",
63
+ "lru_map": "^0.4.1",
63
64
  "markdown-to-jsx": "^7.1.7",
64
65
  "react-error-boundary": "^3.1.3",
65
66
  "react-lazily-render": "^1.2.0",
@@ -138,12 +139,6 @@
138
139
  ".": "./src/index.ts"
139
140
  },
140
141
  "platform-feature-flags": {
141
- "platform.linking-platform.smart-card.fix-is-trusted-pop": {
142
- "type": "boolean"
143
- },
144
- "platform.linking-platform.smart-card.iframes-allow-storage-access-by-user-activation": {
145
- "type": "boolean"
146
- },
147
142
  "platform.linking-platform.smart-card.enable-hover-card-related-urls": {
148
143
  "type": "boolean"
149
144
  },