@authing/react-ui-components 4.3.3-zhihu.0 → 4.3.3
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.31681d53.chunk.css +3 -0
- package/dist/static/css/2.31681d53.chunk.css.map +1 -0
- package/dist/static/css/main.5aec6972.chunk.css +2 -0
- package/dist/static/css/main.5aec6972.chunk.css.map +1 -0
- package/dist/static/js/2.d2a1168e.chunk.js +3 -0
- package/dist/static/js/2.d2a1168e.chunk.js.LICENSE.txt +86 -0
- package/dist/static/js/2.d2a1168e.chunk.js.map +1 -0
- package/dist/static/js/3.b3dd7130.chunk.js +2 -0
- package/dist/static/js/3.b3dd7130.chunk.js.map +1 -0
- package/dist/static/js/main.b635a15a.chunk.js +2 -0
- package/dist/static/js/main.b635a15a.chunk.js.map +1 -0
- package/dist/static/js/runtime-main.6f6a6483.js +2 -0
- package/dist/static/js/runtime-main.6f6a6483.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/Login/socialLogin/index.d.ts +1 -1
- package/types/Type/application.d.ts +15 -8
- package/types/_utils/index.d.ts +1 -3
- package/types/version/version.d.ts +1 -1
- package/types/AccountMerge/UserRadio.d.ts +0 -5
- package/types/AccountMerge/index.d.ts +0 -3
- package/types/AccountMerge/interface.d.ts +0 -27
- package/types/AccountMerge/utils.d.ts +0 -3
- package/types/ChangeAccoutType/index.d.ts +0 -3
- package/types/CompleteInfo/core/components/TreeSelect.d.ts +0 -11
- package/types/Login/core/withWeComQrcode.d.ts +0 -2
package/package.json
CHANGED
|
@@ -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';
|
|
4
5
|
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,8 +8,7 @@ export declare enum LoginMethods {
|
|
|
8
8
|
PhoneCode = "phone-code",
|
|
9
9
|
WxMinQr = "wechat-miniprogram-qrcode",
|
|
10
10
|
AD = "ad",
|
|
11
|
-
WechatMpQrcode = "wechatmp-qrcode"
|
|
12
|
-
WechatworkCorpQrconnect = "wechatwork-corp-qrconnect"
|
|
11
|
+
WechatMpQrcode = "wechatmp-qrcode"
|
|
13
12
|
}
|
|
14
13
|
export declare enum OIDCConnectionMode {
|
|
15
14
|
FRONT_CHANNEL = "FRONT_CHANNEL",
|
|
@@ -113,12 +112,6 @@ export interface QrCodeItem {
|
|
|
113
112
|
id: string;
|
|
114
113
|
title: string;
|
|
115
114
|
isDefault?: boolean;
|
|
116
|
-
QRConfig?: {
|
|
117
|
-
corpId: string;
|
|
118
|
-
agentId: string;
|
|
119
|
-
redirectUrl: string;
|
|
120
|
-
identifier: string;
|
|
121
|
-
};
|
|
122
115
|
}
|
|
123
116
|
export declare type QrcodeTabsSettings = Record<LoginMethods, Array<QrCodeItem>>;
|
|
124
117
|
export interface OidcClientMetadata {
|
|
@@ -184,6 +177,14 @@ export interface TabFieldsI18nItem {
|
|
|
184
177
|
[propName in Lang]?: string;
|
|
185
178
|
};
|
|
186
179
|
}
|
|
180
|
+
interface LoginTypeI18nProps {
|
|
181
|
+
tab: {
|
|
182
|
+
default: string;
|
|
183
|
+
i18n: {
|
|
184
|
+
[propName: string]: string;
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
}
|
|
187
188
|
export interface ApplicationConfig {
|
|
188
189
|
id: string;
|
|
189
190
|
allowedOrigins: string[];
|
|
@@ -269,6 +270,12 @@ export interface ApplicationConfig {
|
|
|
269
270
|
socialLoginBtns: boolean;
|
|
270
271
|
userPasswordInput: boolean;
|
|
271
272
|
wxMpScanTab: boolean;
|
|
273
|
+
loginMethodsI18nDisplaySettings: {
|
|
274
|
+
password?: LoginTypeI18nProps;
|
|
275
|
+
verifyCode?: LoginTypeI18nProps;
|
|
276
|
+
ad?: LoginTypeI18nProps;
|
|
277
|
+
ldap?: LoginTypeI18nProps;
|
|
278
|
+
};
|
|
272
279
|
};
|
|
273
280
|
protocol: Protocol;
|
|
274
281
|
oidcConfig: OidcClientMetadata;
|
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.
|
|
@@ -92,8 +92,6 @@ export declare const getLoginTypePipe: (publicConfig: ApplicationConfig, registe
|
|
|
92
92
|
} | undefined;
|
|
93
93
|
export declare const getPasswordIdentify: (identity: string) => string;
|
|
94
94
|
export declare const getCurrentLng: () => Lang;
|
|
95
|
-
export declare const isDingTalkOrigin: (origin: string) => boolean;
|
|
96
|
-
export declare const isWeComOrigin: (event: MessageEvent) => boolean;
|
|
97
95
|
export declare const regexFromString: (string: string) => RegExp | null;
|
|
98
96
|
export declare const getI18nLabel: (method: string | RegisterSortMethods, i18nFields: Map<string, TabFieldsI18nItem>, defaultLanguageConfig: Lang) => string;
|
|
99
97
|
export declare const getSortLabels: (methods: string[], i18nConfig: Map<string, TabFieldsI18nItem>, defaultLanguageConfig: Lang) => string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "4.3.3
|
|
1
|
+
declare const _default: "4.3.3";
|
|
2
2
|
export default _default;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export interface BriefUserInfo {
|
|
2
|
-
displayName: string;
|
|
3
|
-
avatar: string;
|
|
4
|
-
phone: string;
|
|
5
|
-
email: string;
|
|
6
|
-
username: string;
|
|
7
|
-
name: string;
|
|
8
|
-
}
|
|
9
|
-
export interface GuardAccountMergeInitData {
|
|
10
|
-
currentUserInfo: BriefUserInfo;
|
|
11
|
-
existingUserInfo: BriefUserInfo;
|
|
12
|
-
mergeToken?: string;
|
|
13
|
-
}
|
|
14
|
-
export interface UserRadioProps {
|
|
15
|
-
currentUserInfo: BriefUserInfo;
|
|
16
|
-
existingUserInfo: BriefUserInfo;
|
|
17
|
-
onChange?: (value: any) => void;
|
|
18
|
-
value?: any;
|
|
19
|
-
}
|
|
20
|
-
export interface UserRadioItemProps extends BriefUserInfo {
|
|
21
|
-
value: boolean;
|
|
22
|
-
selected: boolean;
|
|
23
|
-
onClick: (value: boolean) => void;
|
|
24
|
-
}
|
|
25
|
-
export declare enum AuthFlowAction {
|
|
26
|
-
MERGE = "confirm-account-merge"
|
|
27
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export declare type OptionType = {
|
|
3
|
-
id: string;
|
|
4
|
-
name: string;
|
|
5
|
-
children: OptionType[];
|
|
6
|
-
};
|
|
7
|
-
interface TreeSelectProps {
|
|
8
|
-
options: OptionType[];
|
|
9
|
-
}
|
|
10
|
-
declare const TreeSelect: React.FC<TreeSelectProps>;
|
|
11
|
-
export default TreeSelect;
|