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

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 (638) hide show
  1. package/lib/cjs/components/AccountChangeMailValidation/AccountChangeMailValidation.js +3 -8
  2. package/lib/cjs/components/AccountDataPortability/AccountDataPortability.js +16 -25
  3. package/lib/cjs/components/AccountDataPortabilityButton/AccountDataPortabilityButton.js +3 -6
  4. package/lib/cjs/components/AccountDelete/AccountDelete.js +16 -23
  5. package/lib/cjs/components/AccountDeleteButton/AccountDeleteButton.js +3 -6
  6. package/lib/cjs/components/AccountRecover/AccountRecover.js +8 -12
  7. package/lib/cjs/components/AccountReset/AccountReset.js +3 -12
  8. package/lib/cjs/components/AccountVerify/AccountVerify.js +3 -8
  9. package/lib/cjs/components/BottomNavigation/BottomNavigation.js +19 -20
  10. package/lib/cjs/components/BroadcastMessages/BroadcastMessages.js +3 -10
  11. package/lib/cjs/components/BroadcastMessages/Message.js +6 -23
  12. package/lib/cjs/components/BroadcastMessages/Skeleton.js +3 -15
  13. package/lib/cjs/components/Categories/Categories.js +5 -10
  14. package/lib/cjs/components/Categories/Skeleton.js +2 -4
  15. package/lib/cjs/components/CategoriesPopularWidget/CategoriesPopularWidget.js +5 -17
  16. package/lib/cjs/components/CategoriesPopularWidget/Skeleton.js +2 -2
  17. package/lib/cjs/components/CategoriesSuggestionWidget/CategoriesSuggestionWidget.js +5 -17
  18. package/lib/cjs/components/CategoriesSuggestionWidget/Skeleton.js +2 -5
  19. package/lib/cjs/components/Category/Category.js +4 -4
  20. package/lib/cjs/components/Category/Skeleton.js +2 -3
  21. package/lib/cjs/components/CategoryAutocomplete/CategoryAutocomplete.js +6 -9
  22. package/lib/cjs/components/CategoryFollowButton/CategoryFollowButton.js +3 -2
  23. package/lib/cjs/components/CategoryFollowersButton/CategoryFollowersButton.js +3 -8
  24. package/lib/cjs/components/CategoryHeader/CategoryHeader.js +3 -12
  25. package/lib/cjs/components/CategoryHeader/Skeleton.js +2 -7
  26. package/lib/cjs/components/CategoryTrendingFeedWidget/CategoryTrendingFeedWidget.js +7 -19
  27. package/lib/cjs/components/CategoryTrendingFeedWidget/Skeleton.js +2 -4
  28. package/lib/cjs/components/CategoryTrendingUsersWidget/CategoryTrendingUsersWidget.js +5 -17
  29. package/lib/cjs/components/CategoryTrendingUsersWidget/Skeleton.js +2 -5
  30. package/lib/cjs/components/ChangeCover/ChangeCover.js +18 -41
  31. package/lib/cjs/components/ChangeGroupCover/ChangeGroupCover.js +4 -6
  32. package/lib/cjs/components/ChangeGroupPicture/ChangeGroupPicture.js +4 -6
  33. package/lib/cjs/components/ChangePicture/ChangePicture.js +3 -4
  34. package/lib/cjs/components/ChangePicture/ChangePictureDialog/ChangePictureDialog.js +10 -22
  35. package/lib/cjs/components/CommentObject/CommentObject.js +11 -37
  36. package/lib/cjs/components/CommentObject/Skeleton.js +2 -6
  37. package/lib/cjs/components/CommentObjectReply/CommentObjectReply.js +3 -12
  38. package/lib/cjs/components/CommentsFeedObject/CommentsFeedObject.js +8 -14
  39. package/lib/cjs/components/CommentsFeedObject/Skeleton.js +2 -3
  40. package/lib/cjs/components/CommentsObject/CommentsObject.js +27 -48
  41. package/lib/cjs/components/CommentsObject/Skeleton.js +2 -2
  42. package/lib/cjs/components/Composer/Attributes/Attributes.js +5 -8
  43. package/lib/cjs/components/Composer/Composer.js +24 -46
  44. package/lib/cjs/components/Composer/Content/ContentDiscussion/ContentDiscussion.js +8 -11
  45. package/lib/cjs/components/Composer/Content/ContentPoll/ContentPoll.js +9 -28
  46. package/lib/cjs/components/Composer/Content/ContentPost/ContentPost.js +3 -5
  47. package/lib/cjs/components/Composer/Layer/AudienceLayer/AudienceLayer.js +13 -31
  48. package/lib/cjs/components/Composer/Layer/CategoryLayer/CategoryLayer.js +2 -10
  49. package/lib/cjs/components/Composer/Layer/CloseLayer/CloseLayer.js +2 -16
  50. package/lib/cjs/components/Composer/Layer/LocationLayer/LocationLayer.js +2 -10
  51. package/lib/cjs/components/Composer/Skeleton.js +2 -3
  52. package/lib/cjs/components/Composer/TypeSwitchButtonGroup/TypeSwitchButtonGroup.js +3 -8
  53. package/lib/cjs/components/ComposerIconButton/ComposerIconButton.js +5 -8
  54. package/lib/cjs/components/ConnectionUserButton/ConnectionUserButton.js +2 -1
  55. package/lib/cjs/components/ConsentSolution/ConsentSolution.js +9 -58
  56. package/lib/cjs/components/ConsentSolution/Skeleton.js +3 -16
  57. package/lib/cjs/components/ConsentSolutionButton/ConsentSolutionButton.js +2 -4
  58. package/lib/cjs/components/CreateEventButton/CreateEventButton.js +2 -3
  59. package/lib/cjs/components/CreateGroupButton/CreateGroupButton.js +3 -4
  60. package/lib/cjs/components/CustomAdv/CustomAdv.js +5 -6
  61. package/lib/cjs/components/CustomAdv/Skeleton.js +2 -3
  62. package/lib/cjs/components/EditEventButton/EditEventButton.js +2 -3
  63. package/lib/cjs/components/EditGroupButton/EditGroupButton.js +2 -3
  64. package/lib/cjs/components/Editor/Editor.js +3 -21
  65. package/lib/cjs/components/Editor/Skeleton.js +2 -3
  66. package/lib/cjs/components/Editor/nodes/ImageNode.js +5 -6
  67. package/lib/cjs/components/Editor/plugins/AutoLinkPlugin.js +2 -11
  68. package/lib/cjs/components/Editor/plugins/EmojiPlugin.js +12 -15
  69. package/lib/cjs/components/Editor/plugins/FloatingLinkPlugin.js +7 -13
  70. package/lib/cjs/components/Editor/plugins/HashtagPlugin.js +11 -11
  71. package/lib/cjs/components/Editor/plugins/ImagePlugin.js +9 -10
  72. package/lib/cjs/components/Editor/plugins/LexicalRichTextPlugin.js +2 -12
  73. package/lib/cjs/components/Editor/plugins/MentionsPlugin.js +11 -16
  74. package/lib/cjs/components/Editor/plugins/OnChangePlugin.js +2 -3
  75. package/lib/cjs/components/Editor/plugins/ToolbarPlugin.js +9 -40
  76. package/lib/cjs/components/Editor/shared/useDecorators.js +2 -4
  77. package/lib/cjs/components/Event/Event.js +3 -10
  78. package/lib/cjs/components/Event/Skeleton.js +2 -8
  79. package/lib/cjs/components/EventForm/EventAddress.js +6 -14
  80. package/lib/cjs/components/EventForm/EventForm.js +46 -86
  81. package/lib/cjs/components/EventForm/UploadEventCover.js +4 -6
  82. package/lib/cjs/components/EventHeader/EventHeader.js +36 -52
  83. package/lib/cjs/components/EventHeader/Skeleton.js +2 -12
  84. package/lib/cjs/components/EventInfoWidget/EventInfoWidget.js +11 -13
  85. package/lib/cjs/components/EventInfoWidget/Skeleton.d.ts +1 -0
  86. package/lib/cjs/components/EventInfoWidget/Skeleton.js +20 -0
  87. package/lib/cjs/components/EventInfoWidget/index.d.ts +2 -1
  88. package/lib/cjs/components/EventInfoWidget/index.js +3 -1
  89. package/lib/cjs/components/EventInviteButton/EventInviteButton.js +4 -24
  90. package/lib/cjs/components/EventLocationWidget/EventLocationWidget.js +8 -16
  91. package/lib/cjs/components/EventLocationWidget/Skeleton.js +2 -8
  92. package/lib/cjs/components/EventPartecipantsButton/EventPartecipantsButton.d.ts +46 -0
  93. package/lib/cjs/components/EventPartecipantsButton/EventPartecipantsButton.js +130 -0
  94. package/lib/cjs/components/EventPartecipantsButton/index.d.ts +3 -0
  95. package/lib/cjs/components/EventPartecipantsButton/index.js +5 -0
  96. package/lib/cjs/components/EventSubscribeButton/EventSubscribeButton.js +12 -15
  97. package/lib/cjs/components/Events/Events.js +25 -53
  98. package/lib/cjs/components/Events/Skeleton.js +2 -4
  99. package/lib/cjs/components/Feed/Feed.js +11 -29
  100. package/lib/cjs/components/Feed/Skeleton.js +3 -12
  101. package/lib/cjs/components/FeedObject/Actions/Actions.js +2 -8
  102. package/lib/cjs/components/FeedObject/Actions/Comment/Comment.js +5 -11
  103. package/lib/cjs/components/FeedObject/Actions/Follow/Follow.js +6 -6
  104. package/lib/cjs/components/FeedObject/Actions/Share/Share.js +29 -60
  105. package/lib/cjs/components/FeedObject/Actions/Share/SharesDialog/SharesDialog.js +3 -5
  106. package/lib/cjs/components/FeedObject/Actions/Vote/Vote.js +2 -5
  107. package/lib/cjs/components/FeedObject/Activities/Activities.js +9 -10
  108. package/lib/cjs/components/FeedObject/Activities/ActivitiesMenu/ActivitiesMenu.js +23 -37
  109. package/lib/cjs/components/FeedObject/Activities/RelevantActivities/CommentActivity/CommentActivity.js +18 -20
  110. package/lib/cjs/components/FeedObject/Activities/RelevantActivities/FollowActivity/FollowActivity.js +5 -7
  111. package/lib/cjs/components/FeedObject/Activities/RelevantActivities/PollVoteActivity/PollVoteActivity.js +5 -7
  112. package/lib/cjs/components/FeedObject/Activities/RelevantActivities/RelevantActivities.js +7 -12
  113. package/lib/cjs/components/FeedObject/Activities/RelevantActivities/VoteUpActivity/VoteUpActivity.js +5 -7
  114. package/lib/cjs/components/FeedObject/Contributors/Contributors.js +3 -13
  115. package/lib/cjs/components/FeedObject/Contributors/Skeleton.js +2 -6
  116. package/lib/cjs/components/FeedObject/FeedObject.js +23 -110
  117. package/lib/cjs/components/FeedObject/Poll/Choice/Choice.js +3 -8
  118. package/lib/cjs/components/FeedObject/Poll/Poll.js +5 -21
  119. package/lib/cjs/components/FeedObject/Skeleton.js +4 -16
  120. package/lib/cjs/components/FeedObjectMediaPreview/FeedObjectMediaPreview.js +5 -6
  121. package/lib/cjs/components/FeedUpdatesWidget/FeedUpdatesWidget.js +5 -8
  122. package/lib/cjs/components/FeedUpdatesWidget/Skeleton.js +2 -2
  123. package/lib/cjs/components/FollowUserButton/FollowUserButton.js +5 -4
  124. package/lib/cjs/components/Footer/Footer.js +4 -7
  125. package/lib/cjs/components/Footer/Skeleton.js +2 -4
  126. package/lib/cjs/components/FriendshipUserButton/FriendshipUserButton.js +9 -8
  127. package/lib/cjs/components/Group/Group.js +7 -13
  128. package/lib/cjs/components/Group/Skeleton.js +2 -3
  129. package/lib/cjs/components/GroupAutocomplete/GroupAutocomplete.js +5 -8
  130. package/lib/cjs/components/GroupForm/GroupForm.js +36 -75
  131. package/lib/cjs/components/GroupHeader/GroupHeader.js +6 -34
  132. package/lib/cjs/components/GroupHeader/Skeleton.js +2 -12
  133. package/lib/cjs/components/GroupInfoWidget/GroupInfoWidget.js +24 -54
  134. package/lib/cjs/components/GroupInfoWidget/Skeleton.js +2 -3
  135. package/lib/cjs/components/GroupInviteButton/GroupInviteButton.js +4 -24
  136. package/lib/cjs/components/GroupInvitedWidget/GroupInvitedWidget.js +5 -18
  137. package/lib/cjs/components/GroupInvitedWidget/Skeleton.js +2 -3
  138. package/lib/cjs/components/GroupMembersButton/GroupMembersButton.js +3 -8
  139. package/lib/cjs/components/GroupMembersWidget/GroupMembersWidget.js +11 -28
  140. package/lib/cjs/components/GroupMembersWidget/Skeleton.js +2 -3
  141. package/lib/cjs/components/GroupRequestsWidget/GroupRequestsWidget.js +5 -16
  142. package/lib/cjs/components/GroupRequestsWidget/Skeleton.js +2 -3
  143. package/lib/cjs/components/GroupSettingsIconButton/GroupSettingsIconButton.js +13 -21
  144. package/lib/cjs/components/GroupSubscribeButton/GroupSubscribeButton.js +8 -7
  145. package/lib/cjs/components/Groups/Groups.js +10 -23
  146. package/lib/cjs/components/Groups/Skeleton.js +2 -4
  147. package/lib/cjs/components/Incubator/Incubator.js +8 -28
  148. package/lib/cjs/components/Incubator/Skeleton.js +2 -20
  149. package/lib/cjs/components/IncubatorDetail/IncubatorDetail.js +4 -46
  150. package/lib/cjs/components/IncubatorListWidget/CreateIncubatorDialog/CreateIncubatorDialog.js +5 -12
  151. package/lib/cjs/components/IncubatorListWidget/IncubatorListWidget.js +8 -32
  152. package/lib/cjs/components/IncubatorListWidget/Skeleton.js +2 -4
  153. package/lib/cjs/components/IncubatorSubscribeButton/IncubatorSubscribeButton.js +3 -2
  154. package/lib/cjs/components/IncubatorSuggestionWidget/IncubatorSuggestionWidget.js +5 -18
  155. package/lib/cjs/components/IncubatorSuggestionWidget/Skeleton.js +2 -4
  156. package/lib/cjs/components/InlineComposerWidget/InlineComposerWidget.js +5 -11
  157. package/lib/cjs/components/InlineComposerWidget/Skeleton.js +2 -7
  158. package/lib/cjs/components/LocationAutocomplete/LocationAutocomplete.js +6 -7
  159. package/lib/cjs/components/LoyaltyProgramWidget/LoyaltyProgramWidget.js +5 -13
  160. package/lib/cjs/components/LoyaltyProgramWidget/Skeleton.js +2 -11
  161. package/lib/cjs/components/MyEventsWidget/MyEventsWidget.d.ts +19 -0
  162. package/lib/cjs/components/MyEventsWidget/MyEventsWidget.js +123 -0
  163. package/lib/cjs/components/MyEventsWidget/Skeleton.d.ts +1 -0
  164. package/lib/cjs/components/MyEventsWidget/Skeleton.js +48 -0
  165. package/lib/cjs/components/MyEventsWidget/constants.d.ts +1 -0
  166. package/lib/cjs/components/MyEventsWidget/constants.js +4 -0
  167. package/lib/cjs/components/MyEventsWidget/index.d.ts +4 -0
  168. package/lib/cjs/components/MyEventsWidget/index.js +8 -0
  169. package/lib/cjs/components/NavigationMenuIconButton/DefaultDrawerContent.js +3 -11
  170. package/lib/cjs/components/NavigationMenuIconButton/DefaultHeaderContent.js +3 -4
  171. package/lib/cjs/components/NavigationMenuIconButton/NavigationMenuIconButton.js +4 -13
  172. package/lib/cjs/components/NavigationSettingsIconButton/NavigationSettingsIconButton.js +35 -75
  173. package/lib/cjs/components/NavigationToolbar/NavigationToolbar.js +14 -51
  174. package/lib/cjs/components/NavigationToolbar/NotificationMenu.js +2 -5
  175. package/lib/cjs/components/NavigationToolbar/Skeleton.js +2 -5
  176. package/lib/cjs/components/NavigationToolbarMobile/NavigationToolbarMobile.js +11 -27
  177. package/lib/cjs/components/NavigationToolbarMobile/Skeleton.js +2 -3
  178. package/lib/cjs/components/Notification/CollapsedFor/CollapsedFor.js +2 -15
  179. package/lib/cjs/components/Notification/Comment/Comment.js +11 -27
  180. package/lib/cjs/components/Notification/Contribution/Contribution.js +11 -28
  181. package/lib/cjs/components/Notification/ContributionFollow/ContributionFollow.js +4 -19
  182. package/lib/cjs/components/Notification/DeletedFor/DeletedFor.js +2 -17
  183. package/lib/cjs/components/Notification/Group/Group.js +17 -30
  184. package/lib/cjs/components/Notification/IncubatorApproved/IncubatorApproved.js +8 -16
  185. package/lib/cjs/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.js +2 -9
  186. package/lib/cjs/components/Notification/KindlyNoticeFor/KindlyNoticeFor.js +4 -16
  187. package/lib/cjs/components/Notification/Mention/Mention.js +7 -22
  188. package/lib/cjs/components/Notification/Notification.js +37 -57
  189. package/lib/cjs/components/Notification/PrivateMessage/PrivateMessage.js +24 -47
  190. package/lib/cjs/components/Notification/Skeleton.js +3 -7
  191. package/lib/cjs/components/Notification/UndeletedFor/UndeletedFor.js +2 -16
  192. package/lib/cjs/components/Notification/UserBlocked/UserBlocked.js +5 -7
  193. package/lib/cjs/components/Notification/UserConnection/UserConnection.js +5 -15
  194. package/lib/cjs/components/Notification/UserFollow/UserFollow.js +5 -15
  195. package/lib/cjs/components/Notification/VoteUp/VoteUp.js +6 -19
  196. package/lib/cjs/components/PlatformWidget/PlatformWidget.js +20 -53
  197. package/lib/cjs/components/PlatformWidget/Skeleton.js +2 -3
  198. package/lib/cjs/components/PollSuggestionWidget/PollSnippet/PollSnippet.js +3 -12
  199. package/lib/cjs/components/PollSuggestionWidget/PollSnippet/Skeleton.js +2 -2
  200. package/lib/cjs/components/PollSuggestionWidget/PollSuggestionWidget.js +5 -17
  201. package/lib/cjs/components/PollSuggestionWidget/Skeleton.js +2 -6
  202. package/lib/cjs/components/PrivateMessageComponent/PrivateMessageComponent.js +6 -9
  203. package/lib/cjs/components/PrivateMessageComponent/Skeleton.js +2 -6
  204. package/lib/cjs/components/PrivateMessageEditor/MessageMediaUploader/index.js +16 -37
  205. package/lib/cjs/components/PrivateMessageEditor/PrivateMessageEditor.js +9 -18
  206. package/lib/cjs/components/PrivateMessageEditor/Skeleton.js +2 -3
  207. package/lib/cjs/components/PrivateMessageSettingsIconButton/PrivateMessageSettingsIconButton.js +9 -31
  208. package/lib/cjs/components/PrivateMessageSnippetItem/PrivateMessageSnippetItem.js +12 -19
  209. package/lib/cjs/components/PrivateMessageSnippetItem/Skeleton.js +2 -5
  210. package/lib/cjs/components/PrivateMessageSnippets/PrivateMessageSnippets.js +8 -16
  211. package/lib/cjs/components/PrivateMessageSnippets/Skeleton.js +2 -8
  212. package/lib/cjs/components/PrivateMessageThread/PrivateMessageThread.js +14 -35
  213. package/lib/cjs/components/PrivateMessageThread/Skeleton.js +2 -9
  214. package/lib/cjs/components/PrivateMessageThreadItem/PrivateMessageThreadItem.js +15 -33
  215. package/lib/cjs/components/PrivateMessageThreadItem/Skeleton.js +2 -3
  216. package/lib/cjs/components/RelatedFeedObjectsWidget/RelatedFeedObjectsWidget.js +6 -21
  217. package/lib/cjs/components/RelatedFeedObjectsWidget/Skeleton.js +2 -3
  218. package/lib/cjs/components/SearchAutocomplete/SearchAutocomplete.js +5 -8
  219. package/lib/cjs/components/SearchDialog/SearchDialog.js +2 -4
  220. package/lib/cjs/components/Skeleton/AvatarGroupSkeleton.js +2 -3
  221. package/lib/cjs/components/Skeleton/GenericSkeleton.js +2 -6
  222. package/lib/cjs/components/SnippetNotifications/Skeleton.js +3 -3
  223. package/lib/cjs/components/SnippetNotifications/SnippetNotifications.js +23 -28
  224. package/lib/cjs/components/ToastNotifications/Skeleton.js +2 -3
  225. package/lib/cjs/components/ToastNotifications/ToastNotifications.js +16 -15
  226. package/lib/cjs/components/User/Skeleton.js +2 -3
  227. package/lib/cjs/components/User/User.js +7 -15
  228. package/lib/cjs/components/UserActionIconButton/UserActionIconButton.js +16 -31
  229. package/lib/cjs/components/UserConnectionsRequestsSentWidget/Skeleton.js +2 -3
  230. package/lib/cjs/components/UserConnectionsRequestsSentWidget/UserConnectionsRequestsSentWidget.js +5 -17
  231. package/lib/cjs/components/UserConnectionsRequestsWidget/Skeleton.js +2 -3
  232. package/lib/cjs/components/UserConnectionsRequestsWidget/UserConnectionsRequestsWidget.js +5 -17
  233. package/lib/cjs/components/UserConnectionsWidget/Skeleton.js +2 -3
  234. package/lib/cjs/components/UserConnectionsWidget/UserConnectionsWidget.js +5 -17
  235. package/lib/cjs/components/UserCounters/UserCounters.js +19 -28
  236. package/lib/cjs/components/UserFollowedCategoriesWidget/Skeleton.js +2 -2
  237. package/lib/cjs/components/UserFollowedCategoriesWidget/UserFollowedCategoriesWidget.js +5 -20
  238. package/lib/cjs/components/UserFollowedUsersWidget/Skeleton.js +2 -3
  239. package/lib/cjs/components/UserFollowedUsersWidget/UserFollowedUsersWidget.js +5 -17
  240. package/lib/cjs/components/UserFollowersWidget/Skeleton.js +2 -3
  241. package/lib/cjs/components/UserFollowersWidget/UserFollowersWidget.js +5 -17
  242. package/lib/cjs/components/UserInfo/Skeleton.js +2 -6
  243. package/lib/cjs/components/UserInfo/UserInfo.js +13 -14
  244. package/lib/cjs/components/UserInfoDialog/UserInfoDialog.js +3 -5
  245. package/lib/cjs/components/UserProfileBlocked/UserProfileBlocked.js +4 -11
  246. package/lib/cjs/components/UserProfileEdit/Section/Account.js +3 -13
  247. package/lib/cjs/components/UserProfileEdit/Section/AccountCredentials.js +15 -37
  248. package/lib/cjs/components/UserProfileEdit/Section/PublicInfo.js +15 -25
  249. package/lib/cjs/components/UserProfileEdit/Section/Settings.js +7 -37
  250. package/lib/cjs/components/UserProfileEdit/Section/SettingsSkeleton.js +2 -5
  251. package/lib/cjs/components/UserProfileEdit/Skeleton.js +2 -6
  252. package/lib/cjs/components/UserProfileEdit/UserProfileEdit.js +2 -9
  253. package/lib/cjs/components/UserProfileHeader/Skeleton.js +2 -13
  254. package/lib/cjs/components/UserProfileHeader/UserProfileHeader.js +4 -21
  255. package/lib/cjs/components/UserSocialAssociation/UserSocialAssociation.js +2 -16
  256. package/lib/cjs/components/UserSubscribedGroupsWidget/Skeleton.js +2 -6
  257. package/lib/cjs/components/UserSubscribedGroupsWidget/UserSubscribedGroupsWidget.js +7 -22
  258. package/lib/cjs/components/UserSuggestionWidget/Skeleton.js +2 -5
  259. package/lib/cjs/components/UserSuggestionWidget/UserSuggestionWidget.js +5 -17
  260. package/lib/cjs/components/VoteAudienceButton/VoteAudienceButton.js +9 -23
  261. package/lib/cjs/components/VoteButton/VoteButton.js +9 -15
  262. package/lib/cjs/components/Widget/index.js +3 -2
  263. package/lib/cjs/index.d.ts +3 -1
  264. package/lib/cjs/index.js +9 -4
  265. package/lib/cjs/shared/AutoPlayer/index.js +6 -7
  266. package/lib/cjs/shared/BaseDialog/BaseDialog.js +3 -10
  267. package/lib/cjs/shared/BaseItem/BaseItem.js +4 -10
  268. package/lib/cjs/shared/BaseItemButton/BaseItemButton.js +4 -10
  269. package/lib/cjs/shared/Bullet/index.js +2 -1
  270. package/lib/cjs/shared/Calendar/index.js +6 -3
  271. package/lib/cjs/shared/CentralProgress/index.js +3 -4
  272. package/lib/cjs/shared/ConfirmDialog/ConfirmDialog.js +2 -9
  273. package/lib/cjs/shared/ConsentSolutionSwitch/index.js +5 -8
  274. package/lib/cjs/shared/ContributionActionsMenu/index.js +22 -85
  275. package/lib/cjs/shared/CustomSnackMessage/index.js +3 -7
  276. package/lib/cjs/shared/DateTimeAgo/index.js +2 -6
  277. package/lib/cjs/shared/EmailTextField/index.js +3 -2
  278. package/lib/cjs/shared/EmojiPicker/EmojiPicker.js +2 -2
  279. package/lib/cjs/shared/EventInfoDetails/index.js +5 -22
  280. package/lib/cjs/shared/HiddenPlaceholder/index.js +2 -3
  281. package/lib/cjs/shared/InfiniteScroll/index.js +8 -19
  282. package/lib/cjs/shared/InfiniteScroll/stories/InfiniteScrollWithHeight.js +3 -8
  283. package/lib/cjs/shared/InfiniteScroll/stories/PullDownToRefreshInfScroll.js +3 -7
  284. package/lib/cjs/shared/InfiniteScroll/stories/ScrollableTargetFixedInfScroll.js +13 -18
  285. package/lib/cjs/shared/InfiniteScroll/stories/ScrollableTargetInfScroll.js +3 -8
  286. package/lib/cjs/shared/InfiniteScroll/stories/ScrolleableTop.js +6 -11
  287. package/lib/cjs/shared/InfiniteScroll/stories/WindowInfiniteScrollComponent.js +3 -6
  288. package/lib/cjs/shared/LanguageSwitcher/index.js +3 -5
  289. package/lib/cjs/shared/Lightbox/Lightbox.js +4 -3
  290. package/lib/cjs/shared/MarkRead/MarkRead.js +3 -3
  291. package/lib/cjs/shared/Media/File/DisplayComponent.js +13 -42
  292. package/lib/cjs/shared/Media/File/Lightbox/index.js +5 -5
  293. package/lib/cjs/shared/Media/File/PreviewComponent.js +5 -9
  294. package/lib/cjs/shared/Media/File/TriggerButton.js +14 -25
  295. package/lib/cjs/shared/Media/File/asUploadButton.js +3 -2
  296. package/lib/cjs/shared/Media/Link/DisplayComponent.js +8 -15
  297. package/lib/cjs/shared/Media/Link/LayerComponent.js +2 -11
  298. package/lib/cjs/shared/Media/Link/PreviewComponent.js +2 -4
  299. package/lib/cjs/shared/Media/Link/TriggerButton.js +2 -3
  300. package/lib/cjs/shared/Media/Link/UrlTextField/index.js +5 -7
  301. package/lib/cjs/shared/Media/Share/DisplayComponent.js +3 -3
  302. package/lib/cjs/shared/MetadataField/MetadataField.js +8 -7
  303. package/lib/cjs/shared/NewChip/NewChip.js +2 -2
  304. package/lib/cjs/shared/NotificationItem/NotificationItem.js +3 -12
  305. package/lib/cjs/shared/PasswordTextField/index.js +4 -6
  306. package/lib/cjs/shared/PhoneTextField/index.js +3 -2
  307. package/lib/cjs/shared/ScrollContainer/index.js +2 -2
  308. package/lib/cjs/shared/StickyBox/index.js +6 -5
  309. package/lib/cjs/shared/TagChip/index.js +2 -2
  310. package/lib/cjs/shared/Tags/index.js +11 -23
  311. package/lib/cjs/shared/UrlTextField/index.js +3 -2
  312. package/lib/cjs/shared/UserAvatar/UserAvatar.js +3 -2
  313. package/lib/cjs/shared/UserDeletedSnackBar/UserDeletedSnackBar.js +3 -5
  314. package/lib/cjs/shared/UsernameTextField/index.js +3 -2
  315. package/lib/cjs/shared/VirtualizedScroller/VirtualScrollerChild.js +2 -2
  316. package/lib/cjs/shared/VirtualizedScroller/VirtualizedScroller.js +3 -2
  317. package/lib/cjs/utils/contribution.js +3 -4
  318. package/lib/cjs/utils/errors.js +3 -4
  319. package/lib/esm/components/AccountChangeMailValidation/AccountChangeMailValidation.js +3 -8
  320. package/lib/esm/components/AccountDataPortability/AccountDataPortability.js +16 -25
  321. package/lib/esm/components/AccountDataPortabilityButton/AccountDataPortabilityButton.js +3 -6
  322. package/lib/esm/components/AccountDelete/AccountDelete.js +16 -23
  323. package/lib/esm/components/AccountDeleteButton/AccountDeleteButton.js +3 -6
  324. package/lib/esm/components/AccountRecover/AccountRecover.js +8 -12
  325. package/lib/esm/components/AccountReset/AccountReset.js +3 -12
  326. package/lib/esm/components/AccountVerify/AccountVerify.js +3 -8
  327. package/lib/esm/components/BottomNavigation/BottomNavigation.js +19 -20
  328. package/lib/esm/components/BroadcastMessages/BroadcastMessages.js +3 -10
  329. package/lib/esm/components/BroadcastMessages/Message.js +6 -23
  330. package/lib/esm/components/BroadcastMessages/Skeleton.js +3 -15
  331. package/lib/esm/components/Categories/Categories.js +5 -10
  332. package/lib/esm/components/Categories/Skeleton.js +2 -4
  333. package/lib/esm/components/CategoriesPopularWidget/CategoriesPopularWidget.js +5 -17
  334. package/lib/esm/components/CategoriesPopularWidget/Skeleton.js +2 -2
  335. package/lib/esm/components/CategoriesSuggestionWidget/CategoriesSuggestionWidget.js +5 -17
  336. package/lib/esm/components/CategoriesSuggestionWidget/Skeleton.js +2 -5
  337. package/lib/esm/components/Category/Category.js +4 -4
  338. package/lib/esm/components/Category/Skeleton.js +2 -3
  339. package/lib/esm/components/CategoryAutocomplete/CategoryAutocomplete.js +6 -9
  340. package/lib/esm/components/CategoryFollowButton/CategoryFollowButton.js +3 -2
  341. package/lib/esm/components/CategoryFollowersButton/CategoryFollowersButton.js +3 -8
  342. package/lib/esm/components/CategoryHeader/CategoryHeader.js +3 -12
  343. package/lib/esm/components/CategoryHeader/Skeleton.js +2 -7
  344. package/lib/esm/components/CategoryTrendingFeedWidget/CategoryTrendingFeedWidget.js +7 -19
  345. package/lib/esm/components/CategoryTrendingFeedWidget/Skeleton.js +2 -4
  346. package/lib/esm/components/CategoryTrendingUsersWidget/CategoryTrendingUsersWidget.js +5 -17
  347. package/lib/esm/components/CategoryTrendingUsersWidget/Skeleton.js +2 -5
  348. package/lib/esm/components/ChangeCover/ChangeCover.js +18 -41
  349. package/lib/esm/components/ChangeGroupCover/ChangeGroupCover.js +4 -6
  350. package/lib/esm/components/ChangeGroupPicture/ChangeGroupPicture.js +4 -6
  351. package/lib/esm/components/ChangePicture/ChangePicture.js +3 -4
  352. package/lib/esm/components/ChangePicture/ChangePictureDialog/ChangePictureDialog.js +10 -22
  353. package/lib/esm/components/CommentObject/CommentObject.js +11 -37
  354. package/lib/esm/components/CommentObject/Skeleton.js +2 -6
  355. package/lib/esm/components/CommentObjectReply/CommentObjectReply.js +3 -12
  356. package/lib/esm/components/CommentsFeedObject/CommentsFeedObject.js +8 -14
  357. package/lib/esm/components/CommentsFeedObject/Skeleton.js +2 -2
  358. package/lib/esm/components/CommentsObject/CommentsObject.js +27 -48
  359. package/lib/esm/components/CommentsObject/Skeleton.js +2 -2
  360. package/lib/esm/components/Composer/Attributes/Attributes.js +5 -8
  361. package/lib/esm/components/Composer/Composer.js +24 -46
  362. package/lib/esm/components/Composer/Content/ContentDiscussion/ContentDiscussion.js +8 -11
  363. package/lib/esm/components/Composer/Content/ContentPoll/ContentPoll.js +9 -28
  364. package/lib/esm/components/Composer/Content/ContentPost/ContentPost.js +3 -5
  365. package/lib/esm/components/Composer/Layer/AudienceLayer/AudienceLayer.js +13 -31
  366. package/lib/esm/components/Composer/Layer/CategoryLayer/CategoryLayer.js +2 -10
  367. package/lib/esm/components/Composer/Layer/CloseLayer/CloseLayer.js +2 -16
  368. package/lib/esm/components/Composer/Layer/LocationLayer/LocationLayer.js +2 -10
  369. package/lib/esm/components/Composer/Skeleton.js +2 -3
  370. package/lib/esm/components/Composer/TypeSwitchButtonGroup/TypeSwitchButtonGroup.js +3 -8
  371. package/lib/esm/components/ComposerIconButton/ComposerIconButton.js +5 -8
  372. package/lib/esm/components/ConnectionUserButton/ConnectionUserButton.js +2 -1
  373. package/lib/esm/components/ConsentSolution/ConsentSolution.js +9 -58
  374. package/lib/esm/components/ConsentSolution/Skeleton.js +3 -16
  375. package/lib/esm/components/ConsentSolutionButton/ConsentSolutionButton.js +2 -4
  376. package/lib/esm/components/CreateEventButton/CreateEventButton.js +2 -3
  377. package/lib/esm/components/CreateGroupButton/CreateGroupButton.js +3 -4
  378. package/lib/esm/components/CustomAdv/CustomAdv.js +5 -6
  379. package/lib/esm/components/CustomAdv/Skeleton.js +2 -2
  380. package/lib/esm/components/EditEventButton/EditEventButton.js +2 -3
  381. package/lib/esm/components/EditGroupButton/EditGroupButton.js +2 -3
  382. package/lib/esm/components/Editor/Editor.js +3 -21
  383. package/lib/esm/components/Editor/Skeleton.js +2 -2
  384. package/lib/esm/components/Editor/nodes/ImageNode.js +5 -5
  385. package/lib/esm/components/Editor/plugins/AutoLinkPlugin.js +2 -10
  386. package/lib/esm/components/Editor/plugins/EmojiPlugin.js +12 -15
  387. package/lib/esm/components/Editor/plugins/FloatingLinkPlugin.js +7 -13
  388. package/lib/esm/components/Editor/plugins/HashtagPlugin.js +11 -11
  389. package/lib/esm/components/Editor/plugins/ImagePlugin.js +9 -10
  390. package/lib/esm/components/Editor/plugins/LexicalRichTextPlugin.js +2 -12
  391. package/lib/esm/components/Editor/plugins/MentionsPlugin.js +11 -16
  392. package/lib/esm/components/Editor/plugins/OnChangePlugin.js +2 -2
  393. package/lib/esm/components/Editor/plugins/ToolbarPlugin.js +9 -40
  394. package/lib/esm/components/Editor/shared/useDecorators.js +2 -3
  395. package/lib/esm/components/Event/Event.js +3 -10
  396. package/lib/esm/components/Event/Skeleton.js +2 -8
  397. package/lib/esm/components/EventForm/EventAddress.js +6 -14
  398. package/lib/esm/components/EventForm/EventForm.js +46 -86
  399. package/lib/esm/components/EventForm/UploadEventCover.js +4 -6
  400. package/lib/esm/components/EventHeader/EventHeader.js +36 -52
  401. package/lib/esm/components/EventHeader/Skeleton.js +2 -12
  402. package/lib/esm/components/EventInfoWidget/EventInfoWidget.js +11 -13
  403. package/lib/esm/components/EventInfoWidget/Skeleton.d.ts +1 -0
  404. package/lib/esm/components/EventInfoWidget/Skeleton.js +16 -0
  405. package/lib/esm/components/EventInfoWidget/index.d.ts +2 -1
  406. package/lib/esm/components/EventInfoWidget/index.js +2 -1
  407. package/lib/esm/components/EventInviteButton/EventInviteButton.js +4 -24
  408. package/lib/esm/components/EventLocationWidget/EventLocationWidget.js +8 -16
  409. package/lib/esm/components/EventLocationWidget/Skeleton.js +2 -8
  410. package/lib/esm/components/EventPartecipantsButton/EventPartecipantsButton.d.ts +46 -0
  411. package/lib/esm/components/EventPartecipantsButton/EventPartecipantsButton.js +127 -0
  412. package/lib/esm/components/EventPartecipantsButton/index.d.ts +3 -0
  413. package/lib/esm/components/EventPartecipantsButton/index.js +2 -0
  414. package/lib/esm/components/EventSubscribeButton/EventSubscribeButton.js +12 -15
  415. package/lib/esm/components/Events/Events.js +25 -53
  416. package/lib/esm/components/Events/Skeleton.js +2 -4
  417. package/lib/esm/components/Feed/Feed.js +11 -29
  418. package/lib/esm/components/Feed/Skeleton.js +3 -12
  419. package/lib/esm/components/FeedObject/Actions/Actions.js +2 -8
  420. package/lib/esm/components/FeedObject/Actions/Comment/Comment.js +5 -11
  421. package/lib/esm/components/FeedObject/Actions/Follow/Follow.js +6 -6
  422. package/lib/esm/components/FeedObject/Actions/Share/Share.js +29 -60
  423. package/lib/esm/components/FeedObject/Actions/Share/SharesDialog/SharesDialog.js +3 -5
  424. package/lib/esm/components/FeedObject/Actions/Vote/Vote.js +2 -5
  425. package/lib/esm/components/FeedObject/Activities/Activities.js +9 -10
  426. package/lib/esm/components/FeedObject/Activities/ActivitiesMenu/ActivitiesMenu.js +23 -37
  427. package/lib/esm/components/FeedObject/Activities/RelevantActivities/CommentActivity/CommentActivity.js +18 -20
  428. package/lib/esm/components/FeedObject/Activities/RelevantActivities/FollowActivity/FollowActivity.js +5 -7
  429. package/lib/esm/components/FeedObject/Activities/RelevantActivities/PollVoteActivity/PollVoteActivity.js +5 -7
  430. package/lib/esm/components/FeedObject/Activities/RelevantActivities/RelevantActivities.js +7 -12
  431. package/lib/esm/components/FeedObject/Activities/RelevantActivities/VoteUpActivity/VoteUpActivity.js +5 -7
  432. package/lib/esm/components/FeedObject/Contributors/Contributors.js +3 -13
  433. package/lib/esm/components/FeedObject/Contributors/Skeleton.js +2 -6
  434. package/lib/esm/components/FeedObject/FeedObject.js +23 -110
  435. package/lib/esm/components/FeedObject/Poll/Choice/Choice.js +3 -8
  436. package/lib/esm/components/FeedObject/Poll/Poll.js +5 -21
  437. package/lib/esm/components/FeedObject/Skeleton.js +4 -16
  438. package/lib/esm/components/FeedObjectMediaPreview/FeedObjectMediaPreview.js +5 -6
  439. package/lib/esm/components/FeedUpdatesWidget/FeedUpdatesWidget.js +5 -8
  440. package/lib/esm/components/FeedUpdatesWidget/Skeleton.js +2 -2
  441. package/lib/esm/components/FollowUserButton/FollowUserButton.js +5 -4
  442. package/lib/esm/components/Footer/Footer.js +4 -7
  443. package/lib/esm/components/Footer/Skeleton.js +2 -4
  444. package/lib/esm/components/FriendshipUserButton/FriendshipUserButton.js +9 -8
  445. package/lib/esm/components/Group/Group.js +7 -13
  446. package/lib/esm/components/Group/Skeleton.js +2 -3
  447. package/lib/esm/components/GroupAutocomplete/GroupAutocomplete.js +5 -8
  448. package/lib/esm/components/GroupForm/GroupForm.js +36 -75
  449. package/lib/esm/components/GroupHeader/GroupHeader.js +6 -34
  450. package/lib/esm/components/GroupHeader/Skeleton.js +2 -12
  451. package/lib/esm/components/GroupInfoWidget/GroupInfoWidget.js +24 -54
  452. package/lib/esm/components/GroupInfoWidget/Skeleton.js +2 -2
  453. package/lib/esm/components/GroupInviteButton/GroupInviteButton.js +4 -24
  454. package/lib/esm/components/GroupInvitedWidget/GroupInvitedWidget.js +5 -18
  455. package/lib/esm/components/GroupInvitedWidget/Skeleton.js +2 -2
  456. package/lib/esm/components/GroupMembersButton/GroupMembersButton.js +3 -8
  457. package/lib/esm/components/GroupMembersWidget/GroupMembersWidget.js +11 -28
  458. package/lib/esm/components/GroupMembersWidget/Skeleton.js +2 -2
  459. package/lib/esm/components/GroupRequestsWidget/GroupRequestsWidget.js +5 -16
  460. package/lib/esm/components/GroupRequestsWidget/Skeleton.js +2 -2
  461. package/lib/esm/components/GroupSettingsIconButton/GroupSettingsIconButton.js +13 -21
  462. package/lib/esm/components/GroupSubscribeButton/GroupSubscribeButton.js +8 -7
  463. package/lib/esm/components/Groups/Groups.js +10 -23
  464. package/lib/esm/components/Groups/Skeleton.js +2 -4
  465. package/lib/esm/components/Incubator/Incubator.js +8 -28
  466. package/lib/esm/components/Incubator/Skeleton.js +2 -20
  467. package/lib/esm/components/IncubatorDetail/IncubatorDetail.js +4 -46
  468. package/lib/esm/components/IncubatorListWidget/CreateIncubatorDialog/CreateIncubatorDialog.js +5 -12
  469. package/lib/esm/components/IncubatorListWidget/IncubatorListWidget.js +8 -32
  470. package/lib/esm/components/IncubatorListWidget/Skeleton.js +2 -4
  471. package/lib/esm/components/IncubatorSubscribeButton/IncubatorSubscribeButton.js +3 -2
  472. package/lib/esm/components/IncubatorSuggestionWidget/IncubatorSuggestionWidget.js +5 -18
  473. package/lib/esm/components/IncubatorSuggestionWidget/Skeleton.js +2 -4
  474. package/lib/esm/components/InlineComposerWidget/InlineComposerWidget.js +5 -11
  475. package/lib/esm/components/InlineComposerWidget/Skeleton.js +2 -7
  476. package/lib/esm/components/LocationAutocomplete/LocationAutocomplete.js +6 -7
  477. package/lib/esm/components/LoyaltyProgramWidget/LoyaltyProgramWidget.js +5 -13
  478. package/lib/esm/components/LoyaltyProgramWidget/Skeleton.js +2 -11
  479. package/lib/esm/components/MyEventsWidget/MyEventsWidget.d.ts +19 -0
  480. package/lib/esm/components/MyEventsWidget/MyEventsWidget.js +120 -0
  481. package/lib/esm/components/MyEventsWidget/Skeleton.d.ts +1 -0
  482. package/lib/esm/components/MyEventsWidget/Skeleton.js +44 -0
  483. package/lib/esm/components/MyEventsWidget/constants.d.ts +1 -0
  484. package/lib/esm/components/MyEventsWidget/constants.js +1 -0
  485. package/lib/esm/components/MyEventsWidget/index.d.ts +4 -0
  486. package/lib/esm/components/MyEventsWidget/index.js +4 -0
  487. package/lib/esm/components/NavigationMenuIconButton/DefaultDrawerContent.js +3 -11
  488. package/lib/esm/components/NavigationMenuIconButton/DefaultHeaderContent.js +3 -4
  489. package/lib/esm/components/NavigationMenuIconButton/NavigationMenuIconButton.js +4 -13
  490. package/lib/esm/components/NavigationSettingsIconButton/NavigationSettingsIconButton.js +35 -75
  491. package/lib/esm/components/NavigationToolbar/NavigationToolbar.js +14 -51
  492. package/lib/esm/components/NavigationToolbar/NotificationMenu.js +2 -5
  493. package/lib/esm/components/NavigationToolbar/Skeleton.js +2 -5
  494. package/lib/esm/components/NavigationToolbarMobile/NavigationToolbarMobile.js +11 -27
  495. package/lib/esm/components/NavigationToolbarMobile/Skeleton.js +2 -3
  496. package/lib/esm/components/Notification/CollapsedFor/CollapsedFor.js +2 -15
  497. package/lib/esm/components/Notification/Comment/Comment.js +11 -27
  498. package/lib/esm/components/Notification/Contribution/Contribution.js +11 -28
  499. package/lib/esm/components/Notification/ContributionFollow/ContributionFollow.js +4 -19
  500. package/lib/esm/components/Notification/DeletedFor/DeletedFor.js +2 -17
  501. package/lib/esm/components/Notification/Group/Group.js +17 -30
  502. package/lib/esm/components/Notification/IncubatorApproved/IncubatorApproved.js +8 -16
  503. package/lib/esm/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.js +2 -9
  504. package/lib/esm/components/Notification/KindlyNoticeFor/KindlyNoticeFor.js +4 -16
  505. package/lib/esm/components/Notification/Mention/Mention.js +7 -22
  506. package/lib/esm/components/Notification/Notification.js +37 -57
  507. package/lib/esm/components/Notification/PrivateMessage/PrivateMessage.js +24 -47
  508. package/lib/esm/components/Notification/Skeleton.js +3 -7
  509. package/lib/esm/components/Notification/UndeletedFor/UndeletedFor.js +2 -16
  510. package/lib/esm/components/Notification/UserBlocked/UserBlocked.js +5 -7
  511. package/lib/esm/components/Notification/UserConnection/UserConnection.js +5 -15
  512. package/lib/esm/components/Notification/UserFollow/UserFollow.js +5 -15
  513. package/lib/esm/components/Notification/VoteUp/VoteUp.js +6 -19
  514. package/lib/esm/components/PlatformWidget/PlatformWidget.js +20 -53
  515. package/lib/esm/components/PlatformWidget/Skeleton.js +2 -2
  516. package/lib/esm/components/PollSuggestionWidget/PollSnippet/PollSnippet.js +3 -12
  517. package/lib/esm/components/PollSuggestionWidget/PollSnippet/Skeleton.js +2 -2
  518. package/lib/esm/components/PollSuggestionWidget/PollSuggestionWidget.js +5 -17
  519. package/lib/esm/components/PollSuggestionWidget/Skeleton.js +2 -6
  520. package/lib/esm/components/PrivateMessageComponent/PrivateMessageComponent.js +6 -9
  521. package/lib/esm/components/PrivateMessageComponent/Skeleton.js +2 -6
  522. package/lib/esm/components/PrivateMessageEditor/MessageMediaUploader/index.js +16 -37
  523. package/lib/esm/components/PrivateMessageEditor/PrivateMessageEditor.js +9 -18
  524. package/lib/esm/components/PrivateMessageEditor/Skeleton.js +2 -2
  525. package/lib/esm/components/PrivateMessageSettingsIconButton/PrivateMessageSettingsIconButton.js +9 -31
  526. package/lib/esm/components/PrivateMessageSnippetItem/PrivateMessageSnippetItem.js +12 -19
  527. package/lib/esm/components/PrivateMessageSnippetItem/Skeleton.js +2 -5
  528. package/lib/esm/components/PrivateMessageSnippets/PrivateMessageSnippets.js +8 -16
  529. package/lib/esm/components/PrivateMessageSnippets/Skeleton.js +2 -8
  530. package/lib/esm/components/PrivateMessageThread/PrivateMessageThread.js +14 -35
  531. package/lib/esm/components/PrivateMessageThread/Skeleton.js +2 -9
  532. package/lib/esm/components/PrivateMessageThreadItem/PrivateMessageThreadItem.js +15 -33
  533. package/lib/esm/components/PrivateMessageThreadItem/Skeleton.js +2 -3
  534. package/lib/esm/components/RelatedFeedObjectsWidget/RelatedFeedObjectsWidget.js +6 -21
  535. package/lib/esm/components/RelatedFeedObjectsWidget/Skeleton.js +2 -2
  536. package/lib/esm/components/SearchAutocomplete/SearchAutocomplete.js +5 -8
  537. package/lib/esm/components/SearchDialog/SearchDialog.js +2 -4
  538. package/lib/esm/components/Skeleton/AvatarGroupSkeleton.js +2 -3
  539. package/lib/esm/components/Skeleton/GenericSkeleton.js +2 -6
  540. package/lib/esm/components/SnippetNotifications/Skeleton.js +3 -3
  541. package/lib/esm/components/SnippetNotifications/SnippetNotifications.js +23 -28
  542. package/lib/esm/components/ToastNotifications/Skeleton.js +2 -2
  543. package/lib/esm/components/ToastNotifications/ToastNotifications.js +16 -15
  544. package/lib/esm/components/User/Skeleton.js +2 -3
  545. package/lib/esm/components/User/User.js +7 -15
  546. package/lib/esm/components/UserActionIconButton/UserActionIconButton.js +16 -31
  547. package/lib/esm/components/UserConnectionsRequestsSentWidget/Skeleton.js +2 -2
  548. package/lib/esm/components/UserConnectionsRequestsSentWidget/UserConnectionsRequestsSentWidget.js +5 -17
  549. package/lib/esm/components/UserConnectionsRequestsWidget/Skeleton.js +2 -2
  550. package/lib/esm/components/UserConnectionsRequestsWidget/UserConnectionsRequestsWidget.js +5 -17
  551. package/lib/esm/components/UserConnectionsWidget/Skeleton.js +2 -2
  552. package/lib/esm/components/UserConnectionsWidget/UserConnectionsWidget.js +5 -17
  553. package/lib/esm/components/UserCounters/UserCounters.js +19 -28
  554. package/lib/esm/components/UserFollowedCategoriesWidget/Skeleton.js +2 -2
  555. package/lib/esm/components/UserFollowedCategoriesWidget/UserFollowedCategoriesWidget.js +5 -20
  556. package/lib/esm/components/UserFollowedUsersWidget/Skeleton.js +2 -2
  557. package/lib/esm/components/UserFollowedUsersWidget/UserFollowedUsersWidget.js +5 -17
  558. package/lib/esm/components/UserFollowersWidget/Skeleton.js +2 -2
  559. package/lib/esm/components/UserFollowersWidget/UserFollowersWidget.js +5 -17
  560. package/lib/esm/components/UserInfo/Skeleton.js +2 -6
  561. package/lib/esm/components/UserInfo/UserInfo.js +13 -14
  562. package/lib/esm/components/UserInfoDialog/UserInfoDialog.js +3 -5
  563. package/lib/esm/components/UserProfileBlocked/UserProfileBlocked.js +4 -11
  564. package/lib/esm/components/UserProfileEdit/Section/Account.js +3 -13
  565. package/lib/esm/components/UserProfileEdit/Section/AccountCredentials.js +15 -37
  566. package/lib/esm/components/UserProfileEdit/Section/PublicInfo.js +15 -25
  567. package/lib/esm/components/UserProfileEdit/Section/Settings.js +7 -37
  568. package/lib/esm/components/UserProfileEdit/Section/SettingsSkeleton.js +2 -5
  569. package/lib/esm/components/UserProfileEdit/Skeleton.js +2 -6
  570. package/lib/esm/components/UserProfileEdit/UserProfileEdit.js +2 -9
  571. package/lib/esm/components/UserProfileHeader/Skeleton.js +2 -13
  572. package/lib/esm/components/UserProfileHeader/UserProfileHeader.js +4 -21
  573. package/lib/esm/components/UserSocialAssociation/UserSocialAssociation.js +2 -16
  574. package/lib/esm/components/UserSubscribedGroupsWidget/Skeleton.js +2 -6
  575. package/lib/esm/components/UserSubscribedGroupsWidget/UserSubscribedGroupsWidget.js +7 -22
  576. package/lib/esm/components/UserSuggestionWidget/Skeleton.js +2 -5
  577. package/lib/esm/components/UserSuggestionWidget/UserSuggestionWidget.js +5 -17
  578. package/lib/esm/components/VoteAudienceButton/VoteAudienceButton.js +9 -23
  579. package/lib/esm/components/VoteButton/VoteButton.js +9 -15
  580. package/lib/esm/components/Widget/index.js +3 -2
  581. package/lib/esm/index.d.ts +3 -1
  582. package/lib/esm/index.js +4 -2
  583. package/lib/esm/shared/AutoPlayer/index.js +5 -6
  584. package/lib/esm/shared/BaseDialog/BaseDialog.js +3 -10
  585. package/lib/esm/shared/BaseItem/BaseItem.js +4 -10
  586. package/lib/esm/shared/BaseItemButton/BaseItemButton.js +4 -10
  587. package/lib/esm/shared/Bullet/index.js +2 -1
  588. package/lib/esm/shared/Calendar/index.js +6 -3
  589. package/lib/esm/shared/CentralProgress/index.js +3 -4
  590. package/lib/esm/shared/ConfirmDialog/ConfirmDialog.js +2 -9
  591. package/lib/esm/shared/ConsentSolutionSwitch/index.js +5 -8
  592. package/lib/esm/shared/ContributionActionsMenu/index.js +22 -85
  593. package/lib/esm/shared/CustomSnackMessage/index.js +3 -7
  594. package/lib/esm/shared/DateTimeAgo/index.js +2 -6
  595. package/lib/esm/shared/EmailTextField/index.js +3 -2
  596. package/lib/esm/shared/EmojiPicker/EmojiPicker.js +2 -2
  597. package/lib/esm/shared/EventInfoDetails/index.js +5 -22
  598. package/lib/esm/shared/HiddenPlaceholder/index.js +2 -2
  599. package/lib/esm/shared/InfiniteScroll/index.js +8 -18
  600. package/lib/esm/shared/InfiniteScroll/stories/InfiniteScrollWithHeight.js +3 -8
  601. package/lib/esm/shared/InfiniteScroll/stories/PullDownToRefreshInfScroll.js +3 -7
  602. package/lib/esm/shared/InfiniteScroll/stories/ScrollableTargetFixedInfScroll.js +13 -18
  603. package/lib/esm/shared/InfiniteScroll/stories/ScrollableTargetInfScroll.js +3 -8
  604. package/lib/esm/shared/InfiniteScroll/stories/ScrolleableTop.js +6 -11
  605. package/lib/esm/shared/InfiniteScroll/stories/WindowInfiniteScrollComponent.js +3 -6
  606. package/lib/esm/shared/LanguageSwitcher/index.js +3 -5
  607. package/lib/esm/shared/Lightbox/Lightbox.js +4 -3
  608. package/lib/esm/shared/MarkRead/MarkRead.js +3 -3
  609. package/lib/esm/shared/Media/File/DisplayComponent.js +13 -42
  610. package/lib/esm/shared/Media/File/Lightbox/index.js +5 -5
  611. package/lib/esm/shared/Media/File/PreviewComponent.js +5 -9
  612. package/lib/esm/shared/Media/File/TriggerButton.js +14 -25
  613. package/lib/esm/shared/Media/File/asUploadButton.js +3 -2
  614. package/lib/esm/shared/Media/Link/DisplayComponent.js +8 -15
  615. package/lib/esm/shared/Media/Link/LayerComponent.js +2 -11
  616. package/lib/esm/shared/Media/Link/PreviewComponent.js +2 -4
  617. package/lib/esm/shared/Media/Link/TriggerButton.js +2 -3
  618. package/lib/esm/shared/Media/Link/UrlTextField/index.js +5 -7
  619. package/lib/esm/shared/Media/Share/DisplayComponent.js +3 -3
  620. package/lib/esm/shared/MetadataField/MetadataField.js +8 -7
  621. package/lib/esm/shared/NewChip/NewChip.js +2 -2
  622. package/lib/esm/shared/NotificationItem/NotificationItem.js +3 -12
  623. package/lib/esm/shared/PasswordTextField/index.js +4 -6
  624. package/lib/esm/shared/PhoneTextField/index.js +3 -2
  625. package/lib/esm/shared/ScrollContainer/index.js +2 -2
  626. package/lib/esm/shared/StickyBox/index.js +3 -2
  627. package/lib/esm/shared/TagChip/index.js +2 -2
  628. package/lib/esm/shared/Tags/index.js +11 -23
  629. package/lib/esm/shared/UrlTextField/index.js +3 -2
  630. package/lib/esm/shared/UserAvatar/UserAvatar.js +3 -2
  631. package/lib/esm/shared/UserDeletedSnackBar/UserDeletedSnackBar.js +3 -5
  632. package/lib/esm/shared/UsernameTextField/index.js +3 -2
  633. package/lib/esm/shared/VirtualizedScroller/VirtualScrollerChild.js +2 -2
  634. package/lib/esm/shared/VirtualizedScroller/VirtualizedScroller.js +3 -2
  635. package/lib/esm/utils/contribution.js +3 -3
  636. package/lib/esm/utils/errors.js +3 -3
  637. package/lib/umd/react-ui.js +1 -1
  638. package/package.json +7 -7
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- const react_1 = tslib_1.__importDefault(require("react"));
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const styles_1 = require("@mui/material/styles");
6
6
  const material_1 = require("@mui/material");
