hive-react-kit 0.10.3 → 0.10.4
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 +131 -3
- package/dist/components/Delegations.d.ts +26 -0
- package/dist/components/Wallet.d.ts +11 -0
- package/dist/components/WorldMappinMap.d.ts +30 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/user/UserDetailProfile.d.ts +15 -0
- package/dist/hive-react-kit.css +1 -0
- package/dist/index.cjs.js +273 -238
- package/dist/index.d.ts +3 -0
- package/dist/index.esm.js +42833 -35519
- package/dist/types/wallet.d.ts +28 -0
- package/dist/utils/worldMappin.d.ts +26 -0
- package/package.json +6 -3
package/dist/types/wallet.d.ts
CHANGED
|
@@ -8,6 +8,34 @@ export interface WalletData {
|
|
|
8
8
|
estimated_value_usd: number;
|
|
9
9
|
error?: string;
|
|
10
10
|
}
|
|
11
|
+
export interface HpDelegation {
|
|
12
|
+
/** Counterparty account — `delegatee` for outgoing, `delegator` for incoming. */
|
|
13
|
+
account: string;
|
|
14
|
+
/** Raw VESTS amount as a numeric string (e.g. "3942369739000000"). */
|
|
15
|
+
vests: string;
|
|
16
|
+
/** VESTS converted to HP using current dynamic global properties. */
|
|
17
|
+
hp: number;
|
|
18
|
+
operation_id?: string;
|
|
19
|
+
block_num?: number;
|
|
20
|
+
}
|
|
21
|
+
export interface RcDelegation {
|
|
22
|
+
/** Counterparty account — `delegatee` for outgoing, `delegator` for incoming. */
|
|
23
|
+
account: string;
|
|
24
|
+
/** Raw RC amount (max_rc) as a numeric string (e.g. "50000000000"). */
|
|
25
|
+
max_rc: string;
|
|
26
|
+
operation_id?: string;
|
|
27
|
+
block_num?: number;
|
|
28
|
+
}
|
|
29
|
+
export interface DelegationsBundle {
|
|
30
|
+
hp: {
|
|
31
|
+
outgoing: HpDelegation[];
|
|
32
|
+
incoming: HpDelegation[];
|
|
33
|
+
};
|
|
34
|
+
rc: {
|
|
35
|
+
outgoing: RcDelegation[];
|
|
36
|
+
incoming: RcDelegation[];
|
|
37
|
+
};
|
|
38
|
+
}
|
|
11
39
|
export interface Transaction {
|
|
12
40
|
id: number;
|
|
13
41
|
timestamp: string;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Parser for the WorldMappin marker that authors embed in Hive post bodies:
|
|
3
|
+
*
|
|
4
|
+
* [//]:# (!worldmappin <lat> lat <lng> long <description> d3scr)
|
|
5
|
+
*
|
|
6
|
+
* The pattern is a markdown comment so non-WorldMappin renderers swallow it,
|
|
7
|
+
* but the structured `lat`/`long`/`d3scr` keywords let any tool that knows
|
|
8
|
+
* the convention (worldmappin.com itself, Ecency, etc.) extract the pin.
|
|
9
|
+
*
|
|
10
|
+
* The regex is intentionally tolerant of whitespace and signed/decimal
|
|
11
|
+
* numbers; `description` is captured greedily up to the trailing `d3scr`
|
|
12
|
+
* sentinel and trimmed.
|
|
13
|
+
*/
|
|
14
|
+
export interface WorldMappinPin {
|
|
15
|
+
lat: number;
|
|
16
|
+
lng: number;
|
|
17
|
+
description: string;
|
|
18
|
+
/** The exact marker substring matched in the body (use to strip it). */
|
|
19
|
+
raw: string;
|
|
20
|
+
}
|
|
21
|
+
/** Pull every WorldMappin marker out of a post body. */
|
|
22
|
+
export declare function extractWorldMappinPins(body: string): WorldMappinPin[];
|
|
23
|
+
/** Convenience — returns the first pin (most posts only have one). */
|
|
24
|
+
export declare function extractWorldMappinPin(body: string): WorldMappinPin | null;
|
|
25
|
+
/** Strip every WorldMappin marker from the body. */
|
|
26
|
+
export declare function stripWorldMappinMarkers(body: string): string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hive-react-kit",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.10.
|
|
4
|
+
"version": "0.10.4",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs.js",
|
|
7
7
|
"module": "./dist/index.esm.js",
|
|
@@ -80,10 +80,12 @@
|
|
|
80
80
|
"hls.js": "^1.6.13",
|
|
81
81
|
"input-otp": "^1.4.2",
|
|
82
82
|
"isomorphic-dompurify": "^3.6.0",
|
|
83
|
+
"leaflet": "^1.9.4",
|
|
83
84
|
"lucide-react": "^0.462.0",
|
|
84
85
|
"next-themes": "^0.4.4",
|
|
85
86
|
"react-hook-form": "^7.61.1",
|
|
86
87
|
"react-icons": "^5.5.0",
|
|
88
|
+
"react-leaflet": "^5.0.0",
|
|
87
89
|
"react-resizable-panels": "^2.1.9",
|
|
88
90
|
"react-router-dom": "^6.30.1",
|
|
89
91
|
"sonner": "^1.7.4",
|
|
@@ -93,11 +95,10 @@
|
|
|
93
95
|
},
|
|
94
96
|
"devDependencies": {
|
|
95
97
|
"@eslint/js": "^9.32.0",
|
|
98
|
+
"@types/leaflet": "^1.9.21",
|
|
96
99
|
"@types/node": "^22.16.5",
|
|
97
100
|
"@types/react": "^18.3.23",
|
|
98
101
|
"@types/react-dom": "^18.3.7",
|
|
99
|
-
"react": "^19.0.0",
|
|
100
|
-
"react-dom": "^19.0.0",
|
|
101
102
|
"@vitejs/plugin-react": "^4.6.0",
|
|
102
103
|
"@vitejs/plugin-react-swc": "^3.11.0",
|
|
103
104
|
"autoprefixer": "^10.4.21",
|
|
@@ -106,6 +107,8 @@
|
|
|
106
107
|
"eslint-plugin-react-refresh": "^0.4.20",
|
|
107
108
|
"globals": "^15.15.0",
|
|
108
109
|
"postcss": "^8.5.6",
|
|
110
|
+
"react": "^19.0.0",
|
|
111
|
+
"react-dom": "^19.0.0",
|
|
109
112
|
"serve": "^14.2.5",
|
|
110
113
|
"tailwindcss-animate": "^1.0.7",
|
|
111
114
|
"typescript": "^5.8.3",
|