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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (610) hide show
  1. package/lib/cjs/components/AccountChangeMailValidation/AccountChangeMailValidation.js +3 -8
  2. package/lib/cjs/components/AccountDataPortability/AccountDataPortability.js +16 -25
  3. package/lib/cjs/components/AccountDataPortabilityButton/AccountDataPortabilityButton.js +3 -6
  4. package/lib/cjs/components/AccountDelete/AccountDelete.js +16 -23
  5. package/lib/cjs/components/AccountDeleteButton/AccountDeleteButton.js +3 -6
  6. package/lib/cjs/components/AccountRecover/AccountRecover.js +8 -12
  7. package/lib/cjs/components/AccountReset/AccountReset.js +3 -12
  8. package/lib/cjs/components/AccountVerify/AccountVerify.js +3 -8
  9. package/lib/cjs/components/BottomNavigation/BottomNavigation.js +19 -20
  10. package/lib/cjs/components/BroadcastMessages/BroadcastMessages.js +3 -10
  11. package/lib/cjs/components/BroadcastMessages/Message.js +6 -23
  12. package/lib/cjs/components/BroadcastMessages/Skeleton.js +3 -15
  13. package/lib/cjs/components/Categories/Categories.js +5 -10
  14. package/lib/cjs/components/Categories/Skeleton.js +2 -4
  15. package/lib/cjs/components/CategoriesPopularWidget/CategoriesPopularWidget.js +5 -17
  16. package/lib/cjs/components/CategoriesPopularWidget/Skeleton.js +2 -2
  17. package/lib/cjs/components/CategoriesSuggestionWidget/CategoriesSuggestionWidget.js +5 -17
  18. package/lib/cjs/components/CategoriesSuggestionWidget/Skeleton.js +2 -5
  19. package/lib/cjs/components/Category/Category.js +4 -4
  20. package/lib/cjs/components/Category/Skeleton.js +2 -3
  21. package/lib/cjs/components/CategoryAutocomplete/CategoryAutocomplete.js +6 -9
  22. package/lib/cjs/components/CategoryFollowButton/CategoryFollowButton.js +3 -2
  23. package/lib/cjs/components/CategoryFollowersButton/CategoryFollowersButton.js +3 -8
  24. package/lib/cjs/components/CategoryHeader/CategoryHeader.js +3 -12
  25. package/lib/cjs/components/CategoryHeader/Skeleton.js +2 -7
  26. package/lib/cjs/components/CategoryTrendingFeedWidget/CategoryTrendingFeedWidget.js +7 -19
  27. package/lib/cjs/components/CategoryTrendingFeedWidget/Skeleton.js +2 -4
  28. package/lib/cjs/components/CategoryTrendingUsersWidget/CategoryTrendingUsersWidget.js +5 -17
  29. package/lib/cjs/components/CategoryTrendingUsersWidget/Skeleton.js +2 -5
  30. package/lib/cjs/components/ChangeCover/ChangeCover.js +18 -41
  31. package/lib/cjs/components/ChangeGroupCover/ChangeGroupCover.js +4 -6
  32. package/lib/cjs/components/ChangeGroupPicture/ChangeGroupPicture.js +4 -6
  33. package/lib/cjs/components/ChangePicture/ChangePicture.js +3 -4
  34. package/lib/cjs/components/ChangePicture/ChangePictureDialog/ChangePictureDialog.js +10 -22
  35. package/lib/cjs/components/CommentObject/CommentObject.js +11 -37
  36. package/lib/cjs/components/CommentObject/Skeleton.js +2 -6
  37. package/lib/cjs/components/CommentObjectReply/CommentObjectReply.js +3 -12
  38. package/lib/cjs/components/CommentsFeedObject/CommentsFeedObject.js +8 -14
  39. package/lib/cjs/components/CommentsFeedObject/Skeleton.js +2 -3
  40. package/lib/cjs/components/CommentsObject/CommentsObject.js +27 -48
  41. package/lib/cjs/components/CommentsObject/Skeleton.js +2 -2
  42. package/lib/cjs/components/Composer/Attributes/Attributes.js +5 -8
  43. package/lib/cjs/components/Composer/Composer.js +24 -46
  44. package/lib/cjs/components/Composer/Content/ContentDiscussion/ContentDiscussion.js +8 -11
  45. package/lib/cjs/components/Composer/Content/ContentPoll/ContentPoll.js +9 -28
  46. package/lib/cjs/components/Composer/Content/ContentPost/ContentPost.js +3 -5
  47. package/lib/cjs/components/Composer/Layer/AudienceLayer/AudienceLayer.js +13 -31
  48. package/lib/cjs/components/Composer/Layer/CategoryLayer/CategoryLayer.js +2 -10
  49. package/lib/cjs/components/Composer/Layer/CloseLayer/CloseLayer.js +2 -16
  50. package/lib/cjs/components/Composer/Layer/LocationLayer/LocationLayer.js +2 -10
  51. package/lib/cjs/components/Composer/Skeleton.js +2 -3
  52. package/lib/cjs/components/Composer/TypeSwitchButtonGroup/TypeSwitchButtonGroup.js +3 -8
  53. package/lib/cjs/components/ComposerIconButton/ComposerIconButton.js +5 -8
  54. package/lib/cjs/components/ConnectionUserButton/ConnectionUserButton.js +2 -1
  55. package/lib/cjs/components/ConsentSolution/ConsentSolution.js +9 -58
  56. package/lib/cjs/components/ConsentSolution/Skeleton.js +3 -16
  57. package/lib/cjs/components/ConsentSolutionButton/ConsentSolutionButton.js +2 -4
  58. package/lib/cjs/components/CreateEventButton/CreateEventButton.js +2 -3
  59. package/lib/cjs/components/CreateGroupButton/CreateGroupButton.js +3 -4
  60. package/lib/cjs/components/CustomAdv/CustomAdv.js +5 -6
  61. package/lib/cjs/components/CustomAdv/Skeleton.js +2 -3
  62. package/lib/cjs/components/EditEventButton/EditEventButton.js +2 -3
  63. package/lib/cjs/components/EditGroupButton/EditGroupButton.js +2 -3
  64. package/lib/cjs/components/Editor/Editor.js +3 -21
  65. package/lib/cjs/components/Editor/Skeleton.js +2 -3
  66. package/lib/cjs/components/Editor/nodes/ImageNode.js +5 -6
  67. package/lib/cjs/components/Editor/plugins/AutoLinkPlugin.js +2 -11
  68. package/lib/cjs/components/Editor/plugins/EmojiPlugin.js +12 -15
  69. package/lib/cjs/components/Editor/plugins/FloatingLinkPlugin.js +7 -13
  70. package/lib/cjs/components/Editor/plugins/HashtagPlugin.js +11 -11
  71. package/lib/cjs/components/Editor/plugins/ImagePlugin.js +9 -10
  72. package/lib/cjs/components/Editor/plugins/LexicalRichTextPlugin.js +2 -12
  73. package/lib/cjs/components/Editor/plugins/MentionsPlugin.js +11 -16
  74. package/lib/cjs/components/Editor/plugins/OnChangePlugin.js +2 -3
  75. package/lib/cjs/components/Editor/plugins/ToolbarPlugin.js +9 -40
  76. package/lib/cjs/components/Editor/shared/useDecorators.js +2 -4
  77. package/lib/cjs/components/Event/Event.js +3 -10
  78. package/lib/cjs/components/Event/Skeleton.js +2 -8
  79. package/lib/cjs/components/EventForm/EventAddress.js +6 -14
  80. package/lib/cjs/components/EventForm/EventForm.js +46 -86
  81. package/lib/cjs/components/EventForm/UploadEventCover.js +4 -6
  82. package/lib/cjs/components/EventHeader/EventHeader.js +36 -52
  83. package/lib/cjs/components/EventHeader/Skeleton.js +2 -12
  84. package/lib/cjs/components/EventInfoWidget/EventInfoWidget.js +11 -13
  85. package/lib/cjs/components/EventInfoWidget/Skeleton.d.ts +1 -0
  86. package/lib/cjs/components/EventInfoWidget/Skeleton.js +20 -0
  87. package/lib/cjs/components/EventInfoWidget/index.d.ts +2 -1
  88. package/lib/cjs/components/EventInfoWidget/index.js +3 -1
  89. package/lib/cjs/components/EventInviteButton/EventInviteButton.js +4 -24
  90. package/lib/cjs/components/EventLocationWidget/EventLocationWidget.js +8 -16
  91. package/lib/cjs/components/EventLocationWidget/Skeleton.js +2 -8
  92. package/lib/cjs/components/EventSubscribeButton/EventSubscribeButton.js +12 -15
  93. package/lib/cjs/components/Events/Events.js +25 -52
  94. package/lib/cjs/components/Events/Skeleton.js +2 -4
  95. package/lib/cjs/components/Feed/Feed.js +11 -29
  96. package/lib/cjs/components/Feed/Skeleton.js +3 -12
  97. package/lib/cjs/components/FeedObject/Actions/Actions.js +2 -8
  98. package/lib/cjs/components/FeedObject/Actions/Comment/Comment.js +5 -11
  99. package/lib/cjs/components/FeedObject/Actions/Follow/Follow.js +6 -6
  100. package/lib/cjs/components/FeedObject/Actions/Share/Share.js +29 -60
  101. package/lib/cjs/components/FeedObject/Actions/Share/SharesDialog/SharesDialog.js +3 -5
  102. package/lib/cjs/components/FeedObject/Actions/Vote/Vote.js +2 -5
  103. package/lib/cjs/components/FeedObject/Activities/Activities.js +9 -10
  104. package/lib/cjs/components/FeedObject/Activities/ActivitiesMenu/ActivitiesMenu.js +23 -37
  105. package/lib/cjs/components/FeedObject/Activities/RelevantActivities/CommentActivity/CommentActivity.js +18 -20
  106. package/lib/cjs/components/FeedObject/Activities/RelevantActivities/FollowActivity/FollowActivity.js +5 -7
  107. package/lib/cjs/components/FeedObject/Activities/RelevantActivities/PollVoteActivity/PollVoteActivity.js +5 -7
  108. package/lib/cjs/components/FeedObject/Activities/RelevantActivities/RelevantActivities.js +7 -12
  109. package/lib/cjs/components/FeedObject/Activities/RelevantActivities/VoteUpActivity/VoteUpActivity.js +5 -7
  110. package/lib/cjs/components/FeedObject/Contributors/Contributors.js +3 -13
  111. package/lib/cjs/components/FeedObject/Contributors/Skeleton.js +2 -6
  112. package/lib/cjs/components/FeedObject/FeedObject.js +23 -110
  113. package/lib/cjs/components/FeedObject/Poll/Choice/Choice.js +3 -8
  114. package/lib/cjs/components/FeedObject/Poll/Poll.js +5 -21
  115. package/lib/cjs/components/FeedObject/Skeleton.js +4 -16
  116. package/lib/cjs/components/FeedObjectMediaPreview/FeedObjectMediaPreview.js +5 -6
  117. package/lib/cjs/components/FeedUpdatesWidget/FeedUpdatesWidget.js +5 -8
  118. package/lib/cjs/components/FeedUpdatesWidget/Skeleton.js +2 -2
  119. package/lib/cjs/components/FollowUserButton/FollowUserButton.js +5 -4
  120. package/lib/cjs/components/Footer/Footer.js +4 -7
  121. package/lib/cjs/components/Footer/Skeleton.js +2 -4
  122. package/lib/cjs/components/FriendshipUserButton/FriendshipUserButton.js +9 -8
  123. package/lib/cjs/components/Group/Group.js +7 -13
  124. package/lib/cjs/components/Group/Skeleton.js +2 -3
  125. package/lib/cjs/components/GroupAutocomplete/GroupAutocomplete.js +5 -8
  126. package/lib/cjs/components/GroupForm/GroupForm.js +36 -75
  127. package/lib/cjs/components/GroupHeader/GroupHeader.js +6 -34
  128. package/lib/cjs/components/GroupHeader/Skeleton.js +2 -12
  129. package/lib/cjs/components/GroupInfoWidget/GroupInfoWidget.js +24 -54
  130. package/lib/cjs/components/GroupInfoWidget/Skeleton.js +2 -3
  131. package/lib/cjs/components/GroupInviteButton/GroupInviteButton.js +4 -24
  132. package/lib/cjs/components/GroupInvitedWidget/GroupInvitedWidget.js +5 -18
  133. package/lib/cjs/components/GroupInvitedWidget/Skeleton.js +2 -3
  134. package/lib/cjs/components/GroupMembersButton/GroupMembersButton.js +3 -8
  135. package/lib/cjs/components/GroupMembersWidget/GroupMembersWidget.js +11 -28
  136. package/lib/cjs/components/GroupMembersWidget/Skeleton.js +2 -3
  137. package/lib/cjs/components/GroupRequestsWidget/GroupRequestsWidget.js +5 -16
  138. package/lib/cjs/components/GroupRequestsWidget/Skeleton.js +2 -3
  139. package/lib/cjs/components/GroupSettingsIconButton/GroupSettingsIconButton.js +13 -21
  140. package/lib/cjs/components/GroupSubscribeButton/GroupSubscribeButton.js +8 -7
  141. package/lib/cjs/components/Groups/Groups.js +10 -23
  142. package/lib/cjs/components/Groups/Skeleton.js +2 -4
  143. package/lib/cjs/components/Incubator/Incubator.js +8 -28
  144. package/lib/cjs/components/Incubator/Skeleton.js +2 -20
  145. package/lib/cjs/components/IncubatorDetail/IncubatorDetail.js +4 -46
  146. package/lib/cjs/components/IncubatorListWidget/CreateIncubatorDialog/CreateIncubatorDialog.js +5 -12
  147. package/lib/cjs/components/IncubatorListWidget/IncubatorListWidget.js +8 -32
  148. package/lib/cjs/components/IncubatorListWidget/Skeleton.js +2 -4
  149. package/lib/cjs/components/IncubatorSubscribeButton/IncubatorSubscribeButton.js +3 -2
  150. package/lib/cjs/components/IncubatorSuggestionWidget/IncubatorSuggestionWidget.js +5 -18
  151. package/lib/cjs/components/IncubatorSuggestionWidget/Skeleton.js +2 -4
  152. package/lib/cjs/components/InlineComposerWidget/InlineComposerWidget.js +5 -11
  153. package/lib/cjs/components/InlineComposerWidget/Skeleton.js +2 -7
  154. package/lib/cjs/components/LocationAutocomplete/LocationAutocomplete.js +6 -7
  155. package/lib/cjs/components/LoyaltyProgramWidget/LoyaltyProgramWidget.js +5 -13
  156. package/lib/cjs/components/LoyaltyProgramWidget/Skeleton.js +2 -11
  157. package/lib/cjs/components/NavigationMenuIconButton/DefaultDrawerContent.js +3 -11
  158. package/lib/cjs/components/NavigationMenuIconButton/DefaultHeaderContent.js +3 -4
  159. package/lib/cjs/components/NavigationMenuIconButton/NavigationMenuIconButton.js +4 -13
  160. package/lib/cjs/components/NavigationSettingsIconButton/NavigationSettingsIconButton.js +35 -75
  161. package/lib/cjs/components/NavigationToolbar/NavigationToolbar.js +14 -51
  162. package/lib/cjs/components/NavigationToolbar/NotificationMenu.js +2 -5
  163. package/lib/cjs/components/NavigationToolbar/Skeleton.js +2 -5
  164. package/lib/cjs/components/NavigationToolbarMobile/NavigationToolbarMobile.js +11 -27
  165. package/lib/cjs/components/NavigationToolbarMobile/Skeleton.js +2 -3
  166. package/lib/cjs/components/Notification/CollapsedFor/CollapsedFor.js +2 -15
  167. package/lib/cjs/components/Notification/Comment/Comment.js +11 -27
  168. package/lib/cjs/components/Notification/Contribution/Contribution.js +11 -28
  169. package/lib/cjs/components/Notification/ContributionFollow/ContributionFollow.js +4 -19
  170. package/lib/cjs/components/Notification/DeletedFor/DeletedFor.js +2 -17
  171. package/lib/cjs/components/Notification/Group/Group.js +17 -30
  172. package/lib/cjs/components/Notification/IncubatorApproved/IncubatorApproved.js +8 -16
  173. package/lib/cjs/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.js +2 -9
  174. package/lib/cjs/components/Notification/KindlyNoticeFor/KindlyNoticeFor.js +4 -16
  175. package/lib/cjs/components/Notification/Mention/Mention.js +7 -22
  176. package/lib/cjs/components/Notification/Notification.js +37 -57
  177. package/lib/cjs/components/Notification/PrivateMessage/PrivateMessage.js +24 -47
  178. package/lib/cjs/components/Notification/Skeleton.js +3 -7
  179. package/lib/cjs/components/Notification/UndeletedFor/UndeletedFor.js +2 -16
  180. package/lib/cjs/components/Notification/UserBlocked/UserBlocked.js +5 -7
  181. package/lib/cjs/components/Notification/UserConnection/UserConnection.js +5 -15
  182. package/lib/cjs/components/Notification/UserFollow/UserFollow.js +5 -15
  183. package/lib/cjs/components/Notification/VoteUp/VoteUp.js +6 -19
  184. package/lib/cjs/components/PlatformWidget/PlatformWidget.js +20 -53
  185. package/lib/cjs/components/PlatformWidget/Skeleton.js +2 -3
  186. package/lib/cjs/components/PollSuggestionWidget/PollSnippet/PollSnippet.js +3 -12
  187. package/lib/cjs/components/PollSuggestionWidget/PollSnippet/Skeleton.js +2 -2
  188. package/lib/cjs/components/PollSuggestionWidget/PollSuggestionWidget.js +5 -17
  189. package/lib/cjs/components/PollSuggestionWidget/Skeleton.js +2 -6
  190. package/lib/cjs/components/PrivateMessageComponent/PrivateMessageComponent.js +6 -9
  191. package/lib/cjs/components/PrivateMessageComponent/Skeleton.js +2 -6
  192. package/lib/cjs/components/PrivateMessageEditor/MessageMediaUploader/index.js +16 -37
  193. package/lib/cjs/components/PrivateMessageEditor/PrivateMessageEditor.js +9 -18
  194. package/lib/cjs/components/PrivateMessageEditor/Skeleton.js +2 -3
  195. package/lib/cjs/components/PrivateMessageSettingsIconButton/PrivateMessageSettingsIconButton.js +9 -31
  196. package/lib/cjs/components/PrivateMessageSnippetItem/PrivateMessageSnippetItem.js +12 -19
  197. package/lib/cjs/components/PrivateMessageSnippetItem/Skeleton.js +2 -5
  198. package/lib/cjs/components/PrivateMessageSnippets/PrivateMessageSnippets.js +8 -16
  199. package/lib/cjs/components/PrivateMessageSnippets/Skeleton.js +2 -8
  200. package/lib/cjs/components/PrivateMessageThread/PrivateMessageThread.js +14 -35
  201. package/lib/cjs/components/PrivateMessageThread/Skeleton.js +2 -9
  202. package/lib/cjs/components/PrivateMessageThreadItem/PrivateMessageThreadItem.js +15 -33
  203. package/lib/cjs/components/PrivateMessageThreadItem/Skeleton.js +2 -3
  204. package/lib/cjs/components/RelatedFeedObjectsWidget/RelatedFeedObjectsWidget.js +6 -21
  205. package/lib/cjs/components/RelatedFeedObjectsWidget/Skeleton.js +2 -3
  206. package/lib/cjs/components/SearchAutocomplete/SearchAutocomplete.js +5 -8
  207. package/lib/cjs/components/SearchDialog/SearchDialog.js +2 -4
  208. package/lib/cjs/components/Skeleton/AvatarGroupSkeleton.js +2 -3
  209. package/lib/cjs/components/Skeleton/GenericSkeleton.js +2 -6
  210. package/lib/cjs/components/SnippetNotifications/Skeleton.js +3 -3
  211. package/lib/cjs/components/SnippetNotifications/SnippetNotifications.js +23 -28
  212. package/lib/cjs/components/ToastNotifications/Skeleton.js +2 -3
  213. package/lib/cjs/components/ToastNotifications/ToastNotifications.js +16 -15
  214. package/lib/cjs/components/User/Skeleton.js +2 -3
  215. package/lib/cjs/components/User/User.js +6 -14
  216. package/lib/cjs/components/UserActionIconButton/UserActionIconButton.js +16 -31
  217. package/lib/cjs/components/UserConnectionsRequestsSentWidget/Skeleton.js +2 -3
  218. package/lib/cjs/components/UserConnectionsRequestsSentWidget/UserConnectionsRequestsSentWidget.js +5 -17
  219. package/lib/cjs/components/UserConnectionsRequestsWidget/Skeleton.js +2 -3
  220. package/lib/cjs/components/UserConnectionsRequestsWidget/UserConnectionsRequestsWidget.js +5 -17
  221. package/lib/cjs/components/UserConnectionsWidget/Skeleton.js +2 -3
  222. package/lib/cjs/components/UserConnectionsWidget/UserConnectionsWidget.js +5 -17
  223. package/lib/cjs/components/UserCounters/UserCounters.js +19 -28
  224. package/lib/cjs/components/UserFollowedCategoriesWidget/Skeleton.js +2 -2
  225. package/lib/cjs/components/UserFollowedCategoriesWidget/UserFollowedCategoriesWidget.js +5 -20
  226. package/lib/cjs/components/UserFollowedUsersWidget/Skeleton.js +2 -3
  227. package/lib/cjs/components/UserFollowedUsersWidget/UserFollowedUsersWidget.js +5 -17
  228. package/lib/cjs/components/UserFollowersWidget/Skeleton.js +2 -3
  229. package/lib/cjs/components/UserFollowersWidget/UserFollowersWidget.js +5 -17
  230. package/lib/cjs/components/UserInfo/Skeleton.js +2 -6
  231. package/lib/cjs/components/UserInfo/UserInfo.js +13 -14
  232. package/lib/cjs/components/UserInfoDialog/UserInfoDialog.js +3 -5
  233. package/lib/cjs/components/UserProfileBlocked/UserProfileBlocked.js +4 -11
  234. package/lib/cjs/components/UserProfileEdit/Section/Account.js +3 -13
  235. package/lib/cjs/components/UserProfileEdit/Section/AccountCredentials.js +15 -37
  236. package/lib/cjs/components/UserProfileEdit/Section/PublicInfo.js +15 -25
  237. package/lib/cjs/components/UserProfileEdit/Section/Settings.js +7 -37
  238. package/lib/cjs/components/UserProfileEdit/Section/SettingsSkeleton.js +2 -5
  239. package/lib/cjs/components/UserProfileEdit/Skeleton.js +2 -6
  240. package/lib/cjs/components/UserProfileEdit/UserProfileEdit.js +2 -9
  241. package/lib/cjs/components/UserProfileHeader/Skeleton.js +2 -13
  242. package/lib/cjs/components/UserProfileHeader/UserProfileHeader.js +4 -21
  243. package/lib/cjs/components/UserSocialAssociation/UserSocialAssociation.js +2 -16
  244. package/lib/cjs/components/UserSubscribedGroupsWidget/Skeleton.js +2 -6
  245. package/lib/cjs/components/UserSubscribedGroupsWidget/UserSubscribedGroupsWidget.js +7 -22
  246. package/lib/cjs/components/UserSuggestionWidget/Skeleton.js +2 -5
  247. package/lib/cjs/components/UserSuggestionWidget/UserSuggestionWidget.js +5 -17
  248. package/lib/cjs/components/VoteAudienceButton/VoteAudienceButton.js +9 -23
  249. package/lib/cjs/components/VoteButton/VoteButton.js +9 -15
  250. package/lib/cjs/components/Widget/index.js +3 -2
  251. package/lib/cjs/shared/AutoPlayer/index.js +6 -7
  252. package/lib/cjs/shared/BaseDialog/BaseDialog.js +3 -10
  253. package/lib/cjs/shared/BaseItem/BaseItem.js +4 -10
  254. package/lib/cjs/shared/BaseItemButton/BaseItemButton.js +4 -10
  255. package/lib/cjs/shared/Bullet/index.js +2 -1
  256. package/lib/cjs/shared/Calendar/index.js +2 -3
  257. package/lib/cjs/shared/CentralProgress/index.js +3 -4
  258. package/lib/cjs/shared/ConfirmDialog/ConfirmDialog.js +2 -9
  259. package/lib/cjs/shared/ConsentSolutionSwitch/index.js +5 -8
  260. package/lib/cjs/shared/ContributionActionsMenu/index.js +22 -85
  261. package/lib/cjs/shared/CustomSnackMessage/index.js +3 -7
  262. package/lib/cjs/shared/DateTimeAgo/index.js +2 -6
  263. package/lib/cjs/shared/EmailTextField/index.js +3 -2
  264. package/lib/cjs/shared/EmojiPicker/EmojiPicker.js +2 -2
  265. package/lib/cjs/shared/EventInfoDetails/index.js +5 -22
  266. package/lib/cjs/shared/HiddenPlaceholder/index.js +2 -3
  267. package/lib/cjs/shared/InfiniteScroll/index.js +8 -19
  268. package/lib/cjs/shared/InfiniteScroll/stories/InfiniteScrollWithHeight.js +3 -8
  269. package/lib/cjs/shared/InfiniteScroll/stories/PullDownToRefreshInfScroll.js +3 -7
  270. package/lib/cjs/shared/InfiniteScroll/stories/ScrollableTargetFixedInfScroll.js +13 -18
  271. package/lib/cjs/shared/InfiniteScroll/stories/ScrollableTargetInfScroll.js +3 -8
  272. package/lib/cjs/shared/InfiniteScroll/stories/ScrolleableTop.js +6 -11
  273. package/lib/cjs/shared/InfiniteScroll/stories/WindowInfiniteScrollComponent.js +3 -6
  274. package/lib/cjs/shared/LanguageSwitcher/index.js +3 -5
  275. package/lib/cjs/shared/Lightbox/Lightbox.js +4 -3
  276. package/lib/cjs/shared/MarkRead/MarkRead.js +3 -3
  277. package/lib/cjs/shared/Media/File/DisplayComponent.js +13 -42
  278. package/lib/cjs/shared/Media/File/Lightbox/index.js +5 -5
  279. package/lib/cjs/shared/Media/File/PreviewComponent.js +5 -9
  280. package/lib/cjs/shared/Media/File/TriggerButton.js +14 -25
  281. package/lib/cjs/shared/Media/File/asUploadButton.js +3 -2
  282. package/lib/cjs/shared/Media/Link/DisplayComponent.js +8 -15
  283. package/lib/cjs/shared/Media/Link/LayerComponent.js +2 -11
  284. package/lib/cjs/shared/Media/Link/PreviewComponent.js +2 -4
  285. package/lib/cjs/shared/Media/Link/TriggerButton.js +2 -3
  286. package/lib/cjs/shared/Media/Link/UrlTextField/index.js +5 -7
  287. package/lib/cjs/shared/Media/Share/DisplayComponent.js +3 -3
  288. package/lib/cjs/shared/MetadataField/MetadataField.js +8 -7
  289. package/lib/cjs/shared/NewChip/NewChip.js +2 -2
  290. package/lib/cjs/shared/NotificationItem/NotificationItem.js +3 -12
  291. package/lib/cjs/shared/PasswordTextField/index.js +4 -6
  292. package/lib/cjs/shared/PhoneTextField/index.js +3 -2
  293. package/lib/cjs/shared/ScrollContainer/index.js +2 -2
  294. package/lib/cjs/shared/StickyBox/index.js +6 -5
  295. package/lib/cjs/shared/TagChip/index.js +2 -2
  296. package/lib/cjs/shared/Tags/index.js +11 -23
  297. package/lib/cjs/shared/UrlTextField/index.js +3 -2
  298. package/lib/cjs/shared/UserAvatar/UserAvatar.js +3 -2
  299. package/lib/cjs/shared/UserDeletedSnackBar/UserDeletedSnackBar.js +3 -5
  300. package/lib/cjs/shared/UsernameTextField/index.js +3 -2
  301. package/lib/cjs/shared/VirtualizedScroller/VirtualScrollerChild.js +2 -2
  302. package/lib/cjs/shared/VirtualizedScroller/VirtualizedScroller.js +3 -2
  303. package/lib/cjs/utils/contribution.js +3 -4
  304. package/lib/cjs/utils/errors.js +3 -4
  305. package/lib/esm/components/AccountChangeMailValidation/AccountChangeMailValidation.js +3 -8
  306. package/lib/esm/components/AccountDataPortability/AccountDataPortability.js +16 -25
  307. package/lib/esm/components/AccountDataPortabilityButton/AccountDataPortabilityButton.js +3 -6
  308. package/lib/esm/components/AccountDelete/AccountDelete.js +16 -23
  309. package/lib/esm/components/AccountDeleteButton/AccountDeleteButton.js +3 -6
  310. package/lib/esm/components/AccountRecover/AccountRecover.js +8 -12
  311. package/lib/esm/components/AccountReset/AccountReset.js +3 -12
  312. package/lib/esm/components/AccountVerify/AccountVerify.js +3 -8
  313. package/lib/esm/components/BottomNavigation/BottomNavigation.js +19 -20
  314. package/lib/esm/components/BroadcastMessages/BroadcastMessages.js +3 -10
  315. package/lib/esm/components/BroadcastMessages/Message.js +6 -23
  316. package/lib/esm/components/BroadcastMessages/Skeleton.js +3 -15
  317. package/lib/esm/components/Categories/Categories.js +5 -10
  318. package/lib/esm/components/Categories/Skeleton.js +2 -4
  319. package/lib/esm/components/CategoriesPopularWidget/CategoriesPopularWidget.js +5 -17
  320. package/lib/esm/components/CategoriesPopularWidget/Skeleton.js +2 -2
  321. package/lib/esm/components/CategoriesSuggestionWidget/CategoriesSuggestionWidget.js +5 -17
  322. package/lib/esm/components/CategoriesSuggestionWidget/Skeleton.js +2 -5
  323. package/lib/esm/components/Category/Category.js +4 -4
  324. package/lib/esm/components/Category/Skeleton.js +2 -3
  325. package/lib/esm/components/CategoryAutocomplete/CategoryAutocomplete.js +6 -9
  326. package/lib/esm/components/CategoryFollowButton/CategoryFollowButton.js +3 -2
  327. package/lib/esm/components/CategoryFollowersButton/CategoryFollowersButton.js +3 -8
  328. package/lib/esm/components/CategoryHeader/CategoryHeader.js +3 -12
  329. package/lib/esm/components/CategoryHeader/Skeleton.js +2 -7
  330. package/lib/esm/components/CategoryTrendingFeedWidget/CategoryTrendingFeedWidget.js +7 -19
  331. package/lib/esm/components/CategoryTrendingFeedWidget/Skeleton.js +2 -4
  332. package/lib/esm/components/CategoryTrendingUsersWidget/CategoryTrendingUsersWidget.js +5 -17
  333. package/lib/esm/components/CategoryTrendingUsersWidget/Skeleton.js +2 -5
  334. package/lib/esm/components/ChangeCover/ChangeCover.js +18 -41
  335. package/lib/esm/components/ChangeGroupCover/ChangeGroupCover.js +4 -6
  336. package/lib/esm/components/ChangeGroupPicture/ChangeGroupPicture.js +4 -6
  337. package/lib/esm/components/ChangePicture/ChangePicture.js +3 -4
  338. package/lib/esm/components/ChangePicture/ChangePictureDialog/ChangePictureDialog.js +10 -22
  339. package/lib/esm/components/CommentObject/CommentObject.js +11 -37
  340. package/lib/esm/components/CommentObject/Skeleton.js +2 -6
  341. package/lib/esm/components/CommentObjectReply/CommentObjectReply.js +3 -12
  342. package/lib/esm/components/CommentsFeedObject/CommentsFeedObject.js +8 -14
  343. package/lib/esm/components/CommentsFeedObject/Skeleton.js +2 -2
  344. package/lib/esm/components/CommentsObject/CommentsObject.js +27 -48
  345. package/lib/esm/components/CommentsObject/Skeleton.js +2 -2
  346. package/lib/esm/components/Composer/Attributes/Attributes.js +5 -8
  347. package/lib/esm/components/Composer/Composer.js +24 -46
  348. package/lib/esm/components/Composer/Content/ContentDiscussion/ContentDiscussion.js +8 -11
  349. package/lib/esm/components/Composer/Content/ContentPoll/ContentPoll.js +9 -28
  350. package/lib/esm/components/Composer/Content/ContentPost/ContentPost.js +3 -5
  351. package/lib/esm/components/Composer/Layer/AudienceLayer/AudienceLayer.js +13 -31
  352. package/lib/esm/components/Composer/Layer/CategoryLayer/CategoryLayer.js +2 -10
  353. package/lib/esm/components/Composer/Layer/CloseLayer/CloseLayer.js +2 -16
  354. package/lib/esm/components/Composer/Layer/LocationLayer/LocationLayer.js +2 -10
  355. package/lib/esm/components/Composer/Skeleton.js +2 -3
  356. package/lib/esm/components/Composer/TypeSwitchButtonGroup/TypeSwitchButtonGroup.js +3 -8
  357. package/lib/esm/components/ComposerIconButton/ComposerIconButton.js +5 -8
  358. package/lib/esm/components/ConnectionUserButton/ConnectionUserButton.js +2 -1
  359. package/lib/esm/components/ConsentSolution/ConsentSolution.js +9 -58
  360. package/lib/esm/components/ConsentSolution/Skeleton.js +3 -16
  361. package/lib/esm/components/ConsentSolutionButton/ConsentSolutionButton.js +2 -4
  362. package/lib/esm/components/CreateEventButton/CreateEventButton.js +2 -3
  363. package/lib/esm/components/CreateGroupButton/CreateGroupButton.js +3 -4
  364. package/lib/esm/components/CustomAdv/CustomAdv.js +5 -6
  365. package/lib/esm/components/CustomAdv/Skeleton.js +2 -2
  366. package/lib/esm/components/EditEventButton/EditEventButton.js +2 -3
  367. package/lib/esm/components/EditGroupButton/EditGroupButton.js +2 -3
  368. package/lib/esm/components/Editor/Editor.js +3 -21
  369. package/lib/esm/components/Editor/Skeleton.js +2 -2
  370. package/lib/esm/components/Editor/nodes/ImageNode.js +5 -5
  371. package/lib/esm/components/Editor/plugins/AutoLinkPlugin.js +2 -10
  372. package/lib/esm/components/Editor/plugins/EmojiPlugin.js +12 -15
  373. package/lib/esm/components/Editor/plugins/FloatingLinkPlugin.js +7 -13
  374. package/lib/esm/components/Editor/plugins/HashtagPlugin.js +11 -11
  375. package/lib/esm/components/Editor/plugins/ImagePlugin.js +9 -10
  376. package/lib/esm/components/Editor/plugins/LexicalRichTextPlugin.js +2 -12
  377. package/lib/esm/components/Editor/plugins/MentionsPlugin.js +11 -16
  378. package/lib/esm/components/Editor/plugins/OnChangePlugin.js +2 -2
  379. package/lib/esm/components/Editor/plugins/ToolbarPlugin.js +9 -40
  380. package/lib/esm/components/Editor/shared/useDecorators.js +2 -3
  381. package/lib/esm/components/Event/Event.js +3 -10
  382. package/lib/esm/components/Event/Skeleton.js +2 -8
  383. package/lib/esm/components/EventForm/EventAddress.js +6 -14
  384. package/lib/esm/components/EventForm/EventForm.js +46 -86
  385. package/lib/esm/components/EventForm/UploadEventCover.js +4 -6
  386. package/lib/esm/components/EventHeader/EventHeader.js +36 -52
  387. package/lib/esm/components/EventHeader/Skeleton.js +2 -12
  388. package/lib/esm/components/EventInfoWidget/EventInfoWidget.js +11 -13
  389. package/lib/esm/components/EventInfoWidget/Skeleton.d.ts +1 -0
  390. package/lib/esm/components/EventInfoWidget/Skeleton.js +16 -0
  391. package/lib/esm/components/EventInfoWidget/index.d.ts +2 -1
  392. package/lib/esm/components/EventInfoWidget/index.js +2 -1
  393. package/lib/esm/components/EventInviteButton/EventInviteButton.js +4 -24
  394. package/lib/esm/components/EventLocationWidget/EventLocationWidget.js +8 -16
  395. package/lib/esm/components/EventLocationWidget/Skeleton.js +2 -8
  396. package/lib/esm/components/EventSubscribeButton/EventSubscribeButton.js +12 -15
  397. package/lib/esm/components/Events/Events.js +25 -52
  398. package/lib/esm/components/Events/Skeleton.js +2 -4
  399. package/lib/esm/components/Feed/Feed.js +11 -29
  400. package/lib/esm/components/Feed/Skeleton.js +3 -12
  401. package/lib/esm/components/FeedObject/Actions/Actions.js +2 -8
  402. package/lib/esm/components/FeedObject/Actions/Comment/Comment.js +5 -11
  403. package/lib/esm/components/FeedObject/Actions/Follow/Follow.js +6 -6
  404. package/lib/esm/components/FeedObject/Actions/Share/Share.js +29 -60
  405. package/lib/esm/components/FeedObject/Actions/Share/SharesDialog/SharesDialog.js +3 -5
  406. package/lib/esm/components/FeedObject/Actions/Vote/Vote.js +2 -5
  407. package/lib/esm/components/FeedObject/Activities/Activities.js +9 -10
  408. package/lib/esm/components/FeedObject/Activities/ActivitiesMenu/ActivitiesMenu.js +23 -37
  409. package/lib/esm/components/FeedObject/Activities/RelevantActivities/CommentActivity/CommentActivity.js +18 -20
  410. package/lib/esm/components/FeedObject/Activities/RelevantActivities/FollowActivity/FollowActivity.js +5 -7
  411. package/lib/esm/components/FeedObject/Activities/RelevantActivities/PollVoteActivity/PollVoteActivity.js +5 -7
  412. package/lib/esm/components/FeedObject/Activities/RelevantActivities/RelevantActivities.js +7 -12
  413. package/lib/esm/components/FeedObject/Activities/RelevantActivities/VoteUpActivity/VoteUpActivity.js +5 -7
  414. package/lib/esm/components/FeedObject/Contributors/Contributors.js +3 -13
  415. package/lib/esm/components/FeedObject/Contributors/Skeleton.js +2 -6
  416. package/lib/esm/components/FeedObject/FeedObject.js +23 -110
  417. package/lib/esm/components/FeedObject/Poll/Choice/Choice.js +3 -8
  418. package/lib/esm/components/FeedObject/Poll/Poll.js +5 -21
  419. package/lib/esm/components/FeedObject/Skeleton.js +4 -16
  420. package/lib/esm/components/FeedObjectMediaPreview/FeedObjectMediaPreview.js +5 -6
  421. package/lib/esm/components/FeedUpdatesWidget/FeedUpdatesWidget.js +5 -8
  422. package/lib/esm/components/FeedUpdatesWidget/Skeleton.js +2 -2
  423. package/lib/esm/components/FollowUserButton/FollowUserButton.js +5 -4
  424. package/lib/esm/components/Footer/Footer.js +4 -7
  425. package/lib/esm/components/Footer/Skeleton.js +2 -4
  426. package/lib/esm/components/FriendshipUserButton/FriendshipUserButton.js +9 -8
  427. package/lib/esm/components/Group/Group.js +7 -13
  428. package/lib/esm/components/Group/Skeleton.js +2 -3
  429. package/lib/esm/components/GroupAutocomplete/GroupAutocomplete.js +5 -8
  430. package/lib/esm/components/GroupForm/GroupForm.js +36 -75
  431. package/lib/esm/components/GroupHeader/GroupHeader.js +6 -34
  432. package/lib/esm/components/GroupHeader/Skeleton.js +2 -12
  433. package/lib/esm/components/GroupInfoWidget/GroupInfoWidget.js +24 -54
  434. package/lib/esm/components/GroupInfoWidget/Skeleton.js +2 -2
  435. package/lib/esm/components/GroupInviteButton/GroupInviteButton.js +4 -24
  436. package/lib/esm/components/GroupInvitedWidget/GroupInvitedWidget.js +5 -18
  437. package/lib/esm/components/GroupInvitedWidget/Skeleton.js +2 -2
  438. package/lib/esm/components/GroupMembersButton/GroupMembersButton.js +3 -8
  439. package/lib/esm/components/GroupMembersWidget/GroupMembersWidget.js +11 -28
  440. package/lib/esm/components/GroupMembersWidget/Skeleton.js +2 -2
  441. package/lib/esm/components/GroupRequestsWidget/GroupRequestsWidget.js +5 -16
  442. package/lib/esm/components/GroupRequestsWidget/Skeleton.js +2 -2
  443. package/lib/esm/components/GroupSettingsIconButton/GroupSettingsIconButton.js +13 -21
  444. package/lib/esm/components/GroupSubscribeButton/GroupSubscribeButton.js +8 -7
  445. package/lib/esm/components/Groups/Groups.js +10 -23
  446. package/lib/esm/components/Groups/Skeleton.js +2 -4
  447. package/lib/esm/components/Incubator/Incubator.js +8 -28
  448. package/lib/esm/components/Incubator/Skeleton.js +2 -20
  449. package/lib/esm/components/IncubatorDetail/IncubatorDetail.js +4 -46
  450. package/lib/esm/components/IncubatorListWidget/CreateIncubatorDialog/CreateIncubatorDialog.js +5 -12
  451. package/lib/esm/components/IncubatorListWidget/IncubatorListWidget.js +8 -32
  452. package/lib/esm/components/IncubatorListWidget/Skeleton.js +2 -4
  453. package/lib/esm/components/IncubatorSubscribeButton/IncubatorSubscribeButton.js +3 -2
  454. package/lib/esm/components/IncubatorSuggestionWidget/IncubatorSuggestionWidget.js +5 -18
  455. package/lib/esm/components/IncubatorSuggestionWidget/Skeleton.js +2 -4
  456. package/lib/esm/components/InlineComposerWidget/InlineComposerWidget.js +5 -11
  457. package/lib/esm/components/InlineComposerWidget/Skeleton.js +2 -7
  458. package/lib/esm/components/LocationAutocomplete/LocationAutocomplete.js +6 -7
  459. package/lib/esm/components/LoyaltyProgramWidget/LoyaltyProgramWidget.js +5 -13
  460. package/lib/esm/components/LoyaltyProgramWidget/Skeleton.js +2 -11
  461. package/lib/esm/components/NavigationMenuIconButton/DefaultDrawerContent.js +3 -11
  462. package/lib/esm/components/NavigationMenuIconButton/DefaultHeaderContent.js +3 -4
  463. package/lib/esm/components/NavigationMenuIconButton/NavigationMenuIconButton.js +4 -13
  464. package/lib/esm/components/NavigationSettingsIconButton/NavigationSettingsIconButton.js +35 -75
  465. package/lib/esm/components/NavigationToolbar/NavigationToolbar.js +14 -51
  466. package/lib/esm/components/NavigationToolbar/NotificationMenu.js +2 -5
  467. package/lib/esm/components/NavigationToolbar/Skeleton.js +2 -5
  468. package/lib/esm/components/NavigationToolbarMobile/NavigationToolbarMobile.js +11 -27
  469. package/lib/esm/components/NavigationToolbarMobile/Skeleton.js +2 -3
  470. package/lib/esm/components/Notification/CollapsedFor/CollapsedFor.js +2 -15
  471. package/lib/esm/components/Notification/Comment/Comment.js +11 -27
  472. package/lib/esm/components/Notification/Contribution/Contribution.js +11 -28
  473. package/lib/esm/components/Notification/ContributionFollow/ContributionFollow.js +4 -19
  474. package/lib/esm/components/Notification/DeletedFor/DeletedFor.js +2 -17
  475. package/lib/esm/components/Notification/Group/Group.js +17 -30
  476. package/lib/esm/components/Notification/IncubatorApproved/IncubatorApproved.js +8 -16
  477. package/lib/esm/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.js +2 -9
  478. package/lib/esm/components/Notification/KindlyNoticeFor/KindlyNoticeFor.js +4 -16
  479. package/lib/esm/components/Notification/Mention/Mention.js +7 -22
  480. package/lib/esm/components/Notification/Notification.js +37 -57
  481. package/lib/esm/components/Notification/PrivateMessage/PrivateMessage.js +24 -47
  482. package/lib/esm/components/Notification/Skeleton.js +3 -7
  483. package/lib/esm/components/Notification/UndeletedFor/UndeletedFor.js +2 -16
  484. package/lib/esm/components/Notification/UserBlocked/UserBlocked.js +5 -7
  485. package/lib/esm/components/Notification/UserConnection/UserConnection.js +5 -15
  486. package/lib/esm/components/Notification/UserFollow/UserFollow.js +5 -15
  487. package/lib/esm/components/Notification/VoteUp/VoteUp.js +6 -19
  488. package/lib/esm/components/PlatformWidget/PlatformWidget.js +20 -53
  489. package/lib/esm/components/PlatformWidget/Skeleton.js +2 -2
  490. package/lib/esm/components/PollSuggestionWidget/PollSnippet/PollSnippet.js +3 -12
  491. package/lib/esm/components/PollSuggestionWidget/PollSnippet/Skeleton.js +2 -2
  492. package/lib/esm/components/PollSuggestionWidget/PollSuggestionWidget.js +5 -17
  493. package/lib/esm/components/PollSuggestionWidget/Skeleton.js +2 -6
  494. package/lib/esm/components/PrivateMessageComponent/PrivateMessageComponent.js +6 -9
  495. package/lib/esm/components/PrivateMessageComponent/Skeleton.js +2 -6
  496. package/lib/esm/components/PrivateMessageEditor/MessageMediaUploader/index.js +16 -37
  497. package/lib/esm/components/PrivateMessageEditor/PrivateMessageEditor.js +9 -18
  498. package/lib/esm/components/PrivateMessageEditor/Skeleton.js +2 -2
  499. package/lib/esm/components/PrivateMessageSettingsIconButton/PrivateMessageSettingsIconButton.js +9 -31
  500. package/lib/esm/components/PrivateMessageSnippetItem/PrivateMessageSnippetItem.js +12 -19
  501. package/lib/esm/components/PrivateMessageSnippetItem/Skeleton.js +2 -5
  502. package/lib/esm/components/PrivateMessageSnippets/PrivateMessageSnippets.js +8 -16
  503. package/lib/esm/components/PrivateMessageSnippets/Skeleton.js +2 -8
  504. package/lib/esm/components/PrivateMessageThread/PrivateMessageThread.js +14 -35
  505. package/lib/esm/components/PrivateMessageThread/Skeleton.js +2 -9
  506. package/lib/esm/components/PrivateMessageThreadItem/PrivateMessageThreadItem.js +15 -33
  507. package/lib/esm/components/PrivateMessageThreadItem/Skeleton.js +2 -3
  508. package/lib/esm/components/RelatedFeedObjectsWidget/RelatedFeedObjectsWidget.js +6 -21
  509. package/lib/esm/components/RelatedFeedObjectsWidget/Skeleton.js +2 -2
  510. package/lib/esm/components/SearchAutocomplete/SearchAutocomplete.js +5 -8
  511. package/lib/esm/components/SearchDialog/SearchDialog.js +2 -4
  512. package/lib/esm/components/Skeleton/AvatarGroupSkeleton.js +2 -3
  513. package/lib/esm/components/Skeleton/GenericSkeleton.js +2 -6
  514. package/lib/esm/components/SnippetNotifications/Skeleton.js +3 -3
  515. package/lib/esm/components/SnippetNotifications/SnippetNotifications.js +23 -28
  516. package/lib/esm/components/ToastNotifications/Skeleton.js +2 -2
  517. package/lib/esm/components/ToastNotifications/ToastNotifications.js +16 -15
  518. package/lib/esm/components/User/Skeleton.js +2 -3
  519. package/lib/esm/components/User/User.js +6 -14
  520. package/lib/esm/components/UserActionIconButton/UserActionIconButton.js +16 -31
  521. package/lib/esm/components/UserConnectionsRequestsSentWidget/Skeleton.js +2 -2
  522. package/lib/esm/components/UserConnectionsRequestsSentWidget/UserConnectionsRequestsSentWidget.js +5 -17
  523. package/lib/esm/components/UserConnectionsRequestsWidget/Skeleton.js +2 -2
  524. package/lib/esm/components/UserConnectionsRequestsWidget/UserConnectionsRequestsWidget.js +5 -17
  525. package/lib/esm/components/UserConnectionsWidget/Skeleton.js +2 -2
  526. package/lib/esm/components/UserConnectionsWidget/UserConnectionsWidget.js +5 -17
  527. package/lib/esm/components/UserCounters/UserCounters.js +19 -28
  528. package/lib/esm/components/UserFollowedCategoriesWidget/Skeleton.js +2 -2
  529. package/lib/esm/components/UserFollowedCategoriesWidget/UserFollowedCategoriesWidget.js +5 -20
  530. package/lib/esm/components/UserFollowedUsersWidget/Skeleton.js +2 -2
  531. package/lib/esm/components/UserFollowedUsersWidget/UserFollowedUsersWidget.js +5 -17
  532. package/lib/esm/components/UserFollowersWidget/Skeleton.js +2 -2
  533. package/lib/esm/components/UserFollowersWidget/UserFollowersWidget.js +5 -17
  534. package/lib/esm/components/UserInfo/Skeleton.js +2 -6
  535. package/lib/esm/components/UserInfo/UserInfo.js +13 -14
  536. package/lib/esm/components/UserInfoDialog/UserInfoDialog.js +3 -5
  537. package/lib/esm/components/UserProfileBlocked/UserProfileBlocked.js +4 -11
  538. package/lib/esm/components/UserProfileEdit/Section/Account.js +3 -13
  539. package/lib/esm/components/UserProfileEdit/Section/AccountCredentials.js +15 -37
  540. package/lib/esm/components/UserProfileEdit/Section/PublicInfo.js +15 -25
  541. package/lib/esm/components/UserProfileEdit/Section/Settings.js +7 -37
  542. package/lib/esm/components/UserProfileEdit/Section/SettingsSkeleton.js +2 -5
  543. package/lib/esm/components/UserProfileEdit/Skeleton.js +2 -6
  544. package/lib/esm/components/UserProfileEdit/UserProfileEdit.js +2 -9
  545. package/lib/esm/components/UserProfileHeader/Skeleton.js +2 -13
  546. package/lib/esm/components/UserProfileHeader/UserProfileHeader.js +4 -21
  547. package/lib/esm/components/UserSocialAssociation/UserSocialAssociation.js +2 -16
  548. package/lib/esm/components/UserSubscribedGroupsWidget/Skeleton.js +2 -6
  549. package/lib/esm/components/UserSubscribedGroupsWidget/UserSubscribedGroupsWidget.js +7 -22
  550. package/lib/esm/components/UserSuggestionWidget/Skeleton.js +2 -5
  551. package/lib/esm/components/UserSuggestionWidget/UserSuggestionWidget.js +5 -17
  552. package/lib/esm/components/VoteAudienceButton/VoteAudienceButton.js +9 -23
  553. package/lib/esm/components/VoteButton/VoteButton.js +9 -15
  554. package/lib/esm/components/Widget/index.js +3 -2
  555. package/lib/esm/shared/AutoPlayer/index.js +5 -6
  556. package/lib/esm/shared/BaseDialog/BaseDialog.js +3 -10
  557. package/lib/esm/shared/BaseItem/BaseItem.js +4 -10
  558. package/lib/esm/shared/BaseItemButton/BaseItemButton.js +4 -10
  559. package/lib/esm/shared/Bullet/index.js +2 -1
  560. package/lib/esm/shared/Calendar/index.js +2 -3
  561. package/lib/esm/shared/CentralProgress/index.js +3 -4
  562. package/lib/esm/shared/ConfirmDialog/ConfirmDialog.js +2 -9
  563. package/lib/esm/shared/ConsentSolutionSwitch/index.js +5 -8
  564. package/lib/esm/shared/ContributionActionsMenu/index.js +22 -85
  565. package/lib/esm/shared/CustomSnackMessage/index.js +3 -7
  566. package/lib/esm/shared/DateTimeAgo/index.js +2 -6
  567. package/lib/esm/shared/EmailTextField/index.js +3 -2
  568. package/lib/esm/shared/EmojiPicker/EmojiPicker.js +2 -2
  569. package/lib/esm/shared/EventInfoDetails/index.js +5 -22
  570. package/lib/esm/shared/HiddenPlaceholder/index.js +2 -2
  571. package/lib/esm/shared/InfiniteScroll/index.js +8 -18
  572. package/lib/esm/shared/InfiniteScroll/stories/InfiniteScrollWithHeight.js +3 -8
  573. package/lib/esm/shared/InfiniteScroll/stories/PullDownToRefreshInfScroll.js +3 -7
  574. package/lib/esm/shared/InfiniteScroll/stories/ScrollableTargetFixedInfScroll.js +13 -18
  575. package/lib/esm/shared/InfiniteScroll/stories/ScrollableTargetInfScroll.js +3 -8
  576. package/lib/esm/shared/InfiniteScroll/stories/ScrolleableTop.js +6 -11
  577. package/lib/esm/shared/InfiniteScroll/stories/WindowInfiniteScrollComponent.js +3 -6
  578. package/lib/esm/shared/LanguageSwitcher/index.js +3 -5
  579. package/lib/esm/shared/Lightbox/Lightbox.js +4 -3
  580. package/lib/esm/shared/MarkRead/MarkRead.js +3 -3
  581. package/lib/esm/shared/Media/File/DisplayComponent.js +13 -42
  582. package/lib/esm/shared/Media/File/Lightbox/index.js +5 -5
  583. package/lib/esm/shared/Media/File/PreviewComponent.js +5 -9
  584. package/lib/esm/shared/Media/File/TriggerButton.js +14 -25
  585. package/lib/esm/shared/Media/File/asUploadButton.js +3 -2
  586. package/lib/esm/shared/Media/Link/DisplayComponent.js +8 -15
  587. package/lib/esm/shared/Media/Link/LayerComponent.js +2 -11
  588. package/lib/esm/shared/Media/Link/PreviewComponent.js +2 -4
  589. package/lib/esm/shared/Media/Link/TriggerButton.js +2 -3
  590. package/lib/esm/shared/Media/Link/UrlTextField/index.js +5 -7
  591. package/lib/esm/shared/Media/Share/DisplayComponent.js +3 -3
  592. package/lib/esm/shared/MetadataField/MetadataField.js +8 -7
  593. package/lib/esm/shared/NewChip/NewChip.js +2 -2
  594. package/lib/esm/shared/NotificationItem/NotificationItem.js +3 -12
  595. package/lib/esm/shared/PasswordTextField/index.js +4 -6
  596. package/lib/esm/shared/PhoneTextField/index.js +3 -2
  597. package/lib/esm/shared/ScrollContainer/index.js +2 -2
  598. package/lib/esm/shared/StickyBox/index.js +3 -2
  599. package/lib/esm/shared/TagChip/index.js +2 -2
  600. package/lib/esm/shared/Tags/index.js +11 -23
  601. package/lib/esm/shared/UrlTextField/index.js +3 -2
  602. package/lib/esm/shared/UserAvatar/UserAvatar.js +3 -2
  603. package/lib/esm/shared/UserDeletedSnackBar/UserDeletedSnackBar.js +3 -5
  604. package/lib/esm/shared/UsernameTextField/index.js +3 -2
  605. package/lib/esm/shared/VirtualizedScroller/VirtualScrollerChild.js +2 -2
  606. package/lib/esm/shared/VirtualizedScroller/VirtualizedScroller.js +3 -2
  607. package/lib/esm/utils/contribution.js +3 -3
  608. package/lib/esm/utils/errors.js +3 -3
  609. package/lib/umd/react-ui.js +1 -1
  610. package/package.json +7 -7
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- const react_1 = tslib_1.__importStar(require("react"));
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const react_1 = require("react");
5
6
  const styles_1 = require("@mui/material/styles");
