@funkit/connect 6.0.2 → 6.0.4
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 +36 -0
- package/dist/{chunk-IVQ57535.js → chunk-7HKC2KCK.js} +2 -2
- package/dist/{chunk-IOMUPAAW.js → chunk-VQOGHHW2.js} +1 -1
- package/dist/{chunk-N6UWLAUQ.js → chunk-ZAZGUX6Z.js} +1 -1
- package/dist/components/Dialog/DialogContent.css.d.ts +4 -0
- package/dist/domains/relay.d.ts +7 -13
- package/dist/hooks/queries/useWithdrawalQuote.d.ts +6 -0
- package/dist/index.css +4 -4
- package/dist/index.js +234 -206
- package/dist/modals/CheckoutModal/LoadingAccount.d.ts +2 -7
- package/dist/modals/CheckoutModal/stepTransition.d.ts +2 -1
- package/dist/providers/FunkitCheckoutContext.d.ts +2 -1
- package/dist/themes/baseTheme.js +1 -1
- package/dist/themes/darkTheme.js +2 -2
- package/dist/themes/lightTheme.js +2 -2
- 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 +41 -41
- 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
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { FunCheckoutStartingStep } from '~/providers/FunkitCheckoutContext';
|
|
3
2
|
import { type ConnectablePaymentMethodInfo, PaymentMethod, type PaymentMethodAccountInfo, type PaymentMethodBrokerageInfo, type PaymentMethodVirtualBankInfo } from '../../domains/paymentMethods';
|
|
4
3
|
import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, type ModalStepInfo } from './stepTransition';
|
|
5
4
|
export type LoadingAccountState = CheckoutModalCommonState;
|
|
6
|
-
type
|
|
7
|
-
startingStep?: FunCheckoutStartingStep;
|
|
8
|
-
};
|
|
9
|
-
export type LoadingAccountNext = UserEntryContext<{
|
|
5
|
+
export type LoadingAccountNext = {
|
|
10
6
|
chosenPaymentMethod: PaymentMethod.ACCOUNT_BALANCE;
|
|
11
7
|
paymentMethodInfo: PaymentMethodAccountInfo;
|
|
12
8
|
} | {
|
|
@@ -19,8 +15,7 @@ export type LoadingAccountNext = UserEntryContext<{
|
|
|
19
15
|
/** Can be set to null to skip auto payment method selection */
|
|
20
16
|
chosenPaymentMethod: null | PaymentMethod.TOKEN_TRANSFER;
|
|
21
17
|
paymentMethodInfo?: ConnectablePaymentMethodInfo;
|
|
22
|
-
}
|
|
18
|
+
};
|
|
23
19
|
export declare const LoadingAccountInfo: ModalStepInfo<FunCheckoutStep.LOADING_ACCOUNT>;
|
|
24
20
|
/** A placeholder component to handle redirecting to the checkout history page */
|
|
25
21
|
export declare function LoadingAccount({ modalState, onNext, }: ModalStepComponentProps<FunCheckoutStep.LOADING_ACCOUNT>): React.JSX.Element;
|
|
26
|
-
export {};
|
|
@@ -3,7 +3,7 @@ import { type BridgeCustomerNext, type BridgeCustomerState } from '~/modals/Chec
|
|
|
3
3
|
import { type BridgeKycNext, type BridgeKycState } from '~/modals/CheckoutModal/VirtualFiatAccount/BridgeKyc';
|
|
4
4
|
import { type ErrorScreenState } from '~/modals/CheckoutModal/VirtualFiatAccount/ErrorScreen';
|
|
5
5
|
import { type VirtualFiatAccountNext, type VirtualFiatAccountState } from '~/modals/CheckoutModal/VirtualFiatAccount/VirtualFiatAccount';
|
|
6
|
-
import
|
|
6
|
+
import { FunCheckoutStartingStep, type FunkitActiveCheckoutItem } from '../../providers/FunkitCheckoutContext';
|
|
7
7
|
import { type FunkitTextCustomizationsConfig } from '../../providers/FunkitConfigContext';
|
|
8
8
|
import { type CheckoutCompleteNext, type CheckoutCompleteState } from './CheckoutComplete/CheckoutComplete';
|
|
9
9
|
import { type CheckoutHelpState } from './CheckoutHelp/CheckoutHelp';
|
|
@@ -27,6 +27,7 @@ export interface CheckoutModalCommonState {
|
|
|
27
27
|
isBlocked?: boolean;
|
|
28
28
|
/** Whether checkout is started in a defi mode which has various flow implications (most importantly targetAssetAmount must be set and is not editable throughout the checkout)*/
|
|
29
29
|
isDefiMode: boolean;
|
|
30
|
+
startingStep: FunCheckoutStartingStep;
|
|
30
31
|
targetChainId: string;
|
|
31
32
|
}
|
|
32
33
|
export interface ModalStepComponentProps<S extends FunCheckoutStep = FunCheckoutStep> {
|
|
@@ -18,7 +18,8 @@ export interface DynamicTargetAssetCandidate {
|
|
|
18
18
|
}
|
|
19
19
|
export declare enum FunCheckoutStartingStep {
|
|
20
20
|
SOURCE_CHANGE = "source_change",
|
|
21
|
-
CONFIRMATION = "confirmation"
|
|
21
|
+
CONFIRMATION = "confirmation",
|
|
22
|
+
SELECT_ASSET = "select_asset"
|
|
22
23
|
}
|
|
23
24
|
export interface FunkitCheckoutConfig extends Omit<ApiFunkitCheckoutConfig, 'generateActionsParams' | 'customRecipient' | 'modalTitle' | 'iconSrc' | 'modalTitleMeta' | 'externalCheckoutUserId'> {
|
|
24
25
|
/** List of contract action params **/
|
package/dist/themes/baseTheme.js
CHANGED
package/dist/themes/darkTheme.js
CHANGED
|
@@ -7,31 +7,31 @@ import {
|
|
|
7
7
|
} from "./chunk-RNBEDQHF.js";
|
|
8
8
|
import {
|
|
9
9
|
zerionWallet
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-Q3H3TRBS.js";
|
|
11
|
+
import {
|
|
12
|
+
subWallet
|
|
13
|
+
} from "./chunk-ZSI5N4VV.js";
|
|
11
14
|
import {
|
|
12
15
|
tahoWallet
|
|
13
16
|
} from "./chunk-ZZZRUXZE.js";
|
|
14
|
-
import {
|
|
15
|
-
subWallet
|
|
16
|
-
} from "./chunk-JWFF4AAL.js";
|
|
17
17
|
import {
|
|
18
18
|
talismanWallet
|
|
19
19
|
} from "./chunk-DRO6WYMM.js";
|
|
20
20
|
import {
|
|
21
21
|
tokenPocketWallet
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-J3LI3FYZ.js";
|
|
23
23
|
import {
|
|
24
24
|
tokenaryWallet
|
|
25
25
|
} from "./chunk-D6AOOO5F.js";
|
|
26
26
|
import {
|
|
27
27
|
trustWallet
|
|
28
|
-
} from "./chunk-
|
|
29
|
-
import {
|
|
30
|
-
walletConnectWallet
|
|
31
|
-
} from "./chunk-NP5QGWNL.js";
|
|
28
|
+
} from "./chunk-RKPCWHXL.js";
|
|
32
29
|
import {
|
|
33
30
|
uniswapWallet
|
|
34
31
|
} from "./chunk-LH7BMNFZ.js";
|
|
32
|
+
import {
|
|
33
|
+
walletConnectWallet
|
|
34
|
+
} from "./chunk-NP5QGWNL.js";
|
|
35
35
|
import {
|
|
36
36
|
phantomWallet
|
|
37
37
|
} from "./chunk-362NXNTM.js";
|
|
@@ -40,37 +40,37 @@ import {
|
|
|
40
40
|
} from "./chunk-BBOM42DL.js";
|
|
41
41
|
import {
|
|
42
42
|
rainbowWallet
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-3CICVJUN.js";
|
|
44
44
|
import {
|
|
45
45
|
roninWallet
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-QLVVUKYB.js";
|
|
47
47
|
import {
|
|
48
48
|
ramperWallet
|
|
49
49
|
} from "./chunk-BYXPFMI7.js";
|
|
50
|
+
import {
|
|
51
|
+
safepalWallet
|
|
52
|
+
} from "./chunk-EC6CHBSZ.js";
|
|
50
53
|
import {
|
|
51
54
|
safeWallet
|
|
52
55
|
} from "./chunk-BQQQL6UD.js";
|
|
53
56
|
import {
|
|
54
57
|
safeheronWallet
|
|
55
58
|
} from "./chunk-RZIO5TFF.js";
|
|
56
|
-
import {
|
|
57
|
-
safepalWallet
|
|
58
|
-
} from "./chunk-NT2HYJKW.js";
|
|
59
|
-
import {
|
|
60
|
-
mewWallet
|
|
61
|
-
} from "./chunk-OL5ZO7E4.js";
|
|
62
59
|
import {
|
|
63
60
|
ledgerWallet
|
|
64
61
|
} from "./chunk-BRBKM4PW.js";
|
|
65
62
|
import {
|
|
66
|
-
|
|
67
|
-
} from "./chunk-
|
|
63
|
+
metaMaskWallet
|
|
64
|
+
} from "./chunk-UYGJO62F.js";
|
|
65
|
+
import {
|
|
66
|
+
mewWallet
|
|
67
|
+
} from "./chunk-OL5ZO7E4.js";
|
|
68
68
|
import {
|
|
69
69
|
oktoWallet
|
|
70
70
|
} from "./chunk-ADIXAKUL.js";
|
|
71
71
|
import {
|
|
72
72
|
okxWallet
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-AFXHGWBH.js";
|
|
74
74
|
import {
|
|
75
75
|
omniWallet
|
|
76
76
|
} from "./chunk-7CUY5G6R.js";
|
|
@@ -82,43 +82,43 @@ import {
|
|
|
82
82
|
} from "./chunk-SHBUZ7U7.js";
|
|
83
83
|
import {
|
|
84
84
|
foxWallet
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-CNPKISHN.js";
|
|
86
86
|
import {
|
|
87
87
|
frameWallet
|
|
88
88
|
} from "./chunk-IFON7E6U.js";
|
|
89
89
|
import {
|
|
90
90
|
frontierWallet
|
|
91
|
-
} from "./chunk-
|
|
92
|
-
import {
|
|
93
|
-
gateWallet
|
|
94
|
-
} from "./chunk-FKJJQNKX.js";
|
|
91
|
+
} from "./chunk-VWCLFMWJ.js";
|
|
95
92
|
import {
|
|
96
93
|
imTokenWallet
|
|
97
94
|
} from "./chunk-COZ7MIQS.js";
|
|
95
|
+
import {
|
|
96
|
+
gateWallet
|
|
97
|
+
} from "./chunk-CJGUM55H.js";
|
|
98
98
|
import {
|
|
99
99
|
injectedWallet
|
|
100
100
|
} from "./chunk-XWUJE7MW.js";
|
|
101
101
|
import {
|
|
102
|
-
|
|
103
|
-
} from "./chunk-
|
|
104
|
-
import {
|
|
105
|
-
bybitWallet
|
|
106
|
-
} from "./chunk-2STUC6QL.js";
|
|
102
|
+
kresusWallet
|
|
103
|
+
} from "./chunk-MJXPRJZT.js";
|
|
107
104
|
import {
|
|
108
105
|
clvWallet
|
|
109
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-2GJQ4XZQ.js";
|
|
107
|
+
import {
|
|
108
|
+
braveWallet
|
|
109
|
+
} from "./chunk-BPZ2XJO2.js";
|
|
110
|
+
import {
|
|
111
|
+
coin98Wallet
|
|
112
|
+
} from "./chunk-KIDC67XJ.js";
|
|
110
113
|
import {
|
|
111
114
|
coinbaseWallet
|
|
112
115
|
} from "./chunk-H4IRCEZN.js";
|
|
113
116
|
import {
|
|
114
|
-
|
|
115
|
-
} from "./chunk-
|
|
117
|
+
coreWallet
|
|
118
|
+
} from "./chunk-JCHN6A47.js";
|
|
116
119
|
import {
|
|
117
120
|
dawnWallet
|
|
118
121
|
} from "./chunk-HWPKCIBE.js";
|
|
119
|
-
import {
|
|
120
|
-
coreWallet
|
|
121
|
-
} from "./chunk-VR4TBQ6S.js";
|
|
122
122
|
import {
|
|
123
123
|
enkryptWallet
|
|
124
124
|
} from "./chunk-OLOIXTYS.js";
|
|
@@ -130,24 +130,24 @@ import {
|
|
|
130
130
|
} from "./chunk-WSQ2YJO2.js";
|
|
131
131
|
import {
|
|
132
132
|
bifrostWallet
|
|
133
|
-
} from "./chunk-
|
|
133
|
+
} from "./chunk-UIASLGLV.js";
|
|
134
134
|
import {
|
|
135
135
|
bitskiWallet
|
|
136
136
|
} from "./chunk-HS3C7OQV.js";
|
|
137
137
|
import {
|
|
138
138
|
bitgetWallet
|
|
139
|
-
} from "./chunk-
|
|
139
|
+
} from "./chunk-5W7VDOCL.js";
|
|
140
140
|
import {
|
|
141
141
|
bitverseWallet
|
|
142
142
|
} from "./chunk-3HZRRP4Y.js";
|
|
143
143
|
import {
|
|
144
144
|
bloomWallet
|
|
145
145
|
} from "./chunk-S27IADFU.js";
|
|
146
|
-
import "./chunk-23WIEY36.js";
|
|
147
146
|
import {
|
|
148
|
-
|
|
149
|
-
} from "./chunk-
|
|
147
|
+
bybitWallet
|
|
148
|
+
} from "./chunk-LNEC5RNX.js";
|
|
150
149
|
import "./chunk-DNSG5Q7V.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": "6.0.
|
|
3
|
+
"version": "6.0.4",
|
|
4
4
|
"description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -89,12 +89,12 @@
|
|
|
89
89
|
"ua-parser-js": "^1.0.37",
|
|
90
90
|
"use-debounce": "^10.0.5",
|
|
91
91
|
"uuid": "^9.0.1",
|
|
92
|
-
"@funkit/api-base": "1.9.
|
|
93
|
-
"@funkit/core": "2.3.
|
|
94
|
-
"@funkit/wagmi-tools": "3.0.57",
|
|
95
|
-
"@funkit/utils": "1.1.8",
|
|
92
|
+
"@funkit/api-base": "1.9.13",
|
|
93
|
+
"@funkit/core": "2.3.37",
|
|
96
94
|
"@funkit/chains": "0.3.7",
|
|
97
|
-
"@funkit/fun-relay": "0.1
|
|
95
|
+
"@funkit/fun-relay": "1.0.1",
|
|
96
|
+
"@funkit/utils": "1.1.8",
|
|
97
|
+
"@funkit/wagmi-tools": "3.0.59"
|
|
98
98
|
},
|
|
99
99
|
"repository": {
|
|
100
100
|
"type": "git",
|