@atlaskit/smart-card 22.2.0 → 22.2.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 (329) hide show
  1. package/CHANGELOG.md +7 -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/EmbedModal/components/embed-content/index.js +1 -5
  6. package/dist/es2019/state/helpers.js +2 -1
  7. package/dist/es2019/version.json +1 -1
  8. package/dist/es2019/view/EmbedModal/components/embed-content/index.js +1 -5
  9. package/dist/esm/state/helpers.js +2 -1
  10. package/dist/esm/version.json +1 -1
  11. package/dist/esm/view/EmbedModal/components/embed-content/index.js +1 -4
  12. package/dist/types/extractors/common/__mocks__/jsonld.d.ts +2 -2
  13. package/dist/types-ts4.0/__fixtures__/flexible-ui-data-context.d.ts +3 -0
  14. package/dist/types-ts4.0/__tests_external__/index.d.ts +6 -0
  15. package/dist/types-ts4.0/__tests_external__/page-objects/BaseCard.d.ts +16 -0
  16. package/dist/types-ts4.0/__tests_external__/page-objects/BlockCard.d.ts +6 -0
  17. package/dist/types-ts4.0/__tests_external__/page-objects/EmbedCard.d.ts +6 -0
  18. package/dist/types-ts4.0/__tests_external__/page-objects/InlineCard.d.ts +6 -0
  19. package/dist/types-ts4.0/__tests_external__/test-cases/card.d.ts +3 -0
  20. package/dist/types-ts4.0/__tests_external__/test-cases/embed.d.ts +3 -0
  21. package/dist/types-ts4.0/__tests_external__/test-cases/inline.d.ts +3 -0
  22. package/dist/types-ts4.0/__tests_external__/test-cases/types.d.ts +5 -0
  23. package/dist/types-ts4.0/classNames.d.ts +11 -0
  24. package/dist/types-ts4.0/client/index.d.ts +1 -0
  25. package/dist/types-ts4.0/constants.d.ts +185 -0
  26. package/dist/types-ts4.0/extractors/block/index.d.ts +9 -0
  27. package/dist/types-ts4.0/extractors/block/types.d.ts +14 -0
  28. package/dist/types-ts4.0/extractors/common/__mocks__/jsonld.d.ts +232 -0
  29. package/dist/types-ts4.0/extractors/common/__mocks__/render.d.ts +2 -0
  30. package/dist/types-ts4.0/extractors/common/actions/extractActions.d.ts +4 -0
  31. package/dist/types-ts4.0/extractors/common/actions/extractPreviewAction.d.ts +9 -0
  32. package/dist/types-ts4.0/extractors/common/byline/extractByline.d.ts +3 -0
  33. package/dist/types-ts4.0/extractors/common/context/extractAccessContext.d.ts +7 -0
  34. package/dist/types-ts4.0/extractors/common/context/index.d.ts +1 -0
  35. package/dist/types-ts4.0/extractors/common/detail/extractCommentCount.d.ts +4 -0
  36. package/dist/types-ts4.0/extractors/common/detail/extractDownloadUrl.d.ts +2 -0
  37. package/dist/types-ts4.0/extractors/common/detail/extractProgrammingLanguage.d.ts +4 -0
  38. package/dist/types-ts4.0/extractors/common/detail/extractSubscriberCount.d.ts +4 -0
  39. package/dist/types-ts4.0/extractors/common/detail/index.d.ts +7 -0
  40. package/dist/types-ts4.0/extractors/common/detail/types.d.ts +5 -0
  41. package/dist/types-ts4.0/extractors/common/icon/extractFileFormat.d.ts +2 -0
  42. package/dist/types-ts4.0/extractors/common/icon/extractIcon.d.ts +14 -0
  43. package/dist/types-ts4.0/extractors/common/icon/extractIconFromDocument.d.ts +4 -0
  44. package/dist/types-ts4.0/extractors/common/icon/extractIconFromTask.d.ts +3 -0
  45. package/dist/types-ts4.0/extractors/common/icon/index.d.ts +4 -0
  46. package/dist/types-ts4.0/extractors/common/icon/priority.d.ts +4 -0
  47. package/dist/types-ts4.0/extractors/common/lozenge/extractLozenge.d.ts +3 -0
  48. package/dist/types-ts4.0/extractors/common/lozenge/extractState.d.ts +3 -0
  49. package/dist/types-ts4.0/extractors/common/lozenge/extractTag.d.ts +3 -0
  50. package/dist/types-ts4.0/extractors/common/lozenge/extractTaskStatus.d.ts +3 -0
  51. package/dist/types-ts4.0/extractors/common/lozenge/extractTaskType.d.ts +7 -0
  52. package/dist/types-ts4.0/extractors/common/lozenge/index.d.ts +5 -0
  53. package/dist/types-ts4.0/extractors/common/lozenge/types.d.ts +8 -0
  54. package/dist/types-ts4.0/extractors/common/lozenge/utils.d.ts +4 -0
  55. package/dist/types-ts4.0/extractors/common/meta/extractIsTrusted.d.ts +2 -0
  56. package/dist/types-ts4.0/extractors/common/primitives/extractSummary.d.ts +2 -0
  57. package/dist/types-ts4.0/extractors/common/primitives/extractTitleTextColor.d.ts +2 -0
  58. package/dist/types-ts4.0/extractors/common/primitives/extractVisitUrl.d.ts +2 -0
  59. package/dist/types-ts4.0/extractors/common/primitives/index.d.ts +2 -0
  60. package/dist/types-ts4.0/extractors/common/title-prefix/extractTitlePrefix.d.ts +5 -0
  61. package/dist/types-ts4.0/extractors/common/title-prefix/index.d.ts +1 -0
  62. package/dist/types-ts4.0/extractors/constants.d.ts +12 -0
  63. package/dist/types-ts4.0/extractors/embed/index.d.ts +3 -0
  64. package/dist/types-ts4.0/extractors/flexible/collaboratorGroup/index.d.ts +4 -0
  65. package/dist/types-ts4.0/extractors/flexible/extract-preview.d.ts +4 -0
  66. package/dist/types-ts4.0/extractors/flexible/extract-priority.d.ts +4 -0
  67. package/dist/types-ts4.0/extractors/flexible/icon/extract-document-type-icon.d.ts +3 -0
  68. package/dist/types-ts4.0/extractors/flexible/icon/extract-file-formatIcon.d.ts +3 -0
  69. package/dist/types-ts4.0/extractors/flexible/icon/extract-icon-renderer.d.ts +4 -0
  70. package/dist/types-ts4.0/extractors/flexible/icon/extract-jira-task-icon.d.ts +3 -0
  71. package/dist/types-ts4.0/extractors/flexible/icon/extract-jsonld-data-icon.d.ts +4 -0
  72. package/dist/types-ts4.0/extractors/flexible/icon/extract-provider-icon.d.ts +4 -0
  73. package/dist/types-ts4.0/extractors/flexible/icon/extract-url-icon.d.ts +4 -0
  74. package/dist/types-ts4.0/extractors/flexible/icon/index.d.ts +17 -0
  75. package/dist/types-ts4.0/extractors/flexible/icon/types.d.ts +6 -0
  76. package/dist/types-ts4.0/extractors/flexible/index.d.ts +5 -0
  77. package/dist/types-ts4.0/extractors/flexible/latest-commit/index.d.ts +2 -0
  78. package/dist/types-ts4.0/extractors/flexible/utils.d.ts +12 -0
  79. package/dist/types-ts4.0/extractors/hover/extractMetadata.d.ts +3 -0
  80. package/dist/types-ts4.0/extractors/index.d.ts +14 -0
  81. package/dist/types-ts4.0/extractors/inline/index.d.ts +6 -0
  82. package/dist/types-ts4.0/hooks.d.ts +2 -0
  83. package/dist/types-ts4.0/i18n/cs.d.ts +71 -0
  84. package/dist/types-ts4.0/i18n/da.d.ts +71 -0
  85. package/dist/types-ts4.0/i18n/de.d.ts +71 -0
  86. package/dist/types-ts4.0/i18n/en.d.ts +71 -0
  87. package/dist/types-ts4.0/i18n/en_GB.d.ts +71 -0
  88. package/dist/types-ts4.0/i18n/en_ZZ.d.ts +38 -0
  89. package/dist/types-ts4.0/i18n/es.d.ts +71 -0
  90. package/dist/types-ts4.0/i18n/et.d.ts +94 -0
  91. package/dist/types-ts4.0/i18n/fi.d.ts +71 -0
  92. package/dist/types-ts4.0/i18n/fr.d.ts +71 -0
  93. package/dist/types-ts4.0/i18n/hu.d.ts +71 -0
  94. package/dist/types-ts4.0/i18n/index.d.ts +35 -0
  95. package/dist/types-ts4.0/i18n/is.d.ts +70 -0
  96. package/dist/types-ts4.0/i18n/it.d.ts +71 -0
  97. package/dist/types-ts4.0/i18n/ja.d.ts +71 -0
  98. package/dist/types-ts4.0/i18n/ko.d.ts +71 -0
  99. package/dist/types-ts4.0/i18n/languages.d.ts +27 -0
  100. package/dist/types-ts4.0/i18n/nb.d.ts +71 -0
  101. package/dist/types-ts4.0/i18n/nl.d.ts +71 -0
  102. package/dist/types-ts4.0/i18n/pl.d.ts +71 -0
  103. package/dist/types-ts4.0/i18n/pt_BR.d.ts +71 -0
  104. package/dist/types-ts4.0/i18n/pt_PT.d.ts +94 -0
  105. package/dist/types-ts4.0/i18n/ro.d.ts +70 -0
  106. package/dist/types-ts4.0/i18n/ru.d.ts +71 -0
  107. package/dist/types-ts4.0/i18n/sk.d.ts +94 -0
  108. package/dist/types-ts4.0/i18n/sv.d.ts +71 -0
  109. package/dist/types-ts4.0/i18n/th.d.ts +71 -0
  110. package/dist/types-ts4.0/i18n/tr.d.ts +71 -0
  111. package/dist/types-ts4.0/i18n/uk.d.ts +71 -0
  112. package/dist/types-ts4.0/i18n/vi.d.ts +71 -0
  113. package/dist/types-ts4.0/i18n/zh.d.ts +71 -0
  114. package/dist/types-ts4.0/i18n/zh_TW.d.ts +71 -0
  115. package/dist/types-ts4.0/in-product.d.ts +1 -0
  116. package/dist/types-ts4.0/index.d.ts +22 -0
  117. package/dist/types-ts4.0/messages.d.ts +8 -0
  118. package/dist/types-ts4.0/model/invoke-handler.d.ts +3 -0
  119. package/dist/types-ts4.0/model/invoke-opts.d.ts +17 -0
  120. package/dist/types-ts4.0/ssr.d.ts +6 -0
  121. package/dist/types-ts4.0/state/actions/constants.d.ts +6 -0
  122. package/dist/types-ts4.0/state/actions/index.d.ts +12 -0
  123. package/dist/types-ts4.0/state/actions/types.d.ts +2 -0
  124. package/dist/types-ts4.0/state/analytics/index.d.ts +3 -0
  125. package/dist/types-ts4.0/state/analytics/types.d.ts +9 -0
  126. package/dist/types-ts4.0/state/analytics/ufoExperiences.d.ts +7 -0
  127. package/dist/types-ts4.0/state/analytics/useSmartLinkAnalytics.d.ts +195 -0
  128. package/dist/types-ts4.0/state/config/index.d.ts +2 -0
  129. package/dist/types-ts4.0/state/flexible-ui-context/index.d.ts +8 -0
  130. package/dist/types-ts4.0/state/flexible-ui-context/types.d.ts +159 -0
  131. package/dist/types-ts4.0/state/helpers.d.ts +16 -0
  132. package/dist/types-ts4.0/state/hooks/index.d.ts +2 -0
  133. package/dist/types-ts4.0/state/hooks/usePrefetch.d.ts +1 -0
  134. package/dist/types-ts4.0/state/hooks/useSmartLink.d.ts +50 -0
  135. package/dist/types-ts4.0/state/hooks-external/useSmartLinkActions.d.ts +49 -0
  136. package/dist/types-ts4.0/state/hooks-external/useSmartLinkReload.d.ts +19 -0
  137. package/dist/types-ts4.0/state/index.d.ts +5 -0
  138. package/dist/types-ts4.0/state/reducers/types.d.ts +4 -0
  139. package/dist/types-ts4.0/state/renderers/index.d.ts +2 -0
  140. package/dist/types-ts4.0/state/store/index.d.ts +3 -0
  141. package/dist/types-ts4.0/state/types.d.ts +1 -0
  142. package/dist/types-ts4.0/types.d.ts +20 -0
  143. package/dist/types-ts4.0/utils/analytics/__mocks__/analytics.d.ts +2 -0
  144. package/dist/types-ts4.0/utils/analytics/analytics.d.ts +32 -0
  145. package/dist/types-ts4.0/utils/analytics/index.d.ts +4 -0
  146. package/dist/types-ts4.0/utils/analytics/types.d.ts +93 -0
  147. package/dist/types-ts4.0/utils/flexible.d.ts +5 -0
  148. package/dist/types-ts4.0/utils/index.d.ts +12 -0
  149. package/dist/types-ts4.0/utils/jsonld.d.ts +3 -0
  150. package/dist/types-ts4.0/utils/mocks.d.ts +74 -0
  151. package/dist/types-ts4.0/utils/performance.d.ts +8 -0
  152. package/dist/types-ts4.0/utils/test-utils.d.ts +4 -0
  153. package/dist/types-ts4.0/utils/token.d.ts +16 -0
  154. package/dist/types-ts4.0/utils/types.d.ts +14 -0
  155. package/dist/types-ts4.0/view/BlockCard/actions/AuthorizeAction.d.ts +2 -0
  156. package/dist/types-ts4.0/view/BlockCard/actions/DownloadAction.d.ts +8 -0
  157. package/dist/types-ts4.0/view/BlockCard/actions/ForbiddenAction.d.ts +2 -0
  158. package/dist/types-ts4.0/view/BlockCard/actions/PreviewAction.d.ts +32 -0
  159. package/dist/types-ts4.0/view/BlockCard/actions/RetryAction.d.ts +2 -0
  160. package/dist/types-ts4.0/view/BlockCard/actions/ViewAction.d.ts +8 -0
  161. package/dist/types-ts4.0/view/BlockCard/components/Action.d.ts +11 -0
  162. package/dist/types-ts4.0/view/BlockCard/components/ActionIcon.d.ts +12 -0
  163. package/dist/types-ts4.0/view/BlockCard/components/ActionList.d.ts +6 -0
  164. package/dist/types-ts4.0/view/BlockCard/components/CollaboratorList.d.ts +13 -0
  165. package/dist/types-ts4.0/view/BlockCard/components/Content.d.ts +7 -0
  166. package/dist/types-ts4.0/view/BlockCard/components/ContentFooter.d.ts +7 -0
  167. package/dist/types-ts4.0/view/BlockCard/components/ContentHeader.d.ts +8 -0
  168. package/dist/types-ts4.0/view/BlockCard/components/Emoji.d.ts +5 -0
  169. package/dist/types-ts4.0/view/BlockCard/components/Frame.d.ts +14 -0
  170. package/dist/types-ts4.0/view/BlockCard/components/Link.d.ts +7 -0
  171. package/dist/types-ts4.0/view/BlockCard/components/Name.d.ts +10 -0
  172. package/dist/types-ts4.0/view/BlockCard/components/Provider.d.ts +6 -0
  173. package/dist/types-ts4.0/view/BlockCard/components/Thumbnail.d.ts +9 -0
  174. package/dist/types-ts4.0/view/BlockCard/components/UnresolvedText.d.ts +6 -0
  175. package/dist/types-ts4.0/view/BlockCard/index.d.ts +14 -0
  176. package/dist/types-ts4.0/view/BlockCard/types.d.ts +25 -0
  177. package/dist/types-ts4.0/view/BlockCard/utils/constants.d.ts +3 -0
  178. package/dist/types-ts4.0/view/BlockCard/utils/handlers.d.ts +2 -0
  179. package/dist/types-ts4.0/view/BlockCard/views/ErroredView.d.ts +12 -0
  180. package/dist/types-ts4.0/view/BlockCard/views/ForbiddenView.d.ts +21 -0
  181. package/dist/types-ts4.0/view/BlockCard/views/NotFoundView.d.ts +15 -0
  182. package/dist/types-ts4.0/view/BlockCard/views/ResolvedView.d.ts +32 -0
  183. package/dist/types-ts4.0/view/BlockCard/views/ResolvingView.d.ts +8 -0
  184. package/dist/types-ts4.0/view/BlockCard/views/UnauthorizedView.d.ts +17 -0
  185. package/dist/types-ts4.0/view/Card/index.d.ts +5 -0
  186. package/dist/types-ts4.0/view/Card/types.d.ts +37 -0
  187. package/dist/types-ts4.0/view/CardWithData/component.d.ts +5 -0
  188. package/dist/types-ts4.0/view/CardWithData/loader.d.ts +9 -0
  189. package/dist/types-ts4.0/view/CardWithData/types.d.ts +15 -0
  190. package/dist/types-ts4.0/view/CardWithUrl/component-lazy/LazyFallback.d.ts +4 -0
  191. package/dist/types-ts4.0/view/CardWithUrl/component-lazy/LazyIntersectionObserverCard.d.ts +3 -0
  192. package/dist/types-ts4.0/view/CardWithUrl/component-lazy/LazyLazilyRenderCard.d.ts +3 -0
  193. package/dist/types-ts4.0/view/CardWithUrl/component-lazy/index.d.ts +3 -0
  194. package/dist/types-ts4.0/view/CardWithUrl/component.d.ts +3 -0
  195. package/dist/types-ts4.0/view/CardWithUrl/loader.d.ts +3 -0
  196. package/dist/types-ts4.0/view/CardWithUrl/types.d.ts +29 -0
  197. package/dist/types-ts4.0/view/EmbedCard/EmbedResizeMessageListener.d.ts +15 -0
  198. package/dist/types-ts4.0/view/EmbedCard/components/ExpandedFrame.d.ts +23 -0
  199. package/dist/types-ts4.0/view/EmbedCard/components/Frame.d.ts +7 -0
  200. package/dist/types-ts4.0/view/EmbedCard/components/ImageIcon.d.ts +9 -0
  201. package/dist/types-ts4.0/view/EmbedCard/components/styled.d.ts +45 -0
  202. package/dist/types-ts4.0/view/EmbedCard/index.d.ts +3 -0
  203. package/dist/types-ts4.0/view/EmbedCard/types.d.ts +46 -0
  204. package/dist/types-ts4.0/view/EmbedCard/views/ErroredView.d.ts +8 -0
  205. package/dist/types-ts4.0/view/EmbedCard/views/ForbiddenView.d.ts +13 -0
  206. package/dist/types-ts4.0/view/EmbedCard/views/NotFoundView.d.ts +11 -0
  207. package/dist/types-ts4.0/view/EmbedCard/views/ResolvedView.d.ts +27 -0
  208. package/dist/types-ts4.0/view/EmbedCard/views/UnauthorisedView.d.ts +12 -0
  209. package/dist/types-ts4.0/view/EmbedCard/views/UnresolvedView.d.ts +18 -0
  210. package/dist/types-ts4.0/view/EmbedModal/components/analytics/index.d.ts +5 -0
  211. package/dist/types-ts4.0/view/EmbedModal/components/analytics/types.d.ts +6 -0
  212. package/dist/types-ts4.0/view/EmbedModal/components/embed-content/index.d.ts +5 -0
  213. package/dist/types-ts4.0/view/EmbedModal/components/embed-content/types.d.ts +6 -0
  214. package/dist/types-ts4.0/view/EmbedModal/components/error-boundary/index.d.ts +4 -0
  215. package/dist/types-ts4.0/view/EmbedModal/components/link-info/index.d.ts +4 -0
  216. package/dist/types-ts4.0/view/EmbedModal/components/link-info/link-info-button/index.d.ts +4 -0
  217. package/dist/types-ts4.0/view/EmbedModal/components/link-info/link-info-button/types.d.ts +9 -0
  218. package/dist/types-ts4.0/view/EmbedModal/components/link-info/styled.d.ts +4 -0
  219. package/dist/types-ts4.0/view/EmbedModal/components/link-info/types.d.ts +13 -0
  220. package/dist/types-ts4.0/view/EmbedModal/components/size-experiment/index.d.ts +7 -0
  221. package/dist/types-ts4.0/view/EmbedModal/components/size-experiment/types.d.ts +4 -0
  222. package/dist/types-ts4.0/view/EmbedModal/constants.d.ts +2 -0
  223. package/dist/types-ts4.0/view/EmbedModal/index.d.ts +6 -0
  224. package/dist/types-ts4.0/view/EmbedModal/types.d.ts +34 -0
  225. package/dist/types-ts4.0/view/FlexibleCard/components/actions/action/action-button/index.d.ts +5 -0
  226. package/dist/types-ts4.0/view/FlexibleCard/components/actions/action/action-button/types.d.ts +8 -0
  227. package/dist/types-ts4.0/view/FlexibleCard/components/actions/action/action-dropdown-item/index.d.ts +4 -0
  228. package/dist/types-ts4.0/view/FlexibleCard/components/actions/action/action-dropdown-item/types.d.ts +8 -0
  229. package/dist/types-ts4.0/view/FlexibleCard/components/actions/action/action-icon/index.d.ts +5 -0
  230. package/dist/types-ts4.0/view/FlexibleCard/components/actions/action/action-icon/types.d.ts +7 -0
  231. package/dist/types-ts4.0/view/FlexibleCard/components/actions/action/index.d.ts +13 -0
  232. package/dist/types-ts4.0/view/FlexibleCard/components/actions/action/types.d.ts +48 -0
  233. package/dist/types-ts4.0/view/FlexibleCard/components/actions/index.d.ts +20 -0
  234. package/dist/types-ts4.0/view/FlexibleCard/components/actions/utils.d.ts +4 -0
  235. package/dist/types-ts4.0/view/FlexibleCard/components/blocks/action-group/index.d.ts +11 -0
  236. package/dist/types-ts4.0/view/FlexibleCard/components/blocks/action-group/types.d.ts +37 -0
  237. package/dist/types-ts4.0/view/FlexibleCard/components/blocks/block/index.d.ts +12 -0
  238. package/dist/types-ts4.0/view/FlexibleCard/components/blocks/element-group/index.d.ts +15 -0
  239. package/dist/types-ts4.0/view/FlexibleCard/components/blocks/element-group/types.d.ts +10 -0
  240. package/dist/types-ts4.0/view/FlexibleCard/components/blocks/footer-block/index.d.ts +11 -0
  241. package/dist/types-ts4.0/view/FlexibleCard/components/blocks/footer-block/types.d.ts +10 -0
  242. package/dist/types-ts4.0/view/FlexibleCard/components/blocks/index.d.ts +5 -0
  243. package/dist/types-ts4.0/view/FlexibleCard/components/blocks/metadata-block/index.d.ts +11 -0
  244. package/dist/types-ts4.0/view/FlexibleCard/components/blocks/metadata-block/types.d.ts +26 -0
  245. package/dist/types-ts4.0/view/FlexibleCard/components/blocks/preview-block/index.d.ts +10 -0
  246. package/dist/types-ts4.0/view/FlexibleCard/components/blocks/preview-block/types.d.ts +8 -0
  247. package/dist/types-ts4.0/view/FlexibleCard/components/blocks/snippet-block/index.d.ts +10 -0
  248. package/dist/types-ts4.0/view/FlexibleCard/components/blocks/snippet-block/types.d.ts +8 -0
  249. package/dist/types-ts4.0/view/FlexibleCard/components/blocks/title-block/errored/index.d.ts +12 -0
  250. package/dist/types-ts4.0/view/FlexibleCard/components/blocks/title-block/index.d.ts +16 -0
  251. package/dist/types-ts4.0/view/FlexibleCard/components/blocks/title-block/resolved/index.d.ts +9 -0
  252. package/dist/types-ts4.0/view/FlexibleCard/components/blocks/title-block/resolving/index.d.ts +11 -0
  253. package/dist/types-ts4.0/view/FlexibleCard/components/blocks/title-block/types.d.ts +86 -0
  254. package/dist/types-ts4.0/view/FlexibleCard/components/blocks/types.d.ts +293 -0
  255. package/dist/types-ts4.0/view/FlexibleCard/components/blocks/utils.d.ts +13 -0
  256. package/dist/types-ts4.0/view/FlexibleCard/components/common/atlaskit-icon/index.d.ts +4 -0
  257. package/dist/types-ts4.0/view/FlexibleCard/components/common/atlaskit-icon/types.d.ts +6 -0
  258. package/dist/types-ts4.0/view/FlexibleCard/components/common/image-icon/index.d.ts +5 -0
  259. package/dist/types-ts4.0/view/FlexibleCard/components/common/image-icon/types.d.ts +7 -0
  260. package/dist/types-ts4.0/view/FlexibleCard/components/common/loading-skeleton/index.d.ts +5 -0
  261. package/dist/types-ts4.0/view/FlexibleCard/components/common/loading-skeleton/types.d.ts +16 -0
  262. package/dist/types-ts4.0/view/FlexibleCard/components/container/index.d.ts +16 -0
  263. package/dist/types-ts4.0/view/FlexibleCard/components/container/layered-link/index.d.ts +10 -0
  264. package/dist/types-ts4.0/view/FlexibleCard/components/container/layered-link/types.d.ts +12 -0
  265. package/dist/types-ts4.0/view/FlexibleCard/components/container/types.d.ts +25 -0
  266. package/dist/types-ts4.0/view/FlexibleCard/components/elements/avatar-group/index.d.ts +12 -0
  267. package/dist/types-ts4.0/view/FlexibleCard/components/elements/avatar-group/types.d.ts +21 -0
  268. package/dist/types-ts4.0/view/FlexibleCard/components/elements/badge/index.d.ts +18 -0
  269. package/dist/types-ts4.0/view/FlexibleCard/components/elements/badge/types.d.ts +17 -0
  270. package/dist/types-ts4.0/view/FlexibleCard/components/elements/date-time/index.d.ts +12 -0
  271. package/dist/types-ts4.0/view/FlexibleCard/components/elements/date-time/types.d.ts +16 -0
  272. package/dist/types-ts4.0/view/FlexibleCard/components/elements/icon/index.d.ts +11 -0
  273. package/dist/types-ts4.0/view/FlexibleCard/components/elements/icon/types.d.ts +27 -0
  274. package/dist/types-ts4.0/view/FlexibleCard/components/elements/index.d.ts +124 -0
  275. package/dist/types-ts4.0/view/FlexibleCard/components/elements/link/index.d.ts +11 -0
  276. package/dist/types-ts4.0/view/FlexibleCard/components/elements/link/types.d.ts +35 -0
  277. package/dist/types-ts4.0/view/FlexibleCard/components/elements/lozenge/index.d.ts +11 -0
  278. package/dist/types-ts4.0/view/FlexibleCard/components/elements/lozenge/types.d.ts +13 -0
  279. package/dist/types-ts4.0/view/FlexibleCard/components/elements/media/index.d.ts +11 -0
  280. package/dist/types-ts4.0/view/FlexibleCard/components/elements/media/types.d.ts +17 -0
  281. package/dist/types-ts4.0/view/FlexibleCard/components/elements/text/index.d.ts +11 -0
  282. package/dist/types-ts4.0/view/FlexibleCard/components/elements/text/types.d.ts +17 -0
  283. package/dist/types-ts4.0/view/FlexibleCard/components/elements/types.d.ts +24 -0
  284. package/dist/types-ts4.0/view/FlexibleCard/components/elements/utils.d.ts +3 -0
  285. package/dist/types-ts4.0/view/FlexibleCard/components/types.d.ts +6 -0
  286. package/dist/types-ts4.0/view/FlexibleCard/components/utils.d.ts +15 -0
  287. package/dist/types-ts4.0/view/FlexibleCard/index.d.ts +10 -0
  288. package/dist/types-ts4.0/view/FlexibleCard/types.d.ts +113 -0
  289. package/dist/types-ts4.0/view/FlexibleCard/utils.d.ts +7 -0
  290. package/dist/types-ts4.0/view/HoverCard/components/HoverCardComponent.d.ts +4 -0
  291. package/dist/types-ts4.0/view/HoverCard/components/HoverCardContent.d.ts +9 -0
  292. package/dist/types-ts4.0/view/HoverCard/components/HoverCardLoadingView.d.ts +4 -0
  293. package/dist/types-ts4.0/view/HoverCard/components/SnippetOrPreview.d.ts +4 -0
  294. package/dist/types-ts4.0/view/HoverCard/index.d.ts +3 -0
  295. package/dist/types-ts4.0/view/HoverCard/styled.d.ts +12 -0
  296. package/dist/types-ts4.0/view/HoverCard/types.d.ts +45 -0
  297. package/dist/types-ts4.0/view/HoverCard/utils.d.ts +3 -0
  298. package/dist/types-ts4.0/view/InlineCard/ErroredView/index.d.ts +21 -0
  299. package/dist/types-ts4.0/view/InlineCard/ForbiddenView/index.d.ts +25 -0
  300. package/dist/types-ts4.0/view/InlineCard/Frame/index.d.ts +16 -0
  301. package/dist/types-ts4.0/view/InlineCard/Frame/styled.d.ts +8 -0
  302. package/dist/types-ts4.0/view/InlineCard/Icon.d.ts +4 -0
  303. package/dist/types-ts4.0/view/InlineCard/IconAndTitleLayout/index.d.ts +19 -0
  304. package/dist/types-ts4.0/view/InlineCard/IconAndTitleLayout/styled.d.ts +13 -0
  305. package/dist/types-ts4.0/view/InlineCard/ResolvedView/index.d.ts +30 -0
  306. package/dist/types-ts4.0/view/InlineCard/ResolvingView/index.d.ts +18 -0
  307. package/dist/types-ts4.0/view/InlineCard/ResolvingView/styled.d.ts +14 -0
  308. package/dist/types-ts4.0/view/InlineCard/UnauthorisedView/index.d.ts +20 -0
  309. package/dist/types-ts4.0/view/InlineCard/index.d.ts +9 -0
  310. package/dist/types-ts4.0/view/InlineCard/styled.d.ts +9 -0
  311. package/dist/types-ts4.0/view/InlineCard/types.d.ts +21 -0
  312. package/dist/types-ts4.0/view/LinkView/index.d.ts +8 -0
  313. package/dist/types-ts4.0/view/SmartLinkEvents/useSmartLinkEvents.d.ts +2 -0
  314. package/dist/types-ts4.0/view/__mocks__/intersection-observer.d.ts +26 -0
  315. package/dist/types-ts4.0/view/__mocks__/intersection-observer.mock.d.ts +12 -0
  316. package/dist/types-ts4.0/view/common/Byline.d.ts +8 -0
  317. package/dist/types-ts4.0/view/common/Icon.d.ts +9 -0
  318. package/dist/types-ts4.0/view/common/Metadata.d.ts +8 -0
  319. package/dist/types-ts4.0/view/common/MetadataList.d.ts +8 -0
  320. package/dist/types-ts4.0/view/common/Modal.d.ts +26 -0
  321. package/dist/types-ts4.0/view/common/ModalHeader.d.ts +17 -0
  322. package/dist/types-ts4.0/view/common/utils.d.ts +5 -0
  323. package/dist/types-ts4.0/view/types.d.ts +29 -0
  324. package/hooks/package.json +8 -1
  325. package/in-product/package.json +8 -1
  326. package/package.json +13 -6
  327. package/report.api.md +341 -738
  328. package/ssr/package.json +8 -1
  329. package/types/package.json +8 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @atlaskit/smart-card
