@atlaskit/smart-card 38.5.0 → 38.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (248) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/cjs/utils/analytics/analytics.js +1 -1
  3. package/dist/cjs/view/EmbedModal/index.js +2 -2
  4. package/dist/cjs/view/FlexibleCard/components/elements/applied-to-components-count-element/index.js +2 -10
  5. package/dist/cjs/view/FlexibleCard/components/elements/assigned-to-element/index.js +21 -0
  6. package/dist/cjs/view/FlexibleCard/components/elements/assigned-to-group-element/index.js +20 -0
  7. package/dist/cjs/view/FlexibleCard/components/elements/attachment-count-element/index.js +23 -0
  8. package/dist/cjs/view/FlexibleCard/components/elements/author-group-element/index.js +20 -0
  9. package/dist/cjs/view/FlexibleCard/components/elements/checklist-progress-element/index.js +23 -0
  10. package/dist/cjs/view/FlexibleCard/components/elements/collaborator-group-element/index.js +20 -0
  11. package/dist/cjs/view/FlexibleCard/components/elements/comment-count-element/index.js +23 -0
  12. package/dist/cjs/view/FlexibleCard/components/elements/{atlaskit-badge-element → common/base-atlaskit-badge-element}/index.js +8 -3
  13. package/dist/cjs/view/FlexibleCard/components/elements/common/base-avatar-group-element/index.js +9 -2
  14. package/dist/cjs/view/FlexibleCard/components/elements/common/base-badge-element/index.js +13 -2
  15. package/dist/cjs/view/FlexibleCard/components/elements/common/base-date-time-element/index.js +9 -3
  16. package/dist/cjs/view/FlexibleCard/components/elements/{icon-element → common/base-icon-element}/index.js +25 -12
  17. package/dist/cjs/view/FlexibleCard/components/elements/common/base-link-element/index.js +8 -2
  18. package/dist/cjs/view/FlexibleCard/components/elements/common/base-lozenge-element/index.js +17 -2
  19. package/dist/cjs/view/FlexibleCard/components/elements/common/base-text-element/index.js +28 -2
  20. package/dist/cjs/view/FlexibleCard/components/elements/common/index.js +77 -7
  21. package/dist/cjs/view/FlexibleCard/components/elements/created-by-element/index.js +21 -0
  22. package/dist/cjs/view/FlexibleCard/components/elements/created-on-element/index.js +20 -0
  23. package/dist/cjs/view/FlexibleCard/components/elements/due-on-element/index.js +20 -0
  24. package/dist/cjs/view/FlexibleCard/components/elements/index.js +10 -0
  25. package/dist/cjs/view/FlexibleCard/components/elements/latest-commit-element/index.js +23 -0
  26. package/dist/cjs/view/FlexibleCard/components/elements/link-icon-element/index.js +31 -0
  27. package/dist/cjs/view/FlexibleCard/components/elements/location-element/index.js +23 -0
  28. package/dist/cjs/view/FlexibleCard/components/elements/modified-by-element/index.js +21 -0
  29. package/dist/cjs/view/FlexibleCard/components/elements/modified-on-element/index.js +20 -0
  30. package/dist/cjs/view/FlexibleCard/components/elements/owned-by-element/index.js +21 -0
  31. package/dist/cjs/view/FlexibleCard/components/elements/owned-by-group-element/index.js +20 -0
  32. package/dist/cjs/view/FlexibleCard/components/elements/preview-element/index.js +2 -10
  33. package/dist/cjs/view/FlexibleCard/components/elements/priority-element/index.js +21 -0
  34. package/dist/cjs/view/FlexibleCard/components/elements/programming-language-element/index.js +22 -0
  35. package/dist/cjs/view/FlexibleCard/components/elements/provider-element/index.js +21 -0
  36. package/dist/cjs/view/FlexibleCard/components/elements/react-count-element/index.js +23 -0
  37. package/dist/cjs/view/FlexibleCard/components/elements/read-time-element/index.js +21 -0
  38. package/dist/cjs/view/FlexibleCard/components/elements/sent-on-element/index.js +20 -0
  39. package/dist/cjs/view/FlexibleCard/components/elements/snippet-element/index.js +2 -7
  40. package/dist/cjs/view/FlexibleCard/components/elements/source-branch-element/index.js +20 -0
  41. package/dist/cjs/view/FlexibleCard/components/elements/state-element/index.js +21 -0
  42. package/dist/cjs/view/FlexibleCard/components/elements/story-points-element/index.js +20 -0
  43. package/dist/cjs/view/FlexibleCard/components/elements/sub-tasks-progress-element/index.js +23 -0
  44. package/dist/cjs/view/FlexibleCard/components/elements/subscriber-count-element/index.js +23 -0
  45. package/dist/cjs/view/FlexibleCard/components/elements/target-branch-element/index.js +20 -0
  46. package/dist/cjs/view/FlexibleCard/components/elements/title-element/index.js +20 -0
  47. package/dist/cjs/view/FlexibleCard/components/elements/utils.js +129 -139
  48. package/dist/cjs/view/FlexibleCard/components/elements/view-count-element/index.js +23 -0
  49. package/dist/cjs/view/FlexibleCard/components/elements/vote-count-element/index.js +23 -0
  50. package/dist/cjs/view/HoverCard/components/views/resolving/index.js +2 -2
  51. package/dist/cjs/view/LinkUrl/index.js +1 -1
  52. package/dist/es2019/utils/analytics/analytics.js +1 -1
  53. package/dist/es2019/view/EmbedModal/index.js +2 -2
  54. package/dist/es2019/view/FlexibleCard/components/elements/applied-to-components-count-element/index.js +3 -8
  55. package/dist/es2019/view/FlexibleCard/components/elements/assigned-to-element/index.js +14 -0
  56. package/dist/es2019/view/FlexibleCard/components/elements/assigned-to-group-element/index.js +13 -0
  57. package/dist/es2019/view/FlexibleCard/components/elements/attachment-count-element/index.js +16 -0
  58. package/dist/es2019/view/FlexibleCard/components/elements/author-group-element/index.js +13 -0
  59. package/dist/es2019/view/FlexibleCard/components/elements/checklist-progress-element/index.js +16 -0
  60. package/dist/es2019/view/FlexibleCard/components/elements/collaborator-group-element/index.js +13 -0
  61. package/dist/es2019/view/FlexibleCard/components/elements/comment-count-element/index.js +16 -0
  62. package/dist/es2019/view/FlexibleCard/components/elements/{atlaskit-badge-element → common/base-atlaskit-badge-element}/index.js +7 -2
  63. package/dist/es2019/view/FlexibleCard/components/elements/common/base-avatar-group-element/index.js +8 -1
  64. package/dist/es2019/view/FlexibleCard/components/elements/common/base-badge-element/index.js +12 -1
  65. package/dist/es2019/view/FlexibleCard/components/elements/common/base-date-time-element/index.js +8 -2
  66. package/dist/es2019/view/FlexibleCard/components/elements/{icon-element → common/base-icon-element}/index.js +19 -5
  67. package/dist/es2019/view/FlexibleCard/components/elements/common/base-link-element/index.js +7 -1
  68. package/dist/es2019/view/FlexibleCard/components/elements/common/base-lozenge-element/index.js +16 -1
  69. package/dist/es2019/view/FlexibleCard/components/elements/common/base-text-element/index.js +27 -1
  70. package/dist/es2019/view/FlexibleCard/components/elements/common/index.js +8 -6
  71. package/dist/es2019/view/FlexibleCard/components/elements/created-by-element/index.js +14 -0
  72. package/dist/es2019/view/FlexibleCard/components/elements/created-on-element/index.js +13 -0
  73. package/dist/es2019/view/FlexibleCard/components/elements/due-on-element/index.js +13 -0
  74. package/dist/es2019/view/FlexibleCard/components/elements/index.js +10 -0
  75. package/dist/es2019/view/FlexibleCard/components/elements/latest-commit-element/index.js +16 -0
  76. package/dist/es2019/view/FlexibleCard/components/elements/link-icon-element/index.js +23 -0
  77. package/dist/es2019/view/FlexibleCard/components/elements/location-element/index.js +16 -0
  78. package/dist/es2019/view/FlexibleCard/components/elements/modified-by-element/index.js +14 -0
  79. package/dist/es2019/view/FlexibleCard/components/elements/modified-on-element/index.js +13 -0
  80. package/dist/es2019/view/FlexibleCard/components/elements/owned-by-element/index.js +14 -0
  81. package/dist/es2019/view/FlexibleCard/components/elements/owned-by-group-element/index.js +13 -0
  82. package/dist/es2019/view/FlexibleCard/components/elements/preview-element/index.js +3 -8
  83. package/dist/es2019/view/FlexibleCard/components/elements/priority-element/index.js +14 -0
  84. package/dist/es2019/view/FlexibleCard/components/elements/programming-language-element/index.js +15 -0
  85. package/dist/es2019/view/FlexibleCard/components/elements/provider-element/index.js +14 -0
  86. package/dist/es2019/view/FlexibleCard/components/elements/react-count-element/index.js +16 -0
  87. package/dist/es2019/view/FlexibleCard/components/elements/read-time-element/index.js +14 -0
  88. package/dist/es2019/view/FlexibleCard/components/elements/sent-on-element/index.js +13 -0
  89. package/dist/es2019/view/FlexibleCard/components/elements/snippet-element/index.js +2 -7
  90. package/dist/es2019/view/FlexibleCard/components/elements/source-branch-element/index.js +13 -0
  91. package/dist/es2019/view/FlexibleCard/components/elements/state-element/index.js +14 -0
  92. package/dist/es2019/view/FlexibleCard/components/elements/story-points-element/index.js +13 -0
  93. package/dist/es2019/view/FlexibleCard/components/elements/sub-tasks-progress-element/index.js +16 -0
  94. package/dist/es2019/view/FlexibleCard/components/elements/subscriber-count-element/index.js +16 -0
  95. package/dist/es2019/view/FlexibleCard/components/elements/target-branch-element/index.js +13 -0
  96. package/dist/es2019/view/FlexibleCard/components/elements/title-element/index.js +13 -0
  97. package/dist/es2019/view/FlexibleCard/components/elements/utils.js +116 -124
  98. package/dist/es2019/view/FlexibleCard/components/elements/view-count-element/index.js +16 -0
  99. package/dist/es2019/view/FlexibleCard/components/elements/vote-count-element/index.js +16 -0
  100. package/dist/es2019/view/HoverCard/components/views/resolving/index.js +2 -2
  101. package/dist/es2019/view/LinkUrl/index.js +1 -1
  102. package/dist/esm/utils/analytics/analytics.js +1 -1
  103. package/dist/esm/view/EmbedModal/index.js +2 -2
  104. package/dist/esm/view/FlexibleCard/components/elements/applied-to-components-count-element/index.js +3 -8
  105. package/dist/esm/view/FlexibleCard/components/elements/assigned-to-element/index.js +14 -0
  106. package/dist/esm/view/FlexibleCard/components/elements/assigned-to-group-element/index.js +13 -0
  107. package/dist/esm/view/FlexibleCard/components/elements/attachment-count-element/index.js +16 -0
  108. package/dist/esm/view/FlexibleCard/components/elements/author-group-element/index.js +13 -0
  109. package/dist/esm/view/FlexibleCard/components/elements/checklist-progress-element/index.js +16 -0
  110. package/dist/esm/view/FlexibleCard/components/elements/collaborator-group-element/index.js +13 -0
  111. package/dist/esm/view/FlexibleCard/components/elements/comment-count-element/index.js +16 -0
  112. package/dist/esm/view/FlexibleCard/components/elements/{atlaskit-badge-element → common/base-atlaskit-badge-element}/index.js +7 -2
  113. package/dist/esm/view/FlexibleCard/components/elements/common/base-avatar-group-element/index.js +8 -1
  114. package/dist/esm/view/FlexibleCard/components/elements/common/base-badge-element/index.js +12 -1
  115. package/dist/esm/view/FlexibleCard/components/elements/common/base-date-time-element/index.js +8 -2
  116. package/dist/esm/view/FlexibleCard/components/elements/{icon-element → common/base-icon-element}/index.js +21 -5
  117. package/dist/esm/view/FlexibleCard/components/elements/common/base-link-element/index.js +7 -1
  118. package/dist/esm/view/FlexibleCard/components/elements/common/base-lozenge-element/index.js +16 -1
  119. package/dist/esm/view/FlexibleCard/components/elements/common/base-text-element/index.js +27 -1
  120. package/dist/esm/view/FlexibleCard/components/elements/common/index.js +8 -6
  121. package/dist/esm/view/FlexibleCard/components/elements/created-by-element/index.js +14 -0
  122. package/dist/esm/view/FlexibleCard/components/elements/created-on-element/index.js +13 -0
  123. package/dist/esm/view/FlexibleCard/components/elements/due-on-element/index.js +13 -0
  124. package/dist/esm/view/FlexibleCard/components/elements/index.js +10 -0
  125. package/dist/esm/view/FlexibleCard/components/elements/latest-commit-element/index.js +16 -0
  126. package/dist/esm/view/FlexibleCard/components/elements/link-icon-element/index.js +24 -0
  127. package/dist/esm/view/FlexibleCard/components/elements/location-element/index.js +16 -0
  128. package/dist/esm/view/FlexibleCard/components/elements/modified-by-element/index.js +14 -0
  129. package/dist/esm/view/FlexibleCard/components/elements/modified-on-element/index.js +13 -0
  130. package/dist/esm/view/FlexibleCard/components/elements/owned-by-element/index.js +14 -0
  131. package/dist/esm/view/FlexibleCard/components/elements/owned-by-group-element/index.js +13 -0
  132. package/dist/esm/view/FlexibleCard/components/elements/preview-element/index.js +3 -8
  133. package/dist/esm/view/FlexibleCard/components/elements/priority-element/index.js +14 -0
  134. package/dist/esm/view/FlexibleCard/components/elements/programming-language-element/index.js +15 -0
  135. package/dist/esm/view/FlexibleCard/components/elements/provider-element/index.js +14 -0
  136. package/dist/esm/view/FlexibleCard/components/elements/react-count-element/index.js +16 -0
  137. package/dist/esm/view/FlexibleCard/components/elements/read-time-element/index.js +14 -0
  138. package/dist/esm/view/FlexibleCard/components/elements/sent-on-element/index.js +13 -0
  139. package/dist/esm/view/FlexibleCard/components/elements/snippet-element/index.js +2 -7
  140. package/dist/esm/view/FlexibleCard/components/elements/source-branch-element/index.js +13 -0
  141. package/dist/esm/view/FlexibleCard/components/elements/state-element/index.js +14 -0
  142. package/dist/esm/view/FlexibleCard/components/elements/story-points-element/index.js +13 -0
  143. package/dist/esm/view/FlexibleCard/components/elements/sub-tasks-progress-element/index.js +16 -0
  144. package/dist/esm/view/FlexibleCard/components/elements/subscriber-count-element/index.js +16 -0
  145. package/dist/esm/view/FlexibleCard/components/elements/target-branch-element/index.js +13 -0
  146. package/dist/esm/view/FlexibleCard/components/elements/title-element/index.js +13 -0
  147. package/dist/esm/view/FlexibleCard/components/elements/utils.js +116 -125
  148. package/dist/esm/view/FlexibleCard/components/elements/view-count-element/index.js +16 -0
  149. package/dist/esm/view/FlexibleCard/components/elements/vote-count-element/index.js +16 -0
  150. package/dist/esm/view/HoverCard/components/views/resolving/index.js +2 -2
  151. package/dist/esm/view/LinkUrl/index.js +1 -1
  152. package/dist/types/view/FlexibleCard/components/elements/assigned-to-element/index.d.ts +5 -0
  153. package/dist/types/view/FlexibleCard/components/elements/assigned-to-group-element/index.d.ts +5 -0
  154. package/dist/types/view/FlexibleCard/components/elements/attachment-count-element/index.d.ts +5 -0
  155. package/dist/types/view/FlexibleCard/components/elements/author-group-element/index.d.ts +5 -0
  156. package/dist/types/view/FlexibleCard/components/elements/checklist-progress-element/index.d.ts +5 -0
  157. package/dist/types/view/FlexibleCard/components/elements/collaborator-group-element/index.d.ts +5 -0
  158. package/dist/types/view/FlexibleCard/components/elements/comment-count-element/index.d.ts +5 -0
  159. package/dist/types/view/FlexibleCard/components/elements/common/base-atlaskit-badge-element/index.d.ts +13 -0
  160. package/dist/types/view/FlexibleCard/components/elements/common/base-avatar-group-element/index.d.ts +1 -0
  161. package/dist/types/view/FlexibleCard/components/elements/common/base-badge-element/index.d.ts +1 -0
  162. package/dist/types/view/FlexibleCard/components/elements/common/base-date-time-element/index.d.ts +4 -3
  163. package/dist/{types-ts4.5/view/FlexibleCard/components/elements/icon-element → types/view/FlexibleCard/components/elements/common/base-icon-element}/index.d.ts +15 -4
  164. package/dist/types/view/FlexibleCard/components/elements/common/base-link-element/index.d.ts +3 -2
  165. package/dist/types/view/FlexibleCard/components/elements/common/base-lozenge-element/index.d.ts +1 -0
  166. package/dist/types/view/FlexibleCard/components/elements/common/base-text-element/index.d.ts +3 -0
  167. package/dist/types/view/FlexibleCard/components/elements/common/index.d.ts +8 -6
  168. package/dist/types/view/FlexibleCard/components/elements/created-by-element/index.d.ts +5 -0
  169. package/dist/types/view/FlexibleCard/components/elements/created-on-element/index.d.ts +5 -0
  170. package/dist/types/view/FlexibleCard/components/elements/due-on-element/index.d.ts +5 -0
  171. package/dist/types/view/FlexibleCard/components/elements/index.d.ts +12 -8
  172. package/dist/types/view/FlexibleCard/components/elements/latest-commit-element/index.d.ts +5 -0
  173. package/dist/types/view/FlexibleCard/components/elements/link-icon-element/index.d.ts +5 -0
  174. package/dist/types/view/FlexibleCard/components/elements/location-element/index.d.ts +5 -0
  175. package/dist/types/view/FlexibleCard/components/elements/modified-by-element/index.d.ts +5 -0
  176. package/dist/types/view/FlexibleCard/components/elements/modified-on-element/index.d.ts +5 -0
  177. package/dist/types/view/FlexibleCard/components/elements/owned-by-element/index.d.ts +5 -0
  178. package/dist/types/view/FlexibleCard/components/elements/owned-by-group-element/index.d.ts +5 -0
  179. package/dist/types/view/FlexibleCard/components/elements/priority-element/index.d.ts +5 -0
  180. package/dist/types/view/FlexibleCard/components/elements/programming-language-element/index.d.ts +5 -0
  181. package/dist/types/view/FlexibleCard/components/elements/provider-element/index.d.ts +5 -0
  182. package/dist/types/view/FlexibleCard/components/elements/react-count-element/index.d.ts +5 -0
  183. package/dist/types/view/FlexibleCard/components/elements/read-time-element/index.d.ts +5 -0
  184. package/dist/types/view/FlexibleCard/components/elements/sent-on-element/index.d.ts +5 -0
  185. package/dist/types/view/FlexibleCard/components/elements/source-branch-element/index.d.ts +5 -0
  186. package/dist/types/view/FlexibleCard/components/elements/state-element/index.d.ts +5 -0
  187. package/dist/types/view/FlexibleCard/components/elements/story-points-element/index.d.ts +5 -0
  188. package/dist/types/view/FlexibleCard/components/elements/sub-tasks-progress-element/index.d.ts +5 -0
  189. package/dist/types/view/FlexibleCard/components/elements/subscriber-count-element/index.d.ts +5 -0
  190. package/dist/types/view/FlexibleCard/components/elements/target-branch-element/index.d.ts +5 -0
  191. package/dist/types/view/FlexibleCard/components/elements/title-element/index.d.ts +5 -0
  192. package/dist/types/view/FlexibleCard/components/elements/utils.d.ts +1 -1
  193. package/dist/types/view/FlexibleCard/components/elements/view-count-element/index.d.ts +5 -0
  194. package/dist/types/view/FlexibleCard/components/elements/vote-count-element/index.d.ts +5 -0
  195. package/dist/types/view/FlexibleCard/external.d.ts +3 -4
  196. package/dist/types-ts4.5/view/FlexibleCard/components/elements/assigned-to-element/index.d.ts +5 -0
  197. package/dist/types-ts4.5/view/FlexibleCard/components/elements/assigned-to-group-element/index.d.ts +5 -0
  198. package/dist/types-ts4.5/view/FlexibleCard/components/elements/attachment-count-element/index.d.ts +5 -0
  199. package/dist/types-ts4.5/view/FlexibleCard/components/elements/author-group-element/index.d.ts +5 -0
  200. package/dist/types-ts4.5/view/FlexibleCard/components/elements/checklist-progress-element/index.d.ts +5 -0
  201. package/dist/types-ts4.5/view/FlexibleCard/components/elements/collaborator-group-element/index.d.ts +5 -0
  202. package/dist/types-ts4.5/view/FlexibleCard/components/elements/comment-count-element/index.d.ts +5 -0
  203. package/dist/types-ts4.5/view/FlexibleCard/components/elements/common/base-atlaskit-badge-element/index.d.ts +13 -0
  204. package/dist/types-ts4.5/view/FlexibleCard/components/elements/common/base-avatar-group-element/index.d.ts +1 -0
  205. package/dist/types-ts4.5/view/FlexibleCard/components/elements/common/base-badge-element/index.d.ts +1 -0
  206. package/dist/types-ts4.5/view/FlexibleCard/components/elements/common/base-date-time-element/index.d.ts +4 -3
  207. package/dist/{types/view/FlexibleCard/components/elements/icon-element → types-ts4.5/view/FlexibleCard/components/elements/common/base-icon-element}/index.d.ts +15 -4
  208. package/dist/types-ts4.5/view/FlexibleCard/components/elements/common/base-link-element/index.d.ts +3 -2
  209. package/dist/types-ts4.5/view/FlexibleCard/components/elements/common/base-lozenge-element/index.d.ts +1 -0
  210. package/dist/types-ts4.5/view/FlexibleCard/components/elements/common/base-text-element/index.d.ts +3 -0
  211. package/dist/types-ts4.5/view/FlexibleCard/components/elements/common/index.d.ts +8 -6
  212. package/dist/types-ts4.5/view/FlexibleCard/components/elements/created-by-element/index.d.ts +5 -0
  213. package/dist/types-ts4.5/view/FlexibleCard/components/elements/created-on-element/index.d.ts +5 -0
  214. package/dist/types-ts4.5/view/FlexibleCard/components/elements/due-on-element/index.d.ts +5 -0
  215. package/dist/types-ts4.5/view/FlexibleCard/components/elements/index.d.ts +12 -8
  216. package/dist/types-ts4.5/view/FlexibleCard/components/elements/latest-commit-element/index.d.ts +5 -0
  217. package/dist/types-ts4.5/view/FlexibleCard/components/elements/link-icon-element/index.d.ts +5 -0
  218. package/dist/types-ts4.5/view/FlexibleCard/components/elements/location-element/index.d.ts +5 -0
  219. package/dist/types-ts4.5/view/FlexibleCard/components/elements/modified-by-element/index.d.ts +5 -0
  220. package/dist/types-ts4.5/view/FlexibleCard/components/elements/modified-on-element/index.d.ts +5 -0
  221. package/dist/types-ts4.5/view/FlexibleCard/components/elements/owned-by-element/index.d.ts +5 -0
  222. package/dist/types-ts4.5/view/FlexibleCard/components/elements/owned-by-group-element/index.d.ts +5 -0
  223. package/dist/types-ts4.5/view/FlexibleCard/components/elements/priority-element/index.d.ts +5 -0
  224. package/dist/types-ts4.5/view/FlexibleCard/components/elements/programming-language-element/index.d.ts +5 -0
  225. package/dist/types-ts4.5/view/FlexibleCard/components/elements/provider-element/index.d.ts +5 -0
  226. package/dist/types-ts4.5/view/FlexibleCard/components/elements/react-count-element/index.d.ts +5 -0
  227. package/dist/types-ts4.5/view/FlexibleCard/components/elements/read-time-element/index.d.ts +5 -0
  228. package/dist/types-ts4.5/view/FlexibleCard/components/elements/sent-on-element/index.d.ts +5 -0
  229. package/dist/types-ts4.5/view/FlexibleCard/components/elements/source-branch-element/index.d.ts +5 -0
  230. package/dist/types-ts4.5/view/FlexibleCard/components/elements/state-element/index.d.ts +5 -0
  231. package/dist/types-ts4.5/view/FlexibleCard/components/elements/story-points-element/index.d.ts +5 -0
  232. package/dist/types-ts4.5/view/FlexibleCard/components/elements/sub-tasks-progress-element/index.d.ts +5 -0
  233. package/dist/types-ts4.5/view/FlexibleCard/components/elements/subscriber-count-element/index.d.ts +5 -0
  234. package/dist/types-ts4.5/view/FlexibleCard/components/elements/target-branch-element/index.d.ts +5 -0
  235. package/dist/types-ts4.5/view/FlexibleCard/components/elements/title-element/index.d.ts +5 -0
  236. package/dist/types-ts4.5/view/FlexibleCard/components/elements/utils.d.ts +1 -1
  237. package/dist/types-ts4.5/view/FlexibleCard/components/elements/view-count-element/index.d.ts +5 -0
  238. package/dist/types-ts4.5/view/FlexibleCard/components/elements/vote-count-element/index.d.ts +5 -0
  239. package/dist/types-ts4.5/view/FlexibleCard/external.d.ts +3 -4
  240. package/package.json +2 -2
  241. package/dist/types/view/FlexibleCard/components/elements/atlaskit-badge-element/index.d.ts +0 -12
  242. package/dist/types-ts4.5/view/FlexibleCard/components/elements/atlaskit-badge-element/index.d.ts +0 -12
  243. /package/dist/cjs/view/FlexibleCard/components/elements/{atlaskit-badge-element → common/base-atlaskit-badge-element}/index.compiled.css +0 -0
  244. /package/dist/cjs/view/FlexibleCard/components/elements/{icon-element → common/base-icon-element}/index.compiled.css +0 -0
  245. /package/dist/es2019/view/FlexibleCard/components/elements/{atlaskit-badge-element → common/base-atlaskit-badge-element}/index.compiled.css +0 -0
  246. /package/dist/es2019/view/FlexibleCard/components/elements/{icon-element → common/base-icon-element}/index.compiled.css +0 -0
  247. /package/dist/esm/view/FlexibleCard/components/elements/{atlaskit-badge-element → common/base-atlaskit-badge-element}/index.compiled.css +0 -0
  248. /package/dist/esm/view/FlexibleCard/components/elements/{icon-element → common/base-icon-element}/index.compiled.css +0 -0
