@funkit/connect 6.0.1 → 6.0.3

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 (40) hide show
  1. package/CHANGELOG.md +56 -0
  2. package/dist/{chunk-IVQ57535.js → chunk-7HKC2KCK.js} +2 -2
  3. package/dist/{chunk-IOMUPAAW.js → chunk-VQOGHHW2.js} +1 -1
  4. package/dist/{chunk-N6UWLAUQ.js → chunk-ZAZGUX6Z.js} +1 -1
  5. package/dist/components/Dialog/DialogContent.css.d.ts +4 -0
  6. package/dist/components/Dialog/hooks.d.ts +11 -0
  7. package/dist/components/FunInfoBanner/InfoBanner.d.ts +2 -2
  8. package/dist/components/FunPayments/FunPaymentMethods.d.ts +2 -11
  9. package/dist/consts/customers.d.ts +0 -1
  10. package/dist/domains/fees.d.ts +2 -3
  11. package/dist/domains/meld.d.ts +4 -3
  12. package/dist/domains/paymentMethods.d.ts +1 -8
  13. package/dist/domains/quote.d.ts +2 -3
  14. package/dist/hooks/usePaymentSources.d.ts +0 -1
  15. package/dist/index.css +14 -22
  16. package/dist/index.js +3073 -5053
  17. package/dist/modals/CheckoutModal/InputAmount/InputAmount.d.ts +0 -1
  18. package/dist/modals/CheckoutModal/InputAmount/InputAmountLoading.d.ts +1 -1
  19. package/dist/modals/CheckoutModal/LoadingAccount.d.ts +2 -8
  20. package/dist/modals/CheckoutModal/SelectAsset.d.ts +0 -1
  21. package/dist/modals/CheckoutModal/SourceChange/SourceChange.d.ts +2 -7
  22. package/dist/modals/CheckoutModal/TransferToken/TransferToken.d.ts +0 -1
  23. package/dist/modals/CheckoutModal/VirtualFiatAccount/FiatAccountDetail.d.ts +0 -1
  24. package/dist/modals/CheckoutModal/stepTransition.d.ts +2 -13
  25. package/dist/modals/CheckoutModal/useSourceAssetConfirm.d.ts +1 -3
  26. package/dist/providers/FunkitCheckoutContext.d.ts +2 -1
  27. package/dist/providers/FunkitConfigContext.d.ts +2 -0
  28. package/dist/providers/FunkitMeshProvider.d.ts +1 -19
  29. package/dist/themes/baseTheme.js +1 -1
  30. package/dist/themes/darkTheme.js +2 -2
  31. package/dist/themes/lightTheme.js +2 -2
  32. package/dist/utils/flags/impl.d.ts +1 -0
  33. package/dist/utils/flags/types.d.ts +3 -2
  34. package/dist/wallets/walletConnectors/index.js +42 -42
  35. package/package.json +6 -6
  36. package/dist/components/Icons/EtherFiIcon.d.ts +0 -4
  37. package/dist/hooks/useMesh.d.ts +0 -19
  38. package/dist/modals/CheckoutModal/ConnectExchange.d.ts +0 -12
  39. package/dist/modals/CheckoutModal/MeshVerification.d.ts +0 -17
  40. package/dist/modals/CheckoutModal/SelectBrokerage.d.ts +0 -14
@@ -7,7 +7,6 @@ export type InputAmountState = CheckoutModalCommonState & {
7
7
  fiatAmount?: number;
8
8
  fiatCurrency?: string;
9
9
  quote?: MeldQuote;
10
- newUser?: boolean;
11
10
  };
12
11
  export type InputAmountNext = Record<string, never> | {
13
12
  fiatAmount: number | undefined;
@@ -4,5 +4,5 @@ interface InputAmountLoadingProps extends ModalStepComponentProps<FunCheckoutSte
4
4
  sourceHoldingError: Error | null;
5
5
  unitPriceError: Error | null;
6
6
  }
7
- export declare function InputAmountLoading({ modalState, onBack, sourceHoldingError, unitPriceError, }: InputAmountLoadingProps): React.JSX.Element;
7
+ export declare function InputAmountLoading({ modalState, sourceHoldingError, unitPriceError, }: InputAmountLoadingProps): React.JSX.Element;
8
8
  export {};
