@frak-labs/react-sdk 0.1.0-beta.b0bd1f8a → 0.1.0-beta.c7e026e5
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 +9 -9
- package/dist/index.d.ts +5 -5
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -2,7 +2,7 @@ import * as _frak_labs_core_sdk0 from "@frak-labs/core-sdk";
|
|
|
2
2
|
import { DisplayEmbeddedWalletParamsType, DisplayModalParamsType, FrakClient, FrakWalletSdkConfig, GetProductInformationReturnType, ModalRpcStepsResultType, ModalStepTypes, OpenSsoParamsType, OpenSsoReturnType, PrepareSsoParamsType, SendInteractionParamsType, SendInteractionReturnType, SendTransactionReturnType, SiweAuthenticateReturnType, WalletStatusReturnType } from "@frak-labs/core-sdk";
|
|
3
3
|
import { ProcessReferralOptions, SendTransactionParams, SiweAuthenticateModalParams } from "@frak-labs/core-sdk/actions";
|
|
4
4
|
import { Hex } from "viem";
|
|
5
|
-
import * as
|
|
5
|
+
import * as _tanstack_react_query6 from "@tanstack/react-query";
|
|
6
6
|
import { UseMutationOptions, UseQueryOptions } from "@tanstack/react-query";
|
|
7
7
|
import { FrakRpcError } from "@frak-labs/frame-connector";
|
|
8
8
|
import * as react2 from "react";
|
|
@@ -70,7 +70,7 @@ interface UseDisplayModalParams<T extends ModalStepTypes[] = ModalStepTypes[]> {
|
|
|
70
70
|
*/
|
|
71
71
|
declare function useDisplayModal<T extends ModalStepTypes[] = ModalStepTypes[]>({
|
|
72
72
|
mutations
|
|
73
|
-
}?: UseDisplayModalParams<T>):
|
|
73
|
+
}?: UseDisplayModalParams<T>): _tanstack_react_query6.UseMutationResult<ModalRpcStepsResultType<T>, FrakRpcError<undefined>, DisplayModalParamsType<T>, unknown>;
|
|
74
74
|
//#endregion
|
|
75
75
|
//#region src/hook/useFrakClient.d.ts
|
|
76
76
|
/**
|
|
@@ -119,7 +119,7 @@ interface UseGetProductInformationParams {
|
|
|
119
119
|
*/
|
|
120
120
|
declare function useGetProductInformation({
|
|
121
121
|
query
|
|
122
|
-
}?: UseGetProductInformationParams):
|
|
122
|
+
}?: UseGetProductInformationParams): _tanstack_react_query6.UseQueryResult<undefined, FrakRpcError<undefined>>;
|
|
123
123
|
//#endregion
|
|
124
124
|
//#region src/hook/useOpenSso.d.ts
|
|
125
125
|
/** @ignore */
|
|
@@ -150,7 +150,7 @@ interface UseOpenSsoParams {
|
|
|
150
150
|
*/
|
|
151
151
|
declare function useOpenSso({
|
|
152
152
|
mutations
|
|
153
|
-
}?: UseOpenSsoParams):
|
|
153
|
+
}?: UseOpenSsoParams): _tanstack_react_query6.UseMutationResult<OpenSsoReturnType, FrakRpcError<undefined>, OpenSsoParamsType, unknown>;
|
|
154
154
|
//#endregion
|
|
155
155
|
//#region src/hook/usePrepareSso.d.ts
|
|
156
156
|
/**
|
|
@@ -189,7 +189,7 @@ declare function useOpenSso({
|
|
|
189
189
|
* @see {@link @frak-labs/core-sdk!actions.prepareSso | `prepareSso()`} for the underlying action
|
|
190
190
|
* @see {@link @frak-labs/core-sdk!actions.openSso | `openSso()`} for the recommended high-level API
|
|
191
191
|
*/
|
|
192
|
-
declare function usePrepareSso(params: PrepareSsoParamsType):
|
|
192
|
+
declare function usePrepareSso(params: PrepareSsoParamsType): _tanstack_react_query6.UseQueryResult<_frak_labs_core_sdk0.PrepareSsoReturnType, Error>;
|
|
193
193
|
//#endregion
|
|
194
194
|
//#region src/hook/useSendInteraction.d.ts
|
|
195
195
|
/** @ignore */
|
|
@@ -220,7 +220,7 @@ interface UseSendInteractionParams {
|
|
|
220
220
|
*/
|
|
221
221
|
declare function useSendInteraction({
|
|
222
222
|
mutations
|
|
223
|
-
}?: UseSendInteractionParams):
|
|
223
|
+
}?: UseSendInteractionParams): _tanstack_react_query6.UseMutationResult<SendInteractionReturnType, FrakRpcError<undefined>, SendInteractionParamsType, unknown>;
|
|
224
224
|
//#endregion
|
|
225
225
|
//#region src/hook/useSendTransaction.d.ts
|
|
226
226
|
/** @ignore */
|
|
@@ -251,7 +251,7 @@ interface UseSendTransactionParams {
|
|
|
251
251
|
*/
|
|
252
252
|
declare function useSendTransactionAction({
|
|
253
253
|
mutations
|
|
254
|
-
}?: UseSendTransactionParams):
|
|
254
|
+
}?: UseSendTransactionParams): _tanstack_react_query6.UseMutationResult<SendTransactionReturnType, FrakRpcError<undefined>, SendTransactionParams, unknown>;
|
|
255
255
|
//#endregion
|
|
256
256
|
//#region src/hook/useSiweAuthenticate.d.ts
|
|
257
257
|
/** @inline */
|
|
@@ -282,7 +282,7 @@ interface UseSiweAuthenticateParams {
|
|
|
282
282
|
*/
|
|
283
283
|
declare function useSiweAuthenticate({
|
|
284
284
|
mutations
|
|
285
|
-
}?: UseSiweAuthenticateParams):
|
|
285
|
+
}?: UseSiweAuthenticateParams): _tanstack_react_query6.UseMutationResult<SiweAuthenticateReturnType, FrakRpcError<undefined>, SiweAuthenticateModalParams, unknown>;
|
|
286
286
|
//#endregion
|
|
287
287
|
//#region src/hook/useWalletStatus.d.ts
|
|
288
288
|
/**
|
|
@@ -299,7 +299,7 @@ declare function useSiweAuthenticate({
|
|
|
299
299
|
* @see {@link @frak-labs/core-sdk!actions.watchWalletStatus | `watchWalletStatus()`} for more info about the underlying action
|
|
300
300
|
* @see {@link @tanstack/react-query!useQuery | `useQuery()`} for more info about the useQuery response
|
|
301
301
|
*/
|
|
302
|
-
declare function useWalletStatus():
|
|
302
|
+
declare function useWalletStatus(): _tanstack_react_query6.UseQueryResult<WalletStatusReturnType, Error>;
|
|
303
303
|
//#endregion
|
|
304
304
|
//#region src/provider/FrakConfigProvider.d.ts
|
|
305
305
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { ProcessReferralOptions, SendTransactionParams, SiweAuthenticateModalPar
|
|
|
2
2
|
import { FrakRpcError } from "@frak-labs/frame-connector";
|
|
3
3
|
import * as _tanstack_react_query0 from "@tanstack/react-query";
|
|
4
4
|
import { UseMutationOptions, UseQueryOptions } from "@tanstack/react-query";
|
|
5
|
-
import * as
|
|
5
|
+
import * as react0 from "react";
|
|
6
6
|
import { CSSProperties, PropsWithChildren, ReactNode } from "react";
|
|
7
7
|
import * as _frak_labs_core_sdk0 from "@frak-labs/core-sdk";
|
|
8
8
|
import { DisplayEmbeddedWalletParamsType, DisplayModalParamsType, FrakClient, FrakWalletSdkConfig, GetProductInformationReturnType, ModalRpcStepsResultType, ModalStepTypes, OpenSsoParamsType, OpenSsoReturnType, PrepareSsoParamsType, SendInteractionParamsType, SendInteractionReturnType, SendTransactionReturnType, SiweAuthenticateReturnType, WalletStatusReturnType } from "@frak-labs/core-sdk";
|
|
@@ -306,7 +306,7 @@ declare function useWalletStatus(): _tanstack_react_query0.UseQueryResult<Wallet
|
|
|
306
306
|
* The context that will keep the Frak Wallet SDK configuration
|
|
307
307
|
* @ignore
|
|
308
308
|
*/
|
|
309
|
-
declare const FrakConfigContext:
|
|
309
|
+
declare const FrakConfigContext: react0.Context<FrakWalletSdkConfig | undefined>;
|
|
310
310
|
/**
|
|
311
311
|
* Props to instantiate the Frak Wallet SDK configuration provider
|
|
312
312
|
*
|
|
@@ -328,14 +328,14 @@ type FrakConfigProviderProps = {
|
|
|
328
328
|
*
|
|
329
329
|
* @param parameters
|
|
330
330
|
*/
|
|
331
|
-
declare function FrakConfigProvider(parameters: PropsWithChildren<FrakConfigProviderProps>):
|
|
331
|
+
declare function FrakConfigProvider(parameters: PropsWithChildren<FrakConfigProviderProps>): react0.FunctionComponentElement<react0.ProviderProps<FrakWalletSdkConfig | undefined>>;
|
|
332
332
|
//#endregion
|
|
333
333
|
//#region src/provider/FrakIFrameClientProvider.d.ts
|
|
334
334
|
/**
|
|
335
335
|
* The context that will keep the Frak Wallet SDK client
|
|
336
336
|
* @ignore
|
|
337
337
|
*/
|
|
338
|
-
declare const FrakIFrameClientContext:
|
|
338
|
+
declare const FrakIFrameClientContext: react0.Context<FrakClient | undefined>;
|
|
339
339
|
/**
|
|
340
340
|
* Props to instantiate the Frak Wallet SDK configuration provider
|
|
341
341
|
*
|
|
@@ -363,6 +363,6 @@ declare function FrakIFrameClientProvider({
|
|
|
363
363
|
}: {
|
|
364
364
|
style?: CSSProperties;
|
|
365
365
|
children?: ReactNode;
|
|
366
|
-
}):
|
|
366
|
+
}): react0.FunctionComponentElement<react0.FragmentProps>;
|
|
367
367
|
//#endregion
|
|
368
368
|
export { FrakConfigContext, FrakConfigProvider, type FrakConfigProviderProps, FrakIFrameClientContext, type FrakIFrameClientProps, FrakIFrameClientProvider, useDisplayModal, useFrakClient, useFrakConfig, useGetProductInformation, useOpenSso, usePrepareSso, useReferralInteraction, useSendInteraction, 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.1.0-beta.
|
|
14
|
+
"version": "0.1.0-beta.c7e026e5",
|
|
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",
|