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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (563) hide show
  1. package/lib/cjs/components/AccountChangeMailValidation/AccountChangeMailValidation.js +1 -1
  2. package/lib/cjs/components/AccountDataPortability/AccountDataPortability.js +4 -4
  3. package/lib/cjs/components/AccountDataPortabilityButton/AccountDataPortabilityButton.js +1 -1
  4. package/lib/cjs/components/AccountDelete/AccountDelete.js +3 -3
  5. package/lib/cjs/components/AccountDeleteButton/AccountDeleteButton.js +1 -1
  6. package/lib/cjs/components/AccountRecover/AccountRecover.js +2 -2
  7. package/lib/cjs/components/AccountReset/AccountReset.js +1 -1
  8. package/lib/cjs/components/AccountVerify/AccountVerify.js +1 -1
  9. package/lib/cjs/components/BottomNavigation/BottomNavigation.js +2 -2
  10. package/lib/cjs/components/BroadcastMessages/BroadcastMessages.js +1 -1
  11. package/lib/cjs/components/BroadcastMessages/Message.js +4 -4
  12. package/lib/cjs/components/BroadcastMessages/Skeleton.js +1 -1
  13. package/lib/cjs/components/Categories/Categories.js +1 -1
  14. package/lib/cjs/components/Categories/Skeleton.js +1 -1
  15. package/lib/cjs/components/CategoriesPopularWidget/CategoriesPopularWidget.js +1 -1
  16. package/lib/cjs/components/CategoriesSuggestionWidget/CategoriesSuggestionWidget.js +1 -1
  17. package/lib/cjs/components/CategoriesSuggestionWidget/Skeleton.js +1 -1
  18. package/lib/cjs/components/Category/Category.js +1 -1
  19. package/lib/cjs/components/Category/Skeleton.js +1 -1
  20. package/lib/cjs/components/CategoryAutocomplete/CategoryAutocomplete.js +1 -1
  21. package/lib/cjs/components/CategoryFollowersButton/CategoryFollowersButton.js +1 -1
  22. package/lib/cjs/components/CategoryHeader/CategoryHeader.js +1 -1
  23. package/lib/cjs/components/CategoryHeader/Skeleton.js +1 -1
  24. package/lib/cjs/components/CategoryTrendingFeedWidget/CategoryTrendingFeedWidget.js +2 -2
  25. package/lib/cjs/components/CategoryTrendingFeedWidget/Skeleton.js +1 -1
  26. package/lib/cjs/components/CategoryTrendingUsersWidget/CategoryTrendingUsersWidget.js +1 -1
  27. package/lib/cjs/components/CategoryTrendingUsersWidget/Skeleton.js +1 -1
  28. package/lib/cjs/components/ChangeCover/ChangeCover.js +6 -6
  29. package/lib/cjs/components/ChangeGroupCover/ChangeGroupCover.js +1 -1
  30. package/lib/cjs/components/ChangeGroupPicture/ChangeGroupPicture.js +1 -1
  31. package/lib/cjs/components/ChangePicture/ChangePictureDialog/ChangePictureDialog.js +2 -2
  32. package/lib/cjs/components/CommentObject/CommentObject.js +4 -4
  33. package/lib/cjs/components/CommentObjectReply/CommentObjectReply.js +1 -1
  34. package/lib/cjs/components/CommentsFeedObject/CommentsFeedObject.js +4 -4
  35. package/lib/cjs/components/CommentsObject/CommentsObject.js +6 -6
  36. package/lib/cjs/components/Composer/Attributes/Attributes.js +2 -2
  37. package/lib/cjs/components/Composer/Composer.js +4 -4
  38. package/lib/cjs/components/Composer/Content/ContentDiscussion/ContentDiscussion.js +3 -3
  39. package/lib/cjs/components/Composer/Content/ContentPoll/ContentPoll.js +6 -6
  40. package/lib/cjs/components/Composer/Content/ContentPost/ContentPost.js +1 -1
  41. package/lib/cjs/components/Composer/Layer/AudienceLayer/AudienceLayer.js +5 -5
  42. package/lib/cjs/components/Composer/Layer/CategoryLayer/CategoryLayer.js +1 -1
  43. package/lib/cjs/components/Composer/Layer/CloseLayer/CloseLayer.js +1 -1
  44. package/lib/cjs/components/Composer/Layer/LocationLayer/LocationLayer.js +1 -1
  45. package/lib/cjs/components/Composer/Skeleton.js +1 -1
  46. package/lib/cjs/components/Composer/TypeSwitchButtonGroup/TypeSwitchButtonGroup.js +1 -1
  47. package/lib/cjs/components/ComposerIconButton/ComposerIconButton.js +2 -2
  48. package/lib/cjs/components/ConsentSolution/ConsentSolution.js +4 -4
  49. package/lib/cjs/components/ConsentSolution/Skeleton.js +1 -1
  50. package/lib/cjs/components/CreateEventButton/CreateEventButton.js +1 -1
  51. package/lib/cjs/components/CreateEventWidget/CreateEventWidget.js +1 -1
  52. package/lib/cjs/components/CreateEventWidget/Skeleton.js +1 -1
  53. package/lib/cjs/components/CreateLiveStreamDialog/CreateLiveStreamDialog.js +1 -1
  54. package/lib/cjs/components/CreateLiveStreamDialog/LiveStreamSelector/LiveStreamSelector.js +4 -4
  55. package/lib/cjs/components/CreateLiveStreamDialog/types.js +2 -2
  56. package/lib/cjs/components/CustomAdv/CustomAdv.js +2 -2
  57. package/lib/cjs/components/Editor/Editor.js +1 -1
  58. package/lib/cjs/components/Editor/nodes/ImageNode.js +1 -1
  59. package/lib/cjs/components/Editor/plugins/EmojiPlugin.js +2 -2
  60. package/lib/cjs/components/Editor/plugins/FloatingLinkPlugin.js +4 -4
  61. package/lib/cjs/components/Editor/plugins/HashtagPlugin.js +3 -3
  62. package/lib/cjs/components/Editor/plugins/ImagePlugin.js +4 -4
  63. package/lib/cjs/components/Editor/plugins/MentionsPlugin.js +4 -4
  64. package/lib/cjs/components/Editor/plugins/ToolbarPlugin.js +5 -5
  65. package/lib/cjs/components/Editor/shared/useDecorators.js +1 -1
  66. package/lib/cjs/components/Event/Event.js +4 -4
  67. package/lib/cjs/components/Event/Skeleton.js +3 -3
  68. package/lib/cjs/components/EventAutocomplete/EventAutocomplete.js +1 -1
  69. package/lib/cjs/components/EventForm/EventAddress.js +2 -2
  70. package/lib/cjs/components/EventForm/EventForm.js +14 -14
  71. package/lib/cjs/components/EventForm/UploadEventCover.js +1 -1
  72. package/lib/cjs/components/EventHeader/EventHeader.js +2 -2
  73. package/lib/cjs/components/EventHeader/Skeleton.js +1 -1
  74. package/lib/cjs/components/EventInfoWidget/EventInfoWidget.js +1 -1
  75. package/lib/cjs/components/EventInfoWidget/Skeleton.js +1 -1
  76. package/lib/cjs/components/EventInviteButton/EventInviteButton.js +2 -2
  77. package/lib/cjs/components/EventLocationWidget/EventLocationWidget.js +3 -3
  78. package/lib/cjs/components/EventLocationWidget/Skeleton.js +1 -1
  79. package/lib/cjs/components/EventMediaWidget/EventMediaWidget.js +4 -4
  80. package/lib/cjs/components/EventMediaWidget/Skeleton.js +1 -1
  81. package/lib/cjs/components/EventMediaWidget/TriggerButton.js +3 -3
  82. package/lib/cjs/components/EventMembersWidget/EventMembersWidget.js +3 -3
  83. package/lib/cjs/components/EventMembersWidget/Skeleton.js +1 -1
  84. package/lib/cjs/components/EventMembersWidget/TabContentComponent.js +3 -3
  85. package/lib/cjs/components/EventMembersWidget/types.js +1 -1
  86. package/lib/cjs/components/EventParticipantsButton/EventParticipantsButton.js +1 -1
  87. package/lib/cjs/components/EventSubscribeButton/EventSubscribeButton.js +2 -2
  88. package/lib/cjs/components/Events/Events.js +6 -6
  89. package/lib/cjs/components/Events/LocationEventsFilter.js +1 -1
  90. package/lib/cjs/components/Events/Skeleton.js +1 -1
  91. package/lib/cjs/components/Feed/Feed.js +4 -4
  92. package/lib/cjs/components/Feed/Skeleton.js +1 -1
  93. package/lib/cjs/components/FeedObject/Actions/Actions.js +1 -1
  94. package/lib/cjs/components/FeedObject/Actions/Comment/Comment.js +3 -3
  95. package/lib/cjs/components/FeedObject/Actions/Follow/Follow.js +1 -1
  96. package/lib/cjs/components/FeedObject/Actions/Share/Share.js +5 -5
  97. package/lib/cjs/components/FeedObject/Actions/Share/SharesDialog/SharesDialog.js +1 -1
  98. package/lib/cjs/components/FeedObject/Activities/Activities.js +1 -1
  99. package/lib/cjs/components/FeedObject/Activities/ActivitiesMenu/ActivitiesMenu.js +4 -4
  100. package/lib/cjs/components/FeedObject/Activities/RelevantActivities/CommentActivity/CommentActivity.js +3 -3
  101. package/lib/cjs/components/FeedObject/Activities/RelevantActivities/FollowActivity/FollowActivity.js +2 -2
  102. package/lib/cjs/components/FeedObject/Activities/RelevantActivities/PollVoteActivity/PollVoteActivity.js +2 -2
  103. package/lib/cjs/components/FeedObject/Activities/RelevantActivities/RelevantActivities.js +1 -1
  104. package/lib/cjs/components/FeedObject/Activities/RelevantActivities/VoteUpActivity/VoteUpActivity.js +2 -2
  105. package/lib/cjs/components/FeedObject/Contributors/Contributors.js +1 -1
  106. package/lib/cjs/components/FeedObject/Contributors/Skeleton.js +1 -1
  107. package/lib/cjs/components/FeedObject/FeedObject.js +11 -11
  108. package/lib/cjs/components/FeedObject/Poll/Choice/Choice.js +2 -2
  109. package/lib/cjs/components/FeedObject/Poll/Poll.js +1 -1
  110. package/lib/cjs/components/FeedUpdatesWidget/FeedUpdatesWidget.js +1 -1
  111. package/lib/cjs/components/Footer/Footer.js +1 -1
  112. package/lib/cjs/components/Group/Group.js +2 -2
  113. package/lib/cjs/components/Group/Skeleton.js +1 -1
  114. package/lib/cjs/components/GroupActionsMenu/index.js +4 -4
  115. package/lib/cjs/components/GroupAutocomplete/GroupAutocomplete.js +1 -1
  116. package/lib/cjs/components/GroupForm/GroupForm.js +9 -9
  117. package/lib/cjs/components/GroupHeader/GroupHeader.js +2 -2
  118. package/lib/cjs/components/GroupHeader/Skeleton.js +1 -1
  119. package/lib/cjs/components/GroupInfoWidget/GroupInfoWidget.js +6 -6
  120. package/lib/cjs/components/GroupInviteButton/GroupInviteButton.js +2 -2
  121. package/lib/cjs/components/GroupInvitedWidget/GroupInvitedWidget.js +1 -1
  122. package/lib/cjs/components/GroupMembersButton/GroupMembersButton.js +1 -1
  123. package/lib/cjs/components/GroupMembersWidget/GroupMembersWidget.js +5 -5
  124. package/lib/cjs/components/GroupRequestsWidget/GroupRequestsWidget.js +1 -1
  125. package/lib/cjs/components/GroupSettingsIconButton/GroupSettingsIconButton.js +5 -5
  126. package/lib/cjs/components/Groups/Groups.js +3 -3
  127. package/lib/cjs/components/Groups/Skeleton.js +1 -1
  128. package/lib/cjs/components/Incubator/Incubator.js +4 -4
  129. package/lib/cjs/components/Incubator/Skeleton.js +1 -1
  130. package/lib/cjs/components/IncubatorDetail/IncubatorDetail.js +2 -2
  131. package/lib/cjs/components/IncubatorListWidget/CreateIncubatorDialog/CreateIncubatorDialog.js +2 -2
  132. package/lib/cjs/components/IncubatorListWidget/IncubatorListWidget.js +2 -2
  133. package/lib/cjs/components/IncubatorListWidget/Skeleton.js +1 -1
  134. package/lib/cjs/components/IncubatorSuggestionWidget/IncubatorSuggestionWidget.js +1 -1
  135. package/lib/cjs/components/IncubatorSuggestionWidget/Skeleton.js +1 -1
  136. package/lib/cjs/components/InlineComposerWidget/InlineComposerWidget.js +1 -1
  137. package/lib/cjs/components/InlineComposerWidget/Skeleton.js +1 -1
  138. package/lib/cjs/components/LiveStreamForm/LiveStreamForm.js +6 -6
  139. package/lib/cjs/components/LiveStreamRoom/LiveStreamRoom.js +1 -1
  140. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/LiveStreamVideoConference.js +3 -1
  141. package/lib/cjs/components/LocationAutocomplete/LocationAutocomplete.js +1 -1
  142. package/lib/cjs/components/LoyaltyProgramWidget/LoyaltyProgramWidget.js +1 -1
  143. package/lib/cjs/components/LoyaltyProgramWidget/Skeleton.js +1 -1
  144. package/lib/cjs/components/MyEventsWidget/MyEventsWidget.js +1 -1
  145. package/lib/cjs/components/MyEventsWidget/Skeleton.js +1 -1
  146. package/lib/cjs/components/NavigationMenuIconButton/DefaultDrawerContent.js +1 -1
  147. package/lib/cjs/components/NavigationMenuIconButton/DefaultHeaderContent.js +1 -1
  148. package/lib/cjs/components/NavigationMenuIconButton/NavigationMenuDrawer.js +1 -1
  149. package/lib/cjs/components/NavigationMenuIconButton/NavigationMenuIconButton.js +1 -1
  150. package/lib/cjs/components/NavigationSettingsIconButton/NavigationSettingsIconButton.js +29 -29
  151. package/lib/cjs/components/NavigationToolbar/NavigationToolbar.js +7 -7
  152. package/lib/cjs/components/NavigationToolbar/NotificationMenu.js +1 -1
  153. package/lib/cjs/components/NavigationToolbar/Skeleton.js +1 -1
  154. package/lib/cjs/components/NavigationToolbarMobile/NavigationToolbarMobile.js +4 -4
  155. package/lib/cjs/components/NavigationToolbarMobile/Skeleton.js +1 -1
  156. package/lib/cjs/components/Notification/CollapsedFor/CollapsedFor.js +1 -1
  157. package/lib/cjs/components/Notification/Comment/Comment.js +3 -3
  158. package/lib/cjs/components/Notification/Contribution/Contribution.js +3 -3
  159. package/lib/cjs/components/Notification/ContributionFollow/ContributionFollow.js +2 -2
  160. package/lib/cjs/components/Notification/DeletedFor/DeletedFor.js +1 -1
  161. package/lib/cjs/components/Notification/Event/Event.js +9 -9
  162. package/lib/cjs/components/Notification/Group/Group.js +8 -8
  163. package/lib/cjs/components/Notification/IncubatorApproved/IncubatorApproved.js +3 -3
  164. package/lib/cjs/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.js +1 -1
  165. package/lib/cjs/components/Notification/KindlyNoticeFor/KindlyNoticeFor.js +2 -2
  166. package/lib/cjs/components/Notification/Mention/Mention.js +3 -3
  167. package/lib/cjs/components/Notification/Notification.js +8 -8
  168. package/lib/cjs/components/Notification/PrivateMessage/PrivateMessage.js +10 -10
  169. package/lib/cjs/components/Notification/Skeleton.js +1 -1
  170. package/lib/cjs/components/Notification/UndeletedFor/UndeletedFor.js +1 -1
  171. package/lib/cjs/components/Notification/UserBlocked/UserBlocked.js +3 -3
  172. package/lib/cjs/components/Notification/UserConnection/UserConnection.js +2 -2
  173. package/lib/cjs/components/Notification/UserFollow/UserFollow.js +2 -2
  174. package/lib/cjs/components/Notification/VoteUp/VoteUp.js +2 -2
  175. package/lib/cjs/components/OnBoardingWidget/ActionsButton.js +5 -5
  176. package/lib/cjs/components/OnBoardingWidget/OnBoardingWidget.js +7 -7
  177. package/lib/cjs/components/OnBoardingWidget/Skeleton.js +1 -1
  178. package/lib/cjs/components/OnBoardingWidget/Steps/App/App.js +9 -9
  179. package/lib/cjs/components/OnBoardingWidget/Steps/Appearance/Appearance.js +4 -4
  180. package/lib/cjs/components/OnBoardingWidget/Steps/Category/Category.js +5 -5
  181. package/lib/cjs/components/OnBoardingWidget/Steps/Content/Content.js +1 -1
  182. package/lib/cjs/components/OnBoardingWidget/Steps/Invite/Invite.js +1 -1
  183. package/lib/cjs/components/OnBoardingWidget/Steps/Profile/Profile.js +1 -1
  184. package/lib/cjs/components/PlatformWidget/PlatformWidget.js +8 -8
  185. package/lib/cjs/components/PlatformWidget/Skeleton.js +1 -1
  186. package/lib/cjs/components/PollSuggestionWidget/PollSnippet/PollSnippet.js +1 -1
  187. package/lib/cjs/components/PollSuggestionWidget/PollSuggestionWidget.js +1 -1
  188. package/lib/cjs/components/PollSuggestionWidget/Skeleton.js +1 -1
  189. package/lib/cjs/components/PrivateMessageComponent/PrivateMessageComponent.js +4 -4
  190. package/lib/cjs/components/PrivateMessageComponent/Skeleton.js +1 -1
  191. package/lib/cjs/components/PrivateMessageEditor/MessageMediaUploader/index.js +5 -5
  192. package/lib/cjs/components/PrivateMessageEditor/PrivateMessageEditor.js +6 -6
  193. package/lib/cjs/components/PrivateMessageSettingsIconButton/PrivateMessageSettingsIconButton.js +7 -7
  194. package/lib/cjs/components/PrivateMessageSnippetItem/PrivateMessageSnippetItem.js +3 -3
  195. package/lib/cjs/components/PrivateMessageSnippetItem/Skeleton.js +1 -1
  196. package/lib/cjs/components/PrivateMessageSnippets/PrivateMessageSnippets.js +4 -4
  197. package/lib/cjs/components/PrivateMessageSnippets/Skeleton.js +1 -1
  198. package/lib/cjs/components/PrivateMessageThread/PrivateMessageThread.js +6 -6
  199. package/lib/cjs/components/PrivateMessageThread/Skeleton.js +1 -1
  200. package/lib/cjs/components/PrivateMessageThreadItem/PrivateMessageThreadItem.js +6 -6
  201. package/lib/cjs/components/RelatedEventsWidget/RelatedEventsWidget.js +1 -1
  202. package/lib/cjs/components/RelatedEventsWidget/Skeleton.js +1 -1
  203. package/lib/cjs/components/RelatedFeedObjectsWidget/RelatedFeedObjectsWidget.js +1 -1
  204. package/lib/cjs/components/SearchAutocomplete/SearchAutocomplete.js +2 -2
  205. package/lib/cjs/components/SnippetNotifications/Skeleton.js +1 -1
  206. package/lib/cjs/components/SnippetNotifications/SnippetNotifications.js +3 -3
  207. package/lib/cjs/components/SuggestedEventsWidget/Arrow.js +2 -2
  208. package/lib/cjs/components/SuggestedEventsWidget/Skeleton.js +1 -1
  209. package/lib/cjs/components/SuggestedEventsWidget/SuggestedEventsWidget.js +2 -2
  210. package/lib/cjs/components/User/Skeleton.js +1 -1
  211. package/lib/cjs/components/User/User.js +2 -2
  212. package/lib/cjs/components/UserActionIconButton/UserActionIconButton.js +9 -9
  213. package/lib/cjs/components/UserConnectionsRequestsSentWidget/UserConnectionsRequestsSentWidget.js +1 -1
  214. package/lib/cjs/components/UserConnectionsRequestsWidget/UserConnectionsRequestsWidget.js +1 -1
  215. package/lib/cjs/components/UserConnectionsWidget/UserConnectionsWidget.js +1 -1
  216. package/lib/cjs/components/UserCounters/UserCounters.js +5 -5
  217. package/lib/cjs/components/UserFollowedCategoriesWidget/UserFollowedCategoriesWidget.js +1 -1
  218. package/lib/cjs/components/UserFollowedUsersWidget/UserFollowedUsersWidget.js +1 -1
  219. package/lib/cjs/components/UserFollowersWidget/UserFollowersWidget.js +1 -1
  220. package/lib/cjs/components/UserInfo/Skeleton.js +1 -1
  221. package/lib/cjs/components/UserInfo/UserInfo.js +3 -3
  222. package/lib/cjs/components/UserInfoDialog/UserInfoDialog.js +1 -1
  223. package/lib/cjs/components/UserProfileBlocked/UserProfileBlocked.js +1 -1
  224. package/lib/cjs/components/UserProfileEdit/Section/Account.js +1 -1
  225. package/lib/cjs/components/UserProfileEdit/Section/AccountCredentials.js +6 -6
  226. package/lib/cjs/components/UserProfileEdit/Section/PublicInfo.js +8 -8
  227. package/lib/cjs/components/UserProfileEdit/Section/Settings.js +3 -3
  228. package/lib/cjs/components/UserProfileEdit/Section/SettingsSkeleton.js +1 -1
  229. package/lib/cjs/components/UserProfileEdit/Skeleton.js +1 -1
  230. package/lib/cjs/components/UserProfileEdit/UserProfileEdit.js +1 -1
  231. package/lib/cjs/components/UserProfileHeader/Skeleton.js +1 -1
  232. package/lib/cjs/components/UserProfileHeader/UserProfileHeader.js +1 -1
  233. package/lib/cjs/components/UserSocialAssociation/UserSocialAssociation.js +1 -1
  234. package/lib/cjs/components/UserSubscribedGroupsWidget/Skeleton.js +1 -1
  235. package/lib/cjs/components/UserSubscribedGroupsWidget/UserSubscribedGroupsWidget.js +2 -2
  236. package/lib/cjs/components/UserSuggestionWidget/Skeleton.js +1 -1
  237. package/lib/cjs/components/UserSuggestionWidget/UserSuggestionWidget.js +1 -1
  238. package/lib/cjs/components/VoteAudienceButton/VoteAudienceButton.js +5 -5
  239. package/lib/cjs/components/VoteButton/VoteButton.js +2 -2
  240. package/lib/cjs/constants/PubSub.js +3 -3
  241. package/lib/cjs/shared/AutoPlayer/index.js +2 -2
  242. package/lib/cjs/shared/BaseDialog/BaseDialog.js +2 -2
  243. package/lib/cjs/shared/BaseItem/BaseItem.js +2 -2
  244. package/lib/cjs/shared/BaseItemButton/BaseItemButton.js +2 -2
  245. package/lib/cjs/shared/Calendar/index.js +1 -1
  246. package/lib/cjs/shared/ConfirmDialog/ConfirmDialog.js +1 -1
  247. package/lib/cjs/shared/ConsentSolutionSwitch/index.js +3 -3
  248. package/lib/cjs/shared/ContributionActionsMenu/index.js +10 -10
  249. package/lib/cjs/shared/CustomSnackMessage/index.js +1 -1
  250. package/lib/cjs/shared/DateTimeAgo/index.js +1 -1
  251. package/lib/cjs/shared/EmojiPicker/EmojiPicker.js +1 -1
  252. package/lib/cjs/shared/EventActionsMenu/index.js +5 -5
  253. package/lib/cjs/shared/EventInfoDetails/index.js +3 -3
  254. package/lib/cjs/shared/InfiniteScroll/index.js +2 -2
  255. package/lib/cjs/shared/InfiniteScroll/stories/InfiniteScrollWithHeight.js +1 -1
  256. package/lib/cjs/shared/InfiniteScroll/stories/PullDownToRefreshInfScroll.js +1 -1
  257. package/lib/cjs/shared/InfiniteScroll/stories/ScrollableTargetFixedInfScroll.js +2 -2
  258. package/lib/cjs/shared/InfiniteScroll/stories/ScrollableTargetInfScroll.js +1 -1
  259. package/lib/cjs/shared/InfiniteScroll/stories/ScrolleableTop.js +2 -2
  260. package/lib/cjs/shared/InfiniteScroll/stories/WindowInfiniteScrollComponent.js +1 -1
  261. package/lib/cjs/shared/LanguageSwitcher/index.js +1 -1
  262. package/lib/cjs/shared/MarkRead/MarkRead.js +1 -1
  263. package/lib/cjs/shared/Media/File/DisplayComponent.js +11 -11
  264. package/lib/cjs/shared/Media/File/PreviewComponent.js +3 -3
  265. package/lib/cjs/shared/Media/File/TriggerButton.js +7 -7
  266. package/lib/cjs/shared/Media/Link/DisplayComponent.js +3 -3
  267. package/lib/cjs/shared/Media/Link/LayerComponent.js +1 -1
  268. package/lib/cjs/shared/Media/Link/PreviewComponent.js +1 -1
  269. package/lib/cjs/shared/Media/Link/TriggerButton.js +1 -1
  270. package/lib/cjs/shared/Media/Link/UrlTextField/index.js +3 -3
  271. package/lib/cjs/shared/Media/Share/DisplayComponent.js +1 -1
  272. package/lib/cjs/shared/MetadataField/MetadataField.js +1 -1
  273. package/lib/cjs/shared/NotificationItem/NotificationItem.js +1 -1
  274. package/lib/cjs/shared/PasswordTextField/index.js +1 -1
  275. package/lib/cjs/shared/ProgressBar/index.js +1 -1
  276. package/lib/cjs/shared/StickyBox/index.js +1 -1
  277. package/lib/cjs/shared/Tags/index.js +6 -6
  278. package/lib/cjs/shared/UserDeletedSnackBar/UserDeletedSnackBar.js +1 -1
  279. package/lib/cjs/shared/VirtualizedScroller/VirtualScrollerChild.js +1 -1
  280. package/lib/cjs/types/broadcastMessage.js +1 -1
  281. package/lib/cjs/types/comments.js +1 -1
  282. package/lib/cjs/types/event.js +1 -1
  283. package/lib/cjs/types/feedObject.js +2 -2
  284. package/lib/cjs/types/notification.js +1 -1
  285. package/lib/cjs/types/user.js +3 -3
  286. package/lib/esm/components/AccountChangeMailValidation/AccountChangeMailValidation.js +1 -1
  287. package/lib/esm/components/AccountDataPortability/AccountDataPortability.js +4 -4
  288. package/lib/esm/components/AccountDataPortabilityButton/AccountDataPortabilityButton.js +1 -1
  289. package/lib/esm/components/AccountDelete/AccountDelete.js +3 -3
  290. package/lib/esm/components/AccountDeleteButton/AccountDeleteButton.js +1 -1
  291. package/lib/esm/components/AccountRecover/AccountRecover.js +2 -2
  292. package/lib/esm/components/AccountReset/AccountReset.js +1 -1
  293. package/lib/esm/components/AccountVerify/AccountVerify.js +1 -1
  294. package/lib/esm/components/BottomNavigation/BottomNavigation.js +2 -2
  295. package/lib/esm/components/BroadcastMessages/BroadcastMessages.js +1 -1
  296. package/lib/esm/components/BroadcastMessages/Message.js +4 -4
  297. package/lib/esm/components/BroadcastMessages/Skeleton.js +1 -1
  298. package/lib/esm/components/Categories/Categories.js +1 -1
  299. package/lib/esm/components/Categories/Skeleton.js +1 -1
  300. package/lib/esm/components/CategoriesPopularWidget/CategoriesPopularWidget.js +1 -1
  301. package/lib/esm/components/CategoriesSuggestionWidget/CategoriesSuggestionWidget.js +1 -1
  302. package/lib/esm/components/CategoriesSuggestionWidget/Skeleton.js +1 -1
  303. package/lib/esm/components/Category/Category.js +1 -1
  304. package/lib/esm/components/Category/Skeleton.js +1 -1
  305. package/lib/esm/components/CategoryAutocomplete/CategoryAutocomplete.js +1 -1
  306. package/lib/esm/components/CategoryFollowersButton/CategoryFollowersButton.js +1 -1
  307. package/lib/esm/components/CategoryHeader/CategoryHeader.js +1 -1
  308. package/lib/esm/components/CategoryHeader/Skeleton.js +1 -1
  309. package/lib/esm/components/CategoryTrendingFeedWidget/CategoryTrendingFeedWidget.js +2 -2
  310. package/lib/esm/components/CategoryTrendingFeedWidget/Skeleton.js +1 -1
  311. package/lib/esm/components/CategoryTrendingUsersWidget/CategoryTrendingUsersWidget.js +1 -1
  312. package/lib/esm/components/CategoryTrendingUsersWidget/Skeleton.js +1 -1
  313. package/lib/esm/components/ChangeCover/ChangeCover.js +6 -6
  314. package/lib/esm/components/ChangeGroupCover/ChangeGroupCover.js +1 -1
  315. package/lib/esm/components/ChangeGroupPicture/ChangeGroupPicture.js +1 -1
  316. package/lib/esm/components/ChangePicture/ChangePictureDialog/ChangePictureDialog.js +2 -2
  317. package/lib/esm/components/CommentObject/CommentObject.js +4 -4
  318. package/lib/esm/components/CommentObjectReply/CommentObjectReply.js +1 -1
  319. package/lib/esm/components/CommentsFeedObject/CommentsFeedObject.js +4 -4
  320. package/lib/esm/components/CommentsObject/CommentsObject.js +6 -6
  321. package/lib/esm/components/Composer/Attributes/Attributes.js +2 -2
  322. package/lib/esm/components/Composer/Composer.js +4 -4
  323. package/lib/esm/components/Composer/Content/ContentDiscussion/ContentDiscussion.js +3 -3
  324. package/lib/esm/components/Composer/Content/ContentPoll/ContentPoll.js +6 -6
  325. package/lib/esm/components/Composer/Content/ContentPost/ContentPost.js +1 -1
  326. package/lib/esm/components/Composer/Layer/AudienceLayer/AudienceLayer.js +4 -4
  327. package/lib/esm/components/Composer/Layer/CategoryLayer/CategoryLayer.js +1 -1
  328. package/lib/esm/components/Composer/Layer/CloseLayer/CloseLayer.js +1 -1
  329. package/lib/esm/components/Composer/Layer/LocationLayer/LocationLayer.js +1 -1
  330. package/lib/esm/components/Composer/Skeleton.js +1 -1
  331. package/lib/esm/components/Composer/TypeSwitchButtonGroup/TypeSwitchButtonGroup.js +1 -1
  332. package/lib/esm/components/ComposerIconButton/ComposerIconButton.js +2 -2
  333. package/lib/esm/components/ConsentSolution/ConsentSolution.js +4 -4
  334. package/lib/esm/components/ConsentSolution/Skeleton.js +1 -1
  335. package/lib/esm/components/CreateEventButton/CreateEventButton.js +1 -1
  336. package/lib/esm/components/CreateEventWidget/CreateEventWidget.js +1 -1
  337. package/lib/esm/components/CreateEventWidget/Skeleton.js +1 -1
  338. package/lib/esm/components/CreateLiveStreamDialog/CreateLiveStreamDialog.js +1 -1
  339. package/lib/esm/components/CreateLiveStreamDialog/LiveStreamSelector/LiveStreamSelector.js +4 -4
  340. package/lib/esm/components/CustomAdv/CustomAdv.js +2 -2
  341. package/lib/esm/components/Editor/Editor.js +1 -1
  342. package/lib/esm/components/Editor/nodes/ImageNode.js +1 -1
  343. package/lib/esm/components/Editor/plugins/EmojiPlugin.js +2 -2
  344. package/lib/esm/components/Editor/plugins/FloatingLinkPlugin.js +4 -4
  345. package/lib/esm/components/Editor/plugins/HashtagPlugin.js +3 -3
  346. package/lib/esm/components/Editor/plugins/ImagePlugin.js +4 -4
  347. package/lib/esm/components/Editor/plugins/MentionsPlugin.js +4 -4
  348. package/lib/esm/components/Editor/plugins/ToolbarPlugin.js +5 -5
  349. package/lib/esm/components/Editor/shared/useDecorators.js +1 -1
  350. package/lib/esm/components/Event/Event.js +4 -4
  351. package/lib/esm/components/Event/Skeleton.js +3 -3
  352. package/lib/esm/components/EventAutocomplete/EventAutocomplete.js +1 -1
  353. package/lib/esm/components/EventForm/EventAddress.js +2 -2
  354. package/lib/esm/components/EventForm/EventForm.js +14 -14
  355. package/lib/esm/components/EventForm/UploadEventCover.js +1 -1
  356. package/lib/esm/components/EventHeader/EventHeader.js +2 -2
  357. package/lib/esm/components/EventHeader/Skeleton.js +1 -1
  358. package/lib/esm/components/EventInfoWidget/EventInfoWidget.js +1 -1
  359. package/lib/esm/components/EventInfoWidget/Skeleton.js +1 -1
  360. package/lib/esm/components/EventInviteButton/EventInviteButton.js +2 -2
  361. package/lib/esm/components/EventLocationWidget/EventLocationWidget.js +3 -3
  362. package/lib/esm/components/EventLocationWidget/Skeleton.js +1 -1
  363. package/lib/esm/components/EventMediaWidget/EventMediaWidget.js +4 -4
  364. package/lib/esm/components/EventMediaWidget/Skeleton.js +1 -1
  365. package/lib/esm/components/EventMediaWidget/TriggerButton.js +3 -3
  366. package/lib/esm/components/EventMembersWidget/EventMembersWidget.js +3 -3
  367. package/lib/esm/components/EventMembersWidget/Skeleton.js +1 -1
  368. package/lib/esm/components/EventMembersWidget/TabContentComponent.js +3 -3
  369. package/lib/esm/components/EventParticipantsButton/EventParticipantsButton.js +1 -1
  370. package/lib/esm/components/EventSubscribeButton/EventSubscribeButton.js +2 -2
  371. package/lib/esm/components/Events/Events.js +6 -6
  372. package/lib/esm/components/Events/LocationEventsFilter.js +1 -1
  373. package/lib/esm/components/Events/Skeleton.js +1 -1
  374. package/lib/esm/components/Feed/Feed.js +4 -4
  375. package/lib/esm/components/Feed/Skeleton.js +1 -1
  376. package/lib/esm/components/FeedObject/Actions/Actions.js +1 -1
  377. package/lib/esm/components/FeedObject/Actions/Comment/Comment.js +3 -3
  378. package/lib/esm/components/FeedObject/Actions/Follow/Follow.js +1 -1
  379. package/lib/esm/components/FeedObject/Actions/Share/Share.js +5 -5
  380. package/lib/esm/components/FeedObject/Actions/Share/SharesDialog/SharesDialog.js +1 -1
  381. package/lib/esm/components/FeedObject/Activities/Activities.js +1 -1
  382. package/lib/esm/components/FeedObject/Activities/ActivitiesMenu/ActivitiesMenu.js +4 -4
  383. package/lib/esm/components/FeedObject/Activities/RelevantActivities/CommentActivity/CommentActivity.js +3 -3
  384. package/lib/esm/components/FeedObject/Activities/RelevantActivities/FollowActivity/FollowActivity.js +2 -2
  385. package/lib/esm/components/FeedObject/Activities/RelevantActivities/PollVoteActivity/PollVoteActivity.js +2 -2
  386. package/lib/esm/components/FeedObject/Activities/RelevantActivities/RelevantActivities.js +1 -1
  387. package/lib/esm/components/FeedObject/Activities/RelevantActivities/VoteUpActivity/VoteUpActivity.js +2 -2
  388. package/lib/esm/components/FeedObject/Contributors/Contributors.js +1 -1
  389. package/lib/esm/components/FeedObject/Contributors/Skeleton.js +1 -1
  390. package/lib/esm/components/FeedObject/FeedObject.js +11 -11
  391. package/lib/esm/components/FeedObject/Poll/Choice/Choice.js +2 -2
  392. package/lib/esm/components/FeedObject/Poll/Poll.js +1 -1
  393. package/lib/esm/components/FeedUpdatesWidget/FeedUpdatesWidget.js +1 -1
  394. package/lib/esm/components/Footer/Footer.js +1 -1
  395. package/lib/esm/components/Group/Group.js +2 -2
  396. package/lib/esm/components/Group/Skeleton.js +1 -1
  397. package/lib/esm/components/GroupActionsMenu/index.js +4 -4
  398. package/lib/esm/components/GroupAutocomplete/GroupAutocomplete.js +1 -1
  399. package/lib/esm/components/GroupForm/GroupForm.js +9 -9
  400. package/lib/esm/components/GroupHeader/GroupHeader.js +2 -2
  401. package/lib/esm/components/GroupHeader/Skeleton.js +1 -1
  402. package/lib/esm/components/GroupInfoWidget/GroupInfoWidget.js +6 -6
  403. package/lib/esm/components/GroupInviteButton/GroupInviteButton.js +2 -2
  404. package/lib/esm/components/GroupInvitedWidget/GroupInvitedWidget.js +1 -1
  405. package/lib/esm/components/GroupMembersButton/GroupMembersButton.js +1 -1
  406. package/lib/esm/components/GroupMembersWidget/GroupMembersWidget.js +5 -5
  407. package/lib/esm/components/GroupRequestsWidget/GroupRequestsWidget.js +1 -1
  408. package/lib/esm/components/GroupSettingsIconButton/GroupSettingsIconButton.js +5 -5
  409. package/lib/esm/components/Groups/Groups.js +3 -3
  410. package/lib/esm/components/Groups/Skeleton.js +1 -1
  411. package/lib/esm/components/Incubator/Incubator.js +4 -4
  412. package/lib/esm/components/Incubator/Skeleton.js +1 -1
  413. package/lib/esm/components/IncubatorDetail/IncubatorDetail.js +2 -2
  414. package/lib/esm/components/IncubatorListWidget/CreateIncubatorDialog/CreateIncubatorDialog.js +2 -2
  415. package/lib/esm/components/IncubatorListWidget/IncubatorListWidget.js +2 -2
  416. package/lib/esm/components/IncubatorListWidget/Skeleton.js +1 -1
  417. package/lib/esm/components/IncubatorSuggestionWidget/IncubatorSuggestionWidget.js +1 -1
  418. package/lib/esm/components/IncubatorSuggestionWidget/Skeleton.js +1 -1
  419. package/lib/esm/components/InlineComposerWidget/InlineComposerWidget.js +1 -1
  420. package/lib/esm/components/InlineComposerWidget/Skeleton.js +1 -1
  421. package/lib/esm/components/LiveStreamForm/LiveStreamForm.js +6 -6
  422. package/lib/esm/components/LiveStreamRoom/LiveStreamRoom.js +1 -1
  423. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/LiveStreamVideoConference.js +3 -1
  424. package/lib/esm/components/LocationAutocomplete/LocationAutocomplete.js +1 -1
  425. package/lib/esm/components/LoyaltyProgramWidget/LoyaltyProgramWidget.js +1 -1
  426. package/lib/esm/components/LoyaltyProgramWidget/Skeleton.js +1 -1
  427. package/lib/esm/components/MyEventsWidget/MyEventsWidget.js +1 -1
  428. package/lib/esm/components/MyEventsWidget/Skeleton.js +1 -1
  429. package/lib/esm/components/NavigationMenuIconButton/DefaultDrawerContent.js +1 -1
  430. package/lib/esm/components/NavigationMenuIconButton/DefaultHeaderContent.js +1 -1
  431. package/lib/esm/components/NavigationMenuIconButton/NavigationMenuDrawer.js +1 -1
  432. package/lib/esm/components/NavigationMenuIconButton/NavigationMenuIconButton.js +1 -1
  433. package/lib/esm/components/NavigationSettingsIconButton/NavigationSettingsIconButton.js +29 -29
  434. package/lib/esm/components/NavigationToolbar/NavigationToolbar.js +7 -7
  435. package/lib/esm/components/NavigationToolbar/NotificationMenu.js +1 -1
  436. package/lib/esm/components/NavigationToolbar/Skeleton.js +1 -1
  437. package/lib/esm/components/NavigationToolbarMobile/NavigationToolbarMobile.js +4 -4
  438. package/lib/esm/components/NavigationToolbarMobile/Skeleton.js +1 -1
  439. package/lib/esm/components/Notification/CollapsedFor/CollapsedFor.js +1 -1
  440. package/lib/esm/components/Notification/Comment/Comment.js +3 -3
  441. package/lib/esm/components/Notification/Contribution/Contribution.js +3 -3
  442. package/lib/esm/components/Notification/ContributionFollow/ContributionFollow.js +2 -2
  443. package/lib/esm/components/Notification/DeletedFor/DeletedFor.js +1 -1
  444. package/lib/esm/components/Notification/Event/Event.js +9 -9
  445. package/lib/esm/components/Notification/Group/Group.js +8 -8
  446. package/lib/esm/components/Notification/IncubatorApproved/IncubatorApproved.js +3 -3
  447. package/lib/esm/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.js +1 -1
  448. package/lib/esm/components/Notification/KindlyNoticeFor/KindlyNoticeFor.js +2 -2
  449. package/lib/esm/components/Notification/Mention/Mention.js +3 -3
  450. package/lib/esm/components/Notification/Notification.js +8 -8
  451. package/lib/esm/components/Notification/PrivateMessage/PrivateMessage.js +10 -10
  452. package/lib/esm/components/Notification/Skeleton.js +1 -1
  453. package/lib/esm/components/Notification/UndeletedFor/UndeletedFor.js +1 -1
  454. package/lib/esm/components/Notification/UserBlocked/UserBlocked.js +3 -3
  455. package/lib/esm/components/Notification/UserConnection/UserConnection.js +2 -2
  456. package/lib/esm/components/Notification/UserFollow/UserFollow.js +2 -2
  457. package/lib/esm/components/Notification/VoteUp/VoteUp.js +2 -2
  458. package/lib/esm/components/OnBoardingWidget/ActionsButton.js +5 -5
  459. package/lib/esm/components/OnBoardingWidget/OnBoardingWidget.js +7 -7
  460. package/lib/esm/components/OnBoardingWidget/Skeleton.js +1 -1
  461. package/lib/esm/components/OnBoardingWidget/Steps/App/App.js +9 -9
  462. package/lib/esm/components/OnBoardingWidget/Steps/Appearance/Appearance.js +4 -4
  463. package/lib/esm/components/OnBoardingWidget/Steps/Category/Category.js +5 -5
  464. package/lib/esm/components/OnBoardingWidget/Steps/Content/Content.js +1 -1
  465. package/lib/esm/components/OnBoardingWidget/Steps/Invite/Invite.js +1 -1
  466. package/lib/esm/components/OnBoardingWidget/Steps/Profile/Profile.js +1 -1
  467. package/lib/esm/components/PlatformWidget/PlatformWidget.js +8 -8
  468. package/lib/esm/components/PlatformWidget/Skeleton.js +1 -1
  469. package/lib/esm/components/PollSuggestionWidget/PollSnippet/PollSnippet.js +1 -1
  470. package/lib/esm/components/PollSuggestionWidget/PollSuggestionWidget.js +1 -1
  471. package/lib/esm/components/PollSuggestionWidget/Skeleton.js +1 -1
  472. package/lib/esm/components/PrivateMessageComponent/PrivateMessageComponent.js +4 -4
  473. package/lib/esm/components/PrivateMessageComponent/Skeleton.js +1 -1
  474. package/lib/esm/components/PrivateMessageEditor/MessageMediaUploader/index.js +5 -5
  475. package/lib/esm/components/PrivateMessageEditor/PrivateMessageEditor.js +6 -6
  476. package/lib/esm/components/PrivateMessageSettingsIconButton/PrivateMessageSettingsIconButton.js +7 -7
  477. package/lib/esm/components/PrivateMessageSnippetItem/PrivateMessageSnippetItem.js +3 -3
  478. package/lib/esm/components/PrivateMessageSnippetItem/Skeleton.js +1 -1
  479. package/lib/esm/components/PrivateMessageSnippets/PrivateMessageSnippets.js +4 -4
  480. package/lib/esm/components/PrivateMessageSnippets/Skeleton.js +1 -1
  481. package/lib/esm/components/PrivateMessageThread/PrivateMessageThread.js +6 -6
  482. package/lib/esm/components/PrivateMessageThread/Skeleton.js +1 -1
  483. package/lib/esm/components/PrivateMessageThreadItem/PrivateMessageThreadItem.js +6 -6
  484. package/lib/esm/components/RelatedEventsWidget/RelatedEventsWidget.js +1 -1
  485. package/lib/esm/components/RelatedEventsWidget/Skeleton.js +1 -1
  486. package/lib/esm/components/RelatedFeedObjectsWidget/RelatedFeedObjectsWidget.js +1 -1
  487. package/lib/esm/components/SearchAutocomplete/SearchAutocomplete.js +2 -2
  488. package/lib/esm/components/SnippetNotifications/Skeleton.js +1 -1
  489. package/lib/esm/components/SnippetNotifications/SnippetNotifications.js +3 -3
  490. package/lib/esm/components/SuggestedEventsWidget/Arrow.js +2 -2
  491. package/lib/esm/components/SuggestedEventsWidget/Skeleton.js +1 -1
  492. package/lib/esm/components/SuggestedEventsWidget/SuggestedEventsWidget.js +2 -2
  493. package/lib/esm/components/User/Skeleton.js +1 -1
  494. package/lib/esm/components/User/User.js +2 -2
  495. package/lib/esm/components/UserActionIconButton/UserActionIconButton.js +9 -9
  496. package/lib/esm/components/UserConnectionsRequestsSentWidget/UserConnectionsRequestsSentWidget.js +1 -1
  497. package/lib/esm/components/UserConnectionsRequestsWidget/UserConnectionsRequestsWidget.js +1 -1
  498. package/lib/esm/components/UserConnectionsWidget/UserConnectionsWidget.js +1 -1
  499. package/lib/esm/components/UserCounters/UserCounters.js +5 -5
  500. package/lib/esm/components/UserFollowedCategoriesWidget/UserFollowedCategoriesWidget.js +1 -1
  501. package/lib/esm/components/UserFollowedUsersWidget/UserFollowedUsersWidget.js +1 -1
  502. package/lib/esm/components/UserFollowersWidget/UserFollowersWidget.js +1 -1
  503. package/lib/esm/components/UserInfo/Skeleton.js +1 -1
  504. package/lib/esm/components/UserInfo/UserInfo.js +3 -3
  505. package/lib/esm/components/UserInfoDialog/UserInfoDialog.js +1 -1
  506. package/lib/esm/components/UserProfileBlocked/UserProfileBlocked.js +1 -1
  507. package/lib/esm/components/UserProfileEdit/Section/Account.js +1 -1
  508. package/lib/esm/components/UserProfileEdit/Section/AccountCredentials.js +6 -6
  509. package/lib/esm/components/UserProfileEdit/Section/PublicInfo.js +8 -8
  510. package/lib/esm/components/UserProfileEdit/Section/Settings.js +3 -3
  511. package/lib/esm/components/UserProfileEdit/Section/SettingsSkeleton.js +1 -1
  512. package/lib/esm/components/UserProfileEdit/Skeleton.js +1 -1
  513. package/lib/esm/components/UserProfileEdit/UserProfileEdit.js +1 -1
  514. package/lib/esm/components/UserProfileHeader/Skeleton.js +1 -1
  515. package/lib/esm/components/UserProfileHeader/UserProfileHeader.js +1 -1
  516. package/lib/esm/components/UserSocialAssociation/UserSocialAssociation.js +1 -1
  517. package/lib/esm/components/UserSubscribedGroupsWidget/Skeleton.js +1 -1
  518. package/lib/esm/components/UserSubscribedGroupsWidget/UserSubscribedGroupsWidget.js +2 -2
  519. package/lib/esm/components/UserSuggestionWidget/Skeleton.js +1 -1
  520. package/lib/esm/components/UserSuggestionWidget/UserSuggestionWidget.js +1 -1
  521. package/lib/esm/components/VoteAudienceButton/VoteAudienceButton.js +5 -5
  522. package/lib/esm/components/VoteButton/VoteButton.js +2 -2
  523. package/lib/esm/shared/AutoPlayer/index.js +2 -2
  524. package/lib/esm/shared/BaseDialog/BaseDialog.js +2 -2
  525. package/lib/esm/shared/BaseItem/BaseItem.js +2 -2
  526. package/lib/esm/shared/BaseItemButton/BaseItemButton.js +2 -2
  527. package/lib/esm/shared/Calendar/index.js +1 -1
  528. package/lib/esm/shared/ConfirmDialog/ConfirmDialog.js +1 -1
  529. package/lib/esm/shared/ConsentSolutionSwitch/index.js +3 -3
  530. package/lib/esm/shared/ContributionActionsMenu/index.js +10 -10
  531. package/lib/esm/shared/CustomSnackMessage/index.js +1 -1
  532. package/lib/esm/shared/DateTimeAgo/index.js +1 -1
  533. package/lib/esm/shared/EmojiPicker/EmojiPicker.js +1 -1
  534. package/lib/esm/shared/EventActionsMenu/index.js +5 -5
  535. package/lib/esm/shared/EventInfoDetails/index.js +3 -3
  536. package/lib/esm/shared/InfiniteScroll/index.js +2 -2
  537. package/lib/esm/shared/InfiniteScroll/stories/InfiniteScrollWithHeight.js +1 -1
  538. package/lib/esm/shared/InfiniteScroll/stories/PullDownToRefreshInfScroll.js +1 -1
  539. package/lib/esm/shared/InfiniteScroll/stories/ScrollableTargetFixedInfScroll.js +2 -2
  540. package/lib/esm/shared/InfiniteScroll/stories/ScrollableTargetInfScroll.js +1 -1
  541. package/lib/esm/shared/InfiniteScroll/stories/ScrolleableTop.js +2 -2
  542. package/lib/esm/shared/InfiniteScroll/stories/WindowInfiniteScrollComponent.js +1 -1
  543. package/lib/esm/shared/LanguageSwitcher/index.js +1 -1
  544. package/lib/esm/shared/MarkRead/MarkRead.js +1 -1
  545. package/lib/esm/shared/Media/File/DisplayComponent.js +11 -11
  546. package/lib/esm/shared/Media/File/PreviewComponent.js +3 -3
  547. package/lib/esm/shared/Media/File/TriggerButton.js +7 -7
  548. package/lib/esm/shared/Media/Link/DisplayComponent.js +3 -3
  549. package/lib/esm/shared/Media/Link/LayerComponent.js +1 -1
  550. package/lib/esm/shared/Media/Link/PreviewComponent.js +1 -1
  551. package/lib/esm/shared/Media/Link/TriggerButton.js +1 -1
  552. package/lib/esm/shared/Media/Link/UrlTextField/index.js +3 -3
  553. package/lib/esm/shared/Media/Share/DisplayComponent.js +1 -1
  554. package/lib/esm/shared/MetadataField/MetadataField.js +1 -1
  555. package/lib/esm/shared/NotificationItem/NotificationItem.js +1 -1
  556. package/lib/esm/shared/PasswordTextField/index.js +1 -1
  557. package/lib/esm/shared/ProgressBar/index.js +1 -1
  558. package/lib/esm/shared/StickyBox/index.js +1 -1
  559. package/lib/esm/shared/Tags/index.js +5 -5
  560. package/lib/esm/shared/UserDeletedSnackBar/UserDeletedSnackBar.js +1 -1
  561. package/lib/esm/shared/VirtualizedScroller/VirtualScrollerChild.js +1 -1
  562. package/lib/umd/react-ui.js +1 -1
  563. package/package.json +8 -8