@@ -2,20 +2,55 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import _typeof from "@babel/runtime/helpers/typeof";
3
3
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
4
4
  var _elementMappings;
5
- 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; }
6
- 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; }
7
5
  import React, { useContext } from 'react';
8
- import { FormattedDate } from 'react-intl-next';
9
6
  import { fg } from '@atlaskit/platform-feature-flags';
10
7
  import { ElementName, IconType, SmartLinkInternalTheme } from '../../../../constants';
11
8
  import { messages } from '../../../../messages';
12
9
  import { FlexibleUiContext, useFlexibleUiContext } from '../../../../state/flexible-ui-context';
13
- import { isProfileType } from '../../../../utils';
14
10
  import AppliedToComponentsCount from './applied-to-components-count-element';
15
- import AtlaskitElementBadge from './atlaskit-badge-element';
16
- import { BaseAvatarGroupElement, BaseBadgeElement, BaseDateTimeElement, BaseLinkElement, BaseLozengeElement, BaseTextElement } from './common';
17
- import IconElement from './icon-element';
11
+ import assignedToElement from './assigned-to-element';
12
+ import assignedToGroupElement from './assigned-to-group-element';
13
+ import attachmentCountElement from './attachment-count-element';
14
+ import authorGroupElement from './author-group-element';
15
+ import checklistProgressElement from './checklist-progress-element';
16
+ import collaboratorGroupElement from './collaborator-group-element';
17
+ import commentCountElement from './comment-count-element';
18
+ import { BaseAtlaskitBadgeElement, BaseAvatarGroupElement, BaseBadgeElement, BaseDateTimeElement, BaseIconElement, BaseLinkElement, BaseLozengeElement, BaseTextElement, toAtlaskitBadgeProps, toAvatarGroupProps, toBadgeProps, toDateLozengeProps, toDateTimeProps, toFormattedTextProps, toLinkIconProps, toLinkProps, toTextProps } from './common';
19
+ import createdByElement from './created-by-element';
20
+ import createdOnElement from './created-on-element';
21
+ import dueOnElement from './due-on-element';
22
+ import latestCommitElement from './latest-commit-element';
23
+ import linkIconElement from './link-icon-element';
24
+ import locationElement from './location-element';
18
25
  import MediaElement from './media-element';
