@cordystackx/cordy_minikit 1.5.23 → 1.5.27
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/dist/config/Image.json
CHANGED
|
@@ -2,5 +2,6 @@
|
|
|
2
2
|
"logo": "https://cordy-stack-x.vercel.app/logo.svg",
|
|
3
3
|
"Coinbased Wallet": "https://raw.githubusercontent.com/cordyStackX/cordy_minikit_official/main/assets/coinbased.svg",
|
|
4
4
|
"MetaMask": "https://raw.githubusercontent.com/cordyStackX/cordy_minikit_official/main/assets/metamask.png",
|
|
5
|
-
"WalletConnect": "https://raw.githubusercontent.com/cordyStackX/cordy_minikit_official/main/assets/WalletConnect.png"
|
|
5
|
+
"WalletConnect": "https://raw.githubusercontent.com/cordyStackX/cordy_minikit_official/main/assets/WalletConnect.png",
|
|
6
|
+
"Trust Wallet": "https://raw.githubusercontent.com/cordyStackX/cordy_minikit_official/refs/heads/main/assets/trust-wallet-icon.png"
|
|
6
7
|
}
|
|
@@ -34,10 +34,11 @@ export default function WalletButton({ onStatusChange }) {
|
|
|
34
34
|
}
|
|
35
35
|
function WalletOption({ connector, onClick, isPending }) {
|
|
36
36
|
const [installed, setInstalled] = React.useState(true);
|
|
37
|
+
const isTrustWallet = connector.name === "Trust Wallet";
|
|
37
38
|
React.useEffect(() => {
|
|
38
39
|
(async () => {
|
|
39
40
|
try {
|
|
40
|
-
if (connector.
|
|
41
|
+
if (connector.name === "WalletConnect" || isTrustWallet) {
|
|
41
42
|
setInstalled(true);
|
|
42
43
|
return;
|
|
43
44
|
}
|
|
@@ -49,11 +50,13 @@ function WalletOption({ connector, onClick, isPending }) {
|
|
|
49
50
|
}
|
|
50
51
|
})();
|
|
51
52
|
}, [connector]);
|
|
52
|
-
return (_jsxs("button", { onClick: onClick, children: [_jsx("img", { src: Images[connector.name] || Images["Coinbased Wallet"], alt: connector.name, width: 23, height: 18 }), isPending
|
|
53
|
+
return (_jsxs("button", { onClick: onClick, children: [_jsx("img", { src: Images[connector.name] || Images["Coinbased Wallet"], alt: connector.name, title: connector.name, width: 23, height: 18 }), isPending
|
|
53
54
|
? "Connecting..."
|
|
54
|
-
:
|
|
55
|
-
? "
|
|
56
|
-
:
|
|
57
|
-
?
|
|
58
|
-
:
|
|
55
|
+
: isTrustWallet
|
|
56
|
+
? "Trust Wallet"
|
|
57
|
+
: connector.name === "WalletConnect"
|
|
58
|
+
? "WalletConnect"
|
|
59
|
+
: !installed
|
|
60
|
+
? `${connector.name} (Not Installed)`
|
|
61
|
+
: connector.name] }));
|
|
59
62
|
}
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
box-shadow: 0 0 1rem 0.1rem var(--meduim_dark_wagmi_34535);
|
|
48
48
|
flex-flow: column;
|
|
49
49
|
overflow: hidden;
|
|
50
|
-
animation: fadeIn
|
|
50
|
+
animation: fadeIn 300ms ease forwards;
|
|
51
51
|
border-radius: 8px;
|
|
52
52
|
}
|
|
53
53
|
.connector div {
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
@keyframes fadeIn {
|
|
65
65
|
from {
|
|
66
66
|
opacity: 0;
|
|
67
|
-
transform: translateY(
|
|
67
|
+
transform: translateY(30px);
|
|
68
68
|
}
|
|
69
69
|
to {
|
|
70
70
|
opacity: 1;
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cordystackx/cordy_minikit",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.26",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@coinbase/wallet-sdk": "4.3.7",
|
|
35
35
|
"@tanstack/react-query": "^5.101.0",
|
|
36
|
+
"@walletconnect/ethereum-provider": "^2.23.9",
|
|
36
37
|
"ethers": "^6.17.0",
|
|
37
38
|
"next": "^16.2.9",
|
|
38
39
|
"react": "^19.2.7",
|