6
7
  const CardContent_1 = tslib_1.__importDefault(require("@mui/material/CardContent"));
7
8
  const Comment_1 = tslib_1.__importDefault(require("./Comment"));
@@ -183,19 +184,14 @@ function UserNotification(inProps) {
183
184
  */
184
185
  if (notificationObject.aggregated && notificationObject.aggregated[0].type === types_1.SCNotificationTypologyType.PRIVATE_MESSAGE) {
185
186
  let messageNotification = notificationObject.aggregated[0];
186
- return (react_1.default.createElement(material_1.CardHeader, { className: classes.header, avatar: react_1.default.createElement(react_core_1.Link, Object.assign({}, (!messageNotification.message.sender.deleted && {
187
+ return ((0, jsx_runtime_1.jsx)(material_1.CardHeader, { className: classes.header, avatar: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({}, (!messageNotification.message.sender.deleted && {
187
188
  to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, messageNotification.message.sender)
188
- }), { onClick: messageNotification.message.sender.deleted ? () => setOpenAlert(true) : null }),
189
- react_1.default.createElement(UserAvatar_1.default, { hide: !messageNotification.message.sender.community_badge, smaller: true },
190
- react_1.default.createElement(material_1.Avatar, { className: classes.avatar, alt: messageNotification.message.sender.username, variant: "circular", src: messageNotification.message.sender.avatar }))), titleTypographyProps: { className: classes.title, variant: 'subtitle1' }, title: react_1.default.createElement(react_1.default.Fragment, null,
191
- react_1.default.createElement(react_core_1.Link, Object.assign({}, (!messageNotification.message.sender.deleted && {
192
- to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, messageNotification.message.sender)
193
- }), { onClick: messageNotification.message.sender.deleted ? () => setOpenAlert(true) : null, className: classes.username }), messageNotification.message.sender.username),
194
- ' ',
195
- intl.formatMessage(messages.receivePrivateMessage, {
196
- total: notificationObject.aggregated.length,
197
- b: (...chunks) => react_1.default.createElement("strong", null, chunks)
198
- })) }));
189
+ }), { onClick: messageNotification.message.sender.deleted ? () => setOpenAlert(true) : null }, { children: (0, jsx_runtime_1.jsx)(UserAvatar_1.default, Object.assign({ hide: !messageNotification.message.sender.community_badge, smaller: true }, { children: (0, jsx_runtime_1.jsx)(material_1.Avatar, { className: classes.avatar, alt: messageNotification.message.sender.username, variant: "circular", src: messageNotification.message.sender.avatar }) })) })), titleTypographyProps: { className: classes.title, variant: 'subtitle1' }, title: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({}, (!messageNotification.message.sender.deleted && {
190
+ to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, messageNotification.message.sender)
191
+ }), { onClick: messageNotification.message.sender.deleted ? () => setOpenAlert(true) : null, className: classes.username }, { children: messageNotification.message.sender.username })), ' ', intl.formatMessage(messages.receivePrivateMessage, {
192
+ total: notificationObject.aggregated.length,
193
+ b: (...chunks) => (0, jsx_runtime_1.jsx)("strong", { children: chunks })
194
+ })] }) }));
199
195
  }