26
+ import modifiedByElement from './modified-by-element';
27
+ import modifiedOnElement from './modified-on-element';
28
+ import ownedByElement from './owned-by-element';
29
+ import ownedByGroupElement from './owned-by-group-element';
30
+ import previewElement from './preview-element';
31
+ import priorityElement from './priority-element';
32
+ import programmingLanguageElement from './programming-language-element';
33
+ import providerElement from './provider-element';
34
+ import reactCountElement from './react-count-element';
35
+ import readTimeElement from './read-time-element';
36
+ import sentOnElement from './sent-on-element';
37
+ import sourceBranchElement from './source-branch-element';
38
+ import stateElement from './state-element';
39
+ import storyPointsElement from './story-points-element';
40
+ import subTasksProgressElement from './sub-tasks-progress-element';
41
+ import subscriberCountElement from './subscriber-count-element';
42
+ import targetBranchElement from './target-branch-element';
43
+ import titleElement from './title-element';
44
+ import viewCountElement from './view-count-element';
45
+ import voteCountElement from './vote-count-element';
46
+
47
+ /**
48
+ * @deprecated remove on FG clean up platform-linking-flexible-card-elements-refactor
49
+ */
50
+
51
+ /**
52
+ * @deprecated remove on FG clean up platform-linking-flexible-card-elements-refactor
53
+ */
19
54
  var elementMappings = (_elementMappings = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_elementMappings, ElementName.AppliedToComponentsCount, {
20
55
  component: AppliedToComponentsCount,
21
56
  props: {
@@ -25,105 +60,138 @@ var elementMappings = (_elementMappings = {}, _defineProperty(_defineProperty(_d
25
60
  component: BaseBadgeElement,
26
61
  props: {
27
62
  icon: IconType.Attachment
28
- }
63
+ },
64
+ newComponent: attachmentCountElement
29
65
  }), ElementName.AuthorGroup, {
30
- component: BaseAvatarGroupElement
66
+ component: BaseAvatarGroupElement,
67
+ newComponent: authorGroupElement
31
68
  }), ElementName.ChecklistProgress, {
32
69
  component: BaseBadgeElement,
33
70
  props: {
34
71
  icon: IconType.CheckItem
35
- }
72
+ },
73
+ newComponent: checklistProgressElement
36
74
  }), ElementName.CollaboratorGroup, {
37
- component: BaseAvatarGroupElement
75
+ component: BaseAvatarGroupElement,
76
+ newComponent: collaboratorGroupElement
38
77
  }), ElementName.CommentCount, {
39
78
  component: BaseBadgeElement,
40
79
  props: {
41
80
  icon: IconType.Comment
42
- }
81
+ },
82
+ newComponent: commentCountElement
43
83
  }), ElementName.ViewCount, {
44
84
  component: BaseBadgeElement,
45
85
  props: {
46
86
  icon: IconType.View
47
- }
87
+ },
88
+ newComponent: viewCountElement
48
89
  }), ElementName.ReactCount, {
49
90
  component: BaseBadgeElement,
50
91
  props: {
51
92
  icon: IconType.React
52
- }
93
+ },
94
+ newComponent: reactCountElement
53
95
  }), ElementName.VoteCount, {
54
96
  component: BaseBadgeElement,
55
97
  props: {
56
98
  icon: IconType.Vote
57
- }
99
+ },
100
+ newComponent: voteCountElement
58
101
  }), ElementName.CreatedBy, {
59
- component: BaseTextElement
102
+ component: BaseTextElement,
103
+ newComponent: createdByElement
60
104
  }), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_elementMappings, ElementName.OwnedBy, {
61
- component: BaseTextElement
105
+ component: BaseTextElement,
106
+ newComponent: ownedByElement
62
107
  }), ElementName.AssignedTo, {
63
- component: BaseTextElement
108
+ component: BaseTextElement,
109
+ newComponent: assignedToElement
64
110
  }), ElementName.AssignedToGroup, {
65
- component: BaseAvatarGroupElement
111
+ component: BaseAvatarGroupElement,
112
+ newComponent: assignedToGroupElement
66
113
  }), ElementName.OwnedByGroup, {
67
- component: BaseAvatarGroupElement
114
+ component: BaseAvatarGroupElement,
115
+ newComponent: ownedByGroupElement
68
116
  }), ElementName.CreatedOn, {
69
- component: BaseDateTimeElement
117
+ component: BaseDateTimeElement,
118
+ newComponent: createdOnElement
70
119
  }), ElementName.DueOn, {
71
- component: BaseLozengeElement
120
+ component: BaseLozengeElement,
121
+ newComponent: dueOnElement
72
122
  }), ElementName.LatestCommit, {
73
123
  component: BaseBadgeElement,
74
124
  props: {
75
125
  icon: IconType.Commit
76
- }
126
+ },
127
+ newComponent: latestCommitElement
77
128
  }), ElementName.LinkIcon, {
78
- component: IconElement
129
+ component: BaseIconElement,
130
+ newComponent: linkIconElement
79
131
  }), ElementName.ModifiedBy, {
80
- component: BaseTextElement
132
+ component: BaseTextElement,
133
+ newComponent: modifiedByElement
81
134
  }), ElementName.ModifiedOn, {
82
- component: BaseDateTimeElement
135
+ component: BaseDateTimeElement,
136
+ newComponent: modifiedOnElement
83
137
  }), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_elementMappings, ElementName.Preview, {
84
- component: MediaElement
138
+ component: MediaElement,
139
+ newComponent: previewElement
85
140
  }), ElementName.Priority, {
86
- component: BaseBadgeElement
141
+ component: BaseBadgeElement,
142
+ newComponent: priorityElement
87
143
  }), ElementName.ProgrammingLanguage, {
88
144
  component: BaseBadgeElement,
89
145
  props: {
90
146
  icon: IconType.ProgrammingLanguage
91
- }
147
+ },
148
+ newComponent: programmingLanguageElement
92
149
  }), ElementName.Provider, {
93
- component: BaseBadgeElement
150
+ component: BaseBadgeElement,
151
+ newComponent: providerElement
94
152
  }), ElementName.ReadTime, {
95
- component: BaseTextElement
153
+ component: BaseTextElement,
154
+ newComponent: readTimeElement
96
155
  }), ElementName.SentOn, {
97
- component: BaseDateTimeElement
156
+ component: BaseDateTimeElement,
157
+ newComponent: sentOnElement
98
158
  }), ElementName.SourceBranch, {
99
- component: BaseTextElement
159
+ component: BaseTextElement,
160
+ newComponent: sourceBranchElement
100
161
  }), ElementName.State, {
101
- component: BaseLozengeElement
162
+ component: BaseLozengeElement,
163
+ newComponent: stateElement
102
164
  }), ElementName.SubscriberCount, {
103
165
  component: BaseBadgeElement,
104
166
  props: {
105
167
  icon: IconType.Subscriber
106
- }
168
+ },
169
+ newComponent: subscriberCountElement
107
170
  }), ElementName.SubTasksProgress, {
108
171
  component: BaseBadgeElement,
109
172
  props: {
110
173
  icon: IconType.SubTasksProgress
111
- }
174
+ },
175
+ newComponent: subTasksProgressElement
112
176
  }), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_elementMappings, ElementName.StoryPoints, {
113
- component: AtlaskitElementBadge
177
+ component: BaseAtlaskitBadgeElement,
178
+ newComponent: storyPointsElement
114
179
  }), ElementName.TargetBranch, {
115
- component: BaseTextElement
180
+ component: BaseTextElement,
181
+ newComponent: targetBranchElement
116
182
  }), ElementName.Title, {
117
- component: BaseLinkElement
183
+ component: BaseLinkElement,
184
+ newComponent: titleElement
118
185
  }), ElementName.Location, {
119
186
  component: BaseLinkElement,
120
187
  props: {
121
188
  theme: SmartLinkInternalTheme.Grey
122
- }
189
+ },
190
+ newComponent: locationElement
123
191
  }));
