@matchain/matchid-sdk-react 0.1.50 → 0.1.51-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 (50) hide show
  1. package/dist/assets/icon/index.d.mts +1 -1
  2. package/dist/assets/icon/index.d.ts +1 -1
  3. package/dist/{chunk-6KB4RLTC.mjs → chunk-55KKIDVT.mjs} +2 -2
  4. package/dist/{chunk-JLQVDNWZ.mjs → chunk-KKWAYHRG.mjs} +14 -14
  5. package/dist/{chunk-JLQVDNWZ.mjs.map → chunk-KKWAYHRG.mjs.map} +1 -1
  6. package/dist/components/index.d.mts +3 -3
  7. package/dist/components/index.d.ts +3 -3
  8. package/dist/components/index.js +1 -1
  9. package/dist/components/index.js.map +1 -1
  10. package/dist/components/index.mjs +2 -2
  11. package/dist/hooks/api/index.d.mts +2 -2
  12. package/dist/hooks/api/index.d.ts +2 -2
  13. package/dist/hooks/api/index.js.map +1 -1
  14. package/dist/hooks/api/index.mjs +3 -3
  15. package/dist/hooks/index.d.mts +2 -3
  16. package/dist/hooks/index.d.ts +2 -3
  17. package/dist/hooks/index.js.map +1 -1
  18. package/dist/hooks/index.mjs +2 -2
  19. package/dist/{index-Cx2Lx_mh.d.ts → index-B-QfwtE5.d.mts} +1 -2
  20. package/dist/{index-Bvc8cjpN.d.ts → index-BDoEk1EK.d.ts} +2 -2
  21. package/dist/{index-BcEreCxd.d.ts → index-BUj9mOrS.d.ts} +1 -1
  22. package/dist/{index-Cou96DpL.d.mts → index-B_o9HBS1.d.mts} +1 -1
  23. package/dist/{index-Bpmrd7mh.d.ts → index-Bmir-Wor.d.mts} +1 -2
  24. package/dist/{index-D4ju2J_e.d.mts → index-CDqIk5k2.d.mts} +1 -1
  25. package/dist/{index-C9F6f2iz.d.mts → index-D5OzNRfu.d.mts} +2 -2
  26. package/dist/{index-BMsj8hJv.d.ts → index-DMUZQqNB.d.ts} +2 -2
  27. package/dist/{index-Cy3K-Yao.d.ts → index-DvM6x6e6.d.ts} +1 -1
  28. package/dist/{index-C_TiXUOB.d.mts → index-X_fw5wX_.d.ts} +1 -2
  29. package/dist/{index-C9qYyRgt.d.mts → index-XzSw1Bym.d.mts} +2 -2
  30. package/dist/{index-BMfaixEx.d.mts → index-k2Uf0F94.d.ts} +1 -2
  31. package/dist/index.css +66 -27
  32. package/dist/index.d.mts +7 -8
  33. package/dist/index.d.ts +7 -8
  34. package/dist/index.js +1 -1
  35. package/dist/index.js.map +1 -1
  36. package/dist/index.mjs +9 -9
  37. package/dist/types/index.d.mts +1 -2
  38. package/dist/types/index.d.ts +1 -2
  39. package/dist/{types-DzVVzMYU.d.mts → types-Dd_ExpLx.d.mts} +21 -1
  40. package/dist/{types-DzVVzMYU.d.ts → types-Dd_ExpLx.d.ts} +21 -1
  41. package/dist/ui/index.d.mts +3 -3
  42. package/dist/ui/index.d.ts +3 -3
  43. package/example/src/App.tsx +11 -3
  44. package/example/src/pages/User/index.tsx +3 -1
  45. package/example/src/pages/Wallet/components/MatchWallet.tsx +1 -1
  46. package/example/src/store/useLocalStore.ts +4 -0
  47. package/package.json +1 -1
  48. package/dist/mpc-CTbBWHld.d.mts +0 -20
  49. package/dist/mpc-CTbBWHld.d.ts +0 -20
  50. /package/dist/{chunk-6KB4RLTC.mjs.map → chunk-55KKIDVT.mjs.map} +0 -0
