@authing/react-ui-components 4.0.7-rc.2 → 4.0.7-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 +9 -1
- package/types/_utils/config/index.d.ts +3 -3
- package/types/_utils/index.d.ts +2 -0
- 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;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Lang } from '..';
|
|
2
2
|
import { PasswordStrength } from '../_utils';
|
|
3
|
+
export * from 'authing-js-sdk';
|
|
3
4
|
export declare const enum LoginMethods {
|
|
4
5
|
LDAP = "ldap",
|
|
5
6
|
AppQr = "app-qrcode",
|
|
@@ -7,7 +8,8 @@ export declare const enum LoginMethods {
|
|
|
7
8
|
PhoneCode = "phone-code",
|
|
8
9
|
WxMinQr = "wechat-miniprogram-qrcode",
|
|
9
10
|
AD = "ad",
|
|
10
|
-
WechatMpQrcode = "wechatmp-qrcode"
|
|
11
|
+
WechatMpQrcode = "wechatmp-qrcode",
|
|
12
|
+
WechatworkCorpQrconnect = "wechatwork-corp-qrconnect"
|
|
11
13
|
}
|
|
12
14
|
export declare const enum OIDCConnectionMode {
|
|
13
15
|
FRONT_CHANNEL = "FRONT_CHANNEL",
|
|
@@ -106,6 +108,12 @@ export declare type QrcodeTabsSettings = Record<LoginMethods, Array<{
|
|
|
106
108
|
id: string;
|
|
107
109
|
title: string;
|
|
108
110
|
isDefault?: boolean;
|
|
111
|
+
QRConfig?: {
|
|
112
|
+
corpId: string;
|
|
113
|
+
agentId: string;
|
|
114
|
+
redirectUrl: string;
|
|
115
|
+
identifier: string;
|
|
116
|
+
};
|
|
109
117
|
}>>;
|
|
110
118
|
export interface OidcClientMetadata {
|
|
111
119
|
grant_types: string[];
|
|
@@ -67,9 +67,9 @@ export declare const useFetchConsoleConfig: (forceUpdate: number, appId?: string
|
|
|
67
67
|
} | undefined;
|
|
68
68
|
interval?: number | undefined;
|
|
69
69
|
onStart?: ((timer: any) => any) | undefined;
|
|
70
|
-
onResult?: ((data: import("authing-js-sdk").QRCodeStatus) => any) | undefined;
|
|
71
|
-
onScanned?: ((userInfo: import("authing-js-sdk").QRCodeUserInfo) => any) | undefined;
|
|
72
|
-
onSuccess?: ((userInfo: import("authing-js-sdk").QRCodeUserInfo, ticket: string) => any) | undefined;
|
|
70
|
+
onResult?: ((data: import("authing-js-sdk/build/main/lib/authentication/types").QRCodeStatus) => any) | undefined;
|
|
71
|
+
onScanned?: ((userInfo: import("authing-js-sdk/build/main/lib/authentication/types").QRCodeUserInfo) => any) | undefined;
|
|
72
|
+
onSuccess?: ((userInfo: import("authing-js-sdk/build/main/lib/authentication/types").QRCodeUserInfo, ticket: string) => any) | undefined;
|
|
73
73
|
onCancel?: (() => any) | undefined;
|
|
74
74
|
onError?: ((message: string) => any) | undefined;
|
|
75
75
|
onExpired?: (() => any) | undefined;
|
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;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "4.0.7-
|
|
1
|
+
declare const _default: "4.0.7-zhihu.0";
|
|
2
2
|
export default _default;
|