@selfcommunity/react-ui 0.8.0-embeds.16 → 0.8.0-live.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/components/AccountChangeMailValidation/AccountChangeMailValidation.js +1 -1
- package/lib/cjs/components/AccountDataPortability/AccountDataPortability.js +4 -4
- package/lib/cjs/components/AccountDataPortabilityButton/AccountDataPortabilityButton.js +1 -1
- package/lib/cjs/components/AccountDelete/AccountDelete.js +3 -3
- package/lib/cjs/components/AccountDeleteButton/AccountDeleteButton.js +1 -1
- package/lib/cjs/components/AccountRecover/AccountRecover.js +2 -2
- package/lib/cjs/components/AccountReset/AccountReset.js +1 -1
- package/lib/cjs/components/AccountVerify/AccountVerify.js +1 -1
- package/lib/cjs/components/BottomNavigation/BottomNavigation.d.ts +1 -1
- package/lib/cjs/components/BottomNavigation/BottomNavigation.js +2 -2
- package/lib/cjs/components/BroadcastMessages/BroadcastMessages.js +1 -1
- package/lib/cjs/components/BroadcastMessages/Message.js +4 -4
- package/lib/cjs/components/BroadcastMessages/Skeleton.js +1 -1
- package/lib/cjs/components/Categories/Categories.js +23 -1
- package/lib/cjs/components/Categories/Skeleton.js +1 -1
- package/lib/cjs/components/CategoriesPopularWidget/CategoriesPopularWidget.js +22 -1
- package/lib/cjs/components/CategoriesSuggestionWidget/CategoriesSuggestionWidget.js +22 -1
- package/lib/cjs/components/CategoriesSuggestionWidget/Skeleton.js +1 -1
- package/lib/cjs/components/Category/Category.js +1 -1
- package/lib/cjs/components/Category/Skeleton.js +1 -1
- package/lib/cjs/components/CategoryAutocomplete/CategoryAutocomplete.js +1 -1
- package/lib/cjs/components/CategoryFollowersButton/CategoryFollowersButton.js +1 -1
- package/lib/cjs/components/CategoryHeader/CategoryHeader.js +1 -1
- package/lib/cjs/components/CategoryHeader/Skeleton.js +1 -1
- package/lib/cjs/components/CategoryTrendingFeedWidget/CategoryTrendingFeedWidget.js +2 -2
- package/lib/cjs/components/CategoryTrendingFeedWidget/Skeleton.js +1 -1
- package/lib/cjs/components/CategoryTrendingUsersWidget/CategoryTrendingUsersWidget.js +1 -1
- package/lib/cjs/components/CategoryTrendingUsersWidget/Skeleton.js +1 -1
- package/lib/cjs/components/ChangeCover/ChangeCover.js +6 -6
- package/lib/cjs/components/ChangeGroupCover/ChangeGroupCover.js +1 -1
- package/lib/cjs/components/ChangeGroupPicture/ChangeGroupPicture.js +1 -1
- package/lib/cjs/components/ChangePicture/ChangePictureDialog/ChangePictureDialog.js +2 -2
- package/lib/cjs/components/CommentObject/CommentObject.js +4 -4
- package/lib/cjs/components/CommentObjectReply/CommentObjectReply.js +1 -1
- package/lib/cjs/components/CommentsFeedObject/CommentsFeedObject.js +4 -4
- package/lib/cjs/components/CommentsObject/CommentsObject.js +6 -6
- package/lib/cjs/components/Composer/Attributes/Attributes.js +2 -2
- package/lib/cjs/components/Composer/Composer.js +6 -4
- package/lib/cjs/components/Composer/Content/ContentDiscussion/ContentDiscussion.js +3 -3
- package/lib/cjs/components/Composer/Content/ContentPoll/ContentPoll.js +6 -6
- package/lib/cjs/components/Composer/Content/ContentPost/ContentPost.js +1 -1
- package/lib/cjs/components/Composer/Layer/AudienceLayer/AudienceLayer.js +5 -5
- package/lib/cjs/components/Composer/Layer/CategoryLayer/CategoryLayer.js +1 -1
- package/lib/cjs/components/Composer/Layer/CloseLayer/CloseLayer.js +1 -1
- package/lib/cjs/components/Composer/Layer/LocationLayer/LocationLayer.js +1 -1
- package/lib/cjs/components/Composer/Skeleton.js +1 -1
- package/lib/cjs/components/Composer/TypeSwitchButtonGroup/TypeSwitchButtonGroup.js +1 -1
- package/lib/cjs/components/ComposerIconButton/ComposerIconButton.js +2 -2
- package/lib/cjs/components/ConsentSolution/ConsentSolution.js +4 -4
- package/lib/cjs/components/ConsentSolution/Skeleton.js +1 -1
- package/lib/cjs/components/CreateEventButton/CreateEventButton.d.ts +2 -2
- package/lib/cjs/components/CreateEventButton/CreateEventButton.js +4 -4
- package/lib/cjs/components/CreateEventWidget/CreateEventWidget.js +1 -1
- package/lib/cjs/components/CreateEventWidget/Skeleton.js +1 -1
- package/lib/cjs/components/CreateLiveStreamButton/CreateLiveStreamButton.d.ts +49 -0
- package/lib/cjs/components/CreateLiveStreamButton/CreateLiveStreamButton.js +94 -0
- package/lib/cjs/components/CreateLiveStreamButton/index.d.ts +3 -0
- package/lib/cjs/components/CreateLiveStreamButton/index.js +5 -0
- package/lib/cjs/components/CreateLiveStreamDialog/CreateLiveStreamDialog.d.ts +51 -0
- package/lib/cjs/components/CreateLiveStreamDialog/CreateLiveStreamDialog.js +123 -0
- package/lib/cjs/components/CreateLiveStreamDialog/LiveStreamSelector/LiveStreamSelector.d.ts +46 -0
- package/lib/cjs/components/CreateLiveStreamDialog/LiveStreamSelector/LiveStreamSelector.js +166 -0
- package/lib/cjs/components/CreateLiveStreamDialog/constants.d.ts +1 -0
- package/lib/cjs/components/CreateLiveStreamDialog/constants.js +4 -0
- package/lib/cjs/components/CreateLiveStreamDialog/index.d.ts +3 -0
- package/lib/cjs/components/CreateLiveStreamDialog/index.js +5 -0
- package/lib/cjs/components/CreateLiveStreamDialog/types.d.ts +8 -0
- package/lib/cjs/components/CreateLiveStreamDialog/types.js +13 -0
- package/lib/cjs/components/CustomAdv/CustomAdv.js +2 -2
- package/lib/cjs/components/EditEventButton/EditEventButton.js +1 -1
- package/lib/cjs/components/Editor/Editor.d.ts +1 -1
- package/lib/cjs/components/Editor/Editor.js +1 -1
- package/lib/cjs/components/Editor/nodes/HashtagNode.d.ts +1 -1
- package/lib/cjs/components/Editor/nodes/HashtagNode.js +4 -4
- package/lib/cjs/components/Editor/nodes/ImageNode.d.ts +1 -1
- package/lib/cjs/components/Editor/nodes/ImageNode.js +7 -7
- package/lib/cjs/components/Editor/nodes/MentionNode.d.ts +1 -1
- package/lib/cjs/components/Editor/nodes/MentionNode.js +4 -4
- package/lib/cjs/components/Editor/plugins/ApiPlugin.d.ts +1 -1
- package/lib/cjs/components/Editor/plugins/EmojiPlugin.js +2 -2
- package/lib/cjs/components/Editor/plugins/FloatingLinkPlugin.js +4 -4
- package/lib/cjs/components/Editor/plugins/HashtagPlugin.js +3 -3
- package/lib/cjs/components/Editor/plugins/ImagePlugin.js +4 -4
- package/lib/cjs/components/Editor/plugins/MentionsPlugin.d.ts +2 -2
- package/lib/cjs/components/Editor/plugins/MentionsPlugin.js +4 -4
- package/lib/cjs/components/Editor/plugins/ToolbarPlugin.js +5 -5
- package/lib/cjs/components/Editor/shared/useDecorators.d.ts +2 -2
- package/lib/cjs/components/Editor/shared/useDecorators.js +1 -1
- package/lib/cjs/components/Event/Event.js +5 -5
- package/lib/cjs/components/Event/Skeleton.js +3 -3
- package/lib/cjs/components/EventAutocomplete/EventAutocomplete.js +1 -1
- package/lib/cjs/components/EventForm/EventAddress.js +2 -2
- package/lib/cjs/components/EventForm/EventForm.d.ts +7 -12
- package/lib/cjs/components/EventForm/EventForm.js +55 -55
- package/lib/cjs/components/EventForm/UploadEventCover.js +1 -1
- package/lib/cjs/components/EventForm/types.d.ts +5 -5
- package/lib/cjs/components/EventFormDialog/EventFormDialog.d.ts +48 -0
- package/lib/cjs/components/EventFormDialog/EventFormDialog.js +56 -0
- package/lib/cjs/components/EventFormDialog/constants.d.ts +1 -0
- package/lib/cjs/components/EventFormDialog/constants.js +4 -0
- package/lib/cjs/components/EventFormDialog/index.d.ts +3 -0
- package/lib/cjs/components/EventFormDialog/index.js +5 -0
- package/lib/cjs/components/EventHeader/EventHeader.js +4 -8
- package/lib/cjs/components/EventHeader/Skeleton.js +1 -1
- package/lib/cjs/components/EventInfoWidget/EventInfoWidget.js +7 -5
- package/lib/cjs/components/EventInfoWidget/Skeleton.js +1 -1
- package/lib/cjs/components/EventInviteButton/EventInviteButton.js +2 -2
- package/lib/cjs/components/EventLocationWidget/EventLocationWidget.js +3 -3
- package/lib/cjs/components/EventLocationWidget/Skeleton.js +1 -1
- package/lib/cjs/components/EventMediaWidget/EventMediaWidget.d.ts +41 -0
- package/lib/cjs/components/EventMediaWidget/EventMediaWidget.js +253 -0
- package/lib/cjs/components/EventMediaWidget/Skeleton.d.ts +2 -0
- package/lib/cjs/components/EventMediaWidget/Skeleton.js +28 -0
- package/lib/cjs/components/EventMediaWidget/TriggerButton.d.ts +17 -0
- package/lib/cjs/components/EventMediaWidget/TriggerButton.js +66 -0
- package/lib/cjs/components/EventMediaWidget/asUploadButton.d.ts +7 -0
- package/lib/cjs/components/EventMediaWidget/asUploadButton.js +25 -0
- package/lib/cjs/components/EventMediaWidget/constants.d.ts +1 -0
- package/lib/cjs/components/EventMediaWidget/constants.js +4 -0
- package/lib/cjs/components/EventMediaWidget/index.d.ts +4 -0
- package/lib/cjs/components/EventMediaWidget/index.js +8 -0
- package/lib/cjs/components/EventMembersWidget/EventMembersWidget.d.ts +3 -0
- package/lib/cjs/components/EventMembersWidget/EventMembersWidget.js +21 -16
- package/lib/cjs/components/EventMembersWidget/Skeleton.js +1 -1
- package/lib/cjs/components/EventMembersWidget/TabContentComponent.js +3 -3
- package/lib/cjs/components/EventMembersWidget/types.d.ts +1 -1
- package/lib/cjs/components/EventMembersWidget/types.js +1 -1
- package/lib/cjs/components/EventParticipantsButton/EventParticipantsButton.js +1 -1
- package/lib/cjs/components/EventSubscribeButton/EventSubscribeButton.js +2 -2
- package/lib/cjs/components/Events/Events.js +18 -9
- package/lib/cjs/components/Events/LocationEventsFilter.d.ts +14 -0
- package/lib/cjs/components/Events/LocationEventsFilter.js +45 -0
- package/lib/cjs/components/Events/PastEventsFilter.js +1 -2
- package/lib/cjs/components/Events/Skeleton.js +1 -1
- package/lib/cjs/components/Feed/Feed.d.ts +2 -2
- package/lib/cjs/components/Feed/Feed.js +15 -6
- package/lib/cjs/components/Feed/Skeleton.d.ts +1 -1
- package/lib/cjs/components/Feed/Skeleton.js +1 -1
- package/lib/cjs/components/FeedObject/Actions/Actions.js +1 -1
- package/lib/cjs/components/FeedObject/Actions/Comment/Comment.js +3 -3
- package/lib/cjs/components/FeedObject/Actions/Follow/Follow.js +1 -1
- package/lib/cjs/components/FeedObject/Actions/Share/Share.js +5 -5
- package/lib/cjs/components/FeedObject/Actions/Share/SharesDialog/SharesDialog.js +1 -1
- package/lib/cjs/components/FeedObject/Activities/Activities.js +1 -1
- package/lib/cjs/components/FeedObject/Activities/ActivitiesMenu/ActivitiesMenu.js +4 -4
- package/lib/cjs/components/FeedObject/Activities/RelevantActivities/CommentActivity/CommentActivity.js +3 -3
- package/lib/cjs/components/FeedObject/Activities/RelevantActivities/FollowActivity/FollowActivity.js +2 -2
- package/lib/cjs/components/FeedObject/Activities/RelevantActivities/PollVoteActivity/PollVoteActivity.js +2 -2
- package/lib/cjs/components/FeedObject/Activities/RelevantActivities/RelevantActivities.js +1 -1
- package/lib/cjs/components/FeedObject/Activities/RelevantActivities/VoteUpActivity/VoteUpActivity.js +2 -2
- package/lib/cjs/components/FeedObject/Contributors/Contributors.js +1 -1
- package/lib/cjs/components/FeedObject/Contributors/Skeleton.js +1 -1
- package/lib/cjs/components/FeedObject/FeedObject.js +11 -11
- package/lib/cjs/components/FeedObject/Poll/Choice/Choice.js +2 -2
- package/lib/cjs/components/FeedObject/Poll/Poll.js +1 -1
- package/lib/cjs/components/FeedUpdatesWidget/FeedUpdatesWidget.js +1 -1
- package/lib/cjs/components/Footer/Footer.js +1 -1
- package/lib/cjs/components/Group/Group.js +2 -2
- package/lib/cjs/components/Group/Skeleton.js +1 -1
- package/lib/cjs/components/GroupActionsMenu/index.d.ts +57 -0
- package/lib/cjs/components/GroupActionsMenu/index.js +157 -0
- package/lib/cjs/components/GroupAutocomplete/GroupAutocomplete.js +1 -1
- package/lib/cjs/components/GroupForm/GroupForm.js +9 -9
- package/lib/cjs/components/GroupHeader/GroupHeader.d.ts +6 -0
- package/lib/cjs/components/GroupHeader/GroupHeader.js +8 -4
- package/lib/cjs/components/GroupHeader/Skeleton.js +1 -1
- package/lib/cjs/components/GroupInfoWidget/GroupInfoWidget.js +6 -6
- package/lib/cjs/components/GroupInviteButton/GroupInviteButton.js +2 -2
- package/lib/cjs/components/GroupInvitedWidget/GroupInvitedWidget.js +1 -1
- package/lib/cjs/components/GroupMembersButton/GroupMembersButton.js +1 -1
- package/lib/cjs/components/GroupMembersWidget/GroupMembersWidget.js +5 -5
- package/lib/cjs/components/GroupRequestsWidget/GroupRequestsWidget.js +1 -1
- package/lib/cjs/components/GroupSettingsIconButton/GroupSettingsIconButton.js +5 -5
- package/lib/cjs/components/Groups/Groups.js +29 -3
- package/lib/cjs/components/Groups/Skeleton.js +1 -1
- package/lib/cjs/components/Incubator/Incubator.js +4 -4
- package/lib/cjs/components/Incubator/Skeleton.js +1 -1
- package/lib/cjs/components/IncubatorDetail/IncubatorDetail.js +2 -2
- package/lib/cjs/components/IncubatorListWidget/CreateIncubatorDialog/CreateIncubatorDialog.js +2 -2
- package/lib/cjs/components/IncubatorListWidget/IncubatorListWidget.js +2 -2
- package/lib/cjs/components/IncubatorListWidget/Skeleton.js +1 -1
- package/lib/cjs/components/IncubatorSuggestionWidget/IncubatorSuggestionWidget.js +1 -1
- package/lib/cjs/components/IncubatorSuggestionWidget/Skeleton.js +1 -1
- package/lib/cjs/components/InlineComposerWidget/InlineComposerWidget.js +1 -1
- package/lib/cjs/components/InlineComposerWidget/Skeleton.js +1 -1
- package/lib/cjs/components/LiveStreamForm/LiveStreamForm.d.ts +55 -0
- package/lib/cjs/components/LiveStreamForm/LiveStreamForm.js +156 -0
- package/lib/cjs/components/LiveStreamForm/constants.d.ts +1 -0
- package/lib/cjs/components/LiveStreamForm/constants.js +4 -0
- package/lib/cjs/components/LiveStreamForm/index.d.ts +3 -0
- package/lib/cjs/components/LiveStreamForm/index.js +5 -0
- package/lib/cjs/components/LiveStreamForm/types.d.ts +10 -0
- package/lib/cjs/components/LiveStreamForm/types.js +2 -0
- package/lib/cjs/components/LiveStreamRoom/LiveStreamRoom.d.ts +48 -0
- package/lib/cjs/components/LiveStreamRoom/LiveStreamRoom.js +123 -0
- package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/LiveStreamVideoConference.d.ts +69 -0
- package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/LiveStreamVideoConference.js +184 -0
- package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/RecordingIndicator.d.ts +4 -0
- package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/RecordingIndicator.js +31 -0
- package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/constants.d.ts +1 -0
- package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/constants.js +4 -0
- package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/index.d.ts +3 -0
- package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/index.js +5 -0
- package/lib/cjs/components/LiveStreamRoom/constants.d.ts +5 -0
- package/lib/cjs/components/LiveStreamRoom/constants.js +8 -0
- package/lib/cjs/components/LiveStreamRoom/index.d.ts +3 -0
- package/lib/cjs/components/LiveStreamRoom/index.js +5 -0
- package/lib/cjs/components/LiveStreamRoom/types.d.ts +22 -0
- package/lib/cjs/components/LiveStreamRoom/types.js +8 -0
- package/lib/cjs/components/LocationAutocomplete/LocationAutocomplete.js +1 -1
- package/lib/cjs/components/LoyaltyProgramWidget/LoyaltyProgramWidget.js +1 -1
- package/lib/cjs/components/LoyaltyProgramWidget/Skeleton.js +1 -1
- package/lib/cjs/components/MyEventsWidget/MyEventsWidget.js +1 -1
- package/lib/cjs/components/MyEventsWidget/Skeleton.js +1 -1
- package/lib/cjs/components/NavigationMenuIconButton/DefaultDrawerContent.js +1 -1
- package/lib/cjs/components/NavigationMenuIconButton/DefaultHeaderContent.d.ts +1 -1
- package/lib/cjs/components/NavigationMenuIconButton/DefaultHeaderContent.js +1 -1
- package/lib/cjs/components/NavigationMenuIconButton/NavigationMenuDrawer.d.ts +47 -0
- package/lib/cjs/components/NavigationMenuIconButton/NavigationMenuDrawer.js +39 -0
- package/lib/cjs/components/NavigationMenuIconButton/NavigationMenuIconButton.d.ts +9 -20
- package/lib/cjs/components/NavigationMenuIconButton/NavigationMenuIconButton.js +4 -20
- package/lib/cjs/components/NavigationMenuIconButton/index.d.ts +2 -1
- package/lib/cjs/components/NavigationMenuIconButton/index.js +3 -1
- package/lib/cjs/components/NavigationSettingsIconButton/NavigationSettingsIconButton.js +62 -29
- package/lib/cjs/components/NavigationToolbar/NavigationToolbar.d.ts +5 -0
- package/lib/cjs/components/NavigationToolbar/NavigationToolbar.js +9 -9
- package/lib/cjs/components/NavigationToolbar/NotificationMenu.js +1 -1
- package/lib/cjs/components/NavigationToolbar/Skeleton.js +1 -1
- package/lib/cjs/components/NavigationToolbarMobile/NavigationToolbarMobile.js +4 -4
- package/lib/cjs/components/NavigationToolbarMobile/Skeleton.js +1 -1
- package/lib/cjs/components/Notification/CollapsedFor/CollapsedFor.js +1 -1
- package/lib/cjs/components/Notification/Comment/Comment.js +3 -3
- package/lib/cjs/components/Notification/Contribution/Contribution.js +3 -3
- package/lib/cjs/components/Notification/ContributionFollow/ContributionFollow.js +2 -2
- package/lib/cjs/components/Notification/DeletedFor/DeletedFor.js +1 -1
- package/lib/cjs/components/Notification/Event/Event.js +13 -9
- package/lib/cjs/components/Notification/Group/Group.js +8 -8
- package/lib/cjs/components/Notification/IncubatorApproved/IncubatorApproved.js +3 -3
- package/lib/cjs/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.js +1 -1
- package/lib/cjs/components/Notification/KindlyNoticeFor/KindlyNoticeFor.js +2 -2
- package/lib/cjs/components/Notification/Mention/Mention.js +3 -3
- package/lib/cjs/components/Notification/Notification.js +8 -8
- package/lib/cjs/components/Notification/PrivateMessage/PrivateMessage.js +10 -10
- package/lib/cjs/components/Notification/Skeleton.js +1 -1
- package/lib/cjs/components/Notification/UndeletedFor/UndeletedFor.js +1 -1
- package/lib/cjs/components/Notification/UserBlocked/UserBlocked.js +3 -3
- package/lib/cjs/components/Notification/UserConnection/UserConnection.js +2 -2
- package/lib/cjs/components/Notification/UserFollow/UserFollow.js +2 -2
- package/lib/cjs/components/Notification/VoteUp/VoteUp.js +2 -2
- package/lib/cjs/components/OnBoardingWidget/ActionsButton.d.ts +7 -0
- package/lib/cjs/components/OnBoardingWidget/ActionsButton.js +84 -0
- package/lib/cjs/components/OnBoardingWidget/OnBoardingWidget.d.ts +10 -1
- package/lib/cjs/components/OnBoardingWidget/OnBoardingWidget.js +115 -30
- package/lib/cjs/components/OnBoardingWidget/Skeleton.js +1 -1
- package/lib/cjs/components/OnBoardingWidget/Steps/App/App.js +9 -9
- package/lib/cjs/components/OnBoardingWidget/Steps/Appearance/Appearance.js +26 -19
- package/lib/cjs/components/OnBoardingWidget/Steps/Category/Category.js +5 -5
- package/lib/cjs/components/OnBoardingWidget/Steps/Content/Content.js +1 -1
- package/lib/cjs/components/OnBoardingWidget/Steps/Invite/Invite.js +56 -12
- package/lib/cjs/components/OnBoardingWidget/Steps/Profile/Profile.js +1 -1
- package/lib/cjs/components/PlatformWidget/PlatformWidget.js +8 -8
- package/lib/cjs/components/PlatformWidget/Skeleton.js +1 -1
- package/lib/cjs/components/PlatformWidget/constants.d.ts +0 -4
- package/lib/cjs/components/PlatformWidget/constants.js +1 -5
- package/lib/cjs/components/PollSuggestionWidget/PollSnippet/PollSnippet.js +1 -1
- package/lib/cjs/components/PollSuggestionWidget/PollSuggestionWidget.js +1 -1
- package/lib/cjs/components/PollSuggestionWidget/Skeleton.js +1 -1
- package/lib/cjs/components/PrivateMessageComponent/PrivateMessageComponent.js +4 -4
- package/lib/cjs/components/PrivateMessageComponent/Skeleton.d.ts +1 -1
- package/lib/cjs/components/PrivateMessageComponent/Skeleton.js +1 -1
- package/lib/cjs/components/PrivateMessageEditor/MessageMediaUploader/index.js +5 -5
- package/lib/cjs/components/PrivateMessageEditor/PrivateMessageEditor.js +6 -6
- package/lib/cjs/components/PrivateMessageSettingsIconButton/PrivateMessageSettingsIconButton.js +7 -7
- package/lib/cjs/components/PrivateMessageSnippetItem/PrivateMessageSnippetItem.js +3 -3
- package/lib/cjs/components/PrivateMessageSnippetItem/Skeleton.js +1 -1
- package/lib/cjs/components/PrivateMessageSnippets/PrivateMessageSnippets.js +4 -4
- package/lib/cjs/components/PrivateMessageSnippets/Skeleton.js +1 -1
- package/lib/cjs/components/PrivateMessageThread/PrivateMessageThread.js +6 -6
- package/lib/cjs/components/PrivateMessageThread/Skeleton.js +1 -1
- package/lib/cjs/components/PrivateMessageThreadItem/PrivateMessageThreadItem.js +6 -8
- package/lib/cjs/components/RelatedEventsWidget/RelatedEventsWidget.js +1 -1
- package/lib/cjs/components/RelatedEventsWidget/Skeleton.js +1 -1
- package/lib/cjs/components/RelatedFeedObjectsWidget/RelatedFeedObjectsWidget.js +1 -1
- package/lib/cjs/components/SearchAutocomplete/SearchAutocomplete.js +2 -2
- package/lib/cjs/components/SnippetNotifications/Skeleton.js +1 -1
- package/lib/cjs/components/SnippetNotifications/SnippetNotifications.js +3 -3
- package/lib/cjs/components/SuggestedEventsWidget/Arrow.js +2 -2
- package/lib/cjs/components/SuggestedEventsWidget/Skeleton.js +1 -1
- package/lib/cjs/components/SuggestedEventsWidget/SuggestedEventsWidget.js +2 -2
- package/lib/cjs/components/User/Skeleton.js +1 -1
- package/lib/cjs/components/User/User.js +2 -2
- package/lib/cjs/components/UserActionIconButton/UserActionIconButton.js +9 -9
- package/lib/cjs/components/UserConnectionsRequestsSentWidget/UserConnectionsRequestsSentWidget.js +1 -1
- package/lib/cjs/components/UserConnectionsRequestsWidget/UserConnectionsRequestsWidget.js +1 -1
- package/lib/cjs/components/UserConnectionsWidget/UserConnectionsWidget.js +1 -1
- package/lib/cjs/components/UserCounters/UserCounters.js +5 -5
- package/lib/cjs/components/UserFollowedCategoriesWidget/UserFollowedCategoriesWidget.js +1 -1
- package/lib/cjs/components/UserFollowedUsersWidget/UserFollowedUsersWidget.js +1 -1
- package/lib/cjs/components/UserFollowersWidget/UserFollowersWidget.js +1 -1
- package/lib/cjs/components/UserInfo/Skeleton.js +1 -1
- package/lib/cjs/components/UserInfo/UserInfo.js +3 -3
- package/lib/cjs/components/UserInfoDialog/UserInfoDialog.js +1 -1
- package/lib/cjs/components/UserProfileBlocked/UserProfileBlocked.js +1 -1
- package/lib/cjs/components/UserProfileEdit/Section/Account.js +1 -1
- package/lib/cjs/components/UserProfileEdit/Section/AccountCredentials.js +6 -6
- package/lib/cjs/components/UserProfileEdit/Section/PublicInfo.js +8 -8
- package/lib/cjs/components/UserProfileEdit/Section/Settings.js +3 -3
- package/lib/cjs/components/UserProfileEdit/Section/SettingsSkeleton.js +1 -1
- package/lib/cjs/components/UserProfileEdit/Skeleton.js +1 -1
- package/lib/cjs/components/UserProfileEdit/UserProfileEdit.js +1 -1
- package/lib/cjs/components/UserProfileHeader/Skeleton.js +1 -1
- package/lib/cjs/components/UserProfileHeader/UserProfileHeader.js +1 -1
- package/lib/cjs/components/UserSocialAssociation/UserSocialAssociation.js +1 -1
- package/lib/cjs/components/UserSubscribedGroupsWidget/Skeleton.js +1 -1
- package/lib/cjs/components/UserSubscribedGroupsWidget/UserSubscribedGroupsWidget.js +2 -2
- package/lib/cjs/components/UserSuggestionWidget/Skeleton.js +1 -1
- package/lib/cjs/components/UserSuggestionWidget/UserSuggestionWidget.js +1 -1
- package/lib/cjs/components/VoteAudienceButton/VoteAudienceButton.js +5 -5
- package/lib/cjs/components/VoteButton/VoteButton.js +2 -2
- package/lib/cjs/constants/GroupActionsMenu.d.ts +5 -0
- package/lib/cjs/constants/GroupActionsMenu.js +8 -0
- package/lib/cjs/constants/LiveStream.d.ts +3 -0
- package/lib/cjs/constants/LiveStream.js +6 -0
- package/lib/cjs/constants/PubSub.d.ts +8 -1
- package/lib/cjs/constants/PubSub.js +11 -3
- package/lib/cjs/index.d.ts +15 -4
- package/lib/cjs/index.js +35 -9
- package/lib/cjs/shared/AutoPlayer/index.js +2 -2
- package/lib/cjs/shared/BaseDialog/BaseDialog.js +2 -2
- package/lib/cjs/shared/BaseItem/BaseItem.js +2 -2
- package/lib/cjs/shared/BaseItemButton/BaseItemButton.js +2 -2
- package/lib/cjs/shared/Calendar/index.js +1 -1
- package/lib/cjs/shared/ConfirmDialog/ConfirmDialog.js +1 -1
- package/lib/cjs/shared/ConsentSolutionSwitch/index.js +3 -3
- package/lib/cjs/shared/ContributionActionsMenu/index.js +10 -10
- package/lib/cjs/shared/CustomSnackMessage/index.js +1 -1
- package/lib/cjs/shared/DateTimeAgo/index.js +1 -1
- package/lib/cjs/shared/EmojiPicker/EmojiPicker.js +1 -1
- package/lib/cjs/shared/EventActionsMenu/index.d.ts +1 -1
- package/lib/cjs/shared/EventActionsMenu/index.js +15 -19
- package/lib/cjs/shared/EventInfoDetails/index.js +6 -6
- package/lib/cjs/shared/InfiniteScroll/index.d.ts +1 -1
- package/lib/cjs/shared/InfiniteScroll/index.js +5 -5
- package/lib/cjs/shared/InfiniteScroll/stories/InfiniteScrollWithHeight.js +1 -1
- package/lib/cjs/shared/InfiniteScroll/stories/PullDownToRefreshInfScroll.js +1 -1
- package/lib/cjs/shared/InfiniteScroll/stories/ScrollableTargetFixedInfScroll.js +2 -2
- package/lib/cjs/shared/InfiniteScroll/stories/ScrollableTargetInfScroll.js +1 -1
- package/lib/cjs/shared/InfiniteScroll/stories/ScrolleableTop.js +2 -2
- package/lib/cjs/shared/InfiniteScroll/stories/WindowInfiniteScrollComponent.js +1 -1
- package/lib/cjs/shared/LanguageSwitcher/index.js +1 -1
- package/lib/cjs/shared/Lightbox/BaseLightbox.d.ts +19 -0
- package/lib/cjs/shared/Lightbox/BaseLightbox.js +35 -0
- package/lib/cjs/shared/Lightbox/Lightbox.d.ts +31 -17
- package/lib/cjs/shared/Lightbox/Lightbox.js +16 -19
- package/lib/cjs/shared/Lightbox/constants.d.ts +1 -0
- package/lib/cjs/shared/Lightbox/constants.js +4 -0
- package/lib/cjs/shared/Lightbox/index.d.ts +4 -2
- package/lib/cjs/shared/Lightbox/index.js +4 -1
- package/lib/cjs/shared/MarkRead/MarkRead.js +1 -1
- package/lib/cjs/shared/Media/File/DisplayComponent.js +32 -15
- package/lib/cjs/shared/Media/File/PreviewComponent.js +3 -3
- package/lib/cjs/shared/Media/File/TriggerButton.js +7 -7
- package/lib/cjs/shared/Media/File/asUploadButton.d.ts +1 -1
- package/lib/cjs/shared/Media/Link/DisplayComponent.js +6 -6
- package/lib/cjs/shared/Media/Link/LayerComponent.js +1 -1
- package/lib/cjs/shared/Media/Link/PreviewComponent.js +1 -1
- package/lib/cjs/shared/Media/Link/TriggerButton.js +1 -1
- package/lib/cjs/shared/Media/Link/UrlTextField/index.d.ts +1 -1
- package/lib/cjs/shared/Media/Link/UrlTextField/index.js +3 -3
- package/lib/cjs/shared/Media/Share/DisplayComponent.js +1 -1
- package/lib/cjs/shared/MediaChunkUploader/index.js +13 -11
- package/lib/cjs/shared/MetadataField/MetadataField.d.ts +1 -1
- package/lib/cjs/shared/MetadataField/MetadataField.js +1 -1
- package/lib/cjs/shared/NotificationItem/NotificationItem.js +1 -1
- package/lib/cjs/shared/PasswordTextField/index.js +1 -1
- package/lib/cjs/shared/ProgressBar/index.js +1 -1
- package/lib/cjs/shared/StickyBox/index.d.ts +4 -4
- package/lib/cjs/shared/StickyBox/index.js +1 -1
- package/lib/cjs/shared/Tags/index.js +6 -6
- package/lib/cjs/shared/UserDeletedSnackBar/UserDeletedSnackBar.js +1 -1
- package/lib/cjs/shared/UsernameTextField/index.d.ts +1 -1
- package/lib/cjs/shared/VirtualizedScroller/VirtualScrollerChild.js +1 -1
- package/lib/cjs/types/broadcastMessage.js +1 -1
- package/lib/cjs/types/comments.js +1 -1
- package/lib/cjs/types/composer.d.ts +1 -1
- package/lib/cjs/types/event.js +1 -1
- package/lib/cjs/types/feedObject.js +2 -2
- package/lib/cjs/types/notification.js +1 -1
- package/lib/cjs/types/user.js +3 -3
- package/lib/cjs/utils/events.d.ts +2 -0
- package/lib/cjs/utils/events.js +10 -0
- package/lib/cjs/utils/formatRelativeTime.js +2 -2
- package/lib/cjs/utils/hash.d.ts +2 -1
- package/lib/cjs/utils/liveStream.d.ts +4 -0
- package/lib/cjs/utils/liveStream.js +25 -0
- package/lib/cjs/utils/widget.d.ts +1 -0
- package/lib/cjs/utils/widget.js +14 -0
- package/lib/esm/components/AccountChangeMailValidation/AccountChangeMailValidation.js +1 -1
- package/lib/esm/components/AccountDataPortability/AccountDataPortability.js +4 -4
- package/lib/esm/components/AccountDataPortabilityButton/AccountDataPortabilityButton.js +1 -1
- package/lib/esm/components/AccountDelete/AccountDelete.js +3 -3
- package/lib/esm/components/AccountDeleteButton/AccountDeleteButton.js +1 -1
- package/lib/esm/components/AccountRecover/AccountRecover.js +2 -2
- package/lib/esm/components/AccountReset/AccountReset.js +1 -1
- package/lib/esm/components/AccountVerify/AccountVerify.js +1 -1
- package/lib/esm/components/BottomNavigation/BottomNavigation.d.ts +1 -1
- package/lib/esm/components/BottomNavigation/BottomNavigation.js +2 -2
- package/lib/esm/components/BroadcastMessages/BroadcastMessages.js +1 -1
- package/lib/esm/components/BroadcastMessages/Message.js +4 -4
- package/lib/esm/components/BroadcastMessages/Skeleton.js +1 -1
- package/lib/esm/components/Categories/Categories.js +24 -2
- package/lib/esm/components/Categories/Skeleton.js +1 -1
- package/lib/esm/components/CategoriesPopularWidget/CategoriesPopularWidget.js +23 -2
- package/lib/esm/components/CategoriesSuggestionWidget/CategoriesSuggestionWidget.js +23 -2
- package/lib/esm/components/CategoriesSuggestionWidget/Skeleton.js +1 -1
- package/lib/esm/components/Category/Category.js +1 -1
- package/lib/esm/components/Category/Skeleton.js +1 -1
- package/lib/esm/components/CategoryAutocomplete/CategoryAutocomplete.js +1 -1
- package/lib/esm/components/CategoryFollowersButton/CategoryFollowersButton.js +1 -1
- package/lib/esm/components/CategoryHeader/CategoryHeader.js +1 -1
- package/lib/esm/components/CategoryHeader/Skeleton.js +1 -1
- package/lib/esm/components/CategoryTrendingFeedWidget/CategoryTrendingFeedWidget.js +2 -2
- package/lib/esm/components/CategoryTrendingFeedWidget/Skeleton.js +1 -1
- package/lib/esm/components/CategoryTrendingUsersWidget/CategoryTrendingUsersWidget.js +1 -1
- package/lib/esm/components/CategoryTrendingUsersWidget/Skeleton.js +1 -1
- package/lib/esm/components/ChangeCover/ChangeCover.js +6 -6
- package/lib/esm/components/ChangeGroupCover/ChangeGroupCover.js +1 -1
- package/lib/esm/components/ChangeGroupPicture/ChangeGroupPicture.js +1 -1
- package/lib/esm/components/ChangePicture/ChangePictureDialog/ChangePictureDialog.js +2 -2
- package/lib/esm/components/CommentObject/CommentObject.js +4 -4
- package/lib/esm/components/CommentObjectReply/CommentObjectReply.js +1 -1
- package/lib/esm/components/CommentsFeedObject/CommentsFeedObject.js +4 -4
- package/lib/esm/components/CommentsObject/CommentsObject.js +6 -6
- package/lib/esm/components/Composer/Attributes/Attributes.js +2 -2
- package/lib/esm/components/Composer/Composer.js +6 -4
- package/lib/esm/components/Composer/Content/ContentDiscussion/ContentDiscussion.js +3 -3
- package/lib/esm/components/Composer/Content/ContentPoll/ContentPoll.js +6 -6
- package/lib/esm/components/Composer/Content/ContentPost/ContentPost.js +1 -1
- package/lib/esm/components/Composer/Layer/AudienceLayer/AudienceLayer.js +4 -4
- package/lib/esm/components/Composer/Layer/CategoryLayer/CategoryLayer.js +1 -1
- package/lib/esm/components/Composer/Layer/CloseLayer/CloseLayer.js +1 -1
- package/lib/esm/components/Composer/Layer/LocationLayer/LocationLayer.js +1 -1
- package/lib/esm/components/Composer/Skeleton.js +1 -1
- package/lib/esm/components/Composer/TypeSwitchButtonGroup/TypeSwitchButtonGroup.js +2 -2
- package/lib/esm/components/ComposerIconButton/ComposerIconButton.js +2 -2
- package/lib/esm/components/ConsentSolution/ConsentSolution.js +4 -4
- package/lib/esm/components/ConsentSolution/Skeleton.js +1 -1
- package/lib/esm/components/CreateEventButton/CreateEventButton.d.ts +2 -2
- package/lib/esm/components/CreateEventButton/CreateEventButton.js +4 -4
- package/lib/esm/components/CreateEventWidget/CreateEventWidget.js +1 -1
- package/lib/esm/components/CreateEventWidget/Skeleton.js +1 -1
- package/lib/esm/components/CreateLiveStreamButton/CreateLiveStreamButton.d.ts +49 -0
- package/lib/esm/components/CreateLiveStreamButton/CreateLiveStreamButton.js +91 -0
- package/lib/esm/components/CreateLiveStreamButton/index.d.ts +3 -0
- package/lib/esm/components/CreateLiveStreamButton/index.js +2 -0
- package/lib/esm/components/CreateLiveStreamDialog/CreateLiveStreamDialog.d.ts +51 -0
- package/lib/esm/components/CreateLiveStreamDialog/CreateLiveStreamDialog.js +120 -0
- package/lib/esm/components/CreateLiveStreamDialog/LiveStreamSelector/LiveStreamSelector.d.ts +46 -0
- package/lib/esm/components/CreateLiveStreamDialog/LiveStreamSelector/LiveStreamSelector.js +163 -0
- package/lib/esm/components/CreateLiveStreamDialog/constants.d.ts +1 -0
- package/lib/esm/components/CreateLiveStreamDialog/constants.js +1 -0
- package/lib/esm/components/CreateLiveStreamDialog/index.d.ts +3 -0
- package/lib/esm/components/CreateLiveStreamDialog/index.js +2 -0
- package/lib/esm/components/CreateLiveStreamDialog/types.d.ts +8 -0
- package/lib/esm/components/CreateLiveStreamDialog/types.js +10 -0
- package/lib/esm/components/CustomAdv/CustomAdv.js +2 -2
- package/lib/esm/components/EditEventButton/EditEventButton.js +1 -1
- package/lib/esm/components/Editor/Editor.d.ts +1 -1
- package/lib/esm/components/Editor/Editor.js +1 -1
- package/lib/esm/components/Editor/nodes/HashtagNode.d.ts +1 -1
- package/lib/esm/components/Editor/nodes/HashtagNode.js +4 -4
- package/lib/esm/components/Editor/nodes/ImageNode.d.ts +1 -1
- package/lib/esm/components/Editor/nodes/ImageNode.js +7 -7
- package/lib/esm/components/Editor/nodes/MentionNode.d.ts +1 -1
- package/lib/esm/components/Editor/nodes/MentionNode.js +4 -4
- package/lib/esm/components/Editor/plugins/ApiPlugin.d.ts +1 -1
- package/lib/esm/components/Editor/plugins/EmojiPlugin.js +2 -2
- package/lib/esm/components/Editor/plugins/FloatingLinkPlugin.js +4 -4
- package/lib/esm/components/Editor/plugins/HashtagPlugin.js +3 -3
- package/lib/esm/components/Editor/plugins/ImagePlugin.js +4 -4
- package/lib/esm/components/Editor/plugins/MentionsPlugin.d.ts +2 -2
- package/lib/esm/components/Editor/plugins/MentionsPlugin.js +4 -4
- package/lib/esm/components/Editor/plugins/ToolbarPlugin.js +5 -5
- package/lib/esm/components/Editor/shared/useDecorators.d.ts +2 -2
- package/lib/esm/components/Editor/shared/useDecorators.js +1 -1
- package/lib/esm/components/Event/Event.js +5 -5
- package/lib/esm/components/Event/Skeleton.js +3 -3
- package/lib/esm/components/EventAutocomplete/EventAutocomplete.js +1 -1
- package/lib/esm/components/EventForm/EventAddress.js +2 -2
- package/lib/esm/components/EventForm/EventForm.d.ts +7 -12
- package/lib/esm/components/EventForm/EventForm.js +56 -56
- package/lib/esm/components/EventForm/UploadEventCover.js +1 -1
- package/lib/esm/components/EventForm/types.d.ts +5 -5
- package/lib/esm/components/EventFormDialog/EventFormDialog.d.ts +48 -0
- package/lib/esm/components/EventFormDialog/EventFormDialog.js +53 -0
- package/lib/esm/components/EventFormDialog/constants.d.ts +1 -0
- package/lib/esm/components/EventFormDialog/constants.js +1 -0
- package/lib/esm/components/EventFormDialog/index.d.ts +3 -0
- package/lib/esm/components/EventFormDialog/index.js +2 -0
- package/lib/esm/components/EventHeader/EventHeader.js +4 -8
- package/lib/esm/components/EventHeader/Skeleton.js +1 -1
- package/lib/esm/components/EventInfoWidget/EventInfoWidget.js +7 -5
- package/lib/esm/components/EventInfoWidget/Skeleton.js +1 -1
- package/lib/esm/components/EventInviteButton/EventInviteButton.js +2 -2
- package/lib/esm/components/EventLocationWidget/EventLocationWidget.js +3 -3
- package/lib/esm/components/EventLocationWidget/Skeleton.js +1 -1
- package/lib/esm/components/EventMediaWidget/EventMediaWidget.d.ts +41 -0
- package/lib/esm/components/EventMediaWidget/EventMediaWidget.js +250 -0
- package/lib/esm/components/EventMediaWidget/Skeleton.d.ts +2 -0
- package/lib/esm/components/EventMediaWidget/Skeleton.js +22 -0
- package/lib/esm/components/EventMediaWidget/TriggerButton.d.ts +17 -0
- package/lib/esm/components/EventMediaWidget/TriggerButton.js +64 -0
- package/lib/esm/components/EventMediaWidget/asUploadButton.d.ts +7 -0
- package/lib/esm/components/EventMediaWidget/asUploadButton.js +23 -0
- package/lib/esm/components/EventMediaWidget/constants.d.ts +1 -0
- package/lib/esm/components/EventMediaWidget/constants.js +1 -0
- package/lib/esm/components/EventMediaWidget/index.d.ts +4 -0
- package/lib/esm/components/EventMediaWidget/index.js +4 -0
- package/lib/esm/components/EventMembersWidget/EventMembersWidget.d.ts +3 -0
- package/lib/esm/components/EventMembersWidget/EventMembersWidget.js +21 -16
- package/lib/esm/components/EventMembersWidget/Skeleton.js +1 -1
- package/lib/esm/components/EventMembersWidget/TabContentComponent.js +3 -3
- package/lib/esm/components/EventMembersWidget/types.d.ts +1 -1
- package/lib/esm/components/EventParticipantsButton/EventParticipantsButton.js +1 -1
- package/lib/esm/components/EventSubscribeButton/EventSubscribeButton.js +2 -2
- package/lib/esm/components/Events/Events.js +19 -10
- package/lib/esm/components/Events/LocationEventsFilter.d.ts +14 -0
- package/lib/esm/components/Events/LocationEventsFilter.js +41 -0
- package/lib/esm/components/Events/PastEventsFilter.js +1 -2
- package/lib/esm/components/Events/Skeleton.js +1 -1
- package/lib/esm/components/Feed/Feed.d.ts +2 -2
- package/lib/esm/components/Feed/Feed.js +17 -8
- package/lib/esm/components/Feed/Skeleton.d.ts +1 -1
- package/lib/esm/components/Feed/Skeleton.js +1 -1
- package/lib/esm/components/FeedObject/Actions/Actions.js +1 -1
- package/lib/esm/components/FeedObject/Actions/Comment/Comment.js +3 -3
- package/lib/esm/components/FeedObject/Actions/Follow/Follow.js +1 -1
- package/lib/esm/components/FeedObject/Actions/Share/Share.js +5 -5
- package/lib/esm/components/FeedObject/Actions/Share/SharesDialog/SharesDialog.js +1 -1
- package/lib/esm/components/FeedObject/Activities/Activities.js +1 -1
- package/lib/esm/components/FeedObject/Activities/ActivitiesMenu/ActivitiesMenu.js +4 -4
- package/lib/esm/components/FeedObject/Activities/RelevantActivities/CommentActivity/CommentActivity.js +3 -3
- package/lib/esm/components/FeedObject/Activities/RelevantActivities/FollowActivity/FollowActivity.js +2 -2
- package/lib/esm/components/FeedObject/Activities/RelevantActivities/PollVoteActivity/PollVoteActivity.js +2 -2
- package/lib/esm/components/FeedObject/Activities/RelevantActivities/RelevantActivities.js +1 -1
- package/lib/esm/components/FeedObject/Activities/RelevantActivities/VoteUpActivity/VoteUpActivity.js +2 -2
- package/lib/esm/components/FeedObject/Contributors/Contributors.js +1 -1
- package/lib/esm/components/FeedObject/Contributors/Skeleton.js +1 -1
- package/lib/esm/components/FeedObject/FeedObject.js +11 -11
- package/lib/esm/components/FeedObject/Poll/Choice/Choice.js +2 -2
- package/lib/esm/components/FeedObject/Poll/Poll.js +1 -1
- package/lib/esm/components/FeedUpdatesWidget/FeedUpdatesWidget.js +1 -1
- package/lib/esm/components/Footer/Footer.js +1 -1
- package/lib/esm/components/Group/Group.js +2 -2
- package/lib/esm/components/Group/Skeleton.js +1 -1
- package/lib/esm/components/GroupActionsMenu/index.d.ts +57 -0
- package/lib/esm/components/GroupActionsMenu/index.js +154 -0
- package/lib/esm/components/GroupAutocomplete/GroupAutocomplete.js +1 -1
- package/lib/esm/components/GroupForm/GroupForm.js +9 -9
- package/lib/esm/components/GroupHeader/GroupHeader.d.ts +6 -0
- package/lib/esm/components/GroupHeader/GroupHeader.js +9 -5
- package/lib/esm/components/GroupHeader/Skeleton.js +1 -1
- package/lib/esm/components/GroupInfoWidget/GroupInfoWidget.js +6 -6
- package/lib/esm/components/GroupInviteButton/GroupInviteButton.js +2 -2
- package/lib/esm/components/GroupInvitedWidget/GroupInvitedWidget.js +1 -1
- package/lib/esm/components/GroupMembersButton/GroupMembersButton.js +1 -1
- package/lib/esm/components/GroupMembersWidget/GroupMembersWidget.js +5 -5
- package/lib/esm/components/GroupRequestsWidget/GroupRequestsWidget.js +1 -1
- package/lib/esm/components/GroupSettingsIconButton/GroupSettingsIconButton.js +5 -5
- package/lib/esm/components/Groups/Groups.js +30 -4
- package/lib/esm/components/Groups/Skeleton.js +1 -1
- package/lib/esm/components/Incubator/Incubator.js +4 -4
- package/lib/esm/components/Incubator/Skeleton.js +1 -1
- package/lib/esm/components/IncubatorDetail/IncubatorDetail.js +2 -2
- package/lib/esm/components/IncubatorListWidget/CreateIncubatorDialog/CreateIncubatorDialog.js +2 -2
- package/lib/esm/components/IncubatorListWidget/IncubatorListWidget.js +2 -2
- package/lib/esm/components/IncubatorListWidget/Skeleton.js +1 -1
- package/lib/esm/components/IncubatorSuggestionWidget/IncubatorSuggestionWidget.js +1 -1
- package/lib/esm/components/IncubatorSuggestionWidget/Skeleton.js +1 -1
- package/lib/esm/components/InlineComposerWidget/InlineComposerWidget.js +1 -1
- package/lib/esm/components/InlineComposerWidget/Skeleton.js +1 -1
- package/lib/esm/components/LiveStreamForm/LiveStreamForm.d.ts +55 -0
- package/lib/esm/components/LiveStreamForm/LiveStreamForm.js +153 -0
- package/lib/esm/components/LiveStreamForm/constants.d.ts +1 -0
- package/lib/esm/components/LiveStreamForm/constants.js +1 -0
- package/lib/esm/components/LiveStreamForm/index.d.ts +3 -0
- package/lib/esm/components/LiveStreamForm/index.js +2 -0
- package/lib/esm/components/LiveStreamForm/types.d.ts +10 -0
- package/lib/esm/components/LiveStreamForm/types.js +1 -0
- package/lib/esm/components/LiveStreamRoom/LiveStreamRoom.d.ts +48 -0
- package/lib/esm/components/LiveStreamRoom/LiveStreamRoom.js +120 -0
- package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/LiveStreamVideoConference.d.ts +69 -0
- package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/LiveStreamVideoConference.js +181 -0
- package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/RecordingIndicator.d.ts +4 -0
- package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/RecordingIndicator.js +28 -0
- package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/constants.d.ts +1 -0
- package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/constants.js +1 -0
- package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/index.d.ts +3 -0
- package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/index.js +2 -0
- package/lib/esm/components/LiveStreamRoom/constants.d.ts +5 -0
- package/lib/esm/components/LiveStreamRoom/constants.js +5 -0
- package/lib/esm/components/LiveStreamRoom/index.d.ts +3 -0
- package/lib/esm/components/LiveStreamRoom/index.js +2 -0
- package/lib/esm/components/LiveStreamRoom/types.d.ts +22 -0
- package/lib/esm/components/LiveStreamRoom/types.js +4 -0
- package/lib/esm/components/LocationAutocomplete/LocationAutocomplete.js +1 -1
- package/lib/esm/components/LoyaltyProgramWidget/LoyaltyProgramWidget.js +1 -1
- package/lib/esm/components/LoyaltyProgramWidget/Skeleton.js +1 -1
- package/lib/esm/components/MyEventsWidget/MyEventsWidget.js +1 -1
- package/lib/esm/components/MyEventsWidget/Skeleton.js +1 -1
- package/lib/esm/components/NavigationMenuIconButton/DefaultDrawerContent.js +2 -2
- package/lib/esm/components/NavigationMenuIconButton/DefaultHeaderContent.d.ts +1 -1
- package/lib/esm/components/NavigationMenuIconButton/DefaultHeaderContent.js +1 -1
- package/lib/esm/components/NavigationMenuIconButton/NavigationMenuDrawer.d.ts +47 -0
- package/lib/esm/components/NavigationMenuIconButton/NavigationMenuDrawer.js +36 -0
- package/lib/esm/components/NavigationMenuIconButton/NavigationMenuIconButton.d.ts +9 -20
- package/lib/esm/components/NavigationMenuIconButton/NavigationMenuIconButton.js +6 -22
- package/lib/esm/components/NavigationMenuIconButton/index.d.ts +2 -1
- package/lib/esm/components/NavigationMenuIconButton/index.js +2 -1
- package/lib/esm/components/NavigationSettingsIconButton/NavigationSettingsIconButton.js +65 -32
- package/lib/esm/components/NavigationToolbar/NavigationToolbar.d.ts +5 -0
- package/lib/esm/components/NavigationToolbar/NavigationToolbar.js +9 -9
- package/lib/esm/components/NavigationToolbar/NotificationMenu.js +1 -1
- package/lib/esm/components/NavigationToolbar/Skeleton.js +1 -1
- package/lib/esm/components/NavigationToolbarMobile/NavigationToolbarMobile.js +4 -4
- package/lib/esm/components/NavigationToolbarMobile/Skeleton.js +1 -1
- package/lib/esm/components/Notification/CollapsedFor/CollapsedFor.js +1 -1
- package/lib/esm/components/Notification/Comment/Comment.js +3 -3
- package/lib/esm/components/Notification/Contribution/Contribution.js +3 -3
- package/lib/esm/components/Notification/ContributionFollow/ContributionFollow.js +2 -2
- package/lib/esm/components/Notification/DeletedFor/DeletedFor.js +1 -1
- package/lib/esm/components/Notification/Event/Event.js +13 -9
- package/lib/esm/components/Notification/Group/Group.js +8 -8
- package/lib/esm/components/Notification/IncubatorApproved/IncubatorApproved.js +3 -3
- package/lib/esm/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.js +1 -1
- package/lib/esm/components/Notification/KindlyNoticeFor/KindlyNoticeFor.js +2 -2
- package/lib/esm/components/Notification/Mention/Mention.js +3 -3
- package/lib/esm/components/Notification/Notification.js +8 -8
- package/lib/esm/components/Notification/PrivateMessage/PrivateMessage.js +10 -10
- package/lib/esm/components/Notification/Skeleton.js +1 -1
- package/lib/esm/components/Notification/UndeletedFor/UndeletedFor.js +1 -1
- package/lib/esm/components/Notification/UserBlocked/UserBlocked.js +3 -3
- package/lib/esm/components/Notification/UserConnection/UserConnection.js +2 -2
- package/lib/esm/components/Notification/UserFollow/UserFollow.js +2 -2
- package/lib/esm/components/Notification/VoteUp/VoteUp.js +2 -2
- package/lib/esm/components/OnBoardingWidget/ActionsButton.d.ts +7 -0
- package/lib/esm/components/OnBoardingWidget/ActionsButton.js +81 -0
- package/lib/esm/components/OnBoardingWidget/OnBoardingWidget.d.ts +10 -1
- package/lib/esm/components/OnBoardingWidget/OnBoardingWidget.js +118 -33
- package/lib/esm/components/OnBoardingWidget/Skeleton.js +1 -1
- package/lib/esm/components/OnBoardingWidget/Steps/App/App.js +9 -9
- package/lib/esm/components/OnBoardingWidget/Steps/Appearance/Appearance.js +27 -20
- package/lib/esm/components/OnBoardingWidget/Steps/Category/Category.js +5 -5
- package/lib/esm/components/OnBoardingWidget/Steps/Content/Content.js +1 -1
- package/lib/esm/components/OnBoardingWidget/Steps/Invite/Invite.js +59 -14
- package/lib/esm/components/OnBoardingWidget/Steps/Profile/Profile.js +1 -1
- package/lib/esm/components/PlatformWidget/PlatformWidget.js +8 -8
- package/lib/esm/components/PlatformWidget/Skeleton.js +1 -1
- package/lib/esm/components/PlatformWidget/constants.d.ts +0 -4
- package/lib/esm/components/PlatformWidget/constants.js +0 -4
- package/lib/esm/components/PollSuggestionWidget/PollSnippet/PollSnippet.js +1 -1
- package/lib/esm/components/PollSuggestionWidget/PollSuggestionWidget.js +1 -1
- package/lib/esm/components/PollSuggestionWidget/Skeleton.js +1 -1
- package/lib/esm/components/PrivateMessageComponent/PrivateMessageComponent.js +4 -4
- package/lib/esm/components/PrivateMessageComponent/Skeleton.d.ts +1 -1
- package/lib/esm/components/PrivateMessageComponent/Skeleton.js +1 -1
- package/lib/esm/components/PrivateMessageEditor/MessageMediaUploader/index.js +5 -5
- package/lib/esm/components/PrivateMessageEditor/PrivateMessageEditor.js +6 -6
- package/lib/esm/components/PrivateMessageSettingsIconButton/PrivateMessageSettingsIconButton.js +7 -7
- package/lib/esm/components/PrivateMessageSnippetItem/PrivateMessageSnippetItem.js +3 -3
- package/lib/esm/components/PrivateMessageSnippetItem/Skeleton.js +1 -1
- package/lib/esm/components/PrivateMessageSnippets/PrivateMessageSnippets.js +4 -4
- package/lib/esm/components/PrivateMessageSnippets/Skeleton.js +1 -1
- package/lib/esm/components/PrivateMessageThread/PrivateMessageThread.js +6 -6
- package/lib/esm/components/PrivateMessageThread/Skeleton.js +1 -1
- package/lib/esm/components/PrivateMessageThreadItem/PrivateMessageThreadItem.js +6 -8
- package/lib/esm/components/RelatedEventsWidget/RelatedEventsWidget.js +1 -1
- package/lib/esm/components/RelatedEventsWidget/Skeleton.js +1 -1
- package/lib/esm/components/RelatedFeedObjectsWidget/RelatedFeedObjectsWidget.js +1 -1
- package/lib/esm/components/SearchAutocomplete/SearchAutocomplete.js +2 -2
- package/lib/esm/components/SnippetNotifications/Skeleton.js +1 -1
- package/lib/esm/components/SnippetNotifications/SnippetNotifications.js +3 -3
- package/lib/esm/components/SuggestedEventsWidget/Arrow.js +2 -2
- package/lib/esm/components/SuggestedEventsWidget/Skeleton.js +1 -1
- package/lib/esm/components/SuggestedEventsWidget/SuggestedEventsWidget.js +2 -2
- package/lib/esm/components/User/Skeleton.js +1 -1
- package/lib/esm/components/User/User.js +2 -2
- package/lib/esm/components/UserActionIconButton/UserActionIconButton.js +9 -9
- package/lib/esm/components/UserConnectionsRequestsSentWidget/UserConnectionsRequestsSentWidget.js +1 -1
- package/lib/esm/components/UserConnectionsRequestsWidget/UserConnectionsRequestsWidget.js +1 -1
- package/lib/esm/components/UserConnectionsWidget/UserConnectionsWidget.js +1 -1
- package/lib/esm/components/UserCounters/UserCounters.js +5 -5
- package/lib/esm/components/UserFollowedCategoriesWidget/UserFollowedCategoriesWidget.js +1 -1
- package/lib/esm/components/UserFollowedUsersWidget/UserFollowedUsersWidget.js +1 -1
- package/lib/esm/components/UserFollowersWidget/UserFollowersWidget.js +1 -1
- package/lib/esm/components/UserInfo/Skeleton.js +1 -1
- package/lib/esm/components/UserInfo/UserInfo.js +3 -3
- package/lib/esm/components/UserInfoDialog/UserInfoDialog.js +1 -1
- package/lib/esm/components/UserProfileBlocked/UserProfileBlocked.js +1 -1
- package/lib/esm/components/UserProfileEdit/Section/Account.js +1 -1
- package/lib/esm/components/UserProfileEdit/Section/AccountCredentials.js +6 -6
- package/lib/esm/components/UserProfileEdit/Section/PublicInfo.js +8 -8
- package/lib/esm/components/UserProfileEdit/Section/Settings.js +3 -3
- package/lib/esm/components/UserProfileEdit/Section/SettingsSkeleton.js +1 -1
- package/lib/esm/components/UserProfileEdit/Skeleton.js +1 -1
- package/lib/esm/components/UserProfileEdit/UserProfileEdit.js +1 -1
- package/lib/esm/components/UserProfileHeader/Skeleton.js +1 -1
- package/lib/esm/components/UserProfileHeader/UserProfileHeader.js +1 -1
- package/lib/esm/components/UserSocialAssociation/UserSocialAssociation.js +1 -1
- package/lib/esm/components/UserSubscribedGroupsWidget/Skeleton.js +1 -1
- package/lib/esm/components/UserSubscribedGroupsWidget/UserSubscribedGroupsWidget.js +2 -2
- package/lib/esm/components/UserSuggestionWidget/Skeleton.js +1 -1
- package/lib/esm/components/UserSuggestionWidget/UserSuggestionWidget.js +1 -1
- package/lib/esm/components/VoteAudienceButton/VoteAudienceButton.js +5 -5
- package/lib/esm/components/VoteButton/VoteButton.js +2 -2
- package/lib/esm/constants/GroupActionsMenu.d.ts +5 -0
- package/lib/esm/constants/GroupActionsMenu.js +5 -0
- package/lib/esm/constants/LiveStream.d.ts +3 -0
- package/lib/esm/constants/LiveStream.js +3 -0
- package/lib/esm/constants/PubSub.d.ts +8 -1
- package/lib/esm/constants/PubSub.js +8 -0
- package/lib/esm/index.d.ts +15 -4
- package/lib/esm/index.js +17 -7
- package/lib/esm/shared/AutoPlayer/index.js +2 -2
- package/lib/esm/shared/BaseDialog/BaseDialog.js +2 -2
- package/lib/esm/shared/BaseItem/BaseItem.js +2 -2
- package/lib/esm/shared/BaseItemButton/BaseItemButton.js +2 -2
- package/lib/esm/shared/Calendar/index.js +1 -1
- package/lib/esm/shared/ConfirmDialog/ConfirmDialog.js +1 -1
- package/lib/esm/shared/ConsentSolutionSwitch/index.js +3 -3
- package/lib/esm/shared/ContributionActionsMenu/index.js +10 -10
- package/lib/esm/shared/CustomSnackMessage/index.js +1 -1
- package/lib/esm/shared/DateTimeAgo/index.js +1 -1
- package/lib/esm/shared/EmojiPicker/EmojiPicker.js +1 -1
- package/lib/esm/shared/EventActionsMenu/index.d.ts +1 -1
- package/lib/esm/shared/EventActionsMenu/index.js +15 -19
- package/lib/esm/shared/EventInfoDetails/index.js +6 -6
- package/lib/esm/shared/InfiniteScroll/index.d.ts +1 -1
- package/lib/esm/shared/InfiniteScroll/index.js +5 -5
- package/lib/esm/shared/InfiniteScroll/stories/InfiniteScrollWithHeight.js +1 -1
- package/lib/esm/shared/InfiniteScroll/stories/PullDownToRefreshInfScroll.js +1 -1
- package/lib/esm/shared/InfiniteScroll/stories/ScrollableTargetFixedInfScroll.js +2 -2
- package/lib/esm/shared/InfiniteScroll/stories/ScrollableTargetInfScroll.js +1 -1
- package/lib/esm/shared/InfiniteScroll/stories/ScrolleableTop.js +2 -2
- package/lib/esm/shared/InfiniteScroll/stories/WindowInfiniteScrollComponent.js +1 -1
- package/lib/esm/shared/LanguageSwitcher/index.js +1 -1
- package/lib/esm/shared/Lightbox/BaseLightbox.d.ts +19 -0
- package/lib/esm/shared/Lightbox/BaseLightbox.js +33 -0
- package/lib/esm/shared/Lightbox/Lightbox.d.ts +31 -17
- package/lib/esm/shared/Lightbox/Lightbox.js +15 -19
- package/lib/esm/shared/Lightbox/constants.d.ts +1 -0
- package/lib/esm/shared/Lightbox/constants.js +1 -0
- package/lib/esm/shared/Lightbox/index.d.ts +4 -2
- package/lib/esm/shared/Lightbox/index.js +3 -1
- package/lib/esm/shared/MarkRead/MarkRead.js +1 -1
- package/lib/esm/shared/Media/File/DisplayComponent.js +32 -15
- package/lib/esm/shared/Media/File/PreviewComponent.js +3 -3
- package/lib/esm/shared/Media/File/TriggerButton.js +7 -7
- package/lib/esm/shared/Media/File/asUploadButton.d.ts +1 -1
- package/lib/esm/shared/Media/Link/DisplayComponent.js +6 -6
- package/lib/esm/shared/Media/Link/LayerComponent.js +1 -1
- package/lib/esm/shared/Media/Link/PreviewComponent.js +1 -1
- package/lib/esm/shared/Media/Link/TriggerButton.js +1 -1
- package/lib/esm/shared/Media/Link/UrlTextField/index.d.ts +1 -1
- package/lib/esm/shared/Media/Link/UrlTextField/index.js +3 -3
- package/lib/esm/shared/Media/Share/DisplayComponent.js +1 -1
- package/lib/esm/shared/MediaChunkUploader/index.js +14 -12
- package/lib/esm/shared/MetadataField/MetadataField.d.ts +1 -1
- package/lib/esm/shared/MetadataField/MetadataField.js +1 -1
- package/lib/esm/shared/NotificationItem/NotificationItem.js +1 -1
- package/lib/esm/shared/PasswordTextField/index.js +1 -1
- package/lib/esm/shared/ProgressBar/index.js +1 -1
- package/lib/esm/shared/StickyBox/index.d.ts +4 -4
- package/lib/esm/shared/StickyBox/index.js +1 -1
- package/lib/esm/shared/Tags/index.js +5 -5
- package/lib/esm/shared/UserDeletedSnackBar/UserDeletedSnackBar.js +1 -1
- package/lib/esm/shared/UsernameTextField/index.d.ts +1 -1
- package/lib/esm/shared/VirtualizedScroller/VirtualScrollerChild.js +1 -1
- package/lib/esm/types/composer.d.ts +1 -1
- package/lib/esm/utils/events.d.ts +2 -0
- package/lib/esm/utils/events.js +6 -0
- package/lib/esm/utils/formatRelativeTime.js +2 -2
- package/lib/esm/utils/hash.d.ts +2 -1
- package/lib/esm/utils/liveStream.d.ts +4 -0
- package/lib/esm/utils/liveStream.js +18 -0
- package/lib/esm/utils/widget.d.ts +1 -0
- package/lib/esm/utils/widget.js +14 -0
- package/lib/umd/245.js +1 -0
- package/lib/umd/43.js +2 -0
- package/lib/umd/react-ui.js +1 -1
- package/lib/umd/react-ui.js.LICENSE.txt +2 -0
- package/package.json +23 -11
- package/lib/cjs/shared/Media/File/Lightbox/index.d.ts +0 -28
- package/lib/cjs/shared/Media/File/Lightbox/index.js +0 -37
- package/lib/esm/shared/Media/File/Lightbox/index.d.ts +0 -28
- package/lib/esm/shared/Media/File/Lightbox/index.js +0 -34
- package/lib/umd/99.js +0 -2
- /package/lib/umd/{99.js.LICENSE.txt → 43.js.LICENSE.txt} +0 -0
|
@@ -36,5 +36,5 @@ const Root = styled(Widget, {
|
|
|
36
36
|
export default function NotificationSkeleton(props) {
|
|
37
37
|
const theme = useTheme();
|
|
38
38
|
const notification = (_jsx(_Fragment, { children: _jsx(CardHeader, { avatar: _jsx(Skeleton, { animation: "wave", variant: "circular", width: theme.selfcommunity.user.avatar.sizeMedium, height: theme.selfcommunity.user.avatar.sizeMedium }), title: _jsx(Skeleton, { animation: "wave", height: 10, width: "80%", style: { marginBottom: 6 } }), subheader: _jsx(Skeleton, { animation: "wave", height: 10, width: "40%" }) }) }));
|
|
39
|
-
return (_jsxs(Root, Object.assign({ className: classes.root }, props, { children: [_jsxs(CardContent,
|
|
39
|
+
return (_jsxs(Root, Object.assign({ className: classes.root }, props, { children: [_jsxs(CardContent, { sx: { paddingBottom: 1 }, children: [_jsx(Skeleton, { animation: "wave", height: 20, style: { marginBottom: 0 } }), _jsx(Skeleton, { animation: "wave", height: 15, width: "60%", style: { marginBottom: 0 } })] }), [...Array(Math.floor(Math.random() * 5) + 1)].map((x, i) => (_jsx(React.Fragment, { children: notification }, i)))] })));
|
|
40
40
|
}
|
|
@@ -40,5 +40,5 @@ export default function UndeletedForNotification(props) {
|
|
|
40
40
|
/**
|
|
41
41
|
* Renders root object
|
|
42
42
|
*/
|
|
43
|
-
return (_jsx(Root, Object.assign({ id: id, className: classNames(classes.root, className, `${PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: _jsx(Avatar,
|
|
43
|
+
return (_jsx(Root, Object.assign({ id: id, className: classNames(classes.root, className, `${PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: _jsx(Avatar, { variant: "circular", classes: { root: classes.undeletedIcon }, children: _jsx(Icon, { children: "outlined_flag" }) }), primary: _jsx(_Fragment, { children: isSnippetTemplate ? (_jsx(Link, { to: scRoutingContext.url(SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], getRouteData(notificationObject[contributionType])), children: _jsx(Typography, { component: "div", color: "inherit", className: classes.undeletedText, children: _jsx(FormattedMessage, { id: "ui.notification.undeletedFor.restoredContentSnippet", defaultMessage: "ui.notification.undeletedFor.restoredContentSnippet" }) }) })) : (_jsx(Typography, { component: "div", color: "inherit", className: classes.undeletedText, children: _jsx(FormattedMessage, { id: "ui.notification.undeletedFor.restoredContent", defaultMessage: "ui.notification.undeletedFor.restoredContent" }) })) }), secondary: (template === SCNotificationObjectTemplateType.DETAIL || template === SCNotificationObjectTemplateType.SNIPPET) && (_jsx(DateTimeAgo, { date: notificationObject.active_at, className: classes.activeAt })), footer: isSnippetTemplate ? null : (_jsxs(_Fragment, { children: [_jsxs(Box, { className: classes.contributionWrap, children: [_jsx(Typography, { variant: 'body2', color: 'inherit', component: 'div', classes: { root: classes.contributionYouWroteLabel }, children: _jsx(FormattedMessage, { id: "ui.notification.undeletedFor.youWrote", defaultMessage: "ui.notification.undeletedFor.youWrote" }) }), _jsx(Link, { to: scRoutingContext.url(SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], getRouteData(notificationObject[contributionType])), className: classes.contributionText, children: _jsx(Typography, { component: 'span', variant: "body2", children: getContributionSnippet(notificationObject[contributionType]) }) })] }), template === SCNotificationObjectTemplateType.TOAST && (_jsxs(Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2, children: [_jsx(DateTimeAgo, { date: notificationObject.active_at }), _jsx(Typography, { color: "primary", component: 'div', children: _jsx(Link, { to: scRoutingContext.url(SCRoutes[`${notificationObject[contributionType]['type'].toUpperCase()}_ROUTE_NAME`], getRouteData(notificationObject[contributionType])), children: _jsx(FormattedMessage, { id: "ui.userToastNotifications.viewContribution", defaultMessage: 'ui.userToastNotifications.viewContribution' }) }) })] }))] })) }, rest)));
|
|
44
44
|
}
|
|
@@ -44,11 +44,11 @@ export default function UserBlockedNotification(props) {
|
|
|
44
44
|
/**
|
|
45
45
|
* Renders root object
|
|
46
46
|
*/
|
|
47
|
-
return (_jsx(Root, Object.assign({ id: id, className: classNames(classes.root, className, `${PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: _jsx(Avatar,
|
|
47
|
+
return (_jsx(Root, Object.assign({ id: id, className: classNames(classes.root, className, `${PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: _jsx(Avatar, { variant: "circular", classes: {
|
|
48
48
|
root: classNames(classes.unBlockedIcon, {
|
|
49
49
|
[classes.blockedIcon]: notificationObject.type === SCNotificationTypologyType.BLOCKED_USER
|
|
50
50
|
})
|
|
51
|
-
}
|
|
51
|
+
}, children: _jsx(Icon, { children: "outlined_flag" }) }), primary: _jsx(Typography, { component: "div", color: "inherit", className: classes.blockedText, children: notificationObject.type === SCNotificationTypologyType.BLOCKED_USER
|
|
52
52
|
? intl.formatMessage(messages.accountBlocked, { b: (...chunks) => _jsx("strong", { children: chunks }) })
|
|
53
|
-
: intl.formatMessage(messages.accountReactivated, { b: (...chunks) => _jsx("strong", { children: chunks }) }) })
|
|
53
|
+
: intl.formatMessage(messages.accountReactivated, { b: (...chunks) => _jsx("strong", { children: chunks }) }) }), secondary: (template === SCNotificationObjectTemplateType.DETAIL || template === SCNotificationObjectTemplateType.SNIPPET) && (_jsx(DateTimeAgo, { date: notificationObject.active_at, className: classes.activeAt })), footer: template === SCNotificationObjectTemplateType.TOAST && (_jsx(Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2, children: _jsx(DateTimeAgo, { date: notificationObject.active_at }) })) }, rest)));
|
|
54
54
|
}
|
|
@@ -53,7 +53,7 @@ export default function UserConnectionNotification(props) {
|
|
|
53
53
|
/**
|
|
54
54
|
* Renders root object
|
|
55
55
|
*/
|
|
56
|
-
return (_jsxs(_Fragment, { children: [_jsx(Root, Object.assign({ id: id, className: classNames(classes.root, className, `${PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: _jsx(Link, Object.assign({}, (!userConnection.deleted && { to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, userConnection) }), { onClick: userConnection.deleted ? () => setOpenAlert(true) : null
|
|
56
|
+
return (_jsxs(_Fragment, { children: [_jsx(Root, Object.assign({ id: id, className: classNames(classes.root, className, `${PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: _jsx(Link, Object.assign({}, (!userConnection.deleted && { to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, userConnection) }), { onClick: userConnection.deleted ? () => setOpenAlert(true) : null, children: _jsx(UserAvatar, { hide: !userConnection.community_badge, smaller: true, children: _jsx(Avatar, { alt: userConnection.username, variant: "circular", src: userConnection.avatar, classes: { root: classes.avatar } }) }) })), primary: _jsxs(Typography, { component: "div", color: "inherit", className: classes.connectionText, children: [_jsx(Link, Object.assign({}, (!userConnection.deleted && { to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, userConnection) }), { onClick: userConnection.deleted ? () => setOpenAlert(true) : null, className: classes.username, children: userConnection.username })), ' ', notificationObject.type === SCNotificationTypologyType.CONNECTION_REQUEST
|
|
57
57
|
? intl.formatMessage(messages.requestConnection, { b: (...chunks) => _jsx("strong", { children: chunks }) })
|
|
58
|
-
: intl.formatMessage(messages.acceptConnection, { b: (...chunks) => _jsx("strong", { children: chunks }) })] })
|
|
58
|
+
: intl.formatMessage(messages.acceptConnection, { b: (...chunks) => _jsx("strong", { children: chunks }) })] }), secondary: (template === SCNotificationObjectTemplateType.DETAIL || template === SCNotificationObjectTemplateType.SNIPPET) && (_jsx(DateTimeAgo, { date: notificationObject.active_at, className: classes.activeAt })), footer: template === SCNotificationObjectTemplateType.TOAST && (_jsxs(Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2, children: [_jsx(DateTimeAgo, { date: notificationObject.active_at }), _jsx(Typography, { color: "primary", component: 'div', children: _jsx(Link, Object.assign({}, (!userConnection.deleted && { to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, userConnection) }), { onClick: userConnection.deleted ? () => setOpenAlert(true) : null, children: _jsx(FormattedMessage, { id: "ui.userToastNotifications.goToProfile", defaultMessage: 'ui.userToastNotifications.goToProfile' }) })) })] })) }, rest)), openAlert && _jsx(UserDeletedSnackBar, { open: openAlert, handleClose: () => setOpenAlert(false) })] }));
|
|
59
59
|
}
|
|
@@ -46,7 +46,7 @@ export default function UserFollowNotification(props) {
|
|
|
46
46
|
/**
|
|
47
47
|
* Renders root object
|
|
48
48
|
*/
|
|
49
|
-
return (_jsxs(_Fragment, { children: [_jsx(Root, Object.assign({ id: id, className: classNames(classes.root, className, `${PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: _jsx(Link, Object.assign({}, (!notificationObject.follower.deleted && { to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.follower) }), { onClick: notificationObject.follower.deleted ? () => setOpenAlert(true) : null
|
|
49
|
+
return (_jsxs(_Fragment, { children: [_jsx(Root, Object.assign({ id: id, className: classNames(classes.root, className, `${PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: _jsx(Link, Object.assign({}, (!notificationObject.follower.deleted && { to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.follower) }), { onClick: notificationObject.follower.deleted ? () => setOpenAlert(true) : null, children: _jsx(UserAvatar, { hide: !notificationObject.follower.community_badge, smaller: true, children: _jsx(Avatar, { alt: notificationObject.follower.username, variant: "circular", src: notificationObject.follower.avatar, classes: { root: classes.avatar } }) }) })), primary: _jsxs(Typography, { component: "div", color: "inherit", className: classes.followText, children: [_jsx(Link, Object.assign({}, (!notificationObject.follower.deleted && { to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.follower) }), { onClick: notificationObject.follower.deleted ? () => setOpenAlert(true) : null, className: classes.username, children: notificationObject.follower.username })), ' ', intl.formatMessage(messages.followUser, { b: (...chunks) => _jsx("strong", { children: chunks }) })] }), secondary: (template === SCNotificationObjectTemplateType.DETAIL || template === SCNotificationObjectTemplateType.SNIPPET) && (_jsx(DateTimeAgo, { date: notificationObject.active_at, className: classes.activeAt })), footer: template === SCNotificationObjectTemplateType.TOAST && (_jsxs(Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2, children: [_jsx(DateTimeAgo, { date: notificationObject.active_at }), _jsx(Typography, { color: "primary", component: 'div', children: _jsx(Link, Object.assign({}, (!notificationObject.follower.deleted && {
|
|
50
50
|
to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.follower)
|
|
51
|
-
}), { onClick: notificationObject.follower.deleted ? () => setOpenAlert(true) : null
|
|
51
|
+
}), { onClick: notificationObject.follower.deleted ? () => setOpenAlert(true) : null, children: _jsx(FormattedMessage, { id: "ui.userToastNotifications.goToProfile", defaultMessage: 'ui.userToastNotifications.goToProfile' }) })) })] })) }, rest)), openAlert && _jsx(UserDeletedSnackBar, { open: openAlert, handleClose: () => setOpenAlert(false) })] }));
|
|
52
52
|
}
|
|
@@ -51,8 +51,8 @@ export default function VoteUpNotification(props) {
|
|
|
51
51
|
/**
|
|
52
52
|
* Renders root object
|
|
53
53
|
*/
|
|
54
|
-
return (_jsxs(_Fragment, { children: [_jsx(Root, Object.assign({ id: id, className: classNames(classes.root, className, `${PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: _jsx(Link, Object.assign({}, (!notificationObject.user.deleted && { to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.user) }), { onClick: notificationObject.user.deleted ? () => setOpenAlert(true) : null
|
|
54
|
+
return (_jsxs(_Fragment, { children: [_jsx(Root, Object.assign({ id: id, className: classNames(classes.root, className, `${PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: _jsx(Link, Object.assign({}, (!notificationObject.user.deleted && { to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.user) }), { onClick: notificationObject.user.deleted ? () => setOpenAlert(true) : null, children: _jsx(UserAvatar, { hide: !notificationObject.user.community_badge, smaller: true, children: _jsx(Avatar, { alt: notificationObject.user.username, variant: "circular", src: notificationObject.user.avatar, classes: { root: classes.avatar } }) }) })), primary: _jsxs(_Fragment, { children: [_jsx(Link, Object.assign({}, (!notificationObject.user.deleted && { to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.user) }), { onClick: notificationObject.user.deleted ? () => setOpenAlert(true) : null, className: classes.username, children: notificationObject.user.username })), ' ', intl.formatMessage(messages.appreciated, {
|
|
55
55
|
username: notificationObject.user.username,
|
|
56
56
|
b: (...chunks) => _jsx("strong", { children: chunks })
|
|
57
|
-
})] }), secondary: _jsxs(_Fragment, { children: [_jsx(Link,
|
|
57
|
+
})] }), secondary: _jsxs(_Fragment, { children: [_jsx(Link, { to: scRoutingContext.url(SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], getRouteData(notificationObject[contributionType])), children: _jsx(Typography, { variant: "body2", className: classes.contributionText, component: 'div', children: getContributionSnippet(notificationObject[contributionType]) }) }), (template === SCNotificationObjectTemplateType.DETAIL || template === SCNotificationObjectTemplateType.SNIPPET) && (_jsx(DateTimeAgo, { date: notificationObject.active_at, className: classes.activeAt }))] }), footer: template === SCNotificationObjectTemplateType.TOAST && (_jsxs(Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2, children: [_jsx(DateTimeAgo, { date: notificationObject.active_at }), _jsx(Typography, { color: "primary", component: 'div', children: _jsx(Link, { to: scRoutingContext.url(getContributionRouteName(contribution), getRouteData(contribution)), children: _jsx(FormattedMessage, { id: "ui.userToastNotifications.viewContribution", defaultMessage: 'ui.userToastNotifications.viewContribution' }) }) })] })) }, rest)), openAlert && _jsx(UserDeletedSnackBar, { open: openAlert, handleClose: () => setOpenAlert(false) })] }));
|
|
58
58
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IconButtonProps } from '@mui/material';
|
|
2
|
+
export interface OnBoardingActionsButtonProps extends IconButtonProps {
|
|
3
|
+
isExpanded: boolean;
|
|
4
|
+
onExpandChange: () => void;
|
|
5
|
+
onHideOnBoarding: () => void;
|
|
6
|
+
}
|
|
7
|
+
export default function OnBoardingActionsButton(inProps: OnBoardingActionsButtonProps): JSX.Element;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { __rest } from "tslib";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
|
+
import { useState } from 'react';
|
|
4
|
+
import { styled } from '@mui/material/styles';
|
|
5
|
+
import { Icon, IconButton, List, ListItem, ListItemButton, ListItemIcon, Menu, MenuItem, SwipeableDrawer, useMediaQuery, useTheme } from '@mui/material';
|
|
6
|
+
import classNames from 'classnames';
|
|
7
|
+
import { useThemeProps } from '@mui/system';
|
|
8
|
+
import { FormattedMessage } from 'react-intl';
|
|
9
|
+
import { PreferenceService } from '@selfcommunity/api-services';
|
|
10
|
+
import { SCOPE_SC_UI } from '../../constants/Errors';
|
|
11
|
+
import { Logger } from '@selfcommunity/utils';
|
|
12
|
+
import { SCPreferenceName } from '@selfcommunity/types';
|
|
13
|
+
import { PREFIX } from './constants';
|
|
14
|
+
const classes = {
|
|
15
|
+
root: `${PREFIX}-actions-button-root`,
|
|
16
|
+
drawerRoot: `${PREFIX}-actions-drawer-root`,
|
|
17
|
+
menuRoot: `${PREFIX}-actions-menu-root`,
|
|
18
|
+
paper: `${PREFIX}-actions-paper`,
|
|
19
|
+
item: `${PREFIX}-actions-item`
|
|
20
|
+
};
|
|
21
|
+
const Root = styled(IconButton, {
|
|
22
|
+
name: PREFIX,
|
|
23
|
+
slot: 'Root',
|
|
24
|
+
overridesResolver: (props, styles) => styles.root
|
|
25
|
+
})(() => ({}));
|
|
26
|
+
const SwipeableDrawerRoot = styled(SwipeableDrawer, {
|
|
27
|
+
name: PREFIX,
|
|
28
|
+
slot: 'Root',
|
|
29
|
+
overridesResolver: (props, styles) => styles.drawerRoot
|
|
30
|
+
})(() => ({}));
|
|
31
|
+
const MenuRoot = styled(Menu, {
|
|
32
|
+
name: PREFIX,
|
|
33
|
+
slot: 'Root',
|
|
34
|
+
overridesResolver: (props, styles) => styles.menuRoot
|
|
35
|
+
})(() => ({}));
|
|
36
|
+
export default function OnBoardingActionsButton(inProps) {
|
|
37
|
+
// PROPS
|
|
38
|
+
const props = useThemeProps({
|
|
39
|
+
props: inProps,
|
|
40
|
+
name: PREFIX
|
|
41
|
+
});
|
|
42
|
+
const { className = null, isExpanded, onExpandChange, onHideOnBoarding } = props, rest = __rest(props, ["className", "isExpanded", "onExpandChange", "onHideOnBoarding"]);
|
|
43
|
+
// STATE
|
|
44
|
+
const [anchorEl, setAnchorEl] = useState(null);
|
|
45
|
+
const theme = useTheme();
|
|
46
|
+
const isMobile = useMediaQuery(theme.breakpoints.down('md'));
|
|
47
|
+
// HANDLERS
|
|
48
|
+
const handleOpen = (event) => {
|
|
49
|
+
setAnchorEl(event.currentTarget);
|
|
50
|
+
};
|
|
51
|
+
const handleClose = () => {
|
|
52
|
+
setAnchorEl(null);
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* Updates onBoarding dynamic preference
|
|
56
|
+
*/
|
|
57
|
+
const hideOnBoarding = () => {
|
|
58
|
+
PreferenceService.updatePreferences({ [`${SCPreferenceName.ONBOARDING_HIDDEN}`]: true })
|
|
59
|
+
.then(() => {
|
|
60
|
+
onHideOnBoarding();
|
|
61
|
+
})
|
|
62
|
+
.catch((e) => {
|
|
63
|
+
Logger.error(SCOPE_SC_UI, e);
|
|
64
|
+
});
|
|
65
|
+
};
|
|
66
|
+
const renderList = () => {
|
|
67
|
+
if (isMobile) {
|
|
68
|
+
return [
|
|
69
|
+
isExpanded ? (_jsx(ListItem, { className: classes.item, children: _jsxs(ListItemButton, { onClick: onExpandChange, children: [_jsx(ListItemIcon, { children: _jsx(Icon, { children: "expand_less" }) }), _jsx(FormattedMessage, { id: "ui.onBoardingWidget.actionsMenu.view.less", defaultMessage: "ui.onBoardingWidget.actionsMenu.view.less" })] }) }, "expand_less")) : (_jsx(ListItem, { className: classes.item, children: _jsxs(ListItemButton, { onClick: onExpandChange, children: [_jsx(ListItemIcon, { children: _jsx(Icon, { children: "expand_more" }) }), _jsx(FormattedMessage, { id: "ui.onBoardingWidget.actionsMenu.view.more", defaultMessage: "ui.onBoardingWidget.actionsMenu.view.more" })] }) }, "expand_more")),
|
|
70
|
+
_jsx(ListItem, { className: classes.item, children: _jsxs(ListItemButton, { onClick: hideOnBoarding, children: [_jsx(ListItemIcon, { children: _jsx(Icon, { children: "close" }) }), _jsx(FormattedMessage, { id: "ui.onBoardingWidget.actionsMenu.close", defaultMessage: "ui.onBoardingWidget.actionsMenu.close" })] }) }, "close")
|
|
71
|
+
];
|
|
72
|
+
}
|
|
73
|
+
else {
|
|
74
|
+
return [
|
|
75
|
+
isExpanded ? (_jsxs(MenuItem, { className: classes.item, onClick: onExpandChange, children: [_jsx(ListItemIcon, { children: _jsx(Icon, { children: "expand_less" }) }), _jsx(FormattedMessage, { id: "ui.onBoardingWidget.actionsMenu.view.less", defaultMessage: "ui.onBoardingWidget.actionsMenu.view.less" })] }, "expand_less")) : (_jsxs(MenuItem, { className: classes.item, onClick: onExpandChange, children: [_jsx(ListItemIcon, { children: _jsx(Icon, { children: "expand_more" }) }), _jsx(FormattedMessage, { id: "ui.onBoardingWidget.actionsMenu.view.more", defaultMessage: "ui.onBoardingWidget.actionsMenu.view.more" })] }, "expand_more")),
|
|
76
|
+
_jsxs(MenuItem, { className: classes.item, onClick: hideOnBoarding, children: [_jsx(ListItemIcon, { children: _jsx(Icon, { children: "close" }) }), _jsx(FormattedMessage, { id: "ui.onBoardingWidget.actionsMenu.close", defaultMessage: "ui.onBoardingWidget.actionsMenu.close" })] }, "close")
|
|
77
|
+
];
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
return (_jsxs(_Fragment, { children: [_jsx(Root, Object.assign({ className: classNames(classes.root, className) }, rest, { onClick: handleOpen, children: _jsx(Icon, { children: "more_vert" }) })), isMobile ? (_jsx(SwipeableDrawerRoot, { onClick: () => setAnchorEl(null), className: classes.drawerRoot, anchor: "bottom", open: Boolean(anchorEl), onClose: handleClose, onOpen: handleOpen, PaperProps: { className: classes.paper }, disableSwipeToOpen: true, children: _jsx(List, { children: renderList() }) })) : (_jsx(MenuRoot, { onClick: () => setAnchorEl(null), className: classes.menuRoot, anchorEl: anchorEl, open: Boolean(anchorEl), onClose: handleClose, PaperProps: { className: classes.paper }, children: renderList() }))] }));
|
|
81
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { StartStepParams } from '@selfcommunity/api-services';
|
|
2
|
-
import { SCFeedObjectType } from '@selfcommunity/types';
|
|
2
|
+
import { SCFeedObjectType, SCOnBoardingStepType } from '@selfcommunity/types';
|
|
3
3
|
import { VirtualScrollerItemProps } from '../../types/virtualScroller';
|
|
4
4
|
export interface OnBoardingWidgetProps extends VirtualScrollerItemProps {
|
|
5
5
|
/**
|
|
@@ -18,6 +18,15 @@ export interface OnBoardingWidgetProps extends VirtualScrollerItemProps {
|
|
|
18
18
|
* @default null
|
|
19
19
|
*/
|
|
20
20
|
onGeneratedContent?: (feedObjs: SCFeedObjectType[]) => void;
|
|
21
|
+
/**
|
|
22
|
+
* Force widget expanded
|
|
23
|
+
* @default false
|
|
24
|
+
*/
|
|
25
|
+
forceExpanded?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* The initial step to display
|
|
28
|
+
*/
|
|
29
|
+
initialStep?: SCOnBoardingStepType;
|
|
21
30
|
}
|
|
22
31
|
declare const OnBoardingWidget: (inProps: OnBoardingWidgetProps) => JSX.Element;
|
|
23
32
|
export default OnBoardingWidget;
|
|
@@ -8,7 +8,7 @@ import classNames from 'classnames';
|
|
|
8
8
|
import { useThemeProps } from '@mui/system';
|
|
9
9
|
import Category from './Steps/Category';
|
|
10
10
|
import { PREFIX } from './constants';
|
|
11
|
-
import { getTheme, usePreviousValue, UserUtils, useSCContext, useSCFetchCategories, useSCPreferences, useSCTheme, useSCUser } from '@selfcommunity/react-core';
|
|
11
|
+
import { getTheme, SCPreferences, usePreviousValue, UserUtils, useSCContext, useSCFetchCategories, useSCPreferences, useSCTheme, useSCUser } from '@selfcommunity/react-core';
|
|
12
12
|
import Appearance from './Steps/Appearance';
|
|
13
13
|
import Profile from './Steps/Profile';
|
|
14
14
|
import Invite from './Steps/Invite';
|
|
@@ -17,14 +17,16 @@ import HiddenPlaceholder from '../../shared/HiddenPlaceholder';
|
|
|
17
17
|
import Widget from '../Widget';
|
|
18
18
|
import Content from './Steps/Content';
|
|
19
19
|
import { SCOPE_SC_UI } from '../../constants/Errors';
|
|
20
|
-
import { OnBoardingService, PreferenceService } from '@selfcommunity/api-services';
|
|
20
|
+
import { Endpoints, http, OnBoardingService, PreferenceService } from '@selfcommunity/api-services';
|
|
21
21
|
import { Logger } from '@selfcommunity/utils';
|
|
22
|
-
import { SCOnBoardingStepStatusType, SCOnBoardingStepType } from '@selfcommunity/types';
|
|
22
|
+
import { SCOnBoardingStepStatusType, SCOnBoardingStepType, SCOnBoardingStepIdType } from '@selfcommunity/types';
|
|
23
23
|
import OnBoardingWidgetSkeleton from './Skeleton';
|
|
24
24
|
import { closeSnackbar, useSnackbar } from 'notistack';
|
|
25
|
-
import { CONSOLE_PROD, CONSOLE_STAGE } from '../PlatformWidget/constants';
|
|
26
25
|
import HeaderPlaceholder from '../../assets/onBoarding/header';
|
|
27
26
|
import BaseDialog from '../../shared/BaseDialog';
|
|
27
|
+
import PubSub from 'pubsub-js';
|
|
28
|
+
import { SCCategoryEventType, SCTopicType } from '../../constants/PubSub';
|
|
29
|
+
import OnBoardingActionsButton from './ActionsButton';
|
|
28
30
|
const classes = {
|
|
29
31
|
root: `${PREFIX}-root`,
|
|
30
32
|
content: `${PREFIX}-content`,
|
|
@@ -33,7 +35,9 @@ const classes = {
|
|
|
33
35
|
intro: `${PREFIX}-intro`,
|
|
34
36
|
steps: `${PREFIX}-steps`,
|
|
35
37
|
stepsMobile: `${PREFIX}-steps-mobile`,
|
|
36
|
-
stepContent: `${PREFIX}-step-content
|
|
38
|
+
stepContent: `${PREFIX}-step-content`,
|
|
39
|
+
dialogRoot: `${PREFIX}-dialog-root`,
|
|
40
|
+
dialogContent: `${PREFIX}-dialog-content`
|
|
37
41
|
};
|
|
38
42
|
const Root = styled(Widget, {
|
|
39
43
|
name: PREFIX,
|
|
@@ -45,31 +49,38 @@ const AccordionRoot = styled(Accordion, {
|
|
|
45
49
|
slot: 'AccordionRoot',
|
|
46
50
|
overridesResolver: (props, styles) => styles.accordionRoot
|
|
47
51
|
})(() => ({}));
|
|
52
|
+
const DialogRoot = styled(BaseDialog, {
|
|
53
|
+
name: PREFIX,
|
|
54
|
+
slot: 'Root',
|
|
55
|
+
overridesResolver: (props, styles) => styles.dialogRoot
|
|
56
|
+
})(({ theme }) => ({}));
|
|
48
57
|
const OnBoardingWidget = (inProps) => {
|
|
49
58
|
// PROPS
|
|
50
59
|
const props = useThemeProps({
|
|
51
60
|
props: inProps,
|
|
52
61
|
name: PREFIX
|
|
53
62
|
});
|
|
54
|
-
const { className, GenerateContentsParams = {}, onGeneratedContent = null, onHeightChange } = props, rest = __rest(props, ["className", "GenerateContentsParams", "onGeneratedContent", "onHeightChange"]);
|
|
63
|
+
const { className, GenerateContentsParams = {}, onGeneratedContent = null, onHeightChange, onStateChange, forceExpanded = false, initialStep } = props, rest = __rest(props, ["className", "GenerateContentsParams", "onGeneratedContent", "onHeightChange", "onStateChange", "forceExpanded", "initialStep"]);
|
|
55
64
|
// STATE
|
|
56
65
|
const [loading, setLoading] = useState(true);
|
|
57
66
|
const [initialized, setInitialized] = useState(false);
|
|
58
67
|
const [steps, setSteps] = useState([]);
|
|
59
68
|
const nextStep = useMemo(() => {
|
|
60
|
-
const step = steps === null || steps === void 0 ? void 0 : steps.find((step) => step.status === 'in_progress' || step.status === 'not_started');
|
|
69
|
+
const step = steps === null || steps === void 0 ? void 0 : steps.find((step) => (initialStep ? step.step === initialStep : step.status === 'in_progress' || step.status === 'not_started'));
|
|
61
70
|
return step || (steps === null || steps === void 0 ? void 0 : steps[0]);
|
|
62
71
|
}, [steps]);
|
|
63
72
|
const allStepsDone = useMemo(() => {
|
|
64
73
|
return steps === null || steps === void 0 ? void 0 : steps.every((step) => step.status === SCOnBoardingStepStatusType.COMPLETED);
|
|
65
74
|
}, [steps]);
|
|
66
|
-
const [expanded, setExpanded] = useState(!allStepsDone);
|
|
75
|
+
const [expanded, setExpanded] = useState(!allStepsDone || forceExpanded);
|
|
67
76
|
const [_step, setStep] = useState(nextStep);
|
|
68
77
|
const currentContentsStep = steps === null || steps === void 0 ? void 0 : steps.find((s) => s.step === SCOnBoardingStepType.CONTENTS);
|
|
69
78
|
const prevContentsStep = usePreviousValue(currentContentsStep);
|
|
70
79
|
const currentCategoriesStep = steps === null || steps === void 0 ? void 0 : steps.find((s) => s.step === SCOnBoardingStepType.CATEGORIES);
|
|
71
80
|
const prevCategoriesStep = usePreviousValue(currentCategoriesStep);
|
|
72
|
-
const [
|
|
81
|
+
const [showNoCategoriesModal, setShowNoCategoriesModal] = useState(false);
|
|
82
|
+
const [showCategoriesWarningModal, setShowWarningCategoriesModal] = useState(false);
|
|
83
|
+
const [isGenerating, setIsGenerating] = useState(false);
|
|
73
84
|
// CONTEXT
|
|
74
85
|
const scUserContext = useSCUser();
|
|
75
86
|
const isAdmin = useMemo(() => UserUtils.isCommunityCreator(scUserContext.user), [scUserContext.user]);
|
|
@@ -77,13 +88,25 @@ const OnBoardingWidget = (inProps) => {
|
|
|
77
88
|
const scPreferencesContext = useSCPreferences();
|
|
78
89
|
const scThemeContext = useSCTheme();
|
|
79
90
|
const { enqueueSnackbar } = useSnackbar();
|
|
80
|
-
const
|
|
81
|
-
|
|
91
|
+
const showOnBoarding = useMemo(() => scPreferencesContext.preferences &&
|
|
92
|
+
SCPreferences.CONFIGURATIONS_ONBOARDING_ENABLED in scPreferencesContext.preferences &&
|
|
93
|
+
SCPreferences.CONFIGURATIONS_ONBOARDING_HIDDEN in scPreferencesContext.preferences &&
|
|
94
|
+
scPreferencesContext.preferences[SCPreferences.CONFIGURATIONS_ONBOARDING_ENABLED].value &&
|
|
95
|
+
!scPreferencesContext.preferences[SCPreferences.CONFIGURATIONS_ONBOARDING_HIDDEN].value, [scPreferencesContext.preferences]);
|
|
82
96
|
// HOOKS
|
|
83
97
|
const theme = useTheme();
|
|
84
98
|
const isMobile = useMediaQuery(theme.breakpoints.down('md'));
|
|
85
99
|
const { categories, isLoading } = useSCFetchCategories();
|
|
86
100
|
// HANDLERS
|
|
101
|
+
/**
|
|
102
|
+
* Notify changes to Feed if the Widget is contained
|
|
103
|
+
*/
|
|
104
|
+
const notifyLayoutChanges = useMemo(() => (state) => {
|
|
105
|
+
if (onStateChange && state) {
|
|
106
|
+
onStateChange(state);
|
|
107
|
+
}
|
|
108
|
+
onHeightChange && onHeightChange();
|
|
109
|
+
}, [onStateChange, onHeightChange]);
|
|
87
110
|
const completeStep = (s) => __awaiter(void 0, void 0, void 0, function* () {
|
|
88
111
|
if (s.status !== SCOnBoardingStepStatusType.COMPLETED) {
|
|
89
112
|
yield OnBoardingService.completeAStep(s.id)
|
|
@@ -101,10 +124,30 @@ const OnBoardingWidget = (inProps) => {
|
|
|
101
124
|
}
|
|
102
125
|
s.step === SCOnBoardingStepType.APPEARANCE && handlePreferencesUpdate();
|
|
103
126
|
});
|
|
127
|
+
/**
|
|
128
|
+
* Fetches platform url
|
|
129
|
+
*/
|
|
130
|
+
function fetchPlatform(query) {
|
|
131
|
+
http
|
|
132
|
+
.request({
|
|
133
|
+
url: Endpoints.Platform.url(),
|
|
134
|
+
method: Endpoints.Platform.method,
|
|
135
|
+
params: {
|
|
136
|
+
next: query
|
|
137
|
+
}
|
|
138
|
+
})
|
|
139
|
+
.then((res) => {
|
|
140
|
+
const platformUrl = res.data.platform_url;
|
|
141
|
+
window.open(platformUrl, '_blank').focus();
|
|
142
|
+
})
|
|
143
|
+
.catch((error) => {
|
|
144
|
+
console.log(error);
|
|
145
|
+
});
|
|
146
|
+
}
|
|
104
147
|
const showSuccessAlert = (step) => {
|
|
105
148
|
setIsGenerating(false);
|
|
106
149
|
enqueueSnackbar(_jsx(FormattedMessage, { id: `ui.onBoardingWidget.step.${step.step}.success`, defaultMessage: `ui.onBoardingWidget.step.${step.step}.success` }), {
|
|
107
|
-
action: (snackbarId) => (_jsxs(_Fragment, { children: [step.step === SCOnBoardingStepType.CATEGORIES && (_jsx(Button,
|
|
150
|
+
action: (snackbarId) => (_jsxs(_Fragment, { children: [step.step === SCOnBoardingStepType.CATEGORIES && (_jsx(Button, { sx: { textTransform: 'uppercase', color: 'white' }, size: "small", variant: "text", onClick: () => fetchPlatform('/contents/interests/'), children: _jsx(FormattedMessage, { id: "ui.onBoardingWidget.step.categories.success.link", defaultMessage: "ui.onBoardingWidget.step.categories.success.link" }) })), _jsx(IconButton, { sx: { color: 'white' }, onClick: () => closeSnackbar(snackbarId), children: _jsx(Icon, { children: "close" }) })] })),
|
|
108
151
|
variant: 'success',
|
|
109
152
|
autoHideDuration: 7000
|
|
110
153
|
});
|
|
@@ -129,24 +172,32 @@ const OnBoardingWidget = (inProps) => {
|
|
|
129
172
|
setStep(newStep);
|
|
130
173
|
};
|
|
131
174
|
const handleExpand = () => {
|
|
132
|
-
|
|
133
|
-
|
|
175
|
+
const _expanded = !expanded;
|
|
176
|
+
setExpanded(_expanded);
|
|
177
|
+
notifyLayoutChanges({ forceExpanded: _expanded });
|
|
134
178
|
};
|
|
135
179
|
const generateContent = (stepId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
136
180
|
if (!isLoading && !categories.length) {
|
|
137
|
-
|
|
181
|
+
setShowNoCategoriesModal(true);
|
|
182
|
+
}
|
|
183
|
+
else if (stepId === SCOnBoardingStepIdType.CATEGORIES) {
|
|
184
|
+
setShowWarningCategoriesModal(true);
|
|
138
185
|
}
|
|
139
186
|
else {
|
|
140
|
-
yield
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
187
|
+
yield startStep(stepId);
|
|
188
|
+
}
|
|
189
|
+
});
|
|
190
|
+
const startStep = (stepId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
191
|
+
showCategoriesWarningModal && setShowWarningCategoriesModal(false);
|
|
192
|
+
try {
|
|
193
|
+
yield OnBoardingService.startAStep(stepId, GenerateContentsParams);
|
|
194
|
+
setIsGenerating(true);
|
|
195
|
+
}
|
|
196
|
+
catch (error) {
|
|
197
|
+
Logger.error(SCOPE_SC_UI, error);
|
|
198
|
+
enqueueSnackbar(_jsx(FormattedMessage, { id: "ui.common.error.action", defaultMessage: "ui.common.error.action" }), {
|
|
199
|
+
variant: 'error',
|
|
200
|
+
autoHideDuration: 3000
|
|
150
201
|
});
|
|
151
202
|
}
|
|
152
203
|
});
|
|
@@ -157,6 +208,17 @@ const OnBoardingWidget = (inProps) => {
|
|
|
157
208
|
scThemeContext.setTheme(getTheme(scContext.settings.theme, prefs));
|
|
158
209
|
});
|
|
159
210
|
};
|
|
211
|
+
const handleCategoriesClick = () => {
|
|
212
|
+
fetchPlatform('/contents/interests/');
|
|
213
|
+
setShowNoCategoriesModal(false);
|
|
214
|
+
};
|
|
215
|
+
/**
|
|
216
|
+
* Notify when a category info changes
|
|
217
|
+
* @param data
|
|
218
|
+
*/
|
|
219
|
+
function notifyCategoryChanges(data) {
|
|
220
|
+
data && PubSub.publish(`${SCTopicType.CATEGORY}.${SCCategoryEventType.EDIT}`, data);
|
|
221
|
+
}
|
|
160
222
|
// EFFECTS
|
|
161
223
|
useEffect(() => {
|
|
162
224
|
if (prevContentsStep &&
|
|
@@ -176,11 +238,13 @@ const OnBoardingWidget = (inProps) => {
|
|
|
176
238
|
if (!initialized && nextStep) {
|
|
177
239
|
setStep(nextStep);
|
|
178
240
|
setInitialized(true);
|
|
241
|
+
notifyLayoutChanges({ forceExpanded: expanded });
|
|
179
242
|
}
|
|
180
243
|
}, [initialized, nextStep]);
|
|
181
244
|
useEffect(() => {
|
|
182
|
-
|
|
183
|
-
|
|
245
|
+
const _expanded = !allStepsDone;
|
|
246
|
+
setExpanded(_expanded);
|
|
247
|
+
notifyLayoutChanges({ forceExpanded: _expanded });
|
|
184
248
|
}, [allStepsDone]);
|
|
185
249
|
useEffect(() => {
|
|
186
250
|
if (isAdmin) {
|
|
@@ -190,6 +254,22 @@ const OnBoardingWidget = (inProps) => {
|
|
|
190
254
|
return () => clearInterval(intervalId);
|
|
191
255
|
}
|
|
192
256
|
}, [scUserContext === null || scUserContext === void 0 ? void 0 : scUserContext.user, isGenerating, isAdmin]);
|
|
257
|
+
/**
|
|
258
|
+
* updates categories info when generating category content
|
|
259
|
+
*/
|
|
260
|
+
useEffect(() => {
|
|
261
|
+
const categoryStep = steps.find((step) => step.step === SCOnBoardingStepType.CATEGORIES);
|
|
262
|
+
if ((categoryStep === null || categoryStep === void 0 ? void 0 : categoryStep.status) === SCOnBoardingStepStatusType.IN_PROGRESS && categoryStep.results.length !== 0) {
|
|
263
|
+
categoryStep.results.forEach((c) => {
|
|
264
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
|
|
265
|
+
// @ts-ignore
|
|
266
|
+
const isAlreadyNotified = prevCategoriesStep === null || prevCategoriesStep === void 0 ? void 0 : prevCategoriesStep.results.some((result) => result.id === c.id);
|
|
267
|
+
if (!isAlreadyNotified) {
|
|
268
|
+
notifyCategoryChanges(c);
|
|
269
|
+
}
|
|
270
|
+
});
|
|
271
|
+
}
|
|
272
|
+
}, [steps, prevCategoriesStep]);
|
|
193
273
|
/**
|
|
194
274
|
* Render _step content section
|
|
195
275
|
*/
|
|
@@ -220,27 +300,32 @@ const OnBoardingWidget = (inProps) => {
|
|
|
220
300
|
}
|
|
221
301
|
return content;
|
|
222
302
|
};
|
|
223
|
-
if (!isAdmin) {
|
|
303
|
+
if (!isAdmin || !showOnBoarding) {
|
|
224
304
|
return _jsx(HiddenPlaceholder, {});
|
|
225
305
|
}
|
|
226
|
-
return (_jsx(Root, Object.assign({ className: classNames(classes.root, className) }, rest, { children: _jsxs(AccordionRoot,
|
|
306
|
+
return (_jsx(Root, Object.assign({ className: classNames(classes.root, className) }, rest, { children: _jsxs(AccordionRoot, { defaultExpanded: true, className: classes.accordionRoot, expanded: expanded, children: [_jsx(AccordionSummary, { expandIcon: _jsx(OnBoardingActionsButton, { isExpanded: expanded, onExpandChange: handleExpand, onHideOnBoarding: handlePreferencesUpdate }), "aria-controls": "accordion", id: "onBoarding-accordion", children: _jsx(_Fragment, { children: expanded ? (_jsxs(_Fragment, { children: [!isMobile ? (_jsx(CardMedia, { className: classes.logo, component: "img", src: HeaderPlaceholder })) : (_jsxs(Typography, { variant: "h4", children: [_jsx(Icon, { color: "secondary", fontSize: "medium", children: "ai_stars" }), _jsx(FormattedMessage, { id: "ui.onBoardingWidget.accordion.expanded.title.mobile", defaultMessage: "ui.onBoardingWidget.accordion.expanded.title.mobile", values: {
|
|
227
307
|
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
|
|
228
308
|
// @ts-ignore
|
|
229
309
|
b: (chunks) => _jsx("strong", { children: chunks })
|
|
230
|
-
} })] }))
|
|
310
|
+
} })] })), _jsxs(Box, { className: classes.intro, children: [!isMobile && (_jsx(Typography, { variant: "h4", children: _jsx(FormattedMessage, { id: "ui.onBoardingWidget.accordion.expanded.title", defaultMessage: "ui.onBoardingWidget.accordion.expanded.title" }) })), _jsx(Typography, { variant: "h5", children: _jsx(FormattedMessage, { id: "ui.onBoardingWidget.accordion.expanded.subtitle", defaultMessage: "ui.onBoardingWidget.accordion.expanded.subtitle" }) }), _jsx(Typography, { children: _jsx(FormattedMessage, { id: "ui.onBoardingWidget.accordion.expanded.summary", defaultMessage: "ui.onBoardingWidget.accordion.expanded.summary", values: {
|
|
231
311
|
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
|
|
232
312
|
// @ts-ignore
|
|
233
313
|
b: (chunks) => _jsx("strong", { children: chunks }),
|
|
234
314
|
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
|
|
235
315
|
// @ts-ignore
|
|
236
316
|
icon: (...chunks) => _jsx(Icon, { children: chunks })
|
|
237
|
-
} }) })] })
|
|
317
|
+
} }) })] })] })) : (_jsx(Typography, { variant: "body1", children: _jsx(FormattedMessage, { id: "ui.onBoardingWidget.accordion.collapsed", defaultMessage: "ui.onBoardingWidget.accordion.collapsed", values: {
|
|
238
318
|
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
|
|
239
319
|
// @ts-ignore
|
|
240
320
|
b: (chunks) => _jsx("strong", { children: chunks }),
|
|
241
321
|
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
|
|
242
322
|
// @ts-ignore
|
|
243
|
-
|
|
244
|
-
|
|
323
|
+
// eslint-disable-next-line prettier/prettier
|
|
324
|
+
icon: (...chunks) => _jsx(Icon, { color: "secondary", fontSize: "medium", children: chunks })
|
|
325
|
+
} }) })) }) }), _jsx(AccordionDetails, { children: _jsx(Widget, { className: classes.content, elevation: 0, children: loading ? (_jsx(OnBoardingWidgetSkeleton, {})) : (_jsxs(CardContent, { children: [_jsx(List, { className: isMobile ? classes.stepsMobile : classes.steps, children: steps === null || steps === void 0 ? void 0 : steps.map((step) => (_jsx(ListItem, { children: isMobile ? (_jsx(Chip, { size: "small", label: _jsxs(_Fragment, { children: [_jsx(FormattedMessage, { id: `ui.onBoardingWidget.${step.step}`, defaultMessage: `ui.onBoardingWidget.${step.step}` }), ' ', step.status === SCOnBoardingStepStatusType.COMPLETED && (_jsx(Icon, { color: (step === null || step === void 0 ? void 0 : step.status) === SCOnBoardingStepStatusType.COMPLETED && (step === null || step === void 0 ? void 0 : step.step) !== (_step === null || _step === void 0 ? void 0 : _step.step) ? 'success' : 'inherit', children: "check" }))] }), onClick: () => handleChange(step), variant: step.step === (_step === null || _step === void 0 ? void 0 : _step.step) ? 'filled' : 'outlined', color: step.status === SCOnBoardingStepStatusType.COMPLETED ? 'success' : 'default' })) : (_jsxs(ListItemButton, { onClick: () => handleChange(step), selected: (step === null || step === void 0 ? void 0 : step.step) === (_step === null || _step === void 0 ? void 0 : _step.step), children: [_jsx(ListItemIcon, { children: _jsx(Checkbox, { edge: "start", checked: step.status === SCOnBoardingStepStatusType.COMPLETED, tabIndex: -1, disableRipple: true, inputProps: { 'aria-labelledby': step.step }, size: 'small' }) }), _jsx(ListItemText, { primary: _jsx(FormattedMessage, { id: `ui.onBoardingWidget.${step.step}`, defaultMessage: `ui.onBoardingWidget.${step.step}` }) })] })) }, step.id))) }), _jsxs(Box, { className: classes.stepContent, children: [_jsx(Fade, { in: true, timeout: 2400, children: _jsx(Box, { children: getStepContent() }) }), showNoCategoriesModal && (_jsx(BaseDialog, { title: _jsx(FormattedMessage, { id: "ui.onBoardingWidget.ai.no.categories", defaultMessage: "ui.onBoardingWidget.ai.no.categories" }), DialogContentProps: { dividers: false }, open: showNoCategoriesModal, onClose: () => setShowNoCategoriesModal(false), actions: _jsx(Button, { color: "secondary", onClick: () => setShowNoCategoriesModal(false), children: _jsx(FormattedMessage, { id: "ui.onBoardingWidget.ai.no.categories.cancel", defaultMessage: "ui.onBoardingWidget.ai.no.categories.cancel" }) }), children: _jsx(Button, { color: "primary", onClick: handleCategoriesClick, startIcon: _jsx(Icon, { fontSize: "small", children: "edit" }), children: _jsx(FormattedMessage, { id: "ui.onBoardingWidget.ai.no.categories.link", defaultMessage: "ui.onBoardingWidget.ai.no.categories.link" }) }) })), showCategoriesWarningModal && (_jsx(DialogRoot, { className: classes.dialogRoot, title: _jsx(FormattedMessage, { id: "ui.onBoardingWidget.ai.categories.warning.title", defaultMessage: "ui.onBoardingWidget.ai.categories.warning.title" }), DialogContentProps: { dividers: false }, open: showCategoriesWarningModal, onClose: () => setShowWarningCategoriesModal(false), actions: _jsxs(_Fragment, { children: [_jsx(Button, { size: "small", variant: "outlined", color: "primary", onClick: () => setShowWarningCategoriesModal(false), children: _jsx(FormattedMessage, { id: "ui.onBoardingWidget.ai.categories.warning.button.close", defaultMessage: "ui.onBoardingWidget.ai.categories.warning.button.close" }) }), _jsx(Button, { size: "small", variant: "contained", color: "secondary", onClick: () => startStep(SCOnBoardingStepIdType.CATEGORIES), endIcon: _jsx(Icon, { fontSize: "small", children: "magic_wand" }), children: _jsx(FormattedMessage, { id: "ui.onBoardingWidget.ai.categories.warning.button.generate", defaultMessage: "ui.onBoardingWidget.ai.categories.warning.button.generate" }) })] }), children: _jsxs(Typography, { className: classes.dialogContent, children: [_jsx(FormattedMessage, { id: "ui.onBoardingWidget.ai.categories.warning.info", defaultMessage: "ui.onBoardingWidget.ai.categories.warning.info" }), _jsx(FormattedMessage, { id: "ui.onBoardingWidget.ai.categories.warning.confirm", defaultMessage: "ui.onBoardingWidget.ai.categories.warning.confirm", values: {
|
|
326
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
|
|
327
|
+
// @ts-ignore
|
|
328
|
+
b: (chunks) => _jsx("b", { children: chunks })
|
|
329
|
+
} })] }) }))] })] })) }) })] }) })));
|
|
245
330
|
};
|
|
246
331
|
export default OnBoardingWidget;
|
|
@@ -16,5 +16,5 @@ export default function OnBoardingWidgetSkeleton() {
|
|
|
16
16
|
const theme = useTheme();
|
|
17
17
|
const isMobile = useMediaQuery(theme.breakpoints.down('md'));
|
|
18
18
|
const steps = Array(isMobile ? 3 : 5).fill(null);
|
|
19
|
-
return (_jsxs(Root,
|
|
19
|
+
return (_jsxs(Root, { className: classes.root, children: [_jsx(Box, { className: classes.menu, children: isMobile ? (_jsx(Box, { sx: { display: 'flex', justifyContent: 'space-evenly' }, children: steps.map((_, index) => (_jsx(Chip, { label: _jsx(Skeleton, { variant: "text", width: 80 }), variant: "outlined" }, index))) })) : (_jsx(List, { children: steps.map((_, index) => (_jsx(ListItem, { children: _jsxs(ListItemButton, { children: [_jsx(ListItemIcon, { children: _jsx(Skeleton, { variant: "rectangular", width: 20, height: 20 }) }), _jsx(ListItemText, { primary: _jsx(Skeleton, { variant: "text", width: 100 }) })] }) }, index))) })) }), _jsxs(Box, { className: classes.content, children: [_jsx(Skeleton, { variant: "text", width: '20%', height: 40 }), _jsx(Skeleton, { variant: "text", width: '80%', height: 20 }), _jsx(Skeleton, { variant: "text", width: '70%', height: 20 }), _jsx(Skeleton, { variant: "text", width: '60%', height: 20 }), _jsx(Skeleton, { variant: "rectangular", width: 100, height: 36, style: { borderRadius: '20px', alignSelf: 'center', marginTop: 24 } })] })] }));
|
|
20
20
|
}
|
|
@@ -39,33 +39,33 @@ export default function App(inProps) {
|
|
|
39
39
|
const handleChange = (event, newValue) => {
|
|
40
40
|
setTab(newValue);
|
|
41
41
|
};
|
|
42
|
-
return (_jsxs(Root,
|
|
42
|
+
return (_jsxs(Root, { className: classNames(classes.root, className), children: [_jsx(Typography, { variant: "h4", className: classes.title, children: _jsx(FormattedMessage, { id: "ui.onBoardingWidget.step.app.title", defaultMessage: "ui.onBoardingWidget.step.app.title" }) }), _jsx(Typography, { className: classes.summary, children: _jsx(FormattedMessage, { id: "ui.onBoardingWidget.step.app.summary", defaultMessage: "ui.onBoardingWidget.step.app.summary" }) }), _jsxs(Tabs, { className: classes.tabs, value: tab, onChange: handleChange, centered: true, variant: "fullWidth", indicatorColor: "primary", children: [_jsx(Tab, { label: _jsx(FormattedMessage, { id: "ui.onBoardingWidget.step.app.tab.android", defaultMessage: "ui.onBoardingWidget.step.app.tab.android" }) }), _jsx(Tab, { label: _jsx(FormattedMessage, { id: "ui.onBoardingWidget.step.app.tab.ios", defaultMessage: "ui.onBoardingWidget.step.app.tab.ios" }) })] }), _jsxs(Box, { className: classes.tabContent, children: [tab === 0 && (_jsxs(_Fragment, { children: [_jsx(Typography, { className: classes.summary, children: _jsx(FormattedMessage, { id: "ui.onBoardingWidget.step.app.android", defaultMessage: "ui.onBoardingWidget.step.app.android" }) }), _jsx(Typography, { className: classes.step, children: _jsx(FormattedMessage, { id: "ui.onBoardingWidget.step.app.android.a", defaultMessage: "ui.onBoardingWidget.step.app.android.a", values: {
|
|
43
43
|
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
|
|
44
44
|
// @ts-ignore
|
|
45
|
-
icon: (...chunks) => _jsx(Icon,
|
|
45
|
+
icon: (...chunks) => _jsx(Icon, { fontSize: "medium", children: chunks }),
|
|
46
46
|
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
|
|
47
47
|
// @ts-ignore
|
|
48
48
|
b: (...chunks) => _jsx("strong", { children: chunks })
|
|
49
|
-
} }) })
|
|
49
|
+
} }) }), _jsx(Typography, { className: classes.step, children: _jsx(FormattedMessage, { id: "ui.onBoardingWidget.step.app.android.b", defaultMessage: "ui.onBoardingWidget.step.app.android.b", values: {
|
|
50
50
|
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
|
|
51
51
|
// @ts-ignore
|
|
52
|
-
icon: (...chunks) => _jsx(Icon,
|
|
52
|
+
icon: (...chunks) => _jsx(Icon, { fontSize: "medium", children: chunks }),
|
|
53
53
|
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
|
|
54
54
|
// @ts-ignore
|
|
55
55
|
b: (...chunks) => _jsx("strong", { children: chunks })
|
|
56
|
-
} }) })
|
|
56
|
+
} }) }), _jsx(CardMedia, { className: classes.image, component: "img", src: AndroidPlaceholder })] })), tab === 1 && (_jsxs(_Fragment, { children: [_jsx(Typography, { className: classes.summary, children: _jsx(FormattedMessage, { id: "ui.onBoardingWidget.step.app.ios", defaultMessage: "ui.onBoardingWidget.step.app.ios" }) }), _jsx(Typography, { className: classes.step, children: _jsx(FormattedMessage, { id: "ui.onBoardingWidget.step.app.ios.a", defaultMessage: "ui.onBoardingWidget.step.app.ios.a", values: {
|
|
57
57
|
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
|
|
58
58
|
// @ts-ignore
|
|
59
|
-
icon: (...chunks) => _jsx(Icon,
|
|
59
|
+
icon: (...chunks) => _jsx(Icon, { fontSize: "medium", children: chunks }),
|
|
60
60
|
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
|
|
61
61
|
// @ts-ignore
|
|
62
62
|
b: (...chunks) => _jsx("strong", { children: chunks })
|
|
63
|
-
} }) })
|
|
63
|
+
} }) }), _jsx(Typography, { className: classes.step, children: _jsx(FormattedMessage, { id: "ui.onBoardingWidget.step.app.ios.b", defaultMessage: "ui.onBoardingWidget.step.app.ios.b", values: {
|
|
64
64
|
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
|
|
65
65
|
// @ts-ignore
|
|
66
|
-
icon: (...chunks) => _jsx(Icon,
|
|
66
|
+
icon: (...chunks) => _jsx(Icon, { fontSize: "medium", children: chunks }),
|
|
67
67
|
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
|
|
68
68
|
// @ts-ignore
|
|
69
69
|
b: (...chunks) => _jsx("strong", { children: chunks })
|
|
70
|
-
} }) })
|
|
70
|
+
} }) }), _jsx(CardMedia, { className: classes.image, component: "img", src: IosPlaceholder })] })), _jsx(Button, { className: classes.button, size: "small", variant: "outlined", color: "secondary", onClick: onCompleteAction, disabled: (step === null || step === void 0 ? void 0 : step.status) === SCOnBoardingStepStatusType.COMPLETED || (step === null || step === void 0 ? void 0 : step.status) === SCOnBoardingStepStatusType.IN_PROGRESS, children: "Ok!" })] })] }));
|
|
71
71
|
}
|