hive-react-kit 1.9.5 → 1.9.6

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.
@@ -35,6 +35,8 @@ export interface BlogPostListProps {
35
35
  onSubmitComment?: (parentAuthor: string, parentPermlink: string, body: string) => void | Promise<void>;
36
36
  onClickCommentUpvote?: (author: string, permlink: string, percent: number) => void | Promise<void>;
37
37
  onReblog?: (author: string, permlink: string) => void;
38
+ isPostReblogged?: (author: string, permlink: string) => boolean;
39
+ onCheckReblogged?: (author: string, permlink: string) => void;
38
40
  onTip?: (author: string, permlink: string) => void;
39
41
  onSharePost?: (author: string, permlink: string) => void;
40
42
  onCommentClick?: (author: string, permlink: string) => void;
@@ -85,6 +85,7 @@ export interface HiveDetailPostProps {
85
85
  };
86
86
  onClickCommentUpvote?: (author: string, permlink: string, percent: number) => void | Promise<void>;
87
87
  onReblog?: () => void;
88
+ isReblogged?: boolean;
88
89
  onShare?: () => void;
89
90
  onTip?: () => void;
90
91
  onReport?: () => void;
@@ -217,5 +218,5 @@ export interface HiveDetailPostProps {
217
218
  * page will then re-render with the new language. */
218
219
  onSelectLanguage?: (code: string) => void;
219
220
  }
220
- export declare function HiveDetailPost({ author, permlink, currentUser, onUpvote, onSubmitComment, onClickCommentUpvote, onReblog, 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;
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;
221
222
  export default HiveDetailPost;
@@ -4,6 +4,7 @@ export interface MoreActionsMenuProps {
4
4
  onEdit?: () => void;
5
5
  /** Show the Reblog item. */
6
6
  onReblog?: () => void;
7
+ isReblogged?: boolean;
7
8
  /** Show the Re-snap item. Re-snap broadcasts a new snap whose body is
8
9
  * a URL pointing back at this snap — receivers render the original
9
10
  * inline with a "RE-SNAP" badge. */
@@ -33,5 +34,5 @@ export interface MoreActionsMenuProps {
33
34
  /** aria-label for the trigger. */
34
35
  ariaLabel?: string;
35
36
  }
36
- export declare function MoreActionsMenu({ onEdit, onReblog, onReSnap, onShare, onTip, onReport, onToggleBookmark, isBookmarked, onPin, onUnpin, onDelete, buttonClassName, ariaLabel, }: MoreActionsMenuProps): import("react/jsx-runtime").JSX.Element;
37
+ export declare function MoreActionsMenu({ onEdit, onReblog, isReblogged, onReSnap, onShare, onTip, onReport, onToggleBookmark, isBookmarked, onPin, onUnpin, onDelete, buttonClassName, ariaLabel, }: MoreActionsMenuProps): import("react/jsx-runtime").JSX.Element;
37
38
  export default MoreActionsMenu;
@@ -73,6 +73,8 @@ export interface PostActionButtonProps {
73
73
  onEdit?: () => void;
74
74
  /** Called when reblog is clicked (when logged in). */
75
75
  onReblog?: () => void;
76
+ isReblogged?: boolean;
77
+ onCheckReblogged?: (author: string, permlink: string) => void;
76
78
  /** Called when re-snap is clicked (when logged in). Re-snap appends
77
79
  * a new snap to the latest peak.snaps container whose body is a URL
78
80
  * to the original snap — receivers render the original inline. */
@@ -154,5 +156,5 @@ export interface PostActionButtonProps {
154
156
  * polls, community detail) where there isn't room for four icons. */
155
157
  actionsAsMenu?: boolean;
156
158
  }
157
- export declare function PostActionButton({ author, permlink, currentUser: currentUserProp, hiveValue, hiveIconUrl, payoutTooltip, payoutDetails, initialVotes, initialVoteCount, initialFlagWeight, initialCommentsCount, onUpvote, onSubmitComment, onComments, onEdit, onReblog, onReSnap, onShare, onTip, onReport, onToggleBookmark, isBookmarked, onDelete, onPin, onUnpin, onClickCommentUpvote, onUserClick, getUserUrl, ecencyToken, threeSpeakApiKey, giphyApiKey, templateToken, templateApiBaseUrl, disableCommentsModal, onClickCommentIcon, onClickCommentCount, hasCommented, myReplyKey, showVoteButton, parentTags, defaultReward, defaultBeneficiaries, beneficiaryFavorites, defaultVotePercent, voteWeightStep, allowLandscapeVideos, actionsAsMenu, awaitingWalletApproval, postCreatedAt, size, }: PostActionButtonProps): import("react/jsx-runtime").JSX.Element;
159
+ export declare function PostActionButton({ author, permlink, currentUser: currentUserProp, hiveValue, hiveIconUrl, payoutTooltip, payoutDetails, initialVotes, initialVoteCount, initialFlagWeight, initialCommentsCount, onUpvote, onSubmitComment, onComments, onEdit, onReblog, isReblogged, onCheckReblogged, onReSnap, onShare, onTip, onReport, onToggleBookmark, isBookmarked, onDelete, onPin, onUnpin, onClickCommentUpvote, onUserClick, getUserUrl, ecencyToken, threeSpeakApiKey, giphyApiKey, templateToken, templateApiBaseUrl, disableCommentsModal, onClickCommentIcon, onClickCommentCount, hasCommented, myReplyKey, showVoteButton, parentTags, defaultReward, defaultBeneficiaries, beneficiaryFavorites, defaultVotePercent, voteWeightStep, allowLandscapeVideos, actionsAsMenu, awaitingWalletApproval, postCreatedAt, size, }: PostActionButtonProps): import("react/jsx-runtime").JSX.Element;
158
160
  export default PostActionButton;
@@ -18,6 +18,8 @@ export interface CommunityDetailProps {
18
18
  onSubmitComment?: (parentAuthor: string, parentPermlink: string, body: string) => void | Promise<void>;
19
19
  onClickCommentUpvote?: (author: string, permlink: string, percent: number) => void | Promise<void>;
20
20
  onReblog?: (author: string, permlink: string) => void;
21
+ isPostReblogged?: (author: string, permlink: string) => boolean;
22
+ onCheckReblogged?: (author: string, permlink: string) => void;
21
23
  onTip?: (author: string, permlink: string) => void;
22
24
  onSharePost?: (author: string, permlink: string) => void;
23
25
  onReportPost?: (author: string, permlink: string) => void;
@@ -118,5 +120,5 @@ export interface CommunityDetailProps {
118
120
  * the view starts at the top, matching forward navigation. */
119
121
  shouldRestoreScroll?: boolean;
120
122
  }
121
- declare const CommunityDetail: ({ communityId, currentUser, onBack, onUserClick, onPostClick, getPostUrl, getUserUrl, getTagUrl, getCommunityUrl, onCommentClick, onUpvote, onSubmitComment, onClickCommentUpvote, onReblog, onTip, onSharePost, onReportPost, onToggleBookmark, isPostBookmarked, onToggleCommunityBookmark, isCommunityBookmarked, onDeletePost, canPin, onPinPost, onUnpinPost, onVotePoll, ecencyToken, threeSpeakApiKey, giphyApiKey, templateToken, templateApiBaseUrl, defaultVotePercent, voteWeightStep, allowLandscapeVideos, awaitingWalletApproval, defaultReward, actionsAsMenu, onShare, onRss, isSubscribed: controlledIsSubscribed, onToggleSubscribe, subscribePending, canManage, onManageRoles, onOpenSettings, loadCommunitySnaps: _loadCommunitySnaps, reportedAuthors, reportedPosts, activeTab: controlledActiveTab, onActiveTabChange, postSort: controlledPostSort, onPostSortChange, shouldRestoreScroll, }: CommunityDetailProps) => import("react/jsx-runtime").JSX.Element;
123
+ declare const CommunityDetail: ({ communityId, currentUser, onBack, onUserClick, onPostClick, getPostUrl, getUserUrl, getTagUrl, getCommunityUrl, onCommentClick, onUpvote, onSubmitComment, onClickCommentUpvote, onReblog, isPostReblogged, onCheckReblogged, onTip, onSharePost, onReportPost, onToggleBookmark, isPostBookmarked, onToggleCommunityBookmark, isCommunityBookmarked, onDeletePost, canPin, onPinPost, onUnpinPost, onVotePoll, ecencyToken, threeSpeakApiKey, giphyApiKey, templateToken, templateApiBaseUrl, defaultVotePercent, voteWeightStep, allowLandscapeVideos, awaitingWalletApproval, defaultReward, actionsAsMenu, onShare, onRss, isSubscribed: controlledIsSubscribed, onToggleSubscribe, subscribePending, canManage, onManageRoles, onOpenSettings, loadCommunitySnaps: _loadCommunitySnaps, reportedAuthors, reportedPosts, activeTab: controlledActiveTab, onActiveTabChange, postSort: controlledPostSort, onPostSortChange, shouldRestoreScroll, }: CommunityDetailProps) => import("react/jsx-runtime").JSX.Element;
122
124
  export default CommunityDetail;
@@ -29,6 +29,8 @@ export interface CommunitySnapsTabProps {
29
29
  onSubmitComment?: (parentAuthor: string, parentPermlink: string, body: string) => void | Promise<void>;
30
30
  onClickCommentUpvote?: (author: string, permlink: string, percent: number) => void | Promise<void>;
31
31
  onReblog?: (author: string, permlink: string) => void;
32
+ isPostReblogged?: (author: string, permlink: string) => boolean;
33
+ onCheckReblogged?: (author: string, permlink: string) => void;
32
34
  onTip?: (author: string, permlink: string) => void;
33
35
  onSharePost?: (author: string, permlink: string) => void;
34
36
  onCommentClick?: (author: string, permlink: string) => void;
@@ -25,6 +25,8 @@ export interface SnapsFeedCardProps {
25
25
  onSubmitComment?: (parentAuthor: string, parentPermlink: string, body: string) => void | Promise<void>;
26
26
  onClickCommentUpvote?: (author: string, permlink: string, percent: number) => void | Promise<void>;
27
27
  onReblog?: (author: string, permlink: string) => void;
28
+ isPostReblogged?: (author: string, permlink: string) => boolean;
29
+ onCheckReblogged?: (author: string, permlink: string) => void;
28
30
  /** Called when the viewer taps "Re-snap" in the snap's more menu.
29
31
  * Host implements the broadcast — body is a URL pointing at the
30
32
  * original snap (`http(s)://<frontend>/@<author>/<permlink>`) so
@@ -45,6 +45,8 @@ export interface SnapsFeedViewProps {
45
45
  onSubmitComment?: (parentAuthor: string, parentPermlink: string, body: string) => void | Promise<void>;
46
46
  onClickCommentUpvote?: (author: string, permlink: string, percent: number) => void | Promise<void>;
47
47
  onReblog?: (author: string, permlink: string) => void;
48
+ isPostReblogged?: (author: string, permlink: string) => boolean;
49
+ onCheckReblogged?: (author: string, permlink: string) => void;
48
50
  /** Called when the viewer taps "Re-snap" in a snap's more menu.
49
51
  * Host implements the broadcast — see SnapsFeedCard's `onReSnap`.
50
52
  * The `parentTags` argument carries the original snap's
@@ -126,5 +128,5 @@ export interface SnapsFeedViewProps {
126
128
  * headers stay visible via `sticky top-0`. Mobile is unaffected. */
127
129
  pageScroll?: boolean;
128
130
  }
129
- export declare function SnapsFeedView({ feeds, labels, avatars, defaultPrimary, currentUser, onUpvote, onSubmitComment, onClickCommentUpvote, onReblog, onReSnap, onTip, onSharePost, onCommentClick, onClickCommentIcon, onClickCommentCount, onReportPost, onToggleBookmark, isPostBookmarked, onDeletePost, onEditSnap, onVotePoll, onUserClick, onPostClick, getPostUrl, getUserUrl, getTagUrl, getCommunityUrl, ecencyToken, threeSpeakApiKey, giphyApiKey, templateToken, templateApiBaseUrl, defaultVotePercent, voteWeightStep, allowLandscapeVideos, awaitingWalletApproval, defaultReward, toolbar, footer, renderHeaderActions, actionsAsMenu, pageScroll, }: SnapsFeedViewProps): import("react/jsx-runtime").JSX.Element;
131
+ export declare function SnapsFeedView({ feeds, labels, avatars, defaultPrimary, currentUser, onUpvote, onSubmitComment, onClickCommentUpvote, onReblog, isPostReblogged, onCheckReblogged, onReSnap, onTip, onSharePost, onCommentClick, onClickCommentIcon, onClickCommentCount, onReportPost, onToggleBookmark, isPostBookmarked, onDeletePost, onEditSnap, onVotePoll, onUserClick, onPostClick, getPostUrl, getUserUrl, getTagUrl, getCommunityUrl, ecencyToken, threeSpeakApiKey, giphyApiKey, templateToken, templateApiBaseUrl, defaultVotePercent, voteWeightStep, allowLandscapeVideos, awaitingWalletApproval, defaultReward, toolbar, footer, renderHeaderActions, actionsAsMenu, pageScroll, }: SnapsFeedViewProps): import("react/jsx-runtime").JSX.Element;
130
132
  export default SnapsFeedView;
@@ -18,6 +18,8 @@ export interface PollListItemProps {
18
18
  onSubmitComment?: (parentAuthor: string, parentPermlink: string, body: string) => void | Promise<void>;
19
19
  onClickCommentUpvote?: (author: string, permlink: string, percent: number) => void | Promise<void>;
20
20
  onReblog?: (author: string, permlink: string) => void;
21
+ isPostReblogged?: (author: string, permlink: string) => boolean;
22
+ onCheckReblogged?: (author: string, permlink: string) => void;
21
23
  onTip?: (author: string, permlink: string) => void;
22
24
  onSharePost?: (author: string, permlink: string) => void;
23
25
  onCommentClick?: (author: string, permlink: string) => void;
@@ -22,6 +22,8 @@ export interface ProfileSnapsTabProps {
22
22
  onSubmitComment?: (parentAuthor: string, parentPermlink: string, body: string) => void | Promise<void>;
23
23
  onClickCommentUpvote?: (author: string, permlink: string, percent: number) => void | Promise<void>;
24
24
  onReblog?: (author: string, permlink: string) => void;
25
+ isPostReblogged?: (author: string, permlink: string) => boolean;
26
+ onCheckReblogged?: (author: string, permlink: string) => void;
25
27
  onTip?: (author: string, permlink: string) => void;
26
28
  onSharePost?: (author: string, permlink: string) => void;
27
29
  onCommentClick?: (author: string, permlink: string) => void;
@@ -61,6 +61,8 @@ export interface UserDetailProfileProps {
61
61
  onSubmitComment?: (parentAuthor: string, parentPermlink: string, body: string) => void | Promise<void>;
62
62
  onClickCommentUpvote?: (author: string, permlink: string, percent: number) => void | Promise<void>;
63
63
  onReblog?: (author: string, permlink: string) => void;
64
+ isPostReblogged?: (author: string, permlink: string) => boolean;
65
+ onCheckReblogged?: (author: string, permlink: string) => void;
64
66
  onTip?: (author: string, permlink: string) => void;
65
67
  onReportPost?: (author: string, permlink: string, reason: string) => void | Promise<void>;
66
68
  /** Per-row bookmark toggle on every Blogs / Posts / Comments / Replies