@authing/react-ui-components 4.3.3-alpha.0 → 4.3.3-alpha.1

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.3.3-alpha.0",
3
+ "version": "4.3.3-alpha.1",
4
4
  "private": false,
5
5
  "main": "lib/index.min.js",
6
6
  "typings": "types/index.d.ts",
@@ -18,12 +18,14 @@ export declare enum GuardModuleType {
18
18
  SUBMIT_SUCCESS = "submitSuccess",
19
19
  IDENTITY_BINDING_ASK = "identityBindingAsk",
20
20
  IDENTITY_BINDING = "identityBinding",
21
+ IDENTITY_BINDING_NO_ASK = "identityBindingNoAsk",
21
22
  SELF_UNLOCK = "selfUnlock",
22
23
  FLOW_SELECT_ACCOUNT = "flowSelectAccount",
23
24
  APP_OTP_VERIFY = "appOtpVerify",
24
25
  /** 多租户门户选择页 */
25
26
  TENANT_PORTAL = "tenant-portal",
26
- New_SUBMIT_SUCCESS = "newSubmitSuccess"
27
+ New_SUBMIT_SUCCESS = "newSubmitSuccess",
28
+ RESET_ACCOUNT_NAME = "resetAccountName"
27
29
  }
28
30
  export interface GuardModuleAction {
29
31
  action: string;
@@ -1,3 +1,5 @@
1
1
  import React from 'react';
2
2
  import './styles.less';
3
- export declare const GuardIdentityBindingView: React.FC;
3
+ export declare const GuardIdentityBindingView: React.FC<{
4
+ skipAsk?: boolean;
5
+ }>;
@@ -21,12 +21,15 @@ export declare enum IdentityBindingAction {
21
21
  CreateUser = "create-federation-account",
22
22
  BindByPassword = "bind-identity-by-password",
23
23
  BindByPhoneCode = "bind-identity-by-phone-code",
24
- BindByEmailCode = "bind-identity-by-email-code"
24
+ BindByEmailCode = "bind-identity-by-email-code",
25
+ RegisterByPassword = "register-bind-by-password",
26
+ RegisterByPhoneCode = "register-bind-by-phone-code",
27
+ RegisterByEmailCode = "register-bind-by-email-code"
25
28
  }
26
29
  export declare const PhoneCode: (params: PhoneCodeParams) => Promise<import("../_utils/http").AuthingGuardResponse<any>>;
27
30
  export declare const EmailCode: (params: EmailCodeParams) => Promise<import("../_utils/http").AuthingGuardResponse<any>>;
28
31
  export declare const Password: (params: PasswordParams) => Promise<import("../_utils/http").AuthingGuardResponse<any>>;
29
- export declare const useIdentityBindingBusinessRequest: () => {
32
+ export declare const useIdentityBindingBusinessRequest: (type?: 'register' | 'bind') => {
30
33
  "phone-code": (params: PhoneCodeParams) => Promise<import("../_utils/http").AuthingGuardResponse<any>>;
31
34
  "emial-code": (params: EmailCodeParams) => Promise<import("../_utils/http").AuthingGuardResponse<any>>;
32
35
  password: (params: PasswordParams) => Promise<import("../_utils/http").AuthingGuardResponse<any>>;
@@ -1,3 +1,5 @@
1
- /// <reference types="react" />
1
+ import { FC } from 'react';
2
2
  import './styles.less';
3
- export declare const GuardLoginView: () => JSX.Element;
3
+ export declare const GuardLoginView: FC<{
4
+ isResetPage?: boolean;
5
+ }>;
@@ -0,0 +1,6 @@
1
+ export declare const enum ResetAccountBusinessAction {
2
+ ResetName = "reset-username-before-auth"
3
+ }
4
+ export declare const authFlow: (action: ResetAccountBusinessAction, content: {
5
+ username: string;
6
+ }) => Promise<import("../../_utils/http").AuthingGuardResponse<any>>;
@@ -0,0 +1,3 @@
1
+ import { FC } from 'react';
2
+ import './style.less';
3
+ export declare const ResetAccountName: FC;
@@ -7,6 +7,7 @@ export declare enum CodeAction {
7
7
  export declare enum ApiCode {
8
8
  IDENTITY_BINDING_ASK = 1641,
9
9
  IDENTITY_BINDING = 1640,
10
+ IDENTITY_BINDING_NO_ASK = 1666,
10
11
  APP_MFA = 1636,
11
12
  MFA = 1635,
12
13
  ABORT_FLOW = 1699,
@@ -18,6 +19,7 @@ export declare enum ApiCode {
18
19
  UNSAFE_PASSWORD_TIP = 2061,
19
20
  UNSAFE_PASSWORD_RESET = 2071,
20
21
  FLOW_SELECT_ACCOUNT = 2921,
21
- TENANT_PORTAL = 1644
22
+ TENANT_PORTAL = 1644,
23
+ RESET_ACCOUNT_NAME = 1108
22
24
  }
23
25
  export declare const ChangeModuleApiCodeMapping: Record<string, GuardModuleType>;
@@ -1,2 +1,2 @@
1
- declare const _default: "4.2.3-alpha.14";
1
+ declare const _default: "4.3.3-alpha.0";
2
2
  export default _default;