@atlaskit/smart-card 38.3.0 → 38.4.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 (285) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/compass.yml +2 -14
  3. package/dist/cjs/state/flexible-ui-context/index.js +23 -3
  4. package/dist/cjs/utils/analytics/analytics.js +1 -1
  5. package/dist/cjs/view/BlockCard/views/ErroredView.js +2 -2
  6. package/dist/cjs/view/BlockCard/views/ForbiddenView.js +2 -2
  7. package/dist/cjs/view/BlockCard/views/NotFoundView.js +2 -2
  8. package/dist/cjs/view/EmbedModal/index.js +2 -2
  9. package/dist/cjs/view/FlexibleCard/components/blocks/title-block/index.js +4 -2
  10. package/dist/cjs/view/FlexibleCard/components/container/index.js +5 -1
  11. package/dist/cjs/view/FlexibleCard/components/elements/{applied-to-components-count → applied-to-components-count-element}/index.js +10 -5
  12. package/dist/cjs/view/FlexibleCard/components/elements/{atlaskit-badge → atlaskit-badge-element}/index.js +2 -2
  13. package/dist/cjs/view/FlexibleCard/components/elements/{avatar-group → common/base-avatar-group-element}/index.js +7 -9
  14. package/dist/cjs/view/FlexibleCard/components/elements/{badge → common/base-badge-element}/index.js +15 -20
  15. package/dist/cjs/view/FlexibleCard/components/elements/{date-time → common/base-date-time-element}/index.js +4 -5
  16. package/dist/cjs/view/FlexibleCard/components/elements/{link → common/base-link-element}/index.js +10 -8
  17. package/dist/cjs/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/index.js +4 -5
  18. package/dist/cjs/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/index.js +7 -7
  19. package/dist/cjs/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-error/index.js +4 -4
  20. package/dist/cjs/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-error/types.js +1 -1
  21. package/dist/cjs/view/FlexibleCard/components/elements/{text → common/base-text-element}/index.js +4 -5
  22. package/dist/cjs/view/FlexibleCard/components/elements/common/index.js +48 -0
  23. package/dist/cjs/view/FlexibleCard/components/elements/{icon → icon-element}/index.js +3 -3
  24. package/dist/cjs/view/FlexibleCard/components/elements/index.js +4 -4
  25. package/dist/cjs/view/FlexibleCard/components/elements/{media → media-element}/index.js +3 -5
  26. package/dist/cjs/view/FlexibleCard/components/elements/{preview → preview-element}/index.js +10 -5
  27. package/dist/cjs/view/FlexibleCard/components/elements/snippet-element/index.js +7 -3
  28. package/dist/cjs/view/FlexibleCard/components/elements/utils.js +56 -45
  29. package/dist/cjs/view/FlexibleCard/index.js +23 -0
  30. package/dist/cjs/view/HoverCard/components/views/resolving/index.js +2 -2
  31. package/dist/cjs/view/LinkUrl/index.js +1 -1
  32. package/dist/es2019/state/flexible-ui-context/index.js +24 -2
  33. package/dist/es2019/utils/analytics/analytics.js +1 -1
  34. package/dist/es2019/view/BlockCard/views/ErroredView.js +1 -1
  35. package/dist/es2019/view/BlockCard/views/ForbiddenView.js +1 -1
  36. package/dist/es2019/view/BlockCard/views/NotFoundView.js +1 -1
  37. package/dist/es2019/view/EmbedModal/index.js +2 -2
  38. package/dist/es2019/view/FlexibleCard/components/blocks/title-block/index.js +3 -1
  39. package/dist/es2019/view/FlexibleCard/components/container/index.js +6 -2
  40. package/dist/es2019/view/FlexibleCard/components/elements/{applied-to-components-count → applied-to-components-count-element}/index.js +11 -6
  41. package/dist/es2019/view/FlexibleCard/components/elements/{atlaskit-badge → atlaskit-badge-element}/index.js +2 -2
  42. package/dist/es2019/view/FlexibleCard/components/elements/{avatar-group → common/base-avatar-group-element}/index.js +7 -9
  43. package/dist/es2019/view/FlexibleCard/components/elements/{badge → common/base-badge-element}/index.js +13 -20
  44. package/dist/es2019/view/FlexibleCard/components/elements/{date-time → common/base-date-time-element}/index.js +4 -5
  45. package/dist/es2019/view/FlexibleCard/components/elements/{link → common/base-link-element}/index.js +10 -8
  46. package/dist/es2019/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/index.js +4 -5
  47. package/dist/es2019/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/index.js +7 -7
  48. package/dist/es2019/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-error/index.js +4 -4
  49. package/dist/es2019/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-error/types.js +1 -1
  50. package/dist/es2019/view/FlexibleCard/components/elements/{text → common/base-text-element}/index.js +3 -4
  51. package/dist/es2019/view/FlexibleCard/components/elements/common/index.js +6 -0
  52. package/dist/es2019/view/FlexibleCard/components/elements/{icon → icon-element}/index.js +3 -3
  53. package/dist/es2019/view/FlexibleCard/components/elements/index.js +2 -3
  54. package/dist/es2019/view/FlexibleCard/components/elements/{media → media-element}/index.js +3 -5
  55. package/dist/es2019/view/FlexibleCard/components/elements/preview-element/index.js +26 -0
  56. package/dist/es2019/view/FlexibleCard/components/elements/snippet-element/index.js +8 -4
  57. package/dist/es2019/view/FlexibleCard/components/elements/utils.js +56 -45
  58. package/dist/es2019/view/FlexibleCard/index.js +22 -1
  59. package/dist/es2019/view/HoverCard/components/views/resolving/index.js +2 -2
  60. package/dist/es2019/view/LinkUrl/index.js +1 -1
  61. package/dist/esm/state/flexible-ui-context/index.js +22 -2
  62. package/dist/esm/utils/analytics/analytics.js +1 -1
  63. package/dist/esm/view/BlockCard/views/ErroredView.js +1 -1
  64. package/dist/esm/view/BlockCard/views/ForbiddenView.js +1 -1
  65. package/dist/esm/view/BlockCard/views/NotFoundView.js +1 -1
  66. package/dist/esm/view/EmbedModal/index.js +2 -2
  67. package/dist/esm/view/FlexibleCard/components/blocks/title-block/index.js +4 -2
  68. package/dist/esm/view/FlexibleCard/components/container/index.js +6 -2
  69. package/dist/esm/view/FlexibleCard/components/elements/{applied-to-components-count → applied-to-components-count-element}/index.js +11 -6
  70. package/dist/esm/view/FlexibleCard/components/elements/{atlaskit-badge → atlaskit-badge-element}/index.js +2 -2
  71. package/dist/esm/view/FlexibleCard/components/elements/{avatar-group → common/base-avatar-group-element}/index.js +7 -9
  72. package/dist/esm/view/FlexibleCard/components/elements/{badge → common/base-badge-element}/index.js +15 -20
  73. package/dist/esm/view/FlexibleCard/components/elements/{date-time → common/base-date-time-element}/index.js +4 -5
  74. package/dist/esm/view/FlexibleCard/components/elements/{link → common/base-link-element}/index.js +10 -8
  75. package/dist/esm/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/index.js +4 -5
  76. package/dist/esm/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/index.js +7 -7
  77. package/dist/esm/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-error/index.js +4 -4
  78. package/dist/esm/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-error/types.js +1 -1
  79. package/dist/esm/view/FlexibleCard/components/elements/{text → common/base-text-element}/index.js +3 -4
  80. package/dist/esm/view/FlexibleCard/components/elements/common/index.js +6 -0
  81. package/dist/esm/view/FlexibleCard/components/elements/{icon → icon-element}/index.js +3 -3
  82. package/dist/esm/view/FlexibleCard/components/elements/index.js +2 -3
  83. package/dist/esm/view/FlexibleCard/components/elements/{media → media-element}/index.js +3 -5
  84. package/dist/esm/view/FlexibleCard/components/elements/{preview → preview-element}/index.js +11 -6
  85. package/dist/esm/view/FlexibleCard/components/elements/snippet-element/index.js +8 -4
  86. package/dist/esm/view/FlexibleCard/components/elements/utils.js +56 -45
  87. package/dist/esm/view/FlexibleCard/index.js +24 -1
  88. package/dist/esm/view/HoverCard/components/views/resolving/index.js +2 -2
  89. package/dist/esm/view/LinkUrl/index.js +1 -1
  90. package/dist/types/extractors/action/extract-lozenge-action-items.d.ts +1 -1
  91. package/dist/types/state/flexible-ui-context/index.d.ts +14 -0
  92. package/dist/types/view/FlexibleCard/components/blocks/title-block/index.d.ts +1 -1
  93. package/dist/types/view/FlexibleCard/components/blocks/title-block/types.d.ts +4 -0
  94. package/dist/types/view/FlexibleCard/components/elements/applied-to-components-count-element/index.d.ts +5 -0
  95. package/dist/types/view/FlexibleCard/components/elements/atlaskit-badge-element/index.d.ts +12 -0
  96. package/dist/types/view/FlexibleCard/components/elements/common/base-avatar-group-element/index.d.ts +39 -0
  97. package/dist/types/view/FlexibleCard/components/elements/common/base-badge-element/index.d.ts +66 -0
  98. package/dist/types/view/FlexibleCard/components/elements/common/base-date-time-element/index.d.ts +35 -0
  99. package/dist/types/view/FlexibleCard/components/elements/{link/types.d.ts → common/base-link-element/index.d.ts} +21 -5
  100. package/dist/{types-ts4.5/view/FlexibleCard/components/elements/lozenge/types.d.ts → types/view/FlexibleCard/components/elements/common/base-lozenge-element/index.d.ts} +11 -3
  101. package/dist/{types-ts4.5/view/FlexibleCard/components/elements/lozenge → types/view/FlexibleCard/components/elements/common/base-lozenge-element}/lozenge-action/lozenge-action-analytics.d.ts +1 -1
  102. package/dist/{types-ts4.5/view/FlexibleCard/components/elements/lozenge → types/view/FlexibleCard/components/elements/common/base-lozenge-element}/lozenge-action/lozenge-action-error/types.d.ts +2 -2
  103. package/dist/types/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/types.d.ts +1 -1
  104. package/dist/{types-ts4.5/view/FlexibleCard/components/elements/text/types.d.ts → types/view/FlexibleCard/components/elements/common/base-text-element/index.d.ts} +12 -3
  105. package/dist/types/view/FlexibleCard/components/elements/common/index.d.ts +6 -0
  106. package/dist/{types-ts4.5/view/FlexibleCard/components/elements/icon/types.d.ts → types/view/FlexibleCard/components/elements/icon-element/index.d.ts} +11 -3
  107. package/dist/types/view/FlexibleCard/components/elements/index.d.ts +60 -42
  108. package/dist/types/view/FlexibleCard/components/elements/media-element/index.d.ts +26 -0
  109. package/dist/{types-ts4.5/view/FlexibleCard/components/elements/preview/types.d.ts → types/view/FlexibleCard/components/elements/preview-element/index.d.ts} +5 -2
  110. package/dist/types/view/FlexibleCard/components/elements/snippet-element/index.d.ts +3 -2
  111. package/dist/types/view/FlexibleCard/components/elements/utils.d.ts +3 -0
  112. package/dist/types/view/FlexibleCard/external.d.ts +14 -18
  113. package/dist/types-ts4.5/extractors/action/extract-lozenge-action-items.d.ts +1 -1
  114. package/dist/types-ts4.5/state/flexible-ui-context/index.d.ts +14 -0
  115. package/dist/types-ts4.5/view/FlexibleCard/components/blocks/title-block/index.d.ts +1 -1
  116. package/dist/types-ts4.5/view/FlexibleCard/components/blocks/title-block/types.d.ts +4 -0
  117. package/dist/types-ts4.5/view/FlexibleCard/components/elements/applied-to-components-count-element/index.d.ts +5 -0
  118. package/dist/types-ts4.5/view/FlexibleCard/components/elements/atlaskit-badge-element/index.d.ts +12 -0
  119. package/dist/types-ts4.5/view/FlexibleCard/components/elements/common/base-avatar-group-element/index.d.ts +39 -0
  120. package/dist/types-ts4.5/view/FlexibleCard/components/elements/common/base-badge-element/index.d.ts +66 -0
  121. package/dist/types-ts4.5/view/FlexibleCard/components/elements/common/base-date-time-element/index.d.ts +35 -0
  122. package/dist/types-ts4.5/view/FlexibleCard/components/elements/{link/types.d.ts → common/base-link-element/index.d.ts} +21 -5
  123. package/dist/{types/view/FlexibleCard/components/elements/lozenge/types.d.ts → types-ts4.5/view/FlexibleCard/components/elements/common/base-lozenge-element/index.d.ts} +11 -3
  124. package/dist/{types/view/FlexibleCard/components/elements/lozenge → types-ts4.5/view/FlexibleCard/components/elements/common/base-lozenge-element}/lozenge-action/lozenge-action-analytics.d.ts +1 -1
  125. package/dist/{types/view/FlexibleCard/components/elements/lozenge → types-ts4.5/view/FlexibleCard/components/elements/common/base-lozenge-element}/lozenge-action/lozenge-action-error/types.d.ts +2 -2
  126. package/dist/types-ts4.5/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/types.d.ts +1 -1
  127. package/dist/{types/view/FlexibleCard/components/elements/text/types.d.ts → types-ts4.5/view/FlexibleCard/components/elements/common/base-text-element/index.d.ts} +12 -3
  128. package/dist/types-ts4.5/view/FlexibleCard/components/elements/common/index.d.ts +6 -0
  129. package/dist/{types/view/FlexibleCard/components/elements/icon/types.d.ts → types-ts4.5/view/FlexibleCard/components/elements/icon-element/index.d.ts} +11 -3
  130. package/dist/types-ts4.5/view/FlexibleCard/components/elements/index.d.ts +60 -42
  131. package/dist/types-ts4.5/view/FlexibleCard/components/elements/media-element/index.d.ts +26 -0
  132. package/dist/{types/view/FlexibleCard/components/elements/preview/types.d.ts → types-ts4.5/view/FlexibleCard/components/elements/preview-element/index.d.ts} +5 -2
  133. package/dist/types-ts4.5/view/FlexibleCard/components/elements/snippet-element/index.d.ts +3 -2
  134. package/dist/types-ts4.5/view/FlexibleCard/components/elements/utils.d.ts +3 -0
  135. package/dist/types-ts4.5/view/FlexibleCard/external.d.ts +14 -18
  136. package/package.json +4 -1
  137. package/dist/cjs/view/FlexibleCard/components/elements/date-time/types.js +0 -5
  138. package/dist/cjs/view/FlexibleCard/components/elements/icon/types.js +0 -5
  139. package/dist/cjs/view/FlexibleCard/components/elements/link/types.js +0 -5
  140. package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-item/types.js +0 -5
  141. package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-items-group/types.js +0 -5
  142. package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/types.js +0 -5
  143. package/dist/cjs/view/FlexibleCard/components/elements/lozenge/types.js +0 -5
  144. package/dist/cjs/view/FlexibleCard/components/elements/media/types.js +0 -5
  145. package/dist/cjs/view/FlexibleCard/components/elements/preview/types.js +0 -5
  146. package/dist/cjs/view/FlexibleCard/components/elements/text/types.js +0 -5
  147. package/dist/cjs/view/FlexibleCard/components/elements/types.js +0 -5
  148. package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-item/types.js +0 -1
  149. package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-items-group/types.js +0 -1
  150. package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/types.js +0 -1
  151. package/dist/es2019/view/FlexibleCard/components/elements/lozenge/types.js +0 -1
  152. package/dist/es2019/view/FlexibleCard/components/elements/media/types.js +0 -1
  153. package/dist/es2019/view/FlexibleCard/components/elements/preview/index.js +0 -21
  154. package/dist/es2019/view/FlexibleCard/components/elements/preview/types.js +0 -1
  155. package/dist/es2019/view/FlexibleCard/components/elements/text/types.js +0 -1
  156. package/dist/es2019/view/FlexibleCard/components/elements/types.js +0 -1
  157. package/dist/esm/view/FlexibleCard/components/elements/atlaskit-badge/types.js +0 -1
  158. package/dist/esm/view/FlexibleCard/components/elements/avatar-group/types.js +0 -1
  159. package/dist/esm/view/FlexibleCard/components/elements/badge/types.js +0 -1
  160. package/dist/esm/view/FlexibleCard/components/elements/date-time/types.js +0 -1
  161. package/dist/esm/view/FlexibleCard/components/elements/icon/types.js +0 -1
  162. package/dist/esm/view/FlexibleCard/components/elements/link/types.js +0 -1
  163. package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-item/types.js +0 -1
  164. package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-items-group/types.js +0 -1
  165. package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/types.js +0 -1
  166. package/dist/esm/view/FlexibleCard/components/elements/lozenge/types.js +0 -1
  167. package/dist/esm/view/FlexibleCard/components/elements/media/types.js +0 -1
  168. package/dist/esm/view/FlexibleCard/components/elements/preview/types.js +0 -1
  169. package/dist/esm/view/FlexibleCard/components/elements/text/types.js +0 -1
  170. package/dist/esm/view/FlexibleCard/components/elements/types.js +0 -1
  171. package/dist/types/view/FlexibleCard/components/elements/applied-to-components-count/index.d.ts +0 -4
  172. package/dist/types/view/FlexibleCard/components/elements/atlaskit-badge/index.d.ts +0 -9
  173. package/dist/types/view/FlexibleCard/components/elements/atlaskit-badge/types.d.ts +0 -4
  174. package/dist/types/view/FlexibleCard/components/elements/avatar-group/index.d.ts +0 -11
  175. package/dist/types/view/FlexibleCard/components/elements/avatar-group/types.d.ts +0 -29
  176. package/dist/types/view/FlexibleCard/components/elements/badge/index.d.ts +0 -4
  177. package/dist/types/view/FlexibleCard/components/elements/badge/types.d.ts +0 -30
  178. package/dist/types/view/FlexibleCard/components/elements/date-time/index.d.ts +0 -12
  179. package/dist/types/view/FlexibleCard/components/elements/date-time/types.d.ts +0 -24
  180. package/dist/types/view/FlexibleCard/components/elements/icon/index.d.ts +0 -10
  181. package/dist/types/view/FlexibleCard/components/elements/link/index.d.ts +0 -10
  182. package/dist/types/view/FlexibleCard/components/elements/lozenge/index.d.ts +0 -10
  183. package/dist/types/view/FlexibleCard/components/elements/media/index.d.ts +0 -10
  184. package/dist/types/view/FlexibleCard/components/elements/media/types.d.ts +0 -18
  185. package/dist/types/view/FlexibleCard/components/elements/preview/index.d.ts +0 -4
  186. package/dist/types/view/FlexibleCard/components/elements/text/index.d.ts +0 -10
  187. package/dist/types/view/FlexibleCard/components/elements/types.d.ts +0 -23
  188. package/dist/types-ts4.5/view/FlexibleCard/components/elements/applied-to-components-count/index.d.ts +0 -4
  189. package/dist/types-ts4.5/view/FlexibleCard/components/elements/atlaskit-badge/index.d.ts +0 -9
  190. package/dist/types-ts4.5/view/FlexibleCard/components/elements/atlaskit-badge/types.d.ts +0 -4
  191. package/dist/types-ts4.5/view/FlexibleCard/components/elements/avatar-group/index.d.ts +0 -11
  192. package/dist/types-ts4.5/view/FlexibleCard/components/elements/avatar-group/types.d.ts +0 -29
  193. package/dist/types-ts4.5/view/FlexibleCard/components/elements/badge/index.d.ts +0 -4
  194. package/dist/types-ts4.5/view/FlexibleCard/components/elements/badge/types.d.ts +0 -30
  195. package/dist/types-ts4.5/view/FlexibleCard/components/elements/date-time/index.d.ts +0 -12
  196. package/dist/types-ts4.5/view/FlexibleCard/components/elements/date-time/types.d.ts +0 -24
  197. package/dist/types-ts4.5/view/FlexibleCard/components/elements/icon/index.d.ts +0 -10
  198. package/dist/types-ts4.5/view/FlexibleCard/components/elements/link/index.d.ts +0 -10
  199. package/dist/types-ts4.5/view/FlexibleCard/components/elements/lozenge/index.d.ts +0 -10
  200. package/dist/types-ts4.5/view/FlexibleCard/components/elements/media/index.d.ts +0 -10
  201. package/dist/types-ts4.5/view/FlexibleCard/components/elements/media/types.d.ts +0 -18
  202. package/dist/types-ts4.5/view/FlexibleCard/components/elements/preview/index.d.ts +0 -4
  203. package/dist/types-ts4.5/view/FlexibleCard/components/elements/text/index.d.ts +0 -10
  204. package/dist/types-ts4.5/view/FlexibleCard/components/elements/types.d.ts +0 -23
  205. /package/dist/cjs/view/FlexibleCard/components/elements/{atlaskit-badge → atlaskit-badge-element}/index.compiled.css +0 -0
  206. /package/dist/cjs/view/FlexibleCard/components/elements/{avatar-group → common/base-avatar-group-element}/index.compiled.css +0 -0
  207. /package/dist/cjs/view/FlexibleCard/components/elements/{badge → common/base-badge-element}/index.compiled.css +0 -0
  208. /package/dist/cjs/view/FlexibleCard/components/elements/{date-time → common/base-date-time-element}/index.compiled.css +0 -0
  209. /package/dist/cjs/view/FlexibleCard/components/elements/{link → common/base-link-element}/index.compiled.css +0 -0
  210. /package/dist/cjs/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/index.compiled.css +0 -0
  211. /package/dist/cjs/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/error-boundary/index.js +0 -0
  212. /package/dist/cjs/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-analytics.js +0 -0
  213. /package/dist/cjs/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-error/index.compiled.css +0 -0
  214. /package/dist/cjs/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-item/index.js +0 -0
  215. /package/dist/cjs/view/FlexibleCard/components/elements/{atlaskit-badge → common/base-lozenge-element/lozenge-action/lozenge-action-item}/types.js +0 -0
  216. /package/dist/cjs/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-items-group/index.compiled.css +0 -0
  217. /package/dist/cjs/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-items-group/index.js +0 -0
  218. /package/dist/cjs/view/FlexibleCard/components/elements/{avatar-group → common/base-lozenge-element/lozenge-action/lozenge-action-items-group}/types.js +0 -0
  219. /package/dist/cjs/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-trigger/index.compiled.css +0 -0
  220. /package/dist/cjs/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-trigger/index.js +0 -0
  221. /package/dist/cjs/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-trigger/type.js +0 -0
  222. /package/dist/cjs/view/FlexibleCard/components/elements/{badge → common/base-lozenge-element/lozenge-action}/types.js +0 -0
  223. /package/dist/cjs/view/FlexibleCard/components/elements/{text → common/base-text-element}/index.compiled.css +0 -0
  224. /package/dist/cjs/view/FlexibleCard/components/elements/{icon → icon-element}/index.compiled.css +0 -0
  225. /package/dist/cjs/view/FlexibleCard/components/elements/{media → media-element}/index.compiled.css +0 -0
  226. /package/dist/es2019/view/FlexibleCard/components/elements/{atlaskit-badge → atlaskit-badge-element}/index.compiled.css +0 -0
  227. /package/dist/es2019/view/FlexibleCard/components/elements/{avatar-group → common/base-avatar-group-element}/index.compiled.css +0 -0
  228. /package/dist/es2019/view/FlexibleCard/components/elements/{badge → common/base-badge-element}/index.compiled.css +0 -0
  229. /package/dist/es2019/view/FlexibleCard/components/elements/{date-time → common/base-date-time-element}/index.compiled.css +0 -0
  230. /package/dist/es2019/view/FlexibleCard/components/elements/{link → common/base-link-element}/index.compiled.css +0 -0
  231. /package/dist/es2019/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/index.compiled.css +0 -0
  232. /package/dist/es2019/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/error-boundary/index.js +0 -0
  233. /package/dist/es2019/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-analytics.js +0 -0
  234. /package/dist/es2019/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-error/index.compiled.css +0 -0
  235. /package/dist/es2019/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-item/index.js +0 -0
  236. /package/dist/es2019/view/FlexibleCard/components/elements/{atlaskit-badge → common/base-lozenge-element/lozenge-action/lozenge-action-item}/types.js +0 -0
  237. /package/dist/es2019/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-items-group/index.compiled.css +0 -0
  238. /package/dist/es2019/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-items-group/index.js +0 -0
  239. /package/dist/es2019/view/FlexibleCard/components/elements/{avatar-group → common/base-lozenge-element/lozenge-action/lozenge-action-items-group}/types.js +0 -0
  240. /package/dist/es2019/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-trigger/index.compiled.css +0 -0
  241. /package/dist/es2019/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-trigger/index.js +0 -0
  242. /package/dist/es2019/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-trigger/type.js +0 -0
  243. /package/dist/es2019/view/FlexibleCard/components/elements/{badge → common/base-lozenge-element/lozenge-action}/types.js +0 -0
  244. /package/dist/es2019/view/FlexibleCard/components/elements/{text → common/base-text-element}/index.compiled.css +0 -0
  245. /package/dist/es2019/view/FlexibleCard/components/elements/{icon → icon-element}/index.compiled.css +0 -0
  246. /package/dist/es2019/view/FlexibleCard/components/elements/{media → media-element}/index.compiled.css +0 -0
  247. /package/dist/esm/view/FlexibleCard/components/elements/{atlaskit-badge → atlaskit-badge-element}/index.compiled.css +0 -0
  248. /package/dist/esm/view/FlexibleCard/components/elements/{avatar-group → common/base-avatar-group-element}/index.compiled.css +0 -0
  249. /package/dist/esm/view/FlexibleCard/components/elements/{badge → common/base-badge-element}/index.compiled.css +0 -0
  250. /package/dist/esm/view/FlexibleCard/components/elements/{date-time → common/base-date-time-element}/index.compiled.css +0 -0
  251. /package/dist/esm/view/FlexibleCard/components/elements/{link → common/base-link-element}/index.compiled.css +0 -0
  252. /package/dist/esm/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/index.compiled.css +0 -0
  253. /package/dist/esm/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/error-boundary/index.js +0 -0
  254. /package/dist/esm/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-analytics.js +0 -0
  255. /package/dist/esm/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-error/index.compiled.css +0 -0
  256. /package/dist/esm/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-item/index.js +0 -0
  257. /package/dist/{es2019/view/FlexibleCard/components/elements/date-time → esm/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-item}/types.js +0 -0
  258. /package/dist/esm/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-items-group/index.compiled.css +0 -0
  259. /package/dist/esm/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-items-group/index.js +0 -0
  260. /package/dist/{es2019/view/FlexibleCard/components/elements/icon → esm/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-items-group}/types.js +0 -0
  261. /package/dist/esm/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-trigger/index.compiled.css +0 -0
  262. /package/dist/esm/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-trigger/index.js +0 -0
  263. /package/dist/esm/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-trigger/type.js +0 -0
  264. /package/dist/{es2019/view/FlexibleCard/components/elements/link → esm/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action}/types.js +0 -0
  265. /package/dist/esm/view/FlexibleCard/components/elements/{text → common/base-text-element}/index.compiled.css +0 -0
  266. /package/dist/esm/view/FlexibleCard/components/elements/{icon → icon-element}/index.compiled.css +0 -0
  267. /package/dist/esm/view/FlexibleCard/components/elements/{media → media-element}/index.compiled.css +0 -0
  268. /package/dist/types/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/error-boundary/index.d.ts +0 -0
  269. /package/dist/types/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/index.d.ts +0 -0
  270. /package/dist/types/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-error/index.d.ts +0 -0
  271. /package/dist/types/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-item/index.d.ts +0 -0
  272. /package/dist/types/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-item/types.d.ts +0 -0
  273. /package/dist/types/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-items-group/index.d.ts +0 -0
  274. /package/dist/types/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-items-group/types.d.ts +0 -0
  275. /package/dist/types/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-trigger/index.d.ts +0 -0
  276. /package/dist/types/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-trigger/type.d.ts +0 -0
  277. /package/dist/types-ts4.5/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/error-boundary/index.d.ts +0 -0
  278. /package/dist/types-ts4.5/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/index.d.ts +0 -0
  279. /package/dist/types-ts4.5/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-error/index.d.ts +0 -0
  280. /package/dist/types-ts4.5/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-item/index.d.ts +0 -0
  281. /package/dist/types-ts4.5/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-item/types.d.ts +0 -0
  282. /package/dist/types-ts4.5/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-items-group/index.d.ts +0 -0
  283. /package/dist/types-ts4.5/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-items-group/types.d.ts +0 -0
  284. /package/dist/types-ts4.5/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-trigger/index.d.ts +0 -0
  285. /package/dist/types-ts4.5/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-trigger/type.d.ts +0 -0