@@ -181,23 +181,23 @@ function Share(props) {
181
181
  let audience;
182
182
  if (withAudience) {
183
183
  if (!obj) {
184
- audience = ((0, jsx_runtime_1.jsx)(material_1.Button, { variant: "text", size: "small", disabled: true, color: "inherit", children: (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: "wave", height: 18, width: 50 }) }));
184
+ audience = ((0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ variant: "text", size: "small", disabled: true, color: "inherit" }, { children: (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: "wave", height: 18, width: 50 }) })));
185
185
  }
186
186
  else {
187
- audience = ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Button, { variant: "text", size: "small", onClick: handleToggleSharesDialog, disabled: sharesCount < 1, classes: { root: classes.viewAudienceButton }, children: `${intl.formatMessage(messages.shares, { total: sharesCount })}` }), openSharesDialog && sharesCount > 0 && ((0, jsx_runtime_1.jsx)(SharesDialog_1.default, { feedObject: obj, feedObjectType: obj.type, open: openSharesDialog, onClose: handleToggleSharesDialog }))] }));
187
+ audience = ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ variant: "text", size: "small", onClick: handleToggleSharesDialog, disabled: sharesCount < 1, classes: { root: classes.viewAudienceButton } }, { children: `${intl.formatMessage(messages.shares, { total: sharesCount })}` })), openSharesDialog && sharesCount > 0 && ((0, jsx_runtime_1.jsx)(SharesDialog_1.default, { feedObject: obj, feedObjectType: obj.type, open: openSharesDialog, onClose: handleToggleSharesDialog }))] }));
188
188
  }
