hive-react-kit 1.6.5 → 1.6.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.
- package/dist/components/user/UserDetailProfile.d.ts +14 -0
- package/dist/i18n/messages.d.ts +1 -1
- package/dist/index.cjs.js +139 -139
- package/dist/index.esm.js +13148 -13118
- package/package.json +1 -1
|
@@ -193,6 +193,20 @@ export interface UserDetailProfileProps {
|
|
|
193
193
|
/** Per-card right-side header action menu (Edit / Delete / Flag) for the
|
|
194
194
|
* Snaps tab. Forwarded into <SnapsFeedView/>. */
|
|
195
195
|
renderSnapHeaderActions?: (post: Post) => React.ReactNode;
|
|
196
|
+
/** Renders the Hive Engine (layer-2 tokens) view shown via a sub-toggle
|
|
197
|
+
* inside the Wallet tab. The kit has no engine data layer, so the
|
|
198
|
+
* consumer supplies the UI; `isOwn` is true when the viewed profile is
|
|
199
|
+
* the logged-in user (gate transfers on it). When omitted the toggle
|
|
200
|
+
* and tokens view are not shown. */
|
|
201
|
+
renderEngineTokens?: (username: string, isOwn: boolean) => React.ReactNode;
|
|
202
|
+
/** Which Wallet sub-view to show: the native wallet or the Hive Engine
|
|
203
|
+
* tokens list. When paired with `onWalletViewChange` this becomes the
|
|
204
|
+
* controlled value (URL-driven); otherwise it's just the initial
|
|
205
|
+
* value and the toggle manages its own state. */
|
|
206
|
+
walletInitialView?: "wallet" | "tokens";
|
|
207
|
+
/** Fires when the user flips the Wallet/Tokens sub-toggle. Wire this to
|
|
208
|
+
* push the choice into the URL (`?wv=`) for query-param routing. */
|
|
209
|
+
onWalletViewChange?: (view: "wallet" | "tokens") => void;
|
|
196
210
|
/** Wire this on the consumer's own profile to surface an "Edit profile"
|
|
197
211
|
* affordance over the avatar. Only invoked when
|
|
198
212
|
* `currentUsername === username`. The consumer owns the modal /
|
package/dist/i18n/messages.d.ts
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* Missing keys for a non-English language fall back to the English entry,
|
|
16
16
|
* which is the source of truth for every label.
|
|
17
17
|
*/
|
|
18
|
-
export type KitMessageKey = "tab.blogs" | "tab.posts" | "tab.snaps" | "tab.polls" | "tab.comments" | "tab.replies" | "tab.activities" | "tab.authorRewards" | "tab.curationRewards" | "tab.growth" | "tab.followers" | "tab.following" | "tab.wallet" | "tab.votingPower" | "tab.badges" | "tab.witnessVotes" | "meta.followers" | "meta.following" | "meta.posts" | "action.follow" | "action.unfollow" | "action.ignoreAuthor" | "action.mute" | "action.unmute" | "action.reportUser" | "action.shareProfile" | "action.cancel" | "action.confirmIgnore" | "action.processing" | "modal.ignoreAuthorTitle" | "modal.ignoreAuthorBody" | "empty.noBlogs" | "empty.noPosts" | "empty.noSnaps" | "empty.noPolls" | "empty.noComments" | "empty.noReplies" | "empty.noFollowers" | "empty.notFollowing" | "empty.noBadges" | "empty.noWitnessVotes" | "empty.noPendingAuthor" | "empty.noPendingCuration" | "empty.curationHint" | "empty.votingPowerUnavailable" | "empty.userNotFound" | "status.active" | "status.ended" | "poll.selectAnOption" | "poll.selectUpTo" | "poll.changeYourVote" | "poll.selected" | "poll.submitVote" | "poll.submitVotes" | "poll.changeVote" | "poll.submitting" | "poll.voted" | "poll.voteChangesAllowed" | "poll.voter" | "poll.voters" | "poll.option" | "poll.options" | "poll.endsIn" | "common.translating" | "common.processing" | "common.fullyCharged" | "reward.pendingAuthor" | "reward.pendingCuration" | "reward.posts" | "reward.comments" | "reward.totalHbd" | "reward.totalHp" | "reward.avgEfficiency" | "reward.post" | "reward.comment" | "vp.upvotePower" | "vp.downvotePower" | "vp.resourceCredits";
|
|
18
|
+
export type KitMessageKey = "tab.blogs" | "tab.posts" | "tab.snaps" | "tab.polls" | "tab.comments" | "tab.replies" | "tab.activities" | "tab.authorRewards" | "tab.curationRewards" | "tab.growth" | "tab.followers" | "tab.following" | "tab.wallet" | "tab.engineTokens" | "tab.votingPower" | "tab.badges" | "tab.witnessVotes" | "meta.followers" | "meta.following" | "meta.posts" | "action.follow" | "action.unfollow" | "action.ignoreAuthor" | "action.mute" | "action.unmute" | "action.reportUser" | "action.shareProfile" | "action.cancel" | "action.confirmIgnore" | "action.processing" | "modal.ignoreAuthorTitle" | "modal.ignoreAuthorBody" | "empty.noBlogs" | "empty.noPosts" | "empty.noSnaps" | "empty.noPolls" | "empty.noComments" | "empty.noReplies" | "empty.noFollowers" | "empty.notFollowing" | "empty.noBadges" | "empty.noWitnessVotes" | "empty.noPendingAuthor" | "empty.noPendingCuration" | "empty.curationHint" | "empty.votingPowerUnavailable" | "empty.userNotFound" | "status.active" | "status.ended" | "poll.selectAnOption" | "poll.selectUpTo" | "poll.changeYourVote" | "poll.selected" | "poll.submitVote" | "poll.submitVotes" | "poll.changeVote" | "poll.submitting" | "poll.voted" | "poll.voteChangesAllowed" | "poll.voter" | "poll.voters" | "poll.option" | "poll.options" | "poll.endsIn" | "common.translating" | "common.processing" | "common.fullyCharged" | "reward.pendingAuthor" | "reward.pendingCuration" | "reward.posts" | "reward.comments" | "reward.totalHbd" | "reward.totalHp" | "reward.avgEfficiency" | "reward.post" | "reward.comment" | "vp.upvotePower" | "vp.downvotePower" | "vp.resourceCredits";
|
|
19
19
|
export type KitMessages = Partial<Record<KitMessageKey, string>>;
|
|
20
20
|
export declare const BUILTIN_MESSAGES: Record<string, Record<string, string>>;
|
|
21
21
|
/**
|