@matchain/matchid-sdk-react 0.1.48-alpha.31 → 0.1.48-alpha.32
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 +1 -1
- package/dist/assets/icon/index.d.ts +1 -1
- package/dist/{chunk-KIVNILBF.mjs → chunk-5JUSQZS5.mjs} +7 -7
- package/dist/chunk-5JUSQZS5.mjs.map +1 -0
- package/dist/{chunk-YJV23RET.mjs → chunk-7GBTBRSQ.mjs} +2 -2
- package/dist/components/index.d.mts +3 -3
- package/dist/components/index.d.ts +3 -3
- package/dist/components/index.js +6 -6
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +2 -2
- package/dist/hooks/api/index.d.mts +2 -2
- package/dist/hooks/api/index.d.ts +2 -2
- package/dist/hooks/api/index.js +6 -6
- package/dist/hooks/api/index.js.map +1 -1
- package/dist/hooks/api/index.mjs +3 -3
- package/dist/hooks/index.d.mts +2 -2
- package/dist/hooks/index.d.ts +2 -2
- package/dist/hooks/index.js +6 -6
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +2 -2
- package/dist/{index-BcEreCxd.d.ts → index-3I6HO7pu.d.ts} +1 -1
- package/dist/{index-Bpmrd7mh.d.ts → index-BGhcUCaf.d.ts} +1 -1
- package/dist/{index-Cou96DpL.d.mts → index-BXUU8PRO.d.mts} +1 -1
- package/dist/{index-Cy3K-Yao.d.ts → index-C1SOElvD.d.ts} +1 -1
- package/dist/{index-C9F6f2iz.d.mts → index-CfNpZBzs.d.mts} +2 -2
- package/dist/{index-BMsj8hJv.d.ts → index-Cg9cddpr.d.ts} +2 -2
- package/dist/{index-BMfaixEx.d.mts → index-CiVpdQxz.d.mts} +1 -1
- package/dist/{index-DUHkH5t-.d.mts → index-CjCngqWS.d.mts} +1 -1
- package/dist/{index-DcQm2dkr.d.ts → index-GXwzr_ck.d.ts} +1 -1
- package/dist/{index-D4ju2J_e.d.mts → index-UiH7pXQW.d.mts} +1 -1
- package/dist/{index-Bvc8cjpN.d.ts → index-lY7YfVRh.d.ts} +2 -2
- package/dist/{index-C9qYyRgt.d.mts → index-u1AE9im5.d.mts} +2 -2
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -8
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/{types-DzVVzMYU.d.mts → types-pQHTwHLr.d.mts} +1 -1
- package/dist/{types-DzVVzMYU.d.ts → types-pQHTwHLr.d.ts} +1 -1
- package/dist/ui/index.d.mts +3 -3
- package/dist/ui/index.d.ts +3 -3
- package/package.json +1 -1
- package/dist/chunk-KIVNILBF.mjs.map +0 -1
- /package/dist/{chunk-YJV23RET.mjs.map → chunk-7GBTBRSQ.mjs.map} +0 -0
package/dist/hooks/api/index.mjs
CHANGED
|
@@ -2,15 +2,15 @@ import {
|
|
|
2
2
|
bind_exports,
|
|
3
3
|
poh_exports,
|
|
4
4
|
user_exports
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-7GBTBRSQ.mjs";
|
|
6
6
|
import {
|
|
7
7
|
isSuccess,
|
|
8
8
|
wallet_exports
|
|
9
|
-
} from "../../chunk-
|
|
10
|
-
import "../../chunk-UA6XHZHX.mjs";
|
|
9
|
+
} from "../../chunk-5JUSQZS5.mjs";
|
|
11
10
|
import "../../chunk-FB5MHLWX.mjs";
|
|
12
11
|
import "../../chunk-5JHHHLG4.mjs";
|
|
13
12
|
import "../../chunk-LHNKZISB.mjs";
|
|
13
|
+
import "../../chunk-UA6XHZHX.mjs";
|
|
14
14
|
import "../../chunk-J5LGTIGS.mjs";
|
|
15
15
|
export {
|
|
16
16
|
bind_exports as bind,
|
package/dist/hooks/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { c as useCopyClipboard, n as useLayout, f as useMatchChain, a as useMatchEvents, g as useMatchWallet, k as useMatchWalletAssetList, j as useMatchWalletAssets, h as useMatchWalletRecords, d as useModal, l as useReceipt, e as useToast, m as useTransaction, u as useUserInfo, b as useWallet } from '../index-
|
|
2
|
-
import '../types-
|
|
1
|
+
export { c as useCopyClipboard, n as useLayout, f as useMatchChain, a as useMatchEvents, g as useMatchWallet, k as useMatchWalletAssetList, j as useMatchWalletAssets, h as useMatchWalletRecords, d as useModal, l as useReceipt, e as useToast, m as useTransaction, u as useUserInfo, b as useWallet } from '../index-CjCngqWS.mjs';
|
|
2
|
+
import '../types-pQHTwHLr.mjs';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '@tanstack/react-query/src/types';
|
|
5
5
|
import 'viem';
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { c as useCopyClipboard, n as useLayout, f as useMatchChain, a as useMatchEvents, g as useMatchWallet, k as useMatchWalletAssetList, j as useMatchWalletAssets, h as useMatchWalletRecords, d as useModal, l as useReceipt, e as useToast, m as useTransaction, u as useUserInfo, b as useWallet } from '../index-
|
|
2
|
-
import '../types-
|
|
1
|
+
export { c as useCopyClipboard, n as useLayout, f as useMatchChain, a as useMatchEvents, g as useMatchWallet, k as useMatchWalletAssetList, j as useMatchWalletAssets, h as useMatchWalletRecords, d as useModal, l as useReceipt, e as useToast, m as useTransaction, u as useUserInfo, b as useWallet } from '../index-GXwzr_ck.js';
|
|
2
|
+
import '../types-pQHTwHLr.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '@tanstack/react-query/src/types';
|
|
5
5
|
import 'viem';
|
package/dist/hooks/index.js
CHANGED
|
@@ -1856,11 +1856,11 @@ function useUserInfo() {
|
|
|
1856
1856
|
return loginByMethod("google");
|
|
1857
1857
|
};
|
|
1858
1858
|
const loginByWallet = async () => {
|
|
1859
|
-
return window.open(`${endpoints.auth}login/wallet?appid=${appid}`);
|
|
1859
|
+
return window.open(`${endpoints.auth}login/wallet?appid=${appid}&locale=${locale}`);
|
|
1860
1860
|
};
|
|
1861
1861
|
const loginByTelegram = async () => {
|
|
1862
1862
|
return window.open(
|
|
1863
|
-
`${endpoints.auth}login/telegram?appid=${appid}`,
|
|
1863
|
+
`${endpoints.auth}login/telegram?appid=${appid}&locale=${locale}`,
|
|
1864
1864
|
// Replace with the actual authorization URL
|
|
1865
1865
|
"authWindow",
|
|
1866
1866
|
"width=800,height=600"
|
|
@@ -1871,7 +1871,7 @@ function useUserInfo() {
|
|
|
1871
1871
|
case "wallet":
|
|
1872
1872
|
return walletModalStore.open("login", extra?.methods);
|
|
1873
1873
|
case "evm":
|
|
1874
|
-
return window.open(`${endpoints.auth}login/wallet?appid=${appid}`);
|
|
1874
|
+
return window.open(`${endpoints.auth}login/wallet?appid=${appid}&locale=${locale}`);
|
|
1875
1875
|
case "sol":
|
|
1876
1876
|
return SOLOpen("login");
|
|
1877
1877
|
case "tron":
|
|
@@ -1932,14 +1932,14 @@ function useUserInfo() {
|
|
|
1932
1932
|
if (!token) {
|
|
1933
1933
|
throw new Error("You must login first");
|
|
1934
1934
|
}
|
|
1935
|
-
return window.open(`${endpoints.auth}bind/wallet?appid=${appid}&st=` + encodeURIComponent(encodeBase64(token)));
|
|
1935
|
+
return window.open(`${endpoints.auth}bind/wallet?appid=${appid}&locale=${locale}&st=` + encodeURIComponent(encodeBase64(token)));
|
|
1936
1936
|
};
|
|
1937
1937
|
const bindTelegram = async () => {
|
|
1938
1938
|
if (!token) {
|
|
1939
1939
|
throw new Error("You must login first");
|
|
1940
1940
|
}
|
|
1941
1941
|
const authWindow = window.open(
|
|
1942
|
-
`${endpoints.auth}bind/telegram?appid=${appid}&st=` + encodeURIComponent(encodeBase64(token)),
|
|
1942
|
+
`${endpoints.auth}bind/telegram?appid=${appid}&locale=${locale}&st=` + encodeURIComponent(encodeBase64(token)),
|
|
1943
1943
|
// Replace with the actual authorization URL
|
|
1944
1944
|
"authWindow",
|
|
1945
1945
|
"width=800,height=600"
|
|
@@ -1960,7 +1960,7 @@ function useUserInfo() {
|
|
|
1960
1960
|
case "wallet":
|
|
1961
1961
|
return walletModalStore.open("bind", extra?.methods);
|
|
1962
1962
|
case "evm":
|
|
1963
|
-
return window.open(`${endpoints.auth}bind/wallet?appid=${appid}&st=` + encodeURIComponent(encodeBase64(token)));
|
|
1963
|
+
return window.open(`${endpoints.auth}bind/wallet?appid=${appid}&locale=${locale}&st=` + encodeURIComponent(encodeBase64(token)));
|
|
1964
1964
|
case "sol":
|
|
1965
1965
|
return SOLOpen("bind");
|
|
1966
1966
|
case "tron":
|