hive-react-kit 1.10.10 → 1.11.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 +7 -1
- package/dist/components/inlineComments/InlineCommentItem.d.ts +6 -1
- package/dist/components/inlineComments/InlineCommentSection.d.ts +8 -2
- package/dist/index.cjs.js +186 -186
- package/dist/index.esm.js +19981 -19696
- package/dist/utils/decentmemes.d.ts +4 -0
- package/package.json +1 -1
|
@@ -153,6 +153,12 @@ export interface HiveDetailPostProps {
|
|
|
153
153
|
giphyApiKey?: string;
|
|
154
154
|
templateToken?: string;
|
|
155
155
|
templateApiBaseUrl?: string;
|
|
156
|
+
/** Forwarded to every DecentMemes picker in the comment composers so the
|
|
157
|
+
* widget assigns the 1% frontend beneficiary slot. Pass your Hive account
|
|
158
|
+
* (e.g. `'hivesuite.app'`) to opt in; omit to skip the slot. */
|
|
159
|
+
decentMemesAppAccount?: string;
|
|
160
|
+
/** Forwarded to DecentMemes pickers as `frontendInit.theme` / `setTheme`. */
|
|
161
|
+
decentMemesTheme?: 'light' | 'dark';
|
|
156
162
|
/** Array of usernames whose comments should be hidden from the current user's view. */
|
|
157
163
|
reportedAuthors?: string[];
|
|
158
164
|
/** Array of {author, permlink} posts/comments to hide from the current user's view. */
|
|
@@ -218,5 +224,5 @@ export interface HiveDetailPostProps {
|
|
|
218
224
|
* page will then re-render with the new language. */
|
|
219
225
|
onSelectLanguage?: (code: string) => void;
|
|
220
226
|
}
|
|
221
|
-
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, }: HiveDetailPostProps): import("react/jsx-runtime").JSX.Element;
|
|
227
|
+
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, }: HiveDetailPostProps): import("react/jsx-runtime").JSX.Element;
|
|
222
228
|
export default HiveDetailPost;
|
|
@@ -77,6 +77,11 @@ interface InlineCommentItemProps {
|
|
|
77
77
|
ipfsGateway?: string;
|
|
78
78
|
};
|
|
79
79
|
parentTags?: string[];
|
|
80
|
+
/** Forwarded to every DecentMemes picker in this item's reply composers
|
|
81
|
+
* so the widget assigns the 1% frontend beneficiary slot. */
|
|
82
|
+
decentMemesAppAccount?: string;
|
|
83
|
+
/** Forwarded to DecentMemes pickers as `frontendInit.theme` / `setTheme`. */
|
|
84
|
+
decentMemesTheme?: 'light' | 'dark';
|
|
80
85
|
}
|
|
81
|
-
export default function InlineCommentItem({ comment, allComments, onReply, onCancelReply, onCommentSubmit, activeReplyKey, currentUser, token, depth, onVotedRefresh, onClickCommentUpvote, ecencyToken, threeSpeakApiKey, giphyApiKey, templateToken, templateApiBaseUrl, hiveIconUrl, onShareComment, onTipComment, onReportComment, onToggleCommentBookmark, isCommentBookmarked, mentionSeedAccounts, onEditComment, onDeleteComment, onNavigateToPost, onUserClick, defaultReward, defaultBeneficiaries, beneficiaryFavorites, defaultVotePercent, voteWeightStep, allowLandscapeVideos, awaitingWalletApproval, renderOptions, parentTags, }: InlineCommentItemProps): import("react/jsx-runtime").JSX.Element;
|
|
86
|
+
export default function InlineCommentItem({ comment, allComments, onReply, onCancelReply, onCommentSubmit, activeReplyKey, currentUser, token, depth, onVotedRefresh, onClickCommentUpvote, ecencyToken, threeSpeakApiKey, giphyApiKey, templateToken, templateApiBaseUrl, hiveIconUrl, onShareComment, onTipComment, onReportComment, onToggleCommentBookmark, isCommentBookmarked, mentionSeedAccounts, onEditComment, onDeleteComment, onNavigateToPost, onUserClick, defaultReward, defaultBeneficiaries, beneficiaryFavorites, defaultVotePercent, voteWeightStep, allowLandscapeVideos, awaitingWalletApproval, renderOptions, parentTags, decentMemesAppAccount, decentMemesTheme, }: InlineCommentItemProps): import("react/jsx-runtime").JSX.Element;
|
|
82
87
|
export {};
|
|
@@ -79,8 +79,14 @@ interface InlineCommentSectionProps {
|
|
|
79
79
|
onDeleteComment?: (author: string, permlink: string) => void;
|
|
80
80
|
/** Intercept intra-body Hive post links in comment bodies. */
|
|
81
81
|
onNavigateToPost?: (author: string, permlink: string) => void;
|
|
82
|
-
/**
|
|
82
|
+
/** Called when an intra-body Hive profile links in comment bodies. */
|
|
83
83
|
onUserClick?: (username: string) => void;
|
|
84
|
+
/** Forwarded to every DecentMemes picker in this section so the widget
|
|
85
|
+
* assigns the 1% frontend beneficiary slot. Pass your Hive account name
|
|
86
|
+
* (e.g. `'hivesuite.app'`) to opt in. Omit to skip the slot. */
|
|
87
|
+
decentMemesAppAccount?: string;
|
|
88
|
+
/** Forwarded to DecentMemes pickers as `frontendInit.theme` / `setTheme`. */
|
|
89
|
+
decentMemesTheme?: 'light' | 'dark';
|
|
84
90
|
}
|
|
85
|
-
export default function InlineCommentSection({ author, permlink, currentUser, token, onSubmitComment, onClickCommentUpvote, ecencyToken, threeSpeakApiKey, giphyApiKey, templateToken, templateApiBaseUrl, reportedAuthors, reportedPosts, hiveIconUrl, onShareComment, onTipComment, onReportComment, onToggleCommentBookmark, isCommentBookmarked, mentionSeedAccounts, onEditComment, onDeleteComment, onNavigateToPost, onUserClick, showVoteButton, alreadyVoted, parentTags, defaultReward, defaultBeneficiaries, beneficiaryFavorites, defaultVotePercent, voteWeightStep, allowLandscapeVideos, awaitingWalletApproval, renderOptions, }: InlineCommentSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
91
|
+
export default function InlineCommentSection({ author, permlink, currentUser, token, onSubmitComment, onClickCommentUpvote, ecencyToken, threeSpeakApiKey, giphyApiKey, templateToken, templateApiBaseUrl, reportedAuthors, reportedPosts, hiveIconUrl, onShareComment, onTipComment, onReportComment, onToggleCommentBookmark, isCommentBookmarked, mentionSeedAccounts, onEditComment, onDeleteComment, onNavigateToPost, onUserClick, showVoteButton, alreadyVoted, parentTags, defaultReward, defaultBeneficiaries, beneficiaryFavorites, defaultVotePercent, voteWeightStep, allowLandscapeVideos, awaitingWalletApproval, renderOptions, decentMemesAppAccount, decentMemesTheme, }: InlineCommentSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
86
92
|
export {};
|