@authing/react-ui-components 4.4.1-alpha.1 → 4.4.1-alpha.11

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@authing/react-ui-components",
3
- "version": "4.4.1-alpha.1",
3
+ "version": "4.4.1-alpha.11",
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.36-alpha.1",
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: import("react").ReactText[];
10
+ checkedAgreements: (string | number)[];
12
11
  checkAllAgreements: () => void;
13
12
  unCheckAllAgreements: () => void;
14
13
  };
@@ -29,7 +29,7 @@ export declare enum IdentityBindingAction {
29
29
  export declare const PhoneCode: (params: PhoneCodeParams) => Promise<import("../_utils/http").AuthingGuardResponse<any>>;
30
30
  export declare const EmailCode: (params: EmailCodeParams) => Promise<import("../_utils/http").AuthingGuardResponse<any>>;
31
31
  export declare const Password: (params: PasswordParams) => Promise<import("../_utils/http").AuthingGuardResponse<any>>;
32
- export declare const useIdentityBindingBusinessRequest: (type?: 'register' | 'bind') => {
32
+ export declare const useIdentityBindingBusinessRequest: (type?: 'register' | 'bind', enabledLoginAuthnWorkflow?: boolean) => {
33
33
  "phone-code": (params: PhoneCodeParams) => Promise<import("../_utils/http").AuthingGuardResponse<any>>;
34
34
  "emial-code": (params: EmailCodeParams) => Promise<import("../_utils/http").AuthingGuardResponse<any>>;
35
35
  password: (params: PasswordParams) => Promise<import("../_utils/http").AuthingGuardResponse<any>>;
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import { Agreement, ApplicationConfig } from '../../Type/application';
3
+ import { PasswordLoginMethods } from '../../Type';
3
4
  export interface RegisterWithEmailProps {
4
5
  onRegisterSuccess: Function;
5
6
  onRegisterFailed: Function;
@@ -8,6 +9,6 @@ export interface RegisterWithEmailProps {
8
9
  agreements: Agreement[];
9
10
  registeContext?: any;
10
11
  label?: string;
11
- method?: string;
12
+ method?: PasswordLoginMethods | string;
12
13
  }
13
14
  export declare const RegisterWithEmail: React.FC<RegisterWithEmailProps>;
@@ -11,5 +11,7 @@ export interface SendCodeByPhoneProps extends InputProps {
11
11
  scene: SceneType;
12
12
  areaCode?: string;
13
13
  isInternationSms?: boolean;
14
+ codeFieldName?: string;
15
+ captchaCode?: string;
14
16
  }
15
17
  export declare const SendCodeByPhone: FC<SendCodeByPhoneProps>;
@@ -168,6 +168,7 @@ export interface Agreement {
168
168
  availableAt?: number;
169
169
  }
170
170
  export declare type PasswordLoginMethods = 'username-password' | 'email-password' | 'phone-password';
171
+ export declare const normalMethods: PasswordLoginMethods[];
171
172
  export declare type VerifyLoginMethods = 'email-code' | 'phone-code';
172
173
  export declare type ComplateFiledsPlace = 'register' | 'login';
173
174
  export interface TabFieldsI18nItem {
@@ -333,5 +334,7 @@ export interface ApplicationConfig {
333
334
  appRobotVerify: 'always_enable' | 'disable' | 'condition_set';
334
335
  /** 用户池的人机验证策略,始终开启、不开启、设置条件触发 */
335
336
  userpoolRobotVerify: 'always_enable' | 'disable' | 'condition_set';
336
- enabledAuthnWorkflow: boolean;
337
+ enabledLoginAuthnWorkflow: boolean;
338
+ enabledRegistryAuthnWorkflow: boolean;
339
+ enabledResetPwdAuthnWorkflow: boolean;
337
340
  }
@@ -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;
@@ -19,7 +19,7 @@ export declare class GuardHttp {
19
19
  headers: any;
20
20
  } | undefined) => Promise<AuthingGuardResponse<T>>;
21
21
  authFlow: <T = any>(action: string, data?: any) => Promise<AuthingGuardResponse<T>>;
22
- authWorkFlow: <T = any>(action: string, data?: any) => Promise<AuthingGuardResponse<T>>;
22
+ authWorkFlow: <T = any>(action: string, data?: any, ignoreWorkFlow?: boolean | undefined) => Promise<AuthingGuardResponse<T>>;
23
23
  initErrorCodeInterceptor: (callBack: (code: CodeAction, res: AuthingResponse) => AuthingGuardResponse) => this | undefined;
24
24
  responseIntercept: (res: AuthingResponse) => AuthingGuardResponse;
25
25
  }
@@ -27,6 +27,7 @@ export interface AuthingResponse<T = any> {
27
27
  message?: string;
28
28
  flowHandle?: string;
29
29
  workflowInstanceId?: string;
30
+ taskName?: string;
30
31
  }
31
32
  export interface AuthingGuardResponse<T = any> extends AuthingResponse<T> {
32
33
  onGuardHandling?: () => CodeAction;
@@ -20,6 +20,7 @@ export declare enum ApiCode {
20
20
  UNSAFE_PASSWORD_RESET = 2071,
21
21
  FLOW_SELECT_ACCOUNT = 2921,
22
22
  TENANT_PORTAL = 1644,
23
- RESET_ACCOUNT_NAME = 1108
23
+ RESET_ACCOUNT_NAME = 1108,
24
+ NODE_EXCEPTION = 1708
24
25
  }
25
26
  export declare const ChangeModuleApiCodeMapping: Record<string, GuardModuleType>;
@@ -1,2 +1,2 @@
1
- declare const _default: "4.4.1-alpha.1";
1
+ declare const _default: "4.4.1-alpha.11";
2
2
  export default _default;