@authing/react-ui-components 4.0.5-alpha.0 → 4.0.6-rc.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@authing/react-ui-components",
3
- "version": "4.0.5-alpha.0",
3
+ "version": "4.0.6-rc.0",
4
4
  "private": false,
5
5
  "main": "lib/index.min.js",
6
6
  "typings": "types/index.d.ts",
@@ -1,8 +1,9 @@
1
+ import { User } from 'authing-js-sdk';
1
2
  import { CompleteInfoRequest, RegisterCompleteInfoInitData } from './interface';
2
3
  export declare enum CompleteInfoAuthFlowAction {
3
4
  Complete = "complete-completion",
4
5
  Skip = "skip-completion"
5
6
  }
6
7
  export declare const authFlow: (action: CompleteInfoAuthFlowAction, data?: CompleteInfoRequest | undefined) => Promise<import("../_utils/http").AuthingGuardResponse<any>>;
7
- export declare const registerSkipMethod: (fnName: RegisterCompleteInfoInitData['businessRequestName'], content: any) => Promise<import("../_utils/http").AuthingGuardResponse<any>>;
8
- export declare const registerRequest: (action: CompleteInfoAuthFlowAction, registerFnName: RegisterCompleteInfoInitData['businessRequestName'], registerContent: any, registerProfile?: any) => Promise<import("../_utils/http").AuthingGuardResponse<any> | undefined>;
8
+ export declare const registerSkipMethod: (fnName: RegisterCompleteInfoInitData['businessRequestName'], content: any) => Promise<import("../_utils/http").AuthingGuardResponse<any>> | undefined;
9
+ export declare const registerRequest: (action: CompleteInfoAuthFlowAction, registerFnName: RegisterCompleteInfoInitData['businessRequestName'], registerContent: any, registerProfile?: any) => Promise<User | import("../_utils/http").AuthingGuardResponse<any> | undefined>;
@@ -3,7 +3,8 @@ import { GuardProps } from '..';
3
3
  import '../styles.less';
4
4
  export declare enum LangMAP {
5
5
  zhCn = "zh-CN",
6
- enUs = "en-US"
6
+ enUs = "en-US",
7
+ jaJp = "ja-JP"
7
8
  }
