@matchain/matchid-sdk-react 0.1.53-alpha.3 → 0.1.53-alpha.5

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 (58) 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-3CR66BEX.mjs +19 -0
  4. package/dist/chunk-3CR66BEX.mjs.map +1 -0
  5. package/dist/{chunk-HYQ3T6WW.mjs → chunk-JX73EY6V.mjs} +2 -14
  6. package/dist/chunk-JX73EY6V.mjs.map +1 -0
  7. package/dist/{chunk-3YF3P77J.mjs → chunk-LEHYGXVJ.mjs} +780 -188
  8. package/dist/chunk-LEHYGXVJ.mjs.map +1 -0
  9. package/dist/{chunk-4EVF2PXX.mjs → chunk-RT42O3OC.mjs} +2 -2
  10. package/dist/components/index.d.mts +3 -3
  11. package/dist/components/index.d.ts +3 -3
  12. package/dist/components/index.js +843 -217
  13. package/dist/components/index.js.map +1 -1
  14. package/dist/components/index.mjs +6 -3
  15. package/dist/config/chains/index.mjs +2 -1
  16. package/dist/hooks/api/index.d.mts +2 -2
  17. package/dist/hooks/api/index.d.ts +2 -2
  18. package/dist/hooks/api/index.js +169 -58
  19. package/dist/hooks/api/index.js.map +1 -1
  20. package/dist/hooks/api/index.mjs +5 -4
  21. package/dist/hooks/index.d.mts +2 -2
  22. package/dist/hooks/index.d.ts +2 -2
  23. package/dist/hooks/index.js +457 -346
  24. package/dist/hooks/index.js.map +1 -1
  25. package/dist/hooks/index.mjs +4 -3
  26. package/dist/{index-CcN5ls1U.d.ts → index-BaYTgL99.d.mts} +3 -2
  27. package/dist/{index-lKJjj0w4.d.ts → index-BhU3hF7y.d.ts} +2 -2
  28. package/dist/{index-DrEKzXYX.d.mts → index-Bpd2gBNh.d.mts} +1 -1
  29. package/dist/{index-BSUoL5Jo.d.mts → index-C5StsjWY.d.ts} +11 -4
  30. package/dist/{index-DgwlV4ve.d.ts → index-CFqk8eNo.d.ts} +12 -12
  31. package/dist/{index-DXRsJY9h.d.mts → index-D1QeVZyN.d.ts} +3 -2
  32. package/dist/{index-BVO4Bt59.d.ts → index-D_UNctDI.d.mts} +11 -4
  33. package/dist/{index-Cul4qlZl.d.ts → index-DaXXoRxr.d.ts} +1 -1
  34. package/dist/{index-BKHtf1Tu.d.ts → index-Dt92N6yZ.d.ts} +1 -1
  35. package/dist/{index-ba3VTkaV.d.mts → index-W6yjuOKT.d.mts} +1 -1
  36. package/dist/{index-EPwrSSOz.d.mts → index-mxbJ8CFx.d.mts} +12 -12
  37. package/dist/{index-CvVl_Xw1.d.mts → index-wqqEUufi.d.mts} +2 -2
  38. package/dist/index.css +3 -0
  39. package/dist/index.d.mts +7 -7
  40. package/dist/index.d.ts +7 -7
  41. package/dist/index.js +1082 -508
  42. package/dist/index.js.map +1 -1
  43. package/dist/index.mjs +11 -10
  44. package/dist/types/index.d.mts +1 -1
  45. package/dist/types/index.d.ts +1 -1
  46. package/dist/{types-Bgd3Ac92.d.mts → types-Bx_FJ11s.d.mts} +2 -1
  47. package/dist/{types-Bgd3Ac92.d.ts → types-Bx_FJ11s.d.ts} +2 -1
  48. package/dist/ui/index.d.mts +3 -3
  49. package/dist/ui/index.d.ts +3 -3
  50. package/example/src/pages/User/index.tsx +7 -1
  51. package/package.json +2 -1
  52. package/dist/chunk-3YF3P77J.mjs.map +0 -1
  53. package/dist/chunk-HYQ3T6WW.mjs.map +0 -1
  54. package/example/dist/assets/ccip-nxE3Zma4.js +0 -1
  55. package/example/dist/assets/index-BFAv3rdU.css +0 -1
  56. package/example/dist/assets/index-DMWWRDPI.js +0 -1658
  57. package/example/dist/index.html +0 -14
  58. /package/dist/{chunk-4EVF2PXX.mjs.map → chunk-RT42O3OC.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-4EVF2PXX.mjs";
3
+ } from "./chunk-RT42O3OC.mjs";
10
4
  import {
11
5
  MatchProvider,
12
6
  ModalProvider,
@@ -14,13 +8,20 @@ import {
14
8
  components_exports,
15
9
  hooks_exports,
16
10
  useMatch
17
- } from "./chunk-3YF3P77J.mjs";
11
+ } from "./chunk-LEHYGXVJ.mjs";
12
+ import {
13
+ types_exports
14
+ } from "./chunk-HBOS3RBL.mjs";
15
+ import "./chunk-UA6XHZHX.mjs";
16
+ import "./chunk-OCQ2AIM3.mjs";
18
17
  import {
19
18
  ui_exports
20
19
  } from "./chunk-V2S54LGG.mjs";
