@matchain/matchid-sdk-react 0.1.53-alpha.6 → 0.1.53-alpha.7

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 (57) 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-V2S54LGG.mjs → chunk-AYMVU44P.mjs} +44 -2
  4. package/dist/chunk-AYMVU44P.mjs.map +1 -0
  5. package/dist/{chunk-Z7DMYFH5.mjs → chunk-W7CCPGOT.mjs} +5553 -5375
  6. package/dist/chunk-W7CCPGOT.mjs.map +1 -0
  7. package/dist/components/index.d.mts +3 -3
  8. package/dist/components/index.d.ts +3 -3
  9. package/dist/components/index.js +421 -274
  10. package/dist/components/index.js.map +1 -1
  11. package/dist/components/index.mjs +6 -4
  12. package/dist/hooks/api/index.d.mts +2 -2
  13. package/dist/hooks/api/index.d.ts +2 -2
  14. package/dist/hooks/api/index.js +103 -33
  15. package/dist/hooks/api/index.js.map +1 -1
  16. package/dist/hooks/api/index.mjs +7 -7
  17. package/dist/hooks/index.d.mts +2 -2
  18. package/dist/hooks/index.d.ts +2 -2
  19. package/dist/hooks/index.js +180 -159
  20. package/dist/hooks/index.js.map +1 -1
  21. package/dist/hooks/index.mjs +4 -4
  22. package/dist/{index-Dt92N6yZ.d.ts → index-BIvPr81B.d.ts} +18 -3
  23. package/dist/{index-D_UNctDI.d.mts → index-BXNFULAw.d.mts} +10 -4
  24. package/dist/{index-CFqk8eNo.d.ts → index-BkWS_v10.d.mts} +1 -1
  25. package/dist/{index-wqqEUufi.d.mts → index-C2-EMz0t.d.ts} +25 -5
  26. package/dist/{index-DaXXoRxr.d.ts → index-CZHjwqDb.d.ts} +1 -1
  27. package/dist/{index-C5StsjWY.d.ts → index-DDCyj-Fl.d.ts} +10 -4
  28. package/dist/{index-BhU3hF7y.d.ts → index-DKFnMFMm.d.mts} +25 -5
  29. package/dist/{index-Bpd2gBNh.d.mts → index-DYkN9eDY.d.mts} +1 -1
  30. package/dist/{index-W6yjuOKT.d.mts → index-TVbqpk9T.d.mts} +18 -3
  31. package/dist/{index-D1QeVZyN.d.ts → index-TsJwrYwh.d.mts} +3 -2
  32. package/dist/{index-mxbJ8CFx.d.mts → index-tFT-63LO.d.ts} +1 -1
  33. package/dist/{index-BaYTgL99.d.mts → index-uhLehOUk.d.ts} +3 -2
  34. package/dist/index.css +115 -15
  35. package/dist/index.d.mts +7 -7
  36. package/dist/index.d.ts +7 -7
  37. package/dist/index.js +560 -412
  38. package/dist/index.js.map +1 -1
  39. package/dist/index.mjs +5 -7
  40. package/dist/types/index.d.mts +1 -1
  41. package/dist/types/index.d.ts +1 -1
  42. package/dist/{types-Bx_FJ11s.d.mts → types-i_ugbm5B.d.mts} +7 -1
  43. package/dist/{types-Bx_FJ11s.d.ts → types-i_ugbm5B.d.ts} +7 -1
  44. package/dist/ui/index.d.mts +3 -3
  45. package/dist/ui/index.d.ts +3 -3
  46. package/dist/ui/index.js +44 -2
  47. package/dist/ui/index.js.map +1 -1
  48. package/dist/ui/index.mjs +7 -3
  49. package/example/src/App.tsx +30 -7
  50. package/example/src/pages/Contact/index.tsx +4 -0
  51. package/example/src/pages/UI/components/Tabs.tsx +18 -0
  52. package/example/src/pages/UI/index.tsx +2 -0
  53. package/package.json +4 -1
  54. package/dist/chunk-UDXKFDXO.mjs +0 -97
  55. package/dist/chunk-UDXKFDXO.mjs.map +0 -1
  56. package/dist/chunk-V2S54LGG.mjs.map +0 -1
  57. package/dist/chunk-Z7DMYFH5.mjs.map +0 -1
package/dist/index.mjs CHANGED
@@ -1,27 +1,25 @@
1
- import {
2
- api_exports
3
- } from "./chunk-UDXKFDXO.mjs";
4
1
  import {
5
2
  MatchProvider,
6
3
  ModalProvider,
7
4
  ToastProvider,
5
+ api_exports,
8
6
  components_exports,
9
7
  hooks_exports,
10
8
  useMatch
11
- } from "./chunk-Z7DMYFH5.mjs";
9
+ } from "./chunk-W7CCPGOT.mjs";
12
10
  import {
13
11
  types_exports
14
12
  } from "./chunk-HBOS3RBL.mjs";
