@frak-labs/react-sdk 0.2.1-beta.9d5371b4 → 0.2.1-beta.bbbb3d22

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.cts CHANGED
@@ -1,10 +1,10 @@
1
1
  import { ProcessReferralOptions, SendTransactionParams, SiweAuthenticateModalParams } from "@frak-labs/core-sdk/actions";
2
- import * as _tanstack_react_query0 from "@tanstack/react-query";
2
+ import * as _$_tanstack_react_query0 from "@tanstack/react-query";
3
3
  import { UseMutationOptions, UseQueryOptions } from "@tanstack/react-query";
4
- import * as _frak_labs_core_sdk0 from "@frak-labs/core-sdk";
4
+ import * as _$_frak_labs_core_sdk0 from "@frak-labs/core-sdk";
5
5
  import { DisplayModalParamsType, FrakClient, FrakWalletSdkConfig, GetMerchantInformationReturnType, ModalRpcStepsResultType, ModalStepTypes, OpenSsoParamsType, OpenSsoReturnType, PrepareSsoParamsType, SendTransactionReturnType, SiweAuthenticateReturnType, WalletStatusReturnType } from "@frak-labs/core-sdk";
6
6
  import { FrakRpcError } from "@frak-labs/frame-connector";
7
- import * as react from "react";
7
+ import * as _$react from "react";
8
8
  import { CSSProperties, PropsWithChildren, ReactNode } from "react";
9
9
 
10
10
  //#region src/hook/helper/useReferralInteraction.d.ts
@@ -26,7 +26,7 @@ declare function useReferralInteraction({
26
26
  options
27
27
  }?: {
28
28
  options?: ProcessReferralOptions;
29
- }): "processing" | Error | "no-referrer" | "idle" | "success" | "self-referral";
29
+ }): Error | "processing" | "no-referrer" | "idle" | "success" | "self-referral";
30
30
  //#endregion
31
31
  //#region src/hook/useDisplayModal.d.ts
32
32
  /** @ignore */
@@ -62,7 +62,7 @@ interface UseDisplayModalParams<T extends ModalStepTypes[] = ModalStepTypes[]> {
62
62
  */
63
63
  declare function useDisplayModal<T extends ModalStepTypes[] = ModalStepTypes[]>({
64
64
  mutations
65
- }?: UseDisplayModalParams<T>): _tanstack_react_query0.UseMutationResult<ModalRpcStepsResultType<T>, FrakRpcError<undefined>, DisplayModalParamsType<T>, unknown>;
65
+ }?: UseDisplayModalParams<T>): _$_tanstack_react_query0.UseMutationResult<ModalRpcStepsResultType<T>, FrakRpcError<undefined>, DisplayModalParamsType<T>, unknown>;
66
66
  //#endregion
67
67
  //#region src/hook/useFrakClient.d.ts
68
68
  /**
@@ -70,7 +70,7 @@ declare function useDisplayModal<T extends ModalStepTypes[] = ModalStepTypes[]>(
70
70
  *
71
71
  * @group hooks
72
72
  */
73
- declare function useFrakClient(): _frak_labs_core_sdk0.FrakClient | undefined;
73
+ declare function useFrakClient(): _$_frak_labs_core_sdk0.FrakClient | undefined;
74
74
  //#endregion
75
75
  //#region src/hook/useFrakConfig.d.ts
76
76
  /**
@@ -81,7 +81,7 @@ declare function useFrakClient(): _frak_labs_core_sdk0.FrakClient | undefined;
81
81
  * @see {@link @frak-labs/react-sdk!FrakConfigProvider | FrakConfigProvider} for the config provider
82
82
  * @see {@link @frak-labs/core-sdk!index.FrakWalletSdkConfig | FrakWalletSdkConfig} for the config type
83
83
  */
84
- declare function useFrakConfig(): _frak_labs_core_sdk0.FrakWalletSdkConfig;
84
+ declare function useFrakConfig(): _$_frak_labs_core_sdk0.FrakWalletSdkConfig;
85
85
  //#endregion