189
189
  }
190
190
  return audience;
191
191
  }
192
192
  function renderShareMenuItems() {
193
- return ((0, jsx_runtime_1.jsxs)(material_1.Box, { children: [(!feedObject.group || isGroupPublic) && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [showShareAction && ((0, jsx_runtime_1.jsxs)(MenuItem_1.default, { onClick: () => share(false), children: [(0, jsx_runtime_1.jsx)(ListItemIcon_1.default, { children: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "redo" }) }), (0, jsx_runtime_1.jsx)(material_1.ListItemText, { primary: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.feedObject.share.shareNow", defaultMessage: "ui.feedObject.share.shareNow" }) })] })), facebookShareEnabled && ((0, jsx_runtime_1.jsxs)(MenuItem_1.default, { onClick: () => window.open(SocialShare_1.FACEBOOK_SHARE + url, 'facebook-share-dialog', 'width=626,height=436'), children: [(0, jsx_runtime_1.jsx)(ListItemIcon_1.default, { children: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "facebook" }) }), (0, jsx_runtime_1.jsx)(material_1.ListItemText, { primary: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.feedObject.share.facebook", defaultMessage: "ui.feedObject.share.facebook" }) })] })), xShareEnabled && ((0, jsx_runtime_1.jsxs)(MenuItem_1.default, { onClick: () => window.open(SocialShare_1.X_SHARE + url, 'x-share-dialog', 'width=626,height=436'), children: [(0, jsx_runtime_1.jsx)(ListItemIcon_1.default, { children: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "twitter" }) }), (0, jsx_runtime_1.jsx)(material_1.ListItemText, { primary: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.feedObject.share.x", defaultMessage: "ui.feedObject.share.x" }) })] })), linkedinShareEnabled && ((0, jsx_runtime_1.jsxs)(MenuItem_1.default, { onClick: () => window.open(SocialShare_1.LINKEDIN_SHARE + url, 'linkedin-share-dialog', 'width=626,height=436'), children: [(0, jsx_runtime_1.jsx)(ListItemIcon_1.default, { children: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "linkedin" }) }), (0, jsx_runtime_1.jsx)(material_1.ListItemText, { primary: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.feedObject.share.linkedin", defaultMessage: "ui.feedObject.share.linkedin" }) })] }))] })), (0, jsx_runtime_1.jsxs)(MenuItem_1.default, { children: [(0, jsx_runtime_1.jsx)(ListItemIcon_1.default, { children: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "link" }) }), (0, jsx_runtime_1.jsx)(material_1.ListItemText, { primary: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.feedObject.share.permanentLink", defaultMessage: "ui.feedObject.share.permanentLink" }), onClick: () => getPermalink() })] })] }));
193
+ return ((0, jsx_runtime_1.jsxs)(material_1.Box, { children: [(!feedObject.group || isGroupPublic) && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [showShareAction && ((0, jsx_runtime_1.jsxs)(MenuItem_1.default, Object.assign({ onClick: () => share(false) }, { children: [(0, jsx_runtime_1.jsx)(ListItemIcon_1.default, { children: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "redo" }) }), (0, jsx_runtime_1.jsx)(material_1.ListItemText, { primary: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.feedObject.share.shareNow", defaultMessage: "ui.feedObject.share.shareNow" }) })] }))), facebookShareEnabled && ((0, jsx_runtime_1.jsxs)(MenuItem_1.default, Object.assign({ onClick: () => window.open(SocialShare_1.FACEBOOK_SHARE + url, 'facebook-share-dialog', 'width=626,height=436') }, { children: [(0, jsx_runtime_1.jsx)(ListItemIcon_1.default, { children: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "facebook" }) }), (0, jsx_runtime_1.jsx)(material_1.ListItemText, { primary: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.feedObject.share.facebook", defaultMessage: "ui.feedObject.share.facebook" }) })] }))), xShareEnabled && ((0, jsx_runtime_1.jsxs)(MenuItem_1.default, Object.assign({ onClick: () => window.open(SocialShare_1.X_SHARE + url, 'x-share-dialog', 'width=626,height=436') }, { children: [(0, jsx_runtime_1.jsx)(ListItemIcon_1.default, { children: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "twitter" }) }), (0, jsx_runtime_1.jsx)(material_1.ListItemText, { primary: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.feedObject.share.x", defaultMessage: "ui.feedObject.share.x" }) })] }))), linkedinShareEnabled && ((0, jsx_runtime_1.jsxs)(MenuItem_1.default, Object.assign({ onClick: () => window.open(SocialShare_1.LINKEDIN_SHARE + url, 'linkedin-share-dialog', 'width=626,height=436') }, { children: [(0, jsx_runtime_1.jsx)(ListItemIcon_1.default, { children: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "linkedin" }) }), (0, jsx_runtime_1.jsx)(material_1.ListItemText, { primary: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.feedObject.share.linkedin", defaultMessage: "ui.feedObject.share.linkedin" }) })] })))] })), (0, jsx_runtime_1.jsxs)(MenuItem_1.default, { children: [(0, jsx_runtime_1.jsx)(ListItemIcon_1.default, { children: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "link" }) }), (0, jsx_runtime_1.jsx)(material_1.ListItemText, { primary: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.feedObject.share.permanentLink", defaultMessage: "ui.feedObject.share.permanentLink" }), onClick: () => getPermalink() })] })] }));
194
194
  }
195
195
  /**
196
196
  * Renders vote action if withAction==true
197
197
  * @return {JSX.Element}
198
198
  */
199
199
  function renderShareBtn() {
200
- return ((0, jsx_runtime_1.jsx)(react_1.default.Fragment, { children: withAction && ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [!inlineAction && withAudience && (0, jsx_runtime_1.jsx)(material_1.Divider, { className: classes.divider }), (0, jsx_runtime_1.jsx)(material_1.Tooltip, { title: `${intl.formatMessage(messages.share)}`, children: (0, jsx_runtime_1.jsx)(LoadingButton_1.default, { loading: isSharing, onClick: handleOpenShareMenu, className: classes.button, children: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "share" }) }) }), (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: !isMobile ? ((0, jsx_runtime_1.jsx)(material_1.Menu, { anchorEl: anchorEl, open: Boolean(anchorEl), onClose: handleClose, onClick: handleClose, slotProps: {
200
+ return ((0, jsx_runtime_1.jsx)(react_1.default.Fragment, { children: withAction && ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [!inlineAction && withAudience && (0, jsx_runtime_1.jsx)(material_1.Divider, { className: classes.divider }), (0, jsx_runtime_1.jsx)(material_1.Tooltip, Object.assign({ title: `${intl.formatMessage(messages.share)}` }, { children: (0, jsx_runtime_1.jsx)(LoadingButton_1.default, Object.assign({ loading: isSharing, onClick: handleOpenShareMenu, className: classes.button }, { children: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "share" }) })) })), (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: !isMobile ? ((0, jsx_runtime_1.jsx)(material_1.Menu, Object.assign({ anchorEl: anchorEl, open: Boolean(anchorEl), onClose: handleClose, onClick: handleClose, slotProps: {
201
201
  paper: {
202
202
  elevation: 0,
203
203
  sx: {
@@ -218,7 +218,7 @@ function Share(props) {
218
218
  }
219
219
  }
220
220
  }
221
- }, transformOrigin: { horizontal: 'right', vertical: 'top' }, anchorOrigin: { horizontal: 'right', vertical: 'bottom' }, children: renderShareMenuItems() })) : ((0, jsx_runtime_1.jsx)(material_1.SwipeableDrawer, { open: Boolean(anchorEl), onClick: handleClose, onClose: handleClose, onOpen: handleOpenShareMenu, anchor: "bottom", disableSwipeToOpen: true, children: renderShareMenuItems() })) }), isComposerOpen && ((0, jsx_runtime_1.jsx)(Composer_1.default, { open: isComposerOpen, defaultValue: composerShareProps, onClose: handleComposerOnClose, onSuccess: handleComposerOnSuccess, maxWidth: "sm", fullWidth: true }))] })) }));
221
+ }, transformOrigin: { horizontal: 'right', vertical: 'top' }, anchorOrigin: { horizontal: 'right', vertical: 'bottom' } }, { children: renderShareMenuItems() }))) : ((0, jsx_runtime_1.jsx)(material_1.SwipeableDrawer, Object.assign({ open: Boolean(anchorEl), onClick: handleClose, onClose: handleClose, onOpen: handleOpenShareMenu, anchor: "bottom", disableSwipeToOpen: true }, { children: renderShareMenuItems() }))) }), isComposerOpen && ((0, jsx_runtime_1.jsx)(Composer_1.default, { open: isComposerOpen, defaultValue: composerShareProps, onClose: handleComposerOnClose, onSuccess: handleComposerOnSuccess, maxWidth: "sm", fullWidth: true }))] })) }));
222
222
  }
