@matchain/matchid-sdk-react 0.1.42-alpha.5 → 0.1.42-alpha.7
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-GEM2V3W6.mjs → chunk-3IT55D2W.mjs} +53 -12
- package/dist/chunk-3IT55D2W.mjs.map +1 -0
- package/dist/{chunk-FZUZ63FZ.mjs → chunk-YUGXHHVO.mjs} +2 -2
- package/dist/components/index.d.mts +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.js +20 -5
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +1 -1
- package/dist/hooks/api/index.js.map +1 -1
- package/dist/hooks/api/index.mjs +2 -2
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +1 -1
- package/dist/{index-CGpyQlbI.d.mts → index-CmH9iRLd.d.mts} +12 -8
- package/dist/{index--yBVwkf9.d.ts → index-DY_ReBra.d.ts} +12 -8
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +47 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
- package/dist/chunk-GEM2V3W6.mjs.map +0 -1
- /package/dist/{chunk-FZUZ63FZ.mjs.map → chunk-YUGXHHVO.mjs.map} +0 -0
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
unBindWalletApi,
|
|
10
10
|
useUserInfo,
|
|
11
11
|
verifyPohApi
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-3IT55D2W.mjs";
|
|
13
13
|
import {
|
|
14
14
|
__export
|
|
15
15
|
} from "./chunk-J5LGTIGS.mjs";
|
|
@@ -90,4 +90,4 @@ export {
|
|
|
90
90
|
user_exports,
|
|
91
91
|
api_exports
|
|
92
92
|
};
|
|
93
|
-
//# sourceMappingURL=chunk-
|
|
93
|
+
//# sourceMappingURL=chunk-YUGXHHVO.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { g as BTCModal, B as Button, E as EmailModal, F as Field, I as Input, L as LoginBox, b as LoginButton, d as LoginModal, c as LoginPanel, M as Modal, a as ModalWithHeader, O as Overlay, e as PasswordModal, P as Popover, S as SOLModal, f as TONModal, T as TRONModal, U as UsernameModal } from '../index-
|
|
1
|
+
export { g as BTCModal, B as Button, E as EmailModal, F as Field, I as Input, L as LoginBox, b as LoginButton, d as LoginModal, c as LoginPanel, M as Modal, a as ModalWithHeader, O as Overlay, e as PasswordModal, P as Popover, S as SOLModal, f as TONModal, T as TRONModal, U as UsernameModal } from '../index-CmH9iRLd.mjs';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import '../types-CVwZEgQ0.mjs';
|
|
4
4
|
import 'react';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { g as BTCModal, B as Button, E as EmailModal, F as Field, I as Input, L as LoginBox, b as LoginButton, d as LoginModal, c as LoginPanel, M as Modal, a as ModalWithHeader, O as Overlay, e as PasswordModal, P as Popover, S as SOLModal, f as TONModal, T as TRONModal, U as UsernameModal } from '../index
|
|
1
|
+
export { g as BTCModal, B as Button, E as EmailModal, F as Field, I as Input, L as LoginBox, b as LoginButton, d as LoginModal, c as LoginPanel, M as Modal, a as ModalWithHeader, O as Overlay, e as PasswordModal, P as Popover, S as SOLModal, f as TONModal, T as TRONModal, U as UsernameModal } from '../index-DY_ReBra.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import '../types-CVwZEgQ0.js';
|
|
4
4
|
import 'react';
|
package/dist/components/index.js
CHANGED
|
@@ -3307,7 +3307,10 @@ function WalletContent({
|
|
|
3307
3307
|
try {
|
|
3308
3308
|
setStatus("nonce");
|
|
3309
3309
|
statusRef.current = "nonce";
|
|
3310
|
-
const res = type == "bind" ? await getWalletInitApi({
|
|
3310
|
+
const res = type == "bind" ? await getWalletInitApi({
|
|
3311
|
+
address,
|
|
3312
|
+
type: "SOL"
|
|
3313
|
+
}) : await getWalletNonceApi({ address, type: "SOL" });
|
|
3311
3314
|
if (!isSuccess(res)) {
|
|
3312
3315
|
throw new Error(res.message);
|
|
3313
3316
|
}
|
|
@@ -3411,7 +3414,7 @@ var wallets = [
|
|
|
3411
3414
|
new import_wallet_adapter_wallets.TrustWalletAdapter(),
|
|
3412
3415
|
new import_wallet_adapter_wallets.XDEFIWalletAdapter()
|
|
3413
3416
|
];
|
|
3414
|
-
function
|
|
3417
|
+
function SOLConnectModal({
|
|
3415
3418
|
type = "login",
|
|
3416
3419
|
onSuccess,
|
|
3417
3420
|
...props
|
|
@@ -3423,6 +3426,9 @@ function SOLModal({
|
|
|
3423
3426
|
name: "SOL"
|
|
3424
3427
|
}), children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_wallet_adapter_react.ConnectionProvider, { endpoint: (0, import_web3.clusterApiUrl)("devnet"), children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_wallet_adapter_react.WalletProvider, { wallets, autoConnect: true, children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_wallet_adapter_react_ui.WalletModalProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(WalletContent, { onSuccess, type }) }) }) }) });
|
|
3425
3428
|
}
|
|
3429
|
+
function SOLModal(props) {
|
|
3430
|
+
return props.isOpen && /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(SOLConnectModal, { ...props });
|
|
3431
|
+
}
|
|
3426
3432
|
|
|
3427
3433
|
// src/components/TRONModal/index.tsx
|
|
3428
3434
|
var import_react27 = __toESM(require("react"));
|
|
@@ -3537,7 +3543,7 @@ var useTRONWallet = () => {
|
|
|
3537
3543
|
|
|
3538
3544
|
// src/components/TRONModal/index.tsx
|
|
3539
3545
|
var import_jsx_runtime72 = require("react/jsx-runtime");
|
|
3540
|
-
function
|
|
3546
|
+
function TRONConnectModal({
|
|
3541
3547
|
type = "login",
|
|
3542
3548
|
onSuccess,
|
|
3543
3549
|
...props
|
|
@@ -3688,6 +3694,9 @@ function TRONModal({
|
|
|
3688
3694
|
})
|
|
3689
3695
|
] }) }) });
|
|
3690
3696
|
}
|
|
3697
|
+
function TRONModal(props) {
|
|
3698
|
+
return props.isOpen && /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(TRONConnectModal, { ...props, type: "" });
|
|
3699
|
+
}
|
|
3691
3700
|
|
|
3692
3701
|
// src/components/TONModal/index.tsx
|
|
3693
3702
|
var import_react28 = __toESM(require("react"));
|
|
@@ -3846,7 +3855,7 @@ function WalletContent2({
|
|
|
3846
3855
|
}
|
|
3847
3856
|
);
|
|
3848
3857
|
}
|
|
3849
|
-
function
|
|
3858
|
+
function TONConnectModal({
|
|
3850
3859
|
type = "login",
|
|
3851
3860
|
onSuccess,
|
|
3852
3861
|
...props
|
|
@@ -3866,6 +3875,9 @@ function TONModal({
|
|
|
3866
3875
|
}
|
|
3867
3876
|
) });
|
|
3868
3877
|
}
|
|
3878
|
+
function TONModal(props) {
|
|
3879
|
+
return props.isOpen && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(TONConnectModal, { ...props });
|
|
3880
|
+
}
|
|
3869
3881
|
|
|
3870
3882
|
// src/components/BTCModal/index.tsx
|
|
3871
3883
|
var import_react30 = __toESM(require("react"));
|
|
@@ -4053,7 +4065,7 @@ var useBTCWallet = () => {
|
|
|
4053
4065
|
|
|
4054
4066
|
// src/components/BTCModal/index.tsx
|
|
4055
4067
|
var import_jsx_runtime74 = require("react/jsx-runtime");
|
|
4056
|
-
function
|
|
4068
|
+
function BTCConnectModal({
|
|
4057
4069
|
type = "login",
|
|
4058
4070
|
onSuccess,
|
|
4059
4071
|
...props
|
|
@@ -4212,6 +4224,9 @@ function BTCModal({
|
|
|
4212
4224
|
})
|
|
4213
4225
|
] }) }) });
|
|
4214
4226
|
}
|
|
4227
|
+
function BTCModal(props) {
|
|
4228
|
+
return props.isOpen && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(BTCConnectModal, { ...props });
|
|
4229
|
+
}
|
|
4215
4230
|
// Annotate the CommonJS export names for ESM import in node:
|
|
4216
4231
|
0 && (module.exports = {
|
|
4217
4232
|
BTCModal,
|