@selfcommunity/react-ui 0.11.0-react-17.0.1.3 → 1.0.0-alpha.1

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 (478) hide show
  1. package/lib/cjs/components/AcceptRequestUserEventButton/AcceptRequestUserEventButton.js +1 -2
  2. package/lib/cjs/components/AcceptRequestUserGroupButton/AcceptRequestUserGroupButton.js +1 -2
  3. package/lib/cjs/components/AccountDataPortability/AccountDataPortability.js +6 -11
  4. package/lib/cjs/components/AccountDelete/AccountDelete.js +5 -12
  5. package/lib/cjs/components/AccountRecover/AccountRecover.js +2 -4
  6. package/lib/cjs/components/BroadcastMessages/Message.js +1 -1
  7. package/lib/cjs/components/BuyButton/BuyButton.js +8 -5
  8. package/lib/cjs/components/Categories/Categories.js +1 -1
  9. package/lib/cjs/components/Categories/Skeleton.js +1 -1
  10. package/lib/cjs/components/Categories/prefetchedCategories.js +115 -115
  11. package/lib/cjs/components/CategoryAutocomplete/CategoryAutocomplete.js +13 -4
  12. package/lib/cjs/components/CategoryFollowButton/CategoryFollowButton.js +3 -4
  13. package/lib/cjs/components/ChangeCover/ChangeCover.js +2 -6
  14. package/lib/cjs/components/ChangeGroupCover/ChangeGroupCover.js +1 -2
  15. package/lib/cjs/components/ChangeGroupPicture/ChangeGroupPicture.js +1 -2
  16. package/lib/cjs/components/ChangePicture/ChangePictureDialog/ChangePictureDialog.js +4 -8
  17. package/lib/cjs/components/Checkout/Skeleton.js +1 -3
  18. package/lib/cjs/components/CheckoutReturnDialog/CheckoutReturnDialog.js +10 -10
  19. package/lib/cjs/components/CommentObjectReply/CommentObjectReply.js +2 -3
  20. package/lib/cjs/components/CommentsFeedObject/CommentsFeedObject.js +2 -2
  21. package/lib/cjs/components/CommunityPaywalls/CommunityPaywalls.js +3 -4
  22. package/lib/cjs/components/CommunityPaywalls/Skeleton.d.ts +3 -3
  23. package/lib/cjs/components/CommunityPaywalls/Skeleton.js +2 -3
  24. package/lib/cjs/components/Composer/Composer.js +3 -4
  25. package/lib/cjs/components/Composer/Content/ContentDiscussion/ContentDiscussion.js +5 -3
  26. package/lib/cjs/components/Composer/Content/ContentLesson/ContentLesson.js +2 -2
  27. package/lib/cjs/components/Composer/Content/ContentPoll/ContentPoll.js +13 -9
  28. package/lib/cjs/components/Composer/Content/ContentPost/ContentPost.js +2 -2
  29. package/lib/cjs/components/Composer/Layer/AudienceLayer/AudienceLayer.js +11 -5
  30. package/lib/cjs/components/Composer/Layer/ScheduledLayer/ScheduledLayer.js +6 -6
  31. package/lib/cjs/components/ConsentSolution/ConsentSolution.js +12 -5
  32. package/lib/cjs/components/ConsentSolution/Skeleton.js +1 -1
  33. package/lib/cjs/components/CourseCompletedDialog/CourseCompletedDialog.js +1 -1
  34. package/lib/cjs/components/CourseDashboard/Student/ActionButton.d.ts +1 -2
  35. package/lib/cjs/components/CourseDashboard/Student/ActionButton.js +1 -2
  36. package/lib/cjs/components/CourseDashboard/Teacher/Comments.js +1 -2
  37. package/lib/cjs/components/CourseForm/CourseForm.js +9 -6
  38. package/lib/cjs/components/CourseForm/Edit.js +6 -2
  39. package/lib/cjs/components/CourseForm/UploadCourseCover.js +1 -2
  40. package/lib/cjs/components/CourseJoinButton/CourseJoinButton.js +3 -4
  41. package/lib/cjs/components/Courses/Courses.d.ts +0 -4
  42. package/lib/cjs/components/Courses/Courses.js +10 -11
  43. package/lib/cjs/components/Courses/Skeleton.js +1 -1
  44. package/lib/cjs/components/CreateLiveStreamDialog/CreateLiveStreamDialog.js +7 -1
  45. package/lib/cjs/components/CreateLiveStreamDialog/LiveStreamSelector/LiveStreamSelector.js +5 -8
  46. package/lib/cjs/components/CreatePaymentProductForm/CreatePaymentProductForm.js +6 -5
  47. package/lib/cjs/components/CustomAdv/Skeleton.js +1 -1
  48. package/lib/cjs/components/EditCourse/Lessons/ChangeLessonStatus.js +2 -3
  49. package/lib/cjs/components/EditCourse/Lessons/FieldName.js +1 -2
  50. package/lib/cjs/components/EditCourse/Options.js +1 -2
  51. package/lib/cjs/components/EditCourse/Status.js +1 -1
  52. package/lib/cjs/components/Editor/Editor.js +3 -3
  53. package/lib/cjs/components/Editor/plugins/EmojiPlugin.js +4 -2
  54. package/lib/cjs/components/Editor/plugins/FloatingLinkPlugin.js +6 -4
  55. package/lib/cjs/components/Event/Skeleton.js +1 -2
  56. package/lib/cjs/components/EventAutocomplete/EventAutocomplete.js +7 -4
  57. package/lib/cjs/components/EventForm/EventAddress.js +9 -5
  58. package/lib/cjs/components/EventForm/EventForm.js +89 -51
  59. package/lib/cjs/components/EventForm/UploadEventCover.js +1 -2
  60. package/lib/cjs/components/EventInfoWidget/index.d.ts +1 -1
  61. package/lib/cjs/components/EventInviteButton/EventInviteButton.js +3 -2
  62. package/lib/cjs/components/EventLocationWidget/EventLocationWidget.js +5 -16
  63. package/lib/cjs/components/EventLocationWidget/EventMap.d.ts +8 -0
  64. package/lib/cjs/components/EventLocationWidget/EventMap.js +28 -0
  65. package/lib/cjs/components/EventLocationWidget/Skeleton.js +1 -1
  66. package/lib/cjs/components/EventMediaWidget/EventMediaWidget.js +1 -2
  67. package/lib/cjs/components/EventMediaWidget/TriggerButton.d.ts +2 -2
  68. package/lib/cjs/components/EventMediaWidget/TriggerButton.js +1 -2
  69. package/lib/cjs/components/EventMediaWidget/index.d.ts +2 -1
  70. package/lib/cjs/components/EventMembersWidget/index.d.ts +1 -1
  71. package/lib/cjs/components/EventSubscribeButton/EventSubscribeButton.js +11 -4
  72. package/lib/cjs/components/Events/Events.d.ts +0 -4
  73. package/lib/cjs/components/Events/Events.js +14 -9
  74. package/lib/cjs/components/Events/LocationEventsFilter.js +5 -1
  75. package/lib/cjs/components/Events/OngoingEventsFilter.js +6 -2
  76. package/lib/cjs/components/Events/PastEventsFilter.js +6 -2
  77. package/lib/cjs/components/Events/Skeleton.js +1 -1
  78. package/lib/cjs/components/Feed/Feed.js +9 -10
  79. package/lib/cjs/components/Feed/Skeleton.js +1 -1
  80. package/lib/cjs/components/FeedObject/Actions/Actions.js +2 -3
  81. package/lib/cjs/components/FeedObject/Actions/Comment/Comment.js +2 -2
  82. package/lib/cjs/components/FeedObject/Actions/Follow/Follow.js +2 -3
  83. package/lib/cjs/components/FeedObject/Actions/Share/Share.js +1 -2
  84. package/lib/cjs/components/FeedObject/Activities/ActivitiesMenu/ActivitiesMenu.js +20 -18
  85. package/lib/cjs/components/FeedObject/Activities/RelevantActivities/CommentActivity/CommentActivity.js +1 -1
  86. package/lib/cjs/components/FeedObject/Activities/RelevantActivities/RelevantActivities.js +1 -1
  87. package/lib/cjs/components/FeedObject/Contributors/Contributors.js +1 -1
  88. package/lib/cjs/components/FeedObject/Contributors/Skeleton.js +1 -1
  89. package/lib/cjs/components/FeedObject/Poll/Choice/Choice.js +1 -2
  90. package/lib/cjs/components/FeedObjectMediaPreview/FeedObjectMediaPreview.js +1 -1
  91. package/lib/cjs/components/FollowUserButton/FollowUserButton.js +1 -2
  92. package/lib/cjs/components/FriendshipUserButton/FriendshipUserButton.js +2 -3
  93. package/lib/cjs/components/GroupActionsMenu/index.js +9 -1
  94. package/lib/cjs/components/GroupAutocomplete/GroupAutocomplete.js +7 -4
  95. package/lib/cjs/components/GroupForm/GroupForm.js +16 -27
  96. package/lib/cjs/components/GroupInfoWidget/GroupInfoWidget.js +5 -15
  97. package/lib/cjs/components/GroupInviteButton/GroupInviteButton.js +8 -7
  98. package/lib/cjs/components/GroupSettingsIconButton/GroupSettingsIconButton.js +10 -4
  99. package/lib/cjs/components/GroupSubscribeButton/GroupSubscribeButton.js +3 -4
  100. package/lib/cjs/components/Groups/Groups.js +10 -10
  101. package/lib/cjs/components/Groups/Skeleton.js +1 -2
  102. package/lib/cjs/components/Incubator/Incubator.js +4 -4
  103. package/lib/cjs/components/Incubator/Skeleton.js +1 -1
  104. package/lib/cjs/components/IncubatorDetail/IncubatorDetail.js +2 -2
  105. package/lib/cjs/components/IncubatorListWidget/CreateIncubatorDialog/CreateIncubatorDialog.js +3 -4
  106. package/lib/cjs/components/IncubatorListWidget/IncubatorListWidget.js +5 -5
  107. package/lib/cjs/components/IncubatorSubscribeButton/IncubatorSubscribeButton.js +3 -4
  108. package/lib/cjs/components/IncubatorSuggestionWidget/IncubatorSuggestionWidget.js +1 -1
  109. package/lib/cjs/components/InviteUserEventButton/InviteUserEventButton.js +1 -2
  110. package/lib/cjs/components/LessonAppbar/LessonAppbar.js +3 -4
  111. package/lib/cjs/components/LessonCommentObjects/LessonCommentObjects.js +1 -1
  112. package/lib/cjs/components/LessonEditForm/LessonEditForm.js +1 -2
  113. package/lib/cjs/components/LessonReleaseMenu/LessonReleaseMenu.js +24 -16
  114. package/lib/cjs/components/LiveStreamForm/LiveStreamForm.js +15 -12
  115. package/lib/cjs/components/LiveStreamRoom/LiveStreamRoom.js +10 -8
  116. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/DisconnectButton.js +5 -1
  117. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/LiveStreamSettingsMenu.js +7 -3
  118. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/LiveStreamVideoConference.js +3 -3
  119. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/ParticipantTile.js +1 -3
  120. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/ParticipantTileActions.js +1 -1
  121. package/lib/cjs/components/LocationAutocomplete/LocationAutocomplete.js +11 -11
  122. package/lib/cjs/components/LoyaltyProgramWidget/LoyaltyProgramWidget.js +1 -1
  123. package/lib/cjs/components/LoyaltyProgramWidget/Skeleton.js +1 -1
  124. package/lib/cjs/components/MyEventsWidget/index.d.ts +1 -1
  125. package/lib/cjs/components/NavigationMenuIconButton/DefaultDrawerContent.js +3 -2
  126. package/lib/cjs/components/NavigationSettingsIconButton/NavigationSettingsIconButton.js +9 -1
  127. package/lib/cjs/components/NavigationToolbar/NotificationMenu.js +2 -5
  128. package/lib/cjs/components/Notification/CollapsedFor/CollapsedFor.js +3 -1
  129. package/lib/cjs/components/Notification/Comment/Comment.js +3 -3
  130. package/lib/cjs/components/Notification/Contribution/Contribution.js +1 -1
  131. package/lib/cjs/components/Notification/ContributionFollow/ContributionFollow.js +2 -2
  132. package/lib/cjs/components/Notification/Course/Course.js +5 -10
  133. package/lib/cjs/components/Notification/DeletedFor/DeletedFor.js +4 -2
  134. package/lib/cjs/components/Notification/Event/Event.js +7 -12
  135. package/lib/cjs/components/Notification/Group/Group.js +3 -4
  136. package/lib/cjs/components/Notification/IncubatorApproved/IncubatorApproved.js +3 -3
  137. package/lib/cjs/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.js +3 -1
  138. package/lib/cjs/components/Notification/KindlyNoticeFor/KindlyNoticeFor.js +5 -3
  139. package/lib/cjs/components/Notification/LiveStream/LiveStream.js +4 -9
  140. package/lib/cjs/components/Notification/Mention/Mention.js +2 -2
  141. package/lib/cjs/components/Notification/Notification.js +17 -9
  142. package/lib/cjs/components/Notification/PrivateMessage/PrivateMessage.js +4 -5
  143. package/lib/cjs/components/Notification/UndeletedFor/UndeletedFor.js +1 -1
  144. package/lib/cjs/components/Notification/UserBlocked/UserBlocked.js +6 -2
  145. package/lib/cjs/components/Notification/UserConnection/UserConnection.js +6 -2
  146. package/lib/cjs/components/Notification/UserFollow/UserFollow.js +2 -2
  147. package/lib/cjs/components/Notification/VoteUp/VoteUp.js +2 -2
  148. package/lib/cjs/components/OnBoardingWidget/ActionsButton.js +12 -4
  149. package/lib/cjs/components/OnBoardingWidget/OnBoardingWidget.js +19 -27
  150. package/lib/cjs/components/OnBoardingWidget/Skeleton.js +1 -1
  151. package/lib/cjs/components/OnBoardingWidget/Steps/App/App.js +9 -25
  152. package/lib/cjs/components/OnBoardingWidget/Steps/Appearance/Appearance.js +17 -14
  153. package/lib/cjs/components/OnBoardingWidget/Steps/Category/Category.js +3 -9
  154. package/lib/cjs/components/PaymentDetailDialog/PaymentDetailDialog.js +7 -5
  155. package/lib/cjs/components/PaymentOrder/PaymentOrder.js +1 -1
  156. package/lib/cjs/components/PaymentOrders/PaymentOrders.js +39 -26
  157. package/lib/cjs/components/PaymentProduct/Skeleton.js +1 -1
  158. package/lib/cjs/components/PaymentProducts/Skeleton.js +1 -1
  159. package/lib/cjs/components/Paywalls/Skeleton.js +1 -1
  160. package/lib/cjs/components/PaywallsConfigurator/PaywallsConfigurator.js +5 -5
  161. package/lib/cjs/components/PaywallsConfigurator/Skeleton.js +1 -1
  162. package/lib/cjs/components/PaywallsDialog/PaywallsDialog.js +8 -6
  163. package/lib/cjs/components/PdfPreviewDialog/PdfPreviewDialog.js +3 -1
  164. package/lib/cjs/components/PlatformWidget/PlatformWidget.js +6 -6
  165. package/lib/cjs/components/PlatformWidget/Skeleton.js +1 -1
  166. package/lib/cjs/components/PrivateMessageComponent/PrivateMessageComponent.js +3 -3
  167. package/lib/cjs/components/PrivateMessageComponent/Skeleton.js +1 -1
  168. package/lib/cjs/components/PrivateMessageEditor/MessageMediaUploader/index.js +2 -2
  169. package/lib/cjs/components/PrivateMessageEditor/PrivateMessageEditor.js +6 -4
  170. package/lib/cjs/components/PrivateMessageSettingsIconButton/PrivateMessageSettingsIconButton.js +9 -1
  171. package/lib/cjs/components/PrivateMessageSnippets/PrivateMessageSnippets.js +10 -8
  172. package/lib/cjs/components/PrivateMessageSnippets/Skeleton.js +1 -1
  173. package/lib/cjs/components/PrivateMessageThread/PrivateMessageThread.d.ts +1 -1
  174. package/lib/cjs/components/PrivateMessageThread/PrivateMessageThread.js +7 -7
  175. package/lib/cjs/components/PrivateMessageThread/Skeleton.js +1 -1
  176. package/lib/cjs/components/RelatedEventsWidget/index.d.ts +1 -1
  177. package/lib/cjs/components/SearchAutocomplete/SearchAutocomplete.js +13 -8
  178. package/lib/cjs/components/SnippetNotifications/SnippetNotifications.js +5 -5
  179. package/lib/cjs/components/SuggestedEventsWidget/index.d.ts +1 -1
  180. package/lib/cjs/components/TagAutocomplete/TagAutocomplete.js +5 -2
  181. package/lib/cjs/components/UserActionIconButton/UserActionIconButton.js +9 -8
  182. package/lib/cjs/components/UserAddPaymentMethodForm/UserAddPaymentMethodForm.js +4 -6
  183. package/lib/cjs/components/UserAutocomplete/UserAutocomplete.js +12 -10
  184. package/lib/cjs/components/UserBillingInfo/Skeleton.js +1 -1
  185. package/lib/cjs/components/UserBillingInfo/UserBillingInfo.js +30 -22
  186. package/lib/cjs/components/UserChangeAddressDialog/UserChangeAddressDialog.js +1 -2
  187. package/lib/cjs/components/UserCounters/UserCounters.js +5 -13
  188. package/lib/cjs/components/UserInfo/UserInfo.js +1 -1
  189. package/lib/cjs/components/UserLiveStreamWidget/index.d.ts +1 -1
  190. package/lib/cjs/components/UserPaymentMethods/Skeleton.d.ts +24 -3
  191. package/lib/cjs/components/UserPaymentMethods/Skeleton.js +2 -4
  192. package/lib/cjs/components/UserPaymentMethods/UserPaymentMethods.d.ts +25 -3
  193. package/lib/cjs/components/UserPaymentMethods/UserPaymentMethods.js +8 -9
  194. package/lib/cjs/components/UserProfileBlocked/UserProfileBlocked.js +1 -2
  195. package/lib/cjs/components/UserProfileEdit/Section/AccountCredentials.js +10 -7
  196. package/lib/cjs/components/UserProfileEdit/Section/PublicInfo.js +9 -20
  197. package/lib/cjs/components/UserProfileEdit/Skeleton.js +1 -1
  198. package/lib/cjs/components/UserSubscribedGroupsWidget/UserSubscribedGroupsWidget.js +1 -1
  199. package/lib/cjs/components/VoteAudienceButton/VoteAudienceButton.d.ts +2 -2
  200. package/lib/cjs/components/VoteAudienceButton/VoteAudienceButton.js +4 -5
  201. package/lib/cjs/components/VoteButton/VoteButton.d.ts +2 -2
  202. package/lib/cjs/components/VoteButton/VoteButton.js +2 -3
  203. package/lib/cjs/shared/AddUsersButton/AddUsersButton.js +3 -2
  204. package/lib/cjs/shared/ConfirmDialog/ConfirmDialog.js +1 -2
  205. package/lib/cjs/shared/ContributionActionsMenu/index.js +3 -9
  206. package/lib/cjs/shared/CopyTextArea/index.js +12 -6
  207. package/lib/cjs/shared/CourseUsersTable/ChangeUsersStatus.js +1 -2
  208. package/lib/cjs/shared/CourseUsersTable/CourseUsersTable.js +6 -5
  209. package/lib/cjs/shared/CourseUsersTable/RemoveButton.js +1 -2
  210. package/lib/cjs/shared/CourseUsersTable/RequestButton.js +1 -2
  211. package/lib/cjs/shared/CustomSnackMessage/index.js +2 -2
  212. package/lib/cjs/shared/DateTimeAgo/index.js +2 -2
  213. package/lib/cjs/shared/EmojiPicker/EmojiPicker.d.ts +1 -2
  214. package/lib/cjs/shared/EventActionsMenu/index.js +9 -1
  215. package/lib/cjs/shared/HiddenPurchasableContent/HiddenPurchasableContent.js +3 -4
  216. package/lib/cjs/shared/InfiniteScroll/stories/ScrolleableTop.js +1 -1
  217. package/lib/cjs/shared/LessonCommentActionsMenu/index.js +2 -8
  218. package/lib/cjs/shared/Lightbox/BaseLightbox.js +1 -1
  219. package/lib/cjs/shared/Media/File/DisplayComponent.js +4 -6
  220. package/lib/cjs/shared/Media/File/DocComponent.d.ts +2 -0
  221. package/lib/cjs/shared/Media/File/DocComponent.js +3 -2
  222. package/lib/cjs/shared/Media/File/PreviewComponent.js +4 -3
  223. package/lib/cjs/shared/Media/File/TriggerButton.js +9 -1
  224. package/lib/cjs/shared/Media/File/asUploadButton.d.ts +1 -1
  225. package/lib/cjs/shared/Media/File/asUploadButton.js +1 -1
  226. package/lib/cjs/shared/Media/Link/DisplayComponent.js +4 -12
  227. package/lib/cjs/shared/Media/Link/UrlTextField/index.js +3 -1
  228. package/lib/cjs/shared/MessageChunkUploader/index.js +1 -1
  229. package/lib/cjs/shared/PasswordTextField/index.js +7 -5
  230. package/lib/cjs/shared/ScrollContainer/index.js +2 -2
  231. package/lib/cjs/shared/TagChip/index.d.ts +2 -48
  232. package/lib/cjs/shared/TagChip/index.js +2 -2
  233. package/lib/cjs/shared/Tags/index.js +9 -9
  234. package/lib/cjs/shared/VirtualizedScroller/VirtualizedScroller.d.ts +1 -1
  235. package/lib/esm/components/AcceptRequestUserEventButton/AcceptRequestUserEventButton.js +2 -3
  236. package/lib/esm/components/AcceptRequestUserGroupButton/AcceptRequestUserGroupButton.js +2 -3
  237. package/lib/esm/components/AccountDataPortability/AccountDataPortability.js +7 -12
  238. package/lib/esm/components/AccountDelete/AccountDelete.js +6 -13
  239. package/lib/esm/components/AccountRecover/AccountRecover.js +2 -4
  240. package/lib/esm/components/BroadcastMessages/Message.js +1 -1
  241. package/lib/esm/components/BuyButton/BuyButton.js +9 -6
  242. package/lib/esm/components/Categories/Categories.js +1 -1
  243. package/lib/esm/components/Categories/Skeleton.js +1 -1
  244. package/lib/esm/components/Categories/prefetchedCategories.js +115 -115
  245. package/lib/esm/components/CategoryAutocomplete/CategoryAutocomplete.js +14 -5
  246. package/lib/esm/components/CategoryFollowButton/CategoryFollowButton.js +4 -5
  247. package/lib/esm/components/ChangeCover/ChangeCover.js +2 -6
  248. package/lib/esm/components/ChangeGroupCover/ChangeGroupCover.js +2 -3
  249. package/lib/esm/components/ChangeGroupPicture/ChangeGroupPicture.js +2 -3
  250. package/lib/esm/components/ChangePicture/ChangePictureDialog/ChangePictureDialog.js +4 -8
  251. package/lib/esm/components/Checkout/Skeleton.js +2 -4
  252. package/lib/esm/components/CheckoutReturnDialog/CheckoutReturnDialog.js +11 -11
  253. package/lib/esm/components/CommentObjectReply/CommentObjectReply.js +3 -4
  254. package/lib/esm/components/CommentsFeedObject/CommentsFeedObject.js +2 -2
  255. package/lib/esm/components/CommunityPaywalls/CommunityPaywalls.js +3 -4
  256. package/lib/esm/components/CommunityPaywalls/Skeleton.d.ts +3 -3
  257. package/lib/esm/components/CommunityPaywalls/Skeleton.js +2 -3
  258. package/lib/esm/components/Composer/Composer.js +4 -5
  259. package/lib/esm/components/Composer/Content/ContentDiscussion/ContentDiscussion.js +5 -3
  260. package/lib/esm/components/Composer/Content/ContentLesson/ContentLesson.js +2 -2
  261. package/lib/esm/components/Composer/Content/ContentPoll/ContentPoll.js +13 -9
  262. package/lib/esm/components/Composer/Content/ContentPost/ContentPost.js +2 -2
  263. package/lib/esm/components/Composer/Layer/AudienceLayer/AudienceLayer.js +12 -6
  264. package/lib/esm/components/Composer/Layer/ScheduledLayer/ScheduledLayer.js +7 -7
  265. package/lib/esm/components/ConsentSolution/ConsentSolution.js +12 -5
  266. package/lib/esm/components/ConsentSolution/Skeleton.js +1 -1
  267. package/lib/esm/components/CourseCompletedDialog/CourseCompletedDialog.js +1 -1
  268. package/lib/esm/components/CourseDashboard/Student/ActionButton.d.ts +1 -2
  269. package/lib/esm/components/CourseDashboard/Student/ActionButton.js +1 -2
  270. package/lib/esm/components/CourseDashboard/Teacher/Comments.js +1 -2
  271. package/lib/esm/components/CourseForm/CourseForm.js +10 -7
  272. package/lib/esm/components/CourseForm/Edit.js +6 -2
  273. package/lib/esm/components/CourseForm/UploadCourseCover.js +2 -3
  274. package/lib/esm/components/CourseJoinButton/CourseJoinButton.js +4 -5
  275. package/lib/esm/components/Courses/Courses.d.ts +0 -4
  276. package/lib/esm/components/Courses/Courses.js +10 -10
  277. package/lib/esm/components/Courses/Skeleton.js +1 -1
  278. package/lib/esm/components/CreateLiveStreamDialog/CreateLiveStreamDialog.js +7 -1
  279. package/lib/esm/components/CreateLiveStreamDialog/LiveStreamSelector/LiveStreamSelector.js +6 -9
  280. package/lib/esm/components/CreatePaymentProductForm/CreatePaymentProductForm.js +6 -5
  281. package/lib/esm/components/CustomAdv/Skeleton.js +1 -1
  282. package/lib/esm/components/EditCourse/Lessons/ChangeLessonStatus.js +3 -4
  283. package/lib/esm/components/EditCourse/Lessons/FieldName.js +2 -3
  284. package/lib/esm/components/EditCourse/Options.js +2 -3
  285. package/lib/esm/components/EditCourse/Status.js +1 -1
  286. package/lib/esm/components/Editor/Editor.js +3 -3
  287. package/lib/esm/components/Editor/plugins/EmojiPlugin.js +4 -2
  288. package/lib/esm/components/Editor/plugins/FloatingLinkPlugin.js +6 -4
  289. package/lib/esm/components/Event/Skeleton.js +1 -2
  290. package/lib/esm/components/EventAutocomplete/EventAutocomplete.js +8 -5
  291. package/lib/esm/components/EventForm/EventAddress.js +9 -5
  292. package/lib/esm/components/EventForm/EventForm.js +91 -53
  293. package/lib/esm/components/EventForm/UploadEventCover.js +2 -3
  294. package/lib/esm/components/EventInfoWidget/index.d.ts +1 -1
  295. package/lib/esm/components/EventInviteButton/EventInviteButton.js +3 -2
  296. package/lib/esm/components/EventLocationWidget/EventLocationWidget.js +5 -16
  297. package/lib/esm/components/EventLocationWidget/EventMap.d.ts +8 -0
  298. package/lib/esm/components/EventLocationWidget/EventMap.js +25 -0
  299. package/lib/esm/components/EventLocationWidget/Skeleton.js +1 -1
  300. package/lib/esm/components/EventMediaWidget/EventMediaWidget.js +1 -2
  301. package/lib/esm/components/EventMediaWidget/TriggerButton.d.ts +2 -2
  302. package/lib/esm/components/EventMediaWidget/TriggerButton.js +2 -3
  303. package/lib/esm/components/EventMediaWidget/index.d.ts +2 -1
  304. package/lib/esm/components/EventMembersWidget/index.d.ts +1 -1
  305. package/lib/esm/components/EventSubscribeButton/EventSubscribeButton.js +11 -4
  306. package/lib/esm/components/Events/Events.d.ts +0 -4
  307. package/lib/esm/components/Events/Events.js +14 -8
  308. package/lib/esm/components/Events/LocationEventsFilter.js +5 -1
  309. package/lib/esm/components/Events/OngoingEventsFilter.js +6 -2
  310. package/lib/esm/components/Events/PastEventsFilter.js +6 -2
  311. package/lib/esm/components/Events/Skeleton.js +1 -1
  312. package/lib/esm/components/Feed/Feed.js +10 -11
  313. package/lib/esm/components/Feed/Skeleton.js +2 -2
  314. package/lib/esm/components/FeedObject/Actions/Actions.js +2 -3
  315. package/lib/esm/components/FeedObject/Actions/Comment/Comment.js +2 -2
  316. package/lib/esm/components/FeedObject/Actions/Follow/Follow.js +3 -4
  317. package/lib/esm/components/FeedObject/Actions/Share/Share.js +1 -2
  318. package/lib/esm/components/FeedObject/Activities/ActivitiesMenu/ActivitiesMenu.js +20 -18
  319. package/lib/esm/components/FeedObject/Activities/RelevantActivities/CommentActivity/CommentActivity.js +1 -1
  320. package/lib/esm/components/FeedObject/Activities/RelevantActivities/RelevantActivities.js +1 -1
  321. package/lib/esm/components/FeedObject/Contributors/Contributors.js +1 -1
  322. package/lib/esm/components/FeedObject/Contributors/Skeleton.js +1 -1
  323. package/lib/esm/components/FeedObject/Poll/Choice/Choice.js +2 -3
  324. package/lib/esm/components/FeedObjectMediaPreview/FeedObjectMediaPreview.js +1 -1
  325. package/lib/esm/components/FollowUserButton/FollowUserButton.js +2 -3
  326. package/lib/esm/components/FriendshipUserButton/FriendshipUserButton.js +3 -4
  327. package/lib/esm/components/GroupActionsMenu/index.js +9 -1
  328. package/lib/esm/components/GroupAutocomplete/GroupAutocomplete.js +8 -5
  329. package/lib/esm/components/GroupForm/GroupForm.js +17 -28
  330. package/lib/esm/components/GroupInfoWidget/GroupInfoWidget.js +5 -15
  331. package/lib/esm/components/GroupInviteButton/GroupInviteButton.js +8 -7
  332. package/lib/esm/components/GroupSettingsIconButton/GroupSettingsIconButton.js +10 -4
  333. package/lib/esm/components/GroupSubscribeButton/GroupSubscribeButton.js +4 -5
  334. package/lib/esm/components/Groups/Groups.js +10 -10
  335. package/lib/esm/components/Groups/Skeleton.js +1 -2
  336. package/lib/esm/components/Incubator/Incubator.js +4 -4
  337. package/lib/esm/components/Incubator/Skeleton.js +1 -1
  338. package/lib/esm/components/IncubatorDetail/IncubatorDetail.js +2 -2
  339. package/lib/esm/components/IncubatorListWidget/CreateIncubatorDialog/CreateIncubatorDialog.js +4 -5
  340. package/lib/esm/components/IncubatorListWidget/IncubatorListWidget.js +5 -5
  341. package/lib/esm/components/IncubatorSubscribeButton/IncubatorSubscribeButton.js +4 -5
  342. package/lib/esm/components/IncubatorSuggestionWidget/IncubatorSuggestionWidget.js +1 -1
  343. package/lib/esm/components/InviteUserEventButton/InviteUserEventButton.js +2 -3
  344. package/lib/esm/components/LessonAppbar/LessonAppbar.js +4 -5
  345. package/lib/esm/components/LessonCommentObjects/LessonCommentObjects.js +1 -1
  346. package/lib/esm/components/LessonEditForm/LessonEditForm.js +2 -3
  347. package/lib/esm/components/LessonReleaseMenu/LessonReleaseMenu.js +24 -16
  348. package/lib/esm/components/LiveStreamForm/LiveStreamForm.js +16 -13
  349. package/lib/esm/components/LiveStreamRoom/LiveStreamRoom.js +10 -8
  350. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/DisconnectButton.js +5 -1
  351. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/LiveStreamSettingsMenu.js +7 -3
  352. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/LiveStreamVideoConference.js +3 -3
  353. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/ParticipantTile.js +1 -3
  354. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/ParticipantTileActions.js +1 -1
  355. package/lib/esm/components/LocationAutocomplete/LocationAutocomplete.js +12 -12
  356. package/lib/esm/components/LoyaltyProgramWidget/LoyaltyProgramWidget.js +1 -1
  357. package/lib/esm/components/LoyaltyProgramWidget/Skeleton.js +1 -1
  358. package/lib/esm/components/MyEventsWidget/index.d.ts +1 -1
  359. package/lib/esm/components/NavigationMenuIconButton/DefaultDrawerContent.js +3 -2
  360. package/lib/esm/components/NavigationSettingsIconButton/NavigationSettingsIconButton.js +9 -1
  361. package/lib/esm/components/NavigationToolbar/NotificationMenu.js +2 -5
  362. package/lib/esm/components/Notification/CollapsedFor/CollapsedFor.js +3 -1
  363. package/lib/esm/components/Notification/Comment/Comment.js +3 -3
  364. package/lib/esm/components/Notification/Contribution/Contribution.js +1 -1
  365. package/lib/esm/components/Notification/ContributionFollow/ContributionFollow.js +2 -2
  366. package/lib/esm/components/Notification/Course/Course.js +6 -11
  367. package/lib/esm/components/Notification/DeletedFor/DeletedFor.js +4 -2
  368. package/lib/esm/components/Notification/Event/Event.js +8 -13
  369. package/lib/esm/components/Notification/Group/Group.js +4 -5
  370. package/lib/esm/components/Notification/IncubatorApproved/IncubatorApproved.js +3 -3
  371. package/lib/esm/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.js +3 -1
  372. package/lib/esm/components/Notification/KindlyNoticeFor/KindlyNoticeFor.js +5 -3
  373. package/lib/esm/components/Notification/LiveStream/LiveStream.js +5 -10
  374. package/lib/esm/components/Notification/Mention/Mention.js +2 -2
  375. package/lib/esm/components/Notification/Notification.js +18 -10
  376. package/lib/esm/components/Notification/PrivateMessage/PrivateMessage.js +5 -6
  377. package/lib/esm/components/Notification/UndeletedFor/UndeletedFor.js +1 -1
  378. package/lib/esm/components/Notification/UserBlocked/UserBlocked.js +6 -2
  379. package/lib/esm/components/Notification/UserConnection/UserConnection.js +6 -2
  380. package/lib/esm/components/Notification/UserFollow/UserFollow.js +2 -2
  381. package/lib/esm/components/Notification/VoteUp/VoteUp.js +2 -2
  382. package/lib/esm/components/OnBoardingWidget/ActionsButton.js +12 -4
  383. package/lib/esm/components/OnBoardingWidget/OnBoardingWidget.js +20 -28
  384. package/lib/esm/components/OnBoardingWidget/Skeleton.js +1 -1
  385. package/lib/esm/components/OnBoardingWidget/Steps/App/App.js +9 -25
  386. package/lib/esm/components/OnBoardingWidget/Steps/Appearance/Appearance.js +17 -14
  387. package/lib/esm/components/OnBoardingWidget/Steps/Category/Category.js +3 -9
  388. package/lib/esm/components/PaymentDetailDialog/PaymentDetailDialog.js +8 -6
  389. package/lib/esm/components/PaymentOrder/PaymentOrder.js +1 -1
  390. package/lib/esm/components/PaymentOrders/PaymentOrders.js +39 -26
  391. package/lib/esm/components/PaymentProduct/Skeleton.js +1 -1
  392. package/lib/esm/components/PaymentProducts/Skeleton.js +1 -1
  393. package/lib/esm/components/Paywalls/Skeleton.js +1 -1
  394. package/lib/esm/components/PaywallsConfigurator/PaywallsConfigurator.js +4 -4
  395. package/lib/esm/components/PaywallsConfigurator/Skeleton.js +1 -1
  396. package/lib/esm/components/PaywallsDialog/PaywallsDialog.js +9 -7
  397. package/lib/esm/components/PdfPreviewDialog/PdfPreviewDialog.js +3 -1
  398. package/lib/esm/components/PlatformWidget/PlatformWidget.js +6 -6
  399. package/lib/esm/components/PlatformWidget/Skeleton.js +1 -1
  400. package/lib/esm/components/PrivateMessageComponent/PrivateMessageComponent.js +3 -3
  401. package/lib/esm/components/PrivateMessageComponent/Skeleton.js +1 -1
  402. package/lib/esm/components/PrivateMessageEditor/MessageMediaUploader/index.js +2 -2
  403. package/lib/esm/components/PrivateMessageEditor/PrivateMessageEditor.js +6 -4
  404. package/lib/esm/components/PrivateMessageSettingsIconButton/PrivateMessageSettingsIconButton.js +9 -1
  405. package/lib/esm/components/PrivateMessageSnippets/PrivateMessageSnippets.js +10 -8
  406. package/lib/esm/components/PrivateMessageSnippets/Skeleton.js +1 -1
  407. package/lib/esm/components/PrivateMessageThread/PrivateMessageThread.d.ts +1 -1
  408. package/lib/esm/components/PrivateMessageThread/PrivateMessageThread.js +7 -7
  409. package/lib/esm/components/PrivateMessageThread/Skeleton.js +1 -1
  410. package/lib/esm/components/RelatedEventsWidget/index.d.ts +1 -1
  411. package/lib/esm/components/SearchAutocomplete/SearchAutocomplete.js +13 -8
  412. package/lib/esm/components/SnippetNotifications/SnippetNotifications.js +5 -5
  413. package/lib/esm/components/SuggestedEventsWidget/index.d.ts +1 -1
  414. package/lib/esm/components/TagAutocomplete/TagAutocomplete.js +7 -4
  415. package/lib/esm/components/UserActionIconButton/UserActionIconButton.js +10 -9
  416. package/lib/esm/components/UserAddPaymentMethodForm/UserAddPaymentMethodForm.js +5 -7
  417. package/lib/esm/components/UserAutocomplete/UserAutocomplete.js +14 -12
  418. package/lib/esm/components/UserBillingInfo/Skeleton.js +1 -1
  419. package/lib/esm/components/UserBillingInfo/UserBillingInfo.js +30 -22
  420. package/lib/esm/components/UserChangeAddressDialog/UserChangeAddressDialog.js +1 -2
  421. package/lib/esm/components/UserCounters/UserCounters.js +5 -13
  422. package/lib/esm/components/UserInfo/UserInfo.js +1 -1
  423. package/lib/esm/components/UserLiveStreamWidget/index.d.ts +1 -1
  424. package/lib/esm/components/UserPaymentMethods/Skeleton.d.ts +24 -3
  425. package/lib/esm/components/UserPaymentMethods/Skeleton.js +2 -4
  426. package/lib/esm/components/UserPaymentMethods/UserPaymentMethods.d.ts +25 -3
  427. package/lib/esm/components/UserPaymentMethods/UserPaymentMethods.js +11 -12
  428. package/lib/esm/components/UserProfileBlocked/UserProfileBlocked.js +2 -3
  429. package/lib/esm/components/UserProfileEdit/Section/AccountCredentials.js +10 -7
  430. package/lib/esm/components/UserProfileEdit/Section/PublicInfo.js +12 -23
  431. package/lib/esm/components/UserProfileEdit/Skeleton.js +1 -1
  432. package/lib/esm/components/UserSubscribedGroupsWidget/UserSubscribedGroupsWidget.js +1 -1
  433. package/lib/esm/components/VoteAudienceButton/VoteAudienceButton.d.ts +2 -2
  434. package/lib/esm/components/VoteAudienceButton/VoteAudienceButton.js +5 -6
  435. package/lib/esm/components/VoteButton/VoteButton.d.ts +2 -2
  436. package/lib/esm/components/VoteButton/VoteButton.js +3 -4
  437. package/lib/esm/shared/AddUsersButton/AddUsersButton.js +3 -2
  438. package/lib/esm/shared/ConfirmDialog/ConfirmDialog.js +1 -2
  439. package/lib/esm/shared/ContributionActionsMenu/index.js +3 -9
  440. package/lib/esm/shared/CopyTextArea/index.js +12 -6
  441. package/lib/esm/shared/CourseUsersTable/ChangeUsersStatus.js +2 -3
  442. package/lib/esm/shared/CourseUsersTable/CourseUsersTable.js +7 -6
  443. package/lib/esm/shared/CourseUsersTable/RemoveButton.js +2 -3
  444. package/lib/esm/shared/CourseUsersTable/RequestButton.js +2 -3
  445. package/lib/esm/shared/CustomSnackMessage/index.js +2 -2
  446. package/lib/esm/shared/DateTimeAgo/index.js +2 -2
  447. package/lib/esm/shared/EmojiPicker/EmojiPicker.d.ts +1 -2
  448. package/lib/esm/shared/EventActionsMenu/index.js +9 -1
  449. package/lib/esm/shared/HiddenPurchasableContent/HiddenPurchasableContent.js +3 -4
  450. package/lib/esm/shared/InfiniteScroll/stories/ScrolleableTop.js +1 -1
  451. package/lib/esm/shared/LessonCommentActionsMenu/index.js +2 -8
  452. package/lib/esm/shared/Lightbox/BaseLightbox.js +1 -1
  453. package/lib/esm/shared/Media/File/DisplayComponent.js +4 -6
  454. package/lib/esm/shared/Media/File/DocComponent.d.ts +2 -0
  455. package/lib/esm/shared/Media/File/DocComponent.js +3 -2
  456. package/lib/esm/shared/Media/File/PreviewComponent.js +4 -3
  457. package/lib/esm/shared/Media/File/TriggerButton.js +9 -1
  458. package/lib/esm/shared/Media/File/asUploadButton.d.ts +1 -1
  459. package/lib/esm/shared/Media/File/asUploadButton.js +3 -3
  460. package/lib/esm/shared/Media/Link/DisplayComponent.js +5 -13
  461. package/lib/esm/shared/Media/Link/UrlTextField/index.js +3 -1
  462. package/lib/esm/shared/MessageChunkUploader/index.js +1 -1
  463. package/lib/esm/shared/PasswordTextField/index.js +7 -5
  464. package/lib/esm/shared/ScrollContainer/index.js +1 -1
  465. package/lib/esm/shared/TagChip/index.d.ts +2 -48
  466. package/lib/esm/shared/TagChip/index.js +2 -2
  467. package/lib/esm/shared/Tags/index.js +9 -9
  468. package/lib/esm/shared/VirtualizedScroller/VirtualizedScroller.d.ts +1 -1
  469. package/lib/umd/484.js +2 -0
  470. package/lib/umd/484.js.LICENSE.txt +9 -0
  471. package/lib/umd/react-ui.js +1 -1
  472. package/package.json +207 -206
  473. package/lib/cjs/shared/UpScalingTierBadge/UpScalingTierBadge.d.ts +0 -5
  474. package/lib/cjs/shared/UpScalingTierBadge/UpScalingTierBadge.js +0 -14
  475. package/lib/esm/shared/UpScalingTierBadge/UpScalingTierBadge.d.ts +0 -5
  476. package/lib/esm/shared/UpScalingTierBadge/UpScalingTierBadge.js +0 -10
  477. package/lib/umd/155.js +0 -2
  478. package/lib/umd/155.js.LICENSE.txt +0 -24
