@selfcommunity/react-ui 0.8.0-live.40 → 0.8.0-live.41

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 (563) hide show
  1. package/lib/cjs/components/AccountChangeMailValidation/AccountChangeMailValidation.js +1 -1
  2. package/lib/cjs/components/AccountDataPortability/AccountDataPortability.js +4 -4
  3. package/lib/cjs/components/AccountDataPortabilityButton/AccountDataPortabilityButton.js +1 -1
  4. package/lib/cjs/components/AccountDelete/AccountDelete.js +3 -3
  5. package/lib/cjs/components/AccountDeleteButton/AccountDeleteButton.js +1 -1
  6. package/lib/cjs/components/AccountRecover/AccountRecover.js +2 -2
  7. package/lib/cjs/components/AccountReset/AccountReset.js +1 -1
  8. package/lib/cjs/components/AccountVerify/AccountVerify.js +1 -1
  9. package/lib/cjs/components/BottomNavigation/BottomNavigation.js +2 -2
  10. package/lib/cjs/components/BroadcastMessages/BroadcastMessages.js +1 -1
  11. package/lib/cjs/components/BroadcastMessages/Message.js +4 -4
  12. package/lib/cjs/components/BroadcastMessages/Skeleton.js +1 -1
  13. package/lib/cjs/components/Categories/Categories.js +1 -1
  14. package/lib/cjs/components/Categories/Skeleton.js +1 -1
  15. package/lib/cjs/components/CategoriesPopularWidget/CategoriesPopularWidget.js +1 -1
  16. package/lib/cjs/components/CategoriesSuggestionWidget/CategoriesSuggestionWidget.js +1 -1
  17. package/lib/cjs/components/CategoriesSuggestionWidget/Skeleton.js +1 -1
  18. package/lib/cjs/components/Category/Category.js +1 -1
  19. package/lib/cjs/components/Category/Skeleton.js +1 -1
  20. package/lib/cjs/components/CategoryAutocomplete/CategoryAutocomplete.js +1 -1
  21. package/lib/cjs/components/CategoryFollowersButton/CategoryFollowersButton.js +1 -1
  22. package/lib/cjs/components/CategoryHeader/CategoryHeader.js +1 -1
  23. package/lib/cjs/components/CategoryHeader/Skeleton.js +1 -1
  24. package/lib/cjs/components/CategoryTrendingFeedWidget/CategoryTrendingFeedWidget.js +2 -2
  25. package/lib/cjs/components/CategoryTrendingFeedWidget/Skeleton.js +1 -1
  26. package/lib/cjs/components/CategoryTrendingUsersWidget/CategoryTrendingUsersWidget.js +1 -1
  27. package/lib/cjs/components/CategoryTrendingUsersWidget/Skeleton.js +1 -1
  28. package/lib/cjs/components/ChangeCover/ChangeCover.js +6 -6
  29. package/lib/cjs/components/ChangeGroupCover/ChangeGroupCover.js +1 -1
  30. package/lib/cjs/components/ChangeGroupPicture/ChangeGroupPicture.js +1 -1
  31. package/lib/cjs/components/ChangePicture/ChangePictureDialog/ChangePictureDialog.js +2 -2
  32. package/lib/cjs/components/CommentObject/CommentObject.js +4 -4
  33. package/lib/cjs/components/CommentObjectReply/CommentObjectReply.js +1 -1
  34. package/lib/cjs/components/CommentsFeedObject/CommentsFeedObject.js +4 -4
  35. package/lib/cjs/components/CommentsObject/CommentsObject.js +6 -6
  36. package/lib/cjs/components/Composer/Attributes/Attributes.js +2 -2
  37. package/lib/cjs/components/Composer/Composer.js +4 -4
  38. package/lib/cjs/components/Composer/Content/ContentDiscussion/ContentDiscussion.js +3 -3
  39. package/lib/cjs/components/Composer/Content/ContentPoll/ContentPoll.js +6 -6
  40. package/lib/cjs/components/Composer/Content/ContentPost/ContentPost.js +1 -1
  41. package/lib/cjs/components/Composer/Layer/AudienceLayer/AudienceLayer.js +5 -5
  42. package/lib/cjs/components/Composer/Layer/CategoryLayer/CategoryLayer.js +1 -1
  43. package/lib/cjs/components/Composer/Layer/CloseLayer/CloseLayer.js +1 -1
  44. package/lib/cjs/components/Composer/Layer/LocationLayer/LocationLayer.js +1 -1
  45. package/lib/cjs/components/Composer/Skeleton.js +1 -1
  46. package/lib/cjs/components/Composer/TypeSwitchButtonGroup/TypeSwitchButtonGroup.js +1 -1
  47. package/lib/cjs/components/ComposerIconButton/ComposerIconButton.js +2 -2
  48. package/lib/cjs/components/ConsentSolution/ConsentSolution.js +4 -4
  49. package/lib/cjs/components/ConsentSolution/Skeleton.js +1 -1
  50. package/lib/cjs/components/CreateEventButton/CreateEventButton.js +1 -1
  51. package/lib/cjs/components/CreateEventWidget/CreateEventWidget.js +1 -1
  52. package/lib/cjs/components/CreateEventWidget/Skeleton.js +1 -1
  53. package/lib/cjs/components/CreateLiveStreamDialog/CreateLiveStreamDialog.js +1 -1
  54. package/lib/cjs/components/CreateLiveStreamDialog/LiveStreamSelector/LiveStreamSelector.js +4 -4
  55. package/lib/cjs/components/CreateLiveStreamDialog/types.js +2 -2
  56. package/lib/cjs/components/CustomAdv/CustomAdv.js +2 -2
  57. package/lib/cjs/components/Editor/Editor.js +1 -1
  58. package/lib/cjs/components/Editor/nodes/ImageNode.js +1 -1
  59. package/lib/cjs/components/Editor/plugins/EmojiPlugin.js +2 -2
  60. package/lib/cjs/components/Editor/plugins/FloatingLinkPlugin.js +4 -4
  61. package/lib/cjs/components/Editor/plugins/HashtagPlugin.js +3 -3
  62. package/lib/cjs/components/Editor/plugins/ImagePlugin.js +4 -4
  63. package/lib/cjs/components/Editor/plugins/MentionsPlugin.js +4 -4
  64. package/lib/cjs/components/Editor/plugins/ToolbarPlugin.js +5 -5
  65. package/lib/cjs/components/Editor/shared/useDecorators.js +1 -1
  66. package/lib/cjs/components/Event/Event.js +4 -4
  67. package/lib/cjs/components/Event/Skeleton.js +3 -3
  68. package/lib/cjs/components/EventAutocomplete/EventAutocomplete.js +1 -1
  69. package/lib/cjs/components/EventForm/EventAddress.js +2 -2
  70. package/lib/cjs/components/EventForm/EventForm.js +14 -14
  71. package/lib/cjs/components/EventForm/UploadEventCover.js +1 -1
  72. package/lib/cjs/components/EventHeader/EventHeader.js +2 -2
  73. package/lib/cjs/components/EventHeader/Skeleton.js +1 -1
  74. package/lib/cjs/components/EventInfoWidget/EventInfoWidget.js +1 -1
  75. package/lib/cjs/components/EventInfoWidget/Skeleton.js +1 -1
  76. package/lib/cjs/components/EventInviteButton/EventInviteButton.js +2 -2
  77. package/lib/cjs/components/EventLocationWidget/EventLocationWidget.js +3 -3
  78. package/lib/cjs/components/EventLocationWidget/Skeleton.js +1 -1
  79. package/lib/cjs/components/EventMediaWidget/EventMediaWidget.js +4 -4
  80. package/lib/cjs/components/EventMediaWidget/Skeleton.js +1 -1
  81. package/lib/cjs/components/EventMediaWidget/TriggerButton.js +3 -3
  82. package/lib/cjs/components/EventMembersWidget/EventMembersWidget.js +3 -3
  83. package/lib/cjs/components/EventMembersWidget/Skeleton.js +1 -1
  84. package/lib/cjs/components/EventMembersWidget/TabContentComponent.js +3 -3
  85. package/lib/cjs/components/EventMembersWidget/types.js +1 -1
  86. package/lib/cjs/components/EventParticipantsButton/EventParticipantsButton.js +1 -1
  87. package/lib/cjs/components/EventSubscribeButton/EventSubscribeButton.js +2 -2
  88. package/lib/cjs/components/Events/Events.js +6 -6
  89. package/lib/cjs/components/Events/LocationEventsFilter.js +1 -1
  90. package/lib/cjs/components/Events/Skeleton.js +1 -1
  91. package/lib/cjs/components/Feed/Feed.js +4 -4
  92. package/lib/cjs/components/Feed/Skeleton.js +1 -1
  93. package/lib/cjs/components/FeedObject/Actions/Actions.js +1 -1
  94. package/lib/cjs/components/FeedObject/Actions/Comment/Comment.js +3 -3
  95. package/lib/cjs/components/FeedObject/Actions/Follow/Follow.js +1 -1
  96. package/lib/cjs/components/FeedObject/Actions/Share/Share.js +5 -5
  97. package/lib/cjs/components/FeedObject/Actions/Share/SharesDialog/SharesDialog.js +1 -1
  98. package/lib/cjs/components/FeedObject/Activities/Activities.js +1 -1
  99. package/lib/cjs/components/FeedObject/Activities/ActivitiesMenu/ActivitiesMenu.js +4 -4
  100. package/lib/cjs/components/FeedObject/Activities/RelevantActivities/CommentActivity/CommentActivity.js +3 -3
  101. package/lib/cjs/components/FeedObject/Activities/RelevantActivities/FollowActivity/FollowActivity.js +2 -2
  102. package/lib/cjs/components/FeedObject/Activities/RelevantActivities/PollVoteActivity/PollVoteActivity.js +2 -2
  103. package/lib/cjs/components/FeedObject/Activities/RelevantActivities/RelevantActivities.js +1 -1
  104. package/lib/cjs/components/FeedObject/Activities/RelevantActivities/VoteUpActivity/VoteUpActivity.js +2 -2
  105. package/lib/cjs/components/FeedObject/Contributors/Contributors.js +1 -1
  106. package/lib/cjs/components/FeedObject/Contributors/Skeleton.js +1 -1
  107. package/lib/cjs/components/FeedObject/FeedObject.js +11 -11
  108. package/lib/cjs/components/FeedObject/Poll/Choice/Choice.js +2 -2
  109. package/lib/cjs/components/FeedObject/Poll/Poll.js +1 -1
  110. package/lib/cjs/components/FeedUpdatesWidget/FeedUpdatesWidget.js +1 -1
  111. package/lib/cjs/components/Footer/Footer.js +1 -1
  112. package/lib/cjs/components/Group/Group.js +2 -2
  113. package/lib/cjs/components/Group/Skeleton.js +1 -1
  114. package/lib/cjs/components/GroupActionsMenu/index.js +4 -4
  115. package/lib/cjs/components/GroupAutocomplete/GroupAutocomplete.js +1 -1
  116. package/lib/cjs/components/GroupForm/GroupForm.js +9 -9
  117. package/lib/cjs/components/GroupHeader/GroupHeader.js +2 -2
  118. package/lib/cjs/components/GroupHeader/Skeleton.js +1 -1
  119. package/lib/cjs/components/GroupInfoWidget/GroupInfoWidget.js +6 -6
  120. package/lib/cjs/components/GroupInviteButton/GroupInviteButton.js +2 -2
  121. package/lib/cjs/components/GroupInvitedWidget/GroupInvitedWidget.js +1 -1
  122. package/lib/cjs/components/GroupMembersButton/GroupMembersButton.js +1 -1
  123. package/lib/cjs/components/GroupMembersWidget/GroupMembersWidget.js +5 -5
  124. package/lib/cjs/components/GroupRequestsWidget/GroupRequestsWidget.js +1 -1
  125. package/lib/cjs/components/GroupSettingsIconButton/GroupSettingsIconButton.js +5 -5
  126. package/lib/cjs/components/Groups/Groups.js +3 -3
  127. package/lib/cjs/components/Groups/Skeleton.js +1 -1
  128. package/lib/cjs/components/Incubator/Incubator.js +4 -4
  129. package/lib/cjs/components/Incubator/Skeleton.js +1 -1
  130. package/lib/cjs/components/IncubatorDetail/IncubatorDetail.js +2 -2
  131. package/lib/cjs/components/IncubatorListWidget/CreateIncubatorDialog/CreateIncubatorDialog.js +2 -2
  132. package/lib/cjs/components/IncubatorListWidget/IncubatorListWidget.js +2 -2
  133. package/lib/cjs/components/IncubatorListWidget/Skeleton.js +1 -1
  134. package/lib/cjs/components/IncubatorSuggestionWidget/IncubatorSuggestionWidget.js +1 -1
  135. package/lib/cjs/components/IncubatorSuggestionWidget/Skeleton.js +1 -1
  136. package/lib/cjs/components/InlineComposerWidget/InlineComposerWidget.js +1 -1
  137. package/lib/cjs/components/InlineComposerWidget/Skeleton.js +1 -1
  138. package/lib/cjs/components/LiveStreamForm/LiveStreamForm.js +6 -6
  139. package/lib/cjs/components/LiveStreamRoom/LiveStreamRoom.js +1 -1
  140. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/LiveStreamVideoConference.js +3 -1
  141. package/lib/cjs/components/LocationAutocomplete/LocationAutocomplete.js +1 -1
  142. package/lib/cjs/components/LoyaltyProgramWidget/LoyaltyProgramWidget.js +1 -1
  143. package/lib/cjs/components/LoyaltyProgramWidget/Skeleton.js +1 -1
  144. package/lib/cjs/components/MyEventsWidget/MyEventsWidget.js +1 -1
  145. package/lib/cjs/components/MyEventsWidget/Skeleton.js +1 -1
  146. package/lib/cjs/components/NavigationMenuIconButton/DefaultDrawerContent.js +1 -1
  147. package/lib/cjs/components/NavigationMenuIconButton/DefaultHeaderContent.js +1 -1
  148. package/lib/cjs/components/NavigationMenuIconButton/NavigationMenuDrawer.js +1 -1
  149. package/lib/cjs/components/NavigationMenuIconButton/NavigationMenuIconButton.js +1 -1
  150. package/lib/cjs/components/NavigationSettingsIconButton/NavigationSettingsIconButton.js +29 -29
  151. package/lib/cjs/components/NavigationToolbar/NavigationToolbar.js +7 -7
  152. package/lib/cjs/components/NavigationToolbar/NotificationMenu.js +1 -1
  153. package/lib/cjs/components/NavigationToolbar/Skeleton.js +1 -1
  154. package/lib/cjs/components/NavigationToolbarMobile/NavigationToolbarMobile.js +4 -4
  155. package/lib/cjs/components/NavigationToolbarMobile/Skeleton.js +1 -1
  156. package/lib/cjs/components/Notification/CollapsedFor/CollapsedFor.js +1 -1
  157. package/lib/cjs/components/Notification/Comment/Comment.js +3 -3
  158. package/lib/cjs/components/Notification/Contribution/Contribution.js +3 -3
  159. package/lib/cjs/components/Notification/ContributionFollow/ContributionFollow.js +2 -2
  160. package/lib/cjs/components/Notification/DeletedFor/DeletedFor.js +1 -1
  161. package/lib/cjs/components/Notification/Event/Event.js +9 -9
  162. package/lib/cjs/components/Notification/Group/Group.js +8 -8
  163. package/lib/cjs/components/Notification/IncubatorApproved/IncubatorApproved.js +3 -3
  164. package/lib/cjs/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.js +1 -1
  165. package/lib/cjs/components/Notification/KindlyNoticeFor/KindlyNoticeFor.js +2 -2
  166. package/lib/cjs/components/Notification/Mention/Mention.js +3 -3
  167. package/lib/cjs/components/Notification/Notification.js +8 -8
  168. package/lib/cjs/components/Notification/PrivateMessage/PrivateMessage.js +10 -10
  169. package/lib/cjs/components/Notification/Skeleton.js +1 -1
  170. package/lib/cjs/components/Notification/UndeletedFor/UndeletedFor.js +1 -1
  171. package/lib/cjs/components/Notification/UserBlocked/UserBlocked.js +3 -3
  172. package/lib/cjs/components/Notification/UserConnection/UserConnection.js +2 -2
  173. package/lib/cjs/components/Notification/UserFollow/UserFollow.js +2 -2
  174. package/lib/cjs/components/Notification/VoteUp/VoteUp.js +2 -2
  175. package/lib/cjs/components/OnBoardingWidget/ActionsButton.js +5 -5
  176. package/lib/cjs/components/OnBoardingWidget/OnBoardingWidget.js +7 -7
  177. package/lib/cjs/components/OnBoardingWidget/Skeleton.js +1 -1
  178. package/lib/cjs/components/OnBoardingWidget/Steps/App/App.js +9 -9
  179. package/lib/cjs/components/OnBoardingWidget/Steps/Appearance/Appearance.js +4 -4
  180. package/lib/cjs/components/OnBoardingWidget/Steps/Category/Category.js +5 -5
  181. package/lib/cjs/components/OnBoardingWidget/Steps/Content/Content.js +1 -1
  182. package/lib/cjs/components/OnBoardingWidget/Steps/Invite/Invite.js +1 -1
  183. package/lib/cjs/components/OnBoardingWidget/Steps/Profile/Profile.js +1 -1
  184. package/lib/cjs/components/PlatformWidget/PlatformWidget.js +8 -8
  185. package/lib/cjs/components/PlatformWidget/Skeleton.js +1 -1
  186. package/lib/cjs/components/PollSuggestionWidget/PollSnippet/PollSnippet.js +1 -1
  187. package/lib/cjs/components/PollSuggestionWidget/PollSuggestionWidget.js +1 -1
  188. package/lib/cjs/components/PollSuggestionWidget/Skeleton.js +1 -1
  189. package/lib/cjs/components/PrivateMessageComponent/PrivateMessageComponent.js +4 -4
  190. package/lib/cjs/components/PrivateMessageComponent/Skeleton.js +1 -1
  191. package/lib/cjs/components/PrivateMessageEditor/MessageMediaUploader/index.js +5 -5
  192. package/lib/cjs/components/PrivateMessageEditor/PrivateMessageEditor.js +6 -6
  193. package/lib/cjs/components/PrivateMessageSettingsIconButton/PrivateMessageSettingsIconButton.js +7 -7
  194. package/lib/cjs/components/PrivateMessageSnippetItem/PrivateMessageSnippetItem.js +3 -3
  195. package/lib/cjs/components/PrivateMessageSnippetItem/Skeleton.js +1 -1
  196. package/lib/cjs/components/PrivateMessageSnippets/PrivateMessageSnippets.js +4 -4
  197. package/lib/cjs/components/PrivateMessageSnippets/Skeleton.js +1 -1
  198. package/lib/cjs/components/PrivateMessageThread/PrivateMessageThread.js +6 -6
  199. package/lib/cjs/components/PrivateMessageThread/Skeleton.js +1 -1
  200. package/lib/cjs/components/PrivateMessageThreadItem/PrivateMessageThreadItem.js +6 -6
  201. package/lib/cjs/components/RelatedEventsWidget/RelatedEventsWidget.js +1 -1
  202. package/lib/cjs/components/RelatedEventsWidget/Skeleton.js +1 -1
  203. package/lib/cjs/components/RelatedFeedObjectsWidget/RelatedFeedObjectsWidget.js +1 -1
  204. package/lib/cjs/components/SearchAutocomplete/SearchAutocomplete.js +2 -2
  205. package/lib/cjs/components/SnippetNotifications/Skeleton.js +1 -1
  206. package/lib/cjs/components/SnippetNotifications/SnippetNotifications.js +3 -3
  207. package/lib/cjs/components/SuggestedEventsWidget/Arrow.js +2 -2
  208. package/lib/cjs/components/SuggestedEventsWidget/Skeleton.js +1 -1
  209. package/lib/cjs/components/SuggestedEventsWidget/SuggestedEventsWidget.js +2 -2
  210. package/lib/cjs/components/User/Skeleton.js +1 -1
  211. package/lib/cjs/components/User/User.js +2 -2
  212. package/lib/cjs/components/UserActionIconButton/UserActionIconButton.js +9 -9
  213. package/lib/cjs/components/UserConnectionsRequestsSentWidget/UserConnectionsRequestsSentWidget.js +1 -1
  214. package/lib/cjs/components/UserConnectionsRequestsWidget/UserConnectionsRequestsWidget.js +1 -1
  215. package/lib/cjs/components/UserConnectionsWidget/UserConnectionsWidget.js +1 -1
  216. package/lib/cjs/components/UserCounters/UserCounters.js +5 -5
  217. package/lib/cjs/components/UserFollowedCategoriesWidget/UserFollowedCategoriesWidget.js +1 -1
  218. package/lib/cjs/components/UserFollowedUsersWidget/UserFollowedUsersWidget.js +1 -1
  219. package/lib/cjs/components/UserFollowersWidget/UserFollowersWidget.js +1 -1
  220. package/lib/cjs/components/UserInfo/Skeleton.js +1 -1
  221. package/lib/cjs/components/UserInfo/UserInfo.js +3 -3
  222. package/lib/cjs/components/UserInfoDialog/UserInfoDialog.js +1 -1
  223. package/lib/cjs/components/UserProfileBlocked/UserProfileBlocked.js +1 -1
  224. package/lib/cjs/components/UserProfileEdit/Section/Account.js +1 -1
  225. package/lib/cjs/components/UserProfileEdit/Section/AccountCredentials.js +6 -6
  226. package/lib/cjs/components/UserProfileEdit/Section/PublicInfo.js +8 -8
  227. package/lib/cjs/components/UserProfileEdit/Section/Settings.js +3 -3
  228. package/lib/cjs/components/UserProfileEdit/Section/SettingsSkeleton.js +1 -1
  229. package/lib/cjs/components/UserProfileEdit/Skeleton.js +1 -1
  230. package/lib/cjs/components/UserProfileEdit/UserProfileEdit.js +1 -1
  231. package/lib/cjs/components/UserProfileHeader/Skeleton.js +1 -1
  232. package/lib/cjs/components/UserProfileHeader/UserProfileHeader.js +1 -1
  233. package/lib/cjs/components/UserSocialAssociation/UserSocialAssociation.js +1 -1
  234. package/lib/cjs/components/UserSubscribedGroupsWidget/Skeleton.js +1 -1
  235. package/lib/cjs/components/UserSubscribedGroupsWidget/UserSubscribedGroupsWidget.js +2 -2
  236. package/lib/cjs/components/UserSuggestionWidget/Skeleton.js +1 -1
  237. package/lib/cjs/components/UserSuggestionWidget/UserSuggestionWidget.js +1 -1
  238. package/lib/cjs/components/VoteAudienceButton/VoteAudienceButton.js +5 -5
  239. package/lib/cjs/components/VoteButton/VoteButton.js +2 -2
  240. package/lib/cjs/constants/PubSub.js +3 -3
  241. package/lib/cjs/shared/AutoPlayer/index.js +2 -2
  242. package/lib/cjs/shared/BaseDialog/BaseDialog.js +2 -2
  243. package/lib/cjs/shared/BaseItem/BaseItem.js +2 -2
  244. package/lib/cjs/shared/BaseItemButton/BaseItemButton.js +2 -2
  245. package/lib/cjs/shared/Calendar/index.js +1 -1
  246. package/lib/cjs/shared/ConfirmDialog/ConfirmDialog.js +1 -1
  247. package/lib/cjs/shared/ConsentSolutionSwitch/index.js +3 -3
  248. package/lib/cjs/shared/ContributionActionsMenu/index.js +10 -10
  249. package/lib/cjs/shared/CustomSnackMessage/index.js +1 -1
  250. package/lib/cjs/shared/DateTimeAgo/index.js +1 -1
  251. package/lib/cjs/shared/EmojiPicker/EmojiPicker.js +1 -1
  252. package/lib/cjs/shared/EventActionsMenu/index.js +5 -5
  253. package/lib/cjs/shared/EventInfoDetails/index.js +3 -3
  254. package/lib/cjs/shared/InfiniteScroll/index.js +2 -2
  255. package/lib/cjs/shared/InfiniteScroll/stories/InfiniteScrollWithHeight.js +1 -1
  256. package/lib/cjs/shared/InfiniteScroll/stories/PullDownToRefreshInfScroll.js +1 -1
  257. package/lib/cjs/shared/InfiniteScroll/stories/ScrollableTargetFixedInfScroll.js +2 -2
  258. package/lib/cjs/shared/InfiniteScroll/stories/ScrollableTargetInfScroll.js +1 -1
  259. package/lib/cjs/shared/InfiniteScroll/stories/ScrolleableTop.js +2 -2
  260. package/lib/cjs/shared/InfiniteScroll/stories/WindowInfiniteScrollComponent.js +1 -1
  261. package/lib/cjs/shared/LanguageSwitcher/index.js +1 -1
  262. package/lib/cjs/shared/MarkRead/MarkRead.js +1 -1
  263. package/lib/cjs/shared/Media/File/DisplayComponent.js +11 -11
  264. package/lib/cjs/shared/Media/File/PreviewComponent.js +3 -3
  265. package/lib/cjs/shared/Media/File/TriggerButton.js +7 -7
  266. package/lib/cjs/shared/Media/Link/DisplayComponent.js +3 -3
  267. package/lib/cjs/shared/Media/Link/LayerComponent.js +1 -1
  268. package/lib/cjs/shared/Media/Link/PreviewComponent.js +1 -1
  269. package/lib/cjs/shared/Media/Link/TriggerButton.js +1 -1
  270. package/lib/cjs/shared/Media/Link/UrlTextField/index.js +3 -3
  271. package/lib/cjs/shared/Media/Share/DisplayComponent.js +1 -1
  272. package/lib/cjs/shared/MetadataField/MetadataField.js +1 -1
  273. package/lib/cjs/shared/NotificationItem/NotificationItem.js +1 -1
  274. package/lib/cjs/shared/PasswordTextField/index.js +1 -1
  275. package/lib/cjs/shared/ProgressBar/index.js +1 -1
  276. package/lib/cjs/shared/StickyBox/index.js +1 -1
  277. package/lib/cjs/shared/Tags/index.js +6 -6
  278. package/lib/cjs/shared/UserDeletedSnackBar/UserDeletedSnackBar.js +1 -1
  279. package/lib/cjs/shared/VirtualizedScroller/VirtualScrollerChild.js +1 -1
  280. package/lib/cjs/types/broadcastMessage.js +1 -1
  281. package/lib/cjs/types/comments.js +1 -1
  282. package/lib/cjs/types/event.js +1 -1
  283. package/lib/cjs/types/feedObject.js +2 -2
  284. package/lib/cjs/types/notification.js +1 -1
  285. package/lib/cjs/types/user.js +3 -3
  286. package/lib/esm/components/AccountChangeMailValidation/AccountChangeMailValidation.js +1 -1
  287. package/lib/esm/components/AccountDataPortability/AccountDataPortability.js +4 -4
  288. package/lib/esm/components/AccountDataPortabilityButton/AccountDataPortabilityButton.js +1 -1
  289. package/lib/esm/components/AccountDelete/AccountDelete.js +3 -3
  290. package/lib/esm/components/AccountDeleteButton/AccountDeleteButton.js +1 -1
  291. package/lib/esm/components/AccountRecover/AccountRecover.js +2 -2
  292. package/lib/esm/components/AccountReset/AccountReset.js +1 -1
  293. package/lib/esm/components/AccountVerify/AccountVerify.js +1 -1
  294. package/lib/esm/components/BottomNavigation/BottomNavigation.js +2 -2
  295. package/lib/esm/components/BroadcastMessages/BroadcastMessages.js +1 -1
  296. package/lib/esm/components/BroadcastMessages/Message.js +4 -4
  297. package/lib/esm/components/BroadcastMessages/Skeleton.js +1 -1
  298. package/lib/esm/components/Categories/Categories.js +1 -1
  299. package/lib/esm/components/Categories/Skeleton.js +1 -1
  300. package/lib/esm/components/CategoriesPopularWidget/CategoriesPopularWidget.js +1 -1
  301. package/lib/esm/components/CategoriesSuggestionWidget/CategoriesSuggestionWidget.js +1 -1
  302. package/lib/esm/components/CategoriesSuggestionWidget/Skeleton.js +1 -1
  303. package/lib/esm/components/Category/Category.js +1 -1
  304. package/lib/esm/components/Category/Skeleton.js +1 -1
  305. package/lib/esm/components/CategoryAutocomplete/CategoryAutocomplete.js +1 -1
  306. package/lib/esm/components/CategoryFollowersButton/CategoryFollowersButton.js +1 -1
  307. package/lib/esm/components/CategoryHeader/CategoryHeader.js +1 -1
  308. package/lib/esm/components/CategoryHeader/Skeleton.js +1 -1
  309. package/lib/esm/components/CategoryTrendingFeedWidget/CategoryTrendingFeedWidget.js +2 -2
  310. package/lib/esm/components/CategoryTrendingFeedWidget/Skeleton.js +1 -1
  311. package/lib/esm/components/CategoryTrendingUsersWidget/CategoryTrendingUsersWidget.js +1 -1
  312. package/lib/esm/components/CategoryTrendingUsersWidget/Skeleton.js +1 -1
  313. package/lib/esm/components/ChangeCover/ChangeCover.js +6 -6
  314. package/lib/esm/components/ChangeGroupCover/ChangeGroupCover.js +1 -1
  315. package/lib/esm/components/ChangeGroupPicture/ChangeGroupPicture.js +1 -1
  316. package/lib/esm/components/ChangePicture/ChangePictureDialog/ChangePictureDialog.js +2 -2
  317. package/lib/esm/components/CommentObject/CommentObject.js +4 -4
  318. package/lib/esm/components/CommentObjectReply/CommentObjectReply.js +1 -1
  319. package/lib/esm/components/CommentsFeedObject/CommentsFeedObject.js +4 -4
  320. package/lib/esm/components/CommentsObject/CommentsObject.js +6 -6
  321. package/lib/esm/components/Composer/Attributes/Attributes.js +2 -2
  322. package/lib/esm/components/Composer/Composer.js +4 -4
  323. package/lib/esm/components/Composer/Content/ContentDiscussion/ContentDiscussion.js +3 -3
  324. package/lib/esm/components/Composer/Content/ContentPoll/ContentPoll.js +6 -6
  325. package/lib/esm/components/Composer/Content/ContentPost/ContentPost.js +1 -1
  326. package/lib/esm/components/Composer/Layer/AudienceLayer/AudienceLayer.js +4 -4
  327. package/lib/esm/components/Composer/Layer/CategoryLayer/CategoryLayer.js +1 -1
  328. package/lib/esm/components/Composer/Layer/CloseLayer/CloseLayer.js +1 -1
  329. package/lib/esm/components/Composer/Layer/LocationLayer/LocationLayer.js +1 -1
  330. package/lib/esm/components/Composer/Skeleton.js +1 -1
  331. package/lib/esm/components/Composer/TypeSwitchButtonGroup/TypeSwitchButtonGroup.js +1 -1
  332. package/lib/esm/components/ComposerIconButton/ComposerIconButton.js +2 -2
  333. package/lib/esm/components/ConsentSolution/ConsentSolution.js +4 -4
  334. package/lib/esm/components/ConsentSolution/Skeleton.js +1 -1
  335. package/lib/esm/components/CreateEventButton/CreateEventButton.js +1 -1
  336. package/lib/esm/components/CreateEventWidget/CreateEventWidget.js +1 -1
  337. package/lib/esm/components/CreateEventWidget/Skeleton.js +1 -1
  338. package/lib/esm/components/CreateLiveStreamDialog/CreateLiveStreamDialog.js +1 -1
  339. package/lib/esm/components/CreateLiveStreamDialog/LiveStreamSelector/LiveStreamSelector.js +4 -4
  340. package/lib/esm/components/CustomAdv/CustomAdv.js +2 -2
  341. package/lib/esm/components/Editor/Editor.js +1 -1
  342. package/lib/esm/components/Editor/nodes/ImageNode.js +1 -1
  343. package/lib/esm/components/Editor/plugins/EmojiPlugin.js +2 -2
  344. package/lib/esm/components/Editor/plugins/FloatingLinkPlugin.js +4 -4
  345. package/lib/esm/components/Editor/plugins/HashtagPlugin.js +3 -3
  346. package/lib/esm/components/Editor/plugins/ImagePlugin.js +4 -4
  347. package/lib/esm/components/Editor/plugins/MentionsPlugin.js +4 -4
  348. package/lib/esm/components/Editor/plugins/ToolbarPlugin.js +5 -5
  349. package/lib/esm/components/Editor/shared/useDecorators.js +1 -1
  350. package/lib/esm/components/Event/Event.js +4 -4
  351. package/lib/esm/components/Event/Skeleton.js +3 -3
  352. package/lib/esm/components/EventAutocomplete/EventAutocomplete.js +1 -1
  353. package/lib/esm/components/EventForm/EventAddress.js +2 -2
  354. package/lib/esm/components/EventForm/EventForm.js +14 -14
  355. package/lib/esm/components/EventForm/UploadEventCover.js +1 -1
  356. package/lib/esm/components/EventHeader/EventHeader.js +2 -2
  357. package/lib/esm/components/EventHeader/Skeleton.js +1 -1
  358. package/lib/esm/components/EventInfoWidget/EventInfoWidget.js +1 -1
  359. package/lib/esm/components/EventInfoWidget/Skeleton.js +1 -1
  360. package/lib/esm/components/EventInviteButton/EventInviteButton.js +2 -2
  361. package/lib/esm/components/EventLocationWidget/EventLocationWidget.js +3 -3
  362. package/lib/esm/components/EventLocationWidget/Skeleton.js +1 -1
  363. package/lib/esm/components/EventMediaWidget/EventMediaWidget.js +4 -4
  364. package/lib/esm/components/EventMediaWidget/Skeleton.js +1 -1
  365. package/lib/esm/components/EventMediaWidget/TriggerButton.js +3 -3
  366. package/lib/esm/components/EventMembersWidget/EventMembersWidget.js +3 -3
  367. package/lib/esm/components/EventMembersWidget/Skeleton.js +1 -1
  368. package/lib/esm/components/EventMembersWidget/TabContentComponent.js +3 -3
  369. package/lib/esm/components/EventParticipantsButton/EventParticipantsButton.js +1 -1
  370. package/lib/esm/components/EventSubscribeButton/EventSubscribeButton.js +2 -2
  371. package/lib/esm/components/Events/Events.js +6 -6
  372. package/lib/esm/components/Events/LocationEventsFilter.js +1 -1
  373. package/lib/esm/components/Events/Skeleton.js +1 -1
  374. package/lib/esm/components/Feed/Feed.js +4 -4
  375. package/lib/esm/components/Feed/Skeleton.js +1 -1
  376. package/lib/esm/components/FeedObject/Actions/Actions.js +1 -1
  377. package/lib/esm/components/FeedObject/Actions/Comment/Comment.js +3 -3
  378. package/lib/esm/components/FeedObject/Actions/Follow/Follow.js +1 -1
  379. package/lib/esm/components/FeedObject/Actions/Share/Share.js +5 -5
  380. package/lib/esm/components/FeedObject/Actions/Share/SharesDialog/SharesDialog.js +1 -1
  381. package/lib/esm/components/FeedObject/Activities/Activities.js +1 -1
  382. package/lib/esm/components/FeedObject/Activities/ActivitiesMenu/ActivitiesMenu.js +4 -4
  383. package/lib/esm/components/FeedObject/Activities/RelevantActivities/CommentActivity/CommentActivity.js +3 -3
  384. package/lib/esm/components/FeedObject/Activities/RelevantActivities/FollowActivity/FollowActivity.js +2 -2
  385. package/lib/esm/components/FeedObject/Activities/RelevantActivities/PollVoteActivity/PollVoteActivity.js +2 -2
  386. package/lib/esm/components/FeedObject/Activities/RelevantActivities/RelevantActivities.js +1 -1
  387. package/lib/esm/components/FeedObject/Activities/RelevantActivities/VoteUpActivity/VoteUpActivity.js +2 -2
  388. package/lib/esm/components/FeedObject/Contributors/Contributors.js +1 -1
  389. package/lib/esm/components/FeedObject/Contributors/Skeleton.js +1 -1
  390. package/lib/esm/components/FeedObject/FeedObject.js +11 -11
  391. package/lib/esm/components/FeedObject/Poll/Choice/Choice.js +2 -2
  392. package/lib/esm/components/FeedObject/Poll/Poll.js +1 -1
  393. package/lib/esm/components/FeedUpdatesWidget/FeedUpdatesWidget.js +1 -1
  394. package/lib/esm/components/Footer/Footer.js +1 -1
  395. package/lib/esm/components/Group/Group.js +2 -2
  396. package/lib/esm/components/Group/Skeleton.js +1 -1
  397. package/lib/esm/components/GroupActionsMenu/index.js +4 -4
  398. package/lib/esm/components/GroupAutocomplete/GroupAutocomplete.js +1 -1
  399. package/lib/esm/components/GroupForm/GroupForm.js +9 -9
  400. package/lib/esm/components/GroupHeader/GroupHeader.js +2 -2
  401. package/lib/esm/components/GroupHeader/Skeleton.js +1 -1
  402. package/lib/esm/components/GroupInfoWidget/GroupInfoWidget.js +6 -6
  403. package/lib/esm/components/GroupInviteButton/GroupInviteButton.js +2 -2
  404. package/lib/esm/components/GroupInvitedWidget/GroupInvitedWidget.js +1 -1
  405. package/lib/esm/components/GroupMembersButton/GroupMembersButton.js +1 -1
  406. package/lib/esm/components/GroupMembersWidget/GroupMembersWidget.js +5 -5
  407. package/lib/esm/components/GroupRequestsWidget/GroupRequestsWidget.js +1 -1
  408. package/lib/esm/components/GroupSettingsIconButton/GroupSettingsIconButton.js +5 -5
  409. package/lib/esm/components/Groups/Groups.js +3 -3
  410. package/lib/esm/components/Groups/Skeleton.js +1 -1
  411. package/lib/esm/components/Incubator/Incubator.js +4 -4
  412. package/lib/esm/components/Incubator/Skeleton.js +1 -1
  413. package/lib/esm/components/IncubatorDetail/IncubatorDetail.js +2 -2
  414. package/lib/esm/components/IncubatorListWidget/CreateIncubatorDialog/CreateIncubatorDialog.js +2 -2
  415. package/lib/esm/components/IncubatorListWidget/IncubatorListWidget.js +2 -2
  416. package/lib/esm/components/IncubatorListWidget/Skeleton.js +1 -1
  417. package/lib/esm/components/IncubatorSuggestionWidget/IncubatorSuggestionWidget.js +1 -1
  418. package/lib/esm/components/IncubatorSuggestionWidget/Skeleton.js +1 -1
  419. package/lib/esm/components/InlineComposerWidget/InlineComposerWidget.js +1 -1
  420. package/lib/esm/components/InlineComposerWidget/Skeleton.js +1 -1
  421. package/lib/esm/components/LiveStreamForm/LiveStreamForm.js +6 -6
  422. package/lib/esm/components/LiveStreamRoom/LiveStreamRoom.js +1 -1
  423. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/LiveStreamVideoConference.js +3 -1
  424. package/lib/esm/components/LocationAutocomplete/LocationAutocomplete.js +1 -1
  425. package/lib/esm/components/LoyaltyProgramWidget/LoyaltyProgramWidget.js +1 -1
  426. package/lib/esm/components/LoyaltyProgramWidget/Skeleton.js +1 -1
  427. package/lib/esm/components/MyEventsWidget/MyEventsWidget.js +1 -1
  428. package/lib/esm/components/MyEventsWidget/Skeleton.js +1 -1
  429. package/lib/esm/components/NavigationMenuIconButton/DefaultDrawerContent.js +1 -1
  430. package/lib/esm/components/NavigationMenuIconButton/DefaultHeaderContent.js +1 -1
  431. package/lib/esm/components/NavigationMenuIconButton/NavigationMenuDrawer.js +1 -1
  432. package/lib/esm/components/NavigationMenuIconButton/NavigationMenuIconButton.js +1 -1
  433. package/lib/esm/components/NavigationSettingsIconButton/NavigationSettingsIconButton.js +29 -29
  434. package/lib/esm/components/NavigationToolbar/NavigationToolbar.js +7 -7
  435. package/lib/esm/components/NavigationToolbar/NotificationMenu.js +1 -1
  436. package/lib/esm/components/NavigationToolbar/Skeleton.js +1 -1
  437. package/lib/esm/components/NavigationToolbarMobile/NavigationToolbarMobile.js +4 -4
  438. package/lib/esm/components/NavigationToolbarMobile/Skeleton.js +1 -1
  439. package/lib/esm/components/Notification/CollapsedFor/CollapsedFor.js +1 -1
  440. package/lib/esm/components/Notification/Comment/Comment.js +3 -3
  441. package/lib/esm/components/Notification/Contribution/Contribution.js +3 -3
  442. package/lib/esm/components/Notification/ContributionFollow/ContributionFollow.js +2 -2
  443. package/lib/esm/components/Notification/DeletedFor/DeletedFor.js +1 -1
  444. package/lib/esm/components/Notification/Event/Event.js +9 -9
  445. package/lib/esm/components/Notification/Group/Group.js +8 -8
  446. package/lib/esm/components/Notification/IncubatorApproved/IncubatorApproved.js +3 -3
  447. package/lib/esm/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.js +1 -1
  448. package/lib/esm/components/Notification/KindlyNoticeFor/KindlyNoticeFor.js +2 -2
  449. package/lib/esm/components/Notification/Mention/Mention.js +3 -3
  450. package/lib/esm/components/Notification/Notification.js +8 -8
  451. package/lib/esm/components/Notification/PrivateMessage/PrivateMessage.js +10 -10
  452. package/lib/esm/components/Notification/Skeleton.js +1 -1
  453. package/lib/esm/components/Notification/UndeletedFor/UndeletedFor.js +1 -1
  454. package/lib/esm/components/Notification/UserBlocked/UserBlocked.js +3 -3
  455. package/lib/esm/components/Notification/UserConnection/UserConnection.js +2 -2
  456. package/lib/esm/components/Notification/UserFollow/UserFollow.js +2 -2
  457. package/lib/esm/components/Notification/VoteUp/VoteUp.js +2 -2
  458. package/lib/esm/components/OnBoardingWidget/ActionsButton.js +5 -5
  459. package/lib/esm/components/OnBoardingWidget/OnBoardingWidget.js +7 -7
  460. package/lib/esm/components/OnBoardingWidget/Skeleton.js +1 -1
  461. package/lib/esm/components/OnBoardingWidget/Steps/App/App.js +9 -9
  462. package/lib/esm/components/OnBoardingWidget/Steps/Appearance/Appearance.js +4 -4
  463. package/lib/esm/components/OnBoardingWidget/Steps/Category/Category.js +5 -5
  464. package/lib/esm/components/OnBoardingWidget/Steps/Content/Content.js +1 -1
  465. package/lib/esm/components/OnBoardingWidget/Steps/Invite/Invite.js +1 -1
  466. package/lib/esm/components/OnBoardingWidget/Steps/Profile/Profile.js +1 -1
  467. package/lib/esm/components/PlatformWidget/PlatformWidget.js +8 -8
  468. package/lib/esm/components/PlatformWidget/Skeleton.js +1 -1
  469. package/lib/esm/components/PollSuggestionWidget/PollSnippet/PollSnippet.js +1 -1
  470. package/lib/esm/components/PollSuggestionWidget/PollSuggestionWidget.js +1 -1
  471. package/lib/esm/components/PollSuggestionWidget/Skeleton.js +1 -1
  472. package/lib/esm/components/PrivateMessageComponent/PrivateMessageComponent.js +4 -4
  473. package/lib/esm/components/PrivateMessageComponent/Skeleton.js +1 -1
  474. package/lib/esm/components/PrivateMessageEditor/MessageMediaUploader/index.js +5 -5
  475. package/lib/esm/components/PrivateMessageEditor/PrivateMessageEditor.js +6 -6
  476. package/lib/esm/components/PrivateMessageSettingsIconButton/PrivateMessageSettingsIconButton.js +7 -7
  477. package/lib/esm/components/PrivateMessageSnippetItem/PrivateMessageSnippetItem.js +3 -3
  478. package/lib/esm/components/PrivateMessageSnippetItem/Skeleton.js +1 -1
  479. package/lib/esm/components/PrivateMessageSnippets/PrivateMessageSnippets.js +4 -4
  480. package/lib/esm/components/PrivateMessageSnippets/Skeleton.js +1 -1
  481. package/lib/esm/components/PrivateMessageThread/PrivateMessageThread.js +6 -6
  482. package/lib/esm/components/PrivateMessageThread/Skeleton.js +1 -1
  483. package/lib/esm/components/PrivateMessageThreadItem/PrivateMessageThreadItem.js +6 -6
  484. package/lib/esm/components/RelatedEventsWidget/RelatedEventsWidget.js +1 -1
  485. package/lib/esm/components/RelatedEventsWidget/Skeleton.js +1 -1
  486. package/lib/esm/components/RelatedFeedObjectsWidget/RelatedFeedObjectsWidget.js +1 -1
  487. package/lib/esm/components/SearchAutocomplete/SearchAutocomplete.js +2 -2
  488. package/lib/esm/components/SnippetNotifications/Skeleton.js +1 -1
  489. package/lib/esm/components/SnippetNotifications/SnippetNotifications.js +3 -3
  490. package/lib/esm/components/SuggestedEventsWidget/Arrow.js +2 -2
  491. package/lib/esm/components/SuggestedEventsWidget/Skeleton.js +1 -1
  492. package/lib/esm/components/SuggestedEventsWidget/SuggestedEventsWidget.js +2 -2
  493. package/lib/esm/components/User/Skeleton.js +1 -1
  494. package/lib/esm/components/User/User.js +2 -2
  495. package/lib/esm/components/UserActionIconButton/UserActionIconButton.js +9 -9
  496. package/lib/esm/components/UserConnectionsRequestsSentWidget/UserConnectionsRequestsSentWidget.js +1 -1
  497. package/lib/esm/components/UserConnectionsRequestsWidget/UserConnectionsRequestsWidget.js +1 -1
  498. package/lib/esm/components/UserConnectionsWidget/UserConnectionsWidget.js +1 -1
  499. package/lib/esm/components/UserCounters/UserCounters.js +5 -5
  500. package/lib/esm/components/UserFollowedCategoriesWidget/UserFollowedCategoriesWidget.js +1 -1
  501. package/lib/esm/components/UserFollowedUsersWidget/UserFollowedUsersWidget.js +1 -1
  502. package/lib/esm/components/UserFollowersWidget/UserFollowersWidget.js +1 -1
  503. package/lib/esm/components/UserInfo/Skeleton.js +1 -1
  504. package/lib/esm/components/UserInfo/UserInfo.js +3 -3
  505. package/lib/esm/components/UserInfoDialog/UserInfoDialog.js +1 -1
  506. package/lib/esm/components/UserProfileBlocked/UserProfileBlocked.js +1 -1
  507. package/lib/esm/components/UserProfileEdit/Section/Account.js +1 -1
  508. package/lib/esm/components/UserProfileEdit/Section/AccountCredentials.js +6 -6
  509. package/lib/esm/components/UserProfileEdit/Section/PublicInfo.js +8 -8
  510. package/lib/esm/components/UserProfileEdit/Section/Settings.js +3 -3
  511. package/lib/esm/components/UserProfileEdit/Section/SettingsSkeleton.js +1 -1
  512. package/lib/esm/components/UserProfileEdit/Skeleton.js +1 -1
  513. package/lib/esm/components/UserProfileEdit/UserProfileEdit.js +1 -1
  514. package/lib/esm/components/UserProfileHeader/Skeleton.js +1 -1
  515. package/lib/esm/components/UserProfileHeader/UserProfileHeader.js +1 -1
  516. package/lib/esm/components/UserSocialAssociation/UserSocialAssociation.js +1 -1
  517. package/lib/esm/components/UserSubscribedGroupsWidget/Skeleton.js +1 -1
  518. package/lib/esm/components/UserSubscribedGroupsWidget/UserSubscribedGroupsWidget.js +2 -2
  519. package/lib/esm/components/UserSuggestionWidget/Skeleton.js +1 -1
  520. package/lib/esm/components/UserSuggestionWidget/UserSuggestionWidget.js +1 -1
  521. package/lib/esm/components/VoteAudienceButton/VoteAudienceButton.js +5 -5
  522. package/lib/esm/components/VoteButton/VoteButton.js +2 -2
  523. package/lib/esm/shared/AutoPlayer/index.js +2 -2
  524. package/lib/esm/shared/BaseDialog/BaseDialog.js +2 -2
  525. package/lib/esm/shared/BaseItem/BaseItem.js +2 -2
  526. package/lib/esm/shared/BaseItemButton/BaseItemButton.js +2 -2
  527. package/lib/esm/shared/Calendar/index.js +1 -1
  528. package/lib/esm/shared/ConfirmDialog/ConfirmDialog.js +1 -1
  529. package/lib/esm/shared/ConsentSolutionSwitch/index.js +3 -3
  530. package/lib/esm/shared/ContributionActionsMenu/index.js +10 -10
  531. package/lib/esm/shared/CustomSnackMessage/index.js +1 -1
  532. package/lib/esm/shared/DateTimeAgo/index.js +1 -1
  533. package/lib/esm/shared/EmojiPicker/EmojiPicker.js +1 -1
  534. package/lib/esm/shared/EventActionsMenu/index.js +5 -5
  535. package/lib/esm/shared/EventInfoDetails/index.js +3 -3
  536. package/lib/esm/shared/InfiniteScroll/index.js +2 -2
  537. package/lib/esm/shared/InfiniteScroll/stories/InfiniteScrollWithHeight.js +1 -1
  538. package/lib/esm/shared/InfiniteScroll/stories/PullDownToRefreshInfScroll.js +1 -1
  539. package/lib/esm/shared/InfiniteScroll/stories/ScrollableTargetFixedInfScroll.js +2 -2
  540. package/lib/esm/shared/InfiniteScroll/stories/ScrollableTargetInfScroll.js +1 -1
  541. package/lib/esm/shared/InfiniteScroll/stories/ScrolleableTop.js +2 -2
  542. package/lib/esm/shared/InfiniteScroll/stories/WindowInfiniteScrollComponent.js +1 -1
  543. package/lib/esm/shared/LanguageSwitcher/index.js +1 -1
  544. package/lib/esm/shared/MarkRead/MarkRead.js +1 -1
  545. package/lib/esm/shared/Media/File/DisplayComponent.js +11 -11
  546. package/lib/esm/shared/Media/File/PreviewComponent.js +3 -3
  547. package/lib/esm/shared/Media/File/TriggerButton.js +7 -7
  548. package/lib/esm/shared/Media/Link/DisplayComponent.js +3 -3
  549. package/lib/esm/shared/Media/Link/LayerComponent.js +1 -1
  550. package/lib/esm/shared/Media/Link/PreviewComponent.js +1 -1
  551. package/lib/esm/shared/Media/Link/TriggerButton.js +1 -1
  552. package/lib/esm/shared/Media/Link/UrlTextField/index.js +3 -3
  553. package/lib/esm/shared/Media/Share/DisplayComponent.js +1 -1
  554. package/lib/esm/shared/MetadataField/MetadataField.js +1 -1
  555. package/lib/esm/shared/NotificationItem/NotificationItem.js +1 -1
  556. package/lib/esm/shared/PasswordTextField/index.js +1 -1
  557. package/lib/esm/shared/ProgressBar/index.js +1 -1
  558. package/lib/esm/shared/StickyBox/index.js +1 -1
  559. package/lib/esm/shared/Tags/index.js +5 -5
  560. package/lib/esm/shared/UserDeletedSnackBar/UserDeletedSnackBar.js +1 -1
  561. package/lib/esm/shared/VirtualizedScroller/VirtualScrollerChild.js +1 -1
  562. package/lib/umd/react-ui.js +1 -1
  563. package/package.json +8 -8
