@selfcommunity/react-ui 0.8.0-embeds.16 → 0.8.0-livestream.23

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 (781) 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.d.ts +1 -1
  10. package/lib/cjs/components/BottomNavigation/BottomNavigation.js +2 -2
  11. package/lib/cjs/components/BroadcastMessages/BroadcastMessages.js +1 -1
  12. package/lib/cjs/components/BroadcastMessages/Message.js +4 -4
  13. package/lib/cjs/components/BroadcastMessages/Skeleton.js +1 -1
  14. package/lib/cjs/components/Categories/Categories.js +23 -1
  15. package/lib/cjs/components/Categories/Skeleton.js +1 -1
  16. package/lib/cjs/components/CategoriesPopularWidget/CategoriesPopularWidget.js +22 -1
  17. package/lib/cjs/components/CategoriesSuggestionWidget/CategoriesSuggestionWidget.js +22 -1
  18. package/lib/cjs/components/CategoriesSuggestionWidget/Skeleton.js +1 -1
  19. package/lib/cjs/components/Category/Category.js +1 -1
  20. package/lib/cjs/components/Category/Skeleton.js +1 -1
  21. package/lib/cjs/components/CategoryAutocomplete/CategoryAutocomplete.js +1 -1
  22. package/lib/cjs/components/CategoryFollowersButton/CategoryFollowersButton.js +1 -1
  23. package/lib/cjs/components/CategoryHeader/CategoryHeader.js +1 -1
  24. package/lib/cjs/components/CategoryHeader/Skeleton.js +1 -1
  25. package/lib/cjs/components/CategoryTrendingFeedWidget/CategoryTrendingFeedWidget.js +2 -2
  26. package/lib/cjs/components/CategoryTrendingFeedWidget/Skeleton.js +1 -1
  27. package/lib/cjs/components/CategoryTrendingUsersWidget/CategoryTrendingUsersWidget.js +1 -1
  28. package/lib/cjs/components/CategoryTrendingUsersWidget/Skeleton.js +1 -1
  29. package/lib/cjs/components/ChangeCover/ChangeCover.js +6 -6
  30. package/lib/cjs/components/ChangeGroupCover/ChangeGroupCover.js +1 -1
  31. package/lib/cjs/components/ChangeGroupPicture/ChangeGroupPicture.js +1 -1
  32. package/lib/cjs/components/ChangePicture/ChangePictureDialog/ChangePictureDialog.js +2 -2
  33. package/lib/cjs/components/CommentObject/CommentObject.js +4 -4
  34. package/lib/cjs/components/CommentObjectReply/CommentObjectReply.js +1 -1
  35. package/lib/cjs/components/CommentsFeedObject/CommentsFeedObject.js +4 -4
  36. package/lib/cjs/components/CommentsObject/CommentsObject.js +6 -6
  37. package/lib/cjs/components/Composer/Attributes/Attributes.js +2 -2
  38. package/lib/cjs/components/Composer/Composer.js +6 -4
  39. package/lib/cjs/components/Composer/Content/ContentDiscussion/ContentDiscussion.js +3 -3
  40. package/lib/cjs/components/Composer/Content/ContentPoll/ContentPoll.js +6 -6
  41. package/lib/cjs/components/Composer/Content/ContentPost/ContentPost.js +1 -1
  42. package/lib/cjs/components/Composer/Layer/AudienceLayer/AudienceLayer.js +5 -5
  43. package/lib/cjs/components/Composer/Layer/CategoryLayer/CategoryLayer.js +1 -1
  44. package/lib/cjs/components/Composer/Layer/CloseLayer/CloseLayer.js +1 -1
  45. package/lib/cjs/components/Composer/Layer/LocationLayer/LocationLayer.js +1 -1
  46. package/lib/cjs/components/Composer/Skeleton.js +1 -1
  47. package/lib/cjs/components/Composer/TypeSwitchButtonGroup/TypeSwitchButtonGroup.js +1 -1
  48. package/lib/cjs/components/ComposerIconButton/ComposerIconButton.js +2 -2
  49. package/lib/cjs/components/ConsentSolution/ConsentSolution.js +4 -4
  50. package/lib/cjs/components/ConsentSolution/Skeleton.js +1 -1
  51. package/lib/cjs/components/CreateEventButton/CreateEventButton.d.ts +2 -2
  52. package/lib/cjs/components/CreateEventButton/CreateEventButton.js +4 -4
  53. package/lib/cjs/components/CreateEventWidget/CreateEventWidget.js +1 -1
  54. package/lib/cjs/components/CreateEventWidget/Skeleton.js +1 -1
  55. package/lib/cjs/components/CreateLiveStreamButton/CreateLiveStreamButton.d.ts +49 -0
  56. package/lib/cjs/components/CreateLiveStreamButton/CreateLiveStreamButton.js +94 -0
  57. package/lib/cjs/components/CreateLiveStreamButton/index.d.ts +3 -0
  58. package/lib/cjs/components/CreateLiveStreamButton/index.js +5 -0
  59. package/lib/cjs/components/CreateLiveStreamDialog/CreateLiveStreamDialog.d.ts +51 -0
  60. package/lib/cjs/components/CreateLiveStreamDialog/CreateLiveStreamDialog.js +123 -0
  61. package/lib/cjs/components/CreateLiveStreamDialog/LiveStreamSelector/LiveStreamSelector.d.ts +46 -0
  62. package/lib/cjs/components/CreateLiveStreamDialog/LiveStreamSelector/LiveStreamSelector.js +166 -0
  63. package/lib/cjs/components/CreateLiveStreamDialog/constants.d.ts +1 -0
  64. package/lib/cjs/components/CreateLiveStreamDialog/constants.js +4 -0
  65. package/lib/cjs/components/CreateLiveStreamDialog/index.d.ts +3 -0
  66. package/lib/cjs/components/CreateLiveStreamDialog/index.js +5 -0
  67. package/lib/cjs/components/CreateLiveStreamDialog/types.d.ts +8 -0
  68. package/lib/cjs/components/CreateLiveStreamDialog/types.js +13 -0
  69. package/lib/cjs/components/CustomAdv/CustomAdv.js +2 -2
  70. package/lib/cjs/components/EditEventButton/EditEventButton.js +1 -1
  71. package/lib/cjs/components/Editor/Editor.d.ts +1 -1
  72. package/lib/cjs/components/Editor/Editor.js +1 -1
  73. package/lib/cjs/components/Editor/nodes/HashtagNode.d.ts +1 -1
  74. package/lib/cjs/components/Editor/nodes/HashtagNode.js +4 -4
  75. package/lib/cjs/components/Editor/nodes/ImageNode.d.ts +1 -1
  76. package/lib/cjs/components/Editor/nodes/ImageNode.js +7 -7
  77. package/lib/cjs/components/Editor/nodes/MentionNode.d.ts +1 -1
  78. package/lib/cjs/components/Editor/nodes/MentionNode.js +4 -4
  79. package/lib/cjs/components/Editor/plugins/ApiPlugin.d.ts +1 -1
  80. package/lib/cjs/components/Editor/plugins/EmojiPlugin.js +2 -2
  81. package/lib/cjs/components/Editor/plugins/FloatingLinkPlugin.js +4 -4
  82. package/lib/cjs/components/Editor/plugins/HashtagPlugin.js +3 -3
  83. package/lib/cjs/components/Editor/plugins/ImagePlugin.js +4 -4
  84. package/lib/cjs/components/Editor/plugins/MentionsPlugin.d.ts +2 -2
  85. package/lib/cjs/components/Editor/plugins/MentionsPlugin.js +4 -4
  86. package/lib/cjs/components/Editor/plugins/ToolbarPlugin.js +5 -5
  87. package/lib/cjs/components/Editor/shared/useDecorators.d.ts +2 -2
  88. package/lib/cjs/components/Editor/shared/useDecorators.js +1 -1
  89. package/lib/cjs/components/Event/Event.js +4 -4
  90. package/lib/cjs/components/Event/Skeleton.js +3 -3
  91. package/lib/cjs/components/EventAutocomplete/EventAutocomplete.js +1 -1
  92. package/lib/cjs/components/EventForm/EventAddress.js +2 -2
  93. package/lib/cjs/components/EventForm/EventForm.d.ts +7 -12
  94. package/lib/cjs/components/EventForm/EventForm.js +55 -55
  95. package/lib/cjs/components/EventForm/UploadEventCover.js +1 -1
  96. package/lib/cjs/components/EventForm/types.d.ts +5 -5
  97. package/lib/cjs/components/EventFormDialog/EventFormDialog.d.ts +48 -0
  98. package/lib/cjs/components/EventFormDialog/EventFormDialog.js +56 -0
  99. package/lib/cjs/components/EventFormDialog/constants.d.ts +1 -0
  100. package/lib/cjs/components/EventFormDialog/constants.js +4 -0
  101. package/lib/cjs/components/EventFormDialog/index.d.ts +3 -0
  102. package/lib/cjs/components/EventFormDialog/index.js +5 -0
  103. package/lib/cjs/components/EventHeader/EventHeader.js +2 -2
  104. package/lib/cjs/components/EventHeader/Skeleton.js +1 -1
  105. package/lib/cjs/components/EventInfoWidget/EventInfoWidget.js +7 -5
  106. package/lib/cjs/components/EventInfoWidget/Skeleton.js +1 -1
  107. package/lib/cjs/components/EventInviteButton/EventInviteButton.js +2 -2
  108. package/lib/cjs/components/EventLocationWidget/EventLocationWidget.js +3 -3
  109. package/lib/cjs/components/EventLocationWidget/Skeleton.js +1 -1
  110. package/lib/cjs/components/EventMediaWidget/EventMediaWidget.d.ts +37 -0
  111. package/lib/cjs/components/EventMediaWidget/EventMediaWidget.js +242 -0
  112. package/lib/cjs/components/EventMediaWidget/Skeleton.d.ts +2 -0
  113. package/lib/cjs/components/EventMediaWidget/Skeleton.js +28 -0
  114. package/lib/cjs/components/EventMediaWidget/TriggerButton.d.ts +15 -0
  115. package/lib/cjs/components/EventMediaWidget/TriggerButton.js +63 -0
  116. package/lib/cjs/components/EventMediaWidget/asUploadButton.d.ts +7 -0
  117. package/lib/cjs/components/EventMediaWidget/asUploadButton.js +25 -0
  118. package/lib/cjs/components/EventMediaWidget/constants.d.ts +1 -0
  119. package/lib/cjs/components/EventMediaWidget/constants.js +4 -0
  120. package/lib/cjs/components/EventMediaWidget/index.d.ts +4 -0
  121. package/lib/cjs/components/EventMediaWidget/index.js +8 -0
  122. package/lib/cjs/components/EventMembersWidget/EventMembersWidget.js +3 -3
  123. package/lib/cjs/components/EventMembersWidget/Skeleton.js +1 -1
  124. package/lib/cjs/components/EventMembersWidget/TabContentComponent.js +3 -3
  125. package/lib/cjs/components/EventMembersWidget/types.d.ts +1 -1
  126. package/lib/cjs/components/EventMembersWidget/types.js +1 -1
  127. package/lib/cjs/components/EventParticipantsButton/EventParticipantsButton.js +1 -1
  128. package/lib/cjs/components/EventSubscribeButton/EventSubscribeButton.js +2 -2
  129. package/lib/cjs/components/Events/Events.js +18 -8
  130. package/lib/cjs/components/Events/LocationEventsFilter.d.ts +14 -0
  131. package/lib/cjs/components/Events/LocationEventsFilter.js +45 -0
  132. package/lib/cjs/components/Events/PastEventsFilter.js +1 -2
  133. package/lib/cjs/components/Events/Skeleton.js +1 -1
  134. package/lib/cjs/components/Feed/Feed.d.ts +2 -2
  135. package/lib/cjs/components/Feed/Feed.js +15 -6
  136. package/lib/cjs/components/Feed/Skeleton.d.ts +1 -1
  137. package/lib/cjs/components/Feed/Skeleton.js +1 -1
  138. package/lib/cjs/components/FeedObject/Actions/Actions.js +1 -1
  139. package/lib/cjs/components/FeedObject/Actions/Comment/Comment.js +3 -3
  140. package/lib/cjs/components/FeedObject/Actions/Follow/Follow.js +1 -1
  141. package/lib/cjs/components/FeedObject/Actions/Share/Share.js +5 -5
  142. package/lib/cjs/components/FeedObject/Actions/Share/SharesDialog/SharesDialog.js +1 -1
  143. package/lib/cjs/components/FeedObject/Activities/Activities.js +1 -1
  144. package/lib/cjs/components/FeedObject/Activities/ActivitiesMenu/ActivitiesMenu.js +4 -4
  145. package/lib/cjs/components/FeedObject/Activities/RelevantActivities/CommentActivity/CommentActivity.js +3 -3
  146. package/lib/cjs/components/FeedObject/Activities/RelevantActivities/FollowActivity/FollowActivity.js +2 -2
  147. package/lib/cjs/components/FeedObject/Activities/RelevantActivities/PollVoteActivity/PollVoteActivity.js +2 -2
  148. package/lib/cjs/components/FeedObject/Activities/RelevantActivities/RelevantActivities.js +1 -1
  149. package/lib/cjs/components/FeedObject/Activities/RelevantActivities/VoteUpActivity/VoteUpActivity.js +2 -2
  150. package/lib/cjs/components/FeedObject/Contributors/Contributors.js +1 -1
  151. package/lib/cjs/components/FeedObject/Contributors/Skeleton.js +1 -1
  152. package/lib/cjs/components/FeedObject/FeedObject.js +11 -11
  153. package/lib/cjs/components/FeedObject/Poll/Choice/Choice.js +2 -2
  154. package/lib/cjs/components/FeedObject/Poll/Poll.js +1 -1
  155. package/lib/cjs/components/FeedUpdatesWidget/FeedUpdatesWidget.js +1 -1
  156. package/lib/cjs/components/Footer/Footer.js +1 -1
  157. package/lib/cjs/components/Group/Group.js +2 -2
  158. package/lib/cjs/components/Group/Skeleton.js +1 -1
  159. package/lib/cjs/components/GroupActionsMenu/index.d.ts +57 -0
  160. package/lib/cjs/components/GroupActionsMenu/index.js +157 -0
  161. package/lib/cjs/components/GroupAutocomplete/GroupAutocomplete.js +1 -1
  162. package/lib/cjs/components/GroupForm/GroupForm.js +9 -9
  163. package/lib/cjs/components/GroupHeader/GroupHeader.d.ts +6 -0
  164. package/lib/cjs/components/GroupHeader/GroupHeader.js +8 -4
  165. package/lib/cjs/components/GroupHeader/Skeleton.js +1 -1
  166. package/lib/cjs/components/GroupInfoWidget/GroupInfoWidget.js +6 -6
  167. package/lib/cjs/components/GroupInviteButton/GroupInviteButton.js +2 -2
  168. package/lib/cjs/components/GroupInvitedWidget/GroupInvitedWidget.js +1 -1
  169. package/lib/cjs/components/GroupMembersButton/GroupMembersButton.js +1 -1
  170. package/lib/cjs/components/GroupMembersWidget/GroupMembersWidget.js +5 -5
  171. package/lib/cjs/components/GroupRequestsWidget/GroupRequestsWidget.js +1 -1
  172. package/lib/cjs/components/GroupSettingsIconButton/GroupSettingsIconButton.js +5 -5
  173. package/lib/cjs/components/Groups/Groups.js +29 -3
  174. package/lib/cjs/components/Groups/Skeleton.js +1 -1
  175. package/lib/cjs/components/Incubator/Incubator.js +4 -4
  176. package/lib/cjs/components/Incubator/Skeleton.js +1 -1
  177. package/lib/cjs/components/IncubatorDetail/IncubatorDetail.js +2 -2
  178. package/lib/cjs/components/IncubatorListWidget/CreateIncubatorDialog/CreateIncubatorDialog.js +2 -2
  179. package/lib/cjs/components/IncubatorListWidget/IncubatorListWidget.js +2 -2
  180. package/lib/cjs/components/IncubatorListWidget/Skeleton.js +1 -1
  181. package/lib/cjs/components/IncubatorSuggestionWidget/IncubatorSuggestionWidget.js +1 -1
  182. package/lib/cjs/components/IncubatorSuggestionWidget/Skeleton.js +1 -1
  183. package/lib/cjs/components/InlineComposerWidget/InlineComposerWidget.js +1 -1
  184. package/lib/cjs/components/InlineComposerWidget/Skeleton.js +1 -1
  185. package/lib/cjs/components/LiveStreamForm/LiveStreamForm.d.ts +55 -0
  186. package/lib/cjs/components/LiveStreamForm/LiveStreamForm.js +156 -0
  187. package/lib/cjs/components/LiveStreamForm/constants.d.ts +1 -0
  188. package/lib/cjs/components/LiveStreamForm/constants.js +4 -0
  189. package/lib/cjs/components/LiveStreamForm/index.d.ts +3 -0
  190. package/lib/cjs/components/LiveStreamForm/index.js +5 -0
  191. package/lib/cjs/components/LiveStreamForm/types.d.ts +10 -0
  192. package/lib/cjs/components/LiveStreamForm/types.js +2 -0
  193. package/lib/cjs/components/LiveStreamRoom/LiveStreamRoom.d.ts +48 -0
  194. package/lib/cjs/components/LiveStreamRoom/LiveStreamRoom.js +122 -0
  195. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/LiveStreamVideoConference.d.ts +69 -0
  196. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/LiveStreamVideoConference.js +184 -0
  197. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/RecordingIndicator.d.ts +4 -0
  198. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/RecordingIndicator.js +31 -0
  199. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/constants.d.ts +1 -0
  200. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/constants.js +4 -0
  201. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/index.d.ts +3 -0
  202. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/index.js +5 -0
  203. package/lib/cjs/components/LiveStreamRoom/constants.d.ts +5 -0
  204. package/lib/cjs/components/LiveStreamRoom/constants.js +8 -0
  205. package/lib/cjs/components/LiveStreamRoom/index.d.ts +3 -0
  206. package/lib/cjs/components/LiveStreamRoom/index.js +5 -0
  207. package/lib/cjs/components/LiveStreamRoom/types.d.ts +22 -0
  208. package/lib/cjs/components/LiveStreamRoom/types.js +8 -0
  209. package/lib/cjs/components/LocationAutocomplete/LocationAutocomplete.js +1 -1
  210. package/lib/cjs/components/LoyaltyProgramWidget/LoyaltyProgramWidget.js +1 -1
  211. package/lib/cjs/components/LoyaltyProgramWidget/Skeleton.js +1 -1
  212. package/lib/cjs/components/MyEventsWidget/MyEventsWidget.js +1 -1
  213. package/lib/cjs/components/MyEventsWidget/Skeleton.js +1 -1
  214. package/lib/cjs/components/NavigationMenuIconButton/DefaultDrawerContent.js +1 -1
  215. package/lib/cjs/components/NavigationMenuIconButton/DefaultHeaderContent.d.ts +1 -1
  216. package/lib/cjs/components/NavigationMenuIconButton/DefaultHeaderContent.js +1 -1
  217. package/lib/cjs/components/NavigationMenuIconButton/NavigationMenuDrawer.d.ts +31 -0
  218. package/lib/cjs/components/NavigationMenuIconButton/NavigationMenuDrawer.js +39 -0
  219. package/lib/cjs/components/NavigationMenuIconButton/NavigationMenuIconButton.d.ts +9 -20
  220. package/lib/cjs/components/NavigationMenuIconButton/NavigationMenuIconButton.js +4 -20
  221. package/lib/cjs/components/NavigationMenuIconButton/index.d.ts +2 -1
  222. package/lib/cjs/components/NavigationMenuIconButton/index.js +3 -1
  223. package/lib/cjs/components/NavigationSettingsIconButton/NavigationSettingsIconButton.js +27 -27
  224. package/lib/cjs/components/NavigationToolbar/NavigationToolbar.d.ts +5 -0
  225. package/lib/cjs/components/NavigationToolbar/NavigationToolbar.js +9 -9
  226. package/lib/cjs/components/NavigationToolbar/NotificationMenu.js +1 -1
  227. package/lib/cjs/components/NavigationToolbar/Skeleton.js +1 -1
  228. package/lib/cjs/components/NavigationToolbarMobile/NavigationToolbarMobile.js +4 -4
  229. package/lib/cjs/components/NavigationToolbarMobile/Skeleton.js +1 -1
  230. package/lib/cjs/components/Notification/CollapsedFor/CollapsedFor.js +1 -1
  231. package/lib/cjs/components/Notification/Comment/Comment.js +3 -3
  232. package/lib/cjs/components/Notification/Contribution/Contribution.js +3 -3
  233. package/lib/cjs/components/Notification/ContributionFollow/ContributionFollow.js +2 -2
  234. package/lib/cjs/components/Notification/DeletedFor/DeletedFor.js +1 -1
  235. package/lib/cjs/components/Notification/Event/Event.js +13 -9
  236. package/lib/cjs/components/Notification/Group/Group.js +8 -8
  237. package/lib/cjs/components/Notification/IncubatorApproved/IncubatorApproved.js +3 -3
  238. package/lib/cjs/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.js +1 -1
  239. package/lib/cjs/components/Notification/KindlyNoticeFor/KindlyNoticeFor.js +2 -2
  240. package/lib/cjs/components/Notification/Mention/Mention.js +3 -3
  241. package/lib/cjs/components/Notification/Notification.js +8 -8
  242. package/lib/cjs/components/Notification/PrivateMessage/PrivateMessage.js +10 -10
  243. package/lib/cjs/components/Notification/Skeleton.js +1 -1
  244. package/lib/cjs/components/Notification/UndeletedFor/UndeletedFor.js +1 -1
  245. package/lib/cjs/components/Notification/UserBlocked/UserBlocked.js +3 -3
  246. package/lib/cjs/components/Notification/UserConnection/UserConnection.js +2 -2
  247. package/lib/cjs/components/Notification/UserFollow/UserFollow.js +2 -2
  248. package/lib/cjs/components/Notification/VoteUp/VoteUp.js +2 -2
  249. package/lib/cjs/components/OnBoardingWidget/OnBoardingWidget.d.ts +10 -1
  250. package/lib/cjs/components/OnBoardingWidget/OnBoardingWidget.js +80 -20
  251. package/lib/cjs/components/OnBoardingWidget/Skeleton.js +1 -1
  252. package/lib/cjs/components/OnBoardingWidget/Steps/App/App.js +9 -9
  253. package/lib/cjs/components/OnBoardingWidget/Steps/Appearance/Appearance.js +17 -7
  254. package/lib/cjs/components/OnBoardingWidget/Steps/Category/Category.js +5 -5
  255. package/lib/cjs/components/OnBoardingWidget/Steps/Content/Content.js +1 -1
  256. package/lib/cjs/components/OnBoardingWidget/Steps/Invite/Invite.js +56 -12
  257. package/lib/cjs/components/OnBoardingWidget/Steps/Profile/Profile.js +1 -1
  258. package/lib/cjs/components/PlatformWidget/PlatformWidget.js +8 -8
  259. package/lib/cjs/components/PlatformWidget/Skeleton.js +1 -1
  260. package/lib/cjs/components/PlatformWidget/constants.d.ts +0 -4
  261. package/lib/cjs/components/PlatformWidget/constants.js +1 -5
  262. package/lib/cjs/components/PollSuggestionWidget/PollSnippet/PollSnippet.js +1 -1
  263. package/lib/cjs/components/PollSuggestionWidget/PollSuggestionWidget.js +1 -1
  264. package/lib/cjs/components/PollSuggestionWidget/Skeleton.js +1 -1
  265. package/lib/cjs/components/PrivateMessageComponent/PrivateMessageComponent.js +4 -4
  266. package/lib/cjs/components/PrivateMessageComponent/Skeleton.d.ts +1 -1
  267. package/lib/cjs/components/PrivateMessageComponent/Skeleton.js +1 -1
  268. package/lib/cjs/components/PrivateMessageEditor/MessageMediaUploader/index.js +5 -5
  269. package/lib/cjs/components/PrivateMessageEditor/PrivateMessageEditor.js +6 -6
  270. package/lib/cjs/components/PrivateMessageSettingsIconButton/PrivateMessageSettingsIconButton.js +7 -7
  271. package/lib/cjs/components/PrivateMessageSnippetItem/PrivateMessageSnippetItem.js +3 -3
  272. package/lib/cjs/components/PrivateMessageSnippetItem/Skeleton.js +1 -1
  273. package/lib/cjs/components/PrivateMessageSnippets/PrivateMessageSnippets.js +4 -4
  274. package/lib/cjs/components/PrivateMessageSnippets/Skeleton.js +1 -1
  275. package/lib/cjs/components/PrivateMessageThread/PrivateMessageThread.js +6 -6
  276. package/lib/cjs/components/PrivateMessageThread/Skeleton.js +1 -1
  277. package/lib/cjs/components/PrivateMessageThreadItem/PrivateMessageThreadItem.js +6 -8
  278. package/lib/cjs/components/RelatedEventsWidget/RelatedEventsWidget.js +1 -1
  279. package/lib/cjs/components/RelatedEventsWidget/Skeleton.js +1 -1
  280. package/lib/cjs/components/RelatedFeedObjectsWidget/RelatedFeedObjectsWidget.js +1 -1
  281. package/lib/cjs/components/SearchAutocomplete/SearchAutocomplete.js +2 -2
  282. package/lib/cjs/components/SnippetNotifications/Skeleton.js +1 -1
  283. package/lib/cjs/components/SnippetNotifications/SnippetNotifications.js +3 -3
  284. package/lib/cjs/components/SuggestedEventsWidget/Arrow.js +2 -2
  285. package/lib/cjs/components/SuggestedEventsWidget/Skeleton.js +1 -1
  286. package/lib/cjs/components/SuggestedEventsWidget/SuggestedEventsWidget.js +2 -2
  287. package/lib/cjs/components/User/Skeleton.js +1 -1
  288. package/lib/cjs/components/User/User.js +2 -2
  289. package/lib/cjs/components/UserActionIconButton/UserActionIconButton.js +9 -9
  290. package/lib/cjs/components/UserConnectionsRequestsSentWidget/UserConnectionsRequestsSentWidget.js +1 -1
  291. package/lib/cjs/components/UserConnectionsRequestsWidget/UserConnectionsRequestsWidget.js +1 -1
  292. package/lib/cjs/components/UserConnectionsWidget/UserConnectionsWidget.js +1 -1
  293. package/lib/cjs/components/UserCounters/UserCounters.js +5 -5
  294. package/lib/cjs/components/UserFollowedCategoriesWidget/UserFollowedCategoriesWidget.js +1 -1
  295. package/lib/cjs/components/UserFollowedUsersWidget/UserFollowedUsersWidget.js +1 -1
  296. package/lib/cjs/components/UserFollowersWidget/UserFollowersWidget.js +1 -1
  297. package/lib/cjs/components/UserInfo/Skeleton.js +1 -1
  298. package/lib/cjs/components/UserInfo/UserInfo.js +3 -3
  299. package/lib/cjs/components/UserInfoDialog/UserInfoDialog.js +1 -1
  300. package/lib/cjs/components/UserProfileBlocked/UserProfileBlocked.js +1 -1
  301. package/lib/cjs/components/UserProfileEdit/Section/Account.js +1 -1
  302. package/lib/cjs/components/UserProfileEdit/Section/AccountCredentials.js +6 -6
  303. package/lib/cjs/components/UserProfileEdit/Section/PublicInfo.js +8 -8
  304. package/lib/cjs/components/UserProfileEdit/Section/Settings.js +3 -3
  305. package/lib/cjs/components/UserProfileEdit/Section/SettingsSkeleton.js +1 -1
  306. package/lib/cjs/components/UserProfileEdit/Skeleton.js +1 -1
  307. package/lib/cjs/components/UserProfileEdit/UserProfileEdit.js +1 -1
  308. package/lib/cjs/components/UserProfileHeader/Skeleton.js +1 -1
  309. package/lib/cjs/components/UserProfileHeader/UserProfileHeader.js +1 -1
  310. package/lib/cjs/components/UserSocialAssociation/UserSocialAssociation.js +1 -1
  311. package/lib/cjs/components/UserSubscribedGroupsWidget/Skeleton.js +1 -1
  312. package/lib/cjs/components/UserSubscribedGroupsWidget/UserSubscribedGroupsWidget.js +2 -2
  313. package/lib/cjs/components/UserSuggestionWidget/Skeleton.js +1 -1
  314. package/lib/cjs/components/UserSuggestionWidget/UserSuggestionWidget.js +1 -1
  315. package/lib/cjs/components/VoteAudienceButton/VoteAudienceButton.js +5 -5
  316. package/lib/cjs/components/VoteButton/VoteButton.js +2 -2
  317. package/lib/cjs/constants/GroupActionsMenu.d.ts +5 -0
  318. package/lib/cjs/constants/GroupActionsMenu.js +8 -0
  319. package/lib/cjs/constants/LiveStream.d.ts +3 -0
  320. package/lib/cjs/constants/LiveStream.js +6 -0
  321. package/lib/cjs/constants/PubSub.d.ts +8 -1
  322. package/lib/cjs/constants/PubSub.js +11 -3
  323. package/lib/cjs/index.d.ts +9 -4
  324. package/lib/cjs/index.js +20 -9
  325. package/lib/cjs/shared/AutoPlayer/index.js +2 -2
  326. package/lib/cjs/shared/BaseDialog/BaseDialog.js +2 -2
  327. package/lib/cjs/shared/BaseItem/BaseItem.js +2 -2
  328. package/lib/cjs/shared/BaseItemButton/BaseItemButton.js +2 -2
  329. package/lib/cjs/shared/Calendar/index.js +1 -1
  330. package/lib/cjs/shared/ConfirmDialog/ConfirmDialog.js +1 -1
  331. package/lib/cjs/shared/ConsentSolutionSwitch/index.js +3 -3
  332. package/lib/cjs/shared/ContributionActionsMenu/index.js +10 -10
  333. package/lib/cjs/shared/CustomSnackMessage/index.js +1 -1
  334. package/lib/cjs/shared/DateTimeAgo/index.js +1 -1
  335. package/lib/cjs/shared/EmojiPicker/EmojiPicker.js +1 -1
  336. package/lib/cjs/shared/EventActionsMenu/index.js +5 -5
  337. package/lib/cjs/shared/EventInfoDetails/index.js +6 -6
  338. package/lib/cjs/shared/InfiniteScroll/index.d.ts +1 -1
  339. package/lib/cjs/shared/InfiniteScroll/index.js +5 -5
  340. package/lib/cjs/shared/InfiniteScroll/stories/InfiniteScrollWithHeight.js +1 -1
  341. package/lib/cjs/shared/InfiniteScroll/stories/PullDownToRefreshInfScroll.js +1 -1
  342. package/lib/cjs/shared/InfiniteScroll/stories/ScrollableTargetFixedInfScroll.js +2 -2
  343. package/lib/cjs/shared/InfiniteScroll/stories/ScrollableTargetInfScroll.js +1 -1
  344. package/lib/cjs/shared/InfiniteScroll/stories/ScrolleableTop.js +2 -2
  345. package/lib/cjs/shared/InfiniteScroll/stories/WindowInfiniteScrollComponent.js +1 -1
  346. package/lib/cjs/shared/LanguageSwitcher/index.js +1 -1
  347. package/lib/cjs/shared/Lightbox/BaseLightbox.d.ts +19 -0
  348. package/lib/cjs/shared/Lightbox/BaseLightbox.js +35 -0
  349. package/lib/cjs/shared/Lightbox/Lightbox.d.ts +31 -17
  350. package/lib/cjs/shared/Lightbox/Lightbox.js +16 -19
  351. package/lib/cjs/shared/Lightbox/constants.d.ts +1 -0
  352. package/lib/cjs/shared/Lightbox/constants.js +4 -0
  353. package/lib/cjs/shared/Lightbox/index.d.ts +4 -2
  354. package/lib/cjs/shared/Lightbox/index.js +4 -1
  355. package/lib/cjs/shared/MarkRead/MarkRead.js +1 -1
  356. package/lib/cjs/shared/Media/File/DisplayComponent.js +32 -15
  357. package/lib/cjs/shared/Media/File/PreviewComponent.js +3 -3
  358. package/lib/cjs/shared/Media/File/TriggerButton.js +7 -7
  359. package/lib/cjs/shared/Media/File/asUploadButton.d.ts +1 -1
  360. package/lib/cjs/shared/Media/Link/DisplayComponent.js +6 -6
  361. package/lib/cjs/shared/Media/Link/LayerComponent.js +1 -1
  362. package/lib/cjs/shared/Media/Link/PreviewComponent.js +1 -1
  363. package/lib/cjs/shared/Media/Link/TriggerButton.js +1 -1
  364. package/lib/cjs/shared/Media/Link/UrlTextField/index.d.ts +1 -1
  365. package/lib/cjs/shared/Media/Link/UrlTextField/index.js +3 -3
  366. package/lib/cjs/shared/Media/Share/DisplayComponent.js +1 -1
  367. package/lib/cjs/shared/MediaChunkUploader/index.js +13 -11
  368. package/lib/cjs/shared/MetadataField/MetadataField.d.ts +1 -1
  369. package/lib/cjs/shared/MetadataField/MetadataField.js +1 -1
  370. package/lib/cjs/shared/NotificationItem/NotificationItem.js +1 -1
  371. package/lib/cjs/shared/PasswordTextField/index.js +1 -1
  372. package/lib/cjs/shared/ProgressBar/index.js +1 -1
  373. package/lib/cjs/shared/StickyBox/index.d.ts +4 -4
  374. package/lib/cjs/shared/StickyBox/index.js +1 -1
  375. package/lib/cjs/shared/Tags/index.js +6 -6
  376. package/lib/cjs/shared/UserDeletedSnackBar/UserDeletedSnackBar.js +1 -1
  377. package/lib/cjs/shared/UsernameTextField/index.d.ts +1 -1
  378. package/lib/cjs/shared/VirtualizedScroller/VirtualScrollerChild.js +1 -1
  379. package/lib/cjs/types/broadcastMessage.js +1 -1
  380. package/lib/cjs/types/comments.js +1 -1
  381. package/lib/cjs/types/composer.d.ts +1 -1
  382. package/lib/cjs/types/event.js +1 -1
  383. package/lib/cjs/types/feedObject.js +2 -2
  384. package/lib/cjs/types/notification.js +1 -1
  385. package/lib/cjs/types/user.js +3 -3
  386. package/lib/cjs/utils/formatRelativeTime.js +2 -2
  387. package/lib/cjs/utils/hash.d.ts +2 -1
  388. package/lib/cjs/utils/liveStream.d.ts +4 -0
  389. package/lib/cjs/utils/liveStream.js +25 -0
  390. package/lib/esm/components/AccountChangeMailValidation/AccountChangeMailValidation.js +1 -1
  391. package/lib/esm/components/AccountDataPortability/AccountDataPortability.js +4 -4
  392. package/lib/esm/components/AccountDataPortabilityButton/AccountDataPortabilityButton.js +1 -1
  393. package/lib/esm/components/AccountDelete/AccountDelete.js +3 -3
  394. package/lib/esm/components/AccountDeleteButton/AccountDeleteButton.js +1 -1
  395. package/lib/esm/components/AccountRecover/AccountRecover.js +2 -2
  396. package/lib/esm/components/AccountReset/AccountReset.js +1 -1
  397. package/lib/esm/components/AccountVerify/AccountVerify.js +1 -1
  398. package/lib/esm/components/BottomNavigation/BottomNavigation.d.ts +1 -1
  399. package/lib/esm/components/BottomNavigation/BottomNavigation.js +2 -2
  400. package/lib/esm/components/BroadcastMessages/BroadcastMessages.js +1 -1
  401. package/lib/esm/components/BroadcastMessages/Message.js +4 -4
  402. package/lib/esm/components/BroadcastMessages/Skeleton.js +1 -1
  403. package/lib/esm/components/Categories/Categories.js +24 -2
  404. package/lib/esm/components/Categories/Skeleton.js +1 -1
  405. package/lib/esm/components/CategoriesPopularWidget/CategoriesPopularWidget.js +23 -2
  406. package/lib/esm/components/CategoriesSuggestionWidget/CategoriesSuggestionWidget.js +23 -2
  407. package/lib/esm/components/CategoriesSuggestionWidget/Skeleton.js +1 -1
  408. package/lib/esm/components/Category/Category.js +1 -1
  409. package/lib/esm/components/Category/Skeleton.js +1 -1
  410. package/lib/esm/components/CategoryAutocomplete/CategoryAutocomplete.js +1 -1
  411. package/lib/esm/components/CategoryFollowersButton/CategoryFollowersButton.js +1 -1
  412. package/lib/esm/components/CategoryHeader/CategoryHeader.js +1 -1
  413. package/lib/esm/components/CategoryHeader/Skeleton.js +1 -1
  414. package/lib/esm/components/CategoryTrendingFeedWidget/CategoryTrendingFeedWidget.js +2 -2
  415. package/lib/esm/components/CategoryTrendingFeedWidget/Skeleton.js +1 -1
  416. package/lib/esm/components/CategoryTrendingUsersWidget/CategoryTrendingUsersWidget.js +1 -1
  417. package/lib/esm/components/CategoryTrendingUsersWidget/Skeleton.js +1 -1
  418. package/lib/esm/components/ChangeCover/ChangeCover.js +6 -6
  419. package/lib/esm/components/ChangeGroupCover/ChangeGroupCover.js +1 -1
  420. package/lib/esm/components/ChangeGroupPicture/ChangeGroupPicture.js +1 -1
  421. package/lib/esm/components/ChangePicture/ChangePictureDialog/ChangePictureDialog.js +2 -2
  422. package/lib/esm/components/CommentObject/CommentObject.js +4 -4
  423. package/lib/esm/components/CommentObjectReply/CommentObjectReply.js +1 -1
  424. package/lib/esm/components/CommentsFeedObject/CommentsFeedObject.js +4 -4
  425. package/lib/esm/components/CommentsObject/CommentsObject.js +6 -6
  426. package/lib/esm/components/Composer/Attributes/Attributes.js +2 -2
  427. package/lib/esm/components/Composer/Composer.js +6 -4
  428. package/lib/esm/components/Composer/Content/ContentDiscussion/ContentDiscussion.js +3 -3
  429. package/lib/esm/components/Composer/Content/ContentPoll/ContentPoll.js +6 -6
  430. package/lib/esm/components/Composer/Content/ContentPost/ContentPost.js +1 -1
  431. package/lib/esm/components/Composer/Layer/AudienceLayer/AudienceLayer.js +4 -4
  432. package/lib/esm/components/Composer/Layer/CategoryLayer/CategoryLayer.js +1 -1
  433. package/lib/esm/components/Composer/Layer/CloseLayer/CloseLayer.js +1 -1
  434. package/lib/esm/components/Composer/Layer/LocationLayer/LocationLayer.js +1 -1
  435. package/lib/esm/components/Composer/Skeleton.js +1 -1
  436. package/lib/esm/components/Composer/TypeSwitchButtonGroup/TypeSwitchButtonGroup.js +2 -2
  437. package/lib/esm/components/ComposerIconButton/ComposerIconButton.js +2 -2
  438. package/lib/esm/components/ConsentSolution/ConsentSolution.js +4 -4
  439. package/lib/esm/components/ConsentSolution/Skeleton.js +1 -1
  440. package/lib/esm/components/CreateEventButton/CreateEventButton.d.ts +2 -2
  441. package/lib/esm/components/CreateEventButton/CreateEventButton.js +4 -4
  442. package/lib/esm/components/CreateEventWidget/CreateEventWidget.js +1 -1
  443. package/lib/esm/components/CreateEventWidget/Skeleton.js +1 -1
  444. package/lib/esm/components/CreateLiveStreamButton/CreateLiveStreamButton.d.ts +49 -0
  445. package/lib/esm/components/CreateLiveStreamButton/CreateLiveStreamButton.js +91 -0
  446. package/lib/esm/components/CreateLiveStreamButton/index.d.ts +3 -0
  447. package/lib/esm/components/CreateLiveStreamButton/index.js +2 -0
  448. package/lib/esm/components/CreateLiveStreamDialog/CreateLiveStreamDialog.d.ts +51 -0
  449. package/lib/esm/components/CreateLiveStreamDialog/CreateLiveStreamDialog.js +120 -0
  450. package/lib/esm/components/CreateLiveStreamDialog/LiveStreamSelector/LiveStreamSelector.d.ts +46 -0
  451. package/lib/esm/components/CreateLiveStreamDialog/LiveStreamSelector/LiveStreamSelector.js +163 -0
  452. package/lib/esm/components/CreateLiveStreamDialog/constants.d.ts +1 -0
  453. package/lib/esm/components/CreateLiveStreamDialog/constants.js +1 -0
  454. package/lib/esm/components/CreateLiveStreamDialog/index.d.ts +3 -0
  455. package/lib/esm/components/CreateLiveStreamDialog/index.js +2 -0
  456. package/lib/esm/components/CreateLiveStreamDialog/types.d.ts +8 -0
  457. package/lib/esm/components/CreateLiveStreamDialog/types.js +10 -0
  458. package/lib/esm/components/CustomAdv/CustomAdv.js +2 -2
  459. package/lib/esm/components/EditEventButton/EditEventButton.js +1 -1
  460. package/lib/esm/components/Editor/Editor.d.ts +1 -1
  461. package/lib/esm/components/Editor/Editor.js +1 -1
  462. package/lib/esm/components/Editor/nodes/HashtagNode.d.ts +1 -1
  463. package/lib/esm/components/Editor/nodes/HashtagNode.js +4 -4
  464. package/lib/esm/components/Editor/nodes/ImageNode.d.ts +1 -1
  465. package/lib/esm/components/Editor/nodes/ImageNode.js +7 -7
  466. package/lib/esm/components/Editor/nodes/MentionNode.d.ts +1 -1
  467. package/lib/esm/components/Editor/nodes/MentionNode.js +4 -4
  468. package/lib/esm/components/Editor/plugins/ApiPlugin.d.ts +1 -1
  469. package/lib/esm/components/Editor/plugins/EmojiPlugin.js +2 -2
  470. package/lib/esm/components/Editor/plugins/FloatingLinkPlugin.js +4 -4
  471. package/lib/esm/components/Editor/plugins/HashtagPlugin.js +3 -3
  472. package/lib/esm/components/Editor/plugins/ImagePlugin.js +4 -4
  473. package/lib/esm/components/Editor/plugins/MentionsPlugin.d.ts +2 -2
  474. package/lib/esm/components/Editor/plugins/MentionsPlugin.js +4 -4
  475. package/lib/esm/components/Editor/plugins/ToolbarPlugin.js +5 -5
  476. package/lib/esm/components/Editor/shared/useDecorators.d.ts +2 -2
  477. package/lib/esm/components/Editor/shared/useDecorators.js +1 -1
  478. package/lib/esm/components/Event/Event.js +4 -4
  479. package/lib/esm/components/Event/Skeleton.js +3 -3
  480. package/lib/esm/components/EventAutocomplete/EventAutocomplete.js +1 -1
  481. package/lib/esm/components/EventForm/EventAddress.js +2 -2
  482. package/lib/esm/components/EventForm/EventForm.d.ts +7 -12
  483. package/lib/esm/components/EventForm/EventForm.js +56 -56
  484. package/lib/esm/components/EventForm/UploadEventCover.js +1 -1
  485. package/lib/esm/components/EventForm/types.d.ts +5 -5
  486. package/lib/esm/components/EventFormDialog/EventFormDialog.d.ts +48 -0
  487. package/lib/esm/components/EventFormDialog/EventFormDialog.js +53 -0
  488. package/lib/esm/components/EventFormDialog/constants.d.ts +1 -0
  489. package/lib/esm/components/EventFormDialog/constants.js +1 -0
  490. package/lib/esm/components/EventFormDialog/index.d.ts +3 -0
  491. package/lib/esm/components/EventFormDialog/index.js +2 -0
  492. package/lib/esm/components/EventHeader/EventHeader.js +2 -2
  493. package/lib/esm/components/EventHeader/Skeleton.js +1 -1
  494. package/lib/esm/components/EventInfoWidget/EventInfoWidget.js +7 -5
  495. package/lib/esm/components/EventInfoWidget/Skeleton.js +1 -1
  496. package/lib/esm/components/EventInviteButton/EventInviteButton.js +2 -2
  497. package/lib/esm/components/EventLocationWidget/EventLocationWidget.js +3 -3
  498. package/lib/esm/components/EventLocationWidget/Skeleton.js +1 -1
  499. package/lib/esm/components/EventMediaWidget/EventMediaWidget.d.ts +37 -0
  500. package/lib/esm/components/EventMediaWidget/EventMediaWidget.js +239 -0
  501. package/lib/esm/components/EventMediaWidget/Skeleton.d.ts +2 -0
  502. package/lib/esm/components/EventMediaWidget/Skeleton.js +22 -0
  503. package/lib/esm/components/EventMediaWidget/TriggerButton.d.ts +15 -0
  504. package/lib/esm/components/EventMediaWidget/TriggerButton.js +60 -0
  505. package/lib/esm/components/EventMediaWidget/asUploadButton.d.ts +7 -0
  506. package/lib/esm/components/EventMediaWidget/asUploadButton.js +23 -0
  507. package/lib/esm/components/EventMediaWidget/constants.d.ts +1 -0
  508. package/lib/esm/components/EventMediaWidget/constants.js +1 -0
  509. package/lib/esm/components/EventMediaWidget/index.d.ts +4 -0
  510. package/lib/esm/components/EventMediaWidget/index.js +4 -0
  511. package/lib/esm/components/EventMembersWidget/EventMembersWidget.js +3 -3
  512. package/lib/esm/components/EventMembersWidget/Skeleton.js +1 -1
  513. package/lib/esm/components/EventMembersWidget/TabContentComponent.js +3 -3
  514. package/lib/esm/components/EventMembersWidget/types.d.ts +1 -1
  515. package/lib/esm/components/EventParticipantsButton/EventParticipantsButton.js +1 -1
  516. package/lib/esm/components/EventSubscribeButton/EventSubscribeButton.js +2 -2
  517. package/lib/esm/components/Events/Events.js +19 -9
  518. package/lib/esm/components/Events/LocationEventsFilter.d.ts +14 -0
  519. package/lib/esm/components/Events/LocationEventsFilter.js +41 -0
  520. package/lib/esm/components/Events/PastEventsFilter.js +1 -2
  521. package/lib/esm/components/Events/Skeleton.js +1 -1
  522. package/lib/esm/components/Feed/Feed.d.ts +2 -2
  523. package/lib/esm/components/Feed/Feed.js +17 -8
  524. package/lib/esm/components/Feed/Skeleton.d.ts +1 -1
  525. package/lib/esm/components/Feed/Skeleton.js +1 -1
  526. package/lib/esm/components/FeedObject/Actions/Actions.js +1 -1
  527. package/lib/esm/components/FeedObject/Actions/Comment/Comment.js +3 -3
  528. package/lib/esm/components/FeedObject/Actions/Follow/Follow.js +1 -1
  529. package/lib/esm/components/FeedObject/Actions/Share/Share.js +5 -5
  530. package/lib/esm/components/FeedObject/Actions/Share/SharesDialog/SharesDialog.js +1 -1
  531. package/lib/esm/components/FeedObject/Activities/Activities.js +1 -1
  532. package/lib/esm/components/FeedObject/Activities/ActivitiesMenu/ActivitiesMenu.js +4 -4
  533. package/lib/esm/components/FeedObject/Activities/RelevantActivities/CommentActivity/CommentActivity.js +3 -3
  534. package/lib/esm/components/FeedObject/Activities/RelevantActivities/FollowActivity/FollowActivity.js +2 -2
  535. package/lib/esm/components/FeedObject/Activities/RelevantActivities/PollVoteActivity/PollVoteActivity.js +2 -2
  536. package/lib/esm/components/FeedObject/Activities/RelevantActivities/RelevantActivities.js +1 -1
  537. package/lib/esm/components/FeedObject/Activities/RelevantActivities/VoteUpActivity/VoteUpActivity.js +2 -2
  538. package/lib/esm/components/FeedObject/Contributors/Contributors.js +1 -1
  539. package/lib/esm/components/FeedObject/Contributors/Skeleton.js +1 -1
  540. package/lib/esm/components/FeedObject/FeedObject.js +11 -11
  541. package/lib/esm/components/FeedObject/Poll/Choice/Choice.js +2 -2
  542. package/lib/esm/components/FeedObject/Poll/Poll.js +1 -1
  543. package/lib/esm/components/FeedUpdatesWidget/FeedUpdatesWidget.js +1 -1
  544. package/lib/esm/components/Footer/Footer.js +1 -1
  545. package/lib/esm/components/Group/Group.js +2 -2
  546. package/lib/esm/components/Group/Skeleton.js +1 -1
  547. package/lib/esm/components/GroupActionsMenu/index.d.ts +57 -0
  548. package/lib/esm/components/GroupActionsMenu/index.js +154 -0
  549. package/lib/esm/components/GroupAutocomplete/GroupAutocomplete.js +1 -1
  550. package/lib/esm/components/GroupForm/GroupForm.js +9 -9
  551. package/lib/esm/components/GroupHeader/GroupHeader.d.ts +6 -0
  552. package/lib/esm/components/GroupHeader/GroupHeader.js +9 -5
  553. package/lib/esm/components/GroupHeader/Skeleton.js +1 -1
  554. package/lib/esm/components/GroupInfoWidget/GroupInfoWidget.js +6 -6
  555. package/lib/esm/components/GroupInviteButton/GroupInviteButton.js +2 -2
  556. package/lib/esm/components/GroupInvitedWidget/GroupInvitedWidget.js +1 -1
  557. package/lib/esm/components/GroupMembersButton/GroupMembersButton.js +1 -1
  558. package/lib/esm/components/GroupMembersWidget/GroupMembersWidget.js +5 -5
  559. package/lib/esm/components/GroupRequestsWidget/GroupRequestsWidget.js +1 -1
  560. package/lib/esm/components/GroupSettingsIconButton/GroupSettingsIconButton.js +5 -5
  561. package/lib/esm/components/Groups/Groups.js +30 -4
  562. package/lib/esm/components/Groups/Skeleton.js +1 -1
  563. package/lib/esm/components/Incubator/Incubator.js +4 -4
  564. package/lib/esm/components/Incubator/Skeleton.js +1 -1
  565. package/lib/esm/components/IncubatorDetail/IncubatorDetail.js +2 -2
  566. package/lib/esm/components/IncubatorListWidget/CreateIncubatorDialog/CreateIncubatorDialog.js +2 -2
  567. package/lib/esm/components/IncubatorListWidget/IncubatorListWidget.js +2 -2
  568. package/lib/esm/components/IncubatorListWidget/Skeleton.js +1 -1
  569. package/lib/esm/components/IncubatorSuggestionWidget/IncubatorSuggestionWidget.js +1 -1
  570. package/lib/esm/components/IncubatorSuggestionWidget/Skeleton.js +1 -1
  571. package/lib/esm/components/InlineComposerWidget/InlineComposerWidget.js +1 -1
  572. package/lib/esm/components/InlineComposerWidget/Skeleton.js +1 -1
  573. package/lib/esm/components/LiveStreamForm/LiveStreamForm.d.ts +55 -0
  574. package/lib/esm/components/LiveStreamForm/LiveStreamForm.js +153 -0
  575. package/lib/esm/components/LiveStreamForm/constants.d.ts +1 -0
  576. package/lib/esm/components/LiveStreamForm/constants.js +1 -0
  577. package/lib/esm/components/LiveStreamForm/index.d.ts +3 -0
  578. package/lib/esm/components/LiveStreamForm/index.js +2 -0
  579. package/lib/esm/components/LiveStreamForm/types.d.ts +10 -0
  580. package/lib/esm/components/LiveStreamForm/types.js +1 -0
  581. package/lib/esm/components/LiveStreamRoom/LiveStreamRoom.d.ts +48 -0
  582. package/lib/esm/components/LiveStreamRoom/LiveStreamRoom.js +119 -0
  583. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/LiveStreamVideoConference.d.ts +69 -0
  584. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/LiveStreamVideoConference.js +181 -0
  585. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/RecordingIndicator.d.ts +4 -0
  586. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/RecordingIndicator.js +28 -0
  587. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/constants.d.ts +1 -0
  588. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/constants.js +1 -0
  589. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/index.d.ts +3 -0
  590. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/index.js +2 -0
  591. package/lib/esm/components/LiveStreamRoom/constants.d.ts +5 -0
  592. package/lib/esm/components/LiveStreamRoom/constants.js +5 -0
  593. package/lib/esm/components/LiveStreamRoom/index.d.ts +3 -0
  594. package/lib/esm/components/LiveStreamRoom/index.js +2 -0
  595. package/lib/esm/components/LiveStreamRoom/types.d.ts +22 -0
  596. package/lib/esm/components/LiveStreamRoom/types.js +4 -0
  597. package/lib/esm/components/LocationAutocomplete/LocationAutocomplete.js +1 -1
  598. package/lib/esm/components/LoyaltyProgramWidget/LoyaltyProgramWidget.js +1 -1
  599. package/lib/esm/components/LoyaltyProgramWidget/Skeleton.js +1 -1
  600. package/lib/esm/components/MyEventsWidget/MyEventsWidget.js +1 -1
  601. package/lib/esm/components/MyEventsWidget/Skeleton.js +1 -1
  602. package/lib/esm/components/NavigationMenuIconButton/DefaultDrawerContent.js +2 -2
  603. package/lib/esm/components/NavigationMenuIconButton/DefaultHeaderContent.d.ts +1 -1
  604. package/lib/esm/components/NavigationMenuIconButton/DefaultHeaderContent.js +1 -1
  605. package/lib/esm/components/NavigationMenuIconButton/NavigationMenuDrawer.d.ts +31 -0
  606. package/lib/esm/components/NavigationMenuIconButton/NavigationMenuDrawer.js +36 -0
  607. package/lib/esm/components/NavigationMenuIconButton/NavigationMenuIconButton.d.ts +9 -20
  608. package/lib/esm/components/NavigationMenuIconButton/NavigationMenuIconButton.js +6 -22
  609. package/lib/esm/components/NavigationMenuIconButton/index.d.ts +2 -1
  610. package/lib/esm/components/NavigationMenuIconButton/index.js +2 -1
  611. package/lib/esm/components/NavigationSettingsIconButton/NavigationSettingsIconButton.js +27 -27
  612. package/lib/esm/components/NavigationToolbar/NavigationToolbar.d.ts +5 -0
  613. package/lib/esm/components/NavigationToolbar/NavigationToolbar.js +9 -9
  614. package/lib/esm/components/NavigationToolbar/NotificationMenu.js +1 -1
  615. package/lib/esm/components/NavigationToolbar/Skeleton.js +1 -1
  616. package/lib/esm/components/NavigationToolbarMobile/NavigationToolbarMobile.js +4 -4
  617. package/lib/esm/components/NavigationToolbarMobile/Skeleton.js +1 -1
  618. package/lib/esm/components/Notification/CollapsedFor/CollapsedFor.js +1 -1
  619. package/lib/esm/components/Notification/Comment/Comment.js +3 -3
  620. package/lib/esm/components/Notification/Contribution/Contribution.js +3 -3
  621. package/lib/esm/components/Notification/ContributionFollow/ContributionFollow.js +2 -2
  622. package/lib/esm/components/Notification/DeletedFor/DeletedFor.js +1 -1
  623. package/lib/esm/components/Notification/Event/Event.js +13 -9
  624. package/lib/esm/components/Notification/Group/Group.js +8 -8
  625. package/lib/esm/components/Notification/IncubatorApproved/IncubatorApproved.js +3 -3
  626. package/lib/esm/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.js +1 -1
  627. package/lib/esm/components/Notification/KindlyNoticeFor/KindlyNoticeFor.js +2 -2
  628. package/lib/esm/components/Notification/Mention/Mention.js +3 -3
  629. package/lib/esm/components/Notification/Notification.js +8 -8
  630. package/lib/esm/components/Notification/PrivateMessage/PrivateMessage.js +10 -10
  631. package/lib/esm/components/Notification/Skeleton.js +1 -1
  632. package/lib/esm/components/Notification/UndeletedFor/UndeletedFor.js +1 -1
  633. package/lib/esm/components/Notification/UserBlocked/UserBlocked.js +3 -3
  634. package/lib/esm/components/Notification/UserConnection/UserConnection.js +2 -2
  635. package/lib/esm/components/Notification/UserFollow/UserFollow.js +2 -2
  636. package/lib/esm/components/Notification/VoteUp/VoteUp.js +2 -2
  637. package/lib/esm/components/OnBoardingWidget/OnBoardingWidget.d.ts +10 -1
  638. package/lib/esm/components/OnBoardingWidget/OnBoardingWidget.js +81 -21
  639. package/lib/esm/components/OnBoardingWidget/Skeleton.js +1 -1
  640. package/lib/esm/components/OnBoardingWidget/Steps/App/App.js +9 -9
  641. package/lib/esm/components/OnBoardingWidget/Steps/Appearance/Appearance.js +18 -8
  642. package/lib/esm/components/OnBoardingWidget/Steps/Category/Category.js +5 -5
  643. package/lib/esm/components/OnBoardingWidget/Steps/Content/Content.js +1 -1
  644. package/lib/esm/components/OnBoardingWidget/Steps/Invite/Invite.js +59 -14
  645. package/lib/esm/components/OnBoardingWidget/Steps/Profile/Profile.js +1 -1
  646. package/lib/esm/components/PlatformWidget/PlatformWidget.js +8 -8
  647. package/lib/esm/components/PlatformWidget/Skeleton.js +1 -1
  648. package/lib/esm/components/PlatformWidget/constants.d.ts +0 -4
  649. package/lib/esm/components/PlatformWidget/constants.js +0 -4
  650. package/lib/esm/components/PollSuggestionWidget/PollSnippet/PollSnippet.js +1 -1
  651. package/lib/esm/components/PollSuggestionWidget/PollSuggestionWidget.js +1 -1
  652. package/lib/esm/components/PollSuggestionWidget/Skeleton.js +1 -1
  653. package/lib/esm/components/PrivateMessageComponent/PrivateMessageComponent.js +4 -4
  654. package/lib/esm/components/PrivateMessageComponent/Skeleton.d.ts +1 -1
  655. package/lib/esm/components/PrivateMessageComponent/Skeleton.js +1 -1
  656. package/lib/esm/components/PrivateMessageEditor/MessageMediaUploader/index.js +5 -5
  657. package/lib/esm/components/PrivateMessageEditor/PrivateMessageEditor.js +6 -6
  658. package/lib/esm/components/PrivateMessageSettingsIconButton/PrivateMessageSettingsIconButton.js +7 -7
  659. package/lib/esm/components/PrivateMessageSnippetItem/PrivateMessageSnippetItem.js +3 -3
  660. package/lib/esm/components/PrivateMessageSnippetItem/Skeleton.js +1 -1
  661. package/lib/esm/components/PrivateMessageSnippets/PrivateMessageSnippets.js +4 -4
  662. package/lib/esm/components/PrivateMessageSnippets/Skeleton.js +1 -1
  663. package/lib/esm/components/PrivateMessageThread/PrivateMessageThread.js +6 -6
  664. package/lib/esm/components/PrivateMessageThread/Skeleton.js +1 -1
  665. package/lib/esm/components/PrivateMessageThreadItem/PrivateMessageThreadItem.js +6 -8
  666. package/lib/esm/components/RelatedEventsWidget/RelatedEventsWidget.js +1 -1
  667. package/lib/esm/components/RelatedEventsWidget/Skeleton.js +1 -1
  668. package/lib/esm/components/RelatedFeedObjectsWidget/RelatedFeedObjectsWidget.js +1 -1
  669. package/lib/esm/components/SearchAutocomplete/SearchAutocomplete.js +2 -2
  670. package/lib/esm/components/SnippetNotifications/Skeleton.js +1 -1
  671. package/lib/esm/components/SnippetNotifications/SnippetNotifications.js +3 -3
  672. package/lib/esm/components/SuggestedEventsWidget/Arrow.js +2 -2
  673. package/lib/esm/components/SuggestedEventsWidget/Skeleton.js +1 -1
  674. package/lib/esm/components/SuggestedEventsWidget/SuggestedEventsWidget.js +2 -2
  675. package/lib/esm/components/User/Skeleton.js +1 -1
  676. package/lib/esm/components/User/User.js +2 -2
  677. package/lib/esm/components/UserActionIconButton/UserActionIconButton.js +9 -9
  678. package/lib/esm/components/UserConnectionsRequestsSentWidget/UserConnectionsRequestsSentWidget.js +1 -1
  679. package/lib/esm/components/UserConnectionsRequestsWidget/UserConnectionsRequestsWidget.js +1 -1
  680. package/lib/esm/components/UserConnectionsWidget/UserConnectionsWidget.js +1 -1
  681. package/lib/esm/components/UserCounters/UserCounters.js +5 -5
  682. package/lib/esm/components/UserFollowedCategoriesWidget/UserFollowedCategoriesWidget.js +1 -1
  683. package/lib/esm/components/UserFollowedUsersWidget/UserFollowedUsersWidget.js +1 -1
  684. package/lib/esm/components/UserFollowersWidget/UserFollowersWidget.js +1 -1
  685. package/lib/esm/components/UserInfo/Skeleton.js +1 -1
  686. package/lib/esm/components/UserInfo/UserInfo.js +3 -3
  687. package/lib/esm/components/UserInfoDialog/UserInfoDialog.js +1 -1
  688. package/lib/esm/components/UserProfileBlocked/UserProfileBlocked.js +1 -1
  689. package/lib/esm/components/UserProfileEdit/Section/Account.js +1 -1
  690. package/lib/esm/components/UserProfileEdit/Section/AccountCredentials.js +6 -6
  691. package/lib/esm/components/UserProfileEdit/Section/PublicInfo.js +8 -8
  692. package/lib/esm/components/UserProfileEdit/Section/Settings.js +3 -3
  693. package/lib/esm/components/UserProfileEdit/Section/SettingsSkeleton.js +1 -1
  694. package/lib/esm/components/UserProfileEdit/Skeleton.js +1 -1
  695. package/lib/esm/components/UserProfileEdit/UserProfileEdit.js +1 -1
  696. package/lib/esm/components/UserProfileHeader/Skeleton.js +1 -1
  697. package/lib/esm/components/UserProfileHeader/UserProfileHeader.js +1 -1
  698. package/lib/esm/components/UserSocialAssociation/UserSocialAssociation.js +1 -1
  699. package/lib/esm/components/UserSubscribedGroupsWidget/Skeleton.js +1 -1
  700. package/lib/esm/components/UserSubscribedGroupsWidget/UserSubscribedGroupsWidget.js +2 -2
  701. package/lib/esm/components/UserSuggestionWidget/Skeleton.js +1 -1
  702. package/lib/esm/components/UserSuggestionWidget/UserSuggestionWidget.js +1 -1
  703. package/lib/esm/components/VoteAudienceButton/VoteAudienceButton.js +5 -5
  704. package/lib/esm/components/VoteButton/VoteButton.js +2 -2
  705. package/lib/esm/constants/GroupActionsMenu.d.ts +5 -0
  706. package/lib/esm/constants/GroupActionsMenu.js +5 -0
  707. package/lib/esm/constants/LiveStream.d.ts +3 -0
  708. package/lib/esm/constants/LiveStream.js +3 -0
  709. package/lib/esm/constants/PubSub.d.ts +8 -1
  710. package/lib/esm/constants/PubSub.js +8 -0
  711. package/lib/esm/index.d.ts +9 -4
  712. package/lib/esm/index.js +11 -7
  713. package/lib/esm/shared/AutoPlayer/index.js +2 -2
  714. package/lib/esm/shared/BaseDialog/BaseDialog.js +2 -2
  715. package/lib/esm/shared/BaseItem/BaseItem.js +2 -2
  716. package/lib/esm/shared/BaseItemButton/BaseItemButton.js +2 -2
  717. package/lib/esm/shared/Calendar/index.js +1 -1
  718. package/lib/esm/shared/ConfirmDialog/ConfirmDialog.js +1 -1
  719. package/lib/esm/shared/ConsentSolutionSwitch/index.js +3 -3
  720. package/lib/esm/shared/ContributionActionsMenu/index.js +10 -10
  721. package/lib/esm/shared/CustomSnackMessage/index.js +1 -1
  722. package/lib/esm/shared/DateTimeAgo/index.js +1 -1
  723. package/lib/esm/shared/EmojiPicker/EmojiPicker.js +1 -1
  724. package/lib/esm/shared/EventActionsMenu/index.js +5 -5
  725. package/lib/esm/shared/EventInfoDetails/index.js +6 -6
  726. package/lib/esm/shared/InfiniteScroll/index.d.ts +1 -1
  727. package/lib/esm/shared/InfiniteScroll/index.js +5 -5
  728. package/lib/esm/shared/InfiniteScroll/stories/InfiniteScrollWithHeight.js +1 -1
  729. package/lib/esm/shared/InfiniteScroll/stories/PullDownToRefreshInfScroll.js +1 -1
  730. package/lib/esm/shared/InfiniteScroll/stories/ScrollableTargetFixedInfScroll.js +2 -2
  731. package/lib/esm/shared/InfiniteScroll/stories/ScrollableTargetInfScroll.js +1 -1
  732. package/lib/esm/shared/InfiniteScroll/stories/ScrolleableTop.js +2 -2
  733. package/lib/esm/shared/InfiniteScroll/stories/WindowInfiniteScrollComponent.js +1 -1
  734. package/lib/esm/shared/LanguageSwitcher/index.js +1 -1
  735. package/lib/esm/shared/Lightbox/BaseLightbox.d.ts +19 -0
  736. package/lib/esm/shared/Lightbox/BaseLightbox.js +33 -0
  737. package/lib/esm/shared/Lightbox/Lightbox.d.ts +31 -17
  738. package/lib/esm/shared/Lightbox/Lightbox.js +15 -19
  739. package/lib/esm/shared/Lightbox/constants.d.ts +1 -0
  740. package/lib/esm/shared/Lightbox/constants.js +1 -0
  741. package/lib/esm/shared/Lightbox/index.d.ts +4 -2
  742. package/lib/esm/shared/Lightbox/index.js +3 -1
  743. package/lib/esm/shared/MarkRead/MarkRead.js +1 -1
  744. package/lib/esm/shared/Media/File/DisplayComponent.js +32 -15
  745. package/lib/esm/shared/Media/File/PreviewComponent.js +3 -3
  746. package/lib/esm/shared/Media/File/TriggerButton.js +7 -7
  747. package/lib/esm/shared/Media/File/asUploadButton.d.ts +1 -1
  748. package/lib/esm/shared/Media/Link/DisplayComponent.js +6 -6
  749. package/lib/esm/shared/Media/Link/LayerComponent.js +1 -1
  750. package/lib/esm/shared/Media/Link/PreviewComponent.js +1 -1
  751. package/lib/esm/shared/Media/Link/TriggerButton.js +1 -1
  752. package/lib/esm/shared/Media/Link/UrlTextField/index.d.ts +1 -1
  753. package/lib/esm/shared/Media/Link/UrlTextField/index.js +3 -3
  754. package/lib/esm/shared/Media/Share/DisplayComponent.js +1 -1
  755. package/lib/esm/shared/MediaChunkUploader/index.js +14 -12
  756. package/lib/esm/shared/MetadataField/MetadataField.d.ts +1 -1
  757. package/lib/esm/shared/MetadataField/MetadataField.js +1 -1
  758. package/lib/esm/shared/NotificationItem/NotificationItem.js +1 -1
  759. package/lib/esm/shared/PasswordTextField/index.js +1 -1
  760. package/lib/esm/shared/ProgressBar/index.js +1 -1
  761. package/lib/esm/shared/StickyBox/index.d.ts +4 -4
  762. package/lib/esm/shared/StickyBox/index.js +1 -1
  763. package/lib/esm/shared/Tags/index.js +5 -5
  764. package/lib/esm/shared/UserDeletedSnackBar/UserDeletedSnackBar.js +1 -1
  765. package/lib/esm/shared/UsernameTextField/index.d.ts +1 -1
  766. package/lib/esm/shared/VirtualizedScroller/VirtualScrollerChild.js +1 -1
  767. package/lib/esm/types/composer.d.ts +1 -1
  768. package/lib/esm/utils/formatRelativeTime.js +2 -2
  769. package/lib/esm/utils/hash.d.ts +2 -1
  770. package/lib/esm/utils/liveStream.d.ts +4 -0
  771. package/lib/esm/utils/liveStream.js +18 -0
  772. package/lib/umd/186.js +2 -0
  773. package/lib/umd/react-ui.js +1 -1
  774. package/lib/umd/react-ui.js.LICENSE.txt +2 -0
  775. package/package.json +23 -11
  776. package/lib/cjs/shared/Media/File/Lightbox/index.d.ts +0 -28
  777. package/lib/cjs/shared/Media/File/Lightbox/index.js +0 -37
  778. package/lib/esm/shared/Media/File/Lightbox/index.d.ts +0 -28
  779. package/lib/esm/shared/Media/File/Lightbox/index.js +0 -34
  780. package/lib/umd/99.js +0 -2
  781. /package/lib/umd/{99.js.LICENSE.txt → 186.js.LICENSE.txt} +0 -0
