@funkit/connect 6.1.0 → 6.3.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 (28) hide show
  1. package/CHANGELOG.md +43 -0
  2. package/dist/components/FunPayments/FunPaymentMethods.d.ts +3 -0
  3. package/dist/components/Icons/PayPalIcon.d.ts +5 -0
  4. package/dist/hooks/useAllowedAssets.d.ts +4 -2
  5. package/dist/index.js +1454 -1416
  6. package/dist/modals/CheckoutModal/InputAmount/InputAmountLoaded.d.ts +3 -0
  7. package/dist/providers/FunkitCheckoutContext.d.ts +5 -0
  8. package/dist/utils/flags/config.d.ts +2 -27
  9. package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
  10. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
  11. package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
  12. package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
  13. package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
  14. package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
  15. package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
  16. package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
  17. package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
  18. package/dist/wallets/walletConnectors/index.js +56 -56
  19. package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
  20. package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
  21. package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
  22. package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
  23. package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
  24. package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
  25. package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
  26. package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
  27. package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
  28. package/package.json +19 -12
@@ -12,5 +12,8 @@ interface InputAmountLoadedProps extends ModalStepComponentProps<FunCheckoutStep
12
12
  defaultFiatCurrency?: string;
13
13
  textCustomizations: FunkitTextCustomizationsConfig['confirmationScreen'];
14
14
  }
15
+ export declare function openMeldPopup(linkGetter: () => Promise<{
16
+ widgetUrl: string;
17
+ }>): Promise<void>;
15
18
  export declare function InputAmountLoaded({ checkoutConfig, modalState, onNext, sourceHolding, unitPrice, defaultFiatCurrency, textCustomizations, }: InputAmountLoadedProps): React.JSX.Element;
16
19
  export {};
@@ -54,6 +54,11 @@ export interface FunkitCheckoutConfig extends Omit<ApiFunkitCheckoutConfig, 'gen
54
54
  sourceChain?: string;
55
55
  /** Address of the source token on the source chain. Required if startingStep is set to FunCheckoutStartingStep.CONFIRMATION. */
56
56
  sourceTokenAddress?: Address;
57
+ /** Address list of the tokens that cannot be used as source. e.g. tokens for staking vault */
58
+ disabledSourceTokens?: {
59
+ tokenAddress: Address;
60
+ tokenChainId: string;
61
+ }[];
57
62
  /** *****************************
58
63
  * Miscellaneous configurations *
59
64
  ********************************/