@@ -1,131 +1,149 @@
1
1
  /// <reference types="react" />
2
- import { type AtlaskitBadgeProps } from './atlaskit-badge/types';
3
- import { type AvatarGroupProps } from './avatar-group/types';
4
- import { type BadgeProps } from './badge/types';
5
- import { type DateTimeProps } from './date-time/types';
6
- import { type IconProps } from './icon/types';
7
- import { type LinkProps } from './link/types';
8
- import { type LozengeProps } from './lozenge/types';
9
- import { type TextProps } from './text/types';
2
+ import { ElementName, type SmartLinkSize } from '../../../../constants';
3
+ import { AtlaskitBadgeElementProps } from './atlaskit-badge-element';
4
+ import { type BaseAvatarGroupElementProps, type BaseBadgeElementProps, type BaseDateTimeProps, type BaseLinkElementProps, type BaseLozengeElementProps, type BaseTextElementProps } from './common';
5
+ import { type IconElementProps } from './icon-element';
6
+ export type ElementProps = {
7
+ /**
8
+ * Name of the element, can be used as a selector.
9
+ * E.g. [data-smart-element="Provider"]
10
+ * @internal
11
+ */
12
+ name?: ElementName;
13
+ /**
14
+ * For compiled css
15
+ */
16
+ className?: string;
17
+ /**
18
+ * The size of the element to display.
19
+ */
20
+ size?: SmartLinkSize;
21
+ /**
22
+ * A `testId` prop is provided for specified elements, which is a unique
23
+ * string that appears as a data attribute `data-testid` in the rendered code,
24
+ * serving as a hook for automated tests
25
+ */
26
+ testId?: string;
27
+ };
10
28
  /**
11
29
  * Creates a AssignedTo text element using the data from AssignedTo in the Flexible UI Context.
12
30
  * @see Text
13
31
  */
