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

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