@@ -9,7 +9,6 @@ const components_core_1 = require("@livekit/components-core");
9
9
  const components_react_1 = require("@livekit/components-react");
10
10
  const ParticipantTileAvatar_1 = tslib_1.__importDefault(require("./ParticipantTileAvatar"));
11
11
  const ParticipantTileActions_1 = tslib_1.__importDefault(require("./ParticipantTileActions"));
12
- const react_core_1 = require("@selfcommunity/react-core");
13
12
  /**
14
13
  * The `ParticipantContextIfNeeded` component only creates a `ParticipantContext`
15
14
  * if there is no `ParticipantContext` already.
@@ -35,7 +34,6 @@ exports.ParticipantTile =
35
34
  /* @__PURE__ */ React.forwardRef(function ParticipantTile(_a, ref) {
36
35
  var _b, _c;
37
36
  var { trackRef, children, onParticipantClick, disableSpeakingIndicator, disableTileFocusToggle = false, disableTileActions = false } = _a, htmlProps = tslib_1.__rest(_a, ["trackRef", "children", "onParticipantClick", "disableSpeakingIndicator", "disableTileFocusToggle", "disableTileActions"]);
38
- const scUserContext = (0, react_core_1.useSCUser)();
39
37
  const trackReference = (0, components_react_1.useEnsureTrackRef)(trackRef);
40
38
  const { elementProps } = (0, components_react_1.useParticipantTile)({
41
39
  htmlProps,
@@ -61,5 +59,5 @@ exports.ParticipantTile =
61
59
  trackReference.source === livekit_client_1.Track.Source.ScreenShare) ? ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)(components_react_1.VideoTrack, { trackRef: trackReference, onSubscriptionStatusChanged: handleSubscribe, manageSubscription: autoManageSubscription }) })) : ((0, components_core_1.isTrackReference)(trackReference) && ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)(components_react_1.AudioTrack, { trackRef: trackReference, onSubscriptionStatusChanged: handleSubscribe }) }))), (0, jsx_runtime_1.jsx)("div", Object.assign({ className: "lk-participant-placeholder" }, { children: (0, jsx_runtime_1.jsx)(ParticipantTileAvatar_1.default, { participant: trackReference.participant }) })), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "lk-participant-metadata" }, { children: [(0, jsx_runtime_1.jsx)("div", Object.assign({ className: "lk-participant-metadata-item" }, { children: trackReference.source === livekit_client_1.Track.Source.Camera ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [isEncrypted && (0, jsx_runtime_1.jsx)(components_react_1.LockLockedIcon, { style: { marginRight: '0.25rem' } }), (0, jsx_runtime_1.jsx)(components_react_1.TrackMutedIndicator, { trackRef: {
62
60
  participant: trackReference.participant,
63
61
  source: livekit_client_1.Track.Source.Microphone
64
- }, show: 'muted' }), (0, jsx_runtime_1.jsx)(components_react_1.ParticipantName, { children: !disableTileActions && (0, jsx_runtime_1.jsx)(ParticipantTileActions_1.default, {}) })] })) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(components_react_1.ScreenShareIcon, { style: { marginRight: '0.25rem' } }), (0, jsx_runtime_1.jsx)(components_react_1.ParticipantName, { children: "'s screen" })] })) })), (0, jsx_runtime_1.jsx)(components_react_1.ConnectionQualityIndicator, { className: "lk-participant-metadata-item" })] }))] })), !disableTileFocusToggle && (0, jsx_runtime_1.jsx)(components_react_1.FocusToggle, { trackRef: trackReference })] })) })) })));
62
+ }, show: "muted" }), (0, jsx_runtime_1.jsx)(components_react_1.ParticipantName, { children: !disableTileActions && (0, jsx_runtime_1.jsx)(ParticipantTileActions_1.default, {}) })] })) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(components_react_1.ScreenShareIcon, { style: { marginRight: '0.25rem' } }), (0, jsx_runtime_1.jsx)(components_react_1.ParticipantName, { children: "'s screen" })] })) })), (0, jsx_runtime_1.jsx)(components_react_1.ConnectionQualityIndicator, { className: "lk-participant-metadata-item" })] }))] })), !disableTileFocusToggle && (0, jsx_runtime_1.jsx)(components_react_1.FocusToggle, { trackRef: trackReference })] })) })) })));
65
63
  });