14
- export declare const AssignedTo: import("react").ComponentType<TextProps>;
32
+ export declare const AssignedTo: import("react").ComponentType<BaseTextElementProps>;
15
33
  /**
16
34
  * An AvatarGroup element using the data from AssignedToGroup in the Flexible UI Context.
17
35
  * @see AvatarGroup
18
36
  */
19
- export declare const AssignedToGroup: import("react").ComponentType<AvatarGroupProps>;
37
+ export declare const AssignedToGroup: import("react").ComponentType<BaseAvatarGroupElementProps>;
20
38
  /**
21
39
  * Creates a AttachmentCount Badge element using the data from AttachmentCount in the Flexible UI Context.
22
40
  * @see Badge
23
41
  */
24
- export declare const AttachmentCount: import("react").ComponentType<BadgeProps>;
42
+ export declare const AttachmentCount: import("react").ComponentType<BaseBadgeElementProps>;
25
43
  /**
26
44
  * An AvatarGroup element using the data from AuthorGroup in the Flexible UI Context.
27
45
  * @see AvatarGroup
28
46
  */
29
- export declare const AuthorGroup: import("react").ComponentType<AvatarGroupProps>;
47
+ export declare const AuthorGroup: import("react").ComponentType<BaseAvatarGroupElementProps>;
30
48
  /**
31
49
  * Creates a Checklist Badge element using the data from ChecklistProgress in the Flexible UI Context.
32
50
  * @see Badge
33
51
  */
