@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
|
@@ -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
|
|
|
@@ -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 Comments Object component. Learn about the available props and the CSS API.
|
|
73
73
|
|
|
74
74
|
#### Import
|
|
75
75
|
|
|
@@ -107,7 +107,8 @@ function CommentsFeedObject(inProps) {
|
|
|
107
107
|
commentObject,
|
|
108
108
|
CommentComponent = _CommentObject.default,
|
|
109
109
|
CommentComponentProps = {
|
|
110
|
-
variant: 'outlined'
|
|
110
|
+
variant: 'outlined',
|
|
111
|
+
linkableCommentDateTime: false
|
|
111
112
|
},
|
|
112
113
|
CommentObjectSkeletonProps = {
|
|
113
114
|
elevation: 0,
|
|
@@ -86,7 +86,7 @@ const Root = (0, _styles.styled)(_material.Box, {
|
|
|
86
86
|
}));
|
|
87
87
|
const PREFERENCES = [_reactCore.SCPreferences.ADVERTISING_CUSTOM_ADV_ENABLED, _reactCore.SCPreferences.ADVERTISING_CUSTOM_ADV_ONLY_FOR_ANONYMOUS_USERS_ENABLED];
|
|
88
88
|
/**
|
|
89
|
-
*> API documentation for the Community-
|
|
89
|
+
*> API documentation for the Community-JS Comments Object component. Learn about the available props and the CSS API.
|
|
90
90
|
|
|
91
91
|
#### Import
|
|
92
92
|
|
|
@@ -29,7 +29,7 @@ const Root = (0, _styles.styled)(_material.Box)(({
|
|
|
29
29
|
width: '100%'
|
|
30
30
|
}));
|
|
31
31
|
/**
|
|
32
|
-
* > API documentation for the Community-
|
|
32
|
+
* > API documentation for the Community-JS Comments Object Skeleton component. Learn about the available props and the CSS API.
|
|
33
33
|
|
|
34
34
|
#### Import
|
|
35
35
|
|
|
@@ -275,7 +275,7 @@ const reducer = (state, action) => {
|
|
|
275
275
|
}
|
|
276
276
|
};
|
|
277
277
|
/**
|
|
278
|
-
> API documentation for the Community-
|
|
278
|
+
> API documentation for the Community-JS Composer component. Learn about the available props and the CSS API.
|
|
279
279
|
> The Composer component contains the logic around the creation of [Post](https://developers.selfcommunity.com/docs/apireference/v2/post/create_a_post) and [Discussion](https://developers.selfcommunity.com/docs/apireference/v2/discussion/create_a_discussion) objects.
|
|
280
280
|
*
|
|
281
281
|
#### Import
|
|
@@ -747,10 +747,12 @@ function Composer(inProps) {
|
|
|
747
747
|
value: (0, _apiServices.formatHttpError)(error)
|
|
748
748
|
});
|
|
749
749
|
}).then(() => setIsSubmitting(false));
|
|
750
|
-
};
|
|
751
|
-
/* Renderers */
|
|
750
|
+
}; // RENDER
|
|
752
751
|
|
|
753
752
|
|
|
753
|
+
const theme = (0, _styles.useTheme)();
|
|
754
|
+
const smDown = (0, _material.useMediaQuery)(theme.breakpoints.down('sm'));
|
|
755
|
+
const fullScreen = (0, _material.useMediaQuery)(theme.breakpoints.down('md'));
|
|
754
756
|
const hasMediaShare = (0, _react.useMemo)(() => medias.findIndex(m => m.type === _Media.MEDIA_TYPE_SHARE) !== -1, [medias]);
|
|
755
757
|
|
|
756
758
|
const renderMediaAdornment = mediaObjectType => {
|
|
@@ -792,7 +794,10 @@ function Composer(inProps) {
|
|
|
792
794
|
})), /*#__PURE__*/_react.default.createElement(_material.Box, null, /*#__PURE__*/_react.default.createElement(_material.Avatar, {
|
|
793
795
|
className: classes.avatar,
|
|
794
796
|
src: scAuthContext.user.avatar
|
|
795
|
-
})), /*#__PURE__*/_react.default.createElement(_material.Box, null, /*#__PURE__*/_react.default.createElement(_material.
|
|
797
|
+
})), /*#__PURE__*/_react.default.createElement(_material.Box, null, smDown ? /*#__PURE__*/_react.default.createElement(_material.IconButton, {
|
|
798
|
+
onClick: handleChangeView(MAIN_VIEW),
|
|
799
|
+
color: "inherit"
|
|
800
|
+
}, /*#__PURE__*/_react.default.createElement(_Icon.default, null, "check")) : /*#__PURE__*/_react.default.createElement(_material.Button, {
|
|
796
801
|
onClick: handleChangeView(MAIN_VIEW),
|
|
797
802
|
variant: "text",
|
|
798
803
|
color: "inherit"
|
|
@@ -862,7 +867,11 @@ function Composer(inProps) {
|
|
|
862
867
|
})), /*#__PURE__*/_react.default.createElement(_material.Box, null, /*#__PURE__*/_react.default.createElement(_material.Avatar, {
|
|
863
868
|
className: classes.avatar,
|
|
864
869
|
src: scAuthContext.user.avatar
|
|
865
|
-
})), /*#__PURE__*/_react.default.createElement(_material.Box, null, /*#__PURE__*/_react.default.createElement(_material.
|
|
870
|
+
})), /*#__PURE__*/_react.default.createElement(_material.Box, null, smDown ? /*#__PURE__*/_react.default.createElement(_material.IconButton, {
|
|
871
|
+
onClick: handleChangeView(MAIN_VIEW),
|
|
872
|
+
color: "inherit",
|
|
873
|
+
disabled: mediasRef.current.mediaChunks.length > 0
|
|
874
|
+
}, /*#__PURE__*/_react.default.createElement(_Icon.default, null, "check")) : /*#__PURE__*/_react.default.createElement(_material.Button, {
|
|
866
875
|
onClick: handleChangeView(MAIN_VIEW),
|
|
867
876
|
variant: "text",
|
|
868
877
|
color: "inherit",
|
|
@@ -892,15 +901,23 @@ function Composer(inProps) {
|
|
|
892
901
|
size: "small",
|
|
893
902
|
disabled: !hasPoll()
|
|
894
903
|
}, /*#__PURE__*/_react.default.createElement(_Icon.default, null, "arrow_back")), /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, {
|
|
895
|
-
id: "ui.composer.poll
|
|
896
|
-
defaultMessage: "ui.composer.poll
|
|
904
|
+
id: "ui.composer.poll",
|
|
905
|
+
defaultMessage: "ui.composer.poll"
|
|
897
906
|
})), /*#__PURE__*/_react.default.createElement(_material.Box, null, /*#__PURE__*/_react.default.createElement(_material.Avatar, {
|
|
898
907
|
className: classes.avatar,
|
|
899
908
|
src: scAuthContext.user.avatar
|
|
900
909
|
})), /*#__PURE__*/_react.default.createElement(_material.Stack, {
|
|
901
910
|
spacing: 2,
|
|
902
911
|
direction: "row"
|
|
903
|
-
}, /*#__PURE__*/_react.default.createElement(_material.
|
|
912
|
+
}, smDown ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_material.IconButton, {
|
|
913
|
+
onClick: handleChangeView(MAIN_VIEW),
|
|
914
|
+
color: "inherit",
|
|
915
|
+
disabled: !hasPoll()
|
|
916
|
+
}, /*#__PURE__*/_react.default.createElement(_Icon.default, null, "check")), /*#__PURE__*/_react.default.createElement(_material.IconButton, {
|
|
917
|
+
onClick: handleChangeView(MAIN_VIEW),
|
|
918
|
+
color: "inherit",
|
|
919
|
+
disabled: !hasPoll()
|
|
920
|
+
}, /*#__PURE__*/_react.default.createElement(_Icon.default, null, "delete"))) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_material.Button, {
|
|
904
921
|
onClick: handleDeletePoll,
|
|
905
922
|
variant: "text",
|
|
906
923
|
color: "inherit"
|
|
@@ -915,7 +932,7 @@ function Composer(inProps) {
|
|
|
915
932
|
}, /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, {
|
|
916
933
|
id: "ui.composer.done",
|
|
917
934
|
defaultMessage: "ui.composer.done"
|
|
918
|
-
})))), /*#__PURE__*/_react.default.createElement(_material.DialogContent, {
|
|
935
|
+
}))))), /*#__PURE__*/_react.default.createElement(_material.DialogContent, {
|
|
919
936
|
className: classes.content
|
|
920
937
|
}, /*#__PURE__*/_react.default.createElement(_Poll2.default, {
|
|
921
938
|
onChange: handleChangePoll,
|
|
@@ -938,7 +955,10 @@ function Composer(inProps) {
|
|
|
938
955
|
})), /*#__PURE__*/_react.default.createElement(_material.Box, null, /*#__PURE__*/_react.default.createElement(_material.Avatar, {
|
|
939
956
|
className: classes.avatar,
|
|
940
957
|
src: scAuthContext.user.avatar
|
|
941
|
-
})), /*#__PURE__*/_react.default.createElement(_material.Box, null, /*#__PURE__*/_react.default.createElement(_material.
|
|
958
|
+
})), /*#__PURE__*/_react.default.createElement(_material.Box, null, smDown ? /*#__PURE__*/_react.default.createElement(_material.IconButton, {
|
|
959
|
+
onClick: handleChangeView(MAIN_VIEW),
|
|
960
|
+
color: "inherit"
|
|
961
|
+
}, /*#__PURE__*/_react.default.createElement(_Icon.default, null, "check")) : /*#__PURE__*/_react.default.createElement(_material.Button, {
|
|
942
962
|
onClick: handleChangeView(MAIN_VIEW),
|
|
943
963
|
variant: "text",
|
|
944
964
|
color: "inherit"
|
|
@@ -1062,9 +1082,7 @@ function Composer(inProps) {
|
|
|
1062
1082
|
onClick: handleChangeView(POLL_VIEW)
|
|
1063
1083
|
}, /*#__PURE__*/_react.default.createElement(_material.Badge, {
|
|
1064
1084
|
className: classes.badgeError,
|
|
1065
|
-
badgeContent: pollError ?
|
|
1066
|
-
fontSize: "small"
|
|
1067
|
-
}, "error_outline") : null,
|
|
1085
|
+
badgeContent: pollError ? ' ' : null,
|
|
1068
1086
|
color: "error"
|
|
1069
1087
|
}, /*#__PURE__*/_react.default.createElement(_Icon.default, null, "bar_chart")))), /*#__PURE__*/_react.default.createElement(_material.Typography, {
|
|
1070
1088
|
align: "right"
|
|
@@ -1126,9 +1144,6 @@ function Composer(inProps) {
|
|
|
1126
1144
|
}));
|
|
1127
1145
|
}
|
|
1128
1146
|
|
|
1129
|
-
const theme = (0, _styles.useTheme)();
|
|
1130
|
-
const fullScreen = (0, _material.useMediaQuery)(theme.breakpoints.down('md'));
|
|
1131
|
-
|
|
1132
1147
|
if (!scAuthContext.user) {
|
|
1133
1148
|
return null;
|
|
1134
1149
|
}
|
|
@@ -50,6 +50,7 @@ const localeMap = {
|
|
|
50
50
|
const PREFIX = 'SCComposerPoll';
|
|
51
51
|
const classes = {
|
|
52
52
|
root: `${PREFIX}-root`,
|
|
53
|
+
generalError: `${PREFIX}-generalError`,
|
|
53
54
|
title: `${PREFIX}-title`,
|
|
54
55
|
choices: `${PREFIX}-choices`,
|
|
55
56
|
choiceNew: `${PREFIX}-choice-new`,
|
|
@@ -63,6 +64,10 @@ const Root = (0, _styles.styled)(_material.Box, {
|
|
|
63
64
|
theme
|
|
64
65
|
}) => ({
|
|
65
66
|
padding: theme.spacing(2),
|
|
67
|
+
[`& .${classes.generalError}`]: {
|
|
68
|
+
marginBottom: theme.spacing(2),
|
|
69
|
+
color: theme.palette.error.main
|
|
70
|
+
},
|
|
66
71
|
[`& .${classes.title}, & .${classes.choices}, & .${classes.choiceNew}, & .${classes.metadata}`]: {
|
|
67
72
|
marginBottom: theme.spacing(3)
|
|
68
73
|
},
|
|
@@ -118,7 +123,8 @@ var _default = inProps => {
|
|
|
118
123
|
onChange
|
|
119
124
|
} = props;
|
|
120
125
|
const {
|
|
121
|
-
titleError = null
|
|
126
|
+
titleError = null,
|
|
127
|
+
error: generalError = null
|
|
122
128
|
} = Object.assign({}, error); // STATE
|
|
123
129
|
|
|
124
130
|
const [title, setTitle] = (0, _react.useState)(value !== null ? value.title : DEFAULT_POLL.title);
|
|
@@ -186,7 +192,9 @@ var _default = inProps => {
|
|
|
186
192
|
return /*#__PURE__*/_react.default.createElement(Root, {
|
|
187
193
|
id: id,
|
|
188
194
|
className: (0, _classnames.default)(classes.root, className)
|
|
189
|
-
}, /*#__PURE__*/_react.default.createElement(_material.
|
|
195
|
+
}, generalError && /*#__PURE__*/_react.default.createElement(_material.Typography, {
|
|
196
|
+
className: classes.generalError
|
|
197
|
+
}, generalError), /*#__PURE__*/_react.default.createElement(_material.Box, {
|
|
190
198
|
className: classes.title
|
|
191
199
|
}, /*#__PURE__*/_react.default.createElement(_material.TextField, {
|
|
192
200
|
label: /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, {
|
|
@@ -74,7 +74,7 @@ const Root = (0, _styles.styled)(_material.Box, {
|
|
|
74
74
|
}
|
|
75
75
|
}));
|
|
76
76
|
/**
|
|
77
|
-
* > API documentation for the Community-
|
|
77
|
+
* > API documentation for the Community-JS Composer Skeleton component. Learn about the available props and the CSS API.
|
|
78
78
|
|
|
79
79
|
#### Import
|
|
80
80
|
|
|
@@ -42,7 +42,7 @@ const Root = (0, _styles.styled)(_material.Box, {
|
|
|
42
42
|
}) => ({}));
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
|
-
> API documentation for the Community-
|
|
45
|
+
> API documentation for the Community-JS Connection User Button component. Learn about the available props and the CSS API.
|
|
46
46
|
*
|
|
47
47
|
#### Import
|
|
48
48
|
```jsx
|
|
@@ -36,7 +36,7 @@ const Root = (0, _styles.styled)(_material.Box, {
|
|
|
36
36
|
}));
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
|
-
> API documentation for the Community-
|
|
39
|
+
> API documentation for the Community-JS CustomAdv component. Learn about the available props and the CSS API.
|
|
40
40
|
*
|
|
41
41
|
#### Import
|
|
42
42
|
```jsx
|
|
@@ -23,7 +23,7 @@ const Root = (0, _styles.styled)(_Skeleton.GenericSkeleton, {
|
|
|
23
23
|
theme
|
|
24
24
|
}) => ({}));
|
|
25
25
|
/**
|
|
26
|
-
* > API documentation for the Community-
|
|
26
|
+
* > API documentation for the Community-JS Custom Adv Skeleton component. Learn about the available props and the CSS API.
|
|
27
27
|
|
|
28
28
|
#### Import
|
|
29
29
|
|
|
@@ -137,7 +137,7 @@ const Root = (0, _styles.styled)(_material.Box, {
|
|
|
137
137
|
}));
|
|
138
138
|
|
|
139
139
|
/**
|
|
140
|
-
* > API documentation for the Community-
|
|
140
|
+
* > API documentation for the Community-JS Editor component. Learn about the available props and the CSS API.
|
|
141
141
|
|
|
142
142
|
#### Import
|
|
143
143
|
|
|
@@ -23,7 +23,7 @@ const Root = (0, _styles.styled)(_Skeleton.GenericSkeleton, {
|
|
|
23
23
|
theme
|
|
24
24
|
}) => ({}));
|
|
25
25
|
/**
|
|
26
|
-
* > API documentation for the Community-
|
|
26
|
+
* > API documentation for the Community-JS Editor Skeleton component. Learn about the available props and the CSS API.
|
|
27
27
|
|
|
28
28
|
#### Import
|
|
29
29
|
|