@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
|
@@ -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
|
*/
|
|
@@ -11,9 +11,9 @@ import DateTimeAgo from '../../../shared/DateTimeAgo';
|
|
|
11
11
|
import BaseItem from '../../../shared/BaseItem';
|
|
12
12
|
import UserDeletedSnackBar from '../../../shared/UserDeletedSnackBar';
|
|
13
13
|
import UserAvatar from '../../../shared/UserAvatar';
|
|
14
|
-
|
|
14
|
+
import { PREFIX } from '../constants';
|
|
15
15
|
const classes = {
|
|
16
|
-
root: `${PREFIX}-root`,
|
|
16
|
+
root: `${PREFIX}-poll-snippet-root`,
|
|
17
17
|
avatar: `${PREFIX}-avatar`,
|
|
18
18
|
username: `${PREFIX}-username`,
|
|
19
19
|
title: `${PREFIX}-title`,
|
|
@@ -21,32 +21,8 @@ const classes = {
|
|
|
21
21
|
};
|
|
22
22
|
const Root = styled(BaseItem, {
|
|
23
23
|
name: PREFIX,
|
|
24
|
-
slot: '
|
|
25
|
-
|
|
26
|
-
})(({ theme }) => ({
|
|
27
|
-
[`&.${classes.root} > div`]: {
|
|
28
|
-
alignItems: 'flex-start',
|
|
29
|
-
paddingTop: theme.spacing(1)
|
|
30
|
-
},
|
|
31
|
-
'& .SCBaseItem-text': {
|
|
32
|
-
marginTop: 0
|
|
33
|
-
},
|
|
34
|
-
[`& .${classes.username}`]: {
|
|
35
|
-
color: theme.palette.text.primary,
|
|
36
|
-
fontWeight: theme.typography.fontWeightBold,
|
|
37
|
-
textDecoration: 'none'
|
|
38
|
-
},
|
|
39
|
-
[`& .${classes.title}`]: {},
|
|
40
|
-
[`& .${classes.avatar}`]: {
|
|
41
|
-
width: theme.selfcommunity.user.avatar.sizeMedium,
|
|
42
|
-
height: theme.selfcommunity.user.avatar.sizeMedium
|
|
43
|
-
},
|
|
44
|
-
[`& .${classes.activityAt}`]: {
|
|
45
|
-
textDecoration: 'none',
|
|
46
|
-
color: 'inherit',
|
|
47
|
-
marginTop: 3
|
|
48
|
-
}
|
|
49
|
-
}));
|
|
24
|
+
slot: 'PollSnippetRoot'
|
|
25
|
+
})(() => ({}));
|
|
50
26
|
/**
|
|
51
27
|
* > API documentation for the Community-JS PollSnippet component. Learn about the available props and the CSS API.
|
|
52
28
|
*
|
|
@@ -57,16 +33,17 @@ const Root = styled(BaseItem, {
|
|
|
57
33
|
import {PollSnippet} from '@selfcommunity/react-ui';
|
|
58
34
|
```
|
|
59
35
|
#### Component Name
|
|
60
|
-
The name `
|
|
36
|
+
The name `SCPollSuggestionWidget-poll-snippet-root` can be used when providing style overrides in the theme.
|
|
61
37
|
|
|
62
38
|
#### CSS
|
|
63
39
|
|
|
64
40
|
|Rule Name|Global class|Description|
|
|
65
41
|
|---|---|---|
|
|
66
|
-
|root|.
|
|
67
|
-
|
|
|
68
|
-
|
|
|
69
|
-
|
|
|
42
|
+
|root|.SCPollSuggestionWidget-poll-snippet-root|Styles applied to the root element.|
|
|
43
|
+
|avatar|.SCPollSuggestionWidget-avatar|Styles applied to the avatar element.|
|
|
44
|
+
|username|.SCPollSuggestionWidget-username|Styles applied to the username element.|
|
|
45
|
+
|title|.SCPollSuggestionWidget-title|Styles applied to the title element.|
|
|
46
|
+
|activityAt|.SCPollSuggestionWidget-activity-at|Styles applied to activity section.|
|
|
70
47
|
|
|
71
48
|
* @param inProps
|
|
72
49
|
*/
|
|
@@ -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
|
|
@@ -17,25 +17,24 @@ import { useThemeProps } from '@mui/system';
|
|
|
17
17
|
import PollSnippet, { PollSnippetSkeleton } from './PollSnippet';
|
|
18
18
|
import HiddenPlaceholder from '../../shared/HiddenPlaceholder';
|
|
19
19
|
import { actionWidgetTypes, dataWidgetReducer, stateWidgetInitializer } from '../../utils/widget';
|
|
20
|
-
|
|
20
|
+
import { PREFIX } from './constants';
|
|
21
21
|
const classes = {
|
|
22
22
|
root: `${PREFIX}-root`,
|
|
23
23
|
title: `${PREFIX}-title`,
|
|
24
24
|
noResults: `${PREFIX}-no-results`,
|
|
25
25
|
showMore: `${PREFIX}-show-more`,
|
|
26
26
|
dialogRoot: `${PREFIX}-dialog-root`,
|
|
27
|
-
endMessage: `${PREFIX}-end-message
|
|
27
|
+
endMessage: `${PREFIX}-end-message`,
|
|
28
|
+
pollSnippet: `${PREFIX}-poll-snippet`
|
|
28
29
|
};
|
|
29
30
|
const Root = styled(Widget, {
|
|
30
31
|
name: PREFIX,
|
|
31
|
-
slot: 'Root'
|
|
32
|
-
|
|
33
|
-
})(({ theme }) => ({}));
|
|
32
|
+
slot: 'Root'
|
|
33
|
+
})(() => ({}));
|
|
34
34
|
const DialogRoot = styled(BaseDialog, {
|
|
35
35
|
name: PREFIX,
|
|
36
|
-
slot: '
|
|
37
|
-
|
|
38
|
-
})(({ theme }) => ({}));
|
|
36
|
+
slot: 'DialogRoot'
|
|
37
|
+
})(() => ({}));
|
|
39
38
|
/**
|
|
40
39
|
* > API documentation for the Community-JS Poll Suggestion Widget component. Learn about the available props and the CSS API.
|
|
41
40
|
*
|
|
@@ -63,6 +62,7 @@ const DialogRoot = styled(BaseDialog, {
|
|
|
63
62
|
|showMore|.SCPollSuggestionWidget-show-more|Styles applied to show more button element.|
|
|
64
63
|
|dialogRoot|.SCPollSuggestionWidget-dialog-root|Styles applied to the root dialog element.|
|
|
65
64
|
|endMessage|.SCPollSuggestionWidget-end-message|Styles applied to the end message element.|
|
|
65
|
+
|pollSnippet|.SCPollSuggestionWidget-poll-snippet|Styles applied to the poll snippet element.|
|
|
66
66
|
|
|
67
67
|
*
|
|
68
68
|
* @param inProps
|
|
@@ -167,13 +167,13 @@ export default function PollSuggestionWidget(inProps) {
|
|
|
167
167
|
!state.count ? (React.createElement(Typography, { className: classes.noResults, variant: "body2" },
|
|
168
168
|
React.createElement(FormattedMessage, { id: "ui.pollSuggestionWidget.noResults", defaultMessage: "ui.pollSuggestionWidget.noResults" }))) : (React.createElement(React.Fragment, null,
|
|
169
169
|
React.createElement(List, null, state.results.slice(0, state.visibleItems).map((obj) => (React.createElement(ListItem, { key: obj.id },
|
|
170
|
-
React.createElement(PollSnippet, Object.assign({ elevation: 0, feedObj: obj }, PollSnippetProps)))))),
|
|
170
|
+
React.createElement(PollSnippet, Object.assign({ className: classes.pollSnippet, elevation: 0, feedObj: obj }, PollSnippetProps)))))),
|
|
171
171
|
state.count > state.visibleItems && (React.createElement(Button, { className: classes.showMore, onClick: handleToggleDialogOpen },
|
|
172
172
|
React.createElement(FormattedMessage, { id: "ui.pollSuggestionWidget.button.showAll", defaultMessage: "ui.pollSuggestionWidget.button.showAll" }))))),
|
|
173
173
|
openDialog && (React.createElement(DialogRoot, Object.assign({ className: classes.dialogRoot, title: React.createElement(FormattedMessage, { defaultMessage: "ui.pollSuggestionWidget.title", id: "ui.pollSuggestionWidget.title" }), onClose: handleToggleDialogOpen, open: openDialog }, DialogProps),
|
|
174
174
|
React.createElement(InfiniteScroll, { dataLength: state.results.length, next: handleNext, hasMoreNext: Boolean(state.next), loaderNext: React.createElement(PollSnippetSkeleton, Object.assign({ elevation: 0 }, PollSnippetProps)), height: isMobile ? '100%' : 400, endMessage: React.createElement(Typography, { className: classes.endMessage },
|
|
175
175
|
React.createElement(FormattedMessage, { id: "ui.pollSuggestionWidget.noMoreResults", defaultMessage: "ui.pollSuggestionWidget.noMoreResults" })) },
|
|
176
176
|
React.createElement(List, null, state.results.map((obj) => (React.createElement(ListItem, { key: obj.id },
|
|
177
|
-
React.createElement(PollSnippet, Object.assign({ elevation: 0, feedObj: obj }, PollSnippetProps)))))))))));
|
|
177
|
+
React.createElement(PollSnippet, Object.assign({ className: classes.pollSnippet, elevation: 0, feedObj: obj }, PollSnippetProps)))))))))));
|
|
178
178
|
return (React.createElement(Root, Object.assign({ className: classNames(classes.root, className) }, rest), content));
|
|
179
179
|
}
|
|
@@ -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;
|
|
@@ -4,12 +4,15 @@ import Widget from '../Widget';
|
|
|
4
4
|
import { CardContent, List, ListItem } from '@mui/material';
|
|
5
5
|
import { PollSnippetSkeleton } from './PollSnippet';
|
|
6
6
|
import Skeleton from '@mui/material/Skeleton';
|
|
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 Poll 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 `SCPollSuggestionWidget-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|.SCPollSuggestionWidget-skeleton-root|Styles applied to the root element.|
|
|
34
|
+
|list|.SCPollSuggestionWidget-list|Styles applied to the list element.|
|
|
32
35
|
*
|
|
33
36
|
*/
|
|
34
37
|
export default function PollSuggestionWidgetSkeleton(props) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PREFIX = "SCPollSuggestionWidget";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const PREFIX = 'SCPollSuggestionWidget';
|
|
@@ -8,7 +8,7 @@ import { useThemeProps } from '@mui/system';
|
|
|
8
8
|
import { SCFeatureName, SCPrivateMessageStatusType } from '@selfcommunity/types';
|
|
9
9
|
import PrivateMessageThread from '../PrivateMessageThread';
|
|
10
10
|
import PrivateMessageSnippets from '../PrivateMessageSnippets';
|
|
11
|
-
|
|
11
|
+
import { PREFIX } from './constants';
|
|
12
12
|
const classes = {
|
|
13
13
|
root: `${PREFIX}-root`,
|
|
14
14
|
snippetsBox: `${PREFIX}-snippets-box`,
|
|
@@ -17,9 +17,8 @@ const classes = {
|
|
|
17
17
|
};
|
|
18
18
|
const Root = styled(Grid, {
|
|
19
19
|
name: PREFIX,
|
|
20
|
-
slot: 'Root'
|
|
21
|
-
|
|
22
|
-
})(({ theme }) => ({}));
|
|
20
|
+
slot: 'Root'
|
|
21
|
+
})(() => ({}));
|
|
23
22
|
/**
|
|
24
23
|
*
|
|
25
24
|
* > API documentation for the Community-JS Private Messages component. Learn about the available props and the CSS API.
|
|
@@ -24,9 +24,9 @@ export declare type PrivateMessageComponentProps = React.PropsWithChildren<Priva
|
|
|
24
24
|
|
|
25
25
|
|Rule Name|Global class|Description|
|
|
26
26
|
|---|---|---|
|
|
27
|
-
|root|.
|
|
28
|
-
|snippetsSection|.
|
|
29
|
-
|threadSection|.
|
|
27
|
+
|root|.SCPrivateMessageComponent-skeleton-root|Styles applied to the root element.|
|
|
28
|
+
|snippetsSection|.SCPrivateMessageComponent-snippets-section|Styles applied to the snippets section|
|
|
29
|
+
|threadSection|.SCPrivateMessageComponent-thread-section|Styles applied to the thread section|
|
|
30
30
|
*
|
|
31
31
|
*/
|
|
32
32
|
export default function PrivateMessageComponentSkeleton(props: PrivateMessageComponentProps): JSX.Element;
|
|
@@ -4,16 +4,15 @@ import { Grid, useMediaQuery, useTheme } from '@mui/material';
|
|
|
4
4
|
import PrivateMessageSnippetsSkeleton from '../PrivateMessageSnippets/Skeleton';
|
|
5
5
|
import PrivateMessageThreadSkeleton from '../PrivateMessageThread/Skeleton';
|
|
6
6
|
import classNames from 'classnames';
|
|
7
|
-
|
|
7
|
+
import { PREFIX } from './constants';
|
|
8
8
|
const classes = {
|
|
9
|
-
root: `${PREFIX}-root`,
|
|
9
|
+
root: `${PREFIX}-skeleton-root`,
|
|
10
10
|
snippetsSection: `${PREFIX}-snippets-section`,
|
|
11
11
|
threadSection: `${PREFIX}-thread-section`
|
|
12
12
|
};
|
|
13
13
|
const Root = styled(Grid, {
|
|
14
14
|
name: PREFIX,
|
|
15
|
-
slot: '
|
|
16
|
-
overridesResolver: (props, styles) => styles.root
|
|
15
|
+
slot: 'SkeletonRoot'
|
|
17
16
|
})(() => ({}));
|
|
18
17
|
/**
|
|
19
18
|
* > API documentation for the Community-JS Private Messages Skeleton Template. Learn about the available props and the CSS API.
|
|
@@ -32,9 +31,9 @@ const Root = styled(Grid, {
|
|
|
32
31
|
|
|
33
32
|
|Rule Name|Global class|Description|
|
|
34
33
|
|---|---|---|
|
|
35
|
-
|root|.
|
|
36
|
-
|snippetsSection|.
|
|
37
|
-
|threadSection|.
|
|
34
|
+
|root|.SCPrivateMessageComponent-skeleton-root|Styles applied to the root element.|
|
|
35
|
+
|snippetsSection|.SCPrivateMessageComponent-snippets-section|Styles applied to the snippets section|
|
|
36
|
+
|threadSection|.SCPrivateMessageComponent-thread-section|Styles applied to the thread section|
|
|
38
37
|
*
|
|
39
38
|
*/
|
|
40
39
|
export default function PrivateMessageComponentSkeleton(props) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PREFIX = "SCPrivateMessageComponent";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const PREFIX = 'SCPrivateMessageComponent';
|
|
@@ -14,12 +14,12 @@ import { FormattedMessage } from 'react-intl';
|
|
|
14
14
|
import { pdfImagePlaceholder } from '../../../utils/thumbnailCoverter';
|
|
15
15
|
import classNames from 'classnames';
|
|
16
16
|
import { bytesToSize } from '../../../utils/sizeCoverter';
|
|
17
|
+
import { PREFIX } from '../constants';
|
|
17
18
|
const MAX_FILE_SIZE = 10485760;
|
|
18
19
|
const UploadButton = asUploadButton(forwardRef((props, ref) => (React.createElement(IconButton, Object.assign({}, props, { ref: ref, color: "inherit" }),
|
|
19
20
|
React.createElement(Icon, null, "upload")))));
|
|
20
|
-
const PREFIX = 'SCMessageMediaUploader';
|
|
21
21
|
const classes = {
|
|
22
|
-
root: `${PREFIX}-root`,
|
|
22
|
+
root: `${PREFIX}-message-media-uploader-root`,
|
|
23
23
|
uploadSection: `${PREFIX}-upload-section`,
|
|
24
24
|
uploadButton: `${PREFIX}-upload-button`,
|
|
25
25
|
closeButton: `${PREFIX}-close-button`,
|
|
@@ -31,9 +31,8 @@ const classes = {
|
|
|
31
31
|
};
|
|
32
32
|
const Root = styled(Widget, {
|
|
33
33
|
name: PREFIX,
|
|
34
|
-
slot: '
|
|
35
|
-
|
|
36
|
-
})(({ theme }) => ({}));
|
|
34
|
+
slot: 'MessageMediaUploader'
|
|
35
|
+
})(() => ({}));
|
|
37
36
|
export default function MessageMediaUploader(props) {
|
|
38
37
|
//PROPS
|
|
39
38
|
const { className, forwardMessageFile, onClose, isUploading, action } = props;
|
|
@@ -48,7 +48,7 @@ export interface PrivateMessageEditorProps {
|
|
|
48
48
|
|---|---|---|
|
|
49
49
|
|root|.SCPrivateMessageEditor-root|Styles applied to the root element.|
|
|
50
50
|
|messageInput|.SCPrivateMessageEditor-card|Styles applied to the message input element.|
|
|
51
|
-
|
|
|
51
|
+
|mediaUploader|.SCPrivateMessageEditor-media-uploader|Styles applied to the message media uploader section.|
|
|
52
52
|
|emojiSection|.SCPrivateMessageEditor-emoji-section|Styles applied to the emoji section.|
|
|
53
53
|
|
|
54
54
|
* @param inProps
|
|
@@ -9,25 +9,24 @@ import { defineMessages, FormattedMessage, useIntl } from 'react-intl';
|
|
|
9
9
|
import { useThemeProps } from '@mui/system';
|
|
10
10
|
import EmojiPicker from '../../shared/EmojiPicker';
|
|
11
11
|
import { iOS } from '@selfcommunity/utils';
|
|
12
|
+
import { PREFIX } from './constants';
|
|
12
13
|
const messages = defineMessages({
|
|
13
14
|
placeholder: {
|
|
14
15
|
id: 'ui.privateMessage.editor.placeholder',
|
|
15
16
|
defaultMessage: 'ui.privateMessage.editor.placeholder'
|
|
16
17
|
}
|
|
17
18
|
});
|
|
18
|
-
const PREFIX = 'SCPrivateMessageEditor';
|
|
19
19
|
const classes = {
|
|
20
20
|
root: `${PREFIX}-root`,
|
|
21
21
|
ios: `${PREFIX}-ios`,
|
|
22
22
|
messageInput: `${PREFIX}-message-input`,
|
|
23
|
-
|
|
23
|
+
mediaUploader: `${PREFIX}-media-uploader`,
|
|
24
24
|
emojiSection: `${PREFIX}-emoji-section`
|
|
25
25
|
};
|
|
26
26
|
const Root = styled(Box, {
|
|
27
27
|
name: PREFIX,
|
|
28
|
-
slot: 'Root'
|
|
29
|
-
|
|
30
|
-
})(({ theme }) => ({}));
|
|
28
|
+
slot: 'Root'
|
|
29
|
+
})(() => ({}));
|
|
31
30
|
/**
|
|
32
31
|
* > API documentation for the Community-JS Private Message Editor component. Learn about the available props and the CSS API.
|
|
33
32
|
|
|
@@ -48,7 +47,7 @@ const Root = styled(Box, {
|
|
|
48
47
|
|---|---|---|
|
|
49
48
|
|root|.SCPrivateMessageEditor-root|Styles applied to the root element.|
|
|
50
49
|
|messageInput|.SCPrivateMessageEditor-card|Styles applied to the message input element.|
|
|
51
|
-
|
|
|
50
|
+
|mediaUploader|.SCPrivateMessageEditor-media-uploader|Styles applied to the message media uploader section.|
|
|
52
51
|
|emojiSection|.SCPrivateMessageEditor-emoji-section|Styles applied to the emoji section.|
|
|
53
52
|
|
|
54
53
|
* @param inProps
|
|
@@ -128,7 +127,7 @@ export default function PrivateMessageEditor(inProps) {
|
|
|
128
127
|
React.createElement(FormattedMessage, { id: "ui.privateMessage.editor.error.send.msg", defaultMessage: "ui.privateMessage.editor.error.send.msg" })));
|
|
129
128
|
}
|
|
130
129
|
function renderContent() {
|
|
131
|
-
return (React.createElement(React.Fragment, null, openMediaSection ? (React.createElement(MessageMediaUploader, { className: classes.
|
|
130
|
+
return (React.createElement(React.Fragment, null, openMediaSection ? (React.createElement(MessageMediaUploader, { className: classes.mediaUploader, open: openMediaSection, onClose: handleMediaSectionClose, forwardMessageFile: handleMessageFiles, isUploading: setUploading, action: React.createElement(IconButton, { disabled: (!message && !messageFiles.length) || uploading, onClick: handleMessageSend },
|
|
132
131
|
React.createElement(Icon, null, "send")) })) : (React.createElement(React.Fragment, null,
|
|
133
132
|
openEmojiSection && React.createElement(EmojiPicker, { className: classes.emojiSection, onEmojiClick: handleEmojiClick, width: "100%", searchDisabled: true }),
|
|
134
133
|
React.createElement(TextField, { size: "small", inputRef: ref, disabled: Boolean(messageFiles.length) || openMediaSection, className: classes.messageInput, multiline: true, placeholder: `${intl.formatMessage(messages.placeholder)}`, value: message, onChange: handleMessageInput, maxRows: 2, onSelect: () => setOpenEmojiSection(false), InputProps: {
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { GenericSkeleton } from '../Skeleton';
|
|
3
3
|
import { styled } from '@mui/material/styles';
|
|
4
|
-
|
|
4
|
+
import { PREFIX } from './constants';
|
|
5
5
|
const classes = {
|
|
6
|
-
root: `${PREFIX}-root`
|
|
6
|
+
root: `${PREFIX}-skeleton-root`
|
|
7
7
|
};
|
|
8
8
|
const Root = styled(GenericSkeleton, {
|
|
9
9
|
name: PREFIX,
|
|
10
|
-
slot: '
|
|
11
|
-
|
|
12
|
-
})(({ theme }) => ({}));
|
|
10
|
+
slot: 'SkeletonRoot'
|
|
11
|
+
})(() => ({}));
|
|
13
12
|
/**
|
|
14
13
|
* > API documentation for the Community-JS Message Editor Skeleton component. Learn about the available props and the CSS API.
|
|
15
14
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PREFIX = "SCPrivateMessageEditor";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const PREFIX = 'SCPrivateMessageEditor';
|
|
@@ -9,7 +9,7 @@ import { SCUserContext, SCPreferences, useSCPreferences } from '@selfcommunity/r
|
|
|
9
9
|
import classNames from 'classnames';
|
|
10
10
|
import { useThemeProps } from '@mui/system';
|
|
11
11
|
import UserAvatar from '../../shared/UserAvatar';
|
|
12
|
-
|
|
12
|
+
import { PREFIX } from './constants';
|
|
13
13
|
const classes = {
|
|
14
14
|
root: `${PREFIX}-root`,
|
|
15
15
|
username: `${PREFIX}-username`,
|
|
@@ -20,9 +20,8 @@ const classes = {
|
|
|
20
20
|
};
|
|
21
21
|
const Root = styled(ListItem, {
|
|
22
22
|
name: PREFIX,
|
|
23
|
-
slot: 'Root'
|
|
24
|
-
|
|
25
|
-
})(({ theme }) => ({}));
|
|
23
|
+
slot: 'Root'
|
|
24
|
+
})(() => ({}));
|
|
26
25
|
const PREFERENCES = [SCPreferences.STAFF_STAFF_BADGE_LABEL, SCPreferences.STAFF_STAFF_BADGE_ICON];
|
|
27
26
|
/**
|
|
28
27
|
* > API documentation for the Community-JS PrivateMessageSnippetItem component. Learn about the available props and the CSS API.
|
|
@@ -9,14 +9,14 @@
|
|
|
9
9
|
|
|
10
10
|
#### Component Name
|
|
11
11
|
|
|
12
|
-
The name `
|
|
12
|
+
The name `SCPrivateMessageSnippetItem-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|.SCPrivateMessageSnippetItem-skeleton-root|Styles applied to the root element.|
|
|
19
|
+
|list|.SCPrivateMessageSnippetItem-list|Styles applied to the list element.|
|
|
20
20
|
*
|
|
21
21
|
*/
|
|
22
22
|
export default function PrivateMessageSnippetItemSkeleton(props: any): JSX.Element;
|
|
@@ -5,14 +5,15 @@ import ListItemText from '@mui/material/ListItemText';
|
|
|
5
5
|
import { styled } from '@mui/material/styles';
|
|
6
6
|
import Skeleton from '@mui/material/Skeleton';
|
|
7
7
|
import { useTheme } from '@mui/material';
|
|
8
|
-
|
|
8
|
+
import { PREFIX } from './constants';
|
|
9
9
|
const classes = {
|
|
10
|
-
root: `${PREFIX}-root`,
|
|
10
|
+
root: `${PREFIX}-skeleton-root`,
|
|
11
11
|
list: `${PREFIX}-list`
|
|
12
12
|
};
|
|
13
|
-
const Root = styled(ListItem
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
const Root = styled(ListItem, {
|
|
14
|
+
name: PREFIX,
|
|
15
|
+
slot: 'SkeletonRoot'
|
|
16
|
+
})(() => ({}));
|
|
16
17
|
/**
|
|
17
18
|
* > API documentation for the Community-JS PrivateMessageSnippetItem Skeleton component. Learn about the available props and the CSS API.
|
|
18
19
|
|
|
@@ -24,14 +25,14 @@ const Root = styled(ListItem)(({ theme }) => ({
|
|
|
24
25
|
|
|
25
26
|
#### Component Name
|
|
26
27
|
|
|
27
|
-
The name `
|
|
28
|
+
The name `SCPrivateMessageSnippetItem-skeleton-root` can be used when providing style overrides in the theme.
|
|
28
29
|
|
|
29
30
|
#### CSS
|
|
30
31
|
|
|
31
32
|
|Rule Name|Global class|Description|
|
|
32
33
|
|---|---|---|
|
|
33
|
-
|root|.
|
|
34
|
-
|list|.
|
|
34
|
+
|root|.SCPrivateMessageSnippetItem-skeleton-root|Styles applied to the root element.|
|
|
35
|
+
|list|.SCPrivateMessageSnippetItem-list|Styles applied to the list element.|
|
|
35
36
|
*
|
|
36
37
|
*/
|
|
37
38
|
export default function PrivateMessageSnippetItemSkeleton(props) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PREFIX = "SCPrivateMessageSnippetItem";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const PREFIX = 'SCPrivateMessageSnippetItem';
|
|
@@ -13,13 +13,13 @@ import { SCUserContext, useSCFetchPrivateMessageSnippets } from '@selfcommunity/
|
|
|
13
13
|
import { CacheStrategies } from '@selfcommunity/utils';
|
|
14
14
|
import PrivateMessageSettingsIconButton from '../PrivateMessageSettingsIconButton';
|
|
15
15
|
import useMediaQuery from '@mui/material/useMediaQuery';
|
|
16
|
+
import { PREFIX } from './constants';
|
|
16
17
|
const messages = defineMessages({
|
|
17
18
|
placeholder: {
|
|
18
19
|
id: 'ui.privateMessage.snippets.searchBar.placeholder',
|
|
19
20
|
defaultMessage: 'ui.privateMessage.snippets.searchBar.placeholder'
|
|
20
21
|
}
|
|
21
22
|
});
|
|
22
|
-
const PREFIX = 'SCPrivateMessageSnippets';
|
|
23
23
|
const classes = {
|
|
24
24
|
root: `${PREFIX}-root`,
|
|
25
25
|
searchBar: `${PREFIX}-search-bar`,
|
|
@@ -30,9 +30,8 @@ const classes = {
|
|
|
30
30
|
};
|
|
31
31
|
const Root = styled(Card, {
|
|
32
32
|
name: PREFIX,
|
|
33
|
-
slot: 'Root'
|
|
34
|
-
|
|
35
|
-
})(({ theme }) => ({}));
|
|
33
|
+
slot: 'Root'
|
|
34
|
+
})(() => ({}));
|
|
36
35
|
/**
|
|
37
36
|
* > API documentation for the Community-JS PrivateMessageSnippets component. Learn about the available props and the CSS API.
|
|
38
37
|
*
|
|
@@ -9,16 +9,16 @@
|
|
|
9
9
|
|
|
10
10
|
#### Component Name
|
|
11
11
|
|
|
12
|
-
The name `
|
|
12
|
+
The name `SCPrivateMessageSnippets-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
|
-
|searchBar|.
|
|
20
|
-
|button|.
|
|
21
|
-
|list|.
|
|
18
|
+
|root|.SCPrivateMessageSnippets-skeleton-root|Styles applied to the root element.|
|
|
19
|
+
|searchBar|.SCPrivateMessageSnippets-search-bar|Styles applied to the search bar element.|
|
|
20
|
+
|button|.SCPrivateMessageSnippets-button|Styles applied to the button element.|
|
|
21
|
+
|list|.SCPrivateMessageSnippets-list|Styles applied to the list element.|
|
|
22
22
|
*
|
|
23
23
|
*/
|
|
24
24
|
export default function PrivateMessageSnippetsSkeleton(props: any): JSX.Element;
|
|
@@ -3,14 +3,17 @@ import List from '@mui/material/List';
|
|
|
3
3
|
import { styled } from '@mui/material/styles';
|
|
4
4
|
import PrivateMessageSnippetItemSkeleton from '../PrivateMessageSnippetItem/Skeleton';
|
|
5
5
|
import { Button, Card, CardContent, Skeleton, Stack } from '@mui/material';
|
|
6
|
-
|
|
6
|
+
import { PREFIX } from './constants';
|
|
7
7
|
const classes = {
|
|
8
|
-
root: `${PREFIX}-root`,
|
|
8
|
+
root: `${PREFIX}-skeleton-root`,
|
|
9
9
|
searchBar: `${PREFIX}-search-bar`,
|
|
10
10
|
button: `${PREFIX}-button`,
|
|
11
11
|
list: `${PREFIX}-list`
|
|
12
12
|
};
|
|
13
|
-
const Root = styled(Card
|
|
13
|
+
const Root = styled(Card, {
|
|
14
|
+
name: PREFIX,
|
|
15
|
+
slot: 'SkeletonRoot'
|
|
16
|
+
})(() => ({}));
|
|
14
17
|
/**
|
|
15
18
|
* > API documentation for the Community-JS PrivateMessageSnippets Skeleton component. Learn about the available props and the CSS API.
|
|
16
19
|
|
|
@@ -22,16 +25,16 @@ const Root = styled(Card)(({ theme }) => ({}));
|
|
|
22
25
|
|
|
23
26
|
#### Component Name
|
|
24
27
|
|
|
25
|
-
The name `
|
|
28
|
+
The name `SCPrivateMessageSnippets-skeleton-root` can be used when providing style overrides in the theme.
|
|
26
29
|
|
|
27
30
|
#### CSS
|
|
28
31
|
|
|
29
32
|
|Rule Name|Global class|Description|
|
|
30
33
|
|---|---|---|
|
|
31
|
-
|root|.
|
|
32
|
-
|searchBar|.
|
|
33
|
-
|button|.
|
|
34
|
-
|list|.
|
|
34
|
+
|root|.SCPrivateMessageSnippets-skeleton-root|Styles applied to the root element.|
|
|
35
|
+
|searchBar|.SCPrivateMessageSnippets-search-bar|Styles applied to the search bar element.|
|
|
36
|
+
|button|.SCPrivateMessageSnippets-button|Styles applied to the button element.|
|
|
37
|
+
|list|.SCPrivateMessageSnippets-list|Styles applied to the list element.|
|
|
35
38
|
*
|
|
36
39
|
*/
|
|
37
40
|
export default function PrivateMessageSnippetsSkeleton(props) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PREFIX = "SCPrivateMessageSnippets";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const PREFIX = 'SCPrivateMessageSnippets';
|
|
@@ -19,6 +19,7 @@ import { groupBy, Logger } from '@selfcommunity/utils';
|
|
|
19
19
|
import { useSnackbar } from 'notistack';
|
|
20
20
|
import ConfirmDialog from '../../shared/ConfirmDialog/ConfirmDialog';
|
|
21
21
|
import InfiniteScroll from '../../shared/InfiniteScroll';
|
|
22
|
+
import { PREFIX } from './constants';
|
|
22
23
|
const translMessages = defineMessages({
|
|
23
24
|
placeholder: {
|
|
24
25
|
id: 'ui.privateMessage.thread.newMessage.autocomplete.placeholder',
|
|
@@ -29,7 +30,6 @@ const translMessages = defineMessages({
|
|
|
29
30
|
defaultMessage: 'ui.privateMessage.thread.message.deleted'
|
|
30
31
|
}
|
|
31
32
|
});
|
|
32
|
-
const PREFIX = 'SCPrivateMessageThread';
|
|
33
33
|
const classes = {
|
|
34
34
|
root: `${PREFIX}-root`,
|
|
35
35
|
subHeader: `${PREFIX}-subheader`,
|
|
@@ -47,9 +47,8 @@ const classes = {
|
|
|
47
47
|
};
|
|
48
48
|
const Root = styled(Card, {
|
|
49
49
|
name: PREFIX,
|
|
50
|
-
slot: 'Root'
|
|
51
|
-
|
|
52
|
-
})(({ theme }) => ({}));
|
|
50
|
+
slot: 'Root'
|
|
51
|
+
})(() => ({}));
|
|
53
52
|
/**
|
|
54
53
|
* > API documentation for the Community-JS PrivateMessage Thread component. Learn about the available props and the CSS API.
|
|
55
54
|
*
|