@matchain/matchid-sdk-react 0.1.42-alpha.15 → 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.
Files changed (39) hide show
  1. package/dist/assets/icon/index.d.mts +1 -1
  2. package/dist/assets/icon/index.d.ts +1 -1
  3. package/dist/{chunk-5MBBID4C.mjs → chunk-UCIEZ3XI.mjs} +22 -19
  4. package/dist/chunk-UCIEZ3XI.mjs.map +1 -0
  5. package/dist/{chunk-5QJKCJWO.mjs → chunk-WCS3X2LC.mjs} +2 -2
  6. package/dist/components/index.d.mts +2 -2
  7. package/dist/components/index.d.ts +2 -2
  8. package/dist/components/index.js +2 -1
  9. package/dist/components/index.js.map +1 -1
  10. package/dist/components/index.mjs +1 -1
  11. package/dist/hooks/api/index.d.mts +2 -2
  12. package/dist/hooks/api/index.d.ts +2 -2
  13. package/dist/hooks/api/index.js.map +1 -1
  14. package/dist/hooks/api/index.mjs +2 -2
  15. package/dist/hooks/index.d.mts +2 -2
  16. package/dist/hooks/index.d.ts +2 -2
  17. package/dist/hooks/index.js +8 -6
  18. package/dist/hooks/index.js.map +1 -1
  19. package/dist/hooks/index.mjs +1 -1
  20. package/dist/{index-DnK10Gz7.d.mts → index-Bluim2ZP.d.mts} +1 -1
  21. package/dist/{index-DzVjb4K-.d.ts → index-BxS06a5O.d.ts} +1 -1
  22. package/dist/{index-x432SkFJ.d.ts → index-CLvQH5gM.d.ts} +1 -1
  23. package/dist/{index-BQDL8XkC.d.ts → index-Ca9nh_8s.d.ts} +1 -1
  24. package/dist/{index-Rb-jdkzE.d.mts → index-DFZpfAfc.d.mts} +1 -1
  25. package/dist/{index-C1NfMaCm.d.mts → index-DlhAHm_s.d.mts} +1 -1
  26. package/dist/{index-ivTptZeo.d.ts → index-EqksEEto.d.ts} +1 -1
  27. package/dist/{index-DAj3aVo6.d.mts → index-q5XDobUF.d.mts} +1 -1
  28. package/dist/index.d.mts +5 -5
  29. package/dist/index.d.ts +5 -5
  30. package/dist/index.js +2 -1
  31. package/dist/index.js.map +1 -1
  32. package/dist/index.mjs +2 -2
  33. package/dist/types/index.d.mts +1 -1
  34. package/dist/types/index.d.ts +1 -1
  35. package/dist/{types-E2MeOwmE.d.mts → types-CVwZEgQ0.d.mts} +1 -1
  36. package/dist/{types-E2MeOwmE.d.ts → types-CVwZEgQ0.d.ts} +1 -1
  37. package/package.json +1 -1
  38. package/dist/chunk-5MBBID4C.mjs.map +0 -1
  39. /package/dist/{chunk-5QJKCJWO.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-E2MeOwmE.mjs';
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-E2MeOwmE.js';
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
 
@@ -4741,4 +4744,4 @@ export {
4741
4744
  MatchProvider,
4742
4745
  useMatch
4743
4746
  };
4744
- //# sourceMappingURL=chunk-5MBBID4C.mjs.map
4747
+ //# sourceMappingURL=chunk-UCIEZ3XI.mjs.map