@funkit/connect 7.1.0-next.9 → 7.1.1

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 (136) hide show
  1. package/CHANGELOG.md +254 -0
  2. package/dist/__generated__/default_configs.d.ts +135 -12
  3. package/dist/components/Dropdown/ChainDropdown.d.ts +1 -1
  4. package/dist/components/Dropdown/ReceiveTokenDropdown.d.ts +3 -1
  5. package/dist/components/Dropdown/TokenAndChainDropdown.d.ts +1 -1
  6. package/dist/components/Dropdown/TokenDropdown.d.ts +1 -1
  7. package/dist/components/FunAsset/FunAssetItem.d.ts +1 -1
  8. package/dist/components/FunCheckoutHistory/FunDirectExecutionHistoryDetail.d.ts +1 -1
  9. package/dist/components/FunCheckoutModalHeightAnimationWrapper/FunCheckoutModalHeightAnimationWrapper.d.ts +1 -1
  10. package/dist/components/FunNotificationBanner/FunNotificationBannerIcon.d.ts +1 -1
  11. package/dist/components/FunSelectBrokerage/FunSelectBrokerage.d.ts +1 -1
  12. package/dist/components/FunTooltip/FunTooltip.css.d.ts +2 -6
  13. package/dist/components/FunTooltip/FunTooltip.d.ts +14 -19
  14. package/dist/components/FunTransactionSummary/PaymentAmountSummary.d.ts +2 -2
  15. package/dist/components/FunTransactionSummary/PaymentFeesSummary.d.ts +2 -2
  16. package/dist/components/FunTransactionSummary/PaymentFeesSummary.track.d.ts +2 -2
  17. package/dist/components/FunTransactionSummary/PaymentMethodSummary.d.ts +1 -1
  18. package/dist/components/FunTransactionSummary/PaymentRouteSummary.d.ts +1 -1
  19. package/dist/components/Icons/RelayIcon.d.ts +4 -0
  20. package/dist/components/NewTokenDepositAlert/NewTokenDepositAlert.d.ts +1 -1
  21. package/dist/components/ReceiveAmount/ReceiveAmount.d.ts +2 -2
  22. package/dist/components/SourcePaymentMethodItem/SourcePaymentMethodItem.d.ts +1 -1
  23. package/dist/components/TransactionStatus/TransactionStatus.d.ts +1 -1
  24. package/dist/components/TransferTokenDetails/TransferTokenDetails.d.ts +1 -1
  25. package/dist/consts/customers.d.ts +1 -1
  26. package/dist/domains/asset.d.ts +2 -2
  27. package/dist/domains/checkout.d.ts +1 -1
  28. package/dist/domains/checkoutRecipient.d.ts +1 -1
  29. package/dist/domains/clientMetadata.d.ts +1 -1
  30. package/dist/domains/fees.d.ts +2 -2
  31. package/dist/domains/paymentMethods.d.ts +1 -1
  32. package/dist/domains/quote.d.ts +4 -4
  33. package/dist/domains/relay.d.ts +15 -1
  34. package/dist/domains/wallet.d.ts +1 -1
  35. package/dist/hooks/queries/useMeldDefaultCurrency.d.ts +1 -1
  36. package/dist/hooks/queries/useRecentCheckouts.d.ts +1 -1
  37. package/dist/hooks/queries/useRecentDeposits.d.ts +117 -0
  38. package/dist/hooks/queries/useWithdrawalQuote.d.ts +34 -36
  39. package/dist/hooks/track/useTrack.d.ts +1 -1
  40. package/dist/hooks/useBluvo.d.ts +3 -3
  41. package/dist/hooks/useCheckoutDirectExecution.d.ts +3 -3
  42. package/dist/hooks/useCheckoutDirectExecutionHistory.d.ts +1 -1
  43. package/dist/hooks/useCheckoutItemDisplay.d.ts +2 -2
  44. package/dist/hooks/useCheckoutTimeEstimate.d.ts +2 -2
  45. package/dist/hooks/useCheckoutTransferInit.d.ts +1 -1
  46. package/dist/hooks/useCountdown.d.ts +1 -1
  47. package/dist/hooks/useEnabledTokenTransferChainTokens.d.ts +1 -1
  48. package/dist/hooks/useFrogAccount.d.ts +2 -1
  49. package/dist/hooks/useHasHover.d.ts +1 -0
  50. package/dist/hooks/useIsBlacklisted.d.ts +1 -1
  51. package/dist/hooks/useIsDynamicRoutingEnabled.d.ts +1 -1
  52. package/dist/hooks/useMinDeposit.d.ts +1 -1
  53. package/dist/hooks/useOnNewNotification.d.ts +1 -1
  54. package/dist/hooks/usePaymentSources.d.ts +5 -3
  55. package/dist/hooks/useRelayBypass.d.ts +1 -1
  56. package/dist/hooks/useTokenChain.d.ts +1 -1
  57. package/dist/hooks/useTokenTransfer.d.ts +1 -1
  58. package/dist/hooks/useWalletAssetHoldings.d.ts +1 -0
  59. package/dist/index.css +90 -29
  60. package/dist/index.d.ts +1 -0
  61. package/dist/index.js +3156 -2663
  62. package/dist/modals/CheckoutModal/Brokerage/BrokerageSuccessModal.d.ts +1 -1
  63. package/dist/modals/CheckoutModal/Brokerage/BrokerageTwoFA.d.ts +2 -2
  64. package/dist/modals/CheckoutModal/Brokerage/ConnectExchange.d.ts +2 -2
  65. package/dist/modals/CheckoutModal/Brokerage/SelectBrokerage.d.ts +2 -2
  66. package/dist/modals/CheckoutModal/ConfirmationStep/CheckoutPrimaryInfo.d.ts +1 -1
  67. package/dist/modals/CheckoutModal/ConfirmationStep/ConfirmationStep.d.ts +1 -1
  68. package/dist/modals/CheckoutModal/ConfirmationStep/DisclaimerText.d.ts +1 -1
  69. package/dist/modals/CheckoutModal/ConfirmationStep/useCheckoutConfirmation.d.ts +1 -1
  70. package/dist/modals/CheckoutModal/ConfirmationStep/useCheckoutQuote.d.ts +1 -1
  71. package/dist/modals/CheckoutModal/ConfirmationStep/usePostCheckout.d.ts +2 -2
  72. package/dist/modals/CheckoutModal/ConfirmationStep/useQuoteRefresh.d.ts +1 -1
  73. package/dist/modals/CheckoutModal/ConfirmationStep/useSourceAssetConfirm.d.ts +2 -2
  74. package/dist/modals/CheckoutModal/DirectExecutionNotifCenter/DirectExecutionNotifCenter.d.ts +1 -1
  75. package/dist/modals/CheckoutModal/DirectExecutionNotifCenter/DirectExecutionNotifCenterContent.d.ts +1 -1
  76. package/dist/modals/CheckoutModal/InputAmount/AvailableBalance.d.ts +1 -1
  77. package/dist/modals/CheckoutModal/InputAmount/InputAmount.d.ts +1 -1
  78. package/dist/modals/CheckoutModal/InputAmount/InputAmountLoaded.d.ts +2 -2
  79. package/dist/modals/CheckoutModal/InputAmount/state.d.ts +3 -3
  80. package/dist/modals/CheckoutModal/InputAmount/useAmountInput.d.ts +1 -1
  81. package/dist/modals/CheckoutModal/InputAmount/useAvailableBalanceForCheckout.d.ts +3 -3
  82. package/dist/modals/CheckoutModal/InputAmount/useMeld.d.ts +1 -1
  83. package/dist/modals/CheckoutModal/InputAmount/utils.d.ts +2 -2
  84. package/dist/modals/CheckoutModal/MeldCurrencySelect/MeldCurrencySelect.d.ts +1 -1
  85. package/dist/modals/CheckoutModal/MeldQuotes/MeldQuotes.d.ts +1 -1
  86. package/dist/modals/CheckoutModal/MeldRedirect/MeldRedirect.d.ts +1 -1
  87. package/dist/modals/CheckoutModal/SelectAsset.d.ts +1 -1
  88. package/dist/modals/CheckoutModal/SourceChange/DefiPurchaseSection.d.ts +1 -1
  89. package/dist/modals/CheckoutModal/SourceChange/SourceChange.d.ts +1 -1
  90. package/dist/modals/CheckoutModal/TransferToken/CheckoutNotification.d.ts +1 -1
  91. package/dist/modals/CheckoutModal/TransferToken/CheckoutNotifications.track.d.ts +1 -1
  92. package/dist/modals/CheckoutModal/TransferToken/DirectExecutionNotification.d.ts +1 -1
  93. package/dist/modals/CheckoutModal/TransferToken/TransferToken.d.ts +1 -1
  94. package/dist/modals/CheckoutModal/TransferToken/types.d.ts +1 -1
  95. package/dist/modals/CheckoutModal/VirtualFiatAccount/BridgeCustomer.d.ts +2 -2
  96. package/dist/modals/CheckoutModal/VirtualFiatAccount/BridgeKyc.d.ts +1 -1
  97. package/dist/modals/CheckoutModal/VirtualFiatAccount/ErrorScreen.d.ts +1 -1
  98. package/dist/modals/CheckoutModal/VirtualFiatAccount/FiatAccountDetail.d.ts +1 -1
  99. package/dist/modals/CheckoutModal/VirtualFiatAccount/KycIframe.d.ts +2 -2
  100. package/dist/modals/CheckoutModal/VirtualFiatAccount/VirtualFiatAccount.d.ts +2 -2
  101. package/dist/modals/CheckoutModal/stepTransition.d.ts +5 -5
  102. package/dist/modals/CheckoutModal/stepTransition.track.d.ts +2 -2
  103. package/dist/modals/ProfileDetails/FunProfileViews/Home/HomeCheckoutDisplayRow.d.ts +2 -2
  104. package/dist/modals/ProfileDetails/FunProfileViews/Home/HomeTokenDisplayRow.d.ts +1 -1
  105. package/dist/modals/ProfileDetails/FunProfileViews/Home/ProfileTitleSection.d.ts +1 -1
  106. package/dist/modals/ProfileDetails/FunProfileViews/Home/index.d.ts +1 -1
  107. package/dist/modals/WithdrwalModal/WithdrawalContent.d.ts +1 -1
  108. package/dist/modals/WithdrwalModal/WithdrawalModal.d.ts +1 -1
  109. package/dist/modals/WithdrwalModal/WithdrawalNotification.d.ts +2 -2
  110. package/dist/modals/WithdrwalModal/useWithdrawal.d.ts +2 -2
  111. package/dist/providers/FunkitBrokerageProvider.d.ts +2 -2
  112. package/dist/providers/FunkitCheckoutContext/track.d.ts +4 -4
  113. package/dist/providers/FunkitCheckoutContext/types.d.ts +1 -1
  114. package/dist/providers/FunkitConfigContext.d.ts +14 -1
  115. package/dist/providers/FunkitHistoryContext.d.ts +2 -2
  116. package/dist/providers/FunkitI18nProvider.d.ts +1 -1
  117. package/dist/providers/FunkitProvider.d.ts +1 -1
  118. package/dist/providers/FunkitQuoteContext.track.d.ts +3 -3
  119. package/dist/themes/darkTheme.d.ts +1 -1
  120. package/dist/themes/lightTheme.d.ts +1 -1
  121. package/dist/utils/assets.d.ts +1 -1
  122. package/dist/utils/bluvo.d.ts +2 -2
  123. package/dist/utils/checkout.d.ts +2 -2
  124. package/dist/utils/customer.d.ts +2 -2
  125. package/dist/utils/flags/config.d.ts +4 -18
  126. package/dist/utils/flags/patches/enable-bitcoin-patch.d.ts +1 -1
  127. package/dist/utils/funLogger.d.ts +5 -1
  128. package/dist/utils/funkitProvider.d.ts +2 -0
  129. package/dist/utils/lighter.d.ts +6 -0
  130. package/dist/utils/payment.d.ts +1 -1
  131. package/dist/utils/purifyCheckoutHistoryItem.d.ts +4 -5
  132. package/dist/utils/withdrawal.d.ts +1 -1
  133. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.d.ts +1 -1
  134. package/dist/wallets/walletConnectors/index.js +3 -3
  135. package/package.json +11 -9
  136. package/dist/hooks/queries/useRecentDirectExecutions.d.ts +0 -22
