@funkit/connect 5.1.4 → 5.2.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 +27 -0
- package/dist/{chunk-A7G4HZZY.js → chunk-2C7D5NQG.js} +19 -4
- package/dist/{chunk-L55ALBJE.js → chunk-PKXUTXYG.js} +4 -4
- package/dist/{chunk-IDAA2OY6.js → chunk-QBCQK5KX.js} +4 -4
- package/dist/components/Box/Box.d.ts +29 -29
- package/dist/components/Dropdown/ReceiveTokenDropdown.d.ts +3 -3
- package/dist/components/FunBadge/FunBadge.d.ts +3 -3
- package/dist/components/FunButton/FunRedirectButton.d.ts +6 -0
- package/dist/components/FunInput/FunTwoFaInput.d.ts +2 -2
- package/dist/components/FunNotification/FunNotification.d.ts +2 -6
- package/dist/components/NewTokenDepositAlert/NewTokenDepositAlert.d.ts +7 -0
- package/dist/components/YouPayYouReceive/YouPayYouReceive.d.ts +2 -1
- package/dist/consts/funkit.d.ts +0 -5
- package/dist/css/sprinkles.css.d.ts +41 -35
- package/dist/hooks/useCheckoutAccountBalanceTransfer.d.ts +1 -1
- package/dist/hooks/useRelayBypass.d.ts +12 -0
- package/dist/index.css +2432 -2423
- package/dist/index.js +772 -729
- package/dist/providers/FunkitCheckoutContext.d.ts +1 -1
- package/dist/providers/FunkitThemeProvider.d.ts +18 -9
- package/dist/providers/GeneralWalletProvider.d.ts +8 -8
- package/dist/themes/baseTheme.js +1 -1
- package/dist/themes/darkTheme.js +2 -2
- package/dist/themes/lightTheme.js +2 -2
- package/dist/utils/checkout.d.ts +11 -9
- package/dist/utils/consts.d.ts +1 -0
- package/dist/utils/flags/config.d.ts +20 -4
- package/dist/utils/flags/types.d.ts +7 -0
- package/dist/wallets/walletConnectors/chunk-2UCNRD7H.js +70 -0
- package/dist/wallets/walletConnectors/chunk-3S2U24BJ.js +96 -0
- package/dist/wallets/walletConnectors/chunk-4WEHDI4Y.js +94 -0
- package/dist/wallets/walletConnectors/chunk-63YLN6R5.js +92 -0
- package/dist/wallets/walletConnectors/chunk-6ONTSPEY.js +98 -0
- package/dist/wallets/walletConnectors/chunk-A5APNTGL.js +99 -0
- package/dist/wallets/walletConnectors/chunk-AD2KIJB6.js +103 -0
- package/dist/wallets/walletConnectors/chunk-AXWP3GD4.js +100 -0
- package/dist/wallets/walletConnectors/chunk-DTRYS3MO.js +96 -0
- package/dist/wallets/walletConnectors/chunk-G73C6P5P.js +146 -0
- package/dist/wallets/walletConnectors/chunk-GSOYKKIS.js +92 -0
- package/dist/wallets/walletConnectors/chunk-HBA36GW3.js +95 -0
- package/dist/wallets/walletConnectors/chunk-IDKVN5CF.js +93 -0
- package/dist/wallets/walletConnectors/chunk-ISIBREBO.js +106 -0
- package/dist/wallets/walletConnectors/chunk-KR6JBW5E.js +87 -0
- package/dist/wallets/walletConnectors/chunk-LMZMXEXL.js +66 -0
- package/dist/wallets/walletConnectors/chunk-MSFKSQBY.js +110 -0
- package/dist/wallets/walletConnectors/chunk-W6N74MS3.js +69 -0
- package/dist/wallets/walletConnectors/funkitConnectWallet/funkitConnectWallet.js +0 -23
- package/dist/wallets/walletConnectors/index.js +62 -62
- package/package.json +7 -6
- package/dist/components/SolanaDepositAlert/SolanaDepositAlert.d.ts +0 -6
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getWalletConnectConnector
|
|
4
|
+
} from "./chunk-23WIEY36.js";
|
|
5
|
+
import {
|
|
6
|
+
getInjectedConnector,
|
|
7
|
+
hasInjectedProvider
|
|
8
|
+
} from "./chunk-WRA2DVJ7.js";
|
|
9
|
+
|
|
10
|
+
// src/wallets/walletConnectors/bifrostWallet/bifrostWallet.ts
|
|
11
|
+
import { isAndroid } from "@funkit/utils";
|
|
12
|
+
var bifrostWallet = ({
|
|
13
|
+
projectId,
|
|
14
|
+
walletConnectParameters
|
|
15
|
+
}) => {
|
|
16
|
+
const isBifrostInjected = hasInjectedProvider({ flag: "isBifrost" });
|
|
17
|
+
const shouldUseWalletConnect = !isBifrostInjected;
|
|
18
|
+
const getUri = (uri) => {
|
|
19
|
+
return isAndroid() ? uri : `https://app.bifrostwallet.com/wc?uri=${encodeURIComponent(uri)}`;
|
|
20
|
+
};
|
|
21
|
+
return {
|
|
22
|
+
id: "bifrostWallet",
|
|
23
|
+
name: "Bifrost Wallet",
|
|
24
|
+
iconUrl: async () => (await import("./bifrostWallet-5NQVDZ5P.js")).default,
|
|
25
|
+
iconBackground: "#fff",
|
|
26
|
+
installed: !shouldUseWalletConnect ? isBifrostInjected : void 0,
|
|
27
|
+
downloadUrls: {
|
|
28
|
+
android: "https://play.google.com/store/apps/details?id=com.bifrostwallet.app",
|
|
29
|
+
ios: "https://apps.apple.com/us/app/bifrost-wallet/id1577198351",
|
|
30
|
+
qrCode: "https://bifrostwallet.com/#download-app"
|
|
31
|
+
},
|
|
32
|
+
mobile: {
|
|
33
|
+
getUri: shouldUseWalletConnect ? getUri : void 0
|
|
34
|
+
},
|
|
35
|
+
qrCode: shouldUseWalletConnect ? {
|
|
36
|
+
getUri: (uri) => uri,
|
|
37
|
+
instructions: {
|
|
38
|
+
learnMoreUrl: "https://support.bifrostwallet.com/en/articles/6886814-how-to-use-walletconnect",
|
|
39
|
+
steps: [
|
|
40
|
+
{
|
|
41
|
+
description: "wallet_connectors.bifrost.qr_code.step1.description",
|
|
42
|
+
step: "install",
|
|
43
|
+
title: "wallet_connectors.bifrost.qr_code.step1.title"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
description: "wallet_connectors.bifrost.qr_code.step2.description",
|
|
47
|
+
step: "create",
|
|
48
|
+
title: "wallet_connectors.bifrost.qr_code.step2.title"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
description: "wallet_connectors.bifrost.qr_code.step3.description",
|
|
52
|
+
step: "scan",
|
|
53
|
+
title: "wallet_connectors.bifrost.qr_code.step3.title"
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
}
|
|
57
|
+
} : void 0,
|
|
58
|
+
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
59
|
+
projectId,
|
|
60
|
+
walletConnectParameters
|
|
61
|
+
}) : getInjectedConnector({
|
|
62
|
+
flag: "isBifrost"
|
|
63
|
+
})
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
export {
|
|
68
|
+
bifrostWallet
|
|
69
|
+
};
|
|
@@ -5,31 +5,8 @@ import { funkitWagmiConnectorWallet } from "@funkit/wagmi-tools";
|
|
|
5
5
|
import { createConnector } from "wagmi";
|
|
6
6
|
|
|
7
7
|
// src/consts/funkit.ts
|
|
8
|
-
import { CheckoutState } from "@funkit/api-base";
|
|
9
8
|
import { FUNKIT_CONNECT_CHECKOUT_NATIVE_CURRENCY_ADDRESS } from "@funkit/chains";
|
|
10
9
|
var FUNKIT_CONNECT_WALLET_ID = "funkitConnectWallet";
|
|
11
|
-
var FROM_PROGRESS_CHECKOUT_STATES = [
|
|
12
|
-
CheckoutState.FROM_UNFUNDED,
|
|
13
|
-
CheckoutState.FROM_FUNDED,
|
|
14
|
-
CheckoutState.FROM_POOLED
|
|
15
|
-
];
|
|
16
|
-
var TO_PROGRESS_CHECKOUT_STATES = [
|
|
17
|
-
CheckoutState.TO_UNFUNDED,
|
|
18
|
-
CheckoutState.TO_FUNDED,
|
|
19
|
-
CheckoutState.TO_POOLED,
|
|
20
|
-
CheckoutState.TO_READY,
|
|
21
|
-
CheckoutState.PENDING_RECEIVAL
|
|
22
|
-
];
|
|
23
|
-
var IN_PROGRESS_CHECKOUT_STATES = [
|
|
24
|
-
...TO_PROGRESS_CHECKOUT_STATES,
|
|
25
|
-
...FROM_PROGRESS_CHECKOUT_STATES
|
|
26
|
-
];
|
|
27
|
-
var TERMINAL_CHECKOUT_STATES = [
|
|
28
|
-
CheckoutState.EXPIRED,
|
|
29
|
-
CheckoutState.CHECKOUT_ERROR,
|
|
30
|
-
CheckoutState.COMPLETED,
|
|
31
|
-
CheckoutState.CANCELLED
|
|
32
|
-
];
|
|
33
10
|
|
|
34
11
|
// src/wallets/walletConnectors/funkitConnectWallet/funkitConnectWallet.ts
|
|
35
12
|
var funkitConnectWallet = () => {
|
|
@@ -1,91 +1,88 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import {
|
|
6
|
-
zealWallet
|
|
7
|
-
} from "./chunk-JROWU5BP.js";
|
|
3
|
+
uniswapWallet
|
|
4
|
+
} from "./chunk-LH7BMNFZ.js";
|
|
8
5
|
import {
|
|
9
6
|
zerionWallet
|
|
10
7
|
} from "./chunk-ETTNDQQG.js";
|
|
11
8
|
import {
|
|
12
|
-
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import {
|
|
15
|
-
tokenPocketWallet
|
|
16
|
-
} from "./chunk-FRGSRLTS.js";
|
|
9
|
+
walletConnectWallet
|
|
10
|
+
} from "./chunk-NP5QGWNL.js";
|
|
17
11
|
import {
|
|
18
|
-
|
|
19
|
-
} from "./chunk-
|
|
12
|
+
safepalWallet
|
|
13
|
+
} from "./chunk-6LPM6LUQ.js";
|
|
20
14
|
import {
|
|
21
15
|
talismanWallet
|
|
22
16
|
} from "./chunk-ABFSXBE6.js";
|
|
17
|
+
import {
|
|
18
|
+
tahoWallet
|
|
19
|
+
} from "./chunk-6P2EMPZI.js";
|
|
23
20
|
import {
|
|
24
21
|
tokenaryWallet
|
|
25
22
|
} from "./chunk-SLOIIJGP.js";
|
|
23
|
+
import {
|
|
24
|
+
tokenPocketWallet
|
|
25
|
+
} from "./chunk-FRGSRLTS.js";
|
|
26
26
|
import {
|
|
27
27
|
trustWallet
|
|
28
28
|
} from "./chunk-IPOC2VJX.js";
|
|
29
|
-
import {
|
|
30
|
-
uniswapWallet
|
|
31
|
-
} from "./chunk-LH7BMNFZ.js";
|
|
32
29
|
import {
|
|
33
30
|
xdefiWallet
|
|
34
31
|
} from "./chunk-NO7XMBB5.js";
|
|
35
32
|
import {
|
|
36
|
-
|
|
37
|
-
} from "./chunk-
|
|
33
|
+
zealWallet
|
|
34
|
+
} from "./chunk-JROWU5BP.js";
|
|
38
35
|
import {
|
|
39
|
-
|
|
40
|
-
} from "./chunk-
|
|
36
|
+
safeWallet
|
|
37
|
+
} from "./chunk-BQQQL6UD.js";
|
|
38
|
+
import {
|
|
39
|
+
oneInchWallet
|
|
40
|
+
} from "./chunk-OESTDX6I.js";
|
|
41
41
|
import {
|
|
42
42
|
ramperWallet
|
|
43
43
|
} from "./chunk-PIUNLQJG.js";
|
|
44
|
-
import {
|
|
45
|
-
rabbyWallet
|
|
46
|
-
} from "./chunk-BVX4XGNP.js";
|
|
47
44
|
import {
|
|
48
45
|
roninWallet
|
|
49
46
|
} from "./chunk-25VW5TZP.js";
|
|
50
47
|
import {
|
|
51
|
-
|
|
52
|
-
} from "./chunk-
|
|
48
|
+
oneKeyWallet
|
|
49
|
+
} from "./chunk-4AD7VI2P.js";
|
|
50
|
+
import {
|
|
51
|
+
rainbowWallet
|
|
52
|
+
} from "./chunk-MOOBCMMB.js";
|
|
53
53
|
import {
|
|
54
54
|
safeheronWallet
|
|
55
55
|
} from "./chunk-R6RWZRFF.js";
|
|
56
56
|
import {
|
|
57
|
-
|
|
58
|
-
} from "./chunk-
|
|
59
|
-
import {
|
|
60
|
-
ledgerWallet
|
|
61
|
-
} from "./chunk-BRBKM4PW.js";
|
|
57
|
+
subWallet
|
|
58
|
+
} from "./chunk-4UM4GTKZ.js";
|
|
62
59
|
import {
|
|
63
|
-
|
|
64
|
-
} from "./chunk-
|
|
60
|
+
kresusWallet
|
|
61
|
+
} from "./chunk-MJXPRJZT.js";
|
|
65
62
|
import {
|
|
66
63
|
metaMaskWallet
|
|
67
64
|
} from "./chunk-N2NIIUW6.js";
|
|
65
|
+
import {
|
|
66
|
+
okxWallet
|
|
67
|
+
} from "./chunk-3U3BMEH5.js";
|
|
68
68
|
import {
|
|
69
69
|
oktoWallet
|
|
70
70
|
} from "./chunk-ADIXAKUL.js";
|
|
71
71
|
import {
|
|
72
72
|
omniWallet
|
|
73
73
|
} from "./chunk-7CUY5G6R.js";
|
|
74
|
-
import {
|
|
75
|
-
okxWallet
|
|
76
|
-
} from "./chunk-3U3BMEH5.js";
|
|
77
|
-
import {
|
|
78
|
-
oneInchWallet
|
|
79
|
-
} from "./chunk-OESTDX6I.js";
|
|
80
74
|
import {
|
|
81
75
|
phantomWallet
|
|
82
76
|
} from "./chunk-ZSVTX6EK.js";
|
|
83
77
|
import {
|
|
84
|
-
|
|
85
|
-
} from "./chunk-
|
|
78
|
+
mewWallet
|
|
79
|
+
} from "./chunk-V57WLZEE.js";
|
|
86
80
|
import {
|
|
87
|
-
|
|
88
|
-
} from "./chunk-
|
|
81
|
+
rabbyWallet
|
|
82
|
+
} from "./chunk-BVX4XGNP.js";
|
|
83
|
+
import {
|
|
84
|
+
coinbaseWallet
|
|
85
|
+
} from "./chunk-H4IRCEZN.js";
|
|
89
86
|
import {
|
|
90
87
|
frontierWallet
|
|
91
88
|
} from "./chunk-HKV7EMYZ.js";
|
|
@@ -95,24 +92,24 @@ import {
|
|
|
95
92
|
import {
|
|
96
93
|
gateWallet
|
|
97
94
|
} from "./chunk-3NC26XLM.js";
|
|
98
|
-
import {
|
|
99
|
-
kresusWallet
|
|
100
|
-
} from "./chunk-MJXPRJZT.js";
|
|
101
95
|
import {
|
|
102
96
|
injectedWallet
|
|
103
97
|
} from "./chunk-VCVVV2K7.js";
|
|
104
98
|
import {
|
|
105
|
-
|
|
106
|
-
} from "./chunk-
|
|
99
|
+
bybitWallet
|
|
100
|
+
} from "./chunk-W5O4YSZN.js";
|
|
107
101
|
import {
|
|
108
|
-
|
|
109
|
-
} from "./chunk-
|
|
102
|
+
ledgerWallet
|
|
103
|
+
} from "./chunk-BRBKM4PW.js";
|
|
110
104
|
import {
|
|
111
105
|
coin98Wallet
|
|
112
106
|
} from "./chunk-KFFJPS5R.js";
|
|
113
107
|
import {
|
|
114
|
-
|
|
115
|
-
} from "./chunk-
|
|
108
|
+
clvWallet
|
|
109
|
+
} from "./chunk-LEXSM5KI.js";
|
|
110
|
+
import {
|
|
111
|
+
coreWallet
|
|
112
|
+
} from "./chunk-JXP2QPW7.js";
|
|
116
113
|
import {
|
|
117
114
|
dawnWallet
|
|
118
115
|
} from "./chunk-LN7OD5EC.js";
|
|
@@ -120,33 +117,36 @@ import {
|
|
|
120
117
|
desigWallet
|
|
121
118
|
} from "./chunk-CTU6JCOK.js";
|
|
122
119
|
import {
|
|
123
|
-
|
|
124
|
-
} from "./chunk-
|
|
120
|
+
enkryptWallet
|
|
121
|
+
} from "./chunk-SJTXS4ZW.js";
|
|
125
122
|
import {
|
|
126
123
|
foxWallet
|
|
127
124
|
} from "./chunk-XYBEMO3C.js";
|
|
125
|
+
import {
|
|
126
|
+
frameWallet
|
|
127
|
+
} from "./chunk-ZMYVTWDF.js";
|
|
128
|
+
import {
|
|
129
|
+
bitgetWallet
|
|
130
|
+
} from "./chunk-7GSNBOD3.js";
|
|
128
131
|
import {
|
|
129
132
|
argentWallet
|
|
130
133
|
} from "./chunk-WSQ2YJO2.js";
|
|
131
134
|
import {
|
|
132
135
|
bifrostWallet
|
|
133
136
|
} from "./chunk-545L7Y4M.js";
|
|
134
|
-
import {
|
|
135
|
-
bitgetWallet
|
|
136
|
-
} from "./chunk-7GSNBOD3.js";
|
|
137
137
|
import {
|
|
138
138
|
bitskiWallet
|
|
139
139
|
} from "./chunk-P74YPRF6.js";
|
|
140
140
|
import {
|
|
141
|
-
|
|
142
|
-
} from "./chunk-
|
|
143
|
-
import {
|
|
144
|
-
clvWallet
|
|
145
|
-
} from "./chunk-LEXSM5KI.js";
|
|
141
|
+
bloomWallet
|
|
142
|
+
} from "./chunk-S27IADFU.js";
|
|
146
143
|
import {
|
|
147
|
-
|
|
148
|
-
} from "./chunk-
|
|
144
|
+
braveWallet
|
|
145
|
+
} from "./chunk-PB254NQ4.js";
|
|
149
146
|
import "./chunk-WRA2DVJ7.js";
|
|
147
|
+
import {
|
|
148
|
+
bitverseWallet
|
|
149
|
+
} from "./chunk-3HZRRP4Y.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": "5.
|
|
3
|
+
"version": "5.2.0",
|
|
4
4
|
"description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -44,7 +44,8 @@
|
|
|
44
44
|
"wagmi": "2.x"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@aws-sdk/client-s3": "
|
|
47
|
+
"@aws-sdk/client-s3": "3.645.0",
|
|
48
|
+
"@aws-sdk/client-cloudfront": "3.645.0",
|
|
48
49
|
"@chromatic-com/storybook": "^3.2.6",
|
|
49
50
|
"@meshconnect/node-api": "2.0.14",
|
|
50
51
|
"@storybook/addon-essentials": "^8.6.7",
|
|
@@ -90,11 +91,11 @@
|
|
|
90
91
|
"react-virtuoso": "4.10.1",
|
|
91
92
|
"ua-parser-js": "^1.0.37",
|
|
92
93
|
"uuid": "^9.0.1",
|
|
93
|
-
"@funkit/api-base": "1.7.
|
|
94
|
+
"@funkit/api-base": "1.7.1",
|
|
95
|
+
"@funkit/core": "2.3.15",
|
|
94
96
|
"@funkit/chains": "0.2.1",
|
|
95
|
-
"@funkit/
|
|
96
|
-
"@funkit/
|
|
97
|
-
"@funkit/wagmi-tools": "3.0.36"
|
|
97
|
+
"@funkit/utils": "1.0.11",
|
|
98
|
+
"@funkit/wagmi-tools": "3.0.37"
|
|
98
99
|
},
|
|
99
100
|
"repository": {
|
|
100
101
|
"type": "git",
|