34
- export declare const ChecklistProgress: import("react").ComponentType<BadgeProps>;
52
+ export declare const ChecklistProgress: import("react").ComponentType<BaseBadgeElementProps>;
35
53
  /**
36
54
  * An AvatarGroup element using the data from CollaboratorGroup in the Flexible UI Context.
37
55
  * @see AvatarGroup
38
56
  */
39
- export declare const CollaboratorGroup: import("react").ComponentType<AvatarGroupProps>;
57
+ export declare const CollaboratorGroup: import("react").ComponentType<BaseAvatarGroupElementProps>;
40
58
  /**
41
59
  * Creates a CommentCount Badge element using the data from CommentCount in the Flexible UI Context.
42
60
  * @see Badge
43
61
  */
44
- export declare const CommentCount: import("react").ComponentType<BadgeProps>;
62
+ export declare const CommentCount: import("react").ComponentType<BaseBadgeElementProps>;
45
63
  /**
46
64
  * Creates a CreatedOn DateTime element using the data from CreatedOn in the Flexible UI Context.
47
65
  * @see DateTime
48
66
  */
49
- export declare const CreatedOn: import("react").ComponentType<DateTimeProps>;
67
+ export declare const CreatedOn: import("react").ComponentType<BaseDateTimeProps>;
50
68
  /**
51
69
  * Creates a CreatedBy text element using the data from CreatedBy in the Flexible UI Context.
52
70
  * @see Text
53
71
  */
