@matchain/matchid-sdk-react 0.1.42-alpha.2 → 0.1.42-alpha.4
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/{chunk-2YN5Y3SM.mjs → chunk-FZUZ63FZ.mjs} +2 -2
- package/dist/chunk-GEM2V3W6.mjs +4638 -0
- package/dist/chunk-GEM2V3W6.mjs.map +1 -0
- package/dist/chunk-SQIJR7RA.mjs +29 -0
- package/dist/chunk-SQIJR7RA.mjs.map +1 -0
- package/dist/components/index.js +647 -452
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +4 -1
- package/dist/hooks/api/index.js +113 -76
- package/dist/hooks/api/index.js.map +1 -1
- package/dist/hooks/api/index.mjs +3 -2
- package/dist/hooks/index.js +321 -151
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +2 -1
- package/dist/index.css +84 -4
- package/dist/index.js +1033 -625
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -2
- package/dist/types/index.js +44 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/index.mjs +10 -0
- package/dist/types/index.mjs.map +1 -0
- package/example/package.json +1 -0
- package/example/src/App.tsx +54 -28
- package/example/src/components/ButtonGroup/index.tsx +10 -0
- package/example/src/components/Login/index.tsx +2 -2
- package/example/src/components/RoutePrivate/index.tsx +4 -3
- package/example/src/config/chains/index.ts +2 -0
- package/example/src/config/chains/matchMain.ts +27 -0
- package/example/src/config/chains/matchTest.ts +33 -0
- package/example/src/config/index.ts +6 -2
- package/example/src/pages/User/components/BindListModal.tsx +10 -0
- package/example/src/pages/User/components/PohListModal.tsx +10 -0
- package/example/src/pages/User/components/QueryDisplay.tsx +25 -0
- package/example/src/pages/{User.tsx → User/index.tsx} +55 -84
- package/example/src/pages/Wallet.tsx +133 -44
- package/example/src/store/useLocalStore.ts +45 -0
- package/package.json +7 -2
- package/dist/assets/icon/index.d.mts +0 -133
- package/dist/assets/icon/index.d.ts +0 -133
- package/dist/chunk-PZPEWHBV.mjs +0 -4251
- package/dist/chunk-PZPEWHBV.mjs.map +0 -1
- package/dist/components/index.d.mts +0 -4
- package/dist/components/index.d.ts +0 -4
- package/dist/config/chains/index.d.mts +0 -2
- package/dist/config/chains/index.d.ts +0 -2
- package/dist/hooks/api/index.d.mts +0 -5
- package/dist/hooks/api/index.d.ts +0 -5
- package/dist/hooks/index.d.mts +0 -4
- package/dist/hooks/index.d.ts +0 -4
- package/dist/index-B4YpKSY3.d.ts +0 -94
- package/dist/index-CxY3u9Rv.d.ts +0 -89
- package/dist/index-DCReY5T2.d.mts +0 -89
- package/dist/index-DXRGMAbv.d.mts +0 -83
- package/dist/index-DXRGMAbv.d.ts +0 -83
- package/dist/index-DbjibQ5d.d.mts +0 -65
- package/dist/index-GcpJCj6O.d.ts +0 -65
- package/dist/index-_k6h9w0P.d.mts +0 -94
- package/dist/index.d.mts +0 -33
- package/dist/index.d.ts +0 -33
- package/dist/types.d-DwF-Pkvh.d.mts +0 -179
- package/dist/types.d-DwF-Pkvh.d.ts +0 -179
- /package/dist/{chunk-2YN5Y3SM.mjs.map → chunk-FZUZ63FZ.mjs.map} +0 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__export
|
|
3
|
+
} from "./chunk-J5LGTIGS.mjs";
|
|
4
|
+
|
|
5
|
+
// src/types/index.ts
|
|
6
|
+
var types_exports = {};
|
|
7
|
+
__export(types_exports, {
|
|
8
|
+
ChainType: () => ChainType,
|
|
9
|
+
RecoveryType: () => RecoveryType
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
// src/types/mpc.ts
|
|
13
|
+
var ChainType = /* @__PURE__ */ ((ChainType2) => {
|
|
14
|
+
ChainType2["Ethereum"] = "ethereum";
|
|
15
|
+
ChainType2["Solana"] = "solana";
|
|
16
|
+
return ChainType2;
|
|
17
|
+
})(ChainType || {});
|
|
18
|
+
var RecoveryType = /* @__PURE__ */ ((RecoveryType2) => {
|
|
19
|
+
RecoveryType2["Base"] = "base_generated_recovery_key";
|
|
20
|
+
RecoveryType2["UserPasscode"] = "user_passcode_recovery_key";
|
|
21
|
+
return RecoveryType2;
|
|
22
|
+
})(RecoveryType || {});
|
|
23
|
+
|
|
24
|
+
export {
|
|
25
|
+
ChainType,
|
|
26
|
+
RecoveryType,
|
|
27
|
+
types_exports
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=chunk-SQIJR7RA.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/types/index.ts","../src/types/mpc.ts"],"sourcesContent":["export * from \"./mpc\"\nexport * from \"./types\"","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":";;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACWO,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"]}
|