223
223
  /**
224
224
  * Renders share action
@@ -58,6 +58,6 @@ function SharesDialog(props) {
58
58
  /**
59
59
  * Renders shares dialog
60
60
  */
61
- return ((0, jsx_runtime_1.jsx)(BaseDialog_1.default, Object.assign({ title: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { defaultMessage: "ui.feedObject.sharesDialog.title", id: "ui.feedObject.sharesDialog.title" }), onClose: onClose, open: open }, rest, { children: isLoading ? ((0, jsx_runtime_1.jsx)(CentralProgress_1.default, { size: 50 })) : ((0, jsx_runtime_1.jsx)(InfiniteScroll_1.default, { dataLength: shares.length, next: fetchShares, hasMoreNext: next !== null, loaderNext: (0, jsx_runtime_1.jsx)(CentralProgress_1.default, { size: 30 }), height: 400, endMessage: (0, jsx_runtime_1.jsx)(Typography_1.default, { variant: "body2", align: "center", fontWeight: "bold", children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.feedObject.sharesDialog.noOtherLikes", defaultMessage: "ui.feedObject.sharesDialog.noOtherLikes" }) }), children: (0, jsx_runtime_1.jsx)(material_1.List, { children: shares.slice(0, 4).map((user, index) => ((0, jsx_runtime_1.jsx)(material_1.ListItem, { children: (0, jsx_runtime_1.jsx)(User_1.default, { elevation: 0, user: user }, index) }, user.id))) }) })) })));
61
+ return ((0, jsx_runtime_1.jsx)(BaseDialog_1.default, Object.assign({ title: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { defaultMessage: "ui.feedObject.sharesDialog.title", id: "ui.feedObject.sharesDialog.title" }), onClose: onClose, open: open }, rest, { children: isLoading ? ((0, jsx_runtime_1.jsx)(CentralProgress_1.default, { size: 50 })) : ((0, jsx_runtime_1.jsx)(InfiniteScroll_1.default, Object.assign({ dataLength: shares.length, next: fetchShares, hasMoreNext: next !== null, loaderNext: (0, jsx_runtime_1.jsx)(CentralProgress_1.default, { size: 30 }), height: 400, endMessage: (0, jsx_runtime_1.jsx)(Typography_1.default, Object.assign({ variant: "body2", align: "center", fontWeight: "bold" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.feedObject.sharesDialog.noOtherLikes", defaultMessage: "ui.feedObject.sharesDialog.noOtherLikes" }) })) }, { children: (0, jsx_runtime_1.jsx)(material_1.List, { children: shares.slice(0, 4).map((user, index) => ((0, jsx_runtime_1.jsx)(material_1.ListItem, { children: (0, jsx_runtime_1.jsx)(User_1.default, { elevation: 0, user: user }, index) }, user.id))) }) }))) })));
62
62
  }
63
63
  exports.default = SharesDialog;
@@ -88,7 +88,7 @@ function Activities(props) {
88
88
  /**
89
89
  * Renders root object
90
90
  */
91
- return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className) }, rest, { ref: ref, children: commentsObject.feedObject &&
91
+ return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className) }, rest, { ref: ref }, { children: commentsObject.feedObject &&
92
92
  (Boolean(commentsObject.feedObject.comment_count) ||
93
93
  (feedObjectActivities && feedObjectActivities.length > 0) ||
94
94
  comments.length > 0 ||
@@ -73,14 +73,14 @@ function ActivitiesMenu(props) {
73
73
  };
74
74
  };
75
75
  function renderMenuContent() {
76
- return ((0, jsx_runtime_1.jsxs)(Box_1.default, { children: [!hideRelevantActivitiesItem && ((0, jsx_runtime_1.jsx)(material_1.ListItemButton, { selected: selectedActivities === feedObject_1.SCFeedObjectActivitiesType.RELEVANCE_ACTIVITIES, onClick: handleChangeActivitiesType(feedObject_1.SCFeedObjectActivitiesType.RELEVANCE_ACTIVITIES), children: (0, jsx_runtime_1.jsx)(material_1.ListItemText, { primary: (0, jsx_runtime_1.jsx)("b", { children: intl.formatMessage(messages.relevantActivities) }), secondary: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: 'ui.feedObject.activitiesMenu.relevantActivitiesDesc', defaultMessage: 'ui.feedObject.activitiesMenu.relevantActivitiesDesc' }) }) })), (0, jsx_runtime_1.jsx)(material_1.ListItemButton, { selected: selectedActivities === feedObject_1.SCFeedObjectActivitiesType.RECENT_COMMENTS, onClick: handleChangeActivitiesType(feedObject_1.SCFeedObjectActivitiesType.RECENT_COMMENTS), children: (0, jsx_runtime_1.jsx)(material_1.ListItemText, { primary: (0, jsx_runtime_1.jsx)("b", { children: intl.formatMessage(messages.recentComments) }), secondary: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: 'ui.feedObject.activitiesMenu.recentCommentsDesc', defaultMessage: 'ui.feedObject.activitiesMenu.recentCommentsDesc' }) }) }), (0, jsx_runtime_1.jsx)(material_1.ListItemButton, { selected: selectedActivities === feedObject_1.SCFeedObjectActivitiesType.FIRST_COMMENTS, onClick: handleChangeActivitiesType(feedObject_1.SCFeedObjectActivitiesType.FIRST_COMMENTS), children: (0, jsx_runtime_1.jsx)(material_1.ListItemText, { primary: (0, jsx_runtime_1.jsx)("b", { children: intl.formatMessage(messages.firstComments) }), secondary: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: 'ui.feedObject.activitiesMenu.firstCommentsDesc', defaultMessage: 'ui.feedObject.activitiesMenu.firstCommentsDesc' }) }) }), scUserContext.user && ((0, jsx_runtime_1.jsx)(material_1.ListItemButton, { selected: selectedActivities === feedObject_1.SCFeedObjectActivitiesType.CONNECTIONS_COMMENTS, onClick: handleChangeActivitiesType(feedObject_1.SCFeedObjectActivitiesType.CONNECTIONS_COMMENTS), children: (0, jsx_runtime_1.jsx)(material_1.ListItemText, { primary: (0, jsx_runtime_1.jsx)("b", { children: followEnabled ? intl.formatMessage(messages.followedComments) : intl.formatMessage(messages.connectionsComments) }), secondary: followEnabled ? ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: 'ui.feedObject.activitiesMenu.followedCommentsDesc', defaultMessage: 'ui.feedObject.activitiesMenu.followedCommentsDesc' })) : ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: 'ui.feedObject.activitiesMenu.connectionsCommentsDesc', defaultMessage: 'ui.feedObject.activitiesMenu.connectionsCommentsDesc' })) }) }))] }));
76
+ return ((0, jsx_runtime_1.jsxs)(Box_1.default, { children: [!hideRelevantActivitiesItem && ((0, jsx_runtime_1.jsx)(material_1.ListItemButton, Object.assign({ selected: selectedActivities === feedObject_1.SCFeedObjectActivitiesType.RELEVANCE_ACTIVITIES, onClick: handleChangeActivitiesType(feedObject_1.SCFeedObjectActivitiesType.RELEVANCE_ACTIVITIES) }, { children: (0, jsx_runtime_1.jsx)(material_1.ListItemText, { primary: (0, jsx_runtime_1.jsx)("b", { children: intl.formatMessage(messages.relevantActivities) }), secondary: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: 'ui.feedObject.activitiesMenu.relevantActivitiesDesc', defaultMessage: 'ui.feedObject.activitiesMenu.relevantActivitiesDesc' }) }) }))), (0, jsx_runtime_1.jsx)(material_1.ListItemButton, Object.assign({ selected: selectedActivities === feedObject_1.SCFeedObjectActivitiesType.RECENT_COMMENTS, onClick: handleChangeActivitiesType(feedObject_1.SCFeedObjectActivitiesType.RECENT_COMMENTS) }, { children: (0, jsx_runtime_1.jsx)(material_1.ListItemText, { primary: (0, jsx_runtime_1.jsx)("b", { children: intl.formatMessage(messages.recentComments) }), secondary: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: 'ui.feedObject.activitiesMenu.recentCommentsDesc', defaultMessage: 'ui.feedObject.activitiesMenu.recentCommentsDesc' }) }) })), (0, jsx_runtime_1.jsx)(material_1.ListItemButton, Object.assign({ selected: selectedActivities === feedObject_1.SCFeedObjectActivitiesType.FIRST_COMMENTS, onClick: handleChangeActivitiesType(feedObject_1.SCFeedObjectActivitiesType.FIRST_COMMENTS) }, { children: (0, jsx_runtime_1.jsx)(material_1.ListItemText, { primary: (0, jsx_runtime_1.jsx)("b", { children: intl.formatMessage(messages.firstComments) }), secondary: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: 'ui.feedObject.activitiesMenu.firstCommentsDesc', defaultMessage: 'ui.feedObject.activitiesMenu.firstCommentsDesc' }) }) })), scUserContext.user && ((0, jsx_runtime_1.jsx)(material_1.ListItemButton, Object.assign({ selected: selectedActivities === feedObject_1.SCFeedObjectActivitiesType.CONNECTIONS_COMMENTS, onClick: handleChangeActivitiesType(feedObject_1.SCFeedObjectActivitiesType.CONNECTIONS_COMMENTS) }, { children: (0, jsx_runtime_1.jsx)(material_1.ListItemText, { primary: (0, jsx_runtime_1.jsx)("b", { children: followEnabled ? intl.formatMessage(messages.followedComments) : intl.formatMessage(messages.connectionsComments) }), secondary: followEnabled ? ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: 'ui.feedObject.activitiesMenu.followedCommentsDesc', defaultMessage: 'ui.feedObject.activitiesMenu.followedCommentsDesc' })) : ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: 'ui.feedObject.activitiesMenu.connectionsCommentsDesc', defaultMessage: 'ui.feedObject.activitiesMenu.connectionsCommentsDesc' })) }) })))] }));
77
77
  }
78
78
  /**
79
79
  * Renders root object
80
80
  */
81
- return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, rest, { children: [(0, jsx_runtime_1.jsx)(Box_1.default, { className: classes.selector, children: (0, jsx_runtime_1.jsx)(Tooltip_1.default, { title: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.feedObject.activitiesMenu.tooltipTitle", defaultMessage: "ui.feedObject.activitiesMenu.tooltipTitle" }), children: (0, jsx_runtime_1.jsxs)(material_1.Button, { variant: "text", size: "small", onClick: handleOpen, children: [selectedActivities === feedObject_1.SCFeedObjectActivitiesType.CONNECTIONS_COMMENTS && followEnabled
81
+ return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, rest, { children: [(0, jsx_runtime_1.jsx)(Box_1.default, Object.assign({ className: classes.selector }, { children: (0, jsx_runtime_1.jsx)(Tooltip_1.default, Object.assign({ title: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.feedObject.activitiesMenu.tooltipTitle", defaultMessage: "ui.feedObject.activitiesMenu.tooltipTitle" }) }, { children: (0, jsx_runtime_1.jsxs)(material_1.Button, Object.assign({ variant: "text", size: "small", onClick: handleOpen }, { children: [selectedActivities === feedObject_1.SCFeedObjectActivitiesType.CONNECTIONS_COMMENTS && followEnabled
82
82
  ? intl.formatMessage(messages.followedComments)
83
- : intl.formatMessage(messages[`${(0, utils_1.camelCase)(selectedActivities)}`]), "\u00A0 ", (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "expand_more" })] }) }) }), isMobile ? ((0, jsx_runtime_1.jsx)(material_1.SwipeableDrawer, { open: open, onClose: handleClose, onOpen: handleOpen, anchor: "bottom", disableSwipeToOpen: true, children: renderMenuContent() })) : ((0, jsx_runtime_1.jsx)(Menu_1.default, { anchorEl: anchorEl, open: open, onClose: handleClose, onClick: handleClose, PaperProps: {
83
+ : intl.formatMessage(messages[`${(0, utils_1.camelCase)(selectedActivities)}`]), "\u00A0 ", (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "expand_more" })] })) })) })), isMobile ? ((0, jsx_runtime_1.jsx)(material_1.SwipeableDrawer, Object.assign({ open: open, onClose: handleClose, onOpen: handleOpen, anchor: "bottom", disableSwipeToOpen: true }, { children: renderMenuContent() }))) : ((0, jsx_runtime_1.jsx)(Menu_1.default, Object.assign({ anchorEl: anchorEl, open: open, onClose: handleClose, onClick: handleClose, PaperProps: {
84
84
  elevation: 0,
85
85
  sx: {
86
86
  overflow: 'visible',
@@ -99,6 +99,6 @@ function ActivitiesMenu(props) {
99
99
  zIndex: 0
100
100
  }
101
101
  }
102
- }, transformOrigin: { horizontal: 'right', vertical: 'top' }, anchorOrigin: { horizontal: 'right', vertical: 'bottom' }, children: renderMenuContent() }))] })));
102
+ }, transformOrigin: { horizontal: 'right', vertical: 'top' }, anchorOrigin: { horizontal: 'right', vertical: 'bottom' } }, { children: renderMenuContent() })))] })));
103
103
  }
104
104
  exports.default = ActivitiesMenu;
