@funkit/connect 5.3.5 → 5.4.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 +37 -0
- package/dist/{chunk-CRTRMZFT.js → chunk-ICCAQZHZ.js} +1 -1
- package/dist/{chunk-CRPOYQ6X.js → chunk-R2UFCJL7.js} +5 -0
- package/dist/{chunk-KCSHTK5R.js → chunk-RN4I4Y57.js} +1 -1
- package/dist/components/Box/Box.d.ts +1 -1
- package/dist/components/Dropdown/ChainDropdown.d.ts +6 -3
- package/dist/components/Dropdown/TokenDropdown.d.ts +7 -3
- package/dist/components/FunFeatureList/FunFeatureList.d.ts +3 -1
- package/dist/config/getDefaultConfig.d.ts +1 -1335
- package/dist/consts/customers.d.ts +2 -0
- package/dist/css/sprinkles.css.d.ts +3 -1
- package/dist/hooks/queries/useRecentCheckouts.d.ts +1 -2
- package/dist/hooks/queries/useRecentDirectExecutions.d.ts +9 -0
- package/dist/hooks/useCheckoutDirectExecutionHistory.d.ts +7 -5
- package/dist/hooks/useDirectExecutionInfoPolling.d.ts +7 -0
- package/dist/index.css +2674 -2664
- package/dist/index.d.ts +1 -1
- package/dist/index.js +745 -493
- package/dist/providers/FunkitHistoryContext.d.ts +9 -5
- package/dist/providers/FunkitThemeProvider.d.ts +3 -0
- package/dist/themes/baseTheme.js +1 -1
- package/dist/themes/darkTheme.js +2 -2
- package/dist/themes/lightTheme.js +2 -2
- package/dist/utils/flags/config.d.ts +42 -4
- package/dist/utils/purifyCheckoutHistoryItem.d.ts +25 -3
- package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
- package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
- package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
- package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
- package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
- package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
- package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
- package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
- package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
- package/dist/wallets/walletConnectors/index.js +55 -55
- package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
- package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
- package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
- package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
- package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
- package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
- package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
- package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
- package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
- package/package.json +7 -7
- package/dist/hooks/useRelayExecutionInfo.d.ts +0 -6
- package/dist/wallets/walletConnectors/chunk-25VW5TZP.js +0 -92
- package/dist/wallets/walletConnectors/chunk-3NC26XLM.js +0 -92
- package/dist/wallets/walletConnectors/chunk-3U3BMEH5.js +0 -94
- package/dist/wallets/walletConnectors/chunk-4UM4GTKZ.js +0 -103
- package/dist/wallets/walletConnectors/chunk-545L7Y4M.js +0 -69
- package/dist/wallets/walletConnectors/chunk-6LPM6LUQ.js +0 -110
- package/dist/wallets/walletConnectors/chunk-7GSNBOD3.js +0 -99
- package/dist/wallets/walletConnectors/chunk-ETTNDQQG.js +0 -100
- package/dist/wallets/walletConnectors/chunk-FRGSRLTS.js +0 -93
- package/dist/wallets/walletConnectors/chunk-HKV7EMYZ.js +0 -96
- package/dist/wallets/walletConnectors/chunk-IPOC2VJX.js +0 -106
- package/dist/wallets/walletConnectors/chunk-JXP2QPW7.js +0 -95
- package/dist/wallets/walletConnectors/chunk-KFFJPS5R.js +0 -96
- package/dist/wallets/walletConnectors/chunk-LEXSM5KI.js +0 -87
- package/dist/wallets/walletConnectors/chunk-MOOBCMMB.js +0 -70
- package/dist/wallets/walletConnectors/chunk-N2NIIUW6.js +0 -146
- package/dist/wallets/walletConnectors/chunk-W5O4YSZN.js +0 -98
- package/dist/wallets/walletConnectors/chunk-XYBEMO3C.js +0 -66
|
@@ -4,3 +4,5 @@ export declare function isVertexCustomer(apiKey: string): apiKey is "OQXhzzkLHE2
|
|
|
4
4
|
export declare function isOstiumCustomer(apiKey: string): apiKey is "SMbBD7DS9b3EPcyBVg4a8az1rRWR9xB068chHoUN";
|
|
5
5
|
export declare function isBankrCustomer(apiKey: string): apiKey is "vWe20Dfyui2ouvfOhtSTY3Czeo8lFdbo5xXQBALZ";
|
|
6
6
|
export declare function isBsxCustomer(apiKey: string): apiKey is "zN1zrkmLQn4oZtLUW9Qt02uuBI3Jvrgj8Ni40Gf1";
|
|
7
|
+
export declare function isEtherealCustomer(apiKey: string): apiKey is "M3uox3cw0u8YCPV9cIREA6AugUMvPFTk6qOpm4um";
|
|
8
|
+
export declare function isKatanaCustomer(apiKey: string): apiKey is "OXLUmejkh9PlNDS4gSvi9gcEWacOpTz2KUVepVf4";
|
|
@@ -155,6 +155,7 @@ declare const themeContractValues: {
|
|
|
155
155
|
};
|
|
156
156
|
radii: {
|
|
157
157
|
actionButton: string;
|
|
158
|
+
actionButtonInner: string;
|
|
158
159
|
connectButton: string;
|
|
159
160
|
menuButton: string;
|
|
160
161
|
modal: string;
|
|
@@ -342,6 +343,7 @@ export declare const themeVars: {
|
|
|
342
343
|
};
|
|
343
344
|
radii: {
|
|
344
345
|
actionButton: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
346
|
+
actionButtonInner: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
345
347
|
connectButton: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
346
348
|
menuButton: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
347
349
|
modal: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
@@ -614,7 +616,7 @@ export declare const sprinkles: ((props: {
|
|
|
614
616
|
} & {
|
|
615
617
|
readonly alignSelf?: "center" | "flex-end" | "flex-start" | undefined;
|
|
616
618
|
readonly backgroundSize?: "cover" | undefined;
|
|
617
|
-
readonly borderRadius?: "tooltip" | "1" | "10" | "13" | "16" | "actionButton" | "connectButton" | "menuButton" | "modal" | "modalMobile" | "modalActionButton" | "modalActionButtonMobile" | "summaryBox" | "youPayYouReceive" | "inputAmountSwitcher" | "qrCode" | "skeleton" | "dropdown" | "dropdownItem" | "4" | "6" | "8" | "11" | "24" | "30" | "full" | "badge" | "smallBadge" | undefined;
|
|
619
|
+
readonly borderRadius?: "tooltip" | "1" | "10" | "13" | "16" | "actionButton" | "actionButtonInner" | "connectButton" | "menuButton" | "modal" | "modalMobile" | "modalActionButton" | "modalActionButtonMobile" | "summaryBox" | "youPayYouReceive" | "inputAmountSwitcher" | "qrCode" | "skeleton" | "dropdown" | "dropdownItem" | "4" | "6" | "8" | "11" | "24" | "30" | "full" | "badge" | "smallBadge" | undefined;
|
|
618
620
|
readonly borderStyle?: "dotted" | "hidden" | "solid" | undefined;
|
|
619
621
|
readonly borderWidth?: "0" | "1" | "2" | "3" | "4" | "0.5" | undefined;
|
|
620
622
|
readonly cursor?: "default" | "help" | "not-allowed" | "pointer" | undefined;
|
|
@@ -3,7 +3,6 @@ import { PaymentMethod } from '~/domains/paymentMethods';
|
|
|
3
3
|
interface RecentCheckoutsQuery {
|
|
4
4
|
isVisible: boolean;
|
|
5
5
|
paymentMethod?: PaymentMethod;
|
|
6
|
-
newerThanMs?: number;
|
|
7
6
|
}
|
|
8
7
|
interface RefreshIntervalConfig {
|
|
9
8
|
listRefresh: number;
|
|
@@ -13,5 +12,5 @@ export declare function useCheckoutRefreshInterval(): RefreshIntervalConfig;
|
|
|
13
12
|
/**
|
|
14
13
|
* @returns recent checkouts tied to a recipient address used in the token transfer flow
|
|
15
14
|
*/
|
|
16
|
-
export declare const useRecentCheckouts: ({ paymentMethod,
|
|
15
|
+
export declare const useRecentCheckouts: ({ paymentMethod, isVisible, }: RecentCheckoutsQuery) => import("@tanstack/react-query").UseQueryResult<CheckoutHistoryItem[], Error>;
|
|
17
16
|
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type DirectExecution } from '@funkit/api-base';
|
|
2
|
+
interface RecentDirectExecutionsQuery {
|
|
3
|
+
isVisible: boolean;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* @returns recent direct executions tied to a recipient address used in the token transfer flow
|
|
7
|
+
*/
|
|
8
|
+
export declare const useRecentDirectExecutions: ({ isVisible, }: RecentDirectExecutionsQuery) => import("@tanstack/react-query").UseQueryResult<DirectExecution[], Error>;
|
|
9
|
+
export {};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { CheckoutState,
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { CheckoutRefundState, CheckoutState, RelayExecutionStatus } from '@funkit/api-base';
|
|
2
|
+
import type { Hex } from 'viem';
|
|
3
|
+
export declare function mapRelayExecutionStatusToCheckoutState(status: RelayExecutionStatus): CheckoutState;
|
|
4
|
+
export declare function useCheckoutDirectExecutionHistory({ txHash, }: {
|
|
5
|
+
txHash: Hex | undefined;
|
|
4
6
|
}): {
|
|
5
|
-
state:
|
|
6
|
-
refundState:
|
|
7
|
+
state: CheckoutState;
|
|
8
|
+
refundState: CheckoutRefundState | undefined;
|
|
7
9
|
isRefunded: boolean;
|
|
8
10
|
isCompleted: boolean;
|
|
9
11
|
isFailed: boolean;
|