@selfcommunity/react-ui 0.8.0-embeds.17 → 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 +4 -4
- package/lib/cjs/components/Composer/Content/ContentDiscussion/ContentDiscussion.js +3 -3
- package/lib/cjs/components/Composer/Content/ContentPoll/ContentPoll.js +6 -6
- package/lib/cjs/components/Composer/Content/ContentPost/ContentPost.js +1 -1
- package/lib/cjs/components/Composer/Layer/AudienceLayer/AudienceLayer.js +5 -5
- package/lib/cjs/components/Composer/Layer/CategoryLayer/CategoryLayer.js +1 -1
- package/lib/cjs/components/Composer/Layer/CloseLayer/CloseLayer.js +1 -1
- package/lib/cjs/components/Composer/Layer/LocationLayer/LocationLayer.js +1 -1
- package/lib/cjs/components/Composer/Skeleton.js +1 -1
- package/lib/cjs/components/Composer/TypeSwitchButtonGroup/TypeSwitchButtonGroup.js +1 -1
- package/lib/cjs/components/ComposerIconButton/ComposerIconButton.js +2 -2
- package/lib/cjs/components/ConsentSolution/ConsentSolution.js +4 -4
- package/lib/cjs/components/ConsentSolution/Skeleton.js +1 -1
- package/lib/cjs/components/CreateEventButton/CreateEventButton.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 +6 -5
- 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 +8 -8
- package/lib/cjs/components/NavigationToolbar/NotificationMenu.js +1 -1
- package/lib/cjs/components/NavigationToolbar/Skeleton.js +1 -1
- package/lib/cjs/components/NavigationToolbarMobile/NavigationToolbarMobile.js +4 -4
- package/lib/cjs/components/NavigationToolbarMobile/Skeleton.js +1 -1
- package/lib/cjs/components/Notification/CollapsedFor/CollapsedFor.js +1 -1
- package/lib/cjs/components/Notification/Comment/Comment.js +3 -3
- package/lib/cjs/components/Notification/Contribution/Contribution.js +3 -3
- package/lib/cjs/components/Notification/ContributionFollow/ContributionFollow.js +2 -2
- package/lib/cjs/components/Notification/DeletedFor/DeletedFor.js +1 -1
- package/lib/cjs/components/Notification/Event/Event.js +9 -9
- package/lib/cjs/components/Notification/Group/Group.js +8 -8
- package/lib/cjs/components/Notification/IncubatorApproved/IncubatorApproved.js +3 -3
- package/lib/cjs/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.js +1 -1
- package/lib/cjs/components/Notification/KindlyNoticeFor/KindlyNoticeFor.js +2 -2
- package/lib/cjs/components/Notification/Mention/Mention.js +3 -3
- package/lib/cjs/components/Notification/Notification.js +8 -8
- package/lib/cjs/components/Notification/PrivateMessage/PrivateMessage.js +10 -10
- package/lib/cjs/components/Notification/Skeleton.js +1 -1
- package/lib/cjs/components/Notification/UndeletedFor/UndeletedFor.js +1 -1
- package/lib/cjs/components/Notification/UserBlocked/UserBlocked.js +3 -3
- package/lib/cjs/components/Notification/UserConnection/UserConnection.js +2 -2
- package/lib/cjs/components/Notification/UserFollow/UserFollow.js +2 -2
- package/lib/cjs/components/Notification/VoteUp/VoteUp.js +2 -2
- package/lib/cjs/components/OnBoardingWidget/ActionsButton.d.ts +7 -0
- package/lib/cjs/components/OnBoardingWidget/ActionsButton.js +84 -0
- package/lib/cjs/components/OnBoardingWidget/OnBoardingWidget.d.ts +5 -1
- package/lib/cjs/components/OnBoardingWidget/OnBoardingWidget.js +98 -25
- 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/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 +4 -4
- package/lib/esm/components/Composer/Content/ContentDiscussion/ContentDiscussion.js +3 -3
- package/lib/esm/components/Composer/Content/ContentPoll/ContentPoll.js +6 -6
- package/lib/esm/components/Composer/Content/ContentPost/ContentPost.js +1 -1
- package/lib/esm/components/Composer/Layer/AudienceLayer/AudienceLayer.js +4 -4
- package/lib/esm/components/Composer/Layer/CategoryLayer/CategoryLayer.js +1 -1
- package/lib/esm/components/Composer/Layer/CloseLayer/CloseLayer.js +1 -1
- package/lib/esm/components/Composer/Layer/LocationLayer/LocationLayer.js +1 -1
- package/lib/esm/components/Composer/Skeleton.js +1 -1
- package/lib/esm/components/Composer/TypeSwitchButtonGroup/TypeSwitchButtonGroup.js +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 +7 -6
- 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 +8 -8
- package/lib/esm/components/NavigationToolbar/NotificationMenu.js +1 -1
- package/lib/esm/components/NavigationToolbar/Skeleton.js +1 -1
- package/lib/esm/components/NavigationToolbarMobile/NavigationToolbarMobile.js +4 -4
- package/lib/esm/components/NavigationToolbarMobile/Skeleton.js +1 -1
- package/lib/esm/components/Notification/CollapsedFor/CollapsedFor.js +1 -1
- package/lib/esm/components/Notification/Comment/Comment.js +3 -3
- package/lib/esm/components/Notification/Contribution/Contribution.js +3 -3
- package/lib/esm/components/Notification/ContributionFollow/ContributionFollow.js +2 -2
- package/lib/esm/components/Notification/DeletedFor/DeletedFor.js +1 -1
- package/lib/esm/components/Notification/Event/Event.js +9 -9
- package/lib/esm/components/Notification/Group/Group.js +8 -8
- package/lib/esm/components/Notification/IncubatorApproved/IncubatorApproved.js +3 -3
- package/lib/esm/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.js +1 -1
- package/lib/esm/components/Notification/KindlyNoticeFor/KindlyNoticeFor.js +2 -2
- package/lib/esm/components/Notification/Mention/Mention.js +3 -3
- package/lib/esm/components/Notification/Notification.js +8 -8
- package/lib/esm/components/Notification/PrivateMessage/PrivateMessage.js +10 -10
- package/lib/esm/components/Notification/Skeleton.js +1 -1
- package/lib/esm/components/Notification/UndeletedFor/UndeletedFor.js +1 -1
- package/lib/esm/components/Notification/UserBlocked/UserBlocked.js +3 -3
- package/lib/esm/components/Notification/UserConnection/UserConnection.js +2 -2
- package/lib/esm/components/Notification/UserFollow/UserFollow.js +2 -2
- package/lib/esm/components/Notification/VoteUp/VoteUp.js +2 -2
- package/lib/esm/components/OnBoardingWidget/ActionsButton.d.ts +7 -0
- package/lib/esm/components/OnBoardingWidget/ActionsButton.js +81 -0
- package/lib/esm/components/OnBoardingWidget/OnBoardingWidget.d.ts +5 -1
- package/lib/esm/components/OnBoardingWidget/OnBoardingWidget.js +101 -28
- 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/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
|
@@ -187,7 +187,7 @@ function GroupRequestsWidget(inProps) {
|
|
|
187
187
|
if (!state.initialized) {
|
|
188
188
|
return (0, jsx_runtime_1.jsx)(Skeleton_1.default, {});
|
|
189
189
|
}
|
|
190
|
-
const content = ((0, jsx_runtime_1.jsxs)(material_1.CardContent, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography,
|
|
190
|
+
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.groupRequestsWidget.title", defaultMessage: "ui.groupRequestsWidget.title" }) }), (0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [(0, jsx_runtime_1.jsx)(List_1.default, { 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, { elevation: 0, actions: (0, jsx_runtime_1.jsx)(GroupSubscribeButton_1.default, Object.assign({ group: scGroup, groupId: scGroup === null || scGroup === void 0 ? void 0 : scGroup.id, user: user, onSubscribe: () => handleSubscribeAction(user) }, GroupSubscribeButtonProps)), user: user, userId: user.id }) }, 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.groupRequestsWidget.button.showMore", defaultMessage: "ui.groupRequestsWidget.button.showMore" }) }))] }), openDialog && ((0, jsx_runtime_1.jsx)(DialogRoot, Object.assign({ className: classes.dialogRoot, title: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { defaultMessage: "ui.groupRequestsWidget.dialogTitle", id: "ui.groupRequestsWidget.dialogTitle", values: { total: scGroup.subscribers_counter } }), 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.groupRequestsWidget.noMoreResults", defaultMessage: "ui.groupRequestsWidget.noMoreResults" }) }), children: (0, jsx_runtime_1.jsx)(List_1.default, { children: state.results.map((user) => ((0, jsx_runtime_1.jsx)(material_1.ListItem, { children: (0, jsx_runtime_1.jsx)(User_1.default, { elevation: 0, actions: (0, jsx_runtime_1.jsx)(GroupSubscribeButton_1.default, Object.assign({ group: scGroup, groupId: scGroup === null || scGroup === void 0 ? void 0 : scGroup.id, user: user, onSubscribe: () => handleSubscribeAction(user) }, GroupSubscribeButtonProps)), user: user, userId: user.id }) }, user.id))) }) }) })))] }));
|
|
191
191
|
return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, rest, { children: content })));
|
|
192
192
|
}
|
|
193
193
|
exports.default = GroupRequestsWidget;
|
|
@@ -122,18 +122,18 @@ function GroupSettingsIconButton(inProps) {
|
|
|
122
122
|
const renderList = () => {
|
|
123
123
|
if (isMobile) {
|
|
124
124
|
return [
|
|
125
|
-
(0, jsx_runtime_1.jsx)(material_1.ListItem,
|
|
126
|
-
(0, jsx_runtime_1.jsx)(material_1.ListItem,
|
|
125
|
+
(0, jsx_runtime_1.jsx)(material_1.ListItem, { className: classes.item, component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.USER_PRIVATE_MESSAGES_ROUTE_NAME, user), children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.groupSettingsIconButton.item.message", defaultMessage: "ui.groupSettingsIconButton.item.message" }) }, "message"),
|
|
126
|
+
(0, jsx_runtime_1.jsx)(material_1.ListItem, { className: classes.item, onClick: handleOpenDialog, children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.groupSettingsIconButton.item.remove", defaultMessage: "ui.groupSettingsIconButton.item.remove" }) }, "delete")
|
|
127
127
|
];
|
|
128
128
|
}
|
|
129
129
|
else {
|
|
130
130
|
return [
|
|
131
|
-
(0, jsx_runtime_1.jsx)(material_1.MenuItem,
|
|
132
|
-
(0, jsx_runtime_1.jsx)(material_1.MenuItem,
|
|
131
|
+
(0, jsx_runtime_1.jsx)(material_1.MenuItem, { className: classes.item, component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.USER_PRIVATE_MESSAGES_ROUTE_NAME, user), children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.groupSettingsIconButton.item.message", defaultMessage: "ui.groupSettingsIconButton.item.message" }) }, "message"),
|
|
132
|
+
(0, jsx_runtime_1.jsx)(material_1.MenuItem, { className: classes.item, onClick: handleOpenDialog, children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.groupSettingsIconButton.item.remove", defaultMessage: "ui.groupSettingsIconButton.item.remove" }) }, "delete")
|
|
133
133
|
];
|
|
134
134
|
}
|
|
135
135
|
};
|
|
136
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, rest, { onClick: handleOpen
|
|
136
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, rest, { onClick: handleOpen, children: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "more_vert" }) })), isMobile ? ((0, jsx_runtime_1.jsx)(SwipeableDrawerRoot, { className: classes.drawerRoot, anchor: "bottom", open: Boolean(anchorEl), onClose: handleClose, onOpen: handleOpen, PaperProps: { className: classes.paper }, disableSwipeToOpen: true, children: (0, jsx_runtime_1.jsx)(material_1.List, { children: renderList() }) })) : ((0, jsx_runtime_1.jsx)(MenuRoot, { className: classes.menuRoot, anchorEl: anchorEl, open: Boolean(anchorEl), onClose: handleClose, PaperProps: { className: classes.paper }, children: renderList() })), openConfirmDialog && ((0, jsx_runtime_1.jsx)(ConfirmDialog_1.default, { open: openConfirmDialog, title: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.groupSettingsIconButton.dialog.msg", defaultMessage: "ui.groupSettingsIconButton.dialog.msg", values: {
|
|
137
137
|
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
|
|
138
138
|
// @ts-ignore
|
|
139
139
|
b: (...chunks) => (0, jsx_runtime_1.jsx)("strong", { children: chunks }),
|
|
@@ -18,6 +18,8 @@ const constants_1 = require("./constants");
|
|
|
18
18
|
const Group_1 = tslib_1.__importStar(require("../Group"));
|
|
19
19
|
const Pagination_1 = require("../../constants/Pagination");
|
|
20
20
|
const InfiniteScroll_1 = tslib_1.__importDefault(require("../../shared/InfiniteScroll"));
|
|
21
|
+
const pubsub_js_1 = tslib_1.__importDefault(require("pubsub-js"));
|
|
22
|
+
const PubSub_1 = require("../../constants/PubSub");
|
|
21
23
|
const classes = {
|
|
22
24
|
root: `${constants_1.PREFIX}-root`,
|
|
23
25
|
filters: `${constants_1.PREFIX}-filter`,
|
|
@@ -85,6 +87,8 @@ function Groups(inProps) {
|
|
|
85
87
|
scPreferencesContext.preferences[react_core_1.SCPreferences.CONFIGURATIONS_CONTENT_AVAILABILITY].value, [scPreferencesContext.preferences]);
|
|
86
88
|
// CONST
|
|
87
89
|
const authUserId = scUserContext.user ? scUserContext.user.id : null;
|
|
90
|
+
// REFS
|
|
91
|
+
const updatesSubscription = (0, react_1.useRef)(null);
|
|
88
92
|
// HANDLERS
|
|
89
93
|
const handleScrollUp = () => {
|
|
90
94
|
window.scrollTo({ left: 0, top: 0, behavior: 'smooth' });
|
|
@@ -121,6 +125,28 @@ function Groups(inProps) {
|
|
|
121
125
|
fetchGroups();
|
|
122
126
|
}
|
|
123
127
|
}, [contentAvailability, authUserId, search]);
|
|
128
|
+
/**
|
|
129
|
+
* Subscriber for pubsub callback
|
|
130
|
+
*/
|
|
131
|
+
const onDeleteGroupHandler = (0, react_1.useCallback)((_msg, deleted) => {
|
|
132
|
+
setGroups((prev) => {
|
|
133
|
+
if (prev.some((e) => e.id === deleted)) {
|
|
134
|
+
return prev.filter((e) => e.id !== deleted);
|
|
135
|
+
}
|
|
136
|
+
return prev;
|
|
137
|
+
});
|
|
138
|
+
}, [groups]);
|
|
139
|
+
/**
|
|
140
|
+
* On mount, subscribe to receive event updates (only delete)
|
|
141
|
+
*/
|
|
142
|
+
(0, react_1.useEffect)(() => {
|
|
143
|
+
if (groups) {
|
|
144
|
+
updatesSubscription.current = pubsub_js_1.default.subscribe(`${PubSub_1.SCTopicType.GROUP}.${PubSub_1.SCGroupEventType.DELETE}`, onDeleteGroupHandler);
|
|
145
|
+
}
|
|
146
|
+
return () => {
|
|
147
|
+
updatesSubscription.current && pubsub_js_1.default.unsubscribe(updatesSubscription.current);
|
|
148
|
+
};
|
|
149
|
+
}, [groups]);
|
|
124
150
|
const handleNext = (0, react_1.useMemo)(() => () => {
|
|
125
151
|
if (!next) {
|
|
126
152
|
return;
|
|
@@ -157,11 +183,11 @@ function Groups(inProps) {
|
|
|
157
183
|
* Renders groups list
|
|
158
184
|
*/
|
|
159
185
|
const filteredGroups = (0, utils_1.sortByAttr)(getFilteredGroups(), 'order');
|
|
160
|
-
const content = ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [showFilters && groups.length !== 0 && ((0, jsx_runtime_1.jsx)(material_1.Grid,
|
|
186
|
+
const content = ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [showFilters && groups.length !== 0 && ((0, jsx_runtime_1.jsx)(material_1.Grid, { container: true, direction: "row", justifyContent: "center", alignItems: "center", className: classes.filters, children: filters ? (filters) : ((0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: 12, md: 6, children: (0, jsx_runtime_1.jsx)(material_1.TextField, { fullWidth: true, value: search, label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.groups.filterByName", defaultMessage: "ui.groups.filterByName" }), variant: "outlined", onChange: handleOnChangeFilterName, disabled: loading }) })) })), (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: !groups.length ? ((0, jsx_runtime_1.jsx)(material_1.Box, { className: classes.noResults, children: !onlyStaffEnabled ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "h4", children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.groups.noGroups.title", defaultMessage: "ui.groups.noGroups.title" }) }), (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "body1", children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.groups.noGroups.subtitle", defaultMessage: "ui.groups.noGroups.subtitle" }) })] })) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "h4", children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.groups.noGroups.title.onlyStaff", defaultMessage: "ui.groups.noGroups.title.onlyStaff" }) }), (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "body1", children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.groups.noGroups.subtitle.onlyStaff", defaultMessage: "ui.groups.noGroups.subtitle.onlyStaff" }) })] })) })) : ((0, jsx_runtime_1.jsx)(InfiniteScroll_1.default, { dataLength: groups.length, next: handleNext, hasMoreNext: Boolean(next), loaderNext: isMobile ? (0, jsx_runtime_1.jsx)(Group_1.GroupSkeleton, {}) : (0, jsx_runtime_1.jsx)(Skeleton_1.default, { groupsNumber: 2 }), endMessage: (0, jsx_runtime_1.jsx)(material_1.Typography, { component: "div", className: classes.endMessage, children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.groups.endMessage", defaultMessage: "ui.groups.endMessage", values: {
|
|
161
187
|
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
|
|
162
188
|
// @ts-ignore
|
|
163
|
-
button: (chunk) => ((0, jsx_runtime_1.jsx)(material_1.Button,
|
|
164
|
-
} }) })
|
|
189
|
+
button: (chunk) => ((0, jsx_runtime_1.jsx)(material_1.Button, { color: "secondary", variant: "text", onClick: handleScrollUp, children: chunk }))
|
|
190
|
+
} }) }), children: (0, jsx_runtime_1.jsx)(material_1.Grid, { container: true, spacing: { xs: 2 }, className: classes.groups, children: filteredGroups.map((group) => ((0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: 12, sm: 8, md: 6, className: classes.item, children: (0, jsx_runtime_1.jsx)(Group_1.default, Object.assign({ group: group, groupId: group.id, actionRedirect: true }, GroupComponentProps)) }, group.id))) }) })) })] }));
|
|
165
191
|
// RENDER
|
|
166
192
|
if (!contentAvailability && !scUserContext.user) {
|
|
167
193
|
return (0, jsx_runtime_1.jsx)(HiddenPlaceholder_1.default, {});
|
|
@@ -38,6 +38,6 @@ const Root = (0, styles_1.styled)(material_1.Box, {
|
|
|
38
38
|
*/
|
|
39
39
|
function GroupsSkeleton(inProps) {
|
|
40
40
|
const { className, GroupSkeletonProps = {}, groupsNumber = 20 } = inProps, rest = tslib_1.__rest(inProps, ["className", "GroupSkeletonProps", "groupsNumber"]);
|
|
41
|
-
return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, rest, { children: (0, jsx_runtime_1.jsx)(material_1.Grid,
|
|
41
|
+
return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, rest, { children: (0, jsx_runtime_1.jsx)(material_1.Grid, { container: true, spacing: { xs: 3 }, className: classes.groups, children: [...Array(groupsNumber)].map((category, index) => ((0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: 12, sm: 8, md: 6, children: (0, jsx_runtime_1.jsx)(Group_1.GroupSkeleton, Object.assign({ elevation: 0, variant: 'outlined' }, GroupSkeletonProps)) }, index))) }) })));
|
|
42
42
|
}
|
|
43
43
|
exports.default = GroupsSkeleton;
|
|
@@ -29,7 +29,7 @@ const Root = (0, styles_1.styled)(Widget_1.default, {
|
|
|
29
29
|
})(() => ({}));
|
|
30
30
|
function LinearProgressWithLabel(_a) {
|
|
31
31
|
var { className } = _a, props = tslib_1.__rest(_a, ["className"]);
|
|
32
|
-
return ((0, jsx_runtime_1.jsxs)(material_1.Box,
|
|
32
|
+
return ((0, jsx_runtime_1.jsxs)(material_1.Box, { className: className, children: [(0, jsx_runtime_1.jsx)(LinearProgress_1.default, Object.assign({ variant: "determinate" }, props)), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: { position: 'absolute', top: '3px', left: props.value + 2 + '%', transform: 'translateX(-50%)' }, children: props.subscribers !== 0 && ((0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "body2", color: "text.secondary", children: props.subscribers })) }), (0, jsx_runtime_1.jsxs)(material_1.Grid, { container: true, spacing: 2, className: className, children: [(0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: true, children: (0, jsx_runtime_1.jsx)(material_1.Typography, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { defaultMessage: "ui.incubator.progressBar.proposal", id: "ui.incubator.progressBar.proposal" }) }) }), (0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: true, children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { defaultMessage: "ui.incubator.progressBar.collectingSubscribers", id: "ui.incubator.progressBar.collectingSubscribers" }) }), (0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: true, children: (0, jsx_runtime_1.jsx)(material_1.Typography, { align: "right", children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { defaultMessage: "ui.incubator.progressBar.approved", id: "ui.incubator.progressBar.approved" }) }) })] })] }));
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
35
|
* > API documentation for the Community-JS Incubator component. Learn about the available props and the CSS API.
|
|
@@ -89,8 +89,8 @@ function Incubator(inProps) {
|
|
|
89
89
|
if (autoHide) {
|
|
90
90
|
return (0, jsx_runtime_1.jsx)(HiddenPlaceholder_1.default, {});
|
|
91
91
|
}
|
|
92
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, rest, { children: [(0, jsx_runtime_1.jsxs)(CardContent_1.default, { children: [(0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ variant: "text", className: classes.name }, ButtonProps, { children: scIncubator.name })), (0, jsx_runtime_1.jsx)(material_1.Typography,
|
|
93
|
-
username: ((0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({}, (!scIncubator.user.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, scIncubator.user) }), { onClick: scIncubator.user.deleted ? () => setOpenAlert(true) : null
|
|
94
|
-
} }) })
|
|
92
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, rest, { children: [(0, jsx_runtime_1.jsxs)(CardContent_1.default, { children: [(0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ variant: "text", className: classes.name }, ButtonProps, { children: scIncubator.name })), (0, jsx_runtime_1.jsx)(material_1.Typography, { component: 'span', children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { defaultMessage: "ui.incubator.proposedBy", id: "ui.incubator.proposedBy", values: {
|
|
93
|
+
username: ((0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({}, (!scIncubator.user.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, scIncubator.user) }), { onClick: scIncubator.user.deleted ? () => setOpenAlert(true) : null, children: scIncubator.user.username })))
|
|
94
|
+
} }) }), (0, jsx_runtime_1.jsx)(material_1.Typography, { component: 'p', className: !detailView ? classes.slogan : null, children: scIncubator.slogan }), (0, jsx_runtime_1.jsx)(LinearProgressWithLabel, { className: classes.progressBar, value: renderVotes(scIncubator.subscribers_count, scIncubator.subscribers_threshold), subscribers: scIncubator.subscribers_count })] }), (0, jsx_runtime_1.jsx)(material_1.CardActions, { children: (0, jsx_runtime_1.jsx)(IncubatorSubscribeButton_1.default, Object.assign({ incubator: scIncubator }, subscribeButtonProps)) })] })), openAlert && (0, jsx_runtime_1.jsx)(UserDeletedSnackBar_1.default, { open: openAlert, handleClose: () => setOpenAlert(false) })] }));
|
|
95
95
|
}
|
|
96
96
|
exports.default = Incubator;
|
|
@@ -43,6 +43,6 @@ const Root = (0, styles_1.styled)(Widget_1.default, {
|
|
|
43
43
|
*
|
|
44
44
|
*/
|
|
45
45
|
function IncubatorSkeleton(props) {
|
|
46
|
-
return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: classes.root }, props, { children: [(0, jsx_runtime_1.jsxs)(material_1.CardContent, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography,
|
|
46
|
+
return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: classes.root }, props, { children: [(0, jsx_runtime_1.jsxs)(material_1.CardContent, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, { className: classes.primary, children: (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: "wave", height: 20, width: "40%", variant: "text" }) }), (0, jsx_runtime_1.jsxs)(material_1.Typography, { className: classes.secondary, children: [(0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: "wave", height: 10, width: "50%", variant: "text" }), (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: "wave", height: 10, width: "80%", variant: "text" })] }), (0, jsx_runtime_1.jsxs)(material_1.Grid, { container: true, spacing: 1, className: classes.progressBar, children: [(0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: 12, md: 12, children: (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: "wave", height: 20, width: "100%", variant: "rectangular" }) }), (0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: true, children: (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: "wave", height: 10, width: "100%", variant: "text" }) }), (0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: true, children: (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: "wave", height: 10, width: "100%", variant: "text" }) }), (0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: true, children: (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: "wave", height: 10, width: "100%", variant: "text" }) })] })] }), (0, jsx_runtime_1.jsx)(material_1.CardActions, { className: classes.action, children: (0, jsx_runtime_1.jsx)(material_1.Button, { disabled: true, variant: 'outlined', size: 'small', children: (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: "wave", height: 20, width: 50, variant: "text" }) }) })] })));
|
|
47
47
|
}
|
|
48
48
|
exports.default = IncubatorSkeleton;
|
|
@@ -237,7 +237,7 @@ function IncubatorDetail(inProps) {
|
|
|
237
237
|
/**
|
|
238
238
|
* Renders root element
|
|
239
239
|
*/
|
|
240
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Root, Object.assign({ title: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Avatar, { className: classes.avatar, alt: scIncubator.user.avatar, src: scIncubator.user.avatar }), (0, jsx_runtime_1.jsxs)(material_1.Box, { children: [(0, jsx_runtime_1.jsxs)(material_1.Typography,
|
|
241
|
-
) => ((0, jsx_runtime_1.jsx)(material_1.Avatar, {}, i)))] })) }))
|
|
240
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Root, Object.assign({ title: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Avatar, { className: classes.avatar, alt: scIncubator.user.avatar, src: scIncubator.user.avatar }), (0, jsx_runtime_1.jsxs)(material_1.Box, { children: [(0, jsx_runtime_1.jsxs)(material_1.Typography, { className: classes.title, children: [`${intl.formatMessage(messages.intro, { name: scIncubator.name })}`, " "] }), (0, jsx_runtime_1.jsx)(material_1.Typography, { component: 'span', children: (0, jsx_runtime_1.jsxs)(react_core_1.Link, Object.assign({}, (!scIncubator.user.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, scIncubator.user) }), { onClick: scIncubator.user.deleted ? () => setOpenAlert(true) : null, children: ["@", scIncubator.user.username] })) })] })] }), open: open, onClose: onClose, className: (0, classnames_1.default)(classes.root, className) }, rest, { children: (0, jsx_runtime_1.jsxs)(material_1.Box, { children: [(0, jsx_runtime_1.jsx)(Incubator_1.default, Object.assign({ elevation: 0, incubator: scIncubator, detailView: true, subscribeButtonProps: { onSubscribe: handleUpdates } }, IncubatorProps)), (0, jsx_runtime_1.jsx)(material_1.Box, { className: classes.subscribers, children: loading && !scIncubator ? ((0, jsx_runtime_1.jsx)(AvatarGroupSkeleton_1.default, Object.assign({}, rest))) : ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: total > 0 ? ((0, jsx_runtime_1.jsx)(material_1.Button, { onClick: handleToggleSubscribersDialog, disabled: loading || !scIncubator, children: (0, jsx_runtime_1.jsxs)(material_1.AvatarGroup, Object.assign({}, rest, { children: [subscribers.map((u) => ((0, jsx_runtime_1.jsx)(material_1.Avatar, { alt: u.username, src: u.avatar }, u.id))), [...Array(Math.max(0, total - subscribers.length))].map((x, i // Add max to 0 to prevent creation of array with negative index during state update
|
|
241
|
+
) => ((0, jsx_runtime_1.jsx)(material_1.Avatar, {}, i)))] })) })) : null })) }), openSubscribersDialog && ((0, jsx_runtime_1.jsx)(BaseDialog_1.default, { title: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { defaultMessage: "ui.incubatorDetail.subscribersSection.title", id: "ui.incubatorDetail.subscribersSection.title" }), " (", total, ")"] }), onClose: handleToggleSubscribersDialog, open: openSubscribersDialog, children: loading ? ((0, jsx_runtime_1.jsx)(CentralProgress_1.default, { size: 50 })) : ((0, jsx_runtime_1.jsx)(InfiniteScroll_1.default, { dataLength: total, next: fetchSubscribers, hasMoreNext: next !== null, 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.incubatorDetail.subscribersSection.noMoreSubscribers", defaultMessage: "ui.incubatorDetail.subscribersSection.noMoreSubscribers" }) }), children: (0, jsx_runtime_1.jsx)(material_1.List, { children: subscribers.map((s, index) => ((0, jsx_runtime_1.jsx)(material_1.ListItem, { children: (0, jsx_runtime_1.jsx)(User_1.default, { elevation: 0, user: s }, index) }, (s.id, index)))) }) })) })), (0, jsx_runtime_1.jsx)(Widget_1.default, { elevation: 1, className: classes.shareCard, children: (0, jsx_runtime_1.jsxs)(material_1.CardContent, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, { variant: 'h6', children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.incubatorDetail.shareSection.title", defaultMessage: "ui.incubatorDetail.shareSection.title" }) }), (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: 'subtitle1', children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.incubatorDetail.shareSection.share", defaultMessage: "ui.incubatorDetail.shareSection.share" }) }), (0, jsx_runtime_1.jsxs)(material_1.FormGroup, { className: classes.copyUrlForm, children: [(0, jsx_runtime_1.jsx)(material_1.TextField, { className: classes.copyText, variant: "outlined", value: portal }), (0, jsx_runtime_1.jsx)(material_1.Button, { className: classes.copyButton, variant: "contained", onClick: copy, children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.incubatorDetail.shareSection.button.copy", defaultMessage: "ui.incubatorDetail.shareSection.button.copy" }) })] }), alert && ((0, jsx_runtime_1.jsx)(material_1.Alert, { onClose: () => setAlert(false), children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.incubatorDetail.shareSection.copied", defaultMessage: "ui.incubatorDetail.shareSection.copied" }) })), isSocialShareEnabled && ((0, jsx_runtime_1.jsx)(material_1.Typography, { variant: 'subtitle2', children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.incubatorDetail.shareSection.invite", defaultMessage: "ui.incubatorDetail.shareSection.invite" }) })), (0, jsx_runtime_1.jsxs)(material_1.Box, { className: classes.shareSection, children: [facebookShareEnabled && ((0, jsx_runtime_1.jsx)(Icon_1.default, { classes: { root: classes.shareMenuIcon }, fontSize: "small", onClick: () => window.open(SocialShare_1.FACEBOOK_SHARE + portal, 'facebook-share-dialog', 'width=626,height=436'), children: "facebook" })), xShareEnabled && ((0, jsx_runtime_1.jsx)(Icon_1.default, { classes: { root: classes.shareMenuIcon }, fontSize: "small", onClick: () => window.open(SocialShare_1.X_SHARE + portal, 'x-share-dialog', 'width=626,height=436'), children: "x" })), linkedinShareEnabled && ((0, jsx_runtime_1.jsx)(Icon_1.default, { classes: { root: classes.shareMenuIcon }, fontSize: "small", onClick: () => window.open(SocialShare_1.LINKEDIN_SHARE + portal, 'linkedin-share-dialog', 'width=626,height=436'), children: "linkedin" }))] })] }) })] }) })), openAlert && (0, jsx_runtime_1.jsx)(UserDeletedSnackBar_1.default, { open: openAlert, handleClose: () => setOpenAlert(false) })] }));
|
|
242
242
|
}
|
|
243
243
|
exports.default = IncubatorDetail;
|
package/lib/cjs/components/IncubatorListWidget/CreateIncubatorDialog/CreateIncubatorDialog.js
CHANGED
|
@@ -77,10 +77,10 @@ function CreateIncubatorDialog(props) {
|
|
|
77
77
|
}
|
|
78
78
|
let dialogContent;
|
|
79
79
|
if (submitted) {
|
|
80
|
-
dialogContent = ((0, jsx_runtime_1.jsx)(material_1.Typography,
|
|
80
|
+
dialogContent = ((0, jsx_runtime_1.jsx)(material_1.Typography, { variant: 'subtitle2', className: classes.submittedMessage, children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.incubatorListWidget.createIncubatorDialog.propose.success", defaultMessage: "ui.incubatorListWidget.createIncubatorDialog.propose.success" }) }));
|
|
81
81
|
}
|
|
82
82
|
else {
|
|
83
|
-
dialogContent = ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography,
|
|
83
|
+
dialogContent = ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, { component: 'span', className: classes.intro, children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.incubatorsListDialog.createIncubatorDialog.intro", defaultMessage: "ui.incubatorsListDialog.createIncubatorDialog.intro" }) }), (0, jsx_runtime_1.jsxs)(material_1.FormGroup, { className: classes.form, children: [(0, jsx_runtime_1.jsx)(material_1.TextField, { required: true, error: Boolean(error), className: classes.name, placeholder: `${intl.formatMessage(messages.name)}`, margin: "normal", value: name, onChange: (event) => setName(event.target.value) }), (0, jsx_runtime_1.jsx)(material_1.TextField, { multiline: true, error: Boolean(error), className: classes.slogan, placeholder: `${intl.formatMessage(messages.slogan)}`, margin: "normal", value: slogan, onChange: (event) => setSlogan(event.target.value) })] }), (0, jsx_runtime_1.jsx)(lab_1.LoadingButton, { loading: isSubmitting, disabled: !name || Boolean(error), variant: "contained", onClick: handleSubmit, children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.incubatorListWidget.createIncubatorDialog.button", defaultMessage: "ui.incubatorListWidget.createIncubatorDialog.button" }) })] }));
|
|
84
84
|
}
|
|
85
85
|
// RENDER
|
|
86
86
|
return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ title: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.incubatorListWidget.createIncubatorDialog.title", defaultMessage: "ui.incubatorListWidget.createIncubatorDialog.title" }), open: open, onClose: onClose, className: (0, classnames_1.default)(classes.root, className) }, rest, { children: dialogContent })));
|
|
@@ -222,10 +222,10 @@ function IncubatorListWidget(inProps) {
|
|
|
222
222
|
if (!state.initialized) {
|
|
223
223
|
return (0, jsx_runtime_1.jsx)(Skeleton_1.default, {});
|
|
224
224
|
}
|
|
225
|
-
const content = ((0, jsx_runtime_1.jsxs)(CardContent_1.default, { children: [(0, jsx_runtime_1.jsxs)(material_1.Box,
|
|
225
|
+
const content = ((0, jsx_runtime_1.jsxs)(CardContent_1.default, { children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { className: classes.header, 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.incubatorListWidget.title", defaultMessage: "ui.incubatorListWidget.title" }) }), (0, jsx_runtime_1.jsx)(material_1.IconButton, { className: classes.helpPopover, color: "primary", "aria-label": "info", component: "span", onClick: handleClickHelpButton, children: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "help_outline" }) }), isOpen && ((0, jsx_runtime_1.jsx)(Popover_1.default, { open: isOpen, anchorEl: anchorEl, onClose: handlePopoverClose, anchorOrigin: {
|
|
226
226
|
vertical: 'bottom',
|
|
227
227
|
horizontal: 'right'
|
|
228
|
-
}
|
|
228
|
+
}, 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.incubatorListWidget.popover", defaultMessage: "ui.incubatorListWidget.popover" }) }) }) }))] }), !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.incubatorListWidget.noResults", defaultMessage: "ui.incubatorListWidget.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((incubator) => ((0, jsx_runtime_1.jsx)(material_1.ListItem, { children: (0, jsx_runtime_1.jsx)(Incubator_1.default, Object.assign({ elevation: 0, incubator: incubator, subscribeButtonProps: { onSubscribe: handleSubscriptionsUpdate }, ButtonProps: { onClick: () => handleIncubatorDetailDialogOpening(incubator) } }, IncubatorProps)) }, incubator.id))) }), (0, jsx_runtime_1.jsxs)(material_1.Box, { className: classes.actions, children: [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.incubatorListWidget.ShowAll", defaultMessage: "ui.incubatorListWidget.ShowAll" }) })), (0, jsx_runtime_1.jsx)(material_1.Button, { size: "small", onClick: () => setOpenCreateIncubatorDialog(true), children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.incubatorListWidget.SuggestNewTopic", defaultMessage: "ui.incubatorListWidget.SuggestNewTopic" }) })] })] })), openDialog && ((0, jsx_runtime_1.jsx)(DialogRoot, Object.assign({ className: classes.dialogRoot, title: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.incubatorListWidget.title", defaultMessage: "ui.incubatorListWidget.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)(Incubator_1.IncubatorSkeleton, Object.assign({ elevation: 0 }, IncubatorProps)), height: isMobile ? '100vh' : 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.incubatorListWidget.noMoreIncubators", defaultMessage: "ui.incubatorListWidget.noMoreIncubators" }) }), children: (0, jsx_runtime_1.jsx)(material_1.List, { children: state.results.map((incubator) => ((0, jsx_runtime_1.jsx)(material_1.ListItem, { children: (0, jsx_runtime_1.jsx)(Incubator_1.default, Object.assign({ elevation: 0, incubator: incubator, subscribeButtonProps: { onSubscribe: handleSubscriptionsUpdate }, ButtonProps: { onClick: () => handleIncubatorDetailDialogOpening(incubator) } }, IncubatorProps)) }, incubator.id))) }) }) }))), openCreateIncubatorDialog && ((0, jsx_runtime_1.jsx)(CreateIncubatorDialog_1.default, { className: classes.createDialog, open: openCreateIncubatorDialog, onClose: handleCreateIncubatorDialogClose })), openIncubatorDetailDialog && ((0, jsx_runtime_1.jsx)(IncubatorDetail_1.default, { open: openIncubatorDetailDialog, onClose: handleIncubatorDetailDialogClose, incubator: detailObj, onSubscriptionsUpdate: handleSubscriptionsUpdate }))] }));
|
|
229
229
|
return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, rest, { children: content })));
|
|
230
230
|
}
|
|
231
231
|
exports.default = IncubatorListWidget;
|
|
@@ -38,6 +38,6 @@ const Root = (0, styles_1.styled)(Widget_1.default, {
|
|
|
38
38
|
*
|
|
39
39
|
*/
|
|
40
40
|
function IncubatorListWidgetSkeleton(props) {
|
|
41
|
-
return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: classes.root }, props, { children: (0, jsx_runtime_1.jsx)(CardContent_1.default, { children: (0, jsx_runtime_1.jsx)(List_1.default,
|
|
41
|
+
return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: classes.root }, props, { children: (0, jsx_runtime_1.jsx)(CardContent_1.default, { children: (0, jsx_runtime_1.jsx)(List_1.default, { className: classes.list, children: [...Array(4)].map((category, index) => ((0, jsx_runtime_1.jsx)(Incubator_1.IncubatorSkeleton, { elevation: 0 }, index))) }) }) })));
|
|
42
42
|
}
|
|
43
43
|
exports.default = IncubatorListWidgetSkeleton;
|
|
@@ -189,7 +189,7 @@ function IncubatorSuggestionWidget(inProps) {
|
|
|
189
189
|
if (!state.initialized) {
|
|
190
190
|
return (0, jsx_runtime_1.jsx)(Skeleton_1.default, {});
|
|
191
191
|
}
|
|
192
|
-
const content = ((0, jsx_runtime_1.jsxs)(CardContent_1.default, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography,
|
|
192
|
+
const content = ((0, jsx_runtime_1.jsxs)(CardContent_1.default, { 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.incubatorSuggestionWidget.title", defaultMessage: "ui.incubatorSuggestionWidget.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.incubatorSuggestionWidget.noResults", defaultMessage: "ui.incubatorSuggestionWidget.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((incubator) => ((0, jsx_runtime_1.jsx)(material_1.ListItem, { children: (0, jsx_runtime_1.jsx)(Incubator_1.default, Object.assign({ elevation: 0, incubator: incubator, subscribeButtonProps: { onSubscribe: handleSubscriptionsUpdate }, ButtonProps: { onClick: () => handleIncubatorDetailDialogOpening(incubator) } }, IncubatorProps)) }, incubator.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.incubatorSuggestionWidget.ShowAll", defaultMessage: "ui.incubatorSuggestionWidget.ShowAll" }) }))] })), openDialog && ((0, jsx_runtime_1.jsx)(DialogRoot, Object.assign({ className: classes.dialogRoot, title: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.incubatorSuggestionWidget.title", defaultMessage: "ui.incubatorSuggestionWidget.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)(Incubator_1.IncubatorSkeleton, Object.assign({ elevation: 0 }, IncubatorProps)), height: isMobile ? '100vh' : 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.incubatorSuggestionWidget.noMoreIncubators", defaultMessage: "ui.incubatorSuggestionWidget.noMoreIncubators" }) }), children: (0, jsx_runtime_1.jsx)(material_1.List, { children: state.results.map((incubator) => ((0, jsx_runtime_1.jsx)(material_1.ListItem, { children: (0, jsx_runtime_1.jsx)(Incubator_1.default, Object.assign({ elevation: 0, incubator: incubator, subscribeButtonProps: { onSubscribe: handleSubscriptionsUpdate }, ButtonProps: { onClick: () => handleIncubatorDetailDialogOpening(incubator) } }, IncubatorProps)) }, incubator.id))) }) }) }))), openIncubatorDetailDialog && ((0, jsx_runtime_1.jsx)(IncubatorDetail_1.default, { open: openIncubatorDetailDialog, onClose: handleIncubatorDetailDialogClose, incubator: detailObj, onSubscriptionsUpdate: handleSubscriptionsUpdate }))] }));
|
|
193
193
|
return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, rest, { children: content })));
|
|
194
194
|
}
|
|
195
195
|
exports.default = IncubatorSuggestionWidget;
|
|
@@ -38,6 +38,6 @@ const Root = (0, styles_1.styled)(Widget_1.default, {
|
|
|
38
38
|
*
|
|
39
39
|
*/
|
|
40
40
|
function IncubatorSuggestionWidgetSkeleton(props) {
|
|
41
|
-
return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: classes.root }, props, { children: (0, jsx_runtime_1.jsx)(CardContent_1.default, { children: (0, jsx_runtime_1.jsx)(List_1.default,
|
|
41
|
+
return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: classes.root }, props, { children: (0, jsx_runtime_1.jsx)(CardContent_1.default, { children: (0, jsx_runtime_1.jsx)(List_1.default, { className: classes.list, children: [...Array(4)].map((category, index) => ((0, jsx_runtime_1.jsx)(Incubator_1.IncubatorSkeleton, { elevation: 0 }, index))) }) }) })));
|
|
42
42
|
}
|
|
43
43
|
exports.default = IncubatorSuggestionWidgetSkeleton;
|
|
@@ -103,6 +103,6 @@ function InlineComposerWidget(inProps) {
|
|
|
103
103
|
if (!react_core_1.UserUtils.isStaff(scUserContext.user) && onlyStaffEnabled) {
|
|
104
104
|
return (0, jsx_runtime_1.jsx)(HiddenPlaceholder_1.default, {});
|
|
105
105
|
}
|
|
106
|
-
return ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [(0, jsx_runtime_1.jsx)(Root, Object.assign({ className: classes.root }, rest, { children: (0, jsx_runtime_1.jsxs)(material_1.CardContent,
|
|
106
|
+
return ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [(0, jsx_runtime_1.jsx)(Root, Object.assign({ className: classes.root }, rest, { children: (0, jsx_runtime_1.jsxs)(material_1.CardContent, { className: classes.content, children: [(0, jsx_runtime_1.jsx)(material_1.Box, { className: classes.input, children: (0, jsx_runtime_1.jsx)(material_1.Button, { variant: "text", disableFocusRipple: true, disableRipple: true, disableElevation: true, onClick: handleOpen, fullWidth: true, color: "inherit", children: label !== null && label !== void 0 ? label : (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.inlineComposerWidget.label", defaultMessage: "ui.inlineComposerWidget.label" }) }) }), (0, jsx_runtime_1.jsx)(material_1.Box, { className: classes.avatar, children: !scUserContext.user ? ((0, jsx_runtime_1.jsx)(material_1.Avatar, { variant: "circular" })) : ((0, jsx_runtime_1.jsx)(react_core_1.Link, { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, scUserContext.user), children: (0, jsx_runtime_1.jsx)(material_1.Avatar, { alt: scUserContext.user.username, variant: "circular", src: scUserContext.user.avatar }) })) })] }) })), (0, jsx_runtime_1.jsx)(Composer_1.default, { open: open, mediaObjectTypes: mediaObjectTypes, defaultValue: defaultValue, fullWidth: true, onClose: handleClose, onSuccess: handleSuccess, feedType: feedType })] }));
|
|
107
107
|
}
|
|
108
108
|
exports.default = InlineComposerWidget;
|
|
@@ -41,6 +41,6 @@ const Root = (0, styles_1.styled)(Widget_1.default, {
|
|
|
41
41
|
*
|
|
42
42
|
*/
|
|
43
43
|
function InlineComposerWidgetSkeleton() {
|
|
44
|
-
return ((0, jsx_runtime_1.jsx)(Root,
|
|
44
|
+
return ((0, jsx_runtime_1.jsx)(Root, { className: classes.root, children: (0, jsx_runtime_1.jsxs)(material_1.CardContent, { className: classes.content, children: [(0, jsx_runtime_1.jsx)(material_1.Box, { className: classes.input, children: (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: "wave", variant: "text" }) }), (0, jsx_runtime_1.jsx)(material_1.Box, { className: classes.avatar, children: (0, jsx_runtime_1.jsx)(Skeleton_1.default, { className: classes.avatar, animation: "wave", variant: "circular" }) })] }) }));
|
|
45
45
|
}
|
|
46
46
|
exports.default = InlineComposerWidgetSkeleton;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { BoxProps } from '@mui/material';
|
|
2
|
+
import { SCLiveStreamType } from '@selfcommunity/types/src/index';
|
|
3
|
+
export interface LiveStreamFormProps extends BoxProps {
|
|
4
|
+
/**
|
|
5
|
+
* Overrides or extends the styles applied to the component.
|
|
6
|
+
* @default null
|
|
7
|
+
*/
|
|
8
|
+
className?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Event Object
|
|
11
|
+
* @default null
|
|
12
|
+
*/
|
|
13
|
+
liveStream?: SCLiveStreamType;
|
|
14
|
+
/**
|
|
15
|
+
* On success callback function
|
|
16
|
+
* @default null
|
|
17
|
+
*/
|
|
18
|
+
onSuccess?: (data: SCLiveStreamType) => void;
|
|
19
|
+
/**
|
|
20
|
+
* On error callback function
|
|
21
|
+
* @default null
|
|
22
|
+
*/
|
|
23
|
+
onError?: (error: any) => void;
|
|
24
|
+
/**
|
|
25
|
+
* Any other properties
|
|
26
|
+
*/
|
|
27
|
+
[p: string]: any;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
*> API documentation for the Community-JS LiveStreamForm component. Learn about the available props and the CSS API.
|
|
31
|
+
*
|
|
32
|
+
#### Import
|
|
33
|
+
```jsx
|
|
34
|
+
import {LiveStreamForm} from '@selfcommunity/react-ui';
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
#### Component Name
|
|
38
|
+
The name `LiveStreamForm` can be used when providing style overrides in the theme.
|
|
39
|
+
|
|
40
|
+
#### CSS
|
|
41
|
+
|
|
42
|
+
|Rule Name|Global class|Description|
|
|
43
|
+
|---|---|---|
|
|
44
|
+
|root|.SCLiveStreamForm-root|Styles applied to the root element.|
|
|
45
|
+
|title|.SCLiveStreamForm-title|Styles applied to the title element.|
|
|
46
|
+
|cover|.SCLiveStreamForm-cover|Styles applied to the cover field.|
|
|
47
|
+
|form|.SCLiveStreamForm-form|Styles applied to the form element.|
|
|
48
|
+
|name|.SCLiveStreamForm-name|Styles applied to the name field.|
|
|
49
|
+
|description|.SCLiveStreamForm-description|Styles applied to the description field.|
|
|
50
|
+
|content|.SCLiveStreamForm-content|Styles applied to the element.|
|
|
51
|
+
|error|.SCLiveStreamForm-error|Styles applied to the error elements.|
|
|
52
|
+
|
|
53
|
+
* @param inProps
|
|
54
|
+
*/
|
|
55
|
+
export default function LiveStreamForm(inProps: LiveStreamFormProps): JSX.Element;
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const lab_1 = require("@mui/lab");
|
|
6
|
+
const material_1 = require("@mui/material");
|
|
7
|
+
const styles_1 = require("@mui/material/styles");
|
|
8
|
+
const system_1 = require("@mui/system");
|
|
9
|
+
const api_services_1 = require("@selfcommunity/api-services");
|
|
10
|
+
const react_core_1 = require("@selfcommunity/react-core");
|
|
11
|
+
const utils_1 = require("@selfcommunity/utils");
|
|
12
|
+
const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
13
|
+
const react_1 = require("react");
|
|
14
|
+
const react_intl_1 = require("react-intl");
|
|
15
|
+
const Errors_1 = require("../../constants/Errors");
|
|
16
|
+
const LiveStream_1 = require("../../constants/LiveStream");
|
|
17
|
+
const constants_1 = require("./constants");
|
|
18
|
+
const classes = {
|
|
19
|
+
root: `${constants_1.PREFIX}-root`,
|
|
20
|
+
form: `${constants_1.PREFIX}-form`,
|
|
21
|
+
title: `${constants_1.PREFIX}-title`,
|
|
22
|
+
slug: `${constants_1.PREFIX}-slug`,
|
|
23
|
+
description: `${constants_1.PREFIX}-description`,
|
|
24
|
+
content: `${constants_1.PREFIX}-content`,
|
|
25
|
+
actions: `${constants_1.PREFIX}-actions`,
|
|
26
|
+
error: `${constants_1.PREFIX}-error`
|
|
27
|
+
};
|
|
28
|
+
const Root = (0, styles_1.styled)(material_1.Box, {
|
|
29
|
+
name: constants_1.PREFIX,
|
|
30
|
+
slot: 'Root'
|
|
31
|
+
})(({ theme }) => ({}));
|
|
32
|
+
const messages = (0, react_intl_1.defineMessages)({
|
|
33
|
+
title: {
|
|
34
|
+
id: 'ui.liveStreamForm.title.placeholder',
|
|
35
|
+
defaultMessage: 'ui.liveStreamForm.title.placeholder'
|
|
36
|
+
},
|
|
37
|
+
slug: {
|
|
38
|
+
id: 'ui.liveStreamForm.slug.placeholder',
|
|
39
|
+
defaultMessage: 'ui.liveStreamForm.slug.placeholder'
|
|
40
|
+
},
|
|
41
|
+
description: {
|
|
42
|
+
id: 'ui.liveStreamForm.description.placeholder',
|
|
43
|
+
defaultMessage: 'ui.liveStreamForm.description.placeholder'
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
/**
|
|
47
|
+
*> API documentation for the Community-JS LiveStreamForm component. Learn about the available props and the CSS API.
|
|
48
|
+
*
|
|
49
|
+
#### Import
|
|
50
|
+
```jsx
|
|
51
|
+
import {LiveStreamForm} from '@selfcommunity/react-ui';
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
#### Component Name
|
|
55
|
+
The name `LiveStreamForm` can be used when providing style overrides in the theme.
|
|
56
|
+
|
|
57
|
+
#### CSS
|
|
58
|
+
|
|
59
|
+
|Rule Name|Global class|Description|
|
|
60
|
+
|---|---|---|
|
|
61
|
+
|root|.SCLiveStreamForm-root|Styles applied to the root element.|
|
|
62
|
+
|title|.SCLiveStreamForm-title|Styles applied to the title element.|
|
|
63
|
+
|cover|.SCLiveStreamForm-cover|Styles applied to the cover field.|
|
|
64
|
+
|form|.SCLiveStreamForm-form|Styles applied to the form element.|
|
|
65
|
+
|name|.SCLiveStreamForm-name|Styles applied to the name field.|
|
|
66
|
+
|description|.SCLiveStreamForm-description|Styles applied to the description field.|
|
|
67
|
+
|content|.SCLiveStreamForm-content|Styles applied to the element.|
|
|
68
|
+
|error|.SCLiveStreamForm-error|Styles applied to the error elements.|
|
|
69
|
+
|
|
70
|
+
* @param inProps
|
|
71
|
+
*/
|
|
72
|
+
function LiveStreamForm(inProps) {
|
|
73
|
+
var _a, _b, _c;
|
|
74
|
+
//PROPS
|
|
75
|
+
const props = (0, system_1.useThemeProps)({
|
|
76
|
+
props: inProps,
|
|
77
|
+
name: constants_1.PREFIX
|
|
78
|
+
});
|
|
79
|
+
const { className, onSuccess, onError, liveStream = null } = props, rest = tslib_1.__rest(props, ["className", "onSuccess", "onError", "liveStream"]);
|
|
80
|
+
// CONTEXT
|
|
81
|
+
const scContext = (0, react_core_1.useSCContext)();
|
|
82
|
+
// INTL
|
|
83
|
+
const intl = (0, react_intl_1.useIntl)();
|
|
84
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
85
|
+
// @ts-ignore
|
|
86
|
+
const initialFieldState = {
|
|
87
|
+
title: (liveStream === null || liveStream === void 0 ? void 0 : liveStream.title) || '',
|
|
88
|
+
description: (liveStream === null || liveStream === void 0 ? void 0 : liveStream.description) || '',
|
|
89
|
+
slug: (liveStream === null || liveStream === void 0 ? void 0 : liveStream.slug) || '',
|
|
90
|
+
cover: (liveStream === null || liveStream === void 0 ? void 0 : liveStream.cover) || '',
|
|
91
|
+
isSubmitting: false
|
|
92
|
+
};
|
|
93
|
+
// STATE
|
|
94
|
+
const [field, setField] = (0, react_1.useState)(initialFieldState);
|
|
95
|
+
const [error, setError] = (0, react_1.useState)({});
|
|
96
|
+
// PREFERENCES
|
|
97
|
+
const scPreferences = (0, react_core_1.useSCPreferences)();
|
|
98
|
+
const privateEnabled = (0, react_1.useMemo)(() => scPreferences.preferences[react_core_1.SCPreferences.CONFIGURATIONS_EVENTS_PRIVATE_ENABLED].value, [scPreferences.preferences]);
|
|
99
|
+
const visibilityEnabled = (0, react_1.useMemo)(() => scPreferences.preferences[react_core_1.SCPreferences.CONFIGURATIONS_EVENTS_VISIBILITY_ENABLED].value, [scPreferences.preferences]);
|
|
100
|
+
const handleSubmit = (0, react_1.useCallback)(() => {
|
|
101
|
+
setField((prev) => (Object.assign(Object.assign({}, prev), { ['isSubmitting']: true })));
|
|
102
|
+
const formData = new FormData();
|
|
103
|
+
if (visibilityEnabled) {
|
|
104
|
+
formData.append('visible', 'true');
|
|
105
|
+
}
|
|
106
|
+
formData.append('description', field.description);
|
|
107
|
+
let eventService;
|
|
108
|
+
if (liveStream) {
|
|
109
|
+
eventService = api_services_1.EventService.updateEvent(liveStream.id, formData, { headers: { 'Content-Type': 'multipart/form-data' } });
|
|
110
|
+
}
|
|
111
|
+
else {
|
|
112
|
+
eventService = api_services_1.EventService.createEvent(formData, { headers: { 'Content-Type': 'multipart/form-data' } });
|
|
113
|
+
}
|
|
114
|
+
eventService
|
|
115
|
+
.then((data) => {
|
|
116
|
+
setField((prev) => (Object.assign(Object.assign({}, prev), { ['isSubmitting']: false })));
|
|
117
|
+
// onSuccess?.(data);
|
|
118
|
+
})
|
|
119
|
+
.catch((e) => {
|
|
120
|
+
const _error = (0, api_services_1.formatHttpErrorCode)(e);
|
|
121
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore,@typescript-eslint/ban-ts-comment
|
|
122
|
+
// @ts-ignore
|
|
123
|
+
if (Object.values(_error)[0].error === 'unique') {
|
|
124
|
+
setError(Object.assign(Object.assign({}, error), { ['titleError']: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.liveStreamForm.title.error.unique", defaultMessage: "ui.liveStreamForm.title.error.unique" }) }));
|
|
125
|
+
}
|
|
126
|
+
else {
|
|
127
|
+
setError(Object.assign(Object.assign({}, error), _error));
|
|
128
|
+
}
|
|
129
|
+
setField((prev) => (Object.assign(Object.assign({}, prev), { ['isSubmitting']: false })));
|
|
130
|
+
utils_1.Logger.error(Errors_1.SCOPE_SC_UI, e);
|
|
131
|
+
onError === null || onError === void 0 ? void 0 : onError(e);
|
|
132
|
+
});
|
|
133
|
+
}, [field, privateEnabled, visibilityEnabled, onSuccess, onError]);
|
|
134
|
+
const handleChange = (0, react_1.useCallback)((event) => {
|
|
135
|
+
const { name, value } = event.target;
|
|
136
|
+
setField((prev) => (Object.assign(Object.assign({}, prev), { [name]: value })));
|
|
137
|
+
if (error[`${name}Error`]) {
|
|
138
|
+
delete error[`${name}Error`];
|
|
139
|
+
setError(error);
|
|
140
|
+
}
|
|
141
|
+
}, [error]);
|
|
142
|
+
/**
|
|
143
|
+
* Renders root object
|
|
144
|
+
*/
|
|
145
|
+
return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, rest, { children: (0, jsx_runtime_1.jsxs)(material_1.FormGroup, { className: classes.form, children: [(0, jsx_runtime_1.jsx)(material_1.TextField, { required: true, className: classes.title, placeholder: `${intl.formatMessage(messages.title)}`, margin: "normal", value: field.title, name: "title", onChange: handleChange, InputProps: {
|
|
146
|
+
endAdornment: (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "body2", children: LiveStream_1.LIVE_STREAM_TITLE_MAX_LENGTH - field.title.length })
|
|
147
|
+
}, error: Boolean(field.title.length > LiveStream_1.LIVE_STREAM_TITLE_MAX_LENGTH) || Boolean(error['titleError']), helperText: field.title.length > LiveStream_1.LIVE_STREAM_TITLE_MAX_LENGTH ? ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.liveStreamForm.title.error.maxLength", defaultMessage: "ui.liveStreamForm.title.error.maxLength" })) : error['titleError'] ? (error['titleError']) : null }), (0, jsx_runtime_1.jsx)(material_1.TextField, { required: true, className: classes.slug, placeholder: `${intl.formatMessage(messages.slug)}`, margin: "normal", value: field.slug, name: "slug", onChange: handleChange, InputProps: {
|
|
148
|
+
endAdornment: (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "body2", children: LiveStream_1.LIVE_STREAM_SLUG_MAX_LENGTH - field.title.length })
|
|
149
|
+
}, error: Boolean(field.slug.length > LiveStream_1.LIVE_STREAM_SLUG_MAX_LENGTH) || Boolean(error['nameError']), helperText: field.title.length > LiveStream_1.LIVE_STREAM_SLUG_MAX_LENGTH ? ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.liveStreamForm.slug.error.maxLength", defaultMessage: "ui.liveStreamForm.slug.error.maxLength" })) : error['nameError'] ? (error['nameError']) : null }), (0, jsx_runtime_1.jsx)(material_1.TextField, { multiline: true, rows: 4, className: classes.description, placeholder: `${intl.formatMessage(messages.description)}`, margin: "normal", value: field.description, name: "description", onChange: handleChange, InputProps: {
|
|
150
|
+
endAdornment: ((0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "body2", children: ((_a = field.description) === null || _a === void 0 ? void 0 : _a.length) ? LiveStream_1.LIVE_STREAM_DESCRIPTION_MAX_LENGTH - field.description.length : LiveStream_1.LIVE_STREAM_DESCRIPTION_MAX_LENGTH }))
|
|
151
|
+
}, error: Boolean(((_b = field.description) === null || _b === void 0 ? void 0 : _b.length) > LiveStream_1.LIVE_STREAM_DESCRIPTION_MAX_LENGTH), helperText: ((_c = field.description) === null || _c === void 0 ? void 0 : _c.length) > LiveStream_1.LIVE_STREAM_DESCRIPTION_MAX_LENGTH ? ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.liveStreamForm.description.error.maxLength", defaultMessage: "ui.liveStreamForm.description.error.maxLength" })) : null }), (0, jsx_runtime_1.jsx)(material_1.Box, { className: classes.actions, children: (0, jsx_runtime_1.jsx)(lab_1.LoadingButton, { loading: field.isSubmitting, disabled: !field.title ||
|
|
152
|
+
Object.keys(error).length !== 0 ||
|
|
153
|
+
field.title.length > LiveStream_1.LIVE_STREAM_TITLE_MAX_LENGTH ||
|
|
154
|
+
field.description.length > LiveStream_1.LIVE_STREAM_DESCRIPTION_MAX_LENGTH, variant: "contained", onClick: handleSubmit, color: "secondary", children: liveStream ? ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.liveStreamForm.button.edit", defaultMessage: "ui.liveStreamForm.button.edit" })) : ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.liveStreamForm.button.create", defaultMessage: "ui.liveStreamForm.button.create" })) }) })] }) })));
|
|
155
|
+
}
|
|
156
|
+
exports.default = LiveStreamForm;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PREFIX = "SCLiveStreamForm";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type InitialFieldState = Geolocation & {
|
|
2
|
+
title: string;
|
|
3
|
+
description: string;
|
|
4
|
+
slug?: string;
|
|
5
|
+
settings?: Record<string, any>;
|
|
6
|
+
cover?: string;
|
|
7
|
+
isSubmitting: boolean;
|
|
8
|
+
};
|
|
9
|
+
export type FieldStateKeys = keyof InitialFieldState;
|
|
10
|
+
export type FieldStateValues = InitialFieldState[FieldStateKeys];
|