@funkit/connect 6.7.0 → 6.8.0

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,23 @@
1
1
  # @funkit/connect
2
2
 
3
+ ## 6.8.0
4
+
5
+ ### Minor Changes
6
+
7
+ - f740d2d: fix(connect): disable prioritization of "native" tokens and sort assets in wallet solely based on their total value instead
8
+
9
+ ### Patch Changes
10
+
11
+ - 1501166: disable social login wallet
12
+ - 84aba78: add more tokens
13
+ - Updated dependencies [56e4def]
14
+ - Updated dependencies [5772086]
15
+ - Updated dependencies [b3fd390]
16
+ - @funkit/api-base@1.11.1
17
+ - @funkit/fun-relay@2.0.2
18
+ - @funkit/core@2.3.44
19
+ - @funkit/wagmi-tools@3.0.66
20
+
3
21
  ## 6.7.0
4
22
 
5
23
  ### Minor Changes
package/dist/index.js CHANGED
@@ -2439,6 +2439,7 @@ import React36, {
2439
2439
  // src/utils/flags/config.ts
2440
2440
  import {
2441
2441
  BANKR_API_KEY,
2442
+ BASED_API_KEY,
2442
2443
  CAMBRIA_API_KEY,
2443
2444
  DEGEN_API_KEY,
2444
2445
  DEV_API_KEY as DEV_API_KEY2,
@@ -2595,6 +2596,7 @@ var flagConfig = {
2595
2596
  POLYMARKET_API_KEY,
2596
2597
  OSTIUM_API_KEY,
2597
2598
  BANKR_API_KEY,
2599
+ BASED_API_KEY,
2598
2600
  KATANA_API_KEY,
2599
2601
  CAMBRIA_API_KEY,
2600
2602
  HYPERBEAT_API_KEY,
@@ -2647,7 +2649,9 @@ var flagConfig = {
2647
2649
  DEV_API_KEY2,
2648
2650
  POLYMARKET_API_KEY,
2649
2651
  OSTIUM_API_KEY,
2650
- HYPERBEAT_API_KEY
2652
+ HYPERBEAT_API_KEY,
2653
+ HYPERDASH_API_KEY,
2654
+ BASED_API_KEY
2651
2655
  ]
2652
2656
  }
2653
2657
  ],
@@ -2980,7 +2984,14 @@ var flagConfig = {
2980
2984
  {
2981
2985
  key: "apiKey",
2982
2986
  type: "isAnyOf",
2983
- values: [SUSHI_API_KEY, HYPERBEAT_API_KEY, OSTIUM_API_KEY]
2987
+ values: [
2988
+ SUSHI_API_KEY,
2989
+ HYPERSWAP_API_KEY,
2990
+ HYPERBEAT_API_KEY,
2991
+ HYPERDASH_API_KEY,
2992
+ BASED_API_KEY,
2993
+ OSTIUM_API_KEY
2994
+ ]
2984
2995
  }
2985
2996
  ],
2986
2997
  value: true
@@ -7054,12 +7065,15 @@ var ASSET_LOGO_SRCS = {
7054
7065
  WBTC: "https://sdk-cdn.fun.xyz/images/wbtc.svg",
7055
7066
  WEETH: "https://sdk-cdn.fun.xyz/images/weeth.png",
7056
7067
  WETH: "https://sdk-cdn.fun.xyz/images/weth.svg",
7068
+ WHYPE: "https://sdk-cdn.fun.xyz/images/whype.png",
7057
7069
  WSTETH: "https://sdk-cdn.fun.xyz/images/wsteth.png",
7058
7070
  TRUMP: "https://sdk-cdn.fun.xyz/images/trump.png",
7059
7071
  BNB: "https://sdk-cdn.fun.xyz/images/bsc.svg",
7060
7072
  WBNB: "https://sdk-cdn.fun.xyz/images/bsc.svg",
7061
7073
  BTCB: "https://sdk-cdn.fun.xyz/images/btc.svg",
7062
- BUSD: "https://sdk-cdn.fun.xyz/images/busd.svg"
7074
+ UBTC: "https://sdk-cdn.fun.xyz/images/btc.svg",
7075
+ BUSD: "https://sdk-cdn.fun.xyz/images/busd.svg",
7076
+ XAUT: "https://sdk-cdn.fun.xyz/images/xaut.png"
7063
7077
  };
7064
7078
  var FALLBACK_ASSET = "https://sdk-cdn.fun.xyz/images/dollar_circle.png";
7065
7079
 
@@ -12302,7 +12316,7 @@ var WithdrawContent = ({
12302
12316
  );
12303
12317
  const isWithdrawAmountValid = Number(amount) > 0 && Number(amount) <= sourceTokenBalance;
12304
12318
  const withdrawalWalletAddress = config.wallet.address();
12305
- const showUseConnected = isConnected && connectedWalletAddress && withdrawalWalletAddress.toLowerCase() !== connectedWalletAddress.toLowerCase();
12319
+ const showUseConnected = !config.disableConnectedWallet && isConnected && connectedWalletAddress && withdrawalWalletAddress.toLowerCase() !== connectedWalletAddress.toLowerCase();
12306
12320
  useEffect27(() => {
12307
12321
  logger.debug("withdrawalContent:showUseConnected", {
12308
12322
  isConnected,
@@ -22604,8 +22618,7 @@ function useAssetOptions({
22604
22618
  }).sort(
22605
22619
  (a, b) => (
22606
22620
  // Place non disabled tokens first
22607
- Number(a.isDisabled) - Number(b.isDisabled) || // Place user selected token first
22608
- Number(b.isUserSelected) - Number(a.isUserSelected) || // Place higher usdAmount assets first
22621
+ Number(a.isDisabled) - Number(b.isDisabled) || // Place higher usdAmount assets first
22609
22622
  (b.asset.usdAmount || 0) - (a.asset.usdAmount || 0)
22610
22623
  )
22611
22624
  );
@@ -31897,7 +31910,7 @@ function setFunkitConnectVersion({ version }) {
31897
31910
  localStorage.setItem(storageKey5, version);
31898
31911
  }
31899
31912
  function getCurrentSdkVersion() {
31900
- return "6.7.0";
31913
+ return "6.8.0";
31901
31914
  }
31902
31915
  function useFingerprint() {
31903
31916
  const fingerprint = useCallback51(() => {
@@ -82,6 +82,8 @@ export interface FunkitWithdrawalConfig {
82
82
  sourceTokenAddress: Address;
83
83
  /** Wallet instance used to execute the quote */
84
84
  wallet: WithdrawalClient;
85
+ /** Disable connected option for email login user */
86
+ disableConnectedWallet?: boolean;
85
87
  }
86
88
  export interface FunkitCheckoutValidationResult {
87
89
  isValid: boolean;
@@ -2,21 +2,21 @@
2
2
  import {
3
3
  xdefiWallet
4
4
  } from "./chunk-BOU4WKRZ.js";
5
+ import {
6
+ walletConnectWallet
7
+ } from "./chunk-NP5QGWNL.js";
5
8
  import {
6
9
  zerionWallet
7
10
  } from "./chunk-Q3H3TRBS.js";
8
- import {
9
- zealWallet
10
- } from "./chunk-RNBEDQHF.js";
11
11
  import {
12
12
  subWallet
13
13
  } from "./chunk-ZSI5N4VV.js";
14
- import {
15
- tahoWallet
16
- } from "./chunk-ZZZRUXZE.js";
17
14
  import {
18
15
  tokenPocketWallet
19
16
  } from "./chunk-J3LI3FYZ.js";
17
+ import {
18
+ tahoWallet
19
+ } from "./chunk-ZZZRUXZE.js";
20
20
  import {
21
21
  talismanWallet
22
22
  } from "./chunk-DRO6WYMM.js";
@@ -30,50 +30,47 @@ import {
30
30
  uniswapWallet
31
31
  } from "./chunk-LH7BMNFZ.js";
32
32
  import {
33
- walletConnectWallet
34
- } from "./chunk-NP5QGWNL.js";
35
- import {
36
- phantomWallet
37
- } from "./chunk-362NXNTM.js";
33
+ zealWallet
34
+ } from "./chunk-RNBEDQHF.js";
38
35
  import {
39
36
  rabbyWallet
40
37
  } from "./chunk-BBOM42DL.js";
38
+ import {
39
+ phantomWallet
40
+ } from "./chunk-362NXNTM.js";
41
41
  import {
42
42
  rainbowWallet
43
43
  } from "./chunk-3CICVJUN.js";
44
+ import {
45
+ ramperWallet
46
+ } from "./chunk-BYXPFMI7.js";
44
47
  import {
45
48
  roninWallet
46
49
  } from "./chunk-QLVVUKYB.js";
47
50
  import {
48
51
  safeWallet
49
52
  } from "./chunk-BQQQL6UD.js";
50
- import {
51
- ramperWallet
52
- } from "./chunk-BYXPFMI7.js";
53
53
  import {
54
54
  safeheronWallet
55
55
  } from "./chunk-RZIO5TFF.js";
56
56
  import {
57
57
  safepalWallet
58
58
  } from "./chunk-EC6CHBSZ.js";
59
- import {
60
- metaMaskWallet
61
- } from "./chunk-UYGJO62F.js";
62
59
  import {
63
60
  ledgerWallet
64
61
  } from "./chunk-BRBKM4PW.js";
65
62
  import {
66
- oktoWallet
67
- } from "./chunk-ADIXAKUL.js";
63
+ metaMaskWallet
64
+ } from "./chunk-UYGJO62F.js";
68
65
  import {
69
66
  mewWallet
70
67
  } from "./chunk-OL5ZO7E4.js";
71
- import {
72
- oneInchWallet
73
- } from "./chunk-OESTDX6I.js";
74
68
  import {
75
69
  okxWallet
76
70
  } from "./chunk-AFXHGWBH.js";
71
+ import {
72
+ oktoWallet
73
+ } from "./chunk-ADIXAKUL.js";
77
74
  import {
78
75
  omniWallet
79
76
  } from "./chunk-7CUY5G6R.js";
@@ -81,11 +78,14 @@ import {
81
78
  oneKeyWallet
82
79
  } from "./chunk-SHBUZ7U7.js";
83
80
  import {
84
- foxWallet
85
- } from "./chunk-CNPKISHN.js";
81
+ oneInchWallet
82
+ } from "./chunk-OESTDX6I.js";
86
83
  import {
87
84
  frameWallet
88
85
  } from "./chunk-IFON7E6U.js";
86
+ import {
87
+ foxWallet
88
+ } from "./chunk-CNPKISHN.js";
89
89
  import {
90
90
  frontierWallet
91
91
  } from "./chunk-VWCLFMWJ.js";
@@ -95,58 +95,58 @@ import {
95
95
  import {
96
96
  imTokenWallet
97
97
  } from "./chunk-COZ7MIQS.js";
98
- import {
99
- injectedWallet
100
- } from "./chunk-XWUJE7MW.js";
101
98
  import {
102
99
  kresusWallet
103
100
  } from "./chunk-MJXPRJZT.js";
104
101
  import {
105
- bybitWallet
106
- } from "./chunk-LNEC5RNX.js";
102
+ injectedWallet
103
+ } from "./chunk-XWUJE7MW.js";
104
+ import {
105
+ braveWallet
106
+ } from "./chunk-BPZ2XJO2.js";
107
107
  import {
108
108
  clvWallet
109
109
  } from "./chunk-2GJQ4XZQ.js";
110
- import {
111
- coin98Wallet
112
- } from "./chunk-KIDC67XJ.js";
113
110
  import {
114
111
  coinbaseWallet
115
112
  } from "./chunk-H4IRCEZN.js";
113
+ import {
114
+ coin98Wallet
115
+ } from "./chunk-KIDC67XJ.js";
116
116
  import {
117
117
  coreWallet
118
118
  } from "./chunk-JCHN6A47.js";
119
119
  import {
120
120
  dawnWallet
121
121
  } from "./chunk-HWPKCIBE.js";
122
- import {
123
- enkryptWallet
124
- } from "./chunk-OLOIXTYS.js";
125
122
  import {
126
123
  desigWallet
127
124
  } from "./chunk-OPAZMNA7.js";
125
+ import {
126
+ enkryptWallet
127
+ } from "./chunk-OLOIXTYS.js";
128
128
  import {
129
129
  argentWallet
130
130
  } from "./chunk-WSQ2YJO2.js";
131
131
  import {
132
132
  bifrostWallet
133
133
  } from "./chunk-UIASLGLV.js";
134
+ import {
135
+ bitgetWallet
136
+ } from "./chunk-5W7VDOCL.js";
134
137
  import {
135
138
  bitskiWallet
136
139
  } from "./chunk-HS3C7OQV.js";
140
+ import {
141
+ bloomWallet
142
+ } from "./chunk-S27IADFU.js";
137
143
  import {
138
144
  bitverseWallet
139
145
  } from "./chunk-3HZRRP4Y.js";
140
146
  import {
141
- braveWallet
142
- } from "./chunk-BPZ2XJO2.js";
143
- import {
144
- bitgetWallet
145
- } from "./chunk-5W7VDOCL.js";
147
+ bybitWallet
148
+ } from "./chunk-LNEC5RNX.js";
146
149
  import "./chunk-DNSG5Q7V.js";
147
- import {
148
- bloomWallet
149
- } from "./chunk-S27IADFU.js";
150
150
  import "./chunk-23WIEY36.js";
151
151
  export {
152
152
  argentWallet,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funkit/connect",
3
- "version": "6.7.0",
3
+ "version": "6.8.0",
4
4
  "description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
5
5
  "files": [
6
6
  "dist",
@@ -94,12 +94,12 @@
94
94
  "ua-parser-js": "^1.0.37",
95
95
  "use-debounce": "^10.0.5",
96
96
  "uuid": "^9.0.1",
97
- "@funkit/api-base": "1.11.0",
98
- "@funkit/core": "2.3.43",
99
- "@funkit/chains": "0.3.10",
100
- "@funkit/fun-relay": "2.0.1",
97
+ "@funkit/api-base": "1.11.1",
98
+ "@funkit/fun-relay": "2.0.2",
99
+ "@funkit/core": "2.3.44",
101
100
  "@funkit/utils": "1.1.8",
102
- "@funkit/wagmi-tools": "3.0.65"
101
+ "@funkit/chains": "0.3.10",
102
+ "@funkit/wagmi-tools": "3.0.66"
103
103
  },
104
104
  "repository": {
105
105
  "type": "git",