@funkit/connect 5.5.21 → 6.0.2

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 (74) hide show
  1. package/CHANGELOG.md +49 -0
  2. package/dist/{chunk-ES634CAR.js → chunk-IOMUPAAW.js} +1 -1
  3. package/dist/{chunk-OV3P5HQK.js → chunk-IVQ57535.js} +5 -3
  4. package/dist/{chunk-K4APSFTL.js → chunk-N6UWLAUQ.js} +1 -1
  5. package/dist/components/Box/Box.d.ts +17 -17
  6. package/dist/components/Dialog/Dialog.css.d.ts +2 -1
  7. package/dist/components/Dialog/hooks.d.ts +11 -0
  8. package/dist/components/FunBottomBar/FunBottomBar.css.d.ts +0 -1
  9. package/dist/components/FunButton/FunButton.d.ts +2 -1
  10. package/dist/components/FunCheckoutHistory/FunCheckoutStatus.css.d.ts +0 -2
  11. package/dist/components/FunCheckoutHistory/FunCheckoutStatus.d.ts +1 -12
  12. package/dist/components/FunCheckoutHistory/FunDirectExecutionStatus.d.ts +1 -1
  13. package/dist/components/FunCountdown/FunCountdown.d.ts +1 -4
  14. package/dist/components/FunInfoBanner/InfoBanner.d.ts +2 -2
  15. package/dist/components/FunPayments/FunPaymentMethods.d.ts +2 -11
  16. package/dist/components/Icons/SpinnerIcon.d.ts +4 -2
  17. package/dist/components/Icons/StatusIcons.css.d.ts +16 -0
  18. package/dist/components/Icons/StatusIcons.d.ts +8 -8
  19. package/dist/components/ReceiveAmount/ReceiveAmount.d.ts +5 -3
  20. package/dist/components/TransactionStatus/TransactionStatus.d.ts +10 -0
  21. package/dist/consts/customers.d.ts +1 -1
  22. package/dist/css/sprinkles.css.d.ts +23 -19
  23. package/dist/domains/fees.d.ts +2 -3
  24. package/dist/domains/meld.d.ts +4 -3
  25. package/dist/domains/paymentMethods.d.ts +1 -8
  26. package/dist/domains/quote.d.ts +2 -3
  27. package/dist/hooks/useCheckoutDirectExecution.d.ts +1 -0
  28. package/dist/hooks/usePaymentSources.d.ts +0 -1
  29. package/dist/index.css +2792 -2767
  30. package/dist/index.js +4228 -5886
  31. package/dist/modals/CheckoutModal/InputAmount/InputAmount.d.ts +0 -1
  32. package/dist/modals/CheckoutModal/InputAmount/InputAmountLoading.d.ts +1 -1
  33. package/dist/modals/CheckoutModal/LoadingAccount.d.ts +0 -1
  34. package/dist/modals/CheckoutModal/SelectAsset.d.ts +0 -1
  35. package/dist/modals/CheckoutModal/SourceChange/SourceChange.d.ts +2 -7
  36. package/dist/modals/CheckoutModal/TransferToken/TransferToken.d.ts +0 -1
  37. package/dist/modals/CheckoutModal/VirtualFiatAccount/FiatAccountDetail.d.ts +0 -1
  38. package/dist/modals/CheckoutModal/stepTransition.d.ts +0 -12
  39. package/dist/modals/CheckoutModal/useSourceAssetConfirm.d.ts +1 -3
  40. package/dist/providers/FunkitCheckoutContext.d.ts +6 -0
  41. package/dist/providers/FunkitConfigContext.d.ts +2 -0
  42. package/dist/providers/FunkitMeshProvider.d.ts +1 -19
  43. package/dist/providers/FunkitThemeProvider.d.ts +9 -3
  44. package/dist/themes/baseTheme.js +1 -1
  45. package/dist/themes/darkTheme.js +2 -2
  46. package/dist/themes/lightTheme.js +2 -2
  47. package/dist/utils/checkout.d.ts +9 -1
  48. package/dist/utils/flags/impl.d.ts +1 -0
  49. package/dist/utils/flags/types.d.ts +3 -2
  50. package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
  51. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
  52. package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
  53. package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
  54. package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
  55. package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
  56. package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
  57. package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
  58. package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
  59. package/dist/wallets/walletConnectors/index.js +53 -53
  60. package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
  61. package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
  62. package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
  63. package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
  64. package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
  65. package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
  66. package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
  67. package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
  68. package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
  69. package/package.json +6 -6
  70. package/dist/components/Icons/EtherFiIcon.d.ts +0 -4
  71. package/dist/hooks/useMesh.d.ts +0 -19
  72. package/dist/modals/CheckoutModal/ConnectExchange.d.ts +0 -12
  73. package/dist/modals/CheckoutModal/MeshVerification.d.ts +0 -17
  74. package/dist/modals/CheckoutModal/SelectBrokerage.d.ts +0 -14
@@ -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": "5.5.21",
3
+ "version": "6.0.2",
4
4
  "description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
