@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,7 +4,6 @@ const tslib_1 = require("tslib");
|
|
|
4
4
|
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
|
-
const colors_1 = require("@mui/material/colors");
|
|
8
7
|
const Icon_1 = tslib_1.__importDefault(require("@mui/material/Icon"));
|
|
9
8
|
const types_1 = require("@selfcommunity/types");
|
|
10
9
|
const react_intl_1 = require("react-intl");
|
|
@@ -13,6 +12,7 @@ const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
|
13
12
|
const types_2 = require("../../../types");
|
|
14
13
|
const system_1 = require("@mui/system");
|
|
15
14
|
const NotificationItem_1 = tslib_1.__importDefault(require("../../../shared/NotificationItem"));
|
|
15
|
+
const constants_1 = require("../constants");
|
|
16
16
|
const messages = (0, react_intl_1.defineMessages)({
|
|
17
17
|
accountBlocked: {
|
|
18
18
|
id: 'ui.notification.userBlocked.accountBlocked',
|
|
@@ -23,31 +23,17 @@ const messages = (0, react_intl_1.defineMessages)({
|
|
|
23
23
|
defaultMessage: 'ui.notification.userBlocked.accountReactivated'
|
|
24
24
|
}
|
|
25
25
|
});
|
|
26
|
-
const PREFIX = 'SCUserBlockedNotification';
|
|
27
26
|
const classes = {
|
|
28
|
-
root: `${PREFIX}-root`,
|
|
29
|
-
unBlockedIcon: `${PREFIX}-unblocked-icon`,
|
|
30
|
-
blockedIcon: `${PREFIX}-blocked-icon`,
|
|
31
|
-
blockedText: `${PREFIX}-blocked-text`,
|
|
32
|
-
activeAt: `${PREFIX}-active-at`
|
|
27
|
+
root: `${constants_1.PREFIX}-user-blocked-root`,
|
|
28
|
+
unBlockedIcon: `${constants_1.PREFIX}-unblocked-icon`,
|
|
29
|
+
blockedIcon: `${constants_1.PREFIX}-blocked-icon`,
|
|
30
|
+
blockedText: `${constants_1.PREFIX}-blocked-text`,
|
|
31
|
+
activeAt: `${constants_1.PREFIX}-active-at`
|
|
33
32
|
};
|
|
34
33
|
const Root = (0, styles_1.styled)(NotificationItem_1.default, {
|
|
35
|
-
name: PREFIX,
|
|
36
|
-
slot: '
|
|
37
|
-
|
|
38
|
-
})(({ theme }) => ({
|
|
39
|
-
[`& .${classes.unBlockedIcon}`]: {
|
|
40
|
-
backgroundColor: colors_1.green[500],
|
|
41
|
-
color: '#FFF'
|
|
42
|
-
},
|
|
43
|
-
[`& .${classes.blockedIcon}`]: {
|
|
44
|
-
backgroundColor: colors_1.red[500],
|
|
45
|
-
color: '#FFF'
|
|
46
|
-
},
|
|
47
|
-
[`& .${classes.blockedText}`]: {
|
|
48
|
-
color: theme.palette.text.primary
|
|
49
|
-
}
|
|
50
|
-
}));
|
|
34
|
+
name: constants_1.PREFIX,
|
|
35
|
+
slot: 'UserBlockedRoot'
|
|
36
|
+
})(() => ({}));
|
|
51
37
|
/**
|
|
52
38
|
* This component render the content of the notification of type user blocked
|
|
53
39
|
* @param inProps
|
|
@@ -57,7 +43,7 @@ function UserBlockedNotification(inProps) {
|
|
|
57
43
|
// PROPS
|
|
58
44
|
const props = (0, system_1.useThemeProps)({
|
|
59
45
|
props: inProps,
|
|
60
|
-
name: PREFIX
|
|
46
|
+
name: constants_1.PREFIX
|
|
61
47
|
});
|
|
62
48
|
const { notificationObject = null, id = `n_${props.notificationObject['sid']}`, template = types_2.SCNotificationObjectTemplateType.DETAIL, className } = props, rest = tslib_1.__rest(props, ["notificationObject", "id", "template", "className"]);
|
|
63
49
|
// INTL
|
|
@@ -65,7 +51,7 @@ function UserBlockedNotification(inProps) {
|
|
|
65
51
|
/**
|
|
66
52
|
* Renders root object
|
|
67
53
|
*/
|
|
68
|
-
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: {
|
|
54
|
+
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: {
|
|
69
55
|
root: (0, classnames_1.default)(classes.unBlockedIcon, {
|
|
70
56
|
[classes.blockedIcon]: notificationObject.type === types_1.SCNotificationTypologyType.BLOCKED_USER
|
|
71
57
|
})
|
|
@@ -14,6 +14,7 @@ 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
|
requestConnection: {
|
|
19
20
|
id: 'ui.notification.userConnection.requestConnection',
|
|
@@ -24,29 +25,17 @@ const messages = (0, react_intl_1.defineMessages)({
|
|
|
24
25
|
defaultMessage: 'ui.notification.userConnection.acceptConnection'
|
|
25
26
|
}
|
|
26
27
|
});
|
|
27
|
-
const PREFIX = 'SCUserConnectionNotification';
|
|
28
28
|
const classes = {
|
|
29
|
-
root: `${PREFIX}-root`,
|
|
30
|
-
avatar: `${PREFIX}-avatar`,
|
|
31
|
-
username: `${PREFIX}-username`,
|
|
32
|
-
connectionText: `${PREFIX}-connection-text`,
|
|
33
|
-
activeAt: `${PREFIX}-active-at`
|
|
29
|
+
root: `${constants_1.PREFIX}-user-connection-root`,
|
|
30
|
+
avatar: `${constants_1.PREFIX}-avatar`,
|
|
31
|
+
username: `${constants_1.PREFIX}-username`,
|
|
32
|
+
connectionText: `${constants_1.PREFIX}-connection-text`,
|
|
33
|
+
activeAt: `${constants_1.PREFIX}-active-at`
|
|
34
34
|
};
|
|
35
35
|
const Root = (0, styles_1.styled)(NotificationItem_1.default, {
|
|
36
|
-
name: PREFIX,
|
|
37
|
-
slot: '
|
|
38
|
-
|
|
39
|
-
})(({ theme }) => ({
|
|
40
|
-
[`& .${classes.username}`]: {
|
|
41
|
-
fontWeight: 700,
|
|
42
|
-
'&:hover': {
|
|
43
|
-
textDecoration: 'underline'
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
[`& .${classes.connectionText}`]: {
|
|
47
|
-
color: theme.palette.text.primary
|
|
48
|
-
}
|
|
49
|
-
}));
|
|
36
|
+
name: constants_1.PREFIX,
|
|
37
|
+
slot: 'UserConnectionRoot'
|
|
38
|
+
})(() => ({}));
|
|
50
39
|
/**
|
|
51
40
|
* This component render the content of the notification of connection accept/request
|
|
52
41
|
* @param inProps
|
|
@@ -56,7 +45,7 @@ function UserConnectionNotification(inProps) {
|
|
|
56
45
|
// PROPS
|
|
57
46
|
const props = (0, system_1.useThemeProps)({
|
|
58
47
|
props: inProps,
|
|
59
|
-
name: PREFIX
|
|
48
|
+
name: constants_1.PREFIX
|
|
60
49
|
});
|
|
61
50
|
const { notificationObject = null, id = `n_${props.notificationObject['sid']}`, className, template = types_2.SCNotificationObjectTemplateType.DETAIL } = props, rest = tslib_1.__rest(props, ["notificationObject", "id", "className", "template"]);
|
|
62
51
|
// CONTEXT
|
|
@@ -71,7 +60,7 @@ function UserConnectionNotification(inProps) {
|
|
|
71
60
|
* Renders root object
|
|
72
61
|
*/
|
|
73
62
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
74
|
-
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({}, (!userConnection.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, userConnection) }), { onClick: userConnection.deleted ? () => setOpenAlert(true) : null }),
|
|
63
|
+
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({}, (!userConnection.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, userConnection) }), { onClick: userConnection.deleted ? () => setOpenAlert(true) : null }),
|
|
75
64
|
react_1.default.createElement(UserAvatar_1.default, { hide: !userConnection.community_badge, smaller: true },
|
|
76
65
|
react_1.default.createElement(material_1.Avatar, { alt: userConnection.username, variant: "circular", src: userConnection.avatar, classes: { root: classes.avatar } }))), primary: react_1.default.createElement(material_1.Typography, { component: "div", color: "inherit", className: classes.connectionText },
|
|
77
66
|
react_1.default.createElement(react_core_1.Link, Object.assign({}, (!userConnection.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, userConnection) }), { onClick: userConnection.deleted ? () => setOpenAlert(true) : null, className: classes.username }), userConnection.username),
|
|
@@ -13,36 +13,24 @@ const system_1 = require("@mui/system");
|
|
|
13
13
|
const NotificationItem_1 = tslib_1.__importDefault(require("../../../shared/NotificationItem"));
|
|
14
14
|
const UserDeletedSnackBar_1 = tslib_1.__importDefault(require("../../../shared/UserDeletedSnackBar"));
|
|
15
15
|
const UserAvatar_1 = tslib_1.__importDefault(require("../../../shared/UserAvatar"));
|
|
16
|
+
const constants_1 = require("../constants");
|
|
16
17
|
const messages = (0, react_intl_1.defineMessages)({
|
|
17
18
|
followUser: {
|
|
18
19
|
id: 'ui.notification.userFollow.followUser',
|
|
19
20
|
defaultMessage: 'ui.notification.userFollow.followUser'
|
|
20
21
|
}
|
|
21
22
|
});
|
|
22
|
-
const PREFIX = 'SCUserFollowNotification';
|
|
23
23
|
const classes = {
|
|
24
|
-
root: `${PREFIX}-root`,
|
|
25
|
-
avatar: `${PREFIX}-avatar`,
|
|
26
|
-
username: `${PREFIX}-username`,
|
|
27
|
-
followText: `${PREFIX}-follow-text`,
|
|
28
|
-
activeAt: `${PREFIX}-active-at`
|
|
24
|
+
root: `${constants_1.PREFIX}-user-follow-root`,
|
|
25
|
+
avatar: `${constants_1.PREFIX}-avatar`,
|
|
26
|
+
username: `${constants_1.PREFIX}-username`,
|
|
27
|
+
followText: `${constants_1.PREFIX}-follow-text`,
|
|
28
|
+
activeAt: `${constants_1.PREFIX}-active-at`
|
|
29
29
|
};
|
|
30
30
|
const Root = (0, styles_1.styled)(NotificationItem_1.default, {
|
|
31
|
-
name: PREFIX,
|
|
32
|
-
slot: '
|
|
33
|
-
|
|
34
|
-
})(({ theme }) => ({
|
|
35
|
-
width: '100%',
|
|
36
|
-
[`& .${classes.username}`]: {
|
|
37
|
-
fontWeight: 700,
|
|
38
|
-
'&:hover': {
|
|
39
|
-
textDecoration: 'underline'
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
[`& .${classes.followText}`]: {
|
|
43
|
-
color: theme.palette.text.primary
|
|
44
|
-
}
|
|
45
|
-
}));
|
|
31
|
+
name: constants_1.PREFIX,
|
|
32
|
+
slot: 'UserFollowRoot'
|
|
33
|
+
})(() => ({}));
|
|
46
34
|
/**
|
|
47
35
|
* This component render the content of the notification of type user follow
|
|
48
36
|
* @param inProps
|
|
@@ -52,7 +40,7 @@ function UserFollowNotification(inProps) {
|
|
|
52
40
|
// PROPS
|
|
53
41
|
const props = (0, system_1.useThemeProps)({
|
|
54
42
|
props: inProps,
|
|
55
|
-
name: PREFIX
|
|
43
|
+
name: constants_1.PREFIX
|
|
56
44
|
});
|
|
57
45
|
const { notificationObject, id = `n_${props.notificationObject['sid']}`, className, template = types_1.SCNotificationObjectTemplateType.DETAIL } = props, rest = tslib_1.__rest(props, ["notificationObject", "id", "className", "template"]);
|
|
58
46
|
// CONTEXT
|
|
@@ -65,7 +53,7 @@ function UserFollowNotification(inProps) {
|
|
|
65
53
|
* Renders root object
|
|
66
54
|
*/
|
|
67
55
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
68
|
-
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.follower.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.follower) }), { onClick: notificationObject.follower.deleted ? () => setOpenAlert(true) : null }),
|
|
56
|
+
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.follower.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.follower) }), { onClick: notificationObject.follower.deleted ? () => setOpenAlert(true) : null }),
|
|
69
57
|
react_1.default.createElement(UserAvatar_1.default, { hide: !notificationObject.follower.community_badge, smaller: true },
|
|
70
58
|
react_1.default.createElement(material_1.Avatar, { alt: notificationObject.follower.username, variant: "circular", src: notificationObject.follower.avatar, classes: { root: classes.avatar } }))), primary: react_1.default.createElement(material_1.Typography, { component: "div", color: "inherit", className: classes.followText },
|
|
71
59
|
react_1.default.createElement(react_core_1.Link, Object.assign({}, (!notificationObject.follower.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.follower) }), { onClick: notificationObject.follower.deleted ? () => setOpenAlert(true) : null, className: classes.username }), notificationObject.follower.username),
|
|
@@ -14,42 +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
|
appreciated: {
|
|
19
20
|
id: 'ui.notification.voteUp.appreciated',
|
|
20
21
|
defaultMessage: 'ui.notification.voteUp.appreciated'
|
|
21
22
|
}
|
|
22
23
|
});
|
|
23
|
-
const PREFIX = 'SCVoteUpNotification';
|
|
24
24
|
const classes = {
|
|
25
|
-
root: `${PREFIX}-root`,
|
|
26
|
-
avatar: `${PREFIX}-avatar`,
|
|
27
|
-
username: `${PREFIX}-username`,
|
|
28
|
-
voteUpText: `${PREFIX}-vote-up-text`,
|
|
29
|
-
activeAt: `${PREFIX}-active-at`,
|
|
30
|
-
contributionText: `${PREFIX}-contribution-text`
|
|
25
|
+
root: `${constants_1.PREFIX}-vote-up-root`,
|
|
26
|
+
avatar: `${constants_1.PREFIX}-avatar`,
|
|
27
|
+
username: `${constants_1.PREFIX}-username`,
|
|
28
|
+
voteUpText: `${constants_1.PREFIX}-vote-up-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
|
-
width: '100%',
|
|
38
|
-
[`& .${classes.username}`]: {
|
|
39
|
-
fontWeight: 700,
|
|
40
|
-
'&:hover': {
|
|
41
|
-
textDecoration: 'underline'
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
[`& .${classes.voteUpText}`]: {
|
|
45
|
-
color: theme.palette.text.primary
|
|
46
|
-
},
|
|
47
|
-
[`& .${classes.contributionText}`]: {
|
|
48
|
-
'&:hover': {
|
|
49
|
-
textDecoration: 'underline'
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}));
|
|
33
|
+
name: constants_1.PREFIX,
|
|
34
|
+
slot: 'VoteUpRoot'
|
|
35
|
+
})(() => ({}));
|
|
53
36
|
/**
|
|
54
37
|
* This component render the content of the notification of type vote up
|
|
55
38
|
* @param inProps
|
|
@@ -59,7 +42,7 @@ function VoteUpNotification(inProps) {
|
|
|
59
42
|
// PROPS
|
|
60
43
|
const props = (0, system_1.useThemeProps)({
|
|
61
44
|
props: inProps,
|
|
62
|
-
name: PREFIX
|
|
45
|
+
name: constants_1.PREFIX
|
|
63
46
|
});
|
|
64
47
|
const { notificationObject, id = `n_${props.notificationObject['sid']}`, className, template = notification_1.SCNotificationObjectTemplateType.DETAIL, index, onVote, loadingVote } = props, rest = tslib_1.__rest(props, ["notificationObject", "id", "className", "template", "index", "onVote", "loadingVote"]);
|
|
65
48
|
// CONTEXT
|
|
@@ -75,7 +58,7 @@ function VoteUpNotification(inProps) {
|
|
|
75
58
|
* Renders root object
|
|
76
59
|
*/
|
|
77
60
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
78
|
-
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 }),
|
|
61
|
+
react_1.default.createElement(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${constants_1.PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: react_1.default.createElement(react_core_1.Link, Object.assign({}, (!notificationObject.user.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.user) }), { onClick: notificationObject.user.deleted ? () => setOpenAlert(true) : null }),
|
|
79
62
|
react_1.default.createElement(UserAvatar_1.default, { hide: !notificationObject.user.community_badge, smaller: true },
|
|
80
63
|
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(react_1.default.Fragment, null,
|
|
81
64
|
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),
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PREFIX = "SCNotification";
|
|
@@ -12,16 +12,15 @@ const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
|
12
12
|
const Widget_1 = tslib_1.__importDefault(require("../Widget"));
|
|
13
13
|
const system_1 = require("@mui/system");
|
|
14
14
|
const HiddenPlaceholder_1 = tslib_1.__importDefault(require("../../shared/HiddenPlaceholder"));
|
|
15
|
-
const
|
|
15
|
+
const constants_1 = require("./constants");
|
|
16
16
|
const classes = {
|
|
17
|
-
root: `${PREFIX}-root`,
|
|
18
|
-
title: `${PREFIX}-title`
|
|
17
|
+
root: `${constants_1.PREFIX}-root`,
|
|
18
|
+
title: `${constants_1.PREFIX}-title`
|
|
19
19
|
};
|
|
20
20
|
const Root = (0, styles_1.styled)(Widget_1.default, {
|
|
21
|
-
name: PREFIX,
|
|
22
|
-
slot: 'Root'
|
|
23
|
-
|
|
24
|
-
})(({ theme }) => ({}));
|
|
21
|
+
name: constants_1.PREFIX,
|
|
22
|
+
slot: 'Root'
|
|
23
|
+
})(() => ({}));
|
|
25
24
|
/**
|
|
26
25
|
* > API documentation for the Community-JS PlatformWidget component. Learn about the available props and the CSS API.
|
|
27
26
|
*
|
|
@@ -55,7 +54,7 @@ function PlatformWidget(inProps) {
|
|
|
55
54
|
// PROPS
|
|
56
55
|
const props = (0, system_1.useThemeProps)({
|
|
57
56
|
props: inProps,
|
|
58
|
-
name: PREFIX
|
|
57
|
+
name: constants_1.PREFIX
|
|
59
58
|
});
|
|
60
59
|
const { autoHide, className, onHeightChange, onStateChange } = props, rest = tslib_1.__rest(props, ["autoHide", "className", "onHeightChange", "onStateChange"]);
|
|
61
60
|
// CONTEXT
|
|
@@ -9,13 +9,13 @@
|
|
|
9
9
|
|
|
10
10
|
#### Component Name
|
|
11
11
|
|
|
12
|
-
The name `
|
|
12
|
+
The name `SCPlatformWidget-skeleton-root` can be used when providing style overrides in the theme.
|
|
13
13
|
|
|
14
14
|
#### CSS
|
|
15
15
|
|
|
16
16
|
|Rule Name|Global class|Description|
|
|
17
17
|
|---|---|---|
|
|
18
|
-
|root|.
|
|
18
|
+
|root|.SCPlatformWidget-skeleton-root|Styles applied to the root element.|
|
|
19
19
|
*
|
|
20
20
|
*/
|
|
21
21
|
export default function PlatformWidgetSkeleton(): JSX.Element;
|
|
@@ -4,15 +4,14 @@ const tslib_1 = require("tslib");
|
|
|
4
4
|
const react_1 = tslib_1.__importDefault(require("react"));
|
|
5
5
|
const Skeleton_1 = require("../Skeleton");
|
|
6
6
|
const styles_1 = require("@mui/material/styles");
|
|
7
|
-
const
|
|
7
|
+
const constants_1 = require("./constants");
|
|
8
8
|
const classes = {
|
|
9
|
-
root: `${PREFIX}-root`
|
|
9
|
+
root: `${constants_1.PREFIX}-skeleton-root`
|
|
10
10
|
};
|
|
11
11
|
const Root = (0, styles_1.styled)(Skeleton_1.GenericSkeleton, {
|
|
12
|
-
name: PREFIX,
|
|
13
|
-
slot: '
|
|
14
|
-
|
|
15
|
-
})(({ theme }) => ({}));
|
|
12
|
+
name: constants_1.PREFIX,
|
|
13
|
+
slot: 'SkeletonRoot'
|
|
14
|
+
})(() => ({}));
|
|
16
15
|
/**
|
|
17
16
|
* > API documentation for the Community-JS Platform Skeleton component. Learn about the available props and the CSS API.
|
|
18
17
|
|
|
@@ -24,13 +23,13 @@ const Root = (0, styles_1.styled)(Skeleton_1.GenericSkeleton, {
|
|
|
24
23
|
|
|
25
24
|
#### Component Name
|
|
26
25
|
|
|
27
|
-
The name `
|
|
26
|
+
The name `SCPlatformWidget-skeleton-root` can be used when providing style overrides in the theme.
|
|
28
27
|
|
|
29
28
|
#### CSS
|
|
30
29
|
|
|
31
30
|
|Rule Name|Global class|Description|
|
|
32
31
|
|---|---|---|
|
|
33
|
-
|root|.
|
|
32
|
+
|root|.SCPlatformWidget-skeleton-root|Styles applied to the root element.|
|
|
34
33
|
*
|
|
35
34
|
*/
|
|
36
35
|
function PlatformWidgetSkeleton() {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PREFIX = "SCPlatformWidget";
|
|
@@ -30,16 +30,17 @@ export interface PollSnippetProps {
|
|
|
30
30
|
import {PollSnippet} from '@selfcommunity/react-ui';
|
|
31
31
|
```
|
|
32
32
|
#### Component Name
|
|
33
|
-
The name `
|
|
33
|
+
The name `SCPollSuggestionWidget-poll-snippet-root` can be used when providing style overrides in the theme.
|
|
34
34
|
|
|
35
35
|
#### CSS
|
|
36
36
|
|
|
37
37
|
|Rule Name|Global class|Description|
|
|
38
38
|
|---|---|---|
|
|
39
|
-
|root|.
|
|
40
|
-
|
|
|
41
|
-
|
|
|
42
|
-
|
|
|
39
|
+
|root|.SCPollSuggestionWidget-poll-snippet-root|Styles applied to the root element.|
|
|
40
|
+
|avatar|.SCPollSuggestionWidget-avatar|Styles applied to the avatar element.|
|
|
41
|
+
|username|.SCPollSuggestionWidget-username|Styles applied to the username element.|
|
|
42
|
+
|title|.SCPollSuggestionWidget-title|Styles applied to the title element.|
|
|
43
|
+
|activityAt|.SCPollSuggestionWidget-activity-at|Styles applied to activity section.|
|
|
43
44
|
|
|
44
45
|
* @param inProps
|
|
45
46
|
*/
|
|
@@ -13,42 +13,18 @@ const DateTimeAgo_1 = tslib_1.__importDefault(require("../../../shared/DateTimeA
|
|
|
13
13
|
const BaseItem_1 = tslib_1.__importDefault(require("../../../shared/BaseItem"));
|
|
14
14
|
const UserDeletedSnackBar_1 = tslib_1.__importDefault(require("../../../shared/UserDeletedSnackBar"));
|
|
15
15
|
const UserAvatar_1 = tslib_1.__importDefault(require("../../../shared/UserAvatar"));
|
|
16
|
-
const
|
|
16
|
+
const constants_1 = require("../constants");
|
|
17
17
|
const classes = {
|
|
18
|
-
root: `${PREFIX}-root`,
|
|
19
|
-
avatar: `${PREFIX}-avatar`,
|
|
20
|
-
username: `${PREFIX}-username`,
|
|
21
|
-
title: `${PREFIX}-title`,
|
|
22
|
-
activityAt: `${PREFIX}-activity-at`
|
|
18
|
+
root: `${constants_1.PREFIX}-poll-snippet-root`,
|
|
19
|
+
avatar: `${constants_1.PREFIX}-avatar`,
|
|
20
|
+
username: `${constants_1.PREFIX}-username`,
|
|
21
|
+
title: `${constants_1.PREFIX}-title`,
|
|
22
|
+
activityAt: `${constants_1.PREFIX}-activity-at`
|
|
23
23
|
};
|
|
24
24
|
const Root = (0, styles_1.styled)(BaseItem_1.default, {
|
|
25
|
-
name: PREFIX,
|
|
26
|
-
slot: '
|
|
27
|
-
|
|
28
|
-
})(({ theme }) => ({
|
|
29
|
-
[`&.${classes.root} > div`]: {
|
|
30
|
-
alignItems: 'flex-start',
|
|
31
|
-
paddingTop: theme.spacing(1)
|
|
32
|
-
},
|
|
33
|
-
'& .SCBaseItem-text': {
|
|
34
|
-
marginTop: 0
|
|
35
|
-
},
|
|
36
|
-
[`& .${classes.username}`]: {
|
|
37
|
-
color: theme.palette.text.primary,
|
|
38
|
-
fontWeight: theme.typography.fontWeightBold,
|
|
39
|
-
textDecoration: 'none'
|
|
40
|
-
},
|
|
41
|
-
[`& .${classes.title}`]: {},
|
|
42
|
-
[`& .${classes.avatar}`]: {
|
|
43
|
-
width: theme.selfcommunity.user.avatar.sizeMedium,
|
|
44
|
-
height: theme.selfcommunity.user.avatar.sizeMedium
|
|
45
|
-
},
|
|
46
|
-
[`& .${classes.activityAt}`]: {
|
|
47
|
-
textDecoration: 'none',
|
|
48
|
-
color: 'inherit',
|
|
49
|
-
marginTop: 3
|
|
50
|
-
}
|
|
51
|
-
}));
|
|
25
|
+
name: constants_1.PREFIX,
|
|
26
|
+
slot: 'PollSnippetRoot'
|
|
27
|
+
})(() => ({}));
|
|
52
28
|
/**
|
|
53
29
|
* > API documentation for the Community-JS PollSnippet component. Learn about the available props and the CSS API.
|
|
54
30
|
*
|
|
@@ -59,16 +35,17 @@ const Root = (0, styles_1.styled)(BaseItem_1.default, {
|
|
|
59
35
|
import {PollSnippet} from '@selfcommunity/react-ui';
|
|
60
36
|
```
|
|
61
37
|
#### Component Name
|
|
62
|
-
The name `
|
|
38
|
+
The name `SCPollSuggestionWidget-poll-snippet-root` can be used when providing style overrides in the theme.
|
|
63
39
|
|
|
64
40
|
#### CSS
|
|
65
41
|
|
|
66
42
|
|Rule Name|Global class|Description|
|
|
67
43
|
|---|---|---|
|
|
68
|
-
|root|.
|
|
69
|
-
|
|
|
70
|
-
|
|
|
71
|
-
|
|
|
44
|
+
|root|.SCPollSuggestionWidget-poll-snippet-root|Styles applied to the root element.|
|
|
45
|
+
|avatar|.SCPollSuggestionWidget-avatar|Styles applied to the avatar element.|
|
|
46
|
+
|username|.SCPollSuggestionWidget-username|Styles applied to the username element.|
|
|
47
|
+
|title|.SCPollSuggestionWidget-title|Styles applied to the title element.|
|
|
48
|
+
|activityAt|.SCPollSuggestionWidget-activity-at|Styles applied to activity section.|
|
|
72
49
|
|
|
73
50
|
* @param inProps
|
|
74
51
|
*/
|
|
@@ -76,7 +53,7 @@ function PollSnippet(inProps) {
|
|
|
76
53
|
// PROPS
|
|
77
54
|
const props = (0, system_1.useThemeProps)({
|
|
78
55
|
props: inProps,
|
|
79
|
-
name: PREFIX
|
|
56
|
+
name: constants_1.PREFIX
|
|
80
57
|
});
|
|
81
58
|
const { feedObj = null, className = null, autoHide = false } = props, rest = tslib_1.__rest(props, ["feedObj", "className", "autoHide"]);
|
|
82
59
|
// CONTEXT
|
|
@@ -61,6 +61,7 @@ export interface PollSuggestionWidgetProps extends VirtualScrollerItemProps, Wid
|
|
|
61
61
|
|showMore|.SCPollSuggestionWidget-show-more|Styles applied to show more button element.|
|
|
62
62
|
|dialogRoot|.SCPollSuggestionWidget-dialog-root|Styles applied to the root dialog element.|
|
|
63
63
|
|endMessage|.SCPollSuggestionWidget-end-message|Styles applied to the end message element.|
|
|
64
|
+
|pollSnippet|.SCPollSuggestionWidget-poll-snippet|Styles applied to the poll snippet element.|
|
|
64
65
|
|
|
65
66
|
*
|
|
66
67
|
* @param inProps
|
|
@@ -19,25 +19,24 @@ const system_1 = require("@mui/system");
|
|
|
19
19
|
const PollSnippet_1 = tslib_1.__importStar(require("./PollSnippet"));
|
|
20
20
|
const HiddenPlaceholder_1 = tslib_1.__importDefault(require("../../shared/HiddenPlaceholder"));
|
|
21
21
|
const widget_1 = require("../../utils/widget");
|
|
22
|
-
const
|
|
22
|
+
const constants_1 = require("./constants");
|
|
23
23
|
const classes = {
|
|
24
|
-
root: `${PREFIX}-root`,
|
|
25
|
-
title: `${PREFIX}-title`,
|
|
26
|
-
noResults: `${PREFIX}-no-results`,
|
|
27
|
-
showMore: `${PREFIX}-show-more`,
|
|
28
|
-
dialogRoot: `${PREFIX}-dialog-root`,
|
|
29
|
-
endMessage: `${PREFIX}-end-message
|
|
24
|
+
root: `${constants_1.PREFIX}-root`,
|
|
25
|
+
title: `${constants_1.PREFIX}-title`,
|
|
26
|
+
noResults: `${constants_1.PREFIX}-no-results`,
|
|
27
|
+
showMore: `${constants_1.PREFIX}-show-more`,
|
|
28
|
+
dialogRoot: `${constants_1.PREFIX}-dialog-root`,
|
|
29
|
+
endMessage: `${constants_1.PREFIX}-end-message`,
|
|
30
|
+
pollSnippet: `${constants_1.PREFIX}-poll-snippet`
|
|
30
31
|
};
|
|
31
32
|
const Root = (0, styles_1.styled)(Widget_1.default, {
|
|
32
|
-
name: PREFIX,
|
|
33
|
-
slot: 'Root'
|
|
34
|
-
|
|
35
|
-
})(({ theme }) => ({}));
|
|
33
|
+
name: constants_1.PREFIX,
|
|
34
|
+
slot: 'Root'
|
|
35
|
+
})(() => ({}));
|
|
36
36
|
const DialogRoot = (0, styles_1.styled)(BaseDialog_1.default, {
|
|
37
|
-
name: PREFIX,
|
|
38
|
-
slot: '
|
|
39
|
-
|
|
40
|
-
})(({ theme }) => ({}));
|
|
37
|
+
name: constants_1.PREFIX,
|
|
38
|
+
slot: 'DialogRoot'
|
|
39
|
+
})(() => ({}));
|
|
41
40
|
/**
|
|
42
41
|
* > API documentation for the Community-JS Poll Suggestion Widget component. Learn about the available props and the CSS API.
|
|
43
42
|
*
|
|
@@ -65,6 +64,7 @@ const DialogRoot = (0, styles_1.styled)(BaseDialog_1.default, {
|
|
|
65
64
|
|showMore|.SCPollSuggestionWidget-show-more|Styles applied to show more button element.|
|
|
66
65
|
|dialogRoot|.SCPollSuggestionWidget-dialog-root|Styles applied to the root dialog element.|
|
|
67
66
|
|endMessage|.SCPollSuggestionWidget-end-message|Styles applied to the end message element.|
|
|
67
|
+
|pollSnippet|.SCPollSuggestionWidget-poll-snippet|Styles applied to the poll snippet element.|
|
|
68
68
|
|
|
69
69
|
*
|
|
70
70
|
* @param inProps
|
|
@@ -73,7 +73,7 @@ function PollSuggestionWidget(inProps) {
|
|
|
73
73
|
// PROPS
|
|
74
74
|
const props = (0, system_1.useThemeProps)({
|
|
75
75
|
props: inProps,
|
|
76
|
-
name: PREFIX
|
|
76
|
+
name: constants_1.PREFIX
|
|
77
77
|
});
|
|
78
78
|
const { autoHide = true, limit = 3, PollSnippetProps = {}, className, cacheStrategy = utils_1.CacheStrategies.NETWORK_ONLY, onHeightChange, onStateChange, DialogProps = {} } = props, rest = tslib_1.__rest(props, ["autoHide", "limit", "PollSnippetProps", "className", "cacheStrategy", "onHeightChange", "onStateChange", "DialogProps"]);
|
|
79
79
|
// STATE
|
|
@@ -169,14 +169,14 @@ function PollSuggestionWidget(inProps) {
|
|
|
169
169
|
!state.count ? (react_1.default.createElement(material_1.Typography, { className: classes.noResults, variant: "body2" },
|
|
170
170
|
react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.pollSuggestionWidget.noResults", defaultMessage: "ui.pollSuggestionWidget.noResults" }))) : (react_1.default.createElement(react_1.default.Fragment, null,
|
|
171
171
|
react_1.default.createElement(List_1.default, null, state.results.slice(0, state.visibleItems).map((obj) => (react_1.default.createElement(material_1.ListItem, { key: obj.id },
|
|
172
|
-
react_1.default.createElement(PollSnippet_1.default, Object.assign({ elevation: 0, feedObj: obj }, PollSnippetProps)))))),
|
|
172
|
+
react_1.default.createElement(PollSnippet_1.default, Object.assign({ className: classes.pollSnippet, elevation: 0, feedObj: obj }, PollSnippetProps)))))),
|
|
173
173
|
state.count > state.visibleItems && (react_1.default.createElement(material_1.Button, { className: classes.showMore, onClick: handleToggleDialogOpen },
|
|
174
174
|
react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.pollSuggestionWidget.button.showAll", defaultMessage: "ui.pollSuggestionWidget.button.showAll" }))))),
|
|
175
175
|
openDialog && (react_1.default.createElement(DialogRoot, Object.assign({ className: classes.dialogRoot, title: react_1.default.createElement(react_intl_1.FormattedMessage, { defaultMessage: "ui.pollSuggestionWidget.title", id: "ui.pollSuggestionWidget.title" }), onClose: handleToggleDialogOpen, open: openDialog }, DialogProps),
|
|
176
176
|
react_1.default.createElement(InfiniteScroll_1.default, { dataLength: state.results.length, next: handleNext, hasMoreNext: Boolean(state.next), loaderNext: react_1.default.createElement(PollSnippet_1.PollSnippetSkeleton, Object.assign({ elevation: 0 }, PollSnippetProps)), height: isMobile ? '100%' : 400, endMessage: react_1.default.createElement(material_1.Typography, { className: classes.endMessage },
|
|
177
177
|
react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.pollSuggestionWidget.noMoreResults", defaultMessage: "ui.pollSuggestionWidget.noMoreResults" })) },
|
|
178
178
|
react_1.default.createElement(List_1.default, null, state.results.map((obj) => (react_1.default.createElement(material_1.ListItem, { key: obj.id },
|
|
179
|
-
react_1.default.createElement(PollSnippet_1.default, Object.assign({ elevation: 0, feedObj: obj }, PollSnippetProps)))))))))));
|
|
179
|
+
react_1.default.createElement(PollSnippet_1.default, Object.assign({ className: classes.pollSnippet, elevation: 0, feedObj: obj }, PollSnippetProps)))))))))));
|
|
180
180
|
return (react_1.default.createElement(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, rest), content));
|
|
181
181
|
}
|
|
182
182
|
exports.default = PollSuggestionWidget;
|
|
@@ -9,14 +9,14 @@
|
|
|
9
9
|
|
|
10
10
|
#### Component Name
|
|
11
11
|
|
|
12
|
-
The name `
|
|
12
|
+
The name `SCPollSuggestionWidget-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|.SCPollSuggestionWidget-skeleton-root|Styles applied to the root element.|
|
|
19
|
+
|list|.SCPollSuggestionWidget-list|Styles applied to the list element.|
|
|
20
20
|
*
|
|
21
21
|
*/
|
|
22
22
|
export default function PollSuggestionWidgetSkeleton(props: any): JSX.Element;
|
|
@@ -7,12 +7,15 @@ const Widget_1 = tslib_1.__importDefault(require("../Widget"));
|
|
|
7
7
|
const material_1 = require("@mui/material");
|
|
8
8
|
const PollSnippet_1 = require("./PollSnippet");
|
|
9
9
|
const Skeleton_1 = tslib_1.__importDefault(require("@mui/material/Skeleton"));
|
|
10
|
-
const
|
|
10
|
+
const constants_1 = require("./constants");
|
|
11
11
|
const classes = {
|
|
12
|
-
root: `${PREFIX}-root`,
|
|
13
|
-
list: `${PREFIX}-list`
|
|
12
|
+
root: `${constants_1.PREFIX}-skeleton-root`,
|
|
13
|
+
list: `${constants_1.PREFIX}-list`
|
|
14
14
|
};
|
|
15
|
-
const Root = (0, styles_1.styled)(Widget_1.default
|
|
15
|
+
const Root = (0, styles_1.styled)(Widget_1.default, {
|
|
16
|
+
name: constants_1.PREFIX,
|
|
17
|
+
slot: 'SkeletonRoot'
|
|
18
|
+
})(() => ({}));
|
|
16
19
|
/**
|
|
17
20
|
* > API documentation for the Community-JS Poll Suggestion Widget Skeleton component. Learn about the available props and the CSS API.
|
|
18
21
|
|
|
@@ -24,14 +27,14 @@ const Root = (0, styles_1.styled)(Widget_1.default)(({ theme }) => ({}));
|
|
|
24
27
|
|
|
25
28
|
#### Component Name
|
|
26
29
|
|
|
27
|
-
The name `
|
|
30
|
+
The name `SCPollSuggestionWidget-skeleton-root` can be used when providing style overrides in the theme.
|
|
28
31
|
|
|
29
32
|
#### CSS
|
|
30
33
|
|
|
31
34
|
|Rule Name|Global class|Description|
|
|
32
35
|
|---|---|---|
|
|
33
|
-
|root|.
|
|
34
|
-
|list|.
|
|
36
|
+
|root|.SCPollSuggestionWidget-skeleton-root|Styles applied to the root element.|
|
|
37
|
+
|list|.SCPollSuggestionWidget-list|Styles applied to the list element.|
|
|
35
38
|
*
|
|
36
39
|
*/
|
|
37
40
|
function PollSuggestionWidgetSkeleton(props) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PREFIX = "SCPollSuggestionWidget";
|