2
2
 
3
+ ## 22.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
8
+ - Updated dependencies
9
+
3
10
  ## 22.2.0
4
11
 
5
12
  ### Minor Changes
@@ -4,5 +4,12 @@
4
4
  "module": "../dist/esm/client/index.js",
5
5
  "module:es2019": "../dist/es2019/client/index.js",
6
6
  "sideEffects": false,
7
- "types": "../dist/types/client/index.d.ts"
7
+ "types": "../dist/types/client/index.d.ts",
8
+ "typesVersions": {
9
+ ">=4.0 <4.5": {
10
+ "*": [
11
+ "../dist/types-ts4.0/client/index.d.ts"
12
+ ]
13
+ }
14
+ }
8
15
  }
@@ -93,7 +93,8 @@ exports.isAccessible = isAccessible;
93
93
  var isVisible = function isVisible(_ref2) {
94
94
  var visibility = _ref2.meta.visibility;
95
95
  return visibility === 'restricted' || visibility === 'public';
96
- };
96
+ }; // Be aware, this is a copy of a function in link-provider/src/helpers
97
+
97
98
 
98
99
  exports.isVisible = isVisible;
99
100
 
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "22.2.0",
3
+ "version": "22.2.1",
4
4
  "sideEffects": false
5
5
  }