@@ -72,13 +72,13 @@ export default function ContributionNotification(props) {
72
72
  */
73
73
  return (_jsxs(_Fragment, { children: [_jsx(Root, Object.assign({ id: id, className: classNames(classes.root, className, `${PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: _jsx(Link, Object.assign({}, (!notificationObject[contributionType].author.deleted && {
74
74
  to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject[contributionType].author)
75
- }), { onClick: notificationObject[contributionType].author.deleted ? () => setOpenAlert(true) : null, children: _jsx(UserAvatar, { hide: !notificationObject[contributionType].author.community_badge, smaller: true, children: _jsx(Avatar, { alt: notificationObject[contributionType].author.username, variant: "circular", src: notificationObject[contributionType].author.avatar, classes: { root: classes.avatar } }) }) })), primary: _jsxs(_Fragment, { children: [_jsx(Link, Object.assign({}, (!notificationObject[contributionType].author.deleted && {
75
+ }), { onClick: notificationObject[contributionType].author.deleted ? () => setOpenAlert(true) : null }, { children: _jsx(UserAvatar, Object.assign({ hide: !notificationObject[contributionType].author.community_badge, smaller: true }, { children: _jsx(Avatar, { alt: notificationObject[contributionType].author.username, variant: "circular", src: notificationObject[contributionType].author.avatar, classes: { root: classes.avatar } }) })) })), primary: _jsxs(_Fragment, { children: [_jsx(Link, Object.assign({}, (!notificationObject[contributionType].author.deleted && {
76
76
  to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject[contributionType].author)
77
- }), { onClick: notificationObject[contributionType].author.deleted ? () => setOpenAlert(true) : null, className: classes.username, children: notificationObject[contributionType].author.username })), ' ', template === SCNotificationObjectTemplateType.SNIPPET ? (_jsx(_Fragment, { children: notificationObject[contributionType]['type'] === SCContributionType.POST ||
77
+ }), { onClick: notificationObject[contributionType].author.deleted ? () => setOpenAlert(true) : null, className: classes.username }, { children: notificationObject[contributionType].author.username })), ' ', template === SCNotificationObjectTemplateType.SNIPPET ? (_jsx(_Fragment, { children: notificationObject[contributionType]['type'] === SCContributionType.POST ||
78
78
  notificationObject[contributionType]['type'] === SCContributionType.STATUS
79
79
  ? intl.formatMessage(messages.postOrStatusSnippet, { contribution: notificationObject[contributionType]['type'] })
80
80
  : intl.formatMessage(messages.discussionSnippet) })) : (_jsx(_Fragment, { children: notificationObject[contributionType]['type'] === SCContributionType.POST ||
81
81
  notificationObject[contributionType]['type'] === SCContributionType.STATUS
82
82
  ? intl.formatMessage(messages.postOrStatus, { contribution: notificationObject[contributionType]['type'] })
83
- : intl.formatMessage(messages.discussion) }))] }), secondary: _jsxs(React.Fragment, { children: [template === SCNotificationObjectTemplateType.SNIPPET && (_jsx(Link, { to: scRoutingContext.url(SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], getRouteData(notificationObject[contributionType])), children: _jsx(Typography, { variant: "body2", className: classes.contributionText, component: 'div', children: getContributionSnippet(notificationObject[contributionType]) }) })), template === SCNotificationObjectTemplateType.DETAIL && (_jsxs(Stack, { direction: "row", justifyContent: "flex-start", alignItems: "center", spacing: 1, children: [_jsx(DateTimeAgo, { date: notificationObject.active_at, className: classes.activeAt }), _jsx(Bullet, { className: classes.bullet }), _jsx(VoteButton, { className: classes.voteButton, variant: "text", size: "small", contributionId: notificationObject[contributionType].id, contributionType: contributionType, contribution: notificationObject[contributionType], onVote: handleVote })] })), template === SCNotificationObjectTemplateType.SNIPPET && (_jsx(DateTimeAgo, { date: notificationObject.active_at, className: classes.activeAt }))] }), footer: template === SCNotificationObjectTemplateType.TOAST && (_jsxs(Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2, children: [_jsx(DateTimeAgo, { date: notificationObject.active_at }), _jsx(Typography, { color: "primary", component: 'div', children: _jsx(Link, { to: scRoutingContext.url(SCRoutes[`${notificationObject[contributionType]['type'].toUpperCase()}_ROUTE_NAME`], getRouteData(notificationObject[contributionType])), children: _jsx(FormattedMessage, { id: "ui.userToastNotifications.viewContribution", defaultMessage: 'ui.userToastNotifications.viewContribution' }) }) })] })) }, rest)), openAlert && _jsx(UserDeletedSnackBar, { open: openAlert, handleClose: () => setOpenAlert(false) })] }));
83
+ : intl.formatMessage(messages.discussion) }))] }), secondary: _jsxs(React.Fragment, { children: [template === SCNotificationObjectTemplateType.SNIPPET && (_jsx(Link, Object.assign({ to: scRoutingContext.url(SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], getRouteData(notificationObject[contributionType])) }, { children: _jsx(Typography, Object.assign({ variant: "body2", className: classes.contributionText, component: 'div' }, { children: getContributionSnippet(notificationObject[contributionType]) })) }))), template === SCNotificationObjectTemplateType.DETAIL && (_jsxs(Stack, Object.assign({ direction: "row", justifyContent: "flex-start", alignItems: "center", spacing: 1 }, { children: [_jsx(DateTimeAgo, { date: notificationObject.active_at, className: classes.activeAt }), _jsx(Bullet, { className: classes.bullet }), _jsx(VoteButton, { className: classes.voteButton, variant: "text", size: "small", contributionId: notificationObject[contributionType].id, contributionType: contributionType, contribution: notificationObject[contributionType], onVote: handleVote })] }))), template === SCNotificationObjectTemplateType.SNIPPET && (_jsx(DateTimeAgo, { date: notificationObject.active_at, className: classes.activeAt }))] }), footer: template === SCNotificationObjectTemplateType.TOAST && (_jsxs(Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: [_jsx(DateTimeAgo, { date: notificationObject.active_at }), _jsx(Typography, Object.assign({ color: "primary", component: 'div' }, { children: _jsx(Link, Object.assign({ to: scRoutingContext.url(SCRoutes[`${notificationObject[contributionType]['type'].toUpperCase()}_ROUTE_NAME`], getRouteData(notificationObject[contributionType])) }, { children: _jsx(FormattedMessage, { id: "ui.userToastNotifications.viewContribution", defaultMessage: 'ui.userToastNotifications.viewContribution' }) })) }))] }))) }, rest)), openAlert && _jsx(UserDeletedSnackBar, { open: openAlert, handleClose: () => setOpenAlert(false) })] }));
84
84
  }
@@ -50,7 +50,7 @@ export default function ContributionFollowNotification(props) {
50
50
  /**
51
51
  * Renders root object
52
52
  */
53
- return (_jsxs(_Fragment, { children: [_jsx(Root, Object.assign({ id: id, className: classNames(classes.root, className, `${PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: _jsx(Link, Object.assign({}, (!notificationObject.user.deleted && { to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.user) }), { onClick: notificationObject.user.deleted ? () => setOpenAlert(true) : null, children: _jsx(UserAvatar, { hide: !notificationObject.user.community_badge, smaller: true, children: _jsx(Avatar, { alt: notificationObject.user.username, variant: "circular", src: notificationObject.user.avatar, classes: { root: classes.avatar } }) }) })), primary: _jsxs(Typography, { component: "span", color: "inherit", className: classes.followText, children: [_jsx(Link, Object.assign({}, (!notificationObject.user.deleted && { to: scRoutingContext.url(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, {
53
+ return (_jsxs(_Fragment, { children: [_jsx(Root, Object.assign({ id: id, className: classNames(classes.root, className, `${PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: _jsx(Link, Object.assign({}, (!notificationObject.user.deleted && { to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.user) }), { onClick: notificationObject.user.deleted ? () => setOpenAlert(true) : null }, { children: _jsx(UserAvatar, Object.assign({ hide: !notificationObject.user.community_badge, smaller: true }, { children: _jsx(Avatar, { alt: notificationObject.user.username, variant: "circular", src: notificationObject.user.avatar, classes: { root: classes.avatar } }) })) })), primary: _jsxs(Typography, Object.assign({ component: "span", color: "inherit", className: classes.followText }, { children: [_jsx(Link, Object.assign({}, (!notificationObject.user.deleted && { to: scRoutingContext.url(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, {
54
54
  b: (...chunks) => _jsx("strong", { children: chunks })
55
- })] }), secondary: _jsxs(React.Fragment, { children: [template === SCNotificationObjectTemplateType.SNIPPET && (_jsx(_Fragment, { children: _jsx(Link, { to: scRoutingContext.url(SCRoutes[`${notificationObject[contributionType]['type'].toUpperCase()}_ROUTE_NAME`], getRouteData(notificationObject[contributionType])), children: _jsx(Typography, { variant: "body2", className: classes.contributionText, children: getContributionSnippet(notificationObject[contributionType]) }) }) })), (template === SCNotificationObjectTemplateType.DETAIL || template === SCNotificationObjectTemplateType.SNIPPET) && (_jsx("div", { children: _jsx(DateTimeAgo, { date: notificationObject.active_at, className: classes.activeAt }) }))] }), footer: template === SCNotificationObjectTemplateType.TOAST && (_jsxs(Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2, children: [_jsx(DateTimeAgo, { date: notificationObject.active_at }), _jsx(Typography, { color: "primary", component: 'div', children: _jsx(Link, { to: scRoutingContext.url(SCRoutes[`${notificationObject[contributionType]['type'].toUpperCase()}_ROUTE_NAME`], getRouteData(notificationObject[contributionType])), children: _jsx(FormattedMessage, { id: "ui.userToastNotifications.viewContribution", defaultMessage: 'ui.userToastNotifications.viewContribution' }) }) })] })) }, rest)), openAlert && _jsx(UserDeletedSnackBar, { open: openAlert, handleClose: () => setOpenAlert(false) })] }));
55
+ })] })), secondary: _jsxs(React.Fragment, { children: [template === SCNotificationObjectTemplateType.SNIPPET && (_jsx(_Fragment, { children: _jsx(Link, Object.assign({ to: scRoutingContext.url(SCRoutes[`${notificationObject[contributionType]['type'].toUpperCase()}_ROUTE_NAME`], getRouteData(notificationObject[contributionType])) }, { children: _jsx(Typography, Object.assign({ variant: "body2", className: classes.contributionText }, { children: getContributionSnippet(notificationObject[contributionType]) })) })) })), (template === SCNotificationObjectTemplateType.DETAIL || template === SCNotificationObjectTemplateType.SNIPPET) && (_jsx("div", { children: _jsx(DateTimeAgo, { date: notificationObject.active_at, className: classes.activeAt }) }))] }), footer: template === SCNotificationObjectTemplateType.TOAST && (_jsxs(Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: [_jsx(DateTimeAgo, { date: notificationObject.active_at }), _jsx(Typography, Object.assign({ color: "primary", component: 'div' }, { children: _jsx(Link, Object.assign({ to: scRoutingContext.url(SCRoutes[`${notificationObject[contributionType]['type'].toUpperCase()}_ROUTE_NAME`], getRouteData(notificationObject[contributionType])) }, { children: _jsx(FormattedMessage, { id: "ui.userToastNotifications.viewContribution", defaultMessage: 'ui.userToastNotifications.viewContribution' }) })) }))] }))) }, rest)), openAlert && _jsx(UserDeletedSnackBar, { open: openAlert, handleClose: () => setOpenAlert(false) })] }));
56
56
  }
@@ -67,5 +67,5 @@ export default function DeletedForNotification(props) {
67
67
  /**
68
68
  * Renders root object
69
69
  */
70
- return (_jsx(Root, Object.assign({ id: id, className: classNames(classes.root, className, `${PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: _jsx(Avatar, { variant: "circular", classes: { root: classes.flagIcon }, children: _jsx(Icon, { children: "outlined_flag" }) }), primary: _jsx(_Fragment, { children: isSnippetTemplate ? (_jsx(Link, { to: scRoutingContext.url(SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], getRouteData(notificationObject[contributionType])), children: _jsx(Typography, { component: "div", color: "inherit", className: classes.flagText, children: _jsx(FormattedMessage, { id: `ui.notification.deletedFor.${camelCase(notificationObject.type)}Snippet`, defaultMessage: `ui.notification.deletedFor.${camelCase(notificationObject.type)}Snippet` }) }) })) : (_jsxs(_Fragment, { children: [template === SCNotificationObjectTemplateType.DETAIL && notificationObject.is_new && _jsx(NewChip, {}), _jsx(Typography, { component: "div", color: "inherit", className: classes.flagText, children: intl.formatMessage(messages[camelCase(notificationObject.type)], { b: (...chunks) => _jsx("strong", { children: chunks }) }) })] })) }), secondary: (template === SCNotificationObjectTemplateType.DETAIL || template === SCNotificationObjectTemplateType.SNIPPET) && (_jsx(DateTimeAgo, { date: notificationObject.active_at, className: classes.activeAt })), footer: isSnippetTemplate ? null : (_jsxs(_Fragment, { children: [_jsxs(Box, { className: classes.contributionWrap, children: [_jsx(Typography, { variant: 'body2', color: 'inherit', classes: { root: classes.contributionYouWroteLabel }, children: _jsx(FormattedMessage, { id: "ui.notification.deletedFor.youWrote", defaultMessage: "ui.notification.deletedFor.youWrote" }) }), _jsx(Link, { to: scRoutingContext.url(SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], getRouteData(notificationObject[contributionType])), className: classes.contributionText, children: _jsx(Typography, { component: 'span', color: 'inherit', variant: "body2", children: getContributionSnippet(notificationObject[contributionType]) }) })] }), template === SCNotificationObjectTemplateType.TOAST && (_jsxs(Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2, children: [_jsx(DateTimeAgo, { date: notificationObject.active_at }), _jsx(Typography, { color: "primary", component: 'div', children: _jsx(Link, { to: scRoutingContext.url(SCRoutes[`${notificationObject[contributionType]['type'].toUpperCase()}_ROUTE_NAME`], getRouteData(notificationObject[contributionType])), children: _jsx(FormattedMessage, { id: "ui.userToastNotifications.viewContribution", defaultMessage: 'ui.userToastNotifications.viewContribution' }) }) })] }))] })) }, rest)));
70
+ return (_jsx(Root, Object.assign({ id: id, className: classNames(classes.root, className, `${PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: _jsx(Avatar, Object.assign({ variant: "circular", classes: { root: classes.flagIcon } }, { children: _jsx(Icon, { children: "outlined_flag" }) })), primary: _jsx(_Fragment, { children: isSnippetTemplate ? (_jsx(Link, Object.assign({ to: scRoutingContext.url(SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], getRouteData(notificationObject[contributionType])) }, { children: _jsx(Typography, Object.assign({ component: "div", color: "inherit", className: classes.flagText }, { children: _jsx(FormattedMessage, { id: `ui.notification.deletedFor.${camelCase(notificationObject.type)}Snippet`, defaultMessage: `ui.notification.deletedFor.${camelCase(notificationObject.type)}Snippet` }) })) }))) : (_jsxs(_Fragment, { children: [template === SCNotificationObjectTemplateType.DETAIL && notificationObject.is_new && _jsx(NewChip, {}), _jsx(Typography, Object.assign({ component: "div", color: "inherit", className: classes.flagText }, { children: intl.formatMessage(messages[camelCase(notificationObject.type)], { b: (...chunks) => _jsx("strong", { children: chunks }) }) }))] })) }), secondary: (template === SCNotificationObjectTemplateType.DETAIL || template === SCNotificationObjectTemplateType.SNIPPET) && (_jsx(DateTimeAgo, { date: notificationObject.active_at, className: classes.activeAt })), footer: isSnippetTemplate ? null : (_jsxs(_Fragment, { children: [_jsxs(Box, Object.assign({ className: classes.contributionWrap }, { children: [_jsx(Typography, Object.assign({ variant: 'body2', color: 'inherit', classes: { root: classes.contributionYouWroteLabel } }, { children: _jsx(FormattedMessage, { id: "ui.notification.deletedFor.youWrote", defaultMessage: "ui.notification.deletedFor.youWrote" }) })), _jsx(Link, Object.assign({ to: scRoutingContext.url(SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], getRouteData(notificationObject[contributionType])), className: classes.contributionText }, { children: _jsx(Typography, Object.assign({ component: 'span', color: 'inherit', variant: "body2" }, { children: getContributionSnippet(notificationObject[contributionType]) })) }))] })), template === SCNotificationObjectTemplateType.TOAST && (_jsxs(Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: [_jsx(DateTimeAgo, { date: notificationObject.active_at }), _jsx(Typography, Object.assign({ color: "primary", component: 'div' }, { children: _jsx(Link, Object.assign({ to: scRoutingContext.url(SCRoutes[`${notificationObject[contributionType]['type'].toUpperCase()}_ROUTE_NAME`], getRouteData(notificationObject[contributionType])) }, { children: _jsx(FormattedMessage, { id: "ui.userToastNotifications.viewContribution", defaultMessage: 'ui.userToastNotifications.viewContribution' }) })) }))] })))] })) }, rest)));
71
71
  }
@@ -48,15 +48,15 @@ export default function EventNotification(props) {
48
48
  if (isSnippetTemplate || isToastTemplate) {
49
49
  return (_jsx(Root, Object.assign({ id: id, className: classNames(classes.root, className, `${PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: _jsx(Link, Object.assign({}, (!notificationObject.user.deleted && {
50
50
  to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.user)
51
- }), { onClick: notificationObject.user.deleted ? () => setOpenAlert(true) : null, children: _jsx(UserAvatar, { hide: !notificationObject.user.community_badge, smaller: true, children: _jsx(Avatar, { alt: notificationObject.user.username, variant: "circular", src: notificationObject.user.avatar, classes: { root: classes.avatar } }) }) })), primary: _jsxs(Box, { children: [_jsx(Link, Object.assign({}, (!notificationObject.user.deleted && {
51
+ }), { onClick: notificationObject.user.deleted ? () => setOpenAlert(true) : null }, { children: _jsx(UserAvatar, Object.assign({ hide: !notificationObject.user.community_badge, smaller: true }, { children: _jsx(Avatar, { alt: notificationObject.user.username, variant: "circular", src: notificationObject.user.avatar, classes: { root: classes.avatar } }) })) })), primary: _jsxs(Box, { children: [_jsx(Link, Object.assign({}, (!notificationObject.user.deleted && {
52
52
  to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.user)
53
- }), { onClick: notificationObject.user.deleted ? () => setOpenAlert(true) : null, className: classes.username, children: notificationObject.user.username })), ' ', _jsx(FormattedMessage, { id: `ui.notification.event.${notificationObject.type}`, defaultMessage: `ui.notification.event.${notificationObject.type}`, values: {
53
+ }), { onClick: notificationObject.user.deleted ? () => setOpenAlert(true) : null, className: classes.username }, { children: notificationObject.user.username })), ' ', _jsx(FormattedMessage, { id: `ui.notification.event.${notificationObject.type}`, defaultMessage: `ui.notification.event.${notificationObject.type}`, values: {
54
54
  // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
55
55
  // @ts-ignore
56
56
  icon: (...chunks) => _jsx(Icon, { children: chunks }),
57
57
  event: notificationObject.event.name,
58
- link: (...chunks) => _jsx(Link, { to: scRoutingContext.url(SCRoutes.EVENT_ROUTE_NAME, notificationObject.event), children: chunks })
59
- } })] }), secondary: _jsxs(_Fragment, { children: [_jsx(Typography, { component: "span", children: _jsx(FormattedMessage, { id: "ui.notification.event.dateTime", defaultMessage: "ui.notification.event.dateTime", values: {
58
+ link: (...chunks) => _jsx(Link, Object.assign({ to: scRoutingContext.url(SCRoutes.EVENT_ROUTE_NAME, notificationObject.event) }, { children: chunks }))
59
+ } })] }), secondary: _jsxs(_Fragment, { children: [_jsx(Typography, Object.assign({ component: "span" }, { children: _jsx(FormattedMessage, { id: "ui.notification.event.dateTime", defaultMessage: "ui.notification.event.dateTime", values: {
60
60
  date: intl.formatDate(notificationObject.event.start_date, {
61
61
  weekday: 'long',
62
62
  day: 'numeric',
@@ -64,17 +64,17 @@ export default function EventNotification(props) {
64
64
  month: 'long'
65
65
  }),
66
66
  hour: intl.formatDate(notificationObject.event.start_date, { hour: 'numeric', minute: 'numeric' })
67
- } }) }), _jsxs(Typography, { component: "p", variant: "body2", children: [_jsx(FormattedMessage, { id: `ui.notification.event.privacy.${notificationObject.event.privacy}`, defaultMessage: `ui.notification.event.privacy.${notificationObject.event.privacy}` }), ' ', "-", ' ', notificationObject.event.location === SCEventLocationType.PERSON ? (_jsx(FormattedMessage, { id: `ui.notification.event.address.live.label`, defaultMessage: `ui.notification.event.address.live.label` })) : (_jsx(FormattedMessage, { id: `ui.notification.event.address.online.label`, defaultMessage: `ui.notification.event.address.online.label` }))] })] }), footer: isToastTemplate ? (_jsxs(Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2, children: [_jsx(DateTimeAgo, { date: notificationObject.active_at }), _jsx(Typography, { color: "primary", children: _jsx(Link, { to: scRoutingContext.url(SCRoutes.EVENT_ROUTE_NAME, notificationObject.event), children: _jsx(FormattedMessage, { id: "ui.notification.event.button.see", defaultMessage: "ui.notification.event.button.see" }) }) })] })) : (_jsx(DateTimeAgo, { date: notificationObject.active_at, className: classes.snippetTime })) }, rest)));
67
+ } }) })), _jsxs(Typography, Object.assign({ component: "p", variant: "body2" }, { children: [_jsx(FormattedMessage, { id: `ui.notification.event.privacy.${notificationObject.event.privacy}`, defaultMessage: `ui.notification.event.privacy.${notificationObject.event.privacy}` }), ' ', "-", ' ', notificationObject.event.location === SCEventLocationType.PERSON ? (_jsx(FormattedMessage, { id: `ui.notification.event.address.live.label`, defaultMessage: `ui.notification.event.address.live.label` })) : (_jsx(FormattedMessage, { id: `ui.notification.event.address.online.label`, defaultMessage: `ui.notification.event.address.online.label` }))] }))] }), footer: isToastTemplate ? (_jsxs(Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: [_jsx(DateTimeAgo, { date: notificationObject.active_at }), _jsx(Typography, Object.assign({ color: "primary" }, { children: _jsx(Link, Object.assign({ to: scRoutingContext.url(SCRoutes.EVENT_ROUTE_NAME, notificationObject.event) }, { children: _jsx(FormattedMessage, { id: "ui.notification.event.button.see", defaultMessage: "ui.notification.event.button.see" }) })) }))] }))) : (_jsx(DateTimeAgo, { date: notificationObject.active_at, className: classes.snippetTime })) }, rest)));
68
68
  }
69
69
  return (_jsxs(_Fragment, { children: [_jsx(Root, Object.assign({ id: id, className: classNames(classes.root, className, `${PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: _jsx(Link, Object.assign({}, (!notificationObject.user.deleted && {
70
70
  to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.user)
71
- }), { onClick: notificationObject.user.deleted ? () => setOpenAlert(true) : null, children: _jsx(UserAvatar, { hide: !notificationObject.user.community_badge, smaller: true, children: _jsx(Avatar, { className: classes.avatar, alt: notificationObject.user.username, variant: "circular", src: notificationObject.user.avatar }) }) })), primary: _jsxs(_Fragment, { children: [_jsx(Link, Object.assign({}, (!notificationObject.user.deleted && {
71
+ }), { onClick: notificationObject.user.deleted ? () => setOpenAlert(true) : null }, { children: _jsx(UserAvatar, Object.assign({ hide: !notificationObject.user.community_badge, smaller: true }, { children: _jsx(Avatar, { className: classes.avatar, alt: notificationObject.user.username, variant: "circular", src: notificationObject.user.avatar }) })) })), primary: _jsxs(_Fragment, { children: [_jsx(Link, Object.assign({}, (!notificationObject.user.deleted && {
72
72
  to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.user)
73
- }), { onClick: notificationObject.user.deleted ? () => setOpenAlert(true) : null, className: classes.username, children: notificationObject.user.username })), ' ', _jsx(FormattedMessage, { id: `ui.notification.${notificationObject.type}`, defaultMessage: `ui.notification.${notificationObject.type}`, values: {
73
+ }), { onClick: notificationObject.user.deleted ? () => setOpenAlert(true) : null, className: classes.username }, { children: notificationObject.user.username })), ' ', _jsx(FormattedMessage, { id: `ui.notification.${notificationObject.type}`, defaultMessage: `ui.notification.${notificationObject.type}`, values: {
74
74
  // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
75
75
  // @ts-ignore
76
76
  icon: (...chunks) => _jsx(Icon, { children: chunks }),
77
77
  event: notificationObject.event.name,
78
- link: (...chunks) => _jsx(Link, { to: scRoutingContext.url(SCRoutes.EVENT_ROUTE_NAME, notificationObject.event), children: chunks })
79
- } }), _jsx(EventItem, { event: notificationObject.event, actions: _jsx(_Fragment, {}), elevation: 0 })] }), actions: _jsxs(Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2, children: [_jsx(DateTimeAgo, { date: notificationObject.active_at, className: classes.activeAt }), _jsx(LoadingButton, { color: 'primary', variant: "outlined", size: "small", classes: { root: classes.seeButton }, component: Link, to: scRoutingContext.url(SCRoutes.EVENT_ROUTE_NAME, notificationObject.event), children: _jsx(FormattedMessage, { id: "ui.notification.event.button.see", defaultMessage: "ui.notification.event.button.see" }) })] }) }, rest)), openAlert && _jsx(UserDeletedSnackBar, { open: openAlert, handleClose: () => setOpenAlert(false) })] }));
78
+ link: (...chunks) => _jsx(Link, Object.assign({ to: scRoutingContext.url(SCRoutes.EVENT_ROUTE_NAME, notificationObject.event) }, { children: chunks }))
79
+ } }), _jsx(EventItem, { event: notificationObject.event, actions: _jsx(_Fragment, {}), elevation: 0 })] }), actions: _jsxs(Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: [_jsx(DateTimeAgo, { date: notificationObject.active_at, className: classes.activeAt }), _jsx(LoadingButton, Object.assign({ color: 'primary', variant: "outlined", size: "small", classes: { root: classes.seeButton }, component: Link, to: scRoutingContext.url(SCRoutes.EVENT_ROUTE_NAME, notificationObject.event) }, { children: _jsx(FormattedMessage, { id: "ui.notification.event.button.see", defaultMessage: "ui.notification.event.button.see" }) }))] })) }, rest)), openAlert && _jsx(UserDeletedSnackBar, { open: openAlert, handleClose: () => setOpenAlert(false) })] }));
80
80
  }
@@ -51,21 +51,21 @@ export default function GroupNotification(props) {
51
51
  if (isSnippetTemplate || isToastTemplate) {
52
52
  return (_jsx(Root, Object.assign({ id: id, className: classNames(classes.root, className, `${PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: _jsx(Link, Object.assign({}, (!notificationObject.user.deleted && {
53
53
  to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.user)
54
- }), { onClick: notificationObject.user.deleted ? () => setOpenAlert(true) : null, children: _jsx(UserAvatar, { hide: !notificationObject.user.community_badge, smaller: true, children: _jsx(Avatar, { alt: notificationObject.user.username, variant: "circular", src: notificationObject.user.avatar, classes: { root: classes.avatar } }) }) })), primary: _jsxs(Box, { children: [_jsx(Link, Object.assign({}, (!notificationObject.user.deleted && {
54
+ }), { onClick: notificationObject.user.deleted ? () => setOpenAlert(true) : null }, { children: _jsx(UserAvatar, Object.assign({ hide: !notificationObject.user.community_badge, smaller: true }, { children: _jsx(Avatar, { alt: notificationObject.user.username, variant: "circular", src: notificationObject.user.avatar, classes: { root: classes.avatar } }) })) })), primary: _jsxs(Box, { children: [_jsx(Link, Object.assign({}, (!notificationObject.user.deleted && {
55
55
  to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.user)
56
- }), { onClick: notificationObject.user.deleted ? () => setOpenAlert(true) : null, className: classes.username, children: notificationObject.user.username })), ' ', _jsx(FormattedMessage, { id: `ui.notification.${notificationObject.type}`, defaultMessage: `ui.notification.${notificationObject.type}`, values: {
56
+ }), { onClick: notificationObject.user.deleted ? () => setOpenAlert(true) : null, className: classes.username }, { children: notificationObject.user.username })), ' ', _jsx(FormattedMessage, { id: `ui.notification.${notificationObject.type}`, defaultMessage: `ui.notification.${notificationObject.type}`, values: {
57
57
  group: notificationObject.group.name,
58
- link: (...chunks) => (_jsx(Link, { to: notificationObject.type === SCNotificationTypologyType.USER_REQUESTED_TO_JOIN_GROUP ||
58
+ link: (...chunks) => (_jsx(Link, Object.assign({ to: notificationObject.type === SCNotificationTypologyType.USER_REQUESTED_TO_JOIN_GROUP ||
59
59
  notificationObject.type === SCNotificationTypologyType.USER_ACCEPTED_TO_JOIN_GROUP
60
60
  ? scRoutingContext.url(SCRoutes.GROUP_MEMBERS_ROUTE_NAME, notificationObject.group)
61
- : scRoutingContext.url(SCRoutes.GROUP_ROUTE_NAME, notificationObject.group), children: chunks }))
62
- } })] }), footer: isToastTemplate && (_jsxs(Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2, children: [_jsx(DateTimeAgo, { date: notificationObject.active_at }), status && status !== SCGroupSubscriptionStatusType.SUBSCRIBED && (_jsx(Typography, { color: "primary", children: _jsx(Link, { to: notificationObject.type === SCNotificationTypologyType.USER_REQUESTED_TO_JOIN_GROUP ||
61
+ : scRoutingContext.url(SCRoutes.GROUP_ROUTE_NAME, notificationObject.group) }, { children: chunks })))
62
+ } })] }), footer: isToastTemplate && (_jsxs(Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: [_jsx(DateTimeAgo, { date: notificationObject.active_at }), status && status !== SCGroupSubscriptionStatusType.SUBSCRIBED && (_jsx(Typography, Object.assign({ color: "primary" }, { children: _jsx(Link, Object.assign({ to: notificationObject.type === SCNotificationTypologyType.USER_REQUESTED_TO_JOIN_GROUP ||
63
63
  notificationObject.type === SCNotificationTypologyType.USER_ACCEPTED_TO_JOIN_GROUP
64
64
  ? scRoutingContext.url(SCRoutes.GROUP_MEMBERS_ROUTE_NAME, notificationObject.group)
65
- : scRoutingContext.url(SCRoutes.GROUP_ROUTE_NAME, notificationObject.group), children: _jsx(FormattedMessage, { id: "ui.notification.group.button.see", defaultMessage: "ui.notification.group.button.see" }) }) }))] })) }, rest)));
65
+ : scRoutingContext.url(SCRoutes.GROUP_ROUTE_NAME, notificationObject.group) }, { children: _jsx(FormattedMessage, { id: "ui.notification.group.button.see", defaultMessage: "ui.notification.group.button.see" }) })) })))] }))) }, rest)));
66
66
  }
