@matchain/matchid-sdk-react 0.1.54 → 0.1.55-alpha.1

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 (55) hide show
  1. package/dist/assets/icon/index.d.mts +2 -2
  2. package/dist/assets/icon/index.d.ts +2 -2
  3. package/dist/chunk-LTPXS5PV.mjs +97 -0
  4. package/dist/chunk-LTPXS5PV.mjs.map +1 -0
  5. package/dist/{chunk-ZPBHHXEE.mjs → chunk-SKA35IYC.mjs} +6547 -6893
  6. package/dist/chunk-SKA35IYC.mjs.map +1 -0
  7. package/dist/components/index.d.mts +3 -3
  8. package/dist/components/index.d.ts +3 -3
  9. package/dist/components/index.js +35 -381
  10. package/dist/components/index.js.map +1 -1
  11. package/dist/components/index.mjs +2 -6
  12. package/dist/hooks/api/index.d.mts +2 -2
  13. package/dist/hooks/api/index.d.ts +2 -2
  14. package/dist/hooks/api/index.js +45 -215
  15. package/dist/hooks/api/index.js.map +1 -1
  16. package/dist/hooks/api/index.mjs +6 -6
  17. package/dist/hooks/index.d.mts +2 -2
  18. package/dist/hooks/index.d.ts +2 -2
  19. package/dist/hooks/index.js +220 -229
  20. package/dist/hooks/index.js.map +1 -1
  21. package/dist/hooks/index.mjs +2 -2
  22. package/dist/{index-91BdMYDA.d.ts → index-6-oVBXRP.d.mts} +2 -5
  23. package/dist/{index-D5geEbXf.d.ts → index-6kXyNEXB.d.ts} +3 -2
  24. package/dist/{index-DSvRdAyZ.d.mts → index-CB6ZNvzn.d.mts} +3 -2
  25. package/dist/{index-CkHDxE7B.d.mts → index-CBQXIlWu.d.mts} +1 -1
  26. package/dist/{index-ChHJD4NZ.d.mts → index-CMH6Jesl.d.ts} +2 -5
  27. package/dist/{index-Dj1K-UdZ.d.ts → index-CNH7a3bx.d.ts} +5 -18
  28. package/dist/{index-CZu_8fKl.d.ts → index-CPPDmmz8.d.ts} +1 -1
  29. package/dist/{index-DX1vzCrM.d.mts → index-CqKohtvj.d.mts} +1 -1
  30. package/dist/{index-CPk553v5.d.mts → index-D0Psl8Ue.d.mts} +1 -1
  31. package/dist/{index-DFBrN7dx.d.ts → index-DbQn4z1l.d.ts} +1 -1
  32. package/dist/{index-DjwwXNp4.d.mts → index-G15A08DI.d.mts} +3 -40
  33. package/dist/{index-Vxvd14yW.d.ts → index-Y5WRoqzn.d.ts} +3 -40
  34. package/dist/{index-CPwcm70o.d.mts → index-a_Qt7NXk.d.mts} +5 -18
  35. package/dist/{index-SRHVQn5G.d.ts → index-agAVLGF5.d.ts} +1 -1
  36. package/dist/index.css +1 -121
  37. package/dist/index.d.mts +8 -8
  38. package/dist/index.d.ts +8 -8
  39. package/dist/index.js +603 -878
  40. package/dist/index.js.map +1 -1
  41. package/dist/index.mjs +7 -5
  42. package/dist/types/index.d.mts +1 -1
  43. package/dist/types/index.d.ts +1 -1
  44. package/dist/{types-Bi9iq57H.d.mts → types-CXzZS0eM.d.mts} +1 -20
  45. package/dist/{types-Bi9iq57H.d.ts → types-CXzZS0eM.d.ts} +1 -20
  46. package/dist/ui/index.d.mts +3 -3
  47. package/dist/ui/index.d.ts +3 -3
  48. package/dist/ui/index.js +57 -72
  49. package/dist/ui/index.js.map +1 -1
  50. package/dist/ui/index.mjs +2 -2
  51. package/example/src/App.tsx +0 -8
  52. package/example/src/pages/Wallet/index.tsx +4 -1
  53. package/package.json +1 -1
  54. package/dist/chunk-ZPBHHXEE.mjs.map +0 -1
  55. package/example/src/pages/Contact/index.tsx +0 -90
