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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (638) hide show
  1. package/lib/cjs/components/AccountChangeMailValidation/AccountChangeMailValidation.js +3 -8
  2. package/lib/cjs/components/AccountDataPortability/AccountDataPortability.js +16 -25
  3. package/lib/cjs/components/AccountDataPortabilityButton/AccountDataPortabilityButton.js +3 -6
  4. package/lib/cjs/components/AccountDelete/AccountDelete.js +16 -23
  5. package/lib/cjs/components/AccountDeleteButton/AccountDeleteButton.js +3 -6
  6. package/lib/cjs/components/AccountRecover/AccountRecover.js +8 -12
  7. package/lib/cjs/components/AccountReset/AccountReset.js +3 -12
  8. package/lib/cjs/components/AccountVerify/AccountVerify.js +3 -8
  9. package/lib/cjs/components/BottomNavigation/BottomNavigation.js +19 -20
  10. package/lib/cjs/components/BroadcastMessages/BroadcastMessages.js +3 -10
  11. package/lib/cjs/components/BroadcastMessages/Message.js +6 -23
  12. package/lib/cjs/components/BroadcastMessages/Skeleton.js +3 -15
  13. package/lib/cjs/components/Categories/Categories.js +5 -10
  14. package/lib/cjs/components/Categories/Skeleton.js +2 -4
  15. package/lib/cjs/components/CategoriesPopularWidget/CategoriesPopularWidget.js +5 -17
  16. package/lib/cjs/components/CategoriesPopularWidget/Skeleton.js +2 -2
  17. package/lib/cjs/components/CategoriesSuggestionWidget/CategoriesSuggestionWidget.js +5 -17
  18. package/lib/cjs/components/CategoriesSuggestionWidget/Skeleton.js +2 -5
  19. package/lib/cjs/components/Category/Category.js +4 -4
  20. package/lib/cjs/components/Category/Skeleton.js +2 -3
  21. package/lib/cjs/components/CategoryAutocomplete/CategoryAutocomplete.js +6 -9
  22. package/lib/cjs/components/CategoryFollowButton/CategoryFollowButton.js +3 -2
  23. package/lib/cjs/components/CategoryFollowersButton/CategoryFollowersButton.js +3 -8
  24. package/lib/cjs/components/CategoryHeader/CategoryHeader.js +3 -12
  25. package/lib/cjs/components/CategoryHeader/Skeleton.js +2 -7
  26. package/lib/cjs/components/CategoryTrendingFeedWidget/CategoryTrendingFeedWidget.js +7 -19
  27. package/lib/cjs/components/CategoryTrendingFeedWidget/Skeleton.js +2 -4
  28. package/lib/cjs/components/CategoryTrendingUsersWidget/CategoryTrendingUsersWidget.js +5 -17
  29. package/lib/cjs/components/CategoryTrendingUsersWidget/Skeleton.js +2 -5
  30. package/lib/cjs/components/ChangeCover/ChangeCover.js +18 -41
  31. package/lib/cjs/components/ChangeGroupCover/ChangeGroupCover.js +4 -6
  32. package/lib/cjs/components/ChangeGroupPicture/ChangeGroupPicture.js +4 -6
  33. package/lib/cjs/components/ChangePicture/ChangePicture.js +3 -4
  34. package/lib/cjs/components/ChangePicture/ChangePictureDialog/ChangePictureDialog.js +10 -22
  35. package/lib/cjs/components/CommentObject/CommentObject.js +11 -37
  36. package/lib/cjs/components/CommentObject/Skeleton.js +2 -6
  37. package/lib/cjs/components/CommentObjectReply/CommentObjectReply.js +3 -12
  38. package/lib/cjs/components/CommentsFeedObject/CommentsFeedObject.js +8 -14
  39. package/lib/cjs/components/CommentsFeedObject/Skeleton.js +2 -3
  40. package/lib/cjs/components/CommentsObject/CommentsObject.js +27 -48
  41. package/lib/cjs/components/CommentsObject/Skeleton.js +2 -2
  42. package/lib/cjs/components/Composer/Attributes/Attributes.js +5 -8
  43. package/lib/cjs/components/Composer/Composer.js +24 -46
  44. package/lib/cjs/components/Composer/Content/ContentDiscussion/ContentDiscussion.js +8 -11
  45. package/lib/cjs/components/Composer/Content/ContentPoll/ContentPoll.js +9 -28
  46. package/lib/cjs/components/Composer/Content/ContentPost/ContentPost.js +3 -5
  47. package/lib/cjs/components/Composer/Layer/AudienceLayer/AudienceLayer.js +13 -31
  48. package/lib/cjs/components/Composer/Layer/CategoryLayer/CategoryLayer.js +2 -10
  49. package/lib/cjs/components/Composer/Layer/CloseLayer/CloseLayer.js +2 -16
  50. package/lib/cjs/components/Composer/Layer/LocationLayer/LocationLayer.js +2 -10
  51. package/lib/cjs/components/Composer/Skeleton.js +2 -3
  52. package/lib/cjs/components/Composer/TypeSwitchButtonGroup/TypeSwitchButtonGroup.js +3 -8
  53. package/lib/cjs/components/ComposerIconButton/ComposerIconButton.js +5 -8
  54. package/lib/cjs/components/ConnectionUserButton/ConnectionUserButton.js +2 -1
  55. package/lib/cjs/components/ConsentSolution/ConsentSolution.js +9 -58
  56. package/lib/cjs/components/ConsentSolution/Skeleton.js +3 -16
  57. package/lib/cjs/components/ConsentSolutionButton/ConsentSolutionButton.js +2 -4
  58. package/lib/cjs/components/CreateEventButton/CreateEventButton.js +2 -3
  59. package/lib/cjs/components/CreateGroupButton/CreateGroupButton.js +3 -4
  60. package/lib/cjs/components/CustomAdv/CustomAdv.js +5 -6
  61. package/lib/cjs/components/CustomAdv/Skeleton.js +2 -3
  62. package/lib/cjs/components/EditEventButton/EditEventButton.js +2 -3
  63. package/lib/cjs/components/EditGroupButton/EditGroupButton.js +2 -3
  64. package/lib/cjs/components/Editor/Editor.js +3 -21
  65. package/lib/cjs/components/Editor/Skeleton.js +2 -3
  66. package/lib/cjs/components/Editor/nodes/ImageNode.js +5 -6
  67. package/lib/cjs/components/Editor/plugins/AutoLinkPlugin.js +2 -11
  68. package/lib/cjs/components/Editor/plugins/EmojiPlugin.js +12 -15
  69. package/lib/cjs/components/Editor/plugins/FloatingLinkPlugin.js +7 -13
  70. package/lib/cjs/components/Editor/plugins/HashtagPlugin.js +11 -11
  71. package/lib/cjs/components/Editor/plugins/ImagePlugin.js +9 -10
  72. package/lib/cjs/components/Editor/plugins/LexicalRichTextPlugin.js +2 -12
  73. package/lib/cjs/components/Editor/plugins/MentionsPlugin.js +11 -16
  74. package/lib/cjs/components/Editor/plugins/OnChangePlugin.js +2 -3
  75. package/lib/cjs/components/Editor/plugins/ToolbarPlugin.js +9 -40
  76. package/lib/cjs/components/Editor/shared/useDecorators.js +2 -4
  77. package/lib/cjs/components/Event/Event.js +3 -10
  78. package/lib/cjs/components/Event/Skeleton.js +2 -8
  79. package/lib/cjs/components/EventForm/EventAddress.js +6 -14
  80. package/lib/cjs/components/EventForm/EventForm.js +46 -86
  81. package/lib/cjs/components/EventForm/UploadEventCover.js +4 -6
  82. package/lib/cjs/components/EventHeader/EventHeader.js +36 -52
  83. package/lib/cjs/components/EventHeader/Skeleton.js +2 -12
  84. package/lib/cjs/components/EventInfoWidget/EventInfoWidget.js +11 -13
  85. package/lib/cjs/components/EventInfoWidget/Skeleton.d.ts +1 -0
  86. package/lib/cjs/components/EventInfoWidget/Skeleton.js +20 -0
  87. package/lib/cjs/components/EventInfoWidget/index.d.ts +2 -1
  88. package/lib/cjs/components/EventInfoWidget/index.js +3 -1
  89. package/lib/cjs/components/EventInviteButton/EventInviteButton.js +4 -24
  90. package/lib/cjs/components/EventLocationWidget/EventLocationWidget.js +8 -16
  91. package/lib/cjs/components/EventLocationWidget/Skeleton.js +2 -8
  92. package/lib/cjs/components/EventPartecipantsButton/EventPartecipantsButton.d.ts +46 -0
  93. package/lib/cjs/components/EventPartecipantsButton/EventPartecipantsButton.js +130 -0
  94. package/lib/cjs/components/EventPartecipantsButton/index.d.ts +3 -0
  95. package/lib/cjs/components/EventPartecipantsButton/index.js +5 -0
  96. package/lib/cjs/components/EventSubscribeButton/EventSubscribeButton.js +12 -15
  97. package/lib/cjs/components/Events/Events.js +25 -53
  98. package/lib/cjs/components/Events/Skeleton.js +2 -4
  99. package/lib/cjs/components/Feed/Feed.js +11 -29
  100. package/lib/cjs/components/Feed/Skeleton.js +3 -12
  101. package/lib/cjs/components/FeedObject/Actions/Actions.js +2 -8
  102. package/lib/cjs/components/FeedObject/Actions/Comment/Comment.js +5 -11
  103. package/lib/cjs/components/FeedObject/Actions/Follow/Follow.js +6 -6
  104. package/lib/cjs/components/FeedObject/Actions/Share/Share.js +29 -60
  105. package/lib/cjs/components/FeedObject/Actions/Share/SharesDialog/SharesDialog.js +3 -5
  106. package/lib/cjs/components/FeedObject/Actions/Vote/Vote.js +2 -5
  107. package/lib/cjs/components/FeedObject/Activities/Activities.js +9 -10
  108. package/lib/cjs/components/FeedObject/Activities/ActivitiesMenu/ActivitiesMenu.js +23 -37
  109. package/lib/cjs/components/FeedObject/Activities/RelevantActivities/CommentActivity/CommentActivity.js +18 -20
  110. package/lib/cjs/components/FeedObject/Activities/RelevantActivities/FollowActivity/FollowActivity.js +5 -7
  111. package/lib/cjs/components/FeedObject/Activities/RelevantActivities/PollVoteActivity/PollVoteActivity.js +5 -7
  112. package/lib/cjs/components/FeedObject/Activities/RelevantActivities/RelevantActivities.js +7 -12
  113. package/lib/cjs/components/FeedObject/Activities/RelevantActivities/VoteUpActivity/VoteUpActivity.js +5 -7
  114. package/lib/cjs/components/FeedObject/Contributors/Contributors.js +3 -13
  115. package/lib/cjs/components/FeedObject/Contributors/Skeleton.js +2 -6
  116. package/lib/cjs/components/FeedObject/FeedObject.js +23 -110
  117. package/lib/cjs/components/FeedObject/Poll/Choice/Choice.js +3 -8
  118. package/lib/cjs/components/FeedObject/Poll/Poll.js +5 -21
  119. package/lib/cjs/components/FeedObject/Skeleton.js +4 -16
  120. package/lib/cjs/components/FeedObjectMediaPreview/FeedObjectMediaPreview.js +5 -6
  121. package/lib/cjs/components/FeedUpdatesWidget/FeedUpdatesWidget.js +5 -8
  122. package/lib/cjs/components/FeedUpdatesWidget/Skeleton.js +2 -2
  123. package/lib/cjs/components/FollowUserButton/FollowUserButton.js +5 -4
  124. package/lib/cjs/components/Footer/Footer.js +4 -7
  125. package/lib/cjs/components/Footer/Skeleton.js +2 -4
  126. package/lib/cjs/components/FriendshipUserButton/FriendshipUserButton.js +9 -8
  127. package/lib/cjs/components/Group/Group.js +7 -13
  128. package/lib/cjs/components/Group/Skeleton.js +2 -3
  129. package/lib/cjs/components/GroupAutocomplete/GroupAutocomplete.js +5 -8
  130. package/lib/cjs/components/GroupForm/GroupForm.js +36 -75
  131. package/lib/cjs/components/GroupHeader/GroupHeader.js +6 -34
  132. package/lib/cjs/components/GroupHeader/Skeleton.js +2 -12
  133. package/lib/cjs/components/GroupInfoWidget/GroupInfoWidget.js +24 -54
  134. package/lib/cjs/components/GroupInfoWidget/Skeleton.js +2 -3
  135. package/lib/cjs/components/GroupInviteButton/GroupInviteButton.js +4 -24
  136. package/lib/cjs/components/GroupInvitedWidget/GroupInvitedWidget.js +5 -18
  137. package/lib/cjs/components/GroupInvitedWidget/Skeleton.js +2 -3
  138. package/lib/cjs/components/GroupMembersButton/GroupMembersButton.js +3 -8
  139. package/lib/cjs/components/GroupMembersWidget/GroupMembersWidget.js +11 -28
  140. package/lib/cjs/components/GroupMembersWidget/Skeleton.js +2 -3
  141. package/lib/cjs/components/GroupRequestsWidget/GroupRequestsWidget.js +5 -16
  142. package/lib/cjs/components/GroupRequestsWidget/Skeleton.js +2 -3
  143. package/lib/cjs/components/GroupSettingsIconButton/GroupSettingsIconButton.js +13 -21
  144. package/lib/cjs/components/GroupSubscribeButton/GroupSubscribeButton.js +8 -7
  145. package/lib/cjs/components/Groups/Groups.js +10 -23
  146. package/lib/cjs/components/Groups/Skeleton.js +2 -4
  147. package/lib/cjs/components/Incubator/Incubator.js +8 -28
  148. package/lib/cjs/components/Incubator/Skeleton.js +2 -20
  149. package/lib/cjs/components/IncubatorDetail/IncubatorDetail.js +4 -46
  150. package/lib/cjs/components/IncubatorListWidget/CreateIncubatorDialog/CreateIncubatorDialog.js +5 -12
  151. package/lib/cjs/components/IncubatorListWidget/IncubatorListWidget.js +8 -32
  152. package/lib/cjs/components/IncubatorListWidget/Skeleton.js +2 -4
  153. package/lib/cjs/components/IncubatorSubscribeButton/IncubatorSubscribeButton.js +3 -2
  154. package/lib/cjs/components/IncubatorSuggestionWidget/IncubatorSuggestionWidget.js +5 -18
  155. package/lib/cjs/components/IncubatorSuggestionWidget/Skeleton.js +2 -4
  156. package/lib/cjs/components/InlineComposerWidget/InlineComposerWidget.js +5 -11
  157. package/lib/cjs/components/InlineComposerWidget/Skeleton.js +2 -7
  158. package/lib/cjs/components/LocationAutocomplete/LocationAutocomplete.js +6 -7
  159. package/lib/cjs/components/LoyaltyProgramWidget/LoyaltyProgramWidget.js +5 -13
  160. package/lib/cjs/components/LoyaltyProgramWidget/Skeleton.js +2 -11
  161. package/lib/cjs/components/MyEventsWidget/MyEventsWidget.d.ts +19 -0
  162. package/lib/cjs/components/MyEventsWidget/MyEventsWidget.js +123 -0
  163. package/lib/cjs/components/MyEventsWidget/Skeleton.d.ts +1 -0
  164. package/lib/cjs/components/MyEventsWidget/Skeleton.js +48 -0
  165. package/lib/cjs/components/MyEventsWidget/constants.d.ts +1 -0
  166. package/lib/cjs/components/MyEventsWidget/constants.js +4 -0
  167. package/lib/cjs/components/MyEventsWidget/index.d.ts +4 -0
  168. package/lib/cjs/components/MyEventsWidget/index.js +8 -0
  169. package/lib/cjs/components/NavigationMenuIconButton/DefaultDrawerContent.js +3 -11
  170. package/lib/cjs/components/NavigationMenuIconButton/DefaultHeaderContent.js +3 -4
  171. package/lib/cjs/components/NavigationMenuIconButton/NavigationMenuIconButton.js +4 -13
  172. package/lib/cjs/components/NavigationSettingsIconButton/NavigationSettingsIconButton.js +35 -75
  173. package/lib/cjs/components/NavigationToolbar/NavigationToolbar.js +14 -51
  174. package/lib/cjs/components/NavigationToolbar/NotificationMenu.js +2 -5
  175. package/lib/cjs/components/NavigationToolbar/Skeleton.js +2 -5
  176. package/lib/cjs/components/NavigationToolbarMobile/NavigationToolbarMobile.js +11 -27
  177. package/lib/cjs/components/NavigationToolbarMobile/Skeleton.js +2 -3
  178. package/lib/cjs/components/Notification/CollapsedFor/CollapsedFor.js +2 -15
  179. package/lib/cjs/components/Notification/Comment/Comment.js +11 -27
  180. package/lib/cjs/components/Notification/Contribution/Contribution.js +11 -28
  181. package/lib/cjs/components/Notification/ContributionFollow/ContributionFollow.js +4 -19
  182. package/lib/cjs/components/Notification/DeletedFor/DeletedFor.js +2 -17
  183. package/lib/cjs/components/Notification/Group/Group.js +17 -30
  184. package/lib/cjs/components/Notification/IncubatorApproved/IncubatorApproved.js +8 -16
  185. package/lib/cjs/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.js +2 -9
  186. package/lib/cjs/components/Notification/KindlyNoticeFor/KindlyNoticeFor.js +4 -16
  187. package/lib/cjs/components/Notification/Mention/Mention.js +7 -22
  188. package/lib/cjs/components/Notification/Notification.js +37 -57
  189. package/lib/cjs/components/Notification/PrivateMessage/PrivateMessage.js +24 -47
  190. package/lib/cjs/components/Notification/Skeleton.js +3 -7
  191. package/lib/cjs/components/Notification/UndeletedFor/UndeletedFor.js +2 -16
  192. package/lib/cjs/components/Notification/UserBlocked/UserBlocked.js +5 -7
  193. package/lib/cjs/components/Notification/UserConnection/UserConnection.js +5 -15
  194. package/lib/cjs/components/Notification/UserFollow/UserFollow.js +5 -15
  195. package/lib/cjs/components/Notification/VoteUp/VoteUp.js +6 -19
  196. package/lib/cjs/components/PlatformWidget/PlatformWidget.js +20 -53
  197. package/lib/cjs/components/PlatformWidget/Skeleton.js +2 -3
  198. package/lib/cjs/components/PollSuggestionWidget/PollSnippet/PollSnippet.js +3 -12
  199. package/lib/cjs/components/PollSuggestionWidget/PollSnippet/Skeleton.js +2 -2
  200. package/lib/cjs/components/PollSuggestionWidget/PollSuggestionWidget.js +5 -17
  201. package/lib/cjs/components/PollSuggestionWidget/Skeleton.js +2 -6
  202. package/lib/cjs/components/PrivateMessageComponent/PrivateMessageComponent.js +6 -9
  203. package/lib/cjs/components/PrivateMessageComponent/Skeleton.js +2 -6
  204. package/lib/cjs/components/PrivateMessageEditor/MessageMediaUploader/index.js +16 -37
  205. package/lib/cjs/components/PrivateMessageEditor/PrivateMessageEditor.js +9 -18
  206. package/lib/cjs/components/PrivateMessageEditor/Skeleton.js +2 -3
  207. package/lib/cjs/components/PrivateMessageSettingsIconButton/PrivateMessageSettingsIconButton.js +9 -31
  208. package/lib/cjs/components/PrivateMessageSnippetItem/PrivateMessageSnippetItem.js +12 -19
  209. package/lib/cjs/components/PrivateMessageSnippetItem/Skeleton.js +2 -5
  210. package/lib/cjs/components/PrivateMessageSnippets/PrivateMessageSnippets.js +8 -16
  211. package/lib/cjs/components/PrivateMessageSnippets/Skeleton.js +2 -8
  212. package/lib/cjs/components/PrivateMessageThread/PrivateMessageThread.js +14 -35
  213. package/lib/cjs/components/PrivateMessageThread/Skeleton.js +2 -9
  214. package/lib/cjs/components/PrivateMessageThreadItem/PrivateMessageThreadItem.js +15 -33
  215. package/lib/cjs/components/PrivateMessageThreadItem/Skeleton.js +2 -3
  216. package/lib/cjs/components/RelatedFeedObjectsWidget/RelatedFeedObjectsWidget.js +6 -21
  217. package/lib/cjs/components/RelatedFeedObjectsWidget/Skeleton.js +2 -3
  218. package/lib/cjs/components/SearchAutocomplete/SearchAutocomplete.js +5 -8
  219. package/lib/cjs/components/SearchDialog/SearchDialog.js +2 -4
  220. package/lib/cjs/components/Skeleton/AvatarGroupSkeleton.js +2 -3
  221. package/lib/cjs/components/Skeleton/GenericSkeleton.js +2 -6
  222. package/lib/cjs/components/SnippetNotifications/Skeleton.js +3 -3
  223. package/lib/cjs/components/SnippetNotifications/SnippetNotifications.js +23 -28
  224. package/lib/cjs/components/ToastNotifications/Skeleton.js +2 -3
  225. package/lib/cjs/components/ToastNotifications/ToastNotifications.js +16 -15
  226. package/lib/cjs/components/User/Skeleton.js +2 -3
  227. package/lib/cjs/components/User/User.js +7 -15
  228. package/lib/cjs/components/UserActionIconButton/UserActionIconButton.js +16 -31
  229. package/lib/cjs/components/UserConnectionsRequestsSentWidget/Skeleton.js +2 -3
  230. package/lib/cjs/components/UserConnectionsRequestsSentWidget/UserConnectionsRequestsSentWidget.js +5 -17
  231. package/lib/cjs/components/UserConnectionsRequestsWidget/Skeleton.js +2 -3
  232. package/lib/cjs/components/UserConnectionsRequestsWidget/UserConnectionsRequestsWidget.js +5 -17
  233. package/lib/cjs/components/UserConnectionsWidget/Skeleton.js +2 -3
  234. package/lib/cjs/components/UserConnectionsWidget/UserConnectionsWidget.js +5 -17
  235. package/lib/cjs/components/UserCounters/UserCounters.js +19 -28
  236. package/lib/cjs/components/UserFollowedCategoriesWidget/Skeleton.js +2 -2
  237. package/lib/cjs/components/UserFollowedCategoriesWidget/UserFollowedCategoriesWidget.js +5 -20
  238. package/lib/cjs/components/UserFollowedUsersWidget/Skeleton.js +2 -3
  239. package/lib/cjs/components/UserFollowedUsersWidget/UserFollowedUsersWidget.js +5 -17
  240. package/lib/cjs/components/UserFollowersWidget/Skeleton.js +2 -3
  241. package/lib/cjs/components/UserFollowersWidget/UserFollowersWidget.js +5 -17
  242. package/lib/cjs/components/UserInfo/Skeleton.js +2 -6
  243. package/lib/cjs/components/UserInfo/UserInfo.js +13 -14
  244. package/lib/cjs/components/UserInfoDialog/UserInfoDialog.js +3 -5
  245. package/lib/cjs/components/UserProfileBlocked/UserProfileBlocked.js +4 -11
  246. package/lib/cjs/components/UserProfileEdit/Section/Account.js +3 -13
  247. package/lib/cjs/components/UserProfileEdit/Section/AccountCredentials.js +15 -37
  248. package/lib/cjs/components/UserProfileEdit/Section/PublicInfo.js +15 -25
  249. package/lib/cjs/components/UserProfileEdit/Section/Settings.js +7 -37
  250. package/lib/cjs/components/UserProfileEdit/Section/SettingsSkeleton.js +2 -5
  251. package/lib/cjs/components/UserProfileEdit/Skeleton.js +2 -6
  252. package/lib/cjs/components/UserProfileEdit/UserProfileEdit.js +2 -9
  253. package/lib/cjs/components/UserProfileHeader/Skeleton.js +2 -13
  254. package/lib/cjs/components/UserProfileHeader/UserProfileHeader.js +4 -21
  255. package/lib/cjs/components/UserSocialAssociation/UserSocialAssociation.js +2 -16
  256. package/lib/cjs/components/UserSubscribedGroupsWidget/Skeleton.js +2 -6
  257. package/lib/cjs/components/UserSubscribedGroupsWidget/UserSubscribedGroupsWidget.js +7 -22
  258. package/lib/cjs/components/UserSuggestionWidget/Skeleton.js +2 -5
  259. package/lib/cjs/components/UserSuggestionWidget/UserSuggestionWidget.js +5 -17
  260. package/lib/cjs/components/VoteAudienceButton/VoteAudienceButton.js +9 -23
  261. package/lib/cjs/components/VoteButton/VoteButton.js +9 -15
  262. package/lib/cjs/components/Widget/index.js +3 -2
  263. package/lib/cjs/index.d.ts +3 -1
  264. package/lib/cjs/index.js +9 -4
  265. package/lib/cjs/shared/AutoPlayer/index.js +6 -7
  266. package/lib/cjs/shared/BaseDialog/BaseDialog.js +3 -10
  267. package/lib/cjs/shared/BaseItem/BaseItem.js +4 -10
  268. package/lib/cjs/shared/BaseItemButton/BaseItemButton.js +4 -10
  269. package/lib/cjs/shared/Bullet/index.js +2 -1
  270. package/lib/cjs/shared/Calendar/index.js +6 -3
  271. package/lib/cjs/shared/CentralProgress/index.js +3 -4
  272. package/lib/cjs/shared/ConfirmDialog/ConfirmDialog.js +2 -9
  273. package/lib/cjs/shared/ConsentSolutionSwitch/index.js +5 -8
  274. package/lib/cjs/shared/ContributionActionsMenu/index.js +22 -85
  275. package/lib/cjs/shared/CustomSnackMessage/index.js +3 -7
  276. package/lib/cjs/shared/DateTimeAgo/index.js +2 -6
  277. package/lib/cjs/shared/EmailTextField/index.js +3 -2
  278. package/lib/cjs/shared/EmojiPicker/EmojiPicker.js +2 -2
  279. package/lib/cjs/shared/EventInfoDetails/index.js +5 -22
  280. package/lib/cjs/shared/HiddenPlaceholder/index.js +2 -3
  281. package/lib/cjs/shared/InfiniteScroll/index.js +8 -19
  282. package/lib/cjs/shared/InfiniteScroll/stories/InfiniteScrollWithHeight.js +3 -8
  283. package/lib/cjs/shared/InfiniteScroll/stories/PullDownToRefreshInfScroll.js +3 -7
  284. package/lib/cjs/shared/InfiniteScroll/stories/ScrollableTargetFixedInfScroll.js +13 -18
  285. package/lib/cjs/shared/InfiniteScroll/stories/ScrollableTargetInfScroll.js +3 -8
  286. package/lib/cjs/shared/InfiniteScroll/stories/ScrolleableTop.js +6 -11
  287. package/lib/cjs/shared/InfiniteScroll/stories/WindowInfiniteScrollComponent.js +3 -6
  288. package/lib/cjs/shared/LanguageSwitcher/index.js +3 -5
  289. package/lib/cjs/shared/Lightbox/Lightbox.js +4 -3
  290. package/lib/cjs/shared/MarkRead/MarkRead.js +3 -3
  291. package/lib/cjs/shared/Media/File/DisplayComponent.js +13 -42
  292. package/lib/cjs/shared/Media/File/Lightbox/index.js +5 -5
  293. package/lib/cjs/shared/Media/File/PreviewComponent.js +5 -9
  294. package/lib/cjs/shared/Media/File/TriggerButton.js +14 -25
  295. package/lib/cjs/shared/Media/File/asUploadButton.js +3 -2
  296. package/lib/cjs/shared/Media/Link/DisplayComponent.js +8 -15
  297. package/lib/cjs/shared/Media/Link/LayerComponent.js +2 -11
  298. package/lib/cjs/shared/Media/Link/PreviewComponent.js +2 -4
  299. package/lib/cjs/shared/Media/Link/TriggerButton.js +2 -3
  300. package/lib/cjs/shared/Media/Link/UrlTextField/index.js +5 -7
  301. package/lib/cjs/shared/Media/Share/DisplayComponent.js +3 -3
  302. package/lib/cjs/shared/MetadataField/MetadataField.js +8 -7
  303. package/lib/cjs/shared/NewChip/NewChip.js +2 -2
  304. package/lib/cjs/shared/NotificationItem/NotificationItem.js +3 -12
  305. package/lib/cjs/shared/PasswordTextField/index.js +4 -6
  306. package/lib/cjs/shared/PhoneTextField/index.js +3 -2
  307. package/lib/cjs/shared/ScrollContainer/index.js +2 -2
  308. package/lib/cjs/shared/StickyBox/index.js +6 -5
  309. package/lib/cjs/shared/TagChip/index.js +2 -2
  310. package/lib/cjs/shared/Tags/index.js +11 -23
  311. package/lib/cjs/shared/UrlTextField/index.js +3 -2
  312. package/lib/cjs/shared/UserAvatar/UserAvatar.js +3 -2
  313. package/lib/cjs/shared/UserDeletedSnackBar/UserDeletedSnackBar.js +3 -5
  314. package/lib/cjs/shared/UsernameTextField/index.js +3 -2
  315. package/lib/cjs/shared/VirtualizedScroller/VirtualScrollerChild.js +2 -2
  316. package/lib/cjs/shared/VirtualizedScroller/VirtualizedScroller.js +3 -2
  317. package/lib/cjs/utils/contribution.js +3 -4
  318. package/lib/cjs/utils/errors.js +3 -4
  319. package/lib/esm/components/AccountChangeMailValidation/AccountChangeMailValidation.js +3 -8
  320. package/lib/esm/components/AccountDataPortability/AccountDataPortability.js +16 -25
  321. package/lib/esm/components/AccountDataPortabilityButton/AccountDataPortabilityButton.js +3 -6
  322. package/lib/esm/components/AccountDelete/AccountDelete.js +16 -23
  323. package/lib/esm/components/AccountDeleteButton/AccountDeleteButton.js +3 -6
  324. package/lib/esm/components/AccountRecover/AccountRecover.js +8 -12
  325. package/lib/esm/components/AccountReset/AccountReset.js +3 -12
  326. package/lib/esm/components/AccountVerify/AccountVerify.js +3 -8
  327. package/lib/esm/components/BottomNavigation/BottomNavigation.js +19 -20
  328. package/lib/esm/components/BroadcastMessages/BroadcastMessages.js +3 -10
  329. package/lib/esm/components/BroadcastMessages/Message.js +6 -23
  330. package/lib/esm/components/BroadcastMessages/Skeleton.js +3 -15
  331. package/lib/esm/components/Categories/Categories.js +5 -10
  332. package/lib/esm/components/Categories/Skeleton.js +2 -4
  333. package/lib/esm/components/CategoriesPopularWidget/CategoriesPopularWidget.js +5 -17
  334. package/lib/esm/components/CategoriesPopularWidget/Skeleton.js +2 -2
  335. package/lib/esm/components/CategoriesSuggestionWidget/CategoriesSuggestionWidget.js +5 -17
  336. package/lib/esm/components/CategoriesSuggestionWidget/Skeleton.js +2 -5
  337. package/lib/esm/components/Category/Category.js +4 -4
  338. package/lib/esm/components/Category/Skeleton.js +2 -3
  339. package/lib/esm/components/CategoryAutocomplete/CategoryAutocomplete.js +6 -9
  340. package/lib/esm/components/CategoryFollowButton/CategoryFollowButton.js +3 -2
  341. package/lib/esm/components/CategoryFollowersButton/CategoryFollowersButton.js +3 -8
  342. package/lib/esm/components/CategoryHeader/CategoryHeader.js +3 -12
  343. package/lib/esm/components/CategoryHeader/Skeleton.js +2 -7
  344. package/lib/esm/components/CategoryTrendingFeedWidget/CategoryTrendingFeedWidget.js +7 -19
  345. package/lib/esm/components/CategoryTrendingFeedWidget/Skeleton.js +2 -4
  346. package/lib/esm/components/CategoryTrendingUsersWidget/CategoryTrendingUsersWidget.js +5 -17
  347. package/lib/esm/components/CategoryTrendingUsersWidget/Skeleton.js +2 -5
  348. package/lib/esm/components/ChangeCover/ChangeCover.js +18 -41
  349. package/lib/esm/components/ChangeGroupCover/ChangeGroupCover.js +4 -6
  350. package/lib/esm/components/ChangeGroupPicture/ChangeGroupPicture.js +4 -6
  351. package/lib/esm/components/ChangePicture/ChangePicture.js +3 -4
  352. package/lib/esm/components/ChangePicture/ChangePictureDialog/ChangePictureDialog.js +10 -22
  353. package/lib/esm/components/CommentObject/CommentObject.js +11 -37
  354. package/lib/esm/components/CommentObject/Skeleton.js +2 -6
  355. package/lib/esm/components/CommentObjectReply/CommentObjectReply.js +3 -12
  356. package/lib/esm/components/CommentsFeedObject/CommentsFeedObject.js +8 -14
  357. package/lib/esm/components/CommentsFeedObject/Skeleton.js +2 -2
  358. package/lib/esm/components/CommentsObject/CommentsObject.js +27 -48
  359. package/lib/esm/components/CommentsObject/Skeleton.js +2 -2
  360. package/lib/esm/components/Composer/Attributes/Attributes.js +5 -8
  361. package/lib/esm/components/Composer/Composer.js +24 -46
  362. package/lib/esm/components/Composer/Content/ContentDiscussion/ContentDiscussion.js +8 -11
  363. package/lib/esm/components/Composer/Content/ContentPoll/ContentPoll.js +9 -28
  364. package/lib/esm/components/Composer/Content/ContentPost/ContentPost.js +3 -5
  365. package/lib/esm/components/Composer/Layer/AudienceLayer/AudienceLayer.js +13 -31
  366. package/lib/esm/components/Composer/Layer/CategoryLayer/CategoryLayer.js +2 -10
  367. package/lib/esm/components/Composer/Layer/CloseLayer/CloseLayer.js +2 -16
  368. package/lib/esm/components/Composer/Layer/LocationLayer/LocationLayer.js +2 -10
  369. package/lib/esm/components/Composer/Skeleton.js +2 -3
  370. package/lib/esm/components/Composer/TypeSwitchButtonGroup/TypeSwitchButtonGroup.js +3 -8
  371. package/lib/esm/components/ComposerIconButton/ComposerIconButton.js +5 -8
  372. package/lib/esm/components/ConnectionUserButton/ConnectionUserButton.js +2 -1
  373. package/lib/esm/components/ConsentSolution/ConsentSolution.js +9 -58
  374. package/lib/esm/components/ConsentSolution/Skeleton.js +3 -16
  375. package/lib/esm/components/ConsentSolutionButton/ConsentSolutionButton.js +2 -4
  376. package/lib/esm/components/CreateEventButton/CreateEventButton.js +2 -3
  377. package/lib/esm/components/CreateGroupButton/CreateGroupButton.js +3 -4
  378. package/lib/esm/components/CustomAdv/CustomAdv.js +5 -6
  379. package/lib/esm/components/CustomAdv/Skeleton.js +2 -2
  380. package/lib/esm/components/EditEventButton/EditEventButton.js +2 -3
  381. package/lib/esm/components/EditGroupButton/EditGroupButton.js +2 -3
  382. package/lib/esm/components/Editor/Editor.js +3 -21
  383. package/lib/esm/components/Editor/Skeleton.js +2 -2
  384. package/lib/esm/components/Editor/nodes/ImageNode.js +5 -5
  385. package/lib/esm/components/Editor/plugins/AutoLinkPlugin.js +2 -10
  386. package/lib/esm/components/Editor/plugins/EmojiPlugin.js +12 -15
  387. package/lib/esm/components/Editor/plugins/FloatingLinkPlugin.js +7 -13
  388. package/lib/esm/components/Editor/plugins/HashtagPlugin.js +11 -11
  389. package/lib/esm/components/Editor/plugins/ImagePlugin.js +9 -10
  390. package/lib/esm/components/Editor/plugins/LexicalRichTextPlugin.js +2 -12
  391. package/lib/esm/components/Editor/plugins/MentionsPlugin.js +11 -16
  392. package/lib/esm/components/Editor/plugins/OnChangePlugin.js +2 -2
  393. package/lib/esm/components/Editor/plugins/ToolbarPlugin.js +9 -40
  394. package/lib/esm/components/Editor/shared/useDecorators.js +2 -3
  395. package/lib/esm/components/Event/Event.js +3 -10
  396. package/lib/esm/components/Event/Skeleton.js +2 -8
  397. package/lib/esm/components/EventForm/EventAddress.js +6 -14
  398. package/lib/esm/components/EventForm/EventForm.js +46 -86
  399. package/lib/esm/components/EventForm/UploadEventCover.js +4 -6
  400. package/lib/esm/components/EventHeader/EventHeader.js +36 -52
  401. package/lib/esm/components/EventHeader/Skeleton.js +2 -12
  402. package/lib/esm/components/EventInfoWidget/EventInfoWidget.js +11 -13
  403. package/lib/esm/components/EventInfoWidget/Skeleton.d.ts +1 -0
  404. package/lib/esm/components/EventInfoWidget/Skeleton.js +16 -0
  405. package/lib/esm/components/EventInfoWidget/index.d.ts +2 -1
  406. package/lib/esm/components/EventInfoWidget/index.js +2 -1
  407. package/lib/esm/components/EventInviteButton/EventInviteButton.js +4 -24
  408. package/lib/esm/components/EventLocationWidget/EventLocationWidget.js +8 -16
  409. package/lib/esm/components/EventLocationWidget/Skeleton.js +2 -8
  410. package/lib/esm/components/EventPartecipantsButton/EventPartecipantsButton.d.ts +46 -0
  411. package/lib/esm/components/EventPartecipantsButton/EventPartecipantsButton.js +127 -0
  412. package/lib/esm/components/EventPartecipantsButton/index.d.ts +3 -0
  413. package/lib/esm/components/EventPartecipantsButton/index.js +2 -0
  414. package/lib/esm/components/EventSubscribeButton/EventSubscribeButton.js +12 -15
  415. package/lib/esm/components/Events/Events.js +25 -53
  416. package/lib/esm/components/Events/Skeleton.js +2 -4
  417. package/lib/esm/components/Feed/Feed.js +11 -29
  418. package/lib/esm/components/Feed/Skeleton.js +3 -12
  419. package/lib/esm/components/FeedObject/Actions/Actions.js +2 -8
  420. package/lib/esm/components/FeedObject/Actions/Comment/Comment.js +5 -11
  421. package/lib/esm/components/FeedObject/Actions/Follow/Follow.js +6 -6
  422. package/lib/esm/components/FeedObject/Actions/Share/Share.js +29 -60
  423. package/lib/esm/components/FeedObject/Actions/Share/SharesDialog/SharesDialog.js +3 -5
  424. package/lib/esm/components/FeedObject/Actions/Vote/Vote.js +2 -5
  425. package/lib/esm/components/FeedObject/Activities/Activities.js +9 -10
  426. package/lib/esm/components/FeedObject/Activities/ActivitiesMenu/ActivitiesMenu.js +23 -37
  427. package/lib/esm/components/FeedObject/Activities/RelevantActivities/CommentActivity/CommentActivity.js +18 -20
  428. package/lib/esm/components/FeedObject/Activities/RelevantActivities/FollowActivity/FollowActivity.js +5 -7
  429. package/lib/esm/components/FeedObject/Activities/RelevantActivities/PollVoteActivity/PollVoteActivity.js +5 -7
  430. package/lib/esm/components/FeedObject/Activities/RelevantActivities/RelevantActivities.js +7 -12
  431. package/lib/esm/components/FeedObject/Activities/RelevantActivities/VoteUpActivity/VoteUpActivity.js +5 -7
  432. package/lib/esm/components/FeedObject/Contributors/Contributors.js +3 -13
  433. package/lib/esm/components/FeedObject/Contributors/Skeleton.js +2 -6
  434. package/lib/esm/components/FeedObject/FeedObject.js +23 -110
  435. package/lib/esm/components/FeedObject/Poll/Choice/Choice.js +3 -8
  436. package/lib/esm/components/FeedObject/Poll/Poll.js +5 -21
  437. package/lib/esm/components/FeedObject/Skeleton.js +4 -16
  438. package/lib/esm/components/FeedObjectMediaPreview/FeedObjectMediaPreview.js +5 -6
  439. package/lib/esm/components/FeedUpdatesWidget/FeedUpdatesWidget.js +5 -8
  440. package/lib/esm/components/FeedUpdatesWidget/Skeleton.js +2 -2
  441. package/lib/esm/components/FollowUserButton/FollowUserButton.js +5 -4
  442. package/lib/esm/components/Footer/Footer.js +4 -7
  443. package/lib/esm/components/Footer/Skeleton.js +2 -4
  444. package/lib/esm/components/FriendshipUserButton/FriendshipUserButton.js +9 -8
  445. package/lib/esm/components/Group/Group.js +7 -13
  446. package/lib/esm/components/Group/Skeleton.js +2 -3
  447. package/lib/esm/components/GroupAutocomplete/GroupAutocomplete.js +5 -8
  448. package/lib/esm/components/GroupForm/GroupForm.js +36 -75
  449. package/lib/esm/components/GroupHeader/GroupHeader.js +6 -34
  450. package/lib/esm/components/GroupHeader/Skeleton.js +2 -12
  451. package/lib/esm/components/GroupInfoWidget/GroupInfoWidget.js +24 -54
  452. package/lib/esm/components/GroupInfoWidget/Skeleton.js +2 -2
  453. package/lib/esm/components/GroupInviteButton/GroupInviteButton.js +4 -24
  454. package/lib/esm/components/GroupInvitedWidget/GroupInvitedWidget.js +5 -18
  455. package/lib/esm/components/GroupInvitedWidget/Skeleton.js +2 -2
  456. package/lib/esm/components/GroupMembersButton/GroupMembersButton.js +3 -8
  457. package/lib/esm/components/GroupMembersWidget/GroupMembersWidget.js +11 -28
  458. package/lib/esm/components/GroupMembersWidget/Skeleton.js +2 -2
  459. package/lib/esm/components/GroupRequestsWidget/GroupRequestsWidget.js +5 -16
  460. package/lib/esm/components/GroupRequestsWidget/Skeleton.js +2 -2
  461. package/lib/esm/components/GroupSettingsIconButton/GroupSettingsIconButton.js +13 -21
  462. package/lib/esm/components/GroupSubscribeButton/GroupSubscribeButton.js +8 -7
  463. package/lib/esm/components/Groups/Groups.js +10 -23
  464. package/lib/esm/components/Groups/Skeleton.js +2 -4
  465. package/lib/esm/components/Incubator/Incubator.js +8 -28
  466. package/lib/esm/components/Incubator/Skeleton.js +2 -20
  467. package/lib/esm/components/IncubatorDetail/IncubatorDetail.js +4 -46
  468. package/lib/esm/components/IncubatorListWidget/CreateIncubatorDialog/CreateIncubatorDialog.js +5 -12
  469. package/lib/esm/components/IncubatorListWidget/IncubatorListWidget.js +8 -32
  470. package/lib/esm/components/IncubatorListWidget/Skeleton.js +2 -4
  471. package/lib/esm/components/IncubatorSubscribeButton/IncubatorSubscribeButton.js +3 -2
  472. package/lib/esm/components/IncubatorSuggestionWidget/IncubatorSuggestionWidget.js +5 -18
  473. package/lib/esm/components/IncubatorSuggestionWidget/Skeleton.js +2 -4
  474. package/lib/esm/components/InlineComposerWidget/InlineComposerWidget.js +5 -11
  475. package/lib/esm/components/InlineComposerWidget/Skeleton.js +2 -7
  476. package/lib/esm/components/LocationAutocomplete/LocationAutocomplete.js +6 -7
  477. package/lib/esm/components/LoyaltyProgramWidget/LoyaltyProgramWidget.js +5 -13
  478. package/lib/esm/components/LoyaltyProgramWidget/Skeleton.js +2 -11
  479. package/lib/esm/components/MyEventsWidget/MyEventsWidget.d.ts +19 -0
  480. package/lib/esm/components/MyEventsWidget/MyEventsWidget.js +120 -0
  481. package/lib/esm/components/MyEventsWidget/Skeleton.d.ts +1 -0
  482. package/lib/esm/components/MyEventsWidget/Skeleton.js +44 -0
  483. package/lib/esm/components/MyEventsWidget/constants.d.ts +1 -0
  484. package/lib/esm/components/MyEventsWidget/constants.js +1 -0
  485. package/lib/esm/components/MyEventsWidget/index.d.ts +4 -0
  486. package/lib/esm/components/MyEventsWidget/index.js +4 -0
  487. package/lib/esm/components/NavigationMenuIconButton/DefaultDrawerContent.js +3 -11
  488. package/lib/esm/components/NavigationMenuIconButton/DefaultHeaderContent.js +3 -4
  489. package/lib/esm/components/NavigationMenuIconButton/NavigationMenuIconButton.js +4 -13
  490. package/lib/esm/components/NavigationSettingsIconButton/NavigationSettingsIconButton.js +35 -75
  491. package/lib/esm/components/NavigationToolbar/NavigationToolbar.js +14 -51
  492. package/lib/esm/components/NavigationToolbar/NotificationMenu.js +2 -5
  493. package/lib/esm/components/NavigationToolbar/Skeleton.js +2 -5
  494. package/lib/esm/components/NavigationToolbarMobile/NavigationToolbarMobile.js +11 -27
  495. package/lib/esm/components/NavigationToolbarMobile/Skeleton.js +2 -3
  496. package/lib/esm/components/Notification/CollapsedFor/CollapsedFor.js +2 -15
  497. package/lib/esm/components/Notification/Comment/Comment.js +11 -27
  498. package/lib/esm/components/Notification/Contribution/Contribution.js +11 -28
  499. package/lib/esm/components/Notification/ContributionFollow/ContributionFollow.js +4 -19
  500. package/lib/esm/components/Notification/DeletedFor/DeletedFor.js +2 -17
  501. package/lib/esm/components/Notification/Group/Group.js +17 -30
  502. package/lib/esm/components/Notification/IncubatorApproved/IncubatorApproved.js +8 -16
  503. package/lib/esm/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.js +2 -9
  504. package/lib/esm/components/Notification/KindlyNoticeFor/KindlyNoticeFor.js +4 -16
  505. package/lib/esm/components/Notification/Mention/Mention.js +7 -22
  506. package/lib/esm/components/Notification/Notification.js +37 -57
  507. package/lib/esm/components/Notification/PrivateMessage/PrivateMessage.js +24 -47
  508. package/lib/esm/components/Notification/Skeleton.js +3 -7
  509. package/lib/esm/components/Notification/UndeletedFor/UndeletedFor.js +2 -16
  510. package/lib/esm/components/Notification/UserBlocked/UserBlocked.js +5 -7
  511. package/lib/esm/components/Notification/UserConnection/UserConnection.js +5 -15
  512. package/lib/esm/components/Notification/UserFollow/UserFollow.js +5 -15
  513. package/lib/esm/components/Notification/VoteUp/VoteUp.js +6 -19
  514. package/lib/esm/components/PlatformWidget/PlatformWidget.js +20 -53
  515. package/lib/esm/components/PlatformWidget/Skeleton.js +2 -2
  516. package/lib/esm/components/PollSuggestionWidget/PollSnippet/PollSnippet.js +3 -12
  517. package/lib/esm/components/PollSuggestionWidget/PollSnippet/Skeleton.js +2 -2
  518. package/lib/esm/components/PollSuggestionWidget/PollSuggestionWidget.js +5 -17
  519. package/lib/esm/components/PollSuggestionWidget/Skeleton.js +2 -6
  520. package/lib/esm/components/PrivateMessageComponent/PrivateMessageComponent.js +6 -9
  521. package/lib/esm/components/PrivateMessageComponent/Skeleton.js +2 -6
  522. package/lib/esm/components/PrivateMessageEditor/MessageMediaUploader/index.js +16 -37
  523. package/lib/esm/components/PrivateMessageEditor/PrivateMessageEditor.js +9 -18
  524. package/lib/esm/components/PrivateMessageEditor/Skeleton.js +2 -2
  525. package/lib/esm/components/PrivateMessageSettingsIconButton/PrivateMessageSettingsIconButton.js +9 -31
  526. package/lib/esm/components/PrivateMessageSnippetItem/PrivateMessageSnippetItem.js +12 -19
  527. package/lib/esm/components/PrivateMessageSnippetItem/Skeleton.js +2 -5
  528. package/lib/esm/components/PrivateMessageSnippets/PrivateMessageSnippets.js +8 -16
  529. package/lib/esm/components/PrivateMessageSnippets/Skeleton.js +2 -8
  530. package/lib/esm/components/PrivateMessageThread/PrivateMessageThread.js +14 -35
  531. package/lib/esm/components/PrivateMessageThread/Skeleton.js +2 -9
  532. package/lib/esm/components/PrivateMessageThreadItem/PrivateMessageThreadItem.js +15 -33
  533. package/lib/esm/components/PrivateMessageThreadItem/Skeleton.js +2 -3
  534. package/lib/esm/components/RelatedFeedObjectsWidget/RelatedFeedObjectsWidget.js +6 -21
  535. package/lib/esm/components/RelatedFeedObjectsWidget/Skeleton.js +2 -2
  536. package/lib/esm/components/SearchAutocomplete/SearchAutocomplete.js +5 -8
  537. package/lib/esm/components/SearchDialog/SearchDialog.js +2 -4
  538. package/lib/esm/components/Skeleton/AvatarGroupSkeleton.js +2 -3
  539. package/lib/esm/components/Skeleton/GenericSkeleton.js +2 -6
  540. package/lib/esm/components/SnippetNotifications/Skeleton.js +3 -3
  541. package/lib/esm/components/SnippetNotifications/SnippetNotifications.js +23 -28
  542. package/lib/esm/components/ToastNotifications/Skeleton.js +2 -2
  543. package/lib/esm/components/ToastNotifications/ToastNotifications.js +16 -15
  544. package/lib/esm/components/User/Skeleton.js +2 -3
  545. package/lib/esm/components/User/User.js +7 -15
  546. package/lib/esm/components/UserActionIconButton/UserActionIconButton.js +16 -31
  547. package/lib/esm/components/UserConnectionsRequestsSentWidget/Skeleton.js +2 -2
  548. package/lib/esm/components/UserConnectionsRequestsSentWidget/UserConnectionsRequestsSentWidget.js +5 -17
  549. package/lib/esm/components/UserConnectionsRequestsWidget/Skeleton.js +2 -2
  550. package/lib/esm/components/UserConnectionsRequestsWidget/UserConnectionsRequestsWidget.js +5 -17
  551. package/lib/esm/components/UserConnectionsWidget/Skeleton.js +2 -2
  552. package/lib/esm/components/UserConnectionsWidget/UserConnectionsWidget.js +5 -17
  553. package/lib/esm/components/UserCounters/UserCounters.js +19 -28
  554. package/lib/esm/components/UserFollowedCategoriesWidget/Skeleton.js +2 -2
  555. package/lib/esm/components/UserFollowedCategoriesWidget/UserFollowedCategoriesWidget.js +5 -20
  556. package/lib/esm/components/UserFollowedUsersWidget/Skeleton.js +2 -2
  557. package/lib/esm/components/UserFollowedUsersWidget/UserFollowedUsersWidget.js +5 -17
  558. package/lib/esm/components/UserFollowersWidget/Skeleton.js +2 -2
  559. package/lib/esm/components/UserFollowersWidget/UserFollowersWidget.js +5 -17
  560. package/lib/esm/components/UserInfo/Skeleton.js +2 -6
  561. package/lib/esm/components/UserInfo/UserInfo.js +13 -14
  562. package/lib/esm/components/UserInfoDialog/UserInfoDialog.js +3 -5
  563. package/lib/esm/components/UserProfileBlocked/UserProfileBlocked.js +4 -11
  564. package/lib/esm/components/UserProfileEdit/Section/Account.js +3 -13
  565. package/lib/esm/components/UserProfileEdit/Section/AccountCredentials.js +15 -37
  566. package/lib/esm/components/UserProfileEdit/Section/PublicInfo.js +15 -25
  567. package/lib/esm/components/UserProfileEdit/Section/Settings.js +7 -37
  568. package/lib/esm/components/UserProfileEdit/Section/SettingsSkeleton.js +2 -5
  569. package/lib/esm/components/UserProfileEdit/Skeleton.js +2 -6
  570. package/lib/esm/components/UserProfileEdit/UserProfileEdit.js +2 -9
  571. package/lib/esm/components/UserProfileHeader/Skeleton.js +2 -13
  572. package/lib/esm/components/UserProfileHeader/UserProfileHeader.js +4 -21
  573. package/lib/esm/components/UserSocialAssociation/UserSocialAssociation.js +2 -16
  574. package/lib/esm/components/UserSubscribedGroupsWidget/Skeleton.js +2 -6
  575. package/lib/esm/components/UserSubscribedGroupsWidget/UserSubscribedGroupsWidget.js +7 -22
  576. package/lib/esm/components/UserSuggestionWidget/Skeleton.js +2 -5
  577. package/lib/esm/components/UserSuggestionWidget/UserSuggestionWidget.js +5 -17
  578. package/lib/esm/components/VoteAudienceButton/VoteAudienceButton.js +9 -23
  579. package/lib/esm/components/VoteButton/VoteButton.js +9 -15
  580. package/lib/esm/components/Widget/index.js +3 -2
  581. package/lib/esm/index.d.ts +3 -1
  582. package/lib/esm/index.js +4 -2
  583. package/lib/esm/shared/AutoPlayer/index.js +5 -6
  584. package/lib/esm/shared/BaseDialog/BaseDialog.js +3 -10
  585. package/lib/esm/shared/BaseItem/BaseItem.js +4 -10
  586. package/lib/esm/shared/BaseItemButton/BaseItemButton.js +4 -10
  587. package/lib/esm/shared/Bullet/index.js +2 -1
  588. package/lib/esm/shared/Calendar/index.js +6 -3
  589. package/lib/esm/shared/CentralProgress/index.js +3 -4
  590. package/lib/esm/shared/ConfirmDialog/ConfirmDialog.js +2 -9
  591. package/lib/esm/shared/ConsentSolutionSwitch/index.js +5 -8
  592. package/lib/esm/shared/ContributionActionsMenu/index.js +22 -85
  593. package/lib/esm/shared/CustomSnackMessage/index.js +3 -7
  594. package/lib/esm/shared/DateTimeAgo/index.js +2 -6
  595. package/lib/esm/shared/EmailTextField/index.js +3 -2
  596. package/lib/esm/shared/EmojiPicker/EmojiPicker.js +2 -2
  597. package/lib/esm/shared/EventInfoDetails/index.js +5 -22
  598. package/lib/esm/shared/HiddenPlaceholder/index.js +2 -2
  599. package/lib/esm/shared/InfiniteScroll/index.js +8 -18
  600. package/lib/esm/shared/InfiniteScroll/stories/InfiniteScrollWithHeight.js +3 -8
  601. package/lib/esm/shared/InfiniteScroll/stories/PullDownToRefreshInfScroll.js +3 -7
  602. package/lib/esm/shared/InfiniteScroll/stories/ScrollableTargetFixedInfScroll.js +13 -18
  603. package/lib/esm/shared/InfiniteScroll/stories/ScrollableTargetInfScroll.js +3 -8
  604. package/lib/esm/shared/InfiniteScroll/stories/ScrolleableTop.js +6 -11
  605. package/lib/esm/shared/InfiniteScroll/stories/WindowInfiniteScrollComponent.js +3 -6
  606. package/lib/esm/shared/LanguageSwitcher/index.js +3 -5
  607. package/lib/esm/shared/Lightbox/Lightbox.js +4 -3
  608. package/lib/esm/shared/MarkRead/MarkRead.js +3 -3
  609. package/lib/esm/shared/Media/File/DisplayComponent.js +13 -42
  610. package/lib/esm/shared/Media/File/Lightbox/index.js +5 -5
  611. package/lib/esm/shared/Media/File/PreviewComponent.js +5 -9
  612. package/lib/esm/shared/Media/File/TriggerButton.js +14 -25
  613. package/lib/esm/shared/Media/File/asUploadButton.js +3 -2
  614. package/lib/esm/shared/Media/Link/DisplayComponent.js +8 -15
  615. package/lib/esm/shared/Media/Link/LayerComponent.js +2 -11
  616. package/lib/esm/shared/Media/Link/PreviewComponent.js +2 -4
  617. package/lib/esm/shared/Media/Link/TriggerButton.js +2 -3
  618. package/lib/esm/shared/Media/Link/UrlTextField/index.js +5 -7
  619. package/lib/esm/shared/Media/Share/DisplayComponent.js +3 -3
  620. package/lib/esm/shared/MetadataField/MetadataField.js +8 -7
  621. package/lib/esm/shared/NewChip/NewChip.js +2 -2
  622. package/lib/esm/shared/NotificationItem/NotificationItem.js +3 -12
  623. package/lib/esm/shared/PasswordTextField/index.js +4 -6
  624. package/lib/esm/shared/PhoneTextField/index.js +3 -2
  625. package/lib/esm/shared/ScrollContainer/index.js +2 -2
  626. package/lib/esm/shared/StickyBox/index.js +3 -2
  627. package/lib/esm/shared/TagChip/index.js +2 -2
  628. package/lib/esm/shared/Tags/index.js +11 -23
  629. package/lib/esm/shared/UrlTextField/index.js +3 -2
  630. package/lib/esm/shared/UserAvatar/UserAvatar.js +3 -2
  631. package/lib/esm/shared/UserDeletedSnackBar/UserDeletedSnackBar.js +3 -5
  632. package/lib/esm/shared/UsernameTextField/index.js +3 -2
  633. package/lib/esm/shared/VirtualizedScroller/VirtualScrollerChild.js +2 -2
  634. package/lib/esm/shared/VirtualizedScroller/VirtualizedScroller.js +3 -2
  635. package/lib/esm/utils/contribution.js +3 -3
  636. package/lib/esm/utils/errors.js +3 -3
  637. package/lib/umd/react-ui.js +1 -1
  638. package/package.json +7 -7
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- const react_1 = tslib_1.__importDefault(require("react"));
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const styles_1 = require("@mui/material/styles");
6
6
  const material_1 = require("@mui/material");
