hive-react-kit 1.6.4 → 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/build.css CHANGED
@@ -1105,6 +1105,9 @@
1105
1105
  .max-w-7xl {
1106
1106
  max-width: var(--container-7xl);
1107
1107
  }
1108
+ .max-w-\[55\%\] {
1109
+ max-width: 55%;
1110
+ }
1108
1111
  .max-w-\[220px\] {
1109
1112
  max-width: 220px;
1110
1113
  }
@@ -8,6 +8,13 @@ interface ActivityListProps {
8
8
  className?: string;
9
9
  onClickPermlink?: (author: string, permlink: string) => void;
10
10
  onSelectActivity?: (activity: ActivityListItem) => void;
11
+ /** The actual scroll container this list lives inside. When provided,
12
+ * infinite scroll attaches to it directly instead of guessing the
13
+ * nearest scrollable ancestor — the guess is unreliable in nested
14
+ * layouts (e.g. embedded in UserDetailProfile) where an inner
15
+ * `overflow-y-auto` wrapper grows to content height and never
16
+ * actually scrolls. */
17
+ scrollRootRef?: React.RefObject<HTMLElement | null>;
11
18
  }
12
19
  declare const ActivityList: React.FC<ActivityListProps>;
13
20
  export default ActivityList;
@@ -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 /
@@ -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
  /**