@atlaskit/smart-card 22.2.1 → 22.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (272) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/cjs/version.json +1 -1
  3. package/dist/cjs/view/BlockCard/components/Action.js +6 -6
  4. package/dist/cjs/view/BlockCard/components/ActionList.js +10 -10
  5. package/dist/cjs/view/BlockCard/components/CollaboratorList.js +3 -3
  6. package/dist/cjs/view/BlockCard/components/Content.js +2 -2
  7. package/dist/cjs/view/BlockCard/components/ContentFooter.js +2 -2
  8. package/dist/cjs/view/BlockCard/components/ContentHeader.js +2 -2
  9. package/dist/cjs/view/BlockCard/components/Emoji.js +3 -3
  10. package/dist/cjs/view/BlockCard/components/Frame.js +5 -5
  11. package/dist/cjs/view/BlockCard/components/Link.js +2 -2
  12. package/dist/cjs/view/BlockCard/components/Name.js +2 -2
  13. package/dist/cjs/view/BlockCard/components/Provider.js +4 -4
  14. package/dist/cjs/view/BlockCard/components/Thumbnail.js +5 -5
  15. package/dist/cjs/view/BlockCard/components/UnresolvedText.js +2 -2
  16. package/dist/cjs/view/BlockCard/views/ErroredView.js +11 -11
  17. package/dist/cjs/view/BlockCard/views/ForbiddenView.js +10 -10
  18. package/dist/cjs/view/BlockCard/views/NotFoundView.js +10 -10
  19. package/dist/cjs/view/BlockCard/views/ResolvedView.js +14 -14
  20. package/dist/cjs/view/BlockCard/views/ResolvingView.js +5 -5
  21. package/dist/cjs/view/BlockCard/views/UnauthorizedView.js +9 -9
  22. package/dist/cjs/view/EmbedCard/components/Frame.js +5 -5
  23. package/dist/cjs/view/EmbedCard/views/ErroredView.js +6 -6
  24. package/dist/cjs/view/EmbedCard/views/ResolvedView.js +10 -10
  25. package/dist/cjs/view/EmbedCard/views/UnresolvedView.js +9 -9
  26. package/dist/cjs/view/EmbedModal/components/embed-content/index.js +3 -3
  27. package/dist/cjs/view/EmbedModal/components/link-info/index.js +25 -25
  28. package/dist/cjs/view/EmbedModal/components/link-info/styled.js +5 -5
  29. package/dist/cjs/view/FlexibleCard/components/actions/action/action-button/index.js +6 -6
  30. package/dist/cjs/view/FlexibleCard/components/actions/action/action-icon/index.js +3 -3
  31. package/dist/cjs/view/FlexibleCard/components/actions/action/index.js +4 -4
  32. package/dist/cjs/view/FlexibleCard/components/blocks/action-group/index.js +8 -8
  33. package/dist/cjs/view/FlexibleCard/components/blocks/block/index.js +3 -3
  34. package/dist/cjs/view/FlexibleCard/components/blocks/element-group/index.js +8 -8
  35. package/dist/cjs/view/FlexibleCard/components/blocks/footer-block/index.js +2 -2
  36. package/dist/cjs/view/FlexibleCard/components/blocks/metadata-block/index.js +2 -2
  37. package/dist/cjs/view/FlexibleCard/components/blocks/title-block/errored/index.js +8 -8
  38. package/dist/cjs/view/FlexibleCard/components/blocks/title-block/index.js +3 -3
  39. package/dist/cjs/view/FlexibleCard/components/blocks/title-block/resolving/index.js +4 -4
  40. package/dist/cjs/view/FlexibleCard/components/blocks/utils.js +5 -5
  41. package/dist/cjs/view/FlexibleCard/components/common/image-icon/index.js +4 -4
  42. package/dist/cjs/view/FlexibleCard/components/common/loading-skeleton/index.js +4 -4
  43. package/dist/cjs/view/FlexibleCard/components/container/index.js +6 -6
  44. package/dist/cjs/view/FlexibleCard/components/container/layered-link/index.js +3 -3
  45. package/dist/cjs/view/FlexibleCard/components/elements/avatar-group/index.js +5 -5
  46. package/dist/cjs/view/FlexibleCard/components/elements/badge/index.js +9 -9
  47. package/dist/cjs/view/FlexibleCard/components/elements/date-time/index.js +4 -4
  48. package/dist/cjs/view/FlexibleCard/components/elements/icon/index.js +9 -9
  49. package/dist/cjs/view/FlexibleCard/components/elements/link/index.js +8 -8
  50. package/dist/cjs/view/FlexibleCard/components/elements/lozenge/index.js +4 -4
  51. package/dist/cjs/view/FlexibleCard/components/elements/media/index.js +4 -4
  52. package/dist/cjs/view/FlexibleCard/components/elements/text/index.js +3 -3
  53. package/dist/cjs/view/FlexibleCard/components/elements/utils.js +2 -2
  54. package/dist/cjs/view/FlexibleCard/components/utils.js +7 -7
  55. package/dist/cjs/view/HoverCard/components/HoverCardComponent.js +20 -20
  56. package/dist/cjs/view/HoverCard/components/HoverCardLoadingView.js +7 -7
  57. package/dist/cjs/view/HoverCard/components/SnippetOrPreview.js +2 -2
  58. package/dist/cjs/view/HoverCard/index.js +6 -6
  59. package/dist/cjs/view/HoverCard/styled.js +10 -10
  60. package/dist/cjs/view/InlineCard/Icon.js +3 -3
  61. package/dist/cjs/view/common/Byline.js +2 -2
  62. package/dist/cjs/view/common/Icon.js +6 -6
  63. package/dist/cjs/view/common/Metadata.js +5 -5
  64. package/dist/cjs/view/common/MetadataList.js +3 -3
  65. package/dist/cjs/view/common/ModalHeader.js +14 -14
  66. package/dist/es2019/version.json +1 -1
  67. package/dist/es2019/view/BlockCard/components/Action.js +1 -1
  68. package/dist/es2019/view/BlockCard/components/ActionList.js +1 -1
  69. package/dist/es2019/view/BlockCard/components/CollaboratorList.js +1 -1
  70. package/dist/es2019/view/BlockCard/components/Content.js +1 -1
  71. package/dist/es2019/view/BlockCard/components/ContentFooter.js +1 -1
  72. package/dist/es2019/view/BlockCard/components/ContentHeader.js +1 -1
  73. package/dist/es2019/view/BlockCard/components/Emoji.js +1 -1
  74. package/dist/es2019/view/BlockCard/components/Frame.js +1 -1
  75. package/dist/es2019/view/BlockCard/components/Link.js +1 -1
  76. package/dist/es2019/view/BlockCard/components/Name.js +1 -1
  77. package/dist/es2019/view/BlockCard/components/Provider.js +1 -1
  78. package/dist/es2019/view/BlockCard/components/Thumbnail.js +1 -1
  79. package/dist/es2019/view/BlockCard/components/UnresolvedText.js +1 -1
  80. package/dist/es2019/view/BlockCard/views/ErroredView.js +1 -1
  81. package/dist/es2019/view/BlockCard/views/ForbiddenView.js +1 -1
  82. package/dist/es2019/view/BlockCard/views/NotFoundView.js +1 -1
  83. package/dist/es2019/view/BlockCard/views/ResolvedView.js +1 -1
  84. package/dist/es2019/view/BlockCard/views/ResolvingView.js +1 -1
  85. package/dist/es2019/view/BlockCard/views/UnauthorizedView.js +1 -1
  86. package/dist/es2019/view/EmbedCard/components/Frame.js +1 -1
  87. package/dist/es2019/view/EmbedCard/views/ErroredView.js +1 -1
  88. package/dist/es2019/view/EmbedCard/views/ResolvedView.js +1 -1
  89. package/dist/es2019/view/EmbedCard/views/UnresolvedView.js +1 -1
  90. package/dist/es2019/view/EmbedModal/components/embed-content/index.js +1 -1
  91. package/dist/es2019/view/EmbedModal/components/link-info/index.js +1 -1
  92. package/dist/es2019/view/EmbedModal/components/link-info/styled.js +1 -1
  93. package/dist/es2019/view/FlexibleCard/components/actions/action/action-button/index.js +1 -1
  94. package/dist/es2019/view/FlexibleCard/components/actions/action/action-icon/index.js +1 -1
  95. package/dist/es2019/view/FlexibleCard/components/actions/action/index.js +1 -1
  96. package/dist/es2019/view/FlexibleCard/components/blocks/action-group/index.js +1 -1
  97. package/dist/es2019/view/FlexibleCard/components/blocks/block/index.js +1 -1
  98. package/dist/es2019/view/FlexibleCard/components/blocks/element-group/index.js +5 -4
  99. package/dist/es2019/view/FlexibleCard/components/blocks/footer-block/index.js +1 -1
  100. package/dist/es2019/view/FlexibleCard/components/blocks/metadata-block/index.js +1 -1
  101. package/dist/es2019/view/FlexibleCard/components/blocks/title-block/errored/index.js +1 -1
  102. package/dist/es2019/view/FlexibleCard/components/blocks/title-block/index.js +1 -1
  103. package/dist/es2019/view/FlexibleCard/components/blocks/title-block/resolving/index.js +1 -1
  104. package/dist/es2019/view/FlexibleCard/components/blocks/utils.js +1 -1
  105. package/dist/es2019/view/FlexibleCard/components/common/image-icon/index.js +1 -1
  106. package/dist/es2019/view/FlexibleCard/components/common/loading-skeleton/index.js +3 -4
  107. package/dist/es2019/view/FlexibleCard/components/container/index.js +1 -1
  108. package/dist/es2019/view/FlexibleCard/components/container/layered-link/index.js +1 -1
  109. package/dist/es2019/view/FlexibleCard/components/elements/avatar-group/index.js +1 -1
  110. package/dist/es2019/view/FlexibleCard/components/elements/badge/index.js +1 -1
  111. package/dist/es2019/view/FlexibleCard/components/elements/date-time/index.js +1 -1
  112. package/dist/es2019/view/FlexibleCard/components/elements/icon/index.js +1 -1
  113. package/dist/es2019/view/FlexibleCard/components/elements/link/index.js +1 -1
  114. package/dist/es2019/view/FlexibleCard/components/elements/lozenge/index.js +1 -1
  115. package/dist/es2019/view/FlexibleCard/components/elements/media/index.js +1 -1
  116. package/dist/es2019/view/FlexibleCard/components/elements/text/index.js +1 -1
  117. package/dist/es2019/view/FlexibleCard/components/elements/utils.js +1 -1
  118. package/dist/es2019/view/FlexibleCard/components/utils.js +1 -1
  119. package/dist/es2019/view/HoverCard/components/HoverCardComponent.js +1 -1
  120. package/dist/es2019/view/HoverCard/components/HoverCardLoadingView.js +1 -1
  121. package/dist/es2019/view/HoverCard/components/SnippetOrPreview.js +1 -1
  122. package/dist/es2019/view/HoverCard/index.js +1 -1
  123. package/dist/es2019/view/HoverCard/styled.js +1 -1
  124. package/dist/es2019/view/InlineCard/Icon.js +3 -4
  125. package/dist/es2019/view/common/Byline.js +1 -1
  126. package/dist/es2019/view/common/Icon.js +1 -1
  127. package/dist/es2019/view/common/Metadata.js +1 -1
  128. package/dist/es2019/view/common/MetadataList.js +1 -1
  129. package/dist/es2019/view/common/ModalHeader.js +1 -1
  130. package/dist/esm/version.json +1 -1
  131. package/dist/esm/view/BlockCard/components/Action.js +1 -1
  132. package/dist/esm/view/BlockCard/components/ActionList.js +1 -1
  133. package/dist/esm/view/BlockCard/components/CollaboratorList.js +1 -1
  134. package/dist/esm/view/BlockCard/components/Content.js +1 -1
  135. package/dist/esm/view/BlockCard/components/ContentFooter.js +1 -1
  136. package/dist/esm/view/BlockCard/components/ContentHeader.js +1 -1
  137. package/dist/esm/view/BlockCard/components/Emoji.js +1 -1
  138. package/dist/esm/view/BlockCard/components/Frame.js +1 -1
  139. package/dist/esm/view/BlockCard/components/Link.js +1 -1
  140. package/dist/esm/view/BlockCard/components/Name.js +1 -1
  141. package/dist/esm/view/BlockCard/components/Provider.js +1 -1
  142. package/dist/esm/view/BlockCard/components/Thumbnail.js +1 -1
  143. package/dist/esm/view/BlockCard/components/UnresolvedText.js +1 -1
  144. package/dist/esm/view/BlockCard/views/ErroredView.js +1 -1
  145. package/dist/esm/view/BlockCard/views/ForbiddenView.js +1 -1
  146. package/dist/esm/view/BlockCard/views/NotFoundView.js +1 -1
  147. package/dist/esm/view/BlockCard/views/ResolvedView.js +1 -1
  148. package/dist/esm/view/BlockCard/views/ResolvingView.js +1 -1
  149. package/dist/esm/view/BlockCard/views/UnauthorizedView.js +1 -1
  150. package/dist/esm/view/EmbedCard/components/Frame.js +1 -1
  151. package/dist/esm/view/EmbedCard/views/ErroredView.js +1 -1
  152. package/dist/esm/view/EmbedCard/views/ResolvedView.js +1 -1
  153. package/dist/esm/view/EmbedCard/views/UnresolvedView.js +1 -1
  154. package/dist/esm/view/EmbedModal/components/embed-content/index.js +1 -1
  155. package/dist/esm/view/EmbedModal/components/link-info/index.js +1 -1
  156. package/dist/esm/view/EmbedModal/components/link-info/styled.js +1 -1
  157. package/dist/esm/view/FlexibleCard/components/actions/action/action-button/index.js +1 -1
  158. package/dist/esm/view/FlexibleCard/components/actions/action/action-icon/index.js +1 -1
  159. package/dist/esm/view/FlexibleCard/components/actions/action/index.js +1 -1
  160. package/dist/esm/view/FlexibleCard/components/blocks/action-group/index.js +1 -1
  161. package/dist/esm/view/FlexibleCard/components/blocks/block/index.js +1 -1
  162. package/dist/esm/view/FlexibleCard/components/blocks/element-group/index.js +2 -2
  163. package/dist/esm/view/FlexibleCard/components/blocks/footer-block/index.js +1 -1
  164. package/dist/esm/view/FlexibleCard/components/blocks/metadata-block/index.js +1 -1
  165. package/dist/esm/view/FlexibleCard/components/blocks/title-block/errored/index.js +1 -1
  166. package/dist/esm/view/FlexibleCard/components/blocks/title-block/index.js +1 -1
  167. package/dist/esm/view/FlexibleCard/components/blocks/title-block/resolving/index.js +1 -1
  168. package/dist/esm/view/FlexibleCard/components/blocks/utils.js +1 -1
  169. package/dist/esm/view/FlexibleCard/components/common/image-icon/index.js +1 -1
  170. package/dist/esm/view/FlexibleCard/components/common/loading-skeleton/index.js +2 -2
  171. package/dist/esm/view/FlexibleCard/components/container/index.js +1 -1
  172. package/dist/esm/view/FlexibleCard/components/container/layered-link/index.js +1 -1
  173. package/dist/esm/view/FlexibleCard/components/elements/avatar-group/index.js +1 -1
  174. package/dist/esm/view/FlexibleCard/components/elements/badge/index.js +1 -1
  175. package/dist/esm/view/FlexibleCard/components/elements/date-time/index.js +1 -1
  176. package/dist/esm/view/FlexibleCard/components/elements/icon/index.js +1 -1
  177. package/dist/esm/view/FlexibleCard/components/elements/link/index.js +1 -1
  178. package/dist/esm/view/FlexibleCard/components/elements/lozenge/index.js +1 -1
  179. package/dist/esm/view/FlexibleCard/components/elements/media/index.js +1 -1
  180. package/dist/esm/view/FlexibleCard/components/elements/text/index.js +1 -1
  181. package/dist/esm/view/FlexibleCard/components/elements/utils.js +1 -1
  182. package/dist/esm/view/FlexibleCard/components/utils.js +1 -1
  183. package/dist/esm/view/HoverCard/components/HoverCardComponent.js +1 -1
  184. package/dist/esm/view/HoverCard/components/HoverCardLoadingView.js +1 -1
  185. package/dist/esm/view/HoverCard/components/SnippetOrPreview.js +1 -1
  186. package/dist/esm/view/HoverCard/index.js +1 -1
  187. package/dist/esm/view/HoverCard/styled.js +1 -1
  188. package/dist/esm/view/InlineCard/Icon.js +2 -2
  189. package/dist/esm/view/common/Byline.js +1 -1
  190. package/dist/esm/view/common/Icon.js +1 -1
  191. package/dist/esm/view/common/Metadata.js +1 -1
  192. package/dist/esm/view/common/MetadataList.js +1 -1
  193. package/dist/esm/view/common/ModalHeader.js +1 -1
  194. package/dist/types/view/BlockCard/components/Action.d.ts +3 -1
  195. package/dist/types/view/BlockCard/components/ActionList.d.ts +3 -2
  196. package/dist/types/view/BlockCard/components/CollaboratorList.d.ts +3 -1
  197. package/dist/types/view/BlockCard/components/Content.d.ts +3 -1
  198. package/dist/types/view/BlockCard/components/ContentFooter.d.ts +3 -1
  199. package/dist/types/view/BlockCard/components/ContentHeader.d.ts +3 -1
  200. package/dist/types/view/BlockCard/components/Emoji.d.ts +3 -1
  201. package/dist/types/view/BlockCard/components/Frame.d.ts +5 -3
  202. package/dist/types/view/BlockCard/components/Link.d.ts +3 -2
  203. package/dist/types/view/BlockCard/components/Name.d.ts +3 -1
  204. package/dist/types/view/BlockCard/components/Provider.d.ts +3 -1
  205. package/dist/types/view/BlockCard/components/Thumbnail.d.ts +5 -4
  206. package/dist/types/view/BlockCard/components/UnresolvedText.d.ts +3 -1
  207. package/dist/types/view/BlockCard/views/ErroredView.d.ts +3 -1
  208. package/dist/types/view/BlockCard/views/ForbiddenView.d.ts +3 -1
  209. package/dist/types/view/BlockCard/views/NotFoundView.d.ts +3 -1
  210. package/dist/types/view/BlockCard/views/ResolvedView.d.ts +3 -1
  211. package/dist/types/view/BlockCard/views/ResolvingView.d.ts +3 -2
  212. package/dist/types/view/BlockCard/views/UnauthorizedView.d.ts +3 -1
  213. package/dist/types/view/Card/index.d.ts +1 -1
  214. package/dist/types/view/EmbedCard/views/ErroredView.d.ts +3 -2
  215. package/dist/types/view/EmbedModal/components/link-info/styled.d.ts +4 -4
  216. package/dist/types/view/FlexibleCard/components/actions/action/types.d.ts +1 -1
  217. package/dist/types/view/FlexibleCard/components/blocks/element-group/index.d.ts +1 -1
  218. package/dist/types/view/FlexibleCard/components/blocks/element-group/types.d.ts +2 -2
  219. package/dist/types/view/FlexibleCard/components/blocks/types.d.ts +1 -1
  220. package/dist/types/view/FlexibleCard/components/blocks/utils.d.ts +1 -1
  221. package/dist/types/view/FlexibleCard/components/container/index.d.ts +1 -1
  222. package/dist/types/view/FlexibleCard/components/elements/types.d.ts +1 -1
  223. package/dist/types/view/FlexibleCard/components/utils.d.ts +1 -1
  224. package/dist/types/view/HoverCard/index.d.ts +1 -1
  225. package/dist/types/view/HoverCard/styled.d.ts +8 -8
  226. package/dist/types/view/InlineCard/ResolvingView/styled.d.ts +3 -3
  227. package/dist/types/view/common/Byline.d.ts +3 -1
  228. package/dist/types/view/common/Icon.d.ts +3 -1
  229. package/dist/types/view/common/Metadata.d.ts +3 -1
  230. package/dist/types/view/common/MetadataList.d.ts +3 -2
  231. package/dist/types/view/common/ModalHeader.d.ts +3 -1
  232. package/dist/types-ts4.0/view/BlockCard/components/Action.d.ts +3 -1
  233. package/dist/types-ts4.0/view/BlockCard/components/ActionList.d.ts +3 -2
  234. package/dist/types-ts4.0/view/BlockCard/components/CollaboratorList.d.ts +3 -1
  235. package/dist/types-ts4.0/view/BlockCard/components/Content.d.ts +3 -1
  236. package/dist/types-ts4.0/view/BlockCard/components/ContentFooter.d.ts +3 -1
  237. package/dist/types-ts4.0/view/BlockCard/components/ContentHeader.d.ts +3 -1
  238. package/dist/types-ts4.0/view/BlockCard/components/Emoji.d.ts +3 -1
  239. package/dist/types-ts4.0/view/BlockCard/components/Frame.d.ts +5 -3
  240. package/dist/types-ts4.0/view/BlockCard/components/Link.d.ts +3 -2
  241. package/dist/types-ts4.0/view/BlockCard/components/Name.d.ts +3 -1
  242. package/dist/types-ts4.0/view/BlockCard/components/Provider.d.ts +3 -1
  243. package/dist/types-ts4.0/view/BlockCard/components/Thumbnail.d.ts +5 -4
  244. package/dist/types-ts4.0/view/BlockCard/components/UnresolvedText.d.ts +3 -1
  245. package/dist/types-ts4.0/view/BlockCard/views/ErroredView.d.ts +3 -1
  246. package/dist/types-ts4.0/view/BlockCard/views/ForbiddenView.d.ts +3 -1
  247. package/dist/types-ts4.0/view/BlockCard/views/NotFoundView.d.ts +3 -1
  248. package/dist/types-ts4.0/view/BlockCard/views/ResolvedView.d.ts +3 -1
  249. package/dist/types-ts4.0/view/BlockCard/views/ResolvingView.d.ts +3 -2
  250. package/dist/types-ts4.0/view/BlockCard/views/UnauthorizedView.d.ts +3 -1
  251. package/dist/types-ts4.0/view/Card/index.d.ts +1 -1
  252. package/dist/types-ts4.0/view/EmbedCard/views/ErroredView.d.ts +3 -2
  253. package/dist/types-ts4.0/view/EmbedModal/components/link-info/styled.d.ts +4 -4
  254. package/dist/types-ts4.0/view/FlexibleCard/components/actions/action/types.d.ts +1 -1
  255. package/dist/types-ts4.0/view/FlexibleCard/components/blocks/element-group/index.d.ts +1 -1
  256. package/dist/types-ts4.0/view/FlexibleCard/components/blocks/element-group/types.d.ts +2 -2
  257. package/dist/types-ts4.0/view/FlexibleCard/components/blocks/types.d.ts +1 -1
  258. package/dist/types-ts4.0/view/FlexibleCard/components/blocks/utils.d.ts +1 -1
  259. package/dist/types-ts4.0/view/FlexibleCard/components/container/index.d.ts +1 -1
  260. package/dist/types-ts4.0/view/FlexibleCard/components/elements/types.d.ts +1 -1
  261. package/dist/types-ts4.0/view/FlexibleCard/components/utils.d.ts +1 -1
  262. package/dist/types-ts4.0/view/HoverCard/index.d.ts +1 -1
  263. package/dist/types-ts4.0/view/HoverCard/styled.d.ts +8 -8
  264. package/dist/types-ts4.0/view/InlineCard/ResolvingView/styled.d.ts +3 -3
  265. package/dist/types-ts4.0/view/common/Byline.d.ts +3 -1
  266. package/dist/types-ts4.0/view/common/Icon.d.ts +3 -1
  267. package/dist/types-ts4.0/view/common/Metadata.d.ts +3 -1
  268. package/dist/types-ts4.0/view/common/MetadataList.d.ts +3 -2
  269. package/dist/types-ts4.0/view/common/ModalHeader.d.ts +3 -1
  270. package/package.json +17 -17
  271. package/report.api.md +57 -50
  272. package/tmp/api-report-tmp.d.ts +794 -0
