@selfcommunity/react-ui 0.1.2-alpha.5 → 0.1.2-alpha.8
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/Skeleton.js +2 -2
- package/lib/cjs/components/CategoriesFollowed/CategoriesFollowed.js +1 -1
- 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 +1 -1
- 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 +10 -5
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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/Skeleton.js +2 -2
- package/lib/esm/components/CategoriesFollowed/CategoriesFollowed.js +1 -1
- 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 +1 -1
- 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 +10 -5
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- package/lib/esm/components/Widget/index.js +1 -1
- package/lib/esm/react-core/src/components/provider/SCUserProvider/index.d.ts.map +1 -1
- package/lib/esm/react-core/src/hooks/useSCFollowedCategoriesManager.d.ts +1 -1
- package/lib/esm/react-core/src/hooks/useSCFollowedCategoriesManager.d.ts.map +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/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/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/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/esm/types/src/types/user.d.ts +4 -0
- package/lib/esm/types/src/types/user.d.ts.map +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
|
|
@@ -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
|
|
@@ -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
|
|
@@ -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
|
|
|
@@ -130,6 +130,7 @@ const Root = (0, _styles.styled)(_material.Box, {
|
|
|
130
130
|
[`& .${classes.content}`]: {
|
|
131
131
|
position: 'relative',
|
|
132
132
|
display: 'flex',
|
|
133
|
+
wordBreak: 'break-all',
|
|
133
134
|
'& .MuiCardContent-root': {
|
|
134
135
|
padding: '7px 13px 7px 13px',
|
|
135
136
|
flexGrow: 1
|
|
@@ -182,7 +183,7 @@ const Root = (0, _styles.styled)(_material.Box, {
|
|
|
182
183
|
}));
|
|
183
184
|
|
|
184
185
|
/**
|
|
185
|
-
*> API documentation for the Community-
|
|
186
|
+
*> API documentation for the Community-JS Comment Object component. Learn about the available props and the CSS API.
|
|
186
187
|
|
|
187
188
|
#### Import
|
|
188
189
|
|
|
@@ -247,7 +248,8 @@ function CommentObject(inProps) {
|
|
|
247
248
|
WidgetProps: {
|
|
248
249
|
variant: 'outlined'
|
|
249
250
|
}
|
|
250
|
-
}
|
|
251
|
+
},
|
|
252
|
+
linkableCommentDateTime = true
|
|
251
253
|
} = props,
|
|
252
254
|
rest = _objectWithoutPropertiesLoose(props, _excluded); // CONTEXT
|
|
253
255
|
|
|
@@ -285,11 +287,13 @@ function CommentObject(inProps) {
|
|
|
285
287
|
*/
|
|
286
288
|
|
|
287
289
|
function renderTimeAgo(comment) {
|
|
288
|
-
return /*#__PURE__*/_react.default.createElement(_reactCore.Link, {
|
|
290
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, linkableCommentDateTime ? /*#__PURE__*/_react.default.createElement(_reactCore.Link, {
|
|
289
291
|
to: scRoutingContext.url(_reactCore.SCRoutes.COMMENT_ROUTE_NAME, (0, _contribution.getRouteData)(comment)),
|
|
290
292
|
className: classes.activityAt
|
|
291
293
|
}, /*#__PURE__*/_react.default.createElement(_DateTimeAgo.default, {
|
|
292
294
|
date: comment.added_at
|
|
295
|
+
})) : /*#__PURE__*/_react.default.createElement(_DateTimeAgo.default, {
|
|
296
|
+
date: comment.added_at
|
|
293
297
|
}));
|
|
294
298
|
}
|
|
295
299
|
/**
|
|
@@ -741,7 +745,8 @@ function CommentObject(inProps) {
|
|
|
741
745
|
CommentComponentProps: Object.assign({
|
|
742
746
|
onOpenReply: reply,
|
|
743
747
|
CommentObjectSkeletonProps,
|
|
744
|
-
elevation: elevation
|
|
748
|
+
elevation: elevation,
|
|
749
|
+
linkableCommentDateTime: linkableCommentDateTime
|
|
745
750
|
}, rest),
|
|
746
751
|
CommentsObjectSkeletonProps: {
|
|
747
752
|
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
|
|
|
@@ -75,7 +75,7 @@ const Root = (0, _styles.styled)(_material.Grid, {
|
|
|
75
75
|
}));
|
|
76
76
|
const PREFERENCES = [_reactCore.SCPreferences.ADVERTISING_CUSTOM_ADV_ENABLED, _reactCore.SCPreferences.ADVERTISING_CUSTOM_ADV_ONLY_FOR_ANONYMOUS_USERS_ENABLED];
|
|
77
77
|
/**
|
|
78
|
-
* > API documentation for the Community-
|
|
78
|
+
* > API documentation for the Community-JS Feed component. Learn about the available props and the CSS API.
|
|
79
79
|
|
|
80
80
|
#### Import
|
|
81
81
|
|
|
@@ -134,7 +134,7 @@ const Feed = (inProps, ref) => {
|
|
|
134
134
|
} = props; // STATE
|
|
135
135
|
|
|
136
136
|
const [feedData, setFeedData] = (0, _react.useState)([]);
|
|
137
|
-
const [loading, setLoading] = (0, _react.useState)(
|
|
137
|
+
const [loading, setLoading] = (0, _react.useState)(false);
|
|
138
138
|
const [next, setNext] = (0, _react.useState)(endpoint.url({})); // CONTEXT
|
|
139
139
|
|
|
140
140
|
const scPreferences = (0, _reactCore.useSCPreferences)();
|
|
@@ -190,20 +190,22 @@ const Feed = (inProps, ref) => {
|
|
|
190
190
|
|
|
191
191
|
|
|
192
192
|
const fetch = () => {
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
193
|
+
if (!loading) {
|
|
194
|
+
setLoading(true);
|
|
195
|
+
|
|
196
|
+
_apiServices.http.request({
|
|
197
|
+
url: next,
|
|
198
|
+
method: endpoint.method
|
|
199
|
+
}).then(res => {
|
|
200
|
+
const data = res.data;
|
|
201
|
+
setFeedData([...feedData, ...data.results]);
|
|
202
|
+
setNext(data.next);
|
|
203
|
+
setLoading(false);
|
|
204
|
+
onFetchData && onFetchData(res.data);
|
|
205
|
+
}).catch(error => {
|
|
206
|
+
_reactCore.Logger.error(_Errors.SCOPE_SC_UI, error);
|
|
207
|
+
});
|
|
208
|
+
}
|
|
207
209
|
};
|
|
208
210
|
|
|
209
211
|
const refresh = () => {
|
|
@@ -35,7 +35,7 @@ const Root = (0, _styles.styled)(_material.Grid, {
|
|
|
35
35
|
}));
|
|
36
36
|
|
|
37
37
|
/**
|
|
38
|
-
* > API documentation for the Community-
|
|
38
|
+
* > API documentation for the Community-JS Feed Skeleton component. Learn about the available props and the CSS API.
|
|
39
39
|
|
|
40
40
|
#### Import
|
|
41
41
|
|
|
@@ -228,7 +228,7 @@ const Root = (0, _styles.styled)(_Widget.default, {
|
|
|
228
228
|
}));
|
|
229
229
|
|
|
230
230
|
/**
|
|
231
|
-
* > API documentation for the Community-
|
|
231
|
+
* > API documentation for the Community-JS Feed Object component. Learn about the available props and the CSS API.
|
|
232
232
|
|
|
233
233
|
#### Import
|
|
234
234
|
|
|
@@ -42,7 +42,7 @@ const Root = (0, _styles.styled)(_Widget.default, {
|
|
|
42
42
|
}));
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
|
-
* > API documentation for the Community-
|
|
45
|
+
* > API documentation for the Community-JS Feed Object Skeleton component. Learn about the available props and the CSS API.
|
|
46
46
|
|
|
47
47
|
#### Import
|
|
48
48
|
|
|
@@ -50,7 +50,7 @@ const Root = (0, _styles.styled)(_Widget.default, {
|
|
|
50
50
|
}));
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
|
-
* > API documentation for the Community-
|
|
53
|
+
* > API documentation for the Community-JS FeedUpdates component. Learn about the available props and the CSS API.
|
|
54
54
|
* This Component subscribe to updates from PubSub channel (eg. websocket) and tell the feed to updates if necessary.
|
|
55
55
|
|
|
56
56
|
#### Import
|
|
@@ -20,7 +20,7 @@ const classes = {
|
|
|
20
20
|
};
|
|
21
21
|
const Root = (0, _styles.styled)(_GenericSkeleton.default)(() => ({}));
|
|
22
22
|
/**
|
|
23
|
-
* > API documentation for the Community-
|
|
23
|
+
* > API documentation for the Community-JS Feed Updates Skeleton component. Learn about the available props and the CSS API.
|
|
24
24
|
|
|
25
25
|
#### Import
|
|
26
26
|
|
|
@@ -44,7 +44,7 @@ const FollowButton = (0, _styles.styled)(_lab.LoadingButton, {
|
|
|
44
44
|
}) => ({}));
|
|
45
45
|
|
|
46
46
|
/**
|
|
47
|
-
* > API documentation for the Community-
|
|
47
|
+
* > API documentation for the Community-JS Follow Category Button component. Learn about the available props and the CSS API.
|
|
48
48
|
|
|
49
49
|
#### Import
|
|
50
50
|
|