@matchain/matchid-sdk-react 0.1.53-alpha.8 → 0.1.54

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 (54) hide show
  1. package/dist/assets/icon/index.d.mts +2 -2
  2. package/dist/assets/icon/index.d.ts +2 -2
  3. package/dist/{chunk-X5HGL3ZX.mjs → chunk-ZPBHHXEE.mjs} +7689 -338
  4. package/dist/chunk-ZPBHHXEE.mjs.map +1 -0
  5. package/dist/components/index.d.mts +3 -3
  6. package/dist/components/index.d.ts +3 -3
  7. package/dist/components/index.js +363 -343
  8. package/dist/components/index.js.map +1 -1
  9. package/dist/components/index.mjs +9 -11
  10. package/dist/hooks/api/index.d.mts +2 -2
  11. package/dist/hooks/api/index.d.ts +2 -2
  12. package/dist/hooks/api/index.js +493 -478
  13. package/dist/hooks/api/index.js.map +1 -1
  14. package/dist/hooks/api/index.mjs +2 -3
  15. package/dist/hooks/index.d.mts +2 -2
  16. package/dist/hooks/index.d.ts +2 -2
  17. package/dist/hooks/index.js +258 -248
  18. package/dist/hooks/index.js.map +1 -1
  19. package/dist/hooks/index.mjs +3 -5
  20. package/dist/{index-D5WIVIkc.d.ts → index-91BdMYDA.d.ts} +4 -2
  21. package/dist/{index-BVfCh4l-.d.mts → index-CPk553v5.d.mts} +1 -1
  22. package/dist/{index-D7S5DMUy.d.mts → index-CPwcm70o.d.mts} +3 -3
  23. package/dist/{index-zc2GEzJ9.d.ts → index-CZu_8fKl.d.ts} +40 -39
  24. package/dist/{index-SOVt-ADK.d.mts → index-ChHJD4NZ.d.mts} +4 -2
  25. package/dist/{index-CQmN0dN4.d.ts → index-CkHDxE7B.d.mts} +16 -4
  26. package/dist/{index-C0UKUm0h.d.ts → index-D5geEbXf.d.ts} +4 -3
  27. package/dist/{index-D3Kp05kW.d.ts → index-DFBrN7dx.d.ts} +1 -1
  28. package/dist/{index-DC4F1u-w.d.mts → index-DSvRdAyZ.d.mts} +4 -3
  29. package/dist/{index-DjbH13zc.d.mts → index-DX1vzCrM.d.mts} +40 -39
  30. package/dist/{index-DQFQ39D9.d.ts → index-Dj1K-UdZ.d.ts} +3 -3
  31. package/dist/{index-BDffLLM_.d.mts → index-DjwwXNp4.d.mts} +15 -3
  32. package/dist/{index-BaFmUVw-.d.mts → index-SRHVQn5G.d.ts} +16 -4
  33. package/dist/{index-BsX-ovIl.d.ts → index-Vxvd14yW.d.ts} +15 -3
  34. package/dist/index.css +141 -34
  35. package/dist/index.d.mts +758 -11
  36. package/dist/index.d.ts +758 -11
  37. package/dist/index.js +3859 -3738
  38. package/dist/index.js.map +1 -1
  39. package/dist/index.mjs +9 -9
  40. package/dist/types/index.d.mts +1 -1
  41. package/dist/types/index.d.ts +1 -1
  42. package/dist/{types-VrV1kYga.d.mts → types-Bi9iq57H.d.mts} +13 -1
  43. package/dist/{types-VrV1kYga.d.ts → types-Bi9iq57H.d.ts} +13 -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 +937 -160
  47. package/dist/ui/index.js.map +1 -1
  48. package/dist/ui/index.mjs +6 -1
  49. package/example/package.json +1 -0
  50. package/example/src/App.tsx +24 -20
  51. package/package.json +1 -1
  52. package/dist/chunk-QTUR37B2.mjs +0 -7275
  53. package/dist/chunk-QTUR37B2.mjs.map +0 -1
  54. package/dist/chunk-X5HGL3ZX.mjs.map +0 -1
@@ -1,5 +1,5 @@
1
1
  import { M as MyResponseType } from './request-B0CyrGFT.mjs';
2
- import { b as ISocialLoginMethod, O as OverviewInfo, C as CEXType, c as LoginMethodType, I as IMatchEvents, d as ChainType, U as UserChainType, A as Address, H as Hash$1, e as AnyObject, f as UserTransactionType, u as useMatchWalletAssetsProps, g as UserImportTokenType, h as UserAssetToken, i as WalletAssetMergeType } from './types-VrV1kYga.mjs';
2
+ import { h as ISocialLoginMethod, i as OverviewInfo, j as CEXType, k as LoginMethodType, I as IMatchEvents, l as ChainType, U as UserChainType, A as Address, H as Hash$1, m as AnyObject, n as UserTransactionType, u as useMatchWalletAssetsProps, o as UserImportTokenType, p as UserAssetToken, g as WalletAssetMergeType } from './types-Bi9iq57H.mjs';
3
3
  import * as viem from 'viem';