67
- return (_jsxs(_Fragment, { children: [_jsx(Root, Object.assign({ id: id, className: classNames(classes.root, className, `${PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, actions: _jsxs(Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2, children: [_jsx(DateTimeAgo, { date: notificationObject.active_at, className: classes.activeAt }), status && status !== SCGroupSubscriptionStatusType.SUBSCRIBED && (_jsx(LoadingButton, { color: 'primary', variant: "outlined", size: "small", classes: { root: classes.acceptButton }, component: Link, loading: scUserContext.user ? status === null || manager.isLoading(notificationObject.group) : null, to: notificationObject.type === SCNotificationTypologyType.USER_REQUESTED_TO_JOIN_GROUP ||
67
+ return (_jsxs(_Fragment, { children: [_jsx(Root, Object.assign({ id: id, className: classNames(classes.root, className, `${PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, actions: _jsxs(Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: [_jsx(DateTimeAgo, { date: notificationObject.active_at, className: classes.activeAt }), status && status !== SCGroupSubscriptionStatusType.SUBSCRIBED && (_jsx(LoadingButton, Object.assign({ color: 'primary', variant: "outlined", size: "small", classes: { root: classes.acceptButton }, component: Link, loading: scUserContext.user ? status === null || manager.isLoading(notificationObject.group) : null, to: notificationObject.type === SCNotificationTypologyType.USER_REQUESTED_TO_JOIN_GROUP ||
68
68
  notificationObject.type === SCNotificationTypologyType.USER_ACCEPTED_TO_JOIN_GROUP
69
69
  ? scRoutingContext.url(SCRoutes.GROUP_MEMBERS_ROUTE_NAME, notificationObject.group)
70
- : scRoutingContext.url(SCRoutes.GROUP_ROUTE_NAME, notificationObject.group), children: _jsx(FormattedMessage, { id: "ui.notification.group.button.see", defaultMessage: "ui.notification.group.button.see" }) }))] }) }, rest)), openAlert && _jsx(UserDeletedSnackBar, { open: openAlert, handleClose: () => setOpenAlert(false) })] }));
70
+ : scRoutingContext.url(SCRoutes.GROUP_ROUTE_NAME, notificationObject.group) }, { children: _jsx(FormattedMessage, { id: "ui.notification.group.button.see", defaultMessage: "ui.notification.group.button.see" }) })))] })) }, rest)), openAlert && _jsx(UserDeletedSnackBar, { open: openAlert, handleClose: () => setOpenAlert(false) })] }));
71
71
  }