200
196
  /**
201
197
  * Group notifications header
@@ -206,22 +202,17 @@ function UserNotification(inProps) {
206
202
  notificationObject.aggregated[0].type === types_1.SCNotificationTypologyType.USER_ADDED_TO_GROUP ||
207
203
  notificationObject.aggregated[0].type === types_1.SCNotificationTypologyType.USER_REQUESTED_TO_JOIN_GROUP)) {
208
204
  let groupNotification = notificationObject.aggregated[0];
209
- return (react_1.default.createElement(material_1.CardHeader, { className: classes.header, avatar: react_1.default.createElement(react_core_1.Link, Object.assign({}, (!groupNotification.user.deleted && {
205
+ return ((0, jsx_runtime_1.jsx)(material_1.CardHeader, { className: classes.header, avatar: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({}, (!groupNotification.user.deleted && {
210
206
  to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, groupNotification.user)
211
- }), { onClick: groupNotification.user.deleted ? () => setOpenAlert(true) : null }),
212
- react_1.default.createElement(UserAvatar_1.default, { hide: !groupNotification.user.community_badge, smaller: true },
213
- react_1.default.createElement(material_1.Avatar, { className: classes.avatar, alt: groupNotification.user.username, variant: "circular", src: groupNotification.user.avatar }))), titleTypographyProps: { className: classes.title, variant: 'subtitle1' }, title: react_1.default.createElement(react_1.default.Fragment, null,
214
- react_1.default.createElement(react_core_1.Link, Object.assign({}, (!groupNotification.user.deleted && {
215
- to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, groupNotification.user)
216
- }), { onClick: groupNotification.user.deleted ? () => setOpenAlert(true) : null, className: classes.username }), groupNotification.user.username),
217
- ' ',
218
- react_1.default.createElement(react_intl_1.FormattedMessage, { id: `ui.notification.${notificationObject.aggregated[0].type}`, defaultMessage: `ui.notification.${notificationObject.aggregated[0].type}`, values: {
219
- group: groupNotification.group.name,
220
- link: (...chunks) => (react_1.default.createElement(react_core_1.Link, { to: notificationObject.aggregated[0].type === types_1.SCNotificationTypologyType.USER_REQUESTED_TO_JOIN_GROUP ||
221
- notificationObject.aggregated[0].type === types_1.SCNotificationTypologyType.USER_ACCEPTED_TO_JOIN_GROUP
222
- ? scRoutingContext.url(react_core_1.SCRoutes.GROUP_MEMBERS_ROUTE_NAME, groupNotification.group)
223
- : scRoutingContext.url(react_core_1.SCRoutes.GROUP_ROUTE_NAME, groupNotification.group) }, chunks))
224
- } })) }));
207
+ }), { onClick: groupNotification.user.deleted ? () => setOpenAlert(true) : null }, { children: (0, jsx_runtime_1.jsx)(UserAvatar_1.default, Object.assign({ hide: !groupNotification.user.community_badge, smaller: true }, { children: (0, jsx_runtime_1.jsx)(material_1.Avatar, { className: classes.avatar, alt: groupNotification.user.username, variant: "circular", src: groupNotification.user.avatar }) })) })), titleTypographyProps: { className: classes.title, variant: 'subtitle1' }, title: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({}, (!groupNotification.user.deleted && {
208
+ to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, groupNotification.user)
209
+ }), { onClick: groupNotification.user.deleted ? () => setOpenAlert(true) : null, className: classes.username }, { children: groupNotification.user.username })), ' ', (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: `ui.notification.${notificationObject.aggregated[0].type}`, defaultMessage: `ui.notification.${notificationObject.aggregated[0].type}`, values: {
210
+ group: groupNotification.group.name,
211
+ link: (...chunks) => ((0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: notificationObject.aggregated[0].type === types_1.SCNotificationTypologyType.USER_REQUESTED_TO_JOIN_GROUP ||
212
+ notificationObject.aggregated[0].type === types_1.SCNotificationTypologyType.USER_ACCEPTED_TO_JOIN_GROUP
213
+ ? scRoutingContext.url(react_core_1.SCRoutes.GROUP_MEMBERS_ROUTE_NAME, groupNotification.group)
214
+ : scRoutingContext.url(react_core_1.SCRoutes.GROUP_ROUTE_NAME, groupNotification.group) }, { children: chunks })))
215
+ } })] }) }));
225
216
  }
226
217
  /**
227
218
  * Comment, NestedComment, Follow Contribution header
@@ -234,8 +225,7 @@ function UserNotification(inProps) {
234
225
  notificationObject.aggregated[0].type === types_1.SCNotificationTypologyType.VOTE_UP ||
235
226
  notificationObject.aggregated[0].type === types_1.SCNotificationTypologyType.CONTRIBUTION)) {
236
227
  const contribution = (0, contribution_1.getContribution)(notificationObject);
237
- return (react_1.default.createElement(material_1.CardHeader, { className: classes.header, titleTypographyProps: { className: classes.title, variant: 'subtitle1' }, title: react_1.default.createElement(react_core_1.Link, { to: scRoutingContext.url((0, contribution_1.getContributionRouteName)(contribution), (0, contribution_1.getRouteData)(notificationObject[contribution.type])) }, (0, contribution_1.getContributionSnippet)(contribution)), action: contribution && (react_1.default.createElement(material_1.Tooltip, { title: contribution.suspended ? (react_1.default.createElement(react_intl_1.FormattedMessage, { id: 'ui.notification.notificationSuspended', defaultMessage: 'ui.notification.notificationSuspended' })) : (react_1.default.createElement(react_intl_1.FormattedMessage, { id: 'ui.notification.notificationSuspend', defaultMessage: 'ui.notification.notificationSuspend' })) },
238
- react_1.default.createElement(LoadingButton_1.default, { variant: "text", size: "small", loading: loadingSuspendNotification, color: 'inherit', classes: { root: classes.stopButton }, onClick: () => handleStopContentNotification(contribution) }, contribution.suspended ? react_1.default.createElement(Icon_1.default, { color: 'primary' }, "notifications_off") : react_1.default.createElement(Icon_1.default, { color: 'inherit' }, "notifications")))) }));
228
+ return ((0, jsx_runtime_1.jsx)(material_1.CardHeader, { className: classes.header, titleTypographyProps: { className: classes.title, variant: 'subtitle1' }, title: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url((0, contribution_1.getContributionRouteName)(contribution), (0, contribution_1.getRouteData)(notificationObject[contribution.type])) }, { children: (0, contribution_1.getContributionSnippet)(contribution) })), action: contribution && ((0, jsx_runtime_1.jsx)(material_1.Tooltip, Object.assign({ title: contribution.suspended ? ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: 'ui.notification.notificationSuspended', defaultMessage: 'ui.notification.notificationSuspended' })) : ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: 'ui.notification.notificationSuspend', defaultMessage: 'ui.notification.notificationSuspend' })) }, { children: (0, jsx_runtime_1.jsx)(LoadingButton_1.default, Object.assign({ variant: "text", size: "small", loading: loadingSuspendNotification, color: 'inherit', classes: { root: classes.stopButton }, onClick: () => handleStopContentNotification(contribution) }, { children: contribution.suspended ? (0, jsx_runtime_1.jsx)(Icon_1.default, Object.assign({ color: 'primary' }, { children: "notifications_off" })) : (0, jsx_runtime_1.jsx)(Icon_1.default, Object.assign({ color: 'inherit' }, { children: "notifications" })) })) }))) }));
239
229
  }
240
230
  return null;
241
231
  }
@@ -246,86 +236,76 @@ function UserNotification(inProps) {
246
236
  */
