@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
|
@@ -1,14 +1,13 @@
|
|
|
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
|
-
overridesResolver: (props, styles) => styles.root
|
|
10
|
+
slot: 'SkeletonRoot'
|
|
12
11
|
})(({ theme }) => ({}));
|
|
13
12
|
/**
|
|
14
13
|
* > API documentation for the Community-JS Custom Adv Skeleton component. Learn about the available props and the CSS API.
|
|
@@ -21,13 +20,13 @@ const Root = styled(GenericSkeleton, {
|
|
|
21
20
|
|
|
22
21
|
#### Component Name
|
|
23
22
|
|
|
24
|
-
The name `
|
|
23
|
+
The name `SCCustomAdv-skeleton-root` can be used when providing style overrides in the theme.
|
|
25
24
|
|
|
26
25
|
#### CSS
|
|
27
26
|
|
|
28
27
|
|Rule Name|Global class|Description|
|
|
29
28
|
|---|---|---|
|
|
30
|
-
|root|.
|
|
29
|
+
|root|.SCCustomAdv-skeleton-root|Styles applied to the root element.|
|
|
31
30
|
*
|
|
32
31
|
*/
|
|
33
32
|
export default function CustomAdvSkeleton() {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PREFIX = "SCCustomAdv";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const PREFIX = 'SCCustomAdv';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { forwardRef, useCallback, useImperativeHandle, useMemo, useRef, useState
|
|
1
|
+
import React, { forwardRef, useCallback, useImperativeHandle, useMemo, useRef, useState } from 'react';
|
|
2
2
|
import { styled } from '@mui/material/styles';
|
|
3
3
|
import { FormattedMessage } from 'react-intl';
|
|
4
4
|
import { Box, Stack } from '@mui/material';
|
|
@@ -19,7 +19,7 @@ import { ListPlugin } from '@lexical/react/LexicalListPlugin';
|
|
|
19
19
|
import FloatingLinkPlugin from './plugins/FloatingLinkPlugin';
|
|
20
20
|
import OnBlurPlugin from './plugins/OnBlurPlugin';
|
|
21
21
|
import OnFocusPlugin from './plugins/OnFocusPlugin';
|
|
22
|
-
|
|
22
|
+
import { PREFIX } from './constants';
|
|
23
23
|
const classes = {
|
|
24
24
|
root: `${PREFIX}-root`,
|
|
25
25
|
focused: `${PREFIX}-focused`,
|
|
@@ -9,13 +9,13 @@
|
|
|
9
9
|
|
|
10
10
|
#### Component Name
|
|
11
11
|
|
|
12
|
-
The name `
|
|
12
|
+
The name `SCEditor-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|.SCEditor-skeleton-root|Styles applied to the root element.|
|
|
19
19
|
*
|
|
20
20
|
*/
|
|
21
21
|
export default function EditorSkeleton(): JSX.Element;
|
|
@@ -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 Editor Skeleton component. Learn about the available props and the CSS API.
|
|
15
14
|
|
|
@@ -21,13 +20,13 @@ const Root = styled(GenericSkeleton, {
|
|
|
21
20
|
|
|
22
21
|
#### Component Name
|
|
23
22
|
|
|
24
|
-
The name `
|
|
23
|
+
The name `SCEditor-skeleton-root` can be used when providing style overrides in the theme.
|
|
25
24
|
|
|
26
25
|
#### CSS
|
|
27
26
|
|
|
28
27
|
|Rule Name|Global class|Description|
|
|
29
28
|
|---|---|---|
|
|
30
|
-
|root|.
|
|
29
|
+
|root|.SCEditor-skeleton-root|Styles applied to the root element.|
|
|
31
30
|
*
|
|
32
31
|
*/
|
|
33
32
|
export default function EditorSkeleton() {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PREFIX = "SCEditor";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const PREFIX = 'SCEditor';
|
|
@@ -4,6 +4,7 @@ import { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext
|
|
|
4
4
|
import { Fade, Icon, IconButton, Popover, useMediaQuery, useTheme } from '@mui/material';
|
|
5
5
|
import { styled } from '@mui/material/styles';
|
|
6
6
|
import EmojiPicker from '../../../shared/EmojiPicker';
|
|
7
|
+
import { PREFIX } from '../constants';
|
|
7
8
|
function Emoji({ editor, className = '' }) {
|
|
8
9
|
// STATE
|
|
9
10
|
const theme = useTheme();
|
|
@@ -34,15 +35,13 @@ function Emoji({ editor, className = '' }) {
|
|
|
34
35
|
} },
|
|
35
36
|
React.createElement(EmojiPicker, { onEmojiClick: handleEmojiClick }))));
|
|
36
37
|
}
|
|
37
|
-
const PREFIX = 'SCEditorEmojiPlugin';
|
|
38
38
|
const classes = {
|
|
39
|
-
root: `${PREFIX}-root`
|
|
39
|
+
root: `${PREFIX}-emoji-plugin-root`
|
|
40
40
|
};
|
|
41
41
|
const Root = styled(Emoji, {
|
|
42
42
|
name: PREFIX,
|
|
43
|
-
slot: '
|
|
44
|
-
|
|
45
|
-
})(({ theme }) => ({}));
|
|
43
|
+
slot: 'EmojiPluginRoot'
|
|
44
|
+
})(() => ({}));
|
|
46
45
|
export default function EmojiPlugin() {
|
|
47
46
|
const [editor] = useLexicalComposerContext();
|
|
48
47
|
return React.createElement(Root, { editor: editor, className: classes.root });
|
|
@@ -9,15 +9,14 @@ import { isValidUrl } from '@selfcommunity/utils';
|
|
|
9
9
|
import { styled } from '@mui/material/styles';
|
|
10
10
|
import { IconButton, InputAdornment, Paper, Popper, TextField } from '@mui/material';
|
|
11
11
|
import Icon from '@mui/material/Icon';
|
|
12
|
-
|
|
12
|
+
import { PREFIX } from '../constants';
|
|
13
13
|
const classes = {
|
|
14
|
-
root: `${PREFIX}-root`
|
|
14
|
+
root: `${PREFIX}-floating-link-plugin-root`
|
|
15
15
|
};
|
|
16
16
|
const Root = styled(Popper, {
|
|
17
17
|
name: PREFIX,
|
|
18
|
-
slot: '
|
|
19
|
-
|
|
20
|
-
})(({ theme }) => ({}));
|
|
18
|
+
slot: 'FloatingLinkPluginRoot'
|
|
19
|
+
})(() => ({}));
|
|
21
20
|
function FloatingLinkPlugin({ editor, isLink, setIsLink }) {
|
|
22
21
|
const [anchorEl, setAnchorEl] = useState(null);
|
|
23
22
|
const [linkUrl, setLinkUrl] = useState('');
|
|
@@ -99,13 +98,13 @@ function FloatingLinkPlugin({ editor, isLink, setIsLink }) {
|
|
|
99
98
|
React.createElement(TextField, { size: "small", value: linkUrl, variant: "outlined", onChange: (event) => {
|
|
100
99
|
setLinkUrl(event.target.value);
|
|
101
100
|
}, InputProps: {
|
|
102
|
-
endAdornment: React.createElement(InputAdornment, { position: "end" },
|
|
101
|
+
endAdornment: (React.createElement(InputAdornment, { position: "end" },
|
|
103
102
|
React.createElement(IconButton, { size: "small", tabIndex: 0, onClick: () => {
|
|
104
103
|
setIsLink(false);
|
|
105
104
|
} },
|
|
106
105
|
React.createElement(Icon, null, "close")),
|
|
107
106
|
React.createElement(IconButton, { size: "small", tabIndex: 1, onClick: handleLinkSubmission },
|
|
108
|
-
React.createElement(Icon, null, "check")))
|
|
107
|
+
React.createElement(Icon, null, "check"))))
|
|
109
108
|
} }))));
|
|
110
109
|
}
|
|
111
110
|
function useFloatingLinkEditorToolbar(editor) {
|
|
@@ -8,6 +8,7 @@ import { createHashtagNode, HashtagNode } from '../nodes/HashtagNode';
|
|
|
8
8
|
import { CategoryService } from '@selfcommunity/api-services';
|
|
9
9
|
import classNames from 'classnames';
|
|
10
10
|
import { styled } from '@mui/material/styles';
|
|
11
|
+
import { PREFIX } from '../constants';
|
|
11
12
|
const PUNCTUATION = '\\.,\\+\\*\\?\\$\\@\\|#{}\\(\\)\\^\\-\\[\\]\\\\/!%\'"~=<>_:;';
|
|
12
13
|
const NAME = '\\b[A-Z][^\\s' + PUNCTUATION + ']';
|
|
13
14
|
const DocumentHashtagsRegex = {
|
|
@@ -344,15 +345,13 @@ function isSelectionOnEntityBoundary(editor, offset) {
|
|
|
344
345
|
return false;
|
|
345
346
|
});
|
|
346
347
|
}
|
|
347
|
-
const PREFIX = 'SCEditorHashtagPlugin';
|
|
348
348
|
const classes = {
|
|
349
|
-
root: `${PREFIX}-root`
|
|
349
|
+
root: `${PREFIX}-hashtag-plugin-root`
|
|
350
350
|
};
|
|
351
351
|
const Root = styled(HashtagsTypeahead, {
|
|
352
352
|
name: PREFIX,
|
|
353
|
-
slot: '
|
|
354
|
-
|
|
355
|
-
})(({ theme }) => ({}));
|
|
353
|
+
slot: 'HashtagPluginRoot'
|
|
354
|
+
})(() => ({}));
|
|
356
355
|
function useHashtags(editor, containerSelector = null) {
|
|
357
356
|
const [resolution, setResolution] = useState(null);
|
|
358
357
|
useEffect(() => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __rest } from "tslib";
|
|
2
2
|
import React, { forwardRef, useEffect, useState } from 'react';
|
|
3
|
-
import { COMMAND_PRIORITY_EDITOR, createCommand
|
|
3
|
+
import { COMMAND_PRIORITY_EDITOR, createCommand } from 'lexical';
|
|
4
4
|
import { $insertNodeToNearestRoot } from '@lexical/utils';
|
|
5
5
|
import { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext';
|
|
6
6
|
import { CircularProgress, Icon, IconButton } from '@mui/material';
|
|
@@ -12,6 +12,7 @@ import MediaChunkUploader from '../../../shared/MediaChunkUploader';
|
|
|
12
12
|
import { asUploadButton } from '@rpldy/upload-button';
|
|
13
13
|
import { useSnackbar } from 'notistack';
|
|
14
14
|
import { $createImageNode, ImageNode } from '../nodes/ImageNode';
|
|
15
|
+
import { PREFIX } from '../constants';
|
|
15
16
|
export const INSERT_IMAGE_COMMAND = createCommand();
|
|
16
17
|
const UploadButton = asUploadButton(forwardRef((_a, ref) => {
|
|
17
18
|
var { progress = null } = _a, rest = __rest(_a, ["progress"]);
|
|
@@ -65,15 +66,13 @@ function Image({ editor, className = '' }) {
|
|
|
65
66
|
progress: Object.keys(uploading).length !== 0 ? Object.values(uploading)[0].completed : null
|
|
66
67
|
} })));
|
|
67
68
|
}
|
|
68
|
-
const PREFIX = 'SCEditorImagePlugin';
|
|
69
69
|
const classes = {
|
|
70
|
-
root: `${PREFIX}-root`
|
|
70
|
+
root: `${PREFIX}-image-plugin-root`
|
|
71
71
|
};
|
|
72
72
|
const Root = styled(Image, {
|
|
73
73
|
name: PREFIX,
|
|
74
|
-
slot: '
|
|
75
|
-
|
|
76
|
-
})(({ theme }) => ({}));
|
|
74
|
+
slot: 'ImagePluginRoot'
|
|
75
|
+
})(() => ({}));
|
|
77
76
|
export default function ImagePlugin() {
|
|
78
77
|
const [editor] = useLexicalComposerContext();
|
|
79
78
|
useEffect(() => {
|
|
@@ -9,6 +9,7 @@ import classNames from 'classnames';
|
|
|
9
9
|
import { Avatar, Portal } from '@mui/material';
|
|
10
10
|
import { styled } from '@mui/material/styles';
|
|
11
11
|
import ClickAwayListener from '@mui/material/ClickAwayListener';
|
|
12
|
+
import { PREFIX } from '../constants';
|
|
12
13
|
const PUNCTUATION = '\\.,\\+\\*\\?\\$\\@\\|#{}\\(\\)\\^\\-\\[\\]\\\\/!%\'"~=<>_:;';
|
|
13
14
|
const NAME = '\\b[A-Z][^\\s' + PUNCTUATION + ']';
|
|
14
15
|
const DocumentMentionsRegex = {
|
|
@@ -469,15 +470,13 @@ function isSelectionOnEntityBoundary(editor, offset) {
|
|
|
469
470
|
return false;
|
|
470
471
|
});
|
|
471
472
|
}
|
|
472
|
-
const PREFIX = 'SCEditorMentionPlugin';
|
|
473
473
|
const classes = {
|
|
474
|
-
root: `${PREFIX}-root`
|
|
474
|
+
root: `${PREFIX}-mention-plugin-root`
|
|
475
475
|
};
|
|
476
476
|
const Root = styled(MentionsTypeahead, {
|
|
477
477
|
name: PREFIX,
|
|
478
|
-
slot: '
|
|
479
|
-
|
|
480
|
-
})(({ theme }) => ({}));
|
|
478
|
+
slot: 'MentionPluginRoot'
|
|
479
|
+
})(() => ({}));
|
|
481
480
|
function useMentions(editor, anchorClassName = null) {
|
|
482
481
|
const [resolution, setResolution] = useState(null);
|
|
483
482
|
const anchorElementRef = useMenuAnchorRef(resolution, setResolution, anchorClassName);
|
|
@@ -24,6 +24,7 @@ import { useThemeProps } from '@mui/system';
|
|
|
24
24
|
import ImagePlugin from './ImagePlugin';
|
|
25
25
|
import EmojiPlugin from './EmojiPlugin';
|
|
26
26
|
import { INSERT_HORIZONTAL_RULE_COMMAND } from '@lexical/react/LexicalHorizontalRuleNode';
|
|
27
|
+
import { PREFIX } from '../constants';
|
|
27
28
|
const blockTypeToBlockIcon = {
|
|
28
29
|
h1: 'format_heading_1',
|
|
29
30
|
h2: 'format_heading_2',
|
|
@@ -123,16 +124,14 @@ function BlockFormatIconButton({ className = '', editor, blockType, disabled = f
|
|
|
123
124
|
React.createElement(Menu, { anchorEl: anchorEl, open: Boolean(anchorEl), onClose: handleClose }, Object.keys(blockTypeToBlockIcon).map((block) => (React.createElement(MenuItem, { key: block, onClick: handleSelect(block) },
|
|
124
125
|
React.createElement(Icon, null, blockTypeToBlockIcon[block])))))));
|
|
125
126
|
}
|
|
126
|
-
const PREFIX = 'SCEditorToolbarPlugin';
|
|
127
127
|
const classes = {
|
|
128
|
-
root: `${PREFIX}-root`,
|
|
128
|
+
root: `${PREFIX}-toolbar-plugin-root`,
|
|
129
129
|
blockFormat: `${PREFIX}-block-format`
|
|
130
130
|
};
|
|
131
131
|
const Root = styled(Box, {
|
|
132
132
|
name: PREFIX,
|
|
133
|
-
slot: '
|
|
134
|
-
|
|
135
|
-
})(({ theme }) => ({}));
|
|
133
|
+
slot: 'ToolbarPluginRoot'
|
|
134
|
+
})(() => ({}));
|
|
136
135
|
export default function ToolbarPlugin(inProps) {
|
|
137
136
|
// PROPS
|
|
138
137
|
const props = useThemeProps({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
|
-
import React, { forwardRef, useContext, useEffect, useImperativeHandle, useMemo, useRef, useState
|
|
3
|
-
import { Link, SCCache, SCPreferences, SCPreferencesContext, SCUserContext, useIsComponentMountedRef, usePreviousValue, useSCFetchFeed
|
|
2
|
+
import React, { forwardRef, useContext, useEffect, useImperativeHandle, useMemo, useRef, useState } from 'react';
|
|
3
|
+
import { Link, SCCache, SCPreferences, SCPreferencesContext, SCUserContext, useIsComponentMountedRef, usePreviousValue, useSCFetchFeed } from '@selfcommunity/react-core';
|
|
4
4
|
import { styled, useTheme } from '@mui/material/styles';
|
|
5
5
|
import { Box, CardContent, Grid, Hidden, useMediaQuery } from '@mui/material';
|
|
6
6
|
import { FormattedMessage } from 'react-intl';
|
|
@@ -13,15 +13,15 @@ import PubSub from 'pubsub-js';
|
|
|
13
13
|
import { useThemeProps } from '@mui/system';
|
|
14
14
|
import Widget from '../Widget';
|
|
15
15
|
import InfiniteScroll from '../../shared/InfiniteScroll';
|
|
16
|
-
import VirtualizedScroller, { VirtualScrollChild
|
|
16
|
+
import VirtualizedScroller, { VirtualScrollChild } from '../../shared/VirtualizedScroller';
|
|
17
17
|
import { DEFAULT_WIDGETS_NUMBER, WIDGET_PREFIX_KEY } from '../../constants/Feed';
|
|
18
|
-
import { DEFAULT_PAGINATION_LIMIT, DEFAULT_PAGINATION_OFFSET, DEFAULT_PAGINATION_QUERY_PARAM_NAME
|
|
18
|
+
import { DEFAULT_PAGINATION_LIMIT, DEFAULT_PAGINATION_OFFSET, DEFAULT_PAGINATION_QUERY_PARAM_NAME } from '../../constants/Pagination';
|
|
19
19
|
import { widgetSort } from '../../utils/feed';
|
|
20
20
|
import Footer from '../Footer';
|
|
21
21
|
import FeedSkeleton from './Skeleton';
|
|
22
22
|
import { useDeepCompareEffectNoCheck } from 'use-deep-compare-effect';
|
|
23
23
|
import StickyBoxComp from '../../shared/StickyBox';
|
|
24
|
-
|
|
24
|
+
import { PREFIX } from './constants';
|
|
25
25
|
const classes = {
|
|
26
26
|
root: `${PREFIX}-root`,
|
|
27
27
|
left: `${PREFIX}-left`,
|
|
@@ -35,8 +35,7 @@ const classes = {
|
|
|
35
35
|
};
|
|
36
36
|
const Root = styled(Grid, {
|
|
37
37
|
name: PREFIX,
|
|
38
|
-
slot: 'Root'
|
|
39
|
-
overridesResolver: (props, styles) => styles.root
|
|
38
|
+
slot: 'Root'
|
|
40
39
|
})(() => ({}));
|
|
41
40
|
const PREFERENCES = [SCPreferences.ADVERTISING_CUSTOM_ADV_ENABLED, SCPreferences.ADVERTISING_CUSTOM_ADV_ONLY_FOR_ANONYMOUS_USERS_ENABLED];
|
|
42
41
|
/**
|
|
@@ -23,15 +23,15 @@ export declare type FeedSkeletonProps = React.PropsWithChildren<FeedSkeletonMap>
|
|
|
23
23
|
|
|
24
24
|
#### Component Name
|
|
25
25
|
|
|
26
|
-
The name `
|
|
26
|
+
The name `SCFeed-skeleton-root` can be used when providing style overrides in the theme.
|
|
27
27
|
|
|
28
28
|
#### CSS
|
|
29
29
|
|
|
30
30
|
|Rule Name|Global class|Description|
|
|
31
31
|
|---|---|---|
|
|
32
|
-
|root|.
|
|
33
|
-
|left|.
|
|
34
|
-
|right|.
|
|
32
|
+
|root|.SCFeed-skeleton-root|Styles applied to the root element.|
|
|
33
|
+
|left|.SCFeed-left|Styles applied to the left section.|
|
|
34
|
+
|right|.SCFeed-right|Styles applied to the right section.|
|
|
35
35
|
*
|
|
36
36
|
*/
|
|
37
37
|
export default function FeedSkeleton(props: FeedSkeletonProps): JSX.Element;
|
|
@@ -3,17 +3,16 @@ import { styled } from '@mui/material/styles';
|
|
|
3
3
|
import { Grid, Hidden } from '@mui/material';
|
|
4
4
|
import { GenericSkeleton } from '../Skeleton';
|
|
5
5
|
import classNames from 'classnames';
|
|
6
|
-
|
|
6
|
+
import { PREFIX } from './constants';
|
|
7
7
|
const classes = {
|
|
8
|
-
root: `${PREFIX}-root`,
|
|
8
|
+
root: `${PREFIX}-skeleton-root`,
|
|
9
9
|
left: `${PREFIX}-left`,
|
|
10
10
|
right: `${PREFIX}-right`
|
|
11
11
|
};
|
|
12
12
|
const Root = styled(Grid, {
|
|
13
13
|
name: PREFIX,
|
|
14
|
-
slot: '
|
|
15
|
-
|
|
16
|
-
})(({ theme }) => ({}));
|
|
14
|
+
slot: 'SkeletonRoot'
|
|
15
|
+
})(() => ({}));
|
|
17
16
|
/**
|
|
18
17
|
* > API documentation for the Community-JS Feed Skeleton component. Learn about the available props and the CSS API.
|
|
19
18
|
|
|
@@ -25,15 +24,15 @@ const Root = styled(Grid, {
|
|
|
25
24
|
|
|
26
25
|
#### Component Name
|
|
27
26
|
|
|
28
|
-
The name `
|
|
27
|
+
The name `SCFeed-skeleton-root` can be used when providing style overrides in the theme.
|
|
29
28
|
|
|
30
29
|
#### CSS
|
|
31
30
|
|
|
32
31
|
|Rule Name|Global class|Description|
|
|
33
32
|
|---|---|---|
|
|
34
|
-
|root|.
|
|
35
|
-
|left|.
|
|
36
|
-
|right|.
|
|
33
|
+
|root|.SCFeed-skeleton-root|Styles applied to the root element.|
|
|
34
|
+
|left|.SCFeed-left|Styles applied to the left section.|
|
|
35
|
+
|right|.SCFeed-right|Styles applied to the right section.|
|
|
37
36
|
*
|
|
38
37
|
*/
|
|
39
38
|
export default function FeedSkeleton(props) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PREFIX = "SCFeed";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const PREFIX = 'SCFeed';
|
|
@@ -7,29 +7,17 @@ import Share from './Share';
|
|
|
7
7
|
import { useSCFetchFeedObject } from '@selfcommunity/react-core';
|
|
8
8
|
import { SCFeedObjectTemplateType } from '../../../types/feedObject';
|
|
9
9
|
import classNames from 'classnames';
|
|
10
|
-
import {
|
|
11
|
-
const PREFIX = 'SCFeedObjectActions';
|
|
10
|
+
import { PREFIX } from '../constants';
|
|
12
11
|
const classes = {
|
|
13
|
-
root: `${PREFIX}-root`,
|
|
14
|
-
action: `${PREFIX}-action`
|
|
12
|
+
root: `${PREFIX}-actions-root`,
|
|
13
|
+
action: `${PREFIX}-actions-action`
|
|
15
14
|
};
|
|
16
15
|
const Root = styled(Grid, {
|
|
17
16
|
name: PREFIX,
|
|
18
|
-
slot: '
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
margin: '0px 0px',
|
|
22
|
-
color: '#3A3A3A',
|
|
23
|
-
[`& .${classes.action}`]: {
|
|
24
|
-
textAlign: 'center'
|
|
25
|
-
}
|
|
26
|
-
}));
|
|
27
|
-
export default function Actions(inProps) {
|
|
17
|
+
slot: 'ActionsRoot'
|
|
18
|
+
})(() => ({}));
|
|
19
|
+
export default function Actions(props) {
|
|
28
20
|
// PROPS
|
|
29
|
-
const props = useThemeProps({
|
|
30
|
-
props: inProps,
|
|
31
|
-
name: PREFIX
|
|
32
|
-
});
|
|
33
21
|
const { className, feedObject, feedObjectId = feedObject === null || feedObject === void 0 ? void 0 : feedObject.id, feedObjectType = feedObject === null || feedObject === void 0 ? void 0 : feedObject.type, feedObjectTemplate = SCFeedObjectTemplateType.PREVIEW, hideVoteAction = false, hideShareAction = false, hideCommentAction = false, handleExpandActivities, VoteActionProps = {}, CommentActionProps = {}, ShareActionProps = {} } = props;
|
|
34
22
|
// STATE
|
|
35
23
|
const { obj } = useSCFetchFeedObject({ id: feedObjectId, feedObject, feedObjectType });
|
|
@@ -10,7 +10,7 @@ import { SCFeedObjectTemplateType } from '../../../../types/feedObject';
|
|
|
10
10
|
import { getContributionRouteName, getRouteData } from '../../../../utils/contribution';
|
|
11
11
|
import classNames from 'classnames';
|
|
12
12
|
import Skeleton from '@mui/material/Skeleton';
|
|
13
|
-
import {
|
|
13
|
+
import { PREFIX } from '../../constants';
|
|
14
14
|
const messages = defineMessages({
|
|
15
15
|
comments: {
|
|
16
16
|
id: 'ui.feedObject.comment.comments',
|
|
@@ -21,24 +21,18 @@ const messages = defineMessages({
|
|
|
21
21
|
defaultMessage: 'ui.feedObject.comment.comment'
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
|
-
const PREFIX = 'SCCommentAction';
|
|
25
24
|
const classes = {
|
|
26
|
-
root: `${PREFIX}-root`,
|
|
27
|
-
divider: `${PREFIX}-divider`,
|
|
28
|
-
inline: `${PREFIX}-inline`,
|
|
29
|
-
button: `${PREFIX}-button`,
|
|
30
|
-
viewAudienceButton: `${PREFIX}-view-audience-button`
|
|
25
|
+
root: `${PREFIX}-action-comment-root`,
|
|
26
|
+
divider: `${PREFIX}-action-comment-divider`,
|
|
27
|
+
inline: `${PREFIX}-action-comment-inline`,
|
|
28
|
+
button: `${PREFIX}-action-comment-button`,
|
|
29
|
+
viewAudienceButton: `${PREFIX}-action-comment-view-audience-button`
|
|
31
30
|
};
|
|
32
31
|
const Root = styled(Box, {
|
|
33
32
|
name: PREFIX,
|
|
34
|
-
slot: '
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
export default function Comment(inProps) {
|
|
38
|
-
const props = useThemeProps({
|
|
39
|
-
props: inProps,
|
|
40
|
-
name: PREFIX
|
|
41
|
-
});
|
|
33
|
+
slot: 'ActionCommentRoot'
|
|
34
|
+
})(() => ({}));
|
|
35
|
+
export default function Comment(props) {
|
|
42
36
|
// PROPS
|
|
43
37
|
const { className, feedObjectId, feedObject, feedObjectType = SCContributionType.POST, feedObjectTemplate = SCFeedObjectTemplateType, withAction = true, withAudience = true, inlineAction = false, onViewCommentsAction, onCommentAction } = props, rest = __rest(props, ["className", "feedObjectId", "feedObject", "feedObjectType", "feedObjectTemplate", "withAction", "withAudience", "inlineAction", "onViewCommentsAction", "onCommentAction"]);
|
|
44
38
|
// STATE
|
|
@@ -12,26 +12,20 @@ import { SCContributionType } from '@selfcommunity/types';
|
|
|
12
12
|
import { Endpoints, http } from '@selfcommunity/api-services';
|
|
13
13
|
import { Logger } from '@selfcommunity/utils';
|
|
14
14
|
import { useSCContext, useSCFetchFeedObject, useSCUser } from '@selfcommunity/react-core';
|
|
15
|
-
import { useThemeProps } from '@mui/system';
|
|
16
15
|
import { catchUnauthorizedActionByBlockedUser } from '../../../../utils/errors';
|
|
17
|
-
|
|
16
|
+
import { PREFIX } from '../../constants';
|
|
18
17
|
const classes = {
|
|
19
|
-
root: `${PREFIX}-root`,
|
|
20
|
-
button: `${PREFIX}-button`,
|
|
21
|
-
iconized: `${PREFIX}-iconized`,
|
|
22
|
-
followed: `${PREFIX}-followed`
|
|
18
|
+
root: `${PREFIX}-action-follow-root`,
|
|
19
|
+
button: `${PREFIX}-action-follow-button`,
|
|
20
|
+
iconized: `${PREFIX}-action-follow-iconized`,
|
|
21
|
+
followed: `${PREFIX}-action-follow-followed`
|
|
23
22
|
};
|
|
24
23
|
const Root = styled(Box, {
|
|
25
24
|
name: PREFIX,
|
|
26
|
-
slot: '
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
export default function Follow(inProps) {
|
|
25
|
+
slot: 'ActionFollowRoot'
|
|
26
|
+
})(() => ({}));
|
|
27
|
+
export default function Follow(props) {
|
|
30
28
|
// PROPS
|
|
31
|
-
const props = useThemeProps({
|
|
32
|
-
props: inProps,
|
|
33
|
-
name: PREFIX
|
|
34
|
-
});
|
|
35
29
|
const { className = null, feedObjectId = null, feedObject = null, feedObjectType = SCContributionType.POST, handleFollow, iconized = true } = props, rest = __rest(props, ["className", "feedObjectId", "feedObject", "feedObjectType", "handleFollow", "iconized"]);
|
|
36
30
|
// STATE
|
|
37
31
|
const { obj, setObj } = useSCFetchFeedObject({ id: feedObjectId, feedObject, feedObjectType });
|
|
@@ -5,7 +5,7 @@ import Icon from '@mui/material/Icon';
|
|
|
5
5
|
import LoadingButton from '@mui/lab/LoadingButton';
|
|
6
6
|
import SharesDialog from './SharesDialog';
|
|
7
7
|
import { styled } from '@mui/material/styles';
|
|
8
|
-
import { Box, Button, Divider, ListItemText, Menu, SwipeableDrawer, Tooltip, useMediaQuery, useTheme
|
|
8
|
+
import { Box, Button, Divider, ListItemText, Menu, SwipeableDrawer, Tooltip, useMediaQuery, useTheme } from '@mui/material';
|
|
9
9
|
import MenuItem from '@mui/material/MenuItem';
|
|
10
10
|
import ListItemIcon from '@mui/material/ListItemIcon';
|
|
11
11
|
import { MEDIA_TYPE_SHARE } from '../../../../constants/Media';
|
|
@@ -16,11 +16,11 @@ import Skeleton from '@mui/material/Skeleton';
|
|
|
16
16
|
import { SCContributionType } from '@selfcommunity/types';
|
|
17
17
|
import { Endpoints, http } from '@selfcommunity/api-services';
|
|
18
18
|
import { copyTextToClipboard, Logger } from '@selfcommunity/utils';
|
|
19
|
-
import { SCPreferences, SCPreferencesContext, UserUtils, useSCContext, useSCFetchFeedObject, useSCRouting, useSCUser
|
|
20
|
-
import { useThemeProps } from '@mui/system';
|
|
19
|
+
import { SCPreferences, SCPreferencesContext, UserUtils, useSCContext, useSCFetchFeedObject, useSCRouting, useSCUser } from '@selfcommunity/react-core';
|
|
21
20
|
import { getContributionRouteName, getRouteData } from '../../../../utils/contribution';
|
|
22
21
|
import { FACEBOOK_SHARE, LINKEDIN_SHARE, TWITTER_SHARE } from '../../../../constants/SocialShare';
|
|
23
22
|
import Composer from '../../../Composer';
|
|
23
|
+
import { PREFIX } from '../../constants';
|
|
24
24
|
const messages = defineMessages({
|
|
25
25
|
shares: {
|
|
26
26
|
id: 'ui.feedObject.share.shares',
|
|
@@ -31,25 +31,19 @@ const messages = defineMessages({
|
|
|
31
31
|
defaultMessage: 'ui.feedObject.share.share'
|
|
32
32
|
}
|
|
33
33
|
});
|
|
34
|
-
const PREFIX = 'SCShareAction';
|
|
35
34
|
const classes = {
|
|
36
|
-
root: `${PREFIX}-root`,
|
|
37
|
-
divider: `${PREFIX}-divider`,
|
|
38
|
-
inline: `${PREFIX}-inline`,
|
|
39
|
-
button: `${PREFIX}-button`,
|
|
40
|
-
viewAudienceButton: `${PREFIX}-view-audience-button`
|
|
35
|
+
root: `${PREFIX}-action-share-root`,
|
|
36
|
+
divider: `${PREFIX}-action-share-divider`,
|
|
37
|
+
inline: `${PREFIX}-action-share-inline`,
|
|
38
|
+
button: `${PREFIX}-action-share-button`,
|
|
39
|
+
viewAudienceButton: `${PREFIX}-action-share-view-audience-button`
|
|
41
40
|
};
|
|
42
41
|
const Root = styled(Box, {
|
|
43
42
|
name: PREFIX,
|
|
44
|
-
slot: '
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
export default function Share(inProps) {
|
|
43
|
+
slot: 'ActionShareRoot'
|
|
44
|
+
})(() => ({}));
|
|
45
|
+
export default function Share(props) {
|
|
48
46
|
// PROPS
|
|
49
|
-
const props = useThemeProps({
|
|
50
|
-
props: inProps,
|
|
51
|
-
name: PREFIX
|
|
52
|
-
});
|
|
53
47
|
const { className = null, feedObjectId = null, feedObject = null, feedObjectType = SCContributionType.POST, withAction = true, withAudience = true, inlineAction = false } = props, rest = __rest(props, ["className", "feedObjectId", "feedObject", "feedObjectType", "withAction", "withAudience", "inlineAction"]);
|
|
54
48
|
// STATE
|
|
55
49
|
const theme = useTheme();
|