@@ -200,7 +200,7 @@ function ContributionActionsMenu(props) {
200
200
  */
201
201
  return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, { children: [(0, jsx_runtime_1.jsx)(material_2.IconButton, Object.assign({ ref: (ref) => {
202
202
  popperRef.current = ref;
203
- }, "aria-haspopup": "true", onClick: handleOpen, className: classes.button, size: "small" }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "expand_more" }) })), open && ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: isMobile ? ((0, jsx_runtime_1.jsx)(material_2.SwipeableDrawer, Object.assign({ open: true, onClose: handleClose, onOpen: handleOpen, anchor: "bottom", disableSwipeToOpen: true }, { children: renderContent() }))) : ((0, jsx_runtime_1.jsx)(PopperRoot, Object.assign({ open: true, anchorEl: popperRef.current, role: undefined, transition: true, className: classes.popperRoot }, PopperProps, { placement: "right" }, { children: ({ TransitionProps, placement }) => ((0, jsx_runtime_1.jsx)(material_2.Grow, Object.assign({}, TransitionProps, { style: { transformOrigin: placement === 'bottom' ? 'center top' : 'center bottom' } }, { children: (0, jsx_runtime_1.jsx)(material_2.Paper, Object.assign({ variant: 'outlined', className: classes.paper }, { children: (0, jsx_runtime_1.jsx)(material_2.ClickAwayListener, Object.assign({ onClickAway: handleClose }, { children: renderContent() })) })) }))) }))) })), openConfirmDialog && ((0, jsx_runtime_1.jsx)(ConfirmDialog_1.default, Object.assign({ open: openConfirmDialog }, (currentAction === constants_1.REMOVE_ROOM_USER
203
+ }, "aria-haspopup": "true", onClick: handleOpen, className: classes.button, size: "small" }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "expand_more" }) })), open && ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: isMobile ? ((0, jsx_runtime_1.jsx)(material_2.SwipeableDrawer, Object.assign({ open: true, onClose: handleClose, onOpen: handleOpen, anchor: "bottom", disableSwipeToOpen: true }, { children: renderContent() }))) : ((0, jsx_runtime_1.jsx)(PopperRoot, Object.assign({ open: true, anchorEl: popperRef.current, role: undefined, transition: true, className: classes.popperRoot }, PopperProps, { placement: "right" }, { children: ({ TransitionProps, placement }) => ((0, jsx_runtime_1.jsx)(material_2.Grow, Object.assign({}, TransitionProps, { style: { transformOrigin: placement === 'bottom' ? 'center top' : 'center bottom' } }, { children: (0, jsx_runtime_1.jsx)(material_2.Paper, Object.assign({ variant: "outlined", className: classes.paper }, { children: (0, jsx_runtime_1.jsx)(material_2.ClickAwayListener, Object.assign({ onClickAway: handleClose }, { children: renderContent() })) })) }))) }))) })), openConfirmDialog && ((0, jsx_runtime_1.jsx)(ConfirmDialog_1.default, Object.assign({ open: openConfirmDialog }, (currentAction === constants_1.REMOVE_ROOM_USER
204
204
  ? {
205
205
  content: ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.liveStreamRoom.participantTileActions.removeRoomUser", defaultMessage: "ui.liveStreamRoom.participantTileActions.removeRoomUser" }))
206
206
  }
@@ -2,13 +2,12 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
- const react_1 = tslib_1.__importStar(require("react"));
5
+ const react_1 = require("react");
6
6
  const react_intl_1 = require("react-intl");
7
7
  const material_1 = require("@mui/material");
8
8
  const api_services_1 = require("@selfcommunity/api-services");
9
9
  const parse_1 = tslib_1.__importDefault(require("autosuggest-highlight/parse"));
10
10
  const match_1 = tslib_1.__importDefault(require("autosuggest-highlight/match"));
11
- const system_1 = require("@mui/system");
12
11
  const PREFIX = 'SCLocationAutocomplete';
13
12
  const classes = {
14
13
  root: `${PREFIX}-root`
@@ -16,7 +15,7 @@ const classes = {
16
15
  const Root = (0, material_1.styled)(material_1.Autocomplete, {
17
16
  name: PREFIX,
18
17
  slot: 'Root',
19
- overridesResolver: (props, styles) => styles.root
18
+ overridesResolver: (_props, styles) => styles.root
20
19
  })(() => ({
21
20
  minWidth: 120
22
21
  }));
@@ -44,7 +43,7 @@ const Root = (0, material_1.styled)(material_1.Autocomplete, {
44
43
  */
45
44
  function LocationAutocomplete(inProps) {
46
45
  // Props
47
- const props = (0, system_1.useThemeProps)({
46
+ const props = (0, material_1.useThemeProps)({
48
47
  props: inProps,
49
48
  name: PREFIX
50
49
  });
@@ -85,11 +84,11 @@ function LocationAutocomplete(inProps) {
85
84
  }
86
85
  }, [value]);
87
86
  // Handlers
88
- const handleChange = (event, value) => {
87
+ const handleChange = (_event, value) => {
89
88
  setValue(value ? { location: value.full_address, lat: value.lat, lng: value.lng } : null);
90
89
  onChange && onChange(value);
91
90
  };
92
- const handleSearch = (event, _search) => {
91
+ const handleSearch = (_event, _search) => {
93
92
  setSearch(_search);
94
93
  };
95
94
  // Render
@@ -99,14 +98,15 @@ function LocationAutocomplete(inProps) {
99
98
  }
100
99
  return [...locations, { lat: value.lat, lng: value.lng, full_address: value.location }];
101
100
  }, [value, locations]);
102
- return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: classes.root, options: options || [],
103
- // @ts-ignore
104
- getOptionLabel: (option) => (option === null || option === void 0 ? void 0 : option.full_address) || (option === null || option === void 0 ? void 0 : option.location) || '', filterOptions: (x) => x, autoComplete: true, includeInputInList: true, value: value || null, selectOnFocus: true, handleHomeEndKeys: true, disabled: disabled, noOptionsText: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.locationAutocomplete.empty", defaultMessage: "ui.locationAutocomplete.empty" }), onChange: handleChange, onInputChange: handleSearch, isOptionEqualToValue: (option, value) => value.lat === option.lat && value.lng === option.lng, renderInput: (params) => {
105
- return ((0, jsx_runtime_1.jsx)(material_1.TextField, Object.assign({}, params, TextFieldProps, { margin: "dense", InputProps: Object.assign(Object.assign({}, params.InputProps), { autoComplete: 'location', endAdornment: ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [isLoading ? (0, jsx_runtime_1.jsx)(material_1.CircularProgress, { color: "inherit", size: 20 }) : null, params.InputProps.endAdornment] })) }) })));
101
+ return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: classes.root, options: options || [], getOptionLabel: (option) => (option === null || option === void 0 ? void 0 : option['full_address']) || (option === null || option === void 0 ? void 0 : option['location']) || '', filterOptions: (x) => x, autoComplete: true, includeInputInList: true, value: value || null, selectOnFocus: true, handleHomeEndKeys: true, disabled: disabled, noOptionsText: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.locationAutocomplete.empty", defaultMessage: "ui.locationAutocomplete.empty" }), onChange: handleChange, onInputChange: handleSearch, isOptionEqualToValue: (option, value) => value.lat === option.lat && value.lng === option.lng, renderInput: (params) => {
102
+ return ((0, jsx_runtime_1.jsx)(material_1.TextField, Object.assign({}, params, TextFieldProps, { margin: "dense", slotProps: {
103
+ input: Object.assign(Object.assign({}, params.InputProps), { autoComplete: 'location', endAdornment: ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [isLoading ? (0, jsx_runtime_1.jsx)(material_1.CircularProgress, { color: "inherit", size: 20 }) : null, params.InputProps.endAdornment] })) })
104
+ } })));
106
105
  }, renderOption: (props, option, { inputValue }) => {
106
+ const { key } = props, rest = tslib_1.__rest(props, ["key"]);
107
107
  const matches = (0, match_1.default)(option.full_address, inputValue);
108
108
  const parts = (0, parse_1.default)(option.full_address, matches);
109
- return ((0, jsx_runtime_1.jsx)("li", Object.assign({}, props, { style: { whiteSpace: 'break-spaces' } }, { children: parts.map((part, index) => part.highlight ? ((0, jsx_runtime_1.jsx)("span", Object.assign({ style: { fontWeight: 700 } }, { children: part.text }), index)) : (part.text)) }), `${option.lat}_${option.lng}`));
109
+ return ((0, jsx_runtime_1.jsx)("li", Object.assign({}, rest, { style: { whiteSpace: 'break-spaces' } }, { children: parts.map((part, index) => part.highlight ? ((0, jsx_runtime_1.jsx)("span", Object.assign({ style: { fontWeight: 700 } }, { children: part.text }), index)) : (part.text)) }), key || `${option.lat}_${option.lng}`));
110
110
  } }, rest)));
