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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (610) hide show
  1. package/lib/cjs/components/AccountChangeMailValidation/AccountChangeMailValidation.js +3 -8
  2. package/lib/cjs/components/AccountDataPortability/AccountDataPortability.js +16 -25
  3. package/lib/cjs/components/AccountDataPortabilityButton/AccountDataPortabilityButton.js +3 -6
  4. package/lib/cjs/components/AccountDelete/AccountDelete.js +16 -23
  5. package/lib/cjs/components/AccountDeleteButton/AccountDeleteButton.js +3 -6
  6. package/lib/cjs/components/AccountRecover/AccountRecover.js +8 -12
  7. package/lib/cjs/components/AccountReset/AccountReset.js +3 -12
  8. package/lib/cjs/components/AccountVerify/AccountVerify.js +3 -8
  9. package/lib/cjs/components/BottomNavigation/BottomNavigation.js +19 -20
  10. package/lib/cjs/components/BroadcastMessages/BroadcastMessages.js +3 -10
  11. package/lib/cjs/components/BroadcastMessages/Message.js +6 -23
  12. package/lib/cjs/components/BroadcastMessages/Skeleton.js +3 -15
  13. package/lib/cjs/components/Categories/Categories.js +5 -10
  14. package/lib/cjs/components/Categories/Skeleton.js +2 -4
  15. package/lib/cjs/components/CategoriesPopularWidget/CategoriesPopularWidget.js +5 -17
  16. package/lib/cjs/components/CategoriesPopularWidget/Skeleton.js +2 -2
  17. package/lib/cjs/components/CategoriesSuggestionWidget/CategoriesSuggestionWidget.js +5 -17
  18. package/lib/cjs/components/CategoriesSuggestionWidget/Skeleton.js +2 -5
  19. package/lib/cjs/components/Category/Category.js +4 -4
  20. package/lib/cjs/components/Category/Skeleton.js +2 -3
  21. package/lib/cjs/components/CategoryAutocomplete/CategoryAutocomplete.js +6 -9
  22. package/lib/cjs/components/CategoryFollowButton/CategoryFollowButton.js +3 -2
  23. package/lib/cjs/components/CategoryFollowersButton/CategoryFollowersButton.js +3 -8
  24. package/lib/cjs/components/CategoryHeader/CategoryHeader.js +3 -12
  25. package/lib/cjs/components/CategoryHeader/Skeleton.js +2 -7
  26. package/lib/cjs/components/CategoryTrendingFeedWidget/CategoryTrendingFeedWidget.js +7 -19
  27. package/lib/cjs/components/CategoryTrendingFeedWidget/Skeleton.js +2 -4
  28. package/lib/cjs/components/CategoryTrendingUsersWidget/CategoryTrendingUsersWidget.js +5 -17
  29. package/lib/cjs/components/CategoryTrendingUsersWidget/Skeleton.js +2 -5
  30. package/lib/cjs/components/ChangeCover/ChangeCover.js +18 -41
  31. package/lib/cjs/components/ChangeGroupCover/ChangeGroupCover.js +4 -6
  32. package/lib/cjs/components/ChangeGroupPicture/ChangeGroupPicture.js +4 -6
  33. package/lib/cjs/components/ChangePicture/ChangePicture.js +3 -4
  34. package/lib/cjs/components/ChangePicture/ChangePictureDialog/ChangePictureDialog.js +10 -22
  35. package/lib/cjs/components/CommentObject/CommentObject.js +11 -37
  36. package/lib/cjs/components/CommentObject/Skeleton.js +2 -6
  37. package/lib/cjs/components/CommentObjectReply/CommentObjectReply.js +3 -12
  38. package/lib/cjs/components/CommentsFeedObject/CommentsFeedObject.js +8 -14
  39. package/lib/cjs/components/CommentsFeedObject/Skeleton.js +2 -3
  40. package/lib/cjs/components/CommentsObject/CommentsObject.js +27 -48
  41. package/lib/cjs/components/CommentsObject/Skeleton.js +2 -2
  42. package/lib/cjs/components/Composer/Attributes/Attributes.js +5 -8
  43. package/lib/cjs/components/Composer/Composer.js +24 -46
  44. package/lib/cjs/components/Composer/Content/ContentDiscussion/ContentDiscussion.js +8 -11
  45. package/lib/cjs/components/Composer/Content/ContentPoll/ContentPoll.js +9 -28
  46. package/lib/cjs/components/Composer/Content/ContentPost/ContentPost.js +3 -5
  47. package/lib/cjs/components/Composer/Layer/AudienceLayer/AudienceLayer.js +13 -31
  48. package/lib/cjs/components/Composer/Layer/CategoryLayer/CategoryLayer.js +2 -10
  49. package/lib/cjs/components/Composer/Layer/CloseLayer/CloseLayer.js +2 -16
  50. package/lib/cjs/components/Composer/Layer/LocationLayer/LocationLayer.js +2 -10
  51. package/lib/cjs/components/Composer/Skeleton.js +2 -3
  52. package/lib/cjs/components/Composer/TypeSwitchButtonGroup/TypeSwitchButtonGroup.js +3 -8
  53. package/lib/cjs/components/ComposerIconButton/ComposerIconButton.js +5 -8
  54. package/lib/cjs/components/ConnectionUserButton/ConnectionUserButton.js +2 -1
  55. package/lib/cjs/components/ConsentSolution/ConsentSolution.js +9 -58
  56. package/lib/cjs/components/ConsentSolution/Skeleton.js +3 -16
  57. package/lib/cjs/components/ConsentSolutionButton/ConsentSolutionButton.js +2 -4
  58. package/lib/cjs/components/CreateEventButton/CreateEventButton.js +2 -3
  59. package/lib/cjs/components/CreateGroupButton/CreateGroupButton.js +3 -4
  60. package/lib/cjs/components/CustomAdv/CustomAdv.js +5 -6
  61. package/lib/cjs/components/CustomAdv/Skeleton.js +2 -3
  62. package/lib/cjs/components/EditEventButton/EditEventButton.js +2 -3
  63. package/lib/cjs/components/EditGroupButton/EditGroupButton.js +2 -3
  64. package/lib/cjs/components/Editor/Editor.js +3 -21
  65. package/lib/cjs/components/Editor/Skeleton.js +2 -3
  66. package/lib/cjs/components/Editor/nodes/ImageNode.js +5 -6
  67. package/lib/cjs/components/Editor/plugins/AutoLinkPlugin.js +2 -11
  68. package/lib/cjs/components/Editor/plugins/EmojiPlugin.js +12 -15
  69. package/lib/cjs/components/Editor/plugins/FloatingLinkPlugin.js +7 -13
  70. package/lib/cjs/components/Editor/plugins/HashtagPlugin.js +11 -11
  71. package/lib/cjs/components/Editor/plugins/ImagePlugin.js +9 -10
  72. package/lib/cjs/components/Editor/plugins/LexicalRichTextPlugin.js +2 -12
  73. package/lib/cjs/components/Editor/plugins/MentionsPlugin.js +11 -16
  74. package/lib/cjs/components/Editor/plugins/OnChangePlugin.js +2 -3
  75. package/lib/cjs/components/Editor/plugins/ToolbarPlugin.js +9 -40
  76. package/lib/cjs/components/Editor/shared/useDecorators.js +2 -4
  77. package/lib/cjs/components/Event/Event.js +3 -10
  78. package/lib/cjs/components/Event/Skeleton.js +2 -8
  79. package/lib/cjs/components/EventForm/EventAddress.js +6 -14
  80. package/lib/cjs/components/EventForm/EventForm.js +46 -86
  81. package/lib/cjs/components/EventForm/UploadEventCover.js +4 -6
  82. package/lib/cjs/components/EventHeader/EventHeader.js +36 -52
  83. package/lib/cjs/components/EventHeader/Skeleton.js +2 -12
  84. package/lib/cjs/components/EventInfoWidget/EventInfoWidget.js +11 -13
  85. package/lib/cjs/components/EventInfoWidget/Skeleton.d.ts +1 -0
  86. package/lib/cjs/components/EventInfoWidget/Skeleton.js +20 -0
  87. package/lib/cjs/components/EventInfoWidget/index.d.ts +2 -1
  88. package/lib/cjs/components/EventInfoWidget/index.js +3 -1
  89. package/lib/cjs/components/EventInviteButton/EventInviteButton.js +4 -24
  90. package/lib/cjs/components/EventLocationWidget/EventLocationWidget.js +8 -16
  91. package/lib/cjs/components/EventLocationWidget/Skeleton.js +2 -8
  92. package/lib/cjs/components/EventSubscribeButton/EventSubscribeButton.js +12 -15
  93. package/lib/cjs/components/Events/Events.js +25 -52
  94. package/lib/cjs/components/Events/Skeleton.js +2 -4
  95. package/lib/cjs/components/Feed/Feed.js +11 -29
  96. package/lib/cjs/components/Feed/Skeleton.js +3 -12
  97. package/lib/cjs/components/FeedObject/Actions/Actions.js +2 -8
  98. package/lib/cjs/components/FeedObject/Actions/Comment/Comment.js +5 -11
  99. package/lib/cjs/components/FeedObject/Actions/Follow/Follow.js +6 -6
  100. package/lib/cjs/components/FeedObject/Actions/Share/Share.js +29 -60
  101. package/lib/cjs/components/FeedObject/Actions/Share/SharesDialog/SharesDialog.js +3 -5
  102. package/lib/cjs/components/FeedObject/Actions/Vote/Vote.js +2 -5
  103. package/lib/cjs/components/FeedObject/Activities/Activities.js +9 -10
  104. package/lib/cjs/components/FeedObject/Activities/ActivitiesMenu/ActivitiesMenu.js +23 -37
  105. package/lib/cjs/components/FeedObject/Activities/RelevantActivities/CommentActivity/CommentActivity.js +18 -20
  106. package/lib/cjs/components/FeedObject/Activities/RelevantActivities/FollowActivity/FollowActivity.js +5 -7
  107. package/lib/cjs/components/FeedObject/Activities/RelevantActivities/PollVoteActivity/PollVoteActivity.js +5 -7
  108. package/lib/cjs/components/FeedObject/Activities/RelevantActivities/RelevantActivities.js +7 -12
  109. package/lib/cjs/components/FeedObject/Activities/RelevantActivities/VoteUpActivity/VoteUpActivity.js +5 -7
  110. package/lib/cjs/components/FeedObject/Contributors/Contributors.js +3 -13
  111. package/lib/cjs/components/FeedObject/Contributors/Skeleton.js +2 -6
  112. package/lib/cjs/components/FeedObject/FeedObject.js +23 -110
  113. package/lib/cjs/components/FeedObject/Poll/Choice/Choice.js +3 -8
  114. package/lib/cjs/components/FeedObject/Poll/Poll.js +5 -21
  115. package/lib/cjs/components/FeedObject/Skeleton.js +4 -16
  116. package/lib/cjs/components/FeedObjectMediaPreview/FeedObjectMediaPreview.js +5 -6
  117. package/lib/cjs/components/FeedUpdatesWidget/FeedUpdatesWidget.js +5 -8
  118. package/lib/cjs/components/FeedUpdatesWidget/Skeleton.js +2 -2
  119. package/lib/cjs/components/FollowUserButton/FollowUserButton.js +5 -4
  120. package/lib/cjs/components/Footer/Footer.js +4 -7
  121. package/lib/cjs/components/Footer/Skeleton.js +2 -4
  122. package/lib/cjs/components/FriendshipUserButton/FriendshipUserButton.js +9 -8
  123. package/lib/cjs/components/Group/Group.js +7 -13
  124. package/lib/cjs/components/Group/Skeleton.js +2 -3
  125. package/lib/cjs/components/GroupAutocomplete/GroupAutocomplete.js +5 -8
  126. package/lib/cjs/components/GroupForm/GroupForm.js +36 -75
  127. package/lib/cjs/components/GroupHeader/GroupHeader.js +6 -34
  128. package/lib/cjs/components/GroupHeader/Skeleton.js +2 -12
  129. package/lib/cjs/components/GroupInfoWidget/GroupInfoWidget.js +24 -54
  130. package/lib/cjs/components/GroupInfoWidget/Skeleton.js +2 -3
  131. package/lib/cjs/components/GroupInviteButton/GroupInviteButton.js +4 -24
  132. package/lib/cjs/components/GroupInvitedWidget/GroupInvitedWidget.js +5 -18
  133. package/lib/cjs/components/GroupInvitedWidget/Skeleton.js +2 -3
  134. package/lib/cjs/components/GroupMembersButton/GroupMembersButton.js +3 -8
  135. package/lib/cjs/components/GroupMembersWidget/GroupMembersWidget.js +11 -28
  136. package/lib/cjs/components/GroupMembersWidget/Skeleton.js +2 -3
  137. package/lib/cjs/components/GroupRequestsWidget/GroupRequestsWidget.js +5 -16
  138. package/lib/cjs/components/GroupRequestsWidget/Skeleton.js +2 -3
  139. package/lib/cjs/components/GroupSettingsIconButton/GroupSettingsIconButton.js +13 -21
  140. package/lib/cjs/components/GroupSubscribeButton/GroupSubscribeButton.js +8 -7
  141. package/lib/cjs/components/Groups/Groups.js +10 -23
  142. package/lib/cjs/components/Groups/Skeleton.js +2 -4
  143. package/lib/cjs/components/Incubator/Incubator.js +8 -28
  144. package/lib/cjs/components/Incubator/Skeleton.js +2 -20
  145. package/lib/cjs/components/IncubatorDetail/IncubatorDetail.js +4 -46
  146. package/lib/cjs/components/IncubatorListWidget/CreateIncubatorDialog/CreateIncubatorDialog.js +5 -12
  147. package/lib/cjs/components/IncubatorListWidget/IncubatorListWidget.js +8 -32
  148. package/lib/cjs/components/IncubatorListWidget/Skeleton.js +2 -4
  149. package/lib/cjs/components/IncubatorSubscribeButton/IncubatorSubscribeButton.js +3 -2
  150. package/lib/cjs/components/IncubatorSuggestionWidget/IncubatorSuggestionWidget.js +5 -18
  151. package/lib/cjs/components/IncubatorSuggestionWidget/Skeleton.js +2 -4
  152. package/lib/cjs/components/InlineComposerWidget/InlineComposerWidget.js +5 -11
  153. package/lib/cjs/components/InlineComposerWidget/Skeleton.js +2 -7
  154. package/lib/cjs/components/LocationAutocomplete/LocationAutocomplete.js +6 -7
  155. package/lib/cjs/components/LoyaltyProgramWidget/LoyaltyProgramWidget.js +5 -13
  156. package/lib/cjs/components/LoyaltyProgramWidget/Skeleton.js +2 -11
  157. package/lib/cjs/components/NavigationMenuIconButton/DefaultDrawerContent.js +3 -11
  158. package/lib/cjs/components/NavigationMenuIconButton/DefaultHeaderContent.js +3 -4
  159. package/lib/cjs/components/NavigationMenuIconButton/NavigationMenuIconButton.js +4 -13
  160. package/lib/cjs/components/NavigationSettingsIconButton/NavigationSettingsIconButton.js +35 -75
  161. package/lib/cjs/components/NavigationToolbar/NavigationToolbar.js +14 -51
  162. package/lib/cjs/components/NavigationToolbar/NotificationMenu.js +2 -5
  163. package/lib/cjs/components/NavigationToolbar/Skeleton.js +2 -5
  164. package/lib/cjs/components/NavigationToolbarMobile/NavigationToolbarMobile.js +11 -27
  165. package/lib/cjs/components/NavigationToolbarMobile/Skeleton.js +2 -3
  166. package/lib/cjs/components/Notification/CollapsedFor/CollapsedFor.js +2 -15
  167. package/lib/cjs/components/Notification/Comment/Comment.js +11 -27
  168. package/lib/cjs/components/Notification/Contribution/Contribution.js +11 -28
  169. package/lib/cjs/components/Notification/ContributionFollow/ContributionFollow.js +4 -19
  170. package/lib/cjs/components/Notification/DeletedFor/DeletedFor.js +2 -17
  171. package/lib/cjs/components/Notification/Group/Group.js +17 -30
  172. package/lib/cjs/components/Notification/IncubatorApproved/IncubatorApproved.js +8 -16
  173. package/lib/cjs/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.js +2 -9
  174. package/lib/cjs/components/Notification/KindlyNoticeFor/KindlyNoticeFor.js +4 -16
  175. package/lib/cjs/components/Notification/Mention/Mention.js +7 -22
  176. package/lib/cjs/components/Notification/Notification.js +37 -57
  177. package/lib/cjs/components/Notification/PrivateMessage/PrivateMessage.js +24 -47
  178. package/lib/cjs/components/Notification/Skeleton.js +3 -7
  179. package/lib/cjs/components/Notification/UndeletedFor/UndeletedFor.js +2 -16
  180. package/lib/cjs/components/Notification/UserBlocked/UserBlocked.js +5 -7
  181. package/lib/cjs/components/Notification/UserConnection/UserConnection.js +5 -15
  182. package/lib/cjs/components/Notification/UserFollow/UserFollow.js +5 -15
  183. package/lib/cjs/components/Notification/VoteUp/VoteUp.js +6 -19
  184. package/lib/cjs/components/PlatformWidget/PlatformWidget.js +20 -53
  185. package/lib/cjs/components/PlatformWidget/Skeleton.js +2 -3
  186. package/lib/cjs/components/PollSuggestionWidget/PollSnippet/PollSnippet.js +3 -12
  187. package/lib/cjs/components/PollSuggestionWidget/PollSnippet/Skeleton.js +2 -2
  188. package/lib/cjs/components/PollSuggestionWidget/PollSuggestionWidget.js +5 -17
  189. package/lib/cjs/components/PollSuggestionWidget/Skeleton.js +2 -6
  190. package/lib/cjs/components/PrivateMessageComponent/PrivateMessageComponent.js +6 -9
  191. package/lib/cjs/components/PrivateMessageComponent/Skeleton.js +2 -6
  192. package/lib/cjs/components/PrivateMessageEditor/MessageMediaUploader/index.js +16 -37
  193. package/lib/cjs/components/PrivateMessageEditor/PrivateMessageEditor.js +9 -18
  194. package/lib/cjs/components/PrivateMessageEditor/Skeleton.js +2 -3
  195. package/lib/cjs/components/PrivateMessageSettingsIconButton/PrivateMessageSettingsIconButton.js +9 -31
  196. package/lib/cjs/components/PrivateMessageSnippetItem/PrivateMessageSnippetItem.js +12 -19
  197. package/lib/cjs/components/PrivateMessageSnippetItem/Skeleton.js +2 -5
  198. package/lib/cjs/components/PrivateMessageSnippets/PrivateMessageSnippets.js +8 -16
  199. package/lib/cjs/components/PrivateMessageSnippets/Skeleton.js +2 -8
  200. package/lib/cjs/components/PrivateMessageThread/PrivateMessageThread.js +14 -35
  201. package/lib/cjs/components/PrivateMessageThread/Skeleton.js +2 -9
  202. package/lib/cjs/components/PrivateMessageThreadItem/PrivateMessageThreadItem.js +15 -33
  203. package/lib/cjs/components/PrivateMessageThreadItem/Skeleton.js +2 -3
  204. package/lib/cjs/components/RelatedFeedObjectsWidget/RelatedFeedObjectsWidget.js +6 -21
  205. package/lib/cjs/components/RelatedFeedObjectsWidget/Skeleton.js +2 -3
  206. package/lib/cjs/components/SearchAutocomplete/SearchAutocomplete.js +5 -8
  207. package/lib/cjs/components/SearchDialog/SearchDialog.js +2 -4
  208. package/lib/cjs/components/Skeleton/AvatarGroupSkeleton.js +2 -3
  209. package/lib/cjs/components/Skeleton/GenericSkeleton.js +2 -6
  210. package/lib/cjs/components/SnippetNotifications/Skeleton.js +3 -3
  211. package/lib/cjs/components/SnippetNotifications/SnippetNotifications.js +23 -28
  212. package/lib/cjs/components/ToastNotifications/Skeleton.js +2 -3
  213. package/lib/cjs/components/ToastNotifications/ToastNotifications.js +16 -15
  214. package/lib/cjs/components/User/Skeleton.js +2 -3
  215. package/lib/cjs/components/User/User.js +6 -14
  216. package/lib/cjs/components/UserActionIconButton/UserActionIconButton.js +16 -31
  217. package/lib/cjs/components/UserConnectionsRequestsSentWidget/Skeleton.js +2 -3
  218. package/lib/cjs/components/UserConnectionsRequestsSentWidget/UserConnectionsRequestsSentWidget.js +5 -17
  219. package/lib/cjs/components/UserConnectionsRequestsWidget/Skeleton.js +2 -3
  220. package/lib/cjs/components/UserConnectionsRequestsWidget/UserConnectionsRequestsWidget.js +5 -17
  221. package/lib/cjs/components/UserConnectionsWidget/Skeleton.js +2 -3
  222. package/lib/cjs/components/UserConnectionsWidget/UserConnectionsWidget.js +5 -17
  223. package/lib/cjs/components/UserCounters/UserCounters.js +19 -28
  224. package/lib/cjs/components/UserFollowedCategoriesWidget/Skeleton.js +2 -2
  225. package/lib/cjs/components/UserFollowedCategoriesWidget/UserFollowedCategoriesWidget.js +5 -20
  226. package/lib/cjs/components/UserFollowedUsersWidget/Skeleton.js +2 -3
  227. package/lib/cjs/components/UserFollowedUsersWidget/UserFollowedUsersWidget.js +5 -17
  228. package/lib/cjs/components/UserFollowersWidget/Skeleton.js +2 -3
  229. package/lib/cjs/components/UserFollowersWidget/UserFollowersWidget.js +5 -17
  230. package/lib/cjs/components/UserInfo/Skeleton.js +2 -6
  231. package/lib/cjs/components/UserInfo/UserInfo.js +13 -14
  232. package/lib/cjs/components/UserInfoDialog/UserInfoDialog.js +3 -5
  233. package/lib/cjs/components/UserProfileBlocked/UserProfileBlocked.js +4 -11
  234. package/lib/cjs/components/UserProfileEdit/Section/Account.js +3 -13
  235. package/lib/cjs/components/UserProfileEdit/Section/AccountCredentials.js +15 -37
  236. package/lib/cjs/components/UserProfileEdit/Section/PublicInfo.js +15 -25
  237. package/lib/cjs/components/UserProfileEdit/Section/Settings.js +7 -37
  238. package/lib/cjs/components/UserProfileEdit/Section/SettingsSkeleton.js +2 -5
  239. package/lib/cjs/components/UserProfileEdit/Skeleton.js +2 -6
  240. package/lib/cjs/components/UserProfileEdit/UserProfileEdit.js +2 -9
  241. package/lib/cjs/components/UserProfileHeader/Skeleton.js +2 -13
  242. package/lib/cjs/components/UserProfileHeader/UserProfileHeader.js +4 -21
  243. package/lib/cjs/components/UserSocialAssociation/UserSocialAssociation.js +2 -16
  244. package/lib/cjs/components/UserSubscribedGroupsWidget/Skeleton.js +2 -6
  245. package/lib/cjs/components/UserSubscribedGroupsWidget/UserSubscribedGroupsWidget.js +7 -22
  246. package/lib/cjs/components/UserSuggestionWidget/Skeleton.js +2 -5
  247. package/lib/cjs/components/UserSuggestionWidget/UserSuggestionWidget.js +5 -17
  248. package/lib/cjs/components/VoteAudienceButton/VoteAudienceButton.js +9 -23
  249. package/lib/cjs/components/VoteButton/VoteButton.js +9 -15
  250. package/lib/cjs/components/Widget/index.js +3 -2
  251. package/lib/cjs/shared/AutoPlayer/index.js +6 -7
  252. package/lib/cjs/shared/BaseDialog/BaseDialog.js +3 -10
  253. package/lib/cjs/shared/BaseItem/BaseItem.js +4 -10
  254. package/lib/cjs/shared/BaseItemButton/BaseItemButton.js +4 -10
  255. package/lib/cjs/shared/Bullet/index.js +2 -1
  256. package/lib/cjs/shared/Calendar/index.js +2 -3
  257. package/lib/cjs/shared/CentralProgress/index.js +3 -4
  258. package/lib/cjs/shared/ConfirmDialog/ConfirmDialog.js +2 -9
  259. package/lib/cjs/shared/ConsentSolutionSwitch/index.js +5 -8
  260. package/lib/cjs/shared/ContributionActionsMenu/index.js +22 -85
  261. package/lib/cjs/shared/CustomSnackMessage/index.js +3 -7
  262. package/lib/cjs/shared/DateTimeAgo/index.js +2 -6
  263. package/lib/cjs/shared/EmailTextField/index.js +3 -2
  264. package/lib/cjs/shared/EmojiPicker/EmojiPicker.js +2 -2
  265. package/lib/cjs/shared/EventInfoDetails/index.js +5 -22
  266. package/lib/cjs/shared/HiddenPlaceholder/index.js +2 -3
  267. package/lib/cjs/shared/InfiniteScroll/index.js +8 -19
  268. package/lib/cjs/shared/InfiniteScroll/stories/InfiniteScrollWithHeight.js +3 -8
  269. package/lib/cjs/shared/InfiniteScroll/stories/PullDownToRefreshInfScroll.js +3 -7
  270. package/lib/cjs/shared/InfiniteScroll/stories/ScrollableTargetFixedInfScroll.js +13 -18
  271. package/lib/cjs/shared/InfiniteScroll/stories/ScrollableTargetInfScroll.js +3 -8
  272. package/lib/cjs/shared/InfiniteScroll/stories/ScrolleableTop.js +6 -11
  273. package/lib/cjs/shared/InfiniteScroll/stories/WindowInfiniteScrollComponent.js +3 -6
  274. package/lib/cjs/shared/LanguageSwitcher/index.js +3 -5
  275. package/lib/cjs/shared/Lightbox/Lightbox.js +4 -3
  276. package/lib/cjs/shared/MarkRead/MarkRead.js +3 -3
  277. package/lib/cjs/shared/Media/File/DisplayComponent.js +13 -42
  278. package/lib/cjs/shared/Media/File/Lightbox/index.js +5 -5
  279. package/lib/cjs/shared/Media/File/PreviewComponent.js +5 -9
  280. package/lib/cjs/shared/Media/File/TriggerButton.js +14 -25
  281. package/lib/cjs/shared/Media/File/asUploadButton.js +3 -2
  282. package/lib/cjs/shared/Media/Link/DisplayComponent.js +8 -15
  283. package/lib/cjs/shared/Media/Link/LayerComponent.js +2 -11
  284. package/lib/cjs/shared/Media/Link/PreviewComponent.js +2 -4
  285. package/lib/cjs/shared/Media/Link/TriggerButton.js +2 -3
  286. package/lib/cjs/shared/Media/Link/UrlTextField/index.js +5 -7
  287. package/lib/cjs/shared/Media/Share/DisplayComponent.js +3 -3
  288. package/lib/cjs/shared/MetadataField/MetadataField.js +8 -7
  289. package/lib/cjs/shared/NewChip/NewChip.js +2 -2
  290. package/lib/cjs/shared/NotificationItem/NotificationItem.js +3 -12
  291. package/lib/cjs/shared/PasswordTextField/index.js +4 -6
  292. package/lib/cjs/shared/PhoneTextField/index.js +3 -2
  293. package/lib/cjs/shared/ScrollContainer/index.js +2 -2
  294. package/lib/cjs/shared/StickyBox/index.js +6 -5
  295. package/lib/cjs/shared/TagChip/index.js +2 -2
  296. package/lib/cjs/shared/Tags/index.js +11 -23
  297. package/lib/cjs/shared/UrlTextField/index.js +3 -2
  298. package/lib/cjs/shared/UserAvatar/UserAvatar.js +3 -2
  299. package/lib/cjs/shared/UserDeletedSnackBar/UserDeletedSnackBar.js +3 -5
  300. package/lib/cjs/shared/UsernameTextField/index.js +3 -2
  301. package/lib/cjs/shared/VirtualizedScroller/VirtualScrollerChild.js +2 -2
  302. package/lib/cjs/shared/VirtualizedScroller/VirtualizedScroller.js +3 -2
  303. package/lib/cjs/utils/contribution.js +3 -4
  304. package/lib/cjs/utils/errors.js +3 -4
  305. package/lib/esm/components/AccountChangeMailValidation/AccountChangeMailValidation.js +3 -8
  306. package/lib/esm/components/AccountDataPortability/AccountDataPortability.js +16 -25
  307. package/lib/esm/components/AccountDataPortabilityButton/AccountDataPortabilityButton.js +3 -6
  308. package/lib/esm/components/AccountDelete/AccountDelete.js +16 -23
  309. package/lib/esm/components/AccountDeleteButton/AccountDeleteButton.js +3 -6
  310. package/lib/esm/components/AccountRecover/AccountRecover.js +8 -12
  311. package/lib/esm/components/AccountReset/AccountReset.js +3 -12
  312. package/lib/esm/components/AccountVerify/AccountVerify.js +3 -8
  313. package/lib/esm/components/BottomNavigation/BottomNavigation.js +19 -20
  314. package/lib/esm/components/BroadcastMessages/BroadcastMessages.js +3 -10
  315. package/lib/esm/components/BroadcastMessages/Message.js +6 -23
  316. package/lib/esm/components/BroadcastMessages/Skeleton.js +3 -15
  317. package/lib/esm/components/Categories/Categories.js +5 -10
  318. package/lib/esm/components/Categories/Skeleton.js +2 -4
  319. package/lib/esm/components/CategoriesPopularWidget/CategoriesPopularWidget.js +5 -17
  320. package/lib/esm/components/CategoriesPopularWidget/Skeleton.js +2 -2
  321. package/lib/esm/components/CategoriesSuggestionWidget/CategoriesSuggestionWidget.js +5 -17
  322. package/lib/esm/components/CategoriesSuggestionWidget/Skeleton.js +2 -5
  323. package/lib/esm/components/Category/Category.js +4 -4
  324. package/lib/esm/components/Category/Skeleton.js +2 -3
  325. package/lib/esm/components/CategoryAutocomplete/CategoryAutocomplete.js +6 -9
  326. package/lib/esm/components/CategoryFollowButton/CategoryFollowButton.js +3 -2
  327. package/lib/esm/components/CategoryFollowersButton/CategoryFollowersButton.js +3 -8
  328. package/lib/esm/components/CategoryHeader/CategoryHeader.js +3 -12
  329. package/lib/esm/components/CategoryHeader/Skeleton.js +2 -7
  330. package/lib/esm/components/CategoryTrendingFeedWidget/CategoryTrendingFeedWidget.js +7 -19
  331. package/lib/esm/components/CategoryTrendingFeedWidget/Skeleton.js +2 -4
  332. package/lib/esm/components/CategoryTrendingUsersWidget/CategoryTrendingUsersWidget.js +5 -17
  333. package/lib/esm/components/CategoryTrendingUsersWidget/Skeleton.js +2 -5
  334. package/lib/esm/components/ChangeCover/ChangeCover.js +18 -41
  335. package/lib/esm/components/ChangeGroupCover/ChangeGroupCover.js +4 -6
  336. package/lib/esm/components/ChangeGroupPicture/ChangeGroupPicture.js +4 -6
  337. package/lib/esm/components/ChangePicture/ChangePicture.js +3 -4
  338. package/lib/esm/components/ChangePicture/ChangePictureDialog/ChangePictureDialog.js +10 -22
  339. package/lib/esm/components/CommentObject/CommentObject.js +11 -37
  340. package/lib/esm/components/CommentObject/Skeleton.js +2 -6
  341. package/lib/esm/components/CommentObjectReply/CommentObjectReply.js +3 -12
  342. package/lib/esm/components/CommentsFeedObject/CommentsFeedObject.js +8 -14
  343. package/lib/esm/components/CommentsFeedObject/Skeleton.js +2 -2
  344. package/lib/esm/components/CommentsObject/CommentsObject.js +27 -48
  345. package/lib/esm/components/CommentsObject/Skeleton.js +2 -2
  346. package/lib/esm/components/Composer/Attributes/Attributes.js +5 -8
  347. package/lib/esm/components/Composer/Composer.js +24 -46
  348. package/lib/esm/components/Composer/Content/ContentDiscussion/ContentDiscussion.js +8 -11
  349. package/lib/esm/components/Composer/Content/ContentPoll/ContentPoll.js +9 -28
  350. package/lib/esm/components/Composer/Content/ContentPost/ContentPost.js +3 -5
  351. package/lib/esm/components/Composer/Layer/AudienceLayer/AudienceLayer.js +13 -31
  352. package/lib/esm/components/Composer/Layer/CategoryLayer/CategoryLayer.js +2 -10
  353. package/lib/esm/components/Composer/Layer/CloseLayer/CloseLayer.js +2 -16
  354. package/lib/esm/components/Composer/Layer/LocationLayer/LocationLayer.js +2 -10
  355. package/lib/esm/components/Composer/Skeleton.js +2 -3
  356. package/lib/esm/components/Composer/TypeSwitchButtonGroup/TypeSwitchButtonGroup.js +3 -8
  357. package/lib/esm/components/ComposerIconButton/ComposerIconButton.js +5 -8
  358. package/lib/esm/components/ConnectionUserButton/ConnectionUserButton.js +2 -1
  359. package/lib/esm/components/ConsentSolution/ConsentSolution.js +9 -58
  360. package/lib/esm/components/ConsentSolution/Skeleton.js +3 -16
  361. package/lib/esm/components/ConsentSolutionButton/ConsentSolutionButton.js +2 -4
  362. package/lib/esm/components/CreateEventButton/CreateEventButton.js +2 -3
  363. package/lib/esm/components/CreateGroupButton/CreateGroupButton.js +3 -4
  364. package/lib/esm/components/CustomAdv/CustomAdv.js +5 -6
  365. package/lib/esm/components/CustomAdv/Skeleton.js +2 -2
  366. package/lib/esm/components/EditEventButton/EditEventButton.js +2 -3
  367. package/lib/esm/components/EditGroupButton/EditGroupButton.js +2 -3
  368. package/lib/esm/components/Editor/Editor.js +3 -21
  369. package/lib/esm/components/Editor/Skeleton.js +2 -2
  370. package/lib/esm/components/Editor/nodes/ImageNode.js +5 -5
  371. package/lib/esm/components/Editor/plugins/AutoLinkPlugin.js +2 -10
  372. package/lib/esm/components/Editor/plugins/EmojiPlugin.js +12 -15
  373. package/lib/esm/components/Editor/plugins/FloatingLinkPlugin.js +7 -13
  374. package/lib/esm/components/Editor/plugins/HashtagPlugin.js +11 -11
  375. package/lib/esm/components/Editor/plugins/ImagePlugin.js +9 -10
  376. package/lib/esm/components/Editor/plugins/LexicalRichTextPlugin.js +2 -12
  377. package/lib/esm/components/Editor/plugins/MentionsPlugin.js +11 -16
  378. package/lib/esm/components/Editor/plugins/OnChangePlugin.js +2 -2
  379. package/lib/esm/components/Editor/plugins/ToolbarPlugin.js +9 -40
  380. package/lib/esm/components/Editor/shared/useDecorators.js +2 -3
  381. package/lib/esm/components/Event/Event.js +3 -10
  382. package/lib/esm/components/Event/Skeleton.js +2 -8
  383. package/lib/esm/components/EventForm/EventAddress.js +6 -14
  384. package/lib/esm/components/EventForm/EventForm.js +46 -86
  385. package/lib/esm/components/EventForm/UploadEventCover.js +4 -6
  386. package/lib/esm/components/EventHeader/EventHeader.js +36 -52
  387. package/lib/esm/components/EventHeader/Skeleton.js +2 -12
  388. package/lib/esm/components/EventInfoWidget/EventInfoWidget.js +11 -13
  389. package/lib/esm/components/EventInfoWidget/Skeleton.d.ts +1 -0
  390. package/lib/esm/components/EventInfoWidget/Skeleton.js +16 -0
  391. package/lib/esm/components/EventInfoWidget/index.d.ts +2 -1
  392. package/lib/esm/components/EventInfoWidget/index.js +2 -1
  393. package/lib/esm/components/EventInviteButton/EventInviteButton.js +4 -24
  394. package/lib/esm/components/EventLocationWidget/EventLocationWidget.js +8 -16
  395. package/lib/esm/components/EventLocationWidget/Skeleton.js +2 -8
  396. package/lib/esm/components/EventSubscribeButton/EventSubscribeButton.js +12 -15
  397. package/lib/esm/components/Events/Events.js +25 -52
  398. package/lib/esm/components/Events/Skeleton.js +2 -4
  399. package/lib/esm/components/Feed/Feed.js +11 -29
  400. package/lib/esm/components/Feed/Skeleton.js +3 -12
  401. package/lib/esm/components/FeedObject/Actions/Actions.js +2 -8
  402. package/lib/esm/components/FeedObject/Actions/Comment/Comment.js +5 -11
  403. package/lib/esm/components/FeedObject/Actions/Follow/Follow.js +6 -6
  404. package/lib/esm/components/FeedObject/Actions/Share/Share.js +29 -60
  405. package/lib/esm/components/FeedObject/Actions/Share/SharesDialog/SharesDialog.js +3 -5
  406. package/lib/esm/components/FeedObject/Actions/Vote/Vote.js +2 -5
  407. package/lib/esm/components/FeedObject/Activities/Activities.js +9 -10
  408. package/lib/esm/components/FeedObject/Activities/ActivitiesMenu/ActivitiesMenu.js +23 -37
  409. package/lib/esm/components/FeedObject/Activities/RelevantActivities/CommentActivity/CommentActivity.js +18 -20
  410. package/lib/esm/components/FeedObject/Activities/RelevantActivities/FollowActivity/FollowActivity.js +5 -7
  411. package/lib/esm/components/FeedObject/Activities/RelevantActivities/PollVoteActivity/PollVoteActivity.js +5 -7
  412. package/lib/esm/components/FeedObject/Activities/RelevantActivities/RelevantActivities.js +7 -12
  413. package/lib/esm/components/FeedObject/Activities/RelevantActivities/VoteUpActivity/VoteUpActivity.js +5 -7
  414. package/lib/esm/components/FeedObject/Contributors/Contributors.js +3 -13
  415. package/lib/esm/components/FeedObject/Contributors/Skeleton.js +2 -6
  416. package/lib/esm/components/FeedObject/FeedObject.js +23 -110
  417. package/lib/esm/components/FeedObject/Poll/Choice/Choice.js +3 -8
  418. package/lib/esm/components/FeedObject/Poll/Poll.js +5 -21
  419. package/lib/esm/components/FeedObject/Skeleton.js +4 -16
  420. package/lib/esm/components/FeedObjectMediaPreview/FeedObjectMediaPreview.js +5 -6
  421. package/lib/esm/components/FeedUpdatesWidget/FeedUpdatesWidget.js +5 -8
  422. package/lib/esm/components/FeedUpdatesWidget/Skeleton.js +2 -2
  423. package/lib/esm/components/FollowUserButton/FollowUserButton.js +5 -4
  424. package/lib/esm/components/Footer/Footer.js +4 -7
  425. package/lib/esm/components/Footer/Skeleton.js +2 -4
  426. package/lib/esm/components/FriendshipUserButton/FriendshipUserButton.js +9 -8
  427. package/lib/esm/components/Group/Group.js +7 -13
  428. package/lib/esm/components/Group/Skeleton.js +2 -3
  429. package/lib/esm/components/GroupAutocomplete/GroupAutocomplete.js +5 -8
  430. package/lib/esm/components/GroupForm/GroupForm.js +36 -75
  431. package/lib/esm/components/GroupHeader/GroupHeader.js +6 -34
  432. package/lib/esm/components/GroupHeader/Skeleton.js +2 -12
  433. package/lib/esm/components/GroupInfoWidget/GroupInfoWidget.js +24 -54
  434. package/lib/esm/components/GroupInfoWidget/Skeleton.js +2 -2
  435. package/lib/esm/components/GroupInviteButton/GroupInviteButton.js +4 -24
  436. package/lib/esm/components/GroupInvitedWidget/GroupInvitedWidget.js +5 -18
  437. package/lib/esm/components/GroupInvitedWidget/Skeleton.js +2 -2
  438. package/lib/esm/components/GroupMembersButton/GroupMembersButton.js +3 -8
  439. package/lib/esm/components/GroupMembersWidget/GroupMembersWidget.js +11 -28
  440. package/lib/esm/components/GroupMembersWidget/Skeleton.js +2 -2
  441. package/lib/esm/components/GroupRequestsWidget/GroupRequestsWidget.js +5 -16
  442. package/lib/esm/components/GroupRequestsWidget/Skeleton.js +2 -2
  443. package/lib/esm/components/GroupSettingsIconButton/GroupSettingsIconButton.js +13 -21
  444. package/lib/esm/components/GroupSubscribeButton/GroupSubscribeButton.js +8 -7
  445. package/lib/esm/components/Groups/Groups.js +10 -23
  446. package/lib/esm/components/Groups/Skeleton.js +2 -4
  447. package/lib/esm/components/Incubator/Incubator.js +8 -28
  448. package/lib/esm/components/Incubator/Skeleton.js +2 -20
  449. package/lib/esm/components/IncubatorDetail/IncubatorDetail.js +4 -46
  450. package/lib/esm/components/IncubatorListWidget/CreateIncubatorDialog/CreateIncubatorDialog.js +5 -12
  451. package/lib/esm/components/IncubatorListWidget/IncubatorListWidget.js +8 -32
  452. package/lib/esm/components/IncubatorListWidget/Skeleton.js +2 -4
  453. package/lib/esm/components/IncubatorSubscribeButton/IncubatorSubscribeButton.js +3 -2
  454. package/lib/esm/components/IncubatorSuggestionWidget/IncubatorSuggestionWidget.js +5 -18
  455. package/lib/esm/components/IncubatorSuggestionWidget/Skeleton.js +2 -4
  456. package/lib/esm/components/InlineComposerWidget/InlineComposerWidget.js +5 -11
  457. package/lib/esm/components/InlineComposerWidget/Skeleton.js +2 -7
  458. package/lib/esm/components/LocationAutocomplete/LocationAutocomplete.js +6 -7
  459. package/lib/esm/components/LoyaltyProgramWidget/LoyaltyProgramWidget.js +5 -13
  460. package/lib/esm/components/LoyaltyProgramWidget/Skeleton.js +2 -11
  461. package/lib/esm/components/NavigationMenuIconButton/DefaultDrawerContent.js +3 -11
  462. package/lib/esm/components/NavigationMenuIconButton/DefaultHeaderContent.js +3 -4
  463. package/lib/esm/components/NavigationMenuIconButton/NavigationMenuIconButton.js +4 -13
  464. package/lib/esm/components/NavigationSettingsIconButton/NavigationSettingsIconButton.js +35 -75
  465. package/lib/esm/components/NavigationToolbar/NavigationToolbar.js +14 -51
  466. package/lib/esm/components/NavigationToolbar/NotificationMenu.js +2 -5
  467. package/lib/esm/components/NavigationToolbar/Skeleton.js +2 -5
  468. package/lib/esm/components/NavigationToolbarMobile/NavigationToolbarMobile.js +11 -27
  469. package/lib/esm/components/NavigationToolbarMobile/Skeleton.js +2 -3
  470. package/lib/esm/components/Notification/CollapsedFor/CollapsedFor.js +2 -15
  471. package/lib/esm/components/Notification/Comment/Comment.js +11 -27
  472. package/lib/esm/components/Notification/Contribution/Contribution.js +11 -28
  473. package/lib/esm/components/Notification/ContributionFollow/ContributionFollow.js +4 -19
  474. package/lib/esm/components/Notification/DeletedFor/DeletedFor.js +2 -17
  475. package/lib/esm/components/Notification/Group/Group.js +17 -30
  476. package/lib/esm/components/Notification/IncubatorApproved/IncubatorApproved.js +8 -16
  477. package/lib/esm/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.js +2 -9
  478. package/lib/esm/components/Notification/KindlyNoticeFor/KindlyNoticeFor.js +4 -16
  479. package/lib/esm/components/Notification/Mention/Mention.js +7 -22
  480. package/lib/esm/components/Notification/Notification.js +37 -57
  481. package/lib/esm/components/Notification/PrivateMessage/PrivateMessage.js +24 -47
  482. package/lib/esm/components/Notification/Skeleton.js +3 -7
  483. package/lib/esm/components/Notification/UndeletedFor/UndeletedFor.js +2 -16
  484. package/lib/esm/components/Notification/UserBlocked/UserBlocked.js +5 -7
  485. package/lib/esm/components/Notification/UserConnection/UserConnection.js +5 -15
  486. package/lib/esm/components/Notification/UserFollow/UserFollow.js +5 -15
  487. package/lib/esm/components/Notification/VoteUp/VoteUp.js +6 -19
  488. package/lib/esm/components/PlatformWidget/PlatformWidget.js +20 -53
  489. package/lib/esm/components/PlatformWidget/Skeleton.js +2 -2
  490. package/lib/esm/components/PollSuggestionWidget/PollSnippet/PollSnippet.js +3 -12
  491. package/lib/esm/components/PollSuggestionWidget/PollSnippet/Skeleton.js +2 -2
  492. package/lib/esm/components/PollSuggestionWidget/PollSuggestionWidget.js +5 -17
  493. package/lib/esm/components/PollSuggestionWidget/Skeleton.js +2 -6
  494. package/lib/esm/components/PrivateMessageComponent/PrivateMessageComponent.js +6 -9
  495. package/lib/esm/components/PrivateMessageComponent/Skeleton.js +2 -6
  496. package/lib/esm/components/PrivateMessageEditor/MessageMediaUploader/index.js +16 -37
  497. package/lib/esm/components/PrivateMessageEditor/PrivateMessageEditor.js +9 -18
  498. package/lib/esm/components/PrivateMessageEditor/Skeleton.js +2 -2
  499. package/lib/esm/components/PrivateMessageSettingsIconButton/PrivateMessageSettingsIconButton.js +9 -31
  500. package/lib/esm/components/PrivateMessageSnippetItem/PrivateMessageSnippetItem.js +12 -19
  501. package/lib/esm/components/PrivateMessageSnippetItem/Skeleton.js +2 -5
  502. package/lib/esm/components/PrivateMessageSnippets/PrivateMessageSnippets.js +8 -16
  503. package/lib/esm/components/PrivateMessageSnippets/Skeleton.js +2 -8
  504. package/lib/esm/components/PrivateMessageThread/PrivateMessageThread.js +14 -35
  505. package/lib/esm/components/PrivateMessageThread/Skeleton.js +2 -9
  506. package/lib/esm/components/PrivateMessageThreadItem/PrivateMessageThreadItem.js +15 -33
  507. package/lib/esm/components/PrivateMessageThreadItem/Skeleton.js +2 -3
  508. package/lib/esm/components/RelatedFeedObjectsWidget/RelatedFeedObjectsWidget.js +6 -21
  509. package/lib/esm/components/RelatedFeedObjectsWidget/Skeleton.js +2 -2
  510. package/lib/esm/components/SearchAutocomplete/SearchAutocomplete.js +5 -8
  511. package/lib/esm/components/SearchDialog/SearchDialog.js +2 -4
  512. package/lib/esm/components/Skeleton/AvatarGroupSkeleton.js +2 -3
  513. package/lib/esm/components/Skeleton/GenericSkeleton.js +2 -6
  514. package/lib/esm/components/SnippetNotifications/Skeleton.js +3 -3
  515. package/lib/esm/components/SnippetNotifications/SnippetNotifications.js +23 -28
  516. package/lib/esm/components/ToastNotifications/Skeleton.js +2 -2
  517. package/lib/esm/components/ToastNotifications/ToastNotifications.js +16 -15
  518. package/lib/esm/components/User/Skeleton.js +2 -3
  519. package/lib/esm/components/User/User.js +6 -14
  520. package/lib/esm/components/UserActionIconButton/UserActionIconButton.js +16 -31
  521. package/lib/esm/components/UserConnectionsRequestsSentWidget/Skeleton.js +2 -2
  522. package/lib/esm/components/UserConnectionsRequestsSentWidget/UserConnectionsRequestsSentWidget.js +5 -17
  523. package/lib/esm/components/UserConnectionsRequestsWidget/Skeleton.js +2 -2
  524. package/lib/esm/components/UserConnectionsRequestsWidget/UserConnectionsRequestsWidget.js +5 -17
  525. package/lib/esm/components/UserConnectionsWidget/Skeleton.js +2 -2
  526. package/lib/esm/components/UserConnectionsWidget/UserConnectionsWidget.js +5 -17
  527. package/lib/esm/components/UserCounters/UserCounters.js +19 -28
  528. package/lib/esm/components/UserFollowedCategoriesWidget/Skeleton.js +2 -2
  529. package/lib/esm/components/UserFollowedCategoriesWidget/UserFollowedCategoriesWidget.js +5 -20
  530. package/lib/esm/components/UserFollowedUsersWidget/Skeleton.js +2 -2
  531. package/lib/esm/components/UserFollowedUsersWidget/UserFollowedUsersWidget.js +5 -17
  532. package/lib/esm/components/UserFollowersWidget/Skeleton.js +2 -2
  533. package/lib/esm/components/UserFollowersWidget/UserFollowersWidget.js +5 -17
  534. package/lib/esm/components/UserInfo/Skeleton.js +2 -6
  535. package/lib/esm/components/UserInfo/UserInfo.js +13 -14
  536. package/lib/esm/components/UserInfoDialog/UserInfoDialog.js +3 -5
  537. package/lib/esm/components/UserProfileBlocked/UserProfileBlocked.js +4 -11
  538. package/lib/esm/components/UserProfileEdit/Section/Account.js +3 -13
  539. package/lib/esm/components/UserProfileEdit/Section/AccountCredentials.js +15 -37
  540. package/lib/esm/components/UserProfileEdit/Section/PublicInfo.js +15 -25
  541. package/lib/esm/components/UserProfileEdit/Section/Settings.js +7 -37
  542. package/lib/esm/components/UserProfileEdit/Section/SettingsSkeleton.js +2 -5
  543. package/lib/esm/components/UserProfileEdit/Skeleton.js +2 -6
  544. package/lib/esm/components/UserProfileEdit/UserProfileEdit.js +2 -9
  545. package/lib/esm/components/UserProfileHeader/Skeleton.js +2 -13
  546. package/lib/esm/components/UserProfileHeader/UserProfileHeader.js +4 -21
  547. package/lib/esm/components/UserSocialAssociation/UserSocialAssociation.js +2 -16
  548. package/lib/esm/components/UserSubscribedGroupsWidget/Skeleton.js +2 -6
  549. package/lib/esm/components/UserSubscribedGroupsWidget/UserSubscribedGroupsWidget.js +7 -22
  550. package/lib/esm/components/UserSuggestionWidget/Skeleton.js +2 -5
  551. package/lib/esm/components/UserSuggestionWidget/UserSuggestionWidget.js +5 -17
  552. package/lib/esm/components/VoteAudienceButton/VoteAudienceButton.js +9 -23
  553. package/lib/esm/components/VoteButton/VoteButton.js +9 -15
  554. package/lib/esm/components/Widget/index.js +3 -2
  555. package/lib/esm/shared/AutoPlayer/index.js +5 -6
  556. package/lib/esm/shared/BaseDialog/BaseDialog.js +3 -10
  557. package/lib/esm/shared/BaseItem/BaseItem.js +4 -10
  558. package/lib/esm/shared/BaseItemButton/BaseItemButton.js +4 -10
  559. package/lib/esm/shared/Bullet/index.js +2 -1
  560. package/lib/esm/shared/Calendar/index.js +2 -3
  561. package/lib/esm/shared/CentralProgress/index.js +3 -4
  562. package/lib/esm/shared/ConfirmDialog/ConfirmDialog.js +2 -9
  563. package/lib/esm/shared/ConsentSolutionSwitch/index.js +5 -8
  564. package/lib/esm/shared/ContributionActionsMenu/index.js +22 -85
  565. package/lib/esm/shared/CustomSnackMessage/index.js +3 -7
  566. package/lib/esm/shared/DateTimeAgo/index.js +2 -6
  567. package/lib/esm/shared/EmailTextField/index.js +3 -2
  568. package/lib/esm/shared/EmojiPicker/EmojiPicker.js +2 -2
  569. package/lib/esm/shared/EventInfoDetails/index.js +5 -22
  570. package/lib/esm/shared/HiddenPlaceholder/index.js +2 -2
  571. package/lib/esm/shared/InfiniteScroll/index.js +8 -18
  572. package/lib/esm/shared/InfiniteScroll/stories/InfiniteScrollWithHeight.js +3 -8
  573. package/lib/esm/shared/InfiniteScroll/stories/PullDownToRefreshInfScroll.js +3 -7
  574. package/lib/esm/shared/InfiniteScroll/stories/ScrollableTargetFixedInfScroll.js +13 -18
  575. package/lib/esm/shared/InfiniteScroll/stories/ScrollableTargetInfScroll.js +3 -8
  576. package/lib/esm/shared/InfiniteScroll/stories/ScrolleableTop.js +6 -11
  577. package/lib/esm/shared/InfiniteScroll/stories/WindowInfiniteScrollComponent.js +3 -6
  578. package/lib/esm/shared/LanguageSwitcher/index.js +3 -5
  579. package/lib/esm/shared/Lightbox/Lightbox.js +4 -3
  580. package/lib/esm/shared/MarkRead/MarkRead.js +3 -3
  581. package/lib/esm/shared/Media/File/DisplayComponent.js +13 -42
  582. package/lib/esm/shared/Media/File/Lightbox/index.js +5 -5
  583. package/lib/esm/shared/Media/File/PreviewComponent.js +5 -9
  584. package/lib/esm/shared/Media/File/TriggerButton.js +14 -25
  585. package/lib/esm/shared/Media/File/asUploadButton.js +3 -2
  586. package/lib/esm/shared/Media/Link/DisplayComponent.js +8 -15
  587. package/lib/esm/shared/Media/Link/LayerComponent.js +2 -11
  588. package/lib/esm/shared/Media/Link/PreviewComponent.js +2 -4
  589. package/lib/esm/shared/Media/Link/TriggerButton.js +2 -3
  590. package/lib/esm/shared/Media/Link/UrlTextField/index.js +5 -7
  591. package/lib/esm/shared/Media/Share/DisplayComponent.js +3 -3
  592. package/lib/esm/shared/MetadataField/MetadataField.js +8 -7
  593. package/lib/esm/shared/NewChip/NewChip.js +2 -2
  594. package/lib/esm/shared/NotificationItem/NotificationItem.js +3 -12
  595. package/lib/esm/shared/PasswordTextField/index.js +4 -6
  596. package/lib/esm/shared/PhoneTextField/index.js +3 -2
  597. package/lib/esm/shared/ScrollContainer/index.js +2 -2
  598. package/lib/esm/shared/StickyBox/index.js +3 -2
  599. package/lib/esm/shared/TagChip/index.js +2 -2
  600. package/lib/esm/shared/Tags/index.js +11 -23
  601. package/lib/esm/shared/UrlTextField/index.js +3 -2
  602. package/lib/esm/shared/UserAvatar/UserAvatar.js +3 -2
  603. package/lib/esm/shared/UserDeletedSnackBar/UserDeletedSnackBar.js +3 -5
  604. package/lib/esm/shared/UsernameTextField/index.js +3 -2
  605. package/lib/esm/shared/VirtualizedScroller/VirtualScrollerChild.js +2 -2
  606. package/lib/esm/shared/VirtualizedScroller/VirtualizedScroller.js +3 -2
  607. package/lib/esm/utils/contribution.js +3 -3
  608. package/lib/esm/utils/errors.js +3 -3
  609. package/lib/umd/react-ui.js +1 -1
  610. package/package.json +7 -7
