@matchain/matchid-sdk-react 0.1.47 → 0.1.48-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 (84) hide show
  1. package/dist/assets/icon/index.d.mts +4 -2
  2. package/dist/assets/icon/index.d.ts +4 -2
  3. package/dist/assets/icon/index.js +27 -0
  4. package/dist/assets/icon/index.js.map +1 -1
  5. package/dist/assets/icon/index.mjs +3 -1
  6. package/dist/chunk-A477SJHT.mjs +4549 -0
  7. package/dist/chunk-A477SJHT.mjs.map +1 -0
  8. package/dist/{chunk-DPXMCLYK.mjs → chunk-A5D3NKTK.mjs} +29 -3
  9. package/dist/chunk-A5D3NKTK.mjs.map +1 -0
  10. package/dist/{chunk-A3XSTHEE.mjs → chunk-AFZSANRV.mjs} +8 -4
  11. package/dist/chunk-AFZSANRV.mjs.map +1 -0
  12. package/dist/chunk-HBOS3RBL.mjs +19 -0
  13. package/dist/chunk-HBOS3RBL.mjs.map +1 -0
  14. package/dist/{chunk-TOUC33US.mjs → chunk-LNSJ3ZXG.mjs} +294 -4680
  15. package/dist/chunk-LNSJ3ZXG.mjs.map +1 -0
  16. package/dist/{chunk-SQIJR7RA.mjs → chunk-UA6XHZHX.mjs} +2 -14
  17. package/dist/chunk-UA6XHZHX.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 +450 -841
  21. package/dist/components/index.js.map +1 -1
  22. package/dist/components/index.mjs +12 -12
  23. package/dist/hooks/api/index.d.mts +2 -2
  24. package/dist/hooks/api/index.d.ts +2 -2
  25. package/dist/hooks/api/index.js +410 -256
  26. package/dist/hooks/api/index.js.map +1 -1
  27. package/dist/hooks/api/index.mjs +11 -5
  28. package/dist/hooks/index.d.mts +2 -2
  29. package/dist/hooks/index.d.ts +2 -2
  30. package/dist/hooks/index.js +659 -495
  31. package/dist/hooks/index.js.map +1 -1
  32. package/dist/hooks/index.mjs +14 -4
  33. package/dist/index-BIgM4fy0.d.mts +122 -0
  34. package/dist/{index-DR2JTaoi.d.mts → index-BVatQlwF.d.mts} +10 -2
  35. package/dist/index-Bb7IkjUW.d.mts +26 -0
  36. package/dist/index-BwD1ij0H.d.ts +122 -0
  37. package/dist/index-C2-M-aBb.d.ts +57 -0
  38. package/dist/{index-DVlCrOjr.d.ts → index-CGs_yTFg.d.ts} +5 -33
  39. package/dist/index-CKiK4KHj.d.ts +26 -0
  40. package/dist/{index-D2pNP7Bz.d.mts → index-DO5x10pN.d.mts} +46 -26
  41. package/dist/index-DamklTOJ.d.mts +57 -0
  42. package/dist/{index-B0VpxAI2.d.mts → index-M7ZB3yR5.d.mts} +5 -33
  43. package/dist/{index-CFWR1boZ.d.ts → index-Pssz41An.d.ts} +46 -26
  44. package/dist/{index-CTSg5TRS.d.ts → index-RfA22r-Z.d.ts} +10 -2
  45. package/dist/index.css +241 -3
  46. package/dist/index.d.mts +8 -6
  47. package/dist/index.d.ts +8 -6
  48. package/dist/index.js +2808 -2672
  49. package/dist/index.js.map +1 -1
  50. package/dist/index.mjs +10 -5
  51. package/dist/types/index.d.mts +1 -1
  52. package/dist/types/index.d.ts +1 -1
  53. package/dist/types/index.mjs +2 -1
  54. package/dist/{types-CRumDe2M.d.mts → types-DQq17lf4.d.mts} +116 -1
  55. package/dist/{types-CRumDe2M.d.ts → types-DQq17lf4.d.ts} +116 -1
  56. package/dist/ui/index.d.mts +6 -0
  57. package/dist/ui/index.d.ts +6 -0
  58. package/dist/ui/index.js +724 -0
  59. package/dist/ui/index.js.map +1 -0
  60. package/dist/ui/index.mjs +33 -0
  61. package/dist/ui/index.mjs.map +1 -0
  62. package/example/src/App.tsx +7 -0
  63. package/example/src/config/chains/matchMain.ts +2 -3
  64. package/example/src/pages/UI/components/AlphaAvatar.tsx +11 -0
  65. package/example/src/pages/UI/components/Radio.tsx +15 -0
  66. package/example/src/pages/UI/components/Switch.tsx +13 -0
  67. package/example/src/pages/UI/index.tsx +11 -0
  68. package/example/src/pages/User/components/BindListModal.tsx +1 -1
  69. package/example/src/pages/User/components/PohListModal.tsx +1 -1
  70. package/example/src/pages/User/index.tsx +1 -13
  71. package/example/src/pages/Wallet/components/AssetListModal.tsx +15 -0
  72. package/example/src/pages/Wallet/components/ChainListModal.tsx +11 -0
  73. package/example/src/pages/Wallet/components/ImportTokenListModal.tsx +15 -0
  74. package/example/src/pages/Wallet/components/MatchWallet.tsx +20 -0
  75. package/example/src/pages/Wallet/components/WalletChainListModal.tsx +11 -0
  76. package/example/src/pages/{Wallet.tsx → Wallet/index.tsx} +33 -2
  77. package/package.json +6 -1
  78. package/dist/chunk-A3XSTHEE.mjs.map +0 -1
  79. package/dist/chunk-DPXMCLYK.mjs.map +0 -1
  80. package/dist/chunk-SQIJR7RA.mjs.map +0 -1
  81. package/dist/chunk-TOUC33US.mjs.map +0 -1
  82. package/dist/index-CWYElOA2.d.mts +0 -65
  83. package/dist/index-CoTirILQ.d.ts +0 -65
  84. /package/example/src/{pages/User/components → components}/QueryDisplay.tsx +0 -0