86
86
  //#region src/hook/useGetMerchantInformation.d.ts
87
87
  /** @ignore */
@@ -111,7 +111,7 @@ interface UseGetMerchantInformationParams {
111
111
  */
112
112
  declare function useGetMerchantInformation({
113
113
  query
114
- }?: UseGetMerchantInformationParams): _tanstack_react_query0.UseQueryResult<GetMerchantInformationReturnType, FrakRpcError<undefined>>;
114
+ }?: UseGetMerchantInformationParams): _$_tanstack_react_query0.UseQueryResult<GetMerchantInformationReturnType, FrakRpcError<undefined>>;
115
115
  //#endregion
116
116
  //#region src/hook/useOpenSso.d.ts
117
117
  /** @ignore */
@@ -142,7 +142,7 @@ interface UseOpenSsoParams {
142
142
  */
143
143
  declare function useOpenSso({
144
144
  mutations
145
- }?: UseOpenSsoParams): _tanstack_react_query0.UseMutationResult<OpenSsoReturnType, FrakRpcError<undefined>, OpenSsoParamsType, unknown>;
145
+ }?: UseOpenSsoParams): _$_tanstack_react_query0.UseMutationResult<OpenSsoReturnType, FrakRpcError<undefined>, OpenSsoParamsType, unknown>;
146
146
  //#endregion
147
147
  //#region src/hook/usePrepareSso.d.ts
148
148
  /**
@@ -181,7 +181,7 @@ declare function useOpenSso({
181
181
  * @see {@link @frak-labs/core-sdk!actions.prepareSso | `prepareSso()`} for the underlying action
182
182
  * @see {@link @frak-labs/core-sdk!actions.openSso | `openSso()`} for the recommended high-level API
183
183
  */
184
- declare function usePrepareSso(params: PrepareSsoParamsType): _tanstack_react_query0.UseQueryResult<_frak_labs_core_sdk0.PrepareSsoReturnType, Error>;
184
+ declare function usePrepareSso(params: PrepareSsoParamsType): _$_tanstack_react_query0.UseQueryResult<_$_frak_labs_core_sdk0.PrepareSsoReturnType, Error>;
185
185
  //#endregion
186
186
  //#region src/hook/useSendTransaction.d.ts
187
187
  /** @ignore */
@@ -212,7 +212,7 @@ interface UseSendTransactionParams {
212
212
  */
213
213
  declare function useSendTransactionAction({
214
214
  mutations
215
- }?: UseSendTransactionParams): _tanstack_react_query0.UseMutationResult<SendTransactionReturnType, FrakRpcError<undefined>, SendTransactionParams, unknown>;
215
+ }?: UseSendTransactionParams): _$_tanstack_react_query0.UseMutationResult<SendTransactionReturnType, FrakRpcError<undefined>, SendTransactionParams, unknown>;
216
216
  //#endregion
217
217
  //#region src/hook/useSiweAuthenticate.d.ts
218
218
  /** @inline */
@@ -243,7 +243,7 @@ interface UseSiweAuthenticateParams {
243
243
  */
244
244
  declare function useSiweAuthenticate({
245
245
  mutations
246
- }?: UseSiweAuthenticateParams): _tanstack_react_query0.UseMutationResult<SiweAuthenticateReturnType, FrakRpcError<undefined>, SiweAuthenticateModalParams, unknown>;
246
+ }?: UseSiweAuthenticateParams): _$_tanstack_react_query0.UseMutationResult<SiweAuthenticateReturnType, FrakRpcError<undefined>, SiweAuthenticateModalParams, unknown>;
247
247
  //#endregion
248
248
  //#region src/hook/useWalletStatus.d.ts
249
249
  /**
@@ -260,14 +260,14 @@ declare function useSiweAuthenticate({
260
260
  * @see {@link @frak-labs/core-sdk!actions.watchWalletStatus | `watchWalletStatus()`} for more info about the underlying action
261
261
  * @see {@link @tanstack/react-query!useQuery | `useQuery()`} for more info about the useQuery response
262
262
  */
