@funkit/connect 7.1.0-next.12 → 7.1.0-next.15

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 (120) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/dist/components/Dropdown/ChainDropdown.d.ts +1 -1
  3. package/dist/components/Dropdown/TokenAndChainDropdown.d.ts +1 -1
  4. package/dist/components/Dropdown/TokenDropdown.d.ts +1 -1
  5. package/dist/components/FunAsset/FunAssetItem.d.ts +1 -1
  6. package/dist/components/FunCheckoutHistory/FunDirectExecutionHistoryDetail.d.ts +1 -1
  7. package/dist/components/FunCheckoutModalHeightAnimationWrapper/FunCheckoutModalHeightAnimationWrapper.d.ts +1 -1
  8. package/dist/components/FunNotificationBanner/FunNotificationBannerIcon.d.ts +1 -1
  9. package/dist/components/FunSelectBrokerage/FunSelectBrokerage.d.ts +1 -1
  10. package/dist/components/FunTransactionSummary/PaymentAmountSummary.d.ts +2 -2
  11. package/dist/components/FunTransactionSummary/PaymentFeesSummary.d.ts +2 -2
  12. package/dist/components/FunTransactionSummary/PaymentFeesSummary.track.d.ts +2 -2
  13. package/dist/components/FunTransactionSummary/PaymentMethodSummary.d.ts +1 -1
  14. package/dist/components/FunTransactionSummary/PaymentRouteSummary.d.ts +1 -1
  15. package/dist/components/NewTokenDepositAlert/NewTokenDepositAlert.d.ts +1 -1
  16. package/dist/components/ReceiveAmount/ReceiveAmount.d.ts +2 -2
  17. package/dist/components/SourcePaymentMethodItem/SourcePaymentMethodItem.d.ts +1 -1
  18. package/dist/components/TransactionStatus/TransactionStatus.d.ts +1 -1
  19. package/dist/components/TransferTokenDetails/TransferTokenDetails.d.ts +1 -1
  20. package/dist/consts/customers.d.ts +1 -1
  21. package/dist/domains/asset.d.ts +2 -2
  22. package/dist/domains/checkout.d.ts +1 -1
  23. package/dist/domains/checkoutRecipient.d.ts +1 -1
  24. package/dist/domains/clientMetadata.d.ts +1 -1
  25. package/dist/domains/fees.d.ts +2 -2
  26. package/dist/domains/paymentMethods.d.ts +1 -1
  27. package/dist/domains/quote.d.ts +4 -4
  28. package/dist/domains/wallet.d.ts +1 -1
  29. package/dist/hooks/queries/useMeldDefaultCurrency.d.ts +1 -1
  30. package/dist/hooks/queries/useRecentCheckouts.d.ts +1 -1
  31. package/dist/hooks/queries/useRecentDeposits.d.ts +73 -2
  32. package/dist/hooks/queries/useWithdrawalQuote.d.ts +31 -31
  33. package/dist/hooks/track/useTrack.d.ts +1 -1
  34. package/dist/hooks/useBluvo.d.ts +3 -3
  35. package/dist/hooks/useCheckoutDirectExecution.d.ts +3 -3
  36. package/dist/hooks/useCheckoutItemDisplay.d.ts +2 -2
  37. package/dist/hooks/useCheckoutTimeEstimate.d.ts +2 -2
  38. package/dist/hooks/useCheckoutTransferInit.d.ts +1 -1
  39. package/dist/hooks/useCountdown.d.ts +1 -1
  40. package/dist/hooks/useEnabledTokenTransferChainTokens.d.ts +1 -1
  41. package/dist/hooks/useFrogAccount.d.ts +1 -1
  42. package/dist/hooks/useIsBlacklisted.d.ts +1 -1
  43. package/dist/hooks/useIsDynamicRoutingEnabled.d.ts +1 -1
  44. package/dist/hooks/useMinDeposit.d.ts +1 -1
  45. package/dist/hooks/useOnNewNotification.d.ts +1 -1
  46. package/dist/hooks/usePaymentSources.d.ts +3 -3
  47. package/dist/hooks/useRelayBypass.d.ts +1 -1
  48. package/dist/hooks/useTokenChain.d.ts +1 -1
  49. package/dist/hooks/useTokenTransfer.d.ts +1 -1
  50. package/dist/index.d.ts +1 -1
  51. package/dist/index.js +92 -48
  52. package/dist/modals/CheckoutModal/Brokerage/BrokerageSuccessModal.d.ts +1 -1
  53. package/dist/modals/CheckoutModal/Brokerage/BrokerageTwoFA.d.ts +2 -2
  54. package/dist/modals/CheckoutModal/Brokerage/ConnectExchange.d.ts +2 -2
  55. package/dist/modals/CheckoutModal/Brokerage/SelectBrokerage.d.ts +2 -2
  56. package/dist/modals/CheckoutModal/ConfirmationStep/CheckoutPrimaryInfo.d.ts +1 -1
  57. package/dist/modals/CheckoutModal/ConfirmationStep/ConfirmationStep.d.ts +1 -1
  58. package/dist/modals/CheckoutModal/ConfirmationStep/DisclaimerText.d.ts +1 -1
  59. package/dist/modals/CheckoutModal/ConfirmationStep/useCheckoutConfirmation.d.ts +1 -1
  60. package/dist/modals/CheckoutModal/ConfirmationStep/useCheckoutQuote.d.ts +1 -1
  61. package/dist/modals/CheckoutModal/ConfirmationStep/usePostCheckout.d.ts +2 -2
  62. package/dist/modals/CheckoutModal/ConfirmationStep/useQuoteRefresh.d.ts +1 -1
  63. package/dist/modals/CheckoutModal/ConfirmationStep/useSourceAssetConfirm.d.ts +2 -2
  64. package/dist/modals/CheckoutModal/DirectExecutionNotifCenter/DirectExecutionNotifCenter.d.ts +1 -1
  65. package/dist/modals/CheckoutModal/DirectExecutionNotifCenter/DirectExecutionNotifCenterContent.d.ts +1 -1
  66. package/dist/modals/CheckoutModal/InputAmount/AvailableBalance.d.ts +1 -1
  67. package/dist/modals/CheckoutModal/InputAmount/InputAmount.d.ts +1 -1
  68. package/dist/modals/CheckoutModal/InputAmount/InputAmountLoaded.d.ts +2 -2
  69. package/dist/modals/CheckoutModal/InputAmount/state.d.ts +2 -2
  70. package/dist/modals/CheckoutModal/InputAmount/useAmountInput.d.ts +1 -1
  71. package/dist/modals/CheckoutModal/InputAmount/useAvailableBalanceForCheckout.d.ts +3 -3
  72. package/dist/modals/CheckoutModal/InputAmount/useMeld.d.ts +1 -1
  73. package/dist/modals/CheckoutModal/InputAmount/utils.d.ts +2 -2
  74. package/dist/modals/CheckoutModal/MeldCurrencySelect/MeldCurrencySelect.d.ts +1 -1
  75. package/dist/modals/CheckoutModal/MeldQuotes/MeldQuotes.d.ts +1 -1
  76. package/dist/modals/CheckoutModal/MeldRedirect/MeldRedirect.d.ts +1 -1
  77. package/dist/modals/CheckoutModal/SelectAsset.d.ts +1 -1
  78. package/dist/modals/CheckoutModal/SourceChange/DefiPurchaseSection.d.ts +1 -1
  79. package/dist/modals/CheckoutModal/SourceChange/SourceChange.d.ts +1 -1
  80. package/dist/modals/CheckoutModal/TransferToken/CheckoutNotification.d.ts +1 -1
  81. package/dist/modals/CheckoutModal/TransferToken/CheckoutNotifications.track.d.ts +1 -1
  82. package/dist/modals/CheckoutModal/TransferToken/DirectExecutionNotification.d.ts +1 -1
  83. package/dist/modals/CheckoutModal/TransferToken/TransferToken.d.ts +1 -1
  84. package/dist/modals/CheckoutModal/TransferToken/types.d.ts +1 -1
  85. package/dist/modals/CheckoutModal/VirtualFiatAccount/BridgeCustomer.d.ts +2 -2
  86. package/dist/modals/CheckoutModal/VirtualFiatAccount/BridgeKyc.d.ts +1 -1
  87. package/dist/modals/CheckoutModal/VirtualFiatAccount/ErrorScreen.d.ts +1 -1
  88. package/dist/modals/CheckoutModal/VirtualFiatAccount/FiatAccountDetail.d.ts +1 -1
  89. package/dist/modals/CheckoutModal/VirtualFiatAccount/KycIframe.d.ts +2 -2
  90. package/dist/modals/CheckoutModal/VirtualFiatAccount/VirtualFiatAccount.d.ts +2 -2
  91. package/dist/modals/CheckoutModal/stepTransition.d.ts +5 -5
  92. package/dist/modals/CheckoutModal/stepTransition.track.d.ts +2 -2
  93. package/dist/modals/ProfileDetails/FunProfileViews/Home/HomeCheckoutDisplayRow.d.ts +2 -2
  94. package/dist/modals/ProfileDetails/FunProfileViews/Home/HomeTokenDisplayRow.d.ts +1 -1
  95. package/dist/modals/ProfileDetails/FunProfileViews/Home/ProfileTitleSection.d.ts +1 -1
  96. package/dist/modals/ProfileDetails/FunProfileViews/Home/index.d.ts +1 -1
  97. package/dist/modals/WithdrwalModal/WithdrawalContent.d.ts +1 -1
  98. package/dist/modals/WithdrwalModal/WithdrawalModal.d.ts +1 -1
  99. package/dist/modals/WithdrwalModal/WithdrawalNotification.d.ts +2 -2
  100. package/dist/modals/WithdrwalModal/useWithdrawal.d.ts +2 -2
  101. package/dist/providers/FunkitBrokerageProvider.d.ts +2 -2
  102. package/dist/providers/FunkitCheckoutContext/track.d.ts +4 -4
  103. package/dist/providers/FunkitHistoryContext.d.ts +2 -2
  104. package/dist/providers/FunkitI18nProvider.d.ts +1 -1
  105. package/dist/providers/FunkitProvider.d.ts +1 -1
  106. package/dist/providers/FunkitQuoteContext.track.d.ts +3 -3
  107. package/dist/themes/darkTheme.d.ts +1 -1
  108. package/dist/themes/lightTheme.d.ts +1 -1
  109. package/dist/utils/assets.d.ts +1 -1
  110. package/dist/utils/bluvo.d.ts +2 -2
  111. package/dist/utils/checkout.d.ts +2 -2
  112. package/dist/utils/customer.d.ts +2 -2
  113. package/dist/utils/flags/patches/enable-bitcoin-patch.d.ts +1 -1
  114. package/dist/utils/funkitProvider.d.ts +1 -1
  115. package/dist/utils/payment.d.ts +1 -1
  116. package/dist/utils/purifyCheckoutHistoryItem.d.ts +4 -5
  117. package/dist/utils/withdrawal.d.ts +1 -1
  118. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.d.ts +1 -1
  119. package/dist/wallets/walletConnectors/index.js +9 -9
  120. package/package.json +3 -2
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import type { Address } from 'viem';
3
- import type { MergedMultiStepDirectExecution } from '~/hooks/queries/useRecentDeposits';
3
+ import type { MergedMultiStepDirectExecution } from '../../../hooks/queries/useRecentDeposits';
4
4
  interface DirectExecutionNotificationProps {
5
5
  directExecution: MergedMultiStepDirectExecution;
6
6
  onClose: (id: string) => void;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { type TransferTokenDefault } from '~/hooks/useTokenChain';
2
+ 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;
@@ -1,6 +1,6 @@
1
1
  import type { CheckoutHistoryItem } from '@funkit/api-base';
2
2
  import type { Address } from 'viem';
3
- import type { MergedMultiStepDirectExecution } from '~/hooks/queries/useRecentDeposits';
3
+ import type { MergedMultiStepDirectExecution } from '../../../hooks/queries/useRecentDeposits';
4
4
  export type NotificationItem = (MergedMultiStepDirectExecution & {
5
5
  isDirectExecution: true;
6
6
  }) | (CheckoutHistoryItem & {
@@ -1,5 +1,5 @@
1
- import type { PaymentMethodVirtualBankIncompleteInfo } from '~/domains/paymentMethods';
2
- import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepInfo } from '~/modals/CheckoutModal/stepTransition';
1
+ import type { PaymentMethodVirtualBankIncompleteInfo } from '../../../domains/paymentMethods';
2
+ import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepInfo } from '../../../modals/CheckoutModal/stepTransition';
3
3
  export type BridgeCustomerNext = {
4
4
  hasError?: false;
5
5
  kycLink: string;
@@ -1,5 +1,5 @@
1
1
  import { type BridgeCustomer, type BridgeVirtualBankAccount, type Guid } from '@funkit/api-base';
2
- import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepInfo } from '~/modals/CheckoutModal/stepTransition';
2
+ import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepInfo } from '../../../modals/CheckoutModal/stepTransition';
3
3
  export declare enum NextStep {
4
4
  ShowSource = "ShowSource",
5
5
  ShowKyc = "ShowKyc",
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { CheckoutModalCommonState, FunCheckoutStep, ModalStepInfo } from '~/modals/CheckoutModal/stepTransition';
2
+ import type { CheckoutModalCommonState, FunCheckoutStep, ModalStepInfo } from '../../../modals/CheckoutModal/stepTransition';
3
3
  export type ErrorScreenState = CheckoutModalCommonState & {
4
4
  errorCode: string;
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { type PaymentMethodVirtualBankInfo } from '~/domains/paymentMethods';
2
+ 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;
@@ -1,5 +1,5 @@
1
- import { type KycLinkLoad } from '~/hooks/useFrogAccount';
2
- import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepInfo } from '~/modals/CheckoutModal/stepTransition';
1
+ import { type KycLinkLoad } from '../../../hooks/useFrogAccount';
2
+ import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepInfo } from '../../../modals/CheckoutModal/stepTransition';
3
3
  export type KycIframeState = CheckoutModalCommonState & KycLinkLoad;
