@authing/react-ui-components 4.2.0-alpha.0 → 4.2.0-alpha.2
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 +1 -1
- package/types/Guard/module.d.ts +4 -1
- package/types/MFA/interface.d.ts +3 -0
- package/types/NewSubmitSuccess/index.d.ts +2 -0
- package/types/NewSubmitSuccess/interface.d.ts +17 -0
- package/types/Register/core/WithEmail.d.ts +2 -2
- package/types/Type/application.d.ts +10 -0
- package/types/ValidatorRules/ValidatorFormItem.d.ts +3 -1
- package/types/ValidatorRules/index.d.ts +0 -1
- package/types/_utils/context.d.ts +5 -0
- package/types/_utils/responseManagement/interface.d.ts +2 -1
- package/types/version/version.d.ts +1 -1
package/package.json
CHANGED
package/types/Guard/module.d.ts
CHANGED
|
@@ -19,7 +19,10 @@ export declare enum GuardModuleType {
|
|
|
19
19
|
IDENTITY_BINDING_ASK = "identityBindingAsk",
|
|
20
20
|
IDENTITY_BINDING = "identityBinding",
|
|
21
21
|
SELF_UNLOCK = "selfUnlock",
|
|
22
|
-
FLOW_SELECT_ACCOUNT = "flowSelectAccount"
|
|
22
|
+
FLOW_SELECT_ACCOUNT = "flowSelectAccount",
|
|
23
|
+
/** 多租户门户选择页 */
|
|
24
|
+
TENANT_PORTAL = "tenant-portal",
|
|
25
|
+
New_SUBMIT_SUCCESS = "newSubmitSuccess"
|
|
23
26
|
}
|
|
24
27
|
export interface GuardModuleAction {
|
|
25
28
|
action: string;
|
package/types/MFA/interface.d.ts
CHANGED
|
@@ -29,6 +29,9 @@ export interface GuardMFAInitData {
|
|
|
29
29
|
nickme?: string;
|
|
30
30
|
username?: string;
|
|
31
31
|
current?: MFAType;
|
|
32
|
+
mfaPhoneCountryCode?: string;
|
|
33
|
+
mfaPhone?: string;
|
|
34
|
+
mfaEmail?: string;
|
|
32
35
|
}
|
|
33
36
|
export interface GuardMFAProps extends IG2FCProps, MFAEvents {
|
|
34
37
|
config: Partial<MFAConfig>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { GuardModuleType } from '../Guard';
|
|
2
|
+
import { IG2Config, IG2Events, IG2FCViewProps } from '../Type';
|
|
3
|
+
export interface SubmitSuccessEvents extends IG2Events {
|
|
4
|
+
}
|
|
5
|
+
export interface SubmitSuccessConfig extends IG2Config {
|
|
6
|
+
}
|
|
7
|
+
export interface SubmitSuccessInitData {
|
|
8
|
+
title?: string;
|
|
9
|
+
message?: string;
|
|
10
|
+
text?: string;
|
|
11
|
+
countDesc?: string;
|
|
12
|
+
changeModule?: GuardModuleType;
|
|
13
|
+
}
|
|
14
|
+
export interface GuardNewSubmitSuccessViewProps extends IG2FCViewProps, SubmitSuccessEvents {
|
|
15
|
+
config: SubmitSuccessConfig;
|
|
16
|
+
initData?: SubmitSuccessInitData;
|
|
17
|
+
}
|
|
@@ -7,7 +7,7 @@ export interface RegisterWithEmailProps {
|
|
|
7
7
|
publicConfig?: ApplicationConfig;
|
|
8
8
|
agreements: Agreement[];
|
|
9
9
|
registeContext?: any;
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
label?: string;
|
|
11
|
+
method?: string;
|
|
12
12
|
}
|
|
13
13
|
export declare const RegisterWithEmail: React.FC<RegisterWithEmailProps>;
|
|
@@ -292,4 +292,14 @@ export interface ApplicationConfig {
|
|
|
292
292
|
loginMethodsSort: string[];
|
|
293
293
|
};
|
|
294
294
|
tabMethodsFields: TabFieldsI18nItem[];
|
|
295
|
+
/** 是否为租户控制台应用 */
|
|
296
|
+
isTenantConsole?: boolean;
|
|
297
|
+
/** 是否默认为租户应用面板应用 */
|
|
298
|
+
isTenantDefault?: boolean;
|
|
299
|
+
/** 租户详情 */
|
|
300
|
+
tenantInfo?: Record<string, any>;
|
|
301
|
+
/** mfa 相关 */
|
|
302
|
+
mfa: {
|
|
303
|
+
faceScore: number;
|
|
304
|
+
};
|
|
295
305
|
}
|
|
@@ -3,4 +3,6 @@ import { ValidatorFormItemProps } from '.';
|
|
|
3
3
|
export declare const EmailFormItem: React.FC<ValidatorFormItemProps>;
|
|
4
4
|
export declare const PhoneFormItem: React.FC<ValidatorFormItemProps>;
|
|
5
5
|
export declare const UserNameFormItem: React.FC<ValidatorFormItemProps>;
|
|
6
|
-
export declare const CustomNameFormItem: React.FC<ValidatorFormItemProps
|
|
6
|
+
export declare const CustomNameFormItem: React.FC<ValidatorFormItemProps & {
|
|
7
|
+
method: string;
|
|
8
|
+
}>;
|
|
@@ -11,7 +11,6 @@ export interface ValidatorFormItemProps extends FormItemProps {
|
|
|
11
11
|
* 控制内部FormItem组件关于pattern的校验规则
|
|
12
12
|
*/
|
|
13
13
|
isCheckPattern?: boolean;
|
|
14
|
-
defaultMethod?: string;
|
|
15
14
|
}
|
|
16
15
|
export interface ValidatorFormItemMetaProps extends ValidatorFormItemProps {
|
|
17
16
|
method: 'email' | 'phone' | 'username' | string;
|
|
@@ -4,6 +4,7 @@ import { BackFillMultipleState, StoreInstance } from '../Guard/core/hooks/useMul
|
|
|
4
4
|
import { ModuleState } from '../Guard/GuardModule/stateMachine';
|
|
5
5
|
import { ApplicationConfig } from '../Type/application';
|
|
6
6
|
import { GuardHttp } from './guardHttp';
|
|
7
|
+
import { MultipleTenant } from './tenant';
|
|
7
8
|
export interface IGuardContext {
|
|
8
9
|
finallyConfig: GuardLocalConfig;
|
|
9
10
|
defaultMergedConfig: GuardLocalConfig;
|
|
@@ -43,6 +44,8 @@ export interface IGuardContext {
|
|
|
43
44
|
clearBackFillData?: () => void;
|
|
44
45
|
};
|
|
45
46
|
defaultLanguageConfig: Lang;
|
|
47
|
+
/** 租户信息获取和操作处理相关 */
|
|
48
|
+
tenantInstance?: MultipleTenant;
|
|
46
49
|
}
|
|
47
50
|
export declare const createGuardXContext: () => {
|
|
48
51
|
Provider: React.FC<{
|
|
@@ -143,3 +146,5 @@ export declare const useGuardMultipleInstance: () => {
|
|
|
143
146
|
* 默认语言
|
|
144
147
|
*/
|
|
145
148
|
export declare const useGuardDefaultLanguage: () => Lang;
|
|
149
|
+
/** 用来操作和获取租户相关的内容 */
|
|
150
|
+
export declare const useGuardTenantProvider: () => MultipleTenant | undefined;
|
|
@@ -17,6 +17,7 @@ export declare enum ApiCode {
|
|
|
17
17
|
FORCED_PASSWORD_RESET = 2058,
|
|
18
18
|
UNSAFE_PASSWORD_TIP = 2061,
|
|
19
19
|
UNSAFE_PASSWORD_RESET = 2071,
|
|
20
|
-
FLOW_SELECT_ACCOUNT = 2921
|
|
20
|
+
FLOW_SELECT_ACCOUNT = 2921,
|
|
21
|
+
TENANT_PORTAL = 1644
|
|
21
22
|
}
|
|
22
23
|
export declare const ChangeModuleApiCodeMapping: Record<string, GuardModuleType>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "4.2.0-alpha.
|
|
1
|
+
declare const _default: "4.2.0-alpha.2";
|
|
2
2
|
export default _default;
|