@selfcommunity/react-ui 0.7.0-alpha.349 → 0.7.0-alpha.350
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/BroadcastMessages/BroadcastMessages.js +9 -27
- package/lib/cjs/components/BroadcastMessages/Message.js +14 -51
- package/lib/cjs/components/BroadcastMessages/Skeleton.d.ts +8 -8
- package/lib/cjs/components/BroadcastMessages/Skeleton.js +23 -28
- package/lib/cjs/components/BroadcastMessages/constants.d.ts +1 -0
- package/lib/cjs/components/BroadcastMessages/constants.js +4 -0
- package/lib/cjs/components/CategoryHeader/CategoryHeader.js +13 -14
- package/lib/cjs/components/CategoryHeader/Skeleton.d.ts +2 -4
- package/lib/cjs/components/CategoryHeader/Skeleton.js +7 -27
- package/lib/cjs/components/CategoryHeader/constants.d.ts +1 -0
- package/lib/cjs/components/CategoryHeader/constants.js +4 -0
- package/lib/cjs/components/CategoryTrendingFeedWidget/CategoryTrendingFeedWidget.js +12 -14
- package/lib/cjs/components/CategoryTrendingFeedWidget/Skeleton.d.ts +3 -2
- package/lib/cjs/components/CategoryTrendingFeedWidget/Skeleton.js +10 -8
- package/lib/cjs/components/CategoryTrendingFeedWidget/constants.d.ts +1 -0
- package/lib/cjs/components/CategoryTrendingFeedWidget/constants.js +4 -0
- package/lib/cjs/components/CategoryTrendingUsersWidget/CategoryTrendingUsersWidget.js +14 -16
- package/lib/cjs/components/CategoryTrendingUsersWidget/Skeleton.d.ts +3 -3
- package/lib/cjs/components/CategoryTrendingUsersWidget/Skeleton.js +10 -9
- package/lib/cjs/components/CategoryTrendingUsersWidget/constants.d.ts +1 -0
- package/lib/cjs/components/CategoryTrendingUsersWidget/constants.js +4 -0
- package/lib/cjs/components/ChangePicture/ChangePicture.d.ts +1 -0
- package/lib/cjs/components/ChangePicture/ChangePicture.js +9 -8
- package/lib/cjs/components/ChangePicture/ChangePictureDialog/ChangePictureDialog.js +11 -19
- package/lib/cjs/components/ChangePicture/constants.d.ts +1 -0
- package/lib/cjs/components/ChangePicture/constants.js +4 -0
- package/lib/cjs/components/CommentObject/CommentObject.js +20 -21
- package/lib/cjs/components/CommentObject/Skeleton.d.ts +2 -2
- package/lib/cjs/components/CommentObject/Skeleton.js +9 -24
- package/lib/cjs/components/CommentObject/constants.d.ts +1 -0
- package/lib/cjs/components/CommentObject/constants.js +4 -0
- package/lib/cjs/components/CommentsFeedObject/CommentsFeedObject.js +8 -9
- package/lib/cjs/components/CommentsFeedObject/Skeleton.js +10 -1
- package/lib/cjs/components/CommentsFeedObject/constants.d.ts +1 -0
- package/lib/cjs/components/CommentsFeedObject/constants.js +4 -0
- package/lib/cjs/components/CommentsObject/CommentsObject.js +13 -14
- package/lib/cjs/components/CommentsObject/Skeleton.d.ts +2 -2
- package/lib/cjs/components/CommentsObject/Skeleton.js +8 -7
- package/lib/cjs/components/CommentsObject/constants.d.ts +1 -0
- package/lib/cjs/components/CommentsObject/constants.js +4 -0
- package/lib/cjs/components/ConsentSolution/ConsentSolution.js +22 -108
- package/lib/cjs/components/ConsentSolution/Skeleton.d.ts +7 -7
- package/lib/cjs/components/ConsentSolution/Skeleton.js +18 -43
- package/lib/cjs/components/ConsentSolution/constants.d.ts +1 -0
- package/lib/cjs/components/ConsentSolution/constants.js +4 -0
- package/lib/cjs/components/CustomAdv/CustomAdv.js +10 -30
- package/lib/cjs/components/CustomAdv/Skeleton.d.ts +2 -2
- package/lib/cjs/components/CustomAdv/Skeleton.js +6 -7
- package/lib/cjs/components/CustomAdv/constants.d.ts +1 -0
- package/lib/cjs/components/CustomAdv/constants.js +4 -0
- package/lib/cjs/components/Editor/Editor.js +32 -32
- package/lib/cjs/components/Editor/Skeleton.d.ts +2 -2
- package/lib/cjs/components/Editor/Skeleton.js +7 -8
- package/lib/cjs/components/Editor/constants.d.ts +1 -0
- package/lib/cjs/components/Editor/constants.js +4 -0
- package/lib/cjs/components/Editor/plugins/EmojiPlugin.js +5 -6
- package/lib/cjs/components/Editor/plugins/FloatingLinkPlugin.js +7 -8
- package/lib/cjs/components/Editor/plugins/HashtagPlugin.js +5 -6
- package/lib/cjs/components/Editor/plugins/ImagePlugin.js +5 -6
- package/lib/cjs/components/Editor/plugins/MentionsPlugin.js +5 -6
- package/lib/cjs/components/Editor/plugins/ToolbarPlugin.js +7 -8
- package/lib/cjs/components/Feed/Feed.js +13 -14
- package/lib/cjs/components/Feed/Skeleton.d.ts +4 -4
- package/lib/cjs/components/Feed/Skeleton.js +11 -12
- package/lib/cjs/components/Feed/constants.d.ts +1 -0
- package/lib/cjs/components/Feed/constants.js +4 -0
- package/lib/cjs/components/FeedObject/Actions/Actions.d.ts +1 -1
- package/lib/cjs/components/FeedObject/Actions/Actions.js +7 -19
- package/lib/cjs/components/FeedObject/Actions/Comment/Comment.d.ts +1 -1
- package/lib/cjs/components/FeedObject/Actions/Comment/Comment.js +10 -16
- package/lib/cjs/components/FeedObject/Actions/Follow/Follow.d.ts +1 -1
- package/lib/cjs/components/FeedObject/Actions/Follow/Follow.js +9 -15
- package/lib/cjs/components/FeedObject/Actions/Share/Share.d.ts +1 -1
- package/lib/cjs/components/FeedObject/Actions/Share/Share.js +10 -16
- package/lib/cjs/components/FeedObject/Actions/Vote/Vote.d.ts +1 -1
- package/lib/cjs/components/FeedObject/Actions/Vote/Vote.js +10 -16
- package/lib/cjs/components/FeedObject/Activities/Activities.d.ts +1 -1
- package/lib/cjs/components/FeedObject/Activities/Activities.js +8 -16
- package/lib/cjs/components/FeedObject/Activities/ActivitiesMenu/ActivitiesMenu.d.ts +1 -1
- package/lib/cjs/components/FeedObject/Activities/ActivitiesMenu/ActivitiesMenu.js +7 -13
- package/lib/cjs/components/FeedObject/Activities/RelevantActivities/CommentActivity/CommentActivity.d.ts +1 -1
- package/lib/cjs/components/FeedObject/Activities/RelevantActivities/CommentActivity/CommentActivity.js +12 -31
- package/lib/cjs/components/FeedObject/Activities/RelevantActivities/FollowActivity/FollowActivity.js +8 -17
- package/lib/cjs/components/FeedObject/Activities/RelevantActivities/PollVoteActivity/PollVoteActivity.d.ts +1 -1
- package/lib/cjs/components/FeedObject/Activities/RelevantActivities/PollVoteActivity/PollVoteActivity.js +8 -22
- package/lib/cjs/components/FeedObject/Activities/RelevantActivities/RelevantActivities.d.ts +1 -1
- package/lib/cjs/components/FeedObject/Activities/RelevantActivities/RelevantActivities.js +7 -20
- package/lib/cjs/components/FeedObject/Activities/RelevantActivities/VoteUpActivity/VoteUpActivity.d.ts +1 -1
- package/lib/cjs/components/FeedObject/Activities/RelevantActivities/VoteUpActivity/VoteUpActivity.js +8 -22
- package/lib/cjs/components/FeedObject/Contributors/Contributors.d.ts +1 -1
- package/lib/cjs/components/FeedObject/Contributors/Contributors.js +8 -34
- package/lib/cjs/components/FeedObject/Contributors/Skeleton.d.ts +2 -2
- package/lib/cjs/components/FeedObject/Contributors/Skeleton.js +8 -13
- package/lib/cjs/components/FeedObject/FeedObject.js +31 -32
- package/lib/cjs/components/FeedObject/Poll/Choice/Choice.d.ts +1 -1
- package/lib/cjs/components/FeedObject/Poll/Choice/Choice.js +9 -34
- package/lib/cjs/components/FeedObject/Poll/Poll.d.ts +1 -1
- package/lib/cjs/components/FeedObject/Poll/Poll.js +14 -20
- package/lib/cjs/components/FeedObject/Skeleton.d.ts +3 -3
- package/lib/cjs/components/FeedObject/Skeleton.js +9 -10
- package/lib/cjs/components/FeedObject/constants.d.ts +1 -0
- package/lib/cjs/components/FeedObject/constants.js +4 -0
- package/lib/cjs/components/FeedObjectMediaPreview/FeedObjectMediaPreview.d.ts +2 -2
- package/lib/cjs/components/FeedObjectMediaPreview/FeedObjectMediaPreview.js +8 -8
- package/lib/cjs/components/FeedUpdatesWidget/FeedUpdatesWidget.js +6 -7
- package/lib/cjs/components/FeedUpdatesWidget/Skeleton.d.ts +3 -3
- package/lib/cjs/components/FeedUpdatesWidget/Skeleton.js +10 -7
- package/lib/cjs/components/FeedUpdatesWidget/constants.d.ts +1 -0
- package/lib/cjs/components/FeedUpdatesWidget/constants.js +4 -0
- package/lib/cjs/components/Footer/Footer.d.ts +2 -1
- package/lib/cjs/components/Footer/Footer.js +10 -10
- package/lib/cjs/components/Footer/Skeleton.d.ts +2 -2
- package/lib/cjs/components/Footer/Skeleton.js +7 -8
- package/lib/cjs/components/Footer/constants.d.ts +1 -0
- package/lib/cjs/components/Footer/constants.js +4 -0
- package/lib/cjs/components/Incubator/Incubator.js +9 -10
- package/lib/cjs/components/Incubator/Skeleton.d.ts +6 -6
- package/lib/cjs/components/Incubator/Skeleton.js +15 -16
- package/lib/cjs/components/Incubator/constants.d.ts +1 -0
- package/lib/cjs/components/Incubator/constants.js +4 -0
- package/lib/cjs/components/IncubatorListWidget/CreateIncubatorDialog/CreateIncubatorDialog.js +11 -34
- package/lib/cjs/components/IncubatorListWidget/IncubatorListWidget.d.ts +1 -0
- package/lib/cjs/components/IncubatorListWidget/IncubatorListWidget.js +17 -16
- package/lib/cjs/components/IncubatorListWidget/Skeleton.d.ts +3 -3
- package/lib/cjs/components/IncubatorListWidget/Skeleton.js +10 -7
- package/lib/cjs/components/IncubatorListWidget/constants.d.ts +1 -0
- package/lib/cjs/components/IncubatorListWidget/constants.js +4 -0
- package/lib/cjs/components/IncubatorSuggestionWidget/IncubatorSuggestionWidget.js +14 -16
- package/lib/cjs/components/IncubatorSuggestionWidget/Skeleton.d.ts +3 -3
- package/lib/cjs/components/IncubatorSuggestionWidget/Skeleton.js +10 -7
- package/lib/cjs/components/IncubatorSuggestionWidget/constants.d.ts +1 -0
- package/lib/cjs/components/IncubatorSuggestionWidget/constants.js +4 -0
- package/lib/cjs/components/LoyaltyProgramWidget/LoyaltyProgramWidget.js +10 -11
- package/lib/cjs/components/LoyaltyProgramWidget/Skeleton.d.ts +7 -7
- package/lib/cjs/components/LoyaltyProgramWidget/Skeleton.js +17 -18
- package/lib/cjs/components/LoyaltyProgramWidget/constants.d.ts +1 -0
- package/lib/cjs/components/LoyaltyProgramWidget/constants.js +4 -0
- package/lib/cjs/components/NavigationToolbar/NavigationToolbar.d.ts +1 -0
- package/lib/cjs/components/NavigationToolbar/NavigationToolbar.js +20 -19
- package/lib/cjs/components/NavigationToolbar/NotificationMenu.js +9 -20
- package/lib/cjs/components/NavigationToolbar/Skeleton.d.ts +5 -5
- package/lib/cjs/components/NavigationToolbar/Skeleton.js +13 -14
- package/lib/cjs/components/NavigationToolbar/constants.d.ts +1 -0
- package/lib/cjs/components/NavigationToolbar/constants.js +4 -0
- package/lib/cjs/components/Notification/CollapsedFor/CollapsedFor.js +13 -35
- package/lib/cjs/components/Notification/Comment/Comment.js +13 -14
- package/lib/cjs/components/Notification/Contribution/Contribution.js +13 -14
- package/lib/cjs/components/Notification/ContributionFollow/ContributionFollow.js +12 -35
- package/lib/cjs/components/Notification/DeletedFor/DeletedFor.js +13 -34
- package/lib/cjs/components/Notification/IncubatorApproved/IncubatorApproved.js +11 -22
- package/lib/cjs/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.js +13 -34
- package/lib/cjs/components/Notification/KindlyNoticeFor/KindlyNoticeFor.js +13 -35
- package/lib/cjs/components/Notification/Mention/Mention.js +12 -31
- package/lib/cjs/components/Notification/Notification.js +16 -17
- package/lib/cjs/components/Notification/PrivateMessage/PrivateMessage.js +16 -60
- package/lib/cjs/components/Notification/Skeleton.d.ts +2 -2
- package/lib/cjs/components/Notification/Skeleton.js +8 -7
- package/lib/cjs/components/Notification/UndeletedFor/UndeletedFor.js +13 -35
- package/lib/cjs/components/Notification/UserBlocked/UserBlocked.js +11 -25
- package/lib/cjs/components/Notification/UserConnection/UserConnection.js +11 -22
- package/lib/cjs/components/Notification/UserFollow/UserFollow.js +11 -23
- package/lib/cjs/components/Notification/VoteUp/VoteUp.js +12 -29
- package/lib/cjs/components/Notification/constants.d.ts +1 -0
- package/lib/cjs/components/Notification/constants.js +4 -0
- package/lib/cjs/components/PlatformWidget/PlatformWidget.js +7 -8
- package/lib/cjs/components/PlatformWidget/Skeleton.d.ts +2 -2
- package/lib/cjs/components/PlatformWidget/Skeleton.js +7 -8
- package/lib/cjs/components/PlatformWidget/constants.d.ts +1 -0
- package/lib/cjs/components/PlatformWidget/constants.js +4 -0
- package/lib/cjs/components/PollSuggestionWidget/PollSnippet/PollSnippet.d.ts +6 -5
- package/lib/cjs/components/PollSuggestionWidget/PollSnippet/PollSnippet.js +16 -39
- package/lib/cjs/components/PollSuggestionWidget/PollSuggestionWidget.d.ts +1 -0
- package/lib/cjs/components/PollSuggestionWidget/PollSuggestionWidget.js +18 -18
- package/lib/cjs/components/PollSuggestionWidget/Skeleton.d.ts +3 -3
- package/lib/cjs/components/PollSuggestionWidget/Skeleton.js +10 -7
- package/lib/cjs/components/PollSuggestionWidget/constants.d.ts +1 -0
- package/lib/cjs/components/PollSuggestionWidget/constants.js +4 -0
- package/lib/cjs/components/PrivateMessageComponent/PrivateMessageComponent.js +9 -10
- package/lib/cjs/components/PrivateMessageComponent/Skeleton.d.ts +3 -3
- package/lib/cjs/components/PrivateMessageComponent/Skeleton.js +9 -10
- package/lib/cjs/components/PrivateMessageComponent/constants.d.ts +1 -0
- package/lib/cjs/components/PrivateMessageComponent/constants.js +4 -0
- package/lib/cjs/components/PrivateMessageEditor/MessageMediaUploader/index.js +13 -14
- package/lib/cjs/components/PrivateMessageEditor/PrivateMessageEditor.d.ts +1 -1
- package/lib/cjs/components/PrivateMessageEditor/PrivateMessageEditor.js +12 -13
- package/lib/cjs/components/PrivateMessageEditor/Skeleton.js +5 -6
- package/lib/cjs/components/PrivateMessageEditor/constants.d.ts +1 -0
- package/lib/cjs/components/PrivateMessageEditor/constants.js +4 -0
- package/lib/cjs/components/PrivateMessageSnippetItem/PrivateMessageSnippetItem.js +11 -12
- package/lib/cjs/components/PrivateMessageSnippetItem/Skeleton.d.ts +3 -3
- package/lib/cjs/components/PrivateMessageSnippetItem/Skeleton.js +10 -9
- package/lib/cjs/components/PrivateMessageSnippetItem/constants.d.ts +1 -0
- package/lib/cjs/components/PrivateMessageSnippetItem/constants.js +4 -0
- package/lib/cjs/components/PrivateMessageSnippets/PrivateMessageSnippets.js +12 -13
- package/lib/cjs/components/PrivateMessageSnippets/Skeleton.d.ts +5 -5
- package/lib/cjs/components/PrivateMessageSnippets/Skeleton.js +14 -11
- package/lib/cjs/components/PrivateMessageSnippets/constants.d.ts +1 -0
- package/lib/cjs/components/PrivateMessageSnippets/constants.js +4 -0
- package/lib/cjs/components/PrivateMessageThread/PrivateMessageThread.js +18 -19
- package/lib/cjs/components/PrivateMessageThread/Skeleton.d.ts +3 -3
- package/lib/cjs/components/PrivateMessageThread/Skeleton.js +10 -11
- package/lib/cjs/components/PrivateMessageThread/constants.d.ts +1 -0
- package/lib/cjs/components/PrivateMessageThread/constants.js +4 -0
- package/lib/cjs/components/PrivateMessageThreadItem/PrivateMessageThreadItem.d.ts +1 -0
- package/lib/cjs/components/PrivateMessageThreadItem/PrivateMessageThreadItem.js +20 -21
- package/lib/cjs/components/PrivateMessageThreadItem/Skeleton.d.ts +3 -3
- package/lib/cjs/components/PrivateMessageThreadItem/Skeleton.js +10 -7
- package/lib/cjs/components/PrivateMessageThreadItem/constants.d.ts +1 -0
- package/lib/cjs/components/PrivateMessageThreadItem/constants.js +4 -0
- package/lib/cjs/components/RelatedFeedObjectsWidget/RelatedFeedObjectsWidget.js +14 -16
- package/lib/cjs/components/RelatedFeedObjectsWidget/Skeleton.d.ts +2 -2
- package/lib/cjs/components/RelatedFeedObjectsWidget/Skeleton.js +7 -8
- package/lib/cjs/components/RelatedFeedObjectsWidget/constants.d.ts +1 -0
- package/lib/cjs/components/RelatedFeedObjectsWidget/constants.js +4 -0
- package/lib/cjs/components/SnippetNotifications/Skeleton.d.ts +3 -3
- package/lib/cjs/components/SnippetNotifications/Skeleton.js +11 -8
- package/lib/cjs/components/SnippetNotifications/SnippetNotifications.js +11 -18
- package/lib/cjs/components/SnippetNotifications/constants.d.ts +1 -0
- package/lib/cjs/components/SnippetNotifications/constants.js +4 -0
- package/lib/cjs/components/ToastNotifications/Skeleton.d.ts +2 -2
- package/lib/cjs/components/ToastNotifications/Skeleton.js +7 -8
- package/lib/cjs/components/ToastNotifications/ToastNotifications.js +5 -6
- package/lib/cjs/components/ToastNotifications/constants.d.ts +1 -0
- package/lib/cjs/components/ToastNotifications/constants.js +4 -0
- package/lib/cjs/components/User/Skeleton.d.ts +2 -2
- package/lib/cjs/components/User/Skeleton.js +8 -5
- package/lib/cjs/components/User/User.js +6 -6
- package/lib/cjs/components/User/constants.d.ts +1 -0
- package/lib/cjs/components/User/constants.js +4 -0
- package/lib/cjs/components/UserConnectionsRequestsSentWidget/Skeleton.d.ts +2 -2
- package/lib/cjs/components/UserConnectionsRequestsSentWidget/Skeleton.js +7 -8
- package/lib/cjs/components/UserConnectionsRequestsSentWidget/UserConnectionsRequestsSentWidget.js +14 -16
- package/lib/cjs/components/UserConnectionsRequestsSentWidget/constants.d.ts +1 -0
- package/lib/cjs/components/UserConnectionsRequestsSentWidget/constants.js +4 -0
- package/lib/cjs/components/UserConnectionsRequestsWidget/Skeleton.d.ts +2 -2
- package/lib/cjs/components/UserConnectionsRequestsWidget/Skeleton.js +7 -8
- package/lib/cjs/components/UserConnectionsRequestsWidget/UserConnectionsRequestsWidget.js +14 -16
- package/lib/cjs/components/UserConnectionsRequestsWidget/constants.d.ts +1 -0
- package/lib/cjs/components/UserConnectionsRequestsWidget/constants.js +4 -0
- package/lib/cjs/components/UserConnectionsWidget/Skeleton.d.ts +2 -2
- package/lib/cjs/components/UserConnectionsWidget/Skeleton.js +5 -5
- package/lib/cjs/components/UserConnectionsWidget/UserConnectionsWidget.js +14 -16
- package/lib/cjs/components/UserConnectionsWidget/constants.d.ts +1 -0
- package/lib/cjs/components/UserConnectionsWidget/constants.js +4 -0
- package/lib/cjs/components/UserFollowedCategoriesWidget/Skeleton.d.ts +2 -2
- package/lib/cjs/components/UserFollowedCategoriesWidget/Skeleton.js +5 -8
- package/lib/cjs/components/UserFollowedCategoriesWidget/UserFollowedCategoriesWidget.js +12 -14
- package/lib/cjs/components/UserFollowedCategoriesWidget/constants.d.ts +1 -0
- package/lib/cjs/components/UserFollowedCategoriesWidget/constants.js +4 -0
- package/lib/cjs/components/UserFollowedUsersWidget/Skeleton.d.ts +2 -2
- package/lib/cjs/components/UserFollowedUsersWidget/Skeleton.js +7 -8
- package/lib/cjs/components/UserFollowedUsersWidget/UserFollowedUsersWidget.js +12 -14
- package/lib/cjs/components/UserFollowedUsersWidget/constants.d.ts +1 -0
- package/lib/cjs/components/UserFollowedUsersWidget/constants.js +4 -0
- package/lib/cjs/components/UserFollowersWidget/Skeleton.d.ts +2 -2
- package/lib/cjs/components/UserFollowersWidget/Skeleton.js +7 -8
- package/lib/cjs/components/UserFollowersWidget/UserFollowersWidget.js +14 -16
- package/lib/cjs/components/UserFollowersWidget/constants.d.ts +1 -0
- package/lib/cjs/components/UserFollowersWidget/constants.js +4 -0
- package/lib/cjs/components/UserInfo/Skeleton.d.ts +2 -2
- package/lib/cjs/components/UserInfo/Skeleton.js +7 -8
- package/lib/cjs/components/UserInfo/UserInfo.js +7 -8
- package/lib/cjs/components/UserInfo/constants.d.ts +1 -0
- package/lib/cjs/components/UserInfo/constants.js +4 -0
- package/lib/cjs/components/UserInfoDialog/UserInfoDialog.js +9 -10
- package/lib/cjs/components/UserProfileEdit/Section/Account.js +11 -10
- package/lib/cjs/components/UserProfileEdit/Section/AccountCredentials.js +15 -18
- package/lib/cjs/components/UserProfileEdit/Section/PublicInfo.js +8 -20
- package/lib/cjs/components/UserProfileEdit/Section/Settings.js +7 -15
- package/lib/cjs/components/UserProfileEdit/Skeleton.d.ts +2 -2
- package/lib/cjs/components/UserProfileEdit/Skeleton.js +6 -7
- package/lib/cjs/components/UserProfileEdit/UserProfileEdit.js +14 -12
- package/lib/cjs/components/UserProfileEdit/constants.d.ts +1 -0
- package/lib/cjs/components/UserProfileEdit/constants.js +4 -0
- package/lib/cjs/components/UserProfileHeader/Skeleton.d.ts +4 -4
- package/lib/cjs/components/UserProfileHeader/Skeleton.js +11 -27
- package/lib/cjs/components/UserProfileHeader/UserProfileHeader.js +12 -13
- package/lib/cjs/components/UserProfileHeader/constants.d.ts +1 -0
- package/lib/cjs/components/UserProfileHeader/constants.js +4 -0
- package/lib/cjs/components/UserSuggestionWidget/Skeleton.d.ts +3 -3
- package/lib/cjs/components/UserSuggestionWidget/Skeleton.js +10 -7
- package/lib/cjs/components/UserSuggestionWidget/UserSuggestionWidget.js +12 -14
- package/lib/cjs/components/UserSuggestionWidget/constants.d.ts +1 -0
- package/lib/cjs/components/UserSuggestionWidget/constants.js +4 -0
- package/lib/cjs/shared/ContributionActionsMenu/index.js +10 -10
- package/lib/esm/components/BroadcastMessages/BroadcastMessages.js +3 -21
- package/lib/esm/components/BroadcastMessages/Message.js +5 -42
- package/lib/esm/components/BroadcastMessages/Skeleton.d.ts +8 -8
- package/lib/esm/components/BroadcastMessages/Skeleton.js +22 -27
- package/lib/esm/components/BroadcastMessages/constants.d.ts +1 -0
- package/lib/esm/components/BroadcastMessages/constants.js +1 -0
- package/lib/esm/components/CategoryHeader/CategoryHeader.js +3 -4
- package/lib/esm/components/CategoryHeader/Skeleton.d.ts +2 -4
- package/lib/esm/components/CategoryHeader/Skeleton.js +6 -26
- package/lib/esm/components/CategoryHeader/constants.d.ts +1 -0
- package/lib/esm/components/CategoryHeader/constants.js +1 -0
- package/lib/esm/components/CategoryTrendingFeedWidget/CategoryTrendingFeedWidget.js +3 -5
- package/lib/esm/components/CategoryTrendingFeedWidget/Skeleton.d.ts +3 -2
- package/lib/esm/components/CategoryTrendingFeedWidget/Skeleton.js +9 -7
- package/lib/esm/components/CategoryTrendingFeedWidget/constants.d.ts +1 -0
- package/lib/esm/components/CategoryTrendingFeedWidget/constants.js +1 -0
- package/lib/esm/components/CategoryTrendingUsersWidget/CategoryTrendingUsersWidget.js +5 -7
- package/lib/esm/components/CategoryTrendingUsersWidget/Skeleton.d.ts +3 -3
- package/lib/esm/components/CategoryTrendingUsersWidget/Skeleton.js +9 -8
- package/lib/esm/components/CategoryTrendingUsersWidget/constants.d.ts +1 -0
- package/lib/esm/components/CategoryTrendingUsersWidget/constants.js +1 -0
- package/lib/esm/components/ChangePicture/ChangePicture.d.ts +1 -0
- package/lib/esm/components/ChangePicture/ChangePicture.js +7 -6
- package/lib/esm/components/ChangePicture/ChangePictureDialog/ChangePictureDialog.js +5 -13
- package/lib/esm/components/ChangePicture/constants.d.ts +1 -0
- package/lib/esm/components/ChangePicture/constants.js +1 -0
- package/lib/esm/components/CommentObject/CommentObject.js +3 -4
- package/lib/esm/components/CommentObject/Skeleton.d.ts +2 -2
- package/lib/esm/components/CommentObject/Skeleton.js +6 -21
- package/lib/esm/components/CommentObject/constants.d.ts +1 -0
- package/lib/esm/components/CommentObject/constants.js +1 -0
- package/lib/esm/components/CommentsFeedObject/CommentsFeedObject.js +3 -4
- package/lib/esm/components/CommentsFeedObject/Skeleton.js +10 -1
- package/lib/esm/components/CommentsFeedObject/constants.d.ts +1 -0
- package/lib/esm/components/CommentsFeedObject/constants.js +1 -0
- package/lib/esm/components/CommentsObject/CommentsObject.js +3 -4
- package/lib/esm/components/CommentsObject/Skeleton.d.ts +2 -2
- package/lib/esm/components/CommentsObject/Skeleton.js +8 -7
- package/lib/esm/components/CommentsObject/constants.d.ts +1 -0
- package/lib/esm/components/CommentsObject/constants.js +1 -0
- package/lib/esm/components/ConsentSolution/ConsentSolution.js +3 -89
- package/lib/esm/components/ConsentSolution/Skeleton.d.ts +7 -7
- package/lib/esm/components/ConsentSolution/Skeleton.js +11 -36
- package/lib/esm/components/ConsentSolution/constants.d.ts +1 -0
- package/lib/esm/components/ConsentSolution/constants.js +1 -0
- package/lib/esm/components/CustomAdv/CustomAdv.js +3 -23
- package/lib/esm/components/CustomAdv/Skeleton.d.ts +2 -2
- package/lib/esm/components/CustomAdv/Skeleton.js +5 -6
- package/lib/esm/components/CustomAdv/constants.d.ts +1 -0
- package/lib/esm/components/CustomAdv/constants.js +1 -0
- package/lib/esm/components/Editor/Editor.js +2 -2
- package/lib/esm/components/Editor/Skeleton.d.ts +2 -2
- package/lib/esm/components/Editor/Skeleton.js +6 -7
- package/lib/esm/components/Editor/constants.d.ts +1 -0
- package/lib/esm/components/Editor/constants.js +1 -0
- package/lib/esm/components/Editor/plugins/EmojiPlugin.js +4 -5
- package/lib/esm/components/Editor/plugins/FloatingLinkPlugin.js +6 -7
- package/lib/esm/components/Editor/plugins/HashtagPlugin.js +4 -5
- package/lib/esm/components/Editor/plugins/ImagePlugin.js +5 -6
- package/lib/esm/components/Editor/plugins/MentionsPlugin.js +4 -5
- package/lib/esm/components/Editor/plugins/ToolbarPlugin.js +4 -5
- package/lib/esm/components/Feed/Feed.js +6 -7
- package/lib/esm/components/Feed/Skeleton.d.ts +4 -4
- package/lib/esm/components/Feed/Skeleton.js +8 -9
- package/lib/esm/components/Feed/constants.d.ts +1 -0
- package/lib/esm/components/Feed/constants.js +1 -0
- package/lib/esm/components/FeedObject/Actions/Actions.d.ts +1 -1
- package/lib/esm/components/FeedObject/Actions/Actions.js +6 -18
- package/lib/esm/components/FeedObject/Actions/Comment/Comment.d.ts +1 -1
- package/lib/esm/components/FeedObject/Actions/Comment/Comment.js +9 -15
- package/lib/esm/components/FeedObject/Actions/Follow/Follow.d.ts +1 -1
- package/lib/esm/components/FeedObject/Actions/Follow/Follow.js +8 -14
- package/lib/esm/components/FeedObject/Actions/Share/Share.d.ts +1 -1
- package/lib/esm/components/FeedObject/Actions/Share/Share.js +11 -17
- package/lib/esm/components/FeedObject/Actions/Vote/Vote.d.ts +1 -1
- package/lib/esm/components/FeedObject/Actions/Vote/Vote.js +9 -15
- package/lib/esm/components/FeedObject/Activities/Activities.d.ts +1 -1
- package/lib/esm/components/FeedObject/Activities/Activities.js +6 -14
- package/lib/esm/components/FeedObject/Activities/ActivitiesMenu/ActivitiesMenu.d.ts +1 -1
- package/lib/esm/components/FeedObject/Activities/ActivitiesMenu/ActivitiesMenu.js +6 -12
- package/lib/esm/components/FeedObject/Activities/RelevantActivities/CommentActivity/CommentActivity.d.ts +1 -1
- package/lib/esm/components/FeedObject/Activities/RelevantActivities/CommentActivity/CommentActivity.js +12 -31
- package/lib/esm/components/FeedObject/Activities/RelevantActivities/FollowActivity/FollowActivity.js +6 -15
- package/lib/esm/components/FeedObject/Activities/RelevantActivities/PollVoteActivity/PollVoteActivity.d.ts +1 -1
- package/lib/esm/components/FeedObject/Activities/RelevantActivities/PollVoteActivity/PollVoteActivity.js +7 -21
- package/lib/esm/components/FeedObject/Activities/RelevantActivities/RelevantActivities.d.ts +1 -1
- package/lib/esm/components/FeedObject/Activities/RelevantActivities/RelevantActivities.js +6 -19
- package/lib/esm/components/FeedObject/Activities/RelevantActivities/VoteUpActivity/VoteUpActivity.d.ts +1 -1
- package/lib/esm/components/FeedObject/Activities/RelevantActivities/VoteUpActivity/VoteUpActivity.js +7 -21
- package/lib/esm/components/FeedObject/Contributors/Contributors.d.ts +1 -1
- package/lib/esm/components/FeedObject/Contributors/Contributors.js +7 -33
- package/lib/esm/components/FeedObject/Contributors/Skeleton.d.ts +2 -2
- package/lib/esm/components/FeedObject/Contributors/Skeleton.js +6 -11
- package/lib/esm/components/FeedObject/FeedObject.js +5 -6
- package/lib/esm/components/FeedObject/Poll/Choice/Choice.d.ts +1 -1
- package/lib/esm/components/FeedObject/Poll/Choice/Choice.js +8 -33
- package/lib/esm/components/FeedObject/Poll/Poll.d.ts +1 -1
- package/lib/esm/components/FeedObject/Poll/Poll.js +13 -19
- package/lib/esm/components/FeedObject/Skeleton.d.ts +3 -3
- package/lib/esm/components/FeedObject/Skeleton.js +6 -7
- package/lib/esm/components/FeedObject/constants.d.ts +1 -0
- package/lib/esm/components/FeedObject/constants.js +1 -0
- package/lib/esm/components/FeedObjectMediaPreview/FeedObjectMediaPreview.d.ts +2 -2
- package/lib/esm/components/FeedObjectMediaPreview/FeedObjectMediaPreview.js +6 -6
- package/lib/esm/components/FeedUpdatesWidget/FeedUpdatesWidget.js +2 -3
- package/lib/esm/components/FeedUpdatesWidget/Skeleton.d.ts +3 -3
- package/lib/esm/components/FeedUpdatesWidget/Skeleton.js +9 -6
- package/lib/esm/components/FeedUpdatesWidget/constants.d.ts +1 -0
- package/lib/esm/components/FeedUpdatesWidget/constants.js +1 -0
- package/lib/esm/components/Footer/Footer.d.ts +2 -1
- package/lib/esm/components/Footer/Footer.js +4 -4
- package/lib/esm/components/Footer/Skeleton.d.ts +2 -2
- package/lib/esm/components/Footer/Skeleton.js +6 -7
- package/lib/esm/components/Footer/constants.d.ts +1 -0
- package/lib/esm/components/Footer/constants.js +1 -0
- package/lib/esm/components/Incubator/Incubator.js +3 -4
- package/lib/esm/components/Incubator/Skeleton.d.ts +6 -6
- package/lib/esm/components/Incubator/Skeleton.js +10 -11
- package/lib/esm/components/Incubator/constants.d.ts +1 -0
- package/lib/esm/components/Incubator/constants.js +1 -0
- package/lib/esm/components/IncubatorListWidget/CreateIncubatorDialog/CreateIncubatorDialog.js +4 -27
- package/lib/esm/components/IncubatorListWidget/IncubatorListWidget.d.ts +1 -0
- package/lib/esm/components/IncubatorListWidget/IncubatorListWidget.js +6 -5
- package/lib/esm/components/IncubatorListWidget/Skeleton.d.ts +3 -3
- package/lib/esm/components/IncubatorListWidget/Skeleton.js +9 -6
- package/lib/esm/components/IncubatorListWidget/constants.d.ts +1 -0
- package/lib/esm/components/IncubatorListWidget/constants.js +1 -0
- package/lib/esm/components/IncubatorSuggestionWidget/IncubatorSuggestionWidget.js +5 -7
- package/lib/esm/components/IncubatorSuggestionWidget/Skeleton.d.ts +3 -3
- package/lib/esm/components/IncubatorSuggestionWidget/Skeleton.js +9 -6
- package/lib/esm/components/IncubatorSuggestionWidget/constants.d.ts +1 -0
- package/lib/esm/components/IncubatorSuggestionWidget/constants.js +1 -0
- package/lib/esm/components/LoyaltyProgramWidget/LoyaltyProgramWidget.js +3 -4
- package/lib/esm/components/LoyaltyProgramWidget/Skeleton.d.ts +7 -7
- package/lib/esm/components/LoyaltyProgramWidget/Skeleton.js +11 -12
- package/lib/esm/components/LoyaltyProgramWidget/constants.d.ts +1 -0
- package/lib/esm/components/LoyaltyProgramWidget/constants.js +1 -0
- package/lib/esm/components/NavigationToolbar/NavigationToolbar.d.ts +1 -0
- package/lib/esm/components/NavigationToolbar/NavigationToolbar.js +5 -4
- package/lib/esm/components/NavigationToolbar/NotificationMenu.js +4 -15
- package/lib/esm/components/NavigationToolbar/Skeleton.d.ts +5 -5
- package/lib/esm/components/NavigationToolbar/Skeleton.js +9 -10
- package/lib/esm/components/NavigationToolbar/constants.d.ts +1 -0
- package/lib/esm/components/NavigationToolbar/constants.js +1 -0
- package/lib/esm/components/Notification/CollapsedFor/CollapsedFor.js +4 -26
- package/lib/esm/components/Notification/Comment/Comment.js +4 -5
- package/lib/esm/components/Notification/Contribution/Contribution.js +4 -5
- package/lib/esm/components/Notification/ContributionFollow/ContributionFollow.js +4 -27
- package/lib/esm/components/Notification/DeletedFor/DeletedFor.js +5 -26
- package/lib/esm/components/Notification/IncubatorApproved/IncubatorApproved.js +4 -15
- package/lib/esm/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.js +4 -25
- package/lib/esm/components/Notification/KindlyNoticeFor/KindlyNoticeFor.js +4 -26
- package/lib/esm/components/Notification/Mention/Mention.js +4 -23
- package/lib/esm/components/Notification/Notification.js +3 -4
- package/lib/esm/components/Notification/PrivateMessage/PrivateMessage.js +4 -48
- package/lib/esm/components/Notification/Skeleton.d.ts +2 -2
- package/lib/esm/components/Notification/Skeleton.js +8 -7
- package/lib/esm/components/Notification/UndeletedFor/UndeletedFor.js +4 -26
- package/lib/esm/components/Notification/UserBlocked/UserBlocked.js +4 -18
- package/lib/esm/components/Notification/UserConnection/UserConnection.js +4 -15
- package/lib/esm/components/Notification/UserFollow/UserFollow.js +4 -16
- package/lib/esm/components/Notification/VoteUp/VoteUp.js +4 -21
- package/lib/esm/components/Notification/constants.d.ts +1 -0
- package/lib/esm/components/Notification/constants.js +1 -0
- package/lib/esm/components/PlatformWidget/PlatformWidget.js +3 -4
- package/lib/esm/components/PlatformWidget/Skeleton.d.ts +2 -2
- package/lib/esm/components/PlatformWidget/Skeleton.js +6 -7
- package/lib/esm/components/PlatformWidget/constants.d.ts +1 -0
- package/lib/esm/components/PlatformWidget/constants.js +1 -0
- package/lib/esm/components/PollSuggestionWidget/PollSnippet/PollSnippet.d.ts +6 -5
- package/lib/esm/components/PollSuggestionWidget/PollSnippet/PollSnippet.js +10 -33
- package/lib/esm/components/PollSuggestionWidget/PollSuggestionWidget.d.ts +1 -0
- package/lib/esm/components/PollSuggestionWidget/PollSuggestionWidget.js +10 -10
- package/lib/esm/components/PollSuggestionWidget/Skeleton.d.ts +3 -3
- package/lib/esm/components/PollSuggestionWidget/Skeleton.js +9 -6
- package/lib/esm/components/PollSuggestionWidget/constants.d.ts +1 -0
- package/lib/esm/components/PollSuggestionWidget/constants.js +1 -0
- package/lib/esm/components/PrivateMessageComponent/PrivateMessageComponent.js +3 -4
- package/lib/esm/components/PrivateMessageComponent/Skeleton.d.ts +3 -3
- package/lib/esm/components/PrivateMessageComponent/Skeleton.js +6 -7
- package/lib/esm/components/PrivateMessageComponent/constants.d.ts +1 -0
- package/lib/esm/components/PrivateMessageComponent/constants.js +1 -0
- package/lib/esm/components/PrivateMessageEditor/MessageMediaUploader/index.js +4 -5
- package/lib/esm/components/PrivateMessageEditor/PrivateMessageEditor.d.ts +1 -1
- package/lib/esm/components/PrivateMessageEditor/PrivateMessageEditor.js +6 -7
- package/lib/esm/components/PrivateMessageEditor/Skeleton.js +4 -5
- package/lib/esm/components/PrivateMessageEditor/constants.d.ts +1 -0
- package/lib/esm/components/PrivateMessageEditor/constants.js +1 -0
- package/lib/esm/components/PrivateMessageSnippetItem/PrivateMessageSnippetItem.js +3 -4
- package/lib/esm/components/PrivateMessageSnippetItem/Skeleton.d.ts +3 -3
- package/lib/esm/components/PrivateMessageSnippetItem/Skeleton.js +9 -8
- package/lib/esm/components/PrivateMessageSnippetItem/constants.d.ts +1 -0
- package/lib/esm/components/PrivateMessageSnippetItem/constants.js +1 -0
- package/lib/esm/components/PrivateMessageSnippets/PrivateMessageSnippets.js +3 -4
- package/lib/esm/components/PrivateMessageSnippets/Skeleton.d.ts +5 -5
- package/lib/esm/components/PrivateMessageSnippets/Skeleton.js +11 -8
- package/lib/esm/components/PrivateMessageSnippets/constants.d.ts +1 -0
- package/lib/esm/components/PrivateMessageSnippets/constants.js +1 -0
- package/lib/esm/components/PrivateMessageThread/PrivateMessageThread.js +3 -4
- package/lib/esm/components/PrivateMessageThread/Skeleton.d.ts +3 -3
- package/lib/esm/components/PrivateMessageThread/Skeleton.js +7 -8
- package/lib/esm/components/PrivateMessageThread/constants.d.ts +1 -0
- package/lib/esm/components/PrivateMessageThread/constants.js +1 -0
- package/lib/esm/components/PrivateMessageThreadItem/PrivateMessageThreadItem.d.ts +1 -0
- package/lib/esm/components/PrivateMessageThreadItem/PrivateMessageThreadItem.js +11 -12
- package/lib/esm/components/PrivateMessageThreadItem/Skeleton.d.ts +3 -3
- package/lib/esm/components/PrivateMessageThreadItem/Skeleton.js +9 -6
- package/lib/esm/components/PrivateMessageThreadItem/constants.d.ts +1 -0
- package/lib/esm/components/PrivateMessageThreadItem/constants.js +1 -0
- package/lib/esm/components/RelatedFeedObjectsWidget/RelatedFeedObjectsWidget.js +5 -7
- package/lib/esm/components/RelatedFeedObjectsWidget/Skeleton.d.ts +2 -2
- package/lib/esm/components/RelatedFeedObjectsWidget/Skeleton.js +6 -7
- package/lib/esm/components/RelatedFeedObjectsWidget/constants.d.ts +1 -0
- package/lib/esm/components/RelatedFeedObjectsWidget/constants.js +1 -0
- package/lib/esm/components/SnippetNotifications/Skeleton.d.ts +3 -3
- package/lib/esm/components/SnippetNotifications/Skeleton.js +9 -6
- package/lib/esm/components/SnippetNotifications/SnippetNotifications.js +3 -10
- package/lib/esm/components/SnippetNotifications/constants.d.ts +1 -0
- package/lib/esm/components/SnippetNotifications/constants.js +1 -0
- package/lib/esm/components/ToastNotifications/Skeleton.d.ts +2 -2
- package/lib/esm/components/ToastNotifications/Skeleton.js +6 -7
- package/lib/esm/components/ToastNotifications/ToastNotifications.js +3 -4
- package/lib/esm/components/ToastNotifications/constants.d.ts +1 -0
- package/lib/esm/components/ToastNotifications/constants.js +1 -0
- package/lib/esm/components/User/Skeleton.d.ts +2 -2
- package/lib/esm/components/User/Skeleton.js +8 -5
- package/lib/esm/components/User/User.js +1 -1
- package/lib/esm/components/User/constants.d.ts +1 -0
- package/lib/esm/components/User/constants.js +1 -0
- package/lib/esm/components/UserConnectionsRequestsSentWidget/Skeleton.d.ts +2 -2
- package/lib/esm/components/UserConnectionsRequestsSentWidget/Skeleton.js +6 -7
- package/lib/esm/components/UserConnectionsRequestsSentWidget/UserConnectionsRequestsSentWidget.js +5 -7
- package/lib/esm/components/UserConnectionsRequestsSentWidget/constants.d.ts +1 -0
- package/lib/esm/components/UserConnectionsRequestsSentWidget/constants.js +1 -0
- package/lib/esm/components/UserConnectionsRequestsWidget/Skeleton.d.ts +2 -2
- package/lib/esm/components/UserConnectionsRequestsWidget/Skeleton.js +6 -7
- package/lib/esm/components/UserConnectionsRequestsWidget/UserConnectionsRequestsWidget.js +5 -7
- package/lib/esm/components/UserConnectionsRequestsWidget/constants.d.ts +1 -0
- package/lib/esm/components/UserConnectionsRequestsWidget/constants.js +1 -0
- package/lib/esm/components/UserConnectionsWidget/Skeleton.d.ts +2 -2
- package/lib/esm/components/UserConnectionsWidget/Skeleton.js +4 -4
- package/lib/esm/components/UserConnectionsWidget/UserConnectionsWidget.js +5 -7
- package/lib/esm/components/UserConnectionsWidget/constants.d.ts +1 -0
- package/lib/esm/components/UserConnectionsWidget/constants.js +1 -0
- package/lib/esm/components/UserFollowedCategoriesWidget/Skeleton.d.ts +2 -2
- package/lib/esm/components/UserFollowedCategoriesWidget/Skeleton.js +5 -8
- package/lib/esm/components/UserFollowedCategoriesWidget/UserFollowedCategoriesWidget.js +3 -5
- package/lib/esm/components/UserFollowedCategoriesWidget/constants.d.ts +1 -0
- package/lib/esm/components/UserFollowedCategoriesWidget/constants.js +1 -0
- package/lib/esm/components/UserFollowedUsersWidget/Skeleton.d.ts +2 -2
- package/lib/esm/components/UserFollowedUsersWidget/Skeleton.js +6 -7
- package/lib/esm/components/UserFollowedUsersWidget/UserFollowedUsersWidget.js +3 -5
- package/lib/esm/components/UserFollowedUsersWidget/constants.d.ts +1 -0
- package/lib/esm/components/UserFollowedUsersWidget/constants.js +1 -0
- package/lib/esm/components/UserFollowersWidget/Skeleton.d.ts +2 -2
- package/lib/esm/components/UserFollowersWidget/Skeleton.js +6 -7
- package/lib/esm/components/UserFollowersWidget/UserFollowersWidget.js +5 -7
- package/lib/esm/components/UserFollowersWidget/constants.d.ts +1 -0
- package/lib/esm/components/UserFollowersWidget/constants.js +1 -0
- package/lib/esm/components/UserInfo/Skeleton.d.ts +2 -2
- package/lib/esm/components/UserInfo/Skeleton.js +5 -6
- package/lib/esm/components/UserInfo/UserInfo.js +3 -4
- package/lib/esm/components/UserInfo/constants.d.ts +1 -0
- package/lib/esm/components/UserInfo/constants.js +1 -0
- package/lib/esm/components/UserInfoDialog/UserInfoDialog.js +4 -5
- package/lib/esm/components/UserProfileEdit/Section/Account.js +8 -7
- package/lib/esm/components/UserProfileEdit/Section/AccountCredentials.js +5 -8
- package/lib/esm/components/UserProfileEdit/Section/PublicInfo.js +4 -16
- package/lib/esm/components/UserProfileEdit/Section/Settings.js +4 -12
- package/lib/esm/components/UserProfileEdit/Skeleton.d.ts +2 -2
- package/lib/esm/components/UserProfileEdit/Skeleton.js +5 -6
- package/lib/esm/components/UserProfileEdit/UserProfileEdit.js +10 -8
- package/lib/esm/components/UserProfileEdit/constants.d.ts +1 -0
- package/lib/esm/components/UserProfileEdit/constants.js +1 -0
- package/lib/esm/components/UserProfileHeader/Skeleton.d.ts +4 -4
- package/lib/esm/components/UserProfileHeader/Skeleton.js +8 -24
- package/lib/esm/components/UserProfileHeader/UserProfileHeader.js +3 -4
- package/lib/esm/components/UserProfileHeader/constants.d.ts +1 -0
- package/lib/esm/components/UserProfileHeader/constants.js +1 -0
- package/lib/esm/components/UserSuggestionWidget/Skeleton.d.ts +3 -3
- package/lib/esm/components/UserSuggestionWidget/Skeleton.js +9 -6
- package/lib/esm/components/UserSuggestionWidget/UserSuggestionWidget.js +3 -5
- package/lib/esm/components/UserSuggestionWidget/constants.d.ts +1 -0
- package/lib/esm/components/UserSuggestionWidget/constants.js +1 -0
- package/lib/esm/shared/ContributionActionsMenu/index.js +10 -10
- package/lib/umd/react-ui.js +1 -1
- package/package.json +4 -4
|
@@ -6,17 +6,16 @@ const styles_1 = require("@mui/material/styles");
|
|
|
6
6
|
const material_1 = require("@mui/material");
|
|
7
7
|
const Skeleton_1 = require("../Skeleton");
|
|
8
8
|
const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
9
|
-
const
|
|
9
|
+
const constants_1 = require("./constants");
|
|
10
10
|
const classes = {
|
|
11
|
-
root: `${PREFIX}-root`,
|
|
12
|
-
left: `${PREFIX}-left`,
|
|
13
|
-
right: `${PREFIX}-right`
|
|
11
|
+
root: `${constants_1.PREFIX}-skeleton-root`,
|
|
12
|
+
left: `${constants_1.PREFIX}-left`,
|
|
13
|
+
right: `${constants_1.PREFIX}-right`
|
|
14
14
|
};
|
|
15
15
|
const Root = (0, styles_1.styled)(material_1.Grid, {
|
|
16
|
-
name: PREFIX,
|
|
17
|
-
slot: '
|
|
18
|
-
|
|
19
|
-
})(({ theme }) => ({}));
|
|
16
|
+
name: constants_1.PREFIX,
|
|
17
|
+
slot: 'SkeletonRoot'
|
|
18
|
+
})(() => ({}));
|
|
20
19
|
/**
|
|
21
20
|
* > API documentation for the Community-JS Feed Skeleton component. Learn about the available props and the CSS API.
|
|
22
21
|
|
|
@@ -28,15 +27,15 @@ const Root = (0, styles_1.styled)(material_1.Grid, {
|
|
|
28
27
|
|
|
29
28
|
#### Component Name
|
|
30
29
|
|
|
31
|
-
The name `
|
|
30
|
+
The name `SCFeed-skeleton-root` can be used when providing style overrides in the theme.
|
|
32
31
|
|
|
33
32
|
#### CSS
|
|
34
33
|
|
|
35
34
|
|Rule Name|Global class|Description|
|
|
36
35
|
|---|---|---|
|
|
37
|
-
|root|.
|
|
38
|
-
|left|.
|
|
39
|
-
|right|.
|
|
36
|
+
|root|.SCFeed-skeleton-root|Styles applied to the root element.|
|
|
37
|
+
|left|.SCFeed-left|Styles applied to the left section.|
|
|
38
|
+
|right|.SCFeed-right|Styles applied to the right section.|
|
|
40
39
|
*
|
|
41
40
|
*/
|
|
42
41
|
function FeedSkeleton(props) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PREFIX = "SCFeed";
|
|
@@ -10,29 +10,17 @@ const Share_1 = tslib_1.__importDefault(require("./Share"));
|
|
|
10
10
|
const react_core_1 = require("@selfcommunity/react-core");
|
|
11
11
|
const feedObject_1 = require("../../../types/feedObject");
|
|
12
12
|
const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
13
|
-
const
|
|
14
|
-
const PREFIX = 'SCFeedObjectActions';
|
|
13
|
+
const constants_1 = require("../constants");
|
|
15
14
|
const classes = {
|
|
16
|
-
root: `${PREFIX}-root`,
|
|
17
|
-
action: `${PREFIX}-action`
|
|
15
|
+
root: `${constants_1.PREFIX}-actions-root`,
|
|
16
|
+
action: `${constants_1.PREFIX}-actions-action`
|
|
18
17
|
};
|
|
19
18
|
const Root = (0, styles_1.styled)(material_1.Grid, {
|
|
20
|
-
name: PREFIX,
|
|
21
|
-
slot: '
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
margin: '0px 0px',
|
|
25
|
-
color: '#3A3A3A',
|
|
26
|
-
[`& .${classes.action}`]: {
|
|
27
|
-
textAlign: 'center'
|
|
28
|
-
}
|
|
29
|
-
}));
|
|
30
|
-
function Actions(inProps) {
|
|
19
|
+
name: constants_1.PREFIX,
|
|
20
|
+
slot: 'ActionsRoot'
|
|
21
|
+
})(() => ({}));
|
|
22
|
+
function Actions(props) {
|
|
31
23
|
// PROPS
|
|
32
|
-
const props = (0, system_1.useThemeProps)({
|
|
33
|
-
props: inProps,
|
|
34
|
-
name: PREFIX
|
|
35
|
-
});
|
|
36
24
|
const { className, feedObject, feedObjectId = feedObject === null || feedObject === void 0 ? void 0 : feedObject.id, feedObjectType = feedObject === null || feedObject === void 0 ? void 0 : feedObject.type, feedObjectTemplate = feedObject_1.SCFeedObjectTemplateType.PREVIEW, hideVoteAction = false, hideShareAction = false, hideCommentAction = false, handleExpandActivities, VoteActionProps = {}, CommentActionProps = {}, ShareActionProps = {} } = props;
|
|
37
25
|
// STATE
|
|
38
26
|
const { obj } = (0, react_core_1.useSCFetchFeedObject)({ id: feedObjectId, feedObject, feedObjectType });
|
|
@@ -12,7 +12,7 @@ const feedObject_1 = require("../../../../types/feedObject");
|
|
|
12
12
|
const contribution_1 = require("../../../../utils/contribution");
|
|
13
13
|
const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
14
14
|
const Skeleton_1 = tslib_1.__importDefault(require("@mui/material/Skeleton"));
|
|
15
|
-
const
|
|
15
|
+
const constants_1 = require("../../constants");
|
|
16
16
|
const messages = (0, react_intl_1.defineMessages)({
|
|
17
17
|
comments: {
|
|
18
18
|
id: 'ui.feedObject.comment.comments',
|
|
@@ -23,24 +23,18 @@ const messages = (0, react_intl_1.defineMessages)({
|
|
|
23
23
|
defaultMessage: 'ui.feedObject.comment.comment'
|
|
24
24
|
}
|
|
25
25
|
});
|
|
26
|
-
const PREFIX = 'SCCommentAction';
|
|
27
26
|
const classes = {
|
|
28
|
-
root: `${PREFIX}-root`,
|
|
29
|
-
divider: `${PREFIX}-divider`,
|
|
30
|
-
inline: `${PREFIX}-inline`,
|
|
31
|
-
button: `${PREFIX}-button`,
|
|
32
|
-
viewAudienceButton: `${PREFIX}-view-audience-button`
|
|
27
|
+
root: `${constants_1.PREFIX}-action-comment-root`,
|
|
28
|
+
divider: `${constants_1.PREFIX}-action-comment-divider`,
|
|
29
|
+
inline: `${constants_1.PREFIX}-action-comment-inline`,
|
|
30
|
+
button: `${constants_1.PREFIX}-action-comment-button`,
|
|
31
|
+
viewAudienceButton: `${constants_1.PREFIX}-action-comment-view-audience-button`
|
|
33
32
|
};
|
|
34
33
|
const Root = (0, styles_1.styled)(material_1.Box, {
|
|
35
|
-
name: PREFIX,
|
|
36
|
-
slot: '
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
function Comment(inProps) {
|
|
40
|
-
const props = (0, system_1.useThemeProps)({
|
|
41
|
-
props: inProps,
|
|
42
|
-
name: PREFIX
|
|
43
|
-
});
|
|
34
|
+
name: constants_1.PREFIX,
|
|
35
|
+
slot: 'ActionCommentRoot'
|
|
36
|
+
})(() => ({}));
|
|
37
|
+
function Comment(props) {
|
|
44
38
|
// PROPS
|
|
45
39
|
const { className, feedObjectId, feedObject, feedObjectType = types_1.SCContributionType.POST, feedObjectTemplate = feedObject_1.SCFeedObjectTemplateType, withAction = true, withAudience = true, inlineAction = false, onViewCommentsAction, onCommentAction } = props, rest = tslib_1.__rest(props, ["className", "feedObjectId", "feedObject", "feedObjectType", "feedObjectTemplate", "withAction", "withAudience", "inlineAction", "onViewCommentsAction", "onCommentAction"]);
|
|
46
40
|
// STATE
|
|
@@ -14,26 +14,20 @@ const types_1 = require("@selfcommunity/types");
|
|
|
14
14
|
const api_services_1 = require("@selfcommunity/api-services");
|
|
15
15
|
const utils_1 = require("@selfcommunity/utils");
|
|
16
16
|
const react_core_1 = require("@selfcommunity/react-core");
|
|
17
|
-
const system_1 = require("@mui/system");
|
|
18
17
|
const errors_1 = require("../../../../utils/errors");
|
|
19
|
-
const
|
|
18
|
+
const constants_1 = require("../../constants");
|
|
20
19
|
const classes = {
|
|
21
|
-
root: `${PREFIX}-root`,
|
|
22
|
-
button: `${PREFIX}-button`,
|
|
23
|
-
iconized: `${PREFIX}-iconized`,
|
|
24
|
-
followed: `${PREFIX}-followed`
|
|
20
|
+
root: `${constants_1.PREFIX}-action-follow-root`,
|
|
21
|
+
button: `${constants_1.PREFIX}-action-follow-button`,
|
|
22
|
+
iconized: `${constants_1.PREFIX}-action-follow-iconized`,
|
|
23
|
+
followed: `${constants_1.PREFIX}-action-follow-followed`
|
|
25
24
|
};
|
|
26
25
|
const Root = (0, styles_1.styled)(material_1.Box, {
|
|
27
|
-
name: PREFIX,
|
|
28
|
-
slot: '
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
function Follow(inProps) {
|
|
26
|
+
name: constants_1.PREFIX,
|
|
27
|
+
slot: 'ActionFollowRoot'
|
|
28
|
+
})(() => ({}));
|
|
29
|
+
function Follow(props) {
|
|
32
30
|
// PROPS
|
|
33
|
-
const props = (0, system_1.useThemeProps)({
|
|
34
|
-
props: inProps,
|
|
35
|
-
name: PREFIX
|
|
36
|
-
});
|
|
37
31
|
const { className = null, feedObjectId = null, feedObject = null, feedObjectType = types_1.SCContributionType.POST, handleFollow, iconized = true } = props, rest = tslib_1.__rest(props, ["className", "feedObjectId", "feedObject", "feedObjectType", "handleFollow", "iconized"]);
|
|
38
32
|
// STATE
|
|
39
33
|
const { obj, setObj } = (0, react_core_1.useSCFetchFeedObject)({ id: feedObjectId, feedObject, feedObjectType });
|
|
@@ -19,10 +19,10 @@ const types_1 = require("@selfcommunity/types");
|
|
|
19
19
|
const api_services_1 = require("@selfcommunity/api-services");
|
|
20
20
|
const utils_1 = require("@selfcommunity/utils");
|
|
21
21
|
const react_core_1 = require("@selfcommunity/react-core");
|
|
22
|
-
const system_1 = require("@mui/system");
|
|
23
22
|
const contribution_1 = require("../../../../utils/contribution");
|
|
24
23
|
const SocialShare_1 = require("../../../../constants/SocialShare");
|
|
25
24
|
const Composer_1 = tslib_1.__importDefault(require("../../../Composer"));
|
|
25
|
+
const constants_1 = require("../../constants");
|
|
26
26
|
const messages = (0, react_intl_1.defineMessages)({
|
|
27
27
|
shares: {
|
|
28
28
|
id: 'ui.feedObject.share.shares',
|
|
@@ -33,25 +33,19 @@ const messages = (0, react_intl_1.defineMessages)({
|
|
|
33
33
|
defaultMessage: 'ui.feedObject.share.share'
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
|
-
const PREFIX = 'SCShareAction';
|
|
37
36
|
const classes = {
|
|
38
|
-
root: `${PREFIX}-root`,
|
|
39
|
-
divider: `${PREFIX}-divider`,
|
|
40
|
-
inline: `${PREFIX}-inline`,
|
|
41
|
-
button: `${PREFIX}-button`,
|
|
42
|
-
viewAudienceButton: `${PREFIX}-view-audience-button`
|
|
37
|
+
root: `${constants_1.PREFIX}-action-share-root`,
|
|
38
|
+
divider: `${constants_1.PREFIX}-action-share-divider`,
|
|
39
|
+
inline: `${constants_1.PREFIX}-action-share-inline`,
|
|
40
|
+
button: `${constants_1.PREFIX}-action-share-button`,
|
|
41
|
+
viewAudienceButton: `${constants_1.PREFIX}-action-share-view-audience-button`
|
|
43
42
|
};
|
|
44
43
|
const Root = (0, styles_1.styled)(material_1.Box, {
|
|
45
|
-
name: PREFIX,
|
|
46
|
-
slot: '
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
function Share(inProps) {
|
|
44
|
+
name: constants_1.PREFIX,
|
|
45
|
+
slot: 'ActionShareRoot'
|
|
46
|
+
})(() => ({}));
|
|
47
|
+
function Share(props) {
|
|
50
48
|
// PROPS
|
|
51
|
-
const props = (0, system_1.useThemeProps)({
|
|
52
|
-
props: inProps,
|
|
53
|
-
name: PREFIX
|
|
54
|
-
});
|
|
55
49
|
const { className = null, feedObjectId = null, feedObject = null, feedObjectType = types_1.SCContributionType.POST, withAction = true, withAudience = true, inlineAction = false } = props, rest = tslib_1.__rest(props, ["className", "feedObjectId", "feedObject", "feedObjectType", "withAction", "withAudience", "inlineAction"]);
|
|
56
50
|
// STATE
|
|
57
51
|
const theme = (0, material_1.useTheme)();
|
|
@@ -5,27 +5,21 @@ const react_1 = tslib_1.__importDefault(require("react"));
|
|
|
5
5
|
const material_1 = require("@mui/material");
|
|
6
6
|
const styles_1 = require("@mui/material/styles");
|
|
7
7
|
const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
8
|
-
const system_1 = require("@mui/system");
|
|
9
8
|
const VoteButton_1 = tslib_1.__importDefault(require("../../../VoteButton"));
|
|
10
9
|
const VoteAudienceButton_1 = tslib_1.__importDefault(require("../../../VoteAudienceButton"));
|
|
11
|
-
const
|
|
10
|
+
const constants_1 = require("../../constants");
|
|
12
11
|
const classes = {
|
|
13
|
-
root: `${PREFIX}-root`,
|
|
14
|
-
divider: `${PREFIX}-divider`,
|
|
15
|
-
button: `${PREFIX}-button`,
|
|
16
|
-
inline: `${PREFIX}-inline`,
|
|
17
|
-
viewAudienceButton: `${PREFIX}-view-audience-button`
|
|
12
|
+
root: `${constants_1.PREFIX}-action-vote-root`,
|
|
13
|
+
divider: `${constants_1.PREFIX}-action-vote-divider`,
|
|
14
|
+
button: `${constants_1.PREFIX}-action-vote-button`,
|
|
15
|
+
inline: `${constants_1.PREFIX}-action-vote-inline`,
|
|
16
|
+
viewAudienceButton: `${constants_1.PREFIX}-action-vote-view-audience-button`
|
|
18
17
|
};
|
|
19
18
|
const Root = (0, styles_1.styled)(material_1.Box, {
|
|
20
|
-
name: PREFIX,
|
|
21
|
-
slot: '
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
function Vote(inProps) {
|
|
25
|
-
const props = (0, system_1.useThemeProps)({
|
|
26
|
-
props: inProps,
|
|
27
|
-
name: PREFIX
|
|
28
|
-
});
|
|
19
|
+
name: constants_1.PREFIX,
|
|
20
|
+
slot: 'ActionVoteRoot'
|
|
21
|
+
})(() => ({}));
|
|
22
|
+
function Vote(props) {
|
|
29
23
|
// PROPS
|
|
30
24
|
const { className = null, feedObjectId = null, feedObject = null, feedObjectType = null, withAudience = true, withAction = true, inlineAction = false, onVoteAction = () => null } = props, rest = tslib_1.__rest(props, ["className", "feedObjectId", "feedObject", "feedObjectType", "withAudience", "withAction", "inlineAction", "onVoteAction"]);
|
|
31
25
|
// RENDER
|
|
@@ -6,7 +6,6 @@ const styles_1 = require("@mui/material/styles");
|
|
|
6
6
|
const material_1 = require("@mui/material");
|
|
7
7
|
const comments_1 = require("../../../types/comments");
|
|
8
8
|
const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
9
|
-
const system_1 = require("@mui/system");
|
|
10
9
|
const CommentsObject_1 = tslib_1.__importDefault(require("../../CommentsObject"));
|
|
11
10
|
const ActivitiesMenu_1 = tslib_1.__importDefault(require("./ActivitiesMenu"));
|
|
12
11
|
const RelevantActivities_1 = tslib_1.__importDefault(require("./RelevantActivities"));
|
|
@@ -15,23 +14,16 @@ const react_core_1 = require("@selfcommunity/react-core");
|
|
|
15
14
|
const types_1 = require("@selfcommunity/types");
|
|
16
15
|
const utils_1 = require("@selfcommunity/utils");
|
|
17
16
|
const react_intersection_observer_1 = require("react-intersection-observer");
|
|
18
|
-
const
|
|
17
|
+
const constants_1 = require("../constants");
|
|
19
18
|
const classes = {
|
|
20
|
-
root: `${PREFIX}-root`,
|
|
21
|
-
activities: `${PREFIX}-activities`
|
|
19
|
+
root: `${constants_1.PREFIX}-activities-root`,
|
|
20
|
+
activities: `${constants_1.PREFIX}-activities`
|
|
22
21
|
};
|
|
23
22
|
const Root = (0, styles_1.styled)(material_1.Box, {
|
|
24
|
-
name: PREFIX,
|
|
25
|
-
slot: '
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
width: '100%'
|
|
29
|
-
}));
|
|
30
|
-
function Activities(inProps) {
|
|
31
|
-
const props = (0, system_1.useThemeProps)({
|
|
32
|
-
props: inProps,
|
|
33
|
-
name: PREFIX
|
|
34
|
-
});
|
|
23
|
+
name: constants_1.PREFIX,
|
|
24
|
+
slot: 'ActivitiesRoot'
|
|
25
|
+
})(() => ({}));
|
|
26
|
+
function Activities(props) {
|
|
35
27
|
// PROPS
|
|
36
28
|
const { id = `feed_object_activities_${props.feedObjectId ? props.feedObjectId : props.feedObject ? props.feedObject.id : ''}`, className, feedObjectId, feedObject, feedObjectType = types_1.SCContributionType.POST, cacheStrategy = utils_1.CacheStrategies.CACHE_FIRST, CommentsObjectProps = {}, CommentComponentProps = { variant: 'outlined' }, feedObjectActivities = [], comments = [], onSetSelectedActivities, activitiesType = feedObject_1.SCFeedObjectActivitiesType.RECENT_COMMENTS } = props, rest = tslib_1.__rest(props, ["id", "className", "feedObjectId", "feedObject", "feedObjectType", "cacheStrategy", "CommentsObjectProps", "CommentComponentProps", "feedObjectActivities", "comments", "onSetSelectedActivities", "activitiesType"]);
|
|
37
29
|
const { ref, inView } = (0, react_intersection_observer_1.useInView)({ triggerOnce: true });
|
|
@@ -99,7 +91,7 @@ function Activities(inProps) {
|
|
|
99
91
|
(Boolean(commentsObject.feedObject.comment_count) ||
|
|
100
92
|
(feedObjectActivities && feedObjectActivities.length > 0) ||
|
|
101
93
|
comments.length > 0 ||
|
|
102
|
-
(feedObject && feedObject.comment_count > 0)) ? (react_1.default.createElement(material_1.Box, Object.assign({ className: classes.activities }, (existFeedObjectActivities ? {} : { style: { minHeight: `${skeletonsCount * 80}px` } })),
|
|
94
|
+
(feedObject && feedObject.comment_count > 0)) ? (react_1.default.createElement(material_1.Box, Object.assign({ className: classes.activities }, (existFeedObjectActivities ? {} : { style: { minHeight: `${Math.min(skeletonsCount, feedObject.comment_count) * 80}px` } })),
|
|
103
95
|
react_1.default.createElement(ActivitiesMenu_1.default, { selectedActivities: selectedActivities, hideRelevantActivitiesItem: !existFeedObjectActivities, onChange: handleSelectActivitiesType }),
|
|
104
96
|
selectedActivities === feedObject_1.SCFeedObjectActivitiesType.RELEVANCE_ACTIVITIES ? renderRelevantActivities() : renderComments())) : null));
|
|
105
97
|
}
|
|
@@ -14,7 +14,7 @@ const react_intl_1 = require("react-intl");
|
|
|
14
14
|
const utils_1 = require("@selfcommunity/utils");
|
|
15
15
|
const react_core_1 = require("@selfcommunity/react-core");
|
|
16
16
|
const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
17
|
-
const
|
|
17
|
+
const constants_1 = require("../../constants");
|
|
18
18
|
const messages = (0, react_intl_1.defineMessages)({
|
|
19
19
|
relevantActivities: {
|
|
20
20
|
id: 'ui.feedObject.activitiesMenu.relevantActivities',
|
|
@@ -37,22 +37,16 @@ const messages = (0, react_intl_1.defineMessages)({
|
|
|
37
37
|
defaultMessage: 'ui.feedObject.activitiesMenu.connectionsComments'
|
|
38
38
|
}
|
|
39
39
|
});
|
|
40
|
-
const PREFIX = 'SCActivitiesMenu';
|
|
41
40
|
const classes = {
|
|
42
|
-
root: `${PREFIX}-root`,
|
|
43
|
-
selector: `${PREFIX}-selector`
|
|
41
|
+
root: `${constants_1.PREFIX}-activities-menu-root`,
|
|
42
|
+
selector: `${constants_1.PREFIX}-activities-menu-selector`
|
|
44
43
|
};
|
|
45
44
|
const Root = (0, styles_1.styled)(Box_1.default, {
|
|
46
|
-
name: PREFIX,
|
|
47
|
-
slot: '
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
function ActivitiesMenu(inProps) {
|
|
45
|
+
name: constants_1.PREFIX,
|
|
46
|
+
slot: 'ActivitiesMenuRoot'
|
|
47
|
+
})(() => ({}));
|
|
48
|
+
function ActivitiesMenu(props) {
|
|
51
49
|
// PROPS
|
|
52
|
-
const props = (0, system_1.useThemeProps)({
|
|
53
|
-
props: inProps,
|
|
54
|
-
name: PREFIX
|
|
55
|
-
});
|
|
56
50
|
const { className = null, selectedActivities = null, hideRelevantActivitiesItem = false, onChange = null } = props, rest = tslib_1.__rest(props, ["className", "selectedActivities", "hideRelevantActivitiesItem", "onChange"]);
|
|
57
51
|
// CONTEXT
|
|
58
52
|
const scPreferencesContext = (0, react_1.useContext)(react_core_1.SCPreferencesContext);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ActionsRelevantActivityProps } from '../ActionsRelevantActivity';
|
|
2
|
-
export default function CommentRelevantActivity(
|
|
2
|
+
export default function CommentRelevantActivity(props: ActionsRelevantActivityProps): JSX.Element;
|
|
@@ -8,48 +8,29 @@ const react_core_1 = require("@selfcommunity/react-core");
|
|
|
8
8
|
const react_intl_1 = require("react-intl");
|
|
9
9
|
const DateTimeAgo_1 = tslib_1.__importDefault(require("../../../../../shared/DateTimeAgo"));
|
|
10
10
|
const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
11
|
-
const system_1 = require("@mui/system");
|
|
12
11
|
const BaseItem_1 = tslib_1.__importDefault(require("../../../../../shared/BaseItem"));
|
|
13
12
|
const UserDeletedSnackBar_1 = tslib_1.__importDefault(require("../../../../../shared/UserDeletedSnackBar"));
|
|
14
13
|
const contribution_1 = require("../../../../../utils/contribution");
|
|
15
14
|
const Feed_1 = require("../../../../../constants/Feed");
|
|
15
|
+
const constants_1 = require("../../../constants");
|
|
16
16
|
const messages = (0, react_intl_1.defineMessages)({
|
|
17
17
|
comment: {
|
|
18
18
|
id: 'ui.feedObject.relevantActivities.comment',
|
|
19
19
|
defaultMessage: 'ui.feedObject.relevantActivities.comment'
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
|
-
const PREFIX = 'SCCommentRelevantActivity';
|
|
23
22
|
const classes = {
|
|
24
|
-
root: `${PREFIX}-root`,
|
|
25
|
-
avatar: `${PREFIX}-avatar`,
|
|
26
|
-
username: `${PREFIX}-username`,
|
|
27
|
-
showMoreContent: `${PREFIX}-show-more-content`
|
|
23
|
+
root: `${constants_1.PREFIX}-activity-comment-root`,
|
|
24
|
+
avatar: `${constants_1.PREFIX}-activity-comment-avatar`,
|
|
25
|
+
username: `${constants_1.PREFIX}-activity-comment-username`,
|
|
26
|
+
showMoreContent: `${constants_1.PREFIX}-activity-comment-show-more-content`
|
|
28
27
|
};
|
|
29
28
|
const Root = (0, styles_1.styled)(BaseItem_1.default, {
|
|
30
|
-
name: PREFIX,
|
|
31
|
-
slot: '
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
[`& .${classes.username}`]: {
|
|
35
|
-
color: 'inherit'
|
|
36
|
-
},
|
|
37
|
-
[`& .${classes.avatar}`]: {
|
|
38
|
-
width: theme.selfcommunity.user.avatar.sizeMedium,
|
|
39
|
-
height: theme.selfcommunity.user.avatar.sizeMedium
|
|
40
|
-
},
|
|
41
|
-
'& .SCBaseItem-secondary': {
|
|
42
|
-
display: 'flex',
|
|
43
|
-
flexDirection: 'row',
|
|
44
|
-
alignItems: 'center'
|
|
45
|
-
}
|
|
46
|
-
}));
|
|
47
|
-
function CommentRelevantActivity(inProps) {
|
|
29
|
+
name: constants_1.PREFIX,
|
|
30
|
+
slot: 'ActivityCommentRoot'
|
|
31
|
+
})(() => ({}));
|
|
32
|
+
function CommentRelevantActivity(props) {
|
|
48
33
|
// PROPS
|
|
49
|
-
const props = (0, system_1.useThemeProps)({
|
|
50
|
-
props: inProps,
|
|
51
|
-
name: PREFIX
|
|
52
|
-
});
|
|
53
34
|
const { className = null, activityObject = null } = props, rest = tslib_1.__rest(props, ["className", "activityObject"]);
|
|
54
35
|
// CONTEXT
|
|
55
36
|
const scRoutingContext = (0, react_core_1.useSCRouting)();
|
|
@@ -68,9 +49,9 @@ function CommentRelevantActivity(inProps) {
|
|
|
68
49
|
react_1.default.createElement(material_1.Avatar, { alt: activityObject.author.username, variant: "circular", src: activityObject.author.avatar, className: classes.avatar })), primary: react_1.default.createElement(react_1.default.Fragment, null, intl.formatMessage(messages.comment, {
|
|
69
50
|
username: (react_1.default.createElement(react_core_1.Link, Object.assign({}, (!activityObject.author.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, activityObject.author) }), { onClick: activityObject.author.deleted ? () => setOpenAlert(true) : null, className: classes.username }), activityObject.author.username)),
|
|
70
51
|
comment: (react_1.default.createElement(react_1.default.Fragment, null,
|
|
71
|
-
summaryHtml,
|
|
72
|
-
react_1.default.createElement(react_core_1.Link, { to: scRoutingContext.url(react_core_1.SCRoutes.COMMENT_ROUTE_NAME, (0, contribution_1.getRouteData)(activityObject.comment)), className: classes.showMoreContent },
|
|
73
|
-
react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.commentObject.showMore", defaultMessage: "ui.commentObject.showMore" }))))
|
|
52
|
+
react_1.default.createElement(material_1.Typography, { variant: "body2", gutterBottom: true, dangerouslySetInnerHTML: { __html: summaryHtml } }),
|
|
53
|
+
summaryHtmlTruncated && (react_1.default.createElement(react_core_1.Link, { to: scRoutingContext.url(react_core_1.SCRoutes.COMMENT_ROUTE_NAME, (0, contribution_1.getRouteData)(activityObject.comment)), className: classes.showMoreContent },
|
|
54
|
+
react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.commentObject.showMore", defaultMessage: "ui.commentObject.showMore" })))))
|
|
74
55
|
})), secondary: react_1.default.createElement(DateTimeAgo_1.default, { date: activityObject.active_at }) })),
|
|
75
56
|
openAlert && react_1.default.createElement(UserDeletedSnackBar_1.default, { open: openAlert, handleClose: () => setOpenAlert(false) })));
|
|
76
57
|
}
|
package/lib/cjs/components/FeedObject/Activities/RelevantActivities/FollowActivity/FollowActivity.js
CHANGED
|
@@ -11,36 +11,27 @@ const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
|
11
11
|
const system_1 = require("@mui/system");
|
|
12
12
|
const BaseItem_1 = tslib_1.__importDefault(require("../../../../../shared/BaseItem"));
|
|
13
13
|
const UserDeletedSnackBar_1 = tslib_1.__importDefault(require("../../../../../shared/UserDeletedSnackBar"));
|
|
14
|
+
const constants_1 = require("../../../constants");
|
|
14
15
|
const messages = (0, react_intl_1.defineMessages)({
|
|
15
16
|
follow: {
|
|
16
17
|
id: 'ui.feedObject.relevantActivities.follow',
|
|
17
18
|
defaultMessage: 'ui.feedObject.relevantActivities.follow'
|
|
18
19
|
}
|
|
19
20
|
});
|
|
20
|
-
const PREFIX = 'SCFollowRelevantActivity';
|
|
21
21
|
const classes = {
|
|
22
|
-
root: `${PREFIX}-root`,
|
|
23
|
-
avatar: `${PREFIX}-avatar`,
|
|
24
|
-
username: `${PREFIX}-username`
|
|
22
|
+
root: `${constants_1.PREFIX}-activity-follow-root`,
|
|
23
|
+
avatar: `${constants_1.PREFIX}-activity-follow-avatar`,
|
|
24
|
+
username: `${constants_1.PREFIX}-activity-follow-username`
|
|
25
25
|
};
|
|
26
26
|
const Root = (0, styles_1.styled)(BaseItem_1.default, {
|
|
27
|
-
name: PREFIX,
|
|
28
|
-
slot: '
|
|
29
|
-
|
|
30
|
-
})(({ theme }) => ({
|
|
31
|
-
[`& .${classes.username}`]: {
|
|
32
|
-
color: 'inherit'
|
|
33
|
-
},
|
|
34
|
-
[`& .${classes.avatar}`]: {
|
|
35
|
-
width: theme.selfcommunity.user.avatar.sizeMedium,
|
|
36
|
-
height: theme.selfcommunity.user.avatar.sizeMedium
|
|
37
|
-
}
|
|
38
|
-
}));
|
|
27
|
+
name: constants_1.PREFIX,
|
|
28
|
+
slot: 'ActivityFollowRoot'
|
|
29
|
+
})(() => ({}));
|
|
39
30
|
function FollowRelevantActivity(inProps) {
|
|
40
31
|
// PROPS
|
|
41
32
|
const props = (0, system_1.useThemeProps)({
|
|
42
33
|
props: inProps,
|
|
43
|
-
name: PREFIX
|
|
34
|
+
name: constants_1.PREFIX
|
|
44
35
|
});
|
|
45
36
|
const { className = null, activityObject = null } = props, rest = tslib_1.__rest(props, ["className", "activityObject"]);
|
|
46
37
|
// CONTEXT
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ActionsRelevantActivityProps } from '../ActionsRelevantActivity';
|
|
2
|
-
export default function PollVoteRelevantActivity(
|
|
2
|
+
export default function PollVoteRelevantActivity(props: ActionsRelevantActivityProps): JSX.Element;
|
|
@@ -8,40 +8,26 @@ const react_core_1 = require("@selfcommunity/react-core");
|
|
|
8
8
|
const react_intl_1 = require("react-intl");
|
|
9
9
|
const DateTimeAgo_1 = tslib_1.__importDefault(require("../../../../../shared/DateTimeAgo"));
|
|
10
10
|
const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
11
|
-
const system_1 = require("@mui/system");
|
|
12
11
|
const BaseItem_1 = tslib_1.__importDefault(require("../../../../../shared/BaseItem"));
|
|
13
12
|
const UserDeletedSnackBar_1 = tslib_1.__importDefault(require("../../../../../shared/UserDeletedSnackBar"));
|
|
13
|
+
const constants_1 = require("../../../constants");
|
|
14
14
|
const messages = (0, react_intl_1.defineMessages)({
|
|
15
15
|
pollVote: {
|
|
16
16
|
id: 'ui.feedObject.relevantActivities.pollVote',
|
|
17
17
|
defaultMessage: 'ui.feedObject.relevantActivities.pollVote'
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
|
-
const PREFIX = 'SCPollVoteRelevantActivity';
|
|
21
20
|
const classes = {
|
|
22
|
-
root: `${PREFIX}-root`,
|
|
23
|
-
avatar: `${PREFIX}-avatar`,
|
|
24
|
-
username: `${PREFIX}-username`
|
|
21
|
+
root: `${constants_1.PREFIX}-activity-poll-vote-root`,
|
|
22
|
+
avatar: `${constants_1.PREFIX}-activity-poll-vote-avatar`,
|
|
23
|
+
username: `${constants_1.PREFIX}-activity-poll-vote-username`
|
|
25
24
|
};
|
|
26
25
|
const Root = (0, styles_1.styled)(BaseItem_1.default, {
|
|
27
|
-
name: PREFIX,
|
|
28
|
-
slot: '
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
[`& .${classes.username}`]: {
|
|
32
|
-
color: 'inherit'
|
|
33
|
-
},
|
|
34
|
-
[`& .${classes.avatar}`]: {
|
|
35
|
-
width: theme.selfcommunity.user.avatar.sizeMedium,
|
|
36
|
-
height: theme.selfcommunity.user.avatar.sizeMedium
|
|
37
|
-
}
|
|
38
|
-
}));
|
|
39
|
-
function PollVoteRelevantActivity(inProps) {
|
|
26
|
+
name: constants_1.PREFIX,
|
|
27
|
+
slot: 'ActivityPollVoteRoot'
|
|
28
|
+
})(() => ({}));
|
|
29
|
+
function PollVoteRelevantActivity(props) {
|
|
40
30
|
// PROPS
|
|
41
|
-
const props = (0, system_1.useThemeProps)({
|
|
42
|
-
props: inProps,
|
|
43
|
-
name: PREFIX
|
|
44
|
-
});
|
|
45
31
|
const { className = null, activityObject = null } = props, rest = tslib_1.__rest(props, ["className", "activityObject"]);
|
|
46
32
|
// CONTEXT
|
|
47
33
|
const scRoutingContext = (0, react_core_1.useSCRouting)();
|
|
@@ -12,30 +12,17 @@ const VoteUpActivity_1 = tslib_1.__importDefault(require("./VoteUpActivity"));
|
|
|
12
12
|
const FollowActivity_1 = tslib_1.__importDefault(require("./FollowActivity"));
|
|
13
13
|
const PollVoteActivity_1 = tslib_1.__importDefault(require("./PollVoteActivity"));
|
|
14
14
|
const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
15
|
-
const
|
|
16
|
-
const PREFIX = 'SCFeedRelevantActivities';
|
|
15
|
+
const constants_1 = require("../../constants");
|
|
17
16
|
const classes = {
|
|
18
|
-
root: `${PREFIX}-root`,
|
|
19
|
-
activity: `${PREFIX}-activity`
|
|
17
|
+
root: `${constants_1.PREFIX}-relevant-activities-root`,
|
|
18
|
+
activity: `${constants_1.PREFIX}-relevant-activities-activity`
|
|
20
19
|
};
|
|
21
20
|
const Root = (0, styles_1.styled)(material_1.Box, {
|
|
22
|
-
name: PREFIX,
|
|
23
|
-
slot: '
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
[`& .MuiList-root, & .${classes.activity}`]: {
|
|
27
|
-
padding: 0,
|
|
28
|
-
'& .SCBaseItem-content': {
|
|
29
|
-
alignItems: 'flex-start'
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}));
|
|
33
|
-
function RelevantActivities(inProps) {
|
|
21
|
+
name: constants_1.PREFIX,
|
|
22
|
+
slot: 'RelevantActivitiesRoot'
|
|
23
|
+
})(() => ({}));
|
|
24
|
+
function RelevantActivities(props) {
|
|
34
25
|
//PROPS
|
|
35
|
-
const props = (0, system_1.useThemeProps)({
|
|
36
|
-
props: inProps,
|
|
37
|
-
name: PREFIX
|
|
38
|
-
});
|
|
39
26
|
const { className = null, activities = [], showMaxRelevantActivities = 5 } = props, rest = tslib_1.__rest(props, ["className", "activities", "showMaxRelevantActivities"]);
|
|
40
27
|
// STATE
|
|
41
28
|
const [openOtherActivities, setOpenOtherActivities] = (0, react_1.useState)(false);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ActionsRelevantActivityProps } from '../ActionsRelevantActivity';
|
|
2
|
-
export default function VoteUpRelevantActivity(
|
|
2
|
+
export default function VoteUpRelevantActivity(props: ActionsRelevantActivityProps): JSX.Element;
|