@selfcommunity/react-ui 0.1.2-alpha.0 → 0.1.2-alpha.11
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/AccountRecover/AccountRecover.stories.js +1 -1
- package/lib/cjs/components/AccountSignIn/AccountSignIn.js +1 -1
- package/lib/cjs/components/AccountSignIn/AccountSignIn.stories.js +1 -1
- package/lib/cjs/components/AccountSignUp/AccountSignUp.js +1 -1
- package/lib/cjs/components/AccountSignUp/AccountSignUp.stories.js +1 -1
- package/lib/cjs/components/BroadcastMessages/BroadcastMessages.js +1 -1
- package/lib/cjs/components/BroadcastMessages/BroadcastMessages.stories.js +1 -1
- package/lib/cjs/components/BroadcastMessages/BroadcastMessagesSkeleton.stories.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/CategoriesFollowed.stories.js +1 -1
- package/lib/cjs/components/CategoriesFollowed/CategoriesFollowedSkeleton.stories.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/CategoriesPopular.stories.js +1 -1
- package/lib/cjs/components/CategoriesPopular/CategoriesPopularSkeleton.stories.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/CategoriesSuggestion.stories.js +1 -1
- package/lib/cjs/components/CategoriesSuggestion/CategoriesSuggestionSkeleton.stories.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/Category.stories.js +1 -1
- package/lib/cjs/components/Category/CategorySkeleton.stories.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/CategoryHeader.stories.js +1 -1
- package/lib/cjs/components/CategoryHeader/CategoryHeaderSkeleton.stories.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/ChangeCover/ChangeCover.stories.js +1 -1
- package/lib/cjs/components/ChangePicture/ChangePicture.js +1 -1
- package/lib/cjs/components/ChangePicture/ChangePicture.stories.js +1 -1
- package/lib/cjs/components/CommentObject/CommentObject.js +14 -8
- package/lib/cjs/components/CommentObject/CommentObject.stories.js +1 -1
- package/lib/cjs/components/CommentObject/CommentObjectSkeleton.stories.js +1 -1
- package/lib/cjs/components/CommentObject/Skeleton.js +1 -1
- package/lib/cjs/components/CommentsFeedObject/CommentsFeedObject.js +3 -2
- package/lib/cjs/components/CommentsFeedObject/CommentsFeedObject.stories.js +1 -1
- package/lib/cjs/components/CommentsFeedObject/CommentsFeedObjectSkeleton.stories.js +1 -1
- package/lib/cjs/components/CommentsObject/CommentsObject.js +1 -1
- package/lib/cjs/components/CommentsObject/CommentsObjectSkeleton.stories.js +1 -1
- package/lib/cjs/components/CommentsObject/Skeleton.js +1 -1
- package/lib/cjs/components/Composer/Audience/Audience.js +5 -29
- package/lib/cjs/components/Composer/Composer.js +41 -19
- package/lib/cjs/components/Composer/Composer.stories.js +1 -1
- package/lib/cjs/components/Composer/ComposerSkeleton.stories.js +1 -1
- 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/CustomAdv.stories.js +1 -1
- package/lib/cjs/components/CustomAdv/CustomAdvSkeleton.stories.js +1 -1
- package/lib/cjs/components/CustomAdv/Skeleton.js +1 -1
- package/lib/cjs/components/Editor/Editor.js +2 -8
- package/lib/cjs/components/Editor/Editor.stories.js +1 -1
- package/lib/cjs/components/Editor/EditorSkeleton.stories.js +1 -1
- package/lib/cjs/components/Editor/Skeleton.js +1 -1
- package/lib/cjs/components/Editor/plugins/ImagePlugin.js +0 -1
- package/lib/cjs/components/Feed/Feed.js +29 -24
- package/lib/cjs/components/Feed/Feed.stories.js +1 -1
- package/lib/cjs/components/Feed/FeedSkeleton.stories.js +1 -1
- 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/Contributors/ContributorsFeedObject.stories.js +1 -1
- package/lib/cjs/components/FeedObject/FeedObject.js +22 -32
- package/lib/cjs/components/FeedObject/FeedObject.stories.js +1 -1
- package/lib/cjs/components/FeedObject/FeedObjectSkeleton.stories.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/FeedUpdates.stories.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/Footer.stories.js +1 -1
- package/lib/cjs/components/Footer/FooterSkeleton.stories.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/Incubator.stories.js +1 -1
- package/lib/cjs/components/Incubator/IncubatorSkeleton.stories.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/IncubatorSuggestion.stories.js +1 -1
- package/lib/cjs/components/IncubatorSuggestion/IncubatorSuggestionSkeleton.stories.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/IncubatorsList.stories.js +1 -1
- package/lib/cjs/components/IncubatorsList/IncubatorsListSkeleton.stories.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/InlineComposer.stories.js +1 -1
- package/lib/cjs/components/InlineComposer/InlineComposerSkeleton.stories.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/LoyaltyProgram.stories.js +1 -1
- package/lib/cjs/components/LoyaltyProgram/LoyaltyProgramSkeleton.stories.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/LoyaltyProgramDetail.stories.js +1 -1
- package/lib/cjs/components/LoyaltyProgramDetail/LoyaltyProgramDetailSkeleton.stories.js +1 -1
- package/lib/cjs/components/LoyaltyProgramDetail/Skeleton.js +1 -1
- package/lib/cjs/components/Message/Message.js +1 -1
- package/lib/cjs/components/Message/Message.stories.js +1 -1
- package/lib/cjs/components/Message/MessageSkeleton.stories.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/MessageEditorSkeleton.stories.js +1 -1
- package/lib/cjs/components/MessageEditor/Skeleton.js +1 -1
- package/lib/cjs/components/Notification/Comment/Comment.js +1 -1
- package/lib/cjs/components/Notification/ContributionFollow/ContributionFollow.js +9 -4
- package/lib/cjs/components/Notification/Notification.js +1 -1
- package/lib/cjs/components/Notification/NotificationSkeleton.stories.js +1 -1
- package/lib/cjs/components/Notification/PrivateMessage/PrivateMessage.js +1 -7
- package/lib/cjs/components/Notification/Skeleton.js +1 -1
- package/lib/cjs/components/PeopleSuggestion/PeopleSuggestion.js +3 -9
- package/lib/cjs/components/PeopleSuggestion/PeopleSuggestion.stories.js +1 -1
- package/lib/cjs/components/PeopleSuggestion/PeopleSuggestionSkeleton.stories.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/Platform.stories.js +1 -1
- package/lib/cjs/components/Platform/PlatformSkeleton.stories.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/PollSuggestion.stories.js +1 -1
- package/lib/cjs/components/PollSuggestion/PollSuggestionSkeleton.stories.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/RelatedFeedObjects.stories.js +1 -1
- package/lib/cjs/components/RelatedFeedObjects/RelatedFeedObjectsSkeleton.stories.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/AvatarGroupSkeleton.stories.js +1 -1
- package/lib/cjs/components/Skeleton/GenericSkeleton.js +1 -1
- package/lib/cjs/components/Skeleton/GenericSkeleton.stories.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/SnippetNotifications/SnippetNotifications.stories.js +1 -1
- package/lib/cjs/components/SnippetNotifications/SnippetNotificationsSkeleton.stories.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/Snippets/Snippets.stories.js +1 -1
- package/lib/cjs/components/Snippets/SnippetsSkeleton.stories.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/Thread/Thread.stories.js +1 -1
- package/lib/cjs/components/Thread/ThreadSkeleton.stories.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/ToastNotifications/ToastNotifications.stories.js +1 -1
- package/lib/cjs/components/ToastNotifications/ToastNotificationsSkeleton.stories.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/TrendingFeed/TrendingFeed.stories.js +1 -1
- package/lib/cjs/components/TrendingFeed/TrendingFeedSkeleton.stories.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/TrendingPeople/TrendingPeople.stories.js +1 -1
- package/lib/cjs/components/TrendingPeople/TrendingPeopleSkeleton.stories.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/User/User.stories.js +1 -1
- package/lib/cjs/components/User/UserSkeleton.stories.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/UserFollowers/UserFollowers.stories.js +1 -1
- package/lib/cjs/components/UserFollowers/UserFollowersSkeleton.stories.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/UserProfileEdit/UserProfileEdit.stories.js +1 -1
- package/lib/cjs/components/UserProfileEdit/UserProfileEditSkeleton.stories.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/UserProfileHeader/UserProfileHeader.stories.js +1 -1
- package/lib/cjs/components/UserProfileHeader/UserProfileHeaderSkeleton.stories.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/UserProfileInfo/UserProfileInfo.stories.js +1 -1
- package/lib/cjs/components/UserProfileInfo/UserProfileInfoSkeleton.stories.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/UsersFollowed/UsersFollowed.stories.js +1 -1
- package/lib/cjs/components/UsersFollowed/UsersFollowedSkeleton.stories.js +1 -1
- package/lib/cjs/components/Widget/index.js +1 -1
- package/lib/cjs/shared/AutoPlayer/index.js +8 -1
- package/lib/cjs/shared/BaseItem/BaseItem.js +1 -1
- package/lib/cjs/shared/BaseItem/BaseItem.stories.js +1 -1
- package/lib/cjs/shared/BaseItemButton/BaseItemButton.js +1 -1
- package/lib/cjs/shared/BaseItemButton/BaseItemButton.stories.js +1 -1
- package/lib/cjs/shared/Bullet/BaseItem.stories.js +1 -1
- package/lib/cjs/shared/CentralProgress/CentralProgress.stories.js +1 -1
- package/lib/cjs/shared/ContributionActionsMenu/ContributionActionsMenu.stories.js +1 -1
- package/lib/cjs/shared/DateTimeAgo/DateTimeAgo.stories.js +1 -1
- package/lib/cjs/shared/DateTimeAgo/index.js +20 -11
- package/lib/cjs/shared/Media/Link/PreviewComponent.js +2 -1
- package/lib/cjs/shared/Media/Share/PreviewComponent.js +2 -1
- package/lib/cjs/shared/Media/Video/PreviewComponent.js +2 -8
- package/lib/cjs/shared/NotificationItem/NotificationItem.js +1 -1
- package/lib/cjs/shared/NotificationItem/NotificationItem.stories.js +1 -1
- package/lib/cjs/shared/ScrollContainer/ScrollContainer.stories.js +1 -1
- package/lib/cjs/shared/TagChip/TagChip.stories.js +1 -1
- package/lib/cjs/shared/Tags/Tags.stories.js +1 -1
- package/lib/cjs/utils/hash.js +1 -1
- package/lib/esm/components/AccountRecover/AccountRecover.js +1 -1
- package/lib/esm/components/AccountRecover/AccountRecover.stories.js +1 -1
- package/lib/esm/components/AccountSignIn/AccountSignIn.js +1 -1
- package/lib/esm/components/AccountSignIn/AccountSignIn.stories.js +1 -1
- package/lib/esm/components/AccountSignUp/AccountSignUp.js +1 -1
- package/lib/esm/components/AccountSignUp/AccountSignUp.stories.js +1 -1
- package/lib/esm/components/BroadcastMessages/BroadcastMessages.js +1 -1
- package/lib/esm/components/BroadcastMessages/BroadcastMessages.stories.js +1 -1
- package/lib/esm/components/BroadcastMessages/BroadcastMessagesSkeleton.stories.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/CategoriesFollowed.stories.js +1 -1
- package/lib/esm/components/CategoriesFollowed/CategoriesFollowedSkeleton.stories.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/CategoriesPopular.stories.js +1 -1
- package/lib/esm/components/CategoriesPopular/CategoriesPopularSkeleton.stories.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/CategoriesSuggestion.stories.js +1 -1
- package/lib/esm/components/CategoriesSuggestion/CategoriesSuggestionSkeleton.stories.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/Category.stories.js +1 -1
- package/lib/esm/components/Category/CategorySkeleton.stories.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/CategoryHeader.stories.js +1 -1
- package/lib/esm/components/CategoryHeader/CategoryHeaderSkeleton.stories.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/ChangeCover/ChangeCover.stories.js +1 -1
- package/lib/esm/components/ChangePicture/ChangePicture.js +1 -1
- package/lib/esm/components/ChangePicture/ChangePicture.stories.js +1 -1
- package/lib/esm/components/CommentObject/CommentObject.js +14 -8
- package/lib/esm/components/CommentObject/CommentObject.stories.js +1 -1
- package/lib/esm/components/CommentObject/CommentObjectSkeleton.stories.js +1 -1
- package/lib/esm/components/CommentObject/Skeleton.js +1 -1
- package/lib/esm/components/CommentsFeedObject/CommentsFeedObject.js +3 -2
- package/lib/esm/components/CommentsFeedObject/CommentsFeedObject.stories.js +1 -1
- package/lib/esm/components/CommentsFeedObject/CommentsFeedObjectSkeleton.stories.js +1 -1
- package/lib/esm/components/CommentsObject/CommentsObject.js +1 -1
- package/lib/esm/components/CommentsObject/CommentsObjectSkeleton.stories.js +1 -1
- package/lib/esm/components/CommentsObject/Skeleton.js +1 -1
- package/lib/esm/components/Composer/Audience/Audience.js +5 -29
- package/lib/esm/components/Composer/Composer.js +41 -19
- package/lib/esm/components/Composer/Composer.stories.js +1 -1
- package/lib/esm/components/Composer/ComposerSkeleton.stories.js +1 -1
- 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/CustomAdv.stories.js +1 -1
- package/lib/esm/components/CustomAdv/CustomAdvSkeleton.stories.js +1 -1
- package/lib/esm/components/CustomAdv/Skeleton.js +1 -1
- package/lib/esm/components/Editor/Editor.js +2 -8
- package/lib/esm/components/Editor/Editor.stories.js +1 -1
- package/lib/esm/components/Editor/EditorSkeleton.stories.js +1 -1
- package/lib/esm/components/Editor/Skeleton.js +1 -1
- package/lib/esm/components/Editor/plugins/ImagePlugin.js +0 -1
- package/lib/esm/components/Feed/Feed.js +29 -24
- package/lib/esm/components/Feed/Feed.stories.js +1 -1
- package/lib/esm/components/Feed/FeedSkeleton.stories.js +1 -1
- 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/Contributors/ContributorsFeedObject.stories.js +1 -1
- package/lib/esm/components/FeedObject/FeedObject.js +22 -32
- package/lib/esm/components/FeedObject/FeedObject.stories.js +1 -1
- package/lib/esm/components/FeedObject/FeedObjectSkeleton.stories.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/FeedUpdates.stories.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/Footer.stories.js +1 -1
- package/lib/esm/components/Footer/FooterSkeleton.stories.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/Incubator.stories.js +1 -1
- package/lib/esm/components/Incubator/IncubatorSkeleton.stories.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/IncubatorSuggestion.stories.js +1 -1
- package/lib/esm/components/IncubatorSuggestion/IncubatorSuggestionSkeleton.stories.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/IncubatorsList.stories.js +1 -1
- package/lib/esm/components/IncubatorsList/IncubatorsListSkeleton.stories.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/InlineComposer.stories.js +1 -1
- package/lib/esm/components/InlineComposer/InlineComposerSkeleton.stories.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/LoyaltyProgram.stories.js +1 -1
- package/lib/esm/components/LoyaltyProgram/LoyaltyProgramSkeleton.stories.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/LoyaltyProgramDetail.stories.js +1 -1
- package/lib/esm/components/LoyaltyProgramDetail/LoyaltyProgramDetailSkeleton.stories.js +1 -1
- package/lib/esm/components/LoyaltyProgramDetail/Skeleton.js +1 -1
- package/lib/esm/components/Message/Message.js +1 -1
- package/lib/esm/components/Message/Message.stories.js +1 -1
- package/lib/esm/components/Message/MessageSkeleton.stories.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/MessageEditorSkeleton.stories.js +1 -1
- package/lib/esm/components/MessageEditor/Skeleton.js +1 -1
- package/lib/esm/components/Notification/Comment/Comment.js +1 -1
- package/lib/esm/components/Notification/ContributionFollow/ContributionFollow.js +9 -4
- package/lib/esm/components/Notification/Notification.js +1 -1
- package/lib/esm/components/Notification/NotificationSkeleton.stories.js +1 -1
- package/lib/esm/components/Notification/PrivateMessage/PrivateMessage.js +1 -7
- package/lib/esm/components/Notification/Skeleton.js +1 -1
- package/lib/esm/components/PeopleSuggestion/PeopleSuggestion.js +3 -9
- package/lib/esm/components/PeopleSuggestion/PeopleSuggestion.stories.js +1 -1
- package/lib/esm/components/PeopleSuggestion/PeopleSuggestionSkeleton.stories.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/Platform.stories.js +1 -1
- package/lib/esm/components/Platform/PlatformSkeleton.stories.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/PollSuggestion.stories.js +1 -1
- package/lib/esm/components/PollSuggestion/PollSuggestionSkeleton.stories.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/RelatedFeedObjects.stories.js +1 -1
- package/lib/esm/components/RelatedFeedObjects/RelatedFeedObjectsSkeleton.stories.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/AvatarGroupSkeleton.stories.js +1 -1
- package/lib/esm/components/Skeleton/GenericSkeleton.js +1 -1
- package/lib/esm/components/Skeleton/GenericSkeleton.stories.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/SnippetNotifications/SnippetNotifications.stories.js +1 -1
- package/lib/esm/components/SnippetNotifications/SnippetNotificationsSkeleton.stories.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/Snippets/Snippets.stories.js +1 -1
- package/lib/esm/components/Snippets/SnippetsSkeleton.stories.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/Thread/Thread.stories.js +1 -1
- package/lib/esm/components/Thread/ThreadSkeleton.stories.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/ToastNotifications/ToastNotifications.stories.js +1 -1
- package/lib/esm/components/ToastNotifications/ToastNotificationsSkeleton.stories.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/TrendingFeed/TrendingFeed.stories.js +1 -1
- package/lib/esm/components/TrendingFeed/TrendingFeedSkeleton.stories.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/TrendingPeople/TrendingPeople.stories.js +1 -1
- package/lib/esm/components/TrendingPeople/TrendingPeopleSkeleton.stories.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/User/User.stories.js +1 -1
- package/lib/esm/components/User/UserSkeleton.stories.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/UserFollowers/UserFollowers.stories.js +1 -1
- package/lib/esm/components/UserFollowers/UserFollowersSkeleton.stories.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/UserProfileEdit/UserProfileEdit.stories.js +1 -1
- package/lib/esm/components/UserProfileEdit/UserProfileEditSkeleton.stories.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/UserProfileHeader/UserProfileHeader.stories.js +1 -1
- package/lib/esm/components/UserProfileHeader/UserProfileHeaderSkeleton.stories.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/UserProfileInfo/UserProfileInfo.stories.js +1 -1
- package/lib/esm/components/UserProfileInfo/UserProfileInfoSkeleton.stories.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/UsersFollowed/UsersFollowed.stories.js +1 -1
- package/lib/esm/components/UsersFollowed/UsersFollowedSkeleton.stories.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/useSCFetchAddressingTagList.d.ts +14 -0
- package/lib/esm/react-core/src/hooks/useSCFetchAddressingTagList.d.ts.map +1 -0
- 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-core/src/index.d.ts +2 -1
- package/lib/esm/react-core/src/index.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/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/Audience/Audience.d.ts +5 -0
- package/lib/esm/react-ui/src/components/Composer/Audience/Audience.d.ts.map +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/Editor.d.ts.map +1 -1
- package/lib/esm/react-ui/src/components/Editor/Skeleton.d.ts +1 -1
- package/lib/esm/react-ui/src/components/Editor/plugins/ImagePlugin.d.ts.map +1 -1
- package/lib/esm/react-ui/src/components/Feed/Feed.d.ts +5 -0
- 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/FeedObject.d.ts.map +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/ContributionFollow/ContributionFollow.d.ts.map +1 -1
- package/lib/esm/react-ui/src/components/Notification/Notification.d.ts +1 -1
- package/lib/esm/react-ui/src/components/Notification/PrivateMessage/PrivateMessage.d.ts.map +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/AutoPlayer/index.d.ts.map +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/Media/Video/PreviewComponent.d.ts.map +1 -1
- package/lib/esm/react-ui/src/shared/NotificationItem/NotificationItem.d.ts +1 -1
- package/lib/esm/shared/AutoPlayer/index.js +8 -1
- package/lib/esm/shared/BaseItem/BaseItem.js +1 -1
- package/lib/esm/shared/BaseItem/BaseItem.stories.js +1 -1
- package/lib/esm/shared/BaseItemButton/BaseItemButton.js +1 -1
- package/lib/esm/shared/BaseItemButton/BaseItemButton.stories.js +1 -1
- package/lib/esm/shared/Bullet/BaseItem.stories.js +1 -1
- package/lib/esm/shared/CentralProgress/CentralProgress.stories.js +1 -1
- package/lib/esm/shared/ContributionActionsMenu/ContributionActionsMenu.stories.js +1 -1
- package/lib/esm/shared/DateTimeAgo/DateTimeAgo.stories.js +1 -1
- package/lib/esm/shared/DateTimeAgo/index.js +20 -11
- package/lib/esm/shared/Media/Link/PreviewComponent.js +2 -1
- package/lib/esm/shared/Media/Share/PreviewComponent.js +2 -1
- package/lib/esm/shared/Media/Video/PreviewComponent.js +2 -8
- package/lib/esm/shared/NotificationItem/NotificationItem.js +1 -1
- package/lib/esm/shared/NotificationItem/NotificationItem.stories.js +1 -1
- package/lib/esm/shared/ScrollContainer/ScrollContainer.stories.js +1 -1
- package/lib/esm/shared/TagChip/TagChip.stories.js +1 -1
- package/lib/esm/shared/Tags/Tags.stories.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/esm/utils/hash.js +1 -1
- package/lib/umd/react-ui.js +21 -21
- package/lib/umd/react-ui.js.LICENSE.txt +4 -0
- package/lib/umd/react-ui.js.map +1 -1
- package/package.json +8 -7
|
@@ -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
|
|
|
@@ -11,8 +11,6 @@ var _Autocomplete = _interopRequireDefault(require("@mui/material/Autocomplete")
|
|
|
11
11
|
|
|
12
12
|
var _TextField = _interopRequireDefault(require("@mui/material/TextField"));
|
|
13
13
|
|
|
14
|
-
var _CircularProgress = _interopRequireDefault(require("@mui/material/CircularProgress"));
|
|
15
|
-
|
|
16
14
|
var _Checkbox = _interopRequireDefault(require("@mui/material/Checkbox"));
|
|
17
15
|
|
|
18
16
|
var _parse = _interopRequireDefault(require("autosuggest-highlight/parse"));
|
|
@@ -21,13 +19,11 @@ var _match = _interopRequireDefault(require("autosuggest-highlight/match"));
|
|
|
21
19
|
|
|
22
20
|
var _styles = require("@mui/material/styles");
|
|
23
21
|
|
|
24
|
-
var _apiServices = require("@selfcommunity/api-services");
|
|
25
|
-
|
|
26
22
|
var _TagChip = _interopRequireDefault(require("../../../shared/TagChip"));
|
|
27
23
|
|
|
28
24
|
var _useThemeProps = _interopRequireDefault(require("@mui/material/styles/useThemeProps"));
|
|
29
25
|
|
|
30
|
-
const _excluded = ["onChange", "defaultValue", "limitCountTags", "checkboxSelect", "disabled", "TextFieldProps"];
|
|
26
|
+
const _excluded = ["onChange", "defaultValue", "limitCountTags", "checkboxSelect", "disabled", "TextFieldProps", "tags"];
|
|
31
27
|
|
|
32
28
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
33
29
|
|
|
@@ -70,31 +66,14 @@ function _default(inProps) {
|
|
|
70
66
|
id: "ui.composer.audience.tags.label",
|
|
71
67
|
defaultMessage: "ui.composer.audience.tags.label"
|
|
72
68
|
})
|
|
73
|
-
}
|
|
69
|
+
},
|
|
70
|
+
tags = []
|
|
74
71
|
} = props,
|
|
75
72
|
rest = _objectWithoutPropertiesLoose(props, _excluded); // State
|
|
76
73
|
|
|
77
74
|
|
|
78
|
-
const [isLoading, setIsLoading] = (0, _react.useState)(false);
|
|
79
75
|
const [open, setOpen] = (0, _react.useState)(false);
|
|
80
|
-
const [
|
|
81
|
-
const [value, setValue] = (0, _react.useState)(defaultValue);
|
|
82
|
-
|
|
83
|
-
const load = () => {
|
|
84
|
-
_apiServices.http.request({
|
|
85
|
-
url: _apiServices.Endpoints.ComposerAddressingTagList.url(),
|
|
86
|
-
method: _apiServices.Endpoints.ComposerAddressingTagList.method
|
|
87
|
-
}).then(res => {
|
|
88
|
-
setTags(res.data);
|
|
89
|
-
}).then(() => setIsLoading(false));
|
|
90
|
-
}; // Component update
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
(0, _react.useEffect)(() => {
|
|
94
|
-
if (!isLoading && open && tags.length === 0) {
|
|
95
|
-
load();
|
|
96
|
-
}
|
|
97
|
-
}, [open]); // Handlers
|
|
76
|
+
const [value, setValue] = (0, _react.useState)(defaultValue); // Handlers
|
|
98
77
|
|
|
99
78
|
const handleOpen = () => {
|
|
100
79
|
setOpen(true);
|
|
@@ -175,10 +154,7 @@ function _default(inProps) {
|
|
|
175
154
|
InputProps: Object.assign({}, params.InputProps, {
|
|
176
155
|
autoComplete: 'addressing',
|
|
177
156
|
// disable autocomplete and autofill
|
|
178
|
-
endAdornment: /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null,
|
|
179
|
-
color: "inherit",
|
|
180
|
-
size: 20
|
|
181
|
-
}) : null, params.InputProps.endAdornment)
|
|
157
|
+
endAdornment: /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, params.InputProps.endAdornment)
|
|
182
158
|
})
|
|
183
159
|
}));
|
|
184
160
|
}
|
|
@@ -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
|
|
@@ -340,7 +340,13 @@ function Composer(inProps) {
|
|
|
340
340
|
const scAuthContext = (0, _react.useContext)(_reactCore.SCUserContext);
|
|
341
341
|
const {
|
|
342
342
|
enqueueSnackbar
|
|
343
|
-
} = (0, _notistack.useSnackbar)(); //
|
|
343
|
+
} = (0, _notistack.useSnackbar)(); // HOOKS
|
|
344
|
+
|
|
345
|
+
const {
|
|
346
|
+
scAddressingTags
|
|
347
|
+
} = (0, _reactCore.useSCFetchAddressingTagList)({
|
|
348
|
+
fetch: rest.open
|
|
349
|
+
}); // State variables
|
|
344
350
|
|
|
345
351
|
const [fades, setFades] = (0, _react.useState)({});
|
|
346
352
|
const [isSubmitting, setIsSubmitting] = (0, _react.useState)(false);
|
|
@@ -741,10 +747,12 @@ function Composer(inProps) {
|
|
|
741
747
|
value: (0, _apiServices.formatHttpError)(error)
|
|
742
748
|
});
|
|
743
749
|
}).then(() => setIsSubmitting(false));
|
|
744
|
-
};
|
|
745
|
-
/* Renderers */
|
|
750
|
+
}; // RENDER
|
|
746
751
|
|
|
747
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'));
|
|
748
756
|
const hasMediaShare = (0, _react.useMemo)(() => medias.findIndex(m => m.type === _Media.MEDIA_TYPE_SHARE) !== -1, [medias]);
|
|
749
757
|
|
|
750
758
|
const renderMediaAdornment = mediaObjectType => {
|
|
@@ -786,7 +794,10 @@ function Composer(inProps) {
|
|
|
786
794
|
})), /*#__PURE__*/_react.default.createElement(_material.Box, null, /*#__PURE__*/_react.default.createElement(_material.Avatar, {
|
|
787
795
|
className: classes.avatar,
|
|
788
796
|
src: scAuthContext.user.avatar
|
|
789
|
-
})), /*#__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, {
|
|
790
801
|
onClick: handleChangeView(MAIN_VIEW),
|
|
791
802
|
variant: "text",
|
|
792
803
|
color: "inherit"
|
|
@@ -835,7 +846,8 @@ function Composer(inProps) {
|
|
|
835
846
|
}
|
|
836
847
|
}, /*#__PURE__*/_react.default.createElement(_Audience.default, {
|
|
837
848
|
onChange: handleChange('addressing'),
|
|
838
|
-
defaultValue: addressing
|
|
849
|
+
defaultValue: addressing,
|
|
850
|
+
tags: scAddressingTags
|
|
839
851
|
})))));
|
|
840
852
|
};
|
|
841
853
|
|
|
@@ -855,7 +867,11 @@ function Composer(inProps) {
|
|
|
855
867
|
})), /*#__PURE__*/_react.default.createElement(_material.Box, null, /*#__PURE__*/_react.default.createElement(_material.Avatar, {
|
|
856
868
|
className: classes.avatar,
|
|
857
869
|
src: scAuthContext.user.avatar
|
|
858
|
-
})), /*#__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, {
|
|
859
875
|
onClick: handleChangeView(MAIN_VIEW),
|
|
860
876
|
variant: "text",
|
|
861
877
|
color: "inherit",
|
|
@@ -885,15 +901,23 @@ function Composer(inProps) {
|
|
|
885
901
|
size: "small",
|
|
886
902
|
disabled: !hasPoll()
|
|
887
903
|
}, /*#__PURE__*/_react.default.createElement(_Icon.default, null, "arrow_back")), /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, {
|
|
888
|
-
id: "ui.composer.poll
|
|
889
|
-
defaultMessage: "ui.composer.poll
|
|
904
|
+
id: "ui.composer.poll",
|
|
905
|
+
defaultMessage: "ui.composer.poll"
|
|
890
906
|
})), /*#__PURE__*/_react.default.createElement(_material.Box, null, /*#__PURE__*/_react.default.createElement(_material.Avatar, {
|
|
891
907
|
className: classes.avatar,
|
|
892
908
|
src: scAuthContext.user.avatar
|
|
893
909
|
})), /*#__PURE__*/_react.default.createElement(_material.Stack, {
|
|
894
910
|
spacing: 2,
|
|
895
911
|
direction: "row"
|
|
896
|
-
}, /*#__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, {
|
|
897
921
|
onClick: handleDeletePoll,
|
|
898
922
|
variant: "text",
|
|
899
923
|
color: "inherit"
|
|
@@ -908,7 +932,7 @@ function Composer(inProps) {
|
|
|
908
932
|
}, /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, {
|
|
909
933
|
id: "ui.composer.done",
|
|
910
934
|
defaultMessage: "ui.composer.done"
|
|
911
|
-
})))), /*#__PURE__*/_react.default.createElement(_material.DialogContent, {
|
|
935
|
+
}))))), /*#__PURE__*/_react.default.createElement(_material.DialogContent, {
|
|
912
936
|
className: classes.content
|
|
913
937
|
}, /*#__PURE__*/_react.default.createElement(_Poll2.default, {
|
|
914
938
|
onChange: handleChangePoll,
|
|
@@ -931,7 +955,10 @@ function Composer(inProps) {
|
|
|
931
955
|
})), /*#__PURE__*/_react.default.createElement(_material.Box, null, /*#__PURE__*/_react.default.createElement(_material.Avatar, {
|
|
932
956
|
className: classes.avatar,
|
|
933
957
|
src: scAuthContext.user.avatar
|
|
934
|
-
})), /*#__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, {
|
|
935
962
|
onClick: handleChangeView(MAIN_VIEW),
|
|
936
963
|
variant: "text",
|
|
937
964
|
color: "inherit"
|
|
@@ -1055,9 +1082,7 @@ function Composer(inProps) {
|
|
|
1055
1082
|
onClick: handleChangeView(POLL_VIEW)
|
|
1056
1083
|
}, /*#__PURE__*/_react.default.createElement(_material.Badge, {
|
|
1057
1084
|
className: classes.badgeError,
|
|
1058
|
-
badgeContent: pollError ?
|
|
1059
|
-
fontSize: "small"
|
|
1060
|
-
}, "error_outline") : null,
|
|
1085
|
+
badgeContent: pollError ? ' ' : null,
|
|
1061
1086
|
color: "error"
|
|
1062
1087
|
}, /*#__PURE__*/_react.default.createElement(_Icon.default, null, "bar_chart")))), /*#__PURE__*/_react.default.createElement(_material.Typography, {
|
|
1063
1088
|
align: "right"
|
|
@@ -1065,7 +1090,7 @@ function Composer(inProps) {
|
|
|
1065
1090
|
disabled: isSubmitting,
|
|
1066
1091
|
onClick: handleChangeView(LOCATION_VIEW),
|
|
1067
1092
|
color: location !== null ? 'primary' : 'default'
|
|
1068
|
-
}, /*#__PURE__*/_react.default.createElement(_Icon.default, null, "add_location_alt")), scPrefernces.features.includes(_reactCore.SCFeatures.USER_TAGGING) && /*#__PURE__*/_react.default.createElement(_material.IconButton, {
|
|
1093
|
+
}, /*#__PURE__*/_react.default.createElement(_Icon.default, null, "add_location_alt")), scPrefernces.features.includes(_reactCore.SCFeatures.USER_TAGGING) && scAddressingTags.length > 0 && /*#__PURE__*/_react.default.createElement(_material.IconButton, {
|
|
1069
1094
|
disabled: isSubmitting,
|
|
1070
1095
|
onClick: handleChangeView(AUDIENCE_VIEW)
|
|
1071
1096
|
}, audience === AUDIENCE_TAG ? /*#__PURE__*/_react.default.createElement(_Icon.default, null, "label") : /*#__PURE__*/_react.default.createElement(_Icon.default, null, "public")), /*#__PURE__*/_react.default.createElement(_LoadingButton.default, {
|
|
@@ -1119,9 +1144,6 @@ function Composer(inProps) {
|
|
|
1119
1144
|
}));
|
|
1120
1145
|
}
|
|
1121
1146
|
|
|
1122
|
-
const theme = (0, _styles.useTheme)();
|
|
1123
|
-
const fullScreen = (0, _material.useMediaQuery)(theme.breakpoints.down('md'));
|
|
1124
|
-
|
|
1125
1147
|
if (!scAuthContext.user) {
|
|
1126
1148
|
return null;
|
|
1127
1149
|
}
|
|
@@ -11,7 +11,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
11
11
|
|
|
12
12
|
// More on default export: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
|
|
13
13
|
var _default = {
|
|
14
|
-
title: 'Design System/
|
|
14
|
+
title: 'Design System/React UI/Composer',
|
|
15
15
|
component: _index.default // More on argTypes: https://storybook.js.org/docs/react/api/argtypes
|
|
16
16
|
|
|
17
17
|
}; // More on component templates: https://storybook.js.org/docs/react/writing-stories/introduction#using-args
|
|
@@ -10,7 +10,7 @@ var _Skeleton = _interopRequireDefault(require("./Skeleton"));
|
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
11
|
|
|
12
12
|
var _default = {
|
|
13
|
-
title: 'Design System/
|
|
13
|
+
title: 'Design System/React UI/Skeleton/Composer',
|
|
14
14
|
component: _Skeleton.default,
|
|
15
15
|
argTypes: {},
|
|
16
16
|
args: {}
|
|
@@ -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
|
|
@@ -11,7 +11,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
11
11
|
|
|
12
12
|
// More on default export: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
|
|
13
13
|
var _default = {
|
|
14
|
-
title: 'Design System/
|
|
14
|
+
title: 'Design System/React UI/CustomAdv',
|
|
15
15
|
component: _index.default // More on argTypes: https://storybook.js.org/docs/react/api/argtypes
|
|
16
16
|
|
|
17
17
|
}; // More on component templates: https://storybook.js.org/docs/react/writing-stories/introduction#using-args
|
|
@@ -11,7 +11,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
11
11
|
|
|
12
12
|
// More on default export: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
|
|
13
13
|
var _default = {
|
|
14
|
-
title: 'Design System/
|
|
14
|
+
title: 'Design System/React UI/Skeleton/CustomAdv',
|
|
15
15
|
component: _Skeleton.default // More on argTypes: https://storybook.js.org/docs/react/api/argtypes
|
|
16
16
|
|
|
17
17
|
}; // More on component templates: https://storybook.js.org/docs/react/writing-stories/introduction#using-args
|
|
@@ -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
|
|
|
@@ -61,13 +61,7 @@ const Root = (0, _styles.styled)(_material.Box, {
|
|
|
61
61
|
outline: 'none',
|
|
62
62
|
minHeight: 60,
|
|
63
63
|
'& > p': {
|
|
64
|
-
margin: theme.spacing(1, 0, 1, 0)
|
|
65
|
-
'&:first-child': {
|
|
66
|
-
marginTop: 0
|
|
67
|
-
},
|
|
68
|
-
'&:last-child': {
|
|
69
|
-
marginBottom: 0
|
|
70
|
-
}
|
|
64
|
+
margin: theme.spacing(1, 0, 1, 0)
|
|
71
65
|
},
|
|
72
66
|
'& img': {
|
|
73
67
|
margin: theme.spacing(1, 0, 1, 0),
|
|
@@ -143,7 +137,7 @@ const Root = (0, _styles.styled)(_material.Box, {
|
|
|
143
137
|
}));
|
|
144
138
|
|
|
145
139
|
/**
|
|
146
|
-
* > API documentation for the Community-
|
|
140
|
+
* > API documentation for the Community-JS Editor component. Learn about the available props and the CSS API.
|
|
147
141
|
|
|
148
142
|
#### Import
|
|
149
143
|
|
|
@@ -11,7 +11,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
11
11
|
|
|
12
12
|
// More on default export: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
|
|
13
13
|
var _default = {
|
|
14
|
-
title: 'Design System/
|
|
14
|
+
title: 'Design System/React UI/Editor',
|
|
15
15
|
component: _index.default // More on argTypes: https://storybook.js.org/docs/react/api/argtypes
|
|
16
16
|
|
|
17
17
|
}; // More on component templates: https://storybook.js.org/docs/react/writing-stories/introduction#using-args
|
|
@@ -11,7 +11,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
11
11
|
|
|
12
12
|
// More on default export: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
|
|
13
13
|
var _default = {
|
|
14
|
-
title: 'Design System/
|
|
14
|
+
title: 'Design System/React UI/Skeleton/Editor',
|
|
15
15
|
component: _Skeleton.default // More on argTypes: https://storybook.js.org/docs/react/api/argtypes
|
|
16
16
|
|
|
17
17
|
}; // More on component templates: https://storybook.js.org/docs/react/writing-stories/introduction#using-args
|
|
@@ -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
|
|
|
@@ -35,6 +35,8 @@ var _pubsubJs = _interopRequireDefault(require("pubsub-js"));
|
|
|
35
35
|
|
|
36
36
|
var _useThemeProps = _interopRequireDefault(require("@mui/material/styles/useThemeProps"));
|
|
37
37
|
|
|
38
|
+
var _url = require("../../utils/url");
|
|
39
|
+
|
|
38
40
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
39
41
|
|
|
40
42
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -75,7 +77,7 @@ const Root = (0, _styles.styled)(_material.Grid, {
|
|
|
75
77
|
}));
|
|
76
78
|
const PREFERENCES = [_reactCore.SCPreferences.ADVERTISING_CUSTOM_ADV_ENABLED, _reactCore.SCPreferences.ADVERTISING_CUSTOM_ADV_ONLY_FOR_ANONYMOUS_USERS_ENABLED];
|
|
77
79
|
/**
|
|
78
|
-
* > API documentation for the Community-
|
|
80
|
+
* > API documentation for the Community-JS Feed component. Learn about the available props and the CSS API.
|
|
79
81
|
|
|
80
82
|
#### Import
|
|
81
83
|
|
|
@@ -110,6 +112,9 @@ const Feed = (inProps, ref) => {
|
|
|
110
112
|
id = 'feed',
|
|
111
113
|
className,
|
|
112
114
|
endpoint,
|
|
115
|
+
endpointQueryParams = [{
|
|
116
|
+
limit: 5
|
|
117
|
+
}],
|
|
113
118
|
endMessage = /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, {
|
|
114
119
|
id: "ui.feed.noOtherFeedObject",
|
|
115
120
|
defaultMessage: "ui.feed.noOtherFeedObject"
|
|
@@ -134,8 +139,8 @@ const Feed = (inProps, ref) => {
|
|
|
134
139
|
} = props; // STATE
|
|
135
140
|
|
|
136
141
|
const [feedData, setFeedData] = (0, _react.useState)([]);
|
|
137
|
-
const [loading, setLoading] = (0, _react.useState)(
|
|
138
|
-
const [next, setNext] = (0, _react.useState)(endpoint.url({})); // CONTEXT
|
|
142
|
+
const [loading, setLoading] = (0, _react.useState)(false);
|
|
143
|
+
const [next, setNext] = (0, _react.useState)((0, _url.appendURLSearchParams)(endpoint.url({}), endpointQueryParams)); // CONTEXT
|
|
139
144
|
|
|
140
145
|
const scPreferences = (0, _reactCore.useSCPreferences)();
|
|
141
146
|
const scUserContext = (0, _react.useContext)(_reactCore.SCUserContext); // CONST
|
|
@@ -190,20 +195,22 @@ const Feed = (inProps, ref) => {
|
|
|
190
195
|
|
|
191
196
|
|
|
192
197
|
const fetch = () => {
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
198
|
+
if (!loading) {
|
|
199
|
+
setLoading(true);
|
|
200
|
+
|
|
201
|
+
_apiServices.http.request({
|
|
202
|
+
url: next,
|
|
203
|
+
method: endpoint.method
|
|
204
|
+
}).then(res => {
|
|
205
|
+
const data = res.data;
|
|
206
|
+
setFeedData([...feedData, ...data.results]);
|
|
207
|
+
setNext(data.next);
|
|
208
|
+
setLoading(false);
|
|
209
|
+
onFetchData && onFetchData(res.data);
|
|
210
|
+
}).catch(error => {
|
|
211
|
+
_reactCore.Logger.error(_Errors.SCOPE_SC_UI, error);
|
|
212
|
+
});
|
|
213
|
+
}
|
|
207
214
|
};
|
|
208
215
|
|
|
209
216
|
const refresh = () => {
|
|
@@ -237,7 +244,7 @@ const Feed = (inProps, ref) => {
|
|
|
237
244
|
|
|
238
245
|
const theme = (0, _styles.useTheme)();
|
|
239
246
|
const oneColLayout = (0, _material.useMediaQuery)(theme.breakpoints.down('md'));
|
|
240
|
-
const getData = (0, _react.
|
|
247
|
+
const getData = (0, _react.useMemo)(() => () => {
|
|
241
248
|
const widgetSort = (w1, w2) => w1.position > w2.position ? 1 : -1;
|
|
242
249
|
|
|
243
250
|
const widgetReducer = (value, w) => {
|
|
@@ -250,7 +257,7 @@ const Feed = (inProps, ref) => {
|
|
|
250
257
|
left: _widgets.map(w => Object.assign({}, w, {
|
|
251
258
|
position: w.position * (w.column === 'right' ? 5 : 1)
|
|
252
259
|
})).sort(widgetSort).reduce(widgetReducer, [...feedData, ...(loading ? Array.from({
|
|
253
|
-
length:
|
|
260
|
+
length: 3
|
|
254
261
|
}).map(() => ({
|
|
255
262
|
type: 'widget',
|
|
256
263
|
component: ItemSkeleton,
|
|
@@ -261,7 +268,7 @@ const Feed = (inProps, ref) => {
|
|
|
261
268
|
} else {
|
|
262
269
|
return {
|
|
263
270
|
left: _widgets.filter(w => w.column === 'left').sort(widgetSort).reduce(widgetReducer, [...feedData, ...(loading ? Array.from({
|
|
264
|
-
length:
|
|
271
|
+
length: 3
|
|
265
272
|
}).map(() => ({
|
|
266
273
|
type: 'widget',
|
|
267
274
|
component: ItemSkeleton,
|
|
@@ -281,14 +288,12 @@ const Feed = (inProps, ref) => {
|
|
|
281
288
|
item: true,
|
|
282
289
|
xs: 12,
|
|
283
290
|
md: 7
|
|
284
|
-
}, /*#__PURE__*/_react.default.createElement(_react.default.Suspense, {
|
|
285
|
-
fallback: /*#__PURE__*/_react.default.createElement(ItemSkeleton, ItemSkeletonProps)
|
|
286
291
|
}, /*#__PURE__*/_react.default.createElement(_reactInfiniteScrollComponent.default, {
|
|
287
292
|
className: classes.left,
|
|
288
293
|
dataLength: data.left.length,
|
|
289
294
|
next: fetch,
|
|
290
295
|
hasMore: Boolean(next),
|
|
291
|
-
loader:
|
|
296
|
+
loader: /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null),
|
|
292
297
|
endMessage: /*#__PURE__*/_react.default.createElement(_Widget.default, {
|
|
293
298
|
className: classes.end
|
|
294
299
|
}, /*#__PURE__*/_react.default.createElement(_material.CardContent, null, endMessage)),
|
|
@@ -313,7 +318,7 @@ const Feed = (inProps, ref) => {
|
|
|
313
318
|
sx: {
|
|
314
319
|
width: '100%'
|
|
315
320
|
}
|
|
316
|
-
})))))
|
|
321
|
+
}))))), data.right.length > 0 && /*#__PURE__*/_react.default.createElement(_material.Hidden, {
|
|
317
322
|
smDown: true
|
|
318
323
|
}, /*#__PURE__*/_react.default.createElement(_material.Grid, {
|
|
319
324
|
item: true,
|
|
@@ -29,7 +29,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
29
29
|
|
|
30
30
|
// More on default export: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
|
|
31
31
|
var _default = {
|
|
32
|
-
title: 'Design System/
|
|
32
|
+
title: 'Design System/React UI/Feed',
|
|
33
33
|
component: _index.default
|
|
34
34
|
}; // More on component templates: https://storybook.js.org/docs/react/writing-stories/introduction#using-args
|
|
35
35
|
|
|
@@ -10,7 +10,7 @@ var _Skeleton = _interopRequireDefault(require("./Skeleton"));
|
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
11
|
|
|
12
12
|
var _default = {
|
|
13
|
-
title: 'Design System/
|
|
13
|
+
title: 'Design System/React UI/Skeleton/Feed',
|
|
14
14
|
component: _Skeleton.default,
|
|
15
15
|
argTypes: {},
|
|
16
16
|
args: {}
|
|
@@ -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
|
|
|
@@ -13,7 +13,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
13
13
|
|
|
14
14
|
// More on default export: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
|
|
15
15
|
var _default = {
|
|
16
|
-
title: 'Design System/
|
|
16
|
+
title: 'Design System/React UI/ContributorsFeedObject',
|
|
17
17
|
component: _index.default,
|
|
18
18
|
argTypes: {
|
|
19
19
|
feedObjectId: {
|