@funkit/connect 6.14.5 → 6.14.6
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 +8 -0
- package/dist/index.js +23 -6
- 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 +64 -64
- 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 +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @funkit/connect
|
|
2
2
|
|
|
3
|
+
## 6.14.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 815e2ad: Skip geoblocking for Hyperdash customers
|
|
8
|
+
- 04eab85: fix: payment source "new sources" array for wallet connection
|
|
9
|
+
- 20a0bb5: feat(connect): redirect user to select asset screen after wallet connection
|
|
10
|
+
|
|
3
11
|
## 6.14.5
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -3084,6 +3084,7 @@ function useFunkitUserIp() {
|
|
|
3084
3084
|
const { apiKey } = useFunkitConfig();
|
|
3085
3085
|
const isPolymarket = isPolymarketCustomer(apiKey);
|
|
3086
3086
|
const isHyperbeat = isHyperbeatCustomer(apiKey);
|
|
3087
|
+
const isHyperdash = isHyperdashCustomer(apiKey);
|
|
3087
3088
|
const { data: userIpInfo, isLoading: isLoadingGeoCheck } = useQuery({
|
|
3088
3089
|
queryKey: ["getUserIpInfo"],
|
|
3089
3090
|
queryFn: async () => {
|
|
@@ -3114,7 +3115,7 @@ function useFunkitUserIp() {
|
|
|
3114
3115
|
refetchOnWindowFocus: false
|
|
3115
3116
|
});
|
|
3116
3117
|
const isUserGeoblocked = useMemo5(() => {
|
|
3117
|
-
if (isLoadingFlags || isLoadingGeoCheck || isPolymarket || isHyperbeat) {
|
|
3118
|
+
if (isLoadingFlags || isLoadingGeoCheck || isPolymarket || isHyperbeat || isHyperdash) {
|
|
3118
3119
|
return false;
|
|
3119
3120
|
}
|
|
3120
3121
|
if (!userIpInfo) {
|
|
@@ -3128,7 +3129,8 @@ function useFunkitUserIp() {
|
|
|
3128
3129
|
isLoadingGeoCheck,
|
|
3129
3130
|
userIpInfo,
|
|
3130
3131
|
isPolymarket,
|
|
3131
|
-
isHyperbeat
|
|
3132
|
+
isHyperbeat,
|
|
3133
|
+
isHyperdash
|
|
3132
3134
|
]);
|
|
3133
3135
|
return {
|
|
3134
3136
|
isLoadingGeoCheck: isLoadingFlags || isLoadingGeoCheck,
|
|
@@ -22360,7 +22362,7 @@ var usePaymentSources = (paymentMethodInfo, targetChainId, checkoutConfig) => {
|
|
|
22360
22362
|
const ignoreFallback = isConnected && !hasUsableBalance;
|
|
22361
22363
|
const fallback2 = connected.length === 0 && !ignoreFallback ? isTokenTransferEnabled ? ["token_transfer" /* TOKEN_TRANSFER */] : isCardEnabled ? ["card" /* CARD */] : ["balance" /* ACCOUNT_BALANCE */] : [];
|
|
22362
22364
|
const isTokenInNewSources = !fallback2.includes("token_transfer" /* TOKEN_TRANSFER */) && isTokenTransferEnabled;
|
|
22363
|
-
const isWalletInNewSources = !isConnected;
|
|
22365
|
+
const isWalletInNewSources = !isConnected && !fallback2.includes("balance" /* ACCOUNT_BALANCE */);
|
|
22364
22366
|
const isBankInNewSources = !matchingFiatAccount && isConnected && isFiatEnabled;
|
|
22365
22367
|
const newSources = [
|
|
22366
22368
|
isTokenInNewSources && "token_transfer" /* TOKEN_TRANSFER */,
|
|
@@ -23924,6 +23926,7 @@ function SourceChange({
|
|
|
23924
23926
|
const matchingFiatAccount = useMatchingVirtualFiatAccount(fiatAccounts);
|
|
23925
23927
|
const { apiKey, textCustomizations } = useFunkitConfig();
|
|
23926
23928
|
const enableMeldPayment = useIsMeldEnabled();
|
|
23929
|
+
const userInfo = useFunkitUserInfo();
|
|
23927
23930
|
const isDefiMode = checkoutItem?.initSettings.config.isDefiMode;
|
|
23928
23931
|
const hasAutoContinue = !isOstiumCustomer(apiKey) && !isDefiMode;
|
|
23929
23932
|
useEffect42(() => {
|
|
@@ -23947,11 +23950,25 @@ function SourceChange({
|
|
|
23947
23950
|
brokerageFailed: false
|
|
23948
23951
|
});
|
|
23949
23952
|
};
|
|
23950
|
-
const onCloseConnectModal = () => {
|
|
23953
|
+
const onCloseConnectModal = useCallback35(() => {
|
|
23951
23954
|
if (modalState.isSoftHidden) {
|
|
23952
23955
|
setModalState((state) => ({ ...state, isSoftHidden: false }));
|
|
23953
23956
|
}
|
|
23954
|
-
|
|
23957
|
+
const shouldGoToSelectAssetScreen = !modalState.isSoftHidden && userInfo.isConnected && moreSources.length === 0 && modalState.step === "source_change" /* SOURCE_CHANGE */ && modalState.startingStep === "select_asset" /* SELECT_ASSET */;
|
|
23958
|
+
if (shouldGoToSelectAssetScreen) {
|
|
23959
|
+
const paymentMethodInfo2 = createPaymentMethodInfo({
|
|
23960
|
+
paymentMethod: "balance" /* ACCOUNT_BALANCE */,
|
|
23961
|
+
walletAddress: userInfo.address
|
|
23962
|
+
});
|
|
23963
|
+
handleConnectedSourceContinue(paymentMethodInfo2);
|
|
23964
|
+
}
|
|
23965
|
+
}, [
|
|
23966
|
+
modalState.isSoftHidden,
|
|
23967
|
+
modalState.step,
|
|
23968
|
+
modalState.startingStep,
|
|
23969
|
+
userInfo.isConnected,
|
|
23970
|
+
userInfo.address
|
|
23971
|
+
]);
|
|
23955
23972
|
const { openConnectModal } = useConnectModal(
|
|
23956
23973
|
checkoutItem?.initSettings.onLoginRequired ? void 0 : onCloseConnectModal
|
|
23957
23974
|
);
|
|
@@ -31959,7 +31976,7 @@ function setFunkitConnectVersion({ version }) {
|
|
|
31959
31976
|
localStorage.setItem(storageKey5, version);
|
|
31960
31977
|
}
|
|
31961
31978
|
function getCurrentSdkVersion() {
|
|
31962
|
-
return "6.14.
|
|
31979
|
+
return "6.14.6";
|
|
31963
31980
|
}
|
|
31964
31981
|
function useFingerprint() {
|
|
31965
31982
|
const fingerprint = useCallback52(() => {
|
|
@@ -4,28 +4,25 @@ import {
|
|
|
4
4
|
} from "./chunk-BOU4WKRZ.js";
|
|
5
5
|
import {
|
|
6
6
|
zerionWallet
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-Q3H3TRBS.js";
|
|
8
8
|
import {
|
|
9
9
|
zealWallet
|
|
10
10
|
} from "./chunk-RNBEDQHF.js";
|
|
11
|
-
import {
|
|
12
|
-
tahoWallet
|
|
13
|
-
} from "./chunk-ZZZRUXZE.js";
|
|
14
11
|
import {
|
|
15
12
|
subWallet
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import {
|
|
18
|
-
talismanWallet
|
|
19
|
-
} from "./chunk-DRO6WYMM.js";
|
|
13
|
+
} from "./chunk-ZSI5N4VV.js";
|
|
20
14
|
import {
|
|
21
15
|
tokenPocketWallet
|
|
22
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-J3LI3FYZ.js";
|
|
23
17
|
import {
|
|
24
|
-
|
|
25
|
-
} from "./chunk-
|
|
18
|
+
talismanWallet
|
|
19
|
+
} from "./chunk-DRO6WYMM.js";
|
|
26
20
|
import {
|
|
27
21
|
tokenaryWallet
|
|
28
22
|
} from "./chunk-D6AOOO5F.js";
|
|
23
|
+
import {
|
|
24
|
+
trustWallet
|
|
25
|
+
} from "./chunk-RKPCWHXL.js";
|
|
29
26
|
import {
|
|
30
27
|
uniswapWallet
|
|
31
28
|
} from "./chunk-LH7BMNFZ.js";
|
|
@@ -33,89 +30,92 @@ import {
|
|
|
33
30
|
walletConnectWallet
|
|
34
31
|
} from "./chunk-NP5QGWNL.js";
|
|
35
32
|
import {
|
|
36
|
-
|
|
37
|
-
} from "./chunk-
|
|
33
|
+
tahoWallet
|
|
34
|
+
} from "./chunk-ZZZRUXZE.js";
|
|
35
|
+
import {
|
|
36
|
+
omniWallet
|
|
37
|
+
} from "./chunk-7CUY5G6R.js";
|
|
38
38
|
import {
|
|
39
39
|
rainbowWallet
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-3CICVJUN.js";
|
|
41
41
|
import {
|
|
42
|
-
|
|
43
|
-
} from "./chunk-
|
|
42
|
+
rabbyWallet
|
|
43
|
+
} from "./chunk-BBOM42DL.js";
|
|
44
44
|
import {
|
|
45
45
|
ramperWallet
|
|
46
46
|
} from "./chunk-BYXPFMI7.js";
|
|
47
47
|
import {
|
|
48
|
-
|
|
49
|
-
} from "./chunk-
|
|
48
|
+
roninWallet
|
|
49
|
+
} from "./chunk-QLVVUKYB.js";
|
|
50
50
|
import {
|
|
51
|
-
|
|
52
|
-
} from "./chunk-
|
|
51
|
+
safeWallet
|
|
52
|
+
} from "./chunk-BQQQL6UD.js";
|
|
53
53
|
import {
|
|
54
54
|
safeheronWallet
|
|
55
55
|
} from "./chunk-RZIO5TFF.js";
|
|
56
56
|
import {
|
|
57
57
|
safepalWallet
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-EC6CHBSZ.js";
|
|
59
59
|
import {
|
|
60
|
-
|
|
61
|
-
} from "./chunk-
|
|
60
|
+
mewWallet
|
|
61
|
+
} from "./chunk-OL5ZO7E4.js";
|
|
62
62
|
import {
|
|
63
63
|
oktoWallet
|
|
64
64
|
} from "./chunk-ADIXAKUL.js";
|
|
65
|
-
import {
|
|
66
|
-
omniWallet
|
|
67
|
-
} from "./chunk-7CUY5G6R.js";
|
|
68
|
-
import {
|
|
69
|
-
phantomWallet
|
|
70
|
-
} from "./chunk-362NXNTM.js";
|
|
71
65
|
import {
|
|
72
66
|
okxWallet
|
|
73
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-AFXHGWBH.js";
|
|
74
68
|
import {
|
|
75
69
|
oneInchWallet
|
|
76
70
|
} from "./chunk-OESTDX6I.js";
|
|
77
71
|
import {
|
|
78
|
-
|
|
79
|
-
} from "./chunk-
|
|
72
|
+
metaMaskWallet
|
|
73
|
+
} from "./chunk-UYGJO62F.js";
|
|
80
74
|
import {
|
|
81
|
-
|
|
82
|
-
} from "./chunk-
|
|
75
|
+
injectedWallet
|
|
76
|
+
} from "./chunk-XWUJE7MW.js";
|
|
77
|
+
import {
|
|
78
|
+
phantomWallet
|
|
79
|
+
} from "./chunk-362NXNTM.js";
|
|
80
|
+
import {
|
|
81
|
+
oneKeyWallet
|
|
82
|
+
} from "./chunk-SHBUZ7U7.js";
|
|
83
83
|
import {
|
|
84
84
|
foxWallet
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-CNPKISHN.js";
|
|
86
86
|
import {
|
|
87
87
|
frontierWallet
|
|
88
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-VWCLFMWJ.js";
|
|
89
|
+
import {
|
|
90
|
+
frameWallet
|
|
91
|
+
} from "./chunk-IFON7E6U.js";
|
|
89
92
|
import {
|
|
90
93
|
gateWallet
|
|
91
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-CJGUM55H.js";
|
|
92
95
|
import {
|
|
93
96
|
imTokenWallet
|
|
94
97
|
} from "./chunk-COZ7MIQS.js";
|
|
95
98
|
import {
|
|
96
|
-
|
|
97
|
-
} from "./chunk-
|
|
98
|
-
import {
|
|
99
|
-
injectedWallet
|
|
100
|
-
} from "./chunk-XWUJE7MW.js";
|
|
101
|
-
import {
|
|
102
|
-
mewWallet
|
|
103
|
-
} from "./chunk-OL5ZO7E4.js";
|
|
99
|
+
ledgerWallet
|
|
100
|
+
} from "./chunk-BRBKM4PW.js";
|
|
104
101
|
import {
|
|
105
|
-
|
|
106
|
-
} from "./chunk-
|
|
102
|
+
kresusWallet
|
|
103
|
+
} from "./chunk-MJXPRJZT.js";
|
|
107
104
|
import {
|
|
108
|
-
|
|
109
|
-
} from "./chunk-
|
|
105
|
+
braveWallet
|
|
106
|
+
} from "./chunk-BPZ2XJO2.js";
|
|
110
107
|
import {
|
|
111
|
-
|
|
112
|
-
} from "./chunk-
|
|
108
|
+
bitverseWallet
|
|
109
|
+
} from "./chunk-3HZRRP4Y.js";
|
|
113
110
|
import {
|
|
114
111
|
coinbaseWallet
|
|
115
112
|
} from "./chunk-H4IRCEZN.js";
|
|
113
|
+
import {
|
|
114
|
+
bybitWallet
|
|
115
|
+
} from "./chunk-LNEC5RNX.js";
|
|
116
116
|
import {
|
|
117
117
|
coreWallet
|
|
118
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-JCHN6A47.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
|
+
enkryptWallet
|
|
127
|
+
} from "./chunk-OLOIXTYS.js";
|
|
128
|
+
import {
|
|
129
|
+
bifrostWallet
|
|
130
|
+
} from "./chunk-UIASLGLV.js";
|
|
128
131
|
import {
|
|
129
132
|
argentWallet
|
|
130
133
|
} from "./chunk-WSQ2YJO2.js";
|
|
131
|
-
import {
|
|
132
|
-
bifrostWallet
|
|
133
|
-
} from "./chunk-A5N6B5UW.js";
|
|
134
134
|
import {
|
|
135
135
|
bitskiWallet
|
|
136
136
|
} from "./chunk-HS3C7OQV.js";
|
|
137
137
|
import {
|
|
138
138
|
bitgetWallet
|
|
139
|
-
} from "./chunk-
|
|
140
|
-
import {
|
|
141
|
-
bitverseWallet
|
|
142
|
-
} from "./chunk-3HZRRP4Y.js";
|
|
139
|
+
} from "./chunk-5W7VDOCL.js";
|
|
143
140
|
import {
|
|
144
141
|
bloomWallet
|
|
145
142
|
} from "./chunk-S27IADFU.js";
|
|
146
|
-
import "./chunk-23WIEY36.js";
|
|
147
143
|
import {
|
|
148
|
-
|
|
149
|
-
} from "./chunk-
|
|
144
|
+
clvWallet
|
|
145
|
+
} from "./chunk-2GJQ4XZQ.js";
|
|
146
|
+
import {
|
|
147
|
+
coin98Wallet
|
|
148
|
+
} from "./chunk-KIDC67XJ.js";
|
|
150
149
|
import "./chunk-DNSG5Q7V.js";
|
|
150
|
+
import "./chunk-23WIEY36.js";
|
|
151
151
|
export {
|
|
152
152
|
argentWallet,
|
|
153
153
|
bifrostWallet,
|