@matchain/matchid-sdk-react 0.1.48-alpha.7 → 0.1.48-alpha.8

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 (50) 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-2CK7JQWH.mjs → chunk-EY6NPX4M.mjs} +240 -41
  4. package/dist/chunk-EY6NPX4M.mjs.map +1 -0
  5. package/dist/{chunk-YXPWZXPT.mjs → chunk-J5U7AXYA.mjs} +2 -2
  6. package/dist/components/index.d.mts +3 -3
  7. package/dist/components/index.d.ts +3 -3
  8. package/dist/components/index.js +3 -2
  9. package/dist/components/index.js.map +1 -1
  10. package/dist/components/index.mjs +1 -1
  11. package/dist/hooks/api/index.d.mts +2 -2
  12. package/dist/hooks/api/index.d.ts +2 -2
  13. package/dist/hooks/api/index.js +33 -2
  14. package/dist/hooks/api/index.js.map +1 -1
  15. package/dist/hooks/api/index.mjs +2 -2
  16. package/dist/hooks/index.d.mts +3 -2
  17. package/dist/hooks/index.d.ts +3 -2
  18. package/dist/hooks/index.js +299 -41
  19. package/dist/hooks/index.js.map +1 -1
  20. package/dist/hooks/index.mjs +1 -1
  21. package/dist/{index-DCeOyAw8.d.ts → index-Bbn2Stvu.d.ts} +2 -2
  22. package/dist/index-Bz53bbI_.d.ts +3268 -0
  23. package/dist/{index-B8DYrhSW.d.mts → index-C-YCr0xJ.d.mts} +12 -4
  24. package/dist/{index-DbG5IjhP.d.mts → index-CB4j_ONH.d.mts} +1 -1
  25. package/dist/{index-B-s1k4Da.d.mts → index-CKyWWkzU.d.mts} +3 -2
  26. package/dist/{index-BZrddrq-.d.mts → index-C_S7k6z2.d.mts} +2 -2
  27. package/dist/{index-BHvCA7F9.d.ts → index-D-uNr-JV.d.ts} +2 -2
  28. package/dist/index-DDV4F9ka.d.mts +3268 -0
  29. package/dist/{index-DG_gyw1q.d.ts → index-DV_mRu4y.d.ts} +3 -2
  30. package/dist/{index-Bzcc-y8m.d.ts → index-DcxdJ0m2.d.ts} +1 -1
  31. package/dist/{index-BvLpvebq.d.mts → index-Dzvj-uGt.d.mts} +2 -2
  32. package/dist/{index-Cwx2p8th.d.ts → index-zRpvDpIK.d.ts} +12 -4
  33. package/dist/index.css +11 -0
  34. package/dist/index.d.mts +8 -7
  35. package/dist/index.d.ts +8 -7
  36. package/dist/index.js +244 -45
  37. package/dist/index.js.map +1 -1
  38. package/dist/index.mjs +2 -2
  39. package/dist/types/index.d.mts +1 -1
  40. package/dist/types/index.d.ts +1 -1
  41. package/dist/{types-CHkU0WHZ.d.mts → types-B4BYNw8B.d.mts} +13 -2
  42. package/dist/{types-CHkU0WHZ.d.ts → types-B4BYNw8B.d.ts} +13 -2
  43. package/dist/ui/index.d.mts +3 -3
  44. package/dist/ui/index.d.ts +3 -3
  45. package/example/src/pages/Wallet/components/MatchWallet.tsx +2 -1
  46. package/package.json +1 -1
  47. package/dist/chunk-2CK7JQWH.mjs.map +0 -1
  48. package/dist/index-DaEFoDv_.d.ts +0 -187
  49. package/dist/index-DktvxNJc.d.mts +0 -187
  50. /package/dist/{chunk-YXPWZXPT.mjs.map → chunk-J5U7AXYA.mjs.map} +0 -0
@@ -10,7 +10,7 @@ import {
10
10
  TRONModal,
11
11
  UsernameModal,
12
12
  WalletModal
13
- } from "../chunk-2CK7JQWH.mjs";
13
+ } from "../chunk-EY6NPX4M.mjs";
14
14
  import "../chunk-UA6XHZHX.mjs";
