@authing/react-ui-components 4.4.1-alpha.4 → 4.4.1-alpha.6
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/lib/index.min.css +1 -1
- package/lib/index.min.js +1 -1
- package/package.json +2 -2
- package/types/Guard/core/hooks/useAgreements.d.ts +1 -2
- package/types/SendCode/SendCodeByPhone.d.ts +2 -0
- package/types/Type/index.d.ts +2 -0
- package/types/_utils/config/index.d.ts +1 -0
- package/types/_utils/context.d.ts +4 -0
- package/types/version/version.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@authing/react-ui-components",
|
|
3
|
-
"version": "4.4.1-alpha.
|
|
3
|
+
"version": "4.4.1-alpha.6",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "lib/index.min.js",
|
|
6
6
|
"typings": "types/index.d.ts",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
],
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"antd": "^4.8.0",
|
|
14
|
-
"authing-js-sdk": "4.23.
|
|
14
|
+
"authing-js-sdk": "4.23.40",
|
|
15
15
|
"classnames": "^2.3.1",
|
|
16
16
|
"fastclick": "^1.0.6",
|
|
17
17
|
"global": "^4.4.0",
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { Agreement } from '../../../Type';
|
|
3
2
|
interface Options {
|
|
4
3
|
agreements: Agreement[];
|
|
@@ -8,7 +7,7 @@ interface Options {
|
|
|
8
7
|
}
|
|
9
8
|
export declare function useAgreements(options: Options): {
|
|
10
9
|
agreements: Agreement[];
|
|
11
|
-
checkedAgreements:
|
|
10
|
+
checkedAgreements: (string | number)[];
|
|
12
11
|
checkAllAgreements: () => void;
|
|
13
12
|
unCheckAllAgreements: () => void;
|
|
14
13
|
};
|
package/types/Type/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { AuthenticationClient, CommonMessage, User } from 'authing-js-sdk';
|
|
2
3
|
import { GuardModuleType } from '../Guard/module';
|
|
3
4
|
import { FacePlugin } from '../_utils/facePlugin/interface';
|
|
@@ -42,6 +43,7 @@ export interface IG2Config {
|
|
|
42
43
|
userpool?: string;
|
|
43
44
|
contentCss?: string;
|
|
44
45
|
target?: HTMLElement | string;
|
|
46
|
+
style?: React.CSSProperties;
|
|
45
47
|
__internalRequest__?: boolean;
|
|
46
48
|
__singleComponent__?: boolean;
|
|
47
49
|
__unAuthFlow__?: boolean;
|
|
@@ -43,6 +43,7 @@ export declare const useFetchConsoleConfig: (forceUpdate: number, appId?: string
|
|
|
43
43
|
userpool?: string | undefined;
|
|
44
44
|
contentCss?: string | undefined;
|
|
45
45
|
target?: string | HTMLElement | undefined;
|
|
46
|
+
style?: import("react").CSSProperties | undefined;
|
|
46
47
|
__internalRequest__?: boolean | undefined;
|
|
47
48
|
__singleComponent__?: boolean | undefined;
|
|
48
49
|
__unAuthFlow__?: boolean | undefined;
|
|
@@ -47,6 +47,8 @@ export interface IGuardContext {
|
|
|
47
47
|
defaultLanguageConfig: Lang;
|
|
48
48
|
/** 租户信息获取和操作处理相关 */
|
|
49
49
|
tenantInstance?: MultipleTenant;
|
|
50
|
+
/** 判断是否是国外的用户池 */
|
|
51
|
+
isForeignUserpool: boolean;
|
|
50
52
|
}
|
|
51
53
|
export declare const createGuardXContext: () => {
|
|
52
54
|
Provider: React.FC<{
|
|
@@ -157,3 +159,5 @@ export declare const useGuardDefaultLanguage: () => Lang;
|
|
|
157
159
|
export declare const useGuardTenantProvider: () => MultipleTenant | undefined;
|
|
158
160
|
/** 当前人机验证策略 */
|
|
159
161
|
export declare const useRobotVerify: () => "always_enable" | "disable" | "condition_set";
|
|
162
|
+
/** 当前用户池是否是国外用户池 */
|
|
163
|
+
export declare const useIsForeignUserpool: () => boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "4.4.1-alpha.
|
|
1
|
+
declare const _default: "4.4.1-alpha.6";
|
|
2
2
|
export default _default;
|