7
7
  const Icon_1 = tslib_1.__importDefault(require("@mui/material/Icon"));
@@ -46,14 +46,12 @@ function UserBlockedNotification(props) {
46
46
  /**
47
47
  * Renders root object
48
48
  */
49
- return (react_1.default.createElement(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${constants_1.PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: react_1.default.createElement(material_1.Avatar, { variant: "circular", classes: {
49
+ return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${constants_1.PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: (0, jsx_runtime_1.jsx)(material_1.Avatar, Object.assign({ variant: "circular", classes: {
50
50
  root: (0, classnames_1.default)(classes.unBlockedIcon, {
51
51
  [classes.blockedIcon]: notificationObject.type === types_1.SCNotificationTypologyType.BLOCKED_USER
52
52
  })
53
- } },
54
- react_1.default.createElement(Icon_1.default, null, "outlined_flag")), primary: react_1.default.createElement(material_1.Typography, { component: "div", color: "inherit", className: classes.blockedText }, notificationObject.type === types_1.SCNotificationTypologyType.BLOCKED_USER
55
- ? intl.formatMessage(messages.accountBlocked, { b: (...chunks) => react_1.default.createElement("strong", null, chunks) })
56
- : intl.formatMessage(messages.accountReactivated, { b: (...chunks) => react_1.default.createElement("strong", null, chunks) })), secondary: (template === types_2.SCNotificationObjectTemplateType.DETAIL || template === types_2.SCNotificationObjectTemplateType.SNIPPET) && (react_1.default.createElement(DateTimeAgo_1.default, { date: notificationObject.active_at, className: classes.activeAt })), footer: template === types_2.SCNotificationObjectTemplateType.TOAST && (react_1.default.createElement(material_1.Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 },
57
- react_1.default.createElement(DateTimeAgo_1.default, { date: notificationObject.active_at }))) }, rest)));
53
+ } }, { children: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "outlined_flag" }) })), primary: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ component: "div", color: "inherit", className: classes.blockedText }, { children: notificationObject.type === types_1.SCNotificationTypologyType.BLOCKED_USER
54
+ ? intl.formatMessage(messages.accountBlocked, { b: (...chunks) => (0, jsx_runtime_1.jsx)("strong", { children: chunks }) })
55
+ : intl.formatMessage(messages.accountReactivated, { b: (...chunks) => (0, jsx_runtime_1.jsx)("strong", { children: chunks }) }) })), secondary: (template === types_2.SCNotificationObjectTemplateType.DETAIL || template === types_2.SCNotificationObjectTemplateType.SNIPPET) && ((0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at, className: classes.activeAt })), footer: template === types_2.SCNotificationObjectTemplateType.TOAST && ((0, jsx_runtime_1.jsx)(material_1.Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: (0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at }) }))) }, rest)));
58
56
  }
