@selfcommunity/react-ui 0.11.0-alpha.65 → 0.11.0-alpha.67
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.d.ts +1 -1
- package/lib/cjs/components/CommentsFeedObject/CommentsFeedObject.js +3 -5
- package/lib/cjs/components/CommentsFeedObject/Skeleton.js +2 -2
- package/lib/cjs/components/CommentsObject/CommentsObject.d.ts +1 -1
- 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.d.ts +1 -1
- 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.d.ts +1 -1
- 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.d.ts +1 -1
- 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.d.ts +1 -1
- 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.d.ts +1 -1
- 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.d.ts +1 -1
- package/lib/esm/components/CommentsFeedObject/CommentsFeedObject.js +1 -3
- package/lib/esm/components/CommentsFeedObject/Skeleton.js +1 -1
- package/lib/esm/components/CommentsObject/CommentsObject.d.ts +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.d.ts +1 -1
- 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.d.ts +1 -1
- 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.d.ts +1 -1
- 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.d.ts +1 -1
- 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.d.ts +1 -1
- 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,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 lab_1 = require("@mui/lab");
|
|
8
7
|
const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
9
8
|
const system_1 = require("@mui/system");
|
|
10
|
-
const Icon_1 = tslib_1.__importDefault(require("@mui/material/Icon"));
|
|
11
9
|
const material_1 = require("@mui/material");
|
|
12
10
|
const react_core_1 = require("@selfcommunity/react-core");
|
|
13
11
|
const react_intl_1 = require("react-intl");
|
|
@@ -21,12 +19,12 @@ const classes = {
|
|
|
21
19
|
reactionList: `${PREFIX}-reaction-list`,
|
|
22
20
|
reaction: `${PREFIX}-reaction`
|
|
23
21
|
};
|
|
24
|
-
const Root = (0,
|
|
22
|
+
const Root = (0, material_1.styled)(lab_1.LoadingButton, {
|
|
25
23
|
name: PREFIX,
|
|
26
24
|
slot: 'Root',
|
|
27
25
|
overridesResolver: (props, styles) => [styles.root, styles.voted]
|
|
28
26
|
})(({ theme }) => ({}));
|
|
29
|
-
const PopperRoot = (0,
|
|
27
|
+
const PopperRoot = (0, material_1.styled)(material_1.Popper, {
|
|
30
28
|
name: PREFIX,
|
|
31
29
|
slot: 'Root',
|
|
32
30
|
overridesResolver: (props, styles) => styles.popperRoot
|
|
@@ -143,9 +141,9 @@ function VoteButton(inProps) {
|
|
|
143
141
|
? handleMouseEnter
|
|
144
142
|
: () => handleVoteAction(contributionReaction ? contributionReaction : reactions.default ? reactions.default : null), disabled: isLoading || Boolean(error), loading: isVoting, className: (0, classnames_1.default)(classes.root, className, {
|
|
145
143
|
[classes.voted]: scUserContext.user && contributionVoted
|
|
146
|
-
}) }, rest, rootProps, { children: scUserContext.user && contributionVoted ? (contributionReaction ? ((0, jsx_runtime_1.jsx)(
|
|
144
|
+
}) }, rest, rootProps, { children: scUserContext.user && contributionVoted ? (contributionReaction ? ((0, jsx_runtime_1.jsx)(material_1.Icon, { children: (0, jsx_runtime_1.jsx)("img", { alt: contributionReaction.label, src: contributionReaction.image, width: "100%", height: "100%" }) })) : ((0, jsx_runtime_1.jsx)(material_1.Icon, { children: "thumb_up" }))) : ((0, jsx_runtime_1.jsx)(material_1.Icon, { children: "thumb_up_off_alt" })) })));
|
|
147
145
|
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [reactions.default ? (button) : ((0, jsx_runtime_1.jsx)(material_1.Tooltip, Object.assign({ title: contributionVoted ? ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.voteButton.voteDown", defaultMessage: "ui.voteButton.voteDown" })) : ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.voteButton.voteUp", defaultMessage: "ui.voteButton.voteUp" })) }, { children: (0, jsx_runtime_1.jsx)("span", { children: button }) }))), reactions.default && Boolean(anchorEl) && !isVoting && !isLoading && ((0, jsx_runtime_1.jsx)(PopperRoot, Object.assign({ id: `vote_${contributionId}_${contributionType}_popper`, className: classes.popperRoot, open: true, anchorEl: anchorEl, placement: "top", keepMounted: true }, { children: (0, jsx_runtime_1.jsx)(material_1.Paper, Object.assign({ className: classes.reactionList, onMouseEnter: handleClearTimeout, onMouseLeave: handleMouseLeave }, { children: reactions.reactions
|
|
148
146
|
.filter((reaction) => !contributionVoted || (contributionVoted && contributionReaction.id !== reaction.id) ? reaction.active : reaction)
|
|
149
|
-
.map((reaction) => ((0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ className: classes.reaction, onClick: () => handleVoteAction(reaction) }, { children: (0, jsx_runtime_1.jsx)(
|
|
147
|
+
.map((reaction) => ((0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ className: classes.reaction, onClick: () => handleVoteAction(reaction) }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: (0, jsx_runtime_1.jsx)("img", { alt: reaction.label, src: reaction.image, width: "100%", height: "100%" }) }) }), reaction.id))) })) })))] }));
|
|
150
148
|
}
|
|
151
149
|
exports.default = VoteButton;
|
|
@@ -3,14 +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
6
|
const material_1 = require("@mui/material");
|
|
8
7
|
const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
9
8
|
const PREFIX = 'SCWidget';
|
|
10
9
|
const classes = {
|
|
11
10
|
root: `${PREFIX}-root`
|
|
12
11
|
};
|
|
13
|
-
const Root = (0,
|
|
12
|
+
const Root = (0, material_1.styled)(material_1.Card, {
|
|
14
13
|
name: PREFIX,
|
|
15
14
|
slot: 'Root',
|
|
16
15
|
overridesResolver: (props, styles) => styles.root
|
|
@@ -7,9 +7,9 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
7
7
|
const react_1 = require("react");
|
|
8
8
|
const react_waypoint_1 = require("react-waypoint");
|
|
9
9
|
const react_player_1 = tslib_1.__importDefault(require("react-player"));
|
|
10
|
-
const
|
|
10
|
+
const material_1 = require("@mui/material");
|
|
11
11
|
const PREFIX = 'SCAutoPlayer';
|
|
12
|
-
const Root = (0,
|
|
12
|
+
const Root = (0, material_1.styled)(react_waypoint_1.Waypoint, {
|
|
13
13
|
name: PREFIX,
|
|
14
14
|
slot: 'Root',
|
|
15
15
|
overridesResolver: (props, styles) => styles.root
|
|
@@ -2,33 +2,25 @@
|
|
|
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
|
-
const Dialog_1 = tslib_1.__importDefault(require("@mui/material/Dialog"));
|
|
7
|
-
const DialogActions_1 = tslib_1.__importDefault(require("@mui/material/DialogActions"));
|
|
8
|
-
const DialogContent_1 = tslib_1.__importDefault(require("@mui/material/DialogContent"));
|
|
9
|
-
const useMediaQuery_1 = tslib_1.__importDefault(require("@mui/material/useMediaQuery"));
|
|
10
5
|
const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
11
6
|
const material_1 = require("@mui/material");
|
|
12
|
-
const DialogTitle_1 = tslib_1.__importDefault(require("@mui/material/DialogTitle"));
|
|
13
|
-
const IconButton_1 = tslib_1.__importDefault(require("@mui/material/IconButton"));
|
|
14
|
-
const Icon_1 = tslib_1.__importDefault(require("@mui/material/Icon"));
|
|
15
7
|
const utils_1 = require("@selfcommunity/utils");
|
|
16
8
|
const PREFIX = 'SCBaseDialog';
|
|
17
9
|
const classes = {
|
|
18
10
|
root: `${PREFIX}-root`,
|
|
19
11
|
titleRoot: `${PREFIX}-title-root`
|
|
20
12
|
};
|
|
21
|
-
const DialogTitleRoot = (0,
|
|
13
|
+
const DialogTitleRoot = (0, material_1.styled)(material_1.DialogTitle, {
|
|
22
14
|
name: PREFIX,
|
|
23
15
|
slot: 'Root',
|
|
24
16
|
overridesResolver: (props, styles) => styles.titleRoot
|
|
25
17
|
})(({ theme }) => ({}));
|
|
26
18
|
const DialogTitle = ({ children = null, onClose = null }) => {
|
|
27
19
|
const theme = (0, material_1.useTheme)();
|
|
28
|
-
const isMobile = (0,
|
|
29
|
-
return ((0, jsx_runtime_1.jsxs)(DialogTitleRoot, Object.assign({ className: classes.titleRoot }, { children: [(0, jsx_runtime_1.jsx)("span", { children: children }), onClose ? ((0, jsx_runtime_1.jsx)(
|
|
20
|
+
const isMobile = (0, material_1.useMediaQuery)(theme.breakpoints.down('md'), { noSsr: (0, utils_1.isClientSideRendering)() });
|
|
21
|
+
return ((0, jsx_runtime_1.jsxs)(DialogTitleRoot, Object.assign({ className: classes.titleRoot }, { children: [(0, jsx_runtime_1.jsx)("span", { children: children }), onClose ? ((0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ "aria-label": "close", onClick: onClose }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: isMobile ? 'arrow_back' : 'close' }) }))) : null] })));
|
|
30
22
|
};
|
|
31
|
-
const Root = (0,
|
|
23
|
+
const Root = (0, material_1.styled)(material_1.Dialog, {
|
|
32
24
|
name: PREFIX,
|
|
33
25
|
slot: 'Root',
|
|
34
26
|
overridesResolver: (props, styles) => styles.root
|
|
@@ -36,13 +28,13 @@ const Root = (0, styles_1.styled)(Dialog_1.default, {
|
|
|
36
28
|
function BaseDialog(props) {
|
|
37
29
|
// OPTIONS
|
|
38
30
|
const theme = (0, material_1.useTheme)();
|
|
39
|
-
const isMobile = (0,
|
|
31
|
+
const isMobile = (0, material_1.useMediaQuery)(theme.breakpoints.down('md'), { noSsr: (0, utils_1.isClientSideRendering)() });
|
|
40
32
|
const fullScreen = isMobile;
|
|
41
33
|
// PROPS
|
|
42
34
|
const { className = '', title = '', subtitle = null, DialogContentProps = { dividers: !isMobile }, open = false, onClose = null, actions = null, children, maxWidth = 'sm', scroll = 'body' } = props, rest = tslib_1.__rest(props, ["className", "title", "subtitle", "DialogContentProps", "open", "onClose", "actions", "children", "maxWidth", "scroll"]);
|
|
43
35
|
/**
|
|
44
36
|
* Renders root object
|
|
45
37
|
*/
|
|
46
|
-
return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className), fullScreen: fullScreen, fullWidth: true, open: open, onClose: onClose, maxWidth: maxWidth, scroll: scroll }, rest, { children: [(0, jsx_runtime_1.jsx)(DialogTitle, Object.assign({ onClose: onClose }, { children: title })), subtitle && subtitle, (0, jsx_runtime_1.jsx)(
|
|
38
|
+
return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className), fullScreen: fullScreen, fullWidth: true, open: open, onClose: onClose, maxWidth: maxWidth, scroll: scroll }, rest, { children: [(0, jsx_runtime_1.jsx)(DialogTitle, Object.assign({ onClose: onClose }, { children: title })), subtitle && subtitle, (0, jsx_runtime_1.jsx)(material_1.DialogContent, Object.assign({}, DialogContentProps, { children: children })), actions && (0, jsx_runtime_1.jsx)(material_1.DialogActions, { children: actions })] })));
|
|
47
39
|
}
|
|
48
40
|
exports.default = BaseDialog;
|
|
@@ -2,7 +2,6 @@
|
|
|
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 material_1 = require("@mui/material");
|
|
7
6
|
const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
8
7
|
const Widget_1 = tslib_1.__importDefault(require("../../components/Widget"));
|
|
@@ -18,7 +17,7 @@ const classes = {
|
|
|
18
17
|
secondary: `${PREFIX}-secondary`,
|
|
19
18
|
actions: `${PREFIX}-actions`
|
|
20
19
|
};
|
|
21
|
-
const Root = (0,
|
|
20
|
+
const Root = (0, material_1.styled)(Widget_1.default, {
|
|
22
21
|
name: PREFIX,
|
|
23
22
|
slot: 'Root',
|
|
24
23
|
overridesResolver: (props, styles) => styles.root
|
|
@@ -2,7 +2,6 @@
|
|
|
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 material_1 = require("@mui/material");
|
|
7
6
|
const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
8
7
|
const Widget_1 = tslib_1.__importDefault(require("../../components/Widget"));
|
|
@@ -18,7 +17,7 @@ const classes = {
|
|
|
18
17
|
secondary: `${PREFIX}-secondary`,
|
|
19
18
|
actions: `${PREFIX}-actions`
|
|
20
19
|
};
|
|
21
|
-
const Root = (0,
|
|
20
|
+
const Root = (0, material_1.styled)(Widget_1.default, {
|
|
22
21
|
name: PREFIX,
|
|
23
22
|
slot: 'Root',
|
|
24
23
|
overridesResolver: (props, styles) => styles.root
|
|
@@ -2,14 +2,14 @@
|
|
|
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
|
|
5
|
+
const material_1 = require("@mui/material");
|
|
6
6
|
const system_1 = require("@mui/system");
|
|
7
7
|
const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
8
8
|
const PREFIX = 'SCBullet';
|
|
9
9
|
const classes = {
|
|
10
10
|
root: `${PREFIX}-root`
|
|
11
11
|
};
|
|
12
|
-
const Root = (0,
|
|
12
|
+
const Root = (0, material_1.styled)('span', {
|
|
13
13
|
name: PREFIX,
|
|
14
14
|
slot: 'Root',
|
|
15
15
|
overridesResolver: (props, styles) => [styles.root]
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { CircularProgressProps } from '@mui/material
|
|
1
|
+
import { CircularProgressProps } from '@mui/material';
|
|
2
2
|
export default function CentralProgress(props: CircularProgressProps): JSX.Element;
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
3
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const CircularProgress_1 = tslib_1.__importDefault(require("@mui/material/CircularProgress"));
|
|
6
|
-
const styles_1 = require("@mui/material/styles");
|
|
7
4
|
const material_1 = require("@mui/material");
|
|
8
5
|
const PREFIX = 'SCCentralProgress';
|
|
9
|
-
const Root = (0,
|
|
6
|
+
const Root = (0, material_1.styled)(material_1.Box, {
|
|
10
7
|
name: PREFIX,
|
|
11
8
|
slot: 'Root',
|
|
12
9
|
overridesResolver: (props, styles) => styles.root
|
|
@@ -18,7 +15,7 @@ const Root = (0, styles_1.styled)(material_1.Box, {
|
|
|
18
15
|
padding: 50
|
|
19
16
|
}));
|
|
20
17
|
function CentralProgress(props) {
|
|
21
|
-
return ((0, jsx_runtime_1.jsx)(Root, { children: (0, jsx_runtime_1.jsx)(
|
|
18
|
+
return ((0, jsx_runtime_1.jsx)(Root, { children: (0, jsx_runtime_1.jsx)(material_1.CircularProgress, Object.assign({ sx: {
|
|
22
19
|
margin: '0 auto',
|
|
23
20
|
display: 'block'
|
|
24
21
|
} }, props)) }));
|
|
@@ -4,12 +4,9 @@ const tslib_1 = require("tslib");
|
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const lab_1 = require("@mui/lab");
|
|
6
6
|
const material_1 = require("@mui/material");
|
|
7
|
-
const Button_1 = tslib_1.__importDefault(require("@mui/material/Button"));
|
|
8
|
-
const Card_1 = tslib_1.__importDefault(require("@mui/material/Card"));
|
|
9
|
-
const styles_1 = require("@mui/material/styles");
|
|
10
7
|
const react_intl_1 = require("react-intl");
|
|
11
8
|
const PREFIX = 'SCConfirmDialog';
|
|
12
|
-
const Root = (0,
|
|
9
|
+
const Root = (0, material_1.styled)(material_1.Card, {
|
|
13
10
|
name: PREFIX,
|
|
14
11
|
slot: 'Root',
|
|
15
12
|
overridesResolver: (props, styles) => styles.root
|
|
@@ -41,6 +38,6 @@ function ConfirmDialog(props) {
|
|
|
41
38
|
/**
|
|
42
39
|
* Renders root object
|
|
43
40
|
*/
|
|
44
|
-
return ((0, jsx_runtime_1.jsx)(Root, { children: (0, jsx_runtime_1.jsxs)(material_1.Dialog, Object.assign({ open: open, onClose: handleClose }, rest, { children: [(0, jsx_runtime_1.jsx)(material_1.DialogTitle, { children: title || (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.confirmDialog.title", defaultMessage: "ui.confirmDialog.title" }) }), content && ((0, jsx_runtime_1.jsx)(material_1.DialogContent, { children: (0, jsx_runtime_1.jsx)(material_1.DialogContentText, Object.assign({ component: "div" }, { children: content })) })), (0, jsx_runtime_1.jsxs)(material_1.DialogActions, { children: [(0, jsx_runtime_1.jsx)(
|
|
41
|
+
return ((0, jsx_runtime_1.jsx)(Root, { children: (0, jsx_runtime_1.jsxs)(material_1.Dialog, Object.assign({ open: open, onClose: handleClose }, rest, { children: [(0, jsx_runtime_1.jsx)(material_1.DialogTitle, { children: title || (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.confirmDialog.title", defaultMessage: "ui.confirmDialog.title" }) }), content && ((0, jsx_runtime_1.jsx)(material_1.DialogContent, { children: (0, jsx_runtime_1.jsx)(material_1.DialogContentText, Object.assign({ component: "div" }, { children: content })) })), (0, jsx_runtime_1.jsxs)(material_1.DialogActions, { children: [(0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ onClick: handleClose }, { children: btnCancel || (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.confirmDialog.btnCancel", defaultMessage: "ui.confirmDialog.btnCancel" }) })), (0, jsx_runtime_1.jsx)(lab_1.LoadingButton, Object.assign({ onClick: handleConfirm, variant: "contained", autoFocus: true, loading: isUpdating }, { children: btnConfirm || (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.confirmDialog.btnConfirm", defaultMessage: "ui.confirmDialog.btnConfirm" }) }))] })] })) }));
|
|
45
42
|
}
|
|
46
43
|
exports.default = ConfirmDialog;
|
|
@@ -2,10 +2,8 @@
|
|
|
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 material_1 = require("@mui/material");
|
|
7
6
|
const system_1 = require("@mui/system");
|
|
8
|
-
const Icon_1 = tslib_1.__importDefault(require("@mui/material/Icon"));
|
|
9
7
|
const PREFIX = 'SCConsentSolutionSwitch';
|
|
10
8
|
const classes = {
|
|
11
9
|
root: `${PREFIX}-root`,
|
|
@@ -14,7 +12,7 @@ const classes = {
|
|
|
14
12
|
thumbUnChecked: `${PREFIX}-thumb-unchecked`,
|
|
15
13
|
thumbLoader: `${PREFIX}-thumb-loader`
|
|
16
14
|
};
|
|
17
|
-
const Root = (0,
|
|
15
|
+
const Root = (0, material_1.styled)(material_1.Switch, {
|
|
18
16
|
name: PREFIX,
|
|
19
17
|
slot: 'Root',
|
|
20
18
|
overridesResolver: (props, styles) => [styles.root]
|
|
@@ -146,9 +144,9 @@ function ConsentSolutionSwitch(inProps) {
|
|
|
146
144
|
// Icon loading state
|
|
147
145
|
const IconLoading = () => ((0, jsx_runtime_1.jsx)("span", Object.assign({ className: classes.thumb }, { children: (0, jsx_runtime_1.jsx)(material_1.CircularProgress, { size: 14, className: classes.thumbLoader }) })));
|
|
148
146
|
// Icon checked state
|
|
149
|
-
const IconChecked = () => ((0, jsx_runtime_1.jsx)("span", Object.assign({ className: classes.thumb }, { children: (0, jsx_runtime_1.jsx)(
|
|
147
|
+
const IconChecked = () => ((0, jsx_runtime_1.jsx)("span", Object.assign({ className: classes.thumb }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, Object.assign({ className: classes.thumbChecked }, { children: "check_outlined" })) })));
|
|
150
148
|
// Icon unchecked state
|
|
151
|
-
const IconUnChecked = () => ((0, jsx_runtime_1.jsx)("span", Object.assign({ className: classes.thumb }, { children: (0, jsx_runtime_1.jsx)(
|
|
149
|
+
const IconUnChecked = () => ((0, jsx_runtime_1.jsx)("span", Object.assign({ className: classes.thumb }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, Object.assign({ className: classes.thumbUnChecked }, { children: "close" })) })));
|
|
152
150
|
return (0, jsx_runtime_1.jsx)(Root, Object.assign({}, rest, { checkedIcon: loading ? (0, jsx_runtime_1.jsx)(IconLoading, {}) : (0, jsx_runtime_1.jsx)(IconChecked, {}), icon: loading ? (0, jsx_runtime_1.jsx)(IconLoading, {}) : (0, jsx_runtime_1.jsx)(IconUnChecked, {}) }));
|
|
153
151
|
}
|
|
154
152
|
exports.default = ConsentSolutionSwitch;
|
|
@@ -3,10 +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 react_intl_1 = require("react-intl");
|
|
8
|
-
const Popper_1 = tslib_1.__importDefault(require("@mui/material/Popper"));
|
|
9
|
-
const Icon_1 = tslib_1.__importDefault(require("@mui/material/Icon"));
|
|
10
7
|
const CentralProgress_1 = tslib_1.__importDefault(require("../CentralProgress"));
|
|
11
8
|
const Errors_1 = require("../../constants/Errors");
|
|
12
9
|
const utils_1 = require("@selfcommunity/utils");
|
|
@@ -36,12 +33,12 @@ const classes = {
|
|
|
36
33
|
sectionWithSelectionIcon: `${PREFIX}-section-with-selection-icon`,
|
|
37
34
|
visibilityIcons: `${PREFIX}-visibility-icons`
|
|
38
35
|
};
|
|
39
|
-
const PopperRoot = (0,
|
|
36
|
+
const PopperRoot = (0, material_1.styled)(material_1.Popper, {
|
|
40
37
|
name: PREFIX,
|
|
41
38
|
slot: 'Root',
|
|
42
39
|
overridesResolver: (props, styles) => styles.popperRoot
|
|
43
40
|
})(() => ({}));
|
|
44
|
-
const Root = (0,
|
|
41
|
+
const Root = (0, material_1.styled)(material_1.Box, {
|
|
45
42
|
name: PREFIX,
|
|
46
43
|
slot: 'Root',
|
|
47
44
|
overridesResolver: (props, styles) => styles.root
|
|
@@ -651,7 +648,7 @@ function ContributionActionsMenu(props) {
|
|
|
651
648
|
: handleDeleteContribution;
|
|
652
649
|
let value = section === ContributionsActionsMenu_1.FLAG_CONTRIBUTION_SECTION ? flagType : section === ContributionsActionsMenu_1.HIDE_CONTRIBUTION_SECTION ? hideType : deleteType;
|
|
653
650
|
return Flagging_1.REPORTS.map((report, index) => {
|
|
654
|
-
return ((0, jsx_runtime_1.jsxs)(material_1.MenuItem, Object.assign({ className: classes.subItem, disabled: isFlagging }, { children: [(0, jsx_runtime_1.jsx)(material_1.ListItemIcon, Object.assign({ classes: { root: classes.selectedIcon } }, { children: value === report && (0, jsx_runtime_1.jsx)(
|
|
651
|
+
return ((0, jsx_runtime_1.jsxs)(material_1.MenuItem, Object.assign({ className: classes.subItem, disabled: isFlagging }, { children: [(0, jsx_runtime_1.jsx)(material_1.ListItemIcon, Object.assign({ classes: { root: classes.selectedIcon } }, { children: value === report && (0, jsx_runtime_1.jsx)(material_1.Icon, Object.assign({ color: "secondary" }, { children: "check" })) })), (0, jsx_runtime_1.jsx)(material_1.ListItemText, { primary: getReportName(report), onClick: () => handlerFunc(report), classes: { root: classes.subItemText } })] }), `${section}_${index}`));
|
|
655
652
|
});
|
|
656
653
|
}
|
|
657
654
|
/**
|
|
@@ -659,21 +656,21 @@ function ContributionActionsMenu(props) {
|
|
|
659
656
|
*/
|
|
660
657
|
function renderFlagContributionSection() {
|
|
661
658
|
const open = openSection === ContributionsActionsMenu_1.FLAG_CONTRIBUTION_SECTION;
|
|
662
|
-
return ((0, jsx_runtime_1.jsx)(material_1.Box, { children: !contributionObj.deleted && !contributionObj.collapsed && ((0, jsx_runtime_1.jsxs)(material_1.Box, { children: [(0, jsx_runtime_1.jsxs)(material_1.MenuItem, Object.assign({ className: classes.subItem, disabled: isFlagging, onClick: () => handleOpenSection(ContributionsActionsMenu_1.FLAG_CONTRIBUTION_SECTION) }, { children: [(0, jsx_runtime_1.jsx)(material_1.ListItemIcon, { children: flagType !== undefined && flagType !== null ? ((0, jsx_runtime_1.jsx)(material_1.Badge, Object.assign({ classes: { badge: classes.sectionBadge }, badgeContent: (0, jsx_runtime_1.jsx)(
|
|
659
|
+
return ((0, jsx_runtime_1.jsx)(material_1.Box, { children: !contributionObj.deleted && !contributionObj.collapsed && ((0, jsx_runtime_1.jsxs)(material_1.Box, { children: [(0, jsx_runtime_1.jsxs)(material_1.MenuItem, Object.assign({ className: classes.subItem, disabled: isFlagging, onClick: () => handleOpenSection(ContributionsActionsMenu_1.FLAG_CONTRIBUTION_SECTION) }, { children: [(0, jsx_runtime_1.jsx)(material_1.ListItemIcon, { children: flagType !== undefined && flagType !== null ? ((0, jsx_runtime_1.jsx)(material_1.Badge, Object.assign({ classes: { badge: classes.sectionBadge }, badgeContent: (0, jsx_runtime_1.jsx)(material_1.Icon, Object.assign({ className: classes.sectionWithSelectionIcon }, { children: "check" })), color: "primary" }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "outlined_flag" }) }))) : ((0, jsx_runtime_1.jsx)(material_1.Icon, { children: "outlined_flag" })) }), (0, jsx_runtime_1.jsx)(material_1.ListItemText, { primary: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.contributionActionMenu.flagContributionWithMotivation", defaultMessage: "ui.contributionActionMenu.flagContributionWithMotivation" }) }), open ? (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "expand_less" }) : (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "expand_more" })] })), (0, jsx_runtime_1.jsxs)(material_1.Collapse, Object.assign({ in: open, timeout: "auto", unmountOnExit: true }, { children: [renderReports(ContributionsActionsMenu_1.FLAG_CONTRIBUTION_SECTION), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: 'caption', component: "div", className: classes.footerSubItems }, { children: intl.formatMessage(messages.footer) }))] }))] })) }));
|
|
663
660
|
}
|
|
664
661
|
/**
|
|
665
662
|
* Renders section hide actions
|
|
666
663
|
*/
|
|
667
664
|
function renderHideContributionSection() {
|
|
668
665
|
const open = openSection === ContributionsActionsMenu_1.HIDE_CONTRIBUTION_SECTION;
|
|
669
|
-
return ((0, jsx_runtime_1.jsx)(material_1.Box, { children: !contributionObj.deleted && ((0, jsx_runtime_1.jsx)(material_1.Box, { children: hideType !== undefined && hideType !== null ? ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsxs)(material_1.MenuItem, Object.assign({ className: classes.subItem, disabled: Boolean(currentAction), onClick: () => handleAction(ContributionsActionsMenu_1.MODERATE_CONTRIBUTION_HIDDEN) }, { children: [(0, jsx_runtime_1.jsx)(material_1.ListItemIcon, { children: (0, jsx_runtime_1.jsx)(
|
|
666
|
+
return ((0, jsx_runtime_1.jsx)(material_1.Box, { children: !contributionObj.deleted && ((0, jsx_runtime_1.jsx)(material_1.Box, { children: hideType !== undefined && hideType !== null ? ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsxs)(material_1.MenuItem, Object.assign({ className: classes.subItem, disabled: Boolean(currentAction), onClick: () => handleAction(ContributionsActionsMenu_1.MODERATE_CONTRIBUTION_HIDDEN) }, { children: [(0, jsx_runtime_1.jsx)(material_1.ListItemIcon, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "restore" }) }), (0, jsx_runtime_1.jsx)(material_1.ListItemText, { primary: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.contributionActionMenu.restoreFromHidden", defaultMessage: "ui.contributionActionMenu.restoreFromHidden" }), ' ', "(", getReportName(hideType), ")"] }) })] })) })) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(material_1.MenuItem, Object.assign({ className: classes.subItem, disabled: Boolean(currentAction), onClick: () => handleOpenSection(ContributionsActionsMenu_1.HIDE_CONTRIBUTION_SECTION) }, { children: [(0, jsx_runtime_1.jsx)(material_1.ListItemIcon, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "hide_image" }) }), (0, jsx_runtime_1.jsx)(material_1.ListItemText, { primary: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.contributionActionMenu.hideContributionWithMotivation", defaultMessage: "ui.contributionActionMenu.hideContributionWithMotivation" }) }), open ? (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "expand_less" }) : (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "expand_more" })] })), (0, jsx_runtime_1.jsx)(material_1.Collapse, Object.assign({ in: open, timeout: "auto", unmountOnExit: true }, { children: renderReports(ContributionsActionsMenu_1.HIDE_CONTRIBUTION_SECTION) }))] })) })) }, ContributionsActionsMenu_1.HIDE_CONTRIBUTION_SECTION));
|
|
670
667
|
}
|
|
671
668
|
/**
|
|
672
669
|
* Renders section hidden actions
|
|
673
670
|
*/
|
|
674
671
|
function renderDeleteContributionSection() {
|
|
675
672
|
const open = openSection === ContributionsActionsMenu_1.DELETE_CONTRIBUTION_SECTION;
|
|
676
|
-
return ((0, jsx_runtime_1.jsx)(material_1.Box, { children: !contributionObj.collapsed && !(contributionObj.deleted && !deleteType) && ((0, jsx_runtime_1.jsx)(material_1.Box, { children: deleteType !== undefined && deleteType !== null ? ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsxs)(material_1.MenuItem, Object.assign({ className: classes.subItem, disabled: Boolean(currentAction), onClick: () => handleAction(ContributionsActionsMenu_1.MODERATE_CONTRIBUTION_DELETED) }, { children: [(0, jsx_runtime_1.jsx)(material_1.ListItemIcon, { children: (0, jsx_runtime_1.jsx)(
|
|
673
|
+
return ((0, jsx_runtime_1.jsx)(material_1.Box, { children: !contributionObj.collapsed && !(contributionObj.deleted && !deleteType) && ((0, jsx_runtime_1.jsx)(material_1.Box, { children: deleteType !== undefined && deleteType !== null ? ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsxs)(material_1.MenuItem, Object.assign({ className: classes.subItem, disabled: Boolean(currentAction), onClick: () => handleAction(ContributionsActionsMenu_1.MODERATE_CONTRIBUTION_DELETED) }, { children: [(0, jsx_runtime_1.jsx)(material_1.ListItemIcon, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "restore_from_trash" }) }), (0, jsx_runtime_1.jsx)(material_1.ListItemText, { primary: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.contributionActionMenu.restoreFromDeleted", defaultMessage: "ui.contributionActionMenu.restoreFromDeleted" }), ' ', "(", getReportName(deleteType), ")"] }) })] })) })) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(material_1.MenuItem, Object.assign({ className: classes.subItem, disabled: Boolean(currentAction), onClick: () => handleOpenSection(ContributionsActionsMenu_1.DELETE_CONTRIBUTION_SECTION) }, { 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)(material_1.ListItemText, { primary: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.contributionActionMenu.deleteContributionWithMotivation", defaultMessage: "ui.contributionActionMenu.deleteContributionWithMotivation" }) }), open ? (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "expand_less" }) : (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "expand_more" })] })), (0, jsx_runtime_1.jsx)(material_1.Collapse, Object.assign({ in: open, timeout: "auto", unmountOnExit: true }, { children: renderReports(ContributionsActionsMenu_1.DELETE_CONTRIBUTION_SECTION) }))] })) })) }, ContributionsActionsMenu_1.DELETE_CONTRIBUTION_SECTION));
|
|
677
674
|
}
|
|
678
675
|
/**
|
|
679
676
|
* Can authenticated user modify the contribution
|
|
@@ -711,7 +708,7 @@ function ContributionActionsMenu(props) {
|
|
|
711
708
|
* Renders section general
|
|
712
709
|
*/
|
|
713
710
|
function renderGeneralSection() {
|
|
714
|
-
return ((0, jsx_runtime_1.jsxs)(material_1.Box, { children: [(0, jsx_runtime_1.jsxs)(material_1.MenuItem, Object.assign({ className: classes.subItem, disabled: isFlagging }, { children: [(0, jsx_runtime_1.jsx)(material_1.ListItemIcon, { children: (0, jsx_runtime_1.jsx)(
|
|
711
|
+
return ((0, jsx_runtime_1.jsxs)(material_1.Box, { children: [(0, jsx_runtime_1.jsxs)(material_1.MenuItem, Object.assign({ className: classes.subItem, disabled: isFlagging }, { children: [(0, jsx_runtime_1.jsx)(material_1.ListItemIcon, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "link" }) }), (0, jsx_runtime_1.jsx)(material_1.ListItemText, { primary: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.contributionActionMenu.permanentLink", defaultMessage: "ui.contributionActionMenu.permanentLink" }), onClick: () => handleAction(ContributionsActionsMenu_1.GET_CONTRIBUTION_PERMALINK), classes: { root: classes.itemText } })] })), canModifyContribution() && ((0, jsx_runtime_1.jsxs)(material_1.MenuItem, Object.assign({ className: classes.subItem, disabled: isFlagging }, { children: [(0, jsx_runtime_1.jsx)(material_1.ListItemIcon, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "edit" }) }), (0, jsx_runtime_1.jsx)(material_1.ListItemText, { primary: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.contributionActionMenu.editContribution", defaultMessage: "ui.contributionActionMenu.editContribution" }), onClick: () => handleAction(ContributionsActionsMenu_1.EDIT_CONTRIBUTION), classes: { root: classes.itemText } })] }))), canDeleteContribution() && ((0, jsx_runtime_1.jsxs)(material_1.MenuItem, Object.assign({ className: classes.subItem, disabled: isFlagging }, { children: [(0, jsx_runtime_1.jsx)(material_1.ListItemIcon, { children: currentActionLoading === ContributionsActionsMenu_1.DELETE_CONTRIBUTION || currentActionLoading === ContributionsActionsMenu_1.RESTORE_CONTRIBUTION ? ((0, jsx_runtime_1.jsx)(material_1.CircularProgress, { size: 20 })) : ((0, jsx_runtime_1.jsx)(material_1.Icon, { children: "delete" })) }), contributionObj.deleted ? ((0, jsx_runtime_1.jsx)(material_1.ListItemText, { primary: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.contributionActionMenu.restoreContribution", defaultMessage: "ui.contributionActionMenu.restoreContribution" }), onClick: () => handleAction(ContributionsActionsMenu_1.RESTORE_CONTRIBUTION), classes: { root: classes.itemText } })) : ((0, jsx_runtime_1.jsx)(material_1.ListItemText, { primary: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.contributionActionMenu.deleteContribution", defaultMessage: "ui.contributionActionMenu.deleteContribution" }), onClick: () => handleAction(ContributionsActionsMenu_1.DELETE_CONTRIBUTION), classes: { root: classes.itemText } }))] }))), canSuspendNotificationContribution() && ((0, jsx_runtime_1.jsxs)(material_1.MenuItem, Object.assign({ className: classes.subItem, disabled: isFlagging }, { children: [(0, jsx_runtime_1.jsx)(material_1.ListItemIcon, { children: currentActionLoading === ContributionsActionsMenu_1.SUSPEND_NOTIFICATION_CONTRIBUTION ? ((0, jsx_runtime_1.jsx)(material_1.CircularProgress, { size: 20 })) : contributionObj['suspended'] ? ((0, jsx_runtime_1.jsx)(material_1.Icon, { children: "notifications_active" })) : ((0, jsx_runtime_1.jsx)(material_1.Icon, { children: "notifications_off" })) }), (0, jsx_runtime_1.jsx)(material_1.ListItemText, { primary: contributionObj['suspended'] ? ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.contributionActionMenu.enableNotificationContribution", defaultMessage: "ui.contributionActionMenu.enableNotificationContribution" })) : ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.contributionActionMenu.suspendNotificationContribution", defaultMessage: "ui.contributionActionMenu.suspendNotificationContribution" })), onClick: () => handleAction(ContributionsActionsMenu_1.SUSPEND_NOTIFICATION_CONTRIBUTION), classes: { root: classes.itemText } })] }))), canSuspendNotificationEvent() && ((0, jsx_runtime_1.jsxs)(material_1.MenuItem, Object.assign({ className: classes.subItem, disabled: isFlagging }, { children: [(0, jsx_runtime_1.jsx)(material_1.ListItemIcon, { children: currentActionLoading === ContributionsActionsMenu_1.SUSPEND_NOTIFICATION_EVENT ? ((0, jsx_runtime_1.jsx)(material_1.CircularProgress, { size: 20 })) : contributionObj.event['show_on_feed'] ? ((0, jsx_runtime_1.jsx)(material_1.Icon, { children: "notifications_active" })) : ((0, jsx_runtime_1.jsx)(material_1.Icon, { children: "notifications_off" })) }), (0, jsx_runtime_1.jsx)(material_1.ListItemText, { primary: !contributionObj.event['show_on_feed'] ? ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.contributionActionMenu.enableNotificationContribution", defaultMessage: "ui.contributionActionMenu.enableNotificationContribution" })) : ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.contributionActionMenu.suspendNotificationContribution", defaultMessage: "ui.contributionActionMenu.suspendNotificationContribution" })), onClick: () => handleAction(ContributionsActionsMenu_1.SUSPEND_NOTIFICATION_EVENT), classes: { root: classes.itemText } })] })))] }, ContributionsActionsMenu_1.GENERAL_SECTION));
|
|
715
712
|
}
|
|
716
713
|
/**
|
|
717
714
|
* Renders contribution menu content
|
|
@@ -730,7 +727,7 @@ function ContributionActionsMenu(props) {
|
|
|
730
727
|
// @ts-ignore
|
|
731
728
|
ref: (ref) => {
|
|
732
729
|
popperRef.current = ref;
|
|
733
|
-
}, "aria-haspopup": "true", onClick: handleOpen, className: classes.button, size: "small" }, { children: contributionObj && (contributionObj.collapsed || contributionObj.deleted) ? ((0, jsx_runtime_1.jsxs)("span", Object.assign({ className: classes.visibilityIcons }, { children: [contributionObj.collapsed ? (0, jsx_runtime_1.jsx)(
|
|
730
|
+
}, "aria-haspopup": "true", onClick: handleOpen, className: classes.button, size: "small" }, { children: contributionObj && (contributionObj.collapsed || contributionObj.deleted) ? ((0, jsx_runtime_1.jsxs)("span", Object.assign({ className: classes.visibilityIcons }, { children: [contributionObj.collapsed ? (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "visibility_off" }) : (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "delete" }), (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "expand_more" })] }))) : ((0, jsx_runtime_1.jsx)(material_1.Icon, { children: "more_vert" })) })), 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: renderContent() }))) : ((0, jsx_runtime_1.jsx)(PopperRoot, Object.assign({ open: true, anchorEl: popperRef.current, role: undefined, transition: true, className: classes.popperRoot }, PopperProps, { placement: "bottom-end" }, { children: ({ TransitionProps, placement }) => ((0, jsx_runtime_1.jsx)(material_1.Grow, Object.assign({}, TransitionProps, { style: { transformOrigin: placement === 'bottom' ? 'center top' : 'center bottom' } }, { children: (0, jsx_runtime_1.jsx)(material_1.Paper, Object.assign({ variant: 'outlined', className: classes.paper }, { children: (0, jsx_runtime_1.jsx)(material_1.ClickAwayListener, Object.assign({ onClickAway: handleClose }, { children: renderContent() })) })) }))) }))) })), openConfirmDialog && ((0, jsx_runtime_1.jsx)(ConfirmDialog_1.default, Object.assign({ open: openConfirmDialog }, (currentAction === ContributionsActionsMenu_1.DELETE_CONTRIBUTION
|
|
734
731
|
? {
|
|
735
732
|
content: ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.contributionActionMenu.deleteContributionInfo", defaultMessage: "ui.contributionActionMenu.deleteContributionInfo" }))
|
|
736
733
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { BaseTextFieldProps } from '@mui/material
|
|
2
|
+
import { BaseTextFieldProps } from '@mui/material';
|
|
3
3
|
export interface CopyTextFieldProps extends BaseTextFieldProps {
|
|
4
4
|
className?: string;
|
|
5
5
|
onChange?: (value: string) => void;
|
|
@@ -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 material_1 = require("@mui/material");
|
|
8
7
|
const system_1 = require("@mui/system");
|
|
9
8
|
const react_intl_1 = require("react-intl");
|
|
@@ -13,7 +12,7 @@ const classes = {
|
|
|
13
12
|
root: `${PREFIX}-root`,
|
|
14
13
|
btnCopy: `${PREFIX}-btn-copy`
|
|
15
14
|
};
|
|
16
|
-
const Root = (0,
|
|
15
|
+
const Root = (0, material_1.styled)(material_1.TextField, {
|
|
17
16
|
name: PREFIX,
|
|
18
17
|
slot: 'Root',
|
|
19
18
|
overridesResolver: (props, styles) => styles.root
|
|
@@ -4,9 +4,7 @@ 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 notistack_1 = require("notistack");
|
|
7
|
-
const styles_1 = require("@mui/material/styles");
|
|
8
7
|
const material_1 = require("@mui/material");
|
|
9
|
-
const Icon_1 = tslib_1.__importDefault(require("@mui/material/Icon"));
|
|
10
8
|
const Widget_1 = tslib_1.__importDefault(require("../../components/Widget"));
|
|
11
9
|
const PREFIX = 'SCCustomSnackMessage';
|
|
12
10
|
const classes = {
|
|
@@ -15,7 +13,7 @@ const classes = {
|
|
|
15
13
|
content: `${PREFIX}-content`,
|
|
16
14
|
close: `${PREFIX}-close`
|
|
17
15
|
};
|
|
18
|
-
const Root = (0,
|
|
16
|
+
const Root = (0, material_1.styled)(notistack_1.SnackbarContent, {
|
|
19
17
|
name: PREFIX,
|
|
20
18
|
slot: 'Root',
|
|
21
19
|
overridesResolver: (props, styles) => styles.root
|
|
@@ -33,6 +31,6 @@ const CustomSnackMessage = (0, react_1.forwardRef)((props, ref) => {
|
|
|
33
31
|
const handleDismiss = (0, react_1.useCallback)(() => {
|
|
34
32
|
closeSnackbar(props.id);
|
|
35
33
|
}, [props.id, closeSnackbar]);
|
|
36
|
-
return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ ref: ref, className: classes.root }, { children: (0, jsx_runtime_1.jsx)(Widget_1.default, Object.assign({ className: classes.card }, { children: (0, jsx_runtime_1.jsxs)(material_1.CardContent, Object.assign({ className: classes.content }, { children: [(0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ className: classes.close, onClick: handleDismiss }, { children: (0, jsx_runtime_1.jsx)(
|
|
34
|
+
return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ ref: ref, className: classes.root }, { children: (0, jsx_runtime_1.jsx)(Widget_1.default, Object.assign({ className: classes.card }, { children: (0, jsx_runtime_1.jsxs)(material_1.CardContent, Object.assign({ className: classes.content }, { children: [(0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ className: classes.close, onClick: handleDismiss }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "close" }) })), props.message] })) })) }), props.id));
|
|
37
35
|
});
|
|
38
36
|
exports.default = CustomSnackMessage;
|
|
@@ -2,9 +2,7 @@
|
|
|
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 material_1 = require("@mui/material");
|
|
7
|
-
const Icon_1 = tslib_1.__importDefault(require("@mui/material/Icon"));
|
|
8
6
|
const react_intl_1 = require("react-intl");
|
|
9
7
|
const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
10
8
|
const formatRelativeTime_1 = require("../../utils/formatRelativeTime");
|
|
@@ -12,7 +10,7 @@ const PREFIX = 'SCDateTimeAgo';
|
|
|
12
10
|
const classes = {
|
|
13
11
|
root: `${PREFIX}-root`
|
|
14
12
|
};
|
|
15
|
-
const Root = (0,
|
|
13
|
+
const Root = (0, material_1.styled)(material_1.Box, {
|
|
16
14
|
name: PREFIX,
|
|
17
15
|
slot: 'Root',
|
|
18
16
|
overridesResolver: (props, styles) => [styles.root]
|
|
@@ -39,7 +37,7 @@ function DateTimeAgo(props) {
|
|
|
39
37
|
*/
|
|
40
38
|
if (date) {
|
|
41
39
|
const formattedDate = (0, formatRelativeTime_1.getRelativeTime)(date);
|
|
42
|
-
return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ component: "span", className: (0, classnames_1.default)(classes.root, className) }, rest, { children: [showStartIcon && (0, jsx_runtime_1.jsx)(
|
|
40
|
+
return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ component: "span", className: (0, classnames_1.default)(classes.root, className) }, rest, { children: [showStartIcon && (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "access_time" }), (0, jsx_runtime_1.jsx)(material_1.Tooltip, Object.assign({ title: `${intl.formatDate(date, { year: 'numeric', month: 'numeric', day: 'numeric', hour: 'numeric', minute: 'numeric' })}`, enterTouchDelay: 0 }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: 'body2', component: 'span' }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedRelativeTime, { value: -formattedDate.value, unit: formattedDate.unit, numeric: "auto" }) })) }))] })));
|
|
43
41
|
}
|
|
44
42
|
return null;
|
|
45
43
|
}
|
|
@@ -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 material_1 = require("@mui/material");
|
|
8
7
|
const react_intl_1 = require("react-intl");
|
|
9
8
|
const Account_1 = require("../../constants/Account");
|
|
@@ -14,7 +13,7 @@ const messages = (0, react_intl_1.defineMessages)({
|
|
|
14
13
|
}
|
|
15
14
|
});
|
|
16
15
|
const PREFIX = 'SCEmailTextField';
|
|
17
|
-
const Root = (0,
|
|
16
|
+
const Root = (0, material_1.styled)(material_1.TextField, {
|
|
18
17
|
name: PREFIX,
|
|
19
18
|
slot: 'Root',
|
|
20
19
|
overridesResolver: (props, styles) => styles.root
|
|
@@ -2,7 +2,6 @@
|
|
|
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 material_1 = require("@mui/material");
|
|
7
6
|
const emoji_picker_react_1 = require("emoji-picker-react");
|
|
8
7
|
const system_1 = require("@mui/system");
|
|
@@ -17,7 +16,7 @@ const PREFIX = 'SCEmojiPicker';
|
|
|
17
16
|
const classes = {
|
|
18
17
|
root: `${PREFIX}-root`
|
|
19
18
|
};
|
|
20
|
-
const Root = (0,
|
|
19
|
+
const Root = (0, material_1.styled)(material_1.Box, {
|
|
21
20
|
name: PREFIX,
|
|
22
21
|
slot: 'Root',
|
|
23
22
|
overridesResolver: (props, styles) => styles.root
|
|
@@ -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 material_1 = require("@mui/material");
|
|
6
|
-
const Icon_1 = tslib_1.__importDefault(require("@mui/material/Icon"));
|
|
7
|
-
const styles_1 = require("@mui/material/styles");
|
|
8
6
|
const system_1 = require("@mui/system");
|
|
9
7
|
const api_services_1 = require("@selfcommunity/api-services");
|
|
10
8
|
const react_core_1 = require("@selfcommunity/react-core");
|
|
@@ -27,15 +25,15 @@ const classes = {
|
|
|
27
25
|
paper: `${PREFIX}-paper`,
|
|
28
26
|
item: `${PREFIX}-item`
|
|
29
27
|
};
|
|
30
|
-
const Root = (0,
|
|
28
|
+
const Root = (0, material_1.styled)(material_1.IconButton, {
|
|
31
29
|
name: PREFIX,
|
|
32
30
|
slot: 'Root'
|
|
33
31
|
})(() => ({}));
|
|
34
|
-
const SwipeableDrawerRoot = (0,
|
|
32
|
+
const SwipeableDrawerRoot = (0, material_1.styled)(material_1.SwipeableDrawer, {
|
|
35
33
|
name: PREFIX,
|
|
36
34
|
slot: 'DrawerRoot'
|
|
37
35
|
})(() => ({}));
|
|
38
|
-
const MenuRoot = (0,
|
|
36
|
+
const MenuRoot = (0, material_1.styled)(material_1.Menu, {
|
|
39
37
|
name: PREFIX,
|
|
40
38
|
slot: 'MenuRoot'
|
|
41
39
|
})(() => ({}));
|
|
@@ -154,19 +152,19 @@ function EventActionsMenu(inProps) {
|
|
|
154
152
|
*/
|
|
155
153
|
const renderList = () => {
|
|
156
154
|
return [
|
|
157
|
-
(0, jsx_runtime_1.jsxs)(material_1.MenuItem, Object.assign({ className: classes.item, onClick: () => handleAction(EventActionsMenu_1.GET_EVENT_LINK) }, { children: [(0, jsx_runtime_1.jsx)(material_1.ListItemIcon, { children: (0, jsx_runtime_1.jsx)(
|
|
158
|
-
!isEventFinished && ((0, jsx_runtime_1.jsxs)(material_1.MenuItem, Object.assign({ className: classes.item, onClick: () => handleAction(EventActionsMenu_1.ADD_EVENT_TO_CALENDAR) }, { children: [(0, jsx_runtime_1.jsx)(material_1.ListItemIcon, { children: (0, jsx_runtime_1.jsx)(
|
|
155
|
+
(0, jsx_runtime_1.jsxs)(material_1.MenuItem, Object.assign({ className: classes.item, onClick: () => handleAction(EventActionsMenu_1.GET_EVENT_LINK) }, { children: [(0, jsx_runtime_1.jsx)(material_1.ListItemIcon, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "link" }) }), (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.shared.eventActionsMenu.item.link", defaultMessage: "ui.shared.eventActionsMenu.item.link" })] }), "link"),
|
|
156
|
+
!isEventFinished && ((0, jsx_runtime_1.jsxs)(material_1.MenuItem, Object.assign({ className: classes.item, onClick: () => handleAction(EventActionsMenu_1.ADD_EVENT_TO_CALENDAR) }, { children: [(0, jsx_runtime_1.jsx)(material_1.ListItemIcon, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "CalendarIcon" }) }), (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.shared.eventActionsMenu.item.calendar", defaultMessage: "ui.shared.eventActionsMenu.item.calendar" })] }), "calendar")),
|
|
159
157
|
isEventAdmin &&
|
|
160
158
|
!isEventFinished && [
|
|
161
159
|
(0, jsx_runtime_1.jsx)(material_1.Divider, {}, "divider"),
|
|
162
|
-
isMobile && ((0, jsx_runtime_1.jsxs)(material_1.MenuItem, Object.assign({ className: classes.item, onClick: handleEditClick }, { children: [(0, jsx_runtime_1.jsx)(material_1.ListItemIcon, { children: (0, jsx_runtime_1.jsx)(
|
|
163
|
-
(0, jsx_runtime_1.jsxs)(material_1.MenuItem, Object.assign({ className: classes.item, onClick: () => handleAction(EventActionsMenu_1.CANCEL_EVENT) }, { children: [(0, jsx_runtime_1.jsx)(material_1.ListItemIcon, { children: (0, jsx_runtime_1.jsx)(
|
|
160
|
+
isMobile && ((0, jsx_runtime_1.jsxs)(material_1.MenuItem, Object.assign({ className: classes.item, onClick: handleEditClick }, { children: [(0, jsx_runtime_1.jsx)(material_1.ListItemIcon, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "edit" }) }), (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.shared.eventActionsMenu.item.edit", defaultMessage: "ui.shared.eventActionsMenu.item.edit" })] }), "edit")),
|
|
161
|
+
(0, jsx_runtime_1.jsxs)(material_1.MenuItem, Object.assign({ className: classes.item, onClick: () => handleAction(EventActionsMenu_1.CANCEL_EVENT) }, { children: [(0, jsx_runtime_1.jsx)(material_1.ListItemIcon, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "close" }) }), (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.shared.eventActionsMenu.item.cancel", defaultMessage: "ui.shared.eventActionsMenu.item.cancel" })] }), "cancel")
|
|
164
162
|
]
|
|
165
163
|
];
|
|
166
164
|
};
|
|
167
165
|
if (!scEvent) {
|
|
168
166
|
return null;
|
|
169
167
|
}
|
|
170
|
-
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) }, rest, { onClick: handleOpen }, { children: (0, jsx_runtime_1.jsx)(
|
|
168
|
+
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) }, rest, { onClick: handleOpen }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "more_vert" }) })), isMobile ? ((0, jsx_runtime_1.jsx)(SwipeableDrawerRoot, Object.assign({ className: classes.drawerRoot, anchor: "bottom", open: Boolean(anchorEl), onClose: handleClose, onOpen: handleOpen, PaperProps: { className: classes.paper }, disableSwipeToOpen: true }, { children: (0, jsx_runtime_1.jsx)(material_1.List, { children: renderList() }) }))) : ((0, jsx_runtime_1.jsx)(MenuRoot, Object.assign({ className: classes.menuRoot, anchorEl: anchorEl, open: Boolean(anchorEl), onClose: handleClose, PaperProps: { className: classes.paper } }, { children: renderList() }))), openConfirmDialog && ((0, jsx_runtime_1.jsx)(ConfirmDialog_1.default, { open: openConfirmDialog, title: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.shared.eventActionsMenu.dialog.msg", defaultMessage: "ui.shared.eventActionsMenu.dialog.msg" }), btnConfirm: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.shared.eventActionsMenu.dialog.confirm", defaultMessage: "ui.shared.eventActionsMenu.dialog.confirm" }), onConfirm: handleDeleteThread, onClose: handleCloseDialog })), openEdit && (0, jsx_runtime_1.jsx)(EventForm_1.default, { onClose: handleEditClick, event: scEvent, onSuccess: handleEditSuccess })] }));
|
|
171
169
|
}
|
|
172
170
|
exports.default = EventActionsMenu;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
-
const
|
|
4
|
+
const material_1 = require("@mui/material");
|
|
5
5
|
const PREFIX = 'SCHiddenPlaceholder';
|
|
6
|
-
const Root = (0,
|
|
6
|
+
const Root = (0, material_1.styled)('div', {
|
|
7
7
|
name: PREFIX,
|
|
8
8
|
slot: 'Root',
|
|
9
9
|
overridesResolver: (props, styles) => [styles.root]
|