hive-react-kit 1.5.9 → 1.6.1
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/HiveDetailPost.d.ts +5 -1
- package/dist/index.cjs.js +131 -131
- package/dist/index.esm.js +10958 -10937
- package/package.json +1 -1
|
@@ -155,6 +155,10 @@ export interface HiveDetailPostProps {
|
|
|
155
155
|
onUserClick?: (username: string) => void;
|
|
156
156
|
/** Called when user clicks "View parent post" — navigate to the parent post. */
|
|
157
157
|
onNavigateToPost?: (author: string, permlink: string) => void;
|
|
158
|
+
/** Called when the user taps the community pill in the header.
|
|
159
|
+
* Receives the community ID (`hive-xxxxxx`) so the consumer can route
|
|
160
|
+
* to its community-detail page. */
|
|
161
|
+
onCommunityClick?: (communityId: string) => void;
|
|
158
162
|
/** True when the post is bookmarked by the current user. Controls
|
|
159
163
|
* the visual state of the header's Bookmark item (filled vs.
|
|
160
164
|
* outline). The kit doesn't fetch this — pass it from the
|
|
@@ -194,5 +198,5 @@ export interface HiveDetailPostProps {
|
|
|
194
198
|
* page will then re-render with the new language. */
|
|
195
199
|
onSelectLanguage?: (code: string) => void;
|
|
196
200
|
}
|
|
197
|
-
export declare function HiveDetailPost({ author, permlink, currentUser, onUpvote, onSubmitComment, onClickCommentUpvote, onReblog, onShare, onTip, onReport, onEdit, onShareComment, onTipComment, onReportComment, onToggleCommentBookmark, isCommentBookmarked, onEditComment, ecencyToken, threeSpeakApiKey, giphyApiKey, templateToken, templateApiBaseUrl, reportedAuthors, reportedPosts, hiveIconUrl, backgroundColor, onBack, onUserClick, onNavigateToPost, isBookmarked, onToggleBookmark, onHeaderShare, onHeaderReport, language, onSelectLanguage, onVotePoll, showVoteButton, processBody, defaultReward, defaultBeneficiaries, beneficiaryFavorites, defaultVotePercent, voteWeightStep, allowLandscapeVideos, renderOptions, awaitingWalletApproval, }: HiveDetailPostProps): import("react/jsx-runtime").JSX.Element;
|
|
201
|
+
export declare function HiveDetailPost({ author, permlink, currentUser, onUpvote, onSubmitComment, onClickCommentUpvote, onReblog, onShare, onTip, onReport, onEdit, onShareComment, onTipComment, onReportComment, onToggleCommentBookmark, isCommentBookmarked, onEditComment, ecencyToken, threeSpeakApiKey, giphyApiKey, templateToken, templateApiBaseUrl, reportedAuthors, reportedPosts, hiveIconUrl, backgroundColor, onBack, onUserClick, onCommunityClick, onNavigateToPost, isBookmarked, onToggleBookmark, onHeaderShare, onHeaderReport, language, onSelectLanguage, onVotePoll, showVoteButton, processBody, defaultReward, defaultBeneficiaries, beneficiaryFavorites, defaultVotePercent, voteWeightStep, allowLandscapeVideos, renderOptions, awaitingWalletApproval, }: HiveDetailPostProps): import("react/jsx-runtime").JSX.Element;
|
|
198
202
|
export default HiveDetailPost;
|