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

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
@@ -1,119 +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, H as UserTransactionType, J as WalletAssetType, t as MetaPageType, l as BindItemType, k as BindInfoType, v as PohItemType, z as UserChainType, y as UserAssetToken, F as UserImportTokenType } from './types-BvsN5jj9.mjs';
4
-
5
- declare const isSuccess: (res: {
6
- code: number;
7
- message: string;
8
- data?: any;
9
- }) => boolean;
10
- interface MyResponseType<T> {
11
- code: number;
12
- data: T;
13
- message: string;
14
- success: boolean;
15
- fail: boolean;
16
- result: T;
17
- }
18
-
19
- declare const bindCexApi: (data: {
20
- cex: string;
21
- api_key: string;
22
- api_secret: string;
23
- api_passphrase?: string;
24
- }) => Promise<MyResponseType<any>>;
25
- declare const unBindApi: ({ type }: {
26
- type: string;
27
- }) => Promise<MyResponseType<any>>;
28
- declare const unBindWalletApi: ({ address }: {
29
- address: string;
30
- }) => Promise<MyResponseType<any>>;
31
- declare const verifyPohApi: ({ taskId, schemaId, publicFields, allocatorAddress, publicFieldsHash, allocatorSignature, uHash, validatorAddress, validatorSignature }: PohZkpassParams) => Promise<MyResponseType<any>>;
32
- declare const chooseIdentityApi: ({ identity }: {
33
- identity: string;
34
- }) => Promise<MyResponseType<any>>;
35
- declare const mintPassportNftApi: () => Promise<MyResponseType<any>>;
36
- declare const userImportTokenApi: (data: {
37
- chain_id: string;
38
- symbol: string;
39
- address: string;
40
- decimals: number;
41
- }) => Promise<MyResponseType<any>>;
42
- declare const getUserWalletTransactionsApi: (data: {
43
- chain_id: string;
44
- limit: number;
45
- offset: number;
46
- }) => Promise<MyResponseType<{
47
- transactions: UserTransactionType[];
48
- limit: number;
49
- offset: number;
50
- }>>;
51
- declare const getWalletAssetListApi: (data: {
52
- chain_id: string;
53
- address: string;
54
- }) => Promise<MyResponseType<WalletAssetType[]>>;
55
- declare const getWalletListApi: (data: {
56
- page: number;
57
- page_size: number;
58
- }) => Promise<MyResponseType<MetaPageType<{
59
- wallet_list: {
60
- address: string;
61
- chain_network: string;
62
- }[];
63
- }>>>;
64
-
65
- declare function useBindList(options?: Partial<Omit<UseQueryOptions<BindItemType[]>, 'queryKey' | 'queryFn'>>): _tanstack_react_query.UseQueryResult<BindItemType[], Error>;
66
- declare function useBindInfo(options?: Partial<Omit<UseQueryOptions<BindInfoType>, 'queryKey' | 'queryFn'>>): _tanstack_react_query.UseQueryResult<BindInfoType, Error>;
67
-
68
- declare const bind_bindCexApi: typeof bindCexApi;
69
- declare const bind_unBindApi: typeof unBindApi;
70
- declare const bind_unBindWalletApi: typeof unBindWalletApi;
71
- declare const bind_useBindInfo: typeof useBindInfo;
72
- declare const bind_useBindList: typeof useBindList;
73
- declare namespace bind {
74
- export { bind_bindCexApi as bindCexApi, bind_unBindApi as unBindApi, bind_unBindWalletApi as unBindWalletApi, bind_useBindInfo as useBindInfo, bind_useBindList as useBindList };
75
- }
76
-
77
- declare function usePohList(options?: Partial<Omit<UseQueryOptions<PohItemType[]>, 'queryKey' | 'queryFn'>>): _tanstack_react_query.UseQueryResult<PohItemType[], Error>;
78
-
79
- declare const poh_usePohList: typeof usePohList;
80
- declare const poh_verifyPohApi: typeof verifyPohApi;
81
- declare namespace poh {
82
- export { poh_usePohList as usePohList, poh_verifyPohApi as verifyPohApi };
83
- }
84
-
85
- declare const user_chooseIdentityApi: typeof chooseIdentityApi;
86
- declare const user_mintPassportNftApi: typeof mintPassportNftApi;
87
- declare namespace user {
88
- export { user_chooseIdentityApi as chooseIdentityApi, user_mintPassportNftApi as mintPassportNftApi };
89
- }
90
-
91
- declare function useChainListQuery(options?: Partial<Omit<UseQueryOptions<UserChainType[]>, 'queryKey' | 'queryFn'>>): _tanstack_react_query.UseQueryResult<UserChainType[], Error>;
92
- declare function useAssetListQuery({ chainId, ...options }: {
93
- chainId: number;
94
- } & Partial<Omit<UseQueryOptions<UserAssetToken[]>, 'queryKey' | 'queryFn'>>): _tanstack_react_query.UseQueryResult<UserAssetToken[], Error>;
95
- declare function useImportTokenListQuery({ chainId, ...options }: {
96
- chainId: number;
97
- } & Partial<Omit<UseQueryOptions<UserImportTokenType[]>, 'queryKey' | 'queryFn'>>): _tanstack_react_query.UseQueryResult<UserImportTokenType[], Error>;
98
-
99
- declare const wallet_getUserWalletTransactionsApi: typeof getUserWalletTransactionsApi;
100
- declare const wallet_getWalletAssetListApi: typeof getWalletAssetListApi;
101
- declare const wallet_getWalletListApi: typeof getWalletListApi;
102
- declare const wallet_useAssetListQuery: typeof useAssetListQuery;
103
- declare const wallet_useChainListQuery: typeof useChainListQuery;
104
- declare const wallet_useImportTokenListQuery: typeof useImportTokenListQuery;
105
- declare const wallet_userImportTokenApi: typeof userImportTokenApi;
106
- declare namespace wallet {
107
- export { wallet_getUserWalletTransactionsApi as getUserWalletTransactionsApi, wallet_getWalletAssetListApi as getWalletAssetListApi, wallet_getWalletListApi as getWalletListApi, wallet_useAssetListQuery as useAssetListQuery, wallet_useChainListQuery as useChainListQuery, wallet_useImportTokenListQuery as useImportTokenListQuery, wallet_userImportTokenApi as userImportTokenApi };
108
- }
109
-
110
- declare const index_bind: typeof bind;
111
- declare const index_isSuccess: typeof isSuccess;
112
- declare const index_poh: typeof poh;
113
- declare const index_user: typeof user;
114
- declare const index_wallet: typeof wallet;
115
- declare namespace index {
116
- export { index_bind as bind, index_isSuccess as isSuccess, index_poh as poh, index_user as user, index_wallet as wallet };
117
- }
118
-
119
- export { isSuccess as a, bind as b, index as i, poh as p, user as u, wallet as w };
@@ -1,26 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { ReactNode, PropsWithChildren } from 'react';
3
- import { r as InputProps, B as ButtonProps, u as ModalProps, M as ModalWithHeaderProps, x as PopoverProps } from './types-BvsN5jj9.mjs';
4
-
5
- declare function Field({ label, children, error, required, className }: {
6
- label: ReactNode;
7
- error?: ReactNode;
8
- required?: boolean;
9
- className?: string;
10
- } & PropsWithChildren): react_jsx_runtime.JSX.Element;
11
-
12
- declare function Input({ onChange, type, after, className, ...props }: InputProps): react_jsx_runtime.JSX.Element;
13
-
14
- declare function Button({ size, disabled, loading, children, onClick, highlight, block, type, rounded, className, style }: ButtonProps): react_jsx_runtime.JSX.Element;
15
-
16
- declare function Modal({ children, isOpen, width, zIndex, className }: ModalProps): react_jsx_runtime.JSX.Element;
17
- declare function ModalWithHeader({ children, onBack, onClose, title, showBorder, showClose, ...props }: ModalWithHeaderProps): react_jsx_runtime.JSX.Element;
18
-
19
- declare function Popover({ children, content, position, type, className, gap }: PopoverProps): false | "" | 0 | react_jsx_runtime.JSX.Element | null | undefined;
20
-
21
- declare function Overlay({ isOpen, children, zIndex, }: {
22
- isOpen?: boolean;
23
- zIndex?: number;
24
- } & PropsWithChildren): react_jsx_runtime.JSX.Element;
25
-
26
- export { Button as B, Field as F, Input as I, Modal as M, Overlay as O, Popover as P, ModalWithHeader as a };
@@ -1,6 +0,0 @@
1
- export { B as Button, F as Field, I as Input, M as Modal, a as ModalWithHeader, O as Overlay, P as Popover } from '../index-sdb-MpAt.mjs';
2
- export { A as AlphaAvatar, D as Drawer, e as HashPanel, M as ModalDrawer, R as Radio, S as Switch } from '../index-BEANfTWl.mjs';
3
- import 'react/jsx-runtime';
4
- import 'react';
5
- import '../types-BvsN5jj9.mjs';
6
- import 'viem';
@@ -1,6 +0,0 @@
1
- export { B as Button, F as Field, I as Input, M as Modal, a as ModalWithHeader, O as Overlay, P as Popover } from '../index-BhavUO9H.js';
2
- export { A as AlphaAvatar, D as Drawer, e as HashPanel, M as ModalDrawer, R as Radio, S as Switch } from '../index-DdqWjOlR.js';
3
- import 'react/jsx-runtime';
4
- import 'react';
5
- import '../types-BvsN5jj9.js';
6
- import 'viem';