@@ -107,58 +107,58 @@ export default function NavigationSettingsIconButton(inProps) {
107
107
  const renderList = () => {
108
108
  if (isMobile) {
109
109
  return [
110
- _jsx(ListItem, Object.assign({ className: classes.item }, { children: _jsx(ListItemButton, Object.assign({ component: Link, to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, scUserContext.user) }, { children: _jsx(FormattedMessage, { id: "ui.navigationSettingsIconButton.profile", defaultMessage: "ui.navigationSettingsIconButton.profile" }) })) }), "profile"),
111
- preferences[SCPreferences.CONFIGURATIONS_FOLLOW_ENABLED] && (_jsx(ListItem, Object.assign({ className: classes.item }, { children: _jsx(ListItemButton, Object.assign({ component: Link, to: scRoutingContext.url(SCRoutes.USER_PROFILE_FOLLOWINGS_ROUTE_NAME, scUserContext.user) }, { children: _jsx(FormattedMessage, { id: "ui.navigationSettingsIconButton.followings", defaultMessage: "ui.navigationSettingsIconButton.followings" }) })) }), "followings")),
112
- preferences[SCPreferences.CONFIGURATIONS_FOLLOW_ENABLED] && (_jsx(ListItem, Object.assign({ className: classes.item }, { children: _jsx(ListItemButton, Object.assign({ component: Link, to: scRoutingContext.url(SCRoutes.USER_PROFILE_FOLLOWERS_ROUTE_NAME, scUserContext.user) }, { children: _jsx(FormattedMessage, { id: "ui.navigationSettingsIconButton.followers", defaultMessage: "ui.navigationSettingsIconButton.followers" }) })) }), "followers")),
113
- !preferences[SCPreferences.CONFIGURATIONS_FOLLOW_ENABLED] && (_jsx(ListItem, Object.assign({ className: classes.item }, { children: _jsx(ListItemButton, Object.assign({ component: Link, to: scRoutingContext.url(SCRoutes.USER_PROFILE_CONNECTIONS_ROUTE_NAME, scUserContext.user) }, { children: _jsx(FormattedMessage, { id: "ui.navigationSettingsIconButton.connections", defaultMessage: "ui.navigationSettingsIconButton.connections" }) })) }), "connections")),
114
- preferences[SCPreferences.ADDONS_LOYALTY_POINTS_COLLECTION] && (_jsx(ListItem, Object.assign({ className: classes.item }, { children: _jsx(ListItemButton, Object.assign({ component: Link, to: scRoutingContext.url(SCRoutes.LOYALTY_ROUTE_NAME, {}) }, { children: _jsx(FormattedMessage, { id: "ui.navigationSettingsIconButton.loyalty", defaultMessage: "ui.navigationSettingsIconButton.loyalty" }) })) }), "loyaltyProgram")),
115
- preferences[SCPreferences.CONFIGURATIONS_POST_TYPE_ENABLED] && (_jsx(ListItem, Object.assign({ className: classes.item }, { children: _jsx(ListItemButton, Object.assign({ component: Link, to: scRoutingContext.url(SCRoutes.USER_PROFILE_FOLLOWED_POSTS_ROUTE_NAME, scUserContext.user) }, { children: _jsx(FormattedMessage, { id: "ui.navigationSettingsIconButton.postsFollowed", defaultMessage: "ui.navigationSettingsIconButton.postsFollowed" }) })) }), "followedPosts")),
116
- preferences[SCPreferences.CONFIGURATIONS_DISCUSSION_TYPE_ENABLED] && (_jsx(ListItem, Object.assign({ className: classes.item }, { children: _jsx(ListItemButton, Object.assign({ component: Link, to: scRoutingContext.url(SCRoutes.USER_PROFILE_FOLLOWED_DISCUSSIONS_ROUTE_NAME, scUserContext.user) }, { children: _jsx(FormattedMessage, { id: "ui.navigationSettingsIconButton.discussionsFollowed", defaultMessage: "ui.navigationSettingsIconButton.discussionsFollowed" }) })) }), "followedDiscussions")),
117
- _jsx(ListItem, Object.assign({ className: classes.item }, { children: _jsx(ListItemButton, Object.assign({ component: Link, to: scRoutingContext.url(SCRoutes.USER_PRIVATE_MESSAGES_ROUTE_NAME, {}) }, { children: _jsx(FormattedMessage, { id: "ui.navigationSettingsIconButton.privateMessages", defaultMessage: "ui.navigationSettingsIconButton.privateMessages" }) })) }), "privateMessages"),
118
- ...items.map((item, index) => (_jsx(ListItem, Object.assign({ className: classes.item }, { children: _jsx(ListItemButton, Object.assign({ component: Link, to: item.href }, { children: item.label })) }), `custom_item_${index}`))),
110
+ _jsx(ListItem, { className: classes.item, children: _jsx(ListItemButton, { component: Link, to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, scUserContext.user), children: _jsx(FormattedMessage, { id: "ui.navigationSettingsIconButton.profile", defaultMessage: "ui.navigationSettingsIconButton.profile" }) }) }, "profile"),
111
+ preferences[SCPreferences.CONFIGURATIONS_FOLLOW_ENABLED] && (_jsx(ListItem, { className: classes.item, children: _jsx(ListItemButton, { component: Link, to: scRoutingContext.url(SCRoutes.USER_PROFILE_FOLLOWINGS_ROUTE_NAME, scUserContext.user), children: _jsx(FormattedMessage, { id: "ui.navigationSettingsIconButton.followings", defaultMessage: "ui.navigationSettingsIconButton.followings" }) }) }, "followings")),
112
+ preferences[SCPreferences.CONFIGURATIONS_FOLLOW_ENABLED] && (_jsx(ListItem, { className: classes.item, children: _jsx(ListItemButton, { component: Link, to: scRoutingContext.url(SCRoutes.USER_PROFILE_FOLLOWERS_ROUTE_NAME, scUserContext.user), children: _jsx(FormattedMessage, { id: "ui.navigationSettingsIconButton.followers", defaultMessage: "ui.navigationSettingsIconButton.followers" }) }) }, "followers")),
113
+ !preferences[SCPreferences.CONFIGURATIONS_FOLLOW_ENABLED] && (_jsx(ListItem, { className: classes.item, children: _jsx(ListItemButton, { component: Link, to: scRoutingContext.url(SCRoutes.USER_PROFILE_CONNECTIONS_ROUTE_NAME, scUserContext.user), children: _jsx(FormattedMessage, { id: "ui.navigationSettingsIconButton.connections", defaultMessage: "ui.navigationSettingsIconButton.connections" }) }) }, "connections")),
114
+ preferences[SCPreferences.ADDONS_LOYALTY_POINTS_COLLECTION] && (_jsx(ListItem, { className: classes.item, children: _jsx(ListItemButton, { component: Link, to: scRoutingContext.url(SCRoutes.LOYALTY_ROUTE_NAME, {}), children: _jsx(FormattedMessage, { id: "ui.navigationSettingsIconButton.loyalty", defaultMessage: "ui.navigationSettingsIconButton.loyalty" }) }) }, "loyaltyProgram")),
115
+ preferences[SCPreferences.CONFIGURATIONS_POST_TYPE_ENABLED] && (_jsx(ListItem, { className: classes.item, children: _jsx(ListItemButton, { component: Link, to: scRoutingContext.url(SCRoutes.USER_PROFILE_FOLLOWED_POSTS_ROUTE_NAME, scUserContext.user), children: _jsx(FormattedMessage, { id: "ui.navigationSettingsIconButton.postsFollowed", defaultMessage: "ui.navigationSettingsIconButton.postsFollowed" }) }) }, "followedPosts")),
116
+ preferences[SCPreferences.CONFIGURATIONS_DISCUSSION_TYPE_ENABLED] && (_jsx(ListItem, { className: classes.item, children: _jsx(ListItemButton, { component: Link, to: scRoutingContext.url(SCRoutes.USER_PROFILE_FOLLOWED_DISCUSSIONS_ROUTE_NAME, scUserContext.user), children: _jsx(FormattedMessage, { id: "ui.navigationSettingsIconButton.discussionsFollowed", defaultMessage: "ui.navigationSettingsIconButton.discussionsFollowed" }) }) }, "followedDiscussions")),
117
+ _jsx(ListItem, { className: classes.item, children: _jsx(ListItemButton, { component: Link, to: scRoutingContext.url(SCRoutes.USER_PRIVATE_MESSAGES_ROUTE_NAME, {}), children: _jsx(FormattedMessage, { id: "ui.navigationSettingsIconButton.privateMessages", defaultMessage: "ui.navigationSettingsIconButton.privateMessages" }) }) }, "privateMessages"),
118
+ ...items.map((item, index) => (_jsx(ListItem, { className: classes.item, children: _jsx(ListItemButton, { component: Link, to: item.href, children: item.label }) }, `custom_item_${index}`))),
119
119
  ...(isAdmin
120
120
  ? [
121
121
  _jsx(Divider, {}, "admin_divider"),
122
- _jsx(ListItem, Object.assign({ className: classes.item }, { children: _jsx(ListItemButton, Object.assign({ onClick: () => fetchPlatform('') }, { children: _jsx(FormattedMessage, { id: "ui.navigationSettingsIconButton.platform", defaultMessage: "ui.navigationSettingsIconButton.platform" }) })) }), "platform")
122
+ _jsx(ListItem, { className: classes.item, children: _jsx(ListItemButton, { onClick: () => fetchPlatform(''), children: _jsx(FormattedMessage, { id: "ui.navigationSettingsIconButton.platform", defaultMessage: "ui.navigationSettingsIconButton.platform" }) }) }, "platform")
123
123
  ]
124
124
  : []),
125
125
  ...(isModerator || isAdmin
126
126
  ? [
127
127
  _jsx(Divider, {}, "moderation_divider"),
128
- _jsx(ListItem, Object.assign({ className: classes.item }, { children: _jsx(ListItemButton, Object.assign({ onClick: () => fetchPlatform('/moderation/flags/') }, { children: _jsx(FormattedMessage, { id: "ui.navigationSettingsIconButton.moderation", defaultMessage: "ui.navigationSettingsIconButton.moderation" }) })) }), "moderation")
128
+ _jsx(ListItem, { className: classes.item, children: _jsx(ListItemButton, { onClick: () => fetchPlatform('/moderation/flags/'), children: _jsx(FormattedMessage, { id: "ui.navigationSettingsIconButton.moderation", defaultMessage: "ui.navigationSettingsIconButton.moderation" }) }) }, "moderation")
129
129
  ]
130
130
  : []),
131
- _jsx(ListItem, Object.assign({ className: classes.item }, { children: _jsx(ListItemButton, Object.assign({ component: Link, to: scRoutingContext.url(SCRoutes.USER_PROFILE_SETTINGS_ROUTE_NAME, scUserContext.user) }, { children: _jsx(FormattedMessage, { id: "ui.navigationSettingsIconButton.settings", defaultMessage: "ui.navigationSettingsIconButton.settings" }) })) }), "settings"),
131
+ _jsx(ListItem, { className: classes.item, children: _jsx(ListItemButton, { component: Link, to: scRoutingContext.url(SCRoutes.USER_PROFILE_SETTINGS_ROUTE_NAME, scUserContext.user), children: _jsx(FormattedMessage, { id: "ui.navigationSettingsIconButton.settings", defaultMessage: "ui.navigationSettingsIconButton.settings" }) }) }, "settings"),
132
132
  _jsx(Divider, {}, "divider"),
133
- _jsx(ListItem, Object.assign({ className: classes.item }, { children: _jsx(ListItemButton, Object.assign({ onClick: handleLogout }, { children: _jsx(FormattedMessage, { id: "ui.navigationSettingsIconButton.logout", defaultMessage: "ui.navigationSettingsIconButton.logout" }) })) }), "logout")
133
+ _jsx(ListItem, { className: classes.item, children: _jsx(ListItemButton, { onClick: handleLogout, children: _jsx(FormattedMessage, { id: "ui.navigationSettingsIconButton.logout", defaultMessage: "ui.navigationSettingsIconButton.logout" }) }) }, "logout")
134
134
  ];
135
135
  }