@@ -1,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;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- const react_1 = tslib_1.__importStar(require("react"));
3
+ const jsx_runtime_1 = require("react/jsx-runtime");
4
+ const react_1 = require("react");
5
5
  const throttle_debounce_1 = require("throttle-debounce");
6
6
  const threshold_1 = require("../../utils/threshold");
7
7
  class InfiniteScroll extends react_1.Component {
@@ -225,23 +225,12 @@ class InfiniteScroll extends react_1.Component {
225
225
  // because heighted infiniteScroll visualy breaks
226
226
  // on drag down as overflow becomes visible
227
227
  const outerDivStyle = this.props.pullDownToRefresh && this.props.height ? { overflow: 'auto' } : {};
228
- return (react_1.default.createElement("div", { style: outerDivStyle, className: "infinite-scroll-component__outerdiv" },
229
- react_1.default.createElement("div", { className: `infinite-scroll-component ${this.props.className || ''}`, ref: (infScroll) => (this._infScroll = infScroll), style: style },
230
- this.props.header,
231
- this.props.pullDownToRefresh && (react_1.default.createElement("div", { style: { position: 'relative' }, ref: (pullDown) => (this._pullDown = pullDown) },
232
- react_1.default.createElement("div", { style: {
233
- position: 'absolute',
234
- left: 0,
235
- right: 0,
236
- top: -1 * this.maxPullDownDistance
237
- } }, this.state.pullToRefreshThresholdBreached ? this.props.releaseToRefreshContent : this.props.pullDownToRefreshContent))),
238
- !this.props.inverse && this.state.showLoaderPrevious && this.props.hasMorePrevious && this.props.loaderPrevious,
239
- this.props.children,
240
- this.props.inverse && this.state.showLoaderPrevious && this.props.hasMorePrevious && this.props.loaderPrevious,
241
- !this.state.showLoaderNext && !hasChildren && this.props.hasMoreNext && this.props.loaderNext,
242
- this.state.showLoaderNext && this.props.hasMoreNext && this.props.loaderNext,
243
- !this.props.hasMoreNext && this.props.endMessage,
244
- this.props.footer)));
228
+ return ((0, jsx_runtime_1.jsx)("div", Object.assign({ style: outerDivStyle, className: "infinite-scroll-component__outerdiv" }, { children: (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: `infinite-scroll-component ${this.props.className || ''}`, ref: (infScroll) => (this._infScroll = infScroll), style: style }, { children: [this.props.header, this.props.pullDownToRefresh && ((0, jsx_runtime_1.jsx)("div", Object.assign({ style: { position: 'relative' }, ref: (pullDown) => (this._pullDown = pullDown) }, { children: (0, jsx_runtime_1.jsx)("div", Object.assign({ style: {
229
+ position: 'absolute',
230
+ left: 0,
231
+ right: 0,
232
+ top: -1 * this.maxPullDownDistance
233
+ } }, { children: this.state.pullToRefreshThresholdBreached ? this.props.releaseToRefreshContent : this.props.pullDownToRefreshContent })) }))), !this.props.inverse && this.state.showLoaderPrevious && this.props.hasMorePrevious && this.props.loaderPrevious, this.props.children, this.props.inverse && this.state.showLoaderPrevious && this.props.hasMorePrevious && this.props.loaderPrevious, !this.state.showLoaderNext && !hasChildren && this.props.hasMoreNext && this.props.loaderNext, this.state.showLoaderNext && this.props.hasMoreNext && this.props.loaderNext, !this.props.hasMoreNext && this.props.endMessage, this.props.footer] })) })));
245
234
  }