4
4
  import { Account, WalletClientConfig, createWalletClient, SignableMessage, Hex, TransactionSerializable, DeployContractParameters, SendTransactionParameters, WriteContractParameters, Chain } from 'viem';
5
5
  import { Hash } from 'viem/types/misc';
@@ -9,11 +9,12 @@ import React, { ReactNode } from 'react';
9
9
  import * as viem__types_actions_siwe_verifySiweMessage from 'viem/_types/actions/siwe/verifySiweMessage';
10
10
  import * as _tanstack_react_query from '@tanstack/react-query';
11
11
 
12
+ interface ModalProps {
13
+ close: () => void;
14
+ zIndex: number;
15
+ }
12
16
  interface ModalContextType {
13
- show: (content: (props: {
14
- close: () => void;
15
- zIndex: number;
16
- }) => ReactNode, index?: number) => void;
17
+ show: (content: React.FC<ModalProps>, index?: number) => void;
17
18
  open: (props: {
18
19
  title: ReactNode;
19
20
  content: React.ComponentType<{
@@ -180,6 +181,7 @@ declare function useMatchChain(): {
180
181
  number: blockTag extends "pending" ? null : bigint;
181
182
  nonce: blockTag extends "pending" ? null : `0x${string}`;
182
183
  size: bigint;
184
+ timestamp: bigint;
183
185
  hash: blockTag extends "pending" ? null : `0x${string}`;
184
186
  logsBloom: blockTag extends "pending" ? null : `0x${string}`;
185
187
  baseFeePerGas: bigint | null;
@@ -196,7 +198,6 @@ declare function useMatchChain(): {
196
198
  sealFields: viem.Hex[];
197
199
  sha3Uncles: viem.Hash;
198
200
  stateRoot: viem.Hash;
199
- timestamp: bigint;
200
201
  totalDifficulty: bigint | null;
201
202
  transactionsRoot: viem.Hash;
202
203
  uncles: viem.Hash[];
@@ -212,16 +213,16 @@ declare function useMatchChain(): {
212
213
  r: viem.Hex;
213
214
  v: bigint;
214
215
  yParity?: undefined;
215
- hash: viem.Hash;
216
+ to: viem.Address | null;
216
217
  from: viem.Address;
217
218
  gas: bigint;
218
- to: viem.Address | null;
219
- blobVersionedHashes?: undefined;
220
- gasPrice: bigint;
221
219
  maxFeePerBlobGas?: undefined;
220
+ gasPrice: bigint;
222
221
  maxFeePerGas?: undefined;
223
222
  maxPriorityFeePerGas?: undefined;
224
223
  accessList?: undefined;
224
+ blobVersionedHashes?: undefined;
225
+ hash: viem.Hash;
225
226
  typeHex: viem.Hex | null;
226
227
  blockNumber: (blockTag extends "pending" ? true : false) extends infer T ? T extends (blockTag extends "pending" ? true : false) ? T extends true ? null : bigint : never : never;
227
228
  blockHash: (blockTag extends "pending" ? true : false) extends infer T_1 ? T_1 extends (blockTag extends "pending" ? true : false) ? T_1 extends true ? null : `0x${string}` : never : never;
@@ -236,16 +237,16 @@ declare function useMatchChain(): {
236
237
  r: viem.Hex;
237
238
  v: bigint;
238
239
  yParity: number;
239
- hash: viem.Hash;
240
+ to: viem.Address | null;
240
241
  from: viem.Address;
241
242
  gas: bigint;
242
- to: viem.Address | null;
243
- blobVersionedHashes?: undefined;
244
- gasPrice: bigint;
245
243
  maxFeePerBlobGas?: undefined;
244
+ gasPrice: bigint;
246
245
  maxFeePerGas?: undefined;
247
246
  maxPriorityFeePerGas?: undefined;
248
247
  accessList: viem.AccessList;
248
+ blobVersionedHashes?: undefined;
249
+ hash: viem.Hash;
249
250
  typeHex: viem.Hex | null;
250
251
  blockNumber: (blockTag extends "pending" ? true : false) extends infer T ? T extends (blockTag extends "pending" ? true : false) ? T extends true ? null : bigint : never : never;
251
252
  blockHash: (blockTag extends "pending" ? true : false) extends infer T_1 ? T_1 extends (blockTag extends "pending" ? true : false) ? T_1 extends true ? null : `0x${string}` : never : never;
@@ -260,16 +261,16 @@ declare function useMatchChain(): {
260
261
  r: viem.Hex;
261
262
  v: bigint;
262
263
  yParity: number;
263
- hash: viem.Hash;
264
+ to: viem.Address | null;
264
265
  from: viem.Address;
265
266
  gas: bigint;
266
- to: viem.Address | null;
267
- blobVersionedHashes?: undefined;
268
- gasPrice?: undefined;
269
267
  maxFeePerBlobGas?: undefined;
268
+ gasPrice?: undefined;
270
269
  maxFeePerGas: bigint;
271
270
  maxPriorityFeePerGas: bigint;
272
271
  accessList: viem.AccessList;
272
+ blobVersionedHashes?: undefined;
273
+ hash: viem.Hash;
273
274
  typeHex: viem.Hex | null;
274
275
  blockNumber: (blockTag extends "pending" ? true : false) extends infer T ? T extends (blockTag extends "pending" ? true : false) ? T extends true ? null : bigint : never : never;
275
276
  blockHash: (blockTag extends "pending" ? true : false) extends infer T_1 ? T_1 extends (blockTag extends "pending" ? true : false) ? T_1 extends true ? null : `0x${string}` : never : never;
@@ -284,16 +285,16 @@ declare function useMatchChain(): {
284
285
  r: viem.Hex;
285
286
  v: bigint;
286
287
  yParity: number;
287
- hash: viem.Hash;
288
+ to: viem.Address | null;
288
289
  from: viem.Address;
289
290
  gas: bigint;
290
- to: viem.Address | null;
291
- blobVersionedHashes: readonly viem.Hex[];
292
- gasPrice?: undefined;
293
291
  maxFeePerBlobGas: bigint;
292
+ gasPrice?: undefined;
294
293
  maxFeePerGas: bigint;
295
294
  maxPriorityFeePerGas: bigint;
296
295
  accessList: viem.AccessList;
296
+ blobVersionedHashes: readonly viem.Hex[];
297
+ hash: viem.Hash;
297
298
  typeHex: viem.Hex | null;
298
299
  blockNumber: (blockTag extends "pending" ? true : false) extends infer T ? T extends (blockTag extends "pending" ? true : false) ? T extends true ? null : bigint : never : never;
299
300
  blockHash: (blockTag extends "pending" ? true : false) extends infer T_1 ? T_1 extends (blockTag extends "pending" ? true : false) ? T_1 extends true ? null : `0x${string}` : never : never;
@@ -333,16 +334,16 @@ declare function useMatchChain(): {
333
334
  r: viem.Hex;
334
335
  v: bigint;
335
336
  yParity?: undefined;
336
- hash: viem.Hash;
337
+ to: viem.Address | null;
337
338
  from: viem.Address;
338
339
  gas: bigint;
339
- to: viem.Address | null;
340
- blobVersionedHashes?: undefined;
341
- gasPrice: bigint;
342
340
  maxFeePerBlobGas?: undefined;
341
+ gasPrice: bigint;
343
342
  maxFeePerGas?: undefined;
344
343
  maxPriorityFeePerGas?: undefined;
345
344
  accessList?: undefined;
345
+ blobVersionedHashes?: undefined;
346
+ hash: viem.Hash;
346
347
  typeHex: viem.Hex | null;
347
348
  blockNumber: (blockTag extends "pending" ? true : false) extends infer T ? T extends (blockTag extends "pending" ? true : false) ? T extends true ? null : bigint : never : never;
348
349
  blockHash: (blockTag extends "pending" ? true : false) extends infer T_1 ? T_1 extends (blockTag extends "pending" ? true : false) ? T_1 extends true ? null : `0x${string}` : never : never;
@@ -357,16 +358,16 @@ declare function useMatchChain(): {
357
358
  r: viem.Hex;
358
359
  v: bigint;
359
360
  yParity: number;
360
- hash: viem.Hash;
361
+ to: viem.Address | null;
361
362
  from: viem.Address;
362
363
  gas: bigint;
363
- to: viem.Address | null;
364
- blobVersionedHashes?: undefined;
365
- gasPrice: bigint;
366
364
  maxFeePerBlobGas?: undefined;
365
+ gasPrice: bigint;
367
366
  maxFeePerGas?: undefined;
368
367
  maxPriorityFeePerGas?: undefined;
369
368
  accessList: viem.AccessList;
369
+ blobVersionedHashes?: undefined;
370
+ hash: viem.Hash;
370
371
  typeHex: viem.Hex | null;
371
372
  blockNumber: (blockTag extends "pending" ? true : false) extends infer T ? T extends (blockTag extends "pending" ? true : false) ? T extends true ? null : bigint : never : never;
372
373
  blockHash: (blockTag extends "pending" ? true : false) extends infer T_1 ? T_1 extends (blockTag extends "pending" ? true : false) ? T_1 extends true ? null : `0x${string}` : never : never;
@@ -381,16 +382,16 @@ declare function useMatchChain(): {
381
382
  r: viem.Hex;
382
383
  v: bigint;
383
384
  yParity: number;
384
- hash: viem.Hash;
385
+ to: viem.Address | null;
385
386
  from: viem.Address;
386
387
  gas: bigint;
387
- to: viem.Address | null;
388
- blobVersionedHashes?: undefined;
389
- gasPrice?: undefined;
390
388
  maxFeePerBlobGas?: undefined;
389
+ gasPrice?: undefined;
391
390
  maxFeePerGas: bigint;
392
391
  maxPriorityFeePerGas: bigint;
393
392
  accessList: viem.AccessList;
393
+ blobVersionedHashes?: undefined;
394
+ hash: viem.Hash;
394
395
  typeHex: viem.Hex | null;
395
396
  blockNumber: (blockTag extends "pending" ? true : false) extends infer T ? T extends (blockTag extends "pending" ? true : false) ? T extends true ? null : bigint : never : never;
396
397
  blockHash: (blockTag extends "pending" ? true : false) extends infer T_1 ? T_1 extends (blockTag extends "pending" ? true : false) ? T_1 extends true ? null : `0x${string}` : never : never;
@@ -405,16 +406,16 @@ declare function useMatchChain(): {
405
406
  r: viem.Hex;
406
407
  v: bigint;
407
408
  yParity: number;
408
- hash: viem.Hash;
409
+ to: viem.Address | null;
409
410
  from: viem.Address;
410
411
  gas: bigint;
411
- to: viem.Address | null;
412
- blobVersionedHashes: readonly viem.Hex[];
413
- gasPrice?: undefined;
414
412
  maxFeePerBlobGas: bigint;
413
+ gasPrice?: undefined;
415
414
  maxFeePerGas: bigint;
416
415
  maxPriorityFeePerGas: bigint;
417
416
  accessList: viem.AccessList;
417
+ blobVersionedHashes: readonly viem.Hex[];
418
+ hash: viem.Hash;
418
419
  typeHex: viem.Hex | null;
419
420
  blockNumber: (blockTag extends "pending" ? true : false) extends infer T ? T extends (blockTag extends "pending" ? true : false) ? T extends true ? null : bigint : never : never;
420
421
  blockHash: (blockTag extends "pending" ? true : false) extends infer T_1 ? T_1 extends (blockTag extends "pending" ? true : false) ? T_1 extends true ? null : `0x${string}` : never : never;
@@ -3228,7 +3229,7 @@ declare function useMatchChain(): {
3228
3229
  transport?: undefined;
3229
3230
  type?: undefined;
3230
3231
  uid?: undefined;
3231
- } & viem.ExactPartial<Pick<viem.PublicActions<viem.HttpTransport, UserChainType, undefined>, "call" | "createContractEventFilter" | "createEventFilter" | "estimateContractGas" | "estimateGas" | "getBlock" | "getBlockNumber" | "getChainId" | "getContractEvents" | "getEnsText" | "getFilterChanges" | "getGasPrice" | "getLogs" | "getTransaction" | "getTransactionCount" | "getTransactionReceipt" | "prepareTransactionRequest" | "readContract" | "sendRawTransaction" | "simulateContract" | "uninstallFilter" | "watchBlockNumber" | "watchContractEvent"> & Pick<viem.WalletActions<UserChainType, undefined>, "sendTransaction" | "writeContract">>>(fn: (client: viem.Client<viem.HttpTransport, UserChainType, undefined, viem.PublicRpcSchema, viem.PublicActions<viem.HttpTransport, UserChainType>>) => client) => viem.Client<viem.HttpTransport, UserChainType, undefined, viem.PublicRpcSchema, { [K in keyof client]: client[K]; } & viem.PublicActions<viem.HttpTransport, UserChainType>>;
3232
+ } & viem.ExactPartial<Pick<viem.PublicActions<viem.HttpTransport, UserChainType, undefined>, "getChainId" | "prepareTransactionRequest" | "sendRawTransaction" | "call" | "createContractEventFilter" | "createEventFilter" | "estimateContractGas" | "estimateGas" | "getBlock" | "getBlockNumber" | "getContractEvents" | "getEnsText" | "getFilterChanges" | "getGasPrice" | "getLogs" | "getTransaction" | "getTransactionCount" | "getTransactionReceipt" | "readContract" | "simulateContract" | "uninstallFilter" | "watchBlockNumber" | "watchContractEvent"> & Pick<viem.WalletActions<UserChainType, undefined>, "sendTransaction" | "writeContract">>>(fn: (client: viem.Client<viem.HttpTransport, UserChainType, undefined, viem.PublicRpcSchema, viem.PublicActions<viem.HttpTransport, UserChainType>>) => client) => viem.Client<viem.HttpTransport, UserChainType, undefined, viem.PublicRpcSchema, { [K in keyof client]: client[K]; } & viem.PublicActions<viem.HttpTransport, UserChainType>>;
3232
3233
  } | null;
3233
3234
  formatUnits: (value: bigint) => string;
3234
3235
  parseUnits: (value: string) => bigint;
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { E as EmailModalProps, j as LoginBoxProps, B as ButtonProps, k as OtherLoginMethodType, R as RecommendLoginMethodType, l as WalletType, P as PopoverPositionType, m as PopoverTypeType, n as LoginPanelProps, o as LoginModalProps, M as ModalWithHeaderProps, i as WalletAssetMergeType, u as useMatchWalletAssetsProps, p as ContactType } from './types-VrV1kYga.js';
3
- import { B as Button, F as Field, I as Input, M as Modal, a as ModalWithHeader, O as Overlay, P as Popover } from './index-CQmN0dN4.js';
2
+ import { E as EmailModalProps, b as LoginBoxProps, B as ButtonProps, O as OtherLoginMethodType, R as RecommendLoginMethodType, c as WalletType, P as PopoverPositionType, d as PopoverTypeType, e as LoginPanelProps, f as LoginModalProps, M as ModalWithHeaderProps, g as WalletAssetMergeType, u as useMatchWalletAssetsProps, C as ContactType } from './types-Bi9iq57H.js';
3
+ import { B as Button, F as Field, I as Input, M as Modal, a as ModalWithHeader, O as Overlay, P as Popover } from './index-SRHVQn5G.js';
4
4
  import React, { ReactNode } from 'react';
5
5
 
6
6
  declare function EmailModal({ isOpen, width, onClose, onBack, onLogin }: EmailModalProps): react_jsx_runtime.JSX.Element;
@@ -88,7 +88,7 @@ declare function ContactCard({ loading, data, action }: {
88
88
  }): react_jsx_runtime.JSX.Element;
89
89
  declare function ContactList({ limit, height, type }: {
90
90
  limit?: number;
91
- height?: number;
91
+ height?: number | string;
92
92
  type?: "Friend" | "Requests";
93
93
  }): react_jsx_runtime.JSX.Element;
94
94
 
@@ -1,6 +1,6 @@
1
1
  import * as _tanstack_react_query from '@tanstack/react-query';
2
2
  import { UseQueryOptions } from '@tanstack/react-query/src/types';
3
- import { S as PohZkpassParams, f as UserTransactionType, _ as UserTransactionNextPageParams, a0 as WalletAssetType, K as MetaPageType, t as BindItemType, s as BindInfoType, Q as PohItemType, U as UserChainType, h as UserAssetToken, g as UserImportTokenType, a1 as WalletChainType, a2 as WalletNFTType, p as ContactType } from './types-VrV1kYga.mjs';
3
+ import { T as PohZkpassParams, n as UserTransactionType, a0 as UserTransactionNextPageParams, a2 as WalletAssetType, N as MetaPageType, t as BindItemType, s as BindInfoType, S as PohItemType, U as UserChainType, p as UserAssetToken, o as UserImportTokenType, a3 as WalletChainType, a4 as WalletNFTType, C as ContactType, w as ContactSearchType } from './types-Bi9iq57H.mjs';
4
4
  import { M as MyResponseType, i as isSuccess } from './request-B0CyrGFT.mjs';
5
5
 
6
6
  declare const bindCexApi: (data: {
@@ -128,8 +128,20 @@ declare function useContactList(page_size?: number, type?: "Friend" | "Requests"
128
128
  hasNextPage: boolean;
129
129
  onLoadMore: (options?: _tanstack_react_query.FetchNextPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<MetaPageType<ContactType[]>, unknown>, Error>>;
130
130
  };
131
- declare function useContactSearch(keyword: string, options?: Partial<UseQueryOptions>): _tanstack_react_query.UseQueryResult<unknown, Error>;
132
- declare function useContactInfo(options?: Partial<UseQueryOptions>): _tanstack_react_query.UseQueryResult<unknown, Error>;
131
+ declare function useContactSearch(keyword: string, options?: Partial<UseQueryOptions<ContactSearchType | null>>): _tanstack_react_query.UseQueryResult<ContactSearchType | null, Error>;
132
+ declare function useContactInfo(options?: Partial<UseQueryOptions<{
133
+ fried_total: number;
134
+ request_total: number;
135
+ referral_total: number;
136
+ poh_total: number;
137
+ referral_link: string;
138
+ }>>): _tanstack_react_query.UseQueryResult<{
139
+ fried_total: number;
140
+ request_total: number;
141
+ referral_total: number;
142
+ poh_total: number;
143
+ referral_link: string;
144
+ }, Error>;
133
145
  declare const addContact: (friend_id: string | ContactType) => Promise<boolean>;
134
146
  declare const acceptContact: (friend_id: string | ContactType) => Promise<boolean>;
135
147
  declare const delContact: (friend_id: string | ContactType) => Promise<boolean>;
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { ReactNode, PropsWithChildren } from 'react';
3
- import { G as InputProps, B as ButtonProps, N as ModalProps, M as ModalWithHeaderProps, T as PopoverProps } from './types-VrV1kYga.mjs';
2
+ import React, { ReactNode, PropsWithChildren } from 'react';
3
+ import { J as InputProps, B as ButtonProps, Q as ModalProps, M as ModalWithHeaderProps, V as PopoverProps } from './types-Bi9iq57H.js';
4
4
 
5
5
  declare function Field({ label, children, error, required, className }: {
6
6
  label: ReactNode;
@@ -11,10 +11,22 @@ declare function Field({ label, children, error, required, className }: {
11
11
 
12
12
  declare function Input({ onChange, type, after, className, ...props }: InputProps): react_jsx_runtime.JSX.Element;
13
13
 
14
- declare function Button({ size, disabled, loading, children, onClick, highlight, block, type, rounded, className, style }: ButtonProps): react_jsx_runtime.JSX.Element;
14
+ declare function Button({ size, disabled, loading, children, onClick, highlight, block, type, rounded, className, style, dataset }: ButtonProps & {
15
+ dataset?: {
16
+ [key: string]: string;
17
+ };
18
+ }): react_jsx_runtime.JSX.Element;
15
19
 
16
20
  declare function Modal({ children, isOpen, width, zIndex, className }: ModalProps): react_jsx_runtime.JSX.Element;
17
21
  declare function ModalWithHeader({ children, onBack, onClose, title, showBorder, showClose, ...props }: ModalWithHeaderProps): react_jsx_runtime.JSX.Element;
22
+ declare function ConfirmModal({ title, children, onClose, onConfirm, isOpen, confirmText, zIndex }: {
23
+ title?: string;
24
+ onClose: () => void;
25
+ onConfirm: () => Promise<void>;
26
+ isOpen: boolean;
27
+ confirmText?: React.ReactNode;
28
+ zIndex?: number;
29
+ } & PropsWithChildren): react_jsx_runtime.JSX.Element;
18
30
 
19
31
  declare function Popover({ children, content, position, type, className, gap }: PopoverProps): false | "" | 0 | react_jsx_runtime.JSX.Element | null | undefined;
20
32
 
@@ -23,4 +35,4 @@ declare function Overlay({ isOpen, children, zIndex, }: {
23
35
  zIndex?: number;
24
36
  } & PropsWithChildren): react_jsx_runtime.JSX.Element;
25
37
 
26
- export { Button as B, Field as F, Input as I, Modal as M, Overlay as O, Popover as P, ModalWithHeader as a };
38
+ export { Button as B, ConfirmModal as C, Field as F, Input as I, Modal as M, Overlay as O, Popover as P, ModalWithHeader as a };
@@ -1,6 +1,6 @@
1
1
  import * as _tanstack_react_query from '@tanstack/react-query';
2
2
  import { UseQueryOptions } from '@tanstack/react-query/src/types';
3
- import { S as PohZkpassParams, f as UserTransactionType, _ as UserTransactionNextPageParams, a0 as WalletAssetType, K as MetaPageType, t as BindItemType, s as BindInfoType, Q as PohItemType, U as UserChainType, h as UserAssetToken, g as UserImportTokenType, a1 as WalletChainType, a2 as WalletNFTType, p as ContactType } from './types-VrV1kYga.js';
3
+ import { T as PohZkpassParams, n as UserTransactionType, a0 as UserTransactionNextPageParams, a2 as WalletAssetType, N as MetaPageType, t as BindItemType, s as BindInfoType, S as PohItemType, U as UserChainType, p as UserAssetToken, o as UserImportTokenType, a3 as WalletChainType, a4 as WalletNFTType, C as ContactType, w as ContactSearchType } from './types-Bi9iq57H.js';
4
4
  import { M as MyResponseType, i as isSuccess } from './request-B0CyrGFT.js';
5
5
 
6
6
  declare const bindCexApi: (data: {
@@ -128,8 +128,20 @@ declare function useContactList(page_size?: number, type?: "Friend" | "Requests"
128
128
  hasNextPage: boolean;
129
129
  onLoadMore: (options?: _tanstack_react_query.FetchNextPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<MetaPageType<ContactType[]>, unknown>, Error>>;
130
130
  };
131
- declare function useContactSearch(keyword: string, options?: Partial<UseQueryOptions>): _tanstack_react_query.UseQueryResult<unknown, Error>;
132
- declare function useContactInfo(options?: Partial<UseQueryOptions>): _tanstack_react_query.UseQueryResult<unknown, Error>;
131
+ declare function useContactSearch(keyword: string, options?: Partial<UseQueryOptions<ContactSearchType | null>>): _tanstack_react_query.UseQueryResult<ContactSearchType | null, Error>;
132
+ declare function useContactInfo(options?: Partial<UseQueryOptions<{
133
+ fried_total: number;
134
+ request_total: number;
135
+ referral_total: number;
136
+ poh_total: number;
137
+ referral_link: string;
138
+ }>>): _tanstack_react_query.UseQueryResult<{
139
+ fried_total: number;
140
+ request_total: number;
141
+ referral_total: number;
142
+ poh_total: number;
143
+ referral_link: string;
144
+ }, Error>;
133
145
  declare const addContact: (friend_id: string | ContactType) => Promise<boolean>;
134
146
  declare const acceptContact: (friend_id: string | ContactType) => Promise<boolean>;
135
147
  declare const delContact: (friend_id: string | ContactType) => Promise<boolean>;
package/dist/index.css CHANGED
@@ -141,7 +141,7 @@ body {
141
141
  --matchid-wallet-transaction-bg: var(--matchid-white);
142
142
  --matchid-wallet-transaction-color: var(--matchid-black);
143
143
  /**tab**/
144
- --matchid-tab-color:var(--matchid-secondary-grey);
144
+ --matchid-tab-color: var(--matchid-secondary-grey);
145
145
  --matchid-tab-active-color: var(--matchid-highlight-orange);
146
146
 
147
147
 
@@ -509,6 +509,7 @@ body {
509
509
  font-weight: 500;
510
510
  background: none;
511
511
  min-width: 0;
512
+ border:0;
512
513
  @media screen and (max-width: 768px) {
513
514
  font-size: 16px;
514
515
  font-weight: 500;
@@ -1403,7 +1404,7 @@ body {
1403
1404
  right: 0px;
1404
1405
  bottom: 1px;
1405
1406
  @media screen and (max-width: 768px) {
1406
- wdth: 10px;
1407
+ width: 10px;
1407
1408
  height: 10px;
1408
1409
  }
1409
1410
  }
@@ -2026,39 +2027,52 @@ body {
2026
2027
  }
2027
2028
  }
2028
2029
 
2029
- .matchid-contact-item{
2030
+ .matchid-contact-item {
2030
2031
  justify-content: space-between;
2031
2032
  align-items: center;
2032
- padding:8px 16px;
2033
- .matchid-contact-item-content{
2034
- height:48px;
2033
+ padding: 8px 16px;
2034
+ @media screen and (max-width: 768px) {
2035
+ padding: 6px 12px;
2036
+ }
2037
+
2038
+ .matchid-contact-item-content {
2039
+ height: 48px;
2035
2040
  display: flex;
2036
- gap:16px;
2041
+ gap: 16px;
2037
2042
  align-items: center;
2038
- .matchid-contact-item-avatar{
2039
- width:48px;
2040
- height:48px;
2043
+ @media screen and (max-width: 768px) {
2044
+ height: 36px;
2045
+ }
2046
+
2047
+ .matchid-contact-item-avatar {
2048
+ width: 48px;
2049
+ height: 48px;
2041
2050
  border-radius: 50%;
2051
+ @media screen and (max-width: 768px) {
2052
+ height: 36px;
2053
+ width: 36px;
2054
+ }
2042
2055
  }
2043
- .matchid-contact-item-info{
2056
+
2057
+ .matchid-contact-item-info {
2044
2058
  display: flex;
2045
2059
  flex-direction: column;
2046
2060
  justify-content: space-between;
2047
- height:100%;
2048
- .matchid-contact-item-name{
2061
+ height: 100%;
2062
+
2063
+ .matchid-contact-item-name {
2049
2064
  font-size: 18px;
2050
2065
  font-weight: 500;
2051
2066
  color: var(--matchid-black);
2067
+ @media screen and (max-width: 768px) {
2068
+ font-size: 14px;
2069
+ }
2052
2070
  }
2053
- .matchid-contact-item-address{
2071
+
2072
+ .matchid-contact-item-address {
2054
2073
  font-size: 14px;
2055
2074
  color: var(--matchid-secondary-grey);
2056
- }
2057
- @media screen and (max-width: 768px) {
2058
- .matchid-contact-item-name{
2059
- font-size: 16px;
2060
- }
2061
- .matchid-contact-item-address{
2075
+ @media screen and (max-width: 768px) {
2062
2076
  font-size: 12px;
2063
2077
  }
2064
2078
  }
@@ -2067,45 +2081,138 @@ body {
2067
2081
 
2068
2082
  }
2069
2083
 
2070
- .matchid-nomore{
2084
+ .matchid-nomore {
2071
2085
  display: flex;
2072
2086
  justify-content: center;
2073
2087
  align-items: center;
2074
2088
  font-weight: 500;
2075
2089
  font-size: 16px;
2076
2090
  color: var(--matchid-secondary-grey);
2077
- padding:20px 0;
2091
+ padding: 20px 0;
2078
2092
  @media screen and (max-width: 768px) {
2079
2093
  font-size: 14px;
2080
2094
  }
2081
2095
  }
2082
2096
 
2083
- .matchid-tabs{
2084
- gap:36px;
2097
+ .matchid-tabs {
2098
+ gap: 36px;
2085
2099
  align-items: start;
2086
2100
  display: flex;
2087
2101
  }
2088
2102
 
2089
- .matchid-tab{
2090
- color:var(--matchid-tab-color);
2091
- font-weight:500;
2103
+ .matchid-tab {
2104
+ color: var(--matchid-tab-color);
2105
+ font-weight: 500;
2092
2106
  font-size: 20px;
2093
2107
  cursor: pointer;
2094
2108
 
2095
2109
  @media screen and (max-width: 768px) {
2096
2110
  font-size: 14px;
2097
- padding:10px 0;
2111
+ padding: 10px 0;
2098
2112
  }
2099
- &.matchid-tab-active{
2100
- color:var(--matchid-tab-active-color);
2113
+
2114
+ &.matchid-tab-active {
2115
+ color: var(--matchid-tab-active-color);
2101
2116
  border-bottom: 2px solid var(--matchid-tab-active-color);
2102
2117
  }
2103
2118
  }
2104
2119
 
2105
- .matchid-cursor-pointer{
2120
+ .matchid-cursor-pointer {
2106
2121
  cursor: pointer;
2107
2122
  }
2108
2123
 
2109
- .matchid-remove-box{
2110
- padding:0px 20px;
2111
- }
2124
+ .matchid-remove-box {
2125
+ padding: 0px 20px;
2126
+ min-width: 150px;
2127
+ display: flex;
2128
+ justify-content: center;
2129
+ }
2130
+
2131
+ .matchid-message-item {
2132
+ display: flex;
2133
+ width: 100%;
2134
+ background-color: #F8F8F8;
2135
+ flex-direction: column;
2136
+ gap: 8px;
2137
+ padding: 16px;
2138
+ border-radius: 12px;
2139
+ margin-bottom: 16px;
2140
+
2141
+ .matchid-message-item-content {
2142
+ display: flex;
2143
+ gap: 16px;
2144
+
2145
+ .matchid-message-item-content-message {
2146
+ font-size: 14px;
2147
+ color: black;
2148
+ flex: 1;
2149
+
2150
+ @media (min-width: 768px) {
2151
+ font-size: 16px;
2152
+ }
2153
+ }
2154
+
2155
+ .matchid-message-item-content-status {
2156
+ width: 8px;
2157
+
2158
+ .matchid-message-item-content-status-indicator {
2159
+ width: 8px;
2160
+ height: 8px;
2161
+ border-radius: 50%;
2162
+
2163
+ &.highlight {
2164
+ background-color: var(--matchid-highlight-orange);
2165
+ }
2166
+
2167
+ &.default {
2168
+ background-color: #D3D3D3;
2169
+ }
2170
+ }
2171
+ }
2172
+ }
2173
+
2174
+ .matchid-message-item-footer {
2175
+ display: flex;
2176
+ justify-content: space-between;
2177
+ font-size: 12px;
2178
+ color: var(--matchid-secondary-grey);
2179
+
2180
+ .matchid-message-item-footer-delete {
2181
+ cursor: pointer;
2182
+ display: none;
2183
+ }
2184
+ }
2185
+
2186
+ &:hover {
2187
+ .matchid-message-item-footer-delete {
2188
+ display: block;
2189
+ }
2190
+ }
2191
+ }
2192
+
2193
+ .matchid-message-list {
2194
+ display: flex;
2195
+ flex-direction: column;
2196
+ gap: 16px;
2197
+ }
2198
+
2199
+ .matchid-w-full {
2200
+ width: 100%;
2201
+ }
2202
+
2203
+ .matchid-confirm-modal {
2204
+ display: flex;
2205
+ flex-direction: column;
2206
+ font-size: 14px;
2207
+ color: black;
2208
+ gap: 8px;
2209
+ width: 100%;
2210
+ align-items: center;
2211
+ justify-content: center;
2212
+ @media (min-width: 768px) {
2213
+ font-size: 16px;
2214
+ gap: 12px;
2215
+ }
2216
+
2217
+ }
2218
+