@@ -39,11 +39,11 @@ export default function IncubatorApprovedNotification(props) {
39
39
  /**
40
40
  * Renders root object
41
41
  */
42
- return (_jsx(Root, Object.assign({ id: id, className: classNames(classes.root, className, `${PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: _jsx(Avatar, { alt: notificationObject.incubator.approved_category.name, src: notificationObject.incubator.approved_category.image_medium, variant: "square", classes: { root: classes.categoryIcon } }), primary: _jsx(_Fragment, { children: isSnippetTemplate ? (_jsx(Link, { to: scRoutingContext.url(SCRoutes.CATEGORY_ROUTE_NAME, notificationObject.incubator.approved_category), children: _jsx(Typography, { component: "div", className: classes.categoryApprovedText, color: "inherit", children: intl.formatMessage(messages.incubatorApproved, {
42
+ return (_jsx(Root, Object.assign({ id: id, className: classNames(classes.root, className, `${PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: _jsx(Avatar, { alt: notificationObject.incubator.approved_category.name, src: notificationObject.incubator.approved_category.image_medium, variant: "square", classes: { root: classes.categoryIcon } }), primary: _jsx(_Fragment, { children: isSnippetTemplate ? (_jsx(Link, Object.assign({ to: scRoutingContext.url(SCRoutes.CATEGORY_ROUTE_NAME, notificationObject.incubator.approved_category) }, { children: _jsx(Typography, Object.assign({ component: "div", className: classes.categoryApprovedText, color: "inherit" }, { children: intl.formatMessage(messages.incubatorApproved, {
43
43
  name: notificationObject.incubator.name,
44
44
  b: (...chunks) => _jsx("strong", { children: chunks })
45
- }) }) })) : (_jsxs(_Fragment, { children: [template === SCNotificationObjectTemplateType.DETAIL && notificationObject.is_new && _jsx(NewChip, {}), _jsx(Typography, { component: "div", className: classes.categoryApprovedText, color: "inherit", children: intl.formatMessage(messages.incubatorApproved, {
45
+ }) })) }))) : (_jsxs(_Fragment, { children: [template === SCNotificationObjectTemplateType.DETAIL && notificationObject.is_new && _jsx(NewChip, {}), _jsx(Typography, Object.assign({ component: "div", className: classes.categoryApprovedText, color: "inherit" }, { children: intl.formatMessage(messages.incubatorApproved, {
46
46
  name: notificationObject.incubator.name,
47
47
  b: (...chunks) => _jsx("strong", { children: chunks })
48
- }) })] })) }), secondary: (template === SCNotificationObjectTemplateType.DETAIL || template === SCNotificationObjectTemplateType.SNIPPET) && (_jsx(DateTimeAgo, { date: notificationObject.active_at, className: classes.activeAt })), footer: template === SCNotificationObjectTemplateType.DETAIL ? (_jsx(Button, { component: Link, to: scRoutingContext.url(SCRoutes.CATEGORY_ROUTE_NAME, notificationObject.incubator.approved_category), className: classes.viewIncubatorButton, children: _jsx(FormattedMessage, { id: 'ui.notification.incubatorApproved.viewIncubator', defaultMessage: 'ui.notification.incubatorApproved.viewIncubator' }) })) : template === SCNotificationObjectTemplateType.TOAST ? (_jsxs(Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2, children: [_jsx(DateTimeAgo, { date: notificationObject.active_at }), _jsx(Typography, { color: "primary", component: 'div', children: _jsx(Link, { to: scRoutingContext.url(SCRoutes.CATEGORY_ROUTE_NAME, notificationObject.incubator), children: _jsx(FormattedMessage, { id: "ui.userToastNotifications.incubatorApproved.viewIncubator", defaultMessage: 'ui.userToastNotifications.incubatorApproved.viewIncubator' }) }) })] })) : null }, rest)));
48
+ }) }))] })) }), secondary: (template === SCNotificationObjectTemplateType.DETAIL || template === SCNotificationObjectTemplateType.SNIPPET) && (_jsx(DateTimeAgo, { date: notificationObject.active_at, className: classes.activeAt })), footer: template === SCNotificationObjectTemplateType.DETAIL ? (_jsx(Button, Object.assign({ component: Link, to: scRoutingContext.url(SCRoutes.CATEGORY_ROUTE_NAME, notificationObject.incubator.approved_category), className: classes.viewIncubatorButton }, { children: _jsx(FormattedMessage, { id: 'ui.notification.incubatorApproved.viewIncubator', defaultMessage: 'ui.notification.incubatorApproved.viewIncubator' }) }))) : template === SCNotificationObjectTemplateType.TOAST ? (_jsxs(Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: [_jsx(DateTimeAgo, { date: notificationObject.active_at }), _jsx(Typography, Object.assign({ color: "primary", component: 'div' }, { children: _jsx(Link, Object.assign({ to: scRoutingContext.url(SCRoutes.CATEGORY_ROUTE_NAME, notificationObject.incubator) }, { children: _jsx(FormattedMessage, { id: "ui.userToastNotifications.incubatorApproved.viewIncubator", defaultMessage: 'ui.userToastNotifications.incubatorApproved.viewIncubator' }) })) }))] }))) : null }, rest)));
49
49
  }
