@moon-x/react-sdk 0.9.0 → 0.10.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/README.md +18 -16
- package/dist/{chunk-7XFCJAFG.mjs → chunk-ACYQG7VT.mjs} +4 -4
- package/dist/{chunk-VBAVYDWQ.js → chunk-IPTLHXJ4.js} +4 -4
- package/dist/{chunk-OAG4S5VJ.mjs → chunk-MURLJWUN.mjs} +3 -3
- package/dist/{chunk-F345C4FX.js → chunk-RRFMI4ZL.js} +3 -3
- package/dist/index.css +43 -43
- package/dist/index.d.mts +13 -13
- package/dist/index.d.ts +13 -13
- package/dist/index.js +732 -688
- package/dist/index.mjs +730 -685
- package/dist/style.css +43 -43
- package/dist/wallets/ethereum.js +15 -15
- package/dist/wallets/ethereum.mjs +1 -1
- package/dist/wallets/solana.js +11 -11
- package/dist/wallets/solana.mjs +1 -1
- package/package.json +2 -2
package/dist/style.css
CHANGED
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
font-display: swap;
|
|
57
57
|
}
|
|
58
58
|
:root {
|
|
59
|
-
--
|
|
59
|
+
--moonx-font-family:
|
|
60
60
|
"Sons",
|
|
61
61
|
-apple-system,
|
|
62
62
|
BlinkMacSystemFont,
|
|
@@ -69,55 +69,55 @@
|
|
|
69
69
|
"Droid Sans",
|
|
70
70
|
"Helvetica Neue",
|
|
71
71
|
sans-serif;
|
|
72
|
-
--
|
|
73
|
-
--
|
|
74
|
-
--
|
|
75
|
-
--
|
|
76
|
-
--
|
|
77
|
-
--
|
|
78
|
-
--
|
|
79
|
-
--
|
|
80
|
-
--
|
|
81
|
-
--
|
|
82
|
-
--
|
|
83
|
-
--
|
|
84
|
-
--
|
|
85
|
-
--
|
|
86
|
-
--
|
|
87
|
-
--
|
|
88
|
-
--
|
|
89
|
-
--
|
|
90
|
-
--
|
|
91
|
-
--
|
|
92
|
-
--
|
|
93
|
-
--
|
|
94
|
-
--
|
|
95
|
-
--
|
|
96
|
-
}
|
|
97
|
-
.
|
|
98
|
-
animation:
|
|
99
|
-
}
|
|
100
|
-
.
|
|
72
|
+
--moonx-border-radius-sm: 0.375rem;
|
|
73
|
+
--moonx-border-radius-md: 0.5rem;
|
|
74
|
+
--moonx-border-radius-lg: 0.75rem;
|
|
75
|
+
--moonx-border-radius-full: 9999px;
|
|
76
|
+
--moonx-color-background: #ffffff;
|
|
77
|
+
--moonx-color-background-2: #f9fafb;
|
|
78
|
+
--moonx-color-background-3: #f3f4f6;
|
|
79
|
+
--moonx-color-foreground: #111827;
|
|
80
|
+
--moonx-color-foreground-2: #374151;
|
|
81
|
+
--moonx-color-foreground-3: #6b7280;
|
|
82
|
+
--moonx-color-foreground-4: #9ca3af;
|
|
83
|
+
--moonx-color-foreground-accent: #4f46e5;
|
|
84
|
+
--moonx-color-accent: #6366f1;
|
|
85
|
+
--moonx-color-accent-foreground: #ffffff;
|
|
86
|
+
--moonx-color-accent-light: #818cf8;
|
|
87
|
+
--moonx-color-accent-lightest: #c7d2fe;
|
|
88
|
+
--moonx-color-accent-dark: #4338ca;
|
|
89
|
+
--moonx-color-accent-darkest: #3730a3;
|
|
90
|
+
--moonx-color-success: #10b981;
|
|
91
|
+
--moonx-color-success-foreground: #ffffff;
|
|
92
|
+
--moonx-color-error: #ef4444;
|
|
93
|
+
--moonx-color-error-foreground: #ffffff;
|
|
94
|
+
--moonx-color-error-light: #fca5a5;
|
|
95
|
+
--moonx-color-border: #e5e7eb;
|
|
96
|
+
}
|
|
97
|
+
.moonx-animate-in {
|
|
98
|
+
animation: moonx-enter 0.2s ease-out;
|
|
99
|
+
}
|
|
100
|
+
.moonx-fade-in-0 {
|
|
101
101
|
--tw-enter-opacity: initial;
|
|
102
102
|
--tw-enter-scale: initial;
|
|
103
103
|
--tw-enter-rotate: initial;
|
|
104
104
|
--tw-enter-translate-x: initial;
|
|
105
105
|
--tw-enter-translate-y: initial;
|
|
106
106
|
}
|
|
107
|
-
.
|
|
107
|
+
.moonx-zoom-in-95 {
|
|
108
108
|
--tw-enter-scale: .95;
|
|
109
109
|
}
|
|
110
|
-
.
|
|
110
|
+
.moonx-duration-200 {
|
|
111
111
|
animation-duration: 0.2s;
|
|
112
112
|
}
|
|
113
|
-
.
|
|
113
|
+
.moonx-center-y {
|
|
114
114
|
top: 50%;
|
|
115
115
|
transform: translateY(-50%);
|
|
116
116
|
}
|
|
117
|
-
.
|
|
118
|
-
animation:
|
|
117
|
+
.moonx-animate-spin {
|
|
118
|
+
animation: moonx-spin 1s linear infinite;
|
|
119
119
|
}
|
|
120
|
-
.
|
|
120
|
+
.moonx-modal-overlay {
|
|
121
121
|
position: fixed;
|
|
122
122
|
top: 0;
|
|
123
123
|
left: 0;
|
|
@@ -125,11 +125,11 @@
|
|
|
125
125
|
bottom: 0;
|
|
126
126
|
width: 100vw;
|
|
127
127
|
height: 100vh;
|
|
128
|
-
background-color: var(--
|
|
128
|
+
background-color: var(--moonx-color-background-3);
|
|
129
129
|
backdrop-filter: blur(4px);
|
|
130
130
|
z-index: 50;
|
|
131
131
|
}
|
|
132
|
-
.
|
|
132
|
+
.moonx-modal-container {
|
|
133
133
|
position: fixed;
|
|
134
134
|
top: 0;
|
|
135
135
|
left: 0;
|
|
@@ -143,23 +143,23 @@
|
|
|
143
143
|
padding: 1rem;
|
|
144
144
|
z-index: 51;
|
|
145
145
|
}
|
|
146
|
-
.
|
|
146
|
+
.moonx-input::placeholder {
|
|
147
147
|
opacity: 0.3;
|
|
148
148
|
}
|
|
149
|
-
.
|
|
149
|
+
.moonx-scrollbar-none {
|
|
150
150
|
scrollbar-width: none;
|
|
151
151
|
-ms-overflow-style: none;
|
|
152
152
|
}
|
|
153
|
-
.
|
|
153
|
+
.moonx-scrollbar-none::-webkit-scrollbar {
|
|
154
154
|
display: none;
|
|
155
155
|
}
|
|
156
|
-
@keyframes
|
|
156
|
+
@keyframes moonx-enter {
|
|
157
157
|
from {
|
|
158
158
|
opacity: 0;
|
|
159
159
|
transform: translate3d(var(--tw-enter-translate-x, 0), var(--tw-enter-translate-y, 0), 0) scale3d(var(--tw-enter-scale, 1), var(--tw-enter-scale, 1), var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0));
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
|
-
@keyframes
|
|
162
|
+
@keyframes moonx-spin {
|
|
163
163
|
from {
|
|
164
164
|
transform: rotate(0deg);
|
|
165
165
|
}
|
package/dist/wallets/ethereum.js
CHANGED
|
@@ -3,19 +3,19 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3
3
|
value: true
|
|
4
4
|
});
|
|
5
5
|
"use client";
|
|
6
|
-
var
|
|
6
|
+
var _chunkIPTLHXJ4js = require('../chunk-IPTLHXJ4.js');
|
|
7
7
|
require('../chunk-SPXMMQ7Z.js');
|
|
8
|
-
exports.useCreateWallet =
|
|
9
|
-
exports.useEthereumProvider =
|
|
10
|
-
exports.useExportKey =
|
|
11
|
-
exports.useFundWallet =
|
|
12
|
-
exports.useGetBalance =
|
|
13
|
-
exports.useGetEthereumProvider =
|
|
14
|
-
exports.useImportKey =
|
|
15
|
-
exports.useSendTransaction =
|
|
16
|
-
exports.useSign7702Authorization =
|
|
17
|
-
exports.useSignHash =
|
|
18
|
-
exports.useSignMessage =
|
|
19
|
-
exports.useSignTransaction =
|
|
20
|
-
exports.useSignTypedData =
|
|
21
|
-
exports.useWallets =
|
|
8
|
+
exports.useCreateWallet = _chunkIPTLHXJ4js.useCreateWallet;
|
|
9
|
+
exports.useEthereumProvider = _chunkIPTLHXJ4js.useEthereumProvider;
|
|
10
|
+
exports.useExportKey = _chunkIPTLHXJ4js.useExportKey;
|
|
11
|
+
exports.useFundWallet = _chunkIPTLHXJ4js.useFundWallet;
|
|
12
|
+
exports.useGetBalance = _chunkIPTLHXJ4js.useGetBalance;
|
|
13
|
+
exports.useGetEthereumProvider = _chunkIPTLHXJ4js.useGetEthereumProvider;
|
|
14
|
+
exports.useImportKey = _chunkIPTLHXJ4js.useImportKey;
|
|
15
|
+
exports.useSendTransaction = _chunkIPTLHXJ4js.useSendTransaction;
|
|
16
|
+
exports.useSign7702Authorization = _chunkIPTLHXJ4js.useSign7702Authorization;
|
|
17
|
+
exports.useSignHash = _chunkIPTLHXJ4js.useSignHash;
|
|
18
|
+
exports.useSignMessage = _chunkIPTLHXJ4js.useSignMessage;
|
|
19
|
+
exports.useSignTransaction = _chunkIPTLHXJ4js.useSignTransaction;
|
|
20
|
+
exports.useSignTypedData = _chunkIPTLHXJ4js.useSignTypedData;
|
|
21
|
+
exports.useWallets = _chunkIPTLHXJ4js.useWallets;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { useCreateWallet, useEthereumProvider, useExportKey, useFundWallet, useGetBalance, useGetEthereumProvider, useImportKey, useSendTransaction, useSign7702Authorization, useSignHash, useSignMessage, useSignTransaction, useSignTypedData, useWallets } from "../chunk-
|
|
2
|
+
import { useCreateWallet, useEthereumProvider, useExportKey, useFundWallet, useGetBalance, useGetEthereumProvider, useImportKey, useSendTransaction, useSign7702Authorization, useSignHash, useSignMessage, useSignTransaction, useSignTypedData, useWallets } from "../chunk-ACYQG7VT.mjs";
|
|
3
3
|
import "../chunk-PCEN5CH6.mjs";
|
|
4
4
|
export { useCreateWallet, useEthereumProvider, useExportKey, useFundWallet, useGetBalance, useGetEthereumProvider, useImportKey, useSendTransaction, useSign7702Authorization, useSignHash, useSignMessage, useSignTransaction, useSignTypedData, useWallets };
|
package/dist/wallets/solana.js
CHANGED
|
@@ -3,15 +3,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3
3
|
value: true
|
|
4
4
|
});
|
|
5
5
|
"use client";
|
|
6
|
-
var
|
|
6
|
+
var _chunkRRFMI4ZLjs = require('../chunk-RRFMI4ZL.js');
|
|
7
7
|
require('../chunk-SPXMMQ7Z.js');
|
|
8
|
-
exports.useCreateWallet =
|
|
9
|
-
exports.useExportKey =
|
|
10
|
-
exports.useFundWallet =
|
|
11
|
-
exports.useGetBalance =
|
|
12
|
-
exports.useGetTokenAccounts =
|
|
13
|
-
exports.useImportKey =
|
|
14
|
-
exports.useSendTransaction =
|
|
15
|
-
exports.useSignMessage =
|
|
16
|
-
exports.useSignTransaction =
|
|
17
|
-
exports.useWallets =
|
|
8
|
+
exports.useCreateWallet = _chunkRRFMI4ZLjs.useCreateWallet;
|
|
9
|
+
exports.useExportKey = _chunkRRFMI4ZLjs.useExportKey;
|
|
10
|
+
exports.useFundWallet = _chunkRRFMI4ZLjs.useFundWallet;
|
|
11
|
+
exports.useGetBalance = _chunkRRFMI4ZLjs.useGetBalance;
|
|
12
|
+
exports.useGetTokenAccounts = _chunkRRFMI4ZLjs.useGetTokenAccounts;
|
|
13
|
+
exports.useImportKey = _chunkRRFMI4ZLjs.useImportKey;
|
|
14
|
+
exports.useSendTransaction = _chunkRRFMI4ZLjs.useSendTransaction;
|
|
15
|
+
exports.useSignMessage = _chunkRRFMI4ZLjs.useSignMessage;
|
|
16
|
+
exports.useSignTransaction = _chunkRRFMI4ZLjs.useSignTransaction;
|
|
17
|
+
exports.useWallets = _chunkRRFMI4ZLjs.useWallets;
|
package/dist/wallets/solana.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { useCreateWallet, useExportKey, useFundWallet, useGetBalance, useGetTokenAccounts, useImportKey, useSendTransaction, useSignMessage, useSignTransaction, useWallets } from "../chunk-
|
|
2
|
+
import { useCreateWallet, useExportKey, useFundWallet, useGetBalance, useGetTokenAccounts, useImportKey, useSendTransaction, useSignMessage, useSignTransaction, useWallets } from "../chunk-MURLJWUN.mjs";
|
|
3
3
|
import "../chunk-PCEN5CH6.mjs";
|
|
4
4
|
export { useCreateWallet, useExportKey, useFundWallet, useGetBalance, useGetTokenAccounts, useImportKey, useSendTransaction, useSignMessage, useSignTransaction, useWallets };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moon-x/react-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"description": "React authentication hooks and components for MoonKey",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"tweetnacl": "1.0.3",
|
|
53
53
|
"viem": "^2.38.2",
|
|
54
54
|
"wagmi": "^2.18.1",
|
|
55
|
-
"@moon-x/core": "0.
|
|
55
|
+
"@moon-x/core": "0.12.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"tsup": "^8.0.0",
|