@authing/guard-shim-react 4.5.8-alpha.3 → 4.5.8
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/dist/guard.min.css +1 -1
- package/dist/guard.min.js +139 -152
- package/dist/typings/src/GuardSelect/index.d.ts +0 -1
- package/dist/typings/src/Login/hooks/useLoginMultiple.d.ts +1 -1
- package/dist/typings/src/TenantPortalSelect/interface.d.ts +0 -22
- package/dist/typings/src/Type/application.d.ts +0 -2
- package/dist/typings/src/_utils/config/index.d.ts +1 -1
- package/package.json +1 -1
- package/dist/typings/src/TenantPortalSelect/CreateButton/index.d.ts +0 -4
- package/dist/typings/src/TenantPortalSelect/InputEmailCode/index.d.ts +0 -8
- package/dist/typings/src/TenantPortalSelect/JoinButton/index.d.ts +0 -4
- package/dist/typings/src/TenantPortalSelect/businessRequest.d.ts +0 -6
- package/dist/typings/src/TenantPortalSelect/core/CreateTenant.d.ts +0 -4
- package/dist/typings/src/TenantPortalSelect/core/JoinTenant.d.ts +0 -4
|
@@ -24,7 +24,6 @@ export interface GuardSelectProps<T = any> extends ListProps<any> {
|
|
|
24
24
|
/** 数据源 */
|
|
25
25
|
dataSource: T[];
|
|
26
26
|
onSelect?: (item?: T, index?: number) => void;
|
|
27
|
-
isNewStyle?: boolean;
|
|
28
27
|
}
|
|
29
28
|
/** 选择列表组件 兼容绝大多数选择场景 */
|
|
30
29
|
export declare const GuardSelect: <D extends GuardSelectItem = any>(props: GuardSelectProps<D>) => JSX.Element;
|
|
@@ -58,7 +58,7 @@ declare function useLoginMultiple(setLoginWay: React.Dispatch<any>): {
|
|
|
58
58
|
getOriginAccount: () => string;
|
|
59
59
|
getOriginWay: () => string;
|
|
60
60
|
} | undefined;
|
|
61
|
-
referMultipleState: ((type: "
|
|
61
|
+
referMultipleState: ((type: "multiple" | "login") => void) | undefined;
|
|
62
62
|
backfillData: BackFillMultipleState | undefined;
|
|
63
63
|
defaultQrWay: string | undefined;
|
|
64
64
|
};
|
|
@@ -23,7 +23,6 @@ export interface TenantPortalDataItem extends TenantPortalListType {
|
|
|
23
23
|
avatar?: AvatarProps;
|
|
24
24
|
extra?: React.ReactNode;
|
|
25
25
|
title?: string;
|
|
26
|
-
isJoin?: boolean;
|
|
27
26
|
}
|
|
28
27
|
/** 租户门户相关事件 */
|
|
29
28
|
export interface TenantPortalEvents extends IG2Events {
|
|
@@ -31,24 +30,3 @@ export interface TenantPortalEvents extends IG2Events {
|
|
|
31
30
|
/** 租户门户选择回调 */
|
|
32
31
|
onTenantSelect?: (data?: TenantPortalSelectType) => void;
|
|
33
32
|
}
|
|
34
|
-
export declare type TenantView = 'default' | 'join' | 'create';
|
|
35
|
-
export interface TenantButtonProps {
|
|
36
|
-
className?: string;
|
|
37
|
-
onClick?: () => void;
|
|
38
|
-
style?: React.CSSProperties;
|
|
39
|
-
}
|
|
40
|
-
export interface BackProps {
|
|
41
|
-
onBack: () => void;
|
|
42
|
-
}
|
|
43
|
-
export interface CreateTenantProps extends BackProps {
|
|
44
|
-
}
|
|
45
|
-
export interface JoinTenantProps extends BackProps {
|
|
46
|
-
}
|
|
47
|
-
export declare enum JoinTenantStepEnum {
|
|
48
|
-
InputTenantCode = "inputTenantCode",
|
|
49
|
-
InputEnterpriseEmail = "inputEnterpriseEmail",
|
|
50
|
-
VerifyEmailCode = "verifyEmailCode",
|
|
51
|
-
NoEnterpriseDomain = "noEnterpriseDomain",
|
|
52
|
-
JoinSuccess = "joinSuccess",
|
|
53
|
-
JoinFailed = "joinFailed"
|
|
54
|
-
}
|
|
@@ -350,7 +350,5 @@ export interface ApplicationConfig {
|
|
|
350
350
|
appRobotVerify: 'always_enable' | 'disable' | 'condition_set';
|
|
351
351
|
/** 用户池的人机验证策略,始终开启、不开启、设置条件触发 */
|
|
352
352
|
userpoolRobotVerify: 'always_enable' | 'disable' | 'condition_set';
|
|
353
|
-
/** 加入租户校验企业邮箱 */
|
|
354
|
-
enableVerifyDomainInJoinTenant: boolean;
|
|
355
353
|
passkeyEnabled: boolean;
|
|
356
354
|
}
|
|
@@ -53,7 +53,7 @@ export declare const useFetchConsoleConfig: (forceUpdate: number, appId?: string
|
|
|
53
53
|
loginMethods?: LoginMethods[] | undefined;
|
|
54
54
|
passwordLoginMethods?: string[] | undefined;
|
|
55
55
|
socialConnections?: import("../../Type").SocialConnectionProvider[] | undefined;
|
|
56
|
-
socialConnectionsBtnShape?: "button" | "
|
|
56
|
+
socialConnectionsBtnShape?: "button" | "icon" | "default" | undefined;
|
|
57
57
|
enterpriseConnections?: string[] | undefined;
|
|
58
58
|
qrCodeScanOptions?: {
|
|
59
59
|
extIdpConnId?: string | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export declare enum TenantBusinessAction {
|
|
2
|
-
JoinTenant = "join-tenant-portal",
|
|
3
|
-
CreateTenant = "create-tenant-portal"
|
|
4
|
-
}
|
|
5
|
-
export declare const authFlow: (action: TenantBusinessAction, content: any) => Promise<import("../_utils/http").AuthingGuardResponse<any>>;
|
|
6
|
-
export declare const getTenantInfoByCode: (code: string) => Promise<import("../_utils/http").AuthingGuardResponse<any>>;
|