@matchain/matchid-sdk-react 0.1.51-alpha.1 → 0.1.51
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/{chunk-55KKIDVT.mjs → chunk-UXFJALFG.mjs} +2 -2
- package/dist/{chunk-KKWAYHRG.mjs → chunk-VIJ4FUT3.mjs} +9 -7
- package/dist/chunk-VIJ4FUT3.mjs.map +1 -0
- package/dist/components/index.js +8 -6
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +1 -1
- package/dist/hooks/api/index.js +2 -2
- package/dist/hooks/api/index.js.map +1 -1
- package/dist/hooks/api/index.mjs +2 -2
- package/dist/hooks/index.js +7 -5
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +1 -1
- package/dist/index.css +70 -16
- package/dist/index.js +8 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/example/src/components/Login/index.tsx +9 -1
- package/package.json +1 -1
- package/dist/chunk-KKWAYHRG.mjs.map +0 -1
- /package/dist/{chunk-55KKIDVT.mjs.map → chunk-UXFJALFG.mjs.map} +0 -0
package/dist/hooks/index.mjs
CHANGED
package/dist/index.css
CHANGED
|
@@ -1174,11 +1174,17 @@ body {
|
|
|
1174
1174
|
display: flex;
|
|
1175
1175
|
flex-direction: column;
|
|
1176
1176
|
gap: 48px;
|
|
1177
|
+
@media screen and (max-width: 768px) {
|
|
1178
|
+
gap:36px;
|
|
1179
|
+
}
|
|
1177
1180
|
|
|
1178
1181
|
.matchid-change-network-list {
|
|
1179
1182
|
display: flex;
|
|
1180
1183
|
flex-direction: column;
|
|
1181
1184
|
gap: 24px;
|
|
1185
|
+
@media screen and (max-width: 768px) {
|
|
1186
|
+
gap: 16px;
|
|
1187
|
+
}
|
|
1182
1188
|
|
|
1183
1189
|
.matchid-change-network-item {
|
|
1184
1190
|
cursor: pointer;
|
|
@@ -1190,6 +1196,10 @@ body {
|
|
|
1190
1196
|
border: 1px solid var(--matchid-line);
|
|
1191
1197
|
border-radius: 16px;
|
|
1192
1198
|
transition: border-color 0.2s;
|
|
1199
|
+
@media screen and (max-width: 768px) {
|
|
1200
|
+
padding: 10px 16px;
|
|
1201
|
+
border-radius: 12px;
|
|
1202
|
+
}
|
|
1193
1203
|
|
|
1194
1204
|
&:hover, &.matchid-change-network-selected {
|
|
1195
1205
|
border-color: var(--matchid-highlight-orange);
|
|
@@ -1199,15 +1209,17 @@ body {
|
|
|
1199
1209
|
display: flex;
|
|
1200
1210
|
align-items: center;
|
|
1201
1211
|
gap: 16px;
|
|
1212
|
+
@media screen and (max-width: 768px) {
|
|
1213
|
+
gap:8px;
|
|
1214
|
+
}
|
|
1202
1215
|
|
|
1203
1216
|
.matchid-change-network-item-icon {
|
|
1204
|
-
width:
|
|
1205
|
-
height:
|
|
1206
|
-
border-radius:
|
|
1217
|
+
width: 28px;
|
|
1218
|
+
height: 28px;
|
|
1219
|
+
border-radius: 8px;
|
|
1207
1220
|
@media (min-width: 768px) {
|
|
1208
1221
|
width: 40px;
|
|
1209
1222
|
height: 40px;
|
|
1210
|
-
|
|
1211
1223
|
}
|
|
1212
1224
|
}
|
|
1213
1225
|
|
|
@@ -1256,13 +1268,18 @@ body {
|
|
|
1256
1268
|
align-items: center;
|
|
1257
1269
|
flex: 1;
|
|
1258
1270
|
gap: 48px;
|
|
1271
|
+
@media screen and (max-width: 768px) {
|
|
1272
|
+
gap: 36px;
|
|
1273
|
+
}
|
|
1259
1274
|
|
|
1260
1275
|
.matchid-receive-container {
|
|
1261
1276
|
display: flex;
|
|
1262
1277
|
flex-direction: column;
|
|
1263
1278
|
align-items: center;
|
|
1264
1279
|
gap: 48px;
|
|
1265
|
-
|
|
1280
|
+
@media screen and (max-width: 768px) {
|
|
1281
|
+
gap: 24px;
|
|
1282
|
+
}
|
|
1266
1283
|
.matchid-receive-text {
|
|
1267
1284
|
font-size: 14px;
|
|
1268
1285
|
font-weight: 500;
|
|
@@ -1276,10 +1293,16 @@ body {
|
|
|
1276
1293
|
border: 2px solid var(--matchid-line);
|
|
1277
1294
|
border-radius: 12px;
|
|
1278
1295
|
padding: 16px;
|
|
1279
|
-
|
|
1296
|
+
@media screen and (max-width: 768px) {
|
|
1297
|
+
padding: 10px;
|
|
1298
|
+
}
|
|
1280
1299
|
.matchid-qr-code {
|
|
1281
1300
|
width: 148px;
|
|
1282
1301
|
height: 148px;
|
|
1302
|
+
@media screen and (max-width: 768px) {
|
|
1303
|
+
width: 88px;
|
|
1304
|
+
height: 88px;
|
|
1305
|
+
}
|
|
1283
1306
|
}
|
|
1284
1307
|
}
|
|
1285
1308
|
|
|
@@ -1287,12 +1310,8 @@ body {
|
|
|
1287
1310
|
text-align: center;
|
|
1288
1311
|
word-break: break-all;
|
|
1289
1312
|
color: var(--matchid-link);
|
|
1290
|
-
font-size:
|
|
1313
|
+
font-size: 14px;
|
|
1291
1314
|
font-weight: 500;
|
|
1292
|
-
|
|
1293
|
-
@media (min-width: 768px) {
|
|
1294
|
-
font-size: 14px;
|
|
1295
|
-
}
|
|
1296
1315
|
}
|
|
1297
1316
|
}
|
|
1298
1317
|
}
|
|
@@ -1301,11 +1320,17 @@ body {
|
|
|
1301
1320
|
display: flex;
|
|
1302
1321
|
flex-direction: column;
|
|
1303
1322
|
gap: 48px;
|
|
1323
|
+
@media screen and (max-width: 768px) {
|
|
1324
|
+
gap: 36px;
|
|
1325
|
+
}
|
|
1304
1326
|
|
|
1305
1327
|
.matchid-import-token-form {
|
|
1306
1328
|
display: flex;
|
|
1307
1329
|
flex-direction: column;
|
|
1308
|
-
gap: 24px
|
|
1330
|
+
gap: 24px;
|
|
1331
|
+
@media screen and (max-width: 768px) {
|
|
1332
|
+
gap: 16px;
|
|
1333
|
+
}
|
|
1309
1334
|
}
|
|
1310
1335
|
}
|
|
1311
1336
|
|
|
@@ -1455,9 +1480,11 @@ body {
|
|
|
1455
1480
|
justify-content: space-between;
|
|
1456
1481
|
flex-direction: column;
|
|
1457
1482
|
padding-bottom: 200px;
|
|
1458
|
-
gap:
|
|
1483
|
+
gap: 48px;
|
|
1484
|
+
|
|
1459
1485
|
@media (max-width: 768px) {
|
|
1460
1486
|
padding-bottom: 0px;
|
|
1487
|
+
gap:36px;
|
|
1461
1488
|
}
|
|
1462
1489
|
|
|
1463
1490
|
.matchid-token-main {
|
|
@@ -1510,6 +1537,9 @@ body {
|
|
|
1510
1537
|
padding: 16px;
|
|
1511
1538
|
background: var(--matchid-gray-100);
|
|
1512
1539
|
border-radius: 12px;
|
|
1540
|
+
@media (max-width: 768px) {
|
|
1541
|
+
gap:8px;
|
|
1542
|
+
}
|
|
1513
1543
|
|
|
1514
1544
|
.matchid-token-contract-title {
|
|
1515
1545
|
color: var(--matchid-black);
|
|
@@ -1542,6 +1572,7 @@ body {
|
|
|
1542
1572
|
gap: 40px;
|
|
1543
1573
|
@media (max-width: 768px) {
|
|
1544
1574
|
padding-bottom: 0px;
|
|
1575
|
+
gap:68px;
|
|
1545
1576
|
}
|
|
1546
1577
|
|
|
1547
1578
|
.matchid-token-send-content {
|
|
@@ -1655,6 +1686,9 @@ body {
|
|
|
1655
1686
|
font-weight: 600;
|
|
1656
1687
|
border-bottom: 1px solid var(--matchid-line);
|
|
1657
1688
|
caret-color: var(--matchid-black);
|
|
1689
|
+
@media (max-width: 768px) {
|
|
1690
|
+
font-size: 20px;
|
|
1691
|
+
}
|
|
1658
1692
|
|
|
1659
1693
|
&::placeholder {
|
|
1660
1694
|
color: var(--matchid-disabled);
|
|
@@ -1673,6 +1707,9 @@ body {
|
|
|
1673
1707
|
&.matchid-token-input-sm {
|
|
1674
1708
|
.matchid-token-input {
|
|
1675
1709
|
font-size: 16px;
|
|
1710
|
+
@media (max-width: 768px) {
|
|
1711
|
+
font-size: 14px;
|
|
1712
|
+
}
|
|
1676
1713
|
}
|
|
1677
1714
|
}
|
|
1678
1715
|
|
|
@@ -1692,8 +1729,10 @@ body {
|
|
|
1692
1729
|
overflow-y: scroll;
|
|
1693
1730
|
max-height: 70vh;
|
|
1694
1731
|
|
|
1732
|
+
|
|
1695
1733
|
@media (max-width: 768px) {
|
|
1696
1734
|
padding-bottom: 0px;
|
|
1735
|
+
gap:36px;
|
|
1697
1736
|
}
|
|
1698
1737
|
|
|
1699
1738
|
.matchid-token-send-list {
|
|
@@ -1702,6 +1741,10 @@ body {
|
|
|
1702
1741
|
gap: 24px;
|
|
1703
1742
|
flex: 1;
|
|
1704
1743
|
overflow-y: scroll;
|
|
1744
|
+
max-height: calc(70vh - 48px - 50px);
|
|
1745
|
+
@media (max-width: 768px) {
|
|
1746
|
+
max-height: calc(70vh - 48px - 38px);
|
|
1747
|
+
}
|
|
1705
1748
|
|
|
1706
1749
|
.matchid-token-send-item {
|
|
1707
1750
|
cursor: pointer;
|
|
@@ -1713,6 +1756,10 @@ body {
|
|
|
1713
1756
|
border: 1px solid var(--matchid-line);
|
|
1714
1757
|
border-radius: 16px;
|
|
1715
1758
|
transition: border-color 0.2s;
|
|
1759
|
+
@media (max-width: 768px) {
|
|
1760
|
+
padding: 10px 16px;
|
|
1761
|
+
border-radius: 12px;
|
|
1762
|
+
}
|
|
1716
1763
|
|
|
1717
1764
|
&:hover, &.matchid-token-send-checked {
|
|
1718
1765
|
border-color: var(--matchid-highlight-orange);
|
|
@@ -1723,10 +1770,13 @@ body {
|
|
|
1723
1770
|
align-items: center;
|
|
1724
1771
|
flex: 1;
|
|
1725
1772
|
gap: 16px;
|
|
1773
|
+
@media (max-width: 768px) {
|
|
1774
|
+
gap: 8px;
|
|
1775
|
+
}
|
|
1726
1776
|
|
|
1727
1777
|
.matchid-token-send-logo {
|
|
1728
|
-
width:
|
|
1729
|
-
height:
|
|
1778
|
+
width: 28px;
|
|
1779
|
+
height: 28px;
|
|
1730
1780
|
position: relative;
|
|
1731
1781
|
|
|
1732
1782
|
.matchid-token-send-icon {
|
|
@@ -1903,6 +1953,7 @@ body {
|
|
|
1903
1953
|
justify-content: space-between;
|
|
1904
1954
|
@media screen and (max-width: 768px) {
|
|
1905
1955
|
padding-bottom: 0;
|
|
1956
|
+
gap:115px;
|
|
1906
1957
|
}
|
|
1907
1958
|
|
|
1908
1959
|
.matchid-import-token-result-box {
|
|
@@ -1910,6 +1961,9 @@ body {
|
|
|
1910
1961
|
flex-direction: column;
|
|
1911
1962
|
gap: 48px;
|
|
1912
1963
|
align-items: center;
|
|
1964
|
+
@media screen and (max-width: 768px) {
|
|
1965
|
+
gap: 24px;
|
|
1966
|
+
}
|
|
1913
1967
|
|
|
1914
1968
|
.matchid-import-token-result-img {
|
|
1915
1969
|
width: 96px;
|
|
@@ -1921,7 +1975,7 @@ body {
|
|
|
1921
1975
|
font-weight: 500;
|
|
1922
1976
|
color: var(--matchid-success);
|
|
1923
1977
|
@media screen and (max-width: 768px) {
|
|
1924
|
-
font-size:
|
|
1978
|
+
font-size: 18px;
|
|
1925
1979
|
}
|
|
1926
1980
|
}
|
|
1927
1981
|
|
package/dist/index.js
CHANGED
|
@@ -2051,11 +2051,11 @@ function useUserInfo() {
|
|
|
2051
2051
|
};
|
|
2052
2052
|
const getLoginEmailCode = async (email) => {
|
|
2053
2053
|
const res = await getEmailCodeApi(email);
|
|
2054
|
-
if (
|
|
2054
|
+
if (isSuccess(res)) {
|
|
2055
2055
|
window.sessionStorage.setItem("loginkey", res.data.key);
|
|
2056
2056
|
return res.data.key;
|
|
2057
2057
|
}
|
|
2058
|
-
|
|
2058
|
+
throw new Error(res.message);
|
|
2059
2059
|
};
|
|
2060
2060
|
const loginByEmail = async ({
|
|
2061
2061
|
email,
|
|
@@ -3282,6 +3282,7 @@ function useMatchChain() {
|
|
|
3282
3282
|
}) {
|
|
3283
3283
|
const { chainId: storeChainId2, setChainId: setChainId2 } = useLocalStore_default();
|
|
3284
3284
|
const [selectedChainId, setSelectedChainId] = (0, import_react13.useState)(storeChainId2);
|
|
3285
|
+
const isDownMd = useDownMd();
|
|
3285
3286
|
return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: `matchid-change-network-box`, children: [
|
|
3286
3287
|
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: `matchid-change-network-list`, children: chainListQuery.data?.map((item, index) => {
|
|
3287
3288
|
return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
|
|
@@ -3294,7 +3295,7 @@ function useMatchChain() {
|
|
|
3294
3295
|
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("img", { src: item.iconUrl, className: `matchid-change-network-item-icon` }),
|
|
3295
3296
|
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { className: "matchid-change-network-item-name", children: item.name })
|
|
3296
3297
|
] }),
|
|
3297
|
-
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Radio, { checked: selectedChainId === item.id })
|
|
3298
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Radio, { checked: selectedChainId === item.id, size: isDownMd ? 18 : 24 })
|
|
3298
3299
|
]
|
|
3299
3300
|
},
|
|
3300
3301
|
index
|
|
@@ -3439,8 +3440,8 @@ function StepVerify(props) {
|
|
|
3439
3440
|
try {
|
|
3440
3441
|
setError("");
|
|
3441
3442
|
setSending(true);
|
|
3442
|
-
sendTimeRef.current = intervalTime;
|
|
3443
3443
|
await getLoginEmailCode(props.email);
|
|
3444
|
+
sendTimeRef.current = intervalTime;
|
|
3444
3445
|
setSendBtnText(`${sendTimeRef.current}s`);
|
|
3445
3446
|
intervalRef.current = setInterval(() => {
|
|
3446
3447
|
sendTimeRef.current--;
|
|
@@ -5604,6 +5605,7 @@ var import_react31 = require("react");
|
|
|
5604
5605
|
var import_react_intl16 = require("react-intl");
|
|
5605
5606
|
var import_jsx_runtime87 = require("react/jsx-runtime");
|
|
5606
5607
|
function TokenSendList({ close }) {
|
|
5608
|
+
const isDownMd = useDownMd();
|
|
5607
5609
|
const walletAssets = useMatchWalletAssets();
|
|
5608
5610
|
const matchWalletAssetList = useMatchWalletAssetList({
|
|
5609
5611
|
list: walletAssets.mergedAssets
|
|
@@ -5630,14 +5632,14 @@ function TokenSendList({ close }) {
|
|
|
5630
5632
|
setChecked(n);
|
|
5631
5633
|
},
|
|
5632
5634
|
children: [
|
|
5633
|
-
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)(Radio, { checked: checked?.address == n.address }),
|
|
5635
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)(Radio, { checked: checked?.address == n.address, size: isDownMd ? 18 : 24 }),
|
|
5634
5636
|
/* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: "matchid-token-send-content", children: [
|
|
5635
5637
|
/* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: "matchid-token-send-logo", children: [
|
|
5636
5638
|
n.icon ? /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("img", { src: n.icon, alt: n.symbol, className: `matchid-token-send-icon` }) : /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
5637
5639
|
AlphaAvatar2,
|
|
5638
5640
|
{
|
|
5639
5641
|
className: `matchid-token-send-icon`,
|
|
5640
|
-
size: 40,
|
|
5642
|
+
size: isDownMd ? 28 : 40,
|
|
5641
5643
|
name: n.symbol || n.name || ""
|
|
5642
5644
|
}
|
|
5643
5645
|
),
|