@kheopskit/react 5.1.1 → 5.1.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/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { KheopskitConfig, KheopskitPlatform, KheopskitState as KheopskitState$1 } from "@kheopskit/core";
1
+ import { KheopskitConfig, KheopskitPlatform, KheopskitState } from "@kheopskit/core";
2
2
  import { FC, PropsWithChildren } from "react";
3
3
  //#region src/createKheopskit.d.ts
4
4
  type CreateKheopskitConfig<P extends readonly KheopskitPlatform[]> = Omit<Partial<KheopskitConfig<P>>, "platforms"> & {
@@ -26,9 +26,9 @@ declare const createKheopskit: <const P extends readonly [KheopskitPlatform, ...
26
26
  ssrCookies?: string;
27
27
  }>>;
28
28
  /** Current state, typed to the bound platform tuple. */
29
- useWallets: () => KheopskitState<P_1>;
29
+ useWallets: () => import("@kheopskit/core").KheopskitState<P>;
30
30
  /** Current accounts, typed to the bound platform tuple. */
31
- useAccounts: () => any;
31
+ useAccounts: () => import("@kheopskit/core").AccountOf<P[number]>[];
32
32
  };
33
33
  //#endregion
34
34
  //#region src/KheopskitProvider.d.ts
@@ -71,7 +71,7 @@ declare const KheopskitProvider: FC<KheopskitProviderProps>;
71
71
  * `useAccounts<typeof platforms>()` — or use the pre-typed hook from
72
72
  * {@link createKheopskit}.
73
73
  */
74
- declare const useAccounts: <P extends readonly KheopskitPlatform[] = readonly KheopskitPlatform[]>() => any;
74
+ declare const useAccounts: <P extends readonly KheopskitPlatform[] = readonly KheopskitPlatform[]>() => import("@kheopskit/core").AccountOf<P[number]>[];
75
75
  //#endregion
76
76
  //#region src/useWallets.d.ts
77
77
  /**
@@ -82,7 +82,7 @@ declare const useAccounts: <P extends readonly KheopskitPlatform[] = readonly Kh
82
82
  * generic, so without the argument the state is typed with the base
83
83
  * (SDK-free) wallet/account shapes.
84
84
  */
85
- declare const useWallets: <P extends readonly KheopskitPlatform[] = readonly KheopskitPlatform[]>() => KheopskitState$1<P>;
85
+ declare const useWallets: <P extends readonly KheopskitPlatform[] = readonly KheopskitPlatform[]>() => KheopskitState<P>;
86
86
  //#endregion
87
87
  export { CreateKheopskitConfig, KheopskitProvider, KheopskitProviderProps, createKheopskit, useAccounts, useWallets };
88
88
  //# sourceMappingURL=index.d.mts.map
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { KheopskitConfig, KheopskitPlatform, KheopskitState as KheopskitState$1 } from "@kheopskit/core";
1
+ import { KheopskitConfig, KheopskitPlatform, KheopskitState } from "@kheopskit/core";
2
2
  import { FC, PropsWithChildren } from "react";
3
3
  //#region src/createKheopskit.d.ts
4
4
  type CreateKheopskitConfig<P extends readonly KheopskitPlatform[]> = Omit<Partial<KheopskitConfig<P>>, "platforms"> & {
@@ -26,9 +26,9 @@ declare const createKheopskit: <const P extends readonly [KheopskitPlatform, ...
26
26
  ssrCookies?: string;
27
27
  }>>;
28
28
  /** Current state, typed to the bound platform tuple. */
29
- useWallets: () => KheopskitState<P_1>;
29
+ useWallets: () => import("@kheopskit/core").KheopskitState<P>;
30
30
  /** Current accounts, typed to the bound platform tuple. */
31
- useAccounts: () => any;
31
+ useAccounts: () => import("@kheopskit/core").AccountOf<P[number]>[];
32
32
  };
33
33
  //#endregion
34
34
  //#region src/KheopskitProvider.d.ts
@@ -71,7 +71,7 @@ declare const KheopskitProvider: FC<KheopskitProviderProps>;
71
71
  * `useAccounts<typeof platforms>()` — or use the pre-typed hook from
72
72
  * {@link createKheopskit}.
73
73
  */
74
- declare const useAccounts: <P extends readonly KheopskitPlatform[] = readonly KheopskitPlatform[]>() => any;
74
+ declare const useAccounts: <P extends readonly KheopskitPlatform[] = readonly KheopskitPlatform[]>() => import("@kheopskit/core").AccountOf<P[number]>[];
75
75
  //#endregion
76
76
  //#region src/useWallets.d.ts
77
77
  /**
@@ -82,7 +82,7 @@ declare const useAccounts: <P extends readonly KheopskitPlatform[] = readonly Kh
82
82
  * generic, so without the argument the state is typed with the base
83
83
  * (SDK-free) wallet/account shapes.
84
84
  */
85
- declare const useWallets: <P extends readonly KheopskitPlatform[] = readonly KheopskitPlatform[]>() => KheopskitState$1<P>;
85
+ declare const useWallets: <P extends readonly KheopskitPlatform[] = readonly KheopskitPlatform[]>() => KheopskitState<P>;
86
86
  //#endregion
87
87
  export { CreateKheopskitConfig, KheopskitProvider, KheopskitProviderProps, createKheopskit, useAccounts, useWallets };
88
88
  //# sourceMappingURL=index.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kheopskit/react",
3
- "version": "5.1.1",
3
+ "version": "5.1.2",
4
4
  "description": "",
5
5
  "private": false,
6
6
  "sideEffects": false,
@@ -35,7 +35,7 @@
35
35
  },
36
36
  "license": "ISC",
37
37
  "peerDependencies": {
38
- "@kheopskit/core": "^5.1.1",
38
+ "@kheopskit/core": "^5.1.2",
39
39
  "react": ">=18.0.0",
40
40
  "react-dom": ">=18.0.0",
41
41
  "rxjs": ">=7.0.0"
@@ -46,7 +46,7 @@
46
46
  "react": "^19.2.8",
47
47
  "react-dom": "^19.2.8",
48
48
  "rxjs": "^7.8.2",
49
- "@kheopskit/core": "5.1.1"
49
+ "@kheopskit/core": "5.1.2"
50
50
  },
51
51
  "tsdown": {
52
52
  "entry": [