@@ -45,9 +45,9 @@ function CommentRelevantActivity(props) {
45
45
  // : activityObject.comment.html.length >= MAX_SUMMARY_LENGTH;
46
46
  // const commentHtml = 'summary_html' in activityObject.comment ? activityObject.comment.summary_html : activityObject.comment.summary;
47
47
  // const summaryHtml = getContributionHtml(commentHtml, scRoutingContext.url);
48
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Root, Object.assign({}, rest, { className: (0, classnames_1.default)(classes.root, className), image: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({}, (!activityObject.author.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, activityObject.author) }), { onClick: activityObject.author.deleted ? () => setOpenAlert(true) : null, children: (0, jsx_runtime_1.jsx)(material_1.Avatar, { alt: activityObject.author.username, variant: "circular", src: activityObject.author.avatar, className: classes.avatar }) })), primary: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: intl.formatMessage(messages.comment, {
49
- username: ((0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({}, (!activityObject.author.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, activityObject.author) }), { onClick: activityObject.author.deleted ? () => setOpenAlert(true) : null, className: classes.username, children: activityObject.author.username }))),
50
- link: (...chunks) => (0, jsx_runtime_1.jsx)(react_core_1.Link, { to: scRoutingContext.url(react_core_1.SCRoutes.COMMENT_ROUTE_NAME, (0, contribution_1.getRouteData)(activityObject.comment)), children: chunks })
48
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Root, Object.assign({}, rest, { className: (0, classnames_1.default)(classes.root, className), image: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({}, (!activityObject.author.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, activityObject.author) }), { onClick: activityObject.author.deleted ? () => setOpenAlert(true) : null }, { children: (0, jsx_runtime_1.jsx)(material_1.Avatar, { alt: activityObject.author.username, variant: "circular", src: activityObject.author.avatar, className: classes.avatar }) })), primary: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: intl.formatMessage(messages.comment, {
49
+ username: ((0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({}, (!activityObject.author.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, activityObject.author) }), { onClick: activityObject.author.deleted ? () => setOpenAlert(true) : null, className: classes.username }, { children: activityObject.author.username }))),
50
+ link: (...chunks) => (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes.COMMENT_ROUTE_NAME, (0, contribution_1.getRouteData)(activityObject.comment)) }, { children: chunks }))
51
51
  // comment: (
52
52
  // <>
53
53
  // <Typography variant="body2" gutterBottom dangerouslySetInnerHTML={{__html: summaryHtml}} />
@@ -42,8 +42,8 @@ function FollowRelevantActivity(inProps) {
42
42
  // INTL
43
43
  const intl = (0, react_intl_1.useIntl)();
44
44
  // RENDER
45
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Root, Object.assign({}, rest, { className: (0, classnames_1.default)(classes.root, className), image: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({}, (!activityObject.author.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, activityObject.author) }), { onClick: activityObject.author.deleted ? () => setOpenAlert(true) : null, children: (0, jsx_runtime_1.jsx)(material_1.Avatar, { alt: activityObject.author.username, variant: "circular", src: activityObject.author.avatar, className: classes.avatar }) })), primary: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: intl.formatMessage(messages.follow, {
46
- username: ((0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({}, (!activityObject.author.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, activityObject.author) }), { onClick: activityObject.author.deleted ? () => setOpenAlert(true) : null, className: classes.username, children: activityObject.author.username })))
45
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Root, Object.assign({}, rest, { className: (0, classnames_1.default)(classes.root, className), image: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({}, (!activityObject.author.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, activityObject.author) }), { onClick: activityObject.author.deleted ? () => setOpenAlert(true) : null }, { children: (0, jsx_runtime_1.jsx)(material_1.Avatar, { alt: activityObject.author.username, variant: "circular", src: activityObject.author.avatar, className: classes.avatar }) })), primary: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: intl.formatMessage(messages.follow, {
46
+ username: ((0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({}, (!activityObject.author.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, activityObject.author) }), { onClick: activityObject.author.deleted ? () => setOpenAlert(true) : null, className: classes.username }, { children: activityObject.author.username })))
47
47
  }) }), secondary: (0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: activityObject.active_at }) })), openAlert && (0, jsx_runtime_1.jsx)(UserDeletedSnackBar_1.default, { open: openAlert, handleClose: () => setOpenAlert(false) })] }));
48
48
  }
49
49
  exports.default = FollowRelevantActivity;
@@ -37,8 +37,8 @@ function PollVoteRelevantActivity(props) {
37
37
  // INTL
38
38
  const intl = (0, react_intl_1.useIntl)();
39
39
  // RENDER
40
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Root, Object.assign({}, rest, { className: (0, classnames_1.default)(classes.root, className), image: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({}, (!activityObject.author.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, activityObject.author) }), { onClick: activityObject.author.deleted ? () => setOpenAlert(true) : null, children: (0, jsx_runtime_1.jsx)(material_1.Avatar, { alt: activityObject.author.username, variant: "circular", src: activityObject.author.avatar, className: classes.avatar }) })), primary: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: intl.formatMessage(messages.pollVote, {
41
- username: ((0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({}, (!activityObject.author.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, activityObject.author) }), { onClick: activityObject.author.deleted ? () => setOpenAlert(true) : null, className: classes.username, children: activityObject.author.username })))
40
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Root, Object.assign({}, rest, { className: (0, classnames_1.default)(classes.root, className), image: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({}, (!activityObject.author.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, activityObject.author) }), { onClick: activityObject.author.deleted ? () => setOpenAlert(true) : null }, { children: (0, jsx_runtime_1.jsx)(material_1.Avatar, { alt: activityObject.author.username, variant: "circular", src: activityObject.author.avatar, className: classes.avatar }) })), primary: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: intl.formatMessage(messages.pollVote, {
41
+ username: ((0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({}, (!activityObject.author.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, activityObject.author) }), { onClick: activityObject.author.deleted ? () => setOpenAlert(true) : null, className: classes.username }, { children: activityObject.author.username })))
42
42
  }) }), secondary: (0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: activityObject.active_at }) })), openAlert && (0, jsx_runtime_1.jsx)(UserDeletedSnackBar_1.default, { open: openAlert, handleClose: () => setOpenAlert(false) })] }));
43
43
  }
44
44
  exports.default = PollVoteRelevantActivity;
@@ -50,6 +50,6 @@ function RelevantActivities(props) {
50
50
  /**
51
51
  * Renders root object
52
52
  */
53
- return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, rest, { children: activities.length <= 0 ? ((0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "body2", children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.feedObject.relevantActivities.noResults", defaultMessage: "ui.feedObject.relevantActivities.noResults" }) })) : ((0, jsx_runtime_1.jsxs)(material_1.List, { children: [activities.slice(0, showMaxRelevantActivities).map((a, i) => ((0, jsx_runtime_1.jsx)(material_1.ListItem, { className: classes.activity, children: renderActivity(a, i) }, i))), !openOtherActivities && activities.length > showMaxRelevantActivities && ((0, jsx_runtime_1.jsxs)(material_1.ListItemButton, { onClick: () => setOpenOtherActivities((prev) => !prev), children: [(0, jsx_runtime_1.jsx)(material_1.ListItemText, { primary: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: 'ui.feedObject.relevantActivities.showOthers', defaultMessage: 'ui.feedObject.relevantActivities.showOthers' }) }), openOtherActivities ? (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "expand_less" }) : (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "expand_more" })] })), (0, jsx_runtime_1.jsx)(material_1.Collapse, { in: openOtherActivities, timeout: "auto", unmountOnExit: true, children: activities.slice(showMaxRelevantActivities).map((a, i) => ((0, jsx_runtime_1.jsx)(material_1.ListItem, { className: classes.activity, children: renderActivity(a, i) }, i))) })] })) })));
53
+ return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, rest, { children: activities.length <= 0 ? ((0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body2" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.feedObject.relevantActivities.noResults", defaultMessage: "ui.feedObject.relevantActivities.noResults" }) }))) : ((0, jsx_runtime_1.jsxs)(material_1.List, { children: [activities.slice(0, showMaxRelevantActivities).map((a, i) => ((0, jsx_runtime_1.jsx)(material_1.ListItem, Object.assign({ className: classes.activity }, { children: renderActivity(a, i) }), i))), !openOtherActivities && activities.length > showMaxRelevantActivities && ((0, jsx_runtime_1.jsxs)(material_1.ListItemButton, Object.assign({ onClick: () => setOpenOtherActivities((prev) => !prev) }, { children: [(0, jsx_runtime_1.jsx)(material_1.ListItemText, { primary: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: 'ui.feedObject.relevantActivities.showOthers', defaultMessage: 'ui.feedObject.relevantActivities.showOthers' }) }), openOtherActivities ? (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "expand_less" }) : (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "expand_more" })] }))), (0, jsx_runtime_1.jsx)(material_1.Collapse, Object.assign({ in: openOtherActivities, timeout: "auto", unmountOnExit: true }, { children: activities.slice(showMaxRelevantActivities).map((a, i) => ((0, jsx_runtime_1.jsx)(material_1.ListItem, Object.assign({ className: classes.activity }, { children: renderActivity(a, i) }), i))) }))] })) })));
54
54
  }
55
55
  exports.default = RelevantActivities;
@@ -37,8 +37,8 @@ function VoteUpRelevantActivity(props) {
37
37
  // INTL
38
38
  const intl = (0, react_intl_1.useIntl)();
39
39
  // RENDER
40
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Root, Object.assign({}, rest, { className: (0, classnames_1.default)(classes.root, className), image: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({}, (!activityObject.author.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, activityObject.author) }), { onClick: activityObject.author.deleted ? () => setOpenAlert(true) : null, children: (0, jsx_runtime_1.jsx)(material_1.Avatar, { alt: activityObject.author.username, variant: "circular", src: activityObject.author.avatar, className: classes.avatar }) })), primary: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: intl.formatMessage(messages.vote, {
41
- username: ((0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({}, (!activityObject.author.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, activityObject.author) }), { className: classes.username, onClick: activityObject.author.deleted ? () => setOpenAlert(true) : null, children: activityObject.author.username })))
40
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Root, Object.assign({}, rest, { className: (0, classnames_1.default)(classes.root, className), image: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({}, (!activityObject.author.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, activityObject.author) }), { onClick: activityObject.author.deleted ? () => setOpenAlert(true) : null }, { children: (0, jsx_runtime_1.jsx)(material_1.Avatar, { alt: activityObject.author.username, variant: "circular", src: activityObject.author.avatar, className: classes.avatar }) })), primary: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: intl.formatMessage(messages.vote, {
41
+ username: ((0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({}, (!activityObject.author.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, activityObject.author) }), { className: classes.username, onClick: activityObject.author.deleted ? () => setOpenAlert(true) : null }, { children: activityObject.author.username })))
42
42
  }) }), secondary: (0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: activityObject.active_at }) })), openAlert && (0, jsx_runtime_1.jsx)(UserDeletedSnackBar_1.default, { open: openAlert, handleClose: () => setOpenAlert(false) })] }));
43
43
  }
44
44
  exports.default = VoteUpRelevantActivity;
@@ -50,6 +50,6 @@ function ContributorsFeedObject(props) {
50
50
  if (!contributorsObject.feedObject) {
51
51
  return null;
52
52
  }
53
- return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, rest, { children: (0, jsx_runtime_1.jsx)(material_1.Box, { children: contributorsObject.isLoadingNext && !openContributorsDialog ? ((0, jsx_runtime_1.jsx)(Skeleton_1.default, Object.assign({}, ContributorsSkeletonProps))) : ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: contributorsObject.contributors.length > 0 ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(material_1.Button, { variant: "text", onClick: () => setOpenContributorsDialog(true), classes: { root: classes.btnParticipants }, color: "inherit", children: [(0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: 'ui.feedObject.contributors.participants', defaultMessage: 'ui.feedObject.contributors.participants' }), ":", (0, jsx_runtime_1.jsxs)(material_1.AvatarGroup, Object.assign({}, rest, { children: [contributorsObject.contributors.map((c, i) => ((0, jsx_runtime_1.jsx)(material_1.Avatar, { alt: c.username, src: c.avatar }, i))), [...Array(Math.max(contributorsObject.total - contributorsObject.contributors.length, 0))].map((x, i) => ((0, jsx_runtime_1.jsx)(material_1.Avatar, {}, i)))] }))] }), openContributorsDialog && ((0, jsx_runtime_1.jsx)(BaseDialog_1.default, { title: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { defaultMessage: "ui.feedObject.contributors.title", id: "ui.feedObject.contributors.title", values: { total: contributorsObject.total } }), onClose: () => setOpenContributorsDialog(false), open: openContributorsDialog, children: contributorsObject.isLoadingNext ? ((0, jsx_runtime_1.jsx)(CentralProgress_1.default, { size: 50 })) : ((0, jsx_runtime_1.jsx)(InfiniteScroll_1.default, { dataLength: contributorsObject.contributors.length, next: contributorsObject.getNextPage(), hasMoreNext: Boolean(contributorsObject.next), loaderNext: (0, jsx_runtime_1.jsx)(CentralProgress_1.default, { size: 30 }), height: 400, endMessage: (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "body2", align: "center", fontWeight: "bold", children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.feedObject.contributors.noOtherContributors", defaultMessage: "ui.feedObject.contributors.noOtherContributors" }) }), children: (0, jsx_runtime_1.jsx)(material_1.List, { children: contributorsObject.contributors.map((c, i) => ((0, jsx_runtime_1.jsx)(material_1.ListItem, { children: (0, jsx_runtime_1.jsx)(User_1.default, { elevation: 0, user: c, sx: { m: 0 }, onClick: () => setOpenContributorsDialog(false) }, c.id) }, i))) }) })) }))] })) : null })) }) })));
53
+ return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, rest, { children: (0, jsx_runtime_1.jsx)(material_1.Box, { children: contributorsObject.isLoadingNext && !openContributorsDialog ? ((0, jsx_runtime_1.jsx)(Skeleton_1.default, Object.assign({}, ContributorsSkeletonProps))) : ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: contributorsObject.contributors.length > 0 ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(material_1.Button, Object.assign({ variant: "text", onClick: () => setOpenContributorsDialog(true), classes: { root: classes.btnParticipants }, color: "inherit" }, { children: [(0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: 'ui.feedObject.contributors.participants', defaultMessage: 'ui.feedObject.contributors.participants' }), ":", (0, jsx_runtime_1.jsxs)(material_1.AvatarGroup, Object.assign({}, rest, { children: [contributorsObject.contributors.map((c, i) => ((0, jsx_runtime_1.jsx)(material_1.Avatar, { alt: c.username, src: c.avatar }, i))), [...Array(Math.max(contributorsObject.total - contributorsObject.contributors.length, 0))].map((x, i) => ((0, jsx_runtime_1.jsx)(material_1.Avatar, {}, i)))] }))] })), openContributorsDialog && ((0, jsx_runtime_1.jsx)(BaseDialog_1.default, Object.assign({ title: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { defaultMessage: "ui.feedObject.contributors.title", id: "ui.feedObject.contributors.title", values: { total: contributorsObject.total } }), onClose: () => setOpenContributorsDialog(false), open: openContributorsDialog }, { children: contributorsObject.isLoadingNext ? ((0, jsx_runtime_1.jsx)(CentralProgress_1.default, { size: 50 })) : ((0, jsx_runtime_1.jsx)(InfiniteScroll_1.default, Object.assign({ dataLength: contributorsObject.contributors.length, next: contributorsObject.getNextPage(), hasMoreNext: Boolean(contributorsObject.next), loaderNext: (0, jsx_runtime_1.jsx)(CentralProgress_1.default, { size: 30 }), height: 400, endMessage: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body2", align: "center", fontWeight: "bold" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.feedObject.contributors.noOtherContributors", defaultMessage: "ui.feedObject.contributors.noOtherContributors" }) })) }, { children: (0, jsx_runtime_1.jsx)(material_1.List, { children: contributorsObject.contributors.map((c, i) => ((0, jsx_runtime_1.jsx)(material_1.ListItem, { children: (0, jsx_runtime_1.jsx)(User_1.default, { elevation: 0, user: c, sx: { m: 0 }, onClick: () => setOpenContributorsDialog(false) }, c.id) }, i))) }) }))) })))] })) : null })) }) })));
54
54
  }
55
55
  exports.default = ContributorsFeedObject;
@@ -38,6 +38,6 @@ const Root = (0, styles_1.styled)(material_1.Box, {
38
38
  */
39
39
  function ContributorsSkeleton(props) {
40
40
  const { className = null, AvatarGroupSkeletonProps = {} } = props, rest = tslib_1.__rest(props, ["className", "AvatarGroupSkeletonProps"]);
41
- return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, rest, { children: (0, jsx_runtime_1.jsxs)(material_1.Button, { variant: "text", disabled: true, classes: { root: classes.btnParticipants }, children: [(0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: 'ui.feedObject.contributors.participants', defaultMessage: 'ui.feedObject.contributors.participants' }), ":", (0, jsx_runtime_1.jsx)(AvatarGroupSkeleton_1.default, Object.assign({}, props.AvatarGroupSkeletonProps))] }) })));
41
+ return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, rest, { children: (0, jsx_runtime_1.jsxs)(material_1.Button, Object.assign({ variant: "text", disabled: true, classes: { root: classes.btnParticipants } }, { children: [(0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: 'ui.feedObject.contributors.participants', defaultMessage: 'ui.feedObject.contributors.participants' }), ":", (0, jsx_runtime_1.jsx)(AvatarGroupSkeleton_1.default, Object.assign({}, props.AvatarGroupSkeletonProps))] })) })));
42
42
  }
43
43
  exports.default = ContributorsSkeleton;