@@ -1,13 +1,8 @@
1
1
  import React from 'react';
2
- import { FunCheckoutStartingStep } from '~/providers/FunkitCheckoutContext';
3
2
  import { type ConnectablePaymentMethodInfo, PaymentMethod, type PaymentMethodAccountInfo, type PaymentMethodBrokerageInfo, type PaymentMethodVirtualBankInfo } from '../../domains/paymentMethods';
4
3
  import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, type ModalStepInfo } from './stepTransition';
5
4
  export type LoadingAccountState = CheckoutModalCommonState;
6
- type UserEntryContext<T> = T & {
7
- newUser?: boolean;
8
- startingStep?: FunCheckoutStartingStep;
9
- };
10
- export type LoadingAccountNext = UserEntryContext<{
5
+ export type LoadingAccountNext = {
11
6
  chosenPaymentMethod: PaymentMethod.ACCOUNT_BALANCE;
12
7
  paymentMethodInfo: PaymentMethodAccountInfo;
13
8
  } | {
@@ -20,8 +15,7 @@ export type LoadingAccountNext = UserEntryContext<{
20
15
  /** Can be set to null to skip auto payment method selection */
21
16
  chosenPaymentMethod: null | PaymentMethod.TOKEN_TRANSFER;
22
17
  paymentMethodInfo?: ConnectablePaymentMethodInfo;
23
- }>;
18
+ };
24
19
  export declare const LoadingAccountInfo: ModalStepInfo<FunCheckoutStep.LOADING_ACCOUNT>;
25
20
  /** A placeholder component to handle redirecting to the checkout history page */
26
21
  export declare function LoadingAccount({ modalState, onNext, }: ModalStepComponentProps<FunCheckoutStep.LOADING_ACCOUNT>): React.JSX.Element;
27
- export {};
@@ -4,7 +4,6 @@ import { type PaymentMethodAccountInfo, type PaymentMethodBrokerageInfo } from '
4
4
  import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, type ModalStepInfo } from './stepTransition';
5
5
  export type SelectAssetState = CheckoutModalCommonState & {
6
6
  paymentMethodInfo: PaymentMethodBrokerageInfo | PaymentMethodAccountInfo;
7
- newUser?: boolean;
8
7
  };