21
- import "./chunk-OCQ2AIM3.mjs";
22
20
  import "./chunk-3USZ4ZZY.mjs";
23
- import "./chunk-UA6XHZHX.mjs";
21
+ import {
22
+ chains_exports
23
+ } from "./chunk-3CR66BEX.mjs";
24
+ import "./chunk-JX73EY6V.mjs";
24
25
  import "./chunk-J5LGTIGS.mjs";
25
26
  export {
26
27
  api_exports as Api,
@@ -1,3 +1,3 @@
1
- export { A as Address, e as AnyObject, w as AppConfigType, x as AuthParams, y as BindInfoType, z as BindItemType, F as BindWalletParam, B as ButtonProps, C as CEXType, d as ChainType, G as DeepPartial, D as DrawerProps, E as EmailModalProps, J as EmbeddedWalletsParams, H as Hash, a as IEnvConfigType, K as IEnvName, N as ILoginWalletReq, I as IMatchEvents, b as ISocialLoginMethod, v as IconProps, r as InputProps, L as LocaleType, j as LoginBoxProps, c as LoginMethodType, o as LoginModalProps, n as LoginPanelProps, Q as MessageType, S as MetaPageType, s as ModalProps, M as ModalWithHeaderProps, k as OtherLoginMethodType, O as OverviewInfo, T as PohItemType, V as PohZkpassParams, P as PopoverPositionType, t as PopoverProps, m as PopoverTypeType, R as RecommendLoginMethodType, X as RecoveryType, Y as ThemeType, q as UIProps, h as UserAssetToken, U as UserChainType, g as UserImportTokenType, Z as UserPopoverProps, _ as UserTransactionNextPageParams, $ as UserTransactionRecordType, f as UserTransactionType, i as WalletAssetMergeType, a0 as WalletAssetType, a1 as WalletChainType, W as WalletConfigType, a2 as WalletNFTType, p as WalletPanelProps, a3 as WalletReceiveMessageType, l as WalletType, u as useMatchWalletAssetsProps } from '../types-Bgd3Ac92.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, a4 as WalletStatusType, c as WalletType, u as useMatchWalletAssetsProps } from '../types-Bx_FJ11s.mjs';
2
2
  import 'react';
3
3
  import '@tanstack/react-query/src/types';
@@ -1,3 +1,3 @@
1
- export { A as Address, e as AnyObject, w as AppConfigType, x as AuthParams, y as BindInfoType, z as BindItemType, F as BindWalletParam, B as ButtonProps, C as CEXType, d as ChainType, G as DeepPartial, D as DrawerProps, E as EmailModalProps, J as EmbeddedWalletsParams, H as Hash, a as IEnvConfigType, K as IEnvName, N as ILoginWalletReq, I as IMatchEvents, b as ISocialLoginMethod, v as IconProps, r as InputProps, L as LocaleType, j as LoginBoxProps, c as LoginMethodType, o as LoginModalProps, n as LoginPanelProps, Q as MessageType, S as MetaPageType, s as ModalProps, M as ModalWithHeaderProps, k as OtherLoginMethodType, O as OverviewInfo, T as PohItemType, V as PohZkpassParams, P as PopoverPositionType, t as PopoverProps, m as PopoverTypeType, R as RecommendLoginMethodType, X as RecoveryType, Y as ThemeType, q as UIProps, h as UserAssetToken, U as UserChainType, g as UserImportTokenType, Z as UserPopoverProps, _ as UserTransactionNextPageParams, $ as UserTransactionRecordType, f as UserTransactionType, i as WalletAssetMergeType, a0 as WalletAssetType, a1 as WalletChainType, W as WalletConfigType, a2 as WalletNFTType, p as WalletPanelProps, a3 as WalletReceiveMessageType, l as WalletType, u as useMatchWalletAssetsProps } from '../types-Bgd3Ac92.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, a4 as WalletStatusType, c as WalletType, u as useMatchWalletAssetsProps } from '../types-Bx_FJ11s.js';
2
2
  import 'react';
3
3
  import '@tanstack/react-query/src/types';
@@ -418,5 +418,6 @@ type useMatchWalletAssetsProps = {
418
418
  importTokenOptions?: Partial<Omit<UseQueryOptions<UserImportTokenType[]>, 'queryKey' | 'queryFn'>>;
419
419
  assetListOptions?: Partial<Omit<UseQueryOptions<UserAssetToken[]>, 'queryKey' | 'queryFn'>>;
420
420
  };
421
+ type WalletStatusType = 'error' | 'success' | 'nonce' | 'signer' | 'connecting' | 'start';
421
422
 
422
- export { type UserTransactionRecordType as $, type Address as A, type ButtonProps as B, type CEXType as C, type DrawerProps as D, type EmailModalProps as E, type BindWalletParam as F, type DeepPartial as G, type Hash as H, type IMatchEvents as I, type EmbeddedWalletsParams as J, type IEnvName as K, type LocaleType as L, type ModalWithHeaderProps as M, type ILoginWalletReq as N, type OverviewInfo as O, type PopoverPositionType as P, type MessageType as Q, type RecommendLoginMethodType as R, type MetaPageType as S, type PohItemType as T, type UserChainType as U, type PohZkpassParams as V, type WalletConfigType as W, RecoveryType as X, type ThemeType as Y, type UserPopoverProps as Z, type UserTransactionNextPageParams as _, type IEnvConfigType as a, type WalletAssetType as a0, type WalletChainType as a1, type WalletNFTType as a2, type WalletReceiveMessageType as a3, type ISocialLoginMethod as b, type LoginMethodType as c, ChainType as d, type AnyObject as e, type UserTransactionType as f, type UserImportTokenType as g, type UserAssetToken as h, type WalletAssetMergeType as i, type LoginBoxProps as j, type OtherLoginMethodType as k, type WalletType as l, type PopoverTypeType as m, type LoginPanelProps as n, type LoginModalProps as o, type WalletPanelProps as p, type UIProps as q, type InputProps as r, type ModalProps as s, type PopoverProps as t, type useMatchWalletAssetsProps as u, type IconProps as v, type AppConfigType as w, type AuthParams as x, type BindInfoType as y, type BindItemType 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 WalletStatusType as a4, 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 };
@@ -418,5 +418,6 @@ type useMatchWalletAssetsProps = {
418
418
  importTokenOptions?: Partial<Omit<UseQueryOptions<UserImportTokenType[]>, 'queryKey' | 'queryFn'>>;
419
419
  assetListOptions?: Partial<Omit<UseQueryOptions<UserAssetToken[]>, 'queryKey' | 'queryFn'>>;
420
420
  };
421
+ type WalletStatusType = 'error' | 'success' | 'nonce' | 'signer' | 'connecting' | 'start';
421
422
 
422
- export { type UserTransactionRecordType as $, type Address as A, type ButtonProps as B, type CEXType as C, type DrawerProps as D, type EmailModalProps as E, type BindWalletParam as F, type DeepPartial as G, type Hash as H, type IMatchEvents as I, type EmbeddedWalletsParams as J, type IEnvName as K, type LocaleType as L, type ModalWithHeaderProps as M, type ILoginWalletReq as N, type OverviewInfo as O, type PopoverPositionType as P, type MessageType as Q, type RecommendLoginMethodType as R, type MetaPageType as S, type PohItemType as T, type UserChainType as U, type PohZkpassParams as V, type WalletConfigType as W, RecoveryType as X, type ThemeType as Y, type UserPopoverProps as Z, type UserTransactionNextPageParams as _, type IEnvConfigType as a, type WalletAssetType as a0, type WalletChainType as a1, type WalletNFTType as a2, type WalletReceiveMessageType as a3, type ISocialLoginMethod as b, type LoginMethodType as c, ChainType as d, type AnyObject as e, type UserTransactionType as f, type UserImportTokenType as g, type UserAssetToken as h, type WalletAssetMergeType as i, type LoginBoxProps as j, type OtherLoginMethodType as k, type WalletType as l, type PopoverTypeType as m, type LoginPanelProps as n, type LoginModalProps as o, type WalletPanelProps as p, type UIProps as q, type InputProps as r, type ModalProps as s, type PopoverProps as t, type useMatchWalletAssetsProps as u, type IconProps as v, type AppConfigType as w, type AuthParams as x, type BindInfoType as y, type BindItemType 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 WalletStatusType as a4, 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-DrEKzXYX.mjs';
2
- export { A as AlphaAvatar, D as Drawer, e as HashPanel, M as ModalDrawer, R as Radio, S as Switch } from '../index-CvVl_Xw1.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-Bpd2gBNh.mjs';
2
+ export { A as AlphaAvatar, D as Drawer, e as HashPanel, M as ModalDrawer, R as Radio, S as Switch } from '../index-wqqEUufi.mjs';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react';
5
- import '../types-Bgd3Ac92.mjs';
5
+ import '../types-Bx_FJ11s.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-Cul4qlZl.js';
2
- export { A as AlphaAvatar, D as Drawer, e as HashPanel, M as ModalDrawer, R as Radio, S as Switch } from '../index-lKJjj0w4.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-DaXXoRxr.js';
2
+ export { A as AlphaAvatar, D as Drawer, e as HashPanel, M as ModalDrawer, R as Radio, S as Switch } from '../index-BhU3hF7y.js';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react';
5
- import '../types-Bgd3Ac92.js';
5
+ import '../types-Bx_FJ11s.js';
6
6
  import '@tanstack/react-query/src/types';
7
7
  import 'viem';
@@ -93,7 +93,13 @@ function LoginContent() {
93
93
  {
94
94
  Object.keys(LOGIN_METHOD_MAP).map((method) => {
95
95
  return <button key={method} className={`bg-gray-300 p-1 capitalize rounded`}
96
- onClick={() => getAuthInfo(method as keyof typeof LOGIN_METHOD_MAP)}>{LOGIN_METHOD_MAP[method as keyof typeof LOGIN_METHOD_MAP]}
96
+ onClick={async () => {
97
+ try {
98
+ await getAuthInfo(method as keyof typeof LOGIN_METHOD_MAP)
99
+ } catch (error: any) {
100
+ console.error(error, typeof error, error.toString())
101
+ }
102
+ }}>{LOGIN_METHOD_MAP[method as keyof typeof LOGIN_METHOD_MAP]}
97
103
  </button>
98
104
  })
99
105
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@matchain/matchid-sdk-react",
3
- "version": "0.1.53-alpha.3",
3
+ "version": "0.1.53-alpha.5",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "exports": {
@@ -66,6 +66,7 @@
66
66
  "react-dom": "^18.0.0"
67
67
  },
68
68
  "dependencies": {
69
+ "@rainbow-me/rainbowkit": "^2.2.4",
69
70
  "@tanstack/react-query": "^5.62.11",
70
71
  "@tonconnect/ui-react": "^2.0.11",
71
72
  "axios": "^1.7.0",