@authing/react-ui-components 4.0.6-rc.5 → 4.0.6-rc.7
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/package.json
CHANGED
package/types/Guard/config.d.ts
CHANGED
|
@@ -4,14 +4,6 @@ import { LoginConfig } from '../Login/interface';
|
|
|
4
4
|
import { RegisterConfig } from '../Register/interface';
|
|
5
5
|
export interface GuardComponentConfig extends Partial<GuardLocalConfig> {
|
|
6
6
|
}
|
|
7
|
-
export declare enum QrCodeScanType {
|
|
8
|
-
appQrcode = "appQrcode",
|
|
9
|
-
wechatMiniQrcode = "wechatMiniQrcode",
|
|
10
|
-
wechatmpQrcode = "wechatmpQrcode"
|
|
11
|
-
}
|
|
12
|
-
export interface QrCodeScanOptions {
|
|
13
|
-
qrcode: string;
|
|
14
|
-
}
|
|
15
7
|
export interface GuardLocalConfig extends RegisterConfig, LoginConfig {
|
|
16
8
|
isSSO?: boolean;
|
|
17
9
|
defaultScenes?: GuardModuleType;
|
|
@@ -22,6 +14,5 @@ export interface GuardLocalConfig extends RegisterConfig, LoginConfig {
|
|
|
22
14
|
* @description 是否调用 eventsMapping 中的事件
|
|
23
15
|
*/
|
|
24
16
|
openEventsMapping?: boolean;
|
|
25
|
-
_qrCodeScanOptions?: Record<QrCodeScanType, QrCodeScanOptions>;
|
|
26
17
|
}
|
|
27
18
|
export declare const getDefaultGuardLocalConfig: () => GuardLocalConfig;
|
|
@@ -16,6 +16,10 @@ export interface LoginConfig extends IG2Config {
|
|
|
16
16
|
publicKey?: string;
|
|
17
17
|
agreementEnabled?: boolean;
|
|
18
18
|
agreements?: Agreement[];
|
|
19
|
+
/**
|
|
20
|
+
* 关闭二维码状态check轮询(console上使用)
|
|
21
|
+
*/
|
|
22
|
+
_closeLoopCheckQrcode?: boolean;
|
|
19
23
|
}
|
|
20
24
|
export interface LoginEvents extends IG2Events {
|
|
21
25
|
onLogin?: (user: User, authClient: AuthenticationClient) => void;
|
|
@@ -14,7 +14,6 @@ export declare const useMergePublicConfig: (forceUpdate: number, appId?: string
|
|
|
14
14
|
showLoading?: boolean | undefined;
|
|
15
15
|
loadingComponent?: import("react").ReactNode;
|
|
16
16
|
openEventsMapping?: boolean | undefined;
|
|
17
|
-
_qrCodeScanOptions?: Record<import("../../Guard/config").QrCodeScanType, import("../../Guard/config").QrCodeScanOptions> | undefined;
|
|
18
17
|
disableRegister?: boolean | undefined;
|
|
19
18
|
registerMethods?: RegisterMethods[] | undefined;
|
|
20
19
|
defaultRegisterMethod?: RegisterMethods | undefined;
|
|
@@ -89,6 +88,7 @@ export declare const useMergePublicConfig: (forceUpdate: number, appId?: string
|
|
|
89
88
|
} | undefined;
|
|
90
89
|
withCustomData?: boolean | undefined;
|
|
91
90
|
} | undefined;
|
|
91
|
+
_closeLoopCheckQrcode?: boolean | undefined;
|
|
92
92
|
} | undefined;
|
|
93
93
|
export declare const getPageConfig: (appId: string) => GuardPageConfig;
|
|
94
94
|
export declare const setPageConfig: (appId: string, config: GuardPageConfig) => GuardPageConfig;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "4.0.6-rc.
|
|
1
|
+
declare const _default: "4.0.6-rc.7";
|
|
2
2
|
export default _default;
|