@funkit/connect 7.0.3-next.1 → 7.1.0-next.3
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 +41 -0
- package/dist/__generated__/default_configs.d.ts +0 -18
- package/dist/components/Dialog/Dialog.css.d.ts +1 -0
- package/dist/components/Dropdown/TokenAndChainDropdown.css.d.ts +1 -0
- package/dist/components/FunCheckoutBlocked/FunCheckoutBlocked.d.ts +1 -1
- package/dist/components/FunTooltip/FunTooltip.d.ts +1 -0
- package/dist/components/FunTransactionSummary/PaymentAmountSummary.d.ts +1 -1
- package/dist/domains/asset.d.ts +2 -2
- package/dist/hooks/queries/useWithdrawalQuote.d.ts +1 -2
- package/dist/hooks/track/CheckoutModalEvent.d.ts +8 -1
- package/dist/hooks/track/WithdrawModalEvent.d.ts +1 -0
- package/dist/hooks/track/useTrack.d.ts +2 -0
- package/dist/hooks/useBluvo.d.ts +0 -1
- package/dist/hooks/useIsDynamicRoutingEnabled.d.ts +4 -0
- package/dist/hooks/useUDAParams.d.ts +2 -0
- package/dist/index.css +33 -26
- package/dist/index.d.ts +2 -2
- package/dist/index.js +31378 -31075
- package/dist/modals/CheckoutModal/FunCheckoutModal.d.ts +3 -1
- package/dist/modals/CheckoutModal/stepTransition.track.d.ts +2 -0
- package/dist/providers/FunkitCheckoutContext/types.d.ts +13 -0
- package/dist/providers/FunkitMoonpayProvider.d.ts +1 -0
- package/dist/providers/FunkitQuoteContext.track.d.ts +1 -0
- package/dist/providers/FunkitThemeProvider.d.ts +0 -7
- package/dist/providers/ModalContext.d.ts +7 -0
- package/dist/utils/customer.d.ts +0 -4
- package/dist/utils/flags/config.d.ts +10 -3
- package/dist/utils/lighter.d.ts +1 -1
- package/dist/wallets/walletConnectors/index.js +16 -16
- package/package.json +3 -3
|
@@ -2,6 +2,8 @@ import React from 'react';
|
|
|
2
2
|
interface FunCheckoutModalProps {
|
|
3
3
|
open: boolean;
|
|
4
4
|
onClose: () => void;
|
|
5
|
+
/** External soft-hidden state from ModalContext */
|
|
6
|
+
isSoftHidden?: boolean;
|
|
5
7
|
}
|
|
6
|
-
export declare function FunCheckoutModal({ onClose, open }: FunCheckoutModalProps): React.JSX.Element | null;
|
|
8
|
+
export declare function FunCheckoutModal({ onClose, open, isSoftHidden, }: FunCheckoutModalProps): React.JSX.Element | null;
|
|
7
9
|
export {};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { CheckoutModalEvent } from '~/hooks/track/CheckoutModalEvent';
|
|
1
2
|
import type { TrackEventData } from '~/hooks/track/useTrack';
|
|
2
3
|
import { FunCheckoutStep } from './FunCheckoutStep';
|
|
3
4
|
import type { CheckoutModalState } from './stepTransition';
|
|
5
|
+
export declare const CHECKOUT_STEP_TO_READY_EVENT: Partial<Record<FunCheckoutStep, CheckoutModalEvent>>;
|
|
4
6
|
export declare const trackEventFromNextState: (nextState: CheckoutModalState<FunCheckoutStep>) => TrackEventData;
|
|
@@ -117,6 +117,19 @@ export interface FunkitCheckoutValidationResult {
|
|
|
117
117
|
}
|
|
118
118
|
export interface FunkitCheckoutOnCloseResult {
|
|
119
119
|
isNewDeposit: boolean;
|
|
120
|
+
/** True if the modal was soft-hidden (state preserved) instead of hard-closed */
|
|
121
|
+
isSoftHidden?: boolean;
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Conflict resolution options when beginCheckout is called while a soft-hidden checkout exists
|
|
125
|
+
*/
|
|
126
|
+
export interface CheckoutConflictResolution {
|
|
127
|
+
/** The ID of the hidden checkout */
|
|
128
|
+
hiddenCheckoutId: string;
|
|
129
|
+
/** Resume the hidden checkout (reshow the modal without starting new checkout) */
|
|
130
|
+
resume: () => void;
|
|
131
|
+
/** Replace the hidden checkout with a new one (discard hidden state, proceed with new checkout) */
|
|
132
|
+
replace: () => void;
|
|
120
133
|
}
|
|
121
134
|
export type FunkitCheckoutResult = {
|
|
122
135
|
type: 'error' | 'success';
|
|
@@ -3,4 +3,5 @@ import type { WithdrawModalEvent } from '~/hooks/track/WithdrawModalEvent';
|
|
|
3
3
|
import type { TrackEventData } from '~/hooks/track/useTrack';
|
|
4
4
|
import type { FunkitActiveCheckoutItem } from './FunkitCheckoutContext';
|
|
5
5
|
import type { FunkitCheckoutQuoteResult } from './FunkitHistoryContext';
|
|
6
|
+
export declare const trackEventFromBaseQuote: (checkoutItem: FunkitActiveCheckoutItem, eventName: CheckoutModalEvent | WithdrawModalEvent) => TrackEventData;
|
|
6
7
|
export declare const trackEventFromFinalQuote: (finalEstimation: FunkitCheckoutQuoteResult, checkoutItem: FunkitActiveCheckoutItem, eventName: CheckoutModalEvent | WithdrawModalEvent) => TrackEventData;
|
|
@@ -13,13 +13,6 @@ export interface FunkitThemeProps {
|
|
|
13
13
|
theme?: Theme;
|
|
14
14
|
}
|
|
15
15
|
export declare const ThemeIdContext: React.Context<string | undefined>;
|
|
16
|
-
export declare const createThemeRootProps: (id: string | undefined) => {
|
|
17
|
-
"data-rk": string;
|
|
18
|
-
};
|
|
19
|
-
export declare const createThemeRootSelector: (id: string | undefined) => string;
|
|
20
|
-
export declare const useThemeRootProps: () => {
|
|
21
|
-
"data-rk": string;
|
|
22
|
-
};
|
|
23
16
|
export declare const useActiveTheme: () => {
|
|
24
17
|
activeTheme: {
|
|
25
18
|
colors: {
|
|
@@ -35,4 +35,11 @@ export declare function useWithdrawalModal(): {
|
|
|
35
35
|
withdrawalId: string;
|
|
36
36
|
}) => void) | undefined;
|
|
37
37
|
};
|
|
38
|
+
export declare function useSoftHiddenCheckout(): {
|
|
39
|
+
hasSoftHiddenCheckout: boolean;
|
|
40
|
+
softHiddenCheckoutId: string | null;
|
|
41
|
+
softHide: () => void;
|
|
42
|
+
resume: () => void;
|
|
43
|
+
discard: () => void;
|
|
44
|
+
};
|
|
38
45
|
export {};
|
package/dist/utils/customer.d.ts
CHANGED
|
@@ -196,7 +196,3 @@ export declare function useLighterAccounts({ address, isEnabled, }: {
|
|
|
196
196
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
197
197
|
promise: Promise<LighterAccountsByL1AddressResponse>;
|
|
198
198
|
};
|
|
199
|
-
export declare function useLighterNativeFlowNeeded(apiKey: string, checkoutConfig: FunkitCheckoutConfig | undefined): {
|
|
200
|
-
isLoading: boolean;
|
|
201
|
-
lighterNativeNeeded: boolean | undefined;
|
|
202
|
-
};
|
|
@@ -80,7 +80,14 @@ export declare const flagConfig: {
|
|
|
80
80
|
readonly if_any: [{
|
|
81
81
|
readonly key: "apiKey";
|
|
82
82
|
readonly type: "isAnyOf";
|
|
83
|
-
readonly values: ["
|
|
83
|
+
readonly values: ["pLQBJsA6zS9tg990rbdBD6UdABkWRv5O60vlrVcW"];
|
|
84
|
+
}];
|
|
85
|
+
readonly value: string;
|
|
86
|
+
}, {
|
|
87
|
+
readonly if_any: [{
|
|
88
|
+
readonly key: "apiKey";
|
|
89
|
+
readonly type: "isAnyOf";
|
|
90
|
+
readonly values: ["Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6", "clDebbfo9edXq1GydZ0CahSAfSimPj616lFa9p8e"];
|
|
84
91
|
}];
|
|
85
92
|
readonly value: string;
|
|
86
93
|
}];
|
|
@@ -205,7 +212,7 @@ export declare const flagConfig: {
|
|
|
205
212
|
readonly if_any: [{
|
|
206
213
|
readonly key: "apiKey";
|
|
207
214
|
readonly type: "isAnyOf";
|
|
208
|
-
readonly values: ["6TUi99Tq3O9MWj1IFX8Pv6spmPXzcvhy9NvBoeW2", "clDebbfo9edXq1GydZ0CahSAfSimPj616lFa9p8e", "57G91zNoew4nYxIoqSCpS1vWr8JT3gGVasNqMwgG", "M3uox3cw0u8YCPV9cIREA6AugUMvPFTk6qOpm4um", "cGlmpTmNh657m8TiV5RFdwna6FG5pxM6ajiNHvw3", "pLQBJsA6zS9tg990rbdBD6UdABkWRv5O60vlrVcW", "lUzTaIRxs95iin3pCAafB1ChA5akBiuQ1tjhXnau", "di9ZSqn1Ya68Y2XpBPUV1rCtNGXh8Xe5MGWzb1Xe", "53OWivH0fK2VIAuMZTycr52EnSEnPWj97Jy3Dpiz", "AH7lRIhbsL167nptv6eub9xDJXVHnYUm2vL7FLjK", "1cRIX8XoWP801OILra02i13IJ08IARBP5B6ydcnp", "2hicPxo2vy2NMHcg2cEU9crOeKtDpc14NEfMCthc", "SMbBD7DS9b3EPcyBVg4a8az1rRWR9xB068chHoUN", "wQDLu86Qab61vbtru7thf8Yj0xaeqVUH4ohoXESu", "Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6", "iMTsSsgDdI2FC0FjeEejS9LMxuJgDhFO3OHlwVjT", "HKHvPSPDezaxsTohFgDuG4WpKW6hB4SFYyztm9vc", "5UzOrcAE2F3rcuMX2EeIlaYv5VUcDe6Lyh0PeZX2"];
|
|
215
|
+
readonly values: ["6TUi99Tq3O9MWj1IFX8Pv6spmPXzcvhy9NvBoeW2", "clDebbfo9edXq1GydZ0CahSAfSimPj616lFa9p8e", "57G91zNoew4nYxIoqSCpS1vWr8JT3gGVasNqMwgG", "M3uox3cw0u8YCPV9cIREA6AugUMvPFTk6qOpm4um", "cGlmpTmNh657m8TiV5RFdwna6FG5pxM6ajiNHvw3", "pLQBJsA6zS9tg990rbdBD6UdABkWRv5O60vlrVcW", "lUzTaIRxs95iin3pCAafB1ChA5akBiuQ1tjhXnau", "di9ZSqn1Ya68Y2XpBPUV1rCtNGXh8Xe5MGWzb1Xe", "53OWivH0fK2VIAuMZTycr52EnSEnPWj97Jy3Dpiz", "AH7lRIhbsL167nptv6eub9xDJXVHnYUm2vL7FLjK", "1cRIX8XoWP801OILra02i13IJ08IARBP5B6ydcnp", "i6e1I8cfX625TTwRJlD2DshKyAoaUtO8aeoaR4i2", "2hicPxo2vy2NMHcg2cEU9crOeKtDpc14NEfMCthc", "SMbBD7DS9b3EPcyBVg4a8az1rRWR9xB068chHoUN", "wQDLu86Qab61vbtru7thf8Yj0xaeqVUH4ohoXESu", "Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6", "iMTsSsgDdI2FC0FjeEejS9LMxuJgDhFO3OHlwVjT", "HKHvPSPDezaxsTohFgDuG4WpKW6hB4SFYyztm9vc", "5UzOrcAE2F3rcuMX2EeIlaYv5VUcDe6Lyh0PeZX2"];
|
|
209
216
|
}];
|
|
210
217
|
readonly value: true;
|
|
211
218
|
}];
|
|
@@ -224,7 +231,7 @@ export declare const flagConfig: {
|
|
|
224
231
|
readonly if_any: [{
|
|
225
232
|
readonly key: "apiKey";
|
|
226
233
|
readonly type: "isAnyOf";
|
|
227
|
-
readonly values: ["6TUi99Tq3O9MWj1IFX8Pv6spmPXzcvhy9NvBoeW2", "clDebbfo9edXq1GydZ0CahSAfSimPj616lFa9p8e", "57G91zNoew4nYxIoqSCpS1vWr8JT3gGVasNqMwgG", "M3uox3cw0u8YCPV9cIREA6AugUMvPFTk6qOpm4um", "cGlmpTmNh657m8TiV5RFdwna6FG5pxM6ajiNHvw3", "pLQBJsA6zS9tg990rbdBD6UdABkWRv5O60vlrVcW", "lUzTaIRxs95iin3pCAafB1ChA5akBiuQ1tjhXnau", "53OWivH0fK2VIAuMZTycr52EnSEnPWj97Jy3Dpiz", "AH7lRIhbsL167nptv6eub9xDJXVHnYUm2vL7FLjK", "1cRIX8XoWP801OILra02i13IJ08IARBP5B6ydcnp", "2hicPxo2vy2NMHcg2cEU9crOeKtDpc14NEfMCthc", "SMbBD7DS9b3EPcyBVg4a8az1rRWR9xB068chHoUN", "Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6", "wQDLu86Qab61vbtru7thf8Yj0xaeqVUH4ohoXESu", "iMTsSsgDdI2FC0FjeEejS9LMxuJgDhFO3OHlwVjT", "HKHvPSPDezaxsTohFgDuG4WpKW6hB4SFYyztm9vc", "5UzOrcAE2F3rcuMX2EeIlaYv5VUcDe6Lyh0PeZX2"];
|
|
234
|
+
readonly values: ["6TUi99Tq3O9MWj1IFX8Pv6spmPXzcvhy9NvBoeW2", "clDebbfo9edXq1GydZ0CahSAfSimPj616lFa9p8e", "57G91zNoew4nYxIoqSCpS1vWr8JT3gGVasNqMwgG", "M3uox3cw0u8YCPV9cIREA6AugUMvPFTk6qOpm4um", "cGlmpTmNh657m8TiV5RFdwna6FG5pxM6ajiNHvw3", "pLQBJsA6zS9tg990rbdBD6UdABkWRv5O60vlrVcW", "lUzTaIRxs95iin3pCAafB1ChA5akBiuQ1tjhXnau", "53OWivH0fK2VIAuMZTycr52EnSEnPWj97Jy3Dpiz", "AH7lRIhbsL167nptv6eub9xDJXVHnYUm2vL7FLjK", "i6e1I8cfX625TTwRJlD2DshKyAoaUtO8aeoaR4i2", "1cRIX8XoWP801OILra02i13IJ08IARBP5B6ydcnp", "2hicPxo2vy2NMHcg2cEU9crOeKtDpc14NEfMCthc", "SMbBD7DS9b3EPcyBVg4a8az1rRWR9xB068chHoUN", "Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6", "wQDLu86Qab61vbtru7thf8Yj0xaeqVUH4ohoXESu", "iMTsSsgDdI2FC0FjeEejS9LMxuJgDhFO3OHlwVjT", "HKHvPSPDezaxsTohFgDuG4WpKW6hB4SFYyztm9vc", "5UzOrcAE2F3rcuMX2EeIlaYv5VUcDe6Lyh0PeZX2"];
|
|
228
235
|
}];
|
|
229
236
|
readonly value: true;
|
|
230
237
|
}, {
|
package/dist/utils/lighter.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { type Address } from 'viem';
|
|
2
2
|
export declare const LIGHTER_DEPOSIT_ADDRESS: Address;
|
|
3
|
-
export declare const LIGHTER_NATIVE_FLOW_TIME_ESTIMATE_SECONDS
|
|
3
|
+
export declare const LIGHTER_NATIVE_FLOW_TIME_ESTIMATE_SECONDS: number;
|
|
4
4
|
export declare const LIGHTER_DELAYED_AUTO_TRIGGER_CUTOFF: number;
|
|
@@ -30,8 +30,8 @@ import {
|
|
|
30
30
|
xdefiWallet
|
|
31
31
|
} from "./chunk-BOU4WKRZ.js";
|
|
32
32
|
import {
|
|
33
|
-
|
|
34
|
-
} from "./chunk-
|
|
33
|
+
rabbyWallet
|
|
34
|
+
} from "./chunk-BBOM42DL.js";
|
|
35
35
|
import {
|
|
36
36
|
rainbowWallet
|
|
37
37
|
} from "./chunk-2KUBG3S6.js";
|
|
@@ -75,8 +75,8 @@ import {
|
|
|
75
75
|
oneKeyWallet
|
|
76
76
|
} from "./chunk-SHBUZ7U7.js";
|
|
77
77
|
import {
|
|
78
|
-
|
|
79
|
-
} from "./chunk-
|
|
78
|
+
phantomWallet
|
|
79
|
+
} from "./chunk-362NXNTM.js";
|
|
80
80
|
import {
|
|
81
81
|
foxWallet
|
|
82
82
|
} from "./chunk-7QONTUXT.js";
|
|
@@ -92,9 +92,6 @@ import {
|
|
|
92
92
|
import {
|
|
93
93
|
imTokenWallet
|
|
94
94
|
} from "./chunk-COZ7MIQS.js";
|
|
95
|
-
import {
|
|
96
|
-
kresusWallet
|
|
97
|
-
} from "./chunk-MJXPRJZT.js";
|
|
98
95
|
import {
|
|
99
96
|
ledgerWallet
|
|
100
97
|
} from "./chunk-BRBKM4PW.js";
|
|
@@ -102,8 +99,11 @@ import {
|
|
|
102
99
|
injectedWallet
|
|
103
100
|
} from "./chunk-XWUJE7MW.js";
|
|
104
101
|
import {
|
|
105
|
-
|
|
106
|
-
} from "./chunk-
|
|
102
|
+
kresusWallet
|
|
103
|
+
} from "./chunk-MJXPRJZT.js";
|
|
104
|
+
import {
|
|
105
|
+
bloomWallet
|
|
106
|
+
} from "./chunk-S27IADFU.js";
|
|
107
107
|
import {
|
|
108
108
|
clvWallet
|
|
109
109
|
} from "./chunk-M3NZ6R2E.js";
|
|
@@ -125,12 +125,12 @@ import {
|
|
|
125
125
|
import {
|
|
126
126
|
enkryptWallet
|
|
127
127
|
} from "./chunk-OLOIXTYS.js";
|
|
128
|
-
import {
|
|
129
|
-
argentWallet
|
|
130
|
-
} from "./chunk-WSQ2YJO2.js";
|
|
131
128
|
import {
|
|
132
129
|
bifrostWallet
|
|
133
130
|
} from "./chunk-A5N6B5UW.js";
|
|
131
|
+
import {
|
|
132
|
+
argentWallet
|
|
133
|
+
} from "./chunk-WSQ2YJO2.js";
|
|
134
134
|
import {
|
|
135
135
|
bitgetWallet
|
|
136
136
|
} from "./chunk-TDAVGY5F.js";
|
|
@@ -140,13 +140,13 @@ import {
|
|
|
140
140
|
import {
|
|
141
141
|
bitverseWallet
|
|
142
142
|
} from "./chunk-3HZRRP4Y.js";
|
|
143
|
-
import {
|
|
144
|
-
bloomWallet
|
|
145
|
-
} from "./chunk-S27IADFU.js";
|
|
146
|
-
import "./chunk-23WIEY36.js";
|
|
147
143
|
import {
|
|
148
144
|
braveWallet
|
|
149
145
|
} from "./chunk-BPZ2XJO2.js";
|
|
146
|
+
import {
|
|
147
|
+
bybitWallet
|
|
148
|
+
} from "./chunk-2STUC6QL.js";
|
|
149
|
+
import "./chunk-23WIEY36.js";
|
|
150
150
|
import "./chunk-DNSG5Q7V.js";
|
|
151
151
|
export {
|
|
152
152
|
argentWallet,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funkit/connect",
|
|
3
|
-
"version": "7.0
|
|
3
|
+
"version": "7.1.0-next.3",
|
|
4
4
|
"description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -100,9 +100,9 @@
|
|
|
100
100
|
"ua-parser-js": "^1.0.37",
|
|
101
101
|
"use-debounce": "^10.0.5",
|
|
102
102
|
"uuid": "^9.0.1",
|
|
103
|
-
"@funkit/api-base": "1.12.22-next.
|
|
103
|
+
"@funkit/api-base": "1.12.22-next.1",
|
|
104
104
|
"@funkit/chains": "0.5.2-next.0",
|
|
105
|
-
"@funkit/fun-relay": "2.1.16-next.
|
|
105
|
+
"@funkit/fun-relay": "2.1.16-next.2",
|
|
106
106
|
"@funkit/utils": "1.1.22-next.0"
|
|
107
107
|
},
|
|
108
108
|
"repository": {
|