@@ -1,65 +0,0 @@
1
- import * as _tanstack_react_query from '@tanstack/react-query';
2
- import { UseQueryOptions } from '@tanstack/react-query/src/types';
3
- import { w as PohZkpassParams, o as BindItemType, n as BindInfoType, v as PohItemType } from './types-CRumDe2M.mjs';
4
-
5
- interface MyResponseType<T> {
6
- code: number;
7
- data: T;
8
- message: string;
9
- success: boolean;
10
- fail: boolean;
11
- result: T;
12
- }
13
-
14
- declare const bindCexApi: (data: {
15
- cex: string;
16
- api_key: string;
17
- api_secret: string;
18
- api_passphrase?: string;
19
- }) => Promise<MyResponseType<any>>;
20
- declare const unBindApi: ({ type }: {
21
- type: string;
22
- }) => Promise<MyResponseType<any>>;
23
- declare const unBindWalletApi: ({ address }: {
24
- address: string;
25
- }) => Promise<MyResponseType<any>>;
26
- declare const verifyPohApi: ({ taskId, schemaId, publicFields, allocatorAddress, publicFieldsHash, allocatorSignature, uHash, validatorAddress, validatorSignature }: PohZkpassParams) => Promise<MyResponseType<any>>;
27
- declare const chooseIdentityApi: ({ identity }: {
28
- identity: string;
29
- }) => Promise<MyResponseType<any>>;
30
- declare const mintPassportNftApi: () => Promise<MyResponseType<any>>;
31
-
32
- declare function useBindList(options?: Partial<Omit<UseQueryOptions<BindItemType[]>, 'queryKey' | 'queryFn'>>): _tanstack_react_query.UseQueryResult<BindItemType[], Error>;
33
- declare function useBindInfo(options?: Partial<Omit<UseQueryOptions<BindInfoType>, 'queryKey' | 'queryFn'>>): _tanstack_react_query.UseQueryResult<BindInfoType, Error>;
34
-
35
- declare const bind_bindCexApi: typeof bindCexApi;
36
- declare const bind_unBindApi: typeof unBindApi;
37
- declare const bind_unBindWalletApi: typeof unBindWalletApi;
38
- declare const bind_useBindInfo: typeof useBindInfo;
39
- declare const bind_useBindList: typeof useBindList;
40
- declare namespace bind {
41
- export { bind_bindCexApi as bindCexApi, bind_unBindApi as unBindApi, bind_unBindWalletApi as unBindWalletApi, bind_useBindInfo as useBindInfo, bind_useBindList as useBindList };
42
- }
43
-
44
- declare function usePohList(options?: Partial<Omit<UseQueryOptions<PohItemType[]>, 'queryKey' | 'queryFn'>>): _tanstack_react_query.UseQueryResult<PohItemType[], Error>;
45
-
46
- declare const poh_usePohList: typeof usePohList;
47
- declare const poh_verifyPohApi: typeof verifyPohApi;
48
- declare namespace poh {
49
- export { poh_usePohList as usePohList, poh_verifyPohApi as verifyPohApi };
50
- }
51
-
52
- declare const user_chooseIdentityApi: typeof chooseIdentityApi;
53
- declare const user_mintPassportNftApi: typeof mintPassportNftApi;
54
- declare namespace user {
55
- export { user_chooseIdentityApi as chooseIdentityApi, user_mintPassportNftApi as mintPassportNftApi };
56
- }
57
-
58
- declare const index_bind: typeof bind;
59
- declare const index_poh: typeof poh;
60
- declare const index_user: typeof user;
61
- declare namespace index {
62
- export { index_bind as bind, index_poh as poh, index_user as user };
63
- }
64
-
65
- export { bind as b, index as i, poh as p, user as u };
@@ -1,65 +0,0 @@
1
- import * as _tanstack_react_query from '@tanstack/react-query';
2
- import { UseQueryOptions } from '@tanstack/react-query/src/types';
3
- import { w as PohZkpassParams, o as BindItemType, n as BindInfoType, v as PohItemType } from './types-CRumDe2M.js';
4
-
5
- interface MyResponseType<T> {
6
- code: number;
7
- data: T;
8
- message: string;
9
- success: boolean;
10
- fail: boolean;
11
- result: T;
12
- }
13
-
14
- declare const bindCexApi: (data: {
15
- cex: string;
16
- api_key: string;
17
- api_secret: string;
18
- api_passphrase?: string;
19
- }) => Promise<MyResponseType<any>>;
20
- declare const unBindApi: ({ type }: {
21
- type: string;
22
- }) => Promise<MyResponseType<any>>;
23
- declare const unBindWalletApi: ({ address }: {
24
- address: string;
25
- }) => Promise<MyResponseType<any>>;
26
- declare const verifyPohApi: ({ taskId, schemaId, publicFields, allocatorAddress, publicFieldsHash, allocatorSignature, uHash, validatorAddress, validatorSignature }: PohZkpassParams) => Promise<MyResponseType<any>>;
27
- declare const chooseIdentityApi: ({ identity }: {
28
- identity: string;
29
- }) => Promise<MyResponseType<any>>;
30
- declare const mintPassportNftApi: () => Promise<MyResponseType<any>>;
31
-
32
- declare function useBindList(options?: Partial<Omit<UseQueryOptions<BindItemType[]>, 'queryKey' | 'queryFn'>>): _tanstack_react_query.UseQueryResult<BindItemType[], Error>;
33
- declare function useBindInfo(options?: Partial<Omit<UseQueryOptions<BindInfoType>, 'queryKey' | 'queryFn'>>): _tanstack_react_query.UseQueryResult<BindInfoType, Error>;
34
-
35
- declare const bind_bindCexApi: typeof bindCexApi;
36
- declare const bind_unBindApi: typeof unBindApi;
37
- declare const bind_unBindWalletApi: typeof unBindWalletApi;
38
- declare const bind_useBindInfo: typeof useBindInfo;
39
- declare const bind_useBindList: typeof useBindList;
40
- declare namespace bind {
41
- export { bind_bindCexApi as bindCexApi, bind_unBindApi as unBindApi, bind_unBindWalletApi as unBindWalletApi, bind_useBindInfo as useBindInfo, bind_useBindList as useBindList };
42
- }
43
-
44
- declare function usePohList(options?: Partial<Omit<UseQueryOptions<PohItemType[]>, 'queryKey' | 'queryFn'>>): _tanstack_react_query.UseQueryResult<PohItemType[], Error>;
45
-
46
- declare const poh_usePohList: typeof usePohList;
47
- declare const poh_verifyPohApi: typeof verifyPohApi;
48
- declare namespace poh {
49
- export { poh_usePohList as usePohList, poh_verifyPohApi as verifyPohApi };
50
- }
51
-
52
- declare const user_chooseIdentityApi: typeof chooseIdentityApi;
53
- declare const user_mintPassportNftApi: typeof mintPassportNftApi;
54
- declare namespace user {
55
- export { user_chooseIdentityApi as chooseIdentityApi, user_mintPassportNftApi as mintPassportNftApi };
56
- }
57
-
58
- declare const index_bind: typeof bind;
59
- declare const index_poh: typeof poh;
60
- declare const index_user: typeof user;
61
- declare namespace index {
62
- export { index_bind as bind, index_poh as poh, index_user as user };
63
- }
64
-
65
- export { bind as b, index as i, poh as p, user as u };