@matchain/matchid-sdk-react 0.1.53-alpha.1 → 0.1.53-alpha.11

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.
Files changed (100) hide show
  1. package/dist/assets/icon/index.d.mts +4 -144
  2. package/dist/assets/icon/index.d.ts +4 -144
  3. package/dist/assets/icon/index.js +54 -0
  4. package/dist/assets/icon/index.js.map +1 -1
  5. package/dist/assets/icon/index.mjs +5 -1
  6. package/dist/{chunk-2DVC6WCN.mjs → chunk-2EQEYYBD.mjs} +5750 -4942
  7. package/dist/chunk-2EQEYYBD.mjs.map +1 -0
  8. package/dist/chunk-3CR66BEX.mjs +19 -0
  9. package/dist/chunk-3CR66BEX.mjs.map +1 -0
  10. package/dist/{chunk-LHNKZISB.mjs → chunk-FKXS2XRG.mjs} +114 -2
  11. package/dist/chunk-FKXS2XRG.mjs.map +1 -0
  12. package/dist/{chunk-HLUFAIFV.mjs → chunk-IZOOVZAD.mjs} +11 -6
  13. package/dist/chunk-IZOOVZAD.mjs.map +1 -0
  14. package/dist/{chunk-HYQ3T6WW.mjs → chunk-JX73EY6V.mjs} +2 -14
  15. package/dist/chunk-JX73EY6V.mjs.map +1 -0
  16. package/dist/{chunk-FB5MHLWX.mjs → chunk-X5HGL3ZX.mjs} +45 -3
  17. package/dist/chunk-X5HGL3ZX.mjs.map +1 -0
  18. package/dist/components/index.d.mts +3 -3
  19. package/dist/components/index.d.ts +3 -3
  20. package/dist/components/index.js +1467 -590
  21. package/dist/components/index.js.map +1 -1
  22. package/dist/components/index.mjs +11 -6
  23. package/dist/config/chains/index.mjs +2 -1
  24. package/dist/hooks/api/index.d.mts +3 -2
  25. package/dist/hooks/api/index.d.ts +3 -2
  26. package/dist/hooks/api/index.js +401 -147
  27. package/dist/hooks/api/index.js.map +1 -1
  28. package/dist/hooks/api/index.mjs +9 -8
  29. package/dist/hooks/index.d.mts +3 -2
  30. package/dist/hooks/index.d.ts +3 -2
  31. package/dist/hooks/index.js +637 -544
  32. package/dist/hooks/index.js.map +1 -1
  33. package/dist/hooks/index.mjs +5 -4
  34. package/dist/index-BVfCh4l-.d.mts +203 -0
  35. package/dist/{index-B_o9HBS1.d.mts → index-BaFmUVw-.d.mts} +1 -1
  36. package/dist/{index-CDqIk5k2.d.mts → index-BgdY5xdW.d.ts} +41 -17
  37. package/dist/{index-DvM6x6e6.d.ts → index-BrzFSkOe.d.mts} +41 -17
  38. package/dist/{index-DMUZQqNB.d.ts → index-C0UKUm0h.d.ts} +25 -5
  39. package/dist/{index-BUj9mOrS.d.ts → index-CQmN0dN4.d.ts} +1 -1
  40. package/dist/index-D3Kp05kW.d.ts +203 -0
  41. package/dist/{index-k2Uf0F94.d.ts → index-D5WIVIkc.d.ts} +4 -2
  42. package/dist/{index-BDoEk1EK.d.ts → index-D7S5DMUy.d.mts} +21 -8
  43. package/dist/{index-D5OzNRfu.d.mts → index-DC4F1u-w.d.mts} +25 -5
  44. package/dist/{index-XzSw1Bym.d.mts → index-DQFQ39D9.d.ts} +21 -8
  45. package/dist/{index-B-QfwtE5.d.mts → index-DjbH13zc.d.mts} +16 -14
  46. package/dist/{index-Bmir-Wor.d.mts → index-SOVt-ADK.d.mts} +4 -2
  47. package/dist/{index-X_fw5wX_.d.ts → index-zc2GEzJ9.d.ts} +16 -14
  48. package/dist/index.css +124 -13
  49. package/dist/index.d.mts +9 -8
  50. package/dist/index.d.ts +9 -8
  51. package/dist/index.js +1860 -919
  52. package/dist/index.js.map +1 -1
  53. package/dist/index.mjs +13 -11
  54. package/dist/request-B0CyrGFT.d.mts +15 -0
  55. package/dist/request-B0CyrGFT.d.ts +15 -0
  56. package/dist/types/index.d.mts +1 -1
  57. package/dist/types/index.d.ts +1 -1
  58. package/dist/{types-Dd_ExpLx.d.mts → types-VrV1kYga.d.mts} +10 -2
  59. package/dist/{types-Dd_ExpLx.d.ts → types-VrV1kYga.d.ts} +10 -2
  60. package/dist/ui/index.d.mts +3 -3
  61. package/dist/ui/index.d.ts +3 -3
  62. package/dist/ui/index.js +109 -61
  63. package/dist/ui/index.js.map +1 -1
  64. package/dist/ui/index.mjs +8 -4
  65. package/dist/utils/index.d.mts +3 -2
  66. package/dist/utils/index.d.ts +3 -2
  67. package/dist/utils/index.js +10 -4
  68. package/dist/utils/index.js.map +1 -1
  69. package/dist/utils/index.mjs +3 -1
  70. package/example/package.json +3 -1
  71. package/example/src/App.tsx +30 -7
  72. package/example/src/pages/Contact/index.tsx +90 -0
  73. package/example/src/pages/UI/components/Tabs.tsx +18 -0
  74. package/example/src/pages/UI/index.tsx +2 -0
  75. package/example/src/pages/User/index.tsx +7 -1
  76. package/package.json +5 -5
  77. package/dist/chunk-2DVC6WCN.mjs.map +0 -1
  78. package/dist/chunk-6QTW3KXN.mjs +0 -97
  79. package/dist/chunk-6QTW3KXN.mjs.map +0 -1
  80. package/dist/chunk-FB5MHLWX.mjs.map +0 -1
  81. package/dist/chunk-HLUFAIFV.mjs.map +0 -1
  82. package/dist/chunk-HYQ3T6WW.mjs.map +0 -1
  83. package/dist/chunk-LHNKZISB.mjs.map +0 -1
  84. package/example/dist/assets/TransportWebHID-BEu7tC0r.js +0 -1
  85. package/example/dist/assets/bignumber-iG7K-qxw.js +0 -10
  86. package/example/dist/assets/ccip-a6wQ1Vcb.js +0 -1
  87. package/example/dist/assets/draggabilly-CRYR_S0q.js +0 -14
  88. package/example/dist/assets/index--dp9m9Ep.js +0 -1
  89. package/example/dist/assets/index-BDTHolFv.js +0 -569
  90. package/example/dist/assets/index-BZl59qLb.js +0 -179
  91. package/example/dist/assets/index-BmMbYNHO.js +0 -303
  92. package/example/dist/assets/index-C7cxVRDF.js +0 -1677
  93. package/example/dist/assets/index-CJk171Yb.js +0 -1
  94. package/example/dist/assets/index-CQiBesAa.js +0 -3
  95. package/example/dist/assets/index-D62loNA9.js +0 -3
  96. package/example/dist/assets/index-DqyX3FG6.js +0 -1
  97. package/example/dist/assets/index-Gy3FXGhr.css +0 -1
  98. package/example/dist/assets/inherits_browser-BlmhoU4v.js +0 -1
  99. package/example/dist/assets/solanaEmbed.esm-Djn-u4Vn.js +0 -38
  100. package/example/dist/index.html +0 -14
