@funkit/connect 9.13.0 → 9.15.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.
Files changed (75) hide show
  1. package/CHANGELOG.md +54 -0
  2. package/dist/__generated__/default_configs.d.ts +8 -11
  3. package/dist/__generated__/default_feature_gates.d.ts +3 -2
  4. package/dist/clients/aave.d.ts +92 -0
  5. package/dist/clients/aave.js +156 -0
  6. package/dist/clients/{chunk-LMEQD56M.js → chunk-PLDXBAAH.js} +2 -1
  7. package/dist/clients/fanatics.js +1 -1
  8. package/dist/clients/lighter.d.ts +33 -2
  9. package/dist/clients/lighter.js +124 -2
  10. package/dist/clients/polymarket.d.ts +30 -1
  11. package/dist/clients/polymarket.js +153 -4
  12. package/dist/components/CopyAddress/CopyInputDisplayedAddress.css.d.ts +1 -0
  13. package/dist/components/CopyAddress/CopyInputDisplayedAddress.d.ts +6 -0
  14. package/dist/components/FreeUsdcBanner/FreeUsdcBanner.d.ts +5 -0
  15. package/dist/components/FunPayments/FunPaymentMethods.d.ts +16 -0
  16. package/dist/components/Icons/CashAppIcon.d.ts +4 -0
  17. package/dist/consts/customers.d.ts +8 -0
  18. package/dist/consts/polymarket.d.ts +7 -0
  19. package/dist/domains/paymentMethods.d.ts +9 -1
  20. package/dist/domains/quote.d.ts +11 -0
  21. package/dist/hooks/usePaymentSources.d.ts +1 -0
  22. package/dist/index.css +22 -15
  23. package/dist/index.js +3017 -2395
  24. package/dist/modals/CheckoutModal/InputAmount/InputAmount.d.ts +4 -0
  25. package/dist/modals/CheckoutModal/InputAmount/aaveClient.d.ts +20 -0
  26. package/dist/modals/CheckoutModal/InputAmount/useAaveNativeSupply.d.ts +44 -0
  27. package/dist/modals/CheckoutModal/SourceChange/SourceChange.d.ts +8 -0
  28. package/dist/modals/CheckoutModal/SourceChange/SourceList.d.ts +7 -1
  29. package/dist/modals/CheckoutModal/SourceChange/buildSourceGroups.d.ts +31 -8
  30. package/dist/modals/WithdrawalModal/WithdrawAmountInput.d.ts +10 -4
  31. package/dist/modals/WithdrawalModal/WithdrawalContent.d.ts +32 -1
  32. package/dist/modals/WithdrawalModal/WithdrawalSuccess.d.ts +0 -1
  33. package/dist/modals/WithdrawalModal/useWithdrawal.d.ts +1 -2
  34. package/dist/providers/FunkitCheckoutContext/index.d.ts +8 -0
  35. package/dist/providers/FunkitCheckoutContext/types.d.ts +6 -0
  36. package/dist/providers/FunkitConfigContext.d.ts +2 -0
  37. package/dist/wagmi/actions.d.ts +1 -1
  38. package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
  39. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
  40. package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
  41. package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
  42. package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
  43. package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
  44. package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
  45. package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
  46. package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
  47. package/dist/wallets/walletConnectors/index.js +40 -40
  48. package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
  49. package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
  50. package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
  51. package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
  52. package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
  53. package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
  54. package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
  55. package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
  56. package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
  57. package/package.json +10 -5
  58. package/dist/wallets/walletConnectors/{chunk-VMMROPXK.js → chunk-34HACM5U.js} +3 -3
  59. package/dist/wallets/walletConnectors/{chunk-3ZJN3PXP.js → chunk-5TN5Z2WY.js} +3 -3
  60. package/dist/wallets/walletConnectors/{chunk-OD6B2ISG.js → chunk-6DRCY52E.js} +3 -3
  61. package/dist/wallets/walletConnectors/{chunk-IRHK6SOW.js → chunk-7V33VJAL.js} +3 -3
  62. package/dist/wallets/walletConnectors/{chunk-ZJJWGKB6.js → chunk-APHCF4DT.js} +3 -3
  63. package/dist/wallets/walletConnectors/{chunk-7IEUTLHY.js → chunk-DEFRRPXB.js} +3 -3
  64. package/dist/wallets/walletConnectors/{chunk-OSOB6QYX.js → chunk-FG2LDVXL.js} +3 -3
  65. package/dist/wallets/walletConnectors/{chunk-ZL6XCMV5.js → chunk-HRDPUW3V.js} +3 -3
  66. package/dist/wallets/walletConnectors/{chunk-UYW6MV74.js → chunk-HXWUH73P.js} +3 -3
  67. package/dist/wallets/walletConnectors/{chunk-UFYNHHDU.js → chunk-KWX2SYU2.js} +3 -3
  68. package/dist/wallets/walletConnectors/{chunk-AZYMJ4C6.js → chunk-LCIPVVH5.js} +3 -3
  69. package/dist/wallets/walletConnectors/{chunk-FWM4KTOV.js → chunk-T4ROGPMF.js} +3 -3
  70. package/dist/wallets/walletConnectors/{chunk-J3PJOMO7.js → chunk-UDTBQV4Q.js} +3 -3
  71. package/dist/wallets/walletConnectors/{chunk-55VS2NKG.js → chunk-V6UOWTEZ.js} +3 -3
  72. package/dist/wallets/walletConnectors/{chunk-LEAZMT5Y.js → chunk-VJZWNQOF.js} +3 -3
  73. package/dist/wallets/walletConnectors/{chunk-RZQ4B4Z7.js → chunk-XVBSJCW5.js} +3 -3
  74. package/dist/wallets/walletConnectors/{chunk-IMNI4AGV.js → chunk-YIEASHLS.js} +3 -3
  75. package/dist/wallets/walletConnectors/{chunk-YGMU5VWD.js → chunk-ZPSPK6LH.js} +3 -3
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  rainbowWallet
4
- } from "../chunk-AZYMJ4C6.js";
5
- import "../chunk-FMVNQKZL.js";
4
+ } from "../chunk-LCIPVVH5.js";
6
5
  import "../chunk-YYYRPQHB.js";
