@funkit/connect 12.3.0 → 12.5.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 +53 -0
- package/dist/backpack-HHGWJLWB.js +7 -0
- package/dist/clients/backpack-HHGWJLWB.js +7 -0
- package/dist/clients/{chunk-27VBRE7W.js → chunk-7GPRX32F.js} +8 -0
- package/dist/clients/{chunk-R6UAC2TB.js → chunk-A2WBB3UO.js} +1 -1
- package/dist/clients/{chunk-A5JW3UI6.js → chunk-ATNOIBW2.js} +1 -1
- package/dist/clients/{chunk-DYV3LRSE.js → chunk-B5KCBBSV.js} +1 -1
- package/dist/clients/{chunk-ECGTOMZQ.js → chunk-XOLUUA5B.js} +2 -2
- package/dist/clients/fanatics.js +2 -2
- package/dist/clients/internal/nado/withdrawalCallback.js +3 -3
- package/dist/clients/internal/nado/withdrawalErrors.js +2 -2
- package/dist/clients/internal/nado/withdrawalForm.js +4 -4
- package/dist/clients/internal/nado/withdrawalStatus.js +3 -3
- package/dist/clients/jupiter-ICN4DJIL.js +7 -0
- package/dist/clients/lighter.js +3 -3
- package/dist/clients/mallard.js +2 -2
- package/dist/clients/nado.js +3 -3
- package/dist/clients/solflare-M46C72WA.js +7 -0
- package/dist/components/FunCheckoutHistory/AddTokenToWalletButton.d.ts +3 -3
- package/dist/components/FunNotification/FunNotification.d.ts +15 -2
- package/dist/components/FunTransactionSummary/PaymentRouteSummary.d.ts +2 -1
- package/dist/components/ModalErrorState/ModalErrorState.d.ts +8 -1
- package/dist/config/getDefaultConfig.d.ts +1 -1
- package/dist/consts/quote.d.ts +13 -13
- package/dist/consts/walletIcons.d.ts +7 -0
- package/dist/domains/checkoutErrors.d.ts +3 -3
- package/dist/domains/relay.d.ts +3 -3
- package/dist/hooks/queries/useMeldLimits.d.ts +2 -1
- package/dist/hooks/track/analytics/events.d.ts +8 -0
- package/dist/hooks/track/analytics/mappers.d.ts +4 -2
- package/dist/hooks/track/analytics/useTrackErrorShown.d.ts +12 -0
- package/dist/hooks/useCheckoutDirectExecution.d.ts +1 -2
- package/dist/hooks/useCheckoutQuoteNotification.d.ts +1 -1
- package/dist/hooks/useConnectedWalletIcons.d.ts +6 -0
- package/dist/hooks/useConnectedWallets.d.ts +12 -0
- package/dist/hooks/usePaymentMethodIcon.d.ts +11 -2
- package/dist/index.js +3536 -2904
- package/dist/interfaces/solanaWallet.d.ts +12 -22
- package/dist/jupiter-ICN4DJIL.js +7 -0
- package/dist/modals/CheckoutModal/ConfirmationStep/usePostCheckout.d.ts +2 -2
- package/dist/modals/CheckoutModal/InputAmount/useMeld.d.ts +2 -2
- package/dist/modals/CheckoutModal/SourceChange/FormOfPaymentsList.d.ts +3 -1
- package/dist/modals/CheckoutModal/VirtualFiatAccount/ErrorScreen.d.ts +2 -2
- package/dist/modals/WithdrawalModal/WithdrawalMethodSelect.d.ts +2 -1
- package/dist/providers/FunkitQuoteContext.d.ts +2 -1
- package/dist/providers/GeneralWalletProvider.d.ts +15 -3
- package/dist/solflare-M46C72WA.js +7 -0
- package/dist/utils/solanaRelayWallet.d.ts +15 -0
- package/dist/utils/swapped.d.ts +2 -0
- package/dist/wallets/walletConnectors/index.js +52 -52
- package/package.json +7 -5
|
@@ -1,10 +1,20 @@
|
|
|
1
|
-
import type { SolanaConnection,
|
|
1
|
+
import type { SolanaConnection, SolanaSigner } from '@funkit/fun-relay';
|
|
2
2
|
interface SolanaWalletBase {
|
|
3
3
|
/**
|
|
4
4
|
* Base58 address of the connected wallet. Ignored, with a warning, if it
|
|
5
5
|
* isn't a valid Solana address.
|
|
6
6
|
*/
|
|
7
7
|
address: string;
|
|
8
|
+
/**
|
|
9
|
+
* Wallet name, e.g. `Phantom`. Picks the icon when none is supplied, and is
|
|
10
|
+
* how funkit recognises the same wallet connected on both ecosystems.
|
|
11
|
+
*/
|
|
12
|
+
name: string;
|
|
13
|
+
/**
|
|
14
|
+
* Icon to show for this wallet, as a URL or data URI. Falls back to a
|
|
15
|
+
* bundled icon for wallets funkit recognises by name, then to a generic one.
|
|
16
|
+
*/
|
|
17
|
+
icon?: string;
|
|
8
18
|
/**
|
|
9
19
|
* The RPC connection funkit submits and confirms through. Use an endpoint
|
|
10
20
|
* you trust for write traffic — Solana's public RPC rejects browser origins.
|
|
@@ -16,31 +26,11 @@ interface SolanaWalletBase {
|
|
|
16
26
|
*/
|
|
17
27
|
disconnect: () => void | Promise<void>;
|
|
18
28
|
}
|
|
19
|
-
interface SolanaSignerMethods {
|
|
20
|
-
/**
|
|
21
|
-
* Sign the transaction and return it — do not submit it. funkit submits, so
|
|
22
|
-
* it can retry the broadcast and capture logs on failure.
|
|
23
|
-
*
|
|
24
|
-
* Always a versioned (v0) transaction, so a wallet that can only sign legacy
|
|
25
|
-
* transactions cannot satisfy this.
|
|
26
|
-
*/
|
|
27
|
-
signTransaction?: SolanaSignTransaction;
|
|
28
|
-
/**
|
|
29
|
-
* For wallets that only offer a combined sign-and-send. funkit prefers
|
|
30
|
-
* {@link SolanaSignerMethods.signTransaction} when both are supplied, since
|
|
31
|
-
* submitting itself is what lets it retry and log failures.
|
|
32
|
-
*/
|
|
33
|
-
signAndSendTransaction?: SolanaSignAndSendTransaction;
|
|
34
|
-
}
|
|
35
29
|
/**
|
|
36
30
|
* A Solana wallet your app already has connected. funkit reads balances,
|
|
37
31
|
* quotes and executes with it — it never creates or connects a wallet itself.
|
|
38
32
|
*
|
|
39
33
|
* At least one signing method is required.
|
|
40
34
|
*/
|
|
41
|
-
export type SolanaWalletConnection = SolanaWalletBase &
|
|
42
|
-
signTransaction: SolanaSignTransaction;
|
|
43
|
-
} | {
|
|
44
|
-
signAndSendTransaction: SolanaSignAndSendTransaction;
|
|
45
|
-
});
|
|
35
|
+
export type SolanaWalletConnection = SolanaWalletBase & SolanaSigner;
|
|
46
36
|
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// src/wallets/walletIcons/jupiter.svg
|
|
4
|
+
var jupiter_default = 'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 33 32"><g clip-path="url(%23a)" filter="url(%23b)"><path fill="url(%23c)" d="M3.09 25.167a16.43 16.43 0 0 0 11.621 6.75c-1.185-1.784-2.907-3.424-5.057-4.673s-4.428-1.931-6.563-2.077Z"/><path fill="url(%23d)" d="M12.543 22.27C8.4 19.864 3.916 19.25.708 20.334c.31 1.024.718 2.015 1.22 2.96 2.787-.065 5.83.692 8.663 2.337 2.832 1.645 4.998 3.915 6.323 6.369 1.07-.033 2.134-.17 3.177-.407-.648-3.323-3.406-6.915-7.548-9.323"/><path fill="url(%23e)" d="M32.285 12.5A16.42 16.42 0 0 0 11.846.627c3.546.434 7.48 1.765 11.34 4.007s6.967 5.001 9.1 7.868Z"/><path fill="url(%23f)" d="M27.127 20.358c-1.815-3.013-4.923-5.9-8.753-8.124s-7.875-3.495-11.389-3.58C3.894 8.582 1.574 9.48.622 11.12l-.02.028q-.126.462-.226.925c1.33-.525 2.87-.817 4.584-.85 3.81-.071 8.073 1.147 12.008 3.433s7.108 5.388 8.932 8.732c.818 1.506 1.329 2.99 1.53 4.407q.355-.315.691-.654l.016-.032c.952-1.641.584-4.101-1.01-6.75Z"/><path fill="url(%23g)" d="M15.46 17.248C9.598 13.842 3.117 13.309 0 15.685q.01 1.119.17 2.224a13 13 0 0 1 2.817-.522c3.483-.262 7.322.709 10.806 2.734s6.23 4.88 7.728 8.033c.414.864.73 1.771.941 2.706a16.4 16.4 0 0 0 2.017-.953c.522-3.886-3.152-9.251-9.018-12.659Z"/><path fill="url(%23h)" d="M30.143 15.314c-1.835-3.01-4.97-5.904-8.827-8.144-3.857-2.239-7.918-3.53-11.443-3.633-2.688-.078-4.77.574-5.848 1.804 4.48-.76 10.392.517 16.121 3.845 5.73 3.329 9.767 7.832 11.326 12.1.534-1.545.07-3.676-1.329-5.972"/></g><defs><linearGradient id="c" x1="21.5" x2="6.667" y1="6.5" y2="32" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="%23c7f284"/><stop offset="1" stop-color="%2300bef0"/></linearGradient><linearGradient id="d" x1="21.5" x2="6.667" y1="6.5" y2="32" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="%23c7f284"/><stop offset="1" stop-color="%2300bef0"/></linearGradient><linearGradient id="e" x1="21.5" x2="6.667" y1="6.5" y2="32" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="%23c7f284"/><stop offset="1" stop-color="%2300bef0"/></linearGradient><linearGradient id="f" x1="21.5" x2="6.667" y1="6.5" y2="32" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="%23c7f284"/><stop offset="1" stop-color="%2300bef0"/></linearGradient><linearGradient id="g" x1="21.5" x2="6.667" y1="6.5" y2="32" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="%23c7f284"/><stop offset="1" stop-color="%2300bef0"/></linearGradient><linearGradient id="h" x1="21.5" x2="6.667" y1="6.5" y2="32" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="%23c7f284"/><stop offset="1" stop-color="%2300bef0"/></linearGradient><clipPath id="a"><path fill="%23fff" d="M0 0h32.285v32H0z"/></clipPath><filter id="b" width="77.775" height="77.49" x="-22.745" y="-20.47" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/><feOffset dy="2.274"/><feGaussianBlur stdDeviation="11.372"/><feComposite in2="hardAlpha" operator="out"/><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"/><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_11565_169621"/><feBlend in="SourceGraphic" in2="effect1_dropShadow_11565_169621" result="shape"/></filter></defs></svg>';
|
|
5
|
+
export {
|
|
6
|
+
jupiter_default as default
|
|
7
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { Address } from 'viem';
|
|
2
2
|
import type { ErrorNotification } from '../../../components/FunNotification/FunNotification';
|
|
3
3
|
import { type PaymentMethodInfo } from '../../../domains/paymentMethods';
|
|
4
|
-
export
|
|
4
|
+
export type PostCheckoutError = ErrorNotification & {
|
|
5
5
|
disableContinue: boolean;
|
|
6
6
|
durationMs?: number;
|
|
7
|
-
}
|
|
7
|
+
};
|
|
8
8
|
export interface PostCheckoutSuccessData {
|
|
9
9
|
depositAddress: Address;
|
|
10
10
|
paymentMethodInfo: PaymentMethodInfo;
|
|
@@ -22,10 +22,10 @@ export declare function useMeld(meldEnabled: boolean, manuallySelectedQuote: Mel
|
|
|
22
22
|
};
|
|
23
23
|
mutateAsync: import("@tanstack/react-query").UseMutateAsyncFunction<import("@funkit/api-base").MeldCreateCryptoWidgetResponse, Error, MeldServiceProvider, unknown>;
|
|
24
24
|
isMeldLinkPending: boolean;
|
|
25
|
-
meldLimitError: {
|
|
25
|
+
meldLimitError: (Pick<ErrorNotification, "code" | "messageKey"> & {
|
|
26
26
|
issue: string;
|
|
27
27
|
suggestion: string;
|
|
28
|
-
} | undefined;
|
|
28
|
+
}) | undefined;
|
|
29
29
|
bestRateQuote: MeldQuote | undefined;
|
|
30
30
|
selectedQuote: MeldQuote | undefined;
|
|
31
31
|
isSelectedQuoteUnavailable: boolean | undefined;
|
|
@@ -8,7 +8,9 @@ interface ListFopsData {
|
|
|
8
8
|
}
|
|
9
9
|
interface FormOfPaymentsListProps {
|
|
10
10
|
fopsData?: GetFopsResponse;
|
|
11
|
+
isCashier?: boolean;
|
|
11
12
|
isLoading: boolean;
|
|
13
|
+
isWithdrawal?: boolean;
|
|
12
14
|
selectedFop?: ListFormOfPayment | null;
|
|
13
15
|
/**
|
|
14
16
|
* Non-Swapped methods (e.g. Cash App Lightning) to interleave into the list.
|
|
@@ -45,5 +47,5 @@ export declare function getFormOfPaymentSections(fopsData: ListFopsData, fopPrio
|
|
|
45
47
|
primary: FormOfPaymentSection;
|
|
46
48
|
secondary: FormOfPaymentSection;
|
|
47
49
|
};
|
|
48
|
-
export declare function FormOfPaymentsList({ fopsData, isLoading, selectedFop, syntheticFops, onSelect, exchangeRatesData, getDisclaimerLimit, enableSourceGroupLabels, isDisabled, isBelowMinimumBalance, cryptoPaymentMethodItem, }: FormOfPaymentsListProps): React.JSX.Element;
|
|
50
|
+
export declare function FormOfPaymentsList({ fopsData, isCashier, isLoading, isWithdrawal, selectedFop, syntheticFops, onSelect, exchangeRatesData, getDisclaimerLimit, enableSourceGroupLabels, isDisabled, isBelowMinimumBalance, cryptoPaymentMethodItem, }: FormOfPaymentsListProps): React.JSX.Element;
|
|
49
51
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, ModalStepInfo } from '../../../modals/CheckoutModal/stepTransition';
|
|
3
3
|
export type ErrorScreenState = CheckoutModalCommonState & {
|
|
4
4
|
errorCode: string;
|
|
5
5
|
};
|
|
6
|
-
export declare const ErrorScreen: () => React.JSX.Element;
|
|
6
|
+
export declare const ErrorScreen: ({ modalState, }: ModalStepComponentProps<FunCheckoutStep.ERROR_SCREEN>) => React.JSX.Element;
|
|
7
7
|
export declare const ErrorScreenInfo: ModalStepInfo<FunCheckoutStep.ERROR_SCREEN>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { SwappedFormOfPayment } from '@funkit/api-base';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
interface WithdrawalMethodSelectProps {
|
|
4
|
+
isCashier?: boolean;
|
|
4
5
|
onCryptoSelect: () => void;
|
|
5
6
|
onCashFopSelect: (fop: SwappedFormOfPayment) => void;
|
|
6
7
|
sourceChainId: string;
|
|
@@ -16,5 +17,5 @@ interface WithdrawalMethodSelectProps {
|
|
|
16
17
|
*/
|
|
17
18
|
hideSectionLabels?: boolean;
|
|
18
19
|
}
|
|
19
|
-
export declare function WithdrawalMethodSelect({ onCryptoSelect, onCashFopSelect, sourceChainId, sourceTokenAddress, usdBalance, hideSectionLabels, }: WithdrawalMethodSelectProps): React.JSX.Element;
|
|
20
|
+
export declare function WithdrawalMethodSelect({ isCashier, onCryptoSelect, onCashFopSelect, sourceChainId, sourceTokenAddress, usdBalance, hideSectionLabels, }: WithdrawalMethodSelectProps): React.JSX.Element;
|
|
20
21
|
export {};
|
|
@@ -2,6 +2,7 @@ import type { Dnum } from 'dnum';
|
|
|
2
2
|
import React, { type Dispatch, type ReactNode } from 'react';
|
|
3
3
|
import type { FunkitCheckoutQuoteResult } from '../domains/quote';
|
|
4
4
|
import { type FunkitActiveCheckoutItem } from './FunkitCheckoutContext';
|
|
5
|
+
import type { DisplayedError } from '../components/FunNotification/FunNotification';
|
|
5
6
|
export type ApprovalMethod = 'approve' | 'sign';
|
|
6
7
|
export declare const APPROVAL_METHOD_DEFAULT: ApprovalMethod;
|
|
7
8
|
export type CheckoutQuoteError = {
|
|
@@ -35,7 +36,7 @@ interface CheckoutQuoteState {
|
|
|
35
36
|
/** The quotation step message **/
|
|
36
37
|
quoteStepMessage: string;
|
|
37
38
|
/** Error messages associated with checkout quote **/
|
|
38
|
-
|
|
39
|
+
quoteError: DisplayedError | null;
|
|
39
40
|
}
|
|
40
41
|
interface FunkitQuoteContextInterface extends CheckoutQuoteState {
|
|
41
42
|
clearCheckoutQuoteMessages: () => void;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { AssetBalanceInfo, SolanaAddress } from '@funkit/api-base';
|
|
2
2
|
import React, { type ReactNode } from 'react';
|
|
3
3
|
import type { Address } from 'viem';
|
|
4
|
+
import type { AsyncImageSrc } from '../components/AsyncImage/useAsyncImage';
|
|
4
5
|
import type { IdentityProvider } from '../interfaces/identity';
|
|
5
6
|
import { type UseDisconnectReturnType, type UseReconnectReturnType } from '../wagmi/hooks';
|
|
6
7
|
import { type FunkitUserInfo } from '../consts/funkit';
|
|
@@ -11,12 +12,23 @@ export interface KnownAssetBalanceInfo extends AssetBalanceInfo {
|
|
|
11
12
|
totalUsdValue: number;
|
|
12
13
|
}
|
|
13
14
|
export { LoginType } from '../utils/userInfo';
|
|
15
|
+
/**
|
|
16
|
+
* A wallet that can pay, with the vendor identity a row needs to name and
|
|
17
|
+
* depict it. Recorded checkouts widen the address, having stored what paid
|
|
18
|
+
* rather than validated it.
|
|
19
|
+
*/
|
|
20
|
+
export interface PayerWallet<TAddress extends string = string> {
|
|
21
|
+
address: TAddress;
|
|
22
|
+
name?: string;
|
|
23
|
+
icon?: string | AsyncImageSrc;
|
|
24
|
+
}
|
|
25
|
+
/** One entry per ecosystem: two entries mean two addresses. */
|
|
14
26
|
export interface CheckoutPayer {
|
|
15
|
-
|
|
16
|
-
|
|
27
|
+
evmWallet: PayerWallet<Address | ''>;
|
|
28
|
+
solanaWallet: PayerWallet<SolanaAddress> | undefined;
|
|
17
29
|
}
|
|
18
30
|
export interface GeneralWalletContextProps {
|
|
19
|
-
walletAddress: CheckoutPayer['
|
|
31
|
+
walletAddress: CheckoutPayer['evmWallet']['address'];
|
|
20
32
|
payerWallets: CheckoutPayer;
|
|
21
33
|
isUserLoggedIn: boolean;
|
|
22
34
|
loginType: LoginType;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// src/wallets/walletIcons/solflare.svg
|
|
4
|
+
var solflare_default = 'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50"><rect width="50" height="50" rx="12" ry="12" style="fill:%23ffef46"/><path d="m24.23 26.42 2.46-2.38 4.59 1.5c3.01 1 4.51 2.84 4.51 5.43 0 1.96-.75 3.26-2.25 4.93l-.46.5.17-1.17c.67-4.26-.58-6.09-4.72-7.43l-4.3-1.38Zm-6.18-14.57 12.52 4.17-2.71 2.59-6.51-2.17c-2.25-.75-3.01-1.96-3.3-4.51v-.08Zm-.75 21.21 2.84-2.71 5.34 1.75c2.8.92 3.76 2.13 3.46 5.18l-11.65-4.22Zm-3.59-12.11c0-.79.42-1.54 1.13-2.17.75 1.09 2.05 2.05 4.09 2.71l4.42 1.46-2.46 2.38-4.34-1.42c-2-.67-2.84-1.67-2.84-2.96m13.11 21.92C36 36.78 40.93 32.64 40.93 27.55c0-3.38-2-5.26-6.43-6.72l-3.34-1.13 9.14-8.77-1.84-1.96-2.71 2.38-12.81-4.22c-3.97 1.29-8.97 5.09-8.97 8.89 0 .42.04.83.17 1.29-3.3 1.88-4.63 3.63-4.63 5.8 0 2.05 1.09 4.09 4.55 5.22l2.75.92-9.52 9.14 1.84 1.96 2.96-2.71 14.73 5.22Z" style="fill:%2302050a;stroke:%23ffef46;stroke-miterlimit:10;stroke-width:.5px"/></svg>';
|
|
5
|
+
export {
|
|
6
|
+
solflare_default as default
|
|
7
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type SolanaSigner, type SolanaWallet } from '@funkit/fun-relay';
|
|
2
|
+
import type { SolanaWalletConnection } from '../interfaces/solanaWallet';
|
|
3
|
+
import type { ValidatedSolanaWallet } from '../providers/SolanaWalletProvider';
|
|
4
|
+
export declare function resolveSigner(wallet: SolanaWalletConnection): SolanaSigner;
|
|
5
|
+
/**
|
|
6
|
+
* Takes a wallet that cleared `SolanaWalletProvider`'s validation: relay's
|
|
7
|
+
* adapter types the payer as a base58 address, not the host's bare string.
|
|
8
|
+
*/
|
|
9
|
+
export declare function createSolanaRelayWallet(wallet: ValidatedSolanaWallet): SolanaWallet;
|
|
10
|
+
/** The relay wallet for a Solana source, or undefined for an EVM one. */
|
|
11
|
+
export declare function resolveSolanaRelayWallet({ sourceChainId, solanaWallet, logPrefix, }: {
|
|
12
|
+
sourceChainId: string;
|
|
13
|
+
solanaWallet: ValidatedSolanaWallet | undefined;
|
|
14
|
+
logPrefix: string;
|
|
15
|
+
}): SolanaWallet | undefined;
|
package/dist/utils/swapped.d.ts
CHANGED
|
@@ -2,6 +2,8 @@ import type { SwappedTheme } from '@funkit/connect-core';
|
|
|
2
2
|
import type { ThemeVars } from '../css/sprinkles.css';
|
|
3
3
|
export { getFormOfPaymentDisplayName, getSavedFormOfPaymentDisplayName, getSavedFormOfPaymentIcon, getSwappedIcon, getSwappedOrigin, isSavedFormOfPaymentType, isSwappedOrigin, SWAPPED_CARD_BRANDS, } from '@funkit/connect-core';
|
|
4
4
|
export type { SwappedTheme };
|
|
5
|
+
/** Rewrites the color functions Swapped can't parse as hex; passes the rest through. */
|
|
6
|
+
export declare function normalizeSwappedColor(value: string): string;
|
|
5
7
|
export declare function resolveCssValue(value: string, scope: Element | null): string;
|
|
6
8
|
export declare function resolveObjectCssVars<T extends object>(obj: T, scope: Element | null): T;
|
|
7
9
|
/**
|
|
@@ -20,36 +20,36 @@ import {
|
|
|
20
20
|
import {
|
|
21
21
|
tokenPocketWallet
|
|
22
22
|
} from "./chunk-KE4CWI3A.js";
|
|
23
|
-
import {
|
|
24
|
-
tokenaryWallet
|
|
25
|
-
} from "./chunk-TPM5PUJD.js";
|
|
26
23
|
import {
|
|
27
24
|
trustWallet
|
|
28
25
|
} from "./chunk-PPQ6L4K2.js";
|
|
29
|
-
import {
|
|
30
|
-
uniswapWallet
|
|
31
|
-
} from "./chunk-UNDWHCDH.js";
|
|
32
26
|
import {
|
|
33
27
|
walletConnectWallet
|
|
34
28
|
} from "./chunk-DUX4XCDV.js";
|
|
35
29
|
import {
|
|
36
|
-
|
|
37
|
-
} from "./chunk-
|
|
30
|
+
tokenaryWallet
|
|
31
|
+
} from "./chunk-TPM5PUJD.js";
|
|
38
32
|
import {
|
|
39
|
-
|
|
40
|
-
} from "./chunk-
|
|
33
|
+
uniswapWallet
|
|
34
|
+
} from "./chunk-UNDWHCDH.js";
|
|
41
35
|
import {
|
|
42
|
-
|
|
43
|
-
} from "./chunk-
|
|
36
|
+
oneInchWallet
|
|
37
|
+
} from "./chunk-GFS2AVAH.js";
|
|
44
38
|
import {
|
|
45
|
-
|
|
46
|
-
} from "./chunk-
|
|
39
|
+
bifrostWallet
|
|
40
|
+
} from "./chunk-TM7UBV3Q.js";
|
|
41
|
+
import {
|
|
42
|
+
bitskiWallet
|
|
43
|
+
} from "./chunk-NPITCCJE.js";
|
|
47
44
|
import {
|
|
48
45
|
ramperWallet
|
|
49
46
|
} from "./chunk-GPXIBTWN.js";
|
|
50
47
|
import {
|
|
51
48
|
safeWallet
|
|
52
49
|
} from "./chunk-IR3PJMVM.js";
|
|
50
|
+
import {
|
|
51
|
+
roninWallet
|
|
52
|
+
} from "./chunk-RJF2YEZ5.js";
|
|
53
53
|
import {
|
|
54
54
|
safeheronWallet
|
|
55
55
|
} from "./chunk-UN3ONVNC.js";
|
|
@@ -57,38 +57,32 @@ import {
|
|
|
57
57
|
safepalWallet
|
|
58
58
|
} from "./chunk-MWB6LFSG.js";
|
|
59
59
|
import {
|
|
60
|
-
|
|
61
|
-
} from "./chunk-
|
|
62
|
-
import {
|
|
63
|
-
metaMaskWallet
|
|
64
|
-
} from "./chunk-ANODOMIN.js";
|
|
65
|
-
import {
|
|
66
|
-
mewWallet
|
|
67
|
-
} from "./chunk-DSPQXAB2.js";
|
|
60
|
+
oktoWallet
|
|
61
|
+
} from "./chunk-V4M3SNPS.js";
|
|
68
62
|
import {
|
|
69
63
|
okxWallet
|
|
70
64
|
} from "./chunk-53MYTA42.js";
|
|
71
65
|
import {
|
|
72
|
-
|
|
73
|
-
} from "./chunk-
|
|
66
|
+
argentWallet
|
|
67
|
+
} from "./chunk-XSDTNMQY.js";
|
|
74
68
|
import {
|
|
75
69
|
omniWallet
|
|
76
70
|
} from "./chunk-2TAUCVX7.js";
|
|
77
71
|
import {
|
|
78
|
-
|
|
79
|
-
} from "./chunk-
|
|
72
|
+
phantomWallet
|
|
73
|
+
} from "./chunk-Q27YVDDH.js";
|
|
74
|
+
import {
|
|
75
|
+
rabbyWallet
|
|
76
|
+
} from "./chunk-RQ2GXOJL.js";
|
|
80
77
|
import {
|
|
81
78
|
oneKeyWallet
|
|
82
79
|
} from "./chunk-KN32ITJ7.js";
|
|
83
80
|
import {
|
|
84
|
-
|
|
85
|
-
} from "./chunk-
|
|
86
|
-
import {
|
|
87
|
-
foxWallet
|
|
88
|
-
} from "./chunk-F45CUFRR.js";
|
|
81
|
+
rainbowWallet
|
|
82
|
+
} from "./chunk-65ULY6OC.js";
|
|
89
83
|
import {
|
|
90
|
-
|
|
91
|
-
} from "./chunk-
|
|
84
|
+
gateWallet
|
|
85
|
+
} from "./chunk-FYPQ3HP4.js";
|
|
92
86
|
import {
|
|
93
87
|
frontierWallet
|
|
94
88
|
} from "./chunk-ASTCNVJC.js";
|
|
@@ -102,20 +96,17 @@ import {
|
|
|
102
96
|
kresusWallet
|
|
103
97
|
} from "./chunk-V77ATGZT.js";
|
|
104
98
|
import {
|
|
105
|
-
|
|
106
|
-
} from "./chunk-
|
|
99
|
+
ledgerWallet
|
|
100
|
+
} from "./chunk-BL4OC2EJ.js";
|
|
107
101
|
import {
|
|
108
|
-
|
|
109
|
-
} from "./chunk-
|
|
102
|
+
metaMaskWallet
|
|
103
|
+
} from "./chunk-ANODOMIN.js";
|
|
110
104
|
import {
|
|
111
|
-
|
|
112
|
-
} from "./chunk-
|
|
105
|
+
mewWallet
|
|
106
|
+
} from "./chunk-DSPQXAB2.js";
|
|
113
107
|
import {
|
|
114
108
|
coinbaseWallet
|
|
115
109
|
} from "./chunk-SM2A3OSG.js";
|
|
116
|
-
import {
|
|
117
|
-
braveWallet
|
|
118
|
-
} from "./chunk-U2XXV45G.js";
|
|
119
110
|
import {
|
|
120
111
|
coreWallet
|
|
121
112
|
} from "./chunk-TIHTQ3OB.js";
|
|
@@ -125,30 +116,39 @@ import {
|
|
|
125
116
|
import {
|
|
126
117
|
dawnWallet
|
|
127
118
|
} from "./chunk-LV6YV3DE.js";
|
|
119
|
+
import {
|
|
120
|
+
desigWallet
|
|
121
|
+
} from "./chunk-DFHP75HV.js";
|
|
128
122
|
import {
|
|
129
123
|
enkryptWallet
|
|
130
124
|
} from "./chunk-Z6LDN2AN.js";
|
|
131
125
|
import {
|
|
132
|
-
|
|
133
|
-
} from "./chunk-
|
|
134
|
-
import {
|
|
135
|
-
bifrostWallet
|
|
136
|
-
} from "./chunk-TM7UBV3Q.js";
|
|
137
|
-
import {
|
|
138
|
-
bitskiWallet
|
|
139
|
-
} from "./chunk-NPITCCJE.js";
|
|
126
|
+
foxWallet
|
|
127
|
+
} from "./chunk-F45CUFRR.js";
|
|
140
128
|
import {
|
|
141
|
-
|
|
142
|
-
} from "./chunk-
|
|
129
|
+
frameWallet
|
|
130
|
+
} from "./chunk-B572YIAQ.js";
|
|
143
131
|
import {
|
|
144
132
|
bitgetWallet
|
|
145
133
|
} from "./chunk-USLZMUJ3.js";
|
|
146
134
|
import {
|
|
147
135
|
bloomWallet
|
|
148
136
|
} from "./chunk-PNHDOC77.js";
|
|
137
|
+
import {
|
|
138
|
+
braveWallet
|
|
139
|
+
} from "./chunk-U2XXV45G.js";
|
|
149
140
|
import {
|
|
150
141
|
bybitWallet
|
|
151
142
|
} from "./chunk-IWPW26AL.js";
|
|
143
|
+
import {
|
|
144
|
+
clvWallet
|
|
145
|
+
} from "./chunk-JJBLW4IU.js";
|
|
146
|
+
import {
|
|
147
|
+
bitverseWallet
|
|
148
|
+
} from "./chunk-5AEWIKRA.js";
|
|
149
|
+
import {
|
|
150
|
+
coin98Wallet
|
|
151
|
+
} from "./chunk-RQYEGJKL.js";
|
|
152
152
|
import "./chunk-EYWGX5LT.js";
|
|
153
153
|
import "./chunk-AALSJCUR.js";
|
|
154
154
|
import "./chunk-B454LLKJ.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funkit/connect",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.5.0",
|
|
4
4
|
"description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -60,6 +60,7 @@
|
|
|
60
60
|
"@testing-library/jest-dom": "^6.2.0",
|
|
61
61
|
"@testing-library/react": "^16.3.2",
|
|
62
62
|
"@testing-library/user-event": "^14.5.2",
|
|
63
|
+
"@types/chroma-js": "^3.1.2",
|
|
63
64
|
"@types/qrcode": "^1.5.5",
|
|
64
65
|
"@types/ua-parser-js": "^0.7.39",
|
|
65
66
|
"@vanilla-extract/css-utils": "^0.1.4",
|
|
@@ -100,6 +101,7 @@
|
|
|
100
101
|
"@vanilla-extract/css": "1.15.3",
|
|
101
102
|
"@vanilla-extract/dynamic": "2.1.0",
|
|
102
103
|
"@vanilla-extract/sprinkles": "1.6.1",
|
|
104
|
+
"chroma-js": "3.2.0",
|
|
103
105
|
"clsx": "2.1.1",
|
|
104
106
|
"dnum": "2.17.0",
|
|
105
107
|
"i18next": "25.6.2",
|
|
@@ -111,11 +113,11 @@
|
|
|
111
113
|
"ua-parser-js": "^1.0.37",
|
|
112
114
|
"use-debounce": "^10.0.5",
|
|
113
115
|
"uuid": "^11.1.1",
|
|
114
|
-
"@funkit/api-base": "8.
|
|
115
|
-
"@funkit/chains": "2.
|
|
116
|
-
"@funkit/fun-relay": "
|
|
116
|
+
"@funkit/api-base": "8.3.0",
|
|
117
|
+
"@funkit/chains": "2.4.0",
|
|
118
|
+
"@funkit/fun-relay": "3.0.0",
|
|
117
119
|
"@funkit/utils": "4.0.3",
|
|
118
|
-
"@funkit/connect-core": "
|
|
120
|
+
"@funkit/connect-core": "7.0.0"
|
|
119
121
|
},
|
|
120
122
|
"repository": {
|
|
121
123
|
"type": "git",
|