@matchain/matchid-sdk-react 0.1.40-alpha.8 → 0.1.41

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 (33) 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-MF44ADCA.mjs → chunk-B2HVAJPQ.mjs} +2 -2
  4. package/dist/{chunk-OKOZY4RW.mjs → chunk-RYZFW6P6.mjs} +5 -2
  5. package/dist/{chunk-OKOZY4RW.mjs.map → chunk-RYZFW6P6.mjs.map} +1 -1
  6. package/dist/components/index.d.mts +2 -2
  7. package/dist/components/index.d.ts +2 -2
  8. package/dist/components/index.js +4 -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.map +1 -1
  18. package/dist/hooks/index.mjs +1 -1
  19. package/dist/{index-Cstk9nHt.d.mts → index-C3KZYrtu.d.mts} +1 -1
  20. package/dist/{index-TFllRsbX.d.mts → index-COlsBC-b.d.mts} +1 -1
  21. package/dist/{index-DC_1BPN0.d.ts → index-DoF5jRoi.d.ts} +1 -1
  22. package/dist/{index-CdzHWQ8o.d.ts → index-Dq9Swg8r.d.ts} +1 -1
  23. package/dist/{index-CPh9cui0.d.ts → index-fS75Swm8.d.ts} +1 -1
  24. package/dist/{index-DYxqLc-m.d.mts → index-fl6SNIZC.d.mts} +1 -1
  25. package/dist/index.d.mts +4 -4
  26. package/dist/index.d.ts +4 -4
  27. package/dist/index.js +4 -1
  28. package/dist/index.js.map +1 -1
  29. package/dist/index.mjs +5 -5
  30. package/dist/{types.d-DiCO-2z2.d.mts → types.d-CLO_WLka.d.mts} +1 -1
  31. package/dist/{types.d-DiCO-2z2.d.ts → types.d-CLO_WLka.d.ts} +1 -1
  32. package/package.json +1 -1
  33. /package/dist/{chunk-MF44ADCA.mjs.map → chunk-B2HVAJPQ.mjs.map} +0 -0
@@ -4,7 +4,7 @@ import {
4
4
  useMatchEvents,
5
5
  useUserInfo,
6
6
  useWallet
7
- } from "../chunk-OKOZY4RW.mjs";
7
+ } from "../chunk-RYZFW6P6.mjs";
8
8
  import "../chunk-DPXMCLYK.mjs";
9
9
  import "../chunk-J5LGTIGS.mjs";
