@selfcommunity/react-ui 0.7.50-events.40 → 0.7.50-events.43

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 (612) hide show
  1. package/lib/cjs/components/AccountChangeMailValidation/AccountChangeMailValidation.js +3 -8
  2. package/lib/cjs/components/AccountDataPortability/AccountDataPortability.js +16 -25
  3. package/lib/cjs/components/AccountDataPortabilityButton/AccountDataPortabilityButton.js +3 -6
  4. package/lib/cjs/components/AccountDelete/AccountDelete.js +16 -23
  5. package/lib/cjs/components/AccountDeleteButton/AccountDeleteButton.js +3 -6
  6. package/lib/cjs/components/AccountRecover/AccountRecover.js +8 -12
  7. package/lib/cjs/components/AccountReset/AccountReset.js +3 -12
  8. package/lib/cjs/components/AccountVerify/AccountVerify.js +3 -8
  9. package/lib/cjs/components/BottomNavigation/BottomNavigation.js +19 -20
  10. package/lib/cjs/components/BroadcastMessages/BroadcastMessages.js +3 -10
  11. package/lib/cjs/components/BroadcastMessages/Message.js +6 -23
  12. package/lib/cjs/components/BroadcastMessages/Skeleton.js +3 -15
  13. package/lib/cjs/components/Categories/Categories.js +5 -10
  14. package/lib/cjs/components/Categories/Skeleton.js +2 -4
  15. package/lib/cjs/components/CategoriesPopularWidget/CategoriesPopularWidget.js +5 -17
  16. package/lib/cjs/components/CategoriesPopularWidget/Skeleton.js +2 -2
  17. package/lib/cjs/components/CategoriesSuggestionWidget/CategoriesSuggestionWidget.js +5 -17
  18. package/lib/cjs/components/CategoriesSuggestionWidget/Skeleton.js +2 -5
  19. package/lib/cjs/components/Category/Category.js +4 -4
  20. package/lib/cjs/components/Category/Skeleton.js +2 -3
  21. package/lib/cjs/components/CategoryAutocomplete/CategoryAutocomplete.js +6 -9
  22. package/lib/cjs/components/CategoryFollowButton/CategoryFollowButton.js +3 -2
  23. package/lib/cjs/components/CategoryFollowersButton/CategoryFollowersButton.js +3 -8
  24. package/lib/cjs/components/CategoryHeader/CategoryHeader.js +3 -12
  25. package/lib/cjs/components/CategoryHeader/Skeleton.js +2 -7
  26. package/lib/cjs/components/CategoryTrendingFeedWidget/CategoryTrendingFeedWidget.js +7 -19
  27. package/lib/cjs/components/CategoryTrendingFeedWidget/Skeleton.js +2 -4
  28. package/lib/cjs/components/CategoryTrendingUsersWidget/CategoryTrendingUsersWidget.js +5 -17
  29. package/lib/cjs/components/CategoryTrendingUsersWidget/Skeleton.js +2 -5
  30. package/lib/cjs/components/ChangeCover/ChangeCover.js +18 -41
  31. package/lib/cjs/components/ChangeGroupCover/ChangeGroupCover.js +4 -6
  32. package/lib/cjs/components/ChangeGroupPicture/ChangeGroupPicture.js +4 -6
  33. package/lib/cjs/components/ChangePicture/ChangePicture.js +3 -4
  34. package/lib/cjs/components/ChangePicture/ChangePictureDialog/ChangePictureDialog.js +10 -22
  35. package/lib/cjs/components/CommentObject/CommentObject.js +11 -37
  36. package/lib/cjs/components/CommentObject/Skeleton.js +2 -6
  37. package/lib/cjs/components/CommentObjectReply/CommentObjectReply.js +3 -12
  38. package/lib/cjs/components/CommentsFeedObject/CommentsFeedObject.js +8 -14
  39. package/lib/cjs/components/CommentsFeedObject/Skeleton.js +2 -3
  40. package/lib/cjs/components/CommentsObject/CommentsObject.js +27 -48
  41. package/lib/cjs/components/CommentsObject/Skeleton.js +2 -2
  42. package/lib/cjs/components/Composer/Attributes/Attributes.js +5 -8
  43. package/lib/cjs/components/Composer/Composer.js +24 -46
  44. package/lib/cjs/components/Composer/Content/ContentDiscussion/ContentDiscussion.js +8 -11
  45. package/lib/cjs/components/Composer/Content/ContentPoll/ContentPoll.js +9 -28
  46. package/lib/cjs/components/Composer/Content/ContentPost/ContentPost.js +3 -5
  47. package/lib/cjs/components/Composer/Layer/AudienceLayer/AudienceLayer.js +13 -31
  48. package/lib/cjs/components/Composer/Layer/CategoryLayer/CategoryLayer.js +2 -10
  49. package/lib/cjs/components/Composer/Layer/CloseLayer/CloseLayer.js +2 -16
  50. package/lib/cjs/components/Composer/Layer/LocationLayer/LocationLayer.js +2 -10
  51. package/lib/cjs/components/Composer/Skeleton.js +2 -3
  52. package/lib/cjs/components/Composer/TypeSwitchButtonGroup/TypeSwitchButtonGroup.js +3 -8
  53. package/lib/cjs/components/ComposerIconButton/ComposerIconButton.js +5 -8
  54. package/lib/cjs/components/ConnectionUserButton/ConnectionUserButton.js +2 -1
  55. package/lib/cjs/components/ConsentSolution/ConsentSolution.js +9 -58
  56. package/lib/cjs/components/ConsentSolution/Skeleton.js +3 -16
  57. package/lib/cjs/components/ConsentSolutionButton/ConsentSolutionButton.js +2 -4
  58. package/lib/cjs/components/CreateEventButton/CreateEventButton.js +2 -3
  59. package/lib/cjs/components/CreateGroupButton/CreateGroupButton.js +3 -4
  60. package/lib/cjs/components/CustomAdv/CustomAdv.js +5 -6
  61. package/lib/cjs/components/CustomAdv/Skeleton.js +2 -3
  62. package/lib/cjs/components/EditEventButton/EditEventButton.js +2 -3
  63. package/lib/cjs/components/EditGroupButton/EditGroupButton.js +2 -3
  64. package/lib/cjs/components/Editor/Editor.js +3 -21
  65. package/lib/cjs/components/Editor/Skeleton.js +2 -3
  66. package/lib/cjs/components/Editor/nodes/ImageNode.js +5 -6
  67. package/lib/cjs/components/Editor/plugins/AutoLinkPlugin.js +2 -11
  68. package/lib/cjs/components/Editor/plugins/EmojiPlugin.js +12 -15
  69. package/lib/cjs/components/Editor/plugins/FloatingLinkPlugin.js +7 -13
  70. package/lib/cjs/components/Editor/plugins/HashtagPlugin.js +11 -11
  71. package/lib/cjs/components/Editor/plugins/ImagePlugin.js +9 -10
  72. package/lib/cjs/components/Editor/plugins/LexicalRichTextPlugin.js +2 -12
  73. package/lib/cjs/components/Editor/plugins/MentionsPlugin.js +11 -16
  74. package/lib/cjs/components/Editor/plugins/OnChangePlugin.js +2 -3
  75. package/lib/cjs/components/Editor/plugins/ToolbarPlugin.js +9 -40
  76. package/lib/cjs/components/Editor/shared/useDecorators.js +2 -4
  77. package/lib/cjs/components/Event/Event.js +3 -10
  78. package/lib/cjs/components/Event/Skeleton.js +2 -8
  79. package/lib/cjs/components/EventForm/EventAddress.js +6 -14
  80. package/lib/cjs/components/EventForm/EventForm.js +46 -86
  81. package/lib/cjs/components/EventForm/UploadEventCover.js +4 -6
  82. package/lib/cjs/components/EventHeader/EventHeader.js +36 -52
  83. package/lib/cjs/components/EventHeader/Skeleton.js +2 -12
  84. package/lib/cjs/components/EventInfoWidget/EventInfoWidget.js +11 -13
  85. package/lib/cjs/components/EventInfoWidget/Skeleton.d.ts +1 -0
  86. package/lib/cjs/components/EventInfoWidget/Skeleton.js +20 -0
  87. package/lib/cjs/components/EventInfoWidget/index.d.ts +2 -1
  88. package/lib/cjs/components/EventInfoWidget/index.js +3 -1
  89. package/lib/cjs/components/EventInviteButton/EventInviteButton.js +4 -24
  90. package/lib/cjs/components/EventLocationWidget/EventLocationWidget.js +8 -16
  91. package/lib/cjs/components/EventLocationWidget/Skeleton.js +2 -8
  92. package/lib/cjs/components/EventSubscribeButton/EventSubscribeButton.js +12 -15
  93. package/lib/cjs/components/Events/Events.d.ts +1 -1
  94. package/lib/cjs/components/Events/Events.js +25 -52
  95. package/lib/cjs/components/Events/Skeleton.js +2 -4
  96. package/lib/cjs/components/Feed/Feed.js +11 -29
  97. package/lib/cjs/components/Feed/Skeleton.js +3 -12
  98. package/lib/cjs/components/FeedObject/Actions/Actions.js +2 -8
  99. package/lib/cjs/components/FeedObject/Actions/Comment/Comment.js +5 -11
  100. package/lib/cjs/components/FeedObject/Actions/Follow/Follow.js +6 -6
  101. package/lib/cjs/components/FeedObject/Actions/Share/Share.js +29 -60
  102. package/lib/cjs/components/FeedObject/Actions/Share/SharesDialog/SharesDialog.js +3 -5
  103. package/lib/cjs/components/FeedObject/Actions/Vote/Vote.js +2 -5
  104. package/lib/cjs/components/FeedObject/Activities/Activities.js +9 -10
  105. package/lib/cjs/components/FeedObject/Activities/ActivitiesMenu/ActivitiesMenu.js +23 -37
  106. package/lib/cjs/components/FeedObject/Activities/RelevantActivities/CommentActivity/CommentActivity.js +18 -20
  107. package/lib/cjs/components/FeedObject/Activities/RelevantActivities/FollowActivity/FollowActivity.js +5 -7
  108. package/lib/cjs/components/FeedObject/Activities/RelevantActivities/PollVoteActivity/PollVoteActivity.js +5 -7
  109. package/lib/cjs/components/FeedObject/Activities/RelevantActivities/RelevantActivities.js +7 -12
  110. package/lib/cjs/components/FeedObject/Activities/RelevantActivities/VoteUpActivity/VoteUpActivity.js +5 -7
  111. package/lib/cjs/components/FeedObject/Contributors/Contributors.js +3 -13
  112. package/lib/cjs/components/FeedObject/Contributors/Skeleton.js +2 -6
  113. package/lib/cjs/components/FeedObject/FeedObject.js +23 -110
  114. package/lib/cjs/components/FeedObject/Poll/Choice/Choice.js +3 -8
  115. package/lib/cjs/components/FeedObject/Poll/Poll.js +5 -21
  116. package/lib/cjs/components/FeedObject/Skeleton.js +4 -16
  117. package/lib/cjs/components/FeedObjectMediaPreview/FeedObjectMediaPreview.js +5 -6
  118. package/lib/cjs/components/FeedUpdatesWidget/FeedUpdatesWidget.js +5 -8
  119. package/lib/cjs/components/FeedUpdatesWidget/Skeleton.js +2 -2
  120. package/lib/cjs/components/FollowUserButton/FollowUserButton.js +5 -4
  121. package/lib/cjs/components/Footer/Footer.js +4 -7
  122. package/lib/cjs/components/Footer/Skeleton.js +2 -4
  123. package/lib/cjs/components/FriendshipUserButton/FriendshipUserButton.js +9 -8
  124. package/lib/cjs/components/Group/Group.js +7 -13
  125. package/lib/cjs/components/Group/Skeleton.js +2 -3
  126. package/lib/cjs/components/GroupAutocomplete/GroupAutocomplete.js +5 -8
  127. package/lib/cjs/components/GroupForm/GroupForm.js +36 -75
  128. package/lib/cjs/components/GroupHeader/GroupHeader.js +6 -34
  129. package/lib/cjs/components/GroupHeader/Skeleton.js +2 -12
  130. package/lib/cjs/components/GroupInfoWidget/GroupInfoWidget.js +24 -54
  131. package/lib/cjs/components/GroupInfoWidget/Skeleton.js +2 -3
  132. package/lib/cjs/components/GroupInviteButton/GroupInviteButton.js +4 -24
  133. package/lib/cjs/components/GroupInvitedWidget/GroupInvitedWidget.js +5 -18
  134. package/lib/cjs/components/GroupInvitedWidget/Skeleton.js +2 -3
  135. package/lib/cjs/components/GroupMembersButton/GroupMembersButton.js +3 -8
  136. package/lib/cjs/components/GroupMembersWidget/GroupMembersWidget.js +11 -28
  137. package/lib/cjs/components/GroupMembersWidget/Skeleton.js +2 -3
  138. package/lib/cjs/components/GroupRequestsWidget/GroupRequestsWidget.js +5 -16
  139. package/lib/cjs/components/GroupRequestsWidget/Skeleton.js +2 -3
  140. package/lib/cjs/components/GroupSettingsIconButton/GroupSettingsIconButton.js +13 -21
  141. package/lib/cjs/components/GroupSubscribeButton/GroupSubscribeButton.js +8 -7
  142. package/lib/cjs/components/Groups/Groups.js +10 -23
  143. package/lib/cjs/components/Groups/Skeleton.js +2 -4
  144. package/lib/cjs/components/Incubator/Incubator.js +8 -28
  145. package/lib/cjs/components/Incubator/Skeleton.js +2 -20
  146. package/lib/cjs/components/IncubatorDetail/IncubatorDetail.js +4 -46
  147. package/lib/cjs/components/IncubatorListWidget/CreateIncubatorDialog/CreateIncubatorDialog.js +5 -12
  148. package/lib/cjs/components/IncubatorListWidget/IncubatorListWidget.js +8 -32
  149. package/lib/cjs/components/IncubatorListWidget/Skeleton.js +2 -4
  150. package/lib/cjs/components/IncubatorSubscribeButton/IncubatorSubscribeButton.js +3 -2
  151. package/lib/cjs/components/IncubatorSuggestionWidget/IncubatorSuggestionWidget.js +5 -18
  152. package/lib/cjs/components/IncubatorSuggestionWidget/Skeleton.js +2 -4
  153. package/lib/cjs/components/InlineComposerWidget/InlineComposerWidget.js +5 -11
  154. package/lib/cjs/components/InlineComposerWidget/Skeleton.js +2 -7
  155. package/lib/cjs/components/LocationAutocomplete/LocationAutocomplete.js +6 -7
  156. package/lib/cjs/components/LoyaltyProgramWidget/LoyaltyProgramWidget.js +5 -13
  157. package/lib/cjs/components/LoyaltyProgramWidget/Skeleton.js +2 -11
  158. package/lib/cjs/components/NavigationMenuIconButton/DefaultDrawerContent.js +3 -11
  159. package/lib/cjs/components/NavigationMenuIconButton/DefaultHeaderContent.js +3 -4
  160. package/lib/cjs/components/NavigationMenuIconButton/NavigationMenuIconButton.js +4 -13
  161. package/lib/cjs/components/NavigationSettingsIconButton/NavigationSettingsIconButton.js +35 -75
  162. package/lib/cjs/components/NavigationToolbar/NavigationToolbar.js +14 -51
  163. package/lib/cjs/components/NavigationToolbar/NotificationMenu.js +2 -5
  164. package/lib/cjs/components/NavigationToolbar/Skeleton.js +2 -5
  165. package/lib/cjs/components/NavigationToolbarMobile/NavigationToolbarMobile.js +11 -27
  166. package/lib/cjs/components/NavigationToolbarMobile/Skeleton.js +2 -3
  167. package/lib/cjs/components/Notification/CollapsedFor/CollapsedFor.js +2 -15
  168. package/lib/cjs/components/Notification/Comment/Comment.js +11 -27
  169. package/lib/cjs/components/Notification/Contribution/Contribution.js +11 -28
  170. package/lib/cjs/components/Notification/ContributionFollow/ContributionFollow.js +4 -19
  171. package/lib/cjs/components/Notification/DeletedFor/DeletedFor.js +2 -17
  172. package/lib/cjs/components/Notification/Group/Group.js +17 -30
  173. package/lib/cjs/components/Notification/IncubatorApproved/IncubatorApproved.js +8 -16
  174. package/lib/cjs/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.js +2 -9
  175. package/lib/cjs/components/Notification/KindlyNoticeFor/KindlyNoticeFor.js +4 -16
  176. package/lib/cjs/components/Notification/Mention/Mention.js +7 -22
  177. package/lib/cjs/components/Notification/Notification.js +37 -57
  178. package/lib/cjs/components/Notification/PrivateMessage/PrivateMessage.js +24 -47
  179. package/lib/cjs/components/Notification/Skeleton.js +3 -7
  180. package/lib/cjs/components/Notification/UndeletedFor/UndeletedFor.js +2 -16
  181. package/lib/cjs/components/Notification/UserBlocked/UserBlocked.js +5 -7
  182. package/lib/cjs/components/Notification/UserConnection/UserConnection.js +5 -15
  183. package/lib/cjs/components/Notification/UserFollow/UserFollow.js +5 -15
  184. package/lib/cjs/components/Notification/VoteUp/VoteUp.js +6 -19
  185. package/lib/cjs/components/PlatformWidget/PlatformWidget.js +20 -53
  186. package/lib/cjs/components/PlatformWidget/Skeleton.js +2 -3
  187. package/lib/cjs/components/PollSuggestionWidget/PollSnippet/PollSnippet.js +3 -12
  188. package/lib/cjs/components/PollSuggestionWidget/PollSnippet/Skeleton.js +2 -2
  189. package/lib/cjs/components/PollSuggestionWidget/PollSuggestionWidget.js +5 -17
  190. package/lib/cjs/components/PollSuggestionWidget/Skeleton.js +2 -6
  191. package/lib/cjs/components/PrivateMessageComponent/PrivateMessageComponent.js +6 -9
  192. package/lib/cjs/components/PrivateMessageComponent/Skeleton.js +2 -6
  193. package/lib/cjs/components/PrivateMessageEditor/MessageMediaUploader/index.js +16 -37
  194. package/lib/cjs/components/PrivateMessageEditor/PrivateMessageEditor.js +9 -18
  195. package/lib/cjs/components/PrivateMessageEditor/Skeleton.js +2 -3
  196. package/lib/cjs/components/PrivateMessageSettingsIconButton/PrivateMessageSettingsIconButton.js +9 -31
  197. package/lib/cjs/components/PrivateMessageSnippetItem/PrivateMessageSnippetItem.js +12 -19
  198. package/lib/cjs/components/PrivateMessageSnippetItem/Skeleton.js +2 -5
  199. package/lib/cjs/components/PrivateMessageSnippets/PrivateMessageSnippets.js +8 -16
  200. package/lib/cjs/components/PrivateMessageSnippets/Skeleton.js +2 -8
  201. package/lib/cjs/components/PrivateMessageThread/PrivateMessageThread.js +14 -35
  202. package/lib/cjs/components/PrivateMessageThread/Skeleton.js +2 -9
  203. package/lib/cjs/components/PrivateMessageThreadItem/PrivateMessageThreadItem.js +15 -33
  204. package/lib/cjs/components/PrivateMessageThreadItem/Skeleton.js +2 -3
  205. package/lib/cjs/components/RelatedFeedObjectsWidget/RelatedFeedObjectsWidget.js +6 -21
  206. package/lib/cjs/components/RelatedFeedObjectsWidget/Skeleton.js +2 -3
  207. package/lib/cjs/components/SearchAutocomplete/SearchAutocomplete.js +5 -8
  208. package/lib/cjs/components/SearchDialog/SearchDialog.js +2 -4
  209. package/lib/cjs/components/Skeleton/AvatarGroupSkeleton.js +2 -3
  210. package/lib/cjs/components/Skeleton/GenericSkeleton.js +2 -6
  211. package/lib/cjs/components/SnippetNotifications/Skeleton.js +3 -3
  212. package/lib/cjs/components/SnippetNotifications/SnippetNotifications.js +23 -28
  213. package/lib/cjs/components/ToastNotifications/Skeleton.js +2 -3
  214. package/lib/cjs/components/ToastNotifications/ToastNotifications.js +16 -15
  215. package/lib/cjs/components/User/Skeleton.js +2 -3
  216. package/lib/cjs/components/User/User.js +6 -14
  217. package/lib/cjs/components/UserActionIconButton/UserActionIconButton.js +16 -31
  218. package/lib/cjs/components/UserConnectionsRequestsSentWidget/Skeleton.js +2 -3
  219. package/lib/cjs/components/UserConnectionsRequestsSentWidget/UserConnectionsRequestsSentWidget.js +5 -17
  220. package/lib/cjs/components/UserConnectionsRequestsWidget/Skeleton.js +2 -3
  221. package/lib/cjs/components/UserConnectionsRequestsWidget/UserConnectionsRequestsWidget.js +5 -17
  222. package/lib/cjs/components/UserConnectionsWidget/Skeleton.js +2 -3
  223. package/lib/cjs/components/UserConnectionsWidget/UserConnectionsWidget.js +5 -17
  224. package/lib/cjs/components/UserCounters/UserCounters.js +19 -28
  225. package/lib/cjs/components/UserFollowedCategoriesWidget/Skeleton.js +2 -2
  226. package/lib/cjs/components/UserFollowedCategoriesWidget/UserFollowedCategoriesWidget.js +5 -20
  227. package/lib/cjs/components/UserFollowedUsersWidget/Skeleton.js +2 -3
  228. package/lib/cjs/components/UserFollowedUsersWidget/UserFollowedUsersWidget.js +5 -17
  229. package/lib/cjs/components/UserFollowersWidget/Skeleton.js +2 -3
  230. package/lib/cjs/components/UserFollowersWidget/UserFollowersWidget.js +5 -17
  231. package/lib/cjs/components/UserInfo/Skeleton.js +2 -6
  232. package/lib/cjs/components/UserInfo/UserInfo.js +13 -14
  233. package/lib/cjs/components/UserInfoDialog/UserInfoDialog.js +3 -5
  234. package/lib/cjs/components/UserProfileBlocked/UserProfileBlocked.js +4 -11
  235. package/lib/cjs/components/UserProfileEdit/Section/Account.js +3 -13
  236. package/lib/cjs/components/UserProfileEdit/Section/AccountCredentials.js +15 -37
  237. package/lib/cjs/components/UserProfileEdit/Section/PublicInfo.js +15 -25
  238. package/lib/cjs/components/UserProfileEdit/Section/Settings.js +7 -37
  239. package/lib/cjs/components/UserProfileEdit/Section/SettingsSkeleton.js +2 -5
  240. package/lib/cjs/components/UserProfileEdit/Skeleton.js +2 -6
  241. package/lib/cjs/components/UserProfileEdit/UserProfileEdit.js +2 -9
  242. package/lib/cjs/components/UserProfileHeader/Skeleton.js +2 -13
  243. package/lib/cjs/components/UserProfileHeader/UserProfileHeader.js +4 -21
  244. package/lib/cjs/components/UserSocialAssociation/UserSocialAssociation.js +2 -16
  245. package/lib/cjs/components/UserSubscribedGroupsWidget/Skeleton.js +2 -6
  246. package/lib/cjs/components/UserSubscribedGroupsWidget/UserSubscribedGroupsWidget.js +7 -22
  247. package/lib/cjs/components/UserSuggestionWidget/Skeleton.js +2 -5
  248. package/lib/cjs/components/UserSuggestionWidget/UserSuggestionWidget.js +5 -17
  249. package/lib/cjs/components/VoteAudienceButton/VoteAudienceButton.js +9 -23
  250. package/lib/cjs/components/VoteButton/VoteButton.js +9 -15
  251. package/lib/cjs/components/Widget/index.js +3 -2
  252. package/lib/cjs/shared/AutoPlayer/index.js +6 -7
  253. package/lib/cjs/shared/BaseDialog/BaseDialog.js +3 -10
  254. package/lib/cjs/shared/BaseItem/BaseItem.js +4 -10
  255. package/lib/cjs/shared/BaseItemButton/BaseItemButton.js +4 -10
  256. package/lib/cjs/shared/Bullet/index.js +2 -1
  257. package/lib/cjs/shared/Calendar/index.js +2 -3
  258. package/lib/cjs/shared/CentralProgress/index.js +3 -4
  259. package/lib/cjs/shared/ConfirmDialog/ConfirmDialog.js +2 -9
  260. package/lib/cjs/shared/ConsentSolutionSwitch/index.js +5 -8
  261. package/lib/cjs/shared/ContributionActionsMenu/index.js +22 -85
  262. package/lib/cjs/shared/CustomSnackMessage/index.js +3 -7
  263. package/lib/cjs/shared/DateTimeAgo/index.js +2 -6
  264. package/lib/cjs/shared/EmailTextField/index.js +3 -2
  265. package/lib/cjs/shared/EmojiPicker/EmojiPicker.js +2 -2
  266. package/lib/cjs/shared/EventInfoDetails/index.js +5 -22
  267. package/lib/cjs/shared/HiddenPlaceholder/index.js +2 -3
  268. package/lib/cjs/shared/InfiniteScroll/index.js +8 -19
  269. package/lib/cjs/shared/InfiniteScroll/stories/InfiniteScrollWithHeight.js +3 -8
  270. package/lib/cjs/shared/InfiniteScroll/stories/PullDownToRefreshInfScroll.js +3 -7
  271. package/lib/cjs/shared/InfiniteScroll/stories/ScrollableTargetFixedInfScroll.js +13 -18
  272. package/lib/cjs/shared/InfiniteScroll/stories/ScrollableTargetInfScroll.js +3 -8
  273. package/lib/cjs/shared/InfiniteScroll/stories/ScrolleableTop.js +6 -11
  274. package/lib/cjs/shared/InfiniteScroll/stories/WindowInfiniteScrollComponent.js +3 -6
  275. package/lib/cjs/shared/LanguageSwitcher/index.js +3 -5
  276. package/lib/cjs/shared/Lightbox/Lightbox.js +4 -3
  277. package/lib/cjs/shared/MarkRead/MarkRead.js +3 -3
  278. package/lib/cjs/shared/Media/File/DisplayComponent.js +13 -42
  279. package/lib/cjs/shared/Media/File/Lightbox/index.js +5 -5
  280. package/lib/cjs/shared/Media/File/PreviewComponent.js +5 -9
  281. package/lib/cjs/shared/Media/File/TriggerButton.js +14 -25
  282. package/lib/cjs/shared/Media/File/asUploadButton.js +3 -2
  283. package/lib/cjs/shared/Media/Link/DisplayComponent.js +8 -15
  284. package/lib/cjs/shared/Media/Link/LayerComponent.js +2 -11
  285. package/lib/cjs/shared/Media/Link/PreviewComponent.js +2 -4
  286. package/lib/cjs/shared/Media/Link/TriggerButton.js +2 -3
  287. package/lib/cjs/shared/Media/Link/UrlTextField/index.js +5 -7
  288. package/lib/cjs/shared/Media/Share/DisplayComponent.js +3 -3
  289. package/lib/cjs/shared/MetadataField/MetadataField.js +8 -7
  290. package/lib/cjs/shared/NewChip/NewChip.js +2 -2
  291. package/lib/cjs/shared/NotificationItem/NotificationItem.js +3 -12
  292. package/lib/cjs/shared/PasswordTextField/index.js +4 -6
  293. package/lib/cjs/shared/PhoneTextField/index.js +3 -2
  294. package/lib/cjs/shared/ScrollContainer/index.js +2 -2
  295. package/lib/cjs/shared/StickyBox/index.js +6 -5
  296. package/lib/cjs/shared/TagChip/index.js +2 -2
  297. package/lib/cjs/shared/Tags/index.js +11 -23
  298. package/lib/cjs/shared/UrlTextField/index.js +3 -2
  299. package/lib/cjs/shared/UserAvatar/UserAvatar.js +3 -2
  300. package/lib/cjs/shared/UserDeletedSnackBar/UserDeletedSnackBar.js +3 -5
  301. package/lib/cjs/shared/UsernameTextField/index.js +3 -2
  302. package/lib/cjs/shared/VirtualizedScroller/VirtualScrollerChild.js +2 -2
  303. package/lib/cjs/shared/VirtualizedScroller/VirtualizedScroller.js +3 -2
  304. package/lib/cjs/utils/contribution.js +3 -4
  305. package/lib/cjs/utils/errors.js +3 -4
  306. package/lib/esm/components/AccountChangeMailValidation/AccountChangeMailValidation.js +3 -8
  307. package/lib/esm/components/AccountDataPortability/AccountDataPortability.js +16 -25
  308. package/lib/esm/components/AccountDataPortabilityButton/AccountDataPortabilityButton.js +3 -6
  309. package/lib/esm/components/AccountDelete/AccountDelete.js +16 -23
  310. package/lib/esm/components/AccountDeleteButton/AccountDeleteButton.js +3 -6
  311. package/lib/esm/components/AccountRecover/AccountRecover.js +8 -12
  312. package/lib/esm/components/AccountReset/AccountReset.js +3 -12
  313. package/lib/esm/components/AccountVerify/AccountVerify.js +3 -8
  314. package/lib/esm/components/BottomNavigation/BottomNavigation.js +19 -20
  315. package/lib/esm/components/BroadcastMessages/BroadcastMessages.js +3 -10
  316. package/lib/esm/components/BroadcastMessages/Message.js +6 -23
  317. package/lib/esm/components/BroadcastMessages/Skeleton.js +3 -15
  318. package/lib/esm/components/Categories/Categories.js +5 -10
  319. package/lib/esm/components/Categories/Skeleton.js +2 -4
  320. package/lib/esm/components/CategoriesPopularWidget/CategoriesPopularWidget.js +5 -17
  321. package/lib/esm/components/CategoriesPopularWidget/Skeleton.js +2 -2
  322. package/lib/esm/components/CategoriesSuggestionWidget/CategoriesSuggestionWidget.js +5 -17
  323. package/lib/esm/components/CategoriesSuggestionWidget/Skeleton.js +2 -5
  324. package/lib/esm/components/Category/Category.js +4 -4
  325. package/lib/esm/components/Category/Skeleton.js +2 -3
  326. package/lib/esm/components/CategoryAutocomplete/CategoryAutocomplete.js +6 -9
  327. package/lib/esm/components/CategoryFollowButton/CategoryFollowButton.js +3 -2
  328. package/lib/esm/components/CategoryFollowersButton/CategoryFollowersButton.js +3 -8
  329. package/lib/esm/components/CategoryHeader/CategoryHeader.js +3 -12
  330. package/lib/esm/components/CategoryHeader/Skeleton.js +2 -7
  331. package/lib/esm/components/CategoryTrendingFeedWidget/CategoryTrendingFeedWidget.js +7 -19
  332. package/lib/esm/components/CategoryTrendingFeedWidget/Skeleton.js +2 -4
  333. package/lib/esm/components/CategoryTrendingUsersWidget/CategoryTrendingUsersWidget.js +5 -17
  334. package/lib/esm/components/CategoryTrendingUsersWidget/Skeleton.js +2 -5
  335. package/lib/esm/components/ChangeCover/ChangeCover.js +18 -41
  336. package/lib/esm/components/ChangeGroupCover/ChangeGroupCover.js +4 -6
  337. package/lib/esm/components/ChangeGroupPicture/ChangeGroupPicture.js +4 -6
  338. package/lib/esm/components/ChangePicture/ChangePicture.js +3 -4
  339. package/lib/esm/components/ChangePicture/ChangePictureDialog/ChangePictureDialog.js +10 -22
  340. package/lib/esm/components/CommentObject/CommentObject.js +11 -37
  341. package/lib/esm/components/CommentObject/Skeleton.js +2 -6
  342. package/lib/esm/components/CommentObjectReply/CommentObjectReply.js +3 -12
  343. package/lib/esm/components/CommentsFeedObject/CommentsFeedObject.js +8 -14
  344. package/lib/esm/components/CommentsFeedObject/Skeleton.js +2 -2
  345. package/lib/esm/components/CommentsObject/CommentsObject.js +27 -48
  346. package/lib/esm/components/CommentsObject/Skeleton.js +2 -2
  347. package/lib/esm/components/Composer/Attributes/Attributes.js +5 -8
  348. package/lib/esm/components/Composer/Composer.js +24 -46
  349. package/lib/esm/components/Composer/Content/ContentDiscussion/ContentDiscussion.js +8 -11
  350. package/lib/esm/components/Composer/Content/ContentPoll/ContentPoll.js +9 -28
  351. package/lib/esm/components/Composer/Content/ContentPost/ContentPost.js +3 -5
  352. package/lib/esm/components/Composer/Layer/AudienceLayer/AudienceLayer.js +13 -31
  353. package/lib/esm/components/Composer/Layer/CategoryLayer/CategoryLayer.js +2 -10
  354. package/lib/esm/components/Composer/Layer/CloseLayer/CloseLayer.js +2 -16
  355. package/lib/esm/components/Composer/Layer/LocationLayer/LocationLayer.js +2 -10
  356. package/lib/esm/components/Composer/Skeleton.js +2 -3
  357. package/lib/esm/components/Composer/TypeSwitchButtonGroup/TypeSwitchButtonGroup.js +3 -8
  358. package/lib/esm/components/ComposerIconButton/ComposerIconButton.js +5 -8
  359. package/lib/esm/components/ConnectionUserButton/ConnectionUserButton.js +2 -1
  360. package/lib/esm/components/ConsentSolution/ConsentSolution.js +9 -58
  361. package/lib/esm/components/ConsentSolution/Skeleton.js +3 -16
  362. package/lib/esm/components/ConsentSolutionButton/ConsentSolutionButton.js +2 -4
  363. package/lib/esm/components/CreateEventButton/CreateEventButton.js +2 -3
  364. package/lib/esm/components/CreateGroupButton/CreateGroupButton.js +3 -4
  365. package/lib/esm/components/CustomAdv/CustomAdv.js +5 -6
  366. package/lib/esm/components/CustomAdv/Skeleton.js +2 -2
  367. package/lib/esm/components/EditEventButton/EditEventButton.js +2 -3
  368. package/lib/esm/components/EditGroupButton/EditGroupButton.js +2 -3
  369. package/lib/esm/components/Editor/Editor.js +3 -21
  370. package/lib/esm/components/Editor/Skeleton.js +2 -2
  371. package/lib/esm/components/Editor/nodes/ImageNode.js +5 -5
  372. package/lib/esm/components/Editor/plugins/AutoLinkPlugin.js +2 -10
  373. package/lib/esm/components/Editor/plugins/EmojiPlugin.js +12 -15
  374. package/lib/esm/components/Editor/plugins/FloatingLinkPlugin.js +7 -13
  375. package/lib/esm/components/Editor/plugins/HashtagPlugin.js +11 -11
  376. package/lib/esm/components/Editor/plugins/ImagePlugin.js +9 -10
  377. package/lib/esm/components/Editor/plugins/LexicalRichTextPlugin.js +2 -12
  378. package/lib/esm/components/Editor/plugins/MentionsPlugin.js +11 -16
  379. package/lib/esm/components/Editor/plugins/OnChangePlugin.js +2 -2
  380. package/lib/esm/components/Editor/plugins/ToolbarPlugin.js +9 -40
  381. package/lib/esm/components/Editor/shared/useDecorators.js +2 -3
  382. package/lib/esm/components/Event/Event.js +3 -10
  383. package/lib/esm/components/Event/Skeleton.js +2 -8
  384. package/lib/esm/components/EventForm/EventAddress.js +6 -14
  385. package/lib/esm/components/EventForm/EventForm.js +46 -86
  386. package/lib/esm/components/EventForm/UploadEventCover.js +4 -6
  387. package/lib/esm/components/EventHeader/EventHeader.js +36 -52
  388. package/lib/esm/components/EventHeader/Skeleton.js +2 -12
  389. package/lib/esm/components/EventInfoWidget/EventInfoWidget.js +11 -13
  390. package/lib/esm/components/EventInfoWidget/Skeleton.d.ts +1 -0
  391. package/lib/esm/components/EventInfoWidget/Skeleton.js +16 -0
  392. package/lib/esm/components/EventInfoWidget/index.d.ts +2 -1
  393. package/lib/esm/components/EventInfoWidget/index.js +2 -1
  394. package/lib/esm/components/EventInviteButton/EventInviteButton.js +4 -24
  395. package/lib/esm/components/EventLocationWidget/EventLocationWidget.js +8 -16
  396. package/lib/esm/components/EventLocationWidget/Skeleton.js +2 -8
  397. package/lib/esm/components/EventSubscribeButton/EventSubscribeButton.js +12 -15
  398. package/lib/esm/components/Events/Events.d.ts +1 -1
  399. package/lib/esm/components/Events/Events.js +25 -52
  400. package/lib/esm/components/Events/Skeleton.js +2 -4
  401. package/lib/esm/components/Feed/Feed.js +11 -29
  402. package/lib/esm/components/Feed/Skeleton.js +3 -12
  403. package/lib/esm/components/FeedObject/Actions/Actions.js +2 -8
  404. package/lib/esm/components/FeedObject/Actions/Comment/Comment.js +5 -11
  405. package/lib/esm/components/FeedObject/Actions/Follow/Follow.js +6 -6
  406. package/lib/esm/components/FeedObject/Actions/Share/Share.js +29 -60
  407. package/lib/esm/components/FeedObject/Actions/Share/SharesDialog/SharesDialog.js +3 -5
  408. package/lib/esm/components/FeedObject/Actions/Vote/Vote.js +2 -5
  409. package/lib/esm/components/FeedObject/Activities/Activities.js +9 -10
  410. package/lib/esm/components/FeedObject/Activities/ActivitiesMenu/ActivitiesMenu.js +23 -37
  411. package/lib/esm/components/FeedObject/Activities/RelevantActivities/CommentActivity/CommentActivity.js +18 -20
  412. package/lib/esm/components/FeedObject/Activities/RelevantActivities/FollowActivity/FollowActivity.js +5 -7
  413. package/lib/esm/components/FeedObject/Activities/RelevantActivities/PollVoteActivity/PollVoteActivity.js +5 -7
  414. package/lib/esm/components/FeedObject/Activities/RelevantActivities/RelevantActivities.js +7 -12
  415. package/lib/esm/components/FeedObject/Activities/RelevantActivities/VoteUpActivity/VoteUpActivity.js +5 -7
  416. package/lib/esm/components/FeedObject/Contributors/Contributors.js +3 -13
  417. package/lib/esm/components/FeedObject/Contributors/Skeleton.js +2 -6
  418. package/lib/esm/components/FeedObject/FeedObject.js +23 -110
  419. package/lib/esm/components/FeedObject/Poll/Choice/Choice.js +3 -8
  420. package/lib/esm/components/FeedObject/Poll/Poll.js +5 -21
  421. package/lib/esm/components/FeedObject/Skeleton.js +4 -16
  422. package/lib/esm/components/FeedObjectMediaPreview/FeedObjectMediaPreview.js +5 -6
  423. package/lib/esm/components/FeedUpdatesWidget/FeedUpdatesWidget.js +5 -8
  424. package/lib/esm/components/FeedUpdatesWidget/Skeleton.js +2 -2
  425. package/lib/esm/components/FollowUserButton/FollowUserButton.js +5 -4
  426. package/lib/esm/components/Footer/Footer.js +4 -7
  427. package/lib/esm/components/Footer/Skeleton.js +2 -4
  428. package/lib/esm/components/FriendshipUserButton/FriendshipUserButton.js +9 -8
  429. package/lib/esm/components/Group/Group.js +7 -13
  430. package/lib/esm/components/Group/Skeleton.js +2 -3
  431. package/lib/esm/components/GroupAutocomplete/GroupAutocomplete.js +5 -8
  432. package/lib/esm/components/GroupForm/GroupForm.js +36 -75
  433. package/lib/esm/components/GroupHeader/GroupHeader.js +6 -34
  434. package/lib/esm/components/GroupHeader/Skeleton.js +2 -12
  435. package/lib/esm/components/GroupInfoWidget/GroupInfoWidget.js +24 -54
  436. package/lib/esm/components/GroupInfoWidget/Skeleton.js +2 -2
  437. package/lib/esm/components/GroupInviteButton/GroupInviteButton.js +4 -24
  438. package/lib/esm/components/GroupInvitedWidget/GroupInvitedWidget.js +5 -18
  439. package/lib/esm/components/GroupInvitedWidget/Skeleton.js +2 -2
  440. package/lib/esm/components/GroupMembersButton/GroupMembersButton.js +3 -8
  441. package/lib/esm/components/GroupMembersWidget/GroupMembersWidget.js +11 -28
  442. package/lib/esm/components/GroupMembersWidget/Skeleton.js +2 -2
  443. package/lib/esm/components/GroupRequestsWidget/GroupRequestsWidget.js +5 -16
  444. package/lib/esm/components/GroupRequestsWidget/Skeleton.js +2 -2
  445. package/lib/esm/components/GroupSettingsIconButton/GroupSettingsIconButton.js +13 -21
  446. package/lib/esm/components/GroupSubscribeButton/GroupSubscribeButton.js +8 -7
  447. package/lib/esm/components/Groups/Groups.js +10 -23
  448. package/lib/esm/components/Groups/Skeleton.js +2 -4
  449. package/lib/esm/components/Incubator/Incubator.js +8 -28
  450. package/lib/esm/components/Incubator/Skeleton.js +2 -20
  451. package/lib/esm/components/IncubatorDetail/IncubatorDetail.js +4 -46
  452. package/lib/esm/components/IncubatorListWidget/CreateIncubatorDialog/CreateIncubatorDialog.js +5 -12
  453. package/lib/esm/components/IncubatorListWidget/IncubatorListWidget.js +8 -32
  454. package/lib/esm/components/IncubatorListWidget/Skeleton.js +2 -4
  455. package/lib/esm/components/IncubatorSubscribeButton/IncubatorSubscribeButton.js +3 -2
  456. package/lib/esm/components/IncubatorSuggestionWidget/IncubatorSuggestionWidget.js +5 -18
  457. package/lib/esm/components/IncubatorSuggestionWidget/Skeleton.js +2 -4
  458. package/lib/esm/components/InlineComposerWidget/InlineComposerWidget.js +5 -11
  459. package/lib/esm/components/InlineComposerWidget/Skeleton.js +2 -7
  460. package/lib/esm/components/LocationAutocomplete/LocationAutocomplete.js +6 -7
  461. package/lib/esm/components/LoyaltyProgramWidget/LoyaltyProgramWidget.js +5 -13
  462. package/lib/esm/components/LoyaltyProgramWidget/Skeleton.js +2 -11
  463. package/lib/esm/components/NavigationMenuIconButton/DefaultDrawerContent.js +3 -11
  464. package/lib/esm/components/NavigationMenuIconButton/DefaultHeaderContent.js +3 -4
  465. package/lib/esm/components/NavigationMenuIconButton/NavigationMenuIconButton.js +4 -13
  466. package/lib/esm/components/NavigationSettingsIconButton/NavigationSettingsIconButton.js +35 -75
  467. package/lib/esm/components/NavigationToolbar/NavigationToolbar.js +14 -51
  468. package/lib/esm/components/NavigationToolbar/NotificationMenu.js +2 -5
  469. package/lib/esm/components/NavigationToolbar/Skeleton.js +2 -5
  470. package/lib/esm/components/NavigationToolbarMobile/NavigationToolbarMobile.js +11 -27
  471. package/lib/esm/components/NavigationToolbarMobile/Skeleton.js +2 -3
  472. package/lib/esm/components/Notification/CollapsedFor/CollapsedFor.js +2 -15
  473. package/lib/esm/components/Notification/Comment/Comment.js +11 -27
  474. package/lib/esm/components/Notification/Contribution/Contribution.js +11 -28
  475. package/lib/esm/components/Notification/ContributionFollow/ContributionFollow.js +4 -19
  476. package/lib/esm/components/Notification/DeletedFor/DeletedFor.js +2 -17
  477. package/lib/esm/components/Notification/Group/Group.js +17 -30
  478. package/lib/esm/components/Notification/IncubatorApproved/IncubatorApproved.js +8 -16
  479. package/lib/esm/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.js +2 -9
  480. package/lib/esm/components/Notification/KindlyNoticeFor/KindlyNoticeFor.js +4 -16
  481. package/lib/esm/components/Notification/Mention/Mention.js +7 -22
  482. package/lib/esm/components/Notification/Notification.js +37 -57
  483. package/lib/esm/components/Notification/PrivateMessage/PrivateMessage.js +24 -47
  484. package/lib/esm/components/Notification/Skeleton.js +3 -7
  485. package/lib/esm/components/Notification/UndeletedFor/UndeletedFor.js +2 -16
  486. package/lib/esm/components/Notification/UserBlocked/UserBlocked.js +5 -7
  487. package/lib/esm/components/Notification/UserConnection/UserConnection.js +5 -15
  488. package/lib/esm/components/Notification/UserFollow/UserFollow.js +5 -15
  489. package/lib/esm/components/Notification/VoteUp/VoteUp.js +6 -19
  490. package/lib/esm/components/PlatformWidget/PlatformWidget.js +20 -53
  491. package/lib/esm/components/PlatformWidget/Skeleton.js +2 -2
  492. package/lib/esm/components/PollSuggestionWidget/PollSnippet/PollSnippet.js +3 -12
  493. package/lib/esm/components/PollSuggestionWidget/PollSnippet/Skeleton.js +2 -2
  494. package/lib/esm/components/PollSuggestionWidget/PollSuggestionWidget.js +5 -17
  495. package/lib/esm/components/PollSuggestionWidget/Skeleton.js +2 -6
  496. package/lib/esm/components/PrivateMessageComponent/PrivateMessageComponent.js +6 -9
  497. package/lib/esm/components/PrivateMessageComponent/Skeleton.js +2 -6
  498. package/lib/esm/components/PrivateMessageEditor/MessageMediaUploader/index.js +16 -37
  499. package/lib/esm/components/PrivateMessageEditor/PrivateMessageEditor.js +9 -18
  500. package/lib/esm/components/PrivateMessageEditor/Skeleton.js +2 -2
  501. package/lib/esm/components/PrivateMessageSettingsIconButton/PrivateMessageSettingsIconButton.js +9 -31
  502. package/lib/esm/components/PrivateMessageSnippetItem/PrivateMessageSnippetItem.js +12 -19
  503. package/lib/esm/components/PrivateMessageSnippetItem/Skeleton.js +2 -5
  504. package/lib/esm/components/PrivateMessageSnippets/PrivateMessageSnippets.js +8 -16
  505. package/lib/esm/components/PrivateMessageSnippets/Skeleton.js +2 -8
  506. package/lib/esm/components/PrivateMessageThread/PrivateMessageThread.js +14 -35
  507. package/lib/esm/components/PrivateMessageThread/Skeleton.js +2 -9
  508. package/lib/esm/components/PrivateMessageThreadItem/PrivateMessageThreadItem.js +15 -33
  509. package/lib/esm/components/PrivateMessageThreadItem/Skeleton.js +2 -3
  510. package/lib/esm/components/RelatedFeedObjectsWidget/RelatedFeedObjectsWidget.js +6 -21
  511. package/lib/esm/components/RelatedFeedObjectsWidget/Skeleton.js +2 -2
  512. package/lib/esm/components/SearchAutocomplete/SearchAutocomplete.js +5 -8
  513. package/lib/esm/components/SearchDialog/SearchDialog.js +2 -4
  514. package/lib/esm/components/Skeleton/AvatarGroupSkeleton.js +2 -3
  515. package/lib/esm/components/Skeleton/GenericSkeleton.js +2 -6
  516. package/lib/esm/components/SnippetNotifications/Skeleton.js +3 -3
  517. package/lib/esm/components/SnippetNotifications/SnippetNotifications.js +23 -28
  518. package/lib/esm/components/ToastNotifications/Skeleton.js +2 -2
  519. package/lib/esm/components/ToastNotifications/ToastNotifications.js +16 -15
  520. package/lib/esm/components/User/Skeleton.js +2 -3
  521. package/lib/esm/components/User/User.js +6 -14
  522. package/lib/esm/components/UserActionIconButton/UserActionIconButton.js +16 -31
  523. package/lib/esm/components/UserConnectionsRequestsSentWidget/Skeleton.js +2 -2
  524. package/lib/esm/components/UserConnectionsRequestsSentWidget/UserConnectionsRequestsSentWidget.js +5 -17
  525. package/lib/esm/components/UserConnectionsRequestsWidget/Skeleton.js +2 -2
  526. package/lib/esm/components/UserConnectionsRequestsWidget/UserConnectionsRequestsWidget.js +5 -17
  527. package/lib/esm/components/UserConnectionsWidget/Skeleton.js +2 -2
  528. package/lib/esm/components/UserConnectionsWidget/UserConnectionsWidget.js +5 -17
  529. package/lib/esm/components/UserCounters/UserCounters.js +19 -28
  530. package/lib/esm/components/UserFollowedCategoriesWidget/Skeleton.js +2 -2
  531. package/lib/esm/components/UserFollowedCategoriesWidget/UserFollowedCategoriesWidget.js +5 -20
  532. package/lib/esm/components/UserFollowedUsersWidget/Skeleton.js +2 -2
  533. package/lib/esm/components/UserFollowedUsersWidget/UserFollowedUsersWidget.js +5 -17
  534. package/lib/esm/components/UserFollowersWidget/Skeleton.js +2 -2
  535. package/lib/esm/components/UserFollowersWidget/UserFollowersWidget.js +5 -17
  536. package/lib/esm/components/UserInfo/Skeleton.js +2 -6
  537. package/lib/esm/components/UserInfo/UserInfo.js +13 -14
  538. package/lib/esm/components/UserInfoDialog/UserInfoDialog.js +3 -5
  539. package/lib/esm/components/UserProfileBlocked/UserProfileBlocked.js +4 -11
  540. package/lib/esm/components/UserProfileEdit/Section/Account.js +3 -13
  541. package/lib/esm/components/UserProfileEdit/Section/AccountCredentials.js +15 -37
  542. package/lib/esm/components/UserProfileEdit/Section/PublicInfo.js +15 -25
  543. package/lib/esm/components/UserProfileEdit/Section/Settings.js +7 -37
  544. package/lib/esm/components/UserProfileEdit/Section/SettingsSkeleton.js +2 -5
  545. package/lib/esm/components/UserProfileEdit/Skeleton.js +2 -6
  546. package/lib/esm/components/UserProfileEdit/UserProfileEdit.js +2 -9
  547. package/lib/esm/components/UserProfileHeader/Skeleton.js +2 -13
  548. package/lib/esm/components/UserProfileHeader/UserProfileHeader.js +4 -21
  549. package/lib/esm/components/UserSocialAssociation/UserSocialAssociation.js +2 -16
  550. package/lib/esm/components/UserSubscribedGroupsWidget/Skeleton.js +2 -6
  551. package/lib/esm/components/UserSubscribedGroupsWidget/UserSubscribedGroupsWidget.js +7 -22
  552. package/lib/esm/components/UserSuggestionWidget/Skeleton.js +2 -5
  553. package/lib/esm/components/UserSuggestionWidget/UserSuggestionWidget.js +5 -17
  554. package/lib/esm/components/VoteAudienceButton/VoteAudienceButton.js +9 -23
  555. package/lib/esm/components/VoteButton/VoteButton.js +9 -15
  556. package/lib/esm/components/Widget/index.js +3 -2
  557. package/lib/esm/shared/AutoPlayer/index.js +5 -6
  558. package/lib/esm/shared/BaseDialog/BaseDialog.js +3 -10
  559. package/lib/esm/shared/BaseItem/BaseItem.js +4 -10
  560. package/lib/esm/shared/BaseItemButton/BaseItemButton.js +4 -10
  561. package/lib/esm/shared/Bullet/index.js +2 -1
  562. package/lib/esm/shared/Calendar/index.js +2 -3
  563. package/lib/esm/shared/CentralProgress/index.js +3 -4
  564. package/lib/esm/shared/ConfirmDialog/ConfirmDialog.js +2 -9
  565. package/lib/esm/shared/ConsentSolutionSwitch/index.js +5 -8
  566. package/lib/esm/shared/ContributionActionsMenu/index.js +22 -85
  567. package/lib/esm/shared/CustomSnackMessage/index.js +3 -7
  568. package/lib/esm/shared/DateTimeAgo/index.js +2 -6
  569. package/lib/esm/shared/EmailTextField/index.js +3 -2
  570. package/lib/esm/shared/EmojiPicker/EmojiPicker.js +2 -2
  571. package/lib/esm/shared/EventInfoDetails/index.js +5 -22
  572. package/lib/esm/shared/HiddenPlaceholder/index.js +2 -2
  573. package/lib/esm/shared/InfiniteScroll/index.js +8 -18
  574. package/lib/esm/shared/InfiniteScroll/stories/InfiniteScrollWithHeight.js +3 -8
  575. package/lib/esm/shared/InfiniteScroll/stories/PullDownToRefreshInfScroll.js +3 -7
  576. package/lib/esm/shared/InfiniteScroll/stories/ScrollableTargetFixedInfScroll.js +13 -18
  577. package/lib/esm/shared/InfiniteScroll/stories/ScrollableTargetInfScroll.js +3 -8
  578. package/lib/esm/shared/InfiniteScroll/stories/ScrolleableTop.js +6 -11
  579. package/lib/esm/shared/InfiniteScroll/stories/WindowInfiniteScrollComponent.js +3 -6
  580. package/lib/esm/shared/LanguageSwitcher/index.js +3 -5
  581. package/lib/esm/shared/Lightbox/Lightbox.js +4 -3
  582. package/lib/esm/shared/MarkRead/MarkRead.js +3 -3
  583. package/lib/esm/shared/Media/File/DisplayComponent.js +13 -42
  584. package/lib/esm/shared/Media/File/Lightbox/index.js +5 -5
  585. package/lib/esm/shared/Media/File/PreviewComponent.js +5 -9
  586. package/lib/esm/shared/Media/File/TriggerButton.js +14 -25
  587. package/lib/esm/shared/Media/File/asUploadButton.js +3 -2
  588. package/lib/esm/shared/Media/Link/DisplayComponent.js +8 -15
  589. package/lib/esm/shared/Media/Link/LayerComponent.js +2 -11
  590. package/lib/esm/shared/Media/Link/PreviewComponent.js +2 -4
  591. package/lib/esm/shared/Media/Link/TriggerButton.js +2 -3
  592. package/lib/esm/shared/Media/Link/UrlTextField/index.js +5 -7
  593. package/lib/esm/shared/Media/Share/DisplayComponent.js +3 -3
  594. package/lib/esm/shared/MetadataField/MetadataField.js +8 -7
  595. package/lib/esm/shared/NewChip/NewChip.js +2 -2
  596. package/lib/esm/shared/NotificationItem/NotificationItem.js +3 -12
  597. package/lib/esm/shared/PasswordTextField/index.js +4 -6
  598. package/lib/esm/shared/PhoneTextField/index.js +3 -2
  599. package/lib/esm/shared/ScrollContainer/index.js +2 -2
  600. package/lib/esm/shared/StickyBox/index.js +3 -2
  601. package/lib/esm/shared/TagChip/index.js +2 -2
  602. package/lib/esm/shared/Tags/index.js +11 -23
  603. package/lib/esm/shared/UrlTextField/index.js +3 -2
  604. package/lib/esm/shared/UserAvatar/UserAvatar.js +3 -2
  605. package/lib/esm/shared/UserDeletedSnackBar/UserDeletedSnackBar.js +3 -5
  606. package/lib/esm/shared/UsernameTextField/index.js +3 -2
  607. package/lib/esm/shared/VirtualizedScroller/VirtualScrollerChild.js +2 -2
  608. package/lib/esm/shared/VirtualizedScroller/VirtualizedScroller.js +3 -2
  609. package/lib/esm/utils/contribution.js +3 -3
  610. package/lib/esm/utils/errors.js +3 -3
  611. package/lib/umd/react-ui.js +1 -1
  612. package/package.json +7 -7
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
4
5
  const react_1 = tslib_1.__importStar(require("react"));
