@cordystackx/cordy_minikit 1.5.16 → 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 +2 -1
- package/dist/controllers/Get_Sessions.d.ts +2 -0
- package/dist/controllers/Get_Sessions.d.ts.map +1 -0
- package/dist/controllers/Get_Sessions.js +2 -0
- package/dist/controllers/WagmiButton.js +14 -6
- package/dist/controllers/index.d.ts +1 -0
- package/dist/controllers/index.d.ts.map +1 -1
- package/dist/controllers/index.js +1 -0
- package/dist/css/UI_Comp/styles.module.css +79 -79
- package/dist/package.json +2 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -1
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
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Get_Sessions.d.ts","sourceRoot":"","sources":["../../controllers/Get_Sessions.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO,UAAU,cAAc,SAErC"}
|
|
@@ -34,21 +34,29 @@ 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 {
|
|
41
|
+
if (connector.name === "WalletConnect" || isTrustWallet) {
|
|
42
|
+
setInstalled(true);
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
40
45
|
const provider = await connector.getProvider();
|
|
41
|
-
setInstalled(!!provider);
|
|
46
|
+
setInstalled(!!provider);
|
|
42
47
|
}
|
|
43
48
|
catch {
|
|
44
49
|
setInstalled(false);
|
|
45
50
|
}
|
|
46
51
|
})();
|
|
47
52
|
}, [connector]);
|
|
48
|
-
|
|
49
|
-
return (_jsxs("button", { disabled: disabled, 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
|
|
50
54
|
? "Connecting..."
|
|
51
|
-
:
|
|
52
|
-
?
|
|
53
|
-
: connector.name
|
|
55
|
+
: isTrustWallet
|
|
56
|
+
? "Trust Wallet"
|
|
57
|
+
: connector.name === "WalletConnect"
|
|
58
|
+
? "WalletConnect"
|
|
59
|
+
: !installed
|
|
60
|
+
? `${connector.name} (Not Installed)`
|
|
61
|
+
: connector.name] }));
|
|
54
62
|
}
|
|
@@ -2,4 +2,5 @@ export { default as WalletButton } from "./WagmiButton";
|
|
|
2
2
|
export { default as CordyStackTrans } from "./Transactions";
|
|
3
3
|
export { default as getTokenBalance } from "./Get_Balance";
|
|
4
4
|
export { default as AirDropFuacet } from "./AirDrop_Faucet";
|
|
5
|
+
export { default as Check_Sessions } from "./Get_Sessions";
|
|
5
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../controllers/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,eAAe,CAAC;AAExD,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAE5D,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,eAAe,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,kBAAkB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../controllers/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,eAAe,CAAC;AAExD,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAE5D,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,eAAe,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAE5D,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -2,3 +2,4 @@ export { default as WalletButton } from "./WagmiButton";
|
|
|
2
2
|
export { default as CordyStackTrans } from "./Transactions";
|
|
3
3
|
export { default as getTokenBalance } from "./Get_Balance";
|
|
4
4
|
export { default as AirDropFuacet } from "./AirDrop_Faucet";
|
|
5
|
+
export { default as Check_Sessions } from "./Get_Sessions";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
:root {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
--foreground_wagmi_34535: #171717;
|
|
3
|
+
--meduim_dark_wagmi_34535: #818181;
|
|
4
|
+
--background_wagmi_34535: #FAFAFA;
|
|
5
|
+
--invert-cordy-image_34535: invert(1);
|
|
6
|
+
--invert-cordy-image_1_34535: invert(0);
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
@media (prefers-color-scheme: dark) {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
10
|
+
:root {
|
|
11
|
+
--foreground_wagmi_34535: #ededed;
|
|
12
|
+
--meduim_dark_wagmi_34535: #252525;
|
|
13
|
+
--background_wagmi_34535: #121212;
|
|
14
|
+
--invert-cordy-image_34535: invert(0);
|
|
15
|
+
--invert-cordy-image_1_34535: invert(1);
|
|
16
|
+
}
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
.container,
|
|
@@ -22,106 +22,106 @@
|
|
|
22
22
|
.info,
|
|
23
23
|
.info span,
|
|
24
24
|
.connector button {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
display: flex;
|
|
26
|
+
justify-content: center;
|
|
27
|
+
align-items: center;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
.container {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
31
|
+
width: 100dvw;
|
|
32
|
+
height: 100dvh;
|
|
33
|
+
backdrop-filter: blur(10px);
|
|
34
|
+
z-index: 999;
|
|
35
|
+
position: fixed;
|
|
36
|
+
top: 50%;
|
|
37
|
+
left: 50%;
|
|
38
|
+
transform: translate(-50%, -50%);
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
.connector {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
42
|
+
width: min(400px, 100dvw);
|
|
43
|
+
height: auto;
|
|
44
|
+
padding: 3rem 0;
|
|
45
|
+
background-color: var(--background_wagmi_34535);
|
|
46
|
+
position: fixed;
|
|
47
|
+
box-shadow: 0 0 1rem 0.1rem var(--meduim_dark_wagmi_34535);
|
|
48
|
+
flex-flow: column;
|
|
49
|
+
overflow: hidden;
|
|
50
|
+
animation: fadeIn 300ms ease forwards;
|
|
51
|
+
border-radius: 8px;
|
|
51
52
|
}
|
|
52
53
|
.connector div {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
flex-flow: column;
|
|
55
|
+
padding: 1rem 0;
|
|
56
|
+
width: 90%;
|
|
56
57
|
}
|
|
57
58
|
|
|
58
59
|
.connector div p {
|
|
59
|
-
|
|
60
|
-
|
|
60
|
+
color: #f00;
|
|
61
|
+
text-align: center;
|
|
61
62
|
}
|
|
62
63
|
|
|
63
64
|
@keyframes fadeIn {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
65
|
+
from {
|
|
66
|
+
opacity: 0;
|
|
67
|
+
transform: translateY(30px);
|
|
68
|
+
}
|
|
69
|
+
to {
|
|
70
|
+
opacity: 1;
|
|
71
|
+
transform: translateY(0);
|
|
72
|
+
}
|
|
72
73
|
}
|
|
73
74
|
.connector img {
|
|
74
75
|
margin: 0 0.3rem;
|
|
75
76
|
}
|
|
76
77
|
.connector button {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
transition: all 0.5s ease-in-out;
|
|
78
|
+
width: 300px;
|
|
79
|
+
padding: 1rem;
|
|
80
|
+
background-color: var(--foreground_wagmi_34535);
|
|
81
|
+
color: var(--background_wagmi_34535);
|
|
82
|
+
font-weight: bold;
|
|
83
|
+
cursor: pointer;
|
|
84
|
+
border: transparent;
|
|
85
|
+
transition: all 500ms ease;
|
|
86
|
+
margin: 1rem 0;
|
|
87
87
|
}
|
|
88
88
|
.connector button:hover {
|
|
89
|
-
|
|
89
|
+
opacity: 0.5;
|
|
90
90
|
}
|
|
91
91
|
.connector button:active {
|
|
92
|
-
|
|
92
|
+
transform: scale(0.9);
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
.info span {
|
|
96
|
-
|
|
96
|
+
flex-flow: column;
|
|
97
97
|
}
|
|
98
98
|
.info span p {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
99
|
+
width: 80%;
|
|
100
|
+
overflow: hidden;
|
|
101
|
+
white-space: nowrap;
|
|
102
|
+
text-overflow: ellipsis;
|
|
103
|
+
margin: 1rem 0;
|
|
104
|
+
font-weight: bolder;
|
|
105
105
|
}
|
|
106
106
|
.closed {
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
107
|
+
padding: 0.5rem 0.8rem;
|
|
108
|
+
position: absolute;
|
|
109
|
+
top: 0;
|
|
110
|
+
right: 0;
|
|
111
|
+
font-weight: bolder;
|
|
112
|
+
border-radius: 50%;
|
|
113
|
+
background-color: transparent;
|
|
114
|
+
cursor: pointer;
|
|
115
|
+
transition: all 0.5s ease;
|
|
116
116
|
}
|
|
117
117
|
.closed:hover {
|
|
118
|
-
|
|
118
|
+
background-color: var(--meduim_dark_wagmi_34535);
|
|
119
119
|
}
|
|
120
120
|
@media (max-width: 800px) {
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
121
|
+
.connector {
|
|
122
|
+
bottom: 0;
|
|
123
|
+
border-bottom-right-radius: 0;
|
|
124
|
+
border-bottom-left-radius: 0;
|
|
125
|
+
}
|
|
126
126
|
}
|
|
127
127
|
|
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",
|