59
57
  exports.default = UserBlockedNotification;
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- const react_1 = tslib_1.__importStar(require("react"));
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const react_1 = require("react");
5
6
  const styles_1 = require("@mui/material/styles");
6
7
  const material_1 = require("@mui/material");
7
8
  const react_intl_1 = require("react-intl");
@@ -54,19 +55,8 @@ function UserConnectionNotification(props) {
54
55
  /**
55
56
  * Renders root object
56
57
  */
57
- return (react_1.default.createElement(react_1.default.Fragment, null,
58
- react_1.default.createElement(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${constants_1.PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: react_1.default.createElement(react_core_1.Link, Object.assign({}, (!userConnection.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, userConnection) }), { onClick: userConnection.deleted ? () => setOpenAlert(true) : null }),
59
- react_1.default.createElement(UserAvatar_1.default, { hide: !userConnection.community_badge, smaller: true },
60
- react_1.default.createElement(material_1.Avatar, { alt: userConnection.username, variant: "circular", src: userConnection.avatar, classes: { root: classes.avatar } }))), primary: react_1.default.createElement(material_1.Typography, { component: "div", color: "inherit", className: classes.connectionText },
61
- react_1.default.createElement(react_core_1.Link, Object.assign({}, (!userConnection.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, userConnection) }), { onClick: userConnection.deleted ? () => setOpenAlert(true) : null, className: classes.username }), userConnection.username),
62
- ' ',
63
- notificationObject.type === types_1.SCNotificationTypologyType.CONNECTION_REQUEST
64
- ? intl.formatMessage(messages.requestConnection, { b: (...chunks) => react_1.default.createElement("strong", null, chunks) })
65
- : intl.formatMessage(messages.acceptConnection, { b: (...chunks) => react_1.default.createElement("strong", null, chunks) })), secondary: (template === types_2.SCNotificationObjectTemplateType.DETAIL || template === types_2.SCNotificationObjectTemplateType.SNIPPET) && (react_1.default.createElement(DateTimeAgo_1.default, { date: notificationObject.active_at, className: classes.activeAt })), footer: template === types_2.SCNotificationObjectTemplateType.TOAST && (react_1.default.createElement(material_1.Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 },
66
- react_1.default.createElement(DateTimeAgo_1.default, { date: notificationObject.active_at }),
67
- react_1.default.createElement(material_1.Typography, { color: "primary", component: 'div' },
68
- react_1.default.createElement(react_core_1.Link, Object.assign({}, (!userConnection.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, userConnection) }), { onClick: userConnection.deleted ? () => setOpenAlert(true) : null }),
69
- react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.userToastNotifications.goToProfile", defaultMessage: 'ui.userToastNotifications.goToProfile' }))))) }, rest)),
70
- openAlert && react_1.default.createElement(UserDeletedSnackBar_1.default, { open: openAlert, handleClose: () => setOpenAlert(false) })));
58
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${constants_1.PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({}, (!userConnection.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, userConnection) }), { onClick: userConnection.deleted ? () => setOpenAlert(true) : null }, { children: (0, jsx_runtime_1.jsx)(UserAvatar_1.default, Object.assign({ hide: !userConnection.community_badge, smaller: true }, { children: (0, jsx_runtime_1.jsx)(material_1.Avatar, { alt: userConnection.username, variant: "circular", src: userConnection.avatar, classes: { root: classes.avatar } }) })) })), primary: (0, jsx_runtime_1.jsxs)(material_1.Typography, Object.assign({ component: "div", color: "inherit", className: classes.connectionText }, { children: [(0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({}, (!userConnection.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, userConnection) }), { onClick: userConnection.deleted ? () => setOpenAlert(true) : null, className: classes.username }, { children: userConnection.username })), ' ', notificationObject.type === types_1.SCNotificationTypologyType.CONNECTION_REQUEST
59
+ ? intl.formatMessage(messages.requestConnection, { b: (...chunks) => (0, jsx_runtime_1.jsx)("strong", { children: chunks }) })
60
+ : intl.formatMessage(messages.acceptConnection, { b: (...chunks) => (0, jsx_runtime_1.jsx)("strong", { children: chunks }) })] })), secondary: (template === types_2.SCNotificationObjectTemplateType.DETAIL || template === types_2.SCNotificationObjectTemplateType.SNIPPET) && ((0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at, className: classes.activeAt })), footer: template === types_2.SCNotificationObjectTemplateType.TOAST && ((0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: [(0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at }), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ color: "primary", component: 'div' }, { children: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({}, (!userConnection.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, userConnection) }), { onClick: userConnection.deleted ? () => setOpenAlert(true) : null }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userToastNotifications.goToProfile", defaultMessage: 'ui.userToastNotifications.goToProfile' }) })) }))] }))) }, rest)), openAlert && (0, jsx_runtime_1.jsx)(UserDeletedSnackBar_1.default, { open: openAlert, handleClose: () => setOpenAlert(false) })] }));
71
61
  }