263
- declare function useWalletStatus(): _tanstack_react_query0.UseQueryResult<WalletStatusReturnType, Error>;
263
+ declare function useWalletStatus(): _$_tanstack_react_query0.UseQueryResult<WalletStatusReturnType, Error>;
264
264
  //#endregion
265
265
  //#region src/provider/FrakConfigProvider.d.ts
266
266
  /**
267
267
  * The context that will keep the Frak Wallet SDK configuration
268
268
  * @ignore
269
269
  */
270
- declare const FrakConfigContext: react.Context<FrakWalletSdkConfig | undefined>;
270
+ declare const FrakConfigContext: _$react.Context<FrakWalletSdkConfig | undefined>;
271
271
  /**
272
272
  * Props to instantiate the Frak Wallet SDK configuration provider
273
273
  *
@@ -289,14 +289,14 @@ type FrakConfigProviderProps = {
289
289
  *
290
290
  * @param parameters
291
291
  */
292
- declare function FrakConfigProvider(parameters: PropsWithChildren<FrakConfigProviderProps>): react.FunctionComponentElement<react.ProviderProps<FrakWalletSdkConfig | undefined>>;
292
+ declare function FrakConfigProvider(parameters: PropsWithChildren<FrakConfigProviderProps>): _$react.FunctionComponentElement<_$react.ProviderProps<FrakWalletSdkConfig | undefined>>;
293
293
  //#endregion
294
294
  //#region src/provider/FrakIFrameClientProvider.d.ts
295
295
  /**
296
296
  * The context that will keep the Frak Wallet SDK client
297
297
  * @ignore
298
298
  */
299
- declare const FrakIFrameClientContext: react.Context<FrakClient | undefined>;
299
+ declare const FrakIFrameClientContext: _$react.Context<FrakClient | undefined>;
300
300
  /**
301
301
  * Props to instantiate the Frak Wallet SDK configuration provider
302
302
  *
@@ -324,6 +324,6 @@ declare function FrakIFrameClientProvider({
324
324
  }: {
325
325
  style?: CSSProperties;
326
326
  children?: ReactNode;
327
- }): react.FunctionComponentElement<react.FragmentProps>;
327
+ }): _$react.FunctionComponentElement<_$react.FragmentProps>;
328
328
  //#endregion
329
329
  export { FrakConfigContext, FrakConfigProvider, type FrakConfigProviderProps, FrakIFrameClientContext, type FrakIFrameClientProps, FrakIFrameClientProvider, useDisplayModal, useFrakClient, useFrakConfig, useGetMerchantInformation, useOpenSso, usePrepareSso, useReferralInteraction, useSendTransactionAction, useSiweAuthenticate, useWalletStatus };
package/dist/index.d.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  import { ProcessReferralOptions, SendTransactionParams, SiweAuthenticateModalParams } from "@frak-labs/core-sdk/actions";
2
2
  import { FrakRpcError } from "@frak-labs/frame-connector";
3
- import * as _tanstack_react_query0 from "@tanstack/react-query";
3
+ import * as _$_tanstack_react_query0 from "@tanstack/react-query";
4
4
  import { UseMutationOptions, UseQueryOptions } from "@tanstack/react-query";
5
- import * as react from "react";
5
+ import * as _$react from "react";
6
6
  import { CSSProperties, PropsWithChildren, ReactNode } from "react";
7
- import * as _frak_labs_core_sdk0 from "@frak-labs/core-sdk";
7
+ import * as _$_frak_labs_core_sdk0 from "@frak-labs/core-sdk";
8
8
  import { DisplayModalParamsType, FrakClient, FrakWalletSdkConfig, GetMerchantInformationReturnType, ModalRpcStepsResultType, ModalStepTypes, OpenSsoParamsType, OpenSsoReturnType, PrepareSsoParamsType, SendTransactionReturnType, SiweAuthenticateReturnType, WalletStatusReturnType } from "@frak-labs/core-sdk";
9
9
 
10
10
  //#region src/hook/helper/useReferralInteraction.d.ts
@@ -26,7 +26,7 @@ declare function useReferralInteraction({
26
26
  options
27
27
  }?: {
28
28
  options?: ProcessReferralOptions;
29
- }): "processing" | Error | "no-referrer" | "idle" | "success" | "self-referral";
29
+ }): Error | "processing" | "no-referrer" | "idle" | "success" | "self-referral";
30
30
  //#endregion
31
31
  //#region src/hook/useDisplayModal.d.ts
32
32
  /** @ignore */
