hive-react-kit 0.0.27 → 0.0.28

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.
Files changed (77) hide show
  1. package/dist/App.d.ts +2 -0
  2. package/dist/components/ActivityHistory.d.ts +7 -0
  3. package/dist/components/ActivityList.d.ts +15 -0
  4. package/dist/components/FollowersList.d.ts +8 -0
  5. package/dist/components/FollowingList.d.ts +8 -0
  6. package/dist/components/ListOfWitnesses.d.ts +4 -0
  7. package/dist/components/PostFeedList.d.ts +17 -0
  8. package/dist/components/ProposalsList.d.ts +4 -0
  9. package/dist/components/TransactionHistory.d.ts +6 -0
  10. package/dist/components/UpvoteListModal.d.ts +11 -0
  11. package/dist/components/VideoCard.d.ts +9 -0
  12. package/dist/components/VideoDetail.d.ts +17 -0
  13. package/dist/components/VideoFeed.d.ts +11 -0
  14. package/dist/components/VideoInfo.d.ts +19 -0
  15. package/dist/components/VoteSlider.d.ts +7 -0
  16. package/dist/components/Wallet.d.ts +7 -0
  17. package/dist/components/WitnessFilters.d.ts +8 -0
  18. package/dist/components/comments/AddCommentInput.d.ts +10 -0
  19. package/dist/components/comments/CommentSearchBar.d.ts +8 -0
  20. package/dist/components/comments/CommentTile.d.ts +16 -0
  21. package/dist/components/comments/CommentsModal.d.ts +13 -0
  22. package/dist/components/comments/ReplyModal.d.ts +9 -0
  23. package/dist/components/common/FavouriteWidget.d.ts +10 -0
  24. package/dist/components/community/CommunitiesList.d.ts +5 -0
  25. package/dist/components/community/CommunityAbout.d.ts +5 -0
  26. package/dist/components/community/CommunityDetail.d.ts +16 -0
  27. package/dist/components/community/CommunityDetails.d.ts +13 -0
  28. package/dist/components/community/CommunityMembers.d.ts +6 -0
  29. package/dist/components/community/CommunityTeam.d.ts +6 -0
  30. package/dist/components/index.d.ts +25 -0
  31. package/dist/components/modals/CommentsModal.d.ts +8 -0
  32. package/dist/components/modals/DescriptionModal.d.ts +8 -0
  33. package/dist/components/modals/Modal.d.ts +10 -0
  34. package/dist/components/modals/UpvoteListModal.d.ts +7 -0
  35. package/dist/components/user/UserAccount.d.ts +14 -0
  36. package/dist/components/user/UserFollowers.d.ts +6 -0
  37. package/dist/components/user/UserFollowing.d.ts +6 -0
  38. package/dist/components/user/UserInfo.d.ts +5 -0
  39. package/dist/components/user/UserProfilePage.d.ts +16 -0
  40. package/dist/hooks/CommunityFavouriteProvider.d.ts +5 -0
  41. package/dist/hooks/index.d.ts +2 -0
  42. package/dist/hooks/use-mobile.d.ts +1 -0
  43. package/dist/hooks/use-toast.d.ts +52 -0
  44. package/dist/index.cjs.js +96 -104
  45. package/dist/index.d.ts +37 -0
  46. package/dist/index.esm.js +19012 -19032
  47. package/dist/main.d.ts +1 -0
  48. package/dist/pages/Index.d.ts +2 -0
  49. package/dist/pages/NotFound.d.ts +2 -0
  50. package/dist/pages/UserProfile.d.ts +2 -0
  51. package/dist/services/activityListService.d.ts +79 -0
  52. package/dist/services/activityService.d.ts +104 -0
  53. package/dist/services/apiService.d.ts +51 -0
  54. package/dist/services/communityService.d.ts +15 -0
  55. package/dist/services/proposalService.d.ts +9 -0
  56. package/dist/services/transactionService.d.ts +69 -0
  57. package/dist/services/userService.d.ts +15 -0
  58. package/dist/services/witnessService.d.ts +61 -0
  59. package/dist/store/index.d.ts +2 -0
  60. package/dist/store/walletStore.d.ts +2 -0
  61. package/dist/store/witnessStore.d.ts +31 -0
  62. package/dist/types/activity.d.ts +108 -0
  63. package/dist/types/activityList.d.ts +46 -0
  64. package/dist/types/comment.d.ts +19 -0
  65. package/dist/types/community.d.ts +136 -0
  66. package/dist/types/graphql.d.ts +28 -0
  67. package/dist/types/index.d.ts +8 -0
  68. package/dist/types/post.d.ts +53 -0
  69. package/dist/types/proposal.d.ts +35 -0
  70. package/dist/types/transaction.d.ts +90 -0
  71. package/dist/types/trending.d.ts +4 -0
  72. package/dist/types/user.d.ts +135 -0
  73. package/dist/types/video.d.ts +106 -0
  74. package/dist/types/wallet.d.ts +17 -0
  75. package/dist/types/witness.d.ts +57 -0
  76. package/dist/utils/thumbnail.d.ts +1 -0
  77. package/package.json +8 -9
