@selfcommunity/react-ui 0.1.2-alpha.6 → 0.1.2-alpha.9
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/AccountRecover/AccountRecover.js +1 -1
- package/lib/cjs/components/AccountSignIn/AccountSignIn.js +1 -1
- package/lib/cjs/components/AccountSignUp/AccountSignUp.js +1 -1
- package/lib/cjs/components/BroadcastMessages/BroadcastMessages.js +1 -1
- package/lib/cjs/components/BroadcastMessages/Message.js +2 -2
- package/lib/cjs/components/BroadcastMessages/Skeleton.js +2 -2
- package/lib/cjs/components/CategoriesFollowed/CategoriesFollowed.js +4 -21
- package/lib/cjs/components/CategoriesFollowed/Skeleton.js +1 -1
- package/lib/cjs/components/CategoriesPopular/CategoriesPopular.js +1 -1
- package/lib/cjs/components/CategoriesPopular/Skeleton.js +1 -1
- package/lib/cjs/components/CategoriesSuggestion/CategoriesSuggestion.js +2 -5
- package/lib/cjs/components/CategoriesSuggestion/Skeleton.js +1 -1
- package/lib/cjs/components/Category/Category.js +1 -1
- package/lib/cjs/components/Category/Skeleton.js +1 -1
- package/lib/cjs/components/CategoryHeader/CategoryHeader.js +1 -1
- package/lib/cjs/components/CategoryHeader/Skeleton.js +1 -1
- package/lib/cjs/components/ChangeCover/ChangeCover.js +1 -1
- package/lib/cjs/components/ChangePicture/ChangePicture.js +1 -1
- package/lib/cjs/components/CommentObject/CommentObject.js +14 -6
- package/lib/cjs/components/CommentObject/Skeleton.js +1 -1
- package/lib/cjs/components/CommentsFeedObject/CommentsFeedObject.js +3 -2
- package/lib/cjs/components/CommentsObject/CommentsObject.js +1 -1
- package/lib/cjs/components/CommentsObject/Skeleton.js +1 -1
- package/lib/cjs/components/Composer/Composer.js +31 -16
- package/lib/cjs/components/Composer/Poll/Poll.js +10 -2
- package/lib/cjs/components/Composer/Skeleton.js +1 -1
- package/lib/cjs/components/ConnectionUserButton/ConnectionUserButton.js +1 -1
- package/lib/cjs/components/CustomAdv/CustomAdv.js +1 -1
- package/lib/cjs/components/CustomAdv/Skeleton.js +1 -1
- package/lib/cjs/components/Editor/Editor.js +1 -1
- package/lib/cjs/components/Editor/Skeleton.js +1 -1
- package/lib/cjs/components/Feed/Feed.js +18 -16
- package/lib/cjs/components/Feed/Skeleton.js +1 -1
- package/lib/cjs/components/FeedObject/Actions/Share/Share.js +3 -0
- package/lib/cjs/components/FeedObject/FeedObject.js +2 -2
- package/lib/cjs/components/FeedObject/Skeleton.js +1 -1
- package/lib/cjs/components/FeedUpdates/FeedUpdates.js +1 -1
- package/lib/cjs/components/FeedUpdates/Skeleton.js +1 -1
- package/lib/cjs/components/FollowCategoryButton/FollowCategoryButton.js +1 -1
- package/lib/cjs/components/FollowUserButton/FollowUserButton.js +1 -1
- package/lib/cjs/components/Footer/Footer.js +1 -1
- package/lib/cjs/components/Footer/Skeleton.js +1 -1
- package/lib/cjs/components/FriendshipUserButton/FriendshipUserButton.js +1 -1
- package/lib/cjs/components/Incubator/Incubator.js +1 -1
- package/lib/cjs/components/Incubator/Skeleton.js +1 -1
- package/lib/cjs/components/Incubator/SubscribeButton/SubscribeButton.js +1 -1
- package/lib/cjs/components/IncubatorDetail/IncubatorDetail.js +1 -1
- package/lib/cjs/components/IncubatorSuggestion/IncubatorSuggestion.js +1 -1
- package/lib/cjs/components/IncubatorSuggestion/Skeleton.js +1 -1
- package/lib/cjs/components/IncubatorsList/IncubatorsList.js +1 -1
- package/lib/cjs/components/IncubatorsList/Skeleton.js +1 -1
- package/lib/cjs/components/InlineComposer/InlineComposer.js +1 -1
- package/lib/cjs/components/InlineComposer/Skeleton.js +1 -1
- package/lib/cjs/components/LoyaltyProgram/LoyaltyProgram.js +1 -1
- package/lib/cjs/components/LoyaltyProgram/Skeleton.js +1 -1
- package/lib/cjs/components/LoyaltyProgramDetail/LoyaltyProgramDetail.js +7 -3
- package/lib/cjs/components/LoyaltyProgramDetail/Skeleton.js +1 -1
- package/lib/cjs/components/Message/Message.js +1 -1
- package/lib/cjs/components/Message/Skeleton.js +1 -1
- package/lib/cjs/components/MessageEditor/MessageEditor.js +1 -1
- package/lib/cjs/components/MessageEditor/Skeleton.js +1 -1
- package/lib/cjs/components/Notification/Notification.js +1 -1
- package/lib/cjs/components/Notification/Skeleton.js +1 -1
- package/lib/cjs/components/PeopleSuggestion/PeopleSuggestion.js +3 -9
- package/lib/cjs/components/PeopleSuggestion/Skeleton.js +1 -1
- package/lib/cjs/components/Platform/Platform.js +1 -1
- package/lib/cjs/components/Platform/Skeleton.js +1 -1
- package/lib/cjs/components/PollSuggestion/PollSnippet/PollSnippet.js +1 -1
- package/lib/cjs/components/PollSuggestion/PollSnippet/Skeleton.js +1 -1
- package/lib/cjs/components/PollSuggestion/PollSuggestion.js +1 -1
- package/lib/cjs/components/PollSuggestion/Skeleton.js +1 -1
- package/lib/cjs/components/RelatedFeedObjects/RelatedFeedObjects.js +1 -1
- package/lib/cjs/components/RelatedFeedObjects/Skeleton.js +1 -1
- package/lib/cjs/components/Skeleton/AvatarGroupSkeleton.js +1 -1
- package/lib/cjs/components/Skeleton/GenericSkeleton.js +1 -1
- package/lib/cjs/components/SnippetNotifications/Skeleton.js +1 -1
- package/lib/cjs/components/SnippetNotifications/SnippetNotifications.js +1 -1
- package/lib/cjs/components/Snippets/Skeleton.js +1 -1
- package/lib/cjs/components/Snippets/Snippets.js +1 -1
- package/lib/cjs/components/Thread/Skeleton.js +1 -1
- package/lib/cjs/components/Thread/Thread.js +1 -1
- package/lib/cjs/components/ToastNotifications/Skeleton.js +1 -1
- package/lib/cjs/components/ToastNotifications/ToastNotifications.js +1 -1
- package/lib/cjs/components/TrendingFeed/Skeleton.js +1 -1
- package/lib/cjs/components/TrendingFeed/TrendingFeed.js +1 -1
- package/lib/cjs/components/TrendingPeople/Skeleton.js +1 -1
- package/lib/cjs/components/TrendingPeople/TrendingPeople.js +1 -1
- package/lib/cjs/components/User/Skeleton.js +1 -1
- package/lib/cjs/components/User/User.js +1 -1
- package/lib/cjs/components/UserFollowers/Skeleton.js +1 -1
- package/lib/cjs/components/UserFollowers/UserFollowers.js +1 -1
- package/lib/cjs/components/UserProfileEdit/Section/SettingsSkeleton.js +1 -1
- package/lib/cjs/components/UserProfileEdit/Skeleton.js +1 -1
- package/lib/cjs/components/UserProfileEdit/UserProfileEdit.js +1 -1
- package/lib/cjs/components/UserProfileHeader/Skeleton.js +1 -1
- package/lib/cjs/components/UserProfileHeader/UserProfileHeader.js +1 -1
- package/lib/cjs/components/UserProfileInfo/Skeleton.js +1 -1
- package/lib/cjs/components/UserProfileInfo/UserProfileInfo.js +1 -1
- package/lib/cjs/components/UsersFollowed/Skeleton.js +1 -1
- package/lib/cjs/components/UsersFollowed/UsersFollowed.js +4 -19
- package/lib/cjs/components/Widget/index.js +1 -1
- package/lib/cjs/shared/BaseItem/BaseItem.js +1 -1
- package/lib/cjs/shared/BaseItemButton/BaseItemButton.js +1 -1
- package/lib/cjs/shared/DateTimeAgo/index.js +2 -1
- package/lib/cjs/shared/NotificationItem/NotificationItem.js +1 -1
- package/lib/esm/components/AccountRecover/AccountRecover.js +1 -1
- package/lib/esm/components/AccountSignIn/AccountSignIn.js +1 -1
- package/lib/esm/components/AccountSignUp/AccountSignUp.js +1 -1
- package/lib/esm/components/BroadcastMessages/BroadcastMessages.js +1 -1
- package/lib/esm/components/BroadcastMessages/Message.js +2 -2
- package/lib/esm/components/BroadcastMessages/Skeleton.js +2 -2
- package/lib/esm/components/CategoriesFollowed/CategoriesFollowed.js +4 -21
- package/lib/esm/components/CategoriesFollowed/Skeleton.js +1 -1
- package/lib/esm/components/CategoriesPopular/CategoriesPopular.js +1 -1
- package/lib/esm/components/CategoriesPopular/Skeleton.js +1 -1
- package/lib/esm/components/CategoriesSuggestion/CategoriesSuggestion.js +2 -5
- package/lib/esm/components/CategoriesSuggestion/Skeleton.js +1 -1
- package/lib/esm/components/Category/Category.js +1 -1
- package/lib/esm/components/Category/Skeleton.js +1 -1
- package/lib/esm/components/CategoryHeader/CategoryHeader.js +1 -1
- package/lib/esm/components/CategoryHeader/Skeleton.js +1 -1
- package/lib/esm/components/ChangeCover/ChangeCover.js +1 -1
- package/lib/esm/components/ChangePicture/ChangePicture.js +1 -1
- package/lib/esm/components/CommentObject/CommentObject.js +14 -6
- package/lib/esm/components/CommentObject/Skeleton.js +1 -1
- package/lib/esm/components/CommentsFeedObject/CommentsFeedObject.js +3 -2
- package/lib/esm/components/CommentsObject/CommentsObject.js +1 -1
- package/lib/esm/components/CommentsObject/Skeleton.js +1 -1
- package/lib/esm/components/Composer/Composer.js +31 -16
- package/lib/esm/components/Composer/Poll/Poll.js +10 -2
- package/lib/esm/components/Composer/Skeleton.js +1 -1
- package/lib/esm/components/ConnectionUserButton/ConnectionUserButton.js +1 -1
- package/lib/esm/components/CustomAdv/CustomAdv.js +1 -1
- package/lib/esm/components/CustomAdv/Skeleton.js +1 -1
- package/lib/esm/components/Editor/Editor.js +1 -1
- package/lib/esm/components/Editor/Skeleton.js +1 -1
- package/lib/esm/components/Feed/Feed.js +18 -16
- package/lib/esm/components/Feed/Skeleton.js +1 -1
- package/lib/esm/components/FeedObject/Actions/Share/Share.js +3 -0
- package/lib/esm/components/FeedObject/FeedObject.js +2 -2
- package/lib/esm/components/FeedObject/Skeleton.js +1 -1
- package/lib/esm/components/FeedUpdates/FeedUpdates.js +1 -1
- package/lib/esm/components/FeedUpdates/Skeleton.js +1 -1
- package/lib/esm/components/FollowCategoryButton/FollowCategoryButton.js +1 -1
- package/lib/esm/components/FollowUserButton/FollowUserButton.js +1 -1
- package/lib/esm/components/Footer/Footer.js +1 -1
- package/lib/esm/components/Footer/Skeleton.js +1 -1
- package/lib/esm/components/FriendshipUserButton/FriendshipUserButton.js +1 -1
- package/lib/esm/components/Incubator/Incubator.js +1 -1
- package/lib/esm/components/Incubator/Skeleton.js +1 -1
- package/lib/esm/components/Incubator/SubscribeButton/SubscribeButton.js +1 -1
- package/lib/esm/components/IncubatorDetail/IncubatorDetail.js +1 -1
- package/lib/esm/components/IncubatorSuggestion/IncubatorSuggestion.js +1 -1
- package/lib/esm/components/IncubatorSuggestion/Skeleton.js +1 -1
- package/lib/esm/components/IncubatorsList/IncubatorsList.js +1 -1
- package/lib/esm/components/IncubatorsList/Skeleton.js +1 -1
- package/lib/esm/components/InlineComposer/InlineComposer.js +1 -1
- package/lib/esm/components/InlineComposer/Skeleton.js +1 -1
- package/lib/esm/components/LoyaltyProgram/LoyaltyProgram.js +1 -1
- package/lib/esm/components/LoyaltyProgram/Skeleton.js +1 -1
- package/lib/esm/components/LoyaltyProgramDetail/LoyaltyProgramDetail.js +7 -3
- package/lib/esm/components/LoyaltyProgramDetail/Skeleton.js +1 -1
- package/lib/esm/components/Message/Message.js +1 -1
- package/lib/esm/components/Message/Skeleton.js +1 -1
- package/lib/esm/components/MessageEditor/MessageEditor.js +1 -1
- package/lib/esm/components/MessageEditor/Skeleton.js +1 -1
- package/lib/esm/components/Notification/Notification.js +1 -1
- package/lib/esm/components/Notification/Skeleton.js +1 -1
- package/lib/esm/components/PeopleSuggestion/PeopleSuggestion.js +3 -9
- package/lib/esm/components/PeopleSuggestion/Skeleton.js +1 -1
- package/lib/esm/components/Platform/Platform.js +1 -1
- package/lib/esm/components/Platform/Skeleton.js +1 -1
- package/lib/esm/components/PollSuggestion/PollSnippet/PollSnippet.js +1 -1
- package/lib/esm/components/PollSuggestion/PollSnippet/Skeleton.js +1 -1
- package/lib/esm/components/PollSuggestion/PollSuggestion.js +1 -1
- package/lib/esm/components/PollSuggestion/Skeleton.js +1 -1
- package/lib/esm/components/RelatedFeedObjects/RelatedFeedObjects.js +1 -1
- package/lib/esm/components/RelatedFeedObjects/Skeleton.js +1 -1
- package/lib/esm/components/Skeleton/AvatarGroupSkeleton.js +1 -1
- package/lib/esm/components/Skeleton/GenericSkeleton.js +1 -1
- package/lib/esm/components/SnippetNotifications/Skeleton.js +1 -1
- package/lib/esm/components/SnippetNotifications/SnippetNotifications.js +1 -1
- package/lib/esm/components/Snippets/Skeleton.js +1 -1
- package/lib/esm/components/Snippets/Snippets.js +1 -1
- package/lib/esm/components/Thread/Skeleton.js +1 -1
- package/lib/esm/components/Thread/Thread.js +1 -1
- package/lib/esm/components/ToastNotifications/Skeleton.js +1 -1
- package/lib/esm/components/ToastNotifications/ToastNotifications.js +1 -1
- package/lib/esm/components/TrendingFeed/Skeleton.js +1 -1
- package/lib/esm/components/TrendingFeed/TrendingFeed.js +1 -1
- package/lib/esm/components/TrendingPeople/Skeleton.js +1 -1
- package/lib/esm/components/TrendingPeople/TrendingPeople.js +1 -1
- package/lib/esm/components/User/Skeleton.js +1 -1
- package/lib/esm/components/User/User.js +1 -1
- package/lib/esm/components/UserFollowers/Skeleton.js +1 -1
- package/lib/esm/components/UserFollowers/UserFollowers.js +1 -1
- package/lib/esm/components/UserProfileEdit/Section/SettingsSkeleton.js +1 -1
- package/lib/esm/components/UserProfileEdit/Skeleton.js +1 -1
- package/lib/esm/components/UserProfileEdit/UserProfileEdit.js +1 -1
- package/lib/esm/components/UserProfileHeader/Skeleton.js +1 -1
- package/lib/esm/components/UserProfileHeader/UserProfileHeader.js +1 -1
- package/lib/esm/components/UserProfileInfo/Skeleton.js +1 -1
- package/lib/esm/components/UserProfileInfo/UserProfileInfo.js +1 -1
- package/lib/esm/components/UsersFollowed/Skeleton.js +1 -1
- package/lib/esm/components/UsersFollowed/UsersFollowed.js +4 -19
- package/lib/esm/components/Widget/index.js +1 -1
- package/lib/esm/react-i18n/src/index.d.ts +4 -0
- package/lib/esm/react-i18n/src/index.d.ts.map +1 -1
- package/lib/esm/react-ui/src/components/AccountRecover/AccountRecover.d.ts +1 -1
- package/lib/esm/react-ui/src/components/AccountSignIn/AccountSignIn.d.ts +1 -1
- package/lib/esm/react-ui/src/components/AccountSignUp/AccountSignUp.d.ts +1 -1
- package/lib/esm/react-ui/src/components/BroadcastMessages/BroadcastMessages.d.ts +1 -1
- package/lib/esm/react-ui/src/components/BroadcastMessages/Message.d.ts.map +1 -1
- package/lib/esm/react-ui/src/components/BroadcastMessages/Skeleton.d.ts +2 -2
- package/lib/esm/react-ui/src/components/CategoriesFollowed/CategoriesFollowed.d.ts +1 -1
- package/lib/esm/react-ui/src/components/CategoriesFollowed/CategoriesFollowed.d.ts.map +1 -1
- package/lib/esm/react-ui/src/components/CategoriesFollowed/Skeleton.d.ts +1 -1
- package/lib/esm/react-ui/src/components/CategoriesPopular/CategoriesPopular.d.ts +1 -1
- package/lib/esm/react-ui/src/components/CategoriesPopular/Skeleton.d.ts +1 -1
- package/lib/esm/react-ui/src/components/CategoriesSuggestion/CategoriesSuggestion.d.ts +1 -1
- package/lib/esm/react-ui/src/components/CategoriesSuggestion/CategoriesSuggestion.d.ts.map +1 -1
- package/lib/esm/react-ui/src/components/CategoriesSuggestion/Skeleton.d.ts +1 -1
- package/lib/esm/react-ui/src/components/Category/Category.d.ts +1 -1
- package/lib/esm/react-ui/src/components/Category/Skeleton.d.ts +1 -1
- package/lib/esm/react-ui/src/components/CategoryHeader/CategoryHeader.d.ts +1 -1
- package/lib/esm/react-ui/src/components/CategoryHeader/Skeleton.d.ts +1 -1
- package/lib/esm/react-ui/src/components/ChangeCover/ChangeCover.d.ts +1 -1
- package/lib/esm/react-ui/src/components/ChangePicture/ChangePicture.d.ts +1 -1
- package/lib/esm/react-ui/src/components/CommentObject/CommentObject.d.ts +6 -1
- package/lib/esm/react-ui/src/components/CommentObject/CommentObject.d.ts.map +1 -1
- package/lib/esm/react-ui/src/components/CommentObject/Skeleton.d.ts +1 -1
- package/lib/esm/react-ui/src/components/CommentsFeedObject/CommentsFeedObject.d.ts +1 -1
- package/lib/esm/react-ui/src/components/CommentsObject/CommentsObject.d.ts +1 -1
- package/lib/esm/react-ui/src/components/CommentsObject/Skeleton.d.ts +1 -1
- package/lib/esm/react-ui/src/components/Composer/Composer.d.ts +1 -1
- package/lib/esm/react-ui/src/components/Composer/Composer.d.ts.map +1 -1
- package/lib/esm/react-ui/src/components/Composer/Poll/Poll.d.ts.map +1 -1
- package/lib/esm/react-ui/src/components/Composer/Skeleton.d.ts +1 -1
- package/lib/esm/react-ui/src/components/ConnectionUserButton/ConnectionUserButton.d.ts +1 -1
- package/lib/esm/react-ui/src/components/CustomAdv/CustomAdv.d.ts +1 -1
- package/lib/esm/react-ui/src/components/CustomAdv/Skeleton.d.ts +1 -1
- package/lib/esm/react-ui/src/components/Editor/Skeleton.d.ts +1 -1
- package/lib/esm/react-ui/src/components/Feed/Feed.d.ts.map +1 -1
- package/lib/esm/react-ui/src/components/Feed/Skeleton.d.ts +1 -1
- package/lib/esm/react-ui/src/components/FeedObject/Actions/Share/Share.d.ts.map +1 -1
- package/lib/esm/react-ui/src/components/FeedObject/FeedObject.d.ts +1 -1
- package/lib/esm/react-ui/src/components/FeedObject/Skeleton.d.ts +1 -1
- package/lib/esm/react-ui/src/components/FeedUpdates/FeedUpdates.d.ts +1 -1
- package/lib/esm/react-ui/src/components/FeedUpdates/Skeleton.d.ts +1 -1
- package/lib/esm/react-ui/src/components/FollowCategoryButton/FollowCategoryButton.d.ts +1 -1
- package/lib/esm/react-ui/src/components/FollowUserButton/FollowUserButton.d.ts +1 -1
- package/lib/esm/react-ui/src/components/Footer/Footer.d.ts +1 -1
- package/lib/esm/react-ui/src/components/Footer/Skeleton.d.ts +1 -1
- package/lib/esm/react-ui/src/components/FriendshipUserButton/FriendshipUserButton.d.ts +1 -1
- package/lib/esm/react-ui/src/components/Incubator/Incubator.d.ts +1 -1
- package/lib/esm/react-ui/src/components/Incubator/Incubator.d.ts.map +1 -1
- package/lib/esm/react-ui/src/components/Incubator/Skeleton.d.ts +1 -1
- package/lib/esm/react-ui/src/components/Incubator/SubscribeButton/SubscribeButton.d.ts +1 -1
- package/lib/esm/react-ui/src/components/IncubatorDetail/IncubatorDetail.d.ts +1 -1
- package/lib/esm/react-ui/src/components/IncubatorSuggestion/IncubatorSuggestion.d.ts +1 -1
- package/lib/esm/react-ui/src/components/IncubatorSuggestion/Skeleton.d.ts +1 -1
- package/lib/esm/react-ui/src/components/IncubatorsList/IncubatorsList.d.ts +1 -1
- package/lib/esm/react-ui/src/components/IncubatorsList/Skeleton.d.ts +1 -1
- package/lib/esm/react-ui/src/components/InlineComposer/InlineComposer.d.ts +1 -1
- package/lib/esm/react-ui/src/components/InlineComposer/Skeleton.d.ts +1 -1
- package/lib/esm/react-ui/src/components/LoyaltyProgram/LoyaltyProgram.d.ts +1 -1
- package/lib/esm/react-ui/src/components/LoyaltyProgram/Skeleton.d.ts +1 -1
- package/lib/esm/react-ui/src/components/LoyaltyProgramDetail/LoyaltyProgramDetail.d.ts.map +1 -1
- package/lib/esm/react-ui/src/components/LoyaltyProgramDetail/Skeleton.d.ts +1 -1
- package/lib/esm/react-ui/src/components/Message/Message.d.ts +1 -1
- package/lib/esm/react-ui/src/components/Message/Skeleton.d.ts +1 -1
- package/lib/esm/react-ui/src/components/MessageEditor/MessageEditor.d.ts +1 -1
- package/lib/esm/react-ui/src/components/MessageEditor/Skeleton.d.ts +1 -1
- package/lib/esm/react-ui/src/components/Notification/Notification.d.ts +1 -1
- package/lib/esm/react-ui/src/components/Notification/Skeleton.d.ts +1 -1
- package/lib/esm/react-ui/src/components/PeopleSuggestion/PeopleSuggestion.d.ts +1 -1
- package/lib/esm/react-ui/src/components/PeopleSuggestion/PeopleSuggestion.d.ts.map +1 -1
- package/lib/esm/react-ui/src/components/PeopleSuggestion/Skeleton.d.ts +1 -1
- package/lib/esm/react-ui/src/components/Platform/Platform.d.ts +1 -1
- package/lib/esm/react-ui/src/components/Platform/Skeleton.d.ts +1 -1
- package/lib/esm/react-ui/src/components/PollSuggestion/PollSnippet/PollSnippet.d.ts +1 -1
- package/lib/esm/react-ui/src/components/PollSuggestion/PollSnippet/Skeleton.d.ts +1 -1
- package/lib/esm/react-ui/src/components/PollSuggestion/PollSuggestion.d.ts +1 -1
- package/lib/esm/react-ui/src/components/PollSuggestion/Skeleton.d.ts +1 -1
- package/lib/esm/react-ui/src/components/RelatedFeedObjects/RelatedFeedObjects.d.ts +1 -1
- package/lib/esm/react-ui/src/components/RelatedFeedObjects/Skeleton.d.ts +1 -1
- package/lib/esm/react-ui/src/components/Skeleton/AvatarGroupSkeleton.d.ts +1 -1
- package/lib/esm/react-ui/src/components/Skeleton/GenericSkeleton.d.ts +1 -1
- package/lib/esm/react-ui/src/components/SnippetNotifications/Skeleton.d.ts +1 -1
- package/lib/esm/react-ui/src/components/SnippetNotifications/SnippetNotifications.d.ts +1 -1
- package/lib/esm/react-ui/src/components/Snippets/Skeleton.d.ts +1 -1
- package/lib/esm/react-ui/src/components/Snippets/Snippets.d.ts +1 -1
- package/lib/esm/react-ui/src/components/Thread/Skeleton.d.ts +1 -1
- package/lib/esm/react-ui/src/components/Thread/Thread.d.ts +1 -1
- package/lib/esm/react-ui/src/components/ToastNotifications/Skeleton.d.ts +1 -1
- package/lib/esm/react-ui/src/components/ToastNotifications/ToastNotifications.d.ts +1 -1
- package/lib/esm/react-ui/src/components/TrendingFeed/Skeleton.d.ts +1 -1
- package/lib/esm/react-ui/src/components/TrendingFeed/TrendingFeed.d.ts +1 -1
- package/lib/esm/react-ui/src/components/TrendingPeople/Skeleton.d.ts +1 -1
- package/lib/esm/react-ui/src/components/TrendingPeople/TrendingPeople.d.ts +1 -1
- package/lib/esm/react-ui/src/components/User/Skeleton.d.ts +1 -1
- package/lib/esm/react-ui/src/components/User/User.d.ts +1 -1
- package/lib/esm/react-ui/src/components/UserFollowers/Skeleton.d.ts +1 -1
- package/lib/esm/react-ui/src/components/UserFollowers/UserFollowers.d.ts +1 -1
- package/lib/esm/react-ui/src/components/UserFollowers/UserFollowers.d.ts.map +1 -1
- package/lib/esm/react-ui/src/components/UserProfileEdit/Section/SettingsSkeleton.d.ts +1 -1
- package/lib/esm/react-ui/src/components/UserProfileEdit/Skeleton.d.ts +1 -1
- package/lib/esm/react-ui/src/components/UserProfileEdit/UserProfileEdit.d.ts +1 -1
- package/lib/esm/react-ui/src/components/UserProfileEdit/UserProfileEdit.d.ts.map +1 -1
- package/lib/esm/react-ui/src/components/UserProfileHeader/Skeleton.d.ts +1 -1
- package/lib/esm/react-ui/src/components/UserProfileHeader/UserProfileHeader.d.ts +1 -1
- package/lib/esm/react-ui/src/components/UserProfileHeader/UserProfileHeader.d.ts.map +1 -1
- package/lib/esm/react-ui/src/components/UserProfileInfo/Skeleton.d.ts +1 -1
- package/lib/esm/react-ui/src/components/UserProfileInfo/UserProfileInfo.d.ts +1 -1
- package/lib/esm/react-ui/src/components/UsersFollowed/Skeleton.d.ts +1 -1
- package/lib/esm/react-ui/src/components/UsersFollowed/UsersFollowed.d.ts +1 -1
- package/lib/esm/react-ui/src/components/UsersFollowed/UsersFollowed.d.ts.map +1 -1
- package/lib/esm/react-ui/src/components/Widget/index.d.ts +1 -1
- package/lib/esm/react-ui/src/shared/BaseItem/BaseItem.d.ts +1 -1
- package/lib/esm/react-ui/src/shared/BaseItemButton/BaseItemButton.d.ts +1 -1
- package/lib/esm/react-ui/src/shared/DateTimeAgo/index.d.ts.map +1 -1
- package/lib/esm/react-ui/src/shared/NotificationItem/NotificationItem.d.ts +1 -1
- package/lib/esm/shared/BaseItem/BaseItem.js +1 -1
- package/lib/esm/shared/BaseItemButton/BaseItemButton.js +1 -1
- package/lib/esm/shared/DateTimeAgo/index.js +2 -1
- package/lib/esm/shared/NotificationItem/NotificationItem.js +1 -1
- package/lib/umd/react-ui.js +2 -2
- package/lib/umd/react-ui.js.map +1 -1
- package/package.json +6 -6
|
@@ -69,7 +69,7 @@ const Root = (0, _styles.styled)(_Widget.default, {
|
|
|
69
69
|
}));
|
|
70
70
|
|
|
71
71
|
/**
|
|
72
|
-
* > API documentation for the Community-
|
|
72
|
+
* > API documentation for the Community-JS Trending Feed component. Learn about the available props and the CSS API.
|
|
73
73
|
|
|
74
74
|
#### Import
|
|
75
75
|
|
|
@@ -34,7 +34,7 @@ const Root = (0, _styles.styled)(_Widget.default)(({
|
|
|
34
34
|
}
|
|
35
35
|
}));
|
|
36
36
|
/**
|
|
37
|
-
* > API documentation for the Community-
|
|
37
|
+
* > API documentation for the Community-JS Trending People Skeleton component. Learn about the available props and the CSS API.
|
|
38
38
|
|
|
39
39
|
#### Import
|
|
40
40
|
|
|
@@ -67,7 +67,7 @@ const Root = (0, _styles.styled)(_Widget.default, {
|
|
|
67
67
|
}));
|
|
68
68
|
|
|
69
69
|
/**
|
|
70
|
-
* > API documentation for the Community-
|
|
70
|
+
* > API documentation for the Community-JS Trending People component. Learn about the available props and the CSS API.
|
|
71
71
|
|
|
72
72
|
#### Import
|
|
73
73
|
|
|
@@ -25,7 +25,7 @@ const Root = (0, _styles.styled)(_BaseItem.default)(({
|
|
|
25
25
|
theme
|
|
26
26
|
}) => ({}));
|
|
27
27
|
/**
|
|
28
|
-
* > API documentation for the Community-
|
|
28
|
+
* > API documentation for the Community-JS User Skeleton component. Learn about the available props and the CSS API.
|
|
29
29
|
|
|
30
30
|
#### Import
|
|
31
31
|
|
|
@@ -50,7 +50,7 @@ const Root = (0, _styles.styled)(_BaseItemButton.default, {
|
|
|
50
50
|
}) => ({}));
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
|
-
* > API documentation for the Community-
|
|
53
|
+
* > API documentation for the Community-JS User component. Learn about the available props and the CSS API.
|
|
54
54
|
|
|
55
55
|
#### Import
|
|
56
56
|
|
|
@@ -25,7 +25,7 @@ const Root = (0, _styles.styled)(_TrendingPeople.TrendingPeopleSkeleton, {
|
|
|
25
25
|
theme
|
|
26
26
|
}) => ({}));
|
|
27
27
|
/**
|
|
28
|
-
* > API documentation for the Community-
|
|
28
|
+
* > API documentation for the Community-JS User Followers Skeleton component. Learn about the available props and the CSS API.
|
|
29
29
|
|
|
30
30
|
#### Import
|
|
31
31
|
|
|
@@ -75,7 +75,7 @@ const Root = (0, _styles.styled)(_Widget.default, {
|
|
|
75
75
|
}));
|
|
76
76
|
|
|
77
77
|
/**
|
|
78
|
-
* > API documentation for the Community-
|
|
78
|
+
* > API documentation for the Community-JS User Followers component. Learn about the available props and the CSS API.
|
|
79
79
|
|
|
80
80
|
#### Import
|
|
81
81
|
|
|
@@ -23,7 +23,7 @@ const Root = (0, _styles.styled)(_material.Box, {
|
|
|
23
23
|
overridesResolver: (props, styles) => styles.root
|
|
24
24
|
})(() => ({}));
|
|
25
25
|
/**
|
|
26
|
-
* > API documentation for the Community-
|
|
26
|
+
* > API documentation for the Community-JS Settings Skeleton component. Learn about the available props and the CSS API.
|
|
27
27
|
|
|
28
28
|
#### Import
|
|
29
29
|
|
|
@@ -23,7 +23,7 @@ const Root = (0, _styles.styled)(_material.Box, {
|
|
|
23
23
|
overridesResolver: (props, styles) => styles.root
|
|
24
24
|
})(() => ({}));
|
|
25
25
|
/**
|
|
26
|
-
* > API documentation for the Community-
|
|
26
|
+
* > API documentation for the Community-JS User Profile Edit Skeleton component. Learn about the available props and the CSS API.
|
|
27
27
|
|
|
28
28
|
#### Import
|
|
29
29
|
|
|
@@ -82,7 +82,7 @@ const Root = (0, _styles.styled)(_material.Box, {
|
|
|
82
82
|
|
|
83
83
|
/**
|
|
84
84
|
*
|
|
85
|
-
> API documentation for the Community-
|
|
85
|
+
> API documentation for the Community-JS User Profile Edit component. Learn about the available props and the CSS API.
|
|
86
86
|
|
|
87
87
|
#### Import
|
|
88
88
|
|
|
@@ -40,7 +40,7 @@ const Root = (0, _styles.styled)(_material.Box, {
|
|
|
40
40
|
}
|
|
41
41
|
}));
|
|
42
42
|
/**
|
|
43
|
-
* > API documentation for the Community-
|
|
43
|
+
* > API documentation for the Community-JS User Profile Header Skeleton component. Learn about the available props and the CSS API.
|
|
44
44
|
|
|
45
45
|
#### Import
|
|
46
46
|
|
|
@@ -82,7 +82,7 @@ const Root = (0, _styles.styled)(_material.Box, {
|
|
|
82
82
|
}));
|
|
83
83
|
|
|
84
84
|
/**
|
|
85
|
-
* > API documentation for the Community-
|
|
85
|
+
* > API documentation for the Community-JS User Profile Header component. Learn about the available props and the CSS API.
|
|
86
86
|
|
|
87
87
|
#### Import
|
|
88
88
|
|
|
@@ -23,7 +23,7 @@ const Root = (0, _styles.styled)(_material.Box, {
|
|
|
23
23
|
overridesResolver: (props, styles) => styles.root
|
|
24
24
|
})(() => ({}));
|
|
25
25
|
/**
|
|
26
|
-
* > API documentation for the Community-
|
|
26
|
+
* > API documentation for the Community-JS User Profile Info Skeleton component. Learn about the available props and the CSS API.
|
|
27
27
|
|
|
28
28
|
#### Import
|
|
29
29
|
|
|
@@ -85,7 +85,7 @@ const Root = (0, _styles.styled)(_material.Box, {
|
|
|
85
85
|
|
|
86
86
|
/**
|
|
87
87
|
*
|
|
88
|
-
> API documentation for the Community-
|
|
88
|
+
> API documentation for the Community-JS User Profile Info component. Learn about the available props and the CSS API.
|
|
89
89
|
|
|
90
90
|
#### Import
|
|
91
91
|
|
|
@@ -25,7 +25,7 @@ const Root = (0, _styles.styled)(_TrendingPeople.TrendingPeopleSkeleton, {
|
|
|
25
25
|
theme
|
|
26
26
|
}) => ({}));
|
|
27
27
|
/**
|
|
28
|
-
* > API documentation for the Community-
|
|
28
|
+
* > API documentation for the Community-JS User Followers Skeleton component. Learn about the available props and the CSS API.
|
|
29
29
|
|
|
30
30
|
#### Import
|
|
31
31
|
|
|
@@ -75,7 +75,7 @@ const Root = (0, _styles.styled)(_Widget.default, {
|
|
|
75
75
|
}));
|
|
76
76
|
|
|
77
77
|
/**
|
|
78
|
-
* > API documentation for the Community-
|
|
78
|
+
* > API documentation for the Community-JS Users Followed component. Learn about the available props and the CSS API.
|
|
79
79
|
|
|
80
80
|
#### Import
|
|
81
81
|
|
|
@@ -123,7 +123,6 @@ function UsersFollowed(inProps) {
|
|
|
123
123
|
} = props; // STATE
|
|
124
124
|
|
|
125
125
|
const [followed, setFollowed] = (0, _react.useState)([]);
|
|
126
|
-
const [visibleUsers, setVisibleUsers] = (0, _react.useState)(limit);
|
|
127
126
|
const [loading, setLoading] = (0, _react.useState)(true);
|
|
128
127
|
const [hasMore, setHasMore] = (0, _react.useState)(false);
|
|
129
128
|
const [total, setTotal] = (0, _react.useState)(0);
|
|
@@ -139,10 +138,7 @@ function UsersFollowed(inProps) {
|
|
|
139
138
|
if (scUserContext.user['id'] === userId) {
|
|
140
139
|
setFollowed(followed.filter(u => u.id !== user.id));
|
|
141
140
|
setTotal(prev => prev - 1);
|
|
142
|
-
|
|
143
|
-
if (visibleUsers < limit && total > 1) {
|
|
144
|
-
loadUsers(1);
|
|
145
|
-
}
|
|
141
|
+
setHasMore(total - 1 > limit);
|
|
146
142
|
} else {
|
|
147
143
|
const newUsers = [...followed];
|
|
148
144
|
const index = newUsers.findIndex(u => u.id === user.id);
|
|
@@ -173,7 +169,7 @@ function UsersFollowed(inProps) {
|
|
|
173
169
|
}).then(res => {
|
|
174
170
|
const data = res.data;
|
|
175
171
|
setFollowed([...followed, ...data.results]);
|
|
176
|
-
setHasMore(data.count >
|
|
172
|
+
setHasMore(data.count > limit);
|
|
177
173
|
setNext(data['next']);
|
|
178
174
|
setLoading(false);
|
|
179
175
|
setTotal(data.count);
|
|
@@ -184,17 +180,6 @@ function UsersFollowed(inProps) {
|
|
|
184
180
|
});
|
|
185
181
|
}
|
|
186
182
|
}
|
|
187
|
-
/**
|
|
188
|
-
* Loads more users when followed list changes
|
|
189
|
-
*/
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
function loadUsers(n) {
|
|
193
|
-
const newIndex = visibleUsers + n;
|
|
194
|
-
const newHasMore = newIndex < followed.length - 1;
|
|
195
|
-
setVisibleUsers(newIndex);
|
|
196
|
-
setHasMore(newHasMore);
|
|
197
|
-
}
|
|
198
183
|
/**
|
|
199
184
|
* On mount, fetches the list of users followed
|
|
200
185
|
*/
|
|
@@ -221,7 +206,7 @@ function UsersFollowed(inProps) {
|
|
|
221
206
|
})}`), !total ? /*#__PURE__*/_react.default.createElement(_material.Typography, {
|
|
222
207
|
className: classes.noResults,
|
|
223
208
|
variant: "body2"
|
|
224
|
-
}, `${intl.formatMessage(messages.noUsers)}`) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_List.default, null, followed.slice(0,
|
|
209
|
+
}, `${intl.formatMessage(messages.noUsers)}`) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_List.default, null, followed.slice(0, limit).map(user => /*#__PURE__*/_react.default.createElement(_material.ListItem, {
|
|
225
210
|
key: user.id
|
|
226
211
|
}, /*#__PURE__*/_react.default.createElement(_User.default, _extends({
|
|
227
212
|
elevation: 0,
|
|
@@ -35,7 +35,7 @@ const Root = (0, _styles.styled)(_material.Card, {
|
|
|
35
35
|
theme
|
|
36
36
|
}) => ({}));
|
|
37
37
|
/**
|
|
38
|
-
* > API documentation for the Community-
|
|
38
|
+
* > API documentation for the Community-JS Widget component. Learn about the available props and the CSS API.
|
|
39
39
|
|
|
40
40
|
#### Import
|
|
41
41
|
|
|
@@ -90,7 +90,7 @@ const Root = (0, _styles.styled)(_Widget.default, {
|
|
|
90
90
|
}));
|
|
91
91
|
|
|
92
92
|
/**
|
|
93
|
-
* > API documentation for the Community-
|
|
93
|
+
* > API documentation for the Community-JS BaseItem component. Learn about the available props and the CSS API.
|
|
94
94
|
|
|
95
95
|
#### Import
|
|
96
96
|
|
|
@@ -94,7 +94,7 @@ const Root = (0, _styles.styled)(_Widget.default, {
|
|
|
94
94
|
}));
|
|
95
95
|
|
|
96
96
|
/**
|
|
97
|
-
* > API documentation for the Community-
|
|
97
|
+
* > API documentation for the Community-JS BaseItemButton component. Learn about the available props and the CSS API.
|
|
98
98
|
|
|
99
99
|
#### Import
|
|
100
100
|
|
|
@@ -158,7 +158,7 @@ const Root = (0, _styles.styled)(_Widget.default, {
|
|
|
158
158
|
}));
|
|
159
159
|
|
|
160
160
|
/**
|
|
161
|
-
* > API documentation for the Community-
|
|
161
|
+
* > API documentation for the Community-JS BaseItem component. Learn about the available props and the CSS API.
|
|
162
162
|
|
|
163
163
|
#### Import
|
|
164
164
|
|
|
@@ -52,7 +52,7 @@ const Root = (0, _styles.styled)('form', {
|
|
|
52
52
|
}));
|
|
53
53
|
|
|
54
54
|
/**
|
|
55
|
-
* > API documentation for the Community-
|
|
55
|
+
* > API documentation for the Community-JS AccountRecover component. Learn about the available props and the CSS API.
|
|
56
56
|
|
|
57
57
|
#### Import
|
|
58
58
|
|
|
@@ -56,7 +56,7 @@ const Root = (0, _styles.styled)('form', {
|
|
|
56
56
|
}));
|
|
57
57
|
|
|
58
58
|
/**
|
|
59
|
-
* > API documentation for the Community-
|
|
59
|
+
* > API documentation for the Community-JS AccountSignIn component. Learn about the available props and the CSS API.
|
|
60
60
|
* > This component support [OAuth2 authentication](https://developers.selfcommunity.com/docs/api/authentication/oauth#password) protocol with grant_type password
|
|
61
61
|
|
|
62
62
|
#### Import
|
|
@@ -58,7 +58,7 @@ const Root = (0, _styles.styled)('form', {
|
|
|
58
58
|
}));
|
|
59
59
|
|
|
60
60
|
/**
|
|
61
|
-
* > API documentation for the Community-
|
|
61
|
+
* > API documentation for the Community-JS AccountSignUp component. Learn about the available props and the CSS API.
|
|
62
62
|
|
|
63
63
|
#### Import
|
|
64
64
|
|
|
@@ -69,7 +69,7 @@ const Root = (0, _styles.styled)(_material.Box, {
|
|
|
69
69
|
}));
|
|
70
70
|
|
|
71
71
|
/**
|
|
72
|
-
> API documentation for the Community-
|
|
72
|
+
> API documentation for the Community-JS Broadcast Messages component. Learn about the available props and the CSS API.
|
|
73
73
|
> This component handles message broadcasts. It initially displays unseen messages. If all messages have been viewed it will show at most one message.
|
|
74
74
|
*
|
|
75
75
|
#### Import
|
|
@@ -85,7 +85,7 @@ const Root = (0, _styles.styled)(_Widget.default, {
|
|
|
85
85
|
height: 30
|
|
86
86
|
}
|
|
87
87
|
}));
|
|
88
|
-
const PREFERENCES = [_reactCore.SCPreferences.
|
|
88
|
+
const PREFERENCES = [_reactCore.SCPreferences.LOGO_NAVBAR_LOGO_MOBILE, _reactCore.SCPreferences.TEXT_APPLICATION_NAME];
|
|
89
89
|
|
|
90
90
|
function Message(props) {
|
|
91
91
|
// PROPS
|
|
@@ -181,7 +181,7 @@ function Message(props) {
|
|
|
181
181
|
className: classes.header,
|
|
182
182
|
avatar: /*#__PURE__*/_react.default.createElement(_material.Avatar, {
|
|
183
183
|
alt: preferences[_reactCore.SCPreferences.TEXT_APPLICATION_NAME],
|
|
184
|
-
src: preferences[_reactCore.SCPreferences.
|
|
184
|
+
src: preferences[_reactCore.SCPreferences.LOGO_NAVBAR_LOGO_MOBILE_MOBILE]
|
|
185
185
|
}),
|
|
186
186
|
action: template === _types.SCBroadcastMessageTemplateType.DETAIL && /*#__PURE__*/_react.default.createElement(_material.IconButton, {
|
|
187
187
|
"aria-label": "close",
|
|
@@ -34,7 +34,7 @@ const MessageRoot = (0, _styles.styled)(_Widget.default, {
|
|
|
34
34
|
marginBottom: theme.spacing(2)
|
|
35
35
|
}));
|
|
36
36
|
/**
|
|
37
|
-
* > API documentation for the Community-
|
|
37
|
+
* > API documentation for the Community-JS Broadcast Message Skeleton component. Learn about the available props and the CSS API.
|
|
38
38
|
|
|
39
39
|
#### Import
|
|
40
40
|
|
|
@@ -112,7 +112,7 @@ const Root = (0, _styles.styled)(_material.Box, {
|
|
|
112
112
|
theme
|
|
113
113
|
}) => ({}));
|
|
114
114
|
/**
|
|
115
|
-
* > API documentation for the Community-
|
|
115
|
+
* > API documentation for the Community-JS Broadcast Messages Skeleton component. Learn about the available props and the CSS API.
|
|
116
116
|
|
|
117
117
|
#### Import
|
|
118
118
|
|
|
@@ -70,7 +70,7 @@ const Root = (0, _styles.styled)(_Widget.default, {
|
|
|
70
70
|
marginBottom: theme.spacing(2)
|
|
71
71
|
}));
|
|
72
72
|
/**
|
|
73
|
-
> API documentation for the Community-
|
|
73
|
+
> API documentation for the Community-JS Categories Followed component. Learn about the available props and the CSS API.
|
|
74
74
|
*
|
|
75
75
|
#### Import
|
|
76
76
|
```jsx
|
|
@@ -111,7 +111,6 @@ function CategoriesFollowed(inProps) {
|
|
|
111
111
|
} = props; // STATE
|
|
112
112
|
|
|
113
113
|
const [categories, setCategories] = (0, _react.useState)([]);
|
|
114
|
-
const [visibleCategories, setVisibleCategories] = (0, _react.useState)(limit);
|
|
115
114
|
const [loading, setLoading] = (0, _react.useState)(true);
|
|
116
115
|
const [hasMore, setHasMore] = (0, _react.useState)(false);
|
|
117
116
|
const [total, setTotal] = (0, _react.useState)(0);
|
|
@@ -129,17 +128,12 @@ function CategoriesFollowed(inProps) {
|
|
|
129
128
|
if (scUserContext.user['id'] === userId) {
|
|
130
129
|
setCategories(categories.filter(c => c.id !== category.id));
|
|
131
130
|
setTotal(prev => prev - 1);
|
|
132
|
-
|
|
133
|
-
if (visibleCategories < limit && total > 1) {
|
|
134
|
-
loadCategories(1);
|
|
135
|
-
}
|
|
131
|
+
setHasMore(total - 1 > limit);
|
|
136
132
|
} else {
|
|
137
133
|
const newCategories = [...categories];
|
|
138
134
|
const index = newCategories.findIndex(u => u.id === category.id);
|
|
139
135
|
|
|
140
136
|
if (index !== -1) {
|
|
141
|
-
console.log(category.followed);
|
|
142
|
-
|
|
143
137
|
if (category.followed) {
|
|
144
138
|
newCategories[index].followers_counter = category.followers_counter - 1;
|
|
145
139
|
newCategories[index].followed = !category.followed;
|
|
@@ -167,7 +161,7 @@ function CategoriesFollowed(inProps) {
|
|
|
167
161
|
setCategories([...categories, ...data]);
|
|
168
162
|
setTotal(data.length);
|
|
169
163
|
setNext(data['next']);
|
|
170
|
-
setHasMore(data.length >
|
|
164
|
+
setHasMore(data.length > limit);
|
|
171
165
|
setLoading(false);
|
|
172
166
|
}).catch(error => {
|
|
173
167
|
setLoading(false);
|
|
@@ -176,17 +170,6 @@ function CategoriesFollowed(inProps) {
|
|
|
176
170
|
});
|
|
177
171
|
}
|
|
178
172
|
}
|
|
179
|
-
/**
|
|
180
|
-
* Loads more categories when followed list changes
|
|
181
|
-
*/
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
function loadCategories(n) {
|
|
185
|
-
const newIndex = visibleCategories + n;
|
|
186
|
-
const newHasMore = newIndex < categories.length - 1;
|
|
187
|
-
setVisibleCategories(newIndex);
|
|
188
|
-
setHasMore(newHasMore);
|
|
189
|
-
}
|
|
190
173
|
/**
|
|
191
174
|
* On mount, fetches the list of categories followed
|
|
192
175
|
*/
|
|
@@ -209,7 +192,7 @@ function CategoriesFollowed(inProps) {
|
|
|
209
192
|
})}`), !total ? /*#__PURE__*/_react.default.createElement(_material.Typography, {
|
|
210
193
|
className: classes.noResults,
|
|
211
194
|
variant: "body2"
|
|
212
|
-
}, `${intl.formatMessage(messages.noCategories)}`) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_List.default, null, categories.slice(0,
|
|
195
|
+
}, `${intl.formatMessage(messages.noCategories)}`) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_List.default, null, categories.slice(0, limit).map(category => /*#__PURE__*/_react.default.createElement(_material.ListItem, {
|
|
213
196
|
key: category.id
|
|
214
197
|
}, /*#__PURE__*/_react.default.createElement(_Category.default, _extends({
|
|
215
198
|
elevation: 0,
|
|
@@ -25,7 +25,7 @@ const Root = (0, _styles.styled)(_Skeleton.default, {
|
|
|
25
25
|
theme
|
|
26
26
|
}) => ({}));
|
|
27
27
|
/**
|
|
28
|
-
* > API documentation for the Community-
|
|
28
|
+
* > API documentation for the Community-JS Categories Followed Skeleton component. Learn about the available props and the CSS API.
|
|
29
29
|
|
|
30
30
|
#### Import
|
|
31
31
|
|
|
@@ -62,7 +62,7 @@ const Root = (0, _styles.styled)(_Widget.default, {
|
|
|
62
62
|
marginBottom: theme.spacing(2)
|
|
63
63
|
}));
|
|
64
64
|
/**
|
|
65
|
-
> API documentation for the Community-
|
|
65
|
+
> API documentation for the Community-JS Categories Popular component. Learn about the available props and the CSS API.
|
|
66
66
|
*
|
|
67
67
|
#### Import
|
|
68
68
|
```jsx
|
|
@@ -25,7 +25,7 @@ const Root = (0, _styles.styled)(_Skeleton.default, {
|
|
|
25
25
|
theme
|
|
26
26
|
}) => ({}));
|
|
27
27
|
/**
|
|
28
|
-
* > API documentation for the Community-
|
|
28
|
+
* > API documentation for the Community-JS Categories Popular Skeleton component. Learn about the available props and the CSS API.
|
|
29
29
|
|
|
30
30
|
#### Import
|
|
31
31
|
|
|
@@ -55,7 +55,7 @@ const Root = (0, _styles.styled)(_Widget.default, {
|
|
|
55
55
|
}));
|
|
56
56
|
|
|
57
57
|
/**
|
|
58
|
-
* > API documentation for the Community-
|
|
58
|
+
* > API documentation for the Community-JS Categories Suggestion component. Learn about the available props and the CSS API.
|
|
59
59
|
*
|
|
60
60
|
#### Import
|
|
61
61
|
```jsx
|
|
@@ -110,10 +110,7 @@ function CategoriesSuggestion(inProps) {
|
|
|
110
110
|
function handleOnFollowCategory(category, follow) {
|
|
111
111
|
setCategories(categories.filter(c => c.id !== category.id));
|
|
112
112
|
setTotal(prev => prev - 1);
|
|
113
|
-
|
|
114
|
-
if (visibleCategories < limit && total > 1) {
|
|
115
|
-
loadCategories(1);
|
|
116
|
-
}
|
|
113
|
+
setHasMore(total - 1 > limit);
|
|
117
114
|
}
|
|
118
115
|
/**
|
|
119
116
|
* Fetches categories suggestion list
|
|
@@ -33,7 +33,7 @@ const Root = (0, _styles.styled)(_Widget.default)(({
|
|
|
33
33
|
}
|
|
34
34
|
}));
|
|
35
35
|
/**
|
|
36
|
-
* > API documentation for the Community-
|
|
36
|
+
* > API documentation for the Community-JS Categories Suggestion Skeleton component. Learn about the available props and the CSS API.
|
|
37
37
|
|
|
38
38
|
#### Import
|
|
39
39
|
|
|
@@ -53,7 +53,7 @@ const Root = (0, _styles.styled)(_BaseItemButton.default, {
|
|
|
53
53
|
}) => ({}));
|
|
54
54
|
|
|
55
55
|
/**
|
|
56
|
-
* > API documentation for the Community-
|
|
56
|
+
* > API documentation for the Community-JS Category component. Learn about the available props and the CSS API.
|
|
57
57
|
*
|
|
58
58
|
* #### Import
|
|
59
59
|
```jsx
|
|
@@ -25,7 +25,7 @@ const Root = (0, _styles.styled)(_BaseItem.default)(({
|
|
|
25
25
|
theme
|
|
26
26
|
}) => ({}));
|
|
27
27
|
/**
|
|
28
|
-
* > API documentation for the Community-
|
|
28
|
+
* > API documentation for the Community-JS Category Skeleton component. Learn about the available props and the CSS API.
|
|
29
29
|
|
|
30
30
|
#### Import
|
|
31
31
|
|
|
@@ -104,7 +104,7 @@ const Root = (0, _styles.styled)(_material.Box, {
|
|
|
104
104
|
}));
|
|
105
105
|
|
|
106
106
|
/**
|
|
107
|
-
*> API documentation for the Community-
|
|
107
|
+
*> API documentation for the Community-JS Category Header component. Learn about the available props and the CSS API.
|
|
108
108
|
*
|
|
109
109
|
#### Import
|
|
110
110
|
```jsx
|
|
@@ -40,7 +40,7 @@ const Root = (0, _styles.styled)(_material.Box, {
|
|
|
40
40
|
}
|
|
41
41
|
}));
|
|
42
42
|
/**
|
|
43
|
-
* > API documentation for the Community-
|
|
43
|
+
* > API documentation for the Community-JS Category Header Skeleton component. Learn about the available props and the CSS API.
|
|
44
44
|
|
|
45
45
|
#### Import
|
|
46
46
|
|
|
@@ -57,7 +57,7 @@ const Root = (0, _styles.styled)(_material.Box, {
|
|
|
57
57
|
}));
|
|
58
58
|
|
|
59
59
|
/**
|
|
60
|
-
*> API documentation for the Community-
|
|
60
|
+
*> API documentation for the Community-JS Change Cover component. Learn about the available props and the CSS API.
|
|
61
61
|
*
|
|
62
62
|
#### Import
|
|
63
63
|
```jsx
|
|
@@ -46,7 +46,7 @@ const CPButton = (0, _styles.styled)(_material.Button, {
|
|
|
46
46
|
}) => ({}));
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
|
-
* > API documentation for the Community-
|
|
49
|
+
* > API documentation for the Community-JS Change Picture component. Learn about the available props and the CSS API.
|
|
50
50
|
|
|
51
51
|
#### Import
|
|
52
52
|
|
|
@@ -51,7 +51,7 @@ var _apiServices = require("@selfcommunity/api-services");
|
|
|
51
51
|
|
|
52
52
|
var _reactCore = require("@selfcommunity/react-core");
|
|
53
53
|
|
|
54
|
-
const _excluded = ["id", "className", "commentObjectId", "commentObject", "feedObjectId", "feedObject", "feedObjectType", "commentReply", "onOpenReply", "onDelete", "onVote", "elevation", "CommentObjectSkeletonProps", "ReplyCommentObjectProps"];
|
|
54
|
+
const _excluded = ["id", "className", "commentObjectId", "commentObject", "feedObjectId", "feedObject", "feedObjectType", "commentReply", "onOpenReply", "onDelete", "onVote", "elevation", "CommentObjectSkeletonProps", "ReplyCommentObjectProps", "linkableCommentDateTime"];
|
|
55
55
|
|
|
56
56
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
57
57
|
|
|
@@ -117,7 +117,7 @@ const Root = (0, _styles.styled)(_material.Box, {
|
|
|
117
117
|
[`& .${classes.nestedComments}`]: {
|
|
118
118
|
paddingTop: 0,
|
|
119
119
|
paddingBottom: 0,
|
|
120
|
-
paddingLeft:
|
|
120
|
+
paddingLeft: 25,
|
|
121
121
|
'& ul.MuiList-root': {
|
|
122
122
|
paddingTop: 0,
|
|
123
123
|
paddingBottom: 0,
|
|
@@ -125,11 +125,15 @@ const Root = (0, _styles.styled)(_material.Box, {
|
|
|
125
125
|
'& li.MuiListItem-root': {
|
|
126
126
|
paddingTop: 5
|
|
127
127
|
}
|
|
128
|
+
},
|
|
129
|
+
[theme.breakpoints.up('sm')]: {
|
|
130
|
+
paddingLeft: 55
|
|
128
131
|
}
|
|
129
132
|
},
|
|
130
133
|
[`& .${classes.content}`]: {
|
|
131
134
|
position: 'relative',
|
|
132
135
|
display: 'flex',
|
|
136
|
+
wordBreak: 'break-all',
|
|
133
137
|
'& .MuiCardContent-root': {
|
|
134
138
|
padding: '7px 13px 7px 13px',
|
|
135
139
|
flexGrow: 1
|
|
@@ -182,7 +186,7 @@ const Root = (0, _styles.styled)(_material.Box, {
|
|
|
182
186
|
}));
|
|
183
187
|
|
|
184
188
|
/**
|
|
185
|
-
*> API documentation for the Community-
|
|
189
|
+
*> API documentation for the Community-JS Comment Object component. Learn about the available props and the CSS API.
|
|
186
190
|
|
|
187
191
|
#### Import
|
|
188
192
|
|
|
@@ -247,7 +251,8 @@ function CommentObject(inProps) {
|
|
|
247
251
|
WidgetProps: {
|
|
248
252
|
variant: 'outlined'
|
|
249
253
|
}
|
|
250
|
-
}
|
|
254
|
+
},
|
|
255
|
+
linkableCommentDateTime = true
|
|
251
256
|
} = props,
|
|
252
257
|
rest = _objectWithoutPropertiesLoose(props, _excluded); // CONTEXT
|
|
253
258
|
|
|
@@ -285,11 +290,13 @@ function CommentObject(inProps) {
|
|
|
285
290
|
*/
|
|
286
291
|
|
|
287
292
|
function renderTimeAgo(comment) {
|
|
288
|
-
return /*#__PURE__*/_react.default.createElement(_reactCore.Link, {
|
|
293
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, linkableCommentDateTime ? /*#__PURE__*/_react.default.createElement(_reactCore.Link, {
|
|
289
294
|
to: scRoutingContext.url(_reactCore.SCRoutes.COMMENT_ROUTE_NAME, (0, _contribution.getRouteData)(comment)),
|
|
290
295
|
className: classes.activityAt
|
|
291
296
|
}, /*#__PURE__*/_react.default.createElement(_DateTimeAgo.default, {
|
|
292
297
|
date: comment.added_at
|
|
298
|
+
})) : /*#__PURE__*/_react.default.createElement(_DateTimeAgo.default, {
|
|
299
|
+
date: comment.added_at
|
|
293
300
|
}));
|
|
294
301
|
}
|
|
295
302
|
/**
|
|
@@ -741,7 +748,8 @@ function CommentObject(inProps) {
|
|
|
741
748
|
CommentComponentProps: Object.assign({
|
|
742
749
|
onOpenReply: reply,
|
|
743
750
|
CommentObjectSkeletonProps,
|
|
744
|
-
elevation: elevation
|
|
751
|
+
elevation: elevation,
|
|
752
|
+
linkableCommentDateTime: linkableCommentDateTime
|
|
745
753
|
}, rest),
|
|
746
754
|
CommentsObjectSkeletonProps: {
|
|
747
755
|
count: 1,
|
|
@@ -47,7 +47,7 @@ const Root = (0, _styles.styled)(_BaseItem.default)(({
|
|
|
47
47
|
}
|
|
48
48
|
}));
|
|
49
49
|
/**
|
|
50
|
-
* > API documentation for the Community-
|
|
50
|
+
* > API documentation for the Community-JS Comment Object Skeleton component. Learn about the available props and the CSS API.
|
|
51
51
|
|
|
52
52
|
#### Import
|
|
53
53
|
|