@matchain/matchid-sdk-react 0.1.48-alpha.6 → 0.1.48-alpha.8

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 (61) hide show
  1. package/dist/assets/icon/index.d.mts +5 -3
  2. package/dist/assets/icon/index.d.ts +5 -3
  3. package/dist/assets/icon/index.js +18 -2
  4. package/dist/assets/icon/index.js.map +1 -1
  5. package/dist/assets/icon/index.mjs +3 -1
  6. package/dist/{chunk-YFJI4I5M.mjs → chunk-7UTR37EJ.mjs} +18 -3
  7. package/dist/chunk-7UTR37EJ.mjs.map +1 -0
  8. package/dist/{chunk-BPAPYY5P.mjs → chunk-EY6NPX4M.mjs} +477 -128
  9. package/dist/chunk-EY6NPX4M.mjs.map +1 -0
  10. package/dist/{chunk-55KYW35I.mjs → chunk-J5U7AXYA.mjs} +2 -2
  11. package/dist/{chunk-UHBVYFSP.mjs → chunk-USKUYOYJ.mjs} +2 -2
  12. package/dist/components/index.d.mts +3 -3
  13. package/dist/components/index.d.ts +3 -3
  14. package/dist/components/index.js +314 -304
  15. package/dist/components/index.js.map +1 -1
  16. package/dist/components/index.mjs +3 -3
  17. package/dist/hooks/api/index.d.mts +2 -2
  18. package/dist/hooks/api/index.d.ts +2 -2
  19. package/dist/hooks/api/index.js +94 -54
  20. package/dist/hooks/api/index.js.map +1 -1
  21. package/dist/hooks/api/index.mjs +4 -4
  22. package/dist/hooks/index.d.mts +3 -2
  23. package/dist/hooks/index.d.ts +3 -2
  24. package/dist/hooks/index.js +498 -87
  25. package/dist/hooks/index.js.map +1 -1
  26. package/dist/hooks/index.mjs +5 -3
  27. package/dist/{index-DCeOyAw8.d.ts → index-Bbn2Stvu.d.ts} +2 -2
  28. package/dist/index-Bz53bbI_.d.ts +3268 -0
  29. package/dist/{index-B8DYrhSW.d.mts → index-C-YCr0xJ.d.mts} +12 -4
  30. package/dist/{index-DbG5IjhP.d.mts → index-CB4j_ONH.d.mts} +1 -1
  31. package/dist/{index-B-s1k4Da.d.mts → index-CKyWWkzU.d.mts} +3 -2
  32. package/dist/{index-BZrddrq-.d.mts → index-C_S7k6z2.d.mts} +2 -2
  33. package/dist/{index-BHvCA7F9.d.ts → index-D-uNr-JV.d.ts} +2 -2
  34. package/dist/index-DDV4F9ka.d.mts +3268 -0
  35. package/dist/{index-DG_gyw1q.d.ts → index-DV_mRu4y.d.ts} +3 -2
  36. package/dist/{index-Bzcc-y8m.d.ts → index-DcxdJ0m2.d.ts} +1 -1
  37. package/dist/{index-BvLpvebq.d.mts → index-Dzvj-uGt.d.mts} +2 -2
  38. package/dist/{index-Cwx2p8th.d.ts → index-zRpvDpIK.d.ts} +12 -4
  39. package/dist/index.css +11 -0
  40. package/dist/index.d.mts +8 -7
  41. package/dist/index.d.ts +8 -7
  42. package/dist/index.js +704 -353
  43. package/dist/index.js.map +1 -1
  44. package/dist/index.mjs +4 -4
  45. package/dist/types/index.d.mts +1 -1
  46. package/dist/types/index.d.ts +1 -1
  47. package/dist/{types-CHkU0WHZ.d.mts → types-B4BYNw8B.d.mts} +13 -2
  48. package/dist/{types-CHkU0WHZ.d.ts → types-B4BYNw8B.d.ts} +13 -2
  49. package/dist/ui/index.d.mts +3 -3
  50. package/dist/ui/index.d.ts +3 -3
  51. package/dist/ui/index.js +62 -59
  52. package/dist/ui/index.js.map +1 -1
  53. package/dist/ui/index.mjs +2 -2
  54. package/example/src/pages/Wallet/components/MatchWallet.tsx +2 -1
  55. package/package.json +1 -1
  56. package/dist/chunk-BPAPYY5P.mjs.map +0 -1
  57. package/dist/chunk-YFJI4I5M.mjs.map +0 -1
  58. package/dist/index-DKyt0for.d.mts +0 -181
  59. package/dist/index-TkB89QxX.d.ts +0 -181
  60. /package/dist/{chunk-55KYW35I.mjs.map → chunk-J5U7AXYA.mjs.map} +0 -0
  61. /package/dist/{chunk-UHBVYFSP.mjs.map → chunk-USKUYOYJ.mjs.map} +0 -0