111
111
  }
112
112
  exports.default = LocationAutocomplete;
@@ -111,6 +111,6 @@ function LoyaltyProgramWidget(inProps) {
111
111
  if (loading) {
112
112
  return (0, jsx_runtime_1.jsx)(Skeleton_1.default, {});
113
113
  }
114
- return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, rest, { children: [(0, jsx_runtime_1.jsx)(material_1.CardContent, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ className: classes.title }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.loyaltyProgramWidget.title", defaultMessage: "ui.loyaltyProgramWidget.title" }) })) }), (0, jsx_runtime_1.jsxs)(material_1.CardActions, Object.assign({ className: classes.actions }, { children: [(0, jsx_runtime_1.jsxs)(material_1.Typography, Object.assign({ className: classes.points }, { children: [(0, jsx_runtime_1.jsx)(material_1.Chip, { size: 'medium', component: "span", label: points }), (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.loyaltyProgramWidget.points", defaultMessage: "ui.loyaltyProgramWidget.points" })] })), (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ size: "small", variant: "outlined", className: classes.discoverMore, component: react_core_2.Link, to: scRoutingContext.url(react_core_2.SCRoutes.LOYALTY_ROUTE_NAME, {}) }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.loyaltyProgramWidget.discover", defaultMessage: "ui.loyaltyProgramWidget.discover" }) }))] }))] })));
114
+ return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, rest, { children: [(0, jsx_runtime_1.jsx)(material_1.CardContent, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ className: classes.title }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.loyaltyProgramWidget.title", defaultMessage: "ui.loyaltyProgramWidget.title" }) })) }), (0, jsx_runtime_1.jsxs)(material_1.CardActions, Object.assign({ className: classes.actions }, { children: [(0, jsx_runtime_1.jsxs)(material_1.Typography, Object.assign({ className: classes.points }, { children: [(0, jsx_runtime_1.jsx)(material_1.Chip, { size: "medium", component: "span", label: points }), (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.loyaltyProgramWidget.points", defaultMessage: "ui.loyaltyProgramWidget.points" })] })), (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ size: "small", variant: "outlined", className: classes.discoverMore, component: react_core_2.Link, to: scRoutingContext.url(react_core_2.SCRoutes.LOYALTY_ROUTE_NAME, {}) }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.loyaltyProgramWidget.discover", defaultMessage: "ui.loyaltyProgramWidget.discover" }) }))] }))] })));
115
115
  }
116
116
  exports.default = LoyaltyProgramWidget;
@@ -43,6 +43,6 @@ const Root = (0, material_1.styled)(Widget_1.default, {
43
43
  *
44
44
  */
45
45
  function LoyaltyProgramWidgetSkeleton() {
46
- return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: classes.root }, { children: [(0, jsx_runtime_1.jsx)(material_1.CardContent, Object.assign({ className: classes.content }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ className: classes.title }, { children: (0, jsx_runtime_1.jsx)(material_1.Skeleton, { animation: "wave", height: 25, width: "40%", variant: "rectangular" }) })) })), (0, jsx_runtime_1.jsxs)(material_1.CardActions, Object.assign({ className: classes.actions }, { children: [(0, jsx_runtime_1.jsxs)(material_1.Typography, Object.assign({ className: classes.points }, { children: [(0, jsx_runtime_1.jsx)(material_1.Skeleton, { animation: "wave", variant: "circular", width: 60, height: 30, className: classes.chip }), (0, jsx_runtime_1.jsx)(material_1.Skeleton, { animation: "wave", height: 20, width: 90, variant: "rectangular" })] })), (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ disabled: true, variant: 'outlined', size: 'small' }, { children: (0, jsx_runtime_1.jsx)(material_1.Skeleton, { animation: "wave", height: 20, width: 70, variant: "text" }) }))] }))] })));
46
+ return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: classes.root }, { children: [(0, jsx_runtime_1.jsx)(material_1.CardContent, Object.assign({ className: classes.content }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ className: classes.title }, { children: (0, jsx_runtime_1.jsx)(material_1.Skeleton, { animation: "wave", height: 25, width: "40%", variant: "rectangular" }) })) })), (0, jsx_runtime_1.jsxs)(material_1.CardActions, Object.assign({ className: classes.actions }, { children: [(0, jsx_runtime_1.jsxs)(material_1.Typography, Object.assign({ className: classes.points }, { children: [(0, jsx_runtime_1.jsx)(material_1.Skeleton, { animation: "wave", variant: "circular", width: 60, height: 30, className: classes.chip }), (0, jsx_runtime_1.jsx)(material_1.Skeleton, { animation: "wave", height: 20, width: 90, variant: "rectangular" })] })), (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ disabled: true, variant: "outlined", size: "small" }, { children: (0, jsx_runtime_1.jsx)(material_1.Skeleton, { animation: "wave", height: 20, width: 70, variant: "text" }) }))] }))] })));
47
47
  }
48
48
  exports.default = LoyaltyProgramWidgetSkeleton;
@@ -1,4 +1,4 @@
1
1
  import MyEventsWidget, { MyEventsWidgetProps } from './MyEventsWidget';
2
2
  import MyEventsWidgetSkeleton from './Skeleton';
3
3
  export default MyEventsWidget;
