@matchain/matchid-sdk-react 0.1.42-alpha.14 → 0.1.42-alpha.16
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-DWW3ZAJJ.mjs → chunk-UCIEZ3XI.mjs} +24 -21
- package/dist/chunk-UCIEZ3XI.mjs.map +1 -0
- package/dist/{chunk-A747P2WS.mjs → chunk-WCS3X2LC.mjs} +2 -2
- package/dist/components/index.d.mts +2 -2
- package/dist/components/index.d.ts +2 -2
- package/dist/components/index.js +2 -1
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +1 -1
- package/dist/hooks/api/index.d.mts +2 -2
- package/dist/hooks/api/index.d.ts +2 -2
- package/dist/hooks/api/index.js.map +1 -1
- package/dist/hooks/api/index.mjs +2 -2
- package/dist/hooks/index.d.mts +2 -2
- package/dist/hooks/index.d.ts +2 -2
- package/dist/hooks/index.js +8 -6
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +1 -1
- package/dist/{index-DnK10Gz7.d.mts → index-Bluim2ZP.d.mts} +1 -1
- package/dist/{index-DzVjb4K-.d.ts → index-BxS06a5O.d.ts} +1 -1
- package/dist/{index-x432SkFJ.d.ts → index-CLvQH5gM.d.ts} +1 -1
- package/dist/{index-BQDL8XkC.d.ts → index-Ca9nh_8s.d.ts} +1 -1
- package/dist/{index-Rb-jdkzE.d.mts → index-DFZpfAfc.d.mts} +1 -1
- package/dist/{index-C1NfMaCm.d.mts → index-DlhAHm_s.d.mts} +1 -1
- package/dist/{index-ivTptZeo.d.ts → index-EqksEEto.d.ts} +1 -1
- package/dist/{index-DAj3aVo6.d.mts → index-q5XDobUF.d.mts} +1 -1
- package/dist/index.d.mts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/{types-E2MeOwmE.d.mts → types-CVwZEgQ0.d.mts} +1 -1
- package/dist/{types-E2MeOwmE.d.ts → types-CVwZEgQ0.d.ts} +1 -1
- package/package.json +1 -1
- package/dist/chunk-DWW3ZAJJ.mjs.map +0 -1
- /package/dist/{chunk-A747P2WS.mjs.map → chunk-WCS3X2LC.mjs.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import React, { CSSProperties } from 'react';
|
|
3
|
-
import { s as IconProps$1 } from '../../types-
|
|
3
|
+
import { s as IconProps$1 } from '../../types-CVwZEgQ0.mjs';
|
|
4
4
|
|
|
5
5
|
declare function BackIcon({ color, size, className, style }: {
|
|
6
6
|
color?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import React, { CSSProperties } from 'react';
|
|
3
|
-
import { s as IconProps$1 } from '../../types-
|
|
3
|
+
import { s as IconProps$1 } from '../../types-CVwZEgQ0.js';
|
|
4
4
|
|
|
5
5
|
declare function BackIcon({ color, size, className, style }: {
|
|
6
6
|
color?: string;
|
|
@@ -578,6 +578,25 @@ function Button({
|
|
|
578
578
|
|
|
579
579
|
// src/components/PasswordModal/index.tsx
|
|
580
580
|
import { FormattedMessage, useIntl } from "react-intl";
|
|
581
|
+
|
|
582
|
+
// src/store/useStore.ts
|
|
583
|
+
import { create as create2 } from "zustand";
|
|
584
|
+
var useStore = create2((set) => ({
|
|
585
|
+
walletReady: false,
|
|
586
|
+
setWalletReady: (inited) => set({ walletReady: inited }),
|
|
587
|
+
recoveryModal: {
|
|
588
|
+
open: false,
|
|
589
|
+
success: async () => {
|
|
590
|
+
},
|
|
591
|
+
close: async () => {
|
|
592
|
+
}
|
|
593
|
+
},
|
|
594
|
+
setRecoveryModal: (params) => set({ recoveryModal: params }),
|
|
595
|
+
closeRecoveryModal: () => set({ recoveryModal: { open: false } })
|
|
596
|
+
}));
|
|
597
|
+
var useStore_default = useStore;
|
|
598
|
+
|
|
599
|
+
// src/components/PasswordModal/index.tsx
|
|
581
600
|
import { jsx as jsx6, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
582
601
|
function PasswordModal({
|
|
583
602
|
title,
|
|
@@ -593,6 +612,7 @@ function PasswordModal({
|
|
|
593
612
|
const [rePassword, setRePassword] = useState3("");
|
|
594
613
|
const [error, setError] = useState3("");
|
|
595
614
|
const { generateEmbeddedWallets, initCore } = useWallet();
|
|
615
|
+
const { walletReady } = useStore_default();
|
|
596
616
|
const intl = useIntl();
|
|
597
617
|
const passwordError = useMemo(() => {
|
|
598
618
|
if (password.length < 6) return intl.formatMessage({
|
|
@@ -674,7 +694,7 @@ function PasswordModal({
|
|
|
674
694
|
/* @__PURE__ */ jsx6(
|
|
675
695
|
Button,
|
|
676
696
|
{
|
|
677
|
-
disabled: password.length == 0 || !!passwordError || !!rePasswordError,
|
|
697
|
+
disabled: password.length == 0 || !!passwordError || !!rePasswordError || !walletReady,
|
|
678
698
|
highlight: true,
|
|
679
699
|
block: true,
|
|
680
700
|
size: "lg",
|
|
@@ -779,23 +799,6 @@ function RecoveryModal({
|
|
|
779
799
|
] }) });
|
|
780
800
|
}
|
|
781
801
|
|
|
782
|
-
// src/store/useStore.ts
|
|
783
|
-
import { create as create2 } from "zustand";
|
|
784
|
-
var useStore = create2((set) => ({
|
|
785
|
-
walletReady: false,
|
|
786
|
-
setWalletReady: (inited) => set({ walletReady: inited }),
|
|
787
|
-
recoveryModal: {
|
|
788
|
-
open: false,
|
|
789
|
-
success: async () => {
|
|
790
|
-
},
|
|
791
|
-
close: async () => {
|
|
792
|
-
}
|
|
793
|
-
},
|
|
794
|
-
setRecoveryModal: (params) => set({ recoveryModal: params }),
|
|
795
|
-
closeRecoveryModal: () => set({ recoveryModal: { open: false } })
|
|
796
|
-
}));
|
|
797
|
-
var useStore_default = useStore;
|
|
798
|
-
|
|
799
802
|
// src/store/useModalStore.ts
|
|
800
803
|
import { create as create3 } from "zustand";
|
|
801
804
|
|
|
@@ -3248,7 +3251,7 @@ function BusinessProvider({ children }) {
|
|
|
3248
3251
|
onClose: WalletModalStore.close,
|
|
3249
3252
|
type: WalletModalStore.type,
|
|
3250
3253
|
methods: WalletModalStore.methods,
|
|
3251
|
-
zIndex:
|
|
3254
|
+
zIndex: 150
|
|
3252
3255
|
}
|
|
3253
3256
|
),
|
|
3254
3257
|
children
|
|
@@ -3822,10 +3825,10 @@ function useInit({
|
|
|
3822
3825
|
token: res.data.token || `${res.data.token_type} ${res.data.access_token}`
|
|
3823
3826
|
});
|
|
3824
3827
|
} else if (res.event == "bind") {
|
|
3828
|
+
walletModalStore.close();
|
|
3825
3829
|
eventManager_default.emit("onBind", res.data);
|
|
3826
3830
|
if (events && events.onBind) {
|
|
3827
3831
|
events.onBind(res.data);
|
|
3828
|
-
walletModalStore.close();
|
|
3829
3832
|
}
|
|
3830
3833
|
}
|
|
3831
3834
|
};
|
|
@@ -4741,4 +4744,4 @@ export {
|
|
|
4741
4744
|
MatchProvider,
|
|
4742
4745
|
useMatch
|
|
4743
4746
|
};
|
|
4744
|
-
//# sourceMappingURL=chunk-
|
|
4747
|
+
//# sourceMappingURL=chunk-UCIEZ3XI.mjs.map
|