246
235
  }
247
236
  exports.default = InfiniteScroll;
@@ -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 index_1 = tslib_1.__importDefault(require("../index"));
6
7
  const style = {
7
8
  height: 30,
@@ -23,12 +24,6 @@ function InfiniteScrollWithHeight() {
23
24
  setItems(items.concat(Array.from({ length: 20 })));
24
25
  }, 500);
25
26
  };
26
- return (react_1.default.createElement("div", null,
27
- react_1.default.createElement("h1", null, "demo: Infinite Scroll with fixed height"),
28
- react_1.default.createElement("hr", null),
29
- react_1.default.createElement(index_1.default, { dataLength: items.length, next: fetchMoreData, hasMoreNext: hasMore, loaderNext: react_1.default.createElement("h4", null, "Loading..."), height: 400, endMessage: react_1.default.createElement("p", { style: { textAlign: 'center' } },
30
- react_1.default.createElement("b", null, "Yay! You have seen it all")) }, items.map((_, index) => (react_1.default.createElement("div", { style: style, key: index },
31
- "div - #",
32
- index))))));
27
+ return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h1", { children: "demo: Infinite Scroll with fixed height" }), (0, jsx_runtime_1.jsx)("hr", {}), (0, jsx_runtime_1.jsx)(index_1.default, Object.assign({ dataLength: items.length, next: fetchMoreData, hasMoreNext: hasMore, loaderNext: (0, jsx_runtime_1.jsx)("h4", { children: "Loading..." }), height: 400, endMessage: (0, jsx_runtime_1.jsx)("p", Object.assign({ style: { textAlign: 'center' } }, { children: (0, jsx_runtime_1.jsx)("b", { children: "Yay! You have seen it all" }) })) }, { children: items.map((_, index) => ((0, jsx_runtime_1.jsxs)("div", Object.assign({ style: style }, { children: ["div - #", index] }), index))) }))] }));
33
28
  }
