@matchain/matchid-sdk-react 0.1.56-alpha.6 → 0.1.56-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.
- package/example/package.json +1 -2
- package/example/src/pages/Wallet/index.tsx +90 -88
- package/example/yarn.lock +2251 -27
- package/package.json +7 -4
- package/dist/api.d.mts +0 -6
- package/dist/api.d.ts +0 -6
- package/dist/api.js +0 -1721
- package/dist/api.js.map +0 -1
- package/dist/api.mjs +0 -23
- package/dist/api.mjs.map +0 -1
- package/dist/assets/lottie.d.mts +0 -1
- package/dist/assets/lottie.d.ts +0 -1
- package/dist/assets/lottie.js +0 -68
- package/dist/assets/lottie.js.map +0 -1
- package/dist/assets/lottie.mjs +0 -22
- package/dist/assets/lottie.mjs.map +0 -1
- package/dist/chains.d.mts +0 -2
- package/dist/chains.d.ts +0 -2
- package/dist/chains.js +0 -94
- package/dist/chains.js.map +0 -1
- package/dist/chains.mjs +0 -11
- package/dist/chains.mjs.map +0 -1
- package/dist/chunk-3CR66BEX.mjs +0 -19
- package/dist/chunk-3CR66BEX.mjs.map +0 -1
- package/dist/chunk-GD7URBBZ.mjs +0 -1399
- package/dist/chunk-GD7URBBZ.mjs.map +0 -1
- package/dist/chunk-HBOS3RBL.mjs +0 -19
- package/dist/chunk-HBOS3RBL.mjs.map +0 -1
- package/dist/chunk-IZOOVZAD.mjs +0 -145
- package/dist/chunk-IZOOVZAD.mjs.map +0 -1
- package/dist/chunk-J5LGTIGS.mjs +0 -10
- package/dist/chunk-J5LGTIGS.mjs.map +0 -1
- package/dist/chunk-JX73EY6V.mjs +0 -67
- package/dist/chunk-JX73EY6V.mjs.map +0 -1
- package/dist/chunk-KFB23MLQ.mjs +0 -7666
- package/dist/chunk-KFB23MLQ.mjs.map +0 -1
- package/dist/chunk-NYE6DBEZ.mjs +0 -97
- package/dist/chunk-NYE6DBEZ.mjs.map +0 -1
- package/dist/chunk-UA6XHZHX.mjs +0 -17
- package/dist/chunk-UA6XHZHX.mjs.map +0 -1
- package/dist/chunk-XM6CYEXN.mjs +0 -53
- package/dist/chunk-XM6CYEXN.mjs.map +0 -1
- package/dist/components.d.mts +0 -6
- package/dist/components.d.ts +0 -6
- package/dist/components.js +0 -6494
- package/dist/components.js.map +0 -1
- package/dist/components.mjs +0 -57
- package/dist/components.mjs.map +0 -1
- package/dist/hooks.d.mts +0 -13
- package/dist/hooks.d.ts +0 -13
- package/dist/hooks.js +0 -3612
- package/dist/hooks.js.map +0 -1
- package/dist/hooks.mjs +0 -41
- package/dist/hooks.mjs.map +0 -1
- package/dist/icon.d.mts +0 -5
- package/dist/icon.d.ts +0 -5
- package/dist/icon.js +0 -1414
- package/dist/icon.js.map +0 -1
- package/dist/icon.mjs +0 -112
- package/dist/icon.mjs.map +0 -1
- package/dist/index-B50DU_xT.d.mts +0 -83
- package/dist/index-B50DU_xT.d.ts +0 -83
- package/dist/index-BcuSCgol.d.ts +0 -111
- package/dist/index-BlMLqmS2.d.mts +0 -3341
- package/dist/index-C1Nyy5zx.d.ts +0 -3341
- package/dist/index-CBcBTQyU.d.mts +0 -66
- package/dist/index-CD0dACxf.d.mts +0 -111
- package/dist/index-CER00guz.d.mts +0 -132
- package/dist/index-CHgaOUiW.d.mts +0 -52590
- package/dist/index-CHgaOUiW.d.ts +0 -52590
- package/dist/index-CjekOYJl.d.mts +0 -38
- package/dist/index-DN-jrh8-.d.ts +0 -213
- package/dist/index-DdN22cwf.d.ts +0 -38
- package/dist/index-DkIIQLbh.d.ts +0 -92
- package/dist/index-DlaCsN95.d.ts +0 -66
- package/dist/index-lh6qBAf_.d.mts +0 -92
- package/dist/index-o0WW1c5O.d.ts +0 -132
- package/dist/index-xThRnNN3.d.mts +0 -213
- package/dist/index.css +0 -2131
- package/dist/index.d.mts +0 -789
- package/dist/index.d.ts +0 -789
- package/dist/index.js +0 -9206
- package/dist/index.js.map +0 -1
- package/dist/index.mjs +0 -45
- package/dist/index.mjs.map +0 -1
- package/dist/request-B0CyrGFT.d.mts +0 -15
- package/dist/request-B0CyrGFT.d.ts +0 -15
- package/dist/types-CheN9vHJ.d.mts +0 -428
- package/dist/types-CheN9vHJ.d.ts +0 -428
- package/dist/types.d.mts +0 -3
- package/dist/types.d.ts +0 -3
- package/dist/types.js +0 -44
- package/dist/types.js.map +0 -1
- package/dist/types.mjs +0 -11
- package/dist/types.mjs.map +0 -1
- package/dist/ui.d.mts +0 -7
- package/dist/ui.d.ts +0 -7
- package/dist/ui.js +0 -1682
- package/dist/ui.js.map +0 -1
- package/dist/ui.mjs +0 -47
- package/dist/ui.mjs.map +0 -1
- package/dist/utils.d.mts +0 -28
- package/dist/utils.d.ts +0 -28
- package/dist/utils.js +0 -192
- package/dist/utils.js.map +0 -1
- package/dist/utils.mjs +0 -34
- package/dist/utils.mjs.map +0 -1
- package/example/package-lock.json +0 -2965
package/dist/chunk-NYE6DBEZ.mjs
DELETED
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
bindCexApi,
|
|
3
|
-
chooseIdentityApi,
|
|
4
|
-
getBindInfoApi,
|
|
5
|
-
getBindListApi,
|
|
6
|
-
getPohListApi,
|
|
7
|
-
isSuccess,
|
|
8
|
-
mintPassportNftApi,
|
|
9
|
-
unBindApi,
|
|
10
|
-
unBindWalletApi,
|
|
11
|
-
useUserInfo,
|
|
12
|
-
verifyPohApi,
|
|
13
|
-
wallet_exports
|
|
14
|
-
} from "./chunk-KFB23MLQ.mjs";
|
|
15
|
-
import {
|
|
16
|
-
__export
|
|
17
|
-
} from "./chunk-J5LGTIGS.mjs";
|
|
18
|
-
|
|
19
|
-
// src/hooks/api/index.ts
|
|
20
|
-
var api_exports = {};
|
|
21
|
-
__export(api_exports, {
|
|
22
|
-
bind: () => bind_exports,
|
|
23
|
-
isSuccess: () => isSuccess,
|
|
24
|
-
poh: () => poh_exports,
|
|
25
|
-
user: () => user_exports,
|
|
26
|
-
wallet: () => wallet_exports
|
|
27
|
-
});
|
|
28
|
-
|
|
29
|
-
// src/hooks/api/bind.ts
|
|
30
|
-
var bind_exports = {};
|
|
31
|
-
__export(bind_exports, {
|
|
32
|
-
bindCexApi: () => bindCexApi,
|
|
33
|
-
unBindApi: () => unBindApi,
|
|
34
|
-
unBindWalletApi: () => unBindWalletApi,
|
|
35
|
-
useBindInfo: () => useBindInfo,
|
|
36
|
-
useBindList: () => useBindList
|
|
37
|
-
});
|
|
38
|
-
import { useQuery } from "@tanstack/react-query";
|
|
39
|
-
function useBindList(options) {
|
|
40
|
-
const { isLogin } = useUserInfo();
|
|
41
|
-
return useQuery({
|
|
42
|
-
queryKey: ["bindList"],
|
|
43
|
-
enabled: isLogin,
|
|
44
|
-
queryFn: async () => {
|
|
45
|
-
let res = await getBindListApi();
|
|
46
|
-
return res.data;
|
|
47
|
-
},
|
|
48
|
-
...options
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
function useBindInfo(options) {
|
|
52
|
-
const { isLogin } = useUserInfo();
|
|
53
|
-
return useQuery({
|
|
54
|
-
queryKey: ["bindInfo"],
|
|
55
|
-
enabled: isLogin,
|
|
56
|
-
queryFn: async () => {
|
|
57
|
-
let res = await getBindInfoApi();
|
|
58
|
-
return res.data;
|
|
59
|
-
},
|
|
60
|
-
...options
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
// src/hooks/api/poh.ts
|
|
65
|
-
var poh_exports = {};
|
|
66
|
-
__export(poh_exports, {
|
|
67
|
-
usePohList: () => usePohList,
|
|
68
|
-
verifyPohApi: () => verifyPohApi
|
|
69
|
-
});
|
|
70
|
-
import { useQuery as useQuery2 } from "@tanstack/react-query";
|
|
71
|
-
function usePohList(options) {
|
|
72
|
-
const { isLogin } = useUserInfo();
|
|
73
|
-
return useQuery2({
|
|
74
|
-
queryKey: ["pohList"],
|
|
75
|
-
enabled: isLogin,
|
|
76
|
-
queryFn: async () => {
|
|
77
|
-
let res = await getPohListApi();
|
|
78
|
-
return res.data;
|
|
79
|
-
},
|
|
80
|
-
...options
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
// src/hooks/api/user.ts
|
|
85
|
-
var user_exports = {};
|
|
86
|
-
__export(user_exports, {
|
|
87
|
-
chooseIdentityApi: () => chooseIdentityApi,
|
|
88
|
-
mintPassportNftApi: () => mintPassportNftApi
|
|
89
|
-
});
|
|
90
|
-
|
|
91
|
-
export {
|
|
92
|
-
bind_exports,
|
|
93
|
-
poh_exports,
|
|
94
|
-
user_exports,
|
|
95
|
-
api_exports
|
|
96
|
-
};
|
|
97
|
-
//# sourceMappingURL=chunk-NYE6DBEZ.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/hooks/api/index.ts","../src/hooks/api/bind.ts","../src/hooks/api/poh.ts","../src/hooks/api/user.ts"],"sourcesContent":["export * as bind from \"./bind\";\nexport * as poh from \"./poh\";\nexport * as user from \"./user\";\nexport * as wallet from \"./wallet\";\nexport {isSuccess} from \"../../api/request\"","import {useQuery} from \"@tanstack/react-query\";\nimport useUserInfo from \"../useUserInfo\";\nimport type {UseQueryOptions} from \"@tanstack/react-query/src/types\";\nimport {BindInfoType, BindItemType} from \"../../types/types\";\nimport {getBindInfoApi, getBindListApi} from \"../../api\";\n\nexport {bindCexApi, unBindApi, unBindWalletApi} from \"../../api\";\n\nexport function useBindList(options?: Partial<Omit<UseQueryOptions<BindItemType[]>, 'queryKey' | 'queryFn'>>) {\n const {isLogin} = useUserInfo()\n return useQuery<BindItemType[]>({\n queryKey: ['bindList'],\n enabled: isLogin,\n queryFn: async () => {\n let res = await getBindListApi()\n return res.data\n },\n ...options\n })\n}\n\nexport function useBindInfo(options?: Partial<Omit<UseQueryOptions<BindInfoType>, 'queryKey' | 'queryFn'>>) {\n const {isLogin} = useUserInfo()\n return useQuery<BindInfoType>({\n queryKey: ['bindInfo'],\n enabled: isLogin,\n queryFn: async () => {\n let res = await getBindInfoApi()\n return res.data\n },\n ...options\n })\n}\n","import {useQuery} from \"@tanstack/react-query\";\nimport useUserInfo from \"../useUserInfo\";\nimport type {UseQueryOptions} from \"@tanstack/react-query/src/types\";\nimport {PohItemType} from \"types/types\";\nimport {getPohListApi} from \"api\";\nexport {verifyPohApi} from \"api\";\n\nexport function usePohList(options?: Partial<Omit<UseQueryOptions<PohItemType[]>, 'queryKey' | 'queryFn'>>) {\n const {isLogin} = useUserInfo()\n return useQuery<PohItemType[]>({\n queryKey: ['pohList'],\n enabled: isLogin,\n queryFn: async () => {\n let res = await getPohListApi()\n return res.data\n },\n ...options\n })\n}","export {mintPassportNftApi,chooseIdentityApi} from \"api\""],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SAAQ,gBAAe;AAQhB,SAAS,YAAY,SAAkF;AAC1G,QAAM,EAAC,QAAO,IAAI,YAAY;AAC9B,SAAO,SAAyB;AAAA,IAC5B,UAAU,CAAC,UAAU;AAAA,IACrB,SAAS;AAAA,IACT,SAAS,YAAY;AACjB,UAAI,MAAM,MAAM,eAAe;AAC/B,aAAO,IAAI;AAAA,IACf;AAAA,IACA,GAAG;AAAA,EACP,CAAC;AACL;AAEO,SAAS,YAAY,SAAgF;AACxG,QAAM,EAAC,QAAO,IAAI,YAAY;AAC9B,SAAO,SAAuB;AAAA,IAC1B,UAAU,CAAC,UAAU;AAAA,IACrB,SAAS;AAAA,IACT,SAAS,YAAY;AACjB,UAAI,MAAM,MAAM,eAAe;AAC/B,aAAO,IAAI;AAAA,IACf;AAAA,IACA,GAAG;AAAA,EACP,CAAC;AACL;;;AChCA;AAAA;AAAA;AAAA;AAAA;AAAA,SAAQ,YAAAA,iBAAe;AAOhB,SAAS,WAAW,SAAiF;AACxG,QAAM,EAAC,QAAO,IAAI,YAAY;AAC9B,SAAOC,UAAwB;AAAA,IAC3B,UAAU,CAAC,SAAS;AAAA,IACpB,SAAS;AAAA,IACT,SAAS,YAAY;AACjB,UAAI,MAAM,MAAM,cAAc;AAC9B,aAAO,IAAI;AAAA,IACf;AAAA,IACA,GAAG;AAAA,EACP,CAAC;AACL;;;AClBA;AAAA;AAAA;AAAA;AAAA;","names":["useQuery","useQuery"]}
|
package/dist/chunk-UA6XHZHX.mjs
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
// src/types/mpc.ts
|
|
2
|
-
var ChainType = /* @__PURE__ */ ((ChainType2) => {
|
|
3
|
-
ChainType2["Ethereum"] = "ethereum";
|
|
4
|
-
ChainType2["Solana"] = "solana";
|
|
5
|
-
return ChainType2;
|
|
6
|
-
})(ChainType || {});
|
|
7
|
-
var RecoveryType = /* @__PURE__ */ ((RecoveryType2) => {
|
|
8
|
-
RecoveryType2["Base"] = "base_generated_recovery_key";
|
|
9
|
-
RecoveryType2["UserPasscode"] = "user_passcode_recovery_key";
|
|
10
|
-
return RecoveryType2;
|
|
11
|
-
})(RecoveryType || {});
|
|
12
|
-
|
|
13
|
-
export {
|
|
14
|
-
ChainType,
|
|
15
|
-
RecoveryType
|
|
16
|
-
};
|
|
17
|
-
//# sourceMappingURL=chunk-UA6XHZHX.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/types/mpc.ts"],"sourcesContent":["export interface AuthParams {\n AppId: string;\n AppClientId: string;\n UserId: string;\n AccessToken: string;\n Address?: string;\n}\n\nexport interface EmbeddedWalletsParams {\n Url: string;\n}\nexport enum ChainType {\n Ethereum = \"ethereum\",\n Solana = \"solana\"\n}\nexport enum RecoveryType {\n Base = \"base_generated_recovery_key\",\n UserPasscode = \"user_passcode_recovery_key\"\n}\n// export type ChainType = \"ethereum\" | \"solana\";\n// export type RecoveryType = \"base_generated_recovery_key\" | \"user_passcode_recovery_key\""],"mappings":";AAWO,IAAK,YAAL,kBAAKA,eAAL;AACH,EAAAA,WAAA,cAAW;AACX,EAAAA,WAAA,YAAS;AAFD,SAAAA;AAAA,GAAA;AAIL,IAAK,eAAL,kBAAKC,kBAAL;AACH,EAAAA,cAAA,UAAO;AACP,EAAAA,cAAA,kBAAe;AAFP,SAAAA;AAAA,GAAA;","names":["ChainType","RecoveryType"]}
|