@authing/react-ui-components 4.0.9 → 4.0.10-zhihu.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/lib/index.min.css +1 -1
- package/lib/index.min.js +1 -1
- package/package.json +1 -1
- package/types/Guard/module.d.ts +2 -1
- package/types/Login/core/withWeComQrcode.d.ts +2 -0
- package/types/Login/socialLogin/index.d.ts +1 -1
- package/types/SelectAccount/index.d.ts +3 -0
- package/types/Type/application.d.ts +8 -1
- package/types/_utils/index.d.ts +2 -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
|
@@ -18,7 +18,8 @@ export declare const enum GuardModuleType {
|
|
|
18
18
|
SUBMIT_SUCCESS = "submitSuccess",
|
|
19
19
|
IDENTITY_BINDING_ASK = "identityBindingAsk",
|
|
20
20
|
IDENTITY_BINDING = "identityBinding",
|
|
21
|
-
SELF_UNLOCK = "selfUnlock"
|
|
21
|
+
SELF_UNLOCK = "selfUnlock",
|
|
22
|
+
FLOW_SELECT_ACCOUNT = "flowSelectAccount"
|
|
22
23
|
}
|
|
23
24
|
export interface GuardModuleAction {
|
|
24
25
|
action: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import './style.less';
|
|
3
3
|
import { GuardLocalConfig } from '../../Guard';
|
|
4
|
-
import { ApplicationConfig, SocialConnectionItem } from '../../Type/application';
|
|
5
4
|
import { StoreInstance } from '../../Guard/core/hooks/useMultipleAccounts';
|
|
5
|
+
import { ApplicationConfig, SocialConnectionItem } from '../../Type';
|
|
6
6
|
export interface SocialLoginProps {
|
|
7
7
|
appId: string;
|
|
8
8
|
config: GuardLocalConfig;
|
|
@@ -8,7 +8,8 @@ export declare const enum LoginMethods {
|
|
|
8
8
|
PhoneCode = "phone-code",
|
|
9
9
|
WxMinQr = "wechat-miniprogram-qrcode",
|
|
10
10
|
AD = "ad",
|
|
11
|
-
WechatMpQrcode = "wechatmp-qrcode"
|
|
11
|
+
WechatMpQrcode = "wechatmp-qrcode",
|
|
12
|
+
WechatworkCorpQrconnect = "wechatwork-corp-qrconnect"
|
|
12
13
|
}
|
|
13
14
|
export declare const enum OIDCConnectionMode {
|
|
14
15
|
FRONT_CHANNEL = "FRONT_CHANNEL",
|
|
@@ -107,6 +108,12 @@ export declare type QrcodeTabsSettings = Record<LoginMethods, Array<{
|
|
|
107
108
|
id: string;
|
|
108
109
|
title: string;
|
|
109
110
|
isDefault?: boolean;
|
|
111
|
+
QRConfig?: {
|
|
112
|
+
corpId: string;
|
|
113
|
+
agentId: string;
|
|
114
|
+
redirectUrl: string;
|
|
115
|
+
identifier: string;
|
|
116
|
+
};
|
|
110
117
|
}>>;
|
|
111
118
|
export interface OidcClientMetadata {
|
|
112
119
|
grant_types: string[];
|
package/types/_utils/index.d.ts
CHANGED
|
@@ -90,3 +90,5 @@ export declare const getLoginTypePipe: (publicConfig: ApplicationConfig, registe
|
|
|
90
90
|
} | undefined;
|
|
91
91
|
export declare const getPasswordIdentify: (identity: string) => string;
|
|
92
92
|
export declare const getCurrentLng: () => Lang;
|
|
93
|
+
export declare const isDingTalkOrigin: (origin: string) => boolean;
|
|
94
|
+
export declare const isWeComOrigin: (event: MessageEvent) => boolean;
|
|
@@ -16,6 +16,7 @@ export declare const enum ApiCode {
|
|
|
16
16
|
FIRST_LOGIN_PASSWORD = 1639,
|
|
17
17
|
FORCED_PASSWORD_RESET = 2058,
|
|
18
18
|
UNSAFE_PASSWORD_TIP = 2061,
|
|
19
|
-
UNSAFE_PASSWORD_RESET = 2071
|
|
19
|
+
UNSAFE_PASSWORD_RESET = 2071,
|
|
20
|
+
FLOW_SELECT_ACCOUNT = 2921
|
|
20
21
|
}
|
|
21
22
|
export declare const ChangeModuleApiCodeMapping: Record<string, GuardModuleType>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "4.0.
|
|
1
|
+
declare const _default: "4.0.10-zhihu.0";
|
|
2
2
|
export default _default;
|