34
29
  exports.default = InfiniteScrollWithHeight;
@@ -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 index_1 = tslib_1.__importDefault(require("../index"));
6
7
  const style = {
7
8
  height: 30,
@@ -18,11 +19,6 @@ function PullDownToRefreshInfScroll() {
18
19
  setItems(items.concat(Array.from({ length: 20 })));
19
20
  }, 1500);
20
21
  };
21
- return (react_1.default.createElement("div", null,
22
- react_1.default.createElement("h1", null, "demo: Pull down to refresh"),
23
- react_1.default.createElement("hr", null),
24
- react_1.default.createElement(index_1.default, { dataLength: items.length, hasMoreNext: true, next: fetchMoreData, loaderNext: react_1.default.createElement("h4", null, "Loading..."), pullDownToRefresh: true, pullDownToRefreshContent: react_1.default.createElement("h3", { style: { textAlign: 'center' } }, "\u2193 Pull down to refresh"), releaseToRefreshContent: react_1.default.createElement("h3", { style: { textAlign: 'center' } }, "\u2191 Release to refresh"), refreshFunction: fetchMoreData }, items.map((_, index) => (react_1.default.createElement("div", { style: style, key: index },
25
- "div - #",
26
- index))))));
22
+ return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h1", { children: "demo: Pull down to refresh" }), (0, jsx_runtime_1.jsx)("hr", {}), (0, jsx_runtime_1.jsx)(index_1.default, Object.assign({ dataLength: items.length, hasMoreNext: true, next: fetchMoreData, loaderNext: (0, jsx_runtime_1.jsx)("h4", { children: "Loading..." }), pullDownToRefresh: true, pullDownToRefreshContent: (0, jsx_runtime_1.jsx)("h3", Object.assign({ style: { textAlign: 'center' } }, { children: "\u2193 Pull down to refresh" })), releaseToRefreshContent: (0, jsx_runtime_1.jsx)("h3", Object.assign({ style: { textAlign: 'center' } }, { children: "\u2191 Release to refresh" })), refreshFunction: fetchMoreData }, { children: items.map((_, index) => ((0, jsx_runtime_1.jsxs)("div", Object.assign({ style: style }, { children: ["div - #", index] }), index))) }))] }));
27
23
  }