package/dist/App.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ declare const App: () => import("react/jsx-runtime").JSX.Element;
2
+ export default App;
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ interface ActivityHistoryProps {
3
+ username: string;
4
+ className?: string;
5
+ }
6
+ declare const ActivityHistory: React.FC<ActivityHistoryProps>;
7
+ export default ActivityHistory;
@@ -0,0 +1,15 @@
1
+ import React from "react";
2
+ import { ActivityListItem, DirectionFilter, GeneralFilter, RewardFilter } from "@/types/activityList";
3
+ interface ActivityListProps {
4
+ username: string;
5
+ directionFilter?: DirectionFilter;
6
+ generalFilter?: GeneralFilter;
7
+ rewardFilter?: RewardFilter;
8
+ searchTerm?: string;
9
+ limit?: number;
10
+ className?: string;
11
+ onClickPermlink?: (author: string, permlink: string) => void;
12
+ onSelectActivity?: (activity: ActivityListItem) => void;
13
+ }
14
+ declare const ActivityList: React.FC<ActivityListProps>;
15
+ export default ActivityList;
@@ -0,0 +1,8 @@
1
+ interface FollowersListProps {
2
+ username: string;
3
+ onClickAuthor?: (username: string) => void;
4
+ onClickAddRemoveFromLists?: (username: string) => void;
5
+ onClickFollow?: (username: string) => void;
6
+ }
7
+ declare const FollowersList: ({ username, onClickAuthor, onClickAddRemoveFromLists, onClickFollow, }: FollowersListProps) => import("react/jsx-runtime").JSX.Element;
8
+ export default FollowersList;
@@ -0,0 +1,8 @@
1
+ interface FollowingListProps {
2
+ username: string;
3
+ onClickAuthor?: (username: string) => void;
4
+ onClickAddRemoveFromLists?: (username: string) => void;
5
+ onClickUnfollow?: (username: string) => void;
6
+ }
7
+ declare const FollowingList: ({ username, onClickAuthor, onClickAddRemoveFromLists, onClickUnfollow, }: FollowingListProps) => import("react/jsx-runtime").JSX.Element;
8
+ export default FollowingList;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { ListOfWitnessesProps } from '../types/witness';
3
+ declare const ListOfWitnesses: React.FC<ListOfWitnessesProps>;
4
+ export default ListOfWitnesses;
@@ -0,0 +1,17 @@
1
+ import { Post, PostSort } from '@/types/post';
2
+ interface PostFeedListProps {
3
+ sort?: PostSort;
4
+ tag?: string;
5
+ observer?: string;
6
+ limit?: number;
7
+ showSortDropdown?: boolean;
8
+ onAuthorClick?: (author: string, avatar: string) => void;
9
+ onPostClick?: (post: Post) => void;
10
+ onCommunityClick?: (communityTitle: string) => void;
11
+ onPayoutClick?: (payout: number) => void;
12
+ onUpvoteClick?: (post: Post) => void;
13
+ onCommentClick?: (post: Post) => void;
14
+ onReblogClick?: (post: Post) => void;
15
+ }
16
+ export default function PostFeedList({ sort, tag, observer, limit, showSortDropdown, onAuthorClick, onPostClick, onCommunityClick, onPayoutClick, onUpvoteClick, onCommentClick, onReblogClick, }: PostFeedListProps): import("react/jsx-runtime").JSX.Element;
17
+ export {};
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { ProposalsListProps } from '../types/proposal';
3
+ declare const ProposalsList: React.FC<ProposalsListProps>;
4
+ export default ProposalsList;
@@ -0,0 +1,6 @@
1
+ interface TransactionHistoryProps {
2
+ account: string;
3
+ className?: string;
4
+ }
5
+ declare function TransactionHistory({ account, className }: TransactionHistoryProps): import("react/jsx-runtime").JSX.Element;
6
+ export default TransactionHistory;
@@ -0,0 +1,11 @@
1
+ interface UpvoteListModalProps {
2
+ author: string;
3
+ permlink: string;
4
+ onClose: () => void;
5
+ currentUser?: string;
6
+ token?: string;
7
+ onClickUpvoteButton?: (currentUser?: string, token?: string) => void;
8
+ }
9
+ export declare function formatTimeAgo(date: string | Date): string;
10
+ declare const UpvoteListModal: ({ author, permlink, onClose, currentUser, token, onClickUpvoteButton }: UpvoteListModalProps) => import("react/jsx-runtime").JSX.Element;
11
+ export default UpvoteListModal;
@@ -0,0 +1,9 @@
1
+ import { VideoFeedItem } from "@/types/video";
2
+ interface VideoCardProps {
3
+ video: VideoFeedItem;
4
+ onVideoClick: (video: VideoFeedItem) => void;
5
+ onAuthorClick: (author: string) => void;
6
+ isGrid?: boolean;
7
+ }
8
+ declare const VideoCard: ({ video, onVideoClick, onAuthorClick, isGrid, }: VideoCardProps) => import("react/jsx-runtime").JSX.Element;
9
+ export default VideoCard;
@@ -0,0 +1,17 @@
1
+ import { VideoFeedItem } from "@/types/video";
2
+ interface VideoDetailProps {
3
+ username?: string;
4
+ permlink?: string;
5
+ onAuthorClick?: (author: string) => void;
6
+ onVideoClick?: (video: VideoFeedItem) => void;
7
+ onTagClick?: (tag: string) => void;
8
+ onBack?: () => void;
9
+ onCommentsModal?: (author: string, permlink: string) => void;
10
+ onUpvotesModal?: (author: string, permlink: string) => void;
11
+ onDescriptionModal?: (author: string, permlink: string, content: string) => void;
12
+ onVideoInfo?: (video: any) => void;
13
+ onShare?: (author: string, permlink: string) => void;
14
+ onBookmark?: (author: string, permlink: string) => void;
15
+ }
16
+ declare const VideoDetail: ({ username, permlink, onAuthorClick, onVideoClick, onTagClick, onBack, onCommentsModal, onUpvotesModal, onDescriptionModal, onVideoInfo, onShare, onBookmark }?: VideoDetailProps) => import("react/jsx-runtime").JSX.Element;
17
+ export default VideoDetail;
@@ -0,0 +1,11 @@
1
+ import { VideoFeedItem, ApiVideoFeedType } from "@/types/video";
2
+ interface VideoFeedProps {
3
+ feedType: ApiVideoFeedType;
4
+ username?: string;
5
+ communityId?: string;
6
+ tag?: string;
7
+ onVideoClick: (video: VideoFeedItem) => void;
8
+ onAuthorClick: (author: string) => void;
9
+ }
10
+ declare const VideoFeed: ({ feedType, username, communityId, tag, onVideoClick, onAuthorClick, }: VideoFeedProps) => import("react/jsx-runtime").JSX.Element;
11
+ export default VideoFeed;
@@ -0,0 +1,19 @@
1
+ import { VideoFeedItem } from "@/types/video";
2
+ interface VideoInfoProps {
3
+ title: string;
4
+ author: string;
5
+ permlink: string;
6
+ createdAt?: Date;
7
+ video: VideoFeedItem;
8
+ currentUser?: string;
9
+ isContentVoted?: boolean;
10
+ description?: string;
11
+ onTapComment?: (author: string, permlink: string) => void;
12
+ onTapUpvote?: (author: string, permlink: string) => void;
13
+ onTapShare?: (author: string, permlink: string) => void;
14
+ onTapBookmark?: (author: string, permlink: string) => void;
15
+ onTapAuthor?: (author: string, permlink: string) => void;
16
+ onTapInfo?: (author: string, permlink: string) => void;
17
+ }
18
+ declare const VideoInfo: ({ title, author, permlink, createdAt, video, currentUser, isContentVoted, description, onTapComment, onTapUpvote, onTapShare, onTapBookmark, onTapAuthor, onTapInfo, }: VideoInfoProps) => import("react/jsx-runtime").JSX.Element;
19
+ export default VideoInfo;
@@ -0,0 +1,7 @@
1
+ export declare function VoteSlider({ author, permlink, defaultValue, onUpvote, onCancel, }: {
2
+ author: string;
3
+ permlink: string;
4
+ defaultValue?: number;
5
+ onUpvote: (percent: number) => Promise<void> | void;
6
+ onCancel: () => void;
7
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ interface WalletProps {
3
+ username?: string;
4
+ className?: string;
5
+ }
6
+ export declare const Wallet: React.FC<WalletProps>;
7
+ export default Wallet;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { WitnessFilters } from '../types/witness';
3
+ interface WitnessFiltersProps {
4
+ filters: WitnessFilters;
5
+ onFiltersChange: (filters: WitnessFilters) => void;
6
+ }
7
+ declare const WitnessFiltersComponent: React.FC<WitnessFiltersProps>;
8
+ export default WitnessFiltersComponent;
@@ -0,0 +1,10 @@
1
+ interface AddCommentInputProps {
2
+ onSubmit: (body: string) => void;
3
+ onCancel: () => void;
4
+ currentUser?: string;
5
+ placeholder?: string;
6
+ parentAuthor?: string;
7
+ parentPermlink?: string;
8
+ }
9
+ declare const AddCommentInput: ({ onSubmit, onCancel, currentUser, placeholder, parentAuthor, parentPermlink }: AddCommentInputProps) => import("react/jsx-runtime").JSX.Element;
10
+ export default AddCommentInput;
@@ -0,0 +1,8 @@
1
+ interface CommentSearchBarProps {
2
+ isVisible: boolean;
3
+ searchQuery: string;
4
+ onSearchChange: (query: string) => void;
5
+ onClose: () => void;
6
+ }
7
+ declare const CommentSearchBar: ({ isVisible, searchQuery, onSearchChange, onClose }: CommentSearchBarProps) => import("react/jsx-runtime").JSX.Element;
8
+ export default CommentSearchBar;
@@ -0,0 +1,16 @@
1
+ import { Discussion } from '@/types/comment';
2
+ interface CommentTileProps {
3
+ comment: Discussion;
4
+ allComments: Discussion[];
5
+ onReply: (author: string, permlink: string) => void;
6
+ currentUser?: string;
7
+ token?: string;
8
+ searchQuery?: string;
9
+ depth?: number;
10
+ onVotedRefresh?: () => void;
11
+ onClickCommentUpvote?: (comment: Discussion) => void;
12
+ onClickCommentReply?: (comment: Discussion) => void;
13
+ onClickUpvoteButton?: (currentUser?: string, token?: string) => void;
14
+ }
15
+ declare const CommentTile: ({ comment, allComments, onReply, currentUser, token, searchQuery, depth, onVotedRefresh, onClickCommentUpvote, onClickCommentReply, onClickUpvoteButton, }: CommentTileProps) => import("react/jsx-runtime").JSX.Element;
16
+ export default CommentTile;
@@ -0,0 +1,13 @@
1
+ import { Discussion } from '@/types/comment';
2
+ interface CommentsModalProps {
3
+ author: string;
4
+ permlink: string;
5
+ onClose: () => void;
6
+ currentUser?: string;
7
+ token?: string;
8
+ onClickCommentUpvote?: (comment: Discussion) => void;
9
+ onClickCommentReply?: (comment: Discussion) => void;
10
+ onClickUpvoteButton?: (currentUser?: string, token?: string) => void;
11
+ }
12
+ declare const CommentsModal: ({ author, permlink, onClose, currentUser, token, onClickCommentUpvote, onClickCommentReply, onClickUpvoteButton }: CommentsModalProps) => import("react/jsx-runtime").JSX.Element;
13
+ export default CommentsModal;
@@ -0,0 +1,9 @@
1
+ interface ReplyModalProps {
2
+ parentAuthor: string;
3
+ parentPermlink: string;
4
+ onClose: () => void;
5
+ onCommentSubmitted: (parentAuthor: string, parentPermlink: string, body: string) => Promise<void>;
6
+ currentUser?: string;
7
+ }
8
+ declare const ReplyModal: ({ parentAuthor, parentPermlink, onClose, onCommentSubmitted, currentUser }: ReplyModalProps) => import("react/jsx-runtime").JSX.Element;
9
+ export default ReplyModal;
@@ -0,0 +1,10 @@
1
+ interface FavouriteWidgetProps {
2
+ id: string;
3
+ toastType: string;
4
+ isLiked?: boolean;
5
+ onAdd?: (id: string, action: "add_bookmark") => void;
6
+ onRemove?: (id: string, action: "remove_bookmark") => void;
7
+ onFavourite?: () => void;
8
+ }
9
+ declare const Favourite: ({ id, toastType, isLiked, onAdd, onRemove, onFavourite, }: FavouriteWidgetProps) => import("react/jsx-runtime").JSX.Element;
10
+ export default Favourite;
@@ -0,0 +1,5 @@
1
+ interface CommunitiesListProps {
2
+ onSelectCommunity: (communityId: string) => void;
3
+ }
4
+ declare const CommunitiesList: ({ onSelectCommunity }: CommunitiesListProps) => import("react/jsx-runtime").JSX.Element;
5
+ export default CommunitiesList;
@@ -0,0 +1,5 @@
1
+ interface CommunityAboutProps {
2
+ communityId: string;
3
+ }
4
+ declare const CommunityAbout: ({ communityId }: CommunityAboutProps) => import("react/jsx-runtime").JSX.Element;
5
+ export default CommunityAbout;
@@ -0,0 +1,16 @@
1
+ interface CommunityDetailProps {
2
+ communityId: string;
3
+ onVideoClick: (video: any) => void;
4
+ onAuthorClick: (author: string) => void;
5
+ onBack: () => void;
6
+ onclickAboutTab?: () => void;
7
+ onclickTeamTab?: () => void;
8
+ onclickMemberTab?: () => void;
9
+ onShare?: () => void;
10
+ onFavourite?: () => void;
11
+ onRss?: () => void;
12
+ onMoreVertical?: () => void;
13
+ showMoreVertical?: boolean;
14
+ }
15
+ declare const CommunityDetail: ({ communityId, onVideoClick, onAuthorClick, onBack, onclickAboutTab, onclickTeamTab, onclickMemberTab, onShare, onFavourite, onRss, onMoreVertical, showMoreVertical, }: CommunityDetailProps) => import("react/jsx-runtime").JSX.Element;
16
+ export default CommunityDetail;
@@ -0,0 +1,13 @@
1
+ import { Post } from "../../types/post";
2
+ interface CommunityDetailsProps {
3
+ communityId: string;
4
+ onAuthorClick?: (author: string, avatar: string) => void;
5
+ onPostClick?: (post: Post) => void;
6
+ onCommunityClick?: (communityTitle: string) => void;
7
+ onPayoutClick?: (payout: number) => void;
8
+ onUpvoteClick?: (post: Post) => void;
9
+ onCommentClick?: (post: Post) => void;
10
+ onReblogClick?: (post: Post) => void;
11
+ }
12
+ declare const CommunityDetails: ({ communityId, onAuthorClick, onPostClick, onCommunityClick, onPayoutClick, onUpvoteClick, onCommentClick, onReblogClick, }: CommunityDetailsProps) => import("react/jsx-runtime").JSX.Element;
13
+ export default CommunityDetails;
@@ -0,0 +1,6 @@
1
+ interface CommunityMembersProps {
2
+ communityId: string;
3
+ onSelectCommunityMember?: (username: string) => void;
4
+ }
5
+ declare const CommunityMembers: ({ communityId, onSelectCommunityMember }: CommunityMembersProps) => import("react/jsx-runtime").JSX.Element;
6
+ export default CommunityMembers;
@@ -0,0 +1,6 @@
1
+ interface CommunityTeamProps {
2
+ communityId: string;
3
+ onSelectTeamMember?: (username: string) => void;
4
+ }
5
+ declare const CommunityTeam: ({ communityId, onSelectTeamMember, }: CommunityTeamProps) => import("react/jsx-runtime").JSX.Element;
6
+ export default CommunityTeam;
@@ -0,0 +1,25 @@
1
+ export { default as VideoCard } from './VideoCard';
2
+ export { default as VideoDetail } from './VideoDetail';
3
+ export { default as VideoFeed } from './VideoFeed';
4
+ export { default as VideoInfo } from './VideoInfo';
5
+ export { default as Wallet } from './Wallet';
6
+ export { default as PostFeedList } from './PostFeedList';
7
+ export { default as ProposalsList } from './ProposalsList';
8
+ export { default as FollowersList } from './FollowersList';
9
+ export { default as FollowingList } from './FollowingList';
10
+ export { default as ActivityList } from './ActivityList';
11
+ export { default as FavouriteWidget } from './common/FavouriteWidget';
12
+ export { default as CommunitiesList } from './community/CommunitiesList';
13
+ export { default as CommunityAbout } from './community/CommunityAbout';
14
+ export { default as CommunityDetail } from './community/CommunityDetail';
15
+ export { default as CommunityMembers } from './community/CommunityMembers';
16
+ export { default as CommunityTeam } from './community/CommunityTeam';
17
+ export { default as CommentsModal } from './modals/CommentsModal';
18
+ export { default as DescriptionModal } from './modals/DescriptionModal';
19
+ export { default as Modal } from './modals/Modal';
20
+ export { default as UpvoteListModal } from './modals/UpvoteListModal';
21
+ export { default as UserAccount } from './user/UserAccount';
22
+ export { default as UserFollowers } from './user/UserFollowers';
23
+ export { default as UserFollowing } from './user/UserFollowing';
24
+ export { default as UserInfo } from './user/UserInfo';
25
+ export { default as UserProfilePage } from './user/UserProfilePage';
@@ -0,0 +1,8 @@
1
+ interface CommentsModalProps {
2
+ author: string;
3
+ permlink: string;
4
+ currentUser?: string;
5
+ onClose: () => void;
6
+ }
7
+ declare const CommentsModal: ({ author, permlink, currentUser, onClose }: CommentsModalProps) => import("react/jsx-runtime").JSX.Element;
8
+ export default CommentsModal;
@@ -0,0 +1,8 @@
1
+ interface DescriptionModalProps {
2
+ author: string;
3
+ permlink: string;
4
+ content: string;
5
+ onClose: () => void;
6
+ }
7
+ declare const DescriptionModal: ({ author, permlink, content, onClose }: DescriptionModalProps) => import("react/jsx-runtime").JSX.Element;
8
+ export default DescriptionModal;
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+ interface ModalProps {
3
+ isOpen: boolean;
4
+ onClose: () => void;
5
+ title: string;
6
+ children: React.ReactNode;
7
+ maxWidth?: string;
8
+ }
9
+ declare const Modal: ({ isOpen, onClose, title, children, maxWidth }: ModalProps) => import("react/jsx-runtime").JSX.Element;
10
+ export default Modal;
@@ -0,0 +1,7 @@
1
+ interface UpvoteListModalProps {
2
+ author: string;
3
+ permlink: string;
4
+ onClose: () => void;
5
+ }
6
+ declare const UpvoteListModal: ({ author, permlink, onClose }: UpvoteListModalProps) => import("react/jsx-runtime").JSX.Element;
7
+ export default UpvoteListModal;
@@ -0,0 +1,14 @@
1
+ import { User } from "@/types/user";
2
+ interface UserAccountProps {
3
+ currentUser: User | null;
4
+ onTabChanged?: (tabIndex: number) => void;
5
+ onPublish?: (username: string, permlink: string) => void;
6
+ onViewMyVideo?: (username: string, permlink: string) => void;
7
+ onMoreOptions?: (videoId: string) => void;
8
+ onTapBackButton?: () => void;
9
+ shouldShowMoreOptionsButton?: boolean;
10
+ shouldShowBackButton?: boolean;
11
+ shouldShowPublishButton?: boolean;
12
+ }
13
+ declare const UserAccount: ({ currentUser, onTabChanged, onPublish, onViewMyVideo, onMoreOptions, onTapBackButton, shouldShowBackButton, shouldShowPublishButton, shouldShowMoreOptionsButton, }: UserAccountProps) => import("react/jsx-runtime").JSX.Element;
14
+ export default UserAccount;
@@ -0,0 +1,6 @@
1
+ interface UserFollowersProps {
2
+ username: string;
3
+ onSelectUser?: (username: string) => void;
4
+ }
5
+ declare const UserFollowers: ({ username, onSelectUser, }: UserFollowersProps) => import("react/jsx-runtime").JSX.Element;
6
+ export default UserFollowers;
@@ -0,0 +1,6 @@
1
+ interface UserFollowingProps {
2
+ username: string;
3
+ onSelectUser?: (username: string) => void;
4
+ }
5
+ declare const UserFollowing: ({ username, onSelectUser, }: UserFollowingProps) => import("react/jsx-runtime").JSX.Element;
6
+ export default UserFollowing;
@@ -0,0 +1,5 @@
1
+ interface UserInfoProps {
2
+ username: string;
3
+ }
4
+ declare const UserInfo: ({ username }: UserInfoProps) => import("react/jsx-runtime").JSX.Element;
5
+ export default UserInfo;
@@ -0,0 +1,16 @@
1
+ interface UserProfilePageProps {
2
+ username: string;
3
+ onVideoClick: (video: any) => void;
4
+ onAuthorClick: (author: string) => void;
5
+ onBack: () => void;
6
+ onClickUserInfoTab?: () => void;
7
+ onClickFollowersTab?: () => void;
8
+ onClickFollowingTab?: () => void;
9
+ onBookmarkToggle?: (username: string, isBookmarked: boolean) => void;
10
+ onRss?: (username: string) => void;
11
+ onShare?: (username: string) => void;
12
+ onMoreMenu?: (username: string) => void;
13
+ showMoreMenu?: boolean;
14
+ }
15
+ declare const UserProfilePage: ({ username, onVideoClick, onAuthorClick, onBack, onClickUserInfoTab, onClickFollowersTab, onClickFollowingTab, onBookmarkToggle, onRss, onShare, onMoreMenu, showMoreMenu, }: UserProfilePageProps) => import("react/jsx-runtime").JSX.Element;
16
+ export default UserProfilePage;
@@ -0,0 +1,5 @@
1
+ export declare const CommunityFavouriteProvider: {
2
+ getBookmarkedCommunities: () => string[];
3
+ isUserPresentLocally: (communityId: string) => boolean;
4
+ storeLikedCommunityLocally: (communityId: string, forceRemove?: boolean) => string[];
5
+ };
@@ -0,0 +1,2 @@
1
+ export * from './use-mobile';
2
+ export * from './use-toast';
@@ -0,0 +1 @@
1
+ export declare function useIsMobile(): boolean;
@@ -0,0 +1,52 @@
1
+ import * as React from "react";
2
+ type ToastActionElement = React.ReactElement;
3
+ type ToastProps = {
4
+ id?: string;
5
+ title?: React.ReactNode;
6
+ description?: React.ReactNode;
7
+ action?: ToastActionElement;
8
+ open?: boolean;
9
+ onOpenChange?: (open: boolean) => void;
10
+ };
11
+ type ToasterToast = ToastProps & {
12
+ id: string;
13
+ title?: React.ReactNode;
14
+ description?: React.ReactNode;
15
+ action?: ToastActionElement;
16
+ };
17
+ declare const actionTypes: {
18
+ readonly ADD_TOAST: "ADD_TOAST";
19
+ readonly UPDATE_TOAST: "UPDATE_TOAST";
20
+ readonly DISMISS_TOAST: "DISMISS_TOAST";
21
+ readonly REMOVE_TOAST: "REMOVE_TOAST";
22
+ };
23
+ type ActionType = typeof actionTypes;
24
+ type Action = {
25
+ type: ActionType["ADD_TOAST"];
26
+ toast: ToasterToast;
27
+ } | {
28
+ type: ActionType["UPDATE_TOAST"];
29
+ toast: Partial<ToasterToast>;
30
+ } | {
31
+ type: ActionType["DISMISS_TOAST"];
32
+ toastId?: ToasterToast["id"];
33
+ } | {
34
+ type: ActionType["REMOVE_TOAST"];
35
+ toastId?: ToasterToast["id"];
36
+ };
37
+ interface State {
38
+ toasts: ToasterToast[];
39
+ }
40
+ export declare const reducer: (state: State, action: Action) => State;
41
+ type Toast = Omit<ToasterToast, "id">;
42
+ declare function toast({ ...props }: Toast): {
43
+ id: string;
44
+ dismiss: () => void;
45
+ update: (props: ToasterToast) => void;
46
+ };
47
+ declare function useToast(): {
48
+ toast: typeof toast;
49
+ dismiss: (toastId?: string) => void;
50
+ toasts: ToasterToast[];
51
+ };
52
+ export { useToast, toast };