@funkit/connect 6.10.0 → 6.12.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 (43) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/dist/components/Dropdown/TokenAndChainDropdown.d.ts +5 -1
  3. package/dist/components/Dropdown/TokenDropdown.d.ts +5 -1
  4. package/dist/components/TransferTokenDetails/TransferTokenDetails.d.ts +2 -1
  5. package/dist/domains/asset.d.ts +4 -0
  6. package/dist/domains/paymentMethods.d.ts +0 -2
  7. package/dist/hooks/useFiatExchangeRates.d.ts +5 -0
  8. package/dist/index.css +4 -4
  9. package/dist/index.js +3520 -4275
  10. package/dist/modals/CheckoutModal/InputAmount/InputAmountLoaded.d.ts +4 -1
  11. package/dist/modals/CheckoutModal/InputAmount/state.d.ts +9 -1
  12. package/dist/providers/FunkitFlagsProvider.d.ts +2 -1
  13. package/dist/utils/flags/config.d.ts +13 -1
  14. package/dist/utils/flags/impl.d.ts +1 -282
  15. package/dist/utils/flags/patches/enable-bitcoin-patch.d.ts +13 -2
  16. package/dist/utils/funLogger.d.ts +1 -3
  17. package/dist/utils/getExchangeRate.d.ts +4 -0
  18. package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
  19. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
  20. package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
  21. package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
  22. package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
  23. package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
  24. package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
  25. package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
  26. package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
  27. package/dist/wallets/walletConnectors/index.js +62 -62
  28. package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
  29. package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
  30. package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
  31. package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
  32. package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
  33. package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
  34. package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
  35. package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
  36. package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
  37. package/package.json +5 -7
  38. package/dist/components/FunSelectBrokerage/FunBrokerageItem.css.d.ts +0 -1
  39. package/dist/components/FunSelectBrokerage/FunBrokerageItem.d.ts +0 -9
  40. package/dist/components/FunSelectBrokerage/FunSelectBrokerage.d.ts +0 -10
  41. package/dist/consts/mesh.d.ts +0 -77
  42. package/dist/providers/FunkitMeshProvider.d.ts +0 -11
  43. package/dist/utils/mesh.d.ts +0 -24
@@ -1,79 +1,79 @@
1
1
  "use client";
2
2
  import {
3
- xdefiWallet
4
- } from "./chunk-BOU4WKRZ.js";
3
+ zealWallet
4
+ } from "./chunk-RNBEDQHF.js";
5
+ import {
6
+ walletConnectWallet
7
+ } from "./chunk-NP5QGWNL.js";
5
8
  import {
6
9
  zerionWallet
7
- } from "./chunk-Q3H3TRBS.js";
10
+ } from "./chunk-SULRQO27.js";
8
11
  import {
9
- zealWallet
10
- } from "./chunk-RNBEDQHF.js";
12
+ tahoWallet
13
+ } from "./chunk-ZZZRUXZE.js";
11
14
  import {
12
15
  safepalWallet
13
- } from "./chunk-EC6CHBSZ.js";
14
- import {
15
- talismanWallet
16
- } from "./chunk-DRO6WYMM.js";
16
+ } from "./chunk-NT2HYJKW.js";
17
17
  import {
18
18
  subWallet
19
- } from "./chunk-ZSI5N4VV.js";
19
+ } from "./chunk-JWFF4AAL.js";
20
+ import {
21
+ tokenaryWallet
22
+ } from "./chunk-D6AOOO5F.js";
20
23
  import {
21
24
  tokenPocketWallet
22
- } from "./chunk-J3LI3FYZ.js";
25
+ } from "./chunk-2L43XSW3.js";
26
+ import {
27
+ xdefiWallet
28
+ } from "./chunk-BOU4WKRZ.js";
23
29
  import {
24
30
  trustWallet
25
- } from "./chunk-RKPCWHXL.js";
31
+ } from "./chunk-VYBAYMP3.js";
26
32
  import {
27
33
  uniswapWallet
28
34
  } from "./chunk-LH7BMNFZ.js";