136
136
  else {
137
137
  return [
138
- _jsx(MenuItem, Object.assign({ className: classes.item, component: Link, to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, scUserContext.user) }, { children: _jsx(FormattedMessage, { id: "ui.navigationSettingsIconButton.profile", defaultMessage: "ui.navigationSettingsIconButton.profile" }) }), "profile"),
139
- preferences[SCPreferences.CONFIGURATIONS_FOLLOW_ENABLED] && (_jsx(MenuItem, Object.assign({ className: classes.item, component: Link, to: scRoutingContext.url(SCRoutes.USER_PROFILE_FOLLOWINGS_ROUTE_NAME, scUserContext.user) }, { children: _jsx(FormattedMessage, { id: "ui.navigationSettingsIconButton.followings", defaultMessage: "ui.navigationSettingsIconButton.followings" }) }), "followings")),
140
- preferences[SCPreferences.CONFIGURATIONS_FOLLOW_ENABLED] && (_jsx(MenuItem, Object.assign({ className: classes.item, component: Link, to: scRoutingContext.url(SCRoutes.USER_PROFILE_FOLLOWERS_ROUTE_NAME, scUserContext.user) }, { children: _jsx(FormattedMessage, { id: "ui.navigationSettingsIconButton.followers", defaultMessage: "ui.navigationSettingsIconButton.followers" }) }), "followers")),
141
- !preferences[SCPreferences.CONFIGURATIONS_FOLLOW_ENABLED] && (_jsx(MenuItem, Object.assign({ className: classes.item, component: Link, to: scRoutingContext.url(SCRoutes.USER_PROFILE_CONNECTIONS_ROUTE_NAME, scUserContext.user) }, { children: _jsx(FormattedMessage, { id: "ui.navigationSettingsIconButton.connections", defaultMessage: "ui.navigationSettingsIconButton.connections" }) }), "connections")),
142
- preferences[SCPreferences.ADDONS_LOYALTY_POINTS_COLLECTION] && (_jsx(MenuItem, Object.assign({ className: classes.item, component: Link, to: scRoutingContext.url(SCRoutes.LOYALTY_ROUTE_NAME, {}) }, { children: _jsx(FormattedMessage, { id: "ui.navigationSettingsIconButton.loyalty", defaultMessage: "ui.navigationSettingsIconButton.loyalty" }) }), "loyaltyProgram")),
143
- preferences[SCPreferences.CONFIGURATIONS_POST_TYPE_ENABLED] && (_jsx(MenuItem, Object.assign({ className: classes.item, component: Link, to: scRoutingContext.url(SCRoutes.USER_PROFILE_FOLLOWED_POSTS_ROUTE_NAME, scUserContext.user) }, { children: _jsx(FormattedMessage, { id: "ui.navigationSettingsIconButton.postsFollowed", defaultMessage: "ui.navigationSettingsIconButton.postsFollowed" }) }), "followedPosts")),
144
- preferences[SCPreferences.CONFIGURATIONS_DISCUSSION_TYPE_ENABLED] && (_jsx(MenuItem, Object.assign({ className: classes.item, component: Link, to: scRoutingContext.url(SCRoutes.USER_PROFILE_FOLLOWED_DISCUSSIONS_ROUTE_NAME, scUserContext.user) }, { children: _jsx(FormattedMessage, { id: "ui.navigationSettingsIconButton.discussionsFollowed", defaultMessage: "ui.navigationSettingsIconButton.discussionsFollowed" }) }), "followedDiscussions")),
145
- _jsx(MenuItem, Object.assign({ className: classes.item, component: Link, to: scRoutingContext.url(SCRoutes.USER_PRIVATE_MESSAGES_ROUTE_NAME, {}) }, { children: _jsx(FormattedMessage, { id: "ui.navigationSettingsIconButton.privateMessages", defaultMessage: "ui.navigationSettingsIconButton.privateMessages" }) }), "privateMessages"),
146
- ...items.map((item, index) => (_jsx(MenuItem, Object.assign({ className: classes.item, component: Link, to: item.href }, { children: item.label }), `custom_item_${index}`))),
138
+ _jsx(MenuItem, { className: classes.item, component: Link, to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, scUserContext.user), children: _jsx(FormattedMessage, { id: "ui.navigationSettingsIconButton.profile", defaultMessage: "ui.navigationSettingsIconButton.profile" }) }, "profile"),
139
+ preferences[SCPreferences.CONFIGURATIONS_FOLLOW_ENABLED] && (_jsx(MenuItem, { className: classes.item, component: Link, to: scRoutingContext.url(SCRoutes.USER_PROFILE_FOLLOWINGS_ROUTE_NAME, scUserContext.user), children: _jsx(FormattedMessage, { id: "ui.navigationSettingsIconButton.followings", defaultMessage: "ui.navigationSettingsIconButton.followings" }) }, "followings")),
140
+ preferences[SCPreferences.CONFIGURATIONS_FOLLOW_ENABLED] && (_jsx(MenuItem, { className: classes.item, component: Link, to: scRoutingContext.url(SCRoutes.USER_PROFILE_FOLLOWERS_ROUTE_NAME, scUserContext.user), children: _jsx(FormattedMessage, { id: "ui.navigationSettingsIconButton.followers", defaultMessage: "ui.navigationSettingsIconButton.followers" }) }, "followers")),
141
+ !preferences[SCPreferences.CONFIGURATIONS_FOLLOW_ENABLED] && (_jsx(MenuItem, { className: classes.item, component: Link, to: scRoutingContext.url(SCRoutes.USER_PROFILE_CONNECTIONS_ROUTE_NAME, scUserContext.user), children: _jsx(FormattedMessage, { id: "ui.navigationSettingsIconButton.connections", defaultMessage: "ui.navigationSettingsIconButton.connections" }) }, "connections")),
142
+ preferences[SCPreferences.ADDONS_LOYALTY_POINTS_COLLECTION] && (_jsx(MenuItem, { className: classes.item, component: Link, to: scRoutingContext.url(SCRoutes.LOYALTY_ROUTE_NAME, {}), children: _jsx(FormattedMessage, { id: "ui.navigationSettingsIconButton.loyalty", defaultMessage: "ui.navigationSettingsIconButton.loyalty" }) }, "loyaltyProgram")),
143
+ preferences[SCPreferences.CONFIGURATIONS_POST_TYPE_ENABLED] && (_jsx(MenuItem, { className: classes.item, component: Link, to: scRoutingContext.url(SCRoutes.USER_PROFILE_FOLLOWED_POSTS_ROUTE_NAME, scUserContext.user), children: _jsx(FormattedMessage, { id: "ui.navigationSettingsIconButton.postsFollowed", defaultMessage: "ui.navigationSettingsIconButton.postsFollowed" }) }, "followedPosts")),
144
+ preferences[SCPreferences.CONFIGURATIONS_DISCUSSION_TYPE_ENABLED] && (_jsx(MenuItem, { className: classes.item, component: Link, to: scRoutingContext.url(SCRoutes.USER_PROFILE_FOLLOWED_DISCUSSIONS_ROUTE_NAME, scUserContext.user), children: _jsx(FormattedMessage, { id: "ui.navigationSettingsIconButton.discussionsFollowed", defaultMessage: "ui.navigationSettingsIconButton.discussionsFollowed" }) }, "followedDiscussions")),
145
+ _jsx(MenuItem, { className: classes.item, component: Link, to: scRoutingContext.url(SCRoutes.USER_PRIVATE_MESSAGES_ROUTE_NAME, {}), children: _jsx(FormattedMessage, { id: "ui.navigationSettingsIconButton.privateMessages", defaultMessage: "ui.navigationSettingsIconButton.privateMessages" }) }, "privateMessages"),
146
+ ...items.map((item, index) => (_jsx(MenuItem, { className: classes.item, component: Link, to: item.href, children: item.label }, `custom_item_${index}`))),
147
147
  ...(isAdmin
148
148
  ? [
149
149
  _jsx(Divider, {}, "platform_divider"),
150
- _jsx(MenuItem, Object.assign({ className: classes.item, onClick: () => fetchPlatform('') }, { children: _jsx(FormattedMessage, { id: "ui.navigationSettingsIconButton.platform", defaultMessage: "ui.navigationSettingsIconButton.platform" }) }), "platform")
150
+ _jsx(MenuItem, { className: classes.item, onClick: () => fetchPlatform(''), children: _jsx(FormattedMessage, { id: "ui.navigationSettingsIconButton.platform", defaultMessage: "ui.navigationSettingsIconButton.platform" }) }, "platform")
151
151
  ]
152
152
  : []),
