@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
|
@@ -5,20 +5,19 @@ 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 Widget_1 = tslib_1.__importDefault(require("../Widget"));
|
|
8
|
-
const
|
|
8
|
+
const constants_1 = require("./constants");
|
|
9
9
|
const classes = {
|
|
10
|
-
root: `${PREFIX}-root`,
|
|
11
|
-
title: `${PREFIX}-title`,
|
|
12
|
-
content: `${PREFIX}-content`,
|
|
13
|
-
chip: `${PREFIX}-chip`,
|
|
14
|
-
points: `${PREFIX}-points`,
|
|
15
|
-
actions: `${PREFIX}-actions`
|
|
10
|
+
root: `${constants_1.PREFIX}-skeleton-root`,
|
|
11
|
+
title: `${constants_1.PREFIX}-title`,
|
|
12
|
+
content: `${constants_1.PREFIX}-content`,
|
|
13
|
+
chip: `${constants_1.PREFIX}-chip`,
|
|
14
|
+
points: `${constants_1.PREFIX}-points`,
|
|
15
|
+
actions: `${constants_1.PREFIX}-actions`
|
|
16
16
|
};
|
|
17
17
|
const Root = (0, styles_1.styled)(Widget_1.default, {
|
|
18
|
-
name: PREFIX,
|
|
19
|
-
slot: '
|
|
20
|
-
|
|
21
|
-
})(({ theme }) => ({}));
|
|
18
|
+
name: constants_1.PREFIX,
|
|
19
|
+
slot: 'SkeletonRoot'
|
|
20
|
+
})(() => ({}));
|
|
22
21
|
/**
|
|
23
22
|
* > API documentation for the Community-JS Loyalty Program Widget Skeleton component. Learn about the available props and the CSS API.
|
|
24
23
|
|
|
@@ -30,18 +29,18 @@ const Root = (0, styles_1.styled)(Widget_1.default, {
|
|
|
30
29
|
|
|
31
30
|
#### Component Name
|
|
32
31
|
|
|
33
|
-
The name `
|
|
32
|
+
The name `SCLoyaltyProgramWidget-skeleton-root` can be used when providing style overrides in the theme.
|
|
34
33
|
|
|
35
34
|
#### CSS
|
|
36
35
|
|
|
37
36
|
|Rule Name|Global class|Description|
|
|
38
37
|
|---|---|---|
|
|
39
|
-
|root|.
|
|
40
|
-
|title|.
|
|
41
|
-
|content|.
|
|
42
|
-
|chip|.
|
|
43
|
-
|points|.
|
|
44
|
-
|actions|.
|
|
38
|
+
|root|.SCLoyaltyProgramWidget-skeleton-root|Styles applied to the root element.|
|
|
39
|
+
|title|.SCLoyaltyProgramWidget-title|Styles applied to the title element.|
|
|
40
|
+
|content|.SCLoyaltyProgramWidget-content|Styles applied to the card content section.|
|
|
41
|
+
|chip|.SCLoyaltyProgramWidget-chip|Styles applied to the card chip element.|
|
|
42
|
+
|points|.SCLoyaltyProgramWidget-points|Styles applied to the card actions points element.|
|
|
43
|
+
|actions|.SCLoyaltyProgramWidget-actions|Styles applied to the action section.|
|
|
45
44
|
*
|
|
46
45
|
*/
|
|
47
46
|
function LoyaltyProgramWidgetSkeleton() {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PREFIX = "SCLoyaltyProgramWidget";
|
|
@@ -84,6 +84,7 @@ export interface NavigationToolbarProps extends ToolbarProps {
|
|
|
84
84
|
|composer|.SCNavigationToolbar-composer|Styles applied to the composer component|
|
|
85
85
|
|profile|.SCNavigationToolbar-profile|Styles applied to the profile button|
|
|
86
86
|
|notification|.SCNavigationToolbar-notification|Styles applied to the notification button|
|
|
87
|
+
|notificationsMenu|.SCNavigationToolbar-notifications-menu|Styles applied to the notifications menu|
|
|
87
88
|
|messages|.SCNavigationToolbar-messages|Styles applied to the messages button|
|
|
88
89
|
|settings|.SCNavigationToolbar-settings|Styles applied to the settings button|
|
|
89
90
|
|active|.SCNavigationToolbar-active|Styles applied to the active button on navigation|
|
|
@@ -15,26 +15,26 @@ const ComposerIconButton_1 = tslib_1.__importDefault(require("../ComposerIconBut
|
|
|
15
15
|
const types_1 = require("@selfcommunity/types");
|
|
16
16
|
const react_core_1 = require("@selfcommunity/react-core");
|
|
17
17
|
const NavigationMenuIconButton_1 = tslib_1.__importDefault(require("../NavigationMenuIconButton"));
|
|
18
|
-
const
|
|
18
|
+
const constants_1 = require("./constants");
|
|
19
19
|
const classes = {
|
|
20
|
-
root: `${PREFIX}-root`,
|
|
21
|
-
logo: `${PREFIX}-logo`,
|
|
22
|
-
register: `${PREFIX}-register`,
|
|
23
|
-
navigation: `${PREFIX}-navigation`,
|
|
24
|
-
home: `${PREFIX}-home`,
|
|
25
|
-
explore: `${PREFIX}-explore`,
|
|
26
|
-
search: `${PREFIX}-search`,
|
|
27
|
-
composer: `${PREFIX}-composer`,
|
|
28
|
-
profile: `${PREFIX}-profile`,
|
|
29
|
-
notification: `${PREFIX}-notification`,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
20
|
+
root: `${constants_1.PREFIX}-root`,
|
|
21
|
+
logo: `${constants_1.PREFIX}-logo`,
|
|
22
|
+
register: `${constants_1.PREFIX}-register`,
|
|
23
|
+
navigation: `${constants_1.PREFIX}-navigation`,
|
|
24
|
+
home: `${constants_1.PREFIX}-home`,
|
|
25
|
+
explore: `${constants_1.PREFIX}-explore`,
|
|
26
|
+
search: `${constants_1.PREFIX}-search`,
|
|
27
|
+
composer: `${constants_1.PREFIX}-composer`,
|
|
28
|
+
profile: `${constants_1.PREFIX}-profile`,
|
|
29
|
+
notification: `${constants_1.PREFIX}-notification`,
|
|
30
|
+
notificationsMenu: `${constants_1.PREFIX}-notifications-menu`,
|
|
31
|
+
messages: `${constants_1.PREFIX}-messages`,
|
|
32
|
+
settings: `${constants_1.PREFIX}-settings`,
|
|
33
|
+
active: `${constants_1.PREFIX}-active`
|
|
33
34
|
};
|
|
34
35
|
const Root = (0, material_1.styled)(material_1.Toolbar, {
|
|
35
|
-
name: PREFIX,
|
|
36
|
-
slot: 'Root'
|
|
37
|
-
overridesResolver: (props, styles) => styles.root
|
|
36
|
+
name: constants_1.PREFIX,
|
|
37
|
+
slot: 'Root'
|
|
38
38
|
})(() => ({}));
|
|
39
39
|
const PREFERENCES = [
|
|
40
40
|
react_core_1.SCPreferences.CONFIGURATIONS_EXPLORE_STREAM_ENABLED,
|
|
@@ -74,6 +74,7 @@ const PREFERENCES = [
|
|
|
74
74
|
|composer|.SCNavigationToolbar-composer|Styles applied to the composer component|
|
|
75
75
|
|profile|.SCNavigationToolbar-profile|Styles applied to the profile button|
|
|
76
76
|
|notification|.SCNavigationToolbar-notification|Styles applied to the notification button|
|
|
77
|
+
|notificationsMenu|.SCNavigationToolbar-notifications-menu|Styles applied to the notifications menu|
|
|
77
78
|
|messages|.SCNavigationToolbar-messages|Styles applied to the messages button|
|
|
78
79
|
|settings|.SCNavigationToolbar-settings|Styles applied to the settings button|
|
|
79
80
|
|active|.SCNavigationToolbar-active|Styles applied to the active button on navigation|
|
|
@@ -85,7 +86,7 @@ function NavigationToolbar(inProps) {
|
|
|
85
86
|
// PROPS
|
|
86
87
|
const props = (0, system_1.useThemeProps)({
|
|
87
88
|
props: inProps,
|
|
88
|
-
name: PREFIX
|
|
89
|
+
name: constants_1.PREFIX
|
|
89
90
|
});
|
|
90
91
|
const { value = '', className = '', disableSearch = false, disableComposer = false, SearchAutocompleteProps = {}, startActions = null, endActions = null, NavigationSettingsIconButtonComponent = NavigationSettingsIconButton_1.default, children = null, NotificationMenuProps = {}, ComposerIconButtonProps = {}, onOpenNotificationMenu, onCloseNotificationMenu } = props, rest = tslib_1.__rest(props, ["value", "className", "disableSearch", "disableComposer", "SearchAutocompleteProps", "startActions", "endActions", "NavigationSettingsIconButtonComponent", "children", "NotificationMenuProps", "ComposerIconButtonProps", "onOpenNotificationMenu", "onCloseNotificationMenu"]);
|
|
91
92
|
// CONTEXT
|
|
@@ -140,7 +141,7 @@ function NavigationToolbar(inProps) {
|
|
|
140
141
|
}), "aria-label": "Notification", onClick: handleOpenNotificationMenu },
|
|
141
142
|
react_1.default.createElement(material_1.Badge, { badgeContent: scUserContext.user.unseen_notification_banners_counter + scUserContext.user.unseen_interactions_counter, color: "secondary" },
|
|
142
143
|
react_1.default.createElement(Icon_1.default, null, "notifications_active"))),
|
|
143
|
-
react_1.default.createElement(NotificationMenu_1.default, Object.assign({ id: "notification-menu", anchorEl: anchorNotification, open: Boolean(anchorNotification), onClose: handleCloseNotificationMenu, onClick: handleCloseNotificationMenu, transformOrigin: { horizontal: 'right', vertical: 'top' }, anchorOrigin: { horizontal: 'right', vertical: 'bottom' } }, NotificationMenuProps))),
|
|
144
|
+
react_1.default.createElement(NotificationMenu_1.default, Object.assign({ className: classes.notificationsMenu, id: "notification-menu", anchorEl: anchorNotification, open: Boolean(anchorNotification), onClose: handleCloseNotificationMenu, onClick: handleCloseNotificationMenu, transformOrigin: { horizontal: 'right', vertical: 'top' }, anchorOrigin: { horizontal: 'right', vertical: 'bottom' } }, NotificationMenuProps))),
|
|
144
145
|
privateMessagingEnabled && (react_1.default.createElement(material_1.IconButton, { className: (0, classnames_1.default)(classes.messages, {
|
|
145
146
|
[classes.active]: value.startsWith(scRoutingContext.url(react_core_1.SCRoutes.USER_PRIVATE_MESSAGES_ROUTE_NAME, {}))
|
|
146
147
|
}), "aria-label": "Messages", to: scRoutingContext.url(react_core_1.SCRoutes.USER_PRIVATE_MESSAGES_ROUTE_NAME, {}), component: react_core_1.Link },
|
|
@@ -7,33 +7,22 @@ const react_intl_1 = require("react-intl");
|
|
|
7
7
|
const react_1 = tslib_1.__importDefault(require("react"));
|
|
8
8
|
const system_1 = require("@mui/system");
|
|
9
9
|
const SnippetNotifications_1 = tslib_1.__importDefault(require("../SnippetNotifications"));
|
|
10
|
-
const
|
|
10
|
+
const constants_1 = require("./constants");
|
|
11
11
|
const classes = {
|
|
12
|
-
root: `${PREFIX}-root`,
|
|
13
|
-
paper: `${PREFIX}-paper`,
|
|
14
|
-
notifications: `${PREFIX}-notifications`,
|
|
15
|
-
link: `${PREFIX}-link`
|
|
12
|
+
root: `${constants_1.PREFIX}-notifications-menu-root`,
|
|
13
|
+
paper: `${constants_1.PREFIX}-paper`,
|
|
14
|
+
notifications: `${constants_1.PREFIX}-notifications`,
|
|
15
|
+
link: `${constants_1.PREFIX}-link`
|
|
16
16
|
};
|
|
17
17
|
const Root = (0, material_1.styled)(material_1.Menu, {
|
|
18
|
-
name: PREFIX,
|
|
19
|
-
slot: '
|
|
20
|
-
|
|
21
|
-
})(({ theme }) => ({
|
|
22
|
-
[`& .${classes.paper}`]: {
|
|
23
|
-
minWidth: 370,
|
|
24
|
-
padding: theme.spacing(2)
|
|
25
|
-
},
|
|
26
|
-
[`& .${classes.link}`]: {
|
|
27
|
-
display: 'block',
|
|
28
|
-
textAlign: 'center',
|
|
29
|
-
margin: theme.spacing(0, 'auto')
|
|
30
|
-
}
|
|
31
|
-
}));
|
|
18
|
+
name: constants_1.PREFIX,
|
|
19
|
+
slot: 'NotificationsMenuRoot'
|
|
20
|
+
})(() => ({}));
|
|
32
21
|
function NotificationMenu(inProps) {
|
|
33
22
|
// PROPS
|
|
34
23
|
const props = (0, system_1.useThemeProps)({
|
|
35
24
|
props: inProps,
|
|
36
|
-
name: PREFIX
|
|
25
|
+
name: constants_1.PREFIX
|
|
37
26
|
});
|
|
38
27
|
const { PaperProps = { className: classes.paper }, MenuListProps = { component: material_1.Box }, SnippetNotificationsProps = {} } = props, rest = tslib_1.__rest(props, ["PaperProps", "MenuListProps", "SnippetNotificationsProps"]);
|
|
39
28
|
// HOOKS
|
|
@@ -9,16 +9,16 @@
|
|
|
9
9
|
|
|
10
10
|
#### Component Name
|
|
11
11
|
|
|
12
|
-
The name `
|
|
12
|
+
The name `SCNavigationToolbar-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|.
|
|
19
|
-
|logo|.
|
|
20
|
-
|navigation|.
|
|
21
|
-
|avatar|.
|
|
18
|
+
|root|.SCNavigationToolbar-skeleton-root|Styles applied to the root element.|
|
|
19
|
+
|logo|.SCNavigationToolbar-logo|Styles applied to the logo element.|
|
|
20
|
+
|navigation|.SCNavigationToolbar-navigation|Styles applied to the navigation element.|
|
|
21
|
+
|avatar|.SCNavigationToolbar-avatar|Styles applied to the avatar element.|
|
|
22
22
|
*
|
|
23
23
|
*/
|
|
24
24
|
export default function NavigationToolbarSkeleton(): JSX.Element;
|
|
@@ -5,18 +5,17 @@ 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 Skeleton_1 = tslib_1.__importDefault(require("@mui/material/Skeleton"));
|
|
8
|
-
const
|
|
8
|
+
const constants_1 = require("./constants");
|
|
9
9
|
const classes = {
|
|
10
|
-
root: `${PREFIX}-root`,
|
|
11
|
-
logo: `${PREFIX}-logo`,
|
|
12
|
-
navigation: `${PREFIX}-navigation`,
|
|
13
|
-
avatar: `${PREFIX}-avatar`
|
|
10
|
+
root: `${constants_1.PREFIX}-skeleton-root`,
|
|
11
|
+
logo: `${constants_1.PREFIX}-logo`,
|
|
12
|
+
navigation: `${constants_1.PREFIX}-navigation`,
|
|
13
|
+
avatar: `${constants_1.PREFIX}-avatar`
|
|
14
14
|
};
|
|
15
15
|
const Root = (0, styles_1.styled)(material_1.Toolbar, {
|
|
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 Navigation Toolbar Skeleton component. Learn about the available props and the CSS API.
|
|
22
21
|
|
|
@@ -28,16 +27,16 @@ const Root = (0, styles_1.styled)(material_1.Toolbar, {
|
|
|
28
27
|
|
|
29
28
|
#### Component Name
|
|
30
29
|
|
|
31
|
-
The name `
|
|
30
|
+
The name `SCNavigationToolbar-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
|
-
|logo|.
|
|
39
|
-
|navigation|.
|
|
40
|
-
|avatar|.
|
|
36
|
+
|root|.SCNavigationToolbar-skeleton-root|Styles applied to the root element.|
|
|
37
|
+
|logo|.SCNavigationToolbar-logo|Styles applied to the logo element.|
|
|
38
|
+
|navigation|.SCNavigationToolbar-navigation|Styles applied to the navigation element.|
|
|
39
|
+
|avatar|.SCNavigationToolbar-avatar|Styles applied to the avatar element.|
|
|
41
40
|
*
|
|
42
41
|
*/
|
|
43
42
|
function NavigationToolbarSkeleton() {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PREFIX = "SCNavigationToolbar";
|
|
@@ -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
|
collapsedForAdvertising: {
|
|
20
20
|
id: 'ui.notification.collapsedFor.collapsedForAdvertising',
|
|
@@ -37,41 +37,19 @@ const messages = (0, react_intl_1.defineMessages)({
|
|
|
37
37
|
defaultMessage: 'ui.notification.collapsedFor.collapsedForOfftopic'
|
|
38
38
|
}
|
|
39
39
|
});
|
|
40
|
-
const PREFIX = 'SCCollapsedForNotification';
|
|
41
40
|
const classes = {
|
|
42
|
-
root: `${PREFIX}-root`,
|
|
43
|
-
flagIcon: `${PREFIX}-flag-icon`,
|
|
44
|
-
flagText: `${PREFIX}-flag-text`,
|
|
45
|
-
activeAt: `${PREFIX}-active-at`,
|
|
46
|
-
contributionWrap: `${PREFIX}-contribution-wrap`,
|
|
47
|
-
contributionYouWroteLabel: `${PREFIX}-contribution-you-wrote-label`,
|
|
48
|
-
contributionText: `${PREFIX}-contribution-text`
|
|
41
|
+
root: `${constants_1.PREFIX}-collapsed-for-root`,
|
|
42
|
+
flagIcon: `${constants_1.PREFIX}-flag-icon`,
|
|
43
|
+
flagText: `${constants_1.PREFIX}-flag-text`,
|
|
44
|
+
activeAt: `${constants_1.PREFIX}-active-at`,
|
|
45
|
+
contributionWrap: `${constants_1.PREFIX}-contribution-wrap`,
|
|
46
|
+
contributionYouWroteLabel: `${constants_1.PREFIX}-contribution-you-wrote-label`,
|
|
47
|
+
contributionText: `${constants_1.PREFIX}-contribution-text`
|
|
49
48
|
};
|
|
50
49
|
const Root = (0, styles_1.styled)(NotificationItem_1.default, {
|
|
51
|
-
name: PREFIX,
|
|
52
|
-
slot: '
|
|
53
|
-
|
|
54
|
-
})(({ theme }) => ({
|
|
55
|
-
width: '100%',
|
|
56
|
-
[`& .${classes.flagIcon}`]: {
|
|
57
|
-
backgroundColor: colors_1.red[500],
|
|
58
|
-
color: '#FFF'
|
|
59
|
-
},
|
|
60
|
-
[`& .${classes.flagText}`]: {
|
|
61
|
-
color: theme.palette.text.primary
|
|
62
|
-
},
|
|
63
|
-
[`& .${classes.contributionWrap}`]: {
|
|
64
|
-
padding: `${theme.spacing(2)} ${theme.spacing(2)}`,
|
|
65
|
-
textOverflow: 'ellipsis',
|
|
66
|
-
display: 'inline',
|
|
67
|
-
overflow: 'hidden'
|
|
68
|
-
},
|
|
69
|
-
[`& .${classes.contributionText}`]: {
|
|
70
|
-
'&:hover': {
|
|
71
|
-
textDecoration: 'underline'
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}));
|
|
50
|
+
name: constants_1.PREFIX,
|
|
51
|
+
slot: 'CollapsedForRoot'
|
|
52
|
+
})(() => ({}));
|
|
75
53
|
/**
|
|
76
54
|
* This component render the content of the notification of type collapsed for
|
|
77
55
|
* @param inProps
|
|
@@ -81,7 +59,7 @@ function CollapsedForNotification(inProps) {
|
|
|
81
59
|
// PROPS
|
|
82
60
|
const props = (0, system_1.useThemeProps)({
|
|
83
61
|
props: inProps,
|
|
84
|
-
name: PREFIX
|
|
62
|
+
name: constants_1.PREFIX
|
|
85
63
|
});
|
|
86
64
|
const { notificationObject, id = `n_${props.notificationObject['sid']}`, template = types_1.SCNotificationObjectTemplateType.DETAIL, className } = props, rest = tslib_1.__rest(props, ["notificationObject", "id", "template", "className"]);
|
|
87
65
|
// ROUTING
|
|
@@ -94,7 +72,7 @@ function CollapsedForNotification(inProps) {
|
|
|
94
72
|
/**
|
|
95
73
|
* Renders root object
|
|
96
74
|
*/
|
|
97
|
-
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 } },
|
|
75
|
+
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 } },
|
|
98
76
|
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])) },
|
|
99
77
|
react_1.default.createElement(material_1.Typography, { component: "div", color: "inherit", className: classes.flagText },
|
|
100
78
|
react_1.default.createElement(react_intl_1.FormattedMessage, { id: `ui.notification.collapsedFor.${(0, utils_1.camelCase)(notificationObject.type)}Snippet`, defaultMessage: `ui.notification.collapsedFor.${(0, utils_1.camelCase)(notificationObject.type)}Snippet` })))) : (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,
|
|
@@ -17,6 +17,7 @@ const NotificationItem_1 = tslib_1.__importDefault(require("../../../shared/Noti
|
|
|
17
17
|
const VoteButton_1 = tslib_1.__importDefault(require("../../VoteButton"));
|
|
18
18
|
const UserDeletedSnackBar_1 = tslib_1.__importDefault(require("../../../shared/UserDeletedSnackBar"));
|
|
19
19
|
const UserAvatar_1 = tslib_1.__importDefault(require("../../../shared/UserAvatar"));
|
|
20
|
+
const constants_1 = require("../constants");
|
|
20
21
|
const messages = (0, react_intl_1.defineMessages)({
|
|
21
22
|
comment: {
|
|
22
23
|
id: 'ui.notification.comment.comment',
|
|
@@ -27,21 +28,19 @@ const messages = (0, react_intl_1.defineMessages)({
|
|
|
27
28
|
defaultMessage: 'ui.notification.comment.nestedComment'
|
|
28
29
|
}
|
|
29
30
|
});
|
|
30
|
-
const PREFIX = 'SCCommentNotification';
|
|
31
31
|
const classes = {
|
|
32
|
-
root: `${PREFIX}-root`,
|
|
33
|
-
avatar: `${PREFIX}-avatar`,
|
|
34
|
-
username: `${PREFIX}-username`,
|
|
35
|
-
voteButton: `${PREFIX}-vote-button`,
|
|
36
|
-
contributionText: `${PREFIX}-contribution-text`,
|
|
37
|
-
activeAt: `${PREFIX}-active-at`,
|
|
38
|
-
bullet: `${PREFIX}-bullet`
|
|
32
|
+
root: `${constants_1.PREFIX}-comment-root`,
|
|
33
|
+
avatar: `${constants_1.PREFIX}-avatar`,
|
|
34
|
+
username: `${constants_1.PREFIX}-username`,
|
|
35
|
+
voteButton: `${constants_1.PREFIX}-vote-button`,
|
|
36
|
+
contributionText: `${constants_1.PREFIX}-contribution-text`,
|
|
37
|
+
activeAt: `${constants_1.PREFIX}-active-at`,
|
|
38
|
+
bullet: `${constants_1.PREFIX}-bullet`
|
|
39
39
|
};
|
|
40
40
|
const Root = (0, styles_1.styled)(NotificationItem_1.default, {
|
|
41
|
-
name: PREFIX,
|
|
42
|
-
slot: '
|
|
43
|
-
|
|
44
|
-
})(({ theme }) => ({}));
|
|
41
|
+
name: constants_1.PREFIX,
|
|
42
|
+
slot: 'CommentRoot'
|
|
43
|
+
})(() => ({}));
|
|
45
44
|
/**
|
|
46
45
|
* This component render the content of the notification of type comment/nested comment
|
|
47
46
|
* @param inProps
|
|
@@ -51,7 +50,7 @@ function CommentNotification(inProps) {
|
|
|
51
50
|
// PROPS
|
|
52
51
|
const props = (0, system_1.useThemeProps)({
|
|
53
52
|
props: inProps,
|
|
54
|
-
name: PREFIX
|
|
53
|
+
name: constants_1.PREFIX
|
|
55
54
|
});
|
|
56
55
|
const { notificationObject, onVote, id = `n_${props.notificationObject['sid']}`, template = types_2.SCNotificationObjectTemplateType.DETAIL, className } = props, rest = tslib_1.__rest(props, ["notificationObject", "onVote", "id", "template", "className"]);
|
|
57
56
|
// STATE
|
|
@@ -68,7 +67,7 @@ function CommentNotification(inProps) {
|
|
|
68
67
|
* Renders root object
|
|
69
68
|
*/
|
|
70
69
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
71
|
-
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.comment.author.deleted && {
|
|
70
|
+
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.comment.author.deleted && {
|
|
72
71
|
to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.comment.author)
|
|
73
72
|
}), { onClick: notificationObject.comment.author.deleted ? () => setOpenAlert(true) : null }),
|
|
74
73
|
react_1.default.createElement(UserAvatar_1.default, { hide: !notificationObject.comment.author.community_badge, smaller: true },
|
|
@@ -17,6 +17,7 @@ const Bullet_1 = tslib_1.__importDefault(require("../../../shared/Bullet"));
|
|
|
17
17
|
const VoteButton_1 = tslib_1.__importDefault(require("../../VoteButton"));
|
|
18
18
|
const UserDeletedSnackBar_1 = tslib_1.__importDefault(require("../../../shared/UserDeletedSnackBar"));
|
|
19
19
|
const UserAvatar_1 = tslib_1.__importDefault(require("../../../shared/UserAvatar"));
|
|
20
|
+
const constants_1 = require("../constants");
|
|
20
21
|
const messages = (0, react_intl_1.defineMessages)({
|
|
21
22
|
postOrStatus: {
|
|
22
23
|
id: 'ui.notification.contribution.newPostOrStatus',
|
|
@@ -35,21 +36,19 @@ const messages = (0, react_intl_1.defineMessages)({
|
|
|
35
36
|
defaultMessage: 'ui.notification.contribution.snippet.discussion'
|
|
36
37
|
}
|
|
37
38
|
});
|
|
38
|
-
const PREFIX = 'SCContributionNotification';
|
|
39
39
|
const classes = {
|
|
40
|
-
root: `${PREFIX}-root`,
|
|
41
|
-
avatar: `${PREFIX}-avatar`,
|
|
42
|
-
username: `${PREFIX}-username`,
|
|
43
|
-
voteButton: `${PREFIX}-vote-button`,
|
|
44
|
-
contributionText: `${PREFIX}-contribution-text`,
|
|
45
|
-
activeAt: `${PREFIX}-active-at`,
|
|
46
|
-
bullet: `${PREFIX}-bullet`
|
|
40
|
+
root: `${constants_1.PREFIX}-contribution-root`,
|
|
41
|
+
avatar: `${constants_1.PREFIX}-avatar`,
|
|
42
|
+
username: `${constants_1.PREFIX}-username`,
|
|
43
|
+
voteButton: `${constants_1.PREFIX}-vote-button`,
|
|
44
|
+
contributionText: `${constants_1.PREFIX}-contribution-text`,
|
|
45
|
+
activeAt: `${constants_1.PREFIX}-active-at`,
|
|
46
|
+
bullet: `${constants_1.PREFIX}-bullet`
|
|
47
47
|
};
|
|
48
48
|
const Root = (0, styles_1.styled)(NotificationItem_1.default, {
|
|
49
|
-
name: PREFIX,
|
|
50
|
-
slot: '
|
|
51
|
-
|
|
52
|
-
})(({ theme }) => ({}));
|
|
49
|
+
name: constants_1.PREFIX,
|
|
50
|
+
slot: 'ContributionRoot'
|
|
51
|
+
})(() => ({}));
|
|
53
52
|
/**
|
|
54
53
|
* This component render the content of the notification of type follow (contribution)
|
|
55
54
|
* @param inProps
|
|
@@ -59,7 +58,7 @@ function ContributionNotification(inProps) {
|
|
|
59
58
|
// PROPS
|
|
60
59
|
const props = (0, system_1.useThemeProps)({
|
|
61
60
|
props: inProps,
|
|
62
|
-
name: PREFIX
|
|
61
|
+
name: constants_1.PREFIX
|
|
63
62
|
});
|
|
64
63
|
const { notificationObject, onVote, id = `n_${props.notificationObject['sid']}`, className, template = types_2.SCNotificationObjectTemplateType.DETAIL } = props, rest = tslib_1.__rest(props, ["notificationObject", "onVote", "id", "className", "template"]);
|
|
65
64
|
// ROUTING
|
|
@@ -78,7 +77,7 @@ function ContributionNotification(inProps) {
|
|
|
78
77
|
* Renders root object
|
|
79
78
|
*/
|
|
80
79
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
81
|
-
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[contributionType].author.deleted && {
|
|
80
|
+
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[contributionType].author.deleted && {
|
|
82
81
|
to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject[contributionType].author)
|
|
83
82
|
}), { onClick: notificationObject[contributionType].author.deleted ? () => setOpenAlert(true) : null }),
|
|
84
83
|
react_1.default.createElement(UserAvatar_1.default, { hide: !notificationObject[contributionType].author.community_badge, smaller: true },
|
|
@@ -14,48 +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
|
contributionFollow: {
|
|
19
20
|
id: 'ui.notification.contributionFollow.follow',
|
|
20
21
|
defaultMessage: 'ui.notification.contributionFollow.follow'
|
|
21
22
|
}
|
|
22
23
|
});
|
|
23
|
-
const PREFIX = 'SCContributionFollowNotification';
|
|
24
24
|
const classes = {
|
|
25
|
-
root: `${PREFIX}-root`,
|
|
26
|
-
avatar: `${PREFIX}-avatar`,
|
|
27
|
-
username: `${PREFIX}-username`,
|
|
28
|
-
followText: `${PREFIX}-follow-text`,
|
|
29
|
-
activeAt: `${PREFIX}-active-at`,
|
|
30
|
-
contributionText: `${PREFIX}-contribution-text`
|
|
25
|
+
root: `${constants_1.PREFIX}-contribution-follow-root`,
|
|
26
|
+
avatar: `${constants_1.PREFIX}-avatar`,
|
|
27
|
+
username: `${constants_1.PREFIX}-username`,
|
|
28
|
+
followText: `${constants_1.PREFIX}-follow-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.followText}`]: {
|
|
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
|
-
'& .MuiIcon-root': {
|
|
55
|
-
fontSize: '18px',
|
|
56
|
-
marginBottom: '0.5px'
|
|
57
|
-
}
|
|
58
|
-
}));
|
|
33
|
+
name: constants_1.PREFIX,
|
|
34
|
+
slot: 'ContributionFollowRoot'
|
|
35
|
+
})(() => ({}));
|
|
59
36
|
/**
|
|
60
37
|
* This component render the content of the notification of type follow (contribution)
|
|
61
38
|
* @param inProps
|
|
@@ -65,7 +42,7 @@ function ContributionFollowNotification(inProps) {
|
|
|
65
42
|
// PROPS
|
|
66
43
|
const props = (0, system_1.useThemeProps)({
|
|
67
44
|
props: inProps,
|
|
68
|
-
name: PREFIX
|
|
45
|
+
name: constants_1.PREFIX
|
|
69
46
|
});
|
|
70
47
|
const { notificationObject, id = `n_${props.notificationObject['sid']}`, className, template = types_1.SCNotificationObjectTemplateType.DETAIL } = props, rest = tslib_1.__rest(props, ["notificationObject", "id", "className", "template"]);
|
|
71
48
|
// CONTEXT
|
|
@@ -80,7 +57,7 @@ function ContributionFollowNotification(inProps) {
|
|
|
80
57
|
* Renders root object
|
|
81
58
|
*/
|
|
82
59
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
83
|
-
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.user.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.user) }), { onClick: notificationObject.user.deleted ? () => setOpenAlert(true) : null }),
|
|
60
|
+
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.user.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.user) }), { onClick: notificationObject.user.deleted ? () => setOpenAlert(true) : null }),
|
|
84
61
|
react_1.default.createElement(UserAvatar_1.default, { hide: !notificationObject.user.community_badge, smaller: true },
|
|
85
62
|
react_1.default.createElement(material_1.Avatar, { alt: notificationObject.user.username, variant: "circular", src: notificationObject.user.avatar, classes: { root: classes.avatar } }))), primary: react_1.default.createElement(material_1.Typography, { component: "span", color: "inherit", className: classes.followText },
|
|
86
63
|
react_1.default.createElement(react_core_1.Link, Object.assign({}, (!notificationObject.user.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.user) }), { onClick: notificationObject.user.deleted ? () => setOpenAlert(true) : null, className: classes.username }), notificationObject.user.username),
|
|
@@ -15,7 +15,7 @@ const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
|
15
15
|
const types_1 = require("../../../types");
|
|
16
16
|
const system_1 = require("@mui/system");
|
|
17
17
|
const NotificationItem_1 = tslib_1.__importDefault(require("../../../shared/NotificationItem"));
|
|
18
|
-
const
|
|
18
|
+
const constants_1 = require("../constants");
|
|
19
19
|
const messages = (0, react_intl_1.defineMessages)({
|
|
20
20
|
deletedForAdvertising: {
|
|
21
21
|
id: 'ui.notification.deletedFor.deletedForAdvertising',
|
|
@@ -38,41 +38,20 @@ const messages = (0, react_intl_1.defineMessages)({
|
|
|
38
38
|
defaultMessage: 'ui.notification.deletedFor.deletedForOfftopic'
|
|
39
39
|
}
|
|
40
40
|
});
|
|
41
|
-
const PREFIX = 'SCDeletedForNotification';
|
|
42
41
|
const classes = {
|
|
43
|
-
root: `${PREFIX}-root`,
|
|
44
|
-
flagIcon: `${PREFIX}-flag-icon`,
|
|
45
|
-
flagText: `${PREFIX}-flag-text`,
|
|
46
|
-
activeAt: `${PREFIX}-active-at`,
|
|
47
|
-
contributionWrap: `${PREFIX}-contribution-wrap`,
|
|
48
|
-
contributionYouWroteLabel: `${PREFIX}-contribution-you-wrote-label`,
|
|
49
|
-
contributionText: `${PREFIX}-contribution-text`
|
|
42
|
+
root: `${constants_1.PREFIX}-deleted-for-root`,
|
|
43
|
+
flagIcon: `${constants_1.PREFIX}-flag-icon`,
|
|
44
|
+
flagText: `${constants_1.PREFIX}-flag-text`,
|
|
45
|
+
activeAt: `${constants_1.PREFIX}-active-at`,
|
|
46
|
+
contributionWrap: `${constants_1.PREFIX}-contribution-wrap`,
|
|
47
|
+
contributionYouWroteLabel: `${constants_1.PREFIX}-contribution-you-wrote-label`,
|
|
48
|
+
contributionText: `${constants_1.PREFIX}-contribution-text`
|
|
50
49
|
};
|
|
51
50
|
const Root = (0, styles_1.styled)(NotificationItem_1.default, {
|
|
52
|
-
name: PREFIX,
|
|
53
|
-
slot: '
|
|
51
|
+
name: constants_1.PREFIX,
|
|
52
|
+
slot: 'DeletedForRoot',
|
|
54
53
|
overridesResolver: (props, styles) => styles.root
|
|
55
|
-
})((
|
|
56
|
-
[`& .${classes.flagIcon}`]: {
|
|
57
|
-
backgroundColor: colors_1.red[500],
|
|
58
|
-
color: '#FFF'
|
|
59
|
-
},
|
|
60
|
-
[`& .${classes.flagText}`]: {
|
|
61
|
-
color: theme.palette.text.primary
|
|
62
|
-
},
|
|
63
|
-
[`& .${classes.contributionWrap}`]: {
|
|
64
|
-
marginBottom: theme.spacing(1),
|
|
65
|
-
padding: theme.spacing(2),
|
|
66
|
-
textOverflow: 'ellipsis',
|
|
67
|
-
display: 'inline',
|
|
68
|
-
overflow: 'hidden'
|
|
69
|
-
},
|
|
70
|
-
[`& .${classes.contributionText}`]: {
|
|
71
|
-
'&:hover': {
|
|
72
|
-
textDecoration: 'underline'
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
}));
|
|
54
|
+
})(() => ({}));
|
|
76
55
|
/**
|
|
77
56
|
* This component render the content of the notification of type deleted for
|
|
78
57
|
* @param inProps
|
|
@@ -82,7 +61,7 @@ function DeletedForNotification(inProps) {
|
|
|
82
61
|
// PROPS
|
|
83
62
|
const props = (0, system_1.useThemeProps)({
|
|
84
63
|
props: inProps,
|
|
85
|
-
name: PREFIX
|
|
64
|
+
name: constants_1.PREFIX
|
|
86
65
|
});
|
|
87
66
|
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"]);
|
|
88
67
|
// ROUTING
|
|
@@ -95,7 +74,7 @@ function DeletedForNotification(inProps) {
|
|
|
95
74
|
/**
|
|
96
75
|
* Renders root object
|
|
97
76
|
*/
|
|
98
|
-
return (react_1.default.createElement(
|
|
77
|
+
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 } },
|
|
99
78
|
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])) },
|
|
100
79
|
react_1.default.createElement(material_1.Typography, { component: "div", color: "inherit", className: classes.flagText },
|
|
101
80
|
react_1.default.createElement(react_intl_1.FormattedMessage, { id: `ui.notification.deletedFor.${(0, utils_1.camelCase)(notificationObject.type)}Snippet`, defaultMessage: `ui.notification.deletedFor.${(0, utils_1.camelCase)(notificationObject.type)}Snippet` })))) : (react_1.default.createElement(react_1.default.Fragment, null,
|