@selfcommunity/react-ui 0.11.0-alpha.64 → 0.11.0-alpha.66
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/AcceptRequestUserEventButton/AcceptRequestUserEventButton.js +2 -2
- package/lib/cjs/components/AccountChangeMailValidation/AccountChangeMailValidation.js +1 -2
- package/lib/cjs/components/AccountDataPortability/AccountDataPortability.js +2 -4
- package/lib/cjs/components/AccountDataPortabilityButton/AccountDataPortabilityButton.js +2 -3
- package/lib/cjs/components/AccountDelete/AccountDelete.js +1 -2
- package/lib/cjs/components/AccountDeleteButton/AccountDeleteButton.js +2 -3
- package/lib/cjs/components/AccountRecover/AccountRecover.js +1 -2
- package/lib/cjs/components/AccountReset/AccountReset.js +1 -2
- package/lib/cjs/components/AccountVerify/AccountVerify.js +1 -2
- package/lib/cjs/components/BroadcastMessages/BroadcastMessages.js +1 -2
- package/lib/cjs/components/BroadcastMessages/Message.js +3 -5
- package/lib/cjs/components/BroadcastMessages/Skeleton.js +2 -3
- package/lib/cjs/components/Categories/Categories.js +1 -2
- package/lib/cjs/components/Categories/Skeleton.js +1 -2
- package/lib/cjs/components/CategoriesPopularWidget/CategoriesPopularWidget.js +2 -3
- package/lib/cjs/components/CategoriesPopularWidget/Skeleton.js +2 -2
- package/lib/cjs/components/CategoriesSuggestionWidget/CategoriesSuggestionWidget.js +2 -3
- package/lib/cjs/components/CategoriesSuggestionWidget/Skeleton.js +2 -4
- package/lib/cjs/components/Category/Category.js +1 -2
- package/lib/cjs/components/Category/Skeleton.js +2 -4
- package/lib/cjs/components/CategoryAutocomplete/CategoryAutocomplete.d.ts +2 -3
- package/lib/cjs/components/CategoryAutocomplete/CategoryAutocomplete.js +3 -8
- package/lib/cjs/components/CategoryFollowButton/CategoryFollowButton.js +2 -2
- package/lib/cjs/components/CategoryFollowersButton/CategoryFollowersButton.d.ts +1 -1
- package/lib/cjs/components/CategoryFollowersButton/CategoryFollowersButton.js +3 -5
- package/lib/cjs/components/CategoryHeader/CategoryHeader.js +1 -2
- package/lib/cjs/components/CategoryHeader/Skeleton.js +3 -6
- package/lib/cjs/components/CategoryTrendingFeedWidget/CategoryTrendingFeedWidget.js +4 -6
- package/lib/cjs/components/CategoryTrendingFeedWidget/Skeleton.js +2 -4
- package/lib/cjs/components/CategoryTrendingUsersWidget/CategoryTrendingUsersWidget.js +3 -5
- package/lib/cjs/components/CategoryTrendingUsersWidget/Skeleton.js +2 -4
- package/lib/cjs/components/ChangeCover/ChangeCover.js +3 -6
- package/lib/cjs/components/ChangeGroupCover/ChangeGroupCover.js +2 -4
- package/lib/cjs/components/ChangeGroupPicture/ChangeGroupPicture.js +2 -4
- package/lib/cjs/components/ChangePicture/ChangePicture.js +2 -4
- package/lib/cjs/components/ChangePicture/ChangePictureDialog/ChangePictureDialog.js +3 -8
- package/lib/cjs/components/CommentObject/CommentObject.js +1 -2
- package/lib/cjs/components/CommentObject/Skeleton.js +2 -4
- package/lib/cjs/components/CommentObjectReply/CommentObjectReply.js +1 -2
- package/lib/cjs/components/CommentsFeedObject/CommentsFeedObject.js +3 -5
- package/lib/cjs/components/CommentsFeedObject/Skeleton.js +2 -2
- package/lib/cjs/components/CommentsObject/CommentsObject.js +2 -4
- package/lib/cjs/components/CommentsObject/Skeleton.js +1 -2
- package/lib/cjs/components/Composer/Attributes/Attributes.js +3 -5
- package/lib/cjs/components/Composer/Composer.js +5 -7
- package/lib/cjs/components/Composer/Content/ContentDiscussion/ContentDiscussion.js +1 -2
- package/lib/cjs/components/Composer/Content/ContentLesson/ContentLesson.js +1 -2
- package/lib/cjs/components/Composer/Content/ContentPoll/ContentPoll.js +6 -9
- package/lib/cjs/components/Composer/Content/ContentPost/ContentPost.js +1 -2
- package/lib/cjs/components/Composer/Layer/AudienceLayer/AudienceLayer.d.ts +2 -3
- package/lib/cjs/components/Composer/Layer/AudienceLayer/AudienceLayer.js +5 -9
- package/lib/cjs/components/Composer/Layer/CategoryLayer/CategoryLayer.js +2 -5
- package/lib/cjs/components/Composer/Layer/CloseLayer/CloseLayer.js +2 -5
- package/lib/cjs/components/Composer/Layer/LocationLayer/LocationLayer.d.ts +1 -1
- package/lib/cjs/components/Composer/Layer/LocationLayer/LocationLayer.js +2 -5
- package/lib/cjs/components/Composer/Skeleton.js +2 -5
- package/lib/cjs/components/Composer/TypeSwitchButtonGroup/TypeSwitchButtonGroup.js +1 -2
- package/lib/cjs/components/ConnectionUserButton/ConnectionUserButton.js +1 -2
- package/lib/cjs/components/ConsentSolution/ConsentSolution.js +6 -13
- package/lib/cjs/components/ConsentSolution/Skeleton.js +3 -6
- package/lib/cjs/components/ConsentSolutionButton/ConsentSolutionButton.d.ts +1 -1
- package/lib/cjs/components/ConsentSolutionButton/ConsentSolutionButton.js +1 -3
- package/lib/cjs/components/Course/Course.js +3 -4
- package/lib/cjs/components/Course/CreatePlaceholder.js +1 -2
- package/lib/cjs/components/Course/Skeleton.js +5 -7
- package/lib/cjs/components/CourseContentMenu/CourseContentMenu.js +1 -2
- package/lib/cjs/components/CourseForm/CourseForm.js +1 -2
- package/lib/cjs/components/CourseForm/Edit.js +1 -2
- package/lib/cjs/components/CourseForm/UploadCourseCover.js +2 -4
- package/lib/cjs/components/CourseFormDialog/CourseFormDialog.js +2 -2
- package/lib/cjs/components/CourseJoinButton/CourseJoinButton.js +2 -2
- package/lib/cjs/components/CourseParticipantsButton/CourseParticipantsButton.d.ts +1 -1
- package/lib/cjs/components/CourseParticipantsButton/CourseParticipantsButton.js +2 -3
- package/lib/cjs/components/Courses/Skeleton.js +1 -2
- package/lib/cjs/components/CreateCourseButton/CreateCourseButton.js +1 -2
- package/lib/cjs/components/CreateEventButton/CreateEventButton.js +1 -2
- package/lib/cjs/components/CreateEventWidget/Skeleton.js +2 -4
- package/lib/cjs/components/CreateGroupButton/CreateGroupButton.d.ts +1 -1
- package/lib/cjs/components/CreateGroupButton/CreateGroupButton.js +1 -2
- package/lib/cjs/components/CreateLiveStreamButton/CreateLiveStreamButton.d.ts +1 -1
- package/lib/cjs/components/CreateLiveStreamButton/CreateLiveStreamButton.js +1 -2
- package/lib/cjs/components/CreateLiveStreamDialog/CreateLiveStreamDialog.js +2 -4
- package/lib/cjs/components/CreateLiveStreamDialog/LiveStreamSelector/LiveStreamSelector.js +3 -4
- package/lib/cjs/components/CustomAdv/CustomAdv.js +1 -2
- package/lib/cjs/components/CustomAdv/Skeleton.js +2 -2
- package/lib/cjs/components/EditCourse/MenuRow.js +1 -3
- package/lib/cjs/components/EditEventButton/EditEventButton.js +2 -2
- package/lib/cjs/components/EditGroupButton/EditGroupButton.js +2 -2
- package/lib/cjs/components/Editor/Editor.js +1 -2
- package/lib/cjs/components/Editor/Skeleton.js +2 -2
- package/lib/cjs/components/Editor/plugins/EmojiPlugin.js +1 -2
- package/lib/cjs/components/Editor/plugins/FloatingLinkPlugin.js +2 -5
- package/lib/cjs/components/Editor/plugins/HashtagPlugin.js +2 -2
- package/lib/cjs/components/Editor/plugins/ImagePlugin.js +1 -2
- package/lib/cjs/components/Editor/plugins/MediaPlugin.js +1 -2
- package/lib/cjs/components/Editor/plugins/MentionsPlugin.js +2 -4
- package/lib/cjs/components/Editor/plugins/ToolbarPlugin.js +1 -2
- package/lib/cjs/components/Event/Event.js +4 -5
- package/lib/cjs/components/Event/Skeleton.js +7 -9
- package/lib/cjs/components/EventAutocomplete/EventAutocomplete.d.ts +2 -3
- package/lib/cjs/components/EventAutocomplete/EventAutocomplete.js +2 -6
- package/lib/cjs/components/EventForm/EventAddress.js +3 -5
- package/lib/cjs/components/EventForm/EventForm.js +1 -2
- package/lib/cjs/components/EventForm/UploadEventCover.js +2 -4
- package/lib/cjs/components/EventFormDialog/EventFormDialog.js +2 -2
- package/lib/cjs/components/EventHeader/EventHeader.js +1 -2
- package/lib/cjs/components/EventHeader/Skeleton.js +2 -5
- package/lib/cjs/components/EventInviteButton/EventInviteButton.d.ts +1 -1
- package/lib/cjs/components/EventInviteButton/EventInviteButton.js +3 -5
- package/lib/cjs/components/EventLocationWidget/EventLocationWidget.js +1 -2
- package/lib/cjs/components/EventLocationWidget/Skeleton.js +1 -2
- package/lib/cjs/components/EventMediaWidget/EventMediaWidget.js +2 -3
- package/lib/cjs/components/EventMediaWidget/Skeleton.js +3 -5
- package/lib/cjs/components/EventMediaWidget/TriggerButton.js +2 -4
- package/lib/cjs/components/EventParticipantsButton/EventParticipantsButton.d.ts +1 -1
- package/lib/cjs/components/EventParticipantsButton/EventParticipantsButton.js +2 -3
- package/lib/cjs/components/EventSubscribeButton/EventSubscribeButton.js +4 -5
- package/lib/cjs/components/Events/LocationEventsFilter.js +1 -2
- package/lib/cjs/components/Events/Skeleton.js +1 -2
- package/lib/cjs/components/Feed/Feed.js +2 -3
- package/lib/cjs/components/Feed/Skeleton.js +1 -2
- package/lib/cjs/components/FeedObject/Actions/Actions.js +3 -3
- package/lib/cjs/components/FeedObject/Actions/Comment/Comment.js +3 -6
- package/lib/cjs/components/FeedObject/Actions/Follow/Follow.js +2 -4
- package/lib/cjs/components/FeedObject/Actions/Share/Share.js +4 -9
- package/lib/cjs/components/FeedObject/Actions/Share/SharesDialog/SharesDialog.js +1 -2
- package/lib/cjs/components/FeedObject/Actions/Vote/Vote.js +1 -2
- package/lib/cjs/components/FeedObject/Activities/Activities.js +1 -2
- package/lib/cjs/components/FeedObject/Activities/ActivitiesMenu/ActivitiesMenu.js +4 -9
- package/lib/cjs/components/FeedObject/Activities/RelevantActivities/CommentActivity/CommentActivity.js +1 -2
- package/lib/cjs/components/FeedObject/Activities/RelevantActivities/FollowActivity/FollowActivity.js +1 -2
- package/lib/cjs/components/FeedObject/Activities/RelevantActivities/PollVoteActivity/PollVoteActivity.js +1 -2
- package/lib/cjs/components/FeedObject/Activities/RelevantActivities/RelevantActivities.js +2 -4
- package/lib/cjs/components/FeedObject/Activities/RelevantActivities/VoteUpActivity/VoteUpActivity.js +1 -2
- package/lib/cjs/components/FeedObject/Contributors/Contributors.js +1 -2
- package/lib/cjs/components/FeedObject/Contributors/Skeleton.js +1 -2
- package/lib/cjs/components/FeedObject/FeedObject.js +5 -8
- package/lib/cjs/components/FeedObject/Poll/Choice/Choice.js +3 -6
- package/lib/cjs/components/FeedObject/Poll/Poll.js +2 -6
- package/lib/cjs/components/FeedObject/Skeleton.js +3 -5
- package/lib/cjs/components/FeedObjectMediaPreview/FeedObjectMediaPreview.js +2 -3
- package/lib/cjs/components/FeedUpdatesWidget/FeedUpdatesWidget.js +1 -2
- package/lib/cjs/components/FeedUpdatesWidget/Skeleton.js +2 -2
- package/lib/cjs/components/FollowUserButton/FollowUserButton.js +2 -2
- package/lib/cjs/components/Footer/Footer.js +1 -2
- package/lib/cjs/components/Footer/Skeleton.js +2 -5
- package/lib/cjs/components/FriendshipUserButton/FriendshipUserButton.js +2 -2
- package/lib/cjs/components/Group/Group.js +1 -2
- package/lib/cjs/components/Group/Skeleton.js +2 -4
- package/lib/cjs/components/GroupActionsMenu/index.js +7 -9
- package/lib/cjs/components/GroupAutocomplete/GroupAutocomplete.d.ts +2 -3
- package/lib/cjs/components/GroupAutocomplete/GroupAutocomplete.js +2 -6
- package/lib/cjs/components/GroupForm/GroupForm.js +1 -2
- package/lib/cjs/components/GroupHeader/GroupHeader.js +1 -2
- package/lib/cjs/components/GroupHeader/Skeleton.js +2 -5
- package/lib/cjs/components/GroupInfoWidget/GroupInfoWidget.js +1 -2
- package/lib/cjs/components/GroupInfoWidget/Skeleton.js +2 -2
- package/lib/cjs/components/GroupInviteButton/GroupInviteButton.d.ts +1 -1
- package/lib/cjs/components/GroupInviteButton/GroupInviteButton.js +3 -5
- package/lib/cjs/components/GroupInvitedWidget/GroupInvitedWidget.js +3 -5
- package/lib/cjs/components/GroupInvitedWidget/Skeleton.js +2 -2
- package/lib/cjs/components/GroupMembersButton/GroupMembersButton.d.ts +1 -1
- package/lib/cjs/components/GroupMembersButton/GroupMembersButton.js +3 -5
- package/lib/cjs/components/GroupMembersWidget/GroupMembersWidget.js +4 -6
- package/lib/cjs/components/GroupMembersWidget/Skeleton.js +2 -2
- package/lib/cjs/components/GroupRequestsWidget/GroupRequestsWidget.js +3 -5
- package/lib/cjs/components/GroupRequestsWidget/Skeleton.js +2 -2
- package/lib/cjs/components/GroupSettingsIconButton/GroupSettingsIconButton.js +4 -6
- package/lib/cjs/components/GroupSubscribeButton/GroupSubscribeButton.js +2 -2
- package/lib/cjs/components/Groups/Groups.js +1 -2
- package/lib/cjs/components/Groups/Skeleton.js +2 -2
- package/lib/cjs/components/Incubator/Incubator.js +3 -6
- package/lib/cjs/components/Incubator/Skeleton.js +2 -4
- package/lib/cjs/components/IncubatorDetail/IncubatorDetail.js +2 -4
- package/lib/cjs/components/IncubatorListWidget/CreateIncubatorDialog/CreateIncubatorDialog.js +1 -2
- package/lib/cjs/components/IncubatorListWidget/IncubatorListWidget.js +3 -7
- package/lib/cjs/components/IncubatorListWidget/Skeleton.js +3 -5
- package/lib/cjs/components/IncubatorSubscribeButton/IncubatorSubscribeButton.js +2 -2
- package/lib/cjs/components/IncubatorSuggestionWidget/IncubatorSuggestionWidget.js +3 -5
- package/lib/cjs/components/IncubatorSuggestionWidget/Skeleton.js +3 -5
- package/lib/cjs/components/InlineComposerWidget/InlineComposerWidget.js +1 -2
- package/lib/cjs/components/InlineComposerWidget/Skeleton.js +2 -4
- package/lib/cjs/components/InviteUserEventButton/InviteUserEventButton.js +2 -2
- package/lib/cjs/components/LessonAppbar/LessonAppbar.js +1 -2
- package/lib/cjs/components/LessonCommentObject/LessonCommentObject.js +1 -2
- package/lib/cjs/components/LessonCommentObject/Skeleton.js +2 -4
- package/lib/cjs/components/LessonCommentObjects/LessonCommentObjects.js +1 -2
- package/lib/cjs/components/LessonCommentObjects/Skeleton.js +1 -2
- package/lib/cjs/components/LessonDrawer/LessonDrawer.js +1 -2
- package/lib/cjs/components/LessonEditForm/LessonEditForm.js +1 -2
- package/lib/cjs/components/LessonObject/LessonObject.js +2 -4
- package/lib/cjs/components/LessonReleaseMenu/LessonReleaseMenu.js +9 -9
- package/lib/cjs/components/LiveStream/LiveStream.js +4 -5
- package/lib/cjs/components/LiveStream/Skeleton.js +7 -9
- package/lib/cjs/components/LiveStreamForm/LiveStreamForm.js +1 -2
- package/lib/cjs/components/LiveStreamForm/LiveStreamFormSettings.js +1 -2
- package/lib/cjs/components/LiveStreamRoom/LiveStreamRoom.js +3 -5
- package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/LiveStreamSettingsMenu.js +2 -5
- package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/LiveStreamVideoConference.js +3 -5
- package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/NoParticipants.js +1 -2
- package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/ParticipantTileActions.js +10 -12
- package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/ParticipantTileAvatar.js +1 -2
- package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/VideoConference.js +2 -4
- package/lib/cjs/components/LocationAutocomplete/LocationAutocomplete.d.ts +2 -3
- package/lib/cjs/components/LocationAutocomplete/LocationAutocomplete.js +2 -5
- package/lib/cjs/components/LoyaltyProgramWidget/LoyaltyProgramWidget.js +2 -4
- package/lib/cjs/components/LoyaltyProgramWidget/Skeleton.js +1 -2
- package/lib/cjs/components/MyEventsWidget/MyEventsWidget.js +1 -2
- package/lib/cjs/components/NavigationMenuIconButton/DefaultDrawerContent.js +1 -2
- package/lib/cjs/components/NavigationMenuIconButton/DefaultDrawerSkeleton.js +1 -2
- package/lib/cjs/components/NavigationMenuIconButton/DefaultHeaderContent.js +1 -2
- package/lib/cjs/components/NavigationMenuIconButton/NavigationMenuDrawer.js +1 -2
- package/lib/cjs/components/NavigationMenuIconButton/NavigationMenuIconButton.js +1 -2
- package/lib/cjs/components/NavigationSettingsIconButton/NavigationSettingsIconButton.js +3 -4
- package/lib/cjs/components/NavigationToolbar/NavigationToolbar.js +7 -8
- package/lib/cjs/components/NavigationToolbar/Skeleton.js +2 -5
- package/lib/cjs/components/NavigationToolbarMobile/NavigationToolbarMobile.js +2 -3
- package/lib/cjs/components/NavigationToolbarMobile/Skeleton.js +2 -5
- package/lib/cjs/components/Notification/CollapsedFor/CollapsedFor.js +2 -4
- package/lib/cjs/components/Notification/Comment/Comment.js +1 -2
- package/lib/cjs/components/Notification/Contribution/Contribution.js +1 -2
- package/lib/cjs/components/Notification/ContributionFollow/ContributionFollow.js +1 -2
- package/lib/cjs/components/Notification/Course/Course.js +1 -2
- package/lib/cjs/components/Notification/DeletedFor/DeletedFor.js +2 -4
- package/lib/cjs/components/Notification/Event/Event.js +1 -2
- package/lib/cjs/components/Notification/Group/Group.js +1 -2
- package/lib/cjs/components/Notification/IncubatorApproved/IncubatorApproved.js +1 -2
- package/lib/cjs/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.js +2 -4
- package/lib/cjs/components/Notification/KindlyNoticeFor/KindlyNoticeFor.js +2 -4
- package/lib/cjs/components/Notification/LiveStream/LiveStream.js +1 -2
- package/lib/cjs/components/Notification/Mention/Mention.js +1 -2
- package/lib/cjs/components/Notification/Notification.js +3 -6
- package/lib/cjs/components/Notification/PrivateMessage/PrivateMessage.js +1 -2
- package/lib/cjs/components/Notification/Skeleton.js +3 -6
- package/lib/cjs/components/Notification/UndeletedFor/UndeletedFor.js +2 -4
- package/lib/cjs/components/Notification/UserBlocked/UserBlocked.js +2 -4
- package/lib/cjs/components/Notification/UserConnection/UserConnection.js +1 -2
- package/lib/cjs/components/Notification/UserFollow/UserFollow.js +1 -2
- package/lib/cjs/components/Notification/VoteUp/VoteUp.js +1 -2
- package/lib/cjs/components/OnBoardingWidget/ActionsButton.js +3 -4
- package/lib/cjs/components/OnBoardingWidget/OnBoardingWidget.js +3 -4
- package/lib/cjs/components/OnBoardingWidget/Skeleton.js +2 -5
- package/lib/cjs/components/OnBoardingWidget/Steps/App/App.js +2 -4
- package/lib/cjs/components/OnBoardingWidget/Steps/Appearance/Appearance.js +5 -8
- package/lib/cjs/components/OnBoardingWidget/Steps/Category/Category.js +3 -5
- package/lib/cjs/components/OnBoardingWidget/Steps/Content/Content.js +2 -4
- package/lib/cjs/components/OnBoardingWidget/Steps/Invite/Invite.js +2 -4
- package/lib/cjs/components/OnBoardingWidget/Steps/Profile/Profile.js +3 -6
- package/lib/cjs/components/PlatformWidget/PlatformWidget.js +2 -4
- package/lib/cjs/components/PlatformWidget/Skeleton.js +2 -4
- package/lib/cjs/components/PollSuggestionWidget/PollSnippet/PollSnippet.js +1 -2
- package/lib/cjs/components/PollSuggestionWidget/PollSnippet/Skeleton.js +2 -4
- package/lib/cjs/components/PollSuggestionWidget/PollSuggestionWidget.js +3 -5
- package/lib/cjs/components/PollSuggestionWidget/Skeleton.js +2 -4
- package/lib/cjs/components/PrivateMessageComponent/PrivateMessageComponent.js +1 -2
- package/lib/cjs/components/PrivateMessageComponent/Skeleton.js +1 -2
- package/lib/cjs/components/PrivateMessageEditor/MessageMediaUploader/index.js +4 -6
- package/lib/cjs/components/PrivateMessageEditor/PrivateMessageEditor.js +5 -7
- package/lib/cjs/components/PrivateMessageEditor/Skeleton.js +2 -2
- package/lib/cjs/components/PrivateMessageSettingsIconButton/PrivateMessageSettingsIconButton.js +10 -12
- package/lib/cjs/components/PrivateMessageSnippetItem/PrivateMessageSnippetItem.js +1 -2
- package/lib/cjs/components/PrivateMessageSnippetItem/Skeleton.js +2 -8
- package/lib/cjs/components/PrivateMessageSnippets/PrivateMessageSnippets.js +2 -4
- package/lib/cjs/components/PrivateMessageSnippets/Skeleton.js +2 -4
- package/lib/cjs/components/PrivateMessageThread/PrivateMessageThread.js +2 -5
- package/lib/cjs/components/PrivateMessageThread/Skeleton.js +2 -4
- package/lib/cjs/components/PrivateMessageThreadItem/PrivateMessageThreadItem.js +7 -10
- package/lib/cjs/components/PrivateMessageThreadItem/Skeleton.js +2 -7
- package/lib/cjs/components/RelatedFeedObjectsWidget/RelatedFeedObjectsWidget.js +3 -5
- package/lib/cjs/components/RelatedFeedObjectsWidget/Skeleton.js +2 -2
- package/lib/cjs/components/SearchAutocomplete/SearchAutocomplete.js +1 -2
- package/lib/cjs/components/Skeleton/AvatarGroupSkeleton.js +1 -2
- package/lib/cjs/components/Skeleton/GenericSkeleton.js +2 -4
- package/lib/cjs/components/SnippetNotifications/Skeleton.js +2 -4
- package/lib/cjs/components/SnippetNotifications/SnippetNotifications.js +1 -2
- package/lib/cjs/components/TagAutocomplete/TagAutocomplete.d.ts +2 -3
- package/lib/cjs/components/TagAutocomplete/TagAutocomplete.js +3 -5
- package/lib/cjs/components/ToastNotifications/Skeleton.js +2 -2
- package/lib/cjs/components/ToastNotifications/ToastNotifications.js +1 -2
- package/lib/cjs/components/User/Skeleton.js +2 -4
- package/lib/cjs/components/User/User.js +1 -2
- package/lib/cjs/components/UserActionIconButton/UserActionIconButton.js +3 -4
- package/lib/cjs/components/UserConnectionsRequestsSentWidget/Skeleton.js +2 -2
- package/lib/cjs/components/UserConnectionsRequestsSentWidget/UserConnectionsRequestsSentWidget.js +3 -5
- package/lib/cjs/components/UserConnectionsRequestsWidget/Skeleton.js +2 -2
- package/lib/cjs/components/UserConnectionsRequestsWidget/UserConnectionsRequestsWidget.js +3 -5
- package/lib/cjs/components/UserConnectionsWidget/Skeleton.js +2 -2
- package/lib/cjs/components/UserConnectionsWidget/UserConnectionsWidget.js +3 -5
- package/lib/cjs/components/UserCounters/UserCounters.js +1 -2
- package/lib/cjs/components/UserCreatedCoursesWidget/Skeleton.js +2 -4
- package/lib/cjs/components/UserCreatedCoursesWidget/UserCreatedCoursesWidget.js +3 -5
- package/lib/cjs/components/UserFollowedCategoriesWidget/Skeleton.js +2 -2
- package/lib/cjs/components/UserFollowedCategoriesWidget/UserFollowedCategoriesWidget.js +3 -5
- package/lib/cjs/components/UserFollowedUsersWidget/Skeleton.js +2 -2
- package/lib/cjs/components/UserFollowedUsersWidget/UserFollowedUsersWidget.js +3 -5
- package/lib/cjs/components/UserFollowersWidget/Skeleton.js +2 -2
- package/lib/cjs/components/UserFollowersWidget/UserFollowersWidget.js +3 -5
- package/lib/cjs/components/UserInfo/Skeleton.js +2 -5
- package/lib/cjs/components/UserInfo/UserInfo.js +1 -2
- package/lib/cjs/components/UserProfileBlocked/UserProfileBlocked.js +1 -2
- package/lib/cjs/components/UserProfileEdit/Section/Account.js +1 -2
- package/lib/cjs/components/UserProfileEdit/Section/AccountCredentials.js +4 -6
- package/lib/cjs/components/UserProfileEdit/Section/PublicInfo.js +2 -4
- package/lib/cjs/components/UserProfileEdit/Section/Settings.js +1 -2
- package/lib/cjs/components/UserProfileEdit/Section/SettingsSkeleton.js +2 -5
- package/lib/cjs/components/UserProfileEdit/Skeleton.js +2 -5
- package/lib/cjs/components/UserProfileEdit/UserProfileEdit.js +1 -2
- package/lib/cjs/components/UserProfileHeader/Skeleton.js +2 -5
- package/lib/cjs/components/UserProfileHeader/UserProfileHeader.js +1 -2
- package/lib/cjs/components/UserSocialAssociation/UserSocialAssociation.js +1 -2
- package/lib/cjs/components/UserSubscribedGroupsWidget/Skeleton.js +2 -4
- package/lib/cjs/components/UserSubscribedGroupsWidget/UserSubscribedGroupsWidget.js +3 -5
- package/lib/cjs/components/UserSuggestionWidget/Skeleton.js +1 -2
- package/lib/cjs/components/UserSuggestionWidget/UserSuggestionWidget.js +2 -3
- package/lib/cjs/components/VoteAudienceButton/VoteAudienceButton.js +6 -8
- package/lib/cjs/components/VoteButton/VoteButton.js +4 -6
- package/lib/cjs/components/Widget/index.js +1 -2
- package/lib/cjs/shared/AutoPlayer/index.js +2 -2
- package/lib/cjs/shared/BaseDialog/BaseDialog.d.ts +1 -1
- package/lib/cjs/shared/BaseDialog/BaseDialog.js +6 -14
- package/lib/cjs/shared/BaseItem/BaseItem.js +1 -2
- package/lib/cjs/shared/BaseItemButton/BaseItemButton.js +1 -2
- package/lib/cjs/shared/Bullet/index.js +2 -2
- package/lib/cjs/shared/CentralProgress/index.d.ts +1 -1
- package/lib/cjs/shared/CentralProgress/index.js +2 -5
- package/lib/cjs/shared/ConfirmDialog/ConfirmDialog.js +2 -5
- package/lib/cjs/shared/ConsentSolutionSwitch/index.js +3 -5
- package/lib/cjs/shared/ContributionActionsMenu/index.js +8 -11
- package/lib/cjs/shared/CopyTextArea/index.d.ts +1 -1
- package/lib/cjs/shared/CopyTextArea/index.js +1 -2
- package/lib/cjs/shared/CustomSnackMessage/index.js +2 -4
- package/lib/cjs/shared/DateTimeAgo/index.js +2 -4
- package/lib/cjs/shared/EmailTextField/index.js +1 -2
- package/lib/cjs/shared/EmojiPicker/EmojiPicker.js +1 -2
- package/lib/cjs/shared/EventActionsMenu/index.js +8 -10
- package/lib/cjs/shared/HiddenPlaceholder/index.js +2 -2
- package/lib/cjs/shared/LanguageSwitcher/index.d.ts +1 -2
- package/lib/cjs/shared/LanguageSwitcher/index.js +1 -2
- package/lib/cjs/shared/LessonCommentActionsMenu/index.js +4 -7
- package/lib/cjs/shared/LessonFilePreview/index.js +2 -4
- package/lib/cjs/shared/Lightbox/BaseLightbox.js +1 -2
- package/lib/cjs/shared/Lightbox/Lightbox.js +2 -2
- package/lib/cjs/shared/Media/File/DisplayComponent.js +5 -7
- package/lib/cjs/shared/Media/File/PreviewComponent.js +2 -4
- package/lib/cjs/shared/Media/File/TriggerButton.js +10 -12
- package/lib/cjs/shared/Media/Link/DisplayComponent.d.ts +1 -1
- package/lib/cjs/shared/Media/Link/DisplayComponent.js +3 -5
- package/lib/cjs/shared/Media/Link/LayerComponent.js +2 -5
- package/lib/cjs/shared/Media/Link/PreviewComponent.d.ts +1 -1
- package/lib/cjs/shared/Media/Link/PreviewComponent.js +2 -4
- package/lib/cjs/shared/Media/Link/TriggerButton.js +2 -4
- package/lib/cjs/shared/Media/Link/UrlTextField/index.d.ts +1 -4
- package/lib/cjs/shared/Media/Link/UrlTextField/index.js +3 -6
- package/lib/cjs/shared/Media/Share/DisplayComponent.js +3 -4
- package/lib/cjs/shared/NewChip/NewChip.js +1 -2
- package/lib/cjs/shared/NotificationItem/NotificationItem.js +1 -2
- package/lib/cjs/shared/PasswordTextField/index.js +2 -5
- package/lib/cjs/shared/PhoneTextField/index.js +1 -2
- package/lib/cjs/shared/ProgressBar/index.d.ts +1 -1
- package/lib/cjs/shared/ProgressBar/index.js +2 -4
- package/lib/cjs/shared/ScrollContainer/index.js +2 -2
- package/lib/cjs/shared/TagChip/index.d.ts +1 -3
- package/lib/cjs/shared/TagChip/index.js +2 -3
- package/lib/cjs/shared/Tags/index.js +7 -13
- package/lib/cjs/shared/UpScalingTierBadge/index.js +2 -3
- package/lib/cjs/shared/UrlTextField/index.js +1 -2
- package/lib/cjs/shared/UserAvatar/UserAvatar.js +1 -2
- package/lib/cjs/shared/UserDeletedSnackBar/UserDeletedSnackBar.js +1 -2
- package/lib/cjs/shared/UsernameTextField/index.js +1 -2
- package/lib/esm/components/AcceptRequestUserEventButton/AcceptRequestUserEventButton.js +1 -1
- package/lib/esm/components/AccountChangeMailValidation/AccountChangeMailValidation.js +1 -2
- package/lib/esm/components/AccountDataPortability/AccountDataPortability.js +1 -3
- package/lib/esm/components/AccountDataPortabilityButton/AccountDataPortabilityButton.js +1 -2
- package/lib/esm/components/AccountDelete/AccountDelete.js +1 -2
- package/lib/esm/components/AccountDeleteButton/AccountDeleteButton.js +1 -2
- package/lib/esm/components/AccountRecover/AccountRecover.js +1 -2
- package/lib/esm/components/AccountReset/AccountReset.js +1 -2
- package/lib/esm/components/AccountVerify/AccountVerify.js +1 -2
- package/lib/esm/components/BroadcastMessages/BroadcastMessages.js +1 -2
- package/lib/esm/components/BroadcastMessages/Message.js +1 -3
- package/lib/esm/components/BroadcastMessages/Skeleton.js +1 -2
- package/lib/esm/components/Categories/Categories.js +1 -2
- package/lib/esm/components/Categories/Skeleton.js +1 -2
- package/lib/esm/components/CategoriesPopularWidget/CategoriesPopularWidget.js +1 -2
- package/lib/esm/components/CategoriesPopularWidget/Skeleton.js +1 -1
- package/lib/esm/components/CategoriesSuggestionWidget/CategoriesSuggestionWidget.js +1 -2
- package/lib/esm/components/CategoriesSuggestionWidget/Skeleton.js +1 -3
- package/lib/esm/components/Category/Category.js +1 -2
- package/lib/esm/components/Category/Skeleton.js +1 -3
- package/lib/esm/components/CategoryAutocomplete/CategoryAutocomplete.d.ts +2 -3
- package/lib/esm/components/CategoryAutocomplete/CategoryAutocomplete.js +1 -6
- package/lib/esm/components/CategoryFollowButton/CategoryFollowButton.js +1 -1
- package/lib/esm/components/CategoryFollowersButton/CategoryFollowersButton.d.ts +1 -1
- package/lib/esm/components/CategoryFollowersButton/CategoryFollowersButton.js +1 -3
- package/lib/esm/components/CategoryHeader/CategoryHeader.js +1 -2
- package/lib/esm/components/CategoryHeader/Skeleton.js +2 -4
- package/lib/esm/components/CategoryTrendingFeedWidget/CategoryTrendingFeedWidget.js +1 -3
- package/lib/esm/components/CategoryTrendingFeedWidget/Skeleton.js +1 -3
- package/lib/esm/components/CategoryTrendingUsersWidget/CategoryTrendingUsersWidget.js +1 -3
- package/lib/esm/components/CategoryTrendingUsersWidget/Skeleton.js +1 -3
- package/lib/esm/components/ChangeCover/ChangeCover.js +1 -4
- package/lib/esm/components/ChangeGroupCover/ChangeGroupCover.js +1 -3
- package/lib/esm/components/ChangeGroupPicture/ChangeGroupPicture.js +1 -3
- package/lib/esm/components/ChangePicture/ChangePicture.js +1 -3
- package/lib/esm/components/ChangePicture/ChangePictureDialog/ChangePictureDialog.js +1 -6
- package/lib/esm/components/CommentObject/CommentObject.js +1 -2
- package/lib/esm/components/CommentObject/Skeleton.js +1 -3
- package/lib/esm/components/CommentObjectReply/CommentObjectReply.js +1 -2
- package/lib/esm/components/CommentsFeedObject/CommentsFeedObject.js +1 -3
- package/lib/esm/components/CommentsFeedObject/Skeleton.js +1 -1
- package/lib/esm/components/CommentsObject/CommentsObject.js +1 -3
- package/lib/esm/components/CommentsObject/Skeleton.js +1 -2
- package/lib/esm/components/Composer/Attributes/Attributes.js +1 -3
- package/lib/esm/components/Composer/Composer.js +1 -3
- package/lib/esm/components/Composer/Content/ContentDiscussion/ContentDiscussion.js +1 -2
- package/lib/esm/components/Composer/Content/ContentLesson/ContentLesson.js +1 -2
- package/lib/esm/components/Composer/Content/ContentPoll/ContentPoll.js +4 -7
- package/lib/esm/components/Composer/Content/ContentPost/ContentPost.js +1 -2
- package/lib/esm/components/Composer/Layer/AudienceLayer/AudienceLayer.d.ts +2 -3
- package/lib/esm/components/Composer/Layer/AudienceLayer/AudienceLayer.js +1 -5
- package/lib/esm/components/Composer/Layer/CategoryLayer/CategoryLayer.js +1 -4
- package/lib/esm/components/Composer/Layer/CloseLayer/CloseLayer.js +2 -5
- package/lib/esm/components/Composer/Layer/LocationLayer/LocationLayer.d.ts +1 -1
- package/lib/esm/components/Composer/Layer/LocationLayer/LocationLayer.js +2 -5
- package/lib/esm/components/Composer/Skeleton.js +1 -3
- package/lib/esm/components/Composer/TypeSwitchButtonGroup/TypeSwitchButtonGroup.js +1 -2
- package/lib/esm/components/ConnectionUserButton/ConnectionUserButton.js +1 -2
- package/lib/esm/components/ConsentSolution/ConsentSolution.js +1 -8
- package/lib/esm/components/ConsentSolution/Skeleton.js +1 -3
- package/lib/esm/components/ConsentSolutionButton/ConsentSolutionButton.d.ts +1 -1
- package/lib/esm/components/ConsentSolutionButton/ConsentSolutionButton.js +1 -3
- package/lib/esm/components/Course/Course.js +1 -2
- package/lib/esm/components/Course/CreatePlaceholder.js +1 -2
- package/lib/esm/components/Course/Skeleton.js +1 -3
- package/lib/esm/components/CourseContentMenu/CourseContentMenu.js +1 -2
- package/lib/esm/components/CourseForm/CourseForm.js +1 -2
- package/lib/esm/components/CourseForm/Edit.js +1 -2
- package/lib/esm/components/CourseForm/UploadCourseCover.js +1 -3
- package/lib/esm/components/CourseFormDialog/CourseFormDialog.js +1 -1
- package/lib/esm/components/CourseJoinButton/CourseJoinButton.js +1 -1
- package/lib/esm/components/CourseParticipantsButton/CourseParticipantsButton.d.ts +1 -1
- package/lib/esm/components/CourseParticipantsButton/CourseParticipantsButton.js +1 -2
- package/lib/esm/components/Courses/Skeleton.js +1 -2
- package/lib/esm/components/CreateCourseButton/CreateCourseButton.js +1 -2
- package/lib/esm/components/CreateEventButton/CreateEventButton.js +1 -2
- package/lib/esm/components/CreateEventWidget/Skeleton.js +1 -3
- package/lib/esm/components/CreateGroupButton/CreateGroupButton.d.ts +1 -1
- package/lib/esm/components/CreateGroupButton/CreateGroupButton.js +1 -2
- package/lib/esm/components/CreateLiveStreamButton/CreateLiveStreamButton.d.ts +1 -1
- package/lib/esm/components/CreateLiveStreamButton/CreateLiveStreamButton.js +1 -2
- package/lib/esm/components/CreateLiveStreamDialog/CreateLiveStreamDialog.js +1 -3
- package/lib/esm/components/CreateLiveStreamDialog/LiveStreamSelector/LiveStreamSelector.js +1 -2
- package/lib/esm/components/CustomAdv/CustomAdv.js +1 -2
- package/lib/esm/components/CustomAdv/Skeleton.js +1 -1
- package/lib/esm/components/EditCourse/MenuRow.js +1 -2
- package/lib/esm/components/EditEventButton/EditEventButton.js +1 -1
- package/lib/esm/components/EditGroupButton/EditGroupButton.js +1 -1
- package/lib/esm/components/Editor/Editor.js +1 -2
- package/lib/esm/components/Editor/Skeleton.js +1 -1
- package/lib/esm/components/Editor/plugins/EmojiPlugin.js +1 -2
- package/lib/esm/components/Editor/plugins/FloatingLinkPlugin.js +1 -3
- package/lib/esm/components/Editor/plugins/HashtagPlugin.js +1 -1
- package/lib/esm/components/Editor/plugins/ImagePlugin.js +1 -2
- package/lib/esm/components/Editor/plugins/MediaPlugin.js +1 -2
- package/lib/esm/components/Editor/plugins/MentionsPlugin.js +1 -3
- package/lib/esm/components/Editor/plugins/ToolbarPlugin.js +1 -2
- package/lib/esm/components/Event/Event.js +1 -2
- package/lib/esm/components/Event/Skeleton.js +1 -3
- package/lib/esm/components/EventAutocomplete/EventAutocomplete.d.ts +2 -3
- package/lib/esm/components/EventAutocomplete/EventAutocomplete.js +1 -5
- package/lib/esm/components/EventForm/EventAddress.js +1 -3
- package/lib/esm/components/EventForm/EventForm.js +1 -2
- package/lib/esm/components/EventForm/UploadEventCover.js +1 -3
- package/lib/esm/components/EventFormDialog/EventFormDialog.js +1 -1
- package/lib/esm/components/EventHeader/EventHeader.js +1 -2
- package/lib/esm/components/EventHeader/Skeleton.js +1 -3
- package/lib/esm/components/EventInviteButton/EventInviteButton.d.ts +1 -1
- package/lib/esm/components/EventInviteButton/EventInviteButton.js +1 -3
- package/lib/esm/components/EventLocationWidget/EventLocationWidget.js +1 -2
- package/lib/esm/components/EventLocationWidget/Skeleton.js +1 -2
- package/lib/esm/components/EventMediaWidget/EventMediaWidget.js +1 -2
- package/lib/esm/components/EventMediaWidget/Skeleton.js +1 -3
- package/lib/esm/components/EventMediaWidget/TriggerButton.js +1 -3
- package/lib/esm/components/EventParticipantsButton/EventParticipantsButton.d.ts +1 -1
- package/lib/esm/components/EventParticipantsButton/EventParticipantsButton.js +1 -2
- package/lib/esm/components/EventSubscribeButton/EventSubscribeButton.js +1 -2
- package/lib/esm/components/Events/LocationEventsFilter.js +1 -2
- package/lib/esm/components/Events/Skeleton.js +1 -2
- package/lib/esm/components/Feed/Feed.js +1 -2
- package/lib/esm/components/Feed/Skeleton.js +1 -2
- package/lib/esm/components/FeedObject/Actions/Actions.js +1 -1
- package/lib/esm/components/FeedObject/Actions/Comment/Comment.js +1 -4
- package/lib/esm/components/FeedObject/Actions/Follow/Follow.js +1 -3
- package/lib/esm/components/FeedObject/Actions/Share/Share.js +1 -6
- package/lib/esm/components/FeedObject/Actions/Share/SharesDialog/SharesDialog.js +1 -2
- package/lib/esm/components/FeedObject/Actions/Vote/Vote.js +1 -2
- package/lib/esm/components/FeedObject/Activities/Activities.js +1 -2
- package/lib/esm/components/FeedObject/Activities/ActivitiesMenu/ActivitiesMenu.js +1 -6
- package/lib/esm/components/FeedObject/Activities/RelevantActivities/CommentActivity/CommentActivity.js +1 -2
- package/lib/esm/components/FeedObject/Activities/RelevantActivities/FollowActivity/FollowActivity.js +1 -2
- package/lib/esm/components/FeedObject/Activities/RelevantActivities/PollVoteActivity/PollVoteActivity.js +1 -2
- package/lib/esm/components/FeedObject/Activities/RelevantActivities/RelevantActivities.js +1 -3
- package/lib/esm/components/FeedObject/Activities/RelevantActivities/VoteUpActivity/VoteUpActivity.js +1 -2
- package/lib/esm/components/FeedObject/Contributors/Contributors.js +1 -2
- package/lib/esm/components/FeedObject/Contributors/Skeleton.js +1 -2
- package/lib/esm/components/FeedObject/FeedObject.js +1 -4
- package/lib/esm/components/FeedObject/Poll/Choice/Choice.js +1 -4
- package/lib/esm/components/FeedObject/Poll/Poll.js +1 -5
- package/lib/esm/components/FeedObject/Skeleton.js +1 -3
- package/lib/esm/components/FeedObjectMediaPreview/FeedObjectMediaPreview.js +1 -2
- package/lib/esm/components/FeedUpdatesWidget/FeedUpdatesWidget.js +1 -2
- package/lib/esm/components/FeedUpdatesWidget/Skeleton.js +1 -1
- package/lib/esm/components/FollowUserButton/FollowUserButton.js +1 -1
- package/lib/esm/components/Footer/Footer.js +1 -2
- package/lib/esm/components/Footer/Skeleton.js +1 -3
- package/lib/esm/components/FriendshipUserButton/FriendshipUserButton.js +1 -1
- package/lib/esm/components/Group/Group.js +1 -2
- package/lib/esm/components/Group/Skeleton.js +1 -3
- package/lib/esm/components/GroupActionsMenu/index.js +1 -3
- package/lib/esm/components/GroupAutocomplete/GroupAutocomplete.d.ts +2 -3
- package/lib/esm/components/GroupAutocomplete/GroupAutocomplete.js +1 -5
- package/lib/esm/components/GroupForm/GroupForm.js +1 -2
- package/lib/esm/components/GroupHeader/GroupHeader.js +1 -2
- package/lib/esm/components/GroupHeader/Skeleton.js +1 -3
- package/lib/esm/components/GroupInfoWidget/GroupInfoWidget.js +1 -2
- package/lib/esm/components/GroupInfoWidget/Skeleton.js +1 -1
- package/lib/esm/components/GroupInviteButton/GroupInviteButton.d.ts +1 -1
- package/lib/esm/components/GroupInviteButton/GroupInviteButton.js +1 -3
- package/lib/esm/components/GroupInvitedWidget/GroupInvitedWidget.js +1 -3
- package/lib/esm/components/GroupInvitedWidget/Skeleton.js +1 -1
- package/lib/esm/components/GroupMembersButton/GroupMembersButton.d.ts +1 -1
- package/lib/esm/components/GroupMembersButton/GroupMembersButton.js +1 -3
- package/lib/esm/components/GroupMembersWidget/GroupMembersWidget.js +1 -3
- package/lib/esm/components/GroupMembersWidget/Skeleton.js +1 -1
- package/lib/esm/components/GroupRequestsWidget/GroupRequestsWidget.js +1 -3
- package/lib/esm/components/GroupRequestsWidget/Skeleton.js +1 -1
- package/lib/esm/components/GroupSettingsIconButton/GroupSettingsIconButton.js +1 -3
- package/lib/esm/components/GroupSubscribeButton/GroupSubscribeButton.js +1 -1
- package/lib/esm/components/Groups/Groups.js +1 -2
- package/lib/esm/components/Groups/Skeleton.js +2 -2
- package/lib/esm/components/Incubator/Incubator.js +1 -4
- package/lib/esm/components/Incubator/Skeleton.js +1 -3
- package/lib/esm/components/IncubatorDetail/IncubatorDetail.js +1 -3
- package/lib/esm/components/IncubatorListWidget/CreateIncubatorDialog/CreateIncubatorDialog.js +1 -2
- package/lib/esm/components/IncubatorListWidget/IncubatorListWidget.js +1 -5
- package/lib/esm/components/IncubatorListWidget/Skeleton.js +1 -3
- package/lib/esm/components/IncubatorSubscribeButton/IncubatorSubscribeButton.js +1 -1
- package/lib/esm/components/IncubatorSuggestionWidget/IncubatorSuggestionWidget.js +1 -3
- package/lib/esm/components/IncubatorSuggestionWidget/Skeleton.js +1 -3
- package/lib/esm/components/InlineComposerWidget/InlineComposerWidget.js +1 -2
- package/lib/esm/components/InlineComposerWidget/Skeleton.js +1 -3
- package/lib/esm/components/InviteUserEventButton/InviteUserEventButton.js +1 -1
- package/lib/esm/components/LessonAppbar/LessonAppbar.js +1 -2
- package/lib/esm/components/LessonCommentObject/LessonCommentObject.js +1 -2
- package/lib/esm/components/LessonCommentObject/Skeleton.js +1 -3
- package/lib/esm/components/LessonCommentObjects/LessonCommentObjects.js +1 -2
- package/lib/esm/components/LessonCommentObjects/Skeleton.js +1 -2
- package/lib/esm/components/LessonDrawer/LessonDrawer.js +1 -2
- package/lib/esm/components/LessonEditForm/LessonEditForm.js +1 -2
- package/lib/esm/components/LessonObject/LessonObject.js +1 -3
- package/lib/esm/components/LessonReleaseMenu/LessonReleaseMenu.js +1 -1
- package/lib/esm/components/LiveStream/LiveStream.js +1 -2
- package/lib/esm/components/LiveStream/Skeleton.js +1 -3
- package/lib/esm/components/LiveStreamForm/LiveStreamForm.js +1 -2
- package/lib/esm/components/LiveStreamForm/LiveStreamFormSettings.js +1 -2
- package/lib/esm/components/LiveStreamRoom/LiveStreamRoom.js +1 -3
- package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/LiveStreamSettingsMenu.js +1 -4
- package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/LiveStreamVideoConference.js +1 -3
- package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/NoParticipants.js +1 -2
- package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/ParticipantTileActions.js +1 -3
- package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/ParticipantTileAvatar.js +1 -2
- package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/VideoConference.js +1 -3
- package/lib/esm/components/LocationAutocomplete/LocationAutocomplete.d.ts +2 -3
- package/lib/esm/components/LocationAutocomplete/LocationAutocomplete.js +1 -4
- package/lib/esm/components/LoyaltyProgramWidget/LoyaltyProgramWidget.js +1 -3
- package/lib/esm/components/LoyaltyProgramWidget/Skeleton.js +1 -2
- package/lib/esm/components/MyEventsWidget/MyEventsWidget.js +1 -2
- package/lib/esm/components/NavigationMenuIconButton/DefaultDrawerContent.js +1 -2
- package/lib/esm/components/NavigationMenuIconButton/DefaultDrawerSkeleton.js +1 -2
- package/lib/esm/components/NavigationMenuIconButton/DefaultHeaderContent.js +1 -2
- package/lib/esm/components/NavigationMenuIconButton/NavigationMenuDrawer.js +1 -2
- package/lib/esm/components/NavigationMenuIconButton/NavigationMenuIconButton.js +1 -2
- package/lib/esm/components/NavigationSettingsIconButton/NavigationSettingsIconButton.js +1 -2
- package/lib/esm/components/NavigationToolbar/NavigationToolbar.js +1 -2
- package/lib/esm/components/NavigationToolbar/Skeleton.js +1 -3
- package/lib/esm/components/NavigationToolbarMobile/NavigationToolbarMobile.js +1 -2
- package/lib/esm/components/NavigationToolbarMobile/Skeleton.js +1 -3
- package/lib/esm/components/Notification/CollapsedFor/CollapsedFor.js +1 -3
- package/lib/esm/components/Notification/Comment/Comment.js +1 -2
- package/lib/esm/components/Notification/Contribution/Contribution.js +1 -2
- package/lib/esm/components/Notification/ContributionFollow/ContributionFollow.js +1 -2
- package/lib/esm/components/Notification/Course/Course.js +1 -2
- package/lib/esm/components/Notification/DeletedFor/DeletedFor.js +1 -3
- package/lib/esm/components/Notification/Event/Event.js +1 -2
- package/lib/esm/components/Notification/Group/Group.js +1 -2
- package/lib/esm/components/Notification/IncubatorApproved/IncubatorApproved.js +1 -2
- package/lib/esm/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.js +1 -3
- package/lib/esm/components/Notification/KindlyNoticeFor/KindlyNoticeFor.js +1 -3
- package/lib/esm/components/Notification/LiveStream/LiveStream.js +1 -2
- package/lib/esm/components/Notification/Mention/Mention.js +1 -2
- package/lib/esm/components/Notification/Notification.js +1 -4
- package/lib/esm/components/Notification/PrivateMessage/PrivateMessage.js +1 -2
- package/lib/esm/components/Notification/Skeleton.js +1 -4
- package/lib/esm/components/Notification/UndeletedFor/UndeletedFor.js +1 -3
- package/lib/esm/components/Notification/UserBlocked/UserBlocked.js +1 -3
- package/lib/esm/components/Notification/UserConnection/UserConnection.js +1 -2
- package/lib/esm/components/Notification/UserFollow/UserFollow.js +1 -2
- package/lib/esm/components/Notification/VoteUp/VoteUp.js +1 -2
- package/lib/esm/components/OnBoardingWidget/ActionsButton.js +1 -2
- package/lib/esm/components/OnBoardingWidget/OnBoardingWidget.js +1 -2
- package/lib/esm/components/OnBoardingWidget/Skeleton.js +1 -3
- package/lib/esm/components/OnBoardingWidget/Steps/App/App.js +1 -3
- package/lib/esm/components/OnBoardingWidget/Steps/Appearance/Appearance.js +1 -4
- package/lib/esm/components/OnBoardingWidget/Steps/Category/Category.js +1 -3
- package/lib/esm/components/OnBoardingWidget/Steps/Content/Content.js +1 -3
- package/lib/esm/components/OnBoardingWidget/Steps/Invite/Invite.js +1 -3
- package/lib/esm/components/OnBoardingWidget/Steps/Profile/Profile.js +1 -4
- package/lib/esm/components/PlatformWidget/PlatformWidget.js +1 -3
- package/lib/esm/components/PlatformWidget/Skeleton.js +1 -3
- package/lib/esm/components/PollSuggestionWidget/PollSnippet/PollSnippet.js +1 -2
- package/lib/esm/components/PollSuggestionWidget/PollSnippet/Skeleton.js +1 -3
- package/lib/esm/components/PollSuggestionWidget/PollSuggestionWidget.js +1 -3
- package/lib/esm/components/PollSuggestionWidget/Skeleton.js +1 -3
- package/lib/esm/components/PrivateMessageComponent/PrivateMessageComponent.js +1 -2
- package/lib/esm/components/PrivateMessageComponent/Skeleton.js +1 -2
- package/lib/esm/components/PrivateMessageEditor/MessageMediaUploader/index.js +1 -3
- package/lib/esm/components/PrivateMessageEditor/PrivateMessageEditor.js +1 -3
- package/lib/esm/components/PrivateMessageEditor/Skeleton.js +1 -1
- package/lib/esm/components/PrivateMessageSettingsIconButton/PrivateMessageSettingsIconButton.js +1 -3
- package/lib/esm/components/PrivateMessageSnippetItem/PrivateMessageSnippetItem.js +1 -2
- package/lib/esm/components/PrivateMessageSnippetItem/Skeleton.js +1 -6
- package/lib/esm/components/PrivateMessageSnippets/PrivateMessageSnippets.js +1 -3
- package/lib/esm/components/PrivateMessageSnippets/Skeleton.js +1 -3
- package/lib/esm/components/PrivateMessageThread/PrivateMessageThread.js +1 -4
- package/lib/esm/components/PrivateMessageThread/Skeleton.js +1 -3
- package/lib/esm/components/PrivateMessageThreadItem/PrivateMessageThreadItem.js +1 -4
- package/lib/esm/components/PrivateMessageThreadItem/Skeleton.js +1 -5
- package/lib/esm/components/RelatedFeedObjectsWidget/RelatedFeedObjectsWidget.js +1 -3
- package/lib/esm/components/RelatedFeedObjectsWidget/Skeleton.js +1 -1
- package/lib/esm/components/SearchAutocomplete/SearchAutocomplete.js +1 -2
- package/lib/esm/components/Skeleton/AvatarGroupSkeleton.js +1 -2
- package/lib/esm/components/Skeleton/GenericSkeleton.js +1 -3
- package/lib/esm/components/SnippetNotifications/Skeleton.js +1 -3
- package/lib/esm/components/SnippetNotifications/SnippetNotifications.js +1 -2
- package/lib/esm/components/TagAutocomplete/TagAutocomplete.d.ts +2 -3
- package/lib/esm/components/TagAutocomplete/TagAutocomplete.js +1 -3
- package/lib/esm/components/ToastNotifications/Skeleton.js +1 -1
- package/lib/esm/components/ToastNotifications/ToastNotifications.js +1 -2
- package/lib/esm/components/User/Skeleton.js +1 -3
- package/lib/esm/components/User/User.js +1 -2
- package/lib/esm/components/UserActionIconButton/UserActionIconButton.js +1 -2
- package/lib/esm/components/UserConnectionsRequestsSentWidget/Skeleton.js +1 -1
- package/lib/esm/components/UserConnectionsRequestsSentWidget/UserConnectionsRequestsSentWidget.js +1 -3
- package/lib/esm/components/UserConnectionsRequestsWidget/Skeleton.js +1 -1
- package/lib/esm/components/UserConnectionsRequestsWidget/UserConnectionsRequestsWidget.js +1 -3
- package/lib/esm/components/UserConnectionsWidget/Skeleton.js +1 -1
- package/lib/esm/components/UserConnectionsWidget/UserConnectionsWidget.js +1 -3
- package/lib/esm/components/UserCounters/UserCounters.js +1 -2
- package/lib/esm/components/UserCreatedCoursesWidget/Skeleton.js +1 -3
- package/lib/esm/components/UserCreatedCoursesWidget/UserCreatedCoursesWidget.js +1 -3
- package/lib/esm/components/UserFollowedCategoriesWidget/Skeleton.js +1 -1
- package/lib/esm/components/UserFollowedCategoriesWidget/UserFollowedCategoriesWidget.js +1 -3
- package/lib/esm/components/UserFollowedUsersWidget/Skeleton.js +1 -1
- package/lib/esm/components/UserFollowedUsersWidget/UserFollowedUsersWidget.js +1 -3
- package/lib/esm/components/UserFollowersWidget/Skeleton.js +1 -1
- package/lib/esm/components/UserFollowersWidget/UserFollowersWidget.js +1 -3
- package/lib/esm/components/UserInfo/Skeleton.js +1 -3
- package/lib/esm/components/UserInfo/UserInfo.js +1 -2
- package/lib/esm/components/UserProfileBlocked/UserProfileBlocked.js +1 -2
- package/lib/esm/components/UserProfileEdit/Section/Account.js +1 -2
- package/lib/esm/components/UserProfileEdit/Section/AccountCredentials.js +1 -3
- package/lib/esm/components/UserProfileEdit/Section/PublicInfo.js +1 -3
- package/lib/esm/components/UserProfileEdit/Section/Settings.js +1 -2
- package/lib/esm/components/UserProfileEdit/Section/SettingsSkeleton.js +1 -3
- package/lib/esm/components/UserProfileEdit/Skeleton.js +1 -3
- package/lib/esm/components/UserProfileEdit/UserProfileEdit.js +1 -2
- package/lib/esm/components/UserProfileHeader/Skeleton.js +1 -3
- package/lib/esm/components/UserProfileHeader/UserProfileHeader.js +1 -2
- package/lib/esm/components/UserSocialAssociation/UserSocialAssociation.js +1 -2
- package/lib/esm/components/UserSubscribedGroupsWidget/Skeleton.js +1 -3
- package/lib/esm/components/UserSubscribedGroupsWidget/UserSubscribedGroupsWidget.js +1 -3
- package/lib/esm/components/UserSuggestionWidget/Skeleton.js +1 -2
- package/lib/esm/components/UserSuggestionWidget/UserSuggestionWidget.js +1 -2
- package/lib/esm/components/VoteAudienceButton/VoteAudienceButton.js +1 -3
- package/lib/esm/components/VoteButton/VoteButton.js +1 -3
- package/lib/esm/components/Widget/index.js +1 -2
- package/lib/esm/shared/AutoPlayer/index.js +1 -1
- package/lib/esm/shared/BaseDialog/BaseDialog.d.ts +1 -1
- package/lib/esm/shared/BaseDialog/BaseDialog.js +1 -9
- package/lib/esm/shared/BaseItem/BaseItem.js +1 -2
- package/lib/esm/shared/BaseItemButton/BaseItemButton.js +1 -2
- package/lib/esm/shared/Bullet/index.js +1 -1
- package/lib/esm/shared/CentralProgress/index.d.ts +1 -1
- package/lib/esm/shared/CentralProgress/index.js +1 -3
- package/lib/esm/shared/ConfirmDialog/ConfirmDialog.js +1 -4
- package/lib/esm/shared/ConsentSolutionSwitch/index.js +1 -3
- package/lib/esm/shared/ContributionActionsMenu/index.js +1 -4
- package/lib/esm/shared/CopyTextArea/index.d.ts +1 -1
- package/lib/esm/shared/CopyTextArea/index.js +1 -2
- package/lib/esm/shared/CustomSnackMessage/index.js +1 -3
- package/lib/esm/shared/DateTimeAgo/index.js +1 -3
- package/lib/esm/shared/EmailTextField/index.js +1 -2
- package/lib/esm/shared/EmojiPicker/EmojiPicker.js +1 -2
- package/lib/esm/shared/EventActionsMenu/index.js +1 -3
- package/lib/esm/shared/HiddenPlaceholder/index.js +1 -1
- package/lib/esm/shared/LanguageSwitcher/index.d.ts +1 -2
- package/lib/esm/shared/LanguageSwitcher/index.js +1 -2
- package/lib/esm/shared/LessonCommentActionsMenu/index.js +1 -4
- package/lib/esm/shared/LessonFilePreview/index.js +1 -3
- package/lib/esm/shared/Lightbox/BaseLightbox.js +1 -2
- package/lib/esm/shared/Lightbox/Lightbox.js +1 -1
- package/lib/esm/shared/Media/File/DisplayComponent.js +1 -3
- package/lib/esm/shared/Media/File/PreviewComponent.js +1 -3
- package/lib/esm/shared/Media/File/TriggerButton.js +7 -9
- package/lib/esm/shared/Media/Link/DisplayComponent.d.ts +1 -1
- package/lib/esm/shared/Media/Link/DisplayComponent.js +1 -3
- package/lib/esm/shared/Media/Link/LayerComponent.js +2 -5
- package/lib/esm/shared/Media/Link/PreviewComponent.d.ts +1 -1
- package/lib/esm/shared/Media/Link/PreviewComponent.js +1 -3
- package/lib/esm/shared/Media/Link/TriggerButton.js +1 -3
- package/lib/esm/shared/Media/Link/UrlTextField/index.d.ts +1 -4
- package/lib/esm/shared/Media/Link/UrlTextField/index.js +1 -4
- package/lib/esm/shared/Media/Share/DisplayComponent.js +1 -2
- package/lib/esm/shared/NewChip/NewChip.js +1 -2
- package/lib/esm/shared/NotificationItem/NotificationItem.js +1 -2
- package/lib/esm/shared/PasswordTextField/index.js +1 -3
- package/lib/esm/shared/PhoneTextField/index.js +1 -2
- package/lib/esm/shared/ProgressBar/index.d.ts +1 -1
- package/lib/esm/shared/ProgressBar/index.js +1 -3
- package/lib/esm/shared/ScrollContainer/index.js +1 -1
- package/lib/esm/shared/TagChip/index.d.ts +1 -3
- package/lib/esm/shared/TagChip/index.js +1 -2
- package/lib/esm/shared/Tags/index.js +1 -7
- package/lib/esm/shared/UpScalingTierBadge/index.js +1 -2
- package/lib/esm/shared/UrlTextField/index.js +1 -2
- package/lib/esm/shared/UserAvatar/UserAvatar.js +1 -2
- package/lib/esm/shared/UserDeletedSnackBar/UserDeletedSnackBar.js +1 -2
- package/lib/esm/shared/UsernameTextField/index.js +1 -2
- package/lib/umd/react-ui.js +1 -1
- package/package.json +4 -4
|
@@ -3,8 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const react_1 = tslib_1.__importStar(require("react"));
|
|
6
|
-
const styles_1 = require("@mui/material/styles");
|
|
7
|
-
const List_1 = tslib_1.__importDefault(require("@mui/material/List"));
|
|
8
6
|
const material_1 = require("@mui/material");
|
|
9
7
|
const Widget_1 = tslib_1.__importDefault(require("../Widget"));
|
|
10
8
|
const api_services_1 = require("@selfcommunity/api-services");
|
|
@@ -30,11 +28,11 @@ const classes = {
|
|
|
30
28
|
dialogRoot: `${constants_1.PREFIX}-dialog-root`,
|
|
31
29
|
endMessage: `${constants_1.PREFIX}-end-message`
|
|
32
30
|
};
|
|
33
|
-
const Root = (0,
|
|
31
|
+
const Root = (0, material_1.styled)(Widget_1.default, {
|
|
34
32
|
name: constants_1.PREFIX,
|
|
35
33
|
slot: 'Root'
|
|
36
34
|
})(() => ({}));
|
|
37
|
-
const DialogRoot = (0,
|
|
35
|
+
const DialogRoot = (0, material_1.styled)(BaseDialog_1.default, {
|
|
38
36
|
name: constants_1.PREFIX,
|
|
39
37
|
slot: 'DialogRoot'
|
|
40
38
|
})(() => ({}));
|
|
@@ -182,9 +180,9 @@ function CategoryTrendingFeedWidget(inProps) {
|
|
|
182
180
|
if (!state.initialized) {
|
|
183
181
|
return (0, jsx_runtime_1.jsx)(Skeleton_1.default, {});
|
|
184
182
|
}
|
|
185
|
-
const content = ((0, jsx_runtime_1.jsxs)(material_1.CardContent, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ className: classes.title, variant: "h5" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.categoryTrendingFeedWidget.title", defaultMessage: "ui.categoryTrendingFeedWidget.title" }) })), !state.count ? ((0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ className: classes.noResults, variant: "body2" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.categoryTrendingFeedWidget.noResults", defaultMessage: "ui.categoryTrendingFeedWidget.noResults" }) }))) : ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [(0, jsx_runtime_1.jsx)(
|
|
183
|
+
const content = ((0, jsx_runtime_1.jsxs)(material_1.CardContent, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ className: classes.title, variant: "h5" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.categoryTrendingFeedWidget.title", defaultMessage: "ui.categoryTrendingFeedWidget.title" }) })), !state.count ? ((0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ className: classes.noResults, variant: "body2" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.categoryTrendingFeedWidget.noResults", defaultMessage: "ui.categoryTrendingFeedWidget.noResults" }) }))) : ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.List, { children: state.results.slice(0, state.visibleItems).map((obj) => ((0, jsx_runtime_1.jsx)(material_1.ListItem, { children: (0, jsx_runtime_1.jsx)(FeedObject_1.default, Object.assign({ elevation: 0, feedObject: obj[obj.type] }, FeedObjectProps)) }, obj[obj.type].id))) }), state.count > state.visibleItems && ((0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ className: classes.showMore }, (isMobile
|
|
186
184
|
? { onClick: handleToggleDialogOpen }
|
|
187
|
-
: { component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.CATEGORY_TRENDING_FEED_ROUTE_NAME, scCategory) }), { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.categoryTrendingFeedWidget.button.showAll", defaultMessage: "ui.categoryTrendingFeedWidget.button.showAll" }) })))] })), openDialog && ((0, jsx_runtime_1.jsx)(DialogRoot, Object.assign({ className: classes.dialogRoot, title: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { defaultMessage: "ui.categoryTrendingFeedWidget.title", id: "ui.categoryTrendingFeedWidget.title", values: { total: state.count } }), onClose: handleToggleDialogOpen, open: openDialog }, DialogProps, { children: (0, jsx_runtime_1.jsx)(InfiniteScroll_1.default, Object.assign({ dataLength: state.results.length, next: handleNext, hasMoreNext: Boolean(state.next), loaderNext: (0, jsx_runtime_1.jsx)(FeedObject_1.FeedObjectSkeleton, Object.assign({ elevation: 0 }, FeedObjectProps)), height: isMobile ? '100%' : 400, endMessage: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ className: classes.endMessage }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.categoryTrendingFeedWidget.noMoreResults", defaultMessage: "ui.categoryTrendingFeedWidget.noMoreResults" }) })) }, { children: (0, jsx_runtime_1.jsx)(
|
|
185
|
+
: { component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.CATEGORY_TRENDING_FEED_ROUTE_NAME, scCategory) }), { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.categoryTrendingFeedWidget.button.showAll", defaultMessage: "ui.categoryTrendingFeedWidget.button.showAll" }) })))] })), openDialog && ((0, jsx_runtime_1.jsx)(DialogRoot, Object.assign({ className: classes.dialogRoot, title: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { defaultMessage: "ui.categoryTrendingFeedWidget.title", id: "ui.categoryTrendingFeedWidget.title", values: { total: state.count } }), onClose: handleToggleDialogOpen, open: openDialog }, DialogProps, { children: (0, jsx_runtime_1.jsx)(InfiniteScroll_1.default, Object.assign({ dataLength: state.results.length, next: handleNext, hasMoreNext: Boolean(state.next), loaderNext: (0, jsx_runtime_1.jsx)(FeedObject_1.FeedObjectSkeleton, Object.assign({ elevation: 0 }, FeedObjectProps)), height: isMobile ? '100%' : 400, endMessage: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ className: classes.endMessage }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.categoryTrendingFeedWidget.noMoreResults", defaultMessage: "ui.categoryTrendingFeedWidget.noMoreResults" }) })) }, { children: (0, jsx_runtime_1.jsx)(material_1.List, { children: state.results.map((obj) => ((0, jsx_runtime_1.jsx)(material_1.ListItem, { children: (0, jsx_runtime_1.jsx)(FeedObject_1.default, Object.assign({ elevation: 0, feedObject: obj[obj.type] }, FeedObjectProps)) }, obj[obj.type].id))) }) })) })))] }));
|
|
188
186
|
return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, rest, { children: content })));
|
|
189
187
|
}
|
|
190
188
|
exports.default = CategoryTrendingFeedWidget;
|
|
@@ -3,8 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const Widget_1 = tslib_1.__importDefault(require("../Widget"));
|
|
6
|
-
const List_1 = tslib_1.__importDefault(require("@mui/material/List"));
|
|
7
|
-
const styles_1 = require("@mui/material/styles");
|
|
8
6
|
const Skeleton_1 = tslib_1.__importDefault(require("../FeedObject/Skeleton"));
|
|
9
7
|
const material_1 = require("@mui/material");
|
|
10
8
|
const constants_1 = require("./constants");
|
|
@@ -12,7 +10,7 @@ const classes = {
|
|
|
12
10
|
root: `${constants_1.PREFIX}-skeleton-root`,
|
|
13
11
|
list: `${constants_1.PREFIX}-list`
|
|
14
12
|
};
|
|
15
|
-
const Root = (0,
|
|
13
|
+
const Root = (0, material_1.styled)(Widget_1.default, {
|
|
16
14
|
name: constants_1.PREFIX,
|
|
17
15
|
slot: 'SkeletonRoot'
|
|
18
16
|
})(() => ({}));
|
|
@@ -38,6 +36,6 @@ const Root = (0, styles_1.styled)(Widget_1.default, {
|
|
|
38
36
|
*
|
|
39
37
|
*/
|
|
40
38
|
function CategoryTrendingFeedWidgetSkeleton(props) {
|
|
41
|
-
return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: classes.root }, props, { children: (0, jsx_runtime_1.jsx)(material_1.CardContent, { children: (0, jsx_runtime_1.jsx)(
|
|
39
|
+
return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: classes.root }, props, { children: (0, jsx_runtime_1.jsx)(material_1.CardContent, { children: (0, jsx_runtime_1.jsx)(material_1.List, Object.assign({ className: classes.list }, { children: [...Array(4)].map((post, index) => ((0, jsx_runtime_1.jsx)(Skeleton_1.default, { elevation: 0 }, index))) })) }) })));
|
|
42
40
|
}
|
|
43
41
|
exports.default = CategoryTrendingFeedWidgetSkeleton;
|
|
@@ -3,8 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const react_1 = tslib_1.__importStar(require("react"));
|
|
6
|
-
const styles_1 = require("@mui/material/styles");
|
|
7
|
-
const List_1 = tslib_1.__importDefault(require("@mui/material/List"));
|
|
8
6
|
const material_1 = require("@mui/material");
|
|
9
7
|
const Widget_1 = tslib_1.__importDefault(require("../Widget"));
|
|
10
8
|
const api_services_1 = require("@selfcommunity/api-services");
|
|
@@ -29,11 +27,11 @@ const classes = {
|
|
|
29
27
|
dialogRoot: `${constants_1.PREFIX}-dialog-root`,
|
|
30
28
|
endMessage: `${constants_1.PREFIX}-end-message`
|
|
31
29
|
};
|
|
32
|
-
const Root = (0,
|
|
30
|
+
const Root = (0, material_1.styled)(Widget_1.default, {
|
|
33
31
|
name: constants_1.PREFIX,
|
|
34
32
|
slot: 'Root'
|
|
35
33
|
})(() => ({}));
|
|
36
|
-
const DialogRoot = (0,
|
|
34
|
+
const DialogRoot = (0, material_1.styled)(BaseDialog_1.default, {
|
|
37
35
|
name: constants_1.PREFIX,
|
|
38
36
|
slot: 'DialogRoot'
|
|
39
37
|
})(() => ({}));
|
|
@@ -174,7 +172,7 @@ function CategoryTrendingUsersWidget(inProps) {
|
|
|
174
172
|
if (!state.initialized) {
|
|
175
173
|
return (0, jsx_runtime_1.jsx)(Skeleton_1.default, {});
|
|
176
174
|
}
|
|
177
|
-
const content = ((0, jsx_runtime_1.jsxs)(material_1.CardContent, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ className: classes.title, variant: "h5" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.categoryTrendingUsersWidget.title", defaultMessage: "ui.categoryTrendingUsersWidget.title" }) })), !state.count ? ((0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ className: classes.noResults, variant: "body2" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.categoryTrendingUsersWidget.noResults", defaultMessage: "ui.categoryTrendingUsersWidget.noResults" }) }))) : ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [(0, jsx_runtime_1.jsx)(
|
|
175
|
+
const content = ((0, jsx_runtime_1.jsxs)(material_1.CardContent, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ className: classes.title, variant: "h5" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.categoryTrendingUsersWidget.title", defaultMessage: "ui.categoryTrendingUsersWidget.title" }) })), !state.count ? ((0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ className: classes.noResults, variant: "body2" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.categoryTrendingUsersWidget.noResults", defaultMessage: "ui.categoryTrendingUsersWidget.noResults" }) }))) : ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.List, { children: state.results.slice(0, state.visibleItems).map((user) => ((0, jsx_runtime_1.jsx)(material_1.ListItem, { children: (0, jsx_runtime_1.jsx)(User_1.default, Object.assign({ elevation: 0, user: user }, UserProps)) }, user.id))) }), state.count > state.visibleItems && ((0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ className: classes.showMore, onClick: handleToggleDialogOpen }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.categoryTrendingUsersWidget.button.showAll", defaultMessage: "ui.categoryTrendingUsersWidget.button.showAll" }) })))] })), openDialog && ((0, jsx_runtime_1.jsx)(DialogRoot, Object.assign({ className: classes.dialogRoot, title: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { defaultMessage: "ui.categoryTrendingUsersWidget.title", id: "ui.categoryTrendingUsersWidget.title", values: { total: state.count } }), onClose: handleToggleDialogOpen, open: openDialog }, DialogProps, { children: (0, jsx_runtime_1.jsx)(InfiniteScroll_1.default, Object.assign({ dataLength: state.results.length, next: handleNext, hasMoreNext: Boolean(state.next), loaderNext: (0, jsx_runtime_1.jsx)(User_1.UserSkeleton, Object.assign({ elevation: 0 }, UserProps)), height: isMobile ? '100%' : 400, endMessage: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ className: classes.endMessage }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.categoryTrendingUsersWidget.noMoreResults", defaultMessage: "ui.categoryTrendingUsersWidget.noMoreResults" }) })) }, { children: (0, jsx_runtime_1.jsx)(material_1.List, { children: state.results.map((user) => ((0, jsx_runtime_1.jsx)(material_1.ListItem, { children: (0, jsx_runtime_1.jsx)(User_1.default, Object.assign({ elevation: 0, user: user }, UserProps)) }, user.id))) }) })) })))] }));
|
|
178
176
|
return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, rest, { children: content })));
|
|
179
177
|
}
|
|
180
178
|
exports.default = CategoryTrendingUsersWidget;
|
|
@@ -3,8 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const Widget_1 = tslib_1.__importDefault(require("../Widget"));
|
|
6
|
-
const List_1 = tslib_1.__importDefault(require("@mui/material/List"));
|
|
7
|
-
const styles_1 = require("@mui/material/styles");
|
|
8
6
|
const Skeleton_1 = tslib_1.__importDefault(require("../User/Skeleton"));
|
|
9
7
|
const material_1 = require("@mui/material");
|
|
10
8
|
const constants_1 = require("./constants");
|
|
@@ -12,7 +10,7 @@ const classes = {
|
|
|
12
10
|
root: `${constants_1.PREFIX}-skeleton-root`,
|
|
13
11
|
list: `${constants_1.PREFIX}-list`
|
|
14
12
|
};
|
|
15
|
-
const Root = (0,
|
|
13
|
+
const Root = (0, material_1.styled)(Widget_1.default, {
|
|
16
14
|
name: constants_1.PREFIX,
|
|
17
15
|
slot: 'SkeletonRoot'
|
|
18
16
|
})(() => ({}));
|
|
@@ -38,6 +36,6 @@ const Root = (0, styles_1.styled)(Widget_1.default, {
|
|
|
38
36
|
*
|
|
39
37
|
*/
|
|
40
38
|
function CategoryTrendingPeopleWidgetSkeleton(props) {
|
|
41
|
-
return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: classes.root }, props, { children: (0, jsx_runtime_1.jsx)(material_1.CardContent, { children: (0, jsx_runtime_1.jsx)(
|
|
39
|
+
return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: classes.root }, props, { children: (0, jsx_runtime_1.jsx)(material_1.CardContent, { children: (0, jsx_runtime_1.jsx)(material_1.List, Object.assign({ className: classes.list }, { children: [...Array(4)].map((person, index) => ((0, jsx_runtime_1.jsx)(material_1.ListItem, { children: (0, jsx_runtime_1.jsx)(Skeleton_1.default, { elevation: 0 }) }, index))) })) }) })));
|
|
42
40
|
}
|
|
43
41
|
exports.default = CategoryTrendingPeopleWidgetSkeleton;
|
|
@@ -3,15 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const react_1 = tslib_1.__importStar(require("react"));
|
|
6
|
-
const styles_1 = require("@mui/material/styles");
|
|
7
6
|
const material_1 = require("@mui/material");
|
|
8
7
|
const api_services_1 = require("@selfcommunity/api-services");
|
|
9
8
|
const react_core_1 = require("@selfcommunity/react-core");
|
|
10
|
-
const Icon_1 = tslib_1.__importDefault(require("@mui/material/Icon"));
|
|
11
9
|
const react_intl_1 = require("react-intl");
|
|
12
10
|
const ConfirmDialog_1 = tslib_1.__importDefault(require("../../shared/ConfirmDialog/ConfirmDialog"));
|
|
13
11
|
const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
14
|
-
const CircularProgress_1 = tslib_1.__importDefault(require("@mui/material/CircularProgress"));
|
|
15
12
|
const system_1 = require("@mui/system");
|
|
16
13
|
const Errors_1 = require("../../constants/Errors");
|
|
17
14
|
const utils_1 = require("@selfcommunity/utils");
|
|
@@ -22,7 +19,7 @@ const classes = {
|
|
|
22
19
|
addMenuItem: `${constants_1.PREFIX}-add-menuItem`,
|
|
23
20
|
delMenuItem: `${constants_1.PREFIX}-del-menuItem`
|
|
24
21
|
};
|
|
25
|
-
const Root = (0,
|
|
22
|
+
const Root = (0, material_1.styled)(material_1.Box, {
|
|
26
23
|
name: constants_1.PREFIX,
|
|
27
24
|
slot: 'Root'
|
|
28
25
|
})(() => ({}));
|
|
@@ -169,12 +166,12 @@ function ChangeCover(inProps) {
|
|
|
169
166
|
* Renders change cover menu items
|
|
170
167
|
*/
|
|
171
168
|
function renderMenuItems() {
|
|
172
|
-
return ((0, jsx_runtime_1.jsx)(material_1.Box, { children: loading ? ((0, jsx_runtime_1.jsx)(material_1.MenuItem, Object.assign({ sx: { justifyContent: 'center' } }, { children: (0, jsx_runtime_1.jsx)(
|
|
169
|
+
return ((0, jsx_runtime_1.jsx)(material_1.Box, { children: loading ? ((0, jsx_runtime_1.jsx)(material_1.MenuItem, Object.assign({ sx: { justifyContent: 'center' } }, { children: (0, jsx_runtime_1.jsx)(material_1.CircularProgress, { size: 15 }) }))) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("input", { type: "file", onChange: handleUpload, ref: fileInput, hidden: true, accept: ".gif,.png,.jpg,.jpeg" }), (0, jsx_runtime_1.jsxs)(material_1.MenuItem, Object.assign({ disabled: loading, onClick: () => fileInput.current.click(), className: classes.addMenuItem }, { children: [(0, jsx_runtime_1.jsx)(material_1.ListItemIcon, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "add_circle_outline" }) }), (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.changeCover.button.upload", defaultMessage: "ui.changeCover.button.upload" })] })), hasCover && ((0, jsx_runtime_1.jsxs)(material_1.MenuItem, Object.assign({ className: classes.delMenuItem, onClick: () => setOpenDeleteCoverDialog(true) }, { children: [(0, jsx_runtime_1.jsx)(material_1.ListItemIcon, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "delete" }) }), (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.changeCover.button.delete", defaultMessage: "ui.changeCover.button.delete" })] })))] })) }));
|
|
173
170
|
}
|
|
174
171
|
/**
|
|
175
172
|
* Renders change cover menu
|
|
176
173
|
*/
|
|
177
|
-
const cc = ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ size: "small", variant: "contained", disabled: loading, onClick: handleOpen }, rest, { children: (0, jsx_runtime_1.jsx)(
|
|
174
|
+
const cc = ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ size: "small", variant: "contained", disabled: loading, onClick: handleOpen }, rest, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "photo_camera" }) })), open && ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: isMobile ? ((0, jsx_runtime_1.jsx)(material_1.SwipeableDrawer, Object.assign({ open: true, onClose: handleClose, onOpen: handleOpen, anchor: "bottom", disableSwipeToOpen: true }, { children: renderMenuItems() }))) : ((0, jsx_runtime_1.jsx)(material_1.Menu, Object.assign({ anchorEl: anchorEl, open: true, onClose: handleClose }, { children: renderMenuItems() }))) })), !isMobile && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ className: classes.helpPopover, variant: "contained", onClick: handleClickHelpButton }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "help_outline" }) })), isOpen && ((0, jsx_runtime_1.jsx)(material_1.Popover, Object.assign({ open: isOpen, anchorEl: anchorElPopover, onClose: handleCloseHelpPopover, anchorOrigin: {
|
|
178
175
|
vertical: 'bottom',
|
|
179
176
|
horizontal: 'right'
|
|
180
177
|
} }, { children: (0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ sx: { p: '10px' } }, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ component: "h3" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.changeCover.button.uploadA", defaultMessage: "ui.changeCover.button.uploadA" }) })), (0, jsx_runtime_1.jsx)(material_1.Divider, {}), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ component: "span" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.changeCover.info", defaultMessage: "ui.changeCover.info", values: {
|
|
@@ -3,10 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const react_1 = require("react");
|
|
6
|
-
const styles_1 = require("@mui/material/styles");
|
|
7
6
|
const material_1 = require("@mui/material");
|
|
8
7
|
const react_core_1 = require("@selfcommunity/react-core");
|
|
9
|
-
const Icon_1 = tslib_1.__importDefault(require("@mui/material/Icon"));
|
|
10
8
|
const react_intl_1 = require("react-intl");
|
|
11
9
|
const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
12
10
|
const system_1 = require("@mui/system");
|
|
@@ -18,7 +16,7 @@ const utils_1 = require("@selfcommunity/utils");
|
|
|
18
16
|
const classes = {
|
|
19
17
|
root: `${constants_1.PREFIX}-root`
|
|
20
18
|
};
|
|
21
|
-
const Root = (0,
|
|
19
|
+
const Root = (0, material_1.styled)(lab_1.LoadingButton, {
|
|
22
20
|
name: constants_1.PREFIX,
|
|
23
21
|
slot: 'Root'
|
|
24
22
|
})(() => ({}));
|
|
@@ -131,7 +129,7 @@ function ChangeGroupCover(inProps) {
|
|
|
131
129
|
* Renders root object (if not hidden by autoHide prop)
|
|
132
130
|
*/
|
|
133
131
|
if (!autoHide) {
|
|
134
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("input", { type: "file", onChange: handleUpload, ref: fileInput, hidden: true, accept: ".gif,.png,.jpg,.jpeg" }), (0, jsx_runtime_1.jsx)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className), size: "medium", variant: "contained", disabled: loading, onClick: () => fileInput.current.click(), loading: loading }, rest, { children: (0, jsx_runtime_1.jsx)(
|
|
132
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("input", { type: "file", onChange: handleUpload, ref: fileInput, hidden: true, accept: ".gif,.png,.jpg,.jpeg" }), (0, jsx_runtime_1.jsx)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className), size: "medium", variant: "contained", disabled: loading, onClick: () => fileInput.current.click(), loading: loading }, rest, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "image" }) }))] }));
|
|
135
133
|
}
|
|
136
134
|
return null;
|
|
137
135
|
}
|
|
@@ -3,9 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const react_1 = require("react");
|
|
6
|
-
const styles_1 = require("@mui/material/styles");
|
|
7
6
|
const material_1 = require("@mui/material");
|
|
8
|
-
const Icon_1 = tslib_1.__importDefault(require("@mui/material/Icon"));
|
|
9
7
|
const react_core_1 = require("@selfcommunity/react-core");
|
|
10
8
|
const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
11
9
|
const system_1 = require("@mui/system");
|
|
@@ -24,7 +22,7 @@ const messages = (0, react_intl_1.defineMessages)({
|
|
|
24
22
|
const classes = {
|
|
25
23
|
root: `${constants_1.PREFIX}-root`
|
|
26
24
|
};
|
|
27
|
-
const Root = (0,
|
|
25
|
+
const Root = (0, material_1.styled)(lab_1.LoadingButton, {
|
|
28
26
|
name: constants_1.PREFIX,
|
|
29
27
|
slot: 'Root'
|
|
30
28
|
})(() => ({}));
|
|
@@ -129,7 +127,7 @@ function ChangeGroupPicture(inProps) {
|
|
|
129
127
|
* Renders the component (if not hidden by autoHide prop)
|
|
130
128
|
*/
|
|
131
129
|
if (!autoHide) {
|
|
132
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("input", { type: "file", onChange: handleUpload, ref: fileInput, hidden: true, accept: ".gif,.png,.jpg,.jpeg" }), (0, jsx_runtime_1.jsx)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className), size: "small", variant: "contained", disabled: loading, onClick: () => fileInput.current.click(), loading: loading }, rest, { children: (0, jsx_runtime_1.jsx)(
|
|
130
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("input", { type: "file", onChange: handleUpload, ref: fileInput, hidden: true, accept: ".gif,.png,.jpg,.jpeg" }), (0, jsx_runtime_1.jsx)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className), size: "small", variant: "contained", disabled: loading, onClick: () => fileInput.current.click(), loading: loading }, rest, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "photo_camera" }) }))] }));
|
|
133
131
|
}
|
|
134
132
|
return null;
|
|
135
133
|
}
|
|
@@ -3,11 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const react_1 = require("react");
|
|
6
|
-
const styles_1 = require("@mui/material/styles");
|
|
7
6
|
const material_1 = require("@mui/material");
|
|
8
7
|
const ChangePictureDialog_1 = tslib_1.__importDefault(require("./ChangePictureDialog/ChangePictureDialog"));
|
|
9
8
|
const react_intl_1 = require("react-intl");
|
|
10
|
-
const Icon_1 = tslib_1.__importDefault(require("@mui/material/Icon"));
|
|
11
9
|
const react_core_1 = require("@selfcommunity/react-core");
|
|
12
10
|
const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
13
11
|
const system_1 = require("@mui/system");
|
|
@@ -16,7 +14,7 @@ const classes = {
|
|
|
16
14
|
root: `${constants_1.PREFIX}-root`,
|
|
17
15
|
dialog: `${constants_1.PREFIX}-dialog`
|
|
18
16
|
};
|
|
19
|
-
const Root = (0,
|
|
17
|
+
const Root = (0, material_1.styled)(material_1.Button, {
|
|
20
18
|
name: constants_1.PREFIX,
|
|
21
19
|
slot: 'Root'
|
|
22
20
|
})(() => ({}));
|
|
@@ -65,7 +63,7 @@ function ChangePicture(inProps) {
|
|
|
65
63
|
* Renders the component (if not hidden by autoHide prop)
|
|
66
64
|
*/
|
|
67
65
|
if (!autoHide) {
|
|
68
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className), size: "small", variant: "contained", onClick: () => setOpenChangePictureDialog(true) }, rest, { children: iconButton ? ((0, jsx_runtime_1.jsx)(
|
|
66
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className), size: "small", variant: "contained", onClick: () => setOpenChangePictureDialog(true) }, rest, { children: iconButton ? ((0, jsx_runtime_1.jsx)(material_1.Icon, { children: "photo_camera" })) : ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.changePicture.button.change", defaultMessage: "ui.changePicture.button.change" })) })), openChangePictureDialog && ((0, jsx_runtime_1.jsx)(ChangePictureDialog_1.default, { className: classes.dialog, open: openChangePictureDialog, onChange: (avatar) => onChange && onChange(avatar), onClose: () => setOpenChangePictureDialog(false) }))] }));
|
|
69
67
|
}
|
|
70
68
|
return null;
|
|
71
69
|
}
|
|
@@ -3,18 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const react_1 = require("react");
|
|
6
|
-
const styles_1 = require("@mui/material/styles");
|
|
7
|
-
const Button_1 = tslib_1.__importDefault(require("@mui/material/Button"));
|
|
8
|
-
const Typography_1 = tslib_1.__importDefault(require("@mui/material/Typography"));
|
|
9
6
|
const material_1 = require("@mui/material");
|
|
10
|
-
const Icon_1 = tslib_1.__importDefault(require("@mui/material/Icon"));
|
|
11
7
|
const api_services_1 = require("@selfcommunity/api-services");
|
|
12
8
|
const react_core_1 = require("@selfcommunity/react-core");
|
|
13
9
|
const react_intl_1 = require("react-intl");
|
|
14
10
|
const BaseDialog_1 = tslib_1.__importDefault(require("../../../shared/BaseDialog"));
|
|
15
11
|
const ConfirmDialog_1 = tslib_1.__importDefault(require("../../../shared/ConfirmDialog/ConfirmDialog"));
|
|
16
12
|
const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
17
|
-
const CircularProgress_1 = tslib_1.__importDefault(require("@mui/material/CircularProgress"));
|
|
18
13
|
const seamless_scroll_polyfill_1 = require("seamless-scroll-polyfill");
|
|
19
14
|
const Errors_1 = require("../../../constants/Errors");
|
|
20
15
|
const utils_1 = require("@selfcommunity/utils");
|
|
@@ -26,7 +21,7 @@ const classes = {
|
|
|
26
21
|
imageItem: `${constants_1.PREFIX}-image-item`,
|
|
27
22
|
primary: `${constants_1.PREFIX}-primary`
|
|
28
23
|
};
|
|
29
|
-
const Root = (0,
|
|
24
|
+
const Root = (0, material_1.styled)(BaseDialog_1.default, {
|
|
30
25
|
name: constants_1.PREFIX,
|
|
31
26
|
slot: 'DialogRoot'
|
|
32
27
|
})(() => ({}));
|
|
@@ -181,13 +176,13 @@ function ChangePictureDialog(props) {
|
|
|
181
176
|
/**
|
|
182
177
|
* Renders root object
|
|
183
178
|
*/
|
|
184
|
-
return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: (0, classnames_1.default)(classes.dialogRoot, className), title: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { defaultMessage: "ui.changePicture.title", id: "ui.changePicture.title" }), onClose: onClose, open: open }, rest, { children: [(0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ className: classes.upload }, { children: [alert ? ((0, jsx_runtime_1.jsx)(material_1.Alert, Object.assign({ color: "error", onClose: () => setAlert(false) }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.changePicture.button.upload.alert", defaultMessage: "ui.changePicture.button.upload.alert" }) }))) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("input", { type: "file", onChange: handleUpload, ref: fileInput, hidden: true, accept: ".gif,.png,.jpg,.jpeg" }), (0, jsx_runtime_1.jsx)(
|
|
179
|
+
return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: (0, classnames_1.default)(classes.dialogRoot, className), title: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { defaultMessage: "ui.changePicture.title", id: "ui.changePicture.title" }), onClose: onClose, open: open }, rest, { children: [(0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ className: classes.upload }, { children: [alert ? ((0, jsx_runtime_1.jsx)(material_1.Alert, Object.assign({ color: "error", onClose: () => setAlert(false) }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.changePicture.button.upload.alert", defaultMessage: "ui.changePicture.button.upload.alert" }) }))) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("input", { type: "file", onChange: handleUpload, ref: fileInput, hidden: true, accept: ".gif,.png,.jpg,.jpeg" }), (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ disabled: loading || isDeletingAvatar, variant: "outlined", onClick: () => fileInput.current.click(), color: error ? 'error' : 'primary', startIcon: loading ? null : (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "folder_open" }) }, { children: loading ? ((0, jsx_runtime_1.jsx)(material_1.CircularProgress, { size: 15 })) : ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: error ? ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.changePicture.button.upload.error", defaultMessage: "ui.changePicture.button.upload.error" })) : ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.changePicture.button.upload", defaultMessage: "ui.changePicture.button.upload" })) })) }))] })), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ component: "span", fontSize: "small", color: "text.secondary", gutterBottom: true }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.changePicture.info", defaultMessage: "ui.changePicture.info", values: {
|
|
185
180
|
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
|
|
186
181
|
// @ts-ignore
|
|
187
182
|
li: (chunks) => (0, jsx_runtime_1.jsx)("li", { children: chunks }),
|
|
188
183
|
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
|
|
189
184
|
// @ts-ignore
|
|
190
185
|
ul: (chunks) => (0, jsx_runtime_1.jsx)("ul", { children: chunks })
|
|
191
|
-
} }) }))] })), (0, jsx_runtime_1.jsx)(material_1.ImageList, Object.assign({ cols: 3, rowHeight: 'auto', id: "avatarsList", classes: { root: classes.imagesList } }, { children: avatars.map((avatar) => ((0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ className: classes.imageItem }, { children: (0, jsx_runtime_1.jsxs)(material_1.ImageListItem, Object.assign({ className: primary === avatar.id ? classes.primary : '', onClick: () => selectPrimaryAvatar(avatar) }, { children: [(0, jsx_runtime_1.jsx)("img", { src: avatar.avatar, loading: "lazy", alt: 'img' }), (0, jsx_runtime_1.jsx)(material_1.ImageListItemBar, { position: "top", actionIcon: (0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ onClick: () => handleOpen(avatar.id), size: "small" }, { children: (0, jsx_runtime_1.jsx)(
|
|
186
|
+
} }) }))] })), (0, jsx_runtime_1.jsx)(material_1.ImageList, Object.assign({ cols: 3, rowHeight: 'auto', id: "avatarsList", classes: { root: classes.imagesList } }, { children: avatars.map((avatar) => ((0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ className: classes.imageItem }, { children: (0, jsx_runtime_1.jsxs)(material_1.ImageListItem, Object.assign({ className: primary === avatar.id ? classes.primary : '', onClick: () => selectPrimaryAvatar(avatar) }, { children: [(0, jsx_runtime_1.jsx)("img", { src: avatar.avatar, loading: "lazy", alt: 'img' }), (0, jsx_runtime_1.jsx)(material_1.ImageListItemBar, { position: "top", actionIcon: (0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ onClick: () => handleOpen(avatar.id), size: "small" }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "delete" }) })) })] }), avatar.id) }), avatar.id))) })), openDeleteAvatarDialog && ((0, jsx_runtime_1.jsx)(ConfirmDialog_1.default, { open: openDeleteAvatarDialog, title: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.changePicture.dialog.msg", defaultMessage: "ui.changePicture.dialog.msg" }), btnConfirm: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.changePicture.dialog.confirm", defaultMessage: "ui.changePicture.dialog.confirm" }), onConfirm: deleteAvatar, isUpdating: isDeletingAvatar, onClose: () => setOpenDeleteAvatarDialog(false) }))] })));
|
|
192
187
|
}
|
|
193
188
|
exports.default = ChangePictureDialog;
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const react_1 = tslib_1.__importStar(require("react"));
|
|
6
|
-
const styles_1 = require("@mui/material/styles");
|
|
7
6
|
const Widget_1 = tslib_1.__importDefault(require("../Widget"));
|
|
8
7
|
const react_intl_1 = require("react-intl");
|
|
9
8
|
const material_1 = require("@mui/material");
|
|
@@ -48,7 +47,7 @@ const classes = {
|
|
|
48
47
|
collapsed: `${constants_1.PREFIX}-collapsed`,
|
|
49
48
|
flagChip: `${constants_1.PREFIX}-flag-chip`
|
|
50
49
|
};
|
|
51
|
-
const Root = (0,
|
|
50
|
+
const Root = (0, material_1.styled)(material_1.Box, {
|
|
52
51
|
name: constants_1.PREFIX,
|
|
53
52
|
slot: 'Root'
|
|
54
53
|
})(() => ({}));
|
|
@@ -3,8 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const Widget_1 = tslib_1.__importDefault(require("../Widget"));
|
|
6
|
-
const styles_1 = require("@mui/material/styles");
|
|
7
|
-
const Skeleton_1 = tslib_1.__importDefault(require("@mui/material/Skeleton"));
|
|
8
6
|
const material_1 = require("@mui/material");
|
|
9
7
|
const BaseItem_1 = tslib_1.__importDefault(require("../../shared/BaseItem"));
|
|
10
8
|
const constants_1 = require("./constants");
|
|
@@ -13,7 +11,7 @@ const classes = {
|
|
|
13
11
|
avatar: `${constants_1.PREFIX}-avatar`,
|
|
14
12
|
primaryContent: `${constants_1.PREFIX}-primary-content`
|
|
15
13
|
};
|
|
16
|
-
const Root = (0,
|
|
14
|
+
const Root = (0, material_1.styled)(BaseItem_1.default, {
|
|
17
15
|
name: constants_1.PREFIX,
|
|
18
16
|
slot: 'SkeletonRoot'
|
|
19
17
|
})(() => ({}));
|
|
@@ -40,6 +38,6 @@ const Root = (0, styles_1.styled)(BaseItem_1.default, {
|
|
|
40
38
|
function CommentObjectSkeleton(props) {
|
|
41
39
|
const { WidgetProps } = props, rest = tslib_1.__rest(props, ["WidgetProps"]);
|
|
42
40
|
const theme = (0, material_1.useTheme)();
|
|
43
|
-
return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: classes.root, disableTypography: true }, rest, { image: (0, jsx_runtime_1.jsx)(
|
|
41
|
+
return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: classes.root, disableTypography: true }, rest, { image: (0, jsx_runtime_1.jsx)(material_1.Skeleton, { animation: "wave", variant: "circular", width: theme.selfcommunity.user.avatar.sizeMedium, height: theme.selfcommunity.user.avatar.sizeMedium, className: classes.avatar }), secondary: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)(Widget_1.default, Object.assign({}, WidgetProps, { children: (0, jsx_runtime_1.jsxs)(material_1.CardContent, { children: [(0, jsx_runtime_1.jsx)(material_1.Skeleton, { animation: "wave", height: 10, width: "80%", className: classes.primaryContent }), (0, jsx_runtime_1.jsx)(material_1.Skeleton, { animation: "wave", height: 10, width: "40%" })] }) })) }) })));
|
|
44
42
|
}
|
|
45
43
|
exports.default = CommentObjectSkeleton;
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const react_1 = require("react");
|
|
6
|
-
const styles_1 = require("@mui/material/styles");
|
|
7
6
|
const Widget_1 = tslib_1.__importDefault(require("../Widget"));
|
|
8
7
|
const react_intl_1 = require("react-intl");
|
|
9
8
|
const material_1 = require("@mui/material");
|
|
@@ -28,7 +27,7 @@ const classes = {
|
|
|
28
27
|
buttonSave: `${PREFIX}-button-save`,
|
|
29
28
|
buttonCancel: `${PREFIX}-button-cancel`
|
|
30
29
|
};
|
|
31
|
-
const Root = (0,
|
|
30
|
+
const Root = (0, material_1.styled)(BaseItem_1.default, {
|
|
32
31
|
name: PREFIX,
|
|
33
32
|
slot: 'Root'
|
|
34
33
|
})(() => ({}));
|
|
@@ -3,16 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const react_1 = require("react");
|
|
6
|
-
const
|
|
6
|
+
const material_1 = require("@mui/material");
|
|
7
7
|
const react_intl_1 = require("react-intl");
|
|
8
8
|
const CommentObject_1 = tslib_1.__importDefault(require("../CommentObject"));
|
|
9
|
-
const material_1 = require("@mui/material");
|
|
10
9
|
const comments_1 = require("../../types/comments");
|
|
11
10
|
const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
12
11
|
const system_1 = require("@mui/system");
|
|
13
12
|
const CommentsObject_1 = tslib_1.__importDefault(require("../CommentsObject"));
|
|
14
13
|
const Errors_1 = require("../../constants/Errors");
|
|
15
|
-
const Typography_1 = tslib_1.__importDefault(require("@mui/material/Typography"));
|
|
16
14
|
const contribution_1 = require("../../utils/contribution");
|
|
17
15
|
const api_services_1 = require("@selfcommunity/api-services");
|
|
18
16
|
const utils_1 = require("@selfcommunity/utils");
|
|
@@ -25,7 +23,7 @@ const classes = {
|
|
|
25
23
|
noComments: `${constants_1.PREFIX}-no-comments`,
|
|
26
24
|
commentNotFound: `${constants_1.PREFIX}-comment-not-found`
|
|
27
25
|
};
|
|
28
|
-
const Root = (0,
|
|
26
|
+
const Root = (0, material_1.styled)(material_1.Box, {
|
|
29
27
|
name: constants_1.PREFIX,
|
|
30
28
|
slot: 'Root'
|
|
31
29
|
})(() => ({}));
|
|
@@ -92,7 +90,7 @@ function CommentsFeedObject(inProps) {
|
|
|
92
90
|
*/
|
|
93
91
|
const renderTitle = (0, react_1.useMemo)(() => () => {
|
|
94
92
|
if (showTitle) {
|
|
95
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
93
|
+
return ((0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "h6", gutterBottom: true, color: 'inherit' }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.commentsObject.title", defaultMessage: "ui.commentsObject.title", values: { total: total } }) })));
|
|
96
94
|
}
|
|
97
95
|
return null;
|
|
98
96
|
}, [total, isLoading]);
|
|
@@ -3,11 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
4
|
const CommentsObject_1 = require("../CommentsObject");
|
|
5
5
|
const constants_1 = require("./constants");
|
|
6
|
-
const
|
|
6
|
+
const material_1 = require("@mui/material");
|
|
7
7
|
const classes = {
|
|
8
8
|
root: `${constants_1.PREFIX}-skeleton-root`
|
|
9
9
|
};
|
|
10
|
-
const Root = (0,
|
|
10
|
+
const Root = (0, material_1.styled)(CommentsObject_1.CommentsObjectSkeleton, {
|
|
11
11
|
name: constants_1.PREFIX,
|
|
12
12
|
slot: 'SkeletonRoot'
|
|
13
13
|
})(() => ({}));
|
|
@@ -3,10 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const react_1 = tslib_1.__importStar(require("react"));
|
|
6
|
-
const styles_1 = require("@mui/material/styles");
|
|
7
6
|
const react_intl_1 = require("react-intl");
|
|
8
7
|
const CommentObject_1 = tslib_1.__importStar(require("../CommentObject"));
|
|
9
|
-
const Typography_1 = tslib_1.__importDefault(require("@mui/material/Typography"));
|
|
10
8
|
const material_1 = require("@mui/material");
|
|
11
9
|
const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
12
10
|
const CustomAdv_1 = tslib_1.__importDefault(require("../CustomAdv"));
|
|
@@ -29,7 +27,7 @@ const classes = {
|
|
|
29
27
|
commentNotFound: `${constants_1.PREFIX}-comment-not-found`,
|
|
30
28
|
noOtherComments: `${constants_1.PREFIX}-no-other-comment`
|
|
31
29
|
};
|
|
32
|
-
const Root = (0,
|
|
30
|
+
const Root = (0, material_1.styled)(material_1.Box, {
|
|
33
31
|
name: constants_1.PREFIX,
|
|
34
32
|
slot: 'Root'
|
|
35
33
|
})(() => ({}));
|
|
@@ -149,7 +147,7 @@ function CommentsObject(inProps) {
|
|
|
149
147
|
{ [paginationLinksPageQueryParam]: nextPage }
|
|
150
148
|
])}`
|
|
151
149
|
: `${scRoutingContext.url((0, contribution_1.getContributionRouteName)(feedObject), (0, contribution_1.getRouteData)(feedObject))}`
|
|
152
|
-
}), { disabled: isLoadingNext, color: "inherit", classes: { root: classes.loadNextCommentsButton } }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.commentsObject.loadMoreComments", defaultMessage: "ui.commentsObject.loadMoreComments" }) })), showCommentsCounter() && ((0, jsx_runtime_1.jsx)(
|
|
150
|
+
}), { disabled: isLoadingNext, color: "inherit", classes: { root: classes.loadNextCommentsButton } }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.commentsObject.loadMoreComments", defaultMessage: "ui.commentsObject.loadMoreComments" }) })), showCommentsCounter() && ((0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body1", classes: { root: classes.commentsCounter } }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.commentsObject.numberOfComments", defaultMessage: "ui.commentsObject.numberOfComments", values: { loaded: totalLoadedComments, total: totalComments } }) })))] })) })), !disablePaginationLinks && nextPage && next && ((0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: `${(0, utils_1.appendURLSearchParams)(scRoutingContext.url((0, contribution_1.getContributionRouteName)(feedObject), (0, contribution_1.getRouteData)(feedObject)), [
|
|
153
151
|
{ [paginationLinksPageQueryParam]: nextPage }
|
|
154
152
|
])}`, className: (0, classnames_1.default)({ [classes.paginationLink]: hidePaginationLinks }) }, PaginationLinkProps, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.commentsObject.nextComments", defaultMessage: "ui.commentsObject.nextComments" }) })))] })) })));
|
|
155
153
|
}
|
|
@@ -2,14 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const styles_1 = require("@mui/material/styles");
|
|
6
5
|
const CommentObject_1 = require("../CommentObject");
|
|
7
6
|
const material_1 = require("@mui/material");
|
|
8
7
|
const constants_1 = require("./constants");
|
|
9
8
|
const classes = {
|
|
10
9
|
root: `${constants_1.PREFIX}-skeleton-root`
|
|
11
10
|
};
|
|
12
|
-
const Root = (0,
|
|
11
|
+
const Root = (0, material_1.styled)(material_1.Box, {
|
|
13
12
|
name: constants_1.PREFIX,
|
|
14
13
|
slot: 'SkeletonRoot'
|
|
15
14
|
})(() => ({}));
|
|
@@ -4,15 +4,13 @@ const tslib_1 = require("tslib");
|
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const react_1 = require("react");
|
|
6
6
|
const material_1 = require("@mui/material");
|
|
7
|
-
const styles_1 = require("@mui/material/styles");
|
|
8
|
-
const Icon_1 = tslib_1.__importDefault(require("@mui/material/Icon"));
|
|
9
7
|
const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
10
8
|
const TagChip_1 = tslib_1.__importDefault(require("../../../shared/TagChip"));
|
|
11
9
|
const constants_1 = require("../constants");
|
|
12
10
|
const classes = {
|
|
13
11
|
root: `${constants_1.PREFIX}-attributes-root`
|
|
14
12
|
};
|
|
15
|
-
const Root = (0,
|
|
13
|
+
const Root = (0, material_1.styled)(material_1.Box, {
|
|
16
14
|
name: constants_1.PREFIX,
|
|
17
15
|
slot: 'AttributesRoot'
|
|
18
16
|
})(() => ({}));
|
|
@@ -52,6 +50,6 @@ exports.default = (props) => {
|
|
|
52
50
|
onClick && onClick('location');
|
|
53
51
|
}, [onClick]);
|
|
54
52
|
return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, { children: [((_a = value === null || value === void 0 ? void 0 : value.categories) === null || _a === void 0 ? void 0 : _a.length) > 0 &&
|
|
55
|
-
(value === null || value === void 0 ? void 0 : value.categories.map((c) => ((0, jsx_runtime_1.jsx)(material_1.Chip, { label: c.name, onDelete: handleDeleteCategory(c.id), icon: (0, jsx_runtime_1.jsx)(
|
|
56
|
-
(value === null || value === void 0 ? void 0 : value.addressing.map((t) => ((0, jsx_runtime_1.jsx)(TagChip_1.default, { tag: t, onDelete: handleDeleteTag(t.id), icon: (0, jsx_runtime_1.jsx)(
|
|
53
|
+
(value === null || value === void 0 ? void 0 : value.categories.map((c) => ((0, jsx_runtime_1.jsx)(material_1.Chip, { label: c.name, onDelete: handleDeleteCategory(c.id), icon: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "category" }), onClick: handleClickCategory }, c.id)))), (value === null || value === void 0 ? void 0 : value.group) && ((0, jsx_runtime_1.jsx)(material_1.Chip, { label: value === null || value === void 0 ? void 0 : value.group.name, onDelete: handleDeleteGroup, icon: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "groups" }), onClick: handleClickGroup, disabled: !((_b = value === null || value === void 0 ? void 0 : value.group) === null || _b === void 0 ? void 0 : _b.subscription_status) }, value === null || value === void 0 ? void 0 : value.group.id)), (value === null || value === void 0 ? void 0 : value.event) && ((0, jsx_runtime_1.jsx)(material_1.Chip, { label: value === null || value === void 0 ? void 0 : value.event.name, onDelete: handleDeleteEvent, icon: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "CalendarIcon" }), onClick: handleClickEvent, disabled: !((_c = value === null || value === void 0 ? void 0 : value.event) === null || _c === void 0 ? void 0 : _c.subscription_status) }, value === null || value === void 0 ? void 0 : value.event.id)), ((_d = value === null || value === void 0 ? void 0 : value.addressing) === null || _d === void 0 ? void 0 : _d.length) > 0 &&
|
|
54
|
+
(value === null || value === void 0 ? void 0 : value.addressing.map((t) => ((0, jsx_runtime_1.jsx)(TagChip_1.default, { tag: t, onDelete: handleDeleteTag(t.id), icon: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "label" }), onClick: handleClickTag }, t.id)))), (value === null || value === void 0 ? void 0 : value.location) && ((0, jsx_runtime_1.jsx)(material_1.Chip, { icon: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "add_location_alt" }), label: value === null || value === void 0 ? void 0 : value.location.location, onDelete: handleDeleteLocation, onClick: handleClickLocation }))] })));
|
|
57
55
|
};
|
|
@@ -7,9 +7,7 @@ const types_1 = require("@selfcommunity/types");
|
|
|
7
7
|
const api_services_1 = require("@selfcommunity/api-services");
|
|
8
8
|
const react_core_1 = require("@selfcommunity/react-core");
|
|
9
9
|
const react_intl_1 = require("react-intl");
|
|
10
|
-
const Icon_1 = tslib_1.__importDefault(require("@mui/material/Icon"));
|
|
11
10
|
const material_1 = require("@mui/material");
|
|
12
|
-
const styles_1 = require("@mui/material/styles");
|
|
13
11
|
const Composer_1 = require("../../constants/Composer");
|
|
14
12
|
const Media_1 = require("../../constants/Media");
|
|
15
13
|
const LoadingButton_1 = tslib_1.__importDefault(require("@mui/lab/LoadingButton"));
|
|
@@ -46,11 +44,11 @@ const classes = {
|
|
|
46
44
|
actions: `${constants_1.PREFIX}-actions`,
|
|
47
45
|
layerTransitionRoot: `${constants_1.PREFIX}-layer-transition-root`
|
|
48
46
|
};
|
|
49
|
-
const Root = (0,
|
|
47
|
+
const Root = (0, material_1.styled)(material_1.Dialog, {
|
|
50
48
|
name: constants_1.PREFIX,
|
|
51
49
|
slot: 'Root'
|
|
52
50
|
})(() => ({}));
|
|
53
|
-
const LayerTransitionRoot = (0,
|
|
51
|
+
const LayerTransitionRoot = (0, material_1.styled)(material_1.Slide, {
|
|
54
52
|
name: constants_1.PREFIX,
|
|
55
53
|
slot: 'LayerTransitionRoot'
|
|
56
54
|
})(({ theme }) => ({}));
|
|
@@ -139,7 +137,7 @@ function Composer(inProps) {
|
|
|
139
137
|
const scUserContext = (0, react_core_1.useSCUser)();
|
|
140
138
|
const { enqueueSnackbar } = (0, notistack_1.useSnackbar)();
|
|
141
139
|
// HOOKS
|
|
142
|
-
const theme = (0,
|
|
140
|
+
const theme = (0, material_1.useTheme)();
|
|
143
141
|
const fullScreen = (0, material_1.useMediaQuery)(theme.breakpoints.down('md'), { noSsr: (0, utils_1.isClientSideRendering)() });
|
|
144
142
|
// State variables
|
|
145
143
|
const [isSubmitting, setIsSubmitting] = (0, react_1.useState)(false);
|
|
@@ -589,7 +587,7 @@ function Composer(inProps) {
|
|
|
589
587
|
if (!scUserContext.user && !(scUserContext.loading && open)) {
|
|
590
588
|
return null;
|
|
591
589
|
}
|
|
592
|
-
return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ ref: dialogRef, TransitionComponent: DialogTransition, slots: { backdrop: BackdropScrollDisabled_1.default }, onClose: handleClose }, rest, { disableEscapeKeyDown: true, className: (0, classnames_1.default)(classes.root, { [classes.ios]: isIOS }), scroll: "body", fullScreen: fullScreen, tabIndex: -1 }, { children: [(0, jsx_runtime_1.jsxs)("form", Object.assign({ onSubmit: handleSubmit, method: "post" }, { children: [(0, jsx_runtime_1.jsxs)(material_1.DialogTitle, Object.assign({ className: classes.title }, { children: [(0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ onClick: handleClosePrompt }, { children: (0, jsx_runtime_1.jsx)(
|
|
590
|
+
return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ ref: dialogRef, TransitionComponent: DialogTransition, slots: { backdrop: BackdropScrollDisabled_1.default }, onClose: handleClose }, rest, { disableEscapeKeyDown: true, className: (0, classnames_1.default)(classes.root, { [classes.ios]: isIOS }), scroll: "body", fullScreen: fullScreen, tabIndex: -1 }, { children: [(0, jsx_runtime_1.jsxs)("form", Object.assign({ onSubmit: handleSubmit, method: "post" }, { children: [(0, jsx_runtime_1.jsxs)(material_1.DialogTitle, Object.assign({ className: classes.title }, { children: [(0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ onClick: handleClosePrompt }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "close" }) })), (0, jsx_runtime_1.jsx)(LoadingButton_1.default, Object.assign({ size: "small", type: "submit", color: "secondary", variant: "contained", disabled: !canSubmit, loading: isSubmitting }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.submit", defaultMessage: "ui.composer.submit" }) }))] })), (0, jsx_runtime_1.jsxs)(material_1.DialogContent, Object.assign({ className: classes.content }, { children: [(0, jsx_runtime_1.jsx)(Attributes_1.default, { value: { categories, event, group, addressing, location }, className: classes.attributes, onChange: handleChangeAttributes, onClick: handleClickAttributes }), content, medias && medias.length > 0 && ((0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ className: classes.medias }, { children: mediaObjectTypes.map((mediaObjectType) => {
|
|
593
591
|
if (mediaObjectType.previewComponent) {
|
|
594
592
|
return (0, jsx_runtime_1.jsx)(mediaObjectType.previewComponent, { value: medias, onChange: handleChangeMedias }, mediaObjectType.name);
|
|
595
593
|
}
|
|
@@ -601,6 +599,6 @@ function Composer(inProps) {
|
|
|
601
599
|
.map((mediaObjectType) => {
|
|
602
600
|
const props = mediaObjectType.layerComponent ? { onClick: handleMediaTriggerClick(mediaObjectType) } : { onAdd: handleAddMedia };
|
|
603
601
|
return ((0, jsx_runtime_1.jsx)(mediaObjectType.triggerButton, Object.assign({ disabled: isSubmitting || hasMediaShare, color: medias.filter(mediaObjectType.filter).length > 0 ? 'primary' : 'default' }, props), mediaObjectType.name));
|
|
604
|
-
}), (0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ disabled: isSubmitting, onClick: handleAddCategoryLayer }, { children: (0, jsx_runtime_1.jsx)(
|
|
602
|
+
}), (0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ disabled: isSubmitting, onClick: handleAddCategoryLayer }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "category" }) })), (0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ disabled: isSubmitting || !features.includes(types_1.SCFeatureName.TAGGING) || Boolean(feedObject === null || feedObject === void 0 ? void 0 : feedObject.group) || Boolean(feedObject === null || feedObject === void 0 ? void 0 : feedObject.event), onClick: handleAddAudienceLayer }, { children: (!group && addressing === null) || (!event && addressing === null) || (addressing === null || addressing === void 0 ? void 0 : addressing.length) === 0 ? ((0, jsx_runtime_1.jsx)(material_1.Icon, { children: "public" })) : group ? ((0, jsx_runtime_1.jsx)(material_1.Icon, { children: "groups" })) : event ? ((0, jsx_runtime_1.jsx)(material_1.Icon, { children: "CalendarIcon" })) : ((0, jsx_runtime_1.jsx)(material_1.Icon, { children: "label" })) })), preferences[react_core_1.SCPreferences.ADDONS_POST_GEOLOCATION_ENABLED].value && ((0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ disabled: isSubmitting, onClick: handleAddLocationLayer, color: location !== null ? 'primary' : 'default' }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "add_location_alt" }) })))] }))] })), layer && ((0, jsx_runtime_1.jsx)(LayerTransitionRoot, Object.assign({ className: classes.layerTransitionRoot, in: true, container: dialogRef.current, direction: "left" }, { children: (0, jsx_runtime_1.jsx)(layer.Component, Object.assign({}, layer.ComponentProps)) })))] })));
|
|
605
603
|
}
|
|
606
604
|
exports.default = Composer;
|