@atlaskit/smart-card 22.2.0 → 22.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 (554) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/client/package.json +8 -1
  3. package/dist/cjs/state/helpers.js +2 -1
  4. package/dist/cjs/version.json +1 -1
  5. package/dist/cjs/view/BlockCard/components/Action.js +6 -6
  6. package/dist/cjs/view/BlockCard/components/ActionList.js +10 -10
  7. package/dist/cjs/view/BlockCard/components/CollaboratorList.js +3 -3
  8. package/dist/cjs/view/BlockCard/components/Content.js +2 -2
  9. package/dist/cjs/view/BlockCard/components/ContentFooter.js +2 -2
  10. package/dist/cjs/view/BlockCard/components/ContentHeader.js +2 -2
  11. package/dist/cjs/view/BlockCard/components/Emoji.js +3 -3
  12. package/dist/cjs/view/BlockCard/components/Frame.js +5 -5
  13. package/dist/cjs/view/BlockCard/components/Link.js +2 -2
  14. package/dist/cjs/view/BlockCard/components/Name.js +2 -2
  15. package/dist/cjs/view/BlockCard/components/Provider.js +4 -4
  16. package/dist/cjs/view/BlockCard/components/Thumbnail.js +5 -5
  17. package/dist/cjs/view/BlockCard/components/UnresolvedText.js +2 -2
  18. package/dist/cjs/view/BlockCard/views/ErroredView.js +11 -11
  19. package/dist/cjs/view/BlockCard/views/ForbiddenView.js +10 -10
  20. package/dist/cjs/view/BlockCard/views/NotFoundView.js +10 -10
  21. package/dist/cjs/view/BlockCard/views/ResolvedView.js +14 -14
  22. package/dist/cjs/view/BlockCard/views/ResolvingView.js +5 -5
  23. package/dist/cjs/view/BlockCard/views/UnauthorizedView.js +9 -9
  24. package/dist/cjs/view/EmbedCard/components/Frame.js +5 -5
  25. package/dist/cjs/view/EmbedCard/views/ErroredView.js +6 -6
  26. package/dist/cjs/view/EmbedCard/views/ResolvedView.js +10 -10
  27. package/dist/cjs/view/EmbedCard/views/UnresolvedView.js +9 -9
  28. package/dist/cjs/view/EmbedModal/components/embed-content/index.js +3 -7
  29. package/dist/cjs/view/EmbedModal/components/link-info/index.js +25 -25
  30. package/dist/cjs/view/EmbedModal/components/link-info/styled.js +5 -5
  31. package/dist/cjs/view/FlexibleCard/components/actions/action/action-button/index.js +6 -6
  32. package/dist/cjs/view/FlexibleCard/components/actions/action/action-icon/index.js +3 -3
  33. package/dist/cjs/view/FlexibleCard/components/actions/action/index.js +4 -4
  34. package/dist/cjs/view/FlexibleCard/components/blocks/action-group/index.js +8 -8
  35. package/dist/cjs/view/FlexibleCard/components/blocks/block/index.js +3 -3
  36. package/dist/cjs/view/FlexibleCard/components/blocks/element-group/index.js +8 -8
  37. package/dist/cjs/view/FlexibleCard/components/blocks/footer-block/index.js +2 -2
  38. package/dist/cjs/view/FlexibleCard/components/blocks/metadata-block/index.js +2 -2
  39. package/dist/cjs/view/FlexibleCard/components/blocks/title-block/errored/index.js +8 -8
  40. package/dist/cjs/view/FlexibleCard/components/blocks/title-block/index.js +3 -3
  41. package/dist/cjs/view/FlexibleCard/components/blocks/title-block/resolving/index.js +4 -4
  42. package/dist/cjs/view/FlexibleCard/components/blocks/utils.js +5 -5
  43. package/dist/cjs/view/FlexibleCard/components/common/image-icon/index.js +4 -4
  44. package/dist/cjs/view/FlexibleCard/components/common/loading-skeleton/index.js +4 -4
  45. package/dist/cjs/view/FlexibleCard/components/container/index.js +6 -6
  46. package/dist/cjs/view/FlexibleCard/components/container/layered-link/index.js +3 -3
  47. package/dist/cjs/view/FlexibleCard/components/elements/avatar-group/index.js +5 -5
  48. package/dist/cjs/view/FlexibleCard/components/elements/badge/index.js +9 -9
  49. package/dist/cjs/view/FlexibleCard/components/elements/date-time/index.js +4 -4
  50. package/dist/cjs/view/FlexibleCard/components/elements/icon/index.js +9 -9
  51. package/dist/cjs/view/FlexibleCard/components/elements/link/index.js +8 -8
  52. package/dist/cjs/view/FlexibleCard/components/elements/lozenge/index.js +4 -4
  53. package/dist/cjs/view/FlexibleCard/components/elements/media/index.js +4 -4
  54. package/dist/cjs/view/FlexibleCard/components/elements/text/index.js +3 -3
  55. package/dist/cjs/view/FlexibleCard/components/elements/utils.js +2 -2
  56. package/dist/cjs/view/FlexibleCard/components/utils.js +7 -7
  57. package/dist/cjs/view/HoverCard/components/HoverCardComponent.js +20 -20
  58. package/dist/cjs/view/HoverCard/components/HoverCardLoadingView.js +7 -7
  59. package/dist/cjs/view/HoverCard/components/SnippetOrPreview.js +2 -2
  60. package/dist/cjs/view/HoverCard/index.js +6 -6
  61. package/dist/cjs/view/HoverCard/styled.js +10 -10
  62. package/dist/cjs/view/InlineCard/Icon.js +2 -2
  63. package/dist/cjs/view/common/Byline.js +2 -2
  64. package/dist/cjs/view/common/Icon.js +6 -6
  65. package/dist/cjs/view/common/Metadata.js +5 -5
  66. package/dist/cjs/view/common/MetadataList.js +3 -3
  67. package/dist/cjs/view/common/ModalHeader.js +14 -14
  68. package/dist/es2019/state/helpers.js +2 -1
  69. package/dist/es2019/version.json +1 -1
  70. package/dist/es2019/view/BlockCard/components/Action.js +1 -1
  71. package/dist/es2019/view/BlockCard/components/ActionList.js +1 -1
  72. package/dist/es2019/view/BlockCard/components/CollaboratorList.js +1 -1
  73. package/dist/es2019/view/BlockCard/components/Content.js +1 -1
  74. package/dist/es2019/view/BlockCard/components/ContentFooter.js +1 -1
  75. package/dist/es2019/view/BlockCard/components/ContentHeader.js +1 -1
  76. package/dist/es2019/view/BlockCard/components/Emoji.js +1 -1
  77. package/dist/es2019/view/BlockCard/components/Frame.js +1 -1
  78. package/dist/es2019/view/BlockCard/components/Link.js +1 -1
  79. package/dist/es2019/view/BlockCard/components/Name.js +1 -1
  80. package/dist/es2019/view/BlockCard/components/Provider.js +1 -1
  81. package/dist/es2019/view/BlockCard/components/Thumbnail.js +1 -1
  82. package/dist/es2019/view/BlockCard/components/UnresolvedText.js +1 -1
  83. package/dist/es2019/view/BlockCard/views/ErroredView.js +1 -1
  84. package/dist/es2019/view/BlockCard/views/ForbiddenView.js +1 -1
  85. package/dist/es2019/view/BlockCard/views/NotFoundView.js +1 -1
  86. package/dist/es2019/view/BlockCard/views/ResolvedView.js +1 -1
  87. package/dist/es2019/view/BlockCard/views/ResolvingView.js +1 -1
  88. package/dist/es2019/view/BlockCard/views/UnauthorizedView.js +1 -1
  89. package/dist/es2019/view/EmbedCard/components/Frame.js +1 -1
  90. package/dist/es2019/view/EmbedCard/views/ErroredView.js +1 -1
  91. package/dist/es2019/view/EmbedCard/views/ResolvedView.js +1 -1
  92. package/dist/es2019/view/EmbedCard/views/UnresolvedView.js +1 -1
  93. package/dist/es2019/view/EmbedModal/components/embed-content/index.js +2 -6
  94. package/dist/es2019/view/EmbedModal/components/link-info/index.js +1 -1
  95. package/dist/es2019/view/EmbedModal/components/link-info/styled.js +1 -1
  96. package/dist/es2019/view/FlexibleCard/components/actions/action/action-button/index.js +1 -1
  97. package/dist/es2019/view/FlexibleCard/components/actions/action/action-icon/index.js +1 -1
  98. package/dist/es2019/view/FlexibleCard/components/actions/action/index.js +1 -1
  99. package/dist/es2019/view/FlexibleCard/components/blocks/action-group/index.js +1 -1
  100. package/dist/es2019/view/FlexibleCard/components/blocks/block/index.js +1 -1
  101. package/dist/es2019/view/FlexibleCard/components/blocks/element-group/index.js +5 -4
  102. package/dist/es2019/view/FlexibleCard/components/blocks/footer-block/index.js +1 -1
  103. package/dist/es2019/view/FlexibleCard/components/blocks/metadata-block/index.js +1 -1
  104. package/dist/es2019/view/FlexibleCard/components/blocks/title-block/errored/index.js +1 -1
  105. package/dist/es2019/view/FlexibleCard/components/blocks/title-block/index.js +1 -1
  106. package/dist/es2019/view/FlexibleCard/components/blocks/title-block/resolving/index.js +1 -1
  107. package/dist/es2019/view/FlexibleCard/components/blocks/utils.js +1 -1
  108. package/dist/es2019/view/FlexibleCard/components/common/image-icon/index.js +1 -1
  109. package/dist/es2019/view/FlexibleCard/components/common/loading-skeleton/index.js +1 -1
  110. package/dist/es2019/view/FlexibleCard/components/container/index.js +1 -1
  111. package/dist/es2019/view/FlexibleCard/components/container/layered-link/index.js +1 -1
  112. package/dist/es2019/view/FlexibleCard/components/elements/avatar-group/index.js +1 -1
  113. package/dist/es2019/view/FlexibleCard/components/elements/badge/index.js +1 -1
  114. package/dist/es2019/view/FlexibleCard/components/elements/date-time/index.js +1 -1
  115. package/dist/es2019/view/FlexibleCard/components/elements/icon/index.js +1 -1
  116. package/dist/es2019/view/FlexibleCard/components/elements/link/index.js +1 -1
  117. package/dist/es2019/view/FlexibleCard/components/elements/lozenge/index.js +1 -1
  118. package/dist/es2019/view/FlexibleCard/components/elements/media/index.js +1 -1
  119. package/dist/es2019/view/FlexibleCard/components/elements/text/index.js +1 -1
  120. package/dist/es2019/view/FlexibleCard/components/elements/utils.js +1 -1
  121. package/dist/es2019/view/FlexibleCard/components/utils.js +1 -1
  122. package/dist/es2019/view/HoverCard/components/HoverCardComponent.js +1 -1
  123. package/dist/es2019/view/HoverCard/components/HoverCardLoadingView.js +1 -1
  124. package/dist/es2019/view/HoverCard/components/SnippetOrPreview.js +1 -1
  125. package/dist/es2019/view/HoverCard/index.js +1 -1
  126. package/dist/es2019/view/HoverCard/styled.js +1 -1
  127. package/dist/es2019/view/InlineCard/Icon.js +1 -1
  128. package/dist/es2019/view/common/Byline.js +1 -1
  129. package/dist/es2019/view/common/Icon.js +1 -1
  130. package/dist/es2019/view/common/Metadata.js +1 -1
  131. package/dist/es2019/view/common/MetadataList.js +1 -1
  132. package/dist/es2019/view/common/ModalHeader.js +1 -1
  133. package/dist/esm/state/helpers.js +2 -1
  134. package/dist/esm/version.json +1 -1
  135. package/dist/esm/view/BlockCard/components/Action.js +1 -1
  136. package/dist/esm/view/BlockCard/components/ActionList.js +1 -1
  137. package/dist/esm/view/BlockCard/components/CollaboratorList.js +1 -1
  138. package/dist/esm/view/BlockCard/components/Content.js +1 -1
  139. package/dist/esm/view/BlockCard/components/ContentFooter.js +1 -1
  140. package/dist/esm/view/BlockCard/components/ContentHeader.js +1 -1
  141. package/dist/esm/view/BlockCard/components/Emoji.js +1 -1
  142. package/dist/esm/view/BlockCard/components/Frame.js +1 -1
  143. package/dist/esm/view/BlockCard/components/Link.js +1 -1
  144. package/dist/esm/view/BlockCard/components/Name.js +1 -1
  145. package/dist/esm/view/BlockCard/components/Provider.js +1 -1
  146. package/dist/esm/view/BlockCard/components/Thumbnail.js +1 -1
  147. package/dist/esm/view/BlockCard/components/UnresolvedText.js +1 -1
  148. package/dist/esm/view/BlockCard/views/ErroredView.js +1 -1
  149. package/dist/esm/view/BlockCard/views/ForbiddenView.js +1 -1
  150. package/dist/esm/view/BlockCard/views/NotFoundView.js +1 -1
  151. package/dist/esm/view/BlockCard/views/ResolvedView.js +1 -1
  152. package/dist/esm/view/BlockCard/views/ResolvingView.js +1 -1
  153. package/dist/esm/view/BlockCard/views/UnauthorizedView.js +1 -1
  154. package/dist/esm/view/EmbedCard/components/Frame.js +1 -1
  155. package/dist/esm/view/EmbedCard/views/ErroredView.js +1 -1
  156. package/dist/esm/view/EmbedCard/views/ResolvedView.js +1 -1
  157. package/dist/esm/view/EmbedCard/views/UnresolvedView.js +1 -1
  158. package/dist/esm/view/EmbedModal/components/embed-content/index.js +2 -5
  159. package/dist/esm/view/EmbedModal/components/link-info/index.js +1 -1
  160. package/dist/esm/view/EmbedModal/components/link-info/styled.js +1 -1
  161. package/dist/esm/view/FlexibleCard/components/actions/action/action-button/index.js +1 -1
  162. package/dist/esm/view/FlexibleCard/components/actions/action/action-icon/index.js +1 -1
  163. package/dist/esm/view/FlexibleCard/components/actions/action/index.js +1 -1
  164. package/dist/esm/view/FlexibleCard/components/blocks/action-group/index.js +1 -1
  165. package/dist/esm/view/FlexibleCard/components/blocks/block/index.js +1 -1
  166. package/dist/esm/view/FlexibleCard/components/blocks/element-group/index.js +2 -2
  167. package/dist/esm/view/FlexibleCard/components/blocks/footer-block/index.js +1 -1
  168. package/dist/esm/view/FlexibleCard/components/blocks/metadata-block/index.js +1 -1
  169. package/dist/esm/view/FlexibleCard/components/blocks/title-block/errored/index.js +1 -1
  170. package/dist/esm/view/FlexibleCard/components/blocks/title-block/index.js +1 -1
  171. package/dist/esm/view/FlexibleCard/components/blocks/title-block/resolving/index.js +1 -1
  172. package/dist/esm/view/FlexibleCard/components/blocks/utils.js +1 -1
  173. package/dist/esm/view/FlexibleCard/components/common/image-icon/index.js +1 -1
  174. package/dist/esm/view/FlexibleCard/components/common/loading-skeleton/index.js +1 -1
  175. package/dist/esm/view/FlexibleCard/components/container/index.js +1 -1
  176. package/dist/esm/view/FlexibleCard/components/container/layered-link/index.js +1 -1
  177. package/dist/esm/view/FlexibleCard/components/elements/avatar-group/index.js +1 -1
  178. package/dist/esm/view/FlexibleCard/components/elements/badge/index.js +1 -1
  179. package/dist/esm/view/FlexibleCard/components/elements/date-time/index.js +1 -1
  180. package/dist/esm/view/FlexibleCard/components/elements/icon/index.js +1 -1
  181. package/dist/esm/view/FlexibleCard/components/elements/link/index.js +1 -1
  182. package/dist/esm/view/FlexibleCard/components/elements/lozenge/index.js +1 -1
  183. package/dist/esm/view/FlexibleCard/components/elements/media/index.js +1 -1
  184. package/dist/esm/view/FlexibleCard/components/elements/text/index.js +1 -1
  185. package/dist/esm/view/FlexibleCard/components/elements/utils.js +1 -1
  186. package/dist/esm/view/FlexibleCard/components/utils.js +1 -1
  187. package/dist/esm/view/HoverCard/components/HoverCardComponent.js +1 -1
  188. package/dist/esm/view/HoverCard/components/HoverCardLoadingView.js +1 -1
  189. package/dist/esm/view/HoverCard/components/SnippetOrPreview.js +1 -1
  190. package/dist/esm/view/HoverCard/index.js +1 -1
  191. package/dist/esm/view/HoverCard/styled.js +1 -1
  192. package/dist/esm/view/InlineCard/Icon.js +1 -1
  193. package/dist/esm/view/common/Byline.js +1 -1
  194. package/dist/esm/view/common/Icon.js +1 -1
  195. package/dist/esm/view/common/Metadata.js +1 -1
  196. package/dist/esm/view/common/MetadataList.js +1 -1
  197. package/dist/esm/view/common/ModalHeader.js +1 -1
  198. package/dist/types/extractors/common/__mocks__/jsonld.d.ts +2 -2
  199. package/dist/types/view/BlockCard/components/Action.d.ts +3 -1
  200. package/dist/types/view/BlockCard/components/ActionList.d.ts +3 -2
  201. package/dist/types/view/BlockCard/components/CollaboratorList.d.ts +3 -1
  202. package/dist/types/view/BlockCard/components/Content.d.ts +3 -1
  203. package/dist/types/view/BlockCard/components/ContentFooter.d.ts +3 -1
  204. package/dist/types/view/BlockCard/components/ContentHeader.d.ts +3 -1
  205. package/dist/types/view/BlockCard/components/Emoji.d.ts +3 -1
  206. package/dist/types/view/BlockCard/components/Frame.d.ts +5 -3
  207. package/dist/types/view/BlockCard/components/Link.d.ts +3 -2
  208. package/dist/types/view/BlockCard/components/Name.d.ts +3 -1
  209. package/dist/types/view/BlockCard/components/Provider.d.ts +3 -1
  210. package/dist/types/view/BlockCard/components/Thumbnail.d.ts +5 -4
  211. package/dist/types/view/BlockCard/components/UnresolvedText.d.ts +3 -1
  212. package/dist/types/view/BlockCard/views/ErroredView.d.ts +3 -1
  213. package/dist/types/view/BlockCard/views/ForbiddenView.d.ts +3 -1
  214. package/dist/types/view/BlockCard/views/NotFoundView.d.ts +3 -1
  215. package/dist/types/view/BlockCard/views/ResolvedView.d.ts +3 -1
  216. package/dist/types/view/BlockCard/views/ResolvingView.d.ts +3 -2
  217. package/dist/types/view/BlockCard/views/UnauthorizedView.d.ts +3 -1
  218. package/dist/types/view/Card/index.d.ts +1 -1
  219. package/dist/types/view/EmbedCard/views/ErroredView.d.ts +3 -2
  220. package/dist/types/view/EmbedModal/components/link-info/styled.d.ts +4 -4
  221. package/dist/types/view/FlexibleCard/components/actions/action/types.d.ts +1 -1
  222. package/dist/types/view/FlexibleCard/components/blocks/element-group/index.d.ts +1 -1
  223. package/dist/types/view/FlexibleCard/components/blocks/element-group/types.d.ts +2 -2
  224. package/dist/types/view/FlexibleCard/components/blocks/types.d.ts +1 -1
  225. package/dist/types/view/FlexibleCard/components/blocks/utils.d.ts +1 -1
  226. package/dist/types/view/FlexibleCard/components/container/index.d.ts +1 -1
  227. package/dist/types/view/FlexibleCard/components/elements/types.d.ts +1 -1
  228. package/dist/types/view/FlexibleCard/components/utils.d.ts +1 -1
  229. package/dist/types/view/HoverCard/index.d.ts +1 -1
  230. package/dist/types/view/HoverCard/styled.d.ts +8 -8
  231. package/dist/types/view/InlineCard/ResolvingView/styled.d.ts +3 -3
  232. package/dist/types/view/common/Byline.d.ts +3 -1
  233. package/dist/types/view/common/Icon.d.ts +3 -1
  234. package/dist/types/view/common/Metadata.d.ts +3 -1
  235. package/dist/types/view/common/MetadataList.d.ts +3 -2
  236. package/dist/types/view/common/ModalHeader.d.ts +3 -1
  237. package/dist/types-ts4.0/__fixtures__/flexible-ui-data-context.d.ts +3 -0
  238. package/dist/types-ts4.0/__tests_external__/index.d.ts +6 -0
  239. package/dist/types-ts4.0/__tests_external__/page-objects/BaseCard.d.ts +16 -0
  240. package/dist/types-ts4.0/__tests_external__/page-objects/BlockCard.d.ts +6 -0
  241. package/dist/types-ts4.0/__tests_external__/page-objects/EmbedCard.d.ts +6 -0
  242. package/dist/types-ts4.0/__tests_external__/page-objects/InlineCard.d.ts +6 -0
  243. package/dist/types-ts4.0/__tests_external__/test-cases/card.d.ts +3 -0
  244. package/dist/types-ts4.0/__tests_external__/test-cases/embed.d.ts +3 -0
  245. package/dist/types-ts4.0/__tests_external__/test-cases/inline.d.ts +3 -0
  246. package/dist/types-ts4.0/__tests_external__/test-cases/types.d.ts +5 -0
  247. package/dist/types-ts4.0/classNames.d.ts +11 -0
  248. package/dist/types-ts4.0/client/index.d.ts +1 -0
  249. package/dist/types-ts4.0/constants.d.ts +185 -0
  250. package/dist/types-ts4.0/extractors/block/index.d.ts +9 -0
  251. package/dist/types-ts4.0/extractors/block/types.d.ts +14 -0
  252. package/dist/types-ts4.0/extractors/common/__mocks__/jsonld.d.ts +232 -0
  253. package/dist/types-ts4.0/extractors/common/__mocks__/render.d.ts +2 -0
  254. package/dist/types-ts4.0/extractors/common/actions/extractActions.d.ts +4 -0
  255. package/dist/types-ts4.0/extractors/common/actions/extractPreviewAction.d.ts +9 -0
  256. package/dist/types-ts4.0/extractors/common/byline/extractByline.d.ts +3 -0
  257. package/dist/types-ts4.0/extractors/common/context/extractAccessContext.d.ts +7 -0
  258. package/dist/types-ts4.0/extractors/common/context/index.d.ts +1 -0
  259. package/dist/types-ts4.0/extractors/common/detail/extractCommentCount.d.ts +4 -0
  260. package/dist/types-ts4.0/extractors/common/detail/extractDownloadUrl.d.ts +2 -0
  261. package/dist/types-ts4.0/extractors/common/detail/extractProgrammingLanguage.d.ts +4 -0
  262. package/dist/types-ts4.0/extractors/common/detail/extractSubscriberCount.d.ts +4 -0
  263. package/dist/types-ts4.0/extractors/common/detail/index.d.ts +7 -0
  264. package/dist/types-ts4.0/extractors/common/detail/types.d.ts +5 -0
  265. package/dist/types-ts4.0/extractors/common/icon/extractFileFormat.d.ts +2 -0
  266. package/dist/types-ts4.0/extractors/common/icon/extractIcon.d.ts +14 -0
  267. package/dist/types-ts4.0/extractors/common/icon/extractIconFromDocument.d.ts +4 -0
  268. package/dist/types-ts4.0/extractors/common/icon/extractIconFromTask.d.ts +3 -0
  269. package/dist/types-ts4.0/extractors/common/icon/index.d.ts +4 -0
  270. package/dist/types-ts4.0/extractors/common/icon/priority.d.ts +4 -0
  271. package/dist/types-ts4.0/extractors/common/lozenge/extractLozenge.d.ts +3 -0
  272. package/dist/types-ts4.0/extractors/common/lozenge/extractState.d.ts +3 -0
  273. package/dist/types-ts4.0/extractors/common/lozenge/extractTag.d.ts +3 -0
  274. package/dist/types-ts4.0/extractors/common/lozenge/extractTaskStatus.d.ts +3 -0
  275. package/dist/types-ts4.0/extractors/common/lozenge/extractTaskType.d.ts +7 -0
  276. package/dist/types-ts4.0/extractors/common/lozenge/index.d.ts +5 -0
  277. package/dist/types-ts4.0/extractors/common/lozenge/types.d.ts +8 -0
  278. package/dist/types-ts4.0/extractors/common/lozenge/utils.d.ts +4 -0
  279. package/dist/types-ts4.0/extractors/common/meta/extractIsTrusted.d.ts +2 -0
  280. package/dist/types-ts4.0/extractors/common/primitives/extractSummary.d.ts +2 -0
  281. package/dist/types-ts4.0/extractors/common/primitives/extractTitleTextColor.d.ts +2 -0
  282. package/dist/types-ts4.0/extractors/common/primitives/extractVisitUrl.d.ts +2 -0
  283. package/dist/types-ts4.0/extractors/common/primitives/index.d.ts +2 -0
  284. package/dist/types-ts4.0/extractors/common/title-prefix/extractTitlePrefix.d.ts +5 -0
  285. package/dist/types-ts4.0/extractors/common/title-prefix/index.d.ts +1 -0
  286. package/dist/types-ts4.0/extractors/constants.d.ts +12 -0
  287. package/dist/types-ts4.0/extractors/embed/index.d.ts +3 -0
  288. package/dist/types-ts4.0/extractors/flexible/collaboratorGroup/index.d.ts +4 -0
  289. package/dist/types-ts4.0/extractors/flexible/extract-preview.d.ts +4 -0
  290. package/dist/types-ts4.0/extractors/flexible/extract-priority.d.ts +4 -0
  291. package/dist/types-ts4.0/extractors/flexible/icon/extract-document-type-icon.d.ts +3 -0
  292. package/dist/types-ts4.0/extractors/flexible/icon/extract-file-formatIcon.d.ts +3 -0
  293. package/dist/types-ts4.0/extractors/flexible/icon/extract-icon-renderer.d.ts +4 -0
  294. package/dist/types-ts4.0/extractors/flexible/icon/extract-jira-task-icon.d.ts +3 -0
  295. package/dist/types-ts4.0/extractors/flexible/icon/extract-jsonld-data-icon.d.ts +4 -0
  296. package/dist/types-ts4.0/extractors/flexible/icon/extract-provider-icon.d.ts +4 -0
  297. package/dist/types-ts4.0/extractors/flexible/icon/extract-url-icon.d.ts +4 -0
  298. package/dist/types-ts4.0/extractors/flexible/icon/index.d.ts +17 -0
  299. package/dist/types-ts4.0/extractors/flexible/icon/types.d.ts +6 -0
  300. package/dist/types-ts4.0/extractors/flexible/index.d.ts +5 -0
  301. package/dist/types-ts4.0/extractors/flexible/latest-commit/index.d.ts +2 -0
  302. package/dist/types-ts4.0/extractors/flexible/utils.d.ts +12 -0
  303. package/dist/types-ts4.0/extractors/hover/extractMetadata.d.ts +3 -0
  304. package/dist/types-ts4.0/extractors/index.d.ts +14 -0
  305. package/dist/types-ts4.0/extractors/inline/index.d.ts +6 -0
  306. package/dist/types-ts4.0/hooks.d.ts +2 -0
  307. package/dist/types-ts4.0/i18n/cs.d.ts +71 -0
  308. package/dist/types-ts4.0/i18n/da.d.ts +71 -0
  309. package/dist/types-ts4.0/i18n/de.d.ts +71 -0
  310. package/dist/types-ts4.0/i18n/en.d.ts +71 -0
  311. package/dist/types-ts4.0/i18n/en_GB.d.ts +71 -0
  312. package/dist/types-ts4.0/i18n/en_ZZ.d.ts +38 -0
  313. package/dist/types-ts4.0/i18n/es.d.ts +71 -0
  314. package/dist/types-ts4.0/i18n/et.d.ts +94 -0
  315. package/dist/types-ts4.0/i18n/fi.d.ts +71 -0
  316. package/dist/types-ts4.0/i18n/fr.d.ts +71 -0
  317. package/dist/types-ts4.0/i18n/hu.d.ts +71 -0
  318. package/dist/types-ts4.0/i18n/index.d.ts +35 -0
  319. package/dist/types-ts4.0/i18n/is.d.ts +70 -0
  320. package/dist/types-ts4.0/i18n/it.d.ts +71 -0
  321. package/dist/types-ts4.0/i18n/ja.d.ts +71 -0
  322. package/dist/types-ts4.0/i18n/ko.d.ts +71 -0
  323. package/dist/types-ts4.0/i18n/languages.d.ts +27 -0
  324. package/dist/types-ts4.0/i18n/nb.d.ts +71 -0
  325. package/dist/types-ts4.0/i18n/nl.d.ts +71 -0
  326. package/dist/types-ts4.0/i18n/pl.d.ts +71 -0
  327. package/dist/types-ts4.0/i18n/pt_BR.d.ts +71 -0
  328. package/dist/types-ts4.0/i18n/pt_PT.d.ts +94 -0
  329. package/dist/types-ts4.0/i18n/ro.d.ts +70 -0
  330. package/dist/types-ts4.0/i18n/ru.d.ts +71 -0
  331. package/dist/types-ts4.0/i18n/sk.d.ts +94 -0
  332. package/dist/types-ts4.0/i18n/sv.d.ts +71 -0
  333. package/dist/types-ts4.0/i18n/th.d.ts +71 -0
  334. package/dist/types-ts4.0/i18n/tr.d.ts +71 -0
  335. package/dist/types-ts4.0/i18n/uk.d.ts +71 -0
  336. package/dist/types-ts4.0/i18n/vi.d.ts +71 -0
  337. package/dist/types-ts4.0/i18n/zh.d.ts +71 -0
  338. package/dist/types-ts4.0/i18n/zh_TW.d.ts +71 -0
  339. package/dist/types-ts4.0/in-product.d.ts +1 -0
  340. package/dist/types-ts4.0/index.d.ts +22 -0
  341. package/dist/types-ts4.0/messages.d.ts +8 -0
  342. package/dist/types-ts4.0/model/invoke-handler.d.ts +3 -0
  343. package/dist/types-ts4.0/model/invoke-opts.d.ts +17 -0
  344. package/dist/types-ts4.0/ssr.d.ts +6 -0
  345. package/dist/types-ts4.0/state/actions/constants.d.ts +6 -0
  346. package/dist/types-ts4.0/state/actions/index.d.ts +12 -0
  347. package/dist/types-ts4.0/state/actions/types.d.ts +2 -0
  348. package/dist/types-ts4.0/state/analytics/index.d.ts +3 -0
  349. package/dist/types-ts4.0/state/analytics/types.d.ts +9 -0
  350. package/dist/types-ts4.0/state/analytics/ufoExperiences.d.ts +7 -0
  351. package/dist/types-ts4.0/state/analytics/useSmartLinkAnalytics.d.ts +195 -0
  352. package/dist/types-ts4.0/state/config/index.d.ts +2 -0
  353. package/dist/types-ts4.0/state/flexible-ui-context/index.d.ts +8 -0
  354. package/dist/types-ts4.0/state/flexible-ui-context/types.d.ts +159 -0
  355. package/dist/types-ts4.0/state/helpers.d.ts +16 -0
  356. package/dist/types-ts4.0/state/hooks/index.d.ts +2 -0
  357. package/dist/types-ts4.0/state/hooks/usePrefetch.d.ts +1 -0
  358. package/dist/types-ts4.0/state/hooks/useSmartLink.d.ts +50 -0
  359. package/dist/types-ts4.0/state/hooks-external/useSmartLinkActions.d.ts +49 -0
  360. package/dist/types-ts4.0/state/hooks-external/useSmartLinkReload.d.ts +19 -0
  361. package/dist/types-ts4.0/state/index.d.ts +5 -0
  362. package/dist/types-ts4.0/state/reducers/types.d.ts +4 -0
  363. package/dist/types-ts4.0/state/renderers/index.d.ts +2 -0
  364. package/dist/types-ts4.0/state/store/index.d.ts +3 -0
  365. package/dist/types-ts4.0/state/types.d.ts +1 -0
  366. package/dist/types-ts4.0/types.d.ts +20 -0
  367. package/dist/types-ts4.0/utils/analytics/__mocks__/analytics.d.ts +2 -0
  368. package/dist/types-ts4.0/utils/analytics/analytics.d.ts +32 -0
  369. package/dist/types-ts4.0/utils/analytics/index.d.ts +4 -0
  370. package/dist/types-ts4.0/utils/analytics/types.d.ts +93 -0
  371. package/dist/types-ts4.0/utils/flexible.d.ts +5 -0
  372. package/dist/types-ts4.0/utils/index.d.ts +12 -0
  373. package/dist/types-ts4.0/utils/jsonld.d.ts +3 -0
  374. package/dist/types-ts4.0/utils/mocks.d.ts +74 -0
  375. package/dist/types-ts4.0/utils/performance.d.ts +8 -0
  376. package/dist/types-ts4.0/utils/test-utils.d.ts +4 -0
  377. package/dist/types-ts4.0/utils/token.d.ts +16 -0
  378. package/dist/types-ts4.0/utils/types.d.ts +14 -0
  379. package/dist/types-ts4.0/view/BlockCard/actions/AuthorizeAction.d.ts +2 -0
  380. package/dist/types-ts4.0/view/BlockCard/actions/DownloadAction.d.ts +8 -0
  381. package/dist/types-ts4.0/view/BlockCard/actions/ForbiddenAction.d.ts +2 -0
  382. package/dist/types-ts4.0/view/BlockCard/actions/PreviewAction.d.ts +32 -0
  383. package/dist/types-ts4.0/view/BlockCard/actions/RetryAction.d.ts +2 -0
  384. package/dist/types-ts4.0/view/BlockCard/actions/ViewAction.d.ts +8 -0
  385. package/dist/types-ts4.0/view/BlockCard/components/Action.d.ts +13 -0
  386. package/dist/types-ts4.0/view/BlockCard/components/ActionIcon.d.ts +12 -0
  387. package/dist/types-ts4.0/view/BlockCard/components/ActionList.d.ts +7 -0
  388. package/dist/types-ts4.0/view/BlockCard/components/CollaboratorList.d.ts +15 -0
  389. package/dist/types-ts4.0/view/BlockCard/components/Content.d.ts +9 -0
  390. package/dist/types-ts4.0/view/BlockCard/components/ContentFooter.d.ts +9 -0
  391. package/dist/types-ts4.0/view/BlockCard/components/ContentHeader.d.ts +10 -0
  392. package/dist/types-ts4.0/view/BlockCard/components/Emoji.d.ts +7 -0
  393. package/dist/types-ts4.0/view/BlockCard/components/Frame.d.ts +16 -0
  394. package/dist/types-ts4.0/view/BlockCard/components/Link.d.ts +8 -0
  395. package/dist/types-ts4.0/view/BlockCard/components/Name.d.ts +12 -0
  396. package/dist/types-ts4.0/view/BlockCard/components/Provider.d.ts +8 -0
  397. package/dist/types-ts4.0/view/BlockCard/components/Thumbnail.d.ts +10 -0
  398. package/dist/types-ts4.0/view/BlockCard/components/UnresolvedText.d.ts +8 -0
  399. package/dist/types-ts4.0/view/BlockCard/index.d.ts +14 -0
  400. package/dist/types-ts4.0/view/BlockCard/types.d.ts +25 -0
  401. package/dist/types-ts4.0/view/BlockCard/utils/constants.d.ts +3 -0
  402. package/dist/types-ts4.0/view/BlockCard/utils/handlers.d.ts +2 -0
  403. package/dist/types-ts4.0/view/BlockCard/views/ErroredView.d.ts +14 -0
  404. package/dist/types-ts4.0/view/BlockCard/views/ForbiddenView.d.ts +23 -0
  405. package/dist/types-ts4.0/view/BlockCard/views/NotFoundView.d.ts +17 -0
  406. package/dist/types-ts4.0/view/BlockCard/views/ResolvedView.d.ts +34 -0
  407. package/dist/types-ts4.0/view/BlockCard/views/ResolvingView.d.ts +9 -0
  408. package/dist/types-ts4.0/view/BlockCard/views/UnauthorizedView.d.ts +19 -0
  409. package/dist/types-ts4.0/view/Card/index.d.ts +5 -0
  410. package/dist/types-ts4.0/view/Card/types.d.ts +37 -0
  411. package/dist/types-ts4.0/view/CardWithData/component.d.ts +5 -0
  412. package/dist/types-ts4.0/view/CardWithData/loader.d.ts +9 -0
  413. package/dist/types-ts4.0/view/CardWithData/types.d.ts +15 -0
  414. package/dist/types-ts4.0/view/CardWithUrl/component-lazy/LazyFallback.d.ts +4 -0
  415. package/dist/types-ts4.0/view/CardWithUrl/component-lazy/LazyIntersectionObserverCard.d.ts +3 -0
  416. package/dist/types-ts4.0/view/CardWithUrl/component-lazy/LazyLazilyRenderCard.d.ts +3 -0
  417. package/dist/types-ts4.0/view/CardWithUrl/component-lazy/index.d.ts +3 -0
  418. package/dist/types-ts4.0/view/CardWithUrl/component.d.ts +3 -0
  419. package/dist/types-ts4.0/view/CardWithUrl/loader.d.ts +3 -0
  420. package/dist/types-ts4.0/view/CardWithUrl/types.d.ts +29 -0
  421. package/dist/types-ts4.0/view/EmbedCard/EmbedResizeMessageListener.d.ts +15 -0
  422. package/dist/types-ts4.0/view/EmbedCard/components/ExpandedFrame.d.ts +23 -0
  423. package/dist/types-ts4.0/view/EmbedCard/components/Frame.d.ts +7 -0
  424. package/dist/types-ts4.0/view/EmbedCard/components/ImageIcon.d.ts +9 -0
  425. package/dist/types-ts4.0/view/EmbedCard/components/styled.d.ts +45 -0
  426. package/dist/types-ts4.0/view/EmbedCard/index.d.ts +3 -0
  427. package/dist/types-ts4.0/view/EmbedCard/types.d.ts +46 -0
  428. package/dist/types-ts4.0/view/EmbedCard/views/ErroredView.d.ts +9 -0
  429. package/dist/types-ts4.0/view/EmbedCard/views/ForbiddenView.d.ts +13 -0
  430. package/dist/types-ts4.0/view/EmbedCard/views/NotFoundView.d.ts +11 -0
  431. package/dist/types-ts4.0/view/EmbedCard/views/ResolvedView.d.ts +27 -0
  432. package/dist/types-ts4.0/view/EmbedCard/views/UnauthorisedView.d.ts +12 -0
  433. package/dist/types-ts4.0/view/EmbedCard/views/UnresolvedView.d.ts +18 -0
  434. package/dist/types-ts4.0/view/EmbedModal/components/analytics/index.d.ts +5 -0
  435. package/dist/types-ts4.0/view/EmbedModal/components/analytics/types.d.ts +6 -0
  436. package/dist/types-ts4.0/view/EmbedModal/components/embed-content/index.d.ts +5 -0
  437. package/dist/types-ts4.0/view/EmbedModal/components/embed-content/types.d.ts +6 -0
  438. package/dist/types-ts4.0/view/EmbedModal/components/error-boundary/index.d.ts +4 -0
  439. package/dist/types-ts4.0/view/EmbedModal/components/link-info/index.d.ts +4 -0
  440. package/dist/types-ts4.0/view/EmbedModal/components/link-info/link-info-button/index.d.ts +4 -0
  441. package/dist/types-ts4.0/view/EmbedModal/components/link-info/link-info-button/types.d.ts +9 -0
  442. package/dist/types-ts4.0/view/EmbedModal/components/link-info/styled.d.ts +4 -0
  443. package/dist/types-ts4.0/view/EmbedModal/components/link-info/types.d.ts +13 -0
  444. package/dist/types-ts4.0/view/EmbedModal/components/size-experiment/index.d.ts +7 -0
  445. package/dist/types-ts4.0/view/EmbedModal/components/size-experiment/types.d.ts +4 -0
  446. package/dist/types-ts4.0/view/EmbedModal/constants.d.ts +2 -0
  447. package/dist/types-ts4.0/view/EmbedModal/index.d.ts +6 -0
  448. package/dist/types-ts4.0/view/EmbedModal/types.d.ts +34 -0
  449. package/dist/types-ts4.0/view/FlexibleCard/components/actions/action/action-button/index.d.ts +5 -0
  450. package/dist/types-ts4.0/view/FlexibleCard/components/actions/action/action-button/types.d.ts +8 -0
  451. package/dist/types-ts4.0/view/FlexibleCard/components/actions/action/action-dropdown-item/index.d.ts +4 -0
  452. package/dist/types-ts4.0/view/FlexibleCard/components/actions/action/action-dropdown-item/types.d.ts +8 -0
  453. package/dist/types-ts4.0/view/FlexibleCard/components/actions/action/action-icon/index.d.ts +5 -0
  454. package/dist/types-ts4.0/view/FlexibleCard/components/actions/action/action-icon/types.d.ts +7 -0
  455. package/dist/types-ts4.0/view/FlexibleCard/components/actions/action/index.d.ts +13 -0
  456. package/dist/types-ts4.0/view/FlexibleCard/components/actions/action/types.d.ts +48 -0
  457. package/dist/types-ts4.0/view/FlexibleCard/components/actions/index.d.ts +20 -0
  458. package/dist/types-ts4.0/view/FlexibleCard/components/actions/utils.d.ts +4 -0
  459. package/dist/types-ts4.0/view/FlexibleCard/components/blocks/action-group/index.d.ts +11 -0
  460. package/dist/types-ts4.0/view/FlexibleCard/components/blocks/action-group/types.d.ts +37 -0
  461. package/dist/types-ts4.0/view/FlexibleCard/components/blocks/block/index.d.ts +12 -0
  462. package/dist/types-ts4.0/view/FlexibleCard/components/blocks/element-group/index.d.ts +15 -0
  463. package/dist/types-ts4.0/view/FlexibleCard/components/blocks/element-group/types.d.ts +10 -0
  464. package/dist/types-ts4.0/view/FlexibleCard/components/blocks/footer-block/index.d.ts +11 -0
  465. package/dist/types-ts4.0/view/FlexibleCard/components/blocks/footer-block/types.d.ts +10 -0
  466. package/dist/types-ts4.0/view/FlexibleCard/components/blocks/index.d.ts +5 -0
  467. package/dist/types-ts4.0/view/FlexibleCard/components/blocks/metadata-block/index.d.ts +11 -0
  468. package/dist/types-ts4.0/view/FlexibleCard/components/blocks/metadata-block/types.d.ts +26 -0
  469. package/dist/types-ts4.0/view/FlexibleCard/components/blocks/preview-block/index.d.ts +10 -0
  470. package/dist/types-ts4.0/view/FlexibleCard/components/blocks/preview-block/types.d.ts +8 -0
  471. package/dist/types-ts4.0/view/FlexibleCard/components/blocks/snippet-block/index.d.ts +10 -0
  472. package/dist/types-ts4.0/view/FlexibleCard/components/blocks/snippet-block/types.d.ts +8 -0
  473. package/dist/types-ts4.0/view/FlexibleCard/components/blocks/title-block/errored/index.d.ts +12 -0
  474. package/dist/types-ts4.0/view/FlexibleCard/components/blocks/title-block/index.d.ts +16 -0
  475. package/dist/types-ts4.0/view/FlexibleCard/components/blocks/title-block/resolved/index.d.ts +9 -0
  476. package/dist/types-ts4.0/view/FlexibleCard/components/blocks/title-block/resolving/index.d.ts +11 -0
  477. package/dist/types-ts4.0/view/FlexibleCard/components/blocks/title-block/types.d.ts +86 -0
  478. package/dist/types-ts4.0/view/FlexibleCard/components/blocks/types.d.ts +293 -0
  479. package/dist/types-ts4.0/view/FlexibleCard/components/blocks/utils.d.ts +13 -0
  480. package/dist/types-ts4.0/view/FlexibleCard/components/common/atlaskit-icon/index.d.ts +4 -0
  481. package/dist/types-ts4.0/view/FlexibleCard/components/common/atlaskit-icon/types.d.ts +6 -0
  482. package/dist/types-ts4.0/view/FlexibleCard/components/common/image-icon/index.d.ts +5 -0
  483. package/dist/types-ts4.0/view/FlexibleCard/components/common/image-icon/types.d.ts +7 -0
  484. package/dist/types-ts4.0/view/FlexibleCard/components/common/loading-skeleton/index.d.ts +5 -0
  485. package/dist/types-ts4.0/view/FlexibleCard/components/common/loading-skeleton/types.d.ts +16 -0
  486. package/dist/types-ts4.0/view/FlexibleCard/components/container/index.d.ts +16 -0
  487. package/dist/types-ts4.0/view/FlexibleCard/components/container/layered-link/index.d.ts +10 -0
  488. package/dist/types-ts4.0/view/FlexibleCard/components/container/layered-link/types.d.ts +12 -0
  489. package/dist/types-ts4.0/view/FlexibleCard/components/container/types.d.ts +25 -0
  490. package/dist/types-ts4.0/view/FlexibleCard/components/elements/avatar-group/index.d.ts +12 -0
  491. package/dist/types-ts4.0/view/FlexibleCard/components/elements/avatar-group/types.d.ts +21 -0
  492. package/dist/types-ts4.0/view/FlexibleCard/components/elements/badge/index.d.ts +18 -0
  493. package/dist/types-ts4.0/view/FlexibleCard/components/elements/badge/types.d.ts +17 -0
  494. package/dist/types-ts4.0/view/FlexibleCard/components/elements/date-time/index.d.ts +12 -0
  495. package/dist/types-ts4.0/view/FlexibleCard/components/elements/date-time/types.d.ts +16 -0
  496. package/dist/types-ts4.0/view/FlexibleCard/components/elements/icon/index.d.ts +11 -0
  497. package/dist/types-ts4.0/view/FlexibleCard/components/elements/icon/types.d.ts +27 -0
  498. package/dist/types-ts4.0/view/FlexibleCard/components/elements/index.d.ts +124 -0
  499. package/dist/types-ts4.0/view/FlexibleCard/components/elements/link/index.d.ts +11 -0
  500. package/dist/types-ts4.0/view/FlexibleCard/components/elements/link/types.d.ts +35 -0
  501. package/dist/types-ts4.0/view/FlexibleCard/components/elements/lozenge/index.d.ts +11 -0
  502. package/dist/types-ts4.0/view/FlexibleCard/components/elements/lozenge/types.d.ts +13 -0
  503. package/dist/types-ts4.0/view/FlexibleCard/components/elements/media/index.d.ts +11 -0
  504. package/dist/types-ts4.0/view/FlexibleCard/components/elements/media/types.d.ts +17 -0
  505. package/dist/types-ts4.0/view/FlexibleCard/components/elements/text/index.d.ts +11 -0
  506. package/dist/types-ts4.0/view/FlexibleCard/components/elements/text/types.d.ts +17 -0
  507. package/dist/types-ts4.0/view/FlexibleCard/components/elements/types.d.ts +24 -0
  508. package/dist/types-ts4.0/view/FlexibleCard/components/elements/utils.d.ts +3 -0
  509. package/dist/types-ts4.0/view/FlexibleCard/components/types.d.ts +6 -0
  510. package/dist/types-ts4.0/view/FlexibleCard/components/utils.d.ts +15 -0
  511. package/dist/types-ts4.0/view/FlexibleCard/index.d.ts +10 -0
  512. package/dist/types-ts4.0/view/FlexibleCard/types.d.ts +113 -0
  513. package/dist/types-ts4.0/view/FlexibleCard/utils.d.ts +7 -0
  514. package/dist/types-ts4.0/view/HoverCard/components/HoverCardComponent.d.ts +4 -0
  515. package/dist/types-ts4.0/view/HoverCard/components/HoverCardContent.d.ts +9 -0
  516. package/dist/types-ts4.0/view/HoverCard/components/HoverCardLoadingView.d.ts +4 -0
  517. package/dist/types-ts4.0/view/HoverCard/components/SnippetOrPreview.d.ts +4 -0
  518. package/dist/types-ts4.0/view/HoverCard/index.d.ts +3 -0
  519. package/dist/types-ts4.0/view/HoverCard/styled.d.ts +12 -0
  520. package/dist/types-ts4.0/view/HoverCard/types.d.ts +45 -0
  521. package/dist/types-ts4.0/view/HoverCard/utils.d.ts +3 -0
  522. package/dist/types-ts4.0/view/InlineCard/ErroredView/index.d.ts +21 -0
  523. package/dist/types-ts4.0/view/InlineCard/ForbiddenView/index.d.ts +25 -0
  524. package/dist/types-ts4.0/view/InlineCard/Frame/index.d.ts +16 -0
  525. package/dist/types-ts4.0/view/InlineCard/Frame/styled.d.ts +8 -0
  526. package/dist/types-ts4.0/view/InlineCard/Icon.d.ts +4 -0
  527. package/dist/types-ts4.0/view/InlineCard/IconAndTitleLayout/index.d.ts +19 -0
  528. package/dist/types-ts4.0/view/InlineCard/IconAndTitleLayout/styled.d.ts +13 -0
  529. package/dist/types-ts4.0/view/InlineCard/ResolvedView/index.d.ts +30 -0
  530. package/dist/types-ts4.0/view/InlineCard/ResolvingView/index.d.ts +18 -0
  531. package/dist/types-ts4.0/view/InlineCard/ResolvingView/styled.d.ts +14 -0
  532. package/dist/types-ts4.0/view/InlineCard/UnauthorisedView/index.d.ts +20 -0
  533. package/dist/types-ts4.0/view/InlineCard/index.d.ts +9 -0
  534. package/dist/types-ts4.0/view/InlineCard/styled.d.ts +9 -0
  535. package/dist/types-ts4.0/view/InlineCard/types.d.ts +21 -0
  536. package/dist/types-ts4.0/view/LinkView/index.d.ts +8 -0
  537. package/dist/types-ts4.0/view/SmartLinkEvents/useSmartLinkEvents.d.ts +2 -0
  538. package/dist/types-ts4.0/view/__mocks__/intersection-observer.d.ts +26 -0
  539. package/dist/types-ts4.0/view/__mocks__/intersection-observer.mock.d.ts +12 -0
  540. package/dist/types-ts4.0/view/common/Byline.d.ts +10 -0
  541. package/dist/types-ts4.0/view/common/Icon.d.ts +11 -0
  542. package/dist/types-ts4.0/view/common/Metadata.d.ts +10 -0
  543. package/dist/types-ts4.0/view/common/MetadataList.d.ts +9 -0
  544. package/dist/types-ts4.0/view/common/Modal.d.ts +26 -0
  545. package/dist/types-ts4.0/view/common/ModalHeader.d.ts +19 -0
  546. package/dist/types-ts4.0/view/common/utils.d.ts +5 -0
  547. package/dist/types-ts4.0/view/types.d.ts +29 -0
  548. package/hooks/package.json +8 -1
  549. package/in-product/package.json +8 -1
  550. package/package.json +29 -22
  551. package/report.api.md +386 -776
  552. package/ssr/package.json +8 -1
  553. package/tmp/api-report-tmp.d.ts +794 -0
  554. package/types/package.json +8 -1