4
- export { MyEventsWidgetSkeleton, type MyEventsWidgetProps };
4
+ export { MyEventsWidgetSkeleton, MyEventsWidgetProps };
@@ -90,7 +90,8 @@ function DefaultDrawerContent(inProps) {
90
90
  (0, seamless_scroll_polyfill_1.scroll)(window, { top: 0, behavior: 'smooth' });
91
91
  }
92
92
  }
93
- }, [onClickHome]);
93
+ onClose === null || onClose === void 0 ? void 0 : onClose();
94
+ }, [onClickHome, onClose]);
94
95
  // Order categories
95
96
  (0, react_1.useEffect)(() => {
96
97
  if (!scUserContext.user || (scUserContext.user && showAllCategories)) {
@@ -123,7 +124,7 @@ function DefaultDrawerContent(inProps) {
123
124
  }
124
125
  });
125
126
  //order
126
- return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: (0, classnames_1.default)(className, classes.root) }, rest, { children: [(0, jsx_runtime_1.jsxs)(material_1.List, Object.assign({ className: classes.navigation }, { children: [scUserContext.user && ((0, jsx_runtime_1.jsx)(material_1.ListItem, Object.assign({ disablePadding: true }, { children: (0, jsx_runtime_1.jsxs)(material_1.ListItemButton, Object.assign({ component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.HOME_ROUTE_NAME, {}), onClick: handleClickHome }, { children: [(0, jsx_runtime_1.jsx)(material_1.ListItemIcon, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "home" }) }), (0, jsx_runtime_1.jsx)(material_1.ListItemText, { primary: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.navigationMenuIconButton.defaultDrawerContent.navigation.home", defaultMessage: "ui.navigationMenuIconButton.defaultDrawerContent.navigation.home" }) })] })) }))), coursesEnabled && (scUserContext.user || contentAvailable) && ((0, jsx_runtime_1.jsx)(material_1.ListItem, Object.assign({ disablePadding: true }, { children: (0, jsx_runtime_1.jsxs)(material_1.ListItemButton, Object.assign({ component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.COURSES_ROUTE_NAME, {}) }, { children: [(0, jsx_runtime_1.jsx)(material_1.ListItemIcon, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "courses" }) }), (0, jsx_runtime_1.jsx)(material_1.ListItemText, { primary: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.navigationMenuIconButton.defaultDrawerContent.navigation.courses", defaultMessage: "ui.navigationMenuIconButton.defaultDrawerContent.navigation.courses" }) })] })) }))), groupsEnabled && scUserContext.user && ((0, jsx_runtime_1.jsx)(material_1.ListItem, Object.assign({ disablePadding: true }, { children: (0, jsx_runtime_1.jsxs)(material_1.ListItemButton, Object.assign({ component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.GROUPS_ROUTE_NAME, {}) }, { children: [(0, jsx_runtime_1.jsx)(material_1.ListItemIcon, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "groups" }) }), (0, jsx_runtime_1.jsx)(material_1.ListItemText, { primary: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.navigationMenuIconButton.defaultDrawerContent.navigation.groups", defaultMessage: "ui.navigationMenuIconButton.defaultDrawerContent.navigation.groups" }) })] })) }))), eventsEnabled && (scUserContext.user || contentAvailable) && ((0, jsx_runtime_1.jsx)(material_1.ListItem, Object.assign({ disablePadding: true }, { children: (0, jsx_runtime_1.jsxs)(material_1.ListItemButton, Object.assign({ component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.EVENTS_ROUTE_NAME, {}) }, { children: [(0, jsx_runtime_1.jsx)(material_1.ListItemIcon, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "CalendarIcon" }) }), (0, jsx_runtime_1.jsx)(material_1.ListItemText, { primary: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.navigationMenuIconButton.defaultDrawerContent.navigation.events", defaultMessage: "ui.navigationMenuIconButton.defaultDrawerContent.navigation.events" }) })] })) }))), exploreStreamEnabled && (contentAvailable || scUserContext.user) && ((0, jsx_runtime_1.jsx)(material_1.ListItem, Object.assign({ disablePadding: true }, { children: (0, jsx_runtime_1.jsxs)(material_1.ListItemButton, Object.assign({ component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.EXPLORE_ROUTE_NAME, {}) }, { children: [(0, jsx_runtime_1.jsx)(material_1.ListItemIcon, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "explore" }) }), (0, jsx_runtime_1.jsx)(material_1.ListItemText, { primary: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.navigationMenuIconButton.defaultDrawerContent.navigation.explore", defaultMessage: "ui.navigationMenuIconButton.defaultDrawerContent.navigation.explore" }) })] })) })))] })), (0, jsx_runtime_1.jsx)(material_1.Divider, {}), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "subtitle1", className: classes.title }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.navigationMenuIconButton.defaultDrawerContent.category.title", defaultMessage: "ui.navigationMenuIconButton.defaultDrawerContent.category.title" }) })), !categoriesOrdered.length && ((0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body1", className: classes.noResults }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.navigationMenuIconButton.defaultDrawerContent.category.noResults", defaultMessage: "ui.navigationMenuIconButton.defaultDrawerContent.category.noResults" }) }))), (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [Object.entries(taggedCategories).map(([tagName, categories]) => {
127
+ return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: (0, classnames_1.default)(className, classes.root) }, rest, { children: [(0, jsx_runtime_1.jsxs)(material_1.List, Object.assign({ className: classes.navigation }, { children: [scUserContext.user && ((0, jsx_runtime_1.jsx)(material_1.ListItem, Object.assign({ disablePadding: true }, { children: (0, jsx_runtime_1.jsxs)(material_1.ListItemButton, Object.assign({ component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.HOME_ROUTE_NAME, {}), onClick: handleClickHome }, { children: [(0, jsx_runtime_1.jsx)(material_1.ListItemIcon, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "home" }) }), (0, jsx_runtime_1.jsx)(material_1.ListItemText, { primary: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.navigationMenuIconButton.defaultDrawerContent.navigation.home", defaultMessage: "ui.navigationMenuIconButton.defaultDrawerContent.navigation.home" }) })] })) }))), coursesEnabled && (scUserContext.user || contentAvailable) && ((0, jsx_runtime_1.jsx)(material_1.ListItem, Object.assign({ disablePadding: true }, { children: (0, jsx_runtime_1.jsxs)(material_1.ListItemButton, Object.assign({ component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.COURSES_ROUTE_NAME, {}), onClick: onClose }, { children: [(0, jsx_runtime_1.jsx)(material_1.ListItemIcon, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "courses" }) }), (0, jsx_runtime_1.jsx)(material_1.ListItemText, { primary: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.navigationMenuIconButton.defaultDrawerContent.navigation.courses", defaultMessage: "ui.navigationMenuIconButton.defaultDrawerContent.navigation.courses" }) })] })) }))), groupsEnabled && scUserContext.user && ((0, jsx_runtime_1.jsx)(material_1.ListItem, Object.assign({ disablePadding: true }, { children: (0, jsx_runtime_1.jsxs)(material_1.ListItemButton, Object.assign({ component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.GROUPS_ROUTE_NAME, {}), onClick: onClose }, { children: [(0, jsx_runtime_1.jsx)(material_1.ListItemIcon, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "groups" }) }), (0, jsx_runtime_1.jsx)(material_1.ListItemText, { primary: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.navigationMenuIconButton.defaultDrawerContent.navigation.groups", defaultMessage: "ui.navigationMenuIconButton.defaultDrawerContent.navigation.groups" }) })] })) }))), eventsEnabled && (scUserContext.user || contentAvailable) && ((0, jsx_runtime_1.jsx)(material_1.ListItem, Object.assign({ disablePadding: true }, { children: (0, jsx_runtime_1.jsxs)(material_1.ListItemButton, Object.assign({ component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.EVENTS_ROUTE_NAME, {}), onClick: onClose }, { children: [(0, jsx_runtime_1.jsx)(material_1.ListItemIcon, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "CalendarIcon" }) }), (0, jsx_runtime_1.jsx)(material_1.ListItemText, { primary: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.navigationMenuIconButton.defaultDrawerContent.navigation.events", defaultMessage: "ui.navigationMenuIconButton.defaultDrawerContent.navigation.events" }) })] })) }))), exploreStreamEnabled && (contentAvailable || scUserContext.user) && ((0, jsx_runtime_1.jsx)(material_1.ListItem, Object.assign({ disablePadding: true }, { children: (0, jsx_runtime_1.jsxs)(material_1.ListItemButton, Object.assign({ component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.EXPLORE_ROUTE_NAME, {}), onClick: onClose }, { children: [(0, jsx_runtime_1.jsx)(material_1.ListItemIcon, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "explore" }) }), (0, jsx_runtime_1.jsx)(material_1.ListItemText, { primary: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.navigationMenuIconButton.defaultDrawerContent.navigation.explore", defaultMessage: "ui.navigationMenuIconButton.defaultDrawerContent.navigation.explore" }) })] })) })))] })), (0, jsx_runtime_1.jsx)(material_1.Divider, {}), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "subtitle1", className: classes.title }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.navigationMenuIconButton.defaultDrawerContent.category.title", defaultMessage: "ui.navigationMenuIconButton.defaultDrawerContent.category.title" }) })), !categoriesOrdered.length && ((0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body1", className: classes.noResults }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.navigationMenuIconButton.defaultDrawerContent.category.noResults", defaultMessage: "ui.navigationMenuIconButton.defaultDrawerContent.category.noResults" }) }))), (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [Object.entries(taggedCategories).map(([tagName, categories]) => {
127
128
  var _a;
128
129
  if (!categories.length || !((_a = categories[0].tags) === null || _a === void 0 ? void 0 : _a.length))
129
130
  return null;
@@ -247,6 +247,14 @@ function NavigationSettingsIconButton(inProps) {
247
247
  if (!scUserContext.user) {
248
248
  return null;
249
249
  }
250
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, rest, { onClick: handleOpen }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "more_vert" }) })), Boolean(anchorEl) && ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: isMobile ? ((0, jsx_runtime_1.jsx)(SwipeableDrawerRoot, Object.assign({ onClick: () => setAnchorEl(null), className: classes.drawerRoot, anchor: "bottom", open: true, onClose: handleClose, onOpen: handleOpen, PaperProps: { className: classes.paper }, disableSwipeToOpen: true }, { children: (0, jsx_runtime_1.jsx)(material_1.List, { children: renderList() }) }))) : ((0, jsx_runtime_1.jsx)(MenuRoot, Object.assign({ onClick: () => setAnchorEl(null), className: classes.menuRoot, anchorEl: anchorEl, open: true, onClose: handleClose, PaperProps: { className: classes.paper } }, { children: renderList() }))) }))] }));
250
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, rest, { onClick: handleOpen }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "more_vert" }) })), Boolean(anchorEl) && ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: isMobile ? ((0, jsx_runtime_1.jsx)(SwipeableDrawerRoot, Object.assign({ onClick: () => setAnchorEl(null), className: classes.drawerRoot, anchor: "bottom", open: true, onClose: handleClose, onOpen: handleOpen, slotProps: {
251
+ paper: {
252
+ className: classes.paper
253
+ }
254
+ }, disableSwipeToOpen: true }, { children: (0, jsx_runtime_1.jsx)(material_1.List, { children: renderList() }) }))) : ((0, jsx_runtime_1.jsx)(MenuRoot, Object.assign({ onClick: () => setAnchorEl(null), className: classes.menuRoot, anchorEl: anchorEl, open: true, onClose: handleClose, slotProps: {
255
+ paper: {
256
+ className: classes.paper
257
+ }
258
+ } }, { children: renderList() }))) }))] }));
251
259
  }
252
260
  exports.default = NavigationSettingsIconButton;
@@ -24,12 +24,9 @@ function NotificationMenu(inProps) {
24
24
  props: inProps,
25
25
  name: constants_1.PREFIX
26
26
  });
27
- const { PaperProps = { className: classes.paper }, MenuListProps = { component: material_1.Box }, SnippetNotificationsProps = {} } = props, rest = tslib_1.__rest(props, ["PaperProps", "MenuListProps", "SnippetNotificationsProps"]);
27
+ const { slotProps = { paper: { className: classes.paper }, list: { component: material_1.Box } }, SnippetNotificationsProps = {} } = props, rest = tslib_1.__rest(props, ["slotProps", "SnippetNotificationsProps"]);
28
28
  // HOOKS
29
29
  const scRoutingContext = (0, react_core_1.useSCRouting)();
