@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
|
@@ -12,40 +12,29 @@ const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
|
12
12
|
const types_1 = require("../../../types");
|
|
13
13
|
const system_1 = require("@mui/system");
|
|
14
14
|
const NotificationItem_1 = tslib_1.__importDefault(require("../../../shared/NotificationItem"));
|
|
15
|
+
const constants_1 = require("../constants");
|
|
15
16
|
const messages = (0, react_intl_1.defineMessages)({
|
|
16
17
|
incubatorApproved: {
|
|
17
18
|
id: 'ui.notification.incubatorApproved.approved',
|
|
18
19
|
defaultMessage: 'ui.notification.incubatorApproved.approved'
|
|
19
20
|
}
|
|
20
21
|
});
|
|
21
|
-
const PREFIX = 'SCIncubatorApprovedNotification';
|
|
22
22
|
const classes = {
|
|
23
|
-
root: `${PREFIX}-root`,
|
|
24
|
-
categoryIcon: `${PREFIX}-category-icon`,
|
|
25
|
-
categoryApprovedText: `${PREFIX}-category-approved-text`,
|
|
26
|
-
activeAt: `${PREFIX}-active-at`,
|
|
27
|
-
viewIncubatorButton: `${PREFIX}-view-incubator-button`
|
|
23
|
+
root: `${constants_1.PREFIX}-incubator-approved-root`,
|
|
24
|
+
categoryIcon: `${constants_1.PREFIX}-category-icon`,
|
|
25
|
+
categoryApprovedText: `${constants_1.PREFIX}-category-approved-text`,
|
|
26
|
+
activeAt: `${constants_1.PREFIX}-active-at`,
|
|
27
|
+
viewIncubatorButton: `${constants_1.PREFIX}-view-incubator-button`
|
|
28
28
|
};
|
|
29
29
|
const Root = (0, styles_1.styled)(NotificationItem_1.default, {
|
|
30
|
-
name: PREFIX,
|
|
31
|
-
slot: '
|
|
32
|
-
|
|
33
|
-
})(({ theme }) => ({
|
|
34
|
-
[`& .${classes.categoryIcon}`]: {
|
|
35
|
-
borderRadius: 3
|
|
36
|
-
},
|
|
37
|
-
[`& .${classes.viewIncubatorButton}`]: {
|
|
38
|
-
padding: theme.spacing(),
|
|
39
|
-
paddingBottom: 0,
|
|
40
|
-
textTransform: 'initial',
|
|
41
|
-
marginLeft: -8
|
|
42
|
-
}
|
|
43
|
-
}));
|
|
30
|
+
name: constants_1.PREFIX,
|
|
31
|
+
slot: 'IncubatorApprovedRoot'
|
|
32
|
+
})(() => ({}));
|
|
44
33
|
function IncubatorApprovedNotification(inProps) {
|
|
45
34
|
// PROPS
|
|
46
35
|
const props = (0, system_1.useThemeProps)({
|
|
47
36
|
props: inProps,
|
|
48
|
-
name: PREFIX
|
|
37
|
+
name: constants_1.PREFIX
|
|
49
38
|
});
|
|
50
39
|
const { notificationObject = null, id = `n_${props.notificationObject['feed_serialization_id']}`, template = types_1.SCNotificationObjectTemplateType.DETAIL, className } = props, rest = tslib_1.__rest(props, ["notificationObject", "id", "template", "className"]);
|
|
51
40
|
// ROUTING
|
|
@@ -57,7 +46,7 @@ function IncubatorApprovedNotification(inProps) {
|
|
|
57
46
|
/**
|
|
58
47
|
* Renders root object
|
|
59
48
|
*/
|
|
60
|
-
return (react_1.default.createElement(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: react_1.default.createElement(material_1.Avatar, { alt: notificationObject.incubator.approved_category.name, src: notificationObject.incubator.approved_category.image_medium, variant: "square", classes: { root: classes.categoryIcon } }), primary: react_1.default.createElement(react_1.default.Fragment, null, isSnippetTemplate ? (react_1.default.createElement(react_core_1.Link, { to: scRoutingContext.url(react_core_1.SCRoutes.CATEGORY_ROUTE_NAME, notificationObject.incubator.approved_category) },
|
|
49
|
+
return (react_1.default.createElement(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${constants_1.PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: react_1.default.createElement(material_1.Avatar, { alt: notificationObject.incubator.approved_category.name, src: notificationObject.incubator.approved_category.image_medium, variant: "square", classes: { root: classes.categoryIcon } }), primary: react_1.default.createElement(react_1.default.Fragment, null, isSnippetTemplate ? (react_1.default.createElement(react_core_1.Link, { to: scRoutingContext.url(react_core_1.SCRoutes.CATEGORY_ROUTE_NAME, notificationObject.incubator.approved_category) },
|
|
61
50
|
react_1.default.createElement(material_1.Typography, { component: "div", className: classes.categoryApprovedText, color: "inherit" }, intl.formatMessage(messages.incubatorApproved, {
|
|
62
51
|
name: notificationObject.incubator.name,
|
|
63
52
|
b: (...chunks) => react_1.default.createElement("strong", null, chunks)
|
|
@@ -14,47 +14,26 @@ const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
|
14
14
|
const types_1 = require("../../../types");
|
|
15
15
|
const system_1 = require("@mui/system");
|
|
16
16
|
const NotificationItem_1 = tslib_1.__importDefault(require("../../../shared/NotificationItem"));
|
|
17
|
-
const
|
|
17
|
+
const constants_1 = require("../constants");
|
|
18
18
|
const messages = (0, react_intl_1.defineMessages)({
|
|
19
19
|
kindlyNoticeFlag: {
|
|
20
20
|
id: 'ui.notification.kindlyNoticeFlag.kindlyNoticeFlag',
|
|
21
21
|
defaultMessage: 'ui.notification.kindlyNoticeFlag.kindlyNoticeFlag'
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
|
-
const PREFIX = 'SCKindlyNoticeFlagNotification';
|
|
25
24
|
const classes = {
|
|
26
|
-
root: `${PREFIX}-root`,
|
|
27
|
-
flagIcon: `${PREFIX}-flag-icon`,
|
|
28
|
-
flagText: `${PREFIX}-flag-text`,
|
|
29
|
-
activeAt: `${PREFIX}-active-at`,
|
|
30
|
-
contributionWrap: `${PREFIX}-contribution-wrap`,
|
|
31
|
-
contributionYouWroteLabel: `${PREFIX}-contribution-you-wrote-label`,
|
|
32
|
-
contributionText: `${PREFIX}-contribution-text`
|
|
25
|
+
root: `${constants_1.PREFIX}-kindly-notice-flag-root`,
|
|
26
|
+
flagIcon: `${constants_1.PREFIX}-flag-icon`,
|
|
27
|
+
flagText: `${constants_1.PREFIX}-flag-text`,
|
|
28
|
+
activeAt: `${constants_1.PREFIX}-active-at`,
|
|
29
|
+
contributionWrap: `${constants_1.PREFIX}-contribution-wrap`,
|
|
30
|
+
contributionYouWroteLabel: `${constants_1.PREFIX}-contribution-you-wrote-label`,
|
|
31
|
+
contributionText: `${constants_1.PREFIX}-contribution-text`
|
|
33
32
|
};
|
|
34
33
|
const Root = (0, styles_1.styled)(NotificationItem_1.default, {
|
|
35
|
-
name: PREFIX,
|
|
36
|
-
slot: '
|
|
37
|
-
|
|
38
|
-
})(({ theme }) => ({
|
|
39
|
-
[`& .${classes.flagIcon}`]: {
|
|
40
|
-
backgroundColor: colors_1.red[500],
|
|
41
|
-
color: '#FFF'
|
|
42
|
-
},
|
|
43
|
-
[`& .${classes.flagText}`]: {
|
|
44
|
-
color: theme.palette.text.primary
|
|
45
|
-
},
|
|
46
|
-
[`& .${classes.contributionWrap}`]: {
|
|
47
|
-
padding: `${theme.spacing(2)} ${theme.spacing(2)}`,
|
|
48
|
-
textOverflow: 'ellipsis',
|
|
49
|
-
display: 'inline',
|
|
50
|
-
overflow: 'hidden'
|
|
51
|
-
},
|
|
52
|
-
[`& .${classes.contributionText}`]: {
|
|
53
|
-
'&:hover': {
|
|
54
|
-
textDecoration: 'underline'
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}));
|
|
34
|
+
name: constants_1.PREFIX,
|
|
35
|
+
slot: 'KindlyNoticeFlagRoot'
|
|
36
|
+
})(() => ({}));
|
|
58
37
|
/**
|
|
59
38
|
* This component render the content of the notification of type kindly notice flag
|
|
60
39
|
* @param inProps
|
|
@@ -64,7 +43,7 @@ function KindlyNoticeFlagNotification(inProps) {
|
|
|
64
43
|
// PROPS
|
|
65
44
|
const props = (0, system_1.useThemeProps)({
|
|
66
45
|
props: inProps,
|
|
67
|
-
name: PREFIX
|
|
46
|
+
name: constants_1.PREFIX
|
|
68
47
|
});
|
|
69
48
|
const { notificationObject, id = `n_${props.notificationObject['sid']}`, className, template = types_1.SCNotificationObjectTemplateType.DETAIL } = props, rest = tslib_1.__rest(props, ["notificationObject", "id", "className", "template"]);
|
|
70
49
|
// ROUTING
|
|
@@ -77,7 +56,7 @@ function KindlyNoticeFlagNotification(inProps) {
|
|
|
77
56
|
/**
|
|
78
57
|
* Renders root object
|
|
79
58
|
*/
|
|
80
|
-
return (react_1.default.createElement(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: react_1.default.createElement(material_1.Avatar, { variant: "circular", classes: { root: classes.flagIcon } },
|
|
59
|
+
return (react_1.default.createElement(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${constants_1.PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: react_1.default.createElement(material_1.Avatar, { variant: "circular", classes: { root: classes.flagIcon } },
|
|
81
60
|
react_1.default.createElement(Icon_1.default, null, "outlined_flag")), primary: react_1.default.createElement(react_1.default.Fragment, null, isSnippetTemplate ? (react_1.default.createElement(react_core_1.Link, { to: scRoutingContext.url(react_core_1.SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(notificationObject[contributionType])) },
|
|
82
61
|
react_1.default.createElement(material_1.Typography, { component: "div", color: "inherit", className: classes.flagText },
|
|
83
62
|
react_1.default.createElement(react_intl_1.FormattedMessage, { id: `ui.notification.kindlyNoticeFlag.kindlyNoticeFlagSnippet`, defaultMessage: `ui.notification.kindlyNoticeFlag.kindlyNoticeFlagSnippet` })))) : (react_1.default.createElement(material_1.Typography, { component: "div", color: "inherit", className: classes.flagText }, intl.formatMessage(messages[(0, utils_1.camelCase)(notificationObject.type)], { b: (...chunks) => react_1.default.createElement("strong", null, chunks) })))), secondary: (template === types_1.SCNotificationObjectTemplateType.DETAIL || template === types_1.SCNotificationObjectTemplateType.SNIPPET) && (react_1.default.createElement(DateTimeAgo_1.default, { date: notificationObject.active_at, className: classes.activeAt })), footer: !isSnippetTemplate && (react_1.default.createElement(material_1.Box, { className: classes.contributionWrap },
|
|
@@ -14,7 +14,7 @@ const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
|
14
14
|
const types_1 = require("../../../types");
|
|
15
15
|
const system_1 = require("@mui/system");
|
|
16
16
|
const NotificationItem_1 = tslib_1.__importDefault(require("../../../shared/NotificationItem"));
|
|
17
|
-
const
|
|
17
|
+
const constants_1 = require("../constants");
|
|
18
18
|
const messages = (0, react_intl_1.defineMessages)({
|
|
19
19
|
youWrote: {
|
|
20
20
|
id: 'ui.notification.kindlyNoticeFor.youWrote',
|
|
@@ -41,41 +41,19 @@ const messages = (0, react_intl_1.defineMessages)({
|
|
|
41
41
|
defaultMessage: 'ui.notification.kindlyNoticeFor.kindlyNoticeOfftopic'
|
|
42
42
|
}
|
|
43
43
|
});
|
|
44
|
-
const PREFIX = 'SCKindlyNoticeForNotification';
|
|
45
44
|
const classes = {
|
|
46
|
-
root: `${PREFIX}-root`,
|
|
47
|
-
flagIcon: `${PREFIX}-flag-icon`,
|
|
48
|
-
flagText: `${PREFIX}-flag-text`,
|
|
49
|
-
activeAt: `${PREFIX}-active-at`,
|
|
50
|
-
contributionWrap: `${PREFIX}-contribution-wrap`,
|
|
51
|
-
contributionYouWroteLabel: `${PREFIX}-contribution-you-wrote-label`,
|
|
52
|
-
contributionText: `${PREFIX}-contribution-text`
|
|
45
|
+
root: `${constants_1.PREFIX}-kindly-notice-for-root`,
|
|
46
|
+
flagIcon: `${constants_1.PREFIX}-flag-icon`,
|
|
47
|
+
flagText: `${constants_1.PREFIX}-flag-text`,
|
|
48
|
+
activeAt: `${constants_1.PREFIX}-active-at`,
|
|
49
|
+
contributionWrap: `${constants_1.PREFIX}-contribution-wrap`,
|
|
50
|
+
contributionYouWroteLabel: `${constants_1.PREFIX}-contribution-you-wrote-label`,
|
|
51
|
+
contributionText: `${constants_1.PREFIX}-contribution-text`
|
|
53
52
|
};
|
|
54
53
|
const Root = (0, styles_1.styled)(NotificationItem_1.default, {
|
|
55
|
-
name: PREFIX,
|
|
56
|
-
slot: '
|
|
57
|
-
|
|
58
|
-
})(({ theme }) => ({
|
|
59
|
-
width: '100%',
|
|
60
|
-
[`& .${classes.flagIcon}`]: {
|
|
61
|
-
backgroundColor: colors_1.red[500],
|
|
62
|
-
color: '#FFF'
|
|
63
|
-
},
|
|
64
|
-
[`& .${classes.flagText}`]: {
|
|
65
|
-
color: theme.palette.text.primary
|
|
66
|
-
},
|
|
67
|
-
[`& .${classes.contributionWrap}`]: {
|
|
68
|
-
padding: `${theme.spacing(2)} ${theme.spacing(2)}`,
|
|
69
|
-
textOverflow: 'ellipsis',
|
|
70
|
-
display: 'inline',
|
|
71
|
-
overflow: 'hidden'
|
|
72
|
-
},
|
|
73
|
-
[`& .${classes.contributionText}`]: {
|
|
74
|
-
'&:hover': {
|
|
75
|
-
textDecoration: 'underline'
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
}));
|
|
54
|
+
name: constants_1.PREFIX,
|
|
55
|
+
slot: 'KindlyNoticeForRoot'
|
|
56
|
+
})(() => ({}));
|
|
79
57
|
/**
|
|
80
58
|
* This component render the content of the notification of type kindly notice for
|
|
81
59
|
* @param inProps
|
|
@@ -85,7 +63,7 @@ function KindlyNoticeForNotification(inProps) {
|
|
|
85
63
|
// PROPS
|
|
86
64
|
const props = (0, system_1.useThemeProps)({
|
|
87
65
|
props: inProps,
|
|
88
|
-
name: PREFIX
|
|
66
|
+
name: constants_1.PREFIX
|
|
89
67
|
});
|
|
90
68
|
const { notificationObject, id = `n_${props.notificationObject['sid']}`, className, template = types_1.SCNotificationObjectTemplateType.DETAIL } = props, rest = tslib_1.__rest(props, ["notificationObject", "id", "className", "template"]);
|
|
91
69
|
// ROUTING
|
|
@@ -98,7 +76,7 @@ function KindlyNoticeForNotification(inProps) {
|
|
|
98
76
|
/**
|
|
99
77
|
* Renders root object
|
|
100
78
|
*/
|
|
101
|
-
return (react_1.default.createElement(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: react_1.default.createElement(material_1.Avatar, { variant: "circular", classes: { root: classes.flagIcon } },
|
|
79
|
+
return (react_1.default.createElement(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${constants_1.PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: react_1.default.createElement(material_1.Avatar, { variant: "circular", classes: { root: classes.flagIcon } },
|
|
102
80
|
react_1.default.createElement(Icon_1.default, null, "outlined_flag")), primary: react_1.default.createElement(react_1.default.Fragment, null, isSnippetTemplate ? (react_1.default.createElement(react_core_1.Link, { to: scRoutingContext.url(react_core_1.SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(notificationObject[contributionType])) },
|
|
103
81
|
react_1.default.createElement(material_1.Typography, { component: "div", color: "inherit", className: classes.flagText },
|
|
104
82
|
react_1.default.createElement(react_intl_1.FormattedMessage, { id: `ui.notification.kindlyNoticeFor.${(0, utils_1.camelCase)(notificationObject.type)}Snippet`, defaultMessage: `ui.notification.kindlyNoticeFor.${(0, utils_1.camelCase)(notificationObject.type)}Snippet` })))) : (react_1.default.createElement(material_1.Typography, { component: "div", color: "inherit", className: classes.flagText }, intl.formatMessage(messages[(0, utils_1.camelCase)(notificationObject.type)], { b: (...chunks) => react_1.default.createElement("strong", null, chunks) })))), secondary: (template === types_1.SCNotificationObjectTemplateType.DETAIL || template === types_1.SCNotificationObjectTemplateType.SNIPPET) && (react_1.default.createElement(DateTimeAgo_1.default, { date: notificationObject.active_at, className: classes.activeAt })), footer: isSnippetTemplate ? null : (react_1.default.createElement(react_1.default.Fragment, null,
|
|
@@ -14,44 +14,25 @@ const system_1 = require("@mui/system");
|
|
|
14
14
|
const NotificationItem_1 = tslib_1.__importDefault(require("../../../shared/NotificationItem"));
|
|
15
15
|
const UserDeletedSnackBar_1 = tslib_1.__importDefault(require("../../../shared/UserDeletedSnackBar"));
|
|
16
16
|
const UserAvatar_1 = tslib_1.__importDefault(require("../../../shared/UserAvatar"));
|
|
17
|
+
const constants_1 = require("../constants");
|
|
17
18
|
const messages = (0, react_intl_1.defineMessages)({
|
|
18
19
|
quotedYouOn: {
|
|
19
20
|
id: 'ui.notification.mention.quotedYou',
|
|
20
21
|
defaultMessage: 'ui.notification.mention.quotedYou'
|
|
21
22
|
}
|
|
22
23
|
});
|
|
23
|
-
const PREFIX = 'SCNotificationMention';
|
|
24
24
|
const classes = {
|
|
25
|
-
root: `${PREFIX}-root`,
|
|
26
|
-
avatar: `${PREFIX}-avatar`,
|
|
27
|
-
username: `${PREFIX}-username`,
|
|
28
|
-
mentionText: `${PREFIX}-mention-text`,
|
|
29
|
-
activeAt: `${PREFIX}-active-at`,
|
|
30
|
-
contributionText: `${PREFIX}-contribution-text`
|
|
25
|
+
root: `${constants_1.PREFIX}-mention-root`,
|
|
26
|
+
avatar: `${constants_1.PREFIX}-avatar`,
|
|
27
|
+
username: `${constants_1.PREFIX}-username`,
|
|
28
|
+
mentionText: `${constants_1.PREFIX}-mention-text`,
|
|
29
|
+
activeAt: `${constants_1.PREFIX}-active-at`,
|
|
30
|
+
contributionText: `${constants_1.PREFIX}-contribution-text`
|
|
31
31
|
};
|
|
32
32
|
const Root = (0, styles_1.styled)(NotificationItem_1.default, {
|
|
33
|
-
name: PREFIX,
|
|
34
|
-
slot: '
|
|
35
|
-
|
|
36
|
-
})(({ theme }) => ({
|
|
37
|
-
[`& .${classes.username}`]: {
|
|
38
|
-
fontWeight: 700,
|
|
39
|
-
'&:hover': {
|
|
40
|
-
textDecoration: 'underline'
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
[`& .${classes.mentionText}`]: {
|
|
44
|
-
color: theme.palette.text.primary
|
|
45
|
-
},
|
|
46
|
-
[`& .${classes.contributionText}`]: {
|
|
47
|
-
'&:hover': {
|
|
48
|
-
textDecoration: 'underline'
|
|
49
|
-
},
|
|
50
|
-
textOverflow: 'ellipsis',
|
|
51
|
-
display: 'inline',
|
|
52
|
-
overflow: 'hidden'
|
|
53
|
-
}
|
|
54
|
-
}));
|
|
33
|
+
name: constants_1.PREFIX,
|
|
34
|
+
slot: 'MentionRoot'
|
|
35
|
+
})(() => ({}));
|
|
55
36
|
/**
|
|
56
37
|
* This component render the content of the notification of type mention
|
|
57
38
|
* @param inProps
|
|
@@ -61,7 +42,7 @@ function MentionNotification(inProps) {
|
|
|
61
42
|
// PROPS
|
|
62
43
|
const props = (0, system_1.useThemeProps)({
|
|
63
44
|
props: inProps,
|
|
64
|
-
name: PREFIX
|
|
45
|
+
name: constants_1.PREFIX
|
|
65
46
|
});
|
|
66
47
|
const { notificationObject, id = `n_${props.notificationObject['sid']}`, className, template = types_1.SCNotificationObjectTemplateType.DETAIL } = props, rest = tslib_1.__rest(props, ["notificationObject", "id", "className", "template"]);
|
|
67
48
|
// CONTEXT
|
|
@@ -77,7 +58,7 @@ function MentionNotification(inProps) {
|
|
|
77
58
|
* Renders root object
|
|
78
59
|
*/
|
|
79
60
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
80
|
-
react_1.default.createElement(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: react_1.default.createElement(react_core_1.Link, Object.assign({}, (!notificationObject[objectType].author.deleted && {
|
|
61
|
+
react_1.default.createElement(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${constants_1.PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: react_1.default.createElement(react_core_1.Link, Object.assign({}, (!notificationObject[objectType].author.deleted && {
|
|
81
62
|
to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject[objectType].author)
|
|
82
63
|
}), { onClick: notificationObject[objectType].author.deleted ? () => setOpenAlert(true) : null }),
|
|
83
64
|
react_1.default.createElement(UserAvatar_1.default, { hide: !notificationObject[objectType].author.community_badge, smaller: true },
|
|
@@ -34,31 +34,30 @@ const utils_1 = require("@selfcommunity/utils");
|
|
|
34
34
|
const types_1 = require("@selfcommunity/types");
|
|
35
35
|
const UserDeletedSnackBar_1 = tslib_1.__importDefault(require("../../shared/UserDeletedSnackBar"));
|
|
36
36
|
const UserAvatar_1 = tslib_1.__importDefault(require("../../shared/UserAvatar"));
|
|
37
|
+
const constants_1 = require("./constants");
|
|
37
38
|
const messages = (0, react_intl_1.defineMessages)({
|
|
38
39
|
receivePrivateMessage: {
|
|
39
40
|
id: 'ui.notification.receivePrivateMessage',
|
|
40
41
|
defaultMessage: 'ui.notification.receivePrivateMessage'
|
|
41
42
|
}
|
|
42
43
|
});
|
|
43
|
-
const PREFIX = 'SCNotification';
|
|
44
44
|
const classes = {
|
|
45
|
-
root: `${PREFIX}-root`,
|
|
46
|
-
header: `${PREFIX}-header`,
|
|
47
|
-
avatar: `${PREFIX}-avatar`,
|
|
48
|
-
title: `${PREFIX}-title`,
|
|
49
|
-
image: `${PREFIX}-image`,
|
|
50
|
-
username: `${PREFIX}-username`,
|
|
51
|
-
content: `${PREFIX}-content`,
|
|
52
|
-
unCollapsed: `${PREFIX}-uncollapsed`,
|
|
53
|
-
collapsed: `${PREFIX}-collapsed`,
|
|
54
|
-
stopButton: `${PREFIX}-stop-button`,
|
|
55
|
-
showOtherAggregated: `${PREFIX}-show-other-aggregated`
|
|
45
|
+
root: `${constants_1.PREFIX}-root`,
|
|
46
|
+
header: `${constants_1.PREFIX}-header`,
|
|
47
|
+
avatar: `${constants_1.PREFIX}-avatar`,
|
|
48
|
+
title: `${constants_1.PREFIX}-title`,
|
|
49
|
+
image: `${constants_1.PREFIX}-image`,
|
|
50
|
+
username: `${constants_1.PREFIX}-username`,
|
|
51
|
+
content: `${constants_1.PREFIX}-content`,
|
|
52
|
+
unCollapsed: `${constants_1.PREFIX}-uncollapsed`,
|
|
53
|
+
collapsed: `${constants_1.PREFIX}-collapsed`,
|
|
54
|
+
stopButton: `${constants_1.PREFIX}-stop-button`,
|
|
55
|
+
showOtherAggregated: `${constants_1.PREFIX}-show-other-aggregated`
|
|
56
56
|
};
|
|
57
57
|
const Root = (0, styles_1.styled)(Widget_1.default, {
|
|
58
|
-
name: PREFIX,
|
|
59
|
-
slot: 'Root'
|
|
60
|
-
|
|
61
|
-
})(({ theme }) => ({}));
|
|
58
|
+
name: constants_1.PREFIX,
|
|
59
|
+
slot: 'Root'
|
|
60
|
+
})(() => ({}));
|
|
62
61
|
/**
|
|
63
62
|
*
|
|
64
63
|
> API documentation for the Community-JS UserNotification component. Learn about the available props and the CSS API.
|
|
@@ -96,7 +95,7 @@ function UserNotification(inProps) {
|
|
|
96
95
|
// PROPS
|
|
97
96
|
const props = (0, system_1.useThemeProps)({
|
|
98
97
|
props: inProps,
|
|
99
|
-
name: PREFIX
|
|
98
|
+
name: constants_1.PREFIX
|
|
100
99
|
});
|
|
101
100
|
const { id = `notification_${props.notificationObject.sid}`, className, notificationObject, handleCustomNotification, showMaxAggregated = 2, collapsedOtherAggregated = true, onStateChange, onHeightChange } = props, rest = tslib_1.__rest(props, ["id", "className", "notificationObject", "handleCustomNotification", "showMaxAggregated", "collapsedOtherAggregated", "onStateChange", "onHeightChange"]);
|
|
102
101
|
// ROUTING
|
|
@@ -14,72 +14,28 @@ const NotificationItem_1 = tslib_1.__importDefault(require("../../../shared/Noti
|
|
|
14
14
|
const lab_1 = require("@mui/lab");
|
|
15
15
|
const UserDeletedSnackBar_1 = tslib_1.__importDefault(require("../../../shared/UserDeletedSnackBar"));
|
|
16
16
|
const UserAvatar_1 = tslib_1.__importDefault(require("../../../shared/UserAvatar"));
|
|
17
|
+
const constants_1 = require("../constants");
|
|
17
18
|
const messages = (0, react_intl_1.defineMessages)({
|
|
18
19
|
receivePrivateMessage: {
|
|
19
20
|
id: 'ui.notification.receivePrivateMessage',
|
|
20
21
|
defaultMessage: 'ui.notification.receivePrivateMessage'
|
|
21
22
|
}
|
|
22
23
|
});
|
|
23
|
-
const PREFIX = 'SCNotificationPrivateMessage';
|
|
24
24
|
const classes = {
|
|
25
|
-
root: `${PREFIX}-root`,
|
|
26
|
-
avatar: `${PREFIX}-avatar`,
|
|
27
|
-
actions: `${PREFIX}-actions`,
|
|
28
|
-
replyButton: `${PREFIX}-reply-button`,
|
|
29
|
-
activeAt: `${PREFIX}-active-at`,
|
|
30
|
-
messageLabel: `${PREFIX}-message-label`,
|
|
31
|
-
username: `${PREFIX}-username`,
|
|
32
|
-
messageWrap: `${PREFIX}-message-wrap`,
|
|
33
|
-
message: `${PREFIX}-message`
|
|
25
|
+
root: `${constants_1.PREFIX}-private-message-root`,
|
|
26
|
+
avatar: `${constants_1.PREFIX}-avatar`,
|
|
27
|
+
actions: `${constants_1.PREFIX}-actions`,
|
|
28
|
+
replyButton: `${constants_1.PREFIX}-reply-button`,
|
|
29
|
+
activeAt: `${constants_1.PREFIX}-active-at`,
|
|
30
|
+
messageLabel: `${constants_1.PREFIX}-message-label`,
|
|
31
|
+
username: `${constants_1.PREFIX}-username`,
|
|
32
|
+
messageWrap: `${constants_1.PREFIX}-message-wrap`,
|
|
33
|
+
message: `${constants_1.PREFIX}-message`
|
|
34
34
|
};
|
|
35
35
|
const Root = (0, styles_1.styled)(NotificationItem_1.default, {
|
|
36
|
-
name: PREFIX,
|
|
37
|
-
slot: '
|
|
38
|
-
|
|
39
|
-
})(({ theme }) => ({
|
|
40
|
-
[`& .${classes.username}`]: {
|
|
41
|
-
display: 'inline',
|
|
42
|
-
fontWeight: 700,
|
|
43
|
-
'&:hover': {
|
|
44
|
-
textDecoration: 'underline'
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
[`& .${classes.messageLabel}`]: {
|
|
48
|
-
color: theme.palette.text.primary
|
|
49
|
-
},
|
|
50
|
-
[`& .${classes.messageWrap}`]: {
|
|
51
|
-
textOverflow: 'ellipsis',
|
|
52
|
-
overflow: 'hidden',
|
|
53
|
-
WebkitLineClamp: '2',
|
|
54
|
-
lineClamp: 2,
|
|
55
|
-
WebkitBoxOrient: 'vertical',
|
|
56
|
-
'& p': {
|
|
57
|
-
margin: 0
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
[`& .${classes.message}`]: {
|
|
61
|
-
height: 20,
|
|
62
|
-
overflowY: 'hidden',
|
|
63
|
-
textOverflow: 'ellipsis',
|
|
64
|
-
display: 'inline',
|
|
65
|
-
overflow: 'hidden',
|
|
66
|
-
'&:hover': {
|
|
67
|
-
textDecoration: 'underline'
|
|
68
|
-
},
|
|
69
|
-
'& > p': {
|
|
70
|
-
overflowY: 'hidden',
|
|
71
|
-
textOverflow: 'ellipsis',
|
|
72
|
-
display: '-webkit-box',
|
|
73
|
-
WebkitLineClamp: '2',
|
|
74
|
-
lineClamp: 2,
|
|
75
|
-
WebkitBoxOrient: 'vertical'
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
|
-
[`& .${classes.actions}`]: {
|
|
79
|
-
fontSize: '13px',
|
|
80
|
-
maxWidth: '40%'
|
|
81
|
-
}
|
|
82
|
-
}));
|
|
36
|
+
name: constants_1.PREFIX,
|
|
37
|
+
slot: 'PrivateMessageRoot'
|
|
38
|
+
})(() => ({}));
|
|
83
39
|
/**
|
|
84
40
|
* This component render the content of the notification of type private message
|
|
85
41
|
* @param inProps
|
|
@@ -89,7 +45,7 @@ function PrivateMessageNotification(inProps) {
|
|
|
89
45
|
// PROPS
|
|
90
46
|
const props = (0, system_1.useThemeProps)({
|
|
91
47
|
props: inProps,
|
|
92
|
-
name: PREFIX
|
|
48
|
+
name: constants_1.PREFIX
|
|
93
49
|
});
|
|
94
50
|
const { notificationObject, id = `n_${props.notificationObject['sid']}`, className, template = types_1.SCNotificationObjectTemplateType.DETAIL } = props, rest = tslib_1.__rest(props, ["notificationObject", "id", "className", "template"]);
|
|
95
51
|
// CONTEXT
|
|
@@ -127,7 +83,7 @@ function PrivateMessageNotification(inProps) {
|
|
|
127
83
|
});
|
|
128
84
|
// RENDER
|
|
129
85
|
if (isSnippetTemplate || isToastTemplate) {
|
|
130
|
-
return (react_1.default.createElement(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: react_1.default.createElement(react_core_1.Link, Object.assign({}, (!notificationObject.message.sender.deleted && {
|
|
86
|
+
return (react_1.default.createElement(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${constants_1.PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: react_1.default.createElement(react_core_1.Link, Object.assign({}, (!notificationObject.message.sender.deleted && {
|
|
131
87
|
to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.message.sender)
|
|
132
88
|
}), { onClick: notificationObject.message.sender.deleted ? () => setOpenAlert(true) : null }),
|
|
133
89
|
react_1.default.createElement(UserAvatar_1.default, { hide: !notificationObject.message.sender.community_badge, smaller: true },
|
|
@@ -157,7 +113,7 @@ function PrivateMessageNotification(inProps) {
|
|
|
157
113
|
react_1.default.createElement(react_core_1.Link, { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PRIVATE_MESSAGES_ROUTE_NAME, notificationObject.message.sender) }, scUserContext.user && follower ? (react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.userToastNotifications.replyMessage", defaultMessage: 'ui.userToastNotifications.replyMessage' })) : (react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.userToastNotifications.viewMessage", defaultMessage: 'ui.userToastNotifications.viewMessage' })))))) }, rest)));
|
|
158
114
|
}
|
|
159
115
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
160
|
-
react_1.default.createElement(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, actions: react_1.default.createElement(material_1.Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 },
|
|
116
|
+
react_1.default.createElement(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${constants_1.PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, actions: react_1.default.createElement(material_1.Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 },
|
|
161
117
|
react_1.default.createElement(DateTimeAgo_1.default, { date: notificationObject.active_at, className: classes.activeAt }),
|
|
162
118
|
react_1.default.createElement(lab_1.LoadingButton, { color: 'primary', variant: "outlined", size: "small", classes: { root: classes.replyButton }, component: react_core_1.Link, loading: notificationObject.message.sender.deleted
|
|
163
119
|
? null
|
|
@@ -9,13 +9,13 @@
|
|
|
9
9
|
|
|
10
10
|
#### Component Name
|
|
11
11
|
|
|
12
|
-
The name `
|
|
12
|
+
The name `SCNotification-skeleton-root` can be used when providing style overrides in the theme.
|
|
13
13
|
|
|
14
14
|
#### CSS
|
|
15
15
|
|
|
16
16
|
|Rule Name|Global class|Description|
|
|
17
17
|
|---|---|---|
|
|
18
|
-
|root|.
|
|
18
|
+
|root|.SCNotification-skeleton-root|Styles applied to the root element.|
|
|
19
19
|
*
|
|
20
20
|
*/
|
|
21
21
|
export default function NotificationSkeleton(props: any): JSX.Element;
|
|
@@ -7,13 +7,14 @@ const styles_1 = require("@mui/material/styles");
|
|
|
7
7
|
const material_1 = require("@mui/material");
|
|
8
8
|
const Skeleton_1 = tslib_1.__importDefault(require("@mui/material/Skeleton"));
|
|
9
9
|
const Widget_1 = tslib_1.__importDefault(require("../Widget"));
|
|
10
|
-
const
|
|
10
|
+
const constants_1 = require("./constants");
|
|
11
11
|
const classes = {
|
|
12
|
-
root: `${PREFIX}-root`
|
|
12
|
+
root: `${constants_1.PREFIX}-skeleton-root`
|
|
13
13
|
};
|
|
14
|
-
const Root = (0, styles_1.styled)(Widget_1.default
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
const Root = (0, styles_1.styled)(Widget_1.default, {
|
|
15
|
+
name: constants_1.PREFIX,
|
|
16
|
+
slot: 'SkeletonRoot'
|
|
17
|
+
})(() => ({}));
|
|
17
18
|
/**
|
|
18
19
|
* > API documentation for the Community-JS Notification Skeleton component. Learn about the available props and the CSS API.
|
|
19
20
|
|
|
@@ -25,13 +26,13 @@ const Root = (0, styles_1.styled)(Widget_1.default)(({ theme }) => ({
|
|
|
25
26
|
|
|
26
27
|
#### Component Name
|
|
27
28
|
|
|
28
|
-
The name `
|
|
29
|
+
The name `SCNotification-skeleton-root` can be used when providing style overrides in the theme.
|
|
29
30
|
|
|
30
31
|
#### CSS
|
|
31
32
|
|
|
32
33
|
|Rule Name|Global class|Description|
|
|
33
34
|
|---|---|---|
|
|
34
|
-
|root|.
|
|
35
|
+
|root|.SCNotification-skeleton-root|Styles applied to the root element.|
|
|
35
36
|
*
|
|
36
37
|
*/
|
|
37
38
|
function NotificationSkeleton(props) {
|
|
@@ -5,7 +5,6 @@ const react_1 = tslib_1.__importDefault(require("react"));
|
|
|
5
5
|
const styles_1 = require("@mui/material/styles");
|
|
6
6
|
const material_1 = require("@mui/material");
|
|
7
7
|
const Icon_1 = tslib_1.__importDefault(require("@mui/material/Icon"));
|
|
8
|
-
const colors_1 = require("@mui/material/colors");
|
|
9
8
|
const react_core_1 = require("@selfcommunity/react-core");
|
|
10
9
|
const react_intl_1 = require("react-intl");
|
|
11
10
|
const contribution_1 = require("../../../utils/contribution");
|
|
@@ -14,41 +13,20 @@ const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
|
14
13
|
const types_1 = require("../../../types");
|
|
15
14
|
const system_1 = require("@mui/system");
|
|
16
15
|
const NotificationItem_1 = tslib_1.__importDefault(require("../../../shared/NotificationItem"));
|
|
17
|
-
const
|
|
16
|
+
const constants_1 = require("../constants");
|
|
18
17
|
const classes = {
|
|
19
|
-
root: `${PREFIX}-root`,
|
|
20
|
-
undeletedIcon: `${PREFIX}-undeleted-icon`,
|
|
21
|
-
undeletedText: `${PREFIX}-undeleted-text`,
|
|
22
|
-
activeAt: `${PREFIX}-active-at`,
|
|
23
|
-
contributionWrap: `${PREFIX}-contribution-wrap`,
|
|
24
|
-
contributionYouWroteLabel: `${PREFIX}-contribution-you-wrote-label`,
|
|
25
|
-
contributionText: `${PREFIX}-contribution-text`
|
|
18
|
+
root: `${constants_1.PREFIX}-undeleted-for-root`,
|
|
19
|
+
undeletedIcon: `${constants_1.PREFIX}-undeleted-icon`,
|
|
20
|
+
undeletedText: `${constants_1.PREFIX}-undeleted-text`,
|
|
21
|
+
activeAt: `${constants_1.PREFIX}-active-at`,
|
|
22
|
+
contributionWrap: `${constants_1.PREFIX}-contribution-wrap`,
|
|
23
|
+
contributionYouWroteLabel: `${constants_1.PREFIX}-contribution-you-wrote-label`,
|
|
24
|
+
contributionText: `${constants_1.PREFIX}-contribution-text`
|
|
26
25
|
};
|
|
27
26
|
const Root = (0, styles_1.styled)(NotificationItem_1.default, {
|
|
28
|
-
name: PREFIX,
|
|
29
|
-
slot: '
|
|
30
|
-
|
|
31
|
-
})(({ theme }) => ({
|
|
32
|
-
[`& .${classes.undeletedIcon}`]: {
|
|
33
|
-
backgroundColor: colors_1.red[500],
|
|
34
|
-
color: '#FFF'
|
|
35
|
-
},
|
|
36
|
-
[`& .${classes.undeletedText}`]: {
|
|
37
|
-
color: theme.palette.text.primary
|
|
38
|
-
},
|
|
39
|
-
[`& .${classes.contributionWrap}`]: {
|
|
40
|
-
marginBottom: theme.spacing(1),
|
|
41
|
-
padding: theme.spacing(2),
|
|
42
|
-
textOverflow: 'ellipsis',
|
|
43
|
-
display: 'inline',
|
|
44
|
-
overflow: 'hidden'
|
|
45
|
-
},
|
|
46
|
-
[`& .${classes.contributionText}`]: {
|
|
47
|
-
'&:hover': {
|
|
48
|
-
textDecoration: 'underline'
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}));
|
|
27
|
+
name: constants_1.PREFIX,
|
|
28
|
+
slot: 'UndeletedForRoot'
|
|
29
|
+
})(() => ({}));
|
|
52
30
|
/**
|
|
53
31
|
* This component render the content of the notification of type undeleted for
|
|
54
32
|
* @param inProps
|
|
@@ -58,7 +36,7 @@ function UndeletedForNotification(inProps) {
|
|
|
58
36
|
// PROPS
|
|
59
37
|
const props = (0, system_1.useThemeProps)({
|
|
60
38
|
props: inProps,
|
|
61
|
-
name: PREFIX
|
|
39
|
+
name: constants_1.PREFIX
|
|
62
40
|
});
|
|
63
41
|
const { notificationObject, id = `n_${props.notificationObject['sid']}`, className, template = types_1.SCNotificationObjectTemplateType.DETAIL } = props, rest = tslib_1.__rest(props, ["notificationObject", "id", "className", "template"]);
|
|
64
42
|
// CONTEXT
|
|
@@ -69,7 +47,7 @@ function UndeletedForNotification(inProps) {
|
|
|
69
47
|
/**
|
|
70
48
|
* Renders root object
|
|
71
49
|
*/
|
|
72
|
-
return (react_1.default.createElement(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: react_1.default.createElement(material_1.Avatar, { variant: "circular", classes: { root: classes.undeletedIcon } },
|
|
50
|
+
return (react_1.default.createElement(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${constants_1.PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: react_1.default.createElement(material_1.Avatar, { variant: "circular", classes: { root: classes.undeletedIcon } },
|
|
73
51
|
react_1.default.createElement(Icon_1.default, null, "outlined_flag")), primary: react_1.default.createElement(react_1.default.Fragment, null, isSnippetTemplate ? (react_1.default.createElement(react_core_1.Link, { to: scRoutingContext.url(react_core_1.SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(notificationObject[contributionType])) },
|
|
74
52
|
react_1.default.createElement(material_1.Typography, { component: "div", color: "inherit", className: classes.undeletedText },
|
|
75
53
|
react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.notification.undeletedFor.restoredContentSnippet", defaultMessage: "ui.notification.undeletedFor.restoredContentSnippet" })))) : (react_1.default.createElement(material_1.Typography, { component: "div", color: "inherit", className: classes.undeletedText },
|