@matchain/matchid-sdk-react 0.1.42-alpha.1 → 0.1.42-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.
- package/dist/assets/icon/index.d.mts +1 -1
- package/dist/assets/icon/index.d.ts +1 -1
- package/dist/chunk-HJ337PTX.mjs +4662 -0
- package/dist/chunk-HJ337PTX.mjs.map +1 -0
- package/dist/{chunk-U5KWO2YJ.mjs → chunk-PBNKRURB.mjs} +2 -2
- package/dist/chunk-SQIJR7RA.mjs +29 -0
- package/dist/chunk-SQIJR7RA.mjs.map +1 -0
- package/dist/components/index.d.mts +3 -2
- package/dist/components/index.d.ts +3 -2
- package/dist/components/index.js +676 -453
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +4 -1
- package/dist/hooks/api/index.d.mts +2 -2
- package/dist/hooks/api/index.d.ts +2 -2
- package/dist/hooks/api/index.js +120 -76
- package/dist/hooks/api/index.js.map +1 -1
- package/dist/hooks/api/index.mjs +3 -2
- package/dist/hooks/index.d.mts +5 -2
- package/dist/hooks/index.d.ts +5 -2
- package/dist/hooks/index.js +328 -145
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +2 -1
- package/dist/index-B2B4VJ-u.d.mts +139 -0
- package/dist/index-Bhnio7tx.d.ts +139 -0
- package/dist/index-BxS06a5O.d.ts +50 -0
- package/dist/{index-Dq9Swg8r.d.ts → index-Ca9nh_8s.d.ts} +1 -1
- package/dist/{index-COlsBC-b.d.mts → index-CmH9iRLd.d.mts} +25 -12
- package/dist/{index-C3KZYrtu.d.mts → index-DFZpfAfc.d.mts} +1 -1
- package/dist/{index-fS75Swm8.d.ts → index-DY_ReBra.d.ts} +25 -12
- package/dist/index-q5XDobUF.d.mts +50 -0
- package/dist/index.css +84 -4
- package/dist/index.d.mts +9 -4
- package/dist/index.d.ts +9 -4
- package/dist/index.js +1100 -614
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -2
- package/dist/mpc-CTbBWHld.d.mts +20 -0
- package/dist/mpc-CTbBWHld.d.ts +20 -0
- package/dist/types/index.d.mts +3 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/index.js +44 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/index.mjs +10 -0
- package/dist/types/index.mjs.map +1 -0
- package/dist/types-CVwZEgQ0.d.mts +244 -0
- package/dist/types-CVwZEgQ0.d.ts +244 -0
- package/example/package.json +1 -0
- package/example/src/App.tsx +56 -27
- package/example/src/abi/erc20.json +222 -0
- package/example/src/components/ButtonGroup/index.tsx +10 -0
- package/example/src/components/Login/index.tsx +2 -2
- package/example/src/components/RoutePrivate/index.tsx +4 -3
- package/example/src/config/chains/index.ts +2 -0
- package/example/src/config/chains/matchMain.ts +27 -0
- package/example/src/config/chains/matchTest.ts +33 -0
- package/example/src/config/index.ts +6 -2
- package/example/src/pages/User/components/BindListModal.tsx +10 -0
- package/example/src/pages/User/components/PohListModal.tsx +10 -0
- package/example/src/pages/User/components/QueryDisplay.tsx +25 -0
- package/example/src/pages/{User.tsx → User/index.tsx} +55 -84
- package/example/src/pages/Wallet.tsx +258 -43
- package/example/src/store/useLocalStore.ts +51 -0
- package/example/tsconfig.json +1 -0
- package/package.json +7 -2
- package/dist/chunk-SBOIXOAW.mjs +0 -4197
- package/dist/chunk-SBOIXOAW.mjs.map +0 -1
- package/dist/index-BrdP6eg5.d.ts +0 -93
- package/dist/index-D7bNSBwl.d.mts +0 -93
- package/dist/types.d-CLO_WLka.d.mts +0 -176
- package/dist/types.d-CLO_WLka.d.ts +0 -176
- /package/dist/{chunk-U5KWO2YJ.mjs.map → chunk-PBNKRURB.mjs.map} +0 -0
package/dist/index.css
CHANGED
|
@@ -587,6 +587,7 @@ body {
|
|
|
587
587
|
cursor: not-allowed;
|
|
588
588
|
background: var(--matchid-btn-disabled-bg);
|
|
589
589
|
color: var(--matchid-btn-disabled-color);
|
|
590
|
+
border-width: 0px;
|
|
590
591
|
}
|
|
591
592
|
|
|
592
593
|
.matchid-btn-loading {
|
|
@@ -811,6 +812,7 @@ body {
|
|
|
811
812
|
display: none;
|
|
812
813
|
position: absolute;
|
|
813
814
|
z-index: 100;
|
|
815
|
+
|
|
814
816
|
.matchid-popover-content {
|
|
815
817
|
background: var(--matchid-popover-bg);
|
|
816
818
|
box-shadow: var(--matchid-shadow-middle);
|
|
@@ -826,13 +828,13 @@ body {
|
|
|
826
828
|
}
|
|
827
829
|
|
|
828
830
|
&.matchid-popover-click-active {
|
|
829
|
-
.matchid-popover-area{
|
|
831
|
+
.matchid-popover-area {
|
|
830
832
|
display: block;
|
|
831
833
|
}
|
|
832
834
|
}
|
|
833
835
|
|
|
834
836
|
&.matchid-popover-hover:hover {
|
|
835
|
-
.matchid-popover-area{
|
|
837
|
+
.matchid-popover-area {
|
|
836
838
|
display: block;
|
|
837
839
|
}
|
|
838
840
|
}
|
|
@@ -945,9 +947,87 @@ body {
|
|
|
945
947
|
padding-right: 0;
|
|
946
948
|
}
|
|
947
949
|
|
|
948
|
-
.matchid-cex-modal{
|
|
950
|
+
.matchid-cex-modal {
|
|
949
951
|
font-size: 14px;
|
|
950
952
|
display: flex;
|
|
951
953
|
flex-direction: column;
|
|
952
|
-
gap:12px;
|
|
954
|
+
gap: 12px;
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
.matchid-drawer {
|
|
958
|
+
|
|
959
|
+
width: 416px;
|
|
960
|
+
height: 100vh;
|
|
961
|
+
padding: 24px 24px 0;
|
|
962
|
+
background: #FFFFFF;
|
|
963
|
+
display: flex;
|
|
964
|
+
gap: 48px;
|
|
965
|
+
position: absolute;
|
|
966
|
+
top: 0;
|
|
967
|
+
right: 0;
|
|
968
|
+
transition: all 0.3s;
|
|
969
|
+
flex-direction: column;
|
|
970
|
+
border-left: 1px solid #D3D3D3;
|
|
971
|
+
box-shadow: -20px 0px 20px 0px rgba(22, 17, 46, 0.12);
|
|
972
|
+
.matchid-drawer-header{
|
|
973
|
+
display: flex;
|
|
974
|
+
justify-content: flex-end;
|
|
975
|
+
.matchid-drawer-header-close{
|
|
976
|
+
cursor: pointer;
|
|
977
|
+
}
|
|
978
|
+
}
|
|
979
|
+
}
|
|
980
|
+
.matchid-hashpanel-header{
|
|
981
|
+
font-size: 16px;
|
|
982
|
+
font-weight: 500;
|
|
983
|
+
display: block;
|
|
984
|
+
@media screen and (min-width: 768px) {
|
|
985
|
+
display: none;
|
|
986
|
+
}
|
|
987
|
+
}
|
|
988
|
+
|
|
989
|
+
.matchid-hashpanel-box{
|
|
990
|
+
display: flex;
|
|
991
|
+
flex-direction: column;
|
|
992
|
+
gap:36px;
|
|
993
|
+
align-items: center;
|
|
994
|
+
@media screen and (min-width: 768px) {
|
|
995
|
+
justify-content: space-between;
|
|
996
|
+
flex: 1;
|
|
997
|
+
padding-bottom: 120px;
|
|
998
|
+
}
|
|
999
|
+
.matchid-hashpanel-content{
|
|
1000
|
+
display: flex;
|
|
1001
|
+
flex-direction: column;
|
|
1002
|
+
gap: 24px;
|
|
1003
|
+
align-items: center;
|
|
1004
|
+
width: 100%;
|
|
1005
|
+
@media screen and (min-width: 768px) {
|
|
1006
|
+
gap: 48px;
|
|
1007
|
+
}
|
|
1008
|
+
.matchid-hashpanel-status{
|
|
1009
|
+
font-size: 24px;
|
|
1010
|
+
font-weight: 500;
|
|
1011
|
+
display: none;
|
|
1012
|
+
@media screen and (min-width: 768px) {
|
|
1013
|
+
display: block;
|
|
1014
|
+
}
|
|
1015
|
+
}
|
|
1016
|
+
.matchid-hashpanel-img{
|
|
1017
|
+
width:96px;
|
|
1018
|
+
height: 96px;
|
|
1019
|
+
}
|
|
1020
|
+
.matchid-hashpanel-hash{
|
|
1021
|
+
width: 100%;
|
|
1022
|
+
font-size: 14px;
|
|
1023
|
+
word-break: break-all;
|
|
1024
|
+
@media screen and (min-width: 768px){
|
|
1025
|
+
font-size: 16px;
|
|
1026
|
+
}
|
|
1027
|
+
a{
|
|
1028
|
+
color: #006FFF;
|
|
1029
|
+
text-decoration: none;
|
|
1030
|
+
}
|
|
1031
|
+
}
|
|
1032
|
+
}
|
|
953
1033
|
}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
|
-
import { I as IMatchEvents, a as IEnvConfigType, L as LocaleType } from './types
|
|
3
|
-
export { i as Components } from './index-
|
|
4
|
-
export { i as Hooks } from './index-
|
|
5
|
-
export { i as Api } from './index-
|
|
2
|
+
import { I as IMatchEvents, a as IEnvConfigType, L as LocaleType, W as WalletConfigType } from './types-CVwZEgQ0.mjs';
|
|
3
|
+
export { i as Components } from './index-CmH9iRLd.mjs';
|
|
4
|
+
export { i as Hooks } from './index-B2B4VJ-u.mjs';
|
|
5
|
+
export { i as Api } from './index-DFZpfAfc.mjs';
|
|
6
6
|
export { i as Chains } from './index-DXRGMAbv.mjs';
|
|
7
|
+
export { i as Types } from './index-q5XDobUF.mjs';
|
|
7
8
|
import 'react/jsx-runtime';
|
|
9
|
+
import './mpc-CTbBWHld.mjs';
|
|
8
10
|
import 'viem';
|
|
11
|
+
import 'viem/types/misc';
|
|
12
|
+
import 'abitype';
|
|
9
13
|
import '@tanstack/react-query';
|
|
10
14
|
import '@tanstack/react-query/src/types';
|
|
11
15
|
|
|
@@ -26,6 +30,7 @@ declare const MatchProvider: React.FC<{
|
|
|
26
30
|
theme?: "light" | "dark";
|
|
27
31
|
endpoints?: IEnvConfigType['endpoints'];
|
|
28
32
|
locale?: LocaleType;
|
|
33
|
+
wallet: WalletConfigType;
|
|
29
34
|
}>;
|
|
30
35
|
declare const useMatch: () => MatchContextType;
|
|
31
36
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
|
-
import { I as IMatchEvents, a as IEnvConfigType, L as LocaleType } from './types
|
|
3
|
-
export { i as Components } from './index-
|
|
4
|
-
export { i as Hooks } from './index-
|
|
5
|
-
export { i as Api } from './index-
|
|
2
|
+
import { I as IMatchEvents, a as IEnvConfigType, L as LocaleType, W as WalletConfigType } from './types-CVwZEgQ0.js';
|
|
3
|
+
export { i as Components } from './index-DY_ReBra.js';
|
|
4
|
+
export { i as Hooks } from './index-Bhnio7tx.js';
|
|
5
|
+
export { i as Api } from './index-Ca9nh_8s.js';
|
|
6
6
|
export { i as Chains } from './index-DXRGMAbv.js';
|
|
7
|
+
export { i as Types } from './index-BxS06a5O.js';
|
|
7
8
|
import 'react/jsx-runtime';
|
|
9
|
+
import './mpc-CTbBWHld.js';
|
|
8
10
|
import 'viem';
|
|
11
|
+
import 'viem/types/misc';
|
|
12
|
+
import 'abitype';
|
|
9
13
|
import '@tanstack/react-query';
|
|
10
14
|
import '@tanstack/react-query/src/types';
|
|
11
15
|
|
|
@@ -26,6 +30,7 @@ declare const MatchProvider: React.FC<{
|
|
|
26
30
|
theme?: "light" | "dark";
|
|
27
31
|
endpoints?: IEnvConfigType['endpoints'];
|
|
28
32
|
locale?: LocaleType;
|
|
33
|
+
wallet: WalletConfigType;
|
|
29
34
|
}>;
|
|
30
35
|
declare const useMatch: () => MatchContextType;
|
|
31
36
|
|