@selfcommunity/react-ui 0.8.0-embeds.17 → 0.8.0-live.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/components/BottomNavigation/BottomNavigation.d.ts +1 -1
- package/lib/cjs/components/Categories/Categories.js +22 -0
- package/lib/cjs/components/CategoriesPopularWidget/CategoriesPopularWidget.js +21 -0
- package/lib/cjs/components/CategoriesSuggestionWidget/CategoriesSuggestionWidget.js +21 -0
- package/lib/cjs/components/Composer/TypeSwitchButtonGroup/TypeSwitchButtonGroup.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/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/EditEventButton/EditEventButton.js +1 -1
- 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/MentionsPlugin.d.ts +2 -2
- package/lib/cjs/components/Editor/shared/useDecorators.d.ts +2 -2
- package/lib/cjs/components/Event/Event.js +1 -1
- package/lib/cjs/components/EventForm/EventForm.d.ts +7 -12
- package/lib/cjs/components/EventForm/EventForm.js +55 -55
- 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 +3 -7
- package/lib/cjs/components/EventInfoWidget/EventInfoWidget.js +6 -4
- 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 +18 -13
- package/lib/cjs/components/EventMembersWidget/types.d.ts +1 -1
- package/lib/cjs/components/Events/Events.js +15 -6
- 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/Feed/Feed.d.ts +2 -2
- package/lib/cjs/components/Feed/Feed.js +3 -2
- package/lib/cjs/components/Feed/Skeleton.d.ts +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/GroupHeader/GroupHeader.d.ts +6 -0
- package/lib/cjs/components/GroupHeader/GroupHeader.js +8 -4
- package/lib/cjs/components/Groups/Groups.js +26 -0
- 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 +186 -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/NavigationMenuIconButton/DefaultDrawerContent.js +1 -1
- package/lib/cjs/components/NavigationMenuIconButton/DefaultHeaderContent.d.ts +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 +35 -2
- package/lib/cjs/components/NavigationToolbar/NavigationToolbar.d.ts +5 -0
- package/lib/cjs/components/NavigationToolbar/NavigationToolbar.js +3 -3
- 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 +96 -23
- package/lib/cjs/components/OnBoardingWidget/Steps/Appearance/Appearance.js +23 -16
- package/lib/cjs/components/OnBoardingWidget/Steps/Invite/Invite.js +56 -12
- package/lib/cjs/components/PlatformWidget/constants.d.ts +0 -4
- package/lib/cjs/components/PlatformWidget/constants.js +1 -5
- package/lib/cjs/components/PrivateMessageComponent/Skeleton.d.ts +1 -1
- package/lib/cjs/components/PrivateMessageThreadItem/PrivateMessageThreadItem.js +1 -3
- 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 +9 -1
- package/lib/cjs/index.d.ts +15 -4
- package/lib/cjs/index.js +35 -9
- package/lib/cjs/shared/EventActionsMenu/index.d.ts +1 -1
- package/lib/cjs/shared/EventActionsMenu/index.js +11 -15
- package/lib/cjs/shared/EventInfoDetails/index.js +3 -3
- package/lib/cjs/shared/InfiniteScroll/index.d.ts +1 -1
- package/lib/cjs/shared/InfiniteScroll/index.js +4 -4
- 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/Media/File/DisplayComponent.js +23 -6
- package/lib/cjs/shared/Media/File/asUploadButton.d.ts +1 -1
- package/lib/cjs/shared/Media/Link/DisplayComponent.js +5 -5
- package/lib/cjs/shared/Media/Link/UrlTextField/index.d.ts +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/StickyBox/index.d.ts +4 -4
- package/lib/cjs/shared/UsernameTextField/index.d.ts +1 -1
- package/lib/cjs/types/composer.d.ts +1 -1
- 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/BottomNavigation/BottomNavigation.d.ts +1 -1
- package/lib/esm/components/Categories/Categories.js +23 -1
- package/lib/esm/components/CategoriesPopularWidget/CategoriesPopularWidget.js +22 -1
- package/lib/esm/components/CategoriesSuggestionWidget/CategoriesSuggestionWidget.js +22 -1
- package/lib/esm/components/Composer/TypeSwitchButtonGroup/TypeSwitchButtonGroup.js +2 -2
- package/lib/esm/components/CreateEventButton/CreateEventButton.d.ts +2 -2
- package/lib/esm/components/CreateEventButton/CreateEventButton.js +4 -4
- 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/EditEventButton/EditEventButton.js +1 -1
- 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/MentionsPlugin.d.ts +2 -2
- package/lib/esm/components/Editor/shared/useDecorators.d.ts +2 -2
- package/lib/esm/components/Event/Event.js +1 -1
- package/lib/esm/components/EventForm/EventForm.d.ts +7 -12
- package/lib/esm/components/EventForm/EventForm.js +56 -56
- 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 +3 -7
- package/lib/esm/components/EventInfoWidget/EventInfoWidget.js +6 -4
- 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 +18 -13
- package/lib/esm/components/EventMembersWidget/types.d.ts +1 -1
- package/lib/esm/components/Events/Events.js +16 -7
- 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/Feed/Feed.d.ts +2 -2
- package/lib/esm/components/Feed/Feed.js +4 -3
- package/lib/esm/components/Feed/Skeleton.d.ts +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/GroupHeader/GroupHeader.d.ts +6 -0
- package/lib/esm/components/GroupHeader/GroupHeader.js +9 -5
- package/lib/esm/components/Groups/Groups.js +27 -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 +183 -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/NavigationMenuIconButton/DefaultDrawerContent.js +2 -2
- package/lib/esm/components/NavigationMenuIconButton/DefaultHeaderContent.d.ts +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 +38 -5
- package/lib/esm/components/NavigationToolbar/NavigationToolbar.d.ts +5 -0
- package/lib/esm/components/NavigationToolbar/NavigationToolbar.js +3 -3
- 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 +99 -26
- package/lib/esm/components/OnBoardingWidget/Steps/Appearance/Appearance.js +24 -17
- package/lib/esm/components/OnBoardingWidget/Steps/Invite/Invite.js +59 -14
- package/lib/esm/components/PlatformWidget/constants.d.ts +0 -4
- package/lib/esm/components/PlatformWidget/constants.js +0 -4
- package/lib/esm/components/PrivateMessageComponent/Skeleton.d.ts +1 -1
- package/lib/esm/components/PrivateMessageThreadItem/PrivateMessageThreadItem.js +1 -3
- 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/EventActionsMenu/index.d.ts +1 -1
- package/lib/esm/shared/EventActionsMenu/index.js +11 -15
- package/lib/esm/shared/EventInfoDetails/index.js +3 -3
- package/lib/esm/shared/InfiniteScroll/index.d.ts +1 -1
- package/lib/esm/shared/InfiniteScroll/index.js +4 -4
- 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/Media/File/DisplayComponent.js +23 -6
- package/lib/esm/shared/Media/File/asUploadButton.d.ts +1 -1
- package/lib/esm/shared/Media/Link/DisplayComponent.js +5 -5
- package/lib/esm/shared/Media/Link/UrlTextField/index.d.ts +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/StickyBox/index.d.ts +4 -4
- package/lib/esm/shared/UsernameTextField/index.d.ts +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 +22 -10
- 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
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { __rest } from "tslib";
|
|
2
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import React, { useCallback, useEffect, useMemo, useState } from 'react';
|
|
4
|
+
import { styled } from '@mui/material/styles';
|
|
5
|
+
import { useThemeProps } from '@mui/system';
|
|
6
|
+
import { SCPreferences, UserUtils, useSCContext, useSCPreferences, useSCUser } from '@selfcommunity/react-core';
|
|
7
|
+
import { SCFeatureName } from '@selfcommunity/types';
|
|
8
|
+
import classNames from 'classnames';
|
|
9
|
+
import { FormattedMessage } from 'react-intl';
|
|
10
|
+
import BaseDialog from '../../shared/BaseDialog';
|
|
11
|
+
import { PREFIX } from './constants';
|
|
12
|
+
import EventForm from '../EventForm';
|
|
13
|
+
import LiveStreamSelector from './LiveStreamSelector/LiveStreamSelector';
|
|
14
|
+
import { CreateLiveStreamStep, LiveStreamType } from './types';
|
|
15
|
+
import LiveStreamForm from '../LiveStreamForm';
|
|
16
|
+
import Slide from '@mui/material/Slide';
|
|
17
|
+
import { Box, Button, Icon } from '@mui/material';
|
|
18
|
+
const classes = {
|
|
19
|
+
root: `${PREFIX}-root`,
|
|
20
|
+
title: `${PREFIX}-title`,
|
|
21
|
+
content: `${PREFIX}-content`
|
|
22
|
+
};
|
|
23
|
+
const Root = styled(BaseDialog, {
|
|
24
|
+
name: PREFIX,
|
|
25
|
+
slot: 'Root'
|
|
26
|
+
})(({ theme }) => ({
|
|
27
|
+
paddingBottom: '0px !important',
|
|
28
|
+
[`& .${classes.title}`]: {
|
|
29
|
+
display: 'flex'
|
|
30
|
+
},
|
|
31
|
+
[`& .${classes.content}`]: {
|
|
32
|
+
paddingBottom: 0
|
|
33
|
+
}
|
|
34
|
+
}));
|
|
35
|
+
const Transition = React.forwardRef(function Transition(props, ref) {
|
|
36
|
+
return _jsx(Slide, Object.assign({ direction: "up", ref: ref }, props));
|
|
37
|
+
});
|
|
38
|
+
/**
|
|
39
|
+
*> API documentation for the Community-JS CreateLiveStreamDialog component. Learn about the available props and the CSS API.
|
|
40
|
+
*
|
|
41
|
+
#### Import
|
|
42
|
+
```jsx
|
|
43
|
+
import {CreateLivestreamDialog} from '@selfcommunity/react-ui';
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
#### Component Name
|
|
47
|
+
The name `SCCreateLivestreamDialog` can be used when providing style overrides in the theme.
|
|
48
|
+
|
|
49
|
+
#### CSS
|
|
50
|
+
|
|
51
|
+
|Rule Name|Global class|Description|
|
|
52
|
+
|---|---|---|
|
|
53
|
+
|root|.SCCreateLivestreamDialog-root|Styles applied to the root element.|
|
|
54
|
+
|content|.SCCreateLivestreamDialog-content|Styles applied to the content element.|
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
* @param inProps
|
|
59
|
+
*/
|
|
60
|
+
export default function CreateLiveStreamDialog(inProps) {
|
|
61
|
+
//PROPS
|
|
62
|
+
const props = useThemeProps({
|
|
63
|
+
props: inProps,
|
|
64
|
+
name: PREFIX
|
|
65
|
+
});
|
|
66
|
+
const { className, open = true, onClose, onSuccess } = props, rest = __rest(props, ["className", "open", "onClose", "onSuccess"]);
|
|
67
|
+
// CONTEXT
|
|
68
|
+
const scContext = useSCContext();
|
|
69
|
+
const scUserContext = useSCUser();
|
|
70
|
+
const { preferences, features } = useSCPreferences();
|
|
71
|
+
const liveStreamEnabled = useMemo(() => true,
|
|
72
|
+
/* preferences &&
|
|
73
|
+
features &&
|
|
74
|
+
features.includes(SCFeatureName.LIVE_STREAM) &&
|
|
75
|
+
SCPreferences.CONFIGURATIONS_LIVE_STREAM_ENABLED in preferences &&
|
|
76
|
+
preferences[SCPreferences.CONFIGURATIONS_LIVE_STREAM_ENABLED].value*/ [preferences, features]);
|
|
77
|
+
const onlyStaffLiveStreamEnabled = useMemo(() => true /* preferences[SCPreferences.CONFIGURATIONS_LIVESTREAM_ONLY_STAFF_ENABLED].value */, [preferences]);
|
|
78
|
+
const canCreateLiveStream = useMemo(() => true /* liveStreamEnabled && (scUserContext?.user?.permission?.create_livestream || (onlyStaffLiveStreamEnabled && UserUtils.isStaff(scUserContext.user)))*/, [scUserContext === null || scUserContext === void 0 ? void 0 : scUserContext.user, onlyStaffLiveStreamEnabled]);
|
|
79
|
+
console.log(canCreateLiveStream);
|
|
80
|
+
const eventsEnabled = useMemo(() => preferences &&
|
|
81
|
+
features &&
|
|
82
|
+
features.includes(SCFeatureName.TAGGING) &&
|
|
83
|
+
SCPreferences.CONFIGURATIONS_EVENTS_ENABLED in preferences &&
|
|
84
|
+
preferences[SCPreferences.CONFIGURATIONS_EVENTS_ENABLED].value, [preferences, features]);
|
|
85
|
+
const onlyStaffEventEnabled = useMemo(() => preferences[SCPreferences.CONFIGURATIONS_EVENTS_ONLY_STAFF_ENABLED].value, [preferences]);
|
|
86
|
+
const canCreateEvent = useMemo(() => { var _a, _b; return eventsEnabled && (((_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) || true || (onlyStaffEventEnabled && UserUtils.isStaff(scUserContext.user))); }, [scUserContext === null || scUserContext === void 0 ? void 0 : scUserContext.user, eventsEnabled, onlyStaffEventEnabled]);
|
|
87
|
+
console.log(canCreateEvent);
|
|
88
|
+
const canCreateLiveStreamEvent = useMemo(() => Boolean(canCreateLiveStream && canCreateEvent), [canCreateEvent, canCreateLiveStream]);
|
|
89
|
+
console.log(canCreateLiveStreamEvent);
|
|
90
|
+
// STATE
|
|
91
|
+
const [step, setStep] = useState(canCreateLiveStreamEvent ? CreateLiveStreamStep.SELECT_TYPE : CreateLiveStreamStep.CREATE_LIVE);
|
|
92
|
+
const [liveType, setLiveType] = useState(canCreateLiveStreamEvent ? null : LiveStreamType.DIRECT_LIVE);
|
|
93
|
+
// HANDLER
|
|
94
|
+
const handleLiveTypeSelected = useCallback((l) => {
|
|
95
|
+
setLiveType(l);
|
|
96
|
+
}, []);
|
|
97
|
+
const handleLiveTypeSelectedNext = useCallback((l) => {
|
|
98
|
+
setLiveType(l);
|
|
99
|
+
setStep(CreateLiveStreamStep.CREATE_LIVE);
|
|
100
|
+
}, []);
|
|
101
|
+
const handleBack = useCallback((l) => {
|
|
102
|
+
setStep(CreateLiveStreamStep.SELECT_TYPE);
|
|
103
|
+
}, []);
|
|
104
|
+
const handleSubmit = useCallback((e) => {
|
|
105
|
+
onSuccess && onSuccess(e);
|
|
106
|
+
}, []);
|
|
107
|
+
useEffect(() => {
|
|
108
|
+
if (!canCreateLiveStreamEvent) {
|
|
109
|
+
setLiveType(LiveStreamType.DIRECT_LIVE);
|
|
110
|
+
}
|
|
111
|
+
}, [canCreateLiveStreamEvent]);
|
|
112
|
+
// user must be logged
|
|
113
|
+
if (!scUserContext.user) {
|
|
114
|
+
return null;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Renders root object
|
|
118
|
+
*/
|
|
119
|
+
return (_jsx(Root, Object.assign({ DialogContentProps: { dividers: false }, maxWidth: 'md', title: _jsxs(Box, Object.assign({ className: classes.title, component: 'span' }, { children: [step === CreateLiveStreamStep.CREATE_LIVE && (_jsx(Button, Object.assign({ variant: "text", onClick: handleBack, startIcon: _jsx(Icon, { children: "arrow_back" }) }, { children: "Back" }))), _jsx(Box, Object.assign({ component: 'span' }, { children: _jsx(FormattedMessage, { id: "ui.createLivestreamDialog.title", defaultMessage: "ui.createLivestreamDialog.title" }) }))] })), fullWidth: true, open: open, onClose: onClose, className: classNames(classes.root, className), TransitionComponent: Transition, PaperProps: { elevation: 0 } }, rest, { children: _jsxs(Box, Object.assign({ className: classes.content }, { children: [step === CreateLiveStreamStep.SELECT_TYPE && (_jsx(LiveStreamSelector, { liveSelected: liveType, onLiveSelected: handleLiveTypeSelected, onNext: handleLiveTypeSelectedNext })), step === CreateLiveStreamStep.CREATE_LIVE && (_jsx(_Fragment, { children: liveType === LiveStreamType.EVENT_LIVE ? _jsx(EventForm, { onSuccess: handleSubmit }) : _jsx(LiveStreamForm, { onSuccess: handleSubmit }) }))] })) })));
|
|
120
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { LiveStreamType } from '../types';
|
|
2
|
+
export interface LiveStreamSelectorProps {
|
|
3
|
+
/**
|
|
4
|
+
* Overrides or extends the styles applied to the component.
|
|
5
|
+
* @default null
|
|
6
|
+
*/
|
|
7
|
+
className?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Option selected
|
|
10
|
+
*/
|
|
11
|
+
liveSelected?: LiveStreamType;
|
|
12
|
+
/**
|
|
13
|
+
* Callback on selected option
|
|
14
|
+
* @param LiveStreamType
|
|
15
|
+
*/
|
|
16
|
+
onLiveSelected?: (live: LiveStreamType) => void;
|
|
17
|
+
/**
|
|
18
|
+
* On success callback function
|
|
19
|
+
* @default null
|
|
20
|
+
*/
|
|
21
|
+
onNext?: (live: LiveStreamType) => void;
|
|
22
|
+
/**
|
|
23
|
+
* Any other properties
|
|
24
|
+
*/
|
|
25
|
+
[p: string]: any;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
*> API documentation for the Community-JS LiveStreamSelector component. Learn about the available props and the CSS API.
|
|
29
|
+
*
|
|
30
|
+
#### Import
|
|
31
|
+
```jsx
|
|
32
|
+
import {LiveStreamSelector} from '@selfcommunity/react-ui';
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
#### Component Name
|
|
36
|
+
The name `SCLiveStreamSelector` can be used when providing style overrides in the theme.
|
|
37
|
+
|
|
38
|
+
#### CSS
|
|
39
|
+
|
|
40
|
+
|Rule Name|Global class|Description|
|
|
41
|
+
|---|---|---|
|
|
42
|
+
|root|.SCCreateLivestreamDialog-root|Styles applied to the root element.|
|
|
43
|
+
|
|
44
|
+
* @param inProps
|
|
45
|
+
*/
|
|
46
|
+
export default function LiveStreamSelector(inProps: LiveStreamSelectorProps): JSX.Element;
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import { __rest } from "tslib";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useState } from 'react';
|
|
4
|
+
import { styled } from '@mui/material/styles';
|
|
5
|
+
import { Box, Typography, Button, Paper, Container, Radio } from '@mui/material';
|
|
6
|
+
import Icon from '@mui/material/Icon';
|
|
7
|
+
import { PREFIX } from '../constants';
|
|
8
|
+
import { useThemeProps } from '@mui/system';
|
|
9
|
+
import classNames from 'classnames';
|
|
10
|
+
import { LiveStreamType } from '../types';
|
|
11
|
+
import { useSnackbar } from 'notistack';
|
|
12
|
+
import { FormattedMessage } from 'react-intl';
|
|
13
|
+
const classes = {
|
|
14
|
+
root: `${PREFIX}-root`,
|
|
15
|
+
options: `${PREFIX}-options`,
|
|
16
|
+
actions: `${PREFIX}-actions`
|
|
17
|
+
};
|
|
18
|
+
const Root = styled(Container, {
|
|
19
|
+
name: PREFIX,
|
|
20
|
+
slot: 'Root'
|
|
21
|
+
})(({ theme }) => ({
|
|
22
|
+
[`& .${classes.options}`]: {
|
|
23
|
+
display: 'flex',
|
|
24
|
+
justifyContent: 'center',
|
|
25
|
+
alignItems: 'center'
|
|
26
|
+
},
|
|
27
|
+
[`& .${classes.actions}`]: {
|
|
28
|
+
display: 'flex',
|
|
29
|
+
justifyContent: 'flex-end',
|
|
30
|
+
alignItems: 'flex-end',
|
|
31
|
+
marginTop: theme.spacing(4)
|
|
32
|
+
}
|
|
33
|
+
}));
|
|
34
|
+
// Styled components
|
|
35
|
+
const OptionCard = styled(Paper, {
|
|
36
|
+
shouldForwardProp: (prop) => prop !== 'selected'
|
|
37
|
+
})(({ theme, selected }) => ({
|
|
38
|
+
maxWidth: '300px',
|
|
39
|
+
padding: theme.spacing(3),
|
|
40
|
+
margin: theme.spacing(0, 3),
|
|
41
|
+
cursor: 'pointer',
|
|
42
|
+
transition: theme.transitions.create(['background-color', 'box-shadow'], {
|
|
43
|
+
duration: theme.transitions.duration.short
|
|
44
|
+
}),
|
|
45
|
+
backgroundColor: selected ? theme.palette.grey[100] : theme.palette.background.paper,
|
|
46
|
+
'&:hover': {
|
|
47
|
+
backgroundColor: theme.palette.grey[50],
|
|
48
|
+
boxShadow: theme.shadows[2]
|
|
49
|
+
},
|
|
50
|
+
border: `1px solid ${theme.palette.divider}`,
|
|
51
|
+
[`& > div`]: {
|
|
52
|
+
display: 'flex',
|
|
53
|
+
justifyContent: 'space-between',
|
|
54
|
+
alignItems: 'center',
|
|
55
|
+
marginBottom: 2,
|
|
56
|
+
maxWidth: '300px'
|
|
57
|
+
},
|
|
58
|
+
[`& ul`]: {
|
|
59
|
+
marginTop: theme.spacing(2),
|
|
60
|
+
padding: 0,
|
|
61
|
+
listStyle: 'none'
|
|
62
|
+
}
|
|
63
|
+
}));
|
|
64
|
+
const RadioIndicator = styled(Radio, {
|
|
65
|
+
shouldForwardProp: (prop) => prop !== 'selected'
|
|
66
|
+
})(({ theme, selected }) => ({
|
|
67
|
+
width: 16,
|
|
68
|
+
height: 16,
|
|
69
|
+
borderRadius: '50%',
|
|
70
|
+
border: `2px solid ${selected ? theme.palette.secondary.main : theme.palette.grey[300]}`,
|
|
71
|
+
backgroundColor: selected ? theme.palette.secondary.main : 'transparent',
|
|
72
|
+
transition: theme.transitions.create(['border-color', 'background-color'], {
|
|
73
|
+
duration: theme.transitions.duration.shortest
|
|
74
|
+
})
|
|
75
|
+
}));
|
|
76
|
+
const FeatureItem = styled(Box)(({ theme }) => ({
|
|
77
|
+
display: 'flex',
|
|
78
|
+
alignItems: 'flex-start',
|
|
79
|
+
gap: theme.spacing(1.5),
|
|
80
|
+
marginBottom: theme.spacing(2),
|
|
81
|
+
'&:last-child': {
|
|
82
|
+
marginBottom: 0
|
|
83
|
+
}
|
|
84
|
+
}));
|
|
85
|
+
/**
|
|
86
|
+
*> API documentation for the Community-JS LiveStreamSelector component. Learn about the available props and the CSS API.
|
|
87
|
+
*
|
|
88
|
+
#### Import
|
|
89
|
+
```jsx
|
|
90
|
+
import {LiveStreamSelector} from '@selfcommunity/react-ui';
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
#### Component Name
|
|
94
|
+
The name `SCLiveStreamSelector` can be used when providing style overrides in the theme.
|
|
95
|
+
|
|
96
|
+
#### CSS
|
|
97
|
+
|
|
98
|
+
|Rule Name|Global class|Description|
|
|
99
|
+
|---|---|---|
|
|
100
|
+
|root|.SCCreateLivestreamDialog-root|Styles applied to the root element.|
|
|
101
|
+
|
|
102
|
+
* @param inProps
|
|
103
|
+
*/
|
|
104
|
+
export default function LiveStreamSelector(inProps) {
|
|
105
|
+
//PROPS
|
|
106
|
+
const props = useThemeProps({
|
|
107
|
+
props: inProps,
|
|
108
|
+
name: PREFIX
|
|
109
|
+
});
|
|
110
|
+
const { className, liveSelected, onLiveSelected, onNext } = props, rest = __rest(props, ["className", "liveSelected", "onLiveSelected", "onNext"]);
|
|
111
|
+
// CONTEXT
|
|
112
|
+
const { enqueueSnackbar } = useSnackbar();
|
|
113
|
+
// STATE
|
|
114
|
+
const [selectedOption, setSelectedOption] = useState(liveSelected);
|
|
115
|
+
const options = [
|
|
116
|
+
{
|
|
117
|
+
title: 'Schedule a live event',
|
|
118
|
+
type: LiveStreamType.EVENT_LIVE,
|
|
119
|
+
features: [
|
|
120
|
+
'Schedule a live room or stream in your event space',
|
|
121
|
+
'Allow your members to RSVP, add to calendar, and receive event reminders',
|
|
122
|
+
'Automatically post the event recording to your space',
|
|
123
|
+
'Allow your members to host the event'
|
|
124
|
+
],
|
|
125
|
+
icons: [_jsx(Icon, { children: "chevron_right" }), _jsx(Icon, { children: "chevron_right" }), _jsx(Icon, { children: "chevron_right" }), _jsx(Icon, { children: "chevron_right" })]
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
title: 'Start a live stream',
|
|
129
|
+
type: LiveStreamType.DIRECT_LIVE,
|
|
130
|
+
features: [
|
|
131
|
+
'Best for webinars, Q&As, AMAs, and for presentations',
|
|
132
|
+
'Up to 100 people',
|
|
133
|
+
'Only co-hosts can talk to each other with audio/video',
|
|
134
|
+
'View-only participants can only chat or be promoted to the stage'
|
|
135
|
+
],
|
|
136
|
+
icons: [_jsx(Icon, { children: "chevron_right" }), _jsx(Icon, { children: "chevron_right" }), _jsx(Icon, { children: "chevron_right" }), _jsx(Icon, { children: "chevron_right" })]
|
|
137
|
+
}
|
|
138
|
+
];
|
|
139
|
+
const handleOptionSelect = (type) => {
|
|
140
|
+
setSelectedOption(type);
|
|
141
|
+
onLiveSelected(type);
|
|
142
|
+
};
|
|
143
|
+
const handleNext = () => {
|
|
144
|
+
if (!selectedOption) {
|
|
145
|
+
enqueueSnackbar(_jsx(FormattedMessage, { id: "ui.common.error", defaultMessage: "ui.common.error" }), {
|
|
146
|
+
variant: 'error',
|
|
147
|
+
autoHideDuration: 3000
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
else {
|
|
151
|
+
onNext && onNext(selectedOption);
|
|
152
|
+
}
|
|
153
|
+
};
|
|
154
|
+
return (_jsxs(Root, Object.assign({ className: classNames(classes.root, className), maxWidth: "lg", sx: { py: 4 } }, { children: [_jsx(Typography, Object.assign({ variant: "h4", component: "h1", align: "center", gutterBottom: true, sx: { mb: 4, fontWeight: 500 } }, { children: "How do you want to go live?" })), _jsx(Box, Object.assign({ className: classes.options }, { children: options.map((option, index) => (_jsxs(OptionCard, Object.assign({ selected: selectedOption === option.type, onClick: () => handleOptionSelect(option.type), elevation: 0, role: "button", tabIndex: 0, onKeyDown: (e) => {
|
|
155
|
+
if (e.key === 'Enter' || e.key === ' ') {
|
|
156
|
+
handleOptionSelect(index);
|
|
157
|
+
e.preventDefault();
|
|
158
|
+
}
|
|
159
|
+
}, theme: undefined }, { children: [_jsxs(Box, { children: [_jsx(Typography, Object.assign({ variant: "h6", component: "h2", sx: { fontWeight: 500 } }, { children: option.title })), _jsx(RadioIndicator, { selected: selectedOption === option.type, theme: undefined })] }), _jsx(Box, Object.assign({ component: "ul" }, { children: option.features.map((feature, featureIndex) => {
|
|
160
|
+
const _Icon = option.icons[featureIndex];
|
|
161
|
+
return (_jsxs(FeatureItem, Object.assign({ component: "li" }, { children: [_Icon, _jsx(Typography, Object.assign({ variant: "body2", color: "text.secondary", sx: { flex: 1 } }, { children: feature }))] }), featureIndex));
|
|
162
|
+
}) }))] }), index))) })), _jsx(Box, Object.assign({ className: classes.actions }, { children: _jsx(Button, Object.assign({ disabled: !selectedOption, variant: "contained", onClick: handleNext, color: "secondary" }, { children: "Next" })) }))] })));
|
|
163
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PREFIX = "SCCreateLiveStreamDialog";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const PREFIX = 'SCCreateLiveStreamDialog';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export var CreateLiveStreamStep;
|
|
2
|
+
(function (CreateLiveStreamStep) {
|
|
3
|
+
CreateLiveStreamStep["SELECT_TYPE"] = "_select_type";
|
|
4
|
+
CreateLiveStreamStep["CREATE_LIVE"] = "_create_live";
|
|
5
|
+
})(CreateLiveStreamStep || (CreateLiveStreamStep = {}));
|
|
6
|
+
export var LiveStreamType;
|
|
7
|
+
(function (LiveStreamType) {
|
|
8
|
+
LiveStreamType["EVENT_LIVE"] = "_event_live";
|
|
9
|
+
LiveStreamType["DIRECT_LIVE"] = "_direct_live";
|
|
10
|
+
})(LiveStreamType || (LiveStreamType = {}));
|
|
@@ -53,5 +53,5 @@ export default function EditEventButton(inProps) {
|
|
|
53
53
|
/**
|
|
54
54
|
* Renders root object
|
|
55
55
|
*/
|
|
56
|
-
return (_jsx(Root, Object.assign({ variant: "outlined", className: classNames(classes.root, className),
|
|
56
|
+
return (_jsx(Root, Object.assign({ variant: "outlined", className: classNames(classes.root, className), EventFormDialogComponentProps: { EventFormComponentProps: { event: scEvent, onSuccess: handleSuccess } } }, rest, { children: _jsx(FormattedMessage, { id: "ui.editEventButton", defaultMessage: "ui.editEventButton" }) })));
|
|
57
57
|
}
|
|
@@ -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;
|
|
@@ -9,16 +9,16 @@ function convertHashtagElement(domNode) {
|
|
|
9
9
|
};
|
|
10
10
|
}
|
|
11
11
|
export class HashtagNode extends TextNode {
|
|
12
|
-
constructor(category, text, key) {
|
|
13
|
-
super(text !== null && text !== void 0 ? text : `#${category.name}`, key);
|
|
14
|
-
this.__category = category;
|
|
15
|
-
}
|
|
16
12
|
static getType() {
|
|
17
13
|
return 'hashtag';
|
|
18
14
|
}
|
|
19
15
|
static clone(node) {
|
|
20
16
|
return new HashtagNode(node.__category, node.__text, node.__key);
|
|
21
17
|
}
|
|
18
|
+
constructor(category, text, key) {
|
|
19
|
+
super(text !== null && text !== void 0 ? text : `#${category.name}`, key);
|
|
20
|
+
this.__category = category;
|
|
21
|
+
}
|
|
22
22
|
createDOM(config) {
|
|
23
23
|
const tag = 'hashtag';
|
|
24
24
|
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;
|
|
@@ -104,18 +104,18 @@ function convertImageElement(domNode) {
|
|
|
104
104
|
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
|
|
105
105
|
// @ts-ignore
|
|
106
106
|
export class ImageNode extends DecoratorNode {
|
|
107
|
-
constructor(src, altText, maxWidth, key) {
|
|
108
|
-
super(key);
|
|
109
|
-
this.__src = src;
|
|
110
|
-
this.__altText = altText;
|
|
111
|
-
this.__maxWidth = maxWidth;
|
|
112
|
-
}
|
|
113
107
|
static getType() {
|
|
114
108
|
return 'image';
|
|
115
109
|
}
|
|
116
110
|
static clone(node) {
|
|
117
111
|
return new ImageNode(node.__src, node.__altText, node.__maxWidth, node.__key);
|
|
118
112
|
}
|
|
113
|
+
constructor(src, altText, maxWidth, key) {
|
|
114
|
+
super(key);
|
|
115
|
+
this.__src = src;
|
|
116
|
+
this.__altText = altText;
|
|
117
|
+
this.__maxWidth = maxWidth;
|
|
118
|
+
}
|
|
119
119
|
setWidthAndHeight(width, height) {
|
|
120
120
|
const writable = this.getWritable();
|
|
121
121
|
// 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;
|
|
@@ -22,16 +22,16 @@ function convertMentionElement(domNode) {
|
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
24
|
export class MentionNode extends TextNode {
|
|
25
|
-
constructor(user, text, key) {
|
|
26
|
-
super(text !== null && text !== void 0 ? text : `@${user.username}`, key);
|
|
27
|
-
this.__user = user;
|
|
28
|
-
}
|
|
29
25
|
static getType() {
|
|
30
26
|
return 'mention';
|
|
31
27
|
}
|
|
32
28
|
static clone(node) {
|
|
33
29
|
return new MentionNode(node.__user, node.__text, node.__key);
|
|
34
30
|
}
|
|
31
|
+
constructor(user, text, key) {
|
|
32
|
+
super(text !== null && text !== void 0 ? text : `@${user.username}`, key);
|
|
33
|
+
this.__user = user;
|
|
34
|
+
}
|
|
35
35
|
createDOM(config) {
|
|
36
36
|
const tag = 'mention';
|
|
37
37
|
const dom = document.createElement(tag);
|
|
@@ -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 {};
|
|
@@ -106,7 +106,7 @@ export default function Event(inProps) {
|
|
|
106
106
|
});
|
|
107
107
|
const { id = `event_object_${props.eventId ? props.eventId : props.event ? props.event.id : ''}`, eventId = null, event = null, className = null, template = SCEventTemplateType.SNIPPET, hideInProgress = false, hideEventParticipants = false, hideEventPlanner = false, actions, EventParticipantsButtonComponentProps = {}, EventSkeletonComponentProps = {} } = props, rest = __rest(props, ["id", "eventId", "event", "className", "template", "hideInProgress", "hideEventParticipants", "hideEventPlanner", "actions", "EventParticipantsButtonComponentProps", "EventSkeletonComponentProps"]);
|
|
108
108
|
// STATE
|
|
109
|
-
const { scEvent } = useSCFetchEvent({ id: eventId, event });
|
|
109
|
+
const { scEvent } = useSCFetchEvent({ id: eventId, event, autoSubscribe: false });
|
|
110
110
|
const inProgress = useMemo(() => scEvent && scEvent.active && scEvent.running, [scEvent]);
|
|
111
111
|
// CONTEXT
|
|
112
112
|
const scRoutingContext = useSCRouting();
|
|
@@ -1,21 +1,11 @@
|
|
|
1
|
+
import { BoxProps } from '@mui/material';
|
|
1
2
|
import { SCEventType } from '@selfcommunity/types';
|
|
2
|
-
|
|
3
|
-
export interface EventFormProps extends BaseDialogProps {
|
|
3
|
+
export interface EventFormProps extends BoxProps {
|
|
4
4
|
/**
|
|
5
5
|
* Overrides or extends the styles applied to the component.
|
|
6
6
|
* @default null
|
|
7
7
|
*/
|
|
8
8
|
className?: string;
|
|
9
|
-
/**
|
|
10
|
-
* Open dialog
|
|
11
|
-
* @default true
|
|
12
|
-
*/
|
|
13
|
-
open?: boolean;
|
|
14
|
-
/**
|
|
15
|
-
* On dialog close callback function
|
|
16
|
-
* @default null
|
|
17
|
-
*/
|
|
18
|
-
onClose?: () => void;
|
|
19
9
|
/**
|
|
20
10
|
* Event Object
|
|
21
11
|
* @default null
|
|
@@ -26,6 +16,11 @@ export interface EventFormProps extends BaseDialogProps {
|
|
|
26
16
|
* @default null
|
|
27
17
|
*/
|
|
28
18
|
onSuccess?: (data: SCEventType) => void;
|
|
19
|
+
/**
|
|
20
|
+
* On error callback function
|
|
21
|
+
* @default null
|
|
22
|
+
*/
|
|
23
|
+
onError?: (error: any) => void;
|
|
29
24
|
/**
|
|
30
25
|
* Any other properties
|
|
31
26
|
*/
|