@@ -403,9 +403,9 @@ function FeedObject(inProps) {
403
403
  ? (0, contribution_1.getContributionHtml)(obj.html, scRoutingContext.url)
404
404
  : (0, contribution_1.getContributionHtml)(contributionHtml, scRoutingContext.url);
405
405
  if (template === feedObject_1.SCFeedObjectTemplateType.SHARE) {
406
- return ((0, jsx_runtime_1.jsxs)(react_core_1.Link, { to: scRoutingContext.url((0, contribution_1.getContributionRouteName)(obj), (0, contribution_1.getRouteData)(obj)), className: classes.text, children: [(0, jsx_runtime_1.jsx)(material_1.Typography, { component: "span", className: classes.text, variant: "body2", gutterBottom: true, dangerouslySetInnerHTML: {
406
+ return ((0, jsx_runtime_1.jsxs)(react_core_1.Link, Object.assign({ to: scRoutingContext.url((0, contribution_1.getContributionRouteName)(obj), (0, contribution_1.getRouteData)(obj)), className: classes.text }, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, { component: "span", className: classes.text, variant: "body2", gutterBottom: true, dangerouslySetInnerHTML: {
407
407
  __html: summaryHtml
408
- } }), !expanded && summaryHtmlTruncated && ((0, jsx_runtime_1.jsx)(material_1.Button, { size: "small", variant: "text", color: "inherit", className: classes.showMore, onClick: handleToggleSummary, children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.feedObject.content.showMore", defaultMessage: "ui.feedObject.content.showMore" }) }))] }));
408
+ } }), !expanded && summaryHtmlTruncated && ((0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ size: "small", variant: "text", color: "inherit", className: classes.showMore, onClick: handleToggleSummary }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.feedObject.content.showMore", defaultMessage: "ui.feedObject.content.showMore" }) })))] })));
409
409
  }
410
410
  else if (template === feedObject_1.SCFeedObjectTemplateType.DETAIL) {
411
411
  return ((0, jsx_runtime_1.jsx)(material_1.Typography, { component: "div", gutterBottom: true, className: classes.text, dangerouslySetInnerHTML: {
@@ -413,9 +413,9 @@ function FeedObject(inProps) {
413
413
  } }));
414
414
  }
415
415
  else {
416
- return ((0, jsx_runtime_1.jsxs)(material_1.Typography, { component: "div", gutterBottom: true, className: classes.text, children: [(0, jsx_runtime_1.jsx)(material_1.Typography, { component: "span", dangerouslySetInnerHTML: {
416
+ return ((0, jsx_runtime_1.jsxs)(material_1.Typography, Object.assign({ component: "div", gutterBottom: true, className: classes.text }, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, { component: "span", dangerouslySetInnerHTML: {
417
417
  __html: summaryHtml
418
- } }), !expanded && summaryHtmlTruncated && ((0, jsx_runtime_1.jsx)(material_1.Button, { size: "small", variant: "text", color: "inherit", className: classes.showMore, onClick: handleToggleSummary, children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.feedObject.content.showMore", defaultMessage: "ui.feedObject.content.showMore" }) }))] }));
418
+ } }), !expanded && summaryHtmlTruncated && ((0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ size: "small", variant: "text", color: "inherit", className: classes.showMore, onClick: handleToggleSummary }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.feedObject.content.showMore", defaultMessage: "ui.feedObject.content.showMore" }) })))] })));
419
419
  }
420
420
  }, [obj, template, expanded]);
421
421
  /**
@@ -426,24 +426,24 @@ function FeedObject(inProps) {
426
426
  let objElement;
427
427
  if ((!obj && error) ||
428
428
  ((obj === null || obj === void 0 ? void 0 : obj.deleted) && !scUserContext.user && !(react_core_1.UserUtils.isAdmin(scUserContext.user) || react_core_1.UserUtils.isModerator(scUserContext.user)))) {
429
- objElement = ((0, jsx_runtime_1.jsx)(CardContent_1.default, { className: (0, classnames_1.default)(classes.error, classes.content), children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.feedObject.error", defaultMessage: "ui.feedObject.error" }) }));
429
+ objElement = ((0, jsx_runtime_1.jsx)(CardContent_1.default, Object.assign({ className: (0, classnames_1.default)(classes.error, classes.content) }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.feedObject.error", defaultMessage: "ui.feedObject.error" }) })));
430
430
  }
431
431
  else if (template === feedObject_1.SCFeedObjectTemplateType.PREVIEW ||
432
432
  template === feedObject_1.SCFeedObjectTemplateType.DETAIL ||
433
433
  template === feedObject_1.SCFeedObjectTemplateType.SEARCH) {
434
- objElement = ((0, jsx_runtime_1.jsx)(react_1.default.Fragment, { children: obj ? ((0, jsx_runtime_1.jsxs)(material_1.Box, { className: (0, classnames_1.default)({ [classes.deleted]: obj && obj.deleted }), children: [obj.categories.length > 0 && ((0, jsx_runtime_1.jsxs)("div", { className: classes.category, children: [(0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [obj.group && ((0, jsx_runtime_1.jsx)("div", { className: classes.group, children: (0, jsx_runtime_1.jsx)(material_1.Chip, { color: "secondary", size: "small", icon: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "groups" }), component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.GROUP_ROUTE_NAME, obj.group), clickable: true }, obj.group.id) })), obj.event && ((0, jsx_runtime_1.jsx)("div", { className: classes.event, children: (0, jsx_runtime_1.jsx)(material_1.Chip, { color: "secondary", size: "small", label: obj.event.name, icon: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "CalendarIcon" }), component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.EVENT_ROUTE_NAME, obj.event), clickable: true }, obj.event.id) }))] }), obj.categories.map((c) => ((0, jsx_runtime_1.jsx)(react_core_1.Link, { to: scRoutingContext.url(react_core_1.SCRoutes.CATEGORY_ROUTE_NAME, c), children: (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "overline", children: c.name }) }, c.id)))] })), obj.group && !obj.categories.length && ((0, jsx_runtime_1.jsx)("div", { className: classes.group, children: (0, jsx_runtime_1.jsx)(material_1.Chip, { color: "secondary", size: "small", icon: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "groups" }), label: obj.group.name, component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.GROUP_ROUTE_NAME, obj.group), clickable: true }, obj.group.id) })), obj.event && !obj.categories.length && ((0, jsx_runtime_1.jsx)("div", { className: classes.event, children: (0, jsx_runtime_1.jsx)(material_1.Chip, { color: "secondary", size: "small", icon: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "CalendarIcon" }), label: obj.event.name, component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.EVENT_ROUTE_NAME, obj.event), clickable: true }, obj.event.id) })), (0, jsx_runtime_1.jsx)(material_1.CardHeader, { className: classes.header, avatar: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({}, (!obj.author.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, obj.author) }), { onClick: obj.author.deleted ? () => setOpenAlert(true) : null, children: (0, jsx_runtime_1.jsx)(UserAvatar_1.default, { hide: !obj.author.community_badge, children: (0, jsx_runtime_1.jsx)(material_1.Avatar, { "aria-label": "recipe", src: obj.author.avatar, className: classes.avatar, children: obj.author.username }) }) })), title: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({}, (!obj.author.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, obj.author) }), { onClick: obj.author.deleted ? () => setOpenAlert(true) : null, className: classes.username, children: obj.author.username })), subheader: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(react_core_1.Link, { to: scRoutingContext.url((0, contribution_1.getContributionRouteName)(obj), (0, contribution_1.getRouteData)(obj)), className: classes.activityAt, children: (0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { component: 'span', date: obj.added_at }) }), obj.location && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Bullet_1.default, {}), (0, jsx_runtime_1.jsxs)(material_1.Box, { className: classes.location, children: [(0, jsx_runtime_1.jsx)(Icon_1.default, { children: "add_location_alt" }), (_a = obj.location) === null || _a === void 0 ? void 0 : _a.location] })] })), (0, jsx_runtime_1.jsx)(Bullet_1.default, {}), (0, jsx_runtime_1.jsx)(material_1.Box, { className: classes.tag, children: obj.addressing.length > 0 ? ((0, jsx_runtime_1.jsx)(Tags_1.default, { tags: obj.addressing, TagChipProps: { disposable: false, clickable: false } })) : obj.group ? ((0, jsx_runtime_1.jsx)(material_1.Tooltip, { title: `${intl.formatMessage(messages.visibleToGroup, { group: obj.group.name })}`, children: (0, jsx_runtime_1.jsx)(Icon_1.default, { color: "disabled", fontSize: "small", children: "groups" }) })) : ((0, jsx_runtime_1.jsx)(material_1.Tooltip, { title: `${intl.formatMessage(messages.visibleToAll)}`, children: (0, jsx_runtime_1.jsx)(Icon_1.default, { color: "disabled", fontSize: "small", children: "public" }) })) })] }), action: renderHeaderAction() }), (0, jsx_runtime_1.jsxs)(CardContent_1.default, { classes: { root: classes.content }, children: [(0, jsx_runtime_1.jsx)(material_1.Box, { className: classes.titleSection, children: 'title' in obj && ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: template === feedObject_1.SCFeedObjectTemplateType.DETAIL ? ((0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "body1", gutterBottom: true, className: classes.title, children: obj.title })) : ((0, jsx_runtime_1.jsx)(react_core_1.Link, { to: scRoutingContext.url((0, contribution_1.getContributionRouteName)(obj), (0, contribution_1.getRouteData)(obj)), children: (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "body1", gutterBottom: true, className: classes.title, children: obj.title }) })) })) }), (0, jsx_runtime_1.jsx)(material_1.Box, { className: classes.textSection, children: getContributionSummary(obj, template) }), (0, jsx_runtime_1.jsx)(material_1.Box, { className: classes.mediasSection, children: (0, jsx_runtime_1.jsx)(FeedObjectMediaPreview_1.default, Object.assign({ medias: obj.medias }, FeedObjectMediaPreviewProps)) }), (0, jsx_runtime_1.jsx)(material_1.Box, { className: classes.pollsSection, children: obj['poll'] && ((0, jsx_runtime_1.jsx)(Poll_1.default, Object.assign({ visible: pollVisible ||
434
+ objElement = ((0, jsx_runtime_1.jsx)(react_1.default.Fragment, { children: obj ? ((0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ className: (0, classnames_1.default)({ [classes.deleted]: obj && obj.deleted }) }, { children: [obj.categories.length > 0 && ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: classes.category }, { children: [(0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [obj.group && ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: classes.group }, { children: (0, jsx_runtime_1.jsx)(material_1.Chip, { color: "secondary", size: "small", icon: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "groups" }), component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.GROUP_ROUTE_NAME, obj.group), clickable: true }, obj.group.id) }))), obj.event && ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: classes.event }, { children: (0, jsx_runtime_1.jsx)(material_1.Chip, { color: "secondary", size: "small", label: obj.event.name, icon: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "CalendarIcon" }), component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.EVENT_ROUTE_NAME, obj.event), clickable: true }, obj.event.id) })))] }), obj.categories.map((c) => ((0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes.CATEGORY_ROUTE_NAME, c) }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "overline" }, { children: c.name })) }), c.id)))] }))), obj.group && !obj.categories.length && ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: classes.group }, { children: (0, jsx_runtime_1.jsx)(material_1.Chip, { color: "secondary", size: "small", icon: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "groups" }), label: obj.group.name, component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.GROUP_ROUTE_NAME, obj.group), clickable: true }, obj.group.id) }))), obj.event && !obj.categories.length && ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: classes.event }, { children: (0, jsx_runtime_1.jsx)(material_1.Chip, { color: "secondary", size: "small", icon: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "CalendarIcon" }), label: obj.event.name, component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.EVENT_ROUTE_NAME, obj.event), clickable: true }, obj.event.id) }))), (0, jsx_runtime_1.jsx)(material_1.CardHeader, { className: classes.header, avatar: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({}, (!obj.author.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, obj.author) }), { onClick: obj.author.deleted ? () => setOpenAlert(true) : null }, { children: (0, jsx_runtime_1.jsx)(UserAvatar_1.default, Object.assign({ hide: !obj.author.community_badge }, { children: (0, jsx_runtime_1.jsx)(material_1.Avatar, Object.assign({ "aria-label": "recipe", src: obj.author.avatar, className: classes.avatar }, { children: obj.author.username })) })) })), title: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({}, (!obj.author.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, obj.author) }), { onClick: obj.author.deleted ? () => setOpenAlert(true) : null, className: classes.username }, { children: obj.author.username })), subheader: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url((0, contribution_1.getContributionRouteName)(obj), (0, contribution_1.getRouteData)(obj)), className: classes.activityAt }, { children: (0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { component: 'span', date: obj.added_at }) })), obj.location && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Bullet_1.default, {}), (0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ className: classes.location }, { children: [(0, jsx_runtime_1.jsx)(Icon_1.default, { children: "add_location_alt" }), (_a = obj.location) === null || _a === void 0 ? void 0 : _a.location] }))] })), (0, jsx_runtime_1.jsx)(Bullet_1.default, {}), (0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ className: classes.tag }, { children: obj.addressing.length > 0 ? ((0, jsx_runtime_1.jsx)(Tags_1.default, { tags: obj.addressing, TagChipProps: { disposable: false, clickable: false } })) : obj.group ? ((0, jsx_runtime_1.jsx)(material_1.Tooltip, Object.assign({ title: `${intl.formatMessage(messages.visibleToGroup, { group: obj.group.name })}` }, { children: (0, jsx_runtime_1.jsx)(Icon_1.default, Object.assign({ color: "disabled", fontSize: "small" }, { children: "groups" })) }))) : ((0, jsx_runtime_1.jsx)(material_1.Tooltip, Object.assign({ title: `${intl.formatMessage(messages.visibleToAll)}` }, { children: (0, jsx_runtime_1.jsx)(Icon_1.default, Object.assign({ color: "disabled", fontSize: "small" }, { children: "public" })) }))) }))] }), action: renderHeaderAction() }), (0, jsx_runtime_1.jsxs)(CardContent_1.default, Object.assign({ classes: { root: classes.content } }, { children: [(0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ className: classes.titleSection }, { children: 'title' in obj && ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: template === feedObject_1.SCFeedObjectTemplateType.DETAIL ? ((0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body1", gutterBottom: true, className: classes.title }, { children: obj.title }))) : ((0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url((0, contribution_1.getContributionRouteName)(obj), (0, contribution_1.getRouteData)(obj)) }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body1", gutterBottom: true, className: classes.title }, { children: obj.title })) }))) })) })), (0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ className: classes.textSection }, { children: getContributionSummary(obj, template) })), (0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ className: classes.mediasSection }, { children: (0, jsx_runtime_1.jsx)(FeedObjectMediaPreview_1.default, Object.assign({ medias: obj.medias }, FeedObjectMediaPreviewProps)) })), (0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ className: classes.pollsSection }, { children: obj['poll'] && ((0, jsx_runtime_1.jsx)(Poll_1.default, Object.assign({ visible: pollVisible ||
435
435
  template === feedObject_1.SCFeedObjectTemplateType.DETAIL ||
436
- Boolean(obj.type !== types_1.SCContributionType.DISCUSSION && !obj.html && !obj.medias.length), feedObject: obj, pollObject: obj['poll'], onChange: handleChangePoll, onToggleVisibility: handleTogglePollVisibility }, PollObjectProps))) }), (0, jsx_runtime_1.jsx)(material_1.Box, { className: classes.infoSection, children: (0, jsx_runtime_1.jsxs)(material_1.Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2, children: [!hideParticipantsPreview && ((0, jsx_runtime_1.jsx)(Contributors_1.default, Object.assign({ feedObject: obj, feedObjectType: obj.type }, ContributorsFeedObjectProps, { cacheStrategy: cacheStrategy }))), !_hideFollowAction && (0, jsx_runtime_1.jsx)(Follow_1.default, Object.assign({ feedObject: obj, feedObjectType: obj.type, handleFollow: handleFollow }, FollowButtonProps))] }) })] }), (0, jsx_runtime_1.jsxs)(material_1.CardActions, { className: classes.actionsSection, children: [(0, jsx_runtime_1.jsx)(Actions_1.default, Object.assign({ feedObjectId: feedObjectId, feedObjectType: feedObjectType, feedObject: obj, hideCommentAction: template === feedObject_1.SCFeedObjectTemplateType.DETAIL || (hasEvent && !((_c = (_b = obj === null || obj === void 0 ? void 0 : obj.medias[0].embed) === null || _b === void 0 ? void 0 : _b.metadata) === null || _c === void 0 ? void 0 : _c.active)), handleExpandActivities: template === feedObject_1.SCFeedObjectTemplateType.PREVIEW ? handleExpandActivities : null, hideVoteAction: hasEvent && !((_f = (_d = obj === null || obj === void 0 ? void 0 : obj.medias[0].embed) === null || _d === void 0 ? void 0 : _d.metadata) === null || _f === void 0 ? void 0 : _f.active), hideShareAction: hasEvent && !((_h = (_g = obj === null || obj === void 0 ? void 0 : obj.medias[0].embed) === null || _g === void 0 ? void 0 : _g.metadata) === null || _h === void 0 ? void 0 : _h.active), VoteActionProps: { onVoteAction: handleVoteSuccess } }, ActionsProps)), (template === feedObject_1.SCFeedObjectTemplateType.DETAIL && (!hasEvent || ((_m = (_l = (_k = (_j = obj === null || obj === void 0 ? void 0 : obj.medias) === null || _j === void 0 ? void 0 : _j[0]) === null || _k === void 0 ? void 0 : _k.embed) === null || _l === void 0 ? void 0 : _l.metadata) === null || _m === void 0 ? void 0 : _m.active) === true)) ||
437
- (expandedActivities && ((0, jsx_runtime_1.jsx)(material_1.Box, { className: classes.replyContent, children: (0, jsx_runtime_1.jsx)(CommentObjectReplyComponent, Object.assign({ id: `reply-feedObject-${obj.id}`, onReply: handleReply, editable: !isReplying || Boolean(obj) }, CommentObjectReplyComponentProps), Number(isReplying)) })))] }), template === feedObject_1.SCFeedObjectTemplateType.PREVIEW && (obj.comment_count > 0 || (feedObjectActivities && feedObjectActivities.length > 0)) && ((0, jsx_runtime_1.jsx)(material_1.Collapse, { in: expandedActivities, timeout: "auto", classes: { root: classes.activitiesSection }, children: (0, jsx_runtime_1.jsx)(CardContent_1.default, { className: classes.activitiesContent, children: (0, jsx_runtime_1.jsx)(Activities_1.default, Object.assign({ feedObject: obj, feedObjectActivities: feedObjectActivities, activitiesType: selectedActivities, onSetSelectedActivities: handleSelectedActivities, comments: comments, CommentsObjectProps: {
436
+ Boolean(obj.type !== types_1.SCContributionType.DISCUSSION && !obj.html && !obj.medias.length), feedObject: obj, pollObject: obj['poll'], onChange: handleChangePoll, onToggleVisibility: handleTogglePollVisibility }, PollObjectProps))) })), (0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ className: classes.infoSection }, { children: (0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: [!hideParticipantsPreview && ((0, jsx_runtime_1.jsx)(Contributors_1.default, Object.assign({ feedObject: obj, feedObjectType: obj.type }, ContributorsFeedObjectProps, { cacheStrategy: cacheStrategy }))), !_hideFollowAction && (0, jsx_runtime_1.jsx)(Follow_1.default, Object.assign({ feedObject: obj, feedObjectType: obj.type, handleFollow: handleFollow }, FollowButtonProps))] })) }))] })), (0, jsx_runtime_1.jsxs)(material_1.CardActions, Object.assign({ className: classes.actionsSection }, { children: [(0, jsx_runtime_1.jsx)(Actions_1.default, Object.assign({ feedObjectId: feedObjectId, feedObjectType: feedObjectType, feedObject: obj, hideCommentAction: template === feedObject_1.SCFeedObjectTemplateType.DETAIL || (hasEvent && !((_c = (_b = obj === null || obj === void 0 ? void 0 : obj.medias[0].embed) === null || _b === void 0 ? void 0 : _b.metadata) === null || _c === void 0 ? void 0 : _c.active)), handleExpandActivities: template === feedObject_1.SCFeedObjectTemplateType.PREVIEW ? handleExpandActivities : null, hideVoteAction: hasEvent && !((_f = (_d = obj === null || obj === void 0 ? void 0 : obj.medias[0].embed) === null || _d === void 0 ? void 0 : _d.metadata) === null || _f === void 0 ? void 0 : _f.active), hideShareAction: hasEvent && !((_h = (_g = obj === null || obj === void 0 ? void 0 : obj.medias[0].embed) === null || _g === void 0 ? void 0 : _g.metadata) === null || _h === void 0 ? void 0 : _h.active), VoteActionProps: { onVoteAction: handleVoteSuccess } }, ActionsProps)), (template === feedObject_1.SCFeedObjectTemplateType.DETAIL && (!hasEvent || ((_m = (_l = (_k = (_j = obj === null || obj === void 0 ? void 0 : obj.medias) === null || _j === void 0 ? void 0 : _j[0]) === null || _k === void 0 ? void 0 : _k.embed) === null || _l === void 0 ? void 0 : _l.metadata) === null || _m === void 0 ? void 0 : _m.active) === true)) ||
437
+ (expandedActivities && ((0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ className: classes.replyContent }, { children: (0, jsx_runtime_1.jsx)(CommentObjectReplyComponent, Object.assign({ id: `reply-feedObject-${obj.id}`, onReply: handleReply, editable: !isReplying || Boolean(obj) }, CommentObjectReplyComponentProps), Number(isReplying)) }))))] })), template === feedObject_1.SCFeedObjectTemplateType.PREVIEW && (obj.comment_count > 0 || (feedObjectActivities && feedObjectActivities.length > 0)) && ((0, jsx_runtime_1.jsx)(material_1.Collapse, Object.assign({ in: expandedActivities, timeout: "auto", classes: { root: classes.activitiesSection } }, { children: (0, jsx_runtime_1.jsx)(CardContent_1.default, Object.assign({ className: classes.activitiesContent }, { children: (0, jsx_runtime_1.jsx)(Activities_1.default, Object.assign({ feedObject: obj, feedObjectActivities: feedObjectActivities, activitiesType: selectedActivities, onSetSelectedActivities: handleSelectedActivities, comments: comments, CommentsObjectProps: {
438
438
  CommentComponentProps: Object.assign({ onDelete: handleDeleteComment, truncateContent: true, CommentsObjectComponentProps: { inPlaceLoadMoreContents: false } }, CommentComponentProps),
439
439
  CommentObjectSkeletonProps: CommentObjectSkeletonProps
440
- }, cacheStrategy: cacheStrategy }, ActivitiesProps), selectedActivities) }) })), composerOpen && ((0, jsx_runtime_1.jsx)(Composer_1.default, { open: composerOpen, feedObject: obj, onClose: handleToggleEdit, onSuccess: handleEditSuccess, maxWidth: "sm", fullWidth: true }))] })) : ((0, jsx_runtime_1.jsx)(Skeleton_1.default, Object.assign({ template: template }, FeedObjectSkeletonProps))) }));
440
+ }, cacheStrategy: cacheStrategy }, ActivitiesProps), selectedActivities) })) }))), composerOpen && ((0, jsx_runtime_1.jsx)(Composer_1.default, { open: composerOpen, feedObject: obj, onClose: handleToggleEdit, onSuccess: handleEditSuccess, maxWidth: "sm", fullWidth: true }))] }))) : ((0, jsx_runtime_1.jsx)(Skeleton_1.default, Object.assign({ template: template }, FeedObjectSkeletonProps))) }));
441
441
  }
442
442
  else if (template === feedObject_1.SCFeedObjectTemplateType.SHARE) {
443
- objElement = ((0, jsx_runtime_1.jsx)(react_1.default.Fragment, { children: obj ? ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [obj.categories.length > 0 && ((0, jsx_runtime_1.jsxs)("div", { className: classes.category, children: [(0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [obj.group && ((0, jsx_runtime_1.jsx)("div", { className: classes.group, children: (0, jsx_runtime_1.jsx)(material_1.Chip, { color: "secondary", size: "small", icon: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "groups" }), component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.GROUP_ROUTE_NAME, obj.group), clickable: true }, obj.group.id) })), obj.event && ((0, jsx_runtime_1.jsx)("div", { className: classes.event, children: (0, jsx_runtime_1.jsx)(material_1.Chip, { color: "secondary", size: "small", icon: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "CalendarIcon" }), component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.EVENT_ROUTE_NAME, obj.event), clickable: true }, obj.event.id) }))] }), obj.categories.map((c) => ((0, jsx_runtime_1.jsx)(react_core_1.Link, { to: scRoutingContext.url(react_core_1.SCRoutes.CATEGORY_ROUTE_NAME, c), children: (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "overline", children: c.name }) }, c.id)))] })), obj.group && !obj.categories.length && ((0, jsx_runtime_1.jsx)("div", { className: classes.group, children: (0, jsx_runtime_1.jsx)(material_1.Chip, { color: "secondary", size: "small", icon: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "groups" }), label: obj.group.name, component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.GROUP_ROUTE_NAME, obj.group), clickable: true }, obj.group.id) })), obj.event && !obj.categories.length && ((0, jsx_runtime_1.jsx)("div", { className: classes.event, children: (0, jsx_runtime_1.jsx)(material_1.Chip, { color: "secondary", size: "small", icon: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "groups" }), label: obj.event.name, component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.EVENT_ROUTE_NAME, obj.event), clickable: true }, obj.event.id) })), (0, jsx_runtime_1.jsx)(material_1.CardHeader, { classes: { root: classes.header }, avatar: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({}, (!obj.author.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, obj.author) }), { onClick: obj.author.deleted ? () => setOpenAlert(true) : null, className: classes.username, children: (0, jsx_runtime_1.jsx)(UserAvatar_1.default, { hide: !obj.author.community_badge, children: (0, jsx_runtime_1.jsx)(material_1.Avatar, { "aria-label": "recipe", src: obj.author.avatar, className: classes.avatar, children: obj.author.username }) }) })), title: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({}, (!obj.author.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, obj.author) }), { onClick: obj.author.deleted ? () => setOpenAlert(true) : null, className: classes.username, children: obj.author.username })), subheader: (0, jsx_runtime_1.jsx)(react_core_1.Link, { to: scRoutingContext.url((0, contribution_1.getContributionRouteName)(obj), (0, contribution_1.getRouteData)(obj)), className: classes.activityAt, children: (0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: obj.added_at }) }) }), (0, jsx_runtime_1.jsxs)(CardContent_1.default, { classes: { root: classes.content }, children: [(0, jsx_runtime_1.jsx)(material_1.Box, { className: classes.titleSection, children: 'title' in obj && ((0, jsx_runtime_1.jsx)(react_core_1.Link, { to: scRoutingContext.url((0, contribution_1.getContributionRouteName)(obj), (0, contribution_1.getRouteData)(obj)), children: (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "body1", gutterBottom: true, className: classes.title, children: obj.title }) })) }), (0, jsx_runtime_1.jsx)(material_1.Box, { className: classes.textSection, children: getContributionSummary(obj, template) }), (0, jsx_runtime_1.jsx)(material_1.Box, { className: classes.mediasSection, children: (0, jsx_runtime_1.jsx)(FeedObjectMediaPreview_1.default, Object.assign({ medias: obj.medias }, FeedObjectMediaPreviewProps)) }), (0, jsx_runtime_1.jsx)(material_1.Box, { className: classes.pollsSection, children: obj['poll'] && ((0, jsx_runtime_1.jsx)(Poll_1.default, Object.assign({ feedObject: obj, pollObject: obj['poll'], onChange: handleChangePoll, visible: Boolean(obj.type !== types_1.SCContributionType.DISCUSSION && !obj.html && !obj.medias.length) }, PollObjectProps))) })] })] })) : ((0, jsx_runtime_1.jsx)(Skeleton_1.default, Object.assign({ template: template }, FeedObjectSkeletonProps))) }));
443
+ objElement = ((0, jsx_runtime_1.jsx)(react_1.default.Fragment, { children: obj ? ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [obj.categories.length > 0 && ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: classes.category }, { children: [(0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [obj.group && ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: classes.group }, { children: (0, jsx_runtime_1.jsx)(material_1.Chip, { color: "secondary", size: "small", icon: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "groups" }), component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.GROUP_ROUTE_NAME, obj.group), clickable: true }, obj.group.id) }))), obj.event && ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: classes.event }, { children: (0, jsx_runtime_1.jsx)(material_1.Chip, { color: "secondary", size: "small", icon: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "CalendarIcon" }), component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.EVENT_ROUTE_NAME, obj.event), clickable: true }, obj.event.id) })))] }), obj.categories.map((c) => ((0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes.CATEGORY_ROUTE_NAME, c) }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "overline" }, { children: c.name })) }), c.id)))] }))), obj.group && !obj.categories.length && ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: classes.group }, { children: (0, jsx_runtime_1.jsx)(material_1.Chip, { color: "secondary", size: "small", icon: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "groups" }), label: obj.group.name, component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.GROUP_ROUTE_NAME, obj.group), clickable: true }, obj.group.id) }))), obj.event && !obj.categories.length && ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: classes.event }, { children: (0, jsx_runtime_1.jsx)(material_1.Chip, { color: "secondary", size: "small", icon: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "groups" }), label: obj.event.name, component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.EVENT_ROUTE_NAME, obj.event), clickable: true }, obj.event.id) }))), (0, jsx_runtime_1.jsx)(material_1.CardHeader, { classes: { root: classes.header }, avatar: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({}, (!obj.author.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, obj.author) }), { onClick: obj.author.deleted ? () => setOpenAlert(true) : null, className: classes.username }, { children: (0, jsx_runtime_1.jsx)(UserAvatar_1.default, Object.assign({ hide: !obj.author.community_badge }, { children: (0, jsx_runtime_1.jsx)(material_1.Avatar, Object.assign({ "aria-label": "recipe", src: obj.author.avatar, className: classes.avatar }, { children: obj.author.username })) })) })), title: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({}, (!obj.author.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, obj.author) }), { onClick: obj.author.deleted ? () => setOpenAlert(true) : null, className: classes.username }, { children: obj.author.username })), subheader: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url((0, contribution_1.getContributionRouteName)(obj), (0, contribution_1.getRouteData)(obj)), className: classes.activityAt }, { children: (0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: obj.added_at }) })) }), (0, jsx_runtime_1.jsxs)(CardContent_1.default, Object.assign({ classes: { root: classes.content } }, { children: [(0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ className: classes.titleSection }, { children: 'title' in obj && ((0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url((0, contribution_1.getContributionRouteName)(obj), (0, contribution_1.getRouteData)(obj)) }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body1", gutterBottom: true, className: classes.title }, { children: obj.title })) }))) })), (0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ className: classes.textSection }, { children: getContributionSummary(obj, template) })), (0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ className: classes.mediasSection }, { children: (0, jsx_runtime_1.jsx)(FeedObjectMediaPreview_1.default, Object.assign({ medias: obj.medias }, FeedObjectMediaPreviewProps)) })), (0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ className: classes.pollsSection }, { children: obj['poll'] && ((0, jsx_runtime_1.jsx)(Poll_1.default, Object.assign({ feedObject: obj, pollObject: obj['poll'], onChange: handleChangePoll, visible: Boolean(obj.type !== types_1.SCContributionType.DISCUSSION && !obj.html && !obj.medias.length) }, PollObjectProps))) }))] }))] })) : ((0, jsx_runtime_1.jsx)(Skeleton_1.default, Object.assign({ template: template }, FeedObjectSkeletonProps))) }));
444
444
  }
445
445
  else {
446
- objElement = ((0, jsx_runtime_1.jsx)(react_1.default.Fragment, { children: obj ? ((0, jsx_runtime_1.jsx)(BaseItem_1.default, { elevation: 0, className: classes.snippet, image: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({}, (!obj.author.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, obj.author) }), { onClick: obj.author.deleted ? () => setOpenAlert(true) : null, children: (0, jsx_runtime_1.jsx)(UserAvatar_1.default, { hide: !obj.author.community_badge, children: (0, jsx_runtime_1.jsx)(material_1.Avatar, { alt: obj.author.username, variant: "circular", src: obj.author.avatar, className: classes.avatar }) }) })), primary: (0, jsx_runtime_1.jsxs)(material_1.Box, { children: [(0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({}, (!obj.author.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, obj.author) }), { onClick: obj.author.deleted ? () => setOpenAlert(true) : null, className: classes.username, children: obj.author.username })), (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "body2", className: classes.snippetContent, children: (0, jsx_runtime_1.jsx)(react_core_1.Link, { to: scRoutingContext.url((0, contribution_1.getContributionRouteName)(obj), (0, contribution_1.getRouteData)(obj)), children: (0, contribution_1.getContributionSnippet)(obj) }) })] }), disableTypography: true, secondary: (0, jsx_runtime_1.jsxs)(material_1.Stack, { direction: "row", justifyContent: "space-between", spacing: 2, alignItems: "center", children: [(0, jsx_runtime_1.jsx)(react_core_1.Link, { to: scRoutingContext.url((0, contribution_1.getContributionRouteName)(obj), (0, contribution_1.getRouteData)(obj)), className: classes.activityAt, children: (0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { component: "span", date: obj.added_at }) }), (0, jsx_runtime_1.jsx)(material_1.Button, { component: react_core_1.Link, to: scRoutingContext.url((0, contribution_1.getContributionRouteName)(obj), (0, contribution_1.getRouteData)(obj)), variant: "text", color: "secondary", size: "small", children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.feedObject.comment", defaultMessage: "ui.feedObject.comment" }) })] }) })) : ((0, jsx_runtime_1.jsx)(Skeleton_1.default, Object.assign({}, FeedObjectSkeletonProps))) }));
446
+ objElement = ((0, jsx_runtime_1.jsx)(react_1.default.Fragment, { children: obj ? ((0, jsx_runtime_1.jsx)(BaseItem_1.default, { elevation: 0, className: classes.snippet, image: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({}, (!obj.author.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, obj.author) }), { onClick: obj.author.deleted ? () => setOpenAlert(true) : null }, { children: (0, jsx_runtime_1.jsx)(UserAvatar_1.default, Object.assign({ hide: !obj.author.community_badge }, { children: (0, jsx_runtime_1.jsx)(material_1.Avatar, { alt: obj.author.username, variant: "circular", src: obj.author.avatar, className: classes.avatar }) })) })), primary: (0, jsx_runtime_1.jsxs)(material_1.Box, { children: [(0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({}, (!obj.author.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, obj.author) }), { onClick: obj.author.deleted ? () => setOpenAlert(true) : null, className: classes.username }, { children: obj.author.username })), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body2", className: classes.snippetContent }, { children: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url((0, contribution_1.getContributionRouteName)(obj), (0, contribution_1.getRouteData)(obj)) }, { children: (0, contribution_1.getContributionSnippet)(obj) })) }))] }), disableTypography: true, secondary: (0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ direction: "row", justifyContent: "space-between", spacing: 2, alignItems: "center" }, { children: [(0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url((0, contribution_1.getContributionRouteName)(obj), (0, contribution_1.getRouteData)(obj)), className: classes.activityAt }, { children: (0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { component: "span", date: obj.added_at }) })), (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ component: react_core_1.Link, to: scRoutingContext.url((0, contribution_1.getContributionRouteName)(obj), (0, contribution_1.getRouteData)(obj)), variant: "text", color: "secondary", size: "small" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.feedObject.comment", defaultMessage: "ui.feedObject.comment" }) }))] })) })) : ((0, jsx_runtime_1.jsx)(Skeleton_1.default, Object.assign({}, FeedObjectSkeletonProps))) }));
447
447
  }
448
448
  /**
449
449
  * Renders root object
@@ -23,7 +23,7 @@ const Root = (0, styles_1.styled)(material_1.Card, {
23
23
  })(() => ({}));
24
24
  function LinearProgressWithLabel(_a) {
25
25
  var { className } = _a, props = tslib_1.__rest(_a, ["className"]);
26
- return ((0, jsx_runtime_1.jsxs)(material_1.Box, { className: className, children: [(0, jsx_runtime_1.jsx)(LinearProgress_1.default, Object.assign({ variant: "determinate" }, props)), (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "body2", color: "text.secondary", children: `${Math.round(props.value)}%` })] }));
26
+ return ((0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ className: className }, { children: [(0, jsx_runtime_1.jsx)(LinearProgress_1.default, Object.assign({ variant: "determinate" }, props)), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body2", color: "text.secondary" }, { children: `${Math.round(props.value)}%` }))] })));
27
27
  }
28
28
  function Choice(props) {
29
29
  //PROPS
@@ -52,6 +52,6 @@ function Choice(props) {
52
52
  /**
53
53
  * Renders root element
54
54
  */
55
- return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, rest, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, { className: classes.label, children: choiceObj.choice }), (0, jsx_runtime_1.jsx)(LinearProgressWithLabel, { className: classes.progress, value: renderVotes(choiceObj.vote_count, votes) }), (0, jsx_runtime_1.jsx)(lab_1.LoadingButton, { loading: isVoting === choiceObj.id, variant: choiceObj.voted ? 'contained' : 'outlined', size: "small", disabled: disabled || isVoting !== null || votable, className: classes.vote, onClick: handleVoteAction, children: choiceObj.voted ? ((0, jsx_runtime_1.jsx)(Icon_1.default, { children: "check" })) : ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.feedObject.poll.choice.vote", defaultMessage: "ui.feedObject.poll.choice.vote" })) })] })));
55
+ return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, rest, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ className: classes.label }, { children: choiceObj.choice })), (0, jsx_runtime_1.jsx)(LinearProgressWithLabel, { className: classes.progress, value: renderVotes(choiceObj.vote_count, votes) }), (0, jsx_runtime_1.jsx)(lab_1.LoadingButton, Object.assign({ loading: isVoting === choiceObj.id, variant: choiceObj.voted ? 'contained' : 'outlined', size: "small", disabled: disabled || isVoting !== null || votable, className: classes.vote, onClick: handleVoteAction }, { children: choiceObj.voted ? ((0, jsx_runtime_1.jsx)(Icon_1.default, { children: "check" })) : ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.feedObject.poll.choice.vote", defaultMessage: "ui.feedObject.poll.choice.vote" })) }))] })));
56
56
  }
57
57
  exports.default = Choice;
@@ -152,7 +152,7 @@ function PollObject(props) {
152
152
  */
153
153
  let objElement = (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
154
154
  if (pollObject) {
155
- objElement = ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.CardHeader, { title: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)(material_1.Button, { className: classes.toggleButton, onClick: handleToggleCollapsedClick, "aria-expanded": collapsed, endIcon: (0, jsx_runtime_1.jsx)(Icon_1.default, { className: (0, classnames_1.default)(classes.expandIcon, { [classes.collapsedIcon]: collapsed }), children: "arrow_upward" }), children: collapsed ? intl.formatMessage(messages.showPoll) : intl.formatMessage(messages.hidePoll) }) }) }), (0, jsx_runtime_1.jsx)(material_1.Collapse, { in: !collapsed, timeout: "auto", unmountOnExit: true, children: (0, jsx_runtime_1.jsxs)(material_1.CardContent, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "body1", className: classes.title, children: obj.title }), obj.expiration_at && Date.parse(obj.expiration_at) >= new Date().getTime() && ((0, jsx_runtime_1.jsxs)(material_1.Typography, { variant: "body2", className: classes.expiration, children: [`${intl.formatMessage(messages.expDate)}`, `${intl.formatDate(Date.parse(obj.expiration_at), { year: 'numeric', month: 'numeric', day: 'numeric' })}`] })), obj.closed && ((0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "body2", className: classes.closed, children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.feedObject.poll.closed", defaultMessage: "ui.feedObject.poll.closed" }) })), (0, jsx_runtime_1.jsx)(List_1.default, { children: choices.map((choice, index) => ((0, jsx_runtime_1.jsx)(material_1.ListItem, { children: (0, jsx_runtime_1.jsx)(Choice_1.default, { elevation: 0, choiceObj: choice, feedObject: disabled ? null : feedObject, votes: votes, vote: vote, isVoting: isVoting, votable: votable }) }, index))) }), multipleChoices ? ((0, jsx_runtime_1.jsxs)("div", { className: classes.votes, children: [(0, jsx_runtime_1.jsx)(Icon_1.default, { children: "list" }), (0, jsx_runtime_1.jsx)(material_1.Typography, { children: `${intl.formatMessage(messages.votes, { total: votes })}` })] })) : ((0, jsx_runtime_1.jsxs)("div", { className: classes.voters, children: [(0, jsx_runtime_1.jsx)(Icon_1.default, { children: "people_alt" }), (0, jsx_runtime_1.jsx)(material_1.Typography, { children: `${intl.formatMessage(messages.voters, { total: votes })}` })] }))] }) })] }));
155
+ objElement = ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.CardHeader, { title: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ className: classes.toggleButton, onClick: handleToggleCollapsedClick, "aria-expanded": collapsed, endIcon: (0, jsx_runtime_1.jsx)(Icon_1.default, Object.assign({ className: (0, classnames_1.default)(classes.expandIcon, { [classes.collapsedIcon]: collapsed }) }, { children: "arrow_upward" })) }, { children: collapsed ? intl.formatMessage(messages.showPoll) : intl.formatMessage(messages.hidePoll) })) }) }), (0, jsx_runtime_1.jsx)(material_1.Collapse, Object.assign({ in: !collapsed, timeout: "auto", unmountOnExit: true }, { children: (0, jsx_runtime_1.jsxs)(material_1.CardContent, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body1", className: classes.title }, { children: obj.title })), obj.expiration_at && Date.parse(obj.expiration_at) >= new Date().getTime() && ((0, jsx_runtime_1.jsxs)(material_1.Typography, Object.assign({ variant: "body2", className: classes.expiration }, { children: [`${intl.formatMessage(messages.expDate)}`, `${intl.formatDate(Date.parse(obj.expiration_at), { year: 'numeric', month: 'numeric', day: 'numeric' })}`] }))), obj.closed && ((0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body2", className: classes.closed }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.feedObject.poll.closed", defaultMessage: "ui.feedObject.poll.closed" }) }))), (0, jsx_runtime_1.jsx)(List_1.default, { children: choices.map((choice, index) => ((0, jsx_runtime_1.jsx)(material_1.ListItem, { children: (0, jsx_runtime_1.jsx)(Choice_1.default, { elevation: 0, choiceObj: choice, feedObject: disabled ? null : feedObject, votes: votes, vote: vote, isVoting: isVoting, votable: votable }) }, index))) }), multipleChoices ? ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: classes.votes }, { children: [(0, jsx_runtime_1.jsx)(Icon_1.default, { children: "list" }), (0, jsx_runtime_1.jsx)(material_1.Typography, { children: `${intl.formatMessage(messages.votes, { total: votes })}` })] }))) : ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: classes.voters }, { children: [(0, jsx_runtime_1.jsx)(Icon_1.default, { children: "people_alt" }), (0, jsx_runtime_1.jsx)(material_1.Typography, { children: `${intl.formatMessage(messages.voters, { total: votes })}` })] })))] }) }))] }));
156
156
  }
157
157
  (0, react_1.useEffect)(() => {
158
158
  setChoices(pollObject.choices);
@@ -88,6 +88,6 @@ function FeedUpdatesWidget(inProps) {
88
88
  pubsub_js_1.default.publishSync(publicationChannel, { refresh: true });
89
89
  setUpdates(false);
90
90
  };
91
- return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className) }, rest, { children: (0, jsx_runtime_1.jsxs)(material_1.CardContent, { children: [message, publicationChannel && ((0, jsx_runtime_1.jsx)(material_1.Button, { variant: "text", color: "inherit", onClick: handleClick, classes: { root: classes.buttonLoadMore }, children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.feedUpdatesWidget.reload", defaultMessage: "ui.feedUpdatesWidget.reload" }) }))] }) })));
91
+ return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className) }, rest, { children: (0, jsx_runtime_1.jsxs)(material_1.CardContent, { children: [message, publicationChannel && ((0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ variant: "text", color: "inherit", onClick: handleClick, classes: { root: classes.buttonLoadMore } }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.feedUpdatesWidget.reload", defaultMessage: "ui.feedUpdatesWidget.reload" }) })))] }) })));
92
92
  }
93
93
  exports.default = FeedUpdatesWidget;
@@ -95,6 +95,6 @@ function Footer(inProps) {
95
95
  if (loading) {
96
96
  return (0, jsx_runtime_1.jsx)(Skeleton_1.default, {});
97
97
  }
98
- return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({}, rest, { className: (0, classnames_1.default)(classes.root, className), children: [startActions, (0, jsx_runtime_1.jsx)(material_1.Box, { className: classes.itemList, children: (0, utils_1.sortByAttr)(_menu.items, 'order').map((item, index) => ((0, jsx_runtime_1.jsx)(material_1.Button, { component: react_core_1.Link, className: classes.item, to: item.url, variant: "text", children: item.label }, item.id))) }), endActions, (0, jsx_runtime_1.jsx)(material_1.Typography, { textAlign: "center", className: classes.copyright, variant: "body2", dangerouslySetInnerHTML: { __html: copyright } })] })));
98
+ return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({}, rest, { className: (0, classnames_1.default)(classes.root, className) }, { children: [startActions, (0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ className: classes.itemList }, { children: (0, utils_1.sortByAttr)(_menu.items, 'order').map((item, index) => ((0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ component: react_core_1.Link, className: classes.item, to: item.url, variant: "text" }, { children: item.label }), item.id))) })), endActions, (0, jsx_runtime_1.jsx)(material_1.Typography, { textAlign: "center", className: classes.copyright, variant: "body2", dangerouslySetInnerHTML: { __html: copyright } })] })));
99
99
  }
100
100
  exports.default = Footer;
@@ -90,7 +90,7 @@ function Group(inProps) {
90
90
  * @return {JSX.Element}
91
91
  */
92
92
  function renderAuthenticatedActions() {
93
- return ((0, jsx_runtime_1.jsxs)(material_1.Stack, { className: classes.actions, direction: "row", alignItems: "center", justifyContent: "center", spacing: 2, children: [isGroupAdmin && (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "face" }), actionRedirect ? ((0, jsx_runtime_1.jsx)(material_1.Button, { size: "small", variant: "outlined", component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.GROUP_ROUTE_NAME, scGroup), children: scGroup.subscription_status === types_1.SCGroupSubscriptionStatusType.SUBSCRIBED ? ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { defaultMessage: "ui.group.status.enter", id: "ui.group.status.enter" })) : ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { defaultMessage: "ui.group.status.discover", id: "ui.group.status.discover" })) })) : ((0, jsx_runtime_1.jsx)(GroupSubscribeButton_1.default, Object.assign({ group: group, groupId: groupId }, groupSubscribeButtonProps)))] }));
93
+ return ((0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ className: classes.actions, direction: "row", alignItems: "center", justifyContent: "center", spacing: 2 }, { children: [isGroupAdmin && (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "face" }), actionRedirect ? ((0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ size: "small", variant: "outlined", component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.GROUP_ROUTE_NAME, scGroup) }, { children: scGroup.subscription_status === types_1.SCGroupSubscriptionStatusType.SUBSCRIBED ? ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { defaultMessage: "ui.group.status.enter", id: "ui.group.status.enter" })) : ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { defaultMessage: "ui.group.status.discover", id: "ui.group.status.discover" })) }))) : ((0, jsx_runtime_1.jsx)(GroupSubscribeButton_1.default, Object.assign({ group: group, groupId: groupId }, groupSubscribeButtonProps)))] })));
94
94
  }
95
95
  /**
96
96
  * Renders group object
@@ -103,6 +103,6 @@ function Group(inProps) {
103
103
  */
104
104
  return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Root, Object.assign({ elevation: elevation }, rest, { className: (0, classnames_1.default)(classes.root, className), ButtonBaseProps: { component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.GROUP_ROUTE_NAME, scGroup) }, image: (0, jsx_runtime_1.jsx)(material_1.Avatar, { alt: scGroup.name, src: scGroup.image_medium, className: classes.avatar }), primary: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [isMobile
105
105
  ? (0, string_1.formatCroppedName)(scGroup.name, Group_1.GROUP_NAME_MAX_LENGTH_MOBILE)
106
- : (0, string_1.formatCroppedName)(scGroup.name, Group_1.GROUP_NAME_MAX_LENGTH_DESKTOP), ' ', (0, jsx_runtime_1.jsx)(material_1.Icon, { className: classes.icon, children: (group === null || group === void 0 ? void 0 : group.privacy) === types_1.SCGroupPrivacyType.PRIVATE ? 'private' : 'public' })] }), secondary: `${intl.formatMessage(messages.groupMembers, { total: scGroup.subscribers_counter })}`, actions: hideActions ? null : renderAuthenticatedActions() })), openAlert && (0, jsx_runtime_1.jsx)(UserDeletedSnackBar_1.default, { open: openAlert, handleClose: () => setOpenAlert(false) })] }));
106
+ : (0, string_1.formatCroppedName)(scGroup.name, Group_1.GROUP_NAME_MAX_LENGTH_DESKTOP), ' ', (0, jsx_runtime_1.jsx)(material_1.Icon, Object.assign({ className: classes.icon }, { children: (group === null || group === void 0 ? void 0 : group.privacy) === types_1.SCGroupPrivacyType.PRIVATE ? 'private' : 'public' }))] }), secondary: `${intl.formatMessage(messages.groupMembers, { total: scGroup.subscribers_counter })}`, actions: hideActions ? null : renderAuthenticatedActions() })), openAlert && (0, jsx_runtime_1.jsx)(UserDeletedSnackBar_1.default, { open: openAlert, handleClose: () => setOpenAlert(false) })] }));
107
107
  }