54
- export declare const CreatedBy: import("react").ComponentType<TextProps>;
72
+ export declare const CreatedBy: import("react").ComponentType<BaseTextElementProps>;
55
73
  /**
56
74
  * Creates a DueOn Lozenge element using the data from dueOn in the Flexible UI Context.
57
75
  * @see Lozenge
58
76
  */
59
- export declare const DueOn: import("react").ComponentType<LozengeProps>;
77
+ export declare const DueOn: import("react").ComponentType<BaseLozengeElementProps>;
60
78
  /**
61
79
  * Creates an element that contains Last Commit hash
62
80
  */
63
- export declare const LatestCommit: import("react").ComponentType<BadgeProps>;
81
+ export declare const LatestCommit: import("react").ComponentType<BaseBadgeElementProps>;
64
82
  /**
65
83
  * Creates a LinkIcon Icon element using the data from LinkIcon in the Flexible UI Context.
66
84
  * @see Icon
67
85
  */
68
- export declare const LinkIcon: import("react").ComponentType<IconProps>;
86
+ export declare const LinkIcon: import("react").ComponentType<IconElementProps>;
69
87
  /**
70
88
  * Creates a Location Link element.
71
89
  * This represents the location or container of the resource.
72
90
  * @see Link
73
91
  */
74
- export declare const Location: import("react").ComponentType<LinkProps>;
92
+ export declare const Location: import("react").ComponentType<BaseLinkElementProps>;
75
93
  /**
76
94
  * Creates a ModifiedBy Text element using the data from ModifiedBy in the Flexible UI Context.
77
95
  * @see Text
78
96
  */