7
7
  const classnames_1 = tslib_1.__importDefault(require("classnames"));
@@ -59,14 +59,8 @@ function BaseItem(inProps) {
59
59
  });
60
60
  const { id = null, className = null, image = null, disableTypography = false, primary = null, primaryTypographyProps = { component: 'span', variant: 'body1' }, secondary = null, secondaryTypographyProps = { component: 'p', variant: 'body2' }, actions = null } = props, rest = tslib_1.__rest(props, ["id", "className", "image", "disableTypography", "primary", "primaryTypographyProps", "secondary", "secondaryTypographyProps", "actions"]);
61
61
  // RENDER
62
- return (react_1.default.createElement(Root, Object.assign({ id: id }, rest, { className: (0, classnames_1.default)(classes.root, className, { [classes.withActions]: Boolean(actions) }) }),
63
- react_1.default.createElement(material_1.Box, { className: classes.content },
64
- image && react_1.default.createElement(material_1.Box, { className: classes.image }, image),
65
- react_1.default.createElement(material_1.Box, { className: classes.text },
66
- primary &&
67
- (disableTypography ? (primary) : (react_1.default.createElement(material_1.Typography, Object.assign({ className: classes.primary }, primaryTypographyProps), primary))),
68
- secondary &&
69
- (disableTypography ? (secondary) : (react_1.default.createElement(material_1.Typography, Object.assign({ className: classes.secondary }, secondaryTypographyProps), secondary))))),
70
- actions && react_1.default.createElement(material_1.Box, { className: classes.actions }, actions)));
62
+ return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ id: id }, rest, { className: (0, classnames_1.default)(classes.root, className, { [classes.withActions]: Boolean(actions) }) }, { children: [(0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ className: classes.content }, { children: [image && (0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ className: classes.image }, { children: image })), (0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ className: classes.text }, { children: [primary &&
63
+ (disableTypography ? (primary) : ((0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ className: classes.primary }, primaryTypographyProps, { children: primary })))), secondary &&
64
+ (disableTypography ? (secondary) : ((0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ className: classes.secondary }, secondaryTypographyProps, { children: secondary }))))] }))] })), actions && (0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ className: classes.actions }, { children: actions }))] })));
71
65
  }