@@ -7,8 +7,6 @@ Object.defineProperty(exports, "__esModule", {
7
7
  });
8
8
  exports.default = void 0;
9
9
 
10
- var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
-
12
10
  var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
13
11
 
14
12
  var _core = require("@emotion/core");
@@ -33,9 +31,7 @@ var EmbedContent = function EmbedContent(_ref) {
33
31
  src: src,
34
32
  'data-testid': "".concat(testId, "-embed")
35
33
  };
36
- return src ? (0, _core.jsx)("iframe", (0, _extends2.default)({
37
- src: src
38
- }, props)) : (0, _core.jsx)("iframe", props);
34
+ return (0, _core.jsx)("iframe", props);
39
35
  };
40
36
 
41
37
  var _default = EmbedContent;
@@ -55,7 +55,8 @@ export const isVisible = ({
55
55
  meta: {
56
56
  visibility
57
57
  }
58
- }) => visibility === 'restricted' || visibility === 'public';
58
+ }) => visibility === 'restricted' || visibility === 'public'; // Be aware, this is a copy of a function in link-provider/src/helpers
59
+
59
60
  export const getStatus = ({
60
61
  meta
61
62
  }) => {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "22.2.0",
3
+ "version": "22.2.1",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,3 @@
1
- import _extends from "@babel/runtime/helpers/extends";
2
-
3
1
  /** @jsx jsx */
4
2
  import { css, jsx } from '@emotion/core';
5
3
  import { getIframeSandboxAttribute } from '../../../../utils';
@@ -23,9 +21,7 @@ const EmbedContent = ({
23
21
  src,
24
22
  'data-testid': `${testId}-embed`
25
23
  };
26
- return src ? jsx("iframe", _extends({
27
- src: src
28
- }, props)) : jsx("iframe", props);
24
+ return jsx("iframe", props);
29
25
  };
30
26
 
31
27
  export default EmbedContent;
@@ -55,7 +55,8 @@ export var isAccessible = function isAccessible(_ref) {
55
55
  export var isVisible = function isVisible(_ref2) {
56
56
  var visibility = _ref2.meta.visibility;
57
57
  return visibility === 'restricted' || visibility === 'public';
58
- };
58
+ }; // Be aware, this is a copy of a function in link-provider/src/helpers
59
+
59
60
  export var getStatus = function getStatus(_ref3) {
60
61
  var meta = _ref3.meta;
61
62
  var access = meta.access,
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "22.2.0",
3
+ "version": "22.2.1",
4
4
  "sideEffects": false
5
5
  }
@@ -1,4 +1,3 @@
1
- import _extends from "@babel/runtime/helpers/extends";
2
1
  import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
3
2
 
4
3
  var _templateObject;
@@ -22,9 +21,7 @@ var EmbedContent = function EmbedContent(_ref) {
22
21
  src: src,
23
22
  'data-testid': "".concat(testId, "-embed")
24
23
  };
25
- return src ? jsx("iframe", _extends({
26
- src: src
27
- }, props)) : jsx("iframe", props);
24
+ return jsx("iframe", props);
28
25
  };