@@ -1,5 +1,5 @@
1
- export { t as ArrowDownIcon, f as ArrowLeftIcon, A as ArrowRightIcon, Q as ArrowSendIcon, m as BTCDarkIcon, n as BTCLightIcon, B as BackIcon, z as BitgetIcon, j as CheckIcon, d as CheckRoundIcon, e as CloseEyeIcon, C as CloseIcon, a as CloseRoundIcon, k as CopyIcon, D as DeleteRoundIcon, h as DiscordIcon, o as EVMDarkIcon, p as EVMLightIcon, E as EmailIcon, b as EmailLineIcon, J as ErrorRoundIcon, F as FacebookIcon, g as GithubIcon, G as GoogleIcon, K as InfoLineIcon, M as InfoRoundIcon, u as LeatherIcon, l as LinkedinIcon, L as LoadingIcon, c as LoginIcon, V as MoreIcon, y as OKXIcon, O as OpenEyeIcon, P as PasswordRoundIcon, R as PhantomIcon, S as SOLDarkIcon, q as SOLLightIcon, r as TRXDarkIcon, s as TRXLightIcon, T as TelegramIcon, H as TonDarkIcon, I as TonLightIcon, N as TransferIcon, x as TronLinkIcon, U as UnLoginIcon, v as UnisatIcon, W as WalletIcon, X as XIcon, w as XverseIcon, Y as YoutubeIcon } from '../../index-CPk553v5.mjs';
1
+ export { t as ArrowDownIcon, f as ArrowLeftIcon, A as ArrowRightIcon, Q as ArrowSendIcon, m as BTCDarkIcon, n as BTCLightIcon, B as BackIcon, z as BitgetIcon, j as CheckIcon, d as CheckRoundIcon, e as CloseEyeIcon, C as CloseIcon, a as CloseRoundIcon, k as CopyIcon, D as DeleteRoundIcon, h as DiscordIcon, o as EVMDarkIcon, p as EVMLightIcon, E as EmailIcon, b as EmailLineIcon, J as ErrorRoundIcon, F as FacebookIcon, g as GithubIcon, G as GoogleIcon, K as InfoLineIcon, M as InfoRoundIcon, u as LeatherIcon, l as LinkedinIcon, L as LoadingIcon, c as LoginIcon, V as MoreIcon, y as OKXIcon, O as OpenEyeIcon, P as PasswordRoundIcon, R as PhantomIcon, S as SOLDarkIcon, q as SOLLightIcon, r as TRXDarkIcon, s as TRXLightIcon, T as TelegramIcon, H as TonDarkIcon, I as TonLightIcon, N as TransferIcon, x as TronLinkIcon, U as UnLoginIcon, v as UnisatIcon, W as WalletIcon, X as XIcon, w as XverseIcon, Y as YoutubeIcon } from '../../index-D0Psl8Ue.mjs';
2
2
  import 'react/jsx-runtime';
3
3
  import 'react';
4
- import '../../types-Bi9iq57H.mjs';
4
+ import '../../types-CXzZS0eM.mjs';
5
5
  import '@tanstack/react-query/src/types';
@@ -1,5 +1,5 @@
1
- export { t as ArrowDownIcon, f as ArrowLeftIcon, A as ArrowRightIcon, Q as ArrowSendIcon, m as BTCDarkIcon, n as BTCLightIcon, B as BackIcon, z as BitgetIcon, j as CheckIcon, d as CheckRoundIcon, e as CloseEyeIcon, C as CloseIcon, a as CloseRoundIcon, k as CopyIcon, D as DeleteRoundIcon, h as DiscordIcon, o as EVMDarkIcon, p as EVMLightIcon, E as EmailIcon, b as EmailLineIcon, J as ErrorRoundIcon, F as FacebookIcon, g as GithubIcon, G as GoogleIcon, K as InfoLineIcon, M as InfoRoundIcon, u as LeatherIcon, l as LinkedinIcon, L as LoadingIcon, c as LoginIcon, V as MoreIcon, y as OKXIcon, O as OpenEyeIcon, P as PasswordRoundIcon, R as PhantomIcon, S as SOLDarkIcon, q as SOLLightIcon, r as TRXDarkIcon, s as TRXLightIcon, T as TelegramIcon, H as TonDarkIcon, I as TonLightIcon, N as TransferIcon, x as TronLinkIcon, U as UnLoginIcon, v as UnisatIcon, W as WalletIcon, X as XIcon, w as XverseIcon, Y as YoutubeIcon } from '../../index-DFBrN7dx.js';
1
+ export { t as ArrowDownIcon, f as ArrowLeftIcon, A as ArrowRightIcon, Q as ArrowSendIcon, m as BTCDarkIcon, n as BTCLightIcon, B as BackIcon, z as BitgetIcon, j as CheckIcon, d as CheckRoundIcon, e as CloseEyeIcon, C as CloseIcon, a as CloseRoundIcon, k as CopyIcon, D as DeleteRoundIcon, h as DiscordIcon, o as EVMDarkIcon, p as EVMLightIcon, E as EmailIcon, b as EmailLineIcon, J as ErrorRoundIcon, F as FacebookIcon, g as GithubIcon, G as GoogleIcon, K as InfoLineIcon, M as InfoRoundIcon, u as LeatherIcon, l as LinkedinIcon, L as LoadingIcon, c as LoginIcon, V as MoreIcon, y as OKXIcon, O as OpenEyeIcon, P as PasswordRoundIcon, R as PhantomIcon, S as SOLDarkIcon, q as SOLLightIcon, r as TRXDarkIcon, s as TRXLightIcon, T as TelegramIcon, H as TonDarkIcon, I as TonLightIcon, N as TransferIcon, x as TronLinkIcon, U as UnLoginIcon, v as UnisatIcon, W as WalletIcon, X as XIcon, w as XverseIcon, Y as YoutubeIcon } from '../../index-DbQn4z1l.js';
2
2
  import 'react/jsx-runtime';