72
62
  exports.default = UserConnectionNotification;
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- const react_1 = tslib_1.__importStar(require("react"));
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const react_1 = require("react");
5
6
  const styles_1 = require("@mui/material/styles");
6
7
  const material_1 = require("@mui/material");
7
8
  const react_core_1 = require("@selfcommunity/react-core");
@@ -47,19 +48,8 @@ function UserFollowNotification(props) {
47
48
  /**
48
49
  * Renders root object
49
50
  */
50
- return (react_1.default.createElement(react_1.default.Fragment, null,
51
- react_1.default.createElement(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${constants_1.PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: react_1.default.createElement(react_core_1.Link, Object.assign({}, (!notificationObject.follower.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.follower) }), { onClick: notificationObject.follower.deleted ? () => setOpenAlert(true) : null }),
52
- react_1.default.createElement(UserAvatar_1.default, { hide: !notificationObject.follower.community_badge, smaller: true },
53
- react_1.default.createElement(material_1.Avatar, { alt: notificationObject.follower.username, variant: "circular", src: notificationObject.follower.avatar, classes: { root: classes.avatar } }))), primary: react_1.default.createElement(material_1.Typography, { component: "div", color: "inherit", className: classes.followText },
54
- react_1.default.createElement(react_core_1.Link, Object.assign({}, (!notificationObject.follower.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.follower) }), { onClick: notificationObject.follower.deleted ? () => setOpenAlert(true) : null, className: classes.username }), notificationObject.follower.username),
55
- ' ',
56
- intl.formatMessage(messages.followUser, { b: (...chunks) => react_1.default.createElement("strong", null, chunks) })), secondary: (template === types_1.SCNotificationObjectTemplateType.DETAIL || template === types_1.SCNotificationObjectTemplateType.SNIPPET) && (react_1.default.createElement(DateTimeAgo_1.default, { date: notificationObject.active_at, className: classes.activeAt })), footer: template === types_1.SCNotificationObjectTemplateType.TOAST && (react_1.default.createElement(material_1.Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 },
57
- react_1.default.createElement(DateTimeAgo_1.default, { date: notificationObject.active_at }),
58
- react_1.default.createElement(material_1.Typography, { color: "primary", component: 'div' },
59
- react_1.default.createElement(react_core_1.Link, Object.assign({}, (!notificationObject.follower.deleted && {
60
- to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.follower)
61
- }), { onClick: notificationObject.follower.deleted ? () => setOpenAlert(true) : null }),
62
- react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.userToastNotifications.goToProfile", defaultMessage: 'ui.userToastNotifications.goToProfile' }))))) }, rest)),
63
- openAlert && react_1.default.createElement(UserDeletedSnackBar_1.default, { open: openAlert, handleClose: () => setOpenAlert(false) })));
51
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${constants_1.PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({}, (!notificationObject.follower.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.follower) }), { onClick: notificationObject.follower.deleted ? () => setOpenAlert(true) : null }, { children: (0, jsx_runtime_1.jsx)(UserAvatar_1.default, Object.assign({ hide: !notificationObject.follower.community_badge, smaller: true }, { children: (0, jsx_runtime_1.jsx)(material_1.Avatar, { alt: notificationObject.follower.username, variant: "circular", src: notificationObject.follower.avatar, classes: { root: classes.avatar } }) })) })), primary: (0, jsx_runtime_1.jsxs)(material_1.Typography, Object.assign({ component: "div", color: "inherit", className: classes.followText }, { children: [(0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({}, (!notificationObject.follower.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.follower) }), { onClick: notificationObject.follower.deleted ? () => setOpenAlert(true) : null, className: classes.username }, { children: notificationObject.follower.username })), ' ', intl.formatMessage(messages.followUser, { b: (...chunks) => (0, jsx_runtime_1.jsx)("strong", { children: chunks }) })] })), secondary: (template === types_1.SCNotificationObjectTemplateType.DETAIL || template === types_1.SCNotificationObjectTemplateType.SNIPPET) && ((0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at, className: classes.activeAt })), footer: template === types_1.SCNotificationObjectTemplateType.TOAST && ((0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: [(0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at }), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ color: "primary", component: 'div' }, { children: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({}, (!notificationObject.follower.deleted && {
52
+ to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.follower)
53
+ }), { onClick: notificationObject.follower.deleted ? () => setOpenAlert(true) : null }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userToastNotifications.goToProfile", defaultMessage: 'ui.userToastNotifications.goToProfile' }) })) }))] }))) }, rest)), openAlert && (0, jsx_runtime_1.jsx)(UserDeletedSnackBar_1.default, { open: openAlert, handleClose: () => setOpenAlert(false) })] }));
64
54
  }
65
55
  exports.default = UserFollowNotification;
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- const react_1 = tslib_1.__importStar(require("react"));
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const react_1 = require("react");
5
6
  const styles_1 = require("@mui/material/styles");
6
7
  const material_1 = require("@mui/material");
7
8
  const react_core_1 = require("@selfcommunity/react-core");
@@ -52,23 +53,9 @@ function VoteUpNotification(props) {
52
53
  /**
53
54
  * Renders root object
54
55
  */
55
- return (react_1.default.createElement(react_1.default.Fragment, null,
56
- react_1.default.createElement(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${constants_1.PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: react_1.default.createElement(react_core_1.Link, Object.assign({}, (!notificationObject.user.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.user) }), { onClick: notificationObject.user.deleted ? () => setOpenAlert(true) : null }),
57
- react_1.default.createElement(UserAvatar_1.default, { hide: !notificationObject.user.community_badge, smaller: true },
58
- react_1.default.createElement(material_1.Avatar, { alt: notificationObject.user.username, variant: "circular", src: notificationObject.user.avatar, classes: { root: classes.avatar } }))), primary: react_1.default.createElement(react_1.default.Fragment, null,
59
- react_1.default.createElement(react_core_1.Link, Object.assign({}, (!notificationObject.user.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.user) }), { onClick: notificationObject.user.deleted ? () => setOpenAlert(true) : null, className: classes.username }), notificationObject.user.username),
60
- ' ',
61
- intl.formatMessage(messages.appreciated, {
62
- username: notificationObject.user.username,
63
- b: (...chunks) => react_1.default.createElement("strong", null, chunks)
64
- })), secondary: react_1.default.createElement(react_1.default.Fragment, null,
65
- react_1.default.createElement(react_core_1.Link, { to: scRoutingContext.url(react_core_1.SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(notificationObject[contributionType])) },
66
- react_1.default.createElement(material_1.Typography, { variant: "body2", className: classes.contributionText, component: 'div' }, (0, contribution_1.getContributionSnippet)(notificationObject[contributionType]))),
67
- (template === notification_1.SCNotificationObjectTemplateType.DETAIL || template === notification_1.SCNotificationObjectTemplateType.SNIPPET) && (react_1.default.createElement(DateTimeAgo_1.default, { date: notificationObject.active_at, className: classes.activeAt }))), footer: template === notification_1.SCNotificationObjectTemplateType.TOAST && (react_1.default.createElement(material_1.Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 },
68
- react_1.default.createElement(DateTimeAgo_1.default, { date: notificationObject.active_at }),
69
- react_1.default.createElement(material_1.Typography, { color: "primary", component: 'div' },
70
- react_1.default.createElement(react_core_1.Link, { to: scRoutingContext.url((0, contribution_1.getContributionRouteName)(contribution), (0, contribution_1.getRouteData)(contribution)) },
71
- react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.userToastNotifications.viewContribution", defaultMessage: 'ui.userToastNotifications.viewContribution' }))))) }, rest)),
72
- openAlert && react_1.default.createElement(UserDeletedSnackBar_1.default, { open: openAlert, handleClose: () => setOpenAlert(false) })));
56
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${constants_1.PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({}, (!notificationObject.user.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.user) }), { onClick: notificationObject.user.deleted ? () => setOpenAlert(true) : null }, { children: (0, jsx_runtime_1.jsx)(UserAvatar_1.default, Object.assign({ hide: !notificationObject.user.community_badge, smaller: true }, { children: (0, jsx_runtime_1.jsx)(material_1.Avatar, { alt: notificationObject.user.username, variant: "circular", src: notificationObject.user.avatar, classes: { root: classes.avatar } }) })) })), primary: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({}, (!notificationObject.user.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.user) }), { onClick: notificationObject.user.deleted ? () => setOpenAlert(true) : null, className: classes.username }, { children: notificationObject.user.username })), ' ', intl.formatMessage(messages.appreciated, {
57
+ username: notificationObject.user.username,
58
+ b: (...chunks) => (0, jsx_runtime_1.jsx)("strong", { children: chunks })
59
+ })] }), secondary: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(notificationObject[contributionType])) }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body2", className: classes.contributionText, component: 'div' }, { children: (0, contribution_1.getContributionSnippet)(notificationObject[contributionType]) })) })), (template === notification_1.SCNotificationObjectTemplateType.DETAIL || template === notification_1.SCNotificationObjectTemplateType.SNIPPET) && ((0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at, className: classes.activeAt }))] }), footer: template === notification_1.SCNotificationObjectTemplateType.TOAST && ((0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: [(0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at }), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ color: "primary", component: 'div' }, { children: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url((0, contribution_1.getContributionRouteName)(contribution), (0, contribution_1.getRouteData)(contribution)) }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userToastNotifications.viewContribution", defaultMessage: 'ui.userToastNotifications.viewContribution' }) })) }))] }))) }, rest)), openAlert && (0, jsx_runtime_1.jsx)(UserDeletedSnackBar_1.default, { open: openAlert, handleClose: () => setOpenAlert(false) })] }));
73
60
  }
