@funkit/connect 10.2.0 → 10.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 (75) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/dist/{chunk-36KVHK22.js → chunk-L67HP4HQ.js} +1 -1
  3. package/dist/clients/{chunk-ZAXSDMDU.js → chunk-3STGJU6Z.js} +2 -2
  4. package/dist/clients/chunk-HOORQPSY.js +4660 -0
  5. package/dist/clients/{chunk-E3USJY7A.js → chunk-RWCJ4XGX.js} +5 -3
  6. package/dist/clients/fanatics.js +1 -1
  7. package/dist/clients/lighter.css +12 -1
  8. package/dist/clients/lighter.js +2 -3
  9. package/dist/clients/mallard.js +1 -1
  10. package/dist/clients/polymarket/PolymarketDepositAccountDropdown.css +12 -1
  11. package/dist/clients/polymarket/PolymarketDepositAccountDropdown.js +3 -3
  12. package/dist/clients/polymarket/index.css +12 -1
  13. package/dist/clients/polymarket/index.js +3 -3
  14. package/dist/components/Dialog/Dialog.d.ts +1 -1
  15. package/dist/components/Dialog/hooks.d.ts +1 -2
  16. package/dist/components/FunInput/FunInput.d.ts +2 -0
  17. package/dist/components/FunkitTrans.d.ts +14 -0
  18. package/dist/hooks/useFunkitTranslation.d.ts +3 -1
  19. package/dist/hooks/usePaymentMethodTabs.d.ts +4 -1
  20. package/dist/hooks/useSkipSwappedPreload.d.ts +7 -0
  21. package/dist/hooks/useSwappedPreload.d.ts +10 -1
  22. package/dist/index.css +12 -1
  23. package/dist/index.js +15525 -15538
  24. package/dist/modals/CheckoutModal/InputAmount/InputAmount.css.d.ts +1 -0
  25. package/dist/modals/CheckoutModal/SourceChange/FormOfPaymentsList.d.ts +6 -2
  26. package/dist/modals/CheckoutModal/SourceChange/SourceChange.d.ts +26 -0
  27. package/dist/modals/CheckoutModal/Withdrawal/WithdrawalComplete.d.ts +15 -1
  28. package/dist/modals/CheckoutModal/Withdrawal/WithdrawalEnterAmount.d.ts +12 -1
  29. package/dist/modals/CheckoutModal/isWithdrawalStep.d.ts +24 -0
  30. package/dist/modals/WithdrawalModal/WithdrawalContent.d.ts +15 -1
  31. package/dist/modals/WithdrawalModal/WithdrawalMethodSelect.d.ts +5 -1
  32. package/dist/providers/FunkitCheckoutContext/index.d.ts +15 -1
  33. package/dist/providers/FunkitCheckoutContext/types.d.ts +8 -0
  34. package/dist/providers/FunkitI18nProvider.d.ts +6 -2
  35. package/dist/themes/darkTheme.js +1 -1
  36. package/dist/wallets/walletConnectors/index.js +19 -19
  37. package/package.json +5 -4
  38. package/dist/clients/chunk-STLOQEN7.js +0 -11
  39. package/dist/components/FunInput/FunTextAreaInput.css.d.ts +0 -1
  40. package/dist/components/FunInput/FunTextAreaInput.d.ts +0 -3
  41. package/dist/components/Icons/AcornsIcon.d.ts +0 -4
  42. package/dist/components/Icons/AlpacaIcon.d.ts +0 -4
  43. package/dist/components/Icons/BitFlyerIcon.d.ts +0 -4
  44. package/dist/components/Icons/BitfinexIcon.d.ts +0 -4
  45. package/dist/components/Icons/BitstampIcon.d.ts +0 -4
  46. package/dist/components/Icons/BrokerageIcon.d.ts +0 -4
  47. package/dist/components/Icons/CexloIcon.d.ts +0 -4
  48. package/dist/components/Icons/CoinlistIcon.d.ts +0 -4
  49. package/dist/components/Icons/CryptoComIcon.d.ts +0 -4
  50. package/dist/components/Icons/CryptoIcon.d.ts +0 -2
  51. package/dist/components/Icons/DeviceConfirmationIcon.d.ts +0 -2
  52. package/dist/components/Icons/EmailConfirmationIcon.d.ts +0 -2
  53. package/dist/components/Icons/EtoroIcon.d.ts +0 -4
  54. package/dist/components/Icons/EtradeIcon.d.ts +0 -4
  55. package/dist/components/Icons/HuobiIcon.d.ts +0 -4
  56. package/dist/components/Icons/KucoinIcon.d.ts +0 -4
  57. package/dist/components/Icons/LightningBoltIcon.d.ts +0 -4
  58. package/dist/components/Icons/LockIcon.d.ts +0 -4
  59. package/dist/components/Icons/MailIcon.d.ts +0 -6
  60. package/dist/components/Icons/New/LinkExternalIcon.d.ts +0 -4
  61. package/dist/components/Icons/New/MessageIcon.d.ts +0 -2
  62. package/dist/components/Icons/OkcoinIcon.d.ts +0 -4
  63. package/dist/components/Icons/OkxIcon.d.ts +0 -4
  64. package/dist/components/Icons/PublicIcon.d.ts +0 -4
  65. package/dist/components/Icons/RobinhoodIcon.d.ts +0 -4
  66. package/dist/components/Icons/SocialMediaIcons.d.ts +0 -13
  67. package/dist/components/Icons/SocialsIcon.d.ts +0 -2
  68. package/dist/components/Icons/StashIcon.d.ts +0 -4
  69. package/dist/components/Icons/WeBullIcon.d.ts +0 -4
  70. package/dist/components/Icons/WhitelistIcon.d.ts +0 -2
  71. package/dist/hooks/useIsUsUser.d.ts +0 -1
  72. package/dist/utils/privyHelper.d.ts +0 -3
  73. package/dist/utils/safeJSON.d.ts +0 -5
  74. package/dist/utils/swappedRouteOverride.d.ts +0 -27
  75. package/dist/utils/tokenTransfer/disabledList.d.ts +0 -1
