@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.
Files changed (36) hide show
  1. package/dist/{chunk-VGM7OU7P.js → chunk-3A7E2IPT.js} +3 -1
  2. package/dist/{chunk-LKGTFED3.js → chunk-PKSFBURG.js} +3 -1
  3. package/dist/{chunk-HS4VFULE.js → chunk-VVHY6TFA.js} +865 -609
  4. package/dist/{chunk-WJHR5YCY.js → chunk-X5YTL45L.js} +865 -609
  5. package/dist/components/Box/Box.d.ts +12 -12
  6. package/dist/components/FunButton/FunButton.css.d.ts +1 -0
  7. package/dist/components/FunButton/FunIconButton.d.ts +5 -1
  8. package/dist/components/FunkitProvider/FunkitCheckoutContext.d.ts +6 -8
  9. package/dist/components/FunkitWeb2Provider/FunkitWeb2Provider.d.ts +17 -2
  10. package/dist/components/index.css +278 -225
  11. package/dist/components/index.js +2 -2
  12. package/dist/css/sprinkles.css.d.ts +52 -0
  13. package/dist/hooks/useCheckoutAccountBalanceTransfer.d.ts +20 -0
  14. package/dist/index.css +278 -225
  15. package/dist/index.js +3 -3
  16. package/dist/themes/darkTheme.d.ts +2 -0
  17. package/dist/themes/darkTheme.js +1 -1
  18. package/dist/themes/lightTheme.d.ts +2 -0
  19. package/dist/themes/lightTheme.js +1 -1
  20. package/dist/utils/checkout.d.ts +6 -4
  21. package/dist/wallets/walletConnectors/argentWallet/argentWallet.js +2 -2
  22. package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
  23. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
  24. package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
  25. package/dist/wallets/walletConnectors/index.js +52 -52
  26. package/dist/wallets/walletConnectors/ledgerWallet/ledgerWallet.js +2 -2
  27. package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
  28. package/dist/wallets/walletConnectors/oktoWallet/oktoWallet.js +2 -2
  29. package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
  30. package/dist/wallets/walletConnectors/omniWallet/omniWallet.js +2 -2
  31. package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
  32. package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
  33. package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
  34. package/dist/wallets/walletConnectors/walletConnectWallet/walletConnectWallet.js +2 -2
  35. package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
  36. 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-VGM7OU7P.js";
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-WJHR5YCY.js";
36
+ } from "./chunk-X5YTL45L.js";
37
37
  import {
38
38
  darkTheme
39
- } from "./chunk-LKGTFED3.js";
39
+ } from "./chunk-PKSFBURG.js";
40
40
  import "./chunk-VP4CAK4A.js";
41
41
 
42
42
  // src/components/ConnectOptions/MobileOptions.tsx
@@ -36,6 +36,8 @@ export declare const darkTheme: {
36
36
  rightTranslucentLine: string;
37
37
  leftTranslucentLine: string;
38
38
  standby: string;
39
+ loadingBase: string;
40
+ loadingAccent: string;
39
41
  };
40
42
  shadows: {
41
43
  connectButton: string;
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  darkTheme
4
- } from "../chunk-LKGTFED3.js";
4
+ } from "../chunk-PKSFBURG.js";
5
5
  import "../chunk-VP4CAK4A.js";
6
6
  export {
7
7
  darkTheme
@@ -36,6 +36,8 @@ export declare const lightTheme: {
36
36
  rightTranslucentLine: string;
37
37
  leftTranslucentLine: string;
38
38
  standby: string;
39
+ loadingBase: string;
40
+ loadingAccent: string;
39
41
  };
40
42
  shadows: {
41
43
  connectButton: string;
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  lightTheme
4
- } from "../chunk-VGM7OU7P.js";
4
+ } from "../chunk-3A7E2IPT.js";
5
5
  import "../chunk-VP4CAK4A.js";
6
6
  export {
7
7
  lightTheme
@@ -1,6 +1,7 @@
1
1
  import { CheckoutHistoryItem, CheckoutState, FunWallet } from '@funkit/core';
2
- import { Chain as ViemChain, Hex } from 'viem';
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, chainItem: ViemChain, wallet: FunWallet) => Promise<{
17
+ export declare const testAutoExecutionDuringCheckout: (config: FunkitCheckoutConfig, wallet: FunWallet) => Promise<{
17
18
  result: boolean;
18
- tokenTicker: null;
19
+ tokenTicker: string;
19
20
  } | {
20
21
  result: boolean;
21
- tokenTicker: string;
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,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  argentWallet
4
- } from "../chunk-DINSZSEC.js";
5
- import "../chunk-4ACOCJJZ.js";
4
+ } from "../chunk-32KC4FTG.js";
6
5
  import "../chunk-ZOLACFTK.js";
6
+ import "../chunk-4ACOCJJZ.js";
7
7
  export {
8
8
  argentWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  bifrostWallet
4
- } from "../chunk-RAKDFYVF.js";
5
- import "../chunk-4ACOCJJZ.js";
4
+ } from "../chunk-M4KIVTE3.js";
6
5
  import "../chunk-ZOLACFTK.js";
6
+ import "../chunk-4ACOCJJZ.js";
7
7
  export {
8
8
  bifrostWallet
9
9
  };
@@ -2,9 +2,9 @@
2
2
  import {
3
3
  bitKeepWallet,
4
4
  bitgetWallet
5
- } from "../chunk-4HP4HVWX.js";
6
- import "../chunk-4ACOCJJZ.js";
5
+ } from "../chunk-DTCZLIMY.js";
7
6
  import "../chunk-ZOLACFTK.js";