15
13
  import "./chunk-UA6XHZHX.mjs";
16
- import "./chunk-OCQ2AIM3.mjs";
17
14
  import {
18
15
  ui_exports
19
- } from "./chunk-V2S54LGG.mjs";
20
- import "./chunk-3USZ4ZZY.mjs";
16
+ } from "./chunk-AYMVU44P.mjs";
17
+ import "./chunk-OCQ2AIM3.mjs";
21
18
  import {
22
19
  chains_exports
23
20
  } from "./chunk-3CR66BEX.mjs";
24
21
  import "./chunk-JX73EY6V.mjs";
22
+ import "./chunk-3USZ4ZZY.mjs";
25
23
  import "./chunk-J5LGTIGS.mjs";
26
24
  export {
27
25
  api_exports as Api,
@@ -1,3 +1,3 @@
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';
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, v as ContactType, D as DeepPartial, w as DrawerProps, E as EmailModalProps, x as EmbeddedWalletsParams, H as Hash, a as IEnvConfigType, y as IEnvName, z as ILoginWalletReq, I as IMatchEvents, h as ISocialLoginMethod, F as IconProps, G as InputProps, L as LocaleType, b as LoginBoxProps, j as LoginMethodType, f as LoginModalProps, e as LoginPanelProps, J as MessageType, K as MetaPageType, N as ModalProps, M as ModalWithHeaderProps, O as OtherLoginMethodType, i as OverviewInfo, Q as PohItemType, S as PohZkpassParams, P as PopoverPositionType, T as PopoverProps, d as PopoverTypeType, R as RecommendLoginMethodType, V as RecoveryType, X as ThemeType, Y as UIProps, o as UserAssetToken, U as UserChainType, n as UserImportTokenType, Z as UserPopoverProps, _ as UserTransactionNextPageParams, $ as UserTransactionRecordType, m as UserTransactionType, g as WalletAssetMergeType, a0 as WalletAssetType, a1 as WalletChainType, W as WalletConfigType, a2 as WalletNFTType, a3 as WalletPanelProps, a4 as WalletReceiveMessageType, a5 as WalletStatusType, c as WalletType, u as useMatchWalletAssetsProps } from '../types-i_ugbm5B.mjs';
2
2
  import 'react';
3
3
  import '@tanstack/react-query/src/types';
@@ -1,3 +1,3 @@
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';
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, v as ContactType, D as DeepPartial, w as DrawerProps, E as EmailModalProps, x as EmbeddedWalletsParams, H as Hash, a as IEnvConfigType, y as IEnvName, z as ILoginWalletReq, I as IMatchEvents, h as ISocialLoginMethod, F as IconProps, G as InputProps, L as LocaleType, b as LoginBoxProps, j as LoginMethodType, f as LoginModalProps, e as LoginPanelProps, J as MessageType, K as MetaPageType, N as ModalProps, M as ModalWithHeaderProps, O as OtherLoginMethodType, i as OverviewInfo, Q as PohItemType, S as PohZkpassParams, P as PopoverPositionType, T as PopoverProps, d as PopoverTypeType, R as RecommendLoginMethodType, V as RecoveryType, X as ThemeType, Y as UIProps, o as UserAssetToken, U as UserChainType, n as UserImportTokenType, Z as UserPopoverProps, _ as UserTransactionNextPageParams, $ as UserTransactionRecordType, m as UserTransactionType, g as WalletAssetMergeType, a0 as WalletAssetType, a1 as WalletChainType, W as WalletConfigType, a2 as WalletNFTType, a3 as WalletPanelProps, a4 as WalletReceiveMessageType, a5 as WalletStatusType, c as WalletType, u as useMatchWalletAssetsProps } from '../types-i_ugbm5B.js';
2
2
  import 'react';
3
3
  import '@tanstack/react-query/src/types';
@@ -419,5 +419,11 @@ type useMatchWalletAssetsProps = {
419
419
  assetListOptions?: Partial<Omit<UseQueryOptions<UserAssetToken[]>, 'queryKey' | 'queryFn'>>;
420
420
  };
421
421
  type WalletStatusType = 'error' | 'success' | 'nonce' | 'signer' | 'connecting' | 'start';
422
+ type ContactType = {
423
+ address: string;
424
+ avatar?: string;
425
+ name?: string;
426
+ did: string;
427
+ };
422
428
 
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 };
429
+ export { type UserTransactionRecordType as $, type Address as A, type ButtonProps as B, type CEXType as C, type DeepPartial as D, type EmailModalProps as E, type IconProps as F, type InputProps as G, type Hash as H, type IMatchEvents as I, type MessageType as J, type MetaPageType as K, type LocaleType as L, type ModalWithHeaderProps as M, type ModalProps as N, type OtherLoginMethodType as O, type PopoverPositionType as P, type PohItemType as Q, type RecommendLoginMethodType as R, type PohZkpassParams as S, type PopoverProps as T, type UserChainType as U, RecoveryType as V, type WalletConfigType as W, type ThemeType as X, type UIProps 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 WalletPanelProps as a3, type WalletReceiveMessageType as a4, type WalletStatusType as a5, 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 ContactType as v, type DrawerProps as w, type EmbeddedWalletsParams as x, type IEnvName as y, type ILoginWalletReq as z };
@@ -419,5 +419,11 @@ type useMatchWalletAssetsProps = {
419
419
  assetListOptions?: Partial<Omit<UseQueryOptions<UserAssetToken[]>, 'queryKey' | 'queryFn'>>;
420
420
  };
