hive-react-kit 1.12.17 → 1.12.19
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/dist/components/BlogPostList.d.ts +1 -1
- package/dist/components/HiveDetailPost.d.ts +3 -1
- package/dist/components/community/CommunityDetail.d.ts +2 -2
- package/dist/components/community/CommunitySnapsTab.d.ts +1 -1
- package/dist/components/user/UserDetailProfile.d.ts +1 -1
- package/dist/index.cjs.js +231 -230
- package/dist/index.esm.js +27761 -27444
- package/package.json +1 -1
|
@@ -63,7 +63,7 @@ export interface BlogPostListProps {
|
|
|
63
63
|
* posts in the feed render an inline <PollVoteWidget/>. */
|
|
64
64
|
onVotePoll?: (author: string, permlink: string, choiceNums: number[]) => void | boolean | Promise<void | boolean>;
|
|
65
65
|
onUserClick?: (username: string) => void;
|
|
66
|
-
onPostClick?: (author: string, permlink: string, title?: string) => void;
|
|
66
|
+
onPostClick?: (author: string, permlink: string, title?: string, contextPosts?: Post[]) => void;
|
|
67
67
|
getPostUrl?: (author: string, permlink: string) => string;
|
|
68
68
|
getUserUrl?: (username: string) => string;
|
|
69
69
|
getCommunityUrl?: (community: string) => string;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { Post } from '@/types/post';
|
|
1
2
|
export interface HiveDetailPostProps {
|
|
2
3
|
author: string;
|
|
3
4
|
permlink: string;
|
|
4
5
|
currentUser?: string;
|
|
6
|
+
contextPosts?: Post[];
|
|
5
7
|
onUpvote?: (percent: number) => void | Promise<void>;
|
|
6
8
|
/**
|
|
7
9
|
* Called when the user submits a comment.
|
|
@@ -240,5 +242,5 @@ export interface HiveDetailPostProps {
|
|
|
240
242
|
alreadySubmitted: boolean;
|
|
241
243
|
}>;
|
|
242
244
|
}
|
|
243
|
-
export declare function HiveDetailPost({ author, permlink, currentUser, onUpvote, onSubmitComment, onClickCommentUpvote, onReblog, isReblogged, onShare, onTip, onReport, onEdit, onDelete, onShareComment, onTipComment, onReportComment, onToggleCommentBookmark, isCommentBookmarked, onEditComment, onDeleteComment, ecencyToken, threeSpeakApiKey, giphyApiKey, templateToken, templateApiBaseUrl, reportedAuthors, reportedPosts, hiveIconUrl, backgroundColor, onBack, onOpenMenu, onOpenProfileMenu, onUserClick, onCommunityClick, getUserUrl, getCommunityUrl, onNavigateToPost, isBookmarked, onToggleBookmark, onHeaderShare, onHeaderReport, language, onSelectLanguage, onVotePoll, showVoteButton, processBody, defaultReward, defaultBeneficiaries, beneficiaryFavorites, defaultVotePercent, voteWeightStep, allowLandscapeVideos, renderOptions, awaitingWalletApproval, decentMemesAppAccount, decentMemesTheme, isCurator, onCurationRequest, onFetchCurationStatus, }: HiveDetailPostProps): import("react/jsx-runtime").JSX.Element;
|
|
245
|
+
export declare function HiveDetailPost({ author, permlink, currentUser, onUpvote, onSubmitComment, onClickCommentUpvote, onReblog, isReblogged, onShare, onTip, onReport, onEdit, onDelete, onShareComment, onTipComment, onReportComment, onToggleCommentBookmark, isCommentBookmarked, onEditComment, onDeleteComment, ecencyToken, threeSpeakApiKey, giphyApiKey, templateToken, templateApiBaseUrl, reportedAuthors, reportedPosts, hiveIconUrl, backgroundColor, onBack, onOpenMenu, onOpenProfileMenu, onUserClick, onCommunityClick, getUserUrl, getCommunityUrl, onNavigateToPost, contextPosts, isBookmarked, onToggleBookmark, onHeaderShare, onHeaderReport, language, onSelectLanguage, onVotePoll, showVoteButton, processBody, defaultReward, defaultBeneficiaries, beneficiaryFavorites, defaultVotePercent, voteWeightStep, allowLandscapeVideos, renderOptions, awaitingWalletApproval, decentMemesAppAccount, decentMemesTheme, isCurator, onCurationRequest, onFetchCurationStatus, }: HiveDetailPostProps): import("react/jsx-runtime").JSX.Element;
|
|
244
246
|
export default HiveDetailPost;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PostSort } from '../../types/post';
|
|
1
|
+
import type { Post, PostSort } from '../../types/post';
|
|
2
2
|
import type { RewardOption } from '../../utils/commentOptions';
|
|
3
3
|
export interface CommunityDetailProps {
|
|
4
4
|
/** Community id (e.g. `hive-167922`). */
|
|
@@ -8,7 +8,7 @@ export interface CommunityDetailProps {
|
|
|
8
8
|
/** Back-arrow handler. */
|
|
9
9
|
onBack: () => void;
|
|
10
10
|
onUserClick?: (username: string) => void;
|
|
11
|
-
onPostClick?: (author: string, permlink: string, title?: string) => void;
|
|
11
|
+
onPostClick?: (author: string, permlink: string, title?: string, contextPosts?: Post[]) => void;
|
|
12
12
|
onCommentClick?: (author: string, permlink: string) => void;
|
|
13
13
|
getPostUrl?: (author: string, permlink: string) => string;
|
|
14
14
|
getUserUrl?: (username: string) => string;
|
|
@@ -42,7 +42,7 @@ export interface CommunitySnapsTabProps {
|
|
|
42
42
|
* when `currentUser === post.author`. */
|
|
43
43
|
onDeletePost?: (author: string, permlink: string) => void;
|
|
44
44
|
onUserClick?: (username: string) => void;
|
|
45
|
-
onPostClick?: (author: string, permlink: string, title?: string) => void;
|
|
45
|
+
onPostClick?: (author: string, permlink: string, title?: string, contextPosts?: Post[]) => void;
|
|
46
46
|
getPostUrl?: (author: string, permlink: string) => string;
|
|
47
47
|
getUserUrl?: (username: string) => string;
|
|
48
48
|
getTagUrl?: (tag: string) => string;
|
|
@@ -188,7 +188,7 @@ export interface UserDetailProfileProps {
|
|
|
188
188
|
json_metadata: string;
|
|
189
189
|
}) => void;
|
|
190
190
|
onUserClick?: (username: string) => void;
|
|
191
|
-
onPostClick?: (author: string, permlink: string, title: string) => void;
|
|
191
|
+
onPostClick?: (author: string, permlink: string, title: string, contextPosts?: Post[]) => void;
|
|
192
192
|
onSnapClick?: (author: string, permlink: string) => void;
|
|
193
193
|
onPollClick?: (author: string, permlink: string, question: string) => void;
|
|
194
194
|
onActivityPermlink?: (author: string, permlink: string) => void;
|