74
61
  exports.default = VoteUpNotification;
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- const react_1 = tslib_1.__importStar(require("react"));
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const react_1 = require("react");
5
6
  const styles_1 = require("@mui/material/styles");
6
7
  const material_1 = require("@mui/material");
7
8
  const api_services_1 = require("@selfcommunity/api-services");
@@ -197,40 +198,36 @@ function PlatformWidget(inProps) {
197
198
  ...((isAdmin || isEditor) && !hideConsoleAction
198
199
  ? [
199
200
  {
200
- render: (react_1.default.createElement(material_1.Button, { variant: "outlined", size: "small", onClick: () => fetchPlatform('') },
201
- react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.platformWidget.adm", defaultMessage: "ui.platformWidget.adm" }))),
202
- title: react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.platformWidget.adm", defaultMessage: "ui.platformWidget.adm" }),
203
- content: react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.platformWidget.adm.desc", defaultMessage: "ui.platformWidget.adm.desc" })
201
+ render: ((0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ variant: "outlined", size: "small", onClick: () => fetchPlatform('') }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.platformWidget.adm", defaultMessage: "ui.platformWidget.adm" }) }))),
202
+ title: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.platformWidget.adm", defaultMessage: "ui.platformWidget.adm" }),
203
+ content: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.platformWidget.adm.desc", defaultMessage: "ui.platformWidget.adm.desc" })
204
204
  }
205
205
  ]
206
206
  : []),
207
207
  ...((isAdmin || isModerator) && !hideModerationAction
208
208
  ? [
209
209
  {
210
- render: (react_1.default.createElement(material_1.Button, { variant: "outlined", size: "small", onClick: () => fetchPlatform('/moderation/flags/') },
211
- react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.platformWidget.mod", defaultMessage: "ui.platformWidget.mod" }))),
212
- title: react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.platformWidget.mod", defaultMessage: "ui.platformWidget.mod" }),
213
- content: react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.platformWidget.mod.desc", defaultMessage: "ui.platformWidget.mod.desc" })
210
+ render: ((0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ variant: "outlined", size: "small", onClick: () => fetchPlatform('/moderation/flags/') }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.platformWidget.mod", defaultMessage: "ui.platformWidget.mod" }) }))),
211
+ title: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.platformWidget.mod", defaultMessage: "ui.platformWidget.mod" }),
212
+ content: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.platformWidget.mod.desc", defaultMessage: "ui.platformWidget.mod.desc" })
214
213
  }
215
214
  ]
216
215
  : []),
217
216
  ...(isAdmin && isCommunityOwner && !hideHubAction
218
217
  ? [
219
218
  {
220
- render: (react_1.default.createElement(material_1.Button, { variant: "outlined", size: "small", component: react_core_1.Link, to: isStage ? constants_1.HUB_STAGE : constants_1.HUB_PROD, target: "_blank" },
221
- react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.platformWidget.hub", defaultMessage: "ui.platformWidget.hub" }))),
222
- title: react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.platformWidget.hub", defaultMessage: "ui.platformWidget.hub" }),
223
- content: react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.platformWidget.hub.desc", defaultMessage: "ui.platformWidget.hub.desc" })
219
+ render: ((0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ variant: "outlined", size: "small", component: react_core_1.Link, to: isStage ? constants_1.HUB_STAGE : constants_1.HUB_PROD, target: "_blank" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.platformWidget.hub", defaultMessage: "ui.platformWidget.hub" }) }))),
220
+ title: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.platformWidget.hub", defaultMessage: "ui.platformWidget.hub" }),
221
+ content: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.platformWidget.hub.desc", defaultMessage: "ui.platformWidget.hub.desc" })
224
222
  }
225
223
  ]
226
224
  : []),
227
225
  ...(isCommunityOwner && !hideContactUsAction
228
226
  ? [
229
227
  {
230
- render: (react_1.default.createElement(material_1.Button, { variant: "outlined", size: "small", component: react_core_1.Link, to: isStage ? constants_1.CONTACT_STAGE : constants_1.CONTACT_PROD, target: "_blank" },
231
- react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.platformWidget.contactUs", defaultMessage: "ui.platformWidget.contactUs" }))),
232
- title: react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.platformWidget.contactUs", defaultMessage: "ui.platformWidget.contactUs" }),
233
- content: react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.platformWidget.contactUs.desc", defaultMessage: "ui.platformWidget.contactUs.desc" })
228
+ render: ((0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ variant: "outlined", size: "small", component: react_core_1.Link, to: isStage ? constants_1.CONTACT_STAGE : constants_1.CONTACT_PROD, target: "_blank" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.platformWidget.contactUs", defaultMessage: "ui.platformWidget.contactUs" }) }))),
229
+ title: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.platformWidget.contactUs", defaultMessage: "ui.platformWidget.contactUs" }),
230
+ content: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.platformWidget.contactUs.desc", defaultMessage: "ui.platformWidget.contactUs.desc" })
234
231
  }
235
232
  ]
236
233
  : []),
@@ -299,49 +296,19 @@ function PlatformWidget(inProps) {
299
296
  /**
300
297
  * Render tutorial
301
298
  */
302
- const tutorial = (react_1.default.createElement(material_1.Grid, { container: true, spacing: isAdmin ? 1 : 3, justifyContent: "center", className: classes.tutorial },
303
- !isTutorialOpen && (react_1.default.createElement(material_1.Grid, { item: true, xs: "auto", alignItems: "center", justifyContent: "center" },
304
- react_1.default.createElement(material_1.IconButton, { size: "medium", onClick: handleOpenTutorial },
305
- react_1.default.createElement(material_1.Icon, null, "info")))),
306
- react_1.default.createElement(material_1.Collapse, { in: isTutorialOpen, className: classes.tutorialContent }, isTutorialOpen && (react_1.default.createElement(material_1.Grid, { item: true, xs: "auto" },
307
- react_1.default.createElement(material_1.Typography, { variant: 'body2', className: classes.tutorialTitle, component: 'div' },
308
- react_1.default.createElement(Grow_1.default, { in: true, timeout: 1000 },
309
- react_1.default.createElement("span", null, actions[tutorialIndex].title)),
310
- react_1.default.createElement(material_1.IconButton, { size: 'small', className: classes.tutorialTitleClose, onClick: handleCloseTutorial },
311
- react_1.default.createElement(material_1.Icon, null, "close"))),
312
- react_1.default.createElement(Grow_1.default, { in: true, timeout: 1200 },
313
- react_1.default.createElement(material_1.Typography, { variant: 'body2', className: classes.tutorialDesc }, actions[tutorialIndex].content)),
314
- react_1.default.createElement(material_1.Divider, { className: classes.divider }),
315
- react_1.default.createElement(material_1.Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2, className: classes.tutorialControls },
316
- react_1.default.createElement(material_1.Button, { variant: "text", size: "small", onClick: handlePrevious, className: (0, classnames_1.default)(classes.btnStep, classes.btnPreviousStep) }, tutorialIndex === 0 ? (react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.platformWidget.tutorial.skip", defaultMessage: "ui.platformWidget.tutorial.skip" })) : (react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.platformWidget.tutorial.previous", defaultMessage: "ui.platformWidget.tutorial.previous" }))),
317
- react_1.default.createElement(material_1.Typography, { component: 'div' },
318
- tutorialIndex + 1,
319
- "/",
320
- actions.length),
321
- react_1.default.createElement(material_1.Button, { variant: "contained", size: "small", color: "primary", onClick: handleNext, className: (0, classnames_1.default)(classes.btnStep, classes.btnNextStep) }, tutorialIndex === actions.length - 1 ? (react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.platformWidget.tutorial.close", defaultMessage: "ui.platformWidget.tutorial.close" })) : (react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.platformWidget.tutorial.next", defaultMessage: "ui.platformWidget.tutorial.next" })))))))));
299
+ const tutorial = ((0, jsx_runtime_1.jsxs)(material_1.Grid, Object.assign({ container: true, spacing: isAdmin ? 1 : 3, justifyContent: "center", className: classes.tutorial }, { children: [!isTutorialOpen && ((0, jsx_runtime_1.jsx)(material_1.Grid, Object.assign({ item: true, xs: "auto", alignItems: "center", justifyContent: "center" }, { children: (0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ size: "medium", onClick: handleOpenTutorial }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "info" }) })) }))), (0, jsx_runtime_1.jsx)(material_1.Collapse, Object.assign({ in: isTutorialOpen, className: classes.tutorialContent }, { children: isTutorialOpen && ((0, jsx_runtime_1.jsxs)(material_1.Grid, Object.assign({ item: true, xs: "auto" }, { children: [(0, jsx_runtime_1.jsxs)(material_1.Typography, Object.assign({ variant: 'body2', className: classes.tutorialTitle, component: 'div' }, { children: [(0, jsx_runtime_1.jsx)(Grow_1.default, Object.assign({ in: true, timeout: 1000 }, { children: (0, jsx_runtime_1.jsx)("span", { children: actions[tutorialIndex].title }) })), (0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ size: 'small', className: classes.tutorialTitleClose, onClick: handleCloseTutorial }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "close" }) }))] })), (0, jsx_runtime_1.jsx)(Grow_1.default, Object.assign({ in: true, timeout: 1200 }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: 'body2', className: classes.tutorialDesc }, { children: actions[tutorialIndex].content })) })), (0, jsx_runtime_1.jsx)(material_1.Divider, { className: classes.divider }), (0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2, className: classes.tutorialControls }, { children: [(0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ variant: "text", size: "small", onClick: handlePrevious, className: (0, classnames_1.default)(classes.btnStep, classes.btnPreviousStep) }, { children: tutorialIndex === 0 ? ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.platformWidget.tutorial.skip", defaultMessage: "ui.platformWidget.tutorial.skip" })) : ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.platformWidget.tutorial.previous", defaultMessage: "ui.platformWidget.tutorial.previous" })) })), (0, jsx_runtime_1.jsxs)(material_1.Typography, Object.assign({ component: 'div' }, { children: [tutorialIndex + 1, "/", actions.length] })), (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ variant: "contained", size: "small", color: "primary", onClick: handleNext, className: (0, classnames_1.default)(classes.btnStep, classes.btnNextStep) }, { children: tutorialIndex === actions.length - 1 ? ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.platformWidget.tutorial.close", defaultMessage: "ui.platformWidget.tutorial.close" })) : ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.platformWidget.tutorial.next", defaultMessage: "ui.platformWidget.tutorial.next" })) }))] }))] }))) }))] })));
322
300
  /**
323
301
  * Renders platform card
324
302
  */