15
15
  import {
16
16
  Button,
@@ -1,5 +1,5 @@
1
- export { b as bind, a as isSuccess, p as poh, u as user, w as wallet } from '../../index-B8DYrhSW.mjs';
1
+ export { b as bind, a as isSuccess, p as poh, u as user, w as wallet } from '../../index-C-YCr0xJ.mjs';
2
2
  import '@tanstack/react-query';
3
3
  import '@tanstack/react-query/src/types';
4
- import '../../types-CHkU0WHZ.mjs';
4
+ import '../../types-B4BYNw8B.mjs';
5
5
  import 'react';
@@ -1,5 +1,5 @@
1
- export { b as bind, a as isSuccess, p as poh, u as user, w as wallet } from '../../index-Cwx2p8th.js';
1
+ export { b as bind, a as isSuccess, p as poh, u as user, w as wallet } from '../../index-zRpvDpIK.js';
2
2
  import '@tanstack/react-query';
3
3
  import '@tanstack/react-query/src/types';
4
- import '../../types-CHkU0WHZ.js';
4
+ import '../../types-B4BYNw8B.js';
5
5
  import 'react';
@@ -388,6 +388,13 @@ var getWalletChainListApi = () => {
388
388
  method: "POST"
389
389
  });
390
390
  };
391
+ var getWalletNftListApi = (data) => {
392
+ return request_default({
393
+ url: `/api/v1/wallet/nfts`,
394
+ method: "POST",
395
+ data
396
+ });
397
+ };
391
398
 
392
399
  // src/store/useLocalStore.ts
393
400
  var persistedState = (0, import_middleware.persist)(
@@ -779,6 +786,7 @@ __export(wallet_exports, {
779
786
  useChainListQuery: () => useChainListQuery,
780
787
  useImportTokenListQuery: () => useImportTokenListQuery,
781
788
  useWalletChainListQuery: () => useWalletChainListQuery,
789
+ useWalletNftListQuery: () => useWalletNftListQuery,
782
790
  userImportTokenApi: () => userImportTokenApi
783
791
  });
784
792
  var import_react_query2 = require("@tanstack/react-query");
@@ -848,9 +856,32 @@ function useWalletChainListQuery(options) {
848
856
  ...options
849
857
  });
850
858
  }
859
+ function useWalletNftListQuery({
860
+ chainId,
861
+ address: address2,
862
+ ...options
863
+ }) {
864
+ const { isLogin, token } = useUserInfo();
865
+ return (0, import_react_query2.useQuery)({
866
+ queryKey: ["match-wallet-nft-list", token, chainId, address2],
867
+ queryFn: async () => {
868
+ const res = await getWalletNftListApi({
869
+ chain_id: chainId.toString(),
870
+ address: address2
871
+ });
872
+ if (!isSuccess(res)) {
873
+ return [];
874
+ }
875
+ return res.data;
876
+ },
877
+ enabled: isLogin,
878
+ ...options
879
+ });
880
+ }
851
881
 
852
882
  // src/hooks/useMatchChain.tsx
853
883
  var import_react12 = require("react");
884
+ var import_viem5 = require("viem");
854
885
  var import_jsx_runtime62 = require("react/jsx-runtime");
855
886
 
856
887
  // src/components/EmailModal/index.tsx
@@ -1018,13 +1049,13 @@ var import_jsx_runtime79 = require("react/jsx-runtime");
1018
1049
  // src/hooks/useReceipt.tsx
1019
1050
  var import_react29 = require("react");
1020
1051
  var import_react_query4 = require("@tanstack/react-query");
1021
- var import_viem5 = require("viem");
1052
+ var import_viem6 = require("viem");
1022
1053
  var CACHE_TTL = 86400 * 30 * 1e3;
1023
1054
 
1024
1055
  // src/hooks/useTransaction.tsx
1025
1056
  var import_react30 = require("react");
1026
1057
  var import_react_query5 = require("@tanstack/react-query");
1027
- var import_viem6 = require("viem");
1058
+ var import_viem7 = require("viem");
1028
1059
  var CACHE_TTL2 = 86400 * 30 * 1e3;
1029
1060
 
1030
1061
  // src/components/CEXBindModal/index.tsx