@authing/guard-shim-react 4.5.13-alpha.2 → 4.5.13
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/guard.min.js +1163 -1147
- package/dist/typings/src/Guard/core/hooks/useMultipleAccounts.d.ts +1 -1
- package/dist/typings/src/Login/core/withZjQrcode.d.ts +11 -0
- package/dist/typings/src/Qrcode/UiQrCode.d.ts +2 -1
- package/dist/typings/src/Qrcode/WorkQrCode.d.ts +5 -2
- package/dist/typings/src/Qrcode/hooks/usePostQrCode.d.ts +1 -0
- package/dist/typings/src/Qrcode/hooks/usePreQrCode.d.ts +8 -0
- package/dist/typings/src/Qrcode/index.d.ts +7 -3
- package/dist/typings/src/Type/application.d.ts +3 -1
- package/package.json +1 -1
|
@@ -13,7 +13,7 @@ export declare const QR_CODE_WAY: LoginWay[];
|
|
|
13
13
|
* 登录时所有支持的登录列表(前端定义列表)
|
|
14
14
|
* 这里稍微有点乱 因为Login中的登录方式和这里的不匹配,暂时放在了一起
|
|
15
15
|
*/
|
|
16
|
-
export declare type LoginWay = 'email' | 'phone' | 'password' | 'phone-code' | 'email-code' | 'social' | 'wechat-miniprogram-qrcode' | 'wechatmp-qrcode' | 'app-qrcode' | 'ad' | 'ldap' | 'ldap-password' | 'ldap-email' | 'ldap-phone' | 'authing-otp-push';
|
|
16
|
+
export declare type LoginWay = 'email' | 'phone' | 'password' | 'phone-code' | 'email-code' | 'social' | 'wechat-miniprogram-qrcode' | 'wechatmp-qrcode' | 'app-qrcode' | 'zjzwfw-qrcode' | 'ad' | 'ldap' | 'ldap-password' | 'ldap-email' | 'ldap-phone' | 'authing-otp-push';
|
|
17
17
|
/**
|
|
18
18
|
* when: 多账号页面跳转进入登录页面
|
|
19
19
|
* 携带的回填数据信息
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { StoreInstance } from '../../Guard/core/hooks/useMultipleAccounts';
|
|
2
|
+
import { QrCodeItem } from '../..';
|
|
3
|
+
interface LoginWithAppQrcodeProps {
|
|
4
|
+
onLoginSuccess: any;
|
|
5
|
+
canLoop: boolean;
|
|
6
|
+
multipleInstance?: StoreInstance;
|
|
7
|
+
qrConfig: QrCodeItem['QRConfig'];
|
|
8
|
+
qrCodeScanOptions: any;
|
|
9
|
+
}
|
|
10
|
+
export declare const LoginWithZjQrcode: (props: LoginWithAppQrcodeProps) => JSX.Element | null;
|
|
11
|
+
export {};
|
|
@@ -15,7 +15,7 @@ interface WorkQrCodeProps extends Omit<UiQrProps, 'description' | 'status'> {
|
|
|
15
15
|
/**
|
|
16
16
|
* 二维码场景
|
|
17
17
|
*/
|
|
18
|
-
scene: 'WXAPP_AUTH' | 'APP_AUTH' | 'WECHATMP_AUTH';
|
|
18
|
+
scene: 'WXAPP_AUTH' | 'APP_AUTH' | 'WECHATMP_AUTH' | 'ZJ_AUTH';
|
|
19
19
|
/**
|
|
20
20
|
* 不同状态请求文字
|
|
21
21
|
*/
|
|
@@ -38,4 +38,7 @@ interface WorkQrCodeProps extends Omit<UiQrProps, 'description' | 'status'> {
|
|
|
38
38
|
qrCodeScanOptions?: any;
|
|
39
39
|
}
|
|
40
40
|
declare const WorkQrCode: React.ForwardRefExoticComponent<WorkQrCodeProps & React.RefAttributes<any>>;
|
|
41
|
-
|
|
41
|
+
declare const WorkGeneQrCode: React.ForwardRefExoticComponent<WorkQrCodeProps & {
|
|
42
|
+
authorizationUrl?: string | undefined;
|
|
43
|
+
} & React.RefAttributes<any>>;
|
|
44
|
+
export { WorkQrCode, WorkGeneQrCode };
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
import { UiQrCode } from './UiQrCode';
|
|
2
|
-
import { WorkQrCode } from './WorkQrCode';
|
|
1
|
+
import { UiQrCode, LinkQrcode } from './UiQrCode';
|
|
2
|
+
import { WorkQrCode, WorkGeneQrCode } from './WorkQrCode';
|
|
3
3
|
declare type IQrCode = typeof WorkQrCode & {
|
|
4
4
|
UI: typeof UiQrCode;
|
|
5
5
|
};
|
|
6
|
+
declare type IGeneQrCode = typeof WorkGeneQrCode & {
|
|
7
|
+
UI: typeof LinkQrcode;
|
|
8
|
+
};
|
|
6
9
|
declare const QrCode: IQrCode;
|
|
7
|
-
|
|
10
|
+
declare const GeneQrcode: IGeneQrCode;
|
|
11
|
+
export { QrCode, GeneQrcode };
|
|
@@ -14,7 +14,8 @@ export declare enum LoginMethods {
|
|
|
14
14
|
AuthingOtpPush = "authing-otp-push",
|
|
15
15
|
WechatworkCorpQrconnect = "wechatwork-corp-qrconnect",
|
|
16
16
|
DingTalkQrcode = "dingtalk-qrcode",
|
|
17
|
-
Passkey = "passkey"
|
|
17
|
+
Passkey = "passkey",
|
|
18
|
+
ZJZWFWQrcode = "zjzwfw-qrcode"
|
|
18
19
|
}
|
|
19
20
|
export declare enum OIDCConnectionMode {
|
|
20
21
|
FRONT_CHANNEL = "FRONT_CHANNEL",
|
|
@@ -126,6 +127,7 @@ export interface QrCodeItem {
|
|
|
126
127
|
redirectUrl: string;
|
|
127
128
|
identifier: string;
|
|
128
129
|
clientId?: string;
|
|
130
|
+
authorizationUrl?: string;
|
|
129
131
|
};
|
|
130
132
|
}
|
|
131
133
|
export declare type QrcodeTabsSettings = Record<LoginMethods, Array<QrCodeItem>>;
|
package/package.json
CHANGED