124
192
 
125
193
  /**
126
- * @deprecated
194
+ * @deprecated remove on FG clean up platform-linking-flexible-card-elements-refactor
127
195
  */
128
196
  var getContextKey = function getContextKey(name) {
129
197
  // Attempt to predict context prop name in advance to reduce the amount of
@@ -132,7 +200,7 @@ var getContextKey = function getContextKey(name) {
132
200
  };
133
201
 
134
202
  /**
135
- * @deprecated
203
+ * @deprecated remove on FG clean up platform-linking-flexible-card-elements-refactor
136
204
  */
137
205
  var getData = function getData(elementName, contextKey, context) {
138
206
  if (!context) {
@@ -193,95 +261,18 @@ var getData = function getData(elementName, contextKey, context) {
193
261
  return _typeof(data) === 'object' ? data : undefined;
194
262
  }
195
263
  };
196
- var toAvatarGroupProps = function toAvatarGroupProps(items, showFallbackAvatar) {
197
- return items ? {
198
- items: items
199
- } : showFallbackAvatar ? {
200
- items: []
201
- } : undefined;
202
- };
203
- var toBadgeProps = function toBadgeProps(label) {
204
- return label ? {
205
- label: label
206
- } : undefined;
207
- };
208
- var toAtlaskitBadgeProps = function toAtlaskitBadgeProps(value) {
209
- return value ? {
210
- value: value
211
- } : undefined;
212
- };
213
- var toDateLozengeProps = function toDateLozengeProps(dateString) {
214
- if (dateString) {
215
- var text = Date.parse(dateString) ? /*#__PURE__*/React.createElement(FormattedDate, {
216
- value: new Date(dateString),
217
- year: "numeric",
218
- month: "short",
219
- day: "numeric",
220
- formatMatcher: "best fit"
221
- }) : dateString;
222
- return {
223
- text: text
224
- };
225
- }
226
- };
227
- var toDateTimeProps = function toDateTimeProps(type, dateString) {
228
- return dateString ? {
229
- date: new Date(dateString),
230
- type: type
231
- } : undefined;
232
- };
233
- var toFormattedTextProps = function toFormattedTextProps(descriptor, context) {
234
- if (fg('platform-linking-additional-flexible-element-props')) {
235
- return context ? {
236
- message: {
237
- descriptor: descriptor,
238
- values: {
239
- context: context
240
- }
241
- },
242
- content: context
243
- } : undefined;
244
- }
245
- return context ? {
246
- message: {
247
- descriptor: descriptor,
248
- values: {
249
- context: context
250
- }
251
- }
252
- } : undefined;
253
- };
254
- var toLinkProps = function toLinkProps(text, url) {
255
- return text ? {
256
- text: text,
257
- url: url
258
- } : undefined;
259
- };
260
- var toTextProps = function toTextProps(content) {
261
- return content ? {
262
- content: content
263
- } : undefined;
264
- };
265
- var toLinkIconProps = function toLinkIconProps(data, type) {
266
- var isDataLinkIcon = function isDataLinkIcon(_data) {
267
- return _typeof(_data) === 'object' && _data !== null && ('icon' in _data || 'url' in _data);
268
- };
269
- if (!isDataLinkIcon(data)) {
270
- return _typeof(data) === 'object' ? data : undefined;
271
- }
272
- var isImageRound = isProfileType(type);
273
- return _objectSpread(_objectSpread({}, data), {}, {
274
- appearance: isImageRound ? 'round' : 'square'
275
- });
276
- };
277
264
 
278
265
  /**
279
- * @deprecated
266
+ * @deprecated remove on FG platform-linking-flexible-card-elements-refactor clean up
280
267
  */
281
268
  export var createElement = function createElement(name) {
282
269
  var _ref = elementMappings[name] || {},
283
270
  BaseElement = _ref.component,
284
- props = _ref.props;
271
+ props = _ref.props,
272
+ newComponent = _ref.newComponent;
273
+ if (newComponent && fg('platform-linking-flexible-card-elements-refactor')) {
274
+ return newComponent;
275
+ }
285
276
  var contextKey = getContextKey(name);
286
277
  if (!BaseElement) {
287
278
  throw Error("Element ".concat(name, " does not exist."));
@@ -0,0 +1,16 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import React from 'react';
3
+ import { ElementName, IconType } from '../../../../../constants';
4
+ import { useFlexibleUiContext } from '../../../../../state/flexible-ui-context';
5
+ import { BaseBadgeElement, toBadgeProps } from '../common';
6
+ var ViewCountElement = function ViewCountElement(props) {
7
+ var _context$viewCount;
8
+ var context = useFlexibleUiContext();
9
+ var data = context ? toBadgeProps((_context$viewCount = context.viewCount) === null || _context$viewCount === void 0 ? void 0 : _context$viewCount.toString()) : null;
10
+ return data ? /*#__PURE__*/React.createElement(BaseBadgeElement, _extends({
11
+ icon: IconType.View
12
+ }, data, props, {
13
+ name: ElementName.ViewCount
14
+ })) : null;
15
+ };
16
+ export default ViewCountElement;
@@ -0,0 +1,16 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import React from 'react';
3
+ import { ElementName, IconType } from '../../../../../constants';
4
+ import { useFlexibleUiContext } from '../../../../../state/flexible-ui-context';
5
+ import { BaseBadgeElement, toBadgeProps } from '../common';
6
+ var VoteCountElement = function VoteCountElement(props) {
7
+ var _context$voteCount;
8
+ var context = useFlexibleUiContext();
9
+ var data = context ? toBadgeProps((_context$voteCount = context.voteCount) === null || _context$voteCount === void 0 ? void 0 : _context$voteCount.toString()) : null;
10
+ return data ? /*#__PURE__*/React.createElement(BaseBadgeElement, _extends({
11
+ icon: IconType.Vote
12
+ }, data, props, {
13
+ name: ElementName.VoteCount
14
+ })) : null;
15
+ };
16
+ export default VoteCountElement;
@@ -6,7 +6,7 @@ import React from 'react';
6
6
  import { CustomBlock } from '../../../../FlexibleCard/components/blocks';
7
7
  import ActionGroup from '../../../../FlexibleCard/components/blocks/action-group';
8
8
  import { LoadingSkeleton } from '../../../../FlexibleCard/components/common/loading-skeleton';
9
- import IconElement from '../../../../FlexibleCard/components/elements/icon-element';
9
+ import { BaseIconElement } from '../../../../FlexibleCard/components/elements/common';
10
10
  import { CARD_WIDTH_REM } from '../../../styled';
11
11
  var loadingViewContainer = null;
12
12
  var skeletonContainer = null;
@@ -31,7 +31,7 @@ var HoverCardLoadingView = function HoverCardLoadingView(_ref) {
31
31
  }, /*#__PURE__*/React.createElement(CustomBlock, _extends({}, titleBlockProps, {
32
32
  testId: "".concat(testId, "-title-block"),
33
33
  className: ax(["_zulpcxkx _1bsb1osq"])
34
- }), /*#__PURE__*/React.createElement(IconElement, {
34
+ }), /*#__PURE__*/React.createElement(BaseIconElement, {
35
35
  render: function render() {
36
36
  return /*#__PURE__*/React.createElement(LoadingSkeleton, null);
37
37
  },
@@ -13,7 +13,7 @@ import LinkWarningModal from './LinkWarningModal';
13
13
  import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
14
14
  var PACKAGE_DATA = {
15
15
  packageName: "@atlaskit/smart-card",
16
- packageVersion: "38.5.0",
16
+ packageVersion: "38.5.1",
17
17
  componentName: 'linkUrl'
18
18
  };
19
19
  var Anchor = withLinkClickedEvent('a');
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { type BaseTextElementProps } from '../common';
3
+ export type AssignedToElementProps = BaseTextElementProps;
4
+ declare const AssignedToElement: (props: AssignedToElementProps) => JSX.Element | null;
5
+ export default AssignedToElement;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { type BaseAvatarGroupElementProps } from '../common';
3
+ export type AssignedToGroupElementProps = BaseAvatarGroupElementProps;
4
+ declare const AssignedToGroupElement: (props: AssignedToGroupElementProps) => JSX.Element | null;
5
+ export default AssignedToGroupElement;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { BaseBadgeElementProps } from '../common';
3
+ export type AttachmentCountElementProps = BaseBadgeElementProps;
4
+ declare const AttachmentCountElement: (props: AttachmentCountElementProps) => JSX.Element | null;
5
+ export default AttachmentCountElement;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { type BaseAvatarGroupElementProps } from '../common';
3
+ export type AuthorGroupElementProps = BaseAvatarGroupElementProps;
4
+ declare const AuthorGroupElement: (props: AuthorGroupElementProps) => JSX.Element | null;
5
+ export default AuthorGroupElement;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { type BaseBadgeElementProps } from '../common';
3
+ export type ChecklistProgressElementProps = BaseBadgeElementProps;
4
+ declare const ChecklistProgressElement: (props: ChecklistProgressElementProps) => JSX.Element | null;
5
+ export default ChecklistProgressElement;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { type BaseAvatarGroupElementProps } from '../common';
3
+ export type CollaboratorGroupElementProps = BaseAvatarGroupElementProps;
4
+ declare const CollaboratorGroupElement: (props: CollaboratorGroupElementProps) => JSX.Element | null;
5
+ export default CollaboratorGroupElement;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { type BaseBadgeElementProps } from '../common';
3
+ export type CommentCountElementProps = BaseBadgeElementProps;
4
+ declare const CommentCountElement: (props: CommentCountElementProps) => JSX.Element | null;
5
+ export default CommentCountElement;
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ import { ElementProps } from '../../index';
3
+ export type BaseAtlaskitBadgeElementProps = ElementProps & {
4
+ value?: number;
5
+ };
6
+ /**
7
+ * A base element that displays a visual indicator for a numeric value
8
+ * @internal
9
+ * @see StoryPoints
10
+ * */
11
+ declare const BaseAtlaskitElementBadge: ({ value, name, className, testId, }: BaseAtlaskitBadgeElementProps) => JSX.Element | null;
12
+ export default BaseAtlaskitElementBadge;
13
+ export declare const toAtlaskitBadgeProps: (value?: number) => Partial<BaseAtlaskitBadgeElementProps> | undefined;
@@ -37,3 +37,4 @@ export type BaseAvatarGroupElementProps = ElementProps & {
37
37
  */
38
38
  declare const BaseAvatarGroup: ({ items, maxCount, name, className, size, testId, showNamePrefix, showFallbackAvatar, }: BaseAvatarGroupElementProps) => JSX.Element | null;
39
39
  export default BaseAvatarGroup;
40
+ export declare const toAvatarGroupProps: (items?: BaseAvatarItemProps[], showFallbackAvatar?: boolean) => Partial<BaseAvatarGroupElementProps> | undefined;
@@ -64,3 +64,4 @@ declare const _default: (props: ElementProps & {
64
64
  className?: string | undefined;
65
65
  }) => React.JSX.Element;
66
66
  export default _default;
67
+ export declare const toBadgeProps: (label?: string) => Partial<BaseBadgeElementProps> | undefined;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import type { ElementProps } from '../../../elements';
3
3
  export type DateTimeType = 'created' | 'modified' | 'sent';
4
- export type BaseDateTimeProps = ElementProps & {
4
+ export type BaseDateTimeElementProps = ElementProps & {
5
5
  /**
6
6
  * Whether the date time element text should contain "Modified" or "Created" or "sent"
7
7
  */
@@ -26,10 +26,11 @@ export type BaseDateTimeProps = ElementProps & {
26
26
  /**
27
27
  * A base element that displays an ISO Timestamp in text.
28
28
  * @internal
29
- * @param {BaseDateTimeProps} BaseDateTimeProps - The props necessary for the DateTime element.
29
+ * @param {BaseDateTimeElementProps} BaseDateTimeElementProps - The props necessary for the DateTime element.
30
30
  * @see CreatedOn
31
31
  * @see ModifiedOn
32
32
  * @see SentOn
33
33
  */
34
- declare const BaseDateTimeElement: ({ date, name, className, type, testId, text, hideDatePrefix, color, }: BaseDateTimeProps) => JSX.Element | null;
34
+ declare const BaseDateTimeElement: ({ date, name, className, type, testId, text, hideDatePrefix, color, }: BaseDateTimeElementProps) => JSX.Element | null;
35
35
  export default BaseDateTimeElement;
36
+ export declare const toDateTimeProps: (type: 'created' | 'modified' | 'sent', dateString?: string) => Partial<BaseDateTimeElementProps> | undefined;
@@ -1,7 +1,8 @@
1
1
  /// <reference types="react" />
2
- import { type IconType, SmartLinkPosition } from '../../../../../constants';
3
- import type { ElementProps } from '../index';
4
- export type IconElementProps = ElementProps & {
2
+ import { type IconType, SmartLinkPosition } from '../../../../../../constants';
3
+ import { type FlexibleUiDataContext } from '../../../../../../state/flexible-ui-context/types';
4
+ import type { ElementProps } from '../../index';
5
+ export type BaseIconElementProps = ElementProps & {
5
6
  /**
6
7
  * If provided, Icon element will use this render function instead.
7
8
  */
@@ -40,5 +41,15 @@ export type IconElementProps = ElementProps & {
40
41
  * @param props - The props necessary for the Icon element.
41
42
  * @see LinkIcon
42
43
  */
43
- declare const IconElement: ({ icon, overrideIcon, label, name, position, className, render, size, testId, url, appearance, }: IconElementProps) => JSX.Element;
44
+ declare const IconElement: ({ icon, overrideIcon, label, name, position, className, render, size, testId, url, appearance, }: BaseIconElementProps) => JSX.Element;
44
45
  export default IconElement;
46
+ export declare const toLinkIconProps: (data: FlexibleUiDataContext[keyof FlexibleUiDataContext] | undefined, type: FlexibleUiDataContext['type']) => string[] | import("../../../../../../state/flexible-ui-context/types").LinkLocation | import("../../../../../../state/flexible-ui-context/types").Media | import("../../../../../../state/flexible-ui-context/types").FlexibleUiActions | import("../../../../../../state/flexible-ui-context/types").PreviewActionData | import("../../../../../../extractors/common/lozenge/types").LinkLozenge | import("@atlaskit/link-extractors").LinkPerson[] | {
47
+ objectId?: string | undefined;
48
+ resourceType?: string | undefined;
49
+ tenantId?: string | undefined;
50
+ } | {
51
+ appearance: string;
52
+ icon?: IconType | undefined;
53
+ label?: string | undefined;
54
+ url?: string | undefined;
55
+ } | undefined;
@@ -3,7 +3,7 @@
3
3
  * @jsx jsx
4
4
  */
5
5
  import React from 'react';
6
- import { SmartLinkTheme } from '../../../../../../constants';
6
+ import { SmartLinkInternalTheme, SmartLinkTheme } from '../../../../../../constants';
7
7
  import type { ElementProps } from '../../../../components/elements';
8
8
  import type { AnchorTarget } from '../../../../components/types';
9
9
  export type BaseLinkElementProps = ElementProps & {
@@ -31,7 +31,7 @@ export type BaseLinkElementProps = ElementProps & {
31
31
  /**
32
32
  * The theme of the link. Can be Black, or Link (default blue URL).
33
33
  */
34
- theme?: SmartLinkTheme;
34
+ theme?: SmartLinkTheme | SmartLinkInternalTheme;
35
35
  /**
36
36
  * The url that the Smart Link should be based upon.
37
37
  */
@@ -53,3 +53,4 @@ export type BaseLinkElementProps = ElementProps & {
53
53
  */
54
54
  declare const BaseLinkElement: ({ hideTooltip, maxLines, name, className, size, testId, text, theme, url, onClick, target, anchorRef, }: BaseLinkElementProps) => JSX.Element;
55
55
  export default BaseLinkElement;
56
+ export declare const toLinkProps: (text?: string, url?: string) => Partial<BaseLinkElementProps> | undefined;
@@ -29,3 +29,4 @@ export type BaseLozengeElementProps = ElementProps & {
29
29
  */
30
30
  declare const BaseLozengeElement: ({ action, appearance, name, className, style, text, testId, }: BaseLozengeElementProps) => JSX.Element | null;
31
31
  export default BaseLozengeElement;
32
+ export declare const toDateLozengeProps: (dateString?: string) => Partial<BaseLozengeElementProps> | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ import { MessageDescriptor } from 'react-intl-next';
2
3
  import type { MessageProps } from '../../../types';
3
4
  import { type ElementProps } from '../../index';
4
5
  export type BaseTextElementProps = ElementProps & {
@@ -33,3 +34,5 @@ export type BaseTextElementProps = ElementProps & {
33
34
  */
34
35
  export declare const BaseTextElement: ({ content, maxLines, message, name, className, testId, hideFormat, color, }: BaseTextElementProps) => JSX.Element | null;
35
36
  export default BaseTextElement;
37
+ export declare const toFormattedTextProps: (descriptor: MessageDescriptor, context?: string) => Partial<BaseTextElementProps> | undefined;
38
+ export declare const toTextProps: (content?: string) => Partial<BaseTextElementProps> | undefined;
@@ -1,6 +1,8 @@
1
- export { type BaseBadgeElementProps, default as BaseBadgeElement } from './base-badge-element';
2
- export { type BaseTextElementProps, default as BaseTextElement } from './base-text-element';
3
- export { type BaseAvatarGroupElementProps, default as BaseAvatarGroupElement, type BaseAvatarItemProps, } from './base-avatar-group-element';
4
- export { type BaseDateTimeProps, default as BaseDateTimeElement, type DateTimeType, } from './base-date-time-element';
5
- export { type BaseLozengeElementProps, default as BaseLozengeElement, } from './base-lozenge-element';
6
- export { type BaseLinkElementProps, default as BaseLinkElement } from './base-link-element';
1
+ export { type BaseBadgeElementProps, default as BaseBadgeElement, toBadgeProps, } from './base-badge-element';
2
+ export { type BaseTextElementProps, default as BaseTextElement, toFormattedTextProps, toTextProps, } from './base-text-element';
3
+ export { type BaseAvatarGroupElementProps, default as BaseAvatarGroupElement, type BaseAvatarItemProps, toAvatarGroupProps, } from './base-avatar-group-element';
4
+ export { type BaseDateTimeElementProps, default as BaseDateTimeElement, type DateTimeType, toDateTimeProps, } from './base-date-time-element';
5
+ export { type BaseLozengeElementProps, default as BaseLozengeElement, toDateLozengeProps, } from './base-lozenge-element';
6
+ export { type BaseLinkElementProps, default as BaseLinkElement, toLinkProps, } from './base-link-element';
7
+ export { type BaseIconElementProps, default as BaseIconElement, toLinkIconProps, } from './base-icon-element';
8
+ export { type BaseAtlaskitBadgeElementProps, default as BaseAtlaskitBadgeElement, toAtlaskitBadgeProps, } from './base-atlaskit-badge-element';
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { type BaseTextElementProps } from '../common';
3
+ export type CreatedByElementProps = BaseTextElementProps;
4
+ declare const CreatedByElement: (props: CreatedByElementProps) => JSX.Element | null;
5
+ export default CreatedByElement;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { type BaseDateTimeElementProps } from '../common';
3
+ export type CreatedOnProps = BaseDateTimeElementProps;
4
+ declare const CreatedOnElement: (props: CreatedOnProps) => JSX.Element | null;
5
+ export default CreatedOnElement;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { type BaseLozengeElementProps } from '../common';
3
+ export type DueOnElementProps = BaseLozengeElementProps;
4
+ declare const DueOnElement: (props: DueOnElementProps) => JSX.Element | null;
5
+ export default DueOnElement;