5
6
  const styles_1 = require("@mui/material/styles");
6
7
  const material_1 = require("@mui/material");
@@ -71,34 +72,16 @@ function ContributionNotification(props) {
71
72
  /**
72
73
  * Renders root object
73
74
  */
74
- return (react_1.default.createElement(react_1.default.Fragment, null,
75
- react_1.default.createElement(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${constants_1.PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: react_1.default.createElement(react_core_1.Link, Object.assign({}, (!notificationObject[contributionType].author.deleted && {
76
- to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject[contributionType].author)
77
- }), { onClick: notificationObject[contributionType].author.deleted ? () => setOpenAlert(true) : null }),
78
- react_1.default.createElement(UserAvatar_1.default, { hide: !notificationObject[contributionType].author.community_badge, smaller: true },
79
- react_1.default.createElement(material_1.Avatar, { alt: notificationObject[contributionType].author.username, variant: "circular", src: notificationObject[contributionType].author.avatar, classes: { root: classes.avatar } }))), primary: react_1.default.createElement(react_1.default.Fragment, null,
80
- react_1.default.createElement(react_core_1.Link, Object.assign({}, (!notificationObject[contributionType].author.deleted && {
75
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${constants_1.PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({}, (!notificationObject[contributionType].author.deleted && {
81
76
  to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject[contributionType].author)
82
- }), { onClick: notificationObject[contributionType].author.deleted ? () => setOpenAlert(true) : null, className: classes.username }), notificationObject[contributionType].author.username),
83
- ' ',
84
- template === types_2.SCNotificationObjectTemplateType.SNIPPET ? (react_1.default.createElement(react_1.default.Fragment, null, notificationObject[contributionType]['type'] === types_1.SCContributionType.POST ||
85
- notificationObject[contributionType]['type'] === types_1.SCContributionType.STATUS
86
- ? intl.formatMessage(messages.postOrStatusSnippet, { contribution: notificationObject[contributionType]['type'] })
87
- : intl.formatMessage(messages.discussionSnippet))) : (react_1.default.createElement(react_1.default.Fragment, null, notificationObject[contributionType]['type'] === types_1.SCContributionType.POST ||
88
- notificationObject[contributionType]['type'] === types_1.SCContributionType.STATUS
89
- ? intl.formatMessage(messages.postOrStatus, { contribution: notificationObject[contributionType]['type'] })
90
- : intl.formatMessage(messages.discussion)))), secondary: react_1.default.createElement(react_1.default.Fragment, null,
91
- template === types_2.SCNotificationObjectTemplateType.SNIPPET && (react_1.default.createElement(react_core_1.Link, { to: scRoutingContext.url(react_core_1.SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(notificationObject[contributionType])) },
92
- react_1.default.createElement(material_1.Typography, { variant: "body2", className: classes.contributionText, component: 'div' }, (0, contribution_1.getContributionSnippet)(notificationObject[contributionType])))),
93
- template === types_2.SCNotificationObjectTemplateType.DETAIL && (react_1.default.createElement(material_1.Stack, { direction: "row", justifyContent: "flex-start", alignItems: "center", spacing: 1 },
94
- react_1.default.createElement(DateTimeAgo_1.default, { date: notificationObject.active_at, className: classes.activeAt }),
95
- react_1.default.createElement(Bullet_1.default, { className: classes.bullet }),
96
- react_1.default.createElement(VoteButton_1.default, { className: classes.voteButton, variant: "text", size: "small", contributionId: notificationObject[contributionType].id, contributionType: contributionType, contribution: notificationObject[contributionType], onVote: handleVote }))),
97
- template === types_2.SCNotificationObjectTemplateType.SNIPPET && (react_1.default.createElement(DateTimeAgo_1.default, { date: notificationObject.active_at, className: classes.activeAt }))), footer: template === types_2.SCNotificationObjectTemplateType.TOAST && (react_1.default.createElement(material_1.Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 },
98
- react_1.default.createElement(DateTimeAgo_1.default, { date: notificationObject.active_at }),
99
- react_1.default.createElement(material_1.Typography, { color: "primary", component: 'div' },
100
- react_1.default.createElement(react_core_1.Link, { to: scRoutingContext.url(react_core_1.SCRoutes[`${notificationObject[contributionType]['type'].toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(notificationObject[contributionType])) },
101
- react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.userToastNotifications.viewContribution", defaultMessage: 'ui.userToastNotifications.viewContribution' }))))) }, rest)),
102
- openAlert && react_1.default.createElement(UserDeletedSnackBar_1.default, { open: openAlert, handleClose: () => setOpenAlert(false) })));
77
+ }), { onClick: notificationObject[contributionType].author.deleted ? () => setOpenAlert(true) : null }, { children: (0, jsx_runtime_1.jsx)(UserAvatar_1.default, Object.assign({ hide: !notificationObject[contributionType].author.community_badge, smaller: true }, { children: (0, jsx_runtime_1.jsx)(material_1.Avatar, { alt: notificationObject[contributionType].author.username, variant: "circular", src: notificationObject[contributionType].author.avatar, classes: { root: classes.avatar } }) })) })), primary: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({}, (!notificationObject[contributionType].author.deleted && {
78
+ to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject[contributionType].author)
79
+ }), { onClick: notificationObject[contributionType].author.deleted ? () => setOpenAlert(true) : null, className: classes.username }, { children: notificationObject[contributionType].author.username })), ' ', template === types_2.SCNotificationObjectTemplateType.SNIPPET ? ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: notificationObject[contributionType]['type'] === types_1.SCContributionType.POST ||
80
+ notificationObject[contributionType]['type'] === types_1.SCContributionType.STATUS
81
+ ? intl.formatMessage(messages.postOrStatusSnippet, { contribution: notificationObject[contributionType]['type'] })
82
+ : intl.formatMessage(messages.discussionSnippet) })) : ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: notificationObject[contributionType]['type'] === types_1.SCContributionType.POST ||
83
+ notificationObject[contributionType]['type'] === types_1.SCContributionType.STATUS
84
+ ? intl.formatMessage(messages.postOrStatus, { contribution: notificationObject[contributionType]['type'] })
85
+ : intl.formatMessage(messages.discussion) }))] }), secondary: (0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [template === types_2.SCNotificationObjectTemplateType.SNIPPET && ((0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(notificationObject[contributionType])) }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body2", className: classes.contributionText, component: 'div' }, { children: (0, contribution_1.getContributionSnippet)(notificationObject[contributionType]) })) }))), template === types_2.SCNotificationObjectTemplateType.DETAIL && ((0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ direction: "row", justifyContent: "flex-start", alignItems: "center", spacing: 1 }, { children: [(0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at, className: classes.activeAt }), (0, jsx_runtime_1.jsx)(Bullet_1.default, { className: classes.bullet }), (0, jsx_runtime_1.jsx)(VoteButton_1.default, { className: classes.voteButton, variant: "text", size: "small", contributionId: notificationObject[contributionType].id, contributionType: contributionType, contribution: notificationObject[contributionType], onVote: handleVote })] }))), template === types_2.SCNotificationObjectTemplateType.SNIPPET && ((0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at, className: classes.activeAt }))] }), footer: template === types_2.SCNotificationObjectTemplateType.TOAST && ((0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: [(0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at }), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ color: "primary", component: 'div' }, { children: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes[`${notificationObject[contributionType]['type'].toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(notificationObject[contributionType])) }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userToastNotifications.viewContribution", defaultMessage: 'ui.userToastNotifications.viewContribution' }) })) }))] }))) }, rest)), openAlert && (0, jsx_runtime_1.jsx)(UserDeletedSnackBar_1.default, { open: openAlert, handleClose: () => setOpenAlert(false) })] }));
103
86
  }
104
87
  exports.default = ContributionNotification;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
4
5
  const react_1 = tslib_1.__importStar(require("react"));
5
6
  const styles_1 = require("@mui/material/styles");
6
7
  const material_1 = require("@mui/material");
@@ -51,24 +52,8 @@ function ContributionFollowNotification(props) {
51
52
  /**
52
53
  * Renders root object
53
54
  */
54
- return (react_1.default.createElement(react_1.default.Fragment, null,
55
- react_1.default.createElement(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${constants_1.PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: react_1.default.createElement(react_core_1.Link, Object.assign({}, (!notificationObject.user.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.user) }), { onClick: notificationObject.user.deleted ? () => setOpenAlert(true) : null }),
56
- react_1.default.createElement(UserAvatar_1.default, { hide: !notificationObject.user.community_badge, smaller: true },
57
- react_1.default.createElement(material_1.Avatar, { alt: notificationObject.user.username, variant: "circular", src: notificationObject.user.avatar, classes: { root: classes.avatar } }))), primary: react_1.default.createElement(material_1.Typography, { component: "span", color: "inherit", className: classes.followText },
58
- react_1.default.createElement(react_core_1.Link, Object.assign({}, (!notificationObject.user.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.user) }), { onClick: notificationObject.user.deleted ? () => setOpenAlert(true) : null, className: classes.username }), notificationObject.user.username),
59
- ' ',
60
- intl.formatMessage(messages.contributionFollow, {
61
- b: (...chunks) => react_1.default.createElement("strong", null, chunks)
62
- })), secondary: react_1.default.createElement(react_1.default.Fragment, null,
63
- template === types_1.SCNotificationObjectTemplateType.SNIPPET && (react_1.default.createElement(react_1.default.Fragment, null,
64
- react_1.default.createElement(react_core_1.Link, { to: scRoutingContext.url(react_core_1.SCRoutes[`${notificationObject[contributionType]['type'].toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(notificationObject[contributionType])) },
65
- react_1.default.createElement(material_1.Typography, { variant: "body2", className: classes.contributionText }, (0, contribution_1.getContributionSnippet)(notificationObject[contributionType]))))),
66
- (template === types_1.SCNotificationObjectTemplateType.DETAIL || template === types_1.SCNotificationObjectTemplateType.SNIPPET) && (react_1.default.createElement("div", null,
67
- react_1.default.createElement(DateTimeAgo_1.default, { date: notificationObject.active_at, className: classes.activeAt })))), footer: template === types_1.SCNotificationObjectTemplateType.TOAST && (react_1.default.createElement(material_1.Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 },
68
- react_1.default.createElement(DateTimeAgo_1.default, { date: notificationObject.active_at }),
69
- react_1.default.createElement(material_1.Typography, { color: "primary", component: 'div' },
70
- react_1.default.createElement(react_core_1.Link, { to: scRoutingContext.url(react_core_1.SCRoutes[`${notificationObject[contributionType]['type'].toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(notificationObject[contributionType])) },
71
- react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.userToastNotifications.viewContribution", defaultMessage: 'ui.userToastNotifications.viewContribution' }))))) }, rest)),
72
- openAlert && react_1.default.createElement(UserDeletedSnackBar_1.default, { open: openAlert, handleClose: () => setOpenAlert(false) })));
55
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${constants_1.PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({}, (!notificationObject.user.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.user) }), { onClick: notificationObject.user.deleted ? () => setOpenAlert(true) : null }, { children: (0, jsx_runtime_1.jsx)(UserAvatar_1.default, Object.assign({ hide: !notificationObject.user.community_badge, smaller: true }, { children: (0, jsx_runtime_1.jsx)(material_1.Avatar, { alt: notificationObject.user.username, variant: "circular", src: notificationObject.user.avatar, classes: { root: classes.avatar } }) })) })), primary: (0, jsx_runtime_1.jsxs)(material_1.Typography, Object.assign({ component: "span", color: "inherit", className: classes.followText }, { children: [(0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({}, (!notificationObject.user.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.user) }), { onClick: notificationObject.user.deleted ? () => setOpenAlert(true) : null, className: classes.username }, { children: notificationObject.user.username })), ' ', intl.formatMessage(messages.contributionFollow, {
56
+ b: (...chunks) => (0, jsx_runtime_1.jsx)("strong", { children: chunks })
57
+ })] })), secondary: (0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [template === types_1.SCNotificationObjectTemplateType.SNIPPET && ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes[`${notificationObject[contributionType]['type'].toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(notificationObject[contributionType])) }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body2", className: classes.contributionText }, { children: (0, contribution_1.getContributionSnippet)(notificationObject[contributionType]) })) })) })), (template === types_1.SCNotificationObjectTemplateType.DETAIL || template === types_1.SCNotificationObjectTemplateType.SNIPPET) && ((0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at, className: classes.activeAt }) }))] }), footer: template === types_1.SCNotificationObjectTemplateType.TOAST && ((0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: [(0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at }), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ color: "primary", component: 'div' }, { children: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes[`${notificationObject[contributionType]['type'].toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(notificationObject[contributionType])) }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userToastNotifications.viewContribution", defaultMessage: 'ui.userToastNotifications.viewContribution' }) })) }))] }))) }, rest)), openAlert && (0, jsx_runtime_1.jsx)(UserDeletedSnackBar_1.default, { open: openAlert, handleClose: () => setOpenAlert(false) })] }));
73
58
  }
74
59
  exports.default = ContributionFollowNotification;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- const react_1 = tslib_1.__importDefault(require("react"));
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const styles_1 = require("@mui/material/styles");
6
6
  const material_1 = require("@mui/material");
7
7
  const Icon_1 = tslib_1.__importDefault(require("@mui/material/Icon"));
@@ -69,21 +69,6 @@ function DeletedForNotification(props) {
69
69
  /**
70
70
  * Renders root object
71
71
  */
72
- return (react_1.default.createElement(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${constants_1.PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: react_1.default.createElement(material_1.Avatar, { variant: "circular", classes: { root: classes.flagIcon } },
73
- react_1.default.createElement(Icon_1.default, null, "outlined_flag")), primary: react_1.default.createElement(react_1.default.Fragment, null, isSnippetTemplate ? (react_1.default.createElement(react_core_1.Link, { to: scRoutingContext.url(react_core_1.SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(notificationObject[contributionType])) },
74
- react_1.default.createElement(material_1.Typography, { component: "div", color: "inherit", className: classes.flagText },
75
- react_1.default.createElement(react_intl_1.FormattedMessage, { id: `ui.notification.deletedFor.${(0, utils_1.camelCase)(notificationObject.type)}Snippet`, defaultMessage: `ui.notification.deletedFor.${(0, utils_1.camelCase)(notificationObject.type)}Snippet` })))) : (react_1.default.createElement(react_1.default.Fragment, null,
76
- template === types_1.SCNotificationObjectTemplateType.DETAIL && notificationObject.is_new && react_1.default.createElement(NewChip_1.default, null),
77
- react_1.default.createElement(material_1.Typography, { component: "div", color: "inherit", className: classes.flagText }, intl.formatMessage(messages[(0, utils_1.camelCase)(notificationObject.type)], { b: (...chunks) => react_1.default.createElement("strong", null, chunks) }))))), secondary: (template === types_1.SCNotificationObjectTemplateType.DETAIL || template === types_1.SCNotificationObjectTemplateType.SNIPPET) && (react_1.default.createElement(DateTimeAgo_1.default, { date: notificationObject.active_at, className: classes.activeAt })), footer: isSnippetTemplate ? null : (react_1.default.createElement(react_1.default.Fragment, null,
78
- react_1.default.createElement(material_1.Box, { className: classes.contributionWrap },
79
- react_1.default.createElement(material_1.Typography, { variant: 'body2', color: 'inherit', classes: { root: classes.contributionYouWroteLabel } },
80
- react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.notification.deletedFor.youWrote", defaultMessage: "ui.notification.deletedFor.youWrote" })),
81
- react_1.default.createElement(react_core_1.Link, { to: scRoutingContext.url(react_core_1.SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(notificationObject[contributionType])), className: classes.contributionText },
82
- react_1.default.createElement(material_1.Typography, { component: 'span', color: 'inherit', variant: "body2" }, (0, contribution_1.getContributionSnippet)(notificationObject[contributionType])))),
83
- template === types_1.SCNotificationObjectTemplateType.TOAST && (react_1.default.createElement(material_1.Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 },
84
- react_1.default.createElement(DateTimeAgo_1.default, { date: notificationObject.active_at }),
85
- react_1.default.createElement(material_1.Typography, { color: "primary", component: 'div' },
86
- react_1.default.createElement(react_core_1.Link, { to: scRoutingContext.url(react_core_1.SCRoutes[`${notificationObject[contributionType]['type'].toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(notificationObject[contributionType])) },
87
- react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.userToastNotifications.viewContribution", defaultMessage: 'ui.userToastNotifications.viewContribution' }))))))) }, rest)));
72
+ return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${constants_1.PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: (0, jsx_runtime_1.jsx)(material_1.Avatar, Object.assign({ variant: "circular", classes: { root: classes.flagIcon } }, { children: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "outlined_flag" }) })), primary: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: isSnippetTemplate ? ((0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(notificationObject[contributionType])) }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ component: "div", color: "inherit", className: classes.flagText }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: `ui.notification.deletedFor.${(0, utils_1.camelCase)(notificationObject.type)}Snippet`, defaultMessage: `ui.notification.deletedFor.${(0, utils_1.camelCase)(notificationObject.type)}Snippet` }) })) }))) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [template === types_1.SCNotificationObjectTemplateType.DETAIL && notificationObject.is_new && (0, jsx_runtime_1.jsx)(NewChip_1.default, {}), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ component: "div", color: "inherit", className: classes.flagText }, { children: intl.formatMessage(messages[(0, utils_1.camelCase)(notificationObject.type)], { b: (...chunks) => (0, jsx_runtime_1.jsx)("strong", { children: chunks }) }) }))] })) }), secondary: (template === types_1.SCNotificationObjectTemplateType.DETAIL || template === types_1.SCNotificationObjectTemplateType.SNIPPET) && ((0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at, className: classes.activeAt })), footer: isSnippetTemplate ? null : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ className: classes.contributionWrap }, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: 'body2', color: 'inherit', classes: { root: classes.contributionYouWroteLabel } }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.notification.deletedFor.youWrote", defaultMessage: "ui.notification.deletedFor.youWrote" }) })), (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(notificationObject[contributionType])), className: classes.contributionText }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ component: 'span', color: 'inherit', variant: "body2" }, { children: (0, contribution_1.getContributionSnippet)(notificationObject[contributionType]) })) }))] })), template === types_1.SCNotificationObjectTemplateType.TOAST && ((0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: [(0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at }), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ color: "primary", component: 'div' }, { children: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes[`${notificationObject[contributionType]['type'].toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(notificationObject[contributionType])) }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userToastNotifications.viewContribution", defaultMessage: 'ui.userToastNotifications.viewContribution' }) })) }))] })))] })) }, rest)));
88
73
  }
89
74
  exports.default = DeletedForNotification;
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- const react_1 = tslib_1.__importStar(require("react"));
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const react_1 = require("react");
5
6
  const styles_1 = require("@mui/material/styles");
6
7
  const material_1 = require("@mui/material");
7
8
  const react_core_1 = require("@selfcommunity/react-core");
@@ -50,38 +51,24 @@ function GroupNotification(props) {
50
51
  }, [manager.subscriptionStatus, notificationObject.group]);
51
52
  // RENDER
52
53
  if (isSnippetTemplate || isToastTemplate) {
53
- return (react_1.default.createElement(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${constants_1.PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: react_1.default.createElement(react_core_1.Link, Object.assign({}, (!notificationObject.user.deleted && {
54
+ return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${constants_1.PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({}, (!notificationObject.user.deleted && {
54
55
  to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.user)
55
- }), { onClick: notificationObject.user.deleted ? () => setOpenAlert(true) : null }),
56
- react_1.default.createElement(UserAvatar_1.default, { hide: !notificationObject.user.community_badge, smaller: true },
57
- react_1.default.createElement(material_1.Avatar, { alt: notificationObject.user.username, variant: "circular", src: notificationObject.user.avatar, classes: { root: classes.avatar } }))), primary: react_1.default.createElement(material_1.Box, null,
58
- react_1.default.createElement(react_core_1.Link, Object.assign({}, (!notificationObject.user.deleted && {
59
- to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.user)
60
- }), { onClick: notificationObject.user.deleted ? () => setOpenAlert(true) : null, className: classes.username }), notificationObject.user.username),
61
- ' ',
62
- react_1.default.createElement(react_intl_1.FormattedMessage, { id: `ui.notification.${notificationObject.type}`, defaultMessage: `ui.notification.${notificationObject.type}`, values: {
63
- group: notificationObject.group.name,
64
- link: (...chunks) => (react_1.default.createElement(react_core_1.Link, { to: notificationObject.type === types_1.SCNotificationTypologyType.USER_REQUESTED_TO_JOIN_GROUP ||
56
+ }), { onClick: notificationObject.user.deleted ? () => setOpenAlert(true) : null }, { children: (0, jsx_runtime_1.jsx)(UserAvatar_1.default, Object.assign({ hide: !notificationObject.user.community_badge, smaller: true }, { children: (0, jsx_runtime_1.jsx)(material_1.Avatar, { alt: notificationObject.user.username, variant: "circular", src: notificationObject.user.avatar, classes: { root: classes.avatar } }) })) })), primary: (0, jsx_runtime_1.jsxs)(material_1.Box, { children: [(0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({}, (!notificationObject.user.deleted && {
57
+ to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.user)
58
+ }), { onClick: notificationObject.user.deleted ? () => setOpenAlert(true) : null, className: classes.username }, { children: notificationObject.user.username })), ' ', (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: `ui.notification.${notificationObject.type}`, defaultMessage: `ui.notification.${notificationObject.type}`, values: {
59
+ group: notificationObject.group.name,
60
+ link: (...chunks) => ((0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: notificationObject.type === types_1.SCNotificationTypologyType.USER_REQUESTED_TO_JOIN_GROUP ||
61
+ notificationObject.type === types_1.SCNotificationTypologyType.USER_ACCEPTED_TO_JOIN_GROUP
62
+ ? scRoutingContext.url(react_core_1.SCRoutes.GROUP_MEMBERS_ROUTE_NAME, notificationObject.group)
63
+ : scRoutingContext.url(react_core_1.SCRoutes.GROUP_ROUTE_NAME, notificationObject.group) }, { children: chunks })))
64
+ } })] }), footer: isToastTemplate && ((0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: [(0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at }), status && status !== types_1.SCGroupSubscriptionStatusType.SUBSCRIBED && ((0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ color: "primary" }, { children: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: notificationObject.type === types_1.SCNotificationTypologyType.USER_REQUESTED_TO_JOIN_GROUP ||
65
65
  notificationObject.type === types_1.SCNotificationTypologyType.USER_ACCEPTED_TO_JOIN_GROUP
66
66
  ? scRoutingContext.url(react_core_1.SCRoutes.GROUP_MEMBERS_ROUTE_NAME, notificationObject.group)
67
- : scRoutingContext.url(react_core_1.SCRoutes.GROUP_ROUTE_NAME, notificationObject.group) }, chunks))
68
- } })), footer: isToastTemplate && (react_1.default.createElement(material_1.Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 },
69
- react_1.default.createElement(DateTimeAgo_1.default, { date: notificationObject.active_at }),
70
- status && status !== types_1.SCGroupSubscriptionStatusType.SUBSCRIBED && (react_1.default.createElement(material_1.Typography, { color: "primary" },
71
- react_1.default.createElement(react_core_1.Link, { to: notificationObject.type === types_1.SCNotificationTypologyType.USER_REQUESTED_TO_JOIN_GROUP ||
72
- notificationObject.type === types_1.SCNotificationTypologyType.USER_ACCEPTED_TO_JOIN_GROUP
73
- ? scRoutingContext.url(react_core_1.SCRoutes.GROUP_MEMBERS_ROUTE_NAME, notificationObject.group)
74
- : scRoutingContext.url(react_core_1.SCRoutes.GROUP_ROUTE_NAME, notificationObject.group) },
75
- react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.notification.group.button.see", defaultMessage: "ui.notification.group.button.see" })))))) }, rest)));
67
+ : scRoutingContext.url(react_core_1.SCRoutes.GROUP_ROUTE_NAME, notificationObject.group) }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.notification.group.button.see", defaultMessage: "ui.notification.group.button.see" }) })) })))] }))) }, rest)));
76
68
  }
77
- return (react_1.default.createElement(react_1.default.Fragment, null,
78
- react_1.default.createElement(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${constants_1.PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, actions: react_1.default.createElement(material_1.Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 },
79
- react_1.default.createElement(DateTimeAgo_1.default, { date: notificationObject.active_at, className: classes.activeAt }),
80
- status && status !== types_1.SCGroupSubscriptionStatusType.SUBSCRIBED && (react_1.default.createElement(lab_1.LoadingButton, { color: 'primary', variant: "outlined", size: "small", classes: { root: classes.acceptButton }, component: react_core_1.Link, loading: scUserContext.user ? status === null || manager.isLoading(notificationObject.group) : null, to: notificationObject.type === types_1.SCNotificationTypologyType.USER_REQUESTED_TO_JOIN_GROUP ||
81
- notificationObject.type === types_1.SCNotificationTypologyType.USER_ACCEPTED_TO_JOIN_GROUP
82
- ? scRoutingContext.url(react_core_1.SCRoutes.GROUP_MEMBERS_ROUTE_NAME, notificationObject.group)
83
- : scRoutingContext.url(react_core_1.SCRoutes.GROUP_ROUTE_NAME, notificationObject.group) },
84
- react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.notification.group.button.see", defaultMessage: "ui.notification.group.button.see" })))) }, rest)),
85
- openAlert && react_1.default.createElement(UserDeletedSnackBar_1.default, { open: openAlert, handleClose: () => setOpenAlert(false) })));
69
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${constants_1.PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, actions: (0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: [(0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at, className: classes.activeAt }), status && status !== types_1.SCGroupSubscriptionStatusType.SUBSCRIBED && ((0, jsx_runtime_1.jsx)(lab_1.LoadingButton, Object.assign({ color: 'primary', variant: "outlined", size: "small", classes: { root: classes.acceptButton }, component: react_core_1.Link, loading: scUserContext.user ? status === null || manager.isLoading(notificationObject.group) : null, to: notificationObject.type === types_1.SCNotificationTypologyType.USER_REQUESTED_TO_JOIN_GROUP ||
70
+ notificationObject.type === types_1.SCNotificationTypologyType.USER_ACCEPTED_TO_JOIN_GROUP
71
+ ? scRoutingContext.url(react_core_1.SCRoutes.GROUP_MEMBERS_ROUTE_NAME, notificationObject.group)
72
+ : scRoutingContext.url(react_core_1.SCRoutes.GROUP_ROUTE_NAME, notificationObject.group) }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.notification.group.button.see", defaultMessage: "ui.notification.group.button.see" }) })))] })) }, rest)), openAlert && (0, jsx_runtime_1.jsx)(UserDeletedSnackBar_1.default, { open: openAlert, handleClose: () => setOpenAlert(false) })] }));
86
73
  }
87
74
  exports.default = GroupNotification;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- const react_1 = tslib_1.__importDefault(require("react"));
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const styles_1 = require("@mui/material/styles");
6
6
  const material_1 = require("@mui/material");
7
7
  const react_core_1 = require("@selfcommunity/react-core");
@@ -41,20 +41,12 @@ function IncubatorApprovedNotification(props) {
41
41
  /**
42
42
  * Renders root object
43
43
  */
44
- return (react_1.default.createElement(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${constants_1.PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: react_1.default.createElement(material_1.Avatar, { alt: notificationObject.incubator.approved_category.name, src: notificationObject.incubator.approved_category.image_medium, variant: "square", classes: { root: classes.categoryIcon } }), primary: react_1.default.createElement(react_1.default.Fragment, null, isSnippetTemplate ? (react_1.default.createElement(react_core_1.Link, { to: scRoutingContext.url(react_core_1.SCRoutes.CATEGORY_ROUTE_NAME, notificationObject.incubator.approved_category) },
45
- react_1.default.createElement(material_1.Typography, { component: "div", className: classes.categoryApprovedText, color: "inherit" }, intl.formatMessage(messages.incubatorApproved, {
46
- name: notificationObject.incubator.name,
47
- b: (...chunks) => react_1.default.createElement("strong", null, chunks)
48
- })))) : (react_1.default.createElement(react_1.default.Fragment, null,
49
- template === types_1.SCNotificationObjectTemplateType.DETAIL && notificationObject.is_new && react_1.default.createElement(NewChip_1.default, null),
50
- react_1.default.createElement(material_1.Typography, { component: "div", className: classes.categoryApprovedText, color: "inherit" }, intl.formatMessage(messages.incubatorApproved, {
51
- name: notificationObject.incubator.name,
52
- b: (...chunks) => react_1.default.createElement("strong", null, chunks)
53
- }))))), secondary: (template === types_1.SCNotificationObjectTemplateType.DETAIL || template === types_1.SCNotificationObjectTemplateType.SNIPPET) && (react_1.default.createElement(DateTimeAgo_1.default, { date: notificationObject.active_at, className: classes.activeAt })), footer: template === types_1.SCNotificationObjectTemplateType.DETAIL ? (react_1.default.createElement(material_1.Button, { component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.CATEGORY_ROUTE_NAME, notificationObject.incubator.approved_category), className: classes.viewIncubatorButton },
54
- react_1.default.createElement(react_intl_1.FormattedMessage, { id: 'ui.notification.incubatorApproved.viewIncubator', defaultMessage: 'ui.notification.incubatorApproved.viewIncubator' }))) : template === types_1.SCNotificationObjectTemplateType.TOAST ? (react_1.default.createElement(material_1.Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 },
55
- react_1.default.createElement(DateTimeAgo_1.default, { date: notificationObject.active_at }),
56
- react_1.default.createElement(material_1.Typography, { color: "primary", component: 'div' },
57
- react_1.default.createElement(react_core_1.Link, { to: scRoutingContext.url(react_core_1.SCRoutes.CATEGORY_ROUTE_NAME, notificationObject.incubator) },
58
- react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.userToastNotifications.incubatorApproved.viewIncubator", defaultMessage: 'ui.userToastNotifications.incubatorApproved.viewIncubator' }))))) : null }, rest)));
44
+ return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${constants_1.PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: (0, jsx_runtime_1.jsx)(material_1.Avatar, { alt: notificationObject.incubator.approved_category.name, src: notificationObject.incubator.approved_category.image_medium, variant: "square", classes: { root: classes.categoryIcon } }), primary: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: isSnippetTemplate ? ((0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes.CATEGORY_ROUTE_NAME, notificationObject.incubator.approved_category) }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ component: "div", className: classes.categoryApprovedText, color: "inherit" }, { children: intl.formatMessage(messages.incubatorApproved, {
45
+ name: notificationObject.incubator.name,
46
+ b: (...chunks) => (0, jsx_runtime_1.jsx)("strong", { children: chunks })
47
+ }) })) }))) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [template === types_1.SCNotificationObjectTemplateType.DETAIL && notificationObject.is_new && (0, jsx_runtime_1.jsx)(NewChip_1.default, {}), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ component: "div", className: classes.categoryApprovedText, color: "inherit" }, { children: intl.formatMessage(messages.incubatorApproved, {
48
+ name: notificationObject.incubator.name,
49
+ b: (...chunks) => (0, jsx_runtime_1.jsx)("strong", { children: chunks })
50
+ }) }))] })) }), secondary: (template === types_1.SCNotificationObjectTemplateType.DETAIL || template === types_1.SCNotificationObjectTemplateType.SNIPPET) && ((0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at, className: classes.activeAt })), footer: template === types_1.SCNotificationObjectTemplateType.DETAIL ? ((0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.CATEGORY_ROUTE_NAME, notificationObject.incubator.approved_category), className: classes.viewIncubatorButton }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: 'ui.notification.incubatorApproved.viewIncubator', defaultMessage: 'ui.notification.incubatorApproved.viewIncubator' }) }))) : template === types_1.SCNotificationObjectTemplateType.TOAST ? ((0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: [(0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at }), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ color: "primary", component: 'div' }, { children: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes.CATEGORY_ROUTE_NAME, notificationObject.incubator) }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userToastNotifications.incubatorApproved.viewIncubator", defaultMessage: 'ui.userToastNotifications.incubatorApproved.viewIncubator' }) })) }))] }))) : null }, rest)));
59
51
  }
60
52
  exports.default = IncubatorApprovedNotification;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- const react_1 = tslib_1.__importDefault(require("react"));
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const styles_1 = require("@mui/material/styles");
6
6
  const material_1 = require("@mui/material");
7
7
  const Icon_1 = tslib_1.__importDefault(require("@mui/material/Icon"));
@@ -51,13 +51,6 @@ function KindlyNoticeFlagNotification(props) {
51
51
  /**
52
52
  * Renders root object
53
53
  */
54
- return (react_1.default.createElement(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${constants_1.PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: react_1.default.createElement(material_1.Avatar, { variant: "circular", classes: { root: classes.flagIcon } },
55
- react_1.default.createElement(Icon_1.default, null, "outlined_flag")), primary: react_1.default.createElement(react_1.default.Fragment, null, isSnippetTemplate ? (react_1.default.createElement(react_core_1.Link, { to: scRoutingContext.url(react_core_1.SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(notificationObject[contributionType])) },
56
- react_1.default.createElement(material_1.Typography, { component: "div", color: "inherit", className: classes.flagText },
57
- react_1.default.createElement(react_intl_1.FormattedMessage, { id: `ui.notification.kindlyNoticeFlag.kindlyNoticeFlagSnippet`, defaultMessage: `ui.notification.kindlyNoticeFlag.kindlyNoticeFlagSnippet` })))) : (react_1.default.createElement(material_1.Typography, { component: "div", color: "inherit", className: classes.flagText }, intl.formatMessage(messages[(0, utils_1.camelCase)(notificationObject.type)], { b: (...chunks) => react_1.default.createElement("strong", null, chunks) })))), secondary: (template === types_1.SCNotificationObjectTemplateType.DETAIL || template === types_1.SCNotificationObjectTemplateType.SNIPPET) && (react_1.default.createElement(DateTimeAgo_1.default, { date: notificationObject.active_at, className: classes.activeAt })), footer: !isSnippetTemplate && (react_1.default.createElement(material_1.Box, { className: classes.contributionWrap },
58
- react_1.default.createElement(material_1.Typography, { variant: 'body2', color: 'inherit', component: 'div', classes: { root: classes.contributionYouWroteLabel } },
59
- react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.notification.undeletedFor.youWrote", defaultMessage: "ui.notification.undeletedFor.youWrote" })),
60
- react_1.default.createElement(react_core_1.Link, { to: scRoutingContext.url(react_core_1.SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(notificationObject[contributionType])), className: classes.contributionText },
61
- react_1.default.createElement(material_1.Typography, { component: 'span', variant: "body2" }, (0, contribution_1.getContributionSnippet)(notificationObject[contributionType]))))) }, rest)));
54
+ return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${constants_1.PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: (0, jsx_runtime_1.jsx)(material_1.Avatar, Object.assign({ variant: "circular", classes: { root: classes.flagIcon } }, { children: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "outlined_flag" }) })), primary: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: isSnippetTemplate ? ((0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(notificationObject[contributionType])) }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ component: "div", color: "inherit", className: classes.flagText }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: `ui.notification.kindlyNoticeFlag.kindlyNoticeFlagSnippet`, defaultMessage: `ui.notification.kindlyNoticeFlag.kindlyNoticeFlagSnippet` }) })) }))) : ((0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ component: "div", color: "inherit", className: classes.flagText }, { children: intl.formatMessage(messages[(0, utils_1.camelCase)(notificationObject.type)], { b: (...chunks) => (0, jsx_runtime_1.jsx)("strong", { children: chunks }) }) }))) }), secondary: (template === types_1.SCNotificationObjectTemplateType.DETAIL || template === types_1.SCNotificationObjectTemplateType.SNIPPET) && ((0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at, className: classes.activeAt })), footer: !isSnippetTemplate && ((0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ className: classes.contributionWrap }, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: 'body2', color: 'inherit', component: 'div', classes: { root: classes.contributionYouWroteLabel } }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.notification.undeletedFor.youWrote", defaultMessage: "ui.notification.undeletedFor.youWrote" }) })), (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(notificationObject[contributionType])), className: classes.contributionText }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ component: 'span', variant: "body2" }, { children: (0, contribution_1.getContributionSnippet)(notificationObject[contributionType]) })) }))] }))) }, rest)));
62
55
  }
63
56
  exports.default = KindlyNoticeFlagNotification;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- const react_1 = tslib_1.__importDefault(require("react"));
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const styles_1 = require("@mui/material/styles");
6
6
  const material_1 = require("@mui/material");
7
7
  const Icon_1 = tslib_1.__importDefault(require("@mui/material/Icon"));
@@ -71,20 +71,8 @@ function KindlyNoticeForNotification(props) {
71
71
  /**
72
72
  * Renders root object
73
73
  */
74
- return (react_1.default.createElement(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${constants_1.PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: react_1.default.createElement(material_1.Avatar, { variant: "circular", classes: { root: classes.flagIcon } },
75
- react_1.default.createElement(Icon_1.default, null, "outlined_flag")), primary: react_1.default.createElement(react_1.default.Fragment, null, isSnippetTemplate ? (react_1.default.createElement(react_core_1.Link, { to: scRoutingContext.url(react_core_1.SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(notificationObject[contributionType])) },
76
- react_1.default.createElement(material_1.Typography, { component: "div", color: "inherit", className: classes.flagText },
77
- react_1.default.createElement(react_intl_1.FormattedMessage, { id: `ui.notification.kindlyNoticeFor.${(0, utils_1.camelCase)(notificationObject.type)}Snippet`, defaultMessage: `ui.notification.kindlyNoticeFor.${(0, utils_1.camelCase)(notificationObject.type)}Snippet` })))) : (react_1.default.createElement(material_1.Typography, { component: "div", color: "inherit", className: classes.flagText }, intl.formatMessage(messages[(0, utils_1.camelCase)(notificationObject.type)], { b: (...chunks) => react_1.default.createElement("strong", null, chunks) })))), secondary: (template === types_1.SCNotificationObjectTemplateType.DETAIL || template === types_1.SCNotificationObjectTemplateType.SNIPPET) && (react_1.default.createElement(DateTimeAgo_1.default, { date: notificationObject.active_at, className: classes.activeAt })), footer: isSnippetTemplate ? null : (react_1.default.createElement(react_1.default.Fragment, null,
78
- react_1.default.createElement(material_1.Box, { className: classes.contributionWrap },
79
- react_1.default.createElement(material_1.Typography, { variant: 'body2', color: 'inherit', component: 'div', classes: { root: classes.contributionYouWroteLabel } }, intl.formatMessage(messages.youWrote, {
80
- b: (...chunks) => react_1.default.createElement("strong", null, chunks)
81
- })),
82
- react_1.default.createElement(react_core_1.Link, { to: scRoutingContext.url(react_core_1.SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(notificationObject[contributionType])), className: classes.contributionText },
83
- react_1.default.createElement(material_1.Typography, { component: 'span', variant: "body2" }, (0, contribution_1.getContributionSnippet)(notificationObject[contributionType])))),
84
- template === types_1.SCNotificationObjectTemplateType.TOAST && (react_1.default.createElement(material_1.Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 },
85
- react_1.default.createElement(DateTimeAgo_1.default, { date: notificationObject.active_at }),
86
- react_1.default.createElement(material_1.Typography, { color: "primary", component: 'div' },
87
- react_1.default.createElement(react_core_1.Link, { to: scRoutingContext.url(react_core_1.SCRoutes[`${notificationObject[contributionType]['type'].toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(notificationObject[contributionType])) },
88
- react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.userToastNotifications.viewContribution", defaultMessage: 'ui.userToastNotifications.viewContribution' }))))))) }, rest)));
74
+ return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${constants_1.PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: (0, jsx_runtime_1.jsx)(material_1.Avatar, Object.assign({ variant: "circular", classes: { root: classes.flagIcon } }, { children: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "outlined_flag" }) })), primary: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: isSnippetTemplate ? ((0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(notificationObject[contributionType])) }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ component: "div", color: "inherit", className: classes.flagText }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: `ui.notification.kindlyNoticeFor.${(0, utils_1.camelCase)(notificationObject.type)}Snippet`, defaultMessage: `ui.notification.kindlyNoticeFor.${(0, utils_1.camelCase)(notificationObject.type)}Snippet` }) })) }))) : ((0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ component: "div", color: "inherit", className: classes.flagText }, { children: intl.formatMessage(messages[(0, utils_1.camelCase)(notificationObject.type)], { b: (...chunks) => (0, jsx_runtime_1.jsx)("strong", { children: chunks }) }) }))) }), secondary: (template === types_1.SCNotificationObjectTemplateType.DETAIL || template === types_1.SCNotificationObjectTemplateType.SNIPPET) && ((0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at, className: classes.activeAt })), footer: isSnippetTemplate ? null : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ className: classes.contributionWrap }, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: 'body2', color: 'inherit', component: 'div', classes: { root: classes.contributionYouWroteLabel } }, { children: intl.formatMessage(messages.youWrote, {
75
+ b: (...chunks) => (0, jsx_runtime_1.jsx)("strong", { children: chunks })
76
+ }) })), (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(notificationObject[contributionType])), className: classes.contributionText }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ component: 'span', variant: "body2" }, { children: (0, contribution_1.getContributionSnippet)(notificationObject[contributionType]) })) }))] })), template === types_1.SCNotificationObjectTemplateType.TOAST && ((0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: [(0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at }), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ color: "primary", component: 'div' }, { children: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes[`${notificationObject[contributionType]['type'].toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(notificationObject[contributionType])) }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userToastNotifications.viewContribution", defaultMessage: 'ui.userToastNotifications.viewContribution' }) })) }))] })))] })) }, rest)));
89
77
  }
90
78
  exports.default = KindlyNoticeForNotification;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
4
5
  const react_1 = tslib_1.__importStar(require("react"));
5
6
  const styles_1 = require("@mui/material/styles");
6
7
  const material_1 = require("@mui/material");
@@ -52,28 +53,12 @@ function MentionNotification(props) {
52
53
  /**
53
54
  * Renders root object
54
55
  */
55
- return (react_1.default.createElement(react_1.default.Fragment, null,
56
- react_1.default.createElement(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${constants_1.PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: react_1.default.createElement(react_core_1.Link, Object.assign({}, (!notificationObject[objectType].author.deleted && {
57
- to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject[objectType].author)
58
- }), { onClick: notificationObject[objectType].author.deleted ? () => setOpenAlert(true) : null }),
59
- react_1.default.createElement(UserAvatar_1.default, { hide: !notificationObject[objectType].author.community_badge, smaller: true },
60
- react_1.default.createElement(material_1.Avatar, { alt: notificationObject[objectType].author.username, variant: "circular", src: notificationObject[objectType].author.avatar, classes: { root: classes.avatar } }))), primary: react_1.default.createElement(material_1.Typography, { component: "div", color: "inherit", className: classes.mentionText },
61
- react_1.default.createElement(react_core_1.Link, Object.assign({}, (!notificationObject[objectType].author.deleted && {
56
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${constants_1.PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({}, (!notificationObject[objectType].author.deleted && {
62
57
  to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject[objectType].author)
63
- }), { onClick: notificationObject[objectType].author.deleted ? () => setOpenAlert(true) : null, className: classes.username }), notificationObject[objectType].author.username),
64
- ' ',
65
- intl.formatMessage(messages.quotedYouOn, {
66
- b: (...chunks) => react_1.default.createElement("strong", null, chunks)
67
- }),
68
- ' '), secondary: react_1.default.createElement(react_1.default.Fragment, null,
69
- react_1.default.createElement(react_core_1.Link, { to: scRoutingContext.url(react_core_1.SCRoutes[`${objectType.toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(notificationObject[objectType])) },
70
- react_1.default.createElement(material_1.Typography, { component: 'span', variant: "body2", className: classes.contributionText }, (0, contribution_1.getContributionSnippet)(notificationObject[objectType]))),
71
- (template === types_1.SCNotificationObjectTemplateType.DETAIL || template === types_1.SCNotificationObjectTemplateType.SNIPPET) && (react_1.default.createElement(material_1.Box, null,
72
- react_1.default.createElement(DateTimeAgo_1.default, { date: notificationObject.active_at, className: classes.activeAt })))), footer: template === types_1.SCNotificationObjectTemplateType.TOAST && (react_1.default.createElement(material_1.Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 },
73
- react_1.default.createElement(DateTimeAgo_1.default, { date: notificationObject.active_at }),
74
- react_1.default.createElement(material_1.Typography, { color: "primary", component: 'div' },
75
- react_1.default.createElement(react_core_1.Link, { to: scRoutingContext.url(react_core_1.SCRoutes[`${contribution.type.toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(contribution)) },
76
- react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.userToastNotifications.viewContribution", defaultMessage: 'ui.userToastNotifications.viewContribution' }))))) }, rest)),
77
- openAlert && react_1.default.createElement(UserDeletedSnackBar_1.default, { open: openAlert, handleClose: () => setOpenAlert(false) })));
58
+ }), { onClick: notificationObject[objectType].author.deleted ? () => setOpenAlert(true) : null }, { children: (0, jsx_runtime_1.jsx)(UserAvatar_1.default, Object.assign({ hide: !notificationObject[objectType].author.community_badge, smaller: true }, { children: (0, jsx_runtime_1.jsx)(material_1.Avatar, { alt: notificationObject[objectType].author.username, variant: "circular", src: notificationObject[objectType].author.avatar, classes: { root: classes.avatar } }) })) })), primary: (0, jsx_runtime_1.jsxs)(material_1.Typography, Object.assign({ component: "div", color: "inherit", className: classes.mentionText }, { children: [(0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({}, (!notificationObject[objectType].author.deleted && {
59
+ to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject[objectType].author)
60
+ }), { onClick: notificationObject[objectType].author.deleted ? () => setOpenAlert(true) : null, className: classes.username }, { children: notificationObject[objectType].author.username })), ' ', intl.formatMessage(messages.quotedYouOn, {
61
+ b: (...chunks) => (0, jsx_runtime_1.jsx)("strong", { children: chunks })
62
+ }), ' '] })), secondary: (0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [(0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes[`${objectType.toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(notificationObject[objectType])) }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ component: 'span', variant: "body2", className: classes.contributionText }, { children: (0, contribution_1.getContributionSnippet)(notificationObject[objectType]) })) })), (template === types_1.SCNotificationObjectTemplateType.DETAIL || template === types_1.SCNotificationObjectTemplateType.SNIPPET) && ((0, jsx_runtime_1.jsx)(material_1.Box, { children: (0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at, className: classes.activeAt }) }))] }), footer: template === types_1.SCNotificationObjectTemplateType.TOAST && ((0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: [(0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at }), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ color: "primary", component: 'div' }, { children: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes[`${contribution.type.toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(contribution)) }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userToastNotifications.viewContribution", defaultMessage: 'ui.userToastNotifications.viewContribution' }) })) }))] }))) }, rest)), openAlert && (0, jsx_runtime_1.jsx)(UserDeletedSnackBar_1.default, { open: openAlert, handleClose: () => setOpenAlert(false) })] }));
78
63
  }
79
64
  exports.default = MentionNotification;