@matchain/matchid-sdk-react 0.1.42-alpha.11 → 0.1.42-alpha.13
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-HJ337PTX.mjs → chunk-EZHR56PJ.mjs} +316 -232
- package/dist/chunk-EZHR56PJ.mjs.map +1 -0
- package/dist/{chunk-PBNKRURB.mjs → chunk-FNCYUW2N.mjs} +2 -2
- package/dist/components/index.d.mts +2 -2
- package/dist/components/index.d.ts +2 -2
- package/dist/components/index.js +303 -230
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +6 -4
- package/dist/hooks/api/index.d.mts +2 -2
- package/dist/hooks/api/index.d.ts +2 -2
- package/dist/hooks/api/index.js +52 -30
- package/dist/hooks/api/index.js.map +1 -1
- package/dist/hooks/api/index.mjs +3 -3
- package/dist/hooks/index.d.mts +2 -2
- package/dist/hooks/index.d.ts +2 -2
- package/dist/hooks/index.js +78 -46
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +2 -2
- package/dist/{index-BxS06a5O.d.ts → index-B1MrvbwC.d.ts} +1 -1
- package/dist/{index-Ca9nh_8s.d.ts → index-Bm1VurYT.d.ts} +1 -1
- package/dist/{index-DFZpfAfc.d.mts → index-Bmq8JOtv.d.mts} +1 -1
- package/dist/{index-CmH9iRLd.d.mts → index-Cf6kfHOs.d.mts} +10 -3
- package/dist/{index-q5XDobUF.d.mts → index-DEwNjx57.d.mts} +1 -1
- package/dist/{index-DY_ReBra.d.ts → index-FtmjKzbF.d.ts} +10 -3
- package/dist/{index-Bhnio7tx.d.ts → index-oiyw9mSV.d.ts} +7 -3
- package/dist/{index-B2B4VJ-u.d.mts → index-vnxEmUFX.d.mts} +7 -3
- package/dist/index.d.mts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +372 -289
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -6
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/{types-CVwZEgQ0.d.mts → types-DHfZWETj.d.mts} +1 -1
- package/dist/{types-CVwZEgQ0.d.ts → types-DHfZWETj.d.ts} +1 -1
- package/example/src/config/index.ts +1 -0
- package/package.json +1 -1
- package/dist/chunk-HJ337PTX.mjs.map +0 -1
- /package/dist/{chunk-PBNKRURB.mjs.map → chunk-FNCYUW2N.mjs.map} +0 -0
package/dist/hooks/index.mjs
CHANGED
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
useMatchEvents,
|
|
5
5
|
useUserInfo,
|
|
6
6
|
useWallet
|
|
7
|
-
} from "../chunk-
|
|
8
|
-
import "../chunk-SQIJR7RA.mjs";
|
|
7
|
+
} from "../chunk-EZHR56PJ.mjs";
|
|
9
8
|
import "../chunk-DPXMCLYK.mjs";
|
|
9
|
+
import "../chunk-SQIJR7RA.mjs";
|
|
10
10
|
import "../chunk-J5LGTIGS.mjs";
|
|
11
11
|
export {
|
|
12
12
|
useCopyClipboard,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A as AuthParams, C as ChainType, E as EmbeddedWalletsParams, R as RecoveryType } from './mpc-CTbBWHld.js';
|
|
2
|
-
import { A as AnyObject,
|
|
2
|
+
import { A as AnyObject, n as BindInfoType, o as BindItemType, p as BindWalletParam, B as ButtonProps, C as CEXType, D as DeepPartial, q as DrawerProps, E as EmailModalProps, a as IEnvConfigType, r as IEnvName, s as ILoginWalletReq, I as IMatchEvents, b as ISocialLoginMethod, m as IconProps, d as InputProps, L as LocaleType, f as LoginBoxProps, c as LoginMethodType, l as LoginModalProps, k as LoginPanelProps, t as MessageType, M as ModalProps, e as ModalWithHeaderProps, g as OtherLoginMethodType, O as OverviewInfo, u as PohItemType, v as PohZkpassParams, i as PopoverPositionType, P as PopoverProps, j as PopoverTypeType, R as RecommendLoginMethodType, T as ThemeType, U as UserPopoverProps, W as WalletConfigType, w as WalletPanelProps, x as WalletReceiveMessageType, h as WalletType } from './types-DHfZWETj.js';
|
|
3
3
|
|
|
4
4
|
declare const index_AnyObject: typeof AnyObject;
|
|
5
5
|
declare const index_AuthParams: typeof AuthParams;
|
|
@@ -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 { v as PohZkpassParams,
|
|
3
|
+
import { v as PohZkpassParams, o as BindItemType, n as BindInfoType, u as PohItemType } from './types-DHfZWETj.js';
|
|
4
4
|
|
|
5
5
|
interface MyResponseType<T> {
|
|
6
6
|
code: number;
|
|
@@ -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 { v as PohZkpassParams,
|
|
3
|
+
import { v as PohZkpassParams, o as BindItemType, n as BindInfoType, u as PohItemType } from './types-DHfZWETj.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,
|
|
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, h as WalletType, i as PopoverPositionType, j as PopoverTypeType, k as LoginPanelProps, l as LoginModalProps } from './types-DHfZWETj.mjs';
|
|
3
3
|
import { ReactNode, PropsWithChildren } from 'react';
|
|
4
4
|
import { C as ChainType, R as RecoveryType } from './mpc-CTbBWHld.mjs';
|
|
5
5
|
|
|
@@ -77,6 +77,12 @@ declare function Overlay({ isOpen, children, zIndex, }: {
|
|
|
77
77
|
zIndex?: number;
|
|
78
78
|
} & PropsWithChildren): react_jsx_runtime.JSX.Element;
|
|
79
79
|
|
|
80
|
+
type WalletModalProps = ModalWithHeaderProps & {
|
|
81
|
+
type?: 'login' | 'bind' | '';
|
|
82
|
+
methods?: WalletType[];
|
|
83
|
+
};
|
|
84
|
+
declare function WalletModal(props: WalletModalProps): false | react_jsx_runtime.JSX.Element;
|
|
85
|
+
|
|
80
86
|
declare const index_BTCModal: typeof BTCModal;
|
|
81
87
|
declare const index_Button: typeof Button;
|
|
82
88
|
declare const index_EmailModal: typeof EmailModal;
|
|
@@ -95,8 +101,9 @@ declare const index_SOLModal: typeof SOLModal;
|
|
|
95
101
|
declare const index_TONModal: typeof TONModal;
|
|
96
102
|
declare const index_TRONModal: typeof TRONModal;
|
|
97
103
|
declare const index_UsernameModal: typeof UsernameModal;
|
|
104
|
+
declare const index_WalletModal: typeof WalletModal;
|
|
98
105
|
declare namespace index {
|
|
99
|
-
export { index_BTCModal as BTCModal, index_Button as Button, index_EmailModal as EmailModal, index_Field as Field, index_Input as Input, index_LoginBox as LoginBox, index_LoginButton as LoginButton, index_LoginModal as LoginModal, index_LoginPanel as LoginPanel, index_Modal as Modal, index_ModalWithHeader as ModalWithHeader, index_Overlay as Overlay, index_PasswordModal as PasswordModal, index_Popover as Popover, index_SOLModal as SOLModal, index_TONModal as TONModal, index_TRONModal as TRONModal, index_UsernameModal as UsernameModal };
|
|
106
|
+
export { index_BTCModal as BTCModal, index_Button as Button, index_EmailModal as EmailModal, index_Field as Field, index_Input as Input, index_LoginBox as LoginBox, index_LoginButton as LoginButton, index_LoginModal as LoginModal, index_LoginPanel as LoginPanel, index_Modal as Modal, index_ModalWithHeader as ModalWithHeader, index_Overlay as Overlay, index_PasswordModal as PasswordModal, index_Popover as Popover, index_SOLModal as SOLModal, index_TONModal as TONModal, index_TRONModal as TRONModal, index_UsernameModal as UsernameModal, index_WalletModal as WalletModal };
|
|
100
107
|
}
|
|
101
108
|
|
|
102
|
-
export { Button as B, EmailModal as E, Field as F, Input as I, LoginBox as L, Modal as M, Overlay as O, Popover as P, SOLModal as S, TRONModal as T, UsernameModal as U, ModalWithHeader as a, LoginButton as b, LoginPanel as c, LoginModal as d, PasswordModal as e, TONModal as f, BTCModal as g, index as i };
|
|
109
|
+
export { Button as B, EmailModal as E, Field as F, Input as I, LoginBox as L, Modal as M, Overlay as O, Popover as P, SOLModal as S, TRONModal as T, UsernameModal as U, WalletModal as W, ModalWithHeader as a, LoginButton as b, LoginPanel as c, LoginModal as d, PasswordModal as e, TONModal as f, BTCModal as g, index as i };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A as AuthParams, C as ChainType, E as EmbeddedWalletsParams, R as RecoveryType } from './mpc-CTbBWHld.mjs';
|
|
2
|
-
import { A as AnyObject,
|
|
2
|
+
import { A as AnyObject, n as BindInfoType, o as BindItemType, p as BindWalletParam, B as ButtonProps, C as CEXType, D as DeepPartial, q as DrawerProps, E as EmailModalProps, a as IEnvConfigType, r as IEnvName, s as ILoginWalletReq, I as IMatchEvents, b as ISocialLoginMethod, m as IconProps, d as InputProps, L as LocaleType, f as LoginBoxProps, c as LoginMethodType, l as LoginModalProps, k as LoginPanelProps, t as MessageType, M as ModalProps, e as ModalWithHeaderProps, g as OtherLoginMethodType, O as OverviewInfo, u as PohItemType, v as PohZkpassParams, i as PopoverPositionType, P as PopoverProps, j as PopoverTypeType, R as RecommendLoginMethodType, T as ThemeType, U as UserPopoverProps, W as WalletConfigType, w as WalletPanelProps, x as WalletReceiveMessageType, h as WalletType } from './types-DHfZWETj.mjs';
|
|
3
3
|
|
|
4
4
|
declare const index_AnyObject: typeof AnyObject;
|
|
5
5
|
declare const index_AuthParams: typeof AuthParams;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { E as EmailModalProps,
|
|
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, h as WalletType, i as PopoverPositionType, j as PopoverTypeType, k as LoginPanelProps, l as LoginModalProps } from './types-DHfZWETj.js';
|
|
3
3
|
import { ReactNode, PropsWithChildren } from 'react';
|
|
4
4
|
import { C as ChainType, R as RecoveryType } from './mpc-CTbBWHld.js';
|
|
5
5
|
|
|
@@ -77,6 +77,12 @@ declare function Overlay({ isOpen, children, zIndex, }: {
|
|
|
77
77
|
zIndex?: number;
|
|
78
78
|
} & PropsWithChildren): react_jsx_runtime.JSX.Element;
|
|
79
79
|
|
|
80
|
+
type WalletModalProps = ModalWithHeaderProps & {
|
|
81
|
+
type?: 'login' | 'bind' | '';
|
|
82
|
+
methods?: WalletType[];
|
|
83
|
+
};
|
|
84
|
+
declare function WalletModal(props: WalletModalProps): false | react_jsx_runtime.JSX.Element;
|
|
85
|
+
|
|
80
86
|
declare const index_BTCModal: typeof BTCModal;
|
|
81
87
|
declare const index_Button: typeof Button;
|
|
82
88
|
declare const index_EmailModal: typeof EmailModal;
|
|
@@ -95,8 +101,9 @@ declare const index_SOLModal: typeof SOLModal;
|
|
|
95
101
|
declare const index_TONModal: typeof TONModal;
|
|
96
102
|
declare const index_TRONModal: typeof TRONModal;
|
|
97
103
|
declare const index_UsernameModal: typeof UsernameModal;
|
|
104
|
+
declare const index_WalletModal: typeof WalletModal;
|
|
98
105
|
declare namespace index {
|
|
99
|
-
export { index_BTCModal as BTCModal, index_Button as Button, index_EmailModal as EmailModal, index_Field as Field, index_Input as Input, index_LoginBox as LoginBox, index_LoginButton as LoginButton, index_LoginModal as LoginModal, index_LoginPanel as LoginPanel, index_Modal as Modal, index_ModalWithHeader as ModalWithHeader, index_Overlay as Overlay, index_PasswordModal as PasswordModal, index_Popover as Popover, index_SOLModal as SOLModal, index_TONModal as TONModal, index_TRONModal as TRONModal, index_UsernameModal as UsernameModal };
|
|
106
|
+
export { index_BTCModal as BTCModal, index_Button as Button, index_EmailModal as EmailModal, index_Field as Field, index_Input as Input, index_LoginBox as LoginBox, index_LoginButton as LoginButton, index_LoginModal as LoginModal, index_LoginPanel as LoginPanel, index_Modal as Modal, index_ModalWithHeader as ModalWithHeader, index_Overlay as Overlay, index_PasswordModal as PasswordModal, index_Popover as Popover, index_SOLModal as SOLModal, index_TONModal as TONModal, index_TRONModal as TRONModal, index_UsernameModal as UsernameModal, index_WalletModal as WalletModal };
|
|
100
107
|
}
|
|
101
108
|
|
|
102
|
-
export { Button as B, EmailModal as E, Field as F, Input as I, LoginBox as L, Modal as M, Overlay as O, Popover as P, SOLModal as S, TRONModal as T, UsernameModal as U, ModalWithHeader as a, LoginButton as b, LoginPanel as c, LoginModal as d, PasswordModal as e, TONModal as f, BTCModal as g, index as i };
|
|
109
|
+
export { Button as B, EmailModal as E, Field as F, Input as I, LoginBox as L, Modal as M, Overlay as O, Popover as P, SOLModal as S, TRONModal as T, UsernameModal as U, WalletModal as W, ModalWithHeader as a, LoginButton as b, LoginPanel as c, LoginModal as d, PasswordModal as e, TONModal as f, BTCModal as g, index as i };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b as ISocialLoginMethod, O as OverviewInfo, C as CEXType, c as LoginMethodType, I as IMatchEvents } from './types-DHfZWETj.js';
|
|
2
2
|
import * as viem from 'viem';
|
|
3
3
|
import { Account, WalletClientConfig, createWalletClient, SignableMessage, Hex, TransactionSerializable, DeployContractParameters, SendTransactionParameters, WriteContractParameters, Chain } from 'viem';
|
|
4
4
|
import { C as ChainType, R as RecoveryType } from './mpc-CTbBWHld.js';
|
|
@@ -46,8 +46,12 @@ declare function useUserInfo(): {
|
|
|
46
46
|
bindCex: (type: CEXType) => void;
|
|
47
47
|
username: string;
|
|
48
48
|
auth: () => Promise<any>;
|
|
49
|
-
login: (method: LoginMethodType
|
|
50
|
-
|
|
49
|
+
login: (method: LoginMethodType | "wallet", extra?: {
|
|
50
|
+
[key: string]: any;
|
|
51
|
+
}) => Promise<void | Window | null>;
|
|
52
|
+
bind: (method: LoginMethodType | "wallet", extra?: {
|
|
53
|
+
[key: string]: any;
|
|
54
|
+
}) => Promise<void | Window | null>;
|
|
51
55
|
getAuthInfo: (method: keyof typeof LOGIN_METHOD_MAP) => Promise<unknown>;
|
|
52
56
|
};
|
|
53
57
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b as ISocialLoginMethod, O as OverviewInfo, C as CEXType, c as LoginMethodType, I as IMatchEvents } from './types-DHfZWETj.mjs';
|
|
2
2
|
import * as viem from 'viem';
|
|
3
3
|
import { Account, WalletClientConfig, createWalletClient, SignableMessage, Hex, TransactionSerializable, DeployContractParameters, SendTransactionParameters, WriteContractParameters, Chain } from 'viem';
|
|
4
4
|
import { C as ChainType, R as RecoveryType } from './mpc-CTbBWHld.mjs';
|
|
@@ -46,8 +46,12 @@ declare function useUserInfo(): {
|
|
|
46
46
|
bindCex: (type: CEXType) => void;
|
|
47
47
|
username: string;
|
|
48
48
|
auth: () => Promise<any>;
|
|
49
|
-
login: (method: LoginMethodType
|
|
50
|
-
|
|
49
|
+
login: (method: LoginMethodType | "wallet", extra?: {
|
|
50
|
+
[key: string]: any;
|
|
51
|
+
}) => Promise<void | Window | null>;
|
|
52
|
+
bind: (method: LoginMethodType | "wallet", extra?: {
|
|
53
|
+
[key: string]: any;
|
|
54
|
+
}) => Promise<void | Window | null>;
|
|
51
55
|
getAuthInfo: (method: keyof typeof LOGIN_METHOD_MAP) => Promise<unknown>;
|
|
52
56
|
};
|
|
53
57
|
|
package/dist/index.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
|
-
import { I as IMatchEvents, a as IEnvConfigType, L as LocaleType, W as WalletConfigType } from './types-
|
|
3
|
-
export { i as Components } from './index-
|
|
4
|
-
export { i as Hooks } from './index-
|
|
5
|
-
export { i as Api } from './index-
|
|
2
|
+
import { I as IMatchEvents, a as IEnvConfigType, L as LocaleType, W as WalletConfigType } from './types-DHfZWETj.mjs';
|
|
3
|
+
export { i as Components } from './index-Cf6kfHOs.mjs';
|
|
4
|
+
export { i as Hooks } from './index-vnxEmUFX.mjs';
|
|
5
|
+
export { i as Api } from './index-Bmq8JOtv.mjs';
|
|
6
6
|
export { i as Chains } from './index-DXRGMAbv.mjs';
|
|
7
|
-
export { i as Types } from './index-
|
|
7
|
+
export { i as Types } from './index-DEwNjx57.mjs';
|
|
8
8
|
import 'react/jsx-runtime';
|
|
9
9
|
import './mpc-CTbBWHld.mjs';
|
|
10
10
|
import 'viem';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
|
-
import { I as IMatchEvents, a as IEnvConfigType, L as LocaleType, W as WalletConfigType } from './types-
|
|
3
|
-
export { i as Components } from './index-
|
|
4
|
-
export { i as Hooks } from './index-
|
|
5
|
-
export { i as Api } from './index-
|
|
2
|
+
import { I as IMatchEvents, a as IEnvConfigType, L as LocaleType, W as WalletConfigType } from './types-DHfZWETj.js';
|
|
3
|
+
export { i as Components } from './index-FtmjKzbF.js';
|
|
4
|
+
export { i as Hooks } from './index-oiyw9mSV.js';
|
|
5
|
+
export { i as Api } from './index-Bm1VurYT.js';
|
|
6
6
|
export { i as Chains } from './index-DXRGMAbv.js';
|
|
7
|
-
export { i as Types } from './index-
|
|
7
|
+
export { i as Types } from './index-B1MrvbwC.js';
|
|
8
8
|
import 'react/jsx-runtime';
|
|
9
9
|
import './mpc-CTbBWHld.js';
|
|
10
10
|
import 'viem';
|