@atlaskit/smart-card 26.42.10 → 26.42.11

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 (318) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/cjs/utils/analytics/analytics.js +1 -1
  3. package/dist/cjs/view/BlockCard/components/Action.js +5 -8
  4. package/dist/cjs/view/BlockCard/components/ActionList.js +9 -11
  5. package/dist/cjs/view/BlockCard/components/CollaboratorList.js +2 -5
  6. package/dist/cjs/view/BlockCard/components/Content.js +1 -4
  7. package/dist/cjs/view/BlockCard/components/ContentFooter.js +1 -4
  8. package/dist/cjs/view/BlockCard/components/ContentHeader.js +1 -4
  9. package/dist/cjs/view/BlockCard/components/Emoji.js +2 -5
  10. package/dist/cjs/view/BlockCard/components/Frame.js +5 -6
  11. package/dist/cjs/view/BlockCard/components/Link.js +1 -4
  12. package/dist/cjs/view/BlockCard/components/Name.js +1 -4
  13. package/dist/cjs/view/BlockCard/components/Provider.js +3 -6
  14. package/dist/cjs/view/BlockCard/components/Thumbnail.js +5 -6
  15. package/dist/cjs/view/BlockCard/components/UnresolvedText.js +1 -4
  16. package/dist/cjs/view/BlockCard/index.js +16 -19
  17. package/dist/cjs/view/BlockCard/views/ErroredView.js +11 -12
  18. package/dist/cjs/view/BlockCard/views/ForbiddenView.js +9 -12
  19. package/dist/cjs/view/BlockCard/views/NotFoundView.js +10 -11
  20. package/dist/cjs/view/BlockCard/views/ResolvedView.js +13 -16
  21. package/dist/cjs/view/BlockCard/views/ResolvingView.js +4 -7
  22. package/dist/cjs/view/BlockCard/views/UnauthorizedView.js +9 -10
  23. package/dist/cjs/view/BlockCard/views/flexible/FlexibleUnauthorisedView.js +4 -5
  24. package/dist/cjs/view/BlockCard/views/flexible/utils/withFlexibleUIBlockCardStyle.js +2 -5
  25. package/dist/cjs/view/CardWithData/component.js +1 -1
  26. package/dist/cjs/view/CardWithUrl/component.js +2 -2
  27. package/dist/cjs/view/EmbedCard/components/Frame.js +12 -15
  28. package/dist/cjs/view/EmbedCard/components/IframeDwellTracker.js +0 -2
  29. package/dist/cjs/view/EmbedCard/index.js +1 -1
  30. package/dist/cjs/view/EmbedCard/views/ErroredView.js +5 -8
  31. package/dist/cjs/view/EmbedCard/views/ResolvedView.js +9 -12
  32. package/dist/cjs/view/EmbedCard/views/UnresolvedView.js +8 -10
  33. package/dist/cjs/view/EmbedCard/views/unresolved-view/index.js +11 -14
  34. package/dist/cjs/view/EmbedModal/components/embed-content/index.js +1 -2
  35. package/dist/cjs/view/EmbedModal/components/link-info/index.js +24 -27
  36. package/dist/cjs/view/FlexibleCard/components/actions/action/action-button/index.js +4 -5
  37. package/dist/cjs/view/FlexibleCard/components/actions/action/action-icon/index.js +1 -2
  38. package/dist/cjs/view/FlexibleCard/components/actions/action/index.js +3 -6
  39. package/dist/cjs/view/FlexibleCard/components/blocks/action-group/action-group-item/index.js +3 -5
  40. package/dist/cjs/view/FlexibleCard/components/blocks/action-group/index.js +8 -9
  41. package/dist/cjs/view/FlexibleCard/components/blocks/block/index.js +1 -2
  42. package/dist/cjs/view/FlexibleCard/components/blocks/element-group/index.js +1 -2
  43. package/dist/cjs/view/FlexibleCard/components/blocks/preview-block/index.js +1 -3
  44. package/dist/cjs/view/FlexibleCard/components/blocks/preview-block/resolved/index.js +2 -3
  45. package/dist/cjs/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/index.js +2 -0
  46. package/dist/cjs/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/resolved-result-stack/index.js +2 -0
  47. package/dist/cjs/view/FlexibleCard/components/blocks/title-block/errored/index.js +5 -6
  48. package/dist/cjs/view/FlexibleCard/components/blocks/title-block/resolving/index.js +3 -5
  49. package/dist/cjs/view/FlexibleCard/components/common/image-icon/index.js +3 -6
  50. package/dist/cjs/view/FlexibleCard/components/common/loading-skeleton/index.js +1 -2
  51. package/dist/cjs/view/FlexibleCard/components/container/index.js +3 -4
  52. package/dist/cjs/view/FlexibleCard/components/container/layered-link/index.js +1 -2
  53. package/dist/cjs/view/FlexibleCard/components/elements/atlaskit-badge/index.js +2 -3
  54. package/dist/cjs/view/FlexibleCard/components/elements/avatar-group/index.js +2 -3
  55. package/dist/cjs/view/FlexibleCard/components/elements/badge/index.js +5 -6
  56. package/dist/cjs/view/FlexibleCard/components/elements/date-time/index.js +2 -3
  57. package/dist/cjs/view/FlexibleCard/components/elements/icon/index.js +4 -5
  58. package/dist/cjs/view/FlexibleCard/components/elements/link/index.js +3 -4
  59. package/dist/cjs/view/FlexibleCard/components/elements/lozenge/index.js +3 -4
  60. package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/feature-discovery/index.js +7 -10
  61. package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/index.js +16 -19
  62. package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/index.js +13 -14
  63. package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-items-group/index.js +4 -6
  64. package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-trigger/index.js +10 -12
  65. package/dist/cjs/view/FlexibleCard/components/elements/media/index.js +2 -3
  66. package/dist/cjs/view/FlexibleCard/components/elements/preview/index.js +1 -3
  67. package/dist/cjs/view/FlexibleCard/components/elements/snippet-element/index.js +1 -2
  68. package/dist/cjs/view/FlexibleCard/components/elements/text/index.js +1 -2
  69. package/dist/cjs/view/HoverCard/components/CustomPopupContainer.js +1 -3
  70. package/dist/cjs/view/HoverCard/components/HoverCardComponent.js +26 -29
  71. package/dist/cjs/view/HoverCard/components/HoverCardContent.js +16 -19
  72. package/dist/cjs/view/HoverCard/components/views/resolving/index.js +12 -15
  73. package/dist/cjs/view/HoverCard/index.js +6 -9
  74. package/dist/cjs/view/{RedesignedInlineCard → InlineCard}/utils/withFrameStyleControl.js +1 -0
  75. package/dist/cjs/view/LinkUrl/LinkWarningModal/index.js +9 -12
  76. package/dist/cjs/view/LinkUrl/index.js +1 -1
  77. package/dist/cjs/view/LinkView/index.js +1 -1
  78. package/dist/cjs/view/common/Byline.js +1 -4
  79. package/dist/cjs/view/common/Icon.js +4 -5
  80. package/dist/cjs/view/common/Metadata.js +4 -7
  81. package/dist/cjs/view/common/MetadataList.js +2 -5
  82. package/dist/es2019/utils/analytics/analytics.js +1 -1
  83. package/dist/es2019/view/BlockCard/components/Action.js +3 -5
  84. package/dist/es2019/view/BlockCard/components/ActionList.js +8 -10
  85. package/dist/es2019/view/BlockCard/components/CollaboratorList.js +2 -4
  86. package/dist/es2019/view/BlockCard/components/Content.js +1 -3
  87. package/dist/es2019/view/BlockCard/components/ContentFooter.js +1 -3
  88. package/dist/es2019/view/BlockCard/components/ContentHeader.js +1 -3
  89. package/dist/es2019/view/BlockCard/components/Emoji.js +1 -3
  90. package/dist/es2019/view/BlockCard/components/Frame.js +3 -5
  91. package/dist/es2019/view/BlockCard/components/Link.js +1 -3
  92. package/dist/es2019/view/BlockCard/components/Name.js +1 -3
  93. package/dist/es2019/view/BlockCard/components/Provider.js +3 -5
  94. package/dist/es2019/view/BlockCard/components/Thumbnail.js +4 -6
  95. package/dist/es2019/view/BlockCard/components/UnresolvedText.js +1 -3
  96. package/dist/es2019/view/BlockCard/index.js +16 -19
  97. package/dist/es2019/view/BlockCard/views/ErroredView.js +8 -10
  98. package/dist/es2019/view/BlockCard/views/ForbiddenView.js +9 -11
  99. package/dist/es2019/view/BlockCard/views/NotFoundView.js +8 -10
  100. package/dist/es2019/view/BlockCard/views/ResolvedView.js +13 -15
  101. package/dist/es2019/view/BlockCard/views/ResolvingView.js +4 -6
  102. package/dist/es2019/view/BlockCard/views/UnauthorizedView.js +8 -10
  103. package/dist/es2019/view/BlockCard/views/flexible/FlexibleUnauthorisedView.js +5 -6
  104. package/dist/es2019/view/BlockCard/views/flexible/utils/withFlexibleUIBlockCardStyle.js +2 -4
  105. package/dist/es2019/view/CardWithData/component.js +1 -1
  106. package/dist/es2019/view/CardWithUrl/component.js +2 -2
  107. package/dist/es2019/view/EmbedCard/components/Frame.js +2 -4
  108. package/dist/es2019/view/EmbedCard/components/IframeDwellTracker.js +0 -1
  109. package/dist/es2019/view/EmbedCard/index.js +1 -1
  110. package/dist/es2019/view/EmbedCard/views/ErroredView.js +5 -7
  111. package/dist/es2019/view/EmbedCard/views/ResolvedView.js +4 -6
  112. package/dist/es2019/view/EmbedCard/views/UnresolvedView.js +9 -10
  113. package/dist/es2019/view/EmbedCard/views/unresolved-view/index.js +8 -10
  114. package/dist/es2019/view/EmbedModal/components/embed-content/index.js +2 -4
  115. package/dist/es2019/view/EmbedModal/components/link-info/index.js +20 -22
  116. package/dist/es2019/view/FlexibleCard/components/actions/action/action-button/index.js +5 -6
  117. package/dist/es2019/view/FlexibleCard/components/actions/action/action-icon/index.js +2 -3
  118. package/dist/es2019/view/FlexibleCard/components/actions/action/index.js +3 -5
  119. package/dist/es2019/view/FlexibleCard/components/blocks/action-group/action-group-item/index.js +1 -3
  120. package/dist/es2019/view/FlexibleCard/components/blocks/action-group/index.js +9 -10
  121. package/dist/es2019/view/FlexibleCard/components/blocks/block/index.js +2 -3
  122. package/dist/es2019/view/FlexibleCard/components/blocks/element-group/index.js +2 -3
  123. package/dist/es2019/view/FlexibleCard/components/blocks/preview-block/index.js +1 -3
  124. package/dist/es2019/view/FlexibleCard/components/blocks/preview-block/resolved/index.js +3 -4
  125. package/dist/es2019/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/index.js +2 -0
  126. package/dist/es2019/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/resolved-result-stack/index.js +2 -0
  127. package/dist/es2019/view/FlexibleCard/components/blocks/title-block/errored/index.js +6 -7
  128. package/dist/es2019/view/FlexibleCard/components/blocks/title-block/resolving/index.js +3 -5
  129. package/dist/es2019/view/FlexibleCard/components/common/image-icon/index.js +3 -5
  130. package/dist/es2019/view/FlexibleCard/components/common/loading-skeleton/index.js +2 -3
  131. package/dist/es2019/view/FlexibleCard/components/container/index.js +4 -5
  132. package/dist/es2019/view/FlexibleCard/components/container/layered-link/index.js +2 -3
  133. package/dist/es2019/view/FlexibleCard/components/elements/atlaskit-badge/index.js +3 -4
  134. package/dist/es2019/view/FlexibleCard/components/elements/avatar-group/index.js +3 -4
  135. package/dist/es2019/view/FlexibleCard/components/elements/badge/index.js +6 -7
  136. package/dist/es2019/view/FlexibleCard/components/elements/date-time/index.js +3 -4
  137. package/dist/es2019/view/FlexibleCard/components/elements/icon/index.js +5 -6
  138. package/dist/es2019/view/FlexibleCard/components/elements/link/index.js +4 -5
  139. package/dist/es2019/view/FlexibleCard/components/elements/lozenge/index.js +4 -5
  140. package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/feature-discovery/index.js +1 -3
  141. package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/index.js +4 -6
  142. package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/index.js +8 -10
  143. package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-items-group/index.js +3 -4
  144. package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-trigger/index.js +5 -7
  145. package/dist/es2019/view/FlexibleCard/components/elements/media/index.js +3 -4
  146. package/dist/es2019/view/FlexibleCard/components/elements/preview/index.js +1 -3
  147. package/dist/es2019/view/FlexibleCard/components/elements/snippet-element/index.js +2 -3
  148. package/dist/es2019/view/FlexibleCard/components/elements/text/index.js +2 -3
  149. package/dist/es2019/view/HoverCard/components/CustomPopupContainer.js +1 -3
  150. package/dist/es2019/view/HoverCard/components/HoverCardComponent.js +5 -7
  151. package/dist/es2019/view/HoverCard/components/HoverCardContent.js +7 -9
  152. package/dist/es2019/view/HoverCard/components/views/resolving/index.js +11 -13
  153. package/dist/es2019/view/HoverCard/index.js +4 -6
  154. package/dist/es2019/view/{RedesignedInlineCard → InlineCard}/utils/withFrameStyleControl.js +1 -0
  155. package/dist/es2019/view/LinkUrl/LinkWarningModal/index.js +9 -11
  156. package/dist/es2019/view/LinkUrl/index.js +1 -1
  157. package/dist/es2019/view/LinkView/index.js +1 -1
  158. package/dist/es2019/view/common/Byline.js +1 -3
  159. package/dist/es2019/view/common/Icon.js +5 -6
  160. package/dist/es2019/view/common/Metadata.js +4 -6
  161. package/dist/es2019/view/common/MetadataList.js +2 -4
  162. package/dist/esm/utils/analytics/analytics.js +1 -1
  163. package/dist/esm/view/BlockCard/components/Action.js +3 -5
  164. package/dist/esm/view/BlockCard/components/ActionList.js +9 -11
  165. package/dist/esm/view/BlockCard/components/CollaboratorList.js +2 -4
  166. package/dist/esm/view/BlockCard/components/Content.js +1 -3
  167. package/dist/esm/view/BlockCard/components/ContentFooter.js +1 -3
  168. package/dist/esm/view/BlockCard/components/ContentHeader.js +1 -3
  169. package/dist/esm/view/BlockCard/components/Emoji.js +1 -3
  170. package/dist/esm/view/BlockCard/components/Frame.js +3 -5
  171. package/dist/esm/view/BlockCard/components/Link.js +1 -3
  172. package/dist/esm/view/BlockCard/components/Name.js +1 -3
  173. package/dist/esm/view/BlockCard/components/Provider.js +3 -5
  174. package/dist/esm/view/BlockCard/components/Thumbnail.js +4 -6
  175. package/dist/esm/view/BlockCard/components/UnresolvedText.js +1 -3
  176. package/dist/esm/view/BlockCard/index.js +16 -19
  177. package/dist/esm/view/BlockCard/views/ErroredView.js +8 -10
  178. package/dist/esm/view/BlockCard/views/ForbiddenView.js +9 -11
  179. package/dist/esm/view/BlockCard/views/NotFoundView.js +8 -10
  180. package/dist/esm/view/BlockCard/views/ResolvedView.js +13 -15
  181. package/dist/esm/view/BlockCard/views/ResolvingView.js +4 -6
  182. package/dist/esm/view/BlockCard/views/UnauthorizedView.js +8 -10
  183. package/dist/esm/view/BlockCard/views/flexible/FlexibleUnauthorisedView.js +5 -6
  184. package/dist/esm/view/BlockCard/views/flexible/utils/withFlexibleUIBlockCardStyle.js +2 -4
  185. package/dist/esm/view/CardWithData/component.js +1 -1
  186. package/dist/esm/view/CardWithUrl/component.js +2 -2
  187. package/dist/esm/view/EmbedCard/components/Frame.js +2 -4
  188. package/dist/esm/view/EmbedCard/components/IframeDwellTracker.js +0 -1
  189. package/dist/esm/view/EmbedCard/index.js +1 -1
  190. package/dist/esm/view/EmbedCard/views/ErroredView.js +5 -7
  191. package/dist/esm/view/EmbedCard/views/ResolvedView.js +4 -6
  192. package/dist/esm/view/EmbedCard/views/UnresolvedView.js +9 -10
  193. package/dist/esm/view/EmbedCard/views/unresolved-view/index.js +8 -10
  194. package/dist/esm/view/EmbedModal/components/embed-content/index.js +2 -4
  195. package/dist/esm/view/EmbedModal/components/link-info/index.js +20 -22
  196. package/dist/esm/view/FlexibleCard/components/actions/action/action-button/index.js +5 -6
  197. package/dist/esm/view/FlexibleCard/components/actions/action/action-icon/index.js +2 -3
  198. package/dist/esm/view/FlexibleCard/components/actions/action/index.js +3 -5
  199. package/dist/esm/view/FlexibleCard/components/blocks/action-group/action-group-item/index.js +1 -3
  200. package/dist/esm/view/FlexibleCard/components/blocks/action-group/index.js +9 -10
  201. package/dist/esm/view/FlexibleCard/components/blocks/block/index.js +2 -3
  202. package/dist/esm/view/FlexibleCard/components/blocks/element-group/index.js +2 -3
  203. package/dist/esm/view/FlexibleCard/components/blocks/preview-block/index.js +1 -3
  204. package/dist/esm/view/FlexibleCard/components/blocks/preview-block/resolved/index.js +3 -4
  205. package/dist/esm/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/index.js +2 -0
  206. package/dist/esm/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/resolved-result-stack/index.js +2 -0
  207. package/dist/esm/view/FlexibleCard/components/blocks/title-block/errored/index.js +6 -7
  208. package/dist/esm/view/FlexibleCard/components/blocks/title-block/resolving/index.js +3 -5
  209. package/dist/esm/view/FlexibleCard/components/common/image-icon/index.js +3 -5
  210. package/dist/esm/view/FlexibleCard/components/common/loading-skeleton/index.js +2 -3
  211. package/dist/esm/view/FlexibleCard/components/container/index.js +4 -5
  212. package/dist/esm/view/FlexibleCard/components/container/layered-link/index.js +2 -3
  213. package/dist/esm/view/FlexibleCard/components/elements/atlaskit-badge/index.js +3 -4
  214. package/dist/esm/view/FlexibleCard/components/elements/avatar-group/index.js +3 -4
  215. package/dist/esm/view/FlexibleCard/components/elements/badge/index.js +6 -7
  216. package/dist/esm/view/FlexibleCard/components/elements/date-time/index.js +3 -4
  217. package/dist/esm/view/FlexibleCard/components/elements/icon/index.js +5 -6
  218. package/dist/esm/view/FlexibleCard/components/elements/link/index.js +4 -5
  219. package/dist/esm/view/FlexibleCard/components/elements/lozenge/index.js +4 -5
  220. package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/feature-discovery/index.js +1 -3
  221. package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/index.js +4 -6
  222. package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/index.js +8 -10
  223. package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-items-group/index.js +4 -5
  224. package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-trigger/index.js +5 -7
  225. package/dist/esm/view/FlexibleCard/components/elements/media/index.js +3 -4
  226. package/dist/esm/view/FlexibleCard/components/elements/preview/index.js +1 -3
  227. package/dist/esm/view/FlexibleCard/components/elements/snippet-element/index.js +2 -3
  228. package/dist/esm/view/FlexibleCard/components/elements/text/index.js +2 -3
  229. package/dist/esm/view/HoverCard/components/CustomPopupContainer.js +1 -3
  230. package/dist/esm/view/HoverCard/components/HoverCardComponent.js +5 -7
  231. package/dist/esm/view/HoverCard/components/HoverCardContent.js +7 -9
  232. package/dist/esm/view/HoverCard/components/views/resolving/index.js +11 -13
  233. package/dist/esm/view/HoverCard/index.js +4 -6
  234. package/dist/esm/view/{RedesignedInlineCard → InlineCard}/utils/withFrameStyleControl.js +1 -0
  235. package/dist/esm/view/LinkUrl/LinkWarningModal/index.js +9 -11
  236. package/dist/esm/view/LinkUrl/index.js +1 -1
  237. package/dist/esm/view/LinkView/index.js +1 -1
  238. package/dist/esm/view/common/Byline.js +1 -3
  239. package/dist/esm/view/common/Icon.js +5 -6
  240. package/dist/esm/view/common/Metadata.js +4 -6
  241. package/dist/esm/view/common/MetadataList.js +2 -4
  242. package/dist/types/extractors/inline/index.d.ts +1 -1
  243. package/dist/types/view/LinkView/index.d.ts +1 -1
  244. package/dist/types-ts4.5/extractors/inline/index.d.ts +1 -1
  245. package/dist/types-ts4.5/view/LinkView/index.d.ts +1 -1
  246. package/package.json +1 -1
  247. /package/dist/cjs/view/{RedesignedInlineCard → InlineCard}/ErroredView/index.js +0 -0
  248. /package/dist/cjs/view/{RedesignedInlineCard → InlineCard}/ForbiddenView/index.js +0 -0
  249. /package/dist/cjs/view/{RedesignedInlineCard → InlineCard}/Frame/index.js +0 -0
  250. /package/dist/cjs/view/{RedesignedInlineCard → InlineCard}/Frame/styled.js +0 -0
  251. /package/dist/cjs/view/{RedesignedInlineCard → InlineCard}/Icon.js +0 -0
  252. /package/dist/cjs/view/{RedesignedInlineCard → InlineCard}/IconAndTitleLayout/index.js +0 -0
  253. /package/dist/cjs/view/{RedesignedInlineCard → InlineCard}/IconAndTitleLayout/styled.js +0 -0
  254. /package/dist/cjs/view/{RedesignedInlineCard → InlineCard}/ResolvedView/index.js +0 -0
  255. /package/dist/cjs/view/{RedesignedInlineCard → InlineCard}/ResolvingView/index.js +0 -0
  256. /package/dist/cjs/view/{RedesignedInlineCard → InlineCard}/ResolvingView/styled.js +0 -0
  257. /package/dist/cjs/view/{RedesignedInlineCard → InlineCard}/UnauthorisedView/index.js +0 -0
  258. /package/dist/cjs/view/{RedesignedInlineCard → InlineCard}/index.js +0 -0
  259. /package/dist/cjs/view/{RedesignedInlineCard → InlineCard}/styled.js +0 -0
  260. /package/dist/cjs/view/{RedesignedInlineCard → InlineCard}/types.js +0 -0
  261. /package/dist/es2019/view/{RedesignedInlineCard → InlineCard}/ErroredView/index.js +0 -0
  262. /package/dist/es2019/view/{RedesignedInlineCard → InlineCard}/ForbiddenView/index.js +0 -0
  263. /package/dist/es2019/view/{RedesignedInlineCard → InlineCard}/Frame/index.js +0 -0
  264. /package/dist/es2019/view/{RedesignedInlineCard → InlineCard}/Frame/styled.js +0 -0
  265. /package/dist/es2019/view/{RedesignedInlineCard → InlineCard}/Icon.js +0 -0
  266. /package/dist/es2019/view/{RedesignedInlineCard → InlineCard}/IconAndTitleLayout/index.js +0 -0
  267. /package/dist/es2019/view/{RedesignedInlineCard → InlineCard}/IconAndTitleLayout/styled.js +0 -0
  268. /package/dist/es2019/view/{RedesignedInlineCard → InlineCard}/ResolvedView/index.js +0 -0
  269. /package/dist/es2019/view/{RedesignedInlineCard → InlineCard}/ResolvingView/index.js +0 -0
  270. /package/dist/es2019/view/{RedesignedInlineCard → InlineCard}/ResolvingView/styled.js +0 -0
  271. /package/dist/es2019/view/{RedesignedInlineCard → InlineCard}/UnauthorisedView/index.js +0 -0
  272. /package/dist/es2019/view/{RedesignedInlineCard → InlineCard}/index.js +0 -0
  273. /package/dist/es2019/view/{RedesignedInlineCard → InlineCard}/styled.js +0 -0
  274. /package/dist/es2019/view/{RedesignedInlineCard → InlineCard}/types.js +0 -0
  275. /package/dist/esm/view/{RedesignedInlineCard → InlineCard}/ErroredView/index.js +0 -0
  276. /package/dist/esm/view/{RedesignedInlineCard → InlineCard}/ForbiddenView/index.js +0 -0
  277. /package/dist/esm/view/{RedesignedInlineCard → InlineCard}/Frame/index.js +0 -0
  278. /package/dist/esm/view/{RedesignedInlineCard → InlineCard}/Frame/styled.js +0 -0
  279. /package/dist/esm/view/{RedesignedInlineCard → InlineCard}/Icon.js +0 -0
  280. /package/dist/esm/view/{RedesignedInlineCard → InlineCard}/IconAndTitleLayout/index.js +0 -0
  281. /package/dist/esm/view/{RedesignedInlineCard → InlineCard}/IconAndTitleLayout/styled.js +0 -0
  282. /package/dist/esm/view/{RedesignedInlineCard → InlineCard}/ResolvedView/index.js +0 -0
  283. /package/dist/esm/view/{RedesignedInlineCard → InlineCard}/ResolvingView/index.js +0 -0
  284. /package/dist/esm/view/{RedesignedInlineCard → InlineCard}/ResolvingView/styled.js +0 -0
  285. /package/dist/esm/view/{RedesignedInlineCard → InlineCard}/UnauthorisedView/index.js +0 -0
  286. /package/dist/esm/view/{RedesignedInlineCard → InlineCard}/index.js +0 -0
  287. /package/dist/esm/view/{RedesignedInlineCard → InlineCard}/styled.js +0 -0
  288. /package/dist/esm/view/{RedesignedInlineCard → InlineCard}/types.js +0 -0
  289. /package/dist/types/view/{RedesignedInlineCard → InlineCard}/ErroredView/index.d.ts +0 -0
  290. /package/dist/types/view/{RedesignedInlineCard → InlineCard}/ForbiddenView/index.d.ts +0 -0
  291. /package/dist/types/view/{RedesignedInlineCard → InlineCard}/Frame/index.d.ts +0 -0
  292. /package/dist/types/view/{RedesignedInlineCard → InlineCard}/Frame/styled.d.ts +0 -0
  293. /package/dist/types/view/{RedesignedInlineCard → InlineCard}/Icon.d.ts +0 -0
  294. /package/dist/types/view/{RedesignedInlineCard → InlineCard}/IconAndTitleLayout/index.d.ts +0 -0
  295. /package/dist/types/view/{RedesignedInlineCard → InlineCard}/IconAndTitleLayout/styled.d.ts +0 -0
  296. /package/dist/types/view/{RedesignedInlineCard → InlineCard}/ResolvedView/index.d.ts +0 -0
  297. /package/dist/types/view/{RedesignedInlineCard → InlineCard}/ResolvingView/index.d.ts +0 -0
  298. /package/dist/types/view/{RedesignedInlineCard → InlineCard}/ResolvingView/styled.d.ts +0 -0
  299. /package/dist/types/view/{RedesignedInlineCard → InlineCard}/UnauthorisedView/index.d.ts +0 -0
  300. /package/dist/types/view/{RedesignedInlineCard → InlineCard}/index.d.ts +0 -0
  301. /package/dist/types/view/{RedesignedInlineCard → InlineCard}/styled.d.ts +0 -0
  302. /package/dist/types/view/{RedesignedInlineCard → InlineCard}/types.d.ts +0 -0
  303. /package/dist/types/view/{RedesignedInlineCard → InlineCard}/utils/withFrameStyleControl.d.ts +0 -0
  304. /package/dist/types-ts4.5/view/{RedesignedInlineCard → InlineCard}/ErroredView/index.d.ts +0 -0
  305. /package/dist/types-ts4.5/view/{RedesignedInlineCard → InlineCard}/ForbiddenView/index.d.ts +0 -0
  306. /package/dist/types-ts4.5/view/{RedesignedInlineCard → InlineCard}/Frame/index.d.ts +0 -0
  307. /package/dist/types-ts4.5/view/{RedesignedInlineCard → InlineCard}/Frame/styled.d.ts +0 -0
  308. /package/dist/types-ts4.5/view/{RedesignedInlineCard → InlineCard}/Icon.d.ts +0 -0
  309. /package/dist/types-ts4.5/view/{RedesignedInlineCard → InlineCard}/IconAndTitleLayout/index.d.ts +0 -0
  310. /package/dist/types-ts4.5/view/{RedesignedInlineCard → InlineCard}/IconAndTitleLayout/styled.d.ts +0 -0
  311. /package/dist/types-ts4.5/view/{RedesignedInlineCard → InlineCard}/ResolvedView/index.d.ts +0 -0
  312. /package/dist/types-ts4.5/view/{RedesignedInlineCard → InlineCard}/ResolvingView/index.d.ts +0 -0
  313. /package/dist/types-ts4.5/view/{RedesignedInlineCard → InlineCard}/ResolvingView/styled.d.ts +0 -0
  314. /package/dist/types-ts4.5/view/{RedesignedInlineCard → InlineCard}/UnauthorisedView/index.d.ts +0 -0
  315. /package/dist/types-ts4.5/view/{RedesignedInlineCard → InlineCard}/index.d.ts +0 -0
  316. /package/dist/types-ts4.5/view/{RedesignedInlineCard → InlineCard}/styled.d.ts +0 -0
  317. /package/dist/types-ts4.5/view/{RedesignedInlineCard → InlineCard}/types.d.ts +0 -0
  318. /package/dist/types-ts4.5/view/{RedesignedInlineCard → InlineCard}/utils/withFrameStyleControl.d.ts +0 -0
