@matchain/matchid-sdk-react 0.1.42-alpha.15 → 0.1.42-alpha.17

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-KITTHHSR.mjs} +44 -31
  4. package/dist/chunk-KITTHHSR.mjs.map +1 -0
  5. package/dist/{chunk-5QJKCJWO.mjs → chunk-L3G6YN2D.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 +3 -2
  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 +24 -13
  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-L3G6YN2D.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({
@@ -658,7 +678,7 @@ function PasswordModal({
658
678
  ) }),
659
679
  /* @__PURE__ */ jsx6(Field, { label: intl.formatMessage({
660
680
  id: "rePassword"
661
- }), error: rePassword.length > 0 ? rePasswordError || error : error, children: /* @__PURE__ */ jsx6(
681
+ }), error: !walletReady ? intl.formatMessage({ id: "walletLoading" }) : rePassword.length > 0 ? rePasswordError || error : error, children: /* @__PURE__ */ jsx6(
662
682
  Input,
663
683
  {
664
684
  placeholder: 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",
@@ -703,6 +723,7 @@ function RecoveryModal({
703
723
  const [password, setPassword] = useState4("");
704
724
  const { recoveryEmbeddedWallets, initCore } = useWallet();
705
725
  const [error, setError] = useState4("");
726
+ const { walletReady } = useStore_default();
706
727
  const intl = useIntl2();
707
728
  const passwordError = useMemo2(() => {
708
729
  if (password.length < 6) return intl.formatMessage({
@@ -751,7 +772,7 @@ function RecoveryModal({
751
772
  Field,
752
773
  {
753
774
  label: intl.formatMessage({ id: "password" }),
754
- error: password.length > 0 ? passwordError || error : error,
775
+ error: !walletReady ? intl.formatMessage({ id: "walletLoading" }) : password.length > 0 ? passwordError || error : error,
755
776
  children: /* @__PURE__ */ jsx7(
756
777
  Input,
757
778
  {
@@ -767,7 +788,7 @@ function RecoveryModal({
767
788
  /* @__PURE__ */ jsx7(
768
789
  Button,
769
790
  {
770
- disabled: password.length == 0 || !!passwordError,
791
+ disabled: password.length == 0 || !!passwordError || !walletReady,
771
792
  highlight: true,
772
793
  block: true,
773
794
  size: "lg",
@@ -779,23 +800,6 @@ function RecoveryModal({
779
800
  ] }) });
780
801
  }
781
802
 
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
803
  // src/store/useModalStore.ts
800
804
  import { create as create3 } from "zustand";
801
805
 
@@ -3932,7 +3936,8 @@ var en_default = {
3932
3936
  CEXBindApiKey: "API Key",
3933
3937
  CEXBindApiSecretKey: "API Secret Key",
3934
3938
  CEXBindApiPassphrase: "API Passphrase",
3935
- cancel: "Cancel"
3939
+ cancel: "Cancel",
3940
+ walletLoading: "Wallet service is loading"
3936
3941
  };
3937
3942
 
3938
3943
  // src/i18n/zh.json
@@ -3983,7 +3988,8 @@ var zh_default = {
3983
3988
  CEXBindApiKey: "API \u5BC6\u94A5",
3984
3989
  CEXBindApiSecretKey: "API \u79D8\u94A5",
3985
3990
  CEXBindApiPassphrase: "API \u5BC6\u7801\u77ED\u8BED",
3986
- cancel: "\u53D6\u6D88"
3991
+ cancel: "\u53D6\u6D88",
3992
+ walletLoading: "\u94B1\u5305\u670D\u52A1\u6B63\u5728\u52A0\u8F7D"
3987
3993
  };
3988
3994
 
3989
3995
  // src/i18n/tw.json
@@ -4034,7 +4040,8 @@ var tw_default = {
4034
4040
  CEXBindApiKey: "API \u91D1\u9470",
4035
4041
  CEXBindApiSecretKey: "API \u5BC6\u9470",
4036
4042
  CEXBindApiPassphrase: "API \u5BC6\u78BC\u77ED\u8A9E",
4037
- cancel: "\u53D6\u6D88"
4043
+ cancel: "\u53D6\u6D88",
4044
+ walletLoading: "\u9322\u5305\u670D\u52D9\u6B63\u5728\u52A0\u8F09"
4038
4045
  };
4039
4046
 
4040
4047
  // src/i18n/fr.json
@@ -4085,7 +4092,8 @@ var fr_default = {
4085
4092
  CEXBindApiKey: "Cl\xE9 API",
4086
4093
  CEXBindApiSecretKey: "Cl\xE9 Secr\xE8te API",
4087
4094
  CEXBindApiPassphrase: "Phrase secr\xE8te API",
4088
- cancel: "Annuler"
4095
+ cancel: "Annuler",
4096
+ walletLoading: "Le service de portefeuille est en cours de chargement"
4089
4097
  };
4090
4098
 
4091
4099
  // src/i18n/ja.json
@@ -4136,7 +4144,8 @@ var ja_default = {
4136
4144
  CEXBindApiKey: "API \u30AD\u30FC",
4137
4145
  CEXBindApiSecretKey: "API \u30B7\u30FC\u30AF\u30EC\u30C3\u30C8\u30AD\u30FC",
4138
4146
  CEXBindApiPassphrase: "API \u30D1\u30B9\u30D5\u30EC\u30FC\u30BA",
4139
- cancel: "\u30AD\u30E3\u30F3\u30BB\u30EB"
4147
+ cancel: "\u30AD\u30E3\u30F3\u30BB\u30EB",
4148
+ walletLoading: "\u30A6\u30A9\u30EC\u30C3\u30C8\u30B5\u30FC\u30D3\u30B9\u3092\u8AAD\u307F\u8FBC\u3093\u3067\u3044\u307E\u3059"
4140
4149
  };
4141
4150
 
4142
4151
  // src/i18n/ko.json
@@ -4187,7 +4196,8 @@ var ko_default = {
4187
4196
  CEXBindApiKey: "API \uD0A4",
4188
4197
  CEXBindApiSecretKey: "API \uBE44\uBC00 \uD0A4",
4189
4198
  CEXBindApiPassphrase: "API \uC554\uD638 \uAD6C\uBB38",
4190
- cancel: "\uCDE8\uC18C"
4199
+ cancel: "\uCDE8\uC18C",
4200
+ walletLoading: "\uC9C0\uAC11 \uC11C\uBE44\uC2A4\uB97C \uBD88\uB7EC\uC624\uB294 \uC911"
4191
4201
  };
4192
4202
 
4193
4203
  // src/i18n/vi.json
@@ -4238,7 +4248,8 @@ var vi_default = {
4238
4248
  CEXBindApiKey: "Kh\xF3a API",
4239
4249
  CEXBindApiSecretKey: "Kh\xF3a b\xED m\u1EADt API",
4240
4250
  CEXBindApiPassphrase: "C\u1EE5m m\u1EADt kh\u1EA9u API",
4241
- cancel: "H\u1EE7y"
4251
+ cancel: "H\u1EE7y",
4252
+ walletLoading: "D\u1ECBch v\u1EE5 v\xED \u0111ang t\u1EA3i"
4242
4253
  };
4243
4254
 
4244
4255
  // src/i18n/es.json
@@ -4289,7 +4300,8 @@ var es_default = {
4289
4300
  CEXBindApiKey: "Clave API",
4290
4301
  CEXBindApiSecretKey: "Clave Secreta API",
4291
4302
  CEXBindApiPassphrase: "Frase de contrase\xF1a API",
4292
- cancel: "Cancelar"
4303
+ cancel: "Cancelar",
4304
+ walletLoading: "El servicio de cartera se est\xE1 cargando"
4293
4305
  };
4294
4306
 
4295
4307
  // src/i18n/pt.json
@@ -4340,7 +4352,8 @@ var pt_default = {
4340
4352
  CEXBindApiKey: "Chave API",
4341
4353
  CEXBindApiSecretKey: "Chave Secreta API",
4342
4354
  CEXBindApiPassphrase: "Senha de API",
4343
- cancel: "Cancelar"
4355
+ cancel: "Cancelar",
4356
+ walletLoading: "O servi\xE7o de carteira est\xE1 carregando"
4344
4357
  };
4345
4358
 
4346
4359
  // src/i18n/index.ts
@@ -4741,4 +4754,4 @@ export {
4741
4754
  MatchProvider,
4742
4755
  useMatch
4743
4756
  };
4744
- //# sourceMappingURL=chunk-5MBBID4C.mjs.map
4757
+ //# sourceMappingURL=chunk-KITTHHSR.mjs.map