@cordystackx/cordy_minikit 1.5.16 → 1.5.23
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/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 +11 -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 +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -1
|
@@ -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"}
|
|
@@ -37,18 +37,23 @@ function WalletOption({ connector, onClick, isPending }) {
|
|
|
37
37
|
React.useEffect(() => {
|
|
38
38
|
(async () => {
|
|
39
39
|
try {
|
|
40
|
+
if (connector.id === "walletConnect") {
|
|
41
|
+
setInstalled(true);
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
40
44
|
const provider = await connector.getProvider();
|
|
41
|
-
setInstalled(!!provider);
|
|
45
|
+
setInstalled(!!provider);
|
|
42
46
|
}
|
|
43
47
|
catch {
|
|
44
48
|
setInstalled(false);
|
|
45
49
|
}
|
|
46
50
|
})();
|
|
47
51
|
}, [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
|
|
52
|
+
return (_jsxs("button", { onClick: onClick, children: [_jsx("img", { src: Images[connector.name] || Images["Coinbased Wallet"], alt: connector.name, width: 23, height: 18 }), isPending
|
|
50
53
|
? "Connecting..."
|
|
51
|
-
:
|
|
52
|
-
?
|
|
53
|
-
:
|
|
54
|
+
: connector.id === "walletConnect"
|
|
55
|
+
? "WalletConnect"
|
|
56
|
+
: !installed
|
|
57
|
+
? `${connector.name} (Not Installed)`
|
|
58
|
+
: connector.name] }));
|
|
54
59
|
}
|
|
@@ -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 0.5s 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(10%);
|
|
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
|
|