10
10
  export {
@@ -1,6 +1,6 @@
1
1
  import * as _tanstack_react_query from '@tanstack/react-query';
2
2
  import { UseQueryOptions } from '@tanstack/react-query/src/types';
3
- import { m as PohZkpassParams, n as BindItemType, o as BindInfoType, p as PohItemType } from './types.d-DiCO-2z2.mjs';
3
+ import { m as PohZkpassParams, n as BindItemType, o as BindInfoType, p as PohItemType } from './types.d-CLO_WLka.mjs';
4
4
 
5
5
  interface MyResponseType<T> {
6
6
  code: number;
@@ -1,5 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { E as EmailModalProps, d as InputProps, B as ButtonProps, M as ModalProps, e as ModalWithHeaderProps, P as PopoverProps, f as LoginBoxProps, g as OtherLoginMethodType, R as RecommendLoginMethodType, W as WalletType, h as PopoverPositionType, i as PopoverTypeType, j as LoginPanelProps, k as LoginModalProps } from './types.d-DiCO-2z2.mjs';
2
+ import { E as EmailModalProps, b as InputProps, B as ButtonProps, M as ModalProps, c as ModalWithHeaderProps, P as PopoverProps, d as LoginBoxProps, O as OtherLoginMethodType, R as RecommendLoginMethodType, W as WalletType, e as PopoverPositionType, f as PopoverTypeType, g as LoginPanelProps, h as LoginModalProps } from './types.d-CLO_WLka.mjs';
3
3
  import { ReactNode, PropsWithChildren } from 'react';
4
4
 
5
5
  declare function EmailModal({ isOpen, width, onClose, onBack, onLogin }: EmailModalProps): react_jsx_runtime.JSX.Element;
@@ -1,4 +1,4 @@
1
- import { b as ISocialLoginMethod, O as OverviewInfo, C as CEXType, c as LoginMethodType, I as IMatchEvents } from './types.d-DiCO-2z2.js';
1
+ import { i as ISocialLoginMethod, j as OverviewInfo, C as CEXType, k as LoginMethodType, I as IMatchEvents } from './types.d-CLO_WLka.js';
2
2
  import * as viem from 'viem';
3
3
  import { SignableMessage, Hex, TransactionSerializable, Account } from 'viem';
4
4
 
@@ -1,6 +1,6 @@
1
1
  import * as _tanstack_react_query from '@tanstack/react-query';
2
2
  import { UseQueryOptions } from '@tanstack/react-query/src/types';
3
- import { m as PohZkpassParams, n as BindItemType, o as BindInfoType, p as PohItemType } from './types.d-DiCO-2z2.js';
3
+ import { m as PohZkpassParams, n as BindItemType, o as BindInfoType, p as PohItemType } from './types.d-CLO_WLka.js';
4
4
 
5
5
  interface MyResponseType<T> {
6
6
  code: number;
@@ -1,5 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { E as EmailModalProps, d as InputProps, B as ButtonProps, M as ModalProps, e as ModalWithHeaderProps, P as PopoverProps, f as LoginBoxProps, g as OtherLoginMethodType, R as RecommendLoginMethodType, W as WalletType, h as PopoverPositionType, i as PopoverTypeType, j as LoginPanelProps, k as LoginModalProps } from './types.d-DiCO-2z2.js';
2
+ import { E as EmailModalProps, b as InputProps, B as ButtonProps, M as ModalProps, c as ModalWithHeaderProps, P as PopoverProps, d as LoginBoxProps, O as OtherLoginMethodType, R as RecommendLoginMethodType, W as WalletType, e as PopoverPositionType, f as PopoverTypeType, g as LoginPanelProps, h as LoginModalProps } from './types.d-CLO_WLka.js';
3
3
  import { ReactNode, PropsWithChildren } from 'react';
4
4
 
5
5
  declare function EmailModal({ isOpen, width, onClose, onBack, onLogin }: EmailModalProps): react_jsx_runtime.JSX.Element;
@@ -1,4 +1,4 @@
1
- import { b as ISocialLoginMethod, O as OverviewInfo, C as CEXType, c as LoginMethodType, I as IMatchEvents } from './types.d-DiCO-2z2.mjs';
1
+ import { i as ISocialLoginMethod, j as OverviewInfo, C as CEXType, k as LoginMethodType, I as IMatchEvents } from './types.d-CLO_WLka.mjs';
2
2
  import * as viem from 'viem';
3
3
  import { SignableMessage, Hex, TransactionSerializable, Account } from 'viem';
4
4
 
package/dist/index.d.mts CHANGED
@@ -1,8 +1,8 @@
1
1
  import React, { ReactNode } from 'react';
2
- import { I as IMatchEvents, a as IEnvConfigType, L as LocaleType } from './types.d-DiCO-2z2.mjs';
3
- export { i as Components } from './index-TFllRsbX.mjs';
4
- export { i as Hooks } from './index-DYxqLc-m.mjs';
5
- export { i as Api } from './index-Cstk9nHt.mjs';
2
+ import { I as IMatchEvents, a as IEnvConfigType, L as LocaleType } from './types.d-CLO_WLka.mjs';
3
+ export { i as Components } from './index-COlsBC-b.mjs';
4
+ export { i as Hooks } from './index-fl6SNIZC.mjs';
5
+ export { i as Api } from './index-C3KZYrtu.mjs';
6
6
  export { i as Chains } from './index-DXRGMAbv.mjs';
7
7
  import 'react/jsx-runtime';
8
8
  import 'viem';
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import React, { ReactNode } from 'react';
2
- import { I as IMatchEvents, a as IEnvConfigType, L as LocaleType } from './types.d-DiCO-2z2.js';
3
- export { i as Components } from './index-CPh9cui0.js';
4
- export { i as Hooks } from './index-DC_1BPN0.js';
5
- export { i as Api } from './index-CdzHWQ8o.js';
2
+ import { I as IMatchEvents, a as IEnvConfigType, L as LocaleType } from './types.d-CLO_WLka.js';
3
+ export { i as Components } from './index-fS75Swm8.js';
4
+ export { i as Hooks } from './index-DoF5jRoi.js';
5
+ export { i as Api } from './index-Dq9Swg8r.js';
6
6
  export { i as Chains } from './index-DXRGMAbv.js';
7
7
  import 'react/jsx-runtime';
8
8
  import 'viem';
package/dist/index.js CHANGED
@@ -3737,9 +3737,12 @@ function WalletContent2({
3737
3737
  disconnect: tonConnectUI.disconnect,
3738
3738
  address: userFriendlyAddress,
3739
3739
  visible: state.status == "opened",
3740
- setVisible: (v) => {
3740
+ setVisible: async (v) => {
3741
3741
  console.log("setVisible", v);
3742
3742
  if (v) {
3743
+ if (wallet) {
3744
+ await tonConnectUI.disconnect();
3745
+ }
3743
3746
  setStatus("");
3744
3747
  statusRef.current = "";
3745
3748
  open();