@matchain/matchid-sdk-react 0.1.56-alpha.12 → 0.1.56-alpha.13

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 (56) hide show
  1. package/dist/api.d.mts +2 -2
  2. package/dist/api.d.ts +2 -2
  3. package/dist/api.js +83 -44
  4. package/dist/api.js.map +1 -1
  5. package/dist/api.mjs +2 -2
  6. package/dist/{chunk-44JQQ34F.mjs → chunk-7K4E64WH.mjs} +2 -2
  7. package/dist/{chunk-DUSDBXBT.mjs → chunk-RPATABCS.mjs} +164 -124
  8. package/dist/chunk-RPATABCS.mjs.map +1 -0
  9. package/dist/components.d.mts +3 -3
  10. package/dist/components.d.ts +3 -3
  11. package/dist/components.js +151 -122
  12. package/dist/components.js.map +1 -1
  13. package/dist/components.mjs +1 -1
  14. package/dist/hooks.d.mts +2 -2
  15. package/dist/hooks.d.ts +2 -2
  16. package/dist/hooks.js +39 -0
  17. package/dist/hooks.js.map +1 -1
  18. package/dist/hooks.mjs +1 -1
  19. package/dist/icon.d.mts +2 -2
  20. package/dist/icon.d.ts +2 -2
  21. package/dist/{index-DxHhOW24.d.mts → index-BLjGmf9p.d.mts} +2 -2
  22. package/dist/{index-BNqdFiOo.d.ts → index-BXhXRggh.d.ts} +1 -1
  23. package/dist/{index-uB9jBjgs.d.mts → index-Bjb30oE3.d.mts} +35 -31
  24. package/dist/{index-hz9v-CNJ.d.ts → index-CPnKc6o4.d.ts} +35 -31
  25. package/dist/{index-CcVHENNv.d.ts → index-CpJtux-G.d.ts} +1 -1
  26. package/dist/{index-DVlulZhE.d.mts → index-CqHlL6ue.d.mts} +3 -3
  27. package/dist/{index-DkijpM5Q.d.mts → index-CzCkxwOm.d.mts} +1 -1
  28. package/dist/{index-84CqVi2I.d.mts → index-DCyE39bg.d.mts} +1 -1
  29. package/dist/{index-BctnHnJp.d.ts → index-DGsB7f2H.d.ts} +1 -1
  30. package/dist/{index-Cqdz_5bE.d.ts → index-DQYg6bEA.d.ts} +2 -2
  31. package/dist/{index-qmC4zt6V.d.ts → index-DZpXCByF.d.ts} +3 -3
  32. package/dist/{index-Car1jFyN.d.mts → index-De8efmdb.d.mts} +1 -1
  33. package/dist/{index-BqI0PEIi.d.mts → index-DuCefmJ0.d.mts} +1 -1
  34. package/dist/{index-CvzpMw3N.d.ts → index-m2bn_W3Y.d.ts} +1 -1
  35. package/dist/index.d.mts +8 -8
  36. package/dist/index.d.ts +8 -8
  37. package/dist/index.js +163 -123
  38. package/dist/index.js.map +1 -1
  39. package/dist/index.mjs +2 -2
  40. package/dist/{types-BrVeC0c8.d.mts → types-C8FLH1yn.d.mts} +1 -0
  41. package/dist/{types-BrVeC0c8.d.ts → types-C8FLH1yn.d.ts} +1 -0
  42. package/dist/types.d.mts +1 -1
  43. package/dist/types.d.ts +1 -1
  44. package/dist/ui.d.mts +3 -3
  45. package/dist/ui.d.ts +3 -3
  46. package/dist/ui.js +6 -0
  47. package/dist/ui.js.map +1 -1
  48. package/dist/ui.mjs +1 -1
  49. package/example/src/App.tsx +61 -61
  50. package/example/src/config/index.ts +8 -6
  51. package/example/src/pages/Home.tsx +15 -15
  52. package/example/src/store/useLocalStore.ts +19 -19
  53. package/example/yarn.lock +1384 -0
  54. package/package.json +1 -1
  55. package/dist/chunk-DUSDBXBT.mjs.map +0 -1
  56. /package/dist/{chunk-44JQQ34F.mjs.map → chunk-7K4E64WH.mjs.map} +0 -0
package/dist/index.mjs CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-HBOS3RBL.mjs";
7
7
  import {
8
8
  api_exports
9
- } from "./chunk-44JQQ34F.mjs";
9
+ } from "./chunk-7K4E64WH.mjs";
10
10
  import {
11
11
  MatchProvider,
12
12
  ModalProvider,
@@ -16,7 +16,7 @@ import {
16
16
  ui_exports,
17
17
  useMatch,
18
18
  wagmiConfig
19
- } from "./chunk-DUSDBXBT.mjs";
19
+ } from "./chunk-RPATABCS.mjs";
20
20
  import "./chunk-UA6XHZHX.mjs";
21
21
  import "./chunk-IZOOVZAD.mjs";