29
35
  import {
30
- tokenaryWallet
31
- } from "./chunk-D6AOOO5F.js";
32
- import {
33
- walletConnectWallet
34
- } from "./chunk-NP5QGWNL.js";
36
+ rabbyWallet
37
+ } from "./chunk-BBOM42DL.js";
35
38
  import {
36
39
  phantomWallet
37
40
  } from "./chunk-362NXNTM.js";
38
- import {
39
- rabbyWallet
40
- } from "./chunk-BBOM42DL.js";
41
41
  import {
42
42
  rainbowWallet
43
- } from "./chunk-3CICVJUN.js";
43
+ } from "./chunk-2KUBG3S6.js";
44
44
  import {
45
45
  ramperWallet
46
46
  } from "./chunk-BYXPFMI7.js";
47
47
  import {
48
48
  roninWallet
49
- } from "./chunk-QLVVUKYB.js";
50
- import {
51
- safeWallet
52
- } from "./chunk-BQQQL6UD.js";
49
+ } from "./chunk-NWIQNBJU.js";
53
50
  import {
54
51
  safeheronWallet
55
52
  } from "./chunk-RZIO5TFF.js";
56
53
  import {
57
- tahoWallet
58
- } from "./chunk-ZZZRUXZE.js";
54
+ safeWallet
55
+ } from "./chunk-BQQQL6UD.js";
59
56
  import {
60
- mewWallet
61
- } from "./chunk-OL5ZO7E4.js";
57
+ talismanWallet
58
+ } from "./chunk-DRO6WYMM.js";
59
+ import {
60
+ kresusWallet
61
+ } from "./chunk-MJXPRJZT.js";
62
62
  import {
63
63
  ledgerWallet
64
64
  } from "./chunk-BRBKM4PW.js";
65
65
  import {
66
- metaMaskWallet
67
- } from "./chunk-UYGJO62F.js";
66
+ mewWallet
67
+ } from "./chunk-OL5ZO7E4.js";
68
+ import {
69
+ omniWallet
70
+ } from "./chunk-7CUY5G6R.js";
68
71
  import {
69
72
  oktoWallet
70
73
  } from "./chunk-ADIXAKUL.js";
71
74
  import {
72
75
  okxWallet
73
- } from "./chunk-AFXHGWBH.js";
74
- import {
75
- omniWallet
76
- } from "./chunk-7CUY5G6R.js";
76
+ } from "./chunk-TDIEHTMB.js";
77
77
  import {
78
78
  oneKeyWallet
79
79
  } from "./chunk-SHBUZ7U7.js";
@@ -81,41 +81,44 @@ import {
81
81
  oneInchWallet
82
82
  } from "./chunk-OESTDX6I.js";
83
83
  import {
84
- foxWallet
85
- } from "./chunk-CNPKISHN.js";
84
+ enkryptWallet
85
+ } from "./chunk-OLOIXTYS.js";
86
86
  import {
87
87
  frameWallet
88
88
  } from "./chunk-IFON7E6U.js";
89
89
  import {
90
90
  frontierWallet
91
- } from "./chunk-VWCLFMWJ.js";
92
- import {
93
- gateWallet
94
- } from "./chunk-CJGUM55H.js";
95
- import {
96
- injectedWallet
97
- } from "./chunk-XWUJE7MW.js";
91
+ } from "./chunk-TCAGNB4B.js";
98
92
  import {
99
93
  imTokenWallet
100
94
  } from "./chunk-COZ7MIQS.js";
101
95
  import {
102
- kresusWallet
103
- } from "./chunk-MJXPRJZT.js";
96
+ gateWallet
97
+ } from "./chunk-FKJJQNKX.js";
104
98
  import {
105
- braveWallet
106
- } from "./chunk-BPZ2XJO2.js";
99
+ injectedWallet
100
+ } from "./chunk-XWUJE7MW.js";
107
101
  import {
108
- bybitWallet
109
- } from "./chunk-LNEC5RNX.js";
102
+ metaMaskWallet
103
+ } from "./chunk-2HYNUNAS.js";
110
104
  import {
111
105
  coin98Wallet
112
- } from "./chunk-KIDC67XJ.js";
106
+ } from "./chunk-OBOVHCEI.js";
107
+ import {
108
+ clvWallet
109
+ } from "./chunk-M3NZ6R2E.js";
113
110
  import {
114
111
  coinbaseWallet
115
112
  } from "./chunk-H4IRCEZN.js";
