@authing/react-ui-components 4.0.4-rc.3 → 4.0.4-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/Login/socialLogin/index.d.ts +1 -1
- package/types/Type/application.d.ts +8 -1
- package/types/_utils/index.d.ts +2 -0
- package/types/_utils/locales/index.d.ts +2 -1
- package/types/version/version.d.ts +1 -1
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';
|
|
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;
|
|
@@ -7,7 +7,8 @@ export declare enum LoginMethods {
|
|
|
7
7
|
PhoneCode = "phone-code",
|
|
8
8
|
WxMinQr = "wechat-miniprogram-qrcode",
|
|
9
9
|
AD = "ad",
|
|
10
|
-
WechatMpQrcode = "wechatmp-qrcode"
|
|
10
|
+
WechatMpQrcode = "wechatmp-qrcode",
|
|
11
|
+
WechatworkCorpQrconnect = "wechatwork-corp-qrconnect"
|
|
11
12
|
}
|
|
12
13
|
export declare enum OIDCConnectionMode {
|
|
13
14
|
FRONT_CHANNEL = "FRONT_CHANNEL",
|
|
@@ -105,6 +106,12 @@ export declare type QrcodeTabsSettings = Record<LoginMethods, Array<{
|
|
|
105
106
|
id: string;
|
|
106
107
|
title: string;
|
|
107
108
|
isDefault?: boolean;
|
|
109
|
+
QRConfig?: {
|
|
110
|
+
corpId: string;
|
|
111
|
+
agentId: string;
|
|
112
|
+
redirectUrl: string;
|
|
113
|
+
identifier: string;
|
|
114
|
+
};
|
|
108
115
|
}>>;
|
|
109
116
|
export interface OidcClientMetadata {
|
|
110
117
|
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;
|
|
@@ -3,5 +3,6 @@ import { Lang } from '../../Type';
|
|
|
3
3
|
export interface InitGuardI18nOptions {
|
|
4
4
|
defaultLanguage?: Lang | 'browser';
|
|
5
5
|
}
|
|
6
|
-
export declare const
|
|
6
|
+
export declare const fallbackLng: (code?: string) => string[];
|
|
7
|
+
export declare const initGuardI18n: (options: InitGuardI18nOptions, callback: React.Dispatch<React.SetStateAction<boolean>>) => Promise<void>;
|
|
7
8
|
export { i18n };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "4.0.4-
|
|
1
|
+
declare const _default: "4.0.4-zhihu.0";
|
|
2
2
|
export default _default;
|