@@ -62,7 +62,7 @@ interface UseDisplayModalParams<T extends ModalStepTypes[] = ModalStepTypes[]> {
62
62
  */
63
63
  declare function useDisplayModal<T extends ModalStepTypes[] = ModalStepTypes[]>({
64
64
  mutations
65
- }?: UseDisplayModalParams<T>): _tanstack_react_query0.UseMutationResult<ModalRpcStepsResultType<T>, FrakRpcError<undefined>, DisplayModalParamsType<T>, unknown>;
65
+ }?: UseDisplayModalParams<T>): _$_tanstack_react_query0.UseMutationResult<ModalRpcStepsResultType<T>, FrakRpcError<undefined>, DisplayModalParamsType<T>, unknown>;
66
66
  //#endregion
67
67
  //#region src/hook/useFrakClient.d.ts
68
68
  /**
@@ -70,7 +70,7 @@ declare function useDisplayModal<T extends ModalStepTypes[] = ModalStepTypes[]>(
70
70
  *
71
71
  * @group hooks
72
72
  */
73
- declare function useFrakClient(): _frak_labs_core_sdk0.FrakClient | undefined;
73
+ declare function useFrakClient(): _$_frak_labs_core_sdk0.FrakClient | undefined;
74
74
  //#endregion
75
75
  //#region src/hook/useFrakConfig.d.ts
76
76
  /**
@@ -81,7 +81,7 @@ declare function useFrakClient(): _frak_labs_core_sdk0.FrakClient | undefined;
81
81
  * @see {@link @frak-labs/react-sdk!FrakConfigProvider | FrakConfigProvider} for the config provider
82
82
  * @see {@link @frak-labs/core-sdk!index.FrakWalletSdkConfig | FrakWalletSdkConfig} for the config type
83
83
  */
84
- declare function useFrakConfig(): _frak_labs_core_sdk0.FrakWalletSdkConfig;
84
+ declare function useFrakConfig(): _$_frak_labs_core_sdk0.FrakWalletSdkConfig;
85
85
  //#endregion
86
86
  //#region src/hook/useGetMerchantInformation.d.ts
87
87
  /** @ignore */
@@ -111,7 +111,7 @@ interface UseGetMerchantInformationParams {
111
111
  */
112
112
  declare function useGetMerchantInformation({
113
113
  query
114
- }?: UseGetMerchantInformationParams): _tanstack_react_query0.UseQueryResult<GetMerchantInformationReturnType, FrakRpcError<undefined>>;
114
+ }?: UseGetMerchantInformationParams): _$_tanstack_react_query0.UseQueryResult<GetMerchantInformationReturnType, FrakRpcError<undefined>>;
115
115
  //#endregion
116
116
  //#region src/hook/useOpenSso.d.ts
117
117
  /** @ignore */
@@ -142,7 +142,7 @@ interface UseOpenSsoParams {
142
142
  */
143
143
  declare function useOpenSso({
144
144
  mutations
145
- }?: UseOpenSsoParams): _tanstack_react_query0.UseMutationResult<OpenSsoReturnType, FrakRpcError<undefined>, OpenSsoParamsType, unknown>;
145
+ }?: UseOpenSsoParams): _$_tanstack_react_query0.UseMutationResult<OpenSsoReturnType, FrakRpcError<undefined>, OpenSsoParamsType, unknown>;
146
146
  //#endregion