113
+ import {
114
+ bybitWallet
115
+ } from "./chunk-2STUC6QL.js";
116
116
  import {
117
117
  coreWallet
118
- } from "./chunk-JCHN6A47.js";
118
+ } from "./chunk-VR4TBQ6S.js";
119
+ import {
120
+ foxWallet
121
+ } from "./chunk-7QONTUXT.js";
119
122
  import {
120
123
  dawnWallet
121
124
  } from "./chunk-HWPKCIBE.js";
@@ -123,17 +126,14 @@ import {
123
126
  desigWallet
124
127
  } from "./chunk-OPAZMNA7.js";
125
128
  import {
126
- enkryptWallet
127
- } from "./chunk-OLOIXTYS.js";
129
+ argentWallet
130
+ } from "./chunk-WSQ2YJO2.js";
128
131
  import {
129
132
  bifrostWallet
130
- } from "./chunk-UIASLGLV.js";
133
+ } from "./chunk-A5N6B5UW.js";
131
134
  import {
132
135
  bitgetWallet
133
- } from "./chunk-5W7VDOCL.js";
134
- import {
135
- argentWallet
136
- } from "./chunk-WSQ2YJO2.js";
136
+ } from "./chunk-TDAVGY5F.js";
137
137
  import {
138
138
  bitskiWallet
139
139
  } from "./chunk-HS3C7OQV.js";
@@ -143,11 +143,11 @@ import {
143
143
  import {
144
144
  bloomWallet
145
145
  } from "./chunk-S27IADFU.js";
146
+ import "./chunk-23WIEY36.js";
146
147
  import {
147
- clvWallet
148
- } from "./chunk-2GJQ4XZQ.js";
148
+ braveWallet
149
+ } from "./chunk-BPZ2XJO2.js";
149
150
  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-UYGJO62F.js";
5
- import "../chunk-DNSG5Q7V.js";
4
+ } from "../chunk-2HYNUNAS.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-DNSG5Q7V.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-AFXHGWBH.js";
5
- import "../chunk-DNSG5Q7V.js";
4
+ } from "../chunk-TDIEHTMB.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-DNSG5Q7V.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-3CICVJUN.js";
5
- import "../chunk-DNSG5Q7V.js";
4
+ } from "../chunk-2KUBG3S6.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-DNSG5Q7V.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-QLVVUKYB.js";
5
- import "../chunk-DNSG5Q7V.js";
4
+ } from "../chunk-NWIQNBJU.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-DNSG5Q7V.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-EC6CHBSZ.js";
5
- import "../chunk-DNSG5Q7V.js";
4
+ } from "../chunk-NT2HYJKW.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-DNSG5Q7V.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-ZSI5N4VV.js";
5
- import "../chunk-DNSG5Q7V.js";
4
+ } from "../chunk-JWFF4AAL.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-DNSG5Q7V.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-J3LI3FYZ.js";
5
- import "../chunk-DNSG5Q7V.js";
4
+ } from "../chunk-2L43XSW3.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-DNSG5Q7V.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-RKPCWHXL.js";
5
- import "../chunk-DNSG5Q7V.js";
4
+ } from "../chunk-VYBAYMP3.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-DNSG5Q7V.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-Q3H3TRBS.js";
5
- import "../chunk-DNSG5Q7V.js";
4
+ } from "../chunk-SULRQO27.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-DNSG5Q7V.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.10.0",
3
+ "version": "6.12.0",
4
4
  "description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
5
5
  "files": [
6
6
  "dist",
@@ -47,7 +47,6 @@
47
47
  "@aws-sdk/client-cloudfront": "3.858.0",
48
48
  "@aws-sdk/client-s3": "3.840.0",
49
49
  "@chromatic-com/storybook": "^4.1.1",
50
- "@meshconnect/node-api": "2.0.23",
51
50
  "@storybook/addon-docs": "^9.1.3",
52
51
  "@storybook/addon-links": "^9.1.3",
53
52
  "@storybook/react-vite": "^9.1.3",
@@ -75,7 +74,6 @@
75
74
  },
