@funkit/connect 13.1.1 → 13.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.
- package/CHANGELOG.md +94 -0
- package/dist/{chunk-53FF4ZHH.js → chunk-SJ7E3DKC.js} +6 -0
- package/dist/{chunk-2RND3WWH.js → chunk-V4VFNIG4.js} +6 -0
- package/dist/clients/aave.d.ts +1 -1
- package/dist/clients/{chunk-44LV4GCX.js → chunk-2INCUCQQ.js} +1 -0
- package/dist/clients/chunk-6JL6PF5P.js +22 -0
- package/dist/clients/chunk-747THMHY.js +185 -0
- package/dist/clients/{chunk-Q4JGDB4L.js → chunk-BMU5EYUJ.js} +8 -24
- package/dist/clients/{chunk-T6YNXIOS.js → chunk-HBW7AZUH.js} +7 -5
- package/dist/clients/{chunk-ZBBYOJWK.js → chunk-KDZFZETH.js} +176 -0
- package/dist/clients/{chunk-D6EY2WW4.js → chunk-PVBHWD47.js} +1 -1
- package/dist/clients/chunk-RNTQ7KEL.js +76 -0
- package/dist/clients/{chunk-ZEXIDBIZ.js → chunk-RTHDOT5K.js} +1 -1
- package/dist/clients/{chunk-AJGDTTRJ.js → chunk-SKYQYPX5.js} +58 -2
- package/dist/clients/{chunk-NNMZMHO6.js → chunk-Z6FHIDTD.js} +5 -5
- package/dist/clients/fanatics.css +3136 -2947
- package/dist/clients/fanatics.js +1 -1
- package/dist/clients/internal/nado/withdrawalCallback.js +4 -4
- package/dist/clients/internal/nado/withdrawalErrors.js +2 -2
- package/dist/clients/internal/nado/withdrawalForm.js +12 -77
- package/dist/clients/internal/nado/withdrawalStatus.css +18233 -0
- package/dist/clients/internal/nado/withdrawalStatus.js +218 -20
- package/dist/clients/lighter.css +3519 -2947
- package/dist/clients/lighter.js +5 -7
- package/dist/clients/mallard.d.ts +24 -3
- package/dist/clients/mallard.js +7 -3
- package/dist/clients/nado.js +4 -4
- package/dist/clients/polymarket/createPolymarketDepositConfig.js +4 -3
- package/dist/clients/polymarket/index.js +9 -7
- package/dist/clients/polymarket/polymarket.js +6 -4
- package/dist/components/Box/Box.d.ts +18 -18
- package/dist/components/Dropdown/BaseDropdownItem.d.ts +1 -1
- package/dist/components/FunAsset/FunAssetItem.d.ts +3 -1
- package/dist/components/FunBadge/FunBadge.d.ts +1 -1
- package/dist/components/FunTransactionSummary/PaymentFeesSummary.d.ts +2 -3
- package/dist/components/FunTransactionSummary/PaymentFeesSummary.track.d.ts +2 -3
- package/dist/components/ModalErrorState/ModalErrorState.d.ts +2 -3
- package/dist/consts/customers.d.ts +1 -1
- package/dist/consts/polymarket.d.ts +1 -1
- package/dist/css/sprinkles.css.d.ts +24 -18
- package/dist/domains/clientMetadata.d.ts +2 -1
- package/dist/domains/convert/hostTimeout.d.ts +1 -1
- package/dist/domains/destinationAssetBalance.d.ts +1 -1
- package/dist/hooks/queries/useWithdrawalQuote.d.ts +2 -3
- package/dist/hooks/statsig/index.d.ts +1 -0
- package/dist/hooks/track/analytics/mappers.d.ts +11 -1
- package/dist/hooks/track/analytics/swappedErrorCode.d.ts +1 -0
- package/dist/hooks/track/analytics/useTrackErrorShown.d.ts +2 -3
- package/dist/hooks/useConvertBalances.d.ts +6 -1
- package/dist/hooks/useFunkitMaxCheckoutUsdInfo.d.ts +3 -3
- package/dist/hooks/useHostDepositSettlement.d.ts +12 -0
- package/dist/hooks/useModalStateValueWithProp.d.ts +1 -1
- package/dist/hooks/useRefreshBalancesOnDeposit.d.ts +20 -0
- package/dist/index.css +3519 -2947
- package/dist/index.d.ts +3 -1
- package/dist/index.js +6179 -3864
- package/dist/interfaces/solanaWallet.d.ts +2 -2
- package/dist/modals/CheckoutModal/FiatV2/FiatV2Step.d.ts +19 -0
- package/dist/modals/CheckoutModal/FiatV2/fiatV2DepositInputs.d.ts +38 -0
- package/dist/modals/CheckoutModal/FiatV2/fiatV2PaymentSelectionEffects.d.ts +26 -0
- package/dist/modals/CheckoutModal/FiatV2/useFiatV2DepositInputs.d.ts +6 -0
- package/dist/modals/CheckoutModal/FiatV2/useFiatV2PaymentSelectionHost.d.ts +22 -0
- package/dist/modals/CheckoutModal/FiatV2/useFiatV2Text.d.ts +7 -0
- package/dist/modals/CheckoutModal/FunCheckoutStep.d.ts +3 -1
- package/dist/modals/CheckoutModal/InputAmount/useCheckoutAmountLimits.d.ts +3 -3
- package/dist/modals/CheckoutModal/SourceChange/AddCardItem.d.ts +9 -0
- package/dist/modals/CheckoutModal/SourceChange/SourceChange.d.ts +5 -0
- package/dist/modals/CheckoutModal/SourceChange/fiatV2Reroute.d.ts +24 -0
- package/dist/modals/CheckoutModal/SourceChange/useAddCardRow.d.ts +13 -0
- package/dist/modals/CheckoutModal/SourceChange/useFiatV2Entry.d.ts +21 -0
- package/dist/modals/CheckoutModal/stepTransition.d.ts +3 -0
- package/dist/modals/PolymarketPerpsTransfer/TransferActionButton.d.ts +5 -5
- package/dist/modals/WithdrawalModal/WithdrawalContent.d.ts +2 -3
- package/dist/providers/FunSessionContext.d.ts +20 -0
- package/dist/providers/FunkitCheckoutContext/index.d.ts +7 -1
- package/dist/providers/FunkitCheckoutContext/types.d.ts +30 -0
- package/dist/providers/FunkitProvider.d.ts +7 -0
- package/dist/providers/FunkitQuoteContext.track.d.ts +2 -3
- package/dist/providers/FunkitThemeProvider.d.ts +9 -0
- package/dist/shadow-css.js +1 -1
- package/dist/themes/darkTheme.js +1 -1
- package/dist/themes/lightTheme.js +1 -1
- package/dist/utils/checkout.d.ts +2 -2
- package/dist/utils/localStorageFunSessionStorage.d.ts +9 -0
- package/dist/v2/components/PrimaryButton.css.d.ts +5 -0
- package/dist/v2/components/PrimaryButton.d.ts +16 -0
- package/dist/v2/components/Sheet.css.d.ts +13 -0
- package/dist/v2/components/Sheet.d.ts +23 -0
- package/dist/v2/components/Spinner.css.d.ts +2 -0
- package/dist/v2/components/Spinner.d.ts +6 -0
- package/dist/v2/flows/fiat/FiatDepositGate.d.ts +20 -0
- package/dist/v2/flows/fiat/FiatScreenPicker.d.ts +37 -0
- package/dist/v2/flows/funLogin/FunLoginScreenPicker.d.ts +30 -0
- package/dist/v2/screens/amount/AmountDisplay.css.d.ts +5 -0
- package/dist/v2/screens/amount/AmountDisplay.d.ts +15 -0
- package/dist/v2/screens/amount/AmountScreen.css.d.ts +2 -0
- package/dist/v2/screens/amount/AmountScreen.d.ts +37 -0
- package/dist/v2/screens/amount/PresetButton.css.d.ts +1 -0
- package/dist/v2/screens/amount/PresetButton.d.ts +9 -0
- package/dist/v2/screens/amount/fittedText/useFittedText.d.ts +19 -0
- package/dist/v2/screens/amount/fittedText/useIsomorphicEffect.d.ts +2 -0
- package/dist/v2/screens/amount/fittedText/useTextMeasurer.d.ts +3 -0
- package/dist/v2/screens/amount/typedAmount/amountText.d.ts +37 -0
- package/dist/v2/screens/amount/typedAmount/attachInputNormalization.d.ts +1 -0
- package/dist/v2/screens/fiat/FiatPlaceholderScreen.d.ts +9 -0
- package/dist/v2/screens/funLogin/FunLoginCodeScreen.d.ts +35 -0
- package/dist/v2/screens/funLogin/FunLoginEmailScreen.d.ts +26 -0
- package/dist/v2/screens/funLogin/FunLoginScreen.css.d.ts +20 -0
- package/dist/v2/screens/funLogin/looksLikeEmail.d.ts +5 -0
- package/dist/v2/theme/colors.d.ts +28 -0
- package/dist/v2/theme/fonts.d.ts +9 -0
- package/dist/v2/theme/radii.d.ts +6 -0
- package/dist/wallets/walletConnectors/index.js +39 -39
- package/package.json +4 -4
- package/dist/clients/chunk-JXTKKLVA.js +0 -185
- package/dist/clients/chunk-PZSKO3BJ.js +0 -60
- package/dist/components/FunPayments/icons/coinbase.d.ts +0 -5
|
@@ -2,8 +2,7 @@ import React, { type ReactNode } from 'react';
|
|
|
2
2
|
import type { CheckoutFees } from '../../domains/fees';
|
|
3
3
|
import type { FunkitCheckoutQuoteResult } from '../../domains/quote';
|
|
4
4
|
import { type FunTooltipProps } from '../FunTooltip/FunTooltip';
|
|
5
|
-
import type {
|
|
6
|
-
import type { WithdrawalModalStep } from '../../modals/WithdrawalModal/types';
|
|
5
|
+
import type { AnalyticsNamedStep } from '../../hooks/track/analytics/mappers';
|
|
7
6
|
export declare const NO_DATA_VALUE = "-";
|
|
8
7
|
interface PaymentFeesSummaryProps {
|
|
9
8
|
isLoading: boolean;
|
|
@@ -14,7 +13,7 @@ interface PaymentFeesSummaryProps {
|
|
|
14
13
|
valuesNotAvailable?: boolean;
|
|
15
14
|
isWithdrawal: boolean;
|
|
16
15
|
extraSourceChainGasUsd?: number;
|
|
17
|
-
step:
|
|
16
|
+
step: AnalyticsNamedStep;
|
|
18
17
|
/**
|
|
19
18
|
* Integrator rows rendered before the SDK's own rows.
|
|
20
19
|
* - Display-only: excluded from the total, expandability and analytics.
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import type { PaymentMethodInfo } from '../../domains/paymentMethods';
|
|
2
2
|
import type { FunkitCheckoutQuoteResult } from '../../domains/quote';
|
|
3
3
|
import type { TransactionBreakdownClickedProperties } from '../../hooks/track/analytics/events';
|
|
4
|
+
import { type AnalyticsNamedStep } from '../../hooks/track/analytics/mappers';
|
|
4
5
|
import type { TrackEventData } from '../../hooks/track/useTrack';
|
|
5
6
|
import type { FunkitActiveCheckoutItem } from '../../providers/FunkitCheckoutContext';
|
|
6
7
|
import type { FeeItem } from './PaymentFeesSummary';
|
|
7
|
-
import type { FunCheckoutStep } from '../../modals/CheckoutModal/FunCheckoutStep';
|
|
8
|
-
import type { WithdrawalModalStep } from '../../modals/WithdrawalModal/types';
|
|
9
8
|
export declare function buildTransactionBreakdownClickedProperties({ connectorId, extraSourceChainGasUsd, paymentMethodInfo, quote, step, }: {
|
|
10
9
|
connectorId: string | undefined;
|
|
11
10
|
extraSourceChainGasUsd: number;
|
|
12
11
|
paymentMethodInfo: PaymentMethodInfo;
|
|
13
12
|
quote: FunkitCheckoutQuoteResult | null | undefined;
|
|
14
|
-
step:
|
|
13
|
+
step: AnalyticsNamedStep;
|
|
15
14
|
}): TransactionBreakdownClickedProperties;
|
|
16
15
|
export declare const trackEventFromPaymentFeesSummary: (checkoutItem: FunkitActiveCheckoutItem, feeItems: FeeItem[], isWithdrawal: boolean) => TrackEventData;
|
|
@@ -2,8 +2,7 @@ import React, { type ReactNode } from 'react';
|
|
|
2
2
|
import { type BoxProps } from '../Box/Box';
|
|
3
3
|
import type { ErrorNotification } from '../FunNotification/FunNotification';
|
|
4
4
|
import type { AnalyticsFlow } from '../../hooks/track/analytics/events';
|
|
5
|
-
import type {
|
|
6
|
-
import type { WithdrawalModalStep } from '../../modals/WithdrawalModal/types';
|
|
5
|
+
import type { AnalyticsNamedStep } from '../../hooks/track/analytics/mappers';
|
|
7
6
|
interface ModalErrorStateProps {
|
|
8
7
|
/** Icon rendered inside a 32×32 circular `offBackground` container. Defaults to a filled InfoIcon. */
|
|
9
8
|
icon?: ReactNode;
|
|
@@ -17,7 +16,7 @@ interface ModalErrorStateProps {
|
|
|
17
16
|
/** Optional style for the container. */
|
|
18
17
|
style?: React.CSSProperties;
|
|
19
18
|
flow: AnalyticsFlow;
|
|
20
|
-
step:
|
|
19
|
+
step: AnalyticsNamedStep;
|
|
21
20
|
track: Omit<ErrorNotification, 'message'> | null;
|
|
22
21
|
}
|
|
23
22
|
/**
|
|
@@ -47,7 +47,7 @@ export declare function isLighterEthSpot(apiKey: string, checkoutConfig: FunkitC
|
|
|
47
47
|
* even when they share the same target token (the mainnet USDC new-user routes).
|
|
48
48
|
*
|
|
49
49
|
* Used to scope the token-entry-by-default treatment to spot deposits only —
|
|
50
|
-
* perps deposits always open in fiat. A route without a
|
|
50
|
+
* perps deposits always open in fiat. A route without a recognizable spot id
|
|
51
51
|
* is treated as non-spot (the safe, fiat default).
|
|
52
52
|
*/
|
|
53
53
|
export declare function isLighterSpot(apiKey: string, checkoutConfig: Pick<FunkitCheckoutConfig, 'dynamicRoutingId'> | undefined): boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Address } from 'viem';
|
|
2
|
-
/** Action type
|
|
2
|
+
/** Action type signaling a Polymarket Perps deposit (USDC.e → pUSD → Perps). */
|
|
3
3
|
export declare const POLYMARKET_PERPS_DEPOSIT_ACTION_TYPE = "POLYMARKET_PERPS_DEPOSIT";
|
|
4
4
|
/**
|
|
5
5
|
* Polymarket pUSD on Polygon. Perps deposits must land in pUSD on-chain, so
|