28
24
  exports.default = PullDownToRefreshInfScroll;
@@ -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 index_1 = tslib_1.__importDefault(require("../index"));
6
7
  const style = {
7
8
  height: 30,
@@ -18,22 +19,16 @@ function ScrollableTargetFixedInfScroll() {
18
19
  setItems(items.concat(Array.from({ length: 20 })));
19
20
  }, 1500);
20
21
  };
21
- return (react_1.default.createElement("div", null,
22
- react_1.default.createElement("h1", null, "demo: Infinite Scroll with scrollable target FIXED"),
23
- react_1.default.createElement("hr", null),
24
- react_1.default.createElement("div", { id: "scrollableDiv", style: {
25
- position: 'fixed',
26
- bottom: 0,
27
- left: 0,
28
- right: 0,
29
- top: 170,
30
- zIndex: 1000,
31
- maxWidth: '100% !important',
32
- height: '50vh',
33
- overflowY: 'scroll'
34
- } },
35
- react_1.default.createElement(index_1.default, { dataLength: items.length, hasMoreNext: true, next: fetchMoreData, loaderNext: react_1.default.createElement("h4", null, "Loading..."), scrollableTarget: "scrollableDiv" }, items.map((_, index) => (react_1.default.createElement("div", { style: style, key: index },
36
- "div - #",
37
- index)))))));
22
+ return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h1", { children: "demo: Infinite Scroll with scrollable target FIXED" }), (0, jsx_runtime_1.jsx)("hr", {}), (0, jsx_runtime_1.jsx)("div", Object.assign({ id: "scrollableDiv", style: {
23
+ position: 'fixed',
24
+ bottom: 0,
25
+ left: 0,
26
+ right: 0,
27
+ top: 170,
28
+ zIndex: 1000,
29
+ maxWidth: '100% !important',
30
+ height: '50vh',
31
+ overflowY: 'scroll'
32
+ } }, { children: (0, jsx_runtime_1.jsx)(index_1.default, Object.assign({ dataLength: items.length, hasMoreNext: true, next: fetchMoreData, loaderNext: (0, jsx_runtime_1.jsx)("h4", { children: "Loading..." }), scrollableTarget: "scrollableDiv" }, { children: items.map((_, index) => ((0, jsx_runtime_1.jsxs)("div", Object.assign({ style: style }, { children: ["div - #", index] }), index))) })) }))] }));
38
33
  }