@@ -0,0 +1 @@
1
+ export declare const amountInputFontSize: string;
@@ -1,6 +1,6 @@
1
1
  import type { ExchangeRates, GetFopsResponse, SavedFormOfPayment, SwappedFormOfPayment } from '@funkit/api-base';
2
2
  import type { ListFormOfPayment, SyntheticFormOfPayment } from '@funkit/connect-core';
3
- import React from 'react';
3
+ import React, { type ReactNode } from 'react';
4
4
  /** FOP list normalized to hold real (Swapped) and synthetic methods together. */
5
5
  interface ListFopsData {
6
6
  genericFormsOfPayments: ListFormOfPayment[];
@@ -32,6 +32,10 @@ interface FormOfPaymentsListProps {
32
32
  * predicate if per-provider minimums ever diverge.
33
33
  */
34
34
  isBelowMinimumBalance?: boolean;
35
+ /**
36
+ * Rendered above FOPs within a same list
37
+ */
38
+ cryptoPaymentMethodItem?: ReactNode;
35
39
  }
36
40
  interface FormOfPaymentSection {
37
41
  items: ListFormOfPayment[];
@@ -41,5 +45,5 @@ export declare function getFormOfPaymentSections(fopsData: ListFopsData, fopPrio
41
45
  primary: FormOfPaymentSection;
42
46
  secondary: FormOfPaymentSection;
43
47
  };
44
- export declare function FormOfPaymentsList({ fopsData, isLoading, selectedFop, syntheticFops, onSelect, exchangeRatesData, getDisclaimerLimit, enableSourceGroupLabels, isDisabled, isBelowMinimumBalance, }: FormOfPaymentsListProps): React.JSX.Element;
48
+ export declare function FormOfPaymentsList({ fopsData, isLoading, selectedFop, syntheticFops, onSelect, exchangeRatesData, getDisclaimerLimit, enableSourceGroupLabels, isDisabled, isBelowMinimumBalance, cryptoPaymentMethodItem, }: FormOfPaymentsListProps): React.JSX.Element;
45
49
  export {};
@@ -1,12 +1,23 @@
1
1
  import { type SwappedFormOfPayment } from '@funkit/api-base';
2
2
  import React from 'react';
3
+ import type { Hex } from 'viem';
3
4
  import { type ConnectablePaymentMethodInfo, PaymentMethod, type PaymentMethodBitcoinLightningInfo, type PaymentMethodCardInfo, type PaymentMethodCashAppLightningInfo, type PaymentMethodVirtualBankIncompleteInfo } from '../../../domains/paymentMethods';
5
+ import type { FunkitCheckoutQuoteResult } from '../../../domains/quote';
4
6
  import { type PaymentMethodType } from '../../../hooks/usePaymentSources';
7
+ import { type CustomWithdrawalConfig, type WalletWithdrawalConfig } from '../../../providers/FunkitCheckoutContext';
5
8
  import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, type ModalStepInfo } from '../stepTransition';
6
9
  export type SourceChangeState = CheckoutModalCommonState & {
7
10
  paymentMethodInfo: ConnectablePaymentMethodInfo | null;
8
11
  /** Persisted payment method type filter (crypto/fiat tab) */
9
12
  paymentMethodTypeFilter?: PaymentMethodType;
13
+ /**
14
+ * Resolved single-method withdrawal config, seeded while the Withdraw tab is
15
+ * open so the modal-level effect in `FunCheckoutModal` can enter withdrawal
16
+ * mode in lockstep with the tab — the withdraw tab may render withdrawal-mode
17
+ * UI while still on SourceChange. Cleared when leaving the tab so the effect
18
+ * reverts back to deposit mode. Read only by that effect.
19
+ */
20
+ withdrawalConfig?: WalletWithdrawalConfig | CustomWithdrawalConfig;
10
21
  };
11
22
  export type SourceChangeNext = {
12
23
  connectNew: false;
@@ -53,6 +64,21 @@ export type SourceChangeNext = {
53
64
  */
54
65
  skipAssetSelect: true;
55
66
  paymentMethodInfo: ConnectablePaymentMethodInfo;
67
+ } | {
68
+ /** Enter the cashier withdrawal flow with a resolved single-method config. */
69
+ withdraw: true;
70
+ withdrawalConfig: WalletWithdrawalConfig | CustomWithdrawalConfig;
71
+ } | {
72
+ /**
73
+ * Inline withdrawal (swapped-withdrawal flag off): the amount form is
74
+ * rendered directly in the Withdraw tab, so on success we jump straight
75
+ * to the completion screen rather than through WITHDRAWAL_ENTER_AMOUNT.
76
+ */
77
+ withdrawComplete: true;
78
+ hash: Hex;
79
+ withdrawnAmount: string;
80
+ tokenSymbol: string;
81
+ quote?: FunkitCheckoutQuoteResult;
56
82
  };
57
83
  export declare const SourceChangeInfo: ModalStepInfo<FunCheckoutStep.SOURCE_CHANGE>;
58
84
  export declare function SourceChange({ modalState, onClose, onNext, onStepChange, setModalState, }: ModalStepComponentProps<FunCheckoutStep.SOURCE_CHANGE>): React.JSX.Element;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import type { Hex } from 'viem';
2
3
  import type { FunkitCheckoutQuoteResult } from '../../../domains/quote';
3
4
  import type { CustomWithdrawalConfig, WalletWithdrawalConfig } from '../../../providers/FunkitCheckoutContext';
@@ -11,4 +12,17 @@ export type WithdrawalCompleteState = CheckoutModalCommonState & {
11
12
  };
12
13
  export type WithdrawalCompleteNext = Record<never, never>;
13
14
  export declare const WithdrawalCompleteInfo: ModalStepInfo<FunCheckoutStep.WITHDRAWAL_COMPLETE>;
14
- export declare function WithdrawalComplete(_props: ModalStepComponentProps<FunCheckoutStep.WITHDRAWAL_COMPLETE>): null;
15
+ /**
16
+ * Cashier withdrawal completion screen. Mirrors the standalone `WithdrawalModal`
17
+ * success screens, adapted to the CheckoutModal step contract and its bottom-bar
18
+ * portal (`MODAL_BOTTOM_BAR_IDS.checkout`):
19
+ *
20
+ * - Wallet config → {@link WithdrawSuccess} (transaction detail keyed by tx hash).
21
+ * - Custom callback config → {@link WithdrawalCallbackSuccess} (pending screen).
22
+ *
23
+ * Lighter Secure (mainnet) is intentionally NOT branched here yet — its success
24
+ * component hard-codes the standalone `'withdrawal'` bottom-bar id, so wiring it
25
+ * into the cashier is deferred to a follow-up. A Lighter customer falls into the
26
+ * generic callback screen until then.
27
+ */
28
+ export declare function WithdrawalComplete({ modalState, onClose, onNext, }: ModalStepComponentProps<FunCheckoutStep.WITHDRAWAL_COMPLETE>): React.JSX.Element;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import type { Hex } from 'viem';
2
3
  import type { FunkitCheckoutQuoteResult } from '../../../domains/quote';
3
4
  import type { CustomWithdrawalConfig, WalletWithdrawalConfig } from '../../../providers/FunkitCheckoutContext';
@@ -12,4 +13,14 @@ export type WithdrawalEnterAmountNext = {
12
13
  quote?: FunkitCheckoutQuoteResult;
13
14
  };
14
15
  export declare const WithdrawalEnterAmountInfo: ModalStepInfo<FunCheckoutStep.WITHDRAWAL_ENTER_AMOUNT>;
15
- export declare function WithdrawalEnterAmount(_props: ModalStepComponentProps<FunCheckoutStep.WITHDRAWAL_ENTER_AMOUNT>): null;
16
+ /**
17
+ * Cashier withdrawal amount entry. Thin adapter that renders the shared
18
+ * {@link WithdrawContent} form against the resolved single-method config carried
19
+ * on the modal state, mirroring the standalone `WithdrawalModal` amount screen
20
+ * (free-USDC banner above the form).
21
+ *
22
+ * Submitting executes the real withdrawal: `WithdrawContent`'s CTA fires
23
+ * `useWithdrawal`, whose `onSuccess` maps `onContinue` → `onNext`, advancing to
24
+ * `WITHDRAWAL_COMPLETE`.
25
+ */
26
+ export declare function WithdrawalEnterAmount({ modalState, onNext, }: ModalStepComponentProps<FunCheckoutStep.WITHDRAWAL_ENTER_AMOUNT>): React.JSX.Element;
@@ -0,0 +1,24 @@
1
+ import { FunCheckoutStep } from './FunCheckoutStep';
2
+ import type { CheckoutModalState } from './stepTransition';
3
+ /** Steps whose state carries a `withdrawalConfig` (the withdrawal-mode region). */
4
+ type WithdrawalStep = FunCheckoutStep.WITHDRAWAL_ENTER_AMOUNT | FunCheckoutStep.WITHDRAWAL_COMPLETE | FunCheckoutStep.SOURCE_CHANGE;
5
+ /**
6
+ * Authoritative list of steps that require the shared active checkout to be in
7
+ * *withdrawal* mode (`convertActiveCheckoutToWithdrawal`). `FunCheckoutModal`'s
8
+ * checkout↔withdrawal lifecycle effect keys off this.
9
+ *
10
+ * - Dedicated withdrawal steps (enter-amount, complete) always qualify.
11
+ * - The Withdraw tab on SourceChange qualifies while active — it surfaces
12
+ * withdrawal-mode UI before advancing to a dedicated step.
13
+ *
14
+ * Narrows to the states that carry `withdrawalConfig`, so callers can read it
15
+ * without re-checking the step. Adding a new withdrawal screen? Add its step
16
+ * both here and to {@link WithdrawalStep}, or the modal won't enter withdrawal
17
+ * mode for it.
18
+ *
19
+ * Lives in its own module (not `stepTransition.ts`) so it stays a pure,
20
+ * dependency-light helper — importable without pulling in the step components,
21
+ * and unit-testable without mocking the modal graph.
22
+ */
23
+ export declare function isWithdrawalStep(modalState: CheckoutModalState): modalState is CheckoutModalState<WithdrawalStep>;
24
+ export {};
@@ -1,6 +1,7 @@
1
1
  import type { TFunction } from 'i18next';
2
2
  import React from 'react';
3
3
  import type { Hex } from 'viem';
4
+ import { type ModalBottomBarIdType } from '../../components/Dialog/Dialog';
4
5
  import type { CustomWithdrawalConfig, FunkitActiveWithdrawalItem, FunkitCheckoutConfig, WalletWithdrawalConfig } from '../../providers/FunkitCheckoutContext';
5
6
  import { type WithdrawalFormData } from './useWithdrawal';
6
7
  /**
@@ -17,6 +18,19 @@ interface WithdrawContentProps {
17
18
  * {@link WithdrawalModal}; used by the over-$3M footer.
18
19
  */
19
20
  onSwitchToSecure?: () => void;
21
+ /**
22
+ * Portal target for the CTA. Defaults to the standalone WithdrawalModal's
23
+ * bottom bar; the unified CheckoutModal cashier flow passes `'checkout'` so
24
+ * the button lands in the checkout modal's bottom section instead.
25
+ */
26
+ bottomBarId?: ModalBottomBarIdType;
27
+ /**
28
+ * When true the submit CTA is rendered inert (disabled, no-op click) — no
29
+ * withdrawal executes and `onContinue` never fires. Used by the cashier amount
30
+ * step while the continue/success flow is not yet wired. Defaults to false so
31
+ * the standalone WithdrawalModal is unaffected.
32
+ */
33
+ disableSubmit?: boolean;
20
34
  }
21
35
  /**
22
36
  * Converts a source-token amount string to its USD value using the given unit
@@ -77,5 +91,5 @@ export declare const useFrozenSourceTokenBalance: ({ isWithdrawing, sourceTokenB
77
91
  * Currently returns a single option per config; expands when Lighter exposes
78
92
  * multi-asset API support.
79
93
  */
80
- export declare const WithdrawContent: ({ onContinue, config, withdrawalItem, onSwitchToSecure, }: WithdrawContentProps) => React.JSX.Element;
94
+ export declare const WithdrawContent: ({ onContinue, config, withdrawalItem, onSwitchToSecure, bottomBarId, disableSubmit, }: WithdrawContentProps) => React.JSX.Element;
81
95
  export {};
@@ -11,6 +11,10 @@ interface WithdrawalMethodSelectProps {
11
11
  * Omit/0 when unknown — no cap is sent and the iframe stays uncapped.
12
12
  */
13
13
  usdBalance?: number;
14
+ /**
15
+ * Hide the "Crypto" / "Cash" section labels. Used by Cashier flow.
16
+ */
17
+ hideSectionLabels?: boolean;
14
18
  }
15
- export declare function WithdrawalMethodSelect({ onCryptoSelect, onCashFopSelect, sourceChainId, sourceTokenAddress, usdBalance, }: WithdrawalMethodSelectProps): React.JSX.Element;
19
+ export declare function WithdrawalMethodSelect({ onCryptoSelect, onCashFopSelect, sourceChainId, sourceTokenAddress, usdBalance, hideSectionLabels, }: WithdrawalMethodSelectProps): React.JSX.Element;
16
20
  export {};
@@ -5,7 +5,7 @@ import { type PaymentMethodInfo } from '../../domains/paymentMethods';
5
5
  import type { AssetHoldingsItem } from '../../utils/assets';
6
6
  import type { WithdrawalClient, WithdrawalTransaction } from '../../wallets/Wallet';
7
7
  import { type FunkitCheckoutQuoteResult } from '../FunkitHistoryContext';
8
- import type { DynamicTargetAssetCandidate, FunkitActiveCheckoutItem, FunkitActiveWithdrawalItem, FunkitCheckoutConfig, FunkitWithdrawalConfig, UseFunkitCheckoutProps, UseFunkitCheckoutPropsWithFullConfig } from './types';
8
+ import type { CustomWithdrawalConfig, DynamicTargetAssetCandidate, FunkitActiveCheckoutItem, FunkitActiveWithdrawalItem, FunkitCheckoutConfig, FunkitWithdrawalConfig, UseFunkitCheckoutProps, UseFunkitCheckoutPropsWithFullConfig, WalletWithdrawalConfig } from './types';
9
9
  export * from './types';
10
10
  interface FunkitCheckoutContextInterface {
11
11
  checkoutItem: FunkitActiveCheckoutItem | null;
@@ -43,6 +43,20 @@ interface FunkitCheckoutContextInterface {
43
43
  updateWithdrawalSourceAssetAmount(newSourceAmount: string): void;
44
44
  resetForNewWithdrawal(): void;
45
45
  resetForNewDeposit(): void;
46
+ /**
47
+ * Switch the active checkout into a withdrawal-shaped item (same id, so the
48
+ * open modal's frozen `modalState.checkoutId` stays coherent and the modal does
49
+ * not remount) and populate `withdrawalItem`. Reuses the shared
50
+ * `buildWithdrawalActiveItems` shape so the cashier matches the standalone, but
51
+ * snapshots the prior deposit item so {@link revertActiveCheckoutFromWithdrawal}
52
+ * can restore it — `WithdrawContent` overwrites the active item's target
53
+ * asset/chain while in withdraw mode, so the snapshot (not a flag flip) is what
54
+ * makes revert lossless. Used by the cashier withdraw tab; the standalone
55
+ * `WithdrawalModal` uses {@link initNewWithdrawal} instead.
56
+ */
57
+ convertActiveCheckoutToWithdrawal(config: WalletWithdrawalConfig | CustomWithdrawalConfig): void;
58
+ /** Restore the deposit snapshot taken by {@link convertActiveCheckoutToWithdrawal} and clear `withdrawalItem`. */
59
+ revertActiveCheckoutFromWithdrawal(): void;
46
60
  applyDynamicRouting(path: ApplyDynamicRoutingPath): void;
47
61
  updateDynamicRoutingId(dynamicRoutingId: string): void;
48
62
  /**
@@ -384,6 +384,14 @@ export type FunkitCheckoutResult = {
384
384
  export interface UseFunkitCheckoutProps {
385
385
  /** @optional the checkout config object **/
386
386
  config?: FunkitCheckoutConfig;
387
+ /**
388
+ * @optional withdrawal config for the unified cashier flow. When provided,
389
+ * the checkout modal's withdraw tab can enter the in-modal withdrawal flow.
390
+ * TODO(cashier): the final wiring PR formalizes resolution (multi-method,
391
+ * per-source); for now a single- or multi-method config is accepted and the
392
+ * first method is used as the default.
393
+ */
394
+ withdrawalConfig?: FunkitWithdrawalConfig;
387
395
  /** @optional fires when the checkout modal is opened **/
388
396
  onOpen?: () => void;
389
397
  /** @optional fires when the checkout modal is closed **/
@@ -5,8 +5,12 @@ interface FunkitI18nProviderProps {
5
5
  locale?: Locale;
6
6
  }
7
7
  /**
8
- * Provider for internationalization using react-i18next
9
- * Wraps the application with I18nextProvider and manages locale changes
8
+ * Syncs the `locale` config onto funkit's private i18next instance.
9
+ *
10
+ * Deliberately does NOT render react-i18next's <I18nextProvider>: that would
11
+ * set the react-i18next context for the host app's children and shadow the
12
+ * host's own i18n (Slack C0B6S1XHWSJ). funkit components bind the instance
13
+ * explicitly via useFunkitTranslation/FunkitTrans instead.
10
14
  */
11
15
  export declare function FunkitI18nProvider({ children, locale, }: FunkitI18nProviderProps): React.JSX.Element;
12
16
  export {};
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  darkTheme
4
- } from "../chunk-36KVHK22.js";
4
+ } from "../chunk-L67HP4HQ.js";
5
5
  import "../chunk-4YEAUICE.js";
6
6
  export {
7
7
  darkTheme
@@ -5,12 +5,12 @@ import {
5
5
  import {
6
6
  zerionWallet
7
7
  } from "./chunk-SWFF3TWJ.js";
8
- import {
9
- talismanWallet
10
- } from "./chunk-4DCO3TGL.js";
11
8
  import {
12
9
  tahoWallet
13
10
  } from "./chunk-7ZYCBDQ4.js";
11
+ import {
12
+ talismanWallet
13
+ } from "./chunk-4DCO3TGL.js";
14
14
  import {
15
15
  tokenPocketWallet
16
16
  } from "./chunk-WKNQMP4A.js";
@@ -20,15 +20,15 @@ import {
20
20
  import {
21
21
  trustWallet
22
22
  } from "./chunk-KCRO2AGO.js";
23
- import {
24
- walletConnectWallet
25
- } from "./chunk-3FCWJRI4.js";
26
23
  import {
27
24
  uniswapWallet
28
25
  } from "./chunk-Z3PPW6NC.js";
29
26
  import {
30
27
  xdefiWallet
31
28
  } from "./chunk-JN5I3DNC.js";
29
+ import {
30
+ walletConnectWallet
31
+ } from "./chunk-3FCWJRI4.js";
32
32
  import {
33
33
  rabbyWallet
34
34
  } from "./chunk-RB66PKPA.js";
@@ -44,12 +44,12 @@ import {
44
44
  import {
45
45
  safeWallet
46
46
  } from "./chunk-RCY66YHF.js";
47
- import {
48
- safeheronWallet
49
- } from "./chunk-76S7R2ND.js";
50
47
  import {
51
48
  safepalWallet
52
49
  } from "./chunk-XCNHV3HS.js";
50
+ import {
51
+ safeheronWallet
52
+ } from "./chunk-76S7R2ND.js";
53
53
  import {
54
54
  subWallet
55
55
  } from "./chunk-NR2OGDHQ.js";
@@ -68,12 +68,12 @@ import {
68
68
  import {
69
69
  omniWallet
70
70
  } from "./chunk-2CX7LX4J.js";
71
- import {
72
- oneInchWallet
73
- } from "./chunk-QG6ZHI7B.js";
74
71
  import {
75
72
  oneKeyWallet
76
73
  } from "./chunk-WVT6BBJH.js";
74
+ import {
75
+ oneInchWallet
76
+ } from "./chunk-QG6ZHI7B.js";
77
77
  import {
78
78
  phantomWallet
79
79
  } from "./chunk-QY53O7WG.js";
@@ -102,8 +102,8 @@ import {
102
102
  ledgerWallet
103
103
  } from "./chunk-RPV27V2Y.js";
104
104
  import {
105
- bloomWallet
106
- } from "./chunk-PJ7Y57EH.js";
105
+ bybitWallet
106
+ } from "./chunk-OX37G4YT.js";
107
107
  import {
108
108
  clvWallet
109
109
  } from "./chunk-OEEGYENV.js";
@@ -131,6 +131,9 @@ import {
131
131
  import {
132
132
  bifrostWallet
133
133
  } from "./chunk-IULPZP2Q.js";
134
+ import {
135
+ bitverseWallet
136
+ } from "./chunk-NSK6A7TI.js";
134
137
  import {
135
138
  bitgetWallet
136
139
  } from "./chunk-TKB2OY6G.js";
@@ -138,11 +141,8 @@ import {
138
141
  bitskiWallet
139
142
  } from "./chunk-7HRFUZFX.js";
140
143
  import {
141
- bitverseWallet
142
- } from "./chunk-NSK6A7TI.js";
143
- import {
144
- bybitWallet
145
- } from "./chunk-OX37G4YT.js";
144
+ bloomWallet
145
+ } from "./chunk-PJ7Y57EH.js";
146
146
  import "./chunk-N4IJLYFY.js";
147
147
  import {
148
148
  braveWallet
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funkit/connect",
3
- "version": "10.2.0",
3
+ "version": "10.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",
@@ -61,9 +61,12 @@
61
61
  "@vanilla-extract/private": "^1.0.7",
62
62
  "@vanilla-extract/vite-plugin": "^5.2.2",
63
63
  "@vitejs/plugin-react": "^6.0.2",
64
+ "@vitest/coverage-v8": "^4.1.6",
65
+ "@vitest/ui": "^4.1.6",
64
66
  "autoprefixer": "^10.4.27",
65
67
  "buffer": "^6.0.3",
66
68
  "esbuild-plugin-replace": "^1.4.0",
69
+ "happy-dom": "20.10.6",
67
70
  "jsdom": "^26.1.0",
68
71
  "postcss": "^8.5.10",
69
72
  "postcss-prefix-selector": "^1.16.0",
@@ -75,8 +78,6 @@
75
78
  "util": "^0.12.5",
76
79
  "vite-plugin-node-polyfills": "^0.26.0",
77
80
  "vitest": "^4.1.6",
78
- "@vitest/coverage-v8": "^4.1.6",
79
- "@vitest/ui": "^4.1.6",
80
81
  "wagmi": "2.17.2"
81
82
  },
82
83
  "dependencies": {
@@ -107,7 +108,7 @@
107
108
  "uuid": "^11.1.1",
108
109
  "@funkit/api-base": "6.0.0",
109
110
  "@funkit/chains": "2.1.3",
110
- "@funkit/connect-core": "1.7.1",
111
+ "@funkit/connect-core": "2.0.0",
111
112
  "@funkit/fun-relay": "2.9.0",
112
113
  "@funkit/utils": "4.0.0"
113
114
  },
@@ -1,11 +0,0 @@
1
- "use client";
2
-
3
- // src/hooks/useFunkitTranslation.ts
4
- import { useTranslation } from "react-i18next";
5
- function useFunkitTranslation() {
6
- return useTranslation();
7
- }
8
-
9
- export {
10
- useFunkitTranslation
11
- };
@@ -1 +0,0 @@
1
- export declare const baseStyles: string;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- import type { FunInputProps } from './FunInput';
3
- export declare function FunTextAreaInput({ placeholder, value, label, onChange, onKeyDown, onKeySubmit, textWeight, inputStyle, inputProps, error, overrideBorderWidth, overrideBackground, isLoading, }: FunInputProps<HTMLTextAreaElement>): React.JSX.Element;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- export declare const AcornsIcon: ({ size }: {
3
- size?: number;
4
- }) => React.JSX.Element;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- export declare const AlpacaIcon: ({ size }: {
3
- size?: number;
4
- }) => React.JSX.Element;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- export declare const BitFlyerIcon: ({ size }: {
3
- size?: number;
4
- }) => React.JSX.Element;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- export declare const BitfinexIcon: ({ size }: {
3
- size?: number;
4
- }) => React.JSX.Element;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- export declare const BitstampIcon: ({ size }: {
3
- size?: number;
4
- }) => React.JSX.Element;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- export declare const BrokerageIcon: ({ size }: {
3
- size?: number;
4
- }) => React.JSX.Element;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- export declare const CexloIcon: ({ size }: {
3
- size?: number;
4
- }) => React.JSX.Element;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- export declare const CoinlistIcon: ({ size }: {
3
- size?: number;
4
- }) => React.JSX.Element;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- export declare const CryptoComIcon: ({ size }: {
3
- size?: number;
4
- }) => React.JSX.Element;
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const CryptoIcon: () => React.JSX.Element;
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const DeviceConfirmationIcon: () => React.JSX.Element;
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const EmailConfirmationIcon: () => React.JSX.Element;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- export declare const EtoroIcon: ({ size }: {
3
- size?: number;
4
- }) => React.JSX.Element;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- export declare const EtradeIcon: ({ size }: {
3
- size?: number;
4
- }) => React.JSX.Element;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- export declare const HuobiIcon: ({ size }: {
3
- size?: number;
4
- }) => React.JSX.Element;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- export declare const KucoinIcon: ({ size }: {
3
- size?: number;
4
- }) => React.JSX.Element;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- export declare const LightningBoltIcon: ({ size }: {
3
- size?: number;
4
- }) => React.JSX.Element;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- export declare const LockIcon: ({ size }: {
3
- size?: number;
4
- }) => React.JSX.Element;
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- interface MailIconProps {
3
- width?: number;
4
- }
5
- export declare const MailIcon: ({ width }: MailIconProps) => React.JSX.Element;
6
- export {};
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- export declare const LinkExternalIcon: ({ size }: {
3
- size?: number;
4
- }) => React.JSX.Element;
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const MessageIcon: () => React.JSX.Element;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- export declare const OkcoinIcon: ({ size }: {
3
- size?: number;
4
- }) => React.JSX.Element;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- export declare const OkxIcon: ({ size }: {
3
- size?: number;
4
- }) => React.JSX.Element;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- export declare const PublicIcon: ({ size }: {
3
- size?: number;
4
- }) => React.JSX.Element;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- export declare const RobinhoodIcon: ({ size }: {
3
- size?: number;
4
- }) => React.JSX.Element;
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- export declare const GoogleIcon: ({ size }: {
3
- size?: number;
4
- }) => React.JSX.Element;
5
- export declare const TwitterIcon: ({ size }: {
6
- size?: number;
7
- }) => React.JSX.Element;
8
- export declare const AppleIcon: ({ size }: {
9
- size?: number;
10
- }) => React.JSX.Element;
11
- export declare const FarcasterIcon: ({ size }: {
12
- size?: number;
13
- }) => React.JSX.Element;
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const SocialsIcon: () => React.JSX.Element;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- export declare const StashIcon: ({ size }: {
3
- size?: number;
4
- }) => React.JSX.Element;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- export declare const WeBullIcon: ({ size }: {
3
- size?: number;
4
- }) => React.JSX.Element;
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const WhitelistIcon: () => React.JSX.Element;
@@ -1 +0,0 @@
1
- export declare function useIsUsUser(): boolean;
@@ -1,3 +0,0 @@
1
- export declare const validateEmailString: (emailInput: string) => boolean;
2
- export declare const validatePhoneString: (phoneInput: string) => boolean;
3
- export declare const removeSpecificURLParameters: (paramsToRemove: string[]) => void;
@@ -1,5 +0,0 @@
1
- /**
2
- * This function is a wrapper around `safeParseJson()` from our `@funkit/utils` package with logging errors to our logger.
3
- */
4
- export declare function safeJSONParse<T>(src?: string): T | null;
5
- export declare function useSafeJSONParse<T>(src?: string): T | null;