5
5
  "files": [
6
6
  "dist",
@@ -89,12 +89,12 @@
89
89
  "ua-parser-js": "^1.0.37",
90
90
  "use-debounce": "^10.0.5",
91
91
  "uuid": "^9.0.1",
92
- "@funkit/api-base": "1.9.10",
93
- "@funkit/core": "2.3.34",
94
- "@funkit/fun-relay": "0.1.12",
95
- "@funkit/chains": "0.3.6",
92
+ "@funkit/api-base": "1.9.11",
93
+ "@funkit/core": "2.3.35",
94
+ "@funkit/wagmi-tools": "3.0.57",
96
95
  "@funkit/utils": "1.1.8",
97
- "@funkit/wagmi-tools": "3.0.56"
96
+ "@funkit/chains": "0.3.7",
97
+ "@funkit/fun-relay": "0.1.12"
98
98
  },
99
99
  "repository": {
100
100
  "type": "git",
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- export declare const EtherFiIcon: ({ size }: {
3
- size?: number;
4
- }) => React.JSX.Element;
@@ -1,19 +0,0 @@
1
- import { MeshExchangeType } from '~/consts/mesh';
2
- import type { FunSelectOption } from '../components/FunSelect/FunSelect';
3
- import { type MeshConnectionInfo } from '../providers/FunkitMeshProvider';
4
- export declare const useSupportedExchanges: () => MeshExchangeType[];
5
- export declare const useMeshExchanges: ({ fullInfo, iconSize, }: {
6
- fullInfo?: boolean;
7
- iconSize?: number;
8
- }) => {
9
- options: FunSelectOption<MeshExchangeType>[];
10
- };
11
- /**
12
- * Fetches mesh-related network information based on the active chain user is logged in on, given an exchange
13
- * @param exchange The mesh exchange user is currently connected with
14
- */
15
- export declare const useMeshActiveNetworkInfo: (chainId: string | undefined, brokerType: MeshExchangeType | undefined) => {
16
- meshSupportedTokens: string[];
17
- meshNetworkId: string | undefined;
18
- } | null;
19
- export declare function useMeshAccountHoldings(targetChain: string, connection: MeshConnectionInfo | null): import("@tanstack/react-query").UseQueryResult<import("../domains/wallet").AssetHoldingsMap, Error>;
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- import { type MeshExchangeType } from '~/consts/mesh';
3
- import { type PaymentMethodBrokerageInfo } from '../../domains/paymentMethods';
4
- import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, type ModalStepInfo } from './stepTransition';
5
- export type ConnectExchangeState = CheckoutModalCommonState & {
6
- brokerType: MeshExchangeType;
7
- };
8
- export type ConnectExchangeNext = {
9
- paymentMethodInfo: PaymentMethodBrokerageInfo;
10
- };
11
- export declare const ConnectExchangeInfo: ModalStepInfo<FunCheckoutStep.CONNECT_EXCHANGE>;
12
- export declare function ConnectExchange({ modalState, onNext, setModalState, }: ModalStepComponentProps<FunCheckoutStep.CONNECT_EXCHANGE>): React.JSX.Element;
@@ -1,17 +0,0 @@
1
- import React from 'react';
2
- import type { Address } from 'viem';
3
- import { type MeshExchangeType } from '~/consts/mesh';
4
- import type { PaymentMethodBrokerageInfo } from '../../domains/paymentMethods';
5
- import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, type ModalStepInfo } from './stepTransition';
6
- export type MeshVerificationState = CheckoutModalCommonState & {
7
- paymentMethodInfo: PaymentMethodBrokerageInfo;
8
- isSendingToQr: boolean;
9
- };
10
- export type MeshVerificationNext = {
11
- depositAddress: Address;
12
- } | {
13
- depositAddress: null;
14
- brokerType: MeshExchangeType;
15
- };
16
- export declare const MeshVerificationInfo: ModalStepInfo<FunCheckoutStep.MESH_VERIFICATION>;
17
- export declare function MeshVerification({ modalState, onNext, }: ModalStepComponentProps<FunCheckoutStep.MESH_VERIFICATION>): React.JSX.Element;
@@ -1,14 +0,0 @@
1
- import React from 'react';
2
- import type { MeshExchangeType } from '~/consts/mesh';
3
- import { type PaymentMethodBrokerageInfo } from '../../domains/paymentMethods';
4
- import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, type ModalStepInfo } from './stepTransition';
5
- export type SelectBrokerageState = CheckoutModalCommonState;
6
- export type SelectBrokerageNext = {
7
- hasActiveConnection: true;
8
- paymentInfo: PaymentMethodBrokerageInfo;
9
- } | {
10
- hasActiveConnection: false;
11
- brokerType: MeshExchangeType;
12
- };
13
- export declare const SelectBrokerageInfo: ModalStepInfo<FunCheckoutStep.SELECT_BROKERAGE>;
14
- export declare function SelectBrokerage({ onNext, }: ModalStepComponentProps<FunCheckoutStep.SELECT_BROKERAGE>): React.JSX.Element;