@atlaskit/smart-card 33.1.0 → 33.3.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 (247) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/cjs/extractors/flexible/actions/extract-copy-link-action.js +1 -20
  3. package/dist/cjs/extractors/flexible/actions/extract-download-action.js +1 -23
  4. package/dist/cjs/extractors/flexible/actions/extract-preview-action.js +1 -34
  5. package/dist/cjs/extractors/flexible/actions/index.js +2 -15
  6. package/dist/cjs/extractors/flexible/extract-state.js +1 -5
  7. package/dist/cjs/extractors/flexible/index.js +3 -7
  8. package/dist/cjs/state/actions/index.js +2 -4
  9. package/dist/cjs/state/analytics/index.js +1 -8
  10. package/dist/cjs/state/flexible-ui-context/index.js +1 -10
  11. package/dist/cjs/state/hooks/use-invoke-client-action/index.js +21 -44
  12. package/dist/cjs/state/hooks/useSmartLink.js +1 -4
  13. package/dist/cjs/state/hooks-external/useSmartLinkActions.js +5 -21
  14. package/dist/cjs/state/hooks-external/useSmartLinkReload.js +1 -3
  15. package/dist/cjs/state/index.js +1 -8
  16. package/dist/cjs/utils/analytics/SmartLinkAnalyticsContext.js +3 -37
  17. package/dist/cjs/utils/analytics/analytics.js +2 -144
  18. package/dist/cjs/utils/analytics/index.js +0 -30
  19. package/dist/cjs/utils/analytics/types.js +1 -5
  20. package/dist/cjs/utils/mocks.js +1 -23
  21. package/dist/cjs/view/BlockCard/index.js +1 -3
  22. package/dist/cjs/view/BlockCard/views/ResolvedView.js +1 -3
  23. package/dist/cjs/view/BlockCard/views/UnauthorisedView.js +2 -4
  24. package/dist/cjs/view/CardWithUrl/component.js +13 -33
  25. package/dist/cjs/view/CardWithUrl/loader.js +10 -22
  26. package/dist/cjs/view/EmbedCard/index.js +0 -4
  27. package/dist/cjs/view/EmbedCard/views/unauthorized-view/index.js +3 -5
  28. package/dist/cjs/view/EmbedModal/components/analytics/index.js +40 -89
  29. package/dist/cjs/view/EmbedModal/index.js +9 -68
  30. package/dist/cjs/view/FlexibleCard/components/actions/copy-link-action/index.js +27 -67
  31. package/dist/cjs/view/FlexibleCard/components/actions/download-action/index.js +5 -44
  32. package/dist/cjs/view/FlexibleCard/components/actions/preview-action/index.js +5 -51
  33. package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/index.js +3 -3
  34. package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/index.js +10 -26
  35. package/dist/cjs/view/FlexibleCard/components/utils.js +1 -28
  36. package/dist/cjs/view/FlexibleCard/index.js +3 -17
  37. package/dist/cjs/view/HoverCard/components/HoverCardComponent.js +1 -3
  38. package/dist/cjs/view/HoverCard/components/HoverCardContent.js +1 -8
  39. package/dist/cjs/view/HoverCard/components/views/resolved/index.js +13 -30
  40. package/dist/cjs/view/HoverCard/components/views/unauthorised/index.js +3 -5
  41. package/dist/cjs/view/HoverCard/index.js +10 -22
  42. package/dist/cjs/view/InlineCard/index.js +1 -3
  43. package/dist/cjs/view/LinkUrl/index.js +1 -1
  44. package/dist/es2019/extractors/flexible/actions/extract-copy-link-action.js +0 -19
  45. package/dist/es2019/extractors/flexible/actions/extract-download-action.js +0 -21
  46. package/dist/es2019/extractors/flexible/actions/extract-preview-action.js +0 -34
  47. package/dist/es2019/extractors/flexible/actions/index.js +4 -23
  48. package/dist/es2019/extractors/flexible/extract-state.js +1 -5
  49. package/dist/es2019/extractors/flexible/index.js +3 -4
  50. package/dist/es2019/state/actions/index.js +2 -4
  51. package/dist/es2019/state/analytics/index.js +1 -2
  52. package/dist/es2019/state/flexible-ui-context/index.js +0 -7
  53. package/dist/es2019/state/hooks/use-invoke-client-action/index.js +21 -44
  54. package/dist/es2019/state/hooks/useSmartLink.js +1 -4
  55. package/dist/es2019/state/hooks-external/useSmartLinkActions.js +5 -21
  56. package/dist/es2019/state/hooks-external/useSmartLinkReload.js +1 -3
  57. package/dist/es2019/state/index.js +1 -2
  58. package/dist/es2019/utils/analytics/SmartLinkAnalyticsContext.js +3 -40
  59. package/dist/es2019/utils/analytics/analytics.js +2 -145
  60. package/dist/es2019/utils/analytics/index.js +1 -1
  61. package/dist/es2019/utils/analytics/types.js +0 -1
  62. package/dist/es2019/utils/mocks.js +1 -23
  63. package/dist/es2019/view/BlockCard/index.js +1 -3
  64. package/dist/es2019/view/BlockCard/views/ResolvedView.js +1 -3
  65. package/dist/es2019/view/BlockCard/views/UnauthorisedView.js +1 -3
  66. package/dist/es2019/view/CardWithUrl/component.js +14 -34
  67. package/dist/es2019/view/CardWithUrl/loader.js +11 -23
  68. package/dist/es2019/view/EmbedCard/index.js +0 -4
  69. package/dist/es2019/view/EmbedCard/views/unauthorized-view/index.js +1 -3
  70. package/dist/es2019/view/EmbedModal/components/analytics/index.js +39 -88
  71. package/dist/es2019/view/EmbedModal/index.js +10 -35
  72. package/dist/es2019/view/FlexibleCard/components/actions/copy-link-action/index.js +13 -37
  73. package/dist/es2019/view/FlexibleCard/components/actions/download-action/index.js +6 -27
  74. package/dist/es2019/view/FlexibleCard/components/actions/preview-action/index.js +6 -32
  75. package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/index.js +3 -3
  76. package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/index.js +6 -24
  77. package/dist/es2019/view/FlexibleCard/components/utils.js +0 -25
  78. package/dist/es2019/view/FlexibleCard/index.js +3 -15
  79. package/dist/es2019/view/HoverCard/components/HoverCardComponent.js +1 -3
  80. package/dist/es2019/view/HoverCard/components/HoverCardContent.js +1 -8
  81. package/dist/es2019/view/HoverCard/components/views/resolved/index.js +12 -25
  82. package/dist/es2019/view/HoverCard/components/views/unauthorised/index.js +2 -4
  83. package/dist/es2019/view/HoverCard/index.js +11 -23
  84. package/dist/es2019/view/InlineCard/index.js +0 -2
  85. package/dist/es2019/view/LinkUrl/index.js +1 -1
  86. package/dist/esm/extractors/flexible/actions/extract-copy-link-action.js +0 -19
  87. package/dist/esm/extractors/flexible/actions/extract-download-action.js +0 -23
  88. package/dist/esm/extractors/flexible/actions/extract-preview-action.js +0 -34
  89. package/dist/esm/extractors/flexible/actions/index.js +4 -17
  90. package/dist/esm/extractors/flexible/extract-state.js +1 -5
  91. package/dist/esm/extractors/flexible/index.js +3 -4
  92. package/dist/esm/state/actions/index.js +2 -4
  93. package/dist/esm/state/analytics/index.js +1 -2
  94. package/dist/esm/state/flexible-ui-context/index.js +0 -9
  95. package/dist/esm/state/hooks/use-invoke-client-action/index.js +21 -44
  96. package/dist/esm/state/hooks/useSmartLink.js +1 -4
  97. package/dist/esm/state/hooks-external/useSmartLinkActions.js +5 -21
  98. package/dist/esm/state/hooks-external/useSmartLinkReload.js +1 -3
  99. package/dist/esm/state/index.js +1 -2
  100. package/dist/esm/utils/analytics/SmartLinkAnalyticsContext.js +3 -37
  101. package/dist/esm/utils/analytics/analytics.js +1 -143
  102. package/dist/esm/utils/analytics/index.js +1 -1
  103. package/dist/esm/utils/analytics/types.js +0 -1
  104. package/dist/esm/utils/mocks.js +0 -22
  105. package/dist/esm/view/BlockCard/index.js +1 -3
  106. package/dist/esm/view/BlockCard/views/ResolvedView.js +1 -3
  107. package/dist/esm/view/BlockCard/views/UnauthorisedView.js +2 -4
  108. package/dist/esm/view/CardWithUrl/component.js +14 -34
  109. package/dist/esm/view/CardWithUrl/loader.js +10 -22
  110. package/dist/esm/view/EmbedCard/index.js +0 -4
  111. package/dist/esm/view/EmbedCard/views/unauthorized-view/index.js +3 -5
  112. package/dist/esm/view/EmbedModal/components/analytics/index.js +40 -89
  113. package/dist/esm/view/EmbedModal/index.js +11 -70
  114. package/dist/esm/view/FlexibleCard/components/actions/copy-link-action/index.js +28 -68
  115. package/dist/esm/view/FlexibleCard/components/actions/download-action/index.js +6 -45
  116. package/dist/esm/view/FlexibleCard/components/actions/preview-action/index.js +6 -52
  117. package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/index.js +3 -3
  118. package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/index.js +6 -26
  119. package/dist/esm/view/FlexibleCard/components/utils.js +0 -27
  120. package/dist/esm/view/FlexibleCard/index.js +4 -18
  121. package/dist/esm/view/HoverCard/components/HoverCardComponent.js +1 -3
  122. package/dist/esm/view/HoverCard/components/HoverCardContent.js +1 -8
  123. package/dist/esm/view/HoverCard/components/views/resolved/index.js +13 -30
  124. package/dist/esm/view/HoverCard/components/views/unauthorised/index.js +3 -5
  125. package/dist/esm/view/HoverCard/index.js +10 -22
  126. package/dist/esm/view/InlineCard/index.js +1 -3
  127. package/dist/esm/view/LinkUrl/index.js +1 -1
  128. package/dist/types/extractors/common/actions/types.d.ts +0 -2
  129. package/dist/types/extractors/flexible/actions/extract-copy-link-action.d.ts +0 -7
  130. package/dist/types/extractors/flexible/actions/extract-download-action.d.ts +0 -7
  131. package/dist/types/extractors/flexible/actions/extract-preview-action.d.ts +0 -7
  132. package/dist/types/extractors/flexible/actions/index.d.ts +0 -6
  133. package/dist/types/state/actions/index.d.ts +1 -2
  134. package/dist/types/state/analytics/index.d.ts +0 -2
  135. package/dist/types/state/flexible-ui-context/index.d.ts +1 -7
  136. package/dist/types/state/flexible-ui-context/types.d.ts +4 -25
  137. package/dist/types/state/hooks/use-invoke/types.d.ts +0 -6
  138. package/dist/types/state/hooks/use-invoke-client-action/index.d.ts +1 -1
  139. package/dist/types/state/hooks/use-invoke-client-action/types.d.ts +0 -6
  140. package/dist/types/state/hooks/useSmartLink.d.ts +0 -22
  141. package/dist/types/state/index.d.ts +0 -1
  142. package/dist/types/utils/analytics/SmartLinkAnalyticsContext.d.ts +1 -1
  143. package/dist/types/utils/analytics/analytics.d.ts +0 -6
  144. package/dist/types/utils/analytics/index.d.ts +1 -1
  145. package/dist/types/utils/analytics/types.d.ts +0 -42
  146. package/dist/types/utils/mocks.d.ts +0 -22
  147. package/dist/types/view/BlockCard/index.d.ts +1 -1
  148. package/dist/types/view/BlockCard/types.d.ts +0 -2
  149. package/dist/types/view/BlockCard/views/types.d.ts +1 -1
  150. package/dist/types/view/CardWithUrl/types.d.ts +0 -2
  151. package/dist/types/view/EmbedCard/types.d.ts +0 -2
  152. package/dist/types/view/EmbedCard/views/unauthorized-view/index.d.ts +1 -1
  153. package/dist/types/view/EmbedCard/views/unauthorized-view/types.d.ts +0 -2
  154. package/dist/types/view/EmbedModal/components/analytics/types.d.ts +0 -2
  155. package/dist/types/view/EmbedModal/index.d.ts +0 -2
  156. package/dist/types/view/EmbedModal/types.d.ts +0 -3
  157. package/dist/types/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/index.d.ts +1 -1
  158. package/dist/types/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/types.d.ts +0 -6
  159. package/dist/types/view/FlexibleCard/components/utils.d.ts +0 -6
  160. package/dist/types/view/FlexibleCard/index.d.ts +1 -1
  161. package/dist/types/view/FlexibleCard/types.d.ts +0 -6
  162. package/dist/types/view/HoverCard/components/CustomPopupContainer.d.ts +1 -1
  163. package/dist/types/view/HoverCard/components/HoverCardContent.d.ts +1 -1
  164. package/dist/types/view/HoverCard/components/views/resolved/index.d.ts +1 -1
  165. package/dist/types/view/HoverCard/components/views/resolved/types.d.ts +0 -2
  166. package/dist/types/view/HoverCard/components/views/unauthorised/index.d.ts +1 -1
  167. package/dist/types/view/HoverCard/components/views/unauthorised/types.d.ts +0 -5
  168. package/dist/types/view/HoverCard/types.d.ts +0 -3
  169. package/dist/types/view/InlineCard/UnauthorisedView/index.d.ts +0 -3
  170. package/dist/types/view/InlineCard/index.d.ts +1 -1
  171. package/dist/types/view/InlineCard/types.d.ts +0 -2
  172. package/dist/types/view/common/UnauthorisedViewContent.d.ts +0 -6
  173. package/dist/types-ts4.5/extractors/common/actions/types.d.ts +0 -2
  174. package/dist/types-ts4.5/extractors/flexible/actions/extract-copy-link-action.d.ts +0 -7
  175. package/dist/types-ts4.5/extractors/flexible/actions/extract-download-action.d.ts +0 -7
  176. package/dist/types-ts4.5/extractors/flexible/actions/extract-preview-action.d.ts +0 -7
  177. package/dist/types-ts4.5/extractors/flexible/actions/index.d.ts +0 -6
  178. package/dist/types-ts4.5/state/actions/index.d.ts +1 -2
  179. package/dist/types-ts4.5/state/analytics/index.d.ts +0 -2
  180. package/dist/types-ts4.5/state/flexible-ui-context/index.d.ts +1 -7
  181. package/dist/types-ts4.5/state/flexible-ui-context/types.d.ts +4 -25
  182. package/dist/types-ts4.5/state/hooks/use-invoke/types.d.ts +0 -6
  183. package/dist/types-ts4.5/state/hooks/use-invoke-client-action/index.d.ts +1 -1
  184. package/dist/types-ts4.5/state/hooks/use-invoke-client-action/types.d.ts +0 -6
  185. package/dist/types-ts4.5/state/hooks/useSmartLink.d.ts +0 -22
  186. package/dist/types-ts4.5/state/index.d.ts +0 -1
  187. package/dist/types-ts4.5/utils/analytics/SmartLinkAnalyticsContext.d.ts +1 -1
  188. package/dist/types-ts4.5/utils/analytics/analytics.d.ts +0 -6
  189. package/dist/types-ts4.5/utils/analytics/index.d.ts +1 -1
  190. package/dist/types-ts4.5/utils/analytics/types.d.ts +0 -42
  191. package/dist/types-ts4.5/utils/mocks.d.ts +0 -22
  192. package/dist/types-ts4.5/view/BlockCard/index.d.ts +1 -1
  193. package/dist/types-ts4.5/view/BlockCard/types.d.ts +0 -2
  194. package/dist/types-ts4.5/view/BlockCard/views/types.d.ts +1 -1
  195. package/dist/types-ts4.5/view/CardWithUrl/types.d.ts +0 -2
  196. package/dist/types-ts4.5/view/EmbedCard/types.d.ts +0 -2
  197. package/dist/types-ts4.5/view/EmbedCard/views/unauthorized-view/index.d.ts +1 -1
  198. package/dist/types-ts4.5/view/EmbedCard/views/unauthorized-view/types.d.ts +0 -2
  199. package/dist/types-ts4.5/view/EmbedModal/components/analytics/types.d.ts +0 -2
  200. package/dist/types-ts4.5/view/EmbedModal/index.d.ts +0 -2
  201. package/dist/types-ts4.5/view/EmbedModal/types.d.ts +0 -3
  202. package/dist/types-ts4.5/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/index.d.ts +1 -1
  203. package/dist/types-ts4.5/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/types.d.ts +0 -6
  204. package/dist/types-ts4.5/view/FlexibleCard/components/utils.d.ts +0 -6
  205. package/dist/types-ts4.5/view/FlexibleCard/index.d.ts +1 -1
  206. package/dist/types-ts4.5/view/FlexibleCard/types.d.ts +0 -6
  207. package/dist/types-ts4.5/view/HoverCard/components/CustomPopupContainer.d.ts +1 -1
  208. package/dist/types-ts4.5/view/HoverCard/components/HoverCardContent.d.ts +1 -1
  209. package/dist/types-ts4.5/view/HoverCard/components/views/resolved/index.d.ts +1 -1
  210. package/dist/types-ts4.5/view/HoverCard/components/views/resolved/types.d.ts +0 -2
  211. package/dist/types-ts4.5/view/HoverCard/components/views/unauthorised/index.d.ts +1 -1
  212. package/dist/types-ts4.5/view/HoverCard/components/views/unauthorised/types.d.ts +0 -5
  213. package/dist/types-ts4.5/view/HoverCard/types.d.ts +0 -3
  214. package/dist/types-ts4.5/view/InlineCard/UnauthorisedView/index.d.ts +0 -3
  215. package/dist/types-ts4.5/view/InlineCard/index.d.ts +1 -1
  216. package/dist/types-ts4.5/view/InlineCard/types.d.ts +0 -2
  217. package/dist/types-ts4.5/view/common/UnauthorisedViewContent.d.ts +0 -6
  218. package/package.json +1 -4
  219. package/dist/cjs/extractors/action/extractDownloadActionProps.js +0 -32
  220. package/dist/cjs/extractors/action/extractPreviewActionProps.js +0 -47
  221. package/dist/cjs/extractors/action/extractViewActionProps.js +0 -31
  222. package/dist/cjs/extractors/flexible/actions/extract-view-action.js +0 -27
  223. package/dist/cjs/state/analytics/useSmartLinkAnalytics.js +0 -311
  224. package/dist/es2019/extractors/action/extractDownloadActionProps.js +0 -24
  225. package/dist/es2019/extractors/action/extractPreviewActionProps.js +0 -36
  226. package/dist/es2019/extractors/action/extractViewActionProps.js +0 -23
  227. package/dist/es2019/extractors/flexible/actions/extract-view-action.js +0 -20
  228. package/dist/es2019/state/analytics/useSmartLinkAnalytics.js +0 -296
  229. package/dist/esm/extractors/action/extractDownloadActionProps.js +0 -27
  230. package/dist/esm/extractors/action/extractPreviewActionProps.js +0 -41
  231. package/dist/esm/extractors/action/extractViewActionProps.js +0 -26
  232. package/dist/esm/extractors/flexible/actions/extract-view-action.js +0 -22
  233. package/dist/esm/state/analytics/useSmartLinkAnalytics.js +0 -304
  234. package/dist/types/extractors/action/extractDownloadActionProps.d.ts +0 -7
  235. package/dist/types/extractors/action/extractPreviewActionProps.d.ts +0 -7
  236. package/dist/types/extractors/action/extractViewActionProps.d.ts +0 -7
  237. package/dist/types/extractors/flexible/actions/extract-view-action.d.ts +0 -7
  238. package/dist/types/state/analytics/useSmartLinkAnalytics.d.ts +0 -91
  239. package/dist/types/utils/analytics/__mocks__/analytics.d.ts +0 -2
  240. package/dist/types/view/FlexibleCard/components/actions/follow-action/__fixtures__/follow-goal-context.d.ts +0 -3
  241. package/dist/types-ts4.5/extractors/action/extractDownloadActionProps.d.ts +0 -7
  242. package/dist/types-ts4.5/extractors/action/extractPreviewActionProps.d.ts +0 -7
  243. package/dist/types-ts4.5/extractors/action/extractViewActionProps.d.ts +0 -7
  244. package/dist/types-ts4.5/extractors/flexible/actions/extract-view-action.d.ts +0 -7
  245. package/dist/types-ts4.5/state/analytics/useSmartLinkAnalytics.d.ts +0 -91
  246. package/dist/types-ts4.5/utils/analytics/__mocks__/analytics.d.ts +0 -2
  247. package/dist/types-ts4.5/view/FlexibleCard/components/actions/follow-action/__fixtures__/follow-goal-context.d.ts +0 -3