30
- return (
31
- // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
32
- // @ts-ignore
33
- (0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: classes.root, PaperProps: PaperProps, MenuListProps: MenuListProps }, rest, { children: [(0, jsx_runtime_1.jsx)(SnippetNotifications_1.default, Object.assign({ className: classes.notifications }, SnippetNotificationsProps)), (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ className: classes.link, component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.USER_NOTIFICATIONS_ROUTE_NAME, {}), variant: "text" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.header.notifications.button.seeMore", defaultMessage: "ui.header.notifications.button.seeMore" }) }))] })));
30
+ return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: classes.root, slotProps: slotProps }, rest, { children: [(0, jsx_runtime_1.jsx)(SnippetNotifications_1.default, Object.assign({ className: classes.notifications }, SnippetNotificationsProps)), (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ className: classes.link, component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.USER_NOTIFICATIONS_ROUTE_NAME, {}), variant: "text" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.header.notifications.button.seeMore", defaultMessage: "ui.header.notifications.button.seeMore" }) }))] })));
34
31
  }
35
32
  exports.default = NotificationMenu;
@@ -65,6 +65,8 @@ function CollapsedForNotification(props) {
65
65
  /**
66
66
  * Renders root object
67
67
  */
68
- return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${constants_1.PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: (0, jsx_runtime_1.jsx)(material_1.Avatar, Object.assign({ variant: "circular", classes: { root: classes.flagIcon } }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "outlined_flag" }) })), primary: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: isSnippetTemplate ? ((0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(notificationObject[contributionType])) }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ component: "div", color: "inherit", className: classes.flagText }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: `ui.notification.collapsedFor.${(0, utils_1.camelCase)(notificationObject.type)}Snippet`, defaultMessage: `ui.notification.collapsedFor.${(0, utils_1.camelCase)(notificationObject.type)}Snippet` }) })) }))) : ((0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ component: "div", color: "inherit", className: classes.flagText }, { children: intl.formatMessage(messages[(0, utils_1.camelCase)(notificationObject.type)], { b: (...chunks) => (0, jsx_runtime_1.jsx)("strong", { children: chunks }) }) }))) }), secondary: (template === types_1.SCNotificationObjectTemplateType.DETAIL || template === types_1.SCNotificationObjectTemplateType.SNIPPET) && ((0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at, className: classes.activeAt })), footer: isSnippetTemplate ? null : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ className: classes.contributionWrap }, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: 'body2', color: 'inherit', component: 'div', classes: { root: classes.contributionYouWroteLabel } }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.notification.collapsedFor.youWrote", defaultMessage: "ui.notification.collapsedFor.youWrote" }) })), (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(notificationObject[contributionType])), className: classes.contributionText }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ component: 'span', variant: "body2", gutterBottom: true }, { children: (0, contribution_1.getContributionSnippet)(notificationObject[contributionType]) })) }))] })), template === types_1.SCNotificationObjectTemplateType.TOAST && ((0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: [(0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at }), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ color: "primary", component: 'div' }, { children: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes[`${notificationObject[contributionType]['type'].toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(notificationObject[contributionType])) }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userToastNotifications.viewContribution", defaultMessage: 'ui.userToastNotifications.viewContribution' }) })) }))] })))] })) }, rest)));
68
+ return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${constants_1.PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: (0, jsx_runtime_1.jsx)(material_1.Avatar, Object.assign({ variant: "circular", classes: { root: classes.flagIcon } }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "outlined_flag" }) })), primary: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: isSnippetTemplate ? ((0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(notificationObject[contributionType])) }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ component: "div", color: "inherit", className: classes.flagText }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: `ui.notification.collapsedFor.${(0, utils_1.camelCase)(notificationObject.type)}Snippet`, defaultMessage: `ui.notification.collapsedFor.${(0, utils_1.camelCase)(notificationObject.type)}Snippet` }) })) }))) : ((0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ component: "div", color: "inherit", className: classes.flagText }, { children: intl.formatMessage(messages[(0, utils_1.camelCase)(notificationObject.type)], {
69
+ b: (chunks) => (0, jsx_runtime_1.jsx)("strong", { children: chunks }, `${messages[(0, utils_1.camelCase)(notificationObject.type)]}.b`)
70
+ }) }))) }), secondary: (template === types_1.SCNotificationObjectTemplateType.DETAIL || template === types_1.SCNotificationObjectTemplateType.SNIPPET) && ((0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at, className: classes.activeAt })), footer: isSnippetTemplate ? null : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ className: classes.contributionWrap }, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body2", color: "inherit", component: "div", classes: { root: classes.contributionYouWroteLabel } }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.notification.collapsedFor.youWrote", defaultMessage: "ui.notification.collapsedFor.youWrote" }) })), (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(notificationObject[contributionType])), className: classes.contributionText }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ component: "span", variant: "body2", gutterBottom: true }, { children: (0, contribution_1.getContributionSnippet)(notificationObject[contributionType]) })) }))] })), template === types_1.SCNotificationObjectTemplateType.TOAST && ((0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: [(0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at }), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ color: "primary", component: "div" }, { children: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes[`${notificationObject[contributionType]['type'].toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(notificationObject[contributionType])) }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userToastNotifications.viewContribution", defaultMessage: "ui.userToastNotifications.viewContribution" }) })) }))] })))] })) }, rest)));
69
71
  }
70
72
  exports.default = CollapsedForNotification;
@@ -67,10 +67,10 @@ function CommentNotification(props) {
67
67
  to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.comment.author)
68
68
  }), { onClick: notificationObject.comment.author.deleted ? () => setOpenAlert(true) : null, className: classes.username }, { children: notificationObject.comment.author.username })), ' ', notificationObject.type === types_1.SCNotificationTypologyType.NESTED_COMMENT
69
69
  ? intl.formatMessage(messages.nestedComment, {
70
- b: (...chunks) => (0, jsx_runtime_1.jsx)("strong", { children: chunks })
70
+ b: (chunks) => (0, jsx_runtime_1.jsx)("strong", { children: chunks }, "ui.notification.comment.nestedComment.b")
71
71
  })
72
72
  : intl.formatMessage(messages.comment, {
73
- b: (...chunks) => (0, jsx_runtime_1.jsx)("strong", { children: chunks })
74
- })] }), secondary: (0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [(0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes.COMMENT_ROUTE_NAME, (0, contribution_1.getRouteData)(notificationObject.comment)) }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body2", className: classes.contributionText }, { children: (0, contribution_1.getContributionSnippet)(notificationObject.comment) })) })), (template === types_2.SCNotificationObjectTemplateType.DETAIL || template === types_2.SCNotificationObjectTemplateType.SNIPPET) && ((0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ direction: "row", justifyContent: "flex-start", alignItems: "center", spacing: 1 }, { children: [(0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at, className: classes.activeAt }), (0, jsx_runtime_1.jsx)(Bullet_1.default, { className: classes.bullet }), (0, jsx_runtime_1.jsx)(VoteButton_1.default, { className: classes.voteButton, variant: "text", size: "small", contributionId: notificationObject.comment.id, contributionType: types_1.SCContributionType.COMMENT, contribution: notificationObject.comment, onVote: handleVote })] })))] }), footer: template === types_2.SCNotificationObjectTemplateType.TOAST && ((0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: [(0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at }), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ color: "primary", component: 'div' }, { children: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes.COMMENT_ROUTE_NAME, (0, contribution_1.getRouteData)(notificationObject.comment)) }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userToastNotifications.viewContribution", defaultMessage: 'ui.userToastNotifications.viewContribution' }) })) }))] }))) }, rest)), openAlert && (0, jsx_runtime_1.jsx)(UserDeletedSnackBar_1.default, { open: openAlert, handleClose: () => setOpenAlert(false) })] }));
73
+ b: (chunks) => (0, jsx_runtime_1.jsx)("strong", { children: chunks }, "ui.notification.comment.comment.b")
74
+ })] }), secondary: (0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [(0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes.COMMENT_ROUTE_NAME, (0, contribution_1.getRouteData)(notificationObject.comment)) }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body2", className: classes.contributionText }, { children: (0, contribution_1.getContributionSnippet)(notificationObject.comment) })) })), (template === types_2.SCNotificationObjectTemplateType.DETAIL || template === types_2.SCNotificationObjectTemplateType.SNIPPET) && ((0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ direction: "row", justifyContent: "flex-start", alignItems: "center", spacing: 1 }, { children: [(0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at, className: classes.activeAt }), (0, jsx_runtime_1.jsx)(Bullet_1.default, { className: classes.bullet }), (0, jsx_runtime_1.jsx)(VoteButton_1.default, { className: classes.voteButton, variant: "text", size: "small", contributionId: notificationObject.comment.id, contributionType: types_1.SCContributionType.COMMENT, contribution: notificationObject.comment, onVote: handleVote })] })))] }), footer: template === types_2.SCNotificationObjectTemplateType.TOAST && ((0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: [(0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at }), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ color: "primary", component: "div" }, { children: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes.COMMENT_ROUTE_NAME, (0, contribution_1.getRouteData)(notificationObject.comment)) }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userToastNotifications.viewContribution", defaultMessage: "ui.userToastNotifications.viewContribution" }) })) }))] }))) }, rest)), openAlert && (0, jsx_runtime_1.jsx)(UserDeletedSnackBar_1.default, { open: openAlert, handleClose: () => setOpenAlert(false) })] }));
75
75
  }
76
76
  exports.default = CommentNotification;
@@ -81,6 +81,6 @@ function ContributionNotification(props) {
81
81
  : intl.formatMessage(messages.discussionSnippet) })) : ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: notificationObject[contributionType]['type'] === types_1.SCContributionType.POST ||
82
82
  notificationObject[contributionType]['type'] === types_1.SCContributionType.STATUS
83
83
  ? intl.formatMessage(messages.postOrStatus, { contribution: notificationObject[contributionType]['type'] })
84
- : intl.formatMessage(messages.discussion) }))] }), secondary: (0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [template === types_2.SCNotificationObjectTemplateType.SNIPPET && ((0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(notificationObject[contributionType])) }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body2", className: classes.contributionText, component: 'div' }, { children: (0, contribution_1.getContributionSnippet)(notificationObject[contributionType]) })) }))), template === types_2.SCNotificationObjectTemplateType.DETAIL && ((0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ direction: "row", justifyContent: "flex-start", alignItems: "center", spacing: 1 }, { children: [(0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at, className: classes.activeAt }), (0, jsx_runtime_1.jsx)(Bullet_1.default, { className: classes.bullet }), (0, jsx_runtime_1.jsx)(VoteButton_1.default, { className: classes.voteButton, variant: "text", size: "small", contributionId: notificationObject[contributionType].id, contributionType: contributionType, contribution: notificationObject[contributionType], onVote: handleVote })] }))), template === types_2.SCNotificationObjectTemplateType.SNIPPET && ((0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at, className: classes.activeAt }))] }), footer: template === types_2.SCNotificationObjectTemplateType.TOAST && ((0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: [(0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at }), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ color: "primary", component: 'div' }, { children: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes[`${notificationObject[contributionType]['type'].toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(notificationObject[contributionType])) }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userToastNotifications.viewContribution", defaultMessage: 'ui.userToastNotifications.viewContribution' }) })) }))] }))) }, rest)), openAlert && (0, jsx_runtime_1.jsx)(UserDeletedSnackBar_1.default, { open: openAlert, handleClose: () => setOpenAlert(false) })] }));
84
+ : intl.formatMessage(messages.discussion) }))] }), secondary: (0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [template === types_2.SCNotificationObjectTemplateType.SNIPPET && ((0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(notificationObject[contributionType])) }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body2", className: classes.contributionText, component: "div" }, { children: (0, contribution_1.getContributionSnippet)(notificationObject[contributionType]) })) }))), template === types_2.SCNotificationObjectTemplateType.DETAIL && ((0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ direction: "row", justifyContent: "flex-start", alignItems: "center", spacing: 1 }, { children: [(0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at, className: classes.activeAt }), (0, jsx_runtime_1.jsx)(Bullet_1.default, { className: classes.bullet }), (0, jsx_runtime_1.jsx)(VoteButton_1.default, { className: classes.voteButton, variant: "text", size: "small", contributionId: notificationObject[contributionType].id, contributionType: contributionType, contribution: notificationObject[contributionType], onVote: handleVote })] }))), template === types_2.SCNotificationObjectTemplateType.SNIPPET && ((0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at, className: classes.activeAt }))] }), footer: template === types_2.SCNotificationObjectTemplateType.TOAST && ((0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: [(0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at }), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ color: "primary", component: "div" }, { children: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes[`${notificationObject[contributionType]['type'].toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(notificationObject[contributionType])) }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userToastNotifications.viewContribution", defaultMessage: "ui.userToastNotifications.viewContribution" }) })) }))] }))) }, rest)), openAlert && (0, jsx_runtime_1.jsx)(UserDeletedSnackBar_1.default, { open: openAlert, handleClose: () => setOpenAlert(false) })] }));
85
85
  }
86
86
  exports.default = ContributionNotification;
@@ -52,7 +52,7 @@ function ContributionFollowNotification(props) {
52
52
  * Renders root object
53
53
  */
54
54
  return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${constants_1.PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({}, (!notificationObject.user.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.user) }), { onClick: notificationObject.user.deleted ? () => setOpenAlert(true) : null }, { children: (0, jsx_runtime_1.jsx)(UserAvatar_1.default, Object.assign({ hide: !notificationObject.user.community_badge, smaller: true }, { children: (0, jsx_runtime_1.jsx)(material_1.Avatar, { alt: notificationObject.user.username, variant: "circular", src: notificationObject.user.avatar, classes: { root: classes.avatar } }) })) })), primary: (0, jsx_runtime_1.jsxs)(material_1.Typography, Object.assign({ component: "span", color: "inherit", className: classes.followText }, { children: [(0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({}, (!notificationObject.user.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.user) }), { onClick: notificationObject.user.deleted ? () => setOpenAlert(true) : null, className: classes.username }, { children: notificationObject.user.username })), ' ', intl.formatMessage(messages.contributionFollow, {
55
- b: (...chunks) => (0, jsx_runtime_1.jsx)("strong", { children: chunks })
56
- })] })), secondary: (0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [template === types_1.SCNotificationObjectTemplateType.SNIPPET && ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes[`${notificationObject[contributionType]['type'].toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(notificationObject[contributionType])) }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body2", className: classes.contributionText }, { children: (0, contribution_1.getContributionSnippet)(notificationObject[contributionType]) })) })) })), (template === types_1.SCNotificationObjectTemplateType.DETAIL || template === types_1.SCNotificationObjectTemplateType.SNIPPET) && ((0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at, className: classes.activeAt }) }))] }), footer: template === types_1.SCNotificationObjectTemplateType.TOAST && ((0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: [(0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at }), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ color: "primary", component: 'div' }, { children: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes[`${notificationObject[contributionType]['type'].toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(notificationObject[contributionType])) }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userToastNotifications.viewContribution", defaultMessage: 'ui.userToastNotifications.viewContribution' }) })) }))] }))) }, rest)), openAlert && (0, jsx_runtime_1.jsx)(UserDeletedSnackBar_1.default, { open: openAlert, handleClose: () => setOpenAlert(false) })] }));
55
+ b: (chunks) => (0, jsx_runtime_1.jsx)("strong", { children: chunks }, "ui.notification.contributionFollow.follow.b")
56
+ })] })), secondary: (0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [template === types_1.SCNotificationObjectTemplateType.SNIPPET && ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes[`${notificationObject[contributionType]['type'].toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(notificationObject[contributionType])) }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body2", className: classes.contributionText }, { children: (0, contribution_1.getContributionSnippet)(notificationObject[contributionType]) })) })) })), (template === types_1.SCNotificationObjectTemplateType.DETAIL || template === types_1.SCNotificationObjectTemplateType.SNIPPET) && ((0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at, className: classes.activeAt }) }))] }), footer: template === types_1.SCNotificationObjectTemplateType.TOAST && ((0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: [(0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at }), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ color: "primary", component: "div" }, { children: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes[`${notificationObject[contributionType]['type'].toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(notificationObject[contributionType])) }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userToastNotifications.viewContribution", defaultMessage: "ui.userToastNotifications.viewContribution" }) })) }))] }))) }, rest)), openAlert && (0, jsx_runtime_1.jsx)(UserDeletedSnackBar_1.default, { open: openAlert, handleClose: () => setOpenAlert(false) })] }));
57
57
  }
58
58
  exports.default = ContributionFollowNotification;
@@ -11,7 +11,6 @@ const DateTimeAgo_1 = tslib_1.__importDefault(require("../../../shared/DateTimeA
11
11
  const classnames_1 = tslib_1.__importDefault(require("classnames"));
12
12
  const types_2 = require("../../../types");
13
13
  const NotificationItem_1 = tslib_1.__importDefault(require("../../../shared/NotificationItem"));
14
- const lab_1 = require("@mui/lab");
15
14
  const UserDeletedSnackBar_1 = tslib_1.__importDefault(require("../../../shared/UserDeletedSnackBar"));
16
15
  const UserAvatar_1 = tslib_1.__importDefault(require("../../../shared/UserAvatar"));
17
16
  const constants_1 = require("../constants");
@@ -56,16 +55,14 @@ function CourseNotification(props) {
56
55
  }), { onClick: notificationObject.user.deleted ? () => setOpenAlert(true) : null }, { children: (0, jsx_runtime_1.jsx)(UserAvatar_1.default, Object.assign({ hide: !notificationObject.user.community_badge, smaller: true }, { children: (0, jsx_runtime_1.jsx)(material_1.Avatar, { alt: notificationObject.user.username, variant: "circular", src: notificationObject.user.avatar, classes: { root: classes.avatar } }) })) })), primary: (0, jsx_runtime_1.jsxs)(material_1.Box, { children: [(0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({}, (!notificationObject.user.deleted && {
57
56
  to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.user)
58
57
  }), { onClick: notificationObject.user.deleted ? () => setOpenAlert(true) : null, className: classes.username }, { children: notificationObject.user.username })), ' ', (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: `ui.notification.course.${notificationObject.type}`, defaultMessage: `ui.notification.course.${notificationObject.type}`, values: {
59
- // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
60
- // @ts-ignore
61
58
  name: notificationObject.type === types_1.SCNotificationTypologyType.USER_COMMENTED_A_COURSE_LESSON
62
59
  ? notificationObject.comment.lesson_name
63
60
  : notificationObject.course.name,
64
- link: (...chunks) => ((0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(notificationObject.type === types_1.SCNotificationTypologyType.USER_COMMENTED_A_COURSE_LESSON
61
+ link: (chunks) => ((0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(notificationObject.type === types_1.SCNotificationTypologyType.USER_COMMENTED_A_COURSE_LESSON
65
62
  ? react_core_1.SCRoutes.COURSE_LESSON_ROUTE_NAME
66
63
  : react_core_1.SCRoutes.COURSE_ROUTE_NAME, notificationObject.type === types_1.SCNotificationTypologyType.USER_COMMENTED_A_COURSE_LESSON
67
64
  ? (0, utils_1.formatLessonUrl)(notificationObject)
68
- : notificationObject.course) }, { children: chunks })))
65
+ : notificationObject.course) }, { children: chunks }), `ui.notification.course.${notificationObject.type}.link`))
69
66
  } })] }), footer: isToastTemplate ? ((0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: [(0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at }), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ color: "primary" }, { children: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url((0, utils_1.getRouteName)(notificationObject), (0, utils_1.getRouteParams)(notificationObject)) }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.notification.course.button.see", defaultMessage: "ui.notification.course.button.see" }) })) }))] }))) : ((0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at, className: classes.snippetTime })) }, rest)));
70
67
  }