247
237
  function renderAggregatedItem(n, i) {
248
238
  if (n.type === types_1.SCNotificationTypologyType.COMMENT || n.type === types_1.SCNotificationTypologyType.NESTED_COMMENT) {
249
- return react_1.default.createElement(Comment_1.default, { notificationObject: n, key: i, onVote: handleVote(i) });
239
+ return (0, jsx_runtime_1.jsx)(Comment_1.default, { notificationObject: n, onVote: handleVote(i) }, i);
250
240
  }
251
241
  else if (n.type === types_1.SCNotificationTypologyType.FOLLOW) {
252
- return react_1.default.createElement(ContributionFollow_1.default, { notificationObject: n, key: i });
242
+ return (0, jsx_runtime_1.jsx)(ContributionFollow_1.default, { notificationObject: n }, i);
253
243
  }
254
244
  else if (n.type === types_1.SCNotificationTypologyType.USER_FOLLOW) {
255
- return react_1.default.createElement(UserFollow_1.default, { notificationObject: n, key: i });
245
+ return (0, jsx_runtime_1.jsx)(UserFollow_1.default, { notificationObject: n }, i);
256
246
  }
257
247
  else if (n.type === types_1.SCNotificationTypologyType.CONNECTION_REQUEST || n.type === types_1.SCNotificationTypologyType.CONNECTION_ACCEPT) {
258
- return react_1.default.createElement(UserConnection_1.default, { notificationObject: n, key: i });
248
+ return (0, jsx_runtime_1.jsx)(UserConnection_1.default, { notificationObject: n }, i);
259
249
  }
260
250
  else if (n.type === types_1.SCNotificationTypologyType.VOTE_UP) {
261
- return react_1.default.createElement(VoteUp_1.default, { notificationObject: n, key: i });
251
+ return (0, jsx_runtime_1.jsx)(VoteUp_1.default, { notificationObject: n }, i);
262
252
  }
263
253
  else if (n.type === types_1.SCNotificationTypologyType.KINDLY_NOTICE_ADVERTISING ||
264
254
  n.type === types_1.SCNotificationTypologyType.KINDLY_NOTICE_AGGRESSIVE ||
265
255
  n.type === types_1.SCNotificationTypologyType.KINDLY_NOTICE_POOR ||
266
256
  n.type === types_1.SCNotificationTypologyType.KINDLY_NOTICE_VULGAR ||
267
257
  n.type === types_1.SCNotificationTypologyType.KINDLY_NOTICE_OFFTOPIC) {
268
- return react_1.default.createElement(KindlyNoticeFor_1.default, { notificationObject: n, key: i });
258
+ return (0, jsx_runtime_1.jsx)(KindlyNoticeFor_1.default, { notificationObject: n }, i);
269
259
  }
270
260
  else if (n.type === types_1.SCNotificationTypologyType.KINDLY_NOTICE_FLAG) {
271
- return react_1.default.createElement(KindlyNoticeFlag_1.default, { notificationObject: n, key: i });
261
+ return (0, jsx_runtime_1.jsx)(KindlyNoticeFlag_1.default, { notificationObject: n }, i);
272
262
  }
273
263
  else if (n.type === types_1.SCNotificationTypologyType.DELETED_FOR_ADVERTISING ||
274
264
  n.type === types_1.SCNotificationTypologyType.DELETED_FOR_AGGRESSIVE ||
275
265
  n.type === types_1.SCNotificationTypologyType.DELETED_FOR_POOR ||
276
266
  n.type === types_1.SCNotificationTypologyType.DELETED_FOR_VULGAR ||
277
267
  n.type === types_1.SCNotificationTypologyType.DELETED_FOR_OFFTOPIC) {
278
- return react_1.default.createElement(DeletedFor_1.default, { notificationObject: n, key: i });
268
+ return (0, jsx_runtime_1.jsx)(DeletedFor_1.default, { notificationObject: n }, i);
279
269
  }
280
270
  else if (n.type === types_1.SCNotificationTypologyType.UNDELETED_FOR) {
281
- return react_1.default.createElement(UndeletedFor_1.default, { notificationObject: n, key: i });
271
+ return (0, jsx_runtime_1.jsx)(UndeletedFor_1.default, { notificationObject: n }, i);
282
272
  }
283
273
  else if (n.type === types_1.SCNotificationTypologyType.COLLAPSED_FOR_ADVERTISING ||
284
274
  n.type === types_1.SCNotificationTypologyType.COLLAPSED_FOR_AGGRESSIVE ||
285
275
  n.type === types_1.SCNotificationTypologyType.COLLAPSED_FOR_POOR ||
286
276
  n.type === types_1.SCNotificationTypologyType.COLLAPSED_FOR_VULGAR ||
287
277
  n.type === types_1.SCNotificationTypologyType.COLLAPSED_FOR_OFFTOPIC) {
288
- return react_1.default.createElement(CollapsedFor_1.default, { notificationObject: n, key: i });
278
+ return (0, jsx_runtime_1.jsx)(CollapsedFor_1.default, { notificationObject: n }, i);
289
279
  }
290
280
  else if (n.type === types_1.SCNotificationTypologyType.PRIVATE_MESSAGE) {
291
- return react_1.default.createElement(PrivateMessage_1.default, { notificationObject: n, key: i });
281
+ return (0, jsx_runtime_1.jsx)(PrivateMessage_1.default, { notificationObject: n }, i);
292
282
  }
293
283
  else if (n.type === types_1.SCNotificationTypologyType.BLOCKED_USER || n.type === types_1.SCNotificationTypologyType.UNBLOCKED_USER) {
294
- return react_1.default.createElement(UserBlocked_1.default, { notificationObject: n, key: i });
284
+ return (0, jsx_runtime_1.jsx)(UserBlocked_1.default, { notificationObject: n }, i);
295
285
  }
296
286
  else if (n.type === types_1.SCNotificationTypologyType.MENTION) {
297
- return react_1.default.createElement(Mention_1.default, { notificationObject: n, key: i });
287
+ return (0, jsx_runtime_1.jsx)(Mention_1.default, { notificationObject: n }, i);
298
288
  }
299
289
  else if (n.type === types_1.SCNotificationTypologyType.INCUBATOR_APPROVED) {
300
- return react_1.default.createElement(IncubatorApproved_1.default, { notificationObject: n, key: i });
290
+ return (0, jsx_runtime_1.jsx)(IncubatorApproved_1.default, { notificationObject: n }, i);
301
291
  }
302
292
  else if (n.type === types_1.SCNotificationTypologyType.CUSTOM_NOTIFICATION) {
303
293
  handleCustomNotification && handleCustomNotification(n);
304
294
  }
305
295
  else if (n.type === types_1.SCNotificationTypologyType.CONTRIBUTION) {
306
- return react_1.default.createElement(Contribution_1.default, { notificationObject: n, key: i, onVote: handleVote(i) });
296
+ return (0, jsx_runtime_1.jsx)(Contribution_1.default, { notificationObject: n, onVote: handleVote(i) }, i);
307
297
  }
308
298
  else if (n.type === types_1.SCNotificationTypologyType.USER_ADDED_TO_GROUP ||
309
299
  n.type === types_1.SCNotificationTypologyType.USER_INVITED_TO_JOIN_GROUP ||
310
300
  n.type === types_1.SCNotificationTypologyType.USER_ACCEPTED_TO_JOIN_GROUP ||
311
301
  n.type === types_1.SCNotificationTypologyType.USER_REQUESTED_TO_JOIN_GROUP) {
312
- return react_1.default.createElement(Group_1.default, { notificationObject: n, key: i });
302
+ return (0, jsx_runtime_1.jsx)(Group_1.default, { notificationObject: n }, i);
313
303
  }
314
304
  return null;
315
305
  }