@@ -9,5 +9,5 @@ import { type PopupComponentProps } from '@atlaskit/popup';
9
9
  * HoverCard border implementation is in ContentContainer where it can
10
10
  * change between the default border and prism border during runtime.
11
11
  */
12
- declare const CustomPopupContainer: React.ForwardRefExoticComponent<Pick<PopupComponentProps, "appearance" | "style" | "id" | "tabIndex" | "role" | "children" | "data-testid" | "shouldFitContainer" | "xcss" | "shouldRenderToParent" | "data-placement"> & React.RefAttributes<HTMLDivElement>>;
12
+ declare const CustomPopupContainer: React.ForwardRefExoticComponent<Pick<PopupComponentProps, "appearance" | "style" | "id" | "tabIndex" | "role" | "children" | "data-testid" | "xcss" | "shouldFitContainer" | "shouldRenderToParent" | "data-placement"> & React.RefAttributes<HTMLDivElement>>;
13
13
  export default CustomPopupContainer;
@@ -1,5 +1,5 @@
1
1
  import { jsx } from '@emotion/react';
2
2
  import { type HoverCardContentProps } from '../types';
3
3
  export declare const hoverCardClassName = "smart-links-hover-preview";
4
- declare const HoverCardContent: ({ id, analytics: _analytics, cardState, onActionClick, onResolve, renderers, url, onMouseEnter, onMouseLeave, actionOptions, }: HoverCardContentProps) => jsx.JSX.Element | null;
4
+ declare const HoverCardContent: ({ id, cardState, onActionClick, onResolve, renderers, url, onMouseEnter, onMouseLeave, actionOptions, }: HoverCardContentProps) => jsx.JSX.Element | null;
5
5
  export default HoverCardContent;
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import { type HoverCardResolvedProps } from './types';
3
- declare const HoverCardResolvedView: ({ analytics, cardState, extensionKey, flexibleCardProps, isAISummaryEnabled, onActionClick, titleBlockProps, id, }: HoverCardResolvedProps) => JSX.Element;
3
+ declare const HoverCardResolvedView: ({ cardState, extensionKey, flexibleCardProps, isAISummaryEnabled, onActionClick, titleBlockProps, id, }: HoverCardResolvedProps) => JSX.Element;
4
4
  export default HoverCardResolvedView;
