@funkit/connect 6.14.11 → 6.14.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 +18 -0
- package/dist/components/FunPayments/FunPaymentMethods.d.ts +1 -1
- package/dist/components/FunSelectBrokerage/FunBrokerageItem.css.d.ts +1 -0
- package/dist/components/FunSelectBrokerage/FunBrokerageItem.d.ts +8 -0
- package/dist/components/FunSelectBrokerage/FunSelectBrokerage.d.ts +9 -0
- package/dist/consts/bluvo.d.ts +15 -0
- package/dist/domains/paymentMethods.d.ts +9 -1
- package/dist/domains/wallet.d.ts +6 -2
- package/dist/hooks/track/useTrack.d.ts +1 -0
- package/dist/hooks/useBluvo.d.ts +24 -0
- package/dist/hooks/useCheckoutAccountBalanceTransfer.d.ts +1 -1
- package/dist/hooks/usePaymentSources.d.ts +1 -0
- package/dist/index.css +18 -10
- package/dist/index.js +2659 -2130
- package/dist/modals/CheckoutModal/Brokerage/SelectBrokerage.d.ts +10 -0
- package/dist/modals/CheckoutModal/FunCheckoutStep.d.ts +2 -1
- package/dist/modals/CheckoutModal/stepTransition.d.ts +3 -0
- package/dist/providers/FunkitBrokerageProvider.d.ts +14 -0
- package/dist/utils/bluvo.d.ts +7 -0
- package/dist/utils/checkout.d.ts +1 -1
- package/dist/utils/flags/config.d.ts +0 -8
- 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 +58 -58
- 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 +8 -6
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type PaymentMethodBrokerageInfo } from '~/domains/paymentMethods';
|
|
3
|
+
import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, type ModalStepInfo } from '../stepTransition';
|
|
4
|
+
export type SelectBrokerageState = CheckoutModalCommonState;
|
|
5
|
+
export type SelectBrokerageNext = {
|
|
6
|
+
hasActiveConnection: boolean;
|
|
7
|
+
paymentInfo: PaymentMethodBrokerageInfo;
|
|
8
|
+
};
|
|
9
|
+
export declare const SelectBrokerageInfo: ModalStepInfo<FunCheckoutStep.SELECT_BROKERAGE>;
|
|
10
|
+
export declare function SelectBrokerage({ onNext, }: ModalStepComponentProps<FunCheckoutStep.SELECT_BROKERAGE>): React.JSX.Element;
|
|
@@ -17,5 +17,6 @@ export declare enum FunCheckoutStep {
|
|
|
17
17
|
MELD_QUOTES = "meld_quotes",
|
|
18
18
|
MELD_REDIRECT = "meld_redirect",
|
|
19
19
|
MELD_CURRENCY_SELECT = "meld_currency_select",
|
|
20
|
-
DIRECT_EXECUTION_NOTIF_CENTER = "direct_execution_notif_center"
|
|
20
|
+
DIRECT_EXECUTION_NOTIF_CENTER = "direct_execution_notif_center",
|
|
21
|
+
SELECT_BROKERAGE = "select_brokerage"
|
|
21
22
|
}
|
|
@@ -5,6 +5,7 @@ import { type ErrorScreenState } from '~/modals/CheckoutModal/VirtualFiatAccount
|
|
|
5
5
|
import { type VirtualFiatAccountNext, type VirtualFiatAccountState } from '~/modals/CheckoutModal/VirtualFiatAccount/VirtualFiatAccount';
|
|
6
6
|
import { FunCheckoutStartingStep, type FunkitActiveCheckoutItem } from '../../providers/FunkitCheckoutContext';
|
|
7
7
|
import { type FunkitTextCustomizationsConfig } from '../../providers/FunkitConfigContext';
|
|
8
|
+
import { type SelectBrokerageNext, type SelectBrokerageState } from './Brokerage/SelectBrokerage';
|
|
8
9
|
import { type CheckoutCompleteNext, type CheckoutCompleteState } from './CheckoutComplete/CheckoutComplete';
|
|
9
10
|
import { type CheckoutHelpState } from './CheckoutHelp/CheckoutHelp';
|
|
10
11
|
import { type ConfirmationStepNext, type ConfirmationStepState } from './ConfirmationStep/ConfirmationStep';
|
|
@@ -85,6 +86,7 @@ export type CheckoutModalState<S extends FunCheckoutStep = FunCheckoutStep> = {
|
|
|
85
86
|
[FunCheckoutStep.MELD_REDIRECT]: MeldRedirectState;
|
|
86
87
|
[FunCheckoutStep.MELD_CURRENCY_SELECT]: MeldCurrencySelectState;
|
|
87
88
|
[FunCheckoutStep.DIRECT_EXECUTION_NOTIF_CENTER]: DirectExecutionNotifCenterState;
|
|
89
|
+
[FunCheckoutStep.SELECT_BROKERAGE]: SelectBrokerageState;
|
|
88
90
|
}[T] & {
|
|
89
91
|
step: T;
|
|
90
92
|
};
|
|
@@ -109,6 +111,7 @@ export type NextPayload<S extends FunCheckoutStep = FunCheckoutStep> = {
|
|
|
109
111
|
[FunCheckoutStep.MELD_REDIRECT]: MeldRedirectNext;
|
|
110
112
|
[FunCheckoutStep.MELD_CURRENCY_SELECT]: MeldCurrencySelectNext;
|
|
111
113
|
[FunCheckoutStep.DIRECT_EXECUTION_NOTIF_CENTER]: null;
|
|
114
|
+
[FunCheckoutStep.SELECT_BROKERAGE]: SelectBrokerageNext;
|
|
112
115
|
}[S] & {
|
|
113
116
|
/** Whether screen transition should change direction to simulate back transition. Only applies if there is a history entry in the stack*/
|
|
114
117
|
reverseAnimation?: boolean;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type UseBluvoFlowHook } from '@bluvo/react';
|
|
2
|
+
import React, { type ReactNode } from 'react';
|
|
3
|
+
import type { BluvoExchangeType } from '~/consts/bluvo';
|
|
4
|
+
type BluvoLocalStorageData = Partial<Record<BluvoExchangeType, string>>;
|
|
5
|
+
interface FunkitBrokerageContextProps {
|
|
6
|
+
bluvoClient: UseBluvoFlowHook | null;
|
|
7
|
+
authorizedConnections: BluvoLocalStorageData;
|
|
8
|
+
}
|
|
9
|
+
export declare const FunkitBrokerageContext: React.Context<FunkitBrokerageContextProps>;
|
|
10
|
+
export declare const FunkitBrokerageProvider: React.FC<{
|
|
11
|
+
children: ReactNode;
|
|
12
|
+
}>;
|
|
13
|
+
export declare function useFunkitBrokerageContext(): FunkitBrokerageContextProps;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { WithdrawableBalance } from '@bluvo/sdk-ts';
|
|
2
|
+
import type { AssetHoldingsMap, BrokerageAssetHoldingsItem } from '~/domains/wallet';
|
|
3
|
+
/**
|
|
4
|
+
* Transforms Bluvo wallet balances into the AssetHoldingsMap format
|
|
5
|
+
* used by the SelectAsset component.
|
|
6
|
+
*/
|
|
7
|
+
export declare function transformBluvoBalancesToAssetHoldings(balances: WithdrawableBalance[], preferredChainId?: string): AssetHoldingsMap<BrokerageAssetHoldingsItem>;
|
package/dist/utils/checkout.d.ts
CHANGED
|
@@ -55,7 +55,6 @@ export declare function getFunkitEnvForCheckoutEstimation({ chainId, bypassWalle
|
|
|
55
55
|
bypassInit: boolean;
|
|
56
56
|
apiKey?: string;
|
|
57
57
|
nonce?: bigint | undefined;
|
|
58
|
-
logger?: import("@funkit/api-base").Logger | undefined;
|
|
59
58
|
fee?: {
|
|
60
59
|
token?: string;
|
|
61
60
|
amount?: number;
|
|
@@ -63,6 +62,7 @@ export declare function getFunkitEnvForCheckoutEstimation({ chainId, bypassWalle
|
|
|
63
62
|
recipient: Address;
|
|
64
63
|
} | undefined;
|
|
65
64
|
skipDBAction?: boolean | undefined;
|
|
65
|
+
logger?: import("@funkit/api-base").Logger | undefined;
|
|
66
66
|
};
|
|
67
67
|
export type TokenInfo = {
|
|
68
68
|
symbol: string;
|
|
@@ -254,14 +254,6 @@ export declare const flagConfig: {
|
|
|
254
254
|
readonly enable_bitcoin: {
|
|
255
255
|
readonly type: "boolean";
|
|
256
256
|
readonly default_value: true;
|
|
257
|
-
readonly overrides: [{
|
|
258
|
-
readonly if_any: [{
|
|
259
|
-
readonly key: "apiKey";
|
|
260
|
-
readonly type: "isAnyOf";
|
|
261
|
-
readonly values: ["M3uox3cw0u8YCPV9cIREA6AugUMvPFTk6qOpm4um"];
|
|
262
|
-
}];
|
|
263
|
-
readonly value: false;
|
|
264
|
-
}];
|
|
265
257
|
};
|
|
266
258
|
readonly chain_info_banners: {
|
|
267
259
|
readonly type: "string";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
xdefiWallet
|
|
4
|
-
} from "./chunk-BOU4WKRZ.js";
|
|
5
2
|
import {
|
|
6
3
|
zealWallet
|
|
7
4
|
} from "./chunk-RNBEDQHF.js";
|
|
5
|
+
import {
|
|
6
|
+
xdefiWallet
|
|
7
|
+
} from "./chunk-BOU4WKRZ.js";
|
|
8
8
|
import {
|
|
9
9
|
zerionWallet
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-SULRQO27.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
} from "./chunk-
|
|
12
|
+
safepalWallet
|
|
13
|
+
} from "./chunk-NT2HYJKW.js";
|
|
14
14
|
import {
|
|
15
15
|
tahoWallet
|
|
16
16
|
} from "./chunk-ZZZRUXZE.js";
|
|
@@ -18,104 +18,104 @@ import {
|
|
|
18
18
|
talismanWallet
|
|
19
19
|
} from "./chunk-DRO6WYMM.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import {
|
|
24
|
-
trustWallet
|
|
25
|
-
} from "./chunk-RKPCWHXL.js";
|
|
21
|
+
uniswapWallet
|
|
22
|
+
} from "./chunk-LH7BMNFZ.js";
|
|
26
23
|
import {
|
|
27
24
|
tokenaryWallet
|
|
28
25
|
} from "./chunk-D6AOOO5F.js";
|
|
29
26
|
import {
|
|
30
|
-
|
|
31
|
-
} from "./chunk-
|
|
27
|
+
trustWallet
|
|
28
|
+
} from "./chunk-VYBAYMP3.js";
|
|
29
|
+
import {
|
|
30
|
+
tokenPocketWallet
|
|
31
|
+
} from "./chunk-2L43XSW3.js";
|
|
32
32
|
import {
|
|
33
33
|
walletConnectWallet
|
|
34
34
|
} from "./chunk-NP5QGWNL.js";
|
|
35
35
|
import {
|
|
36
|
-
|
|
37
|
-
} from "./chunk-
|
|
36
|
+
rainbowWallet
|
|
37
|
+
} from "./chunk-2KUBG3S6.js";
|
|
38
38
|
import {
|
|
39
39
|
rabbyWallet
|
|
40
40
|
} from "./chunk-BBOM42DL.js";
|
|
41
|
-
import {
|
|
42
|
-
rainbowWallet
|
|
43
|
-
} from "./chunk-3CICVJUN.js";
|
|
44
41
|
import {
|
|
45
42
|
ramperWallet
|
|
46
43
|
} from "./chunk-BYXPFMI7.js";
|
|
47
|
-
import {
|
|
48
|
-
roninWallet
|
|
49
|
-
} from "./chunk-QLVVUKYB.js";
|
|
50
44
|
import {
|
|
51
45
|
safeWallet
|
|
52
46
|
} from "./chunk-BQQQL6UD.js";
|
|
47
|
+
import {
|
|
48
|
+
phantomWallet
|
|
49
|
+
} from "./chunk-362NXNTM.js";
|
|
50
|
+
import {
|
|
51
|
+
roninWallet
|
|
52
|
+
} from "./chunk-NWIQNBJU.js";
|
|
53
53
|
import {
|
|
54
54
|
safeheronWallet
|
|
55
55
|
} from "./chunk-RZIO5TFF.js";
|
|
56
56
|
import {
|
|
57
|
-
|
|
58
|
-
} from "./chunk-
|
|
57
|
+
subWallet
|
|
58
|
+
} from "./chunk-JWFF4AAL.js";
|
|
59
59
|
import {
|
|
60
60
|
ledgerWallet
|
|
61
61
|
} from "./chunk-BRBKM4PW.js";
|
|
62
|
-
import {
|
|
63
|
-
metaMaskWallet
|
|
64
|
-
} from "./chunk-UYGJO62F.js";
|
|
65
|
-
import {
|
|
66
|
-
mewWallet
|
|
67
|
-
} from "./chunk-OL5ZO7E4.js";
|
|
68
62
|
import {
|
|
69
63
|
oktoWallet
|
|
70
64
|
} from "./chunk-ADIXAKUL.js";
|
|
71
65
|
import {
|
|
72
|
-
|
|
73
|
-
} from "./chunk-
|
|
66
|
+
mewWallet
|
|
67
|
+
} from "./chunk-OL5ZO7E4.js";
|
|
74
68
|
import {
|
|
75
69
|
omniWallet
|
|
76
70
|
} from "./chunk-7CUY5G6R.js";
|
|
71
|
+
import {
|
|
72
|
+
metaMaskWallet
|
|
73
|
+
} from "./chunk-2HYNUNAS.js";
|
|
77
74
|
import {
|
|
78
75
|
oneInchWallet
|
|
79
76
|
} from "./chunk-OESTDX6I.js";
|
|
77
|
+
import {
|
|
78
|
+
okxWallet
|
|
79
|
+
} from "./chunk-TDIEHTMB.js";
|
|
80
80
|
import {
|
|
81
81
|
oneKeyWallet
|
|
82
82
|
} from "./chunk-SHBUZ7U7.js";
|
|
83
|
-
import {
|
|
84
|
-
foxWallet
|
|
85
|
-
} from "./chunk-CNPKISHN.js";
|
|
86
83
|
import {
|
|
87
84
|
frameWallet
|
|
88
85
|
} from "./chunk-IFON7E6U.js";
|
|
89
86
|
import {
|
|
90
87
|
frontierWallet
|
|
91
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-TCAGNB4B.js";
|
|
92
89
|
import {
|
|
93
90
|
gateWallet
|
|
94
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-FKJJQNKX.js";
|
|
92
|
+
import {
|
|
93
|
+
kresusWallet
|
|
94
|
+
} from "./chunk-MJXPRJZT.js";
|
|
95
95
|
import {
|
|
96
96
|
imTokenWallet
|
|
97
97
|
} from "./chunk-COZ7MIQS.js";
|
|
98
|
+
import {
|
|
99
|
+
bybitWallet
|
|
100
|
+
} from "./chunk-2STUC6QL.js";
|
|
98
101
|
import {
|
|
99
102
|
injectedWallet
|
|
100
103
|
} from "./chunk-XWUJE7MW.js";
|
|
101
104
|
import {
|
|
102
|
-
|
|
103
|
-
} from "./chunk-
|
|
104
|
-
import {
|
|
105
|
-
bybitWallet
|
|
106
|
-
} from "./chunk-LNEC5RNX.js";
|
|
107
|
-
import {
|
|
108
|
-
clvWallet
|
|
109
|
-
} from "./chunk-2GJQ4XZQ.js";
|
|
105
|
+
coin98Wallet
|
|
106
|
+
} from "./chunk-OBOVHCEI.js";
|
|
110
107
|
import {
|
|
111
108
|
coinbaseWallet
|
|
112
109
|
} from "./chunk-H4IRCEZN.js";
|
|
113
|
-
import {
|
|
114
|
-
coin98Wallet
|
|
115
|
-
} from "./chunk-KIDC67XJ.js";
|
|
116
110
|
import {
|
|
117
111
|
coreWallet
|
|
118
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-VR4TBQ6S.js";
|
|
113
|
+
import {
|
|
114
|
+
clvWallet
|
|
115
|
+
} from "./chunk-M3NZ6R2E.js";
|
|
116
|
+
import {
|
|
117
|
+
enkryptWallet
|
|
118
|
+
} from "./chunk-OLOIXTYS.js";
|
|
119
119
|
import {
|
|
120
120
|
dawnWallet
|
|
121
121
|
} from "./chunk-HWPKCIBE.js";
|
|
@@ -123,31 +123,31 @@ import {
|
|
|
123
123
|
desigWallet
|
|
124
124
|
} from "./chunk-OPAZMNA7.js";
|
|
125
125
|
import {
|
|
126
|
-
|
|
127
|
-
} from "./chunk-
|
|
126
|
+
foxWallet
|
|
127
|
+
} from "./chunk-7QONTUXT.js";
|
|
128
128
|
import {
|
|
129
129
|
argentWallet
|
|
130
130
|
} from "./chunk-WSQ2YJO2.js";
|
|
131
|
+
import {
|
|
132
|
+
bifrostWallet
|
|
133
|
+
} from "./chunk-A5N6B5UW.js";
|
|
131
134
|
import {
|
|
132
135
|
bitskiWallet
|
|
133
136
|
} from "./chunk-HS3C7OQV.js";
|
|
134
|
-
import {
|
|
135
|
-
bifrostWallet
|
|
136
|
-
} from "./chunk-UIASLGLV.js";
|
|
137
137
|
import {
|
|
138
138
|
bitgetWallet
|
|
139
|
-
} from "./chunk-
|
|
139
|
+
} from "./chunk-TDAVGY5F.js";
|
|
140
140
|
import {
|
|
141
141
|
bitverseWallet
|
|
142
142
|
} from "./chunk-3HZRRP4Y.js";
|
|
143
|
-
import {
|
|
144
|
-
braveWallet
|
|
145
|
-
} from "./chunk-BPZ2XJO2.js";
|
|
146
|
-
import "./chunk-DNSG5Q7V.js";
|
|
147
143
|
import {
|
|
148
144
|
bloomWallet
|
|
149
145
|
} from "./chunk-S27IADFU.js";
|
|
150
146
|
import "./chunk-23WIEY36.js";
|
|
147
|
+
import {
|
|
148
|
+
braveWallet
|
|
149
|
+
} from "./chunk-BPZ2XJO2.js";
|
|
150
|
+
import "./chunk-DNSG5Q7V.js";
|
|
151
151
|
export {
|
|
152
152
|
argentWallet,
|
|
153
153
|
bifrostWallet,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funkit/connect",
|
|
3
|
-
"version": "6.14.
|
|
3
|
+
"version": "6.14.12",
|
|
4
4
|
"description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -73,6 +73,8 @@
|
|
|
73
73
|
"vitest": "^3.0.9"
|
|
74
74
|
},
|
|
75
75
|
"dependencies": {
|
|
76
|
+
"@bluvo/react": "^1.2.2",
|
|
77
|
+
"@bluvo/sdk-ts": "^1.2.2",
|
|
76
78
|
"@datadog/browser-logs": "5.22.0",
|
|
77
79
|
"@moonpay/moonpay-react": "^1.6.1",
|
|
78
80
|
"@number-flow/react": "^0.5.5",
|
|
@@ -93,12 +95,12 @@
|
|
|
93
95
|
"ua-parser-js": "^1.0.37",
|
|
94
96
|
"use-debounce": "^10.0.5",
|
|
95
97
|
"uuid": "^9.0.1",
|
|
96
|
-
"@funkit/api-base": "1.12.
|
|
97
|
-
"@funkit/
|
|
98
|
+
"@funkit/api-base": "1.12.10",
|
|
99
|
+
"@funkit/fun-relay": "2.1.2",
|
|
100
|
+
"@funkit/core": "2.3.55",
|
|
98
101
|
"@funkit/utils": "1.1.13",
|
|
99
|
-
"@funkit/
|
|
100
|
-
"@funkit/wagmi-tools": "3.0.
|
|
101
|
-
"@funkit/core": "2.3.54"
|
|
102
|
+
"@funkit/chains": "0.4.2",
|
|
103
|
+
"@funkit/wagmi-tools": "3.0.78"
|
|
102
104
|
},
|
|
103
105
|
"repository": {
|
|
104
106
|
"type": "git",
|