@@ -1,5 +1,5 @@
1
1
  import { A as AuthParams, C as ChainType, E as EmbeddedWalletsParams, R as RecoveryType } from './mpc-CTbBWHld.js';
2
- import { A as AnyObject, k as AppConfigType, l as BindInfoType, m as BindItemType, n as BindWalletParam, B as ButtonProps, C as CEXType, D as DeepPartial, o as DrawerProps, E as EmailModalProps, a as IEnvConfigType, p as IEnvName, q as ILoginWalletReq, I as IMatchEvents, g as ISocialLoginMethod, r as IconProps, s as InputProps, L as LocaleType, b as LoginBoxProps, i as LoginMethodType, f as LoginModalProps, e as LoginPanelProps, t as MessageType, u as MetaPageType, v as ModalProps, M as ModalWithHeaderProps, O as OtherLoginMethodType, h as OverviewInfo, w as PohItemType, x as PohZkpassParams, P as PopoverPositionType, y as PopoverProps, d as PopoverTypeType, R as RecommendLoginMethodType, T as ThemeType, z as UIProps, F as UserAssetToken, U as UserChainType, G as UserImportTokenType, H as UserPopoverProps, j as UserTransactionType, J as WalletAssetType, K as WalletChainType, W as WalletConfigType, N as WalletPanelProps, Q as WalletReceiveMessageType, c as WalletType } from './types-CHkU0WHZ.js';
2
+ import { A as AnyObject, k as AppConfigType, l as BindInfoType, m as BindItemType, n as BindWalletParam, B as ButtonProps, C as CEXType, D as DeepPartial, o as DrawerProps, E as EmailModalProps, a as IEnvConfigType, p as IEnvName, q as ILoginWalletReq, I as IMatchEvents, g as ISocialLoginMethod, r as IconProps, s as InputProps, L as LocaleType, b as LoginBoxProps, i as LoginMethodType, f as LoginModalProps, e as LoginPanelProps, t as MessageType, u as MetaPageType, v as ModalProps, M as ModalWithHeaderProps, O as OtherLoginMethodType, h as OverviewInfo, w as PohItemType, x as PohZkpassParams, P as PopoverPositionType, y as PopoverProps, d as PopoverTypeType, R as RecommendLoginMethodType, T as ThemeType, z as UIProps, F as UserAssetToken, U as UserChainType, G as UserImportTokenType, H as UserPopoverProps, j as UserTransactionType, J as WalletAssetType, K as WalletChainType, W as WalletConfigType, N as WalletNFTType, Q as WalletPanelProps, S as WalletReceiveMessageType, c as WalletType } from './types-B4BYNw8B.js';
3
3
 
4
4
  declare const index_AnyObject: typeof AnyObject;
5
5
  declare const index_AppConfigType: typeof AppConfigType;
@@ -49,11 +49,12 @@ declare const index_UserTransactionType: typeof UserTransactionType;
49
49
  declare const index_WalletAssetType: typeof WalletAssetType;
50
50
  declare const index_WalletChainType: typeof WalletChainType;
51
51
  declare const index_WalletConfigType: typeof WalletConfigType;
52
+ declare const index_WalletNFTType: typeof WalletNFTType;
52
53
  declare const index_WalletPanelProps: typeof WalletPanelProps;
53
54
  declare const index_WalletReceiveMessageType: typeof WalletReceiveMessageType;
54
55
  declare const index_WalletType: typeof WalletType;
