@matchain/matchid-sdk-react 0.1.46-alpha.9 → 0.1.47

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 (85) hide show
  1. package/dist/assets/icon/index.d.mts +2 -4
  2. package/dist/assets/icon/index.d.ts +2 -4
  3. package/dist/assets/icon/index.js +0 -27
  4. package/dist/assets/icon/index.js.map +1 -1
  5. package/dist/assets/icon/index.mjs +1 -3
  6. package/dist/chunk-A3XSTHEE.mjs +93 -0
  7. package/dist/chunk-A3XSTHEE.mjs.map +1 -0
  8. package/dist/{chunk-A5D3NKTK.mjs → chunk-DPXMCLYK.mjs} +3 -29
  9. package/dist/chunk-DPXMCLYK.mjs.map +1 -0
  10. package/dist/{chunk-UA6XHZHX.mjs → chunk-SQIJR7RA.mjs} +14 -2
  11. package/dist/chunk-SQIJR7RA.mjs.map +1 -0
  12. package/dist/{chunk-OBHKOOCD.mjs → chunk-TOUC33US.mjs} +4618 -142
  13. package/dist/chunk-TOUC33US.mjs.map +1 -0
  14. package/dist/components/index.d.mts +3 -3
  15. package/dist/components/index.d.ts +3 -3
  16. package/dist/components/index.js +812 -387
  17. package/dist/components/index.js.map +1 -1
  18. package/dist/components/index.mjs +12 -12
  19. package/dist/hooks/api/index.d.mts +2 -2
  20. package/dist/hooks/api/index.d.ts +2 -2
  21. package/dist/hooks/api/index.js +239 -342
  22. package/dist/hooks/api/index.js.map +1 -1
  23. package/dist/hooks/api/index.mjs +6 -12
  24. package/dist/hooks/index.d.mts +2 -2
  25. package/dist/hooks/index.d.ts +2 -2
  26. package/dist/hooks/index.js +498 -398
  27. package/dist/hooks/index.js.map +1 -1
  28. package/dist/hooks/index.mjs +4 -6
  29. package/dist/{index-DYb6srm9.d.ts → index-B0VpxAI2.d.mts} +33 -5
  30. package/dist/{index-C9EBucNb.d.ts → index-CFWR1boZ.d.ts} +24 -2
  31. package/dist/{index-BQ4znGiW.d.ts → index-CTSg5TRS.d.ts} +2 -9
  32. package/dist/index-CWYElOA2.d.mts +65 -0
  33. package/dist/index-CoTirILQ.d.ts +65 -0
  34. package/dist/{index-DrzL-Ogw.d.mts → index-D2pNP7Bz.d.mts} +24 -2
  35. package/dist/{index-DuBywj_6.d.mts → index-DR2JTaoi.d.mts} +2 -9
  36. package/dist/{index-BD6sPfI_.d.mts → index-DVlCrOjr.d.ts} +33 -5
  37. package/dist/index.css +1 -106
  38. package/dist/index.d.mts +6 -8
  39. package/dist/index.d.ts +6 -8
  40. package/dist/index.js +2333 -2208
  41. package/dist/index.js.map +1 -1
  42. package/dist/index.mjs +6 -12
  43. package/dist/types/index.d.mts +1 -1
  44. package/dist/types/index.d.ts +1 -1
  45. package/dist/types/index.mjs +1 -2
  46. package/dist/{types-BvsN5jj9.d.mts → types-CRumDe2M.d.mts} +1 -109
  47. package/dist/{types-BvsN5jj9.d.ts → types-CRumDe2M.d.ts} +1 -109
  48. package/example/src/App.tsx +0 -7
  49. package/example/src/config/chains/matchMain.ts +3 -2
  50. package/example/src/pages/User/components/BindListModal.tsx +1 -1
  51. package/example/src/pages/User/components/PohListModal.tsx +1 -1
  52. package/example/src/pages/User/index.tsx +13 -1
  53. package/example/src/pages/{Wallet/index.tsx → Wallet.tsx} +1 -27
  54. package/package.json +1 -5
  55. package/dist/chunk-A5D3NKTK.mjs.map +0 -1
  56. package/dist/chunk-E4GTBGEE.mjs +0 -4241
  57. package/dist/chunk-E4GTBGEE.mjs.map +0 -1
  58. package/dist/chunk-FFTS42UP.mjs +0 -112
  59. package/dist/chunk-FFTS42UP.mjs.map +0 -1
  60. package/dist/chunk-HBOS3RBL.mjs +0 -19
  61. package/dist/chunk-HBOS3RBL.mjs.map +0 -1
  62. package/dist/chunk-OBHKOOCD.mjs.map +0 -1
  63. package/dist/chunk-UA6XHZHX.mjs.map +0 -1
  64. package/dist/chunk-XKPX224V.mjs +0 -168
  65. package/dist/chunk-XKPX224V.mjs.map +0 -1
  66. package/dist/index-BEANfTWl.d.mts +0 -57
  67. package/dist/index-BhavUO9H.d.ts +0 -26
  68. package/dist/index-CgwBZE9m.d.ts +0 -119
  69. package/dist/index-DdqWjOlR.d.ts +0 -57
  70. package/dist/index-IXJvjOKV.d.mts +0 -119
  71. package/dist/index-sdb-MpAt.d.mts +0 -26
  72. package/dist/ui/index.d.mts +0 -6
  73. package/dist/ui/index.d.ts +0 -6
  74. package/dist/ui/index.js +0 -724
  75. package/dist/ui/index.js.map +0 -1
  76. package/dist/ui/index.mjs +0 -35
  77. package/dist/ui/index.mjs.map +0 -1
  78. package/example/src/pages/UI/components/AlphaAvatar.tsx +0 -11
  79. package/example/src/pages/UI/components/Radio.tsx +0 -15
  80. package/example/src/pages/UI/components/Switch.tsx +0 -13
  81. package/example/src/pages/UI/index.tsx +0 -11
  82. package/example/src/pages/Wallet/components/AssetListModal.tsx +0 -15
  83. package/example/src/pages/Wallet/components/ChainListModal.tsx +0 -11
  84. package/example/src/pages/Wallet/components/ImportTokenListModal.tsx +0 -15
  85. /package/example/src/{components → pages/User/components}/QueryDisplay.tsx +0 -0
