@funkit/connect 3.0.2 → 3.1.0
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 +51 -0
- package/dist/components/Dialog/Dialog.d.ts +10 -3
- package/dist/components/Dialog/DialogContent.css.d.ts +1 -0
- package/dist/components/DydxSwitchModalTab/DydxSwitchModalTab.d.ts +3 -4
- package/dist/components/ErrorBoundary/ErrorBoundary.d.ts +16 -0
- package/dist/components/ErrorBoundary/ErrorFallback.d.ts +2 -0
- package/dist/components/FunCountdown/FunCountdown.d.ts +5 -3
- package/dist/components/FunPayments/FunPaymentMeshType.d.ts +2 -2
- package/dist/components/FunPayments/FunPaymentMethods.d.ts +2 -1
- package/dist/components/FunPayments/FunPaymentMoonpayType.d.ts +4 -4
- package/dist/components/FunTransactionSummary/FunTransactionSummary.d.ts +1 -1
- package/dist/consts/customers.d.ts +1 -0
- package/dist/consts/payment.d.ts +1 -1
- package/dist/consts/quote.d.ts +1 -1
- package/dist/hooks/useAnimatedNavigation.d.ts +1 -0
- package/dist/hooks/useCheckoutAccountBalanceTransfer.d.ts +1 -1
- package/dist/hooks/useCheckoutType.d.ts +5 -11
- package/dist/hooks/useMesh.d.ts +1 -0
- package/dist/index.css +15 -15
- package/dist/index.d.ts +3 -2
- package/dist/index.js +4755 -4137
- package/dist/modals/CheckoutModal/CheckoutComplete.d.ts +13 -0
- package/dist/modals/{FunCheckoutModal/FunCheckoutPrimaryInfo.d.ts → CheckoutModal/CheckoutPrimaryInfo.d.ts} +1 -1
- package/dist/modals/CheckoutModal/ConfirmationStep.d.ts +36 -0
- package/dist/modals/CheckoutModal/ConnectExchange.d.ts +16 -0
- package/dist/modals/CheckoutModal/FunCheckoutModal.d.ts +8 -0
- package/dist/modals/CheckoutModal/InputAmount.d.ts +10 -0
- package/dist/modals/CheckoutModal/MeshVerification.d.ts +14 -0
- package/dist/modals/CheckoutModal/PaymentSetup.d.ts +38 -0
- package/dist/modals/CheckoutModal/SelectAsset.d.ts +15 -0
- package/dist/modals/CheckoutModal/SelectPaymentMethod.d.ts +18 -0
- package/dist/modals/CheckoutModal/stepTransition.d.ts +74 -0
- package/dist/modals/CheckoutModal/useAccountBalancePostCheckout.d.ts +3 -0
- package/dist/modals/CheckoutModal/useAssetPrice.d.ts +9 -0
- package/dist/modals/CheckoutModal/useBottomSection.d.ts +2 -0
- package/dist/modals/CheckoutModal/useRedirectToCheckoutHistory.d.ts +3 -0
- package/dist/modals/CheckoutModal/useSourceAssetConfirm.d.ts +25 -0
- package/dist/modals/CheckoutModal/useUpdateSourceAssetForCard.d.ts +2 -0
- package/dist/providers/FunkitCheckoutContext.d.ts +24 -6
- package/dist/providers/FunkitMeshProvider.d.ts +12 -6
- package/dist/providers/FunkitMoonpayProvider.d.ts +3 -1
- package/dist/utils/{assetAbort.d.ts → aborts.d.ts} +1 -0
- package/dist/utils/assets.d.ts +8 -1
- package/dist/utils/checkout.d.ts +2 -2
- package/dist/utils/exhaustiveCheck.d.ts +1 -0
- package/dist/utils/flags/config.d.ts +0 -10
- package/dist/utils/flags/index.d.ts +0 -1
- package/dist/utils/funLogger.d.ts +1 -1
- package/dist/utils/mesh.d.ts +1 -1
- package/dist/utils/purifyCheckoutHistoryItem.d.ts +3 -0
- 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/chunk-2EMZOYQI.js +101 -0
- package/dist/wallets/walletConnectors/chunk-5K4DIMYR.js +95 -0
- package/dist/wallets/walletConnectors/chunk-AUVBWDIK.js +102 -0
- package/dist/wallets/walletConnectors/chunk-AXPQHNUI.js +71 -0
- package/dist/wallets/walletConnectors/chunk-B7FHT3CB.js +94 -0
- package/dist/wallets/walletConnectors/chunk-EFIENLEE.js +98 -0
- package/dist/wallets/walletConnectors/chunk-FLTQRYFS.js +27 -0
- package/dist/wallets/walletConnectors/chunk-L7QI6PBN.js +108 -0
- package/dist/wallets/walletConnectors/chunk-QP2BIVXD.js +73 -0
- package/dist/wallets/walletConnectors/chunk-UWZQZY4S.js +149 -0
- package/dist/wallets/walletConnectors/chunk-UZEMNN3Q.js +96 -0
- 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 +70 -70
- 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 +19 -5
- package/dist/components/FunMeshVerificationStep/FunMeshVerificationStep.d.ts +0 -12
- package/dist/modals/FunCheckoutModal/FunCheckoutConfirmationStep.d.ts +0 -8
- package/dist/modals/FunCheckoutModal/FunCheckoutConnectExchangeStep.d.ts +0 -10
- package/dist/modals/FunCheckoutModal/FunCheckoutInputAmountStep.d.ts +0 -9
- package/dist/modals/FunCheckoutModal/FunCheckoutModal.d.ts +0 -22
- package/dist/modals/FunCheckoutModal/FunCheckoutSelectAssetStep.d.ts +0 -10
- package/dist/modals/FunCheckoutModal/FunCheckoutVerifyDetailsStep.d.ts +0 -9
|
@@ -1,154 +1,154 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
uniswapWallet
|
|
4
|
-
} from "./chunk-QFRZGNNV.js";
|
|
5
|
-
import {
|
|
6
|
-
zerionWallet
|
|
7
|
-
} from "./chunk-DBP432DI.js";
|
|
8
2
|
import {
|
|
9
3
|
zealWallet
|
|
10
4
|
} from "./chunk-BUUV6BS4.js";
|
|
5
|
+
import {
|
|
6
|
+
zerionWallet
|
|
7
|
+
} from "./chunk-KDGMYRMC.js";
|
|
11
8
|
import {
|
|
12
9
|
safeheronWallet
|
|
13
10
|
} from "./chunk-FCIRHRFH.js";
|
|
14
|
-
import {
|
|
15
|
-
tahoWallet
|
|
16
|
-
} from "./chunk-6AYBA6IH.js";
|
|
17
11
|
import {
|
|
18
12
|
tokenPocketWallet
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import {
|
|
21
|
-
subWallet
|
|
22
|
-
} from "./chunk-N3ELQYCY.js";
|
|
13
|
+
} from "./chunk-4HKPVECK.js";
|
|
23
14
|
import {
|
|
24
15
|
tokenaryWallet
|
|
25
16
|
} from "./chunk-FAYEL4JP.js";
|
|
17
|
+
import {
|
|
18
|
+
trustWallet
|
|
19
|
+
} from "./chunk-HLH777AC.js";
|
|
26
20
|
import {
|
|
27
21
|
walletConnectWallet
|
|
28
22
|
} from "./chunk-OFU3PEVT.js";
|
|
29
23
|
import {
|
|
30
|
-
|
|
31
|
-
} from "./chunk-
|
|
24
|
+
uniswapWallet
|
|
25
|
+
} from "./chunk-QFRZGNNV.js";
|
|
32
26
|
import {
|
|
33
|
-
|
|
34
|
-
} from "./chunk-
|
|
27
|
+
ledgerWallet
|
|
28
|
+
} from "./chunk-ZMHCZCGS.js";
|
|
35
29
|
import {
|
|
36
|
-
|
|
37
|
-
} from "./chunk-
|
|
30
|
+
subWallet
|
|
31
|
+
} from "./chunk-IR3YKU2N.js";
|
|
32
|
+
import {
|
|
33
|
+
xdefiWallet
|
|
34
|
+
} from "./chunk-RVIZMVFR.js";
|
|
38
35
|
import {
|
|
39
36
|
ramperWallet
|
|
40
37
|
} from "./chunk-TKXQYHWJ.js";
|
|
41
38
|
import {
|
|
42
|
-
|
|
43
|
-
} from "./chunk-
|
|
39
|
+
roninWallet
|
|
40
|
+
} from "./chunk-25VW5TZP.js";
|
|
44
41
|
import {
|
|
45
|
-
|
|
46
|
-
} from "./chunk-
|
|
42
|
+
rainbowWallet
|
|
43
|
+
} from "./chunk-5NZLWT3Y.js";
|
|
47
44
|
import {
|
|
48
45
|
safeWallet
|
|
49
46
|
} from "./chunk-Z2QCE6O6.js";
|
|
50
|
-
import {
|
|
51
|
-
roninWallet
|
|
52
|
-
} from "./chunk-63YLN6R5.js";
|
|
53
47
|
import {
|
|
54
48
|
safepalWallet
|
|
55
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-ZCKNEKQQ.js";
|
|
50
|
+
import {
|
|
51
|
+
tahoWallet
|
|
52
|
+
} from "./chunk-6AYBA6IH.js";
|
|
56
53
|
import {
|
|
57
54
|
talismanWallet
|
|
58
55
|
} from "./chunk-OTXHQMSG.js";
|
|
59
56
|
import {
|
|
60
|
-
|
|
61
|
-
} from "./chunk-
|
|
57
|
+
coreWallet
|
|
58
|
+
} from "./chunk-57UUMOOZ.js";
|
|
62
59
|
import {
|
|
63
|
-
|
|
64
|
-
} from "./chunk-
|
|
60
|
+
okxWallet
|
|
61
|
+
} from "./chunk-VU6B3HMD.js";
|
|
65
62
|
import {
|
|
66
|
-
|
|
67
|
-
} from "./chunk-
|
|
63
|
+
oktoWallet
|
|
64
|
+
} from "./chunk-MBQTOALG.js";
|
|
68
65
|
import {
|
|
69
66
|
omniWallet
|
|
70
67
|
} from "./chunk-II6YBG2B.js";
|
|
71
68
|
import {
|
|
72
|
-
|
|
73
|
-
} from "./chunk-
|
|
74
|
-
import {
|
|
75
|
-
okxWallet
|
|
76
|
-
} from "./chunk-5HXH52SO.js";
|
|
69
|
+
metaMaskWallet
|
|
70
|
+
} from "./chunk-YRK6XWL6.js";
|
|
77
71
|
import {
|
|
78
72
|
oneKeyWallet
|
|
79
73
|
} from "./chunk-ZP2SV6KN.js";
|
|
74
|
+
import {
|
|
75
|
+
phantomWallet
|
|
76
|
+
} from "./chunk-KEVUI6AA.js";
|
|
80
77
|
import {
|
|
81
78
|
oneInchWallet
|
|
82
79
|
} from "./chunk-I7MKK24W.js";
|
|
83
80
|
import {
|
|
84
|
-
|
|
85
|
-
} from "./chunk-
|
|
81
|
+
rabbyWallet
|
|
82
|
+
} from "./chunk-H5LLXNOI.js";
|
|
86
83
|
import {
|
|
87
|
-
|
|
88
|
-
} from "./chunk-
|
|
84
|
+
frontierWallet
|
|
85
|
+
} from "./chunk-HMDUVRZP.js";
|
|
89
86
|
import {
|
|
90
87
|
frameWallet
|
|
91
88
|
} from "./chunk-KPVNJO3R.js";
|
|
92
89
|
import {
|
|
93
|
-
|
|
94
|
-
} from "./chunk-
|
|
95
|
-
import {
|
|
96
|
-
ledgerWallet
|
|
97
|
-
} from "./chunk-ZMHCZCGS.js";
|
|
90
|
+
imTokenWallet
|
|
91
|
+
} from "./chunk-BMJOLT2N.js";
|
|
98
92
|
import {
|
|
99
93
|
injectedWallet
|
|
100
94
|
} from "./chunk-E5NYR4SS.js";
|
|
101
95
|
import {
|
|
102
96
|
kresusWallet
|
|
103
97
|
} from "./chunk-QQJKQCII.js";
|
|
98
|
+
import {
|
|
99
|
+
gateWallet
|
|
100
|
+
} from "./chunk-5MVCKMZT.js";
|
|
101
|
+
import {
|
|
102
|
+
mewWallet
|
|
103
|
+
} from "./chunk-CVYXTHZ6.js";
|
|
104
104
|
import {
|
|
105
105
|
clvWallet
|
|
106
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-J2BF4L2V.js";
|
|
107
|
+
import {
|
|
108
|
+
braveWallet
|
|
109
|
+
} from "./chunk-NUEOWEZS.js";
|
|
107
110
|
import {
|
|
108
111
|
coinbaseWallet
|
|
109
112
|
} from "./chunk-PNEDRY6O.js";
|
|
110
113
|
import {
|
|
111
|
-
|
|
112
|
-
} from "./chunk-
|
|
113
|
-
import {
|
|
114
|
-
desigWallet
|
|
115
|
-
} from "./chunk-44CHUPEQ.js";
|
|
116
|
-
import {
|
|
117
|
-
coin98Wallet
|
|
118
|
-
} from "./chunk-ZXGMW3OS.js";
|
|
114
|
+
bitgetWallet
|
|
115
|
+
} from "./chunk-B5D7DYVV.js";
|
|
119
116
|
import {
|
|
120
117
|
dawnWallet
|
|
121
118
|
} from "./chunk-KCTWDMQP.js";
|
|
122
|
-
import {
|
|
123
|
-
coreWallet
|
|
124
|
-
} from "./chunk-MOOW2AOC.js";
|
|
125
119
|
import {
|
|
126
120
|
enkryptWallet
|
|
127
121
|
} from "./chunk-JJ4DXD7R.js";
|
|
128
122
|
import {
|
|
129
|
-
|
|
130
|
-
} from "./chunk-
|
|
123
|
+
desigWallet
|
|
124
|
+
} from "./chunk-44CHUPEQ.js";
|
|
131
125
|
import {
|
|
132
|
-
|
|
133
|
-
} from "./chunk-
|
|
126
|
+
foxWallet
|
|
127
|
+
} from "./chunk-OKUX4BC4.js";
|
|
134
128
|
import {
|
|
135
129
|
argentWallet
|
|
136
130
|
} from "./chunk-ZHFISYEQ.js";
|
|
131
|
+
import {
|
|
132
|
+
bifrostWallet
|
|
133
|
+
} from "./chunk-4K3EKHXR.js";
|
|
137
134
|
import {
|
|
138
135
|
bitskiWallet
|
|
139
136
|
} from "./chunk-OCCT5PIN.js";
|
|
140
|
-
import {
|
|
141
|
-
bitgetWallet
|
|
142
|
-
} from "./chunk-IEVZW3XR.js";
|
|
143
|
-
import "./chunk-RETKWSKD.js";
|
|
144
137
|
import {
|
|
145
138
|
bitverseWallet
|
|
146
139
|
} from "./chunk-BQEOIDHP.js";
|
|
147
|
-
import "./chunk-23WIEY36.js";
|
|
148
140
|
import {
|
|
149
|
-
|
|
150
|
-
} from "./chunk-
|
|
141
|
+
bloomWallet
|
|
142
|
+
} from "./chunk-J64P6XK3.js";
|
|
143
|
+
import "./chunk-RETKWSKD.js";
|
|
144
|
+
import {
|
|
145
|
+
bybitWallet
|
|
146
|
+
} from "./chunk-HCKLWBE5.js";
|
|
147
|
+
import {
|
|
148
|
+
coin98Wallet
|
|
149
|
+
} from "./chunk-WAMHUVNP.js";
|
|
151
150
|
import "./chunk-WRA2DVJ7.js";
|
|
151
|
+
import "./chunk-23WIEY36.js";
|
|
152
152
|
export {
|
|
153
153
|
argentWallet,
|
|
154
154
|
bifrostWallet,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
metaMaskWallet
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-YRK6XWL6.js";
|
|
5
5
|
import "../chunk-RETKWSKD.js";
|
|
6
|
-
import "../chunk-23WIEY36.js";
|
|
7
6
|
import "../chunk-WRA2DVJ7.js";
|
|
7
|
+
import "../chunk-23WIEY36.js";
|
|
8
8
|
export {
|
|
9
9
|
metaMaskWallet
|
|
10
10
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
okxWallet
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-VU6B3HMD.js";
|
|
5
5
|
import "../chunk-RETKWSKD.js";
|
|
6
|
-
import "../chunk-23WIEY36.js";
|
|
7
6
|
import "../chunk-WRA2DVJ7.js";
|
|
7
|
+
import "../chunk-23WIEY36.js";
|
|
8
8
|
export {
|
|
9
9
|
okxWallet
|
|
10
10
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
rainbowWallet
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-5NZLWT3Y.js";
|
|
5
5
|
import "../chunk-RETKWSKD.js";
|
|
6
|
-
import "../chunk-23WIEY36.js";
|
|
7
6
|
import "../chunk-WRA2DVJ7.js";
|
|
7
|
+
import "../chunk-23WIEY36.js";
|
|
8
8
|
export {
|
|
9
9
|
rainbowWallet
|
|
10
10
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
tokenPocketWallet
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-4HKPVECK.js";
|
|
5
5
|
import "../chunk-RETKWSKD.js";
|
|
6
|
-
import "../chunk-23WIEY36.js";
|
|
7
6
|
import "../chunk-WRA2DVJ7.js";
|
|
7
|
+
import "../chunk-23WIEY36.js";
|
|
8
8
|
export {
|
|
9
9
|
tokenPocketWallet
|
|
10
10
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
trustWallet
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-HLH777AC.js";
|
|
5
5
|
import "../chunk-RETKWSKD.js";
|
|
6
|
-
import "../chunk-23WIEY36.js";
|
|
7
6
|
import "../chunk-WRA2DVJ7.js";
|
|
7
|
+
import "../chunk-23WIEY36.js";
|
|
8
8
|
export {
|
|
9
9
|
trustWallet
|
|
10
10
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
zerionWallet
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-KDGMYRMC.js";
|
|
5
5
|
import "../chunk-RETKWSKD.js";
|
|
6
|
-
import "../chunk-23WIEY36.js";
|
|
7
6
|
import "../chunk-WRA2DVJ7.js";
|
|
7
|
+
import "../chunk-23WIEY36.js";
|
|
8
8
|
export {
|
|
9
9
|
zerionWallet
|
|
10
10
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funkit/connect",
|
|
3
|
-
"version": "3.0
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -44,7 +44,15 @@
|
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@aws-sdk/client-s3": "^3.600.0",
|
|
47
|
+
"@chromatic-com/storybook": "^1.6.1",
|
|
47
48
|
"@funkit/eslint-config": "^1.1.1",
|
|
49
|
+
"@storybook/addon-essentials": "^8.2.7",
|
|
50
|
+
"@storybook/addon-interactions": "^8.2.7",
|
|
51
|
+
"@storybook/addon-links": "^8.2.7",
|
|
52
|
+
"@storybook/blocks": "^8.2.7",
|
|
53
|
+
"@storybook/react": "^8.2.7",
|
|
54
|
+
"@storybook/react-vite": "^8.2.7",
|
|
55
|
+
"@storybook/test": "^8.2.7",
|
|
48
56
|
"@testing-library/jest-dom": "^6.2.0",
|
|
49
57
|
"@testing-library/react": "^15.0.7",
|
|
50
58
|
"@testing-library/user-event": "^14.5.2",
|
|
@@ -52,12 +60,16 @@
|
|
|
52
60
|
"@types/ua-parser-js": "^0.7.39",
|
|
53
61
|
"@vanilla-extract/css-utils": "0.1.3",
|
|
54
62
|
"@vanilla-extract/private": "^1.0.3",
|
|
63
|
+
"@vanilla-extract/vite-plugin": "^4.0.13",
|
|
64
|
+
"@vitejs/plugin-react": "^4.3.1",
|
|
55
65
|
"autoprefixer": "^10.4.16",
|
|
56
66
|
"eslint": "^8.57.0",
|
|
57
67
|
"jsdom": "^23.0.1",
|
|
58
68
|
"nock": "^13.4.0",
|
|
59
69
|
"postcss": "^8.4.32",
|
|
70
|
+
"prop-types": "^15.8.1",
|
|
60
71
|
"react": "^18.3.0",
|
|
72
|
+
"storybook": "^8.2.7",
|
|
61
73
|
"tsx": "^4.15.7",
|
|
62
74
|
"vitest": "^2.0.5"
|
|
63
75
|
},
|
|
@@ -79,9 +91,9 @@
|
|
|
79
91
|
"react-virtuoso": "4.10.1",
|
|
80
92
|
"ua-parser-js": "^1.0.37",
|
|
81
93
|
"uuid": "^9.0.1",
|
|
82
|
-
"@funkit/core": "2.1.
|
|
83
|
-
"@funkit/api-base": "1.
|
|
84
|
-
"@funkit/wagmi-tools": "3.0.
|
|
94
|
+
"@funkit/core": "2.1.6",
|
|
95
|
+
"@funkit/api-base": "1.1.1",
|
|
96
|
+
"@funkit/wagmi-tools": "3.0.8"
|
|
85
97
|
},
|
|
86
98
|
"repository": {
|
|
87
99
|
"type": "git",
|
|
@@ -98,6 +110,8 @@
|
|
|
98
110
|
"typegen": "tsc --emitDeclarationOnly || true",
|
|
99
111
|
"typegen:watch": "tsc --emitDeclarationOnly --watch",
|
|
100
112
|
"lint": "eslint \"**/*.{ts,tsx,js,jsx}\"",
|
|
101
|
-
"lint:fix": "eslint \"**/*.{ts,tsx,js,jsx}\" --fix"
|
|
113
|
+
"lint:fix": "eslint \"**/*.{ts,tsx,js,jsx}\" --fix",
|
|
114
|
+
"storybook": "storybook dev -p 6006",
|
|
115
|
+
"build-storybook": "storybook build"
|
|
102
116
|
}
|
|
103
117
|
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { MeshExchanges } from '../../utils/mesh';
|
|
3
|
-
interface FunMeshVerificationStepProps {
|
|
4
|
-
previewId: string;
|
|
5
|
-
previewExpirationMs: number;
|
|
6
|
-
transferToAddress: string;
|
|
7
|
-
exchange: MeshExchanges;
|
|
8
|
-
accessToken: string;
|
|
9
|
-
onSuccess: () => void;
|
|
10
|
-
}
|
|
11
|
-
export declare function FunMeshVerificationStep({ previewId, previewExpirationMs, transferToAddress, onSuccess, exchange, accessToken, }: FunMeshVerificationStepProps): React.JSX.Element;
|
|
12
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export declare function FunCheckoutConfirmationStep({ checkoutId, regenerateQuoteFn, onFinish, isRegeneratingQuote, onConfirmClickCallback, }: {
|
|
3
|
-
checkoutId: string | null;
|
|
4
|
-
regenerateQuoteFn: () => void;
|
|
5
|
-
onFinish: (depositAddress: string) => void;
|
|
6
|
-
isRegeneratingQuote: boolean;
|
|
7
|
-
onConfirmClickCallback: () => void;
|
|
8
|
-
}): React.JSX.Element;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { PaymentMethodInfo } from '../../consts/payment';
|
|
3
|
-
import { MeshExchanges } from '../../utils/mesh';
|
|
4
|
-
interface Props {
|
|
5
|
-
exchange: MeshExchanges;
|
|
6
|
-
onSoftHide: (p: boolean) => void;
|
|
7
|
-
onSetup: (newPaymentMethodInfo: PaymentMethodInfo) => void;
|
|
8
|
-
}
|
|
9
|
-
export declare const FunCheckoutConnectExchangeStep: ({ exchange, onSoftHide, onSetup, }: Props) => React.JSX.Element;
|
|
10
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface FunCheckoutInputAmountStepProps {
|
|
3
|
-
checkoutId: string;
|
|
4
|
-
onContinue: () => void;
|
|
5
|
-
ticker: string | undefined;
|
|
6
|
-
isLoadingGeoCheck: boolean;
|
|
7
|
-
}
|
|
8
|
-
export declare const FunCheckoutInputAmountStep: ({ checkoutId, onContinue, ticker, isLoadingGeoCheck, }: FunCheckoutInputAmountStepProps) => React.JSX.Element;
|
|
9
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { FunButtonProps } from '../../components/FunButton/FunButton';
|
|
3
|
-
export declare const CHECKOUT_MODAL_BOTTOM_BAR_ID = "checkout-modal-bottom-bar";
|
|
4
|
-
export declare enum FunCheckoutStep {
|
|
5
|
-
INPUT_AMOUNT = "input_amount",
|
|
6
|
-
SELECT_PAYMENT_METHOD = "select_payment",
|
|
7
|
-
CONFIRMATION = "confirmation",
|
|
8
|
-
PAYMENT_SETUP = "payment_setup",
|
|
9
|
-
CONNECT_EXCHANGE = "connect_exchange",
|
|
10
|
-
SELECT_ASSET = "select_asset",
|
|
11
|
-
MESH_VERIFICATION = "mesh_verification"
|
|
12
|
-
}
|
|
13
|
-
interface FunCheckoutModalProps {
|
|
14
|
-
open: boolean;
|
|
15
|
-
onClose: () => void;
|
|
16
|
-
checkoutId: string | null;
|
|
17
|
-
isLoadingGeoCheck: boolean;
|
|
18
|
-
isCheckoutBlocked: boolean;
|
|
19
|
-
}
|
|
20
|
-
export declare function FunCheckoutModal({ onClose, open, checkoutId, isLoadingGeoCheck, isCheckoutBlocked, }: FunCheckoutModalProps): React.JSX.Element;
|
|
21
|
-
export declare const geoCheckInProgressProps: FunButtonProps;
|
|
22
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* Based on which payment method was selected, allow users to select which asset they want to fund
|
|
4
|
-
*/
|
|
5
|
-
export declare function FunCheckoutSelectAssetStep({ checkoutId, onFinish, onBack, isOnFinishLoading, }: {
|
|
6
|
-
checkoutId: string | null;
|
|
7
|
-
isOnFinishLoading: boolean;
|
|
8
|
-
onFinish: () => void;
|
|
9
|
-
onBack: () => void;
|
|
10
|
-
}): React.JSX.Element;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { PaymentMethodInfo } from '../../consts/payment';
|
|
3
|
-
interface FunCheckoutVerifyDetailsStepProps {
|
|
4
|
-
checkoutId: string;
|
|
5
|
-
onSelectPaymentMethod: (p: PaymentMethodInfo) => void;
|
|
6
|
-
isLoadingGeoCheck: boolean;
|
|
7
|
-
}
|
|
8
|
-
export declare function FunCheckoutVerifyDetailsStep({ checkoutId, onSelectPaymentMethod, isLoadingGeoCheck, }: FunCheckoutVerifyDetailsStepProps): React.JSX.Element;
|
|
9
|
-
export {};
|