71
68
  return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${constants_1.PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({}, (!notificationObject.user.deleted && {
@@ -73,16 +70,14 @@ function CourseNotification(props) {
73
70
  }), { onClick: notificationObject.user.deleted ? () => setOpenAlert(true) : null }, { children: (0, jsx_runtime_1.jsx)(UserAvatar_1.default, Object.assign({ hide: !notificationObject.user.community_badge, smaller: true }, { children: (0, jsx_runtime_1.jsx)(material_1.Avatar, { className: classes.avatar, alt: notificationObject.user.username, variant: "circular", src: notificationObject.user.avatar }) })) })), primary: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({}, (!notificationObject.user.deleted && {
74
71
  to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.user)
75
72
  }), { onClick: notificationObject.user.deleted ? () => setOpenAlert(true) : null, className: classes.username }, { children: notificationObject.user.username })), ' ', (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: `ui.notification.course.${notificationObject.type}`, defaultMessage: `ui.notification.course.${notificationObject.type}`, values: {
76
- // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
77
- // @ts-ignore
78
73
  name: notificationObject.type === types_1.SCNotificationTypologyType.USER_COMMENTED_A_COURSE_LESSON
79
74
  ? notificationObject.comment.lesson_name
80
75
  : notificationObject.course.name,
81
- link: (...chunks) => ((0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(notificationObject.type === types_1.SCNotificationTypologyType.USER_COMMENTED_A_COURSE_LESSON
76
+ link: (chunks) => ((0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(notificationObject.type === types_1.SCNotificationTypologyType.USER_COMMENTED_A_COURSE_LESSON
82
77
  ? react_core_1.SCRoutes.COURSE_LESSON_ROUTE_NAME
83
78
  : react_core_1.SCRoutes.COURSE_ROUTE_NAME, notificationObject.type === types_1.SCNotificationTypologyType.USER_COMMENTED_A_COURSE_LESSON
84
79
  ? (0, utils_1.formatLessonUrl)(notificationObject)
85
- : notificationObject.course) }, { children: chunks })))
86
- } }), notificationObject.type === types_1.SCNotificationTypologyType.USER_COMMENTED_A_COURSE_LESSON ? ((0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "body2", dangerouslySetInnerHTML: { __html: notificationObject.comment.html } })) : ((0, jsx_runtime_1.jsx)(Course_1.default, { course: notificationObject.course, actions: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}), template: types_2.SCCourseTemplateType.SNIPPET, elevation: 0 }))] }), actions: (0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: [(0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at, className: classes.activeAt }), (0, jsx_runtime_1.jsx)(lab_1.LoadingButton, Object.assign({ color: 'primary', variant: "outlined", size: "small", classes: { root: classes.seeButton }, component: react_core_1.Link, to: scRoutingContext.url((0, utils_1.getRouteName)(notificationObject), (0, utils_1.getRouteParams)(notificationObject)) }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.notification.course.button.see", defaultMessage: "ui.notification.course.button.see" }) }))] })) }, rest)), openAlert && (0, jsx_runtime_1.jsx)(UserDeletedSnackBar_1.default, { open: openAlert, handleClose: () => setOpenAlert(false) })] }));
80
+ : notificationObject.course) }, { children: chunks }), `ui.notification.course.${notificationObject.type}.link`))
81
+ } }), notificationObject.type === types_1.SCNotificationTypologyType.USER_COMMENTED_A_COURSE_LESSON ? ((0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "body2", dangerouslySetInnerHTML: { __html: notificationObject.comment.html } })) : ((0, jsx_runtime_1.jsx)(Course_1.default, { course: notificationObject.course, actions: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}), template: types_2.SCCourseTemplateType.SNIPPET, elevation: 0 }))] }), actions: (0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: [(0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at, className: classes.activeAt }), (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ color: "primary", variant: "outlined", size: "small", classes: { root: classes.seeButton }, component: react_core_1.Link, to: scRoutingContext.url((0, utils_1.getRouteName)(notificationObject), (0, utils_1.getRouteParams)(notificationObject)) }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.notification.course.button.see", defaultMessage: "ui.notification.course.button.see" }) }))] })) }, rest)), openAlert && (0, jsx_runtime_1.jsx)(UserDeletedSnackBar_1.default, { open: openAlert, handleClose: () => setOpenAlert(false) })] }));
87
82
  }
88
83
  exports.default = CourseNotification;
