@funkit/connect 5.5.13-next.0 → 5.5.13-next.1
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/CHANGELOG.md +25 -0
- package/dist/components/AnimatedDollarValue/AnimatedDollarValue.d.ts +1 -0
- package/dist/components/Dropdown/ChainDropdown.d.ts +3 -1
- package/dist/components/Dropdown/TokenAndChainDropdown.d.ts +5 -2
- package/dist/components/FunTransactionSummary/PaymentFeesSummary.d.ts +1 -2
- package/dist/components/TransferTokenDetails/TransferTokenDetails.d.ts +1 -2
- package/dist/components/Withdraw/WithdrawContent.d.ts +5 -3
- package/dist/hooks/queries/useWithdrawalRisk.d.ts +1 -0
- package/dist/hooks/useCheckoutDirectExecutionHistory.d.ts +1 -0
- package/dist/hooks/useCheckoutTransferInit.d.ts +4 -2
- package/dist/hooks/useTokenChain.d.ts +3 -1
- package/dist/hooks/useTokenTransfer.d.ts +4 -1
- package/dist/hooks/useWithdrawal.d.ts +15 -0
- package/dist/index.js +12185 -12095
- package/dist/modals/CheckoutModal/ConfirmationStep/usePostCheckout.d.ts +1 -0
- package/dist/modals/CheckoutModal/InputAmount/InputAmount.d.ts +1 -0
- package/dist/modals/CheckoutModal/LoadingAccount.d.ts +6 -2
- package/dist/modals/CheckoutModal/SelectAsset.d.ts +1 -0
- package/dist/modals/CheckoutModal/SourceChange/SourceChange.d.ts +7 -2
- package/dist/modals/CheckoutModal/TransferToken/TransferToken.d.ts +1 -0
- package/dist/modals/CheckoutModal/VirtualFiatAccount/FiatAccountDetail.d.ts +1 -0
- package/dist/utils/directExecution.d.ts +2 -4
- package/dist/utils/flags/config.d.ts +8 -12
- package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
- package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
- package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
- package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
- package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
- package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
- package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
- package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
- package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
- package/dist/wallets/walletConnectors/index.js +61 -61
- package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
- package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
- package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
- package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
- package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
- package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
- package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
- package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
- package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
- package/package.json +6 -6
|
@@ -24,5 +24,6 @@ interface UsePostCheckoutResult {
|
|
|
24
24
|
postCheckoutError: PostCheckoutError | null;
|
|
25
25
|
postCheckoutStepMessage: string | null;
|
|
26
26
|
}
|
|
27
|
+
export declare function toPostCheckoutError(error: unknown): PostCheckoutError;
|
|
27
28
|
export declare function usePostCheckout({ onSuccess, }: UsePostCheckoutOptions): UsePostCheckoutResult;
|
|
28
29
|
export {};
|
|
@@ -2,7 +2,10 @@ import React from 'react';
|
|
|
2
2
|
import { type ConnectablePaymentMethodInfo, PaymentMethod, type PaymentMethodAccountInfo, type PaymentMethodBrokerageInfo, type PaymentMethodVirtualBankInfo } from '../../domains/paymentMethods';
|
|
3
3
|
import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, type ModalStepInfo } from './stepTransition';
|
|
4
4
|
export type LoadingAccountState = CheckoutModalCommonState;
|
|
5
|
-
|
|
5
|
+
type WithNewUser<T> = T & {
|
|
6
|
+
newUser?: boolean;
|
|
7
|
+
};
|
|
8
|
+
export type LoadingAccountNext = WithNewUser<{
|
|
6
9
|
usablePaymentMethod: PaymentMethod.ACCOUNT_BALANCE;
|
|
7
10
|
paymentMethodInfo: PaymentMethodAccountInfo;
|
|
8
11
|
} | {
|
|
@@ -15,7 +18,8 @@ export type LoadingAccountNext = {
|
|
|
15
18
|
/** Can be set to null to skip auto payment method selection */
|
|
16
19
|
usablePaymentMethod: null | PaymentMethod.TOKEN_TRANSFER;
|
|
17
20
|
paymentMethodInfo?: ConnectablePaymentMethodInfo;
|
|
18
|
-
}
|
|
21
|
+
}>;
|
|
19
22
|
export declare const LoadingAccountInfo: ModalStepInfo<FunCheckoutStep.LOADING_ACCOUNT>;
|
|
20
23
|
/** A placeholder component to handle redirecting to the checkout history page */
|
|
21
24
|
export declare function LoadingAccount({ modalState, onNext, }: ModalStepComponentProps<FunCheckoutStep.LOADING_ACCOUNT>): React.JSX.Element;
|
|
25
|
+
export {};
|
|
@@ -4,6 +4,7 @@ import { type PaymentMethodAccountInfo, type PaymentMethodBrokerageInfo } from '
|
|
|
4
4
|
import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, type ModalStepInfo } from './stepTransition';
|
|
5
5
|
export type SelectAssetState = CheckoutModalCommonState & {
|
|
6
6
|
paymentMethodInfo: PaymentMethodBrokerageInfo | PaymentMethodAccountInfo;
|
|
7
|
+
newUser?: boolean;
|
|
7
8
|
};
|
|
8
9
|
export type SelectAssetNext = {
|
|
9
10
|
paymentMethodInfo?: PaymentMethodBrokerageInfo | PaymentMethodAccountInfo;
|
|
@@ -3,8 +3,12 @@ import { type ConnectablePaymentMethodInfo, PaymentMethod, type PaymentMethodCar
|
|
|
3
3
|
import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, type ModalStepInfo } from '../stepTransition';
|
|
4
4
|
export type SourceChangeState = CheckoutModalCommonState & {
|
|
5
5
|
paymentMethodInfo: ConnectablePaymentMethodInfo | null;
|
|
6
|
+
newUser?: boolean;
|
|
6
7
|
};
|
|
7
|
-
|
|
8
|
+
type WithNewUser<T> = T & {
|
|
9
|
+
newUser?: boolean;
|
|
10
|
+
};
|
|
11
|
+
export type SourceChangeNext = WithNewUser<{
|
|
8
12
|
connectNew: false;
|
|
9
13
|
paymentMethodInfo: ConnectablePaymentMethodInfo;
|
|
10
14
|
brokerageFailed: false;
|
|
@@ -25,6 +29,7 @@ export type SourceChangeNext = {
|
|
|
25
29
|
} | {
|
|
26
30
|
brokerageFailed: true;
|
|
27
31
|
paymentMethodInfo: ConnectablePaymentMethodInfo;
|
|
28
|
-
}
|
|
32
|
+
}>;
|
|
29
33
|
export declare const SourceChangeInfo: ModalStepInfo<FunCheckoutStep.SOURCE_CHANGE>;
|
|
30
34
|
export declare function SourceChange({ modalState, onNext, onClose, setModalState, }: ModalStepComponentProps<FunCheckoutStep.SOURCE_CHANGE>): React.JSX.Element;
|
|
35
|
+
export {};
|
|
@@ -3,6 +3,7 @@ import { type TransferTokenDefault } from '~/hooks/useTokenChain';
|
|
|
3
3
|
import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, type ModalStepInfo } from '../stepTransition';
|
|
4
4
|
export type TransferTokenState = CheckoutModalCommonState & {
|
|
5
5
|
transferToken?: TransferTokenDefault;
|
|
6
|
+
newUser?: boolean;
|
|
6
7
|
};
|
|
7
8
|
export type TransferTokenNext = Record<string, never>;
|
|
8
9
|
export interface TokenTransferSourceChainsAndAssets {
|
|
@@ -3,6 +3,7 @@ import { type PaymentMethodVirtualBankInfo } from '~/domains/paymentMethods';
|
|
|
3
3
|
import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, type ModalStepInfo } from '../stepTransition';
|
|
4
4
|
export type FiatAccountDetailState = CheckoutModalCommonState & {
|
|
5
5
|
paymentMethodInfo: PaymentMethodVirtualBankInfo;
|
|
6
|
+
newUser?: boolean;
|
|
6
7
|
};
|
|
7
8
|
export type FiatAccountDetailNext = Record<string, never>;
|
|
8
9
|
export declare const AccountDetailsScreen: ({ modalState, onNext, }: ModalStepComponentProps<FunCheckoutStep.FIAT_ACCOUNT_DETAIL>) => React.JSX.Element;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
import type { DirectExecution } from '@funkit/api-base';
|
|
2
|
-
export declare function getDirectExecutionUpdatedTimeMs(
|
|
3
|
-
|
|
4
|
-
}): number;
|
|
5
|
-
export declare function getDirectExecutionRunTimeMs(directExecution: DirectExecution): number;
|
|
2
|
+
export declare function getDirectExecutionUpdatedTimeMs(directExecution: DirectExecution): number;
|
|
3
|
+
export declare function getDirectExecutionRunTimeSeconds(directExecution: DirectExecution): number;
|
|
@@ -53,24 +53,12 @@ export declare const flagConfig: {
|
|
|
53
53
|
values: string[];
|
|
54
54
|
}[];
|
|
55
55
|
value: true;
|
|
56
|
-
if_all?: undefined;
|
|
57
56
|
} | {
|
|
58
57
|
if_any: {
|
|
59
58
|
key: "apiKey";
|
|
60
59
|
type: "isAnyOf";
|
|
61
60
|
values: string[];
|
|
62
61
|
}[];
|
|
63
|
-
if_all: ({
|
|
64
|
-
key: "userId";
|
|
65
|
-
type: "pctRollout";
|
|
66
|
-
pct: number;
|
|
67
|
-
values?: undefined;
|
|
68
|
-
} | {
|
|
69
|
-
key: "apiKey";
|
|
70
|
-
type: "isAnyOf";
|
|
71
|
-
values: string[];
|
|
72
|
-
pct?: undefined;
|
|
73
|
-
})[];
|
|
74
62
|
value: true;
|
|
75
63
|
})[];
|
|
76
64
|
};
|
|
@@ -281,6 +269,14 @@ export declare const flagConfig: {
|
|
|
281
269
|
pct: number;
|
|
282
270
|
}[];
|
|
283
271
|
value: true;
|
|
272
|
+
} | {
|
|
273
|
+
if_any: {
|
|
274
|
+
key: "apiKey";
|
|
275
|
+
type: "isAnyOf";
|
|
276
|
+
values: string[];
|
|
277
|
+
}[];
|
|
278
|
+
value: true;
|
|
279
|
+
if_all?: undefined;
|
|
284
280
|
} | {
|
|
285
281
|
if_any: {
|
|
286
282
|
key: "userId";
|
|
@@ -1,52 +1,52 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import {
|
|
3
|
+
xdefiWallet
|
|
4
|
+
} from "./chunk-NO7XMBB5.js";
|
|
2
5
|
import {
|
|
3
6
|
zealWallet
|
|
4
7
|
} from "./chunk-JROWU5BP.js";
|
|
5
|
-
import {
|
|
6
|
-
walletConnectWallet
|
|
7
|
-
} from "./chunk-NP5QGWNL.js";
|
|
8
8
|
import {
|
|
9
9
|
zerionWallet
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ETTNDQQG.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
} from "./chunk-
|
|
12
|
+
tahoWallet
|
|
13
|
+
} from "./chunk-6P2EMPZI.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
16
|
-
} from "./chunk-
|
|
15
|
+
subWallet
|
|
16
|
+
} from "./chunk-4UM4GTKZ.js";
|
|
17
17
|
import {
|
|
18
18
|
tokenaryWallet
|
|
19
19
|
} from "./chunk-SLOIIJGP.js";
|
|
20
|
-
import {
|
|
21
|
-
tahoWallet
|
|
22
|
-
} from "./chunk-6P2EMPZI.js";
|
|
23
20
|
import {
|
|
24
21
|
talismanWallet
|
|
25
22
|
} from "./chunk-ABFSXBE6.js";
|
|
26
23
|
import {
|
|
27
24
|
trustWallet
|
|
28
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-IPOC2VJX.js";
|
|
29
26
|
import {
|
|
30
27
|
uniswapWallet
|
|
31
28
|
} from "./chunk-LH7BMNFZ.js";
|
|
32
29
|
import {
|
|
33
|
-
|
|
34
|
-
} from "./chunk-
|
|
35
|
-
import {
|
|
36
|
-
oneKeyWallet
|
|
37
|
-
} from "./chunk-4AD7VI2P.js";
|
|
30
|
+
tokenPocketWallet
|
|
31
|
+
} from "./chunk-FRGSRLTS.js";
|
|
38
32
|
import {
|
|
39
|
-
|
|
40
|
-
} from "./chunk-
|
|
33
|
+
walletConnectWallet
|
|
34
|
+
} from "./chunk-NP5QGWNL.js";
|
|
41
35
|
import {
|
|
42
36
|
phantomWallet
|
|
43
37
|
} from "./chunk-ZSVTX6EK.js";
|
|
44
38
|
import {
|
|
45
|
-
|
|
46
|
-
} from "./chunk-
|
|
39
|
+
rabbyWallet
|
|
40
|
+
} from "./chunk-BVX4XGNP.js";
|
|
41
|
+
import {
|
|
42
|
+
rainbowWallet
|
|
43
|
+
} from "./chunk-MOOBCMMB.js";
|
|
47
44
|
import {
|
|
48
45
|
ramperWallet
|
|
49
46
|
} from "./chunk-PIUNLQJG.js";
|
|
47
|
+
import {
|
|
48
|
+
roninWallet
|
|
49
|
+
} from "./chunk-25VW5TZP.js";
|
|
50
50
|
import {
|
|
51
51
|
safeWallet
|
|
52
52
|
} from "./chunk-BQQQL6UD.js";
|
|
@@ -55,99 +55,99 @@ import {
|
|
|
55
55
|
} from "./chunk-R6RWZRFF.js";
|
|
56
56
|
import {
|
|
57
57
|
safepalWallet
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-6LPM6LUQ.js";
|
|
59
59
|
import {
|
|
60
60
|
metaMaskWallet
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-N2NIIUW6.js";
|
|
62
|
+
import {
|
|
63
|
+
mewWallet
|
|
64
|
+
} from "./chunk-V57WLZEE.js";
|
|
62
65
|
import {
|
|
63
66
|
ledgerWallet
|
|
64
67
|
} from "./chunk-BRBKM4PW.js";
|
|
65
68
|
import {
|
|
66
|
-
|
|
67
|
-
} from "./chunk-
|
|
69
|
+
oktoWallet
|
|
70
|
+
} from "./chunk-ADIXAKUL.js";
|
|
68
71
|
import {
|
|
69
72
|
okxWallet
|
|
70
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-3U3BMEH5.js";
|
|
71
74
|
import {
|
|
72
75
|
omniWallet
|
|
73
76
|
} from "./chunk-7CUY5G6R.js";
|
|
74
|
-
import {
|
|
75
|
-
oktoWallet
|
|
76
|
-
} from "./chunk-ADIXAKUL.js";
|
|
77
77
|
import {
|
|
78
78
|
oneInchWallet
|
|
79
79
|
} from "./chunk-OESTDX6I.js";
|
|
80
80
|
import {
|
|
81
|
-
|
|
82
|
-
} from "./chunk-
|
|
81
|
+
oneKeyWallet
|
|
82
|
+
} from "./chunk-4AD7VI2P.js";
|
|
83
83
|
import {
|
|
84
|
-
|
|
85
|
-
} from "./chunk-
|
|
84
|
+
foxWallet
|
|
85
|
+
} from "./chunk-XYBEMO3C.js";
|
|
86
|
+
import {
|
|
87
|
+
frameWallet
|
|
88
|
+
} from "./chunk-ZMYVTWDF.js";
|
|
86
89
|
import {
|
|
87
90
|
frontierWallet
|
|
88
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-HKV7EMYZ.js";
|
|
89
92
|
import {
|
|
90
93
|
gateWallet
|
|
91
|
-
} from "./chunk-
|
|
92
|
-
import {
|
|
93
|
-
frameWallet
|
|
94
|
-
} from "./chunk-ZMYVTWDF.js";
|
|
94
|
+
} from "./chunk-3NC26XLM.js";
|
|
95
95
|
import {
|
|
96
96
|
imTokenWallet
|
|
97
97
|
} from "./chunk-COZ7MIQS.js";
|
|
98
|
-
import {
|
|
99
|
-
injectedWallet
|
|
100
|
-
} from "./chunk-VCVVV2K7.js";
|
|
101
98
|
import {
|
|
102
99
|
kresusWallet
|
|
103
100
|
} from "./chunk-MJXPRJZT.js";
|
|
104
101
|
import {
|
|
105
|
-
|
|
106
|
-
} from "./chunk-
|
|
107
|
-
import {
|
|
108
|
-
coin98Wallet
|
|
109
|
-
} from "./chunk-DTRYS3MO.js";
|
|
102
|
+
injectedWallet
|
|
103
|
+
} from "./chunk-VCVVV2K7.js";
|
|
110
104
|
import {
|
|
111
|
-
|
|
112
|
-
} from "./chunk-
|
|
105
|
+
bybitWallet
|
|
106
|
+
} from "./chunk-W5O4YSZN.js";
|
|
113
107
|
import {
|
|
114
108
|
clvWallet
|
|
115
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-LEXSM5KI.js";
|
|
116
110
|
import {
|
|
117
111
|
coinbaseWallet
|
|
118
112
|
} from "./chunk-H4IRCEZN.js";
|
|
119
113
|
import {
|
|
120
|
-
|
|
121
|
-
} from "./chunk-
|
|
114
|
+
coin98Wallet
|
|
115
|
+
} from "./chunk-KFFJPS5R.js";
|
|
116
|
+
import {
|
|
117
|
+
coreWallet
|
|
118
|
+
} from "./chunk-JXP2QPW7.js";
|
|
122
119
|
import {
|
|
123
120
|
dawnWallet
|
|
124
121
|
} from "./chunk-LN7OD5EC.js";
|
|
125
122
|
import {
|
|
126
|
-
|
|
127
|
-
} from "./chunk-
|
|
123
|
+
desigWallet
|
|
124
|
+
} from "./chunk-CTU6JCOK.js";
|
|
128
125
|
import {
|
|
129
|
-
|
|
130
|
-
} from "./chunk-
|
|
126
|
+
enkryptWallet
|
|
127
|
+
} from "./chunk-SJTXS4ZW.js";
|
|
131
128
|
import {
|
|
132
129
|
argentWallet
|
|
133
130
|
} from "./chunk-WSQ2YJO2.js";
|
|
134
131
|
import {
|
|
135
|
-
|
|
136
|
-
} from "./chunk-
|
|
132
|
+
bifrostWallet
|
|
133
|
+
} from "./chunk-545L7Y4M.js";
|
|
137
134
|
import {
|
|
138
135
|
bitskiWallet
|
|
139
136
|
} from "./chunk-P74YPRF6.js";
|
|
137
|
+
import {
|
|
138
|
+
bitgetWallet
|
|
139
|
+
} from "./chunk-7GSNBOD3.js";
|
|
140
140
|
import {
|
|
141
141
|
bitverseWallet
|
|
142
142
|
} from "./chunk-3HZRRP4Y.js";
|
|
143
|
-
import {
|
|
144
|
-
bloomWallet
|
|
145
|
-
} from "./chunk-S27IADFU.js";
|
|
146
|
-
import "./chunk-23WIEY36.js";
|
|
147
143
|
import {
|
|
148
144
|
braveWallet
|
|
149
145
|
} from "./chunk-PB254NQ4.js";
|
|
150
146
|
import "./chunk-WRA2DVJ7.js";
|
|
147
|
+
import {
|
|
148
|
+
bloomWallet
|
|
149
|
+
} from "./chunk-S27IADFU.js";
|
|
150
|
+
import "./chunk-23WIEY36.js";
|
|
151
151
|
export {
|
|
152
152
|
argentWallet,
|
|
153
153
|
bifrostWallet,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funkit/connect",
|
|
3
|
-
"version": "5.5.13-next.
|
|
3
|
+
"version": "5.5.13-next.1",
|
|
4
4
|
"description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -88,12 +88,12 @@
|
|
|
88
88
|
"ua-parser-js": "^1.0.37",
|
|
89
89
|
"use-debounce": "^10.0.5",
|
|
90
90
|
"uuid": "^9.0.1",
|
|
91
|
-
"@funkit/api-base": "1.9.5-next.
|
|
91
|
+
"@funkit/api-base": "1.9.5-next.1",
|
|
92
92
|
"@funkit/chains": "0.3.2-next.0",
|
|
93
|
-
"@funkit/core": "2.3.27-next.
|
|
94
|
-
"@funkit/
|
|
95
|
-
"@funkit/fun-relay": "0.1.9-next.
|
|
96
|
-
"@funkit/
|
|
93
|
+
"@funkit/core": "2.3.27-next.1",
|
|
94
|
+
"@funkit/utils": "1.1.4-next.0",
|
|
95
|
+
"@funkit/fun-relay": "0.1.9-next.1",
|
|
96
|
+
"@funkit/wagmi-tools": "3.0.49-next.1"
|
|
97
97
|
},
|
|
98
98
|
"repository": {
|
|
99
99
|
"type": "git",
|