76
75
  "dependencies": {
77
76
  "@datadog/browser-logs": "5.22.0",
78
- "@meshconnect/web-link-sdk": "2.1.1",
79
77
  "@moonpay/moonpay-react": "^1.6.1",
80
78
  "@number-flow/react": "^0.5.5",
81
79
  "@privy-io/js-sdk-core": "^0.21.0",
@@ -94,12 +92,12 @@
94
92
  "ua-parser-js": "^1.0.37",
95
93
  "use-debounce": "^10.0.5",
96
94
  "uuid": "^9.0.1",
97
- "@funkit/api-base": "1.12.0",
98
- "@funkit/core": "2.3.45",
95
+ "@funkit/api-base": "1.12.1",
99
96
  "@funkit/chains": "0.4.0",
97
+ "@funkit/utils": "1.1.9",
100
98
  "@funkit/fun-relay": "2.0.2",
101
- "@funkit/utils": "1.1.8",
102
- "@funkit/wagmi-tools": "3.0.67"
99
+ "@funkit/core": "2.3.46",
100
+ "@funkit/wagmi-tools": "3.0.68"
103
101
  },
104
102
  "repository": {
105
103
  "type": "git",
@@ -1 +0,0 @@
1
- export declare const brokerageItemStyle: string;
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- interface BrokerateItemProps {
3
- exchangeName: string;
4
- exchangeIcon: React.ReactNode;
5
- fullInfo: boolean;
6
- hasActiveConnection: boolean;
7
- }
8
- export declare const FunBrokerageItem: ({ exchangeName, exchangeIcon, fullInfo, hasActiveConnection, }: BrokerateItemProps) => React.JSX.Element;
9
- export {};
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import type { MeshExchangeType } from '~/consts/mesh';
3
- import type { FunSelectOption } from '../FunSelect/FunSelect';
4
- interface FunSelectBrokerageProps {
5
- onSelect: (value: MeshExchangeType) => void;
6
- options: FunSelectOption<MeshExchangeType>[];
7
- selectedValue: FunSelectOption['value'];
8
- }
9
- export declare function FunSelectBrokerage({ onSelect, options, selectedValue, }: FunSelectBrokerageProps): React.JSX.Element;
10
- export {};
@@ -1,77 +0,0 @@
1
- export declare const FUNKIT_MESH_CLIENT_ID = "8132aff4-56c9-4b1d-85b4-08dbdcc6199d";
2
- /**
3
- * TODO: This is only useful to map exchange names in existing feature flags to the corresponding exchange types.
4
- * If/when we decide to fully remove that support, this enum and getExchangeTypeFromName below can be removed.
5
- * Mesh-provided brokerName
6
- * @deprecated Use MeshExchangeType instead
7
- */
8
- export declare enum MeshExchangeName {
9
- Robinhood = "Robinhood",
10
- ETrade = "ETrade",
11
- Alpaca = "Alpaca",
12
- WeBull = "WeBull",
13
- Stash = "Stash",
14
- InteractiveBrokers = "InteractiveBrokers",
15
- Public = "Public",
16
- Coinbase = "Coinbase",
17
- Kraken = "Kraken",
18
- CoinbasePro = "CoinbasePro",
19
- CryptoCom = "CryptoCom",
20
- Binance = "Binance",// BinanceInternationalDirect
21
- BinanceUs = "BinanceUs",
22
- Gemini = "Gemini",
23
- OkCoin = "OkCoin",
24
- KuCoin = "KuCoin",
25
- Etoro = "Etoro",
26
- CexIo = "CexIo",
27
- Bitstamp = "Bitstamp",
28
- GateIo = "GateIo",
29
- Acorns = "Acorns",
30
- Okx = "OKX",
31
- BitFlyer = "BitFlyer",
32
- Coinlist = "Coinlist",
33
- Huobi = "Huobi",
34
- Bitfinex = "Bitfinex",
35
- KrakenDirect = "KrakenDirect",
36
- Vanguard = "Vanguard",
37
- BitfinexDirect = "Bitfinex (beta)",
38
- Bybit = "Bybit"
39
- }
40
- /** A subset of Mesh-provided brokerType */
41
- export declare enum MeshExchangeType {
42
- Robinhood = "robinhood",
43
- ETrade = "eTrade",
44
- Alpaca = "alpaca",
45
- WeBull = "weBull",
46
- Stash = "stash",
47
- InteractiveBrokers = "interactiveBrokers",
48
- Public = "public",
49
- Coinbase = "coinbase",
50
- Kraken = "kraken",
51
- CryptoCom = "cryptoCom",
52
- CoinbasePro = "coinbasePro",
53
- Gemini = "gemini",
54
- Binance = "binanceInternationalDirect",
55
- BinanceUs = "binanceUs",
56
- OkCoin = "okCoin",
57
- Etoro = "etoro",
58
- KuCoin = "kuCoin",
59
- CexIo = "cexIo",
60
- GateIo = "gateIo",
61
- Bitstamp = "bitstamp",
62
- Okx = "okxOAuth",// not okx!
63
- Acorns = "acorns",
64
- Coinlist = "coinlist",
65
- BitFlyer = "bitFlyer",
66
- Bitfinex = "bitfinex",
67
- Huobi = "huobi",
68
- KrakenDirect = "krakenDirect",
69
- Vanguard = "vanguard",
70
- Bybit = "bybit",
71
- BitfinexDirect = "bitfinexDirect"
72
- }
73
- export declare function getExchangeIcon(brokerType: MeshExchangeType, size: number): JSX.Element | null;
74
- export declare function getExchangeName(brokerType: MeshExchangeType): string;
75
- export declare function isMeshExchangeType(value: string): value is MeshExchangeType;
76
- /** @deprecated */
77
- export declare function getExchangeTypeFromName(brokerName: string): MeshExchangeType | undefined;
@@ -1,11 +0,0 @@
1
- import React, { type ReactNode } from 'react';
2
- import type { MeshExchangeType } from '~/consts/mesh';
3
- export interface MeshConnectionInfo {
4
- accessToken: string;
5
- accountId: string;
6
- brokerType: MeshExchangeType;
7
- }
8
- export declare function FunkitMeshProvider({ children }: {
9
- children: ReactNode;
10
- }): React.JSX.Element;
11
- export declare function getMeshDeviceIdFromLocalStorage(): string | null;
@@ -1,24 +0,0 @@
1
- import { type TransferIntegration } from '@funkit/api-base';
2
- import type { MeshExchangeType } from '../consts/mesh';
3
- import type { AssetHoldingsMap } from '../utils/assets';
4
- export { FUNKIT_MESH_CLIENT_ID } from '../consts/mesh';
5
- export declare const MIN_MESH_TRANSFER_AMOUNT_USD = 10;
6
- export declare function fetchMeshLinkToken(funkitUserId: string, brokerType: MeshExchangeType, funApiKey: string): Promise<import("@funkit/api-base").GetLinkTokenResponse>;
7
- export declare function fetchMeshTransferIntegrations(apiKey: string): Promise<TransferIntegration[]>;
8
- export declare function getMeshSupportedTokensAndIdByChainIdAndBrokerage({ brokerType, chainId, integrations, }: {
9
- brokerType: MeshExchangeType;
10
- chainId: string;
11
- integrations: TransferIntegration[];
12
- }): {
13
- meshSupportedTokens: string[];
14
- meshNetworkId: string | undefined;
15
- };
16
- interface MeshAccountInfo {
17
- apiKey: string;
18
- deviceId: string;
19
- brokerType: MeshExchangeType;
20
- integrations: TransferIntegration[];
21
- targetChain: string;
22
- authToken: string;
23
- }
24
- export declare function fetchMeshAccountHoldingsMap(info: MeshAccountInfo, enableFrogProxyServer?: boolean): Promise<AssetHoldingsMap>;