4
4
  export type KycIframeNext = Record<string, never>;
5
5
  export declare const KycIframeInfo: ModalStepInfo<FunCheckoutStep.KYC_IFRAME>;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import type { PaymentMethodVirtualBankIncompleteInfo } from '~/domains/paymentMethods';
3
- import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, type ModalStepInfo } from '~/modals/CheckoutModal/stepTransition';
2
+ import type { PaymentMethodVirtualBankIncompleteInfo } from '../../../domains/paymentMethods';
3
+ import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, type ModalStepInfo } from '../../../modals/CheckoutModal/stepTransition';
4
4
  export type VirtualFiatAccountNext = Record<string, never>;
5
5
  export type VirtualFiatAccountState = CheckoutModalCommonState & {
6
6
  paymentMethodInfo: PaymentMethodVirtualBankIncompleteInfo;
@@ -1,8 +1,8 @@
1
1
  import { type ComponentType, type SetStateAction } from 'react';
2
- import { type BridgeCustomerNext, type BridgeCustomerState } from '~/modals/CheckoutModal/VirtualFiatAccount/BridgeCustomer';
3
- import { type BridgeKycNext, type BridgeKycState } from '~/modals/CheckoutModal/VirtualFiatAccount/BridgeKyc';
4
- import { type ErrorScreenState } from '~/modals/CheckoutModal/VirtualFiatAccount/ErrorScreen';
5
- import { type VirtualFiatAccountNext, type VirtualFiatAccountState } from '~/modals/CheckoutModal/VirtualFiatAccount/VirtualFiatAccount';
2
+ import { type BridgeCustomerNext, type BridgeCustomerState } from '../../modals/CheckoutModal/VirtualFiatAccount/BridgeCustomer';
3
+ import { type BridgeKycNext, type BridgeKycState } from '../../modals/CheckoutModal/VirtualFiatAccount/BridgeKyc';
4
+ import { type ErrorScreenState } from '../../modals/CheckoutModal/VirtualFiatAccount/ErrorScreen';
5
+ import { type VirtualFiatAccountNext, type VirtualFiatAccountState } from '../../modals/CheckoutModal/VirtualFiatAccount/VirtualFiatAccount';
6
6
  import { FunCheckoutStartingStep, type FunkitActiveCheckoutItem } from '../../providers/FunkitCheckoutContext';
7
7
  import { type FunkitTextCustomizationsConfig } from '../../providers/FunkitConfigContext';
8
8
  import { type BrokerageSuccessState } from './Brokerage/BrokerageSuccessModal';
@@ -132,7 +132,7 @@ export type NextPayload<S extends FunCheckoutStep = FunCheckoutStep> = {
132
132
  popCurrentStep?: boolean;
133
133
  };
134
134
  export declare function useCheckoutModalTransition(checkoutItem: FunkitActiveCheckoutItem, onClose: () => void): {
135
- animation: import("~/hooks/useAnimatedNavigation").AnimationState;
135
+ animation: import("../../hooks/useAnimatedNavigation").AnimationState;
136
136
  modalState: CheckoutModalState<FunCheckoutStep>;
137
137
  onBack: () => void;
138
138
  onCloseWrapper: (options?: {
@@ -1,5 +1,5 @@
1
- import { CheckoutModalEvent } from '~/hooks/track/CheckoutModalEvent';
2
- import type { TrackEventData } from '~/hooks/track/useTrack';
1
+ import { CheckoutModalEvent } from '../../hooks/track/CheckoutModalEvent';
2
+ import type { TrackEventData } from '../../hooks/track/useTrack';
3
3
  import { FunCheckoutStep } from './FunCheckoutStep';
4
4
  import type { CheckoutModalState } from './stepTransition';
5
5
  export declare const CHECKOUT_STEP_TO_READY_EVENT: Partial<Record<FunCheckoutStep, CheckoutModalEvent>>;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import type { Hex } from 'viem';
3
- import type { MergedCheckoutHistoryItem } from '~/utils/checkout';
4
- import { HistoryContentPages } from '~/utils/checkoutHistory';
3
+ import type { MergedCheckoutHistoryItem } from '../../../../utils/checkout';
4
+ import { HistoryContentPages } from '../../../../utils/checkoutHistory';
5
5
  export declare const HomeCheckoutDisplayRow: ({ checkoutHistoryItem, onSelect, }: {
6
6
  checkoutHistoryItem: MergedCheckoutHistoryItem;
7
7
  onSelect: (checkoutId: Hex, initialPage: HistoryContentPages) => void;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { KnownAssetBalanceInfo } from '~/providers/GeneralWalletProvider';
2
+ import type { KnownAssetBalanceInfo } from '../../../../providers/GeneralWalletProvider';
3
3
  export declare const HomeTokenBalanceDisplayRow: ({ asset, }: {
4
4
  asset: KnownAssetBalanceInfo;
5
5
  }) => React.JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import type { Config, UseAccountReturnType } from 'wagmi';
3
- import type { FunkitUserInfo } from '~/consts/funkit';
3
+ import type { FunkitUserInfo } from '../../../../consts/funkit';
4
4
  import { FunProfileView } from '../../ProfileDetails';
5
5
  export declare const ProfileTitleSection: ({ animateOut, account, userInfo, onChangeView, onLogout, onClose, }: {
6
6
  animateOut?: boolean;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { type AnimationState } from '~/hooks/useAnimatedNavigation';
2
+ import { type AnimationState } from '../../../../hooks/useAnimatedNavigation';
3
3
  import { type BaseActivitySelection } from '../../ActivityTraversalContext';
4
4
  import type { FunProfileView } from '../../ProfileDetails';
5
5
  export declare enum SelectedHomeTab {
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import type { Hex } from 'viem';
3
- import type { FunkitActiveWithdrawalItem, FunkitWithdrawalConfig } from '~/providers/FunkitCheckoutContext';
3
+ import type { FunkitActiveWithdrawalItem, FunkitWithdrawalConfig } from '../../providers/FunkitCheckoutContext';
4
4
  import { type WithdrawalFormData } from './useWithdrawal';
5
5
  interface WithdrawContentProps {
6
6
  onContinue: (withdrawal: WithdrawalFormData, txHash: Hex) => void;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { FunkitWithdrawalConfig } from '~/providers/FunkitCheckoutContext';
2
+ import type { FunkitWithdrawalConfig } from '../../providers/FunkitCheckoutContext';
3
3
  export declare const WITHDRAWAL_MODAL_CONTENT_ID = "withdrawal-modal-content";
4
4
  export interface WithdrawalModalProps {
5
5
  open: boolean;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import type { PaymentMethodAccountInfo } from '~/domains/paymentMethods';
3
- import type { FunkitCheckoutQuoteResult } from '~/domains/quote';
2
+ import type { PaymentMethodAccountInfo } from '../../domains/paymentMethods';
3
+ import type { FunkitCheckoutQuoteResult } from '../../domains/quote';
4
4
  interface DirectExecutionNotifCenterContentProps {
5
5
  onClose: (options?: {
6
6
  isNewDeposit?: boolean;
@@ -1,6 +1,6 @@
1
1
  import type { Address, Hex } from 'viem';
2
- import type { FunkitCheckoutQuoteResult } from '~/domains/quote';
3
- import { type FunkitActiveWithdrawalItem, type FunkitWithdrawalConfig } from '~/providers/FunkitCheckoutContext';
2
+ import type { FunkitCheckoutQuoteResult } from '../../domains/quote';
3
+ import { type FunkitActiveWithdrawalItem, type FunkitWithdrawalConfig } from '../../providers/FunkitCheckoutContext';
4
4
  import { type CheckoutConfirmationError } from '../CheckoutModal/ConfirmationStep/useCheckoutConfirmation';
5
5
  interface UseWithdrawalResult {
6
6
  handleWithdrawal: (withdrawal: WithdrawalFormData) => Promise<void>;
@@ -1,7 +1,7 @@
1
1
  import { type UseBluvoFlowHook } from '@bluvo/react';
2
2
  import React, { type ReactNode } from 'react';
3
- import { type BluvoBrokerageMinMax, type BluvoExchangeType } from '~/consts/bluvo';
4
- import type { BrokerageAssetHoldingsItem } from '~/domains/wallet';
3
+ import { type BluvoBrokerageMinMax, type BluvoExchangeType } from '../consts/bluvo';
4
+ import type { BrokerageAssetHoldingsItem } from '../domains/wallet';
5
5
  type BluvoLocalStorageData = Partial<Record<BluvoExchangeType, string>>;
6
6
  interface FunkitBrokerageContextProps {
7
7
  bluvoClient: UseBluvoFlowHook;
@@ -1,8 +1,8 @@
1
1
  import type { RelayTxHash, RelayVmType } from '@funkit/fun-relay';
2
- import type { FunkitCheckoutQuoteResult } from '~/domains/quote';
3
- import { CheckoutModalEvent } from '~/hooks/track/CheckoutModalEvent';
4
- import type { WithdrawModalEvent } from '~/hooks/track/WithdrawModalEvent';
5
- import type { TrackEventData } from '~/hooks/track/useTrack';
2
+ import type { FunkitCheckoutQuoteResult } from '../../domains/quote';
3
+ import { CheckoutModalEvent } from '../../hooks/track/CheckoutModalEvent';
4
+ import type { WithdrawModalEvent } from '../../hooks/track/WithdrawModalEvent';
5
+ import type { TrackEventData } from '../../hooks/track/useTrack';
6
6
  import type { FunkitActiveCheckoutItem, FunkitActiveWithdrawalItem } from './index';
7
7
  export declare const trackEventFromActiveItem: (activeItem: FunkitActiveCheckoutItem | FunkitActiveWithdrawalItem, eventName: CheckoutModalEvent | WithdrawModalEvent) => TrackEventData;
8
8
  export declare const trackEventFromDirectExecutionConfirmed: ({ txHash, checkoutItem, latestQuote, }: {
@@ -3,8 +3,8 @@ import React, { type ReactNode } from 'react';
3
3
  import { type Address, type Hex } from 'viem';
4
4
  import { type MergedCheckoutHistoryItem } from '../utils/checkout';
5
5
  import { type PurifiedCheckoutHistoryItem } from '../utils/purifyCheckoutHistoryItem';
6
- export type { HistoricalCheckoutItem, ServerCheckoutConfig, } from '~/domains/clientMetadata';
7
- export type { FunkitCheckoutQuoteResult } from '~/domains/quote';
6
+ export type { HistoricalCheckoutItem, ServerCheckoutConfig, } from '../domains/clientMetadata';
7
+ export type { FunkitCheckoutQuoteResult } from '../domains/quote';
8
8
  interface FunkitCheckoutHistoryContextInterface {
9
9
  checkoutHistoryList: MergedCheckoutHistoryItem[];
10
10
  isCheckoutHistoryInited: boolean;
@@ -1,5 +1,5 @@
1
1
  import React, { type ReactNode } from 'react';
2
- import { type Locale } from '~/locales';
2
+ import { type Locale } from '../locales';
3
3
  interface FunkitI18nProviderProps {
4
4
  children: ReactNode;
5
5
  locale?: Locale;
@@ -1,7 +1,7 @@
1
1
  import { type QueryClient } from '@tanstack/react-query';
2
2
  import React, { type ReactNode } from 'react';
3
3
  import type { Chain } from 'wagmi/chains';
4
- import type { Locale } from '~/locales';
4
+ import type { Locale } from '../locales';
5
5
  import { type CreateFunkitWagmiConfigParameters } from '../config/getDefaultConfig';
6
6
  import { type AvatarComponent } from './AvatarContext';
7
7
  import { type FunkitConfig } from './FunkitConfigContext';
@@ -1,6 +1,6 @@
1
- import type { CheckoutModalEvent } from '~/hooks/track/CheckoutModalEvent';
2
- import type { WithdrawModalEvent } from '~/hooks/track/WithdrawModalEvent';
3
- import type { TrackEventData } from '~/hooks/track/useTrack';
1
+ import type { CheckoutModalEvent } from '../hooks/track/CheckoutModalEvent';
2
+ import type { WithdrawModalEvent } from '../hooks/track/WithdrawModalEvent';
3
+ import type { TrackEventData } from '../hooks/track/useTrack';
4
4
  import type { FunkitActiveCheckoutItem } from './FunkitCheckoutContext';
5
5
  import type { FunkitCheckoutQuoteResult } from './FunkitHistoryContext';
6
6
  export declare const trackEventFromBaseQuote: (checkoutItem: FunkitActiveCheckoutItem, eventName: CheckoutModalEvent | WithdrawModalEvent) => TrackEventData;
@@ -1,4 +1,4 @@
1
- import type { ThemeVars } from '~/css/sprinkles.css';
1
+ import type { ThemeVars } from '../css/sprinkles.css';
2
2
  import { type AccentColor, type AccentColorPreset, type ThemeOptions } from './baseTheme';
3
3
  export declare const darkTheme: {
4
4
  ({ accentColor, accentColorForeground, customColors, customShadows, ...baseThemeOptions }?: ThemeOptions): ThemeVars;
@@ -1,4 +1,4 @@
1
- import type { ThemeVars } from '~/css/sprinkles.css';
1
+ import type { ThemeVars } from '../css/sprinkles.css';
2
2
  import { type AccentColor, type AccentColorPreset, type ThemeOptions } from './baseTheme';
3
3
  export declare const lightTheme: {
4
4
  ({ accentColor, accentColorForeground, customColors, customShadows, ...baseThemeOptions }?: ThemeOptions): ThemeVars;
@@ -1,5 +1,5 @@
1
1
  import type { DynamicTargetAssetCandidate, FunkitCheckoutConfig } from '../providers/FunkitCheckoutContext';
2
- export type { AssetHoldingsItem, AssetHoldingsMap, KnownAssetHoldingsItem, } from '~/domains/wallet';
2
+ export type { AssetHoldingsItem, AssetHoldingsMap, KnownAssetHoldingsItem, } from '../domains/wallet';
3
3
  export declare const getNormalizedTokenBalance: (tokenBalance: bigint | number | string, decimals: number) => number;
4
4
  /**
5
5
  *
@@ -1,8 +1,8 @@
1
1
  import type { WalletwithdrawbalancebalanceResponse } from '@bluvo/sdk-ts';
2
2
  type WithdrawableBalance = WalletwithdrawbalancebalanceResponse['balances'][number];
3
3
  import { type BluvoExecuteWithdrawalResponse, BluvoWithdrawalError } from '@funkit/api-base';
4
- import type { BluvoExchangeType } from '~/consts/bluvo';
5
- import type { AssetHoldingsItem, AssetHoldingsMap, BrokerageAssetHoldingsItem } from '~/domains/wallet';
4
+ import type { BluvoExchangeType } from '../consts/bluvo';
5
+ import type { AssetHoldingsItem, AssetHoldingsMap, BrokerageAssetHoldingsItem } from '../domains/wallet';
6
6
  export declare const isBrokerageAsset: (asset: AssetHoldingsItem) => asset is BrokerageAssetHoldingsItem & {
7
7
  usdAmount: number;
8
8
  };
@@ -3,8 +3,8 @@ import { type ApiFunkitCheckoutQuoteResult, type CheckoutQuoteResponse } from '@
3
3
  import { type Config } from '@wagmi/core';
4
4
  import { type Address, type Hex } from 'viem';
5
5
  import type { UseConfigReturnType } from 'wagmi';
6
- import type { ServerCheckoutConfig } from '~/domains/clientMetadata';
7
- import type { FunkitCheckoutQuoteResult } from '~/domains/quote';
6
+ import type { ServerCheckoutConfig } from '../domains/clientMetadata';
7
+ import type { FunkitCheckoutQuoteResult } from '../domains/quote';
8
8
  import { type FunkitCheckoutActionParams, type FunkitCheckoutConfig } from '../providers/FunkitCheckoutContext';
9
9
  export declare const MOONPAY_TIME_ESTIMATE_MS = 120000;
10
10
  export declare const BROKERAGE_TIME_ESTIMATE_MS = 0;
@@ -1,6 +1,6 @@
1
1
  import type { Address } from 'viem';
2
- import type { ServerCheckoutConfig } from '~/domains/clientMetadata';
3
- import type { FunkitCheckoutConfig } from '~/providers/FunkitCheckoutContext';
2
+ import type { ServerCheckoutConfig } from '../domains/clientMetadata';
3
+ import type { FunkitCheckoutConfig } from '../providers/FunkitCheckoutContext';
4
4
  export declare function isKatanaEarnFlow({ apiKey, checkoutConfig, }: {
5
5
  apiKey: string;
6
6
  checkoutConfig: FunkitCheckoutConfig | ServerCheckoutConfig | undefined;
@@ -2,7 +2,7 @@
2
2
  * TODO: Delete once all customers are using @funkit/connect supporting bitcoin
3
3
  */
4
4
  import { type FlagKey } from '@funkit/utils';
5
- import type { FlagMiddleware } from '~/providers/FunkitFlagsProvider';
5
+ import type { FlagMiddleware } from '../../../providers/FunkitFlagsProvider';
6
6
  /**
7
7
  * Adds {8253038: ["BTC"]} to the newTokens if not already present
8
8
  */
@@ -1,4 +1,4 @@
1
- import type { FunkitCheckoutConfig } from '~/providers/FunkitCheckoutContext';
1
+ import type { FunkitCheckoutConfig } from '../providers/FunkitCheckoutContext';
2
2
  import type { FunkitProviderProps } from '../providers/FunkitProvider';
3
3
  export declare function getInitialChainIdFromFunkitProviderProps(props: FunkitProviderProps): number | undefined;
4
4
  export declare function generateSyntheticUserId(apiKey: string, externalUserId: string): string;
@@ -1,4 +1,4 @@
1
- import { LoginType } from '~/providers/GeneralWalletProvider';
1
+ import { LoginType } from '../providers/GeneralWalletProvider';
2
2
  import { type PaymentMethodInfo } from '../domains/paymentMethods';
3
3
  /**
4
4
  * Generate a string for backend to indicate the source of a checkout funds
@@ -1,6 +1,7 @@
1
- import { type CheckoutHistoryItem, type CheckoutState, type DirectExecution } from '@funkit/api-base';
1
+ import { type CheckoutHistoryItem, type CheckoutState } from '@funkit/api-base';
2
2
  import type { ApiFunkitCheckoutActionParams } from '@funkit/utils';
3
3
  import type { Address, Hex } from 'viem';
4
+ import type { MergedMultiStepDirectExecution } from '../hooks/queries/useRecentDeposits';
4
5
  export type PurifiedCheckoutHistoryItem = {
5
6
  depositAddr?: Address;
6
7
  directExecution: boolean;
@@ -15,14 +16,12 @@ export type PurifiedCheckoutHistoryItem = {
15
16
  createdTimeMs: number;
16
17
  updatedTimeMs: number;
17
18
  additionalActions: ApiFunkitCheckoutActionParams[];
18
- txHash?: Hex;
19
19
  } & ({
20
20
  depositAddr: Address;
21
21
  directExecution: false;
22
- txHash?: never;
23
22
  } | {
24
23
  depositAddr?: never;
25
24
  directExecution: true;
26
- txHash: Hex;
25
+ txHashes: Hex[];
27
26
  });
28
- export declare const purifyCheckoutHistoryItem: (item: CheckoutHistoryItem | DirectExecution) => PurifiedCheckoutHistoryItem;
27
+ export declare const purifyCheckoutHistoryItem: (item: CheckoutHistoryItem | MergedMultiStepDirectExecution) => PurifiedCheckoutHistoryItem;
@@ -1,4 +1,4 @@
1
- import type { CustomWithdrawalConfig, FunkitWithdrawalConfig, WalletWithdrawalConfig } from '~/providers/FunkitCheckoutContext';
1
+ import type { CustomWithdrawalConfig, FunkitWithdrawalConfig, WalletWithdrawalConfig } from '../providers/FunkitCheckoutContext';
2
2
  /**
3
3
  * Type guard to check if withdrawal config uses wallet-based flow
4
4
  */
@@ -1,3 +1,3 @@
1
- import type { DefaultWalletOptions, Wallet } from '~/wallets/Wallet';
1
+ import type { DefaultWalletOptions, Wallet } from '../../../wallets/Wallet';
2
2
  export type BitgetWalletOptions = DefaultWalletOptions;
3
3
  export declare const bitgetWallet: ({ projectId, walletConnectParameters, }: BitgetWalletOptions) => Wallet;
@@ -29,12 +29,12 @@ import {
29
29
  import {
30
30
  xdefiWallet
31
31
  } from "./chunk-TMFH6GXS.js";
32
- import {
33
- rainbowWallet
34
- } from "./chunk-77UTBHGP.js";
35
32
  import {
36
33
  rabbyWallet
37
34
  } from "./chunk-LW6S43RE.js";
35
+ import {
36
+ rainbowWallet
37
+ } from "./chunk-77UTBHGP.js";
38
38
  import {
39
39
  ramperWallet
40
40
  } from "./chunk-FCG5Q6JX.js";
@@ -59,12 +59,12 @@ import {
59
59
  import {
60
60
  mewWallet
61
61
  } from "./chunk-CF5HOLH2.js";
62
- import {
63
- okxWallet
64
- } from "./chunk-U5QP7MI5.js";
65
62
  import {
66
63
  oktoWallet
67
64
  } from "./chunk-ADIXAKUL.js";
65
+ import {
66
+ okxWallet
67
+ } from "./chunk-U5QP7MI5.js";
68
68
  import {
69
69
  omniWallet
70
70
  } from "./chunk-7CUY5G6R.js";
@@ -92,12 +92,12 @@ import {
92
92
  import {
93
93
  imTokenWallet
94
94
  } from "./chunk-COZ7MIQS.js";
95
- import {
96
- kresusWallet
97
- } from "./chunk-MJXPRJZT.js";
98
95
  import {
99
96
  injectedWallet
100
97
  } from "./chunk-MQSCN4BO.js";
98
+ import {
99
+ kresusWallet
100
+ } from "./chunk-MJXPRJZT.js";
101
101
  import {
102
102
  ledgerWallet
103
103
  } from "./chunk-BRBKM4PW.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funkit/connect",
3
- "version": "7.1.0-next.12",
3
+ "version": "7.1.0-next.15",
4
4
  "description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
5
5
  "files": [
6
6
  "dist",
@@ -74,6 +74,7 @@
74
74
  "storybook": "^9.1.3",
75
75
  "stream-browserify": "^3.0.0",
76
76
  "tsx": "^4.19.2",
77
+ "tsc-alias": "1.8.16",
77
78
  "util": "^0.12.5",
78
79
  "vite-plugin-node-polyfills": "^0.24.0",
79
80
  "vitest": "^3.0.9"
@@ -120,7 +121,7 @@
120
121
  "dev": "pnpm build:watch & pnpm typegen:watch",
121
122
  "prebuild": "pnpm statsig:generate && pnpm typegen",
122
123
  "typecheck": "pnpm tsc --project tsconfig.test.json --noEmit",
123
- "typegen": "tsc --emitDeclarationOnly || true",
124
+ "typegen": "tsc --emitDeclarationOnly && tsc-alias || true",
124
125
  "typegen:watch": "tsc --emitDeclarationOnly --watch",
125
126
  "lint": "biome check",
126
127
  "lint:fix": "biome check --fix",