153
153
  ...(isModerator || isAdmin
154
154
  ? [
155
155
  _jsx(Divider, {}, "moderation_divider"),
156
- _jsx(MenuItem, Object.assign({ className: classes.item, onClick: () => fetchPlatform('/moderation/flags/') }, { children: _jsx(FormattedMessage, { id: "ui.navigationSettingsIconButton.moderation", defaultMessage: "ui.navigationSettingsIconButton.moderation" }) }), "moderation")
156
+ _jsx(MenuItem, { className: classes.item, onClick: () => fetchPlatform('/moderation/flags/'), children: _jsx(FormattedMessage, { id: "ui.navigationSettingsIconButton.moderation", defaultMessage: "ui.navigationSettingsIconButton.moderation" }) }, "moderation")
157
157
  ]
158
158
  : []),
159
- _jsx(MenuItem, Object.assign({ className: classes.item, component: Link, to: scRoutingContext.url(SCRoutes.USER_PROFILE_SETTINGS_ROUTE_NAME, scUserContext.user) }, { children: _jsx(FormattedMessage, { id: "ui.navigationSettingsIconButton.settings", defaultMessage: "ui.navigationSettingsIconButton.settings" }) }), "settings"),
159
+ _jsx(MenuItem, { className: classes.item, component: Link, to: scRoutingContext.url(SCRoutes.USER_PROFILE_SETTINGS_ROUTE_NAME, scUserContext.user), children: _jsx(FormattedMessage, { id: "ui.navigationSettingsIconButton.settings", defaultMessage: "ui.navigationSettingsIconButton.settings" }) }, "settings"),
160
160
  _jsx(Divider, {}, "divider"),
