@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.
- package/dist/assets/icon/index.d.mts +1 -1
- package/dist/assets/icon/index.d.ts +1 -1
- package/dist/{chunk-V2S54LGG.mjs → chunk-AYMVU44P.mjs} +44 -2
- package/dist/chunk-AYMVU44P.mjs.map +1 -0
- package/dist/{chunk-Z7DMYFH5.mjs → chunk-W7CCPGOT.mjs} +5553 -5375
- package/dist/chunk-W7CCPGOT.mjs.map +1 -0
- package/dist/components/index.d.mts +3 -3
- package/dist/components/index.d.ts +3 -3
- package/dist/components/index.js +421 -274
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +6 -4
- package/dist/hooks/api/index.d.mts +2 -2
- package/dist/hooks/api/index.d.ts +2 -2
- package/dist/hooks/api/index.js +103 -33
- package/dist/hooks/api/index.js.map +1 -1
- package/dist/hooks/api/index.mjs +7 -7
- package/dist/hooks/index.d.mts +2 -2
- package/dist/hooks/index.d.ts +2 -2
- package/dist/hooks/index.js +180 -159
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +4 -4
- package/dist/{index-Dt92N6yZ.d.ts → index-BIvPr81B.d.ts} +18 -3
- package/dist/{index-D_UNctDI.d.mts → index-BXNFULAw.d.mts} +10 -4
- package/dist/{index-CFqk8eNo.d.ts → index-BkWS_v10.d.mts} +1 -1
- package/dist/{index-wqqEUufi.d.mts → index-C2-EMz0t.d.ts} +25 -5
- package/dist/{index-DaXXoRxr.d.ts → index-CZHjwqDb.d.ts} +1 -1
- package/dist/{index-C5StsjWY.d.ts → index-DDCyj-Fl.d.ts} +10 -4
- package/dist/{index-BhU3hF7y.d.ts → index-DKFnMFMm.d.mts} +25 -5
- package/dist/{index-Bpd2gBNh.d.mts → index-DYkN9eDY.d.mts} +1 -1
- package/dist/{index-W6yjuOKT.d.mts → index-TVbqpk9T.d.mts} +18 -3
- package/dist/{index-D1QeVZyN.d.ts → index-TsJwrYwh.d.mts} +3 -2
- package/dist/{index-mxbJ8CFx.d.mts → index-tFT-63LO.d.ts} +1 -1
- package/dist/{index-BaYTgL99.d.mts → index-uhLehOUk.d.ts} +3 -2
- package/dist/index.css +115 -15
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +560 -412
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -7
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/{types-Bx_FJ11s.d.mts → types-i_ugbm5B.d.mts} +7 -1
- package/dist/{types-Bx_FJ11s.d.ts → types-i_ugbm5B.d.ts} +7 -1
- package/dist/ui/index.d.mts +3 -3
- package/dist/ui/index.d.ts +3 -3
- package/dist/ui/index.js +44 -2
- package/dist/ui/index.js.map +1 -1
- package/dist/ui/index.mjs +7 -3
- package/example/src/App.tsx +30 -7
- package/example/src/pages/Contact/index.tsx +4 -0
- package/example/src/pages/UI/components/Tabs.tsx +18 -0
- package/example/src/pages/UI/index.tsx +2 -0
- package/package.json +4 -1
- package/dist/chunk-UDXKFDXO.mjs +0 -97
- package/dist/chunk-UDXKFDXO.mjs.map +0 -1
- package/dist/chunk-V2S54LGG.mjs.map +0 -1
- 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-
|
|
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-
|
|
20
|
-
import "./chunk-
|
|
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,
|
package/dist/types/index.d.mts
CHANGED
|
@@ -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,
|
|
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';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -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,
|
|
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
|
|
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
|
|
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 };
|
package/dist/ui/index.d.mts
CHANGED
|
@@ -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-
|
|
2
|
-
export { A as AlphaAvatar, D as Drawer, e as HashPanel, M as ModalDrawer, R as Radio, S as Switch } from '../index-
|
|
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-
|
|
5
|
+
import '../types-i_ugbm5B.mjs';
|
|
6
6
|
import '@tanstack/react-query/src/types';
|
|
7
7
|
import 'viem';
|
package/dist/ui/index.d.ts
CHANGED
|
@@ -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-
|
|
2
|
-
export { A as AlphaAvatar, D as Drawer, e as HashPanel, M as ModalDrawer, R as Radio, S as Switch } from '../index-
|
|
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-
|
|
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
|
-
|
|
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
|
-
|
|
810
|
+
Skeleton,
|
|
811
|
+
Switch,
|
|
812
|
+
Tabs
|
|
771
813
|
});
|
|
772
814
|
//# sourceMappingURL=index.js.map
|