72
66
  exports.default = BaseItem;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- const react_1 = tslib_1.__importDefault(require("react"));
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const styles_1 = require("@mui/material/styles");
6
6
  const material_1 = require("@mui/material");
7
7
  const classnames_1 = tslib_1.__importDefault(require("classnames"));
@@ -59,14 +59,8 @@ function BaseItemButton(inProps) {
59
59
  });
60
60
  const { id = null, className = null, ButtonBaseProps = {}, image = null, disableTypography = false, primary = null, primaryTypographyProps = { component: 'span', variant: 'body1' }, secondary = null, secondaryTypographyProps = { component: 'p', variant: 'body2' }, actions = null } = props, rest = tslib_1.__rest(props, ["id", "className", "ButtonBaseProps", "image", "disableTypography", "primary", "primaryTypographyProps", "secondary", "secondaryTypographyProps", "actions"]);
61
61
  // RENDER
62
- return (react_1.default.createElement(Root, Object.assign({ id: id }, rest, { className: (0, classnames_1.default)(classes.root, className, { [classes.withActions]: Boolean(actions) }) }),
63
- react_1.default.createElement(material_1.ButtonBase, Object.assign({ className: classes.content }, ButtonBaseProps),
64
- image && react_1.default.createElement(material_1.Box, { className: classes.image }, image),
65
- react_1.default.createElement(material_1.Box, { className: classes.text },
66
- primary &&
67
- (disableTypography ? (primary) : (react_1.default.createElement(material_1.Typography, Object.assign({ className: classes.primary }, primaryTypographyProps), primary))),
68
- secondary &&
69
- (disableTypography ? (secondary) : (react_1.default.createElement(material_1.Typography, Object.assign({ className: classes.secondary }, secondaryTypographyProps), secondary))))),
70
- actions && react_1.default.createElement(material_1.Box, { className: classes.actions }, actions)));
62
+ return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ id: id }, rest, { className: (0, classnames_1.default)(classes.root, className, { [classes.withActions]: Boolean(actions) }) }, { children: [(0, jsx_runtime_1.jsxs)(material_1.ButtonBase, Object.assign({ className: classes.content }, ButtonBaseProps, { children: [image && (0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ className: classes.image }, { children: image })), (0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ className: classes.text }, { children: [primary &&
63
+ (disableTypography ? (primary) : ((0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ className: classes.primary }, primaryTypographyProps, { children: primary })))), secondary &&
64
+ (disableTypography ? (secondary) : ((0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ className: classes.secondary }, secondaryTypographyProps, { children: secondary }))))] }))] })), actions && (0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ className: classes.actions }, { children: actions }))] })));
71
65
  }