@@ -0,0 +1,71 @@
1
+ declare const _default: {
2
+ 'fabric.linking.actions': string;
3
+ 'fabric.linking.add_account': string;
4
+ 'fabric.linking.cancel': string;
5
+ 'fabric.linking.cannot_connect': string;
6
+ 'fabric.linking.cannot_find_link': string;
7
+ 'fabric.linking.click_to_join': string;
8
+ 'fabric.linking.click_to_join_description': string;
9
+ 'fabric.linking.close': string;
10
+ 'fabric.linking.connect_account_description': string;
11
+ 'fabric.linking.connect_link_account': string;
12
+ 'fabric.linking.connect_link_account_card_view': string;
13
+ 'fabric.linking.connect_link_account_card_view_description': string;
14
+ 'fabric.linking.connect_link_account_card_view_name': string;
15
+ 'fabric.linking.connect_to': string;
16
+ 'fabric.linking.couldnt_load_link': string;
17
+ 'fabric.linking.create_on_absolute': string;
18
+ 'fabric.linking.create_on_relative': string;
19
+ 'fabric.linking.created_by': string;
20
+ 'fabric.linking.delete': string;
21
+ 'fabric.linking.download': string;
22
+ 'fabric.linking.edit': string;
23
+ 'fabric.linking.forbidden_access': string;
24
+ 'fabric.linking.forbidden_description': string;
25
+ 'fabric.linking.invalid_permissions': string;
26
+ 'fabric.linking.invalid_permissions_description': string;
27
+ 'fabric.linking.join_to_view': string;
28
+ 'fabric.linking.loading': string;
29
+ 'fabric.linking.modified_on_absolute': string;
30
+ 'fabric.linking.modified_on_relative': string;
31
+ 'fabric.linking.more_actions': string;
32
+ 'fabric.linking.not_found_description': string;
33
+ 'fabric.linking.not_found_title': string;
34
+ 'fabric.linking.pending_request': string;
35
+ 'fabric.linking.preview': string;
36
+ 'fabric.linking.priority_blocker': string;
37
+ 'fabric.linking.priority_critical': string;
38
+ 'fabric.linking.priority_high': string;
39
+ 'fabric.linking.priority_highest': string;
40
+ 'fabric.linking.priority_low': string;
41
+ 'fabric.linking.priority_lowest': string;
42
+ 'fabric.linking.priority_major': string;
43
+ 'fabric.linking.priority_medium': string;
44
+ 'fabric.linking.priority_minor': string;
45
+ 'fabric.linking.priority_trivial': string;
46
+ 'fabric.linking.priority_undefined': string;
47
+ 'fabric.linking.request_access': string;
48
+ 'fabric.linking.request_access_description': string;
49
+ 'fabric.linking.request_access_pending': string;
50
+ 'fabric.linking.request_access_pending_description': string;
51
+ 'fabric.linking.request_access_to_view': string;
52
+ 'fabric.linking.request_denied': string;
53
+ 'fabric.linking.request_denied_description': string;
54
+ 'fabric.linking.restricted_link': string;
55
+ 'fabric.linking.retry': string;
56
+ 'fabric.linking.save': string;
57
+ 'fabric.linking.srclink': string;
58
+ 'fabric.linking.srclinkunknown': string;
59
+ 'fabric.linking.try_again': string;
60
+ 'fabric.linking.try_another_account': string;
61
+ 'fabric.linking.unlink_account': string;
62
+ 'fabric.linking.updated_by': string;
63
+ 'fabric.linking.view': string;
64
+ };
65
+ /**
66
+ * NOTE:
67
+ *
68
+ * This file is automatically generated by Traduki 2.0.
69
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
70
+ */
71
+ export default _default;
@@ -0,0 +1,71 @@
1
+ declare const _default: {
2
+ 'fabric.linking.actions': string;
3
+ 'fabric.linking.add_account': string;
4
+ 'fabric.linking.cancel': string;
5
+ 'fabric.linking.cannot_connect': string;
6
+ 'fabric.linking.cannot_find_link': string;
7
+ 'fabric.linking.click_to_join': string;
8
+ 'fabric.linking.click_to_join_description': string;
9
+ 'fabric.linking.close': string;
10
+ 'fabric.linking.connect_account_description': string;
11
+ 'fabric.linking.connect_link_account': string;
12
+ 'fabric.linking.connect_link_account_card_view': string;
13
+ 'fabric.linking.connect_link_account_card_view_description': string;
14
+ 'fabric.linking.connect_link_account_card_view_name': string;
15
+ 'fabric.linking.connect_to': string;
16
+ 'fabric.linking.couldnt_load_link': string;
17
+ 'fabric.linking.create_on_absolute': string;
18
+ 'fabric.linking.create_on_relative': string;
19
+ 'fabric.linking.created_by': string;
20
+ 'fabric.linking.delete': string;
21
+ 'fabric.linking.download': string;
22
+ 'fabric.linking.edit': string;
23
+ 'fabric.linking.forbidden_access': string;
24
+ 'fabric.linking.forbidden_description': string;
25
+ 'fabric.linking.invalid_permissions': string;
26
+ 'fabric.linking.invalid_permissions_description': string;
27
+ 'fabric.linking.join_to_view': string;
28
+ 'fabric.linking.loading': string;
29
+ 'fabric.linking.modified_on_absolute': string;
30
+ 'fabric.linking.modified_on_relative': string;
31
+ 'fabric.linking.more_actions': string;
32
+ 'fabric.linking.not_found_description': string;
33
+ 'fabric.linking.not_found_title': string;
34
+ 'fabric.linking.pending_request': string;
35
+ 'fabric.linking.preview': string;
36
+ 'fabric.linking.priority_blocker': string;
37
+ 'fabric.linking.priority_critical': string;
38
+ 'fabric.linking.priority_high': string;
39
+ 'fabric.linking.priority_highest': string;
40
+ 'fabric.linking.priority_low': string;
41
+ 'fabric.linking.priority_lowest': string;
42
+ 'fabric.linking.priority_major': string;
43
+ 'fabric.linking.priority_medium': string;
44
+ 'fabric.linking.priority_minor': string;
45
+ 'fabric.linking.priority_trivial': string;
46
+ 'fabric.linking.priority_undefined': string;
47
+ 'fabric.linking.request_access': string;
48
+ 'fabric.linking.request_access_description': string;
49
+ 'fabric.linking.request_access_pending': string;
50
+ 'fabric.linking.request_access_pending_description': string;
51
+ 'fabric.linking.request_access_to_view': string;
52
+ 'fabric.linking.request_denied': string;
53
+ 'fabric.linking.request_denied_description': string;
54
+ 'fabric.linking.restricted_link': string;
55
+ 'fabric.linking.retry': string;
56
+ 'fabric.linking.save': string;
57
+ 'fabric.linking.srclink': string;
58
+ 'fabric.linking.srclinkunknown': string;
59
+ 'fabric.linking.try_again': string;
60
+ 'fabric.linking.try_another_account': string;
61
+ 'fabric.linking.unlink_account': string;
62
+ 'fabric.linking.updated_by': string;
63
+ 'fabric.linking.view': string;
64
+ };
65
+ /**
66
+ * NOTE:
67
+ *
68
+ * This file is automatically generated by Traduki 2.0.
69
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
70
+ */
71
+ export default _default;
@@ -0,0 +1,71 @@
1
+ declare const _default: {
2
+ 'fabric.linking.actions': string;
3
+ 'fabric.linking.add_account': string;
4
+ 'fabric.linking.cancel': string;
5
+ 'fabric.linking.cannot_connect': string;
6
+ 'fabric.linking.cannot_find_link': string;
7
+ 'fabric.linking.click_to_join': string;
8
+ 'fabric.linking.click_to_join_description': string;
9
+ 'fabric.linking.close': string;
10
+ 'fabric.linking.connect_account_description': string;
11
+ 'fabric.linking.connect_link_account': string;
12
+ 'fabric.linking.connect_link_account_card_view': string;
13
+ 'fabric.linking.connect_link_account_card_view_description': string;
14
+ 'fabric.linking.connect_link_account_card_view_name': string;
15
+ 'fabric.linking.connect_to': string;
16
+ 'fabric.linking.couldnt_load_link': string;
17
+ 'fabric.linking.create_on_absolute': string;
18
+ 'fabric.linking.create_on_relative': string;
19
+ 'fabric.linking.created_by': string;
20
+ 'fabric.linking.delete': string;
21
+ 'fabric.linking.download': string;
22
+ 'fabric.linking.edit': string;
23
+ 'fabric.linking.forbidden_access': string;
24
+ 'fabric.linking.forbidden_description': string;
25
+ 'fabric.linking.invalid_permissions': string;
26
+ 'fabric.linking.invalid_permissions_description': string;
27
+ 'fabric.linking.join_to_view': string;
28
+ 'fabric.linking.loading': string;
29
+ 'fabric.linking.modified_on_absolute': string;
30
+ 'fabric.linking.modified_on_relative': string;
31
+ 'fabric.linking.more_actions': string;
32
+ 'fabric.linking.not_found_description': string;
33
+ 'fabric.linking.not_found_title': string;
34
+ 'fabric.linking.pending_request': string;
35
+ 'fabric.linking.preview': string;
36
+ 'fabric.linking.priority_blocker': string;
37
+ 'fabric.linking.priority_critical': string;
38
+ 'fabric.linking.priority_high': string;
39
+ 'fabric.linking.priority_highest': string;
40
+ 'fabric.linking.priority_low': string;
41
+ 'fabric.linking.priority_lowest': string;
42
+ 'fabric.linking.priority_major': string;
43
+ 'fabric.linking.priority_medium': string;
44
+ 'fabric.linking.priority_minor': string;
45
+ 'fabric.linking.priority_trivial': string;
46
+ 'fabric.linking.priority_undefined': string;
47
+ 'fabric.linking.request_access': string;
48
+ 'fabric.linking.request_access_description': string;
49
+ 'fabric.linking.request_access_pending': string;
50
+ 'fabric.linking.request_access_pending_description': string;
51
+ 'fabric.linking.request_access_to_view': string;
52
+ 'fabric.linking.request_denied': string;
53
+ 'fabric.linking.request_denied_description': string;
54
+ 'fabric.linking.restricted_link': string;
55
+ 'fabric.linking.retry': string;
56
+ 'fabric.linking.save': string;
57
+ 'fabric.linking.srclink': string;
58
+ 'fabric.linking.srclinkunknown': string;
59
+ 'fabric.linking.try_again': string;
60
+ 'fabric.linking.try_another_account': string;
61
+ 'fabric.linking.unlink_account': string;
62
+ 'fabric.linking.updated_by': string;
63
+ 'fabric.linking.view': string;
64
+ };
65
+ /**
66
+ * NOTE:
67
+ *
68
+ * This file is automatically generated by Traduki 2.0.
69
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
70
+ */
71
+ export default _default;
@@ -0,0 +1 @@
1
+ export { InlineCardPageObject, BlockCardPageObject, EmbedCardPageObject, inlineSmartLinkRendersTestCase, blockSmartLinkRendersTestCase, embedSmartLinkRendersTestCase, } from './__tests_external__';
@@ -0,0 +1,22 @@
1
+ import { JsonLd } from 'json-ld-types';
2
+ export declare type ResolveResponse = JsonLd.Response;
3
+ export { SmartCardProvider as Provider, SmartCardContext, useSmartLinkAnalytics, } from './state';
4
+ export type { ProviderProps, CardType } from './state';
5
+ export { EditorCardProvider, editorCardProvider, } from '@atlaskit/link-provider';
6
+ export type { CardAdf, InlineCardAdf, BlockCardAdf, EmbedCardAdf, } from '@atlaskit/linking-common';
7
+ export { APIError } from '@atlaskit/linking-common';
8
+ export { CardClient as Client } from '@atlaskit/link-provider';
9
+ export { Card } from './view/Card';
10
+ export type { CardProps, CardAppearance, CardPlatform } from './view/Card';
11
+ export { SmartCardContext as Context } from '@atlaskit/link-provider';
12
+ export type { CardContext } from '@atlaskit/link-provider';
13
+ export { EmbedResizeMessageListener } from './view/EmbedCard/EmbedResizeMessageListener';
14
+ export { embedHeaderHeight } from './view/EmbedCard/components/styled';
15
+ export { SmartLinkEvents } from './utils/analytics/analytics';
16
+ export { useSmartLinkEvents } from './view/SmartLinkEvents/useSmartLinkEvents';
17
+ export { contentFooterClassName, metadataListClassName, blockCardResolvingViewClassName, blockCardResolvedViewClassName, blockCardForbiddenViewClassName, blockCardIconImageClassName, blockCardResolvedViewByClassName, blockCardForbiddenViewLinkClassName, blockCardContentClassName, blockCardContentHeaderClassName, blockCardContentHeaderNameClassName, blockCardNotFoundViewClassName, blockCardErroredViewClassName, } from './classNames';
18
+ export { loadingPlaceholderClassName } from './view/CardWithUrl/component-lazy/LazyFallback';
19
+ export { ActionName, ElementName, SmartLinkDirection, SmartLinkPosition, SmartLinkSize, SmartLinkTheme, } from './constants';
20
+ export { MetadataBlock, PreviewBlock, SnippetBlock, TitleBlock, FooterBlock, } from './view/FlexibleCard/components/blocks';
21
+ export type { ActionItem, ElementItem, OnActionMenuOpenChangeOptions, } from './view/FlexibleCard/components/blocks/types';
22
+ export type { AnalyticsAction, AnalyticsActionSubject, AnalyticsPayload, AnalyticsHandler, } from './utils/types';
@@ -0,0 +1,8 @@
1
+ import { MessageDescriptor } from 'react-intl-next';
2
+ export declare type RequestAccessMessageKey = 'click_to_join' | 'click_to_join_description' | 'forbidden_description' | 'request_access' | 'request_access_description' | 'request_access_pending' | 'request_access_pending_description' | 'request_denied_description';
3
+ export declare type MessageKey = 'cannot_find_link' | 'connect_link_account_card' | 'connect_link_account_card_name' | 'connect_link_account_card_description' | 'could_not_load_link' | 'download' | 'invalid_permissions' | 'invalid_permissions_description' | 'join_to_view' | 'connect_link_account' | 'created_by' | 'created_on_relative' | 'created_on_absolute' | 'delete' | 'edit' | 'loading' | 'modified_by' | 'modified_on_relative' | 'modified_on_absolute' | 'more_actions' | 'not_found_title' | 'not_found_description' | 'preview' | 'preview_close' | 'preview_max_size' | 'preview_min_size' | 'priority_blocker' | 'priority_critical' | 'priority_high' | 'priority_highest' | 'priority_low' | 'priority_lowest' | 'priority_major' | 'priority_medium' | 'priority_minor' | 'priority_trivial' | 'priority_undefined' | 'forbidden_access' | 'pending_request' | 'restricted_link' | 'request_access_to_view' | 'request_denied' | 'try_again' | 'try_another_account' | 'view' | 'viewIn' | 'viewOriginal' | 'actions' | 'add_account' | 'cancel' | 'close' | 'connect_to' | 'connect_account_description' | 'retry' | 'save' | 'unlink_account' | RequestAccessMessageKey;
4
+ declare type Messages = {
5
+ [K in MessageKey]: MessageDescriptor;
6
+ };
7
+ export declare const messages: Messages;
8
+ export {};
@@ -0,0 +1,3 @@
1
+ import { JsonLd } from 'json-ld-types';
2
+ import { InvokeClientOpts, InvokeServerOpts } from './invoke-opts';
3
+ export declare type InvokeHandler = (opts: InvokeClientOpts | InvokeServerOpts) => Promise<JsonLd.Response | void>;
@@ -0,0 +1,17 @@
1
+ import { InvokePayload, ServerActionOpts } from '@atlaskit/linking-common';
2
+ import { CardInnerAppearance } from '../view/Card/types';
3
+ export declare type InvokeType = 'server' | 'client';
4
+ export declare type InvokeOpts<T> = {
5
+ type: InvokeType;
6
+ source?: CardInnerAppearance;
7
+ } & InvokePayload<T>;
8
+ export declare type InvokeClientOpts = InvokeOpts<ClientActionOpts> & {
9
+ type: 'client';
10
+ };
11
+ export declare type InvokeServerOpts = InvokeOpts<ServerActionOpts> & {
12
+ type: 'server';
13
+ };
14
+ export interface ClientActionOpts {
15
+ type: string;
16
+ promise: () => Promise<void>;
17
+ }
@@ -0,0 +1,6 @@
1
+ import { FC } from 'react';
2
+ import type { CardProps } from './types';
3
+ export declare type CardSSRProps = CardProps & {
4
+ url: string;
5
+ };
6
+ export declare const CardSSR: FC<CardSSRProps>;
@@ -0,0 +1,6 @@
1
+ export declare const ANALYTICS_RESOLVING = "resolving";
2
+ export declare const ANALYTICS_ERROR = "errored";
3
+ export declare const ANALYTICS_FALLBACK = "fallback";
4
+ export declare const ERROR_MESSAGE_OAUTH = "Provider.authFlow is not set to OAuth2.";
5
+ export declare const ERROR_MESSAGE_FATAL = "Fatal error resolving URL";
6
+ export declare const ERROR_MESSAGE_METADATA = "Error resolving metadata.";
@@ -0,0 +1,12 @@
1
+ import { JsonLd } from 'json-ld-types';
2
+ import { CardAppearance } from '../../view/Card';
3
+ import { InvokeServerOpts, InvokeClientOpts } from '../../model/invoke-opts';
4
+ import { AnalyticsFacade } from '../analytics';
5
+ import { CardInnerAppearance } from '../../view/Card/types';
6
+ export declare const useSmartCardActions: (id: string, url: string, analytics: AnalyticsFacade) => {
7
+ register: () => Promise<void>;
8
+ reload: () => void;
9
+ authorize: (appearance: CardAppearance) => void;
10
+ invoke: (opts: InvokeClientOpts | InvokeServerOpts, appearance: CardInnerAppearance) => Promise<JsonLd.Response | void>;
11
+ loadMetadata: () => Promise<void> | undefined;
12
+ };
@@ -0,0 +1,2 @@
1
+ import { CardActionType } from '@atlaskit/linking-common';
2
+ export type { CardActionType };
@@ -0,0 +1,3 @@
1
+ export { startUfoExperience, succeedUfoExperience, failUfoExperience, addMetadataToExperience, } from './ufoExperiences';
2
+ export { useSmartLinkAnalytics } from './useSmartLinkAnalytics';
3
+ export type { AnalyticsFacade } from './useSmartLinkAnalytics';
@@ -0,0 +1,9 @@
1
+ import { DestinationSubproduct, DestinationProduct } from '../../utils/analytics/types';
2
+ export interface CommonEventProps {
3
+ definitionId?: string;
4
+ extensionKey?: string;
5
+ resourceType?: string;
6
+ destinationSubproduct?: DestinationSubproduct | string;
7
+ destinationProduct?: DestinationProduct | string;
8
+ location?: string;
9
+ }
@@ -0,0 +1,7 @@
1
+ import { CustomData } from '@atlaskit/ufo';
2
+ declare type UfoExperienceName = 'smart-link-rendered' | 'smart-link-authenticated' | 'smart-link-action-invocation';
3
+ export declare const startUfoExperience: (experienceName: UfoExperienceName, id: string, properties?: CustomData | undefined) => void;
4
+ export declare const succeedUfoExperience: (experienceName: UfoExperienceName, id: string, properties?: CustomData | undefined) => void;
5
+ export declare const failUfoExperience: (experienceName: UfoExperienceName, id: string, properties?: CustomData | undefined) => void;
6
+ export declare const addMetadataToExperience: (experienceName: UfoExperienceName, id: string, properties: CustomData) => void;
7
+ export {};
@@ -0,0 +1,195 @@
1
+ import { AnalyticsHandler, AnalyticsName, AnalyticsPayload } from '../../utils/types';
2
+ import { ConnectFailedEventProps, ConnectSucceededEventProps, InstrumentEventProps, InvokeFailedEventProps, InvokeSucceededEventProps, ScreenAuthPopupEventProps, TrackAppAccountConnectedProps, UiActionClickedEventProps, UiAuthAlternateAccountEventProps, UiAuthEventProps, UiCardClickedEventProps, UiClosedAuthEventProps, UiHoverCardDismissedEventProps, UiHoverCardOpenLinkClickedEventProps, UiHoverCardViewedEventProps, UiRenderFailedEventProps, UiRenderSuccessEventProps } from '../../utils/analytics/types';
3
+ /**
4
+ * This hook provides usage of Smart Link analytics outside of the Card component.
5
+ * Can be provided to Card via the analyticsEvents prop to change the analytics events.
6
+ * @param url URL of the link
7
+ * @param dispatchAnalytics dispatchAnalytics function
8
+ * @param id fallback id of the events sent if no id is available
9
+ * @param defaultLocation location attribute to be used
10
+ * @returns
11
+ */
12
+ export declare const useSmartLinkAnalytics: (url: string, dispatchAnalytics: AnalyticsHandler, id?: string | undefined, defaultLocation?: string | undefined) => {
13
+ ui: {
14
+ /**
15
+ * This fires an event that represents when a user clicks on the authentication
16
+ * call to action with no current authenticated account. (i.e. Connect to Preview).
17
+ * @param display Whether the card was an Inline, Block, Embed or Flexible UI.
18
+ * @param definitionId The definitionId of the Smart Link resolver invoked.
19
+ * @param extensionKey The extensionKey of the Smart Link resovler invoked.
20
+ * @returns
21
+ */
22
+ authEvent: ({ display, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: UiAuthEventProps) => void;
23
+ /**
24
+ * This fires an event that represents when a user clicks on the authentication
25
+ * call to action with a forbidden authenticated account. (i.e. Try another account).
26
+ * @param display Whether the card was an Inline, Block, Embed or Flexible UI.
27
+ * @param definitionId The definitionId of the Smart Link resolver invoked.
28
+ * @param extensionKey The extensionKey of the Smart Link resovler invoked.
29
+ * @returns
30
+ */
31
+ authAlternateAccountEvent: ({ display, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: UiAuthAlternateAccountEventProps) => void;
32
+ /**
33
+ * This fires an event that represents when a user
34
+ * click a button.
35
+ * @param data A partial analytics event payload
36
+ */
37
+ buttonClickedEvent: (data: Partial<AnalyticsPayload> & {
38
+ actionSubjectId: Required<string>;
39
+ }) => void;
40
+ /**
41
+ * This fires an event that represents when a user clicks on a Smart Link.
42
+ * @param id The unique ID for this Smart Link.
43
+ * @param display Whether the card was an Inline, Block, Embed or Flexible UI.
44
+ * @param status What status the Smart Link is currently in (e.g. resolved, unresolved)
45
+ * @param definitionId The definitionId of the Smart Link resolver invoked.
46
+ * @param extensionKey The extensionKey of the Smart Link resovler invoked.
47
+ * @param isModifierKeyPressed Whether a modifier key was pressed when clicking the Smart Link.
48
+ * @param location Where the Smart Link is currently rendered.
49
+ * @param destinationProduct The product the Smart Link is linked to.
50
+ * @returns
51
+ */
52
+ cardClickedEvent: ({ id, display, status, definitionId, extensionKey, isModifierKeyPressed, location, destinationProduct, destinationSubproduct, actionSubjectId, }: UiCardClickedEventProps) => void;
53
+ /**
54
+ * This fires an event that represents when a user clicks on a Smart Link action.
55
+ * Note: This also starts the UFO smart-link-action-invocation experience.
56
+ * @param id The unique ID for this Smart Link.
57
+ * @param extensionKey The extensionKey of the Smart Link resovler invoked.
58
+ * @param actionType The type of the action that was clicked, e.g. PreviewAction
59
+ * @param display Whether the card was an Inline, Block, Embed or Flexible UI.
60
+ * @param invokeType Whether the action invoked made a call to a server.
61
+ * @returns
62
+ */
63
+ actionClickedEvent: ({ id, actionType, display, invokeType, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: UiActionClickedEventProps) => void;
64
+ /**
65
+ * This fires an event that represents when a user clicks on a hover preview's "navigate to link" button.
66
+ * https://product-fabric.atlassian.net/wiki/spaces/EM/pages/3206743323/Analytics+Metrics+-+Hover+Previews
67
+ * @param previewDisplay What format the preview is in.
68
+ * @param definitionId The definitionId of the Smart Link resolver invoked.
69
+ * @param extensionKey The extensionKey of the Smart Link resovler invoked.
70
+ * @param previewInvokeMethod How the preview was triggered.
71
+ */
72
+ hoverCardOpenLinkClickedEvent: ({ previewDisplay, definitionId, extensionKey, destinationProduct, destinationSubproduct, location, previewInvokeMethod, }: UiHoverCardOpenLinkClickedEventProps) => void;
73
+ /**
74
+ * This fires an event that represents when a user closed the authentication window without authenticating after opening it.
75
+ * @param display Whether the card was an Inline, Block, Embed or Flexible UI.
76
+ * @param definitionId The definitionId of the Smart Link resolver invoked.
77
+ * @param extensionKey The extensionKey of the Smart Link resovler invoked.
78
+ * @returns
79
+ */
80
+ closedAuthEvent: ({ display, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: UiClosedAuthEventProps) => void;
81
+ /**
82
+ * This fires an event that represents when a user close a modal.
83
+ * @param data A partial analytics event payload
84
+ */
85
+ modalClosedEvent: (data: Partial<AnalyticsPayload> & {
86
+ actionSubjectId: Required<string>;
87
+ }) => void;
88
+ /**
89
+ * This fires an event that represents when a Smart Link was rendered successfully.
90
+ * Note: this fires even if the Smart Link request errored out.
91
+ * @param display Whether the card was an Inline, Block, Embed or Flexible UI.
92
+ * @param id The unique ID for this Smart Link.
93
+ * @param definitionId The definitionId of the Smart Link resolver invoked.
94
+ * @param extensionKey The extensionKey of the Smart Link resovler invoked.
95
+ */
96
+ renderSuccessEvent: ({ display, status, id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: UiRenderSuccessEventProps) => void;
97
+ /**
98
+ * This fires an event that represents when a Smart Link renders unsuccessfuly.
99
+ * @param display Whether the card was an Inline, Block, Embed or Flexible UI.
100
+ * @param id The unique ID for this Smart Link.
101
+ * @param error: An error representing why the Smart Link render failed.
102
+ * @param errorInfo: Additional details about the error including the stack trace.
103
+ */
104
+ renderFailedEvent: ({ display, id, error, errorInfo, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: UiRenderFailedEventProps) => void;
105
+ /**
106
+ * This fires an event that represents a hover preview being opened.
107
+ * @param hoverDisplay Whether the hover preview was displayed as a card or embed.
108
+ * @param definitionId The definitionId of the Smart Link resolver invoked.
109
+ * @param extensionKey The extensionKey of the Smart Link resovler invoked.
110
+ * @param previewInvokeMethod How the preview was triggered.
111
+ * @returns
112
+ */
113
+ hoverCardViewedEvent: ({ previewDisplay, previewInvokeMethod, id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: UiHoverCardViewedEventProps) => void;
114
+ /**
115
+ * This fires an event that represents a hover preview being dismissed.
116
+ * @param hoverDisplay Whether the hover preview was displayed as a card or embed.
117
+ * @param hoverTime The duration that the user hovered over a Smart Link before the preview was dismissed.
118
+ * @param definitionId The definitionId of the Smart Link resolver invoked.
119
+ * @param extensionKey The extensionKey of the Smart Link resovler invoked.
120
+ * @param previewInvokeMethod How the preview was triggered.
121
+ * @returns
122
+ */
123
+ hoverCardDismissedEvent: ({ id, previewDisplay, hoverTime, previewInvokeMethod, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: UiHoverCardDismissedEventProps) => void;
124
+ };
125
+ operational: {
126
+ /**
127
+ * This fires an event that represents an action being successfully invoked.
128
+ * @param id The unique ID for this Smart Link.
129
+ * @param extensionKey The extensionKey of the Smart Link resovler invoked.
130
+ * @param actionType The type of action invoked, e.g. PreviewAction
131
+ * @param display Whether the card was an Inline, Block, Embed or Flexible UI.
132
+ */
133
+ invokeSucceededEvent: ({ id, actionType, display, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: InvokeSucceededEventProps) => void;
134
+ /**
135
+ * This fires an event that represents an action being unsuccessfully invoked.
136
+ * @param id The unique ID for this Smart Link.
137
+ * @param extensionKey The extensionKey of the Smart Link resovler invoked.
138
+ * @param actionType The type of action invoked, e.g. PreviewAction
139
+ * @param display Whether the card was an Inline, Block, Embed or Flexible UI.
140
+ * @param reason The reason the invocation failed.
141
+ */
142
+ invokeFailedEvent: ({ id, actionType, display, reason, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: InvokeFailedEventProps) => void;
143
+ /**
144
+ * This fires an event that represents an account successfully being connected via a Smart Link.
145
+ * @param id The unique ID for this Smart Link.
146
+ * @param definitionId The definitionId of the Smart Link resolver invoked.
147
+ * @param extensionKey The extensionKey of the Smart Link resovler invoked.
148
+ */
149
+ connectSucceededEvent: ({ id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: ConnectSucceededEventProps) => void;
150
+ /**
151
+ * This fires an event that represents an account unsuccessfully being connected.
152
+ * @param id The unique ID for this Smart Link.
153
+ * @param definitionId The definitionId of the Smart Link resolver invoked.
154
+ * @param extensionKey The extensionKey of the Smart Link resovler invoked.
155
+ * @param reason The reason why the Smart Link connect account failed.
156
+ */
157
+ connectFailedEvent: ({ id, reason, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: ConnectFailedEventProps) => void;
158
+ /**
159
+ * This fires an event which represents a Smart Link request succeeding or failing based on the status.
160
+ * @param id The unique ID for this Smart Link.
161
+ * @param status The status of the Smart Link.
162
+ * @param definitionId The definitionId of the Smart Link resolver invoked.
163
+ * @param extensionKey The extensionKey of the Smart Link resovler invoked.
164
+ * @param resourceType The type of resource that was invoked. This is provider specific (e.g. File, PullRequest).
165
+ * @param error An error representing why the Smart Link request failed.
166
+ */
167
+ instrument: ({ id, status, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, error, }: InstrumentEventProps) => void;
168
+ };
169
+ track: {
170
+ /**
171
+ * This fires an event which represents a user starting the Smart Link connect account process.
172
+ * @param definitionId The definitionId of the Smart Link resolver invoked.
173
+ * @param extensionKey The extensionKey of the Smart Link resovler invoked.
174
+ * @returns
175
+ */
176
+ appAccountConnected: ({ extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: TrackAppAccountConnectedProps) => void;
177
+ };
178
+ screen: {
179
+ /**
180
+ * This fires an event which represents the connect account page being opened.
181
+ * @param definitionId The definitionId of the Smart Link resolver invoked.
182
+ * @param extensionKey The extensionKey of the Smart Link resovler invoked.
183
+ * @returns
184
+ */
185
+ authPopupEvent: ({ extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: ScreenAuthPopupEventProps) => void;
186
+ /**
187
+ * This fires an event that represents when a user view a modal.
188
+ * @param data A partial analytics event payload
189
+ */
190
+ modalViewedEvent: (data: Partial<AnalyticsPayload> & {
191
+ name: Extract<AnalyticsName, 'embedPreviewModal'>;
192
+ }) => void;
193
+ };
194
+ };
195
+ export declare type AnalyticsFacade = ReturnType<typeof useSmartLinkAnalytics>;
@@ -0,0 +1,2 @@
1
+ import { CardContext } from '@atlaskit/link-provider';
2
+ export declare const useSmartLinkConfig: () => CardContext['config'] | undefined;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { FlexibleUiDataContext } from './types';
3
+ /**
4
+ * This provides the data that will be used by Smart Links Flexible UI to populate it's
5
+ * underlying elements.
6
+ */
7
+ export declare const FlexibleUiContext: import("react").Context<FlexibleUiDataContext | undefined>;
8
+ export declare const useFlexibleUiContext: () => FlexibleUiDataContext | undefined;