@@ -1,13 +1,11 @@
1
1
  import { type CardState } from '@atlaskit/linking-common';
2
2
  import type { ActionName } from '../../../../../constants';
3
- import { type AnalyticsFacade } from '../../../../../state/analytics';
4
3
  import { type LinkAction } from '../../../../../state/hooks-external/useSmartLinkActions';
5
4
  import { type HoverCardLoadingViewProps } from '../resolving/types';
6
5
  export type HoverCardResolvedProps = {
7
6
  extensionKey?: string;
8
7
  id?: string;
9
8
  url: string;
10
- analytics: AnalyticsFacade;
11
9
  cardActions?: LinkAction[];
12
10
  cardState: CardState;
13
11
  isAISummaryEnabled?: boolean;
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import { type HoverCardUnauthorisedProps } from './types';
3
- declare const HoverCardUnauthorisedView: ({ analytics, id, flexibleCardProps, testId, url, }: HoverCardUnauthorisedProps) => JSX.Element;
3
+ declare const HoverCardUnauthorisedView: ({ id, flexibleCardProps, testId, url, }: HoverCardUnauthorisedProps) => JSX.Element;
4
4
  export default HoverCardUnauthorisedView;
@@ -1,10 +1,5 @@
1
- import { type AnalyticsFacade } from '../../../../../state/analytics';
2
1
  import { type FlexibleCardProps } from '../../../../FlexibleCard/types';
3
2
  export type HoverCardUnauthorisedProps = {
4
- /**
5
- * An AnalyticsFacade object used for calling analytics.
6
- */
7
- analytics: AnalyticsFacade;
8
3
  /**
9
4
  * Provides the extensionKey of a Smart Link resolver invoked.
10
5
  */
@@ -4,7 +4,6 @@ import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
4
4
  import { type CardProviderRenderers } from '@atlaskit/link-provider';
5
5
  import { type CardState } from '@atlaskit/linking-common';
6
6
  import type { ActionName } from '../../constants';
7
- import { type AnalyticsFacade } from '../../state/analytics';
8
7
  import { type AnalyticsHandler } from '../../utils/types';
9
8
  import type { CardActionOptions } from '../Card/types';
10
9
  export interface HoverCardProps extends WithAnalyticsEventsProps {
@@ -63,13 +62,11 @@ export interface HoverCardInternalProps {
63
62
  }
64
63
  export interface HoverCardComponentProps extends HoverCardProps, HoverCardInternalProps {
65
64
  analyticsHandler?: AnalyticsHandler;
66
- analytics?: AnalyticsFacade;
67
65
  canOpen?: boolean;
68
66
  closeOnChildClick?: boolean;
69
67
  }
70
68
  export type HoverCardContentProps = {
71
69
  id?: string;
72
- analytics?: AnalyticsFacade;
73
70
  cardState: CardState;
74
71
  renderers?: CardProviderRenderers;
75
72
  onActionClick: (actionId: string | ActionName) => void;
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
- import { type AnalyticsFacade } from '../../../state/analytics';
3
2
  export interface InlineCardUnauthorizedViewProps {
4
3
  /** The url to display */
5
4
  url: string;
@@ -19,8 +18,6 @@ export interface InlineCardUnauthorizedViewProps {
19
18
  showHoverPreview?: boolean;
20
19
  /** A smart link id that may be used in analytics */
21
20
  id?: string;
22
- /** An AnalyticsFacade object used for calling analytics. */
23
- analytics: AnalyticsFacade;
24
21
  /** An identifier of the provider which will be executing the action. */
25
22
  extensionKey?: string;
26
23
  /** Truncates the card to one line */
@@ -6,4 +6,4 @@ import { InlineCardResolvingView } from './ResolvingView';
6
6
  import { type InlineCardProps } from './types';
7
7
  import { InlineCardUnauthorizedView } from './UnauthorisedView';
8
8
  export { InlineCardResolvedView, InlineCardResolvingView, InlineCardErroredView, InlineCardForbiddenView, InlineCardUnauthorizedView, };
9
- export declare const InlineCard: ({ analytics, id, url, cardState, handleAuthorize, handleFrameClick, isSelected, isHovered, renderers, onResolve, onError, testId, inlinePreloaderStyle, showHoverPreview, hoverPreviewOptions, actionOptions, removeTextHighlightingFromTitle, resolvingPlaceholder, truncateInline, }: InlineCardProps) => JSX.Element;
9
+ export declare const InlineCard: ({ id, url, cardState, handleAuthorize, handleFrameClick, isSelected, isHovered, renderers, onResolve, onError, testId, inlinePreloaderStyle, showHoverPreview, hoverPreviewOptions, actionOptions, removeTextHighlightingFromTitle, resolvingPlaceholder, truncateInline, }: InlineCardProps) => JSX.Element;
@@ -1,6 +1,5 @@
1
1
  import { type EventHandler, type KeyboardEvent, type MouseEvent } from 'react';
2
2
  import { type CardProviderRenderers } from '@atlaskit/link-provider';
3
- import { type AnalyticsFacade } from '../../state/analytics';
4
3
  import { type CardState } from '../../state/types';
5
4
  import type { CardActionOptions } from '../Card/types';
6
5
  import { type HoverPreviewOptions } from '../HoverCard/types';
@@ -24,7 +23,6 @@ export type InlineCardProps = {
24
23
  showHoverPreview?: boolean;
25
24
  hoverPreviewOptions?: HoverPreviewOptions;
26
25
  actionOptions?: CardActionOptions;
27
- analytics: AnalyticsFacade;
28
26
  removeTextHighlightingFromTitle?: boolean;
29
27
  resolvingPlaceholder?: string;
30
28
  truncateInline?: boolean;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- import { type AnalyticsFacade } from '../../state/analytics';
3
2
  type UnauthorisedViewContentProps = {
4
3
  /**
5
4
  * Is the name of the provider for the account that needs to be connected
@@ -17,11 +16,6 @@ type UnauthorisedViewContentProps = {
17
16
  * serving as a hook for automated tests
18
17
  */
19
18
  testId?: string;
20
- /**
21
- * An analytics facade object which will be used to send analytics.
22
- * @internal
23
- */
24
- analytics?: AnalyticsFacade;
25
19
  };
26
20
  /**
27
21
  * This component is used in unauthorized views of a smart link.
@@ -1,10 +1,8 @@
1
1
  import { type JsonLd } from 'json-ld-types';
2
- import { type AnalyticsFacade } from '../../../state/analytics';
3
2
  import { type AnalyticsOrigin } from '../../../utils/types';
4
3
  import { type CardActionOptions, type CardInnerAppearance } from '../../../view/Card/types';
5
4
  export type ExtractActionsProps = {
6
5
  response: JsonLd.Response;
7
- analytics: AnalyticsFacade;
8
6
  actionOptions?: CardActionOptions;
9
7
  extensionKey?: string;
10
8
  source?: CardInnerAppearance;
@@ -1,10 +1,3 @@
1
- import { type JsonLd } from 'json-ld-types';
2
1
  import { type CopyLinkActionData } from '../../../state/flexible-ui-context/types';
3
- import { type CardActionOptions } from '../../../view/Card/types';
4
2
  import { type ExtractClientActionsParam } from '../../action/types';
5
- /**
6
- * TODO: Remove on cleanup of platform-smart-card-migrate-embed-modal-analytics
7
- * Replaced with extractCopyLinkClientAction()
8
- */
9
- export declare const extractCopyLinkAction: (data: JsonLd.Data.BaseData, actionOptions?: CardActionOptions) => CopyLinkActionData | undefined;
10
3
  export declare const extractCopyLinkClientAction: (param: ExtractClientActionsParam) => CopyLinkActionData | undefined;
@@ -1,10 +1,3 @@
1
- import { type JsonLd } from 'json-ld-types';
2
1
  import { type DownloadActionData } from '../../../state/flexible-ui-context/types';
3
- import { type CardActionOptions } from '../../../view/Card/types';
4
2
  import { type ExtractClientActionsParam } from '../../action/types';
5
- /**
6
- * TODO: Remove on cleanup of platform-smart-card-migrate-embed-modal-analytics
7
- * Replaced with extractDownloadClientAction()
8
- */
9
- export declare const extractDownloadAction: (data: JsonLd.Data.BaseData, actionOptions?: CardActionOptions) => DownloadActionData | undefined;
10
3
  export declare const extractDownloadClientAction: (param: ExtractClientActionsParam) => DownloadActionData | undefined;
@@ -1,10 +1,3 @@
1
- import { type JsonLd } from 'json-ld-types';
2
1
  import { type PreviewActionData } from '../../../state/flexible-ui-context/types';
3
- import { type CardActionOptions } from '../../../view/Card/types';
4
2
  import { type ExtractInvokePreviewActionParam } from '../../action/extract-invoke-preview-action';
5
- /**
6
- * TODO: Remove on cleanup of platform-smart-card-migrate-embed-modal-analytics
7
- * Replaced with extractPreviewClientAction()
8
- */
9
- export declare const extractPreviewAction: (response: JsonLd.Response, actionOptions?: CardActionOptions) => PreviewActionData | undefined;
10
3
  export declare const extractPreviewClientAction: (param: ExtractInvokePreviewActionParam) => PreviewActionData | undefined;
@@ -15,9 +15,3 @@ export type ExtractActionsParam = {
15
15
  fireEvent?: FireEventFunction;
16
16
  };
17
17
  export declare const extractFlexibleCardActions: ({ actionOptions, aiSummaryConfig, appearance, fireEvent, id, origin, response, url, }: ExtractActionsParam) => FlexibleUiActions | undefined;
18
- /**
19
- * TODO: Remove on cleanup of platform-smart-card-migrate-embed-modal-analytics
20
- * Replaced with extractFlexibleCardActions()
21
- */
22
- declare const extractActions: (response: JsonLd.Response, url?: string, actionOptions?: CardActionOptions, id?: string, aiSummaryConfig?: AISummaryConfig) => FlexibleUiActions | undefined;
23
- export default extractActions;
@@ -1,8 +1,7 @@
1
1
  import { type JsonLd } from 'json-ld-types';
2
2
  import { type InvokeClientOpts, type InvokeServerOpts } from '../../model/invoke-opts';
3
3
  import { type CardInnerAppearance } from '../../view/Card/types';
4
- import { type AnalyticsFacade } from '../analytics';
5
- export declare const useSmartCardActions: (id: string, url: string, analytics: AnalyticsFacade) => {
4
+ export declare const useSmartCardActions: (id: string, url: string) => {
6
5
  register: () => Promise<void>;
7
6
  reload: () => void;
8
7
  authorize: (appearance: CardInnerAppearance) => void;
@@ -1,3 +1 @@
1
1
  export { startUfoExperience, succeedUfoExperience, failUfoExperience, addMetadataToExperience, } from './ufoExperiences';
2
- export { useSmartLinkAnalytics } from './useSmartLinkAnalytics';
3
- export type { AnalyticsFacade } from './useSmartLinkAnalytics';
@@ -1,18 +1,12 @@
1
1
  /// <reference types="react" />
2
2
  import { type FlexibleUiOptions } from '../../view/FlexibleCard/types';
3
- import type { FlexibleAnalyticsContextType, FlexibleUiDataContext } from './types';
3
+ import type { FlexibleUiDataContext } from './types';
4
4
  /**
5
5
  * This provides the data that will be used by Smart Links Flexible UI to populate it's
6
6
  * underlying elements.
7
7
  */
8
8
  export declare const FlexibleUiContext: import("react").Context<FlexibleUiDataContext | undefined>;
9
9
  export declare const useFlexibleUiContext: () => FlexibleUiDataContext | undefined;
10
- /**
11
- * This provides the data that will be used by Smart Links Flexible UI to populate it's
12
- * underlying elements.
13
- */
14
- export declare const FlexibleUiAnalyticsContext: import("react").Context<FlexibleAnalyticsContextType | undefined>;
15
- export declare const useFlexibleUiAnalyticsContext: () => FlexibleAnalyticsContextType | undefined;
16
10
  /**
17
11
  * This provides the ui options that will be used by Smart Links Flexible UI
18
12
  * to render its underlying elements.
@@ -1,9 +1,6 @@
1
1
  import { type LinkPerson } from '@atlaskit/link-extractors';
2
2
  import { type ActionName, type IconType, type InternalActionName, type MediaType } from '../../constants';
3
3
  import { type LinkLozenge } from '../../extractors/common/lozenge/types';
4
- import { type AnalyticsOrigin } from '../../utils/types';
5
- import { type CardInnerAppearance } from '../../view/Card/types';
6
- import { type AnalyticsFacade } from '../analytics';
7
4
  import { type InvokeClientActionProps } from '../hooks/use-invoke-client-action/types';
8
5
  import { type InvokeRequestWithCardDetails } from '../hooks/use-invoke/types';
9
6
  /**
@@ -107,7 +104,7 @@ export type FlexibleUiDataContext = {
107
104
  * @type ViewActionData
108
105
  * @see ViewAction
109
106
  */
110
- viewAction?: ViewActionData;
107
+ viewAction?: PreviewActionData;
111
108
  /**
112
109
  * Contains the information about the latest commit in the repository
113
110
  */
@@ -252,27 +249,13 @@ export type FlexibleUiActions = {
252
249
  [InternalActionName.ViewRelatedLinksAction]?: ViewRelatedLinksActionData;
253
250
  };
254
251
  export type PreviewActionData = {
255
- invokeAction?: InvokeClientActionProps;
256
- downloadUrl?: string;
257
- linkIcon?: Icon;
258
- providerName?: string;
259
- origin?: AnalyticsOrigin;
260
- src?: string;
261
- title?: string;
262
- url?: string;
263
- isSupportTheming?: boolean;
264
- isTrusted?: boolean;
265
- };
266
- export type ViewActionData = {
267
- viewUrl?: string;
252
+ invokeAction: InvokeClientActionProps;
268
253
  };
269
254
  export type DownloadActionData = {
270
- invokeAction?: InvokeClientActionProps;
271
- downloadUrl?: string;
255
+ invokeAction: InvokeClientActionProps;
272
256
  };
273
257
  export type CopyLinkActionData = {
274
- invokeAction?: InvokeClientActionProps;
275
- url?: string;
258
+ invokeAction: InvokeClientActionProps;
276
259
  };
277
260
  export type AISummaryActionData = {
278
261
  url: string;
@@ -290,10 +273,6 @@ export type AutomationActionData = {
290
273
  export type ViewRelatedLinksActionData = {
291
274
  ari: string;
292
275
  };
293
- export type FlexibleAnalyticsContextType = AnalyticsFacade & {
294
- display?: CardInnerAppearance;
295
- extensionKey?: string;
296
- };
297
276
  export type ServerActionProp<TValue> = {
298
277
  action: InvokeRequestWithCardDetails;
299
278
  value?: TValue;
@@ -1,5 +1,4 @@
1
1
  import { type InvokeRequest } from '@atlaskit/linking-types/smart-link-actions';
2
- import { type PreviewActionData } from '../../flexible-ui-context/types';
3
2
  import type { InvokeClientActionProps } from '../use-invoke-client-action/types';
4
3
  /**
5
4
  * Additional details for invoke function that may be required for component
@@ -17,11 +16,6 @@ export type CardDetails = {
17
16
  * The URL of the Smart Link
18
17
  */
19
18
  url?: string;
20
- /**
21
- * Preview Modal information. If present, will be used to render an embed modal on an error link click
22
- * TODO: Remove on cleanup of platform-smart-card-migrate-embed-modal-analytics
23
- */
24
- previewData?: PreviewActionData | null;
25
19
  };
26
20
  /**
27
21
  * Additional details to reload smart links
@@ -2,5 +2,5 @@ import { type InvokeClientActionHandler, type UseInvokeClientActionProps } from
2
2
  /**
3
3
  * Invoke client action such as preview, download and open link
4
4
  */
5
- declare const useInvokeClientAction: ({ analytics, fireEvent: fireEventProp, }: UseInvokeClientActionProps) => InvokeClientActionHandler;
5
+ declare const useInvokeClientAction: ({ fireEvent: fireEventProp, }: UseInvokeClientActionProps) => InvokeClientActionHandler;
6
6
  export default useInvokeClientAction;
@@ -1,11 +1,6 @@
1
1
  import { type FireEventFunction } from '../../../common/analytics/types';
2
2
  import { type CardInnerAppearance } from '../../../view/Card/types';
3
- import { type AnalyticsFacade } from '../../analytics';
4
3
  export type UseInvokeClientActionProps = {
5
- /**
6
- * Analytics object
7
- */
8
- analytics?: AnalyticsFacade;
9
4
  /**
10
5
  * A function to dispatch analytics events.
11
6
  */
@@ -38,7 +33,6 @@ export type InvokeClientActionProps = {
38
33
  /**
39
34
  * Link provider extension key
40
35
  * This value should have already been set in analytics object through
41
- * useSmartLinkAnalytics() and/or into the analytic context.
42
36
  */
43
37
  extensionKey?: string;
44
38
  /**
@@ -8,28 +8,6 @@ export declare function useSmartLink(id: string, url: string): {
8
8
  loadMetadata: () => Promise<void> | undefined;
9
9
  };
10
10
  config: (import("@atlaskit/link-provider").CardProviderCacheOpts & import("@atlaskit/link-provider").CardAuthFlowOpts) | undefined;
11
- analytics: {
12
- ui: {
13
- buttonClickedEvent: (data: Partial<import("../..").AnalyticsPayload> & {
14
- actionSubjectId: string;
15
- }) => void;
16
- actionClickedEvent: ({ id, actionType, display, extensionKey: overrideExtensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").UiActionClickedEventProps) => void;
17
- modalClosedEvent: (data: Partial<import("../..").AnalyticsPayload> & {
18
- actionSubjectId: string;
19
- }) => void;
20
- renderSuccessEvent: ({ display, status, id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, canBeDatasource, }: import("../../utils/analytics/types").UiRenderSuccessEventProps) => void;
21
- renderFailedEvent: ({ display, id, error, errorInfo, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").UiRenderFailedEventProps) => void;
22
- };
23
- operational: {
24
- invokeSucceededEvent: ({ id, actionType, display, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").InvokeSucceededEventProps) => void;
25
- invokeFailedEvent: ({ id, actionType, display, reason, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").InvokeFailedEventProps) => void;
26
- };
27
- screen: {
28
- modalViewedEvent: (data: Partial<import("../..").AnalyticsPayload> & {
29
- name: "embedPreviewModal";
30
- }) => void;
31
- };
32
- };
33
11
  renderers: import("@atlaskit/link-provider").CardProviderRenderers | undefined;
34
12
  error: Error | null;
35
13
  };
@@ -2,4 +2,3 @@ export { SmartCardContext, SmartCardProvider, useSmartLinkContext } from '@atlas
2
2
  export type { CardContext, ProviderProps } from '@atlaskit/link-provider';
3
3
  export type { CardType } from '@atlaskit/linking-common';
4
4
  export { useSmartLink, usePrefetch } from './hooks';
5
- export { useSmartLinkAnalytics } from './analytics';
@@ -24,5 +24,5 @@ export declare const useSmartLinkAnalyticsContext: ({ display, id, source, url,
24
24
  * Provides an analytics context to supply attributes to events based on a URL
25
25
  * and the link state in the store
26
26
  */
27
- export declare const SmartLinkAnalyticsContext: (props: SmartLinkAnalyticsContextProps) => JSX.Element;
27
+ export declare const SmartLinkAnalyticsContext: ({ children, display, id, source, url, }: SmartLinkAnalyticsContextProps) => JSX.Element;
28
28
  export {};
@@ -1,7 +1,6 @@
1
1
  import { type CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
2
2
  import { type CardInnerAppearance } from '../../view/Card/types';
3
3
  import { type AnalyticsPayload } from '../types';
4
- import { type InvokeFailedEventProps, type InvokeSucceededEventProps, type UiActionClickedEventProps, type UiRenderFailedEventProps, type UiRenderSuccessEventProps } from './types';
5
4
  export declare const ANALYTICS_CHANNEL = "media";
6
5
  export declare const context: {
7
6
  componentName: string;
@@ -20,8 +19,3 @@ export declare class SmartLinkEvents {
20
19
  insertSmartLink(url: string, type: CardInnerAppearance, createAnalyticsEvent?: CreateUIAnalyticsEvent): void;
21
20
  }
22
21
  export declare const fireSmartLinkEvent: (payload: AnalyticsPayload, createAnalyticsEvent?: CreateUIAnalyticsEvent) => void;
23
- export declare const invokeSucceededEvent: ({ id, actionType, display, extensionKey, definitionId, destinationProduct, destinationSubproduct, location, }: InvokeSucceededEventProps) => AnalyticsPayload;
24
- export declare const invokeFailedEvent: ({ id, actionType, display, reason, extensionKey, definitionId, destinationProduct, destinationSubproduct, location, }: InvokeFailedEventProps) => AnalyticsPayload;
25
- export declare const uiActionClickedEvent: ({ id, actionType, extensionKey, display, definitionId, destinationProduct, destinationSubproduct, location, }: UiActionClickedEventProps) => AnalyticsPayload;
26
- export declare const uiRenderSuccessEvent: ({ display, status, extensionKey, definitionId, destinationProduct, destinationSubproduct, location, canBeDatasource, }: UiRenderSuccessEventProps) => AnalyticsPayload;
27
- export declare const uiRenderFailedEvent: ({ display, error, errorInfo, extensionKey, definitionId, destinationProduct, destinationSubproduct, location, }: UiRenderFailedEventProps) => AnalyticsPayload;
@@ -1 +1 @@
1
- export { ANALYTICS_CHANNEL, context, fireSmartLinkEvent, invokeSucceededEvent, invokeFailedEvent, uiActionClickedEvent, uiRenderSuccessEvent, uiRenderFailedEvent, } from './analytics';
1
+ export { ANALYTICS_CHANNEL, context, fireSmartLinkEvent } from './analytics';
@@ -1,47 +1,5 @@
1
- import { type ErrorInfo } from 'react';
2
- import { type CardType } from '@atlaskit/linking-common';
3
- import { type InvokeType } from '../../model/invoke-opts';
4
- import { type CardInnerAppearance } from '../../view/Card/types';
5
1
  export type DestinationProduct = 'jira' | 'confluence' | 'bitbucket' | 'trello';
6
2
  export type DestinationSubproduct = 'core' | 'software' | 'servicedesk';
7
- export interface CommonEventProps {
8
- id?: string;
9
- definitionId?: string;
10
- extensionKey?: string;
11
- resourceType?: string;
12
- destinatinoObjectType?: string;
13
- destinationSubproduct?: DestinationSubproduct | string;
14
- destinationProduct?: DestinationProduct | string;
15
- location?: string;
16
- statusDetails?: string;
17
- }
18
- export type InvokeSucceededEventProps = CommonEventProps & {
19
- id?: string;
20
- actionType: string;
21
- display?: CardInnerAppearance;
22
- };
23
- export type InvokeFailedEventProps = CommonEventProps & {
24
- id?: string;
25
- actionType: string;
26
- display?: CardInnerAppearance;
27
- reason: string;
28
- };
29
- export type UiActionClickedEventProps = CommonEventProps & {
30
- id?: string;
31
- display?: CardInnerAppearance;
32
- actionType: string;
33
- invokeType?: InvokeType;
34
- };
35
- export type UiRenderSuccessEventProps = CommonEventProps & {
36
- display: CardInnerAppearance;
37
- status: CardType;
38
- canBeDatasource?: boolean;
39
- };
40
- export type UiRenderFailedEventProps = CommonEventProps & {
41
- display: CardInnerAppearance;
42
- error: Error;
43
- errorInfo: ErrorInfo;
44
- };
45
3
  export type ClickType = 'left' | 'middle' | 'right' | 'keyboard' | 'none';
46
4
  export type ClickOutcome = 'prevented' | 'clickThrough' | 'clickThroughNewTabOrWindow' | 'contextMenu' | 'alt' | 'contentEditable' | 'unknown';
47
5
  export type UiLinkClickedEventProps = {
@@ -89,25 +89,3 @@ export declare const mocks: {
89
89
  export declare const fakeResponse: () => Promise<JsonLd.Response<JsonLd.Data.BaseData>>;
90
90
  export declare const fakeFactory: any;
91
91
  export declare const waitFor: (time?: number) => Promise<unknown>;
92
- export declare const mockAnalytics: {
93
- ui: {
94
- buttonClickedEvent: (data: Partial<import("./types").AnalyticsPayload> & {
95
- actionSubjectId: string;
96
- }) => void;
97
- actionClickedEvent: ({ id, actionType, display, extensionKey: overrideExtensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("./analytics/types").UiActionClickedEventProps) => void;
98
- modalClosedEvent: (data: Partial<import("./types").AnalyticsPayload> & {
99
- actionSubjectId: string;
100
- }) => void;
101
- renderSuccessEvent: ({ display, status, id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, canBeDatasource, }: import("./analytics/types").UiRenderSuccessEventProps) => void;
102
- renderFailedEvent: ({ display, id, error, errorInfo, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("./analytics/types").UiRenderFailedEventProps) => void;
103
- };
104
- operational: {
105
- invokeSucceededEvent: ({ id, actionType, display, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("./analytics/types").InvokeSucceededEventProps) => void;
106
- invokeFailedEvent: ({ id, actionType, display, reason, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("./analytics/types").InvokeFailedEventProps) => void;
107
- };
108
- screen: {
109
- modalViewedEvent: (data: Partial<import("./types").AnalyticsPayload> & {
110
- name: "embedPreviewModal";
111
- }) => void;
112
- };
113
- };
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
2
  import { type BlockCardProps } from './types';
3
- export declare const BlockCard: ({ id, url, cardState, authFlow, handleAuthorize, handleFrameClick, renderers, isSelected, onResolve, onError, testId, analytics, actionOptions, }: BlockCardProps) => JSX.Element;
3
+ export declare const BlockCard: ({ id, url, cardState, authFlow, handleAuthorize, handleFrameClick, renderers, isSelected, onResolve, onError, testId, actionOptions, }: BlockCardProps) => JSX.Element;
@@ -1,6 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import { type CardAuthFlowOpts, type CardProviderRenderers } from '@atlaskit/link-provider';
3
- import { type AnalyticsFacade } from '../../state/analytics';
4
3
  import { type CardState } from '../../state/types';
5
4
  import { type CardActionOptions, type OnResolveCallback } from '../Card/types';
6
5
  import { type OnErrorCallback } from '../types';
@@ -17,5 +16,4 @@ export type BlockCardProps = {
17
16
  testId?: string;
18
17
  actionOptions?: CardActionOptions;
19
18
  renderers?: CardProviderRenderers;
20
- analytics: AnalyticsFacade;
21
19
  };
@@ -1,2 +1,2 @@
1
1
  import { type FlexibleCardProps } from '../../FlexibleCard/types';
2
- export type FlexibleBlockCardProps = Pick<FlexibleCardProps, 'analytics' | 'cardState' | 'id' | 'onAuthorize' | 'onClick' | 'onError' | 'onResolve' | 'renderers' | 'actionOptions' | 'testId' | 'url'>;
2
+ export type FlexibleBlockCardProps = Pick<FlexibleCardProps, 'cardState' | 'id' | 'onAuthorize' | 'onClick' | 'onError' | 'onResolve' | 'renderers' | 'actionOptions' | 'testId' | 'url'>;
@@ -1,5 +1,4 @@
1
1
  import { type EventHandler, type KeyboardEvent, type MouseEvent } from 'react';
2
- import { type AnalyticsFacade } from '../../state/analytics';
3
2
  import type { CardActionOptions, CardAppearance, CardPlatform, EmbedIframeUrlType, OnResolveCallback } from '../Card/types';
4
3
  import { type FrameStyle } from '../EmbedCard/types';
5
4
  import { type FlexibleUiOptions } from '../FlexibleCard/types';
@@ -27,7 +26,6 @@ export type CardWithUrlContentProps = {
27
26
  children?: React.ReactNode;
28
27
  showHoverPreview?: boolean;
29
28
  hoverPreviewOptions?: HoverPreviewOptions;
30
- analyticsEvents?: AnalyticsFacade;
31
29
  placeholder?: string;
32
30
  removeTextHighlightingFromTitle?: boolean;
33
31
  resolvingPlaceholder?: string;
@@ -1,7 +1,6 @@
1
1
  import { type ReactNode } from 'react';
2
2
  import { type CardProviderRenderers } from '@atlaskit/link-provider';
3
3
  import { type InvokeHandler } from '../../model/invoke-handler';
4
- import { type AnalyticsFacade } from '../../state/analytics';
5
4
  import { type CardState } from '../../state/types';
6
5
  import type { CardActionOptions, CardPlatform, EmbedIframeUrlType, OnResolveCallback } from '../Card/types';
7
6
  import { type OnErrorCallback } from '../types';
@@ -11,7 +10,6 @@ export type EmbedCardProps = {
11
10
  handleAuthorize: (() => void) | undefined;
12
11
  handleErrorRetry: () => void;
13
12
  handleFrameClick: React.EventHandler<React.MouseEvent | React.KeyboardEvent>;
14
- analytics: AnalyticsFacade;
15
13
  handleInvoke: InvokeHandler;
16
14
  id?: string;
17
15
  isSelected?: boolean;
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import { type UnauthorizedViewProps } from './types';
3
- declare const UnauthorizedView: ({ analytics, context, extensionKey, isProductIntegrationSupported, onAuthorize, testId, ...unresolvedViewProps }: UnauthorizedViewProps) => JSX.Element;
3
+ declare const UnauthorizedView: ({ context, extensionKey, isProductIntegrationSupported, onAuthorize, testId, ...unresolvedViewProps }: UnauthorizedViewProps) => JSX.Element;
4
4
  export default UnauthorizedView;
@@ -1,8 +1,6 @@
1
- import type { AnalyticsFacade } from '../../../../state/analytics';
2
1
  import type { ContextViewModel } from '../../types';
3
2
  import type { UnresolvedViewCardProps } from '../unresolved-view/types';
4
3
  export type UnauthorizedViewProps = UnresolvedViewCardProps & {
5
- analytics: AnalyticsFacade;
6
4
  context?: ContextViewModel;
7
5
  extensionKey?: string;
8
6
  isProductIntegrationSupported?: boolean;
@@ -1,7 +1,5 @@
1
- import { type AnalyticsFacade } from '../../../../state/analytics';
2
1
  import { type AnalyticsOrigin } from '../../../../utils/types';
3
2
  export type WithAnalytics = {
4
- analytics?: AnalyticsFacade;
5
3
  extensionKey?: string;
6
4
  id?: string;
7
5
  origin?: AnalyticsOrigin;
@@ -1,13 +1,11 @@
1
1
  import React from 'react';
2
2
  import { EmbedModalSize } from './types';
3
3
  declare const _default: (props: {
4
- download?: string | undefined;
5
4
  fireEvent?: (<K extends keyof import("../../common/analytics/generated/analytics.types").AnalyticsEventAttributes>(eventKey: K, ...params_1: undefined extends import("../../common/analytics/generated/analytics.types").AnalyticsEventAttributes[K] ? [
6
5
  param?: import("../../common/analytics/generated/analytics.types").AnalyticsEventAttributes[K] | undefined
7
6
  ] : [
8
7
  param: import("../../common/analytics/generated/analytics.types").AnalyticsEventAttributes[K]
9
8
  ]) => void) | undefined;
10
- icon?: import("../common/Icon").IconProps | undefined;
11
9
  invokeDownloadAction?: import("../../state/hooks/use-invoke-client-action/types").InvokeClientActionProps | undefined;
12
10
  invokeViewAction?: import("../../state/hooks/use-invoke-client-action/types").InvokeClientActionProps | undefined;
13
11
  iframeName: string;
@@ -2,7 +2,6 @@ import { type ErrorInfo } from 'react';
2
2
  import { type FireEventFunction } from '../../common/analytics/types';
3
3
  import { type Icon } from '../../state/flexible-ui-context/types';
4
4
  import { type InvokeClientActionProps } from '../../state/hooks/use-invoke-client-action/types';
5
- import { type IconProps } from '../common/Icon';
6
5
  import { type WithAnalytics } from './components/analytics/types';
7
6
  export declare enum EmbedModalSize {
8
7
  Large = "large",
@@ -13,9 +12,7 @@ export type EmbedModalContext = {
13
12
  size: EmbedModalSize;
14
13
  };
15
14
  export type EmbedModalProps = {
16
- download?: string;
17
15
  fireEvent?: FireEventFunction;
18
- icon?: IconProps;
19
16
  invokeDownloadAction?: InvokeClientActionProps;
20
17
  invokeViewAction?: InvokeClientActionProps;
21
18
  iframeName: string;
@@ -1,4 +1,4 @@
1
1
  import { jsx } from '@emotion/react';
2
2
  import type { LozengeActionErrorProps } from './types';
3
- declare const LozengeActionError: ({ errorMessage, testId, maxLineNumber, invokePreviewAction, url, previewData, }: LozengeActionErrorProps) => jsx.JSX.Element;
3
+ declare const LozengeActionError: ({ errorMessage, testId, maxLineNumber, invokePreviewAction, }: LozengeActionErrorProps) => jsx.JSX.Element;
4
4
  export default LozengeActionError;