316
306
  /**
317
307
  * Renders root object
318
308
  */
319
- return (react_1.default.createElement(react_1.default.Fragment, null,
320
- react_1.default.createElement(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className) }, rest),
321
- renderNotificationHeader(),
322
- react_1.default.createElement(CardContent_1.default, { className: classes.content },
323
- react_1.default.createElement("div", { className: classes.unCollapsed }, notificationObject.aggregated.slice(0, showMaxAggregated).map((n, i) => renderAggregatedItem(n, i))),
324
- notificationObject.aggregated.length > showMaxAggregated && (react_1.default.createElement(react_1.default.Fragment, null,
325
- react_1.default.createElement(material_1.ListItemButton, { onClick: setStateAggregated, classes: { root: classes.showOtherAggregated } },
326
- react_1.default.createElement(material_1.ListItemText, { primary: react_1.default.createElement(react_intl_1.FormattedMessage, { id: 'ui.notification.showOthers', defaultMessage: 'ui.notification.showOthers' }) }),
327
- openOtherAggregated ? react_1.default.createElement(Icon_1.default, null, "expand_less") : react_1.default.createElement(Icon_1.default, null, "expand_more")),
328
- react_1.default.createElement(material_1.Collapse, { in: openOtherAggregated, timeout: "auto", unmountOnExit: true, classes: { root: classes.collapsed } }, notificationObject.aggregated.slice(showMaxAggregated).map((n, i) => renderAggregatedItem(n, i))))))),
329
- openAlert && react_1.default.createElement(UserDeletedSnackBar_1.default, { open: openAlert, handleClose: () => setOpenAlert(false) })));
309
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className) }, rest, { children: [renderNotificationHeader(), (0, jsx_runtime_1.jsxs)(CardContent_1.default, Object.assign({ className: classes.content }, { children: [(0, jsx_runtime_1.jsx)("div", Object.assign({ className: classes.unCollapsed }, { children: notificationObject.aggregated.slice(0, showMaxAggregated).map((n, i) => renderAggregatedItem(n, i)) })), notificationObject.aggregated.length > showMaxAggregated && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(material_1.ListItemButton, Object.assign({ onClick: setStateAggregated, classes: { root: classes.showOtherAggregated } }, { children: [(0, jsx_runtime_1.jsx)(material_1.ListItemText, { primary: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: 'ui.notification.showOthers', defaultMessage: 'ui.notification.showOthers' }) }), openOtherAggregated ? (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "expand_less" }) : (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "expand_more" })] })), (0, jsx_runtime_1.jsx)(material_1.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 && (0, jsx_runtime_1.jsx)(UserDeletedSnackBar_1.default, { open: openAlert, handleClose: () => setOpenAlert(false) })] }));
330
310
  }
