hive-react-kit 1.0.12 → 1.0.14

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.
@@ -50,6 +50,10 @@ export interface BlogPostListProps {
50
50
  voteWeightStep?: number;
51
51
  /** Allow landscape video uploads in the inline comment composer. */
52
52
  allowLandscapeVideos?: boolean;
53
+ /** Surface a blinking "Open Keychain App & Approve" hint on each
54
+ * card's vote slider while a broadcast is in flight. Set when the
55
+ * logged-in user is on Keychain / HiveAuth / PeakVault. */
56
+ awaitingWalletApproval?: boolean;
53
57
  /** Default reward routing for inline comment composers. */
54
58
  defaultReward?: RewardOption;
55
59
  /** Collapse the per-card secondary actions (reblog · share · tip ·
@@ -59,6 +59,11 @@ export interface HiveDetailPostProps {
59
59
  * acceptable (e.g. hivesuite).
60
60
  */
61
61
  allowLandscapeVideos?: boolean;
62
+ /** When true, the post's vote slider surfaces a blinking
63
+ * "Open Keychain App & Approve" hint while a broadcast is in
64
+ * flight. Set this when the logged-in user is on a wallet
65
+ * provider (Keychain, HiveAuth, PeakVault). */
66
+ awaitingWalletApproval?: boolean;
62
67
  /**
63
68
  * Override the Hive content renderer's link-generating functions so the
64
69
  * rendered `<a>` URLs route into your app instead of an external Hive
@@ -145,5 +150,5 @@ export interface HiveDetailPostProps {
145
150
  /** Called when user clicks "View parent post" — navigate to the parent post. */
146
151
  onNavigateToPost?: (author: string, permlink: string) => void;
147
152
  }
148
- export declare function HiveDetailPost({ author, permlink, currentUser, onUpvote, onSubmitComment, onClickCommentUpvote, onReblog, onShare, onTip, onReport, onEdit, onShareComment, onTipComment, onReportComment, onEditComment, ecencyToken, threeSpeakApiKey, giphyApiKey, templateToken, templateApiBaseUrl, reportedAuthors, reportedPosts, hiveIconUrl, backgroundColor, onBack, onUserClick, onNavigateToPost, onVotePoll, showVoteButton, processBody, defaultReward, defaultBeneficiaries, beneficiaryFavorites, defaultVotePercent, voteWeightStep, allowLandscapeVideos, renderOptions, }: HiveDetailPostProps): import("react/jsx-runtime").JSX.Element;
153
+ export declare function HiveDetailPost({ author, permlink, currentUser, onUpvote, onSubmitComment, onClickCommentUpvote, onReblog, onShare, onTip, onReport, onEdit, onShareComment, onTipComment, onReportComment, onEditComment, ecencyToken, threeSpeakApiKey, giphyApiKey, templateToken, templateApiBaseUrl, reportedAuthors, reportedPosts, hiveIconUrl, backgroundColor, onBack, onUserClick, onNavigateToPost, onVotePoll, showVoteButton, processBody, defaultReward, defaultBeneficiaries, beneficiaryFavorites, defaultVotePercent, voteWeightStep, allowLandscapeVideos, renderOptions, awaitingWalletApproval, }: HiveDetailPostProps): import("react/jsx-runtime").JSX.Element;
149
154
  export default HiveDetailPost;