161
- _jsx(MenuItem, Object.assign({ className: classes.item, onClick: handleLogout }, { children: _jsx(FormattedMessage, { id: "ui.navigationSettingsIconButton.logout", defaultMessage: "ui.navigationSettingsIconButton.logout" }) }), "logout")
161
+ _jsx(MenuItem, { className: classes.item, onClick: handleLogout, children: _jsx(FormattedMessage, { id: "ui.navigationSettingsIconButton.logout", defaultMessage: "ui.navigationSettingsIconButton.logout" }) }, "logout")
162
162
  ];
163
163
  }
164
164
  };
@@ -166,5 +166,5 @@ export default function NavigationSettingsIconButton(inProps) {
166
166
  if (!scUserContext.user) {
167
167
  return null;
168
168
  }
169
- return (_jsxs(_Fragment, { children: [_jsx(Root, Object.assign({ className: classNames(classes.root, className) }, rest, { onClick: handleOpen }, { children: _jsx(Icon, { children: "more_vert" }) })), isMobile ? (_jsx(SwipeableDrawerRoot, Object.assign({ onClick: () => setAnchorEl(null), className: classes.drawerRoot, anchor: "bottom", open: Boolean(anchorEl), onClose: handleClose, onOpen: handleOpen, PaperProps: { className: classes.paper }, disableSwipeToOpen: true }, { children: _jsx(List, { children: renderList() }) }))) : (_jsx(MenuRoot, Object.assign({ onClick: () => setAnchorEl(null), className: classes.menuRoot, anchorEl: anchorEl, open: Boolean(anchorEl), onClose: handleClose, PaperProps: { className: classes.paper } }, { children: renderList() })))] }));
169
+ return (_jsxs(_Fragment, { children: [_jsx(Root, Object.assign({ className: classNames(classes.root, className) }, rest, { onClick: handleOpen, children: _jsx(Icon, { children: "more_vert" }) })), isMobile ? (_jsx(SwipeableDrawerRoot, { onClick: () => setAnchorEl(null), className: classes.drawerRoot, anchor: "bottom", open: Boolean(anchorEl), onClose: handleClose, onOpen: handleOpen, PaperProps: { className: classes.paper }, disableSwipeToOpen: true, children: _jsx(List, { children: renderList() }) })) : (_jsx(MenuRoot, { onClick: () => setAnchorEl(null), className: classes.menuRoot, anchorEl: anchorEl, open: Boolean(anchorEl), onClose: handleClose, PaperProps: { className: classes.paper }, children: renderList() }))] }));
170
170
  }
@@ -34,6 +34,11 @@ export interface NavigationToolbarProps extends ToolbarProps {
34
34
  * Component for Navigation Menu Icon Button
35
35
  */
36
36
  NavigationMenuIconButtonComponent?: (inProps: NavigationMenuIconButtonProps) => JSX.Element;
37
+ /**
38
+ * Props to spread to the NavigationMenuIconButtonComponent
39
+ * @default {}
40
+ */
41
+ NavigationMenuIconButtonComponentProps?: NavigationMenuIconButtonProps;
37
42
  /**
38
43
  * Component for Navigation Settings
39
44
  */
@@ -96,7 +96,7 @@ export default function NavigationToolbar(inProps) {
96
96
  props: inProps,
97
97
  name: PREFIX
98
98
  });
99
- const { value = '', className = '', disableSearch = false, disableComposer = false, SearchAutocompleteProps = {}, startActions = null, endActions = null, NavigationSettingsIconButtonComponent = NavigationSettingsIconButton, NavigationMenuIconButtonComponent = NavigationMenuIconButton, children = null, NotificationMenuProps = {}, ComposerIconButtonProps = {}, onOpenNotificationMenu, onCloseNotificationMenu } = props, rest = __rest(props, ["value", "className", "disableSearch", "disableComposer", "SearchAutocompleteProps", "startActions", "endActions", "NavigationSettingsIconButtonComponent", "NavigationMenuIconButtonComponent", "children", "NotificationMenuProps", "ComposerIconButtonProps", "onOpenNotificationMenu", "onCloseNotificationMenu"]);
99
+ const { value = '', className = '', disableSearch = false, disableComposer = false, SearchAutocompleteProps = {}, startActions = null, endActions = null, NavigationSettingsIconButtonComponent = NavigationSettingsIconButton, NavigationMenuIconButtonComponentProps = {}, NavigationMenuIconButtonComponent = NavigationMenuIconButton, children = null, NotificationMenuProps = {}, ComposerIconButtonProps = {}, onOpenNotificationMenu, onCloseNotificationMenu } = props, rest = __rest(props, ["value", "className", "disableSearch", "disableComposer", "SearchAutocompleteProps", "startActions", "endActions", "NavigationSettingsIconButtonComponent", "NavigationMenuIconButtonComponentProps", "NavigationMenuIconButtonComponent", "children", "NotificationMenuProps", "ComposerIconButtonProps", "onOpenNotificationMenu", "onCloseNotificationMenu"]);
100
100
  // CONTEXT
101
101
  const scUserContext = useSCUser();
102
102
  const scRoutingContext = useSCRouting();
