@funkit/connect 1.2.4 → 1.2.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 +12 -0
- package/dist/index.css +5 -5
- package/dist/index.js +5 -4
- package/dist/wallets/walletConnectors/index.js +60 -60
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
package/dist/index.css
CHANGED
|
@@ -4666,7 +4666,7 @@
|
|
|
4666
4666
|
text-overflow: ellipsis;
|
|
4667
4667
|
}
|
|
4668
4668
|
|
|
4669
|
-
/* vanilla-extract-css-ns:src/components/Dialog/DialogContent.css.ts.vanilla.css?source=
|
|
4669
|
+
/* vanilla-extract-css-ns:src/components/Dialog/DialogContent.css.ts.vanilla.css?source=Ll8xcHp0NDIzMSB7CiAgYm94LXNpemluZzogY29udGVudC1ib3g7CiAgbWF4LXdpZHRoOiAxMDB2dzsKICB3aWR0aDogNDU1cHg7Cn0KLl8xcHp0NDIzMiB7CiAgd2lkdGg6IDEwMHZ3Owp9Ci5fMXB6dDQyMzMgewogIHdpZHRoOiA3MjBweDsKfQouXzFwenQ0MjM0IHsKICBtaW4td2lkdGg6IDQwMHB4OwogIHdpZHRoOiA0MDBweDsKfQouXzFwenQ0MjM2IHsKICBib3JkZXItd2lkdGg6IDE7CiAgYm94LXNpemluZzogYm9yZGVyLWJveDsKICB3aWR0aDogMTAwdnc7Cn0KQG1lZGlhIHNjcmVlbiBhbmQgKG1pbi13aWR0aDogNzY4cHgpIHsKICAuXzFwenQ0MjMxIHsKICAgIHdpZHRoOiA0NTVweDsKICB9CiAgLl8xcHp0NDIzMiB7CiAgICB3aWR0aDogNDgwcHg7CiAgfQogIC5fMXB6dDQyMzQgewogICAgbWluLXdpZHRoOiA0MDBweDsKICAgIHdpZHRoOiA0MDBweDsKICB9Cn0KQG1lZGlhIHNjcmVlbiBhbmQgKG1heC13aWR0aDogNzY3cHgpIHsKICAuXzFwenQ0MjM3IHsKICAgIGJvcmRlci1ib3R0b20tbGVmdC1yYWRpdXM6IDA7CiAgICBib3JkZXItYm90dG9tLXJpZ2h0LXJhZGl1czogMDsKICAgIG1hcmdpbi10b3A6IC0yMDBweDsKICAgIHBhZGRpbmctYm90dG9tOiAyMDBweDsKICAgIHRvcDogMjAwcHg7CiAgfQp9 */
|
|
4670
4670
|
[data-rk] ._1pzt4231 {
|
|
4671
4671
|
box-sizing: content-box;
|
|
4672
4672
|
max-width: 100vw;
|
|
@@ -4679,8 +4679,8 @@
|
|
|
4679
4679
|
width: 720px;
|
|
4680
4680
|
}
|
|
4681
4681
|
[data-rk] ._1pzt4234 {
|
|
4682
|
-
min-width:
|
|
4683
|
-
width:
|
|
4682
|
+
min-width: 400px;
|
|
4683
|
+
width: 400px;
|
|
4684
4684
|
}
|
|
4685
4685
|
[data-rk] ._1pzt4236 {
|
|
4686
4686
|
border-width: 1;
|
|
@@ -4695,8 +4695,8 @@
|
|
|
4695
4695
|
width: 480px;
|
|
4696
4696
|
}
|
|
4697
4697
|
[data-rk] ._1pzt4234 {
|
|
4698
|
-
min-width:
|
|
4699
|
-
width:
|
|
4698
|
+
min-width: 400px;
|
|
4699
|
+
width: 400px;
|
|
4700
4700
|
}
|
|
4701
4701
|
}
|
|
4702
4702
|
@media screen and (max-width: 767px) {
|
package/dist/index.js
CHANGED
|
@@ -1896,6 +1896,7 @@ import {
|
|
|
1896
1896
|
formatEther,
|
|
1897
1897
|
pad
|
|
1898
1898
|
} from "viem";
|
|
1899
|
+
import { zkSync } from "viem/zksync";
|
|
1899
1900
|
import { useAccount as useAccount3, useConfig as useConfig2 } from "wagmi";
|
|
1900
1901
|
|
|
1901
1902
|
// src/consts/checkout.ts
|
|
@@ -2903,7 +2904,7 @@ function FunkitCheckoutProvider({ children }) {
|
|
|
2903
2904
|
};
|
|
2904
2905
|
let additionalFeesTokenAmount = 0;
|
|
2905
2906
|
let additionalTimeMs = 0;
|
|
2906
|
-
if (newPaymentMethodInfo.paymentMethod === "balance" /* ACCOUNT_BALANCE */ && isWeb3Login) {
|
|
2907
|
+
if (newPaymentMethodInfo.paymentMethod === "balance" /* ACCOUNT_BALANCE */ && isWeb3Login && checkoutItem.selectedSourceAssetInfo.chainId !== zkSync.id.toString()) {
|
|
2907
2908
|
let gasEstimateResult = BigInt(0);
|
|
2908
2909
|
const isNativeTokenTransfer = checkoutItem.selectedSourceAssetInfo.address === NATIVE_TOKEN;
|
|
2909
2910
|
if (isNativeTokenTransfer) {
|
|
@@ -4429,7 +4430,7 @@ import {
|
|
|
4429
4430
|
getTokenInfo as getTokenInfo2
|
|
4430
4431
|
} from "@funkit/core";
|
|
4431
4432
|
import React83, { useCallback as useCallback20, useEffect as useEffect20, useMemo as useMemo22, useState as useState23 } from "react";
|
|
4432
|
-
import { arbitrum, mainnet as mainnet3, mantle, zkSync } from "viem/chains";
|
|
4433
|
+
import { arbitrum, mainnet as mainnet3, mantle, zkSync as zkSync2 } from "viem/chains";
|
|
4433
4434
|
|
|
4434
4435
|
// src/hooks/useCheckoutAccountBalanceTransfer.ts
|
|
4435
4436
|
import { useCallback as useCallback9 } from "react";
|
|
@@ -9373,7 +9374,7 @@ function FunCheckoutModal({
|
|
|
9373
9374
|
const isCanada = userIpInfo ? userIpInfo.alpha2 === "CA" : false;
|
|
9374
9375
|
const originalTargetChainId = checkoutItem == null ? void 0 : checkoutItem.initSettings.config.targetChain.toString();
|
|
9375
9376
|
const moonpayChainId = [
|
|
9376
|
-
|
|
9377
|
+
zkSync2.id.toString(),
|
|
9377
9378
|
mantle.id.toString()
|
|
9378
9379
|
].includes(originalTargetChainId) ? arbitrum.id.toString() : originalTargetChainId;
|
|
9379
9380
|
const wethAddrOnTargetChain = (await getTokenInfo2("weth", moonpayChainId)).toLowerCase();
|
|
@@ -16994,7 +16995,7 @@ function setFunkitConnectVersion({ version }) {
|
|
|
16994
16995
|
localStorage.setItem(storageKey6, version);
|
|
16995
16996
|
}
|
|
16996
16997
|
function getCurrentSdkVersion() {
|
|
16997
|
-
return "1.2.
|
|
16998
|
+
return "1.2.6";
|
|
16998
16999
|
}
|
|
16999
17000
|
function useFingerprint() {
|
|
17000
17001
|
const fingerprint = useCallback33(() => {
|
|
@@ -1,43 +1,37 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import {
|
|
6
|
-
xdefiWallet
|
|
7
|
-
} from "./chunk-JNZ3EYC7.js";
|
|
8
|
-
import {
|
|
9
|
-
zerionWallet
|
|
10
|
-
} from "./chunk-G4DNQN67.js";
|
|
11
|
-
import {
|
|
12
|
-
talismanWallet
|
|
13
|
-
} from "./chunk-R2GYJ376.js";
|
|
3
|
+
ledgerWallet
|
|
4
|
+
} from "./chunk-Y6VY6E3L.js";
|
|
14
5
|
import {
|
|
15
|
-
|
|
16
|
-
} from "./chunk-
|
|
6
|
+
roninWallet
|
|
7
|
+
} from "./chunk-CNTLU4ZV.js";
|
|
17
8
|
import {
|
|
18
|
-
|
|
19
|
-
} from "./chunk-
|
|
9
|
+
safeWallet
|
|
10
|
+
} from "./chunk-D3DCQ72J.js";
|
|
20
11
|
import {
|
|
21
12
|
tokenPocketWallet
|
|
22
13
|
} from "./chunk-UWU574XS.js";
|
|
23
14
|
import {
|
|
24
15
|
tokenaryWallet
|
|
25
16
|
} from "./chunk-MD5OPFAT.js";
|
|
17
|
+
import {
|
|
18
|
+
trustWallet
|
|
19
|
+
} from "./chunk-BMHNXJZK.js";
|
|
26
20
|
import {
|
|
27
21
|
uniswapWallet
|
|
28
22
|
} from "./chunk-XRSY4JVH.js";
|
|
29
23
|
import {
|
|
30
|
-
|
|
31
|
-
} from "./chunk-
|
|
24
|
+
xdefiWallet
|
|
25
|
+
} from "./chunk-JNZ3EYC7.js";
|
|
32
26
|
import {
|
|
33
|
-
|
|
34
|
-
} from "./chunk-
|
|
27
|
+
walletConnectWallet
|
|
28
|
+
} from "./chunk-ASPRR7T3.js";
|
|
35
29
|
import {
|
|
36
|
-
|
|
37
|
-
} from "./chunk-
|
|
30
|
+
zerionWallet
|
|
31
|
+
} from "./chunk-G4DNQN67.js";
|
|
38
32
|
import {
|
|
39
|
-
|
|
40
|
-
} from "./chunk-
|
|
33
|
+
zealWallet
|
|
34
|
+
} from "./chunk-Z5QFIFDP.js";
|
|
41
35
|
import {
|
|
42
36
|
ramperWallet
|
|
43
37
|
} from "./chunk-XEZPRJPV.js";
|
|
@@ -45,35 +39,35 @@ import {
|
|
|
45
39
|
rainbowWallet
|
|
46
40
|
} from "./chunk-EXN2ODSI.js";
|
|
47
41
|
import {
|
|
48
|
-
|
|
49
|
-
} from "./chunk-
|
|
50
|
-
import {
|
|
51
|
-
roninWallet
|
|
52
|
-
} from "./chunk-CNTLU4ZV.js";
|
|
42
|
+
rabbyWallet
|
|
43
|
+
} from "./chunk-5SIHQ5GA.js";
|
|
53
44
|
import {
|
|
54
45
|
safeheronWallet
|
|
55
46
|
} from "./chunk-FQDX6QIP.js";
|
|
47
|
+
import {
|
|
48
|
+
subWallet
|
|
49
|
+
} from "./chunk-WS4EM7AZ.js";
|
|
56
50
|
import {
|
|
57
51
|
safepalWallet
|
|
58
52
|
} from "./chunk-PQSJXOGA.js";
|
|
59
53
|
import {
|
|
60
|
-
|
|
61
|
-
} from "./chunk-
|
|
54
|
+
tahoWallet
|
|
55
|
+
} from "./chunk-PILSRRPJ.js";
|
|
56
|
+
import {
|
|
57
|
+
talismanWallet
|
|
58
|
+
} from "./chunk-R2GYJ376.js";
|
|
62
59
|
import {
|
|
63
60
|
mewWallet
|
|
64
61
|
} from "./chunk-ZCSUP7CX.js";
|
|
65
62
|
import {
|
|
66
|
-
|
|
67
|
-
} from "./chunk-
|
|
68
|
-
import {
|
|
69
|
-
okxWallet
|
|
70
|
-
} from "./chunk-5ZGE5SN5.js";
|
|
63
|
+
metaMaskWallet
|
|
64
|
+
} from "./chunk-TUK3HNKY.js";
|
|
71
65
|
import {
|
|
72
66
|
omniWallet
|
|
73
67
|
} from "./chunk-SVN7OEQR.js";
|
|
74
68
|
import {
|
|
75
|
-
|
|
76
|
-
} from "./chunk-
|
|
69
|
+
okxWallet
|
|
70
|
+
} from "./chunk-5ZGE5SN5.js";
|
|
77
71
|
import {
|
|
78
72
|
oneInchWallet
|
|
79
73
|
} from "./chunk-LCPIZUR3.js";
|
|
@@ -81,11 +75,17 @@ import {
|
|
|
81
75
|
oneKeyWallet
|
|
82
76
|
} from "./chunk-QS2J6MWB.js";
|
|
83
77
|
import {
|
|
84
|
-
|
|
85
|
-
} from "./chunk-
|
|
78
|
+
oktoWallet
|
|
79
|
+
} from "./chunk-WKHTUEF5.js";
|
|
80
|
+
import {
|
|
81
|
+
phantomWallet
|
|
82
|
+
} from "./chunk-4PTY6XNU.js";
|
|
86
83
|
import {
|
|
87
84
|
frameWallet
|
|
88
85
|
} from "./chunk-HXGBE5AH.js";
|
|
86
|
+
import {
|
|
87
|
+
foxWallet
|
|
88
|
+
} from "./chunk-TKXMLZXG.js";
|
|
89
89
|
import {
|
|
90
90
|
frontierWallet
|
|
91
91
|
} from "./chunk-LOEDYNWO.js";
|
|
@@ -95,59 +95,59 @@ import {
|
|
|
95
95
|
import {
|
|
96
96
|
imTokenWallet
|
|
97
97
|
} from "./chunk-5MVV7OVS.js";
|
|
98
|
+
import {
|
|
99
|
+
kresusWallet
|
|
100
|
+
} from "./chunk-X6T3CICZ.js";
|
|
98
101
|
import {
|
|
99
102
|
injectedWallet
|
|
100
103
|
} from "./chunk-GUJHPWTU.js";
|
|
101
104
|
import {
|
|
102
|
-
|
|
103
|
-
} from "./chunk-
|
|
105
|
+
coin98Wallet
|
|
106
|
+
} from "./chunk-3QXMJHL4.js";
|
|
104
107
|
import {
|
|
105
|
-
|
|
106
|
-
} from "./chunk-
|
|
108
|
+
bloomWallet
|
|
109
|
+
} from "./chunk-NTGZF5BY.js";
|
|
107
110
|
import {
|
|
108
111
|
coinbaseWallet
|
|
109
112
|
} from "./chunk-O77H3VWW.js";
|
|
110
|
-
import {
|
|
111
|
-
coin98Wallet
|
|
112
|
-
} from "./chunk-3QXMJHL4.js";
|
|
113
113
|
import {
|
|
114
114
|
bitverseWallet
|
|
115
115
|
} from "./chunk-NL4I7WOT.js";
|
|
116
116
|
import {
|
|
117
|
-
|
|
118
|
-
} from "./chunk-
|
|
117
|
+
dawnWallet
|
|
118
|
+
} from "./chunk-QUFNIKMV.js";
|
|
119
119
|
import {
|
|
120
120
|
desigWallet
|
|
121
121
|
} from "./chunk-P4C7ZHIS.js";
|
|
122
122
|
import {
|
|
123
|
-
|
|
124
|
-
} from "./chunk-
|
|
123
|
+
coreWallet
|
|
124
|
+
} from "./chunk-32O7HVBJ.js";
|
|
125
125
|
import {
|
|
126
|
-
|
|
127
|
-
} from "./chunk-
|
|
126
|
+
enkryptWallet
|
|
127
|
+
} from "./chunk-SJWHYD45.js";
|
|
128
128
|
import {
|
|
129
129
|
argentWallet
|
|
130
130
|
} from "./chunk-NZ5G23JP.js";
|
|
131
131
|
import {
|
|
132
132
|
bitgetWallet
|
|
133
133
|
} from "./chunk-OUQ3ZF2W.js";
|
|
134
|
-
import {
|
|
135
|
-
bloomWallet
|
|
136
|
-
} from "./chunk-NTGZF5BY.js";
|
|
137
|
-
import {
|
|
138
|
-
bitskiWallet
|
|
139
|
-
} from "./chunk-IMZRCMZR.js";
|
|
140
134
|
import {
|
|
141
135
|
bifrostWallet
|
|
142
136
|
} from "./chunk-AFONKDII.js";
|
|
143
137
|
import "./chunk-ZOLACFTK.js";
|
|
144
138
|
import {
|
|
145
|
-
|
|
146
|
-
} from "./chunk-
|
|
139
|
+
bitskiWallet
|
|
140
|
+
} from "./chunk-IMZRCMZR.js";
|
|
141
|
+
import {
|
|
142
|
+
bybitWallet
|
|
143
|
+
} from "./chunk-ZBQT5PV6.js";
|
|
147
144
|
import {
|
|
148
145
|
clvWallet
|
|
149
146
|
} from "./chunk-ND5YG63V.js";
|
|
150
147
|
import "./chunk-ZDU3JFGR.js";
|
|
148
|
+
import {
|
|
149
|
+
braveWallet
|
|
150
|
+
} from "./chunk-KJWMF6GZ.js";
|
|
151
151
|
import "./chunk-F3VCNZXS.js";
|
|
152
152
|
export {
|
|
153
153
|
argentWallet,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funkit/connect",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.6",
|
|
4
4
|
"description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -75,9 +75,9 @@
|
|
|
75
75
|
"react-remove-scroll": "2.5.7",
|
|
76
76
|
"ua-parser-js": "^1.0.37",
|
|
77
77
|
"uuid": "^9.0.1",
|
|
78
|
-
"@funkit/
|
|
78
|
+
"@funkit/core": "1.0.16",
|
|
79
79
|
"@funkit/wagmi-tools": "2.0.1",
|
|
80
|
-
"@funkit/
|
|
80
|
+
"@funkit/api-base": "0.0.3"
|
|
81
81
|
},
|
|
82
82
|
"repository": {
|
|
83
83
|
"type": "git",
|