6
+ import "../chunk-FMVNQKZL.js";
7
7
  import "../chunk-3K2MFXCO.js";
8
8
  export {
9
9
  rainbowWallet
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  roninWallet
4
- } from "../chunk-OSOB6QYX.js";
5
- import "../chunk-FMVNQKZL.js";
4
+ } from "../chunk-FG2LDVXL.js";
6
5
  import "../chunk-YYYRPQHB.js";
6
+ import "../chunk-FMVNQKZL.js";
7
7
  import "../chunk-3K2MFXCO.js";
8
8
  export {
9
9
  roninWallet
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  safepalWallet
4
- } from "../chunk-VMMROPXK.js";
5
- import "../chunk-FMVNQKZL.js";
4
+ } from "../chunk-34HACM5U.js";
6
5
  import "../chunk-YYYRPQHB.js";
6
+ import "../chunk-FMVNQKZL.js";
7
7
  import "../chunk-3K2MFXCO.js";
8
8
  export {
9
9
  safepalWallet
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  subWallet
4
- } from "../chunk-ZJJWGKB6.js";
5
- import "../chunk-FMVNQKZL.js";
4
+ } from "../chunk-APHCF4DT.js";
6
5
  import "../chunk-YYYRPQHB.js";
6
+ import "../chunk-FMVNQKZL.js";
7
7
  import "../chunk-3K2MFXCO.js";
8
8
  export {
9
9
  subWallet
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  tokenPocketWallet
4
- } from "../chunk-UYW6MV74.js";
5
- import "../chunk-FMVNQKZL.js";
4
+ } from "../chunk-HXWUH73P.js";
6
5
  import "../chunk-YYYRPQHB.js";
6
+ import "../chunk-FMVNQKZL.js";
7
7
  import "../chunk-3K2MFXCO.js";
8
8
  export {
9
9
  tokenPocketWallet
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  trustWallet
4
- } from "../chunk-FWM4KTOV.js";
5
- import "../chunk-FMVNQKZL.js";
4
+ } from "../chunk-T4ROGPMF.js";
6
5
  import "../chunk-YYYRPQHB.js";
6
+ import "../chunk-FMVNQKZL.js";
7
7
  import "../chunk-3K2MFXCO.js";
8
8
  export {
9
9
  trustWallet
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  zerionWallet
4
- } from "../chunk-UFYNHHDU.js";
5
- import "../chunk-FMVNQKZL.js";
4
+ } from "../chunk-KWX2SYU2.js";
6
5
  import "../chunk-YYYRPQHB.js";
6
+ import "../chunk-FMVNQKZL.js";
7
7
  import "../chunk-3K2MFXCO.js";
