@selfcommunity/react-ui 0.7.50-events.41 → 0.7.50-events.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/components/AccountChangeMailValidation/AccountChangeMailValidation.js +3 -8
- package/lib/cjs/components/AccountDataPortability/AccountDataPortability.js +16 -25
- package/lib/cjs/components/AccountDataPortabilityButton/AccountDataPortabilityButton.js +3 -6
- package/lib/cjs/components/AccountDelete/AccountDelete.js +16 -23
- package/lib/cjs/components/AccountDeleteButton/AccountDeleteButton.js +3 -6
- package/lib/cjs/components/AccountRecover/AccountRecover.js +8 -12
- package/lib/cjs/components/AccountReset/AccountReset.js +3 -12
- package/lib/cjs/components/AccountVerify/AccountVerify.js +3 -8
- package/lib/cjs/components/BottomNavigation/BottomNavigation.js +19 -20
- package/lib/cjs/components/BroadcastMessages/BroadcastMessages.js +3 -10
- package/lib/cjs/components/BroadcastMessages/Message.js +6 -23
- package/lib/cjs/components/BroadcastMessages/Skeleton.js +3 -15
- package/lib/cjs/components/Categories/Categories.js +5 -10
- package/lib/cjs/components/Categories/Skeleton.js +2 -4
- package/lib/cjs/components/CategoriesPopularWidget/CategoriesPopularWidget.js +5 -17
- package/lib/cjs/components/CategoriesPopularWidget/Skeleton.js +2 -2
- package/lib/cjs/components/CategoriesSuggestionWidget/CategoriesSuggestionWidget.js +5 -17
- package/lib/cjs/components/CategoriesSuggestionWidget/Skeleton.js +2 -5
- package/lib/cjs/components/Category/Category.js +4 -4
- package/lib/cjs/components/Category/Skeleton.js +2 -3
- package/lib/cjs/components/CategoryAutocomplete/CategoryAutocomplete.js +6 -9
- package/lib/cjs/components/CategoryFollowButton/CategoryFollowButton.js +3 -2
- package/lib/cjs/components/CategoryFollowersButton/CategoryFollowersButton.js +3 -8
- package/lib/cjs/components/CategoryHeader/CategoryHeader.js +3 -12
- package/lib/cjs/components/CategoryHeader/Skeleton.js +2 -7
- package/lib/cjs/components/CategoryTrendingFeedWidget/CategoryTrendingFeedWidget.js +7 -19
- package/lib/cjs/components/CategoryTrendingFeedWidget/Skeleton.js +2 -4
- package/lib/cjs/components/CategoryTrendingUsersWidget/CategoryTrendingUsersWidget.js +5 -17
- package/lib/cjs/components/CategoryTrendingUsersWidget/Skeleton.js +2 -5
- package/lib/cjs/components/ChangeCover/ChangeCover.js +18 -41
- package/lib/cjs/components/ChangeGroupCover/ChangeGroupCover.js +4 -6
- package/lib/cjs/components/ChangeGroupPicture/ChangeGroupPicture.js +4 -6
- package/lib/cjs/components/ChangePicture/ChangePicture.js +3 -4
- package/lib/cjs/components/ChangePicture/ChangePictureDialog/ChangePictureDialog.js +10 -22
- package/lib/cjs/components/CommentObject/CommentObject.js +11 -37
- package/lib/cjs/components/CommentObject/Skeleton.js +2 -6
- package/lib/cjs/components/CommentObjectReply/CommentObjectReply.js +3 -12
- package/lib/cjs/components/CommentsFeedObject/CommentsFeedObject.js +8 -14
- package/lib/cjs/components/CommentsFeedObject/Skeleton.js +2 -3
- package/lib/cjs/components/CommentsObject/CommentsObject.js +27 -48
- package/lib/cjs/components/CommentsObject/Skeleton.js +2 -2
- package/lib/cjs/components/Composer/Attributes/Attributes.js +5 -8
- package/lib/cjs/components/Composer/Composer.js +24 -46
- package/lib/cjs/components/Composer/Content/ContentDiscussion/ContentDiscussion.js +8 -11
- package/lib/cjs/components/Composer/Content/ContentPoll/ContentPoll.js +9 -28
- package/lib/cjs/components/Composer/Content/ContentPost/ContentPost.js +3 -5
- package/lib/cjs/components/Composer/Layer/AudienceLayer/AudienceLayer.js +13 -31
- package/lib/cjs/components/Composer/Layer/CategoryLayer/CategoryLayer.js +2 -10
- package/lib/cjs/components/Composer/Layer/CloseLayer/CloseLayer.js +2 -16
- package/lib/cjs/components/Composer/Layer/LocationLayer/LocationLayer.js +2 -10
- package/lib/cjs/components/Composer/Skeleton.js +2 -3
- package/lib/cjs/components/Composer/TypeSwitchButtonGroup/TypeSwitchButtonGroup.js +3 -8
- package/lib/cjs/components/ComposerIconButton/ComposerIconButton.js +5 -8
- package/lib/cjs/components/ConnectionUserButton/ConnectionUserButton.js +2 -1
- package/lib/cjs/components/ConsentSolution/ConsentSolution.js +9 -58
- package/lib/cjs/components/ConsentSolution/Skeleton.js +3 -16
- package/lib/cjs/components/ConsentSolutionButton/ConsentSolutionButton.js +2 -4
- package/lib/cjs/components/CreateEventButton/CreateEventButton.js +2 -3
- package/lib/cjs/components/CreateGroupButton/CreateGroupButton.js +3 -4
- package/lib/cjs/components/CustomAdv/CustomAdv.js +5 -6
- package/lib/cjs/components/CustomAdv/Skeleton.js +2 -3
- package/lib/cjs/components/EditEventButton/EditEventButton.js +2 -3
- package/lib/cjs/components/EditGroupButton/EditGroupButton.js +2 -3
- package/lib/cjs/components/Editor/Editor.js +3 -21
- package/lib/cjs/components/Editor/Skeleton.js +2 -3
- package/lib/cjs/components/Editor/nodes/ImageNode.js +5 -6
- package/lib/cjs/components/Editor/plugins/AutoLinkPlugin.js +2 -11
- package/lib/cjs/components/Editor/plugins/EmojiPlugin.js +12 -15
- package/lib/cjs/components/Editor/plugins/FloatingLinkPlugin.js +7 -13
- package/lib/cjs/components/Editor/plugins/HashtagPlugin.js +11 -11
- package/lib/cjs/components/Editor/plugins/ImagePlugin.js +9 -10
- package/lib/cjs/components/Editor/plugins/LexicalRichTextPlugin.js +2 -12
- package/lib/cjs/components/Editor/plugins/MentionsPlugin.js +11 -16
- package/lib/cjs/components/Editor/plugins/OnChangePlugin.js +2 -3
- package/lib/cjs/components/Editor/plugins/ToolbarPlugin.js +9 -40
- package/lib/cjs/components/Editor/shared/useDecorators.js +2 -4
- package/lib/cjs/components/Event/Event.js +3 -10
- package/lib/cjs/components/Event/Skeleton.js +2 -8
- package/lib/cjs/components/EventForm/EventAddress.js +6 -14
- package/lib/cjs/components/EventForm/EventForm.js +46 -86
- package/lib/cjs/components/EventForm/UploadEventCover.js +4 -6
- package/lib/cjs/components/EventHeader/EventHeader.js +36 -52
- package/lib/cjs/components/EventHeader/Skeleton.js +2 -12
- package/lib/cjs/components/EventInfoWidget/EventInfoWidget.js +11 -13
- package/lib/cjs/components/EventInfoWidget/Skeleton.d.ts +1 -0
- package/lib/cjs/components/EventInfoWidget/Skeleton.js +20 -0
- package/lib/cjs/components/EventInfoWidget/index.d.ts +2 -1
- package/lib/cjs/components/EventInfoWidget/index.js +3 -1
- package/lib/cjs/components/EventInviteButton/EventInviteButton.js +4 -24
- package/lib/cjs/components/EventLocationWidget/EventLocationWidget.js +8 -16
- package/lib/cjs/components/EventLocationWidget/Skeleton.js +2 -8
- package/lib/cjs/components/EventSubscribeButton/EventSubscribeButton.js +12 -15
- package/lib/cjs/components/Events/Events.js +25 -52
- package/lib/cjs/components/Events/Skeleton.js +2 -4
- package/lib/cjs/components/Feed/Feed.js +11 -29
- package/lib/cjs/components/Feed/Skeleton.js +3 -12
- package/lib/cjs/components/FeedObject/Actions/Actions.js +2 -8
- package/lib/cjs/components/FeedObject/Actions/Comment/Comment.js +5 -11
- package/lib/cjs/components/FeedObject/Actions/Follow/Follow.js +6 -6
- package/lib/cjs/components/FeedObject/Actions/Share/Share.js +29 -60
- package/lib/cjs/components/FeedObject/Actions/Share/SharesDialog/SharesDialog.js +3 -5
- package/lib/cjs/components/FeedObject/Actions/Vote/Vote.js +2 -5
- package/lib/cjs/components/FeedObject/Activities/Activities.js +9 -10
- package/lib/cjs/components/FeedObject/Activities/ActivitiesMenu/ActivitiesMenu.js +23 -37
- package/lib/cjs/components/FeedObject/Activities/RelevantActivities/CommentActivity/CommentActivity.js +18 -20
- package/lib/cjs/components/FeedObject/Activities/RelevantActivities/FollowActivity/FollowActivity.js +5 -7
- package/lib/cjs/components/FeedObject/Activities/RelevantActivities/PollVoteActivity/PollVoteActivity.js +5 -7
- package/lib/cjs/components/FeedObject/Activities/RelevantActivities/RelevantActivities.js +7 -12
- package/lib/cjs/components/FeedObject/Activities/RelevantActivities/VoteUpActivity/VoteUpActivity.js +5 -7
- package/lib/cjs/components/FeedObject/Contributors/Contributors.js +3 -13
- package/lib/cjs/components/FeedObject/Contributors/Skeleton.js +2 -6
- package/lib/cjs/components/FeedObject/FeedObject.js +23 -110
- package/lib/cjs/components/FeedObject/Poll/Choice/Choice.js +3 -8
- package/lib/cjs/components/FeedObject/Poll/Poll.js +5 -21
- package/lib/cjs/components/FeedObject/Skeleton.js +4 -16
- package/lib/cjs/components/FeedObjectMediaPreview/FeedObjectMediaPreview.js +5 -6
- package/lib/cjs/components/FeedUpdatesWidget/FeedUpdatesWidget.js +5 -8
- package/lib/cjs/components/FeedUpdatesWidget/Skeleton.js +2 -2
- package/lib/cjs/components/FollowUserButton/FollowUserButton.js +5 -4
- package/lib/cjs/components/Footer/Footer.js +4 -7
- package/lib/cjs/components/Footer/Skeleton.js +2 -4
- package/lib/cjs/components/FriendshipUserButton/FriendshipUserButton.js +9 -8
- package/lib/cjs/components/Group/Group.js +7 -13
- package/lib/cjs/components/Group/Skeleton.js +2 -3
- package/lib/cjs/components/GroupAutocomplete/GroupAutocomplete.js +5 -8
- package/lib/cjs/components/GroupForm/GroupForm.js +36 -75
- package/lib/cjs/components/GroupHeader/GroupHeader.js +6 -34
- package/lib/cjs/components/GroupHeader/Skeleton.js +2 -12
- package/lib/cjs/components/GroupInfoWidget/GroupInfoWidget.js +24 -54
- package/lib/cjs/components/GroupInfoWidget/Skeleton.js +2 -3
- package/lib/cjs/components/GroupInviteButton/GroupInviteButton.js +4 -24
- package/lib/cjs/components/GroupInvitedWidget/GroupInvitedWidget.js +5 -18
- package/lib/cjs/components/GroupInvitedWidget/Skeleton.js +2 -3
- package/lib/cjs/components/GroupMembersButton/GroupMembersButton.js +3 -8
- package/lib/cjs/components/GroupMembersWidget/GroupMembersWidget.js +11 -28
- package/lib/cjs/components/GroupMembersWidget/Skeleton.js +2 -3
- package/lib/cjs/components/GroupRequestsWidget/GroupRequestsWidget.js +5 -16
- package/lib/cjs/components/GroupRequestsWidget/Skeleton.js +2 -3
- package/lib/cjs/components/GroupSettingsIconButton/GroupSettingsIconButton.js +13 -21
- package/lib/cjs/components/GroupSubscribeButton/GroupSubscribeButton.js +8 -7
- package/lib/cjs/components/Groups/Groups.js +10 -23
- package/lib/cjs/components/Groups/Skeleton.js +2 -4
- package/lib/cjs/components/Incubator/Incubator.js +8 -28
- package/lib/cjs/components/Incubator/Skeleton.js +2 -20
- package/lib/cjs/components/IncubatorDetail/IncubatorDetail.js +4 -46
- package/lib/cjs/components/IncubatorListWidget/CreateIncubatorDialog/CreateIncubatorDialog.js +5 -12
- package/lib/cjs/components/IncubatorListWidget/IncubatorListWidget.js +8 -32
- package/lib/cjs/components/IncubatorListWidget/Skeleton.js +2 -4
- package/lib/cjs/components/IncubatorSubscribeButton/IncubatorSubscribeButton.js +3 -2
- package/lib/cjs/components/IncubatorSuggestionWidget/IncubatorSuggestionWidget.js +5 -18
- package/lib/cjs/components/IncubatorSuggestionWidget/Skeleton.js +2 -4
- package/lib/cjs/components/InlineComposerWidget/InlineComposerWidget.js +5 -11
- package/lib/cjs/components/InlineComposerWidget/Skeleton.js +2 -7
- package/lib/cjs/components/LocationAutocomplete/LocationAutocomplete.js +6 -7
- package/lib/cjs/components/LoyaltyProgramWidget/LoyaltyProgramWidget.js +5 -13
- package/lib/cjs/components/LoyaltyProgramWidget/Skeleton.js +2 -11
- package/lib/cjs/components/NavigationMenuIconButton/DefaultDrawerContent.js +3 -11
- package/lib/cjs/components/NavigationMenuIconButton/DefaultHeaderContent.js +3 -4
- package/lib/cjs/components/NavigationMenuIconButton/NavigationMenuIconButton.js +4 -13
- package/lib/cjs/components/NavigationSettingsIconButton/NavigationSettingsIconButton.js +35 -75
- package/lib/cjs/components/NavigationToolbar/NavigationToolbar.js +14 -51
- package/lib/cjs/components/NavigationToolbar/NotificationMenu.js +2 -5
- package/lib/cjs/components/NavigationToolbar/Skeleton.js +2 -5
- package/lib/cjs/components/NavigationToolbarMobile/NavigationToolbarMobile.js +11 -27
- package/lib/cjs/components/NavigationToolbarMobile/Skeleton.js +2 -3
- package/lib/cjs/components/Notification/CollapsedFor/CollapsedFor.js +2 -15
- package/lib/cjs/components/Notification/Comment/Comment.js +11 -27
- package/lib/cjs/components/Notification/Contribution/Contribution.js +11 -28
- package/lib/cjs/components/Notification/ContributionFollow/ContributionFollow.js +4 -19
- package/lib/cjs/components/Notification/DeletedFor/DeletedFor.js +2 -17
- package/lib/cjs/components/Notification/Group/Group.js +17 -30
- package/lib/cjs/components/Notification/IncubatorApproved/IncubatorApproved.js +8 -16
- package/lib/cjs/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.js +2 -9
- package/lib/cjs/components/Notification/KindlyNoticeFor/KindlyNoticeFor.js +4 -16
- package/lib/cjs/components/Notification/Mention/Mention.js +7 -22
- package/lib/cjs/components/Notification/Notification.js +37 -57
- package/lib/cjs/components/Notification/PrivateMessage/PrivateMessage.js +24 -47
- package/lib/cjs/components/Notification/Skeleton.js +3 -7
- package/lib/cjs/components/Notification/UndeletedFor/UndeletedFor.js +2 -16
- package/lib/cjs/components/Notification/UserBlocked/UserBlocked.js +5 -7
- package/lib/cjs/components/Notification/UserConnection/UserConnection.js +5 -15
- package/lib/cjs/components/Notification/UserFollow/UserFollow.js +5 -15
- package/lib/cjs/components/Notification/VoteUp/VoteUp.js +6 -19
- package/lib/cjs/components/PlatformWidget/PlatformWidget.js +20 -53
- package/lib/cjs/components/PlatformWidget/Skeleton.js +2 -3
- package/lib/cjs/components/PollSuggestionWidget/PollSnippet/PollSnippet.js +3 -12
- package/lib/cjs/components/PollSuggestionWidget/PollSnippet/Skeleton.js +2 -2
- package/lib/cjs/components/PollSuggestionWidget/PollSuggestionWidget.js +5 -17
- package/lib/cjs/components/PollSuggestionWidget/Skeleton.js +2 -6
- package/lib/cjs/components/PrivateMessageComponent/PrivateMessageComponent.js +6 -9
- package/lib/cjs/components/PrivateMessageComponent/Skeleton.js +2 -6
- package/lib/cjs/components/PrivateMessageEditor/MessageMediaUploader/index.js +16 -37
- package/lib/cjs/components/PrivateMessageEditor/PrivateMessageEditor.js +9 -18
- package/lib/cjs/components/PrivateMessageEditor/Skeleton.js +2 -3
- package/lib/cjs/components/PrivateMessageSettingsIconButton/PrivateMessageSettingsIconButton.js +9 -31
- package/lib/cjs/components/PrivateMessageSnippetItem/PrivateMessageSnippetItem.js +12 -19
- package/lib/cjs/components/PrivateMessageSnippetItem/Skeleton.js +2 -5
- package/lib/cjs/components/PrivateMessageSnippets/PrivateMessageSnippets.js +8 -16
- package/lib/cjs/components/PrivateMessageSnippets/Skeleton.js +2 -8
- package/lib/cjs/components/PrivateMessageThread/PrivateMessageThread.js +14 -35
- package/lib/cjs/components/PrivateMessageThread/Skeleton.js +2 -9
- package/lib/cjs/components/PrivateMessageThreadItem/PrivateMessageThreadItem.js +15 -33
- package/lib/cjs/components/PrivateMessageThreadItem/Skeleton.js +2 -3
- package/lib/cjs/components/RelatedFeedObjectsWidget/RelatedFeedObjectsWidget.js +6 -21
- package/lib/cjs/components/RelatedFeedObjectsWidget/Skeleton.js +2 -3
- package/lib/cjs/components/SearchAutocomplete/SearchAutocomplete.js +5 -8
- package/lib/cjs/components/SearchDialog/SearchDialog.js +2 -4
- package/lib/cjs/components/Skeleton/AvatarGroupSkeleton.js +2 -3
- package/lib/cjs/components/Skeleton/GenericSkeleton.js +2 -6
- package/lib/cjs/components/SnippetNotifications/Skeleton.js +3 -3
- package/lib/cjs/components/SnippetNotifications/SnippetNotifications.js +23 -28
- package/lib/cjs/components/ToastNotifications/Skeleton.js +2 -3
- package/lib/cjs/components/ToastNotifications/ToastNotifications.js +16 -15
- package/lib/cjs/components/User/Skeleton.js +2 -3
- package/lib/cjs/components/User/User.js +6 -14
- package/lib/cjs/components/UserActionIconButton/UserActionIconButton.js +16 -31
- package/lib/cjs/components/UserConnectionsRequestsSentWidget/Skeleton.js +2 -3
- package/lib/cjs/components/UserConnectionsRequestsSentWidget/UserConnectionsRequestsSentWidget.js +5 -17
- package/lib/cjs/components/UserConnectionsRequestsWidget/Skeleton.js +2 -3
- package/lib/cjs/components/UserConnectionsRequestsWidget/UserConnectionsRequestsWidget.js +5 -17
- package/lib/cjs/components/UserConnectionsWidget/Skeleton.js +2 -3
- package/lib/cjs/components/UserConnectionsWidget/UserConnectionsWidget.js +5 -17
- package/lib/cjs/components/UserCounters/UserCounters.js +19 -28
- package/lib/cjs/components/UserFollowedCategoriesWidget/Skeleton.js +2 -2
- package/lib/cjs/components/UserFollowedCategoriesWidget/UserFollowedCategoriesWidget.js +5 -20
- package/lib/cjs/components/UserFollowedUsersWidget/Skeleton.js +2 -3
- package/lib/cjs/components/UserFollowedUsersWidget/UserFollowedUsersWidget.js +5 -17
- package/lib/cjs/components/UserFollowersWidget/Skeleton.js +2 -3
- package/lib/cjs/components/UserFollowersWidget/UserFollowersWidget.js +5 -17
- package/lib/cjs/components/UserInfo/Skeleton.js +2 -6
- package/lib/cjs/components/UserInfo/UserInfo.js +13 -14
- package/lib/cjs/components/UserInfoDialog/UserInfoDialog.js +3 -5
- package/lib/cjs/components/UserProfileBlocked/UserProfileBlocked.js +4 -11
- package/lib/cjs/components/UserProfileEdit/Section/Account.js +3 -13
- package/lib/cjs/components/UserProfileEdit/Section/AccountCredentials.js +15 -37
- package/lib/cjs/components/UserProfileEdit/Section/PublicInfo.js +15 -25
- package/lib/cjs/components/UserProfileEdit/Section/Settings.js +7 -37
- package/lib/cjs/components/UserProfileEdit/Section/SettingsSkeleton.js +2 -5
- package/lib/cjs/components/UserProfileEdit/Skeleton.js +2 -6
- package/lib/cjs/components/UserProfileEdit/UserProfileEdit.js +2 -9
- package/lib/cjs/components/UserProfileHeader/Skeleton.js +2 -13
- package/lib/cjs/components/UserProfileHeader/UserProfileHeader.js +4 -21
- package/lib/cjs/components/UserSocialAssociation/UserSocialAssociation.js +2 -16
- package/lib/cjs/components/UserSubscribedGroupsWidget/Skeleton.js +2 -6
- package/lib/cjs/components/UserSubscribedGroupsWidget/UserSubscribedGroupsWidget.js +7 -22
- package/lib/cjs/components/UserSuggestionWidget/Skeleton.js +2 -5
- package/lib/cjs/components/UserSuggestionWidget/UserSuggestionWidget.js +5 -17
- package/lib/cjs/components/VoteAudienceButton/VoteAudienceButton.js +9 -23
- package/lib/cjs/components/VoteButton/VoteButton.js +9 -15
- package/lib/cjs/components/Widget/index.js +3 -2
- package/lib/cjs/shared/AutoPlayer/index.js +6 -7
- package/lib/cjs/shared/BaseDialog/BaseDialog.js +3 -10
- package/lib/cjs/shared/BaseItem/BaseItem.js +4 -10
- package/lib/cjs/shared/BaseItemButton/BaseItemButton.js +4 -10
- package/lib/cjs/shared/Bullet/index.js +2 -1
- package/lib/cjs/shared/Calendar/index.js +2 -3
- package/lib/cjs/shared/CentralProgress/index.js +3 -4
- package/lib/cjs/shared/ConfirmDialog/ConfirmDialog.js +2 -9
- package/lib/cjs/shared/ConsentSolutionSwitch/index.js +5 -8
- package/lib/cjs/shared/ContributionActionsMenu/index.js +22 -85
- package/lib/cjs/shared/CustomSnackMessage/index.js +3 -7
- package/lib/cjs/shared/DateTimeAgo/index.js +2 -6
- package/lib/cjs/shared/EmailTextField/index.js +3 -2
- package/lib/cjs/shared/EmojiPicker/EmojiPicker.js +2 -2
- package/lib/cjs/shared/EventInfoDetails/index.js +5 -22
- package/lib/cjs/shared/HiddenPlaceholder/index.js +2 -3
- package/lib/cjs/shared/InfiniteScroll/index.js +8 -19
- package/lib/cjs/shared/InfiniteScroll/stories/InfiniteScrollWithHeight.js +3 -8
- package/lib/cjs/shared/InfiniteScroll/stories/PullDownToRefreshInfScroll.js +3 -7
- package/lib/cjs/shared/InfiniteScroll/stories/ScrollableTargetFixedInfScroll.js +13 -18
- package/lib/cjs/shared/InfiniteScroll/stories/ScrollableTargetInfScroll.js +3 -8
- package/lib/cjs/shared/InfiniteScroll/stories/ScrolleableTop.js +6 -11
- package/lib/cjs/shared/InfiniteScroll/stories/WindowInfiniteScrollComponent.js +3 -6
- package/lib/cjs/shared/LanguageSwitcher/index.js +3 -5
- package/lib/cjs/shared/Lightbox/Lightbox.js +4 -3
- package/lib/cjs/shared/MarkRead/MarkRead.js +3 -3
- package/lib/cjs/shared/Media/File/DisplayComponent.js +13 -42
- package/lib/cjs/shared/Media/File/Lightbox/index.js +5 -5
- package/lib/cjs/shared/Media/File/PreviewComponent.js +5 -9
- package/lib/cjs/shared/Media/File/TriggerButton.js +14 -25
- package/lib/cjs/shared/Media/File/asUploadButton.js +3 -2
- package/lib/cjs/shared/Media/Link/DisplayComponent.js +8 -15
- package/lib/cjs/shared/Media/Link/LayerComponent.js +2 -11
- package/lib/cjs/shared/Media/Link/PreviewComponent.js +2 -4
- package/lib/cjs/shared/Media/Link/TriggerButton.js +2 -3
- package/lib/cjs/shared/Media/Link/UrlTextField/index.js +5 -7
- package/lib/cjs/shared/Media/Share/DisplayComponent.js +3 -3
- package/lib/cjs/shared/MetadataField/MetadataField.js +8 -7
- package/lib/cjs/shared/NewChip/NewChip.js +2 -2
- package/lib/cjs/shared/NotificationItem/NotificationItem.js +3 -12
- package/lib/cjs/shared/PasswordTextField/index.js +4 -6
- package/lib/cjs/shared/PhoneTextField/index.js +3 -2
- package/lib/cjs/shared/ScrollContainer/index.js +2 -2
- package/lib/cjs/shared/StickyBox/index.js +6 -5
- package/lib/cjs/shared/TagChip/index.js +2 -2
- package/lib/cjs/shared/Tags/index.js +11 -23
- package/lib/cjs/shared/UrlTextField/index.js +3 -2
- package/lib/cjs/shared/UserAvatar/UserAvatar.js +3 -2
- package/lib/cjs/shared/UserDeletedSnackBar/UserDeletedSnackBar.js +3 -5
- package/lib/cjs/shared/UsernameTextField/index.js +3 -2
- package/lib/cjs/shared/VirtualizedScroller/VirtualScrollerChild.js +2 -2
- package/lib/cjs/shared/VirtualizedScroller/VirtualizedScroller.js +3 -2
- package/lib/cjs/utils/contribution.js +3 -4
- package/lib/cjs/utils/errors.js +3 -4
- package/lib/esm/components/AccountChangeMailValidation/AccountChangeMailValidation.js +3 -8
- package/lib/esm/components/AccountDataPortability/AccountDataPortability.js +16 -25
- package/lib/esm/components/AccountDataPortabilityButton/AccountDataPortabilityButton.js +3 -6
- package/lib/esm/components/AccountDelete/AccountDelete.js +16 -23
- package/lib/esm/components/AccountDeleteButton/AccountDeleteButton.js +3 -6
- package/lib/esm/components/AccountRecover/AccountRecover.js +8 -12
- package/lib/esm/components/AccountReset/AccountReset.js +3 -12
- package/lib/esm/components/AccountVerify/AccountVerify.js +3 -8
- package/lib/esm/components/BottomNavigation/BottomNavigation.js +19 -20
- package/lib/esm/components/BroadcastMessages/BroadcastMessages.js +3 -10
- package/lib/esm/components/BroadcastMessages/Message.js +6 -23
- package/lib/esm/components/BroadcastMessages/Skeleton.js +3 -15
- package/lib/esm/components/Categories/Categories.js +5 -10
- package/lib/esm/components/Categories/Skeleton.js +2 -4
- package/lib/esm/components/CategoriesPopularWidget/CategoriesPopularWidget.js +5 -17
- package/lib/esm/components/CategoriesPopularWidget/Skeleton.js +2 -2
- package/lib/esm/components/CategoriesSuggestionWidget/CategoriesSuggestionWidget.js +5 -17
- package/lib/esm/components/CategoriesSuggestionWidget/Skeleton.js +2 -5
- package/lib/esm/components/Category/Category.js +4 -4
- package/lib/esm/components/Category/Skeleton.js +2 -3
- package/lib/esm/components/CategoryAutocomplete/CategoryAutocomplete.js +6 -9
- package/lib/esm/components/CategoryFollowButton/CategoryFollowButton.js +3 -2
- package/lib/esm/components/CategoryFollowersButton/CategoryFollowersButton.js +3 -8
- package/lib/esm/components/CategoryHeader/CategoryHeader.js +3 -12
- package/lib/esm/components/CategoryHeader/Skeleton.js +2 -7
- package/lib/esm/components/CategoryTrendingFeedWidget/CategoryTrendingFeedWidget.js +7 -19
- package/lib/esm/components/CategoryTrendingFeedWidget/Skeleton.js +2 -4
- package/lib/esm/components/CategoryTrendingUsersWidget/CategoryTrendingUsersWidget.js +5 -17
- package/lib/esm/components/CategoryTrendingUsersWidget/Skeleton.js +2 -5
- package/lib/esm/components/ChangeCover/ChangeCover.js +18 -41
- package/lib/esm/components/ChangeGroupCover/ChangeGroupCover.js +4 -6
- package/lib/esm/components/ChangeGroupPicture/ChangeGroupPicture.js +4 -6
- package/lib/esm/components/ChangePicture/ChangePicture.js +3 -4
- package/lib/esm/components/ChangePicture/ChangePictureDialog/ChangePictureDialog.js +10 -22
- package/lib/esm/components/CommentObject/CommentObject.js +11 -37
- package/lib/esm/components/CommentObject/Skeleton.js +2 -6
- package/lib/esm/components/CommentObjectReply/CommentObjectReply.js +3 -12
- package/lib/esm/components/CommentsFeedObject/CommentsFeedObject.js +8 -14
- package/lib/esm/components/CommentsFeedObject/Skeleton.js +2 -2
- package/lib/esm/components/CommentsObject/CommentsObject.js +27 -48
- package/lib/esm/components/CommentsObject/Skeleton.js +2 -2
- package/lib/esm/components/Composer/Attributes/Attributes.js +5 -8
- package/lib/esm/components/Composer/Composer.js +24 -46
- package/lib/esm/components/Composer/Content/ContentDiscussion/ContentDiscussion.js +8 -11
- package/lib/esm/components/Composer/Content/ContentPoll/ContentPoll.js +9 -28
- package/lib/esm/components/Composer/Content/ContentPost/ContentPost.js +3 -5
- package/lib/esm/components/Composer/Layer/AudienceLayer/AudienceLayer.js +13 -31
- package/lib/esm/components/Composer/Layer/CategoryLayer/CategoryLayer.js +2 -10
- package/lib/esm/components/Composer/Layer/CloseLayer/CloseLayer.js +2 -16
- package/lib/esm/components/Composer/Layer/LocationLayer/LocationLayer.js +2 -10
- package/lib/esm/components/Composer/Skeleton.js +2 -3
- package/lib/esm/components/Composer/TypeSwitchButtonGroup/TypeSwitchButtonGroup.js +3 -8
- package/lib/esm/components/ComposerIconButton/ComposerIconButton.js +5 -8
- package/lib/esm/components/ConnectionUserButton/ConnectionUserButton.js +2 -1
- package/lib/esm/components/ConsentSolution/ConsentSolution.js +9 -58
- package/lib/esm/components/ConsentSolution/Skeleton.js +3 -16
- package/lib/esm/components/ConsentSolutionButton/ConsentSolutionButton.js +2 -4
- package/lib/esm/components/CreateEventButton/CreateEventButton.js +2 -3
- package/lib/esm/components/CreateGroupButton/CreateGroupButton.js +3 -4
- package/lib/esm/components/CustomAdv/CustomAdv.js +5 -6
- package/lib/esm/components/CustomAdv/Skeleton.js +2 -2
- package/lib/esm/components/EditEventButton/EditEventButton.js +2 -3
- package/lib/esm/components/EditGroupButton/EditGroupButton.js +2 -3
- package/lib/esm/components/Editor/Editor.js +3 -21
- package/lib/esm/components/Editor/Skeleton.js +2 -2
- package/lib/esm/components/Editor/nodes/ImageNode.js +5 -5
- package/lib/esm/components/Editor/plugins/AutoLinkPlugin.js +2 -10
- package/lib/esm/components/Editor/plugins/EmojiPlugin.js +12 -15
- package/lib/esm/components/Editor/plugins/FloatingLinkPlugin.js +7 -13
- package/lib/esm/components/Editor/plugins/HashtagPlugin.js +11 -11
- package/lib/esm/components/Editor/plugins/ImagePlugin.js +9 -10
- package/lib/esm/components/Editor/plugins/LexicalRichTextPlugin.js +2 -12
- package/lib/esm/components/Editor/plugins/MentionsPlugin.js +11 -16
- package/lib/esm/components/Editor/plugins/OnChangePlugin.js +2 -2
- package/lib/esm/components/Editor/plugins/ToolbarPlugin.js +9 -40
- package/lib/esm/components/Editor/shared/useDecorators.js +2 -3
- package/lib/esm/components/Event/Event.js +3 -10
- package/lib/esm/components/Event/Skeleton.js +2 -8
- package/lib/esm/components/EventForm/EventAddress.js +6 -14
- package/lib/esm/components/EventForm/EventForm.js +46 -86
- package/lib/esm/components/EventForm/UploadEventCover.js +4 -6
- package/lib/esm/components/EventHeader/EventHeader.js +36 -52
- package/lib/esm/components/EventHeader/Skeleton.js +2 -12
- package/lib/esm/components/EventInfoWidget/EventInfoWidget.js +11 -13
- package/lib/esm/components/EventInfoWidget/Skeleton.d.ts +1 -0
- package/lib/esm/components/EventInfoWidget/Skeleton.js +16 -0
- package/lib/esm/components/EventInfoWidget/index.d.ts +2 -1
- package/lib/esm/components/EventInfoWidget/index.js +2 -1
- package/lib/esm/components/EventInviteButton/EventInviteButton.js +4 -24
- package/lib/esm/components/EventLocationWidget/EventLocationWidget.js +8 -16
- package/lib/esm/components/EventLocationWidget/Skeleton.js +2 -8
- package/lib/esm/components/EventSubscribeButton/EventSubscribeButton.js +12 -15
- package/lib/esm/components/Events/Events.js +25 -52
- package/lib/esm/components/Events/Skeleton.js +2 -4
- package/lib/esm/components/Feed/Feed.js +11 -29
- package/lib/esm/components/Feed/Skeleton.js +3 -12
- package/lib/esm/components/FeedObject/Actions/Actions.js +2 -8
- package/lib/esm/components/FeedObject/Actions/Comment/Comment.js +5 -11
- package/lib/esm/components/FeedObject/Actions/Follow/Follow.js +6 -6
- package/lib/esm/components/FeedObject/Actions/Share/Share.js +29 -60
- package/lib/esm/components/FeedObject/Actions/Share/SharesDialog/SharesDialog.js +3 -5
- package/lib/esm/components/FeedObject/Actions/Vote/Vote.js +2 -5
- package/lib/esm/components/FeedObject/Activities/Activities.js +9 -10
- package/lib/esm/components/FeedObject/Activities/ActivitiesMenu/ActivitiesMenu.js +23 -37
- package/lib/esm/components/FeedObject/Activities/RelevantActivities/CommentActivity/CommentActivity.js +18 -20
- package/lib/esm/components/FeedObject/Activities/RelevantActivities/FollowActivity/FollowActivity.js +5 -7
- package/lib/esm/components/FeedObject/Activities/RelevantActivities/PollVoteActivity/PollVoteActivity.js +5 -7
- package/lib/esm/components/FeedObject/Activities/RelevantActivities/RelevantActivities.js +7 -12
- package/lib/esm/components/FeedObject/Activities/RelevantActivities/VoteUpActivity/VoteUpActivity.js +5 -7
- package/lib/esm/components/FeedObject/Contributors/Contributors.js +3 -13
- package/lib/esm/components/FeedObject/Contributors/Skeleton.js +2 -6
- package/lib/esm/components/FeedObject/FeedObject.js +23 -110
- package/lib/esm/components/FeedObject/Poll/Choice/Choice.js +3 -8
- package/lib/esm/components/FeedObject/Poll/Poll.js +5 -21
- package/lib/esm/components/FeedObject/Skeleton.js +4 -16
- package/lib/esm/components/FeedObjectMediaPreview/FeedObjectMediaPreview.js +5 -6
- package/lib/esm/components/FeedUpdatesWidget/FeedUpdatesWidget.js +5 -8
- package/lib/esm/components/FeedUpdatesWidget/Skeleton.js +2 -2
- package/lib/esm/components/FollowUserButton/FollowUserButton.js +5 -4
- package/lib/esm/components/Footer/Footer.js +4 -7
- package/lib/esm/components/Footer/Skeleton.js +2 -4
- package/lib/esm/components/FriendshipUserButton/FriendshipUserButton.js +9 -8
- package/lib/esm/components/Group/Group.js +7 -13
- package/lib/esm/components/Group/Skeleton.js +2 -3
- package/lib/esm/components/GroupAutocomplete/GroupAutocomplete.js +5 -8
- package/lib/esm/components/GroupForm/GroupForm.js +36 -75
- package/lib/esm/components/GroupHeader/GroupHeader.js +6 -34
- package/lib/esm/components/GroupHeader/Skeleton.js +2 -12
- package/lib/esm/components/GroupInfoWidget/GroupInfoWidget.js +24 -54
- package/lib/esm/components/GroupInfoWidget/Skeleton.js +2 -2
- package/lib/esm/components/GroupInviteButton/GroupInviteButton.js +4 -24
- package/lib/esm/components/GroupInvitedWidget/GroupInvitedWidget.js +5 -18
- package/lib/esm/components/GroupInvitedWidget/Skeleton.js +2 -2
- package/lib/esm/components/GroupMembersButton/GroupMembersButton.js +3 -8
- package/lib/esm/components/GroupMembersWidget/GroupMembersWidget.js +11 -28
- package/lib/esm/components/GroupMembersWidget/Skeleton.js +2 -2
- package/lib/esm/components/GroupRequestsWidget/GroupRequestsWidget.js +5 -16
- package/lib/esm/components/GroupRequestsWidget/Skeleton.js +2 -2
- package/lib/esm/components/GroupSettingsIconButton/GroupSettingsIconButton.js +13 -21
- package/lib/esm/components/GroupSubscribeButton/GroupSubscribeButton.js +8 -7
- package/lib/esm/components/Groups/Groups.js +10 -23
- package/lib/esm/components/Groups/Skeleton.js +2 -4
- package/lib/esm/components/Incubator/Incubator.js +8 -28
- package/lib/esm/components/Incubator/Skeleton.js +2 -20
- package/lib/esm/components/IncubatorDetail/IncubatorDetail.js +4 -46
- package/lib/esm/components/IncubatorListWidget/CreateIncubatorDialog/CreateIncubatorDialog.js +5 -12
- package/lib/esm/components/IncubatorListWidget/IncubatorListWidget.js +8 -32
- package/lib/esm/components/IncubatorListWidget/Skeleton.js +2 -4
- package/lib/esm/components/IncubatorSubscribeButton/IncubatorSubscribeButton.js +3 -2
- package/lib/esm/components/IncubatorSuggestionWidget/IncubatorSuggestionWidget.js +5 -18
- package/lib/esm/components/IncubatorSuggestionWidget/Skeleton.js +2 -4
- package/lib/esm/components/InlineComposerWidget/InlineComposerWidget.js +5 -11
- package/lib/esm/components/InlineComposerWidget/Skeleton.js +2 -7
- package/lib/esm/components/LocationAutocomplete/LocationAutocomplete.js +6 -7
- package/lib/esm/components/LoyaltyProgramWidget/LoyaltyProgramWidget.js +5 -13
- package/lib/esm/components/LoyaltyProgramWidget/Skeleton.js +2 -11
- package/lib/esm/components/NavigationMenuIconButton/DefaultDrawerContent.js +3 -11
- package/lib/esm/components/NavigationMenuIconButton/DefaultHeaderContent.js +3 -4
- package/lib/esm/components/NavigationMenuIconButton/NavigationMenuIconButton.js +4 -13
- package/lib/esm/components/NavigationSettingsIconButton/NavigationSettingsIconButton.js +35 -75
- package/lib/esm/components/NavigationToolbar/NavigationToolbar.js +14 -51
- package/lib/esm/components/NavigationToolbar/NotificationMenu.js +2 -5
- package/lib/esm/components/NavigationToolbar/Skeleton.js +2 -5
- package/lib/esm/components/NavigationToolbarMobile/NavigationToolbarMobile.js +11 -27
- package/lib/esm/components/NavigationToolbarMobile/Skeleton.js +2 -3
- package/lib/esm/components/Notification/CollapsedFor/CollapsedFor.js +2 -15
- package/lib/esm/components/Notification/Comment/Comment.js +11 -27
- package/lib/esm/components/Notification/Contribution/Contribution.js +11 -28
- package/lib/esm/components/Notification/ContributionFollow/ContributionFollow.js +4 -19
- package/lib/esm/components/Notification/DeletedFor/DeletedFor.js +2 -17
- package/lib/esm/components/Notification/Group/Group.js +17 -30
- package/lib/esm/components/Notification/IncubatorApproved/IncubatorApproved.js +8 -16
- package/lib/esm/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.js +2 -9
- package/lib/esm/components/Notification/KindlyNoticeFor/KindlyNoticeFor.js +4 -16
- package/lib/esm/components/Notification/Mention/Mention.js +7 -22
- package/lib/esm/components/Notification/Notification.js +37 -57
- package/lib/esm/components/Notification/PrivateMessage/PrivateMessage.js +24 -47
- package/lib/esm/components/Notification/Skeleton.js +3 -7
- package/lib/esm/components/Notification/UndeletedFor/UndeletedFor.js +2 -16
- package/lib/esm/components/Notification/UserBlocked/UserBlocked.js +5 -7
- package/lib/esm/components/Notification/UserConnection/UserConnection.js +5 -15
- package/lib/esm/components/Notification/UserFollow/UserFollow.js +5 -15
- package/lib/esm/components/Notification/VoteUp/VoteUp.js +6 -19
- package/lib/esm/components/PlatformWidget/PlatformWidget.js +20 -53
- package/lib/esm/components/PlatformWidget/Skeleton.js +2 -2
- package/lib/esm/components/PollSuggestionWidget/PollSnippet/PollSnippet.js +3 -12
- package/lib/esm/components/PollSuggestionWidget/PollSnippet/Skeleton.js +2 -2
- package/lib/esm/components/PollSuggestionWidget/PollSuggestionWidget.js +5 -17
- package/lib/esm/components/PollSuggestionWidget/Skeleton.js +2 -6
- package/lib/esm/components/PrivateMessageComponent/PrivateMessageComponent.js +6 -9
- package/lib/esm/components/PrivateMessageComponent/Skeleton.js +2 -6
- package/lib/esm/components/PrivateMessageEditor/MessageMediaUploader/index.js +16 -37
- package/lib/esm/components/PrivateMessageEditor/PrivateMessageEditor.js +9 -18
- package/lib/esm/components/PrivateMessageEditor/Skeleton.js +2 -2
- package/lib/esm/components/PrivateMessageSettingsIconButton/PrivateMessageSettingsIconButton.js +9 -31
- package/lib/esm/components/PrivateMessageSnippetItem/PrivateMessageSnippetItem.js +12 -19
- package/lib/esm/components/PrivateMessageSnippetItem/Skeleton.js +2 -5
- package/lib/esm/components/PrivateMessageSnippets/PrivateMessageSnippets.js +8 -16
- package/lib/esm/components/PrivateMessageSnippets/Skeleton.js +2 -8
- package/lib/esm/components/PrivateMessageThread/PrivateMessageThread.js +14 -35
- package/lib/esm/components/PrivateMessageThread/Skeleton.js +2 -9
- package/lib/esm/components/PrivateMessageThreadItem/PrivateMessageThreadItem.js +15 -33
- package/lib/esm/components/PrivateMessageThreadItem/Skeleton.js +2 -3
- package/lib/esm/components/RelatedFeedObjectsWidget/RelatedFeedObjectsWidget.js +6 -21
- package/lib/esm/components/RelatedFeedObjectsWidget/Skeleton.js +2 -2
- package/lib/esm/components/SearchAutocomplete/SearchAutocomplete.js +5 -8
- package/lib/esm/components/SearchDialog/SearchDialog.js +2 -4
- package/lib/esm/components/Skeleton/AvatarGroupSkeleton.js +2 -3
- package/lib/esm/components/Skeleton/GenericSkeleton.js +2 -6
- package/lib/esm/components/SnippetNotifications/Skeleton.js +3 -3
- package/lib/esm/components/SnippetNotifications/SnippetNotifications.js +23 -28
- package/lib/esm/components/ToastNotifications/Skeleton.js +2 -2
- package/lib/esm/components/ToastNotifications/ToastNotifications.js +16 -15
- package/lib/esm/components/User/Skeleton.js +2 -3
- package/lib/esm/components/User/User.js +6 -14
- package/lib/esm/components/UserActionIconButton/UserActionIconButton.js +16 -31
- package/lib/esm/components/UserConnectionsRequestsSentWidget/Skeleton.js +2 -2
- package/lib/esm/components/UserConnectionsRequestsSentWidget/UserConnectionsRequestsSentWidget.js +5 -17
- package/lib/esm/components/UserConnectionsRequestsWidget/Skeleton.js +2 -2
- package/lib/esm/components/UserConnectionsRequestsWidget/UserConnectionsRequestsWidget.js +5 -17
- package/lib/esm/components/UserConnectionsWidget/Skeleton.js +2 -2
- package/lib/esm/components/UserConnectionsWidget/UserConnectionsWidget.js +5 -17
- package/lib/esm/components/UserCounters/UserCounters.js +19 -28
- package/lib/esm/components/UserFollowedCategoriesWidget/Skeleton.js +2 -2
- package/lib/esm/components/UserFollowedCategoriesWidget/UserFollowedCategoriesWidget.js +5 -20
- package/lib/esm/components/UserFollowedUsersWidget/Skeleton.js +2 -2
- package/lib/esm/components/UserFollowedUsersWidget/UserFollowedUsersWidget.js +5 -17
- package/lib/esm/components/UserFollowersWidget/Skeleton.js +2 -2
- package/lib/esm/components/UserFollowersWidget/UserFollowersWidget.js +5 -17
- package/lib/esm/components/UserInfo/Skeleton.js +2 -6
- package/lib/esm/components/UserInfo/UserInfo.js +13 -14
- package/lib/esm/components/UserInfoDialog/UserInfoDialog.js +3 -5
- package/lib/esm/components/UserProfileBlocked/UserProfileBlocked.js +4 -11
- package/lib/esm/components/UserProfileEdit/Section/Account.js +3 -13
- package/lib/esm/components/UserProfileEdit/Section/AccountCredentials.js +15 -37
- package/lib/esm/components/UserProfileEdit/Section/PublicInfo.js +15 -25
- package/lib/esm/components/UserProfileEdit/Section/Settings.js +7 -37
- package/lib/esm/components/UserProfileEdit/Section/SettingsSkeleton.js +2 -5
- package/lib/esm/components/UserProfileEdit/Skeleton.js +2 -6
- package/lib/esm/components/UserProfileEdit/UserProfileEdit.js +2 -9
- package/lib/esm/components/UserProfileHeader/Skeleton.js +2 -13
- package/lib/esm/components/UserProfileHeader/UserProfileHeader.js +4 -21
- package/lib/esm/components/UserSocialAssociation/UserSocialAssociation.js +2 -16
- package/lib/esm/components/UserSubscribedGroupsWidget/Skeleton.js +2 -6
- package/lib/esm/components/UserSubscribedGroupsWidget/UserSubscribedGroupsWidget.js +7 -22
- package/lib/esm/components/UserSuggestionWidget/Skeleton.js +2 -5
- package/lib/esm/components/UserSuggestionWidget/UserSuggestionWidget.js +5 -17
- package/lib/esm/components/VoteAudienceButton/VoteAudienceButton.js +9 -23
- package/lib/esm/components/VoteButton/VoteButton.js +9 -15
- package/lib/esm/components/Widget/index.js +3 -2
- package/lib/esm/shared/AutoPlayer/index.js +5 -6
- package/lib/esm/shared/BaseDialog/BaseDialog.js +3 -10
- package/lib/esm/shared/BaseItem/BaseItem.js +4 -10
- package/lib/esm/shared/BaseItemButton/BaseItemButton.js +4 -10
- package/lib/esm/shared/Bullet/index.js +2 -1
- package/lib/esm/shared/Calendar/index.js +2 -3
- package/lib/esm/shared/CentralProgress/index.js +3 -4
- package/lib/esm/shared/ConfirmDialog/ConfirmDialog.js +2 -9
- package/lib/esm/shared/ConsentSolutionSwitch/index.js +5 -8
- package/lib/esm/shared/ContributionActionsMenu/index.js +22 -85
- package/lib/esm/shared/CustomSnackMessage/index.js +3 -7
- package/lib/esm/shared/DateTimeAgo/index.js +2 -6
- package/lib/esm/shared/EmailTextField/index.js +3 -2
- package/lib/esm/shared/EmojiPicker/EmojiPicker.js +2 -2
- package/lib/esm/shared/EventInfoDetails/index.js +5 -22
- package/lib/esm/shared/HiddenPlaceholder/index.js +2 -2
- package/lib/esm/shared/InfiniteScroll/index.js +8 -18
- package/lib/esm/shared/InfiniteScroll/stories/InfiniteScrollWithHeight.js +3 -8
- package/lib/esm/shared/InfiniteScroll/stories/PullDownToRefreshInfScroll.js +3 -7
- package/lib/esm/shared/InfiniteScroll/stories/ScrollableTargetFixedInfScroll.js +13 -18
- package/lib/esm/shared/InfiniteScroll/stories/ScrollableTargetInfScroll.js +3 -8
- package/lib/esm/shared/InfiniteScroll/stories/ScrolleableTop.js +6 -11
- package/lib/esm/shared/InfiniteScroll/stories/WindowInfiniteScrollComponent.js +3 -6
- package/lib/esm/shared/LanguageSwitcher/index.js +3 -5
- package/lib/esm/shared/Lightbox/Lightbox.js +4 -3
- package/lib/esm/shared/MarkRead/MarkRead.js +3 -3
- package/lib/esm/shared/Media/File/DisplayComponent.js +13 -42
- package/lib/esm/shared/Media/File/Lightbox/index.js +5 -5
- package/lib/esm/shared/Media/File/PreviewComponent.js +5 -9
- package/lib/esm/shared/Media/File/TriggerButton.js +14 -25
- package/lib/esm/shared/Media/File/asUploadButton.js +3 -2
- package/lib/esm/shared/Media/Link/DisplayComponent.js +8 -15
- package/lib/esm/shared/Media/Link/LayerComponent.js +2 -11
- package/lib/esm/shared/Media/Link/PreviewComponent.js +2 -4
- package/lib/esm/shared/Media/Link/TriggerButton.js +2 -3
- package/lib/esm/shared/Media/Link/UrlTextField/index.js +5 -7
- package/lib/esm/shared/Media/Share/DisplayComponent.js +3 -3
- package/lib/esm/shared/MetadataField/MetadataField.js +8 -7
- package/lib/esm/shared/NewChip/NewChip.js +2 -2
- package/lib/esm/shared/NotificationItem/NotificationItem.js +3 -12
- package/lib/esm/shared/PasswordTextField/index.js +4 -6
- package/lib/esm/shared/PhoneTextField/index.js +3 -2
- package/lib/esm/shared/ScrollContainer/index.js +2 -2
- package/lib/esm/shared/StickyBox/index.js +3 -2
- package/lib/esm/shared/TagChip/index.js +2 -2
- package/lib/esm/shared/Tags/index.js +11 -23
- package/lib/esm/shared/UrlTextField/index.js +3 -2
- package/lib/esm/shared/UserAvatar/UserAvatar.js +3 -2
- package/lib/esm/shared/UserDeletedSnackBar/UserDeletedSnackBar.js +3 -5
- package/lib/esm/shared/UsernameTextField/index.js +3 -2
- package/lib/esm/shared/VirtualizedScroller/VirtualScrollerChild.js +2 -2
- package/lib/esm/shared/VirtualizedScroller/VirtualizedScroller.js +3 -2
- package/lib/esm/utils/contribution.js +3 -3
- package/lib/esm/utils/errors.js +3 -3
- package/lib/umd/react-ui.js +1 -1
- package/package.json +7 -7
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { __rest } from "tslib";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
3
|
import React, { useEffect, useMemo, useReducer, useState } from 'react';
|
|
3
4
|
import { styled } from '@mui/material/styles';
|
|
4
5
|
import List from '@mui/material/List';
|
|
@@ -174,26 +175,13 @@ export default function CategoryTrendingFeedWidget(inProps) {
|
|
|
174
175
|
};
|
|
175
176
|
// RENDER
|
|
176
177
|
if ((!contentAvailability && !scUserContext.user) || (autoHide && !state.count && state.initialized)) {
|
|
177
|
-
return
|
|
178
|
+
return _jsx(HiddenPlaceholder, {});
|
|
178
179
|
}
|
|
179
180
|
if (!state.initialized) {
|
|
180
|
-
return
|
|
181
|
+
return _jsx(Skeleton, {});
|
|
181
182
|
}
|
|
182
|
-
const content = (React.
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
React.createElement(FormattedMessage, { id: "ui.categoryTrendingFeedWidget.noResults", defaultMessage: "ui.categoryTrendingFeedWidget.noResults" }))) : (React.createElement(React.Fragment, null,
|
|
187
|
-
React.createElement(List, null, state.results.slice(0, state.visibleItems).map((obj) => (React.createElement(ListItem, { key: obj[obj.type].id },
|
|
188
|
-
React.createElement(FeedObject, Object.assign({ elevation: 0, feedObject: obj[obj.type] }, FeedObjectProps)))))),
|
|
189
|
-
state.count > state.visibleItems && (React.createElement(Button, Object.assign({ className: classes.showMore }, (isMobile
|
|
190
|
-
? { onClick: handleToggleDialogOpen }
|
|
191
|
-
: { component: Link, to: scRoutingContext.url(SCRoutes.CATEGORY_TRENDING_FEED_ROUTE_NAME, scCategory) })),
|
|
192
|
-
React.createElement(FormattedMessage, { id: "ui.categoryTrendingFeedWidget.button.showAll", defaultMessage: "ui.categoryTrendingFeedWidget.button.showAll" }))))),
|
|
193
|
-
openDialog && (React.createElement(DialogRoot, Object.assign({ className: classes.dialogRoot, title: React.createElement(FormattedMessage, { defaultMessage: "ui.categoryTrendingFeedWidget.title", id: "ui.categoryTrendingFeedWidget.title", values: { total: state.count } }), onClose: handleToggleDialogOpen, open: openDialog }, DialogProps),
|
|
194
|
-
React.createElement(InfiniteScroll, { dataLength: state.results.length, next: handleNext, hasMoreNext: Boolean(state.next), loaderNext: React.createElement(FeedObjectSkeleton, Object.assign({ elevation: 0 }, FeedObjectProps)), height: isMobile ? '100%' : 400, endMessage: React.createElement(Typography, { className: classes.endMessage },
|
|
195
|
-
React.createElement(FormattedMessage, { id: "ui.categoryTrendingFeedWidget.noMoreResults", defaultMessage: "ui.categoryTrendingFeedWidget.noMoreResults" })) },
|
|
196
|
-
React.createElement(List, null, state.results.map((obj) => (React.createElement(ListItem, { key: obj[obj.type].id },
|
|
197
|
-
React.createElement(FeedObject, Object.assign({ elevation: 0, feedObject: obj[obj.type] }, FeedObjectProps)))))))))));
|
|
198
|
-
return (React.createElement(Root, Object.assign({ className: classNames(classes.root, className) }, rest), content));
|
|
183
|
+
const content = (_jsxs(CardContent, { children: [_jsx(Typography, Object.assign({ className: classes.title, variant: "h5" }, { children: _jsx(FormattedMessage, { id: "ui.categoryTrendingFeedWidget.title", defaultMessage: "ui.categoryTrendingFeedWidget.title" }) })), !state.count ? (_jsx(Typography, Object.assign({ className: classes.noResults, variant: "body2" }, { children: _jsx(FormattedMessage, { id: "ui.categoryTrendingFeedWidget.noResults", defaultMessage: "ui.categoryTrendingFeedWidget.noResults" }) }))) : (_jsxs(React.Fragment, { children: [_jsx(List, { children: state.results.slice(0, state.visibleItems).map((obj) => (_jsx(ListItem, { children: _jsx(FeedObject, Object.assign({ elevation: 0, feedObject: obj[obj.type] }, FeedObjectProps)) }, obj[obj.type].id))) }), state.count > state.visibleItems && (_jsx(Button, Object.assign({ className: classes.showMore }, (isMobile
|
|
184
|
+
? { onClick: handleToggleDialogOpen }
|
|
185
|
+
: { component: Link, to: scRoutingContext.url(SCRoutes.CATEGORY_TRENDING_FEED_ROUTE_NAME, scCategory) }), { children: _jsx(FormattedMessage, { id: "ui.categoryTrendingFeedWidget.button.showAll", defaultMessage: "ui.categoryTrendingFeedWidget.button.showAll" }) })))] })), openDialog && (_jsx(DialogRoot, Object.assign({ className: classes.dialogRoot, title: _jsx(FormattedMessage, { defaultMessage: "ui.categoryTrendingFeedWidget.title", id: "ui.categoryTrendingFeedWidget.title", values: { total: state.count } }), onClose: handleToggleDialogOpen, open: openDialog }, DialogProps, { children: _jsx(InfiniteScroll, Object.assign({ dataLength: state.results.length, next: handleNext, hasMoreNext: Boolean(state.next), loaderNext: _jsx(FeedObjectSkeleton, Object.assign({ elevation: 0 }, FeedObjectProps)), height: isMobile ? '100%' : 400, endMessage: _jsx(Typography, Object.assign({ className: classes.endMessage }, { children: _jsx(FormattedMessage, { id: "ui.categoryTrendingFeedWidget.noMoreResults", defaultMessage: "ui.categoryTrendingFeedWidget.noMoreResults" }) })) }, { children: _jsx(List, { children: state.results.map((obj) => (_jsx(ListItem, { children: _jsx(FeedObject, Object.assign({ elevation: 0, feedObject: obj[obj.type] }, FeedObjectProps)) }, obj[obj.type].id))) }) })) })))] }));
|
|
186
|
+
return (_jsx(Root, Object.assign({ className: classNames(classes.root, className) }, rest, { children: content })));
|
|
199
187
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import Widget from '../Widget';
|
|
3
3
|
import List from '@mui/material/List';
|
|
4
4
|
import { styled } from '@mui/material/styles';
|
|
@@ -35,7 +35,5 @@ const Root = styled(Widget, {
|
|
|
35
35
|
*
|
|
36
36
|
*/
|
|
37
37
|
export default function CategoryTrendingFeedWidgetSkeleton(props) {
|
|
38
|
-
return (
|
|
39
|
-
React.createElement(CardContent, null,
|
|
40
|
-
React.createElement(List, { className: classes.list }, [...Array(4)].map((post, index) => (React.createElement(FeedObjectSkeleton, { key: index, elevation: 0 })))))));
|
|
38
|
+
return (_jsx(Root, Object.assign({ className: classes.root }, props, { children: _jsx(CardContent, { children: _jsx(List, Object.assign({ className: classes.list }, { children: [...Array(4)].map((post, index) => (_jsx(FeedObjectSkeleton, { elevation: 0 }, index))) })) }) })));
|
|
41
39
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { __rest } from "tslib";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
3
|
import React, { useEffect, useMemo, useReducer, useState } from 'react';
|
|
3
4
|
import { styled } from '@mui/material/styles';
|
|
4
5
|
import List from '@mui/material/List';
|
|
@@ -166,24 +167,11 @@ export default function CategoryTrendingUsersWidget(inProps) {
|
|
|
166
167
|
};
|
|
167
168
|
// RENDER
|
|
168
169
|
if ((!contentAvailability && !scUserContext.user) || (autoHide && !state.count && state.initialized)) {
|
|
169
|
-
return
|
|
170
|
+
return _jsx(HiddenPlaceholder, {});
|
|
170
171
|
}
|
|
171
172
|
if (!state.initialized) {
|
|
172
|
-
return
|
|
173
|
+
return _jsx(Skeleton, {});
|
|
173
174
|
}
|
|
174
|
-
const content = (React.
|
|
175
|
-
|
|
176
|
-
React.createElement(FormattedMessage, { id: "ui.categoryTrendingUsersWidget.title", defaultMessage: "ui.categoryTrendingUsersWidget.title" })),
|
|
177
|
-
!state.count ? (React.createElement(Typography, { className: classes.noResults, variant: "body2" },
|
|
178
|
-
React.createElement(FormattedMessage, { id: "ui.categoryTrendingUsersWidget.noResults", defaultMessage: "ui.categoryTrendingUsersWidget.noResults" }))) : (React.createElement(React.Fragment, null,
|
|
179
|
-
React.createElement(List, null, state.results.slice(0, state.visibleItems).map((user) => (React.createElement(ListItem, { key: user.id },
|
|
180
|
-
React.createElement(User, Object.assign({ elevation: 0, user: user }, UserProps)))))),
|
|
181
|
-
state.count > state.visibleItems && (React.createElement(Button, { className: classes.showMore, onClick: handleToggleDialogOpen },
|
|
182
|
-
React.createElement(FormattedMessage, { id: "ui.categoryTrendingUsersWidget.button.showAll", defaultMessage: "ui.categoryTrendingUsersWidget.button.showAll" }))))),
|
|
183
|
-
openDialog && (React.createElement(DialogRoot, Object.assign({ className: classes.dialogRoot, title: React.createElement(FormattedMessage, { defaultMessage: "ui.categoryTrendingUsersWidget.title", id: "ui.categoryTrendingUsersWidget.title", values: { total: state.count } }), onClose: handleToggleDialogOpen, open: openDialog }, DialogProps),
|
|
184
|
-
React.createElement(InfiniteScroll, { dataLength: state.results.length, next: handleNext, hasMoreNext: Boolean(state.next), loaderNext: React.createElement(UserSkeleton, Object.assign({ elevation: 0 }, UserProps)), height: isMobile ? '100%' : 400, endMessage: React.createElement(Typography, { className: classes.endMessage },
|
|
185
|
-
React.createElement(FormattedMessage, { id: "ui.categoryTrendingUsersWidget.noMoreResults", defaultMessage: "ui.categoryTrendingUsersWidget.noMoreResults" })) },
|
|
186
|
-
React.createElement(List, null, state.results.map((user) => (React.createElement(ListItem, { key: user.id },
|
|
187
|
-
React.createElement(User, Object.assign({ elevation: 0, user: user }, UserProps)))))))))));
|
|
188
|
-
return (React.createElement(Root, Object.assign({ className: classNames(classes.root, className) }, rest), content));
|
|
175
|
+
const content = (_jsxs(CardContent, { children: [_jsx(Typography, Object.assign({ className: classes.title, variant: "h5" }, { children: _jsx(FormattedMessage, { id: "ui.categoryTrendingUsersWidget.title", defaultMessage: "ui.categoryTrendingUsersWidget.title" }) })), !state.count ? (_jsx(Typography, Object.assign({ className: classes.noResults, variant: "body2" }, { children: _jsx(FormattedMessage, { id: "ui.categoryTrendingUsersWidget.noResults", defaultMessage: "ui.categoryTrendingUsersWidget.noResults" }) }))) : (_jsxs(React.Fragment, { children: [_jsx(List, { children: state.results.slice(0, state.visibleItems).map((user) => (_jsx(ListItem, { children: _jsx(User, Object.assign({ elevation: 0, user: user }, UserProps)) }, user.id))) }), state.count > state.visibleItems && (_jsx(Button, Object.assign({ className: classes.showMore, onClick: handleToggleDialogOpen }, { children: _jsx(FormattedMessage, { id: "ui.categoryTrendingUsersWidget.button.showAll", defaultMessage: "ui.categoryTrendingUsersWidget.button.showAll" }) })))] })), openDialog && (_jsx(DialogRoot, Object.assign({ className: classes.dialogRoot, title: _jsx(FormattedMessage, { defaultMessage: "ui.categoryTrendingUsersWidget.title", id: "ui.categoryTrendingUsersWidget.title", values: { total: state.count } }), onClose: handleToggleDialogOpen, open: openDialog }, DialogProps, { children: _jsx(InfiniteScroll, Object.assign({ dataLength: state.results.length, next: handleNext, hasMoreNext: Boolean(state.next), loaderNext: _jsx(UserSkeleton, Object.assign({ elevation: 0 }, UserProps)), height: isMobile ? '100%' : 400, endMessage: _jsx(Typography, Object.assign({ className: classes.endMessage }, { children: _jsx(FormattedMessage, { id: "ui.categoryTrendingUsersWidget.noMoreResults", defaultMessage: "ui.categoryTrendingUsersWidget.noMoreResults" }) })) }, { children: _jsx(List, { children: state.results.map((user) => (_jsx(ListItem, { children: _jsx(User, Object.assign({ elevation: 0, user: user }, UserProps)) }, user.id))) }) })) })))] }));
|
|
176
|
+
return (_jsx(Root, Object.assign({ className: classNames(classes.root, className) }, rest, { children: content })));
|
|
189
177
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import Widget from '../Widget';
|
|
3
3
|
import List from '@mui/material/List';
|
|
4
4
|
import { styled } from '@mui/material/styles';
|
|
@@ -35,8 +35,5 @@ const Root = styled(Widget, {
|
|
|
35
35
|
*
|
|
36
36
|
*/
|
|
37
37
|
export default function CategoryTrendingPeopleWidgetSkeleton(props) {
|
|
38
|
-
return (
|
|
39
|
-
React.createElement(CardContent, null,
|
|
40
|
-
React.createElement(List, { className: classes.list }, [...Array(4)].map((person, index) => (React.createElement(ListItem, { key: index },
|
|
41
|
-
React.createElement(UserSkeleton, { elevation: 0 }))))))));
|
|
38
|
+
return (_jsx(Root, Object.assign({ className: classes.root }, props, { children: _jsx(CardContent, { children: _jsx(List, Object.assign({ className: classes.list }, { children: [...Array(4)].map((person, index) => (_jsx(ListItem, { children: _jsx(UserSkeleton, { elevation: 0 }) }, index))) })) }) })));
|
|
42
39
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { __rest } from "tslib";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
3
|
import React, { useContext, useRef, useState } from 'react';
|
|
3
4
|
import { styled } from '@mui/material/styles';
|
|
4
5
|
import { Alert, Box, Button, Divider, ListItemIcon, Menu, MenuItem, Popover, SwipeableDrawer, Typography, useMediaQuery, useTheme } from '@mui/material';
|
|
@@ -166,60 +167,36 @@ export default function ChangeCover(inProps) {
|
|
|
166
167
|
* Renders change cover menu items
|
|
167
168
|
*/
|
|
168
169
|
function renderMenuItems() {
|
|
169
|
-
return (
|
|
170
|
-
React.createElement(CircularProgress, { size: 15 }))) : (React.createElement(React.Fragment, null,
|
|
171
|
-
React.createElement("input", { type: "file", onChange: handleUpload, ref: fileInput, hidden: true, accept: ".gif,.png,.jpg,.jpeg" }),
|
|
172
|
-
React.createElement(MenuItem, { disabled: loading, onClick: () => fileInput.current.click(), className: classes.addMenuItem },
|
|
173
|
-
React.createElement(ListItemIcon, null,
|
|
174
|
-
React.createElement(Icon, null, "add_circle_outline")),
|
|
175
|
-
React.createElement(FormattedMessage, { id: "ui.changeCover.button.upload", defaultMessage: "ui.changeCover.button.upload" })),
|
|
176
|
-
hasCover && (React.createElement(MenuItem, { className: classes.delMenuItem, onClick: () => setOpenDeleteCoverDialog(true) },
|
|
177
|
-
React.createElement(ListItemIcon, null,
|
|
178
|
-
React.createElement(Icon, null, "delete")),
|
|
179
|
-
React.createElement(FormattedMessage, { id: "ui.changeCover.button.delete", defaultMessage: "ui.changeCover.button.delete" })))))));
|
|
170
|
+
return (_jsx(Box, { children: loading ? (_jsx(MenuItem, Object.assign({ sx: { justifyContent: 'center' } }, { children: _jsx(CircularProgress, { size: 15 }) }))) : (_jsxs(_Fragment, { children: [_jsx("input", { type: "file", onChange: handleUpload, ref: fileInput, hidden: true, accept: ".gif,.png,.jpg,.jpeg" }), _jsxs(MenuItem, Object.assign({ disabled: loading, onClick: () => fileInput.current.click(), className: classes.addMenuItem }, { children: [_jsx(ListItemIcon, { children: _jsx(Icon, { children: "add_circle_outline" }) }), _jsx(FormattedMessage, { id: "ui.changeCover.button.upload", defaultMessage: "ui.changeCover.button.upload" })] })), hasCover && (_jsxs(MenuItem, Object.assign({ className: classes.delMenuItem, onClick: () => setOpenDeleteCoverDialog(true) }, { children: [_jsx(ListItemIcon, { children: _jsx(Icon, { children: "delete" }) }), _jsx(FormattedMessage, { id: "ui.changeCover.button.delete", defaultMessage: "ui.changeCover.button.delete" })] })))] })) }));
|
|
180
171
|
}
|
|
181
172
|
/**
|
|
182
173
|
* Renders change cover menu
|
|
183
174
|
*/
|
|
184
|
-
const cc = (
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
React.createElement(Divider, null),
|
|
199
|
-
React.createElement(Typography, { component: "span" },
|
|
200
|
-
React.createElement(FormattedMessage, { id: "ui.changeCover.info", defaultMessage: "ui.changeCover.info", values: {
|
|
201
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
|
|
202
|
-
// @ts-ignore
|
|
203
|
-
li: (chunks) => React.createElement("li", null, chunks),
|
|
204
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
|
|
205
|
-
// @ts-ignore
|
|
206
|
-
ul: (chunks) => React.createElement("ul", null, chunks)
|
|
207
|
-
} }))))))),
|
|
208
|
-
openDeleteCoverDialog && (React.createElement(ConfirmDialog, { open: openDeleteCoverDialog, title: React.createElement(FormattedMessage, { id: "ui.changeCover.dialog.msg", defaultMessage: "ui.changeCover.dialog.msg" }), onConfirm: deleteCover, isUpdating: isDeletingCover, onClose: () => {
|
|
209
|
-
setOpenDeleteCoverDialog(false);
|
|
210
|
-
setAnchorEl(null);
|
|
211
|
-
} }))));
|
|
175
|
+
const cc = (_jsxs(React.Fragment, { children: [_jsx(Button, Object.assign({ size: "small", variant: "contained", disabled: loading, onClick: handleOpen }, rest, { children: _jsx(Icon, { children: "photo_camera" }) })), _jsx(_Fragment, { children: isMobile ? (_jsx(SwipeableDrawer, Object.assign({ open: open, onClose: handleClose, onOpen: handleOpen, anchor: "bottom", disableSwipeToOpen: true }, { children: renderMenuItems() }))) : (_jsx(Menu, Object.assign({ anchorEl: anchorEl, open: open, onClose: handleClose }, { children: renderMenuItems() }))) }), !isMobile && (_jsxs(_Fragment, { children: [_jsx(Button, Object.assign({ className: classes.helpPopover, variant: "contained", onClick: handleClickHelpButton }, { children: _jsx(Icon, { children: "help_outline" }) })), isOpen && (_jsx(Popover, Object.assign({ open: isOpen, anchorEl: anchorElPopover, onClose: handleCloseHelpPopover, anchorOrigin: {
|
|
176
|
+
vertical: 'bottom',
|
|
177
|
+
horizontal: 'right'
|
|
178
|
+
} }, { children: _jsxs(Box, Object.assign({ sx: { p: '10px' } }, { children: [_jsx(Typography, Object.assign({ component: "h3" }, { children: _jsx(FormattedMessage, { id: "ui.changeCover.button.uploadA", defaultMessage: "ui.changeCover.button.uploadA" }) })), _jsx(Divider, {}), _jsx(Typography, Object.assign({ component: "span" }, { children: _jsx(FormattedMessage, { id: "ui.changeCover.info", defaultMessage: "ui.changeCover.info", values: {
|
|
179
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
|
|
180
|
+
// @ts-ignore
|
|
181
|
+
li: (chunks) => _jsx("li", { children: chunks }),
|
|
182
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
|
|
183
|
+
// @ts-ignore
|
|
184
|
+
ul: (chunks) => _jsx("ul", { children: chunks })
|
|
185
|
+
} }) }))] })) })))] })), openDeleteCoverDialog && (_jsx(ConfirmDialog, { open: openDeleteCoverDialog, title: _jsx(FormattedMessage, { id: "ui.changeCover.dialog.msg", defaultMessage: "ui.changeCover.dialog.msg" }), onConfirm: deleteCover, isUpdating: isDeletingCover, onClose: () => {
|
|
186
|
+
setOpenDeleteCoverDialog(false);
|
|
187
|
+
setAnchorEl(null);
|
|
188
|
+
} }))] }));
|
|
212
189
|
/**
|
|
213
190
|
* If there is an error
|
|
214
191
|
*/
|
|
215
192
|
if (alert) {
|
|
216
|
-
return (
|
|
193
|
+
return (_jsx(Alert, Object.assign({ color: "error", onClose: () => setAlert(null) }, { children: alert })));
|
|
217
194
|
}
|
|
218
195
|
/**
|
|
219
196
|
* Renders root object (if not hidden by autoHide prop)
|
|
220
197
|
*/
|
|
221
198
|
if (!autoHide) {
|
|
222
|
-
return (
|
|
199
|
+
return (_jsx(Root, Object.assign({}, rest, { className: classNames(classes.root, className) }, { children: cc })));
|
|
223
200
|
}
|
|
224
201
|
return null;
|
|
225
202
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { __rest } from "tslib";
|
|
2
|
-
import
|
|
2
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useContext, useRef, useState } from 'react';
|
|
3
4
|
import { styled } from '@mui/material/styles';
|
|
4
5
|
import { Alert } from '@mui/material';
|
|
5
6
|
import { SCUserContext } from '@selfcommunity/react-core';
|
|
@@ -122,16 +123,13 @@ export default function ChangeGroupCover(inProps) {
|
|
|
122
123
|
* If there is an error
|
|
123
124
|
*/
|
|
124
125
|
if (alert) {
|
|
125
|
-
return (
|
|
126
|
+
return (_jsx(Alert, Object.assign({ color: "error", onClose: () => setAlert(null) }, { children: alert })));
|
|
126
127
|
}
|
|
127
128
|
/**
|
|
128
129
|
* Renders root object (if not hidden by autoHide prop)
|
|
129
130
|
*/
|
|
130
131
|
if (!autoHide) {
|
|
131
|
-
return (
|
|
132
|
-
React.createElement("input", { type: "file", onChange: handleUpload, ref: fileInput, hidden: true, accept: ".gif,.png,.jpg,.jpeg" }),
|
|
133
|
-
React.createElement(Root, Object.assign({ className: classNames(classes.root, className), size: "medium", variant: "contained", disabled: loading, onClick: () => fileInput.current.click(), loading: loading }, rest),
|
|
134
|
-
React.createElement(Icon, null, "image"))));
|
|
132
|
+
return (_jsxs(_Fragment, { children: [_jsx("input", { type: "file", onChange: handleUpload, ref: fileInput, hidden: true, accept: ".gif,.png,.jpg,.jpeg" }), _jsx(Root, Object.assign({ className: classNames(classes.root, className), size: "medium", variant: "contained", disabled: loading, onClick: () => fileInput.current.click(), loading: loading }, rest, { children: _jsx(Icon, { children: "image" }) }))] }));
|
|
135
133
|
}
|
|
136
134
|
return null;
|
|
137
135
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { __rest } from "tslib";
|
|
2
|
-
import
|
|
2
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useContext, useRef, useState } from 'react';
|
|
3
4
|
import { styled } from '@mui/material/styles';
|
|
4
5
|
import { Alert } from '@mui/material';
|
|
5
6
|
import Icon from '@mui/material/Icon';
|
|
@@ -120,16 +121,13 @@ export default function ChangeGroupPicture(inProps) {
|
|
|
120
121
|
* If there is an error
|
|
121
122
|
*/
|
|
122
123
|
if (alert) {
|
|
123
|
-
return (
|
|
124
|
+
return (_jsx(Alert, Object.assign({ color: "error", onClose: () => setAlert(null) }, { children: alert })));
|
|
124
125
|
}
|
|
125
126
|
/**
|
|
126
127
|
* Renders the component (if not hidden by autoHide prop)
|
|
127
128
|
*/
|
|
128
129
|
if (!autoHide) {
|
|
129
|
-
return (
|
|
130
|
-
React.createElement("input", { type: "file", onChange: handleUpload, ref: fileInput, hidden: true, accept: ".gif,.png,.jpg,.jpeg" }),
|
|
131
|
-
React.createElement(Root, Object.assign({ className: classNames(classes.root, className), size: "small", variant: "contained", disabled: loading, onClick: () => fileInput.current.click(), loading: loading }, rest),
|
|
132
|
-
React.createElement(Icon, null, "photo_camera"))));
|
|
130
|
+
return (_jsxs(_Fragment, { children: [_jsx("input", { type: "file", onChange: handleUpload, ref: fileInput, hidden: true, accept: ".gif,.png,.jpg,.jpeg" }), _jsx(Root, Object.assign({ className: classNames(classes.root, className), size: "small", variant: "contained", disabled: loading, onClick: () => fileInput.current.click(), loading: loading }, rest, { children: _jsx(Icon, { children: "photo_camera" }) }))] }));
|
|
133
131
|
}
|
|
134
132
|
return null;
|
|
135
133
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { __rest } from "tslib";
|
|
2
|
-
import
|
|
2
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useContext, useState } from 'react';
|
|
3
4
|
import { styled } from '@mui/material/styles';
|
|
4
5
|
import { Button } from '@mui/material';
|
|
5
6
|
import ChangePictureDialog from './ChangePictureDialog/ChangePictureDialog';
|
|
@@ -62,9 +63,7 @@ export default function ChangePicture(inProps) {
|
|
|
62
63
|
* Renders the component (if not hidden by autoHide prop)
|
|
63
64
|
*/
|
|
64
65
|
if (!autoHide) {
|
|
65
|
-
return (
|
|
66
|
-
React.createElement(Root, Object.assign({ className: classNames(classes.root, className), size: "small", variant: "contained", onClick: () => setOpenChangePictureDialog(true) }, rest), iconButton ? (React.createElement(Icon, null, "photo_camera")) : (React.createElement(FormattedMessage, { id: "ui.changePicture.button.change", defaultMessage: "ui.changePicture.button.change" }))),
|
|
67
|
-
openChangePictureDialog && (React.createElement(ChangePictureDialog, { className: classes.dialog, open: openChangePictureDialog, onChange: (avatar) => onChange && onChange(avatar), onClose: () => setOpenChangePictureDialog(false) }))));
|
|
66
|
+
return (_jsxs(_Fragment, { children: [_jsx(Root, Object.assign({ className: classNames(classes.root, className), size: "small", variant: "contained", onClick: () => setOpenChangePictureDialog(true) }, rest, { children: iconButton ? (_jsx(Icon, { children: "photo_camera" })) : (_jsx(FormattedMessage, { id: "ui.changePicture.button.change", defaultMessage: "ui.changePicture.button.change" })) })), openChangePictureDialog && (_jsx(ChangePictureDialog, { className: classes.dialog, open: openChangePictureDialog, onChange: (avatar) => onChange && onChange(avatar), onClose: () => setOpenChangePictureDialog(false) }))] }));
|
|
68
67
|
}
|
|
69
68
|
return null;
|
|
70
69
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { __awaiter, __rest } from "tslib";
|
|
2
|
-
import
|
|
2
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useContext, useEffect, useRef, useState } from 'react';
|
|
3
4
|
import { styled } from '@mui/material/styles';
|
|
4
5
|
import Button from '@mui/material/Button';
|
|
5
6
|
import Typography from '@mui/material/Typography';
|
|
@@ -178,25 +179,12 @@ export default function ChangePictureDialog(props) {
|
|
|
178
179
|
/**
|
|
179
180
|
* Renders root object
|
|
180
181
|
*/
|
|
181
|
-
return (
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
|
|
190
|
-
// @ts-ignore
|
|
191
|
-
li: (chunks) => React.createElement("li", null, chunks),
|
|
192
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
|
|
193
|
-
// @ts-ignore
|
|
194
|
-
ul: (chunks) => React.createElement("ul", null, chunks)
|
|
195
|
-
} }))),
|
|
196
|
-
React.createElement(ImageList, { cols: 3, rowHeight: 'auto', id: "avatarsList", classes: { root: classes.imagesList } }, avatars.map((avatar) => (React.createElement(Box, { className: classes.imageItem, key: avatar.id },
|
|
197
|
-
React.createElement(ImageListItem, { className: primary === avatar.id ? classes.primary : '', key: avatar.id, onClick: () => selectPrimaryAvatar(avatar) },
|
|
198
|
-
React.createElement("img", { src: avatar.avatar, loading: "lazy", alt: 'img' }),
|
|
199
|
-
React.createElement(ImageListItemBar, { position: "top", actionIcon: React.createElement(IconButton, { onClick: () => handleOpen(avatar.id), size: "small" },
|
|
200
|
-
React.createElement(Icon, null, "delete")) })))))),
|
|
201
|
-
openDeleteAvatarDialog && (React.createElement(ConfirmDialog, { open: openDeleteAvatarDialog, title: React.createElement(FormattedMessage, { id: "ui.changePicture.dialog.msg", defaultMessage: "ui.changePicture.dialog.msg" }), btnConfirm: React.createElement(FormattedMessage, { id: "ui.changePicture.dialog.confirm", defaultMessage: "ui.changePicture.dialog.confirm" }), onConfirm: deleteAvatar, isUpdating: isDeletingAvatar, onClose: () => setOpenDeleteAvatarDialog(false) }))));
|
|
182
|
+
return (_jsxs(Root, Object.assign({ className: classNames(classes.dialogRoot, className), title: _jsx(FormattedMessage, { defaultMessage: "ui.changePicture.title", id: "ui.changePicture.title" }), onClose: onClose, open: open }, rest, { children: [_jsxs(Box, Object.assign({ className: classes.upload }, { children: [alert ? (_jsx(Alert, Object.assign({ color: "error", onClose: () => setAlert(false) }, { children: _jsx(FormattedMessage, { id: "ui.changePicture.button.upload.alert", defaultMessage: "ui.changePicture.button.upload.alert" }) }))) : (_jsxs(_Fragment, { children: [_jsx("input", { type: "file", onChange: handleUpload, ref: fileInput, hidden: true, accept: ".gif,.png,.jpg,.jpeg" }), _jsx(Button, Object.assign({ disabled: loading || isDeletingAvatar, variant: "outlined", onClick: () => fileInput.current.click(), color: error ? 'error' : 'primary', startIcon: loading ? null : _jsx(Icon, { children: "folder_open" }) }, { children: loading ? (_jsx(CircularProgress, { size: 15 })) : (_jsx(_Fragment, { children: error ? (_jsx(FormattedMessage, { id: "ui.changePicture.button.upload.error", defaultMessage: "ui.changePicture.button.upload.error" })) : (_jsx(FormattedMessage, { id: "ui.changePicture.button.upload", defaultMessage: "ui.changePicture.button.upload" })) })) }))] })), _jsx(Typography, Object.assign({ component: "span", fontSize: "small", color: "text.secondary", gutterBottom: true }, { children: _jsx(FormattedMessage, { id: "ui.changePicture.info", defaultMessage: "ui.changePicture.info", values: {
|
|
183
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
|
|
184
|
+
// @ts-ignore
|
|
185
|
+
li: (chunks) => _jsx("li", { children: chunks }),
|
|
186
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
|
|
187
|
+
// @ts-ignore
|
|
188
|
+
ul: (chunks) => _jsx("ul", { children: chunks })
|
|
189
|
+
} }) }))] })), _jsx(ImageList, Object.assign({ cols: 3, rowHeight: 'auto', id: "avatarsList", classes: { root: classes.imagesList } }, { children: avatars.map((avatar) => (_jsx(Box, Object.assign({ className: classes.imageItem }, { children: _jsxs(ImageListItem, Object.assign({ className: primary === avatar.id ? classes.primary : '', onClick: () => selectPrimaryAvatar(avatar) }, { children: [_jsx("img", { src: avatar.avatar, loading: "lazy", alt: 'img' }), _jsx(ImageListItemBar, { position: "top", actionIcon: _jsx(IconButton, Object.assign({ onClick: () => handleOpen(avatar.id), size: "small" }, { children: _jsx(Icon, { children: "delete" }) })) })] }), avatar.id) }), avatar.id))) })), openDeleteAvatarDialog && (_jsx(ConfirmDialog, { open: openDeleteAvatarDialog, title: _jsx(FormattedMessage, { id: "ui.changePicture.dialog.msg", defaultMessage: "ui.changePicture.dialog.msg" }), btnConfirm: _jsx(FormattedMessage, { id: "ui.changePicture.dialog.confirm", defaultMessage: "ui.changePicture.dialog.confirm" }), onConfirm: deleteAvatar, isUpdating: isDeletingAvatar, onClose: () => setOpenDeleteAvatarDialog(false) }))] })));
|
|
202
190
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { __rest } from "tslib";
|
|
2
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
3
|
import React, { useContext, useState } from 'react';
|
|
3
4
|
import { styled } from '@mui/material/styles';
|
|
4
5
|
import Widget from '../Widget';
|
|
@@ -133,16 +134,14 @@ export default function CommentObject(inProps) {
|
|
|
133
134
|
* @param comment
|
|
134
135
|
*/
|
|
135
136
|
function renderTimeAgo(comment) {
|
|
136
|
-
return (
|
|
137
|
-
React.createElement(DateTimeAgo, { date: comment.added_at }))) : (React.createElement(DateTimeAgo, { date: comment.added_at }))));
|
|
137
|
+
return (_jsx(_Fragment, { children: linkableCommentDateTime ? (_jsx(Link, Object.assign({ to: scRoutingContext.url(SCRoutes.COMMENT_ROUTE_NAME, getRouteData(comment)), className: classes.activityAt }, { children: _jsx(DateTimeAgo, { date: comment.added_at }) }))) : (_jsx(DateTimeAgo, { date: comment.added_at })) }));
|
|
138
138
|
}
|
|
139
139
|
/**
|
|
140
140
|
* Render CommentObjectReply action
|
|
141
141
|
* @param comment
|
|
142
142
|
*/
|
|
143
143
|
function renderActionReply(comment) {
|
|
144
|
-
return (
|
|
145
|
-
React.createElement(FormattedMessage, { id: "ui.commentObject.reply", defaultMessage: "ui.commentObject.reply" })));
|
|
144
|
+
return (_jsx(Button, Object.assign({ className: classes.reply, variant: "text", onClick: () => reply(comment) }, { children: _jsx(FormattedMessage, { id: "ui.commentObject.reply", defaultMessage: "ui.commentObject.reply" }) })));
|
|
146
145
|
}
|
|
147
146
|
/**
|
|
148
147
|
* Handle reply: open Editor
|
|
@@ -180,7 +179,7 @@ export default function CommentObject(inProps) {
|
|
|
180
179
|
*/
|
|
181
180
|
function handleReply(comment) {
|
|
182
181
|
if (UserUtils.isBlocked(scUserContext.user)) {
|
|
183
|
-
enqueueSnackbar(
|
|
182
|
+
enqueueSnackbar(_jsx(FormattedMessage, { id: "ui.common.userBlocked", defaultMessage: "ui.common.userBlocked" }), {
|
|
184
183
|
variant: 'warning',
|
|
185
184
|
autoHideDuration: 3000
|
|
186
185
|
});
|
|
@@ -198,7 +197,7 @@ export default function CommentObject(inProps) {
|
|
|
198
197
|
})
|
|
199
198
|
.catch((error) => {
|
|
200
199
|
Logger.error(SCOPE_SC_UI, error);
|
|
201
|
-
enqueueSnackbar(
|
|
200
|
+
enqueueSnackbar(_jsx(FormattedMessage, { id: "ui.common.error.action", defaultMessage: "ui.common.error.action" }), {
|
|
202
201
|
variant: 'error',
|
|
203
202
|
autoHideDuration: 3000
|
|
204
203
|
});
|
|
@@ -258,7 +257,7 @@ export default function CommentObject(inProps) {
|
|
|
258
257
|
*/
|
|
259
258
|
function handleSave(comment) {
|
|
260
259
|
if (UserUtils.isBlocked(scUserContext.user)) {
|
|
261
|
-
enqueueSnackbar(
|
|
260
|
+
enqueueSnackbar(_jsx(FormattedMessage, { id: "ui.common.userBlocked", defaultMessage: "ui.common.userBlocked" }), {
|
|
262
261
|
variant: 'warning',
|
|
263
262
|
autoHideDuration: 3000
|
|
264
263
|
});
|
|
@@ -279,7 +278,7 @@ export default function CommentObject(inProps) {
|
|
|
279
278
|
})
|
|
280
279
|
.catch((error) => {
|
|
281
280
|
Logger.error(SCOPE_SC_UI, error);
|
|
282
|
-
enqueueSnackbar(
|
|
281
|
+
enqueueSnackbar(_jsx(FormattedMessage, { id: "ui.common.error.action", defaultMessage: "ui.common.error.action" }), {
|
|
283
282
|
variant: 'error',
|
|
284
283
|
autoHideDuration: 3000
|
|
285
284
|
});
|
|
@@ -300,37 +299,14 @@ export default function CommentObject(inProps) {
|
|
|
300
299
|
const summaryHtmlTruncated = 'summary_truncated' in comment ? comment.summary_truncated : false;
|
|
301
300
|
const commentHtml = 'summary_html' in comment && truncateContent && summaryHtmlTruncated ? comment.summary_html : comment.html;
|
|
302
301
|
const summaryHtml = getContributionHtml(commentHtml, scRoutingContext.url);
|
|
303
|
-
return (
|
|
304
|
-
editComment && editComment.id === comment.id ? (React.createElement(Box, { className: classes.comment },
|
|
305
|
-
React.createElement(CommentObjectReply, Object.assign({ text: comment.html, autoFocus: true, id: `edit-${comment.id}`, onSave: handleSave, onCancel: handleCancel, editable: !isReplying || !isSavingComment }, CommentObjectReplyProps)))) : (React.createElement(BaseItem, { elevation: 0, className: classes.comment, image: React.createElement(Link, Object.assign({}, (!comment.author.deleted && { to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, comment.author) }), { onClick: comment.author.deleted ? () => setOpenAlert(true) : null }),
|
|
306
|
-
React.createElement(UserAvatar, { hide: !obj.author.community_badge },
|
|
307
|
-
React.createElement(Avatar, { alt: obj.author.username, variant: "circular", src: comment.author.avatar, className: classes.avatar }))), disableTypography: true, primary: React.createElement(React.Fragment, null,
|
|
308
|
-
React.createElement(Widget, Object.assign({ className: classes.content, elevation: elevation }, rest),
|
|
309
|
-
React.createElement(CardContent, { className: classNames({ [classes.deleted]: obj && obj.deleted }) },
|
|
310
|
-
React.createElement(Link, Object.assign({ className: classes.author }, (!comment.author.deleted && { to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, comment.author) }), { onClick: comment.author.deleted ? () => setOpenAlert(true) : null }),
|
|
311
|
-
React.createElement(Typography, { component: "span" }, comment.author.username)),
|
|
312
|
-
React.createElement(Typography, { className: classes.textContent, variant: "body2", gutterBottom: true, dangerouslySetInnerHTML: { __html: summaryHtml } }),
|
|
313
|
-
summaryHtmlTruncated && truncateContent && (React.createElement(Link, { to: scRoutingContext.url(SCRoutes.COMMENT_ROUTE_NAME, getRouteData(comment)), className: classes.showMoreContent },
|
|
314
|
-
React.createElement(FormattedMessage, { id: "ui.commentObject.showMore", defaultMessage: "ui.commentObject.showMore" })))),
|
|
315
|
-
scUserContext.user && (React.createElement(Box, { className: classes.commentActionsMenu },
|
|
316
|
-
React.createElement(ContributionActionsMenu, { commentObject: comment, onRestoreContribution: handleRestore, onHideContribution: handleHide, onDeleteContribution: handleDelete, onEditContribution: handleEdit })))),
|
|
317
|
-
React.createElement(Box, { component: "span", className: classes.contentSubSection },
|
|
318
|
-
renderTimeAgo(comment),
|
|
319
|
-
React.createElement(Bullet, null),
|
|
320
|
-
React.createElement(VoteButton, { size: "small", className: classes.vote, contributionId: comment.id, contributionType: SCContributionType.COMMENT, contribution: comment, onVote: handleVoteSuccess }),
|
|
321
|
-
React.createElement(Bullet, null),
|
|
322
|
-
renderActionReply(comment),
|
|
323
|
-
React.createElement(VoteAudienceButton, { size: "small", className: classes.voteAudience, contributionId: comment.id, contributionType: SCContributionType.COMMENT, contribution: comment }))) })),
|
|
324
|
-
comment.comment_count > 0 && React.createElement(Box, { className: classes.nestedComments }, renderLatestComment(comment)),
|
|
325
|
-
scUserContext.user && replyComment && (replyComment.id === comment.id || replyComment.parent === comment.id) && !comment.parent && (React.createElement(Box, { className: classes.nestedComments },
|
|
326
|
-
React.createElement(CommentObjectReply, Object.assign({ text: `@${replyComment.author.username}, `, autoFocus: true, key: `reply-${replyComment.id}`, id: `reply-${replyComment.id}`, onReply: handleReply, editable: !isReplying }, CommentObjectReplyProps))))));
|
|
302
|
+
return (_jsxs(React.Fragment, { children: [editComment && editComment.id === comment.id ? (_jsx(Box, Object.assign({ className: classes.comment }, { children: _jsx(CommentObjectReply, Object.assign({ text: comment.html, autoFocus: true, id: `edit-${comment.id}`, onSave: handleSave, onCancel: handleCancel, editable: !isReplying || !isSavingComment }, CommentObjectReplyProps)) }))) : (_jsx(BaseItem, { elevation: 0, className: classes.comment, image: _jsx(Link, Object.assign({}, (!comment.author.deleted && { to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, comment.author) }), { onClick: comment.author.deleted ? () => setOpenAlert(true) : null }, { children: _jsx(UserAvatar, Object.assign({ hide: !obj.author.community_badge }, { children: _jsx(Avatar, { alt: obj.author.username, variant: "circular", src: comment.author.avatar, className: classes.avatar }) })) })), disableTypography: true, primary: _jsxs(_Fragment, { children: [_jsxs(Widget, Object.assign({ className: classes.content, elevation: elevation }, rest, { children: [_jsxs(CardContent, Object.assign({ className: classNames({ [classes.deleted]: obj && obj.deleted }) }, { children: [_jsx(Link, Object.assign({ className: classes.author }, (!comment.author.deleted && { to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, comment.author) }), { onClick: comment.author.deleted ? () => setOpenAlert(true) : null }, { children: _jsx(Typography, Object.assign({ component: "span" }, { children: comment.author.username })) })), _jsx(Typography, { className: classes.textContent, variant: "body2", gutterBottom: true, dangerouslySetInnerHTML: { __html: summaryHtml } }), summaryHtmlTruncated && truncateContent && (_jsx(Link, Object.assign({ to: scRoutingContext.url(SCRoutes.COMMENT_ROUTE_NAME, getRouteData(comment)), className: classes.showMoreContent }, { children: _jsx(FormattedMessage, { id: "ui.commentObject.showMore", defaultMessage: "ui.commentObject.showMore" }) })))] })), scUserContext.user && (_jsx(Box, Object.assign({ className: classes.commentActionsMenu }, { children: _jsx(ContributionActionsMenu, { commentObject: comment, onRestoreContribution: handleRestore, onHideContribution: handleHide, onDeleteContribution: handleDelete, onEditContribution: handleEdit }) })))] })), _jsxs(Box, Object.assign({ component: "span", className: classes.contentSubSection }, { children: [renderTimeAgo(comment), _jsx(Bullet, {}), _jsx(VoteButton, { size: "small", className: classes.vote, contributionId: comment.id, contributionType: SCContributionType.COMMENT, contribution: comment, onVote: handleVoteSuccess }), _jsx(Bullet, {}), renderActionReply(comment), _jsx(VoteAudienceButton, { size: "small", className: classes.voteAudience, contributionId: comment.id, contributionType: SCContributionType.COMMENT, contribution: comment })] }))] }) })), comment.comment_count > 0 && _jsx(Box, Object.assign({ className: classes.nestedComments }, { children: renderLatestComment(comment) })), scUserContext.user && replyComment && (replyComment.id === comment.id || replyComment.parent === comment.id) && !comment.parent && (_jsx(Box, Object.assign({ className: classes.nestedComments }, { children: _jsx(CommentObjectReply, Object.assign({ text: `@${replyComment.author.username}, `, autoFocus: true, id: `reply-${replyComment.id}`, onReply: handleReply, editable: !isReplying }, CommentObjectReplyProps), `reply-${replyComment.id}`) })))] }, comment.id));
|
|
327
303
|
}
|
|
328
304
|
/**
|
|
329
305
|
* Render Latest Comment
|
|
330
306
|
* @param comment
|
|
331
307
|
*/
|
|
332
308
|
function renderLatestComment(comment) {
|
|
333
|
-
return (
|
|
309
|
+
return (_jsx(CommentsObject, Object.assign({ feedObject: commentsObject.feedObject, feedObjectType: commentsObject.feedObject ? commentsObject.feedObject.type : feedObjectType, hideAdvertising: true, comments: [].concat(commentsObject.comments).reverse(), endComments: comment.latest_comments, previous: comment.comment_count > comment.latest_comments.length ? commentsObject.next : null, isLoadingPrevious: commentsObject.isLoadingNext, handlePrevious: commentsObject.getNextPage, CommentComponentProps: Object.assign(Object.assign({ onOpenReply: reply, CommentObjectSkeletonProps, elevation: elevation, linkableCommentDateTime: linkableCommentDateTime }, rest), { cacheStrategy,
|
|
334
310
|
truncateContent }), CommentsObjectSkeletonProps: { count: 1, CommentObjectSkeletonProps: CommentObjectSkeletonProps }, inPlaceLoadMoreContents: true }, CommentsObjectComponentProps, { cacheStrategy: cacheStrategy })));
|
|
335
311
|
}
|
|
336
312
|
/**
|
|
@@ -341,12 +317,10 @@ export default function CommentObject(inProps) {
|
|
|
341
317
|
comment = renderComment(obj);
|
|
342
318
|
}
|
|
343
319
|
else {
|
|
344
|
-
comment =
|
|
320
|
+
comment = _jsx(CommentObjectSkeleton, Object.assign({}, CommentObjectSkeletonProps));
|
|
345
321
|
}
|
|
346
322
|
/**
|
|
347
323
|
* Render object
|
|
348
324
|
*/
|
|
349
|
-
return (
|
|
350
|
-
React.createElement(Root, { id: id, className: classNames(classes.root, className) }, comment),
|
|
351
|
-
openAlert && React.createElement(UserDeletedSnackBar, { open: openAlert, handleClose: () => setOpenAlert(false) })));
|
|
325
|
+
return (_jsxs(_Fragment, { children: [_jsx(Root, Object.assign({ id: id, className: classNames(classes.root, className) }, { children: comment })), openAlert && _jsx(UserDeletedSnackBar, { open: openAlert, handleClose: () => setOpenAlert(false) })] }));
|
|
352
326
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __rest } from "tslib";
|
|
2
|
-
import
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
3
|
import Widget from '../Widget';
|
|
4
4
|
import { styled } from '@mui/material/styles';
|
|
5
5
|
import Skeleton from '@mui/material/Skeleton';
|
|
@@ -38,9 +38,5 @@ const Root = styled(BaseItem, {
|
|
|
38
38
|
export default function CommentObjectSkeleton(props) {
|
|
39
39
|
const { WidgetProps } = props, rest = __rest(props, ["WidgetProps"]);
|
|
40
40
|
const theme = useTheme();
|
|
41
|
-
return (
|
|
42
|
-
React.createElement(Widget, Object.assign({}, WidgetProps),
|
|
43
|
-
React.createElement(CardContent, null,
|
|
44
|
-
React.createElement(Skeleton, { animation: "wave", height: 10, width: "80%", className: classes.primaryContent }),
|
|
45
|
-
React.createElement(Skeleton, { animation: "wave", height: 10, width: "40%" })))) })));
|
|
41
|
+
return (_jsx(Root, Object.assign({ className: classes.root, disableTypography: true }, rest, { image: _jsx(Skeleton, { animation: "wave", variant: "circular", width: theme.selfcommunity.user.avatar.sizeMedium, height: theme.selfcommunity.user.avatar.sizeMedium, className: classes.avatar }), secondary: _jsx(_Fragment, { children: _jsx(Widget, Object.assign({}, WidgetProps, { children: _jsxs(CardContent, { children: [_jsx(Skeleton, { animation: "wave", height: 10, width: "80%", className: classes.primaryContent }), _jsx(Skeleton, { animation: "wave", height: 10, width: "40%" })] }) })) }) })));
|
|
46
42
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { __rest } from "tslib";
|
|
2
|
-
import
|
|
2
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useEffect, useMemo, useRef, useState } from 'react';
|
|
3
4
|
import { styled } from '@mui/material/styles';
|
|
4
5
|
import Widget from '../Widget';
|
|
5
6
|
import { FormattedMessage } from 'react-intl';
|
|
@@ -115,15 +116,5 @@ export default function CommentObjectReply(inProps) {
|
|
|
115
116
|
return _html === '' || _html === '<p class="SCEditor-paragraph"></p>' || _html === '<p class="SCEditor-paragraph"><br></p>';
|
|
116
117
|
}, [html]);
|
|
117
118
|
// RENDER
|
|
118
|
-
return (
|
|
119
|
-
React.createElement(Avatar, { alt: scUserContext.user.username, variant: "circular", src: scUserContext.user.avatar, classes: { root: classes.avatar } }))), secondary: React.createElement(Widget, Object.assign({ className: classNames(classes.comment, { [classes.hasValue]: !isEditorEmpty }) }, WidgetProps),
|
|
120
|
-
React.createElement(Editor, { ref: editor, onChange: handleChangeText, defaultValue: html, editable: editable, uploadImage: true }),
|
|
121
|
-
!isEditorEmpty && (React.createElement(Stack, { direction: "row", spacing: 2, className: classes.actions },
|
|
122
|
-
onReply && (React.createElement(LoadingButton, { variant: "outlined", size: "small", onClick: handleReply, loading: !editable, className: classes.buttonReply },
|
|
123
|
-
React.createElement(FormattedMessage, { id: "ui.commentObject.replyComment.reply", defaultMessage: "ui.commentObject.replyComment.reply" }))),
|
|
124
|
-
onSave && (React.createElement(React.Fragment, null,
|
|
125
|
-
onCancel && (React.createElement(LoadingButton, { variant: 'text', size: "small", onClick: handleCancel, disabled: !editable, color: "inherit", className: classes.buttonCancel },
|
|
126
|
-
React.createElement(FormattedMessage, { id: "ui.commentObject.replyComment.cancel", defaultMessage: "ui.commentObject.replyComment.cancel" }))),
|
|
127
|
-
React.createElement(LoadingButton, { variant: "outlined", size: "small", onClick: handleSave, loading: !editable, className: classes.buttonSave },
|
|
128
|
-
React.createElement(FormattedMessage, { id: "ui.commentObject.replyComment.save", defaultMessage: "ui.commentObject.replyComment.save" }))))))) })));
|
|
119
|
+
return (_jsx(Root, Object.assign({ id: id }, rest, { disableTypography: true, onClick: handleEditorFocus, elevation: elevation, className: classNames(classes.root, className), image: !scUserContext.user ? (_jsx(Avatar, { variant: "circular", className: classes.avatar })) : (_jsx(UserAvatar, Object.assign({ hide: !scUserContext.user.community_badge }, { children: _jsx(Avatar, { alt: scUserContext.user.username, variant: "circular", src: scUserContext.user.avatar, classes: { root: classes.avatar } }) }))), secondary: _jsxs(Widget, Object.assign({ className: classNames(classes.comment, { [classes.hasValue]: !isEditorEmpty }) }, WidgetProps, { children: [_jsx(Editor, { ref: editor, onChange: handleChangeText, defaultValue: html, editable: editable, uploadImage: true }), !isEditorEmpty && (_jsxs(Stack, Object.assign({ direction: "row", spacing: 2, className: classes.actions }, { children: [onReply && (_jsx(LoadingButton, Object.assign({ variant: "outlined", size: "small", onClick: handleReply, loading: !editable, className: classes.buttonReply }, { children: _jsx(FormattedMessage, { id: "ui.commentObject.replyComment.reply", defaultMessage: "ui.commentObject.replyComment.reply" }) }))), onSave && (_jsxs(_Fragment, { children: [onCancel && (_jsx(LoadingButton, Object.assign({ variant: 'text', size: "small", onClick: handleCancel, disabled: !editable, color: "inherit", className: classes.buttonCancel }, { children: _jsx(FormattedMessage, { id: "ui.commentObject.replyComment.cancel", defaultMessage: "ui.commentObject.replyComment.cancel" }) }))), _jsx(LoadingButton, Object.assign({ variant: "outlined", size: "small", onClick: handleSave, loading: !editable, className: classes.buttonSave }, { children: _jsx(FormattedMessage, { id: "ui.commentObject.replyComment.save", defaultMessage: "ui.commentObject.replyComment.save" }) }))] }))] })))] })) })));
|
|
129
120
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { __rest } from "tslib";
|
|
2
|
-
import
|
|
2
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useEffect, useMemo, useRef, useState } from 'react';
|
|
3
4
|
import { styled } from '@mui/material/styles';
|
|
4
5
|
import { FormattedMessage } from 'react-intl';
|
|
5
6
|
import CommentObject from '../CommentObject';
|
|
@@ -89,8 +90,7 @@ export default function CommentsFeedObject(inProps) {
|
|
|
89
90
|
*/
|
|
90
91
|
const renderTitle = useMemo(() => () => {
|
|
91
92
|
if (showTitle) {
|
|
92
|
-
return (
|
|
93
|
-
React.createElement(FormattedMessage, { id: "ui.commentsObject.title", defaultMessage: "ui.commentsObject.title", values: { total: total } })));
|
|
93
|
+
return (_jsx(Typography, Object.assign({ variant: "h6", gutterBottom: true, color: 'inherit' }, { children: _jsx(FormattedMessage, { id: "ui.commentsObject.title", defaultMessage: "ui.commentsObject.title", values: { total: total } }) })));
|
|
94
94
|
}
|
|
95
95
|
return null;
|
|
96
96
|
}, [total, isLoading]);
|
|
@@ -98,15 +98,13 @@ export default function CommentsFeedObject(inProps) {
|
|
|
98
98
|
* Render no comments
|
|
99
99
|
*/
|
|
100
100
|
function renderNoCommentsFound() {
|
|
101
|
-
return (
|
|
102
|
-
React.createElement(FormattedMessage, { id: "ui.commentsObject.noComments", defaultMessage: "ui.commentsObject.noComments" })))));
|
|
101
|
+
return (_jsx(_Fragment, { children: renderNoComments ? (renderNoComments()) : (_jsx(Box, Object.assign({ className: classes.noComments }, { children: _jsx(FormattedMessage, { id: "ui.commentsObject.noComments", defaultMessage: "ui.commentsObject.noComments" }) }))) }));
|
|
103
102
|
}
|
|
104
103
|
/**
|
|
105
104
|
* Render comment not found
|
|
106
105
|
*/
|
|
107
106
|
function renderCommentNotFoundError() {
|
|
108
|
-
return (
|
|
109
|
-
React.createElement(FormattedMessage, { id: "ui.commentsObject.commentNotFound", defaultMessage: "ui.commentsObject.commentNotFound" })))));
|
|
107
|
+
return (_jsx(_Fragment, { children: renderCommentNotFound ? (renderCommentNotFound()) : (_jsx(Box, Object.assign({ className: classes.commentNotFound }, { children: _jsx(FormattedMessage, { id: "ui.commentsObject.commentNotFound", defaultMessage: "ui.commentsObject.commentNotFound" }) }))) }));
|
|
110
108
|
}
|
|
111
109
|
/**
|
|
112
110
|
* Get a single comment
|
|
@@ -197,7 +195,7 @@ export default function CommentsFeedObject(inProps) {
|
|
|
197
195
|
/**
|
|
198
196
|
* Render comments
|
|
199
197
|
*/
|
|
200
|
-
let commentsRendered =
|
|
198
|
+
let commentsRendered = _jsx(_Fragment, {});
|
|
201
199
|
if (commentsObject.componentLoaded && !total && !commentsObject.isLoadingNext && !isLoading) {
|
|
202
200
|
/**
|
|
203
201
|
* If comments were not found and loading is finished
|
|
@@ -215,14 +213,10 @@ export default function CommentsFeedObject(inProps) {
|
|
|
215
213
|
* the component will switch to 'load more pagination' mode automatically
|
|
216
214
|
* in case it needs to display a single comment
|
|
217
215
|
*/
|
|
218
|
-
commentsRendered = (
|
|
219
|
-
Boolean((commentError || errorCommentObj) && !isLoading && !total) && renderCommentNotFoundError(),
|
|
220
|
-
React.createElement(CommentsObject, { feedObject: commentsObject.feedObject, comments: commentsObject.comments, endComments: [...(comment ? [comment] : []), ...(commentsOrderBy === SCCommentsOrderBy.ADDED_AT_ASC ? comments : [])], startComments: [...(commentsOrderBy === SCCommentsOrderBy.ADDED_AT_ASC ? [] : comments)], previous: commentsObject.previous, handlePrevious: commentsObject.getPreviousPage, isLoadingPrevious: commentsObject.isLoadingPrevious, next: commentsObject.next, isLoadingNext: commentsObject.isLoadingNext, handleNext: commentsObject.getNextPage, page: commentsObject.page, previousPage: commentsObject.previousPage, nextPage: commentsObject.nextPage, infiniteScrolling: infiniteScrolling && commentsObject.total > 0 && !comment && !comments.length, CommentComponent: CommentComponent, CommentComponentProps: CommentComponentProps, CommentObjectSkeletonProps: CommentObjectSkeletonProps })));
|
|
216
|
+
commentsRendered = (_jsxs(_Fragment, { children: [Boolean((commentError || errorCommentObj) && !isLoading && !total) && renderCommentNotFoundError(), _jsx(CommentsObject, { feedObject: commentsObject.feedObject, comments: commentsObject.comments, endComments: [...(comment ? [comment] : []), ...(commentsOrderBy === SCCommentsOrderBy.ADDED_AT_ASC ? comments : [])], startComments: [...(commentsOrderBy === SCCommentsOrderBy.ADDED_AT_ASC ? [] : comments)], previous: commentsObject.previous, handlePrevious: commentsObject.getPreviousPage, isLoadingPrevious: commentsObject.isLoadingPrevious, next: commentsObject.next, isLoadingNext: commentsObject.isLoadingNext, handleNext: commentsObject.getNextPage, page: commentsObject.page, previousPage: commentsObject.previousPage, nextPage: commentsObject.nextPage, infiniteScrolling: infiniteScrolling && commentsObject.total > 0 && !comment && !comments.length, CommentComponent: CommentComponent, CommentComponentProps: CommentComponentProps, CommentObjectSkeletonProps: CommentObjectSkeletonProps })] }));
|
|
221
217
|
}
|
|
222
218
|
/**
|
|
223
219
|
* Renders root object
|
|
224
220
|
*/
|
|
225
|
-
return (
|
|
226
|
-
renderTitle(),
|
|
227
|
-
commentsRendered));
|
|
221
|
+
return (_jsxs(Root, Object.assign({ id: id, className: classNames(classes.root, className) }, rest, { ref: commentsContainerRef }, { children: [renderTitle(), commentsRendered] })));
|
|
228
222
|
}
|