@@ -1,5 +1,3 @@
1
- /** @jsx jsx */
2
- import { jsx } from '@emotion/react';
3
1
  import React, { useMemo } from 'react';
4
2
  import { FormattedMessage } from 'react-intl-next';
5
3
  import { useModal } from '@atlaskit/modal-dialog';
@@ -28,9 +26,9 @@ const LinkInfo = ({
28
26
  } = useModal();
29
27
  const downloadButton = useMemo(() => {
30
28
  if (onDownloadButtonClick) {
31
- return jsx(LinkInfoButton, {
32
- content: jsx(FormattedMessage, messages.download),
33
- icon: jsx(DownloadIcon, {
29
+ return /*#__PURE__*/React.createElement(LinkInfoButton, {
30
+ content: /*#__PURE__*/React.createElement(FormattedMessage, messages.download),
31
+ icon: /*#__PURE__*/React.createElement(DownloadIcon, {
34
32
  label: messages.download.defaultMessage
35
33
  }),
36
34
  onClick: onDownloadButtonClick,
@@ -40,10 +38,10 @@ const LinkInfo = ({
40
38
  }, [onDownloadButtonClick, testId]);
41
39
  const urlButton = useMemo(() => {
42
40
  if (onViewButtonClick) {
43
- const content = providerName ? jsx(React.Fragment, null, jsx(FormattedMessage, messages.viewIn), " ", providerName) : jsx(FormattedMessage, messages.viewOriginal);
44
- return jsx(LinkInfoButton, {
41
+ const content = providerName ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FormattedMessage, messages.viewIn), " ", providerName) : /*#__PURE__*/React.createElement(FormattedMessage, messages.viewOriginal);
42
+ return /*#__PURE__*/React.createElement(LinkInfoButton, {
45
43
  content: content,
46
- icon: jsx(ShortcutIcon, {
44
+ icon: /*#__PURE__*/React.createElement(ShortcutIcon, {
47
45
  label: messages.viewOriginal.defaultMessage
48
46
  }),
49
47
  onClick: onViewButtonClick,
@@ -54,36 +52,36 @@ const LinkInfo = ({
54
52
  const sizeButton = useMemo(() => {
55
53
  const isFullScreen = size === MAX_MODAL_SIZE;
56
54
  const message = isFullScreen ? messages.preview_min_size : messages.preview_max_size;
57
- const icon = isFullScreen ? jsx(VidFullScreenOffIcon, {
55
+ const icon = isFullScreen ? /*#__PURE__*/React.createElement(VidFullScreenOffIcon, {
58
56
  label: message.defaultMessage
59
- }) : jsx(VidFullScreenOnIcon, {
57
+ }) : /*#__PURE__*/React.createElement(VidFullScreenOnIcon, {
60
58
  label: message.defaultMessage
61
59
  });
62
- return jsx("span", {
60
+ return /*#__PURE__*/React.createElement("span", {
63
61
  className: "smart-link-resize-button"
64
- }, jsx(LinkInfoButton, {
65
- content: jsx(FormattedMessage, message),
62
+ }, /*#__PURE__*/React.createElement(LinkInfoButton, {
63
+ content: /*#__PURE__*/React.createElement(FormattedMessage, message),
66
64
  icon: icon,
67
65
  onClick: onResizeButtonClick,
68
66
  testId: `${testId}-resize`
69
67
  }));
70
68
  }, [onResizeButtonClick, size, testId]);
71
- return jsx("div", {
69
+ return /*#__PURE__*/React.createElement("div", {
72
70
  css: containerStyles
73
- }, icon && jsx("div", {
71
+ }, icon && /*#__PURE__*/React.createElement("div", {
74
72
  css: iconCss,
75
73
  "data-testid": `${testId}-icon`
76
- }, jsx(Icon, icon)), jsx("div", {
74
+ }, /*#__PURE__*/React.createElement(Icon, icon)), /*#__PURE__*/React.createElement("div", {
77
75
  css: titleCss
78
- }, jsx("h3", {
76
+ }, /*#__PURE__*/React.createElement("h3", {
79
77
  "data-testid": `${testId}-title`
80
- }, title), jsx("span", {
78
+ }, title), /*#__PURE__*/React.createElement("span", {
81
79
  tabIndex: 0
82
- })), jsx("div", {
80
+ })), /*#__PURE__*/React.createElement("div", {
83
81
  css: actionCss
84
- }, downloadButton, urlButton, sizeButton, jsx(LinkInfoButton, {
85
- content: jsx(FormattedMessage, messages.preview_close),
86
- icon: jsx(CrossIcon, {
82
+ }, downloadButton, urlButton, sizeButton, /*#__PURE__*/React.createElement(LinkInfoButton, {
83
+ content: /*#__PURE__*/React.createElement(FormattedMessage, messages.preview_close),
84
+ icon: /*#__PURE__*/React.createElement(CrossIcon, {
87
85
  label: messages.preview_close.defaultMessage
88
86
  }),
89
87
  onClick: onClose,
@@ -1,6 +1,5 @@
1
- /** @jsx jsx */
2
1
  import React, { useCallback } from 'react';
3
- import { css, jsx } from '@emotion/react';
2
+ import { css } from '@emotion/react';
4
3
  import Button from '@atlaskit/button/custom-theme-button';
5
4
  import { LoadingButton } from '@atlaskit/button';
6
5
  import { getBooleanFF } from '@atlaskit/platform-feature-flags';
@@ -63,14 +62,14 @@ const ActionButton = ({
63
62
  e.preventDefault();
64
63
  handler();
65
64
  }, []);
66
- return jsx("div", {
65
+ return /*#__PURE__*/React.createElement("div", {
67
66
  css: [getButtonStyle(size, iconOnly), overrideCss],
68
67
  "data-testid": `${testId}-button-wrapper`
69
- }, jsx(Tooltip, {
68
+ }, /*#__PURE__*/React.createElement(Tooltip, {
70
69
  content: tooltipMessage,
71
70
  hideTooltipOnClick: true,
72
71
  testId: `${testId}-tooltip`
73
- }, getBooleanFF('platform.linking-platform.smart-card.follow-button') ? jsx(LoadingButton, {
72
+ }, getBooleanFF('platform.linking-platform.smart-card.follow-button') ? /*#__PURE__*/React.createElement(LoadingButton, {
74
73
  appearance: appearance,
75
74
  iconAfter: iconAfter,
76
75
  iconBefore: iconBefore,
@@ -79,7 +78,7 @@ const ActionButton = ({
79
78
  onClick: onButtonClick(onClick),
80
79
  spacing: sizeToButtonSpacing[size],
81
80
  testId: testId
82
- }, content) : jsx(Button, {
81
+ }, content) : /*#__PURE__*/React.createElement(Button, {
83
82
  appearance: appearance,
84
83
  iconAfter: iconAfter,
85
84
  iconBefore: iconBefore,
@@ -1,6 +1,5 @@
1
- /** @jsx jsx */
2
1
  import React from 'react';
3
- import { css, jsx } from '@emotion/react';
2
+ import { css } from '@emotion/react';
4
3
  import { SmartLinkSize } from '../../../../../../constants';
5
4
  import { getIconSizeStyles } from '../../../utils';
6
5
  const getIconWidth = size => {
@@ -23,7 +22,7 @@ const ActionIcon = ({
23
22
  testId,
24
23
  icon,
25
24
  isDisabled
26
- }) => jsx("span", {
25
+ }) => /*#__PURE__*/React.createElement("span", {
27
26
  css: getIconStyles(size, isDisabled),
28
27
  "data-testid": `${testId}-icon`
29
28
  }, icon);
@@ -1,6 +1,4 @@
1
- /** @jsx jsx */
2
1
  import React from 'react';
3
- import { jsx } from '@emotion/react';
4
2
  import { SmartLinkSize } from '../../../../../constants';
5
3
  import ActionButton from './action-button';
6
4
  import ActionDropdownItem from './action-dropdown-item';
@@ -31,7 +29,7 @@ const Action = ({
31
29
  if (!onClick) {
32
30
  return null;
33
31
  }
34
- const actionIcon = icon && jsx(ActionIcon, {
32
+ const actionIcon = icon && /*#__PURE__*/React.createElement(ActionIcon, {
35
33
  isDisabled: isDisabled,
36
34
  icon: icon,
37
35
  size: size,
@@ -40,7 +38,7 @@ const Action = ({
40
38
  const iconBefore = icon && iconPosition === 'before' ? actionIcon : undefined;
41
39
  const iconAfter = icon && iconPosition === 'after' ? actionIcon : undefined;
42
40
  if (asDropDownItem) {
43
- return jsx(ActionDropdownItem, {
41
+ return /*#__PURE__*/React.createElement(ActionDropdownItem, {
44
42
  content: content,
45
43
  iconAfter: iconAfter,
46
44
  iconBefore: iconBefore,
@@ -49,7 +47,7 @@ const Action = ({
49
47
  testId: testId
50
48
  });
51
49
  } else {
52
- return jsx(ActionButton, {
50
+ return /*#__PURE__*/React.createElement(ActionButton, {
53
51
  appearance: appearance,
54
52
  content: content,
55
53
  iconAfter: iconAfter,
@@ -1,6 +1,4 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
- /** @jsx jsx */
3
- import { jsx } from '@emotion/react';
4
2
  import React, { useCallback } from 'react';
5
3
  import * as Actions from '../../../actions';
6
4
  import { isJSXElementNull } from '../../utils';
@@ -40,7 +38,7 @@ const ActionGroupItem = ({
40
38
  if (hideIcon) {
41
39
  actionProps.icon = undefined;
42
40
  }
43
- const action = jsx(Action, _extends({
41
+ const action = /*#__PURE__*/React.createElement(Action, _extends({
44
42
  url: "",
45
43
  asDropDownItem: asDropDownItems,
46
44
  size: size,
@@ -1,8 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
- /** @jsx jsx */
3
2
  import { useCallback, useMemo, useState } from 'react';
4
3
  import { FormattedMessage } from 'react-intl-next';
5
- import { css, jsx } from '@emotion/react';
4
+ import { css } from '@emotion/react';
6
5
  import ButtonGroup from '@atlaskit/button/button-group';
7
6
  import Tooltip from '@atlaskit/tooltip';
8
7
  import DropdownMenu from '@atlaskit/dropdown-menu';
@@ -30,7 +29,7 @@ const styles = css`
30
29
  }
31
30
  }
32
31
  `;
33
- const renderActionItems = (items = [], size = SmartLinkSize.Medium, appearance, asDropDownItems, onActionItemClick) => items.map((item, idx) => jsx(ActionGroupItem, {
32
+ const renderActionItems = (items = [], size = SmartLinkSize.Medium, appearance, asDropDownItems, onActionItemClick) => items.map((item, idx) => /*#__PURE__*/React.createElement(ActionGroupItem, {
34
33
  item: item,
35
34
  key: idx,
36
35
  size: size,
@@ -79,22 +78,22 @@ const ActionGroup = ({
79
78
  const actionItems = isMoreThenTwoItems ? renderableActionItems.slice(visibleButtonsNum - 1) : [];
80
79
  if (actionItems.length > 0) {
81
80
  const spacing = sizeToButtonSpacing[size];
82
- const moreIcon = jsx(MoreIcon, {
81
+ const moreIcon = /*#__PURE__*/React.createElement(MoreIcon, {
83
82
  label: "more"
84
83
  });
85
- const formatMessage = jsx(FormattedMessage, messages.more_actions);
86
- return jsx(DropdownMenu, {
84
+ const formatMessage = /*#__PURE__*/React.createElement(FormattedMessage, messages.more_actions);
85
+ return /*#__PURE__*/React.createElement(DropdownMenu, {
87
86
  isOpen: isOpen,
88
87
  onOpenChange: onOpenChange,
89
88
  trigger: ({
90
89
  triggerRef,
91
90
  ...props
92
- }) => jsx(Tooltip, {
91
+ }) => /*#__PURE__*/React.createElement(Tooltip, {
93
92
  content: formatMessage,
94
93
  hideTooltipOnClick: true,
95
94
  testId: "action-group-more-button-tooltip",
96
95
  tag: "span"
97
- }, jsx(Button, _extends({}, props, {
96
+ }, /*#__PURE__*/React.createElement(Button, _extends({}, props, {
98
97
  spacing: spacing,
99
98
  testId: "action-group-more-button",
100
99
  iconBefore: moreIcon,
@@ -106,10 +105,10 @@ const ActionGroup = ({
106
105
  }
107
106
  return null;
108
107
  }, [appearance, isMoreThenTwoItems, isOpen, onActionItemClick, onOpenChange, renderableActionItems, size, ui === null || ui === void 0 ? void 0 : ui.zIndex, visibleButtonsNum]);
109
- return renderableActionItems.length > 0 ? jsx("div", {
108
+ return renderableActionItems.length > 0 ? /*#__PURE__*/React.createElement("div", {
110
109
  css: styles,
111
110
  className: "actions-button-group",
112
111
  "data-action-open": isOpen
113
- }, jsx(ButtonGroup, null, actionButtons, moreActionDropdown)) : null;
112
+ }, /*#__PURE__*/React.createElement(ButtonGroup, null, actionButtons, moreActionDropdown)) : null;
114
113
  };
115
114
  export default ActionGroup;
@@ -1,6 +1,5 @@
1
- /** @jsx jsx */
2
1
  import React, { useEffect } from 'react';
3
- import { css, jsx } from '@emotion/react';
2
+ import { css } from '@emotion/react';
4
3
  import { ElementName, SmartLinkDirection, SmartLinkSize } from '../../../../../constants';
5
4
  import { getBaseStyles, getGapSize, highlightRemoveStyles, renderChildren } from '../utils';
6
5
  const getBlockStyles = (direction, size) => css`
@@ -43,7 +42,7 @@ const Block = ({
43
42
  useEffect(() => {
44
43
  onRender && onRender();
45
44
  }, [onRender]);
46
- return jsx("div", {
45
+ return /*#__PURE__*/React.createElement("div", {
47
46
  css: [getBlockStyles(direction, size), overrideCss],
48
47
  "data-smart-block": true,
49
48
  "data-testid": testId,
@@ -1,6 +1,5 @@
1
- /** @jsx jsx */
2
1
  import React from 'react';
3
- import { css, jsx } from '@emotion/react';
2
+ import { css } from '@emotion/react';
4
3
  import { SmartLinkAlignment, SmartLinkDirection, SmartLinkPosition, SmartLinkSize, SmartLinkWidth } from '../../../../../constants';
5
4
  import { getBaseStyles, getGapSize, renderChildren } from '../utils';
6
5
  import { getMaxLineHeight, getTruncateStyles } from '../../utils';
@@ -90,7 +89,7 @@ const ElementGroup = ({
90
89
  testId = 'smart-element-group',
91
90
  width = SmartLinkWidth.FitToContent,
92
91
  position = SmartLinkPosition.Center
93
- }) => jsx("div", {
92
+ }) => /*#__PURE__*/React.createElement("div", {
94
93
  css: [getElementGroupStyles(direction, size, align, width, position), overrideCss],
95
94
  "data-smart-element-group": true,
96
95
  "data-testid": testId
@@ -1,7 +1,5 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
- /** @jsx jsx */
3
2
  import React from 'react';
4
- import { jsx } from '@emotion/react';
5
3
  import { SmartLinkStatus } from '../../../../../constants';
6
4
  import PreviewBlockResolvedView from './resolved';
7
5
 
@@ -17,7 +15,7 @@ const PreviewBlock = ({
17
15
  overrideUrl,
18
16
  ...blockProps
19
17
  }) => {
20
- return jsx(PreviewBlockResolvedView, _extends({}, blockProps, {
18
+ return /*#__PURE__*/React.createElement(PreviewBlockResolvedView, _extends({}, blockProps, {
21
19
  testId: testId,
22
20
  overrideUrl: overrideUrl
23
21
  }));
@@ -1,7 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
- /** @jsx jsx */
3
2
  import React, { useCallback, useEffect, useState } from 'react';
4
- import { css, jsx } from '@emotion/react';
3
+ import { css } from '@emotion/react';
5
4
  import { MediaPlacement } from '../../../../../../constants';
6
5
  import Block from '../../block';
7
6
  import { Preview } from '../../../elements';
@@ -89,10 +88,10 @@ const PreviewBlockResolvedView = ({
89
88
  onError();
90
89
  }
91
90
  }, [onError]);
92
- return jsx(Block, _extends({}, blockProps, {
91
+ return /*#__PURE__*/React.createElement(Block, _extends({}, blockProps, {
93
92
  overrideCss: styles,
94
93
  testId: `${testId}-resolved-view`
95
- }), jsx(Preview, {
94
+ }), /*#__PURE__*/React.createElement(Preview, {
96
95
  onError: handleOnError,
97
96
  onLoad: handleOnLoad,
98
97
  overrideUrl: overrideUrl
@@ -1,3 +1,5 @@
1
+ /* index.tsx generated by @compiled/babel-plugin v0.26.1 */
2
+ import { ax, ix } from "@compiled/react/runtime";
1
3
  import React, { useCallback, useState } from 'react';
2
4
  import { useIntl } from 'react-intl-next';
3
5
  import ChevronDownIcon from '@atlaskit/icon/glyph/chevron-down';
@@ -1,3 +1,5 @@
1
+ /* index.tsx generated by @compiled/babel-plugin v0.26.1 */
2
+ import { ax, ix } from "@compiled/react/runtime";
1
3
  import React, { useEffect } from 'react';
2
4
  import { Stack, xcss } from '@atlaskit/primitives';
3
5
  import { AnalyticsContext, useAnalyticsEvents } from '@atlaskit/analytics-next';
@@ -1,8 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
- /** @jsx jsx */
3
2
  import React from 'react';
4
3
  import { FormattedMessage } from 'react-intl-next';
5
- import { css, jsx } from '@emotion/react';
4
+ import { css } from '@emotion/react';
6
5
  import { LinkIcon } from '../../../elements';
7
6
  import Block from '../../block';
8
7
  import { SmartLinkAlignment, SmartLinkDirection, SmartLinkSize } from '../../../../../../constants';
@@ -56,20 +55,20 @@ const TitleBlockErroredView = ({
56
55
  size = SmartLinkSize.Medium
57
56
  } = blockProps;
58
57
  const hasAction = onClick !== undefined;
59
- return jsx(Block, _extends({}, blockProps, {
58
+ return /*#__PURE__*/React.createElement(Block, _extends({}, blockProps, {
60
59
  testId: `${testId}-errored-view`
61
- }), !hideIcon && jsx(LinkIcon, {
60
+ }), !hideIcon && /*#__PURE__*/React.createElement(LinkIcon, {
62
61
  position: position
63
- }), title, descriptor && jsx(ElementGroup, {
62
+ }), title, descriptor && /*#__PURE__*/React.createElement(ElementGroup, {
64
63
  direction: SmartLinkDirection.Horizontal,
65
64
  align: SmartLinkAlignment.Right
66
- }, jsx("span", {
65
+ }, /*#__PURE__*/React.createElement("span", {
67
66
  className: hasAction ? 'has-action' : '',
68
67
  css: getMessageStyles(size, hasAction),
69
68
  onClick: onClick,
70
69
  "data-testid": `${testId}-errored-view-message`,
71
70
  tabIndex: hasAction ? 0 : -1
72
- }, jsx(FormattedMessage, _extends({}, descriptor, {
71
+ }, /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, descriptor, {
73
72
  values: values
74
73
  })))), actionGroup);
75
74
  };
@@ -1,7 +1,5 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
- /** @jsx jsx */
3
2
  import React from 'react';
4
- import { jsx } from '@emotion/react';
5
3
  import Block from '../../block';
6
4
  import { SmartLinkSize } from '../../../../../../constants';
7
5
  import LoadingSkeleton from '../../../common/loading-skeleton';
@@ -25,12 +23,12 @@ const TitleBlockResolvingView = ({
25
23
  } = blockProps;
26
24
  const iconWidth = getIconWidth(size);
27
25
  const iconStyles = getIconSizeStyles(iconWidth);
28
- return jsx(Block, _extends({}, blockProps, {
26
+ return /*#__PURE__*/React.createElement(Block, _extends({}, blockProps, {
29
27
  testId: `${testId}-resolving-view`
30
- }), !hideIcon && jsx("span", {
28
+ }), !hideIcon && /*#__PURE__*/React.createElement("span", {
31
29
  css: iconStyles,
32
30
  "data-testid": `${testId}-icon`
33
- }, jsx(LoadingSkeleton, {
31
+ }, /*#__PURE__*/React.createElement(LoadingSkeleton, {
34
32
  testId: `${testId}-icon-loading`
35
33
  })), title, actionGroup);
36
34
  };
@@ -1,6 +1,4 @@
1
- /** @jsx jsx */
2
1
  import React from 'react';
3
- import { jsx } from '@emotion/react';
4
2
  import ImageLoader from 'react-render-image';
5
3
  import LoadingSkeleton from '../loading-skeleton';
6
4
  const ImageIcon = ({
@@ -9,12 +7,12 @@ const ImageIcon = ({
9
7
  url,
10
8
  onError,
11
9
  onLoad
12
- }) => jsx(ImageLoader, {
10
+ }) => /*#__PURE__*/React.createElement(ImageLoader, {
13
11
  src: url,
14
- loading: jsx(LoadingSkeleton, {
12
+ loading: /*#__PURE__*/React.createElement(LoadingSkeleton, {
15
13
  testId: `${testId}-loading`
16
14
  }),
17
- loaded: jsx("img", {
15
+ loaded: /*#__PURE__*/React.createElement("img", {
18
16
  src: url,
19
17
  "data-testid": `${testId}-image`
20
18
  }),
@@ -1,6 +1,5 @@
1
- /** @jsx jsx */
2
1
  import React from 'react';
3
- import { css, jsx, keyframes } from '@emotion/react';
2
+ import { css, keyframes } from '@emotion/react';
4
3
  const LoadingSkeleton = ({
5
4
  testId,
6
5
  width,
@@ -33,7 +32,7 @@ const LoadingSkeleton = ({
33
32
  animation-name: ${animationNameStyles};
34
33
  animation-timing-function: linear;
35
34
  `;
36
- return jsx("span", {
35
+ return /*#__PURE__*/React.createElement("span", {
37
36
  css: styles,
38
37
  "data-testid": testId
39
38
  });
@@ -1,6 +1,5 @@
1
- /** @jsx jsx */
2
1
  import React, { useContext } from 'react';
3
- import { css, jsx } from '@emotion/react';
2
+ import { css } from '@emotion/react';
4
3
  import { MediaPlacement, SmartLinkSize, SmartLinkTheme } from '../../../../constants';
5
4
  import { isFlexibleUiBlock, isFlexibleUiPreviewBlock, isFlexibleUiTitleBlock } from '../../../../utils/flexible';
6
5
  import { tokens } from '../../../../utils/token';
@@ -150,7 +149,7 @@ const getLayeredLink = (testId, context, children, onClick) => {
150
149
  anchorTarget: target,
151
150
  text
152
151
  } = getTitleBlockProps(children) || {};
153
- return jsx(LayeredLink, {
152
+ return /*#__PURE__*/React.createElement(LayeredLink, {
154
153
  onClick: onClick,
155
154
  target: target,
156
155
  testId: testId,
@@ -190,13 +189,13 @@ const Container = ({
190
189
  // `retry` object contains action that can be performed on
191
190
  // unresolved link (unauthorized, forbidden, not found, etc.)
192
191
  const canShowAuthTooltip = showAuthTooltip && status === 'unauthorized' && retry !== undefined;
193
- const container = jsx("div", {
192
+ const container = /*#__PURE__*/React.createElement("div", {
194
193
  css: getContainerStyles(size, hideBackground, hideElevation, hidePadding, clickableContainer, childrenOptions),
195
194
  "data-smart-link-container": true,
196
195
  "data-testid": testId
197
196
  }, clickableContainer ? getLayeredLink(testId, context, children, onClick) : null, renderChildren(children, size, theme, status, retry, onClick));
198
197
  if (context !== null && context !== void 0 && context.url && (canShowHoverPreview || canShowAuthTooltip)) {
199
- return jsx(HoverCardControl, {
198
+ return /*#__PURE__*/React.createElement(HoverCardControl, {
200
199
  hideHoverCardPreviewButton: hideHoverCardPreviewButton,
201
200
  isHoverPreview: canShowHoverPreview,
202
201
  isAuthTooltip: canShowAuthTooltip,
@@ -1,6 +1,5 @@
1
- /** @jsx jsx */
2
1
  import React from 'react';
3
- import { jsx, css } from '@emotion/react';
2
+ import { css } from '@emotion/react';
4
3
  import { useMouseDownEvent } from '../../../../../state/analytics/useLinkClicked';
5
4
  const styles = css`
6
5
  // Stretch the invisible link over the whole of the post.
@@ -50,7 +49,7 @@ const LayeredLink = ({
50
49
  url
51
50
  }) => {
52
51
  const onMouseDown = useMouseDownEvent();
53
- return jsx("a", {
52
+ return /*#__PURE__*/React.createElement("a", {
54
53
  className: "layered-link",
55
54
  css: styles,
56
55
  "data-testid": `${testId}-layered-link`,
@@ -1,7 +1,6 @@
1
- /** @jsx jsx */
2
1
  import React from 'react';
3
2
  import AKBadge from '@atlaskit/badge';
4
- import { css, jsx } from '@emotion/react';
3
+ import { css } from '@emotion/react';
5
4
  const badgeStyles = css`
6
5
  align-items: center;
7
6
  display: inline-flex;
@@ -22,12 +21,12 @@ const AtlaskitBadge = ({
22
21
  if (!value) {
23
22
  return null;
24
23
  }
25
- return jsx("span", {
24
+ return /*#__PURE__*/React.createElement("span", {
26
25
  css: [badgeStyles, overrideCss],
27
26
  "data-fit-to-content": true,
28
27
  "data-smart-element": name,
29
28
  "data-smart-element-atlaskit-badge": true,
30
29
  "data-testid": testId
31
- }, jsx(AKBadge, null, value));
30
+ }, /*#__PURE__*/React.createElement(AKBadge, null, value));
32
31
  };
33
32
  export default AtlaskitBadge;
@@ -1,6 +1,5 @@
1
- /** @jsx jsx */
2
1
  import React, { useMemo } from 'react';
3
- import { css, jsx } from '@emotion/react';
2
+ import { css } from '@emotion/react';
4
3
  import AtlaskitAvatarGroup from '@atlaskit/avatar-group';
5
4
  import { SmartLinkSize } from '../../../../../constants';
6
5
  import { messages } from '../../../../../messages';
@@ -94,13 +93,13 @@ const AvatarGroup = ({
94
93
  if (!data.length) {
95
94
  return null;
96
95
  }
97
- return jsx("span", {
96
+ return /*#__PURE__*/React.createElement("span", {
98
97
  css: [getStyles(size), overrideCss],
99
98
  "data-fit-to-content": true,
100
99
  "data-smart-element": name,
101
100
  "data-smart-element-avatar-group": true,
102
101
  "data-testid": testId
103
- }, jsx(AtlaskitAvatarGroup, {
102
+ }, /*#__PURE__*/React.createElement(AtlaskitAvatarGroup, {
104
103
  maxCount: maxCount,
105
104
  appearance: "stack",
106
105
  size: "small",
@@ -1,6 +1,5 @@
1
- /** @jsx jsx */
2
1
  import React from 'react';
3
- import { css, jsx } from '@emotion/react';
2
+ import { css } from '@emotion/react';
4
3
  import { tokens } from '../../../../../utils/token';
5
4
  import { getFormattedMessage, getIconSizeStyles } from '../../utils';
6
5
  import { IconType } from '../../../../../constants';
@@ -56,7 +55,7 @@ const getFormattedMessageFromIcon = icon => {
56
55
  };
57
56
  const renderAtlaskitIcon = (icon, testId) => {
58
57
  if (icon) {
59
- return jsx(AtlaskitIcon, {
58
+ return /*#__PURE__*/React.createElement(AtlaskitIcon, {
60
59
  icon: icon,
61
60
  label: icon,
62
61
  testId: `${testId}-icon`
@@ -65,7 +64,7 @@ const renderAtlaskitIcon = (icon, testId) => {
65
64
  };
66
65
  const renderImageIcon = (url, testId) => {
67
66
  if (url) {
68
- return jsx(ImageIcon, {
67
+ return /*#__PURE__*/React.createElement(ImageIcon, {
69
68
  testId: testId,
70
69
  url: url
71
70
  });
@@ -98,15 +97,15 @@ const Badge = ({
98
97
  if (!formattedMessageOrLabel || !badgeIcon) {
99
98
  return null;
100
99
  }
101
- return jsx("span", {
100
+ return /*#__PURE__*/React.createElement("span", {
102
101
  css: [badgeStyles, overrideCss],
103
102
  "data-fit-to-content": true,
104
103
  "data-smart-element": name,
105
104
  "data-smart-element-badge": true,
106
105
  "data-testid": testId
107
- }, jsx("span", {
106
+ }, /*#__PURE__*/React.createElement("span", {
108
107
  css: iconStyles
109
- }, badgeIcon), jsx("span", {
108
+ }, badgeIcon), /*#__PURE__*/React.createElement("span", {
110
109
  css: labelStyles,
111
110
  "data-testid": `${testId}-label`
112
111
  }, formattedMessageOrLabel));
@@ -1,8 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
- /** @jsx jsx */
3
2
  import React from 'react';
4
3
  import { useIntl, FormattedMessage } from 'react-intl-next';
5
- import { css, jsx } from '@emotion/react';
4
+ import { css } from '@emotion/react';
6
5
  import { getTruncateStyles } from '../../utils';
7
6
  import { tokens } from '../../../../../utils/token';
8
7
  import { selectUnit } from '@formatjs/intl-utils';
@@ -71,13 +70,13 @@ const DateTime = ({
71
70
  numeric: 'auto'
72
71
  });
73
72
  }
74
- return jsx("span", {
73
+ return /*#__PURE__*/React.createElement("span", {
75
74
  css: [styles, overrideCss],
76
75
  "data-separator": true,
77
76
  "data-smart-element": name,
78
77
  "data-smart-element-date-time": true,
79
78
  "data-testid": testId
80
- }, text ? `${text} ${context}` : jsx(FormattedMessage, _extends({}, typeToDescriptorMap[type][typeVariant], {
79
+ }, text ? `${text} ${context}` : /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, typeToDescriptorMap[type][typeVariant], {
81
80
  values: {
82
81
  context
83
82
  }
@@ -1,7 +1,6 @@
1
- /** @jsx jsx */
2
1
  import React, { useMemo } from 'react';
3
2
  import LinkIcon from '@atlaskit/icon/glyph/link';
4
- import { css, jsx } from '@emotion/react';
3
+ import { css } from '@emotion/react';
5
4
  import { SmartLinkPosition, SmartLinkSize } from '../../../../../constants';
6
5
  import AtlaskitIcon from '../../common/atlaskit-icon';
7
6
  import ImageIcon from '../../common/image-icon';
@@ -39,20 +38,20 @@ const getCustomRenderStyles = value => css`
39
38
  `;
40
39
  const renderAtlaskitIcon = (icon, label, testId) => {
41
40
  if (icon) {
42
- return jsx(AtlaskitIcon, {
41
+ return /*#__PURE__*/React.createElement(AtlaskitIcon, {
43
42
  icon: icon,
44
43
  label: label,
45
44
  testId: `${testId}-icon`
46
45
  });
47
46
  }
48
47
  };
49
- const renderDefaultIcon = (label, testId) => jsx(LinkIcon, {
48
+ const renderDefaultIcon = (label, testId) => /*#__PURE__*/React.createElement(LinkIcon, {
50
49
  label: label,
51
50
  testId: `${testId}-default`
52
51
  });
53
52
  const renderImageIcon = (defaultIcon, url, testId) => {
54
53
  if (url) {
55
- return jsx(ImageIcon, {
54
+ return /*#__PURE__*/React.createElement(ImageIcon, {
56
55
  defaultIcon: defaultIcon,
57
56
  testId: testId,
58
57
  url: url
@@ -84,7 +83,7 @@ const Icon = ({
84
83
  const width = getIconWidth(size);
85
84
  const styles = getIconStyles(position, width);
86
85
  const renderStyles = render ? getCustomRenderStyles(width) : undefined;
87
- return jsx("div", {
86
+ return /*#__PURE__*/React.createElement("div", {
88
87
  css: [styles, renderStyles, overrideCss],
89
88
  "data-fit-to-content": true,
90
89
  "data-smart-element": name,