@@ -18,7 +18,6 @@ import {
18
18
  EVMLightIcon,
19
19
  EmailIcon,
20
20
  EmailLineIcon,
21
- ErrorRoundIcon,
22
21
  FacebookIcon,
23
22
  GithubIcon,
24
23
  GoogleIcon,
@@ -43,7 +42,7 @@ import {
43
42
  XIcon,
44
43
  XverseIcon,
45
44
  YoutubeIcon
46
- } from "../../chunk-A5D3NKTK.mjs";
45
+ } from "../../chunk-DPXMCLYK.mjs";
47
46
  import "../../chunk-J5LGTIGS.mjs";
48
47
  export {
49
48
  ArrowDownIcon,
@@ -65,7 +64,6 @@ export {
65
64
  EVMLightIcon,
66
65
  EmailIcon,
67
66
  EmailLineIcon,
68
- ErrorRoundIcon,
69
67
  FacebookIcon,
70
68
  GithubIcon,
71
69
  GoogleIcon,
@@ -0,0 +1,93 @@
1
+ import {
2
+ bindCexApi,
3
+ chooseIdentityApi,
4
+ getBindInfoApi,
5
+ getBindListApi,
6
+ getPohListApi,
7
+ mintPassportNftApi,
8
+ unBindApi,
9
+ unBindWalletApi,
10
+ useUserInfo,
11
+ verifyPohApi
12
+ } from "./chunk-TOUC33US.mjs";
13
+ import {
14
+ __export
15
+ } from "./chunk-J5LGTIGS.mjs";
16
+
17
+ // src/hooks/api/index.ts
18
+ var api_exports = {};
19
+ __export(api_exports, {
20
+ bind: () => bind_exports,
21
+ poh: () => poh_exports,
22
+ user: () => user_exports
23
+ });
24
+
25
+ // src/hooks/api/bind.ts
26
+ var bind_exports = {};
27
+ __export(bind_exports, {
28
+ bindCexApi: () => bindCexApi,
29
+ unBindApi: () => unBindApi,
30
+ unBindWalletApi: () => unBindWalletApi,
31
+ useBindInfo: () => useBindInfo,
32
+ useBindList: () => useBindList
33
+ });
34
+ import { useQuery } from "@tanstack/react-query";
35
+ function useBindList(options) {
36
+ const { isLogin } = useUserInfo();
37
+ return useQuery({
38
+ queryKey: ["bindList"],
39
+ enabled: isLogin,
40
+ queryFn: async () => {
41
+ let res = await getBindListApi();
42
+ return res.data;
43
+ },
44
+ ...options
45
+ });
46
+ }
47
+ function useBindInfo(options) {
48
+ const { isLogin } = useUserInfo();
49
+ return useQuery({
50
+ queryKey: ["bindInfo"],
51
+ enabled: isLogin,
52
+ queryFn: async () => {
53
+ let res = await getBindInfoApi();
54
+ return res.data;
55
+ },
56
+ ...options
57
+ });
58
+ }
59
+
60
+ // src/hooks/api/poh.ts
61
+ var poh_exports = {};
62
+ __export(poh_exports, {
63
+ usePohList: () => usePohList,
64
+ verifyPohApi: () => verifyPohApi
65
+ });
66
+ import { useQuery as useQuery2 } from "@tanstack/react-query";
67
+ function usePohList(options) {
68
+ const { isLogin } = useUserInfo();
69
+ return useQuery2({
70
+ queryKey: ["pohList"],
71
+ enabled: isLogin,
72
+ queryFn: async () => {
73
+ let res = await getPohListApi();
74
+ return res.data;
75
+ },
76
+ ...options
77
+ });
78
+ }
79
+
80
+ // src/hooks/api/user.ts
81
+ var user_exports = {};
82
+ __export(user_exports, {
83
+ chooseIdentityApi: () => chooseIdentityApi,
84
+ mintPassportNftApi: () => mintPassportNftApi
85
+ });
86
+
87
+ export {
88
+ bind_exports,
89
+ poh_exports,
90
+ user_exports,
91
+ api_exports
92
+ };
93
+ //# sourceMappingURL=chunk-A3XSTHEE.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/hooks/api/index.ts","../src/hooks/api/bind.ts","../src/hooks/api/poh.ts","../src/hooks/api/user.ts"],"sourcesContent":["export * as bind from \"./bind\";\nexport * as poh from \"./poh\";\nexport * as user from \"./user\";","import {useQuery} from \"@tanstack/react-query\";\nimport useUserInfo from \"../useUserInfo\";\nimport type {UseQueryOptions} from \"@tanstack/react-query/src/types\";\nimport {BindInfoType, BindItemType} from \"../../types/types\";\nimport {getBindInfoApi, getBindListApi} from \"../../api\";\n\nexport {bindCexApi, unBindApi, unBindWalletApi} from \"../../api\";\n\nexport function useBindList(options?: Partial<Omit<UseQueryOptions<BindItemType[]>, 'queryKey' | 'queryFn'>>) {\n const {isLogin} = useUserInfo()\n return useQuery<BindItemType[]>({\n queryKey: ['bindList'],\n enabled: isLogin,\n queryFn: async () => {\n let res = await getBindListApi()\n return res.data\n },\n ...options\n })\n}\n\nexport function useBindInfo(options?: Partial<Omit<UseQueryOptions<BindInfoType>, 'queryKey' | 'queryFn'>>) {\n const {isLogin} = useUserInfo()\n return useQuery<BindInfoType>({\n queryKey: ['bindInfo'],\n enabled: isLogin,\n queryFn: async () => {\n let res = await getBindInfoApi()\n return res.data\n },\n ...options\n })\n}\n","import {useQuery} from \"@tanstack/react-query\";\nimport useUserInfo from \"../useUserInfo\";\nimport type {UseQueryOptions} from \"@tanstack/react-query/src/types\";\nimport {PohItemType} from \"types/types\";\nimport {getPohListApi} from \"api\";\nexport {verifyPohApi} from \"api\";\n\nexport function usePohList(options?: Partial<Omit<UseQueryOptions<PohItemType[]>, 'queryKey' | 'queryFn'>>) {\n const {isLogin} = useUserInfo()\n return useQuery<PohItemType[]>({\n queryKey: ['pohList'],\n enabled: isLogin,\n queryFn: async () => {\n let res = await getPohListApi()\n return res.data\n },\n ...options\n })\n}","export {mintPassportNftApi,chooseIdentityApi} from \"api\""],"mappings":";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SAAQ,gBAAe;AAQhB,SAAS,YAAY,SAAkF;AAC1G,QAAM,EAAC,QAAO,IAAI,YAAY;AAC9B,SAAO,SAAyB;AAAA,IAC5B,UAAU,CAAC,UAAU;AAAA,IACrB,SAAS;AAAA,IACT,SAAS,YAAY;AACjB,UAAI,MAAM,MAAM,eAAe;AAC/B,aAAO,IAAI;AAAA,IACf;AAAA,IACA,GAAG;AAAA,EACP,CAAC;AACL;AAEO,SAAS,YAAY,SAAgF;AACxG,QAAM,EAAC,QAAO,IAAI,YAAY;AAC9B,SAAO,SAAuB;AAAA,IAC1B,UAAU,CAAC,UAAU;AAAA,IACrB,SAAS;AAAA,IACT,SAAS,YAAY;AACjB,UAAI,MAAM,MAAM,eAAe;AAC/B,aAAO,IAAI;AAAA,IACf;AAAA,IACA,GAAG;AAAA,EACP,CAAC;AACL;;;AChCA;AAAA;AAAA;AAAA;AAAA;AAAA,SAAQ,YAAAA,iBAAe;AAOhB,SAAS,WAAW,SAAiF;AACxG,QAAM,EAAC,QAAO,IAAI,YAAY;AAC9B,SAAOC,UAAwB;AAAA,IAC3B,UAAU,CAAC,SAAS;AAAA,IACpB,SAAS;AAAA,IACT,SAAS,YAAY;AACjB,UAAI,MAAM,MAAM,cAAc;AAC9B,aAAO,IAAI;AAAA,IACf;AAAA,IACA,GAAG;AAAA,EACP,CAAC;AACL;;;AClBA;AAAA;AAAA;AAAA;AAAA;","names":["useQuery","useQuery"]}
@@ -1073,32 +1073,8 @@ function TonLightIcon2({ size = 40, ...props }) {
1073
1073
  );
1074
1074
  }
1075
1075
 
1076
- // src/assets/icon/ErrorRoundIcon.tsx
1077
- import { jsx as jsx44, jsxs as jsxs28 } from "react/jsx-runtime";
1078
- function ErrorRoundIcon({
1079
- size,
1080
- color = "#F14141",
1081
- ...props
1082
- }) {
1083
- return /* @__PURE__ */ jsxs28("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
1084
- /* @__PURE__ */ jsx44(
1085
- "path",
1086
- {
1087
- d: "M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z",
1088
- fill: color
1089
- }
1090
- ),
1091
- /* @__PURE__ */ jsx44(
1092
- "path",
1093
- {
1094
- d: "M8.96967 8.96967C9.26256 8.67678 9.73744 8.67678 10.0303 8.96967L12 10.9394L13.9697 8.96969C14.2626 8.6768 14.7374 8.6768 15.0303 8.96969C15.3232 9.26258 15.3232 9.73746 15.0303 10.0304L13.0607 12L15.0303 13.9696C15.3232 14.2625 15.3232 14.7374 15.0303 15.0303C14.7374 15.3232 14.2625 15.3232 13.9696 15.0303L12 13.0607L10.0304 15.0303C9.73746 15.3232 9.26258 15.3232 8.96969 15.0303C8.6768 14.7374 8.6768 14.2626 8.96969 13.9697L10.9394 12L8.96967 10.0303C8.67678 9.73744 8.67678 9.26256 8.96967 8.96967Z",
1095
- fill: "white"
1096
- }
1097
- )
1098
- ] });
1099
- }
1100
-
1101
1076
  export {
1077
+ ArrowLeftIcon,
1102
1078
  BackIcon,
1103
1079
  CloseIcon,
1104
1080
  XIcon,
@@ -1118,7 +1094,6 @@ export {
1118
1094
  OpenEyeIcon,
1119
1095
  DeleteRoundIcon,
1120
1096
  FacebookIcon,
1121
- ArrowLeftIcon,
1122
1097
  GithubIcon,
1123
1098
  DiscordIcon,
1124
1099
  CheckIcon,
@@ -1141,7 +1116,6 @@ export {
1141
1116
  OKXIcon,
1142
1117
  BitgetIcon,
1143
1118
  TonLightIcon,
1144
- TonLightIcon2,
1145
- ErrorRoundIcon
1119
+ TonLightIcon2
1146
1120
  };
1147
- //# sourceMappingURL=chunk-A5D3NKTK.mjs.map
1121
+ //# sourceMappingURL=chunk-DPXMCLYK.mjs.map