@funkit/connect 12.18.1 → 12.20.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 +46 -0
- package/dist/clients/{chunk-FOXMRDKD.js → chunk-2BBOZQLZ.js} +1 -1
- package/dist/clients/{chunk-FLREOB24.js → chunk-5NYKSTGH.js} +1 -1
- package/dist/clients/{chunk-AHYOV7AV.js → chunk-GTPMJGCF.js} +1 -1
- package/dist/clients/{chunk-RQALGV5U.js → chunk-N46CL4ZT.js} +1 -1
- package/dist/clients/{chunk-R25GIAD5.js → chunk-PZSKO3BJ.js} +1 -0
- package/dist/clients/{chunk-YSAAJSWT.js → chunk-R5VAX6YA.js} +8 -0
- package/dist/clients/{chunk-L6JL2XJY.js → chunk-TFIJZTGQ.js} +1 -1
- package/dist/clients/{chunk-G6A62MZO.js → chunk-TLFE74BL.js} +6 -6
- package/dist/clients/{chunk-AELXD5XA.js → chunk-VFKEUHZT.js} +1 -1
- package/dist/clients/{chunk-IUVVGGP4.js → chunk-Y7ONHWCW.js} +2 -2
- package/dist/clients/fanatics.js +4 -4
- package/dist/clients/internal/nado/withdrawalCallback.js +5 -5
- package/dist/clients/internal/nado/withdrawalErrors.js +2 -2
- package/dist/clients/internal/nado/withdrawalForm.js +5 -5
- package/dist/clients/internal/nado/withdrawalStatus.js +4 -4
- package/dist/clients/lighter.css +8 -1
- package/dist/clients/lighter.js +6 -6
- package/dist/clients/lighterRh.d.ts +44 -0
- package/dist/clients/lighterRh.js +51 -0
- package/dist/clients/mallard.js +3 -3
- package/dist/clients/nado.js +5 -5
- package/dist/clients/polymarket/createPolymarketDepositConfig.js +3 -3
- package/dist/clients/polymarket/index.js +3 -3
- package/dist/clients/polymarket/polymarket.js +2 -2
- package/dist/clients/solana-transfer.d.ts +1 -0
- package/dist/clients/solana-transfer.js +13 -0
- package/dist/components/FunTransactionSummary/PaymentFeesSummary.d.ts +3 -1
- package/dist/components/TokenSwapWidget/TokenSelectButton/TokenSelectButton.d.ts +1 -1
- package/dist/components/TokenSwapWidget/TokenSwapCard/TokenSwapCard.d.ts +14 -4
- package/dist/components/TokenSwapWidget/TokenSwapPercentOptions/TokenSwapPercentOptions.d.ts +9 -0
- package/dist/components/TokenSwapWidget/TokenSwapWidget.d.ts +4 -2
- package/dist/components/TokenSwapWidget/TokenSwapWidgetSkeleton/TokenSwapWidgetSkeleton.d.ts +3 -0
- package/dist/consts/customers.d.ts +5 -1
- package/dist/domains/bridge.d.ts +1 -2
- package/dist/domains/convert/assets.d.ts +32 -0
- package/dist/domains/convert/inputAmount.d.ts +24 -21
- package/dist/domains/convert/reducer.d.ts +11 -6
- package/dist/domains/convert/screen.d.ts +6 -1
- package/dist/domains/convert/view.d.ts +4 -0
- package/dist/index.css +8 -1
- package/dist/index.js +1336 -1160
- package/dist/modals/CheckoutModal/Convert/ConvertAssetList.d.ts +1 -1
- package/dist/modals/CheckoutModal/Convert/ConvertAssetRow.d.ts +1 -14
- package/dist/modals/CheckoutModal/Convert/ConvertSelectDestinationStep.d.ts +5 -2
- package/dist/modals/CheckoutModal/Convert/ConvertSelectSourceStep.d.ts +0 -12
- package/dist/providers/ConvertProvider.d.ts +2 -0
- package/dist/shadow-css.js +1 -1
- package/dist/wallets/walletConnectors/index.js +40 -40
- package/package.json +10 -5
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ConvertAssetListStatus } from '../../../domains/convert/assets';
|
|
3
|
-
import {
|
|
3
|
+
import type { ConvertAssetOption } from '../../../domains/convert/assets';
|
|
4
4
|
interface ConvertAssetListProps {
|
|
5
5
|
status: ConvertAssetListStatus;
|
|
6
6
|
options: ConvertAssetOption[];
|
|
@@ -1,18 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import type { ConvertResolvedAsset } from '../../../domains/convert/types';
|
|
4
|
-
/** One row on a Convert token screen. */
|
|
5
|
-
export interface ConvertAssetOption {
|
|
6
|
-
asset: ConvertResolvedAsset;
|
|
7
|
-
key: string;
|
|
8
|
-
/** `undefined` until the first balance read lands. */
|
|
9
|
-
balance: ConvertBalanceState | undefined;
|
|
10
|
-
/** The balance in USD; `undefined` when the balance is unknown. */
|
|
11
|
-
usdAmount: number | undefined;
|
|
12
|
-
isDisabled: boolean;
|
|
13
|
-
/** Worth less than the minimum Convert quotes, so it can't be a source. */
|
|
14
|
-
isBelowMinimum?: boolean;
|
|
15
|
-
}
|
|
2
|
+
import type { ConvertAssetOption } from '../../../domains/convert/assets';
|
|
16
3
|
/** A Convert asset, drawn as a row of the checkout's wallet asset list. */
|
|
17
4
|
export declare function ConvertAssetRow({ option, isSelected, onSelect, }: {
|
|
18
5
|
option: ConvertAssetOption;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { type ConvertAssetOption } from '../../../domains/convert/assets';
|
|
1
2
|
import { type ConvertBalances } from '../../../domains/convert/balances';
|
|
2
3
|
import type { ConvertRecipientAddresses, ConvertResolvedAsset } from '../../../domains/convert/types';
|
|
3
4
|
import { FunCheckoutStep } from '../FunCheckoutStep';
|
|
4
5
|
import type { ModalStepInfo } from '../stepTransition';
|
|
5
6
|
import { type CheckoutModalCommonState } from '../stepTransition.shared';
|
|
6
|
-
import type { ConvertAssetOption } from './ConvertAssetRow';
|
|
7
7
|
export type ConvertSelectDestinationState = CheckoutModalCommonState;
|
|
8
8
|
export type ConvertSelectDestinationNext = Record<never, never>;
|
|
9
9
|
/** Destination chains in the host's order, without a chain whose only token is the source. */
|
|
@@ -19,7 +19,10 @@ export declare function getInitialDestinationChainId({ chainIds, destinationAsse
|
|
|
19
19
|
chainIds: string[];
|
|
20
20
|
destinationAsset: ConvertResolvedAsset | undefined;
|
|
21
21
|
}): string | undefined;
|
|
22
|
-
/**
|
|
22
|
+
/**
|
|
23
|
+
* One chain's destination rows without the source: held tokens by USD value,
|
|
24
|
+
* then the rest in the host's order.
|
|
25
|
+
*/
|
|
23
26
|
export declare function getConvertDestinationOptions({ assets, balances, chainId, sourceKey, recipientAddresses, }: {
|
|
24
27
|
assets: ConvertResolvedAsset[];
|
|
25
28
|
balances: ConvertBalances | undefined;
|
|
@@ -1,18 +1,6 @@
|
|
|
1
|
-
import { type ConvertBalances } from '../../../domains/convert/balances';
|
|
2
|
-
import type { ConvertResolvedAsset } from '../../../domains/convert/types';
|
|
3
1
|
import { FunCheckoutStep } from '../FunCheckoutStep';
|
|
4
2
|
import type { ModalStepInfo } from '../stepTransition';
|
|
5
3
|
import { type CheckoutModalCommonState } from '../stepTransition.shared';
|
|
6
|
-
import type { ConvertAssetOption } from './ConvertAssetRow';
|
|
7
4
|
export type ConvertSelectSourceState = CheckoutModalCommonState;
|
|
8
5
|
export type ConvertSelectSourceNext = Record<never, never>;
|
|
9
|
-
/**
|
|
10
|
-
* The source screen's rows: held tokens by USD value, disabled ones last.
|
|
11
|
-
* - Under the $1 minimum is disabled ("Low Balance"): Relay won't quote it.
|
|
12
|
-
* - An unreadable balance stays listed but disabled, so funds never look gone.
|
|
13
|
-
*/
|
|
14
|
-
export declare function getConvertSourceOptions({ assets, balances, }: {
|
|
15
|
-
assets: ConvertResolvedAsset[];
|
|
16
|
-
balances: ConvertBalances;
|
|
17
|
-
}): ConvertAssetOption[];
|
|
18
6
|
export declare const ConvertSelectSourceStepInfo: ModalStepInfo<FunCheckoutStep.CONVERT_SELECT_SOURCE>;
|
|
@@ -14,6 +14,8 @@ export interface ConvertContextValue {
|
|
|
14
14
|
/** Flips USD and token entry at the live price. */
|
|
15
15
|
toggleUnit: () => void;
|
|
16
16
|
setMax: (maxBaseUnits: bigint) => void;
|
|
17
|
+
/** Fills a share of the source balance; 100 is Max. */
|
|
18
|
+
selectPercent: (percent: number) => void;
|
|
17
19
|
/** Keys are `convertAssetKey`s. A different source drops the amount. */
|
|
18
20
|
pickSource: (sourceKey: string) => void;
|
|
19
21
|
pickDestination: (destinationKey: string) => void;
|