@@ -1,4 +1,4 @@
1
- export declare function VoteSlider({ author, permlink, defaultValue, step, onUpvote, onCancel, }: {
1
+ export declare function VoteSlider({ author, permlink, defaultValue, step, onUpvote, onCancel, awaitingWalletApproval, walletApprovalLabel, }: {
2
2
  author: string;
3
3
  permlink: string;
4
4
  defaultValue?: number;
@@ -6,4 +6,11 @@ export declare function VoteSlider({ author, permlink, defaultValue, step, onUpv
6
6
  step?: number;
7
7
  onUpvote: (percent: number) => Promise<void> | void;
8
8
  onCancel: () => void;
9
+ /** Set true when the logged-in user is on a wallet provider
10
+ * (Keychain, HiveAuth, PeakVault). While the broadcast is in
11
+ * flight the slider surfaces a blinking "Open Keychain App &
12
+ * Approve" hint so the user knows to switch apps to authorize. */
13
+ awaitingWalletApproval?: boolean;
14
+ /** Override for the wallet-approval hint text. */
15
+ walletApprovalLabel?: string;
9
16
  }): import("react/jsx-runtime").JSX.Element;
@@ -49,6 +49,11 @@ export interface PostActionButtonProps {
49
49
  voteWeightStep?: number;
50
50
  /** Allow landscape videos in the embedded comment composer's uploader. Default false. */
51
51
  allowLandscapeVideos?: boolean;
52
+ /** When true, the vote slider + reply composer surface a blinking
53
+ * "Open Keychain App & Approve" hint while a broadcast is in
54
+ * flight. Set this when the logged-in user is on a wallet
55
+ * provider (Keychain, HiveAuth, PeakVault). */
56
+ awaitingWalletApproval?: boolean;
52
57
  /** Called when comment button is clicked (e.g. open comments). */
53
58
  onComments?: () => void;
54
59
  /** Called when the Edit action is clicked. Pass only when the current
@@ -100,5 +105,5 @@ export interface PostActionButtonProps {
100
105
  * polls, community detail) where there isn't room for four icons. */
101
106
  actionsAsMenu?: boolean;
102
107
  }
103
- export declare function PostActionButton({ author, permlink, currentUser: currentUserProp, hiveValue, hiveIconUrl, payoutTooltip, payoutDetails, initialVotes, initialCommentsCount, onUpvote, onSubmitComment, onComments, onEdit, onReblog, onShare, onTip, onReport, onClickCommentUpvote, ecencyToken, threeSpeakApiKey, giphyApiKey, templateToken, templateApiBaseUrl, disableCommentsModal, onClickCommentIcon, onClickCommentCount, hasCommented, myReplyKey, showVoteButton, parentTags, defaultReward, defaultBeneficiaries, beneficiaryFavorites, defaultVotePercent, voteWeightStep, allowLandscapeVideos, actionsAsMenu, }: PostActionButtonProps): import("react/jsx-runtime").JSX.Element;
108
+ export declare function PostActionButton({ author, permlink, currentUser: currentUserProp, hiveValue, hiveIconUrl, payoutTooltip, payoutDetails, initialVotes, initialCommentsCount, onUpvote, onSubmitComment, onComments, onEdit, onReblog, onShare, onTip, onReport, onClickCommentUpvote, ecencyToken, threeSpeakApiKey, giphyApiKey, templateToken, templateApiBaseUrl, disableCommentsModal, onClickCommentIcon, onClickCommentCount, hasCommented, myReplyKey, showVoteButton, parentTags, defaultReward, defaultBeneficiaries, beneficiaryFavorites, defaultVotePercent, voteWeightStep, allowLandscapeVideos, actionsAsMenu, awaitingWalletApproval, }: PostActionButtonProps): import("react/jsx-runtime").JSX.Element;
104
109
  export default PostActionButton;
@@ -43,6 +43,10 @@ interface CommentsModalProps {
43
43
  voteWeightStep?: number;
44
44
  /** Allow landscape videos in the comment composer. Default false. */
45
45
  allowLandscapeVideos?: boolean;
46
+ /** Surface a blinking "Open Keychain App & Approve" hint in the
47
+ * comment composer while a broadcast is in flight. Set when the
48
+ * logged-in user is on Keychain / HiveAuth / PeakVault. */
49
+ awaitingWalletApproval?: boolean;
46
50
  }
47
- declare const CommentsModal: ({ author, permlink, onClose, currentUser, token, onClickCommentUpvote, onClickCommentReply, onClickUpvoteButton, onSubmitComment, ecencyToken, threeSpeakApiKey, giphyApiKey, templateToken, templateApiBaseUrl, showVoteButton, parentTags, defaultReward, defaultBeneficiaries, beneficiaryFavorites, defaultVotePercent, voteWeightStep, allowLandscapeVideos }: CommentsModalProps) => import("react/jsx-runtime").JSX.Element;
51
+ declare const CommentsModal: ({ author, permlink, onClose, currentUser, token, onClickCommentUpvote, onClickCommentReply, onClickUpvoteButton, onSubmitComment, ecencyToken, threeSpeakApiKey, giphyApiKey, templateToken, templateApiBaseUrl, showVoteButton, parentTags, defaultReward, defaultBeneficiaries, beneficiaryFavorites, defaultVotePercent, voteWeightStep, allowLandscapeVideos, awaitingWalletApproval }: CommentsModalProps) => import("react/jsx-runtime").JSX.Element;
48
52
  export default CommentsModal;
@@ -24,6 +24,10 @@ export interface CommunityDetailProps {
24
24
  defaultVotePercent?: number;
25
25
  voteWeightStep?: number;
26
26
  allowLandscapeVideos?: boolean;
27
+ /** Forwarded to the embedded <BlogPostList/> — when true, each
28
+ * card's vote slider surfaces a blinking "Open Keychain App &
29
+ * Approve" hint while a broadcast is in flight. */
30
+ awaitingWalletApproval?: boolean;
27
31
  defaultReward?: RewardOption;
28
32
  /** Collapse the per-post secondary actions (reblog · share · tip ·
29
33
  * flag) into a single 3-dot kebab menu inside the embedded
@@ -47,5 +51,5 @@ export interface CommunityDetailProps {
47
51
  onShare?: () => void;
48
52
  onRss?: () => void;
49
53
  }
50
- declare const CommunityDetail: ({ communityId, currentUser, onBack, onUserClick, onPostClick, onCommentClick, onUpvote, onSubmitComment, onClickCommentUpvote, onReblog, onTip, onSharePost, onReportPost, ecencyToken, threeSpeakApiKey, giphyApiKey, templateToken, templateApiBaseUrl, defaultVotePercent, voteWeightStep, allowLandscapeVideos, defaultReward, actionsAsMenu, onShare, onRss, loadCommunitySnaps: _loadCommunitySnaps, reportedAuthors, reportedPosts, }: CommunityDetailProps) => import("react/jsx-runtime").JSX.Element;
54
+ declare const CommunityDetail: ({ communityId, currentUser, onBack, onUserClick, onPostClick, onCommentClick, onUpvote, onSubmitComment, onClickCommentUpvote, onReblog, onTip, onSharePost, onReportPost, ecencyToken, threeSpeakApiKey, giphyApiKey, templateToken, templateApiBaseUrl, defaultVotePercent, voteWeightStep, allowLandscapeVideos, awaitingWalletApproval, defaultReward, actionsAsMenu, onShare, onRss, loadCommunitySnaps: _loadCommunitySnaps, reportedAuthors, reportedPosts, }: CommunityDetailProps) => import("react/jsx-runtime").JSX.Element;
51
55
  export default CommunityDetail;
@@ -45,6 +45,10 @@ export interface CommunitySnapsTabProps {
45
45
  defaultVotePercent?: number;
46
46
  voteWeightStep?: number;
47
47
  allowLandscapeVideos?: boolean;
48
+ /** Forwarded to the embedded <SnapsFeedView/> — when true, each
49
+ * snap card's vote slider surfaces a blinking "Open Keychain
50
+ * App & Approve" hint while a broadcast is in flight. */
51
+ awaitingWalletApproval?: boolean;
48
52
  defaultReward?: RewardOption;
49
53
  /** Per-card right-side header action menu slot. */
50
54
  renderHeaderActions?: (post: Post) => ReactNode;
@@ -65,6 +65,10 @@ export interface SnapsFeedCardProps {
65
65
  defaultVotePercent?: number;
66
66
  voteWeightStep?: number;
67
67
  allowLandscapeVideos?: boolean;
68
+ /** Blinking "Open Keychain App & Approve" hint on the vote slider
69
+ * while a broadcast is in flight. Set when the logged-in user is
70
+ * on Keychain / HiveAuth / PeakVault. */
71
+ awaitingWalletApproval?: boolean;
68
72
  defaultReward?: RewardOption;
69
73
  /** Optional render slot for header right-side actions (e.g. a kebab
70
74
  * menu with Edit / Delete / Flag). Receives the post so the host can
@@ -79,6 +79,10 @@ export interface SnapsFeedViewProps {
79
79
  defaultVotePercent?: number;
80
80
  voteWeightStep?: number;
81
81
  allowLandscapeVideos?: boolean;
82
+ /** Forwarded to each snap card's vote slider — when true, a
83
+ * blinking "Open Keychain App & Approve" hint is shown while a
84
+ * broadcast is in flight. */
85
+ awaitingWalletApproval?: boolean;
82
86
  defaultReward?: RewardOption;
83
87
  /** Optional top-row content rendered above the columns (e.g. a Compose FAB
84
88
  * trigger or filter dropdown). Sticky to the top of the viewport. */
@@ -100,5 +104,5 @@ export interface SnapsFeedViewProps {
100
104
  * headers stay visible via `sticky top-0`. Mobile is unaffected. */
101
105
  pageScroll?: boolean;
102
106
  }
103
- export declare function SnapsFeedView({ feeds, labels, avatars, defaultPrimary, currentUser, onUpvote, onSubmitComment, onClickCommentUpvote, onReblog, onTip, onSharePost, onCommentClick, onClickCommentIcon, onClickCommentCount, onReportPost, onEditSnap, onVotePoll, onUserClick, onPostClick, ecencyToken, threeSpeakApiKey, giphyApiKey, templateToken, templateApiBaseUrl, defaultVotePercent, voteWeightStep, allowLandscapeVideos, defaultReward, toolbar, footer, renderHeaderActions, actionsAsMenu, pageScroll, }: SnapsFeedViewProps): import("react/jsx-runtime").JSX.Element;
107
+ export declare function SnapsFeedView({ feeds, labels, avatars, defaultPrimary, currentUser, onUpvote, onSubmitComment, onClickCommentUpvote, onReblog, onTip, onSharePost, onCommentClick, onClickCommentIcon, onClickCommentCount, onReportPost, onEditSnap, onVotePoll, onUserClick, onPostClick, ecencyToken, threeSpeakApiKey, giphyApiKey, templateToken, templateApiBaseUrl, defaultVotePercent, voteWeightStep, allowLandscapeVideos, awaitingWalletApproval, defaultReward, toolbar, footer, renderHeaderActions, actionsAsMenu, pageScroll, }: SnapsFeedViewProps): import("react/jsx-runtime").JSX.Element;
104
108
  export default SnapsFeedView;
@@ -51,6 +51,10 @@ interface InlineCommentItemProps {
51
51
  voteWeightStep?: number;
52
52
  /** Allow landscape videos in this comment's reply composer. Default false. */
53
53
  allowLandscapeVideos?: boolean;
54
+ /** Blinking "Open Keychain App & Approve" hint shown in the reply
55
+ * composer while a broadcast is in flight. Set when the
56
+ * logged-in user is on Keychain / HiveAuth / PeakVault. */
57
+ awaitingWalletApproval?: boolean;
54
58
  /** Renderer URL overrides applied to the comment body. */
55
59
  renderOptions?: {
56
60
  userLinkUrlFn?: (username: string) => string;
@@ -59,5 +63,5 @@ interface InlineCommentItemProps {
59
63
  ipfsGateway?: string;
60
64
  };
61
65
  }
62
- export default function InlineCommentItem({ comment, allComments, onReply, onCancelReply, onCommentSubmit, activeReplyKey, currentUser, token, depth, onVotedRefresh, onClickCommentUpvote, ecencyToken, threeSpeakApiKey, giphyApiKey, templateToken, templateApiBaseUrl, hiveIconUrl, onShareComment, onTipComment, onReportComment, onEditComment, onNavigateToPost, onUserClick, defaultReward, defaultBeneficiaries, beneficiaryFavorites, defaultVotePercent, voteWeightStep, allowLandscapeVideos, renderOptions, }: InlineCommentItemProps): import("react/jsx-runtime").JSX.Element;
66
+ export default function InlineCommentItem({ comment, allComments, onReply, onCancelReply, onCommentSubmit, activeReplyKey, currentUser, token, depth, onVotedRefresh, onClickCommentUpvote, ecencyToken, threeSpeakApiKey, giphyApiKey, templateToken, templateApiBaseUrl, hiveIconUrl, onShareComment, onTipComment, onReportComment, onEditComment, onNavigateToPost, onUserClick, defaultReward, defaultBeneficiaries, beneficiaryFavorites, defaultVotePercent, voteWeightStep, allowLandscapeVideos, awaitingWalletApproval, renderOptions, }: InlineCommentItemProps): import("react/jsx-runtime").JSX.Element;
63
67
  export {};
@@ -27,6 +27,10 @@ interface InlineCommentSectionProps {
27
27
  voteWeightStep?: number;
28
28
  /** Allow landscape videos in every reply composer's video uploader. Default false. */
29
29
  allowLandscapeVideos?: boolean;
30
+ /** Forwarded to every reply composer's "Open Keychain App &
31
+ * Approve" blinking hint. Set when the logged-in user is on
32
+ * Keychain / HiveAuth / PeakVault. */
33
+ awaitingWalletApproval?: boolean;
30
34
  /** Renderer URL overrides applied to every comment body in this section. */
31
35
  renderOptions?: {
32
36
  userLinkUrlFn?: (username: string) => string;
@@ -67,5 +71,5 @@ interface InlineCommentSectionProps {
67
71
  /** Intercept intra-body Hive profile links in comment bodies. */
68
72
  onUserClick?: (username: string) => void;
69
73
  }
70
- export default function InlineCommentSection({ author, permlink, currentUser, token, onSubmitComment, onClickCommentUpvote, ecencyToken, threeSpeakApiKey, giphyApiKey, templateToken, templateApiBaseUrl, reportedAuthors, reportedPosts, hiveIconUrl, onShareComment, onTipComment, onReportComment, onEditComment, onNavigateToPost, onUserClick, showVoteButton, alreadyVoted, parentTags, defaultReward, defaultBeneficiaries, beneficiaryFavorites, defaultVotePercent, voteWeightStep, allowLandscapeVideos, renderOptions, }: InlineCommentSectionProps): import("react/jsx-runtime").JSX.Element;
74
+ export default function InlineCommentSection({ author, permlink, currentUser, token, onSubmitComment, onClickCommentUpvote, ecencyToken, threeSpeakApiKey, giphyApiKey, templateToken, templateApiBaseUrl, reportedAuthors, reportedPosts, hiveIconUrl, onShareComment, onTipComment, onReportComment, onEditComment, onNavigateToPost, onUserClick, showVoteButton, alreadyVoted, parentTags, defaultReward, defaultBeneficiaries, beneficiaryFavorites, defaultVotePercent, voteWeightStep, allowLandscapeVideos, awaitingWalletApproval, renderOptions, }: InlineCommentSectionProps): import("react/jsx-runtime").JSX.Element;
71
75
  export {};
@@ -53,6 +53,9 @@ export interface ProfileSnapsTabProps {
53
53
  defaultVotePercent?: number;
54
54
  voteWeightStep?: number;
55
55
  allowLandscapeVideos?: boolean;
56
+ /** Forwarded to every <SnapsFeedCard/>'s vote slider for the
57
+ * blinking wallet-approval hint. */
58
+ awaitingWalletApproval?: boolean;
56
59
  defaultReward?: RewardOption;
57
60
  /** Per-card right-side header action menu slot (e.g. Edit / Flag). */
58
61
  renderHeaderActions?: (post: Post) => ReactNode;
@@ -127,6 +127,11 @@ export interface UserDetailProfileProps {
127
127
  /** Allow landscape videos in every embedded comment composer on this profile.
128
128
  * Default false (portrait-only, matches hSnaps Moments contract). */
129
129
  allowLandscapeVideos?: boolean;
130
+ /** Forwarded to every post card's vote slider and reply composer
131
+ * — when true, a blinking "Open Keychain App & Approve" hint is
132
+ * shown while a broadcast is in flight. Set when the logged-in
133
+ * user is on Keychain / HiveAuth / PeakVault. */
134
+ awaitingWalletApproval?: boolean;
130
135
  /** Per-card right-side header action menu (Edit / Delete / Flag) for the
131
136
  * Snaps tab. Forwarded into <SnapsFeedView/>. */
132
137
  renderSnapHeaderActions?: (post: Post) => React.ReactNode;