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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (610) hide show
  1. package/lib/cjs/components/AccountChangeMailValidation/AccountChangeMailValidation.js +3 -8
  2. package/lib/cjs/components/AccountDataPortability/AccountDataPortability.js +16 -25
  3. package/lib/cjs/components/AccountDataPortabilityButton/AccountDataPortabilityButton.js +3 -6
  4. package/lib/cjs/components/AccountDelete/AccountDelete.js +16 -23
  5. package/lib/cjs/components/AccountDeleteButton/AccountDeleteButton.js +3 -6
  6. package/lib/cjs/components/AccountRecover/AccountRecover.js +8 -12
  7. package/lib/cjs/components/AccountReset/AccountReset.js +3 -12
  8. package/lib/cjs/components/AccountVerify/AccountVerify.js +3 -8
  9. package/lib/cjs/components/BottomNavigation/BottomNavigation.js +19 -20
  10. package/lib/cjs/components/BroadcastMessages/BroadcastMessages.js +3 -10
  11. package/lib/cjs/components/BroadcastMessages/Message.js +6 -23
  12. package/lib/cjs/components/BroadcastMessages/Skeleton.js +3 -15
  13. package/lib/cjs/components/Categories/Categories.js +5 -10
  14. package/lib/cjs/components/Categories/Skeleton.js +2 -4
  15. package/lib/cjs/components/CategoriesPopularWidget/CategoriesPopularWidget.js +5 -17
  16. package/lib/cjs/components/CategoriesPopularWidget/Skeleton.js +2 -2
  17. package/lib/cjs/components/CategoriesSuggestionWidget/CategoriesSuggestionWidget.js +5 -17
  18. package/lib/cjs/components/CategoriesSuggestionWidget/Skeleton.js +2 -5
  19. package/lib/cjs/components/Category/Category.js +4 -4
  20. package/lib/cjs/components/Category/Skeleton.js +2 -3
  21. package/lib/cjs/components/CategoryAutocomplete/CategoryAutocomplete.js +6 -9
  22. package/lib/cjs/components/CategoryFollowButton/CategoryFollowButton.js +3 -2
  23. package/lib/cjs/components/CategoryFollowersButton/CategoryFollowersButton.js +3 -8
  24. package/lib/cjs/components/CategoryHeader/CategoryHeader.js +3 -12
  25. package/lib/cjs/components/CategoryHeader/Skeleton.js +2 -7
  26. package/lib/cjs/components/CategoryTrendingFeedWidget/CategoryTrendingFeedWidget.js +7 -19
  27. package/lib/cjs/components/CategoryTrendingFeedWidget/Skeleton.js +2 -4
  28. package/lib/cjs/components/CategoryTrendingUsersWidget/CategoryTrendingUsersWidget.js +5 -17
  29. package/lib/cjs/components/CategoryTrendingUsersWidget/Skeleton.js +2 -5
  30. package/lib/cjs/components/ChangeCover/ChangeCover.js +18 -41
  31. package/lib/cjs/components/ChangeGroupCover/ChangeGroupCover.js +4 -6
  32. package/lib/cjs/components/ChangeGroupPicture/ChangeGroupPicture.js +4 -6
  33. package/lib/cjs/components/ChangePicture/ChangePicture.js +3 -4
  34. package/lib/cjs/components/ChangePicture/ChangePictureDialog/ChangePictureDialog.js +10 -22
  35. package/lib/cjs/components/CommentObject/CommentObject.js +11 -37
  36. package/lib/cjs/components/CommentObject/Skeleton.js +2 -6
  37. package/lib/cjs/components/CommentObjectReply/CommentObjectReply.js +3 -12
  38. package/lib/cjs/components/CommentsFeedObject/CommentsFeedObject.js +8 -14
  39. package/lib/cjs/components/CommentsFeedObject/Skeleton.js +2 -3
  40. package/lib/cjs/components/CommentsObject/CommentsObject.js +27 -48
  41. package/lib/cjs/components/CommentsObject/Skeleton.js +2 -2
  42. package/lib/cjs/components/Composer/Attributes/Attributes.js +5 -8
  43. package/lib/cjs/components/Composer/Composer.js +24 -46
  44. package/lib/cjs/components/Composer/Content/ContentDiscussion/ContentDiscussion.js +8 -11
  45. package/lib/cjs/components/Composer/Content/ContentPoll/ContentPoll.js +9 -28
  46. package/lib/cjs/components/Composer/Content/ContentPost/ContentPost.js +3 -5
  47. package/lib/cjs/components/Composer/Layer/AudienceLayer/AudienceLayer.js +13 -31
  48. package/lib/cjs/components/Composer/Layer/CategoryLayer/CategoryLayer.js +2 -10
  49. package/lib/cjs/components/Composer/Layer/CloseLayer/CloseLayer.js +2 -16
  50. package/lib/cjs/components/Composer/Layer/LocationLayer/LocationLayer.js +2 -10
  51. package/lib/cjs/components/Composer/Skeleton.js +2 -3
  52. package/lib/cjs/components/Composer/TypeSwitchButtonGroup/TypeSwitchButtonGroup.js +3 -8
  53. package/lib/cjs/components/ComposerIconButton/ComposerIconButton.js +5 -8
  54. package/lib/cjs/components/ConnectionUserButton/ConnectionUserButton.js +2 -1
  55. package/lib/cjs/components/ConsentSolution/ConsentSolution.js +9 -58
  56. package/lib/cjs/components/ConsentSolution/Skeleton.js +3 -16
  57. package/lib/cjs/components/ConsentSolutionButton/ConsentSolutionButton.js +2 -4
  58. package/lib/cjs/components/CreateEventButton/CreateEventButton.js +2 -3
  59. package/lib/cjs/components/CreateGroupButton/CreateGroupButton.js +3 -4
  60. package/lib/cjs/components/CustomAdv/CustomAdv.js +5 -6
  61. package/lib/cjs/components/CustomAdv/Skeleton.js +2 -3
  62. package/lib/cjs/components/EditEventButton/EditEventButton.js +2 -3
  63. package/lib/cjs/components/EditGroupButton/EditGroupButton.js +2 -3
  64. package/lib/cjs/components/Editor/Editor.js +3 -21
  65. package/lib/cjs/components/Editor/Skeleton.js +2 -3
  66. package/lib/cjs/components/Editor/nodes/ImageNode.js +5 -6
  67. package/lib/cjs/components/Editor/plugins/AutoLinkPlugin.js +2 -11
  68. package/lib/cjs/components/Editor/plugins/EmojiPlugin.js +12 -15
  69. package/lib/cjs/components/Editor/plugins/FloatingLinkPlugin.js +7 -13
  70. package/lib/cjs/components/Editor/plugins/HashtagPlugin.js +11 -11
  71. package/lib/cjs/components/Editor/plugins/ImagePlugin.js +9 -10
  72. package/lib/cjs/components/Editor/plugins/LexicalRichTextPlugin.js +2 -12
  73. package/lib/cjs/components/Editor/plugins/MentionsPlugin.js +11 -16
  74. package/lib/cjs/components/Editor/plugins/OnChangePlugin.js +2 -3
  75. package/lib/cjs/components/Editor/plugins/ToolbarPlugin.js +9 -40
  76. package/lib/cjs/components/Editor/shared/useDecorators.js +2 -4
  77. package/lib/cjs/components/Event/Event.js +3 -10
  78. package/lib/cjs/components/Event/Skeleton.js +2 -8
  79. package/lib/cjs/components/EventForm/EventAddress.js +6 -14
  80. package/lib/cjs/components/EventForm/EventForm.js +46 -86
  81. package/lib/cjs/components/EventForm/UploadEventCover.js +4 -6
  82. package/lib/cjs/components/EventHeader/EventHeader.js +36 -52
  83. package/lib/cjs/components/EventHeader/Skeleton.js +2 -12
  84. package/lib/cjs/components/EventInfoWidget/EventInfoWidget.js +11 -13
  85. package/lib/cjs/components/EventInfoWidget/Skeleton.d.ts +1 -0
  86. package/lib/cjs/components/EventInfoWidget/Skeleton.js +20 -0
  87. package/lib/cjs/components/EventInfoWidget/index.d.ts +2 -1
  88. package/lib/cjs/components/EventInfoWidget/index.js +3 -1
  89. package/lib/cjs/components/EventInviteButton/EventInviteButton.js +4 -24
  90. package/lib/cjs/components/EventLocationWidget/EventLocationWidget.js +8 -16
  91. package/lib/cjs/components/EventLocationWidget/Skeleton.js +2 -8
  92. package/lib/cjs/components/EventSubscribeButton/EventSubscribeButton.js +12 -15
  93. package/lib/cjs/components/Events/Events.js +25 -52
  94. package/lib/cjs/components/Events/Skeleton.js +2 -4
  95. package/lib/cjs/components/Feed/Feed.js +11 -29
  96. package/lib/cjs/components/Feed/Skeleton.js +3 -12
  97. package/lib/cjs/components/FeedObject/Actions/Actions.js +2 -8
  98. package/lib/cjs/components/FeedObject/Actions/Comment/Comment.js +5 -11
  99. package/lib/cjs/components/FeedObject/Actions/Follow/Follow.js +6 -6
  100. package/lib/cjs/components/FeedObject/Actions/Share/Share.js +29 -60
  101. package/lib/cjs/components/FeedObject/Actions/Share/SharesDialog/SharesDialog.js +3 -5
  102. package/lib/cjs/components/FeedObject/Actions/Vote/Vote.js +2 -5
  103. package/lib/cjs/components/FeedObject/Activities/Activities.js +9 -10
  104. package/lib/cjs/components/FeedObject/Activities/ActivitiesMenu/ActivitiesMenu.js +23 -37
  105. package/lib/cjs/components/FeedObject/Activities/RelevantActivities/CommentActivity/CommentActivity.js +18 -20
  106. package/lib/cjs/components/FeedObject/Activities/RelevantActivities/FollowActivity/FollowActivity.js +5 -7
  107. package/lib/cjs/components/FeedObject/Activities/RelevantActivities/PollVoteActivity/PollVoteActivity.js +5 -7
  108. package/lib/cjs/components/FeedObject/Activities/RelevantActivities/RelevantActivities.js +7 -12
  109. package/lib/cjs/components/FeedObject/Activities/RelevantActivities/VoteUpActivity/VoteUpActivity.js +5 -7
  110. package/lib/cjs/components/FeedObject/Contributors/Contributors.js +3 -13
  111. package/lib/cjs/components/FeedObject/Contributors/Skeleton.js +2 -6
  112. package/lib/cjs/components/FeedObject/FeedObject.js +23 -110
  113. package/lib/cjs/components/FeedObject/Poll/Choice/Choice.js +3 -8
  114. package/lib/cjs/components/FeedObject/Poll/Poll.js +5 -21
  115. package/lib/cjs/components/FeedObject/Skeleton.js +4 -16
  116. package/lib/cjs/components/FeedObjectMediaPreview/FeedObjectMediaPreview.js +5 -6
  117. package/lib/cjs/components/FeedUpdatesWidget/FeedUpdatesWidget.js +5 -8
  118. package/lib/cjs/components/FeedUpdatesWidget/Skeleton.js +2 -2
  119. package/lib/cjs/components/FollowUserButton/FollowUserButton.js +5 -4
  120. package/lib/cjs/components/Footer/Footer.js +4 -7
  121. package/lib/cjs/components/Footer/Skeleton.js +2 -4
  122. package/lib/cjs/components/FriendshipUserButton/FriendshipUserButton.js +9 -8
  123. package/lib/cjs/components/Group/Group.js +7 -13
  124. package/lib/cjs/components/Group/Skeleton.js +2 -3
  125. package/lib/cjs/components/GroupAutocomplete/GroupAutocomplete.js +5 -8
  126. package/lib/cjs/components/GroupForm/GroupForm.js +36 -75
  127. package/lib/cjs/components/GroupHeader/GroupHeader.js +6 -34
  128. package/lib/cjs/components/GroupHeader/Skeleton.js +2 -12
  129. package/lib/cjs/components/GroupInfoWidget/GroupInfoWidget.js +24 -54
  130. package/lib/cjs/components/GroupInfoWidget/Skeleton.js +2 -3
  131. package/lib/cjs/components/GroupInviteButton/GroupInviteButton.js +4 -24
  132. package/lib/cjs/components/GroupInvitedWidget/GroupInvitedWidget.js +5 -18
  133. package/lib/cjs/components/GroupInvitedWidget/Skeleton.js +2 -3
  134. package/lib/cjs/components/GroupMembersButton/GroupMembersButton.js +3 -8
  135. package/lib/cjs/components/GroupMembersWidget/GroupMembersWidget.js +11 -28
  136. package/lib/cjs/components/GroupMembersWidget/Skeleton.js +2 -3
  137. package/lib/cjs/components/GroupRequestsWidget/GroupRequestsWidget.js +5 -16
  138. package/lib/cjs/components/GroupRequestsWidget/Skeleton.js +2 -3
  139. package/lib/cjs/components/GroupSettingsIconButton/GroupSettingsIconButton.js +13 -21
  140. package/lib/cjs/components/GroupSubscribeButton/GroupSubscribeButton.js +8 -7
  141. package/lib/cjs/components/Groups/Groups.js +10 -23
  142. package/lib/cjs/components/Groups/Skeleton.js +2 -4
  143. package/lib/cjs/components/Incubator/Incubator.js +8 -28
  144. package/lib/cjs/components/Incubator/Skeleton.js +2 -20
  145. package/lib/cjs/components/IncubatorDetail/IncubatorDetail.js +4 -46
  146. package/lib/cjs/components/IncubatorListWidget/CreateIncubatorDialog/CreateIncubatorDialog.js +5 -12
  147. package/lib/cjs/components/IncubatorListWidget/IncubatorListWidget.js +8 -32
  148. package/lib/cjs/components/IncubatorListWidget/Skeleton.js +2 -4
  149. package/lib/cjs/components/IncubatorSubscribeButton/IncubatorSubscribeButton.js +3 -2
  150. package/lib/cjs/components/IncubatorSuggestionWidget/IncubatorSuggestionWidget.js +5 -18
  151. package/lib/cjs/components/IncubatorSuggestionWidget/Skeleton.js +2 -4
  152. package/lib/cjs/components/InlineComposerWidget/InlineComposerWidget.js +5 -11
  153. package/lib/cjs/components/InlineComposerWidget/Skeleton.js +2 -7
  154. package/lib/cjs/components/LocationAutocomplete/LocationAutocomplete.js +6 -7
  155. package/lib/cjs/components/LoyaltyProgramWidget/LoyaltyProgramWidget.js +5 -13
  156. package/lib/cjs/components/LoyaltyProgramWidget/Skeleton.js +2 -11
  157. package/lib/cjs/components/NavigationMenuIconButton/DefaultDrawerContent.js +3 -11
  158. package/lib/cjs/components/NavigationMenuIconButton/DefaultHeaderContent.js +3 -4
  159. package/lib/cjs/components/NavigationMenuIconButton/NavigationMenuIconButton.js +4 -13
  160. package/lib/cjs/components/NavigationSettingsIconButton/NavigationSettingsIconButton.js +35 -75
  161. package/lib/cjs/components/NavigationToolbar/NavigationToolbar.js +14 -51
  162. package/lib/cjs/components/NavigationToolbar/NotificationMenu.js +2 -5
  163. package/lib/cjs/components/NavigationToolbar/Skeleton.js +2 -5
  164. package/lib/cjs/components/NavigationToolbarMobile/NavigationToolbarMobile.js +11 -27
  165. package/lib/cjs/components/NavigationToolbarMobile/Skeleton.js +2 -3
  166. package/lib/cjs/components/Notification/CollapsedFor/CollapsedFor.js +2 -15
  167. package/lib/cjs/components/Notification/Comment/Comment.js +11 -27
  168. package/lib/cjs/components/Notification/Contribution/Contribution.js +11 -28
  169. package/lib/cjs/components/Notification/ContributionFollow/ContributionFollow.js +4 -19
  170. package/lib/cjs/components/Notification/DeletedFor/DeletedFor.js +2 -17
  171. package/lib/cjs/components/Notification/Group/Group.js +17 -30
  172. package/lib/cjs/components/Notification/IncubatorApproved/IncubatorApproved.js +8 -16
  173. package/lib/cjs/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.js +2 -9
  174. package/lib/cjs/components/Notification/KindlyNoticeFor/KindlyNoticeFor.js +4 -16
  175. package/lib/cjs/components/Notification/Mention/Mention.js +7 -22
  176. package/lib/cjs/components/Notification/Notification.js +37 -57
  177. package/lib/cjs/components/Notification/PrivateMessage/PrivateMessage.js +24 -47
  178. package/lib/cjs/components/Notification/Skeleton.js +3 -7
  179. package/lib/cjs/components/Notification/UndeletedFor/UndeletedFor.js +2 -16
  180. package/lib/cjs/components/Notification/UserBlocked/UserBlocked.js +5 -7
  181. package/lib/cjs/components/Notification/UserConnection/UserConnection.js +5 -15
  182. package/lib/cjs/components/Notification/UserFollow/UserFollow.js +5 -15
  183. package/lib/cjs/components/Notification/VoteUp/VoteUp.js +6 -19
  184. package/lib/cjs/components/PlatformWidget/PlatformWidget.js +20 -53
  185. package/lib/cjs/components/PlatformWidget/Skeleton.js +2 -3
  186. package/lib/cjs/components/PollSuggestionWidget/PollSnippet/PollSnippet.js +3 -12
  187. package/lib/cjs/components/PollSuggestionWidget/PollSnippet/Skeleton.js +2 -2
  188. package/lib/cjs/components/PollSuggestionWidget/PollSuggestionWidget.js +5 -17
  189. package/lib/cjs/components/PollSuggestionWidget/Skeleton.js +2 -6
  190. package/lib/cjs/components/PrivateMessageComponent/PrivateMessageComponent.js +6 -9
  191. package/lib/cjs/components/PrivateMessageComponent/Skeleton.js +2 -6
  192. package/lib/cjs/components/PrivateMessageEditor/MessageMediaUploader/index.js +16 -37
  193. package/lib/cjs/components/PrivateMessageEditor/PrivateMessageEditor.js +9 -18
  194. package/lib/cjs/components/PrivateMessageEditor/Skeleton.js +2 -3
  195. package/lib/cjs/components/PrivateMessageSettingsIconButton/PrivateMessageSettingsIconButton.js +9 -31
  196. package/lib/cjs/components/PrivateMessageSnippetItem/PrivateMessageSnippetItem.js +12 -19
  197. package/lib/cjs/components/PrivateMessageSnippetItem/Skeleton.js +2 -5
  198. package/lib/cjs/components/PrivateMessageSnippets/PrivateMessageSnippets.js +8 -16
  199. package/lib/cjs/components/PrivateMessageSnippets/Skeleton.js +2 -8
  200. package/lib/cjs/components/PrivateMessageThread/PrivateMessageThread.js +14 -35
  201. package/lib/cjs/components/PrivateMessageThread/Skeleton.js +2 -9
  202. package/lib/cjs/components/PrivateMessageThreadItem/PrivateMessageThreadItem.js +15 -33
  203. package/lib/cjs/components/PrivateMessageThreadItem/Skeleton.js +2 -3
  204. package/lib/cjs/components/RelatedFeedObjectsWidget/RelatedFeedObjectsWidget.js +6 -21
  205. package/lib/cjs/components/RelatedFeedObjectsWidget/Skeleton.js +2 -3
  206. package/lib/cjs/components/SearchAutocomplete/SearchAutocomplete.js +5 -8
  207. package/lib/cjs/components/SearchDialog/SearchDialog.js +2 -4
  208. package/lib/cjs/components/Skeleton/AvatarGroupSkeleton.js +2 -3
  209. package/lib/cjs/components/Skeleton/GenericSkeleton.js +2 -6
  210. package/lib/cjs/components/SnippetNotifications/Skeleton.js +3 -3
  211. package/lib/cjs/components/SnippetNotifications/SnippetNotifications.js +23 -28
  212. package/lib/cjs/components/ToastNotifications/Skeleton.js +2 -3
  213. package/lib/cjs/components/ToastNotifications/ToastNotifications.js +16 -15
  214. package/lib/cjs/components/User/Skeleton.js +2 -3
  215. package/lib/cjs/components/User/User.js +6 -14
  216. package/lib/cjs/components/UserActionIconButton/UserActionIconButton.js +16 -31
  217. package/lib/cjs/components/UserConnectionsRequestsSentWidget/Skeleton.js +2 -3
  218. package/lib/cjs/components/UserConnectionsRequestsSentWidget/UserConnectionsRequestsSentWidget.js +5 -17
  219. package/lib/cjs/components/UserConnectionsRequestsWidget/Skeleton.js +2 -3
  220. package/lib/cjs/components/UserConnectionsRequestsWidget/UserConnectionsRequestsWidget.js +5 -17
  221. package/lib/cjs/components/UserConnectionsWidget/Skeleton.js +2 -3
  222. package/lib/cjs/components/UserConnectionsWidget/UserConnectionsWidget.js +5 -17
  223. package/lib/cjs/components/UserCounters/UserCounters.js +19 -28
  224. package/lib/cjs/components/UserFollowedCategoriesWidget/Skeleton.js +2 -2
  225. package/lib/cjs/components/UserFollowedCategoriesWidget/UserFollowedCategoriesWidget.js +5 -20
  226. package/lib/cjs/components/UserFollowedUsersWidget/Skeleton.js +2 -3
  227. package/lib/cjs/components/UserFollowedUsersWidget/UserFollowedUsersWidget.js +5 -17
  228. package/lib/cjs/components/UserFollowersWidget/Skeleton.js +2 -3
  229. package/lib/cjs/components/UserFollowersWidget/UserFollowersWidget.js +5 -17
  230. package/lib/cjs/components/UserInfo/Skeleton.js +2 -6
  231. package/lib/cjs/components/UserInfo/UserInfo.js +13 -14
  232. package/lib/cjs/components/UserInfoDialog/UserInfoDialog.js +3 -5
  233. package/lib/cjs/components/UserProfileBlocked/UserProfileBlocked.js +4 -11
  234. package/lib/cjs/components/UserProfileEdit/Section/Account.js +3 -13
  235. package/lib/cjs/components/UserProfileEdit/Section/AccountCredentials.js +15 -37
  236. package/lib/cjs/components/UserProfileEdit/Section/PublicInfo.js +15 -25
  237. package/lib/cjs/components/UserProfileEdit/Section/Settings.js +7 -37
  238. package/lib/cjs/components/UserProfileEdit/Section/SettingsSkeleton.js +2 -5
  239. package/lib/cjs/components/UserProfileEdit/Skeleton.js +2 -6
  240. package/lib/cjs/components/UserProfileEdit/UserProfileEdit.js +2 -9
  241. package/lib/cjs/components/UserProfileHeader/Skeleton.js +2 -13
  242. package/lib/cjs/components/UserProfileHeader/UserProfileHeader.js +4 -21
  243. package/lib/cjs/components/UserSocialAssociation/UserSocialAssociation.js +2 -16
  244. package/lib/cjs/components/UserSubscribedGroupsWidget/Skeleton.js +2 -6
  245. package/lib/cjs/components/UserSubscribedGroupsWidget/UserSubscribedGroupsWidget.js +7 -22
  246. package/lib/cjs/components/UserSuggestionWidget/Skeleton.js +2 -5
  247. package/lib/cjs/components/UserSuggestionWidget/UserSuggestionWidget.js +5 -17
  248. package/lib/cjs/components/VoteAudienceButton/VoteAudienceButton.js +9 -23
  249. package/lib/cjs/components/VoteButton/VoteButton.js +9 -15
  250. package/lib/cjs/components/Widget/index.js +3 -2
  251. package/lib/cjs/shared/AutoPlayer/index.js +6 -7
  252. package/lib/cjs/shared/BaseDialog/BaseDialog.js +3 -10
  253. package/lib/cjs/shared/BaseItem/BaseItem.js +4 -10
  254. package/lib/cjs/shared/BaseItemButton/BaseItemButton.js +4 -10
  255. package/lib/cjs/shared/Bullet/index.js +2 -1
  256. package/lib/cjs/shared/Calendar/index.js +2 -3
  257. package/lib/cjs/shared/CentralProgress/index.js +3 -4
  258. package/lib/cjs/shared/ConfirmDialog/ConfirmDialog.js +2 -9
  259. package/lib/cjs/shared/ConsentSolutionSwitch/index.js +5 -8
  260. package/lib/cjs/shared/ContributionActionsMenu/index.js +22 -85
  261. package/lib/cjs/shared/CustomSnackMessage/index.js +3 -7
  262. package/lib/cjs/shared/DateTimeAgo/index.js +2 -6
  263. package/lib/cjs/shared/EmailTextField/index.js +3 -2
  264. package/lib/cjs/shared/EmojiPicker/EmojiPicker.js +2 -2
  265. package/lib/cjs/shared/EventInfoDetails/index.js +5 -22
  266. package/lib/cjs/shared/HiddenPlaceholder/index.js +2 -3
  267. package/lib/cjs/shared/InfiniteScroll/index.js +8 -19
  268. package/lib/cjs/shared/InfiniteScroll/stories/InfiniteScrollWithHeight.js +3 -8
  269. package/lib/cjs/shared/InfiniteScroll/stories/PullDownToRefreshInfScroll.js +3 -7
  270. package/lib/cjs/shared/InfiniteScroll/stories/ScrollableTargetFixedInfScroll.js +13 -18
  271. package/lib/cjs/shared/InfiniteScroll/stories/ScrollableTargetInfScroll.js +3 -8
  272. package/lib/cjs/shared/InfiniteScroll/stories/ScrolleableTop.js +6 -11
  273. package/lib/cjs/shared/InfiniteScroll/stories/WindowInfiniteScrollComponent.js +3 -6
  274. package/lib/cjs/shared/LanguageSwitcher/index.js +3 -5
  275. package/lib/cjs/shared/Lightbox/Lightbox.js +4 -3
  276. package/lib/cjs/shared/MarkRead/MarkRead.js +3 -3
  277. package/lib/cjs/shared/Media/File/DisplayComponent.js +13 -42
  278. package/lib/cjs/shared/Media/File/Lightbox/index.js +5 -5
  279. package/lib/cjs/shared/Media/File/PreviewComponent.js +5 -9
  280. package/lib/cjs/shared/Media/File/TriggerButton.js +14 -25
  281. package/lib/cjs/shared/Media/File/asUploadButton.js +3 -2
  282. package/lib/cjs/shared/Media/Link/DisplayComponent.js +8 -15
  283. package/lib/cjs/shared/Media/Link/LayerComponent.js +2 -11
  284. package/lib/cjs/shared/Media/Link/PreviewComponent.js +2 -4
  285. package/lib/cjs/shared/Media/Link/TriggerButton.js +2 -3
  286. package/lib/cjs/shared/Media/Link/UrlTextField/index.js +5 -7
  287. package/lib/cjs/shared/Media/Share/DisplayComponent.js +3 -3
  288. package/lib/cjs/shared/MetadataField/MetadataField.js +8 -7
  289. package/lib/cjs/shared/NewChip/NewChip.js +2 -2
  290. package/lib/cjs/shared/NotificationItem/NotificationItem.js +3 -12
  291. package/lib/cjs/shared/PasswordTextField/index.js +4 -6
  292. package/lib/cjs/shared/PhoneTextField/index.js +3 -2
  293. package/lib/cjs/shared/ScrollContainer/index.js +2 -2
  294. package/lib/cjs/shared/StickyBox/index.js +6 -5
  295. package/lib/cjs/shared/TagChip/index.js +2 -2
  296. package/lib/cjs/shared/Tags/index.js +11 -23
  297. package/lib/cjs/shared/UrlTextField/index.js +3 -2
  298. package/lib/cjs/shared/UserAvatar/UserAvatar.js +3 -2
  299. package/lib/cjs/shared/UserDeletedSnackBar/UserDeletedSnackBar.js +3 -5
  300. package/lib/cjs/shared/UsernameTextField/index.js +3 -2
  301. package/lib/cjs/shared/VirtualizedScroller/VirtualScrollerChild.js +2 -2
  302. package/lib/cjs/shared/VirtualizedScroller/VirtualizedScroller.js +3 -2
  303. package/lib/cjs/utils/contribution.js +3 -4
  304. package/lib/cjs/utils/errors.js +3 -4
  305. package/lib/esm/components/AccountChangeMailValidation/AccountChangeMailValidation.js +3 -8
  306. package/lib/esm/components/AccountDataPortability/AccountDataPortability.js +16 -25
  307. package/lib/esm/components/AccountDataPortabilityButton/AccountDataPortabilityButton.js +3 -6
  308. package/lib/esm/components/AccountDelete/AccountDelete.js +16 -23
  309. package/lib/esm/components/AccountDeleteButton/AccountDeleteButton.js +3 -6
  310. package/lib/esm/components/AccountRecover/AccountRecover.js +8 -12
  311. package/lib/esm/components/AccountReset/AccountReset.js +3 -12
  312. package/lib/esm/components/AccountVerify/AccountVerify.js +3 -8
  313. package/lib/esm/components/BottomNavigation/BottomNavigation.js +19 -20
  314. package/lib/esm/components/BroadcastMessages/BroadcastMessages.js +3 -10
  315. package/lib/esm/components/BroadcastMessages/Message.js +6 -23
  316. package/lib/esm/components/BroadcastMessages/Skeleton.js +3 -15
  317. package/lib/esm/components/Categories/Categories.js +5 -10
  318. package/lib/esm/components/Categories/Skeleton.js +2 -4
  319. package/lib/esm/components/CategoriesPopularWidget/CategoriesPopularWidget.js +5 -17
  320. package/lib/esm/components/CategoriesPopularWidget/Skeleton.js +2 -2
  321. package/lib/esm/components/CategoriesSuggestionWidget/CategoriesSuggestionWidget.js +5 -17
  322. package/lib/esm/components/CategoriesSuggestionWidget/Skeleton.js +2 -5
  323. package/lib/esm/components/Category/Category.js +4 -4
  324. package/lib/esm/components/Category/Skeleton.js +2 -3
  325. package/lib/esm/components/CategoryAutocomplete/CategoryAutocomplete.js +6 -9
  326. package/lib/esm/components/CategoryFollowButton/CategoryFollowButton.js +3 -2
  327. package/lib/esm/components/CategoryFollowersButton/CategoryFollowersButton.js +3 -8
  328. package/lib/esm/components/CategoryHeader/CategoryHeader.js +3 -12
  329. package/lib/esm/components/CategoryHeader/Skeleton.js +2 -7
  330. package/lib/esm/components/CategoryTrendingFeedWidget/CategoryTrendingFeedWidget.js +7 -19
  331. package/lib/esm/components/CategoryTrendingFeedWidget/Skeleton.js +2 -4
  332. package/lib/esm/components/CategoryTrendingUsersWidget/CategoryTrendingUsersWidget.js +5 -17
  333. package/lib/esm/components/CategoryTrendingUsersWidget/Skeleton.js +2 -5
  334. package/lib/esm/components/ChangeCover/ChangeCover.js +18 -41
  335. package/lib/esm/components/ChangeGroupCover/ChangeGroupCover.js +4 -6
  336. package/lib/esm/components/ChangeGroupPicture/ChangeGroupPicture.js +4 -6
  337. package/lib/esm/components/ChangePicture/ChangePicture.js +3 -4
  338. package/lib/esm/components/ChangePicture/ChangePictureDialog/ChangePictureDialog.js +10 -22
  339. package/lib/esm/components/CommentObject/CommentObject.js +11 -37
  340. package/lib/esm/components/CommentObject/Skeleton.js +2 -6
  341. package/lib/esm/components/CommentObjectReply/CommentObjectReply.js +3 -12
  342. package/lib/esm/components/CommentsFeedObject/CommentsFeedObject.js +8 -14
  343. package/lib/esm/components/CommentsFeedObject/Skeleton.js +2 -2
  344. package/lib/esm/components/CommentsObject/CommentsObject.js +27 -48
  345. package/lib/esm/components/CommentsObject/Skeleton.js +2 -2
  346. package/lib/esm/components/Composer/Attributes/Attributes.js +5 -8
  347. package/lib/esm/components/Composer/Composer.js +24 -46
  348. package/lib/esm/components/Composer/Content/ContentDiscussion/ContentDiscussion.js +8 -11
  349. package/lib/esm/components/Composer/Content/ContentPoll/ContentPoll.js +9 -28
  350. package/lib/esm/components/Composer/Content/ContentPost/ContentPost.js +3 -5
  351. package/lib/esm/components/Composer/Layer/AudienceLayer/AudienceLayer.js +13 -31
  352. package/lib/esm/components/Composer/Layer/CategoryLayer/CategoryLayer.js +2 -10
  353. package/lib/esm/components/Composer/Layer/CloseLayer/CloseLayer.js +2 -16
  354. package/lib/esm/components/Composer/Layer/LocationLayer/LocationLayer.js +2 -10
  355. package/lib/esm/components/Composer/Skeleton.js +2 -3
  356. package/lib/esm/components/Composer/TypeSwitchButtonGroup/TypeSwitchButtonGroup.js +3 -8
  357. package/lib/esm/components/ComposerIconButton/ComposerIconButton.js +5 -8
  358. package/lib/esm/components/ConnectionUserButton/ConnectionUserButton.js +2 -1
  359. package/lib/esm/components/ConsentSolution/ConsentSolution.js +9 -58
  360. package/lib/esm/components/ConsentSolution/Skeleton.js +3 -16
  361. package/lib/esm/components/ConsentSolutionButton/ConsentSolutionButton.js +2 -4
  362. package/lib/esm/components/CreateEventButton/CreateEventButton.js +2 -3
  363. package/lib/esm/components/CreateGroupButton/CreateGroupButton.js +3 -4
  364. package/lib/esm/components/CustomAdv/CustomAdv.js +5 -6
  365. package/lib/esm/components/CustomAdv/Skeleton.js +2 -2
  366. package/lib/esm/components/EditEventButton/EditEventButton.js +2 -3
  367. package/lib/esm/components/EditGroupButton/EditGroupButton.js +2 -3
  368. package/lib/esm/components/Editor/Editor.js +3 -21
  369. package/lib/esm/components/Editor/Skeleton.js +2 -2
  370. package/lib/esm/components/Editor/nodes/ImageNode.js +5 -5
  371. package/lib/esm/components/Editor/plugins/AutoLinkPlugin.js +2 -10
  372. package/lib/esm/components/Editor/plugins/EmojiPlugin.js +12 -15
  373. package/lib/esm/components/Editor/plugins/FloatingLinkPlugin.js +7 -13
  374. package/lib/esm/components/Editor/plugins/HashtagPlugin.js +11 -11
  375. package/lib/esm/components/Editor/plugins/ImagePlugin.js +9 -10
  376. package/lib/esm/components/Editor/plugins/LexicalRichTextPlugin.js +2 -12
  377. package/lib/esm/components/Editor/plugins/MentionsPlugin.js +11 -16
  378. package/lib/esm/components/Editor/plugins/OnChangePlugin.js +2 -2
  379. package/lib/esm/components/Editor/plugins/ToolbarPlugin.js +9 -40
  380. package/lib/esm/components/Editor/shared/useDecorators.js +2 -3
  381. package/lib/esm/components/Event/Event.js +3 -10
  382. package/lib/esm/components/Event/Skeleton.js +2 -8
  383. package/lib/esm/components/EventForm/EventAddress.js +6 -14
  384. package/lib/esm/components/EventForm/EventForm.js +46 -86
  385. package/lib/esm/components/EventForm/UploadEventCover.js +4 -6
  386. package/lib/esm/components/EventHeader/EventHeader.js +36 -52
  387. package/lib/esm/components/EventHeader/Skeleton.js +2 -12
  388. package/lib/esm/components/EventInfoWidget/EventInfoWidget.js +11 -13
  389. package/lib/esm/components/EventInfoWidget/Skeleton.d.ts +1 -0
  390. package/lib/esm/components/EventInfoWidget/Skeleton.js +16 -0
  391. package/lib/esm/components/EventInfoWidget/index.d.ts +2 -1
  392. package/lib/esm/components/EventInfoWidget/index.js +2 -1
  393. package/lib/esm/components/EventInviteButton/EventInviteButton.js +4 -24
  394. package/lib/esm/components/EventLocationWidget/EventLocationWidget.js +8 -16
  395. package/lib/esm/components/EventLocationWidget/Skeleton.js +2 -8
  396. package/lib/esm/components/EventSubscribeButton/EventSubscribeButton.js +12 -15
  397. package/lib/esm/components/Events/Events.js +25 -52
  398. package/lib/esm/components/Events/Skeleton.js +2 -4
  399. package/lib/esm/components/Feed/Feed.js +11 -29
  400. package/lib/esm/components/Feed/Skeleton.js +3 -12
  401. package/lib/esm/components/FeedObject/Actions/Actions.js +2 -8
  402. package/lib/esm/components/FeedObject/Actions/Comment/Comment.js +5 -11
  403. package/lib/esm/components/FeedObject/Actions/Follow/Follow.js +6 -6
  404. package/lib/esm/components/FeedObject/Actions/Share/Share.js +29 -60
  405. package/lib/esm/components/FeedObject/Actions/Share/SharesDialog/SharesDialog.js +3 -5
  406. package/lib/esm/components/FeedObject/Actions/Vote/Vote.js +2 -5
  407. package/lib/esm/components/FeedObject/Activities/Activities.js +9 -10
  408. package/lib/esm/components/FeedObject/Activities/ActivitiesMenu/ActivitiesMenu.js +23 -37
  409. package/lib/esm/components/FeedObject/Activities/RelevantActivities/CommentActivity/CommentActivity.js +18 -20
  410. package/lib/esm/components/FeedObject/Activities/RelevantActivities/FollowActivity/FollowActivity.js +5 -7
  411. package/lib/esm/components/FeedObject/Activities/RelevantActivities/PollVoteActivity/PollVoteActivity.js +5 -7
  412. package/lib/esm/components/FeedObject/Activities/RelevantActivities/RelevantActivities.js +7 -12
  413. package/lib/esm/components/FeedObject/Activities/RelevantActivities/VoteUpActivity/VoteUpActivity.js +5 -7
  414. package/lib/esm/components/FeedObject/Contributors/Contributors.js +3 -13
  415. package/lib/esm/components/FeedObject/Contributors/Skeleton.js +2 -6
  416. package/lib/esm/components/FeedObject/FeedObject.js +23 -110
  417. package/lib/esm/components/FeedObject/Poll/Choice/Choice.js +3 -8
  418. package/lib/esm/components/FeedObject/Poll/Poll.js +5 -21
  419. package/lib/esm/components/FeedObject/Skeleton.js +4 -16
  420. package/lib/esm/components/FeedObjectMediaPreview/FeedObjectMediaPreview.js +5 -6
  421. package/lib/esm/components/FeedUpdatesWidget/FeedUpdatesWidget.js +5 -8
  422. package/lib/esm/components/FeedUpdatesWidget/Skeleton.js +2 -2
  423. package/lib/esm/components/FollowUserButton/FollowUserButton.js +5 -4
  424. package/lib/esm/components/Footer/Footer.js +4 -7
  425. package/lib/esm/components/Footer/Skeleton.js +2 -4
  426. package/lib/esm/components/FriendshipUserButton/FriendshipUserButton.js +9 -8
  427. package/lib/esm/components/Group/Group.js +7 -13
  428. package/lib/esm/components/Group/Skeleton.js +2 -3
  429. package/lib/esm/components/GroupAutocomplete/GroupAutocomplete.js +5 -8
  430. package/lib/esm/components/GroupForm/GroupForm.js +36 -75
  431. package/lib/esm/components/GroupHeader/GroupHeader.js +6 -34
  432. package/lib/esm/components/GroupHeader/Skeleton.js +2 -12
  433. package/lib/esm/components/GroupInfoWidget/GroupInfoWidget.js +24 -54
  434. package/lib/esm/components/GroupInfoWidget/Skeleton.js +2 -2
  435. package/lib/esm/components/GroupInviteButton/GroupInviteButton.js +4 -24
  436. package/lib/esm/components/GroupInvitedWidget/GroupInvitedWidget.js +5 -18
  437. package/lib/esm/components/GroupInvitedWidget/Skeleton.js +2 -2
  438. package/lib/esm/components/GroupMembersButton/GroupMembersButton.js +3 -8
  439. package/lib/esm/components/GroupMembersWidget/GroupMembersWidget.js +11 -28
  440. package/lib/esm/components/GroupMembersWidget/Skeleton.js +2 -2
  441. package/lib/esm/components/GroupRequestsWidget/GroupRequestsWidget.js +5 -16
  442. package/lib/esm/components/GroupRequestsWidget/Skeleton.js +2 -2
  443. package/lib/esm/components/GroupSettingsIconButton/GroupSettingsIconButton.js +13 -21
  444. package/lib/esm/components/GroupSubscribeButton/GroupSubscribeButton.js +8 -7
  445. package/lib/esm/components/Groups/Groups.js +10 -23
  446. package/lib/esm/components/Groups/Skeleton.js +2 -4
  447. package/lib/esm/components/Incubator/Incubator.js +8 -28
  448. package/lib/esm/components/Incubator/Skeleton.js +2 -20
  449. package/lib/esm/components/IncubatorDetail/IncubatorDetail.js +4 -46
  450. package/lib/esm/components/IncubatorListWidget/CreateIncubatorDialog/CreateIncubatorDialog.js +5 -12
  451. package/lib/esm/components/IncubatorListWidget/IncubatorListWidget.js +8 -32
  452. package/lib/esm/components/IncubatorListWidget/Skeleton.js +2 -4
  453. package/lib/esm/components/IncubatorSubscribeButton/IncubatorSubscribeButton.js +3 -2
  454. package/lib/esm/components/IncubatorSuggestionWidget/IncubatorSuggestionWidget.js +5 -18
  455. package/lib/esm/components/IncubatorSuggestionWidget/Skeleton.js +2 -4
  456. package/lib/esm/components/InlineComposerWidget/InlineComposerWidget.js +5 -11
  457. package/lib/esm/components/InlineComposerWidget/Skeleton.js +2 -7
  458. package/lib/esm/components/LocationAutocomplete/LocationAutocomplete.js +6 -7
  459. package/lib/esm/components/LoyaltyProgramWidget/LoyaltyProgramWidget.js +5 -13
  460. package/lib/esm/components/LoyaltyProgramWidget/Skeleton.js +2 -11
  461. package/lib/esm/components/NavigationMenuIconButton/DefaultDrawerContent.js +3 -11
  462. package/lib/esm/components/NavigationMenuIconButton/DefaultHeaderContent.js +3 -4
  463. package/lib/esm/components/NavigationMenuIconButton/NavigationMenuIconButton.js +4 -13
  464. package/lib/esm/components/NavigationSettingsIconButton/NavigationSettingsIconButton.js +35 -75
  465. package/lib/esm/components/NavigationToolbar/NavigationToolbar.js +14 -51
  466. package/lib/esm/components/NavigationToolbar/NotificationMenu.js +2 -5
  467. package/lib/esm/components/NavigationToolbar/Skeleton.js +2 -5
  468. package/lib/esm/components/NavigationToolbarMobile/NavigationToolbarMobile.js +11 -27
  469. package/lib/esm/components/NavigationToolbarMobile/Skeleton.js +2 -3
  470. package/lib/esm/components/Notification/CollapsedFor/CollapsedFor.js +2 -15
  471. package/lib/esm/components/Notification/Comment/Comment.js +11 -27
  472. package/lib/esm/components/Notification/Contribution/Contribution.js +11 -28
  473. package/lib/esm/components/Notification/ContributionFollow/ContributionFollow.js +4 -19
  474. package/lib/esm/components/Notification/DeletedFor/DeletedFor.js +2 -17
  475. package/lib/esm/components/Notification/Group/Group.js +17 -30
  476. package/lib/esm/components/Notification/IncubatorApproved/IncubatorApproved.js +8 -16
  477. package/lib/esm/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.js +2 -9
  478. package/lib/esm/components/Notification/KindlyNoticeFor/KindlyNoticeFor.js +4 -16
  479. package/lib/esm/components/Notification/Mention/Mention.js +7 -22
  480. package/lib/esm/components/Notification/Notification.js +37 -57
  481. package/lib/esm/components/Notification/PrivateMessage/PrivateMessage.js +24 -47
  482. package/lib/esm/components/Notification/Skeleton.js +3 -7
  483. package/lib/esm/components/Notification/UndeletedFor/UndeletedFor.js +2 -16
  484. package/lib/esm/components/Notification/UserBlocked/UserBlocked.js +5 -7
  485. package/lib/esm/components/Notification/UserConnection/UserConnection.js +5 -15
  486. package/lib/esm/components/Notification/UserFollow/UserFollow.js +5 -15
  487. package/lib/esm/components/Notification/VoteUp/VoteUp.js +6 -19
  488. package/lib/esm/components/PlatformWidget/PlatformWidget.js +20 -53
  489. package/lib/esm/components/PlatformWidget/Skeleton.js +2 -2
  490. package/lib/esm/components/PollSuggestionWidget/PollSnippet/PollSnippet.js +3 -12
  491. package/lib/esm/components/PollSuggestionWidget/PollSnippet/Skeleton.js +2 -2
  492. package/lib/esm/components/PollSuggestionWidget/PollSuggestionWidget.js +5 -17
  493. package/lib/esm/components/PollSuggestionWidget/Skeleton.js +2 -6
  494. package/lib/esm/components/PrivateMessageComponent/PrivateMessageComponent.js +6 -9
  495. package/lib/esm/components/PrivateMessageComponent/Skeleton.js +2 -6
  496. package/lib/esm/components/PrivateMessageEditor/MessageMediaUploader/index.js +16 -37
  497. package/lib/esm/components/PrivateMessageEditor/PrivateMessageEditor.js +9 -18
  498. package/lib/esm/components/PrivateMessageEditor/Skeleton.js +2 -2
  499. package/lib/esm/components/PrivateMessageSettingsIconButton/PrivateMessageSettingsIconButton.js +9 -31
  500. package/lib/esm/components/PrivateMessageSnippetItem/PrivateMessageSnippetItem.js +12 -19
  501. package/lib/esm/components/PrivateMessageSnippetItem/Skeleton.js +2 -5
  502. package/lib/esm/components/PrivateMessageSnippets/PrivateMessageSnippets.js +8 -16
  503. package/lib/esm/components/PrivateMessageSnippets/Skeleton.js +2 -8
  504. package/lib/esm/components/PrivateMessageThread/PrivateMessageThread.js +14 -35
  505. package/lib/esm/components/PrivateMessageThread/Skeleton.js +2 -9
  506. package/lib/esm/components/PrivateMessageThreadItem/PrivateMessageThreadItem.js +15 -33
  507. package/lib/esm/components/PrivateMessageThreadItem/Skeleton.js +2 -3
  508. package/lib/esm/components/RelatedFeedObjectsWidget/RelatedFeedObjectsWidget.js +6 -21
  509. package/lib/esm/components/RelatedFeedObjectsWidget/Skeleton.js +2 -2
  510. package/lib/esm/components/SearchAutocomplete/SearchAutocomplete.js +5 -8
  511. package/lib/esm/components/SearchDialog/SearchDialog.js +2 -4
  512. package/lib/esm/components/Skeleton/AvatarGroupSkeleton.js +2 -3
  513. package/lib/esm/components/Skeleton/GenericSkeleton.js +2 -6
  514. package/lib/esm/components/SnippetNotifications/Skeleton.js +3 -3
  515. package/lib/esm/components/SnippetNotifications/SnippetNotifications.js +23 -28
  516. package/lib/esm/components/ToastNotifications/Skeleton.js +2 -2
  517. package/lib/esm/components/ToastNotifications/ToastNotifications.js +16 -15
  518. package/lib/esm/components/User/Skeleton.js +2 -3
  519. package/lib/esm/components/User/User.js +6 -14
  520. package/lib/esm/components/UserActionIconButton/UserActionIconButton.js +16 -31
  521. package/lib/esm/components/UserConnectionsRequestsSentWidget/Skeleton.js +2 -2
  522. package/lib/esm/components/UserConnectionsRequestsSentWidget/UserConnectionsRequestsSentWidget.js +5 -17
  523. package/lib/esm/components/UserConnectionsRequestsWidget/Skeleton.js +2 -2
  524. package/lib/esm/components/UserConnectionsRequestsWidget/UserConnectionsRequestsWidget.js +5 -17
  525. package/lib/esm/components/UserConnectionsWidget/Skeleton.js +2 -2
  526. package/lib/esm/components/UserConnectionsWidget/UserConnectionsWidget.js +5 -17
  527. package/lib/esm/components/UserCounters/UserCounters.js +19 -28
  528. package/lib/esm/components/UserFollowedCategoriesWidget/Skeleton.js +2 -2
  529. package/lib/esm/components/UserFollowedCategoriesWidget/UserFollowedCategoriesWidget.js +5 -20
  530. package/lib/esm/components/UserFollowedUsersWidget/Skeleton.js +2 -2
  531. package/lib/esm/components/UserFollowedUsersWidget/UserFollowedUsersWidget.js +5 -17
  532. package/lib/esm/components/UserFollowersWidget/Skeleton.js +2 -2
  533. package/lib/esm/components/UserFollowersWidget/UserFollowersWidget.js +5 -17
  534. package/lib/esm/components/UserInfo/Skeleton.js +2 -6
  535. package/lib/esm/components/UserInfo/UserInfo.js +13 -14
  536. package/lib/esm/components/UserInfoDialog/UserInfoDialog.js +3 -5
  537. package/lib/esm/components/UserProfileBlocked/UserProfileBlocked.js +4 -11
  538. package/lib/esm/components/UserProfileEdit/Section/Account.js +3 -13
  539. package/lib/esm/components/UserProfileEdit/Section/AccountCredentials.js +15 -37
  540. package/lib/esm/components/UserProfileEdit/Section/PublicInfo.js +15 -25
  541. package/lib/esm/components/UserProfileEdit/Section/Settings.js +7 -37
  542. package/lib/esm/components/UserProfileEdit/Section/SettingsSkeleton.js +2 -5
  543. package/lib/esm/components/UserProfileEdit/Skeleton.js +2 -6
  544. package/lib/esm/components/UserProfileEdit/UserProfileEdit.js +2 -9
  545. package/lib/esm/components/UserProfileHeader/Skeleton.js +2 -13
  546. package/lib/esm/components/UserProfileHeader/UserProfileHeader.js +4 -21
  547. package/lib/esm/components/UserSocialAssociation/UserSocialAssociation.js +2 -16
  548. package/lib/esm/components/UserSubscribedGroupsWidget/Skeleton.js +2 -6
  549. package/lib/esm/components/UserSubscribedGroupsWidget/UserSubscribedGroupsWidget.js +7 -22
  550. package/lib/esm/components/UserSuggestionWidget/Skeleton.js +2 -5
  551. package/lib/esm/components/UserSuggestionWidget/UserSuggestionWidget.js +5 -17
  552. package/lib/esm/components/VoteAudienceButton/VoteAudienceButton.js +9 -23
  553. package/lib/esm/components/VoteButton/VoteButton.js +9 -15
  554. package/lib/esm/components/Widget/index.js +3 -2
  555. package/lib/esm/shared/AutoPlayer/index.js +5 -6
  556. package/lib/esm/shared/BaseDialog/BaseDialog.js +3 -10
  557. package/lib/esm/shared/BaseItem/BaseItem.js +4 -10
  558. package/lib/esm/shared/BaseItemButton/BaseItemButton.js +4 -10
  559. package/lib/esm/shared/Bullet/index.js +2 -1
  560. package/lib/esm/shared/Calendar/index.js +2 -3
  561. package/lib/esm/shared/CentralProgress/index.js +3 -4
  562. package/lib/esm/shared/ConfirmDialog/ConfirmDialog.js +2 -9
  563. package/lib/esm/shared/ConsentSolutionSwitch/index.js +5 -8
  564. package/lib/esm/shared/ContributionActionsMenu/index.js +22 -85
  565. package/lib/esm/shared/CustomSnackMessage/index.js +3 -7
  566. package/lib/esm/shared/DateTimeAgo/index.js +2 -6
  567. package/lib/esm/shared/EmailTextField/index.js +3 -2
  568. package/lib/esm/shared/EmojiPicker/EmojiPicker.js +2 -2
  569. package/lib/esm/shared/EventInfoDetails/index.js +5 -22
  570. package/lib/esm/shared/HiddenPlaceholder/index.js +2 -2
  571. package/lib/esm/shared/InfiniteScroll/index.js +8 -18
  572. package/lib/esm/shared/InfiniteScroll/stories/InfiniteScrollWithHeight.js +3 -8
  573. package/lib/esm/shared/InfiniteScroll/stories/PullDownToRefreshInfScroll.js +3 -7
  574. package/lib/esm/shared/InfiniteScroll/stories/ScrollableTargetFixedInfScroll.js +13 -18
  575. package/lib/esm/shared/InfiniteScroll/stories/ScrollableTargetInfScroll.js +3 -8
  576. package/lib/esm/shared/InfiniteScroll/stories/ScrolleableTop.js +6 -11
  577. package/lib/esm/shared/InfiniteScroll/stories/WindowInfiniteScrollComponent.js +3 -6
  578. package/lib/esm/shared/LanguageSwitcher/index.js +3 -5
  579. package/lib/esm/shared/Lightbox/Lightbox.js +4 -3
  580. package/lib/esm/shared/MarkRead/MarkRead.js +3 -3
  581. package/lib/esm/shared/Media/File/DisplayComponent.js +13 -42
  582. package/lib/esm/shared/Media/File/Lightbox/index.js +5 -5
  583. package/lib/esm/shared/Media/File/PreviewComponent.js +5 -9
  584. package/lib/esm/shared/Media/File/TriggerButton.js +14 -25
  585. package/lib/esm/shared/Media/File/asUploadButton.js +3 -2
  586. package/lib/esm/shared/Media/Link/DisplayComponent.js +8 -15
  587. package/lib/esm/shared/Media/Link/LayerComponent.js +2 -11
  588. package/lib/esm/shared/Media/Link/PreviewComponent.js +2 -4
  589. package/lib/esm/shared/Media/Link/TriggerButton.js +2 -3
  590. package/lib/esm/shared/Media/Link/UrlTextField/index.js +5 -7
  591. package/lib/esm/shared/Media/Share/DisplayComponent.js +3 -3
  592. package/lib/esm/shared/MetadataField/MetadataField.js +8 -7
  593. package/lib/esm/shared/NewChip/NewChip.js +2 -2
  594. package/lib/esm/shared/NotificationItem/NotificationItem.js +3 -12
  595. package/lib/esm/shared/PasswordTextField/index.js +4 -6
  596. package/lib/esm/shared/PhoneTextField/index.js +3 -2
  597. package/lib/esm/shared/ScrollContainer/index.js +2 -2
  598. package/lib/esm/shared/StickyBox/index.js +3 -2
  599. package/lib/esm/shared/TagChip/index.js +2 -2
  600. package/lib/esm/shared/Tags/index.js +11 -23
  601. package/lib/esm/shared/UrlTextField/index.js +3 -2
  602. package/lib/esm/shared/UserAvatar/UserAvatar.js +3 -2
  603. package/lib/esm/shared/UserDeletedSnackBar/UserDeletedSnackBar.js +3 -5
  604. package/lib/esm/shared/UsernameTextField/index.js +3 -2
  605. package/lib/esm/shared/VirtualizedScroller/VirtualScrollerChild.js +2 -2
  606. package/lib/esm/shared/VirtualizedScroller/VirtualizedScroller.js +3 -2
  607. package/lib/esm/utils/contribution.js +3 -3
  608. package/lib/esm/utils/errors.js +3 -3
  609. package/lib/umd/react-ui.js +1 -1
  610. package/package.json +7 -7