39
34
  exports.default = ScrollableTargetFixedInfScroll;
@@ -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 index_1 = tslib_1.__importDefault(require("../index"));
6
7
  const style = {
7
8
  height: 30,
@@ -18,12 +19,6 @@ function ScrollableTargetInfScroll() {
18
19
  setItems(items.concat(Array.from({ length: 20 })));
19
20
  }, 1500);
20
21
  };
21
- return (react_1.default.createElement("div", null,
22
- react_1.default.createElement("h1", null, "demo: Infinite Scroll with scrollable target"),
23
- react_1.default.createElement("hr", null),
24
- react_1.default.createElement("div", { id: "scrollableDiv", style: { height: 300, overflow: 'auto' } },
25
- react_1.default.createElement(index_1.default, { dataLength: items.length, hasMoreNext: true, next: fetchMoreData, loaderNext: react_1.default.createElement("h4", null, "Loading..."), scrollableTarget: "scrollableDiv" }, items.map((_, index) => (react_1.default.createElement("div", { style: style, key: index },
26
- "div - #",
27
- index)))))));
22
+ return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h1", { children: "demo: Infinite Scroll with scrollable target" }), (0, jsx_runtime_1.jsx)("hr", {}), (0, jsx_runtime_1.jsx)("div", Object.assign({ id: "scrollableDiv", style: { height: 300, overflow: 'auto' } }, { children: (0, jsx_runtime_1.jsx)(index_1.default, Object.assign({ dataLength: items.length, hasMoreNext: true, next: fetchMoreData, loaderNext: (0, jsx_runtime_1.jsx)("h4", { children: "Loading..." }), scrollableTarget: "scrollableDiv" }, { children: items.map((_, index) => ((0, jsx_runtime_1.jsxs)("div", Object.assign({ style: style }, { children: ["div - #", index] }), index))) })) }))] }));
28
23
  }