@@ -49,5 +49,5 @@ export default function KindlyNoticeFlagNotification(props) {
49
49
  /**
50
50
  * Renders root object
51
51
  */
52
- return (_jsx(Root, Object.assign({ id: id, className: classNames(classes.root, className, `${PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: _jsx(Avatar, { variant: "circular", classes: { root: classes.flagIcon }, children: _jsx(Icon, { children: "outlined_flag" }) }), primary: _jsx(_Fragment, { children: isSnippetTemplate ? (_jsx(Link, { to: scRoutingContext.url(SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], getRouteData(notificationObject[contributionType])), children: _jsx(Typography, { component: "div", color: "inherit", className: classes.flagText, children: _jsx(FormattedMessage, { id: `ui.notification.kindlyNoticeFlag.kindlyNoticeFlagSnippet`, defaultMessage: `ui.notification.kindlyNoticeFlag.kindlyNoticeFlagSnippet` }) }) })) : (_jsx(Typography, { component: "div", color: "inherit", className: classes.flagText, children: intl.formatMessage(messages[camelCase(notificationObject.type)], { b: (...chunks) => _jsx("strong", { children: chunks }) }) })) }), secondary: (template === SCNotificationObjectTemplateType.DETAIL || template === SCNotificationObjectTemplateType.SNIPPET) && (_jsx(DateTimeAgo, { date: notificationObject.active_at, className: classes.activeAt })), footer: !isSnippetTemplate && (_jsxs(Box, { className: classes.contributionWrap, children: [_jsx(Typography, { variant: 'body2', color: 'inherit', component: 'div', classes: { root: classes.contributionYouWroteLabel }, children: _jsx(FormattedMessage, { id: "ui.notification.undeletedFor.youWrote", defaultMessage: "ui.notification.undeletedFor.youWrote" }) }), _jsx(Link, { to: scRoutingContext.url(SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], getRouteData(notificationObject[contributionType])), className: classes.contributionText, children: _jsx(Typography, { component: 'span', variant: "body2", children: getContributionSnippet(notificationObject[contributionType]) }) })] })) }, rest)));
52
+ return (_jsx(Root, Object.assign({ id: id, className: classNames(classes.root, className, `${PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: _jsx(Avatar, Object.assign({ variant: "circular", classes: { root: classes.flagIcon } }, { children: _jsx(Icon, { children: "outlined_flag" }) })), primary: _jsx(_Fragment, { children: isSnippetTemplate ? (_jsx(Link, Object.assign({ to: scRoutingContext.url(SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], getRouteData(notificationObject[contributionType])) }, { children: _jsx(Typography, Object.assign({ component: "div", color: "inherit", className: classes.flagText }, { children: _jsx(FormattedMessage, { id: `ui.notification.kindlyNoticeFlag.kindlyNoticeFlagSnippet`, defaultMessage: `ui.notification.kindlyNoticeFlag.kindlyNoticeFlagSnippet` }) })) }))) : (_jsx(Typography, Object.assign({ component: "div", color: "inherit", className: classes.flagText }, { children: intl.formatMessage(messages[camelCase(notificationObject.type)], { b: (...chunks) => _jsx("strong", { children: chunks }) }) }))) }), secondary: (template === SCNotificationObjectTemplateType.DETAIL || template === SCNotificationObjectTemplateType.SNIPPET) && (_jsx(DateTimeAgo, { date: notificationObject.active_at, className: classes.activeAt })), footer: !isSnippetTemplate && (_jsxs(Box, Object.assign({ className: classes.contributionWrap }, { children: [_jsx(Typography, Object.assign({ variant: 'body2', color: 'inherit', component: 'div', classes: { root: classes.contributionYouWroteLabel } }, { children: _jsx(FormattedMessage, { id: "ui.notification.undeletedFor.youWrote", defaultMessage: "ui.notification.undeletedFor.youWrote" }) })), _jsx(Link, Object.assign({ to: scRoutingContext.url(SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], getRouteData(notificationObject[contributionType])), className: classes.contributionText }, { children: _jsx(Typography, Object.assign({ component: 'span', variant: "body2" }, { children: getContributionSnippet(notificationObject[contributionType]) })) }))] }))) }, rest)));
53
53
  }
