@matchain/matchid-sdk-react 0.1.48-alpha.10 → 0.1.48-alpha.3
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 +2 -11
- package/dist/assets/icon/index.d.ts +2 -11
- package/dist/assets/icon/index.js +2 -93
- package/dist/assets/icon/index.js.map +1 -1
- package/dist/assets/icon/index.mjs +1 -9
- package/dist/{chunk-LHNKZISB.mjs → chunk-A5D3NKTK.mjs} +4 -91
- package/dist/chunk-A5D3NKTK.mjs.map +1 -0
- package/dist/{chunk-MXBUBTKR.mjs → chunk-LNSJ3ZXG.mjs} +5 -11
- package/dist/chunk-LNSJ3ZXG.mjs.map +1 -0
- package/dist/{chunk-YGFOHQU6.mjs → chunk-LPQROHSB.mjs} +2 -2
- package/dist/{chunk-2LRK5L4Z.mjs → chunk-V3WGYFWQ.mjs} +449 -1399
- package/dist/chunk-V3WGYFWQ.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 +448 -1689
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +3 -12
- package/dist/hooks/api/index.d.mts +2 -2
- package/dist/hooks/api/index.d.ts +2 -2
- package/dist/hooks/api/index.js +185 -265
- package/dist/hooks/api/index.js.map +1 -1
- package/dist/hooks/api/index.mjs +4 -5
- package/dist/hooks/index.d.mts +2 -3
- package/dist/hooks/index.d.ts +2 -3
- package/dist/hooks/index.js +177 -1516
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +3 -10
- package/dist/{index-NzZ-mfGZ.d.mts → index-B-s1k4Da.d.mts} +2 -5
- package/dist/{index-BxPB2IQ2.d.ts → index-B8DYrhSW.d.mts} +8 -29
- package/dist/{index-DAEvA2P4.d.ts → index-BHvCA7F9.d.ts} +4 -28
- package/dist/{index-BEwCPHZr.d.mts → index-BZrddrq-.d.mts} +4 -28
- package/dist/{index-BQPieWF9.d.ts → index-BvLpvebq.d.mts} +3 -4
- package/dist/{index-C9s2Ea9O.d.ts → index-Bzcc-y8m.d.ts} +1 -1
- package/dist/{index-CE20hVl1.d.mts → index-Cwx2p8th.d.ts} +8 -29
- package/dist/{index-BsmYcQQU.d.mts → index-DCeOyAw8.d.ts} +3 -4
- package/dist/{index-88JSE0j2.d.ts → index-DG_gyw1q.d.ts} +2 -5
- package/dist/index-DKyt0for.d.mts +181 -0
- package/dist/{index-DZ-eQkIA.d.mts → index-DbG5IjhP.d.mts} +1 -1
- package/dist/index-TkB89QxX.d.ts +181 -0
- package/dist/index.css +4 -468
- package/dist/index.d.mts +7 -8
- package/dist/index.d.ts +7 -8
- package/dist/index.js +1079 -2172
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -11
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/{types-BZoVuUty.d.mts → types-CHkU0WHZ.d.mts} +33 -48
- package/dist/{types-BZoVuUty.d.ts → types-CHkU0WHZ.d.ts} +33 -48
- package/dist/ui/index.d.mts +3 -3
- package/dist/ui/index.d.ts +3 -3
- package/dist/ui/index.js +62 -80
- package/dist/ui/index.js.map +1 -1
- package/dist/ui/index.mjs +2 -2
- package/example/src/pages/Wallet/components/MatchWallet.tsx +10 -24
- package/package.json +1 -7
- package/dist/chunk-2LRK5L4Z.mjs.map +0 -1
- package/dist/chunk-5JHHHLG4.mjs +0 -136
- package/dist/chunk-5JHHHLG4.mjs.map +0 -1
- package/dist/chunk-LHNKZISB.mjs.map +0 -1
- package/dist/chunk-MXBUBTKR.mjs.map +0 -1
- package/dist/index-DIxrMLXq.d.ts +0 -3295
- package/dist/index-P71uc8y5.d.mts +0 -3295
- package/dist/utils/index.d.mts +0 -26
- package/dist/utils/index.d.ts +0 -26
- package/dist/utils/index.js +0 -181
- package/dist/utils/index.js.map +0 -1
- package/dist/utils/index.mjs +0 -30
- package/dist/utils/index.mjs.map +0 -1
- /package/dist/{chunk-YGFOHQU6.mjs.map → chunk-LPQROHSB.mjs.map} +0 -0
package/dist/index.mjs
CHANGED
|
@@ -1,24 +1,23 @@
|
|
|
1
|
+
import {
|
|
2
|
+
types_exports
|
|
3
|
+
} from "./chunk-HBOS3RBL.mjs";
|
|
4
|
+
import {
|
|
5
|
+
chains_exports
|
|
6
|
+
} from "./chunk-HYQ3T6WW.mjs";
|
|
1
7
|
import {
|
|
2
8
|
api_exports
|
|
3
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-LPQROHSB.mjs";
|
|
4
10
|
import {
|
|
5
11
|
MatchProvider,
|
|
6
12
|
components_exports,
|
|
7
13
|
hooks_exports,
|
|
8
14
|
useMatch
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import {
|
|
11
|
-
types_exports
|
|
12
|
-
} from "./chunk-HBOS3RBL.mjs";
|
|
15
|
+
} from "./chunk-V3WGYFWQ.mjs";
|
|
13
16
|
import "./chunk-UA6XHZHX.mjs";
|
|
14
17
|
import {
|
|
15
18
|
ui_exports
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-LHNKZISB.mjs";
|
|
19
|
-
import {
|
|
20
|
-
chains_exports
|
|
21
|
-
} from "./chunk-HYQ3T6WW.mjs";
|
|
19
|
+
} from "./chunk-LNSJ3ZXG.mjs";
|
|
20
|
+
import "./chunk-A5D3NKTK.mjs";
|
|
22
21
|
import "./chunk-J5LGTIGS.mjs";
|
|
23
22
|
export {
|
|
24
23
|
api_exports as Api,
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { A as AuthParams, C as ChainType, E as EmbeddedWalletsParams, R as RecoveryType } from '../mpc-CTbBWHld.mjs';
|
|
2
|
-
export { A as AnyObject,
|
|
2
|
+
export { A as AnyObject, k as AppConfigType, l as BindInfoType, m as BindItemType, n as BindWalletParam, B as ButtonProps, C as CEXType, D as DeepPartial, o as DrawerProps, E as EmailModalProps, a as IEnvConfigType, p as IEnvName, q as ILoginWalletReq, I as IMatchEvents, g as ISocialLoginMethod, r as IconProps, s as InputProps, L as LocaleType, b as LoginBoxProps, i as LoginMethodType, f as LoginModalProps, e as LoginPanelProps, t as MessageType, u as MetaPageType, v as ModalProps, M as ModalWithHeaderProps, O as OtherLoginMethodType, h as OverviewInfo, w as PohItemType, x as PohZkpassParams, P as PopoverPositionType, y as PopoverProps, d as PopoverTypeType, R as RecommendLoginMethodType, T as ThemeType, z as UIProps, F as UserAssetToken, U as UserChainType, G as UserImportTokenType, H as UserPopoverProps, j as UserTransactionType, J as WalletAssetType, K as WalletChainType, W as WalletConfigType, N as WalletPanelProps, Q as WalletReceiveMessageType, c as WalletType } from '../types-CHkU0WHZ.mjs';
|
|
3
3
|
import 'react';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { A as AuthParams, C as ChainType, E as EmbeddedWalletsParams, R as RecoveryType } from '../mpc-CTbBWHld.js';
|
|
2
|
-
export { A as AnyObject,
|
|
2
|
+
export { A as AnyObject, k as AppConfigType, l as BindInfoType, m as BindItemType, n as BindWalletParam, B as ButtonProps, C as CEXType, D as DeepPartial, o as DrawerProps, E as EmailModalProps, a as IEnvConfigType, p as IEnvName, q as ILoginWalletReq, I as IMatchEvents, g as ISocialLoginMethod, r as IconProps, s as InputProps, L as LocaleType, b as LoginBoxProps, i as LoginMethodType, f as LoginModalProps, e as LoginPanelProps, t as MessageType, u as MetaPageType, v as ModalProps, M as ModalWithHeaderProps, O as OtherLoginMethodType, h as OverviewInfo, w as PohItemType, x as PohZkpassParams, P as PopoverPositionType, y as PopoverProps, d as PopoverTypeType, R as RecommendLoginMethodType, T as ThemeType, z as UIProps, F as UserAssetToken, U as UserChainType, G as UserImportTokenType, H as UserPopoverProps, j as UserTransactionType, J as WalletAssetType, K as WalletChainType, W as WalletConfigType, N as WalletPanelProps, Q as WalletReceiveMessageType, c as WalletType } from '../types-CHkU0WHZ.js';
|
|
3
3
|
import 'react';
|
|
@@ -238,7 +238,6 @@ type DrawerProps = PropsWithChildren & {
|
|
|
238
238
|
isOpen: boolean;
|
|
239
239
|
title?: React.ReactNode;
|
|
240
240
|
zIndex?: number;
|
|
241
|
-
onBack?: () => void;
|
|
242
241
|
};
|
|
243
242
|
type WalletPanelProps = DrawerProps & {
|
|
244
243
|
title?: React.ReactNode;
|
|
@@ -279,31 +278,45 @@ type UserChainType = {
|
|
|
279
278
|
iconUrl: string;
|
|
280
279
|
contracts: {
|
|
281
280
|
multicall3: {
|
|
282
|
-
address:
|
|
281
|
+
address: string;
|
|
283
282
|
};
|
|
284
283
|
};
|
|
285
284
|
};
|
|
286
|
-
interface
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
285
|
+
interface UserTransactionAssetType {
|
|
286
|
+
id: number;
|
|
287
|
+
name: string;
|
|
288
|
+
symbol: string;
|
|
289
|
+
nativeChainId: string;
|
|
290
|
+
price: number;
|
|
291
|
+
liquidity: number;
|
|
292
|
+
priceChange24hPercent: number;
|
|
293
|
+
marketCapUSD: number;
|
|
294
|
+
circulatingSupply: number;
|
|
295
|
+
totalSupply: number;
|
|
296
|
+
logo: string;
|
|
297
|
+
contract: string;
|
|
297
298
|
}
|
|
298
299
|
interface UserTransactionType {
|
|
299
|
-
|
|
300
|
-
|
|
300
|
+
id: string;
|
|
301
|
+
timestamp: number;
|
|
301
302
|
from: string;
|
|
302
|
-
hash: string;
|
|
303
|
-
timestamp: string;
|
|
304
303
|
to: string;
|
|
305
|
-
|
|
306
|
-
|
|
304
|
+
contract: any;
|
|
305
|
+
hash: string;
|
|
306
|
+
amount_usd: number;
|
|
307
|
+
amount: number;
|
|
308
|
+
block_number: number;
|
|
309
|
+
type: string;
|
|
310
|
+
blockchain: string;
|
|
311
|
+
tx_cost: number;
|
|
312
|
+
transaction: {
|
|
313
|
+
hash: string;
|
|
314
|
+
chainId: string;
|
|
315
|
+
fees: string;
|
|
316
|
+
feesUSD: number;
|
|
317
|
+
date: string;
|
|
318
|
+
};
|
|
319
|
+
asset: UserTransactionAssetType;
|
|
307
320
|
}
|
|
308
321
|
type UserAssetToken = {
|
|
309
322
|
symbol: string;
|
|
@@ -314,7 +327,6 @@ type UserAssetToken = {
|
|
|
314
327
|
address: string;
|
|
315
328
|
decimals: string;
|
|
316
329
|
icon: string;
|
|
317
|
-
price_change_24h: number;
|
|
318
330
|
};
|
|
319
331
|
type UserImportTokenType = {
|
|
320
332
|
chain_id: string;
|
|
@@ -349,32 +361,5 @@ type WalletChainType = {
|
|
|
349
361
|
chain_full_name: string;
|
|
350
362
|
chain_type: string;
|
|
351
363
|
};
|
|
352
|
-
type WalletNFTType = {
|
|
353
|
-
token_address: string;
|
|
354
|
-
token_id: string;
|
|
355
|
-
token_uri: string;
|
|
356
|
-
amount: string;
|
|
357
|
-
owner_of: string;
|
|
358
|
-
name: string;
|
|
359
|
-
symbol: string;
|
|
360
|
-
blockchain: string;
|
|
361
|
-
chain_id: string;
|
|
362
|
-
};
|
|
363
|
-
type WalletAssetMergeType = {
|
|
364
|
-
chain_id: string;
|
|
365
|
-
chain_name?: string;
|
|
366
|
-
name?: string;
|
|
367
|
-
symbol: string;
|
|
368
|
-
balance?: number;
|
|
369
|
-
price?: number;
|
|
370
|
-
address: string;
|
|
371
|
-
decimals: string;
|
|
372
|
-
icon?: string;
|
|
373
|
-
price_change_24h?: number;
|
|
374
|
-
isAuto?: boolean;
|
|
375
|
-
isCustom?: boolean;
|
|
376
|
-
value?: number;
|
|
377
|
-
balanceValue?: string;
|
|
378
|
-
};
|
|
379
364
|
|
|
380
|
-
export type { AnyObject as A, ButtonProps as B, CEXType as C, DeepPartial as D, EmailModalProps as E,
|
|
365
|
+
export type { AnyObject as A, ButtonProps as B, CEXType as C, DeepPartial as D, EmailModalProps as E, UserAssetToken as F, UserImportTokenType as G, UserPopoverProps as H, IMatchEvents as I, WalletAssetType as J, WalletChainType as K, LocaleType as L, ModalWithHeaderProps as M, WalletPanelProps as N, OtherLoginMethodType as O, PopoverPositionType as P, WalletReceiveMessageType as Q, RecommendLoginMethodType as R, ThemeType as T, UserChainType as U, WalletConfigType as W, IEnvConfigType as a, LoginBoxProps as b, WalletType as c, PopoverTypeType as d, LoginPanelProps as e, LoginModalProps as f, ISocialLoginMethod as g, OverviewInfo as h, LoginMethodType as i, UserTransactionType as j, AppConfigType as k, BindInfoType as l, BindItemType as m, BindWalletParam as n, DrawerProps as o, IEnvName as p, ILoginWalletReq as q, IconProps as r, InputProps as s, MessageType as t, MetaPageType as u, ModalProps as v, PohItemType as w, PohZkpassParams as x, PopoverProps as y, UIProps as z };
|
|
@@ -238,7 +238,6 @@ type DrawerProps = PropsWithChildren & {
|
|
|
238
238
|
isOpen: boolean;
|
|
239
239
|
title?: React.ReactNode;
|
|
240
240
|
zIndex?: number;
|
|
241
|
-
onBack?: () => void;
|
|
242
241
|
};
|
|
243
242
|
type WalletPanelProps = DrawerProps & {
|
|
244
243
|
title?: React.ReactNode;
|
|
@@ -279,31 +278,45 @@ type UserChainType = {
|
|
|
279
278
|
iconUrl: string;
|
|
280
279
|
contracts: {
|
|
281
280
|
multicall3: {
|
|
282
|
-
address:
|
|
281
|
+
address: string;
|
|
283
282
|
};
|
|
284
283
|
};
|
|
285
284
|
};
|
|
286
|
-
interface
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
285
|
+
interface UserTransactionAssetType {
|
|
286
|
+
id: number;
|
|
287
|
+
name: string;
|
|
288
|
+
symbol: string;
|
|
289
|
+
nativeChainId: string;
|
|
290
|
+
price: number;
|
|
291
|
+
liquidity: number;
|
|
292
|
+
priceChange24hPercent: number;
|
|
293
|
+
marketCapUSD: number;
|
|
294
|
+
circulatingSupply: number;
|
|
295
|
+
totalSupply: number;
|
|
296
|
+
logo: string;
|
|
297
|
+
contract: string;
|
|
297
298
|
}
|
|
298
299
|
interface UserTransactionType {
|
|
299
|
-
|
|
300
|
-
|
|
300
|
+
id: string;
|
|
301
|
+
timestamp: number;
|
|
301
302
|
from: string;
|
|
302
|
-
hash: string;
|
|
303
|
-
timestamp: string;
|
|
304
303
|
to: string;
|
|
305
|
-
|
|
306
|
-
|
|
304
|
+
contract: any;
|
|
305
|
+
hash: string;
|
|
306
|
+
amount_usd: number;
|
|
307
|
+
amount: number;
|
|
308
|
+
block_number: number;
|
|
309
|
+
type: string;
|
|
310
|
+
blockchain: string;
|
|
311
|
+
tx_cost: number;
|
|
312
|
+
transaction: {
|
|
313
|
+
hash: string;
|
|
314
|
+
chainId: string;
|
|
315
|
+
fees: string;
|
|
316
|
+
feesUSD: number;
|
|
317
|
+
date: string;
|
|
318
|
+
};
|
|
319
|
+
asset: UserTransactionAssetType;
|
|
307
320
|
}
|
|
308
321
|
type UserAssetToken = {
|
|
309
322
|
symbol: string;
|
|
@@ -314,7 +327,6 @@ type UserAssetToken = {
|
|
|
314
327
|
address: string;
|
|
315
328
|
decimals: string;
|
|
316
329
|
icon: string;
|
|
317
|
-
price_change_24h: number;
|
|
318
330
|
};
|
|
319
331
|
type UserImportTokenType = {
|
|
320
332
|
chain_id: string;
|
|
@@ -349,32 +361,5 @@ type WalletChainType = {
|
|
|
349
361
|
chain_full_name: string;
|
|
350
362
|
chain_type: string;
|
|
351
363
|
};
|
|
352
|
-
type WalletNFTType = {
|
|
353
|
-
token_address: string;
|
|
354
|
-
token_id: string;
|
|
355
|
-
token_uri: string;
|
|
356
|
-
amount: string;
|
|
357
|
-
owner_of: string;
|
|
358
|
-
name: string;
|
|
359
|
-
symbol: string;
|
|
360
|
-
blockchain: string;
|
|
361
|
-
chain_id: string;
|
|
362
|
-
};
|
|
363
|
-
type WalletAssetMergeType = {
|
|
364
|
-
chain_id: string;
|
|
365
|
-
chain_name?: string;
|
|
366
|
-
name?: string;
|
|
367
|
-
symbol: string;
|
|
368
|
-
balance?: number;
|
|
369
|
-
price?: number;
|
|
370
|
-
address: string;
|
|
371
|
-
decimals: string;
|
|
372
|
-
icon?: string;
|
|
373
|
-
price_change_24h?: number;
|
|
374
|
-
isAuto?: boolean;
|
|
375
|
-
isCustom?: boolean;
|
|
376
|
-
value?: number;
|
|
377
|
-
balanceValue?: string;
|
|
378
|
-
};
|
|
379
364
|
|
|
380
|
-
export type { AnyObject as A, ButtonProps as B, CEXType as C, DeepPartial as D, EmailModalProps as E,
|
|
365
|
+
export type { AnyObject as A, ButtonProps as B, CEXType as C, DeepPartial as D, EmailModalProps as E, UserAssetToken as F, UserImportTokenType as G, UserPopoverProps as H, IMatchEvents as I, WalletAssetType as J, WalletChainType as K, LocaleType as L, ModalWithHeaderProps as M, WalletPanelProps as N, OtherLoginMethodType as O, PopoverPositionType as P, WalletReceiveMessageType as Q, RecommendLoginMethodType as R, ThemeType as T, UserChainType as U, WalletConfigType as W, IEnvConfigType as a, LoginBoxProps as b, WalletType as c, PopoverTypeType as d, LoginPanelProps as e, LoginModalProps as f, ISocialLoginMethod as g, OverviewInfo as h, LoginMethodType as i, UserTransactionType as j, AppConfigType as k, BindInfoType as l, BindItemType as m, BindWalletParam as n, DrawerProps as o, IEnvName as p, ILoginWalletReq as q, IconProps as r, InputProps as s, MessageType as t, MetaPageType as u, ModalProps as v, PohItemType as w, PohZkpassParams as x, PopoverProps as y, UIProps as z };
|
package/dist/ui/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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-DbG5IjhP.mjs';
|
|
2
|
+
export { A as AlphaAvatar, D as Drawer, e as HashPanel, M as ModalDrawer, R as Radio, S as Switch } from '../index-BvLpvebq.mjs';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
5
|
-
import '../types-
|
|
5
|
+
import '../types-CHkU0WHZ.mjs';
|
|
6
6
|
import 'viem';
|
package/dist/ui/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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-Bzcc-y8m.js';
|
|
2
|
+
export { A as AlphaAvatar, D as Drawer, e as HashPanel, M as ModalDrawer, R as Radio, S as Switch } from '../index-DCeOyAw8.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
5
|
-
import '../types-
|
|
5
|
+
import '../types-CHkU0WHZ.js';
|
|
6
6
|
import 'viem';
|