@@ -1,5 +1,6 @@
1
1
  import { __awaiter, __rest } from "tslib";
2
- import React, { useContext, useState } from 'react';
2
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
+ import { useContext, useState } from 'react';
3
4
  import { styled } from '@mui/material/styles';
4
5
  import { ListItem, Typography, IconButton, Box, useTheme, Button } from '@mui/material';
5
6
  import PrivateMessageThreadItemSkeleton from './Skeleton';
@@ -124,34 +125,23 @@ export default function PrivateMessageThreadItem(inProps) {
124
125
  return null;
125
126
  }
126
127
  let section = null;
127
- const defaultSection = (React.createElement(Box, { className: classes.other },
128
- React.createElement(Button, { onClick: () => handleDownload(m.file), startIcon: React.createElement(Icon, null, "download") },
129
- React.createElement(Typography, null, m.file.filename),
130
- React.createElement(Typography, null, bytesToSize(m.file.filesize)))));
128
+ const defaultSection = (_jsx(Box, Object.assign({ className: classes.other }, { children: _jsxs(Button, Object.assign({ onClick: () => handleDownload(m.file), startIcon: _jsx(Icon, { children: "download" }) }, { children: [_jsx(Typography, { children: m.file.filename }), _jsx(Typography, { children: bytesToSize(m.file.filesize) })] })) })));
131
129
  if (m.file) {
132
130
  let type = m.file.mimetype;
133
131
  switch (true) {
134
132
  case type.startsWith(SCMessageFileType.IMAGE):
135
- section = (React.createElement(Box, { className: classes.img },
136
- React.createElement("img", { src: m.file.thumbnail, loading: "lazy", alt: 'img', onClick: () => setOpenDialog(true) })));
133
+ section = (_jsx(Box, Object.assign({ className: classes.img }, { children: _jsx("img", { src: m.file.thumbnail, loading: "lazy", alt: 'img', onClick: () => setOpenDialog(true) }) })));
137
134
  break;
138
135
  case type.startsWith(SCMessageFileType.VIDEO):
139
136
  if (!isSupportedVideoFormat(m.file.filename)) {
140
137
  section = defaultSection;
141
138
  }
142
139
  else {
143
- section = (React.createElement(Box, { className: classNames(classes.img, classes.video) },
144
- React.createElement("img", { src: m.file.thumbnail, loading: "lazy", alt: 'img' }),
145
- React.createElement(IconButton, { onClick: () => setOpenDialog(true) },
146
- React.createElement(Icon, null, "play_circle_outline"))));
140
+ section = (_jsxs(Box, Object.assign({ className: classNames(classes.img, classes.video) }, { children: [_jsx("img", { src: m.file.thumbnail, loading: "lazy", alt: 'img' }), _jsx(IconButton, Object.assign({ onClick: () => setOpenDialog(true) }, { children: _jsx(Icon, { children: "play_circle_outline" }) }))] })));
147
141
  }
148
142
  break;
149
143
  case type.startsWith(SCMessageFileType.DOCUMENT):
150
- section = (React.createElement(Box, { className: m.file.filename.endsWith('.pdf') ? classes.document : classes.other },
151
- m.file.filename.endsWith('.pdf') && React.createElement("img", { src: m.file.thumbnail, loading: "lazy", alt: 'img' }),
152
- React.createElement(Button, { onClick: () => handleDownload(m.file), startIcon: React.createElement(Icon, null, "download") },
153
- React.createElement(Typography, null, m.file.filename),
154
- React.createElement(Typography, null, bytesToSize(m.file.filesize)))));
144
+ section = (_jsxs(Box, Object.assign({ className: m.file.filename.endsWith('.pdf') ? classes.document : classes.other }, { children: [m.file.filename.endsWith('.pdf') && _jsx("img", { src: m.file.thumbnail, loading: "lazy", alt: 'img' }), _jsxs(Button, Object.assign({ onClick: () => handleDownload(m.file), startIcon: _jsx(Icon, { children: "download" }) }, { children: [_jsx(Typography, { children: m.file.filename }), _jsx(Typography, { children: bytesToSize(m.file.filesize) })] }))] })));
155
145
  break;
156
146
  default:
157
147
  // section = <Icon>hide_image</Icon>;
@@ -159,28 +149,20 @@ export default function PrivateMessageThreadItem(inProps) {
159
149
  break;
160
150
  }
161
151
  }
162
- return React.createElement(React.Fragment, null, section);
152
+ return _jsx(_Fragment, { children: section });
163
153
  };