8
9
  export declare const RenderModule: React.FC<{
9
10
  guardProps: GuardProps;
@@ -2,12 +2,6 @@ import { IG2Config, IG2Events, IG2FCProps, IG2FCViewProps } from '../Type';
2
2
  import { AuthenticationClient, SocialConnectionProvider, User } from 'authing-js-sdk';
3
3
  import { QrCodeAuthenticationClient } from 'authing-js-sdk/build/main/lib/authentication/QrCodeAuthenticationClient';
4
4
  import { Agreement, LoginMethods, PasswordLoginMethods } from '../Type/application';
5
- export declare enum ConnectionType {
6
- PASSWORD = "PASSWORD",
7
- PASSCODE = "PASSCODE",
8
- LDAP = "LDAP",
9
- AD = "AD"
10
- }
11
5
  export interface LoginConfig extends IG2Config {
12
6
  autoRegister?: boolean;
13
7
  disableResetPwd?: boolean;
@@ -7,7 +7,7 @@ import { CodeStatus, UiQrProps } from './UiQrCode';
7
7
  export declare type CodeStatusDescriptions = Partial<Record<Exclude<CodeStatus, 'loading'>, React.ReactNode | ((referQrCode?: () => void) => React.ReactNode)>>;
8
8
  export interface WorkQrCodeRef {
9
9
  referQrCode: () => Promise<{
10
- qrcodeId: string;
10
+ random: string;
11
11
  url: string;
12
12
  } | undefined>;
13
13
  }
@@ -15,7 +15,7 @@ interface WorkQrCodeProps extends Omit<UiQrProps, 'description' | 'status'> {
15
15
  /**
16
16
  * 二维码场景
17
17
  */
18
- scene: 'WECHAT_OFFICIAL_ACCOUNT' | 'MOBILE_APP' | 'WECHAT_MINIPROGRAM';
18
+ scene: 'WXAPP_AUTH' | 'APP_AUTH' | 'WECHATMP_AUTH';
19
19
  /**
20
20
  * 不同状态请求文字
21
21
  */
@@ -11,7 +11,7 @@ export interface QrCodeResponse {
11
11
  /**
12
12
  * 返回的随机值
13
13
  */
14
- qrcodeId: number;
14
+ random: number;
15
15
  /**
16
16
  * 返回的用户信息
17
17
  */
@@ -30,7 +30,7 @@ export interface QrCodeResponse {
30
30
  */
31
31
  interface QrCodeRequest {
32
32
  genCodeRequest?: () => Promise<AuthingGuardResponse<{
33
- qrcodeId: string;
33
+ random: string;
34
34
  url: string;
35
35
  }>>;
36
36
  /**
@@ -16,7 +16,7 @@ export declare type RootState = {
16
16
  /**
17
17
  * 二维码随机值
18
18
  */
19
- qrcodeId?: string;
19
+ random?: string;
20
20
  };
21
21
  /**
22
22
  * QrCode 准备阶段 Hook
@@ -1,5 +1,5 @@
1
1
  import { FC } from 'react';
2
- import { SceneType } from '../_utils/types';
2
+ import { SceneType } from 'authing-js-sdk';
3
3
  import './style.less';
4
4
  import { InputProps } from 'antd/lib/input';
5
5
  export interface SendCodeByPhoneProps extends InputProps {
@@ -47,7 +47,8 @@ export declare enum Protocol {
47
47
  OIDC = "oidc",
48
48
  SAML = "saml",
49
49
  OAUTH = "oauth",
50
- AZURE_AD = "azure-ad"
50
+ AZURE_AD = "azure-ad",
51
+ AD_KERBEROS = "ad-kerberos"
51
52
  }
52
53
  export interface IOAuthConnectionConfig {
53
54
  authEndPoint: string;
@@ -4,7 +4,7 @@ import { FacePlugin } from '../_utils/facePlugin/interface';
4
4
  import { ApplicationConfig } from './application';
5
5
  export * from './application';
6
6
  export type { CommonMessage, User };
7
- export declare type Lang = 'zh-CN' | 'en-US' | 'zh-TW';
7
+ export declare type Lang = 'zh-CN' | 'en-US' | 'zh-TW' | 'ja-JP';
8
8
  export declare enum GuardMode {
9
9
  Modal = "modal",
10
10
  Normal = "normal"
@@ -69,12 +69,16 @@ export interface GuardPageConfig {
69
69
  };
70
70
  }
71
71
  export declare enum EmailScene {
72
- REGISTER_VERIFY_CODE = "CHANNEL_REGISTER",
73
- LOGIN_VERIFY_CODE = "CHANNEL_LOGIN",
74
- MFA_VERIFY_CODE = "CHANNEL_VERIFY_MFA",
75
- INFORMATION_COMPLETION_VERIFY_CODE = "CHANNEL_COMPLETE_EMAIL",
76
- RESET_PASSWORD_VERIFY_CODE = "CHANNEL_RESET_PASSWORD",
77
- EMAIL_BIND_VERIFY_CODE = "CHANNEL_BIND_EMAIL",
78
- EMAIL_UNBIND_VERIFY_CODE = "CHANNEL_UNBIND_EMAIL",
79
- SELF_UNLOCKING_VERIFY_CODE = "CHANNEL_UNLOCK_ACCOUNT"
72
+ WELCOME_EMAIL = "WELCOME_EMAIL",
73
+ FIRST_CREATED_USER = "FIRST_CREATED_USER",
74
+ REGISTER_VERIFY_CODE = "REGISTER_VERIFY_CODE",
75
+ LOGIN_VERIFY_CODE = "LOGIN_VERIFY_CODE",
76
+ MFA_VERIFY_CODE = "MFA_VERIFY_CODE",
77
+ INFORMATION_COMPLETION_VERIFY_CODE = "INFORMATION_COMPLETION_VERIFY_CODE",
78
+ FIRST_EMAIL_LOGIN_VERIFY = "FIRST_EMAIL_LOGIN_VERIFY",
79
+ CONSOLE_CONDUCTED_VERIFY = "CONSOLE_CONDUCTED_VERIFY",
80
+ RESET_PASSWORD_VERIFY_CODE = "RESET_PASSWORD_VERIFY_CODE",
81
+ EMAIL_BIND_VERIFY_CODE = "EMAIL_BIND_VERIFY_CODE",
82
+ EMAIL_UNBIND_VERIFY_CODE = "EMAIL_UNBIND_VERIFY_CODE",
83
+ SELF_UNLOCKING_VERIFY_CODE = "SELF_UNLOCKING_VERIFY_CODE"
80
84
  }
@@ -43,7 +43,6 @@ export declare const getUserRegisterParams: (params?: string[] | undefined) => {
43
43
  key: string;
44
44
  value: string | string[] | qs.ParsedQs | qs.ParsedQs[] | undefined;
45
45
  }[];
46
- export declare const getUserRegisterParam: (params: string) => any;
47
46
  export declare const isWeChatBrowser: () => boolean | null;
48
47
  export declare const isLarkBrowser: () => boolean | null;
49
48
  export declare const isQtWebEngine: () => boolean | null;
@@ -0,0 +1,4 @@
1
+ import common from './common.json';
2
+ import login from './login.json';
3
+ import user from './user.json';
4
+ export { common, login, user };
@@ -1,2 +1,2 @@
1
- declare const _default: "4.0.5-alpha.0";
1
+ declare const _default: "4.0.6-rc.0";
2
2
  export default _default;