@matchain/matchid-sdk-react 0.1.40-alpha.3 → 0.1.40-alpha.5
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-XXZABHH6.mjs → chunk-222KVWTM.mjs} +317 -96
- package/dist/chunk-222KVWTM.mjs.map +1 -0
- package/dist/{chunk-ZBOW562R.mjs → chunk-XN6V3UI6.mjs} +2 -2
- package/dist/components/index.d.mts +2 -2
- package/dist/components/index.d.ts +2 -2
- package/dist/components/index.js +243 -36
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +3 -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 +37 -20
- 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 +41 -24
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +1 -1
- package/dist/{index-mEK7Lcps.d.mts → index-C3KZYrtu.d.mts} +3 -2
- package/dist/{index-CvCSpU8m.d.ts → index-COlsBC-b.d.mts} +9 -3
- package/dist/{index-BPveUnst.d.ts → index-DoF5jRoi.d.ts} +1 -1
- package/dist/{index-DlrDrTMk.d.ts → index-Dq9Swg8r.d.ts} +3 -2
- package/dist/{index-ClQl2MMF.d.mts → index-fS75Swm8.d.ts} +9 -3
- package/dist/{index-Dm5o2w2J.d.mts → index-fl6SNIZC.d.mts} +1 -1
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +314 -100
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -5
- package/dist/{types.d-IS3DBl3p.d.mts → types.d-CLO_WLka.d.mts} +1 -1
- package/dist/{types.d-IS3DBl3p.d.ts → types.d-CLO_WLka.d.ts} +1 -1
- package/example/src/components/Login/index.tsx +2 -2
- package/example/src/config/index.ts +6 -1
- package/example/src/pages/User.tsx +4 -4
- package/package.json +2 -2
- package/dist/chunk-XXZABHH6.mjs.map +0 -1
- /package/dist/{chunk-ZBOW562R.mjs.map → chunk-XN6V3UI6.mjs.map} +0 -0
package/dist/hooks/index.mjs
CHANGED
|
@@ -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-
|
|
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;
|
|
@@ -11,10 +11,11 @@ interface MyResponseType<T> {
|
|
|
11
11
|
result: T;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
declare const bindCexApi: (
|
|
14
|
+
declare const bindCexApi: (data: {
|
|
15
15
|
cex: string;
|
|
16
16
|
api_key: string;
|
|
17
17
|
api_secret: string;
|
|
18
|
+
api_passphrase?: string;
|
|
18
19
|
}) => Promise<MyResponseType<any>>;
|
|
19
20
|
declare const unBindApi: ({ type }: {
|
|
20
21
|
type: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
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-
|
|
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;
|
|
@@ -55,6 +55,11 @@ declare function TRONModal({ type, onSuccess, ...props }: ModalWithHeaderProps &
|
|
|
55
55
|
onSuccess?: () => void;
|
|
56
56
|
}): react_jsx_runtime.JSX.Element;
|
|
57
57
|
|
|
58
|
+
declare function TONModal({ type, onSuccess, ...props }: ModalWithHeaderProps & {
|
|
59
|
+
type?: 'login' | 'bind' | '';
|
|
60
|
+
onSuccess?: () => void;
|
|
61
|
+
}): react_jsx_runtime.JSX.Element;
|
|
62
|
+
|
|
58
63
|
declare function BTCModal({ type, onSuccess, ...props }: ModalWithHeaderProps & {
|
|
59
64
|
type?: 'login' | 'bind' | '';
|
|
60
65
|
onSuccess?: () => void;
|
|
@@ -74,10 +79,11 @@ declare const index_ModalWithHeader: typeof ModalWithHeader;
|
|
|
74
79
|
declare const index_PasswordModal: typeof PasswordModal;
|
|
75
80
|
declare const index_Popover: typeof Popover;
|
|
76
81
|
declare const index_SOLModal: typeof SOLModal;
|
|
82
|
+
declare const index_TONModal: typeof TONModal;
|
|
77
83
|
declare const index_TRONModal: typeof TRONModal;
|
|
78
84
|
declare const index_UsernameModal: typeof UsernameModal;
|
|
79
85
|
declare namespace index {
|
|
80
|
-
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_PasswordModal as PasswordModal, index_Popover as Popover, index_SOLModal as SOLModal, index_TRONModal as TRONModal, index_UsernameModal as UsernameModal };
|
|
86
|
+
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_PasswordModal as PasswordModal, index_Popover as Popover, index_SOLModal as SOLModal, index_TONModal as TONModal, index_TRONModal as TRONModal, index_UsernameModal as UsernameModal };
|
|
81
87
|
}
|
|
82
88
|
|
|
83
|
-
export { Button as B, EmailModal as E, Field as F, Input as I, LoginBox as L, Modal as M, 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,
|
|
89
|
+
export { Button as B, EmailModal as E, Field as F, Input as I, LoginBox as L, Modal as M, 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 };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as ISocialLoginMethod, j as OverviewInfo, C as CEXType, k as LoginMethodType, I as IMatchEvents } from './types.d-
|
|
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-
|
|
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;
|
|
@@ -11,10 +11,11 @@ interface MyResponseType<T> {
|
|
|
11
11
|
result: T;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
declare const bindCexApi: (
|
|
14
|
+
declare const bindCexApi: (data: {
|
|
15
15
|
cex: string;
|
|
16
16
|
api_key: string;
|
|
17
17
|
api_secret: string;
|
|
18
|
+
api_passphrase?: string;
|
|
18
19
|
}) => Promise<MyResponseType<any>>;
|
|
19
20
|
declare const unBindApi: ({ type }: {
|
|
20
21
|
type: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
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-
|
|
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;
|
|
@@ -55,6 +55,11 @@ declare function TRONModal({ type, onSuccess, ...props }: ModalWithHeaderProps &
|
|
|
55
55
|
onSuccess?: () => void;
|
|
56
56
|
}): react_jsx_runtime.JSX.Element;
|
|
57
57
|
|
|
58
|
+
declare function TONModal({ type, onSuccess, ...props }: ModalWithHeaderProps & {
|
|
59
|
+
type?: 'login' | 'bind' | '';
|
|
60
|
+
onSuccess?: () => void;
|
|
61
|
+
}): react_jsx_runtime.JSX.Element;
|
|
62
|
+
|
|
58
63
|
declare function BTCModal({ type, onSuccess, ...props }: ModalWithHeaderProps & {
|
|
59
64
|
type?: 'login' | 'bind' | '';
|
|
60
65
|
onSuccess?: () => void;
|
|
@@ -74,10 +79,11 @@ declare const index_ModalWithHeader: typeof ModalWithHeader;
|
|
|
74
79
|
declare const index_PasswordModal: typeof PasswordModal;
|
|
75
80
|
declare const index_Popover: typeof Popover;
|
|
76
81
|
declare const index_SOLModal: typeof SOLModal;
|
|
82
|
+
declare const index_TONModal: typeof TONModal;
|
|
77
83
|
declare const index_TRONModal: typeof TRONModal;
|
|
78
84
|
declare const index_UsernameModal: typeof UsernameModal;
|
|
79
85
|
declare namespace index {
|
|
80
|
-
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_PasswordModal as PasswordModal, index_Popover as Popover, index_SOLModal as SOLModal, index_TRONModal as TRONModal, index_UsernameModal as UsernameModal };
|
|
86
|
+
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_PasswordModal as PasswordModal, index_Popover as Popover, index_SOLModal as SOLModal, index_TONModal as TONModal, index_TRONModal as TRONModal, index_UsernameModal as UsernameModal };
|
|
81
87
|
}
|
|
82
88
|
|
|
83
|
-
export { Button as B, EmailModal as E, Field as F, Input as I, LoginBox as L, Modal as M, 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,
|
|
89
|
+
export { Button as B, EmailModal as E, Field as F, Input as I, LoginBox as L, Modal as M, 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 };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as ISocialLoginMethod, j as OverviewInfo, C as CEXType, k as LoginMethodType, I as IMatchEvents } from './types.d-
|
|
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-
|
|
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 } 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-
|
|
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 } 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';
|