@frak-labs/react-sdk 1.1.0 → 1.1.1-beta.dc7ed9db
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 +19 -22
- package/dist/index.d.ts +18 -21
- package/package.json +4 -4
package/dist/index.d.cts
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { ProcessReferralOptions, SendTransactionParams, SiweAuthenticateModalParams } from "@frak-labs/core-sdk/actions";
|
|
2
|
-
import * as _$_tanstack_react_query0 from "@tanstack/react-query";
|
|
3
|
-
import { UseMutationOptions, UseQueryOptions } from "@tanstack/react-query";
|
|
4
|
-
import * as _$_frak_labs_core_sdk0 from "@frak-labs/core-sdk";
|
|
5
2
|
import { DisplayModalParamsType, DisplaySharingPageParamsType, DisplaySharingPageResultType, FrakClient, FrakWalletSdkConfig, GetMerchantInformationReturnType, ModalRpcStepsResultType, ModalStepTypes, OpenSsoParamsType, OpenSsoReturnType, PrepareSsoParamsType, SendTransactionReturnType, SiweAuthenticateReturnType, UserReferralStatusType, WalletStatusReturnType } from "@frak-labs/core-sdk";
|
|
6
3
|
import { FrakRpcError } from "@frak-labs/frame-connector";
|
|
7
|
-
import
|
|
4
|
+
import { UseMutationOptions, UseQueryOptions } from "@tanstack/react-query";
|
|
8
5
|
import { CSSProperties, PropsWithChildren, ReactNode } from "react";
|
|
9
6
|
|
|
10
7
|
//#region src/hook/helper/useReferralInteraction.d.ts
|
|
@@ -28,7 +25,7 @@ declare function useReferralInteraction({
|
|
|
28
25
|
options
|
|
29
26
|
}?: {
|
|
30
27
|
options?: ProcessReferralOptions;
|
|
31
|
-
}):
|
|
28
|
+
}): "processing" | Error | "idle" | "success" | "no-referrer" | "self-referral";
|
|
32
29
|
//#endregion
|
|
33
30
|
//#region src/hook/useDisplayModal.d.ts
|
|
34
31
|
/** @ignore */
|
|
@@ -66,7 +63,7 @@ interface UseDisplayModalParams<T extends ModalStepTypes[] = ModalStepTypes[]> {
|
|
|
66
63
|
*/
|
|
67
64
|
declare function useDisplayModal<T extends ModalStepTypes[] = ModalStepTypes[]>({
|
|
68
65
|
mutations
|
|
69
|
-
}?: UseDisplayModalParams<T>):
|
|
66
|
+
}?: UseDisplayModalParams<T>): import("@tanstack/react-query").UseMutationResult<ModalRpcStepsResultType<T>, FrakRpcError<undefined>, DisplayModalParamsType<T> & {
|
|
70
67
|
placement?: string;
|
|
71
68
|
}, unknown>;
|
|
72
69
|
//#endregion
|
|
@@ -101,7 +98,7 @@ interface UseDisplaySharingPageParams {
|
|
|
101
98
|
*/
|
|
102
99
|
declare function useDisplaySharingPage({
|
|
103
100
|
mutations
|
|
104
|
-
}?: UseDisplaySharingPageParams):
|
|
101
|
+
}?: UseDisplaySharingPageParams): import("@tanstack/react-query").UseMutationResult<DisplaySharingPageResultType, FrakRpcError<undefined>, DisplaySharingPageParamsType & {
|
|
105
102
|
placement?: string;
|
|
106
103
|
}, unknown>;
|
|
107
104
|
//#endregion
|
|
@@ -111,7 +108,7 @@ declare function useDisplaySharingPage({
|
|
|
111
108
|
*
|
|
112
109
|
* @group hooks
|
|
113
110
|
*/
|
|
114
|
-
declare function useFrakClient():
|
|
111
|
+
declare function useFrakClient(): import("@frak-labs/core-sdk").FrakClient | undefined;
|
|
115
112
|
//#endregion
|
|
116
113
|
//#region src/hook/useFrakConfig.d.ts
|
|
117
114
|
/**
|
|
@@ -122,7 +119,7 @@ declare function useFrakClient(): _$_frak_labs_core_sdk0.FrakClient | undefined;
|
|
|
122
119
|
* @see {@link @frak-labs/react-sdk!FrakConfigProvider | FrakConfigProvider} for the config provider
|
|
123
120
|
* @see {@link @frak-labs/core-sdk!index.FrakWalletSdkConfig | FrakWalletSdkConfig} for the config type
|
|
124
121
|
*/
|
|
125
|
-
declare function useFrakConfig():
|
|
122
|
+
declare function useFrakConfig(): import("@frak-labs/core-sdk").FrakWalletSdkConfig;
|
|
126
123
|
//#endregion
|
|
127
124
|
//#region src/hook/useGetMerchantInformation.d.ts
|
|
128
125
|
/** @ignore */
|
|
@@ -157,7 +154,7 @@ interface UseGetMerchantInformationParams {
|
|
|
157
154
|
declare function useGetMerchantInformation({
|
|
158
155
|
query,
|
|
159
156
|
cacheTime
|
|
160
|
-
}?: UseGetMerchantInformationParams):
|
|
157
|
+
}?: UseGetMerchantInformationParams): import("@tanstack/react-query").UseQueryResult<GetMerchantInformationReturnType, FrakRpcError<undefined>>;
|
|
161
158
|
//#endregion
|
|
162
159
|
//#region src/hook/useGetMergeToken.d.ts
|
|
163
160
|
/** @ignore */
|
|
@@ -195,7 +192,7 @@ interface UseGetMergeTokenParams {
|
|
|
195
192
|
declare function useGetMergeToken({
|
|
196
193
|
query,
|
|
197
194
|
cacheTime
|
|
198
|
-
}?: UseGetMergeTokenParams):
|
|
195
|
+
}?: UseGetMergeTokenParams): import("@tanstack/react-query").UseQueryResult<string | null, FrakRpcError<undefined>>;
|
|
199
196
|
//#endregion
|
|
200
197
|
//#region src/hook/useGetUserReferralStatus.d.ts
|
|
201
198
|
/** @ignore */
|
|
@@ -232,7 +229,7 @@ interface UseGetUserReferralStatusParams {
|
|
|
232
229
|
declare function useGetUserReferralStatus({
|
|
233
230
|
query,
|
|
234
231
|
cacheTime
|
|
235
|
-
}?: UseGetUserReferralStatusParams):
|
|
232
|
+
}?: UseGetUserReferralStatusParams): import("@tanstack/react-query").UseQueryResult<UserReferralStatusType | null, FrakRpcError<undefined>>;
|
|
236
233
|
//#endregion
|
|
237
234
|
//#region src/hook/useOpenSso.d.ts
|
|
238
235
|
/** @ignore */
|
|
@@ -263,7 +260,7 @@ interface UseOpenSsoParams {
|
|
|
263
260
|
*/
|
|
264
261
|
declare function useOpenSso({
|
|
265
262
|
mutations
|
|
266
|
-
}?: UseOpenSsoParams):
|
|
263
|
+
}?: UseOpenSsoParams): import("@tanstack/react-query").UseMutationResult<OpenSsoReturnType, FrakRpcError<undefined>, OpenSsoParamsType, unknown>;
|
|
267
264
|
//#endregion
|
|
268
265
|
//#region src/hook/usePrepareSso.d.ts
|
|
269
266
|
/**
|
|
@@ -302,7 +299,7 @@ declare function useOpenSso({
|
|
|
302
299
|
* @see {@link @frak-labs/core-sdk!actions.prepareSso | `prepareSso()`} for the underlying action
|
|
303
300
|
* @see {@link @frak-labs/core-sdk!actions.openSso | `openSso()`} for the recommended high-level API
|
|
304
301
|
*/
|
|
305
|
-
declare function usePrepareSso(params: PrepareSsoParamsType):
|
|
302
|
+
declare function usePrepareSso(params: PrepareSsoParamsType): import("@tanstack/react-query").UseQueryResult<import("@frak-labs/core-sdk").PrepareSsoReturnType, Error>;
|
|
306
303
|
//#endregion
|
|
307
304
|
//#region src/hook/useSendTransaction.d.ts
|
|
308
305
|
/** @ignore */
|
|
@@ -333,7 +330,7 @@ interface UseSendTransactionParams {
|
|
|
333
330
|
*/
|
|
334
331
|
declare function useSendTransactionAction({
|
|
335
332
|
mutations
|
|
336
|
-
}?: UseSendTransactionParams):
|
|
333
|
+
}?: UseSendTransactionParams): import("@tanstack/react-query").UseMutationResult<SendTransactionReturnType, FrakRpcError<undefined>, SendTransactionParams, unknown>;
|
|
337
334
|
//#endregion
|
|
338
335
|
//#region src/hook/useSetupReferral.d.ts
|
|
339
336
|
/**
|
|
@@ -350,7 +347,7 @@ declare function useSendTransactionAction({
|
|
|
350
347
|
* @see {@link @frak-labs/core-sdk!actions.setupReferral | `setupReferral()`} for more info about the underlying action
|
|
351
348
|
* @see {@link @frak-labs/core-sdk!actions.REFERRAL_SUCCESS_EVENT | `REFERRAL_SUCCESS_EVENT`} for the event name constant
|
|
352
349
|
*/
|
|
353
|
-
declare function useSetupReferral():
|
|
350
|
+
declare function useSetupReferral(): import("@tanstack/react-query").UseQueryResult<null, Error>;
|
|
354
351
|
//#endregion
|
|
355
352
|
//#region src/hook/useSiweAuthenticate.d.ts
|
|
356
353
|
/** @inline */
|
|
@@ -381,7 +378,7 @@ interface UseSiweAuthenticateParams {
|
|
|
381
378
|
*/
|
|
382
379
|
declare function useSiweAuthenticate({
|
|
383
380
|
mutations
|
|
384
|
-
}?: UseSiweAuthenticateParams):
|
|
381
|
+
}?: UseSiweAuthenticateParams): import("@tanstack/react-query").UseMutationResult<SiweAuthenticateReturnType, FrakRpcError<undefined>, SiweAuthenticateModalParams, unknown>;
|
|
385
382
|
//#endregion
|
|
386
383
|
//#region src/hook/useWalletStatus.d.ts
|
|
387
384
|
/**
|
|
@@ -398,14 +395,14 @@ declare function useSiweAuthenticate({
|
|
|
398
395
|
* @see {@link @frak-labs/core-sdk!actions.watchWalletStatus | `watchWalletStatus()`} for more info about the underlying action
|
|
399
396
|
* @see {@link @tanstack/react-query!useQuery | `useQuery()`} for more info about the useQuery response
|
|
400
397
|
*/
|
|
401
|
-
declare function useWalletStatus():
|
|
398
|
+
declare function useWalletStatus(): import("@tanstack/react-query").UseQueryResult<WalletStatusReturnType, Error>;
|
|
402
399
|
//#endregion
|
|
403
400
|
//#region src/provider/FrakConfigProvider.d.ts
|
|
404
401
|
/**
|
|
405
402
|
* The context that will keep the Frak Wallet SDK configuration
|
|
406
403
|
* @ignore
|
|
407
404
|
*/
|
|
408
|
-
declare const FrakConfigContext:
|
|
405
|
+
declare const FrakConfigContext: import("react").Context<FrakWalletSdkConfig | undefined>;
|
|
409
406
|
/**
|
|
410
407
|
* Props to instantiate the Frak Wallet SDK configuration provider
|
|
411
408
|
*
|
|
@@ -427,14 +424,14 @@ type FrakConfigProviderProps = {
|
|
|
427
424
|
*
|
|
428
425
|
* @param parameters
|
|
429
426
|
*/
|
|
430
|
-
declare function FrakConfigProvider(parameters: PropsWithChildren<FrakConfigProviderProps>):
|
|
427
|
+
declare function FrakConfigProvider(parameters: PropsWithChildren<FrakConfigProviderProps>): import("react").FunctionComponentElement<import("react").ProviderProps<FrakWalletSdkConfig | undefined>>;
|
|
431
428
|
//#endregion
|
|
432
429
|
//#region src/provider/FrakIFrameClientProvider.d.ts
|
|
433
430
|
/**
|
|
434
431
|
* The context that will keep the Frak Wallet SDK client
|
|
435
432
|
* @ignore
|
|
436
433
|
*/
|
|
437
|
-
declare const FrakIFrameClientContext:
|
|
434
|
+
declare const FrakIFrameClientContext: import("react").Context<FrakClient | undefined>;
|
|
438
435
|
/**
|
|
439
436
|
* Props to instantiate the Frak Wallet SDK configuration provider
|
|
440
437
|
*
|
|
@@ -462,6 +459,6 @@ declare function FrakIFrameClientProvider({
|
|
|
462
459
|
}: {
|
|
463
460
|
style?: CSSProperties;
|
|
464
461
|
children?: ReactNode;
|
|
465
|
-
}):
|
|
462
|
+
}): import("react").FunctionComponentElement<import("react").FragmentProps>;
|
|
466
463
|
//#endregion
|
|
467
464
|
export { FrakConfigContext, FrakConfigProvider, type FrakConfigProviderProps, FrakIFrameClientContext, type FrakIFrameClientProps, FrakIFrameClientProvider, useDisplayModal, useDisplaySharingPage, useFrakClient, useFrakConfig, useGetMerchantInformation, useGetMergeToken, useGetUserReferralStatus, useOpenSso, usePrepareSso, useReferralInteraction, useSendTransactionAction, useSetupReferral, useSiweAuthenticate, useWalletStatus };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
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";
|
|
4
3
|
import { UseMutationOptions, UseQueryOptions } from "@tanstack/react-query";
|
|
5
|
-
import * as _$react from "react";
|
|
6
4
|
import { CSSProperties, PropsWithChildren, ReactNode } from "react";
|
|
7
|
-
import * as _$_frak_labs_core_sdk0 from "@frak-labs/core-sdk";
|
|
8
5
|
import { DisplayModalParamsType, DisplaySharingPageParamsType, DisplaySharingPageResultType, FrakClient, FrakWalletSdkConfig, GetMerchantInformationReturnType, ModalRpcStepsResultType, ModalStepTypes, OpenSsoParamsType, OpenSsoReturnType, PrepareSsoParamsType, SendTransactionReturnType, SiweAuthenticateReturnType, UserReferralStatusType, WalletStatusReturnType } from "@frak-labs/core-sdk";
|
|
9
6
|
|
|
10
7
|
//#region src/hook/helper/useReferralInteraction.d.ts
|
|
@@ -28,7 +25,7 @@ declare function useReferralInteraction({
|
|
|
28
25
|
options
|
|
29
26
|
}?: {
|
|
30
27
|
options?: ProcessReferralOptions;
|
|
31
|
-
}):
|
|
28
|
+
}): "processing" | Error | "idle" | "success" | "no-referrer" | "self-referral";
|
|
32
29
|
//#endregion
|
|
33
30
|
//#region src/hook/useDisplayModal.d.ts
|
|
34
31
|
/** @ignore */
|
|
@@ -66,7 +63,7 @@ interface UseDisplayModalParams<T extends ModalStepTypes[] = ModalStepTypes[]> {
|
|
|
66
63
|
*/
|
|
67
64
|
declare function useDisplayModal<T extends ModalStepTypes[] = ModalStepTypes[]>({
|
|
68
65
|
mutations
|
|
69
|
-
}?: UseDisplayModalParams<T>):
|
|
66
|
+
}?: UseDisplayModalParams<T>): import("@tanstack/react-query").UseMutationResult<ModalRpcStepsResultType<T>, FrakRpcError<undefined>, DisplayModalParamsType<T> & {
|
|
70
67
|
placement?: string;
|
|
71
68
|
}, unknown>;
|
|
72
69
|
//#endregion
|
|
@@ -101,7 +98,7 @@ interface UseDisplaySharingPageParams {
|
|
|
101
98
|
*/
|
|
102
99
|
declare function useDisplaySharingPage({
|
|
103
100
|
mutations
|
|
104
|
-
}?: UseDisplaySharingPageParams):
|
|
101
|
+
}?: UseDisplaySharingPageParams): import("@tanstack/react-query").UseMutationResult<DisplaySharingPageResultType, FrakRpcError<undefined>, DisplaySharingPageParamsType & {
|
|
105
102
|
placement?: string;
|
|
106
103
|
}, unknown>;
|
|
107
104
|
//#endregion
|
|
@@ -111,7 +108,7 @@ declare function useDisplaySharingPage({
|
|
|
111
108
|
*
|
|
112
109
|
* @group hooks
|
|
113
110
|
*/
|
|
114
|
-
declare function useFrakClient():
|
|
111
|
+
declare function useFrakClient(): import("@frak-labs/core-sdk").FrakClient | undefined;
|
|
115
112
|
//#endregion
|
|
116
113
|
//#region src/hook/useFrakConfig.d.ts
|
|
117
114
|
/**
|
|
@@ -122,7 +119,7 @@ declare function useFrakClient(): _$_frak_labs_core_sdk0.FrakClient | undefined;
|
|
|
122
119
|
* @see {@link @frak-labs/react-sdk!FrakConfigProvider | FrakConfigProvider} for the config provider
|
|
123
120
|
* @see {@link @frak-labs/core-sdk!index.FrakWalletSdkConfig | FrakWalletSdkConfig} for the config type
|
|
124
121
|
*/
|
|
125
|
-
declare function useFrakConfig():
|
|
122
|
+
declare function useFrakConfig(): import("@frak-labs/core-sdk").FrakWalletSdkConfig;
|
|
126
123
|
//#endregion
|
|
127
124
|
//#region src/hook/useGetMerchantInformation.d.ts
|
|
128
125
|
/** @ignore */
|
|
@@ -157,7 +154,7 @@ interface UseGetMerchantInformationParams {
|
|
|
157
154
|
declare function useGetMerchantInformation({
|
|
158
155
|
query,
|
|
159
156
|
cacheTime
|
|
160
|
-
}?: UseGetMerchantInformationParams):
|
|
157
|
+
}?: UseGetMerchantInformationParams): import("@tanstack/react-query").UseQueryResult<GetMerchantInformationReturnType, FrakRpcError<undefined>>;
|
|
161
158
|
//#endregion
|
|
162
159
|
//#region src/hook/useGetMergeToken.d.ts
|
|
163
160
|
/** @ignore */
|
|
@@ -195,7 +192,7 @@ interface UseGetMergeTokenParams {
|
|
|
195
192
|
declare function useGetMergeToken({
|
|
196
193
|
query,
|
|
197
194
|
cacheTime
|
|
198
|
-
}?: UseGetMergeTokenParams):
|
|
195
|
+
}?: UseGetMergeTokenParams): import("@tanstack/react-query").UseQueryResult<string | null, FrakRpcError<undefined>>;
|
|
199
196
|
//#endregion
|
|
200
197
|
//#region src/hook/useGetUserReferralStatus.d.ts
|
|
201
198
|
/** @ignore */
|
|
@@ -232,7 +229,7 @@ interface UseGetUserReferralStatusParams {
|
|
|
232
229
|
declare function useGetUserReferralStatus({
|
|
233
230
|
query,
|
|
234
231
|
cacheTime
|
|
235
|
-
}?: UseGetUserReferralStatusParams):
|
|
232
|
+
}?: UseGetUserReferralStatusParams): import("@tanstack/react-query").UseQueryResult<UserReferralStatusType | null, FrakRpcError<undefined>>;
|
|
236
233
|
//#endregion
|
|
237
234
|
//#region src/hook/useOpenSso.d.ts
|
|
238
235
|
/** @ignore */
|
|
@@ -263,7 +260,7 @@ interface UseOpenSsoParams {
|
|
|
263
260
|
*/
|
|
264
261
|
declare function useOpenSso({
|
|
265
262
|
mutations
|
|
266
|
-
}?: UseOpenSsoParams):
|
|
263
|
+
}?: UseOpenSsoParams): import("@tanstack/react-query").UseMutationResult<OpenSsoReturnType, FrakRpcError<undefined>, OpenSsoParamsType, unknown>;
|
|
267
264
|
//#endregion
|
|
268
265
|
//#region src/hook/usePrepareSso.d.ts
|
|
269
266
|
/**
|
|
@@ -302,7 +299,7 @@ declare function useOpenSso({
|
|
|
302
299
|
* @see {@link @frak-labs/core-sdk!actions.prepareSso | `prepareSso()`} for the underlying action
|
|
303
300
|
* @see {@link @frak-labs/core-sdk!actions.openSso | `openSso()`} for the recommended high-level API
|
|
304
301
|
*/
|
|
305
|
-
declare function usePrepareSso(params: PrepareSsoParamsType):
|
|
302
|
+
declare function usePrepareSso(params: PrepareSsoParamsType): import("@tanstack/react-query").UseQueryResult<import("@frak-labs/core-sdk").PrepareSsoReturnType, Error>;
|
|
306
303
|
//#endregion
|
|
307
304
|
//#region src/hook/useSendTransaction.d.ts
|
|
308
305
|
/** @ignore */
|
|
@@ -333,7 +330,7 @@ interface UseSendTransactionParams {
|
|
|
333
330
|
*/
|
|
334
331
|
declare function useSendTransactionAction({
|
|
335
332
|
mutations
|
|
336
|
-
}?: UseSendTransactionParams):
|
|
333
|
+
}?: UseSendTransactionParams): import("@tanstack/react-query").UseMutationResult<SendTransactionReturnType, FrakRpcError<undefined>, SendTransactionParams, unknown>;
|
|
337
334
|
//#endregion
|
|
338
335
|
//#region src/hook/useSetupReferral.d.ts
|
|
339
336
|
/**
|
|
@@ -350,7 +347,7 @@ declare function useSendTransactionAction({
|
|
|
350
347
|
* @see {@link @frak-labs/core-sdk!actions.setupReferral | `setupReferral()`} for more info about the underlying action
|
|
351
348
|
* @see {@link @frak-labs/core-sdk!actions.REFERRAL_SUCCESS_EVENT | `REFERRAL_SUCCESS_EVENT`} for the event name constant
|
|
352
349
|
*/
|
|
353
|
-
declare function useSetupReferral():
|
|
350
|
+
declare function useSetupReferral(): import("@tanstack/react-query").UseQueryResult<null, Error>;
|
|
354
351
|
//#endregion
|
|
355
352
|
//#region src/hook/useSiweAuthenticate.d.ts
|
|
356
353
|
/** @inline */
|
|
@@ -381,7 +378,7 @@ interface UseSiweAuthenticateParams {
|
|
|
381
378
|
*/
|
|
382
379
|
declare function useSiweAuthenticate({
|
|
383
380
|
mutations
|
|
384
|
-
}?: UseSiweAuthenticateParams):
|
|
381
|
+
}?: UseSiweAuthenticateParams): import("@tanstack/react-query").UseMutationResult<SiweAuthenticateReturnType, FrakRpcError<undefined>, SiweAuthenticateModalParams, unknown>;
|
|
385
382
|
//#endregion
|
|
386
383
|
//#region src/hook/useWalletStatus.d.ts
|
|
387
384
|
/**
|
|
@@ -398,14 +395,14 @@ declare function useSiweAuthenticate({
|
|
|
398
395
|
* @see {@link @frak-labs/core-sdk!actions.watchWalletStatus | `watchWalletStatus()`} for more info about the underlying action
|
|
399
396
|
* @see {@link @tanstack/react-query!useQuery | `useQuery()`} for more info about the useQuery response
|
|
400
397
|
*/
|
|
401
|
-
declare function useWalletStatus():
|
|
398
|
+
declare function useWalletStatus(): import("@tanstack/react-query").UseQueryResult<WalletStatusReturnType, Error>;
|
|
402
399
|
//#endregion
|
|
403
400
|
//#region src/provider/FrakConfigProvider.d.ts
|
|
404
401
|
/**
|
|
405
402
|
* The context that will keep the Frak Wallet SDK configuration
|
|
406
403
|
* @ignore
|
|
407
404
|
*/
|
|
408
|
-
declare const FrakConfigContext:
|
|
405
|
+
declare const FrakConfigContext: import("react").Context<FrakWalletSdkConfig | undefined>;
|
|
409
406
|
/**
|
|
410
407
|
* Props to instantiate the Frak Wallet SDK configuration provider
|
|
411
408
|
*
|
|
@@ -427,14 +424,14 @@ type FrakConfigProviderProps = {
|
|
|
427
424
|
*
|
|
428
425
|
* @param parameters
|
|
429
426
|
*/
|
|
430
|
-
declare function FrakConfigProvider(parameters: PropsWithChildren<FrakConfigProviderProps>):
|
|
427
|
+
declare function FrakConfigProvider(parameters: PropsWithChildren<FrakConfigProviderProps>): import("react").FunctionComponentElement<import("react").ProviderProps<FrakWalletSdkConfig | undefined>>;
|
|
431
428
|
//#endregion
|
|
432
429
|
//#region src/provider/FrakIFrameClientProvider.d.ts
|
|
433
430
|
/**
|
|
434
431
|
* The context that will keep the Frak Wallet SDK client
|
|
435
432
|
* @ignore
|
|
436
433
|
*/
|
|
437
|
-
declare const FrakIFrameClientContext:
|
|
434
|
+
declare const FrakIFrameClientContext: import("react").Context<FrakClient | undefined>;
|
|
438
435
|
/**
|
|
439
436
|
* Props to instantiate the Frak Wallet SDK configuration provider
|
|
440
437
|
*
|
|
@@ -462,6 +459,6 @@ declare function FrakIFrameClientProvider({
|
|
|
462
459
|
}: {
|
|
463
460
|
style?: CSSProperties;
|
|
464
461
|
children?: ReactNode;
|
|
465
|
-
}):
|
|
462
|
+
}): import("react").FunctionComponentElement<import("react").FragmentProps>;
|
|
466
463
|
//#endregion
|
|
467
464
|
export { FrakConfigContext, FrakConfigProvider, type FrakConfigProviderProps, FrakIFrameClientContext, type FrakIFrameClientProps, FrakIFrameClientProvider, useDisplayModal, useDisplaySharingPage, useFrakClient, useFrakConfig, useGetMerchantInformation, useGetMergeToken, useGetUserReferralStatus, useOpenSso, usePrepareSso, useReferralInteraction, useSendTransactionAction, useSetupReferral, useSiweAuthenticate, useWalletStatus };
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"url": "https://twitter.com/QNivelais"
|
|
12
12
|
}
|
|
13
13
|
],
|
|
14
|
-
"version": "1.1.
|
|
14
|
+
"version": "1.1.1-beta.dc7ed9db",
|
|
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": "1.1.
|
|
71
|
-
"@frak-labs/frame-connector": "0.2.0"
|
|
70
|
+
"@frak-labs/core-sdk": "1.1.1-beta.dc7ed9db",
|
|
71
|
+
"@frak-labs/frame-connector": "0.2.0-beta.dc7ed9db"
|
|
72
72
|
},
|
|
73
73
|
"peerDependencies": {
|
|
74
74
|
"viem": "^2.x",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"devDependencies": {
|
|
79
79
|
"@arethetypeswrong/cli": "^0.18.2",
|
|
80
80
|
"@frak-labs/test-foundation": "0.1.0",
|
|
81
|
-
"@frak-labs/wallet-shared": "0.0.
|
|
81
|
+
"@frak-labs/wallet-shared": "0.0.8",
|
|
82
82
|
"@tanstack/react-query": "^5.90.20",
|
|
83
83
|
"@testing-library/jest-dom": "^6.9.1",
|
|
84
84
|
"@testing-library/react": "^16.3.2",
|