@selfcommunity/react-ui 0.11.0-alpha.98 → 0.11.0-mui7.13
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/composer/avi.d.ts +2 -0
- package/lib/cjs/assets/composer/avi.js +3 -0
- package/lib/cjs/assets/composer/doc.d.ts +2 -0
- package/lib/cjs/assets/composer/doc.js +3 -0
- package/lib/cjs/assets/composer/fallback.d.ts +2 -0
- package/lib/cjs/assets/composer/fallback.js +3 -0
- package/lib/cjs/assets/composer/jpg.d.ts +2 -0
- package/lib/cjs/assets/composer/jpg.js +3 -0
- package/lib/cjs/assets/composer/mp3.d.ts +2 -0
- package/lib/cjs/assets/composer/mp3.js +3 -0
- package/lib/cjs/assets/composer/pdf.d.ts +2 -0
- package/lib/cjs/assets/composer/pdf.js +3 -0
- package/lib/cjs/assets/composer/ppt.d.ts +2 -0
- package/lib/cjs/assets/composer/ppt.js +3 -0
- package/lib/cjs/assets/composer/psd.d.ts +2 -0
- package/lib/cjs/assets/composer/psd.js +3 -0
- package/lib/cjs/assets/composer/txt.d.ts +2 -0
- package/lib/cjs/assets/composer/txt.js +3 -0
- package/lib/cjs/assets/composer/xls.d.ts +2 -0
- package/lib/cjs/assets/composer/xls.js +3 -0
- package/lib/cjs/assets/courses/clapping.d.ts +2 -1
- package/lib/cjs/assets/courses/clapping.js +1 -2
- package/lib/cjs/components/BottomNavigation/BottomNavigation.d.ts +1 -1
- package/lib/cjs/components/BuyButton/BuyButton.js +7 -3
- package/lib/cjs/components/Categories/Categories.js +1 -1
- package/lib/cjs/components/Categories/Skeleton.js +1 -1
- package/lib/cjs/components/Category/Category.js +2 -4
- package/lib/cjs/components/CategoryAutocomplete/CategoryAutocomplete.d.ts +1 -1
- package/lib/cjs/components/CategoryAutocomplete/CategoryAutocomplete.js +4 -4
- package/lib/cjs/components/Checkout/Checkout.d.ts +1 -1
- package/lib/cjs/components/Checkout/CheckoutHeaderInfoWidget.d.ts +1 -1
- package/lib/cjs/components/Checkout/Skeleton.js +1 -3
- package/lib/cjs/components/CheckoutReturnDialog/CheckoutReturnDialog.d.ts +1 -1
- package/lib/cjs/components/CheckoutReturnDialog/CheckoutReturnDialog.js +3 -3
- package/lib/cjs/components/CommentObjectReply/CommentObjectReply.js +1 -1
- package/lib/cjs/components/CommentsFeedObject/CommentsFeedObject.js +1 -1
- package/lib/cjs/components/CommunityPaywalls/CommunityPaywalls.d.ts +1 -1
- package/lib/cjs/components/CommunityPaywalls/CommunityPaywalls.js +3 -4
- package/lib/cjs/components/CommunityPaywalls/Skeleton.d.ts +3 -3
- package/lib/cjs/components/CommunityPaywalls/Skeleton.js +2 -3
- package/lib/cjs/components/Composer/Attributes/Attributes.js +1 -1
- package/lib/cjs/components/Composer/Composer.js +18 -14
- package/lib/cjs/components/Composer/Content/ContentDiscussion/ContentDiscussion.js +5 -3
- package/lib/cjs/components/Composer/Content/ContentLesson/ContentLesson.js +2 -2
- package/lib/cjs/components/Composer/Content/ContentPoll/ContentPoll.js +12 -8
- package/lib/cjs/components/Composer/Content/ContentPost/ContentPost.js +2 -2
- package/lib/cjs/components/Composer/Layer/AudienceLayer/AudienceLayer.d.ts +1 -1
- package/lib/cjs/components/Composer/Layer/AudienceLayer/AudienceLayer.js +33 -29
- package/lib/cjs/components/Composer/Layer/CategoryLayer/CategoryLayer.d.ts +1 -1
- package/lib/cjs/components/Composer/Layer/CloseLayer/CloseLayer.d.ts +1 -1
- package/lib/cjs/components/Composer/Layer/LocationLayer/LocationLayer.d.ts +1 -1
- package/lib/cjs/components/Composer/Layer/ScheduledLayer/ScheduledLayer.d.ts +1 -1
- package/lib/cjs/components/ComposerIconButton/ComposerIconButton.d.ts +1 -1
- package/lib/cjs/components/ConsentSolution/ConsentSolution.js +3 -2
- package/lib/cjs/components/CourseCompletedDialog/CourseCompletedDialog.d.ts +1 -1
- package/lib/cjs/components/CourseCompletedDialog/CourseCompletedDialog.js +2 -2
- package/lib/cjs/components/CourseDashboard/Header/Skeleton.d.ts +1 -1
- package/lib/cjs/components/CourseDashboard/Header.d.ts +1 -1
- package/lib/cjs/components/CourseDashboard/Student/ActionButton.d.ts +1 -1
- package/lib/cjs/components/CourseDashboard/Student/Skeleton.d.ts +1 -1
- package/lib/cjs/components/CourseDashboard/Student.d.ts +1 -1
- package/lib/cjs/components/CourseDashboard/Student.js +3 -3
- package/lib/cjs/components/CourseDashboard/Teacher/Comments.d.ts +1 -1
- package/lib/cjs/components/CourseDashboard/Teacher/Info.d.ts +1 -1
- package/lib/cjs/components/CourseDashboard/Teacher/Skeleton.d.ts +1 -1
- package/lib/cjs/components/CourseDashboard/Teacher/Students.d.ts +1 -1
- package/lib/cjs/components/CourseDashboard/Teacher.d.ts +1 -1
- package/lib/cjs/components/CourseDashboard/Teacher.js +1 -1
- package/lib/cjs/components/CourseDashboard/index.d.ts +2 -2
- package/lib/cjs/components/CourseForm/CourseForm.js +8 -4
- package/lib/cjs/components/CourseForm/Dialog.d.ts +1 -1
- package/lib/cjs/components/CourseForm/Skeleton.d.ts +1 -1
- package/lib/cjs/components/CourseParticipantsButton/CourseParticipantsButton.d.ts +1 -1
- package/lib/cjs/components/Courses/Courses.d.ts +0 -4
- package/lib/cjs/components/Courses/Courses.js +9 -10
- package/lib/cjs/components/Courses/Skeleton.js +1 -1
- package/lib/cjs/components/CreateEventWidget/CreateEventWidget.d.ts +1 -1
- package/lib/cjs/components/CreateEventWidget/Skeleton.d.ts +1 -1
- package/lib/cjs/components/CreateLiveStreamDialog/CreateLiveStreamDialog.js +7 -1
- package/lib/cjs/components/CreateLiveStreamDialog/LiveStreamSelector/LiveStreamSelector.js +4 -7
- package/lib/cjs/components/CreatePaymentProductForm/CreatePaymentProductForm.d.ts +1 -1
- package/lib/cjs/components/CreatePaymentProductForm/CreatePaymentProductForm.js +5 -3
- package/lib/cjs/components/EditCourse/Customize.d.ts +1 -1
- package/lib/cjs/components/EditCourse/EditCourse.d.ts +1 -1
- package/lib/cjs/components/EditCourse/EditCourse.js +1 -1
- package/lib/cjs/components/EditCourse/Lessons/AddButton.d.ts +1 -1
- package/lib/cjs/components/EditCourse/Lessons/ChangeLessonStatus.d.ts +1 -1
- package/lib/cjs/components/EditCourse/Lessons/FieldName.d.ts +1 -1
- package/lib/cjs/components/EditCourse/Lessons/Skeleton.d.ts +1 -1
- package/lib/cjs/components/EditCourse/Lessons.d.ts +1 -1
- package/lib/cjs/components/EditCourse/MenuRow.d.ts +1 -1
- package/lib/cjs/components/EditCourse/Options/Skeleton.d.ts +1 -1
- package/lib/cjs/components/EditCourse/Options/SwitchForm.d.ts +1 -1
- package/lib/cjs/components/EditCourse/Options.d.ts +1 -1
- package/lib/cjs/components/EditCourse/Requests.d.ts +1 -1
- package/lib/cjs/components/EditCourse/Skeleton.d.ts +1 -1
- package/lib/cjs/components/EditCourse/Status.d.ts +1 -1
- package/lib/cjs/components/EditCourse/Users/Skeleton.d.ts +1 -1
- package/lib/cjs/components/EditCourse/Users.d.ts +1 -1
- package/lib/cjs/components/Editor/Editor.d.ts +1 -1
- package/lib/cjs/components/Editor/Editor.js +3 -3
- 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 +2 -2
- package/lib/cjs/components/Editor/plugins/EmojiPlugin.js +4 -2
- package/lib/cjs/components/Editor/plugins/FloatingLinkPlugin.js +6 -4
- package/lib/cjs/components/Editor/plugins/MediaPlugin.d.ts +1 -1
- package/lib/cjs/components/Editor/plugins/MediaPlugin.js +9 -4
- 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/EventAutocomplete/EventAutocomplete.js +5 -3
- package/lib/cjs/components/EventForm/EventAddress.js +6 -2
- package/lib/cjs/components/EventForm/EventForm.js +20 -12
- package/lib/cjs/components/EventForm/types.d.ts +5 -5
- package/lib/cjs/components/EventInfoWidget/EventInfoWidget.d.ts +1 -1
- package/lib/cjs/components/EventInfoWidget/Skeleton.d.ts +1 -1
- package/lib/cjs/components/EventInfoWidget/index.d.ts +1 -1
- package/lib/cjs/components/EventInviteButton/EventInviteButton.js +3 -1
- package/lib/cjs/components/EventMediaWidget/EventMediaWidget.d.ts +1 -1
- package/lib/cjs/components/EventMediaWidget/Skeleton.d.ts +2 -2
- package/lib/cjs/components/EventMediaWidget/TriggerButton.d.ts +1 -1
- package/lib/cjs/components/EventMediaWidget/asUploadButton.d.ts +2 -2
- package/lib/cjs/components/EventMediaWidget/index.d.ts +2 -1
- package/lib/cjs/components/EventMembersWidget/EventMembersWidget.d.ts +1 -1
- package/lib/cjs/components/EventMembersWidget/EventMembersWidget.js +3 -3
- package/lib/cjs/components/EventMembersWidget/Skeleton.d.ts +1 -1
- package/lib/cjs/components/EventMembersWidget/Skeleton.js +1 -1
- package/lib/cjs/components/EventMembersWidget/TabContentComponent.d.ts +1 -1
- package/lib/cjs/components/EventMembersWidget/index.d.ts +1 -1
- package/lib/cjs/components/EventParticipantsButton/EventParticipantsButton.d.ts +1 -1
- package/lib/cjs/components/EventSubscribeButton/EventSubscribeButton.js +10 -2
- package/lib/cjs/components/Events/Events.d.ts +0 -4
- package/lib/cjs/components/Events/Events.js +14 -9
- package/lib/cjs/components/Events/LocationEventsFilter.js +5 -1
- package/lib/cjs/components/Events/OngoingEventsFilter.js +6 -2
- package/lib/cjs/components/Events/PastEventsFilter.js +6 -2
- package/lib/cjs/components/Events/Skeleton.js +1 -1
- package/lib/cjs/components/Feed/Feed.d.ts +2 -2
- package/lib/cjs/components/Feed/Feed.js +10 -11
- package/lib/cjs/components/Feed/Skeleton.d.ts +1 -1
- package/lib/cjs/components/Feed/Skeleton.js +1 -1
- package/lib/cjs/components/FeedObject/Actions/Actions.js +2 -3
- package/lib/cjs/components/FeedObject/Activities/ActivitiesMenu/ActivitiesMenu.d.ts +1 -1
- package/lib/cjs/components/FeedObject/Activities/ActivitiesMenu/ActivitiesMenu.js +19 -17
- package/lib/cjs/components/FeedObject/FeedObject.js +1 -1
- package/lib/cjs/components/FooterWidget/FooterWidget.d.ts +1 -1
- package/lib/cjs/components/GroupActionsMenu/index.js +9 -1
- package/lib/cjs/components/GroupAutocomplete/GroupAutocomplete.js +5 -3
- package/lib/cjs/components/GroupForm/GroupForm.js +8 -18
- package/lib/cjs/components/GroupInviteButton/GroupInviteButton.js +8 -6
- package/lib/cjs/components/GroupSettingsIconButton/GroupSettingsIconButton.js +9 -3
- package/lib/cjs/components/Groups/Groups.js +9 -9
- package/lib/cjs/components/Groups/Skeleton.js +1 -2
- package/lib/cjs/components/Incubator/Incubator.js +2 -2
- package/lib/cjs/components/Incubator/Skeleton.js +1 -1
- package/lib/cjs/components/LessonReleaseMenu/LessonReleaseMenu.js +12 -6
- package/lib/cjs/components/LiveStreamForm/LiveStreamForm.js +13 -9
- package/lib/cjs/components/LiveStreamForm/types.d.ts +3 -3
- package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/ControlBar.d.ts +2 -2
- package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/DisconnectButton.js +5 -1
- package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/FocusLayout.d.ts +4 -4
- package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/LiveStreamSettingsMenu.js +7 -3
- package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/ParticipantPlaceholder.d.ts +1 -1
- package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/ParticipantTile.d.ts +2 -2
- package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/PreJoin.d.ts +1 -1
- package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/RecordingIndicator.d.ts +1 -1
- package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/SettingsMenuToggle.d.ts +1 -1
- package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/TrackToggle.d.ts +1 -1
- package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/VideoConference.d.ts +1 -1
- package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/utils.d.ts +2 -2
- package/lib/cjs/components/LiveStreamRoom/types.d.ts +1 -1
- package/lib/cjs/components/LocationAutocomplete/LocationAutocomplete.js +8 -8
- package/lib/cjs/components/MyEventsWidget/MyEventsWidget.d.ts +1 -1
- package/lib/cjs/components/MyEventsWidget/Skeleton.d.ts +1 -1
- package/lib/cjs/components/MyEventsWidget/index.d.ts +1 -1
- package/lib/cjs/components/NavigationMenuIconButton/DefaultDrawerContent.d.ts +2 -1
- package/lib/cjs/components/NavigationMenuIconButton/DefaultDrawerContent.js +4 -4
- package/lib/cjs/components/NavigationMenuIconButton/DefaultDrawerSkeleton.d.ts +1 -1
- package/lib/cjs/components/NavigationMenuIconButton/DefaultHeaderContent.d.ts +2 -2
- package/lib/cjs/components/NavigationMenuIconButton/NavigationMenuDrawer.js +3 -3
- package/lib/cjs/components/NavigationSettingsIconButton/NavigationSettingsIconButton.js +9 -1
- package/lib/cjs/components/NavigationToolbar/NavigationToolbar.d.ts +1 -1
- package/lib/cjs/components/NavigationToolbar/NotificationMenu.d.ts +1 -1
- package/lib/cjs/components/NavigationToolbar/NotificationMenu.js +2 -5
- package/lib/cjs/components/NavigationToolbarMobile/NavigationToolbarMobile.d.ts +1 -1
- package/lib/cjs/components/OnBoardingWidget/ActionsButton.js +12 -4
- package/lib/cjs/components/OnBoardingWidget/OnBoardingWidget.d.ts +1 -1
- package/lib/cjs/components/OnBoardingWidget/OnBoardingWidget.js +11 -22
- package/lib/cjs/components/OnBoardingWidget/Steps/App/App.d.ts +1 -1
- package/lib/cjs/components/OnBoardingWidget/Steps/Appearance/Appearance.d.ts +1 -1
- package/lib/cjs/components/OnBoardingWidget/Steps/Appearance/Appearance.js +15 -11
- package/lib/cjs/components/OnBoardingWidget/Steps/Category/Category.d.ts +1 -1
- package/lib/cjs/components/OnBoardingWidget/Steps/Content/Content.d.ts +1 -1
- package/lib/cjs/components/OnBoardingWidget/Steps/Invite/Invite.d.ts +1 -1
- package/lib/cjs/components/OnBoardingWidget/Steps/Profile/Profile.d.ts +1 -1
- package/lib/cjs/components/PaymentDetailDialog/PaymentDetailDialog.d.ts +1 -1
- package/lib/cjs/components/PaymentDetailDialog/PaymentDetailDialog.js +5 -3
- package/lib/cjs/components/PaymentOrder/PaymentOrder.d.ts +1 -1
- package/lib/cjs/components/PaymentOrders/PaymentOrders.d.ts +1 -1
- package/lib/cjs/components/PaymentOrders/PaymentOrders.js +17 -11
- package/lib/cjs/components/PaymentProduct/PaymentProduct.d.ts +2 -2
- package/lib/cjs/components/PaymentProduct/PaymentProduct.js +1 -1
- package/lib/cjs/components/PaymentProduct/Skeleton.js +1 -1
- package/lib/cjs/components/PaymentProductPrice/PaymentProductPrice.d.ts +1 -1
- package/lib/cjs/components/PaymentProducts/PaymentProducts.d.ts +1 -1
- package/lib/cjs/components/PaymentProducts/Skeleton.js +1 -1
- package/lib/cjs/components/Paywalls/Paywalls.d.ts +1 -1
- package/lib/cjs/components/Paywalls/Skeleton.js +1 -1
- package/lib/cjs/components/PaywallsConfigurator/PaywallsConfigurator.d.ts +1 -1
- package/lib/cjs/components/PaywallsConfigurator/PaywallsConfigurator.js +5 -5
- package/lib/cjs/components/PaywallsConfigurator/Skeleton.js +1 -1
- package/lib/cjs/components/PaywallsDialog/PaywallsDialog.d.ts +1 -1
- package/lib/cjs/components/PaywallsDialog/PaywallsDialog.js +6 -4
- package/lib/cjs/components/PdfPreviewDialog/PdfPreviewDialog.d.ts +1 -1
- package/lib/cjs/components/PdfPreviewDialog/PdfPreviewDialog.js +3 -1
- package/lib/cjs/components/PlatformWidget/PlatformWidget.js +4 -4
- package/lib/cjs/components/PlatformWidget/Skeleton.js +1 -1
- package/lib/cjs/components/PrivateMessageComponent/PrivateMessageComponent.js +3 -3
- package/lib/cjs/components/PrivateMessageComponent/Skeleton.d.ts +1 -1
- package/lib/cjs/components/PrivateMessageComponent/Skeleton.js +1 -1
- package/lib/cjs/components/PrivateMessageEditor/PrivateMessageEditor.js +6 -4
- package/lib/cjs/components/PrivateMessageSettingsIconButton/PrivateMessageSettingsIconButton.js +9 -1
- package/lib/cjs/components/PrivateMessageSnippets/PrivateMessageSnippets.js +10 -8
- package/lib/cjs/components/PrivateMessageThread/PrivateMessageThread.d.ts +1 -1
- package/lib/cjs/components/PrivateMessageThread/PrivateMessageThread.js +6 -6
- package/lib/cjs/components/RelatedEventsWidget/RelatedEventsWidget.d.ts +1 -1
- package/lib/cjs/components/RelatedEventsWidget/Skeleton.d.ts +1 -1
- package/lib/cjs/components/RelatedEventsWidget/index.d.ts +1 -1
- package/lib/cjs/components/SearchAutocomplete/SearchAutocomplete.d.ts +1 -1
- package/lib/cjs/components/SearchAutocomplete/SearchAutocomplete.js +9 -7
- package/lib/cjs/components/SearchDialog/SearchDialog.d.ts +1 -1
- package/lib/cjs/components/SuggestedEventsWidget/Arrow.d.ts +1 -1
- package/lib/cjs/components/SuggestedEventsWidget/Skeleton.d.ts +1 -1
- package/lib/cjs/components/SuggestedEventsWidget/SuggestedEventsWidget.d.ts +1 -1
- package/lib/cjs/components/SuggestedEventsWidget/index.d.ts +1 -1
- package/lib/cjs/components/TagAutocomplete/TagAutocomplete.js +62 -20
- package/lib/cjs/components/UserActionIconButton/UserActionIconButton.js +9 -8
- package/lib/cjs/components/UserAutocomplete/UserAutocomplete.js +33 -18
- package/lib/cjs/components/UserBillingInfo/Skeleton.js +1 -1
- package/lib/cjs/components/UserBillingInfo/UserBillingInfo.d.ts +2 -2
- package/lib/cjs/components/UserBillingInfo/UserBillingInfo.js +30 -21
- package/lib/cjs/components/UserInfoDialog/UserInfoDialog.d.ts +1 -1
- package/lib/cjs/components/UserLiveStreamWidget/Skeleton.d.ts +1 -1
- package/lib/cjs/components/UserLiveStreamWidget/UserLiveStreamWidget.d.ts +1 -1
- package/lib/cjs/components/UserLiveStreamWidget/index.d.ts +1 -1
- package/lib/cjs/components/UserPaymentMethods/Skeleton.d.ts +1 -1
- package/lib/cjs/components/UserPaymentMethods/UserPaymentMethods.d.ts +2 -2
- package/lib/cjs/components/UserProfileEdit/Section/AccountCredentials.js +9 -5
- package/lib/cjs/components/UserProfileEdit/Skeleton.js +1 -1
- package/lib/cjs/components/Widget/index.d.ts +1 -1
- package/lib/cjs/shared/AccordionLessons/AccordionLessons.d.ts +1 -1
- package/lib/cjs/shared/AccordionLessons/Skeleton.d.ts +1 -1
- package/lib/cjs/shared/AddUsersButton/AddUsersButton.d.ts +1 -1
- package/lib/cjs/shared/AddUsersButton/AddUsersButton.js +3 -1
- package/lib/cjs/shared/AutoPlayer/index.d.ts +1 -1
- package/lib/cjs/shared/BaseDialog/BaseDialog.d.ts +1 -1
- package/lib/cjs/shared/Calendar/index.d.ts +1 -1
- package/lib/cjs/shared/CopyTextArea/index.js +13 -6
- package/lib/cjs/shared/CourseTypePopover/CourseTypePopover.d.ts +1 -1
- package/lib/cjs/shared/CourseUsersTable/ChangeUsersStatus.d.ts +1 -1
- package/lib/cjs/shared/CourseUsersTable/CourseUsersTable.d.ts +2 -2
- package/lib/cjs/shared/CourseUsersTable/CourseUsersTable.js +5 -3
- package/lib/cjs/shared/CourseUsersTable/RowSkeleton.d.ts +1 -1
- package/lib/cjs/shared/CourseUsersTable/SeeProgressButton.d.ts +1 -1
- package/lib/cjs/shared/CourseUsersTable/Skeleton.d.ts +1 -1
- package/lib/cjs/shared/DateTimeAgo/index.js +2 -2
- package/lib/cjs/shared/EmptyStatus/EmptyStatus.d.ts +1 -1
- package/lib/cjs/shared/EventActionsMenu/index.js +9 -1
- package/lib/cjs/shared/EventInfoDetails/index.d.ts +1 -1
- package/lib/cjs/shared/InfiniteScroll/index.d.ts +2 -2
- package/lib/cjs/shared/InfiniteScroll/stories/InfiniteScrollWithHeight.d.ts +1 -1
- package/lib/cjs/shared/InfiniteScroll/stories/PullDownToRefreshInfScroll.d.ts +1 -1
- package/lib/cjs/shared/InfiniteScroll/stories/ScrollableTargetFixedInfScroll.d.ts +1 -1
- package/lib/cjs/shared/InfiniteScroll/stories/ScrollableTargetInfScroll.d.ts +1 -1
- package/lib/cjs/shared/InfiniteScroll/stories/ScrolleableTop.d.ts +1 -1
- package/lib/cjs/shared/InfiniteScroll/stories/WindowInfiniteScrollComponent.d.ts +1 -1
- package/lib/cjs/shared/Lightbox/BaseLightbox.d.ts +1 -1
- package/lib/cjs/shared/Lightbox/Lightbox.d.ts +1 -1
- package/lib/cjs/shared/LiveStreamInfoDetails/index.d.ts +1 -1
- package/lib/cjs/shared/Media/File/DisplayComponent.js +7 -30
- package/lib/cjs/shared/Media/File/DocComponent.d.ts +2 -3
- package/lib/cjs/shared/Media/File/DocComponent.js +45 -5
- package/lib/cjs/shared/Media/File/PreviewComponent.d.ts +1 -1
- package/lib/cjs/shared/Media/File/PreviewComponent.js +1 -1
- package/lib/cjs/shared/Media/File/TriggerButton.js +32 -8
- package/lib/cjs/shared/Media/File/asUploadButton.d.ts +1 -1
- package/lib/cjs/shared/Media/Link/LayerComponent.d.ts +1 -1
- package/lib/cjs/shared/Media/Link/PreviewComponent.d.ts +1 -1
- package/lib/cjs/shared/Media/Link/UrlTextField/index.d.ts +1 -1
- package/lib/cjs/shared/Media/Link/UrlTextField/index.js +3 -1
- package/lib/cjs/shared/MetadataField/MetadataField.d.ts +1 -1
- package/lib/cjs/shared/PasswordTextField/index.js +6 -4
- package/lib/cjs/shared/ProgressBar/index.d.ts +1 -1
- package/lib/cjs/shared/StickyBox/index.d.ts +4 -4
- package/lib/cjs/shared/TagChip/index.d.ts +7 -48
- package/lib/cjs/shared/TagChip/index.js +8 -4
- package/lib/cjs/shared/Tags/index.js +2 -2
- package/lib/cjs/shared/UpScalingTierBadge/UpScalingTierBadge.d.ts +1 -1
- package/lib/cjs/shared/UsernameTextField/index.d.ts +1 -1
- package/lib/cjs/shared/VirtualizedScroller/VirtualScrollerChild.d.ts +1 -1
- package/lib/cjs/types/composer.d.ts +1 -1
- package/lib/cjs/utils/buttonCounters.d.ts +1 -1
- package/lib/esm/assets/composer/avi.d.ts +2 -0
- package/lib/esm/assets/composer/avi.js +1 -0
- package/lib/esm/assets/composer/doc.d.ts +2 -0
- package/lib/esm/assets/composer/doc.js +1 -0
- package/lib/esm/assets/composer/fallback.d.ts +2 -0
- package/lib/esm/assets/composer/fallback.js +1 -0
- package/lib/esm/assets/composer/jpg.d.ts +2 -0
- package/lib/esm/assets/composer/jpg.js +1 -0
- package/lib/esm/assets/composer/mp3.d.ts +2 -0
- package/lib/esm/assets/composer/mp3.js +1 -0
- package/lib/esm/assets/composer/pdf.d.ts +2 -0
- package/lib/esm/assets/composer/pdf.js +1 -0
- package/lib/esm/assets/composer/ppt.d.ts +2 -0
- package/lib/esm/assets/composer/ppt.js +1 -0
- package/lib/esm/assets/composer/psd.d.ts +2 -0
- package/lib/esm/assets/composer/psd.js +1 -0
- package/lib/esm/assets/composer/txt.d.ts +2 -0
- package/lib/esm/assets/composer/txt.js +1 -0
- package/lib/esm/assets/composer/xls.d.ts +2 -0
- package/lib/esm/assets/composer/xls.js +1 -0
- package/lib/esm/assets/courses/clapping.d.ts +2 -1
- package/lib/esm/assets/courses/clapping.js +1 -1
- package/lib/esm/components/BottomNavigation/BottomNavigation.d.ts +1 -1
- package/lib/esm/components/BuyButton/BuyButton.js +7 -3
- package/lib/esm/components/Categories/Categories.js +1 -1
- package/lib/esm/components/Categories/Skeleton.js +1 -1
- package/lib/esm/components/Category/Category.js +3 -5
- package/lib/esm/components/CategoryAutocomplete/CategoryAutocomplete.d.ts +1 -1
- package/lib/esm/components/CategoryAutocomplete/CategoryAutocomplete.js +5 -5
- package/lib/esm/components/Checkout/Checkout.d.ts +1 -1
- package/lib/esm/components/Checkout/CheckoutHeaderInfoWidget.d.ts +1 -1
- package/lib/esm/components/Checkout/Skeleton.js +2 -4
- package/lib/esm/components/CheckoutReturnDialog/CheckoutReturnDialog.d.ts +1 -1
- package/lib/esm/components/CheckoutReturnDialog/CheckoutReturnDialog.js +3 -3
- package/lib/esm/components/CommentObjectReply/CommentObjectReply.js +1 -1
- package/lib/esm/components/CommentsFeedObject/CommentsFeedObject.js +1 -1
- package/lib/esm/components/CommunityPaywalls/CommunityPaywalls.d.ts +1 -1
- package/lib/esm/components/CommunityPaywalls/CommunityPaywalls.js +3 -4
- package/lib/esm/components/CommunityPaywalls/Skeleton.d.ts +3 -3
- package/lib/esm/components/CommunityPaywalls/Skeleton.js +2 -3
- package/lib/esm/components/Composer/Attributes/Attributes.js +1 -1
- package/lib/esm/components/Composer/Composer.js +18 -14
- package/lib/esm/components/Composer/Content/ContentDiscussion/ContentDiscussion.js +5 -3
- package/lib/esm/components/Composer/Content/ContentLesson/ContentLesson.js +2 -2
- package/lib/esm/components/Composer/Content/ContentPoll/ContentPoll.js +12 -8
- package/lib/esm/components/Composer/Content/ContentPost/ContentPost.js +2 -2
- package/lib/esm/components/Composer/Layer/AudienceLayer/AudienceLayer.d.ts +1 -1
- package/lib/esm/components/Composer/Layer/AudienceLayer/AudienceLayer.js +34 -30
- package/lib/esm/components/Composer/Layer/CategoryLayer/CategoryLayer.d.ts +1 -1
- package/lib/esm/components/Composer/Layer/CloseLayer/CloseLayer.d.ts +1 -1
- package/lib/esm/components/Composer/Layer/LocationLayer/LocationLayer.d.ts +1 -1
- package/lib/esm/components/Composer/Layer/ScheduledLayer/ScheduledLayer.d.ts +1 -1
- package/lib/esm/components/ComposerIconButton/ComposerIconButton.d.ts +1 -1
- package/lib/esm/components/ConsentSolution/ConsentSolution.js +3 -2
- package/lib/esm/components/CourseCompletedDialog/CourseCompletedDialog.d.ts +1 -1
- package/lib/esm/components/CourseCompletedDialog/CourseCompletedDialog.js +2 -2
- package/lib/esm/components/CourseDashboard/Header/Skeleton.d.ts +1 -1
- package/lib/esm/components/CourseDashboard/Header.d.ts +1 -1
- package/lib/esm/components/CourseDashboard/Student/ActionButton.d.ts +1 -1
- package/lib/esm/components/CourseDashboard/Student/Skeleton.d.ts +1 -1
- package/lib/esm/components/CourseDashboard/Student.d.ts +1 -1
- package/lib/esm/components/CourseDashboard/Student.js +3 -3
- package/lib/esm/components/CourseDashboard/Teacher/Comments.d.ts +1 -1
- package/lib/esm/components/CourseDashboard/Teacher/Info.d.ts +1 -1
- package/lib/esm/components/CourseDashboard/Teacher/Skeleton.d.ts +1 -1
- package/lib/esm/components/CourseDashboard/Teacher/Students.d.ts +1 -1
- package/lib/esm/components/CourseDashboard/Teacher.d.ts +1 -1
- package/lib/esm/components/CourseDashboard/Teacher.js +1 -1
- package/lib/esm/components/CourseDashboard/index.d.ts +2 -2
- package/lib/esm/components/CourseForm/CourseForm.js +8 -4
- package/lib/esm/components/CourseForm/Dialog.d.ts +1 -1
- package/lib/esm/components/CourseForm/Skeleton.d.ts +1 -1
- package/lib/esm/components/CourseParticipantsButton/CourseParticipantsButton.d.ts +1 -1
- package/lib/esm/components/Courses/Courses.d.ts +0 -4
- package/lib/esm/components/Courses/Courses.js +9 -9
- package/lib/esm/components/Courses/Skeleton.js +1 -1
- package/lib/esm/components/CreateEventWidget/CreateEventWidget.d.ts +1 -1
- package/lib/esm/components/CreateEventWidget/Skeleton.d.ts +1 -1
- package/lib/esm/components/CreateLiveStreamDialog/CreateLiveStreamDialog.js +7 -1
- package/lib/esm/components/CreateLiveStreamDialog/LiveStreamSelector/LiveStreamSelector.js +5 -8
- package/lib/esm/components/CreatePaymentProductForm/CreatePaymentProductForm.d.ts +1 -1
- package/lib/esm/components/CreatePaymentProductForm/CreatePaymentProductForm.js +5 -3
- package/lib/esm/components/EditCourse/Customize.d.ts +1 -1
- package/lib/esm/components/EditCourse/EditCourse.d.ts +1 -1
- package/lib/esm/components/EditCourse/EditCourse.js +1 -1
- package/lib/esm/components/EditCourse/Lessons/AddButton.d.ts +1 -1
- package/lib/esm/components/EditCourse/Lessons/ChangeLessonStatus.d.ts +1 -1
- package/lib/esm/components/EditCourse/Lessons/FieldName.d.ts +1 -1
- package/lib/esm/components/EditCourse/Lessons/Skeleton.d.ts +1 -1
- package/lib/esm/components/EditCourse/Lessons.d.ts +1 -1
- package/lib/esm/components/EditCourse/MenuRow.d.ts +1 -1
- package/lib/esm/components/EditCourse/Options/Skeleton.d.ts +1 -1
- package/lib/esm/components/EditCourse/Options/SwitchForm.d.ts +1 -1
- package/lib/esm/components/EditCourse/Options.d.ts +1 -1
- package/lib/esm/components/EditCourse/Requests.d.ts +1 -1
- package/lib/esm/components/EditCourse/Skeleton.d.ts +1 -1
- package/lib/esm/components/EditCourse/Status.d.ts +1 -1
- package/lib/esm/components/EditCourse/Users/Skeleton.d.ts +1 -1
- package/lib/esm/components/EditCourse/Users.d.ts +1 -1
- package/lib/esm/components/Editor/Editor.d.ts +1 -1
- package/lib/esm/components/Editor/Editor.js +3 -3
- 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 +2 -2
- package/lib/esm/components/Editor/plugins/EmojiPlugin.js +4 -2
- package/lib/esm/components/Editor/plugins/FloatingLinkPlugin.js +6 -4
- package/lib/esm/components/Editor/plugins/MediaPlugin.d.ts +1 -1
- package/lib/esm/components/Editor/plugins/MediaPlugin.js +11 -6
- 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/EventAutocomplete/EventAutocomplete.js +6 -4
- package/lib/esm/components/EventForm/EventAddress.js +6 -2
- package/lib/esm/components/EventForm/EventForm.js +20 -12
- package/lib/esm/components/EventForm/types.d.ts +5 -5
- package/lib/esm/components/EventInfoWidget/EventInfoWidget.d.ts +1 -1
- package/lib/esm/components/EventInfoWidget/Skeleton.d.ts +1 -1
- package/lib/esm/components/EventInfoWidget/index.d.ts +1 -1
- package/lib/esm/components/EventInviteButton/EventInviteButton.js +3 -1
- package/lib/esm/components/EventMediaWidget/EventMediaWidget.d.ts +1 -1
- package/lib/esm/components/EventMediaWidget/Skeleton.d.ts +2 -2
- package/lib/esm/components/EventMediaWidget/TriggerButton.d.ts +1 -1
- package/lib/esm/components/EventMediaWidget/asUploadButton.d.ts +2 -2
- package/lib/esm/components/EventMediaWidget/index.d.ts +2 -1
- package/lib/esm/components/EventMembersWidget/EventMembersWidget.d.ts +1 -1
- package/lib/esm/components/EventMembersWidget/EventMembersWidget.js +3 -3
- package/lib/esm/components/EventMembersWidget/Skeleton.d.ts +1 -1
- package/lib/esm/components/EventMembersWidget/Skeleton.js +1 -1
- package/lib/esm/components/EventMembersWidget/TabContentComponent.d.ts +1 -1
- package/lib/esm/components/EventMembersWidget/index.d.ts +1 -1
- package/lib/esm/components/EventParticipantsButton/EventParticipantsButton.d.ts +1 -1
- package/lib/esm/components/EventSubscribeButton/EventSubscribeButton.js +10 -2
- package/lib/esm/components/Events/Events.d.ts +0 -4
- package/lib/esm/components/Events/Events.js +14 -8
- package/lib/esm/components/Events/LocationEventsFilter.js +5 -1
- package/lib/esm/components/Events/OngoingEventsFilter.js +6 -2
- package/lib/esm/components/Events/PastEventsFilter.js +6 -2
- package/lib/esm/components/Events/Skeleton.js +1 -1
- package/lib/esm/components/Feed/Feed.d.ts +2 -2
- package/lib/esm/components/Feed/Feed.js +11 -12
- package/lib/esm/components/Feed/Skeleton.d.ts +1 -1
- package/lib/esm/components/Feed/Skeleton.js +2 -2
- package/lib/esm/components/FeedObject/Actions/Actions.js +2 -3
- package/lib/esm/components/FeedObject/Activities/ActivitiesMenu/ActivitiesMenu.d.ts +1 -1
- package/lib/esm/components/FeedObject/Activities/ActivitiesMenu/ActivitiesMenu.js +19 -17
- package/lib/esm/components/FeedObject/FeedObject.js +1 -1
- package/lib/esm/components/FooterWidget/FooterWidget.d.ts +1 -1
- package/lib/esm/components/GroupActionsMenu/index.js +9 -1
- package/lib/esm/components/GroupAutocomplete/GroupAutocomplete.js +6 -4
- package/lib/esm/components/GroupForm/GroupForm.js +8 -18
- package/lib/esm/components/GroupInviteButton/GroupInviteButton.js +8 -6
- package/lib/esm/components/GroupSettingsIconButton/GroupSettingsIconButton.js +9 -3
- package/lib/esm/components/Groups/Groups.js +9 -9
- package/lib/esm/components/Groups/Skeleton.js +1 -2
- package/lib/esm/components/Incubator/Incubator.js +2 -2
- package/lib/esm/components/Incubator/Skeleton.js +1 -1
- package/lib/esm/components/LessonReleaseMenu/LessonReleaseMenu.js +12 -6
- package/lib/esm/components/LiveStreamForm/LiveStreamForm.js +13 -9
- package/lib/esm/components/LiveStreamForm/types.d.ts +3 -3
- package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/ControlBar.d.ts +2 -2
- package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/DisconnectButton.js +5 -1
- package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/FocusLayout.d.ts +4 -4
- package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/LiveStreamSettingsMenu.js +7 -3
- package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/ParticipantPlaceholder.d.ts +1 -1
- package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/ParticipantTile.d.ts +2 -2
- package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/PreJoin.d.ts +1 -1
- package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/RecordingIndicator.d.ts +1 -1
- package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/SettingsMenuToggle.d.ts +1 -1
- package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/TrackToggle.d.ts +1 -1
- package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/VideoConference.d.ts +1 -1
- package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/utils.d.ts +2 -2
- package/lib/esm/components/LiveStreamRoom/types.d.ts +1 -1
- package/lib/esm/components/LocationAutocomplete/LocationAutocomplete.js +9 -9
- package/lib/esm/components/MyEventsWidget/MyEventsWidget.d.ts +1 -1
- package/lib/esm/components/MyEventsWidget/Skeleton.d.ts +1 -1
- package/lib/esm/components/MyEventsWidget/index.d.ts +1 -1
- package/lib/esm/components/NavigationMenuIconButton/DefaultDrawerContent.d.ts +2 -1
- package/lib/esm/components/NavigationMenuIconButton/DefaultDrawerContent.js +4 -4
- package/lib/esm/components/NavigationMenuIconButton/DefaultDrawerSkeleton.d.ts +1 -1
- package/lib/esm/components/NavigationMenuIconButton/DefaultHeaderContent.d.ts +2 -2
- package/lib/esm/components/NavigationMenuIconButton/NavigationMenuDrawer.js +3 -3
- package/lib/esm/components/NavigationSettingsIconButton/NavigationSettingsIconButton.js +9 -1
- package/lib/esm/components/NavigationToolbar/NavigationToolbar.d.ts +1 -1
- package/lib/esm/components/NavigationToolbar/NotificationMenu.d.ts +1 -1
- package/lib/esm/components/NavigationToolbar/NotificationMenu.js +2 -5
- package/lib/esm/components/NavigationToolbarMobile/NavigationToolbarMobile.d.ts +1 -1
- package/lib/esm/components/OnBoardingWidget/ActionsButton.js +12 -4
- package/lib/esm/components/OnBoardingWidget/OnBoardingWidget.d.ts +1 -1
- package/lib/esm/components/OnBoardingWidget/OnBoardingWidget.js +11 -22
- package/lib/esm/components/OnBoardingWidget/Steps/App/App.d.ts +1 -1
- package/lib/esm/components/OnBoardingWidget/Steps/Appearance/Appearance.d.ts +1 -1
- package/lib/esm/components/OnBoardingWidget/Steps/Appearance/Appearance.js +15 -11
- package/lib/esm/components/OnBoardingWidget/Steps/Category/Category.d.ts +1 -1
- package/lib/esm/components/OnBoardingWidget/Steps/Content/Content.d.ts +1 -1
- package/lib/esm/components/OnBoardingWidget/Steps/Invite/Invite.d.ts +1 -1
- package/lib/esm/components/OnBoardingWidget/Steps/Profile/Profile.d.ts +1 -1
- package/lib/esm/components/PaymentDetailDialog/PaymentDetailDialog.d.ts +1 -1
- package/lib/esm/components/PaymentDetailDialog/PaymentDetailDialog.js +5 -3
- package/lib/esm/components/PaymentOrder/PaymentOrder.d.ts +1 -1
- package/lib/esm/components/PaymentOrders/PaymentOrders.d.ts +1 -1
- package/lib/esm/components/PaymentOrders/PaymentOrders.js +17 -11
- package/lib/esm/components/PaymentProduct/PaymentProduct.d.ts +2 -2
- package/lib/esm/components/PaymentProduct/PaymentProduct.js +1 -1
- package/lib/esm/components/PaymentProduct/Skeleton.js +1 -1
- package/lib/esm/components/PaymentProductPrice/PaymentProductPrice.d.ts +1 -1
- package/lib/esm/components/PaymentProducts/PaymentProducts.d.ts +1 -1
- package/lib/esm/components/PaymentProducts/Skeleton.js +1 -1
- package/lib/esm/components/Paywalls/Paywalls.d.ts +1 -1
- package/lib/esm/components/Paywalls/Skeleton.js +1 -1
- package/lib/esm/components/PaywallsConfigurator/PaywallsConfigurator.d.ts +1 -1
- package/lib/esm/components/PaywallsConfigurator/PaywallsConfigurator.js +4 -4
- package/lib/esm/components/PaywallsConfigurator/Skeleton.js +1 -1
- package/lib/esm/components/PaywallsDialog/PaywallsDialog.d.ts +1 -1
- package/lib/esm/components/PaywallsDialog/PaywallsDialog.js +6 -4
- package/lib/esm/components/PdfPreviewDialog/PdfPreviewDialog.d.ts +1 -1
- package/lib/esm/components/PdfPreviewDialog/PdfPreviewDialog.js +3 -1
- package/lib/esm/components/PlatformWidget/PlatformWidget.js +4 -4
- package/lib/esm/components/PlatformWidget/Skeleton.js +1 -1
- package/lib/esm/components/PrivateMessageComponent/PrivateMessageComponent.js +3 -3
- package/lib/esm/components/PrivateMessageComponent/Skeleton.d.ts +1 -1
- package/lib/esm/components/PrivateMessageComponent/Skeleton.js +1 -1
- package/lib/esm/components/PrivateMessageEditor/PrivateMessageEditor.js +6 -4
- package/lib/esm/components/PrivateMessageSettingsIconButton/PrivateMessageSettingsIconButton.js +9 -1
- package/lib/esm/components/PrivateMessageSnippets/PrivateMessageSnippets.js +10 -8
- package/lib/esm/components/PrivateMessageThread/PrivateMessageThread.d.ts +1 -1
- package/lib/esm/components/PrivateMessageThread/PrivateMessageThread.js +6 -6
- package/lib/esm/components/RelatedEventsWidget/RelatedEventsWidget.d.ts +1 -1
- package/lib/esm/components/RelatedEventsWidget/Skeleton.d.ts +1 -1
- package/lib/esm/components/RelatedEventsWidget/index.d.ts +1 -1
- package/lib/esm/components/SearchAutocomplete/SearchAutocomplete.d.ts +1 -1
- package/lib/esm/components/SearchAutocomplete/SearchAutocomplete.js +9 -7
- package/lib/esm/components/SearchDialog/SearchDialog.d.ts +1 -1
- package/lib/esm/components/SuggestedEventsWidget/Arrow.d.ts +1 -1
- package/lib/esm/components/SuggestedEventsWidget/Skeleton.d.ts +1 -1
- package/lib/esm/components/SuggestedEventsWidget/SuggestedEventsWidget.d.ts +1 -1
- package/lib/esm/components/SuggestedEventsWidget/index.d.ts +1 -1
- package/lib/esm/components/TagAutocomplete/TagAutocomplete.js +66 -24
- package/lib/esm/components/UserActionIconButton/UserActionIconButton.js +10 -9
- package/lib/esm/components/UserAutocomplete/UserAutocomplete.js +35 -20
- package/lib/esm/components/UserBillingInfo/Skeleton.js +1 -1
- package/lib/esm/components/UserBillingInfo/UserBillingInfo.d.ts +2 -2
- package/lib/esm/components/UserBillingInfo/UserBillingInfo.js +30 -21
- package/lib/esm/components/UserInfoDialog/UserInfoDialog.d.ts +1 -1
- package/lib/esm/components/UserLiveStreamWidget/Skeleton.d.ts +1 -1
- package/lib/esm/components/UserLiveStreamWidget/UserLiveStreamWidget.d.ts +1 -1
- package/lib/esm/components/UserLiveStreamWidget/index.d.ts +1 -1
- package/lib/esm/components/UserPaymentMethods/Skeleton.d.ts +1 -1
- package/lib/esm/components/UserPaymentMethods/UserPaymentMethods.d.ts +2 -2
- package/lib/esm/components/UserProfileEdit/Section/AccountCredentials.js +9 -5
- package/lib/esm/components/UserProfileEdit/Skeleton.js +1 -1
- package/lib/esm/components/Widget/index.d.ts +1 -1
- package/lib/esm/shared/AccordionLessons/AccordionLessons.d.ts +1 -1
- package/lib/esm/shared/AccordionLessons/Skeleton.d.ts +1 -1
- package/lib/esm/shared/AddUsersButton/AddUsersButton.d.ts +1 -1
- package/lib/esm/shared/AddUsersButton/AddUsersButton.js +3 -1
- package/lib/esm/shared/AutoPlayer/index.d.ts +1 -1
- package/lib/esm/shared/BaseDialog/BaseDialog.d.ts +1 -1
- package/lib/esm/shared/Calendar/index.d.ts +1 -1
- package/lib/esm/shared/CopyTextArea/index.js +13 -6
- package/lib/esm/shared/CourseTypePopover/CourseTypePopover.d.ts +1 -1
- package/lib/esm/shared/CourseUsersTable/ChangeUsersStatus.d.ts +1 -1
- package/lib/esm/shared/CourseUsersTable/CourseUsersTable.d.ts +2 -2
- package/lib/esm/shared/CourseUsersTable/CourseUsersTable.js +5 -3
- package/lib/esm/shared/CourseUsersTable/RowSkeleton.d.ts +1 -1
- package/lib/esm/shared/CourseUsersTable/SeeProgressButton.d.ts +1 -1
- package/lib/esm/shared/CourseUsersTable/Skeleton.d.ts +1 -1
- package/lib/esm/shared/DateTimeAgo/index.js +2 -2
- package/lib/esm/shared/EmptyStatus/EmptyStatus.d.ts +1 -1
- package/lib/esm/shared/EventActionsMenu/index.js +9 -1
- package/lib/esm/shared/EventInfoDetails/index.d.ts +1 -1
- package/lib/esm/shared/InfiniteScroll/index.d.ts +2 -2
- package/lib/esm/shared/InfiniteScroll/stories/InfiniteScrollWithHeight.d.ts +1 -1
- package/lib/esm/shared/InfiniteScroll/stories/PullDownToRefreshInfScroll.d.ts +1 -1
- package/lib/esm/shared/InfiniteScroll/stories/ScrollableTargetFixedInfScroll.d.ts +1 -1
- package/lib/esm/shared/InfiniteScroll/stories/ScrollableTargetInfScroll.d.ts +1 -1
- package/lib/esm/shared/InfiniteScroll/stories/ScrolleableTop.d.ts +1 -1
- package/lib/esm/shared/InfiniteScroll/stories/WindowInfiniteScrollComponent.d.ts +1 -1
- package/lib/esm/shared/Lightbox/BaseLightbox.d.ts +1 -1
- package/lib/esm/shared/Lightbox/Lightbox.d.ts +1 -1
- package/lib/esm/shared/LiveStreamInfoDetails/index.d.ts +1 -1
- package/lib/esm/shared/Media/File/DisplayComponent.js +9 -32
- package/lib/esm/shared/Media/File/DocComponent.d.ts +2 -3
- package/lib/esm/shared/Media/File/DocComponent.js +44 -5
- package/lib/esm/shared/Media/File/PreviewComponent.d.ts +1 -1
- package/lib/esm/shared/Media/File/PreviewComponent.js +1 -1
- package/lib/esm/shared/Media/File/TriggerButton.js +33 -9
- package/lib/esm/shared/Media/File/asUploadButton.d.ts +1 -1
- package/lib/esm/shared/Media/Link/LayerComponent.d.ts +1 -1
- package/lib/esm/shared/Media/Link/PreviewComponent.d.ts +1 -1
- package/lib/esm/shared/Media/Link/UrlTextField/index.d.ts +1 -1
- package/lib/esm/shared/Media/Link/UrlTextField/index.js +3 -1
- package/lib/esm/shared/MetadataField/MetadataField.d.ts +1 -1
- package/lib/esm/shared/PasswordTextField/index.js +6 -4
- package/lib/esm/shared/ProgressBar/index.d.ts +1 -1
- package/lib/esm/shared/StickyBox/index.d.ts +4 -4
- package/lib/esm/shared/TagChip/index.d.ts +7 -48
- package/lib/esm/shared/TagChip/index.js +9 -5
- package/lib/esm/shared/Tags/index.js +2 -2
- package/lib/esm/shared/UpScalingTierBadge/UpScalingTierBadge.d.ts +1 -1
- package/lib/esm/shared/UsernameTextField/index.d.ts +1 -1
- package/lib/esm/shared/VirtualizedScroller/VirtualScrollerChild.d.ts +1 -1
- package/lib/esm/types/composer.d.ts +1 -1
- package/lib/esm/utils/buttonCounters.d.ts +1 -1
- package/lib/umd/155.js +2 -0
- package/lib/umd/{250.js.LICENSE.txt → 155.js.LICENSE.txt} +2 -0
- package/lib/umd/react-ui.js +1 -1
- package/lib/umd/react-ui.js.LICENSE.txt +1 -1
- package/package.json +204 -206
- package/lib/umd/250.js +0 -2
|
@@ -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 {};
|
|
@@ -16,7 +16,7 @@ const classes = {
|
|
|
16
16
|
const Root = (0, material_1.styled)(material_1.Autocomplete, {
|
|
17
17
|
name: PREFIX,
|
|
18
18
|
slot: 'Root',
|
|
19
|
-
overridesResolver: (
|
|
19
|
+
overridesResolver: (_props, styles) => styles.root
|
|
20
20
|
})(() => ({}));
|
|
21
21
|
/**
|
|
22
22
|
* > API documentation for the Community-JS Event Autocomplete component. Learn about the available props and the CSS API.
|
|
@@ -72,7 +72,7 @@ const EventAutocomplete = (inProps) => {
|
|
|
72
72
|
const handleClose = () => {
|
|
73
73
|
setOpen(false);
|
|
74
74
|
};
|
|
75
|
-
const handleChange = (
|
|
75
|
+
const handleChange = (_e, value) => {
|
|
76
76
|
setValue(value);
|
|
77
77
|
};
|
|
78
78
|
// Render
|
|
@@ -87,7 +87,9 @@ const EventAutocomplete = (inProps) => {
|
|
|
87
87
|
const parts = (0, parse_1.default)(option.name, matches);
|
|
88
88
|
return ((0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ component: "li" }, props, { children: [(0, jsx_runtime_1.jsx)(material_1.Avatar, { alt: option.name, src: option.image_small, sx: { marginRight: 1 } }), (0, jsx_runtime_1.jsx)(react_1.default.Fragment, { children: parts.map((part, index) => ((0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ sx: { fontWeight: part.highlight ? 700 : 400, marginRight: 0.2 } }, { children: part.text }), index))) })] })));
|
|
89
89
|
}, renderInput: (params) => {
|
|
90
|
-
return ((0, jsx_runtime_1.jsx)(material_1.TextField, Object.assign({}, params, TextFieldProps, { margin: "dense",
|
|
90
|
+
return ((0, jsx_runtime_1.jsx)(material_1.TextField, Object.assign({}, params, TextFieldProps, { margin: "dense", slotProps: {
|
|
91
|
+
input: Object.assign(Object.assign({}, params.InputProps), { autoComplete: 'events', endAdornment: ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [isLoading && (0, jsx_runtime_1.jsx)(material_1.CircularProgress, { color: "inherit", size: 20 }), params.InputProps.endAdornment] })) })
|
|
92
|
+
} })));
|
|
91
93
|
} }, rest)));
|
|
92
94
|
};
|
|
93
95
|
exports.default = EventAutocomplete;
|
|
@@ -153,8 +153,12 @@ function EventAddress(inProps) {
|
|
|
153
153
|
if (!isInPersonTabActive && !isOnlineTabActive && !isLiveTabActive) {
|
|
154
154
|
return null;
|
|
155
155
|
}
|
|
156
|
-
return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, { children: [(0, jsx_runtime_1.jsxs)(material_1.Tabs, Object.assign({ className: classes.tabs, value: location, onChange: handleChange, indicatorColor: "secondary", textColor: "secondary", variant: "fullWidth" }, { children: [isInPersonTabActive && ((0, jsx_runtime_1.jsx)(material_1.Tab, { value: types_1.SCEventLocationType.PERSON, classes: { root: classes.tab }, icon: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "add_location_alt" }), iconPosition: "start", label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.eventForm.address.live.label", defaultMessage: "ui.eventForm.address.live.label" }) })), isOnlineTabActive && ((0, jsx_runtime_1.jsx)(material_1.Tab, { value: types_1.SCEventLocationType.ONLINE, classes: { root: classes.tab }, icon: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "play_circle_outline" }), iconPosition: "start", label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.eventForm.address.online.label", defaultMessage: "ui.eventForm.address.online.label" }) })), isLiveTabActive && ((0, jsx_runtime_1.jsx)(material_1.Tab, { value: types_1.SCEventLocationType.LIVESTREAM, classes: { root: classes.tab }, icon: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "photo_camera" }), iconPosition: "start", label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.eventForm.address.liveStream.label", defaultMessage: "ui.eventForm.address.liveStream.label" }) }))] })), (0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ className: classes.tabContent }, { children: [isInPersonTabActive && location === types_1.SCEventLocationType.PERSON && ((0, jsx_runtime_1.jsx)(material_1.Autocomplete, { disabled: !geocodingApiKey, size: "small", value: geolocation, onChange: handleSelection, inputValue: inputValue, onInputChange: handleLocationChange, options: suggestions, getOptionLabel: (option) => option.description || geolocation.description, noOptionsText: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.eventForm.address.live.noResults", defaultMessage: "ui.eventForm.address.live.noResults" }), isOptionEqualToValue: (option, value) => option.description === value.description, renderInput: (params) => ((0, jsx_runtime_1.jsx)(material_1.TextField, Object.assign({}, params, { label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.eventForm.address.live.placeholder", defaultMessage: "ui.eventForm.address.live.placeholder" }), variant: "outlined", fullWidth: true,
|
|
157
|
-
|
|
156
|
+
return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, { children: [(0, jsx_runtime_1.jsxs)(material_1.Tabs, Object.assign({ className: classes.tabs, value: location, onChange: handleChange, indicatorColor: "secondary", textColor: "secondary", variant: "fullWidth" }, { children: [isInPersonTabActive && ((0, jsx_runtime_1.jsx)(material_1.Tab, { value: types_1.SCEventLocationType.PERSON, classes: { root: classes.tab }, icon: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "add_location_alt" }), iconPosition: "start", label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.eventForm.address.live.label", defaultMessage: "ui.eventForm.address.live.label" }) })), isOnlineTabActive && ((0, jsx_runtime_1.jsx)(material_1.Tab, { value: types_1.SCEventLocationType.ONLINE, classes: { root: classes.tab }, icon: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "play_circle_outline" }), iconPosition: "start", label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.eventForm.address.online.label", defaultMessage: "ui.eventForm.address.online.label" }) })), isLiveTabActive && ((0, jsx_runtime_1.jsx)(material_1.Tab, { value: types_1.SCEventLocationType.LIVESTREAM, classes: { root: classes.tab }, icon: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "photo_camera" }), iconPosition: "start", label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.eventForm.address.liveStream.label", defaultMessage: "ui.eventForm.address.liveStream.label" }) }))] })), (0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ className: classes.tabContent }, { children: [isInPersonTabActive && location === types_1.SCEventLocationType.PERSON && ((0, jsx_runtime_1.jsx)(material_1.Autocomplete, { disabled: !geocodingApiKey, size: "small", value: geolocation, onChange: handleSelection, inputValue: inputValue, onInputChange: handleLocationChange, options: suggestions, getOptionLabel: (option) => option.description || geolocation.description, noOptionsText: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.eventForm.address.live.noResults", defaultMessage: "ui.eventForm.address.live.noResults" }), isOptionEqualToValue: (option, value) => option.description === value.description, renderInput: (params) => ((0, jsx_runtime_1.jsx)(material_1.TextField, Object.assign({}, params, { label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.eventForm.address.live.placeholder", defaultMessage: "ui.eventForm.address.live.placeholder" }), variant: "outlined", fullWidth: true, slotProps: {
|
|
157
|
+
input: Object.assign(Object.assign({}, params.InputProps), { endAdornment: ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.InputAdornment, Object.assign({ position: "start" }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "add_location_alt" }) })), params.InputProps.endAdornment] })) })
|
|
158
|
+
} }))) })), isOnlineTabActive && location === types_1.SCEventLocationType.ONLINE && ((0, jsx_runtime_1.jsx)(UrlTextField_1.default, { size: "small", fullWidth: true, type: "url", placeholder: `${intl.formatMessage(messages.virtualPlaceholder)}`, helperText: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.eventForm.address.online.help", defaultMessage: "ui.eventForm.address.online.help" }), slotProps: {
|
|
159
|
+
input: {
|
|
160
|
+
endAdornment: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "play_circle_outline" })
|
|
161
|
+
}
|
|
158
162
|
}, value: event ? event.link : '', onChange: handleLinkChange })), isLiveTabActive && location === types_1.SCEventLocationType.LIVESTREAM && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(LiveStream_1.default, { template: liveStream_1.SCLiveStreamTemplateType.SNIPPET, liveStream: liveStream, actions: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}) }), (0, jsx_runtime_1.jsx)(LiveStreamFormSettings_1.default, { settings: liveStream.settings || constants_2.LIVESTREAM_DEFAULT_SETTINGS, onChange: handleLiveStreamSettingsChange })] }))] }))] })));
|
|
159
163
|
}
|
|
160
164
|
exports.default = EventAddress;
|
|
@@ -372,12 +372,16 @@ function EventForm(inProps) {
|
|
|
372
372
|
/**
|
|
373
373
|
* Renders root object
|
|
374
374
|
*/
|
|
375
|
-
return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, rest, { children: [(0, jsx_runtime_1.jsx)(material_1.Paper, Object.assign({ style: _backgroundCover, classes: { root: classes.cover } }, { children: (0, jsx_runtime_1.jsx)(UploadEventCover_1.default, { isCreationMode: true, onChange: handleChangeCover }) })), Boolean(error['coverError']) && (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ color: "error" }, { children: error['coverError'] })), (0, jsx_runtime_1.jsxs)(material_1.FormGroup, Object.assign({ className: classes.form }, { children: [(0, jsx_runtime_1.jsx)(material_1.TextField, { required: true, className: classes.name, placeholder: `${intl.formatMessage(messages.name)}`, margin: "normal", value: field.name, name: "name", onChange: handleChange,
|
|
376
|
-
|
|
375
|
+
return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, rest, { children: [(0, jsx_runtime_1.jsx)(material_1.Paper, Object.assign({ style: _backgroundCover, classes: { root: classes.cover } }, { children: (0, jsx_runtime_1.jsx)(UploadEventCover_1.default, { isCreationMode: true, onChange: handleChangeCover }) })), Boolean(error['coverError']) && (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ color: "error" }, { children: error['coverError'] })), (0, jsx_runtime_1.jsxs)(material_1.FormGroup, Object.assign({ className: classes.form }, { children: [(0, jsx_runtime_1.jsx)(material_1.TextField, { required: true, className: classes.name, placeholder: `${intl.formatMessage(messages.name)}`, margin: "normal", value: field.name, name: "name", onChange: handleChange, slotProps: {
|
|
376
|
+
input: {
|
|
377
|
+
endAdornment: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body2" }, { children: Event_1.EVENT_TITLE_MAX_LENGTH - field.name.length }))
|
|
378
|
+
}
|
|
377
379
|
}, error: Boolean(field.name.length > Event_1.EVENT_TITLE_MAX_LENGTH) || Boolean(error['nameError']), helperText: field.name.length > Event_1.EVENT_TITLE_MAX_LENGTH ? ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.eventForm.name.error.maxLength", defaultMessage: "ui.eventForm.name.error.maxLength" })) : error['nameError'] ? (error['nameError']) : null }), (0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ className: classes.dateTime }, { children: (0, jsx_runtime_1.jsxs)(x_date_pickers_1.LocalizationProvider, Object.assign({ dateAdapter: AdapterDateFns_1.AdapterDateFns, adapterLocale: scContext.settings.locale.default === 'it' ? it_1.default : en_US_1.default, localeText: {
|
|
378
380
|
cancelButtonLabel: `${intl.formatMessage(messages.pickerCancelAction)}`
|
|
379
381
|
} }, { children: [(0, jsx_runtime_1.jsx)(x_date_pickers_1.MobileDatePicker, { className: classes.picker, disablePast: !event, minDate: minStartDate, label: field.startDate && (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.eventForm.date.placeholder", defaultMessage: "ui.eventForm.date.placeholder" }), value: field.startDate, slots: {
|
|
380
|
-
textField: (params) => ((0, jsx_runtime_1.jsx)(material_1.TextField, Object.assign({}, params, {
|
|
382
|
+
textField: (params) => ((0, jsx_runtime_1.jsx)(material_1.TextField, Object.assign({}, params, { slotProps: {
|
|
383
|
+
input: Object.assign(Object.assign({}, params.slotProps.input), { placeholder: `${intl.formatMessage(messages.startDate)}`, startAdornment: ((0, jsx_runtime_1.jsx)(material_1.InputAdornment, Object.assign({ position: "start" }, { children: (0, jsx_runtime_1.jsx)(material_1.IconButton, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "CalendarIcon" }) }) }))) })
|
|
384
|
+
} })))
|
|
381
385
|
}, slotProps: {
|
|
382
386
|
toolbar: {
|
|
383
387
|
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore,@typescript-eslint/ban-ts-comment
|
|
@@ -388,7 +392,9 @@ function EventForm(inProps) {
|
|
|
388
392
|
handleChangeDateTime(value, 'startDate');
|
|
389
393
|
handleChangeDateTime(value, 'startTime');
|
|
390
394
|
} }), (0, jsx_runtime_1.jsx)(x_date_pickers_1.MobileTimePicker, { className: classes.picker, disablePast: disablePastStartTime, minTime: minStartTime, label: field.startTime && (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.eventForm.time.placeholder", defaultMessage: "ui.eventForm.time.placeholder" }), value: field.startTime, slots: {
|
|
391
|
-
textField: (params) => ((0, jsx_runtime_1.jsx)(material_1.TextField, Object.assign({}, params, {
|
|
395
|
+
textField: (params) => ((0, jsx_runtime_1.jsx)(material_1.TextField, Object.assign({}, params, { slotProps: {
|
|
396
|
+
input: Object.assign(Object.assign({}, params.slotProps.input), { placeholder: `${intl.formatMessage(messages.startTime)}`, startAdornment: ((0, jsx_runtime_1.jsx)(material_1.InputAdornment, Object.assign({ position: "start" }, { children: (0, jsx_runtime_1.jsx)(material_1.IconButton, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "access_time" }) }) }))) })
|
|
397
|
+
} })))
|
|
392
398
|
}, slotProps: {
|
|
393
399
|
toolbar: {
|
|
394
400
|
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore,@typescript-eslint/ban-ts-comment
|
|
@@ -406,7 +412,9 @@ function EventForm(inProps) {
|
|
|
406
412
|
}, startAdornment: (0, jsx_runtime_1.jsx)(material_1.InputAdornment, Object.assign({ position: "start" }, { children: (0, jsx_runtime_1.jsx)(material_1.IconButton, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "frequency" }) }) })) }, { children: Object.values(types_1.SCEventRecurrenceType).map((f) => ((0, jsx_runtime_1.jsx)(material_1.MenuItem, Object.assign({ value: f }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: `ui.eventForm.frequency.${f}.placeholder`, defaultMessage: `ui.eventForm.frequency.${f}.placeholder` }) }), f))) }))] })), (0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ className: classes.dateTime }, { children: (0, jsx_runtime_1.jsxs)(x_date_pickers_1.LocalizationProvider, Object.assign({ dateAdapter: AdapterDateFns_1.AdapterDateFns, adapterLocale: scContext.settings.locale.default === 'it' ? it_1.default : en_US_1.default, localeText: {
|
|
407
413
|
cancelButtonLabel: `${intl.formatMessage(messages.pickerCancelAction)}`
|
|
408
414
|
} }, { children: [(0, jsx_runtime_1.jsx)(x_date_pickers_1.MobileDatePicker, { className: classes.picker, minDate: field.startDate, label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.eventForm.date.end.placeholder", defaultMessage: "ui.eventForm.date.end.placeholder" }), value: field.endDate, slots: {
|
|
409
|
-
textField: (params) => ((0, jsx_runtime_1.jsx)(material_1.TextField, Object.assign({}, params, {
|
|
415
|
+
textField: (params) => ((0, jsx_runtime_1.jsx)(material_1.TextField, Object.assign({}, params, { slotProps: {
|
|
416
|
+
input: Object.assign(Object.assign({}, params.slotProps.input), { placeholder: `${intl.formatMessage(messages.endDate)}`, startAdornment: ((0, jsx_runtime_1.jsx)(material_1.InputAdornment, Object.assign({ position: "start" }, { children: (0, jsx_runtime_1.jsx)(material_1.IconButton, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "calendar_off" }) }) }))) })
|
|
417
|
+
} })))
|
|
410
418
|
}, slotProps: {
|
|
411
419
|
toolbar: {
|
|
412
420
|
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore,@typescript-eslint/ban-ts-comment
|
|
@@ -417,7 +425,9 @@ function EventForm(inProps) {
|
|
|
417
425
|
handleChangeDateTime(value, 'endDate');
|
|
418
426
|
handleChangeDateTime(value, 'endTime');
|
|
419
427
|
}, shouldDisableDate: shouldDisableDate }), (0, jsx_runtime_1.jsx)(x_date_pickers_1.MobileTimePicker, { className: classes.picker, disablePast: disablePastEndTime, label: field.endTime && (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.eventForm.time.end.placeholder", defaultMessage: "ui.eventForm.time.end.placeholder" }), value: field.endTime, slots: {
|
|
420
|
-
textField: (params) => ((0, jsx_runtime_1.jsx)(material_1.TextField, Object.assign({}, params, {
|
|
428
|
+
textField: (params) => ((0, jsx_runtime_1.jsx)(material_1.TextField, Object.assign({}, params, { slotProps: {
|
|
429
|
+
input: Object.assign(Object.assign({}, params.slotProps.input), { placeholder: `${intl.formatMessage(messages.endTime)}`, startAdornment: ((0, jsx_runtime_1.jsx)(material_1.InputAdornment, Object.assign({ position: "start" }, { children: (0, jsx_runtime_1.jsx)(material_1.IconButton, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "access_time" }) }) }))) })
|
|
430
|
+
} })))
|
|
421
431
|
}, slotProps: {
|
|
422
432
|
toolbar: {
|
|
423
433
|
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore,@typescript-eslint/ban-ts-comment
|
|
@@ -434,15 +444,13 @@ function EventForm(inProps) {
|
|
|
434
444
|
geolocation: field.geolocation,
|
|
435
445
|
live_stream: Object.assign(Object.assign({ title: field.name || `${intl.formatMessage(messages.name)}` }, (event && ((_e = event.live_stream) === null || _e === void 0 ? void 0 : _e.created_at) && { created_at: field.startDate })), { settings: field.liveStreamSettings })
|
|
436
446
|
}) }, EventAddressComponentProps)), privateEnabled && ((0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ className: classes.privacySection }, { children: [(0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ direction: "row", spacing: 1, alignItems: "center", justifyContent: "center" }, { children: [(0, jsx_runtime_1.jsxs)(material_1.Typography, Object.assign({ className: (0, classnames_1.default)(classes.switchLabel, { [classes.active]: !field.isPublic }) }, { children: [(0, jsx_runtime_1.jsx)(material_1.Icon, { children: "private" }), (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.eventForm.privacy.private", defaultMessage: "ui.eventForm.privacy.private" })] })), (0, jsx_runtime_1.jsx)(material_1.Switch, { className: classes.switch, checked: field.isPublic, onChange: () => setField((prev) => (Object.assign(Object.assign({}, prev), { ['isPublic']: !field.isPublic }))), disabled: (event === null || event === void 0 ? void 0 : event.privacy) === types_1.SCEventPrivacyType.PRIVATE }), (0, jsx_runtime_1.jsxs)(material_1.Typography, Object.assign({ className: (0, classnames_1.default)(classes.switchLabel, { [classes.active]: field.isPublic }) }, { children: [(0, jsx_runtime_1.jsx)(material_1.Icon, { children: "public" }), (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.eventForm.privacy.public", defaultMessage: "ui.eventForm.privacy.public" })] }))] })), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body2", textAlign: "center", className: classes.privacySectionInfo }, { children: field.isPublic ? ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.eventForm.privacy.public.info", defaultMessage: "ui.eventForm.privacy.public.info", values: {
|
|
437
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore,@typescript-eslint/ban-ts-comment
|
|
438
|
-
// @ts-ignores
|
|
439
447
|
b: (chunks) => (0, jsx_runtime_1.jsx)("strong", { children: chunks })
|
|
440
448
|
} })) : ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.eventForm.privacy.private.info", defaultMessage: "ui.eventForm.private.public.info", values: {
|
|
441
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore,@typescript-eslint/ban-ts-comment
|
|
442
|
-
// @ts-ignore
|
|
443
449
|
b: (chunks) => (0, jsx_runtime_1.jsx)("strong", { children: chunks })
|
|
444
|
-
} })) }))] }))), (0, jsx_runtime_1.jsx)(material_1.TextField, { multiline: true, className: classes.description, placeholder: `${intl.formatMessage(messages.description)}`, margin: "normal", value: field.description, name: "description", onChange: handleChange,
|
|
445
|
-
|
|
450
|
+
} })) }))] }))), (0, jsx_runtime_1.jsx)(material_1.TextField, { multiline: true, className: classes.description, placeholder: `${intl.formatMessage(messages.description)}`, margin: "normal", value: field.description, name: "description", onChange: handleChange, slotProps: {
|
|
451
|
+
input: {
|
|
452
|
+
endAdornment: ((0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body2" }, { children: ((_f = field.description) === null || _f === void 0 ? void 0 : _f.length) ? Event_1.EVENT_DESCRIPTION_MAX_LENGTH - field.description.length : Event_1.EVENT_DESCRIPTION_MAX_LENGTH })))
|
|
453
|
+
}
|
|
446
454
|
}, error: Boolean(((_g = field.description) === null || _g === void 0 ? void 0 : _g.length) > Event_1.EVENT_DESCRIPTION_MAX_LENGTH), helperText: ((_h = field.description) === null || _h === void 0 ? void 0 : _h.length) > Event_1.EVENT_DESCRIPTION_MAX_LENGTH ? ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.eventForm.description.error.maxLength", defaultMessage: "ui.eventForm.description.error.maxLength" })) : null }), isPaymentsEnabled && isStaff && ((0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ className: classes.paywallsConfiguratorWrap }, { children: (0, jsx_runtime_1.jsx)(PaywallsConfigurator_1.default, Object.assign({}, (event && { contentId: event.id }), { contentType: types_1.SCContentType.EVENT, onChangeContentAccessType: handleChangeContentAccessType, onChangePaymentProducts: handleChangePaymentsProducts })) }))), genericError && ((0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ className: classes.genericError }, { children: (0, jsx_runtime_1.jsx)(material_1.Alert, Object.assign({ variant: "filled", severity: "error" }, { children: genericError })) }))), (0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ className: classes.actions }, { children: (0, jsx_runtime_1.jsx)(lab_1.LoadingButton, Object.assign({ loading: field.isSubmitting, disabled: !field.name ||
|
|
447
455
|
!field.startDate ||
|
|
448
456
|
!field.startTime ||
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { SCEventLocationType, SCEventRecurrenceType, SCLiveStreamSettingsType } from '@selfcommunity/types';
|
|
2
2
|
import { ContentAccessType } from '../PaywallsConfigurator/constants';
|
|
3
|
-
export
|
|
3
|
+
export type Place = {
|
|
4
4
|
description: string;
|
|
5
5
|
id?: string;
|
|
6
6
|
};
|
|
7
|
-
export
|
|
7
|
+
export type Geolocation = {
|
|
8
8
|
location: SCEventLocationType;
|
|
9
9
|
geolocation?: string;
|
|
10
10
|
lat?: number;
|
|
@@ -12,7 +12,7 @@ export declare type Geolocation = {
|
|
|
12
12
|
link?: string;
|
|
13
13
|
liveStreamSettings?: SCLiveStreamSettingsType;
|
|
14
14
|
};
|
|
15
|
-
export
|
|
15
|
+
export type InitialFieldState = Geolocation & {
|
|
16
16
|
imageOriginal: string | ArrayBuffer;
|
|
17
17
|
imageOriginalFile: string | Blob;
|
|
18
18
|
startDate: Date | null;
|
|
@@ -27,5 +27,5 @@ export declare type InitialFieldState = Geolocation & {
|
|
|
27
27
|
products: number[];
|
|
28
28
|
contentAccessType: ContentAccessType;
|
|
29
29
|
};
|
|
30
|
-
export
|
|
31
|
-
export
|
|
30
|
+
export type FieldStateKeys = keyof InitialFieldState;
|
|
31
|
+
export type FieldStateValues = InitialFieldState[FieldStateKeys];
|
|
@@ -21,4 +21,4 @@ export interface EventInfoWidgetProps extends WidgetProps {
|
|
|
21
21
|
*/
|
|
22
22
|
[p: string]: any;
|
|
23
23
|
}
|
|
24
|
-
export default function EventInfoWidget(inProps: EventInfoWidgetProps): JSX.Element;
|
|
24
|
+
export default function EventInfoWidget(inProps: EventInfoWidgetProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function EventInfoWigetSkeleton(): JSX.Element;
|
|
1
|
+
export default function EventInfoWigetSkeleton(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import EventInfoWidget, { EventInfoWidgetProps } from './EventInfoWidget';
|
|
2
2
|
import EventInfoWidgetSkeleton from './Skeleton';
|
|
3
3
|
export default EventInfoWidget;
|
|
4
|
-
export { EventInfoWidgetSkeleton,
|
|
4
|
+
export { EventInfoWidgetSkeleton, EventInfoWidgetProps };
|
|
@@ -244,7 +244,9 @@ function EventInviteButton(inProps) {
|
|
|
244
244
|
/**
|
|
245
245
|
* Renders root object
|
|
246
246
|
*/
|
|
247
|
-
return ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [(0, jsx_runtime_1.jsx)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className), onClick: handleClose, variant: scEvent ? 'contained' : 'outlined', color: scEvent ? 'secondary' : 'inherit', startIcon: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "add" }) }, rest, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.eventInviteButton", defaultMessage: "ui.eventInviteButton" }) })), open && ((0, jsx_runtime_1.jsx)(DialogRoot, Object.assign({ DialogContentProps: { dividers: false }, open: true, className: classes.dialogRoot, title: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ onClick: handleClose }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "close" }) })), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ className: classes.dialogTitle }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.eventInviteButton.dialog.title", defaultMessage: "ui.eventInviteButton.dialog.title" }) })), (0, jsx_runtime_1.jsx)(lab_1.LoadingButton, Object.assign({ size: "small", color: "secondary", variant: "contained", onClick: handleSendInvitations, loading: isSending, disabled: !invited.length }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.eventInviteButton.dialog.button.end", defaultMessage: "ui.eventInviteButton.dialog.button.end" }) }))] }) }, { children: (0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ className: classes.dialogContent }, { children: [(0, jsx_runtime_1.jsx)(material_1.Autocomplete, { className: classes.autocomplete, loading: loading, size: "small", multiple: true, freeSolo: true, disableClearable: true, options: suggested, onChange: handleChange, onInputChange: handleInputChange, inputValue: value, filterOptions: filterOptions, value: invited, getOptionLabel: (option) => (option ? option.username : '...'), isOptionEqualToValue: (option, value) => (option ? value.id === option.id : false), renderTags: () => null, renderOption: (props, option) => ((0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ component: "li" }, props, { children: [(0, jsx_runtime_1.jsx)(material_1.Avatar, { alt: option.username, src: option.avatar }), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ ml: 1 }, { children: option.username }))] }))), renderInput: (params) => ((0, jsx_runtime_1.jsx)(material_1.TextField, Object.assign({}, params, { variant: "outlined", placeholder: `${intl.formatMessage(messages.placeholder)}`,
|
|
247
|
+
return ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [(0, jsx_runtime_1.jsx)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className), onClick: handleClose, variant: scEvent ? 'contained' : 'outlined', color: scEvent ? 'secondary' : 'inherit', startIcon: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "add" }) }, rest, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.eventInviteButton", defaultMessage: "ui.eventInviteButton" }) })), open && ((0, jsx_runtime_1.jsx)(DialogRoot, Object.assign({ DialogContentProps: { dividers: false }, open: true, className: classes.dialogRoot, title: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ onClick: handleClose }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "close" }) })), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ className: classes.dialogTitle }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.eventInviteButton.dialog.title", defaultMessage: "ui.eventInviteButton.dialog.title" }) })), (0, jsx_runtime_1.jsx)(lab_1.LoadingButton, Object.assign({ size: "small", color: "secondary", variant: "contained", onClick: handleSendInvitations, loading: isSending, disabled: !invited.length }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.eventInviteButton.dialog.button.end", defaultMessage: "ui.eventInviteButton.dialog.button.end" }) }))] }) }, { children: (0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ className: classes.dialogContent }, { children: [(0, jsx_runtime_1.jsx)(material_1.Autocomplete, { className: classes.autocomplete, loading: loading, size: "small", multiple: true, freeSolo: true, disableClearable: true, options: suggested, onChange: handleChange, onInputChange: handleInputChange, inputValue: value, filterOptions: filterOptions, value: invited, getOptionLabel: (option) => (option ? option.username : '...'), isOptionEqualToValue: (option, value) => (option ? value.id === option.id : false), renderTags: () => null, renderOption: (props, option) => ((0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ component: "li" }, props, { children: [(0, jsx_runtime_1.jsx)(material_1.Avatar, { alt: option.username, src: option.avatar }), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ ml: 1 }, { children: option.username }))] }))), renderInput: (params) => ((0, jsx_runtime_1.jsx)(material_1.TextField, Object.assign({}, params, { variant: "outlined", placeholder: `${intl.formatMessage(messages.placeholder)}`, slotProps: {
|
|
248
|
+
input: Object.assign(Object.assign({}, params.InputProps), { className: classes.input, startAdornment: ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.InputAdornment, Object.assign({ position: "start" }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, Object.assign({ className: classes.icon }, { children: "search" })) })), params.InputProps.startAdornment] })) })
|
|
249
|
+
} }))) }), (0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ className: classes.invitedBox }, { children: invited.map((option, index) => ((0, jsx_runtime_1.jsx)(material_1.Chip, { avatar: (0, jsx_runtime_1.jsx)(material_1.Avatar, { alt: option.username, src: option.avatar }), label: option.username, onDelete: () => {
|
|
248
250
|
handleDelete(option);
|
|
249
251
|
}, style: { marginRight: 8 } }, index))) })), (0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ className: classes.suggested }, { children: [list.length !== 0 && ((0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "h4", fontWeight: "bold" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.eventInviteButton.dialog.content.list", defaultMessage: "ui.eventInviteButton.dialog.content.list" }) }))), list.slice(0, 5).map((user, index) => ((0, jsx_runtime_1.jsx)(User_1.default, { elevation: 0, actions: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}), user: user, userId: user.id, buttonProps: { onClick: () => handleUserInvite(user) } }, index)))] }))] })) })))] }));
|
|
250
252
|
}
|
|
@@ -38,4 +38,4 @@ export interface EventMediaWidgetProps extends WidgetProps {
|
|
|
38
38
|
*/
|
|
39
39
|
[p: string]: any;
|
|
40
40
|
}
|
|
41
|
-
export default function EventMediaWidget(inProps: EventMediaWidgetProps): JSX.Element;
|
|
41
|
+
export default function EventMediaWidget(inProps: EventMediaWidgetProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export default function EventMediaWidgetSkeleton(): JSX.Element;
|
|
2
|
-
export declare function EventMediaSkeleton(): JSX.Element;
|
|
1
|
+
export default function EventMediaWidgetSkeleton(): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare function EventMediaSkeleton(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -13,5 +13,5 @@ export interface TriggerIconButtonProps extends LoadingButtonProps {
|
|
|
13
13
|
*/
|
|
14
14
|
isSquare?: boolean;
|
|
15
15
|
}
|
|
16
|
-
declare const _default: import("react").ForwardRefExoticComponent<
|
|
16
|
+
declare const _default: import("react").ForwardRefExoticComponent<Omit<TriggerIconButtonProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
17
17
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { UploadButtonProps } from '@rpldy/upload-button';
|
|
2
2
|
import type { ComponentType } from 'react';
|
|
3
|
-
|
|
3
|
+
type FileInputProps = {
|
|
4
4
|
accept: string;
|
|
5
5
|
};
|
|
6
|
-
declare const asUploadButton: (Component: ComponentType<any>, inputProps: FileInputProps) => import("react").ForwardRefExoticComponent<
|
|
6
|
+
declare const asUploadButton: (Component: ComponentType<any>, inputProps: FileInputProps) => import("react").ForwardRefExoticComponent<Omit<UploadButtonProps<Element>, "ref"> & import("react").RefAttributes<any>>;
|
|
7
7
|
export default asUploadButton;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import EventMediaWidget, { EventMediaWidgetProps } from './EventMediaWidget';
|
|
2
2
|
import EventMediaWidgetSkeleton from './Skeleton';
|
|
3
3
|
export default EventMediaWidget;
|
|
4
|
-
export { EventMediaWidgetSkeleton
|
|
4
|
+
export { EventMediaWidgetSkeleton };
|
|
5
|
+
export { EventMediaWidgetProps };
|
|
@@ -44,4 +44,4 @@ export interface EventMembersWidgetProps extends WidgetProps {
|
|
|
44
44
|
*/
|
|
45
45
|
[p: string]: any;
|
|
46
46
|
}
|
|
47
|
-
export default function EventMembersWidget(inProps: EventMembersWidgetProps): JSX.Element;
|
|
47
|
+
export default function EventMembersWidget(inProps: EventMembersWidgetProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -189,12 +189,12 @@ function EventMembersWidget(inProps) {
|
|
|
189
189
|
(tabValue === types_1.TabContentType.PARTICIPANTS && participants.isLoadingNext && !participants.initialized)) {
|
|
190
190
|
return (0, jsx_runtime_1.jsx)(Skeleton_1.default, {});
|
|
191
191
|
}
|
|
192
|
-
return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: classes.root }, rest, { children: (0, jsx_runtime_1.jsxs)(material_1.CardContent, Object.assign({ className: classes.content }, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "h5", className: classes.title }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: title, defaultMessage: title }) })), (0, jsx_runtime_1.jsxs)(lab_1.TabContext, Object.assign({ value: tabValue }, { children: [(0, jsx_runtime_1.jsxs)(lab_1.TabList, Object.assign({ className: classes.tabsWrapper, onChange: handleTabChange, textColor: "primary", indicatorColor: "primary", variant: "fullWidth" }, { children: [(0, jsx_runtime_1.jsx)(material_1.Tab, { label: (0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ className: classes.tabLabelWrapper }, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "h3" }, { children: participantsCount })), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "subtitle2" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.eventMembersWidget.participants", defaultMessage: "ui.eventMembersWidget.participants" }) }))] })), value: types_1.TabContentType.PARTICIPANTS }), hasAllow && ((0, jsx_runtime_1.jsx)(material_1.Tab, { label: (0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ className: classes.tabLabelWrapper }, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "h3" }, { children: invitedCount })), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "subtitle2" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.eventMembersWidget.invited", defaultMessage: "ui.eventMembersWidget.invited" }) }))] })), value: types_1.TabContentType.INVITED })), hasAllow && ((0, jsx_runtime_1.jsx)(material_1.Tab, { label: (0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ className: classes.tabLabelWrapper }, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "h3" }, { children: requestsCount })), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "subtitle2" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.eventMembersWidget.requests", defaultMessage: "ui.eventMembersWidget.requests" }) }))] })), value: types_1.TabContentType.REQUESTS }))] })), (0, jsx_runtime_1.jsx)(lab_1.TabPanel, Object.assign({ value: types_1.TabContentType.PARTICIPANTS, className: classes.tabPanel }, { children: (0, jsx_runtime_1.jsx)(TabContentComponent_1.default, { tabValue: types_1.TabContentType.PARTICIPANTS, state: participants, dispatch: dispatchParticipants, userProps: userProps, dialogProps: dialogProps, actionProps: {
|
|
192
|
+
return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: classes.root }, rest, { children: (0, jsx_runtime_1.jsxs)(material_1.CardContent, Object.assign({ className: classes.content }, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "h5", className: classes.title }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: title, defaultMessage: title }) })), (0, jsx_runtime_1.jsxs)(lab_1.TabContext, Object.assign({ value: tabValue }, { children: [(0, jsx_runtime_1.jsxs)(lab_1.TabList, Object.assign({ className: classes.tabsWrapper, onChange: handleTabChange, textColor: "primary", indicatorColor: "primary", variant: "fullWidth" }, { children: [(0, jsx_runtime_1.jsx)(material_1.Tab, { label: (0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ className: classes.tabLabelWrapper }, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "h3" }, { children: participantsCount })), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "subtitle2" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.eventMembersWidget.participants", defaultMessage: "ui.eventMembersWidget.participants" }) }))] })), value: types_1.TabContentType.PARTICIPANTS }), hasAllow && ((0, jsx_runtime_1.jsx)(material_1.Tab, { label: (0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ className: classes.tabLabelWrapper }, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "h3" }, { children: invitedCount })), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "subtitle2" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.eventMembersWidget.invited", defaultMessage: "ui.eventMembersWidget.invited" }) }))] })), value: types_1.TabContentType.INVITED })), hasAllow && ((0, jsx_runtime_1.jsx)(material_1.Tab, { label: (0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ className: classes.tabLabelWrapper }, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "h3" }, { children: requestsCount })), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "subtitle2" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.eventMembersWidget.requests", defaultMessage: "ui.eventMembersWidget.requests" }) }))] })), value: types_1.TabContentType.REQUESTS }))] })), (0, jsx_runtime_1.jsx)(lab_1.TabPanel, Object.assign({ value: types_1.TabContentType.PARTICIPANTS, sx: { className: classes.tabPanel } }, { children: (0, jsx_runtime_1.jsx)(TabContentComponent_1.default, { tabValue: types_1.TabContentType.PARTICIPANTS, state: participants, dispatch: dispatchParticipants, userProps: userProps, dialogProps: dialogProps, actionProps: {
|
|
193
193
|
scEvent
|
|
194
|
-
}, handleRefresh: handleRefresh }) })), hasAllow && ((0, jsx_runtime_1.jsx)(lab_1.TabPanel, Object.assign({ value: types_1.TabContentType.INVITED, className: classes.tabPanel }, { children: (0, jsx_runtime_1.jsx)(TabContentComponent_1.default, { tabValue: types_1.TabContentType.INVITED, state: invited, dispatch: dispatchInvited, userProps: userProps, dialogProps: dialogProps, actionProps: {
|
|
194
|
+
}, handleRefresh: handleRefresh }) })), hasAllow && ((0, jsx_runtime_1.jsx)(lab_1.TabPanel, Object.assign({ value: types_1.TabContentType.INVITED, sx: { className: classes.tabPanel } }, { children: (0, jsx_runtime_1.jsx)(TabContentComponent_1.default, { tabValue: types_1.TabContentType.INVITED, state: invited, dispatch: dispatchInvited, userProps: userProps, dialogProps: dialogProps, actionProps: {
|
|
195
195
|
scEvent,
|
|
196
196
|
setCount: setInvitedCount
|
|
197
|
-
}, handleRefresh: handleRefresh }) }))), hasAllow && ((0, jsx_runtime_1.jsx)(lab_1.TabPanel, Object.assign({ value: types_1.TabContentType.REQUESTS, className: classes.tabPanel }, { children: (0, jsx_runtime_1.jsx)(TabContentComponent_1.default, { tabValue: types_1.TabContentType.REQUESTS, state: requests, dispatch: dispatchRequests, userProps: userProps, dialogProps: dialogProps, actionProps: {
|
|
197
|
+
}, handleRefresh: handleRefresh }) }))), hasAllow && ((0, jsx_runtime_1.jsx)(lab_1.TabPanel, Object.assign({ value: types_1.TabContentType.REQUESTS, sx: { className: classes.tabPanel } }, { children: (0, jsx_runtime_1.jsx)(TabContentComponent_1.default, { tabValue: types_1.TabContentType.REQUESTS, state: requests, dispatch: dispatchRequests, userProps: userProps, dialogProps: dialogProps, actionProps: {
|
|
198
198
|
scEvent,
|
|
199
199
|
count: requestsCount,
|
|
200
200
|
setCount: setRequestsCount,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import 'swiper/css';
|
|
2
|
-
export default function EventMembersWidgetSkeleton(): JSX.Element;
|
|
2
|
+
export default function EventMembersWidgetSkeleton(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -24,6 +24,6 @@ const Root = (0, system_1.styled)(Widget_1.default, {
|
|
|
24
24
|
overridesResolver: (_props, styles) => styles.skeletonRoot
|
|
25
25
|
})(() => ({}));
|
|
26
26
|
function EventMembersWidgetSkeleton() {
|
|
27
|
-
return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: classes.root }, { children: (0, jsx_runtime_1.jsxs)(material_1.CardContent, Object.assign({ className: classes.content }, { children: [(0, jsx_runtime_1.jsx)(material_1.Skeleton, { animation: "wave", width: "53px", height: "25px", className: classes.title }), (0, jsx_runtime_1.jsxs)(lab_1.TabContext, Object.assign({ value: "1" }, { children: [(0, jsx_runtime_1.jsx)(system_1.Box, Object.assign({ className: classes.tabsWrapper }, { children: (0, jsx_runtime_1.jsx)(lab_1.TabList, Object.assign({ variant: "fullWidth" }, { children: [1, 2, 3].map((_element, i) => ((0, jsx_runtime_1.jsx)(material_1.Tab, { label: (0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ className: classes.tabLabelWrapper }, { children: [(0, jsx_runtime_1.jsx)(material_1.Skeleton, { animation: "wave", width: "26px", height: "24px" }), (0, jsx_runtime_1.jsx)(material_1.Skeleton, { animation: "wave", width: "106px", height: "19px" })] })), value: `${i + 1}` }, i))) })) })), (0, jsx_runtime_1.jsx)(lab_1.TabPanel, Object.assign({ value: "1", className: classes.tabPanel }, { children: (0, jsx_runtime_1.jsxs)(material_1.List, { children: [[1, 2, 3, 4].map((_element, i) => ((0, jsx_runtime_1.jsx)(material_1.ListItem, { children: (0, jsx_runtime_1.jsx)(User_1.UserSkeleton, {}) }, i))), (0, jsx_runtime_1.jsx)(material_1.Skeleton, { className: classes.actionButton, animation: "wave", width: "52px", height: "20px" })] }) })), (0, jsx_runtime_1.jsx)(lab_1.TabPanel, { value: "2", className: classes.tabPanel }), (0, jsx_runtime_1.jsx)(lab_1.TabPanel, { value: "3", className: classes.tabPanel })] }))] })) })));
|
|
27
|
+
return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: classes.root }, { children: (0, jsx_runtime_1.jsxs)(material_1.CardContent, Object.assign({ className: classes.content }, { children: [(0, jsx_runtime_1.jsx)(material_1.Skeleton, { animation: "wave", width: "53px", height: "25px", className: classes.title }), (0, jsx_runtime_1.jsxs)(lab_1.TabContext, Object.assign({ value: "1" }, { children: [(0, jsx_runtime_1.jsx)(system_1.Box, Object.assign({ className: classes.tabsWrapper }, { children: (0, jsx_runtime_1.jsx)(lab_1.TabList, Object.assign({ variant: "fullWidth" }, { children: [1, 2, 3].map((_element, i) => ((0, jsx_runtime_1.jsx)(material_1.Tab, { label: (0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ className: classes.tabLabelWrapper }, { children: [(0, jsx_runtime_1.jsx)(material_1.Skeleton, { animation: "wave", width: "26px", height: "24px" }), (0, jsx_runtime_1.jsx)(material_1.Skeleton, { animation: "wave", width: "106px", height: "19px" })] })), value: `${i + 1}` }, i))) })) })), (0, jsx_runtime_1.jsx)(lab_1.TabPanel, Object.assign({ value: "1", sx: { className: classes.tabPanel } }, { children: (0, jsx_runtime_1.jsxs)(material_1.List, { children: [[1, 2, 3, 4].map((_element, i) => ((0, jsx_runtime_1.jsx)(material_1.ListItem, { children: (0, jsx_runtime_1.jsx)(User_1.UserSkeleton, {}) }, i))), (0, jsx_runtime_1.jsx)(material_1.Skeleton, { className: classes.actionButton, animation: "wave", width: "52px", height: "20px" })] }) })), (0, jsx_runtime_1.jsx)(lab_1.TabPanel, { value: "2", sx: { className: classes.tabPanel } }), (0, jsx_runtime_1.jsx)(lab_1.TabPanel, { value: "3", sx: { className: classes.tabPanel } })] }))] })) })));
|
|
28
28
|
}
|
|
29
29
|
exports.default = EventMembersWidgetSkeleton;
|
|
@@ -26,5 +26,5 @@ interface TabComponentProps {
|
|
|
26
26
|
};
|
|
27
27
|
handleRefresh?: (tabValue: TabContentType) => void;
|
|
28
28
|
}
|
|
29
|
-
export default function TabContentComponent(props: TabComponentProps): JSX.Element;
|
|
29
|
+
export default function TabContentComponent(props: TabComponentProps): import("react/jsx-runtime").JSX.Element;
|
|
30
30
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import EventMembersWidget, { EventMembersWidgetProps } from './EventMembersWidget';
|
|
2
2
|
import EventMembersWidgetSkeleton from './Skeleton';
|
|
3
3
|
export default EventMembersWidget;
|
|
4
|
-
export { EventMembersWidgetSkeleton,
|
|
4
|
+
export { EventMembersWidgetSkeleton, EventMembersWidgetProps };
|
|
@@ -48,4 +48,4 @@ export interface EventParticipantsButtonProps extends Pick<ButtonProps, Exclude<
|
|
|
48
48
|
|
|
49
49
|
* @param inProps
|
|
50
50
|
*/
|
|
51
|
-
export default function EventParticipantsButton(inProps: EventParticipantsButtonProps): JSX.Element;
|
|
51
|
+
export default function EventParticipantsButton(inProps: EventParticipantsButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -150,7 +150,11 @@ function EventSubscribeButton(inProps) {
|
|
|
150
150
|
}
|
|
151
151
|
}, [scUserContext.user, status, scContext.settings]);
|
|
152
152
|
function renderMenuItems() {
|
|
153
|
-
return ((0, jsx_runtime_1.jsx)(material_1.Box, { children: options.map((option) => ((0, jsx_runtime_1.jsx)(material_1.MenuItem, Object.assign({ className: classes.item, disabled: loading }, { children: (0, jsx_runtime_1.jsx)(material_1.FormControlLabel, { label: option.label, control: loading ? ((0, jsx_runtime_1.jsx)(material_1.CircularProgress, { color: "primary", size: 20 })) : ((0, jsx_runtime_1.jsx)(material_1.Checkbox, { size: "small", checked: status === option.value, value: option.value, onChange: handleToggleAction, name: `${option.value}-option`,
|
|
153
|
+
return ((0, jsx_runtime_1.jsx)(material_1.Box, { children: options.map((option) => ((0, jsx_runtime_1.jsx)(material_1.MenuItem, Object.assign({ className: classes.item, disabled: loading }, { children: (0, jsx_runtime_1.jsx)(material_1.FormControlLabel, { label: option.label, control: loading ? ((0, jsx_runtime_1.jsx)(material_1.CircularProgress, { color: "primary", size: 20 })) : ((0, jsx_runtime_1.jsx)(material_1.Checkbox, { size: "small", checked: status === option.value, value: option.value, onChange: handleToggleAction, name: `${option.value}-option`, slotProps: {
|
|
154
|
+
input: {
|
|
155
|
+
'aria-label': `${option.label}`
|
|
156
|
+
}
|
|
157
|
+
} })), labelPlacement: "start" }) }), option.value))) }));
|
|
154
158
|
}
|
|
155
159
|
/**
|
|
156
160
|
* Get current translated status
|
|
@@ -185,6 +189,10 @@ function EventSubscribeButton(inProps) {
|
|
|
185
189
|
((_b = scEvent.paywalls) === null || _b === void 0 ? void 0 : _b.length) > 0 &&
|
|
186
190
|
(scEvent.privacy === types_1.SCEventPrivacyType.PUBLIC ||
|
|
187
191
|
(scEvent.privacy === types_1.SCEventPrivacyType.PRIVATE && status && status !== types_1.SCEventSubscriptionStatusType.REQUESTED)) ? ((0, jsx_runtime_1.jsx)(BuyButtonRoot, { contentType: types_1.SCContentType.EVENT, content: scEvent, showTicket: true })) : ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (scEvent === null || scEvent === void 0 ? void 0 : scEvent.privacy) === types_1.SCEventPrivacyType.PRIVATE && (!status || status === types_1.SCEventSubscriptionStatusType.REQUESTED) ? ((0, jsx_runtime_1.jsx)(RequestRoot, Object.assign({ className: (0, classnames_1.default)(classes.requestRoot, className), variant: "outlined", size: "small", loading: scUserContext.user ? scEventsManager.isLoading(scEvent) : null, onClick: handleToggleAction }, rest, { children: getStatus }))) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(SelectRoot, Object.assign({ className: (0, classnames_1.default)(classes.selectRoot, className, { [classes.going]: status && status === types_1.SCEventSubscriptionStatusType.GOING }, { [classes.notGoing]: status && status === types_1.SCEventSubscriptionStatusType.NOT_GOING }), onClick: handleOpen, endIcon: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: open ? 'expand_less' : 'expand_more' }), startIcon: status &&
|
|
188
|
-
status !== types_1.SCEventSubscriptionStatusType.SUBSCRIBED && ((0, jsx_runtime_1.jsx)(material_1.Icon, { children: status === types_1.SCEventSubscriptionStatusType.GOING ? 'circle_checked' : 'circle_closed' })) }, rest, { children: getStatus })), open && ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: isMobile ? ((0, jsx_runtime_1.jsx)(SwipeableDrawerRoot, Object.assign({ className: classes.drawerRoot,
|
|
192
|
+
status !== types_1.SCEventSubscriptionStatusType.SUBSCRIBED && ((0, jsx_runtime_1.jsx)(material_1.Icon, { children: status === types_1.SCEventSubscriptionStatusType.GOING ? 'circle_checked' : 'circle_closed' })) }, rest, { children: getStatus })), open && ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: isMobile ? ((0, jsx_runtime_1.jsx)(SwipeableDrawerRoot, Object.assign({ className: classes.drawerRoot, slotProps: {
|
|
193
|
+
paper: {
|
|
194
|
+
className: classes.paper
|
|
195
|
+
}
|
|
196
|
+
}, open: true, onClose: handleClose, onOpen: handleOpen, anchor: "bottom", disableSwipeToOpen: true }, { children: renderMenuItems() }))) : ((0, jsx_runtime_1.jsx)(MenuRoot, Object.assign({ className: classes.menuRoot, anchorEl: anchorEl, open: true, onClose: handleClose }, { children: renderMenuItems() }))) }))] })) })) }));
|
|
189
197
|
}
|
|
190
198
|
exports.default = EventSubscribeButton;
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { GridProps } from '@mui/material';
|
|
2
2
|
import { EndpointType } from '@selfcommunity/api-services';
|
|
3
|
-
import React from 'react';
|
|
4
3
|
import { CreateEventButtonProps } from '../CreateEventButton';
|
|
5
4
|
import { EventProps, EventSkeletonProps } from '../Event';
|
|
6
5
|
import { EventsSkeletonProps } from '../Events/Skeleton';
|
|
7
|
-
export declare const EventsChipRoot: import("@emotion/styled").StyledComponent<import("@mui/material").ChipOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
8
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
9
|
-
}, "avatar" | "className" | "style" | "classes" | "label" | "tabIndex" | "color" | "children" | "sx" | "variant" | "disabled" | "size" | "icon" | "clickable" | "deleteIcon" | "onDelete" | "skipFocusWhenDisabled"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
10
6
|
export interface EventsProps {
|
|
11
7
|
/**
|
|
12
8
|
* Overrides or extends the styles applied to the component.
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EventsChipRoot = void 0;
|
|
4
3
|
const tslib_1 = require("tslib");
|
|
5
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
6
5
|
const material_1 = require("@mui/material");
|
|
@@ -46,10 +45,10 @@ const Root = (0, material_1.styled)(material_1.Box, {
|
|
|
46
45
|
name: constants_1.PREFIX,
|
|
47
46
|
slot: 'Root'
|
|
48
47
|
})(() => ({}));
|
|
49
|
-
|
|
48
|
+
const EventsChipRoot = (0, material_1.styled)(material_1.Chip, {
|
|
50
49
|
name: constants_1.PREFIX,
|
|
51
50
|
slot: 'EventsChipRoot',
|
|
52
|
-
shouldForwardProp: (prop) => prop !== 'showFollowed'
|
|
51
|
+
shouldForwardProp: (prop) => prop !== 'showFollowed'
|
|
53
52
|
})(() => ({}));
|
|
54
53
|
/**
|
|
55
54
|
* > API documentation for the Community-JS Events component. Learn about the available props and the CSS API.
|
|
@@ -223,18 +222,24 @@ function Events(inProps) {
|
|
|
223
222
|
/**
|
|
224
223
|
* Renders events list
|
|
225
224
|
*/
|
|
226
|
-
const content = ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [showFilters && ((0, jsx_runtime_1.jsx)(material_1.Grid, Object.assign({ container: true, className: classes.filters, gap: 2 }, { children: filters ? (filters) : showUserEvents ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Grid, Object.assign({
|
|
225
|
+
const content = ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [showFilters && ((0, jsx_runtime_1.jsx)(material_1.Grid, Object.assign({ container: true, width: "100%", className: classes.filters, gap: 2 }, { children: filters ? (filters) : showUserEvents ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Grid, Object.assign({ size: "grow" }, { children: (0, jsx_runtime_1.jsx)(EventsChipRoot, { color: showMyEvents ? 'secondary' : 'default', variant: showMyEvents ? 'filled' : 'outlined', label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.events.filterByCreatedByMe", defaultMessage: "ui.events.filterByCreatedByMe" }), onClick: () => setShowMyEvents(!showMyEvents),
|
|
227
226
|
// @ts-expect-error this is needed to use showFollowed into SCEvents
|
|
228
|
-
showFollowed: showMyEvents, deleteIcon: showMyEvents ? (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "close" }) : null, onDelete: showMyEvents ? () => setShowMyEvents(false) : null, disabled: loading }) })), (0, jsx_runtime_1.jsx)(material_1.Grid, Object.assign({
|
|
227
|
+
showFollowed: showMyEvents, deleteIcon: showMyEvents ? (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "close" }) : null, onDelete: showMyEvents ? () => setShowMyEvents(false) : null, disabled: loading }) })), (0, jsx_runtime_1.jsx)(material_1.Grid, Object.assign({ size: "grow" }, { children: (0, jsx_runtime_1.jsx)(PastEventsFilter_1.default, { showPastEvents: showPastEvents, handleClick: handleChipPastClick, handleDeleteClick: handleDeletePastClick, disabled: loading }) })), (0, jsx_runtime_1.jsx)(material_1.Grid, Object.assign({ size: "grow" }, { children: (0, jsx_runtime_1.jsx)(LocationEventsFilter_1.default, { value: location, disabled: loading, handleOnChange: handleOnChangeLocation }) }))] })) : general ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Grid, Object.assign({ size: { md: 3 } }, { children: (0, jsx_runtime_1.jsx)(material_1.TextField, { className: classes.search, size: "small", fullWidth: true, value: query, label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.events.filterByName", defaultMessage: "ui.events.filterByName" }), variant: "outlined", onChange: handleOnChangeFilterName, disabled: loading, onKeyUp: (e) => {
|
|
229
228
|
e.preventDefault();
|
|
230
229
|
if (e.key === 'Enter') {
|
|
231
230
|
fetchEvents();
|
|
232
231
|
}
|
|
233
|
-
},
|
|
234
|
-
|
|
235
|
-
|
|
232
|
+
}, slotProps: {
|
|
233
|
+
input: {
|
|
234
|
+
endAdornment: ((0, jsx_runtime_1.jsx)(material_1.InputAdornment, Object.assign({ position: "end" }, { children: isMobile ? ((0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ onClick: () => fetchEvents(), disabled: loading }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "search" }) }))) : ((0, jsx_runtime_1.jsx)(material_1.Button, { size: "small", variant: "contained", color: "secondary", onClick: () => fetchEvents(), endIcon: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "search" }), disabled: loading })) })))
|
|
235
|
+
}
|
|
236
|
+
} }) })), (0, jsx_runtime_1.jsx)(material_1.Grid, Object.assign({ size: { md: 2 } }, { children: (0, jsx_runtime_1.jsxs)(material_1.FormControl, Object.assign({ fullWidth: true }, { children: [(0, jsx_runtime_1.jsx)(material_1.InputLabel, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.events.filterByDate", defaultMessage: "ui.events.filterByDate" }) }), (0, jsx_runtime_1.jsx)(material_1.Select, Object.assign({ disabled: showOngoingEvents || loading, size: "small", label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.events.filterByDate", defaultMessage: "ui.events.filterByDate" }), value: dateSearch, onChange: handleOnChangeTimeFrame, renderValue: (selected) => options.find((option) => option.value === selected).label }, { children: options.map((option) => ((0, jsx_runtime_1.jsxs)(material_1.MenuItem, Object.assign({ value: option.value }, { children: [(0, jsx_runtime_1.jsx)(material_1.Radio, { checked: dateSearch === option.value, value: option.value, name: "radio-button-select", slotProps: {
|
|
237
|
+
input: {
|
|
238
|
+
'aria-label': `${option.label}`
|
|
239
|
+
}
|
|
240
|
+
} }), option.label] }), option.value))) }))] })) })), (0, jsx_runtime_1.jsx)(material_1.Grid, Object.assign({ size: { md: 2 } }, { children: (0, jsx_runtime_1.jsx)(LocationEventsFilter_1.default, { value: location, disabled: loading, handleOnChange: handleOnChangeLocation }) })), authUserId && ((0, jsx_runtime_1.jsx)(material_1.Grid, Object.assign({ size: "grow" }, { children: (0, jsx_runtime_1.jsx)(EventsChipRoot, { color: showFollowed ? 'secondary' : 'default', variant: showFollowed ? 'filled' : 'outlined', label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.events.filterByFollowedInterest", defaultMessage: "ui.events.filterByFollowedInterest" }), onClick: handleChipClick,
|
|
236
241
|
// @ts-expect-error this is needed to use showFollowed into SCEvents
|
|
237
|
-
showFollowed: showFollowed, deleteIcon: showFollowed ? (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "close" }) : null, onDelete: showFollowed ? handleDeleteClick : null, disabled: loading }) }))), (0, jsx_runtime_1.jsx)(material_1.Grid, Object.assign({
|
|
242
|
+
showFollowed: showFollowed, deleteIcon: showFollowed ? (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "close" }) : null, onDelete: showFollowed ? handleDeleteClick : null, disabled: loading }) }))), (0, jsx_runtime_1.jsx)(material_1.Grid, Object.assign({ size: "grow" }, { children: (0, jsx_runtime_1.jsx)(OngoingEventsFilter_1.default, { showOngoingEvents: showOngoingEvents, handleClick: handleChipOngoingClick, handleDeleteClick: handleDeleteOngoingClick, disabled: dateSearch !== types_1.SCEventDateFilterType.ALL || loading }) }))] })) : null }))), (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: loading ? ((0, jsx_runtime_1.jsx)(Skeleton_1.default, Object.assign({}, EventsSkeletonComponentProps, { EventSkeletonProps: EventSkeletonComponentProps }))) : ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: !events.length ? ((0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ className: classes.noResults }, { children: general ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Event_1.EventSkeleton, Object.assign({}, EventSkeletonComponentProps, { skeletonsAnimation: false, actions: (onlyStaffEnabled && react_core_1.UserUtils.isStaff(scUserContext.user)) || !onlyStaffEnabled ? ((0, jsx_runtime_1.jsx)(CreateEventButton_1.default, Object.assign({}, CreateEventButtonProps))) : null })), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body1" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.events.noEvents.title", defaultMessage: "ui.events.noEvents.title" }) }))] })) : showUserEvents ? ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body1" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.events.noEvents.title.personal", defaultMessage: "ui.events.noEvents.title.personal" }) })) })) : null }))) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Grid, Object.assign({ container: true, width: "100%", spacing: { xs: 2 }, className: classes.events }, GridContainerComponentProps, { children: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [events.map((event) => ((0, jsx_runtime_1.jsx)(material_1.Grid, Object.assign({ size: { md: 6 }, className: classes.item }, GridItemComponentProps, { children: (0, jsx_runtime_1.jsx)(Event_1.default, Object.assign({ event: event, eventId: event.id }, EventComponentProps)) }), event.id))), authUserId && events.length % 2 !== 0 && ((0, jsx_runtime_1.jsx)(material_1.Grid, Object.assign({ size: { md: 6 }, className: classes.itemSkeleton }, GridItemComponentProps, { children: (0, jsx_runtime_1.jsx)(Event_1.EventSkeleton, Object.assign({}, EventSkeletonComponentProps, { skeletonsAnimation: false, actions: (0, jsx_runtime_1.jsx)(CreateEventButton_1.default, Object.assign({ variant: "outlined", color: "primary", size: "small" }, CreateEventButtonProps, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.events.skeleton.action.add", defaultMessage: "ui.events.skeleton.action.add" }) })) })) }), "skeleton-item"))] }) })), Boolean(next) && ((0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ color: "secondary", variant: "text", onClick: handleNext, className: classes.showMore }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.events.button.seeMore", defaultMessage: "ui.events.button.seeMore" }) })))] })) })) })] }));
|
|
238
243
|
/**
|
|
239
244
|
* Renders root object (if content availability community option is false and user is anonymous, component is hidden)
|
|
240
245
|
*/
|
|
@@ -39,6 +39,10 @@ function LocationEventsFilter(inProps) {
|
|
|
39
39
|
if (autoHide) {
|
|
40
40
|
return null;
|
|
41
41
|
}
|
|
42
|
-
return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className), fullWidth: true }, { children: [(0, jsx_runtime_1.jsx)(material_1.InputLabel, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.events.filterByLocation", defaultMessage: "ui.events.filterByLocation" }) }), (0, jsx_runtime_1.jsx)(material_1.Select, Object.assign({ disabled: disabled, size: 'small', label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.events.location", defaultMessage: "ui.events.location" }), value: value, onChange: handleOnChange, renderValue: (selected) => locationOptions.find((option) => option.value === selected).label }, { children: locationOptions.map((option) => ((0, jsx_runtime_1.jsxs)(material_1.MenuItem, Object.assign({ value: option.value }, { children: [(0, jsx_runtime_1.jsx)(material_1.Radio, { checked: value === option.value, value: option.value, name: "radio-button-select",
|
|
42
|
+
return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className), fullWidth: true }, { children: [(0, jsx_runtime_1.jsx)(material_1.InputLabel, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.events.filterByLocation", defaultMessage: "ui.events.filterByLocation" }) }), (0, jsx_runtime_1.jsx)(material_1.Select, Object.assign({ disabled: disabled, size: 'small', label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.events.location", defaultMessage: "ui.events.location" }), value: value, onChange: handleOnChange, renderValue: (selected) => locationOptions.find((option) => option.value === selected).label }, { children: locationOptions.map((option) => ((0, jsx_runtime_1.jsxs)(material_1.MenuItem, Object.assign({ value: option.value }, { children: [(0, jsx_runtime_1.jsx)(material_1.Radio, { checked: value === option.value, value: option.value, name: "radio-button-select", slotProps: {
|
|
43
|
+
input: {
|
|
44
|
+
'aria-label': `${option.label}`
|
|
45
|
+
}
|
|
46
|
+
} }), option.label] }), option.value))) }))] })));
|
|
43
47
|
}
|
|
44
48
|
exports.default = LocationEventsFilter;
|
|
@@ -5,7 +5,11 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
5
5
|
const material_1 = require("@mui/material");
|
|
6
6
|
const react_intl_1 = require("react-intl");
|
|
7
7
|
const constants_1 = require("./constants");
|
|
8
|
-
const
|
|
8
|
+
const EventsChipRoot = (0, material_1.styled)(material_1.Chip, {
|
|
9
|
+
name: constants_1.PREFIX,
|
|
10
|
+
slot: 'EventsChipRoot',
|
|
11
|
+
shouldForwardProp: (prop) => prop !== 'showOngoingEvents'
|
|
12
|
+
})(() => ({}));
|
|
9
13
|
function OngoingEventsFilter(inProps) {
|
|
10
14
|
// PROPS
|
|
11
15
|
const props = (0, material_1.useThemeProps)({
|
|
@@ -16,7 +20,7 @@ function OngoingEventsFilter(inProps) {
|
|
|
16
20
|
if (autoHide) {
|
|
17
21
|
return null;
|
|
18
22
|
}
|
|
19
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
23
|
+
return ((0, jsx_runtime_1.jsx)(EventsChipRoot, Object.assign({ color: showOngoingEvents ? 'secondary' : 'default', variant: showOngoingEvents ? 'filled' : 'outlined', label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.events.filterByOngoingEvents", defaultMessage: "ui.events.filterByOngoingEvents" }), onClick: handleClick,
|
|
20
24
|
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
|
|
21
25
|
// @ts-ignore
|
|
22
26
|
showOngoingEvents: showOngoingEvents, deleteIcon: showOngoingEvents ? (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "close" }) : null, onDelete: showOngoingEvents ? handleDeleteClick : undefined }, rest)));
|