22
22
  import {
@@ -185,6 +185,7 @@ type LoginPanelProps = {
185
185
  } & LoginBoxProps;
186
186
  type LoginModalProps = LoginPanelProps & ModalProps;
187
187
  type EmailModalProps = ModalProps & {
188
+ type?: 'login' | 'bind';
188
189
  onClose?: () => void;
189
190
  onBack?: () => void;
190
191
  onLogin?: () => void;
@@ -185,6 +185,7 @@ type LoginPanelProps = {
185
185
  } & LoginBoxProps;
186
186
  type LoginModalProps = LoginPanelProps & ModalProps;
187
187
  type EmailModalProps = ModalProps & {
188
+ type?: 'login' | 'bind';
188
189
  onClose?: () => void;
189
190
  onBack?: () => void;
190
191
  onLogin?: () => void;
package/dist/types.d.mts CHANGED
@@ -1,3 +1,3 @@
1
- export { A as Address, q as AnyObject, Q as AppConfigType, S as AuthParams, G as BindInfoType, F as BindItemType, T as BindWalletParam, B as ButtonProps, C as CEXType, o as ChainType, V as DeepPartial, D as DrawerProps, E as EmailModalProps, X as EmbeddedWalletsParams, H as Hash, a as IEnvConfigType, Y as IEnvName, Z as ILoginWalletReq, I as IMatchEvents, l as ISocialLoginMethod, v as IconProps, i as InputProps, L as LocaleType, b as LoginBoxProps, n as LoginMethodType, f as LoginModalProps, e as LoginPanelProps, _ as MessageType, z as MetaPageType, j as ModalProps, M as ModalWithHeaderProps, O as OtherLoginMethodType, m as OverviewInfo, J as PohItemType, w as PohZkpassParams, P as PopoverPositionType, k as PopoverProps, d as PopoverTypeType, R as RecommendLoginMethodType, $ as RecoveryType, a0 as ThemeType, U as UIProps, t as UserAssetToken, p as UserChainType, s as UserImportTokenType, a1 as UserPopoverProps, x as UserTransactionNextPageParams, a2 as UserTransactionRecordType, r as UserTransactionType, g as WalletAssetMergeType, y as WalletAssetType, K as WalletChainType, W as WalletConfigType, N as WalletNFTType, h as WalletPanelProps, a3 as WalletReceiveMessageType, a4 as WalletStatusType, c as WalletType, u as useMatchWalletAssetsProps } from './types-BrVeC0c8.mjs';
1
+ export { A as Address, q as AnyObject, Q as AppConfigType, S as AuthParams, G as BindInfoType, F as BindItemType, T as BindWalletParam, B as ButtonProps, C as CEXType, o as ChainType, V as DeepPartial, D as DrawerProps, E as EmailModalProps, X as EmbeddedWalletsParams, H as Hash, a as IEnvConfigType, Y as IEnvName, Z as ILoginWalletReq, I as IMatchEvents, l as ISocialLoginMethod, v as IconProps, i as InputProps, L as LocaleType, b as LoginBoxProps, n as LoginMethodType, f as LoginModalProps, e as LoginPanelProps, _ as MessageType, z as MetaPageType, j as ModalProps, M as ModalWithHeaderProps, O as OtherLoginMethodType, m as OverviewInfo, J as PohItemType, w as PohZkpassParams, P as PopoverPositionType, k as PopoverProps, d as PopoverTypeType, R as RecommendLoginMethodType, $ as RecoveryType, a0 as ThemeType, U as UIProps, t as UserAssetToken, p as UserChainType, s as UserImportTokenType, a1 as UserPopoverProps, x as UserTransactionNextPageParams, a2 as UserTransactionRecordType, r as UserTransactionType, g as WalletAssetMergeType, y as WalletAssetType, K as WalletChainType, W as WalletConfigType, N as WalletNFTType, h as WalletPanelProps, a3 as WalletReceiveMessageType, a4 as WalletStatusType, c as WalletType, u as useMatchWalletAssetsProps } from './types-C8FLH1yn.mjs';
2
2
  import 'react';
3
3
  import '@tanstack/react-query/src/types';
package/dist/types.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export { A as Address, q as AnyObject, Q as AppConfigType, S as AuthParams, G as BindInfoType, F as BindItemType, T as BindWalletParam, B as ButtonProps, C as CEXType, o as ChainType, V as DeepPartial, D as DrawerProps, E as EmailModalProps, X as EmbeddedWalletsParams, H as Hash, a as IEnvConfigType, Y as IEnvName, Z as ILoginWalletReq, I as IMatchEvents, l as ISocialLoginMethod, v as IconProps, i as InputProps, L as LocaleType, b as LoginBoxProps, n as LoginMethodType, f as LoginModalProps, e as LoginPanelProps, _ as MessageType, z as MetaPageType, j as ModalProps, M as ModalWithHeaderProps, O as OtherLoginMethodType, m as OverviewInfo, J as PohItemType, w as PohZkpassParams, P as PopoverPositionType, k as PopoverProps, d as PopoverTypeType, R as RecommendLoginMethodType, $ as RecoveryType, a0 as ThemeType, U as UIProps, t as UserAssetToken, p as UserChainType, s as UserImportTokenType, a1 as UserPopoverProps, x as UserTransactionNextPageParams, a2 as UserTransactionRecordType, r as UserTransactionType, g as WalletAssetMergeType, y as WalletAssetType, K as WalletChainType, W as WalletConfigType, N as WalletNFTType, h as WalletPanelProps, a3 as WalletReceiveMessageType, a4 as WalletStatusType, c as WalletType, u as useMatchWalletAssetsProps } from './types-BrVeC0c8.js';
1
+ export { A as Address, q as AnyObject, Q as AppConfigType, S as AuthParams, G as BindInfoType, F as BindItemType, T as BindWalletParam, B as ButtonProps, C as CEXType, o as ChainType, V as DeepPartial, D as DrawerProps, E as EmailModalProps, X as EmbeddedWalletsParams, H as Hash, a as IEnvConfigType, Y as IEnvName, Z as ILoginWalletReq, I as IMatchEvents, l as ISocialLoginMethod, v as IconProps, i as InputProps, L as LocaleType, b as LoginBoxProps, n as LoginMethodType, f as LoginModalProps, e as LoginPanelProps, _ as MessageType, z as MetaPageType, j as ModalProps, M as ModalWithHeaderProps, O as OtherLoginMethodType, m as OverviewInfo, J as PohItemType, w as PohZkpassParams, P as PopoverPositionType, k as PopoverProps, d as PopoverTypeType, R as RecommendLoginMethodType, $ as RecoveryType, a0 as ThemeType, U as UIProps, t as UserAssetToken, p as UserChainType, s as UserImportTokenType, a1 as UserPopoverProps, x as UserTransactionNextPageParams, a2 as UserTransactionRecordType, r as UserTransactionType, g as WalletAssetMergeType, y as WalletAssetType, K as WalletChainType, W as WalletConfigType, N as WalletNFTType, h as WalletPanelProps, a3 as WalletReceiveMessageType, a4 as WalletStatusType, c as WalletType, u as useMatchWalletAssetsProps } from './types-C8FLH1yn.js';
2
2
  import 'react';
3
3
  import '@tanstack/react-query/src/types';
package/dist/ui.d.mts CHANGED
@@ -1,7 +1,7 @@
1
- export { B as Button, C as ConfirmModal, F as Field, I as Input, M as Modal, a as ModalWithHeader, O as Overlay, P as Popover } from './index-BqI0PEIi.mjs';
2
- export { A as AlphaAvatar, C as Checkbox, D as Drawer, e as HashPanel, L as Lottie, M as ModalDrawer, R as Radio, a as Skeleton, S as Switch, T as Tabs } from './index-DxHhOW24.mjs';
1
+ export { B as Button, C as ConfirmModal, F as Field, I as Input, M as Modal, a as ModalWithHeader, O as Overlay, P as Popover } from './index-DuCefmJ0.mjs';
2
+ export { A as AlphaAvatar, C as Checkbox, D as Drawer, e as HashPanel, L as Lottie, M as ModalDrawer, R as Radio, a as Skeleton, S as Switch, T as Tabs } from './index-BLjGmf9p.mjs';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react';
5
- import './types-BrVeC0c8.mjs';
5
+ import './types-C8FLH1yn.mjs';
6
6
  import '@tanstack/react-query/src/types';
7
7
  import 'viem';
package/dist/ui.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- export { B as Button, C as ConfirmModal, F as Field, I as Input, M as Modal, a as ModalWithHeader, O as Overlay, P as Popover } from './index-CvzpMw3N.js';
2
- export { A as AlphaAvatar, C as Checkbox, D as Drawer, e as HashPanel, L as Lottie, M as ModalDrawer, R as Radio, a as Skeleton, S as Switch, T as Tabs } from './index-Cqdz_5bE.js';
1
+ export { B as Button, C as ConfirmModal, F as Field, I as Input, M as Modal, a as ModalWithHeader, O as Overlay, P as Popover } from './index-m2bn_W3Y.js';
2
+ export { A as AlphaAvatar, C as Checkbox, D as Drawer, e as HashPanel, L as Lottie, M as ModalDrawer, R as Radio, a as Skeleton, S as Switch, T as Tabs } from './index-DQYg6bEA.js';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react';
5
- import './types-BrVeC0c8.js';
5
+ import './types-C8FLH1yn.js';
6
6
  import '@tanstack/react-query/src/types';
7
7
  import 'viem';
package/dist/ui.js CHANGED
@@ -1064,6 +1064,12 @@ var useWalletModalStore = (0, import_zustand5.create)((set) => ({
1064
1064
  open: (type, methods = DEFAULT_WALLET_METHODS) => set({ isOpen: true, type, methods }),
1065
1065
  close: () => set({ isOpen: false })
1066
1066
  }));
1067
+ var useEmailModalStore = (0, import_zustand5.create)((set) => ({
1068
+ isOpen: false,
1069
+ type: "login",
1070
+ open: (type) => set({ isOpen: true, type }),
1071
+ close: () => set({ isOpen: false })
1072
+ }));
1067
1073
 
1068
1074
  // src/components/CEXBindModal/index.tsx
1069
1075
  var import_react15 = require("react");