@funkit/connect 0.1.5 → 0.1.7
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/{chunk-VGM7OU7P.js → chunk-3A7E2IPT.js} +3 -1
- package/dist/{chunk-LKGTFED3.js → chunk-PKSFBURG.js} +3 -1
- package/dist/{chunk-HS4VFULE.js → chunk-VVHY6TFA.js} +865 -609
- package/dist/{chunk-WJHR5YCY.js → chunk-X5YTL45L.js} +865 -609
- package/dist/components/Box/Box.d.ts +12 -12
- package/dist/components/FunButton/FunButton.css.d.ts +1 -0
- package/dist/components/FunButton/FunIconButton.d.ts +5 -1
- package/dist/components/FunkitProvider/FunkitCheckoutContext.d.ts +6 -8
- package/dist/components/FunkitWeb2Provider/FunkitWeb2Provider.d.ts +17 -2
- package/dist/components/index.css +278 -225
- package/dist/components/index.js +2 -2
- package/dist/css/sprinkles.css.d.ts +52 -0
- package/dist/hooks/useCheckoutAccountBalanceTransfer.d.ts +20 -0
- package/dist/index.css +278 -225
- package/dist/index.js +3 -3
- package/dist/themes/darkTheme.d.ts +2 -0
- package/dist/themes/darkTheme.js +1 -1
- package/dist/themes/lightTheme.d.ts +2 -0
- package/dist/themes/lightTheme.js +1 -1
- package/dist/utils/checkout.d.ts +6 -4
- package/dist/wallets/walletConnectors/argentWallet/argentWallet.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/frontierWallet/frontierWallet.js +2 -2
- package/dist/wallets/walletConnectors/index.js +52 -52
- package/dist/wallets/walletConnectors/ledgerWallet/ledgerWallet.js +2 -2
- package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
- package/dist/wallets/walletConnectors/oktoWallet/oktoWallet.js +2 -2
- package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
- package/dist/wallets/walletConnectors/omniWallet/omniWallet.js +2 -2
- package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.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/walletConnectWallet/walletConnectWallet.js +2 -2
- package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
lightTheme
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-3A7E2IPT.js";
|
|
5
5
|
import {
|
|
6
6
|
ActionButton,
|
|
7
7
|
AppContext,
|
|
@@ -33,10 +33,10 @@ import {
|
|
|
33
33
|
useFunkitCheckout,
|
|
34
34
|
useTransactionStore,
|
|
35
35
|
useWalletConnectors
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-X5YTL45L.js";
|
|
37
37
|
import {
|
|
38
38
|
darkTheme
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-PKSFBURG.js";
|
|
40
40
|
import "./chunk-VP4CAK4A.js";
|
|
41
41
|
|
|
42
42
|
// src/components/ConnectOptions/MobileOptions.tsx
|
package/dist/themes/darkTheme.js
CHANGED
package/dist/utils/checkout.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { CheckoutHistoryItem, CheckoutState, FunWallet } from '@funkit/core';
|
|
2
|
-
import {
|
|
2
|
+
import { Hex } from 'viem';
|
|
3
3
|
import { FunkitCheckoutConfig } from '../components/FunkitProvider/FunkitCheckoutContext';
|
|
4
|
+
export declare const MOONPAY_TIME_ESTIMATE_MS = 120000;
|
|
4
5
|
/**
|
|
5
6
|
* Validates the checkout configuration.
|
|
6
7
|
* @param config - The checkout configuration to validate.
|
|
@@ -13,12 +14,12 @@ export declare function validateCheckoutConfig(config: FunkitCheckoutConfig): {
|
|
|
13
14
|
/**
|
|
14
15
|
* Checks whether user has sufficient targetAsset + targetAssetAmount in their funwallet
|
|
15
16
|
*/
|
|
16
|
-
export declare const testAutoExecutionDuringCheckout: (config: FunkitCheckoutConfig,
|
|
17
|
+
export declare const testAutoExecutionDuringCheckout: (config: FunkitCheckoutConfig, wallet: FunWallet) => Promise<{
|
|
17
18
|
result: boolean;
|
|
18
|
-
tokenTicker:
|
|
19
|
+
tokenTicker: string;
|
|
19
20
|
} | {
|
|
20
21
|
result: boolean;
|
|
21
|
-
tokenTicker:
|
|
22
|
+
tokenTicker: null;
|
|
22
23
|
}>;
|
|
23
24
|
export declare function getTokenAddress(tokenTicker: string, chainId: string): Promise<`0x${string}`>;
|
|
24
25
|
export declare function getFunkitEnvForDirectExecution({ chainId, }: {
|
|
@@ -90,3 +91,4 @@ export declare function categorizeCheckoutHistories(checkoutHistoryList: Checkou
|
|
|
90
91
|
depositAddrMap: CheckoutHistoryDepositAddrMap;
|
|
91
92
|
};
|
|
92
93
|
export declare function getCheckoutStateStepNumber(state: CheckoutState): 0 | 1 | 3 | 2;
|
|
94
|
+
export declare function formatTokenAmountForMoonpay(amount: number): string;
|
|
@@ -1,46 +1,46 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import {
|
|
3
|
+
zealWallet
|
|
4
|
+
} from "./chunk-QBKHMTGI.js";
|
|
2
5
|
import {
|
|
3
6
|
zerionWallet
|
|
4
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-BZWTTESU.js";
|
|
5
8
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./chunk-
|
|
9
|
+
rainbowWallet
|
|
10
|
+
} from "./chunk-TTTMI2Z2.js";
|
|
8
11
|
import {
|
|
9
12
|
tahoWallet
|
|
10
13
|
} from "./chunk-OOGGCCFQ.js";
|
|
11
|
-
import {
|
|
12
|
-
omniWallet
|
|
13
|
-
} from "./chunk-2T3BP5YM.js";
|
|
14
14
|
import {
|
|
15
15
|
talismanWallet
|
|
16
16
|
} from "./chunk-5UETJ33B.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
} from "./chunk-
|
|
18
|
+
tokenPocketWallet
|
|
19
|
+
} from "./chunk-HHEZNZRR.js";
|
|
20
20
|
import {
|
|
21
21
|
uniswapWallet
|
|
22
22
|
} from "./chunk-WCZ37NN2.js";
|
|
23
23
|
import {
|
|
24
|
-
|
|
25
|
-
} from "./chunk-
|
|
24
|
+
trustWallet
|
|
25
|
+
} from "./chunk-LU3HYLHT.js";
|
|
26
26
|
import {
|
|
27
|
-
|
|
28
|
-
} from "./chunk-
|
|
27
|
+
xdefiWallet
|
|
28
|
+
} from "./chunk-5ZLRNFDM.js";
|
|
29
29
|
import {
|
|
30
|
-
|
|
31
|
-
} from "./chunk-
|
|
30
|
+
walletConnectWallet
|
|
31
|
+
} from "./chunk-Z47L7SO3.js";
|
|
32
32
|
import {
|
|
33
33
|
okxWallet
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-EINKDQQW.js";
|
|
35
35
|
import {
|
|
36
36
|
phantomWallet
|
|
37
37
|
} from "./chunk-KUZFZL2D.js";
|
|
38
|
+
import {
|
|
39
|
+
oneKeyWallet
|
|
40
|
+
} from "./chunk-6CW3SAA3.js";
|
|
38
41
|
import {
|
|
39
42
|
rabbyWallet
|
|
40
43
|
} from "./chunk-TNC2B7LX.js";
|
|
41
|
-
import {
|
|
42
|
-
rainbowWallet
|
|
43
|
-
} from "./chunk-VDUTD5UR.js";
|
|
44
44
|
import {
|
|
45
45
|
safeheronWallet
|
|
46
46
|
} from "./chunk-7WTKIVCW.js";
|
|
@@ -53,76 +53,76 @@ import {
|
|
|
53
53
|
import {
|
|
54
54
|
subWallet
|
|
55
55
|
} from "./chunk-JU27WJ7W.js";
|
|
56
|
-
import {
|
|
57
|
-
frontierWallet
|
|
58
|
-
} from "./chunk-T2DNUVKD.js";
|
|
59
56
|
import {
|
|
60
57
|
imTokenWallet
|
|
61
58
|
} from "./chunk-4TBAMXD2.js";
|
|
59
|
+
import {
|
|
60
|
+
desigWallet
|
|
61
|
+
} from "./chunk-SXUVHZCG.js";
|
|
62
62
|
import {
|
|
63
63
|
injectedWallet
|
|
64
64
|
} from "./chunk-U32TVZ7G.js";
|
|
65
65
|
import {
|
|
66
66
|
ledgerWallet
|
|
67
|
-
} from "./chunk-
|
|
68
|
-
import {
|
|
69
|
-
mewWallet
|
|
70
|
-
} from "./chunk-BZFEDZQJ.js";
|
|
71
|
-
import {
|
|
72
|
-
metaMaskWallet
|
|
73
|
-
} from "./chunk-CESIYSTD.js";
|
|
67
|
+
} from "./chunk-WPGD3FGN.js";
|
|
74
68
|
import {
|
|
75
69
|
oktoWallet
|
|
76
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-TFHNF64Z.js";
|
|
77
71
|
import {
|
|
78
|
-
|
|
79
|
-
} from "./chunk-
|
|
72
|
+
mewWallet
|
|
73
|
+
} from "./chunk-BZFEDZQJ.js";
|
|
80
74
|
import {
|
|
81
|
-
|
|
82
|
-
} from "./chunk-
|
|
75
|
+
omniWallet
|
|
76
|
+
} from "./chunk-HKBLG5YG.js";
|
|
83
77
|
import {
|
|
84
|
-
|
|
85
|
-
} from "./chunk-
|
|
78
|
+
metaMaskWallet
|
|
79
|
+
} from "./chunk-UM7QXLQE.js";
|
|
86
80
|
import {
|
|
87
81
|
coreWallet
|
|
88
82
|
} from "./chunk-K342MEBF.js";
|
|
83
|
+
import {
|
|
84
|
+
coinbaseWallet
|
|
85
|
+
} from "./chunk-WFTAXMQP.js";
|
|
86
|
+
import "./chunk-UZ5XLPAW.js";
|
|
89
87
|
import {
|
|
90
88
|
dawnWallet
|
|
91
89
|
} from "./chunk-QJNS6IE4.js";
|
|
92
|
-
import {
|
|
93
|
-
desigWallet
|
|
94
|
-
} from "./chunk-SXUVHZCG.js";
|
|
95
|
-
import {
|
|
96
|
-
foxWallet
|
|
97
|
-
} from "./chunk-C6BBHBY3.js";
|
|
98
90
|
import {
|
|
99
91
|
enkryptWallet
|
|
100
92
|
} from "./chunk-ND76X5A2.js";
|
|
101
93
|
import {
|
|
102
94
|
frameWallet
|
|
103
95
|
} from "./chunk-MBFEMLUU.js";
|
|
96
|
+
import {
|
|
97
|
+
foxWallet
|
|
98
|
+
} from "./chunk-C6BBHBY3.js";
|
|
99
|
+
import {
|
|
100
|
+
frontierWallet
|
|
101
|
+
} from "./chunk-4VG2VEG2.js";
|
|
104
102
|
import {
|
|
105
103
|
argentWallet
|
|
106
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-32KC4FTG.js";
|
|
105
|
+
import {
|
|
106
|
+
bitKeepWallet,
|
|
107
|
+
bitgetWallet
|
|
108
|
+
} from "./chunk-DTCZLIMY.js";
|
|
107
109
|
import {
|
|
108
110
|
bifrostWallet
|
|
109
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-M4KIVTE3.js";
|
|
112
|
+
import "./chunk-ZOLACFTK.js";
|
|
110
113
|
import {
|
|
111
114
|
bitskiWallet
|
|
112
115
|
} from "./chunk-FL3REGA5.js";
|
|
113
|
-
import {
|
|
114
|
-
bitKeepWallet,
|
|
115
|
-
bitgetWallet
|
|
116
|
-
} from "./chunk-4HP4HVWX.js";
|
|
117
|
-
import "./chunk-4ACOCJJZ.js";
|
|
118
116
|
import {
|
|
119
117
|
braveWallet
|
|
120
118
|
} from "./chunk-INSQDNCE.js";
|
|
121
119
|
import {
|
|
122
|
-
|
|
123
|
-
} from "./chunk-
|
|
124
|
-
import
|
|
125
|
-
|
|
120
|
+
clvWallet
|
|
121
|
+
} from "./chunk-C3X4W5P4.js";
|
|
122
|
+
import {
|
|
123
|
+
coin98Wallet
|
|
124
|
+
} from "./chunk-PVTJW4KE.js";
|
|
125
|
+
import "./chunk-4ACOCJJZ.js";
|
|
126
126
|
export {
|
|
127
127
|
argentWallet,
|
|
128
128
|
bifrostWallet,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
rainbowWallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-4ACOCJJZ.js";
|
|
4
|
+
} from "../chunk-TTTMI2Z2.js";
|
|
6
5
|
import "../chunk-UZ5XLPAW.js";
|
|
7
6
|
import "../chunk-ZOLACFTK.js";
|
|
7
|
+
import "../chunk-4ACOCJJZ.js";
|
|
8
8
|
export {
|
|
9
9
|
rainbowWallet
|
|
10
10
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
trustWallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-4ACOCJJZ.js";
|
|
4
|
+
} from "../chunk-LU3HYLHT.js";
|
|
6
5
|
import "../chunk-UZ5XLPAW.js";
|
|
7
6
|
import "../chunk-ZOLACFTK.js";
|
|
7
|
+
import "../chunk-4ACOCJJZ.js";
|
|
8
8
|
export {
|
|
9
9
|
trustWallet
|
|
10
10
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funkit/connect",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
},
|
|
83
83
|
"dependencies": {
|
|
84
84
|
"@front-finance/link": "^1.1.9",
|
|
85
|
-
"@funkit/core": "^0.10.
|
|
85
|
+
"@funkit/core": "^0.10.5",
|
|
86
86
|
"@funkit/wagmi-tools": "^0.1.3",
|
|
87
87
|
"@moonpay/moonpay-react": "^1.4.1",
|
|
88
88
|
"@privy-io/js-sdk-core": "^0.11.0",
|