@@ -47,7 +47,7 @@ const classes = {
47
47
  const Root = (0, material_1.styled)(NotificationItem_1.default, {
48
48
  name: constants_1.PREFIX,
49
49
  slot: 'DeletedForRoot',
50
- overridesResolver: (props, styles) => styles.root
50
+ overridesResolver: (_props, styles) => styles.root
51
51
  })(() => ({}));
52
52
  /**
53
53
  * This component render the content of the notification of type deleted for
@@ -67,6 +67,8 @@ function DeletedForNotification(props) {
67
67
  /**
68
68
  * Renders root object
69
69
  */
70
- return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${constants_1.PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: (0, jsx_runtime_1.jsx)(material_1.Avatar, Object.assign({ variant: "circular", classes: { root: classes.flagIcon } }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "outlined_flag" }) })), primary: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: isSnippetTemplate ? ((0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(notificationObject[contributionType])) }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ component: "div", color: "inherit", className: classes.flagText }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: `ui.notification.deletedFor.${(0, utils_1.camelCase)(notificationObject.type)}Snippet`, defaultMessage: `ui.notification.deletedFor.${(0, utils_1.camelCase)(notificationObject.type)}Snippet` }) })) }))) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [template === types_1.SCNotificationObjectTemplateType.DETAIL && notificationObject.is_new && (0, jsx_runtime_1.jsx)(NewChip_1.default, {}), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ component: "div", color: "inherit", className: classes.flagText }, { children: intl.formatMessage(messages[(0, utils_1.camelCase)(notificationObject.type)], { b: (...chunks) => (0, jsx_runtime_1.jsx)("strong", { children: chunks }) }) }))] })) }), secondary: (template === types_1.SCNotificationObjectTemplateType.DETAIL || template === types_1.SCNotificationObjectTemplateType.SNIPPET) && ((0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at, className: classes.activeAt })), footer: isSnippetTemplate ? null : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ className: classes.contributionWrap }, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: 'body2', color: 'inherit', classes: { root: classes.contributionYouWroteLabel } }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.notification.deletedFor.youWrote", defaultMessage: "ui.notification.deletedFor.youWrote" }) })), (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(notificationObject[contributionType])), className: classes.contributionText }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ component: 'span', color: 'inherit', variant: "body2" }, { children: (0, contribution_1.getContributionSnippet)(notificationObject[contributionType]) })) }))] })), template === types_1.SCNotificationObjectTemplateType.TOAST && ((0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: [(0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at }), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ color: "primary", component: 'div' }, { children: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes[`${notificationObject[contributionType]['type'].toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(notificationObject[contributionType])) }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userToastNotifications.viewContribution", defaultMessage: 'ui.userToastNotifications.viewContribution' }) })) }))] })))] })) }, rest)));
70
+ return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${constants_1.PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: (0, jsx_runtime_1.jsx)(material_1.Avatar, Object.assign({ variant: "circular", classes: { root: classes.flagIcon } }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "outlined_flag" }) })), primary: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: isSnippetTemplate ? ((0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(notificationObject[contributionType])) }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ component: "div", color: "inherit", className: classes.flagText }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: `ui.notification.deletedFor.${(0, utils_1.camelCase)(notificationObject.type)}Snippet`, defaultMessage: `ui.notification.deletedFor.${(0, utils_1.camelCase)(notificationObject.type)}Snippet` }) })) }))) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [template === types_1.SCNotificationObjectTemplateType.DETAIL && notificationObject.is_new && (0, jsx_runtime_1.jsx)(NewChip_1.default, {}), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ component: "div", color: "inherit", className: classes.flagText }, { children: intl.formatMessage(messages[(0, utils_1.camelCase)(notificationObject.type)], {
71
+ b: (chunks) => (0, jsx_runtime_1.jsx)("strong", { children: chunks }, `${messages[(0, utils_1.camelCase)(notificationObject.type)]}.b`)
72
+ }) }))] })) }), secondary: (template === types_1.SCNotificationObjectTemplateType.DETAIL || template === types_1.SCNotificationObjectTemplateType.SNIPPET) && ((0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at, className: classes.activeAt })), footer: isSnippetTemplate ? null : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ className: classes.contributionWrap }, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body2", color: "inherit", classes: { root: classes.contributionYouWroteLabel } }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.notification.deletedFor.youWrote", defaultMessage: "ui.notification.deletedFor.youWrote" }) })), (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(notificationObject[contributionType])), className: classes.contributionText }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ component: "span", color: "inherit", variant: "body2" }, { children: (0, contribution_1.getContributionSnippet)(notificationObject[contributionType]) })) }))] })), template === types_1.SCNotificationObjectTemplateType.TOAST && ((0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: [(0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at }), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ color: "primary", component: "div" }, { children: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes[`${notificationObject[contributionType]['type'].toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(notificationObject[contributionType])) }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userToastNotifications.viewContribution", defaultMessage: "ui.userToastNotifications.viewContribution" }) })) }))] })))] })) }, rest)));
71
73
  }
72
74
  exports.default = DeletedForNotification;
@@ -11,7 +11,6 @@ const DateTimeAgo_1 = tslib_1.__importDefault(require("../../../shared/DateTimeA
11
11
  const classnames_1 = tslib_1.__importDefault(require("classnames"));
12
12
  const types_2 = require("../../../types");
13
13
  const NotificationItem_1 = tslib_1.__importDefault(require("../../../shared/NotificationItem"));
14
- const lab_1 = require("@mui/lab");
15
14
  const UserDeletedSnackBar_1 = tslib_1.__importDefault(require("../../../shared/UserDeletedSnackBar"));
16
15
  const UserAvatar_1 = tslib_1.__importDefault(require("../../../shared/UserAvatar"));
17
16
  const constants_1 = require("../constants");
@@ -63,11 +62,9 @@ function EventNotification(props) {
63
62
  }), { onClick: notificationObject.user.deleted ? () => setOpenAlert(true) : null }, { children: (0, jsx_runtime_1.jsx)(UserAvatar_1.default, Object.assign({ hide: !notificationObject.user.community_badge, smaller: true }, { children: (0, jsx_runtime_1.jsx)(material_1.Avatar, { alt: notificationObject.user.username, variant: "circular", src: notificationObject.user.avatar, classes: { root: classes.avatar } }) })) })), primary: (0, jsx_runtime_1.jsxs)(material_1.Box, { children: [(0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({}, (!notificationObject.user.deleted && {
64
63
  to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.user)
65
64
  }), { onClick: notificationObject.user.deleted ? () => setOpenAlert(true) : null, className: classes.username }, { children: notificationObject.user.username })), ' ', (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: `ui.notification.event.${notificationObject.type}`, defaultMessage: `ui.notification.event.${notificationObject.type}`, values: {
66
- // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
67
- // @ts-ignore
68
- icon: (...chunks) => (0, jsx_runtime_1.jsx)(material_1.Icon, { children: chunks }),
65
+ icon: (chunks) => (0, jsx_runtime_1.jsx)(material_1.Icon, { children: chunks }, `ui.notification.event.${notificationObject.type}.icon`),
69
66
  event: notificationObject.event.name,
70
- link: (...chunks) => (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes.EVENT_ROUTE_NAME, notificationObject.event) }, { children: chunks }))
67
+ link: (chunks) => ((0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes.EVENT_ROUTE_NAME, notificationObject.event) }, { children: chunks }), `ui.notification.event.${notificationObject.type}.link`))
71
68
  } })] }), secondary: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ component: "span" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.notification.event.dateTime", defaultMessage: "ui.notification.event.dateTime", values: {
72
69
  date: intl.formatDate(notificationObject.event.start_date, {
73
70
  weekday: 'long',
@@ -76,21 +73,19 @@ function EventNotification(props) {
76
73
  month: 'long'
77
74
  }),
78
75
  hour: intl.formatDate(notificationObject.event.start_date, { hour: 'numeric', minute: 'numeric' })
79
- } }) })), (0, jsx_runtime_1.jsxs)(material_1.Typography, Object.assign({ component: "p", variant: "body2" }, { children: [(0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: `ui.notification.event.privacy.${notificationObject.event.privacy}`, defaultMessage: `ui.notification.event.privacy.${notificationObject.event.privacy}` }), ' ', "-", ' ', notificationObject.event.location === types_1.SCEventLocationType.PERSON ? ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: `ui.notification.event.address.live.label`, defaultMessage: `ui.notification.event.address.live.label` })) : ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: `ui.notification.event.address.online.label`, defaultMessage: `ui.notification.event.address.online.label` }))] }))] }), footer: isToastTemplate ? ((0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: [(0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at }), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ color: "primary" }, { children: notificationObject.type === types_1.SCNotificationTypologyType.USER_REQUESTED_TO_JOIN_EVENT ? ((0, jsx_runtime_1.jsx)(lab_1.LoadingButton, Object.assign({ disabled: disabled, loading: loading, color: 'primary', variant: "text", size: "small", onClick: () => acceptRequest(notificationObject.event) }, { children: disabled ? ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.notification.event.button.accepted", defaultMessage: "ui.notification.event.button.accepted" })) : ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.notification.event.button.accept", defaultMessage: "ui.notification.event.button.accept" })) }))) : ((0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes.EVENT_ROUTE_NAME, notificationObject.event) }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.notification.event.button.see", defaultMessage: "ui.notification.event.button.see" }) }))) }))] }))) : ((0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at, className: classes.snippetTime })) }, rest)));
76
+ } }) })), (0, jsx_runtime_1.jsxs)(material_1.Typography, Object.assign({ component: "p", variant: "body2" }, { children: [(0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: `ui.notification.event.privacy.${notificationObject.event.privacy}`, defaultMessage: `ui.notification.event.privacy.${notificationObject.event.privacy}` }), ' ', "-", ' ', notificationObject.event.location === types_1.SCEventLocationType.PERSON ? ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: `ui.notification.event.address.live.label`, defaultMessage: `ui.notification.event.address.live.label` })) : ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: `ui.notification.event.address.online.label`, defaultMessage: `ui.notification.event.address.online.label` }))] }))] }), footer: isToastTemplate ? ((0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: [(0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at }), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ color: "primary" }, { children: notificationObject.type === types_1.SCNotificationTypologyType.USER_REQUESTED_TO_JOIN_EVENT ? ((0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ disabled: disabled, loading: loading, color: "primary", variant: "text", size: "small", onClick: () => acceptRequest(notificationObject.event) }, { children: disabled ? ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.notification.event.button.accepted", defaultMessage: "ui.notification.event.button.accepted" })) : ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.notification.event.button.accept", defaultMessage: "ui.notification.event.button.accept" })) }))) : ((0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes.EVENT_ROUTE_NAME, notificationObject.event) }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.notification.event.button.see", defaultMessage: "ui.notification.event.button.see" }) }))) }))] }))) : ((0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at, className: classes.snippetTime })) }, rest)));
80
77
  }
81
78
  return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${constants_1.PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({}, (!notificationObject.user.deleted && {
82
79
  to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.user)
83
80
  }), { onClick: notificationObject.user.deleted ? () => setOpenAlert(true) : null }, { children: (0, jsx_runtime_1.jsx)(UserAvatar_1.default, Object.assign({ hide: !notificationObject.user.community_badge, smaller: true }, { children: (0, jsx_runtime_1.jsx)(material_1.Avatar, { className: classes.avatar, alt: notificationObject.user.username, variant: "circular", src: notificationObject.user.avatar }) })) })), primary: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({}, (!notificationObject.user.deleted && {
84
81
  to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.user)
85
82
  }), { onClick: notificationObject.user.deleted ? () => setOpenAlert(true) : null, className: classes.username }, { children: notificationObject.user.username })), ' ', (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: `ui.notification.${notificationObject.type}`, defaultMessage: `ui.notification.${notificationObject.type}`, values: {
86
- // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
87
- // @ts-ignore
88
- icon: (...chunks) => (0, jsx_runtime_1.jsx)(material_1.Icon, { children: chunks }),
83
+ icon: (chunks) => (0, jsx_runtime_1.jsx)(material_1.Icon, { children: chunks }, `ui.notification.${notificationObject.type}.icon`),
89
84
  event: notificationObject.event.name,
90
- link: (...chunks) => (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes.EVENT_ROUTE_NAME, notificationObject.event) }, { children: chunks }))
91
- } }), (0, jsx_runtime_1.jsx)(Event_1.default, { event: notificationObject.event, actions: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}), elevation: 0 })] }), actions: (0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: [(0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at, className: classes.activeAt }), (0, jsx_runtime_1.jsx)(lab_1.LoadingButton, Object.assign({}, (notificationObject.type === types_1.SCNotificationTypologyType.USER_REQUESTED_TO_JOIN_EVENT && {
85
+ link: (chunks) => ((0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes.EVENT_ROUTE_NAME, notificationObject.event) }, { children: chunks }), `ui.notification.${notificationObject.type}.link`))
86
+ } }), (0, jsx_runtime_1.jsx)(Event_1.default, { event: notificationObject.event, actions: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}), elevation: 0 })] }), actions: (0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: [(0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at, className: classes.activeAt }), (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({}, (notificationObject.type === types_1.SCNotificationTypologyType.USER_REQUESTED_TO_JOIN_EVENT && {
92
87
  disabled: disabled
93
- }), { loading: loading, color: 'primary', variant: "outlined", size: "small", classes: { root: classes.seeButton } }, (notificationObject.type !== types_1.SCNotificationTypologyType.USER_REQUESTED_TO_JOIN_EVENT && {
88
+ }), { loading: loading, color: "primary", variant: "outlined", size: "small", classes: { root: classes.seeButton } }, (notificationObject.type !== types_1.SCNotificationTypologyType.USER_REQUESTED_TO_JOIN_EVENT && {
94
89
  component: react_core_1.Link,
95
90
  to: scRoutingContext.url(react_core_1.SCRoutes.EVENT_ROUTE_NAME, notificationObject.event)
96
91
  }), { onClick: notificationObject.type === types_1.SCNotificationTypologyType.USER_REQUESTED_TO_JOIN_EVENT
@@ -11,7 +11,6 @@ const DateTimeAgo_1 = tslib_1.__importDefault(require("../../../shared/DateTimeA
11
11
  const classnames_1 = tslib_1.__importDefault(require("classnames"));
12
12
  const types_2 = require("../../../types");
13
13
  const NotificationItem_1 = tslib_1.__importDefault(require("../../../shared/NotificationItem"));
14
- const lab_1 = require("@mui/lab");
15
14
  const UserDeletedSnackBar_1 = tslib_1.__importDefault(require("../../../shared/UserDeletedSnackBar"));
16
15
  const UserAvatar_1 = tslib_1.__importDefault(require("../../../shared/UserAvatar"));
17
16
  const constants_1 = require("../constants");
@@ -56,16 +55,16 @@ function GroupNotification(props) {
56
55
  to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.user)
57
56
  }), { onClick: notificationObject.user.deleted ? () => setOpenAlert(true) : null, className: classes.username }, { children: notificationObject.user.username })), ' ', (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: `ui.notification.${notificationObject.type}`, defaultMessage: `ui.notification.${notificationObject.type}`, values: {
58
57
  group: notificationObject.group.name,
59
- link: (...chunks) => ((0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: notificationObject.type === types_1.SCNotificationTypologyType.USER_REQUESTED_TO_JOIN_GROUP ||
58
+ link: (chunks) => ((0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: notificationObject.type === types_1.SCNotificationTypologyType.USER_REQUESTED_TO_JOIN_GROUP ||
60
59
  notificationObject.type === types_1.SCNotificationTypologyType.USER_ACCEPTED_TO_JOIN_GROUP
61
60
  ? scRoutingContext.url(react_core_1.SCRoutes.GROUP_MEMBERS_ROUTE_NAME, notificationObject.group)
62
- : scRoutingContext.url(react_core_1.SCRoutes.GROUP_ROUTE_NAME, notificationObject.group) }, { children: chunks })))
61
+ : scRoutingContext.url(react_core_1.SCRoutes.GROUP_ROUTE_NAME, notificationObject.group) }, { children: chunks }), `ui.notification.${notificationObject.type}.link`))
63
62
  } })] }), footer: isToastTemplate && ((0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: [(0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at }), status && status !== types_1.SCGroupSubscriptionStatusType.SUBSCRIBED && ((0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ color: "primary" }, { children: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: notificationObject.type === types_1.SCNotificationTypologyType.USER_REQUESTED_TO_JOIN_GROUP ||
64
63
  notificationObject.type === types_1.SCNotificationTypologyType.USER_ACCEPTED_TO_JOIN_GROUP
65
64
  ? scRoutingContext.url(react_core_1.SCRoutes.GROUP_MEMBERS_ROUTE_NAME, notificationObject.group)
66
65
  : scRoutingContext.url(react_core_1.SCRoutes.GROUP_ROUTE_NAME, notificationObject.group) }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.notification.group.button.see", defaultMessage: "ui.notification.group.button.see" }) })) })))] }))) }, rest)));
67
66
  }
68
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${constants_1.PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, actions: (0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: [(0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at, className: classes.activeAt }), status && status !== types_1.SCGroupSubscriptionStatusType.SUBSCRIBED && ((0, jsx_runtime_1.jsx)(lab_1.LoadingButton, Object.assign({ color: 'primary', variant: "outlined", size: "small", classes: { root: classes.acceptButton }, component: react_core_1.Link, loading: scUserContext.user ? status === null || manager.isLoading(notificationObject.group) : null, to: notificationObject.type === types_1.SCNotificationTypologyType.USER_REQUESTED_TO_JOIN_GROUP ||
67
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${constants_1.PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, actions: (0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: [(0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at, className: classes.activeAt }), status && status !== types_1.SCGroupSubscriptionStatusType.SUBSCRIBED && ((0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ color: "primary", variant: "outlined", size: "small", classes: { root: classes.acceptButton }, component: react_core_1.Link, loading: scUserContext.user ? status === null || manager.isLoading(notificationObject.group) : null, to: notificationObject.type === types_1.SCNotificationTypologyType.USER_REQUESTED_TO_JOIN_GROUP ||
69
68
  notificationObject.type === types_1.SCNotificationTypologyType.USER_ACCEPTED_TO_JOIN_GROUP
70
69
  ? scRoutingContext.url(react_core_1.SCRoutes.GROUP_MEMBERS_ROUTE_NAME, notificationObject.group)
71
70
  : scRoutingContext.url(react_core_1.SCRoutes.GROUP_ROUTE_NAME, notificationObject.group) }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.notification.group.button.see", defaultMessage: "ui.notification.group.button.see" }) })))] })) }, rest)), openAlert && (0, jsx_runtime_1.jsx)(UserDeletedSnackBar_1.default, { open: openAlert, handleClose: () => setOpenAlert(false) })] }));
@@ -42,10 +42,10 @@ function IncubatorApprovedNotification(props) {
42
42
  */
43
43
  return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${constants_1.PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: (0, jsx_runtime_1.jsx)(material_1.Avatar, { alt: notificationObject.incubator.approved_category.name, src: notificationObject.incubator.approved_category.image_medium, variant: "square", classes: { root: classes.categoryIcon } }), primary: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: isSnippetTemplate ? ((0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes.CATEGORY_ROUTE_NAME, notificationObject.incubator.approved_category) }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ component: "div", className: classes.categoryApprovedText, color: "inherit" }, { children: intl.formatMessage(messages.incubatorApproved, {
44
44
  name: notificationObject.incubator.name,
45
- b: (...chunks) => (0, jsx_runtime_1.jsx)("strong", { children: chunks })
45
+ b: (chunks) => (0, jsx_runtime_1.jsx)("strong", { children: chunks }, "ui.notification.incubatorApproved.approved.b.1")
46
46
  }) })) }))) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [template === types_1.SCNotificationObjectTemplateType.DETAIL && notificationObject.is_new && (0, jsx_runtime_1.jsx)(NewChip_1.default, {}), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ component: "div", className: classes.categoryApprovedText, color: "inherit" }, { children: intl.formatMessage(messages.incubatorApproved, {
47
47
  name: notificationObject.incubator.name,
48
- b: (...chunks) => (0, jsx_runtime_1.jsx)("strong", { children: chunks })
49
- }) }))] })) }), secondary: (template === types_1.SCNotificationObjectTemplateType.DETAIL || template === types_1.SCNotificationObjectTemplateType.SNIPPET) && ((0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at, className: classes.activeAt })), footer: template === types_1.SCNotificationObjectTemplateType.DETAIL ? ((0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.CATEGORY_ROUTE_NAME, notificationObject.incubator.approved_category), className: classes.viewIncubatorButton }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: 'ui.notification.incubatorApproved.viewIncubator', defaultMessage: 'ui.notification.incubatorApproved.viewIncubator' }) }))) : template === types_1.SCNotificationObjectTemplateType.TOAST ? ((0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: [(0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at }), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ color: "primary", component: 'div' }, { children: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes.CATEGORY_ROUTE_NAME, notificationObject.incubator) }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userToastNotifications.incubatorApproved.viewIncubator", defaultMessage: 'ui.userToastNotifications.incubatorApproved.viewIncubator' }) })) }))] }))) : null }, rest)));
48
+ b: (chunks) => (0, jsx_runtime_1.jsx)("strong", { children: chunks }, "ui.notification.incubatorApproved.approved.b.2")
49
+ }) }))] })) }), secondary: (template === types_1.SCNotificationObjectTemplateType.DETAIL || template === types_1.SCNotificationObjectTemplateType.SNIPPET) && ((0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at, className: classes.activeAt })), footer: template === types_1.SCNotificationObjectTemplateType.DETAIL ? ((0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.CATEGORY_ROUTE_NAME, notificationObject.incubator.approved_category), className: classes.viewIncubatorButton }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.notification.incubatorApproved.viewIncubator", defaultMessage: "ui.notification.incubatorApproved.viewIncubator" }) }))) : template === types_1.SCNotificationObjectTemplateType.TOAST ? ((0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: [(0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at }), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ color: "primary", component: "div" }, { children: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes.CATEGORY_ROUTE_NAME, notificationObject.incubator) }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userToastNotifications.incubatorApproved.viewIncubator", defaultMessage: "ui.userToastNotifications.incubatorApproved.viewIncubator" }) })) }))] }))) : null }, rest)));
50
50
  }
51
51
  exports.default = IncubatorApprovedNotification;
@@ -49,6 +49,8 @@ function KindlyNoticeFlagNotification(props) {
49
49
  /**
50
50
  * Renders root object
51
51
  */
52
- return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${constants_1.PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: (0, jsx_runtime_1.jsx)(material_1.Avatar, Object.assign({ variant: "circular", classes: { root: classes.flagIcon } }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "outlined_flag" }) })), primary: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: isSnippetTemplate ? ((0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(notificationObject[contributionType])) }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ component: "div", color: "inherit", className: classes.flagText }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: `ui.notification.kindlyNoticeFlag.kindlyNoticeFlagSnippet`, defaultMessage: `ui.notification.kindlyNoticeFlag.kindlyNoticeFlagSnippet` }) })) }))) : ((0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ component: "div", color: "inherit", className: classes.flagText }, { children: intl.formatMessage(messages[(0, utils_1.camelCase)(notificationObject.type)], { b: (...chunks) => (0, jsx_runtime_1.jsx)("strong", { children: chunks }) }) }))) }), secondary: (template === types_1.SCNotificationObjectTemplateType.DETAIL || template === types_1.SCNotificationObjectTemplateType.SNIPPET) && ((0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at, className: classes.activeAt })), footer: !isSnippetTemplate && ((0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ className: classes.contributionWrap }, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: 'body2', color: 'inherit', component: 'div', classes: { root: classes.contributionYouWroteLabel } }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.notification.undeletedFor.youWrote", defaultMessage: "ui.notification.undeletedFor.youWrote" }) })), (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(notificationObject[contributionType])), className: classes.contributionText }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ component: 'span', variant: "body2" }, { children: (0, contribution_1.getContributionSnippet)(notificationObject[contributionType]) })) }))] }))) }, rest)));
52
+ return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${constants_1.PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: (0, jsx_runtime_1.jsx)(material_1.Avatar, Object.assign({ variant: "circular", classes: { root: classes.flagIcon } }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "outlined_flag" }) })), primary: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: isSnippetTemplate ? ((0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(notificationObject[contributionType])) }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ component: "div", color: "inherit", className: classes.flagText }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: `ui.notification.kindlyNoticeFlag.kindlyNoticeFlagSnippet`, defaultMessage: `ui.notification.kindlyNoticeFlag.kindlyNoticeFlagSnippet` }) })) }))) : ((0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ component: "div", color: "inherit", className: classes.flagText }, { children: intl.formatMessage(messages[(0, utils_1.camelCase)(notificationObject.type)], {
53
+ b: (chunks) => (0, jsx_runtime_1.jsx)("strong", { children: chunks }, `${messages[(0, utils_1.camelCase)(notificationObject.type)]}.b`)
54
+ }) }))) }), secondary: (template === types_1.SCNotificationObjectTemplateType.DETAIL || template === types_1.SCNotificationObjectTemplateType.SNIPPET) && ((0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at, className: classes.activeAt })), footer: !isSnippetTemplate && ((0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ className: classes.contributionWrap }, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body2", color: "inherit", component: "div", classes: { root: classes.contributionYouWroteLabel } }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.notification.undeletedFor.youWrote", defaultMessage: "ui.notification.undeletedFor.youWrote" }) })), (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(notificationObject[contributionType])), className: classes.contributionText }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ component: "span", variant: "body2" }, { children: (0, contribution_1.getContributionSnippet)(notificationObject[contributionType]) })) }))] }))) }, rest)));
53
55
  }
54
56
  exports.default = KindlyNoticeFlagNotification;