79
- export declare const ModifiedBy: import("react").ComponentType<TextProps>;
97
+ export declare const ModifiedBy: import("react").ComponentType<BaseTextElementProps>;
80
98
  /**
81
99
  * Creates a ModifiedOn DateTime element using the data from ModifiedOn in the Flexible UI Context.
82
100
  * @see DateTime
83
101
  */
84
- export declare const ModifiedOn: import("react").ComponentType<DateTimeProps>;
102
+ export declare const ModifiedOn: import("react").ComponentType<BaseDateTimeProps>;
85
103
  /**
86
104
  * Creates a OwnedBy text element using the data from OwnedBy in the Flexible UI Context.
87
105
  * @see Text
88
106
  */
89
- export declare const OwnedBy: import("react").ComponentType<TextProps>;
107
+ export declare const OwnedBy: import("react").ComponentType<BaseTextElementProps>;
90
108
  /**
91
109
  * An AvatarGroup element using the data from OwnedByGroup in the Flexible UI Context.
92
110
  * @see AvatarGroup
93
111
  */
94
- export declare const OwnedByGroup: import("react").ComponentType<AvatarGroupProps>;
112
+ export declare const OwnedByGroup: import("react").ComponentType<BaseAvatarGroupElementProps>;
95
113
  /**
96
114
  * Creates a Preview element using the data from Preview in the Flexible UI Context.
97
115
  * @see Preview
98
116
  */
99
- export { default as Preview } from './preview';
117
+ export { default as Preview } from './preview-element';
100
118
  /**
101
119
  * Creates a Priority Badge element using the data from Priority in the Flexible UI Context.
102
120
  * @see Badge
103
121
  */
104
- export declare const Priority: import("react").ComponentType<BadgeProps>;
122
+ export declare const Priority: import("react").ComponentType<BaseBadgeElementProps>;
105
123
  /**
106
124
  * Creates a ProgrammingLanguage Badge element using the data from ProgrammingLanguage in the Flexible UI Context.
107
125
  * @see Badge
108
126
  */
109
- export declare const ProgrammingLanguage: import("react").ComponentType<BadgeProps>;
127
+ export declare const ProgrammingLanguage: import("react").ComponentType<BaseBadgeElementProps>;
110
128
  /**
111
129
  * Creates a Provider Badge element using the data from Provider in the Flexible UI Context.
112
130
  * @see Badge
113
131
  */
114
- export declare const Provider: import("react").ComponentType<BadgeProps>;
132
+ export declare const Provider: import("react").ComponentType<BaseBadgeElementProps>;
115
133
  /**
116
134
  * Creates a ReactCount Badge element using the data from ReactCount in the Flexible UI Context.
117
135
  * @see Badge
118
136
  */
119
- export declare const ReactCount: import("react").ComponentType<BadgeProps>;
137
+ export declare const ReactCount: import("react").ComponentType<BaseBadgeElementProps>;
120
138
  /**
121
139
  * Creates a ReadTime Text element using the data from readTime in the Flexible UI Context
122
140
  */
123
- export declare const ReadTime: import("react").ComponentType<TextProps>;
141
+ export declare const ReadTime: import("react").ComponentType<BaseTextElementProps>;
124
142
  /**
125
143
  * Creates a SentOn DateTime element using the data from SentOn in the Flexible UI Context.
126
144
  * @see DateTime
127
145
  */
128
- export declare const SentOn: import("react").ComponentType<DateTimeProps>;
146
+ export declare const SentOn: import("react").ComponentType<BaseDateTimeProps>;
129
147
  /**
130
148
  * Creates a Snippet element using the data from Snippet in the Flexible UI Context.
131
149
  * @see Text
@@ -135,46 +153,46 @@ export { default as Snippet } from './snippet-element';
135
153
  * Creates a SourceBranch Text element using the data from sourceBranch in the Flexible UI Context.
136
154
  * @see Text
137
155
  */
138
- export declare const SourceBranch: import("react").ComponentType<TextProps>;
156
+ export declare const SourceBranch: import("react").ComponentType<BaseTextElementProps>;
139
157
  /**
140
158
  * Creates a State Lozenge element using the data from State in the Flexible UI Context.
141
159
  * @see Lozenge
142
160
  */
143
- export declare const State: import("react").ComponentType<LozengeProps>;
161
+ export declare const State: import("react").ComponentType<BaseLozengeElementProps>;
144
162
  /**
145
163
  * Creates a SubscriberCount Badge element using the data from SubscriberCount in the Flexible UI Context.
146
164
  * @see Badge
147
165
  */
148
- export declare const SubscriberCount: import("react").ComponentType<BadgeProps>;
166
+ export declare const SubscriberCount: import("react").ComponentType<BaseBadgeElementProps>;
149
167
  /**
150
168
  * Create a SubTasks Badge element using the data from subTasks in the Flexible UI Context.
151
169
  * @see Badge
152
170
  */