@@ -117,7 +117,7 @@ export default function NavigationToolbar(inProps) {
117
117
  const eventsEnabled = useMemo(() => scPreferences.preferences &&
118
118
  scPreferences.features &&
119
119
  scPreferences.features.includes(SCFeatureName.TAGGING) &&
120
- SCPreferences.CONFIGURATIONS_EVENTS_ENABLED in preferences &&
120
+ SCPreferences.CONFIGURATIONS_EVENTS_ENABLED in scPreferences.preferences &&
121
121
  scPreferences.preferences[SCPreferences.CONFIGURATIONS_EVENTS_ENABLED].value, [scPreferences.preferences, scPreferences.features]);
122
122
  const showComposer = useMemo(() => {
123
123
  return (!disableComposer &&
@@ -138,16 +138,16 @@ export default function NavigationToolbar(inProps) {
138
138
  if (scUserContext.loading) {
139
139
  return _jsx(NavigationToolbarSkeleton, {});
140
140
  }
141
- const _children = children || (_jsxs(Box, Object.assign({ className: classes.navigation }, { children: [scUserContext.user && (_jsx(IconButton, Object.assign({ className: classNames(classes.home, { [classes.active]: value.startsWith(scRoutingContext.url(SCRoutes.HOME_ROUTE_NAME, {})) }), "aria-label": "Home", to: scRoutingContext.url(SCRoutes.HOME_ROUTE_NAME, {}), component: Link }, { children: _jsx(Icon, { children: "home" }) }))), preferences[SCPreferences.CONFIGURATIONS_EXPLORE_STREAM_ENABLED] &&
142
- (preferences[SCPreferences.CONFIGURATIONS_CONTENT_AVAILABILITY] || scUserContext.user) && (_jsx(IconButton, Object.assign({ className: classNames(classes.explore, { [classes.active]: value.startsWith(scRoutingContext.url(SCRoutes.EXPLORE_ROUTE_NAME, {})) }), "aria-label": "Explore", to: scRoutingContext.url(SCRoutes.EXPLORE_ROUTE_NAME, {}), component: Link }, { children: _jsx(Icon, { children: "explore" }) }))), groupsEnabled && scUserContext.user && (_jsx(IconButton, Object.assign({ className: classNames(classes.groups, {
141
+ const _children = children || (_jsxs(Box, { className: classes.navigation, children: [scUserContext.user && (_jsx(IconButton, { className: classNames(classes.home, { [classes.active]: value.startsWith(scRoutingContext.url(SCRoutes.HOME_ROUTE_NAME, {})) }), "aria-label": "Home", to: scRoutingContext.url(SCRoutes.HOME_ROUTE_NAME, {}), component: Link, children: _jsx(Icon, { children: "home" }) })), preferences[SCPreferences.CONFIGURATIONS_EXPLORE_STREAM_ENABLED] &&
142
+ (preferences[SCPreferences.CONFIGURATIONS_CONTENT_AVAILABILITY] || scUserContext.user) && (_jsx(IconButton, { className: classNames(classes.explore, { [classes.active]: value.startsWith(scRoutingContext.url(SCRoutes.EXPLORE_ROUTE_NAME, {})) }), "aria-label": "Explore", to: scRoutingContext.url(SCRoutes.EXPLORE_ROUTE_NAME, {}), component: Link, children: _jsx(Icon, { children: "explore" }) })), groupsEnabled && scUserContext.user && (_jsx(IconButton, { className: classNames(classes.groups, {
143
143
  [classes.active]: value.startsWith(scRoutingContext.url(SCRoutes.GROUPS_SUBSCRIBED_ROUTE_NAME, {})) ||
144
144
  value.startsWith(scRoutingContext.url(SCRoutes.GROUPS_ROUTE_NAME, {}))
145
- }), "aria-label": "Groups", to: scRoutingContext.url(SCRoutes.GROUPS_SUBSCRIBED_ROUTE_NAME, {}), component: Link }, { children: _jsx(Icon, { children: "groups" }) }))), eventsEnabled && (_jsx(IconButton, Object.assign({ className: classNames(classes.events, {
145
+ }), "aria-label": "Groups", to: scRoutingContext.url(SCRoutes.GROUPS_SUBSCRIBED_ROUTE_NAME, {}), component: Link, children: _jsx(Icon, { children: "groups" }) })), eventsEnabled && (_jsx(IconButton, { className: classNames(classes.events, {
146
146
  [classes.active]: value.startsWith(scRoutingContext.url(SCRoutes.EVENTS_ROUTE_NAME, {}))
147
- }), "aria-label": "Groups", to: scRoutingContext.url(SCRoutes.EVENTS_ROUTE_NAME, {}), component: Link }, { children: _jsx(Icon, { children: "CalendarIcon" }) })))] })));
148
- return (_jsxs(Root, Object.assign({ className: classNames(className, classes.root) }, rest, { children: [_jsx(NavigationMenuIconButtonComponent, {}), _jsx(Link, Object.assign({ to: scRoutingContext.url(SCRoutes.HOME_ROUTE_NAME, {}), className: classes.logo }, { children: _jsx("img", { src: preferences[SCPreferences.LOGO_NAVBAR_LOGO], alt: "logo" }) })), !scUserContext.user && !preferences[SCPreferences.ADDONS_CLOSED_COMMUNITY] && (_jsx(Button, Object.assign({ color: "inherit", component: Link, to: scRoutingContext.url(SCRoutes.SIGNUP_ROUTE_NAME, {}), className: classes.register }, { children: _jsx(FormattedMessage, { id: "ui.appBar.navigation.register", defaultMessage: "ui.appBar.navigation.register" }) }))), preferences[SCPreferences.CONFIGURATIONS_CUSTOM_NAVBAR_ITEM_ENABLED] && (_jsx(_Fragment, { children: preferences[SCPreferences.CONFIGURATIONS_CUSTOM_NAVBAR_ITEM_TEXT] ? (_jsx(Tooltip, Object.assign({ title: preferences[SCPreferences.CONFIGURATIONS_CUSTOM_NAVBAR_ITEM_TEXT] }, { children: _jsx(Link, Object.assign({ target: "blank", to: preferences[SCPreferences.CONFIGURATIONS_CUSTOM_NAVBAR_ITEM_URL], className: classes.customItem }, { children: _jsx("img", { src: preferences[SCPreferences.CONFIGURATIONS_CUSTOM_NAVBAR_ITEM_IMAGE], alt: "custom_item" }) })) }))) : (_jsx(Link, Object.assign({ target: "blank", to: preferences[SCPreferences.CONFIGURATIONS_CUSTOM_NAVBAR_ITEM_URL], className: classes.customItem }, { children: _jsx("img", { src: preferences[SCPreferences.CONFIGURATIONS_CUSTOM_NAVBAR_ITEM_IMAGE], alt: "custom_item" }) }))) })), _children, (preferences[SCPreferences.CONFIGURATIONS_CONTENT_AVAILABILITY] || scUserContext.user) && !disableSearch ? (_jsx(SearchAutocomplete, Object.assign({ className: classes.search, blurOnSelect: true }, SearchAutocompleteProps))) : (_jsx(Box, { className: classes.search })), startActions, scUserContext.user ? (_jsxs(_Fragment, { children: [showComposer && _jsx(ComposerIconButton, Object.assign({ className: classes.composer }, ComposerIconButtonProps)), _jsx(Tooltip, Object.assign({ title: scUserContext.user.username }, { children: _jsx(IconButton, Object.assign({ component: Link, to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, scUserContext.user), "aria-label": "Profile", className: classes.profile }, { children: _jsx(Avatar, { alt: scUserContext.user.username, src: scUserContext.user.avatar }) })) })), _jsxs(_Fragment, { children: [_jsx(IconButton, Object.assign({ className: classNames(classes.notification, {
147
+ }), "aria-label": "Groups", to: scRoutingContext.url(SCRoutes.EVENTS_ROUTE_NAME, {}), component: Link, children: _jsx(Icon, { children: "CalendarIcon" }) }))] }));
148
+ return (_jsxs(Root, Object.assign({ className: classNames(className, classes.root) }, rest, { children: [_jsx(NavigationMenuIconButtonComponent, Object.assign({}, NavigationMenuIconButtonComponentProps)), _jsx(Link, { to: scRoutingContext.url(SCRoutes.HOME_ROUTE_NAME, {}), className: classes.logo, children: _jsx("img", { src: preferences[SCPreferences.LOGO_NAVBAR_LOGO], alt: "logo" }) }), !scUserContext.user && !preferences[SCPreferences.ADDONS_CLOSED_COMMUNITY] && (_jsx(Button, { color: "inherit", component: Link, to: scRoutingContext.url(SCRoutes.SIGNUP_ROUTE_NAME, {}), className: classes.register, children: _jsx(FormattedMessage, { id: "ui.appBar.navigation.register", defaultMessage: "ui.appBar.navigation.register" }) })), preferences[SCPreferences.CONFIGURATIONS_CUSTOM_NAVBAR_ITEM_ENABLED] && (_jsx(_Fragment, { children: preferences[SCPreferences.CONFIGURATIONS_CUSTOM_NAVBAR_ITEM_TEXT] ? (_jsx(Tooltip, { title: preferences[SCPreferences.CONFIGURATIONS_CUSTOM_NAVBAR_ITEM_TEXT], children: _jsx(Link, { target: "blank", to: preferences[SCPreferences.CONFIGURATIONS_CUSTOM_NAVBAR_ITEM_URL], className: classes.customItem, children: _jsx("img", { src: preferences[SCPreferences.CONFIGURATIONS_CUSTOM_NAVBAR_ITEM_IMAGE], alt: "custom_item" }) }) })) : (_jsx(Link, { target: "blank", to: preferences[SCPreferences.CONFIGURATIONS_CUSTOM_NAVBAR_ITEM_URL], className: classes.customItem, children: _jsx("img", { src: preferences[SCPreferences.CONFIGURATIONS_CUSTOM_NAVBAR_ITEM_IMAGE], alt: "custom_item" }) })) })), _children, (preferences[SCPreferences.CONFIGURATIONS_CONTENT_AVAILABILITY] || scUserContext.user) && !disableSearch ? (_jsx(SearchAutocomplete, Object.assign({ className: classes.search, blurOnSelect: true }, SearchAutocompleteProps))) : (_jsx(Box, { className: classes.search })), startActions, scUserContext.user ? (_jsxs(_Fragment, { children: [showComposer && _jsx(ComposerIconButton, Object.assign({ className: classes.composer }, ComposerIconButtonProps)), _jsx(Tooltip, { title: scUserContext.user.username, children: _jsx(IconButton, { component: Link, to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, scUserContext.user), "aria-label": "Profile", className: classes.profile, children: _jsx(Avatar, { alt: scUserContext.user.username, src: scUserContext.user.avatar }) }) }), _jsxs(_Fragment, { children: [_jsx(IconButton, { className: classNames(classes.notification, {
149
149
  [classes.active]: value.startsWith(scRoutingContext.url(SCRoutes.USER_NOTIFICATIONS_ROUTE_NAME, {}))
150
- }), "aria-label": "Notification", onClick: handleOpenNotificationMenu }, { children: _jsx(Badge, Object.assign({ badgeContent: scUserContext.user.unseen_notification_banners_counter + scUserContext.user.unseen_interactions_counter, color: "secondary" }, { children: _jsx(Icon, { children: "notifications_active" }) })) })), _jsx(NotificationMenu, Object.assign({ className: classes.notificationsMenu, id: "notification-menu", anchorEl: anchorNotification, open: Boolean(anchorNotification), onClose: handleCloseNotificationMenu, onClick: handleCloseNotificationMenu, transformOrigin: { horizontal: 'right', vertical: 'top' }, anchorOrigin: { horizontal: 'right', vertical: 'bottom' } }, NotificationMenuProps))] }), privateMessagingEnabled && (_jsx(IconButton, Object.assign({ className: classNames(classes.messages, {
150
+ }), "aria-label": "Notification", onClick: handleOpenNotificationMenu, children: _jsx(Badge, { badgeContent: scUserContext.user.unseen_notification_banners_counter + scUserContext.user.unseen_interactions_counter, color: "secondary", children: _jsx(Icon, { children: "notifications_active" }) }) }), _jsx(NotificationMenu, Object.assign({ className: classes.notificationsMenu, id: "notification-menu", anchorEl: anchorNotification, open: Boolean(anchorNotification), onClose: handleCloseNotificationMenu, onClick: handleCloseNotificationMenu, transformOrigin: { horizontal: 'right', vertical: 'top' }, anchorOrigin: { horizontal: 'right', vertical: 'bottom' } }, NotificationMenuProps))] }), privateMessagingEnabled && (_jsx(IconButton, { className: classNames(classes.messages, {
151
151
  [classes.active]: value.startsWith(scRoutingContext.url(SCRoutes.USER_PRIVATE_MESSAGES_ROUTE_NAME, {}))
152
- }), "aria-label": "Messages", to: scRoutingContext.url(SCRoutes.USER_PRIVATE_MESSAGES_ROUTE_NAME, {}), component: Link }, { children: _jsx(Badge, Object.assign({ badgeContent: 0, color: "secondary" }, { children: _jsx(Icon, { children: "email" }) })) }))), endActions, _jsx(NavigationSettingsIconButtonComponent, { className: classes.settings })] })) : (_jsxs(_Fragment, { children: [endActions, _jsx(Button, Object.assign({ color: "inherit", component: Link, to: scRoutingContext.url(SCRoutes.SIGNIN_ROUTE_NAME, {}) }, { children: _jsx(FormattedMessage, { id: "ui.appBar.navigation.login", defaultMessage: "ui.appBar.navigation.login" }) }))] }))] })));
152
+ }), "aria-label": "Messages", to: scRoutingContext.url(SCRoutes.USER_PRIVATE_MESSAGES_ROUTE_NAME, {}), component: Link, children: _jsx(Badge, { badgeContent: 0, color: "secondary", children: _jsx(Icon, { children: "email" }) }) })), endActions, _jsx(NavigationSettingsIconButtonComponent, { className: classes.settings })] })) : (_jsxs(_Fragment, { children: [endActions, _jsx(Button, { color: "inherit", component: Link, to: scRoutingContext.url(SCRoutes.SIGNIN_ROUTE_NAME, {}), children: _jsx(FormattedMessage, { id: "ui.appBar.navigation.login", defaultMessage: "ui.appBar.navigation.login" }) })] }))] })));
153
153
  }
@@ -28,5 +28,5 @@ export default function NotificationMenu(inProps) {
28
28
  return (
29
29
  // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
30
30
  // @ts-ignore
31
- _jsxs(Root, Object.assign({ className: classes.root, PaperProps: PaperProps, MenuListProps: MenuListProps }, rest, { children: [_jsx(SnippetNotifications, Object.assign({ className: classes.notifications }, SnippetNotificationsProps)), _jsx(Button, Object.assign({ className: classes.link, component: Link, to: scRoutingContext.url(SCRoutes.USER_NOTIFICATIONS_ROUTE_NAME, {}), variant: "text" }, { children: _jsx(FormattedMessage, { id: "ui.header.notifications.button.seeMore", defaultMessage: "ui.header.notifications.button.seeMore" }) }))] })));
31
+ _jsxs(Root, Object.assign({ className: classes.root, PaperProps: PaperProps, MenuListProps: MenuListProps }, rest, { children: [_jsx(SnippetNotifications, Object.assign({ className: classes.notifications }, SnippetNotificationsProps)), _jsx(Button, { className: classes.link, component: Link, to: scRoutingContext.url(SCRoutes.USER_NOTIFICATIONS_ROUTE_NAME, {}), variant: "text", children: _jsx(FormattedMessage, { id: "ui.header.notifications.button.seeMore", defaultMessage: "ui.header.notifications.button.seeMore" }) })] })));
32
32
  }
@@ -37,5 +37,5 @@ const Root = styled(Toolbar, {
37
37
  *
38
38
  */
39
39
  export default function NavigationToolbarSkeleton() {
40
- return (_jsxs(Root, Object.assign({ className: classes.root }, { children: [_jsx(Skeleton, { className: classes.logo, animation: "wave", variant: "rectangular" }), _jsx(Skeleton, { className: classes.navigation, animation: "wave", variant: "rectangular" }), _jsx(Skeleton, { className: classes.avatar, animation: "wave", variant: "rounded" })] })));
40
+ return (_jsxs(Root, { className: classes.root, children: [_jsx(Skeleton, { className: classes.logo, animation: "wave", variant: "rectangular" }), _jsx(Skeleton, { className: classes.navigation, animation: "wave", variant: "rectangular" }), _jsx(Skeleton, { className: classes.avatar, animation: "wave", variant: "rounded" })] }));
41
41
  }
@@ -103,12 +103,12 @@ export default function NavigationToolbarMobile(inProps) {
103
103
  if (scUserContext.loading) {
104
104
  return _jsx(NavigationToolbarMobileSkeleton, {});
105
105
  }
106
- const _children = children || (_jsxs(_Fragment, { children: [_jsx(NavigationMenuIconButtonComponent, {}), _jsx(Link, Object.assign({ to: scRoutingContext.url(SCRoutes.HOME_ROUTE_NAME, {}), className: classNames(className, classes.logo, {
106
+ const _children = children || (_jsxs(_Fragment, { children: [_jsx(NavigationMenuIconButtonComponent, {}), _jsx(Link, { to: scRoutingContext.url(SCRoutes.HOME_ROUTE_NAME, {}), className: classNames(className, classes.logo, {
107
107
  [classes.logoFlex]: preferences[SCPreferences.CONFIGURATIONS_CUSTOM_NAVBAR_ITEM_URL].value
108
- }) }, { children: !preserveDesktopLogo ? (_jsx("img", { src: preferences[SCPreferences.LOGO_NAVBAR_LOGO_MOBILE].value, alt: "logo" })) : (_jsx("img", { src: preferences[SCPreferences.LOGO_NAVBAR_LOGO].value, alt: "logo" })) })), preferences[SCPreferences.CONFIGURATIONS_CUSTOM_NAVBAR_ITEM_ENABLED].value && (_jsx(Link, Object.assign({ target: "blank", to: preferences[SCPreferences.CONFIGURATIONS_CUSTOM_NAVBAR_ITEM_URL].value, className: classes.customItem }, { children: _jsx("img", { src: preferences[SCPreferences.CONFIGURATIONS_CUSTOM_NAVBAR_ITEM_IMAGE].value, alt: "custom_item" }) })))] }));
109
- return (_jsxs(Root, Object.assign({ className: classNames(className, classes.root) }, rest, { children: [_children, startActions, (contentAvailable || scUserContext.user) && !disableSearch && (_jsxs(_Fragment, { children: [_jsx(IconButton, Object.assign({ className: classes.search, onClick: handleOpenSearch }, { children: _jsx(Icon, { children: "search" }) })), _jsx(SearchDialog, { className: classes.searchDialog, fullScreen: true, open: searchOpen, SearchAutocompleteProps: Object.assign(Object.assign({}, SearchAutocompleteProps), { onClear: handleCloseSearch }) })] })), endActions, (!postOnlyStaffEnabled || (UserUtils.isStaff(scUserContext.user) && postOnlyStaffEnabled)) &&
108
+ }), children: !preserveDesktopLogo ? (_jsx("img", { src: preferences[SCPreferences.LOGO_NAVBAR_LOGO_MOBILE].value, alt: "logo" })) : (_jsx("img", { src: preferences[SCPreferences.LOGO_NAVBAR_LOGO].value, alt: "logo" })) }), preferences[SCPreferences.CONFIGURATIONS_CUSTOM_NAVBAR_ITEM_ENABLED].value && (_jsx(Link, { target: "blank", to: preferences[SCPreferences.CONFIGURATIONS_CUSTOM_NAVBAR_ITEM_URL].value, className: classes.customItem, children: _jsx("img", { src: preferences[SCPreferences.CONFIGURATIONS_CUSTOM_NAVBAR_ITEM_IMAGE].value, alt: "custom_item" }) }))] }));
109
+ return (_jsxs(Root, Object.assign({ className: classNames(className, classes.root) }, rest, { children: [_children, startActions, (contentAvailable || scUserContext.user) && !disableSearch && (_jsxs(_Fragment, { children: [_jsx(IconButton, { className: classes.search, onClick: handleOpenSearch, children: _jsx(Icon, { children: "search" }) }), _jsx(SearchDialog, { className: classes.searchDialog, fullScreen: true, open: searchOpen, SearchAutocompleteProps: Object.assign(Object.assign({}, SearchAutocompleteProps), { onClear: handleCloseSearch }) })] })), endActions, (!postOnlyStaffEnabled || (UserUtils.isStaff(scUserContext.user) && postOnlyStaffEnabled)) &&
110
110
  groupsEnabled &&
111
111
  eventsEnabled &&
112
112
  (scUserContext.user || contentAvailable) &&
113
- exploreStreamEnabled && _jsx(ComposerIconButton, {}), scUserContext.user && (groupsEnabled || eventsEnabled) && (_jsx(IconButton, Object.assign({ className: classes.notifications, component: Link, to: scRoutingContext.url(SCRoutes.USER_NOTIFICATIONS_ROUTE_NAME, {}) }, { children: _jsx(Badge, Object.assign({ badgeContent: scUserContext.user.unseen_notification_banners_counter + scUserContext.user.unseen_interactions_counter, color: "secondary" }, { children: _jsx(Icon, { children: "notifications_active" }) })) }))), scUserContext.user ? (_jsx(NavigationSettingsIconButtonComponent, { className: classes.settings })) : (_jsx(Button, Object.assign({ className: classes.login, color: "inherit", component: Link, to: scRoutingContext.url(SCRoutes.SIGNIN_ROUTE_NAME, {}) }, { children: _jsx(FormattedMessage, { id: "ui.appBar.navigation.login", defaultMessage: "ui.appBar.navigation.login" }) })))] })));
113
+ exploreStreamEnabled && _jsx(ComposerIconButton, {}), scUserContext.user && (groupsEnabled || eventsEnabled) && (_jsx(IconButton, { className: classes.notifications, component: Link, to: scRoutingContext.url(SCRoutes.USER_NOTIFICATIONS_ROUTE_NAME, {}), children: _jsx(Badge, { badgeContent: scUserContext.user.unseen_notification_banners_counter + scUserContext.user.unseen_interactions_counter, color: "secondary", children: _jsx(Icon, { children: "notifications_active" }) }) })), scUserContext.user ? (_jsx(NavigationSettingsIconButtonComponent, { className: classes.settings })) : (_jsx(Button, { className: classes.login, color: "inherit", component: Link, to: scRoutingContext.url(SCRoutes.SIGNIN_ROUTE_NAME, {}), children: _jsx(FormattedMessage, { id: "ui.appBar.navigation.login", defaultMessage: "ui.appBar.navigation.login" }) }))] })));
114
114
  }
@@ -33,5 +33,5 @@ const Root = styled(Toolbar, {
33
33
  *
34
34
  */
35
35
  export default function NavigationToolbarMobileSkeleton() {
36
- return (_jsx(Root, Object.assign({ className: classes.root }, { children: _jsx(Skeleton, { className: classes.logo, animation: "wave", variant: "rectangular" }) })));
36
+ return (_jsx(Root, { className: classes.root, children: _jsx(Skeleton, { className: classes.logo, animation: "wave", variant: "rectangular" }) }));
37
37
  }
@@ -65,5 +65,5 @@ export default function CollapsedForNotification(props) {
65
65
  /**
66
66
  * Renders root object
67
67
  */
68
- return (_jsx(Root, Object.assign({ id: id, className: classNames(classes.root, className, `${PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: _jsx(Avatar, Object.assign({ variant: "circular", classes: { root: classes.flagIcon } }, { children: _jsx(Icon, { children: "outlined_flag" }) })), primary: _jsx(_Fragment, { children: isSnippetTemplate ? (_jsx(Link, Object.assign({ to: scRoutingContext.url(SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], getRouteData(notificationObject[contributionType])) }, { children: _jsx(Typography, Object.assign({ component: "div", color: "inherit", className: classes.flagText }, { children: _jsx(FormattedMessage, { id: `ui.notification.collapsedFor.${camelCase(notificationObject.type)}Snippet`, defaultMessage: `ui.notification.collapsedFor.${camelCase(notificationObject.type)}Snippet` }) })) }))) : (_jsx(Typography, Object.assign({ component: "div", color: "inherit", className: classes.flagText }, { children: intl.formatMessage(messages[camelCase(notificationObject.type)], { b: (...chunks) => _jsx("strong", { children: chunks }) }) }))) }), secondary: (template === SCNotificationObjectTemplateType.DETAIL || template === SCNotificationObjectTemplateType.SNIPPET) && (_jsx(DateTimeAgo, { date: notificationObject.active_at, className: classes.activeAt })), footer: isSnippetTemplate ? null : (_jsxs(_Fragment, { children: [_jsxs(Box, Object.assign({ className: classes.contributionWrap }, { children: [_jsx(Typography, Object.assign({ variant: 'body2', color: 'inherit', component: 'div', classes: { root: classes.contributionYouWroteLabel } }, { children: _jsx(FormattedMessage, { id: "ui.notification.collapsedFor.youWrote", defaultMessage: "ui.notification.collapsedFor.youWrote" }) })), _jsx(Link, Object.assign({ to: scRoutingContext.url(SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], getRouteData(notificationObject[contributionType])), className: classes.contributionText }, { children: _jsx(Typography, Object.assign({ component: 'span', variant: "body2", gutterBottom: true }, { children: getContributionSnippet(notificationObject[contributionType]) })) }))] })), template === SCNotificationObjectTemplateType.TOAST && (_jsxs(Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: [_jsx(DateTimeAgo, { date: notificationObject.active_at }), _jsx(Typography, Object.assign({ color: "primary", component: 'div' }, { children: _jsx(Link, Object.assign({ to: scRoutingContext.url(SCRoutes[`${notificationObject[contributionType]['type'].toUpperCase()}_ROUTE_NAME`], getRouteData(notificationObject[contributionType])) }, { children: _jsx(FormattedMessage, { id: "ui.userToastNotifications.viewContribution", defaultMessage: 'ui.userToastNotifications.viewContribution' }) })) }))] })))] })) }, rest)));
68
+ return (_jsx(Root, Object.assign({ id: id, className: classNames(classes.root, className, `${PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: _jsx(Avatar, { variant: "circular", classes: { root: classes.flagIcon }, children: _jsx(Icon, { children: "outlined_flag" }) }), primary: _jsx(_Fragment, { children: isSnippetTemplate ? (_jsx(Link, { to: scRoutingContext.url(SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], getRouteData(notificationObject[contributionType])), children: _jsx(Typography, { component: "div", color: "inherit", className: classes.flagText, children: _jsx(FormattedMessage, { id: `ui.notification.collapsedFor.${camelCase(notificationObject.type)}Snippet`, defaultMessage: `ui.notification.collapsedFor.${camelCase(notificationObject.type)}Snippet` }) }) })) : (_jsx(Typography, { component: "div", color: "inherit", className: classes.flagText, children: intl.formatMessage(messages[camelCase(notificationObject.type)], { b: (...chunks) => _jsx("strong", { children: chunks }) }) })) }), secondary: (template === SCNotificationObjectTemplateType.DETAIL || template === SCNotificationObjectTemplateType.SNIPPET) && (_jsx(DateTimeAgo, { date: notificationObject.active_at, className: classes.activeAt })), footer: isSnippetTemplate ? null : (_jsxs(_Fragment, { children: [_jsxs(Box, { className: classes.contributionWrap, children: [_jsx(Typography, { variant: 'body2', color: 'inherit', component: 'div', classes: { root: classes.contributionYouWroteLabel }, children: _jsx(FormattedMessage, { id: "ui.notification.collapsedFor.youWrote", defaultMessage: "ui.notification.collapsedFor.youWrote" }) }), _jsx(Link, { to: scRoutingContext.url(SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], getRouteData(notificationObject[contributionType])), className: classes.contributionText, children: _jsx(Typography, { component: 'span', variant: "body2", gutterBottom: true, children: getContributionSnippet(notificationObject[contributionType]) }) })] }), template === SCNotificationObjectTemplateType.TOAST && (_jsxs(Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2, children: [_jsx(DateTimeAgo, { date: notificationObject.active_at }), _jsx(Typography, { color: "primary", component: 'div', children: _jsx(Link, { to: scRoutingContext.url(SCRoutes[`${notificationObject[contributionType]['type'].toUpperCase()}_ROUTE_NAME`], getRouteData(notificationObject[contributionType])), children: _jsx(FormattedMessage, { id: "ui.userToastNotifications.viewContribution", defaultMessage: 'ui.userToastNotifications.viewContribution' }) }) })] }))] })) }, rest)));
69
69
  }
@@ -62,13 +62,13 @@ export default function CommentNotification(props) {
62
62
  */
63
63
  return (_jsxs(_Fragment, { children: [_jsx(Root, Object.assign({ id: id, className: classNames(classes.root, className, `${PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: _jsx(Link, Object.assign({}, (!notificationObject.comment.author.deleted && {
64
64
  to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.comment.author)
65
- }), { onClick: notificationObject.comment.author.deleted ? () => setOpenAlert(true) : null }, { children: _jsx(UserAvatar, Object.assign({ hide: !notificationObject.comment.author.community_badge, smaller: true }, { children: _jsx(Avatar, { alt: notificationObject.comment.author.username, variant: "circular", src: notificationObject.comment.author.avatar, classes: { root: classes.avatar } }) })) })), primary: _jsxs(_Fragment, { children: [_jsx(Link, Object.assign({}, (!notificationObject.comment.author.deleted && {
65
+ }), { onClick: notificationObject.comment.author.deleted ? () => setOpenAlert(true) : null, children: _jsx(UserAvatar, { hide: !notificationObject.comment.author.community_badge, smaller: true, children: _jsx(Avatar, { alt: notificationObject.comment.author.username, variant: "circular", src: notificationObject.comment.author.avatar, classes: { root: classes.avatar } }) }) })), primary: _jsxs(_Fragment, { children: [_jsx(Link, Object.assign({}, (!notificationObject.comment.author.deleted && {
66
66
  to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.comment.author)
67
- }), { onClick: notificationObject.comment.author.deleted ? () => setOpenAlert(true) : null, className: classes.username }, { children: notificationObject.comment.author.username })), ' ', notificationObject.type === SCNotificationTypologyType.NESTED_COMMENT
67
+ }), { onClick: notificationObject.comment.author.deleted ? () => setOpenAlert(true) : null, className: classes.username, children: notificationObject.comment.author.username })), ' ', notificationObject.type === SCNotificationTypologyType.NESTED_COMMENT
68
68
  ? intl.formatMessage(messages.comment, {
69
69
  b: (...chunks) => _jsx("strong", { children: chunks })
70
70
  })
71
71
  : intl.formatMessage(messages.nestedComment, {
72
72
  b: (...chunks) => _jsx("strong", { children: chunks })
73
- })] }), secondary: _jsxs(React.Fragment, { children: [_jsx(Link, Object.assign({ to: scRoutingContext.url(SCRoutes.COMMENT_ROUTE_NAME, getRouteData(notificationObject.comment)) }, { children: _jsx(Typography, Object.assign({ variant: "body2", className: classes.contributionText }, { children: getContributionSnippet(notificationObject.comment) })) })), (template === SCNotificationObjectTemplateType.DETAIL || template === SCNotificationObjectTemplateType.SNIPPET) && (_jsxs(Stack, Object.assign({ direction: "row", justifyContent: "flex-start", alignItems: "center", spacing: 1 }, { children: [_jsx(DateTimeAgo, { date: notificationObject.active_at, className: classes.activeAt }), _jsx(Bullet, { className: classes.bullet }), _jsx(VoteButton, { className: classes.voteButton, variant: "text", size: "small", contributionId: notificationObject.comment.id, contributionType: SCContributionType.COMMENT, contribution: notificationObject.comment, onVote: handleVote })] })))] }), footer: template === SCNotificationObjectTemplateType.TOAST && (_jsxs(Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: [_jsx(DateTimeAgo, { date: notificationObject.active_at }), _jsx(Typography, Object.assign({ color: "primary", component: 'div' }, { children: _jsx(Link, Object.assign({ to: scRoutingContext.url(SCRoutes.COMMENT_ROUTE_NAME, getRouteData(notificationObject.comment)) }, { children: _jsx(FormattedMessage, { id: "ui.userToastNotifications.viewContribution", defaultMessage: 'ui.userToastNotifications.viewContribution' }) })) }))] }))) }, rest)), openAlert && _jsx(UserDeletedSnackBar, { open: openAlert, handleClose: () => setOpenAlert(false) })] }));
73
+ })] }), secondary: _jsxs(React.Fragment, { children: [_jsx(Link, { to: scRoutingContext.url(SCRoutes.COMMENT_ROUTE_NAME, getRouteData(notificationObject.comment)), children: _jsx(Typography, { variant: "body2", className: classes.contributionText, children: getContributionSnippet(notificationObject.comment) }) }), (template === SCNotificationObjectTemplateType.DETAIL || template === SCNotificationObjectTemplateType.SNIPPET) && (_jsxs(Stack, { direction: "row", justifyContent: "flex-start", alignItems: "center", spacing: 1, children: [_jsx(DateTimeAgo, { date: notificationObject.active_at, className: classes.activeAt }), _jsx(Bullet, { className: classes.bullet }), _jsx(VoteButton, { className: classes.voteButton, variant: "text", size: "small", contributionId: notificationObject.comment.id, contributionType: SCContributionType.COMMENT, contribution: notificationObject.comment, onVote: handleVote })] }))] }), footer: template === SCNotificationObjectTemplateType.TOAST && (_jsxs(Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2, children: [_jsx(DateTimeAgo, { date: notificationObject.active_at }), _jsx(Typography, { color: "primary", component: 'div', children: _jsx(Link, { to: scRoutingContext.url(SCRoutes.COMMENT_ROUTE_NAME, getRouteData(notificationObject.comment)), children: _jsx(FormattedMessage, { id: "ui.userToastNotifications.viewContribution", defaultMessage: 'ui.userToastNotifications.viewContribution' }) }) })] })) }, rest)), openAlert && _jsx(UserDeletedSnackBar, { open: openAlert, handleClose: () => setOpenAlert(false) })] }));
74
74
  }
@@ -72,13 +72,13 @@ export default function ContributionNotification(props) {
72
72
  */
73
73
  return (_jsxs(_Fragment, { children: [_jsx(Root, Object.assign({ id: id, className: classNames(classes.root, className, `${PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: _jsx(Link, Object.assign({}, (!notificationObject[contributionType].author.deleted && {
74
74
  to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject[contributionType].author)
75
- }), { onClick: notificationObject[contributionType].author.deleted ? () => setOpenAlert(true) : null }, { children: _jsx(UserAvatar, Object.assign({ hide: !notificationObject[contributionType].author.community_badge, smaller: true }, { children: _jsx(Avatar, { alt: notificationObject[contributionType].author.username, variant: "circular", src: notificationObject[contributionType].author.avatar, classes: { root: classes.avatar } }) })) })), primary: _jsxs(_Fragment, { children: [_jsx(Link, Object.assign({}, (!notificationObject[contributionType].author.deleted && {
75
+ }), { onClick: notificationObject[contributionType].author.deleted ? () => setOpenAlert(true) : null, children: _jsx(UserAvatar, { hide: !notificationObject[contributionType].author.community_badge, smaller: true, children: _jsx(Avatar, { alt: notificationObject[contributionType].author.username, variant: "circular", src: notificationObject[contributionType].author.avatar, classes: { root: classes.avatar } }) }) })), primary: _jsxs(_Fragment, { children: [_jsx(Link, Object.assign({}, (!notificationObject[contributionType].author.deleted && {
76
76
  to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject[contributionType].author)
77
- }), { onClick: notificationObject[contributionType].author.deleted ? () => setOpenAlert(true) : null, className: classes.username }, { children: notificationObject[contributionType].author.username })), ' ', template === SCNotificationObjectTemplateType.SNIPPET ? (_jsx(_Fragment, { children: notificationObject[contributionType]['type'] === SCContributionType.POST ||
77
+ }), { onClick: notificationObject[contributionType].author.deleted ? () => setOpenAlert(true) : null, className: classes.username, children: notificationObject[contributionType].author.username })), ' ', template === SCNotificationObjectTemplateType.SNIPPET ? (_jsx(_Fragment, { children: notificationObject[contributionType]['type'] === SCContributionType.POST ||
78
78
  notificationObject[contributionType]['type'] === SCContributionType.STATUS
79
79
  ? intl.formatMessage(messages.postOrStatusSnippet, { contribution: notificationObject[contributionType]['type'] })
80
80
  : intl.formatMessage(messages.discussionSnippet) })) : (_jsx(_Fragment, { children: notificationObject[contributionType]['type'] === SCContributionType.POST ||
81
81
  notificationObject[contributionType]['type'] === SCContributionType.STATUS
82
82
  ? intl.formatMessage(messages.postOrStatus, { contribution: notificationObject[contributionType]['type'] })
83
- : intl.formatMessage(messages.discussion) }))] }), secondary: _jsxs(React.Fragment, { children: [template === SCNotificationObjectTemplateType.SNIPPET && (_jsx(Link, Object.assign({ to: scRoutingContext.url(SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], getRouteData(notificationObject[contributionType])) }, { children: _jsx(Typography, Object.assign({ variant: "body2", className: classes.contributionText, component: 'div' }, { children: getContributionSnippet(notificationObject[contributionType]) })) }))), template === SCNotificationObjectTemplateType.DETAIL && (_jsxs(Stack, Object.assign({ direction: "row", justifyContent: "flex-start", alignItems: "center", spacing: 1 }, { children: [_jsx(DateTimeAgo, { date: notificationObject.active_at, className: classes.activeAt }), _jsx(Bullet, { className: classes.bullet }), _jsx(VoteButton, { className: classes.voteButton, variant: "text", size: "small", contributionId: notificationObject[contributionType].id, contributionType: contributionType, contribution: notificationObject[contributionType], onVote: handleVote })] }))), template === SCNotificationObjectTemplateType.SNIPPET && (_jsx(DateTimeAgo, { date: notificationObject.active_at, className: classes.activeAt }))] }), footer: template === SCNotificationObjectTemplateType.TOAST && (_jsxs(Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: [_jsx(DateTimeAgo, { date: notificationObject.active_at }), _jsx(Typography, Object.assign({ color: "primary", component: 'div' }, { children: _jsx(Link, Object.assign({ to: scRoutingContext.url(SCRoutes[`${notificationObject[contributionType]['type'].toUpperCase()}_ROUTE_NAME`], getRouteData(notificationObject[contributionType])) }, { children: _jsx(FormattedMessage, { id: "ui.userToastNotifications.viewContribution", defaultMessage: 'ui.userToastNotifications.viewContribution' }) })) }))] }))) }, rest)), openAlert && _jsx(UserDeletedSnackBar, { open: openAlert, handleClose: () => setOpenAlert(false) })] }));
83
+ : intl.formatMessage(messages.discussion) }))] }), secondary: _jsxs(React.Fragment, { children: [template === SCNotificationObjectTemplateType.SNIPPET && (_jsx(Link, { to: scRoutingContext.url(SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], getRouteData(notificationObject[contributionType])), children: _jsx(Typography, { variant: "body2", className: classes.contributionText, component: 'div', children: getContributionSnippet(notificationObject[contributionType]) }) })), template === SCNotificationObjectTemplateType.DETAIL && (_jsxs(Stack, { direction: "row", justifyContent: "flex-start", alignItems: "center", spacing: 1, children: [_jsx(DateTimeAgo, { date: notificationObject.active_at, className: classes.activeAt }), _jsx(Bullet, { className: classes.bullet }), _jsx(VoteButton, { className: classes.voteButton, variant: "text", size: "small", contributionId: notificationObject[contributionType].id, contributionType: contributionType, contribution: notificationObject[contributionType], onVote: handleVote })] })), template === SCNotificationObjectTemplateType.SNIPPET && (_jsx(DateTimeAgo, { date: notificationObject.active_at, className: classes.activeAt }))] }), footer: template === SCNotificationObjectTemplateType.TOAST && (_jsxs(Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2, children: [_jsx(DateTimeAgo, { date: notificationObject.active_at }), _jsx(Typography, { color: "primary", component: 'div', children: _jsx(Link, { to: scRoutingContext.url(SCRoutes[`${notificationObject[contributionType]['type'].toUpperCase()}_ROUTE_NAME`], getRouteData(notificationObject[contributionType])), children: _jsx(FormattedMessage, { id: "ui.userToastNotifications.viewContribution", defaultMessage: 'ui.userToastNotifications.viewContribution' }) }) })] })) }, rest)), openAlert && _jsx(UserDeletedSnackBar, { open: openAlert, handleClose: () => setOpenAlert(false) })] }));
84
84
  }
