@funkit/connect 6.11.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 (37) hide show
  1. package/CHANGELOG.md +18 -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/index.js +3381 -4244
  8. package/dist/providers/FunkitFlagsProvider.d.ts +2 -1
  9. package/dist/utils/flags/impl.d.ts +1 -294
  10. package/dist/utils/flags/patches/enable-bitcoin-patch.d.ts +13 -2
  11. package/dist/utils/funLogger.d.ts +1 -3
  12. package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
  13. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
  14. package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
  15. package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
  16. package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
  17. package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
  18. package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
  19. package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
  20. package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
  21. package/dist/wallets/walletConnectors/index.js +59 -59
  22. package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
  23. package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
  24. package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
  25. package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
  26. package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
  27. package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
  28. package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
  29. package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
  30. package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
  31. package/package.json +5 -7
  32. package/dist/components/FunSelectBrokerage/FunBrokerageItem.css.d.ts +0 -1
  33. package/dist/components/FunSelectBrokerage/FunBrokerageItem.d.ts +0 -9
  34. package/dist/components/FunSelectBrokerage/FunSelectBrokerage.d.ts +0 -10
  35. package/dist/consts/mesh.d.ts +0 -77
  36. package/dist/providers/FunkitMeshProvider.d.ts +0 -11
  37. package/dist/utils/mesh.d.ts +0 -24
@@ -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.11.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>;