@authing/guard-shim-react 4.5.44-alpha.0 → 4.5.44-alpha.2
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/guard.min.js +302 -302
- package/dist/typings/src/Guard/config.d.ts +1 -0
- package/dist/typings/src/Login/hooks/useLoginMultiple.d.ts +2 -2
- package/dist/typings/src/_utils/config/index.d.ts +2 -1
- package/dist/typings/src/_utils/context.d.ts +1 -1
- package/dist/typings/src/_utils/hooks/index.d.ts +3 -0
- package/package.json +1 -1
|
@@ -13,5 +13,6 @@ export interface GuardLocalConfig extends RegisterConfig, LoginConfig, ForgetPas
|
|
|
13
13
|
* @description 是否调用 eventsMapping 中的事件
|
|
14
14
|
*/
|
|
15
15
|
openEventsMapping?: boolean;
|
|
16
|
+
autoFocus?: boolean;
|
|
16
17
|
}
|
|
17
18
|
export declare const getDefaultGuardLocalConfig: () => GuardLocalConfig;
|
|
@@ -39,7 +39,7 @@ declare function useLoginSelectAccount(setLoginWay: React.Dispatch<any>): {
|
|
|
39
39
|
id: string;
|
|
40
40
|
loginAccount?: string | undefined;
|
|
41
41
|
usertype?: string | undefined;
|
|
42
|
-
}, "
|
|
42
|
+
}, "tab" | "way" | "phoneCountryCode">) => void;
|
|
43
43
|
setLoginWayByHttpData: (account: string, data: {
|
|
44
44
|
username?: string | undefined;
|
|
45
45
|
phone?: string | undefined;
|
|
@@ -61,7 +61,7 @@ declare function useLoginSelectAccount(setLoginWay: React.Dispatch<any>): {
|
|
|
61
61
|
getOriginAccount: () => string;
|
|
62
62
|
getOriginWay: () => string;
|
|
63
63
|
} | undefined;
|
|
64
|
-
referMultipleState: ((type: "
|
|
64
|
+
referMultipleState: ((type: "multiple" | "login") => void) | undefined;
|
|
65
65
|
backfillData: BackFillMultipleState | undefined;
|
|
66
66
|
defaultQrWay: string | undefined;
|
|
67
67
|
};
|
|
@@ -25,6 +25,7 @@ export declare const useFetchConsoleConfig: (forceUpdate: number, appId?: string
|
|
|
25
25
|
showLoading?: boolean | undefined;
|
|
26
26
|
loadingComponent?: React.ReactNode;
|
|
27
27
|
openEventsMapping?: boolean | undefined;
|
|
28
|
+
autoFocus?: boolean | undefined;
|
|
28
29
|
disableRegister?: boolean | undefined;
|
|
29
30
|
registerMethods?: string[] | undefined;
|
|
30
31
|
defaultRegisterMethod?: string | undefined;
|
|
@@ -53,7 +54,7 @@ export declare const useFetchConsoleConfig: (forceUpdate: number, appId?: string
|
|
|
53
54
|
loginMethods?: LoginMethods[] | undefined;
|
|
54
55
|
passwordLoginMethods?: string[] | undefined;
|
|
55
56
|
socialConnections?: import("../../Type").SocialConnectionProvider[] | undefined;
|
|
56
|
-
socialConnectionsBtnShape?: "button" | "
|
|
57
|
+
socialConnectionsBtnShape?: "button" | "icon" | "default" | undefined;
|
|
57
58
|
enterpriseConnections?: string[] | undefined;
|
|
58
59
|
qrCodeScanOptions?: {
|
|
59
60
|
extIdpConnId?: string | undefined;
|
|
@@ -123,7 +123,7 @@ export declare const useGuardAccountSelectInstance: () => {
|
|
|
123
123
|
id: string;
|
|
124
124
|
loginAccount?: string | undefined;
|
|
125
125
|
usertype?: string | undefined;
|
|
126
|
-
}, "
|
|
126
|
+
}, "tab" | "way" | "phoneCountryCode">) => void;
|
|
127
127
|
setLoginWayByHttpData: (account: string, data: {
|
|
128
128
|
username?: string | undefined;
|
|
129
129
|
phone?: string | undefined;
|
|
@@ -14,6 +14,9 @@ export declare const useDebounce: (fn: any, delay: number) => (...args: any[]) =
|
|
|
14
14
|
export declare const useMediaSize: () => {
|
|
15
15
|
isPhoneMedia: boolean;
|
|
16
16
|
};
|
|
17
|
+
export declare const useAutoFocus: () => {
|
|
18
|
+
autoFocus: boolean;
|
|
19
|
+
};
|
|
17
20
|
export declare const useShaking: () => {
|
|
18
21
|
MountShaking: () => void;
|
|
19
22
|
UnMountShaking: () => void;
|
package/package.json
CHANGED