331
311
  exports.default = UserNotification;
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- const react_1 = tslib_1.__importStar(require("react"));
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const react_1 = require("react");
5
6
  const styles_1 = require("@mui/material/styles");
6
7
  const material_1 = require("@mui/material");
7
8
  const react_core_1 = require("@selfcommunity/react-core");
@@ -79,55 +80,31 @@ function PrivateMessageNotification(props) {
79
80
  });
80
81
  // RENDER
81
82
  if (isSnippetTemplate || isToastTemplate) {
82
- return (react_1.default.createElement(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${constants_1.PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: react_1.default.createElement(react_core_1.Link, Object.assign({}, (!notificationObject.message.sender.deleted && {
83
+ return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${constants_1.PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({}, (!notificationObject.message.sender.deleted && {
83
84
  to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.message.sender)
84
- }), { onClick: notificationObject.message.sender.deleted ? () => setOpenAlert(true) : null }),
85
- react_1.default.createElement(UserAvatar_1.default, { hide: !notificationObject.message.sender.community_badge, smaller: true },
86
- react_1.default.createElement(material_1.Avatar, { alt: notificationObject.message.sender.username, variant: "circular", src: notificationObject.message.sender.avatar, classes: { root: classes.avatar } }))), primary: react_1.default.createElement(react_1.default.Fragment, null,
87
- isToastTemplate && (react_1.default.createElement(material_1.Box, null,
88
- react_1.default.createElement(react_core_1.Link, Object.assign({}, (!notificationObject.message.sender.deleted && {
89
- to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.message.sender)
90
- }), { onClick: notificationObject.message.sender.deleted ? () => setOpenAlert(true) : null }), notificationObject.message.sender.username),
91
- ' ',
92
- react_1.default.createElement(react_intl_1.FormattedMessage, { id: 'ui.userToastNotifications.privateMessage.sentMessage', defaultMessage: 'ui.userToastNotifications.privateMessage.sentMessage' }),
93
- ":",
94
- react_1.default.createElement(material_1.Box, { className: classes.messageWrap },
95
- react_1.default.createElement(react_core_1.Link, { to: ((_a = notificationObject.message) === null || _a === void 0 ? void 0 : _a.group)
85
+ }), { onClick: notificationObject.message.sender.deleted ? () => setOpenAlert(true) : null }, { children: (0, jsx_runtime_1.jsx)(UserAvatar_1.default, Object.assign({ hide: !notificationObject.message.sender.community_badge, smaller: true }, { children: (0, jsx_runtime_1.jsx)(material_1.Avatar, { alt: notificationObject.message.sender.username, variant: "circular", src: notificationObject.message.sender.avatar, classes: { root: classes.avatar } }) })) })), primary: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [isToastTemplate && ((0, jsx_runtime_1.jsxs)(material_1.Box, { children: [(0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({}, (!notificationObject.message.sender.deleted && {
86
+ to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.message.sender)
87
+ }), { onClick: notificationObject.message.sender.deleted ? () => setOpenAlert(true) : null }, { children: notificationObject.message.sender.username })), ' ', (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: 'ui.userToastNotifications.privateMessage.sentMessage', defaultMessage: 'ui.userToastNotifications.privateMessage.sentMessage' }), ":", (0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ className: classes.messageWrap }, { children: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: ((_a = notificationObject.message) === null || _a === void 0 ? void 0 : _a.group)
88
+ ? scRoutingContext.url(react_core_1.SCRoutes.GROUP_MESSAGES_ROUTE_NAME, notificationObject.message.group)
89
+ : scRoutingContext.url(react_core_1.SCRoutes.USER_PRIVATE_MESSAGES_ROUTE_NAME, notificationObject.message.sender), className: classes.message }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "body2", dangerouslySetInnerHTML: { __html: notificationObject.message.message } }) })) }))] })), isSnippetTemplate && ((0, jsx_runtime_1.jsx)(material_1.Box, { children: (0, jsx_runtime_1.jsxs)(material_1.Typography, Object.assign({ component: "div", color: "inherit" }, { children: [(0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({}, (!notificationObject.message.sender.deleted && {
90
+ to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.message.sender)
91
+ }), { onClick: notificationObject.message.sender.deleted ? () => setOpenAlert(true) : null, className: classes.username }, { children: notificationObject.message.sender.username })), ' ', (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: ((_b = notificationObject.message) === null || _b === void 0 ? void 0 : _b.group)
92
+ ? scRoutingContext.url(react_core_1.SCRoutes.GROUP_MESSAGES_ROUTE_NAME, notificationObject.message.group)
93
+ : scRoutingContext.url(react_core_1.SCRoutes.USER_PRIVATE_MESSAGES_ROUTE_NAME, notificationObject.message.sender), className: classes.messageLabel }, { children: intl.formatMessage(messages.receivePrivateMessage, {
94
+ total: 1,
95
+ b: (...chunks) => (0, jsx_runtime_1.jsx)("strong", { children: chunks })
96
+ }) }))] })) }))] }), footer: isToastTemplate && ((0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: [(0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at }), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ color: "primary" }, { children: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: ((_c = notificationObject.message) === null || _c === void 0 ? void 0 : _c.group)
96
97
  ? scRoutingContext.url(react_core_1.SCRoutes.GROUP_MESSAGES_ROUTE_NAME, notificationObject.message.group)
97
- : scRoutingContext.url(react_core_1.SCRoutes.USER_PRIVATE_MESSAGES_ROUTE_NAME, notificationObject.message.sender), className: classes.message },
98
- react_1.default.createElement(material_1.Typography, { variant: "body2", dangerouslySetInnerHTML: { __html: notificationObject.message.message } }))))),
99
- isSnippetTemplate && (react_1.default.createElement(material_1.Box, null,
100
- react_1.default.createElement(material_1.Typography, { component: "div", color: "inherit" },
101
- react_1.default.createElement(react_core_1.Link, Object.assign({}, (!notificationObject.message.sender.deleted && {
102
- to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.message.sender)
103
- }), { onClick: notificationObject.message.sender.deleted ? () => setOpenAlert(true) : null, className: classes.username }), notificationObject.message.sender.username),
104
- ' ',
105
- react_1.default.createElement(react_core_1.Link, { to: ((_b = notificationObject.message) === null || _b === void 0 ? void 0 : _b.group)
98
+ : scRoutingContext.url(react_core_1.SCRoutes.USER_PRIVATE_MESSAGES_ROUTE_NAME, notificationObject.message.sender) }, { children: scUserContext.user && follower ? ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userToastNotifications.replyMessage", defaultMessage: 'ui.userToastNotifications.replyMessage' })) : ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userToastNotifications.viewMessage", defaultMessage: 'ui.userToastNotifications.viewMessage' })) })) }))] }))) }, rest)));
99
+ }
100
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${constants_1.PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, actions: (0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: [(0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at, className: classes.activeAt }), (0, jsx_runtime_1.jsx)(lab_1.LoadingButton, Object.assign({ color: 'primary', variant: "outlined", size: "small", classes: { root: classes.replyButton }, component: react_core_1.Link, loading: notificationObject.message.sender.deleted
101
+ ? null
102
+ : scUserContext.user
103
+ ? follower === null || manager.isLoading(notificationObject.message.sender)
104
+ : null, to: ((_d = notificationObject.message) === null || _d === void 0 ? void 0 : _d.group)
106
105
  ? scRoutingContext.url(react_core_1.SCRoutes.GROUP_MESSAGES_ROUTE_NAME, notificationObject.message.group)
107
- : scRoutingContext.url(react_core_1.SCRoutes.USER_PRIVATE_MESSAGES_ROUTE_NAME, notificationObject.message.sender), className: classes.messageLabel }, intl.formatMessage(messages.receivePrivateMessage, {
108
- total: 1,
109
- b: (...chunks) => react_1.default.createElement("strong", null, chunks)
110
- })))))), footer: isToastTemplate && (react_1.default.createElement(material_1.Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 },
111
- react_1.default.createElement(DateTimeAgo_1.default, { date: notificationObject.active_at }),
112
- react_1.default.createElement(material_1.Typography, { color: "primary" },
113
- react_1.default.createElement(react_core_1.Link, { to: ((_c = notificationObject.message) === null || _c === void 0 ? void 0 : _c.group)
106
+ : scRoutingContext.url(react_core_1.SCRoutes.USER_PRIVATE_MESSAGES_ROUTE_NAME, notificationObject.message.sender) }, { children: scUserContext.user && follower ? ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.notification.privateMessage.btnReplyLabel", defaultMessage: "ui.notification.privateMessage.btnReplyLabel" })) : ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.notification.privateMessage.btnViewLabel", defaultMessage: "ui.notification.privateMessage.btnViewLabel" })) }))] })), primary: (0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ className: classes.messageWrap }, { children: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: ((_e = notificationObject.message) === null || _e === void 0 ? void 0 : _e.group)
114
107
  ? scRoutingContext.url(react_core_1.SCRoutes.GROUP_MESSAGES_ROUTE_NAME, notificationObject.message.group)
115
- : scRoutingContext.url(react_core_1.SCRoutes.USER_PRIVATE_MESSAGES_ROUTE_NAME, notificationObject.message.sender) }, scUserContext.user && follower ? (react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.userToastNotifications.replyMessage", defaultMessage: 'ui.userToastNotifications.replyMessage' })) : (react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.userToastNotifications.viewMessage", defaultMessage: 'ui.userToastNotifications.viewMessage' })))))) }, rest)));
116
- }
117
- return (react_1.default.createElement(react_1.default.Fragment, null,
118
- react_1.default.createElement(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${constants_1.PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, actions: react_1.default.createElement(material_1.Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 },
119
- react_1.default.createElement(DateTimeAgo_1.default, { date: notificationObject.active_at, className: classes.activeAt }),
120
- react_1.default.createElement(lab_1.LoadingButton, { color: 'primary', variant: "outlined", size: "small", classes: { root: classes.replyButton }, component: react_core_1.Link, loading: notificationObject.message.sender.deleted
121
- ? null
122
- : scUserContext.user
123
- ? follower === null || manager.isLoading(notificationObject.message.sender)
124
- : null, to: ((_d = notificationObject.message) === null || _d === void 0 ? void 0 : _d.group)
125
- ? scRoutingContext.url(react_core_1.SCRoutes.GROUP_MESSAGES_ROUTE_NAME, notificationObject.message.group)
126
- : scRoutingContext.url(react_core_1.SCRoutes.USER_PRIVATE_MESSAGES_ROUTE_NAME, notificationObject.message.sender) }, scUserContext.user && follower ? (react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.notification.privateMessage.btnReplyLabel", defaultMessage: "ui.notification.privateMessage.btnReplyLabel" })) : (react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.notification.privateMessage.btnViewLabel", defaultMessage: "ui.notification.privateMessage.btnViewLabel" })))), primary: react_1.default.createElement(material_1.Box, { className: classes.messageWrap },
127
- react_1.default.createElement(react_core_1.Link, { to: ((_e = notificationObject.message) === null || _e === void 0 ? void 0 : _e.group)
128
- ? scRoutingContext.url(react_core_1.SCRoutes.GROUP_MESSAGES_ROUTE_NAME, notificationObject.message.group)
129
- : scRoutingContext.url(react_core_1.SCRoutes.USER_PRIVATE_MESSAGES_ROUTE_NAME, notificationObject.message.sender), className: classes.message },
130
- react_1.default.createElement(material_1.Typography, { variant: "body2", dangerouslySetInnerHTML: { __html: notificationObject.message.message } }))) }, rest)),
131
- openAlert && react_1.default.createElement(UserDeletedSnackBar_1.default, { open: openAlert, handleClose: () => setOpenAlert(false) })));
108
+ : scRoutingContext.url(react_core_1.SCRoutes.USER_PRIVATE_MESSAGES_ROUTE_NAME, notificationObject.message.sender), className: classes.message }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "body2", dangerouslySetInnerHTML: { __html: notificationObject.message.message } }) })) })) }, rest)), openAlert && (0, jsx_runtime_1.jsx)(UserDeletedSnackBar_1.default, { open: openAlert, handleClose: () => setOpenAlert(false) })] }));
132
109
  }
