@authing/react-ui-components 4.2.3-alpha.7 → 4.3.0-alpha.0
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/asset-manifest.json +26 -0
- package/dist/index.html +1 -0
- package/dist/static/css/2.31681d53.chunk.css +3 -0
- package/dist/static/css/2.31681d53.chunk.css.map +1 -0
- package/dist/static/css/main.5aec6972.chunk.css +2 -0
- package/dist/static/css/main.5aec6972.chunk.css.map +1 -0
- package/dist/static/js/2.d2a1168e.chunk.js +3 -0
- package/dist/static/js/2.d2a1168e.chunk.js.LICENSE.txt +86 -0
- package/dist/static/js/2.d2a1168e.chunk.js.map +1 -0
- package/dist/static/js/3.b3dd7130.chunk.js +2 -0
- package/dist/static/js/3.b3dd7130.chunk.js.map +1 -0
- package/dist/static/js/main.b635a15a.chunk.js +2 -0
- package/dist/static/js/main.b635a15a.chunk.js.map +1 -0
- package/dist/static/js/runtime-main.6f6a6483.js +2 -0
- package/dist/static/js/runtime-main.6f6a6483.js.map +1 -0
- package/dist/static/media/loading.3cf0104f.svg +32 -0
- package/lib/index.min.css +1 -1
- package/lib/index.min.js +1 -1
- package/package.json +1 -1
- package/types/Guard/config.d.ts +0 -2
- package/types/Guard/event.d.ts +0 -10
- package/types/_utils/config/index.d.ts +0 -1
- package/types/_utils/context.d.ts +0 -1
- package/types/_utils/index.d.ts +1 -1
- package/types/version/version.d.ts +1 -1
- package/types/AppOtpVerify/DownloadVerifier.d.ts +0 -2
- package/types/AppOtpVerify/LoginApp.d.ts +0 -2
- package/types/AppOtpVerify/ScanQrcode.d.ts +0 -2
- package/types/AppOtpVerify/Steps.d.ts +0 -11
- package/types/AppOtpVerify/index.d.ts +0 -3
- package/types/Guard/core/hooks/useGuardView.d.ts +0 -7
- package/types/LazyloadImage/index.d.ts +0 -12
- package/types/Login/core/withAuthingOtpPush/BeforeLogin.d.ts +0 -15
- package/types/Login/core/withAuthingOtpPush/PendingLogin.d.ts +0 -7
- package/types/Login/core/withAuthingOtpPush/index.d.ts +0 -3
- package/types/Login/core/withAuthingOtpPush/types.d.ts +0 -16
- package/types/Login/hooks/useOtpPushLogin.d.ts +0 -10
package/package.json
CHANGED
package/types/Guard/config.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ import { ReactNode } from 'react';
|
|
|
2
2
|
import { GuardModuleType } from '.';
|
|
3
3
|
import { LoginConfig } from '../Login/interface';
|
|
4
4
|
import { RegisterConfig } from '../Register/interface';
|
|
5
|
-
export declare type CurrentView = 'login:ldap' | 'login:app-qrcode' | 'login:password' | 'login:phone-code' | 'login:wechat-miniprogram-qrcode' | 'login:ad' | 'login:wechatmp-qrcode' | 'register:username-password' | 'register:email-password' | 'register:phone-password' | 'register:emp_id-password' | 'register:phone-code' | 'forgetPassword' | 'anyQuestions';
|
|
6
5
|
export interface GuardLocalConfig extends RegisterConfig, LoginConfig {
|
|
7
6
|
isSSO?: boolean;
|
|
8
7
|
defaultScenes?: GuardModuleType;
|
|
@@ -13,6 +12,5 @@ export interface GuardLocalConfig extends RegisterConfig, LoginConfig {
|
|
|
13
12
|
* @description 是否调用 eventsMapping 中的事件
|
|
14
13
|
*/
|
|
15
14
|
openEventsMapping?: boolean;
|
|
16
|
-
currentView?: CurrentView;
|
|
17
15
|
}
|
|
18
16
|
export declare const getDefaultGuardLocalConfig: () => GuardLocalConfig;
|
package/types/Guard/event.d.ts
CHANGED
|
@@ -5,15 +5,8 @@ import { IdentityBindingEvents } from '../IdentityBinding/interface';
|
|
|
5
5
|
import { IdentityBindingAskEvents } from '../IdentityBindingAsk';
|
|
6
6
|
import { LoginEvents } from '../Login/interface';
|
|
7
7
|
import { RegisterEvents } from '../Register/interface';
|
|
8
|
-
interface OnChangeViewOptions {
|
|
9
|
-
currentView: string;
|
|
10
|
-
moduleName: GuardModuleType;
|
|
11
|
-
tabName?: string;
|
|
12
|
-
data?: any;
|
|
13
|
-
}
|
|
14
8
|
export interface GuardEvents extends LoginEvents, RegisterEvents, CompleteInfoEvents, ForgetPasswordEvents, IdentityBindingEvents, IdentityBindingAskEvents {
|
|
15
9
|
onBeforeChangeModule?: (key: GuardModuleType, initData?: any) => boolean | Promise<boolean>;
|
|
16
|
-
onChangeView?: (options: OnChangeViewOptions) => void;
|
|
17
10
|
}
|
|
18
11
|
export declare const guardEventsFilter: (props: any, multipleInstance?: {
|
|
19
12
|
initStore: (appId: string, options: {
|
|
@@ -72,7 +65,6 @@ export declare const GuardEventsCamelToKebabMapping: {
|
|
|
72
65
|
readonly onRegisterInfoCompletedError: "register-info-completed-error";
|
|
73
66
|
readonly onLangChange: "lang-change";
|
|
74
67
|
readonly onBeforeChangeModule: "before-change-module";
|
|
75
|
-
readonly onChangeView: "change-view";
|
|
76
68
|
};
|
|
77
69
|
export interface GuardEventsKebabToCamelType {
|
|
78
70
|
load: GuardEvents['onLoad'];
|
|
@@ -96,6 +88,4 @@ export interface GuardEventsKebabToCamelType {
|
|
|
96
88
|
'register-info-completed-error': GuardEvents['onRegisterInfoCompletedError'];
|
|
97
89
|
'lang-change': GuardEvents['onLangChange'];
|
|
98
90
|
'before-change-module': GuardEvents['onBeforeChangeModule'];
|
|
99
|
-
'change-view': GuardEvents['onChangeView'];
|
|
100
91
|
}
|
|
101
|
-
export {};
|
|
@@ -25,7 +25,6 @@ export declare const useFetchConsoleConfig: (forceUpdate: number, appId?: string
|
|
|
25
25
|
showLoading?: boolean | undefined;
|
|
26
26
|
loadingComponent?: import("react").ReactNode;
|
|
27
27
|
openEventsMapping?: boolean | undefined;
|
|
28
|
-
currentView?: "login:ldap" | "login:app-qrcode" | "login:password" | "login:phone-code" | "login:wechat-miniprogram-qrcode" | "login:ad" | "login:wechatmp-qrcode" | "register:username-password" | "register:email-password" | "register:phone-password" | "register:emp_id-password" | "register:phone-code" | "forgetPassword" | "anyQuestions" | undefined;
|
|
29
28
|
disableRegister?: boolean | undefined;
|
|
30
29
|
registerMethods?: string[] | undefined;
|
|
31
30
|
defaultRegisterMethod?: string | undefined;
|
|
@@ -83,7 +83,6 @@ export declare const useGuardEvents: () => Partial<GuardEvents>;
|
|
|
83
83
|
export declare const useGuardModule: () => {
|
|
84
84
|
changeModule: ((moduleName: GuardModuleType, initData?: any) => Promise<void>) | undefined;
|
|
85
85
|
backModule: (() => void) | undefined;
|
|
86
|
-
currentModule: ModuleState;
|
|
87
86
|
};
|
|
88
87
|
export declare const useGuardFinallyConfig: () => GuardLocalConfig;
|
|
89
88
|
export declare const useGuardContextLoaded: () => boolean;
|
package/types/_utils/index.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ export declare const getClassnames: (classnames: (string | boolean | undefined)[
|
|
|
27
27
|
* @param item
|
|
28
28
|
* @returns {boolean}
|
|
29
29
|
*/
|
|
30
|
-
export declare function isObject(item: any):
|
|
30
|
+
export declare function isObject(item: any): boolean;
|
|
31
31
|
/**
|
|
32
32
|
* https://www.itranslater.com/qa/details/2115518846294557696
|
|
33
33
|
* Deep merge two objects.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "4.2.
|
|
1
|
+
declare const _default: "4.2.2-alpha.10";
|
|
2
2
|
export default _default;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import './steps.styles.less';
|
|
3
|
-
interface StepsProps {
|
|
4
|
-
current: number;
|
|
5
|
-
items: StepItem[];
|
|
6
|
-
}
|
|
7
|
-
interface StepItem {
|
|
8
|
-
title: ReactNode;
|
|
9
|
-
}
|
|
10
|
-
export declare function Steps(props: StepsProps): JSX.Element;
|
|
11
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
-
interface LazyloadImageProps {
|
|
3
|
-
src: string;
|
|
4
|
-
placeholder: ReactNode;
|
|
5
|
-
className?: string;
|
|
6
|
-
style?: CSSProperties;
|
|
7
|
-
alt?: string;
|
|
8
|
-
width?: string;
|
|
9
|
-
height?: string;
|
|
10
|
-
}
|
|
11
|
-
export declare function LazyloadImage(props: LazyloadImageProps): JSX.Element;
|
|
12
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { OnPushSuccessProps, OnLoginProps } from './types';
|
|
3
|
-
import { AuthingGuardResponse } from '../../../_utils/http';
|
|
4
|
-
interface BeforeLoginProps {
|
|
5
|
-
onPushSuccess: (props: OnPushSuccessProps) => void;
|
|
6
|
-
signinByPush: (props: OnLoginProps) => Promise<AuthingGuardResponse<{
|
|
7
|
-
pushCodeId: string;
|
|
8
|
-
}>>;
|
|
9
|
-
pushLoginStatus: boolean;
|
|
10
|
-
onchangePushLoginStatus: () => void;
|
|
11
|
-
defaultAccount: string;
|
|
12
|
-
setAccount: React.Dispatch<any>;
|
|
13
|
-
}
|
|
14
|
-
export declare function BeforeLogin(props: BeforeLoginProps): JSX.Element;
|
|
15
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { BackFillMultipleState, StoreInstance } from '../../../Guard/core/hooks/useMultipleAccounts';
|
|
2
|
-
export interface OnPushSuccessProps {
|
|
3
|
-
pushCodeId: string;
|
|
4
|
-
}
|
|
5
|
-
export interface CheckPushCodeStatusProps {
|
|
6
|
-
pushCodeId: string;
|
|
7
|
-
}
|
|
8
|
-
export interface OnLoginProps {
|
|
9
|
-
account: string;
|
|
10
|
-
}
|
|
11
|
-
export declare type LoginStatus = 'before' | 'pending';
|
|
12
|
-
export interface LoginWithAuthingOtpPushProps {
|
|
13
|
-
onLoginSuccess?: any;
|
|
14
|
-
multipleInstance?: StoreInstance;
|
|
15
|
-
initData?: BackFillMultipleState;
|
|
16
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare function useOtpPushLoginWay(setLoginWay: React.Dispatch<any>): void;
|
|
3
|
-
export declare function useOtpPushLoginCache(): {
|
|
4
|
-
getCachedOtpLoginAccount: typeof getCachedOtpLoginAccount;
|
|
5
|
-
cacheOtpLoginAccount: typeof cacheOtpLoginAccount;
|
|
6
|
-
clearOtpLoginAccountCache: typeof clearOtpLoginAccountCache;
|
|
7
|
-
};
|
|
8
|
-
export declare function cacheOtpLoginAccount(account: string): void;
|
|
9
|
-
export declare function getCachedOtpLoginAccount(): string;
|
|
10
|
-
export declare function clearOtpLoginAccountCache(): void;
|