9
8
  export type SelectAssetNext = {
10
9
  paymentMethodInfo?: PaymentMethodBrokerageInfo | PaymentMethodAccountInfo;
@@ -3,12 +3,8 @@ import { type ConnectablePaymentMethodInfo, PaymentMethod, type PaymentMethodCar
3
3
  import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, type ModalStepInfo } from '../stepTransition';
4
4
  export type SourceChangeState = CheckoutModalCommonState & {
5
5
  paymentMethodInfo: ConnectablePaymentMethodInfo | null;
6
- newUser?: boolean;
7
6
  };
8
- type WithNewUser<T> = T & {
9
- newUser?: boolean;
10
- };
11
- export type SourceChangeNext = WithNewUser<{
7
+ export type SourceChangeNext = {
12
8
  connectNew: false;
13
9
  paymentMethodInfo: ConnectablePaymentMethodInfo;
14
10
  brokerageFailed: false;
@@ -29,7 +25,6 @@ export type SourceChangeNext = WithNewUser<{
29
25
  } | {
30
26
  brokerageFailed: true;
31
27
  paymentMethodInfo: ConnectablePaymentMethodInfo;
32
- }>;
28
+ };
33
29
  export declare const SourceChangeInfo: ModalStepInfo<FunCheckoutStep.SOURCE_CHANGE>;
34
30
  export declare function SourceChange({ modalState, onNext, onClose, setModalState, }: ModalStepComponentProps<FunCheckoutStep.SOURCE_CHANGE>): React.JSX.Element;
35
- export {};
@@ -3,7 +3,6 @@ import { type TransferTokenDefault } from '~/hooks/useTokenChain';
3
3
  import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, type ModalStepInfo } from '../stepTransition';
4
4
  export type TransferTokenState = CheckoutModalCommonState & {
5
5
  transferToken?: TransferTokenDefault;
6
- newUser?: boolean;
7
6
  };
8
7
  export type TransferTokenNext = Record<string, never>;
9
8
  export interface TokenTransferSourceChainsAndAssets {
@@ -3,7 +3,6 @@ import { type PaymentMethodVirtualBankInfo } from '~/domains/paymentMethods';
3
3
  import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, type ModalStepInfo } from '../stepTransition';
4
4
  export type FiatAccountDetailState = CheckoutModalCommonState & {
5
5
  paymentMethodInfo: PaymentMethodVirtualBankInfo;
6
- newUser?: boolean;
7
6
  };
8
7
  export type FiatAccountDetailNext = Record<string, never>;
9
8
  export declare const AccountDetailsScreen: ({ modalState, onNext, }: ModalStepComponentProps<FunCheckoutStep.FIAT_ACCOUNT_DETAIL>) => React.JSX.Element;
@@ -3,21 +3,18 @@ import { type BridgeCustomerNext, type BridgeCustomerState } from '~/modals/Chec
3
3
  import { type BridgeKycNext, type BridgeKycState } from '~/modals/CheckoutModal/VirtualFiatAccount/BridgeKyc';
4
4
  import { type ErrorScreenState } from '~/modals/CheckoutModal/VirtualFiatAccount/ErrorScreen';
5
5
  import { type VirtualFiatAccountNext, type VirtualFiatAccountState } from '~/modals/CheckoutModal/VirtualFiatAccount/VirtualFiatAccount';
6
- import type { FunCheckoutStartingStep, FunkitActiveCheckoutItem } from '../../providers/FunkitCheckoutContext';
6
+ import { FunCheckoutStartingStep, type FunkitActiveCheckoutItem } from '../../providers/FunkitCheckoutContext';
7
7
  import { type FunkitTextCustomizationsConfig } from '../../providers/FunkitConfigContext';
8
8
  import { type CheckoutCompleteNext, type CheckoutCompleteState } from './CheckoutComplete/CheckoutComplete';
9
9
  import { type CheckoutHelpState } from './CheckoutHelp/CheckoutHelp';
10
10
  import { type ConfirmationStepNext, type ConfirmationStepState } from './ConfirmationStep/ConfirmationStep';
11
- import { type ConnectExchangeNext, type ConnectExchangeState } from './ConnectExchange';
12
11
  import { type DirectExecutionNotifCenterState } from './DirectExecutionNotifCenter/DirectExecutionNotifCenter';
13
12
  import { type InputAmountNext, type InputAmountState } from './InputAmount/InputAmount';
14
13
  import { type LoadingAccountNext, type LoadingAccountState } from './LoadingAccount';
15
14
  import { type MeldCurrencySelectNext, type MeldCurrencySelectState } from './MeldCurrencySelect/MeldCurrencySelect';
16
15
  import { type MeldQuotesNext, type MeldQuotesState } from './MeldQuotes/MeldQuotes';
17
- import { type MeshVerificationNext, type MeshVerificationState } from './MeshVerification';
18
16
  import { type MoonpaySetupNext, type MoonpaySetupState } from './MoonpaySetup';
19
17
  import { type SelectAssetNext, type SelectAssetState } from './SelectAsset';
20
- import { type SelectBrokerageNext, type SelectBrokerageState } from './SelectBrokerage';
21
18
  import { type SourceChangeNext, type SourceChangeState } from './SourceChange/SourceChange';
22
19
  import { type TransferTokenNext, type TransferTokenState } from './TransferToken/TransferToken';
23
20
  import { type FiatAccountDetailNext, type FiatAccountDetailState } from './VirtualFiatAccount/FiatAccountDetail';
@@ -30,6 +27,7 @@ export interface CheckoutModalCommonState {
30
27
  isBlocked?: boolean;
31
28
  /** Whether checkout is started in a defi mode which has various flow implications (most importantly targetAssetAmount must be set and is not editable throughout the checkout)*/
32
29
  isDefiMode: boolean;
30
+ startingStep: FunCheckoutStartingStep;
33
31
  targetChainId: string;
34
32
  }
35
33
  export interface ModalStepComponentProps<S extends FunCheckoutStep = FunCheckoutStep> {
@@ -47,10 +45,7 @@ export declare enum FunCheckoutStep {
47
45
  SOURCE_CHANGE = "source_change",
48
46
  CONFIRMATION = "confirmation",
49
47
  MOONPAY_SETUP = "payment_setup",
50
- SELECT_BROKERAGE = "select_brokerage",
51
- CONNECT_EXCHANGE = "connect_exchange",
52
48
  SELECT_ASSET = "select_asset",
53
- MESH_VERIFICATION = "mesh_verification",
54
49
  CHECKOUT_COMPLETE = "checkout_complete",
55
50
  CHECKOUT_HELP = "checkout_help",
56
51
  TRANSFER_TOKEN = "transfer_token",
@@ -91,13 +86,10 @@ type CheckoutModalState<S extends FunCheckoutStep = FunCheckoutStep> = {
91
86
  [FunCheckoutStep.CHECKOUT_COMPLETE]: CheckoutCompleteState;
92
87
  [FunCheckoutStep.CHECKOUT_HELP]: CheckoutHelpState;
93
88
  [FunCheckoutStep.CONFIRMATION]: ConfirmationStepState;
94
- [FunCheckoutStep.CONNECT_EXCHANGE]: ConnectExchangeState;
95
89
  [FunCheckoutStep.INPUT_AMOUNT]: InputAmountState;
96
90
  [FunCheckoutStep.LOADING_ACCOUNT]: LoadingAccountState;
97
- [FunCheckoutStep.MESH_VERIFICATION]: MeshVerificationState;
98
91
  [FunCheckoutStep.MOONPAY_SETUP]: MoonpaySetupState;
99
92
  [FunCheckoutStep.SELECT_ASSET]: SelectAssetState;
100
- [FunCheckoutStep.SELECT_BROKERAGE]: SelectBrokerageState;
101
93
  [FunCheckoutStep.SOURCE_CHANGE]: SourceChangeState;
102
94
  [FunCheckoutStep.TRANSFER_TOKEN]: TransferTokenState;
103
95
  [FunCheckoutStep.CREATE_FIAT_ACCOUNT]: VirtualFiatAccountState;
@@ -117,13 +109,10 @@ type NextPayload<S extends FunCheckoutStep = FunCheckoutStep> = {
117
109
  [FunCheckoutStep.CHECKOUT_HELP]: null;
118
110
  [FunCheckoutStep.CHECKOUT_COMPLETE]: CheckoutCompleteNext;
119
111
  [FunCheckoutStep.CONFIRMATION]: ConfirmationStepNext;
120
- [FunCheckoutStep.CONNECT_EXCHANGE]: ConnectExchangeNext;
121
112
  [FunCheckoutStep.INPUT_AMOUNT]: InputAmountNext;
122
113
  [FunCheckoutStep.LOADING_ACCOUNT]: LoadingAccountNext;
123
- [FunCheckoutStep.MESH_VERIFICATION]: MeshVerificationNext;
124
114
  [FunCheckoutStep.MOONPAY_SETUP]: MoonpaySetupNext;
125
115
  [FunCheckoutStep.SELECT_ASSET]: SelectAssetNext;
126
- [FunCheckoutStep.SELECT_BROKERAGE]: SelectBrokerageNext;
127
116
  [FunCheckoutStep.SOURCE_CHANGE]: SourceChangeNext;
128
117
  [FunCheckoutStep.TRANSFER_TOKEN]: TransferTokenNext;
129
118
  [FunCheckoutStep.CREATE_FIAT_ACCOUNT]: VirtualFiatAccountNext;
@@ -7,9 +7,7 @@ export interface SourceAssetConfirmed {
7
7
  isQuoteSuccess: boolean;
8
8
  maxTargetAssetAmount: number | undefined;
9
9
  }
10
- export declare function preparePaymentMethodInfo(selectedPaymentMethodInfo: PaymentMethodInfo | null, meshNetworkInfo: {
11
- meshNetworkId: string | undefined;
12
- } | null): PaymentMethodInfo;
10
+ export declare function preparePaymentMethodInfo(selectedPaymentMethodInfo: PaymentMethodInfo | null): PaymentMethodInfo;
13
11
  export declare function fetchSponsorInitialTransferGasLimit(selectedPaymentMethodInfo: PaymentMethodInfo | null, loginType: LoginType, generateCheckoutTransferOpItems: (toAddress: string, tokenAmount: number | string) => Promise<{
14
12
  transferOp: Operation | null;
15
13
  }>): Promise<number>;
@@ -18,7 +18,8 @@ export interface DynamicTargetAssetCandidate {
18
18
  }
19
19
  export declare enum FunCheckoutStartingStep {
20
20
  SOURCE_CHANGE = "source_change",
21
- CONFIRMATION = "confirmation"
21
+ CONFIRMATION = "confirmation",
22
+ SELECT_ASSET = "select_asset"
22
23
  }
23
24
  export interface FunkitCheckoutConfig extends Omit<ApiFunkitCheckoutConfig, 'generateActionsParams' | 'customRecipient' | 'modalTitle' | 'iconSrc' | 'modalTitleMeta' | 'externalCheckoutUserId'> {
24
25
  /** List of contract action params **/
@@ -35,6 +35,8 @@ export interface FunkitUiCustomizationsConfig {
35
35
  showReceiveAmountUsd?: boolean;
36
36
  /** Custom destination icon and text used in checkout summary */
37
37
  destinationConfig?: FunkitUiDestinationConfig;
38
+ /** when source and destination are the same address, show destination as payment method instead of source */
39
+ preferDestinationWhenSame?: boolean;
38
40
  };
39
41
  inputAmountScreen?: {
40
42
  /** Whether to allow entering an amount of tokens, rather than only USD - defaults to true */
@@ -1,5 +1,5 @@
1
1
  import React, { type ReactNode } from 'react';
2
- import { type MeshExchangeType } from '~/consts/mesh';
2
+ import type { MeshExchangeType } from '~/consts/mesh';
3
3
  export interface MeshConnectionInfo {
4
4
  accessToken: string;
5
5
  accountId: string;
@@ -8,22 +8,4 @@ export interface MeshConnectionInfo {
8
8
  export declare function FunkitMeshProvider({ children }: {
9
9
  children: ReactNode;
10
10
  }): React.JSX.Element;
11
- export declare function useFunkitMesh(): {
12
- getActiveConnection: (brokerType: MeshExchangeType) => MeshConnectionInfo | null;
13
- getFirstActiveConnection: () => MeshConnectionInfo | null;
14
- unlinkBrokerage: (brokerType: MeshExchangeType) => Promise<void>;
15
- };
16
- interface FunkitMeshHook {
17
- onBeforeConnect(): void;
18
- onConnected(connection: MeshConnectionInfo | null): void;
19
- onMeshModalClose(): void;
20
- }
21
11
  export declare function getMeshDeviceIdFromLocalStorage(): string | null;
22
- export declare function postTokensToProxyServer(apiKey: string, brokerType: string, accessToken: string, refreshToken: string | null, accessTokenExpiresIn: number, refreshTokenExpiresIn?: number): Promise<void>;
23
- /**
24
- * all hooks SHOULD be in object method style
25
- * capturing the latest value in render.
26
- * useMeshConnect will return a stable function.
27
- * */
28
- export declare function useMeshConnect(hooks: FunkitMeshHook): (brokerType: MeshExchangeType) => Promise<void>;
29
- export {};
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  baseTheme,
4
4
  systemFontStack
5
- } from "../chunk-IVQ57535.js";
5
+ } from "../chunk-7HKC2KCK.js";
6
6
  export {
7
7
  baseTheme,
8
8
  systemFontStack
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import {
3
3
  darkTheme
4
- } from "../chunk-IOMUPAAW.js";
5
- import "../chunk-IVQ57535.js";
4
+ } from "../chunk-VQOGHHW2.js";
5
+ import "../chunk-7HKC2KCK.js";
6
6
  export {
7
7
  darkTheme
8
8
  };
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import {
3
3
  lightTheme
4
- } from "../chunk-N6UWLAUQ.js";
5
- import "../chunk-IVQ57535.js";
4
+ } from "../chunk-ZAZGUX6Z.js";
5
+ import "../chunk-7HKC2KCK.js";
6
6
  export {
7
7
  lightTheme
8
8
  };
@@ -2,6 +2,7 @@ import type { AbstractFlags, InferFlagType } from './types';
2
2
  export interface UserContext {
3
3
  apiKey: string;
4
4
  userId?: string;
5
+ ipCountry: string | undefined;
5
6
  }
6
7
  export declare function fetchConfigFromServer<F extends AbstractFlags>(): Promise<F>;
7
8
  export declare function deriveAllFlags<T extends AbstractFlags>(config: T, userContext: UserContext): {
@@ -26,14 +26,15 @@ type Override<T> = {
26
26
  if_all?: Condition[];
27
27
  value: T;
28
28
  };
29
+ type ConditionKey = 'userId' | 'apiKey' | 'ipCountry';
29
30
  export type Condition = {
30
31
  type: 'pctRollout';
31
- key: 'userId' | 'apiKey';
32
+ key: ConditionKey;
32
33
  /** whole number from 0 - 100 inclusive */
33
34
  pct: number;
34
35
  } | {
35
36
  type: 'isAnyOf';
36
- key: 'userId' | 'apiKey';
37
+ key: ConditionKey;
37
38
  /** non-empty list of API keys */
38
39
  values: string[];
39
40
  };
@@ -1,22 +1,22 @@
1
1
  "use client";
2
- import {
3
- xdefiWallet
4
- } from "./chunk-BOU4WKRZ.js";
5
2
  import {
6
3
  zerionWallet
7
4
  } from "./chunk-SULRQO27.js";
5
+ import {
6
+ xdefiWallet
7
+ } from "./chunk-BOU4WKRZ.js";
8
8
  import {
9
9
  zealWallet
10
10
  } from "./chunk-RNBEDQHF.js";
11
- import {
12
- talismanWallet
13
- } from "./chunk-DRO6WYMM.js";
14
11
  import {
15
12
  tahoWallet
16
13
  } from "./chunk-ZZZRUXZE.js";
17
14
  import {
18
- safeheronWallet
19
- } from "./chunk-RZIO5TFF.js";
15
+ subWallet
16
+ } from "./chunk-JWFF4AAL.js";
17
+ import {
18
+ talismanWallet
19
+ } from "./chunk-DRO6WYMM.js";
20
20
  import {
21
21
  tokenPocketWallet
22
22
  } from "./chunk-2L43XSW3.js";
@@ -33,65 +33,68 @@ import {
33
33
  walletConnectWallet
34
34
  } from "./chunk-NP5QGWNL.js";
35
35
  import {
36
- oneKeyWallet
37
- } from "./chunk-SHBUZ7U7.js";
36
+ oneInchWallet
37
+ } from "./chunk-OESTDX6I.js";
38
+ import {
39
+ rainbowWallet
40
+ } from "./chunk-2KUBG3S6.js";
38
41
  import {
39
42
  rabbyWallet
40
43
  } from "./chunk-BBOM42DL.js";
41
44
  import {
42
45
  ramperWallet
43
46
  } from "./chunk-BYXPFMI7.js";
44
- import {
45
- phantomWallet
46
- } from "./chunk-362NXNTM.js";
47
47
  import {
48
48
  roninWallet
49
49
  } from "./chunk-NWIQNBJU.js";
50
+ import {
51
+ safeheronWallet
52
+ } from "./chunk-RZIO5TFF.js";
50
53
  import {
51
54
  safeWallet
52
55
  } from "./chunk-BQQQL6UD.js";
53
56
  import {
54
57
  safepalWallet
55
58
  } from "./chunk-NT2HYJKW.js";
56
- import {
57
- subWallet
58
- } from "./chunk-JWFF4AAL.js";
59
59
  import {
60
60
  metaMaskWallet
61
61
  } from "./chunk-2HYNUNAS.js";
62
- import {
63
- mewWallet
64
- } from "./chunk-OL5ZO7E4.js";
65
62
  import {
66
63
  ledgerWallet
67
64
  } from "./chunk-BRBKM4PW.js";
65
+ import {
66
+ mewWallet
67
+ } from "./chunk-OL5ZO7E4.js";
68
68
  import {
69
69
  oktoWallet
70
70
  } from "./chunk-ADIXAKUL.js";
71
- import {
72
- omniWallet
73
- } from "./chunk-7CUY5G6R.js";
74
71
  import {
75
72
  okxWallet
76
73
  } from "./chunk-TDIEHTMB.js";
77
74
  import {
78
- oneInchWallet
79
- } from "./chunk-OESTDX6I.js";
75
+ omniWallet
76
+ } from "./chunk-7CUY5G6R.js";
80
77
  import {
81
- rainbowWallet
82
- } from "./chunk-2KUBG3S6.js";
78
+ oneKeyWallet
79
+ } from "./chunk-SHBUZ7U7.js";
80
+ import {
81
+ phantomWallet
82
+ } from "./chunk-362NXNTM.js";
83
83
  import {
84
84
  foxWallet
85
85
  } from "./chunk-7QONTUXT.js";
86
86
  import {
87
87
  frameWallet
88
88
  } from "./chunk-IFON7E6U.js";
89
+ import {
90
+ gateWallet
91
+ } from "./chunk-FKJJQNKX.js";
89
92
  import {
90
93
  frontierWallet
91
94
  } from "./chunk-TCAGNB4B.js";
92
95
  import {
93
- gateWallet
94
- } from "./chunk-FKJJQNKX.js";
96
+ kresusWallet
97
+ } from "./chunk-MJXPRJZT.js";
95
98
  import {
96
99
  imTokenWallet
97
100
  } from "./chunk-COZ7MIQS.js";
@@ -99,17 +102,14 @@ import {
99
102
  injectedWallet
100
103
  } from "./chunk-XWUJE7MW.js";
101
104
  import {
102
- kresusWallet
103
- } from "./chunk-MJXPRJZT.js";
105
+ coin98Wallet
106
+ } from "./chunk-OBOVHCEI.js";
104
107
  import {
105
108
  bybitWallet
106
109
  } from "./chunk-2STUC6QL.js";
107
110
  import {
108
111
  clvWallet
109
112
  } from "./chunk-M3NZ6R2E.js";
110
- import {
111
- coin98Wallet
112
- } from "./chunk-OBOVHCEI.js";
113
113
  import {
114
114
  coinbaseWallet
115
115
  } from "./chunk-H4IRCEZN.js";
@@ -119,30 +119,30 @@ import {
119
119
  import {
120
120
  dawnWallet
121
121
  } from "./chunk-HWPKCIBE.js";
122
- import {
123
- desigWallet
124
- } from "./chunk-OPAZMNA7.js";
125
122
  import {
126
123
  enkryptWallet
127
124
  } from "./chunk-OLOIXTYS.js";
125
+ import {
126
+ desigWallet
127
+ } from "./chunk-OPAZMNA7.js";
128
128
  import {
129
129
  argentWallet
130
130
  } from "./chunk-WSQ2YJO2.js";
131
- import {
132
- bifrostWallet
133
- } from "./chunk-A5N6B5UW.js";
134
131
  import {
135
132
  bitgetWallet
136
133
  } from "./chunk-TDAVGY5F.js";
134
+ import {
135
+ bifrostWallet
136
+ } from "./chunk-A5N6B5UW.js";
137
137
  import {
138
138
  bitskiWallet
139
139
  } from "./chunk-HS3C7OQV.js";
140
- import {
141
- bloomWallet
142
- } from "./chunk-S27IADFU.js";
143
140
  import {
144
141
  bitverseWallet
145
142
  } from "./chunk-3HZRRP4Y.js";
143
+ import {
144
+ bloomWallet
145
+ } from "./chunk-S27IADFU.js";
146
146
  import "./chunk-23WIEY36.js";
147
147
  import {
148
148
  braveWallet
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funkit/connect",
3
- "version": "6.0.1",
3
+ "version": "6.0.3",
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/chains": "0.3.6",
93
- "@funkit/api-base": "1.9.10",
92
+ "@funkit/api-base": "1.9.12",
93
+ "@funkit/fun-relay": "1.0.0",
94
+ "@funkit/chains": "0.3.7",
94
95
  "@funkit/utils": "1.1.8",
95
- "@funkit/core": "2.3.34",
96
- "@funkit/wagmi-tools": "3.0.56",
97
- "@funkit/fun-relay": "0.1.12"
96
+ "@funkit/core": "2.3.36",
97
+ "@funkit/wagmi-tools": "3.0.58"
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;