@@ -69,7 +69,7 @@ export default function KindlyNoticeForNotification(props) {
69
69
  /**
70
70
  * Renders root object
71
71
  */
72
- return (_jsx(Root, Object.assign({ id: id, className: classNames(classes.root, className, `${PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: _jsx(Avatar, { variant: "circular", classes: { root: classes.flagIcon }, children: _jsx(Icon, { children: "outlined_flag" }) }), primary: _jsx(_Fragment, { children: isSnippetTemplate ? (_jsx(Link, { to: scRoutingContext.url(SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], getRouteData(notificationObject[contributionType])), children: _jsx(Typography, { component: "div", color: "inherit", className: classes.flagText, children: _jsx(FormattedMessage, { id: `ui.notification.kindlyNoticeFor.${camelCase(notificationObject.type)}Snippet`, defaultMessage: `ui.notification.kindlyNoticeFor.${camelCase(notificationObject.type)}Snippet` }) }) })) : (_jsx(Typography, { component: "div", color: "inherit", className: classes.flagText, children: intl.formatMessage(messages[camelCase(notificationObject.type)], { b: (...chunks) => _jsx("strong", { children: chunks }) }) })) }), secondary: (template === SCNotificationObjectTemplateType.DETAIL || template === SCNotificationObjectTemplateType.SNIPPET) && (_jsx(DateTimeAgo, { date: notificationObject.active_at, className: classes.activeAt })), footer: isSnippetTemplate ? null : (_jsxs(_Fragment, { children: [_jsxs(Box, { className: classes.contributionWrap, children: [_jsx(Typography, { variant: 'body2', color: 'inherit', component: 'div', classes: { root: classes.contributionYouWroteLabel }, children: intl.formatMessage(messages.youWrote, {
72
+ return (_jsx(Root, Object.assign({ id: id, className: classNames(classes.root, className, `${PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: _jsx(Avatar, Object.assign({ variant: "circular", classes: { root: classes.flagIcon } }, { children: _jsx(Icon, { children: "outlined_flag" }) })), primary: _jsx(_Fragment, { children: isSnippetTemplate ? (_jsx(Link, Object.assign({ to: scRoutingContext.url(SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], getRouteData(notificationObject[contributionType])) }, { children: _jsx(Typography, Object.assign({ component: "div", color: "inherit", className: classes.flagText }, { children: _jsx(FormattedMessage, { id: `ui.notification.kindlyNoticeFor.${camelCase(notificationObject.type)}Snippet`, defaultMessage: `ui.notification.kindlyNoticeFor.${camelCase(notificationObject.type)}Snippet` }) })) }))) : (_jsx(Typography, Object.assign({ component: "div", color: "inherit", className: classes.flagText }, { children: intl.formatMessage(messages[camelCase(notificationObject.type)], { b: (...chunks) => _jsx("strong", { children: chunks }) }) }))) }), secondary: (template === SCNotificationObjectTemplateType.DETAIL || template === SCNotificationObjectTemplateType.SNIPPET) && (_jsx(DateTimeAgo, { date: notificationObject.active_at, className: classes.activeAt })), footer: isSnippetTemplate ? null : (_jsxs(_Fragment, { children: [_jsxs(Box, Object.assign({ className: classes.contributionWrap }, { children: [_jsx(Typography, Object.assign({ variant: 'body2', color: 'inherit', component: 'div', classes: { root: classes.contributionYouWroteLabel } }, { children: intl.formatMessage(messages.youWrote, {
73
73
  b: (...chunks) => _jsx("strong", { children: chunks })
74
- }) }), _jsx(Link, { to: scRoutingContext.url(SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], getRouteData(notificationObject[contributionType])), className: classes.contributionText, children: _jsx(Typography, { component: 'span', variant: "body2", children: getContributionSnippet(notificationObject[contributionType]) }) })] }), template === SCNotificationObjectTemplateType.TOAST && (_jsxs(Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2, children: [_jsx(DateTimeAgo, { date: notificationObject.active_at }), _jsx(Typography, { color: "primary", component: 'div', children: _jsx(Link, { to: scRoutingContext.url(SCRoutes[`${notificationObject[contributionType]['type'].toUpperCase()}_ROUTE_NAME`], getRouteData(notificationObject[contributionType])), children: _jsx(FormattedMessage, { id: "ui.userToastNotifications.viewContribution", defaultMessage: 'ui.userToastNotifications.viewContribution' }) }) })] }))] })) }, rest)));
74
+ }) })), _jsx(Link, Object.assign({ to: scRoutingContext.url(SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], getRouteData(notificationObject[contributionType])), className: classes.contributionText }, { children: _jsx(Typography, Object.assign({ component: 'span', variant: "body2" }, { children: getContributionSnippet(notificationObject[contributionType]) })) }))] })), template === SCNotificationObjectTemplateType.TOAST && (_jsxs(Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: [_jsx(DateTimeAgo, { date: notificationObject.active_at }), _jsx(Typography, Object.assign({ color: "primary", component: 'div' }, { children: _jsx(Link, Object.assign({ to: scRoutingContext.url(SCRoutes[`${notificationObject[contributionType]['type'].toUpperCase()}_ROUTE_NAME`], getRouteData(notificationObject[contributionType])) }, { children: _jsx(FormattedMessage, { id: "ui.userToastNotifications.viewContribution", defaultMessage: 'ui.userToastNotifications.viewContribution' }) })) }))] })))] })) }, rest)));
75
75
  }
@@ -53,9 +53,9 @@ export default function MentionNotification(props) {
53
53
  */
54
54
  return (_jsxs(_Fragment, { children: [_jsx(Root, Object.assign({ id: id, className: classNames(classes.root, className, `${PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: _jsx(Link, Object.assign({}, (!notificationObject[objectType].author.deleted && {
55
55
  to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject[objectType].author)
56
- }), { onClick: notificationObject[objectType].author.deleted ? () => setOpenAlert(true) : null, children: _jsx(UserAvatar, { hide: !notificationObject[objectType].author.community_badge, smaller: true, children: _jsx(Avatar, { alt: notificationObject[objectType].author.username, variant: "circular", src: notificationObject[objectType].author.avatar, classes: { root: classes.avatar } }) }) })), primary: _jsxs(Typography, { component: "div", color: "inherit", className: classes.mentionText, children: [_jsx(Link, Object.assign({}, (!notificationObject[objectType].author.deleted && {
56
+ }), { onClick: notificationObject[objectType].author.deleted ? () => setOpenAlert(true) : null }, { children: _jsx(UserAvatar, Object.assign({ hide: !notificationObject[objectType].author.community_badge, smaller: true }, { children: _jsx(Avatar, { alt: notificationObject[objectType].author.username, variant: "circular", src: notificationObject[objectType].author.avatar, classes: { root: classes.avatar } }) })) })), primary: _jsxs(Typography, Object.assign({ component: "div", color: "inherit", className: classes.mentionText }, { children: [_jsx(Link, Object.assign({}, (!notificationObject[objectType].author.deleted && {
57
57
  to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject[objectType].author)
58
- }), { onClick: notificationObject[objectType].author.deleted ? () => setOpenAlert(true) : null, className: classes.username, children: notificationObject[objectType].author.username })), ' ', intl.formatMessage(messages.quotedYouOn, {
58
+ }), { onClick: notificationObject[objectType].author.deleted ? () => setOpenAlert(true) : null, className: classes.username }, { children: notificationObject[objectType].author.username })), ' ', intl.formatMessage(messages.quotedYouOn, {
59
59
  b: (...chunks) => _jsx("strong", { children: chunks })
60
- }), ' '] }), secondary: _jsxs(React.Fragment, { children: [_jsx(Link, { to: scRoutingContext.url(SCRoutes[`${objectType.toUpperCase()}_ROUTE_NAME`], getRouteData(notificationObject[objectType])), children: _jsx(Typography, { component: 'span', variant: "body2", className: classes.contributionText, children: getContributionSnippet(notificationObject[objectType]) }) }), (template === SCNotificationObjectTemplateType.DETAIL || template === SCNotificationObjectTemplateType.SNIPPET) && (_jsx(Box, { children: _jsx(DateTimeAgo, { date: notificationObject.active_at, className: classes.activeAt }) }))] }), footer: template === SCNotificationObjectTemplateType.TOAST && (_jsxs(Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2, children: [_jsx(DateTimeAgo, { date: notificationObject.active_at }), _jsx(Typography, { color: "primary", component: 'div', children: _jsx(Link, { to: scRoutingContext.url(SCRoutes[`${contribution.type.toUpperCase()}_ROUTE_NAME`], getRouteData(contribution)), children: _jsx(FormattedMessage, { id: "ui.userToastNotifications.viewContribution", defaultMessage: 'ui.userToastNotifications.viewContribution' }) }) })] })) }, rest)), openAlert && _jsx(UserDeletedSnackBar, { open: openAlert, handleClose: () => setOpenAlert(false) })] }));
60
+ }), ' '] })), secondary: _jsxs(React.Fragment, { children: [_jsx(Link, Object.assign({ to: scRoutingContext.url(SCRoutes[`${objectType.toUpperCase()}_ROUTE_NAME`], getRouteData(notificationObject[objectType])) }, { children: _jsx(Typography, Object.assign({ component: 'span', variant: "body2", className: classes.contributionText }, { children: getContributionSnippet(notificationObject[objectType]) })) })), (template === SCNotificationObjectTemplateType.DETAIL || template === SCNotificationObjectTemplateType.SNIPPET) && (_jsx(Box, { children: _jsx(DateTimeAgo, { date: notificationObject.active_at, className: classes.activeAt }) }))] }), footer: template === SCNotificationObjectTemplateType.TOAST && (_jsxs(Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: [_jsx(DateTimeAgo, { date: notificationObject.active_at }), _jsx(Typography, Object.assign({ color: "primary", component: 'div' }, { children: _jsx(Link, Object.assign({ to: scRoutingContext.url(SCRoutes[`${contribution.type.toUpperCase()}_ROUTE_NAME`], getRouteData(contribution)) }, { children: _jsx(FormattedMessage, { id: "ui.userToastNotifications.viewContribution", defaultMessage: 'ui.userToastNotifications.viewContribution' }) })) }))] }))) }, rest)), openAlert && _jsx(UserDeletedSnackBar, { open: openAlert, handleClose: () => setOpenAlert(false) })] }));
61
61
  }
@@ -185,9 +185,9 @@ export default function UserNotification(inProps) {
185
185
  let messageNotification = notificationObject.aggregated[0];
186
186
  return (_jsx(CardHeader, { className: classes.header, avatar: _jsx(Link, Object.assign({}, (!messageNotification.message.sender.deleted && {
187
187
  to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, messageNotification.message.sender)
188
- }), { onClick: messageNotification.message.sender.deleted ? () => setOpenAlert(true) : null, children: _jsx(UserAvatar, { hide: !messageNotification.message.sender.community_badge, smaller: true, children: _jsx(Avatar, { className: classes.avatar, alt: messageNotification.message.sender.username, variant: "circular", src: messageNotification.message.sender.avatar }) }) })), titleTypographyProps: { className: classes.title, variant: 'subtitle1' }, title: _jsxs(_Fragment, { children: [_jsx(Link, Object.assign({}, (!messageNotification.message.sender.deleted && {
188
+ }), { onClick: messageNotification.message.sender.deleted ? () => setOpenAlert(true) : null }, { children: _jsx(UserAvatar, Object.assign({ hide: !messageNotification.message.sender.community_badge, smaller: true }, { children: _jsx(Avatar, { className: classes.avatar, alt: messageNotification.message.sender.username, variant: "circular", src: messageNotification.message.sender.avatar }) })) })), titleTypographyProps: { className: classes.title, variant: 'subtitle1' }, title: _jsxs(_Fragment, { children: [_jsx(Link, Object.assign({}, (!messageNotification.message.sender.deleted && {
189
189
  to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, messageNotification.message.sender)
190
- }), { onClick: messageNotification.message.sender.deleted ? () => setOpenAlert(true) : null, className: classes.username, children: messageNotification.message.sender.username })), ' ', intl.formatMessage(messages.receivePrivateMessage, {
190
+ }), { onClick: messageNotification.message.sender.deleted ? () => setOpenAlert(true) : null, className: classes.username }, { children: messageNotification.message.sender.username })), ' ', intl.formatMessage(messages.receivePrivateMessage, {
191
191
  total: notificationObject.aggregated.length,
192
192
  b: (...chunks) => _jsx("strong", { children: chunks })
193
193
  })] }) }));
@@ -203,14 +203,14 @@ export default function UserNotification(inProps) {
203
203
  let groupNotification = notificationObject.aggregated[0];
204
204
  return (_jsx(CardHeader, { className: classes.header, avatar: _jsx(Link, Object.assign({}, (!groupNotification.user.deleted && {
205
205
  to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, groupNotification.user)
206
- }), { onClick: groupNotification.user.deleted ? () => setOpenAlert(true) : null, children: _jsx(UserAvatar, { hide: !groupNotification.user.community_badge, smaller: true, children: _jsx(Avatar, { className: classes.avatar, alt: groupNotification.user.username, variant: "circular", src: groupNotification.user.avatar }) }) })), titleTypographyProps: { className: classes.title, variant: 'subtitle1' }, title: _jsxs(_Fragment, { children: [_jsx(Link, Object.assign({}, (!groupNotification.user.deleted && {
206
+ }), { onClick: groupNotification.user.deleted ? () => setOpenAlert(true) : null }, { children: _jsx(UserAvatar, Object.assign({ hide: !groupNotification.user.community_badge, smaller: true }, { children: _jsx(Avatar, { className: classes.avatar, alt: groupNotification.user.username, variant: "circular", src: groupNotification.user.avatar }) })) })), titleTypographyProps: { className: classes.title, variant: 'subtitle1' }, title: _jsxs(_Fragment, { children: [_jsx(Link, Object.assign({}, (!groupNotification.user.deleted && {
207
207
  to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, groupNotification.user)
208
- }), { onClick: groupNotification.user.deleted ? () => setOpenAlert(true) : null, className: classes.username, children: groupNotification.user.username })), ' ', _jsx(FormattedMessage, { id: `ui.notification.${notificationObject.aggregated[0].type}`, defaultMessage: `ui.notification.${notificationObject.aggregated[0].type}`, values: {
208
+ }), { onClick: groupNotification.user.deleted ? () => setOpenAlert(true) : null, className: classes.username }, { children: groupNotification.user.username })), ' ', _jsx(FormattedMessage, { id: `ui.notification.${notificationObject.aggregated[0].type}`, defaultMessage: `ui.notification.${notificationObject.aggregated[0].type}`, values: {
209
209
  group: groupNotification.group.name,
210
- link: (...chunks) => (_jsx(Link, { to: notificationObject.aggregated[0].type === SCNotificationTypologyType.USER_REQUESTED_TO_JOIN_GROUP ||
210
+ link: (...chunks) => (_jsx(Link, Object.assign({ to: notificationObject.aggregated[0].type === SCNotificationTypologyType.USER_REQUESTED_TO_JOIN_GROUP ||
211
211
  notificationObject.aggregated[0].type === SCNotificationTypologyType.USER_ACCEPTED_TO_JOIN_GROUP
212
212
  ? scRoutingContext.url(SCRoutes.GROUP_MEMBERS_ROUTE_NAME, groupNotification.group)
213
- : scRoutingContext.url(SCRoutes.GROUP_ROUTE_NAME, groupNotification.group), children: chunks }))
213
+ : scRoutingContext.url(SCRoutes.GROUP_ROUTE_NAME, groupNotification.group) }, { children: chunks })))
214
214
  } })] }) }));
215
215
  }
216
216
  /**
@@ -224,7 +224,7 @@ export default function UserNotification(inProps) {
224
224
  notificationObject.aggregated[0].type === SCNotificationTypologyType.VOTE_UP ||
225
225
  notificationObject.aggregated[0].type === SCNotificationTypologyType.CONTRIBUTION)) {
226
226
  const contribution = getContribution(notificationObject);
227
- return (_jsx(CardHeader, { className: classes.header, titleTypographyProps: { className: classes.title, variant: 'subtitle1' }, title: _jsx(Link, { to: scRoutingContext.url(getContributionRouteName(contribution), getRouteData(notificationObject[contribution.type])), children: getContributionSnippet(contribution) }), action: contribution && (_jsx(Tooltip, { title: contribution.suspended ? (_jsx(FormattedMessage, { id: 'ui.notification.notificationSuspended', defaultMessage: 'ui.notification.notificationSuspended' })) : (_jsx(FormattedMessage, { id: 'ui.notification.notificationSuspend', defaultMessage: 'ui.notification.notificationSuspend' })), children: _jsx(LoadingButton, { variant: "text", size: "small", loading: loadingSuspendNotification, color: 'inherit', classes: { root: classes.stopButton }, onClick: () => handleStopContentNotification(contribution), children: contribution.suspended ? _jsx(Icon, { color: 'primary', children: "notifications_off" }) : _jsx(Icon, { color: 'inherit', children: "notifications" }) }) })) }));
227
+ return (_jsx(CardHeader, { className: classes.header, titleTypographyProps: { className: classes.title, variant: 'subtitle1' }, title: _jsx(Link, Object.assign({ to: scRoutingContext.url(getContributionRouteName(contribution), getRouteData(notificationObject[contribution.type])) }, { children: getContributionSnippet(contribution) })), action: contribution && (_jsx(Tooltip, Object.assign({ title: contribution.suspended ? (_jsx(FormattedMessage, { id: 'ui.notification.notificationSuspended', defaultMessage: 'ui.notification.notificationSuspended' })) : (_jsx(FormattedMessage, { id: 'ui.notification.notificationSuspend', defaultMessage: 'ui.notification.notificationSuspend' })) }, { children: _jsx(LoadingButton, Object.assign({ variant: "text", size: "small", loading: loadingSuspendNotification, color: 'inherit', classes: { root: classes.stopButton }, onClick: () => handleStopContentNotification(contribution) }, { children: contribution.suspended ? _jsx(Icon, Object.assign({ color: 'primary' }, { children: "notifications_off" })) : _jsx(Icon, Object.assign({ color: 'inherit' }, { children: "notifications" })) })) }))) }));
228
228
  }
229
229
  return null;
230
230
  }
@@ -311,5 +311,5 @@ export default function UserNotification(inProps) {
311
311
  /**
312
312
  * Renders root object
313
313
  */
314
- return (_jsxs(_Fragment, { children: [_jsxs(Root, Object.assign({ id: id, className: classNames(classes.root, className) }, rest, { children: [renderNotificationHeader(), _jsxs(CardContent, { className: classes.content, children: [_jsx("div", { className: classes.unCollapsed, children: notificationObject.aggregated.slice(0, showMaxAggregated).map((n, i) => renderAggregatedItem(n, i)) }), notificationObject.aggregated.length > showMaxAggregated && (_jsxs(_Fragment, { children: [_jsxs(ListItemButton, { onClick: setStateAggregated, classes: { root: classes.showOtherAggregated }, children: [_jsx(ListItemText, { primary: _jsx(FormattedMessage, { id: 'ui.notification.showOthers', defaultMessage: 'ui.notification.showOthers' }) }), openOtherAggregated ? _jsx(Icon, { children: "expand_less" }) : _jsx(Icon, { children: "expand_more" })] }), _jsx(Collapse, { in: openOtherAggregated, timeout: "auto", unmountOnExit: true, classes: { root: classes.collapsed }, children: notificationObject.aggregated.slice(showMaxAggregated).map((n, i) => renderAggregatedItem(n, i)) })] }))] })] })), openAlert && _jsx(UserDeletedSnackBar, { open: openAlert, handleClose: () => setOpenAlert(false) })] }));
314
+ return (_jsxs(_Fragment, { children: [_jsxs(Root, Object.assign({ id: id, className: classNames(classes.root, className) }, rest, { children: [renderNotificationHeader(), _jsxs(CardContent, Object.assign({ className: classes.content }, { children: [_jsx("div", Object.assign({ className: classes.unCollapsed }, { children: notificationObject.aggregated.slice(0, showMaxAggregated).map((n, i) => renderAggregatedItem(n, i)) })), notificationObject.aggregated.length > showMaxAggregated && (_jsxs(_Fragment, { children: [_jsxs(ListItemButton, Object.assign({ onClick: setStateAggregated, classes: { root: classes.showOtherAggregated } }, { children: [_jsx(ListItemText, { primary: _jsx(FormattedMessage, { id: 'ui.notification.showOthers', defaultMessage: 'ui.notification.showOthers' }) }), openOtherAggregated ? _jsx(Icon, { children: "expand_less" }) : _jsx(Icon, { children: "expand_more" })] })), _jsx(Collapse, Object.assign({ in: openOtherAggregated, timeout: "auto", unmountOnExit: true, classes: { root: classes.collapsed } }, { children: notificationObject.aggregated.slice(showMaxAggregated).map((n, i) => renderAggregatedItem(n, i)) }))] }))] }))] })), openAlert && _jsx(UserDeletedSnackBar, { open: openAlert, handleClose: () => setOpenAlert(false) })] }));
315
315
  }
@@ -80,28 +80,28 @@ export default function PrivateMessageNotification(props) {
80
80
  if (isSnippetTemplate || isToastTemplate) {
81
81
  return (_jsx(Root, Object.assign({ id: id, className: classNames(classes.root, className, `${PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: _jsx(Link, Object.assign({}, (!notificationObject.message.sender.deleted && {
82
82
  to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.message.sender)
83
- }), { onClick: notificationObject.message.sender.deleted ? () => setOpenAlert(true) : null, children: _jsx(UserAvatar, { hide: !notificationObject.message.sender.community_badge, smaller: true, children: _jsx(Avatar, { alt: notificationObject.message.sender.username, variant: "circular", src: notificationObject.message.sender.avatar, classes: { root: classes.avatar } }) }) })), primary: _jsxs(_Fragment, { children: [isToastTemplate && (_jsxs(Box, { children: [_jsx(Link, Object.assign({}, (!notificationObject.message.sender.deleted && {
83
+ }), { onClick: notificationObject.message.sender.deleted ? () => setOpenAlert(true) : null }, { children: _jsx(UserAvatar, Object.assign({ hide: !notificationObject.message.sender.community_badge, smaller: true }, { children: _jsx(Avatar, { alt: notificationObject.message.sender.username, variant: "circular", src: notificationObject.message.sender.avatar, classes: { root: classes.avatar } }) })) })), primary: _jsxs(_Fragment, { children: [isToastTemplate && (_jsxs(Box, { children: [_jsx(Link, Object.assign({}, (!notificationObject.message.sender.deleted && {
84
84
  to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.message.sender)
85
- }), { onClick: notificationObject.message.sender.deleted ? () => setOpenAlert(true) : null, children: notificationObject.message.sender.username })), ' ', _jsx(FormattedMessage, { id: 'ui.userToastNotifications.privateMessage.sentMessage', defaultMessage: 'ui.userToastNotifications.privateMessage.sentMessage' }), ":", _jsx(Box, { className: classes.messageWrap, children: _jsx(Link, { to: ((_a = notificationObject.message) === null || _a === void 0 ? void 0 : _a.group)
85
+ }), { onClick: notificationObject.message.sender.deleted ? () => setOpenAlert(true) : null }, { children: notificationObject.message.sender.username })), ' ', _jsx(FormattedMessage, { id: 'ui.userToastNotifications.privateMessage.sentMessage', defaultMessage: 'ui.userToastNotifications.privateMessage.sentMessage' }), ":", _jsx(Box, Object.assign({ className: classes.messageWrap }, { children: _jsx(Link, Object.assign({ to: ((_a = notificationObject.message) === null || _a === void 0 ? void 0 : _a.group)
86
86
  ? scRoutingContext.url(SCRoutes.GROUP_MESSAGES_ROUTE_NAME, notificationObject.message.group)
87
- : scRoutingContext.url(SCRoutes.USER_PRIVATE_MESSAGES_ROUTE_NAME, notificationObject.message.sender), className: classes.message, children: _jsx(Typography, { variant: "body2", dangerouslySetInnerHTML: { __html: notificationObject.message.message } }) }) })] })), isSnippetTemplate && (_jsx(Box, { children: _jsxs(Typography, { component: "div", color: "inherit", children: [_jsx(Link, Object.assign({}, (!notificationObject.message.sender.deleted && {
87
+ : scRoutingContext.url(SCRoutes.USER_PRIVATE_MESSAGES_ROUTE_NAME, notificationObject.message.sender), className: classes.message }, { children: _jsx(Typography, { variant: "body2", dangerouslySetInnerHTML: { __html: notificationObject.message.message } }) })) }))] })), isSnippetTemplate && (_jsx(Box, { children: _jsxs(Typography, Object.assign({ component: "div", color: "inherit" }, { children: [_jsx(Link, Object.assign({}, (!notificationObject.message.sender.deleted && {
88
88
  to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.message.sender)
89
- }), { onClick: notificationObject.message.sender.deleted ? () => setOpenAlert(true) : null, className: classes.username, children: notificationObject.message.sender.username })), ' ', _jsx(Link, { to: ((_b = notificationObject.message) === null || _b === void 0 ? void 0 : _b.group)
89
+ }), { onClick: notificationObject.message.sender.deleted ? () => setOpenAlert(true) : null, className: classes.username }, { children: notificationObject.message.sender.username })), ' ', _jsx(Link, Object.assign({ to: ((_b = notificationObject.message) === null || _b === void 0 ? void 0 : _b.group)
90
90
  ? scRoutingContext.url(SCRoutes.GROUP_MESSAGES_ROUTE_NAME, notificationObject.message.group)
91
- : scRoutingContext.url(SCRoutes.USER_PRIVATE_MESSAGES_ROUTE_NAME, notificationObject.message.sender), className: classes.messageLabel, children: intl.formatMessage(messages.receivePrivateMessage, {
91
+ : scRoutingContext.url(SCRoutes.USER_PRIVATE_MESSAGES_ROUTE_NAME, notificationObject.message.sender), className: classes.messageLabel }, { children: intl.formatMessage(messages.receivePrivateMessage, {
92
92
  total: 1,
93
93
  b: (...chunks) => _jsx("strong", { children: chunks })
94
- }) })] }) }))] }), footer: isToastTemplate && (_jsxs(Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2, children: [_jsx(DateTimeAgo, { date: notificationObject.active_at }), _jsx(Typography, { color: "primary", children: _jsx(Link, { to: ((_c = notificationObject.message) === null || _c === void 0 ? void 0 : _c.group)
94
+ }) }))] })) }))] }), footer: isToastTemplate && (_jsxs(Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: [_jsx(DateTimeAgo, { date: notificationObject.active_at }), _jsx(Typography, Object.assign({ color: "primary" }, { children: _jsx(Link, Object.assign({ to: ((_c = notificationObject.message) === null || _c === void 0 ? void 0 : _c.group)
95
95
  ? scRoutingContext.url(SCRoutes.GROUP_MESSAGES_ROUTE_NAME, notificationObject.message.group)
96
- : scRoutingContext.url(SCRoutes.USER_PRIVATE_MESSAGES_ROUTE_NAME, notificationObject.message.sender), children: scUserContext.user && follower ? (_jsx(FormattedMessage, { id: "ui.userToastNotifications.replyMessage", defaultMessage: 'ui.userToastNotifications.replyMessage' })) : (_jsx(FormattedMessage, { id: "ui.userToastNotifications.viewMessage", defaultMessage: 'ui.userToastNotifications.viewMessage' })) }) })] })) }, rest)));
96
+ : scRoutingContext.url(SCRoutes.USER_PRIVATE_MESSAGES_ROUTE_NAME, notificationObject.message.sender) }, { children: scUserContext.user && follower ? (_jsx(FormattedMessage, { id: "ui.userToastNotifications.replyMessage", defaultMessage: 'ui.userToastNotifications.replyMessage' })) : (_jsx(FormattedMessage, { id: "ui.userToastNotifications.viewMessage", defaultMessage: 'ui.userToastNotifications.viewMessage' })) })) }))] }))) }, rest)));
97
97
  }
