@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 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.5";
31979
+ return "6.14.6";
31963
31980
  }
31964
31981
  function useFingerprint() {
31965
31982
  const fingerprint = useCallback52(() => {
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  bifrostWallet
4
- } from "../chunk-A5N6B5UW.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-UIASLGLV.js";
6
5
  import "../chunk-DNSG5Q7V.js";
6
+ import "../chunk-23WIEY36.js";
7
7
  export {
8
8
  bifrostWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  bitgetWallet
4
- } from "../chunk-TDAVGY5F.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-5W7VDOCL.js";
6
5
  import "../chunk-DNSG5Q7V.js";
6
+ import "../chunk-23WIEY36.js";
7
7
  export {
8
8
  bitgetWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  bybitWallet
4
- } from "../chunk-2STUC6QL.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-LNEC5RNX.js";
6
5
  import "../chunk-DNSG5Q7V.js";
6
+ import "../chunk-23WIEY36.js";
7
7
  export {
8
8
  bybitWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  clvWallet
4
- } from "../chunk-M3NZ6R2E.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-2GJQ4XZQ.js";
6
5
  import "../chunk-DNSG5Q7V.js";
6
+ import "../chunk-23WIEY36.js";
7
7
  export {
8
8
  clvWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  coin98Wallet
4
- } from "../chunk-OBOVHCEI.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-KIDC67XJ.js";
6
5
  import "../chunk-DNSG5Q7V.js";
6
+ import "../chunk-23WIEY36.js";
7
7
  export {
8
8
  coin98Wallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  coreWallet
4
- } from "../chunk-VR4TBQ6S.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-JCHN6A47.js";
6
5
  import "../chunk-DNSG5Q7V.js";
6
+ import "../chunk-23WIEY36.js";
7
7
  export {
8
8
  coreWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  foxWallet
4
- } from "../chunk-7QONTUXT.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-CNPKISHN.js";
6
5
  import "../chunk-DNSG5Q7V.js";
6
+ import "../chunk-23WIEY36.js";
7
7
  export {
8
8
  foxWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  frontierWallet
4
- } from "../chunk-TCAGNB4B.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-VWCLFMWJ.js";
6
5
  import "../chunk-DNSG5Q7V.js";
6
+ import "../chunk-23WIEY36.js";
7
7
  export {
8
8
  frontierWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  gateWallet
4
- } from "../chunk-FKJJQNKX.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-CJGUM55H.js";
6
5
  import "../chunk-DNSG5Q7V.js";
6
+ import "../chunk-23WIEY36.js";
7
7
  export {
8
8
  gateWallet
9
9
  };
@@ -4,28 +4,25 @@ import {
4
4
  } from "./chunk-BOU4WKRZ.js";
5
5
  import {
6
6
  zerionWallet
7
- } from "./chunk-SULRQO27.js";
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-JWFF4AAL.js";
17
- import {
18
- talismanWallet
19
- } from "./chunk-DRO6WYMM.js";
13
+ } from "./chunk-ZSI5N4VV.js";
20
14
  import {
21
15
  tokenPocketWallet
22
- } from "./chunk-2L43XSW3.js";
16
+ } from "./chunk-J3LI3FYZ.js";
23
17
  import {
24
- trustWallet
25
- } from "./chunk-VYBAYMP3.js";
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
- oneKeyWallet
37
- } from "./chunk-SHBUZ7U7.js";
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-2KUBG3S6.js";
40
+ } from "./chunk-3CICVJUN.js";
41
41
  import {
42
- safeWallet
43
- } from "./chunk-BQQQL6UD.js";
42
+ rabbyWallet
43
+ } from "./chunk-BBOM42DL.js";
44
44
  import {
45
45
  ramperWallet
46
46
  } from "./chunk-BYXPFMI7.js";
47
47
  import {
48
- metaMaskWallet
49
- } from "./chunk-2HYNUNAS.js";
48
+ roninWallet
49
+ } from "./chunk-QLVVUKYB.js";
50
50
  import {
51
- kresusWallet
52
- } from "./chunk-MJXPRJZT.js";
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-NT2HYJKW.js";
58
+ } from "./chunk-EC6CHBSZ.js";
59
59
  import {
60
- ledgerWallet
61
- } from "./chunk-BRBKM4PW.js";
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-TDIEHTMB.js";
67
+ } from "./chunk-AFXHGWBH.js";
74
68
  import {
75
69
  oneInchWallet
76
70
  } from "./chunk-OESTDX6I.js";
