@selfcommunity/react-ui 0.11.0-alpha.65 → 0.11.0-alpha.66
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/components/AcceptRequestUserEventButton/AcceptRequestUserEventButton.js +2 -2
- package/lib/cjs/components/AccountChangeMailValidation/AccountChangeMailValidation.js +1 -2
- package/lib/cjs/components/AccountDataPortability/AccountDataPortability.js +2 -4
- package/lib/cjs/components/AccountDataPortabilityButton/AccountDataPortabilityButton.js +2 -3
- package/lib/cjs/components/AccountDelete/AccountDelete.js +1 -2
- package/lib/cjs/components/AccountDeleteButton/AccountDeleteButton.js +2 -3
- package/lib/cjs/components/AccountRecover/AccountRecover.js +1 -2
- package/lib/cjs/components/AccountReset/AccountReset.js +1 -2
- package/lib/cjs/components/AccountVerify/AccountVerify.js +1 -2
- package/lib/cjs/components/BroadcastMessages/BroadcastMessages.js +1 -2
- package/lib/cjs/components/BroadcastMessages/Message.js +3 -5
- package/lib/cjs/components/BroadcastMessages/Skeleton.js +2 -3
- package/lib/cjs/components/Categories/Categories.js +1 -2
- package/lib/cjs/components/Categories/Skeleton.js +1 -2
- package/lib/cjs/components/CategoriesPopularWidget/CategoriesPopularWidget.js +2 -3
- package/lib/cjs/components/CategoriesPopularWidget/Skeleton.js +2 -2
- package/lib/cjs/components/CategoriesSuggestionWidget/CategoriesSuggestionWidget.js +2 -3
- package/lib/cjs/components/CategoriesSuggestionWidget/Skeleton.js +2 -4
- package/lib/cjs/components/Category/Category.js +1 -2
- package/lib/cjs/components/Category/Skeleton.js +2 -4
- package/lib/cjs/components/CategoryAutocomplete/CategoryAutocomplete.d.ts +2 -3
- package/lib/cjs/components/CategoryAutocomplete/CategoryAutocomplete.js +3 -8
- package/lib/cjs/components/CategoryFollowButton/CategoryFollowButton.js +2 -2
- package/lib/cjs/components/CategoryFollowersButton/CategoryFollowersButton.d.ts +1 -1
- package/lib/cjs/components/CategoryFollowersButton/CategoryFollowersButton.js +3 -5
- package/lib/cjs/components/CategoryHeader/CategoryHeader.js +1 -2
- package/lib/cjs/components/CategoryHeader/Skeleton.js +3 -6
- package/lib/cjs/components/CategoryTrendingFeedWidget/CategoryTrendingFeedWidget.js +4 -6
- package/lib/cjs/components/CategoryTrendingFeedWidget/Skeleton.js +2 -4
- package/lib/cjs/components/CategoryTrendingUsersWidget/CategoryTrendingUsersWidget.js +3 -5
- package/lib/cjs/components/CategoryTrendingUsersWidget/Skeleton.js +2 -4
- package/lib/cjs/components/ChangeCover/ChangeCover.js +3 -6
- package/lib/cjs/components/ChangeGroupCover/ChangeGroupCover.js +2 -4
- package/lib/cjs/components/ChangeGroupPicture/ChangeGroupPicture.js +2 -4
- package/lib/cjs/components/ChangePicture/ChangePicture.js +2 -4
- package/lib/cjs/components/ChangePicture/ChangePictureDialog/ChangePictureDialog.js +3 -8
- package/lib/cjs/components/CommentObject/CommentObject.js +1 -2
- package/lib/cjs/components/CommentObject/Skeleton.js +2 -4
- package/lib/cjs/components/CommentObjectReply/CommentObjectReply.js +1 -2
- package/lib/cjs/components/CommentsFeedObject/CommentsFeedObject.js +3 -5
- package/lib/cjs/components/CommentsFeedObject/Skeleton.js +2 -2
- package/lib/cjs/components/CommentsObject/CommentsObject.js +2 -4
- package/lib/cjs/components/CommentsObject/Skeleton.js +1 -2
- package/lib/cjs/components/Composer/Attributes/Attributes.js +3 -5
- package/lib/cjs/components/Composer/Composer.js +5 -7
- package/lib/cjs/components/Composer/Content/ContentDiscussion/ContentDiscussion.js +1 -2
- package/lib/cjs/components/Composer/Content/ContentLesson/ContentLesson.js +1 -2
- package/lib/cjs/components/Composer/Content/ContentPoll/ContentPoll.js +6 -9
- package/lib/cjs/components/Composer/Content/ContentPost/ContentPost.js +1 -2
- package/lib/cjs/components/Composer/Layer/AudienceLayer/AudienceLayer.d.ts +2 -3
- package/lib/cjs/components/Composer/Layer/AudienceLayer/AudienceLayer.js +5 -9
- package/lib/cjs/components/Composer/Layer/CategoryLayer/CategoryLayer.js +2 -5
- package/lib/cjs/components/Composer/Layer/CloseLayer/CloseLayer.js +2 -5
- package/lib/cjs/components/Composer/Layer/LocationLayer/LocationLayer.d.ts +1 -1
- package/lib/cjs/components/Composer/Layer/LocationLayer/LocationLayer.js +2 -5
- package/lib/cjs/components/Composer/Skeleton.js +2 -5
- package/lib/cjs/components/Composer/TypeSwitchButtonGroup/TypeSwitchButtonGroup.js +1 -2
- package/lib/cjs/components/ConnectionUserButton/ConnectionUserButton.js +1 -2
- package/lib/cjs/components/ConsentSolution/ConsentSolution.js +6 -13
- package/lib/cjs/components/ConsentSolution/Skeleton.js +3 -6
- package/lib/cjs/components/ConsentSolutionButton/ConsentSolutionButton.d.ts +1 -1
- package/lib/cjs/components/ConsentSolutionButton/ConsentSolutionButton.js +1 -3
- package/lib/cjs/components/Course/Course.js +3 -4
- package/lib/cjs/components/Course/CreatePlaceholder.js +1 -2
- package/lib/cjs/components/Course/Skeleton.js +5 -7
- package/lib/cjs/components/CourseContentMenu/CourseContentMenu.js +1 -2
- package/lib/cjs/components/CourseForm/CourseForm.js +1 -2
- package/lib/cjs/components/CourseForm/Edit.js +1 -2
- package/lib/cjs/components/CourseForm/UploadCourseCover.js +2 -4
- package/lib/cjs/components/CourseFormDialog/CourseFormDialog.js +2 -2
- package/lib/cjs/components/CourseJoinButton/CourseJoinButton.js +2 -2
- package/lib/cjs/components/CourseParticipantsButton/CourseParticipantsButton.d.ts +1 -1
- package/lib/cjs/components/CourseParticipantsButton/CourseParticipantsButton.js +2 -3
- package/lib/cjs/components/Courses/Skeleton.js +1 -2
- package/lib/cjs/components/CreateCourseButton/CreateCourseButton.js +1 -2
- package/lib/cjs/components/CreateEventButton/CreateEventButton.js +1 -2
- package/lib/cjs/components/CreateEventWidget/Skeleton.js +2 -4
- package/lib/cjs/components/CreateGroupButton/CreateGroupButton.d.ts +1 -1
- package/lib/cjs/components/CreateGroupButton/CreateGroupButton.js +1 -2
- package/lib/cjs/components/CreateLiveStreamButton/CreateLiveStreamButton.d.ts +1 -1
- package/lib/cjs/components/CreateLiveStreamButton/CreateLiveStreamButton.js +1 -2
- package/lib/cjs/components/CreateLiveStreamDialog/CreateLiveStreamDialog.js +2 -4
- package/lib/cjs/components/CreateLiveStreamDialog/LiveStreamSelector/LiveStreamSelector.js +3 -4
- package/lib/cjs/components/CustomAdv/CustomAdv.js +1 -2
- package/lib/cjs/components/CustomAdv/Skeleton.js +2 -2
- package/lib/cjs/components/EditCourse/MenuRow.js +1 -3
- package/lib/cjs/components/EditEventButton/EditEventButton.js +2 -2
- package/lib/cjs/components/EditGroupButton/EditGroupButton.js +2 -2
- package/lib/cjs/components/Editor/Editor.js +1 -2
- package/lib/cjs/components/Editor/Skeleton.js +2 -2
- package/lib/cjs/components/Editor/plugins/EmojiPlugin.js +1 -2
- package/lib/cjs/components/Editor/plugins/FloatingLinkPlugin.js +2 -5
- package/lib/cjs/components/Editor/plugins/HashtagPlugin.js +2 -2
- package/lib/cjs/components/Editor/plugins/ImagePlugin.js +1 -2
- package/lib/cjs/components/Editor/plugins/MediaPlugin.js +1 -2
- package/lib/cjs/components/Editor/plugins/MentionsPlugin.js +2 -4
- package/lib/cjs/components/Editor/plugins/ToolbarPlugin.js +1 -2
- package/lib/cjs/components/Event/Event.js +4 -5
- package/lib/cjs/components/Event/Skeleton.js +7 -9
- package/lib/cjs/components/EventAutocomplete/EventAutocomplete.d.ts +2 -3
- package/lib/cjs/components/EventAutocomplete/EventAutocomplete.js +2 -6
- package/lib/cjs/components/EventForm/EventAddress.js +3 -5
- package/lib/cjs/components/EventForm/EventForm.js +1 -2
- package/lib/cjs/components/EventForm/UploadEventCover.js +2 -4
- package/lib/cjs/components/EventFormDialog/EventFormDialog.js +2 -2
- package/lib/cjs/components/EventHeader/EventHeader.js +1 -2
- package/lib/cjs/components/EventHeader/Skeleton.js +2 -5
- package/lib/cjs/components/EventInviteButton/EventInviteButton.d.ts +1 -1
- package/lib/cjs/components/EventInviteButton/EventInviteButton.js +3 -5
- package/lib/cjs/components/EventLocationWidget/EventLocationWidget.js +1 -2
- package/lib/cjs/components/EventLocationWidget/Skeleton.js +1 -2
- package/lib/cjs/components/EventMediaWidget/EventMediaWidget.js +2 -3
- package/lib/cjs/components/EventMediaWidget/Skeleton.js +3 -5
- package/lib/cjs/components/EventMediaWidget/TriggerButton.js +2 -4
- package/lib/cjs/components/EventParticipantsButton/EventParticipantsButton.d.ts +1 -1
- package/lib/cjs/components/EventParticipantsButton/EventParticipantsButton.js +2 -3
- package/lib/cjs/components/EventSubscribeButton/EventSubscribeButton.js +4 -5
- package/lib/cjs/components/Events/LocationEventsFilter.js +1 -2
- package/lib/cjs/components/Events/Skeleton.js +1 -2
- package/lib/cjs/components/Feed/Feed.js +2 -3
- package/lib/cjs/components/Feed/Skeleton.js +1 -2
- package/lib/cjs/components/FeedObject/Actions/Actions.js +3 -3
- package/lib/cjs/components/FeedObject/Actions/Comment/Comment.js +3 -6
- package/lib/cjs/components/FeedObject/Actions/Follow/Follow.js +2 -4
- package/lib/cjs/components/FeedObject/Actions/Share/Share.js +4 -9
- package/lib/cjs/components/FeedObject/Actions/Share/SharesDialog/SharesDialog.js +1 -2
- package/lib/cjs/components/FeedObject/Actions/Vote/Vote.js +1 -2
- package/lib/cjs/components/FeedObject/Activities/Activities.js +1 -2
- package/lib/cjs/components/FeedObject/Activities/ActivitiesMenu/ActivitiesMenu.js +4 -9
- package/lib/cjs/components/FeedObject/Activities/RelevantActivities/CommentActivity/CommentActivity.js +1 -2
- package/lib/cjs/components/FeedObject/Activities/RelevantActivities/FollowActivity/FollowActivity.js +1 -2
- package/lib/cjs/components/FeedObject/Activities/RelevantActivities/PollVoteActivity/PollVoteActivity.js +1 -2
- package/lib/cjs/components/FeedObject/Activities/RelevantActivities/RelevantActivities.js +2 -4
- package/lib/cjs/components/FeedObject/Activities/RelevantActivities/VoteUpActivity/VoteUpActivity.js +1 -2
- package/lib/cjs/components/FeedObject/Contributors/Contributors.js +1 -2
- package/lib/cjs/components/FeedObject/Contributors/Skeleton.js +1 -2
- package/lib/cjs/components/FeedObject/FeedObject.js +5 -8
- package/lib/cjs/components/FeedObject/Poll/Choice/Choice.js +3 -6
- package/lib/cjs/components/FeedObject/Poll/Poll.js +2 -6
- package/lib/cjs/components/FeedObject/Skeleton.js +3 -5
- package/lib/cjs/components/FeedObjectMediaPreview/FeedObjectMediaPreview.js +2 -3
- package/lib/cjs/components/FeedUpdatesWidget/FeedUpdatesWidget.js +1 -2
- package/lib/cjs/components/FeedUpdatesWidget/Skeleton.js +2 -2
- package/lib/cjs/components/FollowUserButton/FollowUserButton.js +2 -2
- package/lib/cjs/components/Footer/Footer.js +1 -2
- package/lib/cjs/components/Footer/Skeleton.js +2 -5
- package/lib/cjs/components/FriendshipUserButton/FriendshipUserButton.js +2 -2
- package/lib/cjs/components/Group/Group.js +1 -2
- package/lib/cjs/components/Group/Skeleton.js +2 -4
- package/lib/cjs/components/GroupActionsMenu/index.js +7 -9
- package/lib/cjs/components/GroupAutocomplete/GroupAutocomplete.d.ts +2 -3
- package/lib/cjs/components/GroupAutocomplete/GroupAutocomplete.js +2 -6
- package/lib/cjs/components/GroupForm/GroupForm.js +1 -2
- package/lib/cjs/components/GroupHeader/GroupHeader.js +1 -2
- package/lib/cjs/components/GroupHeader/Skeleton.js +2 -5
- package/lib/cjs/components/GroupInfoWidget/GroupInfoWidget.js +1 -2
- package/lib/cjs/components/GroupInfoWidget/Skeleton.js +2 -2
- package/lib/cjs/components/GroupInviteButton/GroupInviteButton.d.ts +1 -1
- package/lib/cjs/components/GroupInviteButton/GroupInviteButton.js +3 -5
- package/lib/cjs/components/GroupInvitedWidget/GroupInvitedWidget.js +3 -5
- package/lib/cjs/components/GroupInvitedWidget/Skeleton.js +2 -2
- package/lib/cjs/components/GroupMembersButton/GroupMembersButton.d.ts +1 -1
- package/lib/cjs/components/GroupMembersButton/GroupMembersButton.js +3 -5
- package/lib/cjs/components/GroupMembersWidget/GroupMembersWidget.js +4 -6
- package/lib/cjs/components/GroupMembersWidget/Skeleton.js +2 -2
- package/lib/cjs/components/GroupRequestsWidget/GroupRequestsWidget.js +3 -5
- package/lib/cjs/components/GroupRequestsWidget/Skeleton.js +2 -2
- package/lib/cjs/components/GroupSettingsIconButton/GroupSettingsIconButton.js +4 -6
- package/lib/cjs/components/GroupSubscribeButton/GroupSubscribeButton.js +2 -2
- package/lib/cjs/components/Groups/Groups.js +1 -2
- package/lib/cjs/components/Groups/Skeleton.js +2 -2
- package/lib/cjs/components/Incubator/Incubator.js +3 -6
- package/lib/cjs/components/Incubator/Skeleton.js +2 -4
- package/lib/cjs/components/IncubatorDetail/IncubatorDetail.js +2 -4
- package/lib/cjs/components/IncubatorListWidget/CreateIncubatorDialog/CreateIncubatorDialog.js +1 -2
- package/lib/cjs/components/IncubatorListWidget/IncubatorListWidget.js +3 -7
- package/lib/cjs/components/IncubatorListWidget/Skeleton.js +3 -5
- package/lib/cjs/components/IncubatorSubscribeButton/IncubatorSubscribeButton.js +2 -2
- package/lib/cjs/components/IncubatorSuggestionWidget/IncubatorSuggestionWidget.js +3 -5
- package/lib/cjs/components/IncubatorSuggestionWidget/Skeleton.js +3 -5
- package/lib/cjs/components/InlineComposerWidget/InlineComposerWidget.js +1 -2
- package/lib/cjs/components/InlineComposerWidget/Skeleton.js +2 -4
- package/lib/cjs/components/InviteUserEventButton/InviteUserEventButton.js +2 -2
- package/lib/cjs/components/LessonAppbar/LessonAppbar.js +1 -2
- package/lib/cjs/components/LessonCommentObject/LessonCommentObject.js +1 -2
- package/lib/cjs/components/LessonCommentObject/Skeleton.js +2 -4
- package/lib/cjs/components/LessonCommentObjects/LessonCommentObjects.js +1 -2
- package/lib/cjs/components/LessonCommentObjects/Skeleton.js +1 -2
- package/lib/cjs/components/LessonDrawer/LessonDrawer.js +1 -2
- package/lib/cjs/components/LessonEditForm/LessonEditForm.js +1 -2
- package/lib/cjs/components/LessonObject/LessonObject.js +2 -4
- package/lib/cjs/components/LessonReleaseMenu/LessonReleaseMenu.js +9 -9
- package/lib/cjs/components/LiveStream/LiveStream.js +4 -5
- package/lib/cjs/components/LiveStream/Skeleton.js +7 -9
- package/lib/cjs/components/LiveStreamForm/LiveStreamForm.js +1 -2
- package/lib/cjs/components/LiveStreamForm/LiveStreamFormSettings.js +1 -2
- package/lib/cjs/components/LiveStreamRoom/LiveStreamRoom.js +3 -5
- package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/LiveStreamSettingsMenu.js +2 -5
- package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/LiveStreamVideoConference.js +3 -5
- package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/NoParticipants.js +1 -2
- package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/ParticipantTileActions.js +10 -12
- package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/ParticipantTileAvatar.js +1 -2
- package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/VideoConference.js +2 -4
- package/lib/cjs/components/LocationAutocomplete/LocationAutocomplete.d.ts +2 -3
- package/lib/cjs/components/LocationAutocomplete/LocationAutocomplete.js +2 -5
- package/lib/cjs/components/LoyaltyProgramWidget/LoyaltyProgramWidget.js +2 -4
- package/lib/cjs/components/LoyaltyProgramWidget/Skeleton.js +1 -2
- package/lib/cjs/components/MyEventsWidget/MyEventsWidget.js +1 -2
- package/lib/cjs/components/NavigationMenuIconButton/DefaultDrawerContent.js +1 -2
- package/lib/cjs/components/NavigationMenuIconButton/DefaultDrawerSkeleton.js +1 -2
- package/lib/cjs/components/NavigationMenuIconButton/DefaultHeaderContent.js +1 -2
- package/lib/cjs/components/NavigationMenuIconButton/NavigationMenuDrawer.js +1 -2
- package/lib/cjs/components/NavigationMenuIconButton/NavigationMenuIconButton.js +1 -2
- package/lib/cjs/components/NavigationSettingsIconButton/NavigationSettingsIconButton.js +3 -4
- package/lib/cjs/components/NavigationToolbar/NavigationToolbar.js +7 -8
- package/lib/cjs/components/NavigationToolbar/Skeleton.js +2 -5
- package/lib/cjs/components/NavigationToolbarMobile/NavigationToolbarMobile.js +2 -3
- package/lib/cjs/components/NavigationToolbarMobile/Skeleton.js +2 -5
- package/lib/cjs/components/Notification/CollapsedFor/CollapsedFor.js +2 -4
- package/lib/cjs/components/Notification/Comment/Comment.js +1 -2
- package/lib/cjs/components/Notification/Contribution/Contribution.js +1 -2
- package/lib/cjs/components/Notification/ContributionFollow/ContributionFollow.js +1 -2
- package/lib/cjs/components/Notification/Course/Course.js +1 -2
- package/lib/cjs/components/Notification/DeletedFor/DeletedFor.js +2 -4
- package/lib/cjs/components/Notification/Event/Event.js +1 -2
- package/lib/cjs/components/Notification/Group/Group.js +1 -2
- package/lib/cjs/components/Notification/IncubatorApproved/IncubatorApproved.js +1 -2
- package/lib/cjs/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.js +2 -4
- package/lib/cjs/components/Notification/KindlyNoticeFor/KindlyNoticeFor.js +2 -4
- package/lib/cjs/components/Notification/LiveStream/LiveStream.js +1 -2
- package/lib/cjs/components/Notification/Mention/Mention.js +1 -2
- package/lib/cjs/components/Notification/Notification.js +3 -6
- package/lib/cjs/components/Notification/PrivateMessage/PrivateMessage.js +1 -2
- package/lib/cjs/components/Notification/Skeleton.js +3 -6
- package/lib/cjs/components/Notification/UndeletedFor/UndeletedFor.js +2 -4
- package/lib/cjs/components/Notification/UserBlocked/UserBlocked.js +2 -4
- package/lib/cjs/components/Notification/UserConnection/UserConnection.js +1 -2
- package/lib/cjs/components/Notification/UserFollow/UserFollow.js +1 -2
- package/lib/cjs/components/Notification/VoteUp/VoteUp.js +1 -2
- package/lib/cjs/components/OnBoardingWidget/ActionsButton.js +3 -4
- package/lib/cjs/components/OnBoardingWidget/OnBoardingWidget.js +3 -4
- package/lib/cjs/components/OnBoardingWidget/Skeleton.js +2 -5
- package/lib/cjs/components/OnBoardingWidget/Steps/App/App.js +2 -4
- package/lib/cjs/components/OnBoardingWidget/Steps/Appearance/Appearance.js +5 -8
- package/lib/cjs/components/OnBoardingWidget/Steps/Category/Category.js +3 -5
- package/lib/cjs/components/OnBoardingWidget/Steps/Content/Content.js +2 -4
- package/lib/cjs/components/OnBoardingWidget/Steps/Invite/Invite.js +2 -4
- package/lib/cjs/components/OnBoardingWidget/Steps/Profile/Profile.js +3 -6
- package/lib/cjs/components/PlatformWidget/PlatformWidget.js +2 -4
- package/lib/cjs/components/PlatformWidget/Skeleton.js +2 -4
- package/lib/cjs/components/PollSuggestionWidget/PollSnippet/PollSnippet.js +1 -2
- package/lib/cjs/components/PollSuggestionWidget/PollSnippet/Skeleton.js +2 -4
- package/lib/cjs/components/PollSuggestionWidget/PollSuggestionWidget.js +3 -5
- package/lib/cjs/components/PollSuggestionWidget/Skeleton.js +2 -4
- package/lib/cjs/components/PrivateMessageComponent/PrivateMessageComponent.js +1 -2
- package/lib/cjs/components/PrivateMessageComponent/Skeleton.js +1 -2
- package/lib/cjs/components/PrivateMessageEditor/MessageMediaUploader/index.js +4 -6
- package/lib/cjs/components/PrivateMessageEditor/PrivateMessageEditor.js +5 -7
- package/lib/cjs/components/PrivateMessageEditor/Skeleton.js +2 -2
- package/lib/cjs/components/PrivateMessageSettingsIconButton/PrivateMessageSettingsIconButton.js +10 -12
- package/lib/cjs/components/PrivateMessageSnippetItem/PrivateMessageSnippetItem.js +1 -2
- package/lib/cjs/components/PrivateMessageSnippetItem/Skeleton.js +2 -8
- package/lib/cjs/components/PrivateMessageSnippets/PrivateMessageSnippets.js +2 -4
- package/lib/cjs/components/PrivateMessageSnippets/Skeleton.js +2 -4
- package/lib/cjs/components/PrivateMessageThread/PrivateMessageThread.js +2 -5
- package/lib/cjs/components/PrivateMessageThread/Skeleton.js +2 -4
- package/lib/cjs/components/PrivateMessageThreadItem/PrivateMessageThreadItem.js +7 -10
- package/lib/cjs/components/PrivateMessageThreadItem/Skeleton.js +2 -7
- package/lib/cjs/components/RelatedFeedObjectsWidget/RelatedFeedObjectsWidget.js +3 -5
- package/lib/cjs/components/RelatedFeedObjectsWidget/Skeleton.js +2 -2
- package/lib/cjs/components/SearchAutocomplete/SearchAutocomplete.js +1 -2
- package/lib/cjs/components/Skeleton/AvatarGroupSkeleton.js +1 -2
- package/lib/cjs/components/Skeleton/GenericSkeleton.js +2 -4
- package/lib/cjs/components/SnippetNotifications/Skeleton.js +2 -4
- package/lib/cjs/components/SnippetNotifications/SnippetNotifications.js +1 -2
- package/lib/cjs/components/TagAutocomplete/TagAutocomplete.d.ts +2 -3
- package/lib/cjs/components/TagAutocomplete/TagAutocomplete.js +3 -5
- package/lib/cjs/components/ToastNotifications/Skeleton.js +2 -2
- package/lib/cjs/components/ToastNotifications/ToastNotifications.js +1 -2
- package/lib/cjs/components/User/Skeleton.js +2 -4
- package/lib/cjs/components/User/User.js +1 -2
- package/lib/cjs/components/UserActionIconButton/UserActionIconButton.js +3 -4
- package/lib/cjs/components/UserConnectionsRequestsSentWidget/Skeleton.js +2 -2
- package/lib/cjs/components/UserConnectionsRequestsSentWidget/UserConnectionsRequestsSentWidget.js +3 -5
- package/lib/cjs/components/UserConnectionsRequestsWidget/Skeleton.js +2 -2
- package/lib/cjs/components/UserConnectionsRequestsWidget/UserConnectionsRequestsWidget.js +3 -5
- package/lib/cjs/components/UserConnectionsWidget/Skeleton.js +2 -2
- package/lib/cjs/components/UserConnectionsWidget/UserConnectionsWidget.js +3 -5
- package/lib/cjs/components/UserCounters/UserCounters.js +1 -2
- package/lib/cjs/components/UserCreatedCoursesWidget/Skeleton.js +2 -4
- package/lib/cjs/components/UserCreatedCoursesWidget/UserCreatedCoursesWidget.js +3 -5
- package/lib/cjs/components/UserFollowedCategoriesWidget/Skeleton.js +2 -2
- package/lib/cjs/components/UserFollowedCategoriesWidget/UserFollowedCategoriesWidget.js +3 -5
- package/lib/cjs/components/UserFollowedUsersWidget/Skeleton.js +2 -2
- package/lib/cjs/components/UserFollowedUsersWidget/UserFollowedUsersWidget.js +3 -5
- package/lib/cjs/components/UserFollowersWidget/Skeleton.js +2 -2
- package/lib/cjs/components/UserFollowersWidget/UserFollowersWidget.js +3 -5
- package/lib/cjs/components/UserInfo/Skeleton.js +2 -5
- package/lib/cjs/components/UserInfo/UserInfo.js +1 -2
- package/lib/cjs/components/UserProfileBlocked/UserProfileBlocked.js +1 -2
- package/lib/cjs/components/UserProfileEdit/Section/Account.js +1 -2
- package/lib/cjs/components/UserProfileEdit/Section/AccountCredentials.js +4 -6
- package/lib/cjs/components/UserProfileEdit/Section/PublicInfo.js +2 -4
- package/lib/cjs/components/UserProfileEdit/Section/Settings.js +1 -2
- package/lib/cjs/components/UserProfileEdit/Section/SettingsSkeleton.js +2 -5
- package/lib/cjs/components/UserProfileEdit/Skeleton.js +2 -5
- package/lib/cjs/components/UserProfileEdit/UserProfileEdit.js +1 -2
- package/lib/cjs/components/UserProfileHeader/Skeleton.js +2 -5
- package/lib/cjs/components/UserProfileHeader/UserProfileHeader.js +1 -2
- package/lib/cjs/components/UserSocialAssociation/UserSocialAssociation.js +1 -2
- package/lib/cjs/components/UserSubscribedGroupsWidget/Skeleton.js +2 -4
- package/lib/cjs/components/UserSubscribedGroupsWidget/UserSubscribedGroupsWidget.js +3 -5
- package/lib/cjs/components/UserSuggestionWidget/Skeleton.js +1 -2
- package/lib/cjs/components/UserSuggestionWidget/UserSuggestionWidget.js +2 -3
- package/lib/cjs/components/VoteAudienceButton/VoteAudienceButton.js +6 -8
- package/lib/cjs/components/VoteButton/VoteButton.js +4 -6
- package/lib/cjs/components/Widget/index.js +1 -2
- package/lib/cjs/shared/AutoPlayer/index.js +2 -2
- package/lib/cjs/shared/BaseDialog/BaseDialog.d.ts +1 -1
- package/lib/cjs/shared/BaseDialog/BaseDialog.js +6 -14
- package/lib/cjs/shared/BaseItem/BaseItem.js +1 -2
- package/lib/cjs/shared/BaseItemButton/BaseItemButton.js +1 -2
- package/lib/cjs/shared/Bullet/index.js +2 -2
- package/lib/cjs/shared/CentralProgress/index.d.ts +1 -1
- package/lib/cjs/shared/CentralProgress/index.js +2 -5
- package/lib/cjs/shared/ConfirmDialog/ConfirmDialog.js +2 -5
- package/lib/cjs/shared/ConsentSolutionSwitch/index.js +3 -5
- package/lib/cjs/shared/ContributionActionsMenu/index.js +8 -11
- package/lib/cjs/shared/CopyTextArea/index.d.ts +1 -1
- package/lib/cjs/shared/CopyTextArea/index.js +1 -2
- package/lib/cjs/shared/CustomSnackMessage/index.js +2 -4
- package/lib/cjs/shared/DateTimeAgo/index.js +2 -4
- package/lib/cjs/shared/EmailTextField/index.js +1 -2
- package/lib/cjs/shared/EmojiPicker/EmojiPicker.js +1 -2
- package/lib/cjs/shared/EventActionsMenu/index.js +8 -10
- package/lib/cjs/shared/HiddenPlaceholder/index.js +2 -2
- package/lib/cjs/shared/LanguageSwitcher/index.d.ts +1 -2
- package/lib/cjs/shared/LanguageSwitcher/index.js +1 -2
- package/lib/cjs/shared/LessonCommentActionsMenu/index.js +4 -7
- package/lib/cjs/shared/LessonFilePreview/index.js +2 -4
- package/lib/cjs/shared/Lightbox/BaseLightbox.js +1 -2
- package/lib/cjs/shared/Lightbox/Lightbox.js +2 -2
- package/lib/cjs/shared/Media/File/DisplayComponent.js +5 -7
- package/lib/cjs/shared/Media/File/PreviewComponent.js +2 -4
- package/lib/cjs/shared/Media/File/TriggerButton.js +10 -12
- package/lib/cjs/shared/Media/Link/DisplayComponent.d.ts +1 -1
- package/lib/cjs/shared/Media/Link/DisplayComponent.js +3 -5
- package/lib/cjs/shared/Media/Link/LayerComponent.js +2 -5
- package/lib/cjs/shared/Media/Link/PreviewComponent.d.ts +1 -1
- package/lib/cjs/shared/Media/Link/PreviewComponent.js +2 -4
- package/lib/cjs/shared/Media/Link/TriggerButton.js +2 -4
- package/lib/cjs/shared/Media/Link/UrlTextField/index.d.ts +1 -4
- package/lib/cjs/shared/Media/Link/UrlTextField/index.js +3 -6
- package/lib/cjs/shared/Media/Share/DisplayComponent.js +3 -4
- package/lib/cjs/shared/NewChip/NewChip.js +1 -2
- package/lib/cjs/shared/NotificationItem/NotificationItem.js +1 -2
- package/lib/cjs/shared/PasswordTextField/index.js +2 -5
- package/lib/cjs/shared/PhoneTextField/index.js +1 -2
- package/lib/cjs/shared/ProgressBar/index.d.ts +1 -1
- package/lib/cjs/shared/ProgressBar/index.js +2 -4
- package/lib/cjs/shared/ScrollContainer/index.js +2 -2
- package/lib/cjs/shared/TagChip/index.d.ts +1 -3
- package/lib/cjs/shared/TagChip/index.js +2 -3
- package/lib/cjs/shared/Tags/index.js +7 -13
- package/lib/cjs/shared/UpScalingTierBadge/index.js +2 -3
- package/lib/cjs/shared/UrlTextField/index.js +1 -2
- package/lib/cjs/shared/UserAvatar/UserAvatar.js +1 -2
- package/lib/cjs/shared/UserDeletedSnackBar/UserDeletedSnackBar.js +1 -2
- package/lib/cjs/shared/UsernameTextField/index.js +1 -2
- package/lib/esm/components/AcceptRequestUserEventButton/AcceptRequestUserEventButton.js +1 -1
- package/lib/esm/components/AccountChangeMailValidation/AccountChangeMailValidation.js +1 -2
- package/lib/esm/components/AccountDataPortability/AccountDataPortability.js +1 -3
- package/lib/esm/components/AccountDataPortabilityButton/AccountDataPortabilityButton.js +1 -2
- package/lib/esm/components/AccountDelete/AccountDelete.js +1 -2
- package/lib/esm/components/AccountDeleteButton/AccountDeleteButton.js +1 -2
- package/lib/esm/components/AccountRecover/AccountRecover.js +1 -2
- package/lib/esm/components/AccountReset/AccountReset.js +1 -2
- package/lib/esm/components/AccountVerify/AccountVerify.js +1 -2
- package/lib/esm/components/BroadcastMessages/BroadcastMessages.js +1 -2
- package/lib/esm/components/BroadcastMessages/Message.js +1 -3
- package/lib/esm/components/BroadcastMessages/Skeleton.js +1 -2
- package/lib/esm/components/Categories/Categories.js +1 -2
- package/lib/esm/components/Categories/Skeleton.js +1 -2
- package/lib/esm/components/CategoriesPopularWidget/CategoriesPopularWidget.js +1 -2
- package/lib/esm/components/CategoriesPopularWidget/Skeleton.js +1 -1
- package/lib/esm/components/CategoriesSuggestionWidget/CategoriesSuggestionWidget.js +1 -2
- package/lib/esm/components/CategoriesSuggestionWidget/Skeleton.js +1 -3
- package/lib/esm/components/Category/Category.js +1 -2
- package/lib/esm/components/Category/Skeleton.js +1 -3
- package/lib/esm/components/CategoryAutocomplete/CategoryAutocomplete.d.ts +2 -3
- package/lib/esm/components/CategoryAutocomplete/CategoryAutocomplete.js +1 -6
- package/lib/esm/components/CategoryFollowButton/CategoryFollowButton.js +1 -1
- package/lib/esm/components/CategoryFollowersButton/CategoryFollowersButton.d.ts +1 -1
- package/lib/esm/components/CategoryFollowersButton/CategoryFollowersButton.js +1 -3
- package/lib/esm/components/CategoryHeader/CategoryHeader.js +1 -2
- package/lib/esm/components/CategoryHeader/Skeleton.js +2 -4
- package/lib/esm/components/CategoryTrendingFeedWidget/CategoryTrendingFeedWidget.js +1 -3
- package/lib/esm/components/CategoryTrendingFeedWidget/Skeleton.js +1 -3
- package/lib/esm/components/CategoryTrendingUsersWidget/CategoryTrendingUsersWidget.js +1 -3
- package/lib/esm/components/CategoryTrendingUsersWidget/Skeleton.js +1 -3
- package/lib/esm/components/ChangeCover/ChangeCover.js +1 -4
- package/lib/esm/components/ChangeGroupCover/ChangeGroupCover.js +1 -3
- package/lib/esm/components/ChangeGroupPicture/ChangeGroupPicture.js +1 -3
- package/lib/esm/components/ChangePicture/ChangePicture.js +1 -3
- package/lib/esm/components/ChangePicture/ChangePictureDialog/ChangePictureDialog.js +1 -6
- package/lib/esm/components/CommentObject/CommentObject.js +1 -2
- package/lib/esm/components/CommentObject/Skeleton.js +1 -3
- package/lib/esm/components/CommentObjectReply/CommentObjectReply.js +1 -2
- package/lib/esm/components/CommentsFeedObject/CommentsFeedObject.js +1 -3
- package/lib/esm/components/CommentsFeedObject/Skeleton.js +1 -1
- package/lib/esm/components/CommentsObject/CommentsObject.js +1 -3
- package/lib/esm/components/CommentsObject/Skeleton.js +1 -2
- package/lib/esm/components/Composer/Attributes/Attributes.js +1 -3
- package/lib/esm/components/Composer/Composer.js +1 -3
- package/lib/esm/components/Composer/Content/ContentDiscussion/ContentDiscussion.js +1 -2
- package/lib/esm/components/Composer/Content/ContentLesson/ContentLesson.js +1 -2
- package/lib/esm/components/Composer/Content/ContentPoll/ContentPoll.js +4 -7
- package/lib/esm/components/Composer/Content/ContentPost/ContentPost.js +1 -2
- package/lib/esm/components/Composer/Layer/AudienceLayer/AudienceLayer.d.ts +2 -3
- package/lib/esm/components/Composer/Layer/AudienceLayer/AudienceLayer.js +1 -5
- package/lib/esm/components/Composer/Layer/CategoryLayer/CategoryLayer.js +1 -4
- package/lib/esm/components/Composer/Layer/CloseLayer/CloseLayer.js +2 -5
- package/lib/esm/components/Composer/Layer/LocationLayer/LocationLayer.d.ts +1 -1
- package/lib/esm/components/Composer/Layer/LocationLayer/LocationLayer.js +2 -5
- package/lib/esm/components/Composer/Skeleton.js +1 -3
- package/lib/esm/components/Composer/TypeSwitchButtonGroup/TypeSwitchButtonGroup.js +1 -2
- package/lib/esm/components/ConnectionUserButton/ConnectionUserButton.js +1 -2
- package/lib/esm/components/ConsentSolution/ConsentSolution.js +1 -8
- package/lib/esm/components/ConsentSolution/Skeleton.js +1 -3
- package/lib/esm/components/ConsentSolutionButton/ConsentSolutionButton.d.ts +1 -1
- package/lib/esm/components/ConsentSolutionButton/ConsentSolutionButton.js +1 -3
- package/lib/esm/components/Course/Course.js +1 -2
- package/lib/esm/components/Course/CreatePlaceholder.js +1 -2
- package/lib/esm/components/Course/Skeleton.js +1 -3
- package/lib/esm/components/CourseContentMenu/CourseContentMenu.js +1 -2
- package/lib/esm/components/CourseForm/CourseForm.js +1 -2
- package/lib/esm/components/CourseForm/Edit.js +1 -2
- package/lib/esm/components/CourseForm/UploadCourseCover.js +1 -3
- package/lib/esm/components/CourseFormDialog/CourseFormDialog.js +1 -1
- package/lib/esm/components/CourseJoinButton/CourseJoinButton.js +1 -1
- package/lib/esm/components/CourseParticipantsButton/CourseParticipantsButton.d.ts +1 -1
- package/lib/esm/components/CourseParticipantsButton/CourseParticipantsButton.js +1 -2
- package/lib/esm/components/Courses/Skeleton.js +1 -2
- package/lib/esm/components/CreateCourseButton/CreateCourseButton.js +1 -2
- package/lib/esm/components/CreateEventButton/CreateEventButton.js +1 -2
- package/lib/esm/components/CreateEventWidget/Skeleton.js +1 -3
- package/lib/esm/components/CreateGroupButton/CreateGroupButton.d.ts +1 -1
- package/lib/esm/components/CreateGroupButton/CreateGroupButton.js +1 -2
- package/lib/esm/components/CreateLiveStreamButton/CreateLiveStreamButton.d.ts +1 -1
- package/lib/esm/components/CreateLiveStreamButton/CreateLiveStreamButton.js +1 -2
- package/lib/esm/components/CreateLiveStreamDialog/CreateLiveStreamDialog.js +1 -3
- package/lib/esm/components/CreateLiveStreamDialog/LiveStreamSelector/LiveStreamSelector.js +1 -2
- package/lib/esm/components/CustomAdv/CustomAdv.js +1 -2
- package/lib/esm/components/CustomAdv/Skeleton.js +1 -1
- package/lib/esm/components/EditCourse/MenuRow.js +1 -2
- package/lib/esm/components/EditEventButton/EditEventButton.js +1 -1
- package/lib/esm/components/EditGroupButton/EditGroupButton.js +1 -1
- package/lib/esm/components/Editor/Editor.js +1 -2
- package/lib/esm/components/Editor/Skeleton.js +1 -1
- package/lib/esm/components/Editor/plugins/EmojiPlugin.js +1 -2
- package/lib/esm/components/Editor/plugins/FloatingLinkPlugin.js +1 -3
- package/lib/esm/components/Editor/plugins/HashtagPlugin.js +1 -1
- package/lib/esm/components/Editor/plugins/ImagePlugin.js +1 -2
- package/lib/esm/components/Editor/plugins/MediaPlugin.js +1 -2
- package/lib/esm/components/Editor/plugins/MentionsPlugin.js +1 -3
- package/lib/esm/components/Editor/plugins/ToolbarPlugin.js +1 -2
- package/lib/esm/components/Event/Event.js +1 -2
- package/lib/esm/components/Event/Skeleton.js +1 -3
- package/lib/esm/components/EventAutocomplete/EventAutocomplete.d.ts +2 -3
- package/lib/esm/components/EventAutocomplete/EventAutocomplete.js +1 -5
- package/lib/esm/components/EventForm/EventAddress.js +1 -3
- package/lib/esm/components/EventForm/EventForm.js +1 -2
- package/lib/esm/components/EventForm/UploadEventCover.js +1 -3
- package/lib/esm/components/EventFormDialog/EventFormDialog.js +1 -1
- package/lib/esm/components/EventHeader/EventHeader.js +1 -2
- package/lib/esm/components/EventHeader/Skeleton.js +1 -3
- package/lib/esm/components/EventInviteButton/EventInviteButton.d.ts +1 -1
- package/lib/esm/components/EventInviteButton/EventInviteButton.js +1 -3
- package/lib/esm/components/EventLocationWidget/EventLocationWidget.js +1 -2
- package/lib/esm/components/EventLocationWidget/Skeleton.js +1 -2
- package/lib/esm/components/EventMediaWidget/EventMediaWidget.js +1 -2
- package/lib/esm/components/EventMediaWidget/Skeleton.js +1 -3
- package/lib/esm/components/EventMediaWidget/TriggerButton.js +1 -3
- package/lib/esm/components/EventParticipantsButton/EventParticipantsButton.d.ts +1 -1
- package/lib/esm/components/EventParticipantsButton/EventParticipantsButton.js +1 -2
- package/lib/esm/components/EventSubscribeButton/EventSubscribeButton.js +1 -2
- package/lib/esm/components/Events/LocationEventsFilter.js +1 -2
- package/lib/esm/components/Events/Skeleton.js +1 -2
- package/lib/esm/components/Feed/Feed.js +1 -2
- package/lib/esm/components/Feed/Skeleton.js +1 -2
- package/lib/esm/components/FeedObject/Actions/Actions.js +1 -1
- package/lib/esm/components/FeedObject/Actions/Comment/Comment.js +1 -4
- package/lib/esm/components/FeedObject/Actions/Follow/Follow.js +1 -3
- package/lib/esm/components/FeedObject/Actions/Share/Share.js +1 -6
- package/lib/esm/components/FeedObject/Actions/Share/SharesDialog/SharesDialog.js +1 -2
- package/lib/esm/components/FeedObject/Actions/Vote/Vote.js +1 -2
- package/lib/esm/components/FeedObject/Activities/Activities.js +1 -2
- package/lib/esm/components/FeedObject/Activities/ActivitiesMenu/ActivitiesMenu.js +1 -6
- package/lib/esm/components/FeedObject/Activities/RelevantActivities/CommentActivity/CommentActivity.js +1 -2
- package/lib/esm/components/FeedObject/Activities/RelevantActivities/FollowActivity/FollowActivity.js +1 -2
- package/lib/esm/components/FeedObject/Activities/RelevantActivities/PollVoteActivity/PollVoteActivity.js +1 -2
- package/lib/esm/components/FeedObject/Activities/RelevantActivities/RelevantActivities.js +1 -3
- package/lib/esm/components/FeedObject/Activities/RelevantActivities/VoteUpActivity/VoteUpActivity.js +1 -2
- package/lib/esm/components/FeedObject/Contributors/Contributors.js +1 -2
- package/lib/esm/components/FeedObject/Contributors/Skeleton.js +1 -2
- package/lib/esm/components/FeedObject/FeedObject.js +1 -4
- package/lib/esm/components/FeedObject/Poll/Choice/Choice.js +1 -4
- package/lib/esm/components/FeedObject/Poll/Poll.js +1 -5
- package/lib/esm/components/FeedObject/Skeleton.js +1 -3
- package/lib/esm/components/FeedObjectMediaPreview/FeedObjectMediaPreview.js +1 -2
- package/lib/esm/components/FeedUpdatesWidget/FeedUpdatesWidget.js +1 -2
- package/lib/esm/components/FeedUpdatesWidget/Skeleton.js +1 -1
- package/lib/esm/components/FollowUserButton/FollowUserButton.js +1 -1
- package/lib/esm/components/Footer/Footer.js +1 -2
- package/lib/esm/components/Footer/Skeleton.js +1 -3
- package/lib/esm/components/FriendshipUserButton/FriendshipUserButton.js +1 -1
- package/lib/esm/components/Group/Group.js +1 -2
- package/lib/esm/components/Group/Skeleton.js +1 -3
- package/lib/esm/components/GroupActionsMenu/index.js +1 -3
- package/lib/esm/components/GroupAutocomplete/GroupAutocomplete.d.ts +2 -3
- package/lib/esm/components/GroupAutocomplete/GroupAutocomplete.js +1 -5
- package/lib/esm/components/GroupForm/GroupForm.js +1 -2
- package/lib/esm/components/GroupHeader/GroupHeader.js +1 -2
- package/lib/esm/components/GroupHeader/Skeleton.js +1 -3
- package/lib/esm/components/GroupInfoWidget/GroupInfoWidget.js +1 -2
- package/lib/esm/components/GroupInfoWidget/Skeleton.js +1 -1
- package/lib/esm/components/GroupInviteButton/GroupInviteButton.d.ts +1 -1
- package/lib/esm/components/GroupInviteButton/GroupInviteButton.js +1 -3
- package/lib/esm/components/GroupInvitedWidget/GroupInvitedWidget.js +1 -3
- package/lib/esm/components/GroupInvitedWidget/Skeleton.js +1 -1
- package/lib/esm/components/GroupMembersButton/GroupMembersButton.d.ts +1 -1
- package/lib/esm/components/GroupMembersButton/GroupMembersButton.js +1 -3
- package/lib/esm/components/GroupMembersWidget/GroupMembersWidget.js +1 -3
- package/lib/esm/components/GroupMembersWidget/Skeleton.js +1 -1
- package/lib/esm/components/GroupRequestsWidget/GroupRequestsWidget.js +1 -3
- package/lib/esm/components/GroupRequestsWidget/Skeleton.js +1 -1
- package/lib/esm/components/GroupSettingsIconButton/GroupSettingsIconButton.js +1 -3
- package/lib/esm/components/GroupSubscribeButton/GroupSubscribeButton.js +1 -1
- package/lib/esm/components/Groups/Groups.js +1 -2
- package/lib/esm/components/Groups/Skeleton.js +2 -2
- package/lib/esm/components/Incubator/Incubator.js +1 -4
- package/lib/esm/components/Incubator/Skeleton.js +1 -3
- package/lib/esm/components/IncubatorDetail/IncubatorDetail.js +1 -3
- package/lib/esm/components/IncubatorListWidget/CreateIncubatorDialog/CreateIncubatorDialog.js +1 -2
- package/lib/esm/components/IncubatorListWidget/IncubatorListWidget.js +1 -5
- package/lib/esm/components/IncubatorListWidget/Skeleton.js +1 -3
- package/lib/esm/components/IncubatorSubscribeButton/IncubatorSubscribeButton.js +1 -1
- package/lib/esm/components/IncubatorSuggestionWidget/IncubatorSuggestionWidget.js +1 -3
- package/lib/esm/components/IncubatorSuggestionWidget/Skeleton.js +1 -3
- package/lib/esm/components/InlineComposerWidget/InlineComposerWidget.js +1 -2
- package/lib/esm/components/InlineComposerWidget/Skeleton.js +1 -3
- package/lib/esm/components/InviteUserEventButton/InviteUserEventButton.js +1 -1
- package/lib/esm/components/LessonAppbar/LessonAppbar.js +1 -2
- package/lib/esm/components/LessonCommentObject/LessonCommentObject.js +1 -2
- package/lib/esm/components/LessonCommentObject/Skeleton.js +1 -3
- package/lib/esm/components/LessonCommentObjects/LessonCommentObjects.js +1 -2
- package/lib/esm/components/LessonCommentObjects/Skeleton.js +1 -2
- package/lib/esm/components/LessonDrawer/LessonDrawer.js +1 -2
- package/lib/esm/components/LessonEditForm/LessonEditForm.js +1 -2
- package/lib/esm/components/LessonObject/LessonObject.js +1 -3
- package/lib/esm/components/LessonReleaseMenu/LessonReleaseMenu.js +1 -1
- package/lib/esm/components/LiveStream/LiveStream.js +1 -2
- package/lib/esm/components/LiveStream/Skeleton.js +1 -3
- package/lib/esm/components/LiveStreamForm/LiveStreamForm.js +1 -2
- package/lib/esm/components/LiveStreamForm/LiveStreamFormSettings.js +1 -2
- package/lib/esm/components/LiveStreamRoom/LiveStreamRoom.js +1 -3
- package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/LiveStreamSettingsMenu.js +1 -4
- package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/LiveStreamVideoConference.js +1 -3
- package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/NoParticipants.js +1 -2
- package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/ParticipantTileActions.js +1 -3
- package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/ParticipantTileAvatar.js +1 -2
- package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/VideoConference.js +1 -3
- package/lib/esm/components/LocationAutocomplete/LocationAutocomplete.d.ts +2 -3
- package/lib/esm/components/LocationAutocomplete/LocationAutocomplete.js +1 -4
- package/lib/esm/components/LoyaltyProgramWidget/LoyaltyProgramWidget.js +1 -3
- package/lib/esm/components/LoyaltyProgramWidget/Skeleton.js +1 -2
- package/lib/esm/components/MyEventsWidget/MyEventsWidget.js +1 -2
- package/lib/esm/components/NavigationMenuIconButton/DefaultDrawerContent.js +1 -2
- package/lib/esm/components/NavigationMenuIconButton/DefaultDrawerSkeleton.js +1 -2
- package/lib/esm/components/NavigationMenuIconButton/DefaultHeaderContent.js +1 -2
- package/lib/esm/components/NavigationMenuIconButton/NavigationMenuDrawer.js +1 -2
- package/lib/esm/components/NavigationMenuIconButton/NavigationMenuIconButton.js +1 -2
- package/lib/esm/components/NavigationSettingsIconButton/NavigationSettingsIconButton.js +1 -2
- package/lib/esm/components/NavigationToolbar/NavigationToolbar.js +1 -2
- package/lib/esm/components/NavigationToolbar/Skeleton.js +1 -3
- package/lib/esm/components/NavigationToolbarMobile/NavigationToolbarMobile.js +1 -2
- package/lib/esm/components/NavigationToolbarMobile/Skeleton.js +1 -3
- package/lib/esm/components/Notification/CollapsedFor/CollapsedFor.js +1 -3
- package/lib/esm/components/Notification/Comment/Comment.js +1 -2
- package/lib/esm/components/Notification/Contribution/Contribution.js +1 -2
- package/lib/esm/components/Notification/ContributionFollow/ContributionFollow.js +1 -2
- package/lib/esm/components/Notification/Course/Course.js +1 -2
- package/lib/esm/components/Notification/DeletedFor/DeletedFor.js +1 -3
- package/lib/esm/components/Notification/Event/Event.js +1 -2
- package/lib/esm/components/Notification/Group/Group.js +1 -2
- package/lib/esm/components/Notification/IncubatorApproved/IncubatorApproved.js +1 -2
- package/lib/esm/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.js +1 -3
- package/lib/esm/components/Notification/KindlyNoticeFor/KindlyNoticeFor.js +1 -3
- package/lib/esm/components/Notification/LiveStream/LiveStream.js +1 -2
- package/lib/esm/components/Notification/Mention/Mention.js +1 -2
- package/lib/esm/components/Notification/Notification.js +1 -4
- package/lib/esm/components/Notification/PrivateMessage/PrivateMessage.js +1 -2
- package/lib/esm/components/Notification/Skeleton.js +1 -4
- package/lib/esm/components/Notification/UndeletedFor/UndeletedFor.js +1 -3
- package/lib/esm/components/Notification/UserBlocked/UserBlocked.js +1 -3
- package/lib/esm/components/Notification/UserConnection/UserConnection.js +1 -2
- package/lib/esm/components/Notification/UserFollow/UserFollow.js +1 -2
- package/lib/esm/components/Notification/VoteUp/VoteUp.js +1 -2
- package/lib/esm/components/OnBoardingWidget/ActionsButton.js +1 -2
- package/lib/esm/components/OnBoardingWidget/OnBoardingWidget.js +1 -2
- package/lib/esm/components/OnBoardingWidget/Skeleton.js +1 -3
- package/lib/esm/components/OnBoardingWidget/Steps/App/App.js +1 -3
- package/lib/esm/components/OnBoardingWidget/Steps/Appearance/Appearance.js +1 -4
- package/lib/esm/components/OnBoardingWidget/Steps/Category/Category.js +1 -3
- package/lib/esm/components/OnBoardingWidget/Steps/Content/Content.js +1 -3
- package/lib/esm/components/OnBoardingWidget/Steps/Invite/Invite.js +1 -3
- package/lib/esm/components/OnBoardingWidget/Steps/Profile/Profile.js +1 -4
- package/lib/esm/components/PlatformWidget/PlatformWidget.js +1 -3
- package/lib/esm/components/PlatformWidget/Skeleton.js +1 -3
- package/lib/esm/components/PollSuggestionWidget/PollSnippet/PollSnippet.js +1 -2
- package/lib/esm/components/PollSuggestionWidget/PollSnippet/Skeleton.js +1 -3
- package/lib/esm/components/PollSuggestionWidget/PollSuggestionWidget.js +1 -3
- package/lib/esm/components/PollSuggestionWidget/Skeleton.js +1 -3
- package/lib/esm/components/PrivateMessageComponent/PrivateMessageComponent.js +1 -2
- package/lib/esm/components/PrivateMessageComponent/Skeleton.js +1 -2
- package/lib/esm/components/PrivateMessageEditor/MessageMediaUploader/index.js +1 -3
- package/lib/esm/components/PrivateMessageEditor/PrivateMessageEditor.js +1 -3
- package/lib/esm/components/PrivateMessageEditor/Skeleton.js +1 -1
- package/lib/esm/components/PrivateMessageSettingsIconButton/PrivateMessageSettingsIconButton.js +1 -3
- package/lib/esm/components/PrivateMessageSnippetItem/PrivateMessageSnippetItem.js +1 -2
- package/lib/esm/components/PrivateMessageSnippetItem/Skeleton.js +1 -6
- package/lib/esm/components/PrivateMessageSnippets/PrivateMessageSnippets.js +1 -3
- package/lib/esm/components/PrivateMessageSnippets/Skeleton.js +1 -3
- package/lib/esm/components/PrivateMessageThread/PrivateMessageThread.js +1 -4
- package/lib/esm/components/PrivateMessageThread/Skeleton.js +1 -3
- package/lib/esm/components/PrivateMessageThreadItem/PrivateMessageThreadItem.js +1 -4
- package/lib/esm/components/PrivateMessageThreadItem/Skeleton.js +1 -5
- package/lib/esm/components/RelatedFeedObjectsWidget/RelatedFeedObjectsWidget.js +1 -3
- package/lib/esm/components/RelatedFeedObjectsWidget/Skeleton.js +1 -1
- package/lib/esm/components/SearchAutocomplete/SearchAutocomplete.js +1 -2
- package/lib/esm/components/Skeleton/AvatarGroupSkeleton.js +1 -2
- package/lib/esm/components/Skeleton/GenericSkeleton.js +1 -3
- package/lib/esm/components/SnippetNotifications/Skeleton.js +1 -3
- package/lib/esm/components/SnippetNotifications/SnippetNotifications.js +1 -2
- package/lib/esm/components/TagAutocomplete/TagAutocomplete.d.ts +2 -3
- package/lib/esm/components/TagAutocomplete/TagAutocomplete.js +1 -3
- package/lib/esm/components/ToastNotifications/Skeleton.js +1 -1
- package/lib/esm/components/ToastNotifications/ToastNotifications.js +1 -2
- package/lib/esm/components/User/Skeleton.js +1 -3
- package/lib/esm/components/User/User.js +1 -2
- package/lib/esm/components/UserActionIconButton/UserActionIconButton.js +1 -2
- package/lib/esm/components/UserConnectionsRequestsSentWidget/Skeleton.js +1 -1
- package/lib/esm/components/UserConnectionsRequestsSentWidget/UserConnectionsRequestsSentWidget.js +1 -3
- package/lib/esm/components/UserConnectionsRequestsWidget/Skeleton.js +1 -1
- package/lib/esm/components/UserConnectionsRequestsWidget/UserConnectionsRequestsWidget.js +1 -3
- package/lib/esm/components/UserConnectionsWidget/Skeleton.js +1 -1
- package/lib/esm/components/UserConnectionsWidget/UserConnectionsWidget.js +1 -3
- package/lib/esm/components/UserCounters/UserCounters.js +1 -2
- package/lib/esm/components/UserCreatedCoursesWidget/Skeleton.js +1 -3
- package/lib/esm/components/UserCreatedCoursesWidget/UserCreatedCoursesWidget.js +1 -3
- package/lib/esm/components/UserFollowedCategoriesWidget/Skeleton.js +1 -1
- package/lib/esm/components/UserFollowedCategoriesWidget/UserFollowedCategoriesWidget.js +1 -3
- package/lib/esm/components/UserFollowedUsersWidget/Skeleton.js +1 -1
- package/lib/esm/components/UserFollowedUsersWidget/UserFollowedUsersWidget.js +1 -3
- package/lib/esm/components/UserFollowersWidget/Skeleton.js +1 -1
- package/lib/esm/components/UserFollowersWidget/UserFollowersWidget.js +1 -3
- package/lib/esm/components/UserInfo/Skeleton.js +1 -3
- package/lib/esm/components/UserInfo/UserInfo.js +1 -2
- package/lib/esm/components/UserProfileBlocked/UserProfileBlocked.js +1 -2
- package/lib/esm/components/UserProfileEdit/Section/Account.js +1 -2
- package/lib/esm/components/UserProfileEdit/Section/AccountCredentials.js +1 -3
- package/lib/esm/components/UserProfileEdit/Section/PublicInfo.js +1 -3
- package/lib/esm/components/UserProfileEdit/Section/Settings.js +1 -2
- package/lib/esm/components/UserProfileEdit/Section/SettingsSkeleton.js +1 -3
- package/lib/esm/components/UserProfileEdit/Skeleton.js +1 -3
- package/lib/esm/components/UserProfileEdit/UserProfileEdit.js +1 -2
- package/lib/esm/components/UserProfileHeader/Skeleton.js +1 -3
- package/lib/esm/components/UserProfileHeader/UserProfileHeader.js +1 -2
- package/lib/esm/components/UserSocialAssociation/UserSocialAssociation.js +1 -2
- package/lib/esm/components/UserSubscribedGroupsWidget/Skeleton.js +1 -3
- package/lib/esm/components/UserSubscribedGroupsWidget/UserSubscribedGroupsWidget.js +1 -3
- package/lib/esm/components/UserSuggestionWidget/Skeleton.js +1 -2
- package/lib/esm/components/UserSuggestionWidget/UserSuggestionWidget.js +1 -2
- package/lib/esm/components/VoteAudienceButton/VoteAudienceButton.js +1 -3
- package/lib/esm/components/VoteButton/VoteButton.js +1 -3
- package/lib/esm/components/Widget/index.js +1 -2
- package/lib/esm/shared/AutoPlayer/index.js +1 -1
- package/lib/esm/shared/BaseDialog/BaseDialog.d.ts +1 -1
- package/lib/esm/shared/BaseDialog/BaseDialog.js +1 -9
- package/lib/esm/shared/BaseItem/BaseItem.js +1 -2
- package/lib/esm/shared/BaseItemButton/BaseItemButton.js +1 -2
- package/lib/esm/shared/Bullet/index.js +1 -1
- package/lib/esm/shared/CentralProgress/index.d.ts +1 -1
- package/lib/esm/shared/CentralProgress/index.js +1 -3
- package/lib/esm/shared/ConfirmDialog/ConfirmDialog.js +1 -4
- package/lib/esm/shared/ConsentSolutionSwitch/index.js +1 -3
- package/lib/esm/shared/ContributionActionsMenu/index.js +1 -4
- package/lib/esm/shared/CopyTextArea/index.d.ts +1 -1
- package/lib/esm/shared/CopyTextArea/index.js +1 -2
- package/lib/esm/shared/CustomSnackMessage/index.js +1 -3
- package/lib/esm/shared/DateTimeAgo/index.js +1 -3
- package/lib/esm/shared/EmailTextField/index.js +1 -2
- package/lib/esm/shared/EmojiPicker/EmojiPicker.js +1 -2
- package/lib/esm/shared/EventActionsMenu/index.js +1 -3
- package/lib/esm/shared/HiddenPlaceholder/index.js +1 -1
- package/lib/esm/shared/LanguageSwitcher/index.d.ts +1 -2
- package/lib/esm/shared/LanguageSwitcher/index.js +1 -2
- package/lib/esm/shared/LessonCommentActionsMenu/index.js +1 -4
- package/lib/esm/shared/LessonFilePreview/index.js +1 -3
- package/lib/esm/shared/Lightbox/BaseLightbox.js +1 -2
- package/lib/esm/shared/Lightbox/Lightbox.js +1 -1
- package/lib/esm/shared/Media/File/DisplayComponent.js +1 -3
- package/lib/esm/shared/Media/File/PreviewComponent.js +1 -3
- package/lib/esm/shared/Media/File/TriggerButton.js +7 -9
- package/lib/esm/shared/Media/Link/DisplayComponent.d.ts +1 -1
- package/lib/esm/shared/Media/Link/DisplayComponent.js +1 -3
- package/lib/esm/shared/Media/Link/LayerComponent.js +2 -5
- package/lib/esm/shared/Media/Link/PreviewComponent.d.ts +1 -1
- package/lib/esm/shared/Media/Link/PreviewComponent.js +1 -3
- package/lib/esm/shared/Media/Link/TriggerButton.js +1 -3
- package/lib/esm/shared/Media/Link/UrlTextField/index.d.ts +1 -4
- package/lib/esm/shared/Media/Link/UrlTextField/index.js +1 -4
- package/lib/esm/shared/Media/Share/DisplayComponent.js +1 -2
- package/lib/esm/shared/NewChip/NewChip.js +1 -2
- package/lib/esm/shared/NotificationItem/NotificationItem.js +1 -2
- package/lib/esm/shared/PasswordTextField/index.js +1 -3
- package/lib/esm/shared/PhoneTextField/index.js +1 -2
- package/lib/esm/shared/ProgressBar/index.d.ts +1 -1
- package/lib/esm/shared/ProgressBar/index.js +1 -3
- package/lib/esm/shared/ScrollContainer/index.js +1 -1
- package/lib/esm/shared/TagChip/index.d.ts +1 -3
- package/lib/esm/shared/TagChip/index.js +1 -2
- package/lib/esm/shared/Tags/index.js +1 -7
- package/lib/esm/shared/UpScalingTierBadge/index.js +1 -2
- package/lib/esm/shared/UrlTextField/index.js +1 -2
- package/lib/esm/shared/UserAvatar/UserAvatar.js +1 -2
- package/lib/esm/shared/UserDeletedSnackBar/UserDeletedSnackBar.js +1 -2
- package/lib/esm/shared/UsernameTextField/index.js +1 -2
- package/lib/umd/react-ui.js +1 -1
- package/package.json +4 -4
|
@@ -1,10 +1,7 @@
|
|
|
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 material_1 = require("@mui/material");
|
|
6
|
-
const styles_1 = require("@mui/material/styles");
|
|
7
|
-
const Skeleton_1 = tslib_1.__importDefault(require("@mui/material/Skeleton"));
|
|
8
5
|
const constants_1 = require("./constants");
|
|
9
6
|
const classes = {
|
|
10
7
|
root: `${constants_1.PREFIX}-skeleton-root`,
|
|
@@ -12,7 +9,7 @@ const classes = {
|
|
|
12
9
|
navigation: `${constants_1.PREFIX}-navigation`,
|
|
13
10
|
avatar: `${constants_1.PREFIX}-avatar`
|
|
14
11
|
};
|
|
15
|
-
const Root = (0,
|
|
12
|
+
const Root = (0, material_1.styled)(material_1.Toolbar, {
|
|
16
13
|
name: constants_1.PREFIX,
|
|
17
14
|
slot: 'SkeletonRoot'
|
|
18
15
|
})(() => ({}));
|
|
@@ -40,6 +37,6 @@ const Root = (0, styles_1.styled)(material_1.Toolbar, {
|
|
|
40
37
|
*
|
|
41
38
|
*/
|
|
42
39
|
function NavigationToolbarSkeleton() {
|
|
43
|
-
return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: classes.root }, { children: [(0, jsx_runtime_1.jsx)(
|
|
40
|
+
return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: classes.root }, { children: [(0, jsx_runtime_1.jsx)(material_1.Skeleton, { className: classes.logo, animation: "wave", variant: "rectangular" }), (0, jsx_runtime_1.jsx)(material_1.Skeleton, { className: classes.navigation, animation: "wave", variant: "rectangular" }), (0, jsx_runtime_1.jsx)(material_1.Skeleton, { className: classes.avatar, animation: "wave", variant: "rounded" })] })));
|
|
44
41
|
}
|
|
45
42
|
exports.default = NavigationToolbarSkeleton;
|
|
@@ -5,7 +5,6 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
5
5
|
const material_1 = require("@mui/material");
|
|
6
6
|
const react_1 = require("react");
|
|
7
7
|
const react_core_1 = require("@selfcommunity/react-core");
|
|
8
|
-
const Icon_1 = tslib_1.__importDefault(require("@mui/material/Icon"));
|
|
9
8
|
const system_1 = require("@mui/system");
|
|
10
9
|
const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
11
10
|
const Skeleton_1 = tslib_1.__importDefault(require("./Skeleton"));
|
|
@@ -109,8 +108,8 @@ function NavigationToolbarMobile(inProps) {
|
|
|
109
108
|
const _children = children || ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(NavigationMenuIconButtonComponent, {}), (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes.HOME_ROUTE_NAME, {}), className: (0, classnames_1.default)(className, classes.logo, {
|
|
110
109
|
[classes.logoFlex]: preferences[react_core_1.SCPreferences.CONFIGURATIONS_CUSTOM_NAVBAR_ITEM_URL].value
|
|
111
110
|
}) }, { children: !preserveDesktopLogo ? ((0, jsx_runtime_1.jsx)("img", { src: preferences[react_core_1.SCPreferences.LOGO_NAVBAR_LOGO_MOBILE].value, alt: "logo" })) : ((0, jsx_runtime_1.jsx)("img", { src: preferences[react_core_1.SCPreferences.LOGO_NAVBAR_LOGO].value, alt: "logo" })) })), preferences[react_core_1.SCPreferences.CONFIGURATIONS_CUSTOM_NAVBAR_ITEM_ENABLED].value && ((0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ target: "blank", to: preferences[react_core_1.SCPreferences.CONFIGURATIONS_CUSTOM_NAVBAR_ITEM_URL].value, className: classes.customItem }, { children: (0, jsx_runtime_1.jsx)("img", { src: preferences[react_core_1.SCPreferences.CONFIGURATIONS_CUSTOM_NAVBAR_ITEM_IMAGE].value, alt: "custom_item" }) })))] }));
|
|
112
|
-
return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: (0, classnames_1.default)(className, classes.root) }, rest, { children: [_children, startActions, (contentAvailable || scUserContext.user) && !disableSearch && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ className: classes.search, onClick: handleOpenSearch }, { children: (0, jsx_runtime_1.jsx)(
|
|
111
|
+
return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: (0, classnames_1.default)(className, classes.root) }, rest, { children: [_children, startActions, (contentAvailable || scUserContext.user) && !disableSearch && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ className: classes.search, onClick: handleOpenSearch }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "search" }) })), (0, jsx_runtime_1.jsx)(SearchDialog_1.default, { className: classes.searchDialog, fullScreen: true, open: searchOpen, SearchAutocompleteComponentProps: Object.assign(Object.assign({}, SearchAutocompleteComponentProps), { onClear: handleCloseSearch }) })] })), endActions, (!postOnlyStaffEnabled || (react_core_1.UserUtils.isStaff(scUserContext.user) && postOnlyStaffEnabled)) &&
|
|
113
112
|
(scUserContext.user || contentAvailable) &&
|
|
114
|
-
exploreStreamEnabled && (0, jsx_runtime_1.jsx)(ComposerIconButton_1.default, Object.assign({}, ComposerIconButtonProps)), scUserContext.user && (groupsEnabled || eventsEnabled) && ((0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ className: classes.notifications, component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.USER_NOTIFICATIONS_ROUTE_NAME, {}) }, { children: (0, jsx_runtime_1.jsx)(material_1.Badge, Object.assign({ badgeContent: scUserContext.user.unseen_notification_banners_counter + scUserContext.user.unseen_interactions_counter, color: "secondary" }, { children: (0, jsx_runtime_1.jsx)(
|
|
113
|
+
exploreStreamEnabled && (0, jsx_runtime_1.jsx)(ComposerIconButton_1.default, Object.assign({}, ComposerIconButtonProps)), scUserContext.user && (groupsEnabled || eventsEnabled) && ((0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ className: classes.notifications, component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.USER_NOTIFICATIONS_ROUTE_NAME, {}) }, { children: (0, jsx_runtime_1.jsx)(material_1.Badge, Object.assign({ badgeContent: scUserContext.user.unseen_notification_banners_counter + scUserContext.user.unseen_interactions_counter, color: "secondary" }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "notifications_active" }) })) }))), scUserContext.user ? ((0, jsx_runtime_1.jsx)(NavigationSettingsIconButtonComponent, { className: classes.settings })) : ((0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ className: classes.login, color: "inherit", component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.SIGNIN_ROUTE_NAME, {}) }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.appBar.navigation.login", defaultMessage: "ui.appBar.navigation.login" }) })))] })));
|
|
115
114
|
}
|
|
116
115
|
exports.default = NavigationToolbarMobile;
|
|
@@ -1,16 +1,13 @@
|
|
|
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 material_1 = require("@mui/material");
|
|
6
|
-
const styles_1 = require("@mui/material/styles");
|
|
7
|
-
const Skeleton_1 = tslib_1.__importDefault(require("@mui/material/Skeleton"));
|
|
8
5
|
const constants_1 = require("./constants");
|
|
9
6
|
const classes = {
|
|
10
7
|
root: `${constants_1.PREFIX}-skeleton-root`,
|
|
11
8
|
logo: `${constants_1.PREFIX}-logo`
|
|
12
9
|
};
|
|
13
|
-
const Root = (0,
|
|
10
|
+
const Root = (0, material_1.styled)(material_1.Toolbar, {
|
|
14
11
|
name: constants_1.PREFIX,
|
|
15
12
|
slot: 'SkeletonRoot'
|
|
16
13
|
})(() => ({}));
|
|
@@ -36,6 +33,6 @@ const Root = (0, styles_1.styled)(material_1.Toolbar, {
|
|
|
36
33
|
*
|
|
37
34
|
*/
|
|
38
35
|
function NavigationToolbarMobileSkeleton() {
|
|
39
|
-
return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: classes.root }, { children: (0, jsx_runtime_1.jsx)(
|
|
36
|
+
return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: classes.root }, { children: (0, jsx_runtime_1.jsx)(material_1.Skeleton, { className: classes.logo, animation: "wave", variant: "rectangular" }) })));
|
|
40
37
|
}
|
|
41
38
|
exports.default = NavigationToolbarMobileSkeleton;
|
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const styles_1 = require("@mui/material/styles");
|
|
6
5
|
const material_1 = require("@mui/material");
|
|
7
|
-
const Icon_1 = tslib_1.__importDefault(require("@mui/material/Icon"));
|
|
8
6
|
const utils_1 = require("@selfcommunity/utils");
|
|
9
7
|
const react_core_1 = require("@selfcommunity/react-core");
|
|
10
8
|
const react_intl_1 = require("react-intl");
|
|
@@ -45,7 +43,7 @@ const classes = {
|
|
|
45
43
|
contributionYouWroteLabel: `${constants_1.PREFIX}-contribution-you-wrote-label`,
|
|
46
44
|
contributionText: `${constants_1.PREFIX}-contribution-text`
|
|
47
45
|
};
|
|
48
|
-
const Root = (0,
|
|
46
|
+
const Root = (0, material_1.styled)(NotificationItem_1.default, {
|
|
49
47
|
name: constants_1.PREFIX,
|
|
50
48
|
slot: 'CollapsedForRoot'
|
|
51
49
|
})(() => ({}));
|
|
@@ -67,6 +65,6 @@ function CollapsedForNotification(props) {
|
|
|
67
65
|
/**
|
|
68
66
|
* Renders root object
|
|
69
67
|
*/
|
|
70
|
-
return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${constants_1.PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: (0, jsx_runtime_1.jsx)(material_1.Avatar, Object.assign({ variant: "circular", classes: { root: classes.flagIcon } }, { children: (0, jsx_runtime_1.jsx)(
|
|
68
|
+
return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${constants_1.PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: (0, jsx_runtime_1.jsx)(material_1.Avatar, Object.assign({ variant: "circular", classes: { root: classes.flagIcon } }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "outlined_flag" }) })), primary: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: isSnippetTemplate ? ((0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(notificationObject[contributionType])) }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ component: "div", color: "inherit", className: classes.flagText }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: `ui.notification.collapsedFor.${(0, utils_1.camelCase)(notificationObject.type)}Snippet`, defaultMessage: `ui.notification.collapsedFor.${(0, utils_1.camelCase)(notificationObject.type)}Snippet` }) })) }))) : ((0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ component: "div", color: "inherit", className: classes.flagText }, { children: intl.formatMessage(messages[(0, utils_1.camelCase)(notificationObject.type)], { b: (...chunks) => (0, jsx_runtime_1.jsx)("strong", { children: chunks }) }) }))) }), secondary: (template === types_1.SCNotificationObjectTemplateType.DETAIL || template === types_1.SCNotificationObjectTemplateType.SNIPPET) && ((0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at, className: classes.activeAt })), footer: isSnippetTemplate ? null : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ className: classes.contributionWrap }, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: 'body2', color: 'inherit', component: 'div', classes: { root: classes.contributionYouWroteLabel } }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.notification.collapsedFor.youWrote", defaultMessage: "ui.notification.collapsedFor.youWrote" }) })), (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(notificationObject[contributionType])), className: classes.contributionText }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ component: 'span', variant: "body2", gutterBottom: true }, { children: (0, contribution_1.getContributionSnippet)(notificationObject[contributionType]) })) }))] })), template === types_1.SCNotificationObjectTemplateType.TOAST && ((0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: [(0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at }), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ color: "primary", component: 'div' }, { children: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes[`${notificationObject[contributionType]['type'].toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(notificationObject[contributionType])) }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userToastNotifications.viewContribution", defaultMessage: 'ui.userToastNotifications.viewContribution' }) })) }))] })))] })) }, rest)));
|
|
71
69
|
}
|
|
72
70
|
exports.default = CollapsedForNotification;
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const react_1 = tslib_1.__importStar(require("react"));
|
|
6
|
-
const styles_1 = require("@mui/material/styles");
|
|
7
6
|
const material_1 = require("@mui/material");
|
|
8
7
|
const react_core_1 = require("@selfcommunity/react-core");
|
|
9
8
|
const types_1 = require("@selfcommunity/types");
|
|
@@ -37,7 +36,7 @@ const classes = {
|
|
|
37
36
|
activeAt: `${constants_1.PREFIX}-active-at`,
|
|
38
37
|
bullet: `${constants_1.PREFIX}-bullet`
|
|
39
38
|
};
|
|
40
|
-
const Root = (0,
|
|
39
|
+
const Root = (0, material_1.styled)(NotificationItem_1.default, {
|
|
41
40
|
name: constants_1.PREFIX,
|
|
42
41
|
slot: 'CommentRoot'
|
|
43
42
|
})(() => ({}));
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const react_1 = tslib_1.__importStar(require("react"));
|
|
6
|
-
const styles_1 = require("@mui/material/styles");
|
|
7
6
|
const material_1 = require("@mui/material");
|
|
8
7
|
const types_1 = require("@selfcommunity/types");
|
|
9
8
|
const react_core_1 = require("@selfcommunity/react-core");
|
|
@@ -45,7 +44,7 @@ const classes = {
|
|
|
45
44
|
activeAt: `${constants_1.PREFIX}-active-at`,
|
|
46
45
|
bullet: `${constants_1.PREFIX}-bullet`
|
|
47
46
|
};
|
|
48
|
-
const Root = (0,
|
|
47
|
+
const Root = (0, material_1.styled)(NotificationItem_1.default, {
|
|
49
48
|
name: constants_1.PREFIX,
|
|
50
49
|
slot: 'ContributionRoot'
|
|
51
50
|
})(() => ({}));
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const react_1 = tslib_1.__importStar(require("react"));
|
|
6
|
-
const styles_1 = require("@mui/material/styles");
|
|
7
6
|
const material_1 = require("@mui/material");
|
|
8
7
|
const react_core_1 = require("@selfcommunity/react-core");
|
|
9
8
|
const react_intl_1 = require("react-intl");
|
|
@@ -29,7 +28,7 @@ const classes = {
|
|
|
29
28
|
activeAt: `${constants_1.PREFIX}-active-at`,
|
|
30
29
|
contributionText: `${constants_1.PREFIX}-contribution-text`
|
|
31
30
|
};
|
|
32
|
-
const Root = (0,
|
|
31
|
+
const Root = (0, material_1.styled)(NotificationItem_1.default, {
|
|
33
32
|
name: constants_1.PREFIX,
|
|
34
33
|
slot: 'ContributionFollowRoot'
|
|
35
34
|
})(() => ({}));
|
|
@@ -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_core_1 = require("@selfcommunity/react-core");
|
|
9
8
|
const types_1 = require("@selfcommunity/types");
|
|
@@ -28,7 +27,7 @@ const classes = {
|
|
|
28
27
|
snippetTime: `${constants_1.PREFIX}-snippet-time`,
|
|
29
28
|
username: `${constants_1.PREFIX}-username`
|
|
30
29
|
};
|
|
31
|
-
const Root = (0,
|
|
30
|
+
const Root = (0, material_1.styled)(NotificationItem_1.default, {
|
|
32
31
|
name: constants_1.PREFIX,
|
|
33
32
|
slot: 'CourseRoot'
|
|
34
33
|
})(() => ({}));
|
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const styles_1 = require("@mui/material/styles");
|
|
6
5
|
const material_1 = require("@mui/material");
|
|
7
|
-
const Icon_1 = tslib_1.__importDefault(require("@mui/material/Icon"));
|
|
8
6
|
const react_intl_1 = require("react-intl");
|
|
9
7
|
const contribution_1 = require("../../../utils/contribution");
|
|
10
8
|
const DateTimeAgo_1 = tslib_1.__importDefault(require("../../../shared/DateTimeAgo"));
|
|
@@ -46,7 +44,7 @@ const classes = {
|
|
|
46
44
|
contributionYouWroteLabel: `${constants_1.PREFIX}-contribution-you-wrote-label`,
|
|
47
45
|
contributionText: `${constants_1.PREFIX}-contribution-text`
|
|
48
46
|
};
|
|
49
|
-
const Root = (0,
|
|
47
|
+
const Root = (0, material_1.styled)(NotificationItem_1.default, {
|
|
50
48
|
name: constants_1.PREFIX,
|
|
51
49
|
slot: 'DeletedForRoot',
|
|
52
50
|
overridesResolver: (props, styles) => styles.root
|
|
@@ -69,6 +67,6 @@ function DeletedForNotification(props) {
|
|
|
69
67
|
/**
|
|
70
68
|
* Renders root object
|
|
71
69
|
*/
|
|
72
|
-
return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${constants_1.PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: (0, jsx_runtime_1.jsx)(material_1.Avatar, Object.assign({ variant: "circular", classes: { root: classes.flagIcon } }, { children: (0, jsx_runtime_1.jsx)(
|
|
70
|
+
return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${constants_1.PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: (0, jsx_runtime_1.jsx)(material_1.Avatar, Object.assign({ variant: "circular", classes: { root: classes.flagIcon } }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "outlined_flag" }) })), primary: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: isSnippetTemplate ? ((0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(notificationObject[contributionType])) }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ component: "div", color: "inherit", className: classes.flagText }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: `ui.notification.deletedFor.${(0, utils_1.camelCase)(notificationObject.type)}Snippet`, defaultMessage: `ui.notification.deletedFor.${(0, utils_1.camelCase)(notificationObject.type)}Snippet` }) })) }))) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [template === types_1.SCNotificationObjectTemplateType.DETAIL && notificationObject.is_new && (0, jsx_runtime_1.jsx)(NewChip_1.default, {}), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ component: "div", color: "inherit", className: classes.flagText }, { children: intl.formatMessage(messages[(0, utils_1.camelCase)(notificationObject.type)], { b: (...chunks) => (0, jsx_runtime_1.jsx)("strong", { children: chunks }) }) }))] })) }), secondary: (template === types_1.SCNotificationObjectTemplateType.DETAIL || template === types_1.SCNotificationObjectTemplateType.SNIPPET) && ((0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at, className: classes.activeAt })), footer: isSnippetTemplate ? null : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ className: classes.contributionWrap }, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: 'body2', color: 'inherit', classes: { root: classes.contributionYouWroteLabel } }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.notification.deletedFor.youWrote", defaultMessage: "ui.notification.deletedFor.youWrote" }) })), (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(notificationObject[contributionType])), className: classes.contributionText }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ component: 'span', color: 'inherit', variant: "body2" }, { children: (0, contribution_1.getContributionSnippet)(notificationObject[contributionType]) })) }))] })), template === types_1.SCNotificationObjectTemplateType.TOAST && ((0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: [(0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at }), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ color: "primary", component: 'div' }, { children: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes[`${notificationObject[contributionType]['type'].toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(notificationObject[contributionType])) }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userToastNotifications.viewContribution", defaultMessage: 'ui.userToastNotifications.viewContribution' }) })) }))] })))] })) }, rest)));
|
|
73
71
|
}
|
|
74
72
|
exports.default = DeletedForNotification;
|
|
@@ -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_core_1 = require("@selfcommunity/react-core");
|
|
9
8
|
const types_1 = require("@selfcommunity/types");
|
|
@@ -27,7 +26,7 @@ const classes = {
|
|
|
27
26
|
snippetTime: `${constants_1.PREFIX}-snippet-time`,
|
|
28
27
|
username: `${constants_1.PREFIX}-username`
|
|
29
28
|
};
|
|
30
|
-
const Root = (0,
|
|
29
|
+
const Root = (0, material_1.styled)(NotificationItem_1.default, {
|
|
31
30
|
name: constants_1.PREFIX,
|
|
32
31
|
slot: 'EventRoot'
|
|
33
32
|
})(() => ({}));
|
|
@@ -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_core_1 = require("@selfcommunity/react-core");
|
|
9
8
|
const types_1 = require("@selfcommunity/types");
|
|
@@ -24,7 +23,7 @@ const classes = {
|
|
|
24
23
|
activeAt: `${constants_1.PREFIX}-active-at`,
|
|
25
24
|
username: `${constants_1.PREFIX}-username`
|
|
26
25
|
};
|
|
27
|
-
const Root = (0,
|
|
26
|
+
const Root = (0, material_1.styled)(NotificationItem_1.default, {
|
|
28
27
|
name: constants_1.PREFIX,
|
|
29
28
|
slot: 'GroupRoot'
|
|
30
29
|
})(() => ({}));
|
|
@@ -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_core_1 = require("@selfcommunity/react-core");
|
|
8
7
|
const react_intl_1 = require("react-intl");
|
|
@@ -25,7 +24,7 @@ const classes = {
|
|
|
25
24
|
activeAt: `${constants_1.PREFIX}-active-at`,
|
|
26
25
|
viewIncubatorButton: `${constants_1.PREFIX}-view-incubator-button`
|
|
27
26
|
};
|
|
28
|
-
const Root = (0,
|
|
27
|
+
const Root = (0, material_1.styled)(NotificationItem_1.default, {
|
|
29
28
|
name: constants_1.PREFIX,
|
|
30
29
|
slot: 'IncubatorApprovedRoot'
|
|
31
30
|
})(() => ({}));
|
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const styles_1 = require("@mui/material/styles");
|
|
6
5
|
const material_1 = require("@mui/material");
|
|
7
|
-
const Icon_1 = tslib_1.__importDefault(require("@mui/material/Icon"));
|
|
8
6
|
const react_core_1 = require("@selfcommunity/react-core");
|
|
9
7
|
const utils_1 = require("@selfcommunity/utils");
|
|
10
8
|
const react_intl_1 = require("react-intl");
|
|
@@ -29,7 +27,7 @@ const classes = {
|
|
|
29
27
|
contributionYouWroteLabel: `${constants_1.PREFIX}-contribution-you-wrote-label`,
|
|
30
28
|
contributionText: `${constants_1.PREFIX}-contribution-text`
|
|
31
29
|
};
|
|
32
|
-
const Root = (0,
|
|
30
|
+
const Root = (0, material_1.styled)(NotificationItem_1.default, {
|
|
33
31
|
name: constants_1.PREFIX,
|
|
34
32
|
slot: 'KindlyNoticeFlagRoot'
|
|
35
33
|
})(() => ({}));
|
|
@@ -51,6 +49,6 @@ function KindlyNoticeFlagNotification(props) {
|
|
|
51
49
|
/**
|
|
52
50
|
* Renders root object
|
|
53
51
|
*/
|
|
54
|
-
return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${constants_1.PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: (0, jsx_runtime_1.jsx)(material_1.Avatar, Object.assign({ variant: "circular", classes: { root: classes.flagIcon } }, { children: (0, jsx_runtime_1.jsx)(
|
|
52
|
+
return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${constants_1.PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: (0, jsx_runtime_1.jsx)(material_1.Avatar, Object.assign({ variant: "circular", classes: { root: classes.flagIcon } }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "outlined_flag" }) })), primary: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: isSnippetTemplate ? ((0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(notificationObject[contributionType])) }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ component: "div", color: "inherit", className: classes.flagText }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: `ui.notification.kindlyNoticeFlag.kindlyNoticeFlagSnippet`, defaultMessage: `ui.notification.kindlyNoticeFlag.kindlyNoticeFlagSnippet` }) })) }))) : ((0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ component: "div", color: "inherit", className: classes.flagText }, { children: intl.formatMessage(messages[(0, utils_1.camelCase)(notificationObject.type)], { b: (...chunks) => (0, jsx_runtime_1.jsx)("strong", { children: chunks }) }) }))) }), secondary: (template === types_1.SCNotificationObjectTemplateType.DETAIL || template === types_1.SCNotificationObjectTemplateType.SNIPPET) && ((0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at, className: classes.activeAt })), footer: !isSnippetTemplate && ((0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ className: classes.contributionWrap }, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: 'body2', color: 'inherit', component: 'div', classes: { root: classes.contributionYouWroteLabel } }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.notification.undeletedFor.youWrote", defaultMessage: "ui.notification.undeletedFor.youWrote" }) })), (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(notificationObject[contributionType])), className: classes.contributionText }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ component: 'span', variant: "body2" }, { children: (0, contribution_1.getContributionSnippet)(notificationObject[contributionType]) })) }))] }))) }, rest)));
|
|
55
53
|
}
|
|
56
54
|
exports.default = KindlyNoticeFlagNotification;
|
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const styles_1 = require("@mui/material/styles");
|
|
6
5
|
const material_1 = require("@mui/material");
|
|
7
|
-
const Icon_1 = tslib_1.__importDefault(require("@mui/material/Icon"));
|
|
8
6
|
const utils_1 = require("@selfcommunity/utils");
|
|
9
7
|
const react_core_1 = require("@selfcommunity/react-core");
|
|
10
8
|
const react_intl_1 = require("react-intl");
|
|
@@ -49,7 +47,7 @@ const classes = {
|
|
|
49
47
|
contributionYouWroteLabel: `${constants_1.PREFIX}-contribution-you-wrote-label`,
|
|
50
48
|
contributionText: `${constants_1.PREFIX}-contribution-text`
|
|
51
49
|
};
|
|
52
|
-
const Root = (0,
|
|
50
|
+
const Root = (0, material_1.styled)(NotificationItem_1.default, {
|
|
53
51
|
name: constants_1.PREFIX,
|
|
54
52
|
slot: 'KindlyNoticeForRoot'
|
|
55
53
|
})(() => ({}));
|
|
@@ -71,7 +69,7 @@ function KindlyNoticeForNotification(props) {
|
|
|
71
69
|
/**
|
|
72
70
|
* Renders root object
|
|
73
71
|
*/
|
|
74
|
-
return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${constants_1.PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: (0, jsx_runtime_1.jsx)(material_1.Avatar, Object.assign({ variant: "circular", classes: { root: classes.flagIcon } }, { children: (0, jsx_runtime_1.jsx)(
|
|
72
|
+
return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${constants_1.PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: (0, jsx_runtime_1.jsx)(material_1.Avatar, Object.assign({ variant: "circular", classes: { root: classes.flagIcon } }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "outlined_flag" }) })), primary: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: isSnippetTemplate ? ((0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(notificationObject[contributionType])) }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ component: "div", color: "inherit", className: classes.flagText }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: `ui.notification.kindlyNoticeFor.${(0, utils_1.camelCase)(notificationObject.type)}Snippet`, defaultMessage: `ui.notification.kindlyNoticeFor.${(0, utils_1.camelCase)(notificationObject.type)}Snippet` }) })) }))) : ((0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ component: "div", color: "inherit", className: classes.flagText }, { children: intl.formatMessage(messages[(0, utils_1.camelCase)(notificationObject.type)], { b: (...chunks) => (0, jsx_runtime_1.jsx)("strong", { children: chunks }) }) }))) }), secondary: (template === types_1.SCNotificationObjectTemplateType.DETAIL || template === types_1.SCNotificationObjectTemplateType.SNIPPET) && ((0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at, className: classes.activeAt })), footer: isSnippetTemplate ? null : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ className: classes.contributionWrap }, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: 'body2', color: 'inherit', component: 'div', classes: { root: classes.contributionYouWroteLabel } }, { children: intl.formatMessage(messages.youWrote, {
|
|
75
73
|
b: (...chunks) => (0, jsx_runtime_1.jsx)("strong", { children: chunks })
|
|
76
74
|
}) })), (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(notificationObject[contributionType])), className: classes.contributionText }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ component: 'span', variant: "body2" }, { children: (0, contribution_1.getContributionSnippet)(notificationObject[contributionType]) })) }))] })), template === types_1.SCNotificationObjectTemplateType.TOAST && ((0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: [(0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at }), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ color: "primary", component: 'div' }, { children: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes[`${notificationObject[contributionType]['type'].toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(notificationObject[contributionType])) }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userToastNotifications.viewContribution", defaultMessage: 'ui.userToastNotifications.viewContribution' }) })) }))] })))] })) }, rest)));
|
|
77
75
|
}
|
|
@@ -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_core_1 = require("@selfcommunity/react-core");
|
|
9
8
|
const react_intl_1 = require("react-intl");
|
|
@@ -25,7 +24,7 @@ const classes = {
|
|
|
25
24
|
snippetTime: `${constants_1.PREFIX}-snippet-time`,
|
|
26
25
|
username: `${constants_1.PREFIX}-username`
|
|
27
26
|
};
|
|
28
|
-
const Root = (0,
|
|
27
|
+
const Root = (0, material_1.styled)(NotificationItem_1.default, {
|
|
29
28
|
name: constants_1.PREFIX,
|
|
30
29
|
slot: 'LiveStreamRoot'
|
|
31
30
|
})(() => ({}));
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const react_1 = tslib_1.__importStar(require("react"));
|
|
6
|
-
const styles_1 = require("@mui/material/styles");
|
|
7
6
|
const material_1 = require("@mui/material");
|
|
8
7
|
const react_core_1 = require("@selfcommunity/react-core");
|
|
9
8
|
const react_intl_1 = require("react-intl");
|
|
@@ -29,7 +28,7 @@ const classes = {
|
|
|
29
28
|
activeAt: `${constants_1.PREFIX}-active-at`,
|
|
30
29
|
contributionText: `${constants_1.PREFIX}-contribution-text`
|
|
31
30
|
};
|
|
32
|
-
const Root = (0,
|
|
31
|
+
const Root = (0, material_1.styled)(NotificationItem_1.default, {
|
|
33
32
|
name: constants_1.PREFIX,
|
|
34
33
|
slot: 'MentionRoot'
|
|
35
34
|
})(() => ({}));
|
|
@@ -3,8 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const react_1 = require("react");
|
|
6
|
-
const styles_1 = require("@mui/material/styles");
|
|
7
|
-
const CardContent_1 = tslib_1.__importDefault(require("@mui/material/CardContent"));
|
|
8
6
|
const Comment_1 = tslib_1.__importDefault(require("./Comment"));
|
|
9
7
|
const UserFollow_1 = tslib_1.__importDefault(require("./UserFollow"));
|
|
10
8
|
const UndeletedFor_1 = tslib_1.__importDefault(require("./UndeletedFor"));
|
|
@@ -20,7 +18,6 @@ const KindlyNoticeFlag_1 = tslib_1.__importDefault(require("./KindlyNoticeFlag")
|
|
|
20
18
|
const VoteUp_1 = tslib_1.__importDefault(require("./VoteUp"));
|
|
21
19
|
const Event_1 = tslib_1.__importDefault(require("./Event/Event"));
|
|
22
20
|
const LiveStream_1 = tslib_1.__importDefault(require("./LiveStream/LiveStream"));
|
|
23
|
-
const Icon_1 = tslib_1.__importDefault(require("@mui/material/Icon"));
|
|
24
21
|
const Errors_1 = require("../../constants/Errors");
|
|
25
22
|
const contribution_1 = require("../../utils/contribution");
|
|
26
23
|
const ContributionFollow_1 = tslib_1.__importDefault(require("./ContributionFollow"));
|
|
@@ -59,7 +56,7 @@ const classes = {
|
|
|
59
56
|
stopButton: `${constants_1.PREFIX}-stop-button`,
|
|
60
57
|
showOtherAggregated: `${constants_1.PREFIX}-show-other-aggregated`
|
|
61
58
|
};
|
|
62
|
-
const Root = (0,
|
|
59
|
+
const Root = (0, material_1.styled)(Widget_1.default, {
|
|
63
60
|
name: constants_1.PREFIX,
|
|
64
61
|
slot: 'Root'
|
|
65
62
|
})(() => ({}));
|
|
@@ -228,7 +225,7 @@ function UserNotification(inProps) {
|
|
|
228
225
|
notificationObject.aggregated[0].type === types_1.SCNotificationTypologyType.VOTE_UP ||
|
|
229
226
|
notificationObject.aggregated[0].type === types_1.SCNotificationTypologyType.CONTRIBUTION)) {
|
|
230
227
|
const contribution = (0, contribution_1.getContribution)(notificationObject);
|
|
231
|
-
return ((0, jsx_runtime_1.jsx)(material_1.CardHeader, { className: classes.header, titleTypographyProps: { className: classes.title, variant: 'subtitle1' }, title: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url((0, contribution_1.getContributionRouteName)(contribution), (0, contribution_1.getRouteData)(notificationObject[contribution.type])) }, { children: (0, contribution_1.getContributionSnippet)(contribution) })), action: contribution && ((0, jsx_runtime_1.jsx)(material_1.Tooltip, Object.assign({ title: contribution.suspended ? ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: 'ui.notification.notificationSuspended', defaultMessage: 'ui.notification.notificationSuspended' })) : ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: 'ui.notification.notificationSuspend', defaultMessage: 'ui.notification.notificationSuspend' })) }, { children: (0, jsx_runtime_1.jsx)(LoadingButton_1.default, Object.assign({ variant: "text", size: "small", loading: loadingSuspendNotification, color: 'inherit', classes: { root: classes.stopButton }, onClick: () => handleStopContentNotification(contribution) }, { children: contribution.suspended ? (0, jsx_runtime_1.jsx)(
|
|
228
|
+
return ((0, jsx_runtime_1.jsx)(material_1.CardHeader, { className: classes.header, titleTypographyProps: { className: classes.title, variant: 'subtitle1' }, title: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url((0, contribution_1.getContributionRouteName)(contribution), (0, contribution_1.getRouteData)(notificationObject[contribution.type])) }, { children: (0, contribution_1.getContributionSnippet)(contribution) })), action: contribution && ((0, jsx_runtime_1.jsx)(material_1.Tooltip, Object.assign({ title: contribution.suspended ? ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: 'ui.notification.notificationSuspended', defaultMessage: 'ui.notification.notificationSuspended' })) : ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: 'ui.notification.notificationSuspend', defaultMessage: 'ui.notification.notificationSuspend' })) }, { children: (0, jsx_runtime_1.jsx)(LoadingButton_1.default, Object.assign({ variant: "text", size: "small", loading: loadingSuspendNotification, color: 'inherit', classes: { root: classes.stopButton }, onClick: () => handleStopContentNotification(contribution) }, { children: contribution.suspended ? (0, jsx_runtime_1.jsx)(material_1.Icon, Object.assign({ color: 'primary' }, { children: "notifications_off" })) : (0, jsx_runtime_1.jsx)(material_1.Icon, Object.assign({ color: 'inherit' }, { children: "notifications_active" })) })) }))) }));
|
|
232
229
|
}
|
|
233
230
|
return null;
|
|
234
231
|
}
|
|
@@ -326,6 +323,6 @@ function UserNotification(inProps) {
|
|
|
326
323
|
/**
|
|
327
324
|
* Renders root object
|
|
328
325
|
*/
|
|
329
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className) }, rest, { children: [renderNotificationHeader(), (0, jsx_runtime_1.jsxs)(
|
|
326
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className) }, rest, { children: [renderNotificationHeader(), (0, jsx_runtime_1.jsxs)(material_1.CardContent, Object.assign({ className: classes.content }, { children: [(0, jsx_runtime_1.jsx)("div", Object.assign({ className: classes.unCollapsed }, { children: notificationObject.aggregated.slice(0, showMaxAggregated).map((n, i) => renderAggregatedItem(n, i)) })), notificationObject.aggregated.length > showMaxAggregated && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(material_1.ListItemButton, Object.assign({ onClick: setStateAggregated, classes: { root: classes.showOtherAggregated } }, { children: [(0, jsx_runtime_1.jsx)(material_1.ListItemText, { primary: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: 'ui.notification.showOthers', defaultMessage: 'ui.notification.showOthers' }) }), openOtherAggregated ? (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "expand_less" }) : (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "expand_more" })] })), (0, jsx_runtime_1.jsx)(material_1.Collapse, Object.assign({ in: openOtherAggregated, timeout: "auto", unmountOnExit: true, classes: { root: classes.collapsed } }, { children: notificationObject.aggregated.slice(showMaxAggregated).map((n, i) => renderAggregatedItem(n, i)) }))] }))] }))] })), openAlert && (0, jsx_runtime_1.jsx)(UserDeletedSnackBar_1.default, { open: openAlert, handleClose: () => setOpenAlert(false) })] }));
|
|
330
327
|
}
|
|
331
328
|
exports.default = UserNotification;
|
|
@@ -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_core_1 = require("@selfcommunity/react-core");
|
|
9
8
|
const react_intl_1 = require("react-intl");
|
|
@@ -32,7 +31,7 @@ const classes = {
|
|
|
32
31
|
messageWrap: `${constants_1.PREFIX}-message-wrap`,
|
|
33
32
|
message: `${constants_1.PREFIX}-message`
|
|
34
33
|
};
|
|
35
|
-
const Root = (0,
|
|
34
|
+
const Root = (0, material_1.styled)(NotificationItem_1.default, {
|
|
36
35
|
name: constants_1.PREFIX,
|
|
37
36
|
slot: 'PrivateMessageRoot'
|
|
38
37
|
})(() => ({}));
|
|
@@ -3,16 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
|
-
const CardContent_1 = tslib_1.__importDefault(require("@mui/material/CardContent"));
|
|
7
|
-
const styles_1 = require("@mui/material/styles");
|
|
8
6
|
const material_1 = require("@mui/material");
|
|
9
|
-
const Skeleton_1 = tslib_1.__importDefault(require("@mui/material/Skeleton"));
|
|
10
7
|
const Widget_1 = tslib_1.__importDefault(require("../Widget"));
|
|
11
8
|
const constants_1 = require("./constants");
|
|
12
9
|
const classes = {
|
|
13
10
|
root: `${constants_1.PREFIX}-skeleton-root`
|
|
14
11
|
};
|
|
15
|
-
const Root = (0,
|
|
12
|
+
const Root = (0, material_1.styled)(Widget_1.default, {
|
|
16
13
|
name: constants_1.PREFIX,
|
|
17
14
|
slot: 'SkeletonRoot'
|
|
18
15
|
})(() => ({}));
|
|
@@ -38,7 +35,7 @@ const Root = (0, styles_1.styled)(Widget_1.default, {
|
|
|
38
35
|
*/
|
|
39
36
|
function NotificationSkeleton(props) {
|
|
40
37
|
const theme = (0, material_1.useTheme)();
|
|
41
|
-
const notification = ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)(material_1.CardHeader, { avatar: (0, jsx_runtime_1.jsx)(
|
|
42
|
-
return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: classes.root }, props, { children: [(0, jsx_runtime_1.jsxs)(
|
|
38
|
+
const notification = ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)(material_1.CardHeader, { avatar: (0, jsx_runtime_1.jsx)(material_1.Skeleton, { animation: "wave", variant: "circular", width: theme.selfcommunity.user.avatar.sizeMedium, height: theme.selfcommunity.user.avatar.sizeMedium }), title: (0, jsx_runtime_1.jsx)(material_1.Skeleton, { animation: "wave", height: 10, width: "80%", style: { marginBottom: 6 } }), subheader: (0, jsx_runtime_1.jsx)(material_1.Skeleton, { animation: "wave", height: 10, width: "40%" }) }) }));
|
|
39
|
+
return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: classes.root }, props, { children: [(0, jsx_runtime_1.jsxs)(material_1.CardContent, Object.assign({ sx: { paddingBottom: 1 } }, { children: [(0, jsx_runtime_1.jsx)(material_1.Skeleton, { animation: "wave", height: 20, style: { marginBottom: 0 } }), (0, jsx_runtime_1.jsx)(material_1.Skeleton, { animation: "wave", height: 15, width: "60%", style: { marginBottom: 0 } })] })), [...Array(Math.floor(Math.random() * 5) + 1)].map((x, i) => ((0, jsx_runtime_1.jsx)(react_1.default.Fragment, { children: notification }, i)))] })));
|
|
43
40
|
}
|
|
44
41
|
exports.default = NotificationSkeleton;
|
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const styles_1 = require("@mui/material/styles");
|
|
6
5
|
const material_1 = require("@mui/material");
|
|
7
|
-
const Icon_1 = tslib_1.__importDefault(require("@mui/material/Icon"));
|
|
8
6
|
const react_core_1 = require("@selfcommunity/react-core");
|
|
9
7
|
const react_intl_1 = require("react-intl");
|
|
10
8
|
const contribution_1 = require("../../../utils/contribution");
|
|
@@ -22,7 +20,7 @@ const classes = {
|
|
|
22
20
|
contributionYouWroteLabel: `${constants_1.PREFIX}-contribution-you-wrote-label`,
|
|
23
21
|
contributionText: `${constants_1.PREFIX}-contribution-text`
|
|
24
22
|
};
|
|
25
|
-
const Root = (0,
|
|
23
|
+
const Root = (0, material_1.styled)(NotificationItem_1.default, {
|
|
26
24
|
name: constants_1.PREFIX,
|
|
27
25
|
slot: 'UndeletedForRoot'
|
|
28
26
|
})(() => ({}));
|
|
@@ -42,6 +40,6 @@ function UndeletedForNotification(props) {
|
|
|
42
40
|
/**
|
|
43
41
|
* Renders root object
|
|
44
42
|
*/
|
|
45
|
-
return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${constants_1.PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: (0, jsx_runtime_1.jsx)(material_1.Avatar, Object.assign({ variant: "circular", classes: { root: classes.undeletedIcon } }, { children: (0, jsx_runtime_1.jsx)(
|
|
43
|
+
return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${constants_1.PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: (0, jsx_runtime_1.jsx)(material_1.Avatar, Object.assign({ variant: "circular", classes: { root: classes.undeletedIcon } }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "outlined_flag" }) })), primary: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: isSnippetTemplate ? ((0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(notificationObject[contributionType])) }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ component: "div", color: "inherit", className: classes.undeletedText }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.notification.undeletedFor.restoredContentSnippet", defaultMessage: "ui.notification.undeletedFor.restoredContentSnippet" }) })) }))) : ((0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ component: "div", color: "inherit", className: classes.undeletedText }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.notification.undeletedFor.restoredContent", defaultMessage: "ui.notification.undeletedFor.restoredContent" }) }))) }), secondary: (template === types_1.SCNotificationObjectTemplateType.DETAIL || template === types_1.SCNotificationObjectTemplateType.SNIPPET) && ((0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at, className: classes.activeAt })), footer: isSnippetTemplate ? null : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ className: classes.contributionWrap }, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: 'body2', color: 'inherit', component: 'div', classes: { root: classes.contributionYouWroteLabel } }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.notification.undeletedFor.youWrote", defaultMessage: "ui.notification.undeletedFor.youWrote" }) })), (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(notificationObject[contributionType])), className: classes.contributionText }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ component: 'span', variant: "body2" }, { children: (0, contribution_1.getContributionSnippet)(notificationObject[contributionType]) })) }))] })), template === types_1.SCNotificationObjectTemplateType.TOAST && ((0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: [(0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at }), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ color: "primary", component: 'div' }, { children: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes[`${notificationObject[contributionType]['type'].toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(notificationObject[contributionType])) }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.userToastNotifications.viewContribution", defaultMessage: 'ui.userToastNotifications.viewContribution' }) })) }))] })))] })) }, rest)));
|
|
46
44
|
}
|
|
47
45
|
exports.default = UndeletedForNotification;
|
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const styles_1 = require("@mui/material/styles");
|
|
6
5
|
const material_1 = require("@mui/material");
|
|
7
|
-
const Icon_1 = tslib_1.__importDefault(require("@mui/material/Icon"));
|
|
8
6
|
const types_1 = require("@selfcommunity/types");
|
|
9
7
|
const react_intl_1 = require("react-intl");
|
|
10
8
|
const DateTimeAgo_1 = tslib_1.__importDefault(require("../../../shared/DateTimeAgo"));
|
|
@@ -29,7 +27,7 @@ const classes = {
|
|
|
29
27
|
blockedText: `${constants_1.PREFIX}-blocked-text`,
|
|
30
28
|
activeAt: `${constants_1.PREFIX}-active-at`
|
|
31
29
|
};
|
|
32
|
-
const Root = (0,
|
|
30
|
+
const Root = (0, material_1.styled)(NotificationItem_1.default, {
|
|
33
31
|
name: constants_1.PREFIX,
|
|
34
32
|
slot: 'UserBlockedRoot'
|
|
35
33
|
})(() => ({}));
|
|
@@ -50,7 +48,7 @@ function UserBlockedNotification(props) {
|
|
|
50
48
|
root: (0, classnames_1.default)(classes.unBlockedIcon, {
|
|
51
49
|
[classes.blockedIcon]: notificationObject.type === types_1.SCNotificationTypologyType.BLOCKED_USER
|
|
52
50
|
})
|
|
53
|
-
} }, { children: (0, jsx_runtime_1.jsx)(
|
|
51
|
+
} }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "outlined_flag" }) })), primary: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ component: "div", color: "inherit", className: classes.blockedText }, { children: notificationObject.type === types_1.SCNotificationTypologyType.BLOCKED_USER
|
|
54
52
|
? intl.formatMessage(messages.accountBlocked, { b: (...chunks) => (0, jsx_runtime_1.jsx)("strong", { children: chunks }) })
|
|
55
53
|
: intl.formatMessage(messages.accountReactivated, { b: (...chunks) => (0, jsx_runtime_1.jsx)("strong", { children: chunks }) }) })), secondary: (template === types_2.SCNotificationObjectTemplateType.DETAIL || template === types_2.SCNotificationObjectTemplateType.SNIPPET) && ((0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at, className: classes.activeAt })), footer: template === types_2.SCNotificationObjectTemplateType.TOAST && ((0, jsx_runtime_1.jsx)(material_1.Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: (0, jsx_runtime_1.jsx)(DateTimeAgo_1.default, { date: notificationObject.active_at }) }))) }, rest)));
|
|
56
54
|
}
|
|
@@ -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 DateTimeAgo_1 = tslib_1.__importDefault(require("../../../shared/DateTimeAgo"));
|
|
@@ -32,7 +31,7 @@ const classes = {
|
|
|
32
31
|
connectionText: `${constants_1.PREFIX}-connection-text`,
|
|
33
32
|
activeAt: `${constants_1.PREFIX}-active-at`
|
|
34
33
|
};
|
|
35
|
-
const Root = (0,
|
|
34
|
+
const Root = (0, material_1.styled)(NotificationItem_1.default, {
|
|
36
35
|
name: constants_1.PREFIX,
|
|
37
36
|
slot: 'UserConnectionRoot'
|
|
38
37
|
})(() => ({}));
|