98
- return (_jsxs(_Fragment, { children: [_jsx(Root, Object.assign({ id: id, className: classNames(classes.root, className, `${PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, actions: _jsxs(Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2, children: [_jsx(DateTimeAgo, { date: notificationObject.active_at, className: classes.activeAt }), _jsx(LoadingButton, { color: 'primary', variant: "outlined", size: "small", classes: { root: classes.replyButton }, component: Link, loading: notificationObject.message.sender.deleted
98
+ return (_jsxs(_Fragment, { children: [_jsx(Root, Object.assign({ id: id, className: classNames(classes.root, className, `${PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, actions: _jsxs(Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: [_jsx(DateTimeAgo, { date: notificationObject.active_at, className: classes.activeAt }), _jsx(LoadingButton, Object.assign({ color: 'primary', variant: "outlined", size: "small", classes: { root: classes.replyButton }, component: Link, loading: notificationObject.message.sender.deleted
99
99
  ? null
100
100
  : scUserContext.user
101
101
  ? follower === null || manager.isLoading(notificationObject.message.sender)
102
102
  : null, to: ((_d = notificationObject.message) === null || _d === void 0 ? void 0 : _d.group)
103
103
  ? scRoutingContext.url(SCRoutes.GROUP_MESSAGES_ROUTE_NAME, notificationObject.message.group)
104
- : scRoutingContext.url(SCRoutes.USER_PRIVATE_MESSAGES_ROUTE_NAME, notificationObject.message.sender), children: scUserContext.user && follower ? (_jsx(FormattedMessage, { id: "ui.notification.privateMessage.btnReplyLabel", defaultMessage: "ui.notification.privateMessage.btnReplyLabel" })) : (_jsx(FormattedMessage, { id: "ui.notification.privateMessage.btnViewLabel", defaultMessage: "ui.notification.privateMessage.btnViewLabel" })) })] }), primary: _jsx(Box, { className: classes.messageWrap, children: _jsx(Link, { to: ((_e = notificationObject.message) === null || _e === void 0 ? void 0 : _e.group)
104
+ : scRoutingContext.url(SCRoutes.USER_PRIVATE_MESSAGES_ROUTE_NAME, notificationObject.message.sender) }, { children: scUserContext.user && follower ? (_jsx(FormattedMessage, { id: "ui.notification.privateMessage.btnReplyLabel", defaultMessage: "ui.notification.privateMessage.btnReplyLabel" })) : (_jsx(FormattedMessage, { id: "ui.notification.privateMessage.btnViewLabel", defaultMessage: "ui.notification.privateMessage.btnViewLabel" })) }))] })), primary: _jsx(Box, Object.assign({ className: classes.messageWrap }, { children: _jsx(Link, Object.assign({ to: ((_e = notificationObject.message) === null || _e === void 0 ? void 0 : _e.group)
105
105
  ? scRoutingContext.url(SCRoutes.GROUP_MESSAGES_ROUTE_NAME, notificationObject.message.group)
106
- : scRoutingContext.url(SCRoutes.USER_PRIVATE_MESSAGES_ROUTE_NAME, notificationObject.message.sender), className: classes.message, children: _jsx(Typography, { variant: "body2", dangerouslySetInnerHTML: { __html: notificationObject.message.message } }) }) }) }, rest)), openAlert && _jsx(UserDeletedSnackBar, { open: openAlert, handleClose: () => setOpenAlert(false) })] }));
106
+ : scRoutingContext.url(SCRoutes.USER_PRIVATE_MESSAGES_ROUTE_NAME, notificationObject.message.sender), className: classes.message }, { children: _jsx(Typography, { variant: "body2", dangerouslySetInnerHTML: { __html: notificationObject.message.message } }) })) })) }, rest)), openAlert && _jsx(UserDeletedSnackBar, { open: openAlert, handleClose: () => setOpenAlert(false) })] }));
107
107
  }
@@ -36,5 +36,5 @@ const Root = styled(Widget, {
36
36
  export default function NotificationSkeleton(props) {
37
37
  const theme = useTheme();
38
38
  const notification = (_jsx(_Fragment, { children: _jsx(CardHeader, { avatar: _jsx(Skeleton, { animation: "wave", variant: "circular", width: theme.selfcommunity.user.avatar.sizeMedium, height: theme.selfcommunity.user.avatar.sizeMedium }), title: _jsx(Skeleton, { animation: "wave", height: 10, width: "80%", style: { marginBottom: 6 } }), subheader: _jsx(Skeleton, { animation: "wave", height: 10, width: "40%" }) }) }));
39
- return (_jsxs(Root, Object.assign({ className: classes.root }, props, { children: [_jsxs(CardContent, { sx: { paddingBottom: 1 }, children: [_jsx(Skeleton, { animation: "wave", height: 20, style: { marginBottom: 0 } }), _jsx(Skeleton, { animation: "wave", height: 15, width: "60%", style: { marginBottom: 0 } })] }), [...Array(Math.floor(Math.random() * 5) + 1)].map((x, i) => (_jsx(React.Fragment, { children: notification }, i)))] })));
39
+ return (_jsxs(Root, Object.assign({ className: classes.root }, props, { children: [_jsxs(CardContent, Object.assign({ sx: { paddingBottom: 1 } }, { children: [_jsx(Skeleton, { animation: "wave", height: 20, style: { marginBottom: 0 } }), _jsx(Skeleton, { animation: "wave", height: 15, width: "60%", style: { marginBottom: 0 } })] })), [...Array(Math.floor(Math.random() * 5) + 1)].map((x, i) => (_jsx(React.Fragment, { children: notification }, i)))] })));
40
40
  }
@@ -40,5 +40,5 @@ export default function UndeletedForNotification(props) {
40
40
  /**
41
41
  * Renders root object
42
42
  */
43
- return (_jsx(Root, Object.assign({ id: id, className: classNames(classes.root, className, `${PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: _jsx(Avatar, { variant: "circular", classes: { root: classes.undeletedIcon }, children: _jsx(Icon, { children: "outlined_flag" }) }), primary: _jsx(_Fragment, { children: isSnippetTemplate ? (_jsx(Link, { to: scRoutingContext.url(SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], getRouteData(notificationObject[contributionType])), children: _jsx(Typography, { component: "div", color: "inherit", className: classes.undeletedText, children: _jsx(FormattedMessage, { id: "ui.notification.undeletedFor.restoredContentSnippet", defaultMessage: "ui.notification.undeletedFor.restoredContentSnippet" }) }) })) : (_jsx(Typography, { component: "div", color: "inherit", className: classes.undeletedText, children: _jsx(FormattedMessage, { id: "ui.notification.undeletedFor.restoredContent", defaultMessage: "ui.notification.undeletedFor.restoredContent" }) })) }), secondary: (template === SCNotificationObjectTemplateType.DETAIL || template === SCNotificationObjectTemplateType.SNIPPET) && (_jsx(DateTimeAgo, { date: notificationObject.active_at, className: classes.activeAt })), footer: isSnippetTemplate ? null : (_jsxs(_Fragment, { children: [_jsxs(Box, { className: classes.contributionWrap, children: [_jsx(Typography, { variant: 'body2', color: 'inherit', component: 'div', classes: { root: classes.contributionYouWroteLabel }, children: _jsx(FormattedMessage, { id: "ui.notification.undeletedFor.youWrote", defaultMessage: "ui.notification.undeletedFor.youWrote" }) }), _jsx(Link, { to: scRoutingContext.url(SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], getRouteData(notificationObject[contributionType])), className: classes.contributionText, children: _jsx(Typography, { component: 'span', variant: "body2", children: getContributionSnippet(notificationObject[contributionType]) }) })] }), template === SCNotificationObjectTemplateType.TOAST && (_jsxs(Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2, children: [_jsx(DateTimeAgo, { date: notificationObject.active_at }), _jsx(Typography, { color: "primary", component: 'div', children: _jsx(Link, { to: scRoutingContext.url(SCRoutes[`${notificationObject[contributionType]['type'].toUpperCase()}_ROUTE_NAME`], getRouteData(notificationObject[contributionType])), children: _jsx(FormattedMessage, { id: "ui.userToastNotifications.viewContribution", defaultMessage: 'ui.userToastNotifications.viewContribution' }) }) })] }))] })) }, rest)));
43
+ return (_jsx(Root, Object.assign({ id: id, className: classNames(classes.root, className, `${PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: _jsx(Avatar, Object.assign({ variant: "circular", classes: { root: classes.undeletedIcon } }, { children: _jsx(Icon, { children: "outlined_flag" }) })), primary: _jsx(_Fragment, { children: isSnippetTemplate ? (_jsx(Link, Object.assign({ to: scRoutingContext.url(SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], getRouteData(notificationObject[contributionType])) }, { children: _jsx(Typography, Object.assign({ component: "div", color: "inherit", className: classes.undeletedText }, { children: _jsx(FormattedMessage, { id: "ui.notification.undeletedFor.restoredContentSnippet", defaultMessage: "ui.notification.undeletedFor.restoredContentSnippet" }) })) }))) : (_jsx(Typography, Object.assign({ component: "div", color: "inherit", className: classes.undeletedText }, { children: _jsx(FormattedMessage, { id: "ui.notification.undeletedFor.restoredContent", defaultMessage: "ui.notification.undeletedFor.restoredContent" }) }))) }), secondary: (template === SCNotificationObjectTemplateType.DETAIL || template === SCNotificationObjectTemplateType.SNIPPET) && (_jsx(DateTimeAgo, { date: notificationObject.active_at, className: classes.activeAt })), footer: isSnippetTemplate ? null : (_jsxs(_Fragment, { children: [_jsxs(Box, Object.assign({ className: classes.contributionWrap }, { children: [_jsx(Typography, Object.assign({ variant: 'body2', color: 'inherit', component: 'div', classes: { root: classes.contributionYouWroteLabel } }, { children: _jsx(FormattedMessage, { id: "ui.notification.undeletedFor.youWrote", defaultMessage: "ui.notification.undeletedFor.youWrote" }) })), _jsx(Link, Object.assign({ to: scRoutingContext.url(SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], getRouteData(notificationObject[contributionType])), className: classes.contributionText }, { children: _jsx(Typography, Object.assign({ component: 'span', variant: "body2" }, { children: getContributionSnippet(notificationObject[contributionType]) })) }))] })), template === SCNotificationObjectTemplateType.TOAST && (_jsxs(Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: [_jsx(DateTimeAgo, { date: notificationObject.active_at }), _jsx(Typography, Object.assign({ color: "primary", component: 'div' }, { children: _jsx(Link, Object.assign({ to: scRoutingContext.url(SCRoutes[`${notificationObject[contributionType]['type'].toUpperCase()}_ROUTE_NAME`], getRouteData(notificationObject[contributionType])) }, { children: _jsx(FormattedMessage, { id: "ui.userToastNotifications.viewContribution", defaultMessage: 'ui.userToastNotifications.viewContribution' }) })) }))] })))] })) }, rest)));
44
44
  }
@@ -44,11 +44,11 @@ export default function UserBlockedNotification(props) {
44
44
  /**
45
45
  * Renders root object
46
46
  */
47
- return (_jsx(Root, Object.assign({ id: id, className: classNames(classes.root, className, `${PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: _jsx(Avatar, { variant: "circular", classes: {
47
+ return (_jsx(Root, Object.assign({ id: id, className: classNames(classes.root, className, `${PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: _jsx(Avatar, Object.assign({ variant: "circular", classes: {
48
48
  root: classNames(classes.unBlockedIcon, {
49
49
  [classes.blockedIcon]: notificationObject.type === SCNotificationTypologyType.BLOCKED_USER
50
50
  })
51
- }, children: _jsx(Icon, { children: "outlined_flag" }) }), primary: _jsx(Typography, { component: "div", color: "inherit", className: classes.blockedText, children: notificationObject.type === SCNotificationTypologyType.BLOCKED_USER
51
+ } }, { children: _jsx(Icon, { children: "outlined_flag" }) })), primary: _jsx(Typography, Object.assign({ component: "div", color: "inherit", className: classes.blockedText }, { children: notificationObject.type === SCNotificationTypologyType.BLOCKED_USER
52
52
  ? intl.formatMessage(messages.accountBlocked, { b: (...chunks) => _jsx("strong", { children: chunks }) })
53
- : intl.formatMessage(messages.accountReactivated, { b: (...chunks) => _jsx("strong", { children: chunks }) }) }), secondary: (template === SCNotificationObjectTemplateType.DETAIL || template === SCNotificationObjectTemplateType.SNIPPET) && (_jsx(DateTimeAgo, { date: notificationObject.active_at, className: classes.activeAt })), footer: template === SCNotificationObjectTemplateType.TOAST && (_jsx(Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2, children: _jsx(DateTimeAgo, { date: notificationObject.active_at }) })) }, rest)));
53
+ : intl.formatMessage(messages.accountReactivated, { b: (...chunks) => _jsx("strong", { children: chunks }) }) })), secondary: (template === SCNotificationObjectTemplateType.DETAIL || template === SCNotificationObjectTemplateType.SNIPPET) && (_jsx(DateTimeAgo, { date: notificationObject.active_at, className: classes.activeAt })), footer: template === SCNotificationObjectTemplateType.TOAST && (_jsx(Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: _jsx(DateTimeAgo, { date: notificationObject.active_at }) }))) }, rest)));
54
54
  }