@@ -50,7 +50,7 @@ export default function ContributionFollowNotification(props) {
50
50
  /**
51
51
  * Renders root object
52
52
  */
53
- return (_jsxs(_Fragment, { children: [_jsx(Root, Object.assign({ id: id, className: classNames(classes.root, className, `${PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: _jsx(Link, Object.assign({}, (!notificationObject.user.deleted && { to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.user) }), { onClick: notificationObject.user.deleted ? () => setOpenAlert(true) : null }, { children: _jsx(UserAvatar, Object.assign({ hide: !notificationObject.user.community_badge, smaller: true }, { children: _jsx(Avatar, { alt: notificationObject.user.username, variant: "circular", src: notificationObject.user.avatar, classes: { root: classes.avatar } }) })) })), primary: _jsxs(Typography, Object.assign({ component: "span", color: "inherit", className: classes.followText }, { children: [_jsx(Link, Object.assign({}, (!notificationObject.user.deleted && { to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.user) }), { onClick: notificationObject.user.deleted ? () => setOpenAlert(true) : null, className: classes.username }, { children: notificationObject.user.username })), ' ', intl.formatMessage(messages.contributionFollow, {
53
+ return (_jsxs(_Fragment, { children: [_jsx(Root, Object.assign({ id: id, className: classNames(classes.root, className, `${PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: _jsx(Link, Object.assign({}, (!notificationObject.user.deleted && { to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.user) }), { onClick: notificationObject.user.deleted ? () => setOpenAlert(true) : null, children: _jsx(UserAvatar, { hide: !notificationObject.user.community_badge, smaller: true, children: _jsx(Avatar, { alt: notificationObject.user.username, variant: "circular", src: notificationObject.user.avatar, classes: { root: classes.avatar } }) }) })), primary: _jsxs(Typography, { component: "span", color: "inherit", className: classes.followText, children: [_jsx(Link, Object.assign({}, (!notificationObject.user.deleted && { to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.user) }), { onClick: notificationObject.user.deleted ? () => setOpenAlert(true) : null, className: classes.username, children: notificationObject.user.username })), ' ', intl.formatMessage(messages.contributionFollow, {
54
54
  b: (...chunks) => _jsx("strong", { children: chunks })
55
- })] })), secondary: _jsxs(React.Fragment, { children: [template === SCNotificationObjectTemplateType.SNIPPET && (_jsx(_Fragment, { children: _jsx(Link, Object.assign({ to: scRoutingContext.url(SCRoutes[`${notificationObject[contributionType]['type'].toUpperCase()}_ROUTE_NAME`], getRouteData(notificationObject[contributionType])) }, { children: _jsx(Typography, Object.assign({ variant: "body2", className: classes.contributionText }, { children: getContributionSnippet(notificationObject[contributionType]) })) })) })), (template === SCNotificationObjectTemplateType.DETAIL || template === SCNotificationObjectTemplateType.SNIPPET) && (_jsx("div", { children: _jsx(DateTimeAgo, { date: notificationObject.active_at, className: classes.activeAt }) }))] }), footer: template === SCNotificationObjectTemplateType.TOAST && (_jsxs(Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: [_jsx(DateTimeAgo, { date: notificationObject.active_at }), _jsx(Typography, Object.assign({ color: "primary", component: 'div' }, { children: _jsx(Link, Object.assign({ to: scRoutingContext.url(SCRoutes[`${notificationObject[contributionType]['type'].toUpperCase()}_ROUTE_NAME`], getRouteData(notificationObject[contributionType])) }, { children: _jsx(FormattedMessage, { id: "ui.userToastNotifications.viewContribution", defaultMessage: 'ui.userToastNotifications.viewContribution' }) })) }))] }))) }, rest)), openAlert && _jsx(UserDeletedSnackBar, { open: openAlert, handleClose: () => setOpenAlert(false) })] }));
55
+ })] }), secondary: _jsxs(React.Fragment, { children: [template === SCNotificationObjectTemplateType.SNIPPET && (_jsx(_Fragment, { children: _jsx(Link, { to: scRoutingContext.url(SCRoutes[`${notificationObject[contributionType]['type'].toUpperCase()}_ROUTE_NAME`], getRouteData(notificationObject[contributionType])), children: _jsx(Typography, { variant: "body2", className: classes.contributionText, children: getContributionSnippet(notificationObject[contributionType]) }) }) })), (template === SCNotificationObjectTemplateType.DETAIL || template === SCNotificationObjectTemplateType.SNIPPET) && (_jsx("div", { children: _jsx(DateTimeAgo, { date: notificationObject.active_at, className: classes.activeAt }) }))] }), footer: template === SCNotificationObjectTemplateType.TOAST && (_jsxs(Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2, children: [_jsx(DateTimeAgo, { date: notificationObject.active_at }), _jsx(Typography, { color: "primary", component: 'div', children: _jsx(Link, { to: scRoutingContext.url(SCRoutes[`${notificationObject[contributionType]['type'].toUpperCase()}_ROUTE_NAME`], getRouteData(notificationObject[contributionType])), children: _jsx(FormattedMessage, { id: "ui.userToastNotifications.viewContribution", defaultMessage: 'ui.userToastNotifications.viewContribution' }) }) })] })) }, rest)), openAlert && _jsx(UserDeletedSnackBar, { open: openAlert, handleClose: () => setOpenAlert(false) })] }));
56
56
  }
@@ -67,5 +67,5 @@ export default function DeletedForNotification(props) {
67
67
  /**
68
68
  * Renders root object
69
69
  */
70
- return (_jsx(Root, Object.assign({ id: id, className: classNames(classes.root, className, `${PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: _jsx(Avatar, Object.assign({ variant: "circular", classes: { root: classes.flagIcon } }, { children: _jsx(Icon, { children: "outlined_flag" }) })), primary: _jsx(_Fragment, { children: isSnippetTemplate ? (_jsx(Link, Object.assign({ to: scRoutingContext.url(SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], getRouteData(notificationObject[contributionType])) }, { children: _jsx(Typography, Object.assign({ component: "div", color: "inherit", className: classes.flagText }, { children: _jsx(FormattedMessage, { id: `ui.notification.deletedFor.${camelCase(notificationObject.type)}Snippet`, defaultMessage: `ui.notification.deletedFor.${camelCase(notificationObject.type)}Snippet` }) })) }))) : (_jsxs(_Fragment, { children: [template === SCNotificationObjectTemplateType.DETAIL && notificationObject.is_new && _jsx(NewChip, {}), _jsx(Typography, Object.assign({ component: "div", color: "inherit", className: classes.flagText }, { children: intl.formatMessage(messages[camelCase(notificationObject.type)], { b: (...chunks) => _jsx("strong", { children: chunks }) }) }))] })) }), secondary: (template === SCNotificationObjectTemplateType.DETAIL || template === SCNotificationObjectTemplateType.SNIPPET) && (_jsx(DateTimeAgo, { date: notificationObject.active_at, className: classes.activeAt })), footer: isSnippetTemplate ? null : (_jsxs(_Fragment, { children: [_jsxs(Box, Object.assign({ className: classes.contributionWrap }, { children: [_jsx(Typography, Object.assign({ variant: 'body2', color: 'inherit', classes: { root: classes.contributionYouWroteLabel } }, { children: _jsx(FormattedMessage, { id: "ui.notification.deletedFor.youWrote", defaultMessage: "ui.notification.deletedFor.youWrote" }) })), _jsx(Link, Object.assign({ to: scRoutingContext.url(SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], getRouteData(notificationObject[contributionType])), className: classes.contributionText }, { children: _jsx(Typography, Object.assign({ component: 'span', color: 'inherit', variant: "body2" }, { children: getContributionSnippet(notificationObject[contributionType]) })) }))] })), template === SCNotificationObjectTemplateType.TOAST && (_jsxs(Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: [_jsx(DateTimeAgo, { date: notificationObject.active_at }), _jsx(Typography, Object.assign({ color: "primary", component: 'div' }, { children: _jsx(Link, Object.assign({ to: scRoutingContext.url(SCRoutes[`${notificationObject[contributionType]['type'].toUpperCase()}_ROUTE_NAME`], getRouteData(notificationObject[contributionType])) }, { children: _jsx(FormattedMessage, { id: "ui.userToastNotifications.viewContribution", defaultMessage: 'ui.userToastNotifications.viewContribution' }) })) }))] })))] })) }, rest)));
70
+ return (_jsx(Root, Object.assign({ id: id, className: classNames(classes.root, className, `${PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: _jsx(Avatar, { variant: "circular", classes: { root: classes.flagIcon }, children: _jsx(Icon, { children: "outlined_flag" }) }), primary: _jsx(_Fragment, { children: isSnippetTemplate ? (_jsx(Link, { to: scRoutingContext.url(SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], getRouteData(notificationObject[contributionType])), children: _jsx(Typography, { component: "div", color: "inherit", className: classes.flagText, children: _jsx(FormattedMessage, { id: `ui.notification.deletedFor.${camelCase(notificationObject.type)}Snippet`, defaultMessage: `ui.notification.deletedFor.${camelCase(notificationObject.type)}Snippet` }) }) })) : (_jsxs(_Fragment, { children: [template === SCNotificationObjectTemplateType.DETAIL && notificationObject.is_new && _jsx(NewChip, {}), _jsx(Typography, { component: "div", color: "inherit", className: classes.flagText, children: intl.formatMessage(messages[camelCase(notificationObject.type)], { b: (...chunks) => _jsx("strong", { children: chunks }) }) })] })) }), secondary: (template === SCNotificationObjectTemplateType.DETAIL || template === SCNotificationObjectTemplateType.SNIPPET) && (_jsx(DateTimeAgo, { date: notificationObject.active_at, className: classes.activeAt })), footer: isSnippetTemplate ? null : (_jsxs(_Fragment, { children: [_jsxs(Box, { className: classes.contributionWrap, children: [_jsx(Typography, { variant: 'body2', color: 'inherit', classes: { root: classes.contributionYouWroteLabel }, children: _jsx(FormattedMessage, { id: "ui.notification.deletedFor.youWrote", defaultMessage: "ui.notification.deletedFor.youWrote" }) }), _jsx(Link, { to: scRoutingContext.url(SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], getRouteData(notificationObject[contributionType])), className: classes.contributionText, children: _jsx(Typography, { component: 'span', color: 'inherit', variant: "body2", children: getContributionSnippet(notificationObject[contributionType]) }) })] }), template === SCNotificationObjectTemplateType.TOAST && (_jsxs(Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2, children: [_jsx(DateTimeAgo, { date: notificationObject.active_at }), _jsx(Typography, { color: "primary", component: 'div', children: _jsx(Link, { to: scRoutingContext.url(SCRoutes[`${notificationObject[contributionType]['type'].toUpperCase()}_ROUTE_NAME`], getRouteData(notificationObject[contributionType])), children: _jsx(FormattedMessage, { id: "ui.userToastNotifications.viewContribution", defaultMessage: 'ui.userToastNotifications.viewContribution' }) }) })] }))] })) }, rest)));
71
71
  }
@@ -48,13 +48,15 @@ export default function EventNotification(props) {
48
48
  if (isSnippetTemplate || isToastTemplate) {
49
49
  return (_jsx(Root, Object.assign({ id: id, className: classNames(classes.root, className, `${PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: _jsx(Link, Object.assign({}, (!notificationObject.user.deleted && {
50
50
  to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.user)
51
- }), { onClick: notificationObject.user.deleted ? () => setOpenAlert(true) : null }, { children: _jsx(UserAvatar, Object.assign({ hide: !notificationObject.user.community_badge, smaller: true }, { children: _jsx(Avatar, { alt: notificationObject.user.username, variant: "circular", src: notificationObject.user.avatar, classes: { root: classes.avatar } }) })) })), primary: _jsxs(Box, { children: [_jsx(Link, Object.assign({}, (!notificationObject.user.deleted && {
51
+ }), { onClick: notificationObject.user.deleted ? () => setOpenAlert(true) : null, children: _jsx(UserAvatar, { hide: !notificationObject.user.community_badge, smaller: true, children: _jsx(Avatar, { alt: notificationObject.user.username, variant: "circular", src: notificationObject.user.avatar, classes: { root: classes.avatar } }) }) })), primary: _jsxs(Box, { children: [_jsx(Link, Object.assign({}, (!notificationObject.user.deleted && {
52
52
  to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.user)
53
- }), { onClick: notificationObject.user.deleted ? () => setOpenAlert(true) : null, className: classes.username }, { children: notificationObject.user.username })), ' ', _jsx(FormattedMessage, { id: `ui.notification.event.${notificationObject.type}`, defaultMessage: `ui.notification.event.${notificationObject.type}`, values: {
53
+ }), { onClick: notificationObject.user.deleted ? () => setOpenAlert(true) : null, className: classes.username, children: notificationObject.user.username })), ' ', _jsx(FormattedMessage, { id: `ui.notification.event.${notificationObject.type}`, defaultMessage: `ui.notification.event.${notificationObject.type}`, values: {
54
+ // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
55
+ // @ts-ignore
54
56
  icon: (...chunks) => _jsx(Icon, { children: chunks }),
55
57
  event: notificationObject.event.name,
56
- link: (...chunks) => _jsx(Link, Object.assign({ to: scRoutingContext.url(SCRoutes.EVENT_ROUTE_NAME, notificationObject.event) }, { children: chunks }))
57
- } })] }), secondary: _jsxs(_Fragment, { children: [_jsx(Typography, Object.assign({ component: "span" }, { children: _jsx(FormattedMessage, { id: "ui.notification.event.dateTime", defaultMessage: "ui.notification.event.dateTime", values: {
58
+ link: (...chunks) => _jsx(Link, { to: scRoutingContext.url(SCRoutes.EVENT_ROUTE_NAME, notificationObject.event), children: chunks })
59
+ } })] }), secondary: _jsxs(_Fragment, { children: [_jsx(Typography, { component: "span", children: _jsx(FormattedMessage, { id: "ui.notification.event.dateTime", defaultMessage: "ui.notification.event.dateTime", values: {
58
60
  date: intl.formatDate(notificationObject.event.start_date, {
59
61
  weekday: 'long',
60
62
  day: 'numeric',
@@ -62,15 +64,17 @@ export default function EventNotification(props) {
62
64
  month: 'long'
63
65
  }),
64
66
  hour: intl.formatDate(notificationObject.event.start_date, { hour: 'numeric', minute: 'numeric' })
65
- } }) })), _jsxs(Typography, Object.assign({ component: "p", variant: "body2" }, { children: [_jsx(FormattedMessage, { id: `ui.notification.event.privacy.${notificationObject.event.privacy}`, defaultMessage: `ui.notification.event.privacy.${notificationObject.event.privacy}` }), ' ', "-", ' ', notificationObject.event.location === SCEventLocationType.PERSON ? (_jsx(FormattedMessage, { id: `ui.notification.event.address.live.label`, defaultMessage: `ui.notification.event.address.live.label` })) : (_jsx(FormattedMessage, { id: `ui.notification.event.address.online.label`, defaultMessage: `ui.notification.event.address.online.label` }))] }))] }), footer: isToastTemplate ? (_jsxs(Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: [_jsx(DateTimeAgo, { date: notificationObject.active_at }), _jsx(Typography, Object.assign({ color: "primary" }, { children: _jsx(Link, Object.assign({ to: scRoutingContext.url(SCRoutes.EVENT_ROUTE_NAME, notificationObject.event) }, { children: _jsx(FormattedMessage, { id: "ui.notification.event.button.see", defaultMessage: "ui.notification.event.button.see" }) })) }))] }))) : (_jsx(DateTimeAgo, { date: notificationObject.active_at, className: classes.snippetTime })) }, rest)));
67
+ } }) }), _jsxs(Typography, { component: "p", variant: "body2", children: [_jsx(FormattedMessage, { id: `ui.notification.event.privacy.${notificationObject.event.privacy}`, defaultMessage: `ui.notification.event.privacy.${notificationObject.event.privacy}` }), ' ', "-", ' ', notificationObject.event.location === SCEventLocationType.PERSON ? (_jsx(FormattedMessage, { id: `ui.notification.event.address.live.label`, defaultMessage: `ui.notification.event.address.live.label` })) : (_jsx(FormattedMessage, { id: `ui.notification.event.address.online.label`, defaultMessage: `ui.notification.event.address.online.label` }))] })] }), footer: isToastTemplate ? (_jsxs(Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2, children: [_jsx(DateTimeAgo, { date: notificationObject.active_at }), _jsx(Typography, { color: "primary", children: _jsx(Link, { to: scRoutingContext.url(SCRoutes.EVENT_ROUTE_NAME, notificationObject.event), children: _jsx(FormattedMessage, { id: "ui.notification.event.button.see", defaultMessage: "ui.notification.event.button.see" }) }) })] })) : (_jsx(DateTimeAgo, { date: notificationObject.active_at, className: classes.snippetTime })) }, rest)));
66
68
  }
67
69
  return (_jsxs(_Fragment, { children: [_jsx(Root, Object.assign({ id: id, className: classNames(classes.root, className, `${PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: _jsx(Link, Object.assign({}, (!notificationObject.user.deleted && {
68
70
  to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.user)
69
- }), { onClick: notificationObject.user.deleted ? () => setOpenAlert(true) : null }, { children: _jsx(UserAvatar, Object.assign({ hide: !notificationObject.user.community_badge, smaller: true }, { children: _jsx(Avatar, { className: classes.avatar, alt: notificationObject.user.username, variant: "circular", src: notificationObject.user.avatar }) })) })), primary: _jsxs(_Fragment, { children: [_jsx(Link, Object.assign({}, (!notificationObject.user.deleted && {
71
+ }), { onClick: notificationObject.user.deleted ? () => setOpenAlert(true) : null, children: _jsx(UserAvatar, { hide: !notificationObject.user.community_badge, smaller: true, children: _jsx(Avatar, { className: classes.avatar, alt: notificationObject.user.username, variant: "circular", src: notificationObject.user.avatar }) }) })), primary: _jsxs(_Fragment, { children: [_jsx(Link, Object.assign({}, (!notificationObject.user.deleted && {
70
72
  to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.user)
71
- }), { onClick: notificationObject.user.deleted ? () => setOpenAlert(true) : null, className: classes.username }, { children: notificationObject.user.username })), ' ', _jsx(FormattedMessage, { id: `ui.notification.${notificationObject.type}`, defaultMessage: `ui.notification.${notificationObject.type}`, values: {
73
+ }), { onClick: notificationObject.user.deleted ? () => setOpenAlert(true) : null, className: classes.username, children: notificationObject.user.username })), ' ', _jsx(FormattedMessage, { id: `ui.notification.${notificationObject.type}`, defaultMessage: `ui.notification.${notificationObject.type}`, values: {
74
+ // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
75
+ // @ts-ignore
72
76
  icon: (...chunks) => _jsx(Icon, { children: chunks }),
73
77
  event: notificationObject.event.name,
74
- link: (...chunks) => _jsx(Link, Object.assign({ to: scRoutingContext.url(SCRoutes.EVENT_ROUTE_NAME, notificationObject.event) }, { children: chunks }))
75
- } }), _jsx(EventItem, { event: notificationObject.event, actions: _jsx(_Fragment, {}), elevation: 0 })] }), actions: _jsxs(Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: [_jsx(DateTimeAgo, { date: notificationObject.active_at, className: classes.activeAt }), _jsx(LoadingButton, Object.assign({ color: 'primary', variant: "outlined", size: "small", classes: { root: classes.seeButton }, component: Link, to: scRoutingContext.url(SCRoutes.EVENT_ROUTE_NAME, notificationObject.event) }, { children: _jsx(FormattedMessage, { id: "ui.notification.event.button.see", defaultMessage: "ui.notification.event.button.see" }) }))] })) }, rest)), openAlert && _jsx(UserDeletedSnackBar, { open: openAlert, handleClose: () => setOpenAlert(false) })] }));
78
+ link: (...chunks) => _jsx(Link, { to: scRoutingContext.url(SCRoutes.EVENT_ROUTE_NAME, notificationObject.event), children: chunks })
79
+ } }), _jsx(EventItem, { event: notificationObject.event, actions: _jsx(_Fragment, {}), elevation: 0 })] }), actions: _jsxs(Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2, children: [_jsx(DateTimeAgo, { date: notificationObject.active_at, className: classes.activeAt }), _jsx(LoadingButton, { color: 'primary', variant: "outlined", size: "small", classes: { root: classes.seeButton }, component: Link, to: scRoutingContext.url(SCRoutes.EVENT_ROUTE_NAME, notificationObject.event), children: _jsx(FormattedMessage, { id: "ui.notification.event.button.see", defaultMessage: "ui.notification.event.button.see" }) })] }) }, rest)), openAlert && _jsx(UserDeletedSnackBar, { open: openAlert, handleClose: () => setOpenAlert(false) })] }));
76
80
  }
