@atlaskit/smart-card 23.2.0 → 23.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 (344) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/cjs/constants.js +4 -2
  3. package/dist/cjs/messages.js +15 -0
  4. package/dist/cjs/version.json +1 -1
  5. package/dist/cjs/view/{BlockCard/utils → EmbedCard}/constants.js +4 -4
  6. package/dist/cjs/view/EmbedCard/views/ForbiddenView.js +1 -1
  7. package/dist/cjs/view/EmbedCard/views/NotFoundView.js +1 -1
  8. package/dist/cjs/view/EmbedCard/views/UnauthorisedView.js +23 -5
  9. package/dist/cjs/view/EmbedCard/views/UnresolvedView.js +9 -5
  10. package/dist/cjs/view/FlexibleCard/components/blocks/title-block/index.js +6 -1
  11. package/dist/es2019/constants.js +2 -0
  12. package/dist/es2019/messages.js +15 -0
  13. package/dist/es2019/version.json +1 -1
  14. package/dist/es2019/view/{BlockCard/utils → EmbedCard}/constants.js +2 -2
  15. package/dist/es2019/view/EmbedCard/views/ForbiddenView.js +1 -1
  16. package/dist/es2019/view/EmbedCard/views/NotFoundView.js +1 -1
  17. package/dist/es2019/view/EmbedCard/views/UnauthorisedView.js +19 -5
  18. package/dist/es2019/view/EmbedCard/views/UnresolvedView.js +9 -5
  19. package/dist/es2019/view/FlexibleCard/components/blocks/title-block/index.js +5 -0
  20. package/dist/esm/constants.js +2 -0
  21. package/dist/esm/messages.js +15 -0
  22. package/dist/esm/version.json +1 -1
  23. package/dist/esm/view/{BlockCard/utils → EmbedCard}/constants.js +2 -2
  24. package/dist/esm/view/EmbedCard/views/ForbiddenView.js +1 -1
  25. package/dist/esm/view/EmbedCard/views/NotFoundView.js +1 -1
  26. package/dist/esm/view/EmbedCard/views/UnauthorisedView.js +19 -5
  27. package/dist/esm/view/EmbedCard/views/UnresolvedView.js +9 -5
  28. package/dist/esm/view/FlexibleCard/components/blocks/title-block/index.js +6 -1
  29. package/dist/types/constants.d.ts +1 -0
  30. package/dist/types/messages.d.ts +1 -1
  31. package/dist/types/view/{BlockCard/utils → EmbedCard}/constants.d.ts +1 -1
  32. package/dist/types/view/EmbedCard/types.d.ts +1 -0
  33. package/dist/types/view/FlexibleCard/components/blocks/title-block/types.d.ts +6 -0
  34. package/package.json +2 -10
  35. package/report.api.md +1 -0
  36. package/tmp/api-report-tmp.d.ts +1 -0
  37. package/dist/types-ts4.0/__fixtures__/flexible-ui-data-context.d.ts +0 -3
  38. package/dist/types-ts4.0/__tests_external__/index.d.ts +0 -6
  39. package/dist/types-ts4.0/__tests_external__/page-objects/BaseCard.d.ts +0 -16
  40. package/dist/types-ts4.0/__tests_external__/page-objects/BlockCard.d.ts +0 -6
  41. package/dist/types-ts4.0/__tests_external__/page-objects/EmbedCard.d.ts +0 -6
  42. package/dist/types-ts4.0/__tests_external__/page-objects/InlineCard.d.ts +0 -6
  43. package/dist/types-ts4.0/__tests_external__/test-cases/card.d.ts +0 -3
  44. package/dist/types-ts4.0/__tests_external__/test-cases/embed.d.ts +0 -3
  45. package/dist/types-ts4.0/__tests_external__/test-cases/inline.d.ts +0 -3
  46. package/dist/types-ts4.0/__tests_external__/test-cases/types.d.ts +0 -5
  47. package/dist/types-ts4.0/classNames.d.ts +0 -11
  48. package/dist/types-ts4.0/client/index.d.ts +0 -1
  49. package/dist/types-ts4.0/constants.d.ts +0 -187
  50. package/dist/types-ts4.0/extractors/block/index.d.ts +0 -9
  51. package/dist/types-ts4.0/extractors/block/types.d.ts +0 -12
  52. package/dist/types-ts4.0/extractors/common/__mocks__/jsonld.d.ts +0 -234
  53. package/dist/types-ts4.0/extractors/common/__mocks__/render.d.ts +0 -2
  54. package/dist/types-ts4.0/extractors/common/actions/extractActions.d.ts +0 -4
  55. package/dist/types-ts4.0/extractors/common/actions/extractPreviewAction.d.ts +0 -9
  56. package/dist/types-ts4.0/extractors/common/byline/extractByline.d.ts +0 -3
  57. package/dist/types-ts4.0/extractors/common/context/extractAccessContext.d.ts +0 -7
  58. package/dist/types-ts4.0/extractors/common/context/index.d.ts +0 -1
  59. package/dist/types-ts4.0/extractors/common/detail/extractAttachmentCount.d.ts +0 -4
  60. package/dist/types-ts4.0/extractors/common/detail/extractCommentCount.d.ts +0 -4
  61. package/dist/types-ts4.0/extractors/common/detail/extractDownloadUrl.d.ts +0 -2
  62. package/dist/types-ts4.0/extractors/common/detail/extractProgrammingLanguage.d.ts +0 -4
  63. package/dist/types-ts4.0/extractors/common/detail/extractSubscriberCount.d.ts +0 -4
  64. package/dist/types-ts4.0/extractors/common/detail/index.d.ts +0 -9
  65. package/dist/types-ts4.0/extractors/common/detail/types.d.ts +0 -5
  66. package/dist/types-ts4.0/extractors/common/icon/extractFileFormat.d.ts +0 -2
  67. package/dist/types-ts4.0/extractors/common/icon/extractIcon.d.ts +0 -14
  68. package/dist/types-ts4.0/extractors/common/icon/extractIconFromDocument.d.ts +0 -4
  69. package/dist/types-ts4.0/extractors/common/icon/extractIconFromTask.d.ts +0 -3
  70. package/dist/types-ts4.0/extractors/common/icon/index.d.ts +0 -4
  71. package/dist/types-ts4.0/extractors/common/icon/priority.d.ts +0 -4
  72. package/dist/types-ts4.0/extractors/common/lozenge/extractLozenge.d.ts +0 -3
  73. package/dist/types-ts4.0/extractors/common/lozenge/extractState.d.ts +0 -3
  74. package/dist/types-ts4.0/extractors/common/lozenge/extractTag.d.ts +0 -3
  75. package/dist/types-ts4.0/extractors/common/lozenge/extractTaskStatus.d.ts +0 -3
  76. package/dist/types-ts4.0/extractors/common/lozenge/extractTaskType.d.ts +0 -7
  77. package/dist/types-ts4.0/extractors/common/lozenge/index.d.ts +0 -5
  78. package/dist/types-ts4.0/extractors/common/lozenge/types.d.ts +0 -8
  79. package/dist/types-ts4.0/extractors/common/lozenge/utils.d.ts +0 -4
  80. package/dist/types-ts4.0/extractors/common/meta/extractIsTrusted.d.ts +0 -2
  81. package/dist/types-ts4.0/extractors/common/primitives/extractSummary.d.ts +0 -2
  82. package/dist/types-ts4.0/extractors/common/primitives/extractTitleTextColor.d.ts +0 -2
  83. package/dist/types-ts4.0/extractors/common/primitives/extractVisitUrl.d.ts +0 -2
  84. package/dist/types-ts4.0/extractors/common/primitives/index.d.ts +0 -2
  85. package/dist/types-ts4.0/extractors/common/title-prefix/extractTitlePrefix.d.ts +0 -5
  86. package/dist/types-ts4.0/extractors/common/title-prefix/index.d.ts +0 -1
  87. package/dist/types-ts4.0/extractors/constants.d.ts +0 -12
  88. package/dist/types-ts4.0/extractors/embed/index.d.ts +0 -3
  89. package/dist/types-ts4.0/extractors/flexible/collaboratorGroup/index.d.ts +0 -4
  90. package/dist/types-ts4.0/extractors/flexible/extract-preview.d.ts +0 -4
  91. package/dist/types-ts4.0/extractors/flexible/extract-priority.d.ts +0 -4
  92. package/dist/types-ts4.0/extractors/flexible/icon/extract-document-type-icon.d.ts +0 -3
  93. package/dist/types-ts4.0/extractors/flexible/icon/extract-file-formatIcon.d.ts +0 -3
  94. package/dist/types-ts4.0/extractors/flexible/icon/extract-icon-renderer.d.ts +0 -4
  95. package/dist/types-ts4.0/extractors/flexible/icon/extract-jira-task-icon.d.ts +0 -3
  96. package/dist/types-ts4.0/extractors/flexible/icon/extract-jsonld-data-icon.d.ts +0 -4
  97. package/dist/types-ts4.0/extractors/flexible/icon/extract-provider-icon.d.ts +0 -4
  98. package/dist/types-ts4.0/extractors/flexible/icon/extract-url-icon.d.ts +0 -4
  99. package/dist/types-ts4.0/extractors/flexible/icon/index.d.ts +0 -17
  100. package/dist/types-ts4.0/extractors/flexible/icon/types.d.ts +0 -6
  101. package/dist/types-ts4.0/extractors/flexible/index.d.ts +0 -5
  102. package/dist/types-ts4.0/extractors/flexible/latest-commit/index.d.ts +0 -2
  103. package/dist/types-ts4.0/extractors/flexible/utils.d.ts +0 -13
  104. package/dist/types-ts4.0/extractors/hover/extractMetadata.d.ts +0 -3
  105. package/dist/types-ts4.0/extractors/index.d.ts +0 -14
  106. package/dist/types-ts4.0/extractors/inline/index.d.ts +0 -6
  107. package/dist/types-ts4.0/hooks.d.ts +0 -2
  108. package/dist/types-ts4.0/i18n/cs.d.ts +0 -71
  109. package/dist/types-ts4.0/i18n/da.d.ts +0 -71
  110. package/dist/types-ts4.0/i18n/de.d.ts +0 -71
  111. package/dist/types-ts4.0/i18n/en.d.ts +0 -71
  112. package/dist/types-ts4.0/i18n/en_GB.d.ts +0 -71
  113. package/dist/types-ts4.0/i18n/en_ZZ.d.ts +0 -38
  114. package/dist/types-ts4.0/i18n/es.d.ts +0 -71
  115. package/dist/types-ts4.0/i18n/et.d.ts +0 -94
  116. package/dist/types-ts4.0/i18n/fi.d.ts +0 -71
  117. package/dist/types-ts4.0/i18n/fr.d.ts +0 -71
  118. package/dist/types-ts4.0/i18n/hu.d.ts +0 -71
  119. package/dist/types-ts4.0/i18n/index.d.ts +0 -35
  120. package/dist/types-ts4.0/i18n/is.d.ts +0 -70
  121. package/dist/types-ts4.0/i18n/it.d.ts +0 -71
  122. package/dist/types-ts4.0/i18n/ja.d.ts +0 -71
  123. package/dist/types-ts4.0/i18n/ko.d.ts +0 -71
  124. package/dist/types-ts4.0/i18n/languages.d.ts +0 -27
  125. package/dist/types-ts4.0/i18n/nb.d.ts +0 -71
  126. package/dist/types-ts4.0/i18n/nl.d.ts +0 -71
  127. package/dist/types-ts4.0/i18n/pl.d.ts +0 -71
  128. package/dist/types-ts4.0/i18n/pt_BR.d.ts +0 -71
  129. package/dist/types-ts4.0/i18n/pt_PT.d.ts +0 -94
  130. package/dist/types-ts4.0/i18n/ro.d.ts +0 -70
  131. package/dist/types-ts4.0/i18n/ru.d.ts +0 -71
  132. package/dist/types-ts4.0/i18n/sk.d.ts +0 -94
  133. package/dist/types-ts4.0/i18n/sv.d.ts +0 -71
  134. package/dist/types-ts4.0/i18n/th.d.ts +0 -71
  135. package/dist/types-ts4.0/i18n/tr.d.ts +0 -71
  136. package/dist/types-ts4.0/i18n/uk.d.ts +0 -71
  137. package/dist/types-ts4.0/i18n/vi.d.ts +0 -71
  138. package/dist/types-ts4.0/i18n/zh.d.ts +0 -71
  139. package/dist/types-ts4.0/i18n/zh_TW.d.ts +0 -71
  140. package/dist/types-ts4.0/in-product.d.ts +0 -1
  141. package/dist/types-ts4.0/index.d.ts +0 -22
  142. package/dist/types-ts4.0/messages.d.ts +0 -8
  143. package/dist/types-ts4.0/model/invoke-handler.d.ts +0 -3
  144. package/dist/types-ts4.0/model/invoke-opts.d.ts +0 -17
  145. package/dist/types-ts4.0/ssr.d.ts +0 -6
  146. package/dist/types-ts4.0/state/actions/constants.d.ts +0 -6
  147. package/dist/types-ts4.0/state/actions/index.d.ts +0 -12
  148. package/dist/types-ts4.0/state/actions/types.d.ts +0 -2
  149. package/dist/types-ts4.0/state/analytics/index.d.ts +0 -3
  150. package/dist/types-ts4.0/state/analytics/types.d.ts +0 -9
  151. package/dist/types-ts4.0/state/analytics/ufoExperiences.d.ts +0 -7
  152. package/dist/types-ts4.0/state/analytics/useSmartLinkAnalytics.d.ts +0 -195
  153. package/dist/types-ts4.0/state/config/index.d.ts +0 -2
  154. package/dist/types-ts4.0/state/flexible-ui-context/index.d.ts +0 -8
  155. package/dist/types-ts4.0/state/flexible-ui-context/types.d.ts +0 -165
  156. package/dist/types-ts4.0/state/helpers.d.ts +0 -16
  157. package/dist/types-ts4.0/state/hooks/index.d.ts +0 -2
  158. package/dist/types-ts4.0/state/hooks/usePrefetch.d.ts +0 -1
  159. package/dist/types-ts4.0/state/hooks/useSmartLink.d.ts +0 -50
  160. package/dist/types-ts4.0/state/hooks-external/useSmartLinkActions.d.ts +0 -49
  161. package/dist/types-ts4.0/state/hooks-external/useSmartLinkReload.d.ts +0 -19
  162. package/dist/types-ts4.0/state/index.d.ts +0 -5
  163. package/dist/types-ts4.0/state/reducers/types.d.ts +0 -4
  164. package/dist/types-ts4.0/state/renderers/index.d.ts +0 -2
  165. package/dist/types-ts4.0/state/store/index.d.ts +0 -3
  166. package/dist/types-ts4.0/state/types.d.ts +0 -1
  167. package/dist/types-ts4.0/types.d.ts +0 -20
  168. package/dist/types-ts4.0/utils/analytics/__mocks__/analytics.d.ts +0 -2
  169. package/dist/types-ts4.0/utils/analytics/analytics.d.ts +0 -32
  170. package/dist/types-ts4.0/utils/analytics/index.d.ts +0 -4
  171. package/dist/types-ts4.0/utils/analytics/types.d.ts +0 -93
  172. package/dist/types-ts4.0/utils/flexible.d.ts +0 -5
  173. package/dist/types-ts4.0/utils/index.d.ts +0 -12
  174. package/dist/types-ts4.0/utils/jsonld.d.ts +0 -3
  175. package/dist/types-ts4.0/utils/mocks.d.ts +0 -75
  176. package/dist/types-ts4.0/utils/performance.d.ts +0 -8
  177. package/dist/types-ts4.0/utils/test-utils.d.ts +0 -4
  178. package/dist/types-ts4.0/utils/token.d.ts +0 -16
  179. package/dist/types-ts4.0/utils/types.d.ts +0 -14
  180. package/dist/types-ts4.0/view/BlockCard/actions/AuthorizeAction.d.ts +0 -2
  181. package/dist/types-ts4.0/view/BlockCard/actions/DownloadAction.d.ts +0 -8
  182. package/dist/types-ts4.0/view/BlockCard/actions/ForbiddenAction.d.ts +0 -2
  183. package/dist/types-ts4.0/view/BlockCard/actions/PreviewAction.d.ts +0 -30
  184. package/dist/types-ts4.0/view/BlockCard/actions/RetryAction.d.ts +0 -2
  185. package/dist/types-ts4.0/view/BlockCard/actions/ViewAction.d.ts +0 -8
  186. package/dist/types-ts4.0/view/BlockCard/components/Action.d.ts +0 -13
  187. package/dist/types-ts4.0/view/BlockCard/components/ActionIcon.d.ts +0 -12
  188. package/dist/types-ts4.0/view/BlockCard/components/ActionList.d.ts +0 -7
  189. package/dist/types-ts4.0/view/BlockCard/components/CollaboratorList.d.ts +0 -15
  190. package/dist/types-ts4.0/view/BlockCard/components/Content.d.ts +0 -9
  191. package/dist/types-ts4.0/view/BlockCard/components/ContentFooter.d.ts +0 -9
  192. package/dist/types-ts4.0/view/BlockCard/components/ContentHeader.d.ts +0 -10
  193. package/dist/types-ts4.0/view/BlockCard/components/Emoji.d.ts +0 -7
  194. package/dist/types-ts4.0/view/BlockCard/components/Frame.d.ts +0 -16
  195. package/dist/types-ts4.0/view/BlockCard/components/Link.d.ts +0 -8
  196. package/dist/types-ts4.0/view/BlockCard/components/Name.d.ts +0 -12
  197. package/dist/types-ts4.0/view/BlockCard/components/Provider.d.ts +0 -8
  198. package/dist/types-ts4.0/view/BlockCard/components/Thumbnail.d.ts +0 -10
  199. package/dist/types-ts4.0/view/BlockCard/components/UnresolvedText.d.ts +0 -8
  200. package/dist/types-ts4.0/view/BlockCard/index.d.ts +0 -14
  201. package/dist/types-ts4.0/view/BlockCard/types.d.ts +0 -25
  202. package/dist/types-ts4.0/view/BlockCard/utils/constants.d.ts +0 -3
  203. package/dist/types-ts4.0/view/BlockCard/utils/handlers.d.ts +0 -2
  204. package/dist/types-ts4.0/view/BlockCard/views/ErroredView.d.ts +0 -14
  205. package/dist/types-ts4.0/view/BlockCard/views/ForbiddenView.d.ts +0 -23
  206. package/dist/types-ts4.0/view/BlockCard/views/NotFoundView.d.ts +0 -17
  207. package/dist/types-ts4.0/view/BlockCard/views/ResolvedView.d.ts +0 -34
  208. package/dist/types-ts4.0/view/BlockCard/views/ResolvingView.d.ts +0 -9
  209. package/dist/types-ts4.0/view/BlockCard/views/UnauthorizedView.d.ts +0 -19
  210. package/dist/types-ts4.0/view/Card/index.d.ts +0 -5
  211. package/dist/types-ts4.0/view/Card/types.d.ts +0 -37
  212. package/dist/types-ts4.0/view/CardWithData/component.d.ts +0 -5
  213. package/dist/types-ts4.0/view/CardWithData/loader.d.ts +0 -9
  214. package/dist/types-ts4.0/view/CardWithData/types.d.ts +0 -15
  215. package/dist/types-ts4.0/view/CardWithUrl/component-lazy/LazyFallback.d.ts +0 -4
  216. package/dist/types-ts4.0/view/CardWithUrl/component-lazy/LazyIntersectionObserverCard.d.ts +0 -3
  217. package/dist/types-ts4.0/view/CardWithUrl/component-lazy/LazyLazilyRenderCard.d.ts +0 -3
  218. package/dist/types-ts4.0/view/CardWithUrl/component-lazy/index.d.ts +0 -3
  219. package/dist/types-ts4.0/view/CardWithUrl/component.d.ts +0 -3
  220. package/dist/types-ts4.0/view/CardWithUrl/loader.d.ts +0 -3
  221. package/dist/types-ts4.0/view/CardWithUrl/types.d.ts +0 -29
  222. package/dist/types-ts4.0/view/EmbedCard/EmbedResizeMessageListener.d.ts +0 -15
  223. package/dist/types-ts4.0/view/EmbedCard/components/ExpandedFrame.d.ts +0 -23
  224. package/dist/types-ts4.0/view/EmbedCard/components/Frame.d.ts +0 -7
  225. package/dist/types-ts4.0/view/EmbedCard/components/ImageIcon.d.ts +0 -9
  226. package/dist/types-ts4.0/view/EmbedCard/components/styled.d.ts +0 -45
  227. package/dist/types-ts4.0/view/EmbedCard/index.d.ts +0 -3
  228. package/dist/types-ts4.0/view/EmbedCard/types.d.ts +0 -46
  229. package/dist/types-ts4.0/view/EmbedCard/views/ErroredView.d.ts +0 -9
  230. package/dist/types-ts4.0/view/EmbedCard/views/ForbiddenView.d.ts +0 -13
  231. package/dist/types-ts4.0/view/EmbedCard/views/NotFoundView.d.ts +0 -11
  232. package/dist/types-ts4.0/view/EmbedCard/views/ResolvedView.d.ts +0 -27
  233. package/dist/types-ts4.0/view/EmbedCard/views/UnauthorisedView.d.ts +0 -12
  234. package/dist/types-ts4.0/view/EmbedCard/views/UnresolvedView.d.ts +0 -18
  235. package/dist/types-ts4.0/view/EmbedModal/components/analytics/index.d.ts +0 -5
  236. package/dist/types-ts4.0/view/EmbedModal/components/analytics/types.d.ts +0 -6
  237. package/dist/types-ts4.0/view/EmbedModal/components/embed-content/index.d.ts +0 -5
  238. package/dist/types-ts4.0/view/EmbedModal/components/embed-content/types.d.ts +0 -6
  239. package/dist/types-ts4.0/view/EmbedModal/components/error-boundary/index.d.ts +0 -4
  240. package/dist/types-ts4.0/view/EmbedModal/components/link-info/index.d.ts +0 -4
  241. package/dist/types-ts4.0/view/EmbedModal/components/link-info/link-info-button/index.d.ts +0 -4
  242. package/dist/types-ts4.0/view/EmbedModal/components/link-info/link-info-button/types.d.ts +0 -9
  243. package/dist/types-ts4.0/view/EmbedModal/components/link-info/styled.d.ts +0 -4
  244. package/dist/types-ts4.0/view/EmbedModal/components/link-info/types.d.ts +0 -13
  245. package/dist/types-ts4.0/view/EmbedModal/constants.d.ts +0 -2
  246. package/dist/types-ts4.0/view/EmbedModal/index.d.ts +0 -4
  247. package/dist/types-ts4.0/view/EmbedModal/types.d.ts +0 -31
  248. package/dist/types-ts4.0/view/FlexibleCard/components/actions/action/action-button/index.d.ts +0 -5
  249. package/dist/types-ts4.0/view/FlexibleCard/components/actions/action/action-button/types.d.ts +0 -8
  250. package/dist/types-ts4.0/view/FlexibleCard/components/actions/action/action-dropdown-item/index.d.ts +0 -4
  251. package/dist/types-ts4.0/view/FlexibleCard/components/actions/action/action-dropdown-item/types.d.ts +0 -8
  252. package/dist/types-ts4.0/view/FlexibleCard/components/actions/action/action-icon/index.d.ts +0 -5
  253. package/dist/types-ts4.0/view/FlexibleCard/components/actions/action/action-icon/types.d.ts +0 -7
  254. package/dist/types-ts4.0/view/FlexibleCard/components/actions/action/index.d.ts +0 -13
  255. package/dist/types-ts4.0/view/FlexibleCard/components/actions/action/types.d.ts +0 -48
  256. package/dist/types-ts4.0/view/FlexibleCard/components/actions/index.d.ts +0 -20
  257. package/dist/types-ts4.0/view/FlexibleCard/components/actions/utils.d.ts +0 -4
  258. package/dist/types-ts4.0/view/FlexibleCard/components/blocks/action-group/index.d.ts +0 -11
  259. package/dist/types-ts4.0/view/FlexibleCard/components/blocks/action-group/types.d.ts +0 -37
  260. package/dist/types-ts4.0/view/FlexibleCard/components/blocks/block/index.d.ts +0 -12
  261. package/dist/types-ts4.0/view/FlexibleCard/components/blocks/element-group/index.d.ts +0 -15
  262. package/dist/types-ts4.0/view/FlexibleCard/components/blocks/element-group/types.d.ts +0 -10
  263. package/dist/types-ts4.0/view/FlexibleCard/components/blocks/footer-block/index.d.ts +0 -11
  264. package/dist/types-ts4.0/view/FlexibleCard/components/blocks/footer-block/types.d.ts +0 -10
  265. package/dist/types-ts4.0/view/FlexibleCard/components/blocks/index.d.ts +0 -5
  266. package/dist/types-ts4.0/view/FlexibleCard/components/blocks/metadata-block/index.d.ts +0 -11
  267. package/dist/types-ts4.0/view/FlexibleCard/components/blocks/metadata-block/types.d.ts +0 -26
  268. package/dist/types-ts4.0/view/FlexibleCard/components/blocks/preview-block/index.d.ts +0 -10
  269. package/dist/types-ts4.0/view/FlexibleCard/components/blocks/preview-block/types.d.ts +0 -8
  270. package/dist/types-ts4.0/view/FlexibleCard/components/blocks/snippet-block/index.d.ts +0 -10
  271. package/dist/types-ts4.0/view/FlexibleCard/components/blocks/snippet-block/types.d.ts +0 -8
  272. package/dist/types-ts4.0/view/FlexibleCard/components/blocks/title-block/errored/index.d.ts +0 -12
  273. package/dist/types-ts4.0/view/FlexibleCard/components/blocks/title-block/index.d.ts +0 -16
  274. package/dist/types-ts4.0/view/FlexibleCard/components/blocks/title-block/resolved/index.d.ts +0 -9
  275. package/dist/types-ts4.0/view/FlexibleCard/components/blocks/title-block/resolving/index.d.ts +0 -11
  276. package/dist/types-ts4.0/view/FlexibleCard/components/blocks/title-block/types.d.ts +0 -86
  277. package/dist/types-ts4.0/view/FlexibleCard/components/blocks/types.d.ts +0 -300
  278. package/dist/types-ts4.0/view/FlexibleCard/components/blocks/utils.d.ts +0 -13
  279. package/dist/types-ts4.0/view/FlexibleCard/components/common/atlaskit-icon/index.d.ts +0 -4
  280. package/dist/types-ts4.0/view/FlexibleCard/components/common/atlaskit-icon/types.d.ts +0 -6
  281. package/dist/types-ts4.0/view/FlexibleCard/components/common/image-icon/index.d.ts +0 -5
  282. package/dist/types-ts4.0/view/FlexibleCard/components/common/image-icon/types.d.ts +0 -7
  283. package/dist/types-ts4.0/view/FlexibleCard/components/common/loading-skeleton/index.d.ts +0 -5
  284. package/dist/types-ts4.0/view/FlexibleCard/components/common/loading-skeleton/types.d.ts +0 -16
  285. package/dist/types-ts4.0/view/FlexibleCard/components/container/index.d.ts +0 -16
  286. package/dist/types-ts4.0/view/FlexibleCard/components/container/layered-link/index.d.ts +0 -10
  287. package/dist/types-ts4.0/view/FlexibleCard/components/container/layered-link/types.d.ts +0 -12
  288. package/dist/types-ts4.0/view/FlexibleCard/components/container/types.d.ts +0 -25
  289. package/dist/types-ts4.0/view/FlexibleCard/components/elements/avatar-group/index.d.ts +0 -12
  290. package/dist/types-ts4.0/view/FlexibleCard/components/elements/avatar-group/types.d.ts +0 -21
  291. package/dist/types-ts4.0/view/FlexibleCard/components/elements/badge/index.d.ts +0 -18
  292. package/dist/types-ts4.0/view/FlexibleCard/components/elements/badge/types.d.ts +0 -17
  293. package/dist/types-ts4.0/view/FlexibleCard/components/elements/date-time/index.d.ts +0 -12
  294. package/dist/types-ts4.0/view/FlexibleCard/components/elements/date-time/types.d.ts +0 -16
  295. package/dist/types-ts4.0/view/FlexibleCard/components/elements/icon/index.d.ts +0 -11
  296. package/dist/types-ts4.0/view/FlexibleCard/components/elements/icon/types.d.ts +0 -27
  297. package/dist/types-ts4.0/view/FlexibleCard/components/elements/index.d.ts +0 -129
  298. package/dist/types-ts4.0/view/FlexibleCard/components/elements/link/index.d.ts +0 -11
  299. package/dist/types-ts4.0/view/FlexibleCard/components/elements/link/types.d.ts +0 -35
  300. package/dist/types-ts4.0/view/FlexibleCard/components/elements/lozenge/index.d.ts +0 -11
  301. package/dist/types-ts4.0/view/FlexibleCard/components/elements/lozenge/types.d.ts +0 -13
  302. package/dist/types-ts4.0/view/FlexibleCard/components/elements/media/index.d.ts +0 -11
  303. package/dist/types-ts4.0/view/FlexibleCard/components/elements/media/types.d.ts +0 -17
  304. package/dist/types-ts4.0/view/FlexibleCard/components/elements/text/index.d.ts +0 -11
  305. package/dist/types-ts4.0/view/FlexibleCard/components/elements/text/types.d.ts +0 -17
  306. package/dist/types-ts4.0/view/FlexibleCard/components/elements/types.d.ts +0 -24
  307. package/dist/types-ts4.0/view/FlexibleCard/components/elements/utils.d.ts +0 -3
  308. package/dist/types-ts4.0/view/FlexibleCard/components/types.d.ts +0 -6
  309. package/dist/types-ts4.0/view/FlexibleCard/components/utils.d.ts +0 -15
  310. package/dist/types-ts4.0/view/FlexibleCard/index.d.ts +0 -10
  311. package/dist/types-ts4.0/view/FlexibleCard/types.d.ts +0 -113
  312. package/dist/types-ts4.0/view/FlexibleCard/utils.d.ts +0 -7
  313. package/dist/types-ts4.0/view/HoverCard/components/HoverCardComponent.d.ts +0 -4
  314. package/dist/types-ts4.0/view/HoverCard/components/HoverCardContent.d.ts +0 -9
  315. package/dist/types-ts4.0/view/HoverCard/components/HoverCardLoadingView.d.ts +0 -4
  316. package/dist/types-ts4.0/view/HoverCard/components/SnippetOrPreview.d.ts +0 -4
  317. package/dist/types-ts4.0/view/HoverCard/index.d.ts +0 -3
  318. package/dist/types-ts4.0/view/HoverCard/styled.d.ts +0 -12
  319. package/dist/types-ts4.0/view/HoverCard/types.d.ts +0 -45
  320. package/dist/types-ts4.0/view/HoverCard/utils.d.ts +0 -3
  321. package/dist/types-ts4.0/view/InlineCard/ErroredView/index.d.ts +0 -21
  322. package/dist/types-ts4.0/view/InlineCard/ForbiddenView/index.d.ts +0 -25
  323. package/dist/types-ts4.0/view/InlineCard/Frame/index.d.ts +0 -16
  324. package/dist/types-ts4.0/view/InlineCard/Frame/styled.d.ts +0 -8
  325. package/dist/types-ts4.0/view/InlineCard/Icon.d.ts +0 -4
  326. package/dist/types-ts4.0/view/InlineCard/IconAndTitleLayout/index.d.ts +0 -19
  327. package/dist/types-ts4.0/view/InlineCard/IconAndTitleLayout/styled.d.ts +0 -13
  328. package/dist/types-ts4.0/view/InlineCard/ResolvedView/index.d.ts +0 -30
  329. package/dist/types-ts4.0/view/InlineCard/ResolvingView/index.d.ts +0 -18
  330. package/dist/types-ts4.0/view/InlineCard/ResolvingView/styled.d.ts +0 -14
  331. package/dist/types-ts4.0/view/InlineCard/UnauthorisedView/index.d.ts +0 -20
  332. package/dist/types-ts4.0/view/InlineCard/index.d.ts +0 -9
  333. package/dist/types-ts4.0/view/InlineCard/styled.d.ts +0 -9
  334. package/dist/types-ts4.0/view/InlineCard/types.d.ts +0 -21
  335. package/dist/types-ts4.0/view/LinkView/index.d.ts +0 -8
  336. package/dist/types-ts4.0/view/SmartLinkEvents/useSmartLinkEvents.d.ts +0 -2
  337. package/dist/types-ts4.0/view/__mocks__/intersection-observer.d.ts +0 -26
  338. package/dist/types-ts4.0/view/__mocks__/intersection-observer.mock.d.ts +0 -12
  339. package/dist/types-ts4.0/view/common/Byline.d.ts +0 -10
  340. package/dist/types-ts4.0/view/common/Icon.d.ts +0 -11
  341. package/dist/types-ts4.0/view/common/Metadata.d.ts +0 -10
  342. package/dist/types-ts4.0/view/common/MetadataList.d.ts +0 -9
  343. package/dist/types-ts4.0/view/common/utils.d.ts +0 -5
  344. package/dist/types-ts4.0/view/types.d.ts +0 -29