325
- const content = (react_1.default.createElement(material_1.Grid, { container: true, spacing: isAdmin ? 1 : 3, justifyContent: "center", className: classes.content },
326
- react_1.default.createElement(material_1.Grid, { item: true, xs: 12 }, title ? (title) : (react_1.default.createElement(material_1.Box, { className: classes.title },
327
- react_1.default.createElement(material_1.Tooltip, { title: react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.platformWidget.title.tooltip", defaultMessage: "ui.platformWidget.title.tooltip" }), placement: "top" },
328
- react_1.default.createElement("img", { src: logo_1.default, alt: "logo" }))))),
329
- react_1.default.createElement(material_1.Grid, { item: true, xs: 12, className: classes.actions },
330
- react_1.default.createElement(material_1.Grid, { item: true, xs: 1, className: classes.action }),
331
- actions.map((a, i) => {
332
- return (react_1.default.createElement(material_1.Grid, { key: i, item: true, xs: "auto", className: (0, classnames_1.default)(classes.action, { [classes.actionHighlighted]: tutorialIndex === i && isTutorialOpen }) }, a.render));
333
- }),
334
- react_1.default.createElement(material_1.Grid, { item: true, xs: 1, className: classes.action }))));
303
+ const content = ((0, jsx_runtime_1.jsxs)(material_1.Grid, Object.assign({ container: true, spacing: isAdmin ? 1 : 3, justifyContent: "center", className: classes.content }, { children: [(0, jsx_runtime_1.jsx)(material_1.Grid, Object.assign({ item: true, xs: 12 }, { children: title ? (title) : ((0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ className: classes.title }, { children: (0, jsx_runtime_1.jsx)(material_1.Tooltip, Object.assign({ title: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.platformWidget.title.tooltip", defaultMessage: "ui.platformWidget.title.tooltip" }), placement: "top" }, { children: (0, jsx_runtime_1.jsx)("img", { src: logo_1.default, alt: "logo" }) })) }))) })), (0, jsx_runtime_1.jsxs)(material_1.Grid, Object.assign({ item: true, xs: 12, className: classes.actions }, { children: [(0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: 1, className: classes.action }), actions.map((a, i) => {
304
+ return ((0, jsx_runtime_1.jsx)(material_1.Grid, Object.assign({ item: true, xs: "auto", className: (0, classnames_1.default)(classes.action, { [classes.actionHighlighted]: tutorialIndex === i && isTutorialOpen }) }, { children: a.render }), i));
305
+ }), (0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: 1, className: classes.action })] }))] })));
335
306
  /**
336
307
  * Renders root object (if not hidden by autoHide prop)
337
308
  */
338
309
  if (!autoHide && ((_a = scUserContext === null || scUserContext === void 0 ? void 0 : scUserContext.user) === null || _a === void 0 ? void 0 : _a.role)) {
339
- return (react_1.default.createElement(react_1.default.Fragment, null,
340
- react_1.default.createElement(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className, { [classes.tutorialOpen]: isTutorialOpen }) }, rest),
341
- content,
342
- tutorial),
343
- react_1.default.createElement(material_1.Backdrop, { sx: { color: '#fff', zIndex: (theme) => theme.zIndex.drawer + 1 }, open: isTutorialOpen, onClick: handleCloseTutorial })));
310
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className, { [classes.tutorialOpen]: isTutorialOpen }) }, rest, { children: [content, tutorial] })), (0, jsx_runtime_1.jsx)(material_1.Backdrop, { sx: { color: '#fff', zIndex: (theme) => theme.zIndex.drawer + 1 }, open: isTutorialOpen, onClick: handleCloseTutorial })] }));
344
311
  }