7
+ import "../chunk-4ACOCJJZ.js";
8
8
  export {
9
9
  bitKeepWallet,
10
10
  bitgetWallet
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  frontierWallet
4
- } from "../chunk-T2DNUVKD.js";
5
- import "../chunk-4ACOCJJZ.js";
4
+ } from "../chunk-4VG2VEG2.js";
6
5
  import "../chunk-ZOLACFTK.js";
6
+ import "../chunk-4ACOCJJZ.js";
7
7
  export {
8
8
  frontierWallet
9
9
  };
@@ -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-7Q7X4HIR.js";
7
+ } from "./chunk-BZWTTESU.js";
5
8
  import {
6
- xdefiWallet
7
- } from "./chunk-5ZLRNFDM.js";
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
- trustWallet
19
- } from "./chunk-QVJQ2MU7.js";
18
+ tokenPocketWallet
19
+ } from "./chunk-HHEZNZRR.js";
20
20
  import {
21
21
  uniswapWallet
22
22
  } from "./chunk-WCZ37NN2.js";
23
23
  import {
24
- tokenPocketWallet
25
- } from "./chunk-6GAD4OSN.js";
24
+ trustWallet
25
+ } from "./chunk-LU3HYLHT.js";
26
26
  import {
27
- walletConnectWallet
28
- } from "./chunk-TM5A4D5D.js";
27
+ xdefiWallet
28
+ } from "./chunk-5ZLRNFDM.js";
29
29
  import {
30
- zealWallet
31
- } from "./chunk-QBKHMTGI.js";
30
+ walletConnectWallet
31
+ } from "./chunk-Z47L7SO3.js";
32
32
  import {
33
33
  okxWallet
34
- } from "./chunk-MPVMJW2X.js";
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-4AGSKVK4.js";
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-3JTRMKJN.js";
70
+ } from "./chunk-TFHNF64Z.js";
77
71
  import {
78
- oneKeyWallet
79
- } from "./chunk-6CW3SAA3.js";
72
+ mewWallet
73
+ } from "./chunk-BZFEDZQJ.js";
80
74
  import {
81
- clvWallet
82
- } from "./chunk-C3X4W5P4.js";
75
+ omniWallet
76
+ } from "./chunk-HKBLG5YG.js";
83
77
  import {
84
- coin98Wallet
85
- } from "./chunk-PVTJW4KE.js";
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-DINSZSEC.js";
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-RAKDFYVF.js";
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
- coinbaseWallet
123
- } from "./chunk-WFTAXMQP.js";
124
- import "./chunk-UZ5XLPAW.js";
125
- import "./chunk-ZOLACFTK.js";
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,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  ledgerWallet
4
- } from "../chunk-4AGSKVK4.js";
5
- import "../chunk-4ACOCJJZ.js";
4
+ } from "../chunk-WPGD3FGN.js";
6
5
  import "../chunk-ZOLACFTK.js";
6
+ import "../chunk-4ACOCJJZ.js";
7
7
  export {
8
8
  ledgerWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  metaMaskWallet
4
- } from "../chunk-CESIYSTD.js";
5
- import "../chunk-4ACOCJJZ.js";
4
+ } from "../chunk-UM7QXLQE.js";
6
5
  import "../chunk-ZOLACFTK.js";
6
+ import "../chunk-4ACOCJJZ.js";
7
7
  export {
8
8
  metaMaskWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  oktoWallet
4
- } from "../chunk-3JTRMKJN.js";
5
- import "../chunk-4ACOCJJZ.js";
4
+ } from "../chunk-TFHNF64Z.js";
6
5
  import "../chunk-ZOLACFTK.js";
6
+ import "../chunk-4ACOCJJZ.js";
7
7
  export {
8
8
  oktoWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  okxWallet
4
- } from "../chunk-MPVMJW2X.js";
5
- import "../chunk-4ACOCJJZ.js";
4
+ } from "../chunk-EINKDQQW.js";
6
5
  import "../chunk-ZOLACFTK.js";
6
+ import "../chunk-4ACOCJJZ.js";
7
7
  export {
8
8
  okxWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  omniWallet
4
- } from "../chunk-2T3BP5YM.js";
5
- import "../chunk-4ACOCJJZ.js";
4
+ } from "../chunk-HKBLG5YG.js";
6
5
  import "../chunk-ZOLACFTK.js";
6
+ import "../chunk-4ACOCJJZ.js";
7
7
  export {
8
8
  omniWallet
9
9
  };
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import {
3
3
  rainbowWallet
4
- } from "../chunk-VDUTD5UR.js";
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,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  tokenPocketWallet
4
- } from "../chunk-6GAD4OSN.js";
5
- import "../chunk-4ACOCJJZ.js";
4
+ } from "../chunk-HHEZNZRR.js";
6
5
  import "../chunk-ZOLACFTK.js";
6
+ import "../chunk-4ACOCJJZ.js";
7
7
  export {
8
8
  tokenPocketWallet
9
9
  };
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import {
3
3
  trustWallet
4
- } from "../chunk-QVJQ2MU7.js";
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
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  walletConnectWallet
4
- } from "../chunk-TM5A4D5D.js";
5
- import "../chunk-4ACOCJJZ.js";
4
+ } from "../chunk-Z47L7SO3.js";
6
5
  import "../chunk-ZOLACFTK.js";
6
+ import "../chunk-4ACOCJJZ.js";
7
7
  export {
8
8
  walletConnectWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  zerionWallet
4
- } from "../chunk-7Q7X4HIR.js";
5
- import "../chunk-4ACOCJJZ.js";
4
+ } from "../chunk-BZWTTESU.js";
6
5
  import "../chunk-ZOLACFTK.js";
6
+ import "../chunk-4ACOCJJZ.js";
7
7
  export {
8
8
  zerionWallet
9
9
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funkit/connect",
3
- "version": "0.1.5",
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.4",
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",