153
- export declare const SubTasksProgress: import("react").ComponentType<BadgeProps>;
171
+ export declare const SubTasksProgress: import("react").ComponentType<BaseBadgeElementProps>;
154
172
  /**
155
173
  * Create a StoryPoints Badge element using the data from storyPoints in the Flexible UI Context.
156
174
  * @see AtlaskitBadge
157
175
  */
158
- export declare const StoryPoints: import("react").ComponentType<AtlaskitBadgeProps>;
176
+ export declare const StoryPoints: import("react").ComponentType<AtlaskitBadgeElementProps>;
159
177
  /**
160
178
  * Creates a TargetBranch Text element using the data from targetBranch in the Flexible UI Context.
161
179
  * @see Text
162
180
  */
163
- export declare const TargetBranch: import("react").ComponentType<TextProps>;
181
+ export declare const TargetBranch: import("react").ComponentType<BaseTextElementProps>;
164
182
  /**
165
183
  * Creates a Title Link element using the data from Title in the Flexible UI Context.
166
184
  * This represents the main link text within the Smart Link.
167
185
  * @see Link
168
186
  */
169
- export declare const Title: import("react").ComponentType<LinkProps>;
187
+ export declare const Title: import("react").ComponentType<BaseLinkElementProps>;
170
188
  /**
171
189
  * Creates a ViewCount Badge element using the data from ViewCount in the Flexible UI Context.
172
190
  * @see Badge
173
191
  */
174
- export declare const ViewCount: import("react").ComponentType<BadgeProps>;
192
+ export declare const ViewCount: import("react").ComponentType<BaseBadgeElementProps>;
175
193
  /**
176
194
  * Creates a VoteCount Badge element using the data from VoteCount in the Flexible UI Context.
177
195
  * @see Badge
178
196
  */