72
66
  exports.default = BaseItemButton;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
4
5
  const styles_1 = require("@mui/material/styles");
5
6
  const system_1 = require("@mui/system");
6
7
  const classnames_1 = tslib_1.__importDefault(require("classnames"));
@@ -19,6 +20,6 @@ function Bullet(inProps) {
19
20
  props: inProps,
20
21
  name: PREFIX
21
22
  }), { className } = _a, props = tslib_1.__rest(_a, ["className"]);
22
- return (React.createElement(Root, Object.assign({ className: (0, classnames_1.default)(className, classes.root) }, props), "\u2022"));
23
+ return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: (0, classnames_1.default)(className, classes.root) }, props, { children: "\u2022" })));
23
24
  }
24
25
  exports.default = Bullet;
@@ -1,7 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ const jsx_runtime_1 = require("react/jsx-runtime");
3
4
  const material_1 = require("@mui/material");
4
5
  const PREFIX = 'SCCalendar';
6
+ const classes = {
7
+ root: `${PREFIX}-root`,
8
+ header: `${PREFIX}-header`
9
+ };
5
10
  const Root = (0, material_1.styled)(material_1.Stack, {
6
11
  name: PREFIX,
7
12
  slot: 'Root',
@@ -9,8 +14,6 @@ const Root = (0, material_1.styled)(material_1.Stack, {
9
14
  })();
10
15
  function Calendar(props) {
11
16
  const day = props.day;
12
- return (React.createElement(Root, { gap: "7px", position: "absolute", bottom: "-36px", left: "24px", width: "60px", height: "60px", borderRadius: "5px", boxShadow: "0px 3px 8px #00000040", bgcolor: "#fff", overflow: "hidden" },
13
- React.createElement(material_1.Box, { width: "100%", height: "16px", bgcolor: "#b20404" }),
14
- React.createElement(material_1.Typography, { variant: "h2", textAlign: "center" }, day)));
17
+ return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: classes.root }, { children: [(0, jsx_runtime_1.jsx)(material_1.Box, { className: classes.header }), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "h2", textAlign: "center" }, { children: day }))] })));
15
18
  }
