@matchain/matchid-sdk-react 0.1.33 → 0.1.35
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/index.css +406 -235
- package/dist/index.d.mts +17 -6
- package/dist/index.d.ts +17 -6
- package/dist/index.js +178 -122
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +160 -104
- package/dist/index.mjs.map +1 -1
- package/example/src/components/Login/index.tsx +2 -2
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -9,6 +9,7 @@ type ISocialLoginMethod = 'google' | 'twitter' | 'discord' | 'github' | 'telegra
|
|
|
9
9
|
type LoginMethodType = 'evm' | 'sol' | 'email' | ISocialLoginMethod
|
|
10
10
|
type OtherLoginMethodType = 'email' | ISocialLoginMethod
|
|
11
11
|
type RecommendLoginMethodType = 'wallet' | 'email' | ISocialLoginMethod
|
|
12
|
+
type WalletType ='evm'|'sol'
|
|
12
13
|
type IEnvConfigType = {
|
|
13
14
|
endpoints: {
|
|
14
15
|
back: string;
|
|
@@ -59,9 +60,9 @@ type ModalWithHeaderProps = ModalProps & {
|
|
|
59
60
|
}
|
|
60
61
|
|
|
61
62
|
type InputProps = {
|
|
62
|
-
placeholder
|
|
63
|
-
value
|
|
64
|
-
onChange
|
|
63
|
+
placeholder?: string,
|
|
64
|
+
value?: string,
|
|
65
|
+
onChange?: (e?: any) => void,
|
|
65
66
|
disabled?: boolean,
|
|
66
67
|
readonly?: boolean
|
|
67
68
|
type?: string
|
|
@@ -74,6 +75,7 @@ type LoginBoxProps = {
|
|
|
74
75
|
methods?: OtherLoginMethodType[],
|
|
75
76
|
inModal?: boolean
|
|
76
77
|
recommendMethods?: RecommendLoginMethodType[]
|
|
78
|
+
walletMethods?:WalletType[]
|
|
77
79
|
}
|
|
78
80
|
type LoginPanelProps = {
|
|
79
81
|
header?: React.ReactNode
|
|
@@ -195,12 +197,13 @@ declare function ModalWithHeader({ children, onBack, onClose, title, showBorder,
|
|
|
195
197
|
|
|
196
198
|
declare function Popover({ children, content, position, type, className, gap }: PopoverProps): react_jsx_runtime.JSX.Element;
|
|
197
199
|
|
|
198
|
-
declare function LoginBox({ recommendMethods, methods, inModal }: LoginBoxProps): react_jsx_runtime.JSX.Element;
|
|
200
|
+
declare function LoginBox({ recommendMethods, methods, walletMethods, inModal }: LoginBoxProps): react_jsx_runtime.JSX.Element;
|
|
199
201
|
|
|
200
|
-
declare function LoginButton({ loginRender, methods, recommendMethods, onLoginClick, popoverPosition, popoverType, popoverGap, ...props }: Omit<ButtonProps, 'onClick' | 'highlight'> & {
|
|
202
|
+
declare function LoginButton({ loginRender, methods, recommendMethods, onLoginClick, popoverPosition, popoverType, popoverGap, walletMethods, ...props }: Omit<ButtonProps, 'onClick' | 'highlight'> & {
|
|
201
203
|
loginRender?: ReactNode;
|
|
202
204
|
methods?: OtherLoginMethodType[];
|
|
203
205
|
recommendMethods?: RecommendLoginMethodType[];
|
|
206
|
+
walletMethods?: WalletType[];
|
|
204
207
|
onLoginClick?: () => void;
|
|
205
208
|
popoverPosition?: PopoverPositionType;
|
|
206
209
|
popoverType?: PopoverTypeType;
|
|
@@ -295,12 +298,20 @@ declare function useWallet(): UseWalletReturnType;
|
|
|
295
298
|
|
|
296
299
|
declare function useCopyClipboard(timeout?: number): [boolean, (toCopy: string) => void];
|
|
297
300
|
|
|
301
|
+
declare function useDownMd(): boolean;
|
|
302
|
+
|
|
303
|
+
declare const useLayout_useDownMd: typeof useDownMd;
|
|
304
|
+
declare namespace useLayout {
|
|
305
|
+
export { useLayout_useDownMd as useDownMd };
|
|
306
|
+
}
|
|
307
|
+
|
|
298
308
|
declare const index$2_useCopyClipboard: typeof useCopyClipboard;
|
|
309
|
+
declare const index$2_useLayout: typeof useLayout;
|
|
299
310
|
declare const index$2_useMatchEvents: typeof useMatchEvents;
|
|
300
311
|
declare const index$2_useUserInfo: typeof useUserInfo;
|
|
301
312
|
declare const index$2_useWallet: typeof useWallet;
|
|
302
313
|
declare namespace index$2 {
|
|
303
|
-
export { index$2_useCopyClipboard as useCopyClipboard, index$2_useMatchEvents as useMatchEvents, index$2_useUserInfo as useUserInfo, index$2_useWallet as useWallet };
|
|
314
|
+
export { index$2_useCopyClipboard as useCopyClipboard, index$2_useLayout as useLayout, index$2_useMatchEvents as useMatchEvents, index$2_useUserInfo as useUserInfo, index$2_useWallet as useWallet };
|
|
304
315
|
}
|
|
305
316
|
|
|
306
317
|
interface MyResponseType<T> {
|
package/dist/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ type ISocialLoginMethod = 'google' | 'twitter' | 'discord' | 'github' | 'telegra
|
|
|
9
9
|
type LoginMethodType = 'evm' | 'sol' | 'email' | ISocialLoginMethod
|
|
10
10
|
type OtherLoginMethodType = 'email' | ISocialLoginMethod
|
|
11
11
|
type RecommendLoginMethodType = 'wallet' | 'email' | ISocialLoginMethod
|
|
12
|
+
type WalletType ='evm'|'sol'
|
|
12
13
|
type IEnvConfigType = {
|
|
13
14
|
endpoints: {
|
|
14
15
|
back: string;
|
|
@@ -59,9 +60,9 @@ type ModalWithHeaderProps = ModalProps & {
|
|
|
59
60
|
}
|
|
60
61
|
|
|
61
62
|
type InputProps = {
|
|
62
|
-
placeholder
|
|
63
|
-
value
|
|
64
|
-
onChange
|
|
63
|
+
placeholder?: string,
|
|
64
|
+
value?: string,
|
|
65
|
+
onChange?: (e?: any) => void,
|
|
65
66
|
disabled?: boolean,
|
|
66
67
|
readonly?: boolean
|
|
67
68
|
type?: string
|
|
@@ -74,6 +75,7 @@ type LoginBoxProps = {
|
|
|
74
75
|
methods?: OtherLoginMethodType[],
|
|
75
76
|
inModal?: boolean
|
|
76
77
|
recommendMethods?: RecommendLoginMethodType[]
|
|
78
|
+
walletMethods?:WalletType[]
|
|
77
79
|
}
|
|
78
80
|
type LoginPanelProps = {
|
|
79
81
|
header?: React.ReactNode
|
|
@@ -195,12 +197,13 @@ declare function ModalWithHeader({ children, onBack, onClose, title, showBorder,
|
|
|
195
197
|
|
|
196
198
|
declare function Popover({ children, content, position, type, className, gap }: PopoverProps): react_jsx_runtime.JSX.Element;
|
|
197
199
|
|
|
198
|
-
declare function LoginBox({ recommendMethods, methods, inModal }: LoginBoxProps): react_jsx_runtime.JSX.Element;
|
|
200
|
+
declare function LoginBox({ recommendMethods, methods, walletMethods, inModal }: LoginBoxProps): react_jsx_runtime.JSX.Element;
|
|
199
201
|
|
|
200
|
-
declare function LoginButton({ loginRender, methods, recommendMethods, onLoginClick, popoverPosition, popoverType, popoverGap, ...props }: Omit<ButtonProps, 'onClick' | 'highlight'> & {
|
|
202
|
+
declare function LoginButton({ loginRender, methods, recommendMethods, onLoginClick, popoverPosition, popoverType, popoverGap, walletMethods, ...props }: Omit<ButtonProps, 'onClick' | 'highlight'> & {
|
|
201
203
|
loginRender?: ReactNode;
|
|
202
204
|
methods?: OtherLoginMethodType[];
|
|
203
205
|
recommendMethods?: RecommendLoginMethodType[];
|
|
206
|
+
walletMethods?: WalletType[];
|
|
204
207
|
onLoginClick?: () => void;
|
|
205
208
|
popoverPosition?: PopoverPositionType;
|
|
206
209
|
popoverType?: PopoverTypeType;
|
|
@@ -295,12 +298,20 @@ declare function useWallet(): UseWalletReturnType;
|
|
|
295
298
|
|
|
296
299
|
declare function useCopyClipboard(timeout?: number): [boolean, (toCopy: string) => void];
|
|
297
300
|
|
|
301
|
+
declare function useDownMd(): boolean;
|
|
302
|
+
|
|
303
|
+
declare const useLayout_useDownMd: typeof useDownMd;
|
|
304
|
+
declare namespace useLayout {
|
|
305
|
+
export { useLayout_useDownMd as useDownMd };
|
|
306
|
+
}
|
|
307
|
+
|
|
298
308
|
declare const index$2_useCopyClipboard: typeof useCopyClipboard;
|
|
309
|
+
declare const index$2_useLayout: typeof useLayout;
|
|
299
310
|
declare const index$2_useMatchEvents: typeof useMatchEvents;
|
|
300
311
|
declare const index$2_useUserInfo: typeof useUserInfo;
|
|
301
312
|
declare const index$2_useWallet: typeof useWallet;
|
|
302
313
|
declare namespace index$2 {
|
|
303
|
-
export { index$2_useCopyClipboard as useCopyClipboard, index$2_useMatchEvents as useMatchEvents, index$2_useUserInfo as useUserInfo, index$2_useWallet as useWallet };
|
|
314
|
+
export { index$2_useCopyClipboard as useCopyClipboard, index$2_useLayout as useLayout, index$2_useMatchEvents as useMatchEvents, index$2_useUserInfo as useUserInfo, index$2_useWallet as useWallet };
|
|
304
315
|
}
|
|
305
316
|
|
|
306
317
|
interface MyResponseType<T> {
|