hive-react-kit 0.10.0 → 0.10.2
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/README.md +3 -1
- package/dist/build.css +328 -16
- package/dist/components/BlogPostList.d.ts +4 -0
- package/dist/components/HiveDetailPost.d.ts +14 -2
- package/dist/components/UpvoteListModal.d.ts +7 -1
- package/dist/components/actionButtons/MoreActionsMenu.d.ts +17 -0
- package/dist/components/actionButtons/PostActionButton.d.ts +14 -3
- package/dist/components/actionButtons/index.d.ts +1 -0
- package/dist/components/comments/AddCommentInput.d.ts +25 -2
- package/dist/components/comments/CommentsModal.d.ts +10 -3
- package/dist/components/community/CommunityDetail.d.ts +5 -1
- package/dist/components/composer/BeneficiariesEditor.d.ts +49 -0
- package/dist/components/composer/ParentPostComposer.d.ts +134 -0
- package/dist/components/composer/VideoUploader.d.ts +96 -0
- package/dist/components/composer/index.d.ts +5 -1
- package/dist/components/feed/SnapsFeedCard.d.ts +3 -0
- package/dist/components/feed/SnapsFeedView.d.ts +5 -1
- package/dist/components/inlineComments/InlineCommentItem.d.ts +7 -2
- package/dist/components/inlineComments/InlineCommentSection.d.ts +9 -3
- package/dist/config/hiveEndpoint.d.ts +20 -0
- package/dist/index.cjs.js +215 -209
- package/dist/index.d.ts +5 -3
- package/dist/index.esm.js +22643 -20334
- package/dist/services/communityService.d.ts +3 -1
- package/dist/services/userService.d.ts +3 -1
- package/dist/utils/beneficiaries.d.ts +82 -0
- package/package.json +1 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Runtime-configurable Hive RPC endpoint.
|
|
3
|
+
*
|
|
4
|
+
* Every dhive Client and every direct JSON-RPC fetch inside the kit reads
|
|
5
|
+
* the URL from `getHiveApiEndpoint()` (or shares the singleton returned by
|
|
6
|
+
* `getHiveClient()`), so callers can switch nodes at runtime via
|
|
7
|
+
* `setHiveApiEndpoint(url)` and have the change picked up immediately —
|
|
8
|
+
* without re-importing modules or rebuilding clients.
|
|
9
|
+
*/
|
|
10
|
+
import { Client, ClientOptions } from '@hiveio/dhive';
|
|
11
|
+
export declare function getHiveApiEndpoint(): string;
|
|
12
|
+
export declare function setHiveApiEndpoint(url: string): void;
|
|
13
|
+
export declare function subscribeHiveApiEndpoint(cb: (url: string) => void): () => void;
|
|
14
|
+
/**
|
|
15
|
+
* Returns the kit-wide dhive Client. The same instance is returned on every
|
|
16
|
+
* call; its `address` / `currentAddress` are updated when
|
|
17
|
+
* `setHiveApiEndpoint()` is called, so existing references continue to use
|
|
18
|
+
* the latest node without reconstruction.
|
|
19
|
+
*/
|
|
20
|
+
export declare function getHiveClient(options?: ClientOptions): Client;
|