133
110
  exports.default = PrivateMessageNotification;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
4
5
  const react_1 = tslib_1.__importDefault(require("react"));
5
6
  const CardContent_1 = tslib_1.__importDefault(require("@mui/material/CardContent"));
6
7
  const styles_1 = require("@mui/material/styles");
@@ -37,12 +38,7 @@ const Root = (0, styles_1.styled)(Widget_1.default, {
37
38
  */
38
39
  function NotificationSkeleton(props) {
39
40
  const theme = (0, material_1.useTheme)();
40
- const notification = (react_1.default.createElement(react_1.default.Fragment, null,
41
- react_1.default.createElement(material_1.CardHeader, { avatar: react_1.default.createElement(Skeleton_1.default, { animation: "wave", variant: "circular", width: theme.selfcommunity.user.avatar.sizeMedium, height: theme.selfcommunity.user.avatar.sizeMedium }), title: react_1.default.createElement(Skeleton_1.default, { animation: "wave", height: 10, width: "80%", style: { marginBottom: 6 } }), subheader: react_1.default.createElement(Skeleton_1.default, { animation: "wave", height: 10, width: "40%" }) })));
42
- return (react_1.default.createElement(Root, Object.assign({ className: classes.root }, props),
43
- react_1.default.createElement(CardContent_1.default, { sx: { paddingBottom: 1 } },
44
- react_1.default.createElement(Skeleton_1.default, { animation: "wave", height: 20, style: { marginBottom: 0 } }),
45
- react_1.default.createElement(Skeleton_1.default, { animation: "wave", height: 15, width: "60%", style: { marginBottom: 0 } })),
46
- [...Array(Math.floor(Math.random() * 5) + 1)].map((x, i) => (react_1.default.createElement(react_1.default.Fragment, { key: i }, notification)))));
41
+ const notification = ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)(material_1.CardHeader, { avatar: (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: "wave", variant: "circular", width: theme.selfcommunity.user.avatar.sizeMedium, height: theme.selfcommunity.user.avatar.sizeMedium }), title: (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: "wave", height: 10, width: "80%", style: { marginBottom: 6 } }), subheader: (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: "wave", height: 10, width: "40%" }) }) }));
42
+ return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: classes.root }, props, { children: [(0, jsx_runtime_1.jsxs)(CardContent_1.default, Object.assign({ sx: { paddingBottom: 1 } }, { children: [(0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: "wave", height: 20, style: { marginBottom: 0 } }), (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: "wave", height: 15, width: "60%", style: { marginBottom: 0 } })] })), [...Array(Math.floor(Math.random() * 5) + 1)].map((x, i) => ((0, jsx_runtime_1.jsx)(react_1.default.Fragment, { children: notification }, i)))] })));
47
43
  }
48
44
  exports.default = NotificationSkeleton;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- const react_1 = tslib_1.__importDefault(require("react"));
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const styles_1 = require("@mui/material/styles");
6
6
  const material_1 = require("@mui/material");
7
7
  const Icon_1 = tslib_1.__importDefault(require("@mui/material/Icon"));
@@ -42,20 +42,6 @@ function UndeletedForNotification(props) {
42
42
  /**
43
43
  * Renders root object
44
44
  */
45
- return (react_1.default.createElement(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${constants_1.PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: react_1.default.createElement(material_1.Avatar, { variant: "circular", classes: { root: classes.undeletedIcon } },
46
- react_1.default.createElement(Icon_1.default, null, "outlined_flag")), primary: react_1.default.createElement(react_1.default.Fragment, null, isSnippetTemplate ? (react_1.default.createElement(react_core_1.Link, { to: scRoutingContext.url(react_core_1.SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(notificationObject[contributionType])) },
47
- react_1.default.createElement(material_1.Typography, { component: "div", color: "inherit", className: classes.undeletedText },
48
- react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.notification.undeletedFor.restoredContentSnippet", defaultMessage: "ui.notification.undeletedFor.restoredContentSnippet" })))) : (react_1.default.createElement(material_1.Typography, { component: "div", color: "inherit", className: classes.undeletedText },
49
- react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.notification.undeletedFor.restoredContent", defaultMessage: "ui.notification.undeletedFor.restoredContent" })))), secondary: (template === types_1.SCNotificationObjectTemplateType.DETAIL || template === types_1.SCNotificationObjectTemplateType.SNIPPET) && (react_1.default.createElement(DateTimeAgo_1.default, { date: notificationObject.active_at, className: classes.activeAt })), footer: isSnippetTemplate ? null : (react_1.default.createElement(react_1.default.Fragment, null,
50
- react_1.default.createElement(material_1.Box, { className: classes.contributionWrap },
51
- react_1.default.createElement(material_1.Typography, { variant: 'body2', color: 'inherit', component: 'div', classes: { root: classes.contributionYouWroteLabel } },
52
- react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.notification.undeletedFor.youWrote", defaultMessage: "ui.notification.undeletedFor.youWrote" })),
53
- react_1.default.createElement(react_core_1.Link, { to: scRoutingContext.url(react_core_1.SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(notificationObject[contributionType])), className: classes.contributionText },
54
- react_1.default.createElement(material_1.Typography, { component: 'span', variant: "body2" }, (0, contribution_1.getContributionSnippet)(notificationObject[contributionType])))),
55
- template === types_1.SCNotificationObjectTemplateType.TOAST && (react_1.default.createElement(material_1.Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 },
56
- react_1.default.createElement(DateTimeAgo_1.default, { date: notificationObject.active_at }),
57
- react_1.default.createElement(material_1.Typography, { color: "primary", component: 'div' },
58
- react_1.default.createElement(react_core_1.Link, { to: scRoutingContext.url(react_core_1.SCRoutes[`${notificationObject[contributionType]['type'].toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(notificationObject[contributionType])) },
59
- react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.userToastNotifications.viewContribution", defaultMessage: 'ui.userToastNotifications.viewContribution' }))))))) }, rest)));
45
+ return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${constants_1.PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: (0, jsx_runtime_1.jsx)(material_1.Avatar, Object.assign({ variant: "circular", classes: { root: classes.undeletedIcon } }, { children: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "outlined_flag" }) })), primary: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: isSnippetTemplate ? ((0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(notificationObject[contributionType])) }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ component: "div", color: "inherit", className: classes.undeletedText }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.notification.undeletedFor.restoredContentSnippet", defaultMessage: "ui.notification.undeletedFor.restoredContentSnippet" }) })) }))) : ((0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ component: "div", color: "inherit", className: classes.undeletedText }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.notification.undeletedFor.restoredContent", defaultMessage: "ui.notification.undeletedFor.restoredContent" }) }))) }), secondary: (template === types_1.SCNotificationObjectTemplateType.DETAIL || template === types_1.SCNotificationObjectTemplateType.SNIPPET) && ((0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at, className: classes.activeAt })), footer: isSnippetTemplate ? null : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ className: classes.contributionWrap }, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: 'body2', color: 'inherit', component: 'div', classes: { root: classes.contributionYouWroteLabel } }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.notification.undeletedFor.youWrote", defaultMessage: "ui.notification.undeletedFor.youWrote" }) })), (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(notificationObject[contributionType])), className: classes.contributionText }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ component: 'span', variant: "body2" }, { children: (0, contribution_1.getContributionSnippet)(notificationObject[contributionType]) })) }))] })), template === types_1.SCNotificationObjectTemplateType.TOAST && ((0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: [(0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at }), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ color: "primary", component: 'div' }, { children: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes[`${notificationObject[contributionType]['type'].toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(notificationObject[contributionType])) }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userToastNotifications.viewContribution", defaultMessage: 'ui.userToastNotifications.viewContribution' }) })) }))] })))] })) }, rest)));
60
46
  }
61
47
  exports.default = UndeletedForNotification;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- const react_1 = tslib_1.__importDefault(require("react"));
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const styles_1 = require("@mui/material/styles");
6
6
  const material_1 = require("@mui/material");
7
7
  const Icon_1 = tslib_1.__importDefault(require("@mui/material/Icon"));
@@ -46,14 +46,12 @@ function UserBlockedNotification(props) {
46
46
  /**
47
47
  * Renders root object
48
48
  */
49
- return (react_1.default.createElement(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${constants_1.PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: react_1.default.createElement(material_1.Avatar, { variant: "circular", classes: {
49
+ return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${constants_1.PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: (0, jsx_runtime_1.jsx)(material_1.Avatar, Object.assign({ variant: "circular", classes: {
50
50
  root: (0, classnames_1.default)(classes.unBlockedIcon, {
51
51
  [classes.blockedIcon]: notificationObject.type === types_1.SCNotificationTypologyType.BLOCKED_USER
52
52
  })
53
- } },
54
- react_1.default.createElement(Icon_1.default, null, "outlined_flag")), primary: react_1.default.createElement(material_1.Typography, { component: "div", color: "inherit", className: classes.blockedText }, notificationObject.type === types_1.SCNotificationTypologyType.BLOCKED_USER
55
- ? intl.formatMessage(messages.accountBlocked, { b: (...chunks) => react_1.default.createElement("strong", null, chunks) })
56
- : intl.formatMessage(messages.accountReactivated, { b: (...chunks) => react_1.default.createElement("strong", null, chunks) })), secondary: (template === types_2.SCNotificationObjectTemplateType.DETAIL || template === types_2.SCNotificationObjectTemplateType.SNIPPET) && (react_1.default.createElement(DateTimeAgo_1.default, { date: notificationObject.active_at, className: classes.activeAt })), footer: template === types_2.SCNotificationObjectTemplateType.TOAST && (react_1.default.createElement(material_1.Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 },
57
- react_1.default.createElement(DateTimeAgo_1.default, { date: notificationObject.active_at }))) }, rest)));
53
+ } }, { children: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "outlined_flag" }) })), primary: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ component: "div", color: "inherit", className: classes.blockedText }, { children: notificationObject.type === types_1.SCNotificationTypologyType.BLOCKED_USER
54
+ ? intl.formatMessage(messages.accountBlocked, { b: (...chunks) => (0, jsx_runtime_1.jsx)("strong", { children: chunks }) })
55
+ : intl.formatMessage(messages.accountReactivated, { b: (...chunks) => (0, jsx_runtime_1.jsx)("strong", { children: chunks }) }) })), secondary: (template === types_2.SCNotificationObjectTemplateType.DETAIL || template === types_2.SCNotificationObjectTemplateType.SNIPPET) && ((0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at, className: classes.activeAt })), footer: template === types_2.SCNotificationObjectTemplateType.TOAST && ((0, jsx_runtime_1.jsx)(material_1.Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: (0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at }) }))) }, rest)));
58
56
  }