@@ -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;
@@ -7,7 +7,7 @@ export declare const flagConfig: {
7
7
  readonly if_any: [{
8
8
  readonly key: "apiKey";
9
9
  readonly type: "isAnyOf";
10
- readonly values: ["Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6", "OXLUmejkh9PlNDS4gSvi9gcEWacOpTz2KUVepVf4", "lUzTaIRxs95iin3pCAafB1ChA5akBiuQ1tjhXnau", "di9ZSqn1Ya68Y2XpBPUV1rCtNGXh8Xe5MGWzb1Xe", "cGlmpTmNh657m8TiV5RFdwna6FG5pxM6ajiNHvw3"];
10
+ readonly values: ["Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6", "OXLUmejkh9PlNDS4gSvi9gcEWacOpTz2KUVepVf4", "lUzTaIRxs95iin3pCAafB1ChA5akBiuQ1tjhXnau", "di9ZSqn1Ya68Y2XpBPUV1rCtNGXh8Xe5MGWzb1Xe", "cGlmpTmNh657m8TiV5RFdwna6FG5pxM6ajiNHvw3", "57G91zNoew4nYxIoqSCpS1vWr8JT3gGVasNqMwgG"];
11
11
  }];
12
12
  readonly value: "";
13
13
  }];
@@ -157,21 +157,7 @@ export declare const flagConfig: {
157
157
  readonly token_transfer_new_tokens: {
158
158
  readonly type: "string";
159
159
  readonly default_value: string;
160
- readonly overrides: [{
161
- readonly if_any: [{
162
- readonly key: "apiKey";
163
- readonly type: "isAnyOf";
164
- readonly values: ["2hicPxo2vy2NMHcg2cEU9crOeKtDpc14NEfMCthc"];
165
- }];
166
- readonly value: "";
167
- }, {
168
- readonly if_any: [{
169
- readonly key: "apiKey";
170
- readonly type: "isAnyOf";
171
- readonly values: ["Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6"];
172
- }];
173
- readonly value: string;
174
- }];
160
+ readonly overrides: [];
175
161
  };
176
162
  readonly new_token_asset_selection_banner: {
177
163
  readonly type: "string";
@@ -212,7 +198,7 @@ export declare const flagConfig: {
212
198
  readonly if_any: [{
213
199
  readonly key: "apiKey";
214
200
  readonly type: "isAnyOf";
215
- readonly values: ["6TUi99Tq3O9MWj1IFX8Pv6spmPXzcvhy9NvBoeW2", "clDebbfo9edXq1GydZ0CahSAfSimPj616lFa9p8e", "57G91zNoew4nYxIoqSCpS1vWr8JT3gGVasNqMwgG", "M3uox3cw0u8YCPV9cIREA6AugUMvPFTk6qOpm4um", "cGlmpTmNh657m8TiV5RFdwna6FG5pxM6ajiNHvw3", "pLQBJsA6zS9tg990rbdBD6UdABkWRv5O60vlrVcW", "lUzTaIRxs95iin3pCAafB1ChA5akBiuQ1tjhXnau", "di9ZSqn1Ya68Y2XpBPUV1rCtNGXh8Xe5MGWzb1Xe", "53OWivH0fK2VIAuMZTycr52EnSEnPWj97Jy3Dpiz", "AH7lRIhbsL167nptv6eub9xDJXVHnYUm2vL7FLjK", "1cRIX8XoWP801OILra02i13IJ08IARBP5B6ydcnp", "i6e1I8cfX625TTwRJlD2DshKyAoaUtO8aeoaR4i2", "2hicPxo2vy2NMHcg2cEU9crOeKtDpc14NEfMCthc", "SMbBD7DS9b3EPcyBVg4a8az1rRWR9xB068chHoUN", "wQDLu86Qab61vbtru7thf8Yj0xaeqVUH4ohoXESu", "Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6", "iMTsSsgDdI2FC0FjeEejS9LMxuJgDhFO3OHlwVjT", "HKHvPSPDezaxsTohFgDuG4WpKW6hB4SFYyztm9vc", "5UzOrcAE2F3rcuMX2EeIlaYv5VUcDe6Lyh0PeZX2"];
201
+ readonly values: ["6TUi99Tq3O9MWj1IFX8Pv6spmPXzcvhy9NvBoeW2", "clDebbfo9edXq1GydZ0CahSAfSimPj616lFa9p8e", "57G91zNoew4nYxIoqSCpS1vWr8JT3gGVasNqMwgG", "M3uox3cw0u8YCPV9cIREA6AugUMvPFTk6qOpm4um", "cGlmpTmNh657m8TiV5RFdwna6FG5pxM6ajiNHvw3", "1QxzeJ4XKT78ba86whLct6sc7dW60Dl461UVWFdw", "ODW4jUppoG3H87YcY9GZhoGj4hX5W0w9mr24LEU8", "pLQBJsA6zS9tg990rbdBD6UdABkWRv5O60vlrVcW", "lUzTaIRxs95iin3pCAafB1ChA5akBiuQ1tjhXnau", "di9ZSqn1Ya68Y2XpBPUV1rCtNGXh8Xe5MGWzb1Xe", "53OWivH0fK2VIAuMZTycr52EnSEnPWj97Jy3Dpiz", "AH7lRIhbsL167nptv6eub9xDJXVHnYUm2vL7FLjK", "1cRIX8XoWP801OILra02i13IJ08IARBP5B6ydcnp", "i6e1I8cfX625TTwRJlD2DshKyAoaUtO8aeoaR4i2", "2hicPxo2vy2NMHcg2cEU9crOeKtDpc14NEfMCthc", "SMbBD7DS9b3EPcyBVg4a8az1rRWR9xB068chHoUN", "wQDLu86Qab61vbtru7thf8Yj0xaeqVUH4ohoXESu", "Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6", "iMTsSsgDdI2FC0FjeEejS9LMxuJgDhFO3OHlwVjT", "HKHvPSPDezaxsTohFgDuG4WpKW6hB4SFYyztm9vc", "5UzOrcAE2F3rcuMX2EeIlaYv5VUcDe6Lyh0PeZX2"];
216
202
  }];
217
203
  readonly value: true;
218
204
  }];
@@ -231,7 +217,7 @@ export declare const flagConfig: {
231
217
  readonly if_any: [{
232
218
  readonly key: "apiKey";
233
219
  readonly type: "isAnyOf";
234
- readonly values: ["6TUi99Tq3O9MWj1IFX8Pv6spmPXzcvhy9NvBoeW2", "clDebbfo9edXq1GydZ0CahSAfSimPj616lFa9p8e", "57G91zNoew4nYxIoqSCpS1vWr8JT3gGVasNqMwgG", "M3uox3cw0u8YCPV9cIREA6AugUMvPFTk6qOpm4um", "cGlmpTmNh657m8TiV5RFdwna6FG5pxM6ajiNHvw3", "pLQBJsA6zS9tg990rbdBD6UdABkWRv5O60vlrVcW", "lUzTaIRxs95iin3pCAafB1ChA5akBiuQ1tjhXnau", "53OWivH0fK2VIAuMZTycr52EnSEnPWj97Jy3Dpiz", "AH7lRIhbsL167nptv6eub9xDJXVHnYUm2vL7FLjK", "i6e1I8cfX625TTwRJlD2DshKyAoaUtO8aeoaR4i2", "1cRIX8XoWP801OILra02i13IJ08IARBP5B6ydcnp", "2hicPxo2vy2NMHcg2cEU9crOeKtDpc14NEfMCthc", "SMbBD7DS9b3EPcyBVg4a8az1rRWR9xB068chHoUN", "Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6", "wQDLu86Qab61vbtru7thf8Yj0xaeqVUH4ohoXESu", "iMTsSsgDdI2FC0FjeEejS9LMxuJgDhFO3OHlwVjT", "HKHvPSPDezaxsTohFgDuG4WpKW6hB4SFYyztm9vc", "5UzOrcAE2F3rcuMX2EeIlaYv5VUcDe6Lyh0PeZX2"];
220
+ readonly values: ["6TUi99Tq3O9MWj1IFX8Pv6spmPXzcvhy9NvBoeW2", "clDebbfo9edXq1GydZ0CahSAfSimPj616lFa9p8e", "Tkp90bAf246UQXfou5uHY9UHN7AUV6xK1tgEWKke", "57G91zNoew4nYxIoqSCpS1vWr8JT3gGVasNqMwgG", "M3uox3cw0u8YCPV9cIREA6AugUMvPFTk6qOpm4um", "cGlmpTmNh657m8TiV5RFdwna6FG5pxM6ajiNHvw3", "1QxzeJ4XKT78ba86whLct6sc7dW60Dl461UVWFdw", "ODW4jUppoG3H87YcY9GZhoGj4hX5W0w9mr24LEU8", "pLQBJsA6zS9tg990rbdBD6UdABkWRv5O60vlrVcW", "lUzTaIRxs95iin3pCAafB1ChA5akBiuQ1tjhXnau", "53OWivH0fK2VIAuMZTycr52EnSEnPWj97Jy3Dpiz", "AH7lRIhbsL167nptv6eub9xDJXVHnYUm2vL7FLjK", "TY2G63jFfd7H29aHiJIzg5RqdXNdog2Q5jgb8tr7", "i6e1I8cfX625TTwRJlD2DshKyAoaUtO8aeoaR4i2", "1cRIX8XoWP801OILra02i13IJ08IARBP5B6ydcnp", "2hicPxo2vy2NMHcg2cEU9crOeKtDpc14NEfMCthc", "SMbBD7DS9b3EPcyBVg4a8az1rRWR9xB068chHoUN", "Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6", "wQDLu86Qab61vbtru7thf8Yj0xaeqVUH4ohoXESu", "iMTsSsgDdI2FC0FjeEejS9LMxuJgDhFO3OHlwVjT", "HKHvPSPDezaxsTohFgDuG4WpKW6hB4SFYyztm9vc", "5UzOrcAE2F3rcuMX2EeIlaYv5VUcDe6Lyh0PeZX2"];
235
221
  }];
236
222
  readonly value: true;
237
223
  }, {
@@ -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
  */
@@ -7,9 +7,12 @@ declare class FunLogger {
7
7
  protected userLoginType: string | null;
8
8
  protected sdkVersion: string | null;
9
9
  protected l2Address: string | null;
10
+ private isConfigured;
11
+ private logQueue;
10
12
  constructor();
11
13
  private getFunLogEnv;
12
14
  private logDataDog;
15
+ private processLog;
13
16
  private onDebug;
14
17
  private onInfo;
15
18
  private onWarn;
@@ -28,6 +31,7 @@ declare class FunLogger {
28
31
  * In a lot of places it's actually being used as a "data" prop, which also usually has an `.error` property representing an actual {@link Error} object.
29
32
  */
30
33
  error(title: string, errorOrData: unknown, _data?: object): void;
34
+ private flushLogQueue;
31
35
  configure(apiKey: string | null, isDebug: boolean, sdkVersion: string): void;
32
36
  getUserId(): string | null;
33
37
  getUserAddress(): string | null;
@@ -37,4 +41,4 @@ declare class FunLogger {
37
41
  setUserInfo(userId: string, userAddress: string, userName: string, userLoginType: string, l2Address?: string): void;
38
42
  }
39
43
  declare const logger: FunLogger;
40
- export { logger };
44
+ export { logger, FunLogger };
@@ -1,3 +1,4 @@
1
+ import type { FunkitCheckoutConfig } from '../providers/FunkitCheckoutContext';
1
2
  import type { FunkitProviderProps } from '../providers/FunkitProvider';
2
3
  export declare function getInitialChainIdFromFunkitProviderProps(props: FunkitProviderProps): number | undefined;
3
4
  export declare function generateSyntheticUserId(apiKey: string, externalUserId: string): string;
@@ -5,3 +6,4 @@ export declare function generateSyntheticUserId(apiKey: string, externalUserId:
5
6
  * Validates the passed in props of FunkitProvider. If there are any misconfigurations, an error will be thrown.
6
7
  */
7
8
  export declare function validateFunkitProviderProps(props: FunkitProviderProps): void;
9
+ export declare function getModalTitle(checkoutConfig: FunkitCheckoutConfig | undefined, fallbackTitle?: string): string;
@@ -7,6 +7,12 @@ export declare const LIGHTER_DYNAMIC_ROUTING_ID: {
7
7
  USDC_PERPS: string;
8
8
  ETH_SPOT_NEW_USER: string;
9
9
  USDC_PERPS_NEW_USER: string;
10
+ LINK_SPOT_NEW_USER: string;
11
+ UNI_SPOT_NEW_USER: string;
12
+ AAVE_SPOT_NEW_USER: string;
13
+ SKY_SPOT_NEW_USER: string;
14
+ LDO_SPOT_NEW_USER: string;
15
+ LIT_SPOT_NEW_USER: string;
10
16
  };
11
17
  export declare const getLighterRoutingIdByTokenAddress: (address: Address) => string | undefined;
12
18
  export declare const getLighterTokenAddressByRoutingId: (id: string) => Address | undefined;
@@ -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;
@@ -134,6 +134,9 @@ import {
134
134
  import {
135
135
  bitgetWallet
136
136
  } from "./chunk-FA5DTT5R.js";
137
+ import {
138
+ bitskiWallet
139
+ } from "./chunk-YMUSFW44.js";
137
140
  import {
138
141
  bitverseWallet
139
142
  } from "./chunk-3HZRRP4Y.js";
@@ -141,9 +144,6 @@ import {
141
144
  bloomWallet
142
145
  } from "./chunk-S27IADFU.js";
143
146
  import "./chunk-23WIEY36.js";
144
- import {
145
- bitskiWallet
146
- } from "./chunk-YMUSFW44.js";
147
147
  import {
148
148
  braveWallet
149
149
  } from "./chunk-4ZXII3UA.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funkit/connect",
3
- "version": "7.1.0-next.9",
3
+ "version": "7.1.1",
4
4
  "description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
5
5
  "files": [
6
6
  "dist",
@@ -44,7 +44,6 @@
44
44
  "wagmi": "2.x"
45
45
  },
46
46
  "devDependencies": {
47
- "i18next-cli": "1.24.14",
48
47
  "@aws-sdk/client-cloudfront": "3.943.0",
49
48
  "@aws-sdk/client-s3": "3.840.0",
50
49
  "@chromatic-com/storybook": "^4.1.1",
@@ -53,7 +52,7 @@
53
52
  "@storybook/addon-links": "^10.1.3",
54
53
  "@storybook/react-vite": "^9.1.3",
55
54
  "@testing-library/jest-dom": "^6.2.0",
56
- "@testing-library/react": "^16.0.1",
55
+ "@testing-library/react": "^16.3.1",
57
56
  "@testing-library/user-event": "^14.5.2",
58
57
  "@types/qrcode": "^1.5.5",
59
58
  "@types/ua-parser-js": "^0.7.39",
@@ -61,11 +60,12 @@
61
60
  "@vanilla-extract/esbuild-plugin": "^2.3.16",
62
61
  "@vanilla-extract/private": "^1.0.7",
63
62
  "@vanilla-extract/vite-plugin": "^5.0.3",
64
- "@vitejs/plugin-react": "^5.0.2",
63
+ "@vitejs/plugin-react": "^5.1.2",
65
64
  "autoprefixer": "^10.4.16",
66
65
  "buffer": "^6.0.3",
67
66
  "dotenv": "^17.2.3",
68
67
  "esbuild-plugin-replace": "^1.4.0",
68
+ "i18next-cli": "1.24.14",
69
69
  "jsdom": "^26.1.0",
70
70
  "postcss": "^8.4.33",
71
71
  "postcss-prefix-selector": "^1.16.0",
@@ -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"
@@ -83,6 +84,7 @@
83
84
  "@bluvo/sdk-ts": "2.1.3",
84
85
  "@datadog/browser-logs": "5.22.0",
85
86
  "@number-flow/react": "^0.5.5",
87
+ "@radix-ui/react-tooltip": "^1.2.0",
86
88
  "@solana/addresses": "^2.1.0",
87
89
  "@statsig/react-bindings": "^3.25.4",
88
90
  "@types/uuid": "^9.0.8",
@@ -100,10 +102,10 @@
100
102
  "ua-parser-js": "^1.0.37",
101
103
  "use-debounce": "^10.0.5",
102
104
  "uuid": "^9.0.1",
103
- "@funkit/api-base": "1.12.22-next.3",
104
- "@funkit/chains": "0.5.2-next.1",
105
- "@funkit/fun-relay": "2.2.0-next.4",
106
- "@funkit/utils": "1.1.22-next.2"
105
+ "@funkit/api-base": "1.12.23",
106
+ "@funkit/chains": "0.5.3",
107
+ "@funkit/fun-relay": "2.2.1",
108
+ "@funkit/utils": "1.1.22"
107
109
  },
108
110
  "repository": {
109
111
  "type": "git",
@@ -119,7 +121,7 @@
119
121
  "dev": "pnpm build:watch & pnpm typegen:watch",
120
122
  "prebuild": "pnpm statsig:generate && pnpm typegen",
121
123
  "typecheck": "pnpm tsc --project tsconfig.test.json --noEmit",
122
- "typegen": "tsc --emitDeclarationOnly || true",
124
+ "typegen": "tsc --emitDeclarationOnly && tsc-alias || true",
123
125
  "typegen:watch": "tsc --emitDeclarationOnly --watch",
124
126
  "lint": "biome check",
125
127
  "lint:fix": "biome check --fix",
@@ -1,22 +0,0 @@
1
- import { type DirectExecution } from '@funkit/api-base';
2
- interface RecentDirectExecutionsQuery {
3
- isVisible: boolean;
4
- memoizedFilterFunc?: (de: DirectExecution) => boolean;
5
- }
6
- export interface MergedMultiStepDirectExecution extends DirectExecution {
7
- /**
8
- * In a multi-step DE chain, represents the latest **present** DE of the chain.
9
- *
10
- * Always `undefined` for single-step DEs.
11
- */
12
- latestStep?: DirectExecution;
13
- }
14
- export declare function isTokenTransferDirectExecution(de: DirectExecution): boolean;
15
- export declare function isWithdrawalDirectExecution(de: DirectExecution): boolean;
16
- /**
17
- * @returns recent direct executions tied to a recipient address used in the token transfer flow
18
- */
19
- export declare const useRecentDirectExecutions: ({ isVisible, memoizedFilterFunc, }: RecentDirectExecutionsQuery) => {
20
- data: MergedMultiStepDirectExecution[] | undefined;
21
- };
22
- export {};