@@ -34,31 +34,14 @@ export declare const flagConfig: {
34
34
  enable_token_transfer: {
35
35
  type: "boolean";
36
36
  default_value: false;
37
- overrides: ({
37
+ overrides: {
38
38
  if_any: {
39
39
  key: "apiKey";
40
40
  type: "isAnyOf";
41
41
  values: string[];
42
42
  }[];
43
43
  value: true;
44
- if_all?: undefined;
45
- } | {
46
- if_all: ({
47
- key: "userId";
48
- type: "isAnyOf";
49
- values: string[];
50
- } | {
51
- key: "apiKey";
52
- type: "isAnyOf";
53
- values: string[];
54
- })[];
55
- if_any: {
56
- key: "userId";
57
- type: "pctRollout";
58
- pct: number;
59
- }[];
60
- value: true;
61
- })[];
44
+ }[];
62
45
  };
63
46
  enable_fiat_deposit: {
64
47
  type: "boolean";
@@ -260,14 +243,6 @@ export declare const flagConfig: {
260
243
  }[];
261
244
  value: true;
262
245
  if_all?: undefined;
263
- } | {
264
- if_any: {
265
- key: "apiKey";
266
- type: "isAnyOf";
267
- values: string[];
268
- }[];
269
- value: false;
270
- if_all?: undefined;
271
246
  } | {
272
247
  if_any: {
273
248
  key: "userId";
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  bifrostWallet
4
- } from "../chunk-A5N6B5UW.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-UIASLGLV.js";
6
5
  import "../chunk-DNSG5Q7V.js";
6
+ import "../chunk-23WIEY36.js";
7
7
  export {
8
8
  bifrostWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  bitgetWallet
4
- } from "../chunk-TDAVGY5F.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-5W7VDOCL.js";
6
5
  import "../chunk-DNSG5Q7V.js";
6
+ import "../chunk-23WIEY36.js";
7
7
  export {
8
8
  bitgetWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  bybitWallet
4
- } from "../chunk-2STUC6QL.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-LNEC5RNX.js";
6
5
  import "../chunk-DNSG5Q7V.js";
6
+ import "../chunk-23WIEY36.js";
7
7
  export {
8
8
  bybitWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  clvWallet
4
- } from "../chunk-M3NZ6R2E.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-2GJQ4XZQ.js";
6
5
  import "../chunk-DNSG5Q7V.js";
6
+ import "../chunk-23WIEY36.js";
7
7
  export {
8
8
  clvWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  coin98Wallet
4
- } from "../chunk-OBOVHCEI.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-KIDC67XJ.js";
6
5
  import "../chunk-DNSG5Q7V.js";
6
+ import "../chunk-23WIEY36.js";
7
7
  export {
8
8
  coin98Wallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  coreWallet
4
- } from "../chunk-VR4TBQ6S.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-JCHN6A47.js";
6
5
  import "../chunk-DNSG5Q7V.js";
6
+ import "../chunk-23WIEY36.js";
7
7
  export {
8
8
  coreWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  foxWallet
4
- } from "../chunk-7QONTUXT.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-CNPKISHN.js";
6
5
  import "../chunk-DNSG5Q7V.js";
6
+ import "../chunk-23WIEY36.js";
7
7
  export {
8
8
  foxWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  frontierWallet
4
- } from "../chunk-TCAGNB4B.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-VWCLFMWJ.js";
6
5
  import "../chunk-DNSG5Q7V.js";
6
+ import "../chunk-23WIEY36.js";
7
7
  export {
8
8
  frontierWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  gateWallet
4
- } from "../chunk-FKJJQNKX.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-CJGUM55H.js";
6
5
  import "../chunk-DNSG5Q7V.js";
6
+ import "../chunk-23WIEY36.js";
7
7
  export {
8
8
  gateWallet
9
9
  };
@@ -2,99 +2,99 @@
2
2
  import {
3
3
  xdefiWallet
4
4
  } from "./chunk-BOU4WKRZ.js";
5
- import {
6
- zerionWallet
7
- } from "./chunk-SULRQO27.js";
8
5
  import {
9
6
  zealWallet
10
7
  } from "./chunk-RNBEDQHF.js";
8
+ import {
9
+ zerionWallet
10
+ } from "./chunk-Q3H3TRBS.js";
11
11
  import {
12
12
  tahoWallet
13
13
  } from "./chunk-ZZZRUXZE.js";
14
14
  import {
15
- trustWallet
16
- } from "./chunk-VYBAYMP3.js";
15
+ subWallet
16
+ } from "./chunk-ZSI5N4VV.js";
17
17
  import {
18
18
  talismanWallet
19
19
  } from "./chunk-DRO6WYMM.js";
20
20
  import {
21
21
  tokenPocketWallet
22
- } from "./chunk-2L43XSW3.js";
22
+ } from "./chunk-J3LI3FYZ.js";
23
23
  import {
24
24
  tokenaryWallet
25
25
  } from "./chunk-D6AOOO5F.js";
26
26
  import {
27
- safeheronWallet
28
- } from "./chunk-RZIO5TFF.js";
27
+ trustWallet
28
+ } from "./chunk-RKPCWHXL.js";
29
+ import {
30
+ uniswapWallet
31
+ } from "./chunk-LH7BMNFZ.js";
29
32
  import {
30
33
  walletConnectWallet
31
34
  } from "./chunk-NP5QGWNL.js";