package/dist/index.mjs CHANGED
@@ -1,12 +1,6 @@
1
- import {
2
- chains_exports
3
- } from "./chunk-HYQ3T6WW.mjs";
4
- import {
5
- types_exports
6
- } from "./chunk-HBOS3RBL.mjs";
7
1
  import {
8
2
  api_exports
9
- } from "./chunk-6KB4RLTC.mjs";
3
+ } from "./chunk-55KKIDVT.mjs";
10
4
  import {
11
5
  MatchProvider,
12
6
  ModalProvider,
@@ -14,13 +8,19 @@ import {
14
8
  components_exports,
15
9
  hooks_exports,
16
10
  useMatch
17
- } from "./chunk-JLQVDNWZ.mjs";
11
+ } from "./chunk-KKWAYHRG.mjs";
12
+ import {
13
+ types_exports
14
+ } from "./chunk-HBOS3RBL.mjs";
18
15
  import "./chunk-UA6XHZHX.mjs";
16
+ import "./chunk-HLUFAIFV.mjs";
19
17
  import {
20
18
  ui_exports
21
19
  } from "./chunk-FB5MHLWX.mjs";
22
- import "./chunk-HLUFAIFV.mjs";
23
20
  import "./chunk-LHNKZISB.mjs";
21
+ import {
22
+ chains_exports
23
+ } from "./chunk-HYQ3T6WW.mjs";
24
24
  import "./chunk-J5LGTIGS.mjs";