108
108
  exports.default = Group;
@@ -36,6 +36,6 @@ const Root = (0, styles_1.styled)(BaseItem_1.default, {
36
36
  */
37
37
  function GroupSkeleton(props) {
38
38
  const theme = (0, material_1.useTheme)();
39
- return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: classes.root }, props, { image: (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: "wave", variant: "circular", width: theme.selfcommunity.group.avatar.sizeSmall, height: theme.selfcommunity.group.avatar.sizeSmall }), primary: (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: "wave", height: 10, width: 120, style: { marginBottom: 10 } }), secondary: (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: "wave", height: 10, width: 70, style: { marginBottom: 10 } }), actions: (0, jsx_runtime_1.jsx)(material_1.Button, { size: "small", variant: "outlined", disabled: true, children: (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: "wave", height: 10, width: 30, style: { marginTop: 5, marginBottom: 5 } }) }) })));
39
+ return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: classes.root }, props, { image: (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: "wave", variant: "circular", width: theme.selfcommunity.group.avatar.sizeSmall, height: theme.selfcommunity.group.avatar.sizeSmall }), primary: (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: "wave", height: 10, width: 120, style: { marginBottom: 10 } }), secondary: (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: "wave", height: 10, width: 70, style: { marginBottom: 10 } }), actions: (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ size: "small", variant: "outlined", disabled: true }, { children: (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: "wave", height: 10, width: 30, style: { marginTop: 5, marginBottom: 5 } }) })) })));
40
40
  }