164
154
  if (!message) {
165
- return React.createElement(PrivateMessageThreadItemSkeleton, { elevation: 0 });
155
+ return _jsx(PrivateMessageThreadItemSkeleton, { elevation: 0 });
166
156
  }
167
157
  /**
168
158
  * Renders root object
169
159
  */
170
- return (React.createElement(Root, Object.assign({ className: classNames(classes.root, className) }, getMouseEvents(mouseEvents.onMouseEnter, mouseEvents.onMouseLeave), rest, { secondaryAction: (isHovering || isMobile) &&
160
+ return (_jsxs(Root, Object.assign({ className: classNames(classes.root, className) }, getMouseEvents(mouseEvents.onMouseEnter, mouseEvents.onMouseLeave), rest, { secondaryAction: (isHovering || isMobile) &&
171
161
  showMenuIcon &&
172
- message.status !== SCPrivateMessageStatusType.HIDDEN && React.createElement(PrivateMessageSettingsIconButton, { onMenuItemDeleteClick: handleMenuItemClick }) }),
173
- message.group && ((_a = scUserContext === null || scUserContext === void 0 ? void 0 : scUserContext.user) === null || _a === void 0 ? void 0 : _a.username) !== message.sender.username && (React.createElement(Typography, { color: "secondary", variant: "h4", className: classes.username }, message.sender.username)),
174
- React.createElement(React.Fragment, null,
175
- hasFile && message.status !== SCPrivateMessageStatusType.HIDDEN ? (renderMessageFile(message)) : (React.createElement(Box, { className: classes.text },
176
- React.createElement(Typography, { component: "span", dangerouslySetInnerHTML: { __html: message.message } }))),
177
- React.createElement(Typography, { className: classes.messageTime, color: "text.secondary" }, `${intl.formatDate(message.created_at, {
178
- hour: 'numeric',
179
- minute: 'numeric'
180
- })}`)),
181
- openDialog && (React.createElement(React.Fragment, null, (message === null || message === void 0 ? void 0 : message.file.mimetype.startsWith(SCMessageFileType.VIDEO)) ? (React.createElement(DialogRoot, { open: openDialog, onClose: () => setOpenDialog(false), className: classes.dialogRoot },
182
- React.createElement(AutoPlayer, { url: message === null || message === void 0 ? void 0 : message.file.url, width: '100%', enableAutoplay: false }))) : (React.createElement(LightBox, { images: [{ src: message === null || message === void 0 ? void 0 : message.file.url, key: message.file.uuid }], onClose: () => setOpenDialog(false), toolbarButtons: [
183
- React.createElement(IconButton, { key: 'download', onClick: () => handleDownload(message === null || message === void 0 ? void 0 : message.file), className: classes.downloadButton },
184
- React.createElement(Icon, null, "download"))
185
- ] }))))));
162
+ message.status !== SCPrivateMessageStatusType.HIDDEN && _jsx(PrivateMessageSettingsIconButton, { onMenuItemDeleteClick: handleMenuItemClick }) }, { children: [message.group && ((_a = scUserContext === null || scUserContext === void 0 ? void 0 : scUserContext.user) === null || _a === void 0 ? void 0 : _a.username) !== message.sender.username && (_jsx(Typography, Object.assign({ color: "secondary", variant: "h4", className: classes.username }, { children: message.sender.username }))), _jsxs(_Fragment, { children: [hasFile && message.status !== SCPrivateMessageStatusType.HIDDEN ? (renderMessageFile(message)) : (_jsx(Box, Object.assign({ className: classes.text }, { children: _jsx(Typography, { component: "span", dangerouslySetInnerHTML: { __html: message.message } }) }))), _jsx(Typography, Object.assign({ className: classes.messageTime, color: "text.secondary" }, { children: `${intl.formatDate(message.created_at, {
163
+ hour: 'numeric',
164
+ minute: 'numeric'
165
+ })}` }))] }), openDialog && (_jsx(_Fragment, { children: (message === null || message === void 0 ? void 0 : message.file.mimetype.startsWith(SCMessageFileType.VIDEO)) ? (_jsx(DialogRoot, Object.assign({ open: openDialog, onClose: () => setOpenDialog(false), className: classes.dialogRoot }, { children: _jsx(AutoPlayer, { url: message === null || message === void 0 ? void 0 : message.file.url, width: '100%', enableAutoplay: false }) }))) : (_jsx(LightBox, { images: [{ src: message === null || message === void 0 ? void 0 : message.file.url, key: message.file.uuid }], onClose: () => setOpenDialog(false), toolbarButtons: [
166
+ _jsx(IconButton, Object.assign({ onClick: () => handleDownload(message === null || message === void 0 ? void 0 : message.file), className: classes.downloadButton }, { children: _jsx(Icon, { children: "download" }) }), 'download')
167
+ ] })) }))] })));
186
168
  }
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import ListItem from '@mui/material/ListItem';
3
3
  import ListItemText from '@mui/material/ListItemText';
