@selfcommunity/react-ui 0.8.0-embeds.16 → 0.8.0-live.40
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.d.ts +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 +23 -1
- package/lib/cjs/components/Categories/Skeleton.js +1 -1
- package/lib/cjs/components/CategoriesPopularWidget/CategoriesPopularWidget.js +22 -1
- package/lib/cjs/components/CategoriesSuggestionWidget/CategoriesSuggestionWidget.js +22 -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 +6 -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.d.ts +2 -2
- package/lib/cjs/components/CreateEventButton/CreateEventButton.js +4 -4
- package/lib/cjs/components/CreateEventWidget/CreateEventWidget.js +1 -1
- package/lib/cjs/components/CreateEventWidget/Skeleton.js +1 -1
- package/lib/cjs/components/CreateLiveStreamButton/CreateLiveStreamButton.d.ts +49 -0
- package/lib/cjs/components/CreateLiveStreamButton/CreateLiveStreamButton.js +94 -0
- package/lib/cjs/components/CreateLiveStreamButton/index.d.ts +3 -0
- package/lib/cjs/components/CreateLiveStreamButton/index.js +5 -0
- package/lib/cjs/components/CreateLiveStreamDialog/CreateLiveStreamDialog.d.ts +51 -0
- package/lib/cjs/components/CreateLiveStreamDialog/CreateLiveStreamDialog.js +123 -0
- package/lib/cjs/components/CreateLiveStreamDialog/LiveStreamSelector/LiveStreamSelector.d.ts +46 -0
- package/lib/cjs/components/CreateLiveStreamDialog/LiveStreamSelector/LiveStreamSelector.js +166 -0
- package/lib/cjs/components/CreateLiveStreamDialog/constants.d.ts +1 -0
- package/lib/cjs/components/CreateLiveStreamDialog/constants.js +4 -0
- package/lib/cjs/components/CreateLiveStreamDialog/index.d.ts +3 -0
- package/lib/cjs/components/CreateLiveStreamDialog/index.js +5 -0
- package/lib/cjs/components/CreateLiveStreamDialog/types.d.ts +8 -0
- package/lib/cjs/components/CreateLiveStreamDialog/types.js +13 -0
- package/lib/cjs/components/CustomAdv/CustomAdv.js +2 -2
- package/lib/cjs/components/EditEventButton/EditEventButton.js +1 -1
- package/lib/cjs/components/Editor/Editor.d.ts +1 -1
- package/lib/cjs/components/Editor/Editor.js +1 -1
- package/lib/cjs/components/Editor/nodes/HashtagNode.d.ts +1 -1
- package/lib/cjs/components/Editor/nodes/HashtagNode.js +4 -4
- package/lib/cjs/components/Editor/nodes/ImageNode.d.ts +1 -1
- package/lib/cjs/components/Editor/nodes/ImageNode.js +7 -7
- package/lib/cjs/components/Editor/nodes/MentionNode.d.ts +1 -1
- package/lib/cjs/components/Editor/nodes/MentionNode.js +4 -4
- package/lib/cjs/components/Editor/plugins/ApiPlugin.d.ts +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.d.ts +2 -2
- 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.d.ts +2 -2
- package/lib/cjs/components/Editor/shared/useDecorators.js +1 -1
- package/lib/cjs/components/Event/Event.js +5 -5
- 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.d.ts +7 -12
- package/lib/cjs/components/EventForm/EventForm.js +55 -55
- package/lib/cjs/components/EventForm/UploadEventCover.js +1 -1
- package/lib/cjs/components/EventForm/types.d.ts +5 -5
- package/lib/cjs/components/EventFormDialog/EventFormDialog.d.ts +48 -0
- package/lib/cjs/components/EventFormDialog/EventFormDialog.js +56 -0
- package/lib/cjs/components/EventFormDialog/constants.d.ts +1 -0
- package/lib/cjs/components/EventFormDialog/constants.js +4 -0
- package/lib/cjs/components/EventFormDialog/index.d.ts +3 -0
- package/lib/cjs/components/EventFormDialog/index.js +5 -0
- package/lib/cjs/components/EventHeader/EventHeader.js +4 -8
- package/lib/cjs/components/EventHeader/Skeleton.js +1 -1
- package/lib/cjs/components/EventInfoWidget/EventInfoWidget.js +7 -5
- 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.d.ts +41 -0
- package/lib/cjs/components/EventMediaWidget/EventMediaWidget.js +253 -0
- package/lib/cjs/components/EventMediaWidget/Skeleton.d.ts +2 -0
- package/lib/cjs/components/EventMediaWidget/Skeleton.js +28 -0
- package/lib/cjs/components/EventMediaWidget/TriggerButton.d.ts +17 -0
- package/lib/cjs/components/EventMediaWidget/TriggerButton.js +66 -0
- package/lib/cjs/components/EventMediaWidget/asUploadButton.d.ts +7 -0
- package/lib/cjs/components/EventMediaWidget/asUploadButton.js +25 -0
- package/lib/cjs/components/EventMediaWidget/constants.d.ts +1 -0
- package/lib/cjs/components/EventMediaWidget/constants.js +4 -0
- package/lib/cjs/components/EventMediaWidget/index.d.ts +4 -0
- package/lib/cjs/components/EventMediaWidget/index.js +8 -0
- package/lib/cjs/components/EventMembersWidget/EventMembersWidget.d.ts +3 -0
- package/lib/cjs/components/EventMembersWidget/EventMembersWidget.js +21 -16
- package/lib/cjs/components/EventMembersWidget/Skeleton.js +1 -1
- package/lib/cjs/components/EventMembersWidget/TabContentComponent.js +3 -3
- package/lib/cjs/components/EventMembersWidget/types.d.ts +1 -1
- 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 +18 -9
- package/lib/cjs/components/Events/LocationEventsFilter.d.ts +14 -0
- package/lib/cjs/components/Events/LocationEventsFilter.js +45 -0
- package/lib/cjs/components/Events/PastEventsFilter.js +1 -2
- package/lib/cjs/components/Events/Skeleton.js +1 -1
- package/lib/cjs/components/Feed/Feed.d.ts +2 -2
- package/lib/cjs/components/Feed/Feed.js +15 -6
- package/lib/cjs/components/Feed/Skeleton.d.ts +1 -1
- 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.d.ts +57 -0
- package/lib/cjs/components/GroupActionsMenu/index.js +157 -0
- package/lib/cjs/components/GroupAutocomplete/GroupAutocomplete.js +1 -1
- package/lib/cjs/components/GroupForm/GroupForm.js +9 -9
- package/lib/cjs/components/GroupHeader/GroupHeader.d.ts +6 -0
- package/lib/cjs/components/GroupHeader/GroupHeader.js +8 -4
- 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 +29 -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.d.ts +55 -0
- package/lib/cjs/components/LiveStreamForm/LiveStreamForm.js +156 -0
- package/lib/cjs/components/LiveStreamForm/constants.d.ts +1 -0
- package/lib/cjs/components/LiveStreamForm/constants.js +4 -0
- package/lib/cjs/components/LiveStreamForm/index.d.ts +3 -0
- package/lib/cjs/components/LiveStreamForm/index.js +5 -0
- package/lib/cjs/components/LiveStreamForm/types.d.ts +10 -0
- package/lib/cjs/components/LiveStreamForm/types.js +2 -0
- package/lib/cjs/components/LiveStreamRoom/LiveStreamRoom.d.ts +48 -0
- package/lib/cjs/components/LiveStreamRoom/LiveStreamRoom.js +123 -0
- package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/LiveStreamVideoConference.d.ts +69 -0
- package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/LiveStreamVideoConference.js +184 -0
- package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/RecordingIndicator.d.ts +4 -0
- package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/RecordingIndicator.js +31 -0
- package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/constants.d.ts +1 -0
- package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/constants.js +4 -0
- package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/index.d.ts +3 -0
- package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/index.js +5 -0
- package/lib/cjs/components/LiveStreamRoom/constants.d.ts +5 -0
- package/lib/cjs/components/LiveStreamRoom/constants.js +8 -0
- package/lib/cjs/components/LiveStreamRoom/index.d.ts +3 -0
- package/lib/cjs/components/LiveStreamRoom/index.js +5 -0
- package/lib/cjs/components/LiveStreamRoom/types.d.ts +22 -0
- package/lib/cjs/components/LiveStreamRoom/types.js +8 -0
- 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.d.ts +1 -1
- package/lib/cjs/components/NavigationMenuIconButton/DefaultHeaderContent.js +1 -1
- package/lib/cjs/components/NavigationMenuIconButton/NavigationMenuDrawer.d.ts +47 -0
- package/lib/cjs/components/NavigationMenuIconButton/NavigationMenuDrawer.js +39 -0
- package/lib/cjs/components/NavigationMenuIconButton/NavigationMenuIconButton.d.ts +9 -20
- package/lib/cjs/components/NavigationMenuIconButton/NavigationMenuIconButton.js +4 -20
- package/lib/cjs/components/NavigationMenuIconButton/index.d.ts +2 -1
- package/lib/cjs/components/NavigationMenuIconButton/index.js +3 -1
- package/lib/cjs/components/NavigationSettingsIconButton/NavigationSettingsIconButton.js +62 -29
- package/lib/cjs/components/NavigationToolbar/NavigationToolbar.d.ts +5 -0
- package/lib/cjs/components/NavigationToolbar/NavigationToolbar.js +9 -9
- 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 +13 -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.d.ts +7 -0
- package/lib/cjs/components/OnBoardingWidget/ActionsButton.js +84 -0
- package/lib/cjs/components/OnBoardingWidget/OnBoardingWidget.d.ts +10 -1
- package/lib/cjs/components/OnBoardingWidget/OnBoardingWidget.js +115 -30
- 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 +26 -19
- 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 +56 -12
- 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/PlatformWidget/constants.d.ts +0 -4
- package/lib/cjs/components/PlatformWidget/constants.js +1 -5
- 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.d.ts +1 -1
- 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 -8
- 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/GroupActionsMenu.d.ts +5 -0
- package/lib/cjs/constants/GroupActionsMenu.js +8 -0
- package/lib/cjs/constants/LiveStream.d.ts +3 -0
- package/lib/cjs/constants/LiveStream.js +6 -0
- package/lib/cjs/constants/PubSub.d.ts +8 -1
- package/lib/cjs/constants/PubSub.js +11 -3
- package/lib/cjs/index.d.ts +15 -4
- package/lib/cjs/index.js +35 -9
- 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.d.ts +1 -1
- package/lib/cjs/shared/EventActionsMenu/index.js +15 -19
- package/lib/cjs/shared/EventInfoDetails/index.js +6 -6
- package/lib/cjs/shared/InfiniteScroll/index.d.ts +1 -1
- package/lib/cjs/shared/InfiniteScroll/index.js +5 -5
- 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/Lightbox/BaseLightbox.d.ts +19 -0
- package/lib/cjs/shared/Lightbox/BaseLightbox.js +35 -0
- package/lib/cjs/shared/Lightbox/Lightbox.d.ts +31 -17
- package/lib/cjs/shared/Lightbox/Lightbox.js +16 -19
- package/lib/cjs/shared/Lightbox/constants.d.ts +1 -0
- package/lib/cjs/shared/Lightbox/constants.js +4 -0
- package/lib/cjs/shared/Lightbox/index.d.ts +4 -2
- package/lib/cjs/shared/Lightbox/index.js +4 -1
- package/lib/cjs/shared/MarkRead/MarkRead.js +1 -1
- package/lib/cjs/shared/Media/File/DisplayComponent.js +32 -15
- 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/File/asUploadButton.d.ts +1 -1
- package/lib/cjs/shared/Media/Link/DisplayComponent.js +6 -6
- 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.d.ts +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/MediaChunkUploader/index.js +13 -11
- package/lib/cjs/shared/MetadataField/MetadataField.d.ts +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.d.ts +4 -4
- 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/UsernameTextField/index.d.ts +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/composer.d.ts +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/cjs/utils/events.d.ts +2 -0
- package/lib/cjs/utils/events.js +10 -0
- package/lib/cjs/utils/formatRelativeTime.js +2 -2
- package/lib/cjs/utils/hash.d.ts +2 -1
- package/lib/cjs/utils/liveStream.d.ts +4 -0
- package/lib/cjs/utils/liveStream.js +25 -0
- package/lib/cjs/utils/widget.d.ts +1 -0
- package/lib/cjs/utils/widget.js +14 -0
- 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.d.ts +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 +24 -2
- package/lib/esm/components/Categories/Skeleton.js +1 -1
- package/lib/esm/components/CategoriesPopularWidget/CategoriesPopularWidget.js +23 -2
- package/lib/esm/components/CategoriesSuggestionWidget/CategoriesSuggestionWidget.js +23 -2
- 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 +6 -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 +2 -2
- 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.d.ts +2 -2
- package/lib/esm/components/CreateEventButton/CreateEventButton.js +4 -4
- package/lib/esm/components/CreateEventWidget/CreateEventWidget.js +1 -1
- package/lib/esm/components/CreateEventWidget/Skeleton.js +1 -1
- package/lib/esm/components/CreateLiveStreamButton/CreateLiveStreamButton.d.ts +49 -0
- package/lib/esm/components/CreateLiveStreamButton/CreateLiveStreamButton.js +91 -0
- package/lib/esm/components/CreateLiveStreamButton/index.d.ts +3 -0
- package/lib/esm/components/CreateLiveStreamButton/index.js +2 -0
- package/lib/esm/components/CreateLiveStreamDialog/CreateLiveStreamDialog.d.ts +51 -0
- package/lib/esm/components/CreateLiveStreamDialog/CreateLiveStreamDialog.js +120 -0
- package/lib/esm/components/CreateLiveStreamDialog/LiveStreamSelector/LiveStreamSelector.d.ts +46 -0
- package/lib/esm/components/CreateLiveStreamDialog/LiveStreamSelector/LiveStreamSelector.js +163 -0
- package/lib/esm/components/CreateLiveStreamDialog/constants.d.ts +1 -0
- package/lib/esm/components/CreateLiveStreamDialog/constants.js +1 -0
- package/lib/esm/components/CreateLiveStreamDialog/index.d.ts +3 -0
- package/lib/esm/components/CreateLiveStreamDialog/index.js +2 -0
- package/lib/esm/components/CreateLiveStreamDialog/types.d.ts +8 -0
- package/lib/esm/components/CreateLiveStreamDialog/types.js +10 -0
- package/lib/esm/components/CustomAdv/CustomAdv.js +2 -2
- package/lib/esm/components/EditEventButton/EditEventButton.js +1 -1
- package/lib/esm/components/Editor/Editor.d.ts +1 -1
- package/lib/esm/components/Editor/Editor.js +1 -1
- package/lib/esm/components/Editor/nodes/HashtagNode.d.ts +1 -1
- package/lib/esm/components/Editor/nodes/HashtagNode.js +4 -4
- package/lib/esm/components/Editor/nodes/ImageNode.d.ts +1 -1
- package/lib/esm/components/Editor/nodes/ImageNode.js +7 -7
- package/lib/esm/components/Editor/nodes/MentionNode.d.ts +1 -1
- package/lib/esm/components/Editor/nodes/MentionNode.js +4 -4
- package/lib/esm/components/Editor/plugins/ApiPlugin.d.ts +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.d.ts +2 -2
- 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.d.ts +2 -2
- package/lib/esm/components/Editor/shared/useDecorators.js +1 -1
- package/lib/esm/components/Event/Event.js +5 -5
- 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.d.ts +7 -12
- package/lib/esm/components/EventForm/EventForm.js +56 -56
- package/lib/esm/components/EventForm/UploadEventCover.js +1 -1
- package/lib/esm/components/EventForm/types.d.ts +5 -5
- package/lib/esm/components/EventFormDialog/EventFormDialog.d.ts +48 -0
- package/lib/esm/components/EventFormDialog/EventFormDialog.js +53 -0
- package/lib/esm/components/EventFormDialog/constants.d.ts +1 -0
- package/lib/esm/components/EventFormDialog/constants.js +1 -0
- package/lib/esm/components/EventFormDialog/index.d.ts +3 -0
- package/lib/esm/components/EventFormDialog/index.js +2 -0
- package/lib/esm/components/EventHeader/EventHeader.js +4 -8
- package/lib/esm/components/EventHeader/Skeleton.js +1 -1
- package/lib/esm/components/EventInfoWidget/EventInfoWidget.js +7 -5
- 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.d.ts +41 -0
- package/lib/esm/components/EventMediaWidget/EventMediaWidget.js +250 -0
- package/lib/esm/components/EventMediaWidget/Skeleton.d.ts +2 -0
- package/lib/esm/components/EventMediaWidget/Skeleton.js +22 -0
- package/lib/esm/components/EventMediaWidget/TriggerButton.d.ts +17 -0
- package/lib/esm/components/EventMediaWidget/TriggerButton.js +64 -0
- package/lib/esm/components/EventMediaWidget/asUploadButton.d.ts +7 -0
- package/lib/esm/components/EventMediaWidget/asUploadButton.js +23 -0
- package/lib/esm/components/EventMediaWidget/constants.d.ts +1 -0
- package/lib/esm/components/EventMediaWidget/constants.js +1 -0
- package/lib/esm/components/EventMediaWidget/index.d.ts +4 -0
- package/lib/esm/components/EventMediaWidget/index.js +4 -0
- package/lib/esm/components/EventMembersWidget/EventMembersWidget.d.ts +3 -0
- package/lib/esm/components/EventMembersWidget/EventMembersWidget.js +21 -16
- package/lib/esm/components/EventMembersWidget/Skeleton.js +1 -1
- package/lib/esm/components/EventMembersWidget/TabContentComponent.js +3 -3
- package/lib/esm/components/EventMembersWidget/types.d.ts +1 -1
- 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 +19 -10
- package/lib/esm/components/Events/LocationEventsFilter.d.ts +14 -0
- package/lib/esm/components/Events/LocationEventsFilter.js +41 -0
- package/lib/esm/components/Events/PastEventsFilter.js +1 -2
- package/lib/esm/components/Events/Skeleton.js +1 -1
- package/lib/esm/components/Feed/Feed.d.ts +2 -2
- package/lib/esm/components/Feed/Feed.js +17 -8
- package/lib/esm/components/Feed/Skeleton.d.ts +1 -1
- 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.d.ts +57 -0
- package/lib/esm/components/GroupActionsMenu/index.js +154 -0
- package/lib/esm/components/GroupAutocomplete/GroupAutocomplete.js +1 -1
- package/lib/esm/components/GroupForm/GroupForm.js +9 -9
- package/lib/esm/components/GroupHeader/GroupHeader.d.ts +6 -0
- package/lib/esm/components/GroupHeader/GroupHeader.js +9 -5
- 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 +30 -4
- 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.d.ts +55 -0
- package/lib/esm/components/LiveStreamForm/LiveStreamForm.js +153 -0
- package/lib/esm/components/LiveStreamForm/constants.d.ts +1 -0
- package/lib/esm/components/LiveStreamForm/constants.js +1 -0
- package/lib/esm/components/LiveStreamForm/index.d.ts +3 -0
- package/lib/esm/components/LiveStreamForm/index.js +2 -0
- package/lib/esm/components/LiveStreamForm/types.d.ts +10 -0
- package/lib/esm/components/LiveStreamForm/types.js +1 -0
- package/lib/esm/components/LiveStreamRoom/LiveStreamRoom.d.ts +48 -0
- package/lib/esm/components/LiveStreamRoom/LiveStreamRoom.js +120 -0
- package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/LiveStreamVideoConference.d.ts +69 -0
- package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/LiveStreamVideoConference.js +181 -0
- package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/RecordingIndicator.d.ts +4 -0
- package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/RecordingIndicator.js +28 -0
- package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/constants.d.ts +1 -0
- package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/constants.js +1 -0
- package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/index.d.ts +3 -0
- package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/index.js +2 -0
- package/lib/esm/components/LiveStreamRoom/constants.d.ts +5 -0
- package/lib/esm/components/LiveStreamRoom/constants.js +5 -0
- package/lib/esm/components/LiveStreamRoom/index.d.ts +3 -0
- package/lib/esm/components/LiveStreamRoom/index.js +2 -0
- package/lib/esm/components/LiveStreamRoom/types.d.ts +22 -0
- package/lib/esm/components/LiveStreamRoom/types.js +4 -0
- 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 +2 -2
- package/lib/esm/components/NavigationMenuIconButton/DefaultHeaderContent.d.ts +1 -1
- package/lib/esm/components/NavigationMenuIconButton/DefaultHeaderContent.js +1 -1
- package/lib/esm/components/NavigationMenuIconButton/NavigationMenuDrawer.d.ts +47 -0
- package/lib/esm/components/NavigationMenuIconButton/NavigationMenuDrawer.js +36 -0
- package/lib/esm/components/NavigationMenuIconButton/NavigationMenuIconButton.d.ts +9 -20
- package/lib/esm/components/NavigationMenuIconButton/NavigationMenuIconButton.js +6 -22
- package/lib/esm/components/NavigationMenuIconButton/index.d.ts +2 -1
- package/lib/esm/components/NavigationMenuIconButton/index.js +2 -1
- package/lib/esm/components/NavigationSettingsIconButton/NavigationSettingsIconButton.js +65 -32
- package/lib/esm/components/NavigationToolbar/NavigationToolbar.d.ts +5 -0
- package/lib/esm/components/NavigationToolbar/NavigationToolbar.js +9 -9
- 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 +13 -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.d.ts +7 -0
- package/lib/esm/components/OnBoardingWidget/ActionsButton.js +81 -0
- package/lib/esm/components/OnBoardingWidget/OnBoardingWidget.d.ts +10 -1
- package/lib/esm/components/OnBoardingWidget/OnBoardingWidget.js +118 -33
- 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 +27 -20
- 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 +59 -14
- 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/PlatformWidget/constants.d.ts +0 -4
- package/lib/esm/components/PlatformWidget/constants.js +0 -4
- 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.d.ts +1 -1
- 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 -8
- 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/constants/GroupActionsMenu.d.ts +5 -0
- package/lib/esm/constants/GroupActionsMenu.js +5 -0
- package/lib/esm/constants/LiveStream.d.ts +3 -0
- package/lib/esm/constants/LiveStream.js +3 -0
- package/lib/esm/constants/PubSub.d.ts +8 -1
- package/lib/esm/constants/PubSub.js +8 -0
- package/lib/esm/index.d.ts +15 -4
- package/lib/esm/index.js +17 -7
- 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.d.ts +1 -1
- package/lib/esm/shared/EventActionsMenu/index.js +15 -19
- package/lib/esm/shared/EventInfoDetails/index.js +6 -6
- package/lib/esm/shared/InfiniteScroll/index.d.ts +1 -1
- package/lib/esm/shared/InfiniteScroll/index.js +5 -5
- 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/Lightbox/BaseLightbox.d.ts +19 -0
- package/lib/esm/shared/Lightbox/BaseLightbox.js +33 -0
- package/lib/esm/shared/Lightbox/Lightbox.d.ts +31 -17
- package/lib/esm/shared/Lightbox/Lightbox.js +15 -19
- package/lib/esm/shared/Lightbox/constants.d.ts +1 -0
- package/lib/esm/shared/Lightbox/constants.js +1 -0
- package/lib/esm/shared/Lightbox/index.d.ts +4 -2
- package/lib/esm/shared/Lightbox/index.js +3 -1
- package/lib/esm/shared/MarkRead/MarkRead.js +1 -1
- package/lib/esm/shared/Media/File/DisplayComponent.js +32 -15
- 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/File/asUploadButton.d.ts +1 -1
- package/lib/esm/shared/Media/Link/DisplayComponent.js +6 -6
- 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.d.ts +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/MediaChunkUploader/index.js +14 -12
- package/lib/esm/shared/MetadataField/MetadataField.d.ts +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.d.ts +4 -4
- 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/UsernameTextField/index.d.ts +1 -1
- package/lib/esm/shared/VirtualizedScroller/VirtualScrollerChild.js +1 -1
- package/lib/esm/types/composer.d.ts +1 -1
- package/lib/esm/utils/events.d.ts +2 -0
- package/lib/esm/utils/events.js +6 -0
- package/lib/esm/utils/formatRelativeTime.js +2 -2
- package/lib/esm/utils/hash.d.ts +2 -1
- package/lib/esm/utils/liveStream.d.ts +4 -0
- package/lib/esm/utils/liveStream.js +18 -0
- package/lib/esm/utils/widget.d.ts +1 -0
- package/lib/esm/utils/widget.js +14 -0
- package/lib/umd/245.js +1 -0
- package/lib/umd/43.js +2 -0
- package/lib/umd/react-ui.js +1 -1
- package/lib/umd/react-ui.js.LICENSE.txt +2 -0
- package/package.json +23 -11
- package/lib/cjs/shared/Media/File/Lightbox/index.d.ts +0 -28
- package/lib/cjs/shared/Media/File/Lightbox/index.js +0 -37
- package/lib/esm/shared/Media/File/Lightbox/index.d.ts +0 -28
- package/lib/esm/shared/Media/File/Lightbox/index.js +0 -34
- package/lib/umd/99.js +0 -2
- /package/lib/umd/{99.js.LICENSE.txt → 43.js.LICENSE.txt} +0 -0
|
@@ -125,7 +125,7 @@ function UserInfo(inProps) {
|
|
|
125
125
|
case types_1.SCUserProfileFields.TAGS:
|
|
126
126
|
return ((0, jsx_runtime_1.jsx)(Tags_1.default, { tags: user.tags.filter((t) => t.visible), type: Tags_1.TagsComponentType.LIST, direction: 'row', TagChipProps: { clickable: false, disposable: false } }));
|
|
127
127
|
case types_1.SCUserProfileFields.WEBSITE:
|
|
128
|
-
return ((0, jsx_runtime_1.jsx)("a",
|
|
128
|
+
return ((0, jsx_runtime_1.jsx)("a", { href: user[field], target: '_blank', children: user[field] }));
|
|
129
129
|
default:
|
|
130
130
|
return user[field];
|
|
131
131
|
}
|
|
@@ -139,9 +139,9 @@ function UserInfo(inProps) {
|
|
|
139
139
|
return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, rest, { children: _fields.map((field) => {
|
|
140
140
|
if (scUser[field]) {
|
|
141
141
|
if (field === types_1.SCUserProfileFields.TAGS) {
|
|
142
|
-
return scUser[field].length > 0 ? ((0, jsx_runtime_1.jsx)(material_1.Box,
|
|
142
|
+
return scUser[field].length > 0 ? ((0, jsx_runtime_1.jsx)(material_1.Box, { className: classes.field, children: renderField(scUser, field) }, field)) : null;
|
|
143
143
|
}
|
|
144
|
-
return ((0, jsx_runtime_1.jsxs)(material_1.Box,
|
|
144
|
+
return ((0, jsx_runtime_1.jsxs)(material_1.Box, { className: classes.field, children: [(0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "h6", children: metadataDefinitions[field] ? metadataDefinitions[field].label : intl.formatMessage(messages[(0, utils_1.camelCase)(field)]) }), (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "body2", children: renderField(scUser, field) })] }, field));
|
|
145
145
|
}
|
|
146
146
|
return null;
|
|
147
147
|
}) })));
|
|
@@ -30,7 +30,7 @@ function UserInfoDialog(inProps) {
|
|
|
30
30
|
// HOOKS
|
|
31
31
|
const { scUser } = (0, react_core_1.useSCFetchUser)({ id: userId, user });
|
|
32
32
|
// RENDER
|
|
33
|
-
const subtitle = ((0, jsx_runtime_1.jsxs)(material_1.Box,
|
|
33
|
+
const subtitle = ((0, jsx_runtime_1.jsxs)(material_1.Box, { className: classes.caption, children: [(0, jsx_runtime_1.jsx)(material_1.Avatar, { className: classes.avatar, src: scUser === null || scUser === void 0 ? void 0 : scUser.avatar }), (0, jsx_runtime_1.jsx)(material_1.Typography, { className: classes.username, variant: "h6", children: (scUser === null || scUser === void 0 ? void 0 : scUser.real_name) ? scUser === null || scUser === void 0 ? void 0 : scUser.real_name : scUser === null || scUser === void 0 ? void 0 : scUser.username })] }));
|
|
34
34
|
return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ title: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userInfoDialog.title", defaultMessage: "ui.userInfoDialog.title" }), subtitle: subtitle, className: (0, classnames_1.default)(classes.root, className) }, rest, { children: scUser ? (0, jsx_runtime_1.jsx)(UserInfo_1.default, Object.assign({}, UserInfoProps, { userId: userId, user: scUser })) : (0, jsx_runtime_1.jsx)(UserInfo_1.UserInfoSkeleton, {}) })));
|
|
35
35
|
}
|
|
36
36
|
exports.default = UserInfoDialog;
|
|
@@ -80,6 +80,6 @@ function UserProfileBlocked(inProps) {
|
|
|
80
80
|
if (!scUser || !scUserContext.user || loadingBlockedBy) {
|
|
81
81
|
return null;
|
|
82
82
|
}
|
|
83
|
-
return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, rest, { children: [(0, jsx_runtime_1.jsx)(material_1.Divider, {}), !isMe && blockedBy && ((0, jsx_runtime_1.jsx)(material_1.Typography,
|
|
83
|
+
return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, rest, { children: [(0, jsx_runtime_1.jsx)(material_1.Divider, {}), !isMe && blockedBy && ((0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "body1", className: classes.info, children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userProfileBlocked.blockedUserBy", defaultMessage: "ui.userProfileBlocked.blockedUserBy" }) })), !isMe && scUserContext.managers.blockedUsers.isBlocked(scUser) && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "body1", className: classes.info, children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userProfileBlocked.blockedUser", defaultMessage: "ui.userProfileBlocked.blockedUser" }) }), (0, jsx_runtime_1.jsx)(lab_1.LoadingButton, { variant: "contained", className: classes.button, loading: scUserContext.managers.blockedUsers.loading, disabled: scUserContext.managers.blockedUsers.loading, onClick: handleBlock, children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userProfileBlocked.unBlockUser", defaultMessage: "ui.userProfileBlocked.unBlockUser" }) })] }))] })));
|
|
84
84
|
}
|
|
85
85
|
exports.default = UserProfileBlocked;
|
|
@@ -72,6 +72,6 @@ function Account(props) {
|
|
|
72
72
|
if (!scUserContext.user) {
|
|
73
73
|
return;
|
|
74
74
|
}
|
|
75
|
-
return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, rest, { children: [startActions, showCredentialsSection && (0, jsx_runtime_1.jsx)(AccountCredentials_1.default, Object.assign({ className: classes.credentials, user: scUserContext === null || scUserContext === void 0 ? void 0 : scUserContext.user }, AccountCredentialProps)), showLanguageSwitcher && (0, jsx_runtime_1.jsx)(LanguageSwitcher_1.default, Object.assign({ className: classes.languageSwitcher }, LanguageSwitcherProps)), showSocialAccountSection && ((0, jsx_runtime_1.jsx)(UserSocialAssociation_1.default, { children: (0, jsx_runtime_1.jsxs)(material_1.Typography,
|
|
75
|
+
return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, rest, { children: [startActions, showCredentialsSection && (0, jsx_runtime_1.jsx)(AccountCredentials_1.default, Object.assign({ className: classes.credentials, user: scUserContext === null || scUserContext === void 0 ? void 0 : scUserContext.user }, AccountCredentialProps)), showLanguageSwitcher && (0, jsx_runtime_1.jsx)(LanguageSwitcher_1.default, Object.assign({ className: classes.languageSwitcher }, LanguageSwitcherProps)), showSocialAccountSection && ((0, jsx_runtime_1.jsx)(UserSocialAssociation_1.default, { children: (0, jsx_runtime_1.jsxs)(material_1.Typography, { variant: "body1", mb: 1, sx: { fontWeight: 'bold' }, children: [' ', intl.formatMessage(messages.socialTitle)] }), direction: "row", userId: scUserContext.user.id, onDeleteAssociation: handleOpenDeleteDialog, onCreateAssociation: handleAssociationCreate, deletingProvider: shouldUpdate ? provider : null })), openDeleteDialog && ((0, jsx_runtime_1.jsx)(ConfirmDialog_1.default, { open: openDeleteDialog, title: intl.formatMessage(messages.dialogTitleMsg, { field: provider.provider }), btnConfirm: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userProfileEditAccount.socialAssociations.dialog.confirm", defaultMessage: "ui.userProfileEditAccount.socialAssociations.dialog.confirm" }), onConfirm: handleDelete, onClose: () => setOpenDeleteDialog(false) })), endActions, (0, jsx_runtime_1.jsxs)(material_1.Box, { className: classes.dangerZone, children: [(0, jsx_runtime_1.jsx)(AccountDataPortabilityButton_1.default, { fullWidth: true, variant: "outlined", color: "primary" }), (0, jsx_runtime_1.jsx)(AccountDeleteButton_1.default, Object.assign({ fullWidth: true, variant: "contained", color: "secondary" }, AccountDeleteButtonProps))] })] })));
|
|
76
76
|
}
|
|
77
77
|
exports.default = Account;
|
|
@@ -158,16 +158,16 @@ function AccountCredentials(props) {
|
|
|
158
158
|
if (!user) {
|
|
159
159
|
return;
|
|
160
160
|
}
|
|
161
|
-
return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, rest, { children: [(0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography,
|
|
162
|
-
endAdornment: ((0, jsx_runtime_1.jsx)(material_1.InputAdornment,
|
|
163
|
-
} }) })) }), (0, jsx_runtime_1.jsx)(material_1.Typography,
|
|
164
|
-
endAdornment: ((0, jsx_runtime_1.jsx)(material_1.InputAdornment,
|
|
165
|
-
} }), (0, jsx_runtime_1.jsx)(material_1.Popover,
|
|
161
|
+
return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, rest, { children: [(0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "body1", className: classes.email, children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userProfileEditAccountCredentials.email", defaultMessage: "ui.userProfileEditAccountCredentials.email" }) }), (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: isSubmitting ? ((0, jsx_runtime_1.jsx)(material_1.CircularProgress, {})) : ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)(EmailTextField_1.default, { name: "email", disabled: !isEditing || isSubmitting, size: "small", value: field.email, onChange: handleChange, onBlur: handleEmailBlur, error: Boolean(error.email), helperText: error.email && ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: `ui.userProfileEditAccountCredentials.email.error.${error.email}`, defaultMessage: `ui.userProfileEditAccountCredentials.email.error.${error.email}` })), InputProps: {
|
|
162
|
+
endAdornment: ((0, jsx_runtime_1.jsx)(material_1.InputAdornment, { position: "end", children: !isEditing ? ((0, jsx_runtime_1.jsx)(material_1.IconButton, { onClick: () => setIsEditing(true), edge: "end", children: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "edit" }) })) : error.email ? ((0, jsx_runtime_1.jsx)(Icon_1.default, { color: "error", children: "error" })) : ((0, jsx_runtime_1.jsx)(material_1.IconButton, { onClick: handleSubmitEmail, edge: "end", color: "primary", disabled: !field.email || error.email, children: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "check" }) })) }))
|
|
163
|
+
} }) })) }), (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "body1", className: classes.password, children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userProfileEditAccountCredentials.passwordLabel", defaultMessage: "ui.userProfileEditAccountCredentials.passwordLabel" }) }), (0, jsx_runtime_1.jsx)(material_1.Button, { size: "small", variant: "outlined", onClick: () => setOpenChangePasswordDialog(true), sx: { mb: 1 }, children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userProfileEditAccountCredentials.changePassword", defaultMessage: "ui.userProfileEditAccountCredentials.changePassword" }) })] }), openChangePasswordDialog && ((0, jsx_runtime_1.jsxs)(PasswordDialogRoot, Object.assign({ className: classes.dialogRoot, title: intl.formatMessage(messages.changePasswordTitle), open: openChangePasswordDialog, onClose: handleCloseDialog }, rest, { children: [(0, jsx_runtime_1.jsxs)(material_1.FormGroup, { className: classes.form, children: [(0, jsx_runtime_1.jsx)(PasswordTextField_1.default, { className: classes.formField, name: "password", disabled: isSubmittingPassword, label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userProfileEditAccountCredentials.password", defaultMessage: "ui.userProfileEditAccountCredentials.password" }), size: "medium", value: field.password, onChange: handleChange, error: Boolean(error.password), helperText: error.password && ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: `ui.userProfileEditAccountCredentials.password.error.${error.password}`, defaultMessage: `ui.userProfileEditAccountCredentials.password.error.${error.password}` })) }), (0, jsx_runtime_1.jsx)(PasswordTextField_1.default, { name: "newPassword", className: classes.formField, disabled: isSubmittingPassword, label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userProfileEditAccountCredentials.newPassword", defaultMessage: "ui.userProfileEditAccountCredentials.newPassword" }), size: "medium", value: field.newPassword, onChange: handleChange, error: Boolean(error.newPassword), helperText: error.newPassword && ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: `ui.userProfileEditAccountCredentials.newPassword.error.${error.newPassword}`, defaultMessage: `ui.userProfileEditAccountCredentials.newPassword.error.${error.newPassword}` })), InputProps: {
|
|
164
|
+
endAdornment: ((0, jsx_runtime_1.jsx)(material_1.InputAdornment, { position: "end", children: (0, jsx_runtime_1.jsx)(material_1.IconButton, { "aria-label": "info", onClick: handlePopoverOpen, edge: "end", children: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "info" }) }) }))
|
|
165
|
+
} }), (0, jsx_runtime_1.jsx)(material_1.Popover, { open: open, anchorEl: anchorEl, anchorOrigin: {
|
|
166
166
|
vertical: 'center',
|
|
167
167
|
horizontal: 'left'
|
|
168
168
|
}, transformOrigin: {
|
|
169
169
|
vertical: 'center',
|
|
170
170
|
horizontal: 'right'
|
|
171
|
-
}, onClose: handlePopoverClose
|
|
171
|
+
}, onClose: handlePopoverClose, children: (0, jsx_runtime_1.jsx)(material_1.Box, { sx: { p: '10px' }, children: (0, jsx_runtime_1.jsx)(material_1.Typography, { component: 'span', sx: { whiteSpace: 'pre-line' }, children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userProfileEditAccountCredentials.newPassword.info", defaultMessage: "ui.userProfileEditAccountCredentials.newPassword.info" }) }) }) }), (0, jsx_runtime_1.jsx)(PasswordTextField_1.default, { name: "confirmPassword", className: classes.formField, disabled: isSubmittingPassword, label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userProfileEditAccountCredentials.confirmPassword", defaultMessage: "ui.userProfileEditAccountCredentials.confirmPassword" }), size: "medium", value: field.confirmPassword, onChange: handleChange, onBlur: validateInput, error: Boolean(error.confirmPassword), helperText: error.confirmPassword })] }), (0, jsx_runtime_1.jsx)(lab_1.LoadingButton, { className: classes.confirmChangeButton, loading: isSubmittingPassword, disabled: !field.confirmPassword || Boolean(error.confirmPassword) || Boolean(error.password) || Boolean(error.newPassword), variant: "contained", onClick: handleSubmitPassword, children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userProfileEditAccountCredentials.changePassword", defaultMessage: "ui.userProfileEditAccountCredentials.changePassword" }) })] })))] })));
|
|
172
172
|
}
|
|
173
173
|
exports.default = AccountCredentials;
|
|
@@ -150,7 +150,7 @@ function PublicInfo(props) {
|
|
|
150
150
|
});
|
|
151
151
|
let props = {
|
|
152
152
|
InputProps: {
|
|
153
|
-
endAdornment: (0, jsx_runtime_1.jsx)(material_1.InputAdornment,
|
|
153
|
+
endAdornment: (0, jsx_runtime_1.jsx)(material_1.InputAdornment, { position: "end", children: isSaving && (0, jsx_runtime_1.jsx)(material_1.CircularProgress, { size: 10 }) })
|
|
154
154
|
}
|
|
155
155
|
};
|
|
156
156
|
let content = null;
|
|
@@ -161,7 +161,7 @@ function PublicInfo(props) {
|
|
|
161
161
|
case types_1.SCUserProfileFields.DATE_JOINED:
|
|
162
162
|
return null;
|
|
163
163
|
case types_1.SCUserProfileFields.DATE_OF_BIRTH:
|
|
164
|
-
return ((0, jsx_runtime_1.jsx)(x_date_pickers_1.LocalizationProvider,
|
|
164
|
+
return ((0, jsx_runtime_1.jsx)(x_date_pickers_1.LocalizationProvider, { dateAdapter: AdapterDateFns_1.AdapterDateFns, adapterLocale: scContext.settings.locale.default === 'it' ? it_1.default : en_US_1.default, children: (0, jsx_runtime_1.jsx)(x_date_pickers_1.DatePicker, { label: intl.formatMessage({
|
|
165
165
|
id: `ui.userInfo.${(0, utils_1.camelCase)(field)}`,
|
|
166
166
|
defaultMessage: `ui.userInfo.${field}`
|
|
167
167
|
}), defaultValue: user[field] ? (0, date_fns_1.parseISO)(user[field]) : null, minDate: DATEPICKER_MINDATE, onChange: (newValue) => {
|
|
@@ -191,7 +191,7 @@ function PublicInfo(props) {
|
|
|
191
191
|
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore,@typescript-eslint/ban-ts-comment
|
|
192
192
|
// @ts-ignore
|
|
193
193
|
const _a = params.children.props, { children } = _a, rest = tslib_1.__rest(_a, ["children"]);
|
|
194
|
-
return ((0, jsx_runtime_1.jsxs)(material_1.InputAdornment,
|
|
194
|
+
return ((0, jsx_runtime_1.jsxs)(material_1.InputAdornment, { position: 'end', children: [(0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({}, rest, { children: children })), isSaving && (0, jsx_runtime_1.jsx)(material_1.CircularProgress, { size: 10 })] }));
|
|
195
195
|
}
|
|
196
196
|
},
|
|
197
197
|
// onAccept={isMobile ? handleSave(SCUserProfileFields.DATE_OF_BIRTH) : null}
|
|
@@ -202,10 +202,10 @@ function PublicInfo(props) {
|
|
|
202
202
|
variant: 'outlined',
|
|
203
203
|
helperText: _error || null,
|
|
204
204
|
InputProps: {
|
|
205
|
-
endAdornment: isMobile && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.IconButton,
|
|
205
|
+
endAdornment: isMobile && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.IconButton, { disabled: !isEditing, children: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "CalendarIcon" }) }), isSaving ? (0, jsx_runtime_1.jsx)(material_1.CircularProgress, { size: 10 }) : null] }))
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
|
-
} }) }
|
|
208
|
+
} }) }, field));
|
|
209
209
|
case types_1.SCUserProfileFields.BIO:
|
|
210
210
|
props.multiline = true;
|
|
211
211
|
break;
|
|
@@ -216,7 +216,7 @@ function PublicInfo(props) {
|
|
|
216
216
|
break;
|
|
217
217
|
case types_1.SCUserProfileFields.GENDER:
|
|
218
218
|
props.select = true;
|
|
219
|
-
content = GENDERS.map((gender) => ((0, jsx_runtime_1.jsx)(material_1.MenuItem,
|
|
219
|
+
content = GENDERS.map((gender) => ((0, jsx_runtime_1.jsx)(material_1.MenuItem, { value: gender, children: intl.formatMessage(messages[`gender${gender}`]) }, gender)));
|
|
220
220
|
break;
|
|
221
221
|
case types_1.SCUserProfileFields.TAGS:
|
|
222
222
|
return null;
|
|
@@ -226,7 +226,7 @@ function PublicInfo(props) {
|
|
|
226
226
|
}
|
|
227
227
|
break;
|
|
228
228
|
}
|
|
229
|
-
return ((0, jsx_runtime_1.jsx)(component.element, Object.assign({ id: field }, props, { className: classes.field, name: field, fullWidth: true, label: label, value: user[field] || '', onChange: handleChange(field), disabled: isSaving, error: Boolean(_error), helperText: _error && (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: `ui.userInfo.${camelField}.error.${_error}`, defaultMessage: `ui.userInfo.${camelField}.error.${_error}` })
|
|
229
|
+
return ((0, jsx_runtime_1.jsx)(component.element, Object.assign({ id: field }, props, { className: classes.field, name: field, fullWidth: true, label: label, value: user[field] || '', onChange: handleChange(field), disabled: isSaving, error: Boolean(_error), helperText: _error && (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: `ui.userInfo.${camelField}.error.${_error}`, defaultMessage: `ui.userInfo.${camelField}.error.${_error}` }), children: content }), field));
|
|
230
230
|
};
|
|
231
231
|
// FIELDS
|
|
232
232
|
const _fields = [...fields, ...Object.keys(metadataDefinitions)];
|
|
@@ -235,6 +235,6 @@ function PublicInfo(props) {
|
|
|
235
235
|
}
|
|
236
236
|
return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className) }, rest, { children: [startActions, _fields.map((field) => {
|
|
237
237
|
return renderField(field);
|
|
238
|
-
}), (0, jsx_runtime_1.jsx)(lab_1.LoadingButton,
|
|
238
|
+
}), (0, jsx_runtime_1.jsx)(lab_1.LoadingButton, { className: classes.btnSave, fullWidth: true, variant: "contained", color: "secondary", onClick: handleSave, loading: saving.length > 0, disabled: saving.length > 0 || !editing.length || Object.keys(error).length > 0, children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: 'ui.userInfo.button.save', defaultMessage: 'ui.userInfo.button.save' }) }), endActions] })));
|
|
239
239
|
}
|
|
240
240
|
exports.default = PublicInfo;
|
|
@@ -66,11 +66,11 @@ function Settings(props) {
|
|
|
66
66
|
const renderSetting = (setting) => {
|
|
67
67
|
switch (setting) {
|
|
68
68
|
case types_1.SCUserProfileSettings.NOTIFICATION:
|
|
69
|
-
return ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography,
|
|
69
|
+
return ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, { gutterBottom: true, variant: "body1", children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userProfileEditSettings.notification.title", defaultMessage: "ui.userProfileEditSettings.notification.title" }) }), (0, jsx_runtime_1.jsx)(material_1.Box, { className: classes.control, children: (0, jsx_runtime_1.jsxs)(material_1.FormControl, { children: [(0, jsx_runtime_1.jsx)(material_1.FormLabel, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userProfileEditSettings.notification.label", defaultMessage: "ui.userProfileEditSettings.notification.label" }) }), (0, jsx_runtime_1.jsxs)(material_1.RadioGroup, { "aria-labelledby": "notification settings", value: _settings.show_toast_notifications, name: react_core_1.SCNotification.NOTIFICATIONS_SETTINGS_SHOW_TOAST, onChange: handleChange, children: [(0, jsx_runtime_1.jsx)(material_1.FormControlLabel, { value: 1, control: (0, jsx_runtime_1.jsx)(material_1.Radio, { size: "small" }), label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.common.yes", defaultMessage: "ui.common.yes" }) }), (0, jsx_runtime_1.jsx)(material_1.FormControlLabel, { value: 0, control: (0, jsx_runtime_1.jsx)(material_1.Radio, { size: "small" }), label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.common.no", defaultMessage: "ui.common.no" }) })] })] }) })] }, setting));
|
|
70
70
|
case types_1.SCUserProfileSettings.INTERACTION:
|
|
71
|
-
return ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography,
|
|
71
|
+
return ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, { gutterBottom: true, variant: "body1", children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userProfileEditSettings.interaction.title", defaultMessage: "ui.userProfileEditSettings.interaction.title" }) }), (0, jsx_runtime_1.jsx)(material_1.Box, { className: classes.control, children: (0, jsx_runtime_1.jsxs)(material_1.FormControl, { children: [(0, jsx_runtime_1.jsx)(material_1.FormLabel, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userProfileEditSettings.interaction.label", defaultMessage: "ui.userProfileEditSettings.interaction.label" }) }), (0, jsx_runtime_1.jsxs)(material_1.RadioGroup, { "aria-labelledby": "email notification settings", value: _settings.qa_frequency, name: react_core_1.SCNotification.NOTIFICATIONS_SETTINGS_QA_FREQUENCY, onChange: handleChange, children: [(0, jsx_runtime_1.jsx)(material_1.FormControlLabel, { value: -1, control: (0, jsx_runtime_1.jsx)(material_1.Radio, { size: "small" }), label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userProfileEditSettings.interaction.immediatly", defaultMessage: "ui.userProfileEditSettings.interaction.immediatly" }) }), (0, jsx_runtime_1.jsx)(material_1.FormControlLabel, { value: 1, control: (0, jsx_runtime_1.jsx)(material_1.Radio, { size: "small" }), label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userProfileEditSettings.interaction.daily", defaultMessage: "ui.userProfileEditSettings.interaction.daily" }) }), (0, jsx_runtime_1.jsx)(material_1.FormControlLabel, { value: 0, control: (0, jsx_runtime_1.jsx)(material_1.Radio, { size: "small" }), label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userProfileEditSettings.interaction.never", defaultMessage: "ui.userProfileEditSettings.interaction.never" }) })] })] }) })] }, setting));
|
|
72
72
|
case types_1.SCUserProfileSettings.PRIVATE_MESSAGE:
|
|
73
|
-
return ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography,
|
|
73
|
+
return ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, { gutterBottom: true, variant: "body1", children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userProfileEditSettings.privateMessage.title", defaultMessage: "ui.userProfileEditSettings.privateMessage.title" }) }), (0, jsx_runtime_1.jsx)(material_1.Box, { className: classes.control, children: (0, jsx_runtime_1.jsxs)(material_1.FormControl, { children: [(0, jsx_runtime_1.jsx)(material_1.FormLabel, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userProfileEditSettings.privateMessage.label", defaultMessage: "ui.userProfileEditSettings.privateMessage.label" }) }), (0, jsx_runtime_1.jsxs)(material_1.RadioGroup, { "aria-labelledby": "email notification settings", value: _settings.email_notification_not_qa, name: react_core_1.SCNotification.NOTIFICATIONS_SETTINGS_EMAIL_NOT_QA, onChange: handleChange, children: [(0, jsx_runtime_1.jsx)(material_1.FormControlLabel, { value: 1, control: (0, jsx_runtime_1.jsx)(material_1.Radio, { size: "small" }), label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userProfileEditSettings.privateMessage.email", defaultMessage: "ui.userProfileEditSettings.privateMessage.email" }) }), (0, jsx_runtime_1.jsx)(material_1.FormControlLabel, { value: 0, control: (0, jsx_runtime_1.jsx)(material_1.Radio, { size: "small" }), label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userProfileEditSettings.privateMessage.frontend", defaultMessage: "ui.userProfileEditSettings.privateMessage.frontend" }) })] })] }) })] }, setting));
|
|
74
74
|
default:
|
|
75
75
|
return null;
|
|
76
76
|
}
|
|
@@ -35,6 +35,6 @@ const Root = (0, styles_1.styled)(material_1.Box, {
|
|
|
35
35
|
*
|
|
36
36
|
*/
|
|
37
37
|
function SettingsSkeleton() {
|
|
38
|
-
return ((0, jsx_runtime_1.jsxs)(Root,
|
|
38
|
+
return ((0, jsx_runtime_1.jsxs)(Root, { className: classes.root, children: [(0, jsx_runtime_1.jsx)(Skeleton_1.default, {}), (0, jsx_runtime_1.jsx)(Skeleton_1.default, {}), (0, jsx_runtime_1.jsx)(Skeleton_1.default, {})] }));
|
|
39
39
|
}
|
|
40
40
|
exports.default = SettingsSkeleton;
|
|
@@ -34,6 +34,6 @@ const Root = (0, styles_1.styled)(material_1.Box, {
|
|
|
34
34
|
*
|
|
35
35
|
*/
|
|
36
36
|
function UserProfileEditSkeleton() {
|
|
37
|
-
return ((0, jsx_runtime_1.jsx)(Root,
|
|
37
|
+
return ((0, jsx_runtime_1.jsx)(Root, { className: classes.root, children: (0, jsx_runtime_1.jsx)(material_1.Grid, { container: true, children: (0, jsx_runtime_1.jsxs)(material_1.Grid, { item: true, md: 12, sm: 12, children: [(0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: "wave", sx: { height: 20, width: '100%' } }), (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: "wave", sx: { height: 20, width: '100%' } })] }) }) }));
|
|
38
38
|
}
|
|
39
39
|
exports.default = UserProfileEditSkeleton;
|
|
@@ -69,6 +69,6 @@ function UserProfileEdit(inProps) {
|
|
|
69
69
|
setTab(newValue);
|
|
70
70
|
};
|
|
71
71
|
// RENDER
|
|
72
|
-
return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className) }, rest, { children: [(0, jsx_runtime_1.jsxs)(material_1.Tabs,
|
|
72
|
+
return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className) }, rest, { children: [(0, jsx_runtime_1.jsxs)(material_1.Tabs, { className: classes.tabs, value: tab, onChange: handleChange, variant: "scrollable", scrollButtons: "auto", allowScrollButtonsMobile: true, children: [(0, jsx_runtime_1.jsx)(material_1.Tab, { label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userProfileEdit.info", defaultMessage: "ui.userProfileEdit.info" }) }), (0, jsx_runtime_1.jsx)(material_1.Tab, { label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userProfileEdit.account", defaultMessage: "ui.userProfileEdit.account" }) }), (0, jsx_runtime_1.jsx)(material_1.Tab, { label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userProfileEdit.notification", defaultMessage: "ui.userProfileEdit.notification" }) })] }), (0, jsx_runtime_1.jsxs)(material_1.Box, { className: classes.tabContent, children: [tab === 0 && (0, jsx_runtime_1.jsx)(PublicInfo_1.default, Object.assign({ className: classes.publicInfo, fields: fields }, UserProfileEditSectionPublicInfoProps)), tab === 1 && (0, jsx_runtime_1.jsx)(Account_1.default, Object.assign({ className: classes.account }, UserProfileEditSectionAccountProps)), tab === 2 && (0, jsx_runtime_1.jsx)(Settings_1.default, Object.assign({ settings: settings, className: classes.settings }, UserProfileEditSectionSettingsProps))] })] })));
|
|
73
73
|
}
|
|
74
74
|
exports.default = UserProfileEdit;
|
|
@@ -45,6 +45,6 @@ const Root = (0, styles_1.styled)(material_1.Box, {
|
|
|
45
45
|
*/
|
|
46
46
|
function UserProfileHeaderSkeleton() {
|
|
47
47
|
const theme = (0, material_1.useTheme)();
|
|
48
|
-
return ((0, jsx_runtime_1.jsxs)(Root,
|
|
48
|
+
return ((0, jsx_runtime_1.jsxs)(Root, { className: classes.root, children: [(0, jsx_runtime_1.jsx)(Skeleton_1.default, { className: classes.cover, animation: "wave", variant: "rectangular" }), (0, jsx_runtime_1.jsx)(material_1.Box, { className: classes.avatar, children: (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: "wave", variant: "circular", width: theme.selfcommunity.user.avatar.sizeXLarge, height: theme.selfcommunity.user.avatar.sizeXLarge }) }), (0, jsx_runtime_1.jsxs)(material_1.Box, { className: classes.section, children: [(0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "h5", className: classes.username, children: (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: "wave", sx: { height: 30, width: 100, margin: '0 auto' } }) }), (0, jsx_runtime_1.jsxs)(material_1.Stack, { direction: "row", className: classes.actions, children: [(0, jsx_runtime_1.jsx)(material_1.Button, { variant: "contained", disabled: true, children: (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: "wave", sx: { height: 20, width: 60 } }) }), (0, jsx_runtime_1.jsx)(material_1.IconButton, { disabled: true, children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "more_vert" }) })] })] })] }));
|
|
49
49
|
}
|
|
50
50
|
exports.default = UserProfileHeaderSkeleton;
|
|
@@ -113,6 +113,6 @@ function UserProfileHeader(inProps) {
|
|
|
113
113
|
: { background: `url('${scPreferences.preferences[react_core_1.SCPreferences.IMAGES_USER_DEFAULT_COVER].value}') center / cover` }));
|
|
114
114
|
const realName = (isMe && scUserContext.user.real_name) || scUser.real_name;
|
|
115
115
|
const hasBadge = scUser && scUser.community_badge;
|
|
116
|
-
return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className) }, rest, { children: [(0, jsx_runtime_1.jsxs)(material_1.Paper,
|
|
116
|
+
return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className) }, rest, { children: [(0, jsx_runtime_1.jsxs)(material_1.Paper, { style: _backgroundCover, classes: { root: classes.cover }, children: [(0, jsx_runtime_1.jsx)(material_1.Box, { className: classes.avatar, children: (0, jsx_runtime_1.jsx)(UserAvatar_1.default, { hide: !hasBadge, children: (0, jsx_runtime_1.jsx)("img", { src: scUser.avatar ? scUser.avatar : '' }) }) }), isMe && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(ChangePicture_1.default, Object.assign({ iconButton: true, onChange: handleChangeAvatar, className: classes.changePicture }, ChangePictureProps)), (0, jsx_runtime_1.jsx)("div", { className: classes.changeCover, children: (0, jsx_runtime_1.jsx)(ChangeCover_1.default, Object.assign({ onChange: handleChangeCover }, ChangeCoverProps)) })] }))] }), (0, jsx_runtime_1.jsxs)(material_1.Box, { className: classes.infOpsSection, children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { className: classes.info, children: [(0, jsx_runtime_1.jsxs)(material_1.Typography, { variant: "h5", className: classes.username, children: ["@", isMe ? scUserContext.user.username : scUser.username] }), realName && ((0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "subtitle1", className: classes.realname, children: realName })), scUser.bio && ((0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "subtitle2", className: classes.bio, children: scUser.bio })), scUser.website && ((0, jsx_runtime_1.jsx)(react_core_1.Link, { className: classes.website, target: "blank", to: scUser.website, children: (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "body2", children: scUser.website }) }))] }), actions && actions] })] })));
|
|
117
117
|
}
|
|
118
118
|
exports.default = UserProfileHeader;
|
|
@@ -103,6 +103,6 @@ function UserSocialAssociation(inProps) {
|
|
|
103
103
|
if (!providersEnabled) {
|
|
104
104
|
return null;
|
|
105
105
|
}
|
|
106
|
-
return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, rest, { direction: "column"
|
|
106
|
+
return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, rest, { direction: "column", children: [providersLinked.length !== 0 || (providersToLink.length !== 0 && onCreateAssociation) ? children : null, providersToLink.length !== 0 && onCreateAssociation && ((0, jsx_runtime_1.jsxs)(material_1.Box, { children: [(0, jsx_runtime_1.jsxs)(material_1.Typography, { variant: "body2", children: [" ", intl.formatMessage(messages.socialAdd)] }), providersToLink.map((p, index) => ((0, jsx_runtime_1.jsx)(react_1.default.Fragment, { children: (0, jsx_runtime_1.jsx)(material_1.IconButton, { onClick: onCreateAssociation ? () => onCreateAssociation(p) : null, children: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: p }) }) }, index)))] })), providersLinked.length !== 0 && ((0, jsx_runtime_1.jsxs)(material_1.Box, { children: [(0, jsx_runtime_1.jsxs)(material_1.Typography, { variant: "body2", children: [" ", intl.formatMessage(messages.socialRemove)] }), providersLinked.map((p, index) => ((0, jsx_runtime_1.jsx)(react_1.default.Fragment, { children: (0, jsx_runtime_1.jsx)(material_1.IconButton, { color: "primary", onClick: () => onDeleteAssociation(p), children: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: p.provider }) }) }, index)))] }))] })));
|
|
107
107
|
}
|
|
108
108
|
exports.default = UserSocialAssociation;
|
|
@@ -37,6 +37,6 @@ const Root = (0, styles_1.styled)(Widget_1.default, {
|
|
|
37
37
|
*
|
|
38
38
|
*/
|
|
39
39
|
function UserSubscribedGroupsWidgetSkeleton(props) {
|
|
40
|
-
return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: classes.root }, props, { children: [(0, jsx_runtime_1.jsx)(material_1.CardContent, { children: (0, jsx_runtime_1.jsx)(List_1.default,
|
|
40
|
+
return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: classes.root }, props, { children: [(0, jsx_runtime_1.jsx)(material_1.CardContent, { children: (0, jsx_runtime_1.jsx)(List_1.default, { className: classes.list, children: [...Array(3)].map((category, 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 = UserSubscribedGroupsWidgetSkeleton;
|
|
@@ -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,
|
|
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: {
|
|
169
169
|
total: isMe ? state.results.filter((g) => g.subscription_status === types_1.SCGroupSubscriptionStatusType.SUBSCRIBED).length : state.count
|
|
170
|
-
} }) })
|
|
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" }) })] })))] }))] }));
|
|
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,
|
|
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))) }) }) })));
|
|
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,
|
|
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))) }) }) })))] }));
|
|
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,
|
|
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, { 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,
|
|
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, { 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,
|
|
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))) }) })) }))] }));
|
|
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,
|
|
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
|
|
148
148
|
.filter((reaction) => !contributionVoted || (contributionVoted && contributionReaction.id !== reaction.id) ? reaction.active : reaction)
|
|
149
|
-
.map((reaction) => ((0, jsx_runtime_1.jsx)(material_1.IconButton,
|
|
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))) }) }))] }));
|
|
150
150
|
}
|
|
151
151
|
exports.default = VoteButton;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LIVE_STREAM_DESCRIPTION_MAX_LENGTH = exports.LIVE_STREAM_SLUG_MAX_LENGTH = exports.LIVE_STREAM_TITLE_MAX_LENGTH = void 0;
|
|
4
|
+
exports.LIVE_STREAM_TITLE_MAX_LENGTH = 50;
|
|
5
|
+
exports.LIVE_STREAM_SLUG_MAX_LENGTH = 50;
|
|
6
|
+
exports.LIVE_STREAM_DESCRIPTION_MAX_LENGTH = 500;
|
|
@@ -4,7 +4,8 @@ import { SCUserType, SCGroupType, SCEventType } from '@selfcommunity/types';
|
|
|
4
4
|
*/
|
|
5
5
|
export declare enum SCTopicType {
|
|
6
6
|
GROUP = "group",
|
|
7
|
-
EVENT = "event"
|
|
7
|
+
EVENT = "event",
|
|
8
|
+
CATEGORY = "category"
|
|
8
9
|
}
|
|
9
10
|
/**
|
|
10
11
|
* Group/Event event types
|
|
@@ -18,6 +19,12 @@ export declare enum SCGroupEventType {
|
|
|
18
19
|
INVITE_MEMBER = "members.invite_member",
|
|
19
20
|
REMOVE_MEMBER = "members.remove_member"
|
|
20
21
|
}
|
|
22
|
+
/**
|
|
23
|
+
* Category event types
|
|
24
|
+
*/
|
|
25
|
+
export declare enum SCCategoryEventType {
|
|
26
|
+
EDIT = "edit"
|
|
27
|
+
}
|
|
21
28
|
export interface SCGroupMembersEventType {
|
|
22
29
|
group: SCGroupType;
|
|
23
30
|
user?: SCUserType;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SCGroupEventType = exports.SCTopicType = void 0;
|
|
3
|
+
exports.SCCategoryEventType = exports.SCGroupEventType = exports.SCTopicType = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* Define topics for pubsub
|
|
6
6
|
*/
|
|
@@ -8,7 +8,8 @@ var SCTopicType;
|
|
|
8
8
|
(function (SCTopicType) {
|
|
9
9
|
SCTopicType["GROUP"] = "group";
|
|
10
10
|
SCTopicType["EVENT"] = "event";
|
|
11
|
-
|
|
11
|
+
SCTopicType["CATEGORY"] = "category";
|
|
12
|
+
})(SCTopicType || (exports.SCTopicType = SCTopicType = {}));
|
|
12
13
|
/**
|
|
13
14
|
* Group/Event event types
|
|
14
15
|
*/
|
|
@@ -21,4 +22,11 @@ var SCGroupEventType;
|
|
|
21
22
|
SCGroupEventType["ADD_MEMBER"] = "members.add_member";
|
|
22
23
|
SCGroupEventType["INVITE_MEMBER"] = "members.invite_member";
|
|
23
24
|
SCGroupEventType["REMOVE_MEMBER"] = "members.remove_member";
|
|
24
|
-
})(SCGroupEventType
|
|
25
|
+
})(SCGroupEventType || (exports.SCGroupEventType = SCGroupEventType = {}));
|
|
26
|
+
/**
|
|
27
|
+
* Category event types
|
|
28
|
+
*/
|
|
29
|
+
var SCCategoryEventType;
|
|
30
|
+
(function (SCCategoryEventType) {
|
|
31
|
+
SCCategoryEventType["EDIT"] = "edit";
|
|
32
|
+
})(SCCategoryEventType || (exports.SCCategoryEventType = SCCategoryEventType = {}));
|