41
41
  exports.default = GroupSkeleton;
@@ -140,18 +140,18 @@ function GroupActionsMenu(inProps) {
140
140
  */
141
141
  const renderList = () => {
142
142
  return [
143
- (0, jsx_runtime_1.jsxs)(material_1.MenuItem, { className: classes.item, onClick: () => handleAction(GroupActionsMenu_1.GET_GROUP_LINK), children: [(0, jsx_runtime_1.jsx)(material_1.ListItemIcon, { children: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "link" }) }), (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.groupActionsMenu.item.link", defaultMessage: "ui.groupActionsMenu.item.link" })] }, "link"),
143
+ (0, jsx_runtime_1.jsxs)(material_1.MenuItem, Object.assign({ className: classes.item, onClick: () => handleAction(GroupActionsMenu_1.GET_GROUP_LINK) }, { children: [(0, jsx_runtime_1.jsx)(material_1.ListItemIcon, { children: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "link" }) }), (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.groupActionsMenu.item.link", defaultMessage: "ui.groupActionsMenu.item.link" })] }), "link"),
144
144
  isGroupAdmin &&
145
145
  scGroup.active && [
146
146
  (0, jsx_runtime_1.jsx)(material_1.Divider, {}, "divider"),
147
- isMobile && ((0, jsx_runtime_1.jsxs)(material_1.MenuItem, { className: classes.item, onClick: handleEditClick, children: [(0, jsx_runtime_1.jsx)(material_1.ListItemIcon, { children: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "edit" }) }), (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.groupActionsMenu.item.edit", defaultMessage: "ui.groupActionsMenu.item.edit" })] }, "edit")),
148
- (0, jsx_runtime_1.jsxs)(material_1.MenuItem, { className: classes.item, onClick: () => handleAction(GroupActionsMenu_1.DELETE_GROUP), children: [(0, jsx_runtime_1.jsx)(material_1.ListItemIcon, { children: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "delete" }) }), (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.groupActionsMenu.item.delete", defaultMessage: "ui.groupActionsMenu.item.delete" })] }, "delete")
147
+ isMobile && ((0, jsx_runtime_1.jsxs)(material_1.MenuItem, Object.assign({ className: classes.item, onClick: handleEditClick }, { children: [(0, jsx_runtime_1.jsx)(material_1.ListItemIcon, { children: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "edit" }) }), (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.groupActionsMenu.item.edit", defaultMessage: "ui.groupActionsMenu.item.edit" })] }), "edit")),
148
+ (0, jsx_runtime_1.jsxs)(material_1.MenuItem, Object.assign({ className: classes.item, onClick: () => handleAction(GroupActionsMenu_1.DELETE_GROUP) }, { children: [(0, jsx_runtime_1.jsx)(material_1.ListItemIcon, { children: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "delete" }) }), (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.groupActionsMenu.item.delete", defaultMessage: "ui.groupActionsMenu.item.delete" })] }), "delete")
149
149
  ]
150
150
  ];
151
151
  };
152
152
  if (!scGroup) {
153
153
  return null;
154
154
  }
155
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, rest, { onClick: handleOpen, children: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "more_vert" }) })), isMobile ? ((0, jsx_runtime_1.jsx)(SwipeableDrawerRoot, { className: classes.drawerRoot, anchor: "bottom", open: Boolean(anchorEl), onClose: handleClose, onOpen: handleOpen, PaperProps: { className: classes.paper }, disableSwipeToOpen: true, children: (0, jsx_runtime_1.jsx)(material_1.List, { children: renderList() }) })) : ((0, jsx_runtime_1.jsx)(MenuRoot, { className: classes.menuRoot, anchorEl: anchorEl, open: Boolean(anchorEl), onClose: handleClose, PaperProps: { className: classes.paper }, children: renderList() })), openConfirmDialog && ((0, jsx_runtime_1.jsx)(ConfirmDialog_1.default, { open: openConfirmDialog, title: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.groupActionsMenu.dialog.msg", defaultMessage: "ui.groupActionsMenu.dialog.msg" }), btnConfirm: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.groupActionsMenu.dialog.confirm", defaultMessage: "ui.groupActionsMenu.dialog.confirm" }), onConfirm: handleDeleteThread, onClose: handleCloseDialog })), openEdit && (0, jsx_runtime_1.jsx)(GroupForm_1.default, { onClose: handleEditClick, group: scGroup, onSuccess: handleEditSuccess })] }));
155
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, rest, { onClick: handleOpen }, { children: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "more_vert" }) })), isMobile ? ((0, jsx_runtime_1.jsx)(SwipeableDrawerRoot, Object.assign({ className: classes.drawerRoot, anchor: "bottom", open: Boolean(anchorEl), onClose: handleClose, onOpen: handleOpen, PaperProps: { className: classes.paper }, disableSwipeToOpen: true }, { children: (0, jsx_runtime_1.jsx)(material_1.List, { children: renderList() }) }))) : ((0, jsx_runtime_1.jsx)(MenuRoot, Object.assign({ className: classes.menuRoot, anchorEl: anchorEl, open: Boolean(anchorEl), onClose: handleClose, PaperProps: { className: classes.paper } }, { children: renderList() }))), openConfirmDialog && ((0, jsx_runtime_1.jsx)(ConfirmDialog_1.default, { open: openConfirmDialog, title: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.groupActionsMenu.dialog.msg", defaultMessage: "ui.groupActionsMenu.dialog.msg" }), btnConfirm: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.groupActionsMenu.dialog.confirm", defaultMessage: "ui.groupActionsMenu.dialog.confirm" }), onConfirm: handleDeleteThread, onClose: handleCloseDialog })), openEdit && (0, jsx_runtime_1.jsx)(GroupForm_1.default, { onClose: handleEditClick, group: scGroup, onSuccess: handleEditSuccess })] }));
156
156
  }
157
157
  exports.default = GroupActionsMenu;
@@ -89,7 +89,7 @@ const GroupAutocomplete = (inProps) => {
89
89
  renderOption: (props, option, { inputValue }) => {
90
90
  const matches = (0, match_1.default)(option.name, inputValue);
91
91
  const parts = (0, parse_1.default)(option.name, matches);
92
- return ((0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ component: "li" }, props, { children: [(0, jsx_runtime_1.jsx)(material_1.Avatar, { alt: option.name, src: option.image_small, sx: { marginRight: 1 } }), (0, jsx_runtime_1.jsx)(react_1.default.Fragment, { children: parts.map((part, index) => ((0, jsx_runtime_1.jsx)(material_1.Typography, { sx: { fontWeight: part.highlight ? 700 : 400, marginRight: 0.2 }, children: part.text }, index))) })] })));
92
+ return ((0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ component: "li" }, props, { children: [(0, jsx_runtime_1.jsx)(material_1.Avatar, { alt: option.name, src: option.image_small, sx: { marginRight: 1 } }), (0, jsx_runtime_1.jsx)(react_1.default.Fragment, { children: parts.map((part, index) => ((0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ sx: { fontWeight: part.highlight ? 700 : 400, marginRight: 0.2 } }, { children: part.text }), index))) })] })));
93
93
  }, renderInput: (params) => {
94
94
  return ((0, jsx_runtime_1.jsx)(TextField_1.default, Object.assign({}, params, TextFieldProps, { margin: "dense", InputProps: Object.assign(Object.assign({}, params.InputProps), { autoComplete: 'groups', endAdornment: ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [isLoading ? (0, jsx_runtime_1.jsx)(CircularProgress_1.default, { color: "inherit", size: 20 }) : null, params.InputProps.endAdornment] })) }) })));
95
95
  } }, rest)));