@authing/react-ui-components 4.4.3-lulu.5 → 4.4.3-lulu.7
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/asset-manifest.json +26 -0
- package/dist/index.html +1 -0
- package/dist/static/css/2.e17a473e.chunk.css +3 -0
- package/dist/static/css/2.e17a473e.chunk.css.map +1 -0
- package/dist/static/css/main.81a8a203.chunk.css +2 -0
- package/dist/static/css/main.81a8a203.chunk.css.map +1 -0
- package/dist/static/js/2.93f1336a.chunk.js +3 -0
- package/dist/static/js/2.93f1336a.chunk.js.LICENSE.txt +124 -0
- package/dist/static/js/2.93f1336a.chunk.js.map +1 -0
- package/dist/static/js/3.01bce7f6.chunk.js +2 -0
- package/dist/static/js/3.01bce7f6.chunk.js.map +1 -0
- package/dist/static/js/main.a4cb4283.chunk.js +2 -0
- package/dist/static/js/main.a4cb4283.chunk.js.map +1 -0
- package/dist/static/js/runtime-main.ae93c108.js +2 -0
- package/dist/static/js/runtime-main.ae93c108.js.map +1 -0
- package/dist/static/media/loading.3cf0104f.svg +32 -0
- package/lib/index.min.css +2 -2
- package/lib/index.min.js +1 -1
- package/package.json +1 -1
- package/types/CompleteInfo/core/completeInfo.d.ts +1 -0
- package/types/Guard/core/hooks/useMultipleAccounts.d.ts +2 -2
- package/types/Guard/event.d.ts +1 -1
- package/types/Guard/module.d.ts +8 -1
- package/types/Invitation/Application/index.d.ts +3 -0
- package/types/Invitation/AuthenticationBind/index.d.ts +3 -0
- package/types/Invitation/Complete/index.d.ts +3 -0
- package/types/Invitation/Error/index.d.ts +3 -0
- package/types/Invitation/Success/index.d.ts +2 -0
- package/types/Invitation/interface.d.ts +66 -0
- package/types/Login/hooks/useLoginMultiple.d.ts +1 -1
- package/types/Message/index.d.ts +9 -0
- package/types/Type/application.d.ts +1 -0
- package/types/Type/index.d.ts +2 -1
- package/types/_utils/context.d.ts +1 -1
- package/types/_utils/index.d.ts +1 -1
- package/types/_utils/responseManagement/interface.d.ts +3 -1
- package/types/version/version.d.ts +1 -1
package/package.json
CHANGED
|
@@ -3,6 +3,7 @@ import { CompleteInfoMetaData, CompleteInfoRequest } from '../interface';
|
|
|
3
3
|
export interface CompleteInfoProps {
|
|
4
4
|
metaData: CompleteInfoMetaData[];
|
|
5
5
|
businessRequest: (data: CompleteInfoRequest) => Promise<void>;
|
|
6
|
+
extendsFieldsI18n?: any;
|
|
6
7
|
}
|
|
7
8
|
export interface FieldMetadata {
|
|
8
9
|
key: string;
|
|
@@ -250,7 +250,7 @@ declare class MultipleAccount {
|
|
|
250
250
|
id: string;
|
|
251
251
|
loginAccount?: string | undefined;
|
|
252
252
|
usertype?: string | undefined;
|
|
253
|
-
}, "email" | "username" | "phone" | "photo" | "id" | "
|
|
253
|
+
}, "name" | "email" | "username" | "phone" | "photo" | "id" | "nickname" | "_updateTime" | "qrCodeId" | "areaCode" | "loginAccount" | "usertype">) => void;
|
|
254
254
|
setLoginWayByHttpData: (account: string, data: {
|
|
255
255
|
username?: string | undefined;
|
|
256
256
|
phone?: string | undefined;
|
|
@@ -294,7 +294,7 @@ declare const useMultipleAccounts: ({ appId, finallyConfig, }: {
|
|
|
294
294
|
id: string;
|
|
295
295
|
loginAccount?: string | undefined;
|
|
296
296
|
usertype?: string | undefined;
|
|
297
|
-
}, "email" | "username" | "phone" | "photo" | "id" | "
|
|
297
|
+
}, "name" | "email" | "username" | "phone" | "photo" | "id" | "nickname" | "_updateTime" | "qrCodeId" | "areaCode" | "loginAccount" | "usertype">) => void;
|
|
298
298
|
setLoginWayByHttpData: (account: string, data: {
|
|
299
299
|
username?: string | undefined;
|
|
300
300
|
phone?: string | undefined;
|
package/types/Guard/event.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ export declare const guardEventsFilter: (props: any, multipleInstance?: {
|
|
|
29
29
|
id: string;
|
|
30
30
|
loginAccount?: string | undefined;
|
|
31
31
|
usertype?: string | undefined;
|
|
32
|
-
}, "email" | "username" | "phone" | "photo" | "id" | "
|
|
32
|
+
}, "name" | "email" | "username" | "phone" | "photo" | "id" | "nickname" | "_updateTime" | "qrCodeId" | "areaCode" | "loginAccount" | "usertype">) => void;
|
|
33
33
|
setLoginWayByHttpData: (account: string, data: {
|
|
34
34
|
username?: string | undefined;
|
|
35
35
|
phone?: string | undefined;
|
package/types/Guard/module.d.ts
CHANGED
|
@@ -25,7 +25,14 @@ export declare enum GuardModuleType {
|
|
|
25
25
|
/** 多租户门户选择页 */
|
|
26
26
|
TENANT_PORTAL = "tenant-portal",
|
|
27
27
|
New_SUBMIT_SUCCESS = "newSubmitSuccess",
|
|
28
|
-
RESET_ACCOUNT_NAME = "resetAccountName"
|
|
28
|
+
RESET_ACCOUNT_NAME = "resetAccountName",
|
|
29
|
+
APPLY_INVITATION = "applyInvitation",
|
|
30
|
+
MESSAGE = "message",
|
|
31
|
+
INVITE_AUTH = "inviteAuth",
|
|
32
|
+
INVITE_COMPLETE = "inviteComplete",
|
|
33
|
+
INVITE_EXPIRE = "inviteExpire",
|
|
34
|
+
INVITE_PAGE_EXPIRE = "invitePageExpire",
|
|
35
|
+
INVITE_SUCCESS = "inviteSuccess"
|
|
29
36
|
}
|
|
30
37
|
export interface GuardModuleAction {
|
|
31
38
|
action: string;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { GuardModuleType } from '../Guard/module';
|
|
2
|
+
import { Lang } from '../Type';
|
|
3
|
+
export interface InviteContext {
|
|
4
|
+
token: string;
|
|
5
|
+
email: string | null;
|
|
6
|
+
ticket: string;
|
|
7
|
+
enabledIdentifierCodeConfig: boolean;
|
|
8
|
+
enabledInfoFill: boolean;
|
|
9
|
+
allowSkipBindExtIdp: boolean;
|
|
10
|
+
sendVerifyCodeMethod: 'prioritySMS' | 'priorityEmail';
|
|
11
|
+
phoneCountryCode: string | null;
|
|
12
|
+
phone: string | null;
|
|
13
|
+
username: string | null;
|
|
14
|
+
name: string | null;
|
|
15
|
+
verifyCodeMaxErrCount: number;
|
|
16
|
+
extendsFieldsI18n?: {
|
|
17
|
+
[key: string]: Record<Lang, {
|
|
18
|
+
enabled: boolean;
|
|
19
|
+
value: string;
|
|
20
|
+
}>;
|
|
21
|
+
};
|
|
22
|
+
extendsFieldsOptions?: {
|
|
23
|
+
key: string;
|
|
24
|
+
options: {
|
|
25
|
+
value: string;
|
|
26
|
+
label: string;
|
|
27
|
+
}[];
|
|
28
|
+
}[];
|
|
29
|
+
extendsFields: any;
|
|
30
|
+
registerInfoFillMsg?: string;
|
|
31
|
+
}
|
|
32
|
+
export interface GuardInviteLoginInitData extends Partial<InviteContext> {
|
|
33
|
+
canBack?: boolean;
|
|
34
|
+
verifyAccount: string;
|
|
35
|
+
context: any;
|
|
36
|
+
originModule: GuardModuleType;
|
|
37
|
+
originContext: any;
|
|
38
|
+
}
|
|
39
|
+
export interface GuardInviteCompleteInitData extends Partial<GuardInviteLoginInitData> {
|
|
40
|
+
metaData: any;
|
|
41
|
+
}
|
|
42
|
+
export interface GuardInviteIdentityBindInitData extends Partial<GuardInviteLoginInitData> {
|
|
43
|
+
weComConfig: {
|
|
44
|
+
QRConfig: any;
|
|
45
|
+
id: string;
|
|
46
|
+
isDefault: boolean;
|
|
47
|
+
title: string;
|
|
48
|
+
};
|
|
49
|
+
isNew: boolean;
|
|
50
|
+
socialConnections: any[];
|
|
51
|
+
}
|
|
52
|
+
export interface EyGuardProtocolInitData {
|
|
53
|
+
onAcceptHandle: () => void;
|
|
54
|
+
onRejectHandle: () => void;
|
|
55
|
+
mode: 'Guard' | 'Portal';
|
|
56
|
+
}
|
|
57
|
+
export interface EyLoginProps {
|
|
58
|
+
onBeforeLogin?: (loginInfo: any) => void;
|
|
59
|
+
onLoginSuccess?: (data: any, message?: string) => void;
|
|
60
|
+
onLoginFailed?: (code: number, data: any, message?: string) => void;
|
|
61
|
+
}
|
|
62
|
+
export declare const useRegisterHandleHook: (initData: any, submitButtonRef?: {
|
|
63
|
+
current: {
|
|
64
|
+
onSpin: (arg0: boolean) => void;
|
|
65
|
+
};
|
|
66
|
+
} | undefined) => (context: any) => Promise<void>;
|
|
@@ -36,7 +36,7 @@ declare function useLoginMultiple(setLoginWay: React.Dispatch<any>): {
|
|
|
36
36
|
id: string;
|
|
37
37
|
loginAccount?: string | undefined;
|
|
38
38
|
usertype?: string | undefined;
|
|
39
|
-
}, "email" | "username" | "phone" | "photo" | "id" | "
|
|
39
|
+
}, "name" | "email" | "username" | "phone" | "photo" | "id" | "nickname" | "_updateTime" | "qrCodeId" | "areaCode" | "loginAccount" | "usertype">) => void;
|
|
40
40
|
setLoginWayByHttpData: (account: string, data: {
|
|
41
41
|
username?: string | undefined;
|
|
42
42
|
phone?: string | undefined;
|
package/types/Type/index.d.ts
CHANGED
|
@@ -83,5 +83,6 @@ export declare enum EmailScene {
|
|
|
83
83
|
RESET_PASSWORD_VERIFY_CODE = "RESET_PASSWORD_VERIFY_CODE",
|
|
84
84
|
EMAIL_BIND_VERIFY_CODE = "EMAIL_BIND_VERIFY_CODE",
|
|
85
85
|
EMAIL_UNBIND_VERIFY_CODE = "EMAIL_UNBIND_VERIFY_CODE",
|
|
86
|
-
SELF_UNLOCKING_VERIFY_CODE = "SELF_UNLOCKING_VERIFY_CODE"
|
|
86
|
+
SELF_UNLOCKING_VERIFY_CODE = "SELF_UNLOCKING_VERIFY_CODE",
|
|
87
|
+
VERIFY_CODE = "VERIFY_CODE"
|
|
87
88
|
}
|
|
@@ -120,7 +120,7 @@ export declare const useGuardMultipleInstance: () => {
|
|
|
120
120
|
id: string;
|
|
121
121
|
loginAccount?: string | undefined;
|
|
122
122
|
usertype?: string | undefined;
|
|
123
|
-
}, "email" | "username" | "phone" | "photo" | "id" | "
|
|
123
|
+
}, "name" | "email" | "username" | "phone" | "photo" | "id" | "nickname" | "_updateTime" | "qrCodeId" | "areaCode" | "loginAccount" | "usertype">) => void;
|
|
124
124
|
setLoginWayByHttpData: (account: string, data: {
|
|
125
125
|
username?: string | undefined;
|
|
126
126
|
phone?: string | undefined;
|
package/types/_utils/index.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ export declare const getClassnames: (classnames: (string | boolean | undefined)[
|
|
|
27
27
|
* @param item
|
|
28
28
|
* @returns {boolean}
|
|
29
29
|
*/
|
|
30
|
-
export declare function isObject(item: any):
|
|
30
|
+
export declare function isObject(item: any): boolean;
|
|
31
31
|
/**
|
|
32
32
|
* https://www.itranslater.com/qa/details/2115518846294557696
|
|
33
33
|
* Deep merge two objects.
|
|
@@ -21,6 +21,8 @@ export declare enum ApiCode {
|
|
|
21
21
|
FLOW_SELECT_ACCOUNT = 2921,
|
|
22
22
|
SELECT_ACCOUNT_2_LOGIN = 2930,
|
|
23
23
|
TENANT_PORTAL = 1644,
|
|
24
|
-
RESET_ACCOUNT_NAME = 1108
|
|
24
|
+
RESET_ACCOUNT_NAME = 1108,
|
|
25
|
+
INVITE_EXPIRE = 4032,
|
|
26
|
+
INVITE_PAGE_EXPIRE = 4033
|
|
25
27
|
}
|
|
26
28
|
export declare const ChangeModuleApiCodeMapping: Record<string, GuardModuleType>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "4.4.3-lulu.
|
|
1
|
+
declare const _default: "4.4.3-lulu.6";
|
|
2
2
|
export default _default;
|