@atlaskit/smart-card 32.7.0 → 32.7.2

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 (476) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/analytics.spec.yaml +63 -9
  3. package/dist/cjs/classNames.js +14 -82
  4. package/dist/cjs/extractors/action/extract-invoke-copy-link-action.js +53 -0
  5. package/dist/cjs/extractors/action/extract-invoke-download-action.js +57 -0
  6. package/dist/cjs/extractors/action/extract-invoke-preview-action.js +78 -0
  7. package/dist/cjs/extractors/action/extract-invoke-view-action.js +60 -0
  8. package/dist/cjs/extractors/action/extractDownloadActionProps.js +4 -0
  9. package/dist/cjs/extractors/action/extractPreviewActionProps.js +4 -0
  10. package/dist/cjs/extractors/action/extractViewActionProps.js +4 -0
  11. package/dist/cjs/extractors/common/actions/extractActions.js +1 -67
  12. package/dist/cjs/extractors/flexible/actions/extract-copy-link-action.js +12 -1
  13. package/dist/cjs/extractors/flexible/actions/extract-download-action.js +12 -1
  14. package/dist/cjs/extractors/flexible/actions/extract-preview-action.js +12 -1
  15. package/dist/cjs/extractors/flexible/actions/extract-view-action.js +3 -0
  16. package/dist/cjs/extractors/flexible/actions/index.js +40 -3
  17. package/dist/cjs/extractors/flexible/extract-state.js +19 -5
  18. package/dist/cjs/extractors/flexible/index.js +22 -8
  19. package/dist/cjs/i18n/cs.js +2 -4
  20. package/dist/cjs/i18n/da.js +2 -4
  21. package/dist/cjs/i18n/de.js +2 -4
  22. package/dist/cjs/i18n/en.js +2 -4
  23. package/dist/cjs/i18n/en_GB.js +2 -4
  24. package/dist/cjs/i18n/en_ZZ.js +2 -4
  25. package/dist/cjs/i18n/es.js +8 -10
  26. package/dist/cjs/i18n/fi.js +5 -7
  27. package/dist/cjs/i18n/fr.js +2 -4
  28. package/dist/cjs/i18n/hu.js +2 -4
  29. package/dist/cjs/i18n/it.js +2 -4
  30. package/dist/cjs/i18n/ja.js +8 -10
  31. package/dist/cjs/i18n/ko.js +2 -4
  32. package/dist/cjs/i18n/nb.js +2 -4
  33. package/dist/cjs/i18n/nl.js +2 -4
  34. package/dist/cjs/i18n/pl.js +2 -4
  35. package/dist/cjs/i18n/pt_BR.js +2 -4
  36. package/dist/cjs/i18n/ru.js +2 -4
  37. package/dist/cjs/i18n/sv.js +2 -4
  38. package/dist/cjs/i18n/th.js +2 -4
  39. package/dist/cjs/i18n/tr.js +8 -10
  40. package/dist/cjs/i18n/uk.js +2 -4
  41. package/dist/cjs/i18n/vi.js +2 -4
  42. package/dist/cjs/i18n/zh.js +2 -4
  43. package/dist/cjs/i18n/zh_TW.js +2 -4
  44. package/dist/cjs/state/hooks/use-invoke-client-action/index.js +56 -17
  45. package/dist/cjs/state/hooks-external/useSmartLinkActions.js +22 -3
  46. package/dist/cjs/utils/analytics/LinkAnalyticsContext.js +7 -2
  47. package/dist/cjs/utils/analytics/analytics.js +1 -1
  48. package/dist/cjs/utils/mocks.js +4 -1
  49. package/dist/cjs/view/BlockCard/components/Action.js +1 -58
  50. package/dist/cjs/view/BlockCard/index.js +29 -218
  51. package/dist/cjs/view/BlockCard/views/flexible/FlexibleResolvedView.js +1 -0
  52. package/dist/cjs/view/BlockCard/views/flexible/unresolved-view/index.js +1 -0
  53. package/dist/cjs/view/CardWithUrl/component.js +2 -5
  54. package/dist/cjs/view/EmbedModal/index.js +72 -51
  55. package/dist/cjs/view/FlexibleCard/components/actions/copy-link-action/index.js +65 -32
  56. package/dist/cjs/view/FlexibleCard/components/actions/download-action/index.js +36 -28
  57. package/dist/cjs/view/FlexibleCard/components/actions/preview-action/index.js +40 -32
  58. package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/index.js +13 -6
  59. package/dist/cjs/view/FlexibleCard/components/utils.js +4 -0
  60. package/dist/cjs/view/FlexibleCard/index.js +11 -1
  61. package/dist/cjs/view/HoverCard/components/HoverCardContent.js +1 -0
  62. package/dist/cjs/view/LinkUrl/index.js +1 -1
  63. package/dist/es2019/classNames.js +12 -10
  64. package/dist/es2019/extractors/action/extract-invoke-copy-link-action.js +29 -0
  65. package/dist/es2019/extractors/action/extract-invoke-download-action.js +31 -0
  66. package/dist/es2019/extractors/action/extract-invoke-preview-action.js +57 -0
  67. package/dist/es2019/extractors/action/extract-invoke-view-action.js +34 -0
  68. package/dist/es2019/extractors/action/extractDownloadActionProps.js +5 -0
  69. package/dist/es2019/extractors/action/extractPreviewActionProps.js +5 -0
  70. package/dist/es2019/extractors/action/extractViewActionProps.js +5 -0
  71. package/dist/es2019/extractors/common/actions/extractActions.js +1 -55
  72. package/dist/es2019/extractors/flexible/actions/extract-copy-link-action.js +11 -0
  73. package/dist/es2019/extractors/flexible/actions/extract-download-action.js +12 -0
  74. package/dist/es2019/extractors/flexible/actions/extract-preview-action.js +12 -0
  75. package/dist/es2019/extractors/flexible/actions/extract-view-action.js +4 -0
  76. package/dist/es2019/extractors/flexible/actions/index.js +48 -3
  77. package/dist/es2019/extractors/flexible/extract-state.js +17 -5
  78. package/dist/es2019/extractors/flexible/index.js +17 -6
  79. package/dist/es2019/i18n/cs.js +2 -4
  80. package/dist/es2019/i18n/da.js +2 -4
  81. package/dist/es2019/i18n/de.js +2 -4
  82. package/dist/es2019/i18n/en.js +2 -4
  83. package/dist/es2019/i18n/en_GB.js +2 -4
  84. package/dist/es2019/i18n/en_ZZ.js +2 -4
  85. package/dist/es2019/i18n/es.js +8 -10
  86. package/dist/es2019/i18n/fi.js +5 -7
  87. package/dist/es2019/i18n/fr.js +2 -4
  88. package/dist/es2019/i18n/hu.js +2 -4
  89. package/dist/es2019/i18n/it.js +2 -4
  90. package/dist/es2019/i18n/ja.js +8 -10
  91. package/dist/es2019/i18n/ko.js +2 -4
  92. package/dist/es2019/i18n/nb.js +2 -4
  93. package/dist/es2019/i18n/nl.js +2 -4
  94. package/dist/es2019/i18n/pl.js +2 -4
  95. package/dist/es2019/i18n/pt_BR.js +2 -4
  96. package/dist/es2019/i18n/ru.js +2 -4
  97. package/dist/es2019/i18n/sv.js +2 -4
  98. package/dist/es2019/i18n/th.js +2 -4
  99. package/dist/es2019/i18n/tr.js +8 -10
  100. package/dist/es2019/i18n/uk.js +2 -4
  101. package/dist/es2019/i18n/vi.js +2 -4
  102. package/dist/es2019/i18n/zh.js +2 -4
  103. package/dist/es2019/i18n/zh_TW.js +2 -4
  104. package/dist/es2019/state/hooks/use-invoke-client-action/index.js +91 -43
  105. package/dist/es2019/state/hooks-external/useSmartLinkActions.js +21 -3
  106. package/dist/es2019/utils/analytics/LinkAnalyticsContext.js +3 -0
  107. package/dist/es2019/utils/analytics/analytics.js +1 -1
  108. package/dist/es2019/utils/mocks.js +4 -1
  109. package/dist/es2019/view/BlockCard/components/Action.js +1 -48
  110. package/dist/es2019/view/BlockCard/index.js +27 -163
  111. package/dist/es2019/view/BlockCard/views/flexible/FlexibleResolvedView.js +1 -0
  112. package/dist/es2019/view/BlockCard/views/flexible/unresolved-view/index.js +1 -0
  113. package/dist/es2019/view/CardWithUrl/component.js +2 -5
  114. package/dist/es2019/view/EmbedModal/index.js +41 -20
  115. package/dist/es2019/view/FlexibleCard/components/actions/copy-link-action/index.js +31 -16
  116. package/dist/es2019/view/FlexibleCard/components/actions/download-action/index.js +20 -12
  117. package/dist/es2019/view/FlexibleCard/components/actions/preview-action/index.js +25 -17
  118. package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/index.js +14 -7
  119. package/dist/es2019/view/FlexibleCard/components/utils.js +4 -0
  120. package/dist/es2019/view/FlexibleCard/index.js +12 -1
  121. package/dist/es2019/view/HoverCard/components/HoverCardContent.js +1 -0
  122. package/dist/es2019/view/LinkUrl/index.js +1 -1
  123. package/dist/esm/classNames.js +12 -10
  124. package/dist/esm/extractors/action/extract-invoke-copy-link-action.js +46 -0
  125. package/dist/esm/extractors/action/extract-invoke-download-action.js +50 -0
  126. package/dist/esm/extractors/action/extract-invoke-preview-action.js +71 -0
  127. package/dist/esm/extractors/action/extract-invoke-view-action.js +53 -0
  128. package/dist/esm/extractors/action/extractDownloadActionProps.js +5 -0
  129. package/dist/esm/extractors/action/extractPreviewActionProps.js +5 -0
  130. package/dist/esm/extractors/action/extractViewActionProps.js +5 -0
  131. package/dist/esm/extractors/common/actions/extractActions.js +1 -65
  132. package/dist/esm/extractors/flexible/actions/extract-copy-link-action.js +11 -0
  133. package/dist/esm/extractors/flexible/actions/extract-download-action.js +12 -0
  134. package/dist/esm/extractors/flexible/actions/extract-preview-action.js +12 -0
  135. package/dist/esm/extractors/flexible/actions/extract-view-action.js +4 -0
  136. package/dist/esm/extractors/flexible/actions/index.js +42 -5
  137. package/dist/esm/extractors/flexible/extract-state.js +19 -5
  138. package/dist/esm/extractors/flexible/index.js +19 -8
  139. package/dist/esm/i18n/cs.js +2 -4
  140. package/dist/esm/i18n/da.js +2 -4
  141. package/dist/esm/i18n/de.js +2 -4
  142. package/dist/esm/i18n/en.js +2 -4
  143. package/dist/esm/i18n/en_GB.js +2 -4
  144. package/dist/esm/i18n/en_ZZ.js +2 -4
  145. package/dist/esm/i18n/es.js +8 -10
  146. package/dist/esm/i18n/fi.js +5 -7
  147. package/dist/esm/i18n/fr.js +2 -4
  148. package/dist/esm/i18n/hu.js +2 -4
  149. package/dist/esm/i18n/it.js +2 -4
  150. package/dist/esm/i18n/ja.js +8 -10
  151. package/dist/esm/i18n/ko.js +2 -4
  152. package/dist/esm/i18n/nb.js +2 -4
  153. package/dist/esm/i18n/nl.js +2 -4
  154. package/dist/esm/i18n/pl.js +2 -4
  155. package/dist/esm/i18n/pt_BR.js +2 -4
  156. package/dist/esm/i18n/ru.js +2 -4
  157. package/dist/esm/i18n/sv.js +2 -4
  158. package/dist/esm/i18n/th.js +2 -4
  159. package/dist/esm/i18n/tr.js +8 -10
  160. package/dist/esm/i18n/uk.js +2 -4
  161. package/dist/esm/i18n/vi.js +2 -4
  162. package/dist/esm/i18n/zh.js +2 -4
  163. package/dist/esm/i18n/zh_TW.js +2 -4
  164. package/dist/esm/state/hooks/use-invoke-client-action/index.js +56 -17
  165. package/dist/esm/state/hooks-external/useSmartLinkActions.js +22 -3
  166. package/dist/esm/utils/analytics/LinkAnalyticsContext.js +7 -2
  167. package/dist/esm/utils/analytics/analytics.js +1 -1
  168. package/dist/esm/utils/mocks.js +4 -1
  169. package/dist/esm/view/BlockCard/components/Action.js +1 -54
  170. package/dist/esm/view/BlockCard/index.js +29 -164
  171. package/dist/esm/view/BlockCard/views/flexible/FlexibleResolvedView.js +1 -0
  172. package/dist/esm/view/BlockCard/views/flexible/unresolved-view/index.js +1 -0
  173. package/dist/esm/view/CardWithUrl/component.js +2 -5
  174. package/dist/esm/view/EmbedModal/index.js +73 -52
  175. package/dist/esm/view/FlexibleCard/components/actions/copy-link-action/index.js +65 -32
  176. package/dist/esm/view/FlexibleCard/components/actions/download-action/index.js +36 -28
  177. package/dist/esm/view/FlexibleCard/components/actions/preview-action/index.js +40 -32
  178. package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/index.js +13 -6
  179. package/dist/esm/view/FlexibleCard/components/utils.js +4 -0
  180. package/dist/esm/view/FlexibleCard/index.js +11 -1
  181. package/dist/esm/view/HoverCard/components/HoverCardContent.js +1 -0
  182. package/dist/esm/view/LinkUrl/index.js +1 -1
  183. package/dist/types/classNames.d.ts +12 -10
  184. package/dist/types/common/analytics/generated/analytics.types.d.ts +63 -2
  185. package/dist/types/common/analytics/types.d.ts +2 -0
  186. package/dist/types/extractors/action/extract-invoke-copy-link-action.d.ts +3 -0
  187. package/dist/types/extractors/action/extract-invoke-download-action.d.ts +3 -0
  188. package/dist/types/extractors/action/extract-invoke-preview-action.d.ts +11 -0
  189. package/dist/types/extractors/action/extract-invoke-view-action.d.ts +3 -0
  190. package/dist/types/extractors/action/extractDownloadActionProps.d.ts +4 -0
  191. package/dist/types/extractors/action/extractPreviewActionProps.d.ts +5 -1
  192. package/dist/types/extractors/action/extractViewActionProps.d.ts +4 -0
  193. package/dist/types/extractors/action/types.d.ts +9 -0
  194. package/dist/types/extractors/common/actions/extractActions.d.ts +0 -8
  195. package/dist/types/extractors/common/actions/types.d.ts +0 -9
  196. package/dist/types/extractors/flexible/actions/extract-copy-link-action.d.ts +6 -0
  197. package/dist/types/extractors/flexible/actions/extract-download-action.d.ts +6 -0
  198. package/dist/types/extractors/flexible/actions/extract-preview-action.d.ts +6 -0
  199. package/dist/types/extractors/flexible/actions/extract-view-action.d.ts +3 -0
  200. package/dist/types/extractors/flexible/actions/index.d.ts +21 -4
  201. package/dist/types/extractors/flexible/extract-state.d.ts +5 -2
  202. package/dist/types/extractors/flexible/index.d.ts +1 -1
  203. package/dist/types/i18n/cs.d.ts +1 -3
  204. package/dist/types/i18n/da.d.ts +1 -3
  205. package/dist/types/i18n/de.d.ts +1 -3
  206. package/dist/types/i18n/en.d.ts +1 -3
  207. package/dist/types/i18n/en_GB.d.ts +1 -3
  208. package/dist/types/i18n/en_ZZ.d.ts +1 -3
  209. package/dist/types/i18n/es.d.ts +1 -3
  210. package/dist/types/i18n/fi.d.ts +1 -3
  211. package/dist/types/i18n/fr.d.ts +1 -3
  212. package/dist/types/i18n/hu.d.ts +1 -3
  213. package/dist/types/i18n/it.d.ts +1 -3
  214. package/dist/types/i18n/ja.d.ts +1 -3
  215. package/dist/types/i18n/ko.d.ts +1 -3
  216. package/dist/types/i18n/nb.d.ts +1 -3
  217. package/dist/types/i18n/nl.d.ts +1 -3
  218. package/dist/types/i18n/pl.d.ts +1 -3
  219. package/dist/types/i18n/pt_BR.d.ts +1 -3
  220. package/dist/types/i18n/ru.d.ts +1 -3
  221. package/dist/types/i18n/sv.d.ts +1 -3
  222. package/dist/types/i18n/th.d.ts +1 -3
  223. package/dist/types/i18n/tr.d.ts +1 -3
  224. package/dist/types/i18n/uk.d.ts +1 -3
  225. package/dist/types/i18n/vi.d.ts +1 -3
  226. package/dist/types/i18n/zh.d.ts +1 -3
  227. package/dist/types/i18n/zh_TW.d.ts +1 -3
  228. package/dist/types/state/flexible-ui-context/types.d.ts +9 -3
  229. package/dist/types/state/hooks/use-invoke/types.d.ts +7 -1
  230. package/dist/types/state/hooks/use-invoke-client-action/index.d.ts +2 -2
  231. package/dist/types/state/hooks/use-invoke-client-action/types.d.ts +24 -2
  232. package/dist/types/state/hooks/use-resolve/index.d.ts +1 -0
  233. package/dist/types/utils/analytics/click.d.ts +1 -1
  234. package/dist/types/view/BlockCard/components/Action.d.ts +0 -4
  235. package/dist/types/view/BlockCard/index.d.ts +2 -17
  236. package/dist/types/view/BlockCard/types.d.ts +1 -6
  237. package/dist/types/view/Card/index.d.ts +1 -1
  238. package/dist/types/view/EmbedModal/index.d.ts +4 -0
  239. package/dist/types/view/EmbedModal/types.d.ts +7 -0
  240. package/dist/types/view/FlexibleCard/components/actions/action/action-stack-item/action-button.d.ts +1 -1
  241. package/dist/types/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/index.d.ts +1 -1
  242. package/dist/types/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/types.d.ts +6 -0
  243. package/dist/types/view/FlexibleCard/components/utils.d.ts +4 -1
  244. package/dist/types/view/FlexibleCard/index.d.ts +1 -1
  245. package/dist/types/view/FlexibleCard/types.d.ts +12 -3
  246. package/dist/types/view/HoverCard/components/CustomPopupContainer.d.ts +1 -1
  247. package/dist/types-ts4.5/classNames.d.ts +12 -10
  248. package/dist/types-ts4.5/common/analytics/generated/analytics.types.d.ts +63 -2
  249. package/dist/types-ts4.5/common/analytics/types.d.ts +2 -0
  250. package/dist/types-ts4.5/extractors/action/extract-invoke-copy-link-action.d.ts +3 -0
  251. package/dist/types-ts4.5/extractors/action/extract-invoke-download-action.d.ts +3 -0
  252. package/dist/types-ts4.5/extractors/action/extract-invoke-preview-action.d.ts +11 -0
  253. package/dist/types-ts4.5/extractors/action/extract-invoke-view-action.d.ts +3 -0
  254. package/dist/types-ts4.5/extractors/action/extractDownloadActionProps.d.ts +4 -0
  255. package/dist/types-ts4.5/extractors/action/extractPreviewActionProps.d.ts +5 -1
  256. package/dist/types-ts4.5/extractors/action/extractViewActionProps.d.ts +4 -0
  257. package/dist/types-ts4.5/extractors/action/types.d.ts +9 -0
  258. package/dist/types-ts4.5/extractors/common/actions/extractActions.d.ts +0 -8
  259. package/dist/types-ts4.5/extractors/common/actions/types.d.ts +0 -9
  260. package/dist/types-ts4.5/extractors/flexible/actions/extract-copy-link-action.d.ts +6 -0
  261. package/dist/types-ts4.5/extractors/flexible/actions/extract-download-action.d.ts +6 -0
  262. package/dist/types-ts4.5/extractors/flexible/actions/extract-preview-action.d.ts +6 -0
  263. package/dist/types-ts4.5/extractors/flexible/actions/extract-view-action.d.ts +3 -0
  264. package/dist/types-ts4.5/extractors/flexible/actions/index.d.ts +21 -4
  265. package/dist/types-ts4.5/extractors/flexible/extract-state.d.ts +5 -2
  266. package/dist/types-ts4.5/extractors/flexible/index.d.ts +1 -1
  267. package/dist/types-ts4.5/i18n/cs.d.ts +1 -3
  268. package/dist/types-ts4.5/i18n/da.d.ts +1 -3
  269. package/dist/types-ts4.5/i18n/de.d.ts +1 -3
  270. package/dist/types-ts4.5/i18n/en.d.ts +1 -3
  271. package/dist/types-ts4.5/i18n/en_GB.d.ts +1 -3
  272. package/dist/types-ts4.5/i18n/en_ZZ.d.ts +1 -3
  273. package/dist/types-ts4.5/i18n/es.d.ts +1 -3
  274. package/dist/types-ts4.5/i18n/fi.d.ts +1 -3
  275. package/dist/types-ts4.5/i18n/fr.d.ts +1 -3
  276. package/dist/types-ts4.5/i18n/hu.d.ts +1 -3
  277. package/dist/types-ts4.5/i18n/it.d.ts +1 -3
  278. package/dist/types-ts4.5/i18n/ja.d.ts +1 -3
  279. package/dist/types-ts4.5/i18n/ko.d.ts +1 -3
  280. package/dist/types-ts4.5/i18n/nb.d.ts +1 -3
  281. package/dist/types-ts4.5/i18n/nl.d.ts +1 -3
  282. package/dist/types-ts4.5/i18n/pl.d.ts +1 -3
  283. package/dist/types-ts4.5/i18n/pt_BR.d.ts +1 -3
  284. package/dist/types-ts4.5/i18n/ru.d.ts +1 -3
  285. package/dist/types-ts4.5/i18n/sv.d.ts +1 -3
  286. package/dist/types-ts4.5/i18n/th.d.ts +1 -3
  287. package/dist/types-ts4.5/i18n/tr.d.ts +1 -3
  288. package/dist/types-ts4.5/i18n/uk.d.ts +1 -3
  289. package/dist/types-ts4.5/i18n/vi.d.ts +1 -3
  290. package/dist/types-ts4.5/i18n/zh.d.ts +1 -3
  291. package/dist/types-ts4.5/i18n/zh_TW.d.ts +1 -3
  292. package/dist/types-ts4.5/state/flexible-ui-context/types.d.ts +9 -3
  293. package/dist/types-ts4.5/state/hooks/use-invoke/types.d.ts +7 -1
  294. package/dist/types-ts4.5/state/hooks/use-invoke-client-action/index.d.ts +2 -2
  295. package/dist/types-ts4.5/state/hooks/use-invoke-client-action/types.d.ts +24 -2
  296. package/dist/types-ts4.5/state/hooks/use-resolve/index.d.ts +1 -0
  297. package/dist/types-ts4.5/utils/analytics/click.d.ts +1 -1
  298. package/dist/types-ts4.5/view/BlockCard/components/Action.d.ts +0 -4
  299. package/dist/types-ts4.5/view/BlockCard/index.d.ts +2 -17
  300. package/dist/types-ts4.5/view/BlockCard/types.d.ts +1 -6
  301. package/dist/types-ts4.5/view/Card/index.d.ts +1 -1
  302. package/dist/types-ts4.5/view/EmbedModal/index.d.ts +8 -0
  303. package/dist/types-ts4.5/view/EmbedModal/types.d.ts +7 -0
  304. package/dist/types-ts4.5/view/FlexibleCard/components/actions/action/action-stack-item/action-button.d.ts +1 -1
  305. package/dist/types-ts4.5/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/index.d.ts +1 -1
  306. package/dist/types-ts4.5/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/types.d.ts +6 -0
  307. package/dist/types-ts4.5/view/FlexibleCard/components/utils.d.ts +4 -1
  308. package/dist/types-ts4.5/view/FlexibleCard/index.d.ts +1 -1
  309. package/dist/types-ts4.5/view/FlexibleCard/types.d.ts +12 -3
  310. package/dist/types-ts4.5/view/HoverCard/components/CustomPopupContainer.d.ts +1 -1
  311. package/package.json +4 -1
  312. package/dist/cjs/extractors/block/index.js +0 -96
  313. package/dist/cjs/extractors/common/actions/extractPreviewAction.js +0 -106
  314. package/dist/cjs/view/BlockCard/actions/AuthorizeAction.js +0 -22
  315. package/dist/cjs/view/BlockCard/actions/DownloadAction.js +0 -21
  316. package/dist/cjs/view/BlockCard/actions/PreviewAction.js +0 -35
  317. package/dist/cjs/view/BlockCard/actions/RetryAction.js +0 -35
  318. package/dist/cjs/view/BlockCard/actions/ViewAction.js +0 -21
  319. package/dist/cjs/view/BlockCard/components/ActionIcon.js +0 -57
  320. package/dist/cjs/view/BlockCard/components/ActionList.js +0 -78
  321. package/dist/cjs/view/BlockCard/components/CollaboratorList.js +0 -52
  322. package/dist/cjs/view/BlockCard/components/Content.js +0 -45
  323. package/dist/cjs/view/BlockCard/components/ContentFooter.js +0 -41
  324. package/dist/cjs/view/BlockCard/components/ContentHeader.js +0 -45
  325. package/dist/cjs/view/BlockCard/components/Emoji.js +0 -33
  326. package/dist/cjs/view/BlockCard/components/Link.js +0 -31
  327. package/dist/cjs/view/BlockCard/components/Name.js +0 -61
  328. package/dist/cjs/view/BlockCard/components/Provider.js +0 -57
  329. package/dist/cjs/view/BlockCard/components/Thumbnail.js +0 -62
  330. package/dist/cjs/view/BlockCard/components/UnresolvedText.js +0 -24
  331. package/dist/cjs/view/BlockCard/views/ErroredView.js +0 -91
  332. package/dist/cjs/view/BlockCard/views/ForbiddenView.js +0 -121
  333. package/dist/cjs/view/BlockCard/views/NotFoundView.js +0 -82
  334. package/dist/cjs/view/BlockCard/views/ResolvedView.js +0 -143
  335. package/dist/cjs/view/BlockCard/views/ResolvingView.js +0 -57
  336. package/dist/cjs/view/BlockCard/views/UnauthorizedView.js +0 -72
  337. package/dist/cjs/view/BlockCard/views/styled.js +0 -18
  338. package/dist/cjs/view/CardWithData/component.js +0 -66
  339. package/dist/cjs/view/CardWithData/types.js +0 -5
  340. package/dist/cjs/view/common/Byline.js +0 -52
  341. package/dist/cjs/view/common/Metadata.js +0 -56
  342. package/dist/cjs/view/common/MetadataList.js +0 -43
  343. package/dist/es2019/extractors/block/index.js +0 -86
  344. package/dist/es2019/extractors/common/actions/extractPreviewAction.js +0 -91
  345. package/dist/es2019/view/BlockCard/actions/AuthorizeAction.js +0 -9
  346. package/dist/es2019/view/BlockCard/actions/DownloadAction.js +0 -11
  347. package/dist/es2019/view/BlockCard/actions/PreviewAction.js +0 -23
  348. package/dist/es2019/view/BlockCard/actions/RetryAction.js +0 -8
  349. package/dist/es2019/view/BlockCard/actions/ViewAction.js +0 -11
  350. package/dist/es2019/view/BlockCard/components/ActionIcon.js +0 -51
  351. package/dist/es2019/view/BlockCard/components/ActionList.js +0 -63
  352. package/dist/es2019/view/BlockCard/components/CollaboratorList.js +0 -42
  353. package/dist/es2019/view/BlockCard/components/Content.js +0 -36
  354. package/dist/es2019/view/BlockCard/components/ContentFooter.js +0 -32
  355. package/dist/es2019/view/BlockCard/components/ContentHeader.js +0 -39
  356. package/dist/es2019/view/BlockCard/components/Emoji.js +0 -26
  357. package/dist/es2019/view/BlockCard/components/Link.js +0 -24
  358. package/dist/es2019/view/BlockCard/components/Name.js +0 -54
  359. package/dist/es2019/view/BlockCard/components/Provider.js +0 -51
  360. package/dist/es2019/view/BlockCard/components/Thumbnail.js +0 -58
  361. package/dist/es2019/view/BlockCard/components/UnresolvedText.js +0 -18
  362. package/dist/es2019/view/BlockCard/views/ErroredView.js +0 -78
  363. package/dist/es2019/view/BlockCard/views/ForbiddenView.js +0 -104
  364. package/dist/es2019/view/BlockCard/views/NotFoundView.js +0 -71
  365. package/dist/es2019/view/BlockCard/views/ResolvedView.js +0 -121
  366. package/dist/es2019/view/BlockCard/views/ResolvingView.js +0 -46
  367. package/dist/es2019/view/BlockCard/views/UnauthorizedView.js +0 -60
  368. package/dist/es2019/view/BlockCard/views/styled.js +0 -10
  369. package/dist/es2019/view/CardWithData/component.js +0 -43
  370. package/dist/es2019/view/common/Byline.js +0 -44
  371. package/dist/es2019/view/common/Metadata.js +0 -49
  372. package/dist/es2019/view/common/MetadataList.js +0 -34
  373. package/dist/esm/extractors/block/index.js +0 -89
  374. package/dist/esm/extractors/common/actions/extractPreviewAction.js +0 -99
  375. package/dist/esm/state/reducers/types.js +0 -1
  376. package/dist/esm/view/BlockCard/actions/AuthorizeAction.js +0 -15
  377. package/dist/esm/view/BlockCard/actions/DownloadAction.js +0 -14
  378. package/dist/esm/view/BlockCard/actions/PreviewAction.js +0 -30
  379. package/dist/esm/view/BlockCard/actions/RetryAction.js +0 -28
  380. package/dist/esm/view/BlockCard/actions/ViewAction.js +0 -14
  381. package/dist/esm/view/BlockCard/components/ActionIcon.js +0 -50
  382. package/dist/esm/view/BlockCard/components/ActionList.js +0 -69
  383. package/dist/esm/view/BlockCard/components/CollaboratorList.js +0 -44
  384. package/dist/esm/view/BlockCard/components/Content.js +0 -38
  385. package/dist/esm/view/BlockCard/components/ContentFooter.js +0 -34
  386. package/dist/esm/view/BlockCard/components/ContentHeader.js +0 -38
  387. package/dist/esm/view/BlockCard/components/Emoji.js +0 -25
  388. package/dist/esm/view/BlockCard/components/Link.js +0 -24
  389. package/dist/esm/view/BlockCard/components/Name.js +0 -54
  390. package/dist/esm/view/BlockCard/components/Provider.js +0 -50
  391. package/dist/esm/view/BlockCard/components/Thumbnail.js +0 -57
  392. package/dist/esm/view/BlockCard/components/UnresolvedText.js +0 -17
  393. package/dist/esm/view/BlockCard/views/ErroredView.js +0 -87
  394. package/dist/esm/view/BlockCard/views/ForbiddenView.js +0 -113
  395. package/dist/esm/view/BlockCard/views/NotFoundView.js +0 -78
  396. package/dist/esm/view/BlockCard/views/ResolvedView.js +0 -135
  397. package/dist/esm/view/BlockCard/views/ResolvingView.js +0 -49
  398. package/dist/esm/view/BlockCard/views/UnauthorizedView.js +0 -68
  399. package/dist/esm/view/BlockCard/views/styled.js +0 -10
  400. package/dist/esm/view/CardWithData/component.js +0 -59
  401. package/dist/esm/view/CardWithData/types.js +0 -1
  402. package/dist/esm/view/common/Byline.js +0 -45
  403. package/dist/esm/view/common/Metadata.js +0 -48
  404. package/dist/esm/view/common/MetadataList.js +0 -35
  405. package/dist/types/extractors/block/index.d.ts +0 -10
  406. package/dist/types/extractors/block/types.d.ts +0 -13
  407. package/dist/types/extractors/common/actions/extractPreviewAction.d.ts +0 -14
  408. package/dist/types/state/reducers/types.d.ts +0 -4
  409. package/dist/types/view/BlockCard/actions/AuthorizeAction.d.ts +0 -2
  410. package/dist/types/view/BlockCard/actions/DownloadAction.d.ts +0 -4
  411. package/dist/types/view/BlockCard/actions/PreviewAction.d.ts +0 -27
  412. package/dist/types/view/BlockCard/actions/RetryAction.d.ts +0 -2
  413. package/dist/types/view/BlockCard/actions/ViewAction.d.ts +0 -4
  414. package/dist/types/view/BlockCard/components/ActionIcon.d.ts +0 -12
  415. package/dist/types/view/BlockCard/components/ActionList.d.ts +0 -10
  416. package/dist/types/view/BlockCard/components/CollaboratorList.d.ts +0 -18
  417. package/dist/types/view/BlockCard/components/Content.d.ts +0 -18
  418. package/dist/types/view/BlockCard/components/ContentFooter.d.ts +0 -12
  419. package/dist/types/view/BlockCard/components/ContentHeader.d.ts +0 -19
  420. package/dist/types/view/BlockCard/components/Emoji.d.ts +0 -10
  421. package/dist/types/view/BlockCard/components/Link.d.ts +0 -11
  422. package/dist/types/view/BlockCard/components/Name.d.ts +0 -21
  423. package/dist/types/view/BlockCard/components/Provider.d.ts +0 -11
  424. package/dist/types/view/BlockCard/components/Thumbnail.d.ts +0 -13
  425. package/dist/types/view/BlockCard/components/UnresolvedText.d.ts +0 -11
  426. package/dist/types/view/BlockCard/views/ErroredView.d.ts +0 -19
  427. package/dist/types/view/BlockCard/views/ForbiddenView.d.ts +0 -35
  428. package/dist/types/view/BlockCard/views/NotFoundView.d.ts +0 -26
  429. package/dist/types/view/BlockCard/views/ResolvedView.d.ts +0 -46
  430. package/dist/types/view/BlockCard/views/ResolvingView.d.ts +0 -18
  431. package/dist/types/view/BlockCard/views/UnauthorizedView.d.ts +0 -19
  432. package/dist/types/view/BlockCard/views/styled.d.ts +0 -5
  433. package/dist/types/view/CardWithData/component.d.ts +0 -5
  434. package/dist/types/view/CardWithData/types.d.ts +0 -15
  435. package/dist/types/view/common/Byline.d.ts +0 -13
  436. package/dist/types/view/common/Metadata.d.ts +0 -13
  437. package/dist/types/view/common/MetadataList.d.ts +0 -12
  438. package/dist/types-ts4.5/extractors/block/index.d.ts +0 -10
  439. package/dist/types-ts4.5/extractors/block/types.d.ts +0 -13
  440. package/dist/types-ts4.5/extractors/common/actions/extractPreviewAction.d.ts +0 -14
  441. package/dist/types-ts4.5/state/reducers/types.d.ts +0 -4
  442. package/dist/types-ts4.5/view/BlockCard/actions/AuthorizeAction.d.ts +0 -2
  443. package/dist/types-ts4.5/view/BlockCard/actions/DownloadAction.d.ts +0 -4
  444. package/dist/types-ts4.5/view/BlockCard/actions/PreviewAction.d.ts +0 -27
  445. package/dist/types-ts4.5/view/BlockCard/actions/RetryAction.d.ts +0 -2
  446. package/dist/types-ts4.5/view/BlockCard/actions/ViewAction.d.ts +0 -4
  447. package/dist/types-ts4.5/view/BlockCard/components/ActionIcon.d.ts +0 -12
  448. package/dist/types-ts4.5/view/BlockCard/components/ActionList.d.ts +0 -10
  449. package/dist/types-ts4.5/view/BlockCard/components/CollaboratorList.d.ts +0 -18
  450. package/dist/types-ts4.5/view/BlockCard/components/Content.d.ts +0 -18
  451. package/dist/types-ts4.5/view/BlockCard/components/ContentFooter.d.ts +0 -12
  452. package/dist/types-ts4.5/view/BlockCard/components/ContentHeader.d.ts +0 -19
  453. package/dist/types-ts4.5/view/BlockCard/components/Emoji.d.ts +0 -10
  454. package/dist/types-ts4.5/view/BlockCard/components/Link.d.ts +0 -11
  455. package/dist/types-ts4.5/view/BlockCard/components/Name.d.ts +0 -21
  456. package/dist/types-ts4.5/view/BlockCard/components/Provider.d.ts +0 -11
  457. package/dist/types-ts4.5/view/BlockCard/components/Thumbnail.d.ts +0 -13
  458. package/dist/types-ts4.5/view/BlockCard/components/UnresolvedText.d.ts +0 -11
  459. package/dist/types-ts4.5/view/BlockCard/views/ErroredView.d.ts +0 -19
  460. package/dist/types-ts4.5/view/BlockCard/views/ForbiddenView.d.ts +0 -35
  461. package/dist/types-ts4.5/view/BlockCard/views/NotFoundView.d.ts +0 -26
  462. package/dist/types-ts4.5/view/BlockCard/views/ResolvedView.d.ts +0 -46
  463. package/dist/types-ts4.5/view/BlockCard/views/ResolvingView.d.ts +0 -18
  464. package/dist/types-ts4.5/view/BlockCard/views/UnauthorizedView.d.ts +0 -19
  465. package/dist/types-ts4.5/view/BlockCard/views/styled.d.ts +0 -5
  466. package/dist/types-ts4.5/view/CardWithData/component.d.ts +0 -5
  467. package/dist/types-ts4.5/view/CardWithData/types.d.ts +0 -15
  468. package/dist/types-ts4.5/view/common/Byline.d.ts +0 -13
  469. package/dist/types-ts4.5/view/common/Metadata.d.ts +0 -13
  470. package/dist/types-ts4.5/view/common/MetadataList.d.ts +0 -12
  471. /package/dist/cjs/{extractors/block → common/analytics}/types.js +0 -0
  472. /package/dist/cjs/{state/reducers → extractors/action}/types.js +0 -0
  473. /package/dist/es2019/{extractors/block → common/analytics}/types.js +0 -0
  474. /package/dist/es2019/{state/reducers → extractors/action}/types.js +0 -0
  475. /package/dist/{es2019/view/CardWithData → esm/common/analytics}/types.js +0 -0
  476. /package/dist/esm/extractors/{block → action}/types.js +0 -0
