hive-react-kit 1.4.9 → 1.5.0

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.
@@ -178,8 +178,19 @@ export interface UserDetailProfileProps {
178
178
  /** Wire this on the consumer's own profile to surface an "Edit profile"
179
179
  * affordance over the avatar. Only invoked when
180
180
  * `currentUsername === username`. The consumer owns the modal /
181
- * account_update2 broadcast. */
181
+ * account_update2 broadcast.
182
+ *
183
+ * When this is set we also surface "Edit Profile" as the last entry
184
+ * in the header kebab on the owner's own profile so users have a
185
+ * second, more discoverable path in besides the avatar overlay. */
182
186
  onEditProfile?: () => void;
187
+ /** Open the consumer's posting-authority manager (grant / revoke
188
+ * posting/active auths to other Hive accounts). When provided, the
189
+ * header kebab on the *owner's own profile* gets a "Posting
190
+ * Authority" entry that fires this callback. The kit doesn't ship
191
+ * the modal — the consumer wires it (e.g. via aioha's
192
+ * `addAccountAuthority` / `removeAccountAuthority`). */
193
+ onPostingAuthority?: () => void;
183
194
  }
184
195
  type TabType = "blogs" | "posts" | "snaps" | "polls" | "comments" | "replies" | "activities" | "authorRewards" | "curationRewards" | "followers" | "following" | "wallet" | "votingPower" | "badges" | "witnessVotes" | "growth";
185
196
  declare const UserDetailProfile: React.FC<UserDetailProfileProps>;