32
35
  import {
33
- uniswapWallet
34
- } from "./chunk-LH7BMNFZ.js";
36
+ phantomWallet
37
+ } from "./chunk-362NXNTM.js";
35
38
  import {
36
39
  rabbyWallet
37
40
  } from "./chunk-BBOM42DL.js";
38
41
  import {
39
- oneKeyWallet
40
- } from "./chunk-SHBUZ7U7.js";
42
+ rainbowWallet
43
+ } from "./chunk-3CICVJUN.js";
41
44
  import {
42
45
  ramperWallet
43
46
  } from "./chunk-BYXPFMI7.js";
44
- import {
45
- rainbowWallet
46
- } from "./chunk-2KUBG3S6.js";
47
47
  import {
48
48
  roninWallet
49
- } from "./chunk-NWIQNBJU.js";
49
+ } from "./chunk-QLVVUKYB.js";
50
50
  import {
51
51
  safeWallet
52
52
  } from "./chunk-BQQQL6UD.js";
53
+ import {
54
+ safeheronWallet
55
+ } from "./chunk-RZIO5TFF.js";
53
56
  import {
54
57
  safepalWallet
55
- } from "./chunk-NT2HYJKW.js";
58
+ } from "./chunk-EC6CHBSZ.js";
56
59
  import {
57
- subWallet
58
- } from "./chunk-JWFF4AAL.js";
60
+ metaMaskWallet
61
+ } from "./chunk-UYGJO62F.js";
59
62
  import {
60
63
  ledgerWallet
61
64
  } from "./chunk-BRBKM4PW.js";
62
65
  import {
63
- metaMaskWallet
64
- } from "./chunk-2HYNUNAS.js";
65
- import {
66
- okxWallet
67
- } from "./chunk-TDIEHTMB.js";
66
+ mewWallet
67
+ } from "./chunk-OL5ZO7E4.js";
68
68
  import {
69
69
  oktoWallet
70
70
  } from "./chunk-ADIXAKUL.js";
71
71
  import {
72
- mewWallet
73
- } from "./chunk-OL5ZO7E4.js";
72
+ okxWallet
73
+ } from "./chunk-AFXHGWBH.js";
74
+ import {
75
+ omniWallet
76
+ } from "./chunk-7CUY5G6R.js";
74
77
  import {
75
78
  oneInchWallet
76
79
  } from "./chunk-OESTDX6I.js";
77
80
  import {
78
- phantomWallet
79
- } from "./chunk-362NXNTM.js";
81
+ oneKeyWallet
82
+ } from "./chunk-SHBUZ7U7.js";
80
83
  import {
81
- omniWallet
82
- } from "./chunk-7CUY5G6R.js";
84
+ foxWallet
85
+ } from "./chunk-CNPKISHN.js";
83
86
  import {
84
87
  frameWallet
85
88
  } from "./chunk-IFON7E6U.js";
86
89
  import {
87
- foxWallet
88
- } from "./chunk-7QONTUXT.js";
90
+ gateWallet
91
+ } from "./chunk-CJGUM55H.js";
89
92
  import {
90
93
  imTokenWallet
91
94
  } from "./chunk-COZ7MIQS.js";
92
95
  import {
93
96
  frontierWallet
94
- } from "./chunk-TCAGNB4B.js";
95
- import {
96
- gateWallet
97
- } from "./chunk-FKJJQNKX.js";
97
+ } from "./chunk-VWCLFMWJ.js";
98
98
  import {
99
99
  kresusWallet
100
100
  } from "./chunk-MJXPRJZT.js";
@@ -102,26 +102,26 @@ import {
102
102
  injectedWallet
103
103
  } from "./chunk-XWUJE7MW.js";