package/dist/index.css CHANGED
@@ -140,6 +140,9 @@ body {
140
140
  /**matchid-transaction-list**/
141
141
  --matchid-wallet-transaction-bg: var(--matchid-white);
142
142
  --matchid-wallet-transaction-color: var(--matchid-black);
143
+ /**tab**/
144
+ --matchid-tab-color:var(--matchid-secondary-grey);
145
+ --matchid-tab-active-color: var(--matchid-highlight-orange);
143
146
 
144
147
 
145
148
  }
@@ -400,7 +403,7 @@ body {
400
403
  overflow: hidden;
401
404
  backdrop-filter: blur(2px);
402
405
  background: rgba(0, 0, 0, .3);
403
- color:var(--matchid-overlay-color);
406
+ color: var(--matchid-overlay-color);
404
407
  @media screen and (max-width: 768px) {
405
408
  align-items: center;
406
409
  }
@@ -1183,7 +1186,7 @@ body {
1183
1186
  flex-direction: column;
1184
1187
  gap: 48px;
1185
1188
  @media screen and (max-width: 768px) {
1186
- gap:36px;
1189
+ gap: 36px;
1187
1190
  }
1188
1191
 
1189
1192
  .matchid-change-network-list {
@@ -1218,7 +1221,7 @@ body {
1218
1221
  align-items: center;
1219
1222
  gap: 16px;
1220
1223
  @media screen and (max-width: 768px) {
1221
- gap:8px;
1224
+ gap: 8px;
1222
1225
  }
1223
1226
 
1224
1227
  .matchid-change-network-item-icon {
@@ -1288,6 +1291,7 @@ body {
1288
1291
  @media screen and (max-width: 768px) {
1289
1292
  gap: 24px;
1290
1293
  }
1294
+
1291
1295
  .matchid-receive-text {
1292
1296
  font-size: 14px;
1293
1297
  font-weight: 500;
@@ -1304,6 +1308,7 @@ body {
1304
1308
  @media screen and (max-width: 768px) {
1305
1309
  padding: 10px;
1306
1310
  }
1311
+
1307
1312
  .matchid-qr-code {
1308
1313
  width: 148px;
1309
1314
  height: 148px;
@@ -1352,7 +1357,7 @@ body {
1352
1357
 
1353
1358
  .matchid-wallet-asset-item {
1354
1359
 
1355
- background:var(--matchid-wallet-asset-bg);
1360
+ background: var(--matchid-wallet-asset-bg);
1356
1361
  color: var(--matchid-wallet-asset-color);
1357
1362
  display: flex;
1358
1363
  cursor: pointer;
@@ -1379,6 +1384,7 @@ body {
1379
1384
  width: 36px;
1380
1385
  height: 36px;
1381
1386
  }
1387
+
1382
1388
  .matchid-wallet-asset-icon {
1383
1389
  width: 40px;
1384
1390
  height: 40px;
@@ -1397,8 +1403,8 @@ body {
1397
1403
  right: 0px;
1398
1404
  bottom: 1px;
1399
1405
  @media screen and (max-width: 768px) {
1400
- wdth:10px;
1401
- height:10px;
1406
+ wdth: 10px;
1407
+ height: 10px;
1402
1408
  }
1403
1409
  }
1404
1410
  }
@@ -1414,6 +1420,7 @@ body {
1414
1420
  @media screen and (max-width: 768px) {
1415
1421
  height: 44px;
1416
1422
  }
1423
+
1417
1424
  .matchid-wallet-asset-name {
1418
1425
  font-size: 16px;
1419
1426
  font-weight: 500;
@@ -1495,7 +1502,7 @@ body {
1495
1502
 
1496
1503
  @media (max-width: 768px) {
1497
1504
  padding-bottom: 0px;
1498
- gap:36px;
1505
+ gap: 36px;
1499
1506
  }
1500
1507
 
1501
1508
  .matchid-token-main {
@@ -1549,7 +1556,7 @@ body {
1549
1556
  background: var(--matchid-gray-100);
1550
1557
  border-radius: 12px;
1551
1558
  @media (max-width: 768px) {
1552
- gap:8px;
1559
+ gap: 8px;
1553
1560
  }
1554
1561
 
1555
1562
  .matchid-token-contract-title {
@@ -1583,7 +1590,7 @@ body {
1583
1590
  gap: 40px;
1584
1591
  @media (max-width: 768px) {
1585
1592
  padding-bottom: 0px;
1586
- gap:68px;
1593
+ gap: 68px;
1587
1594
  }
1588
1595
 
1589
1596
  .matchid-token-send-content {
@@ -1743,7 +1750,7 @@ body {
1743
1750
 
1744
1751
  @media (max-width: 768px) {
1745
1752
  padding-bottom: 0px;
1746
- gap:36px;
1753
+ gap: 36px;
1747
1754
  }
1748
1755
 
1749
1756
  .matchid-token-send-list {
@@ -1840,7 +1847,7 @@ body {
1840
1847
  border: 1px solid var(--matchid-line);
1841
1848
  border-radius: 16px;
1842
1849
  height: 78px;
1843
- background:var(--matchid-wallet-transaction-bg);
1850
+ background: var(--matchid-wallet-transaction-bg);
1844
1851
  color: var(--matchid-wallet-transaction-color);
1845
1852
  @media screen and (max-width: 768px) {
1846
1853
  height: 64px;
@@ -1907,7 +1914,8 @@ body {
1907
1914
  gap: 8px;
1908
1915
  font-size: 16px;
1909
1916
  font-weight: 500;
1910
- span{
1917
+
1918
+ span {
1911
1919
  text-align: right;
1912
1920
  }
1913
1921
 
@@ -1966,7 +1974,7 @@ body {
1966
1974
  justify-content: space-between;
1967
1975
  @media screen and (max-width: 768px) {
1968
1976
  padding-bottom: 0;
1969
- gap:115px;
1977
+ gap: 115px;
1970
1978
  }
1971
1979
 
1972
1980
  .matchid-import-token-result-box {
@@ -1997,4 +2005,107 @@ body {
1997
2005
  }
1998
2006
  }
1999
2007
 
2008
+ }
2009
+
2010
+ .matchid-error {
2011
+ color: var(--matchid-red-600);
2012
+ }
2013
+
2014
+ .matchid-skeleton {
2015
+ background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
2016
+ background-size: 200% 100%;
2017
+ animation: matchid-loading 1.5s infinite;
2018
+ }
2019
+
2020
+ @keyframes matchid-loading {
2021
+ 0% {
2022
+ background-position: 200% 0;
2023
+ }
2024
+ 100% {
2025
+ background-position: -200% 0;
2026
+ }
2027
+ }
2028
+
2029
+ .matchid-contact-item{
2030
+ justify-content: space-between;
2031
+ align-items: center;
2032
+ padding:8px 16px;
2033
+ .matchid-contact-item-content{
2034
+ height:48px;
2035
+ display: flex;
2036
+ gap:16px;
2037
+ align-items: center;
2038
+ .matchid-contact-item-avatar{
2039
+ width:48px;
2040
+ height:48px;
2041
+ border-radius: 50%;
2042
+ }
2043
+ .matchid-contact-item-info{
2044
+ display: flex;
2045
+ flex-direction: column;
2046
+ justify-content: space-between;
2047
+ height:100%;
2048
+ .matchid-contact-item-name{
2049
+ font-size: 18px;
2050
+ font-weight: 500;
2051
+ color: var(--matchid-black);
2052
+ }
2053
+ .matchid-contact-item-address{
2054
+ font-size: 14px;
2055
+ color: var(--matchid-secondary-grey);
2056
+ }
2057
+ @media screen and (max-width: 768px) {
2058
+ .matchid-contact-item-name{
2059
+ font-size: 16px;
2060
+ }
2061
+ .matchid-contact-item-address{
2062
+ font-size: 12px;
2063
+ }
2064
+ }
2065
+ }
2066
+ }
2067
+
2068
+ }
2069
+
2070
+ .matchid-nomore{
2071
+ display: flex;
2072
+ justify-content: center;
2073
+ align-items: center;
2074
+ font-weight: 500;
2075
+ font-size: 16px;
2076
+ color: var(--matchid-secondary-grey);
2077
+ padding:20px 0;
2078
+ @media screen and (max-width: 768px) {
2079
+ font-size: 14px;
2080
+ }
2081
+ }
2082
+
2083
+ .matchid-tabs{
2084
+ gap:36px;
2085
+ align-items: start;
2086
+ display: flex;
2087
+ }
2088
+
2089
+ .matchid-tab{
2090
+ color:var(--matchid-tab-color);
2091
+ font-weight:500;
2092
+ font-size: 20px;
2093
+ cursor: pointer;
2094
+
2095
+ @media screen and (max-width: 768px) {
2096
+ font-size: 14px;
2097
+ padding:10px 0;
2098
+ }
2099
+ &.matchid-tab-active{
2100
+ color:var(--matchid-tab-active-color);
2101
+ border-bottom: 2px solid var(--matchid-tab-active-color);
2102
+ }
2103
+ }
2104
+
2105
+ .matchid-cursor-pointer{
2106
+ cursor: pointer;
2107
+ }
2108
+
2109
+ .matchid-remove-box{
2110
+ padding:0px 20px;
2000
2111
  }
package/dist/index.d.mts CHANGED
@@ -1,25 +1,26 @@
1
1
  import React, { ReactNode } from 'react';
2
- import { I as IMatchEvents, a as IEnvConfigType, L as LocaleType, W as WalletConfigType } from './types-Dd_ExpLx.mjs';
3
- export { i as Hooks, M as ModalProvider, T as ToastProvider } from './index-B-QfwtE5.mjs';
4
- export { i as Components } from './index-XzSw1Bym.mjs';
5
- export { i as UI } from './index-D5OzNRfu.mjs';
6
- export { i as Api } from './index-CDqIk5k2.mjs';
2
+ import { I as IMatchEvents, a as IEnvConfigType, L as LocaleType, W as WalletConfigType } from './types-VrV1kYga.mjs';
3
+ export { i as Hooks, M as ModalProvider, T as ToastProvider } from './index-DjbH13zc.mjs';
4
+ export { i as Components } from './index-D7S5DMUy.mjs';
5
+ export { i as UI } from './index-DC4F1u-w.mjs';
6
+ export { i as Api } from './index-BrzFSkOe.mjs';
7
7
  export { i as Chains } from './index-DXRGMAbv.mjs';
8
- export { i as Types } from './index-Bmir-Wor.mjs';
8
+ export { i as Types } from './index-SOVt-ADK.mjs';
9
+ export { i as Icon } from './index-BVfCh4l-.mjs';
9
10
  import '@tanstack/react-query/src/types';
11
+ import './request-B0CyrGFT.mjs';
10
12
  import 'viem';
11
13
  import 'viem/types/misc';
12
14
  import 'abitype';
13
15
  import 'react/jsx-runtime';
14
16
  import 'viem/_types/actions/siwe/verifySiweMessage';
15
17
  import '@tanstack/react-query';
16
- import './index-B_o9HBS1.mjs';
18
+ import './index-BaFmUVw-.mjs';
17
19
 
18
20
  type MatchContextType = {
19
21
  appid: string;
20
22
  events?: IMatchEvents;
21
23
  login: (data: {
22
- mid: string;
23
24
  token: string;
24
25
  }) => Promise<void>;
25
26
  theme: "light" | "dark";
package/dist/index.d.ts CHANGED
@@ -1,25 +1,26 @@
1
1
  import React, { ReactNode } from 'react';
2
- import { I as IMatchEvents, a as IEnvConfigType, L as LocaleType, W as WalletConfigType } from './types-Dd_ExpLx.js';
3
- export { i as Hooks, M as ModalProvider, T as ToastProvider } from './index-X_fw5wX_.js';
4
- export { i as Components } from './index-BDoEk1EK.js';
5
- export { i as UI } from './index-DMUZQqNB.js';
6
- export { i as Api } from './index-DvM6x6e6.js';
2
+ import { I as IMatchEvents, a as IEnvConfigType, L as LocaleType, W as WalletConfigType } from './types-VrV1kYga.js';
3
+ export { i as Hooks, M as ModalProvider, T as ToastProvider } from './index-zc2GEzJ9.js';
4
+ export { i as Components } from './index-DQFQ39D9.js';
5
+ export { i as UI } from './index-C0UKUm0h.js';
6
+ export { i as Api } from './index-BgdY5xdW.js';
7
7
  export { i as Chains } from './index-DXRGMAbv.js';
8
- export { i as Types } from './index-k2Uf0F94.js';
8
+ export { i as Types } from './index-D5WIVIkc.js';
9
+ export { i as Icon } from './index-D3Kp05kW.js';
9
10
  import '@tanstack/react-query/src/types';
11
+ import './request-B0CyrGFT.js';
10
12
  import 'viem';
11
13
  import 'viem/types/misc';
12
14
  import 'abitype';
13
15
  import 'react/jsx-runtime';
14
16
  import 'viem/_types/actions/siwe/verifySiweMessage';
15
17
  import '@tanstack/react-query';
16
- import './index-BUj9mOrS.js';
18
+ import './index-CQmN0dN4.js';
17
19
 
18
20
  type MatchContextType = {
19
21
  appid: string;
20
22
  events?: IMatchEvents;
21
23
  login: (data: {
22
- mid: string;
23
24
  token: string;
24
25
  }) => Promise<void>;
25
26
  theme: "light" | "dark";