@funkit/connect 7.1.0-next.13 → 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.
- package/CHANGELOG.md +12 -0
- package/dist/components/Dropdown/ChainDropdown.d.ts +1 -1
- package/dist/components/Dropdown/TokenAndChainDropdown.d.ts +1 -1
- package/dist/components/Dropdown/TokenDropdown.d.ts +1 -1
- package/dist/components/FunAsset/FunAssetItem.d.ts +1 -1
- package/dist/components/FunCheckoutHistory/FunDirectExecutionHistoryDetail.d.ts +1 -1
- package/dist/components/FunCheckoutModalHeightAnimationWrapper/FunCheckoutModalHeightAnimationWrapper.d.ts +1 -1
- package/dist/components/FunNotificationBanner/FunNotificationBannerIcon.d.ts +1 -1
- package/dist/components/FunSelectBrokerage/FunSelectBrokerage.d.ts +1 -1
- package/dist/components/FunTransactionSummary/PaymentAmountSummary.d.ts +2 -2
- package/dist/components/FunTransactionSummary/PaymentFeesSummary.d.ts +2 -2
- package/dist/components/FunTransactionSummary/PaymentFeesSummary.track.d.ts +2 -2
- package/dist/components/FunTransactionSummary/PaymentMethodSummary.d.ts +1 -1
- package/dist/components/FunTransactionSummary/PaymentRouteSummary.d.ts +1 -1
- package/dist/components/NewTokenDepositAlert/NewTokenDepositAlert.d.ts +1 -1
- package/dist/components/ReceiveAmount/ReceiveAmount.d.ts +2 -2
- package/dist/components/SourcePaymentMethodItem/SourcePaymentMethodItem.d.ts +1 -1
- package/dist/components/TransactionStatus/TransactionStatus.d.ts +1 -1
- package/dist/components/TransferTokenDetails/TransferTokenDetails.d.ts +1 -1
- package/dist/consts/customers.d.ts +1 -1
- package/dist/domains/asset.d.ts +2 -2
- package/dist/domains/checkout.d.ts +1 -1
- package/dist/domains/checkoutRecipient.d.ts +1 -1
- package/dist/domains/clientMetadata.d.ts +1 -1
- package/dist/domains/fees.d.ts +2 -2
- package/dist/domains/paymentMethods.d.ts +1 -1
- package/dist/domains/quote.d.ts +4 -4
- package/dist/domains/wallet.d.ts +1 -1
- package/dist/hooks/queries/useMeldDefaultCurrency.d.ts +1 -1
- package/dist/hooks/queries/useRecentCheckouts.d.ts +1 -1
- package/dist/hooks/queries/useRecentDeposits.d.ts +3 -2
- package/dist/hooks/queries/useWithdrawalQuote.d.ts +31 -31
- package/dist/hooks/track/useTrack.d.ts +1 -1
- package/dist/hooks/useBluvo.d.ts +3 -3
- package/dist/hooks/useCheckoutDirectExecution.d.ts +3 -3
- package/dist/hooks/useCheckoutItemDisplay.d.ts +2 -2
- package/dist/hooks/useCheckoutTimeEstimate.d.ts +2 -2
- package/dist/hooks/useCheckoutTransferInit.d.ts +1 -1
- package/dist/hooks/useCountdown.d.ts +1 -1
- package/dist/hooks/useEnabledTokenTransferChainTokens.d.ts +1 -1
- package/dist/hooks/useFrogAccount.d.ts +1 -1
- package/dist/hooks/useIsBlacklisted.d.ts +1 -1
- package/dist/hooks/useIsDynamicRoutingEnabled.d.ts +1 -1
- package/dist/hooks/useMinDeposit.d.ts +1 -1
- package/dist/hooks/useOnNewNotification.d.ts +1 -1
- package/dist/hooks/usePaymentSources.d.ts +3 -3
- package/dist/hooks/useRelayBypass.d.ts +1 -1
- package/dist/hooks/useTokenChain.d.ts +1 -1
- package/dist/hooks/useTokenTransfer.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/modals/CheckoutModal/Brokerage/BrokerageSuccessModal.d.ts +1 -1
- package/dist/modals/CheckoutModal/Brokerage/BrokerageTwoFA.d.ts +2 -2
- package/dist/modals/CheckoutModal/Brokerage/ConnectExchange.d.ts +2 -2
- package/dist/modals/CheckoutModal/Brokerage/SelectBrokerage.d.ts +2 -2
- package/dist/modals/CheckoutModal/ConfirmationStep/CheckoutPrimaryInfo.d.ts +1 -1
- package/dist/modals/CheckoutModal/ConfirmationStep/ConfirmationStep.d.ts +1 -1
- package/dist/modals/CheckoutModal/ConfirmationStep/DisclaimerText.d.ts +1 -1
- package/dist/modals/CheckoutModal/ConfirmationStep/useCheckoutConfirmation.d.ts +1 -1
- package/dist/modals/CheckoutModal/ConfirmationStep/useCheckoutQuote.d.ts +1 -1
- package/dist/modals/CheckoutModal/ConfirmationStep/usePostCheckout.d.ts +2 -2
- package/dist/modals/CheckoutModal/ConfirmationStep/useQuoteRefresh.d.ts +1 -1
- package/dist/modals/CheckoutModal/ConfirmationStep/useSourceAssetConfirm.d.ts +2 -2
- package/dist/modals/CheckoutModal/DirectExecutionNotifCenter/DirectExecutionNotifCenter.d.ts +1 -1
- package/dist/modals/CheckoutModal/DirectExecutionNotifCenter/DirectExecutionNotifCenterContent.d.ts +1 -1
- package/dist/modals/CheckoutModal/InputAmount/AvailableBalance.d.ts +1 -1
- package/dist/modals/CheckoutModal/InputAmount/InputAmount.d.ts +1 -1
- package/dist/modals/CheckoutModal/InputAmount/InputAmountLoaded.d.ts +2 -2
- package/dist/modals/CheckoutModal/InputAmount/state.d.ts +2 -2
- package/dist/modals/CheckoutModal/InputAmount/useAmountInput.d.ts +1 -1
- package/dist/modals/CheckoutModal/InputAmount/useAvailableBalanceForCheckout.d.ts +3 -3
- package/dist/modals/CheckoutModal/InputAmount/useMeld.d.ts +1 -1
- package/dist/modals/CheckoutModal/InputAmount/utils.d.ts +2 -2
- package/dist/modals/CheckoutModal/MeldCurrencySelect/MeldCurrencySelect.d.ts +1 -1
- package/dist/modals/CheckoutModal/MeldQuotes/MeldQuotes.d.ts +1 -1
- package/dist/modals/CheckoutModal/MeldRedirect/MeldRedirect.d.ts +1 -1
- package/dist/modals/CheckoutModal/SelectAsset.d.ts +1 -1
- package/dist/modals/CheckoutModal/SourceChange/DefiPurchaseSection.d.ts +1 -1
- package/dist/modals/CheckoutModal/SourceChange/SourceChange.d.ts +1 -1
- package/dist/modals/CheckoutModal/TransferToken/CheckoutNotification.d.ts +1 -1
- package/dist/modals/CheckoutModal/TransferToken/CheckoutNotifications.track.d.ts +1 -1
- package/dist/modals/CheckoutModal/TransferToken/DirectExecutionNotification.d.ts +1 -1
- package/dist/modals/CheckoutModal/TransferToken/TransferToken.d.ts +1 -1
- package/dist/modals/CheckoutModal/TransferToken/types.d.ts +1 -1
- package/dist/modals/CheckoutModal/VirtualFiatAccount/BridgeCustomer.d.ts +2 -2
- package/dist/modals/CheckoutModal/VirtualFiatAccount/BridgeKyc.d.ts +1 -1
- package/dist/modals/CheckoutModal/VirtualFiatAccount/ErrorScreen.d.ts +1 -1
- package/dist/modals/CheckoutModal/VirtualFiatAccount/FiatAccountDetail.d.ts +1 -1
- package/dist/modals/CheckoutModal/VirtualFiatAccount/KycIframe.d.ts +2 -2
- package/dist/modals/CheckoutModal/VirtualFiatAccount/VirtualFiatAccount.d.ts +2 -2
- package/dist/modals/CheckoutModal/stepTransition.d.ts +5 -5
- package/dist/modals/CheckoutModal/stepTransition.track.d.ts +2 -2
- package/dist/modals/ProfileDetails/FunProfileViews/Home/HomeCheckoutDisplayRow.d.ts +2 -2
- package/dist/modals/ProfileDetails/FunProfileViews/Home/HomeTokenDisplayRow.d.ts +1 -1
- package/dist/modals/ProfileDetails/FunProfileViews/Home/ProfileTitleSection.d.ts +1 -1
- package/dist/modals/ProfileDetails/FunProfileViews/Home/index.d.ts +1 -1
- package/dist/modals/WithdrwalModal/WithdrawalContent.d.ts +1 -1
- package/dist/modals/WithdrwalModal/WithdrawalModal.d.ts +1 -1
- package/dist/modals/WithdrwalModal/WithdrawalNotification.d.ts +2 -2
- package/dist/modals/WithdrwalModal/useWithdrawal.d.ts +2 -2
- package/dist/providers/FunkitBrokerageProvider.d.ts +2 -2
- package/dist/providers/FunkitCheckoutContext/track.d.ts +4 -4
- package/dist/providers/FunkitHistoryContext.d.ts +2 -2
- package/dist/providers/FunkitI18nProvider.d.ts +1 -1
- package/dist/providers/FunkitProvider.d.ts +1 -1
- package/dist/providers/FunkitQuoteContext.track.d.ts +3 -3
- package/dist/themes/darkTheme.d.ts +1 -1
- package/dist/themes/lightTheme.d.ts +1 -1
- package/dist/utils/assets.d.ts +1 -1
- package/dist/utils/bluvo.d.ts +2 -2
- package/dist/utils/checkout.d.ts +2 -2
- package/dist/utils/customer.d.ts +2 -2
- package/dist/utils/flags/patches/enable-bitcoin-patch.d.ts +1 -1
- package/dist/utils/funkitProvider.d.ts +1 -1
- package/dist/utils/payment.d.ts +1 -1
- package/dist/utils/purifyCheckoutHistoryItem.d.ts +1 -1
- package/dist/utils/withdrawal.d.ts +1 -1
- package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.d.ts +1 -1
- package/dist/wallets/walletConnectors/index.js +9 -9
- package/package.json +3 -2
package/dist/utils/bluvo.d.ts
CHANGED
|
@@ -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 '
|
|
5
|
-
import type { AssetHoldingsItem, AssetHoldingsMap, BrokerageAssetHoldingsItem } from '
|
|
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
|
};
|
package/dist/utils/checkout.d.ts
CHANGED
|
@@ -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 '
|
|
7
|
-
import type { FunkitCheckoutQuoteResult } from '
|
|
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;
|
package/dist/utils/customer.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Address } from 'viem';
|
|
2
|
-
import type { ServerCheckoutConfig } from '
|
|
3
|
-
import type { FunkitCheckoutConfig } from '
|
|
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 '
|
|
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 '
|
|
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;
|
package/dist/utils/payment.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LoginType } from '
|
|
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,7 +1,7 @@
|
|
|
1
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 '
|
|
4
|
+
import type { MergedMultiStepDirectExecution } from '../hooks/queries/useRecentDeposits';
|
|
5
5
|
export type PurifiedCheckoutHistoryItem = {
|
|
6
6
|
depositAddr?: Address;
|
|
7
7
|
directExecution: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CustomWithdrawalConfig, FunkitWithdrawalConfig, WalletWithdrawalConfig } from '
|
|
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 '
|
|
1
|
+
import type { DefaultWalletOptions, Wallet } from '../../../wallets/Wallet';
|
|
2
2
|
export type BitgetWalletOptions = DefaultWalletOptions;
|
|
3
3
|
export declare const bitgetWallet: ({ projectId, walletConnectParameters, }: BitgetWalletOptions) => Wallet;
|
|
@@ -11,24 +11,24 @@ import {
|
|
|
11
11
|
import {
|
|
12
12
|
talismanWallet
|
|
13
13
|
} from "./chunk-JTLLKY2O.js";
|
|
14
|
-
import {
|
|
15
|
-
tokenPocketWallet
|
|
16
|
-
} from "./chunk-47QF6EET.js";
|
|
17
14
|
import {
|
|
18
15
|
tokenaryWallet
|
|
19
16
|
} from "./chunk-M2HGGTFE.js";
|
|
17
|
+
import {
|
|
18
|
+
tokenPocketWallet
|
|
19
|
+
} from "./chunk-47QF6EET.js";
|
|
20
20
|
import {
|
|
21
21
|
trustWallet
|
|
22
22
|
} from "./chunk-JFHP4YJG.js";
|
|
23
23
|
import {
|
|
24
24
|
uniswapWallet
|
|
25
25
|
} from "./chunk-LH7BMNFZ.js";
|
|
26
|
-
import {
|
|
27
|
-
xdefiWallet
|
|
28
|
-
} from "./chunk-TMFH6GXS.js";
|
|
29
26
|
import {
|
|
30
27
|
walletConnectWallet
|
|
31
28
|
} from "./chunk-NP5QGWNL.js";
|
|
29
|
+
import {
|
|
30
|
+
xdefiWallet
|
|
31
|
+
} from "./chunk-TMFH6GXS.js";
|
|
32
32
|
import {
|
|
33
33
|
rabbyWallet
|
|
34
34
|
} from "./chunk-LW6S43RE.js";
|
|
@@ -80,12 +80,12 @@ import {
|
|
|
80
80
|
import {
|
|
81
81
|
foxWallet
|
|
82
82
|
} from "./chunk-YLJDPTYF.js";
|
|
83
|
-
import {
|
|
84
|
-
frontierWallet
|
|
85
|
-
} from "./chunk-T5KHVUFR.js";
|
|
86
83
|
import {
|
|
87
84
|
frameWallet
|
|
88
85
|
} from "./chunk-AI55G5DD.js";
|
|
86
|
+
import {
|
|
87
|
+
frontierWallet
|
|
88
|
+
} from "./chunk-T5KHVUFR.js";
|
|
89
89
|
import {
|
|
90
90
|
gateWallet
|
|
91
91
|
} from "./chunk-MRRZOQGZ.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funkit/connect",
|
|
3
|
-
"version": "7.1.0-next.
|
|
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",
|