@@ -0,0 +1,794 @@
1
+ ## API Report File for "@atlaskit/smart-card"
2
+
3
+ > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
+
5
+ ```ts
6
+
7
+ /// <reference types="react" />
8
+
9
+ import { APIError } from '@atlaskit/linking-common';
10
+ import { Appearance } from '@atlaskit/button/types';
11
+ import { BlockCardAdf } from '@atlaskit/linking-common';
12
+ import { CardAdf } from '@atlaskit/linking-common';
13
+ import { CardAppearance } from '@atlaskit/linking-common';
14
+ import { CardContext } from '@atlaskit/link-provider';
15
+ import { CardPlatform } from '@atlaskit/linking-common';
16
+ import { CardType } from '@atlaskit/linking-common';
17
+ import { CardClient as Client } from '@atlaskit/link-provider';
18
+ import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
19
+ import { EditorCardProvider } from '@atlaskit/link-provider';
20
+ import { editorCardProvider } from '@atlaskit/link-provider';
21
+ import { EmbedCardAdf } from '@atlaskit/linking-common';
22
+ import { ErrorInfo } from 'react';
23
+ import { GasPayload } from '@atlaskit/analytics-gas-types';
24
+ import { InlineCardAdf } from '@atlaskit/linking-common';
25
+ import { JsonLd } from 'json-ld-types';
26
+ import { MessageDescriptor } from 'react-intl-next';
27
+ import { SmartCardProvider as Provider } from '@atlaskit/link-provider';
28
+ import { ProviderProps } from '@atlaskit/link-provider';
29
+ import { default as React_2 } from 'react';
30
+ import { ReactChild } from 'react';
31
+ import { Ref } from 'react';
32
+ import { SerializedStyles } from '@emotion/react';
33
+ import { SmartCardContext } from '@atlaskit/link-provider';
34
+ import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
35
+ import { WithContextProps } from '@atlaskit/analytics-next';
36
+ import { WithIntlProps } from 'react-intl-next';
37
+ import { WrappedComponentProps } from 'react-intl-next';
38
+
39
+ // @public (undocumented)
40
+ export type ActionItem = CustomActionItem | NamedActionItem;
41
+
42
+ // @public
43
+ export enum ActionName {
44
+ // (undocumented)
45
+ CustomAction = "CustomAction",
46
+ // (undocumented)
47
+ DeleteAction = "DeleteAction",
48
+ // (undocumented)
49
+ EditAction = "EditAction"
50
+ }
51
+
52
+ // @public (undocumented)
53
+ type ActionProps = {
54
+ size?: SmartLinkSize;
55
+ content?: React.ReactNode;
56
+ appearance?: Appearance;
57
+ onClick: () => any;
58
+ icon?: ReactChild;
59
+ iconPosition?: 'after' | 'before';
60
+ tooltipMessage?: React.ReactNode;
61
+ asDropDownItem?: boolean;
62
+ overrideCss?: SerializedStyles;
63
+ testId?: string;
64
+ };
65
+
66
+ // @public (undocumented)
67
+ export type AnalyticsAction = 'clicked' | 'closed' | 'connectFailed' | 'connectSucceeded' | 'connected' | 'created' | 'dismissed' | 'inserted' | 'renderFailed' | 'renderSuccess' | 'renderWithStatus' | 'resolved' | 'unresolved' | 'viewed';
68
+
69
+ // @public (undocumented)
70
+ export type AnalyticsActionSubject = 'applicationAccount' | 'button' | 'consentModal' | 'embedPreviewModal' | 'hoverCard' | 'modal' | 'smartLink' | 'smartLinkAction';
71
+
72
+ // @public (undocumented)
73
+ type AnalyticsFacade = ReturnType<typeof useSmartLinkAnalytics>;
74
+
75
+ // @public (undocumented)
76
+ export type AnalyticsHandler = (event: AnalyticsPayload) => void;
77
+
78
+ // @public (undocumented)
79
+ type AnalyticsName = 'embedPreviewModal';
80
+
81
+ // @public (undocumented)
82
+ export type AnalyticsPayload = GasPayload & {
83
+ action?: AnalyticsAction;
84
+ actionSubject: AnalyticsActionSubject;
85
+ attributes: GasPayload['attributes'] & {
86
+ display?: CardInnerAppearance;
87
+ };
88
+ };
89
+
90
+ // @public (undocumented)
91
+ type AnchorTarget = '_blank' | '_parent' | '_self' | '_top';
92
+
93
+ export { APIError }
94
+
95
+ // @public
96
+ type AuthorGroup = {
97
+ name: ElementName.AuthorGroup;
98
+ };
99
+
100
+ // @public
101
+ type BaseActionItem = {
102
+ hideContent?: boolean;
103
+ hideIcon?: boolean;
104
+ name: ActionName;
105
+ onClick: () => any;
106
+ overrideCss?: SerializedStyles;
107
+ size?: SmartLinkSize;
108
+ testId?: string;
109
+ };
110
+
111
+ export { BlockCardAdf }
112
+
113
+ // @public (undocumented)
114
+ export const blockCardContentClassName = "block-card-content";
115
+
116
+ // @public (undocumented)
117
+ export const blockCardContentHeaderClassName = "block-card-content-header";
118
+
119
+ // @public (undocumented)
120
+ export const blockCardContentHeaderNameClassName = "block-card-content-header-name";
121
+
122
+ // @public (undocumented)
123
+ export const blockCardErroredViewClassName = "block-card-errored-view";
124
+
125
+ // @public (undocumented)
126
+ export const blockCardForbiddenViewClassName = "block-card-forbidden-view";
127
+
128
+ // @public (undocumented)
129
+ export const blockCardForbiddenViewLinkClassName = "block-card-forbidden-view-link";
130
+
131
+ // @public (undocumented)
132
+ export const blockCardIconImageClassName = "block-card-icon-image";
133
+
134
+ // @public (undocumented)
135
+ export const blockCardNotFoundViewClassName = "block-card-not-found-view";
136
+
137
+ // @public (undocumented)
138
+ export const blockCardResolvedViewByClassName = "block-card-resolved-view-by";
139
+
140
+ // @public (undocumented)
141
+ export const blockCardResolvedViewClassName = "block-card-resolved-view";
142
+
143
+ // @public (undocumented)
144
+ export const blockCardResolvingViewClassName = "block-card-resolving-view";
145
+
146
+ // @public (undocumented)
147
+ type BlockProps = {
148
+ direction?: SmartLinkDirection;
149
+ overrideCss?: SerializedStyles;
150
+ size?: SmartLinkSize;
151
+ status?: SmartLinkStatus;
152
+ testId?: string;
153
+ blockRef?: Ref<HTMLDivElement>;
154
+ onRender?: () => void;
155
+ onTransitionEnd?: () => void;
156
+ };
157
+
158
+ // @public (undocumented)
159
+ export const Card: React_2.ForwardRefExoticComponent<Pick<Omit<React_2.PropsWithChildren<WithIntlProps<CardProps & WrappedComponentProps<"intl">>>, keyof WithAnalyticsEventsProps> & React_2.RefAttributes<any> & WithContextProps, "analyticsContext" | "analyticsEvents" | "appearance" | "children" | "container" | "data" | "embedIframeRef" | "forwardedRef" | "id" | "importer" | "inheritDimensions" | "inlinePreloaderStyle" | "isFrameVisible" | "isSelected" | "key" | "onClick" | "onError" | "onResolve" | "placeholder" | "platform" | "showActions" | "showHoverPreview" | "testId" | "ui" | "url"> & React_2.RefAttributes<any>>;
160
+
161
+ export { CardAdf }
162
+
163
+ export { CardAppearance }
164
+
165
+ export { CardContext }
166
+
167
+ // @public (undocumented)
168
+ type CardInnerAppearance = 'flexible' | 'preview' | CardAppearance;
169
+
170
+ export { CardPlatform }
171
+
172
+ // @public (undocumented)
173
+ export interface CardProps extends WithAnalyticsEventsProps {
174
+ // (undocumented)
175
+ analyticsEvents?: AnalyticsFacade;
176
+ // (undocumented)
177
+ appearance: CardAppearance;
178
+ // (undocumented)
179
+ children?: React.ReactNode;
180
+ // (undocumented)
181
+ container?: HTMLElement;
182
+ // (undocumented)
183
+ data?: any;
184
+ // (undocumented)
185
+ embedIframeRef?: React.Ref<HTMLIFrameElement>;
186
+ // (undocumented)
187
+ id?: string;
188
+ // (undocumented)
189
+ importer?: (target: any) => void;
190
+ // (undocumented)
191
+ inheritDimensions?: boolean;
192
+ // (undocumented)
193
+ inlinePreloaderStyle?: InlinePreloaderStyle;
194
+ // (undocumented)
195
+ isFrameVisible?: boolean;
196
+ // (undocumented)
197
+ isSelected?: boolean;
198
+ // (undocumented)
199
+ onClick?: React.EventHandler<React.KeyboardEvent | React.MouseEvent>;
200
+ // (undocumented)
201
+ onError?: OnErrorCallback;
202
+ // (undocumented)
203
+ onResolve?: OnResolveCallback;
204
+ // (undocumented)
205
+ placeholder?: string;
206
+ // (undocumented)
207
+ platform?: CardPlatform;
208
+ // (undocumented)
209
+ showActions?: boolean;
210
+ // (undocumented)
211
+ showHoverPreview?: boolean;
212
+ // (undocumented)
213
+ testId?: string;
214
+ // (undocumented)
215
+ ui?: FlexibleUiOptions;
216
+ // (undocumented)
217
+ url?: string;
218
+ }
219
+
220
+ export { CardType }
221
+
222
+ export { Client }
223
+
224
+ // @public
225
+ type CollaboratorGroup = {
226
+ name: ElementName.CollaboratorGroup;
227
+ };
228
+
229
+ // @public
230
+ type CommentCount = {
231
+ name: ElementName.CommentCount;
232
+ };
233
+
234
+ // @public (undocumented)
235
+ interface CommonEventProps {
236
+ // (undocumented)
237
+ definitionId?: string;
238
+ // (undocumented)
239
+ destinationProduct?: DestinationProduct | string;
240
+ // (undocumented)
241
+ destinationSubproduct?: DestinationSubproduct | string;
242
+ // (undocumented)
243
+ extensionKey?: string;
244
+ // (undocumented)
245
+ id?: string;
246
+ // (undocumented)
247
+ location?: string;
248
+ // (undocumented)
249
+ resourceType?: string;
250
+ }
251
+
252
+ // @public (undocumented)
253
+ type ConnectFailedEventProps = CommonEventProps & {
254
+ id?: string;
255
+ reason?: string;
256
+ };
257
+
258
+ // @public (undocumented)
259
+ type ConnectSucceededEventProps = CommonEventProps & {
260
+ id?: string;
261
+ };
262
+
263
+ // @public (undocumented)
264
+ export const contentFooterClassName = "smart-link-content-footer";
265
+
266
+ // @public
267
+ type CreatedBy = {
268
+ name: ElementName.CreatedBy;
269
+ };
270
+
271
+ // @public
272
+ type CreatedOn = {
273
+ name: ElementName.CreatedOn;
274
+ text?: string;
275
+ };
276
+
277
+ // @public
278
+ type CustomActionItem = BaseActionItem & {
279
+ name: ActionName.CustomAction;
280
+ } & (((Required<Pick<ActionProps, 'content'>> & Pick<ActionProps, 'icon' | 'iconPosition'>) & Pick<ActionProps, 'tooltipMessage'>) | (Required<Pick<ActionProps, 'icon' | 'iconPosition'>> & Pick<ActionProps, 'content'>));
281
+
282
+ // @public (undocumented)
283
+ type DestinationProduct = 'bitbucket' | 'confluence' | 'jira' | 'trello';
284
+
285
+ // @public (undocumented)
286
+ type DestinationSubproduct = 'core' | 'servicedesk' | 'software';
287
+
288
+ // @public
289
+ type DueOn = {
290
+ name: ElementName.DueOn;
291
+ };
292
+
293
+ export { EditorCardProvider }
294
+
295
+ export { editorCardProvider }
296
+
297
+ // @public
298
+ export type ElementItem = {
299
+ overrideCss?: SerializedStyles;
300
+ size?: SmartLinkSize;
301
+ testId?: string;
302
+ } & ElementItemProps;
303
+
304
+ // @public
305
+ type ElementItemProps = AuthorGroup | CollaboratorGroup | CommentCount | CreatedBy | CreatedOn | DueOn | LatestCommit | LinkIcon | ModifiedBy | ModifiedOn | Preview | Priority | ProgrammingLanguage | Provider_2 | ReactCount | Snippet | SourceBranch | State_2 | SubscriberCount | TargetBranch | Title | ViewCount | VoteCount;
306
+
307
+ // @public
308
+ export enum ElementName {
309
+ // (undocumented)
310
+ AuthorGroup = "AuthorGroup",
311
+ // (undocumented)
312
+ CollaboratorGroup = "CollaboratorGroup",
313
+ // (undocumented)
314
+ CommentCount = "CommentCount",
315
+ // (undocumented)
316
+ CreatedBy = "CreatedBy",
317
+ // (undocumented)
318
+ CreatedOn = "CreatedOn",
319
+ // (undocumented)
320
+ DueOn = "DueOn",
321
+ // (undocumented)
322
+ LatestCommit = "LatestCommit",
323
+ // (undocumented)
324
+ LinkIcon = "LinkIcon",
325
+ // (undocumented)
326
+ ModifiedBy = "ModifiedBy",
327
+ // (undocumented)
328
+ ModifiedOn = "ModifiedOn",
329
+ // (undocumented)
330
+ Preview = "Preview",
331
+ // (undocumented)
332
+ Priority = "Priority",
333
+ // (undocumented)
334
+ ProgrammingLanguage = "ProgrammingLanguage",
335
+ // (undocumented)
336
+ Provider = "Provider",
337
+ // (undocumented)
338
+ ReactCount = "ReactCount",
339
+ // (undocumented)
340
+ Snippet = "Snippet",
341
+ // (undocumented)
342
+ SourceBranch = "SourceBranch",
343
+ // (undocumented)
344
+ State = "State",
345
+ // (undocumented)
346
+ SubscriberCount = "SubscriberCount",
347
+ // (undocumented)
348
+ TargetBranch = "TargetBranch",
349
+ // (undocumented)
350
+ Title = "Title",
351
+ // (undocumented)
352
+ ViewCount = "ViewCount",
353
+ // (undocumented)
354
+ VoteCount = "VoteCount"
355
+ }
356
+
357
+ export { EmbedCardAdf }
358
+
359
+ // @public (undocumented)
360
+ export const embedHeaderHeight = 32;
361
+
362
+ // @public (undocumented)
363
+ export class EmbedResizeMessageListener extends React_2.Component<Props, State> {
364
+ // (undocumented)
365
+ componentDidMount(): void;
366
+ // (undocumented)
367
+ componentWillUnmount(): void;
368
+ // (undocumented)
369
+ render(): React_2.ReactNode;
370
+ }
371
+
372
+ // @public (undocumented)
373
+ type ErrorCardType = 'errored' | 'fallback' | 'forbidden' | 'not_found' | 'unauthorized';
374
+
375
+ // @public (undocumented)
376
+ type FlexibleUiOptions = {
377
+ clickableContainer?: boolean;
378
+ hideElevation?: boolean;
379
+ hidePadding?: boolean;
380
+ hideBackground?: boolean;
381
+ size?: SmartLinkSize;
382
+ theme?: SmartLinkTheme;
383
+ };
384
+
385
+ // @public
386
+ export const FooterBlock: React_2.FC<FooterBlockProps>;
387
+
388
+ // @public (undocumented)
389
+ type FooterBlockProps = {
390
+ actions?: ActionItem[];
391
+ } & BlockProps;
392
+
393
+ export { InlineCardAdf }
394
+
395
+ // @public (undocumented)
396
+ type InlinePreloaderStyle = 'on-left-with-skeleton' | 'on-right-without-skeleton';
397
+
398
+ // @public (undocumented)
399
+ type InstrumentEventProps = CommonEventProps & {
400
+ error?: APIError;
401
+ status: CardType;
402
+ id: string;
403
+ };
404
+
405
+ // @public (undocumented)
406
+ type InvokeFailedEventProps = CommonEventProps & {
407
+ id: string;
408
+ actionType: string;
409
+ display: CardInnerAppearance;
410
+ reason: string;
411
+ };
412
+
413
+ // @public (undocumented)
414
+ type InvokeSucceededEventProps = CommonEventProps & {
415
+ id: string;
416
+ actionType: string;
417
+ display: CardInnerAppearance;
418
+ };
419
+
420
+ // @public (undocumented)
421
+ type InvokeType = 'client' | 'server';
422
+
423
+ // @public
424
+ type LatestCommit = {
425
+ name: ElementName.LatestCommit;
426
+ };
427
+
428
+ // @public
429
+ type LinkIcon = {
430
+ name: ElementName.LinkIcon;
431
+ };
432
+
433
+ // @public (undocumented)
434
+ export const loadingPlaceholderClassName = "smart-link-loading-placeholder";
435
+
436
+ // @public
437
+ export const MetadataBlock: React_2.FC<MetadataBlockProps>;
438
+
439
+ // @public (undocumented)
440
+ type MetadataBlockProps = {
441
+ maxLines?: number;
442
+ primary?: ElementItem[];
443
+ secondary?: ElementItem[];
444
+ } & BlockProps;
445
+
446
+ // @public (undocumented)
447
+ export const metadataListClassName = "smart-link-metadata-list";
448
+
449
+ // @public
450
+ type ModifiedBy = {
451
+ name: ElementName.ModifiedBy;
452
+ };
453
+
454
+ // @public
455
+ type ModifiedOn = {
456
+ name: ElementName.ModifiedOn;
457
+ text?: string;
458
+ };
459
+
460
+ // @public
461
+ type NamedActionItem = BaseActionItem & {
462
+ name: Exclude<ActionName, ActionName.CustomAction>;
463
+ };
464
+
465
+ // @public (undocumented)
466
+ export type OnActionMenuOpenChangeOptions = {
467
+ isOpen: boolean;
468
+ };
469
+
470
+ // @public (undocumented)
471
+ type OnErrorCallback = (data: {
472
+ status: Extract<CardType, ErrorCardType>;
473
+ url: string;
474
+ }) => void;
475
+
476
+ // @public (undocumented)
477
+ type OnResolveCallback = (data: {
478
+ url?: string;
479
+ title?: string;
480
+ aspectRatio?: number;
481
+ }) => void;
482
+
483
+ // @public
484
+ type Preview = {
485
+ name: ElementName.Preview;
486
+ };
487
+
488
+ // @public
489
+ export const PreviewBlock: React_2.FC<PreviewBlockProps>;
490
+
491
+ // @public (undocumented)
492
+ type PreviewBlockProps = {
493
+ onError?: () => void;
494
+ } & BlockProps;
495
+
496
+ // @public (undocumented)
497
+ type PreviewDisplay = 'card' | 'embed';
498
+
499
+ // @public (undocumented)
500
+ type PreviewInvokeMethod = 'keyboard' | 'mouse_click' | 'mouse_hover';
501
+
502
+ // @public
503
+ type Priority = {
504
+ name: ElementName.Priority;
505
+ };
506
+
507
+ // @public
508
+ type ProgrammingLanguage = {
509
+ name: ElementName.ProgrammingLanguage;
510
+ };
511
+
512
+ // @public (undocumented)
513
+ interface Props {
514
+ // (undocumented)
515
+ embedIframeRef: React_2.RefObject<HTMLIFrameElement>;
516
+ // (undocumented)
517
+ onHeightUpdate: (height: number) => void;
518
+ }
519
+
520
+ export { Provider }
521
+
522
+ // @public
523
+ type Provider_2 = {
524
+ name: ElementName.Provider;
525
+ };
526
+
527
+ export { ProviderProps }
528
+
529
+ // @public
530
+ type ReactCount = {
531
+ name: ElementName.ReactCount;
532
+ };
533
+
534
+ // @public (undocumented)
535
+ export type ResolveResponse = JsonLd.Response;
536
+
537
+ // @public
538
+ type RetryOptions = {
539
+ descriptor?: MessageDescriptor;
540
+ onClick?: ((e: React.MouseEvent<HTMLElement>) => void) | undefined;
541
+ values?: Record<string, string>;
542
+ };
543
+
544
+ // @public (undocumented)
545
+ type ScreenAuthPopupEventProps = CommonEventProps;
546
+
547
+ export { SmartCardContext as Context }
548
+ export { SmartCardContext }
549
+
550
+ // @public
551
+ export enum SmartLinkDirection {
552
+ // (undocumented)
553
+ Horizontal = "horizontal",
554
+ // (undocumented)
555
+ Vertical = "vertical"
556
+ }
557
+
558
+ // @public (undocumented)
559
+ export class SmartLinkEvents {
560
+ // (undocumented)
561
+ insertSmartLink(url: string, type: CardInnerAppearance, createAnalyticsEvent?: CreateUIAnalyticsEvent): void;
562
+ }
563
+
564
+ // @public
565
+ export enum SmartLinkPosition {
566
+ // (undocumented)
567
+ Center = "center",
568
+ // (undocumented)
569
+ Top = "top"
570
+ }
571
+
572
+ // @public
573
+ export enum SmartLinkSize {
574
+ // (undocumented)
575
+ Large = "large",
576
+ // (undocumented)
577
+ Medium = "medium",
578
+ // (undocumented)
579
+ Small = "small",
580
+ // (undocumented)
581
+ XLarge = "xlarge"
582
+ }
583
+
584
+ // @public
585
+ enum SmartLinkStatus {
586
+ // (undocumented)
587
+ Errored = "errored",
588
+ // (undocumented)
589
+ Fallback = "fallback",
590
+ // (undocumented)
591
+ Forbidden = "forbidden",
592
+ // (undocumented)
593
+ NotFound = "not_found",
594
+ // (undocumented)
595
+ Pending = "pending",
596
+ // (undocumented)
597
+ Resolved = "resolved",
598
+ // (undocumented)
599
+ Resolving = "resolving",
600
+ // (undocumented)
601
+ Unauthorized = "unauthorized"
602
+ }
603
+
604
+ // @public
605
+ export enum SmartLinkTheme {
606
+ // (undocumented)
607
+ Black = "black",
608
+ // (undocumented)
609
+ Link = "link"
610
+ }
611
+
612
+ // @public
613
+ type Snippet = {
614
+ name: ElementName.Snippet;
615
+ };
616
+
617
+ // @public
618
+ export const SnippetBlock: React_2.FC<SnippetBlockProps>;
619
+
620
+ // @public (undocumented)
621
+ type SnippetBlockProps = {
622
+ maxLines?: number;
623
+ } & BlockProps;
624
+
625
+ // @public
626
+ type SourceBranch = {
627
+ name: ElementName.SourceBranch;
628
+ };
629
+
630
+ // @public (undocumented)
631
+ interface State {
632
+ }
633
+
634
+ // @public
635
+ type State_2 = {
636
+ name: ElementName.State;
637
+ };
638
+
639
+ // @public
640
+ type SubscriberCount = {
641
+ name: ElementName.SubscriberCount;
642
+ };
643
+
644
+ // @public
645
+ type TargetBranch = {
646
+ name: ElementName.TargetBranch;
647
+ };
648
+
649
+ // @public
650
+ type Title = {
651
+ name: ElementName.Title;
652
+ };
653
+
654
+ // @public
655
+ export const TitleBlock: React_2.FC<TitleBlockProps>;
656
+
657
+ // @public (undocumented)
658
+ type TitleBlockProps = {
659
+ actions?: ActionItem[];
660
+ anchorTarget?: AnchorTarget;
661
+ hideTitleTooltip?: boolean;
662
+ maxLines?: number;
663
+ metadata?: ElementItem[];
664
+ onActionMenuOpenChange?: (options: OnActionMenuOpenChangeOptions) => void;
665
+ position?: SmartLinkPosition;
666
+ onClick?: React_2.EventHandler<React_2.KeyboardEvent | React_2.MouseEvent>;
667
+ retry?: RetryOptions;
668
+ showActionOnHover?: boolean;
669
+ subtitle?: ElementItem[];
670
+ text?: string;
671
+ theme?: SmartLinkTheme;
672
+ } & BlockProps;
673
+
674
+ // @public (undocumented)
675
+ type TrackAppAccountConnectedProps = CommonEventProps;
676
+
677
+ // @public (undocumented)
678
+ type UiActionClickedEventProps = CommonEventProps & {
679
+ id: string;
680
+ display: CardInnerAppearance;
681
+ actionType: string;
682
+ invokeType?: InvokeType;
683
+ };
684
+
685
+ // @public (undocumented)
686
+ type UiAuthAlternateAccountEventProps = CommonEventProps & {
687
+ display: CardInnerAppearance;
688
+ };
689
+
690
+ // @public (undocumented)
691
+ type UiAuthEventProps = CommonEventProps & {
692
+ display: CardInnerAppearance;
693
+ };
694
+
695
+ // @public (undocumented)
696
+ type UiCardClickedEventProps = CommonEventProps & {
697
+ id: string;
698
+ display: CardInnerAppearance;
699
+ status: CardType;
700
+ isModifierKeyPressed?: boolean;
701
+ actionSubjectId?: string;
702
+ };
703
+
704
+ // @public (undocumented)
705
+ type UiClosedAuthEventProps = CommonEventProps & {
706
+ display: CardInnerAppearance;
707
+ };
708
+
709
+ // @public (undocumented)
710
+ type UiHoverCardDismissedEventProps = CommonEventProps & {
711
+ previewDisplay: PreviewDisplay;
712
+ hoverTime: number;
713
+ previewInvokeMethod?: PreviewInvokeMethod;
714
+ };
715
+
716
+ // @public (undocumented)
717
+ type UiHoverCardOpenLinkClickedEventProps = CommonEventProps & {
718
+ previewDisplay: PreviewDisplay;
719
+ previewInvokeMethod?: PreviewInvokeMethod;
720
+ };
721
+
722
+ // @public (undocumented)
723
+ type UiHoverCardViewedEventProps = CommonEventProps & {
724
+ previewDisplay: PreviewDisplay;
725
+ previewInvokeMethod?: PreviewInvokeMethod;
726
+ };
727
+
728
+ // @public (undocumented)
729
+ type UiRenderFailedEventProps = CommonEventProps & {
730
+ display: CardInnerAppearance;
731
+ error: Error;
732
+ errorInfo: ErrorInfo;
733
+ };
734
+
735
+ // @public (undocumented)
736
+ type UiRenderSuccessEventProps = CommonEventProps & {
737
+ display: CardInnerAppearance;
738
+ status: CardType;
739
+ };
740
+
741
+ // @public
742
+ export const useSmartLinkAnalytics: (url: string, dispatchAnalytics: AnalyticsHandler, id?: string | undefined, defaultLocation?: string | undefined) => {
743
+ ui: {
744
+ authEvent: ({ display, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: UiAuthEventProps) => void;
745
+ authAlternateAccountEvent: ({ display, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: UiAuthAlternateAccountEventProps) => void;
746
+ buttonClickedEvent: (data: Partial<AnalyticsPayload> & {
747
+ actionSubjectId: Required<string>;
748
+ }) => void;
749
+ cardClickedEvent: ({ id, display, status, definitionId, extensionKey, isModifierKeyPressed, location, destinationProduct, destinationSubproduct, actionSubjectId, }: UiCardClickedEventProps) => void;
750
+ actionClickedEvent: ({ id, actionType, display, invokeType, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: UiActionClickedEventProps) => void;
751
+ hoverCardOpenLinkClickedEvent: ({ previewDisplay, definitionId, extensionKey, destinationProduct, destinationSubproduct, location, previewInvokeMethod, }: UiHoverCardOpenLinkClickedEventProps) => void;
752
+ closedAuthEvent: ({ display, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: UiClosedAuthEventProps) => void;
753
+ modalClosedEvent: (data: Partial<AnalyticsPayload> & {
754
+ actionSubjectId: Required<string>;
755
+ }) => void;
756
+ renderSuccessEvent: ({ display, status, id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: UiRenderSuccessEventProps) => void;
757
+ renderFailedEvent: ({ display, id, error, errorInfo, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: UiRenderFailedEventProps) => void;
758
+ hoverCardViewedEvent: ({ previewDisplay, previewInvokeMethod, id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: UiHoverCardViewedEventProps) => void;
759
+ hoverCardDismissedEvent: ({ id, previewDisplay, hoverTime, previewInvokeMethod, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: UiHoverCardDismissedEventProps) => void;
760
+ };
761
+ operational: {
762
+ invokeSucceededEvent: ({ id, actionType, display, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: InvokeSucceededEventProps) => void;
763
+ invokeFailedEvent: ({ id, actionType, display, reason, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: InvokeFailedEventProps) => void;
764
+ connectSucceededEvent: ({ id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: ConnectSucceededEventProps) => void;
765
+ connectFailedEvent: ({ id, reason, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: ConnectFailedEventProps) => void;
766
+ instrument: ({ id, status, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, error, }: InstrumentEventProps) => void;
767
+ };
768
+ track: {
769
+ appAccountConnected: ({ extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: TrackAppAccountConnectedProps) => void;
770
+ };
771
+ screen: {
772
+ authPopupEvent: ({ extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: ScreenAuthPopupEventProps) => void;
773
+ modalViewedEvent: (data: Partial<AnalyticsPayload> & {
774
+ name: Extract<AnalyticsName, 'embedPreviewModal'>;
775
+ }) => void;
776
+ };
777
+ };
778
+
779
+ // @public (undocumented)
780
+ export function useSmartLinkEvents(): SmartLinkEvents;
781
+
782
+ // @public
783
+ type ViewCount = {
784
+ name: ElementName.ViewCount;
785
+ };
786
+
787
+ // @public
788
+ type VoteCount = {
789
+ name: ElementName.VoteCount;
790
+ };
791
+
792
+ // (No @packageDocumentation comment for this package)
793
+
794
+ ```