@selfcommunity/react-ui 0.10.5-alpha.1 → 0.10.5-alpha.10
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/assets/deafultCover.d.ts +2 -0
- package/lib/cjs/assets/deafultCover.js +3 -0
- package/lib/cjs/assets/liveStream/event.d.ts +2 -0
- package/lib/cjs/assets/liveStream/event.js +3 -0
- package/lib/cjs/assets/liveStream/live.d.ts +2 -0
- package/lib/cjs/assets/liveStream/live.js +3 -0
- package/lib/cjs/components/BottomNavigation/BottomNavigation.d.ts +1 -1
- package/lib/cjs/components/CreateLiveStreamButton/CreateLiveStreamButton.d.ts +44 -0
- package/lib/cjs/components/CreateLiveStreamButton/CreateLiveStreamButton.js +92 -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 +49 -0
- package/lib/cjs/components/CreateLiveStreamDialog/CreateLiveStreamDialog.js +103 -0
- package/lib/cjs/components/CreateLiveStreamDialog/LiveStreamSelector/LiveStreamSelector.d.ts +47 -0
- package/lib/cjs/components/CreateLiveStreamDialog/LiveStreamSelector/LiveStreamSelector.js +188 -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/Editor/Editor.d.ts +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 +6 -6
- 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/AutoLinkPlugin.js +8 -2
- package/lib/cjs/components/Editor/plugins/MentionsPlugin.d.ts +2 -2
- package/lib/cjs/components/Editor/shared/useDecorators.d.ts +2 -2
- package/lib/cjs/components/EventForm/EventAddress.d.ts +4 -2
- package/lib/cjs/components/EventForm/EventAddress.js +55 -8
- package/lib/cjs/components/EventForm/EventForm.d.ts +12 -1
- package/lib/cjs/components/EventForm/EventForm.js +54 -14
- package/lib/cjs/components/EventForm/types.d.ts +7 -6
- package/lib/cjs/components/EventFormDialog/EventFormDialog.d.ts +1 -1
- package/lib/cjs/components/EventFormDialog/EventFormDialog.js +3 -3
- package/lib/cjs/components/EventInfoWidget/EventInfoWidget.js +1 -1
- package/lib/cjs/components/EventMediaWidget/EventMediaWidget.js +2 -2
- package/lib/cjs/components/EventMediaWidget/asUploadButton.d.ts +1 -1
- package/lib/cjs/components/EventMembersWidget/TabContentComponent.js +1 -1
- package/lib/cjs/components/EventMembersWidget/types.d.ts +1 -1
- package/lib/cjs/components/EventParticipantsButton/EventParticipantsButton.js +1 -1
- package/lib/cjs/components/Feed/Feed.d.ts +2 -2
- package/lib/cjs/components/Feed/Skeleton.d.ts +1 -1
- package/lib/cjs/components/FeedObject/Activities/Activities.js +1 -1
- package/lib/cjs/components/LiveStream/LiveStream.d.ts +79 -0
- package/lib/cjs/components/LiveStream/LiveStream.js +143 -0
- package/lib/cjs/components/LiveStream/Skeleton.d.ts +46 -0
- package/lib/cjs/components/LiveStream/Skeleton.js +92 -0
- package/lib/cjs/components/LiveStream/constants.d.ts +1 -0
- package/lib/cjs/components/LiveStream/constants.js +4 -0
- package/lib/cjs/components/LiveStream/index.d.ts +4 -0
- package/lib/cjs/components/LiveStream/index.js +8 -0
- package/lib/cjs/components/LiveStreamForm/LiveStreamForm.d.ts +55 -0
- package/lib/cjs/components/LiveStreamForm/LiveStreamForm.js +192 -0
- package/lib/cjs/components/LiveStreamForm/LiveStreamFormSettings.d.ts +47 -0
- package/lib/cjs/components/LiveStreamForm/LiveStreamFormSettings.js +80 -0
- package/lib/cjs/components/LiveStreamForm/constants.d.ts +15 -0
- package/lib/cjs/components/LiveStreamForm/constants.js +18 -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 +11 -0
- package/lib/cjs/components/LiveStreamForm/types.js +2 -0
- package/lib/cjs/components/LiveStreamRoom/LiveStreamRoom.d.ts +85 -0
- package/lib/cjs/components/LiveStreamRoom/LiveStreamRoom.js +199 -0
- package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/ControlBar.d.ts +29 -0
- package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/ControlBar.js +62 -0
- package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/DisconnectButton.d.ts +10 -0
- package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/DisconnectButton.js +76 -0
- package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/FocusLayout.d.ts +21 -0
- package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/FocusLayout.js +33 -0
- package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/LiveStreamProvider.d.ts +17 -0
- package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/LiveStreamProvider.js +13 -0
- package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/LiveStreamVideoConference.d.ts +77 -0
- package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/LiveStreamVideoConference.js +137 -0
- package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/ParticipantPlaceholder.d.ts +6 -0
- package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/ParticipantPlaceholder.js +8 -0
- package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/ParticipantTile.d.ts +28 -0
- package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/ParticipantTile.js +65 -0
- package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/ParticipantTileActions.d.ts +30 -0
- package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/ParticipantTileActions.js +215 -0
- package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/ParticipantTileAvatar.d.ts +15 -0
- package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/ParticipantTileAvatar.js +39 -0
- package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/PreJoin.d.ts +55 -0
- package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/PreJoin.js +251 -0
- package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/RecordingIndicator.d.ts +5 -0
- package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/RecordingIndicator.js +32 -0
- package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/SettingsMenuToggle.d.ts +19 -0
- package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/SettingsMenuToggle.js +35 -0
- package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/TrackToggle.d.ts +23 -0
- package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/TrackToggle.js +31 -0
- package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/VideoConference.d.ts +26 -0
- package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/VideoConference.js +151 -0
- package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/constants.d.ts +3 -0
- package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/constants.js +6 -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/LiveStreamVideoConference/useLiveStreamCheck.d.ts +7 -0
- package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/useLiveStreamCheck.js +195 -0
- package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/utils.d.ts +27 -0
- package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/utils.js +82 -0
- package/lib/cjs/components/LiveStreamRoom/constants.d.ts +21 -0
- package/lib/cjs/components/LiveStreamRoom/constants.js +24 -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/NavigationMenuIconButton/DefaultDrawerSkeleton.d.ts +1 -1
- package/lib/cjs/components/NavigationMenuIconButton/DefaultHeaderContent.d.ts +1 -1
- package/lib/cjs/components/NavigationMenuIconButton/NavigationMenuDrawer.d.ts +16 -0
- package/lib/cjs/components/NavigationMenuIconButton/NavigationMenuDrawer.js +12 -3
- package/lib/cjs/components/Notification/LiveStream/LiveStream.d.ts +15 -0
- package/lib/cjs/components/Notification/LiveStream/LiveStream.js +75 -0
- package/lib/cjs/components/Notification/LiveStream/index.d.ts +3 -0
- package/lib/cjs/components/Notification/LiveStream/index.js +5 -0
- package/lib/cjs/components/Notification/Notification.js +5 -1
- package/lib/cjs/components/OnBoardingWidget/OnBoardingWidget.js +5 -5
- package/lib/cjs/components/PlatformWidget/constants.d.ts +4 -0
- package/lib/cjs/components/PlatformWidget/constants.js +5 -1
- package/lib/cjs/components/PrivateMessageComponent/Skeleton.d.ts +1 -1
- package/lib/cjs/components/RelatedEventsWidget/RelatedEventsWidget.js +1 -1
- package/lib/cjs/components/SnippetNotifications/SnippetNotifications.js +4 -0
- package/lib/cjs/components/ToastNotifications/ToastNotifications.js +6 -2
- package/lib/cjs/components/UserLiveStreamWidget/Skeleton.d.ts +2 -0
- package/lib/cjs/components/UserLiveStreamWidget/Skeleton.js +28 -0
- package/lib/cjs/components/UserLiveStreamWidget/UserLiveStreamWidget.d.ts +47 -0
- package/lib/cjs/components/UserLiveStreamWidget/UserLiveStreamWidget.js +133 -0
- package/lib/cjs/components/UserLiveStreamWidget/constants.d.ts +1 -0
- package/lib/cjs/components/UserLiveStreamWidget/constants.js +4 -0
- package/lib/cjs/components/UserLiveStreamWidget/index.d.ts +4 -0
- package/lib/cjs/components/UserLiveStreamWidget/index.js +8 -0
- package/lib/cjs/constants/LiveStream.d.ts +3 -0
- package/lib/cjs/constants/LiveStream.js +6 -0
- package/lib/cjs/index.d.ts +12 -1
- package/lib/cjs/index.js +33 -6
- package/lib/cjs/shared/CopyTextArea/index.d.ts +2 -2
- package/lib/cjs/shared/CopyTextArea/index.js +8 -2
- package/lib/cjs/shared/EventInfoDetails/index.js +17 -1
- package/lib/cjs/shared/InfiniteScroll/index.d.ts +1 -1
- package/lib/cjs/shared/LiveStreamInfoDetails/index.d.ts +17 -0
- package/lib/cjs/shared/LiveStreamInfoDetails/index.js +53 -0
- package/lib/cjs/shared/Media/File/PreviewComponent.js +3 -4
- package/lib/cjs/shared/Media/File/asUploadButton.d.ts +1 -1
- package/lib/cjs/shared/Media/Link/DisplayComponent.js +1 -4
- package/lib/cjs/shared/Media/Link/UrlTextField/index.d.ts +1 -1
- package/lib/cjs/shared/MetadataField/MetadataField.d.ts +1 -1
- package/lib/cjs/shared/StickyBox/index.d.ts +4 -4
- package/lib/cjs/shared/UpScalingTierBadge/UpScalingTierBadge.d.ts +5 -0
- package/lib/cjs/shared/UpScalingTierBadge/UpScalingTierBadge.js +14 -0
- package/lib/cjs/shared/UpScalingTierBadge/index.d.ts +7 -0
- package/lib/cjs/shared/UpScalingTierBadge/index.js +63 -0
- package/lib/cjs/shared/UsernameTextField/index.d.ts +1 -1
- package/lib/cjs/types/composer.d.ts +1 -1
- package/lib/cjs/types/liveStream.d.ts +5 -0
- package/lib/cjs/types/liveStream.js +9 -0
- package/lib/cjs/utils/liveStream.d.ts +4 -0
- package/lib/cjs/utils/liveStream.js +25 -0
- package/lib/esm/assets/deafultCover.d.ts +2 -0
- package/lib/esm/assets/deafultCover.js +1 -0
- package/lib/esm/assets/liveStream/event.d.ts +2 -0
- package/lib/esm/assets/liveStream/event.js +1 -0
- package/lib/esm/assets/liveStream/live.d.ts +2 -0
- package/lib/esm/assets/liveStream/live.js +1 -0
- package/lib/esm/components/BottomNavigation/BottomNavigation.d.ts +1 -1
- package/lib/esm/components/CreateLiveStreamButton/CreateLiveStreamButton.d.ts +44 -0
- package/lib/esm/components/CreateLiveStreamButton/CreateLiveStreamButton.js +89 -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 +49 -0
- package/lib/esm/components/CreateLiveStreamDialog/CreateLiveStreamDialog.js +100 -0
- package/lib/esm/components/CreateLiveStreamDialog/LiveStreamSelector/LiveStreamSelector.d.ts +47 -0
- package/lib/esm/components/CreateLiveStreamDialog/LiveStreamSelector/LiveStreamSelector.js +183 -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/Editor/Editor.d.ts +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 +6 -6
- 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/AutoLinkPlugin.js +8 -2
- package/lib/esm/components/Editor/plugins/MentionsPlugin.d.ts +2 -2
- package/lib/esm/components/Editor/shared/useDecorators.d.ts +2 -2
- package/lib/esm/components/EventForm/EventAddress.d.ts +4 -2
- package/lib/esm/components/EventForm/EventAddress.js +55 -8
- package/lib/esm/components/EventForm/EventForm.d.ts +12 -1
- package/lib/esm/components/EventForm/EventForm.js +55 -15
- package/lib/esm/components/EventForm/types.d.ts +7 -6
- package/lib/esm/components/EventFormDialog/EventFormDialog.d.ts +1 -1
- package/lib/esm/components/EventFormDialog/EventFormDialog.js +3 -3
- package/lib/esm/components/EventInfoWidget/EventInfoWidget.js +1 -1
- package/lib/esm/components/EventMediaWidget/EventMediaWidget.js +2 -2
- package/lib/esm/components/EventMediaWidget/asUploadButton.d.ts +1 -1
- package/lib/esm/components/EventMembersWidget/TabContentComponent.js +1 -1
- package/lib/esm/components/EventMembersWidget/types.d.ts +1 -1
- package/lib/esm/components/EventParticipantsButton/EventParticipantsButton.js +1 -1
- package/lib/esm/components/Feed/Feed.d.ts +2 -2
- package/lib/esm/components/Feed/Skeleton.d.ts +1 -1
- package/lib/esm/components/FeedObject/Activities/Activities.js +1 -1
- package/lib/esm/components/LiveStream/LiveStream.d.ts +79 -0
- package/lib/esm/components/LiveStream/LiveStream.js +140 -0
- package/lib/esm/components/LiveStream/Skeleton.d.ts +46 -0
- package/lib/esm/components/LiveStream/Skeleton.js +89 -0
- package/lib/esm/components/LiveStream/constants.d.ts +1 -0
- package/lib/esm/components/LiveStream/constants.js +1 -0
- package/lib/esm/components/LiveStream/index.d.ts +4 -0
- package/lib/esm/components/LiveStream/index.js +4 -0
- package/lib/esm/components/LiveStreamForm/LiveStreamForm.d.ts +55 -0
- package/lib/esm/components/LiveStreamForm/LiveStreamForm.js +189 -0
- package/lib/esm/components/LiveStreamForm/LiveStreamFormSettings.d.ts +47 -0
- package/lib/esm/components/LiveStreamForm/LiveStreamFormSettings.js +76 -0
- package/lib/esm/components/LiveStreamForm/constants.d.ts +15 -0
- package/lib/esm/components/LiveStreamForm/constants.js +15 -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 +11 -0
- package/lib/esm/components/LiveStreamForm/types.js +1 -0
- package/lib/esm/components/LiveStreamRoom/LiveStreamRoom.d.ts +85 -0
- package/lib/esm/components/LiveStreamRoom/LiveStreamRoom.js +196 -0
- package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/ControlBar.d.ts +29 -0
- package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/ControlBar.js +58 -0
- package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/DisconnectButton.d.ts +10 -0
- package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/DisconnectButton.js +73 -0
- package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/FocusLayout.d.ts +21 -0
- package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/FocusLayout.js +27 -0
- package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/LiveStreamProvider.d.ts +17 -0
- package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/LiveStreamProvider.js +9 -0
- package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/LiveStreamVideoConference.d.ts +77 -0
- package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/LiveStreamVideoConference.js +134 -0
- package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/ParticipantPlaceholder.d.ts +6 -0
- package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/ParticipantPlaceholder.js +6 -0
- package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/ParticipantTile.d.ts +28 -0
- package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/ParticipantTile.js +60 -0
- package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/ParticipantTileActions.d.ts +30 -0
- package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/ParticipantTileActions.js +212 -0
- package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/ParticipantTileAvatar.d.ts +15 -0
- package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/ParticipantTileAvatar.js +36 -0
- package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/PreJoin.d.ts +55 -0
- package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/PreJoin.js +245 -0
- package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/RecordingIndicator.d.ts +5 -0
- package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/RecordingIndicator.js +29 -0
- package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/SettingsMenuToggle.d.ts +19 -0
- package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/SettingsMenuToggle.js +30 -0
- package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/TrackToggle.d.ts +23 -0
- package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/TrackToggle.js +27 -0
- package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/VideoConference.d.ts +26 -0
- package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/VideoConference.js +147 -0
- package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/constants.d.ts +3 -0
- package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/constants.js +3 -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/LiveStreamVideoConference/useLiveStreamCheck.d.ts +7 -0
- package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/useLiveStreamCheck.js +191 -0
- package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/utils.d.ts +27 -0
- package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/utils.js +74 -0
- package/lib/esm/components/LiveStreamRoom/constants.d.ts +21 -0
- package/lib/esm/components/LiveStreamRoom/constants.js +21 -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/NavigationMenuIconButton/DefaultDrawerSkeleton.d.ts +1 -1
- package/lib/esm/components/NavigationMenuIconButton/DefaultHeaderContent.d.ts +1 -1
- package/lib/esm/components/NavigationMenuIconButton/NavigationMenuDrawer.d.ts +16 -0
- package/lib/esm/components/NavigationMenuIconButton/NavigationMenuDrawer.js +12 -3
- package/lib/esm/components/Notification/LiveStream/LiveStream.d.ts +15 -0
- package/lib/esm/components/Notification/LiveStream/LiveStream.js +72 -0
- package/lib/esm/components/Notification/LiveStream/index.d.ts +3 -0
- package/lib/esm/components/Notification/LiveStream/index.js +2 -0
- package/lib/esm/components/Notification/Notification.js +5 -1
- package/lib/esm/components/OnBoardingWidget/OnBoardingWidget.js +5 -5
- package/lib/esm/components/PlatformWidget/constants.d.ts +4 -0
- package/lib/esm/components/PlatformWidget/constants.js +4 -0
- package/lib/esm/components/PrivateMessageComponent/Skeleton.d.ts +1 -1
- package/lib/esm/components/RelatedEventsWidget/RelatedEventsWidget.js +1 -1
- package/lib/esm/components/SnippetNotifications/SnippetNotifications.js +4 -0
- package/lib/esm/components/ToastNotifications/ToastNotifications.js +6 -2
- package/lib/esm/components/UserLiveStreamWidget/Skeleton.d.ts +2 -0
- package/lib/esm/components/UserLiveStreamWidget/Skeleton.js +24 -0
- package/lib/esm/components/UserLiveStreamWidget/UserLiveStreamWidget.d.ts +47 -0
- package/lib/esm/components/UserLiveStreamWidget/UserLiveStreamWidget.js +130 -0
- package/lib/esm/components/UserLiveStreamWidget/constants.d.ts +1 -0
- package/lib/esm/components/UserLiveStreamWidget/constants.js +1 -0
- package/lib/esm/components/UserLiveStreamWidget/index.d.ts +4 -0
- package/lib/esm/components/UserLiveStreamWidget/index.js +4 -0
- package/lib/esm/constants/LiveStream.d.ts +3 -0
- package/lib/esm/constants/LiveStream.js +3 -0
- package/lib/esm/index.d.ts +12 -1
- package/lib/esm/index.js +13 -2
- package/lib/esm/shared/CopyTextArea/index.d.ts +2 -2
- package/lib/esm/shared/CopyTextArea/index.js +8 -2
- package/lib/esm/shared/EventInfoDetails/index.js +21 -5
- package/lib/esm/shared/InfiniteScroll/index.d.ts +1 -1
- package/lib/esm/shared/LiveStreamInfoDetails/index.d.ts +17 -0
- package/lib/esm/shared/LiveStreamInfoDetails/index.js +50 -0
- package/lib/esm/shared/Media/File/PreviewComponent.js +3 -4
- package/lib/esm/shared/Media/File/asUploadButton.d.ts +1 -1
- package/lib/esm/shared/Media/Link/DisplayComponent.js +1 -4
- package/lib/esm/shared/Media/Link/UrlTextField/index.d.ts +1 -1
- package/lib/esm/shared/MetadataField/MetadataField.d.ts +1 -1
- package/lib/esm/shared/StickyBox/index.d.ts +4 -4
- package/lib/esm/shared/UpScalingTierBadge/UpScalingTierBadge.d.ts +5 -0
- package/lib/esm/shared/UpScalingTierBadge/UpScalingTierBadge.js +10 -0
- package/lib/esm/shared/UpScalingTierBadge/index.d.ts +7 -0
- package/lib/esm/shared/UpScalingTierBadge/index.js +60 -0
- package/lib/esm/shared/UsernameTextField/index.d.ts +1 -1
- package/lib/esm/types/composer.d.ts +1 -1
- package/lib/esm/types/liveStream.d.ts +5 -0
- package/lib/esm/types/liveStream.js +6 -0
- package/lib/esm/utils/liveStream.d.ts +4 -0
- package/lib/esm/utils/liveStream.js +18 -0
- package/lib/umd/653.js +2 -0
- package/lib/umd/react-ui.js +1 -19
- package/lib/umd/react-ui.js.LICENSE.txt +2 -0
- package/package.json +22 -8
- package/lib/umd/314.js +0 -2
- /package/lib/umd/{314.js.LICENSE.txt → 653.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1,103 @@
|
|
|
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 react_1 = tslib_1.__importStar(require("react"));
|
|
6
|
+
const styles_1 = require("@mui/material/styles");
|
|
7
|
+
const system_1 = require("@mui/system");
|
|
8
|
+
const react_core_1 = require("@selfcommunity/react-core");
|
|
9
|
+
const types_1 = require("@selfcommunity/types");
|
|
10
|
+
const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
11
|
+
const react_intl_1 = require("react-intl");
|
|
12
|
+
const BaseDialog_1 = tslib_1.__importDefault(require("../../shared/BaseDialog"));
|
|
13
|
+
const constants_1 = require("./constants");
|
|
14
|
+
const EventForm_1 = tslib_1.__importDefault(require("../EventForm"));
|
|
15
|
+
const LiveStreamSelector_1 = tslib_1.__importDefault(require("./LiveStreamSelector/LiveStreamSelector"));
|
|
16
|
+
const types_2 = require("./types");
|
|
17
|
+
const LiveStreamForm_1 = tslib_1.__importDefault(require("../LiveStreamForm"));
|
|
18
|
+
const Slide_1 = tslib_1.__importDefault(require("@mui/material/Slide"));
|
|
19
|
+
const material_1 = require("@mui/material");
|
|
20
|
+
const classes = {
|
|
21
|
+
root: `${constants_1.PREFIX}-root`,
|
|
22
|
+
title: `${constants_1.PREFIX}-title`,
|
|
23
|
+
content: `${constants_1.PREFIX}-content`
|
|
24
|
+
};
|
|
25
|
+
const Root = (0, styles_1.styled)(BaseDialog_1.default, {
|
|
26
|
+
name: constants_1.PREFIX,
|
|
27
|
+
slot: 'Root'
|
|
28
|
+
})(({ theme }) => ({
|
|
29
|
+
paddingBottom: '0px !important',
|
|
30
|
+
[`& .${classes.title}`]: {
|
|
31
|
+
display: 'flex'
|
|
32
|
+
},
|
|
33
|
+
[`& .${classes.content}`]: {
|
|
34
|
+
paddingBottom: 0
|
|
35
|
+
}
|
|
36
|
+
}));
|
|
37
|
+
const Transition = react_1.default.forwardRef(function Transition(props, ref) {
|
|
38
|
+
return (0, jsx_runtime_1.jsx)(Slide_1.default, Object.assign({ direction: "up", ref: ref }, props));
|
|
39
|
+
});
|
|
40
|
+
/**
|
|
41
|
+
*> API documentation for the Community-JS CreateLiveStreamDialog component. Learn about the available props and the CSS API.
|
|
42
|
+
*
|
|
43
|
+
#### Import
|
|
44
|
+
```jsx
|
|
45
|
+
import {CreateLivestreamDialog} from '@selfcommunity/react-ui';
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
#### Component Name
|
|
49
|
+
The name `SCCreateLivestreamDialog` can be used when providing style overrides in the theme.
|
|
50
|
+
|
|
51
|
+
#### CSS
|
|
52
|
+
|
|
53
|
+
|Rule Name|Global class|Description|
|
|
54
|
+
|---|---|---|
|
|
55
|
+
|root|.SCCreateLivestreamDialog-root|Styles applied to the root element.|
|
|
56
|
+
|content|.SCCreateLivestreamDialog-content|Styles applied to the content element.|
|
|
57
|
+
|
|
58
|
+
* @param inProps
|
|
59
|
+
*/
|
|
60
|
+
function CreateLiveStreamDialog(inProps) {
|
|
61
|
+
var _a, _b;
|
|
62
|
+
//PROPS
|
|
63
|
+
const props = (0, system_1.useThemeProps)({
|
|
64
|
+
props: inProps,
|
|
65
|
+
name: constants_1.PREFIX
|
|
66
|
+
});
|
|
67
|
+
const { className, open = true, onClose, onSuccess } = props, rest = tslib_1.__rest(props, ["className", "open", "onClose", "onSuccess"]);
|
|
68
|
+
// CONTEXT
|
|
69
|
+
const scUserContext = (0, react_core_1.useSCUser)();
|
|
70
|
+
const canCreateLiveStream = (0, react_1.useMemo)(() => { var _a, _b; return (_b = (_a = scUserContext === null || scUserContext === void 0 ? void 0 : scUserContext.user) === null || _a === void 0 ? void 0 : _a.permission) === null || _b === void 0 ? void 0 : _b.create_live_stream; }, [(_a = scUserContext === null || scUserContext === void 0 ? void 0 : scUserContext.user) === null || _a === void 0 ? void 0 : _a.permission]);
|
|
71
|
+
const canCreateEvent = (0, react_1.useMemo)(() => { var _a, _b; return (_b = (_a = scUserContext === null || scUserContext === void 0 ? void 0 : scUserContext.user) === null || _a === void 0 ? void 0 : _a.permission) === null || _b === void 0 ? void 0 : _b.create_event; }, [(_b = scUserContext === null || scUserContext === void 0 ? void 0 : scUserContext.user) === null || _b === void 0 ? void 0 : _b.permission]);
|
|
72
|
+
// STATE
|
|
73
|
+
const [step, setStep] = (0, react_1.useState)(canCreateEvent ? types_2.CreateLiveStreamStep.SELECT_TYPE : types_2.CreateLiveStreamStep.CREATE_LIVE);
|
|
74
|
+
const [liveType, setLiveType] = (0, react_1.useState)(canCreateEvent ? null : types_2.LiveStreamType.DIRECT_LIVE);
|
|
75
|
+
// HANDLER
|
|
76
|
+
const handleLiveTypeSelected = (0, react_1.useCallback)((l) => {
|
|
77
|
+
setLiveType(l);
|
|
78
|
+
}, []);
|
|
79
|
+
const handleLiveTypeSelectedNext = (0, react_1.useCallback)((l) => {
|
|
80
|
+
setLiveType(l);
|
|
81
|
+
setStep(types_2.CreateLiveStreamStep.CREATE_LIVE);
|
|
82
|
+
}, []);
|
|
83
|
+
const handleBack = (0, react_1.useCallback)((l) => {
|
|
84
|
+
setStep(types_2.CreateLiveStreamStep.SELECT_TYPE);
|
|
85
|
+
}, []);
|
|
86
|
+
const handleSubmit = (0, react_1.useCallback)((e) => {
|
|
87
|
+
onSuccess && onSuccess(e);
|
|
88
|
+
}, []);
|
|
89
|
+
(0, react_1.useEffect)(() => {
|
|
90
|
+
if (!canCreateEvent) {
|
|
91
|
+
setLiveType(types_2.LiveStreamType.DIRECT_LIVE);
|
|
92
|
+
}
|
|
93
|
+
}, [canCreateEvent]);
|
|
94
|
+
// user must be logged
|
|
95
|
+
if (!scUserContext.user || !canCreateLiveStream) {
|
|
96
|
+
return null;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Renders root object
|
|
100
|
+
*/
|
|
101
|
+
return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ DialogContentProps: { dividers: false }, maxWidth: 'md', title: (0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ className: classes.title, component: 'span' }, { children: [Boolean(step === types_2.CreateLiveStreamStep.CREATE_LIVE && canCreateEvent) && ((0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ variant: "text", onClick: handleBack, startIcon: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "arrow_back" }) }, { children: "Back" }))), (0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ component: 'span' }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.createLivestreamDialog.title", defaultMessage: "ui.createLivestreamDialog.title" }) }))] })), fullWidth: true, open: open, scroll: 'paper', onClose: onClose, className: (0, classnames_1.default)(classes.root, className), TransitionComponent: Transition, PaperProps: { elevation: 0 } }, rest, { children: (0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ className: classes.content }, { children: [step === types_2.CreateLiveStreamStep.SELECT_TYPE && ((0, jsx_runtime_1.jsx)(LiveStreamSelector_1.default, { liveSelected: liveType, onLiveSelected: handleLiveTypeSelected, onNext: handleLiveTypeSelectedNext })), step === types_2.CreateLiveStreamStep.CREATE_LIVE && ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: liveType === types_2.LiveStreamType.EVENT_LIVE ? ((0, jsx_runtime_1.jsx)(EventForm_1.default, { EventAddressComponentProps: { locations: [types_1.SCEventLocationType.LIVESTREAM] }, onSuccess: handleSubmit })) : ((0, jsx_runtime_1.jsx)(LiveStreamForm_1.default, { onSuccess: handleSubmit })) }))] })) })));
|
|
102
|
+
}
|
|
103
|
+
exports.default = CreateLiveStreamDialog;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { LiveStreamType } from '../types';
|
|
2
|
+
export declare const PREFIX = "SCLiveStreamSelector";
|
|
3
|
+
export interface LiveStreamSelectorProps {
|
|
4
|
+
/**
|
|
5
|
+
* Overrides or extends the styles applied to the component.
|
|
6
|
+
* @default null
|
|
7
|
+
*/
|
|
8
|
+
className?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Option selected
|
|
11
|
+
*/
|
|
12
|
+
liveSelected?: LiveStreamType;
|
|
13
|
+
/**
|
|
14
|
+
* Callback on selected option
|
|
15
|
+
* @param LiveStreamType
|
|
16
|
+
*/
|
|
17
|
+
onLiveSelected?: (live: LiveStreamType) => void;
|
|
18
|
+
/**
|
|
19
|
+
* On success callback function
|
|
20
|
+
* @default null
|
|
21
|
+
*/
|
|
22
|
+
onNext?: (live: LiveStreamType) => void;
|
|
23
|
+
/**
|
|
24
|
+
* Any other properties
|
|
25
|
+
*/
|
|
26
|
+
[p: string]: any;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
*> API documentation for the Community-JS LiveStreamSelector component. Learn about the available props and the CSS API.
|
|
30
|
+
*
|
|
31
|
+
#### Import
|
|
32
|
+
```jsx
|
|
33
|
+
import {LiveStreamSelector} from '@selfcommunity/react-ui';
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
#### Component Name
|
|
37
|
+
The name `SCLiveStreamSelector` can be used when providing style overrides in the theme.
|
|
38
|
+
|
|
39
|
+
#### CSS
|
|
40
|
+
|
|
41
|
+
|Rule Name|Global class|Description|
|
|
42
|
+
|---|---|---|
|
|
43
|
+
|root|.SCCreateLivestreamDialog-root|Styles applied to the root element.|
|
|
44
|
+
|
|
45
|
+
* @param inProps
|
|
46
|
+
*/
|
|
47
|
+
export default function LiveStreamSelector(inProps: LiveStreamSelectorProps): JSX.Element;
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PREFIX = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
6
|
+
const react_1 = require("react");
|
|
7
|
+
const styles_1 = require("@mui/material/styles");
|
|
8
|
+
const material_1 = require("@mui/material");
|
|
9
|
+
const Icon_1 = tslib_1.__importDefault(require("@mui/material/Icon"));
|
|
10
|
+
const system_1 = require("@mui/system");
|
|
11
|
+
const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
12
|
+
const types_1 = require("../types");
|
|
13
|
+
const notistack_1 = require("notistack");
|
|
14
|
+
const react_intl_1 = require("react-intl");
|
|
15
|
+
const event_1 = tslib_1.__importDefault(require("../../../assets/liveStream/event"));
|
|
16
|
+
const live_1 = tslib_1.__importDefault(require("../../../assets/liveStream/live"));
|
|
17
|
+
const api_services_1 = require("@selfcommunity/api-services");
|
|
18
|
+
const constants_1 = require("../../LiveStreamRoom/constants");
|
|
19
|
+
const react_core_1 = require("@selfcommunity/react-core");
|
|
20
|
+
const types_2 = require("@selfcommunity/types");
|
|
21
|
+
const constants_2 = require("../../PlatformWidget/constants");
|
|
22
|
+
exports.PREFIX = 'SCLiveStreamSelector';
|
|
23
|
+
const classes = {
|
|
24
|
+
root: `${exports.PREFIX}-root`,
|
|
25
|
+
warning: `${exports.PREFIX}-warning`,
|
|
26
|
+
options: `${exports.PREFIX}-options`,
|
|
27
|
+
actions: `${exports.PREFIX}-actions`
|
|
28
|
+
};
|
|
29
|
+
const Root = (0, styles_1.styled)(material_1.Container, {
|
|
30
|
+
name: exports.PREFIX,
|
|
31
|
+
slot: 'Root'
|
|
32
|
+
})(({ theme }) => ({}));
|
|
33
|
+
// Styled components
|
|
34
|
+
const OptionCard = (0, styles_1.styled)(material_1.Paper, {
|
|
35
|
+
name: exports.PREFIX,
|
|
36
|
+
slot: 'optionCardRoot',
|
|
37
|
+
shouldForwardProp: (prop) => prop !== 'selected'
|
|
38
|
+
})(({ theme, selected }) => ({}));
|
|
39
|
+
const FeatureItem = (0, styles_1.styled)(material_1.Box, {
|
|
40
|
+
name: exports.PREFIX,
|
|
41
|
+
slot: 'featureItemRoot'
|
|
42
|
+
})(({ theme }) => ({}));
|
|
43
|
+
/**
|
|
44
|
+
*> API documentation for the Community-JS LiveStreamSelector component. Learn about the available props and the CSS API.
|
|
45
|
+
*
|
|
46
|
+
#### Import
|
|
47
|
+
```jsx
|
|
48
|
+
import {LiveStreamSelector} from '@selfcommunity/react-ui';
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
#### Component Name
|
|
52
|
+
The name `SCLiveStreamSelector` can be used when providing style overrides in the theme.
|
|
53
|
+
|
|
54
|
+
#### CSS
|
|
55
|
+
|
|
56
|
+
|Rule Name|Global class|Description|
|
|
57
|
+
|---|---|---|
|
|
58
|
+
|root|.SCCreateLivestreamDialog-root|Styles applied to the root element.|
|
|
59
|
+
|
|
60
|
+
* @param inProps
|
|
61
|
+
*/
|
|
62
|
+
function LiveStreamSelector(inProps) {
|
|
63
|
+
//PROPS
|
|
64
|
+
const props = (0, system_1.useThemeProps)({
|
|
65
|
+
props: inProps,
|
|
66
|
+
name: exports.PREFIX
|
|
67
|
+
});
|
|
68
|
+
const { className, liveSelected, onLiveSelected, onNext } = props;
|
|
69
|
+
// CONTEXT
|
|
70
|
+
const scContext = (0, react_core_1.useSCContext)();
|
|
71
|
+
const scUserContext = (0, react_core_1.useSCUser)();
|
|
72
|
+
const { enqueueSnackbar } = (0, notistack_1.useSnackbar)();
|
|
73
|
+
// STATE
|
|
74
|
+
const [selectedOption, setSelectedOption] = (0, react_1.useState)(liveSelected);
|
|
75
|
+
const [timeRemaining, setTimeRemaining] = (0, react_1.useState)(null);
|
|
76
|
+
// HOOKS
|
|
77
|
+
const { preferences } = (0, react_core_1.useSCPreferences)();
|
|
78
|
+
const isCommunityOwner = (0, react_1.useMemo)(() => { var _a; return ((_a = scUserContext === null || scUserContext === void 0 ? void 0 : scUserContext.user) === null || _a === void 0 ? void 0 : _a.id) === 1; }, [scUserContext.user]);
|
|
79
|
+
const isFreeTrialTier = (0, react_1.useMemo)(() => preferences &&
|
|
80
|
+
react_core_1.SCPreferences.CONFIGURATIONS_SUBSCRIPTION_TIER in preferences &&
|
|
81
|
+
preferences[react_core_1.SCPreferences.CONFIGURATIONS_SUBSCRIPTION_TIER].value &&
|
|
82
|
+
preferences[react_core_1.SCPreferences.CONFIGURATIONS_SUBSCRIPTION_TIER].value === types_2.SCCommunitySubscriptionTier.FREE_TRIAL, [preferences]);
|
|
83
|
+
const intl = (0, react_intl_1.useIntl)();
|
|
84
|
+
const options = [
|
|
85
|
+
{
|
|
86
|
+
title: intl.formatMessage({ id: 'ui.liveStreamForm.selector.scheduleLiveEvent', defaultMessage: 'ui.liveStreamForm.selector.scheduleLiveEvent' }),
|
|
87
|
+
image: event_1.default,
|
|
88
|
+
type: types_1.LiveStreamType.EVENT_LIVE,
|
|
89
|
+
features: [
|
|
90
|
+
intl.formatMessage({
|
|
91
|
+
id: 'ui.liveStreamForm.selector.scheduleLiveEventItem1',
|
|
92
|
+
defaultMessage: 'ui.liveStreamForm.selector.scheduleLiveEventItem1'
|
|
93
|
+
}),
|
|
94
|
+
intl.formatMessage({
|
|
95
|
+
id: 'ui.liveStreamForm.selector.scheduleLiveEventItem2',
|
|
96
|
+
defaultMessage: 'ui.liveStreamForm.selector.scheduleLiveEventItem2'
|
|
97
|
+
}),
|
|
98
|
+
intl.formatMessage({
|
|
99
|
+
id: 'ui.liveStreamForm.selector.scheduleLiveEventItem3',
|
|
100
|
+
defaultMessage: 'ui.liveStreamForm.selector.scheduleLiveEventItem3'
|
|
101
|
+
})
|
|
102
|
+
],
|
|
103
|
+
icons: [(0, jsx_runtime_1.jsx)(Icon_1.default, { children: "chevron_right" }), (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "chevron_right" }), (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "chevron_right" }), (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "chevron_right" })]
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
title: intl.formatMessage({
|
|
107
|
+
id: 'ui.liveStreamForm.selector.scheduleLiveStream',
|
|
108
|
+
defaultMessage: 'ui.liveStreamForm.selector.scheduleLiveStream'
|
|
109
|
+
}),
|
|
110
|
+
image: live_1.default,
|
|
111
|
+
type: types_1.LiveStreamType.DIRECT_LIVE,
|
|
112
|
+
features: [
|
|
113
|
+
intl.formatMessage({
|
|
114
|
+
id: 'ui.liveStreamForm.selector.scheduleLiveStreamItem1',
|
|
115
|
+
defaultMessage: 'ui.liveStreamForm.selector.scheduleLiveStreamItem1'
|
|
116
|
+
}),
|
|
117
|
+
intl.formatMessage({
|
|
118
|
+
id: 'ui.liveStreamForm.selector.scheduleLiveStreamItem2',
|
|
119
|
+
defaultMessage: 'ui.liveStreamForm.selector.scheduleLiveStreamItem2'
|
|
120
|
+
}),
|
|
121
|
+
intl.formatMessage({
|
|
122
|
+
id: 'ui.liveStreamForm.selector.scheduleLiveStreamItem3',
|
|
123
|
+
defaultMessage: 'ui.liveStreamForm.selector.scheduleLiveStreamItem3'
|
|
124
|
+
})
|
|
125
|
+
],
|
|
126
|
+
icons: [(0, jsx_runtime_1.jsx)(Icon_1.default, { children: "chevron_right" }), (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "chevron_right" }), (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "chevron_right" }), (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "chevron_right" })]
|
|
127
|
+
}
|
|
128
|
+
];
|
|
129
|
+
const handleOptionSelect = (type) => {
|
|
130
|
+
setSelectedOption(type);
|
|
131
|
+
onLiveSelected(type);
|
|
132
|
+
};
|
|
133
|
+
const handleNext = () => {
|
|
134
|
+
if (!selectedOption) {
|
|
135
|
+
enqueueSnackbar((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.common.error", defaultMessage: "ui.common.error" }), {
|
|
136
|
+
variant: 'error',
|
|
137
|
+
autoHideDuration: 3000
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
else {
|
|
141
|
+
onNext && onNext(selectedOption);
|
|
142
|
+
}
|
|
143
|
+
};
|
|
144
|
+
const fetchLivestreamStatus = () => {
|
|
145
|
+
api_services_1.LiveStreamApiClient.getMonthlyDuration()
|
|
146
|
+
.then((r) => {
|
|
147
|
+
setTimeRemaining(r.remaining_minutes);
|
|
148
|
+
})
|
|
149
|
+
.catch((error) => {
|
|
150
|
+
console.error('Error fetching live status:', error);
|
|
151
|
+
});
|
|
152
|
+
};
|
|
153
|
+
(0, react_1.useEffect)(() => {
|
|
154
|
+
fetchLivestreamStatus();
|
|
155
|
+
}, []);
|
|
156
|
+
const warning = (0, react_1.useMemo)(() => {
|
|
157
|
+
let _message;
|
|
158
|
+
if (isFreeTrialTier && isCommunityOwner) {
|
|
159
|
+
_message = ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.liveStreamForm.selector.warningSubscriptionRequired", defaultMessage: "ui.liveStreamForm.selector.warningSubscriptionRequired", values: {
|
|
160
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
|
|
161
|
+
// @ts-ignore
|
|
162
|
+
link: (...chunks) => (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: constants_2.SELFCOMMUNITY_PRICING[scContext.settings.locale.default] }, { children: chunks }))
|
|
163
|
+
} }));
|
|
164
|
+
}
|
|
165
|
+
else if (timeRemaining !== null && timeRemaining <= constants_1.WARNING_THRESHOLD_EXPIRING_SOON) {
|
|
166
|
+
if (timeRemaining <= 1) {
|
|
167
|
+
_message = ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.liveStreamForm.selector.warningMinutesExausted", defaultMessage: "ui.liveStreamForm.selector.warningMinutesExausted" }));
|
|
168
|
+
}
|
|
169
|
+
else if (timeRemaining <= constants_1.WARNING_THRESHOLD_EXPIRING_SOON) {
|
|
170
|
+
_message = ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.liveStreamForm.selector.warningRemainingMinutes", defaultMessage: "ui.liveStreamForm.selector.warningRemainingMinutes", values: { minutes: timeRemaining } }));
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
if (_message) {
|
|
174
|
+
return ((0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ className: classes.warning }, { children: (0, jsx_runtime_1.jsx)(material_1.Alert, Object.assign({ variant: "filled", severity: "warning" }, { children: _message })) })));
|
|
175
|
+
}
|
|
176
|
+
return null;
|
|
177
|
+
}, [timeRemaining, isFreeTrialTier]);
|
|
178
|
+
return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className), maxWidth: "lg", sx: { py: 4 } }, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "h4", component: "h1", align: "center", gutterBottom: true, sx: { mb: 4, fontWeight: 500 } }, { children: "How do you want to go live?" })), warning, (0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ className: classes.options }, { children: options.map((option, index) => ((0, jsx_runtime_1.jsxs)(OptionCard, Object.assign({ selected: selectedOption === option.type, onClick: () => handleOptionSelect(option.type), elevation: 0, role: "button", tabIndex: 0, onKeyDown: (e) => {
|
|
179
|
+
if (e.key === 'Enter' || e.key === ' ') {
|
|
180
|
+
handleOptionSelect(index);
|
|
181
|
+
e.preventDefault();
|
|
182
|
+
}
|
|
183
|
+
}, theme: undefined }, { children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "h6", component: "h2", sx: { fontWeight: 500 } }, { children: option.title })), (0, jsx_runtime_1.jsx)(material_1.Radio, { checked: selectedOption === option.type })] }), (0, jsx_runtime_1.jsx)("img", { src: option.image, alt: "logo" }), (0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ component: "ul" }, { children: option.features.map((feature, featureIndex) => {
|
|
184
|
+
const _Icon = option.icons[featureIndex];
|
|
185
|
+
return ((0, jsx_runtime_1.jsxs)(FeatureItem, Object.assign({ component: "li" }, { children: [_Icon, (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body2", color: "text.secondary", sx: { flex: 1 } }, { children: feature }))] }), featureIndex));
|
|
186
|
+
}) }))] }), index))) })), (0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ className: classes.actions }, { children: (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ disabled: !selectedOption || !timeRemaining || isFreeTrialTier, variant: "contained", onClick: handleNext, color: "secondary" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.liveStreamForm.selector.next", defaultMessage: "ui.liveStreamForm.selector.next" }) })) }))] })));
|
|
187
|
+
}
|
|
188
|
+
exports.default = LiveStreamSelector;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PREFIX = "SCCreateLiveStreamDialog";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LiveStreamType = exports.CreateLiveStreamStep = void 0;
|
|
4
|
+
var CreateLiveStreamStep;
|
|
5
|
+
(function (CreateLiveStreamStep) {
|
|
6
|
+
CreateLiveStreamStep["SELECT_TYPE"] = "_select_type";
|
|
7
|
+
CreateLiveStreamStep["CREATE_LIVE"] = "_create_live";
|
|
8
|
+
})(CreateLiveStreamStep = exports.CreateLiveStreamStep || (exports.CreateLiveStreamStep = {}));
|
|
9
|
+
var LiveStreamType;
|
|
10
|
+
(function (LiveStreamType) {
|
|
11
|
+
LiveStreamType["EVENT_LIVE"] = "_event_live";
|
|
12
|
+
LiveStreamType["DIRECT_LIVE"] = "_direct_live";
|
|
13
|
+
})(LiveStreamType = exports.LiveStreamType || (exports.LiveStreamType = {}));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DOMExportOutput, EditorConfig, LexicalNode, NodeKey, SerializedTextNode, Spread, TextNode } from 'lexical';
|
|
2
2
|
import { SCCategoryType } from '@selfcommunity/types';
|
|
3
3
|
import { DOMConversionMap } from 'lexical/LexicalNode';
|
|
4
|
-
export
|
|
4
|
+
export type SerializedHashtagNode = Spread<{
|
|
5
5
|
category: SCCategoryType;
|
|
6
6
|
type: 'hashtag';
|
|
7
7
|
version: 1;
|
|
@@ -12,16 +12,16 @@ function convertHashtagElement(domNode) {
|
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
14
|
class HashtagNode extends lexical_1.TextNode {
|
|
15
|
-
constructor(category, text, key) {
|
|
16
|
-
super(text !== null && text !== void 0 ? text : `#${category.name}`, key);
|
|
17
|
-
this.__category = category;
|
|
18
|
-
}
|
|
19
15
|
static getType() {
|
|
20
16
|
return 'hashtag';
|
|
21
17
|
}
|
|
22
18
|
static clone(node) {
|
|
23
19
|
return new HashtagNode(node.__category, node.__text, node.__key);
|
|
24
20
|
}
|
|
21
|
+
constructor(category, text, key) {
|
|
22
|
+
super(text !== null && text !== void 0 ? text : `#${category.name}`, key);
|
|
23
|
+
this.__category = category;
|
|
24
|
+
}
|
|
25
25
|
createDOM(config) {
|
|
26
26
|
const tag = 'hashtag';
|
|
27
27
|
const dom = document.createElement(tag);
|
|
@@ -12,7 +12,7 @@ export interface ImagePayload {
|
|
|
12
12
|
declare function convertImageElement(domNode: any): {
|
|
13
13
|
node: ImageNode;
|
|
14
14
|
};
|
|
15
|
-
export
|
|
15
|
+
export type SerializedImageNode = Spread<{
|
|
16
16
|
altText: string;
|
|
17
17
|
maxWidth: number | string;
|
|
18
18
|
src: string;
|
|
@@ -107,18 +107,18 @@ function convertImageElement(domNode) {
|
|
|
107
107
|
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
|
|
108
108
|
// @ts-ignore
|
|
109
109
|
class ImageNode extends lexical_1.DecoratorNode {
|
|
110
|
-
constructor(src, altText, maxWidth, key) {
|
|
111
|
-
super(key);
|
|
112
|
-
this.__src = src;
|
|
113
|
-
this.__altText = altText;
|
|
114
|
-
this.__maxWidth = maxWidth;
|
|
115
|
-
}
|
|
116
110
|
static getType() {
|
|
117
111
|
return 'image';
|
|
118
112
|
}
|
|
119
113
|
static clone(node) {
|
|
120
114
|
return new ImageNode(node.__src, node.__altText, node.__maxWidth, node.__key);
|
|
121
115
|
}
|
|
116
|
+
constructor(src, altText, maxWidth, key) {
|
|
117
|
+
super(key);
|
|
118
|
+
this.__src = src;
|
|
119
|
+
this.__altText = altText;
|
|
120
|
+
this.__maxWidth = maxWidth;
|
|
121
|
+
}
|
|
122
122
|
setWidthAndHeight(width, height) {
|
|
123
123
|
const writable = this.getWritable();
|
|
124
124
|
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DOMExportOutput, EditorConfig, LexicalNode, NodeKey, SerializedTextNode, Spread, TextNode } from 'lexical';
|
|
2
2
|
import { SCUserType } from '@selfcommunity/types';
|
|
3
3
|
import { DOMConversionMap } from 'lexical/LexicalNode';
|
|
4
|
-
export
|
|
4
|
+
export type SerializedMentionNode = Spread<{
|
|
5
5
|
user: SCUserType;
|
|
6
6
|
type: 'mention';
|
|
7
7
|
version: 1;
|
|
@@ -25,16 +25,16 @@ function convertMentionElement(domNode) {
|
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
27
|
class MentionNode extends lexical_1.TextNode {
|
|
28
|
-
constructor(user, text, key) {
|
|
29
|
-
super(text !== null && text !== void 0 ? text : `@${user.username}`, key);
|
|
30
|
-
this.__user = user;
|
|
31
|
-
}
|
|
32
28
|
static getType() {
|
|
33
29
|
return 'mention';
|
|
34
30
|
}
|
|
35
31
|
static clone(node) {
|
|
36
32
|
return new MentionNode(node.__user, node.__text, node.__key);
|
|
37
33
|
}
|
|
34
|
+
constructor(user, text, key) {
|
|
35
|
+
super(text !== null && text !== void 0 ? text : `@${user.username}`, key);
|
|
36
|
+
this.__user = user;
|
|
37
|
+
}
|
|
38
38
|
createDOM(config) {
|
|
39
39
|
const tag = 'mention';
|
|
40
40
|
const dom = document.createElement(tag);
|
|
@@ -17,7 +17,10 @@ const MATCHERS = [
|
|
|
17
17
|
index: match.index,
|
|
18
18
|
length: match[0].length,
|
|
19
19
|
text: match[0],
|
|
20
|
-
url: normalizeURL(match[0])
|
|
20
|
+
url: normalizeURL(match[0]),
|
|
21
|
+
attributes: {
|
|
22
|
+
target: '_blank'
|
|
23
|
+
}
|
|
21
24
|
});
|
|
22
25
|
},
|
|
23
26
|
(text) => {
|
|
@@ -26,7 +29,10 @@ const MATCHERS = [
|
|
|
26
29
|
index: match.index,
|
|
27
30
|
length: match[0].length,
|
|
28
31
|
text: match[0],
|
|
29
|
-
url: `mailto:${match[0]}
|
|
32
|
+
url: `mailto:${match[0]}`,
|
|
33
|
+
attributes: {
|
|
34
|
+
target: '_blank'
|
|
35
|
+
}
|
|
30
36
|
});
|
|
31
37
|
}
|
|
32
38
|
];
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import type { LexicalEditor } from 'lexical';
|
|
9
9
|
import * as React from 'react';
|
|
10
|
-
|
|
10
|
+
type ErrorBoundaryProps = {
|
|
11
11
|
children: JSX.Element;
|
|
12
12
|
onError: (error: Error) => void;
|
|
13
13
|
};
|
|
14
|
-
export
|
|
14
|
+
export type ErrorBoundaryType = React.ComponentClass<ErrorBoundaryProps> | React.FC<ErrorBoundaryProps>;
|
|
15
15
|
export declare function useDecorators(editor: LexicalEditor, ErrorBoundary: ErrorBoundaryType): Array<JSX.Element>;
|
|
16
16
|
export {};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { SCEventType } from '@selfcommunity/types';
|
|
1
|
+
import { SCEventLocationType, SCEventType } from '@selfcommunity/types';
|
|
2
2
|
import { Geolocation } from './types';
|
|
3
3
|
export interface EventAddressProps {
|
|
4
|
-
|
|
4
|
+
locations?: SCEventLocationType[];
|
|
5
|
+
event?: SCEventType | Partial<SCEventType>;
|
|
5
6
|
forwardGeolocationData: (data: Geolocation) => void;
|
|
7
|
+
forwardLivestreamSettingsData: (settings: any) => void;
|
|
6
8
|
className?: string;
|
|
7
9
|
}
|
|
8
10
|
export default function EventAddress(inProps: EventAddressProps): JSX.Element;
|