@@ -53,7 +53,7 @@ export default function UserConnectionNotification(props) {
53
53
  /**
54
54
  * Renders root object
55
55
  */
56
- return (_jsxs(_Fragment, { children: [_jsx(Root, Object.assign({ id: id, className: classNames(classes.root, className, `${PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: _jsx(Link, Object.assign({}, (!userConnection.deleted && { to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, userConnection) }), { onClick: userConnection.deleted ? () => setOpenAlert(true) : null, children: _jsx(UserAvatar, { hide: !userConnection.community_badge, smaller: true, children: _jsx(Avatar, { alt: userConnection.username, variant: "circular", src: userConnection.avatar, classes: { root: classes.avatar } }) }) })), primary: _jsxs(Typography, { component: "div", color: "inherit", className: classes.connectionText, children: [_jsx(Link, Object.assign({}, (!userConnection.deleted && { to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, userConnection) }), { onClick: userConnection.deleted ? () => setOpenAlert(true) : null, className: classes.username, children: userConnection.username })), ' ', notificationObject.type === SCNotificationTypologyType.CONNECTION_REQUEST
56
+ return (_jsxs(_Fragment, { children: [_jsx(Root, Object.assign({ id: id, className: classNames(classes.root, className, `${PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: _jsx(Link, Object.assign({}, (!userConnection.deleted && { to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, userConnection) }), { onClick: userConnection.deleted ? () => setOpenAlert(true) : null }, { children: _jsx(UserAvatar, Object.assign({ hide: !userConnection.community_badge, smaller: true }, { children: _jsx(Avatar, { alt: userConnection.username, variant: "circular", src: userConnection.avatar, classes: { root: classes.avatar } }) })) })), primary: _jsxs(Typography, Object.assign({ component: "div", color: "inherit", className: classes.connectionText }, { children: [_jsx(Link, Object.assign({}, (!userConnection.deleted && { to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, userConnection) }), { onClick: userConnection.deleted ? () => setOpenAlert(true) : null, className: classes.username }, { children: userConnection.username })), ' ', notificationObject.type === SCNotificationTypologyType.CONNECTION_REQUEST
57
57
  ? intl.formatMessage(messages.requestConnection, { b: (...chunks) => _jsx("strong", { children: chunks }) })
58
- : intl.formatMessage(messages.acceptConnection, { b: (...chunks) => _jsx("strong", { children: chunks }) })] }), secondary: (template === SCNotificationObjectTemplateType.DETAIL || template === SCNotificationObjectTemplateType.SNIPPET) && (_jsx(DateTimeAgo, { date: notificationObject.active_at, className: classes.activeAt })), footer: template === SCNotificationObjectTemplateType.TOAST && (_jsxs(Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2, children: [_jsx(DateTimeAgo, { date: notificationObject.active_at }), _jsx(Typography, { color: "primary", component: 'div', children: _jsx(Link, Object.assign({}, (!userConnection.deleted && { to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, userConnection) }), { onClick: userConnection.deleted ? () => setOpenAlert(true) : null, children: _jsx(FormattedMessage, { id: "ui.userToastNotifications.goToProfile", defaultMessage: 'ui.userToastNotifications.goToProfile' }) })) })] })) }, rest)), openAlert && _jsx(UserDeletedSnackBar, { open: openAlert, handleClose: () => setOpenAlert(false) })] }));
58
+ : intl.formatMessage(messages.acceptConnection, { b: (...chunks) => _jsx("strong", { children: chunks }) })] })), secondary: (template === SCNotificationObjectTemplateType.DETAIL || template === SCNotificationObjectTemplateType.SNIPPET) && (_jsx(DateTimeAgo, { date: notificationObject.active_at, className: classes.activeAt })), footer: template === SCNotificationObjectTemplateType.TOAST && (_jsxs(Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: [_jsx(DateTimeAgo, { date: notificationObject.active_at }), _jsx(Typography, Object.assign({ color: "primary", component: 'div' }, { children: _jsx(Link, Object.assign({}, (!userConnection.deleted && { to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, userConnection) }), { onClick: userConnection.deleted ? () => setOpenAlert(true) : null }, { children: _jsx(FormattedMessage, { id: "ui.userToastNotifications.goToProfile", defaultMessage: 'ui.userToastNotifications.goToProfile' }) })) }))] }))) }, rest)), openAlert && _jsx(UserDeletedSnackBar, { open: openAlert, handleClose: () => setOpenAlert(false) })] }));
59
59
  }
@@ -46,7 +46,7 @@ export default function UserFollowNotification(props) {
46
46
  /**
47
47
  * Renders root object
48
48
  */
49
- return (_jsxs(_Fragment, { children: [_jsx(Root, Object.assign({ id: id, className: classNames(classes.root, className, `${PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: _jsx(Link, Object.assign({}, (!notificationObject.follower.deleted && { to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.follower) }), { onClick: notificationObject.follower.deleted ? () => setOpenAlert(true) : null, children: _jsx(UserAvatar, { hide: !notificationObject.follower.community_badge, smaller: true, children: _jsx(Avatar, { alt: notificationObject.follower.username, variant: "circular", src: notificationObject.follower.avatar, classes: { root: classes.avatar } }) }) })), primary: _jsxs(Typography, { component: "div", color: "inherit", className: classes.followText, children: [_jsx(Link, Object.assign({}, (!notificationObject.follower.deleted && { to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.follower) }), { onClick: notificationObject.follower.deleted ? () => setOpenAlert(true) : null, className: classes.username, children: notificationObject.follower.username })), ' ', intl.formatMessage(messages.followUser, { b: (...chunks) => _jsx("strong", { children: chunks }) })] }), secondary: (template === SCNotificationObjectTemplateType.DETAIL || template === SCNotificationObjectTemplateType.SNIPPET) && (_jsx(DateTimeAgo, { date: notificationObject.active_at, className: classes.activeAt })), footer: template === SCNotificationObjectTemplateType.TOAST && (_jsxs(Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2, children: [_jsx(DateTimeAgo, { date: notificationObject.active_at }), _jsx(Typography, { color: "primary", component: 'div', children: _jsx(Link, Object.assign({}, (!notificationObject.follower.deleted && {
49
+ return (_jsxs(_Fragment, { children: [_jsx(Root, Object.assign({ id: id, className: classNames(classes.root, className, `${PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: _jsx(Link, Object.assign({}, (!notificationObject.follower.deleted && { to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.follower) }), { onClick: notificationObject.follower.deleted ? () => setOpenAlert(true) : null }, { children: _jsx(UserAvatar, Object.assign({ hide: !notificationObject.follower.community_badge, smaller: true }, { children: _jsx(Avatar, { alt: notificationObject.follower.username, variant: "circular", src: notificationObject.follower.avatar, classes: { root: classes.avatar } }) })) })), primary: _jsxs(Typography, Object.assign({ component: "div", color: "inherit", className: classes.followText }, { children: [_jsx(Link, Object.assign({}, (!notificationObject.follower.deleted && { to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.follower) }), { onClick: notificationObject.follower.deleted ? () => setOpenAlert(true) : null, className: classes.username }, { children: notificationObject.follower.username })), ' ', intl.formatMessage(messages.followUser, { b: (...chunks) => _jsx("strong", { children: chunks }) })] })), secondary: (template === SCNotificationObjectTemplateType.DETAIL || template === SCNotificationObjectTemplateType.SNIPPET) && (_jsx(DateTimeAgo, { date: notificationObject.active_at, className: classes.activeAt })), footer: template === SCNotificationObjectTemplateType.TOAST && (_jsxs(Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: [_jsx(DateTimeAgo, { date: notificationObject.active_at }), _jsx(Typography, Object.assign({ color: "primary", component: 'div' }, { children: _jsx(Link, Object.assign({}, (!notificationObject.follower.deleted && {
50
50
  to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.follower)
51
- }), { onClick: notificationObject.follower.deleted ? () => setOpenAlert(true) : null, children: _jsx(FormattedMessage, { id: "ui.userToastNotifications.goToProfile", defaultMessage: 'ui.userToastNotifications.goToProfile' }) })) })] })) }, rest)), openAlert && _jsx(UserDeletedSnackBar, { open: openAlert, handleClose: () => setOpenAlert(false) })] }));
51
+ }), { onClick: notificationObject.follower.deleted ? () => setOpenAlert(true) : null }, { children: _jsx(FormattedMessage, { id: "ui.userToastNotifications.goToProfile", defaultMessage: 'ui.userToastNotifications.goToProfile' }) })) }))] }))) }, rest)), openAlert && _jsx(UserDeletedSnackBar, { open: openAlert, handleClose: () => setOpenAlert(false) })] }));
52
52
  }
@@ -51,8 +51,8 @@ export default function VoteUpNotification(props) {
51
51
  /**
52
52
  * Renders root object
53
53
  */
54
- return (_jsxs(_Fragment, { children: [_jsx(Root, Object.assign({ id: id, className: classNames(classes.root, className, `${PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: _jsx(Link, Object.assign({}, (!notificationObject.user.deleted && { to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.user) }), { onClick: notificationObject.user.deleted ? () => setOpenAlert(true) : null, children: _jsx(UserAvatar, { hide: !notificationObject.user.community_badge, smaller: true, children: _jsx(Avatar, { alt: notificationObject.user.username, variant: "circular", src: notificationObject.user.avatar, classes: { root: classes.avatar } }) }) })), primary: _jsxs(_Fragment, { children: [_jsx(Link, Object.assign({}, (!notificationObject.user.deleted && { to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.user) }), { onClick: notificationObject.user.deleted ? () => setOpenAlert(true) : null, className: classes.username, children: notificationObject.user.username })), ' ', intl.formatMessage(messages.appreciated, {
54
+ return (_jsxs(_Fragment, { children: [_jsx(Root, Object.assign({ id: id, className: classNames(classes.root, className, `${PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: _jsx(Link, Object.assign({}, (!notificationObject.user.deleted && { to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.user) }), { onClick: notificationObject.user.deleted ? () => setOpenAlert(true) : null }, { children: _jsx(UserAvatar, Object.assign({ hide: !notificationObject.user.community_badge, smaller: true }, { children: _jsx(Avatar, { alt: notificationObject.user.username, variant: "circular", src: notificationObject.user.avatar, classes: { root: classes.avatar } }) })) })), primary: _jsxs(_Fragment, { children: [_jsx(Link, Object.assign({}, (!notificationObject.user.deleted && { to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.user) }), { onClick: notificationObject.user.deleted ? () => setOpenAlert(true) : null, className: classes.username }, { children: notificationObject.user.username })), ' ', intl.formatMessage(messages.appreciated, {
55
55
  username: notificationObject.user.username,
56
56
  b: (...chunks) => _jsx("strong", { children: chunks })
57
- })] }), secondary: _jsxs(_Fragment, { children: [_jsx(Link, { to: scRoutingContext.url(SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], getRouteData(notificationObject[contributionType])), children: _jsx(Typography, { variant: "body2", className: classes.contributionText, component: 'div', children: getContributionSnippet(notificationObject[contributionType]) }) }), (template === SCNotificationObjectTemplateType.DETAIL || template === SCNotificationObjectTemplateType.SNIPPET) && (_jsx(DateTimeAgo, { date: notificationObject.active_at, className: classes.activeAt }))] }), footer: template === SCNotificationObjectTemplateType.TOAST && (_jsxs(Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2, children: [_jsx(DateTimeAgo, { date: notificationObject.active_at }), _jsx(Typography, { color: "primary", component: 'div', children: _jsx(Link, { to: scRoutingContext.url(getContributionRouteName(contribution), getRouteData(contribution)), children: _jsx(FormattedMessage, { id: "ui.userToastNotifications.viewContribution", defaultMessage: 'ui.userToastNotifications.viewContribution' }) }) })] })) }, rest)), openAlert && _jsx(UserDeletedSnackBar, { open: openAlert, handleClose: () => setOpenAlert(false) })] }));
57
+ })] }), secondary: _jsxs(_Fragment, { children: [_jsx(Link, Object.assign({ to: scRoutingContext.url(SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], getRouteData(notificationObject[contributionType])) }, { children: _jsx(Typography, Object.assign({ variant: "body2", className: classes.contributionText, component: 'div' }, { children: getContributionSnippet(notificationObject[contributionType]) })) })), (template === SCNotificationObjectTemplateType.DETAIL || template === SCNotificationObjectTemplateType.SNIPPET) && (_jsx(DateTimeAgo, { date: notificationObject.active_at, className: classes.activeAt }))] }), footer: template === SCNotificationObjectTemplateType.TOAST && (_jsxs(Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: [_jsx(DateTimeAgo, { date: notificationObject.active_at }), _jsx(Typography, Object.assign({ color: "primary", component: 'div' }, { children: _jsx(Link, Object.assign({ to: scRoutingContext.url(getContributionRouteName(contribution), getRouteData(contribution)) }, { children: _jsx(FormattedMessage, { id: "ui.userToastNotifications.viewContribution", defaultMessage: 'ui.userToastNotifications.viewContribution' }) })) }))] }))) }, rest)), openAlert && _jsx(UserDeletedSnackBar, { open: openAlert, handleClose: () => setOpenAlert(false) })] }));
58
58
  }
@@ -66,16 +66,16 @@ export default function OnBoardingActionsButton(inProps) {
66
66
  const renderList = () => {
67
67
  if (isMobile) {
68
68
  return [
69
- isExpanded ? (_jsx(ListItem, { className: classes.item, children: _jsxs(ListItemButton, { onClick: onExpandChange, children: [_jsx(ListItemIcon, { children: _jsx(Icon, { children: "expand_less" }) }), _jsx(FormattedMessage, { id: "ui.onBoardingWidget.actionsMenu.view.less", defaultMessage: "ui.onBoardingWidget.actionsMenu.view.less" })] }) }, "expand_less")) : (_jsx(ListItem, { className: classes.item, children: _jsxs(ListItemButton, { onClick: onExpandChange, children: [_jsx(ListItemIcon, { children: _jsx(Icon, { children: "expand_more" }) }), _jsx(FormattedMessage, { id: "ui.onBoardingWidget.actionsMenu.view.more", defaultMessage: "ui.onBoardingWidget.actionsMenu.view.more" })] }) }, "expand_more")),
70
- _jsx(ListItem, { className: classes.item, children: _jsxs(ListItemButton, { onClick: hideOnBoarding, children: [_jsx(ListItemIcon, { children: _jsx(Icon, { children: "close" }) }), _jsx(FormattedMessage, { id: "ui.onBoardingWidget.actionsMenu.close", defaultMessage: "ui.onBoardingWidget.actionsMenu.close" })] }) }, "close")
69
+ isExpanded ? (_jsx(ListItem, Object.assign({ className: classes.item }, { children: _jsxs(ListItemButton, Object.assign({ onClick: onExpandChange }, { children: [_jsx(ListItemIcon, { children: _jsx(Icon, { children: "expand_less" }) }), _jsx(FormattedMessage, { id: "ui.onBoardingWidget.actionsMenu.view.less", defaultMessage: "ui.onBoardingWidget.actionsMenu.view.less" })] })) }), "expand_less")) : (_jsx(ListItem, Object.assign({ className: classes.item }, { children: _jsxs(ListItemButton, Object.assign({ onClick: onExpandChange }, { children: [_jsx(ListItemIcon, { children: _jsx(Icon, { children: "expand_more" }) }), _jsx(FormattedMessage, { id: "ui.onBoardingWidget.actionsMenu.view.more", defaultMessage: "ui.onBoardingWidget.actionsMenu.view.more" })] })) }), "expand_more")),
70
+ _jsx(ListItem, Object.assign({ className: classes.item }, { children: _jsxs(ListItemButton, Object.assign({ onClick: hideOnBoarding }, { children: [_jsx(ListItemIcon, { children: _jsx(Icon, { children: "close" }) }), _jsx(FormattedMessage, { id: "ui.onBoardingWidget.actionsMenu.close", defaultMessage: "ui.onBoardingWidget.actionsMenu.close" })] })) }), "close")
71
71
  ];
72
72
  }
73
73
  else {
74
74
  return [
75
- isExpanded ? (_jsxs(MenuItem, { className: classes.item, onClick: onExpandChange, children: [_jsx(ListItemIcon, { children: _jsx(Icon, { children: "expand_less" }) }), _jsx(FormattedMessage, { id: "ui.onBoardingWidget.actionsMenu.view.less", defaultMessage: "ui.onBoardingWidget.actionsMenu.view.less" })] }, "expand_less")) : (_jsxs(MenuItem, { className: classes.item, onClick: onExpandChange, children: [_jsx(ListItemIcon, { children: _jsx(Icon, { children: "expand_more" }) }), _jsx(FormattedMessage, { id: "ui.onBoardingWidget.actionsMenu.view.more", defaultMessage: "ui.onBoardingWidget.actionsMenu.view.more" })] }, "expand_more")),
76
- _jsxs(MenuItem, { className: classes.item, onClick: hideOnBoarding, children: [_jsx(ListItemIcon, { children: _jsx(Icon, { children: "close" }) }), _jsx(FormattedMessage, { id: "ui.onBoardingWidget.actionsMenu.close", defaultMessage: "ui.onBoardingWidget.actionsMenu.close" })] }, "close")
75
+ isExpanded ? (_jsxs(MenuItem, Object.assign({ className: classes.item, onClick: onExpandChange }, { children: [_jsx(ListItemIcon, { children: _jsx(Icon, { children: "expand_less" }) }), _jsx(FormattedMessage, { id: "ui.onBoardingWidget.actionsMenu.view.less", defaultMessage: "ui.onBoardingWidget.actionsMenu.view.less" })] }), "expand_less")) : (_jsxs(MenuItem, Object.assign({ className: classes.item, onClick: onExpandChange }, { children: [_jsx(ListItemIcon, { children: _jsx(Icon, { children: "expand_more" }) }), _jsx(FormattedMessage, { id: "ui.onBoardingWidget.actionsMenu.view.more", defaultMessage: "ui.onBoardingWidget.actionsMenu.view.more" })] }), "expand_more")),
76
+ _jsxs(MenuItem, Object.assign({ className: classes.item, onClick: hideOnBoarding }, { children: [_jsx(ListItemIcon, { children: _jsx(Icon, { children: "close" }) }), _jsx(FormattedMessage, { id: "ui.onBoardingWidget.actionsMenu.close", defaultMessage: "ui.onBoardingWidget.actionsMenu.close" })] }), "close")
77
77
  ];
78
78
  }
79
79
  };
80
- return (_jsxs(_Fragment, { children: [_jsx(Root, Object.assign({ className: classNames(classes.root, className) }, rest, { onClick: handleOpen, children: _jsx(Icon, { children: "more_vert" }) })), isMobile ? (_jsx(SwipeableDrawerRoot, { onClick: () => setAnchorEl(null), className: classes.drawerRoot, anchor: "bottom", open: Boolean(anchorEl), onClose: handleClose, onOpen: handleOpen, PaperProps: { className: classes.paper }, disableSwipeToOpen: true, children: _jsx(List, { children: renderList() }) })) : (_jsx(MenuRoot, { onClick: () => setAnchorEl(null), className: classes.menuRoot, anchorEl: anchorEl, open: Boolean(anchorEl), onClose: handleClose, PaperProps: { className: classes.paper }, children: renderList() }))] }));
80
+ return (_jsxs(_Fragment, { children: [_jsx(Root, Object.assign({ className: classNames(classes.root, className) }, rest, { onClick: handleOpen }, { children: _jsx(Icon, { children: "more_vert" }) })), isMobile ? (_jsx(SwipeableDrawerRoot, Object.assign({ onClick: () => setAnchorEl(null), className: classes.drawerRoot, anchor: "bottom", open: Boolean(anchorEl), onClose: handleClose, onOpen: handleOpen, PaperProps: { className: classes.paper }, disableSwipeToOpen: true }, { children: _jsx(List, { children: renderList() }) }))) : (_jsx(MenuRoot, Object.assign({ onClick: () => setAnchorEl(null), className: classes.menuRoot, anchorEl: anchorEl, open: Boolean(anchorEl), onClose: handleClose, PaperProps: { className: classes.paper } }, { children: renderList() })))] }));
81
81
  }