@@ -1,68 +0,0 @@
1
- import _extends from "@babel/runtime/helpers/extends";
2
- import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
4
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
5
- /**
6
- * @jsxRuntime classic
7
- * @jsx jsx
8
- */
9
-
10
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
11
- import { jsx } from '@emotion/react';
12
- import { FormattedMessage } from 'react-intl-next';
13
- import { messages } from '../../../messages';
14
- import { Byline } from '../../common/Byline';
15
- import { ActionList } from '../components/ActionList';
16
- import { Content } from '../components/Content';
17
- import { ContentFooter } from '../components/ContentFooter';
18
- import { ContentHeader } from '../components/ContentHeader';
19
- import { Frame } from '../components/Frame';
20
- import { Link } from '../components/Link';
21
- import { Provider } from '../components/Provider';
22
- import { handleClickCommon } from '../utils/handlers';
23
- var textBylineProps = _objectSpread({}, messages.connect_link_account_card_description);
24
- export var UnauthorizedView = function UnauthorizedView(_ref) {
25
- var _ref$context = _ref.context,
26
- context = _ref$context === void 0 ? {
27
- text: ''
28
- } : _ref$context,
29
- _ref$isSelected = _ref.isSelected,
30
- isSelected = _ref$isSelected === void 0 ? false : _ref$isSelected,
31
- _ref$actions = _ref.actions,
32
- actions = _ref$actions === void 0 ? [] : _ref$actions,
33
- _ref$testId = _ref.testId,
34
- testId = _ref$testId === void 0 ? 'block-card-unauthorized-view' : _ref$testId,
35
- actionOptions = _ref.actionOptions,
36
- _ref$link = _ref.link,
37
- link = _ref$link === void 0 ? '' : _ref$link,
38
- _ref$onClick = _ref.onClick,
39
- onClick = _ref$onClick === void 0 ? function () {} : _ref$onClick;
40
- var handleClick = function handleClick(event) {
41
- return handleClickCommon(event, onClick);
42
- };
43
- return jsx(Frame, {
44
- isSelected: isSelected,
45
- testId: testId,
46
- isFluidHeight: true
47
- }, jsx(Content, {
48
- isCompact: true
49
- }, jsx("div", null, jsx(ContentHeader, {
50
- onClick: handleClick,
51
- link: link
52
- }, jsx(Link, {
53
- url: link,
54
- testId: testId
55
- })), jsx(Byline, {
56
- testId: testId ? "".concat(testId, "-byline") : undefined,
57
- text: jsx(FormattedMessage, _extends({}, textBylineProps, {
58
- values: {
59
- context: context.text
60
- }
61
- }))
62
- })), jsx(ContentFooter, null, jsx(Provider, {
63
- name: context.text,
64
- icon: context.icon
65
- }), !(actionOptions !== null && actionOptions !== void 0 && actionOptions.hide) && jsx(ActionList, {
66
- items: actions
67
- }))));
68
- };
@@ -1,10 +0,0 @@
1
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
2
- import styled from '@emotion/styled';
3
- // TODO: Replace overrides with proper AtlasKit solution.
4
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
5
- export var LozengeBlockWrapper = styled.span({
6
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
7
- '& > span': {
8
- marginLeft: "var(--ds-space-050, 4px)"
9
- }
10
- });
@@ -1,59 +0,0 @@
1
- import _extends from "@babel/runtime/helpers/extends";
2
- import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
3
- import _createClass from "@babel/runtime/helpers/createClass";
4
- import _inherits from "@babel/runtime/helpers/inherits";
5
- import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
6
- import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
7
- function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
8
- function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
9
- import React from 'react';
10
- import { extractBlockProps } from '../../extractors/block';
11
- import { extractInlineProps } from '../../extractors/inline';
12
- import { getEmptyJsonLd } from '../../utils/jsonld';
13
- import { BlockCardResolvedView } from '../BlockCard';
14
- import { InlineCardResolvedView } from '../InlineCard/ResolvedView';
15
- export var CardWithDataContent = /*#__PURE__*/function (_React$Component) {
16
- _inherits(CardWithDataContent, _React$Component);
17
- var _super = _createSuper(CardWithDataContent);
18
- function CardWithDataContent() {
19
- _classCallCheck(this, CardWithDataContent);
20
- return _super.apply(this, arguments);
21
- }
22
- _createClass(CardWithDataContent, [{
23
- key: "render",
24
- value: function render() {
25
- var _this$props = this.props,
26
- details = _this$props.data,
27
- isSelected = _this$props.isSelected,
28
- appearance = _this$props.appearance,
29
- onClick = _this$props.onClick,
30
- onResolve = _this$props.onResolve,
31
- testId = _this$props.testId;
32
- if (appearance === 'inline') {
33
- var props = extractInlineProps(details || getEmptyJsonLd());
34
- if (onResolve) {
35
- onResolve({
36
- title: props.title
37
- });
38
- }
39
- return /*#__PURE__*/React.createElement(InlineCardResolvedView, _extends({}, props, {
40
- isSelected: isSelected,
41
- onClick: onClick,
42
- testId: testId
43
- }));
44
- } else {
45
- var _props = extractBlockProps(details || getEmptyJsonLd());
46
- if (onResolve) {
47
- onResolve({
48
- title: _props.title
49
- });
50
- }
51
- return /*#__PURE__*/React.createElement(BlockCardResolvedView, _extends({}, _props, {
52
- isSelected: isSelected,
53
- onClick: onClick
54
- }));
55
- }
56
- }
57
- }]);
58
- return CardWithDataContent;
59
- }(React.Component);
@@ -1 +0,0 @@
1
- export {};
@@ -1,45 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
6
- import { css, jsx } from '@emotion/react';
7
- import { N300 } from '@atlaskit/theme/colors';
8
- import { gs, mq } from './utils';
9
- var baseStyles = css({
10
- // Spec: only allow two lines MAX to be shown.
11
- display: '-webkit-box',
12
- overflow: 'hidden',
13
- textOverflow: 'ellipsis',
14
- WebkitLineClamp: 2,
15
- WebkitBoxOrient: 'vertical',
16
- wordBreak: 'break-word',
17
- whiteSpace: 'pre-line',
18
- // EDM-713: fixes copy-paste from renderer to editor for Firefox
19
- // due to HTML its unwrapping behaviour on paste.
20
- MozUserSelect: 'none'
21
- });
22
-
23
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
24
- var styles = mq({
25
- fontSize: gs(1.5),
26
- lineHeight: gs(2.5),
27
- color: "".concat("var(--ds-text-subtlest, ".concat(N300, ")")),
28
- fontWeight: 'normal',
29
- marginTop: gs(0.5),
30
- // Fallback options.
31
- maxHeight: gs(5)
32
- });
33
- export var Byline = function Byline(_ref) {
34
- var text = _ref.text,
35
- children = _ref.children,
36
- testId = _ref.testId,
37
- className = _ref.className;
38
- return jsx("span", {
39
- css: [baseStyles, styles],
40
- "data-testid": testId
41
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
42
- ,
43
- className: className
44
- }, text || children);
45
- };
@@ -1,48 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
6
- import { css, jsx } from '@emotion/react';
7
- import { N300 } from '@atlaskit/theme/colors';
8
- import Tooltip from '@atlaskit/tooltip';
9
- var wrapperStyles = css({
10
- display: 'flex',
11
- alignItems: 'center',
12
- marginRight: "var(--ds-space-050, 4px)"
13
- });
14
- var imgStyles = css({
15
- width: "var(--ds-space-100, 8px)",
16
- height: "var(--ds-space-100, 8px)"
17
- });
18
- var textStyles = css({
19
- font: "var(--ds-font-body-UNSAFE_small, normal 400 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
20
- color: "".concat("var(--ds-text-subtlest, ".concat(N300, ")")),
21
- marginRight: "var(--ds-space-050, 4px)",
22
- marginLeft: "var(--ds-space-025, 2px)"
23
- });
24
- export var Metadata = function Metadata(_ref) {
25
- var text = _ref.text,
26
- icon = _ref.icon,
27
- iconUrl = _ref.iconUrl,
28
- tooltip = _ref.tooltip;
29
- var metadataIcon = icon || null;
30
- if (!metadataIcon && iconUrl) {
31
- // eslint-disable-next-line jsx-a11y/alt-text
32
- metadataIcon = jsx("img", {
33
- src: iconUrl,
34
- css: imgStyles
35
- });
36
- }
37
- var metadata = jsx("div", {
38
- css: wrapperStyles
39
- }, metadataIcon, jsx("span", {
40
- css: textStyles
41
- }, text));
42
- if (tooltip) {
43
- return jsx(Tooltip, {
44
- content: tooltip
45
- }, metadata);
46
- }
47
- return metadata;
48
- };
@@ -1,35 +0,0 @@
1
- import _extends from "@babel/runtime/helpers/extends";
2
- /**
3
- * @jsxRuntime classic
4
- * @jsx jsx
5
- */
6
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
7
- import { css, jsx } from '@emotion/react';
8
- import { Metadata } from './Metadata';
9
- import { gs } from './utils';
10
- export var metadataListClassName = 'smart-link-metadata-list';
11
- var wrapperStyles = css({
12
- display: 'flex',
13
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
14
- marginTop: gs(0.5),
15
- alignItems: 'center',
16
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
17
- '&:last-child': {
18
- marginRight: '0px'
19
- }
20
- });
21
- export var MetadataList = function MetadataList(_ref) {
22
- var items = _ref.items,
23
- testId = _ref.testId;
24
- return jsx("div", {
25
- css: wrapperStyles,
26
- "data-testid": testId
27
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
28
- ,
29
- className: metadataListClassName
30
- }, items.map(function (item) {
31
- return jsx(Metadata, _extends({
32
- key: item.text
33
- }, item));
34
- }));
35
- };
@@ -1,10 +0,0 @@
1
- import { type JsonLd } from 'json-ld-types';
2
- import { type LinkPerson } from '@atlaskit/link-extractors';
3
- import { type CardProviderRenderers } from '@atlaskit/link-provider';
4
- import { type BlockCardResolvedViewProps } from '../../view/BlockCard';
5
- import { type ActionProps } from '../../view/BlockCard/components/Action';
6
- import { type CardPlatform } from '../../view/Card';
7
- import { type ExtractBlockOpts } from './types';
8
- export declare const extractBlockActions: (props: BlockCardResolvedViewProps, jsonLd: JsonLd.Data.BaseData, opts?: ExtractBlockOpts, platform?: CardPlatform, meta?: JsonLd.Meta.BaseMeta) => ActionProps[];
9
- export declare const extractBlockUsers: (jsonLd: JsonLd.Data.BaseData) => LinkPerson[] | undefined;
10
- export declare const extractBlockProps: (jsonLd: JsonLd.Data.BaseData, meta?: JsonLd.Meta.BaseMeta, opts?: ExtractBlockOpts, renderers?: CardProviderRenderers, platform?: CardPlatform) => BlockCardResolvedViewProps;
@@ -1,13 +0,0 @@
1
- import { type InvokeHandler } from '../../model/invoke-handler';
2
- import { type AnalyticsFacade } from '../../state/analytics';
3
- import { type AnalyticsOrigin } from '../../utils/types';
4
- import { type CardActionOptions, type CardInnerAppearance } from '../../view/Card/types';
5
- export interface ExtractBlockOpts {
6
- handleInvoke: InvokeHandler;
7
- analytics: AnalyticsFacade;
8
- origin?: AnalyticsOrigin;
9
- extensionKey?: string;
10
- source?: CardInnerAppearance;
11
- testId?: string;
12
- actionOptions?: CardActionOptions;
13
- }
@@ -1,14 +0,0 @@
1
- import { type JsonLd } from 'json-ld-types';
2
- import { type BlockCardResolvedViewProps } from '../../../view/BlockCard';
3
- import { type CardPlatform } from '../../../view/Card/types';
4
- import { type ExtractBlockOpts } from '../../block/types';
5
- /**
6
- * @private
7
- * @deprecated - use extractPreviewActionProps instead
8
- */
9
- export declare const extractPreviewAction: ({ extensionKey, viewProps, jsonLd, handleInvoke, testId, platform, origin, source, analytics, meta, actionOptions, }: ExtractBlockOpts & {
10
- viewProps: BlockCardResolvedViewProps;
11
- jsonLd: JsonLd.Data.BaseData;
12
- platform?: JsonLd.Primitives.Platforms | undefined;
13
- meta?: JsonLd.Meta.BaseMeta | undefined;
14
- }) => import("../../../view/BlockCard/components/Action").ActionProps | undefined;
@@ -1,4 +0,0 @@
1
- import { type Reducer } from 'react';
2
- import { type CardAction, type CardActionType } from '@atlaskit/linking-common';
3
- export type CardReducerMap<StateType, ActionType> = Record<CardActionType, CardReducer<StateType, ActionType>>;
4
- export type CardReducer<StateType, ActionType> = Reducer<StateType, CardAction<ActionType>>;
@@ -1,2 +0,0 @@
1
- import { type ActionProps } from '../components/Action';
2
- export declare const AuthorizeAction: (handler: () => void) => ActionProps;
@@ -1,4 +0,0 @@
1
- import { type ActionProps } from '../components/Action';
2
- export declare const DownloadAction: ({ url }: {
3
- url?: string | undefined;
4
- }) => ActionProps;
@@ -1,27 +0,0 @@
1
- import React, { type ErrorInfo } from 'react';
2
- import { type AnalyticsFacade } from '../../../state/analytics';
3
- import { type AnalyticsOrigin } from '../../../utils/types';
4
- import { type IconProps } from '../../common/Icon';
5
- import { type MetadataProps } from '../../common/Metadata';
6
- import { type ActionProps } from '../components/Action';
7
- type PreviewInfo = {
8
- src?: string;
9
- testId?: string;
10
- details?: Array<MetadataProps>;
11
- icon?: IconProps;
12
- url?: string;
13
- title?: string;
14
- providerName?: string;
15
- download?: string;
16
- byline?: React.ReactNode;
17
- onViewActionClick?: () => void;
18
- onDownloadActionClick?: () => void;
19
- onOpen?: () => void;
20
- onOpenFailed?: (error: Error, errorInfo: ErrorInfo) => void;
21
- analytics: AnalyticsFacade;
22
- origin?: AnalyticsOrigin;
23
- isSupportTheming?: boolean;
24
- extensionKey?: string;
25
- };
26
- declare const _default: ({ details, ...rest }: PreviewInfo) => ActionProps;
27
- export default _default;
@@ -1,2 +0,0 @@
1
- import { type ActionProps } from '../components/Action';
2
- export declare const RetryAction: (handler: () => void) => ActionProps;
@@ -1,4 +0,0 @@
1
- import { type ActionProps } from '../components/Action';
2
- export declare const ViewAction: ({ url }: {
3
- url?: string | undefined;
4
- }) => ActionProps;
@@ -1,12 +0,0 @@
1
- /// <reference types="react" />
2
- import type { ActionState } from './Action';
3
- export declare const spinnerStyles: {
4
- readonly display: "flex";
5
- readonly position: "absolute";
6
- readonly left: "50%";
7
- readonly top: "50%";
8
- readonly transform: "translate(-50%, -50%)";
9
- };
10
- export declare const ActionIcon: ({ state }: {
11
- state: ActionState;
12
- }) => JSX.Element | null;
@@ -1,10 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import { jsx } from '@emotion/react';
6
- import { type ActionProps } from './Action';
7
- export interface ActionListProps {
8
- items: Array<ActionProps>;
9
- }
10
- export declare const ActionList: ({ items }: ActionListProps) => jsx.JSX.Element;
@@ -1,18 +0,0 @@
1
- /// <reference types="react" />
2
- /**
3
- * @jsxRuntime classic
4
- * @jsx jsx
5
- */
6
- import { jsx } from '@emotion/react';
7
- import { type AvatarClickEventHandler } from '@atlaskit/avatar';
8
- export interface Collaborator {
9
- src?: string;
10
- name: string;
11
- }
12
- export interface CollaboratorListProps {
13
- items: Collaborator[];
14
- handleAvatarClick: AvatarClickEventHandler;
15
- handleMoreAvatarsClick: React.MouseEventHandler;
16
- testId?: string;
17
- }
18
- export declare const CollaboratorList: ({ items, handleAvatarClick, handleMoreAvatarsClick, testId, }: CollaboratorListProps) => jsx.JSX.Element | null;
@@ -1,18 +0,0 @@
1
- /// <reference types="react" />
2
- /**
3
- * @jsxRuntime classic
4
- * @jsx jsx
5
- */
6
- import { jsx } from '@emotion/react';
7
- export interface ContentProps {
8
- children: React.ReactNode;
9
- isCompact?: boolean;
10
- }
11
- /**
12
- * Class name for selecting non-flexible block card content
13
- *
14
- * @deprecated {@link https://hello.jira.atlassian.cloud/browse/ENGHEALTH-6878 Internal documentation for deprecation (no external access)}
15
- * Using this selctor is deprecated as once the flexible block card feature flag is removed, this class will no longer be used.
16
- */
17
- export declare const blockCardContentClassName = "block-card-content";
18
- export declare const Content: ({ children, isCompact }: ContentProps) => jsx.JSX.Element;
@@ -1,12 +0,0 @@
1
- /// <reference types="react" />
2
- /**
3
- * @jsxRuntime classic
4
- * @jsx jsx
5
- */
6
- import { jsx } from '@emotion/react';
7
- export interface ContentFooterProps {
8
- children: React.ReactNode;
9
- hasSpaceBetween?: boolean;
10
- }
11
- export declare const contentFooterClassName = "smart-link-content-footer";
12
- export declare const ContentFooter: ({ children, hasSpaceBetween }: ContentFooterProps) => jsx.JSX.Element;
@@ -1,19 +0,0 @@
1
- /// <reference types="react" />
2
- /**
3
- * @jsxRuntime classic
4
- * @jsx jsx
5
- */
6
- import { jsx } from '@emotion/react';
7
- export interface ContentHeaderProps {
8
- onClick: React.MouseEventHandler;
9
- link: string;
10
- children: React.ReactNode;
11
- }
12
- /**
13
- * Class name for selecting non-flexible block card header
14
- *
15
- * @deprecated {@link https://hello.jira.atlassian.cloud/browse/ENGHEALTH-6878 Internal documentation for deprecation (no external access)}
16
- * Using this selctor is deprecated as once the flexible block card feature flag is removed, this class will no longer be used.
17
- */
18
- export declare const blockCardContentHeaderClassName = "block-card-content-header";
19
- export declare const ContentHeader: ({ onClick, link, children }: ContentHeaderProps) => jsx.JSX.Element;
@@ -1,10 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import React from 'react';
6
- import { jsx } from '@emotion/react';
7
- export interface EmojiProps {
8
- emoji?: React.ReactNode;
9
- }
10
- export declare const Emoji: ({ emoji }: EmojiProps) => jsx.JSX.Element;
@@ -1,11 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import { jsx } from '@emotion/react';
6
- export interface LinkProps {
7
- url: string;
8
- testId?: string;
9
- className?: string;
10
- }
11
- export declare const Link: ({ url, testId, className }: LinkProps) => jsx.JSX.Element;
@@ -1,21 +0,0 @@
1
- /// <reference types="react" />
2
- /**
3
- * @jsxRuntime classic
4
- * @jsx jsx
5
- */
6
- import { jsx } from '@emotion/react';
7
- export interface NameProps {
8
- name: React.ReactNode;
9
- isLeftPadded?: boolean;
10
- testId?: string;
11
- children?: React.ReactNode;
12
- textColor?: string;
13
- }
14
- /**
15
- * Class name for selecting non-flexible block card header name
16
- *
17
- * @deprecated {@link https://hello.jira.atlassian.cloud/browse/ENGHEALTH-6878 Internal documentation for deprecation (no external access)}
18
- * Using this selctor is deprecated as once the flexible block card feature flag is removed, this class will no longer be used.
19
- */
20
- export declare const blockCardContentHeaderNameClassName = "block-card-content-header-name";
21
- export declare const Name: ({ name, isLeftPadded, testId, textColor }: NameProps) => jsx.JSX.Element;
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- /**
3
- * @jsxRuntime classic
4
- * @jsx jsx
5
- */
6
- import { jsx } from '@emotion/react';
7
- export interface ProviderProps {
8
- name: string;
9
- icon?: React.ReactNode;
10
- }
11
- export declare const Provider: ({ name, icon }: ProviderProps) => jsx.JSX.Element;
@@ -1,13 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import { jsx } from '@emotion/react';
6
- export interface ImageProps {
7
- src: string;
8
- color?: string;
9
- testId?: string;
10
- }
11
- export declare const Thumbnail: (props: ImageProps) => jsx.JSX.Element;
12
- export declare const ThumbnailDefault: ({ src, testId }: ImageProps) => jsx.JSX.Element;
13
- export declare const ThumbnailWithBackground: ({ src, color, testId }: ImageProps) => jsx.JSX.Element;
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- /**
3
- * @jsxRuntime classic
4
- * @jsx jsx
5
- */
6
- import { jsx } from '@emotion/react';
7
- export interface UnresolvedTextProps {
8
- icon: React.ReactNode;
9
- text: React.ReactNode;
10
- }
11
- export declare const UnresolvedText: ({ icon, text }: UnresolvedTextProps) => jsx.JSX.Element;
@@ -1,19 +0,0 @@
1
- /// <reference types="react" />
2
- import { jsx } from '@emotion/react';
3
- export interface ErroredViewProps {
4
- link?: string;
5
- onClick?: React.EventHandler<React.MouseEvent | React.KeyboardEvent>;
6
- isSelected?: boolean;
7
- onRetry?: () => void;
8
- message?: string;
9
- testId?: string;
10
- inheritDimensions?: boolean;
11
- }
12
- /**
13
- * Class name for selecting non-flexible errored block card
14
- *
15
- * @deprecated {@link https://hello.jira.atlassian.cloud/browse/ENGHEALTH-6878 Internal documentation for deprecation (no external access)}
16
- * Using this selctor is deprecated as once the flexible block card feature flag is removed, this class will no longer be used.
17
- */
18
- export declare const blockCardErroredViewClassName = "block-card-errored-view";
19
- export declare const ErroredView: ({ isSelected, testId, link, onClick, onRetry, inheritDimensions, }: ErroredViewProps) => jsx.JSX.Element;
@@ -1,35 +0,0 @@
1
- /// <reference types="react" />
2
- import { jsx } from '@emotion/react';
3
- import type { CardActionOptions } from '../../Card/types';
4
- import { type IconProps } from '../../common/Icon';
5
- import { type RequestAccessContextProps } from '../../types';
6
- import { type ActionProps } from '../components/Action';
7
- export interface PermissionDeniedProps {
8
- actions?: Array<ActionProps>;
9
- context?: {
10
- icon?: React.ReactNode;
11
- text: string;
12
- };
13
- icon: IconProps;
14
- link?: string;
15
- onClick?: React.EventHandler<React.MouseEvent | React.KeyboardEvent>;
16
- isSelected?: boolean;
17
- testId?: string;
18
- actionOptions?: CardActionOptions;
19
- requestAccessContext?: RequestAccessContextProps;
20
- }
21
- /**
22
- * Class name for selecting non-flexible forbidden block card
23
- *
24
- * @deprecated {@link https://hello.jira.atlassian.cloud/browse/ENGHEALTH-6878 Internal documentation for deprecation (no external access)}
25
- * Using this selctor is deprecated as once the flexible block card feature flag is removed, this class will no longer be used.
26
- */
27
- export declare const blockCardForbiddenViewClassName = "block-card-forbidden-view";
28
- /**
29
- * Class name for selecting link inside non-flexible forbidden block card
30
- *
31
- * @deprecated {@link https://hello.jira.atlassian.cloud/browse/ENGHEALTH-6878 Internal documentation for deprecation (no external access)}
32
- * Using this selctor is deprecated as once the flexible block card feature flag is removed, this class will no longer be used.
33
- */
34
- export declare const blockCardForbiddenViewLinkClassName = "block-card-forbidden-view-link";
35
- export declare const ForbiddenView: ({ context, isSelected, actions, testId, link, onClick, requestAccessContext, actionOptions, }: PermissionDeniedProps) => jsx.JSX.Element;
@@ -1,26 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import React from 'react';
6
- import { jsx } from '@emotion/react';
7
- import { type IconProps } from '../../common/Icon';
8
- export interface NotFoundProps {
9
- context?: {
10
- icon?: React.ReactNode;
11
- text: string;
12
- };
13
- link?: string;
14
- onClick?: React.EventHandler<React.MouseEvent | React.KeyboardEvent>;
15
- isSelected?: boolean;
16
- icon: IconProps;
17
- testId?: string;
18
- }
19
- /**
20
- * Class name for selecting non-flexible not-found block card
21
- *
22
- * @deprecated {@link https://hello.jira.atlassian.cloud/browse/ENGHEALTH-6878 Internal documentation for deprecation (no external access)}
23
- * Using this selctor is deprecated as once the flexible block card feature flag is removed, this class will no longer be used.
24
- */
25
- export declare const blockCardNotFoundViewClassName = "block-card-not-found-view";
26
- export declare const NotFoundView: ({ context, isSelected, testId, link, onClick, }: NotFoundProps) => jsx.JSX.Element;