@@ -1,165 +0,0 @@
1
- import { LinkLozenge } from '../../extractors/common/lozenge/types';
2
- import { LinkPerson } from '@atlaskit/linking-common/extractors';
3
- import { IconType, MediaType } from '../../constants';
4
- /**
5
- * This provides the data that will be used by Smart Links Flexible UI to populate it's
6
- * underlying elements.
7
- */
8
- export declare type FlexibleUiDataContext = {
9
- /**
10
- * Contains the number of attachments on the linked resource.
11
- * @type number
12
- * @see AttachmentCount
13
- */
14
- attachmentCount?: number;
15
- /**
16
- * An array containing data used to populate the AuthorGroup element.
17
- * @see AvatarGroup
18
- */
19
- authorGroup?: LinkPerson[];
20
- /**
21
- * An array containing a @type {LinkPerson} used to populate the CollaboratorGroup element.
22
- * @see CollaboratorGroup
23
- */
24
- collaboratorGroup?: LinkPerson[];
25
- /**
26
- * Contains the number of comments of the linked resource.
27
- * @type number
28
- * @see CommentCount
29
- */
30
- commentCount?: number;
31
- /**
32
- * Contains the ISO timestamp of when the resource was due.
33
- * This value is mapped to JsonLD endTime.
34
- * @type string - ISO Timestamp
35
- * @see DueOn
36
- */
37
- dueOn?: string;
38
- /**
39
- * Contains the number of views of the linked resource.
40
- * @type number
41
- * @see ViewCount
42
- */
43
- viewCount?: number;
44
- /**
45
- * Contains the number of react of the linked resource.
46
- * @type number
47
- * @see ReactCount
48
- */
49
- reactCount?: number;
50
- /**
51
- * Contains the number of votes of the linked resource.
52
- * @type number
53
- * @see VoteCount
54
- */
55
- voteCount?: number;
56
- /**
57
- * Contains the name of the entity that created the resource.
58
- * @type string
59
- * @see CreatedBy
60
- */
61
- createdBy?: string;
62
- /**
63
- * Contains the ISO timestamp of when the resource was created.
64
- * @type string - ISO Timestamp
65
- * @see CreatedOn
66
- */
67
- createdOn?: string;
68
- /**
69
- * Contains the information about the latest commit in the repository
70
- */
71
- latestCommit?: string;
72
- /**
73
- * Contains the favicon of the resource.
74
- * @type Icon
75
- * @see LinkIcon
76
- */
77
- linkIcon?: Icon;
78
- /**
79
- * Contains the name of the entity that last modified the resource.
80
- * @type string
81
- * @see ModifiedBy
82
- */
83
- modifiedBy?: string;
84
- /**
85
- * Contains the ISO timestamp of when the resource was last modified.
86
- * @type string - ISO Timestamp
87
- * @see ModifiedOn
88
- */
89
- modifiedOn?: string;
90
- /**
91
- * Contains the preview (typically the thumbnail) of the resource.
92
- * @type Media
93
- * @see Preview
94
- */
95
- preview?: Media;
96
- /**
97
- * Contains the priority icon of the resource.
98
- * @type Icon
99
- * @see Priority
100
- */
101
- priority?: Icon;
102
- /**
103
- * Contains the programming language of the resource.
104
- * @type string
105
- * @see ProgrammingLanguage
106
- */
107
- programmingLanguage?: string;
108
- /**
109
- * Contains the provider icon of the linked resource.
110
- * @type Icon
111
- * @see Provider
112
- */
113
- provider?: Icon;
114
- /**
115
- * Contains the snippet of the resource.
116
- * @type string
117
- * @see Snippet
118
- */
119
- snippet?: string;
120
- /**
121
- * Contains the source branch name of the link typed pull request.
122
- * @type string
123
- * @see SourceBranch
124
- */
125
- sourceBranch?: string;
126
- /**
127
- * Contains the number of subscribers of the linked resource.
128
- * @type number
129
- * @see SubscriberCount
130
- */
131
- subscriberCount?: number;
132
- /**
133
- * Contains the number of subscribers of the linked resource.
134
- * @type number
135
- * @see SubscriberCount
136
- */
137
- state?: LinkLozenge;
138
- /**
139
- * Contains the target branch name of the link typed pull request.
140
- * @type string
141
- * @see TargetBranch
142
- */
143
- targetBranch?: string;
144
- /**
145
- * Contains the Title of the linked resource.
146
- * @type string
147
- * @see Title
148
- */
149
- title?: string;
150
- /**
151
- * Contains the url of the linked resource.
152
- * @type string
153
- * @see Title
154
- */
155
- url?: string;
156
- };
157
- export declare type Icon = {
158
- icon?: IconType;
159
- label?: string;
160
- url?: string;
161
- };
162
- export declare type Media = {
163
- type: MediaType;
164
- url: string;
165
- };
@@ -1,16 +0,0 @@
1
- import { JsonLd } from 'json-ld-types';
2
- import { CardType, CardStore } from '@atlaskit/linking-common';
3
- import { DestinationProduct, DestinationSubproduct } from '../utils/analytics/types';
4
- export declare const getByDefinitionId: (definitionId: string | undefined, store: CardStore) => string[];
5
- export declare const getClickUrl: (url: string, jsonLd?: JsonLd.Response<JsonLd.Data.BaseData> | undefined) => string;
6
- export declare const getDefinitionId: (details?: JsonLd.Response<JsonLd.Data.BaseData> | undefined) => string | undefined;
7
- export declare const getExtensionKey: (details?: JsonLd.Response<JsonLd.Data.BaseData> | undefined) => string | undefined;
8
- export declare const getResourceType: (details?: JsonLd.Response<JsonLd.Data.BaseData> | undefined) => string | undefined;
9
- export declare const getProduct: (details?: JsonLd.Response<JsonLd.Data.BaseData> | undefined) => DestinationProduct | string | undefined;
10
- export declare const getSubproduct: (details?: JsonLd.Response<JsonLd.Data.BaseData> | undefined) => DestinationSubproduct | string | undefined;
11
- export declare const getServices: (details?: JsonLd.Response<JsonLd.Data.BaseData> | undefined) => JsonLd.Primitives.AuthService[];
12
- export declare const hasResolved: (details?: JsonLd.Response<JsonLd.Data.BaseData> | undefined) => boolean | undefined;
13
- export declare const isAccessible: ({ meta: { access } }: JsonLd.Response) => boolean;
14
- export declare const isVisible: ({ meta: { visibility } }: JsonLd.Response) => boolean;
15
- export declare const getStatus: ({ meta }: JsonLd.Response) => CardType;
16
- export declare const isFinalState: (status: CardType) => boolean;
@@ -1,2 +0,0 @@
1
- export { usePrefetch } from './usePrefetch';
2
- export { useSmartLink } from './useSmartLink';
@@ -1 +0,0 @@
1
- export declare function usePrefetch(url: string): () => Promise<void>;
@@ -1,50 +0,0 @@
1
- import { AnalyticsHandler } from '../../utils/types';
2
- export declare function useSmartLink(id: string, url: string, dispatchAnalytics: AnalyticsHandler): {
3
- state: import("@atlaskit/linking-common").CardState;
4
- actions: {
5
- register: () => Promise<void>;
6
- reload: () => void;
7
- authorize: (appearance: import("@atlaskit/linking-common").CardAppearance) => void;
8
- invoke: (opts: import("../../model/invoke-opts").InvokeClientOpts | import("../../model/invoke-opts").InvokeServerOpts, appearance: import("../../view/Card/types").CardInnerAppearance) => Promise<void | import("json-ld-types").JsonLd.Response<import("json-ld-types").JsonLd.Data.BaseData>>;
9
- loadMetadata: () => Promise<void> | undefined;
10
- };
11
- config: (import("@atlaskit/link-provider").CardProviderCacheOpts & import("@atlaskit/link-provider").CardAuthFlowOpts) | undefined;
12
- analytics: {
13
- ui: {
14
- authEvent: ({ display, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").UiAuthEventProps) => void;
15
- authAlternateAccountEvent: ({ display, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").UiAuthAlternateAccountEventProps) => void;
16
- buttonClickedEvent: (data: Partial<import("../../utils/types").AnalyticsPayload> & {
17
- actionSubjectId: string;
18
- }) => void;
19
- cardClickedEvent: ({ id, display, status, definitionId, extensionKey, isModifierKeyPressed, location, destinationProduct, destinationSubproduct, actionSubjectId, }: import("../../utils/analytics/types").UiCardClickedEventProps) => void;
20
- actionClickedEvent: ({ id, actionType, display, invokeType, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").UiActionClickedEventProps) => void;
21
- hoverCardOpenLinkClickedEvent: ({ previewDisplay, definitionId, extensionKey, destinationProduct, destinationSubproduct, location, previewInvokeMethod, }: import("../../utils/analytics/types").UiHoverCardOpenLinkClickedEventProps) => void;
22
- closedAuthEvent: ({ display, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").UiClosedAuthEventProps) => void;
23
- modalClosedEvent: (data: Partial<import("../../utils/types").AnalyticsPayload> & {
24
- actionSubjectId: string;
25
- }) => void;
26
- renderSuccessEvent: ({ display, status, id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").UiRenderSuccessEventProps) => void;
27
- renderFailedEvent: ({ display, id, error, errorInfo, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").UiRenderFailedEventProps) => void;
28
- hoverCardViewedEvent: ({ previewDisplay, previewInvokeMethod, id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").UiHoverCardViewedEventProps) => void;
29
- hoverCardDismissedEvent: ({ id, previewDisplay, hoverTime, previewInvokeMethod, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").UiHoverCardDismissedEventProps) => void;
30
- };
31
- operational: {
32
- invokeSucceededEvent: ({ id, actionType, display, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").InvokeSucceededEventProps) => void;
33
- invokeFailedEvent: ({ id, actionType, display, reason, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").InvokeFailedEventProps) => void;
34
- connectSucceededEvent: ({ id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").ConnectSucceededEventProps) => void;
35
- connectFailedEvent: ({ id, reason, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").ConnectFailedEventProps) => void;
36
- instrument: ({ id, status, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, error, }: import("../../utils/analytics/types").InstrumentEventProps) => void;
37
- };
38
- track: {
39
- appAccountConnected: ({ extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").CommonEventProps) => void;
40
- };
41
- screen: {
42
- authPopupEvent: ({ extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("../../utils/analytics/types").CommonEventProps) => void;
43
- modalViewedEvent: (data: Partial<import("../../utils/types").AnalyticsPayload> & {
44
- name: "embedPreviewModal";
45
- }) => void;
46
- };
47
- };
48
- renderers: import("@atlaskit/link-provider").CardProviderRenderers | undefined;
49
- error: Error | null;
50
- };
@@ -1,49 +0,0 @@
1
- /// <reference types="react" />
2
- import { JsonLd } from 'json-ld-types';
3
- import type { AnalyticsHandler, AnalyticsOrigin } from '../../utils/types';
4
- import type { CardInnerAppearance } from '../../view/Card/types';
5
- export interface LinkAction {
6
- /**
7
- * Unique ID for the action.
8
- * @example `delete-action`
9
- */
10
- id: string;
11
- /**
12
- * Text to render for the action.
13
- * @description Use this in tooltips and UI.
14
- * @example `Delete`.
15
- */
16
- text: React.ReactNode;
17
- /**
18
- * Promise to invoke on triggering this action.
19
- * @example Clicking on `Delete` leading to deletion of content.
20
- */
21
- invoke: () => Promise<any>;
22
- }
23
- export interface UseSmartLinkActionsOpts {
24
- /**
25
- * Smart Link URL for which actions will be invoked.
26
- * @example https://start.atlassian.com
27
- */
28
- url: string;
29
- /**
30
- * Appearance under which these actions will be invoked.
31
- * @example `block` for card views.
32
- */
33
- appearance: CardInnerAppearance;
34
- /**
35
- * Callback for sending analytics events.
36
- * @description Accepts an analytics payload and fires it to a system.
37
- */
38
- analyticsHandler: AnalyticsHandler;
39
- /**
40
- * Platform on which actions are being invoked.
41
- * @default 'web'
42
- */
43
- platform?: JsonLd.Primitives.Platforms;
44
- /**
45
- * Smart link origin that the action being invoked from.
46
- */
47
- origin?: AnalyticsOrigin;
48
- }
49
- export declare function useSmartLinkActions({ url, appearance, analyticsHandler, platform, origin, }: UseSmartLinkActionsOpts): LinkAction[];
@@ -1,19 +0,0 @@
1
- import type { AnalyticsHandler } from '../../utils/types';
2
- export interface UseSmartLinkReloadOpts {
3
- /**
4
- * Smart Link URL for which the reload will be invoked.
5
- * @example https://start.atlassian.com
6
- */
7
- url: string;
8
- /**
9
- * Callback for sending analytics events.
10
- * @description Accepts an analytics payload and fires it to a system.
11
- */
12
- analyticsHandler: AnalyticsHandler;
13
- }
14
- /**
15
- * Exposes a programmatic way to reload the data being used to render a Smart Link.
16
- * @param
17
- * @returns
18
- */
19
- export declare function useSmartLinkReload({ url, analyticsHandler, }: UseSmartLinkReloadOpts): () => void;
@@ -1,5 +0,0 @@
1
- export { SmartCardContext, SmartCardProvider, useSmartLinkContext, } from '@atlaskit/link-provider';
2
- export type { CardContext, ProviderProps } from '@atlaskit/link-provider';
3
- export type { CardType } from '@atlaskit/linking-common';
4
- export { useSmartLink, usePrefetch } from './hooks';
5
- export { useSmartLinkAnalytics } from './analytics';
@@ -1,4 +0,0 @@
1
- import { Reducer } from 'react';
2
- import { CardAction, CardActionType } from '@atlaskit/linking-common';
3
- export declare type CardReducerMap<StateType, ActionType> = Record<CardActionType, CardReducer<StateType, ActionType>>;
4
- export declare type CardReducer<StateType, ActionType> = Reducer<StateType, CardAction<ActionType>>;
@@ -1,2 +0,0 @@
1
- import { CardContext } from '@atlaskit/link-provider';
2
- export declare const useSmartLinkRenderers: () => CardContext['renderers'] | undefined;
@@ -1,3 +0,0 @@
1
- import { CardState } from '@atlaskit/linking-common';
2
- export type { CardType } from '@atlaskit/linking-common';
3
- export declare function useSmartCardState(url: string): CardState;
@@ -1 +0,0 @@
1
- export type { CardStore, CardState } from '@atlaskit/linking-common';
@@ -1,20 +0,0 @@
1
- import { JsonLd } from 'json-ld-types';
2
- import { RequestAccessMessageKey } from './messages';
3
- export type { CardContext } from '@atlaskit/link-provider';
4
- import { AccessContext } from './view/types';
5
- import { ActionProps } from './view/BlockCard/components/Action';
6
- export declare type ResolveResponse = JsonLd.Response;
7
- export type { ProviderProps, CardType } from './state';
8
- export type { CardProps, CardAppearance, CardPlatform, } from './view/Card/types';
9
- export interface RequestAccessContextProps extends AccessContext {
10
- action?: ActionProps;
11
- callToActionMessageKey?: RequestAccessMessageKey;
12
- descriptiveMessageKey?: RequestAccessMessageKey;
13
- }
14
- export declare type InlinePreloaderStyle = 'on-left-with-skeleton' | 'on-right-without-skeleton';
15
- export declare type LozengeColor = 'default' | 'success' | 'removed' | 'inprogress' | 'new' | 'moved';
16
- export interface LozengeProps {
17
- text: string;
18
- appearance?: LozengeColor;
19
- isBold?: boolean;
20
- }
@@ -1,2 +0,0 @@
1
- declare const _default: any;
2
- export default _default;
@@ -1,32 +0,0 @@
1
- import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
2
- import { AnalyticsPayload } from '../types';
3
- import { CardInnerAppearance } from '../../view/Card/types';
4
- import { ConnectFailedEventProps, ConnectSucceededEventProps, InvokeFailedEventProps, InvokeSucceededEventProps, ResolvedEventProps, ScreenAuthPopupEventProps, TrackAppAccountConnectedProps, UiActionClickedEventProps, UiAuthAlternateAccountEventProps, UiAuthEventProps, UiCardClickedEventProps, UiClosedAuthEventProps, UiHoverCardDismissedEventProps, UiHoverCardOpenLinkClickedEventProps, UiHoverCardViewedEventProps, UiRenderFailedEventProps, UiRenderSuccessEventProps, UnresolvedEventProps } from './types';
5
- export declare const ANALYTICS_CHANNEL = "media";
6
- export declare const context: {
7
- componentName: string;
8
- packageName: any;
9
- packageVersion: any;
10
- };
11
- export declare class SmartLinkEvents {
12
- insertSmartLink(url: string, type: CardInnerAppearance, createAnalyticsEvent?: CreateUIAnalyticsEvent): void;
13
- }
14
- export declare const fireSmartLinkEvent: (payload: AnalyticsPayload, createAnalyticsEvent?: CreateUIAnalyticsEvent | undefined) => void;
15
- export declare const resolvedEvent: (props: ResolvedEventProps) => AnalyticsPayload;
16
- export declare const unresolvedEvent: ({ id, definitionId, extensionKey, resourceType, destinationSubproduct, destinationProduct, error, status, location, }: UnresolvedEventProps) => AnalyticsPayload;
17
- export declare const invokeSucceededEvent: ({ id, actionType, display, extensionKey, definitionId, destinationProduct, destinationSubproduct, location, }: InvokeSucceededEventProps) => AnalyticsPayload;
18
- export declare const invokeFailedEvent: ({ id, actionType, display, reason, extensionKey, definitionId, destinationProduct, destinationSubproduct, location, }: InvokeFailedEventProps) => AnalyticsPayload;
19
- export declare const connectSucceededEvent: ({ definitionId, extensionKey, destinationProduct, destinationSubproduct, location, }: ConnectSucceededEventProps) => AnalyticsPayload;
20
- export declare const connectFailedEvent: ({ definitionId, extensionKey, destinationProduct, destinationSubproduct, location, reason, }: ConnectFailedEventProps) => AnalyticsPayload;
21
- export declare const trackAppAccountConnected: ({ definitionId, extensionKey, destinationProduct, destinationSubproduct, location, }: TrackAppAccountConnectedProps) => AnalyticsPayload;
22
- export declare const uiAuthEvent: ({ definitionId, extensionKey, destinationProduct, destinationSubproduct, location, display, }: UiAuthEventProps) => AnalyticsPayload;
23
- export declare const uiAuthAlternateAccountEvent: ({ definitionId, extensionKey, destinationProduct, destinationSubproduct, location, display, }: UiAuthAlternateAccountEventProps) => AnalyticsPayload;
24
- export declare const uiCardClickedEvent: ({ id, display, status, definitionId, extensionKey, isModifierKeyPressed, location, destinationProduct, destinationSubproduct, actionSubjectId, }: UiCardClickedEventProps) => AnalyticsPayload;
25
- export declare const uiActionClickedEvent: ({ id, actionType, extensionKey, display, definitionId, destinationProduct, destinationSubproduct, location, }: UiActionClickedEventProps) => AnalyticsPayload;
26
- export declare const uiClosedAuthEvent: ({ display, extensionKey, definitionId, destinationProduct, destinationSubproduct, location, }: UiClosedAuthEventProps) => AnalyticsPayload;
27
- export declare const screenAuthPopupEvent: ({ extensionKey, definitionId, destinationProduct, destinationSubproduct, location, }: ScreenAuthPopupEventProps) => AnalyticsPayload;
28
- export declare const uiRenderSuccessEvent: ({ display, status, extensionKey, definitionId, destinationProduct, destinationSubproduct, location, }: UiRenderSuccessEventProps) => AnalyticsPayload;
29
- export declare const uiRenderFailedEvent: ({ display, error, errorInfo, extensionKey, definitionId, destinationProduct, destinationSubproduct, location, }: UiRenderFailedEventProps) => AnalyticsPayload;
30
- export declare const uiHoverCardViewedEvent: ({ id, previewDisplay, extensionKey, definitionId, destinationProduct, destinationSubproduct, location, previewInvokeMethod, }: UiHoverCardViewedEventProps) => AnalyticsPayload;
31
- export declare const uiHoverCardDismissedEvent: ({ id, previewDisplay, hoverTime, extensionKey, definitionId, destinationProduct, destinationSubproduct, location, previewInvokeMethod, }: UiHoverCardDismissedEventProps) => AnalyticsPayload;
32
- export declare const uiHoverCardOpenLinkClickedEvent: ({ id, previewDisplay, extensionKey, definitionId, destinationProduct, destinationSubproduct, location, previewInvokeMethod, }: UiHoverCardOpenLinkClickedEventProps) => AnalyticsPayload;
@@ -1,4 +0,0 @@
1
- import { AnalyticsPayload } from '../types';
2
- import { InstrumentEventProps } from './types';
3
- export { ANALYTICS_CHANNEL, context, fireSmartLinkEvent, resolvedEvent, unresolvedEvent, invokeSucceededEvent, invokeFailedEvent, connectSucceededEvent, connectFailedEvent, trackAppAccountConnected, uiAuthEvent, uiAuthAlternateAccountEvent, uiCardClickedEvent, uiActionClickedEvent, uiClosedAuthEvent, screenAuthPopupEvent, uiRenderSuccessEvent, uiRenderFailedEvent, uiHoverCardViewedEvent, uiHoverCardDismissedEvent, uiHoverCardOpenLinkClickedEvent, } from './analytics';
4
- export declare const instrumentEvent: ({ id, status, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, error, }: InstrumentEventProps) => AnalyticsPayload | undefined;
@@ -1,93 +0,0 @@
1
- import { APIError, CardType } from '@atlaskit/linking-common';
2
- import { PreviewDisplay, PreviewInvokeMethod } from '../../view/HoverCard/types';
3
- import { ErrorInfo } from 'react';
4
- import { CardInnerAppearance } from '../../view/Card/types';
5
- import { InvokeType } from '../../model/invoke-opts';
6
- export declare type DestinationProduct = 'jira' | 'confluence' | 'bitbucket' | 'trello';
7
- export declare type DestinationSubproduct = 'core' | 'software' | 'servicedesk';
8
- export interface CommonEventProps {
9
- id?: string;
10
- definitionId?: string;
11
- extensionKey?: string;
12
- resourceType?: string;
13
- destinationSubproduct?: DestinationSubproduct | string;
14
- destinationProduct?: DestinationProduct | string;
15
- location?: string;
16
- }
17
- export declare type ResolvedEventProps = CommonEventProps & {
18
- id: string;
19
- };
20
- export declare type UnresolvedEventProps = CommonEventProps & {
21
- id: string;
22
- status: string;
23
- error?: APIError;
24
- };
25
- export declare type InvokeSucceededEventProps = CommonEventProps & {
26
- id: string;
27
- actionType: string;
28
- display: CardInnerAppearance;
29
- };
30
- export declare type InvokeFailedEventProps = CommonEventProps & {
31
- id: string;
32
- actionType: string;
33
- display: CardInnerAppearance;
34
- reason: string;
35
- };
36
- export declare type ConnectSucceededEventProps = CommonEventProps & {
37
- id?: string;
38
- };
39
- export declare type ConnectFailedEventProps = CommonEventProps & {
40
- id?: string;
41
- reason?: string;
42
- };
43
- export declare type TrackAppAccountConnectedProps = CommonEventProps;
44
- export declare type UiAuthEventProps = CommonEventProps & {
45
- display: CardInnerAppearance;
46
- };
47
- export declare type UiAuthAlternateAccountEventProps = CommonEventProps & {
48
- display: CardInnerAppearance;
49
- };
50
- export declare type UiCardClickedEventProps = CommonEventProps & {
51
- id: string;
52
- display: CardInnerAppearance;
53
- status: CardType;
54
- isModifierKeyPressed?: boolean;
55
- actionSubjectId?: string;
56
- };
57
- export declare type UiActionClickedEventProps = CommonEventProps & {
58
- id: string;
59
- display: CardInnerAppearance;
60
- actionType: string;
61
- invokeType?: InvokeType;
62
- };
63
- export declare type ScreenAuthPopupEventProps = CommonEventProps;
64
- export declare type UiClosedAuthEventProps = CommonEventProps & {
65
- display: CardInnerAppearance;
66
- };
67
- export declare type UiRenderSuccessEventProps = CommonEventProps & {
68
- display: CardInnerAppearance;
69
- status: CardType;
70
- };
71
- export declare type UiRenderFailedEventProps = CommonEventProps & {
72
- display: CardInnerAppearance;
73
- error: Error;
74
- errorInfo: ErrorInfo;
75
- };
76
- export declare type UiHoverCardViewedEventProps = CommonEventProps & {
77
- previewDisplay: PreviewDisplay;
78
- previewInvokeMethod?: PreviewInvokeMethod;
79
- };
80
- export declare type UiHoverCardDismissedEventProps = CommonEventProps & {
81
- previewDisplay: PreviewDisplay;
82
- hoverTime: number;
83
- previewInvokeMethod?: PreviewInvokeMethod;
84
- };
85
- export declare type UiHoverCardOpenLinkClickedEventProps = CommonEventProps & {
86
- previewDisplay: PreviewDisplay;
87
- previewInvokeMethod?: PreviewInvokeMethod;
88
- };
89
- export declare type InstrumentEventProps = CommonEventProps & {
90
- error?: APIError;
91
- status: CardType;
92
- id: string;
93
- };
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- export declare const isFlexibleUiCard: (children?: React.ReactNode) => boolean;
3
- export declare const isFlexibleUiBlock: (node: React.ReactNode) => boolean;
4
- export declare const isFlexibleUiElement: (node: React.ReactNode) => boolean;
5
- export declare const isFlexibleUiTitleBlock: (node: React.ReactNode) => boolean;
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- import { CardProps } from '../view/Card';
3
- export declare const isCardWithData: (props: CardProps) => boolean;
4
- export declare const isSpecialEvent: (evt: React.MouseEvent | React.KeyboardEvent) => boolean;
5
- export declare const isIframe: () => boolean;
6
- export declare const isSpecialKey: (event: React.MouseEvent | React.KeyboardEvent) => boolean;
7
- export declare const isSpecialClick: (event: React.MouseEvent) => boolean;
8
- export declare const getIconForFileType: (fileMimeType: string) => React.ReactNode | undefined;
9
- export declare const getLabelForFileType: (fileMimeType: string) => React.ReactNode | undefined;
10
- export declare const getIframeSandboxAttribute: (isTrusted: boolean) => "allow-downloads allow-forms allow-popups allow-popups-to-escape-sandbox allow-presentation allow-same-origin allow-scripts" | undefined;
11
- export declare const handleOnClick: (handler: Function) => (e: React.BaseSyntheticEvent) => void;
12
- export declare const isIntersectionObserverSupported: () => boolean;
@@ -1,3 +0,0 @@
1
- import { JsonLd } from 'json-ld-types';
2
- export declare const getEmptyJsonLd: () => JsonLd.Data.BaseData;
3
- export declare const getUnauthorizedJsonLd: () => JsonLd.Response;
@@ -1,75 +0,0 @@
1
- import { JsonLd } from 'json-ld-types';
2
- export declare const mockContext: {
3
- readonly '@vocab': "https://www.w3.org/ns/activitystreams#";
4
- readonly atlassian: "https://schema.atlassian.com/ns/vocabulary#";
5
- readonly schema: "http://schema.org/";
6
- };
7
- export declare const mockByUrl: (url: string) => JsonLd.Response<JsonLd.Data.BaseData>;
8
- export declare const mocks: {
9
- success: JsonLd.Response<JsonLd.Data.BaseData>;
10
- notFound: JsonLd.Response<JsonLd.Data.BaseData>;
11
- forbidden: JsonLd.Response<JsonLd.Data.BaseData>;
12
- unauthorized: JsonLd.Response<JsonLd.Data.BaseData>;
13
- actionSuccess: {
14
- meta: {
15
- visibility: string;
16
- access: string;
17
- auth: never[];
18
- definitionId: string;
19
- };
20
- data: {
21
- status: string;
22
- };
23
- };
24
- analytics: {
25
- status: string;
26
- details: {
27
- meta: {
28
- definitionId: string;
29
- key: string;
30
- resourceType: string;
31
- subproduct: string;
32
- product: string;
33
- };
34
- };
35
- };
36
- };
37
- export declare const fakeResponse: () => Promise<JsonLd.Response<JsonLd.Data.BaseData>>;
38
- export declare const fakeFactory: any;
39
- export declare const waitFor: (time?: number) => Promise<unknown>;
40
- export declare const mockAnalytics: {
41
- ui: {
42
- authEvent: ({ display, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("./analytics/types").UiAuthEventProps) => void;
43
- authAlternateAccountEvent: ({ display, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("./analytics/types").UiAuthAlternateAccountEventProps) => void;
44
- buttonClickedEvent: (data: Partial<import("./types").AnalyticsPayload> & {
45
- actionSubjectId: string;
46
- }) => void;
47
- cardClickedEvent: ({ id, display, status, definitionId, extensionKey, isModifierKeyPressed, location, destinationProduct, destinationSubproduct, actionSubjectId, }: import("./analytics/types").UiCardClickedEventProps) => void;
48
- actionClickedEvent: ({ id, actionType, display, invokeType, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("./analytics/types").UiActionClickedEventProps) => void;
49
- hoverCardOpenLinkClickedEvent: ({ previewDisplay, definitionId, extensionKey, destinationProduct, destinationSubproduct, location, previewInvokeMethod, }: import("./analytics/types").UiHoverCardOpenLinkClickedEventProps) => void;
50
- closedAuthEvent: ({ display, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("./analytics/types").UiClosedAuthEventProps) => void;
51
- modalClosedEvent: (data: Partial<import("./types").AnalyticsPayload> & {
52
- actionSubjectId: string;
53
- }) => void;
54
- renderSuccessEvent: ({ display, status, id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("./analytics/types").UiRenderSuccessEventProps) => void;
55
- renderFailedEvent: ({ display, id, error, errorInfo, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("./analytics/types").UiRenderFailedEventProps) => void;
56
- hoverCardViewedEvent: ({ previewDisplay, previewInvokeMethod, id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("./analytics/types").UiHoverCardViewedEventProps) => void;
57
- hoverCardDismissedEvent: ({ id, previewDisplay, hoverTime, previewInvokeMethod, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("./analytics/types").UiHoverCardDismissedEventProps) => void;
58
- };
59
- operational: {
60
- invokeSucceededEvent: ({ id, actionType, display, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("./analytics/types").InvokeSucceededEventProps) => void;
61
- invokeFailedEvent: ({ id, actionType, display, reason, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("./analytics/types").InvokeFailedEventProps) => void;
62
- connectSucceededEvent: ({ id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("./analytics/types").ConnectSucceededEventProps) => void;
63
- connectFailedEvent: ({ id, reason, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("./analytics/types").ConnectFailedEventProps) => void;
64
- instrument: ({ id, status, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, error, }: import("./analytics/types").InstrumentEventProps) => void;
65
- };
66
- track: {
67
- appAccountConnected: ({ extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("./analytics/types").CommonEventProps) => void;
68
- };
69
- screen: {
70
- authPopupEvent: ({ extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: import("./analytics/types").CommonEventProps) => void;
71
- modalViewedEvent: (data: Partial<import("./types").AnalyticsPayload> & {
72
- name: "embedPreviewModal";
73
- }) => void;
74
- };
75
- };
@@ -1,8 +0,0 @@
1
- import { CardType } from '@atlaskit/linking-common';
2
- export declare const getMarkName: (id: string, status: CardType) => string;
3
- export declare const getMeasureName: (id: string, status: CardType) => string;
4
- export declare const clearMarks: (id: string) => void;
5
- export declare const clearMeasures: (id: string) => void;
6
- export declare const getMeasure: (id: string, status: CardType) => PerformanceEntry | undefined;
7
- export declare const mark: (id: string, status: CardType) => void;
8
- export declare const create: (id: string, status: CardType) => void;
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import { ProviderProps } from '../state';
3
- export declare const renderHook: (callback: Function) => JSX.Element;
4
- export declare const renderSmartLinkHook: (callback: Function, providerProps?: Partial<ProviderProps> | undefined) => JSX.Element;
@@ -1,16 +0,0 @@
1
- export declare const tokens: {
2
- actionIcon: "var(--ds-icon)";
3
- background: "var(--ds-surface-raised)";
4
- badgeIcon: "var(--ds-icon-subtle)";
5
- badgeText: "var(--ds-text-subtlest)";
6
- blackLink: "var(--ds-text-subtle)";
7
- blackLinkPressed: "var(--ds-text)";
8
- blueLink: "var(--ds-link)";
9
- blueLinkPressed: "var(--ds-link-pressed)";
10
- elevation: "var(--ds-shadow-raised)";
11
- errorMessage: "var(--ds-text-disabled)";
12
- errorMessageHover: "var(--ds-text-subtle)";
13
- focus: "var(--ds-border-focused)";
14
- snippet: "var(--ds-text)";
15
- text: "var(--ds-text-subtlest)";
16
- };