59
57
  exports.default = UserBlockedNotification;
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- const react_1 = tslib_1.__importStar(require("react"));
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const react_1 = require("react");
5
6
  const styles_1 = require("@mui/material/styles");
6
7
  const material_1 = require("@mui/material");
7
8
  const react_intl_1 = require("react-intl");
@@ -54,19 +55,8 @@ function UserConnectionNotification(props) {
54
55
  /**
55
56
  * Renders root object
56
57
  */
57
- return (react_1.default.createElement(react_1.default.Fragment, null,
58
- react_1.default.createElement(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${constants_1.PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: react_1.default.createElement(react_core_1.Link, Object.assign({}, (!userConnection.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, userConnection) }), { onClick: userConnection.deleted ? () => setOpenAlert(true) : null }),
59
- react_1.default.createElement(UserAvatar_1.default, { hide: !userConnection.community_badge, smaller: true },
60
- react_1.default.createElement(material_1.Avatar, { alt: userConnection.username, variant: "circular", src: userConnection.avatar, classes: { root: classes.avatar } }))), primary: react_1.default.createElement(material_1.Typography, { component: "div", color: "inherit", className: classes.connectionText },
61
- react_1.default.createElement(react_core_1.Link, Object.assign({}, (!userConnection.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, userConnection) }), { onClick: userConnection.deleted ? () => setOpenAlert(true) : null, className: classes.username }), userConnection.username),
62
- ' ',
63
- notificationObject.type === types_1.SCNotificationTypologyType.CONNECTION_REQUEST
64
- ? intl.formatMessage(messages.requestConnection, { b: (...chunks) => react_1.default.createElement("strong", null, chunks) })
65
- : intl.formatMessage(messages.acceptConnection, { b: (...chunks) => react_1.default.createElement("strong", null, chunks) })), secondary: (template === types_2.SCNotificationObjectTemplateType.DETAIL || template === types_2.SCNotificationObjectTemplateType.SNIPPET) && (react_1.default.createElement(DateTimeAgo_1.default, { date: notificationObject.active_at, className: classes.activeAt })), footer: template === types_2.SCNotificationObjectTemplateType.TOAST && (react_1.default.createElement(material_1.Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 },
66
- react_1.default.createElement(DateTimeAgo_1.default, { date: notificationObject.active_at }),
67
- react_1.default.createElement(material_1.Typography, { color: "primary", component: 'div' },
68
- react_1.default.createElement(react_core_1.Link, Object.assign({}, (!userConnection.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, userConnection) }), { onClick: userConnection.deleted ? () => setOpenAlert(true) : null }),
69
- react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.userToastNotifications.goToProfile", defaultMessage: 'ui.userToastNotifications.goToProfile' }))))) }, rest)),
70
- openAlert && react_1.default.createElement(UserDeletedSnackBar_1.default, { open: openAlert, handleClose: () => setOpenAlert(false) })));
58
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${constants_1.PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({}, (!userConnection.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, userConnection) }), { onClick: userConnection.deleted ? () => setOpenAlert(true) : null }, { children: (0, jsx_runtime_1.jsx)(UserAvatar_1.default, Object.assign({ hide: !userConnection.community_badge, smaller: true }, { children: (0, jsx_runtime_1.jsx)(material_1.Avatar, { alt: userConnection.username, variant: "circular", src: userConnection.avatar, classes: { root: classes.avatar } }) })) })), primary: (0, jsx_runtime_1.jsxs)(material_1.Typography, Object.assign({ component: "div", color: "inherit", className: classes.connectionText }, { children: [(0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({}, (!userConnection.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, userConnection) }), { onClick: userConnection.deleted ? () => setOpenAlert(true) : null, className: classes.username }, { children: userConnection.username })), ' ', notificationObject.type === types_1.SCNotificationTypologyType.CONNECTION_REQUEST
59
+ ? intl.formatMessage(messages.requestConnection, { b: (...chunks) => (0, jsx_runtime_1.jsx)("strong", { children: chunks }) })
60
+ : intl.formatMessage(messages.acceptConnection, { b: (...chunks) => (0, jsx_runtime_1.jsx)("strong", { children: chunks }) })] })), secondary: (template === types_2.SCNotificationObjectTemplateType.DETAIL || template === types_2.SCNotificationObjectTemplateType.SNIPPET) && ((0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at, className: classes.activeAt })), footer: template === types_2.SCNotificationObjectTemplateType.TOAST && ((0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: [(0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at }), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ color: "primary", component: 'div' }, { children: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({}, (!userConnection.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, userConnection) }), { onClick: userConnection.deleted ? () => setOpenAlert(true) : null }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userToastNotifications.goToProfile", defaultMessage: 'ui.userToastNotifications.goToProfile' }) })) }))] }))) }, rest)), openAlert && (0, jsx_runtime_1.jsx)(UserDeletedSnackBar_1.default, { open: openAlert, handleClose: () => setOpenAlert(false) })] }));
71
61
  }
72
62
  exports.default = UserConnectionNotification;
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- const react_1 = tslib_1.__importStar(require("react"));
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const react_1 = require("react");
5
6
  const styles_1 = require("@mui/material/styles");
6
7
  const material_1 = require("@mui/material");
7
8
  const react_core_1 = require("@selfcommunity/react-core");
@@ -47,19 +48,8 @@ function UserFollowNotification(props) {
47
48
  /**
48
49
  * Renders root object
49
50
  */
50
- return (react_1.default.createElement(react_1.default.Fragment, null,
51
- react_1.default.createElement(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${constants_1.PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: react_1.default.createElement(react_core_1.Link, Object.assign({}, (!notificationObject.follower.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.follower) }), { onClick: notificationObject.follower.deleted ? () => setOpenAlert(true) : null }),
52
- react_1.default.createElement(UserAvatar_1.default, { hide: !notificationObject.follower.community_badge, smaller: true },
53
- react_1.default.createElement(material_1.Avatar, { alt: notificationObject.follower.username, variant: "circular", src: notificationObject.follower.avatar, classes: { root: classes.avatar } }))), primary: react_1.default.createElement(material_1.Typography, { component: "div", color: "inherit", className: classes.followText },
54
- react_1.default.createElement(react_core_1.Link, Object.assign({}, (!notificationObject.follower.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.follower) }), { onClick: notificationObject.follower.deleted ? () => setOpenAlert(true) : null, className: classes.username }), notificationObject.follower.username),
55
- ' ',
56
- intl.formatMessage(messages.followUser, { b: (...chunks) => react_1.default.createElement("strong", null, chunks) })), secondary: (template === types_1.SCNotificationObjectTemplateType.DETAIL || template === types_1.SCNotificationObjectTemplateType.SNIPPET) && (react_1.default.createElement(DateTimeAgo_1.default, { date: notificationObject.active_at, className: classes.activeAt })), footer: template === types_1.SCNotificationObjectTemplateType.TOAST && (react_1.default.createElement(material_1.Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 },
57
- react_1.default.createElement(DateTimeAgo_1.default, { date: notificationObject.active_at }),
58
- react_1.default.createElement(material_1.Typography, { color: "primary", component: 'div' },
59
- react_1.default.createElement(react_core_1.Link, Object.assign({}, (!notificationObject.follower.deleted && {
60
- to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.follower)
61
- }), { onClick: notificationObject.follower.deleted ? () => setOpenAlert(true) : null }),
62
- react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.userToastNotifications.goToProfile", defaultMessage: 'ui.userToastNotifications.goToProfile' }))))) }, rest)),
63
- openAlert && react_1.default.createElement(UserDeletedSnackBar_1.default, { open: openAlert, handleClose: () => setOpenAlert(false) })));
51
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${constants_1.PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({}, (!notificationObject.follower.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.follower) }), { onClick: notificationObject.follower.deleted ? () => setOpenAlert(true) : null }, { children: (0, jsx_runtime_1.jsx)(UserAvatar_1.default, Object.assign({ hide: !notificationObject.follower.community_badge, smaller: true }, { children: (0, jsx_runtime_1.jsx)(material_1.Avatar, { alt: notificationObject.follower.username, variant: "circular", src: notificationObject.follower.avatar, classes: { root: classes.avatar } }) })) })), primary: (0, jsx_runtime_1.jsxs)(material_1.Typography, Object.assign({ component: "div", color: "inherit", className: classes.followText }, { children: [(0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({}, (!notificationObject.follower.deleted && { to: scRoutingContext.url(react_core_1.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) => (0, jsx_runtime_1.jsx)("strong", { children: chunks }) })] })), secondary: (template === types_1.SCNotificationObjectTemplateType.DETAIL || template === types_1.SCNotificationObjectTemplateType.SNIPPET) && ((0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at, className: classes.activeAt })), footer: template === types_1.SCNotificationObjectTemplateType.TOAST && ((0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: [(0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at }), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ color: "primary", component: 'div' }, { children: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({}, (!notificationObject.follower.deleted && {
52
+ to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.follower)
53
+ }), { onClick: notificationObject.follower.deleted ? () => setOpenAlert(true) : null }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userToastNotifications.goToProfile", defaultMessage: 'ui.userToastNotifications.goToProfile' }) })) }))] }))) }, rest)), openAlert && (0, jsx_runtime_1.jsx)(UserDeletedSnackBar_1.default, { open: openAlert, handleClose: () => setOpenAlert(false) })] }));
64
54
  }
65
55
  exports.default = UserFollowNotification;
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- const react_1 = tslib_1.__importStar(require("react"));
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const react_1 = require("react");
5
6
  const styles_1 = require("@mui/material/styles");
6
7
  const material_1 = require("@mui/material");
7
8
  const react_core_1 = require("@selfcommunity/react-core");
@@ -52,23 +53,9 @@ function VoteUpNotification(props) {
52
53
  /**
53
54
  * Renders root object
54
55
  */
55
- return (react_1.default.createElement(react_1.default.Fragment, null,
56
- react_1.default.createElement(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${constants_1.PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: react_1.default.createElement(react_core_1.Link, Object.assign({}, (!notificationObject.user.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.user) }), { onClick: notificationObject.user.deleted ? () => setOpenAlert(true) : null }),
57
- react_1.default.createElement(UserAvatar_1.default, { hide: !notificationObject.user.community_badge, smaller: true },
58
- react_1.default.createElement(material_1.Avatar, { alt: notificationObject.user.username, variant: "circular", src: notificationObject.user.avatar, classes: { root: classes.avatar } }))), primary: react_1.default.createElement(react_1.default.Fragment, null,
59
- react_1.default.createElement(react_core_1.Link, Object.assign({}, (!notificationObject.user.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.user) }), { onClick: notificationObject.user.deleted ? () => setOpenAlert(true) : null, className: classes.username }), notificationObject.user.username),
60
- ' ',
61
- intl.formatMessage(messages.appreciated, {
62
- username: notificationObject.user.username,
63
- b: (...chunks) => react_1.default.createElement("strong", null, chunks)
64
- })), secondary: react_1.default.createElement(react_1.default.Fragment, null,
65
- react_1.default.createElement(react_core_1.Link, { to: scRoutingContext.url(react_core_1.SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(notificationObject[contributionType])) },
66
- react_1.default.createElement(material_1.Typography, { variant: "body2", className: classes.contributionText, component: 'div' }, (0, contribution_1.getContributionSnippet)(notificationObject[contributionType]))),
67
- (template === notification_1.SCNotificationObjectTemplateType.DETAIL || template === notification_1.SCNotificationObjectTemplateType.SNIPPET) && (react_1.default.createElement(DateTimeAgo_1.default, { date: notificationObject.active_at, className: classes.activeAt }))), footer: template === notification_1.SCNotificationObjectTemplateType.TOAST && (react_1.default.createElement(material_1.Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 },
68
- react_1.default.createElement(DateTimeAgo_1.default, { date: notificationObject.active_at }),
69
- react_1.default.createElement(material_1.Typography, { color: "primary", component: 'div' },
70
- react_1.default.createElement(react_core_1.Link, { to: scRoutingContext.url((0, contribution_1.getContributionRouteName)(contribution), (0, contribution_1.getRouteData)(contribution)) },
71
- react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.userToastNotifications.viewContribution", defaultMessage: 'ui.userToastNotifications.viewContribution' }))))) }, rest)),
72
- openAlert && react_1.default.createElement(UserDeletedSnackBar_1.default, { open: openAlert, handleClose: () => setOpenAlert(false) })));
56
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${constants_1.PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({}, (!notificationObject.user.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.user) }), { onClick: notificationObject.user.deleted ? () => setOpenAlert(true) : null }, { children: (0, jsx_runtime_1.jsx)(UserAvatar_1.default, Object.assign({ hide: !notificationObject.user.community_badge, smaller: true }, { children: (0, jsx_runtime_1.jsx)(material_1.Avatar, { alt: notificationObject.user.username, variant: "circular", src: notificationObject.user.avatar, classes: { root: classes.avatar } }) })) })), primary: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({}, (!notificationObject.user.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.user) }), { onClick: notificationObject.user.deleted ? () => setOpenAlert(true) : null, className: classes.username }, { children: notificationObject.user.username })), ' ', intl.formatMessage(messages.appreciated, {
57
+ username: notificationObject.user.username,
58
+ b: (...chunks) => (0, jsx_runtime_1.jsx)("strong", { children: chunks })
59
+ })] }), secondary: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(notificationObject[contributionType])) }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body2", className: classes.contributionText, component: 'div' }, { children: (0, contribution_1.getContributionSnippet)(notificationObject[contributionType]) })) })), (template === notification_1.SCNotificationObjectTemplateType.DETAIL || template === notification_1.SCNotificationObjectTemplateType.SNIPPET) && ((0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at, className: classes.activeAt }))] }), footer: template === notification_1.SCNotificationObjectTemplateType.TOAST && ((0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: [(0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at }), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ color: "primary", component: 'div' }, { children: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url((0, contribution_1.getContributionRouteName)(contribution), (0, contribution_1.getRouteData)(contribution)) }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userToastNotifications.viewContribution", defaultMessage: 'ui.userToastNotifications.viewContribution' }) })) }))] }))) }, rest)), openAlert && (0, jsx_runtime_1.jsx)(UserDeletedSnackBar_1.default, { open: openAlert, handleClose: () => setOpenAlert(false) })] }));
73
60
  }
74
61
  exports.default = VoteUpNotification;