@@ -51,21 +51,21 @@ export default function GroupNotification(props) {
51
51
  if (isSnippetTemplate || isToastTemplate) {
52
52
  return (_jsx(Root, Object.assign({ id: id, className: classNames(classes.root, className, `${PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: _jsx(Link, Object.assign({}, (!notificationObject.user.deleted && {
53
53
  to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.user)
54
- }), { onClick: notificationObject.user.deleted ? () => setOpenAlert(true) : null }, { children: _jsx(UserAvatar, Object.assign({ hide: !notificationObject.user.community_badge, smaller: true }, { children: _jsx(Avatar, { alt: notificationObject.user.username, variant: "circular", src: notificationObject.user.avatar, classes: { root: classes.avatar } }) })) })), primary: _jsxs(Box, { children: [_jsx(Link, Object.assign({}, (!notificationObject.user.deleted && {
54
+ }), { onClick: notificationObject.user.deleted ? () => setOpenAlert(true) : null, children: _jsx(UserAvatar, { hide: !notificationObject.user.community_badge, smaller: true, children: _jsx(Avatar, { alt: notificationObject.user.username, variant: "circular", src: notificationObject.user.avatar, classes: { root: classes.avatar } }) }) })), primary: _jsxs(Box, { children: [_jsx(Link, Object.assign({}, (!notificationObject.user.deleted && {
55
55
  to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.user)
56
- }), { onClick: notificationObject.user.deleted ? () => setOpenAlert(true) : null, className: classes.username }, { children: notificationObject.user.username })), ' ', _jsx(FormattedMessage, { id: `ui.notification.${notificationObject.type}`, defaultMessage: `ui.notification.${notificationObject.type}`, values: {
56
+ }), { onClick: notificationObject.user.deleted ? () => setOpenAlert(true) : null, className: classes.username, children: notificationObject.user.username })), ' ', _jsx(FormattedMessage, { id: `ui.notification.${notificationObject.type}`, defaultMessage: `ui.notification.${notificationObject.type}`, values: {
57
57
  group: notificationObject.group.name,
58
- link: (...chunks) => (_jsx(Link, Object.assign({ to: notificationObject.type === SCNotificationTypologyType.USER_REQUESTED_TO_JOIN_GROUP ||
58
+ link: (...chunks) => (_jsx(Link, { to: notificationObject.type === SCNotificationTypologyType.USER_REQUESTED_TO_JOIN_GROUP ||
59
59
  notificationObject.type === SCNotificationTypologyType.USER_ACCEPTED_TO_JOIN_GROUP
60
60
  ? scRoutingContext.url(SCRoutes.GROUP_MEMBERS_ROUTE_NAME, notificationObject.group)
61
- : scRoutingContext.url(SCRoutes.GROUP_ROUTE_NAME, notificationObject.group) }, { children: chunks })))
62
- } })] }), footer: isToastTemplate && (_jsxs(Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: [_jsx(DateTimeAgo, { date: notificationObject.active_at }), status && status !== SCGroupSubscriptionStatusType.SUBSCRIBED && (_jsx(Typography, Object.assign({ color: "primary" }, { children: _jsx(Link, Object.assign({ to: notificationObject.type === SCNotificationTypologyType.USER_REQUESTED_TO_JOIN_GROUP ||
61
+ : scRoutingContext.url(SCRoutes.GROUP_ROUTE_NAME, notificationObject.group), children: chunks }))
62
+ } })] }), footer: isToastTemplate && (_jsxs(Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2, children: [_jsx(DateTimeAgo, { date: notificationObject.active_at }), status && status !== SCGroupSubscriptionStatusType.SUBSCRIBED && (_jsx(Typography, { color: "primary", children: _jsx(Link, { to: notificationObject.type === SCNotificationTypologyType.USER_REQUESTED_TO_JOIN_GROUP ||
63
63
  notificationObject.type === SCNotificationTypologyType.USER_ACCEPTED_TO_JOIN_GROUP
64
64
  ? scRoutingContext.url(SCRoutes.GROUP_MEMBERS_ROUTE_NAME, notificationObject.group)
65
- : scRoutingContext.url(SCRoutes.GROUP_ROUTE_NAME, notificationObject.group) }, { children: _jsx(FormattedMessage, { id: "ui.notification.group.button.see", defaultMessage: "ui.notification.group.button.see" }) })) })))] }))) }, rest)));
65
+ : scRoutingContext.url(SCRoutes.GROUP_ROUTE_NAME, notificationObject.group), children: _jsx(FormattedMessage, { id: "ui.notification.group.button.see", defaultMessage: "ui.notification.group.button.see" }) }) }))] })) }, rest)));
66
66
  }
67
- return (_jsxs(_Fragment, { children: [_jsx(Root, Object.assign({ id: id, className: classNames(classes.root, className, `${PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, actions: _jsxs(Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: [_jsx(DateTimeAgo, { date: notificationObject.active_at, className: classes.activeAt }), status && status !== SCGroupSubscriptionStatusType.SUBSCRIBED && (_jsx(LoadingButton, Object.assign({ color: 'primary', variant: "outlined", size: "small", classes: { root: classes.acceptButton }, component: Link, loading: scUserContext.user ? status === null || manager.isLoading(notificationObject.group) : null, to: notificationObject.type === SCNotificationTypologyType.USER_REQUESTED_TO_JOIN_GROUP ||
67
+ return (_jsxs(_Fragment, { children: [_jsx(Root, Object.assign({ id: id, className: classNames(classes.root, className, `${PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, actions: _jsxs(Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2, children: [_jsx(DateTimeAgo, { date: notificationObject.active_at, className: classes.activeAt }), status && status !== SCGroupSubscriptionStatusType.SUBSCRIBED && (_jsx(LoadingButton, { color: 'primary', variant: "outlined", size: "small", classes: { root: classes.acceptButton }, component: Link, loading: scUserContext.user ? status === null || manager.isLoading(notificationObject.group) : null, to: notificationObject.type === SCNotificationTypologyType.USER_REQUESTED_TO_JOIN_GROUP ||
68
68
  notificationObject.type === SCNotificationTypologyType.USER_ACCEPTED_TO_JOIN_GROUP
69
69
  ? scRoutingContext.url(SCRoutes.GROUP_MEMBERS_ROUTE_NAME, notificationObject.group)
70
- : scRoutingContext.url(SCRoutes.GROUP_ROUTE_NAME, notificationObject.group) }, { children: _jsx(FormattedMessage, { id: "ui.notification.group.button.see", defaultMessage: "ui.notification.group.button.see" }) })))] })) }, rest)), openAlert && _jsx(UserDeletedSnackBar, { open: openAlert, handleClose: () => setOpenAlert(false) })] }));
70
+ : scRoutingContext.url(SCRoutes.GROUP_ROUTE_NAME, notificationObject.group), children: _jsx(FormattedMessage, { id: "ui.notification.group.button.see", defaultMessage: "ui.notification.group.button.see" }) }))] }) }, rest)), openAlert && _jsx(UserDeletedSnackBar, { open: openAlert, handleClose: () => setOpenAlert(false) })] }));
71
71
  }
@@ -39,11 +39,11 @@ export default function IncubatorApprovedNotification(props) {
39
39
  /**
40
40
  * Renders root object
41
41
  */
42
- return (_jsx(Root, Object.assign({ id: id, className: classNames(classes.root, className, `${PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: _jsx(Avatar, { alt: notificationObject.incubator.approved_category.name, src: notificationObject.incubator.approved_category.image_medium, variant: "square", classes: { root: classes.categoryIcon } }), primary: _jsx(_Fragment, { children: isSnippetTemplate ? (_jsx(Link, Object.assign({ to: scRoutingContext.url(SCRoutes.CATEGORY_ROUTE_NAME, notificationObject.incubator.approved_category) }, { children: _jsx(Typography, Object.assign({ component: "div", className: classes.categoryApprovedText, color: "inherit" }, { children: intl.formatMessage(messages.incubatorApproved, {
42
+ return (_jsx(Root, Object.assign({ id: id, className: classNames(classes.root, className, `${PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: _jsx(Avatar, { alt: notificationObject.incubator.approved_category.name, src: notificationObject.incubator.approved_category.image_medium, variant: "square", classes: { root: classes.categoryIcon } }), primary: _jsx(_Fragment, { children: isSnippetTemplate ? (_jsx(Link, { to: scRoutingContext.url(SCRoutes.CATEGORY_ROUTE_NAME, notificationObject.incubator.approved_category), children: _jsx(Typography, { component: "div", className: classes.categoryApprovedText, color: "inherit", children: intl.formatMessage(messages.incubatorApproved, {
43
43
  name: notificationObject.incubator.name,
44
44
  b: (...chunks) => _jsx("strong", { children: chunks })
45
- }) })) }))) : (_jsxs(_Fragment, { children: [template === SCNotificationObjectTemplateType.DETAIL && notificationObject.is_new && _jsx(NewChip, {}), _jsx(Typography, Object.assign({ component: "div", className: classes.categoryApprovedText, color: "inherit" }, { children: intl.formatMessage(messages.incubatorApproved, {
45
+ }) }) })) : (_jsxs(_Fragment, { children: [template === SCNotificationObjectTemplateType.DETAIL && notificationObject.is_new && _jsx(NewChip, {}), _jsx(Typography, { component: "div", className: classes.categoryApprovedText, color: "inherit", children: intl.formatMessage(messages.incubatorApproved, {
46
46
  name: notificationObject.incubator.name,
47
47
  b: (...chunks) => _jsx("strong", { children: chunks })
48
- }) }))] })) }), secondary: (template === SCNotificationObjectTemplateType.DETAIL || template === SCNotificationObjectTemplateType.SNIPPET) && (_jsx(DateTimeAgo, { date: notificationObject.active_at, className: classes.activeAt })), footer: template === SCNotificationObjectTemplateType.DETAIL ? (_jsx(Button, Object.assign({ component: Link, to: scRoutingContext.url(SCRoutes.CATEGORY_ROUTE_NAME, notificationObject.incubator.approved_category), className: classes.viewIncubatorButton }, { children: _jsx(FormattedMessage, { id: 'ui.notification.incubatorApproved.viewIncubator', defaultMessage: 'ui.notification.incubatorApproved.viewIncubator' }) }))) : template === SCNotificationObjectTemplateType.TOAST ? (_jsxs(Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: [_jsx(DateTimeAgo, { date: notificationObject.active_at }), _jsx(Typography, Object.assign({ color: "primary", component: 'div' }, { children: _jsx(Link, Object.assign({ to: scRoutingContext.url(SCRoutes.CATEGORY_ROUTE_NAME, notificationObject.incubator) }, { children: _jsx(FormattedMessage, { id: "ui.userToastNotifications.incubatorApproved.viewIncubator", defaultMessage: 'ui.userToastNotifications.incubatorApproved.viewIncubator' }) })) }))] }))) : null }, rest)));
48
+ }) })] })) }), secondary: (template === SCNotificationObjectTemplateType.DETAIL || template === SCNotificationObjectTemplateType.SNIPPET) && (_jsx(DateTimeAgo, { date: notificationObject.active_at, className: classes.activeAt })), footer: template === SCNotificationObjectTemplateType.DETAIL ? (_jsx(Button, { component: Link, to: scRoutingContext.url(SCRoutes.CATEGORY_ROUTE_NAME, notificationObject.incubator.approved_category), className: classes.viewIncubatorButton, children: _jsx(FormattedMessage, { id: 'ui.notification.incubatorApproved.viewIncubator', defaultMessage: 'ui.notification.incubatorApproved.viewIncubator' }) })) : template === SCNotificationObjectTemplateType.TOAST ? (_jsxs(Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2, children: [_jsx(DateTimeAgo, { date: notificationObject.active_at }), _jsx(Typography, { color: "primary", component: 'div', children: _jsx(Link, { to: scRoutingContext.url(SCRoutes.CATEGORY_ROUTE_NAME, notificationObject.incubator), children: _jsx(FormattedMessage, { id: "ui.userToastNotifications.incubatorApproved.viewIncubator", defaultMessage: 'ui.userToastNotifications.incubatorApproved.viewIncubator' }) }) })] })) : null }, rest)));
49
49
  }
@@ -49,5 +49,5 @@ export default function KindlyNoticeFlagNotification(props) {
49
49
  /**
50
50
  * Renders root object
51
51
  */
52
- return (_jsx(Root, Object.assign({ id: id, className: classNames(classes.root, className, `${PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: _jsx(Avatar, Object.assign({ variant: "circular", classes: { root: classes.flagIcon } }, { children: _jsx(Icon, { children: "outlined_flag" }) })), primary: _jsx(_Fragment, { children: isSnippetTemplate ? (_jsx(Link, Object.assign({ to: scRoutingContext.url(SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], getRouteData(notificationObject[contributionType])) }, { children: _jsx(Typography, Object.assign({ component: "div", color: "inherit", className: classes.flagText }, { children: _jsx(FormattedMessage, { id: `ui.notification.kindlyNoticeFlag.kindlyNoticeFlagSnippet`, defaultMessage: `ui.notification.kindlyNoticeFlag.kindlyNoticeFlagSnippet` }) })) }))) : (_jsx(Typography, Object.assign({ component: "div", color: "inherit", className: classes.flagText }, { children: intl.formatMessage(messages[camelCase(notificationObject.type)], { b: (...chunks) => _jsx("strong", { children: chunks }) }) }))) }), secondary: (template === SCNotificationObjectTemplateType.DETAIL || template === SCNotificationObjectTemplateType.SNIPPET) && (_jsx(DateTimeAgo, { date: notificationObject.active_at, className: classes.activeAt })), footer: !isSnippetTemplate && (_jsxs(Box, Object.assign({ className: classes.contributionWrap }, { children: [_jsx(Typography, Object.assign({ variant: 'body2', color: 'inherit', component: 'div', classes: { root: classes.contributionYouWroteLabel } }, { children: _jsx(FormattedMessage, { id: "ui.notification.undeletedFor.youWrote", defaultMessage: "ui.notification.undeletedFor.youWrote" }) })), _jsx(Link, Object.assign({ to: scRoutingContext.url(SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], getRouteData(notificationObject[contributionType])), className: classes.contributionText }, { children: _jsx(Typography, Object.assign({ component: 'span', variant: "body2" }, { children: getContributionSnippet(notificationObject[contributionType]) })) }))] }))) }, rest)));
52
+ return (_jsx(Root, Object.assign({ id: id, className: classNames(classes.root, className, `${PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: _jsx(Avatar, { variant: "circular", classes: { root: classes.flagIcon }, children: _jsx(Icon, { children: "outlined_flag" }) }), primary: _jsx(_Fragment, { children: isSnippetTemplate ? (_jsx(Link, { to: scRoutingContext.url(SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], getRouteData(notificationObject[contributionType])), children: _jsx(Typography, { component: "div", color: "inherit", className: classes.flagText, children: _jsx(FormattedMessage, { id: `ui.notification.kindlyNoticeFlag.kindlyNoticeFlagSnippet`, defaultMessage: `ui.notification.kindlyNoticeFlag.kindlyNoticeFlagSnippet` }) }) })) : (_jsx(Typography, { component: "div", color: "inherit", className: classes.flagText, children: intl.formatMessage(messages[camelCase(notificationObject.type)], { b: (...chunks) => _jsx("strong", { children: chunks }) }) })) }), secondary: (template === SCNotificationObjectTemplateType.DETAIL || template === SCNotificationObjectTemplateType.SNIPPET) && (_jsx(DateTimeAgo, { date: notificationObject.active_at, className: classes.activeAt })), footer: !isSnippetTemplate && (_jsxs(Box, { className: classes.contributionWrap, children: [_jsx(Typography, { variant: 'body2', color: 'inherit', component: 'div', classes: { root: classes.contributionYouWroteLabel }, children: _jsx(FormattedMessage, { id: "ui.notification.undeletedFor.youWrote", defaultMessage: "ui.notification.undeletedFor.youWrote" }) }), _jsx(Link, { to: scRoutingContext.url(SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], getRouteData(notificationObject[contributionType])), className: classes.contributionText, children: _jsx(Typography, { component: 'span', variant: "body2", children: getContributionSnippet(notificationObject[contributionType]) }) })] })) }, rest)));
53
53
  }
@@ -69,7 +69,7 @@ export default function KindlyNoticeForNotification(props) {
69
69
  /**
70
70
  * Renders root object
71
71
  */
72
- return (_jsx(Root, Object.assign({ id: id, className: classNames(classes.root, className, `${PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: _jsx(Avatar, Object.assign({ variant: "circular", classes: { root: classes.flagIcon } }, { children: _jsx(Icon, { children: "outlined_flag" }) })), primary: _jsx(_Fragment, { children: isSnippetTemplate ? (_jsx(Link, Object.assign({ to: scRoutingContext.url(SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], getRouteData(notificationObject[contributionType])) }, { children: _jsx(Typography, Object.assign({ component: "div", color: "inherit", className: classes.flagText }, { children: _jsx(FormattedMessage, { id: `ui.notification.kindlyNoticeFor.${camelCase(notificationObject.type)}Snippet`, defaultMessage: `ui.notification.kindlyNoticeFor.${camelCase(notificationObject.type)}Snippet` }) })) }))) : (_jsx(Typography, Object.assign({ component: "div", color: "inherit", className: classes.flagText }, { children: intl.formatMessage(messages[camelCase(notificationObject.type)], { b: (...chunks) => _jsx("strong", { children: chunks }) }) }))) }), secondary: (template === SCNotificationObjectTemplateType.DETAIL || template === SCNotificationObjectTemplateType.SNIPPET) && (_jsx(DateTimeAgo, { date: notificationObject.active_at, className: classes.activeAt })), footer: isSnippetTemplate ? null : (_jsxs(_Fragment, { children: [_jsxs(Box, Object.assign({ className: classes.contributionWrap }, { children: [_jsx(Typography, Object.assign({ variant: 'body2', color: 'inherit', component: 'div', classes: { root: classes.contributionYouWroteLabel } }, { children: intl.formatMessage(messages.youWrote, {
72
+ return (_jsx(Root, Object.assign({ id: id, className: classNames(classes.root, className, `${PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: _jsx(Avatar, { variant: "circular", classes: { root: classes.flagIcon }, children: _jsx(Icon, { children: "outlined_flag" }) }), primary: _jsx(_Fragment, { children: isSnippetTemplate ? (_jsx(Link, { to: scRoutingContext.url(SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], getRouteData(notificationObject[contributionType])), children: _jsx(Typography, { component: "div", color: "inherit", className: classes.flagText, children: _jsx(FormattedMessage, { id: `ui.notification.kindlyNoticeFor.${camelCase(notificationObject.type)}Snippet`, defaultMessage: `ui.notification.kindlyNoticeFor.${camelCase(notificationObject.type)}Snippet` }) }) })) : (_jsx(Typography, { component: "div", color: "inherit", className: classes.flagText, children: intl.formatMessage(messages[camelCase(notificationObject.type)], { b: (...chunks) => _jsx("strong", { children: chunks }) }) })) }), secondary: (template === SCNotificationObjectTemplateType.DETAIL || template === SCNotificationObjectTemplateType.SNIPPET) && (_jsx(DateTimeAgo, { date: notificationObject.active_at, className: classes.activeAt })), footer: isSnippetTemplate ? null : (_jsxs(_Fragment, { children: [_jsxs(Box, { className: classes.contributionWrap, children: [_jsx(Typography, { variant: 'body2', color: 'inherit', component: 'div', classes: { root: classes.contributionYouWroteLabel }, children: intl.formatMessage(messages.youWrote, {
73
73
  b: (...chunks) => _jsx("strong", { children: chunks })
74
- }) })), _jsx(Link, Object.assign({ to: scRoutingContext.url(SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], getRouteData(notificationObject[contributionType])), className: classes.contributionText }, { children: _jsx(Typography, Object.assign({ component: 'span', variant: "body2" }, { children: getContributionSnippet(notificationObject[contributionType]) })) }))] })), template === SCNotificationObjectTemplateType.TOAST && (_jsxs(Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: [_jsx(DateTimeAgo, { date: notificationObject.active_at }), _jsx(Typography, Object.assign({ color: "primary", component: 'div' }, { children: _jsx(Link, Object.assign({ to: scRoutingContext.url(SCRoutes[`${notificationObject[contributionType]['type'].toUpperCase()}_ROUTE_NAME`], getRouteData(notificationObject[contributionType])) }, { children: _jsx(FormattedMessage, { id: "ui.userToastNotifications.viewContribution", defaultMessage: 'ui.userToastNotifications.viewContribution' }) })) }))] })))] })) }, rest)));
74
+ }) }), _jsx(Link, { to: scRoutingContext.url(SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], getRouteData(notificationObject[contributionType])), className: classes.contributionText, children: _jsx(Typography, { component: 'span', variant: "body2", children: getContributionSnippet(notificationObject[contributionType]) }) })] }), template === SCNotificationObjectTemplateType.TOAST && (_jsxs(Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2, children: [_jsx(DateTimeAgo, { date: notificationObject.active_at }), _jsx(Typography, { color: "primary", component: 'div', children: _jsx(Link, { to: scRoutingContext.url(SCRoutes[`${notificationObject[contributionType]['type'].toUpperCase()}_ROUTE_NAME`], getRouteData(notificationObject[contributionType])), children: _jsx(FormattedMessage, { id: "ui.userToastNotifications.viewContribution", defaultMessage: 'ui.userToastNotifications.viewContribution' }) }) })] }))] })) }, rest)));
75
75
  }