16
19
  exports.default = Calendar;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- const react_1 = tslib_1.__importDefault(require("react"));
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const CircularProgress_1 = tslib_1.__importDefault(require("@mui/material/CircularProgress"));
6
6
  const styles_1 = require("@mui/material/styles");
7
7
  const material_1 = require("@mui/material");
@@ -18,10 +18,9 @@ const Root = (0, styles_1.styled)(material_1.Box, {
18
18
  padding: 50
19
19
  }));
20
20
  function CentralProgress(props) {
21
- return (react_1.default.createElement(Root, null,
22
- react_1.default.createElement(CircularProgress_1.default, Object.assign({ sx: {
21
+ return ((0, jsx_runtime_1.jsx)(Root, { children: (0, jsx_runtime_1.jsx)(CircularProgress_1.default, Object.assign({ sx: {
23
22
  margin: '0 auto',
24
23
  display: 'block'
25
- } }, props))));
24
+ } }, props)) }));
26
25
  }
27
26
  exports.default = CentralProgress;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- const react_1 = tslib_1.__importDefault(require("react"));
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const styles_1 = require("@mui/material/styles");
6
6
  const Card_1 = tslib_1.__importDefault(require("@mui/material/Card"));
7
7
  const Button_1 = tslib_1.__importDefault(require("@mui/material/Button"));