345
- return react_1.default.createElement(HiddenPlaceholder_1.default, null);
312
+ return (0, jsx_runtime_1.jsx)(HiddenPlaceholder_1.default, {});
346
313
  }
347
314
  exports.default = PlatformWidget;
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- const react_1 = tslib_1.__importDefault(require("react"));
3
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
4
  const Skeleton_1 = require("../Skeleton");
6
5
  const styles_1 = require("@mui/material/styles");
7
6
  const constants_1 = require("./constants");
@@ -33,6 +32,6 @@ const Root = (0, styles_1.styled)(Skeleton_1.GenericSkeleton, {
33
32
  *
34
33
  */
35
34
  function PlatformWidgetSkeleton() {
36
- return react_1.default.createElement(Root, { className: classes.root });
35
+ return (0, jsx_runtime_1.jsx)(Root, { className: classes.root });
37
36
  }
38
37
  exports.default = PlatformWidgetSkeleton;
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- const react_1 = tslib_1.__importStar(require("react"));
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const react_1 = require("react");
5
6
  const styles_1 = require("@mui/material/styles");
6
7
  const material_1 = require("@mui/material");
7
8
  const react_core_1 = require("@selfcommunity/react-core");
@@ -57,17 +58,7 @@ function PollSnippet(props) {
57
58
  const [openAlert, setOpenAlert] = (0, react_1.useState)(false);
58
59
  // RENDER
59
60
  if (!autoHide) {
60
- return (react_1.default.createElement(react_1.default.Fragment, null,
61
- react_1.default.createElement(Root, { elevation: 0, className: (0, classnames_1.default)(classes.root, className), image: react_1.default.createElement(react_core_1.Link, Object.assign({}, (!feedObj.author.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, feedObj.author) }), { onClick: feedObj.author.deleted ? () => setOpenAlert(true) : null }),
62
- react_1.default.createElement(UserAvatar_1.default, { hide: !feedObj.author.community_badge },
63
- react_1.default.createElement(material_1.Avatar, { alt: feedObj.author.username, variant: "circular", src: feedObj.author.avatar, className: classes.avatar }))), primary: react_1.default.createElement(material_1.Box, null,
64
- react_1.default.createElement(react_core_1.Link, Object.assign({}, (!feedObj.author.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, feedObj.author) }), { className: classes.username, onClick: feedObj.author.deleted ? () => setOpenAlert(true) : null }), feedObj.author.username),
65
- react_1.default.createElement(material_1.Typography, { variant: "body2", className: classes.title }, feedObj.poll.title)), disableTypography: true, secondary: react_1.default.createElement(material_1.Stack, { direction: "row", justifyContent: "space-between", spacing: 2, alignItems: "center" },
66
- react_1.default.createElement(react_core_1.Link, { to: scRoutingContext.url((0, contribution_1.getContributionRouteName)(feedObj), (0, contribution_1.getRouteData)(feedObj)), className: classes.activityAt },
67
- react_1.default.createElement(DateTimeAgo_1.default, { component: "span", date: feedObj.added_at })),
68
- react_1.default.createElement(material_1.Button, { component: react_core_1.Link, to: scRoutingContext.url((0, contribution_1.getContributionRouteName)(feedObj), (0, contribution_1.getRouteData)(feedObj)), variant: "text", color: "secondary", size: "small" },
69
- react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.pollSuggestionWidget.pollSnippet.button.seeItem", defaultMessage: "ui.pollSuggestionWidget.pollSnippet.button.seeItem" }))) }),
70
- openAlert && react_1.default.createElement(UserDeletedSnackBar_1.default, { open: openAlert, handleClose: () => setOpenAlert(false) })));
61
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Root, { elevation: 0, className: (0, classnames_1.default)(classes.root, className), image: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({}, (!feedObj.author.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, feedObj.author) }), { onClick: feedObj.author.deleted ? () => setOpenAlert(true) : null }, { children: (0, jsx_runtime_1.jsx)(UserAvatar_1.default, Object.assign({ hide: !feedObj.author.community_badge }, { children: (0, jsx_runtime_1.jsx)(material_1.Avatar, { alt: feedObj.author.username, variant: "circular", src: feedObj.author.avatar, className: classes.avatar }) })) })), primary: (0, jsx_runtime_1.jsxs)(material_1.Box, { children: [(0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({}, (!feedObj.author.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, feedObj.author) }), { className: classes.username, onClick: feedObj.author.deleted ? () => setOpenAlert(true) : null }, { children: feedObj.author.username })), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body2", className: classes.title }, { children: feedObj.poll.title }))] }), disableTypography: true, secondary: (0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ direction: "row", justifyContent: "space-between", spacing: 2, alignItems: "center" }, { children: [(0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url((0, contribution_1.getContributionRouteName)(feedObj), (0, contribution_1.getRouteData)(feedObj)), className: classes.activityAt }, { children: (0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { component: "span", date: feedObj.added_at }) })), (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ component: react_core_1.Link, to: scRoutingContext.url((0, contribution_1.getContributionRouteName)(feedObj), (0, contribution_1.getRouteData)(feedObj)), variant: "text", color: "secondary", size: "small" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.pollSuggestionWidget.pollSnippet.button.seeItem", defaultMessage: "ui.pollSuggestionWidget.pollSnippet.button.seeItem" }) }))] })) }), openAlert && (0, jsx_runtime_1.jsx)(UserDeletedSnackBar_1.default, { open: openAlert, handleClose: () => setOpenAlert(false) })] }));
71
62
  }
72
63
  return null;
73
64
  }
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- const react_1 = tslib_1.__importDefault(require("react"));
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const material_1 = require("@mui/material");
6
6
  const styles_1 = require("@mui/material/styles");
7
7
  const Skeleton_1 = tslib_1.__importDefault(require("@mui/material/Skeleton"));
@@ -33,6 +33,6 @@ const Root = (0, styles_1.styled)(BaseItem_1.default)(({ theme }) => ({}));
33
33
  */