77
71
  import {
78
- roninWallet
79
- } from "./chunk-NWIQNBJU.js";
72
+ metaMaskWallet
73
+ } from "./chunk-UYGJO62F.js";
80
74
  import {
81
- rabbyWallet
82
- } from "./chunk-BBOM42DL.js";
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-7QONTUXT.js";
85
+ } from "./chunk-CNPKISHN.js";
86
86
  import {
87
87
  frontierWallet
88
- } from "./chunk-TCAGNB4B.js";
88
+ } from "./chunk-VWCLFMWJ.js";
89
+ import {
90
+ frameWallet
91
+ } from "./chunk-IFON7E6U.js";
89
92
  import {
90
93
  gateWallet
91
- } from "./chunk-FKJJQNKX.js";
94
+ } from "./chunk-CJGUM55H.js";
92
95
  import {
93
96
  imTokenWallet
94
97
  } from "./chunk-COZ7MIQS.js";
95
98
  import {
96
- enkryptWallet
97
- } from "./chunk-OLOIXTYS.js";
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
- bybitWallet
106
- } from "./chunk-2STUC6QL.js";
102
+ kresusWallet
103
+ } from "./chunk-MJXPRJZT.js";
107
104
  import {
108
- clvWallet
109
- } from "./chunk-M3NZ6R2E.js";
105
+ braveWallet
106
+ } from "./chunk-BPZ2XJO2.js";
110
107
  import {
111
- coin98Wallet
112
- } from "./chunk-OBOVHCEI.js";
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-VR4TBQ6S.js";
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
- frameWallet
127
- } from "./chunk-IFON7E6U.js";
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-TDAVGY5F.js";
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
- braveWallet
149
- } from "./chunk-BPZ2XJO2.js";
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,
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  metaMaskWallet
4
- } from "../chunk-2HYNUNAS.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-UYGJO62F.js";
6
5
  import "../chunk-DNSG5Q7V.js";
6
+ import "../chunk-23WIEY36.js";
7
7
  export {
8
8
  metaMaskWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  okxWallet
4
- } from "../chunk-TDIEHTMB.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-AFXHGWBH.js";
6
5
  import "../chunk-DNSG5Q7V.js";
6
+ import "../chunk-23WIEY36.js";
7
7
  export {
8
8
  okxWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  rainbowWallet
4
- } from "../chunk-2KUBG3S6.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-3CICVJUN.js";
6
5
  import "../chunk-DNSG5Q7V.js";
6
+ import "../chunk-23WIEY36.js";
7
7
  export {
8
8
  rainbowWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  roninWallet
4
- } from "../chunk-NWIQNBJU.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-QLVVUKYB.js";
6
5
  import "../chunk-DNSG5Q7V.js";
6
+ import "../chunk-23WIEY36.js";
7
7
  export {
8
8
  roninWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  safepalWallet
4
- } from "../chunk-NT2HYJKW.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-EC6CHBSZ.js";
6
5
  import "../chunk-DNSG5Q7V.js";
6
+ import "../chunk-23WIEY36.js";
7
7
  export {
8
8
  safepalWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  subWallet
4
- } from "../chunk-JWFF4AAL.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-ZSI5N4VV.js";
6
5
  import "../chunk-DNSG5Q7V.js";
6
+ import "../chunk-23WIEY36.js";
7
7
  export {
8
8
  subWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  tokenPocketWallet
4
- } from "../chunk-2L43XSW3.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-J3LI3FYZ.js";
6
5
  import "../chunk-DNSG5Q7V.js";
6
+ import "../chunk-23WIEY36.js";
7
7
  export {
8
8
  tokenPocketWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  trustWallet
4
- } from "../chunk-VYBAYMP3.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-RKPCWHXL.js";
6
5
  import "../chunk-DNSG5Q7V.js";
6
+ import "../chunk-23WIEY36.js";
7
7
  export {
8
8
  trustWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  zerionWallet
4
- } from "../chunk-SULRQO27.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-Q3H3TRBS.js";
6
5
  import "../chunk-DNSG5Q7V.js";
6
+ import "../chunk-23WIEY36.js";
7
7
  export {
8
8
  zerionWallet
9
9
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funkit/connect",
3
- "version": "6.14.5",
3
+ "version": "6.14.6",
4
4
  "description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
5
5
  "files": [
6
6
  "dist",