8
8
  export {
9
9
  zerionWallet
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funkit/connect",
3
- "version": "9.13.0",
3
+ "version": "9.15.0",
4
4
  "description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
5
5
  "files": [
6
6
  "dist",
@@ -67,6 +67,8 @@
67
67
  "dotenv": "^17.2.3",
68
68
  "esbuild-plugin-replace": "^1.4.0",
69
69
  "jsdom": "^26.1.0",
70
+ "openapi-fetch": "^0.17.0",
71
+ "openapi-typescript": "^7.13.0",
70
72
  "postcss": "^8.5.10",
71
73
  "postcss-prefix-selector": "^1.16.0",
72
74
  "process": "^0.11.10",
@@ -83,10 +85,12 @@
83
85
  "wagmi": "2.17.2"
84
86
  },
85
87
  "dependencies": {
88
+ "@aave-dao/aave-address-book": "^4.49.9",
89
+ "@aave/client": "^0.9.3",
86
90
  "@bluvo/react": "3.0.0-beta.1",
87
91
  "@bluvo/sdk-ts": "3.0.0-beta.1",
88
- "@lifeomic/attempt": "3.1.0",
89
92
  "@datadog/browser-logs": "5.22.0",
93
+ "@lifeomic/attempt": "3.1.0",
90
94
  "@number-flow/react": "^0.5.5",
91
95
  "@radix-ui/react-dropdown-menu": "^2.1.7",
92
96
  "@radix-ui/react-tooltip": "^1.2.0",
@@ -107,8 +111,8 @@
107
111
  "ua-parser-js": "^1.0.37",
108
112
  "use-debounce": "^10.0.5",
109
113
  "uuid": "^9.0.1",
110
- "@funkit/api-base": "4.2.2",
111
- "@funkit/chains": "1.1.3",
114
+ "@funkit/api-base": "4.3.0",
115
+ "@funkit/chains": "1.2.0",
112
116
  "@funkit/fun-relay": "2.7.2",
113
117
  "@funkit/utils": "3.0.1"
114
118
  },
@@ -137,7 +141,8 @@
137
141
  "storybook:fast": "NODE_OPTIONS='--max-old-space-size=4096' storybook dev -p 6006 --no-open",
138
142
  "storybook:clean": "rm -rf node_modules/.vite && npm run storybook",
139
143
  "build-storybook": "storybook build",
140
- "statsig:generate": "tsx scripts/get_default_statsig_config.ts",
144
+ "statsig:api-types": "openapi-typescript https://api.statsig.com/openapi/20240601.json -o scripts/statsig/api-types.ts",
145
+ "statsig:generate": "tsx scripts/statsig/generate.ts",
141
146
  "i18n:unused": "node scripts/find-unused-i18n-keys.mjs"
142
147
  }
143
148
  }
@@ -1,11 +1,11 @@
1
1
  "use client";
2
- import {
3
- getWalletConnectConnector
4
- } from "./chunk-FMVNQKZL.js";
5
2
  import {
6
3
  getInjectedConnector,
7
4
  hasInjectedProvider
8
5
  } from "./chunk-YYYRPQHB.js";
6
+ import {
7
+ getWalletConnectConnector
8
+ } from "./chunk-FMVNQKZL.js";
9
9
 
10
10
  // src/wallets/walletConnectors/safepalWallet/safepalWallet.ts