4
4
  import { styled } from '@mui/material/styles';
@@ -37,6 +37,5 @@ const Root = styled(ListItem, {
37
37
  export default function PrivateMessageThreadItemSkeleton(props) {
38
38
  const theme = useTheme();
39
39
  const isMobile = useMediaQuery(theme.breakpoints.down('md'));
40
- return (React.createElement(Root, Object.assign({ className: classes.root }, props),
41
- React.createElement(ListItemText, { sx: { display: 'flex', justifyContent: props.index % 2 === 0 ? 'flex-start' : 'flex-end' }, primary: React.createElement(Skeleton, { animation: "wave", height: 100, width: isMobile ? 200 : 300, style: { borderRadius: theme.shape.borderRadius } }) })));
40
+ return (_jsx(Root, Object.assign({ className: classes.root }, props, { children: _jsx(ListItemText, { sx: { display: 'flex', justifyContent: props.index % 2 === 0 ? 'flex-start' : 'flex-end' }, primary: _jsx(Skeleton, { animation: "wave", height: 100, width: isMobile ? 200 : 300, style: { borderRadius: theme.shape.borderRadius } }) }) })));
42
41
  }
@@ -1,4 +1,5 @@
1
1
  import { __rest } from "tslib";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
3
  import React, { useEffect, useMemo, useReducer, useState } from 'react';
3
4
  import { styled } from '@mui/material/styles';
4
5
  import List from '@mui/material/List';
@@ -182,36 +183,20 @@ export default function RelatedFeedObjectWidget(inProps) {
182
183
  };
183
184
  // RENDER
184
185
  if ((!preferences[SCPreferences.CONFIGURATIONS_CONTENT_AVAILABILITY] && !scUserContext.user) || (autoHide && !state.count && state.initialized)) {
185
- return React.createElement(HiddenPlaceholder, null);
186
+ return _jsx(HiddenPlaceholder, {});
186
187
  }
187
188
  if (!state.initialized) {
188
- return React.createElement(Skeleton, null);
189
+ return _jsx(Skeleton, {});
189
190
  }
190
191
  const renderAdvertising = () => {
191
192
  if (preferences[SCPreferences.ADVERTISING_CUSTOM_ADV_ENABLED] &&
192
193
  ((preferences[SCPreferences.ADVERTISING_CUSTOM_ADV_ONLY_FOR_ANONYMOUS_USERS_ENABLED] && scUserContext.user === null) ||
193
194
  !preferences[SCPreferences.ADVERTISING_CUSTOM_ADV_ONLY_FOR_ANONYMOUS_USERS_ENABLED])) {
194
- return (React.createElement(ListItem, null,
195
- React.createElement(CustomAdv, Object.assign({ position: SCCustomAdvPosition.POSITION_RELATED_POSTS_COLUMN }, (obj.categories.length && { categoriesId: obj.categories.map((c) => c.id) })))));
195
+ return (_jsx(ListItem, { children: _jsx(CustomAdv, Object.assign({ position: SCCustomAdvPosition.POSITION_RELATED_POSTS_COLUMN }, (obj.categories.length && { categoriesId: obj.categories.map((c) => c.id) }))) }));
196
196
  }
197
197
  return null;
198
198
  };
199
199
  const advPosition = Math.floor(Math.random() * (Math.min(state.count, 5) - 1 + 1) + 1);
200
- const content = (React.createElement(CardContent, null,
201
- React.createElement(Typography, { className: classes.title, variant: "h5" },
202
- React.createElement(FormattedMessage, { id: "ui.relatedFeedObjectsWidget.title", defaultMessage: "ui.relatedFeedObjectsWidget.title" })),
203
- !state.count ? (React.createElement(Typography, { className: classes.noResults, variant: "body2" },
204
- React.createElement(FormattedMessage, { id: "ui.relatedFeedObjectsWidget.noResults", defaultMessage: "ui.relatedFeedObjectsWidget.noResults" }))) : (React.createElement(React.Fragment, null,
205
- React.createElement(List, null, state.results.slice(0, state.visibleItems).map((obj, index) => (React.createElement(React.Fragment, { key: index },
206
- React.createElement(ListItem, { key: obj.id },
207
- React.createElement(FeedObject, Object.assign({ elevation: 0, feedObject: obj, template: template }, FeedObjectProps))),
208
- advPosition === index && renderAdvertising())))),
209
- state.count > state.visibleItems && (React.createElement(Button, { className: classes.showMore, onClick: handleToggleDialogOpen },
210
- React.createElement(FormattedMessage, { id: "ui.categoryTrendingFeedWidget.button.showAll", defaultMessage: "ui.categoryTrendingFeedWidget.button.showAll" }))))),
211
- openDialog && (React.createElement(DialogRoot, Object.assign({ className: classes.dialogRoot, title: React.createElement(FormattedMessage, { defaultMessage: "ui.categoryTrendingFeedWidget.title", id: "ui.categoryTrendingFeedWidget.title", values: { total: state.count } }), onClose: handleToggleDialogOpen, open: openDialog }, DialogProps),
212
- React.createElement(InfiniteScroll, { dataLength: state.results.length, next: handleNext, hasMoreNext: Boolean(state.next), loaderNext: React.createElement(FeedObjectSkeleton, Object.assign({ elevation: 0 }, FeedObjectProps)), height: isMobile ? '100%' : 400, endMessage: React.createElement(Typography, { className: classes.endMessage },
213
- React.createElement(FormattedMessage, { id: "ui.categoryTrendingFeedWidget.noMoreResults", defaultMessage: "ui.categoryTrendingFeedWidget.noMoreResults" })) },
214
- React.createElement(List, null, state.results.map((obj) => (React.createElement(ListItem, { key: obj.id },
215
- React.createElement(FeedObject, Object.assign({ elevation: 0, feedObject: obj }, FeedObjectProps)))))))))));
216
- return (React.createElement(Root, Object.assign({ className: classNames(classes.root, className) }, rest), content));
200
+ const content = (_jsxs(CardContent, { children: [_jsx(Typography, Object.assign({ className: classes.title, variant: "h5" }, { children: _jsx(FormattedMessage, { id: "ui.relatedFeedObjectsWidget.title", defaultMessage: "ui.relatedFeedObjectsWidget.title" }) })), !state.count ? (_jsx(Typography, Object.assign({ className: classes.noResults, variant: "body2" }, { children: _jsx(FormattedMessage, { id: "ui.relatedFeedObjectsWidget.noResults", defaultMessage: "ui.relatedFeedObjectsWidget.noResults" }) }))) : (_jsxs(React.Fragment, { children: [_jsx(List, { children: state.results.slice(0, state.visibleItems).map((obj, index) => (_jsxs(React.Fragment, { children: [_jsx(ListItem, { children: _jsx(FeedObject, Object.assign({ elevation: 0, feedObject: obj, template: template }, FeedObjectProps)) }, obj.id), advPosition === index && renderAdvertising()] }, index))) }), state.count > state.visibleItems && (_jsx(Button, Object.assign({ className: classes.showMore, onClick: handleToggleDialogOpen }, { children: _jsx(FormattedMessage, { id: "ui.categoryTrendingFeedWidget.button.showAll", defaultMessage: "ui.categoryTrendingFeedWidget.button.showAll" }) })))] })), openDialog && (_jsx(DialogRoot, Object.assign({ className: classes.dialogRoot, title: _jsx(FormattedMessage, { defaultMessage: "ui.categoryTrendingFeedWidget.title", id: "ui.categoryTrendingFeedWidget.title", values: { total: state.count } }), onClose: handleToggleDialogOpen, open: openDialog }, DialogProps, { children: _jsx(InfiniteScroll, Object.assign({ dataLength: state.results.length, next: handleNext, hasMoreNext: Boolean(state.next), loaderNext: _jsx(FeedObjectSkeleton, Object.assign({ elevation: 0 }, FeedObjectProps)), height: isMobile ? '100%' : 400, endMessage: _jsx(Typography, Object.assign({ className: classes.endMessage }, { children: _jsx(FormattedMessage, { id: "ui.categoryTrendingFeedWidget.noMoreResults", defaultMessage: "ui.categoryTrendingFeedWidget.noMoreResults" }) })) }, { children: _jsx(List, { children: state.results.map((obj) => (_jsx(ListItem, { children: _jsx(FeedObject, Object.assign({ elevation: 0, feedObject: obj }, FeedObjectProps)) }, obj.id))) }) })) })))] }));
201
+ return (_jsx(Root, Object.assign({ className: classNames(classes.root, className) }, rest, { children: content })));
217
202
  }
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { CategoryTrendingFeedWidgetSkeleton } from '../CategoryTrendingFeedWidget';
3
3
  import { styled } from '@mui/material/styles';
4
4
  import { PREFIX } from './constants';
@@ -30,5 +30,5 @@ const Root = styled(CategoryTrendingFeedWidgetSkeleton, {
30
30
  *
31
31
  */
32
32
  export default function RelatedFeedObjectsWidgetSkeleton() {
33
- return React.createElement(Root, { className: classes.root });
33
+ return _jsx(Root, { className: classes.root });
34
34
  }
@@ -1,7 +1,8 @@
1
1
  import { __rest } from "tslib";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
3
  import { Autocomplete, Avatar, Box, Fade, IconButton, styled, TextField, Typography } from '@mui/material';
3
4
  import Icon from '@mui/material/Icon';
4
- import React, { useEffect, useState } from 'react';
5
+ import { useEffect, useState } from 'react';
5
6
  import classNames from 'classnames';
6
7
  import { useThemeProps } from '@mui/system';
7
8
  import { defineMessages, FormattedMessage, useIntl } from 'react-intl';
@@ -119,16 +120,12 @@ export default function SearchAutocomplete(inProps) {
119
120
  fetchResults();
120
121
  }
121
122
  }, [value]);
122
- return (React.createElement(Root, Object.assign({ id: id, className: classNames(classes.root, className), blurOnSelect: blurOnSelect, onChange: handleChange, onInputChange: handleInputChange, inputValue: value, freeSolo: true, autoComplete: true, disableClearable: true, loading: isLoading, loadingText: React.createElement(FormattedMessage, { id: "ui.searchAutocomplete.loading", defaultMessage: "ui.searchAutocomplete.loading" }), noOptionsText: React.createElement(FormattedMessage, { id: "ui.searchAutocomplete.noOptions", defaultMessage: "ui.searchAutocomplete.noOptions" }), options: options, getOptionLabel: (option) => {
123
+ return (_jsx(Root, Object.assign({ id: id, className: classNames(classes.root, className), blurOnSelect: blurOnSelect, onChange: handleChange, onInputChange: handleInputChange, inputValue: value, freeSolo: true, autoComplete: true, disableClearable: true, loading: isLoading, loadingText: _jsx(FormattedMessage, { id: "ui.searchAutocomplete.loading", defaultMessage: "ui.searchAutocomplete.loading" }), noOptionsText: _jsx(FormattedMessage, { id: "ui.searchAutocomplete.noOptions", defaultMessage: "ui.searchAutocomplete.noOptions" }), options: options, getOptionLabel: (option) => {
123
124
  if (typeof option === 'string') {
124
125
  return option;
125
126
  }
126
127
  return optionLabel(option);
127
- }, renderOption: (props, option) => (React.createElement(Box, Object.assign({ component: "li" }, props),
128
- React.createElement(Avatar, { alt: getOptionData(option).name, src: getOptionData(option).image, variant: getOptionData(option).variant }),
129
- React.createElement(Typography, { ml: 1 }, getOptionData(option).name))), renderInput: (params) => (React.createElement(TextField, Object.assign({}, params, { placeholder: `${intl.formatMessage(messages.placeholder, {
128
+ }, renderOption: (props, option) => (_jsxs(Box, Object.assign({ component: "li" }, props, { children: [_jsx(Avatar, { alt: getOptionData(option).name, src: getOptionData(option).image, variant: getOptionData(option).variant }), _jsx(Typography, Object.assign({ ml: 1 }, { children: getOptionData(option).name }))] }))), renderInput: (params) => (_jsx(TextField, Object.assign({}, params, { placeholder: `${intl.formatMessage(messages.placeholder, {
130
129
  community: scPreferences.preferences[SCPreferences.TEXT_APPLICATION_NAME].value
131
- })}`, InputProps: Object.assign(Object.assign({}, params.InputProps), { autoFocus, name: 'search-autocomplete', className: classes.input, startAdornment: React.createElement(Icon, { className: classes.icon }, "search"), endAdornment: (React.createElement(Fade, { in: value.length > 0 || Boolean(onClear), appear: false },
132
- React.createElement(IconButton, { className: classes.clear, onClick: handleClear, size: "small" },
133
- React.createElement(Icon, null, "close")))) }) }))) }, rest)));
130
+ })}`, InputProps: Object.assign(Object.assign({}, params.InputProps), { autoFocus, name: 'search-autocomplete', className: classes.input, startAdornment: _jsx(Icon, Object.assign({ className: classes.icon }, { children: "search" })), endAdornment: (_jsx(Fade, Object.assign({ in: value.length > 0 || Boolean(onClear), appear: false }, { children: _jsx(IconButton, Object.assign({ className: classes.clear, onClick: handleClear, size: "small" }, { children: _jsx(Icon, { children: "close" }) })) }))) }) }))) }, rest)));
134
131
  }
@@ -1,6 +1,6 @@
1
1
  import { __rest } from "tslib";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
2
3
  import { Dialog, DialogContent, styled } from '@mui/material';
3
- import React from 'react';
4
4
  import classNames from 'classnames';
5
5
  import { useThemeProps } from '@mui/system';
6
6
  import SearchAutocomplete from '../SearchAutocomplete';
@@ -29,7 +29,5 @@ export default function Search(inProps) {
29
29
  name: PREFIX
30
30
  });
31
31
  const { className, SearchAutocompleteProps = { autoFocus: true } } = props, rest = __rest(props, ["className", "SearchAutocompleteProps"]);
32
- return (React.createElement(Root, Object.assign({ className: classNames(classes.root, className) }, rest),
33
- React.createElement(DialogContent, null,
34
- React.createElement(SearchAutocomplete, Object.assign({ className: classes.search, blurOnSelect: false, open: true, disablePortal: true }, SearchAutocompleteProps)))));
32
+ return (_jsx(Root, Object.assign({ className: classNames(classes.root, className) }, rest, { children: _jsx(DialogContent, { children: _jsx(SearchAutocomplete, Object.assign({ className: classes.search, blurOnSelect: false, open: true, disablePortal: true }, SearchAutocompleteProps)) }) })));
35
33
  }
@@ -1,5 +1,5 @@
1
1
  import { __rest } from "tslib";
2
- import React from 'react';
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
3
  import { styled } from '@mui/material/styles';
4
4
  import { Avatar, AvatarGroup, Skeleton, useTheme } from '@mui/material';
5
5
  const PREFIX = 'SCAvatarGroupSkeleton';
@@ -34,6 +34,5 @@ const Root = styled(AvatarGroup, {
34
34
  export default function AvatarGroupSkeleton(props) {
35
35
  const { count = 2 } = props, rest = __rest(props, ["count"]);
36
36
  const theme = useTheme();
37
- return (React.createElement(Root, Object.assign({ className: classes.root }, rest), [...Array(count + 1)].map((x, i) => (React.createElement(Avatar, { key: i },
38
- React.createElement(Skeleton, { variant: "circular", width: theme.selfcommunity.user.avatar.sizeSmall, height: theme.selfcommunity.user.avatar.sizeSmall }))))));
37
+ return (_jsx(Root, Object.assign({ className: classes.root }, rest, { children: [...Array(count + 1)].map((x, i) => (_jsx(Avatar, { children: _jsx(Skeleton, { variant: "circular", width: theme.selfcommunity.user.avatar.sizeSmall, height: theme.selfcommunity.user.avatar.sizeSmall }) }, i))) })));
39
38
  }
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import Widget from '../Widget';
3
3
  import { styled } from '@mui/material/styles';
4
4
  import Skeleton from '@mui/material/Skeleton';
@@ -31,10 +31,6 @@ const Root = styled(Widget)(({ theme }) => ({}));
31
31
  *
32
32
  */
33
33
  function GenericSkeleton(props) {
34
- return (React.createElement(Root, Object.assign({ className: classes.root }, props),
35
- React.createElement(CardContent, null,
36
- React.createElement(Skeleton, { animation: "wave", height: 10, style: { marginBottom: 10 } }),
37
- React.createElement(Skeleton, { animation: "wave", height: 10, width: "80%", style: { marginBottom: 5 } }),
38
- React.createElement(Skeleton, { animation: "wave", height: 10, width: "60%", style: { marginBottom: 5 } }))));
34
+ return (_jsx(Root, Object.assign({ className: classes.root }, props, { children: _jsxs(CardContent, { children: [_jsx(Skeleton, { animation: "wave", height: 10, style: { marginBottom: 10 } }), _jsx(Skeleton, { animation: "wave", height: 10, width: "80%", style: { marginBottom: 5 } }), _jsx(Skeleton, { animation: "wave", height: 10, width: "60%", style: { marginBottom: 5 } })] }) })));
39
35
  }
40
36
  export default GenericSkeleton;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { styled } from '@mui/material/styles';
3
3
  import { List, ListItem, useTheme } from '@mui/material';
4
4
  import Skeleton from '@mui/material/Skeleton';
@@ -37,6 +37,6 @@ const Root = styled(List, {
37
37
  */
38
38
  export default function SnippetNotificationSkeleton(props) {
39
39
  const theme = useTheme();
40
- const notificationSkeleton = (React.createElement(NotificationItem, { className: classes.item, template: SCNotificationObjectTemplateType.SNIPPET, image: React.createElement(Skeleton, { animation: "wave", variant: "circular", width: theme.selfcommunity.user.avatar.sizeSmall, height: theme.selfcommunity.user.avatar.sizeSmall }), primary: React.createElement(Skeleton, { animation: "wave", height: 10, width: 120, style: { marginBottom: 10 } }), secondary: React.createElement(Skeleton, { animation: "wave", height: 10, width: 70, style: { marginBottom: 10 } }) }));
41
- return (React.createElement(Root, Object.assign({ className: classes.root }, props), [...Array(7)].map((x, i) => (React.createElement(ListItem, { className: classes.item, key: i }, notificationSkeleton)))));
40
+ const notificationSkeleton = (_jsx(NotificationItem, { className: classes.item, template: SCNotificationObjectTemplateType.SNIPPET, image: _jsx(Skeleton, { animation: "wave", variant: "circular", width: theme.selfcommunity.user.avatar.sizeSmall, height: theme.selfcommunity.user.avatar.sizeSmall }), primary: _jsx(Skeleton, { animation: "wave", height: 10, width: 120, style: { marginBottom: 10 } }), secondary: _jsx(Skeleton, { animation: "wave", height: 10, width: 70, style: { marginBottom: 10 } }) }));
41
+ return (_jsx(Root, Object.assign({ className: classes.root }, props, { children: [...Array(7)].map((x, i) => (_jsx(ListItem, Object.assign({ className: classes.item }, { children: notificationSkeleton }), i))) })));
42
42
  }
@@ -1,5 +1,6 @@
1
1
  import { __rest } from "tslib";
2
- import React, { useEffect, useMemo, useRef, useState } from 'react';
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { useEffect, useMemo, useRef, useState } from 'react';
3
4
  import { styled } from '@mui/material/styles';
4
5
  import CommentNotification from '../Notification/Comment';
5
6
  import UserFollowNotification from '../Notification/UserFollow';
@@ -194,70 +195,70 @@ export default function SnippetNotifications(inProps) {
194
195
  const type = n.type;
195
196
  let content;
196
197
  if (type === SCNotificationTypologyType.COMMENT || type === SCNotificationTypologyType.NESTED_COMMENT) {
197
- content = React.createElement(CommentNotification, { notificationObject: n, key: i, index: i, template: SCNotificationObjectTemplateType.SNIPPET });
198
+ content = _jsx(CommentNotification, { notificationObject: n, index: i, template: SCNotificationObjectTemplateType.SNIPPET }, i);
198
199
  }
199
200
  else if (type === SCNotificationTypologyType.FOLLOW) {
200
- content = React.createElement(ContributionFollowNotification, { notificationObject: n, key: i, template: SCNotificationObjectTemplateType.SNIPPET });
201
+ content = _jsx(ContributionFollowNotification, { notificationObject: n, template: SCNotificationObjectTemplateType.SNIPPET }, i);
201
202
  }
202
203
  else if (type === SCNotificationTypologyType.USER_FOLLOW) {
203
- content = React.createElement(UserFollowNotification, { notificationObject: n, key: i, template: SCNotificationObjectTemplateType.SNIPPET });
204
+ content = _jsx(UserFollowNotification, { notificationObject: n, template: SCNotificationObjectTemplateType.SNIPPET }, i);
204
205
  }
205
206
  else if (type === SCNotificationTypologyType.CONNECTION_REQUEST || type === SCNotificationTypologyType.CONNECTION_ACCEPT) {
206
- content = React.createElement(UserConnectionNotification, { notificationObject: n, key: i, template: SCNotificationObjectTemplateType.SNIPPET });
207
+ content = _jsx(UserConnectionNotification, { notificationObject: n, template: SCNotificationObjectTemplateType.SNIPPET }, i);
207
208
  }
208
209
  else if (type === SCNotificationTypologyType.VOTE_UP) {
209
- content = React.createElement(VoteUpNotification, { notificationObject: n, key: i, template: SCNotificationObjectTemplateType.SNIPPET });
210
+ content = _jsx(VoteUpNotification, { notificationObject: n, template: SCNotificationObjectTemplateType.SNIPPET }, i);
210
211
  }
211
212
  else if (type === SCNotificationTypologyType.KINDLY_NOTICE_ADVERTISING ||
212
213
  type === SCNotificationTypologyType.KINDLY_NOTICE_AGGRESSIVE ||
213
214
  type === SCNotificationTypologyType.KINDLY_NOTICE_POOR ||
214
215
  type === SCNotificationTypologyType.KINDLY_NOTICE_VULGAR ||
215
216
  type === SCNotificationTypologyType.KINDLY_NOTICE_OFFTOPIC) {
216
- content = React.createElement(KindlyNoticeForNotification, { notificationObject: n, key: i, template: SCNotificationObjectTemplateType.SNIPPET });
217
+ content = _jsx(KindlyNoticeForNotification, { notificationObject: n, template: SCNotificationObjectTemplateType.SNIPPET }, i);
217
218
  }
218
219
  else if (type === SCNotificationTypologyType.KINDLY_NOTICE_FLAG) {
219
- content = React.createElement(KindlyNoticeFlagNotification, { notificationObject: n, key: i, template: SCNotificationObjectTemplateType.SNIPPET });
220
+ content = _jsx(KindlyNoticeFlagNotification, { notificationObject: n, template: SCNotificationObjectTemplateType.SNIPPET }, i);
220
221
  }
221
222
  else if (type === SCNotificationTypologyType.DELETED_FOR_ADVERTISING ||
222
223
  type === SCNotificationTypologyType.DELETED_FOR_AGGRESSIVE ||
223
224
  type === SCNotificationTypologyType.DELETED_FOR_POOR ||
224
225
  type === SCNotificationTypologyType.DELETED_FOR_VULGAR ||
225
226
  type === SCNotificationTypologyType.DELETED_FOR_OFFTOPIC) {
226
- content = React.createElement(DeletedForNotification, { notificationObject: n, key: i, template: SCNotificationObjectTemplateType.SNIPPET });
227
+ content = _jsx(DeletedForNotification, { notificationObject: n, template: SCNotificationObjectTemplateType.SNIPPET }, i);
227
228
  }
228
229
  else if (type === SCNotificationTypologyType.UNDELETED_FOR) {
229
- content = React.createElement(UndeletedForNotification, { notificationObject: n, key: i, template: SCNotificationObjectTemplateType.SNIPPET });
230
+ content = _jsx(UndeletedForNotification, { notificationObject: n, template: SCNotificationObjectTemplateType.SNIPPET }, i);
230
231
  }
231
232
  else if (type === SCNotificationTypologyType.COLLAPSED_FOR_ADVERTISING ||
232
233
  type === SCNotificationTypologyType.COLLAPSED_FOR_AGGRESSIVE ||
233
234
  type === SCNotificationTypologyType.COLLAPSED_FOR_POOR ||
234
235
  type === SCNotificationTypologyType.COLLAPSED_FOR_VULGAR ||
235
236
  type === SCNotificationTypologyType.COLLAPSED_FOR_OFFTOPIC) {
236
- content = React.createElement(CollapsedForNotification, { notificationObject: n, key: i, template: SCNotificationObjectTemplateType.SNIPPET });
237
+ content = _jsx(CollapsedForNotification, { notificationObject: n, template: SCNotificationObjectTemplateType.SNIPPET }, i);
237
238
  }
238
239
  else if (type === SCNotificationTypologyType.PRIVATE_MESSAGE) {
239
- content = React.createElement(PrivateMessageNotification, { notificationObject: n, key: i, template: SCNotificationObjectTemplateType.SNIPPET });
240
+ content = _jsx(PrivateMessageNotification, { notificationObject: n, template: SCNotificationObjectTemplateType.SNIPPET }, i);
240
241
  }
241
242
  else if (type === SCNotificationTypologyType.BLOCKED_USER || type === SCNotificationTypologyType.UNBLOCKED_USER) {
242
- content = React.createElement(UserBlockedNotification, { notificationObject: n, key: i, template: SCNotificationObjectTemplateType.SNIPPET });
243
+ content = _jsx(UserBlockedNotification, { notificationObject: n, template: SCNotificationObjectTemplateType.SNIPPET }, i);
243
244
  }
244
245
  else if (type === SCNotificationTypologyType.MENTION) {
245
- content = React.createElement(MentionNotification, { notificationObject: n, key: i, template: SCNotificationObjectTemplateType.SNIPPET });
246
+ content = _jsx(MentionNotification, { notificationObject: n, template: SCNotificationObjectTemplateType.SNIPPET }, i);
246
247
  }
247
248
  else if (type === SCNotificationTypologyType.INCUBATOR_APPROVED) {
248
- content = React.createElement(IncubatorApprovedNotification, { notificationObject: n, key: i, template: SCNotificationObjectTemplateType.SNIPPET });
249
+ content = _jsx(IncubatorApprovedNotification, { notificationObject: n, template: SCNotificationObjectTemplateType.SNIPPET }, i);
249
250
  }
250
251
  else if (type === SCNotificationTypologyType.CUSTOM_NOTIFICATION && handleCustomNotification) {
251
252
  content = handleCustomNotification(n);
252
253
  }
253
254
  else if (type === SCNotificationTypologyType.CONTRIBUTION) {
254
- content = React.createElement(ContributionNotification, { notificationObject: n, key: i, template: SCNotificationObjectTemplateType.SNIPPET });
255
+ content = _jsx(ContributionNotification, { notificationObject: n, template: SCNotificationObjectTemplateType.SNIPPET }, i);
255
256
  }
256
257
  else if (n.type === SCNotificationTypologyType.USER_ADDED_TO_GROUP ||
257
258
  n.type === SCNotificationTypologyType.USER_INVITED_TO_JOIN_GROUP ||
258
259
  n.type === SCNotificationTypologyType.USER_ACCEPTED_TO_JOIN_GROUP ||
259
260
  n.type === SCNotificationTypologyType.USER_REQUESTED_TO_JOIN_GROUP) {
260
- return React.createElement(GroupNotification, { notificationObject: n, key: i, template: SCNotificationObjectTemplateType.SNIPPET });
261
+ return _jsx(GroupNotification, { notificationObject: n, template: SCNotificationObjectTemplateType.SNIPPET }, i);
261
262
  }
262
263
  if (type && handleNotification) {
263
264
  /** Override content */
@@ -268,15 +269,9 @@ export default function SnippetNotifications(inProps) {
268
269
  /**
269
270
  * Renders root object
270
271
  */
271
- return (React.createElement(Root, Object.assign({ id: id, className: classNames(classes.root, className) }, rest),
272
- React.createElement(Box, { className: classes.notificationsWrap }, !initialized || loading ? (React.createElement(Skeleton, { elevation: 0 })) : (React.createElement(ScrollContainer, Object.assign({}, ScrollContainerProps),
273
- React.createElement(MenuList, { className: classes.list, disabledItemsFocusable: true, disableListWrap: true },
274
- scUserContext.user.unseen_notification_banners_counter ? (React.createElement(MenuItem, { className: classNames(classes.item, classes.broadcastMessagesBanner), key: "banner", component: Link, to: scRoutingContext.url(SCRoutes.USER_NOTIFICATIONS_ROUTE_NAME, {}) },
275
- React.createElement(NotificationItem, { template: SCNotificationObjectTemplateType.SNIPPET, isNew: true, disableTypography: true, image: React.createElement(Avatar, { alt: preferences[SCPreferences.TEXT_APPLICATION_NAME], src: preferences[SCPreferences.LOGO_NAVBAR_LOGO_MOBILE] }), primary: React.createElement(Typography, { component: 'div' }, intl.formatMessage({ id: 'ui.snippetNotifications.broadcastMessages', defaultMessage: 'ui.snippetNotifications.broadcastMessages' }, {
276
- count: scUserContext.user.unseen_notification_banners_counter,
277
- b: (...chunks) => React.createElement("strong", null, chunks),
278
- link: (...chunks) => React.createElement(Link, { to: scRoutingContext.url(SCRoutes.USER_NOTIFICATIONS_ROUTE_NAME, {}) }, chunks)
279
- })) }))) : null,
280
- notifications.length === 0 ? (React.createElement(MenuItem, { className: classes.emptyBoxNotifications },
281
- React.createElement(FormattedMessage, { id: "ui.snippetNotifications.noNotifications", defaultMessage: "ui.snippetNotifications.noNotifications" }))) : (notifications.slice(0, showMax).map((notificationObject, i) => notificationObject.aggregated.map((n, k) => (React.createElement(MenuItem, { className: classes.item, key: k, onClick: (e) => handleSingleNotificationClick(e, n), disableRipple: true, disableTouchRipple: true }, renderAggregatedItem(n, i))))))))))));
272
+ return (_jsx(Root, Object.assign({ id: id, className: classNames(classes.root, className) }, rest, { children: _jsx(Box, Object.assign({ className: classes.notificationsWrap }, { children: !initialized || loading ? (_jsx(Skeleton, { elevation: 0 })) : (_jsx(ScrollContainer, Object.assign({}, ScrollContainerProps, { children: _jsxs(MenuList, Object.assign({ className: classes.list, disabledItemsFocusable: true, disableListWrap: true }, { children: [scUserContext.user.unseen_notification_banners_counter ? (_jsx(MenuItem, Object.assign({ className: classNames(classes.item, classes.broadcastMessagesBanner), component: Link, to: scRoutingContext.url(SCRoutes.USER_NOTIFICATIONS_ROUTE_NAME, {}) }, { children: _jsx(NotificationItem, { template: SCNotificationObjectTemplateType.SNIPPET, isNew: true, disableTypography: true, image: _jsx(Avatar, { alt: preferences[SCPreferences.TEXT_APPLICATION_NAME], src: preferences[SCPreferences.LOGO_NAVBAR_LOGO_MOBILE] }), primary: _jsx(Typography, Object.assign({ component: 'div' }, { children: intl.formatMessage({ id: 'ui.snippetNotifications.broadcastMessages', defaultMessage: 'ui.snippetNotifications.broadcastMessages' }, {
273
+ count: scUserContext.user.unseen_notification_banners_counter,
274
+ b: (...chunks) => _jsx("strong", { children: chunks }),
275
+ link: (...chunks) => _jsx(Link, Object.assign({ to: scRoutingContext.url(SCRoutes.USER_NOTIFICATIONS_ROUTE_NAME, {}) }, { children: chunks }))
276
+ }) })) }) }), "banner")) : null, notifications.length === 0 ? (_jsx(MenuItem, Object.assign({ className: classes.emptyBoxNotifications }, { children: _jsx(FormattedMessage, { id: "ui.snippetNotifications.noNotifications", defaultMessage: "ui.snippetNotifications.noNotifications" }) }))) : (notifications.slice(0, showMax).map((notificationObject, i) => notificationObject.aggregated.map((n, k) => (_jsx(MenuItem, Object.assign({ className: classes.item, onClick: (e) => handleSingleNotificationClick(e, n), disableRipple: true, disableTouchRipple: true }, { children: renderAggregatedItem(n, i) }), k)))))] })) }))) })) })));
282
277
  }
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { NotificationSkeleton } from '../Notification';
3
3
  import { styled } from '@mui/material/styles';
4
4
  import { PREFIX } from './constants';
@@ -30,5 +30,5 @@ const Root = styled(NotificationSkeleton, {
30
30
  *
31
31
  */
32
32
  export default function ToastNotificationsSkeleton() {
33
- return React.createElement(Root, { className: classes.root });
33
+ return _jsx(Root, { className: classes.root });
34
34
  }
@@ -1,4 +1,5 @@
1
- import React, { useEffect, useRef } from 'react';
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { useEffect, useRef } from 'react';
2
3
  import { styled } from '@mui/material/styles';
3
4
  import { Box } from '@mui/material';
4
5
  import { SCNotification, useSCAlertMessages, useSCContext, useSCUser } from '@selfcommunity/react-core';
@@ -77,48 +78,48 @@ export default function UserToastNotifications(inProps) {
77
78
  /** Notification of types: comment, nested_comment, etc... */
78
79
  type = SCNotification.SCNotificationMapping[n.activity_type];
79
80
  if (type === SCNotificationTypologyType.COMMENT || type === SCNotificationTypologyType.NESTED_COMMENT) {
80
- content = React.createElement(CommentNotification, { notificationObject: n.notification_obj, template: SCNotificationObjectTemplateType.TOAST });
81
+ content = _jsx(CommentNotification, { notificationObject: n.notification_obj, template: SCNotificationObjectTemplateType.TOAST });
81
82
  }
82
83
  else if (type === SCNotificationTypologyType.FOLLOW) {
83
- content = React.createElement(ContributionFollowNotification, { notificationObject: n.notification_obj, template: SCNotificationObjectTemplateType.TOAST });
84
+ content = _jsx(ContributionFollowNotification, { notificationObject: n.notification_obj, template: SCNotificationObjectTemplateType.TOAST });
84
85
  }
85
86
  else if (type === SCNotificationTypologyType.USER_FOLLOW) {
86
- content = React.createElement(UserFollowNotification, { notificationObject: n.notification_obj, template: SCNotificationObjectTemplateType.TOAST });
87
+ content = _jsx(UserFollowNotification, { notificationObject: n.notification_obj, template: SCNotificationObjectTemplateType.TOAST });
87
88
  }
88
89
  else if (type === SCNotificationTypologyType.CONNECTION_REQUEST || type === SCNotificationTypologyType.CONNECTION_ACCEPT) {
89
- content = React.createElement(UserConnectionNotification, { notificationObject: n.notification_obj, template: SCNotificationObjectTemplateType.TOAST });
90
+ content = _jsx(UserConnectionNotification, { notificationObject: n.notification_obj, template: SCNotificationObjectTemplateType.TOAST });
90
91
  }
91
92
  else if (type === SCNotificationTypologyType.VOTE_UP) {
92
- content = React.createElement(VoteUpNotification, { notificationObject: n.notification_obj, template: SCNotificationObjectTemplateType.TOAST });
93
+ content = _jsx(VoteUpNotification, { notificationObject: n.notification_obj, template: SCNotificationObjectTemplateType.TOAST });
93
94
  }
94
95
  else if (type === SCNotificationTypologyType.PRIVATE_MESSAGE) {
95
- content = React.createElement(PrivateMessageNotification, { notificationObject: n.notification_obj, template: SCNotificationObjectTemplateType.TOAST });
96
+ content = _jsx(PrivateMessageNotification, { notificationObject: n.notification_obj, template: SCNotificationObjectTemplateType.TOAST });
96
97
  }
97
98
  else if (type === SCNotificationTypologyType.BLOCKED_USER || type === SCNotificationTypologyType.UNBLOCKED_USER) {
98
- return React.createElement(UserBlockedNotification, { notificationObject: n.notification_obj, template: SCNotificationObjectTemplateType.TOAST });
99
+ return _jsx(UserBlockedNotification, { notificationObject: n.notification_obj, template: SCNotificationObjectTemplateType.TOAST });
99
100
  }
100
101
  else if (type === SCNotificationTypologyType.MENTION) {
101
- content = React.createElement(MentionNotification, { notificationObject: n.notification_obj, template: SCNotificationObjectTemplateType.TOAST });
102
+ content = _jsx(MentionNotification, { notificationObject: n.notification_obj, template: SCNotificationObjectTemplateType.TOAST });
102
103
  }
103
104
  else if (type === SCNotificationTypologyType.KINDLY_NOTICE_FLAG) {
104
- content = React.createElement(KindlyNoticeFlagNotification, { notificationObject: n.notification_obj, template: SCNotificationObjectTemplateType.TOAST });
105
+ content = _jsx(KindlyNoticeFlagNotification, { notificationObject: n.notification_obj, template: SCNotificationObjectTemplateType.TOAST });
105
106
  }
106
107
  else if (type === SCNotificationTypologyType.INCUBATOR_APPROVED) {
107
- content = React.createElement(IncubatorApprovedNotification, { notificationObject: n.notification_obj, template: SCNotificationObjectTemplateType.TOAST });
108
+ content = _jsx(IncubatorApprovedNotification, { notificationObject: n.notification_obj, template: SCNotificationObjectTemplateType.TOAST });
108
109
  }
109
110
  else if (type === SCNotificationTypologyType.CONTRIBUTION) {
110
- content = React.createElement(ContributionNotification, { notificationObject: n.notification_obj, template: SCNotificationObjectTemplateType.TOAST });
111
+ content = _jsx(ContributionNotification, { notificationObject: n.notification_obj, template: SCNotificationObjectTemplateType.TOAST });
111
112
  }
112
113
  else if (type === SCNotificationTypologyType.USER_ADDED_TO_GROUP ||
113
114
  type === SCNotificationTypologyType.USER_INVITED_TO_JOIN_GROUP ||
114
115
  type === SCNotificationTypologyType.USER_ACCEPTED_TO_JOIN_GROUP ||
115
116
  type === SCNotificationTypologyType.USER_REQUESTED_TO_JOIN_GROUP) {
116
- content = React.createElement(GroupNotification, { notificationObject: n.notification_obj, template: SCNotificationObjectTemplateType.TOAST });
117
+ content = _jsx(GroupNotification, { notificationObject: n.notification_obj, template: SCNotificationObjectTemplateType.TOAST });
117
118
  }
118
119
  }
119
120
  if (n.activity_type && n.activity_type === SCNotificationTypologyType.NOTIFICATION_BANNER) {
120
121
  /** Notification of type: 'notification_banner' */
121
- content = React.createElement(Message, { key: n.notification_obj.id, message: n.notification_obj, elevation: 0, template: SCBroadcastMessageTemplateType.TOAST });
122
+ content = _jsx(Message, { message: n.notification_obj, elevation: 0, template: SCBroadcastMessageTemplateType.TOAST }, n.notification_obj.id);
122
123
  }
123
124
  if (handleNotification && type) {
124
125
  /** Override content */
@@ -171,5 +172,5 @@ export default function UserToastNotifications(inProps) {
171
172
  useEffect(() => {
172
173
  setOptions(Object.assign(Object.assign({}, options), { Components: Object.assign(Object.assign({}, options === null || options === void 0 ? void 0 : options.Components), { notification: CustomSnackMessage }) }));
173
174
  }, [scUserContext.managers.settings.all]);
174
- return React.createElement(Root, null);
175
+ return _jsx(Root, {});
175
176
  }
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { Button, useTheme } from '@mui/material';
3
3
  import { styled } from '@mui/material/styles';
4
4
  import Skeleton from '@mui/material/Skeleton';
@@ -33,6 +33,5 @@ const Root = styled(BaseItem, {
33
33
  */
34
34
  export default function UserSkeleton(props) {
35
35
  const theme = useTheme();
36
- return (React.createElement(Root, Object.assign({ className: classes.root }, props, { image: React.createElement(Skeleton, { animation: "wave", variant: "circular", width: theme.selfcommunity.user.avatar.sizeMedium, height: theme.selfcommunity.user.avatar.sizeMedium }), primary: React.createElement(Skeleton, { animation: "wave", height: 10, width: 120, style: { marginBottom: 10 } }), secondary: React.createElement(Skeleton, { animation: "wave", height: 10, width: 70, style: { marginBottom: 10 } }), actions: React.createElement(Button, { size: "small", variant: "outlined", disabled: true },
37
- React.createElement(Skeleton, { animation: "wave", height: 10, width: 30, style: { marginTop: 5, marginBottom: 5 } })) })));
36
+ return (_jsx(Root, Object.assign({ className: classes.root }, props, { image: _jsx(Skeleton, { animation: "wave", variant: "circular", width: theme.selfcommunity.user.avatar.sizeMedium, height: theme.selfcommunity.user.avatar.sizeMedium }), primary: _jsx(Skeleton, { animation: "wave", height: 10, width: 120, style: { marginBottom: 10 } }), secondary: _jsx(Skeleton, { animation: "wave", height: 10, width: 70, style: { marginBottom: 10 } }), actions: _jsx(Button, Object.assign({ size: "small", variant: "outlined", disabled: true }, { children: _jsx(Skeleton, { animation: "wave", height: 10, width: 30, style: { marginTop: 5, marginBottom: 5 } }) })) })));
38
37
  }
@@ -1,4 +1,5 @@
1
1
  import { __rest } from "tslib";
2
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
3
  import { Avatar, Badge, Button, Chip } from '@mui/material';
3
4
  import { styled } from '@mui/material/styles';
4
5
  import { useThemeProps } from '@mui/system';
@@ -86,27 +87,18 @@ export default function User(inProps) {
86
87
  * @return {JSX.Element}
87
88
  */
88
89
  function renderAuthenticatedActions() {
89
- return (React.createElement(React.Fragment, null,
90
- handleIgnoreAction && (React.createElement(Button, { size: "small", onClick: handleIgnoreAction },
91
- React.createElement(FormattedMessage, { defaultMessage: "ui.user.ignore", id: "ui.user.ignore" }))),
92
- React.createElement(ConnectionUserButton, Object.assign({ user: scUser }, followConnectUserButtonProps))));
90
+ return (_jsxs(React.Fragment, { children: [handleIgnoreAction && (_jsx(Button, Object.assign({ size: "small", onClick: handleIgnoreAction }, { children: _jsx(FormattedMessage, { defaultMessage: "ui.user.ignore", id: "ui.user.ignore" }) }))), _jsx(ConnectionUserButton, Object.assign({ user: scUser }, followConnectUserButtonProps))] }));
93
91
  }
94
92
  /**
95
93
  * Renders user object
96
94
  */
97
95
  if (!scUser) {
98
- return React.createElement(UserSkeleton, { elevation: elevation });
96
+ return _jsx(UserSkeleton, { elevation: elevation });
99
97
  }
100
98
  /**
101
99
  * Renders root object
102
100
  */
103
- return (React.createElement(React.Fragment, null,
104
- React.createElement(Root, Object.assign({ elevation: elevation }, rest, { className: classNames(classes.root, className), ButtonBaseProps: buttonProps !== null && buttonProps !== void 0 ? buttonProps : (scUser.deleted
105
- ? { onClick: () => setOpenAlert(true) }
106
- : { component: Link, to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, scUser) }), image: badgeContent ? (React.createElement(Badge, { overlap: "circular", anchorOrigin: { vertical: 'bottom', horizontal: 'right' }, badgeContent: badgeContent },
107
- React.createElement(Avatar, { alt: scUser.username, src: scUser.avatar, className: classes.avatar }))) : (React.createElement(UserAvatar, { hide: !hasBadge },
108
- React.createElement(Avatar, { alt: scUser.username, src: scUser.avatar, className: classes.avatar }))), primary: (hasBadge && preferences) || isGroupAdmin ? (React.createElement(React.Fragment, null,
109
- scUser.username,
110
- React.createElement(Chip, { component: "span", className: isGroupAdmin ? classes.groupAdminBadgeLabel : classes.staffBadgeLabel, size: "small", label: isGroupAdmin ? (React.createElement(FormattedMessage, { defaultMessage: "ui.user.group.admin", id: "ui.user.group.admin" })) : (preferences[SCPreferences.STAFF_STAFF_BADGE_LABEL]) }))) : (scUser.username), secondary: secondary || (showFollowers ? `${intl.formatMessage(messages.userFollowers, { total: scUser.followers_counter })}` : scUser.description), actions: actions !== null && actions !== void 0 ? actions : renderAuthenticatedActions() })),
111
- openAlert && React.createElement(UserDeletedSnackBar, { open: openAlert, handleClose: () => setOpenAlert(false) })));
101
+ return (_jsxs(_Fragment, { children: [_jsx(Root, Object.assign({ elevation: elevation }, rest, { className: classNames(classes.root, className), ButtonBaseProps: buttonProps !== null && buttonProps !== void 0 ? buttonProps : (scUser.deleted
102
+ ? { onClick: () => setOpenAlert(true) }
103
+ : { component: Link, to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, scUser) }), image: badgeContent ? (_jsx(Badge, Object.assign({ overlap: "circular", anchorOrigin: { vertical: 'bottom', horizontal: 'right' }, badgeContent: badgeContent }, { children: _jsx(Avatar, { alt: scUser.username, src: scUser.avatar, className: classes.avatar }) }))) : (_jsx(UserAvatar, Object.assign({ hide: !hasBadge }, { children: _jsx(Avatar, { alt: scUser.username, src: scUser.avatar, className: classes.avatar }) }))), primary: (hasBadge && preferences) || isGroupAdmin ? (_jsxs(_Fragment, { children: [scUser.username, _jsx(Chip, { component: "span", className: isGroupAdmin ? classes.groupAdminBadgeLabel : classes.staffBadgeLabel, size: "small", label: isGroupAdmin ? (_jsx(FormattedMessage, { defaultMessage: "ui.user.group.admin", id: "ui.user.group.admin" })) : (preferences[SCPreferences.STAFF_STAFF_BADGE_LABEL]) })] })) : (scUser.username), secondary: secondary || (showFollowers ? `${intl.formatMessage(messages.userFollowers, { total: scUser.followers_counter })}` : scUser.description), actions: actions !== null && actions !== void 0 ? actions : renderAuthenticatedActions() })), openAlert && _jsx(UserDeletedSnackBar, { open: openAlert, handleClose: () => setOpenAlert(false) })] }));
112
104
  }