179
- export declare const VoteCount: import("react").ComponentType<BadgeProps>;
180
- export { default as AppliedToComponentsCount } from './applied-to-components-count';
197
+ export declare const VoteCount: import("react").ComponentType<BaseBadgeElementProps>;
198
+ export { default as AppliedToComponentsCount } from './applied-to-components-count-element';
@@ -0,0 +1,26 @@
1
+ /// <reference types="react" />
2
+ import { type MediaType } from '../../../../../constants';
3
+ import { type ElementProps } from '../index';
4
+ export type MediaElementProps = ElementProps & {
5
+ /**
6
+ * The type of media to display. Can be image.
7
+ */
8
+ type?: MediaType;
9
+ /**
10
+ * The URL of the associated media to display.
11
+ */
12
+ url?: string;
13
+ /**
14
+ * Function to be called on error loading media.
15
+ * @internal
16
+ */
17
+ onError?: () => void;
18
+ onLoad?: () => void;
19
+ };
20
+ /**
21
+ * A base element that displays a Media.
22
+ * @internal
23
+ * @param props - The props necessary for the Media element.
24
+ */
25
+ declare const MediaElement: ({ name, className, testId, type, url, onLoad, onError, }: MediaElementProps) => JSX.Element | null;
26
+ export default MediaElement;
@@ -1,5 +1,6 @@
1
- import { type ElementProps } from '../types';
2
- export type PreviewProps = ElementProps & {
1
+ import React from 'react';
2
+ import type { ElementProps } from '../index';
3
+ export type PreviewElementProps = ElementProps & {
3
4
  /**
4
5
  * An image URL to render. This will replace the default image from smart link data.
5
6
  */
@@ -11,3 +12,5 @@ export type PreviewProps = ElementProps & {
11
12
  onError?: () => void;
12
13
  onLoad?: () => void;
13
14
  };
15
+ declare const PreviewElement: (props: PreviewElementProps) => React.JSX.Element | null;
16
+ export default PreviewElement;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { type TextProps } from '../text/types';
3
- declare const SnippetElement: (props: TextProps) => JSX.Element;
2
+ import { type BaseTextElementProps } from '../common';
3
+ export type SnippetElementProps = BaseTextElementProps;
4
+ declare const SnippetElement: (props: SnippetElementProps) => JSX.Element;
4
5
  export default SnippetElement;
@@ -1,3 +1,6 @@
1
1
  import React from 'react';
2
2
  import { ElementName } from '../../../../constants';
3
+ /**
4
+ * @deprecated
5
+ */
3
6
  export declare const createElement: <P extends {}>(name: ElementName) => React.ComponentType<P>;
@@ -7,48 +7,44 @@
7
7
  * DO NOT add a new prop to these components until we are ready to support it externally.
8
8
  */
9
9
  import React from 'react';
10
- import { type BadgeProps } from './components/elements/badge/types';
11
- import { type DateTimeProps } from './components/elements/date-time/types';
12
- import { type IconProps } from './components/elements/icon/types';
13
- import { type LinkProps } from './components/elements/link/types';
14
- import { type PreviewProps } from './components/elements/preview/types';
15
- import { type TextProps } from './components/elements/text/types';
10
+ import { type BaseBadgeElementProps, type BaseDateTimeProps, type BaseLinkElementProps, type BaseTextElementProps } from './components/elements/common';
11
+ import { type IconElementProps } from './components/elements/icon-element';
12
+ import { PreviewElementProps } from './components/elements/preview-element';
16
13
  export declare const AssignedToElement: () => React.JSX.Element;
17
14
  export declare const AssignedToGroupElement: () => React.JSX.Element;
18
15
  export declare const AttachmentCountElement: () => React.JSX.Element;
19
16
  export declare const AuthorGroupElement: () => React.JSX.Element;
20
17
  export declare const ChecklistProgressElement: () => React.JSX.Element;
21
18
  export declare const CollaboratorGroupElement: () => React.JSX.Element;
22
- type CommentCountElementProps = Pick<BadgeProps, 'color'>;
19
+ type CommentCountElementProps = Pick<BaseBadgeElementProps, 'color'>;
23
20
  export declare const CommentCountElement: (props?: CommentCountElementProps) => React.JSX.Element;
24
21
  export declare const CreatedOnElement: () => React.JSX.Element;
25
22
  export declare const CreatedByElement: () => React.JSX.Element;
26
23
  export declare const DueOnElement: () => React.JSX.Element;
27
24
  export declare const LatestCommitElement: () => React.JSX.Element;
28
- type LinkIconElementProps = Pick<IconProps, 'render'> & {
25
+ type LinkIconElementProps = Pick<IconElementProps, 'render'> & {
29
26
  iconTileSize?: 16 | 24;
30
27
  };
31
28
  export declare const LinkIconElement: (props?: LinkIconElementProps) => React.JSX.Element;
32
29
  export declare const LocationElement: () => React.JSX.Element;
33
30
  export declare const ModifiedByElement: () => React.JSX.Element;
34
- type ModifiedOnElementProps = Pick<DateTimeProps, 'hideDatePrefix' | 'color'>;
31
+ type ModifiedOnElementProps = Pick<BaseDateTimeProps, 'hideDatePrefix' | 'color'>;
35
32
  export declare const ModifiedOnElement: (props?: ModifiedOnElementProps) => React.JSX.Element;
36
- type OwnedByElementProps = Pick<TextProps, 'hideFormat' | 'color'>;
33
+ type OwnedByElementProps = Pick<BaseTextElementProps, 'hideFormat' | 'color'>;
37
34
  export declare const OwnedByElement: (props?: OwnedByElementProps) => React.JSX.Element;
38
35
  export declare const OwnedByGroupElement: () => React.JSX.Element;
39
- type PreviewElementProps = {
40
- url?: PreviewProps['overrideUrl'];
41
- };
42
- export declare const PreviewElement: (props?: PreviewElementProps) => React.JSX.Element;
36
+ export declare const PreviewElement: (props: Omit<PreviewElementProps, 'overrideUrl'> & {
37
+ url?: PreviewElementProps['overrideUrl'];
38
+ }) => React.JSX.Element;
43
39
  export declare const PriorityElement: () => React.JSX.Element;
44
40
  export declare const ProgrammingLanguageElement: () => React.JSX.Element;
45
41
  export declare const ProviderElement: () => React.JSX.Element;
46
- type ReactCountElementProps = Pick<BadgeProps, 'color'>;
42
+ type ReactCountElementProps = Pick<BaseBadgeElementProps, 'color'>;
47
43
  export declare const ReactCountElement: (props?: ReactCountElementProps) => React.JSX.Element;
48
44
  export declare const ReadTimeElement: () => React.JSX.Element;
49
45
  export declare const SentOnElement: () => React.JSX.Element;
50
- export type SnippetElementProps = Pick<TextProps, 'maxLines'> & {
51
- text?: TextProps['content'];
46
+ export type SnippetElementProps = Pick<BaseTextElementProps, 'maxLines'> & {
47
+ text?: BaseTextElementProps['content'];
52
48
  };
53
49
  export declare const SnippetElement: (props: SnippetElementProps) => React.JSX.Element;
54
50
  export declare const SourceBranchElement: () => React.JSX.Element;
@@ -57,7 +53,7 @@ export declare const StoryPointsElement: () => React.JSX.Element;
57
53
  export declare const SubscriberCountElement: () => React.JSX.Element;
58
54
  export declare const SubTasksProgressElement: () => React.JSX.Element;
59
55
  export declare const TargetBranchElement: () => React.JSX.Element;
60
- export type TitleElementProps = Pick<LinkProps, 'hideTooltip' | 'maxLines' | 'target' | 'text'>;
56
+ export type TitleElementProps = Pick<BaseLinkElementProps, 'hideTooltip' | 'maxLines' | 'target' | 'text'>;
61
57
  export declare const TitleElement: (props: TitleElementProps) => React.JSX.Element;
62
58
  export declare const ViewCountElement: () => React.JSX.Element;
63
59
  export declare const VoteCountElement: () => React.JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "38.3.0",
3
+ "version": "38.4.2",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -243,6 +243,9 @@
243
243
  "platform-linking-fix-a11y-in-smart-card": {
244
244
  "type": "boolean"
245
245
  },
246
+ "platform-linking-flexible-card-context": {
247
+ "type": "boolean"
248
+ },
246
249
  "dst-a11y__replace-anchor-with-link__linking-platfo": {
247
250
  "type": "boolean"
248
251
  }
@@ -1,5 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
@@ -1,5 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
@@ -1,5 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
@@ -1,5 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
@@ -1,5 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
@@ -1,5 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
@@ -1,5 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
@@ -1,5 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
@@ -1,5 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
@@ -1,5 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
@@ -1,5 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
@@ -1,21 +0,0 @@
1
- import _extends from "@babel/runtime/helpers/extends";
2
- import React, { useContext } from 'react';
3
- import { MediaType } from '../../../../../constants';
4
- import { FlexibleUiContext } from '../../../../../state/flexible-ui-context';
5
- import Media from '../media';
6
- const Preview = props => {
7
- const {
8
- overrideUrl,
9
- ...rest
10
- } = props !== null && props !== void 0 ? props : {};
11
- const context = useContext(FlexibleUiContext);
12
- const data = overrideUrl ? {
13
- url: overrideUrl,
14
- type: MediaType.Image
15
- } : context === null || context === void 0 ? void 0 : context.preview;
16
- if (!data) {
17
- return null;
18
- }
19
- return /*#__PURE__*/React.createElement(Media, _extends({}, rest, data));
20
- };
21
- export default Preview;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import type { BadgeProps } from '../badge/types';
3
- declare const AppliedToComponentsCount: (props: BadgeProps) => React.JSX.Element | null;
4
- export default AppliedToComponentsCount;
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- import { type AtlaskitBadgeProps } from './types';
3
- /**
4
- * A base element that displays a visual indicator for a numeric value
5
- * @internal
6
- * @see StoryPoints
7
- * */
8
- declare const AtlaskitBadge: ({ value, name, className, testId, }: AtlaskitBadgeProps) => JSX.Element | null;
9
- export default AtlaskitBadge;
@@ -1,4 +0,0 @@
1
- import { type ElementProps } from '../types';
2
- export type AtlaskitBadgeProps = ElementProps & {
3
- value?: number;
4
- };
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- import { type AvatarGroupProps } from './types';
3
- /**
4
- * A base element that displays a group of avatars.
5
- * @internal
6
- * @param {AvatarGroupProps} AvatarGroupProps - The props necessary for the AvatarGroup.
7
- * @see AuthorGroup
8
- * @see CollaboratorGroup
9
- */
10
- declare const AvatarGroup: ({ items, maxCount, name, className, size, testId, showNamePrefix, showFallbackAvatar, }: AvatarGroupProps) => JSX.Element | null;
11
- export default AvatarGroup;
@@ -1,29 +0,0 @@
1
- import { type ElementProps } from '../types';
2
- export type AvatarItemProps = {
3
- /**
4
- * The image to be used in an `@atlaskit/avatar - this should be a url to the image src
5
- */
6
- src?: string;
7
- /**
8
- * The name of the person in the avatar.
9
- */
10
- name: string;
11
- };
12
- export type AvatarGroupProps = ElementProps & {
13
- /**
14
- * An array of Avatars to show
15
- */
16
- items?: AvatarItemProps[];
17
- /**
18
- * The maximum number of Avatars to show in the AvatarGroup
19
- */
20
- maxCount?: number;
21
- /**
22
- * Shows a name prefix in the Avatar tooltip (Created by, Assigned To, Owned by)
23
- */
24
- showNamePrefix?: boolean;
25
- /**
26
- * Shows a default fallback avatar if no persons in the AvatarGroup.
27
- */
28
- showFallbackAvatar?: boolean;
29
- };