@selfcommunity/react-ui 0.8.0-live.40 → 0.8.0-live.41
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.
- package/lib/cjs/components/AccountChangeMailValidation/AccountChangeMailValidation.js +1 -1
- package/lib/cjs/components/AccountDataPortability/AccountDataPortability.js +4 -4
- package/lib/cjs/components/AccountDataPortabilityButton/AccountDataPortabilityButton.js +1 -1
- package/lib/cjs/components/AccountDelete/AccountDelete.js +3 -3
- package/lib/cjs/components/AccountDeleteButton/AccountDeleteButton.js +1 -1
- package/lib/cjs/components/AccountRecover/AccountRecover.js +2 -2
- package/lib/cjs/components/AccountReset/AccountReset.js +1 -1
- package/lib/cjs/components/AccountVerify/AccountVerify.js +1 -1
- package/lib/cjs/components/BottomNavigation/BottomNavigation.js +2 -2
- package/lib/cjs/components/BroadcastMessages/BroadcastMessages.js +1 -1
- package/lib/cjs/components/BroadcastMessages/Message.js +4 -4
- package/lib/cjs/components/BroadcastMessages/Skeleton.js +1 -1
- package/lib/cjs/components/Categories/Categories.js +1 -1
- package/lib/cjs/components/Categories/Skeleton.js +1 -1
- package/lib/cjs/components/CategoriesPopularWidget/CategoriesPopularWidget.js +1 -1
- package/lib/cjs/components/CategoriesSuggestionWidget/CategoriesSuggestionWidget.js +1 -1
- package/lib/cjs/components/CategoriesSuggestionWidget/Skeleton.js +1 -1
- package/lib/cjs/components/Category/Category.js +1 -1
- package/lib/cjs/components/Category/Skeleton.js +1 -1
- package/lib/cjs/components/CategoryAutocomplete/CategoryAutocomplete.js +1 -1
- package/lib/cjs/components/CategoryFollowersButton/CategoryFollowersButton.js +1 -1
- package/lib/cjs/components/CategoryHeader/CategoryHeader.js +1 -1
- package/lib/cjs/components/CategoryHeader/Skeleton.js +1 -1
- package/lib/cjs/components/CategoryTrendingFeedWidget/CategoryTrendingFeedWidget.js +2 -2
- package/lib/cjs/components/CategoryTrendingFeedWidget/Skeleton.js +1 -1
- package/lib/cjs/components/CategoryTrendingUsersWidget/CategoryTrendingUsersWidget.js +1 -1
- package/lib/cjs/components/CategoryTrendingUsersWidget/Skeleton.js +1 -1
- package/lib/cjs/components/ChangeCover/ChangeCover.js +6 -6
- package/lib/cjs/components/ChangeGroupCover/ChangeGroupCover.js +1 -1
- package/lib/cjs/components/ChangeGroupPicture/ChangeGroupPicture.js +1 -1
- package/lib/cjs/components/ChangePicture/ChangePictureDialog/ChangePictureDialog.js +2 -2
- package/lib/cjs/components/CommentObject/CommentObject.js +4 -4
- package/lib/cjs/components/CommentObjectReply/CommentObjectReply.js +1 -1
- package/lib/cjs/components/CommentsFeedObject/CommentsFeedObject.js +4 -4
- package/lib/cjs/components/CommentsObject/CommentsObject.js +6 -6
- package/lib/cjs/components/Composer/Attributes/Attributes.js +2 -2
- package/lib/cjs/components/Composer/Composer.js +4 -4
- package/lib/cjs/components/Composer/Content/ContentDiscussion/ContentDiscussion.js +3 -3
- package/lib/cjs/components/Composer/Content/ContentPoll/ContentPoll.js +6 -6
- package/lib/cjs/components/Composer/Content/ContentPost/ContentPost.js +1 -1
- package/lib/cjs/components/Composer/Layer/AudienceLayer/AudienceLayer.js +5 -5
- package/lib/cjs/components/Composer/Layer/CategoryLayer/CategoryLayer.js +1 -1
- package/lib/cjs/components/Composer/Layer/CloseLayer/CloseLayer.js +1 -1
- package/lib/cjs/components/Composer/Layer/LocationLayer/LocationLayer.js +1 -1
- package/lib/cjs/components/Composer/Skeleton.js +1 -1
- package/lib/cjs/components/Composer/TypeSwitchButtonGroup/TypeSwitchButtonGroup.js +1 -1
- package/lib/cjs/components/ComposerIconButton/ComposerIconButton.js +2 -2
- package/lib/cjs/components/ConsentSolution/ConsentSolution.js +4 -4
- package/lib/cjs/components/ConsentSolution/Skeleton.js +1 -1
- package/lib/cjs/components/CreateEventButton/CreateEventButton.js +1 -1
- package/lib/cjs/components/CreateEventWidget/CreateEventWidget.js +1 -1
- package/lib/cjs/components/CreateEventWidget/Skeleton.js +1 -1
- package/lib/cjs/components/CreateLiveStreamDialog/CreateLiveStreamDialog.js +1 -1
- package/lib/cjs/components/CreateLiveStreamDialog/LiveStreamSelector/LiveStreamSelector.js +4 -4
- package/lib/cjs/components/CreateLiveStreamDialog/types.js +2 -2
- package/lib/cjs/components/CustomAdv/CustomAdv.js +2 -2
- package/lib/cjs/components/Editor/Editor.js +1 -1
- package/lib/cjs/components/Editor/nodes/ImageNode.js +1 -1
- package/lib/cjs/components/Editor/plugins/EmojiPlugin.js +2 -2
- package/lib/cjs/components/Editor/plugins/FloatingLinkPlugin.js +4 -4
- package/lib/cjs/components/Editor/plugins/HashtagPlugin.js +3 -3
- package/lib/cjs/components/Editor/plugins/ImagePlugin.js +4 -4
- package/lib/cjs/components/Editor/plugins/MentionsPlugin.js +4 -4
- package/lib/cjs/components/Editor/plugins/ToolbarPlugin.js +5 -5
- package/lib/cjs/components/Editor/shared/useDecorators.js +1 -1
- package/lib/cjs/components/Event/Event.js +4 -4
- package/lib/cjs/components/Event/Skeleton.js +3 -3
- package/lib/cjs/components/EventAutocomplete/EventAutocomplete.js +1 -1
- package/lib/cjs/components/EventForm/EventAddress.js +2 -2
- package/lib/cjs/components/EventForm/EventForm.js +14 -14
- package/lib/cjs/components/EventForm/UploadEventCover.js +1 -1
- package/lib/cjs/components/EventHeader/EventHeader.js +2 -2
- package/lib/cjs/components/EventHeader/Skeleton.js +1 -1
- package/lib/cjs/components/EventInfoWidget/EventInfoWidget.js +1 -1
- package/lib/cjs/components/EventInfoWidget/Skeleton.js +1 -1
- package/lib/cjs/components/EventInviteButton/EventInviteButton.js +2 -2
- package/lib/cjs/components/EventLocationWidget/EventLocationWidget.js +3 -3
- package/lib/cjs/components/EventLocationWidget/Skeleton.js +1 -1
- package/lib/cjs/components/EventMediaWidget/EventMediaWidget.js +4 -4
- package/lib/cjs/components/EventMediaWidget/Skeleton.js +1 -1
- package/lib/cjs/components/EventMediaWidget/TriggerButton.js +3 -3
- package/lib/cjs/components/EventMembersWidget/EventMembersWidget.js +3 -3
- package/lib/cjs/components/EventMembersWidget/Skeleton.js +1 -1
- package/lib/cjs/components/EventMembersWidget/TabContentComponent.js +3 -3
- package/lib/cjs/components/EventMembersWidget/types.js +1 -1
- package/lib/cjs/components/EventParticipantsButton/EventParticipantsButton.js +1 -1
- package/lib/cjs/components/EventSubscribeButton/EventSubscribeButton.js +2 -2
- package/lib/cjs/components/Events/Events.js +6 -6
- package/lib/cjs/components/Events/LocationEventsFilter.js +1 -1
- package/lib/cjs/components/Events/Skeleton.js +1 -1
- package/lib/cjs/components/Feed/Feed.js +4 -4
- package/lib/cjs/components/Feed/Skeleton.js +1 -1
- package/lib/cjs/components/FeedObject/Actions/Actions.js +1 -1
- package/lib/cjs/components/FeedObject/Actions/Comment/Comment.js +3 -3
- package/lib/cjs/components/FeedObject/Actions/Follow/Follow.js +1 -1
- package/lib/cjs/components/FeedObject/Actions/Share/Share.js +5 -5
- package/lib/cjs/components/FeedObject/Actions/Share/SharesDialog/SharesDialog.js +1 -1
- package/lib/cjs/components/FeedObject/Activities/Activities.js +1 -1
- package/lib/cjs/components/FeedObject/Activities/ActivitiesMenu/ActivitiesMenu.js +4 -4
- package/lib/cjs/components/FeedObject/Activities/RelevantActivities/CommentActivity/CommentActivity.js +3 -3
- package/lib/cjs/components/FeedObject/Activities/RelevantActivities/FollowActivity/FollowActivity.js +2 -2
- package/lib/cjs/components/FeedObject/Activities/RelevantActivities/PollVoteActivity/PollVoteActivity.js +2 -2
- package/lib/cjs/components/FeedObject/Activities/RelevantActivities/RelevantActivities.js +1 -1
- package/lib/cjs/components/FeedObject/Activities/RelevantActivities/VoteUpActivity/VoteUpActivity.js +2 -2
- package/lib/cjs/components/FeedObject/Contributors/Contributors.js +1 -1
- package/lib/cjs/components/FeedObject/Contributors/Skeleton.js +1 -1
- package/lib/cjs/components/FeedObject/FeedObject.js +11 -11
- package/lib/cjs/components/FeedObject/Poll/Choice/Choice.js +2 -2
- package/lib/cjs/components/FeedObject/Poll/Poll.js +1 -1
- package/lib/cjs/components/FeedUpdatesWidget/FeedUpdatesWidget.js +1 -1
- package/lib/cjs/components/Footer/Footer.js +1 -1
- package/lib/cjs/components/Group/Group.js +2 -2
- package/lib/cjs/components/Group/Skeleton.js +1 -1
- package/lib/cjs/components/GroupActionsMenu/index.js +4 -4
- package/lib/cjs/components/GroupAutocomplete/GroupAutocomplete.js +1 -1
- package/lib/cjs/components/GroupForm/GroupForm.js +9 -9
- package/lib/cjs/components/GroupHeader/GroupHeader.js +2 -2
- package/lib/cjs/components/GroupHeader/Skeleton.js +1 -1
- package/lib/cjs/components/GroupInfoWidget/GroupInfoWidget.js +6 -6
- package/lib/cjs/components/GroupInviteButton/GroupInviteButton.js +2 -2
- package/lib/cjs/components/GroupInvitedWidget/GroupInvitedWidget.js +1 -1
- package/lib/cjs/components/GroupMembersButton/GroupMembersButton.js +1 -1
- package/lib/cjs/components/GroupMembersWidget/GroupMembersWidget.js +5 -5
- package/lib/cjs/components/GroupRequestsWidget/GroupRequestsWidget.js +1 -1
- package/lib/cjs/components/GroupSettingsIconButton/GroupSettingsIconButton.js +5 -5
- package/lib/cjs/components/Groups/Groups.js +3 -3
- package/lib/cjs/components/Groups/Skeleton.js +1 -1
- package/lib/cjs/components/Incubator/Incubator.js +4 -4
- package/lib/cjs/components/Incubator/Skeleton.js +1 -1
- package/lib/cjs/components/IncubatorDetail/IncubatorDetail.js +2 -2
- package/lib/cjs/components/IncubatorListWidget/CreateIncubatorDialog/CreateIncubatorDialog.js +2 -2
- package/lib/cjs/components/IncubatorListWidget/IncubatorListWidget.js +2 -2
- package/lib/cjs/components/IncubatorListWidget/Skeleton.js +1 -1
- package/lib/cjs/components/IncubatorSuggestionWidget/IncubatorSuggestionWidget.js +1 -1
- package/lib/cjs/components/IncubatorSuggestionWidget/Skeleton.js +1 -1
- package/lib/cjs/components/InlineComposerWidget/InlineComposerWidget.js +1 -1
- package/lib/cjs/components/InlineComposerWidget/Skeleton.js +1 -1
- package/lib/cjs/components/LiveStreamForm/LiveStreamForm.js +6 -6
- package/lib/cjs/components/LiveStreamRoom/LiveStreamRoom.js +1 -1
- package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/LiveStreamVideoConference.js +3 -1
- package/lib/cjs/components/LocationAutocomplete/LocationAutocomplete.js +1 -1
- package/lib/cjs/components/LoyaltyProgramWidget/LoyaltyProgramWidget.js +1 -1
- package/lib/cjs/components/LoyaltyProgramWidget/Skeleton.js +1 -1
- package/lib/cjs/components/MyEventsWidget/MyEventsWidget.js +1 -1
- package/lib/cjs/components/MyEventsWidget/Skeleton.js +1 -1
- package/lib/cjs/components/NavigationMenuIconButton/DefaultDrawerContent.js +1 -1
- package/lib/cjs/components/NavigationMenuIconButton/DefaultHeaderContent.js +1 -1
- package/lib/cjs/components/NavigationMenuIconButton/NavigationMenuDrawer.js +1 -1
- package/lib/cjs/components/NavigationMenuIconButton/NavigationMenuIconButton.js +1 -1
- package/lib/cjs/components/NavigationSettingsIconButton/NavigationSettingsIconButton.js +29 -29
- package/lib/cjs/components/NavigationToolbar/NavigationToolbar.js +7 -7
- package/lib/cjs/components/NavigationToolbar/NotificationMenu.js +1 -1
- package/lib/cjs/components/NavigationToolbar/Skeleton.js +1 -1
- package/lib/cjs/components/NavigationToolbarMobile/NavigationToolbarMobile.js +4 -4
- package/lib/cjs/components/NavigationToolbarMobile/Skeleton.js +1 -1
- package/lib/cjs/components/Notification/CollapsedFor/CollapsedFor.js +1 -1
- package/lib/cjs/components/Notification/Comment/Comment.js +3 -3
- package/lib/cjs/components/Notification/Contribution/Contribution.js +3 -3
- package/lib/cjs/components/Notification/ContributionFollow/ContributionFollow.js +2 -2
- package/lib/cjs/components/Notification/DeletedFor/DeletedFor.js +1 -1
- package/lib/cjs/components/Notification/Event/Event.js +9 -9
- package/lib/cjs/components/Notification/Group/Group.js +8 -8
- package/lib/cjs/components/Notification/IncubatorApproved/IncubatorApproved.js +3 -3
- package/lib/cjs/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.js +1 -1
- package/lib/cjs/components/Notification/KindlyNoticeFor/KindlyNoticeFor.js +2 -2
- package/lib/cjs/components/Notification/Mention/Mention.js +3 -3
- package/lib/cjs/components/Notification/Notification.js +8 -8
- package/lib/cjs/components/Notification/PrivateMessage/PrivateMessage.js +10 -10
- package/lib/cjs/components/Notification/Skeleton.js +1 -1
- package/lib/cjs/components/Notification/UndeletedFor/UndeletedFor.js +1 -1
- package/lib/cjs/components/Notification/UserBlocked/UserBlocked.js +3 -3
- package/lib/cjs/components/Notification/UserConnection/UserConnection.js +2 -2
- package/lib/cjs/components/Notification/UserFollow/UserFollow.js +2 -2
- package/lib/cjs/components/Notification/VoteUp/VoteUp.js +2 -2
- package/lib/cjs/components/OnBoardingWidget/ActionsButton.js +5 -5
- package/lib/cjs/components/OnBoardingWidget/OnBoardingWidget.js +7 -7
- package/lib/cjs/components/OnBoardingWidget/Skeleton.js +1 -1
- package/lib/cjs/components/OnBoardingWidget/Steps/App/App.js +9 -9
- package/lib/cjs/components/OnBoardingWidget/Steps/Appearance/Appearance.js +4 -4
- package/lib/cjs/components/OnBoardingWidget/Steps/Category/Category.js +5 -5
- package/lib/cjs/components/OnBoardingWidget/Steps/Content/Content.js +1 -1
- package/lib/cjs/components/OnBoardingWidget/Steps/Invite/Invite.js +1 -1
- package/lib/cjs/components/OnBoardingWidget/Steps/Profile/Profile.js +1 -1
- package/lib/cjs/components/PlatformWidget/PlatformWidget.js +8 -8
- package/lib/cjs/components/PlatformWidget/Skeleton.js +1 -1
- package/lib/cjs/components/PollSuggestionWidget/PollSnippet/PollSnippet.js +1 -1
- package/lib/cjs/components/PollSuggestionWidget/PollSuggestionWidget.js +1 -1
- package/lib/cjs/components/PollSuggestionWidget/Skeleton.js +1 -1
- package/lib/cjs/components/PrivateMessageComponent/PrivateMessageComponent.js +4 -4
- package/lib/cjs/components/PrivateMessageComponent/Skeleton.js +1 -1
- package/lib/cjs/components/PrivateMessageEditor/MessageMediaUploader/index.js +5 -5
- package/lib/cjs/components/PrivateMessageEditor/PrivateMessageEditor.js +6 -6
- package/lib/cjs/components/PrivateMessageSettingsIconButton/PrivateMessageSettingsIconButton.js +7 -7
- package/lib/cjs/components/PrivateMessageSnippetItem/PrivateMessageSnippetItem.js +3 -3
- package/lib/cjs/components/PrivateMessageSnippetItem/Skeleton.js +1 -1
- package/lib/cjs/components/PrivateMessageSnippets/PrivateMessageSnippets.js +4 -4
- package/lib/cjs/components/PrivateMessageSnippets/Skeleton.js +1 -1
- package/lib/cjs/components/PrivateMessageThread/PrivateMessageThread.js +6 -6
- package/lib/cjs/components/PrivateMessageThread/Skeleton.js +1 -1
- package/lib/cjs/components/PrivateMessageThreadItem/PrivateMessageThreadItem.js +6 -6
- package/lib/cjs/components/RelatedEventsWidget/RelatedEventsWidget.js +1 -1
- package/lib/cjs/components/RelatedEventsWidget/Skeleton.js +1 -1
- package/lib/cjs/components/RelatedFeedObjectsWidget/RelatedFeedObjectsWidget.js +1 -1
- package/lib/cjs/components/SearchAutocomplete/SearchAutocomplete.js +2 -2
- package/lib/cjs/components/SnippetNotifications/Skeleton.js +1 -1
- package/lib/cjs/components/SnippetNotifications/SnippetNotifications.js +3 -3
- package/lib/cjs/components/SuggestedEventsWidget/Arrow.js +2 -2
- package/lib/cjs/components/SuggestedEventsWidget/Skeleton.js +1 -1
- package/lib/cjs/components/SuggestedEventsWidget/SuggestedEventsWidget.js +2 -2
- package/lib/cjs/components/User/Skeleton.js +1 -1
- package/lib/cjs/components/User/User.js +2 -2
- package/lib/cjs/components/UserActionIconButton/UserActionIconButton.js +9 -9
- package/lib/cjs/components/UserConnectionsRequestsSentWidget/UserConnectionsRequestsSentWidget.js +1 -1
- package/lib/cjs/components/UserConnectionsRequestsWidget/UserConnectionsRequestsWidget.js +1 -1
- package/lib/cjs/components/UserConnectionsWidget/UserConnectionsWidget.js +1 -1
- package/lib/cjs/components/UserCounters/UserCounters.js +5 -5
- package/lib/cjs/components/UserFollowedCategoriesWidget/UserFollowedCategoriesWidget.js +1 -1
- package/lib/cjs/components/UserFollowedUsersWidget/UserFollowedUsersWidget.js +1 -1
- package/lib/cjs/components/UserFollowersWidget/UserFollowersWidget.js +1 -1
- package/lib/cjs/components/UserInfo/Skeleton.js +1 -1
- package/lib/cjs/components/UserInfo/UserInfo.js +3 -3
- package/lib/cjs/components/UserInfoDialog/UserInfoDialog.js +1 -1
- package/lib/cjs/components/UserProfileBlocked/UserProfileBlocked.js +1 -1
- package/lib/cjs/components/UserProfileEdit/Section/Account.js +1 -1
- package/lib/cjs/components/UserProfileEdit/Section/AccountCredentials.js +6 -6
- package/lib/cjs/components/UserProfileEdit/Section/PublicInfo.js +8 -8
- package/lib/cjs/components/UserProfileEdit/Section/Settings.js +3 -3
- package/lib/cjs/components/UserProfileEdit/Section/SettingsSkeleton.js +1 -1
- package/lib/cjs/components/UserProfileEdit/Skeleton.js +1 -1
- package/lib/cjs/components/UserProfileEdit/UserProfileEdit.js +1 -1
- package/lib/cjs/components/UserProfileHeader/Skeleton.js +1 -1
- package/lib/cjs/components/UserProfileHeader/UserProfileHeader.js +1 -1
- package/lib/cjs/components/UserSocialAssociation/UserSocialAssociation.js +1 -1
- package/lib/cjs/components/UserSubscribedGroupsWidget/Skeleton.js +1 -1
- package/lib/cjs/components/UserSubscribedGroupsWidget/UserSubscribedGroupsWidget.js +2 -2
- package/lib/cjs/components/UserSuggestionWidget/Skeleton.js +1 -1
- package/lib/cjs/components/UserSuggestionWidget/UserSuggestionWidget.js +1 -1
- package/lib/cjs/components/VoteAudienceButton/VoteAudienceButton.js +5 -5
- package/lib/cjs/components/VoteButton/VoteButton.js +2 -2
- package/lib/cjs/constants/PubSub.js +3 -3
- package/lib/cjs/shared/AutoPlayer/index.js +2 -2
- package/lib/cjs/shared/BaseDialog/BaseDialog.js +2 -2
- package/lib/cjs/shared/BaseItem/BaseItem.js +2 -2
- package/lib/cjs/shared/BaseItemButton/BaseItemButton.js +2 -2
- package/lib/cjs/shared/Calendar/index.js +1 -1
- package/lib/cjs/shared/ConfirmDialog/ConfirmDialog.js +1 -1
- package/lib/cjs/shared/ConsentSolutionSwitch/index.js +3 -3
- package/lib/cjs/shared/ContributionActionsMenu/index.js +10 -10
- package/lib/cjs/shared/CustomSnackMessage/index.js +1 -1
- package/lib/cjs/shared/DateTimeAgo/index.js +1 -1
- package/lib/cjs/shared/EmojiPicker/EmojiPicker.js +1 -1
- package/lib/cjs/shared/EventActionsMenu/index.js +5 -5
- package/lib/cjs/shared/EventInfoDetails/index.js +3 -3
- package/lib/cjs/shared/InfiniteScroll/index.js +2 -2
- package/lib/cjs/shared/InfiniteScroll/stories/InfiniteScrollWithHeight.js +1 -1
- package/lib/cjs/shared/InfiniteScroll/stories/PullDownToRefreshInfScroll.js +1 -1
- package/lib/cjs/shared/InfiniteScroll/stories/ScrollableTargetFixedInfScroll.js +2 -2
- package/lib/cjs/shared/InfiniteScroll/stories/ScrollableTargetInfScroll.js +1 -1
- package/lib/cjs/shared/InfiniteScroll/stories/ScrolleableTop.js +2 -2
- package/lib/cjs/shared/InfiniteScroll/stories/WindowInfiniteScrollComponent.js +1 -1
- package/lib/cjs/shared/LanguageSwitcher/index.js +1 -1
- package/lib/cjs/shared/MarkRead/MarkRead.js +1 -1
- package/lib/cjs/shared/Media/File/DisplayComponent.js +11 -11
- package/lib/cjs/shared/Media/File/PreviewComponent.js +3 -3
- package/lib/cjs/shared/Media/File/TriggerButton.js +7 -7
- package/lib/cjs/shared/Media/Link/DisplayComponent.js +3 -3
- package/lib/cjs/shared/Media/Link/LayerComponent.js +1 -1
- package/lib/cjs/shared/Media/Link/PreviewComponent.js +1 -1
- package/lib/cjs/shared/Media/Link/TriggerButton.js +1 -1
- package/lib/cjs/shared/Media/Link/UrlTextField/index.js +3 -3
- package/lib/cjs/shared/Media/Share/DisplayComponent.js +1 -1
- package/lib/cjs/shared/MetadataField/MetadataField.js +1 -1
- package/lib/cjs/shared/NotificationItem/NotificationItem.js +1 -1
- package/lib/cjs/shared/PasswordTextField/index.js +1 -1
- package/lib/cjs/shared/ProgressBar/index.js +1 -1
- package/lib/cjs/shared/StickyBox/index.js +1 -1
- package/lib/cjs/shared/Tags/index.js +6 -6
- package/lib/cjs/shared/UserDeletedSnackBar/UserDeletedSnackBar.js +1 -1
- package/lib/cjs/shared/VirtualizedScroller/VirtualScrollerChild.js +1 -1
- package/lib/cjs/types/broadcastMessage.js +1 -1
- package/lib/cjs/types/comments.js +1 -1
- package/lib/cjs/types/event.js +1 -1
- package/lib/cjs/types/feedObject.js +2 -2
- package/lib/cjs/types/notification.js +1 -1
- package/lib/cjs/types/user.js +3 -3
- package/lib/esm/components/AccountChangeMailValidation/AccountChangeMailValidation.js +1 -1
- package/lib/esm/components/AccountDataPortability/AccountDataPortability.js +4 -4
- package/lib/esm/components/AccountDataPortabilityButton/AccountDataPortabilityButton.js +1 -1
- package/lib/esm/components/AccountDelete/AccountDelete.js +3 -3
- package/lib/esm/components/AccountDeleteButton/AccountDeleteButton.js +1 -1
- package/lib/esm/components/AccountRecover/AccountRecover.js +2 -2
- package/lib/esm/components/AccountReset/AccountReset.js +1 -1
- package/lib/esm/components/AccountVerify/AccountVerify.js +1 -1
- package/lib/esm/components/BottomNavigation/BottomNavigation.js +2 -2
- package/lib/esm/components/BroadcastMessages/BroadcastMessages.js +1 -1
- package/lib/esm/components/BroadcastMessages/Message.js +4 -4
- package/lib/esm/components/BroadcastMessages/Skeleton.js +1 -1
- package/lib/esm/components/Categories/Categories.js +1 -1
- package/lib/esm/components/Categories/Skeleton.js +1 -1
- package/lib/esm/components/CategoriesPopularWidget/CategoriesPopularWidget.js +1 -1
- package/lib/esm/components/CategoriesSuggestionWidget/CategoriesSuggestionWidget.js +1 -1
- package/lib/esm/components/CategoriesSuggestionWidget/Skeleton.js +1 -1
- package/lib/esm/components/Category/Category.js +1 -1
- package/lib/esm/components/Category/Skeleton.js +1 -1
- package/lib/esm/components/CategoryAutocomplete/CategoryAutocomplete.js +1 -1
- package/lib/esm/components/CategoryFollowersButton/CategoryFollowersButton.js +1 -1
- package/lib/esm/components/CategoryHeader/CategoryHeader.js +1 -1
- package/lib/esm/components/CategoryHeader/Skeleton.js +1 -1
- package/lib/esm/components/CategoryTrendingFeedWidget/CategoryTrendingFeedWidget.js +2 -2
- package/lib/esm/components/CategoryTrendingFeedWidget/Skeleton.js +1 -1
- package/lib/esm/components/CategoryTrendingUsersWidget/CategoryTrendingUsersWidget.js +1 -1
- package/lib/esm/components/CategoryTrendingUsersWidget/Skeleton.js +1 -1
- package/lib/esm/components/ChangeCover/ChangeCover.js +6 -6
- package/lib/esm/components/ChangeGroupCover/ChangeGroupCover.js +1 -1
- package/lib/esm/components/ChangeGroupPicture/ChangeGroupPicture.js +1 -1
- package/lib/esm/components/ChangePicture/ChangePictureDialog/ChangePictureDialog.js +2 -2
- package/lib/esm/components/CommentObject/CommentObject.js +4 -4
- package/lib/esm/components/CommentObjectReply/CommentObjectReply.js +1 -1
- package/lib/esm/components/CommentsFeedObject/CommentsFeedObject.js +4 -4
- package/lib/esm/components/CommentsObject/CommentsObject.js +6 -6
- package/lib/esm/components/Composer/Attributes/Attributes.js +2 -2
- package/lib/esm/components/Composer/Composer.js +4 -4
- package/lib/esm/components/Composer/Content/ContentDiscussion/ContentDiscussion.js +3 -3
- package/lib/esm/components/Composer/Content/ContentPoll/ContentPoll.js +6 -6
- package/lib/esm/components/Composer/Content/ContentPost/ContentPost.js +1 -1
- package/lib/esm/components/Composer/Layer/AudienceLayer/AudienceLayer.js +4 -4
- package/lib/esm/components/Composer/Layer/CategoryLayer/CategoryLayer.js +1 -1
- package/lib/esm/components/Composer/Layer/CloseLayer/CloseLayer.js +1 -1
- package/lib/esm/components/Composer/Layer/LocationLayer/LocationLayer.js +1 -1
- package/lib/esm/components/Composer/Skeleton.js +1 -1
- package/lib/esm/components/Composer/TypeSwitchButtonGroup/TypeSwitchButtonGroup.js +1 -1
- package/lib/esm/components/ComposerIconButton/ComposerIconButton.js +2 -2
- package/lib/esm/components/ConsentSolution/ConsentSolution.js +4 -4
- package/lib/esm/components/ConsentSolution/Skeleton.js +1 -1
- package/lib/esm/components/CreateEventButton/CreateEventButton.js +1 -1
- package/lib/esm/components/CreateEventWidget/CreateEventWidget.js +1 -1
- package/lib/esm/components/CreateEventWidget/Skeleton.js +1 -1
- package/lib/esm/components/CreateLiveStreamDialog/CreateLiveStreamDialog.js +1 -1
- package/lib/esm/components/CreateLiveStreamDialog/LiveStreamSelector/LiveStreamSelector.js +4 -4
- package/lib/esm/components/CustomAdv/CustomAdv.js +2 -2
- package/lib/esm/components/Editor/Editor.js +1 -1
- package/lib/esm/components/Editor/nodes/ImageNode.js +1 -1
- package/lib/esm/components/Editor/plugins/EmojiPlugin.js +2 -2
- package/lib/esm/components/Editor/plugins/FloatingLinkPlugin.js +4 -4
- package/lib/esm/components/Editor/plugins/HashtagPlugin.js +3 -3
- package/lib/esm/components/Editor/plugins/ImagePlugin.js +4 -4
- package/lib/esm/components/Editor/plugins/MentionsPlugin.js +4 -4
- package/lib/esm/components/Editor/plugins/ToolbarPlugin.js +5 -5
- package/lib/esm/components/Editor/shared/useDecorators.js +1 -1
- package/lib/esm/components/Event/Event.js +4 -4
- package/lib/esm/components/Event/Skeleton.js +3 -3
- package/lib/esm/components/EventAutocomplete/EventAutocomplete.js +1 -1
- package/lib/esm/components/EventForm/EventAddress.js +2 -2
- package/lib/esm/components/EventForm/EventForm.js +14 -14
- package/lib/esm/components/EventForm/UploadEventCover.js +1 -1
- package/lib/esm/components/EventHeader/EventHeader.js +2 -2
- package/lib/esm/components/EventHeader/Skeleton.js +1 -1
- package/lib/esm/components/EventInfoWidget/EventInfoWidget.js +1 -1
- package/lib/esm/components/EventInfoWidget/Skeleton.js +1 -1
- package/lib/esm/components/EventInviteButton/EventInviteButton.js +2 -2
- package/lib/esm/components/EventLocationWidget/EventLocationWidget.js +3 -3
- package/lib/esm/components/EventLocationWidget/Skeleton.js +1 -1
- package/lib/esm/components/EventMediaWidget/EventMediaWidget.js +4 -4
- package/lib/esm/components/EventMediaWidget/Skeleton.js +1 -1
- package/lib/esm/components/EventMediaWidget/TriggerButton.js +3 -3
- package/lib/esm/components/EventMembersWidget/EventMembersWidget.js +3 -3
- package/lib/esm/components/EventMembersWidget/Skeleton.js +1 -1
- package/lib/esm/components/EventMembersWidget/TabContentComponent.js +3 -3
- package/lib/esm/components/EventParticipantsButton/EventParticipantsButton.js +1 -1
- package/lib/esm/components/EventSubscribeButton/EventSubscribeButton.js +2 -2
- package/lib/esm/components/Events/Events.js +6 -6
- package/lib/esm/components/Events/LocationEventsFilter.js +1 -1
- package/lib/esm/components/Events/Skeleton.js +1 -1
- package/lib/esm/components/Feed/Feed.js +4 -4
- package/lib/esm/components/Feed/Skeleton.js +1 -1
- package/lib/esm/components/FeedObject/Actions/Actions.js +1 -1
- package/lib/esm/components/FeedObject/Actions/Comment/Comment.js +3 -3
- package/lib/esm/components/FeedObject/Actions/Follow/Follow.js +1 -1
- package/lib/esm/components/FeedObject/Actions/Share/Share.js +5 -5
- package/lib/esm/components/FeedObject/Actions/Share/SharesDialog/SharesDialog.js +1 -1
- package/lib/esm/components/FeedObject/Activities/Activities.js +1 -1
- package/lib/esm/components/FeedObject/Activities/ActivitiesMenu/ActivitiesMenu.js +4 -4
- package/lib/esm/components/FeedObject/Activities/RelevantActivities/CommentActivity/CommentActivity.js +3 -3
- package/lib/esm/components/FeedObject/Activities/RelevantActivities/FollowActivity/FollowActivity.js +2 -2
- package/lib/esm/components/FeedObject/Activities/RelevantActivities/PollVoteActivity/PollVoteActivity.js +2 -2
- package/lib/esm/components/FeedObject/Activities/RelevantActivities/RelevantActivities.js +1 -1
- package/lib/esm/components/FeedObject/Activities/RelevantActivities/VoteUpActivity/VoteUpActivity.js +2 -2
- package/lib/esm/components/FeedObject/Contributors/Contributors.js +1 -1
- package/lib/esm/components/FeedObject/Contributors/Skeleton.js +1 -1
- package/lib/esm/components/FeedObject/FeedObject.js +11 -11
- package/lib/esm/components/FeedObject/Poll/Choice/Choice.js +2 -2
- package/lib/esm/components/FeedObject/Poll/Poll.js +1 -1
- package/lib/esm/components/FeedUpdatesWidget/FeedUpdatesWidget.js +1 -1
- package/lib/esm/components/Footer/Footer.js +1 -1
- package/lib/esm/components/Group/Group.js +2 -2
- package/lib/esm/components/Group/Skeleton.js +1 -1
- package/lib/esm/components/GroupActionsMenu/index.js +4 -4
- package/lib/esm/components/GroupAutocomplete/GroupAutocomplete.js +1 -1
- package/lib/esm/components/GroupForm/GroupForm.js +9 -9
- package/lib/esm/components/GroupHeader/GroupHeader.js +2 -2
- package/lib/esm/components/GroupHeader/Skeleton.js +1 -1
- package/lib/esm/components/GroupInfoWidget/GroupInfoWidget.js +6 -6
- package/lib/esm/components/GroupInviteButton/GroupInviteButton.js +2 -2
- package/lib/esm/components/GroupInvitedWidget/GroupInvitedWidget.js +1 -1
- package/lib/esm/components/GroupMembersButton/GroupMembersButton.js +1 -1
- package/lib/esm/components/GroupMembersWidget/GroupMembersWidget.js +5 -5
- package/lib/esm/components/GroupRequestsWidget/GroupRequestsWidget.js +1 -1
- package/lib/esm/components/GroupSettingsIconButton/GroupSettingsIconButton.js +5 -5
- package/lib/esm/components/Groups/Groups.js +3 -3
- package/lib/esm/components/Groups/Skeleton.js +1 -1
- package/lib/esm/components/Incubator/Incubator.js +4 -4
- package/lib/esm/components/Incubator/Skeleton.js +1 -1
- package/lib/esm/components/IncubatorDetail/IncubatorDetail.js +2 -2
- package/lib/esm/components/IncubatorListWidget/CreateIncubatorDialog/CreateIncubatorDialog.js +2 -2
- package/lib/esm/components/IncubatorListWidget/IncubatorListWidget.js +2 -2
- package/lib/esm/components/IncubatorListWidget/Skeleton.js +1 -1
- package/lib/esm/components/IncubatorSuggestionWidget/IncubatorSuggestionWidget.js +1 -1
- package/lib/esm/components/IncubatorSuggestionWidget/Skeleton.js +1 -1
- package/lib/esm/components/InlineComposerWidget/InlineComposerWidget.js +1 -1
- package/lib/esm/components/InlineComposerWidget/Skeleton.js +1 -1
- package/lib/esm/components/LiveStreamForm/LiveStreamForm.js +6 -6
- package/lib/esm/components/LiveStreamRoom/LiveStreamRoom.js +1 -1
- package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/LiveStreamVideoConference.js +3 -1
- package/lib/esm/components/LocationAutocomplete/LocationAutocomplete.js +1 -1
- package/lib/esm/components/LoyaltyProgramWidget/LoyaltyProgramWidget.js +1 -1
- package/lib/esm/components/LoyaltyProgramWidget/Skeleton.js +1 -1
- package/lib/esm/components/MyEventsWidget/MyEventsWidget.js +1 -1
- package/lib/esm/components/MyEventsWidget/Skeleton.js +1 -1
- package/lib/esm/components/NavigationMenuIconButton/DefaultDrawerContent.js +1 -1
- package/lib/esm/components/NavigationMenuIconButton/DefaultHeaderContent.js +1 -1
- package/lib/esm/components/NavigationMenuIconButton/NavigationMenuDrawer.js +1 -1
- package/lib/esm/components/NavigationMenuIconButton/NavigationMenuIconButton.js +1 -1
- package/lib/esm/components/NavigationSettingsIconButton/NavigationSettingsIconButton.js +29 -29
- package/lib/esm/components/NavigationToolbar/NavigationToolbar.js +7 -7
- package/lib/esm/components/NavigationToolbar/NotificationMenu.js +1 -1
- package/lib/esm/components/NavigationToolbar/Skeleton.js +1 -1
- package/lib/esm/components/NavigationToolbarMobile/NavigationToolbarMobile.js +4 -4
- package/lib/esm/components/NavigationToolbarMobile/Skeleton.js +1 -1
- package/lib/esm/components/Notification/CollapsedFor/CollapsedFor.js +1 -1
- package/lib/esm/components/Notification/Comment/Comment.js +3 -3
- package/lib/esm/components/Notification/Contribution/Contribution.js +3 -3
- package/lib/esm/components/Notification/ContributionFollow/ContributionFollow.js +2 -2
- package/lib/esm/components/Notification/DeletedFor/DeletedFor.js +1 -1
- package/lib/esm/components/Notification/Event/Event.js +9 -9
- package/lib/esm/components/Notification/Group/Group.js +8 -8
- package/lib/esm/components/Notification/IncubatorApproved/IncubatorApproved.js +3 -3
- package/lib/esm/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.js +1 -1
- package/lib/esm/components/Notification/KindlyNoticeFor/KindlyNoticeFor.js +2 -2
- package/lib/esm/components/Notification/Mention/Mention.js +3 -3
- package/lib/esm/components/Notification/Notification.js +8 -8
- package/lib/esm/components/Notification/PrivateMessage/PrivateMessage.js +10 -10
- package/lib/esm/components/Notification/Skeleton.js +1 -1
- package/lib/esm/components/Notification/UndeletedFor/UndeletedFor.js +1 -1
- package/lib/esm/components/Notification/UserBlocked/UserBlocked.js +3 -3
- package/lib/esm/components/Notification/UserConnection/UserConnection.js +2 -2
- package/lib/esm/components/Notification/UserFollow/UserFollow.js +2 -2
- package/lib/esm/components/Notification/VoteUp/VoteUp.js +2 -2
- package/lib/esm/components/OnBoardingWidget/ActionsButton.js +5 -5
- package/lib/esm/components/OnBoardingWidget/OnBoardingWidget.js +7 -7
- package/lib/esm/components/OnBoardingWidget/Skeleton.js +1 -1
- package/lib/esm/components/OnBoardingWidget/Steps/App/App.js +9 -9
- package/lib/esm/components/OnBoardingWidget/Steps/Appearance/Appearance.js +4 -4
- package/lib/esm/components/OnBoardingWidget/Steps/Category/Category.js +5 -5
- package/lib/esm/components/OnBoardingWidget/Steps/Content/Content.js +1 -1
- package/lib/esm/components/OnBoardingWidget/Steps/Invite/Invite.js +1 -1
- package/lib/esm/components/OnBoardingWidget/Steps/Profile/Profile.js +1 -1
- package/lib/esm/components/PlatformWidget/PlatformWidget.js +8 -8
- package/lib/esm/components/PlatformWidget/Skeleton.js +1 -1
- package/lib/esm/components/PollSuggestionWidget/PollSnippet/PollSnippet.js +1 -1
- package/lib/esm/components/PollSuggestionWidget/PollSuggestionWidget.js +1 -1
- package/lib/esm/components/PollSuggestionWidget/Skeleton.js +1 -1
- package/lib/esm/components/PrivateMessageComponent/PrivateMessageComponent.js +4 -4
- package/lib/esm/components/PrivateMessageComponent/Skeleton.js +1 -1
- package/lib/esm/components/PrivateMessageEditor/MessageMediaUploader/index.js +5 -5
- package/lib/esm/components/PrivateMessageEditor/PrivateMessageEditor.js +6 -6
- package/lib/esm/components/PrivateMessageSettingsIconButton/PrivateMessageSettingsIconButton.js +7 -7
- package/lib/esm/components/PrivateMessageSnippetItem/PrivateMessageSnippetItem.js +3 -3
- package/lib/esm/components/PrivateMessageSnippetItem/Skeleton.js +1 -1
- package/lib/esm/components/PrivateMessageSnippets/PrivateMessageSnippets.js +4 -4
- package/lib/esm/components/PrivateMessageSnippets/Skeleton.js +1 -1
- package/lib/esm/components/PrivateMessageThread/PrivateMessageThread.js +6 -6
- package/lib/esm/components/PrivateMessageThread/Skeleton.js +1 -1
- package/lib/esm/components/PrivateMessageThreadItem/PrivateMessageThreadItem.js +6 -6
- package/lib/esm/components/RelatedEventsWidget/RelatedEventsWidget.js +1 -1
- package/lib/esm/components/RelatedEventsWidget/Skeleton.js +1 -1
- package/lib/esm/components/RelatedFeedObjectsWidget/RelatedFeedObjectsWidget.js +1 -1
- package/lib/esm/components/SearchAutocomplete/SearchAutocomplete.js +2 -2
- package/lib/esm/components/SnippetNotifications/Skeleton.js +1 -1
- package/lib/esm/components/SnippetNotifications/SnippetNotifications.js +3 -3
- package/lib/esm/components/SuggestedEventsWidget/Arrow.js +2 -2
- package/lib/esm/components/SuggestedEventsWidget/Skeleton.js +1 -1
- package/lib/esm/components/SuggestedEventsWidget/SuggestedEventsWidget.js +2 -2
- package/lib/esm/components/User/Skeleton.js +1 -1
- package/lib/esm/components/User/User.js +2 -2
- package/lib/esm/components/UserActionIconButton/UserActionIconButton.js +9 -9
- package/lib/esm/components/UserConnectionsRequestsSentWidget/UserConnectionsRequestsSentWidget.js +1 -1
- package/lib/esm/components/UserConnectionsRequestsWidget/UserConnectionsRequestsWidget.js +1 -1
- package/lib/esm/components/UserConnectionsWidget/UserConnectionsWidget.js +1 -1
- package/lib/esm/components/UserCounters/UserCounters.js +5 -5
- package/lib/esm/components/UserFollowedCategoriesWidget/UserFollowedCategoriesWidget.js +1 -1
- package/lib/esm/components/UserFollowedUsersWidget/UserFollowedUsersWidget.js +1 -1
- package/lib/esm/components/UserFollowersWidget/UserFollowersWidget.js +1 -1
- package/lib/esm/components/UserInfo/Skeleton.js +1 -1
- package/lib/esm/components/UserInfo/UserInfo.js +3 -3
- package/lib/esm/components/UserInfoDialog/UserInfoDialog.js +1 -1
- package/lib/esm/components/UserProfileBlocked/UserProfileBlocked.js +1 -1
- package/lib/esm/components/UserProfileEdit/Section/Account.js +1 -1
- package/lib/esm/components/UserProfileEdit/Section/AccountCredentials.js +6 -6
- package/lib/esm/components/UserProfileEdit/Section/PublicInfo.js +8 -8
- package/lib/esm/components/UserProfileEdit/Section/Settings.js +3 -3
- package/lib/esm/components/UserProfileEdit/Section/SettingsSkeleton.js +1 -1
- package/lib/esm/components/UserProfileEdit/Skeleton.js +1 -1
- package/lib/esm/components/UserProfileEdit/UserProfileEdit.js +1 -1
- package/lib/esm/components/UserProfileHeader/Skeleton.js +1 -1
- package/lib/esm/components/UserProfileHeader/UserProfileHeader.js +1 -1
- package/lib/esm/components/UserSocialAssociation/UserSocialAssociation.js +1 -1
- package/lib/esm/components/UserSubscribedGroupsWidget/Skeleton.js +1 -1
- package/lib/esm/components/UserSubscribedGroupsWidget/UserSubscribedGroupsWidget.js +2 -2
- package/lib/esm/components/UserSuggestionWidget/Skeleton.js +1 -1
- package/lib/esm/components/UserSuggestionWidget/UserSuggestionWidget.js +1 -1
- package/lib/esm/components/VoteAudienceButton/VoteAudienceButton.js +5 -5
- package/lib/esm/components/VoteButton/VoteButton.js +2 -2
- package/lib/esm/shared/AutoPlayer/index.js +2 -2
- package/lib/esm/shared/BaseDialog/BaseDialog.js +2 -2
- package/lib/esm/shared/BaseItem/BaseItem.js +2 -2
- package/lib/esm/shared/BaseItemButton/BaseItemButton.js +2 -2
- package/lib/esm/shared/Calendar/index.js +1 -1
- package/lib/esm/shared/ConfirmDialog/ConfirmDialog.js +1 -1
- package/lib/esm/shared/ConsentSolutionSwitch/index.js +3 -3
- package/lib/esm/shared/ContributionActionsMenu/index.js +10 -10
- package/lib/esm/shared/CustomSnackMessage/index.js +1 -1
- package/lib/esm/shared/DateTimeAgo/index.js +1 -1
- package/lib/esm/shared/EmojiPicker/EmojiPicker.js +1 -1
- package/lib/esm/shared/EventActionsMenu/index.js +5 -5
- package/lib/esm/shared/EventInfoDetails/index.js +3 -3
- package/lib/esm/shared/InfiniteScroll/index.js +2 -2
- package/lib/esm/shared/InfiniteScroll/stories/InfiniteScrollWithHeight.js +1 -1
- package/lib/esm/shared/InfiniteScroll/stories/PullDownToRefreshInfScroll.js +1 -1
- package/lib/esm/shared/InfiniteScroll/stories/ScrollableTargetFixedInfScroll.js +2 -2
- package/lib/esm/shared/InfiniteScroll/stories/ScrollableTargetInfScroll.js +1 -1
- package/lib/esm/shared/InfiniteScroll/stories/ScrolleableTop.js +2 -2
- package/lib/esm/shared/InfiniteScroll/stories/WindowInfiniteScrollComponent.js +1 -1
- package/lib/esm/shared/LanguageSwitcher/index.js +1 -1
- package/lib/esm/shared/MarkRead/MarkRead.js +1 -1
- package/lib/esm/shared/Media/File/DisplayComponent.js +11 -11
- package/lib/esm/shared/Media/File/PreviewComponent.js +3 -3
- package/lib/esm/shared/Media/File/TriggerButton.js +7 -7
- package/lib/esm/shared/Media/Link/DisplayComponent.js +3 -3
- package/lib/esm/shared/Media/Link/LayerComponent.js +1 -1
- package/lib/esm/shared/Media/Link/PreviewComponent.js +1 -1
- package/lib/esm/shared/Media/Link/TriggerButton.js +1 -1
- package/lib/esm/shared/Media/Link/UrlTextField/index.js +3 -3
- package/lib/esm/shared/Media/Share/DisplayComponent.js +1 -1
- package/lib/esm/shared/MetadataField/MetadataField.js +1 -1
- package/lib/esm/shared/NotificationItem/NotificationItem.js +1 -1
- package/lib/esm/shared/PasswordTextField/index.js +1 -1
- package/lib/esm/shared/ProgressBar/index.js +1 -1
- package/lib/esm/shared/StickyBox/index.js +1 -1
- package/lib/esm/shared/Tags/index.js +5 -5
- package/lib/esm/shared/UserDeletedSnackBar/UserDeletedSnackBar.js +1 -1
- package/lib/esm/shared/VirtualizedScroller/VirtualScrollerChild.js +1 -1
- package/lib/umd/react-ui.js +1 -1
- package/package.json +8 -8
|
@@ -165,9 +165,9 @@ function UserSubscribedGroupsWidget(inProps) {
|
|
|
165
165
|
if (!state.initialized) {
|
|
166
166
|
return (0, jsx_runtime_1.jsx)(Skeleton_1.default, {});
|
|
167
167
|
}
|
|
168
|
-
const content = ((0, jsx_runtime_1.jsxs)(material_1.CardContent, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, { className: classes.title, variant: "h5", children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userSubscribedGroupsWidget.title", defaultMessage: "ui.userSubscribedGroupsWidget.title", values: {
|
|
168
|
+
const content = ((0, jsx_runtime_1.jsxs)(material_1.CardContent, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ className: classes.title, variant: "h5" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userSubscribedGroupsWidget.title", defaultMessage: "ui.userSubscribedGroupsWidget.title", values: {
|
|
169
169
|
total: isMe ? state.results.filter((g) => g.subscription_status === types_1.SCGroupSubscriptionStatusType.SUBSCRIBED).length : state.count
|
|
170
|
-
} }) }), !state.count ? ((0, jsx_runtime_1.jsx)(material_1.Typography, { className: classes.noResults, variant: "body2", children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userSubscribedGroupsWidget.subtitle.noResults", defaultMessage: "ui.userSubscribedGroupsWidget.subtitle.noResults" }) })) : ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [(0, jsx_runtime_1.jsx)(List_1.default, { children: state.results.slice(0, limit).map((group) => ((0, jsx_runtime_1.jsx)(material_1.ListItem, { children: (0, jsx_runtime_1.jsx)(Group_1.default, Object.assign({ elevation: 0, group: group, groupSubscribeButtonProps: { onSubscribe: handleOnSubscribe } }, GroupProps)) }, group.id))) }), limit < state.count && ((0, jsx_runtime_1.jsx)(material_1.Button, { className: classes.showMore, onClick: handleToggleDialogOpen, children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userSubscribedGroupsWidget.button.showAll", defaultMessage: "ui.userSubscribedGroupsWidget.button.showAll" }) })), openDialog && ((0, jsx_runtime_1.jsxs)(DialogRoot, Object.assign({ className: classes.dialogRoot, title: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userSubscribedGroupsWidget.title", defaultMessage: "ui.userSubscribedGroupsWidget.title", values: { total: state.count } }), onClose: handleToggleDialogOpen, open: openDialog, scroll: "paper" }, DialogProps, { children: [(0, jsx_runtime_1.jsxs)(List_1.default, { children: [state.results.map((g) => ((0, jsx_runtime_1.jsx)(material_1.ListItem, { children: (0, jsx_runtime_1.jsx)(Group_1.default, Object.assign({ elevation: 0, group: g, groupSubscribeButtonProps: { onSubscribe: handleOnSubscribe } }, GroupProps)) }, g.id))), state.isLoadingNext && ((0, jsx_runtime_1.jsx)(material_1.ListItem, { children: (0, jsx_runtime_1.jsx)(Group_1.GroupSkeleton, Object.assign({ elevation: 0 }, GroupProps)) }))] }), (0, jsx_runtime_1.jsx)(material_1.Typography, { className: classes.endMessage, children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userSubscribedGroupsWidget.noMoreResults", defaultMessage: "ui.userSubscribedGroupsWidget.noMoreResults" }) })] })))] }))] }));
|
|
170
|
+
} }) })), !state.count ? ((0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ className: classes.noResults, variant: "body2" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userSubscribedGroupsWidget.subtitle.noResults", defaultMessage: "ui.userSubscribedGroupsWidget.subtitle.noResults" }) }))) : ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [(0, jsx_runtime_1.jsx)(List_1.default, { children: state.results.slice(0, limit).map((group) => ((0, jsx_runtime_1.jsx)(material_1.ListItem, { children: (0, jsx_runtime_1.jsx)(Group_1.default, Object.assign({ elevation: 0, group: group, groupSubscribeButtonProps: { onSubscribe: handleOnSubscribe } }, GroupProps)) }, group.id))) }), limit < state.count && ((0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ className: classes.showMore, onClick: handleToggleDialogOpen }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userSubscribedGroupsWidget.button.showAll", defaultMessage: "ui.userSubscribedGroupsWidget.button.showAll" }) }))), openDialog && ((0, jsx_runtime_1.jsxs)(DialogRoot, Object.assign({ className: classes.dialogRoot, title: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userSubscribedGroupsWidget.title", defaultMessage: "ui.userSubscribedGroupsWidget.title", values: { total: state.count } }), onClose: handleToggleDialogOpen, open: openDialog, scroll: "paper" }, DialogProps, { children: [(0, jsx_runtime_1.jsxs)(List_1.default, { children: [state.results.map((g) => ((0, jsx_runtime_1.jsx)(material_1.ListItem, { children: (0, jsx_runtime_1.jsx)(Group_1.default, Object.assign({ elevation: 0, group: g, groupSubscribeButtonProps: { onSubscribe: handleOnSubscribe } }, GroupProps)) }, g.id))), state.isLoadingNext && ((0, jsx_runtime_1.jsx)(material_1.ListItem, { children: (0, jsx_runtime_1.jsx)(Group_1.GroupSkeleton, Object.assign({ elevation: 0 }, GroupProps)) }))] }), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ className: classes.endMessage }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userSubscribedGroupsWidget.noMoreResults", defaultMessage: "ui.userSubscribedGroupsWidget.noMoreResults" }) }))] })))] }))] }));
|
|
171
171
|
return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, rest, { children: content })));
|
|
172
172
|
}
|
|
173
173
|
exports.default = UserSubscribedGroupsWidget;
|
|
@@ -37,6 +37,6 @@ const Root = (0, styles_1.styled)(Widget_1.default, {
|
|
|
37
37
|
*
|
|
38
38
|
*/
|
|
39
39
|
function UserSuggestionWidgetSkeleton(props) {
|
|
40
|
-
return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: classes.root }, props, { children: (0, jsx_runtime_1.jsx)(material_1.CardContent, { children: (0, jsx_runtime_1.jsx)(material_1.List, { className: classes.list, children: [...Array(4)].map((user, index) => ((0, jsx_runtime_1.jsx)(material_1.ListItem, { children: (0, jsx_runtime_1.jsx)(Skeleton_1.default, { elevation: 0 }) }, index))) }) }) })));
|
|
40
|
+
return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: classes.root }, props, { children: (0, jsx_runtime_1.jsx)(material_1.CardContent, { children: (0, jsx_runtime_1.jsx)(material_1.List, Object.assign({ className: classes.list }, { children: [...Array(4)].map((user, index) => ((0, jsx_runtime_1.jsx)(material_1.ListItem, { children: (0, jsx_runtime_1.jsx)(Skeleton_1.default, { elevation: 0 }) }, index))) })) }) })));
|
|
41
41
|
}
|
|
42
42
|
exports.default = UserSuggestionWidgetSkeleton;
|
|
@@ -167,7 +167,7 @@ function UserSuggestionWidget(inProps) {
|
|
|
167
167
|
if (!state.initialized) {
|
|
168
168
|
return (0, jsx_runtime_1.jsx)(Skeleton_1.default, {});
|
|
169
169
|
}
|
|
170
|
-
const content = ((0, jsx_runtime_1.jsxs)(material_1.CardContent, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, { className: classes.title, variant: "h5", children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userSuggestionWidget.title", defaultMessage: "ui.userSuggestionWidget.title" }) }), !state.count ? ((0, jsx_runtime_1.jsx)(material_1.Typography, { className: classes.noResults, variant: "body2", children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userSuggestionWidget.noResults", defaultMessage: "ui.userSuggestionWidget.noResults" }) })) : ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.List, { children: state.results.slice(0, state.visibleItems).map((user) => ((0, jsx_runtime_1.jsx)(material_1.ListItem, { children: (0, jsx_runtime_1.jsx)(User_1.default, Object.assign({ elevation: 0, user: user }, UserProps)) }, user.id))) }), state.count > state.visibleItems && ((0, jsx_runtime_1.jsx)(material_1.Button, { className: classes.showMore, onClick: handleToggleDialogOpen, children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userSuggestionWidget.button.showAll", defaultMessage: "ui.userSuggestionWidget.button.showAll" }) }))] })), openDialog && ((0, jsx_runtime_1.jsx)(DialogRoot, Object.assign({ className: classes.dialogRoot, title: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { defaultMessage: "ui.userSuggestionWidget.title", id: "ui.userSuggestionWidget.title" }), onClose: handleToggleDialogOpen, open: openDialog }, DialogProps, { children: (0, jsx_runtime_1.jsx)(InfiniteScroll_1.default, { dataLength: state.results.length, next: handleNext, hasMoreNext: Boolean(state.next), loaderNext: (0, jsx_runtime_1.jsx)(User_1.UserSkeleton, Object.assign({ elevation: 0 }, UserProps)), height: isMobile ? '100%' : 400, endMessage: (0, jsx_runtime_1.jsx)(material_1.Typography, { className: classes.endMessage, children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userSuggestionWidget.noMoreResults", defaultMessage: "ui.userSuggestionWidget.noMoreResults" }) }), children: (0, jsx_runtime_1.jsx)(material_1.List, { children: state.results.map((user) => ((0, jsx_runtime_1.jsx)(material_1.ListItem, { children: (0, jsx_runtime_1.jsx)(User_1.default, Object.assign({ elevation: 0, user: user }, UserProps)) }, user.id))) }) }) })))] }));
|
|
170
|
+
const content = ((0, jsx_runtime_1.jsxs)(material_1.CardContent, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ className: classes.title, variant: "h5" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userSuggestionWidget.title", defaultMessage: "ui.userSuggestionWidget.title" }) })), !state.count ? ((0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ className: classes.noResults, variant: "body2" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userSuggestionWidget.noResults", defaultMessage: "ui.userSuggestionWidget.noResults" }) }))) : ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.List, { children: state.results.slice(0, state.visibleItems).map((user) => ((0, jsx_runtime_1.jsx)(material_1.ListItem, { children: (0, jsx_runtime_1.jsx)(User_1.default, Object.assign({ elevation: 0, user: user }, UserProps)) }, user.id))) }), state.count > state.visibleItems && ((0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ className: classes.showMore, onClick: handleToggleDialogOpen }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userSuggestionWidget.button.showAll", defaultMessage: "ui.userSuggestionWidget.button.showAll" }) })))] })), openDialog && ((0, jsx_runtime_1.jsx)(DialogRoot, Object.assign({ className: classes.dialogRoot, title: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { defaultMessage: "ui.userSuggestionWidget.title", id: "ui.userSuggestionWidget.title" }), onClose: handleToggleDialogOpen, open: openDialog }, DialogProps, { children: (0, jsx_runtime_1.jsx)(InfiniteScroll_1.default, Object.assign({ dataLength: state.results.length, next: handleNext, hasMoreNext: Boolean(state.next), loaderNext: (0, jsx_runtime_1.jsx)(User_1.UserSkeleton, Object.assign({ elevation: 0 }, UserProps)), height: isMobile ? '100%' : 400, endMessage: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ className: classes.endMessage }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userSuggestionWidget.noMoreResults", defaultMessage: "ui.userSuggestionWidget.noMoreResults" }) })) }, { children: (0, jsx_runtime_1.jsx)(material_1.List, { children: state.results.map((user) => ((0, jsx_runtime_1.jsx)(material_1.ListItem, { children: (0, jsx_runtime_1.jsx)(User_1.default, Object.assign({ elevation: 0, user: user }, UserProps)) }, user.id))) }) })) })))] }));
|
|
171
171
|
return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, rest, { children: content })));
|
|
172
172
|
}
|
|
173
173
|
exports.default = UserSuggestionWidget;
|
|
@@ -106,20 +106,20 @@ function VoteAudienceButton(inProps) {
|
|
|
106
106
|
// RENDER
|
|
107
107
|
const audienceIcon = (0, react_1.useMemo)(() => {
|
|
108
108
|
if (reactions.default && !isLoading && !error) {
|
|
109
|
-
return ((0, jsx_runtime_1.jsx)(material_1.Box, { className: classes.reactionList, children: contributionReactionsCount &&
|
|
110
|
-
contributionReactionsCount.slice(0, 3).map((count, i) => ((0, jsx_runtime_1.jsx)(Icon_1.default, { children: (0, jsx_runtime_1.jsx)("img", { alt: count.reaction.label, src: count.reaction.image, width: "100%", height: "100%" }) }, count.reaction.id))) }));
|
|
109
|
+
return ((0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ className: classes.reactionList }, { children: contributionReactionsCount &&
|
|
110
|
+
contributionReactionsCount.slice(0, 3).map((count, i) => ((0, jsx_runtime_1.jsx)(Icon_1.default, { children: (0, jsx_runtime_1.jsx)("img", { alt: count.reaction.label, src: count.reaction.image, width: "100%", height: "100%" }) }, count.reaction.id))) })));
|
|
111
111
|
}
|
|
112
112
|
return scUserContext.user && contributionVoted ? (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "thumb_up" }) : (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "thumb_up_off_alt" });
|
|
113
113
|
}, [reactions.default, isLoading, error, contributionReactionsCount, scUserContext.user, contributionVoted]);
|
|
114
114
|
const dialogTitle = (0, react_1.useMemo)(() => {
|
|
115
115
|
if (reactions.default && !isLoading) {
|
|
116
|
-
return ((0, jsx_runtime_1.jsxs)(material_1.Tabs, { className: classes.dialogTabs, value: tab, onChange: handleChangeTab, "aria-label": "reactions", children: [(0, jsx_runtime_1.jsx)(material_1.Tab, { label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { defaultMessage: "ui.voteAudienceButton.dialog.tab.all", id: "ui.voteAudienceButton.dialog.tab.all" }) }), contributionReactionsCount &&
|
|
117
|
-
contributionReactionsCount.map((count) => ((0, jsx_runtime_1.jsx)(material_1.Tab, { label: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Icon_1.default, { children: (0, jsx_runtime_1.jsx)("img", { alt: count.reaction.label, src: count.reaction.image, width: "100%", height: "100%" }) }), count.count] }) }, count.reaction.id)))] }));
|
|
116
|
+
return ((0, jsx_runtime_1.jsxs)(material_1.Tabs, Object.assign({ className: classes.dialogTabs, value: tab, onChange: handleChangeTab, "aria-label": "reactions" }, { children: [(0, jsx_runtime_1.jsx)(material_1.Tab, { label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { defaultMessage: "ui.voteAudienceButton.dialog.tab.all", id: "ui.voteAudienceButton.dialog.tab.all" }) }), contributionReactionsCount &&
|
|
117
|
+
contributionReactionsCount.map((count) => ((0, jsx_runtime_1.jsx)(material_1.Tab, { label: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Icon_1.default, { children: (0, jsx_runtime_1.jsx)("img", { alt: count.reaction.label, src: count.reaction.image, width: "100%", height: "100%" }) }), count.count] }) }, count.reaction.id)))] })));
|
|
118
118
|
}
|
|
119
119
|
else {
|
|
120
120
|
return (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { defaultMessage: "ui.voteAudienceButton.dialog.title", id: "ui.voteAudienceButton.dialog.title" });
|
|
121
121
|
}
|
|
122
122
|
}, [tab, reactions, contributionReactionsCount]);
|
|
123
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(Root, Object.assign({ onClick: handleOpen, disabled: isLoading || Boolean(error) || contributionVoteCount === 0, loading: isLoading, className: (0, classnames_1.default)(classes.root, className) }, rest, { children: [audienceIcon, "\u00A0", scUserContext.user && contributionVoted ? (contributionVoteCount === 1 ? ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.voteAudienceButton.votedOnlyByMe", defaultMessage: "ui.voteAudienceButton.votedOnlyByMe" })) : ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.voteAudienceButton.votedByMe", defaultMessage: "ui.voteAudienceButton.votedByMe", values: { total: contributionVoteCount - 1 } }))) : ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.voteAudienceButton.votes", defaultMessage: "ui.voteAudienceButton.votes", values: { total: contributionVoteCount } }))] })), open && ((0, jsx_runtime_1.jsx)(DialogRoot, { title: dialogTitle, onClose: handleClose, open: open, DialogContentProps: {}, children: isLoadingVoteList && !voteList ? ((0, jsx_runtime_1.jsx)(CentralProgress_1.default, { size: 50 })) : ((0, jsx_runtime_1.jsx)(InfiniteScroll_1.default, { dataLength: voteList.length, next: () => handleFetchVoteList({}), hasMoreNext: voteListHasNext, loaderNext: (0, jsx_runtime_1.jsx)(CentralProgress_1.default, { size: 30 }), height: 400, endMessage: (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "body2", align: "center", fontWeight: "bold", children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.voteAudienceButton.dialog.end", defaultMessage: "ui.voteAudienceButton.dialog.end" }) }), children: (0, jsx_runtime_1.jsx)(material_1.List, { children: voteList.map((vote) => ((0, jsx_runtime_1.jsx)(material_1.ListItem, { children: (0, jsx_runtime_1.jsx)(User_1.default, { elevation: 0, user: vote.user, badgeContent: (0, jsx_runtime_1.jsx)(material_1.Avatar, { className: classes.dialogVoteBadge, children: vote.reaction ? ((0, jsx_runtime_1.jsx)(Icon_1.default, { children: (0, jsx_runtime_1.jsx)("img", { alt: vote.reaction.label, src: vote.reaction.image, width: "100%", height: "100%" }) })) : ((0, jsx_runtime_1.jsx)(Icon_1.default, { children: "thumb_up" })) }), onClick: handleClose }) }, vote.user.id))) }) })) }))] }));
|
|
123
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(Root, Object.assign({ onClick: handleOpen, disabled: isLoading || Boolean(error) || contributionVoteCount === 0, loading: isLoading, className: (0, classnames_1.default)(classes.root, className) }, rest, { children: [audienceIcon, "\u00A0", scUserContext.user && contributionVoted ? (contributionVoteCount === 1 ? ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.voteAudienceButton.votedOnlyByMe", defaultMessage: "ui.voteAudienceButton.votedOnlyByMe" })) : ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.voteAudienceButton.votedByMe", defaultMessage: "ui.voteAudienceButton.votedByMe", values: { total: contributionVoteCount - 1 } }))) : ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.voteAudienceButton.votes", defaultMessage: "ui.voteAudienceButton.votes", values: { total: contributionVoteCount } }))] })), open && ((0, jsx_runtime_1.jsx)(DialogRoot, Object.assign({ title: dialogTitle, onClose: handleClose, open: open, DialogContentProps: {} }, { children: isLoadingVoteList && !voteList ? ((0, jsx_runtime_1.jsx)(CentralProgress_1.default, { size: 50 })) : ((0, jsx_runtime_1.jsx)(InfiniteScroll_1.default, Object.assign({ dataLength: voteList.length, next: () => handleFetchVoteList({}), hasMoreNext: voteListHasNext, loaderNext: (0, jsx_runtime_1.jsx)(CentralProgress_1.default, { size: 30 }), height: 400, endMessage: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body2", align: "center", fontWeight: "bold" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.voteAudienceButton.dialog.end", defaultMessage: "ui.voteAudienceButton.dialog.end" }) })) }, { children: (0, jsx_runtime_1.jsx)(material_1.List, { children: voteList.map((vote) => ((0, jsx_runtime_1.jsx)(material_1.ListItem, { children: (0, jsx_runtime_1.jsx)(User_1.default, { elevation: 0, user: vote.user, badgeContent: (0, jsx_runtime_1.jsx)(material_1.Avatar, Object.assign({ className: classes.dialogVoteBadge }, { children: vote.reaction ? ((0, jsx_runtime_1.jsx)(Icon_1.default, { children: (0, jsx_runtime_1.jsx)("img", { alt: vote.reaction.label, src: vote.reaction.image, width: "100%", height: "100%" }) })) : ((0, jsx_runtime_1.jsx)(Icon_1.default, { children: "thumb_up" })) })), onClick: handleClose }) }, vote.user.id))) }) }))) })))] }));
|
|
124
124
|
}
|
|
125
125
|
exports.default = VoteAudienceButton;
|
|
@@ -144,8 +144,8 @@ function VoteButton(inProps) {
|
|
|
144
144
|
: () => handleVoteAction(contributionReaction ? contributionReaction : reactions.default ? reactions.default : null), disabled: isLoading || Boolean(error), loading: isVoting, className: (0, classnames_1.default)(classes.root, className, {
|
|
145
145
|
[classes.voted]: scUserContext.user && contributionVoted
|
|
146
146
|
}) }, rest, rootProps, { children: scUserContext.user && contributionVoted ? (contributionReaction ? ((0, jsx_runtime_1.jsx)(Icon_1.default, { children: (0, jsx_runtime_1.jsx)("img", { alt: contributionReaction.label, src: contributionReaction.image, width: "100%", height: "100%" }) })) : ((0, jsx_runtime_1.jsx)(Icon_1.default, { children: "thumb_up" }))) : ((0, jsx_runtime_1.jsx)(Icon_1.default, { children: "thumb_up_off_alt" })) })));
|
|
147
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [reactions.default ? (button) : ((0, jsx_runtime_1.jsx)(material_1.Tooltip, { title: contributionVoted ? ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.voteButton.voteDown", defaultMessage: "ui.voteButton.voteDown" })) : ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.voteButton.voteUp", defaultMessage: "ui.voteButton.voteUp" })), children: (0, jsx_runtime_1.jsx)("span", { children: button }) })), reactions.default && ((0, jsx_runtime_1.jsx)(PopperRoot, { id: `vote_${contributionId}_${contributionType}_popper`, className: classes.popperRoot, open: Boolean(anchorEl) && !isVoting && !isLoading, anchorEl: anchorEl, placement: "top", keepMounted: true, children: (0, jsx_runtime_1.jsx)(material_1.Paper, { className: classes.reactionList, onMouseEnter: handleClearTimeout, onMouseLeave: handleMouseLeave, children: reactions.reactions
|
|
147
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [reactions.default ? (button) : ((0, jsx_runtime_1.jsx)(material_1.Tooltip, Object.assign({ title: contributionVoted ? ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.voteButton.voteDown", defaultMessage: "ui.voteButton.voteDown" })) : ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.voteButton.voteUp", defaultMessage: "ui.voteButton.voteUp" })) }, { children: (0, jsx_runtime_1.jsx)("span", { children: button }) }))), reactions.default && ((0, jsx_runtime_1.jsx)(PopperRoot, Object.assign({ id: `vote_${contributionId}_${contributionType}_popper`, className: classes.popperRoot, open: Boolean(anchorEl) && !isVoting && !isLoading, anchorEl: anchorEl, placement: "top", keepMounted: true }, { children: (0, jsx_runtime_1.jsx)(material_1.Paper, Object.assign({ className: classes.reactionList, onMouseEnter: handleClearTimeout, onMouseLeave: handleMouseLeave }, { children: reactions.reactions
|
|
148
148
|
.filter((reaction) => !contributionVoted || (contributionVoted && contributionReaction.id !== reaction.id) ? reaction.active : reaction)
|
|
149
|
-
.map((reaction) => ((0, jsx_runtime_1.jsx)(material_1.IconButton, { className: classes.reaction, onClick: () => handleVoteAction(reaction), children: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: (0, jsx_runtime_1.jsx)("img", { alt: reaction.label, src: reaction.image, width: "100%", height: "100%" }) }) }, reaction.id))) }) }))] }));
|
|
149
|
+
.map((reaction) => ((0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ className: classes.reaction, onClick: () => handleVoteAction(reaction) }, { children: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: (0, jsx_runtime_1.jsx)("img", { alt: reaction.label, src: reaction.image, width: "100%", height: "100%" }) }) }), reaction.id))) })) })))] }));
|
|
150
150
|
}
|
|
151
151
|
exports.default = VoteButton;
|
|
@@ -9,7 +9,7 @@ var SCTopicType;
|
|
|
9
9
|
SCTopicType["GROUP"] = "group";
|
|
10
10
|
SCTopicType["EVENT"] = "event";
|
|
11
11
|
SCTopicType["CATEGORY"] = "category";
|
|
12
|
-
})(SCTopicType
|
|
12
|
+
})(SCTopicType = exports.SCTopicType || (exports.SCTopicType = {}));
|
|
13
13
|
/**
|
|
14
14
|
* Group/Event event types
|
|
15
15
|
*/
|
|
@@ -22,11 +22,11 @@ var SCGroupEventType;
|
|
|
22
22
|
SCGroupEventType["ADD_MEMBER"] = "members.add_member";
|
|
23
23
|
SCGroupEventType["INVITE_MEMBER"] = "members.invite_member";
|
|
24
24
|
SCGroupEventType["REMOVE_MEMBER"] = "members.remove_member";
|
|
25
|
-
})(SCGroupEventType
|
|
25
|
+
})(SCGroupEventType = exports.SCGroupEventType || (exports.SCGroupEventType = {}));
|
|
26
26
|
/**
|
|
27
27
|
* Category event types
|
|
28
28
|
*/
|
|
29
29
|
var SCCategoryEventType;
|
|
30
30
|
(function (SCCategoryEventType) {
|
|
31
31
|
SCCategoryEventType["EDIT"] = "edit";
|
|
32
|
-
})(SCCategoryEventType
|
|
32
|
+
})(SCCategoryEventType = exports.SCCategoryEventType || (exports.SCCategoryEventType = {}));
|
|
@@ -42,7 +42,7 @@ function AutoPlayer(props) {
|
|
|
42
42
|
/**
|
|
43
43
|
* Renders root object
|
|
44
44
|
*/
|
|
45
|
-
return ((0, jsx_runtime_1.jsx)(Root, { scrollableAncestor: window, onEnter: handleEnterViewport, onLeave: handleExitViewport, children: (0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(react_player_1.default, Object.assign({ loop: loop, controls: controls, stopOnUnmount: stopOnUnmount, pip: pip, playing: shouldPlay, muted: muted, onProgress: (progress) => {
|
|
45
|
+
return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ scrollableAncestor: window, onEnter: handleEnterViewport, onLeave: handleExitViewport }, { children: (0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(react_player_1.default, Object.assign({ loop: loop, controls: controls, stopOnUnmount: stopOnUnmount, pip: pip, playing: shouldPlay, muted: muted, onProgress: (progress) => {
|
|
46
46
|
setPlayed(progress.playedSeconds);
|
|
47
47
|
}, playsinline: playsinline, config: {
|
|
48
48
|
youtube: {
|
|
@@ -51,6 +51,6 @@ function AutoPlayer(props) {
|
|
|
51
51
|
},
|
|
52
52
|
playerVars: { rel: 0 }
|
|
53
53
|
}
|
|
54
|
-
} }, rest)) }) }));
|
|
54
|
+
} }, rest)) }) })));
|
|
55
55
|
}
|
|
56
56
|
exports.default = AutoPlayer;
|
|
@@ -26,7 +26,7 @@ const DialogTitleRoot = (0, styles_1.styled)(DialogTitle_1.default, {
|
|
|
26
26
|
const DialogTitle = ({ children = null, onClose = null }) => {
|
|
27
27
|
const theme = (0, material_1.useTheme)();
|
|
28
28
|
const isMobile = (0, useMediaQuery_1.default)(theme.breakpoints.down('md'), { noSsr: (0, utils_1.isClientSideRendering)() });
|
|
29
|
-
return ((0, jsx_runtime_1.jsxs)(DialogTitleRoot, { className: classes.titleRoot, children: [(0, jsx_runtime_1.jsx)("span", { children: children }), onClose ? ((0, jsx_runtime_1.jsx)(IconButton_1.default, { "aria-label": "close", onClick: onClose, children: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: isMobile ? 'arrow_back' : 'close' }) })) : null] }));
|
|
29
|
+
return ((0, jsx_runtime_1.jsxs)(DialogTitleRoot, Object.assign({ className: classes.titleRoot }, { children: [(0, jsx_runtime_1.jsx)("span", { children: children }), onClose ? ((0, jsx_runtime_1.jsx)(IconButton_1.default, Object.assign({ "aria-label": "close", onClick: onClose }, { children: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: isMobile ? 'arrow_back' : 'close' }) }))) : null] })));
|
|
30
30
|
};
|
|
31
31
|
const Root = (0, styles_1.styled)(Dialog_1.default, {
|
|
32
32
|
name: PREFIX,
|
|
@@ -43,6 +43,6 @@ function BaseDialog(props) {
|
|
|
43
43
|
/**
|
|
44
44
|
* Renders root object
|
|
45
45
|
*/
|
|
46
|
-
return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className), fullScreen: fullScreen, fullWidth: true, open: open, onClose: onClose, maxWidth: maxWidth, scroll: scroll }, rest, { children: [(0, jsx_runtime_1.jsx)(DialogTitle, { onClose: onClose, children: title }), subtitle && subtitle, (0, jsx_runtime_1.jsx)(DialogContent_1.default, Object.assign({}, DialogContentProps, { children: children })), actions && (0, jsx_runtime_1.jsx)(DialogActions_1.default, { children: actions })] })));
|
|
46
|
+
return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className), fullScreen: fullScreen, fullWidth: true, open: open, onClose: onClose, maxWidth: maxWidth, scroll: scroll }, rest, { children: [(0, jsx_runtime_1.jsx)(DialogTitle, Object.assign({ onClose: onClose }, { children: title })), subtitle && subtitle, (0, jsx_runtime_1.jsx)(DialogContent_1.default, Object.assign({}, DialogContentProps, { children: children })), actions && (0, jsx_runtime_1.jsx)(DialogActions_1.default, { children: actions })] })));
|
|
47
47
|
}
|
|
48
48
|
exports.default = BaseDialog;
|
|
@@ -59,8 +59,8 @@ function BaseItem(inProps) {
|
|
|
59
59
|
});
|
|
60
60
|
const { id = null, className = null, image = null, disableTypography = false, primary = null, primaryTypographyProps = { component: 'span', variant: 'body1' }, secondary = null, secondaryTypographyProps = { component: 'p', variant: 'body2' }, actions = null } = props, rest = tslib_1.__rest(props, ["id", "className", "image", "disableTypography", "primary", "primaryTypographyProps", "secondary", "secondaryTypographyProps", "actions"]);
|
|
61
61
|
// RENDER
|
|
62
|
-
return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ id: id }, rest, { className: (0, classnames_1.default)(classes.root, className, { [classes.withActions]: Boolean(actions) }), children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { className: classes.content, children: [image && (0, jsx_runtime_1.jsx)(material_1.Box, { className: classes.image, children: image }), (0, jsx_runtime_1.jsxs)(material_1.Box, { className: classes.text, children: [primary &&
|
|
62
|
+
return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ id: id }, rest, { className: (0, classnames_1.default)(classes.root, className, { [classes.withActions]: Boolean(actions) }) }, { children: [(0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ className: classes.content }, { children: [image && (0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ className: classes.image }, { children: image })), (0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ className: classes.text }, { children: [primary &&
|
|
63
63
|
(disableTypography ? (primary) : ((0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ className: classes.primary }, primaryTypographyProps, { children: primary })))), secondary &&
|
|
64
|
-
(disableTypography ? (secondary) : ((0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ className: classes.secondary }, secondaryTypographyProps, { children: secondary }))))] })] }), actions && (0, jsx_runtime_1.jsx)(material_1.Box, { className: classes.actions, children: actions })] })));
|
|
64
|
+
(disableTypography ? (secondary) : ((0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ className: classes.secondary }, secondaryTypographyProps, { children: secondary }))))] }))] })), actions && (0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ className: classes.actions }, { children: actions }))] })));
|
|
65
65
|
}
|
|
66
66
|
exports.default = BaseItem;
|
|
@@ -59,8 +59,8 @@ function BaseItemButton(inProps) {
|
|
|
59
59
|
});
|
|
60
60
|
const { id = null, className = null, ButtonBaseProps = {}, image = null, disableTypography = false, primary = null, primaryTypographyProps = { component: 'span', variant: 'body1' }, secondary = null, secondaryTypographyProps = { component: 'p', variant: 'body2' }, actions = null } = props, rest = tslib_1.__rest(props, ["id", "className", "ButtonBaseProps", "image", "disableTypography", "primary", "primaryTypographyProps", "secondary", "secondaryTypographyProps", "actions"]);
|
|
61
61
|
// RENDER
|
|
62
|
-
return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ id: id }, rest, { className: (0, classnames_1.default)(classes.root, className, { [classes.withActions]: Boolean(actions) }), children: [(0, jsx_runtime_1.jsxs)(material_1.ButtonBase, Object.assign({ className: classes.content }, ButtonBaseProps, { children: [image && (0, jsx_runtime_1.jsx)(material_1.Box, { className: classes.image, children: image }), (0, jsx_runtime_1.jsxs)(material_1.Box, { className: classes.text, children: [primary &&
|
|
62
|
+
return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ id: id }, rest, { className: (0, classnames_1.default)(classes.root, className, { [classes.withActions]: Boolean(actions) }) }, { children: [(0, jsx_runtime_1.jsxs)(material_1.ButtonBase, Object.assign({ className: classes.content }, ButtonBaseProps, { children: [image && (0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ className: classes.image }, { children: image })), (0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ className: classes.text }, { children: [primary &&
|
|
63
63
|
(disableTypography ? (primary) : ((0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ className: classes.primary }, primaryTypographyProps, { children: primary })))), secondary &&
|
|
64
|
-
(disableTypography ? (secondary) : ((0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ className: classes.secondary }, secondaryTypographyProps, { children: secondary }))))] })] })), actions && (0, jsx_runtime_1.jsx)(material_1.Box, { className: classes.actions, children: actions })] })));
|
|
64
|
+
(disableTypography ? (secondary) : ((0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ className: classes.secondary }, secondaryTypographyProps, { children: secondary }))))] }))] })), actions && (0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ className: classes.actions }, { children: actions }))] })));
|
|
65
65
|
}
|
|
66
66
|
exports.default = BaseItemButton;
|
|
@@ -14,6 +14,6 @@ const Root = (0, material_1.styled)(material_1.Stack, {
|
|
|
14
14
|
})(() => ({}));
|
|
15
15
|
function Calendar(props) {
|
|
16
16
|
const day = props.day;
|
|
17
|
-
return ((0, jsx_runtime_1.jsxs)(Root, { className: classes.root, children: [(0, jsx_runtime_1.jsx)(material_1.Box, { className: classes.header }), (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "h2", textAlign: "center", children: day })] }));
|
|
17
|
+
return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: classes.root }, { children: [(0, jsx_runtime_1.jsx)(material_1.Box, { className: classes.header }), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "h2", textAlign: "center" }, { children: day }))] })));
|
|
18
18
|
}
|
|
19
19
|
exports.default = Calendar;
|
|
@@ -41,6 +41,6 @@ function ConfirmDialog(props) {
|
|
|
41
41
|
/**
|
|
42
42
|
* Renders root object
|
|
43
43
|
*/
|
|
44
|
-
return ((0, jsx_runtime_1.jsx)(Root, { children: (0, jsx_runtime_1.jsxs)(material_1.Dialog, Object.assign({ open: open, onClose: handleClose }, rest, { children: [(0, jsx_runtime_1.jsx)(material_1.DialogTitle, { children: title || (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.confirmDialog.title", defaultMessage: "ui.confirmDialog.title" }) }), content && ((0, jsx_runtime_1.jsx)(material_1.DialogContent, { children: (0, jsx_runtime_1.jsx)(material_1.DialogContentText, { component: "div", children: content }) })), (0, jsx_runtime_1.jsxs)(material_1.DialogActions, { children: [(0, jsx_runtime_1.jsx)(Button_1.default, { onClick: handleClose, children: btnCancel || (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.confirmDialog.btnCancel", defaultMessage: "ui.confirmDialog.btnCancel" }) }), (0, jsx_runtime_1.jsx)(lab_1.LoadingButton, { onClick: handleConfirm, variant: "contained", autoFocus: true, loading: isUpdating, children: btnConfirm || (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.confirmDialog.btnConfirm", defaultMessage: "ui.confirmDialog.btnConfirm" }) })] })] })) }));
|
|
44
|
+
return ((0, jsx_runtime_1.jsx)(Root, { children: (0, jsx_runtime_1.jsxs)(material_1.Dialog, Object.assign({ open: open, onClose: handleClose }, rest, { children: [(0, jsx_runtime_1.jsx)(material_1.DialogTitle, { children: title || (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.confirmDialog.title", defaultMessage: "ui.confirmDialog.title" }) }), content && ((0, jsx_runtime_1.jsx)(material_1.DialogContent, { children: (0, jsx_runtime_1.jsx)(material_1.DialogContentText, Object.assign({ component: "div" }, { children: content })) })), (0, jsx_runtime_1.jsxs)(material_1.DialogActions, { children: [(0, jsx_runtime_1.jsx)(Button_1.default, Object.assign({ onClick: handleClose }, { children: btnCancel || (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.confirmDialog.btnCancel", defaultMessage: "ui.confirmDialog.btnCancel" }) })), (0, jsx_runtime_1.jsx)(lab_1.LoadingButton, Object.assign({ onClick: handleConfirm, variant: "contained", autoFocus: true, loading: isUpdating }, { children: btnConfirm || (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.confirmDialog.btnConfirm", defaultMessage: "ui.confirmDialog.btnConfirm" }) }))] })] })) }));
|
|
45
45
|
}
|
|
46
46
|
exports.default = ConfirmDialog;
|
|
@@ -144,11 +144,11 @@ function ConsentSolutionSwitch(inProps) {
|
|
|
144
144
|
});
|
|
145
145
|
const { loading } = props, rest = tslib_1.__rest(props, ["loading"]);
|
|
146
146
|
// Icon loading state
|
|
147
|
-
const IconLoading = () => ((0, jsx_runtime_1.jsx)("span", { className: classes.thumb, children: (0, jsx_runtime_1.jsx)(material_1.CircularProgress, { size: 14, className: classes.thumbLoader }) }));
|
|
147
|
+
const IconLoading = () => ((0, jsx_runtime_1.jsx)("span", Object.assign({ className: classes.thumb }, { children: (0, jsx_runtime_1.jsx)(material_1.CircularProgress, { size: 14, className: classes.thumbLoader }) })));
|
|
148
148
|
// Icon checked state
|
|
149
|
-
const IconChecked = () => ((0, jsx_runtime_1.jsx)("span", { className: classes.thumb, children: (0, jsx_runtime_1.jsx)(Icon_1.default, { className: classes.thumbChecked, children: "check_outlined" }) }));
|
|
149
|
+
const IconChecked = () => ((0, jsx_runtime_1.jsx)("span", Object.assign({ className: classes.thumb }, { children: (0, jsx_runtime_1.jsx)(Icon_1.default, Object.assign({ className: classes.thumbChecked }, { children: "check_outlined" })) })));
|
|
150
150
|
// Icon unchecked state
|
|
151
|
-
const IconUnChecked = () => ((0, jsx_runtime_1.jsx)("span", { className: classes.thumb, children: (0, jsx_runtime_1.jsx)(Icon_1.default, { className: classes.thumbUnChecked, children: "close" }) }));
|
|
151
|
+
const IconUnChecked = () => ((0, jsx_runtime_1.jsx)("span", Object.assign({ className: classes.thumb }, { children: (0, jsx_runtime_1.jsx)(Icon_1.default, Object.assign({ className: classes.thumbUnChecked }, { children: "close" })) })));
|
|
152
152
|
return (0, jsx_runtime_1.jsx)(Root, Object.assign({}, rest, { checkedIcon: loading ? (0, jsx_runtime_1.jsx)(IconLoading, {}) : (0, jsx_runtime_1.jsx)(IconChecked, {}), icon: loading ? (0, jsx_runtime_1.jsx)(IconLoading, {}) : (0, jsx_runtime_1.jsx)(IconUnChecked, {}) }));
|
|
153
153
|
}
|
|
154
154
|
exports.default = ConsentSolutionSwitch;
|
|
@@ -651,7 +651,7 @@ function ContributionActionsMenu(props) {
|
|
|
651
651
|
: handleDeleteContribution;
|
|
652
652
|
let value = section === ContributionsActionsMenu_1.FLAG_CONTRIBUTION_SECTION ? flagType : section === ContributionsActionsMenu_1.HIDE_CONTRIBUTION_SECTION ? hideType : deleteType;
|
|
653
653
|
return Flagging_1.REPORTS.map((report, index) => {
|
|
654
|
-
return ((0, jsx_runtime_1.jsxs)(material_1.MenuItem, { className: classes.subItem, disabled: isFlagging, children: [(0, jsx_runtime_1.jsx)(material_1.ListItemIcon, { classes: { root: classes.selectedIcon }, children: value === report && (0, jsx_runtime_1.jsx)(Icon_1.default, { color: "secondary", children: "check" }) }), (0, jsx_runtime_1.jsx)(material_1.ListItemText, { primary: getReportName(report), onClick: () => handlerFunc(report), classes: { root: classes.subItemText } })] }, `${section}_${index}`));
|
|
654
|
+
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}`));
|
|
655
655
|
});
|
|
656
656
|
}
|
|
657
657
|
/**
|
|
@@ -659,21 +659,21 @@ function ContributionActionsMenu(props) {
|
|
|
659
659
|
*/
|
|
660
660
|
function renderFlagContributionSection() {
|
|
661
661
|
const open = openSection === ContributionsActionsMenu_1.FLAG_CONTRIBUTION_SECTION;
|
|
662
|
-
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, { 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, { classes: { badge: classes.sectionBadge }, badgeContent: (0, jsx_runtime_1.jsx)(Icon_1.default, { 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, { in: open, timeout: "auto", unmountOnExit: true, children: [renderReports(ContributionsActionsMenu_1.FLAG_CONTRIBUTION_SECTION), (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: 'caption', component: "div", className: classes.footerSubItems, children: intl.formatMessage(messages.footer) })] })] })) }));
|
|
662
|
+
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) }))] }))] })) }));
|
|
663
663
|
}
|
|
664
664
|
/**
|
|
665
665
|
* Renders section hide actions
|
|
666
666
|
*/
|
|
667
667
|
function renderHideContributionSection() {
|
|
668
668
|
const open = openSection === ContributionsActionsMenu_1.HIDE_CONTRIBUTION_SECTION;
|
|
669
|
-
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, { 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, { 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, { in: open, timeout: "auto", unmountOnExit: true, children: renderReports(ContributionsActionsMenu_1.HIDE_CONTRIBUTION_SECTION) })] })) })) }, ContributionsActionsMenu_1.HIDE_CONTRIBUTION_SECTION));
|
|
669
|
+
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));
|
|
670
670
|
}
|
|
671
671
|
/**
|
|
672
672
|
* Renders section hidden actions
|
|
673
673
|
*/
|
|
674
674
|
function renderDeleteContributionSection() {
|
|
675
675
|
const open = openSection === ContributionsActionsMenu_1.DELETE_CONTRIBUTION_SECTION;
|
|
676
|
-
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, { 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, { 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, { in: open, timeout: "auto", unmountOnExit: true, children: renderReports(ContributionsActionsMenu_1.DELETE_CONTRIBUTION_SECTION) })] })) })) }, ContributionsActionsMenu_1.DELETE_CONTRIBUTION_SECTION));
|
|
676
|
+
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));
|
|
677
677
|
}
|
|
678
678
|
/**
|
|
679
679
|
* Can authenticated user modify the contribution
|
|
@@ -711,7 +711,7 @@ function ContributionActionsMenu(props) {
|
|
|
711
711
|
* Renders section general
|
|
712
712
|
*/
|
|
713
713
|
function renderGeneralSection() {
|
|
714
|
-
return ((0, jsx_runtime_1.jsxs)(material_1.Box, { children: [(0, jsx_runtime_1.jsxs)(material_1.MenuItem, { 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, { 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, { 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, { 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 } })] })), canSuspendNotificationEvent() && ((0, jsx_runtime_1.jsxs)(material_1.MenuItem, { className: classes.subItem, disabled: isFlagging, children: [(0, jsx_runtime_1.jsx)(material_1.ListItemIcon, { children: currentActionLoading === ContributionsActionsMenu_1.SUSPEND_NOTIFICATION_EVENT ? ((0, jsx_runtime_1.jsx)(material_1.CircularProgress, { size: 20 })) : contributionObj.event['show_on_feed'] ? ((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.event['show_on_feed'] ? ((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_EVENT), classes: { root: classes.itemText } })] }))] }, ContributionsActionsMenu_1.GENERAL_SECTION));
|
|
714
|
+
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 } })] }))), canSuspendNotificationEvent() && ((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_EVENT ? ((0, jsx_runtime_1.jsx)(material_1.CircularProgress, { size: 20 })) : contributionObj.event['show_on_feed'] ? ((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.event['show_on_feed'] ? ((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_EVENT), classes: { root: classes.itemText } })] })))] }, ContributionsActionsMenu_1.GENERAL_SECTION));
|
|
715
715
|
}
|
|
716
716
|
/**
|
|
717
717
|
* Renders contribution menu content
|
|
@@ -722,18 +722,18 @@ function ContributionActionsMenu(props) {
|
|
|
722
722
|
/**
|
|
723
723
|
* Renders component
|
|
724
724
|
*/
|
|
725
|
-
return ((0, jsx_runtime_1.jsxs)(Root, { className: (0, classnames_1.default)(classes.root, className), children: [(0, jsx_runtime_1.jsx)(material_1.IconButton
|
|
725
|
+
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
|
|
726
726
|
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
|
|
727
727
|
// @ts-ignore
|
|
728
|
-
, {
|
|
728
|
+
, Object.assign({
|
|
729
729
|
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
|
|
730
730
|
// @ts-ignore
|
|
731
731
|
ref: (ref) => {
|
|
732
732
|
popperRef.current = ref;
|
|
733
|
-
}, "aria-haspopup": "true", onClick: handleOpen, className: classes.button, size: "small", children: contributionObj && (contributionObj.collapsed || contributionObj.deleted) ? ((0, jsx_runtime_1.jsxs)("span", { 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, { 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, { variant: 'outlined', className: classes.paper, children: (0, jsx_runtime_1.jsx)(material_1.ClickAwayListener, { onClickAway: handleClose, children: renderContent() }) }) }))) }))), openConfirmDialog && ((0, jsx_runtime_1.jsx)(ConfirmDialog_1.default, Object.assign({ open: openConfirmDialog }, (currentAction === ContributionsActionsMenu_1.DELETE_CONTRIBUTION
|
|
733
|
+
}, "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
|
|
734
734
|
? {
|
|
735
|
-
content: (
|
|
735
|
+
content: ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.contributionActionMenu.deleteContributionInfo", defaultMessage: "ui.contributionActionMenu.deleteContributionInfo" }))
|
|
736
736
|
}
|
|
737
|
-
: {}), { onConfirm: handleConfirmedAction, isUpdating: Boolean(currentActionLoading), onClose: () => setOpenConfirmDialog(false) })))] }));
|
|
737
|
+
: {}), { onConfirm: handleConfirmedAction, isUpdating: Boolean(currentActionLoading), onClose: () => setOpenConfirmDialog(false) })))] })));
|
|
738
738
|
}
|
|
739
739
|
exports.default = ContributionActionsMenu;
|
|
@@ -33,6 +33,6 @@ const CustomSnackMessage = (0, react_1.forwardRef)((props, ref) => {
|
|
|
33
33
|
const handleDismiss = (0, react_1.useCallback)(() => {
|
|
34
34
|
closeSnackbar(props.id);
|
|
35
35
|
}, [props.id, closeSnackbar]);
|
|
36
|
-
return ((0, jsx_runtime_1.jsx)(Root, { ref: ref, className: classes.root, children: (0, jsx_runtime_1.jsx)(Widget_1.default, { className: classes.card, children: (0, jsx_runtime_1.jsxs)(material_1.CardContent, { className: classes.content, children: [(0, jsx_runtime_1.jsx)(material_1.IconButton, { className: classes.close, onClick: handleDismiss, children: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "close" }) }), props.message] }) }) }, props.id));
|
|
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));
|
|
37
37
|
});
|
|
38
38
|
exports.default = CustomSnackMessage;
|
|
@@ -39,7 +39,7 @@ function DateTimeAgo(props) {
|
|
|
39
39
|
*/
|
|
40
40
|
if (date) {
|
|
41
41
|
const formattedDate = (0, formatRelativeTime_1.getRelativeTime)(date);
|
|
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, { 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, { variant: 'body2', component: 'span', children: (0, jsx_runtime_1.jsx)(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" }) })) }))] })));
|
|
43
43
|
}
|
|
44
44
|
return null;
|
|
45
45
|
}
|
|
@@ -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 (0, jsx_runtime_1.jsx)(Root, { className: (0, classnames_1.default)(classes.root, className), children: Picker && (0, jsx_runtime_1.jsx)(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;
|
|
@@ -150,19 +150,19 @@ function EventActionsMenu(inProps) {
|
|
|
150
150
|
*/
|
|
151
151
|
const renderList = () => {
|
|
152
152
|
return [
|
|
153
|
-
(0, jsx_runtime_1.jsxs)(material_1.MenuItem, { className: classes.item, onClick: () => handleAction(EventActionsMenu_1.GET_EVENT_LINK), 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)(react_intl_1.FormattedMessage, { id: "ui.shared.eventActionsMenu.item.link", defaultMessage: "ui.shared.eventActionsMenu.item.link" })] }, "link"),
|
|
154
|
-
!isEventFinished && ((0, jsx_runtime_1.jsxs)(material_1.MenuItem, { className: classes.item, onClick: () => handleAction(EventActionsMenu_1.ADD_EVENT_TO_CALENDAR), children: [(0, jsx_runtime_1.jsx)(material_1.ListItemIcon, { children: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "CalendarIcon" }) }), (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.shared.eventActionsMenu.item.calendar", defaultMessage: "ui.shared.eventActionsMenu.item.calendar" })] }, "calendar")),
|
|
153
|
+
(0, jsx_runtime_1.jsxs)(material_1.MenuItem, Object.assign({ className: classes.item, onClick: () => handleAction(EventActionsMenu_1.GET_EVENT_LINK) }, { 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)(react_intl_1.FormattedMessage, { id: "ui.shared.eventActionsMenu.item.link", defaultMessage: "ui.shared.eventActionsMenu.item.link" })] }), "link"),
|
|
154
|
+
!isEventFinished && ((0, jsx_runtime_1.jsxs)(material_1.MenuItem, Object.assign({ className: classes.item, onClick: () => handleAction(EventActionsMenu_1.ADD_EVENT_TO_CALENDAR) }, { children: [(0, jsx_runtime_1.jsx)(material_1.ListItemIcon, { children: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "CalendarIcon" }) }), (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.shared.eventActionsMenu.item.calendar", defaultMessage: "ui.shared.eventActionsMenu.item.calendar" })] }), "calendar")),
|
|
155
155
|
isEventAdmin &&
|
|
156
156
|
!isEventFinished && [
|
|
157
157
|
(0, jsx_runtime_1.jsx)(material_1.Divider, {}, "divider"),
|
|
158
|
-
isMobile && ((0, jsx_runtime_1.jsxs)(material_1.MenuItem, { className: classes.item, onClick: handleEditClick, 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)(react_intl_1.FormattedMessage, { id: "ui.shared.eventActionsMenu.item.edit", defaultMessage: "ui.shared.eventActionsMenu.item.edit" })] }, "edit")),
|
|
159
|
-
(0, jsx_runtime_1.jsxs)(material_1.MenuItem, { className: classes.item, onClick: () => handleAction(EventActionsMenu_1.CANCEL_EVENT), children: [(0, jsx_runtime_1.jsx)(material_1.ListItemIcon, { children: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "close" }) }), (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.shared.eventActionsMenu.item.cancel", defaultMessage: "ui.shared.eventActionsMenu.item.cancel" })] }, "cancel")
|
|
158
|
+
isMobile && ((0, jsx_runtime_1.jsxs)(material_1.MenuItem, Object.assign({ className: classes.item, onClick: handleEditClick }, { 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)(react_intl_1.FormattedMessage, { id: "ui.shared.eventActionsMenu.item.edit", defaultMessage: "ui.shared.eventActionsMenu.item.edit" })] }), "edit")),
|
|
159
|
+
(0, jsx_runtime_1.jsxs)(material_1.MenuItem, Object.assign({ className: classes.item, onClick: () => handleAction(EventActionsMenu_1.CANCEL_EVENT) }, { children: [(0, jsx_runtime_1.jsx)(material_1.ListItemIcon, { children: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "close" }) }), (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.shared.eventActionsMenu.item.cancel", defaultMessage: "ui.shared.eventActionsMenu.item.cancel" })] }), "cancel")
|
|
160
160
|
]
|
|
161
161
|
];
|
|
162
162
|
};
|
|
163
163
|
if (!scEvent) {
|
|
164
164
|
return null;
|
|
165
165
|
}
|
|
166
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, rest, { onClick: handleOpen, children: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "more_vert" }) })), isMobile ? ((0, jsx_runtime_1.jsx)(SwipeableDrawerRoot, { className: classes.drawerRoot, anchor: "bottom", open: Boolean(anchorEl), onClose: handleClose, onOpen: handleOpen, PaperProps: { className: classes.paper }, disableSwipeToOpen: true, children: (0, jsx_runtime_1.jsx)(material_1.List, { children: renderList() }) })) : ((0, jsx_runtime_1.jsx)(MenuRoot, { className: classes.menuRoot, anchorEl: anchorEl, open: Boolean(anchorEl), onClose: handleClose, PaperProps: { className: classes.paper }, children: renderList() })), openConfirmDialog && ((0, jsx_runtime_1.jsx)(ConfirmDialog_1.default, { open: openConfirmDialog, title: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.shared.eventActionsMenu.dialog.msg", defaultMessage: "ui.shared.eventActionsMenu.dialog.msg" }), btnConfirm: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.shared.eventActionsMenu.dialog.confirm", defaultMessage: "ui.shared.eventActionsMenu.dialog.confirm" }), onConfirm: handleDeleteThread, onClose: handleCloseDialog })), openEdit && (0, jsx_runtime_1.jsx)(EventForm_1.default, { onClose: handleEditClick, event: scEvent, onSuccess: handleEditSuccess })] }));
|
|
166
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, rest, { onClick: handleOpen }, { children: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "more_vert" }) })), isMobile ? ((0, jsx_runtime_1.jsx)(SwipeableDrawerRoot, Object.assign({ className: classes.drawerRoot, anchor: "bottom", open: Boolean(anchorEl), onClose: handleClose, onOpen: handleOpen, PaperProps: { className: classes.paper }, disableSwipeToOpen: true }, { children: (0, jsx_runtime_1.jsx)(material_1.List, { children: renderList() }) }))) : ((0, jsx_runtime_1.jsx)(MenuRoot, Object.assign({ className: classes.menuRoot, anchorEl: anchorEl, open: Boolean(anchorEl), onClose: handleClose, PaperProps: { className: classes.paper } }, { children: renderList() }))), openConfirmDialog && ((0, jsx_runtime_1.jsx)(ConfirmDialog_1.default, { open: openConfirmDialog, title: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.shared.eventActionsMenu.dialog.msg", defaultMessage: "ui.shared.eventActionsMenu.dialog.msg" }), btnConfirm: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.shared.eventActionsMenu.dialog.confirm", defaultMessage: "ui.shared.eventActionsMenu.dialog.confirm" }), onConfirm: handleDeleteThread, onClose: handleCloseDialog })), openEdit && (0, jsx_runtime_1.jsx)(EventForm_1.default, { onClose: handleEditClick, event: scEvent, onSuccess: handleEditSuccess })] }));
|
|
167
167
|
}
|
|
168
168
|
exports.default = EventActionsMenu;
|
|
@@ -35,7 +35,7 @@ function EventInfoDetails(inProps) {
|
|
|
35
35
|
if (!scEvent) {
|
|
36
36
|
return null;
|
|
37
37
|
}
|
|
38
|
-
return ((0, jsx_runtime_1.jsxs)(Root, { className: classes.root, children: [beforeDateInfo, hasDateInfo && ((0, jsx_runtime_1.jsxs)(material_1.Stack, { className: classes.iconTextWrapper, children: [!hideDateIcon && (0, jsx_runtime_1.jsx)(material_1.Icon, { fontSize: "small", children: scEvent.active ? 'CalendarIcon' : 'calendar_off' }), (0, jsx_runtime_1.jsx)(material_1.Tooltip, { title: !scEvent.active ? ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.eventInfoDetails.deleted.tooltip", defaultMessage: "ui.eventInfoDetails.deleted.tooltip" })) : null, children: (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "body1", children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.eventInfoDetails.date.startEndTime", defaultMessage: "ui.eventInfoDetails.date.startEndTime", values: {
|
|
38
|
+
return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: classes.root }, { children: [beforeDateInfo, hasDateInfo && ((0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ className: classes.iconTextWrapper }, { children: [!hideDateIcon && (0, jsx_runtime_1.jsx)(material_1.Icon, Object.assign({ fontSize: "small" }, { children: scEvent.active ? 'CalendarIcon' : 'calendar_off' })), (0, jsx_runtime_1.jsx)(material_1.Tooltip, Object.assign({ title: !scEvent.active ? ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.eventInfoDetails.deleted.tooltip", defaultMessage: "ui.eventInfoDetails.deleted.tooltip" })) : null }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body1" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.eventInfoDetails.date.startEndTime", defaultMessage: "ui.eventInfoDetails.date.startEndTime", values: {
|
|
39
39
|
date: intl.formatDate(scEvent.running ? scEvent.running_start_date : scEvent.next_start_date ? scEvent.next_start_date : scEvent.start_date, {
|
|
40
40
|
weekday: 'long',
|
|
41
41
|
day: 'numeric',
|
|
@@ -43,13 +43,13 @@ function EventInfoDetails(inProps) {
|
|
|
43
43
|
month: 'long'
|
|
44
44
|
}),
|
|
45
45
|
start: intl.formatDate(scEvent.running ? scEvent.running_start_date : scEvent.next_start_date ? scEvent.next_start_date : scEvent.start_date, { hour: 'numeric', minute: 'numeric' })
|
|
46
|
-
} }) }) }), hasInProgress && scEvent.active && scEvent.running && ((0, jsx_runtime_1.jsx)(material_1.Tooltip, { title: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.eventInfoDetails.inProgress", defaultMessage: "ui.eventInfoDetails.inProgress" }), children: (0, jsx_runtime_1.jsx)(material_1.Box, { className: classes.inProgress }) }))] })), beforeRecurringInfo, hasRecurringInfo && scEvent.recurring !== types_1.SCEventRecurrenceType.NEVER && ((0, jsx_runtime_1.jsxs)(material_1.Stack, { className: classes.iconTextWrapper, children: [!hideRecurringIcon && (0, jsx_runtime_1.jsx)(material_1.Icon, { fontSize: "small", children: "frequency" }), (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "body1", children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: `ui.eventInfoDetails.frequency.${scEvent.recurring}.placeholder`, defaultMessage: `ui.eventInfoDetails.frequency.${scEvent.recurring}.placeholder` }) })] })), beforePrivacyInfo, hasPrivacyInfo && ((0, jsx_runtime_1.jsxs)(material_1.Stack, { className: classes.iconTextWrapper, children: [!hidePrivacyIcon && (0, jsx_runtime_1.jsx)(material_1.Icon, { fontSize: "small", children: scEvent.privacy === types_1.SCEventPrivacyType.PUBLIC ? 'public' : 'private' }), (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "body1", children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: privacy, defaultMessage: privacy }) }), "-", (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "body1", children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: location, defaultMessage: location }) })] })), beforeLocationInfo, hasLocationInfo && ((0, jsx_runtime_1.jsxs)(material_1.Stack, { className: classes.iconTextWrapper, children: [!hideLocationIcon && ((0, jsx_runtime_1.jsx)(material_1.Icon, { fontSize: "small", children: scEvent.location === types_1.SCEventLocationType.ONLINE ? 'play_circle_outline' : 'add_location_alt' })), scEvent.location === types_1.SCEventLocationType.ONLINE ? ((0, jsx_runtime_1.jsx)(react_core_1.Link, { to: scEvent.link, target: "_blank", className: classes.link, children: (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "body1", className: classes.url, children: scEvent.link }) })) : ((0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "body1", className: classes.url, children: scEvent.geolocation }))] })), beforeCreatedInfo, hasCreatedInfo && ((0, jsx_runtime_1.jsxs)(material_1.Stack, { className: classes.creationWrapper, children: [!hideCreatedIcon && (0, jsx_runtime_1.jsx)(material_1.Icon, { fontSize: "small", children: "create" }), (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "body1", children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.eventInfoDetails.date.create", defaultMessage: "ui.eventInfoDetails.date.create", values: {
|
|
46
|
+
} }) })) })), hasInProgress && scEvent.active && scEvent.running && ((0, jsx_runtime_1.jsx)(material_1.Tooltip, Object.assign({ title: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.eventInfoDetails.inProgress", defaultMessage: "ui.eventInfoDetails.inProgress" }) }, { children: (0, jsx_runtime_1.jsx)(material_1.Box, { className: classes.inProgress }) })))] }))), beforeRecurringInfo, hasRecurringInfo && scEvent.recurring !== types_1.SCEventRecurrenceType.NEVER && ((0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ className: classes.iconTextWrapper }, { children: [!hideRecurringIcon && (0, jsx_runtime_1.jsx)(material_1.Icon, Object.assign({ fontSize: "small" }, { children: "frequency" })), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body1" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: `ui.eventInfoDetails.frequency.${scEvent.recurring}.placeholder`, defaultMessage: `ui.eventInfoDetails.frequency.${scEvent.recurring}.placeholder` }) }))] }))), beforePrivacyInfo, hasPrivacyInfo && ((0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ className: classes.iconTextWrapper }, { children: [!hidePrivacyIcon && (0, jsx_runtime_1.jsx)(material_1.Icon, Object.assign({ fontSize: "small" }, { children: scEvent.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 }) }))] }))), beforeLocationInfo, hasLocationInfo && ((0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ className: classes.iconTextWrapper }, { children: [!hideLocationIcon && ((0, jsx_runtime_1.jsx)(material_1.Icon, Object.assign({ fontSize: "small" }, { children: scEvent.location === types_1.SCEventLocationType.ONLINE ? 'play_circle_outline' : 'add_location_alt' }))), scEvent.location === types_1.SCEventLocationType.ONLINE ? ((0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scEvent.link, target: "_blank", className: classes.link }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body1", className: classes.url }, { children: scEvent.link })) }))) : ((0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body1", className: classes.url }, { children: scEvent.geolocation })))] }))), beforeCreatedInfo, hasCreatedInfo && ((0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ className: classes.creationWrapper }, { children: [!hideCreatedIcon && (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: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.eventInfoDetails.date.create", defaultMessage: "ui.eventInfoDetails.date.create", values: {
|
|
47
47
|
date: intl.formatDate(scEvent.created_at, {
|
|
48
48
|
weekday: 'long',
|
|
49
49
|
day: 'numeric',
|
|
50
50
|
year: 'numeric',
|
|
51
51
|
month: 'long'
|
|
52
52
|
})
|
|
53
|
-
} }) })] }))] }));
|
|
53
|
+
} }) }))] })))] })));
|
|
54
54
|
}
|
|
55
55
|
exports.default = EventInfoDetails;
|
|
@@ -225,12 +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 ((0, jsx_runtime_1.jsx)("div", { style: outerDivStyle, className: "infinite-scroll-component__outerdiv", children: (0, jsx_runtime_1.jsxs)("div", { 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", { style: { position: 'relative' }, ref: (pullDown) => (this._pullDown = pullDown), children: (0, jsx_runtime_1.jsx)("div", { style: {
|
|
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
229
|
position: 'absolute',
|
|
230
230
|
left: '50%',
|
|
231
231
|
transform: 'translateX(-50%)',
|
|
232
232
|
zIndex: 1
|
|
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] }) }));
|
|
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] })) })));
|
|
234
234
|
}
|
|
235
235
|
}
|
|
236
236
|
exports.default = InfiniteScroll;
|
|
@@ -24,6 +24,6 @@ function InfiniteScrollWithHeight() {
|
|
|
24
24
|
setItems(items.concat(Array.from({ length: 20 })));
|
|
25
25
|
}, 500);
|
|
26
26
|
};
|
|
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, { 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", { 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", { style: style, children: ["div - #", index] }, 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))) }))] }));
|
|
28
28
|
}
|
|
29
29
|
exports.default = InfiniteScrollWithHeight;
|
|
@@ -19,6 +19,6 @@ function PullDownToRefreshInfScroll() {
|
|
|
19
19
|
setItems(items.concat(Array.from({ length: 20 })));
|
|
20
20
|
}, 1500);
|
|
21
21
|
};
|
|
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, { 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", { style: { textAlign: 'center' }, children: "\u2193 Pull down to refresh" }), releaseToRefreshContent: (0, jsx_runtime_1.jsx)("h3", { style: { textAlign: 'center' }, children: "\u2191 Release to refresh" }), refreshFunction: fetchMoreData, children: items.map((_, index) => ((0, jsx_runtime_1.jsxs)("div", { style: style, children: ["div - #", index] }, 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))) }))] }));
|
|
23
23
|
}
|
|
24
24
|
exports.default = PullDownToRefreshInfScroll;
|
|
@@ -19,7 +19,7 @@ function ScrollableTargetFixedInfScroll() {
|
|
|
19
19
|
setItems(items.concat(Array.from({ length: 20 })));
|
|
20
20
|
}, 1500);
|
|
21
21
|
};
|
|
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", { id: "scrollableDiv", style: {
|
|
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
23
|
position: 'fixed',
|
|
24
24
|
bottom: 0,
|
|
25
25
|
left: 0,
|
|
@@ -29,6 +29,6 @@ function ScrollableTargetFixedInfScroll() {
|
|
|
29
29
|
maxWidth: '100% !important',
|
|
30
30
|
height: '50vh',
|
|
31
31
|
overflowY: 'scroll'
|
|
32
|
-
}, children: (0, jsx_runtime_1.jsx)(index_1.default, { 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", { style: style, children: ["div - #", index] }, index))) }) })] }));
|
|
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))) })) }))] }));
|
|
33
33
|
}
|
|
34
34
|
exports.default = ScrollableTargetFixedInfScroll;
|
|
@@ -19,6 +19,6 @@ function ScrollableTargetInfScroll() {
|
|
|
19
19
|
setItems(items.concat(Array.from({ length: 20 })));
|
|
20
20
|
}, 1500);
|
|
21
21
|
};
|
|
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", { id: "scrollableDiv", style: { height: 300, overflow: 'auto' }, children: (0, jsx_runtime_1.jsx)(index_1.default, { 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", { style: style, children: ["div - #", index] }, 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))) })) }))] }));
|
|
23
23
|
}
|
|
24
24
|
exports.default = ScrollableTargetInfScroll;
|