@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
|
@@ -4,12 +4,15 @@ import List from '@mui/material/List';
|
|
|
4
4
|
import { styled } from '@mui/material/styles';
|
|
5
5
|
import { IncubatorSkeleton } from '../Incubator';
|
|
6
6
|
import Widget from '../Widget';
|
|
7
|
-
|
|
7
|
+
import { PREFIX } from './constants';
|
|
8
8
|
const classes = {
|
|
9
|
-
root: `${PREFIX}-root`,
|
|
9
|
+
root: `${PREFIX}-skeleton-root`,
|
|
10
10
|
list: `${PREFIX}-list`
|
|
11
11
|
};
|
|
12
|
-
const Root = styled(Widget
|
|
12
|
+
const Root = styled(Widget, {
|
|
13
|
+
name: PREFIX,
|
|
14
|
+
slot: 'SkeletonRoot'
|
|
15
|
+
})(() => ({}));
|
|
13
16
|
/**
|
|
14
17
|
* > API documentation for the Community-JS Incubator List Skeleton component. Learn about the available props and the CSS API.
|
|
15
18
|
|
|
@@ -21,14 +24,14 @@ const Root = styled(Widget)(({ theme }) => ({}));
|
|
|
21
24
|
|
|
22
25
|
#### Component Name
|
|
23
26
|
|
|
24
|
-
The name `
|
|
27
|
+
The name `SCIncubatorListWidget-skeleton-root` can be used when providing style overrides in the theme.
|
|
25
28
|
|
|
26
29
|
#### CSS
|
|
27
30
|
|
|
28
31
|
|Rule Name|Global class|Description|
|
|
29
32
|
|---|---|---|
|
|
30
|
-
|root|.
|
|
31
|
-
|list|.
|
|
33
|
+
|root|.SCIncubatorListWidget-skeleton-root-root|Styles applied to the root element.|
|
|
34
|
+
|list|.SCIncubatorListWidget-list|Styles applied to the list element.|
|
|
32
35
|
*
|
|
33
36
|
*/
|
|
34
37
|
export default function IncubatorListWidgetSkeleton(props) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PREFIX = "SCIncubatorListWidget";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const PREFIX = 'SCIncubatorListWidget';
|
|
@@ -18,7 +18,7 @@ import Widget from '../Widget';
|
|
|
18
18
|
import IncubatorDetail from '../IncubatorDetail';
|
|
19
19
|
import HiddenPlaceholder from '../../shared/HiddenPlaceholder';
|
|
20
20
|
import { actionWidgetTypes, dataWidgetReducer, stateWidgetInitializer } from '../../utils/widget';
|
|
21
|
-
|
|
21
|
+
import { PREFIX } from './constants';
|
|
22
22
|
const classes = {
|
|
23
23
|
root: `${PREFIX}-root`,
|
|
24
24
|
title: `${PREFIX}-title`,
|
|
@@ -29,14 +29,12 @@ const classes = {
|
|
|
29
29
|
};
|
|
30
30
|
const Root = styled(Widget, {
|
|
31
31
|
name: PREFIX,
|
|
32
|
-
slot: 'Root'
|
|
33
|
-
|
|
34
|
-
})(({ theme }) => ({}));
|
|
32
|
+
slot: 'Root'
|
|
33
|
+
})(() => ({}));
|
|
35
34
|
const DialogRoot = styled(BaseDialog, {
|
|
36
35
|
name: PREFIX,
|
|
37
|
-
slot: '
|
|
38
|
-
|
|
39
|
-
})(({ theme }) => ({}));
|
|
36
|
+
slot: 'DialogRoot'
|
|
37
|
+
})(() => ({}));
|
|
40
38
|
/**
|
|
41
39
|
* > API documentation for the Community-JS Incubator Suggestion component. Learn about the available props and the CSS API.
|
|
42
40
|
*
|
|
@@ -9,14 +9,14 @@
|
|
|
9
9
|
|
|
10
10
|
#### Component Name
|
|
11
11
|
|
|
12
|
-
The name `
|
|
12
|
+
The name `SCIncubatorSuggestionWidget-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
|
-
|list|.
|
|
18
|
+
|root|.SCIncubatorSuggestionWidget-skeleton-root-root|Styles applied to the root element.|
|
|
19
|
+
|list|.SCIncubatorSuggestionWidget-list|Styles applied to the list element.|
|
|
20
20
|
*
|
|
21
21
|
*/
|
|
22
22
|
export default function IncubatorSuggestionWidgetSkeleton(props: any): JSX.Element;
|
|
@@ -4,12 +4,15 @@ import List from '@mui/material/List';
|
|
|
4
4
|
import { styled } from '@mui/material/styles';
|
|
5
5
|
import { IncubatorSkeleton } from '../Incubator';
|
|
6
6
|
import Widget from '../Widget';
|
|
7
|
-
|
|
7
|
+
import { PREFIX } from './constants';
|
|
8
8
|
const classes = {
|
|
9
|
-
root: `${PREFIX}-root`,
|
|
9
|
+
root: `${PREFIX}-skeleton-root`,
|
|
10
10
|
list: `${PREFIX}-list`
|
|
11
11
|
};
|
|
12
|
-
const Root = styled(Widget
|
|
12
|
+
const Root = styled(Widget, {
|
|
13
|
+
name: PREFIX,
|
|
14
|
+
slot: 'SkeletonRoot'
|
|
15
|
+
})(() => ({}));
|
|
13
16
|
/**
|
|
14
17
|
* > API documentation for the Community-JS Incubator Suggestion Widget Skeleton component. Learn about the available props and the CSS API.
|
|
15
18
|
|
|
@@ -21,14 +24,14 @@ const Root = styled(Widget)(({ theme }) => ({}));
|
|
|
21
24
|
|
|
22
25
|
#### Component Name
|
|
23
26
|
|
|
24
|
-
The name `
|
|
27
|
+
The name `SCIncubatorSuggestionWidget-skeleton-root` can be used when providing style overrides in the theme.
|
|
25
28
|
|
|
26
29
|
#### CSS
|
|
27
30
|
|
|
28
31
|
|Rule Name|Global class|Description|
|
|
29
32
|
|---|---|---|
|
|
30
|
-
|root|.
|
|
31
|
-
|list|.
|
|
33
|
+
|root|.SCIncubatorSuggestionWidget-skeleton-root-root|Styles applied to the root element.|
|
|
34
|
+
|list|.SCIncubatorSuggestionWidget-list|Styles applied to the list element.|
|
|
32
35
|
*
|
|
33
36
|
*/
|
|
34
37
|
export default function IncubatorSuggestionWidgetSkeleton(props) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PREFIX = "SCIncubatorSuggestionWidget";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const PREFIX = 'SCIncubatorSuggestionWidget';
|
|
@@ -14,7 +14,7 @@ import HiddenPlaceholder from '../../shared/HiddenPlaceholder';
|
|
|
14
14
|
import Skeleton from './Skeleton';
|
|
15
15
|
import { SCOPE_SC_UI } from '../../constants/Errors';
|
|
16
16
|
import { Logger } from '@selfcommunity/utils';
|
|
17
|
-
|
|
17
|
+
import { PREFIX } from './constants';
|
|
18
18
|
const classes = {
|
|
19
19
|
root: `${PREFIX}-root`,
|
|
20
20
|
title: `${PREFIX}-title`,
|
|
@@ -24,9 +24,8 @@ const classes = {
|
|
|
24
24
|
};
|
|
25
25
|
const Root = styled(Widget, {
|
|
26
26
|
name: PREFIX,
|
|
27
|
-
slot: 'Root'
|
|
28
|
-
|
|
29
|
-
})(({ theme }) => ({}));
|
|
27
|
+
slot: 'Root'
|
|
28
|
+
})(() => ({}));
|
|
30
29
|
/**
|
|
31
30
|
* > API documentation for the Community-JS Loyalty Program Widget component. Learn about the available props and the CSS API.
|
|
32
31
|
*
|
|
@@ -9,18 +9,18 @@
|
|
|
9
9
|
|
|
10
10
|
#### Component Name
|
|
11
11
|
|
|
12
|
-
The name `
|
|
12
|
+
The name `SCLoyaltyProgramWidget-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
|
-
|title|.
|
|
20
|
-
|content|.
|
|
21
|
-
|chip|.
|
|
22
|
-
|points|.
|
|
23
|
-
|actions|.
|
|
18
|
+
|root|.SCLoyaltyProgramWidget-skeleton-root|Styles applied to the root element.|
|
|
19
|
+
|title|.SCLoyaltyProgramWidget-title|Styles applied to the title element.|
|
|
20
|
+
|content|.SCLoyaltyProgramWidget-content|Styles applied to the card content section.|
|
|
21
|
+
|chip|.SCLoyaltyProgramWidget-chip|Styles applied to the card chip element.|
|
|
22
|
+
|points|.SCLoyaltyProgramWidget-points|Styles applied to the card actions points element.|
|
|
23
|
+
|actions|.SCLoyaltyProgramWidget-actions|Styles applied to the action section.|
|
|
24
24
|
*
|
|
25
25
|
*/
|
|
26
26
|
export default function LoyaltyProgramWidgetSkeleton(): JSX.Element;
|
|
@@ -2,9 +2,9 @@ import React from 'react';
|
|
|
2
2
|
import { styled } from '@mui/material/styles';
|
|
3
3
|
import { Button, CardActions, CardContent, Skeleton, Typography } from '@mui/material';
|
|
4
4
|
import Widget from '../Widget';
|
|
5
|
-
|
|
5
|
+
import { PREFIX } from './constants';
|
|
6
6
|
const classes = {
|
|
7
|
-
root: `${PREFIX}-root`,
|
|
7
|
+
root: `${PREFIX}-skeleton-root`,
|
|
8
8
|
title: `${PREFIX}-title`,
|
|
9
9
|
content: `${PREFIX}-content`,
|
|
10
10
|
chip: `${PREFIX}-chip`,
|
|
@@ -13,9 +13,8 @@ const classes = {
|
|
|
13
13
|
};
|
|
14
14
|
const Root = styled(Widget, {
|
|
15
15
|
name: PREFIX,
|
|
16
|
-
slot: '
|
|
17
|
-
|
|
18
|
-
})(({ theme }) => ({}));
|
|
16
|
+
slot: 'SkeletonRoot'
|
|
17
|
+
})(() => ({}));
|
|
19
18
|
/**
|
|
20
19
|
* > API documentation for the Community-JS Loyalty Program Widget Skeleton component. Learn about the available props and the CSS API.
|
|
21
20
|
|
|
@@ -27,18 +26,18 @@ const Root = styled(Widget, {
|
|
|
27
26
|
|
|
28
27
|
#### Component Name
|
|
29
28
|
|
|
30
|
-
The name `
|
|
29
|
+
The name `SCLoyaltyProgramWidget-skeleton-root` can be used when providing style overrides in the theme.
|
|
31
30
|
|
|
32
31
|
#### CSS
|
|
33
32
|
|
|
34
33
|
|Rule Name|Global class|Description|
|
|
35
34
|
|---|---|---|
|
|
36
|
-
|root|.
|
|
37
|
-
|title|.
|
|
38
|
-
|content|.
|
|
39
|
-
|chip|.
|
|
40
|
-
|points|.
|
|
41
|
-
|actions|.
|
|
35
|
+
|root|.SCLoyaltyProgramWidget-skeleton-root|Styles applied to the root element.|
|
|
36
|
+
|title|.SCLoyaltyProgramWidget-title|Styles applied to the title element.|
|
|
37
|
+
|content|.SCLoyaltyProgramWidget-content|Styles applied to the card content section.|
|
|
38
|
+
|chip|.SCLoyaltyProgramWidget-chip|Styles applied to the card chip element.|
|
|
39
|
+
|points|.SCLoyaltyProgramWidget-points|Styles applied to the card actions points element.|
|
|
40
|
+
|actions|.SCLoyaltyProgramWidget-actions|Styles applied to the action section.|
|
|
42
41
|
*
|
|
43
42
|
*/
|
|
44
43
|
export default function LoyaltyProgramWidgetSkeleton() {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PREFIX = "SCLoyaltyProgramWidget";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export 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|
|
|
@@ -13,7 +13,7 @@ import ComposerIconButton from '../ComposerIconButton';
|
|
|
13
13
|
import { SCFeatureName } from '@selfcommunity/types';
|
|
14
14
|
import { Link, SCPreferences, SCRoutes, useSCPreferences, useSCRouting, useSCUser } from '@selfcommunity/react-core';
|
|
15
15
|
import NavigationMenuIconButton from '../NavigationMenuIconButton';
|
|
16
|
-
|
|
16
|
+
import { PREFIX } from './constants';
|
|
17
17
|
const classes = {
|
|
18
18
|
root: `${PREFIX}-root`,
|
|
19
19
|
logo: `${PREFIX}-logo`,
|
|
@@ -25,14 +25,14 @@ const classes = {
|
|
|
25
25
|
composer: `${PREFIX}-composer`,
|
|
26
26
|
profile: `${PREFIX}-profile`,
|
|
27
27
|
notification: `${PREFIX}-notification`,
|
|
28
|
+
notificationsMenu: `${PREFIX}-notifications-menu`,
|
|
28
29
|
messages: `${PREFIX}-messages`,
|
|
29
30
|
settings: `${PREFIX}-settings`,
|
|
30
31
|
active: `${PREFIX}-active`
|
|
31
32
|
};
|
|
32
33
|
const Root = styled(Toolbar, {
|
|
33
34
|
name: PREFIX,
|
|
34
|
-
slot: 'Root'
|
|
35
|
-
overridesResolver: (props, styles) => styles.root
|
|
35
|
+
slot: 'Root'
|
|
36
36
|
})(() => ({}));
|
|
37
37
|
const PREFERENCES = [
|
|
38
38
|
SCPreferences.CONFIGURATIONS_EXPLORE_STREAM_ENABLED,
|
|
@@ -72,6 +72,7 @@ const PREFERENCES = [
|
|
|
72
72
|
|composer|.SCNavigationToolbar-composer|Styles applied to the composer component|
|
|
73
73
|
|profile|.SCNavigationToolbar-profile|Styles applied to the profile button|
|
|
74
74
|
|notification|.SCNavigationToolbar-notification|Styles applied to the notification button|
|
|
75
|
+
|notificationsMenu|.SCNavigationToolbar-notifications-menu|Styles applied to the notifications menu|
|
|
75
76
|
|messages|.SCNavigationToolbar-messages|Styles applied to the messages button|
|
|
76
77
|
|settings|.SCNavigationToolbar-settings|Styles applied to the settings button|
|
|
77
78
|
|active|.SCNavigationToolbar-active|Styles applied to the active button on navigation|
|
|
@@ -138,7 +139,7 @@ export default function NavigationToolbar(inProps) {
|
|
|
138
139
|
}), "aria-label": "Notification", onClick: handleOpenNotificationMenu },
|
|
139
140
|
React.createElement(Badge, { badgeContent: scUserContext.user.unseen_notification_banners_counter + scUserContext.user.unseen_interactions_counter, color: "secondary" },
|
|
140
141
|
React.createElement(Icon, null, "notifications_active"))),
|
|
141
|
-
React.createElement(NotificationMenu, 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))),
|
|
142
|
+
React.createElement(NotificationMenu, 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))),
|
|
142
143
|
privateMessagingEnabled && (React.createElement(IconButton, { className: classNames(classes.messages, {
|
|
143
144
|
[classes.active]: value.startsWith(scRoutingContext.url(SCRoutes.USER_PRIVATE_MESSAGES_ROUTE_NAME, {}))
|
|
144
145
|
}), "aria-label": "Messages", to: scRoutingContext.url(SCRoutes.USER_PRIVATE_MESSAGES_ROUTE_NAME, {}), component: Link },
|
|
@@ -5,28 +5,17 @@ import { FormattedMessage } from 'react-intl';
|
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { useThemeProps } from '@mui/system';
|
|
7
7
|
import SnippetNotifications from '../SnippetNotifications';
|
|
8
|
-
|
|
8
|
+
import { PREFIX } from './constants';
|
|
9
9
|
const classes = {
|
|
10
|
-
root: `${PREFIX}-root`,
|
|
10
|
+
root: `${PREFIX}-notifications-menu-root`,
|
|
11
11
|
paper: `${PREFIX}-paper`,
|
|
12
12
|
notifications: `${PREFIX}-notifications`,
|
|
13
13
|
link: `${PREFIX}-link`
|
|
14
14
|
};
|
|
15
15
|
const Root = styled(Menu, {
|
|
16
16
|
name: PREFIX,
|
|
17
|
-
slot: '
|
|
18
|
-
|
|
19
|
-
})(({ theme }) => ({
|
|
20
|
-
[`& .${classes.paper}`]: {
|
|
21
|
-
minWidth: 370,
|
|
22
|
-
padding: theme.spacing(2)
|
|
23
|
-
},
|
|
24
|
-
[`& .${classes.link}`]: {
|
|
25
|
-
display: 'block',
|
|
26
|
-
textAlign: 'center',
|
|
27
|
-
margin: theme.spacing(0, 'auto')
|
|
28
|
-
}
|
|
29
|
-
}));
|
|
17
|
+
slot: 'NotificationsMenuRoot'
|
|
18
|
+
})(() => ({}));
|
|
30
19
|
export default function NotificationMenu(inProps) {
|
|
31
20
|
// PROPS
|
|
32
21
|
const props = useThemeProps({
|
|
@@ -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;
|
|
@@ -2,18 +2,17 @@ import React from 'react';
|
|
|
2
2
|
import { Toolbar } from '@mui/material';
|
|
3
3
|
import { styled } from '@mui/material/styles';
|
|
4
4
|
import Skeleton from '@mui/material/Skeleton';
|
|
5
|
-
|
|
5
|
+
import { PREFIX } from './constants';
|
|
6
6
|
const classes = {
|
|
7
|
-
root: `${PREFIX}-root`,
|
|
7
|
+
root: `${PREFIX}-skeleton-root`,
|
|
8
8
|
logo: `${PREFIX}-logo`,
|
|
9
9
|
navigation: `${PREFIX}-navigation`,
|
|
10
10
|
avatar: `${PREFIX}-avatar`
|
|
11
11
|
};
|
|
12
12
|
const Root = styled(Toolbar, {
|
|
13
13
|
name: PREFIX,
|
|
14
|
-
slot: '
|
|
15
|
-
|
|
16
|
-
})(({ theme }) => ({}));
|
|
14
|
+
slot: 'SkeletonRoot'
|
|
15
|
+
})(() => ({}));
|
|
17
16
|
/**
|
|
18
17
|
* > API documentation for the Community-JS Navigation Toolbar Skeleton component. Learn about the available props and the CSS API.
|
|
19
18
|
|
|
@@ -25,16 +24,16 @@ const Root = styled(Toolbar, {
|
|
|
25
24
|
|
|
26
25
|
#### Component Name
|
|
27
26
|
|
|
28
|
-
The name `
|
|
27
|
+
The name `SCNavigationToolbar-skeleton-root` can be used when providing style overrides in the theme.
|
|
29
28
|
|
|
30
29
|
#### CSS
|
|
31
30
|
|
|
32
31
|
|Rule Name|Global class|Description|
|
|
33
32
|
|---|---|---|
|
|
34
|
-
|root|.
|
|
35
|
-
|logo|.
|
|
36
|
-
|navigation|.
|
|
37
|
-
|avatar|.
|
|
33
|
+
|root|.SCNavigationToolbar-skeleton-root|Styles applied to the root element.|
|
|
34
|
+
|logo|.SCNavigationToolbar-logo|Styles applied to the logo element.|
|
|
35
|
+
|navigation|.SCNavigationToolbar-navigation|Styles applied to the navigation element.|
|
|
36
|
+
|avatar|.SCNavigationToolbar-avatar|Styles applied to the avatar element.|
|
|
38
37
|
*
|
|
39
38
|
*/
|
|
40
39
|
export default function NavigationToolbarSkeleton() {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PREFIX = "SCNavigationToolbar";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const PREFIX = 'SCNavigationToolbar';
|
|
@@ -12,7 +12,7 @@ import classNames from 'classnames';
|
|
|
12
12
|
import { SCNotificationObjectTemplateType } from '../../../types';
|
|
13
13
|
import { useThemeProps } from '@mui/system';
|
|
14
14
|
import NotificationItem from '../../../shared/NotificationItem';
|
|
15
|
-
import {
|
|
15
|
+
import { PREFIX } from '../constants';
|
|
16
16
|
const messages = defineMessages({
|
|
17
17
|
collapsedForAdvertising: {
|
|
18
18
|
id: 'ui.notification.collapsedFor.collapsedForAdvertising',
|
|
@@ -35,9 +35,8 @@ const messages = defineMessages({
|
|
|
35
35
|
defaultMessage: 'ui.notification.collapsedFor.collapsedForOfftopic'
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
|
-
const PREFIX = 'SCCollapsedForNotification';
|
|
39
38
|
const classes = {
|
|
40
|
-
root: `${PREFIX}-root`,
|
|
39
|
+
root: `${PREFIX}-collapsed-for-root`,
|
|
41
40
|
flagIcon: `${PREFIX}-flag-icon`,
|
|
42
41
|
flagText: `${PREFIX}-flag-text`,
|
|
43
42
|
activeAt: `${PREFIX}-active-at`,
|
|
@@ -47,29 +46,8 @@ const classes = {
|
|
|
47
46
|
};
|
|
48
47
|
const Root = styled(NotificationItem, {
|
|
49
48
|
name: PREFIX,
|
|
50
|
-
slot: '
|
|
51
|
-
|
|
52
|
-
})(({ theme }) => ({
|
|
53
|
-
width: '100%',
|
|
54
|
-
[`& .${classes.flagIcon}`]: {
|
|
55
|
-
backgroundColor: red[500],
|
|
56
|
-
color: '#FFF'
|
|
57
|
-
},
|
|
58
|
-
[`& .${classes.flagText}`]: {
|
|
59
|
-
color: theme.palette.text.primary
|
|
60
|
-
},
|
|
61
|
-
[`& .${classes.contributionWrap}`]: {
|
|
62
|
-
padding: `${theme.spacing(2)} ${theme.spacing(2)}`,
|
|
63
|
-
textOverflow: 'ellipsis',
|
|
64
|
-
display: 'inline',
|
|
65
|
-
overflow: 'hidden'
|
|
66
|
-
},
|
|
67
|
-
[`& .${classes.contributionText}`]: {
|
|
68
|
-
'&:hover': {
|
|
69
|
-
textDecoration: 'underline'
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}));
|
|
49
|
+
slot: 'CollapsedForRoot'
|
|
50
|
+
})(() => ({}));
|
|
73
51
|
/**
|
|
74
52
|
* This component render the content of the notification of type collapsed for
|
|
75
53
|
* @param inProps
|
|
@@ -15,6 +15,7 @@ import NotificationItem from '../../../shared/NotificationItem';
|
|
|
15
15
|
import VoteButton from '../../VoteButton';
|
|
16
16
|
import UserDeletedSnackBar from '../../../shared/UserDeletedSnackBar';
|
|
17
17
|
import UserAvatar from '../../../shared/UserAvatar';
|
|
18
|
+
import { PREFIX } from '../constants';
|
|
18
19
|
const messages = defineMessages({
|
|
19
20
|
comment: {
|
|
20
21
|
id: 'ui.notification.comment.comment',
|
|
@@ -25,9 +26,8 @@ const messages = defineMessages({
|
|
|
25
26
|
defaultMessage: 'ui.notification.comment.nestedComment'
|
|
26
27
|
}
|
|
27
28
|
});
|
|
28
|
-
const PREFIX = 'SCCommentNotification';
|
|
29
29
|
const classes = {
|
|
30
|
-
root: `${PREFIX}-root`,
|
|
30
|
+
root: `${PREFIX}-comment-root`,
|
|
31
31
|
avatar: `${PREFIX}-avatar`,
|
|
32
32
|
username: `${PREFIX}-username`,
|
|
33
33
|
voteButton: `${PREFIX}-vote-button`,
|
|
@@ -37,9 +37,8 @@ const classes = {
|
|
|
37
37
|
};
|
|
38
38
|
const Root = styled(NotificationItem, {
|
|
39
39
|
name: PREFIX,
|
|
40
|
-
slot: '
|
|
41
|
-
|
|
42
|
-
})(({ theme }) => ({}));
|
|
40
|
+
slot: 'CommentRoot'
|
|
41
|
+
})(() => ({}));
|
|
43
42
|
/**
|
|
44
43
|
* This component render the content of the notification of type comment/nested comment
|
|
45
44
|
* @param inProps
|
|
@@ -15,6 +15,7 @@ import Bullet from '../../../shared/Bullet';
|
|
|
15
15
|
import VoteButton from '../../VoteButton';
|
|
16
16
|
import UserDeletedSnackBar from '../../../shared/UserDeletedSnackBar';
|
|
17
17
|
import UserAvatar from '../../../shared/UserAvatar';
|
|
18
|
+
import { PREFIX } from '../constants';
|
|
18
19
|
const messages = defineMessages({
|
|
19
20
|
postOrStatus: {
|
|
20
21
|
id: 'ui.notification.contribution.newPostOrStatus',
|
|
@@ -33,9 +34,8 @@ const messages = defineMessages({
|
|
|
33
34
|
defaultMessage: 'ui.notification.contribution.snippet.discussion'
|
|
34
35
|
}
|
|
35
36
|
});
|
|
36
|
-
const PREFIX = 'SCContributionNotification';
|
|
37
37
|
const classes = {
|
|
38
|
-
root: `${PREFIX}-root`,
|
|
38
|
+
root: `${PREFIX}-contribution-root`,
|
|
39
39
|
avatar: `${PREFIX}-avatar`,
|
|
40
40
|
username: `${PREFIX}-username`,
|
|
41
41
|
voteButton: `${PREFIX}-vote-button`,
|
|
@@ -45,9 +45,8 @@ const classes = {
|
|
|
45
45
|
};
|
|
46
46
|
const Root = styled(NotificationItem, {
|
|
47
47
|
name: PREFIX,
|
|
48
|
-
slot: '
|
|
49
|
-
|
|
50
|
-
})(({ theme }) => ({}));
|
|
48
|
+
slot: 'ContributionRoot'
|
|
49
|
+
})(() => ({}));
|
|
51
50
|
/**
|
|
52
51
|
* This component render the content of the notification of type follow (contribution)
|
|
53
52
|
* @param inProps
|
|
@@ -12,15 +12,15 @@ import { useThemeProps } from '@mui/system';
|
|
|
12
12
|
import NotificationItem from '../../../shared/NotificationItem';
|
|
13
13
|
import UserDeletedSnackBar from '../../../shared/UserDeletedSnackBar';
|
|
14
14
|
import UserAvatar from '../../../shared/UserAvatar';
|
|
15
|
+
import { PREFIX } from '../constants';
|
|
15
16
|
const messages = defineMessages({
|
|
16
17
|
contributionFollow: {
|
|
17
18
|
id: 'ui.notification.contributionFollow.follow',
|
|
18
19
|
defaultMessage: 'ui.notification.contributionFollow.follow'
|
|
19
20
|
}
|
|
20
21
|
});
|
|
21
|
-
const PREFIX = 'SCContributionFollowNotification';
|
|
22
22
|
const classes = {
|
|
23
|
-
root: `${PREFIX}-root`,
|
|
23
|
+
root: `${PREFIX}-contribution-follow-root`,
|
|
24
24
|
avatar: `${PREFIX}-avatar`,
|
|
25
25
|
username: `${PREFIX}-username`,
|
|
26
26
|
followText: `${PREFIX}-follow-text`,
|
|
@@ -29,31 +29,8 @@ const classes = {
|
|
|
29
29
|
};
|
|
30
30
|
const Root = styled(NotificationItem, {
|
|
31
31
|
name: PREFIX,
|
|
32
|
-
slot: '
|
|
33
|
-
|
|
34
|
-
})(({ theme }) => ({
|
|
35
|
-
[`& .${classes.username}`]: {
|
|
36
|
-
fontWeight: 700,
|
|
37
|
-
'&:hover': {
|
|
38
|
-
textDecoration: 'underline'
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
[`& .${classes.followText}`]: {
|
|
42
|
-
color: theme.palette.text.primary
|
|
43
|
-
},
|
|
44
|
-
[`& .${classes.contributionText}`]: {
|
|
45
|
-
'&:hover': {
|
|
46
|
-
textDecoration: 'underline'
|
|
47
|
-
},
|
|
48
|
-
textOverflow: 'ellipsis',
|
|
49
|
-
display: 'inline',
|
|
50
|
-
overflow: 'hidden'
|
|
51
|
-
},
|
|
52
|
-
'& .MuiIcon-root': {
|
|
53
|
-
fontSize: '18px',
|
|
54
|
-
marginBottom: '0.5px'
|
|
55
|
-
}
|
|
56
|
-
}));
|
|
32
|
+
slot: 'ContributionFollowRoot'
|
|
33
|
+
})(() => ({}));
|
|
57
34
|
/**
|
|
58
35
|
* This component render the content of the notification of type follow (contribution)
|
|
59
36
|
* @param inProps
|
|
@@ -13,7 +13,7 @@ import classNames from 'classnames';
|
|
|
13
13
|
import { SCNotificationObjectTemplateType } from '../../../types';
|
|
14
14
|
import { useThemeProps } from '@mui/system';
|
|
15
15
|
import NotificationItem from '../../../shared/NotificationItem';
|
|
16
|
-
import {
|
|
16
|
+
import { PREFIX } from '../constants';
|
|
17
17
|
const messages = defineMessages({
|
|
18
18
|
deletedForAdvertising: {
|
|
19
19
|
id: 'ui.notification.deletedFor.deletedForAdvertising',
|
|
@@ -36,9 +36,8 @@ const messages = defineMessages({
|
|
|
36
36
|
defaultMessage: 'ui.notification.deletedFor.deletedForOfftopic'
|
|
37
37
|
}
|
|
38
38
|
});
|
|
39
|
-
const PREFIX = 'SCDeletedForNotification';
|
|
40
39
|
const classes = {
|
|
41
|
-
root: `${PREFIX}-root`,
|
|
40
|
+
root: `${PREFIX}-deleted-for-root`,
|
|
42
41
|
flagIcon: `${PREFIX}-flag-icon`,
|
|
43
42
|
flagText: `${PREFIX}-flag-text`,
|
|
44
43
|
activeAt: `${PREFIX}-active-at`,
|
|
@@ -48,29 +47,9 @@ const classes = {
|
|
|
48
47
|
};
|
|
49
48
|
const Root = styled(NotificationItem, {
|
|
50
49
|
name: PREFIX,
|
|
51
|
-
slot: '
|
|
50
|
+
slot: 'DeletedForRoot',
|
|
52
51
|
overridesResolver: (props, styles) => styles.root
|
|
53
|
-
})((
|
|
54
|
-
[`& .${classes.flagIcon}`]: {
|
|
55
|
-
backgroundColor: red[500],
|
|
56
|
-
color: '#FFF'
|
|
57
|
-
},
|
|
58
|
-
[`& .${classes.flagText}`]: {
|
|
59
|
-
color: theme.palette.text.primary
|
|
60
|
-
},
|
|
61
|
-
[`& .${classes.contributionWrap}`]: {
|
|
62
|
-
marginBottom: theme.spacing(1),
|
|
63
|
-
padding: theme.spacing(2),
|
|
64
|
-
textOverflow: 'ellipsis',
|
|
65
|
-
display: 'inline',
|
|
66
|
-
overflow: 'hidden'
|
|
67
|
-
},
|
|
68
|
-
[`& .${classes.contributionText}`]: {
|
|
69
|
-
'&:hover': {
|
|
70
|
-
textDecoration: 'underline'
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}));
|
|
52
|
+
})(() => ({}));
|
|
74
53
|
/**
|
|
75
54
|
* This component render the content of the notification of type deleted for
|
|
76
55
|
* @param inProps
|
|
@@ -93,7 +72,7 @@ export default function DeletedForNotification(inProps) {
|
|
|
93
72
|
/**
|
|
94
73
|
* Renders root object
|
|
95
74
|
*/
|
|
96
|
-
return (React.createElement(
|
|
75
|
+
return (React.createElement(Root, Object.assign({ id: id, className: classNames(classes.root, className, `${PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: React.createElement(Avatar, { variant: "circular", classes: { root: classes.flagIcon } },
|
|
97
76
|
React.createElement(Icon, null, "outlined_flag")), primary: React.createElement(React.Fragment, null, isSnippetTemplate ? (React.createElement(Link, { to: scRoutingContext.url(SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], getRouteData(notificationObject[contributionType])) },
|
|
98
77
|
React.createElement(Typography, { component: "div", color: "inherit", className: classes.flagText },
|
|
99
78
|
React.createElement(FormattedMessage, { id: `ui.notification.deletedFor.${camelCase(notificationObject.type)}Snippet`, defaultMessage: `ui.notification.deletedFor.${camelCase(notificationObject.type)}Snippet` })))) : (React.createElement(React.Fragment, null,
|