147
147
  //#region src/hook/usePrepareSso.d.ts
148
148
  /**
@@ -181,7 +181,7 @@ declare function useOpenSso({
181
181
  * @see {@link @frak-labs/core-sdk!actions.prepareSso | `prepareSso()`} for the underlying action
182
182
  * @see {@link @frak-labs/core-sdk!actions.openSso | `openSso()`} for the recommended high-level API
183
183
  */
184
- declare function usePrepareSso(params: PrepareSsoParamsType): _tanstack_react_query0.UseQueryResult<_frak_labs_core_sdk0.PrepareSsoReturnType, Error>;
184
+ declare function usePrepareSso(params: PrepareSsoParamsType): _$_tanstack_react_query0.UseQueryResult<_$_frak_labs_core_sdk0.PrepareSsoReturnType, Error>;
185
185
  //#endregion
186
186
  //#region src/hook/useSendTransaction.d.ts
187
187
  /** @ignore */
@@ -212,7 +212,7 @@ interface UseSendTransactionParams {
212
212
  */
213
213
  declare function useSendTransactionAction({
214
214
  mutations
215
- }?: UseSendTransactionParams): _tanstack_react_query0.UseMutationResult<SendTransactionReturnType, FrakRpcError<undefined>, SendTransactionParams, unknown>;
215
+ }?: UseSendTransactionParams): _$_tanstack_react_query0.UseMutationResult<SendTransactionReturnType, FrakRpcError<undefined>, SendTransactionParams, unknown>;
216
216
  //#endregion
217
217
  //#region src/hook/useSiweAuthenticate.d.ts
218
218
  /** @inline */
@@ -243,7 +243,7 @@ interface UseSiweAuthenticateParams {
243
243
  */
244
244
  declare function useSiweAuthenticate({
245
245
  mutations
246
- }?: UseSiweAuthenticateParams): _tanstack_react_query0.UseMutationResult<SiweAuthenticateReturnType, FrakRpcError<undefined>, SiweAuthenticateModalParams, unknown>;
246
+ }?: UseSiweAuthenticateParams): _$_tanstack_react_query0.UseMutationResult<SiweAuthenticateReturnType, FrakRpcError<undefined>, SiweAuthenticateModalParams, unknown>;
247
247
  //#endregion
248
248
  //#region src/hook/useWalletStatus.d.ts
249
249
  /**
@@ -260,14 +260,14 @@ declare function useSiweAuthenticate({
260
260
  * @see {@link @frak-labs/core-sdk!actions.watchWalletStatus | `watchWalletStatus()`} for more info about the underlying action
261
261
  * @see {@link @tanstack/react-query!useQuery | `useQuery()`} for more info about the useQuery response
262
262
  */
263
- declare function useWalletStatus(): _tanstack_react_query0.UseQueryResult<WalletStatusReturnType, Error>;
263
+ declare function useWalletStatus(): _$_tanstack_react_query0.UseQueryResult<WalletStatusReturnType, Error>;
264
264
  //#endregion
265
265
  //#region src/provider/FrakConfigProvider.d.ts
266
266
  /**
267
267
  * The context that will keep the Frak Wallet SDK configuration
268
268
  * @ignore
269
269
  */
270
- declare const FrakConfigContext: react.Context<FrakWalletSdkConfig | undefined>;
270
+ declare const FrakConfigContext: _$react.Context<FrakWalletSdkConfig | undefined>;
271
271
  /**
272
272
  * Props to instantiate the Frak Wallet SDK configuration provider
273
273
  *
@@ -289,14 +289,14 @@ type FrakConfigProviderProps = {
289
289
  *
290
290
  * @param parameters
291
291
  */
