@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
|
@@ -1,6 +1,5 @@
|
|
|
1
|
+
import { SelectProps, TypographyProps } from '@mui/material';
|
|
1
2
|
import { SCLanguageType } from '@selfcommunity/types';
|
|
2
|
-
import { SelectProps } from '@mui/material/Select/Select';
|
|
3
|
-
import { TypographyProps } from '@mui/material/Typography/Typography';
|
|
4
3
|
export interface LanguageSwitcherProps {
|
|
5
4
|
/**
|
|
6
5
|
* Overrides or extends the styles applied to the component.
|
|
@@ -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 system_1 = require("@mui/system");
|
|
8
7
|
const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
9
8
|
const material_1 = require("@mui/material");
|
|
@@ -16,7 +15,7 @@ const classes = {
|
|
|
16
15
|
root: `${PREFIX}-root`,
|
|
17
16
|
label: `${PREFIX}-label`
|
|
18
17
|
};
|
|
19
|
-
const Root = (0,
|
|
18
|
+
const Root = (0, material_1.styled)(material_1.FormControl, {
|
|
20
19
|
name: PREFIX,
|
|
21
20
|
slot: 'Root',
|
|
22
21
|
overridesResolver: (props, styles) => [styles.root]
|
|
@@ -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");
|
|
@@ -28,12 +25,12 @@ const classes = {
|
|
|
28
25
|
itemText: `${PREFIX}-item-text`,
|
|
29
26
|
subItem: `${PREFIX}-sub-item`
|
|
30
27
|
};
|
|
31
|
-
const PopperRoot = (0,
|
|
28
|
+
const PopperRoot = (0, material_1.styled)(material_1.Popper, {
|
|
32
29
|
name: PREFIX,
|
|
33
30
|
slot: 'Root',
|
|
34
31
|
overridesResolver: (props, styles) => styles.popperRoot
|
|
35
32
|
})(() => ({}));
|
|
36
|
-
const Root = (0,
|
|
33
|
+
const Root = (0, material_1.styled)(material_1.Box, {
|
|
37
34
|
name: PREFIX,
|
|
38
35
|
slot: 'Root',
|
|
39
36
|
overridesResolver: (props, styles) => styles.root
|
|
@@ -179,7 +176,7 @@ function LessonCommentActionsMenu(props) {
|
|
|
179
176
|
* Renders comment menu content
|
|
180
177
|
*/
|
|
181
178
|
function renderContent() {
|
|
182
|
-
return ((0, jsx_runtime_1.jsx)(material_1.Box, { children: !commentObj ? ((0, jsx_runtime_1.jsx)(CentralProgress_1.default, { size: 30 })) : ((0, jsx_runtime_1.jsxs)(material_1.MenuList, { children: [canModifyContribution() && ((0, jsx_runtime_1.jsxs)(material_1.MenuItem, Object.assign({ className: classes.subItem }, { children: [(0, jsx_runtime_1.jsx)(material_1.ListItemIcon, { children: (0, jsx_runtime_1.jsx)(
|
|
179
|
+
return ((0, jsx_runtime_1.jsx)(material_1.Box, { children: !commentObj ? ((0, jsx_runtime_1.jsx)(CentralProgress_1.default, { size: 30 })) : ((0, jsx_runtime_1.jsxs)(material_1.MenuList, { children: [canModifyContribution() && ((0, jsx_runtime_1.jsxs)(material_1.MenuItem, Object.assign({ className: classes.subItem }, { 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.lessonCommentActionMenu.edit", defaultMessage: "ui.lessonCommentActionMenu.edit" }), onClick: () => handleAction(EDIT_COMMENT), classes: { root: classes.itemText } })] }))), canDeleteContribution() && ((0, jsx_runtime_1.jsxs)(material_1.MenuItem, Object.assign({ className: classes.subItem }, { children: [(0, jsx_runtime_1.jsx)(material_1.ListItemIcon, { children: currentActionLoading === DELETE_COMMENT ? (0, jsx_runtime_1.jsx)(material_1.CircularProgress, { size: 20 }) : (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.lessonCommentActionMenu.delete", defaultMessage: "ui.lessonCommentActionMenu.delete" }), onClick: () => handleAction(DELETE_COMMENT), classes: { root: classes.itemText } })] })))] })) }));
|
|
183
180
|
}
|
|
184
181
|
/**
|
|
185
182
|
* Renders component
|
|
@@ -192,6 +189,6 @@ function LessonCommentActionsMenu(props) {
|
|
|
192
189
|
// @ts-ignore
|
|
193
190
|
ref: (ref) => {
|
|
194
191
|
popperRef.current = ref;
|
|
195
|
-
}, "aria-haspopup": "true", onClick: handleOpen, className: classes.button, size: "small" }, { children: (0, jsx_runtime_1.jsx)(
|
|
192
|
+
}, "aria-haspopup": "true", onClick: handleOpen, className: classes.button, size: "small" }, { children: (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, { open: openConfirmDialog, onConfirm: handleConfirmedAction, isUpdating: Boolean(currentActionLoading), onClose: () => setOpenConfirmDialog(false) }))] })));
|
|
196
193
|
}
|
|
197
194
|
exports.default = LessonCommentActionsMenu;
|
|
@@ -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 classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
7
6
|
const material_1 = require("@mui/material");
|
|
8
|
-
const Icon_1 = tslib_1.__importDefault(require("@mui/material/Icon"));
|
|
9
7
|
const Media_1 = require("../../constants/Media");
|
|
10
8
|
const PREFIX = 'SCLessonFilePreview';
|
|
11
9
|
const classes = {
|
|
@@ -13,7 +11,7 @@ const classes = {
|
|
|
13
11
|
item: `${PREFIX}-item`,
|
|
14
12
|
title: `${PREFIX}-title`
|
|
15
13
|
};
|
|
16
|
-
const Root = (0,
|
|
14
|
+
const Root = (0, material_1.styled)(material_1.Box, {
|
|
17
15
|
name: PREFIX,
|
|
18
16
|
slot: 'Root',
|
|
19
17
|
overridesResolver: (props, styles) => styles.root
|
|
@@ -24,6 +22,6 @@ function LessonFilePreview(props) {
|
|
|
24
22
|
/**
|
|
25
23
|
* Renders component
|
|
26
24
|
*/
|
|
27
|
-
return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className), sx: { backgroundImage: `url(${(media === null || media === void 0 ? void 0 : media.image_thumbnail) ? media.image_thumbnail.url : media.image})` } }, { children: media.title && ((0, jsx_runtime_1.jsx)(material_1.Link, Object.assign({ href: media.url, target: "_blank", rel: "noopener noreferrer" }, { children: (0, jsx_runtime_1.jsxs)(material_1.Typography, Object.assign({ className: classes.title }, { children: [media.type === Media_1.MEDIA_TYPE_DOCUMENT && (0, jsx_runtime_1.jsx)(
|
|
25
|
+
return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className), sx: { backgroundImage: `url(${(media === null || media === void 0 ? void 0 : media.image_thumbnail) ? media.image_thumbnail.url : media.image})` } }, { children: media.title && ((0, jsx_runtime_1.jsx)(material_1.Link, Object.assign({ href: media.url, target: "_blank", rel: "noopener noreferrer" }, { children: (0, jsx_runtime_1.jsxs)(material_1.Typography, Object.assign({ className: classes.title }, { children: [media.type === Media_1.MEDIA_TYPE_DOCUMENT && (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "picture_as_pdf" }), media.title] })) }))) }), media.id));
|
|
28
26
|
}
|
|
29
27
|
exports.default = LessonFilePreview;
|
|
@@ -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 material_1 = require("@mui/material");
|
|
6
|
-
const styles_1 = require("@mui/material/styles");
|
|
7
6
|
const react_1 = require("react");
|
|
8
7
|
const react_photo_view_1 = require("react-photo-view");
|
|
9
8
|
const constants_1 = require("./constants");
|
|
10
9
|
const classes = {
|
|
11
10
|
root: `${constants_1.PREFIX}-root`
|
|
12
11
|
};
|
|
13
|
-
const Root = (0,
|
|
12
|
+
const Root = (0, material_1.styled)(react_photo_view_1.PhotoSlider, {
|
|
14
13
|
name: constants_1.PREFIX,
|
|
15
14
|
slot: 'Root',
|
|
16
15
|
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 react_1 = require("react");
|
|
7
7
|
const BaseLightbox_1 = tslib_1.__importDefault(require("./BaseLightbox"));
|
|
8
8
|
const constants_1 = require("./constants");
|
|
9
9
|
const classes = {
|
|
10
10
|
root: `${constants_1.PREFIX}-lightbox-root`
|
|
11
11
|
};
|
|
12
|
-
const Root = (0,
|
|
12
|
+
const Root = (0, material_1.styled)(BaseLightbox_1.default, {
|
|
13
13
|
name: constants_1.PREFIX,
|
|
14
14
|
slot: 'LightboxRoot'
|
|
15
15
|
})(() => ({}));
|
|
@@ -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 react_core_1 = require("@selfcommunity/react-core");
|
|
9
7
|
const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
10
8
|
const Media_1 = require("../../../constants/Media");
|
|
@@ -29,7 +27,7 @@ const classes = {
|
|
|
29
27
|
title: `${constants_1.PREFIX}-title`,
|
|
30
28
|
iconFile: `${constants_1.PREFIX}-icon-file`
|
|
31
29
|
};
|
|
32
|
-
const Root = (0,
|
|
30
|
+
const Root = (0, material_1.styled)(material_1.Box, {
|
|
33
31
|
name: constants_1.PREFIX,
|
|
34
32
|
slot: 'DisplayRoot'
|
|
35
33
|
})(({}) => ({}));
|
|
@@ -72,10 +70,10 @@ exports.default = (props) => {
|
|
|
72
70
|
if (o.type) {
|
|
73
71
|
switch (o.type) {
|
|
74
72
|
case 'doc':
|
|
75
|
-
startAdornment = (0, jsx_runtime_1.jsx)(
|
|
73
|
+
startAdornment = (0, jsx_runtime_1.jsx)(material_1.Icon, Object.assign({ className: classes.iconFile }, { children: "picture_as_pdf" }));
|
|
76
74
|
break;
|
|
77
75
|
default:
|
|
78
|
-
startAdornment = (0, jsx_runtime_1.jsx)(
|
|
76
|
+
startAdornment = (0, jsx_runtime_1.jsx)(material_1.Icon, Object.assign({ className: classes.iconFile }, { children: "insert_drive_file" }));
|
|
79
77
|
break;
|
|
80
78
|
}
|
|
81
79
|
}
|
|
@@ -107,7 +105,7 @@ exports.default = (props) => {
|
|
|
107
105
|
}
|
|
108
106
|
return [
|
|
109
107
|
(0, jsx_runtime_1.jsx)("div", { className: (0, classnames_1.default)(classes.cover, classes.slide) }, `cover-${id}`),
|
|
110
|
-
(0, jsx_runtime_1.jsx)("div", Object.assign({ className: (0, classnames_1.default)(classes.coverText, classes.slide, 'animate-text'), style: { fontSize: '100%' } }, { children: (0, jsx_runtime_1.jsx)(
|
|
108
|
+
(0, jsx_runtime_1.jsx)("div", Object.assign({ className: (0, classnames_1.default)(classes.coverText, classes.slide, 'animate-text'), style: { fontSize: '100%' } }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "zoom_out_map" }) }), `cover-text-${id}`)
|
|
111
109
|
];
|
|
112
110
|
};
|
|
113
111
|
const renderCountOverlay = (more) => {
|
|
@@ -119,7 +117,7 @@ exports.default = (props) => {
|
|
|
119
117
|
};
|
|
120
118
|
const handleIndexChange = (0, react_1.useCallback)((index) => {
|
|
121
119
|
if (_medias[index].type === Media_1.MEDIA_TYPE_DOCUMENT) {
|
|
122
|
-
setToolbarButtons((0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ component: react_core_1.Link, to: medias[index].url, target: "_blank", color: "inherit" }, { children: (0, jsx_runtime_1.jsx)(
|
|
120
|
+
setToolbarButtons((0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ component: react_core_1.Link, to: medias[index].url, target: "_blank", color: "inherit" }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "download" }) })));
|
|
123
121
|
}
|
|
124
122
|
else {
|
|
125
123
|
setToolbarButtons(undefined);
|
|
@@ -4,8 +4,6 @@ const tslib_1 = require("tslib");
|
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const react_1 = tslib_1.__importStar(require("react"));
|
|
6
6
|
const material_1 = require("@mui/material");
|
|
7
|
-
const styles_1 = require("@mui/material/styles");
|
|
8
|
-
const Icon_1 = tslib_1.__importDefault(require("@mui/material/Icon"));
|
|
9
7
|
const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
10
8
|
const react_sortablejs_1 = require("react-sortablejs");
|
|
11
9
|
const constants_1 = require("./constants");
|
|
@@ -17,7 +15,7 @@ const classes = {
|
|
|
17
15
|
delete: `${constants_1.PREFIX}-delete`,
|
|
18
16
|
title: `${constants_1.PREFIX}-title`
|
|
19
17
|
};
|
|
20
|
-
const Root = (0,
|
|
18
|
+
const Root = (0, material_1.styled)(material_1.Box, {
|
|
21
19
|
name: constants_1.PREFIX,
|
|
22
20
|
slot: 'PreviewRoot'
|
|
23
21
|
})(() => ({}));
|
|
@@ -46,7 +44,7 @@ const PreviewComponent = react_1.default.forwardRef((props, ref) => {
|
|
|
46
44
|
}, [onChange, value]);
|
|
47
45
|
const handleDelete = (0, react_1.useCallback)((id) => () => onChange && onChange(value.filter((media) => media.id !== id)), [onChange, value]);
|
|
48
46
|
// RENDER
|
|
49
|
-
const mediaElements = (0, react_1.useMemo)(() => medias.map((media) => ((0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ className: classes.media, sx: { backgroundImage: `url(${(media === null || media === void 0 ? void 0 : media.image_thumbnail) ? media.image_thumbnail.url : media.image})` } }, { children: [(0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ className: classes.delete, onClick: handleDelete(media.id), size: "small" }, { children: (0, jsx_runtime_1.jsx)(
|
|
47
|
+
const mediaElements = (0, react_1.useMemo)(() => medias.map((media) => ((0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ className: classes.media, sx: { backgroundImage: `url(${(media === null || media === void 0 ? void 0 : media.image_thumbnail) ? media.image_thumbnail.url : media.image})` } }, { children: [(0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ className: classes.delete, onClick: handleDelete(media.id), size: "small" }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "delete" }) })), media.title && ((0, jsx_runtime_1.jsxs)(material_1.Typography, Object.assign({ className: classes.title }, { children: [media.type === Media_1.MEDIA_TYPE_DOCUMENT && (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "picture_as_pdf" }), media.title] })))] }), media.id))), [medias]);
|
|
50
48
|
return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ ref: ref, className: (0, classnames_1.default)(className, classes.previewRoot) }, rest, { children: medias.length > 0 &&
|
|
51
49
|
(isMobile ? ((0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ id: SORTABLE_ID }, { children: mediaElements }))) : ((0, jsx_runtime_1.jsx)(react_sortablejs_1.ReactSortable, Object.assign({ list: medias, setList: handleSort, scroll: true, animation: 200, scrollSensitivity: 50 }, { children: mediaElements })))) })));
|
|
52
50
|
});
|
|
@@ -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 material_1 = require("@mui/material");
|
|
7
|
-
const Icon_1 = tslib_1.__importDefault(require("@mui/material/Icon"));
|
|
8
7
|
const constants_1 = require("./constants");
|
|
9
|
-
const styles_1 = require("@mui/material/styles");
|
|
10
8
|
const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
11
9
|
const react_core_1 = require("@selfcommunity/react-core");
|
|
12
10
|
const react_intl_1 = require("react-intl");
|
|
@@ -20,25 +18,25 @@ const classes = {
|
|
|
20
18
|
triggerDrawerRoot: `${constants_1.PREFIX}-trigger-drawer-root`,
|
|
21
19
|
triggerMenuRoot: `${constants_1.PREFIX}-trigger-menu-root`,
|
|
22
20
|
paper: `${constants_1.PREFIX}-paper`,
|
|
23
|
-
item: `${constants_1.PREFIX}-item
|
|
21
|
+
item: `${constants_1.PREFIX}-item`
|
|
24
22
|
};
|
|
25
|
-
const Root = (0,
|
|
23
|
+
const Root = (0, material_1.styled)(material_1.IconButton, {
|
|
26
24
|
name: constants_1.PREFIX,
|
|
27
25
|
slot: 'TriggerRoot'
|
|
28
26
|
})(() => ({}));
|
|
29
|
-
const SwipeableDrawerRoot = (0,
|
|
27
|
+
const SwipeableDrawerRoot = (0, material_1.styled)(material_1.SwipeableDrawer, {
|
|
30
28
|
name: constants_1.PREFIX,
|
|
31
29
|
slot: 'TriggerDrawerRoot'
|
|
32
30
|
})(() => ({}));
|
|
33
|
-
const MenuRoot = (0,
|
|
31
|
+
const MenuRoot = (0, material_1.styled)(material_1.Menu, {
|
|
34
32
|
name: constants_1.PREFIX,
|
|
35
33
|
slot: 'TriggerMenuRoot'
|
|
36
34
|
})(() => ({}));
|
|
37
|
-
const PhotoUploadListItemButton = (0, asUploadButton_1.default)((0, react_1.forwardRef)((props, ref) => (
|
|
38
|
-
const GalleryUploadListItemButton = (0, asUploadButton_1.default)((0, react_1.forwardRef)((props, ref) => (
|
|
39
|
-
const DocumentUploadListItemButton = (0, asUploadButton_1.default)((0, react_1.forwardRef)((props, ref) => (
|
|
40
|
-
const GalleryUploadMenuItem = (0, asUploadButton_1.default)((0, react_1.forwardRef)((props, ref) => (
|
|
41
|
-
const DocumentUploadMenuItem = (0, asUploadButton_1.default)((0, react_1.forwardRef)((props, ref) => (
|
|
35
|
+
const PhotoUploadListItemButton = (0, asUploadButton_1.default)((0, react_1.forwardRef)((props, ref) => (0, jsx_runtime_1.jsx)(material_1.ListItemButton, Object.assign({}, props, { "aria-label": "upload", ref: ref }))), { accept: 'image/*', capture: 'camera' });
|
|
36
|
+
const GalleryUploadListItemButton = (0, asUploadButton_1.default)((0, react_1.forwardRef)((props, ref) => (0, jsx_runtime_1.jsx)(material_1.ListItemButton, Object.assign({}, props, { "aria-label": "upload", ref: ref }))), { accept: 'image/*' });
|
|
37
|
+
const DocumentUploadListItemButton = (0, asUploadButton_1.default)((0, react_1.forwardRef)((props, ref) => (0, jsx_runtime_1.jsx)(material_1.ListItemButton, Object.assign({}, props, { "aria-label": "upload", ref: ref }))), { accept: 'application/pdf' });
|
|
38
|
+
const GalleryUploadMenuItem = (0, asUploadButton_1.default)((0, react_1.forwardRef)((props, ref) => (0, jsx_runtime_1.jsx)(material_1.MenuItem, Object.assign({}, props, { "aria-label": "upload", ref: ref }))), { accept: 'image/*' });
|
|
39
|
+
const DocumentUploadMenuItem = (0, asUploadButton_1.default)((0, react_1.forwardRef)((props, ref) => (0, jsx_runtime_1.jsx)(material_1.MenuItem, Object.assign({}, props, { "aria-label": "upload", ref: ref }))), { accept: 'application/pdf' });
|
|
42
40
|
exports.default = (_a) => {
|
|
43
41
|
var { className, onAdd = null } = _a, rest = tslib_1.__rest(_a, ["className", "onAdd"]);
|
|
44
42
|
// STATE
|
|
@@ -97,5 +95,5 @@ exports.default = (_a) => {
|
|
|
97
95
|
return ((0, jsx_runtime_1.jsxs)(chunked_uploady_1.default, Object.assign({ destination: {
|
|
98
96
|
url: `${scContext.settings.portal}${api_services_1.Endpoints.ComposerChunkUploadMedia.url()}`,
|
|
99
97
|
method: api_services_1.Endpoints.ComposerChunkUploadMedia.method
|
|
100
|
-
}, fileFilter: handleFilterByMime, chunkSize: 204800, multiple: true }, { children: [(0, jsx_runtime_1.jsx)(MediaChunkUploader_1.default, { onSuccess: handleSuccess, onProgress: handleProgress, onError: handleError }), (0, jsx_runtime_1.jsx)(Root, Object.assign({ className: (0, classnames_1.default)(className, classes.triggerRoot) }, rest, { "aria-label": "add media", disabled: isUploading, onClick: handleOpen }, { children: isUploading ? (0, jsx_runtime_1.jsx)(material_1.CircularProgress, { size: 20 }) : (0, jsx_runtime_1.jsx)(
|
|
98
|
+
}, fileFilter: handleFilterByMime, chunkSize: 204800, multiple: true }, { children: [(0, jsx_runtime_1.jsx)(MediaChunkUploader_1.default, { onSuccess: handleSuccess, onProgress: handleProgress, onError: handleError }), (0, jsx_runtime_1.jsx)(Root, Object.assign({ className: (0, classnames_1.default)(className, classes.triggerRoot) }, rest, { "aria-label": "add media", disabled: isUploading, onClick: handleOpen }, { children: isUploading ? (0, jsx_runtime_1.jsx)(material_1.CircularProgress, { size: 20 }) : (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "photo_file" }) })), isMobile ? ((0, jsx_runtime_1.jsx)(SwipeableDrawerRoot, Object.assign({ onClick: () => setAnchorEl(null), className: classes.triggerDrawerRoot, 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: list }) }))) : ((0, jsx_runtime_1.jsx)(MenuRoot, Object.assign({ onClick: () => setAnchorEl(null), className: classes.triggerMenuRoot, anchorEl: anchorEl, open: Boolean(anchorEl), onClose: handleClose, PaperProps: { className: classes.paper } }, { children: list })))] })));
|
|
101
99
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { BoxProps } from '@mui/material';
|
|
3
|
-
import { SCMediaType } from '@selfcommunity/types
|
|
3
|
+
import { SCMediaType } from '@selfcommunity/types';
|
|
4
4
|
export interface DisplayComponentProps extends BoxProps {
|
|
5
5
|
/**
|
|
6
6
|
* Medias
|
|
@@ -3,10 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const react_1 = tslib_1.__importStar(require("react"));
|
|
6
|
-
const styles_1 = require("@mui/material/styles");
|
|
7
6
|
const Media_1 = require("../../../constants/Media");
|
|
8
7
|
const AutoPlayer_1 = tslib_1.__importDefault(require("../../AutoPlayer"));
|
|
9
|
-
const Box_1 = tslib_1.__importDefault(require("@mui/material/Box"));
|
|
10
8
|
const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
11
9
|
const constants_1 = require("./constants");
|
|
12
10
|
const material_1 = require("@mui/material");
|
|
@@ -26,7 +24,7 @@ const classes = {
|
|
|
26
24
|
snippetTitle: `${constants_1.PREFIX}-snippet-title`,
|
|
27
25
|
snippetDescription: `${constants_1.PREFIX}-snippet-description`
|
|
28
26
|
};
|
|
29
|
-
const Root = (0,
|
|
27
|
+
const Root = (0, material_1.styled)(material_1.Box, {
|
|
30
28
|
name: constants_1.PREFIX,
|
|
31
29
|
slot: 'DisplayRoot'
|
|
32
30
|
})(({ theme }) => ({}));
|
|
@@ -50,7 +48,7 @@ exports.default = (props) => {
|
|
|
50
48
|
// return renderHtml(media, key);
|
|
51
49
|
// }
|
|
52
50
|
const domain = new URL(media.embed.metadata.url).hostname.replace('www.', '');
|
|
53
|
-
return ((0, jsx_runtime_1.jsxs)(
|
|
51
|
+
return ((0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ className: classes.displayLink }, { children: [media.embed.metadata.images && media.embed.metadata.images.length > 0 && ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: fullWidth ? ((0, jsx_runtime_1.jsx)(material_1.Box, { className: (0, classnames_1.default)(classes.thumbnailFullWidth, classes.image), style: { background: `url(${media.image})`, paddingBottom: `${100 / media.image_width / media.image_height}%` } })) : ((0, jsx_runtime_1.jsx)(material_1.Box, { className: (0, classnames_1.default)(classes.thumbnail, classes.image), style: { background: `url(${media.image})` } })) })), (0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ className: classes.snippet }, { children: [(0, jsx_runtime_1.jsx)("b", Object.assign({ className: classes.snippetTitle }, { children: media.embed.metadata.title })), (0, jsx_runtime_1.jsx)("br", {}), (0, jsx_runtime_1.jsx)("p", Object.assign({ className: classes.snippetDescription }, { children: media.embed.metadata.description })), (0, jsx_runtime_1.jsx)("a", Object.assign({ href: media.embed.metadata.url, target: '_blank', onClick: () => handleLinkClick(media) }, { children: domain }))] })), (0, jsx_runtime_1.jsx)("div", { style: { clear: 'both' } })] }), key));
|
|
54
52
|
};
|
|
55
53
|
/**
|
|
56
54
|
* Render html embed
|
|
@@ -58,7 +56,7 @@ exports.default = (props) => {
|
|
|
58
56
|
* @param key
|
|
59
57
|
*/
|
|
60
58
|
const renderHtml = (media, key) => {
|
|
61
|
-
return ((0, jsx_runtime_1.jsxs)(
|
|
59
|
+
return ((0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ className: classes.displayHtmlWrap }, { children: [(0, jsx_runtime_1.jsx)("div", { dangerouslySetInnerHTML: { __html: media.embed.metadata.html }, className: classes.displayHtml }), (0, jsx_runtime_1.jsx)("div", Object.assign({ className: classes.displayHtmlPlaceholder, style: { paddingTop: `${(100 * media.embed.metadata.height) / media.embed.metadata.width}%`, maxHeight: media.embed.metadata.height } }, { children: (0, jsx_runtime_1.jsx)(material_1.CircularProgress, { size: 20, className: classes.displayHtmlLoading }) }))] }), key));
|
|
62
60
|
};
|
|
63
61
|
/**
|
|
64
62
|
* Renders component
|
|
@@ -5,9 +5,6 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
5
5
|
const react_1 = tslib_1.__importStar(require("react"));
|
|
6
6
|
const react_intl_1 = require("react-intl");
|
|
7
7
|
const material_1 = require("@mui/material");
|
|
8
|
-
const styles_1 = require("@mui/material/styles");
|
|
9
|
-
const Icon_1 = tslib_1.__importDefault(require("@mui/material/Icon"));
|
|
10
|
-
const DialogContent_1 = tslib_1.__importDefault(require("@mui/material/DialogContent"));
|
|
11
8
|
const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
12
9
|
const constants_1 = require("./constants");
|
|
13
10
|
const PreviewComponent_1 = tslib_1.__importDefault(require("./PreviewComponent"));
|
|
@@ -19,7 +16,7 @@ const classes = {
|
|
|
19
16
|
media: `${constants_1.PREFIX}-media`,
|
|
20
17
|
delete: `${constants_1.PREFIX}-delete`
|
|
21
18
|
};
|
|
22
|
-
const Root = (0,
|
|
19
|
+
const Root = (0, material_1.styled)(material_1.Box, {
|
|
23
20
|
name: constants_1.PREFIX,
|
|
24
21
|
slot: 'LayerRoot'
|
|
25
22
|
})(() => ({}));
|
|
@@ -32,6 +29,6 @@ const LayerComponent = react_1.default.forwardRef((props, ref) => {
|
|
|
32
29
|
const handleSave = (0, react_1.useCallback)(() => onSave(value), [value]);
|
|
33
30
|
const handleAdd = (0, react_1.useCallback)((media) => setValue([...value, media]), [value]);
|
|
34
31
|
const handleChange = (0, react_1.useCallback)((medias) => setValue(medias), []);
|
|
35
|
-
return (0, jsx_runtime_1.jsxs)(Root, Object.assign({ ref: ref, className: (0, classnames_1.default)(className, classes.layerRoot) }, rest, { children: [(0, jsx_runtime_1.jsxs)(material_1.DialogTitle, Object.assign({ className: classes.title }, { children: [(0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ onClick: onClose }, { children: (0, jsx_runtime_1.jsx)(
|
|
32
|
+
return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ ref: ref, className: (0, classnames_1.default)(className, classes.layerRoot) }, rest, { children: [(0, jsx_runtime_1.jsxs)(material_1.DialogTitle, Object.assign({ className: classes.title }, { children: [(0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ onClick: onClose }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "arrow_back" }) })), (0, jsx_runtime_1.jsx)(material_1.Typography, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.media.link.layer.title", defaultMessage: "ui.composer.media.link.layer.title" }) }), (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ size: "small", color: "secondary", variant: "contained", onClick: handleSave }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.layer.save", defaultMessage: "ui.composer.layer.save" }) }))] })), (0, jsx_runtime_1.jsxs)(material_1.DialogContent, Object.assign({ className: classes.content }, { children: [(0, jsx_runtime_1.jsx)(UrlTextField_1.default, { id: "page", name: "page", label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.media.link.add.label", defaultMessage: "ui.composer.media.link.add.label" }), fullWidth: true, variant: "outlined", placeholder: "https://", onSuccess: handleAdd }), (0, jsx_runtime_1.jsx)(PreviewComponent_1.default, { onChange: handleChange, value: value })] }))] })));
|
|
36
33
|
});
|
|
37
34
|
exports.default = LayerComponent;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { BoxProps } from '@mui/material';
|
|
3
|
-
import { SCMediaType } from '@selfcommunity/types
|
|
3
|
+
import { SCMediaType } from '@selfcommunity/types';
|
|
4
4
|
export interface PreviewComponentProps extends Omit<BoxProps, 'value' | 'onChange'> {
|
|
5
5
|
onChange: (value: SCMediaType[]) => void;
|
|
6
6
|
value: SCMediaType[];
|
|
@@ -4,8 +4,6 @@ const tslib_1 = require("tslib");
|
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const react_1 = tslib_1.__importStar(require("react"));
|
|
6
6
|
const material_1 = require("@mui/material");
|
|
7
|
-
const styles_1 = require("@mui/material/styles");
|
|
8
|
-
const Icon_1 = tslib_1.__importDefault(require("@mui/material/Icon"));
|
|
9
7
|
const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
10
8
|
const react_sortablejs_1 = require("react-sortablejs");
|
|
11
9
|
const DisplayComponent_1 = tslib_1.__importDefault(require("./DisplayComponent"));
|
|
@@ -18,7 +16,7 @@ const classes = {
|
|
|
18
16
|
video: `${constants_1.PREFIX}-media-video`,
|
|
19
17
|
delete: `${constants_1.PREFIX}-delete`
|
|
20
18
|
};
|
|
21
|
-
const Root = (0,
|
|
19
|
+
const Root = (0, material_1.styled)(material_1.Box, {
|
|
22
20
|
name: constants_1.PREFIX,
|
|
23
21
|
slot: 'PreviewRoot'
|
|
24
22
|
})(() => ({}));
|
|
@@ -32,6 +30,6 @@ const PreviewComponent = react_1.default.forwardRef((props, ref) => {
|
|
|
32
30
|
onChange && onChange([...value.filter((media) => medias.findIndex((m) => m.id === media.id) === -1), ...medias]);
|
|
33
31
|
}, [onChange, value]);
|
|
34
32
|
const handleDelete = (0, react_1.useCallback)((id) => () => onChange && onChange(value.filter((media) => media.id !== id)), [onChange, value]);
|
|
35
|
-
return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ ref: ref, className: (0, classnames_1.default)(className, classes.previewRoot) }, rest, { children: medias.length > 0 && ((0, jsx_runtime_1.jsx)(react_sortablejs_1.ReactSortable, Object.assign({ list: medias, setList: handleSort }, { children: medias.map((media) => ((0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ className: (0, classnames_1.default)(classes.media, { [classes.video]: media.embed.metadata && media.embed.metadata.type === Media_1.MEDIA_TYPE_VIDEO }) }, { children: [(0, jsx_runtime_1.jsx)(DisplayComponent_1.default, { medias: [media] }), (0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ className: classes.delete, onClick: handleDelete(media.id), size: "small" }, { children: (0, jsx_runtime_1.jsx)(
|
|
33
|
+
return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ ref: ref, className: (0, classnames_1.default)(className, classes.previewRoot) }, rest, { children: medias.length > 0 && ((0, jsx_runtime_1.jsx)(react_sortablejs_1.ReactSortable, Object.assign({ list: medias, setList: handleSort }, { children: medias.map((media) => ((0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ className: (0, classnames_1.default)(classes.media, { [classes.video]: media.embed.metadata && media.embed.metadata.type === Media_1.MEDIA_TYPE_VIDEO }) }, { children: [(0, jsx_runtime_1.jsx)(DisplayComponent_1.default, { medias: [media] }), (0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ className: classes.delete, onClick: handleDelete(media.id), size: "small" }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "delete" }) }))] }), media.id))) }))) })));
|
|
36
34
|
});
|
|
37
35
|
exports.default = PreviewComponent;
|
|
@@ -3,18 +3,16 @@ 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
6
|
const constants_1 = require("./constants");
|
|
8
|
-
const styles_1 = require("@mui/material/styles");
|
|
9
7
|
const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
10
8
|
const classes = {
|
|
11
9
|
triggerRoot: `${constants_1.PREFIX}-trigger-root`
|
|
12
10
|
};
|
|
13
|
-
const Root = (0,
|
|
11
|
+
const Root = (0, material_1.styled)(material_1.IconButton, {
|
|
14
12
|
name: constants_1.PREFIX,
|
|
15
13
|
slot: 'TriggerRoot'
|
|
16
14
|
})(() => ({}));
|
|
17
15
|
exports.default = (_a) => {
|
|
18
16
|
var { className } = _a, rest = tslib_1.__rest(_a, ["className"]);
|
|
19
|
-
return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: (0, classnames_1.default)(className, classes.triggerRoot) }, rest, { "aria-label": "add link" }, { children: (0, jsx_runtime_1.jsx)(
|
|
17
|
+
return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: (0, classnames_1.default)(className, classes.triggerRoot) }, rest, { "aria-label": "add link" }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "link" }) })));
|
|
20
18
|
};
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
+
import { BaseTextFieldProps, InputProps as StandardInputProps, FilledInputProps, OutlinedInputProps } from '@mui/material';
|
|
1
2
|
import { SCMediaType } from '@selfcommunity/types';
|
|
2
|
-
import { BaseTextFieldProps } from '@mui/material/TextField/TextField';
|
|
3
|
-
import { InputProps as StandardInputProps } from '@mui/material/Input/Input';
|
|
4
|
-
import { FilledInputProps } from '@mui/material/FilledInput';
|
|
5
|
-
import { OutlinedInputProps } from '@mui/material/OutlinedInput';
|
|
6
3
|
export interface BaseUrlTextFieldProps extends BaseTextFieldProps {
|
|
7
4
|
/**
|
|
8
5
|
* Callback fired when the media is created.
|
|
@@ -3,14 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const react_1 = tslib_1.__importStar(require("react"));
|
|
6
|
-
const
|
|
7
|
-
const IconButton_1 = tslib_1.__importDefault(require("@mui/material/IconButton"));
|
|
8
|
-
const TextField_1 = tslib_1.__importDefault(require("@mui/material/TextField"));
|
|
6
|
+
const material_1 = require("@mui/material");
|
|
9
7
|
const api_services_1 = require("@selfcommunity/api-services");
|
|
10
8
|
const utils_1 = require("@selfcommunity/utils");
|
|
11
9
|
const Media_1 = require("../../../../constants/Media");
|
|
12
10
|
const react_intl_1 = require("react-intl");
|
|
13
|
-
const material_1 = require("@mui/material");
|
|
14
11
|
const INITIAL_STATE = {
|
|
15
12
|
url: '',
|
|
16
13
|
urlError: null
|
|
@@ -75,6 +72,6 @@ exports.default = (props) => {
|
|
|
75
72
|
/**
|
|
76
73
|
* Renders url text field
|
|
77
74
|
*/
|
|
78
|
-
return ((0, jsx_runtime_1.jsx)("form", Object.assign({ method: "post", onSubmit: handleSubmit }, { children: (0, jsx_runtime_1.jsx)(
|
|
79
|
-
(urlError && ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: `ui.composer.media.link.add.error.${urlError}`, defaultMessage: `ui.composer.media.link.add.error.${urlError}` }))) || (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.media.link.add.help", defaultMessage: "ui.composer.media.link.add.help" }), disabled: isCreating }, rest, { InputProps: Object.assign(Object.assign({}, rest.InputProps), { endAdornment: ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: url === '' && ((_a = rest.InputProps) === null || _a === void 0 ? void 0 : _a.endAdornment) ? ((_b = rest.InputProps) === null || _b === void 0 ? void 0 : _b.endAdornment) : ((0, jsx_runtime_1.jsx)(
|
|
75
|
+
return ((0, jsx_runtime_1.jsx)("form", Object.assign({ method: "post", onSubmit: handleSubmit }, { children: (0, jsx_runtime_1.jsx)(material_1.TextField, Object.assign({ value: url, type: "url", onChange: handleChange, onPaste: handlePaste, error: error || Boolean(urlError), helperText: helperText ||
|
|
76
|
+
(urlError && ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: `ui.composer.media.link.add.error.${urlError}`, defaultMessage: `ui.composer.media.link.add.error.${urlError}` }))) || (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.media.link.add.help", defaultMessage: "ui.composer.media.link.add.help" }), disabled: isCreating }, rest, { InputProps: Object.assign(Object.assign({}, rest.InputProps), { endAdornment: ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: url === '' && ((_a = rest.InputProps) === null || _a === void 0 ? void 0 : _a.endAdornment) ? ((_b = rest.InputProps) === null || _b === void 0 ? void 0 : _b.endAdornment) : ((0, jsx_runtime_1.jsx)(material_1.InputAdornment, Object.assign({ position: "end" }, { children: (0, jsx_runtime_1.jsx)(material_1.Fade, Object.assign({ in: urlError === null && url !== '' }, { children: (0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ size: "small", disabled: isCreating, type: "submit" }, { children: isCreating ? ((0, jsx_runtime_1.jsx)(material_1.CircularProgress, { color: "primary", size: 20 })) : ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.media.link.add.submit", defaultMessage: "ui.composer.media.link.add.submit" })) })) })) }))) })) }) })) })));
|
|
80
77
|
};
|
|
@@ -3,12 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const react_1 = require("react");
|
|
6
|
-
const styles_1 = require("@mui/material/styles");
|
|
7
|
-
const Box_1 = tslib_1.__importDefault(require("@mui/material/Box"));
|
|
8
6
|
const FeedObject_1 = tslib_1.__importDefault(require("../../../components/FeedObject"));
|
|
9
7
|
const feedObject_1 = require("../../../types/feedObject");
|
|
10
8
|
const utils_1 = require("@selfcommunity/utils");
|
|
11
9
|
const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
10
|
+
const material_1 = require("@mui/material");
|
|
12
11
|
const filter_1 = tslib_1.__importDefault(require("./filter"));
|
|
13
12
|
const constants_1 = require("./constants");
|
|
14
13
|
const Media_1 = require("../../../constants/Media");
|
|
@@ -19,7 +18,7 @@ const classes = {
|
|
|
19
18
|
sharePreview: `${constants_1.PREFIX}-share-preview`,
|
|
20
19
|
sharePlaceholder: `${constants_1.PREFIX}-share-placeholder`
|
|
21
20
|
};
|
|
22
|
-
const Root = (0,
|
|
21
|
+
const Root = (0, material_1.styled)(material_1.Box, {
|
|
23
22
|
name: constants_1.PREFIX,
|
|
24
23
|
slot: 'DisplayRoot'
|
|
25
24
|
})(({ theme }) => ({}));
|
|
@@ -30,5 +29,5 @@ exports.default = (_a) => {
|
|
|
30
29
|
if (_medias.length === 0) {
|
|
31
30
|
return null;
|
|
32
31
|
}
|
|
33
|
-
return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: (0, classnames_1.default)(className, classes.displayRoot) }, rest, { children: _medias.map((media, i) => ((0, jsx_runtime_1.jsx)(
|
|
32
|
+
return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: (0, classnames_1.default)(className, classes.displayRoot) }, rest, { children: _medias.map((media, i) => ((0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ className: classes.sharePreview, onClick: onMediaClick }, { children: media.type === Media_1.MEDIA_TYPE_EVENT || (media.embed && media.embed.embed_type === Media_1.MEDIA_EMBED_SC_SHARED_EVENT) ? ((0, jsx_runtime_1.jsx)(Event_1.default, { event: media.embed.metadata, template: event_1.SCEventTemplateType.DETAIL, variant: "outlined", square: true, hideEventParticipants: true, hideEventPlanner: true, actions: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}) })) : ((0, jsx_runtime_1.jsx)(FeedObject_1.default, { feedObjectId: media.embed.metadata.id, feedObjectType: media.embed.metadata.type, variant: 'outlined', template: feedObject_1.SCFeedObjectTemplateType.SHARE, cacheStrategy: utils_1.CacheStrategies.CACHE_FIRST })) }), i))) })));
|
|
34
33
|
};
|
|
@@ -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 react_intl_1 = require("react-intl");
|
|
8
7
|
const system_1 = require("@mui/system");
|
|
@@ -11,7 +10,7 @@ const PREFIX = 'SCNotificationNewChip';
|
|
|
11
10
|
const classes = {
|
|
12
11
|
root: `${PREFIX}-root`
|
|
13
12
|
};
|
|
14
|
-
const Root = (0,
|
|
13
|
+
const Root = (0, material_1.styled)(material_1.Chip, {
|
|
15
14
|
name: PREFIX,
|
|
16
15
|
slot: 'Root',
|
|
17
16
|
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"));
|
|
@@ -24,7 +23,7 @@ const classes = {
|
|
|
24
23
|
new: `${PREFIX}-new`,
|
|
25
24
|
newChip: `${PREFIX}-new-chip`
|
|
26
25
|
};
|
|
27
|
-
const Root = (0,
|
|
26
|
+
const Root = (0, material_1.styled)(Widget_1.default, {
|
|
28
27
|
name: PREFIX,
|
|
29
28
|
slot: 'Root',
|
|
30
29
|
overridesResolver: (props, styles) => styles.root
|
|
@@ -1,13 +1,10 @@
|
|
|
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
4
|
const react_1 = require("react");
|
|
6
|
-
const styles_1 = require("@mui/material/styles");
|
|
7
5
|
const material_1 = require("@mui/material");
|
|
8
|
-
const Icon_1 = tslib_1.__importDefault(require("@mui/material/Icon"));
|
|
9
6
|
const PREFIX = 'SCPasswordTextField';
|
|
10
|
-
const Root = (0,
|
|
7
|
+
const Root = (0, material_1.styled)(material_1.TextField, {
|
|
11
8
|
name: PREFIX,
|
|
12
9
|
slot: 'Root',
|
|
13
10
|
overridesResolver: (props, styles) => styles.root
|
|
@@ -22,7 +19,7 @@ function PasswordTextField(props) {
|
|
|
22
19
|
};
|
|
23
20
|
// RENDER
|
|
24
21
|
return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ type: showPassword ? 'text' : 'password' }, props, { InputProps: {
|
|
25
|
-
endAdornment: ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(_a = props === null || props === void 0 ? void 0 : props.InputProps) === null || _a === void 0 ? void 0 : _a.endAdornment, (0, jsx_runtime_1.jsx)(material_1.InputAdornment, Object.assign({ position: "end" }, { children: (0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ "aria-label": "toggle password visibility", onClick: handleClick, edge: "end" }, { children: showPassword ? (0, jsx_runtime_1.jsx)(
|
|
22
|
+
endAdornment: ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(_a = props === null || props === void 0 ? void 0 : props.InputProps) === null || _a === void 0 ? void 0 : _a.endAdornment, (0, jsx_runtime_1.jsx)(material_1.InputAdornment, Object.assign({ position: "end" }, { children: (0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ "aria-label": "toggle password visibility", onClick: handleClick, edge: "end" }, { children: showPassword ? (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "visibility_off" }) : (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "visibility" }) })) }))] }))
|
|
26
23
|
} })));
|
|
27
24
|
}
|
|
28
25
|
exports.default = PasswordTextField;
|
|
@@ -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 libphonenumber_js_1 = require("libphonenumber-js");
|
|
@@ -14,7 +13,7 @@ const messages = (0, react_intl_1.defineMessages)({
|
|
|
14
13
|
}
|
|
15
14
|
});
|
|
16
15
|
const PREFIX = 'SCPhoneTextField';
|
|
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
|