55
56
  declare namespace index {
56
- export { index_AnyObject as AnyObject, index_AppConfigType as AppConfigType, index_AuthParams as AuthParams, index_BindInfoType as BindInfoType, index_BindItemType as BindItemType, index_BindWalletParam as BindWalletParam, index_ButtonProps as ButtonProps, index_CEXType as CEXType, index_ChainType as ChainType, index_DeepPartial as DeepPartial, index_DrawerProps as DrawerProps, index_EmailModalProps as EmailModalProps, index_EmbeddedWalletsParams as EmbeddedWalletsParams, index_IEnvConfigType as IEnvConfigType, index_IEnvName as IEnvName, index_ILoginWalletReq as ILoginWalletReq, index_IMatchEvents as IMatchEvents, index_ISocialLoginMethod as ISocialLoginMethod, index_IconProps as IconProps, index_InputProps as InputProps, index_LocaleType as LocaleType, index_LoginBoxProps as LoginBoxProps, index_LoginMethodType as LoginMethodType, index_LoginModalProps as LoginModalProps, index_LoginPanelProps as LoginPanelProps, index_MessageType as MessageType, index_MetaPageType as MetaPageType, index_ModalProps as ModalProps, index_ModalWithHeaderProps as ModalWithHeaderProps, index_OtherLoginMethodType as OtherLoginMethodType, index_OverviewInfo as OverviewInfo, index_PohItemType as PohItemType, index_PohZkpassParams as PohZkpassParams, index_PopoverPositionType as PopoverPositionType, index_PopoverProps as PopoverProps, index_PopoverTypeType as PopoverTypeType, index_RecommendLoginMethodType as RecommendLoginMethodType, index_RecoveryType as RecoveryType, index_ThemeType as ThemeType, index_UIProps as UIProps, index_UserAssetToken as UserAssetToken, index_UserChainType as UserChainType, index_UserImportTokenType as UserImportTokenType, index_UserPopoverProps as UserPopoverProps, index_UserTransactionType as UserTransactionType, index_WalletAssetType as WalletAssetType, index_WalletChainType as WalletChainType, index_WalletConfigType as WalletConfigType, index_WalletPanelProps as WalletPanelProps, index_WalletReceiveMessageType as WalletReceiveMessageType, index_WalletType as WalletType };
57
+ export { index_AnyObject as AnyObject, index_AppConfigType as AppConfigType, index_AuthParams as AuthParams, index_BindInfoType as BindInfoType, index_BindItemType as BindItemType, index_BindWalletParam as BindWalletParam, index_ButtonProps as ButtonProps, index_CEXType as CEXType, index_ChainType as ChainType, index_DeepPartial as DeepPartial, index_DrawerProps as DrawerProps, index_EmailModalProps as EmailModalProps, index_EmbeddedWalletsParams as EmbeddedWalletsParams, index_IEnvConfigType as IEnvConfigType, index_IEnvName as IEnvName, index_ILoginWalletReq as ILoginWalletReq, index_IMatchEvents as IMatchEvents, index_ISocialLoginMethod as ISocialLoginMethod, index_IconProps as IconProps, index_InputProps as InputProps, index_LocaleType as LocaleType, index_LoginBoxProps as LoginBoxProps, index_LoginMethodType as LoginMethodType, index_LoginModalProps as LoginModalProps, index_LoginPanelProps as LoginPanelProps, index_MessageType as MessageType, index_MetaPageType as MetaPageType, index_ModalProps as ModalProps, index_ModalWithHeaderProps as ModalWithHeaderProps, index_OtherLoginMethodType as OtherLoginMethodType, index_OverviewInfo as OverviewInfo, index_PohItemType as PohItemType, index_PohZkpassParams as PohZkpassParams, index_PopoverPositionType as PopoverPositionType, index_PopoverProps as PopoverProps, index_PopoverTypeType as PopoverTypeType, index_RecommendLoginMethodType as RecommendLoginMethodType, index_RecoveryType as RecoveryType, index_ThemeType as ThemeType, index_UIProps as UIProps, index_UserAssetToken as UserAssetToken, index_UserChainType as UserChainType, index_UserImportTokenType as UserImportTokenType, index_UserPopoverProps as UserPopoverProps, index_UserTransactionType as UserTransactionType, index_WalletAssetType as WalletAssetType, index_WalletChainType as WalletChainType, index_WalletConfigType as WalletConfigType, index_WalletNFTType as WalletNFTType, index_WalletPanelProps as WalletPanelProps, index_WalletReceiveMessageType as WalletReceiveMessageType, index_WalletType as WalletType };
57
58
  }
58
59
 
59
60
  export { index as i };
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { ReactNode, PropsWithChildren } from 'react';
3
- import { s as InputProps, B as ButtonProps, v as ModalProps, M as ModalWithHeaderProps, y as PopoverProps } from './types-CHkU0WHZ.js';
3
+ import { s as InputProps, B as ButtonProps, v as ModalProps, M as ModalWithHeaderProps, y as PopoverProps } from './types-B4BYNw8B.js';
4
4
 