292
- declare function FrakConfigProvider(parameters: PropsWithChildren<FrakConfigProviderProps>): react.FunctionComponentElement<react.ProviderProps<FrakWalletSdkConfig | undefined>>;
292
+ declare function FrakConfigProvider(parameters: PropsWithChildren<FrakConfigProviderProps>): _$react.FunctionComponentElement<_$react.ProviderProps<FrakWalletSdkConfig | undefined>>;
293
293
  //#endregion
294
294
  //#region src/provider/FrakIFrameClientProvider.d.ts
295
295
  /**
296
296
  * The context that will keep the Frak Wallet SDK client
297
297
  * @ignore
298
298
  */
299
- declare const FrakIFrameClientContext: react.Context<FrakClient | undefined>;
299
+ declare const FrakIFrameClientContext: _$react.Context<FrakClient | undefined>;
300
300
  /**
301
301
  * Props to instantiate the Frak Wallet SDK configuration provider
302
302
  *
@@ -324,6 +324,6 @@ declare function FrakIFrameClientProvider({
324
324
  }: {
325
325
  style?: CSSProperties;
326
326
  children?: ReactNode;
327
- }): react.FunctionComponentElement<react.FragmentProps>;
327
+ }): _$react.FunctionComponentElement<_$react.FragmentProps>;
328
328
  //#endregion
329
329
  export { FrakConfigContext, FrakConfigProvider, type FrakConfigProviderProps, FrakIFrameClientContext, type FrakIFrameClientProps, FrakIFrameClientProvider, useDisplayModal, useFrakClient, useFrakConfig, useGetMerchantInformation, useOpenSso, usePrepareSso, useReferralInteraction, useSendTransactionAction, useSiweAuthenticate, useWalletStatus };
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "url": "https://twitter.com/QNivelais"
12
12
  }
13
13
  ],
14
- "version": "0.2.1-beta.9d5371b4",
14
+ "version": "0.2.1-beta.bbbb3d22",
15
15
  "description": "React SDK of the Frak wallet, low level library to interact directly with the frak ecosystem.",
16
16
  "repository": {
17
17
  "url": "https://github.com/frak-id/wallet",
@@ -67,8 +67,8 @@
67
67
  "publish": "echo 'Publishing react...'"
68
68
  },
69
69
  "dependencies": {
70
- "@frak-labs/core-sdk": "0.2.1-beta.9d5371b4",
71
- "@frak-labs/frame-connector": "0.2.0-beta.9d5371b4"
70
+ "@frak-labs/core-sdk": "0.2.1-beta.bbbb3d22",
71
+ "@frak-labs/frame-connector": "0.2.0-beta.bbbb3d22"
72
72
  },
73
73
  "peerDependencies": {
74
74
  "viem": "^2.x",
@@ -77,7 +77,6 @@
77
77
  },
78
78
  "devDependencies": {
79
79
  "@arethetypeswrong/cli": "^0.18.2",
80
- "@frak-labs/dev-tooling": "0.0.0",
81
80
  "@frak-labs/test-foundation": "0.1.0",
82
81
  "@frak-labs/wallet-shared": "0.0.3",
83
82
  "@tanstack/react-query": "^5.90.20",
@@ -86,15 +85,15 @@
86
85
  "@testing-library/react-hooks": "^8.0.1",
87
86
  "@testing-library/user-event": "^14.6.1",
88
87
  "@types/jsdom": "^28.0.0",
89
- "@types/node": "^24.10.13",
88
+ "@types/node": "^25.6.0",
90
89
  "@types/react": "19.2.13",
91
90
  "@vitest/coverage-v8": "^4.1.0",
92
91
  "@vitest/ui": "^4.1.0",
93
92
  "jsdom": "^29.0.0",
94
93
  "react": "^19.2.4",
95
- "tsdown": "^0.20.3",
96
- "typescript": "^5.9.3",
97
- "viem": "^2.39.0",
98
- "vitest": "^4.1.0"
94
+ "tsdown": "^0.21.8",
95
+ "typescript": "^6.0.2",
96
+ "viem": "^2.47.16",
97
+ "vitest": "^4.1.4"
99
98
  }
100
99
  }