29
24
  exports.default = ScrollableTargetInfScroll;
@@ -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 index_1 = tslib_1.__importDefault(require("../index"));
6
7
  const style = {
7
8
  height: 30,
@@ -18,15 +19,9 @@ function ScrolleableTop() {
18
19
  setItems(items.concat(Array.from({ length: 20 })));
19
20
  }, 500);
20
21
  };
21
- return (react_1.default.createElement("div", null,
22
- react_1.default.createElement("h1", null, "demo: Infinite Scroll on top"),
23
- react_1.default.createElement("hr", null),
24
- react_1.default.createElement("div", { id: "scrollableDiv", style: {
25
- height: 300,
26
- overflow: 'auto'
27
- } },
28
- react_1.default.createElement(index_1.default, { dataLength: items.length, previous: fetchMoreData, hasMorePrevious: true, loaderPrevious: react_1.default.createElement("h4", null, "Loading prev..."), scrollableTarget: "scrollableDiv", scrollThreshold: '0px' }, items.map((_, index) => (react_1.default.createElement("div", { style: style, key: index },
29
- "div - #",
30
- index)))))));
22
+ return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h1", { children: "demo: Infinite Scroll on top" }), (0, jsx_runtime_1.jsx)("hr", {}), (0, jsx_runtime_1.jsx)("div", Object.assign({ id: "scrollableDiv", style: {
23
+ height: 300,
24
+ overflow: 'auto'
25
+ } }, { children: (0, jsx_runtime_1.jsx)(index_1.default, Object.assign({ dataLength: items.length, previous: fetchMoreData, hasMorePrevious: true, loaderPrevious: (0, jsx_runtime_1.jsx)("h4", { children: "Loading prev..." }), scrollableTarget: "scrollableDiv", scrollThreshold: '0px' }, { children: items.map((_, index) => ((0, jsx_runtime_1.jsxs)("div", Object.assign({ style: style }, { children: ["div - #", index] }), index))) })) }))] }));
31
26
  }
32
27
  exports.default = ScrolleableTop;