421
421
  type WalletStatusType = 'error' | 'success' | 'nonce' | 'signer' | 'connecting' | 'start';
422
+ type ContactType = {
423
+ address: string;
424
+ avatar?: string;
425
+ name?: string;
426
+ did: string;
427
+ };
422
428
 
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 };
429
+ export { type UserTransactionRecordType as $, type Address as A, type ButtonProps as B, type CEXType as C, type DeepPartial as D, type EmailModalProps as E, type IconProps as F, type InputProps as G, type Hash as H, type IMatchEvents as I, type MessageType as J, type MetaPageType as K, type LocaleType as L, type ModalWithHeaderProps as M, type ModalProps as N, type OtherLoginMethodType as O, type PopoverPositionType as P, type PohItemType as Q, type RecommendLoginMethodType as R, type PohZkpassParams as S, type PopoverProps as T, type UserChainType as U, RecoveryType as V, type WalletConfigType as W, type ThemeType as X, type UIProps 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 WalletPanelProps as a3, type WalletReceiveMessageType as a4, type WalletStatusType as a5, 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 ContactType as v, type DrawerProps as w, type EmbeddedWalletsParams as x, type IEnvName as y, type ILoginWalletReq 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-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';
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-DYkN9eDY.mjs';
2
+ export { A as AlphaAvatar, D as Drawer, e as HashPanel, M as ModalDrawer, R as Radio, a as Skeleton, S as Switch, T as Tabs } from '../index-DKFnMFMm.mjs';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react';
5
- import '../types-Bx_FJ11s.mjs';
5
+ import '../types-i_ugbm5B.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-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';
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-CZHjwqDb.js';
2
+ export { A as AlphaAvatar, D as Drawer, e as HashPanel, M as ModalDrawer, R as Radio, a as Skeleton, S as Switch, T as Tabs } from '../index-C2-EMz0t.js';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react';
5
- import '../types-Bx_FJ11s.js';
5
+ import '../types-i_ugbm5B.js';
6
6
  import '@tanstack/react-query/src/types';
7
7
  import 'viem';
package/dist/ui/index.js CHANGED
@@ -32,7 +32,9 @@ __export(ui_exports, {
32
32
  Overlay: () => Overlay,
33
33
  Popover: () => Popover,
34
34
  Radio: () => Radio,
35
- Switch: () => Switch
35
+ Skeleton: () => Skeleton_default,
36
+ Switch: () => Switch,
37
+ Tabs: () => Tabs
36
38
  });
37
39
  module.exports = __toCommonJS(ui_exports);
38
40
 
@@ -753,6 +755,44 @@ function Radio({
753
755
  height: Math.floor(size * 0.7)
754
756
  } }) });
755
757
  }
758
+
759
+ // src/ui/Skeleton/index.tsx
760
+ var import_jsx_runtime62 = require("react/jsx-runtime");
761
+ var Skeleton = ({
762
+ style = {},
763
+ className = "",
764
+ width = 40,
765
+ height = 40,
766
+ radius = 5,
767
+ loading = true,
768
+ children
769
+ }) => {
770
+ if (!loading) {
771
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_jsx_runtime62.Fragment, { children });
772
+ }
773
+ const skeletonStyle = {
774
+ width,
775
+ height,
776
+ borderRadius: radius,
777
+ ...style
778
+ };
779
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
780
+ "div",
781
+ {
782
+ className: "matchid-skeleton " + className,
783
+ style: skeletonStyle
784
+ }
785
+ );
786
+ };
787
+ var Skeleton_default = Skeleton;
788
+
789
+ // src/ui/Tabs/index.tsx
790
+ var import_jsx_runtime63 = require("react/jsx-runtime");
791
+ function Tabs(props) {
792
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: `matchid-tabs`, children: props.tabs.map((tab, index) => {
793
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { onClick: () => props.setActiveTab(index), className: `matchid-tab ${props.activeTab === index ? "matchid-tab-active" : ""}`, children: tab }, index);
794
+ }) });
795
+ }
756
796
  // Annotate the CommonJS export names for ESM import in node:
757
797
  0 && (module.exports = {
758
798
  AlphaAvatar,
@@ -767,6 +807,8 @@ function Radio({
767
807
  Overlay,
768
808
  Popover,
769
809
  Radio,
770
- Switch
810
+ Skeleton,
811
+ Switch,
812
+ Tabs
771
813
  });
772
814
  //# sourceMappingURL=index.js.map