5
5
  declare function Field({ label, children, error, required, className }: {
6
6
  label: ReactNode;
@@ -1,6 +1,6 @@
1
- import { B as Button, F as Field, I as Input, M as Modal, a as ModalWithHeader, O as Overlay, P as Popover } from './index-DbG5IjhP.mjs';
1
+ import { B as Button, F as Field, I as Input, M as Modal, a as ModalWithHeader, O as Overlay, P as Popover } from './index-CB4j_ONH.mjs';
2
2
  import * as react_jsx_runtime from 'react/jsx-runtime';
3
- import { o as DrawerProps, N as WalletPanelProps, z as UIProps } from './types-CHkU0WHZ.mjs';
3
+ import { o as DrawerProps, Q as WalletPanelProps, z as UIProps } from './types-B4BYNw8B.mjs';
4
4
  import { Hash, Chain } from 'viem';
5
5
  import { CSSProperties } from 'react';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import * as _tanstack_react_query from '@tanstack/react-query';
2
2
  import { UseQueryOptions } from '@tanstack/react-query/src/types';
3
- import { x as PohZkpassParams, j as UserTransactionType, J as WalletAssetType, u as MetaPageType, m as BindItemType, l as BindInfoType, w as PohItemType, U as UserChainType, F as UserAssetToken, G as UserImportTokenType, K as WalletChainType } from './types-CHkU0WHZ.js';
3
+ import { x as PohZkpassParams, j as UserTransactionType, J as WalletAssetType, u as MetaPageType, m as BindItemType, l as BindInfoType, w as PohItemType, U as UserChainType, F as UserAssetToken, G as UserImportTokenType, K as WalletChainType, N as WalletNFTType } from './types-B4BYNw8B.js';
4
4
 
5
5
  declare const isSuccess: (res: {
6
6
  code: number;
@@ -37,7 +37,7 @@ declare const userImportTokenApi: (data: {
37
37
  chain_id: string;
38
38
  symbol: string;
39
39
  address: string;
40
- decimals: number;
40
+ decimals: string;
41
41
  }) => Promise<MyResponseType<any>>;
42
42
  declare const getUserWalletTransactionsApi: (data: {
43
43
  chain_id: string;
@@ -51,7 +51,10 @@ declare const getUserWalletTransactionsApi: (data: {
51
51
  declare const getWalletAssetListApi: (data: {
52
52
  chain_id: string;
53
53
  address: string;
54
- }) => Promise<MyResponseType<WalletAssetType[]>>;
54
+ }) => Promise<MyResponseType<{
55
+ asset_list: WalletAssetType[];
56
+ asset_total_balance: string;
57
+ }>>;
55
58
  declare const getWalletListApi: (data: {
56
59
  page: number;
57
60
  page_size: number;
@@ -97,6 +100,10 @@ declare function useImportTokenListQuery({ chainId, ...options }: {
97
100
  chainId: number;
98
101
  } & Partial<Omit<UseQueryOptions<UserImportTokenType[]>, 'queryKey' | 'queryFn'>>): _tanstack_react_query.UseQueryResult<UserImportTokenType[], Error>;
99
102
  declare function useWalletChainListQuery(options?: Partial<Omit<UseQueryOptions<WalletChainType[]>, 'queryKey' | 'queryFn'>>): _tanstack_react_query.UseQueryResult<WalletChainType[], Error>;
103
+ declare function useWalletNftListQuery({ chainId, address, ...options }: {
104
+ chainId: number;
105
+ address: string;
106
+ } & Partial<Omit<UseQueryOptions<WalletNFTType[]>, 'queryKey' | 'queryFn'>>): _tanstack_react_query.UseQueryResult<WalletNFTType[], Error>;
100
107
 
101
108
  declare const wallet_getUserWalletTransactionsApi: typeof getUserWalletTransactionsApi;
102
109
  declare const wallet_getWalletAssetListApi: typeof getWalletAssetListApi;
@@ -105,9 +112,10 @@ declare const wallet_useAssetListQuery: typeof useAssetListQuery;
105
112
  declare const wallet_useChainListQuery: typeof useChainListQuery;
106
113
  declare const wallet_useImportTokenListQuery: typeof useImportTokenListQuery;
107
114
  declare const wallet_useWalletChainListQuery: typeof useWalletChainListQuery;
115
+ declare const wallet_useWalletNftListQuery: typeof useWalletNftListQuery;
108
116
  declare const wallet_userImportTokenApi: typeof userImportTokenApi;
109
117
  declare namespace wallet {
110
- 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_useWalletChainListQuery as useWalletChainListQuery, wallet_userImportTokenApi as userImportTokenApi };
118
+ 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_useWalletChainListQuery as useWalletChainListQuery, wallet_useWalletNftListQuery as useWalletNftListQuery, wallet_userImportTokenApi as userImportTokenApi };
111
119
  }
112
120
 
113
121
  declare const index_bind: typeof bind;
package/dist/index.css CHANGED
@@ -1278,3 +1278,14 @@ body {
1278
1278
  }
1279
1279
  }
1280
1280
  }
1281
+
1282
+ .matchid-import-token{
1283
+ display: flex;
1284
+ flex-direction: column;
1285
+ gap:48px;
1286
+ .matchid-import-token-form{
1287
+ display: flex;
1288
+ flex-direction: column;
1289
+ gap:24px
1290
+ }
1291
+ }
package/dist/index.d.mts CHANGED
@@ -1,17 +1,18 @@
1
1
  import React, { ReactNode } from 'react';
2
- import { I as IMatchEvents, a as IEnvConfigType, L as LocaleType, W as WalletConfigType } from './types-CHkU0WHZ.mjs';
3
- export { i as Components } from './index-BZrddrq-.mjs';
4
- export { i as UI } from './index-BvLpvebq.mjs';
5
- export { i as Hooks } from './index-DKyt0for.mjs';
6
- export { i as Api } from './index-B8DYrhSW.mjs';
2
+ import { I as IMatchEvents, a as IEnvConfigType, L as LocaleType, W as WalletConfigType } from './types-B4BYNw8B.mjs';
3
+ export { i as Components } from './index-C_S7k6z2.mjs';
4
+ export { i as UI } from './index-Dzvj-uGt.mjs';
5
+ export { i as Hooks } from './index-DDV4F9ka.mjs';
6
+ export { i as Api } from './index-C-YCr0xJ.mjs';
7
7
  export { i as Chains } from './index-DXRGMAbv.mjs';
8
- export { i as Types } from './index-B-s1k4Da.mjs';
8
+ export { i as Types } from './index-CKyWWkzU.mjs';
9
9
  import 'react/jsx-runtime';
10
- import './index-DbG5IjhP.mjs';
10
+ import './index-CB4j_ONH.mjs';
11
11
  import 'viem';
12
12
  import './mpc-CTbBWHld.mjs';
13
13
  import 'viem/types/misc';
14
14
  import 'abitype';
15
+ import 'viem/_types/actions/siwe/verifySiweMessage';
15
16
  import '@tanstack/react-query';
16
17
  import '@tanstack/react-query/src/types';
17
18
 
package/dist/index.d.ts CHANGED
@@ -1,17 +1,18 @@
1
1
  import React, { ReactNode } from 'react';
2
- import { I as IMatchEvents, a as IEnvConfigType, L as LocaleType, W as WalletConfigType } from './types-CHkU0WHZ.js';
3
- export { i as Components } from './index-BHvCA7F9.js';
4
- export { i as UI } from './index-DCeOyAw8.js';
5
- export { i as Hooks } from './index-TkB89QxX.js';
6
- export { i as Api } from './index-Cwx2p8th.js';
2
+ import { I as IMatchEvents, a as IEnvConfigType, L as LocaleType, W as WalletConfigType } from './types-B4BYNw8B.js';
3
+ export { i as Components } from './index-D-uNr-JV.js';
4
+ export { i as UI } from './index-Bbn2Stvu.js';
5
+ export { i as Hooks } from './index-Bz53bbI_.js';
6
+ export { i as Api } from './index-zRpvDpIK.js';
7
7
  export { i as Chains } from './index-DXRGMAbv.js';
8
- export { i as Types } from './index-DG_gyw1q.js';
8
+ export { i as Types } from './index-DV_mRu4y.js';
9
9
  import 'react/jsx-runtime';
10
- import './index-Bzcc-y8m.js';
10
+ import './index-DcxdJ0m2.js';
11
11
  import 'viem';
12
12
  import './mpc-CTbBWHld.js';
13
13
  import 'viem/types/misc';
14
14
  import 'abitype';
15
+ import 'viem/_types/actions/siwe/verifySiweMessage';
15
16
  import '@tanstack/react-query';
16
17
  import '@tanstack/react-query/src/types';
17
18