@funkit/connect 7.1.0-next.10 → 7.1.0-next.12
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 +28 -0
- package/dist/components/FunCheckoutHistory/FunDirectExecutionHistoryDetail.d.ts +1 -1
- package/dist/components/FunTooltip/FunTooltip.css.d.ts +2 -6
- package/dist/components/FunTooltip/FunTooltip.d.ts +14 -19
- package/dist/components/Icons/RelayIcon.d.ts +4 -0
- package/dist/domains/relay.d.ts +15 -1
- package/dist/hooks/queries/useRecentDeposits.d.ts +46 -0
- package/dist/hooks/useCheckoutDirectExecutionHistory.d.ts +1 -1
- package/dist/hooks/useHasHover.d.ts +1 -0
- package/dist/index.css +90 -29
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2467 -2433
- package/dist/modals/CheckoutModal/InputAmount/state.d.ts +1 -1
- package/dist/modals/CheckoutModal/TransferToken/DirectExecutionNotification.d.ts +1 -1
- package/dist/modals/CheckoutModal/TransferToken/types.d.ts +1 -1
- package/dist/providers/FunkitConfigContext.d.ts +12 -1
- package/dist/wallets/walletConnectors/index.js +12 -12
- package/package.json +5 -4
- package/dist/hooks/queries/useRecentDirectExecutions.d.ts +0 -22
|
@@ -106,6 +106,6 @@ export type AmountInputError = {
|
|
|
106
106
|
* Return half the balance and round up to nearest 10, 100, 1000 etc
|
|
107
107
|
*/
|
|
108
108
|
export declare function calcInitialFiatAmount(balance: number): number;
|
|
109
|
-
export declare function initializeState({ checkoutConfig, defaultAmount, fiatCurrency, locale, maxUsd, minUsd, paymentMethodInfo, quickOptions, sourceHolding, unitPrice: realUnitPrice, fiatCurrencyExchangeRate, meldEnabled,
|
|
109
|
+
export declare function initializeState({ checkoutConfig, defaultAmount, fiatCurrency, locale, maxUsd, minUsd, paymentMethodInfo, quickOptions, sourceHolding, unitPrice: realUnitPrice, fiatCurrencyExchangeRate, meldEnabled, }: AmountInputInitOptions): AmountInputState;
|
|
110
110
|
export declare function reduceState(state: AmountInputState, action: AmountInputAction): AmountInputState;
|
|
111
111
|
export declare function getDerivedState(state: AmountInputState, targetAssetTicker: string): AmountInputDerivedState;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { Address } from 'viem';
|
|
3
|
-
import type { MergedMultiStepDirectExecution } from '~/hooks/queries/
|
|
3
|
+
import type { MergedMultiStepDirectExecution } from '~/hooks/queries/useRecentDeposits';
|
|
4
4
|
interface DirectExecutionNotificationProps {
|
|
5
5
|
directExecution: MergedMultiStepDirectExecution;
|
|
6
6
|
onClose: (id: string) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { CheckoutHistoryItem } from '@funkit/api-base';
|
|
2
2
|
import type { Address } from 'viem';
|
|
3
|
-
import type { MergedMultiStepDirectExecution } from '~/hooks/queries/
|
|
3
|
+
import type { MergedMultiStepDirectExecution } from '~/hooks/queries/useRecentDeposits';
|
|
4
4
|
export type NotificationItem = (MergedMultiStepDirectExecution & {
|
|
5
5
|
isDirectExecution: true;
|
|
6
6
|
}) | (CheckoutHistoryItem & {
|
|
@@ -24,6 +24,12 @@ export interface FunkitUiDestinationConfig {
|
|
|
24
24
|
/** Which url to redirect to. If not specified, defaults to the block explorer of the recipientAddr of the checkout*/
|
|
25
25
|
url?: string;
|
|
26
26
|
}
|
|
27
|
+
export interface FunkitUiSelectedRouteConfig {
|
|
28
|
+
/** Image URL for passthrough routes (required) */
|
|
29
|
+
passthroughImage: string;
|
|
30
|
+
/** Label for passthrough routes - defaults to "Native Bridge" */
|
|
31
|
+
passthroughLabel?: string;
|
|
32
|
+
}
|
|
27
33
|
export interface FunkitUiCustomizationsConfig {
|
|
28
34
|
/** Title alignment - defaults to "center" */
|
|
29
35
|
alignTitle?: 'left' | 'center';
|
|
@@ -46,6 +52,11 @@ export interface FunkitUiCustomizationsConfig {
|
|
|
46
52
|
showTransactionDigest?: 'none' | 'chainDependent';
|
|
47
53
|
/** Whether to show the amount of tokens below the USD equivalent - defaults to true */
|
|
48
54
|
showTokenAmount?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Config for "Selected Route" row. When defined, the row is shown.
|
|
57
|
+
* Omit to hide the selected route row (default).
|
|
58
|
+
*/
|
|
59
|
+
selectedRouteConfig?: FunkitUiSelectedRouteConfig;
|
|
49
60
|
};
|
|
50
61
|
inputAmountScreen?: {
|
|
51
62
|
/** Whether to allow entering an amount of tokens, rather than only USD - defaults to true */
|
|
@@ -68,7 +79,7 @@ export interface FunkitUiCustomizationsConfig {
|
|
|
68
79
|
};
|
|
69
80
|
}
|
|
70
81
|
export type FunkitUiCustomizationsConfigInternal = Required<FunkitUiCustomizationsConfig> & {
|
|
71
|
-
confirmationScreen: FunkitUiCustomizationsConfig['confirmationScreen'] & Required<Omit<FunkitUiCustomizationsConfig['confirmationScreen'] & {}, 'destinationConfig'>>;
|
|
82
|
+
confirmationScreen: FunkitUiCustomizationsConfig['confirmationScreen'] & Required<Omit<FunkitUiCustomizationsConfig['confirmationScreen'] & {}, 'destinationConfig' | 'selectedRouteConfig'>>;
|
|
72
83
|
inputAmountScreen: Required<FunkitUiCustomizationsConfig['inputAmountScreen'] & {}>;
|
|
73
84
|
selectAssetScreen: Required<FunkitUiCustomizationsConfig['selectAssetScreen'] & {}>;
|
|
74
85
|
transferCryptoScreen: Required<FunkitUiCustomizationsConfig['transferCryptoScreen'] & {}>;
|
|
@@ -11,12 +11,12 @@ 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";
|
|
@@ -29,12 +29,12 @@ import {
|
|
|
29
29
|
import {
|
|
30
30
|
xdefiWallet
|
|
31
31
|
} from "./chunk-TMFH6GXS.js";
|
|
32
|
-
import {
|
|
33
|
-
rabbyWallet
|
|
34
|
-
} from "./chunk-LW6S43RE.js";
|
|
35
32
|
import {
|
|
36
33
|
rainbowWallet
|
|
37
34
|
} from "./chunk-77UTBHGP.js";
|
|
35
|
+
import {
|
|
36
|
+
rabbyWallet
|
|
37
|
+
} from "./chunk-LW6S43RE.js";
|
|
38
38
|
import {
|
|
39
39
|
ramperWallet
|
|
40
40
|
} from "./chunk-FCG5Q6JX.js";
|
|
@@ -59,12 +59,12 @@ import {
|
|
|
59
59
|
import {
|
|
60
60
|
mewWallet
|
|
61
61
|
} from "./chunk-CF5HOLH2.js";
|
|
62
|
-
import {
|
|
63
|
-
oktoWallet
|
|
64
|
-
} from "./chunk-ADIXAKUL.js";
|
|
65
62
|
import {
|
|
66
63
|
okxWallet
|
|
67
64
|
} from "./chunk-U5QP7MI5.js";
|
|
65
|
+
import {
|
|
66
|
+
oktoWallet
|
|
67
|
+
} from "./chunk-ADIXAKUL.js";
|
|
68
68
|
import {
|
|
69
69
|
omniWallet
|
|
70
70
|
} from "./chunk-7CUY5G6R.js";
|
|
@@ -92,12 +92,12 @@ import {
|
|
|
92
92
|
import {
|
|
93
93
|
imTokenWallet
|
|
94
94
|
} from "./chunk-COZ7MIQS.js";
|
|
95
|
-
import {
|
|
96
|
-
injectedWallet
|
|
97
|
-
} from "./chunk-MQSCN4BO.js";
|
|
98
95
|
import {
|
|
99
96
|
kresusWallet
|
|
100
97
|
} from "./chunk-MJXPRJZT.js";
|
|
98
|
+
import {
|
|
99
|
+
injectedWallet
|
|
100
|
+
} from "./chunk-MQSCN4BO.js";
|
|
101
101
|
import {
|
|
102
102
|
ledgerWallet
|
|
103
103
|
} from "./chunk-BRBKM4PW.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.12",
|
|
4
4
|
"description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -44,7 +44,6 @@
|
|
|
44
44
|
"wagmi": "2.x"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"i18next-cli": "1.24.14",
|
|
48
47
|
"@aws-sdk/client-cloudfront": "3.943.0",
|
|
49
48
|
"@aws-sdk/client-s3": "3.840.0",
|
|
50
49
|
"@chromatic-com/storybook": "^4.1.1",
|
|
@@ -66,6 +65,7 @@
|
|
|
66
65
|
"buffer": "^6.0.3",
|
|
67
66
|
"dotenv": "^17.2.3",
|
|
68
67
|
"esbuild-plugin-replace": "^1.4.0",
|
|
68
|
+
"i18next-cli": "1.24.14",
|
|
69
69
|
"jsdom": "^26.1.0",
|
|
70
70
|
"postcss": "^8.4.33",
|
|
71
71
|
"postcss-prefix-selector": "^1.16.0",
|
|
@@ -83,6 +83,7 @@
|
|
|
83
83
|
"@bluvo/sdk-ts": "2.1.3",
|
|
84
84
|
"@datadog/browser-logs": "5.22.0",
|
|
85
85
|
"@number-flow/react": "^0.5.5",
|
|
86
|
+
"@radix-ui/react-tooltip": "^1.2.0",
|
|
86
87
|
"@solana/addresses": "^2.1.0",
|
|
87
88
|
"@statsig/react-bindings": "^3.25.4",
|
|
88
89
|
"@types/uuid": "^9.0.8",
|
|
@@ -100,9 +101,9 @@
|
|
|
100
101
|
"ua-parser-js": "^1.0.37",
|
|
101
102
|
"use-debounce": "^10.0.5",
|
|
102
103
|
"uuid": "^9.0.1",
|
|
103
|
-
"@funkit/api-base": "1.12.22-next.
|
|
104
|
+
"@funkit/api-base": "1.12.22-next.5",
|
|
104
105
|
"@funkit/chains": "0.5.2-next.1",
|
|
105
|
-
"@funkit/fun-relay": "2.2.0-next.
|
|
106
|
+
"@funkit/fun-relay": "2.2.0-next.5",
|
|
106
107
|
"@funkit/utils": "1.1.22-next.2"
|
|
107
108
|
},
|
|
108
109
|
"repository": {
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { type DirectExecution } from '@funkit/api-base';
|
|
2
|
-
interface RecentDirectExecutionsQuery {
|
|
3
|
-
isVisible: boolean;
|
|
4
|
-
memoizedFilterFunc?: (de: DirectExecution) => boolean;
|
|
5
|
-
}
|
|
6
|
-
export interface MergedMultiStepDirectExecution extends DirectExecution {
|
|
7
|
-
/**
|
|
8
|
-
* In a multi-step DE chain, represents the latest **present** DE of the chain.
|
|
9
|
-
*
|
|
10
|
-
* Always `undefined` for single-step DEs.
|
|
11
|
-
*/
|
|
12
|
-
latestStep?: DirectExecution;
|
|
13
|
-
}
|
|
14
|
-
export declare function isTokenTransferDirectExecution(de: DirectExecution): boolean;
|
|
15
|
-
export declare function isWithdrawalDirectExecution(de: DirectExecution): boolean;
|
|
16
|
-
/**
|
|
17
|
-
* @returns recent direct executions tied to a recipient address used in the token transfer flow
|
|
18
|
-
*/
|
|
19
|
-
export declare const useRecentDirectExecutions: ({ isVisible, memoizedFilterFunc, }: RecentDirectExecutionsQuery) => {
|
|
20
|
-
data: MergedMultiStepDirectExecution[] | undefined;
|
|
21
|
-
};
|
|
22
|
-
export {};
|