11
11
  var safepalWallet = ({
@@ -1,11 +1,11 @@
1
1
  "use client";
2
- import {
3
- getWalletConnectConnector
4
- } from "./chunk-FMVNQKZL.js";
5
2
  import {
6
3
  getInjectedConnector,
7
4
  hasInjectedProvider
8
5
  } from "./chunk-YYYRPQHB.js";
6
+ import {
7
+ getWalletConnectConnector
8
+ } from "./chunk-FMVNQKZL.js";
9
9
 
10
10
  // src/wallets/walletConnectors/clvWallet/clvWallet.ts
11
11
  var clvWallet = ({
@@ -1,11 +1,11 @@
1
1
  "use client";
2
- import {
3
- getWalletConnectConnector
4
- } from "./chunk-FMVNQKZL.js";
5
2
  import {
6
3
  getInjectedConnector,
7
4
  hasInjectedProvider
8
5
  } from "./chunk-YYYRPQHB.js";
6
+ import {
7
+ getWalletConnectConnector
8
+ } from "./chunk-FMVNQKZL.js";
9
9
 
10
10
  // src/wallets/walletConnectors/bifrostWallet/bifrostWallet.ts
11
11
  import { isAndroid } from "@funkit/utils";
@@ -1,11 +1,11 @@
1
1
  "use client";
2
- import {
3
- getWalletConnectConnector
4
- } from "./chunk-FMVNQKZL.js";
5
2
  import {
6
3
  getInjectedConnector,
7
4
  hasInjectedProvider
8
5
  } from "./chunk-YYYRPQHB.js";
6
+ import {
7
+ getWalletConnectConnector
8
+ } from "./chunk-FMVNQKZL.js";
9
9
 
10
10
  // src/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.ts
11
11
  import { isAndroid, isIOS } from "@funkit/utils";
@@ -1,11 +1,11 @@
1
1
  "use client";
2
- import {
3
- getWalletConnectConnector
4
- } from "./chunk-FMVNQKZL.js";
5
2
  import {
6
3
  getInjectedConnector,
7
4
  hasInjectedProvider
8
5
  } from "./chunk-YYYRPQHB.js";
6
+ import {
7
+ getWalletConnectConnector
8
+ } from "./chunk-FMVNQKZL.js";
9
9
 
10
10
  // src/wallets/walletConnectors/subWallet/subWallet.ts
11
11
  var subWallet = ({
@@ -1,11 +1,11 @@
1
1
  "use client";
2
- import {
3
- getWalletConnectConnector
4
- } from "./chunk-FMVNQKZL.js";
5
2
  import {
6
3
  getInjectedConnector,
7
4
  hasInjectedProvider
8
5
  } from "./chunk-YYYRPQHB.js";
6
+ import {
7
+ getWalletConnectConnector
8
+ } from "./chunk-FMVNQKZL.js";
9
9
 
10
10
  // src/wallets/walletConnectors/bybitWallet/bybitWallet.ts
11
11
  var bybitWallet = ({
@@ -1,11 +1,11 @@
1
1
  "use client";
2
- import {
3
- getWalletConnectConnector
4
- } from "./chunk-FMVNQKZL.js";
5
2
  import {
6
3
  getInjectedConnector,
7
4
  hasInjectedProvider
8
5
  } from "./chunk-YYYRPQHB.js";
6
+ import {
7
+ getWalletConnectConnector
8
+ } from "./chunk-FMVNQKZL.js";
9
9
 
10
10
  // src/wallets/walletConnectors/roninWallet/roninWallet.ts
11
11
  var roninWallet = ({
@@ -1,11 +1,11 @@
1
1
  "use client";
2
- import {
3
- getWalletConnectConnector
4
- } from "./chunk-FMVNQKZL.js";
5
2
  import {
6
3
  getInjectedConnector,
7
4
  hasInjectedProvider
8
5
  } from "./chunk-YYYRPQHB.js";
6
+ import {
7
+ getWalletConnectConnector
8
+ } from "./chunk-FMVNQKZL.js";
9
9
 
10
10
  // src/wallets/walletConnectors/okxWallet/okxWallet.ts
11
11
  import { isAndroid } from "@funkit/utils";
@@ -1,11 +1,11 @@
1
1
  "use client";
2
- import {
3
- getWalletConnectConnector
4
- } from "./chunk-FMVNQKZL.js";
5
2
  import {
6
3
  getInjectedConnector,
7
4
  hasInjectedProvider
8
5
  } from "./chunk-YYYRPQHB.js";
6
+ import {
7
+ getWalletConnectConnector
8
+ } from "./chunk-FMVNQKZL.js";
9
9
 
10
10
  // src/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.ts
11
11
  import { isMobile } from "@funkit/utils";
@@ -1,11 +1,11 @@
1
1
  "use client";
2
- import {
3
- getWalletConnectConnector
4
- } from "./chunk-FMVNQKZL.js";
5
2
  import {
6
3
  getInjectedConnector,
7
4
  hasInjectedProvider
8
5
  } from "./chunk-YYYRPQHB.js";
6
+ import {
7
+ getWalletConnectConnector
8
+ } from "./chunk-FMVNQKZL.js";
9
9
 
10
10
  // src/wallets/walletConnectors/zerionWallet/zerionWallet.ts
11
11
  import { isIOS } from "@funkit/utils";
@@ -1,11 +1,11 @@
1
1
  "use client";
2
- import {
3
- getWalletConnectConnector
4
- } from "./chunk-FMVNQKZL.js";
5
2
  import {
6
3
  getInjectedConnector,
7
4
  hasInjectedProvider
8
5
  } from "./chunk-YYYRPQHB.js";
6
+ import {
7
+ getWalletConnectConnector
8
+ } from "./chunk-FMVNQKZL.js";
9
9
 
10
10
  // src/wallets/walletConnectors/rainbowWallet/rainbowWallet.ts
11
11
  import { isAndroid, isIOS } from "@funkit/utils";
@@ -1,11 +1,11 @@
1
1
  "use client";
2
- import {
3
- getWalletConnectConnector
4
- } from "./chunk-FMVNQKZL.js";
5
2
  import {
6
3
  getInjectedConnector,
7
4
  hasInjectedProvider
8
5
  } from "./chunk-YYYRPQHB.js";
6
+ import {
7
+ getWalletConnectConnector
8
+ } from "./chunk-FMVNQKZL.js";
9
9
 
10
10
  // src/wallets/walletConnectors/trustWallet/trustWallet.ts
11
11
  import { isMobile } from "@funkit/utils";
@@ -1,11 +1,11 @@
1
1
  "use client";
2
- import {
3
- getWalletConnectConnector
4
- } from "./chunk-FMVNQKZL.js";
5
2
  import {
6
3
  getInjectedConnector,
7
4
  hasInjectedProvider
8
5
  } from "./chunk-YYYRPQHB.js";
6
+ import {
7
+ getWalletConnectConnector
8
+ } from "./chunk-FMVNQKZL.js";
9
9
 
10
10
  // src/wallets/walletConnectors/frontierWallet/frontierWallet.ts
11
11
  import { isAndroid } from "@funkit/utils";
@@ -1,11 +1,11 @@
1
1
  "use client";
2
- import {
3
- getWalletConnectConnector
4
- } from "./chunk-FMVNQKZL.js";
5
2
  import {
6
3
  getInjectedConnector,
7
4
  hasInjectedProvider
8
5
  } from "./chunk-YYYRPQHB.js";
6
+ import {
7
+ getWalletConnectConnector
8
+ } from "./chunk-FMVNQKZL.js";
9
9
 
10
10
  // src/wallets/walletConnectors/coreWallet/coreWallet.ts
11
11
  var coreWallet = ({
@@ -1,11 +1,11 @@
1
1
  "use client";
2
- import {
3
- getWalletConnectConnector
4
- } from "./chunk-FMVNQKZL.js";
5
2
  import {
6
3
  getInjectedConnector,
7
4
  hasInjectedProvider
8
5
  } from "./chunk-YYYRPQHB.js";
6
+ import {
7
+ getWalletConnectConnector
8
+ } from "./chunk-FMVNQKZL.js";
9
9
 
10
10
  // src/wallets/walletConnectors/gateWallet/gateWallet.ts
11
11
  import { isAndroid } from "@funkit/utils";
@@ -1,11 +1,11 @@
1
1
  "use client";
2
- import {
3
- getWalletConnectConnector
4
- } from "./chunk-FMVNQKZL.js";
5
2
  import {
6
3
  getInjectedConnector,
7
4
  hasInjectedProvider
8
5
  } from "./chunk-YYYRPQHB.js";
6
+ import {
7
+ getWalletConnectConnector
8
+ } from "./chunk-FMVNQKZL.js";
9
9
 
10
10
  // src/wallets/walletConnectors/coin98Wallet/coin98Wallet.ts
11
11
  var coin98Wallet = ({
@@ -1,11 +1,11 @@
1
1
  "use client";
2
- import {
3
- getWalletConnectConnector
4
- } from "./chunk-FMVNQKZL.js";
5
2
  import {
6
3
  getInjectedConnector,
7
4
  hasInjectedProvider
8
5
  } from "./chunk-YYYRPQHB.js";
6
+ import {
7
+ getWalletConnectConnector
8
+ } from "./chunk-FMVNQKZL.js";
9
9
 
10
10
  // src/wallets/walletConnectors/bitgetWallet/bitgetWallet.ts
11
11
  import { isAndroid } from "@funkit/utils";
@@ -1,11 +1,11 @@
1
1
  "use client";
2
- import {
3
- getWalletConnectConnector
4
- } from "./chunk-FMVNQKZL.js";
5
2
  import {
6
3
  getInjectedConnector,
7
4
  hasInjectedProvider
8
5
  } from "./chunk-YYYRPQHB.js";
6
+ import {
7
+ getWalletConnectConnector
8
+ } from "./chunk-FMVNQKZL.js";
9
9
 
10
10
  // src/wallets/walletConnectors/foxWallet/foxWallet.ts
11
11
  var foxWallet = ({