@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
package/lib/cjs/components/FeedObject/Activities/RelevantActivities/VoteUpActivity/VoteUpActivity.js
CHANGED
|
@@ -8,40 +8,26 @@ const react_core_1 = require("@selfcommunity/react-core");
|
|
|
8
8
|
const react_intl_1 = require("react-intl");
|
|
9
9
|
const DateTimeAgo_1 = tslib_1.__importDefault(require("../../../../../shared/DateTimeAgo"));
|
|
10
10
|
const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
11
|
-
const system_1 = require("@mui/system");
|
|
12
11
|
const BaseItem_1 = tslib_1.__importDefault(require("../../../../../shared/BaseItem"));
|
|
13
12
|
const UserDeletedSnackBar_1 = tslib_1.__importDefault(require("../../../../../shared/UserDeletedSnackBar"));
|
|
13
|
+
const constants_1 = require("../../../constants");
|
|
14
14
|
const messages = (0, react_intl_1.defineMessages)({
|
|
15
15
|
vote: {
|
|
16
16
|
id: 'ui.feedObject.relevantActivities.vote',
|
|
17
17
|
defaultMessage: 'ui.feedObject.relevantActivities.vote'
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
|
-
const PREFIX = 'SCVoteUpRelevantActivity';
|
|
21
20
|
const classes = {
|
|
22
|
-
root: `${PREFIX}-root`,
|
|
23
|
-
avatar: `${PREFIX}-avatar`,
|
|
24
|
-
username: `${PREFIX}-username`
|
|
21
|
+
root: `${constants_1.PREFIX}-activity-vote-up-root`,
|
|
22
|
+
avatar: `${constants_1.PREFIX}-activity-vote-up-avatar`,
|
|
23
|
+
username: `${constants_1.PREFIX}-activity-vote-up-username`
|
|
25
24
|
};
|
|
26
25
|
const Root = (0, styles_1.styled)(BaseItem_1.default, {
|
|
27
|
-
name: PREFIX,
|
|
28
|
-
slot: '
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
[`& .${classes.username}`]: {
|
|
32
|
-
color: 'inherit'
|
|
33
|
-
},
|
|
34
|
-
[`& .${classes.avatar}`]: {
|
|
35
|
-
width: theme.selfcommunity.user.avatar.sizeMedium,
|
|
36
|
-
height: theme.selfcommunity.user.avatar.sizeMedium
|
|
37
|
-
}
|
|
38
|
-
}));
|
|
39
|
-
function VoteUpRelevantActivity(inProps) {
|
|
26
|
+
name: constants_1.PREFIX,
|
|
27
|
+
slot: 'ActivityVoteUpRoot'
|
|
28
|
+
})(() => ({}));
|
|
29
|
+
function VoteUpRelevantActivity(props) {
|
|
40
30
|
// PROPS
|
|
41
|
-
const props = (0, system_1.useThemeProps)({
|
|
42
|
-
props: inProps,
|
|
43
|
-
name: PREFIX
|
|
44
|
-
});
|
|
45
31
|
const { className = null, activityObject = null } = props, rest = tslib_1.__rest(props, ["className", "activityObject"]);
|
|
46
32
|
// CONTEXT
|
|
47
33
|
const scRoutingContext = (0, react_core_1.useSCRouting)();
|
|
@@ -33,4 +33,4 @@ export interface ContributorsFeedObjectProps {
|
|
|
33
33
|
*/
|
|
34
34
|
[p: string]: any;
|
|
35
35
|
}
|
|
36
|
-
export default function ContributorsFeedObject(
|
|
36
|
+
export default function ContributorsFeedObject(props: ContributorsFeedObjectProps): JSX.Element;
|
|
@@ -12,45 +12,19 @@ const CentralProgress_1 = tslib_1.__importDefault(require("../../../shared/Centr
|
|
|
12
12
|
const InfiniteScroll_1 = tslib_1.__importDefault(require("../../../shared/InfiniteScroll"));
|
|
13
13
|
const User_1 = tslib_1.__importDefault(require("../../User"));
|
|
14
14
|
const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
15
|
-
const system_1 = require("@mui/system");
|
|
16
15
|
const Skeleton_1 = tslib_1.__importDefault(require("./Skeleton"));
|
|
17
|
-
const
|
|
16
|
+
const constants_1 = require("../constants");
|
|
18
17
|
const classes = {
|
|
19
|
-
root: `${PREFIX}-root`,
|
|
20
|
-
avatarGroup: `${PREFIX}-avatarGroup`,
|
|
21
|
-
btnParticipants: `${PREFIX}-btn-participants`
|
|
18
|
+
root: `${constants_1.PREFIX}-contributors-root`,
|
|
19
|
+
avatarGroup: `${constants_1.PREFIX}-contributors-avatarGroup`,
|
|
20
|
+
btnParticipants: `${constants_1.PREFIX}-contributors-btn-participants`
|
|
22
21
|
};
|
|
23
22
|
const Root = (0, styles_1.styled)(material_1.Box, {
|
|
24
|
-
name: PREFIX,
|
|
25
|
-
slot: '
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
minHeight: 28,
|
|
29
|
-
marginTop: 0,
|
|
30
|
-
marginBottom: 0,
|
|
31
|
-
[`& .${classes.btnParticipants}`]: {
|
|
32
|
-
marginLeft: -10
|
|
33
|
-
},
|
|
34
|
-
['& .MuiAvatarGroup-root']: {
|
|
35
|
-
justifyContent: 'flex-end'
|
|
36
|
-
},
|
|
37
|
-
['& .MuiAvatar-root']: {
|
|
38
|
-
backgroundColor: '#d5d5d5',
|
|
39
|
-
border: '2px solid #FFF !important',
|
|
40
|
-
color: '#FFF',
|
|
41
|
-
fontSize: '0.55rem',
|
|
42
|
-
width: theme.selfcommunity.user.avatar.sizeSmall,
|
|
43
|
-
height: theme.selfcommunity.user.avatar.sizeSmall,
|
|
44
|
-
marginLeft: theme.spacing(-1),
|
|
45
|
-
lineHeight: '24px'
|
|
46
|
-
}
|
|
47
|
-
}));
|
|
48
|
-
function ContributorsFeedObject(inProps) {
|
|
23
|
+
name: constants_1.PREFIX,
|
|
24
|
+
slot: 'ContributorsRoot'
|
|
25
|
+
})(() => ({}));
|
|
26
|
+
function ContributorsFeedObject(props) {
|
|
49
27
|
// PROPS
|
|
50
|
-
const props = (0, system_1.useThemeProps)({
|
|
51
|
-
props: inProps,
|
|
52
|
-
name: PREFIX
|
|
53
|
-
});
|
|
54
28
|
const { className = null, feedObjectId = null, feedObject = null, feedObjectType = null, ContributorsSkeletonProps = {}, cacheStrategy = utils_1.CacheStrategies.CACHE_FIRST } = props, rest = tslib_1.__rest(props, ["className", "feedObjectId", "feedObject", "feedObjectType", "ContributorsSkeletonProps", "cacheStrategy"]);
|
|
55
29
|
const contributorsObject = (0, react_core_1.useSCFetchContributors)({
|
|
56
30
|
id: feedObjectId,
|
|
@@ -21,13 +21,13 @@ export interface ContributorsSkeleton extends BoxProps {
|
|
|
21
21
|
|
|
22
22
|
#### Component Name
|
|
23
23
|
|
|
24
|
-
The name `
|
|
24
|
+
The name `SCFeedObject-contributors-skeleton-root` can be used when providing style overrides in the theme.
|
|
25
25
|
|
|
26
26
|
#### CSS
|
|
27
27
|
|
|
28
28
|
|Rule Name|Global class|Description|
|
|
29
29
|
|---|---|---|
|
|
30
|
-
|root|.
|
|
30
|
+
|root|.SCFeedObject-contributors-skeleton-root|Styles applied to the root element.|
|
|
31
31
|
*
|
|
32
32
|
*/
|
|
33
33
|
export default function ContributorsSkeleton(props: any): JSX.Element;
|
|
@@ -7,20 +7,15 @@ const material_1 = require("@mui/material");
|
|
|
7
7
|
const react_intl_1 = require("react-intl");
|
|
8
8
|
const AvatarGroupSkeleton_1 = tslib_1.__importDefault(require("../../Skeleton/AvatarGroupSkeleton"));
|
|
9
9
|
const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
10
|
-
const
|
|
10
|
+
const constants_1 = require("../constants");
|
|
11
11
|
const classes = {
|
|
12
|
-
root: `${PREFIX}-root`,
|
|
13
|
-
btnParticipants: `${PREFIX}-btn-participants`
|
|
12
|
+
root: `${constants_1.PREFIX}-contributors-skeleton-root`,
|
|
13
|
+
btnParticipants: `${constants_1.PREFIX}-btn-participants`
|
|
14
14
|
};
|
|
15
15
|
const Root = (0, styles_1.styled)(material_1.Box, {
|
|
16
|
-
name: PREFIX,
|
|
17
|
-
slot: '
|
|
18
|
-
|
|
19
|
-
})(({ theme }) => ({
|
|
20
|
-
[`& .${classes.btnParticipants}`]: {
|
|
21
|
-
marginLeft: -10
|
|
22
|
-
}
|
|
23
|
-
}));
|
|
16
|
+
name: constants_1.PREFIX,
|
|
17
|
+
slot: 'ContributorsSkeletonRoot'
|
|
18
|
+
})(() => ({}));
|
|
24
19
|
/**
|
|
25
20
|
* > API documentation for the Community-JS Contributors Skeleton component. Learn about the available props and the CSS API.
|
|
26
21
|
|
|
@@ -32,13 +27,13 @@ const Root = (0, styles_1.styled)(material_1.Box, {
|
|
|
32
27
|
|
|
33
28
|
#### Component Name
|
|
34
29
|
|
|
35
|
-
The name `
|
|
30
|
+
The name `SCFeedObject-contributors-skeleton-root` can be used when providing style overrides in the theme.
|
|
36
31
|
|
|
37
32
|
#### CSS
|
|
38
33
|
|
|
39
34
|
|Rule Name|Global class|Description|
|
|
40
35
|
|---|---|---|
|
|
41
|
-
|root|.
|
|
36
|
+
|root|.SCFeedObject-contributors-skeleton-root|Styles applied to the root element.|
|
|
42
37
|
*
|
|
43
38
|
*/
|
|
44
39
|
function ContributorsSkeleton(props) {
|
|
@@ -37,45 +37,44 @@ const UserAvatar_1 = tslib_1.__importDefault(require("../../shared/UserAvatar"))
|
|
|
37
37
|
const Feed_1 = require("../../constants/Feed");
|
|
38
38
|
const Composer_1 = tslib_1.__importDefault(require("../Composer"));
|
|
39
39
|
const FeedObjectMediaPreview_1 = tslib_1.__importDefault(require("../FeedObjectMediaPreview"));
|
|
40
|
+
const constants_1 = require("./constants");
|
|
40
41
|
const messages = (0, react_intl_1.defineMessages)({
|
|
41
42
|
visibleToAll: {
|
|
42
43
|
id: 'ui.feedObject.visibleToAll',
|
|
43
44
|
defaultMessage: 'ui.feedObject.visibleToAll'
|
|
44
45
|
}
|
|
45
46
|
});
|
|
46
|
-
const PREFIX = 'SCFeedObject';
|
|
47
47
|
const classes = {
|
|
48
|
-
root: `${PREFIX}-root`,
|
|
49
|
-
deleted: `${PREFIX}-deleted`,
|
|
50
|
-
header: `${PREFIX}-header`,
|
|
51
|
-
category: `${PREFIX}-category`,
|
|
52
|
-
avatar: `${PREFIX}-avatar`,
|
|
53
|
-
username: `${PREFIX}-username`,
|
|
54
|
-
activityAt: `${PREFIX}-activity-at`,
|
|
55
|
-
tag: `${PREFIX}-tag`,
|
|
56
|
-
location: `${PREFIX}-location`,
|
|
57
|
-
content: `${PREFIX}-content`,
|
|
58
|
-
showMore: `${PREFIX}-show-more`,
|
|
59
|
-
error: `${PREFIX}-error`,
|
|
60
|
-
titleSection: `${PREFIX}-title-section`,
|
|
61
|
-
title: `${PREFIX}-title`,
|
|
62
|
-
textSection: `${PREFIX}-text-section`,
|
|
63
|
-
text: `${PREFIX}-text`,
|
|
64
|
-
snippet: `${PREFIX}-snippet`,
|
|
65
|
-
snippetContent: `${PREFIX}-snippet-content`,
|
|
66
|
-
mediasSection: `${PREFIX}-medias-section`,
|
|
67
|
-
pollsSection: `${PREFIX}-polls-section`,
|
|
68
|
-
infoSection: `${PREFIX}-info-section`,
|
|
69
|
-
actionsSection: `${PREFIX}-actions-section`,
|
|
70
|
-
replyContent: `${PREFIX}-reply-content`,
|
|
71
|
-
activitiesSection: `${PREFIX}-activities-section`,
|
|
72
|
-
activitiesContent: `${PREFIX}-activities-content`,
|
|
73
|
-
followButton: `${PREFIX}-follow-button`
|
|
48
|
+
root: `${constants_1.PREFIX}-root`,
|
|
49
|
+
deleted: `${constants_1.PREFIX}-deleted`,
|
|
50
|
+
header: `${constants_1.PREFIX}-header`,
|
|
51
|
+
category: `${constants_1.PREFIX}-category`,
|
|
52
|
+
avatar: `${constants_1.PREFIX}-avatar`,
|
|
53
|
+
username: `${constants_1.PREFIX}-username`,
|
|
54
|
+
activityAt: `${constants_1.PREFIX}-activity-at`,
|
|
55
|
+
tag: `${constants_1.PREFIX}-tag`,
|
|
56
|
+
location: `${constants_1.PREFIX}-location`,
|
|
57
|
+
content: `${constants_1.PREFIX}-content`,
|
|
58
|
+
showMore: `${constants_1.PREFIX}-show-more`,
|
|
59
|
+
error: `${constants_1.PREFIX}-error`,
|
|
60
|
+
titleSection: `${constants_1.PREFIX}-title-section`,
|
|
61
|
+
title: `${constants_1.PREFIX}-title`,
|
|
62
|
+
textSection: `${constants_1.PREFIX}-text-section`,
|
|
63
|
+
text: `${constants_1.PREFIX}-text`,
|
|
64
|
+
snippet: `${constants_1.PREFIX}-snippet`,
|
|
65
|
+
snippetContent: `${constants_1.PREFIX}-snippet-content`,
|
|
66
|
+
mediasSection: `${constants_1.PREFIX}-medias-section`,
|
|
67
|
+
pollsSection: `${constants_1.PREFIX}-polls-section`,
|
|
68
|
+
infoSection: `${constants_1.PREFIX}-info-section`,
|
|
69
|
+
actionsSection: `${constants_1.PREFIX}-actions-section`,
|
|
70
|
+
replyContent: `${constants_1.PREFIX}-reply-content`,
|
|
71
|
+
activitiesSection: `${constants_1.PREFIX}-activities-section`,
|
|
72
|
+
activitiesContent: `${constants_1.PREFIX}-activities-content`,
|
|
73
|
+
followButton: `${constants_1.PREFIX}-follow-button`
|
|
74
74
|
};
|
|
75
75
|
const Root = (0, styles_1.styled)(Widget_1.default, {
|
|
76
|
-
name: PREFIX,
|
|
77
|
-
slot: 'Root'
|
|
78
|
-
overridesResolver: (props, styles) => styles.root
|
|
76
|
+
name: constants_1.PREFIX,
|
|
77
|
+
slot: 'Root'
|
|
79
78
|
})(() => ({}));
|
|
80
79
|
/**
|
|
81
80
|
* > API documentation for the Community-JS Feed Object component. Learn about the available props and the CSS API.
|
|
@@ -132,7 +131,7 @@ function FeedObject(inProps) {
|
|
|
132
131
|
// PROPS
|
|
133
132
|
const props = (0, system_1.useThemeProps)({
|
|
134
133
|
props: inProps,
|
|
135
|
-
name: PREFIX
|
|
134
|
+
name: constants_1.PREFIX
|
|
136
135
|
});
|
|
137
136
|
const { id = `feed_object_${props.feedObjectId ? props.feedObjectId : props.feedObject ? props.feedObject.id : ''}`, className = null, feedObjectId = null, feedObject = null, feedObjectType = null, feedObjectActivities = null, cacheStrategy = utils_1.CacheStrategies.CACHE_FIRST, markRead = false, template = feedObject_1.SCFeedObjectTemplateType.PREVIEW, hideFollowAction = false, summaryExpanded = false, activitiesExpanded = true, activitiesExpandedType, hideParticipantsPreview = false, pollVisible = false, FollowButtonProps = {}, FeedObjectSkeletonProps = { elevation: 0 }, ActionsProps = {}, CommentObjectReplyComponent = CommentObjectReply_1.default, CommentObjectReplyComponentProps = { WidgetProps: { variant: 'outlined' } }, CommentComponentProps = { variant: 'outlined' }, CommentObjectSkeletonProps = { elevation: 0, WidgetProps: { variant: 'outlined' } }, ContributionActionsMenuProps = {}, FeedObjectMediaPreviewProps = {}, ActivitiesProps = { cacheStrategy }, PollObjectProps = { elevation: 0 }, ContributorsFeedObjectProps = {}, onReply, onHeightChange, onStateChange } = props, rest = tslib_1.__rest(props, ["id", "className", "feedObjectId", "feedObject", "feedObjectType", "feedObjectActivities", "cacheStrategy", "markRead", "template", "hideFollowAction", "summaryExpanded", "activitiesExpanded", "activitiesExpandedType", "hideParticipantsPreview", "pollVisible", "FollowButtonProps", "FeedObjectSkeletonProps", "ActionsProps", "CommentObjectReplyComponent", "CommentObjectReplyComponentProps", "CommentComponentProps", "CommentObjectSkeletonProps", "ContributionActionsMenuProps", "FeedObjectMediaPreviewProps", "ActivitiesProps", "PollObjectProps", "ContributorsFeedObjectProps", "onReply", "onHeightChange", "onStateChange"]);
|
|
138
137
|
// CONTEXT
|
|
@@ -499,7 +498,7 @@ function FeedObject(inProps) {
|
|
|
499
498
|
* Renders root object
|
|
500
499
|
*/
|
|
501
500
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
502
|
-
react_1.default.createElement(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${PREFIX}-${template}`) }, rest),
|
|
501
|
+
react_1.default.createElement(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${constants_1.PREFIX}-${template}`) }, rest),
|
|
503
502
|
obj && markRead && react_1.default.createElement(MarkRead_1.default, { endpoint: api_services_1.Endpoints.FeedObjectMarkRead, data: { object: [obj.id] } }),
|
|
504
503
|
objElement),
|
|
505
504
|
openAlert && react_1.default.createElement(UserDeletedSnackBar_1.default, { open: openAlert, handleClose: () => setOpenAlert(false) })));
|
|
@@ -10,50 +10,25 @@ const Icon_1 = tslib_1.__importDefault(require("@mui/material/Icon"));
|
|
|
10
10
|
const LinearProgress_1 = tslib_1.__importDefault(require("@mui/material/LinearProgress"));
|
|
11
11
|
const lab_1 = require("@mui/lab");
|
|
12
12
|
const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
13
|
-
const
|
|
14
|
-
const PREFIX = 'SCChoices';
|
|
13
|
+
const constants_1 = require("../../constants");
|
|
15
14
|
const classes = {
|
|
16
|
-
root: `${PREFIX}-root`,
|
|
17
|
-
label: `${PREFIX}-label`,
|
|
18
|
-
vote: `${PREFIX}-vote`,
|
|
19
|
-
progress: `${PREFIX}-progress`
|
|
15
|
+
root: `${constants_1.PREFIX}-poll-object-choices-root`,
|
|
16
|
+
label: `${constants_1.PREFIX}-poll-object-choices-label`,
|
|
17
|
+
vote: `${constants_1.PREFIX}-poll-object-choices-vote`,
|
|
18
|
+
progress: `${constants_1.PREFIX}-poll-object-choices-progress`
|
|
20
19
|
};
|
|
21
20
|
const Root = (0, styles_1.styled)(material_1.Card, {
|
|
22
|
-
name: PREFIX,
|
|
23
|
-
slot: '
|
|
24
|
-
|
|
25
|
-
})(({ theme }) => ({
|
|
26
|
-
background: theme.palette.grey['A200'],
|
|
27
|
-
marginBottom: theme.spacing(2),
|
|
28
|
-
padding: theme.spacing(2),
|
|
29
|
-
width: '100%',
|
|
30
|
-
[`& .${classes.label}, & .${classes.vote}`]: {
|
|
31
|
-
marginBottom: theme.spacing()
|
|
32
|
-
},
|
|
33
|
-
[`& .${classes.progress}`]: {
|
|
34
|
-
display: 'flex',
|
|
35
|
-
flexDirection: 'row',
|
|
36
|
-
alignItems: 'center',
|
|
37
|
-
marginBottom: theme.spacing(),
|
|
38
|
-
'& .MuiLinearProgress-root': {
|
|
39
|
-
flexGrow: 2,
|
|
40
|
-
marginRight: theme.spacing(2),
|
|
41
|
-
backgroundColor: theme.palette.common.white
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}));
|
|
21
|
+
name: constants_1.PREFIX,
|
|
22
|
+
slot: 'PollObjectChoicesRoot'
|
|
23
|
+
})(() => ({}));
|
|
45
24
|
function LinearProgressWithLabel(_a) {
|
|
46
25
|
var { className } = _a, props = tslib_1.__rest(_a, ["className"]);
|
|
47
26
|
return (react_1.default.createElement(material_1.Box, { className: className },
|
|
48
27
|
react_1.default.createElement(LinearProgress_1.default, Object.assign({ variant: "determinate" }, props)),
|
|
49
28
|
react_1.default.createElement(material_1.Typography, { variant: "body2", color: "text.secondary" }, `${Math.round(props.value)}%`)));
|
|
50
29
|
}
|
|
51
|
-
function Choice(
|
|
30
|
+
function Choice(props) {
|
|
52
31
|
//PROPS
|
|
53
|
-
const props = (0, system_1.useThemeProps)({
|
|
54
|
-
props: inProps,
|
|
55
|
-
name: PREFIX
|
|
56
|
-
});
|
|
57
32
|
const { className = null, choiceObj = null, feedObject = null, vote = null, votes = null, isVoting = null, votable = null } = props, rest = tslib_1.__rest(props, ["className", "choiceObj", "feedObject", "vote", "votes", "isVoting", "votable"]);
|
|
58
33
|
const disabled = !feedObject;
|
|
59
34
|
// CONTEXT
|
|
@@ -13,7 +13,7 @@ const Choice_1 = tslib_1.__importDefault(require("./Choice"));
|
|
|
13
13
|
const Icon_1 = tslib_1.__importDefault(require("@mui/material/Icon"));
|
|
14
14
|
const Errors_1 = require("../../../constants/Errors");
|
|
15
15
|
const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
16
|
-
const
|
|
16
|
+
const constants_1 = require("../constants");
|
|
17
17
|
const messages = (0, react_intl_1.defineMessages)({
|
|
18
18
|
showPoll: {
|
|
19
19
|
id: 'ui.feedObject.poll.showPoll',
|
|
@@ -36,29 +36,23 @@ const messages = (0, react_intl_1.defineMessages)({
|
|
|
36
36
|
defaultMessage: 'ui.feedObject.poll.votes'
|
|
37
37
|
}
|
|
38
38
|
});
|
|
39
|
-
const PREFIX = 'SCPollObject';
|
|
40
39
|
const classes = {
|
|
41
|
-
root: `${PREFIX}-root`,
|
|
42
|
-
voters: `${PREFIX}-voters`,
|
|
43
|
-
votes: `${PREFIX}-votes`,
|
|
44
|
-
toggleButton: `${PREFIX}-toggle-button`,
|
|
45
|
-
title: `${PREFIX}-title`,
|
|
46
|
-
expiration: `${PREFIX}-expiration`,
|
|
47
|
-
closed: `${PREFIX}-closed`,
|
|
48
|
-
expandIcon: `${PREFIX}-expand-icon`,
|
|
49
|
-
collapsedIcon: `${PREFIX}-collapsed-icon`
|
|
40
|
+
root: `${constants_1.PREFIX}-poll-object-root`,
|
|
41
|
+
voters: `${constants_1.PREFIX}-poll-object-voters`,
|
|
42
|
+
votes: `${constants_1.PREFIX}-poll-object-votes`,
|
|
43
|
+
toggleButton: `${constants_1.PREFIX}-poll-object-toggle-button`,
|
|
44
|
+
title: `${constants_1.PREFIX}-poll-object-title`,
|
|
45
|
+
expiration: `${constants_1.PREFIX}-poll-object-expiration`,
|
|
46
|
+
closed: `${constants_1.PREFIX}-poll-object-closed`,
|
|
47
|
+
expandIcon: `${constants_1.PREFIX}-poll-object-expand-icon`,
|
|
48
|
+
collapsedIcon: `${constants_1.PREFIX}-poll-object-collapsed-icon`
|
|
50
49
|
};
|
|
51
50
|
const Root = (0, styles_1.styled)(Card_1.default, {
|
|
52
|
-
name: PREFIX,
|
|
53
|
-
slot: '
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
function PollObject(inProps) {
|
|
51
|
+
name: constants_1.PREFIX,
|
|
52
|
+
slot: 'PollObjectRoot'
|
|
53
|
+
})(() => ({}));
|
|
54
|
+
function PollObject(props) {
|
|
57
55
|
// PROPS
|
|
58
|
-
const props = (0, system_1.useThemeProps)({
|
|
59
|
-
props: inProps,
|
|
60
|
-
name: PREFIX
|
|
61
|
-
});
|
|
62
56
|
const { className, feedObject, pollObject, disabled, visible = true, onChange, onToggleVisibility } = props, rest = tslib_1.__rest(props, ["className", "feedObject", "pollObject", "disabled", "visible", "onChange", "onToggleVisibility"]);
|
|
63
57
|
// INTL
|
|
64
58
|
const intl = (0, react_intl_1.useIntl)();
|
|
@@ -22,14 +22,14 @@ export interface FeedObjectSkeletonProps extends CardProps {
|
|
|
22
22
|
|
|
23
23
|
#### Component Name
|
|
24
24
|
|
|
25
|
-
The name `
|
|
25
|
+
The name `SCFeedObject-skeleton-root` can be used when providing style overrides in the theme.
|
|
26
26
|
|
|
27
27
|
#### CSS
|
|
28
28
|
|
|
29
29
|
|Rule Name|Global class|Description|
|
|
30
30
|
|---|---|---|
|
|
31
|
-
|root|.
|
|
32
|
-
|media|.
|
|
31
|
+
|root|.SCFeedObject-skeleton-root|Styles applied to the root element.|
|
|
32
|
+
|media|.SCFeedObject-media|Styles applied to the media element.|
|
|
33
33
|
*
|
|
34
34
|
*/
|
|
35
35
|
export default function FeedObjectSkeleton(props: {
|
|
@@ -8,15 +8,14 @@ const Skeleton_1 = tslib_1.__importDefault(require("@mui/material/Skeleton"));
|
|
|
8
8
|
const feedObject_1 = require("../../types/feedObject");
|
|
9
9
|
const material_1 = require("@mui/material");
|
|
10
10
|
const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
11
|
-
const
|
|
11
|
+
const constants_1 = require("./constants");
|
|
12
12
|
const classes = {
|
|
13
|
-
root: `${PREFIX}-root`,
|
|
14
|
-
media: `${PREFIX}-media`
|
|
13
|
+
root: `${constants_1.PREFIX}-skeleton-root`,
|
|
14
|
+
media: `${constants_1.PREFIX}-media`
|
|
15
15
|
};
|
|
16
16
|
const Root = (0, styles_1.styled)(Widget_1.default, {
|
|
17
|
-
name: PREFIX,
|
|
18
|
-
slot: '
|
|
19
|
-
overridesResolver: (props, styles) => styles.root
|
|
17
|
+
name: constants_1.PREFIX,
|
|
18
|
+
slot: 'SkeletonRoot'
|
|
20
19
|
})(() => ({}));
|
|
21
20
|
/**
|
|
22
21
|
* > API documentation for the Community-JS Feed Object Skeleton component. Learn about the available props and the CSS API.
|
|
@@ -29,14 +28,14 @@ const Root = (0, styles_1.styled)(Widget_1.default, {
|
|
|
29
28
|
|
|
30
29
|
#### Component Name
|
|
31
30
|
|
|
32
|
-
The name `
|
|
31
|
+
The name `SCFeedObject-skeleton-root` can be used when providing style overrides in the theme.
|
|
33
32
|
|
|
34
33
|
#### CSS
|
|
35
34
|
|
|
36
35
|
|Rule Name|Global class|Description|
|
|
37
36
|
|---|---|---|
|
|
38
|
-
|root|.
|
|
39
|
-
|media|.
|
|
37
|
+
|root|.SCFeedObject-skeleton-root|Styles applied to the root element.|
|
|
38
|
+
|media|.SCFeedObject-media|Styles applied to the media element.|
|
|
40
39
|
*
|
|
41
40
|
*/
|
|
42
41
|
function FeedObjectSkeleton(props) {
|
|
@@ -62,6 +61,6 @@ function FeedObjectSkeleton(props) {
|
|
|
62
61
|
react_1.default.createElement(Skeleton_1.default, { animation: "wave", height: 10, width: "80%", style: { marginBottom: 6 } }),
|
|
63
62
|
react_1.default.createElement(Skeleton_1.default, { animation: "wave", height: 10, width: "60%", style: { marginBottom: 6 } })))));
|
|
64
63
|
}
|
|
65
|
-
return (react_1.default.createElement(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, `${PREFIX}-${template}`) }, rest), obj));
|
|
64
|
+
return (react_1.default.createElement(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, `${constants_1.PREFIX}-${template}`) }, rest), obj));
|
|
66
65
|
}
|
|
67
66
|
exports.default = FeedObjectSkeleton;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PREFIX = "SCFeedObject";
|
|
@@ -23,13 +23,13 @@ export interface FeedObjectMediaPreviewProps extends BoxProps {
|
|
|
23
23
|
import {FeedObjectMediaPreview} from '@selfcommunity/react-ui';
|
|
24
24
|
```
|
|
25
25
|
#### Component Name
|
|
26
|
-
The name `
|
|
26
|
+
The name `SCFeedObject-media-preview-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|.
|
|
32
|
+
|root|.SCFeedObject-media-preview-root|Styles applied to the root element.|
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
* @param inProps
|
|
@@ -8,14 +8,14 @@ const react_core_1 = require("@selfcommunity/react-core");
|
|
|
8
8
|
const system_1 = require("@mui/system");
|
|
9
9
|
const Media_1 = require("../../shared/Media");
|
|
10
10
|
const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
11
|
-
const
|
|
11
|
+
const constants_1 = require("../FeedObject/constants");
|
|
12
12
|
const classes = {
|
|
13
|
-
root: `${PREFIX}-root`
|
|
13
|
+
root: `${constants_1.PREFIX}-media-preview-root`
|
|
14
14
|
};
|
|
15
15
|
const Root = (0, styles_1.styled)(Box_1.default, {
|
|
16
|
-
name: PREFIX,
|
|
17
|
-
slot: '
|
|
18
|
-
})((
|
|
16
|
+
name: constants_1.PREFIX,
|
|
17
|
+
slot: 'MediaPreviewRoot'
|
|
18
|
+
})(() => ({}));
|
|
19
19
|
/**
|
|
20
20
|
* > API documentation for the Community-JS FeedObjectMediaPreview component. Learn about the available props and the CSS API.
|
|
21
21
|
*
|
|
@@ -27,13 +27,13 @@ const Root = (0, styles_1.styled)(Box_1.default, {
|
|
|
27
27
|
import {FeedObjectMediaPreview} from '@selfcommunity/react-ui';
|
|
28
28
|
```
|
|
29
29
|
#### Component Name
|
|
30
|
-
The name `
|
|
30
|
+
The name `SCFeedObject-media-preview-root` can be used when providing style overrides in the theme.
|
|
31
31
|
|
|
32
32
|
#### CSS
|
|
33
33
|
|
|
34
34
|
|Rule Name|Global class|Description|
|
|
35
35
|
|---|---|---|
|
|
36
|
-
|root|.
|
|
36
|
+
|root|.SCFeedObject-media-preview-root|Styles applied to the root element.|
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
* @param inProps
|
|
@@ -42,7 +42,7 @@ exports.default = (inProps) => {
|
|
|
42
42
|
//PROPS
|
|
43
43
|
const props = (0, system_1.useThemeProps)({
|
|
44
44
|
props: inProps,
|
|
45
|
-
name: PREFIX
|
|
45
|
+
name: constants_1.PREFIX
|
|
46
46
|
});
|
|
47
47
|
const { className, medias, mediaObjectTypes = [Media_1.File, Media_1.Link, Media_1.Share] } = props, rest = tslib_1.__rest(props, ["className", "medias", "mediaObjectTypes"]);
|
|
48
48
|
const { handleMediaClick } = (0, react_core_1.useSCMediaClick)();
|
|
@@ -10,15 +10,14 @@ const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
|
10
10
|
const Widget_1 = tslib_1.__importDefault(require("../Widget"));
|
|
11
11
|
const system_1 = require("@mui/system");
|
|
12
12
|
const HiddenPlaceholder_1 = tslib_1.__importDefault(require("../../shared/HiddenPlaceholder"));
|
|
13
|
-
const
|
|
13
|
+
const constants_1 = require("./constants");
|
|
14
14
|
const classes = {
|
|
15
|
-
root: `${PREFIX}-root`,
|
|
16
|
-
buttonLoadMore: `${PREFIX}-button-load-more`
|
|
15
|
+
root: `${constants_1.PREFIX}-root`,
|
|
16
|
+
buttonLoadMore: `${constants_1.PREFIX}-button-load-more`
|
|
17
17
|
};
|
|
18
18
|
const Root = (0, styles_1.styled)(Widget_1.default, {
|
|
19
|
-
name: PREFIX,
|
|
20
|
-
slot: 'Root'
|
|
21
|
-
overridesResolver: (props, styles) => styles.root
|
|
19
|
+
name: constants_1.PREFIX,
|
|
20
|
+
slot: 'Root'
|
|
22
21
|
})(() => ({}));
|
|
23
22
|
/**
|
|
24
23
|
* > API documentation for the Community-JS Feed Updates Widget component. Learn about the available props and the CSS API.
|
|
@@ -51,7 +50,7 @@ function FeedUpdatesWidget(inProps) {
|
|
|
51
50
|
// PROPS
|
|
52
51
|
const props = (0, system_1.useThemeProps)({
|
|
53
52
|
props: inProps,
|
|
54
|
-
name: PREFIX
|
|
53
|
+
name: constants_1.PREFIX
|
|
55
54
|
});
|
|
56
55
|
const { id = 'feed_updates', className = null, message = react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.feedUpdatesWidget.message", defaultMessage: "ui.feedUpdatesWidget.message" }), subscriptionChannel, subscriptionChannelUpdatesCallback = (msg, data) => true, publicationChannel = null, onHeightChange } = props, rest = tslib_1.__rest(props, ["id", "className", "message", "subscriptionChannel", "subscriptionChannelUpdatesCallback", "publicationChannel", "onHeightChange"]);
|
|
57
56
|
// STATE
|
|
@@ -9,14 +9,14 @@
|
|
|
9
9
|
|
|
10
10
|
#### Component Name
|
|
11
11
|
|
|
12
|
-
The name `
|
|
12
|
+
The name `SCFeedUpdatesWidget-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|.SCFeedUpdatesWidget-skeleton-root|Styles applied to the root element.|
|
|
19
|
+
|list|.SCFeedUpdatesWidget-list|Styles applied to the list element.|
|
|
20
20
|
*
|
|
21
21
|
*/
|
|
22
22
|
export default function FeedUpdatesWidgetSkeleton(props: any): JSX.Element;
|
|
@@ -4,12 +4,15 @@ const tslib_1 = require("tslib");
|
|
|
4
4
|
const react_1 = tslib_1.__importDefault(require("react"));
|
|
5
5
|
const styles_1 = require("@mui/material/styles");
|
|
6
6
|
const GenericSkeleton_1 = tslib_1.__importDefault(require("../Skeleton/GenericSkeleton"));
|
|
7
|
-
const
|
|
7
|
+
const constants_1 = require("./constants");
|
|
8
8
|
const classes = {
|
|
9
|
-
root: `${PREFIX}-root`,
|
|
10
|
-
list: `${PREFIX}-list`
|
|
9
|
+
root: `${constants_1.PREFIX}-skeleton-root`,
|
|
10
|
+
list: `${constants_1.PREFIX}-list`
|
|
11
11
|
};
|
|
12
|
-
const Root = (0, styles_1.styled)(GenericSkeleton_1.default
|
|
12
|
+
const Root = (0, styles_1.styled)(GenericSkeleton_1.default, {
|
|
13
|
+
name: constants_1.PREFIX,
|
|
14
|
+
slot: 'SkeletonRoot'
|
|
15
|
+
})(() => ({}));
|
|
13
16
|
/**
|
|
14
17
|
* > API documentation for the Community-JS Feed Updates Widget Skeleton component. Learn about the available props and the CSS API.
|
|
15
18
|
|
|
@@ -21,14 +24,14 @@ const Root = (0, styles_1.styled)(GenericSkeleton_1.default)(() => ({}));
|
|
|
21
24
|
|
|
22
25
|
#### Component Name
|
|
23
26
|
|
|
24
|
-
The name `
|
|
27
|
+
The name `SCFeedUpdatesWidget-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|.SCFeedUpdatesWidget-skeleton-root|Styles applied to the root element.|
|
|
34
|
+
|list|.SCFeedUpdatesWidget-list|Styles applied to the list element.|
|
|
32
35
|
*
|
|
33
36
|
*/
|
|
34
37
|
function FeedUpdatesWidgetSkeleton(props) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PREFIX = "SCFeedUpdatesWidget";
|
|
@@ -46,7 +46,8 @@ export interface FooterProps {
|
|
|
46
46
|
|Rule Name|Global class|Description|
|
|
47
47
|
|---|---|---|
|
|
48
48
|
|root|.SCFooter-root|Styles applied to the root element.|
|
|
49
|
-
|
|
|
49
|
+
|item|.SCFooter-item|Styles applied to the item element.|
|
|
50
|
+
|itemList|.SCFooter-item-list|Styles applied to the item list element.|
|
|
50
51
|
|copyright|.SCFooter-copyright|Styles applied to the copyright section.|
|
|
51
52
|
|
|
52
53
|
* @param inProps
|