3
3
  import 'react';
4
- import '../../types-Bi9iq57H.js';
4
+ import '../../types-CXzZS0eM.js';
5
5
  import '@tanstack/react-query/src/types';
@@ -0,0 +1,97 @@
1
+ import {
2
+ bindCexApi,
3
+ chooseIdentityApi,
4
+ getBindInfoApi,
5
+ getBindListApi,
6
+ getPohListApi,
7
+ isSuccess,
8
+ mintPassportNftApi,
9
+ unBindApi,
10
+ unBindWalletApi,
11
+ useUserInfo,
12
+ verifyPohApi,
13
+ wallet_exports
14
+ } from "./chunk-SKA35IYC.mjs";
15
+ import {
16
+ __export
17
+ } from "./chunk-J5LGTIGS.mjs";
18
+
19
+ // src/hooks/api/index.ts
20
+ var api_exports = {};
21
+ __export(api_exports, {
22
+ bind: () => bind_exports,
23
+ isSuccess: () => isSuccess,
24
+ poh: () => poh_exports,
25
+ user: () => user_exports,
26
+ wallet: () => wallet_exports
27
+ });
28
+
29
+ // src/hooks/api/bind.ts
30
+ var bind_exports = {};
31
+ __export(bind_exports, {
32
+ bindCexApi: () => bindCexApi,
33
+ unBindApi: () => unBindApi,
34
+ unBindWalletApi: () => unBindWalletApi,
35
+ useBindInfo: () => useBindInfo,
36
+ useBindList: () => useBindList
37
+ });
38
+ import { useQuery } from "@tanstack/react-query";
39
+ function useBindList(options) {
40
+ const { isLogin } = useUserInfo();
41
+ return useQuery({
42
+ queryKey: ["bindList"],
43
+ enabled: isLogin,
44
+ queryFn: async () => {
45
+ let res = await getBindListApi();
46
+ return res.data;
47
+ },
48
+ ...options
49
+ });
50
+ }
51
+ function useBindInfo(options) {
52
+ const { isLogin } = useUserInfo();
53
+ return useQuery({
54
+ queryKey: ["bindInfo"],
55
+ enabled: isLogin,
56
+ queryFn: async () => {
57
+ let res = await getBindInfoApi();
58
+ return res.data;
59
+ },
60
+ ...options
61
+ });
62
+ }
63
+
64
+ // src/hooks/api/poh.ts
65
+ var poh_exports = {};
66
+ __export(poh_exports, {
67
+ usePohList: () => usePohList,
68
+ verifyPohApi: () => verifyPohApi
69
+ });
70
+ import { useQuery as useQuery2 } from "@tanstack/react-query";
71
+ function usePohList(options) {
72
+ const { isLogin } = useUserInfo();
73
+ return useQuery2({
74
+ queryKey: ["pohList"],
75
+ enabled: isLogin,
76
+ queryFn: async () => {
77
+ let res = await getPohListApi();
78
+ return res.data;
79
+ },
80
+ ...options
81
+ });
82
+ }
83
+
84
+ // src/hooks/api/user.ts
85
+ var user_exports = {};
86
+ __export(user_exports, {
87
+ chooseIdentityApi: () => chooseIdentityApi,
88
+ mintPassportNftApi: () => mintPassportNftApi
89
+ });
90
+
91
+ export {
92
+ bind_exports,
93
+ poh_exports,
94
+ user_exports,
95
+ api_exports
96
+ };
97
+ //# sourceMappingURL=chunk-LTPXS5PV.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\";\nexport * as wallet from \"./wallet\";\nexport {isSuccess} from \"../../api/request\"","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;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"]}