29
26
 
30
27
  export default EmbedContent;
@@ -142,7 +142,7 @@ export declare const TEST_DATA_WITH_LATEST_COMMIT_OBJ: {
142
142
  };
143
143
  '@context': JsonLd.Primitives.Context;
144
144
  '@type': JsonLd.Primitives.Property<JsonLd.Primitives.ObjectType>;
145
- 'schema:potentialAction'?: import("schema-dts").DeleteAction | import("schema-dts").ViewAction | import("schema-dts").DownloadAction | import("schema-dts").WatchAction | import("schema-dts").AssignAction | import("schema-dts").CommentAction | import("schema-dts").ReplyAction | import("schema-dts").ShareAction | import("schema-dts").SubscribeAction | (import("schema-dts").DeleteAction | import("schema-dts").ViewAction | import("schema-dts").DownloadAction | import("schema-dts").WatchAction | import("schema-dts").AssignAction | import("schema-dts").CommentAction | import("schema-dts").ReplyAction | import("schema-dts").ShareAction | import("schema-dts").SubscribeAction)[] | undefined;
145
+ 'schema:potentialAction'?: import("schema-dts").AssignAction | import("schema-dts").CommentAction | import("schema-dts").DeleteAction | import("schema-dts").ReplyAction | import("schema-dts").ShareAction | import("schema-dts").SubscribeAction | import("schema-dts").WatchAction | import("schema-dts").DownloadAction | import("schema-dts").ViewAction | (import("schema-dts").AssignAction | import("schema-dts").CommentAction | import("schema-dts").DeleteAction | import("schema-dts").ReplyAction | import("schema-dts").ShareAction | import("schema-dts").SubscribeAction | import("schema-dts").WatchAction | import("schema-dts").DownloadAction | import("schema-dts").ViewAction)[] | undefined;
146
146
  'atlassian:downloadUrl'?: string | undefined;