104
104
  import {
105
- bybitWallet
106
- } from "./chunk-2STUC6QL.js";
107
- import {
108
- coinbaseWallet
109
- } from "./chunk-H4IRCEZN.js";
105
+ braveWallet
106
+ } from "./chunk-BPZ2XJO2.js";
110
107
  import {
111
- bitskiWallet
112
- } from "./chunk-HS3C7OQV.js";
108
+ clvWallet
109
+ } from "./chunk-2GJQ4XZQ.js";
113
110
  import {
114
111
  coin98Wallet
115
- } from "./chunk-OBOVHCEI.js";
112
+ } from "./chunk-KIDC67XJ.js";
116
113
  import {
117
- desigWallet
118
- } from "./chunk-OPAZMNA7.js";
114
+ coreWallet
115
+ } from "./chunk-JCHN6A47.js";
116
+ import {
117
+ coinbaseWallet
118
+ } from "./chunk-H4IRCEZN.js";
119
119
  import {
120
120
  dawnWallet
121
121
  } from "./chunk-HWPKCIBE.js";
122
122
  import {
123
- coreWallet
124
- } from "./chunk-VR4TBQ6S.js";
123
+ desigWallet
124
+ } from "./chunk-OPAZMNA7.js";
125
125
  import {
126
126
  enkryptWallet
127
127
  } from "./chunk-OLOIXTYS.js";
@@ -130,10 +130,13 @@ import {
130
130
  } from "./chunk-WSQ2YJO2.js";
131
131
  import {
132
132
  bifrostWallet
133
- } from "./chunk-A5N6B5UW.js";
133
+ } from "./chunk-UIASLGLV.js";
134
+ import {
135
+ bitskiWallet
136
+ } from "./chunk-HS3C7OQV.js";
134
137
  import {
135
138
  bitgetWallet
136
- } from "./chunk-TDAVGY5F.js";
139
+ } from "./chunk-5W7VDOCL.js";
137
140
  import {
138
141
  bitverseWallet
139
142
  } from "./chunk-3HZRRP4Y.js";
@@ -141,13 +144,10 @@ import {
141
144
  bloomWallet
142
145
  } from "./chunk-S27IADFU.js";
143
146
  import {
144
- braveWallet
145
- } from "./chunk-BPZ2XJO2.js";
146
- import {
147
- clvWallet
148
- } from "./chunk-M3NZ6R2E.js";
149
- import "./chunk-23WIEY36.js";
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,
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  metaMaskWallet
4
- } from "../chunk-2HYNUNAS.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-UYGJO62F.js";
6
5
  import "../chunk-DNSG5Q7V.js";
6
+ import "../chunk-23WIEY36.js";
7
7
  export {
8
8
  metaMaskWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  okxWallet
4
- } from "../chunk-TDIEHTMB.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-AFXHGWBH.js";
6
5
  import "../chunk-DNSG5Q7V.js";
6
+ import "../chunk-23WIEY36.js";
7
7
  export {
8
8
  okxWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  rainbowWallet
4
- } from "../chunk-2KUBG3S6.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-3CICVJUN.js";
6
5
  import "../chunk-DNSG5Q7V.js";
6
+ import "../chunk-23WIEY36.js";
7
7
  export {
8
8
  rainbowWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  roninWallet
4
- } from "../chunk-NWIQNBJU.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-QLVVUKYB.js";
6
5
  import "../chunk-DNSG5Q7V.js";
6
+ import "../chunk-23WIEY36.js";
7
7
  export {
8
8
  roninWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  safepalWallet
4
- } from "../chunk-NT2HYJKW.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-EC6CHBSZ.js";
6
5
  import "../chunk-DNSG5Q7V.js";
6
+ import "../chunk-23WIEY36.js";
7
7
  export {
8
8
  safepalWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  subWallet
4
- } from "../chunk-JWFF4AAL.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-ZSI5N4VV.js";
6
5
  import "../chunk-DNSG5Q7V.js";
6
+ import "../chunk-23WIEY36.js";
7
7
  export {
8
8
  subWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  tokenPocketWallet
4
- } from "../chunk-2L43XSW3.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-J3LI3FYZ.js";
6
5
  import "../chunk-DNSG5Q7V.js";
