@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
|
@@ -46,6 +46,7 @@ export interface ChangePictureProps {
|
|
|
46
46
|
|Rule Name|Global class|Description|
|
|
47
47
|
|---|---|---|
|
|
48
48
|
|root|.SCChangePictureButton-root|Styles applied to the root element.|
|
|
49
|
+
|root|.SCChangePictureButton-dialog|Styles applied to the dialog element.|
|
|
49
50
|
|
|
50
51
|
* @param inProps
|
|
51
52
|
*/
|
|
@@ -10,15 +10,15 @@ const Icon_1 = tslib_1.__importDefault(require("@mui/material/Icon"));
|
|
|
10
10
|
const react_core_1 = require("@selfcommunity/react-core");
|
|
11
11
|
const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
12
12
|
const system_1 = require("@mui/system");
|
|
13
|
-
const
|
|
13
|
+
const constants_1 = require("./constants");
|
|
14
14
|
const classes = {
|
|
15
|
-
root: `${PREFIX}-root
|
|
15
|
+
root: `${constants_1.PREFIX}-root`,
|
|
16
|
+
dialog: `${constants_1.PREFIX}-dialog`
|
|
16
17
|
};
|
|
17
18
|
const Root = (0, styles_1.styled)(material_1.Button, {
|
|
18
|
-
name: PREFIX,
|
|
19
|
-
slot: 'Root'
|
|
20
|
-
|
|
21
|
-
})(({ theme }) => ({}));
|
|
19
|
+
name: constants_1.PREFIX,
|
|
20
|
+
slot: 'Root'
|
|
21
|
+
})(() => ({}));
|
|
22
22
|
/**
|
|
23
23
|
* > API documentation for the Community-JS Change Picture component. Learn about the available props and the CSS API.
|
|
24
24
|
*
|
|
@@ -41,6 +41,7 @@ const Root = (0, styles_1.styled)(material_1.Button, {
|
|
|
41
41
|
|Rule Name|Global class|Description|
|
|
42
42
|
|---|---|---|
|
|
43
43
|
|root|.SCChangePictureButton-root|Styles applied to the root element.|
|
|
44
|
+
|root|.SCChangePictureButton-dialog|Styles applied to the dialog element.|
|
|
44
45
|
|
|
45
46
|
* @param inProps
|
|
46
47
|
*/
|
|
@@ -48,7 +49,7 @@ function ChangePicture(inProps) {
|
|
|
48
49
|
//PROPS
|
|
49
50
|
const props = (0, system_1.useThemeProps)({
|
|
50
51
|
props: inProps,
|
|
51
|
-
name: PREFIX
|
|
52
|
+
name: constants_1.PREFIX
|
|
52
53
|
});
|
|
53
54
|
const { iconButton, onChange, autoHide, className } = props, rest = tslib_1.__rest(props, ["iconButton", "onChange", "autoHide", "className"]);
|
|
54
55
|
//STATE
|
|
@@ -65,7 +66,7 @@ function ChangePicture(inProps) {
|
|
|
65
66
|
if (!autoHide) {
|
|
66
67
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
67
68
|
react_1.default.createElement(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className), size: "small", variant: "contained", onClick: () => setOpenChangePictureDialog(true) }, rest), iconButton ? (react_1.default.createElement(Icon_1.default, null, "photo_camera")) : (react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.changePicture.button.change", defaultMessage: "ui.changePicture.button.change" }))),
|
|
68
|
-
openChangePictureDialog && (react_1.default.createElement(ChangePictureDialog_1.default, { open: openChangePictureDialog, onChange: (avatar) => onChange && onChange(avatar), onClose: () => setOpenChangePictureDialog(false) }))));
|
|
69
|
+
openChangePictureDialog && (react_1.default.createElement(ChangePictureDialog_1.default, { className: classes.dialog, open: openChangePictureDialog, onChange: (avatar) => onChange && onChange(avatar), onClose: () => setOpenChangePictureDialog(false) }))));
|
|
69
70
|
}
|
|
70
71
|
return null;
|
|
71
72
|
}
|
|
@@ -18,31 +18,23 @@ const system_1 = require("@mui/system");
|
|
|
18
18
|
const seamless_scroll_polyfill_1 = require("seamless-scroll-polyfill");
|
|
19
19
|
const Errors_1 = require("../../../constants/Errors");
|
|
20
20
|
const utils_1 = require("@selfcommunity/utils");
|
|
21
|
-
const
|
|
21
|
+
const constants_1 = require("../constants");
|
|
22
22
|
const classes = {
|
|
23
|
-
|
|
24
|
-
upload: `${PREFIX}-upload`,
|
|
25
|
-
imagesList: `${PREFIX}-images-list`,
|
|
26
|
-
imageItem: `${PREFIX}-image-item`,
|
|
27
|
-
primary: `${PREFIX}-primary`
|
|
23
|
+
dialogRoot: `${constants_1.PREFIX}-dialog-root`,
|
|
24
|
+
upload: `${constants_1.PREFIX}-upload`,
|
|
25
|
+
imagesList: `${constants_1.PREFIX}-images-list`,
|
|
26
|
+
imageItem: `${constants_1.PREFIX}-image-item`,
|
|
27
|
+
primary: `${constants_1.PREFIX}-primary`
|
|
28
28
|
};
|
|
29
29
|
const Root = (0, styles_1.styled)(BaseDialog_1.default, {
|
|
30
|
-
name: PREFIX,
|
|
31
|
-
slot: '
|
|
32
|
-
|
|
33
|
-
})(({ theme }) => ({
|
|
34
|
-
'& .MuiDialogContent-root': {
|
|
35
|
-
paddingLeft: theme.spacing(2)
|
|
36
|
-
},
|
|
37
|
-
[`& .${classes.imagesList}`]: {
|
|
38
|
-
maxHeight: 500
|
|
39
|
-
}
|
|
40
|
-
}));
|
|
30
|
+
name: constants_1.PREFIX,
|
|
31
|
+
slot: 'DialogRoot'
|
|
32
|
+
})(() => ({}));
|
|
41
33
|
function ChangePictureDialog(inProps) {
|
|
42
34
|
//PROPS
|
|
43
35
|
const props = (0, system_1.useThemeProps)({
|
|
44
36
|
props: inProps,
|
|
45
|
-
name: PREFIX
|
|
37
|
+
name: constants_1.PREFIX
|
|
46
38
|
});
|
|
47
39
|
const { open, onChange, onClose, className } = props, rest = tslib_1.__rest(props, ["open", "onChange", "onClose", "className"]);
|
|
48
40
|
//CONTEXT
|
|
@@ -193,7 +185,7 @@ function ChangePictureDialog(inProps) {
|
|
|
193
185
|
/**
|
|
194
186
|
* Renders root object
|
|
195
187
|
*/
|
|
196
|
-
return (react_1.default.createElement(Root, Object.assign({ className: (0, classnames_1.default)(classes.
|
|
188
|
+
return (react_1.default.createElement(Root, Object.assign({ className: (0, classnames_1.default)(classes.dialogRoot, className), title: react_1.default.createElement(react_intl_1.FormattedMessage, { defaultMessage: "ui.changePicture.title", id: "ui.changePicture.title" }), onClose: onClose, open: open }, rest),
|
|
197
189
|
react_1.default.createElement(material_1.Box, { className: classes.upload },
|
|
198
190
|
alert ? (react_1.default.createElement(material_1.Alert, { color: "error", onClose: () => setAlert(false) },
|
|
199
191
|
react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.changePicture.button.upload.alert", defaultMessage: "ui.changePicture.button.upload.alert" }))) : (react_1.default.createElement(react_1.default.Fragment, null,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PREFIX = "SCChangePictureButton";
|
|
@@ -27,29 +27,28 @@ const VoteButton_1 = tslib_1.__importDefault(require("../VoteButton"));
|
|
|
27
27
|
const VoteAudienceButton_1 = tslib_1.__importDefault(require("../VoteAudienceButton"));
|
|
28
28
|
const UserDeletedSnackBar_1 = tslib_1.__importDefault(require("../../shared/UserDeletedSnackBar"));
|
|
29
29
|
const UserAvatar_1 = tslib_1.__importDefault(require("../../shared/UserAvatar"));
|
|
30
|
-
const
|
|
30
|
+
const constants_1 = require("./constants");
|
|
31
31
|
const classes = {
|
|
32
|
-
root: `${PREFIX}-root`,
|
|
33
|
-
comment: `${PREFIX}-comment`,
|
|
34
|
-
nestedComments: `${PREFIX}-nested-comments`,
|
|
35
|
-
avatar: `${PREFIX}-avatar`,
|
|
36
|
-
content: `${PREFIX}-content`,
|
|
37
|
-
showMoreContent: `${PREFIX}-show-more-content`,
|
|
38
|
-
author: `${PREFIX}-author`,
|
|
39
|
-
textContent: `${PREFIX}-text-content`,
|
|
40
|
-
commentActionsMenu: `${PREFIX}-comment-actions-menu`,
|
|
41
|
-
deleted: `${PREFIX}-deleted`,
|
|
42
|
-
activityAt: `${PREFIX}-activity-at`,
|
|
43
|
-
vote: `${PREFIX}-vote`,
|
|
44
|
-
voteAudience: `${PREFIX}-vote-audience`,
|
|
45
|
-
reply: `${PREFIX}-reply`,
|
|
46
|
-
contentSubSection: `${PREFIX}-comment-sub-section`
|
|
32
|
+
root: `${constants_1.PREFIX}-root`,
|
|
33
|
+
comment: `${constants_1.PREFIX}-comment`,
|
|
34
|
+
nestedComments: `${constants_1.PREFIX}-nested-comments`,
|
|
35
|
+
avatar: `${constants_1.PREFIX}-avatar`,
|
|
36
|
+
content: `${constants_1.PREFIX}-content`,
|
|
37
|
+
showMoreContent: `${constants_1.PREFIX}-show-more-content`,
|
|
38
|
+
author: `${constants_1.PREFIX}-author`,
|
|
39
|
+
textContent: `${constants_1.PREFIX}-text-content`,
|
|
40
|
+
commentActionsMenu: `${constants_1.PREFIX}-comment-actions-menu`,
|
|
41
|
+
deleted: `${constants_1.PREFIX}-deleted`,
|
|
42
|
+
activityAt: `${constants_1.PREFIX}-activity-at`,
|
|
43
|
+
vote: `${constants_1.PREFIX}-vote`,
|
|
44
|
+
voteAudience: `${constants_1.PREFIX}-vote-audience`,
|
|
45
|
+
reply: `${constants_1.PREFIX}-reply`,
|
|
46
|
+
contentSubSection: `${constants_1.PREFIX}-comment-sub-section`
|
|
47
47
|
};
|
|
48
48
|
const Root = (0, styles_1.styled)(material_1.Box, {
|
|
49
|
-
name: PREFIX,
|
|
50
|
-
slot: 'Root'
|
|
51
|
-
|
|
52
|
-
})(({ theme }) => ({}));
|
|
49
|
+
name: constants_1.PREFIX,
|
|
50
|
+
slot: 'Root'
|
|
51
|
+
})(() => ({}));
|
|
53
52
|
/**
|
|
54
53
|
* > API documentation for the Community-JS Comment Object component. Learn about the available props and the CSS API.
|
|
55
54
|
*
|
|
@@ -93,7 +92,7 @@ function CommentObject(inProps) {
|
|
|
93
92
|
// PROPS
|
|
94
93
|
const props = (0, system_1.useThemeProps)({
|
|
95
94
|
props: inProps,
|
|
96
|
-
name: PREFIX
|
|
95
|
+
name: constants_1.PREFIX
|
|
97
96
|
});
|
|
98
97
|
const { id = `comment_object_${props.commentObjectId ? props.commentObjectId : props.commentObject ? props.commentObject.id : ''}`, className, commentObjectId, commentObject, feedObjectId, feedObject, feedObjectType = types_1.SCContributionType.POST, commentReply, onOpenReply, onDelete, onVote, elevation = 0, truncateContent = false, CommentObjectSkeletonProps = { elevation, WidgetProps: { variant: 'outlined' } }, CommentObjectReplyProps = { elevation, WidgetProps: { variant: 'outlined' } }, linkableCommentDateTime = true, cacheStrategy = utils_1.CacheStrategies.NETWORK_ONLY, CommentsObjectComponentProps = {} } = props, rest = tslib_1.__rest(props, ["id", "className", "commentObjectId", "commentObject", "feedObjectId", "feedObject", "feedObjectType", "commentReply", "onOpenReply", "onDelete", "onVote", "elevation", "truncateContent", "CommentObjectSkeletonProps", "CommentObjectReplyProps", "linkableCommentDateTime", "cacheStrategy", "CommentsObjectComponentProps"]);
|
|
99
98
|
// CONTEXT
|
|
@@ -9,13 +9,13 @@
|
|
|
9
9
|
|
|
10
10
|
#### Component Name
|
|
11
11
|
|
|
12
|
-
The name `
|
|
12
|
+
The name `SCCommentObject-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|.SCCommentObject-skeleton-root|Styles applied to the root element.|
|
|
19
19
|
*
|
|
20
20
|
*/
|
|
21
21
|
export default function CommentObjectSkeleton(props: any): JSX.Element;
|
|
@@ -7,31 +7,16 @@ const styles_1 = require("@mui/material/styles");
|
|
|
7
7
|
const Skeleton_1 = tslib_1.__importDefault(require("@mui/material/Skeleton"));
|
|
8
8
|
const material_1 = require("@mui/material");
|
|
9
9
|
const BaseItem_1 = tslib_1.__importDefault(require("../../shared/BaseItem"));
|
|
10
|
-
const
|
|
10
|
+
const constants_1 = require("./constants");
|
|
11
11
|
const classes = {
|
|
12
|
-
root: `${PREFIX}-root`,
|
|
13
|
-
avatar: `${PREFIX}-avatar`,
|
|
14
|
-
primaryContent: `${PREFIX}-primary-content`
|
|
12
|
+
root: `${constants_1.PREFIX}-skeleton-root`,
|
|
13
|
+
avatar: `${constants_1.PREFIX}-avatar`,
|
|
14
|
+
primaryContent: `${constants_1.PREFIX}-primary-content`
|
|
15
15
|
};
|
|
16
16
|
const Root = (0, styles_1.styled)(BaseItem_1.default, {
|
|
17
|
-
name: PREFIX,
|
|
18
|
-
slot: '
|
|
19
|
-
|
|
20
|
-
})(({ theme }) => ({
|
|
21
|
-
[`&.${classes.root}`]: {
|
|
22
|
-
paddingBottom: theme.spacing(),
|
|
23
|
-
overflow: 'visible',
|
|
24
|
-
'& > div': {
|
|
25
|
-
alignItems: 'flex-start'
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
[`& .${classes.avatar}`]: {
|
|
29
|
-
top: theme.spacing()
|
|
30
|
-
},
|
|
31
|
-
[`& .${classes.primaryContent}`]: {
|
|
32
|
-
marginBottom: theme.spacing()
|
|
33
|
-
}
|
|
34
|
-
}));
|
|
17
|
+
name: constants_1.PREFIX,
|
|
18
|
+
slot: 'SkeletonRoot'
|
|
19
|
+
})(() => ({}));
|
|
35
20
|
/**
|
|
36
21
|
* > API documentation for the Community-JS Comment Object Skeleton component. Learn about the available props and the CSS API.
|
|
37
22
|
|
|
@@ -43,13 +28,13 @@ const Root = (0, styles_1.styled)(BaseItem_1.default, {
|
|
|
43
28
|
|
|
44
29
|
#### Component Name
|
|
45
30
|
|
|
46
|
-
The name `
|
|
31
|
+
The name `SCCommentObject-skeleton-root` can be used when providing style overrides in the theme.
|
|
47
32
|
|
|
48
33
|
#### CSS
|
|
49
34
|
|
|
50
35
|
|Rule Name|Global class|Description|
|
|
51
36
|
|---|---|---|
|
|
52
|
-
|root|.
|
|
37
|
+
|root|.SCCommentObject-skeleton-root|Styles applied to the root element.|
|
|
53
38
|
*
|
|
54
39
|
*/
|
|
55
40
|
function CommentObjectSkeleton(props) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PREFIX = "SCCommentObject";
|
|
@@ -18,17 +18,16 @@ const utils_1 = require("@selfcommunity/utils");
|
|
|
18
18
|
const react_core_1 = require("@selfcommunity/react-core");
|
|
19
19
|
const types_1 = require("@selfcommunity/types");
|
|
20
20
|
const Pagination_1 = require("../../constants/Pagination");
|
|
21
|
-
const
|
|
21
|
+
const constants_1 = require("./constants");
|
|
22
22
|
const classes = {
|
|
23
|
-
root: `${PREFIX}-root`,
|
|
24
|
-
noComments: `${PREFIX}-no-comments`,
|
|
25
|
-
commentNotFound: `${PREFIX}-comment-not-found`
|
|
23
|
+
root: `${constants_1.PREFIX}-root`,
|
|
24
|
+
noComments: `${constants_1.PREFIX}-no-comments`,
|
|
25
|
+
commentNotFound: `${constants_1.PREFIX}-comment-not-found`
|
|
26
26
|
};
|
|
27
27
|
const Root = (0, styles_1.styled)(material_1.Box, {
|
|
28
|
-
name: PREFIX,
|
|
29
|
-
slot: 'Root'
|
|
30
|
-
|
|
31
|
-
})(({ theme }) => ({}));
|
|
28
|
+
name: constants_1.PREFIX,
|
|
29
|
+
slot: 'Root'
|
|
30
|
+
})(() => ({}));
|
|
32
31
|
/**
|
|
33
32
|
* > API documentation for the Community-JS Comments Feed Object component. Learn about the available props and the CSS API.
|
|
34
33
|
*
|
|
@@ -59,7 +58,7 @@ const Root = (0, styles_1.styled)(material_1.Box, {
|
|
|
59
58
|
function CommentsFeedObject(inProps) {
|
|
60
59
|
const props = (0, system_1.useThemeProps)({
|
|
61
60
|
props: inProps,
|
|
62
|
-
name: PREFIX
|
|
61
|
+
name: constants_1.PREFIX
|
|
63
62
|
});
|
|
64
63
|
// PROPS
|
|
65
64
|
const { id = `comments_object_${props.feedObjectType ? props.feedObjectType : props.feedObject ? props.feedObject.type : ''}_${props.feedObjectId ? props.feedObjectId : props.feedObject ? props.feedObject.id : ''}`, className, feedObjectId, feedObject, feedObjectType = types_1.SCContributionType.POST, commentObjectId, commentObject, CommentComponent = CommentObject_1.default, CommentComponentProps = { variant: 'outlined', linkableCommentDateTime: false }, CommentObjectSkeletonProps = { elevation: 0, WidgetProps: { variant: 'outlined' } }, renderNoComments, renderCommentNotFound, page = 1, commentsPageCount = Pagination_1.DEFAULT_PAGINATION_LIMIT, commentsOrderBy = comments_1.SCCommentsOrderBy.ADDED_AT_ASC, showTitle = false, infiniteScrolling = true, onChangePage, comments = [], cacheStrategy = utils_1.CacheStrategies.NETWORK_ONLY } = props, rest = tslib_1.__rest(props, ["id", "className", "feedObjectId", "feedObject", "feedObjectType", "commentObjectId", "commentObject", "CommentComponent", "CommentComponentProps", "CommentObjectSkeletonProps", "renderNoComments", "renderCommentNotFound", "page", "commentsPageCount", "commentsOrderBy", "showTitle", "infiniteScrolling", "onChangePage", "comments", "cacheStrategy"]);
|
|
@@ -3,7 +3,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const react_1 = tslib_1.__importDefault(require("react"));
|
|
5
5
|
const CommentsObject_1 = require("../CommentsObject");
|
|
6
|
+
const constants_1 = require("./constants");
|
|
7
|
+
const styles_1 = require("@mui/material/styles");
|
|
8
|
+
const classes = {
|
|
9
|
+
root: `${constants_1.PREFIX}-skeleton-root`
|
|
10
|
+
};
|
|
11
|
+
const Root = (0, styles_1.styled)(CommentsObject_1.CommentsObjectSkeleton, {
|
|
12
|
+
name: constants_1.PREFIX,
|
|
13
|
+
slot: 'SkeletonRoot'
|
|
14
|
+
})(() => ({}));
|
|
6
15
|
function CommentsFeedObjectSkeleton(props) {
|
|
7
|
-
return react_1.default.createElement(
|
|
16
|
+
return react_1.default.createElement(Root, Object.assign({ className: classes.root }, props));
|
|
8
17
|
}
|
|
9
18
|
exports.default = CommentsFeedObjectSkeleton;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PREFIX = "SCCommentsFeedObject";
|
|
@@ -17,22 +17,21 @@ const types_1 = require("@selfcommunity/types");
|
|
|
17
17
|
const utils_1 = require("@selfcommunity/utils");
|
|
18
18
|
const Pagination_1 = require("../../constants/Pagination");
|
|
19
19
|
const react_core_1 = require("@selfcommunity/react-core");
|
|
20
|
-
const
|
|
20
|
+
const constants_1 = require("./constants");
|
|
21
21
|
const classes = {
|
|
22
|
-
root: `${PREFIX}-root`,
|
|
23
|
-
loadNextCommentsButton: `${PREFIX}-load-more-comments-button`,
|
|
24
|
-
loadPreviousCommentsButton: `${PREFIX}-load-previous-comments-button`,
|
|
25
|
-
paginationLink: `${PREFIX}-pagination-link`,
|
|
26
|
-
pagination: `${PREFIX}-pagination`,
|
|
27
|
-
commentsCounter: `${PREFIX}-comments-counter`,
|
|
28
|
-
commentNotFound: `${PREFIX}-comment-not-found`,
|
|
29
|
-
noOtherComments: `${PREFIX}-no-other-comment`
|
|
22
|
+
root: `${constants_1.PREFIX}-root`,
|
|
23
|
+
loadNextCommentsButton: `${constants_1.PREFIX}-load-more-comments-button`,
|
|
24
|
+
loadPreviousCommentsButton: `${constants_1.PREFIX}-load-previous-comments-button`,
|
|
25
|
+
paginationLink: `${constants_1.PREFIX}-pagination-link`,
|
|
26
|
+
pagination: `${constants_1.PREFIX}-pagination`,
|
|
27
|
+
commentsCounter: `${constants_1.PREFIX}-comments-counter`,
|
|
28
|
+
commentNotFound: `${constants_1.PREFIX}-comment-not-found`,
|
|
29
|
+
noOtherComments: `${constants_1.PREFIX}-no-other-comment`
|
|
30
30
|
};
|
|
31
31
|
const Root = (0, styles_1.styled)(material_1.Box, {
|
|
32
|
-
name: PREFIX,
|
|
33
|
-
slot: 'Root'
|
|
34
|
-
|
|
35
|
-
})(({ theme }) => ({}));
|
|
32
|
+
name: constants_1.PREFIX,
|
|
33
|
+
slot: 'Root'
|
|
34
|
+
})(() => ({}));
|
|
36
35
|
const PREFERENCES = [react_core_1.SCPreferences.ADVERTISING_CUSTOM_ADV_ENABLED, react_core_1.SCPreferences.ADVERTISING_CUSTOM_ADV_ONLY_FOR_ANONYMOUS_USERS_ENABLED];
|
|
37
36
|
/**
|
|
38
37
|
* > API documentation for the Community-JS Comments Object component. Learn about the available props and the CSS API.
|
|
@@ -63,7 +62,7 @@ const PREFERENCES = [react_core_1.SCPreferences.ADVERTISING_CUSTOM_ADV_ENABLED,
|
|
|
63
62
|
function CommentsObject(inProps) {
|
|
64
63
|
const props = (0, system_1.useThemeProps)({
|
|
65
64
|
props: inProps,
|
|
66
|
-
name: PREFIX
|
|
65
|
+
name: constants_1.PREFIX
|
|
67
66
|
});
|
|
68
67
|
// PROPS
|
|
69
68
|
const { id = `comments_object_${props.feedObjectId ? props.feedObjectId : props.feedObject ? props.feedObject.id : ''}`, className, feedObjectId, feedObject, feedObjectType = types_1.SCContributionType.POST, CommentComponent = CommentObject_1.default, CommentComponentProps = { variant: 'outlined' }, CommentObjectSkeletonProps = { elevation: 0, WidgetProps: { variant: 'outlined' } }, CommentsObjectSkeletonProps = {}, next, isLoadingNext, handleNext, previous, isLoadingPrevious, handlePrevious, totalLoadedComments, totalComments, page, previousPage, nextPage, comments = [], startComments = [], endComments = [], infiniteScrolling = false, hideAdvertising = false, disablePaginationLinks = false, hidePaginationLinks = true, inPlaceLoadMoreContents = true, paginationLinksPageQueryParam = Pagination_1.DEFAULT_PAGINATION_QUERY_PARAM_NAME, PaginationLinkProps = {}, cacheStrategy = utils_1.CacheStrategies.NETWORK_ONLY } = props, rest = tslib_1.__rest(props, ["id", "className", "feedObjectId", "feedObject", "feedObjectType", "CommentComponent", "CommentComponentProps", "CommentObjectSkeletonProps", "CommentsObjectSkeletonProps", "next", "isLoadingNext", "handleNext", "previous", "isLoadingPrevious", "handlePrevious", "totalLoadedComments", "totalComments", "page", "previousPage", "nextPage", "comments", "startComments", "endComments", "infiniteScrolling", "hideAdvertising", "disablePaginationLinks", "hidePaginationLinks", "inPlaceLoadMoreContents", "paginationLinksPageQueryParam", "PaginationLinkProps", "cacheStrategy"]);
|
|
@@ -9,13 +9,13 @@
|
|
|
9
9
|
|
|
10
10
|
#### Component Name
|
|
11
11
|
|
|
12
|
-
The name `
|
|
12
|
+
The name `SCCommentsObject-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|.SCCommentsObject-skeleton-root|Styles applied to the root element.|
|
|
19
19
|
*
|
|
20
20
|
*/
|
|
21
21
|
export default function CommentsObjectSkeleton(props: {
|
|
@@ -5,13 +5,14 @@ const react_1 = tslib_1.__importDefault(require("react"));
|
|
|
5
5
|
const styles_1 = require("@mui/material/styles");
|
|
6
6
|
const CommentObject_1 = require("../CommentObject");
|
|
7
7
|
const material_1 = require("@mui/material");
|
|
8
|
-
const
|
|
8
|
+
const constants_1 = require("./constants");
|
|
9
9
|
const classes = {
|
|
10
|
-
root: `${PREFIX}-root`
|
|
10
|
+
root: `${constants_1.PREFIX}-skeleton-root`
|
|
11
11
|
};
|
|
12
|
-
const Root = (0, styles_1.styled)(material_1.Box
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
const Root = (0, styles_1.styled)(material_1.Box, {
|
|
13
|
+
name: constants_1.PREFIX,
|
|
14
|
+
slot: 'SkeletonRoot'
|
|
15
|
+
})(() => ({}));
|
|
15
16
|
/**
|
|
16
17
|
* > API documentation for the Community-JS Comments Object Skeleton component. Learn about the available props and the CSS API.
|
|
17
18
|
|
|
@@ -23,13 +24,13 @@ const Root = (0, styles_1.styled)(material_1.Box)(({ theme }) => ({
|
|
|
23
24
|
|
|
24
25
|
#### Component Name
|
|
25
26
|
|
|
26
|
-
The name `
|
|
27
|
+
The name `SCCommentsObject-skeleton-root` can be used when providing style overrides in the theme.
|
|
27
28
|
|
|
28
29
|
#### CSS
|
|
29
30
|
|
|
30
31
|
|Rule Name|Global class|Description|
|
|
31
32
|
|---|---|---|
|
|
32
|
-
|root|.
|
|
33
|
+
|root|.SCCommentsObject-skeleton-root|Styles applied to the root element.|
|
|
33
34
|
*
|
|
34
35
|
*/
|
|
35
36
|
function CommentsObjectSkeleton(props) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PREFIX = "SCCommentsObject";
|
|
@@ -24,116 +24,30 @@ const legalPages_1 = require("../../utils/legalPages");
|
|
|
24
24
|
const react_intl_1 = require("react-intl");
|
|
25
25
|
const seamless_scroll_polyfill_1 = require("seamless-scroll-polyfill");
|
|
26
26
|
const AccountDataPortability_1 = tslib_1.__importDefault(require("../AccountDataPortability"));
|
|
27
|
-
const
|
|
27
|
+
const constants_1 = require("./constants");
|
|
28
28
|
const classes = {
|
|
29
|
-
root: `${PREFIX}-root`,
|
|
30
|
-
title: `${PREFIX}-title`,
|
|
31
|
-
titleBack: `${PREFIX}-title-back`,
|
|
32
|
-
content: `${PREFIX}-content`,
|
|
33
|
-
consent: `${PREFIX}-consent`,
|
|
34
|
-
consentSwitch: `${PREFIX}-consent-switch`,
|
|
35
|
-
actions: `${PREFIX}-actions`,
|
|
36
|
-
backButton: `${PREFIX}-back-button`,
|
|
37
|
-
nextButton: `${PREFIX}-next-button`,
|
|
38
|
-
closeButton: `${PREFIX}-close-button`,
|
|
39
|
-
confirmDeleteAccountButton: `${PREFIX}-confirm-delete-account-button`,
|
|
40
|
-
logoutAccountButton: `${PREFIX}-logout-account-button`,
|
|
41
|
-
deleteAccountButton: `${PREFIX}-delete-account-button`,
|
|
42
|
-
dataPortability: `${PREFIX}-data-portability`,
|
|
43
|
-
dataPortabilityCheck: `${PREFIX}-download-data-portability-check`,
|
|
44
|
-
alertAcceptDocument: `${PREFIX}-alert-accept-document`,
|
|
45
|
-
acceptConditions: `${PREFIX}-accept-conditions`
|
|
29
|
+
root: `${constants_1.PREFIX}-root`,
|
|
30
|
+
title: `${constants_1.PREFIX}-title`,
|
|
31
|
+
titleBack: `${constants_1.PREFIX}-title-back`,
|
|
32
|
+
content: `${constants_1.PREFIX}-content`,
|
|
33
|
+
consent: `${constants_1.PREFIX}-consent`,
|
|
34
|
+
consentSwitch: `${constants_1.PREFIX}-consent-switch`,
|
|
35
|
+
actions: `${constants_1.PREFIX}-actions`,
|
|
36
|
+
backButton: `${constants_1.PREFIX}-back-button`,
|
|
37
|
+
nextButton: `${constants_1.PREFIX}-next-button`,
|
|
38
|
+
closeButton: `${constants_1.PREFIX}-close-button`,
|
|
39
|
+
confirmDeleteAccountButton: `${constants_1.PREFIX}-confirm-delete-account-button`,
|
|
40
|
+
logoutAccountButton: `${constants_1.PREFIX}-logout-account-button`,
|
|
41
|
+
deleteAccountButton: `${constants_1.PREFIX}-delete-account-button`,
|
|
42
|
+
dataPortability: `${constants_1.PREFIX}-data-portability`,
|
|
43
|
+
dataPortabilityCheck: `${constants_1.PREFIX}-download-data-portability-check`,
|
|
44
|
+
alertAcceptDocument: `${constants_1.PREFIX}-alert-accept-document`,
|
|
45
|
+
acceptConditions: `${constants_1.PREFIX}-accept-conditions`
|
|
46
46
|
};
|
|
47
47
|
const Root = (0, styles_1.styled)(Dialog_1.default, {
|
|
48
|
-
name: PREFIX,
|
|
49
|
-
slot: 'Root'
|
|
50
|
-
|
|
51
|
-
})(({ theme }) => ({
|
|
52
|
-
[`& .${classes.title}`]: {
|
|
53
|
-
display: 'flex',
|
|
54
|
-
justifyContent: 'center',
|
|
55
|
-
fontWeight: 800,
|
|
56
|
-
[theme.breakpoints.down('sm')]: {
|
|
57
|
-
fontSize: '0.9rem'
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
[`& .${classes.titleBack}`]: {
|
|
61
|
-
display: 'flex',
|
|
62
|
-
justifyContent: 'left'
|
|
63
|
-
},
|
|
64
|
-
[`& .${classes.content}`]: {
|
|
65
|
-
padding: theme.spacing(2),
|
|
66
|
-
overflowX: 'hidden',
|
|
67
|
-
fontSize: '0.8rem',
|
|
68
|
-
[theme.breakpoints.down('sm')]: {
|
|
69
|
-
padding: 12,
|
|
70
|
-
'& h6': {
|
|
71
|
-
fontSize: '0.8rem'
|
|
72
|
-
},
|
|
73
|
-
'& span, p, li': {
|
|
74
|
-
fontSize: '0.7rem'
|
|
75
|
-
},
|
|
76
|
-
'& li': {
|
|
77
|
-
fontSize: '0.7rem'
|
|
78
|
-
},
|
|
79
|
-
'& button': {
|
|
80
|
-
fontSize: '0.6rem'
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
[`& .${classes.consent}`]: {
|
|
85
|
-
borderTop: 0,
|
|
86
|
-
overflowY: 'visible',
|
|
87
|
-
[theme.breakpoints.down('sm')]: {
|
|
88
|
-
paddingTop: 5,
|
|
89
|
-
paddingBottom: 5
|
|
90
|
-
}
|
|
91
|
-
},
|
|
92
|
-
[`& .${classes.consentSwitch}`]: {
|
|
93
|
-
margin: `${theme.spacing()} 3px`,
|
|
94
|
-
'& > span:first-of-type': {
|
|
95
|
-
marginRight: 10
|
|
96
|
-
},
|
|
97
|
-
[theme.breakpoints.down('sm')]: {
|
|
98
|
-
'.MuiFormControlLabel-label': {
|
|
99
|
-
fontSize: '0.7rem'
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
|
-
[`& .${classes.deleteAccountButton}`]: {
|
|
104
|
-
cursor: 'pointer',
|
|
105
|
-
'&:hover': {
|
|
106
|
-
textDecoration: 'underline'
|
|
107
|
-
}
|
|
108
|
-
},
|
|
109
|
-
[`& .${classes.confirmDeleteAccountButton}`]: {
|
|
110
|
-
color: '#FFF !important',
|
|
111
|
-
marginRight: theme.spacing(2),
|
|
112
|
-
marginBottom: theme.spacing()
|
|
113
|
-
},
|
|
114
|
-
[`& .${classes.logoutAccountButton}`]: {
|
|
115
|
-
marginBottom: theme.spacing()
|
|
116
|
-
},
|
|
117
|
-
[`& .${classes.dataPortability}`]: {
|
|
118
|
-
marginBottom: theme.spacing(2)
|
|
119
|
-
},
|
|
120
|
-
[`& .${classes.alertAcceptDocument}`]: {
|
|
121
|
-
padding: theme.spacing(),
|
|
122
|
-
[theme.breakpoints.down('sm')]: {
|
|
123
|
-
fontSize: '0.7rem',
|
|
124
|
-
padding: 5
|
|
125
|
-
}
|
|
126
|
-
},
|
|
127
|
-
[`& .${classes.acceptConditions}`]: {
|
|
128
|
-
fontSize: '0.8rem',
|
|
129
|
-
fontWeight: 300,
|
|
130
|
-
color: theme.palette.grey['A700'],
|
|
131
|
-
padding: `${theme.spacing()} ${theme.spacing()}`,
|
|
132
|
-
[theme.breakpoints.down('sm')]: {
|
|
133
|
-
fontSize: '0.6rem'
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
}));
|
|
48
|
+
name: constants_1.PREFIX,
|
|
49
|
+
slot: 'Root'
|
|
50
|
+
})(() => ({}));
|
|
137
51
|
/**
|
|
138
52
|
* Translations
|
|
139
53
|
*/
|
|
@@ -197,7 +111,7 @@ function ConsentSolution(inProps) {
|
|
|
197
111
|
// PROPS
|
|
198
112
|
const props = (0, system_1.useThemeProps)({
|
|
199
113
|
props: inProps,
|
|
200
|
-
name: PREFIX
|
|
114
|
+
name: constants_1.PREFIX
|
|
201
115
|
});
|
|
202
116
|
const { className, open = true, onClose, legalPolicies = LegalPolicies_1.LEGAL_POLICIES, onLogout, onDeleteAccount } = props, rest = tslib_1.__rest(props, ["className", "open", "onClose", "legalPolicies", "onLogout", "onDeleteAccount"]);
|
|
203
117
|
// CONTEXT
|
|
@@ -9,18 +9,18 @@
|
|
|
9
9
|
|
|
10
10
|
#### Component Name
|
|
11
11
|
|
|
12
|
-
The name `
|
|
12
|
+
The name `SCConsentSolution-skeleton-root` can be used when providing style overrides in the theme.
|
|
13
13
|
|
|
14
14
|
#### CSS
|
|
15
15
|
|
|
16
16
|
|Rule Name|Global class|Description|
|
|
17
17
|
|---|---|---|
|
|
18
|
-
|root|.
|
|
19
|
-
|title|.
|
|
20
|
-
|content|.
|
|
21
|
-
|consent|.
|
|
22
|
-
|consentSwitch|.
|
|
23
|
-
|actions|.
|
|
18
|
+
|root|.SCConsentSolution-skeleton-root|Styles applied to the root element.|
|
|
19
|
+
|title|.SCConsentSolution-title|Styles applied to the title element.|
|
|
20
|
+
|content|.SCConsentSolution-content|Styles applied to the content element.|
|
|
21
|
+
|consent|.SCConsentSolution-consent|Styles applied to the consent element.|
|
|
22
|
+
|consentSwitch|.SCConsentSolution-consent-switch|Styles applied to the switch skeleton element.|
|
|
23
|
+
|actions|.SCConsentSolution-actions|Styles applied to the actions section.|
|
|
24
24
|
*
|
|
25
25
|
*/
|
|
26
26
|
export default function ConsentSolutionSkeleton(): JSX.Element;
|