hive-react-kit 0.11.11 → 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.
- package/dist/components/BlogPostList.d.ts +4 -0
- package/dist/components/HiveDetailPost.d.ts +6 -1
- package/dist/components/VoteSlider.d.ts +8 -1
- package/dist/components/actionButtons/PostActionButton.d.ts +6 -1
- package/dist/components/comments/CommentsModal.d.ts +5 -1
- package/dist/components/community/CommunityDetail.d.ts +5 -1
- package/dist/components/community/CommunitySnapsTab.d.ts +4 -0
- package/dist/components/feed/SnapsFeedCard.d.ts +4 -0
- package/dist/components/feed/SnapsFeedView.d.ts +5 -1
- package/dist/components/inlineComments/InlineCommentItem.d.ts +5 -1
- package/dist/components/inlineComments/InlineCommentSection.d.ts +5 -1
- package/dist/components/user/KERatioBadge.d.ts +1 -1
- package/dist/components/user/ProfileSnapsTab.d.ts +3 -0
- package/dist/components/user/UserDetailProfile.d.ts +5 -0
- package/dist/index.cjs.js +176 -176
- package/dist/index.esm.js +15877 -15838
- package/dist/services/apiService.d.ts +1 -1
- package/dist/services/userService.d.ts +11 -8
- package/package.json +1 -1
|
@@ -46,7 +46,7 @@ declare class ApiService {
|
|
|
46
46
|
getCommentsList(author: string, permlink: string, observer?: string): Promise<Discussion[]>;
|
|
47
47
|
getMyVideos(authToken: string): Promise<ThreeSpeakVideo[]>;
|
|
48
48
|
getRankedPosts(sort?: PostSort, tag?: string, observer?: string, limit?: number, start_author?: string, start_permlink?: string): Promise<Post[]>;
|
|
49
|
-
getPostContent(author: string, permlink: string): Promise<Post | null>;
|
|
49
|
+
getPostContent(author: string, permlink: string, observer?: string): Promise<Post | null>;
|
|
50
50
|
}
|
|
51
51
|
export declare const apiService: ApiService;
|
|
52
52
|
export { server };
|
|
@@ -199,23 +199,26 @@ export interface GrowthAnalyticsResult {
|
|
|
199
199
|
}
|
|
200
200
|
export interface KERatioResult {
|
|
201
201
|
username: string;
|
|
202
|
-
/**
|
|
202
|
+
/** Own staked HP (vesting_shares only — excludes received and delegated). */
|
|
203
203
|
currentHP: number;
|
|
204
|
+
/** Posting rewards in HP. */
|
|
204
205
|
postingRewards: number;
|
|
206
|
+
/** Curation rewards in HP. */
|
|
205
207
|
curationRewards: number;
|
|
208
|
+
/** Total lifetime rewards in HP. */
|
|
206
209
|
totalRewards: number;
|
|
207
|
-
/** ke = (
|
|
210
|
+
/** ke = (postingRewardsHP + curationRewardsHP) / ownHP */
|
|
208
211
|
ke: number;
|
|
209
212
|
}
|
|
210
213
|
/**
|
|
211
|
-
* KE
|
|
212
|
-
*
|
|
214
|
+
* KE ratio for a Hive account — lifetime rewards divided by own staked HP.
|
|
215
|
+
* Mirrors the server-side calculator at
|
|
216
|
+
* curation-marketing/Server/utils/ke-ratio-of-account.js.
|
|
213
217
|
*
|
|
214
|
-
* ke = (posting_rewards + curation_rewards
|
|
218
|
+
* ke = (posting_rewards + curation_rewards in HP) / own_HP
|
|
215
219
|
*
|
|
216
|
-
*
|
|
217
|
-
*
|
|
218
|
-
* calculator at curation-marketing/server/utils/ke-ratio-of-account.js.
|
|
220
|
+
* Own HP only — received delegations and delegations-out are excluded so the
|
|
221
|
+
* ratio reflects whether the account keeps its earnings staked.
|
|
219
222
|
*/
|
|
220
223
|
export declare function calculateKERatio(username: string, signal?: AbortSignal): Promise<KERatioResult>;
|
|
221
224
|
export declare const userService: UserService;
|