@@ -41,13 +41,6 @@ function ConfirmDialog(props) {
41
41
  /**
42
42
  * Renders root object
43
43
  */
44
- return (react_1.default.createElement(Root, null,
45
- react_1.default.createElement(material_1.Dialog, Object.assign({ open: open, onClose: handleClose }, rest),
46
- react_1.default.createElement(material_1.DialogTitle, null, title ? title : react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.confirmDialog.title", defaultMessage: "ui.confirmDialog.title" })),
47
- content && (react_1.default.createElement(material_1.DialogContent, null,
48
- react_1.default.createElement(material_1.DialogContentText, { component: "div" }, content))),
49
- react_1.default.createElement(material_1.DialogActions, null,
50
- react_1.default.createElement(Button_1.default, { onClick: handleClose }, btnCancel ? btnCancel : react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.confirmDialog.btnCancel", defaultMessage: "ui.confirmDialog.btnCancel" })),
51
- react_1.default.createElement(lab_1.LoadingButton, { onClick: handleConfirm, variant: "contained", autoFocus: true, loading: isUpdating }, btnConfirm ? btnConfirm : react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.confirmDialog.btnConfirm", defaultMessage: "ui.confirmDialog.btnConfirm" }))))));
44
+ return ((0, jsx_runtime_1.jsx)(Root, { children: (0, jsx_runtime_1.jsxs)(material_1.Dialog, Object.assign({ open: open, onClose: handleClose }, rest, { children: [(0, jsx_runtime_1.jsx)(material_1.DialogTitle, { children: title ? title : (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.confirmDialog.title", defaultMessage: "ui.confirmDialog.title" }) }), content && ((0, jsx_runtime_1.jsx)(material_1.DialogContent, { children: (0, jsx_runtime_1.jsx)(material_1.DialogContentText, Object.assign({ component: "div" }, { children: content })) })), (0, jsx_runtime_1.jsxs)(material_1.DialogActions, { children: [(0, jsx_runtime_1.jsx)(Button_1.default, Object.assign({ onClick: handleClose }, { children: btnCancel ? btnCancel : (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.confirmDialog.btnCancel", defaultMessage: "ui.confirmDialog.btnCancel" }) })), (0, jsx_runtime_1.jsx)(lab_1.LoadingButton, Object.assign({ onClick: handleConfirm, variant: "contained", autoFocus: true, loading: isUpdating }, { children: btnConfirm ? btnConfirm : (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.confirmDialog.btnConfirm", defaultMessage: "ui.confirmDialog.btnConfirm" }) }))] })] })) }));
52
45
  }
53
46
  exports.default = ConfirmDialog;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- const react_1 = tslib_1.__importDefault(require("react"));
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const styles_1 = require("@mui/material/styles");
6
6
  const material_1 = require("@mui/material");
7
7
  const system_1 = require("@mui/system");
@@ -144,14 +144,11 @@ function ConsentSolutionSwitch(inProps) {
144
144
  });
145
145
  const { loading } = props, rest = tslib_1.__rest(props, ["loading"]);
146
146
  // Icon loading state
147
- const IconLoading = () => (react_1.default.createElement("span", { className: classes.thumb },
148
- react_1.default.createElement(material_1.CircularProgress, { size: 14, className: classes.thumbLoader })));
147
+ const IconLoading = () => ((0, jsx_runtime_1.jsx)("span", Object.assign({ className: classes.thumb }, { children: (0, jsx_runtime_1.jsx)(material_1.CircularProgress, { size: 14, className: classes.thumbLoader }) })));
149
148
  // Icon checked state
150
- const IconChecked = () => (react_1.default.createElement("span", { className: classes.thumb },
151
- react_1.default.createElement(Icon_1.default, { className: classes.thumbChecked }, "check_outlined")));
149
+ const IconChecked = () => ((0, jsx_runtime_1.jsx)("span", Object.assign({ className: classes.thumb }, { children: (0, jsx_runtime_1.jsx)(Icon_1.default, Object.assign({ className: classes.thumbChecked }, { children: "check_outlined" })) })));
152
150
  // Icon unchecked state
153
- const IconUnChecked = () => (react_1.default.createElement("span", { className: classes.thumb },
154
- react_1.default.createElement(Icon_1.default, { className: classes.thumbUnChecked }, "close")));
155
- return react_1.default.createElement(Root, Object.assign({}, rest, { checkedIcon: loading ? react_1.default.createElement(IconLoading, null) : react_1.default.createElement(IconChecked, null), icon: loading ? react_1.default.createElement(IconLoading, null) : react_1.default.createElement(IconUnChecked, null) }));
151
+ const IconUnChecked = () => ((0, jsx_runtime_1.jsx)("span", Object.assign({ className: classes.thumb }, { children: (0, jsx_runtime_1.jsx)(Icon_1.default, Object.assign({ className: classes.thumbUnChecked }, { children: "close" })) })));
152
+ return (0, jsx_runtime_1.jsx)(Root, Object.assign({}, rest, { checkedIcon: loading ? (0, jsx_runtime_1.jsx)(IconLoading, {}) : (0, jsx_runtime_1.jsx)(IconChecked, {}), icon: loading ? (0, jsx_runtime_1.jsx)(IconLoading, {}) : (0, jsx_runtime_1.jsx)(IconUnChecked, {}) }));
156
153
  }
157
154
  exports.default = ConsentSolutionSwitch;
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- const react_1 = tslib_1.__importStar(require("react"));
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const react_1 = require("react");
5
6
  const styles_1 = require("@mui/material/styles");
6
7
  const react_intl_1 = require("react-intl");
7
8
  const Popper_1 = tslib_1.__importDefault(require("@mui/material/Popper"));
@@ -204,7 +205,7 @@ function ContributionActionsMenu(props) {
204
205
  utils_1.Logger.error(Errors_1.SCOPE_SC_UI, error);
205
206
  setCurrentAction(null);
206
207
  setCurrentActionLoading(null);
207
- enqueueSnackbar(react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.contributionActionMenu.actionError", defaultMessage: "ui.contributionActionMenu.actionError" }), {
208
+ enqueueSnackbar((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.contributionActionMenu.actionError", defaultMessage: "ui.contributionActionMenu.actionError" }), {
208
209
  variant: 'error',
209
210
  autoHideDuration: 3000
210
211
  });
@@ -346,7 +347,7 @@ function ContributionActionsMenu(props) {
346
347
  */
347
348
  function handleFlagContribution(type) {
348
349
  if (react_core_1.UserUtils.isBlocked(scUserContext.user)) {
349
- enqueueSnackbar(react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.common.userBlocked", defaultMessage: "ui.common.userBlocked" }), {
350
+ enqueueSnackbar((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.common.userBlocked", defaultMessage: "ui.common.userBlocked" }), {
350
351
  variant: 'warning',
351
352
  autoHideDuration: 3000
352
353
  });
@@ -361,7 +362,7 @@ function ContributionActionsMenu(props) {
361
362
  })
362
363
  .catch((error) => {
363
364
  utils_1.Logger.error(Errors_1.SCOPE_SC_UI, error);
364
- enqueueSnackbar(react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.contributionActionMenu.actionError", defaultMessage: "ui.contributionActionMenu.actionError" }), {
365
+ enqueueSnackbar((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.contributionActionMenu.actionError", defaultMessage: "ui.contributionActionMenu.actionError" }), {
365
366
  variant: 'error',
366
367
  autoHideDuration: 3000
367
368
  });
@@ -408,7 +409,7 @@ function ContributionActionsMenu(props) {
408
409
  if (react_core_1.UserUtils.isBlocked(scUserContext.user) &&
409
410
  [ContributionsActionsMenu_1.EDIT_CONTRIBUTION, ContributionsActionsMenu_1.MODERATE_CONTRIBUTION_HIDDEN, ContributionsActionsMenu_1.MODERATE_CONTRIBUTION_DELETED].includes(action)) {
410
411
  // if user is blocked, deny edit and moderate
411
- enqueueSnackbar(react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.common.userBlocked", defaultMessage: "ui.common.userBlocked" }), {
412
+ enqueueSnackbar((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.common.userBlocked", defaultMessage: "ui.common.userBlocked" }), {
412
413
  variant: 'warning',
413
414
  autoHideDuration: 3000
414
415
  });
@@ -417,7 +418,7 @@ function ContributionActionsMenu(props) {
417
418
  if (action === ContributionsActionsMenu_1.GET_CONTRIBUTION_PERMALINK) {
418
419
  (0, utils_1.copyTextToClipboard)(`${location.protocol}//${location.host}${scRoutingContext.url((0, contribution_1.getContributionRouteName)(contributionObj), (0, contribution_1.getRouteData)(contributionObj))}`).then(() => {
419
420
  setOpen(false);
420
- enqueueSnackbar(react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.common.permanentLinkCopied", defaultMessage: "ui.common.permanentLinkCopied" }), {
421
+ enqueueSnackbar((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.common.permanentLinkCopied", defaultMessage: "ui.common.permanentLinkCopied" }), {
421
422
  variant: 'success',
422
423
  autoHideDuration: 3000
423
424
  });
@@ -474,14 +475,14 @@ function ContributionActionsMenu(props) {
474
475
  setCurrentActionLoading(null);
475
476
  setCurrentAction(null);
476
477
  setOpenConfirmDialog(false);
477
- enqueueSnackbar(react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.contributionActionMenu.actionSuccess", defaultMessage: "ui.contributionActionMenu.actionSuccess" }), {
478
+ enqueueSnackbar((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.contributionActionMenu.actionSuccess", defaultMessage: "ui.contributionActionMenu.actionSuccess" }), {
478
479
  variant: 'success',
479
480
  autoHideDuration: 3000
480
481
  });
481
482
  }
482
483
  else {
483
484
  setCurrentActionLoading(null);
484
- enqueueSnackbar(react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.contributionActionMenu.actionError", defaultMessage: "ui.contributionActionMenu.actionError" }), {
485
+ enqueueSnackbar((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.contributionActionMenu.actionError", defaultMessage: "ui.contributionActionMenu.actionError" }), {
485
486
  variant: 'error',
486
487
  autoHideDuration: 3000
487
488
  });
@@ -607,9 +608,7 @@ function ContributionActionsMenu(props) {
607
608
  : handleDeleteContribution;
608
609
  let value = section === ContributionsActionsMenu_1.FLAG_CONTRIBUTION_SECTION ? flagType : section === ContributionsActionsMenu_1.HIDE_CONTRIBUTION_SECTION ? hideType : deleteType;
609
610
  return Flagging_1.REPORTS.map((report, index) => {
610
- return (react_1.default.createElement(material_1.MenuItem, { key: `${section}_${index}`, className: classes.subItem, disabled: isFlagging },
611
- react_1.default.createElement(material_1.ListItemIcon, { classes: { root: classes.selectedIcon } }, value === report && react_1.default.createElement(Icon_1.default, { color: "secondary" }, "check")),
612
- react_1.default.createElement(material_1.ListItemText, { primary: getReportName(report), onClick: () => handlerFunc(report), classes: { root: classes.subItemText } })));
611
+ return ((0, jsx_runtime_1.jsxs)(material_1.MenuItem, Object.assign({ className: classes.subItem, disabled: isFlagging }, { children: [(0, jsx_runtime_1.jsx)(material_1.ListItemIcon, Object.assign({ classes: { root: classes.selectedIcon } }, { children: value === report && (0, jsx_runtime_1.jsx)(Icon_1.default, Object.assign({ color: "secondary" }, { children: "check" })) })), (0, jsx_runtime_1.jsx)(material_1.ListItemText, { primary: getReportName(report), onClick: () => handlerFunc(report), classes: { root: classes.subItemText } })] }), `${section}_${index}`));
613
612
  });
614
613
  }
615
614
  /**
@@ -617,59 +616,21 @@ function ContributionActionsMenu(props) {
617
616
  */
618
617
  function renderFlagContributionSection() {
619
618
  const open = openSection === ContributionsActionsMenu_1.FLAG_CONTRIBUTION_SECTION;
620
- return (react_1.default.createElement(material_1.Box, null, !contributionObj.deleted && !contributionObj.collapsed && (react_1.default.createElement(material_1.Box, null,
621
- react_1.default.createElement(material_1.MenuItem, { className: classes.subItem, disabled: isFlagging, onClick: () => handleOpenSection(ContributionsActionsMenu_1.FLAG_CONTRIBUTION_SECTION) },
622
- react_1.default.createElement(material_1.ListItemIcon, null, flagType !== undefined && flagType !== null ? (react_1.default.createElement(material_1.Badge, { classes: { badge: classes.sectionBadge }, badgeContent: react_1.default.createElement(Icon_1.default, { className: classes.sectionWithSelectionIcon }, "check"), color: "primary" },
623
- react_1.default.createElement(Icon_1.default, null, "outlined_flag"))) : (react_1.default.createElement(Icon_1.default, null, "outlined_flag"))),
624
- react_1.default.createElement(material_1.ListItemText, { primary: react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.contributionActionMenu.flagContributionWithMotivation", defaultMessage: "ui.contributionActionMenu.flagContributionWithMotivation" }) }),
625
- open ? react_1.default.createElement(Icon_1.default, null, "expand_less") : react_1.default.createElement(Icon_1.default, null, "expand_more")),
626
- react_1.default.createElement(material_1.Collapse, { in: open, timeout: "auto", unmountOnExit: true },
627
- renderReports(ContributionsActionsMenu_1.FLAG_CONTRIBUTION_SECTION),
628
- react_1.default.createElement(material_1.Typography, { variant: 'caption', component: "div", className: classes.footerSubItems }, intl.formatMessage(messages.footer)))))));
619
+ return ((0, jsx_runtime_1.jsx)(material_1.Box, { children: !contributionObj.deleted && !contributionObj.collapsed && ((0, jsx_runtime_1.jsxs)(material_1.Box, { children: [(0, jsx_runtime_1.jsxs)(material_1.MenuItem, Object.assign({ className: classes.subItem, disabled: isFlagging, onClick: () => handleOpenSection(ContributionsActionsMenu_1.FLAG_CONTRIBUTION_SECTION) }, { children: [(0, jsx_runtime_1.jsx)(material_1.ListItemIcon, { children: flagType !== undefined && flagType !== null ? ((0, jsx_runtime_1.jsx)(material_1.Badge, Object.assign({ classes: { badge: classes.sectionBadge }, badgeContent: (0, jsx_runtime_1.jsx)(Icon_1.default, Object.assign({ className: classes.sectionWithSelectionIcon }, { children: "check" })), color: "primary" }, { children: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "outlined_flag" }) }))) : ((0, jsx_runtime_1.jsx)(Icon_1.default, { children: "outlined_flag" })) }), (0, jsx_runtime_1.jsx)(material_1.ListItemText, { primary: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.contributionActionMenu.flagContributionWithMotivation", defaultMessage: "ui.contributionActionMenu.flagContributionWithMotivation" }) }), open ? (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "expand_less" }) : (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "expand_more" })] })), (0, jsx_runtime_1.jsxs)(material_1.Collapse, Object.assign({ in: open, timeout: "auto", unmountOnExit: true }, { children: [renderReports(ContributionsActionsMenu_1.FLAG_CONTRIBUTION_SECTION), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: 'caption', component: "div", className: classes.footerSubItems }, { children: intl.formatMessage(messages.footer) }))] }))] })) }));
629
620
  }
630
621
  /**
631
622
  * Renders section hide actions
632
623
  */
633
624
  function renderHideContributionSection() {
634
625
  const open = openSection === ContributionsActionsMenu_1.HIDE_CONTRIBUTION_SECTION;
635
- return (react_1.default.createElement(material_1.Box, { key: ContributionsActionsMenu_1.HIDE_CONTRIBUTION_SECTION }, !contributionObj.deleted && (react_1.default.createElement(material_1.Box, null, hideType !== undefined && hideType !== null ? (react_1.default.createElement(react_1.default.Fragment, null,
636
- react_1.default.createElement(material_1.MenuItem, { className: classes.subItem, disabled: Boolean(currentAction), onClick: () => handleAction(ContributionsActionsMenu_1.MODERATE_CONTRIBUTION_HIDDEN) },
637
- react_1.default.createElement(material_1.ListItemIcon, null,
638
- react_1.default.createElement(Icon_1.default, null, "restore")),
639
- react_1.default.createElement(material_1.ListItemText, { primary: react_1.default.createElement(react_1.default.Fragment, null,
640
- react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.contributionActionMenu.restoreFromHidden", defaultMessage: "ui.contributionActionMenu.restoreFromHidden" }),
641
- ' ',
642
- "(",
643
- getReportName(hideType),
644
- ")") })))) : (react_1.default.createElement(react_1.default.Fragment, null,
645
- react_1.default.createElement(material_1.MenuItem, { className: classes.subItem, disabled: Boolean(currentAction), onClick: () => handleOpenSection(ContributionsActionsMenu_1.HIDE_CONTRIBUTION_SECTION) },
646
- react_1.default.createElement(material_1.ListItemIcon, null,
647
- react_1.default.createElement(Icon_1.default, null, "hide_image")),
648
- react_1.default.createElement(material_1.ListItemText, { primary: react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.contributionActionMenu.hideContributionWithMotivation", defaultMessage: "ui.contributionActionMenu.hideContributionWithMotivation" }) }),
649
- open ? react_1.default.createElement(Icon_1.default, null, "expand_less") : react_1.default.createElement(Icon_1.default, null, "expand_more")),
650
- react_1.default.createElement(material_1.Collapse, { in: open, timeout: "auto", unmountOnExit: true }, renderReports(ContributionsActionsMenu_1.HIDE_CONTRIBUTION_SECTION))))))));
626
+ return ((0, jsx_runtime_1.jsx)(material_1.Box, { children: !contributionObj.deleted && ((0, jsx_runtime_1.jsx)(material_1.Box, { children: hideType !== undefined && hideType !== null ? ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsxs)(material_1.MenuItem, Object.assign({ className: classes.subItem, disabled: Boolean(currentAction), onClick: () => handleAction(ContributionsActionsMenu_1.MODERATE_CONTRIBUTION_HIDDEN) }, { children: [(0, jsx_runtime_1.jsx)(material_1.ListItemIcon, { children: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "restore" }) }), (0, jsx_runtime_1.jsx)(material_1.ListItemText, { primary: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.contributionActionMenu.restoreFromHidden", defaultMessage: "ui.contributionActionMenu.restoreFromHidden" }), ' ', "(", getReportName(hideType), ")"] }) })] })) })) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(material_1.MenuItem, Object.assign({ className: classes.subItem, disabled: Boolean(currentAction), onClick: () => handleOpenSection(ContributionsActionsMenu_1.HIDE_CONTRIBUTION_SECTION) }, { children: [(0, jsx_runtime_1.jsx)(material_1.ListItemIcon, { children: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "hide_image" }) }), (0, jsx_runtime_1.jsx)(material_1.ListItemText, { primary: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.contributionActionMenu.hideContributionWithMotivation", defaultMessage: "ui.contributionActionMenu.hideContributionWithMotivation" }) }), open ? (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "expand_less" }) : (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "expand_more" })] })), (0, jsx_runtime_1.jsx)(material_1.Collapse, Object.assign({ in: open, timeout: "auto", unmountOnExit: true }, { children: renderReports(ContributionsActionsMenu_1.HIDE_CONTRIBUTION_SECTION) }))] })) })) }, ContributionsActionsMenu_1.HIDE_CONTRIBUTION_SECTION));
651
627
  }
652
628
  /**
653
629
  * Renders section hidden actions
654
630
  */
655
631
  function renderDeleteContributionSection() {
656
632
  const open = openSection === ContributionsActionsMenu_1.DELETE_CONTRIBUTION_SECTION;
657
- return (react_1.default.createElement(material_1.Box, { key: ContributionsActionsMenu_1.DELETE_CONTRIBUTION_SECTION }, !contributionObj.collapsed && !(contributionObj.deleted && !deleteType) && (react_1.default.createElement(material_1.Box, null, deleteType !== undefined && deleteType !== null ? (react_1.default.createElement(react_1.default.Fragment, null,
658
- react_1.default.createElement(material_1.MenuItem, { className: classes.subItem, disabled: Boolean(currentAction), onClick: () => handleAction(ContributionsActionsMenu_1.MODERATE_CONTRIBUTION_DELETED) },
659
- react_1.default.createElement(material_1.ListItemIcon, null,
660
- react_1.default.createElement(Icon_1.default, null, "restore_from_trash")),
661
- react_1.default.createElement(material_1.ListItemText, { primary: react_1.default.createElement(react_1.default.Fragment, null,
662
- react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.contributionActionMenu.restoreFromDeleted", defaultMessage: "ui.contributionActionMenu.restoreFromDeleted" }),
663
- ' ',
664
- "(",
665
- getReportName(deleteType),
666
- ")") })))) : (react_1.default.createElement(react_1.default.Fragment, null,
667
- react_1.default.createElement(material_1.MenuItem, { className: classes.subItem, disabled: Boolean(currentAction), onClick: () => handleOpenSection(ContributionsActionsMenu_1.DELETE_CONTRIBUTION_SECTION) },
668
- react_1.default.createElement(material_1.ListItemIcon, null,
669
- react_1.default.createElement(Icon_1.default, null, "delete")),
670
- react_1.default.createElement(material_1.ListItemText, { primary: react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.contributionActionMenu.deleteContributionWithMotivation", defaultMessage: "ui.contributionActionMenu.deleteContributionWithMotivation" }) }),
671
- open ? react_1.default.createElement(Icon_1.default, null, "expand_less") : react_1.default.createElement(Icon_1.default, null, "expand_more")),
672
- react_1.default.createElement(material_1.Collapse, { in: open, timeout: "auto", unmountOnExit: true }, renderReports(ContributionsActionsMenu_1.DELETE_CONTRIBUTION_SECTION))))))));
633
+ return ((0, jsx_runtime_1.jsx)(material_1.Box, { children: !contributionObj.collapsed && !(contributionObj.deleted && !deleteType) && ((0, jsx_runtime_1.jsx)(material_1.Box, { children: deleteType !== undefined && deleteType !== null ? ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsxs)(material_1.MenuItem, Object.assign({ className: classes.subItem, disabled: Boolean(currentAction), onClick: () => handleAction(ContributionsActionsMenu_1.MODERATE_CONTRIBUTION_DELETED) }, { children: [(0, jsx_runtime_1.jsx)(material_1.ListItemIcon, { children: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "restore_from_trash" }) }), (0, jsx_runtime_1.jsx)(material_1.ListItemText, { primary: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.contributionActionMenu.restoreFromDeleted", defaultMessage: "ui.contributionActionMenu.restoreFromDeleted" }), ' ', "(", getReportName(deleteType), ")"] }) })] })) })) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(material_1.MenuItem, Object.assign({ className: classes.subItem, disabled: Boolean(currentAction), onClick: () => handleOpenSection(ContributionsActionsMenu_1.DELETE_CONTRIBUTION_SECTION) }, { children: [(0, jsx_runtime_1.jsx)(material_1.ListItemIcon, { children: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "delete" }) }), (0, jsx_runtime_1.jsx)(material_1.ListItemText, { primary: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.contributionActionMenu.deleteContributionWithMotivation", defaultMessage: "ui.contributionActionMenu.deleteContributionWithMotivation" }) }), open ? (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "expand_less" }) : (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "expand_more" })] })), (0, jsx_runtime_1.jsx)(material_1.Collapse, Object.assign({ in: open, timeout: "auto", unmountOnExit: true }, { children: renderReports(ContributionsActionsMenu_1.DELETE_CONTRIBUTION_SECTION) }))] })) })) }, ContributionsActionsMenu_1.DELETE_CONTRIBUTION_SECTION));
673
634
  }
674
635
  /**
675
636
  * Can authenticated user modify the contribution
@@ -696,47 +657,23 @@ function ContributionActionsMenu(props) {
696
657
  * Renders section general
697
658
  */
698
659
  function renderGeneralSection() {
699
- return (react_1.default.createElement(material_1.Box, { key: ContributionsActionsMenu_1.GENERAL_SECTION },
700
- react_1.default.createElement(material_1.MenuItem, { className: classes.subItem, disabled: isFlagging },
701
- react_1.default.createElement(material_1.ListItemIcon, null,
702
- react_1.default.createElement(Icon_1.default, null, "link")),
703
- react_1.default.createElement(material_1.ListItemText, { primary: react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.contributionActionMenu.permanentLink", defaultMessage: "ui.contributionActionMenu.permanentLink" }), onClick: () => handleAction(ContributionsActionsMenu_1.GET_CONTRIBUTION_PERMALINK), classes: { root: classes.itemText } })),
704
- canModifyContribution() && (react_1.default.createElement(material_1.MenuItem, { className: classes.subItem, disabled: isFlagging },
705
- react_1.default.createElement(material_1.ListItemIcon, null,
706
- react_1.default.createElement(Icon_1.default, null, "edit")),
707
- react_1.default.createElement(material_1.ListItemText, { primary: react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.contributionActionMenu.editContribution", defaultMessage: "ui.contributionActionMenu.editContribution" }), onClick: () => handleAction(ContributionsActionsMenu_1.EDIT_CONTRIBUTION), classes: { root: classes.itemText } }))),
708
- canDeleteContribution() && (react_1.default.createElement(material_1.MenuItem, { className: classes.subItem, disabled: isFlagging },
709
- react_1.default.createElement(material_1.ListItemIcon, null, currentActionLoading === ContributionsActionsMenu_1.DELETE_CONTRIBUTION || currentActionLoading === ContributionsActionsMenu_1.RESTORE_CONTRIBUTION ? (react_1.default.createElement(material_1.CircularProgress, { size: 20 })) : (react_1.default.createElement(Icon_1.default, null, "delete"))),
710
- contributionObj.deleted ? (react_1.default.createElement(material_1.ListItemText, { primary: react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.contributionActionMenu.restoreContribution", defaultMessage: "ui.contributionActionMenu.restoreContribution" }), onClick: () => handleAction(ContributionsActionsMenu_1.RESTORE_CONTRIBUTION), classes: { root: classes.itemText } })) : (react_1.default.createElement(material_1.ListItemText, { primary: react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.contributionActionMenu.deleteContribution", defaultMessage: "ui.contributionActionMenu.deleteContribution" }), onClick: () => handleAction(ContributionsActionsMenu_1.DELETE_CONTRIBUTION), classes: { root: classes.itemText } })))),
711
- canSuspendNotificationContribution() && (react_1.default.createElement(material_1.MenuItem, { className: classes.subItem, disabled: isFlagging },
712
- react_1.default.createElement(material_1.ListItemIcon, null, currentActionLoading === ContributionsActionsMenu_1.SUSPEND_NOTIFICATION_CONTRIBUTION ? (react_1.default.createElement(material_1.CircularProgress, { size: 20 })) : contributionObj['suspended'] ? (react_1.default.createElement(Icon_1.default, null, "notifications_active")) : (react_1.default.createElement(Icon_1.default, null, "notifications_off"))),
713
- react_1.default.createElement(material_1.ListItemText, { primary: contributionObj['suspended'] ? (react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.contributionActionMenu.enableNotificationContribution", defaultMessage: "ui.contributionActionMenu.enableNotificationContribution" })) : (react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.contributionActionMenu.suspendNotificationContribution", defaultMessage: "ui.contributionActionMenu.suspendNotificationContribution" })), onClick: () => handleAction(ContributionsActionsMenu_1.SUSPEND_NOTIFICATION_CONTRIBUTION), classes: { root: classes.itemText } })))));
660
+ return ((0, jsx_runtime_1.jsxs)(material_1.Box, { children: [(0, jsx_runtime_1.jsxs)(material_1.MenuItem, Object.assign({ className: classes.subItem, disabled: isFlagging }, { children: [(0, jsx_runtime_1.jsx)(material_1.ListItemIcon, { children: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "link" }) }), (0, jsx_runtime_1.jsx)(material_1.ListItemText, { primary: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.contributionActionMenu.permanentLink", defaultMessage: "ui.contributionActionMenu.permanentLink" }), onClick: () => handleAction(ContributionsActionsMenu_1.GET_CONTRIBUTION_PERMALINK), classes: { root: classes.itemText } })] })), canModifyContribution() && ((0, jsx_runtime_1.jsxs)(material_1.MenuItem, Object.assign({ className: classes.subItem, disabled: isFlagging }, { children: [(0, jsx_runtime_1.jsx)(material_1.ListItemIcon, { children: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "edit" }) }), (0, jsx_runtime_1.jsx)(material_1.ListItemText, { primary: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.contributionActionMenu.editContribution", defaultMessage: "ui.contributionActionMenu.editContribution" }), onClick: () => handleAction(ContributionsActionsMenu_1.EDIT_CONTRIBUTION), classes: { root: classes.itemText } })] }))), canDeleteContribution() && ((0, jsx_runtime_1.jsxs)(material_1.MenuItem, Object.assign({ className: classes.subItem, disabled: isFlagging }, { children: [(0, jsx_runtime_1.jsx)(material_1.ListItemIcon, { children: currentActionLoading === ContributionsActionsMenu_1.DELETE_CONTRIBUTION || currentActionLoading === ContributionsActionsMenu_1.RESTORE_CONTRIBUTION ? ((0, jsx_runtime_1.jsx)(material_1.CircularProgress, { size: 20 })) : ((0, jsx_runtime_1.jsx)(Icon_1.default, { children: "delete" })) }), contributionObj.deleted ? ((0, jsx_runtime_1.jsx)(material_1.ListItemText, { primary: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.contributionActionMenu.restoreContribution", defaultMessage: "ui.contributionActionMenu.restoreContribution" }), onClick: () => handleAction(ContributionsActionsMenu_1.RESTORE_CONTRIBUTION), classes: { root: classes.itemText } })) : ((0, jsx_runtime_1.jsx)(material_1.ListItemText, { primary: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.contributionActionMenu.deleteContribution", defaultMessage: "ui.contributionActionMenu.deleteContribution" }), onClick: () => handleAction(ContributionsActionsMenu_1.DELETE_CONTRIBUTION), classes: { root: classes.itemText } }))] }))), canSuspendNotificationContribution() && ((0, jsx_runtime_1.jsxs)(material_1.MenuItem, Object.assign({ className: classes.subItem, disabled: isFlagging }, { children: [(0, jsx_runtime_1.jsx)(material_1.ListItemIcon, { children: currentActionLoading === ContributionsActionsMenu_1.SUSPEND_NOTIFICATION_CONTRIBUTION ? ((0, jsx_runtime_1.jsx)(material_1.CircularProgress, { size: 20 })) : contributionObj['suspended'] ? ((0, jsx_runtime_1.jsx)(Icon_1.default, { children: "notifications_active" })) : ((0, jsx_runtime_1.jsx)(Icon_1.default, { children: "notifications_off" })) }), (0, jsx_runtime_1.jsx)(material_1.ListItemText, { primary: contributionObj['suspended'] ? ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.contributionActionMenu.enableNotificationContribution", defaultMessage: "ui.contributionActionMenu.enableNotificationContribution" })) : ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.contributionActionMenu.suspendNotificationContribution", defaultMessage: "ui.contributionActionMenu.suspendNotificationContribution" })), onClick: () => handleAction(ContributionsActionsMenu_1.SUSPEND_NOTIFICATION_CONTRIBUTION), classes: { root: classes.itemText } })] })))] }, ContributionsActionsMenu_1.GENERAL_SECTION));
714
661
  }
715
662
  /**
716
663
  * Renders contribution menu content
717
664
  */
718
665
  function renderContent() {
719
- return (react_1.default.createElement(material_1.Box, null, isLoading || (!feedObj && !commentObj) ? (react_1.default.createElement(CentralProgress_1.default, { size: 30 })) : (react_1.default.createElement(material_1.MenuList, null,
720
- renderGeneralSection(),
721
- Boolean(extraSections.length) && react_1.default.createElement(material_1.Divider, null),
722
- extraSections.map((s, i) => (react_1.default.createElement(material_1.Box, { key: `es_${i}` }, extraSectionsRenders[s]())))))));
666
+ return ((0, jsx_runtime_1.jsx)(material_1.Box, { children: isLoading || (!feedObj && !commentObj) ? ((0, jsx_runtime_1.jsx)(CentralProgress_1.default, { size: 30 })) : ((0, jsx_runtime_1.jsxs)(material_1.MenuList, { children: [renderGeneralSection(), Boolean(extraSections.length) && (0, jsx_runtime_1.jsx)(material_1.Divider, {}), extraSections.map((s, i) => ((0, jsx_runtime_1.jsx)(material_1.Box, { children: extraSectionsRenders[s]() }, `es_${i}`)))] })) }));
723
667
  }
724
668
  /**
725
669
  * Renders component
726
670
  */
727
- return (react_1.default.createElement(Root, { className: (0, classnames_1.default)(classes.root, className) },
728
- react_1.default.createElement(material_1.IconButton, { ref: (ref) => {
729
- popperRef.current = ref;
730
- }, "aria-haspopup": "true", onClick: handleOpen, className: classes.button, size: "small" }, contributionObj && (contributionObj.collapsed || contributionObj.deleted) ? (react_1.default.createElement("span", { className: classes.visibilityIcons },
731
- contributionObj.collapsed ? react_1.default.createElement(Icon_1.default, null, "visibility_off") : react_1.default.createElement(Icon_1.default, null, "delete"),
732
- react_1.default.createElement(Icon_1.default, null, "expand_more"))) : (react_1.default.createElement(Icon_1.default, null, "more_vert"))),
733
- isMobile ? (react_1.default.createElement(material_1.SwipeableDrawer, { open: open, onClose: handleClose, onOpen: handleOpen, anchor: "bottom", disableSwipeToOpen: true }, renderContent())) : (react_1.default.createElement(PopperRoot, Object.assign({ open: open, anchorEl: popperRef.current, role: undefined, transition: true, className: classes.popperRoot }, PopperProps, { placement: "bottom-end" }), ({ TransitionProps, placement }) => (react_1.default.createElement(material_1.Grow, Object.assign({}, TransitionProps, { style: { transformOrigin: placement === 'bottom' ? 'center top' : 'center bottom' } }),
734
- react_1.default.createElement(material_1.Paper, { variant: 'outlined', className: classes.paper },
735
- react_1.default.createElement(material_1.ClickAwayListener, { onClickAway: handleClose }, renderContent())))))),
736
- openConfirmDialog && (react_1.default.createElement(ConfirmDialog_1.default, Object.assign({ open: openConfirmDialog }, (currentAction === ContributionsActionsMenu_1.DELETE_CONTRIBUTION
737
- ? {
738
- content: (react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.contributionActionMenu.deleteContributionInfo", defaultMessage: "ui.contributionActionMenu.deleteContributionInfo" }))
739
- }
740
- : {}), { onConfirm: handleConfirmedAction, isUpdating: Boolean(currentActionLoading), onClose: () => setOpenConfirmDialog(false) })))));
671
+ return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, { children: [(0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ ref: (ref) => {
672
+ popperRef.current = ref;
673
+ }, "aria-haspopup": "true", onClick: handleOpen, className: classes.button, size: "small" }, { children: contributionObj && (contributionObj.collapsed || contributionObj.deleted) ? ((0, jsx_runtime_1.jsxs)("span", Object.assign({ className: classes.visibilityIcons }, { children: [contributionObj.collapsed ? (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "visibility_off" }) : (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "delete" }), (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "expand_more" })] }))) : ((0, jsx_runtime_1.jsx)(Icon_1.default, { children: "more_vert" })) })), isMobile ? ((0, jsx_runtime_1.jsx)(material_1.SwipeableDrawer, Object.assign({ open: open, onClose: handleClose, onOpen: handleOpen, anchor: "bottom", disableSwipeToOpen: true }, { children: renderContent() }))) : ((0, jsx_runtime_1.jsx)(PopperRoot, Object.assign({ open: open, anchorEl: popperRef.current, role: undefined, transition: true, className: classes.popperRoot }, PopperProps, { placement: "bottom-end" }, { children: ({ TransitionProps, placement }) => ((0, jsx_runtime_1.jsx)(material_1.Grow, Object.assign({}, TransitionProps, { style: { transformOrigin: placement === 'bottom' ? 'center top' : 'center bottom' } }, { children: (0, jsx_runtime_1.jsx)(material_1.Paper, Object.assign({ variant: 'outlined', className: classes.paper }, { children: (0, jsx_runtime_1.jsx)(material_1.ClickAwayListener, Object.assign({ onClickAway: handleClose }, { children: renderContent() })) })) }))) }))), openConfirmDialog && ((0, jsx_runtime_1.jsx)(ConfirmDialog_1.default, Object.assign({ open: openConfirmDialog }, (currentAction === ContributionsActionsMenu_1.DELETE_CONTRIBUTION
674
+ ? {
675
+ content: ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.contributionActionMenu.deleteContributionInfo", defaultMessage: "ui.contributionActionMenu.deleteContributionInfo" }))
676
+ }
677
+ : {}), { onConfirm: handleConfirmedAction, isUpdating: Boolean(currentActionLoading), onClose: () => setOpenConfirmDialog(false) })))] })));
741
678
  }
742
679
  exports.default = ContributionActionsMenu;
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- const react_1 = tslib_1.__importStar(require("react"));
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const react_1 = require("react");
5
6
  const notistack_1 = require("notistack");
6
7
  const styles_1 = require("@mui/material/styles");
7
8
  const material_1 = require("@mui/material");
@@ -32,11 +33,6 @@ const CustomSnackMessage = (0, react_1.forwardRef)((props, ref) => {
32
33
  const handleDismiss = (0, react_1.useCallback)(() => {
33
34
  closeSnackbar(props.id);
34
35
  }, [props.id, closeSnackbar]);
35
- return (react_1.default.createElement(Root, { ref: ref, className: classes.root, key: props.id },
36
- react_1.default.createElement(Widget_1.default, { className: classes.card },
37
- react_1.default.createElement(material_1.CardContent, { className: classes.content },
38
- react_1.default.createElement(material_1.IconButton, { className: classes.close, onClick: handleDismiss },
39
- react_1.default.createElement(Icon_1.default, null, "close")),
40
- props.message))));
36
+ return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ ref: ref, className: classes.root }, { children: (0, jsx_runtime_1.jsx)(Widget_1.default, Object.assign({ className: classes.card }, { children: (0, jsx_runtime_1.jsxs)(material_1.CardContent, Object.assign({ className: classes.content }, { children: [(0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ className: classes.close, onClick: handleDismiss }, { children: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "close" }) })), props.message] })) })) }), props.id));
41
37
  });
42
38
  exports.default = CustomSnackMessage;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- const react_1 = tslib_1.__importDefault(require("react"));
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const styles_1 = require("@mui/material/styles");
6
6
  const material_1 = require("@mui/material");
7
7
  const Icon_1 = tslib_1.__importDefault(require("@mui/material/Icon"));
@@ -39,11 +39,7 @@ function DateTimeAgo(props) {
39
39
  */
40
40
  if (date) {
41
41
  const formattedDate = (0, formatRelativeTime_1.getRelativeTime)(date);
42
- return (react_1.default.createElement(Root, Object.assign({ component: "span", className: (0, classnames_1.default)(classes.root, className) }, rest),
43
- showStartIcon && react_1.default.createElement(Icon_1.default, null, "access_time"),
44
- react_1.default.createElement(material_1.Tooltip, { title: `${intl.formatDate(date, { year: 'numeric', month: 'numeric', day: 'numeric', hour: 'numeric', minute: 'numeric' })}`, enterTouchDelay: 0 },
45
- react_1.default.createElement(material_1.Typography, { variant: 'body2', component: 'span' },
46
- react_1.default.createElement(react_intl_1.FormattedRelativeTime, { value: -formattedDate.value, unit: formattedDate.unit, numeric: "auto" })))));
42
+ return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ component: "span", className: (0, classnames_1.default)(classes.root, className) }, rest, { children: [showStartIcon && (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "access_time" }), (0, jsx_runtime_1.jsx)(material_1.Tooltip, Object.assign({ title: `${intl.formatDate(date, { year: 'numeric', month: 'numeric', day: 'numeric', hour: 'numeric', minute: 'numeric' })}`, enterTouchDelay: 0 }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: 'body2', component: 'span' }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedRelativeTime, { value: -formattedDate.value, unit: formattedDate.unit, numeric: "auto" }) })) }))] })));
47
43
  }