25
25
  export {
26
26
  api_exports as Api,
@@ -1,4 +1,3 @@
1
- export { A as AuthParams, C as ChainType, E as EmbeddedWalletsParams, R as RecoveryType } from '../mpc-CTbBWHld.mjs';
2
- export { A as Address, k as AnyObject, o as AppConfigType, p as BindInfoType, q as BindItemType, r as BindWalletParam, B as ButtonProps, C as CEXType, D as DeepPartial, s as DrawerProps, E as EmailModalProps, H as Hash, a as IEnvConfigType, t as IEnvName, v as ILoginWalletReq, I as IMatchEvents, h as ISocialLoginMethod, w as IconProps, x as InputProps, L as LocaleType, b as LoginBoxProps, j as LoginMethodType, f as LoginModalProps, e as LoginPanelProps, y as MessageType, z as MetaPageType, F as ModalProps, M as ModalWithHeaderProps, O as OtherLoginMethodType, i as OverviewInfo, G as PohItemType, J as PohZkpassParams, P as PopoverPositionType, K as PopoverProps, d as PopoverTypeType, R as RecommendLoginMethodType, T as ThemeType, N as UIProps, n as UserAssetToken, U as UserChainType, m as UserImportTokenType, Q as UserPopoverProps, S as UserTransactionNextPageParams, V as UserTransactionRecordType, l as UserTransactionType, g as WalletAssetMergeType, X as WalletAssetType, Y as WalletChainType, W as WalletConfigType, Z as WalletNFTType, _ as WalletPanelProps, $ as WalletReceiveMessageType, c as WalletType, u as useMatchWalletAssetsProps } from '../types-DzVVzMYU.mjs';
1
+ export { A as Address, l as AnyObject, p as AppConfigType, q as AuthParams, r as BindInfoType, s as BindItemType, t as BindWalletParam, B as ButtonProps, C as CEXType, k as ChainType, D as DeepPartial, v as DrawerProps, E as EmailModalProps, w as EmbeddedWalletsParams, H as Hash, a as IEnvConfigType, x as IEnvName, y as ILoginWalletReq, I as IMatchEvents, h as ISocialLoginMethod, z as IconProps, F as InputProps, L as LocaleType, b as LoginBoxProps, j as LoginMethodType, f as LoginModalProps, e as LoginPanelProps, G as MessageType, J as MetaPageType, K as ModalProps, M as ModalWithHeaderProps, O as OtherLoginMethodType, i as OverviewInfo, N as PohItemType, Q as PohZkpassParams, P as PopoverPositionType, S as PopoverProps, d as PopoverTypeType, R as RecommendLoginMethodType, T as RecoveryType, V as ThemeType, X as UIProps, o as UserAssetToken, U as UserChainType, n as UserImportTokenType, Y as UserPopoverProps, Z as UserTransactionNextPageParams, _ as UserTransactionRecordType, m as UserTransactionType, g as WalletAssetMergeType, $ as WalletAssetType, a0 as WalletChainType, W as WalletConfigType, a1 as WalletNFTType, a2 as WalletPanelProps, a3 as WalletReceiveMessageType, c as WalletType, u as useMatchWalletAssetsProps } from '../types-Dd_ExpLx.mjs';
3
2
  import 'react';
4
3
  import '@tanstack/react-query/src/types';
@@ -1,4 +1,3 @@
1
- export { A as AuthParams, C as ChainType, E as EmbeddedWalletsParams, R as RecoveryType } from '../mpc-CTbBWHld.js';
2
- export { A as Address, k as AnyObject, o as AppConfigType, p as BindInfoType, q as BindItemType, r as BindWalletParam, B as ButtonProps, C as CEXType, D as DeepPartial, s as DrawerProps, E as EmailModalProps, H as Hash, a as IEnvConfigType, t as IEnvName, v as ILoginWalletReq, I as IMatchEvents, h as ISocialLoginMethod, w as IconProps, x as InputProps, L as LocaleType, b as LoginBoxProps, j as LoginMethodType, f as LoginModalProps, e as LoginPanelProps, y as MessageType, z as MetaPageType, F as ModalProps, M as ModalWithHeaderProps, O as OtherLoginMethodType, i as OverviewInfo, G as PohItemType, J as PohZkpassParams, P as PopoverPositionType, K as PopoverProps, d as PopoverTypeType, R as RecommendLoginMethodType, T as ThemeType, N as UIProps, n as UserAssetToken, U as UserChainType, m as UserImportTokenType, Q as UserPopoverProps, S as UserTransactionNextPageParams, V as UserTransactionRecordType, l as UserTransactionType, g as WalletAssetMergeType, X as WalletAssetType, Y as WalletChainType, W as WalletConfigType, Z as WalletNFTType, _ as WalletPanelProps, $ as WalletReceiveMessageType, c as WalletType, u as useMatchWalletAssetsProps } from '../types-DzVVzMYU.js';
1
+ export { A as Address, l as AnyObject, p as AppConfigType, q as AuthParams, r as BindInfoType, s as BindItemType, t as BindWalletParam, B as ButtonProps, C as CEXType, k as ChainType, D as DeepPartial, v as DrawerProps, E as EmailModalProps, w as EmbeddedWalletsParams, H as Hash, a as IEnvConfigType, x as IEnvName, y as ILoginWalletReq, I as IMatchEvents, h as ISocialLoginMethod, z as IconProps, F as InputProps, L as LocaleType, b as LoginBoxProps, j as LoginMethodType, f as LoginModalProps, e as LoginPanelProps, G as MessageType, J as MetaPageType, K as ModalProps, M as ModalWithHeaderProps, O as OtherLoginMethodType, i as OverviewInfo, N as PohItemType, Q as PohZkpassParams, P as PopoverPositionType, S as PopoverProps, d as PopoverTypeType, R as RecommendLoginMethodType, T as RecoveryType, V as ThemeType, X as UIProps, o as UserAssetToken, U as UserChainType, n as UserImportTokenType, Y as UserPopoverProps, Z as UserTransactionNextPageParams, _ as UserTransactionRecordType, m as UserTransactionType, g as WalletAssetMergeType, $ as WalletAssetType, a0 as WalletChainType, W as WalletConfigType, a1 as WalletNFTType, a2 as WalletPanelProps, a3 as WalletReceiveMessageType, c as WalletType, u as useMatchWalletAssetsProps } from '../types-Dd_ExpLx.js';
3
2
  import 'react';
4
3
  import '@tanstack/react-query/src/types';
@@ -1,6 +1,25 @@
1
1
  import { CSSProperties, PropsWithChildren, ReactNode } from 'react';
2
2
  import { UseQueryOptions } from '@tanstack/react-query/src/types';
3
3
 
4
+ interface AuthParams {
5
+ AppId: string;
6
+ AppClientId: string;
7
+ UserId: string;
8
+ AccessToken: string;
9
+ Address?: string;
10
+ }
11
+ interface EmbeddedWalletsParams {
12
+ Url: string;
13
+ }
14
+ declare enum ChainType {
15
+ Ethereum = "ethereum",
16
+ Solana = "solana"
17
+ }
18
+ declare enum RecoveryType {
19
+ Base = "base_generated_recovery_key",
20
+ UserPasscode = "user_passcode_recovery_key"
21
+ }
22
+
4
23
  type ISocialLoginMethod = 'google' | 'twitter' | 'discord' | 'github' | 'telegram' | 'linkedin' | 'facebook' | 'youtube';
5
24
  type WalletType = 'evm' | 'sol' | 'tron' | 'btc' | 'ton';
6
25
  type LoginMethodType = WalletType | 'email' | ISocialLoginMethod;
@@ -61,6 +80,7 @@ type OverviewInfo = {
61
80
  username?: string;
62
81
  max_level: number;
63
82
  user_level: number;
83
+ recover_type: `${RecoveryType}`;
64
84
  };
65
85
  type AnyObject = {
66
86
  [key: string]: any;
@@ -400,4 +420,4 @@ type useMatchWalletAssetsProps = {
400
420
  assetListOptions?: Partial<Omit<UseQueryOptions<UserAssetToken[]>, 'queryKey' | 'queryFn'>>;
401
421
  };
402
422
 
403
- export type { WalletReceiveMessageType as $, Address as A, ButtonProps as B, CEXType as C, DeepPartial as D, EmailModalProps as E, ModalProps as F, PohItemType as G, Hash as H, IMatchEvents as I, PohZkpassParams as J, PopoverProps as K, LocaleType as L, ModalWithHeaderProps as M, UIProps as N, OtherLoginMethodType as O, PopoverPositionType as P, UserPopoverProps as Q, RecommendLoginMethodType as R, UserTransactionNextPageParams as S, ThemeType as T, UserChainType as U, UserTransactionRecordType as V, WalletConfigType as W, WalletAssetType as X, WalletChainType as Y, WalletNFTType as Z, WalletPanelProps as _, IEnvConfigType as a, LoginBoxProps as b, WalletType as c, PopoverTypeType as d, LoginPanelProps as e, LoginModalProps as f, WalletAssetMergeType as g, ISocialLoginMethod as h, OverviewInfo as i, LoginMethodType as j, AnyObject as k, UserTransactionType as l, UserImportTokenType as m, UserAssetToken as n, AppConfigType as o, BindInfoType as p, BindItemType as q, BindWalletParam as r, DrawerProps as s, IEnvName as t, useMatchWalletAssetsProps as u, ILoginWalletReq as v, IconProps as w, InputProps as x, MessageType as y, MetaPageType as z };
423
+ export { type WalletAssetType as $, type Address as A, type ButtonProps as B, type CEXType as C, type DeepPartial as D, type EmailModalProps as E, type InputProps as F, type MessageType as G, type Hash as H, type IMatchEvents as I, type MetaPageType as J, type ModalProps as K, type LocaleType as L, type ModalWithHeaderProps as M, type PohItemType as N, type OtherLoginMethodType as O, type PopoverPositionType as P, type PohZkpassParams as Q, type RecommendLoginMethodType as R, type PopoverProps as S, RecoveryType as T, type UserChainType as U, type ThemeType as V, type WalletConfigType as W, type UIProps as X, type UserPopoverProps as Y, type UserTransactionNextPageParams as Z, type UserTransactionRecordType as _, type IEnvConfigType as a, type WalletChainType as a0, type WalletNFTType as a1, type WalletPanelProps as a2, type WalletReceiveMessageType as a3, type LoginBoxProps as b, type WalletType as c, type PopoverTypeType as d, type LoginPanelProps as e, type LoginModalProps as f, type WalletAssetMergeType as g, type ISocialLoginMethod as h, type OverviewInfo as i, type LoginMethodType as j, ChainType as k, type AnyObject as l, type UserTransactionType as m, type UserImportTokenType as n, type UserAssetToken as o, type AppConfigType as p, type AuthParams as q, type BindInfoType as r, type BindItemType as s, type BindWalletParam as t, type useMatchWalletAssetsProps as u, type DrawerProps as v, type EmbeddedWalletsParams as w, type IEnvName as x, type ILoginWalletReq as y, type IconProps as z };
@@ -1,6 +1,25 @@
1
1
  import { CSSProperties, PropsWithChildren, ReactNode } from 'react';
2
2
  import { UseQueryOptions } from '@tanstack/react-query/src/types';
3
3
 
4
+ interface AuthParams {
5
+ AppId: string;
6
+ AppClientId: string;
7
+ UserId: string;
8
+ AccessToken: string;
9
+ Address?: string;
10
+ }
11
+ interface EmbeddedWalletsParams {
12
+ Url: string;
13
+ }
14
+ declare enum ChainType {
15
+ Ethereum = "ethereum",
16
+ Solana = "solana"
17
+ }
18
+ declare enum RecoveryType {
19
+ Base = "base_generated_recovery_key",
20
+ UserPasscode = "user_passcode_recovery_key"
21
+ }
22
+
4
23
  type ISocialLoginMethod = 'google' | 'twitter' | 'discord' | 'github' | 'telegram' | 'linkedin' | 'facebook' | 'youtube';
5
24
  type WalletType = 'evm' | 'sol' | 'tron' | 'btc' | 'ton';
6
25
  type LoginMethodType = WalletType | 'email' | ISocialLoginMethod;
@@ -61,6 +80,7 @@ type OverviewInfo = {
61
80
  username?: string;
62
81
  max_level: number;
63
82
  user_level: number;
83
+ recover_type: `${RecoveryType}`;
64
84
  };
65
85
  type AnyObject = {
66
86
  [key: string]: any;
@@ -400,4 +420,4 @@ type useMatchWalletAssetsProps = {
400
420
  assetListOptions?: Partial<Omit<UseQueryOptions<UserAssetToken[]>, 'queryKey' | 'queryFn'>>;
401
421
  };
402
422
 
403
- export type { WalletReceiveMessageType as $, Address as A, ButtonProps as B, CEXType as C, DeepPartial as D, EmailModalProps as E, ModalProps as F, PohItemType as G, Hash as H, IMatchEvents as I, PohZkpassParams as J, PopoverProps as K, LocaleType as L, ModalWithHeaderProps as M, UIProps as N, OtherLoginMethodType as O, PopoverPositionType as P, UserPopoverProps as Q, RecommendLoginMethodType as R, UserTransactionNextPageParams as S, ThemeType as T, UserChainType as U, UserTransactionRecordType as V, WalletConfigType as W, WalletAssetType as X, WalletChainType as Y, WalletNFTType as Z, WalletPanelProps as _, IEnvConfigType as a, LoginBoxProps as b, WalletType as c, PopoverTypeType as d, LoginPanelProps as e, LoginModalProps as f, WalletAssetMergeType as g, ISocialLoginMethod as h, OverviewInfo as i, LoginMethodType as j, AnyObject as k, UserTransactionType as l, UserImportTokenType as m, UserAssetToken as n, AppConfigType as o, BindInfoType as p, BindItemType as q, BindWalletParam as r, DrawerProps as s, IEnvName as t, useMatchWalletAssetsProps as u, ILoginWalletReq as v, IconProps as w, InputProps as x, MessageType as y, MetaPageType as z };
423
+ export { type WalletAssetType as $, type Address as A, type ButtonProps as B, type CEXType as C, type DeepPartial as D, type EmailModalProps as E, type InputProps as F, type MessageType as G, type Hash as H, type IMatchEvents as I, type MetaPageType as J, type ModalProps as K, type LocaleType as L, type ModalWithHeaderProps as M, type PohItemType as N, type OtherLoginMethodType as O, type PopoverPositionType as P, type PohZkpassParams as Q, type RecommendLoginMethodType as R, type PopoverProps as S, RecoveryType as T, type UserChainType as U, type ThemeType as V, type WalletConfigType as W, type UIProps as X, type UserPopoverProps as Y, type UserTransactionNextPageParams as Z, type UserTransactionRecordType as _, type IEnvConfigType as a, type WalletChainType as a0, type WalletNFTType as a1, type WalletPanelProps as a2, type WalletReceiveMessageType as a3, type LoginBoxProps as b, type WalletType as c, type PopoverTypeType as d, type LoginPanelProps as e, type LoginModalProps as f, type WalletAssetMergeType as g, type ISocialLoginMethod as h, type OverviewInfo as i, type LoginMethodType as j, ChainType as k, type AnyObject as l, type UserTransactionType as m, type UserImportTokenType as n, type UserAssetToken as o, type AppConfigType as p, type AuthParams as q, type BindInfoType as r, type BindItemType as s, type BindWalletParam as t, type useMatchWalletAssetsProps as u, type DrawerProps as v, type EmbeddedWalletsParams as w, type IEnvName as x, type ILoginWalletReq as y, type IconProps as z };
@@ -1,7 +1,7 @@
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-Cou96DpL.mjs';
2
- export { A as AlphaAvatar, D as Drawer, e as HashPanel, M as ModalDrawer, R as Radio, S as Switch } from '../index-C9F6f2iz.mjs';
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-B_o9HBS1.mjs';
2
+ export { A as AlphaAvatar, D as Drawer, e as HashPanel, M as ModalDrawer, R as Radio, S as Switch } from '../index-D5OzNRfu.mjs';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react';
5
- import '../types-DzVVzMYU.mjs';
5
+ import '../types-Dd_ExpLx.mjs';
6
6
  import '@tanstack/react-query/src/types';
7
7
  import 'viem';
@@ -1,7 +1,7 @@
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-BcEreCxd.js';
2
- export { A as AlphaAvatar, D as Drawer, e as HashPanel, M as ModalDrawer, R as Radio, S as Switch } from '../index-BMsj8hJv.js';
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-BUj9mOrS.js';
2
+ export { A as AlphaAvatar, D as Drawer, e as HashPanel, M as ModalDrawer, R as Radio, S as Switch } from '../index-DMUZQqNB.js';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react';
5
- import '../types-DzVVzMYU.js';
5
+ import '../types-Dd_ExpLx.js';
6
6
  import '@tanstack/react-query/src/types';
7
7
  import 'viem';
@@ -69,7 +69,7 @@ function Nav() {
69
69
  }
70
70
 
71
71
  function RouterApp() {
72
- const {appid, setAppid, locale, setLocale, endpoints, setEndpoints} = useLocalStore()
72
+ const {appid, setAppid, locale, setLocale, endpoints, setEndpoints, setWalletType,walletType} = useLocalStore()
73
73
 
74
74
  return <Router>
75
75
  <div className={`mb-2 p-2 flex gap-2 flex-col`}>
@@ -100,6 +100,14 @@ function RouterApp() {
100
100
  {LocaleList.map((item) => <option key={item} value={item}>{item}</option>)}
101
101
  </select>
102
102
  </div>
103
+ <div>
104
+ <label>WalletType:</label>
105
+ <select onChange={(ele) => {
106
+ setWalletType(ele.target.value as any)
107
+ }} value={walletType}>
108
+ {['Base','UserPasscode'].map((item) => <option key={item} value={item}>{item}</option>)}
109
+ </select>
110
+ </div>
103
111
  </div>
104
112
  <Nav/>
105
113
  <div className={`p-4`}>
@@ -117,7 +125,7 @@ function RouterApp() {
117
125
  }
118
126
 
119
127
  function App() {
120
- const {appid, locale, endpoints} = useLocalStore()
128
+ const {appid, locale, endpoints,walletType} = useLocalStore()
121
129
 
122
130
  return <MatchProvider
123
131
  appid={appid}
@@ -132,7 +140,7 @@ function App() {
132
140
  }
133
141
  }}
134
142
  wallet={{
135
- type: "UserPasscode"
143
+ type: walletType
136
144
  }}
137
145
  >
138
146
  <RouterApp/>
@@ -23,7 +23,8 @@ function LoginContent() {
23
23
  bind,
24
24
  auth,
25
25
  bindCex,
26
- getAuthInfo
26
+ getAuthInfo,
27
+ overview
27
28
  } = useUserInfo();
28
29
  const [usernameOpen, setUsernameOpen] = useState(false)
29
30
  const [modal, setModal] = useState<'bindList' | 'pohList' | ''>('')
@@ -45,6 +46,7 @@ function LoginContent() {
45
46
  <h1 className={`text-2xl`}>You are already logged in</h1>
46
47
  <div className={`text-ellipsis break-words`}>token:{token}</div>
47
48
  <div className={`text-ellipsis break-words`}>username:{username}</div>
49
+ <div className={`text-ellipsis break-words`}>recover_type:{overview?.recover_type}</div>
48
50
  <div className={`text-ellipsis break-words`}>did:{did}</div>
49
51
  <div className={`text-ellipsis break-words`}>address:{address}</div>
50
52
 
@@ -46,7 +46,7 @@ export default function MatchWallet() {
46
46
  <Button size={"sm"} onClick={wallet.showImportTokenModal}>showImportToken</Button>
47
47
  <Button size={"sm"} onClick={wallet.showSendListModal}>showSendListModal</Button>
48
48
  </ButtonGroup>
49
- <div className={`mt-[100px] gap-[20px] grid grid-cols-2`}>
49
+ <div className={`mt-[100px] gap-[20px] grid grid-cols-1 md:grid-cols-2`}>
50
50
  <WalletAsset onAssetClick={onAssetClick}/>
51
51
  <TransactionList/>
52
52
  </div>
@@ -9,6 +9,8 @@ interface StoreState {
9
9
  auth: string;
10
10
  }
11
11
  locale: LocaleType;
12
+ walletType:"Base" | "UserPasscode";
13
+ setWalletType: (walletType: "Base" | "UserPasscode") => void;
12
14
 
13
15
 
14
16
  setAppid: (appid: string) => void;
@@ -34,6 +36,8 @@ const persistedState = persist<StoreState>(
34
36
  setAppid: (appid: string) => set({appid: appid}),
35
37
  setEndpoints: (endpoints: StoreState['endpoints']) => set({endpoints}),
36
38
  setLocale: (locale: LocaleType) => set({locale}),
39
+ walletType: "UserPasscode",
40
+ setWalletType: (walletType: "Base" | "UserPasscode") => set({walletType}),
37
41
 
38
42
  initChainId:1,
39
43
  setInitChainId: (initChainId: number) => set({initChainId}),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@matchain/matchid-sdk-react",
3
- "version": "0.1.50",
3
+ "version": "0.1.51-alpha.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "exports": {
@@ -1,20 +0,0 @@
1
- interface AuthParams {
2
- AppId: string;
3
- AppClientId: string;
4
- UserId: string;
5
- AccessToken: string;
6
- Address?: string;
7
- }
8
- interface EmbeddedWalletsParams {
9
- Url: string;
10
- }
11
- declare enum ChainType {
12
- Ethereum = "ethereum",
13
- Solana = "solana"
14
- }
15
- declare enum RecoveryType {
16
- Base = "base_generated_recovery_key",
17
- UserPasscode = "user_passcode_recovery_key"
18
- }
19
-
20
- export { type AuthParams as A, ChainType as C, type EmbeddedWalletsParams as E, RecoveryType as R };
@@ -1,20 +0,0 @@
1
- interface AuthParams {
2
- AppId: string;
3
- AppClientId: string;
4
- UserId: string;
5
- AccessToken: string;
6
- Address?: string;
7
- }
8
- interface EmbeddedWalletsParams {
9
- Url: string;
10
- }
11
- declare enum ChainType {
12
- Ethereum = "ethereum",
13
- Solana = "solana"
14
- }
15
- declare enum RecoveryType {
16
- Base = "base_generated_recovery_key",
17
- UserPasscode = "user_passcode_recovery_key"
18
- }
19
-
20
- export { type AuthParams as A, ChainType as C, type EmbeddedWalletsParams as E, RecoveryType as R };