6
+ import "../chunk-23WIEY36.js";
7
7
  export {
8
8
  tokenPocketWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  trustWallet
4
- } from "../chunk-VYBAYMP3.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-RKPCWHXL.js";
6
5
  import "../chunk-DNSG5Q7V.js";
6
+ import "../chunk-23WIEY36.js";
7
7
  export {
8
8
  trustWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  zerionWallet
4
- } from "../chunk-SULRQO27.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-Q3H3TRBS.js";
6
5
  import "../chunk-DNSG5Q7V.js";
6
+ import "../chunk-23WIEY36.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": "6.1.0",
3
+ "version": "6.3.0",
4
4
  "description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
5
5
  "files": [
6
6
  "dist",
@@ -46,10 +46,11 @@
46
46
  "devDependencies": {
47
47
  "@aws-sdk/client-cloudfront": "3.858.0",
48
48
  "@aws-sdk/client-s3": "3.840.0",
49
- "@chromatic-com/storybook": "^4.0.1",
49
+ "@chromatic-com/storybook": "^4.1.1",
50
50
  "@meshconnect/node-api": "2.0.14",
51
- "@storybook/addon-links": "^9.0.15",
52
- "@storybook/react-vite": "^9.0.15",
51
+ "@storybook/addon-docs": "^9.1.3",
52
+ "@storybook/addon-links": "^9.1.3",
53
+ "@storybook/react-vite": "^9.1.3",
53
54
  "@testing-library/jest-dom": "^6.2.0",
54
55
  "@testing-library/react": "^16.0.1",
55
56
  "@testing-library/user-event": "^14.5.2",
@@ -60,13 +61,17 @@
60
61
  "@vanilla-extract/vite-plugin": "^5.0.3",
61
62
  "@vitejs/plugin-react": "^4.3.1",
62
63
  "autoprefixer": "^10.4.16",
64
+ "buffer": "^6.0.3",
63
65
  "jsdom": "^26.1.0",
64
66
  "postcss": "^8.4.33",
67
+ "process": "^0.11.10",
65
68
  "react": "^18.3.0",
66
- "storybook": "^9.0.15",
69
+ "storybook": "^9.1.3",
70
+ "stream-browserify": "^3.0.0",
67
71
  "tsx": "^4.19.2",
68
- "vitest": "^3.0.9",
69
- "@storybook/addon-docs": "^9.0.15"
72
+ "util": "^0.12.5",
73
+ "vite-plugin-node-polyfills": "^0.24.0",
74
+ "vitest": "^3.0.9"
70
75
  },
71
76
  "dependencies": {
72
77
  "@datadog/browser-logs": "5.22.0",
@@ -89,12 +94,12 @@
89
94
  "ua-parser-js": "^1.0.37",
90
95
  "use-debounce": "^10.0.5",
91
96
  "uuid": "^9.0.1",
92
- "@funkit/api-base": "1.9.15",
93
- "@funkit/utils": "1.1.8",
94
- "@funkit/chains": "0.3.8",
95
- "@funkit/core": "2.3.39",
97
+ "@funkit/api-base": "1.9.16",
98
+ "@funkit/chains": "0.3.9",
96
99
  "@funkit/fun-relay": "1.0.1",
97
- "@funkit/wagmi-tools": "3.0.61"
100
+ "@funkit/utils": "1.1.8",
101
+ "@funkit/core": "2.3.41",
102
+ "@funkit/wagmi-tools": "3.0.63"
98
103
  },
99
104
  "repository": {
100
105
  "type": "git",
@@ -114,6 +119,8 @@
114
119
  "lint": "biome check",
115
120
  "lint:fix": "biome check --fix",
116
121
  "storybook": "storybook dev -p 6006",
122
+ "storybook:fast": "NODE_OPTIONS='--max-old-space-size=4096' storybook dev -p 6006 --no-open",
123
+ "storybook:clean": "rm -rf node_modules/.vite && npm run storybook",
117
124
  "build-storybook": "storybook build"
118
125
  }
119
126
  }