48
44
  return null;
49
45
  }
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- const react_1 = tslib_1.__importStar(require("react"));
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const react_1 = require("react");
5
6
  const styles_1 = require("@mui/material/styles");
6
7
  const material_1 = require("@mui/material");
7
8
  const react_intl_1 = require("react-intl");
@@ -36,6 +37,6 @@ function PasswordTextField(props) {
36
37
  onChange && onChange(event);
37
38
  };
38
39
  // RENDER
39
- return react_1.default.createElement(Root, Object.assign({}, rest, { onChange: handleChange, error: Boolean(errorMsg) || error, helperText: errorMsg || helperText }));
40
+ return (0, jsx_runtime_1.jsx)(Root, Object.assign({}, rest, { onChange: handleChange, error: Boolean(errorMsg) || error, helperText: errorMsg || helperText }));
40
41
  }
41
42
  exports.default = PasswordTextField;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- const react_1 = tslib_1.__importDefault(require("react"));
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const styles_1 = require("@mui/material/styles");
6
6
  const material_1 = require("@mui/material");
7
7
  const emoji_picker_react_1 = require("emoji-picker-react");
@@ -29,6 +29,6 @@ function EmojiPicker(inProps) {
29
29
  name: PREFIX
30
30
  });
31
31
  const { className = '', emojiStyle = emoji_picker_react_1.EmojiStyle.NATIVE } = props, rest = tslib_1.__rest(props, ["className", "emojiStyle"]);