34
34
  function PollSnippetSkeleton(props) {
35
35
  const theme = (0, material_1.useTheme)();
36
- return (react_1.default.createElement(Root, Object.assign({ className: classes.root }, props, { image: react_1.default.createElement(Skeleton_1.default, { animation: "wave", variant: "circular", width: theme.selfcommunity.user.avatar.sizeMedium, height: theme.selfcommunity.user.avatar.sizeMedium }), primary: react_1.default.createElement(Skeleton_1.default, { animation: "wave", height: 10, width: 120, style: { marginBottom: 10 } }), secondary: react_1.default.createElement(Skeleton_1.default, { animation: "wave", height: 10, width: 70, style: { marginBottom: 10 } }) })));
36
+ return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: classes.root }, props, { image: (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: "wave", variant: "circular", width: theme.selfcommunity.user.avatar.sizeMedium, height: theme.selfcommunity.user.avatar.sizeMedium }), primary: (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: "wave", height: 10, width: 120, style: { marginBottom: 10 } }), secondary: (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: "wave", height: 10, width: 70, style: { marginBottom: 10 } }) })));
37
37
  }
38
38
  exports.default = PollSnippetSkeleton;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
4
5
  const react_1 = tslib_1.__importStar(require("react"));
5
6
  const styles_1 = require("@mui/material/styles");
6
7
  const List_1 = tslib_1.__importDefault(require("@mui/material/List"));
@@ -158,25 +159,12 @@ function PollSuggestionWidget(inProps) {
158
159
  };
159
160
  // RENDER
160
161
  if ((autoHide && !state.count && state.initialized) || !scUserContext.user) {
161
- return react_1.default.createElement(HiddenPlaceholder_1.default, null);
162
+ return (0, jsx_runtime_1.jsx)(HiddenPlaceholder_1.default, {});
162
163
  }
163
164
  if (!state.initialized) {
164
- return react_1.default.createElement(Skeleton_1.default, null);
165
+ return (0, jsx_runtime_1.jsx)(Skeleton_1.default, {});
165
166
  }
166
- const content = (react_1.default.createElement(material_1.CardContent, null,
167
- react_1.default.createElement(material_1.Typography, { className: classes.title, variant: "h5" },
168
- react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.pollSuggestionWidget.title", defaultMessage: "ui.pollSuggestionWidget.title" })),
169
- !state.count ? (react_1.default.createElement(material_1.Typography, { className: classes.noResults, variant: "body2" },
170
- react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.pollSuggestionWidget.noResults", defaultMessage: "ui.pollSuggestionWidget.noResults" }))) : (react_1.default.createElement(react_1.default.Fragment, null,
171
- react_1.default.createElement(List_1.default, null, state.results.slice(0, state.visibleItems).map((obj) => (react_1.default.createElement(material_1.ListItem, { key: obj.id },
172
- react_1.default.createElement(PollSnippet_1.default, Object.assign({ className: classes.pollSnippet, elevation: 0, feedObj: obj }, PollSnippetProps)))))),
173
- state.count > state.visibleItems && (react_1.default.createElement(material_1.Button, { className: classes.showMore, onClick: handleToggleDialogOpen },
174
- react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.pollSuggestionWidget.button.showAll", defaultMessage: "ui.pollSuggestionWidget.button.showAll" }))))),
175
- openDialog && (react_1.default.createElement(DialogRoot, Object.assign({ className: classes.dialogRoot, title: react_1.default.createElement(react_intl_1.FormattedMessage, { defaultMessage: "ui.pollSuggestionWidget.title", id: "ui.pollSuggestionWidget.title" }), onClose: handleToggleDialogOpen, open: openDialog }, DialogProps),
176
- react_1.default.createElement(InfiniteScroll_1.default, { dataLength: state.results.length, next: handleNext, hasMoreNext: Boolean(state.next), loaderNext: react_1.default.createElement(PollSnippet_1.PollSnippetSkeleton, Object.assign({ elevation: 0 }, PollSnippetProps)), height: isMobile ? '100%' : 400, endMessage: react_1.default.createElement(material_1.Typography, { className: classes.endMessage },
177
- react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.pollSuggestionWidget.noMoreResults", defaultMessage: "ui.pollSuggestionWidget.noMoreResults" })) },
178
- react_1.default.createElement(List_1.default, null, state.results.map((obj) => (react_1.default.createElement(material_1.ListItem, { key: obj.id },
179
- react_1.default.createElement(PollSnippet_1.default, Object.assign({ className: classes.pollSnippet, elevation: 0, feedObj: obj }, PollSnippetProps)))))))))));
180
- return (react_1.default.createElement(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, rest), content));
167
+ const content = ((0, jsx_runtime_1.jsxs)(material_1.CardContent, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ className: classes.title, variant: "h5" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.pollSuggestionWidget.title", defaultMessage: "ui.pollSuggestionWidget.title" }) })), !state.count ? ((0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ className: classes.noResults, variant: "body2" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.pollSuggestionWidget.noResults", defaultMessage: "ui.pollSuggestionWidget.noResults" }) }))) : ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [(0, jsx_runtime_1.jsx)(List_1.default, { children: state.results.slice(0, state.visibleItems).map((obj) => ((0, jsx_runtime_1.jsx)(material_1.ListItem, { children: (0, jsx_runtime_1.jsx)(PollSnippet_1.default, Object.assign({ className: classes.pollSnippet, elevation: 0, feedObj: obj }, PollSnippetProps)) }, obj.id))) }), state.count > state.visibleItems && ((0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ className: classes.showMore, onClick: handleToggleDialogOpen }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.pollSuggestionWidget.button.showAll", defaultMessage: "ui.pollSuggestionWidget.button.showAll" }) })))] })), openDialog && ((0, jsx_runtime_1.jsx)(DialogRoot, Object.assign({ className: classes.dialogRoot, title: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { defaultMessage: "ui.pollSuggestionWidget.title", id: "ui.pollSuggestionWidget.title" }), onClose: handleToggleDialogOpen, open: openDialog }, DialogProps, { children: (0, jsx_runtime_1.jsx)(InfiniteScroll_1.default, Object.assign({ dataLength: state.results.length, next: handleNext, hasMoreNext: Boolean(state.next), loaderNext: (0, jsx_runtime_1.jsx)(PollSnippet_1.PollSnippetSkeleton, Object.assign({ elevation: 0 }, PollSnippetProps)), height: isMobile ? '100%' : 400, endMessage: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ className: classes.endMessage }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.pollSuggestionWidget.noMoreResults", defaultMessage: "ui.pollSuggestionWidget.noMoreResults" }) })) }, { children: (0, jsx_runtime_1.jsx)(List_1.default, { children: state.results.map((obj) => ((0, jsx_runtime_1.jsx)(material_1.ListItem, { children: (0, jsx_runtime_1.jsx)(PollSnippet_1.default, Object.assign({ className: classes.pollSnippet, elevation: 0, feedObj: obj }, PollSnippetProps)) }, obj.id))) }) })) })))] }));
168
+ return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, rest, { children: content })));
181
169
  }
182
170
  exports.default = PollSuggestionWidget;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- const react_1 = tslib_1.__importDefault(require("react"));
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const styles_1 = require("@mui/material/styles");
6
6
  const Widget_1 = tslib_1.__importDefault(require("../Widget"));
7
7
  const material_1 = require("@mui/material");
@@ -38,10 +38,6 @@ const Root = (0, styles_1.styled)(Widget_1.default, {
38
38
  *
39
39
  */
40
40
  function PollSuggestionWidgetSkeleton(props) {
41
- return (react_1.default.createElement(Root, Object.assign({ className: classes.root }, props),
42
- react_1.default.createElement(material_1.CardContent, null,
43
- react_1.default.createElement(Skeleton_1.default, { animation: "wave", height: 10, width: 120 }),
44
- react_1.default.createElement(material_1.List, { className: classes.list }, [...Array(4)].map((user, index) => (react_1.default.createElement(material_1.ListItem, { key: index },
45
- react_1.default.createElement(PollSnippet_1.PollSnippetSkeleton, { elevation: 0 }))))))));
41
+ return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: classes.root }, props, { children: (0, jsx_runtime_1.jsxs)(material_1.CardContent, { children: [(0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: "wave", height: 10, width: 120 }), (0, jsx_runtime_1.jsx)(material_1.List, Object.assign({ className: classes.list }, { children: [...Array(4)].map((user, index) => ((0, jsx_runtime_1.jsx)(material_1.ListItem, { children: (0, jsx_runtime_1.jsx)(PollSnippet_1.PollSnippetSkeleton, { elevation: 0 }) }, index))) }))] }) })));
46
42
  }
47
43
  exports.default = PollSuggestionWidgetSkeleton;
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- const react_1 = tslib_1.__importStar(require("react"));
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const react_1 = require("react");
5
6
  const styles_1 = require("@mui/material/styles");
6
7
  const material_1 = require("@mui/material");
7
8
  const react_core_1 = require("@selfcommunity/react-core");
@@ -152,19 +153,17 @@ function PrivateMessageComponent(inProps) {
152
153
  * Renders snippets section
153
154
  */
154
155
  function renderSnippets() {
155
- return (react_1.default.createElement(material_1.Grid, { item: true, xs: 12, md: 5, className: (0, classnames_1.default)(classes.snippetsBox, { [classes.hide]: isMobile && mobileThreadView }) },
156
- react_1.default.createElement(PrivateMessageSnippets_1.default, { snippetActions: {
156
+ return ((0, jsx_runtime_1.jsx)(material_1.Grid, Object.assign({ item: true, xs: 12, md: 5, className: (0, classnames_1.default)(classes.snippetsBox, { [classes.hide]: isMobile && mobileThreadView }) }, { children: (0, jsx_runtime_1.jsx)(PrivateMessageSnippets_1.default, { snippetActions: {
157
157
  onSnippetClick: handleThreadOpening,
158
158
  onNewMessageClick: handleOpenNewMessage,
159
159
  onDeleteConfirm: handleDeleteThread
160
- }, threadObj: obj, clearSearch: clear, elevation: 0, type: _type })));
160
+ }, threadObj: obj, clearSearch: clear, elevation: 0, type: _type }) })));
161
161
  }
162
162
  /**
163
163
  * Renders thread section
164
164
  */
165
165
  function renderThread() {
166
- return (react_1.default.createElement(material_1.Grid, { item: true, xs: 12, md: 7, className: (0, classnames_1.default)(classes.threadBox, { [classes.hide]: isMobile && mobileSnippetsView }) },
167
- react_1.default.createElement(PrivateMessageThread_1.default, { threadObj: obj, type: _type, openNewMessage: openNewMessage, onNewMessageClose: handleMessageBack, onNewMessageSent: handleOnNewMessageSent, onSingleMessageOpen: handleSingleMessage, elevation: 0 })));
166
+ return ((0, jsx_runtime_1.jsx)(material_1.Grid, Object.assign({ item: true, xs: 12, md: 7, className: (0, classnames_1.default)(classes.threadBox, { [classes.hide]: isMobile && mobileSnippetsView }) }, { children: (0, jsx_runtime_1.jsx)(PrivateMessageThread_1.default, { threadObj: obj, type: _type, openNewMessage: openNewMessage, onNewMessageClose: handleMessageBack, onNewMessageSent: handleOnNewMessageSent, onSingleMessageOpen: handleSingleMessage, elevation: 0 }) })));
168
167
  }
169
168
  /**
170
169
  * Renders the component (if not hidden by autoHide prop)
@@ -172,8 +171,6 @@ function PrivateMessageComponent(inProps) {
172
171
  if (!authUserId || !privateMessagingEnabled) {
173
172
  return null;
174
173
  }
175
- return (react_1.default.createElement(Root, Object.assign({ container: true }, rest, { className: (0, classnames_1.default)(classes.root, className) }),
176
- renderSnippets(),
177
- renderThread()));
174
+ return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ container: true }, rest, { className: (0, classnames_1.default)(classes.root, className) }, { children: [renderSnippets(), renderThread()] })));
178
175
  }
179
176
  exports.default = PrivateMessageComponent;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- const react_1 = tslib_1.__importDefault(require("react"));
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const styles_1 = require("@mui/material/styles");
6
6
  const material_1 = require("@mui/material");
7
7
  const Skeleton_1 = tslib_1.__importDefault(require("../PrivateMessageSnippets/Skeleton"));
@@ -43,10 +43,6 @@ function PrivateMessageComponentSkeleton(props) {
43
43
  const { className } = props;
44
44
  const theme = (0, material_1.useTheme)();
45
45
  const isMobile = (0, material_1.useMediaQuery)(theme.breakpoints.down('md'));
46
- return (react_1.default.createElement(Root, { container: true, className: (0, classnames_1.default)(classes.root, className) },
47
- !isMobile && (react_1.default.createElement(material_1.Grid, { item: true, xs: 12, md: 5, className: classes.snippetsSection },
48
- react_1.default.createElement(Skeleton_1.default, null))),
49
- react_1.default.createElement(material_1.Grid, { item: true, xs: 12, md: 7, className: classes.threadSection },
50
- react_1.default.createElement(Skeleton_2.default, null))));
46
+ return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ container: true, className: (0, classnames_1.default)(classes.root, className) }, { children: [!isMobile && ((0, jsx_runtime_1.jsx)(material_1.Grid, Object.assign({ item: true, xs: 12, md: 5, className: classes.snippetsSection }, { children: (0, jsx_runtime_1.jsx)(Skeleton_1.default, {}) }))), (0, jsx_runtime_1.jsx)(material_1.Grid, Object.assign({ item: true, xs: 12, md: 7, className: classes.threadSection }, { children: (0, jsx_runtime_1.jsx)(Skeleton_2.default, {}) }))] })));
51
47
  }
52
48
  exports.default = PrivateMessageComponentSkeleton;