147
147
  'atlassian:visitUrl'?: string | undefined;
148
148
  'atlassian:titlePrefix'?: JsonLd.Data.TitlePrefix | undefined;
@@ -188,7 +188,7 @@ export declare const TEST_DATA_WITH_LATEST_COMMIT_TEXT: {
188
188
  'atlassian:latestCommit': string;
189
189
  '@context': JsonLd.Primitives.Context;
190
190
  '@type': JsonLd.Primitives.Property<JsonLd.Primitives.ObjectType>;
191
- 'schema:potentialAction'?: import("schema-dts").DeleteAction | import("schema-dts").ViewAction | import("schema-dts").DownloadAction | import("schema-dts").WatchAction | import("schema-dts").AssignAction | import("schema-dts").CommentAction | import("schema-dts").ReplyAction | import("schema-dts").ShareAction | import("schema-dts").SubscribeAction | (import("schema-dts").DeleteAction | import("schema-dts").ViewAction | import("schema-dts").DownloadAction | import("schema-dts").WatchAction | import("schema-dts").AssignAction | import("schema-dts").CommentAction | import("schema-dts").ReplyAction | import("schema-dts").ShareAction | import("schema-dts").SubscribeAction)[] | undefined;
191
+ 'schema:potentialAction'?: import("schema-dts").AssignAction | import("schema-dts").CommentAction | import("schema-dts").DeleteAction | import("schema-dts").ReplyAction | import("schema-dts").ShareAction | import("schema-dts").SubscribeAction | import("schema-dts").WatchAction | import("schema-dts").DownloadAction | import("schema-dts").ViewAction | (import("schema-dts").AssignAction | import("schema-dts").CommentAction | import("schema-dts").DeleteAction | import("schema-dts").ReplyAction | import("schema-dts").ShareAction | import("schema-dts").SubscribeAction | import("schema-dts").WatchAction | import("schema-dts").DownloadAction | import("schema-dts").ViewAction)[] | undefined;
192
192
  'atlassian:downloadUrl'?: string | undefined;
193
193
  'atlassian:visitUrl'?: string | undefined;
194
194
  'atlassian:titlePrefix'?: JsonLd.Data.TitlePrefix | undefined;
@@ -0,0 +1,3 @@
1
+ import { FlexibleUiDataContext } from '../state/flexible-ui-context/types';
2
+ declare const context: FlexibleUiDataContext;
3
+ export default context;
@@ -0,0 +1,6 @@
1
+ export { InlineCardPageObject } from './page-objects/InlineCard';
2
+ export { BlockCardPageObject } from './page-objects/BlockCard';
3
+ export { EmbedCardPageObject } from './page-objects/EmbedCard';
4
+ export { inlineSmartLinkRendersTestCase } from './test-cases/inline';
5
+ export { blockSmartLinkRendersTestCase } from './test-cases/card';
6
+ export { embedSmartLinkRendersTestCase } from './test-cases/embed';
@@ -0,0 +1,16 @@
1
+ /// <reference types="cypress" />
2
+ import { InProductTestPageObject, CypressType } from '@atlaskit/in-product-testing';
3
+ import { CardType, CardAppearance } from '@atlaskit/linking-common';
4
+ export declare class BaseCardPageObject extends InProductTestPageObject {
5
+ protected cy: CypressType;
6
+ protected appearance: CardAppearance;
7
+ protected constructor(cy: CypressType, appearance: CardAppearance);
8
+ private static CARD_TIMEOUT;
9
+ private _toSelector;
10
+ expectCardReady(numOfCards?: number, status?: CardType): Cypress.Chainable<JQuery<HTMLElement>>;
11
+ expectCardNotExists(status?: CardType): Cypress.Chainable<JQuery<HTMLElement>>;
12
+ findCardNth(nth?: number, status?: CardType): Cypress.Chainable<JQuery<HTMLElement>>;
13
+ assertHrefRendered(url: string): Cypress.Chainable<JQuery<HTMLElement>>;
14
+ assertHrefNotRendered(url: string): Cypress.Chainable<JQuery<HTMLElement>>;
15
+ click(status?: CardType): Cypress.Chainable<JQuery<HTMLElement>>;
16
+ }
@@ -0,0 +1,6 @@
1
+ import { CypressType } from '@atlaskit/in-product-testing';
2
+ import { BaseCardPageObject } from './BaseCard';
3
+ export declare class BlockCardPageObject extends BaseCardPageObject {
4
+ protected cy: CypressType;
5
+ constructor(cy: CypressType);
6
+ }
@@ -0,0 +1,6 @@
1
+ import { CypressType } from '@atlaskit/in-product-testing';
2
+ import { BaseCardPageObject } from './BaseCard';
3
+ export declare class EmbedCardPageObject extends BaseCardPageObject {
4
+ protected cy: CypressType;
5
+ constructor(cy: CypressType);
6
+ }
@@ -0,0 +1,6 @@
1
+ import { CypressType } from '@atlaskit/in-product-testing';
2
+ import { BaseCardPageObject } from './BaseCard';
3
+ export declare class InlineCardPageObject extends BaseCardPageObject {
4
+ protected cy: CypressType;
5
+ constructor(cy: CypressType);
6
+ }
@@ -0,0 +1,3 @@
1
+ import { InProductTestCase } from '@atlaskit/in-product-testing';
2
+ import { SmartLinkTestCaseOpts } from './types';
3
+ export declare const blockSmartLinkRendersTestCase: ({ url, status, }: SmartLinkTestCaseOpts) => InProductTestCase;
@@ -0,0 +1,3 @@
1
+ import { InProductTestCase } from '@atlaskit/in-product-testing';
2
+ import { SmartLinkTestCaseOpts } from './types';
3
+ export declare const embedSmartLinkRendersTestCase: ({ url, status, }: SmartLinkTestCaseOpts) => InProductTestCase;
@@ -0,0 +1,3 @@
1
+ import { InProductTestCase } from '@atlaskit/in-product-testing';
2
+ import { SmartLinkTestCaseOpts } from './types';
3
+ export declare const inlineSmartLinkRendersTestCase: ({ url, status, }: SmartLinkTestCaseOpts) => InProductTestCase;
@@ -0,0 +1,5 @@
1
+ import { CardType } from '../../state';
2
+ export interface SmartLinkTestCaseOpts {
3
+ url: string;
4
+ status?: CardType;
5
+ }
@@ -0,0 +1,11 @@
1
+ export { contentFooterClassName } from './view/BlockCard/components/ContentFooter';
2
+ export { metadataListClassName } from './view/common/MetadataList';
3
+ export { blockCardResolvingViewClassName } from './view/BlockCard/views/ResolvingView';
4
+ export { blockCardResolvedViewClassName, blockCardResolvedViewByClassName, } from './view/BlockCard/views/ResolvedView';
5
+ export { blockCardForbiddenViewClassName, blockCardForbiddenViewLinkClassName, } from './view/BlockCard/views/ForbiddenView';
6
+ export { blockCardIconImageClassName } from './view/common/Icon';
7
+ export { blockCardContentClassName } from './view/BlockCard/components/Content';
8
+ export { blockCardContentHeaderClassName } from './view/BlockCard/components/ContentHeader';
9
+ export { blockCardContentHeaderNameClassName } from './view/BlockCard/components/Name';
10
+ export { blockCardNotFoundViewClassName } from './view/BlockCard/views/NotFoundView';
11
+ export { blockCardErroredViewClassName } from './view/BlockCard/views/ErroredView';
@@ -0,0 +1 @@
1
+ export { CardClient as default } from '@atlaskit/link-provider';
@@ -0,0 +1,185 @@
1
+ /**
2
+ * The alignment of Flexible UI component.
3
+ */
4
+ export declare enum SmartLinkAlignment {
5
+ Left = "left",
6
+ Right = "right"
7
+ }
8
+ /**
9
+ * The direction of Flexible UI components. It establish the main-axis
10
+ * or how the child components laid out inside the parent component.
11
+ * Similar to flex's flex-direction concept.
12
+ */
13
+ export declare enum SmartLinkDirection {
14
+ Horizontal = "horizontal",
15
+ Vertical = "vertical"
16
+ }
17
+ /**
18
+ * The positioning of the component within the parent component.
19
+ * Similar to flex's align-items or align-self concept.
20
+ */
21
+ export declare enum SmartLinkPosition {
22
+ Top = "top",
23
+ Center = "center"
24
+ }
25
+ /**
26
+ * The sizing options of the Flexible UI component. Every component
27
+ * has or inherits the sizing props. Implementation varies
28
+ * as per component.
29
+ */
30
+ export declare enum SmartLinkSize {
31
+ XLarge = "xlarge",
32
+ Large = "large",
33
+ Medium = "medium",
34
+ Small = "small"
35
+ }
36
+ /**
37
+ * Smart Links link request status
38
+ */
39
+ export declare enum SmartLinkStatus {
40
+ Pending = "pending",
41
+ Resolving = "resolving",
42
+ Resolved = "resolved",
43
+ Forbidden = "forbidden",
44
+ Errored = "errored",
45
+ NotFound = "not_found",
46
+ Unauthorized = "unauthorized",
47
+ Fallback = "fallback"
48
+ }
49
+ /**
50
+ * Flexible UI theme available on the Card level.
51
+ * This determine the styling of the link.
52
+ */
53
+ export declare enum SmartLinkTheme {
54
+ Black = "black",
55
+ Link = "link"
56
+ }
57
+ /**
58
+ * Determines whether the container size will fit to the content
59
+ * or expand to the available width or the parent component.
60
+ * Similar to flex's flex-grow concept.
61
+ */
62
+ export declare enum SmartLinkWidth {
63
+ FitToContent = "fit-to-content",
64
+ Flexible = "flexible"
65
+ }
66
+ /**
67
+ * Flexible UI element name - each reflecting the link data its represented.
68
+ * When adding an element...
69
+ * 1) Create base element if it doesn't already exist.
70
+ * Base element are inside src/view/FlexibleCard/components/elements.
71
+ * E.g. Badge, DateTime, Icon, Lozenge, etc.
72
+ * 2) Update FlexibleUiContext with the new prop for data representing
73
+ * the element, preferably with the same name as the element itself.
74
+ * (src/state/flexible-ui-context/types.ts)
75
+ * 3) Update Flexible UI extractor (src/extractors/flexible/index.ts)
76
+ * 4) Set base element and data mapping
77
+ * (src/view/FlexibleCard/components/elements/utils.tsx)
78
+ * 5) Create element. (src/view/FlexibleCard/components/elements/index.ts)
79
+ * 6) Update element ElementDisplaySchema for inline/block display
80
+ * (src/view/FlexibleCard/components/blocks/utils.tsx)
81
+ */
82
+ export declare enum ElementName {
83
+ AuthorGroup = "AuthorGroup",
84
+ CollaboratorGroup = "CollaboratorGroup",
85
+ CommentCount = "CommentCount",
86
+ CreatedBy = "CreatedBy",
87
+ CreatedOn = "CreatedOn",
88
+ DueOn = "DueOn",
89
+ LinkIcon = "LinkIcon",
90
+ ModifiedBy = "ModifiedBy",
91
+ ModifiedOn = "ModifiedOn",
92
+ Preview = "Preview",
93
+ Priority = "Priority",
94
+ ProgrammingLanguage = "ProgrammingLanguage",
95
+ Provider = "Provider",
96
+ ReactCount = "ReactCount",
97
+ Snippet = "Snippet",
98
+ SourceBranch = "SourceBranch",
99
+ State = "State",
100
+ SubscriberCount = "SubscriberCount",
101
+ TargetBranch = "TargetBranch",
102
+ Title = "Title",
103
+ ViewCount = "ViewCount",
104
+ VoteCount = "VoteCount",
105
+ LatestCommit = "LatestCommit"
106
+ }
107
+ /**
108
+ * Flexible UI action (button)
109
+ */
110
+ export declare enum ActionName {
111
+ DeleteAction = "DeleteAction",
112
+ EditAction = "EditAction",
113
+ CustomAction = "CustomAction"
114
+ }
115
+ /**
116
+ * Flexible UI icons - each mapped to AK icons.
117
+ */
118
+ export declare enum IconType {
119
+ Archive = "FileType:Archive",
120
+ Audio = "FileType:Audio",
121
+ Blog = "FileType:Blog",
122
+ Code = "FileType:Code",
123
+ Document = "FileType:Document",
124
+ Executable = "FileType:Executable",
125
+ File = "FileType:File",
126
+ Folder = "FileType:Folder",
127
+ Generic = "FileType:Generic",
128
+ GIF = "FileType:GIF",
129
+ GoogleDocs = "FileType:GoogleDocs",
130
+ GoogleForms = "FileType:GoogleForms",
131
+ GoogleSheets = "FileType:GoogleSheets",
132
+ GoogleSlides = "FileType:GoogleSlides",
133
+ Image = "FileType.Image",
134
+ MSExcel = "FileType:Excel",
135
+ MSPowerpoint = "FileType:Powerpoint",
136
+ MSWord = "FileType:WordDocument",
137
+ PDF = "FileType:PDF",
138
+ Presentation = "FileType:Presentation",
139
+ Sketch = "FileType:Sketch",
140
+ Spreadsheet = "FileType:Spreadsheet",
141
+ Template = "FileType:Template",
142
+ Video = "FileType:Video",
143
+ Branch = "BitBucket:Branch",
144
+ Commit = "BitBucket:Commit",
145
+ Project = "BitBucket:Project",
146
+ PullRequest = "BitBucket:PullRequest",
147
+ Repo = "BitBucket:Repo",
148
+ Bug = "Jira:Bug",
149
+ Change = "Jira:Change",
150
+ Epic = "Jira:Epic",
151
+ Incident = "Jira:Incident",
152
+ Problem = "Jira:Problem",
153
+ ServiceRequest = "Jira:ServiceRequest",
154
+ Story = "Jira:Story",
155
+ SubTask = "Jira:SubTask",
156
+ Task = "Jira:Task",
157
+ Confluence = "Provider:Confluence",
158
+ Jira = "Provider:Jira",
159
+ Default = "Default",
160
+ Error = "Default:Error",
161
+ Forbidden = "Default:Forbidden",
162
+ Comment = "Badge:Comment",
163
+ View = "Badge:View",
164
+ React = "Badge:React",
165
+ Vote = "Badge:Vote",
166
+ PriorityBlocker = "Badge:PriorityBlocker",
167
+ PriorityCritical = "Badge:PriorityCritical",
168
+ PriorityHigh = "Badge:PriorityHigh",
169
+ PriorityHighest = "Badge:PriorityHighest",
170
+ PriorityLow = "Badge:PriorityLow",
171
+ PriorityLowest = "Badge:PriorityLowest",
172
+ PriorityMajor = "Badge:PriorityMajor",
173
+ PriorityMedium = "Badge:PriorityMedium",
174
+ PriorityMinor = "Badge:PriorityMinor",
175
+ PriorityTrivial = "Badge:PriorityTrivial",
176
+ PriorityUndefined = "Badge:PriorityUndefined",
177
+ ProgrammingLanguage = "Badge:ProgrammingLanguage",
178
+ Subscriber = "Badge:Subscriber"
179
+ }
180
+ /**
181
+ * Type for Flexible UI's Media element
182
+ */
183
+ export declare enum MediaType {
184
+ Image = "image"
185
+ }
@@ -0,0 +1,9 @@
1
+ import { JsonLd } from 'json-ld-types';
2
+ import { CardProviderRenderers } from '@atlaskit/link-provider';
3
+ import { LinkPerson } from '@atlaskit/linking-common/extractors';
4
+ import { ExtractBlockOpts } from './types';
5
+ import { BlockCardResolvedViewProps } from '../../view/BlockCard';
6
+ import { ActionProps } from '../../view/BlockCard/components/Action';
7
+ export declare const extractBlockActions: (props: BlockCardResolvedViewProps, jsonLd: JsonLd.Data.BaseData, opts?: ExtractBlockOpts | undefined, platform?: JsonLd.Primitives.Platforms | undefined) => ActionProps[];
8
+ export declare const extractBlockUsers: (jsonLd: JsonLd.Data.BaseData) => LinkPerson[] | undefined;
9
+ export declare const extractBlockProps: (jsonLd: JsonLd.Data.BaseData, meta?: JsonLd.Meta.BaseMeta | undefined, opts?: ExtractBlockOpts | undefined, renderers?: CardProviderRenderers | undefined, platform?: JsonLd.Primitives.Platforms | undefined) => BlockCardResolvedViewProps;
@@ -0,0 +1,14 @@
1
+ import { LinkingPlatformFeatureFlags } from '@atlaskit/linking-common';
2
+ import { InvokeHandler } from '../../model/invoke-handler';
3
+ import { AnalyticsFacade } from '../../state/analytics';
4
+ import { CardInnerAppearance } from '../../view/Card/types';
5
+ import { AnalyticsOrigin } from '../../utils/types';
6
+ export interface ExtractBlockOpts {
7
+ handleInvoke: InvokeHandler;
8
+ analytics: AnalyticsFacade;
9
+ origin?: AnalyticsOrigin;
10
+ extensionKey?: string;
11
+ featureFlags?: Partial<LinkingPlatformFeatureFlags>;
12
+ source?: CardInnerAppearance;
13
+ testId?: string;
14
+ }