32
- return react_1.default.createElement(Root, { className: (0, classnames_1.default)(classes.root, className) }, Picker && react_1.default.createElement(Picker, Object.assign({ emojiStyle: emojiStyle }, rest)));
32
+ return (0, jsx_runtime_1.jsx)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, { children: Picker && (0, jsx_runtime_1.jsx)(Picker, Object.assign({ emojiStyle: emojiStyle }, rest)) }));
33
33
  }
34
34
  exports.default = EmojiPicker;
@@ -1,10 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ const jsx_runtime_1 = require("react/jsx-runtime");
3
4
  const material_1 = require("@mui/material");
4
5
  const react_core_1 = require("@selfcommunity/react-core");
6
+ const types_1 = require("@selfcommunity/types");
5
7
  const date_fns_1 = require("date-fns");
6
8
  const locale_1 = require("date-fns/locale");
7
- const react_1 = require("react");
8
9
  const react_intl_1 = require("react-intl");
9
10
  const LOCALE_MAP = {
10
11
  en: locale_1.enUS,
@@ -32,9 +33,8 @@ function EventInfoDetails(inProps) {
32
33
  const { event, hasCreatedInfo } = props;
33
34
  // HOOKS
34
35
  const intl = (0, react_intl_1.useIntl)();
35
- const privacy = event.privacy === 'public' ? 'ui.eventInfoDetails.privacy.public' : 'ui.eventInfoDetails.privacy.private';
36
- const location = event.location === 'virtual' ? 'ui.eventInfoDetails.location.virtual' : 'ui.eventInfoDetails.location.inPerson';
37
- const LocationComponent = event.location === 'virtual' ? react_core_1.Link : react_1.Fragment;
36
+ const privacy = event.privacy === types_1.SCEventPrivacyType.PUBLIC ? 'ui.eventInfoDetails.privacy.public' : 'ui.eventInfoDetails.privacy.private';
37
+ const location = event.location === types_1.SCEventLocationType.ONLINE ? 'ui.eventInfoDetails.location.virtual' : 'ui.eventInfoDetails.location.inPerson';
38
38
  const formatDateEventDate = (date) => {
39
39
  return (0, date_fns_1.format)(new Date(date), "EEEE d MMMM' - Ore 'H:mm", {
40
40
  locale: LOCALE_MAP[intl.locale]
@@ -45,23 +45,6 @@ function EventInfoDetails(inProps) {
45
45
  locale: LOCALE_MAP[intl.locale]
46
46
  }).replace(/Creato il (\d{1})+ ([a-z]+) (\d{4})/, (_, day, month, year) => `Creato il ${day} ${month.charAt(0).toUpperCase() + month.slice(1)} ${year}`);
47
47
  };
48
- return (React.createElement(Root, { className: classes.root },
49
- React.createElement(material_1.Stack, { className: classes.iconTextWrapper },
50
- React.createElement(material_1.Icon, { fontSize: "small" }, "CalendarIcon"),
51
- React.createElement(material_1.Typography, { variant: "body1" }, formatDateEventDate(event.start_date))),
52
- React.createElement(material_1.Stack, { className: classes.iconTextWrapper },
53
- React.createElement(material_1.Icon, { fontSize: "small" }, event.privacy === 'public' ? 'public' : 'private'),
54
- React.createElement(material_1.Typography, { variant: "body1" },
55
- React.createElement(react_intl_1.FormattedMessage, { id: privacy, defaultMessage: privacy })),
56
- "-",
57
- React.createElement(material_1.Typography, { variant: "body1" },
58
- React.createElement(react_intl_1.FormattedMessage, { id: location, defaultMessage: location }))),
59
- React.createElement(material_1.Stack, { className: classes.iconTextWrapper },
60
- React.createElement(material_1.Icon, { fontSize: "small" }, event.location === 'virtual' ? 'play_circle_outline' : 'add_location_alt'),
61
- React.createElement(LocationComponent, { to: event.link, target: "_blank", className: classes.link },
62
- React.createElement(material_1.Typography, { variant: "body1", className: classes.url }, event.location === 'virtual' ? event.link : event.geolocation))),
63
- hasCreatedInfo && (React.createElement(material_1.Stack, { className: classes.creationWrapper },
64
- React.createElement(material_1.Icon, { fontSize: "small" }, "create"),
65
- React.createElement(material_1.Typography, { variant: "body1" }, formatDateCreateDate(event.created_at))))));
48
+ return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: classes.root }, { children: [(0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ className: classes.iconTextWrapper }, { children: [(0, jsx_runtime_1.jsx)(material_1.Icon, Object.assign({ fontSize: "small" }, { children: "CalendarIcon" })), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body1" }, { children: formatDateEventDate(event.start_date) }))] })), (0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ className: classes.iconTextWrapper }, { children: [(0, jsx_runtime_1.jsx)(material_1.Icon, Object.assign({ fontSize: "small" }, { children: event.privacy === types_1.SCEventPrivacyType.PUBLIC ? 'public' : 'private' })), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body1" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: privacy, defaultMessage: privacy }) })), "-", (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body1" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: location, defaultMessage: location }) }))] })), (0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ className: classes.iconTextWrapper }, { children: [(0, jsx_runtime_1.jsx)(material_1.Icon, Object.assign({ fontSize: "small" }, { children: event.location === types_1.SCEventLocationType.ONLINE ? 'play_circle_outline' : 'add_location_alt' })), event.location === types_1.SCEventLocationType.ONLINE ? ((0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: event.link, target: "_blank", className: classes.link }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body1", className: classes.url }, { children: event.link })) }))) : ((0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body1", className: classes.url }, { children: event.geolocation })))] })), hasCreatedInfo && ((0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ className: classes.creationWrapper }, { children: [(0, jsx_runtime_1.jsx)(material_1.Icon, Object.assign({ fontSize: "small" }, { children: "create" })), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body1" }, { children: formatDateCreateDate(event.created_at) }))] })))] })));
66
49
  }
67
50
  exports.default = EventInfoDetails;
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- const react_1 = tslib_1.__importDefault(require("react"));
3
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
4
  const styles_1 = require("@mui/material/styles");
6
5
  const PREFIX = 'SCHiddenPlaceholder';
7
6
  const Root = (0, styles_1.styled)('div', {
@@ -14,6 +13,6 @@ const Root = (0, styles_1.styled)('div', {
14
13
  display: 'none'
15
14
  }));
16
15
  function HiddenPlaceholder(props) {
17
- return react_1.default.createElement(Root, Object.assign({}, props));
16
+ return (0, jsx_runtime_1.jsx)(Root, Object.assign({}, props));
18
17
  }
19
18
  exports.default = HiddenPlaceholder;