@authing/guard-shim-react 4.5.23 → 4.5.25-adsy.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/dist/guard.min.js +1236 -1397
- package/dist/typings/src/CompleteInfo/businessRequest.d.ts +2 -1
- package/dist/typings/src/Login/core/withAuthingOtpPush/types.d.ts +0 -1
- package/dist/typings/src/Login/hooks/useLoginMultiple.d.ts +1 -1
- package/dist/typings/src/Login/socialLogin/postMessage.d.ts +7 -3
- package/dist/typings/src/Register/components/Agreements/index.d.ts +1 -1
- package/dist/typings/src/Type/application.d.ts +0 -2
- package/dist/typings/src/_utils/compute.d.ts +2 -3
- package/dist/typings/src/_utils/config/index.d.ts +1 -1
- package/dist/typings/src/_utils/context.d.ts +0 -3
- package/dist/typings/src/_utils/http.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { User } from 'authing-js-sdk';
|
|
1
2
|
import { CompleteInfoRequest, RegisterCompleteInfoInitData } from './interface';
|
|
2
3
|
export declare enum CompleteInfoAuthFlowAction {
|
|
3
4
|
Complete = "complete-completion",
|
|
@@ -5,4 +6,4 @@ export declare enum CompleteInfoAuthFlowAction {
|
|
|
5
6
|
}
|
|
6
7
|
export declare const authFlow: (action: CompleteInfoAuthFlowAction, data?: CompleteInfoRequest) => Promise<import("../_utils/http").AuthingGuardResponse<any>>;
|
|
7
8
|
export declare const registerSkipMethod: (fnName: RegisterCompleteInfoInitData['businessRequestName'] | string, content: any) => Promise<import("../_utils/http").AuthingGuardResponse<any>>;
|
|
8
|
-
export declare const registerRequest: (action: CompleteInfoAuthFlowAction, registerFnName: RegisterCompleteInfoInitData['businessRequestName'], registerContent: any, registerProfile?: any) => Promise<import("../_utils/http").AuthingGuardResponse<any> | undefined>;
|
|
9
|
+
export declare const registerRequest: (action: CompleteInfoAuthFlowAction, registerFnName: RegisterCompleteInfoInitData['businessRequestName'], registerContent: any, registerProfile?: any) => Promise<import("../_utils/http").AuthingGuardResponse<any> | User | undefined>;
|
|
@@ -58,7 +58,7 @@ declare function useLoginMultiple(setLoginWay: React.Dispatch<any>): {
|
|
|
58
58
|
getOriginAccount: () => string;
|
|
59
59
|
getOriginWay: () => string;
|
|
60
60
|
} | undefined;
|
|
61
|
-
referMultipleState: ((type: "
|
|
61
|
+
referMultipleState: ((type: "multiple" | "login") => void) | undefined;
|
|
62
62
|
backfillData: BackFillMultipleState | undefined;
|
|
63
63
|
defaultQrWay: string | undefined;
|
|
64
64
|
};
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const usePostMessage: () => (evt: MessageEvent) => AuthingGuardResponse |
|
|
3
|
-
|
|
1
|
+
import { AuthingResponse } from '../../_utils/http';
|
|
2
|
+
export declare const usePostMessage: () => (evt: MessageEvent) => import("../../_utils/http").AuthingGuardResponse<any> | {
|
|
3
|
+
code: any;
|
|
4
|
+
data: any;
|
|
5
|
+
onGuardHandling: undefined;
|
|
6
|
+
} | undefined;
|
|
7
|
+
export declare const useErrorHandling: () => (res: AuthingResponse) => import("../../_utils/http").AuthingGuardResponse<any>;
|
|
@@ -3,7 +3,7 @@ import './style.less';
|
|
|
3
3
|
import { Agreement } from '../../../Type/application';
|
|
4
4
|
export interface AgreementsProps {
|
|
5
5
|
value?: boolean;
|
|
6
|
-
onChange?: (value: boolean
|
|
6
|
+
onChange?: (value: boolean) => void;
|
|
7
7
|
style?: React.CSSProperties;
|
|
8
8
|
agreements: Agreement[];
|
|
9
9
|
showError?: boolean;
|
|
@@ -16,7 +16,6 @@ export declare const isAlipayBrowser: () => boolean | null;
|
|
|
16
16
|
export declare const isBaiduBrowser: () => boolean | null;
|
|
17
17
|
export declare const isWeComeBrowser: () => boolean;
|
|
18
18
|
export declare const isMobile: () => RegExpMatchArray | null;
|
|
19
|
-
export declare const isWebview: () =>
|
|
20
|
-
export declare const
|
|
21
|
-
export declare const computeIsSpecialBrowser: (specialBrowserSymbol?: string[]) => boolean;
|
|
19
|
+
export declare const isWebview: () => RegExpMatchArray | null;
|
|
20
|
+
export declare const isSpecialBrowser: () => boolean;
|
|
22
21
|
export declare const getPhoneInLoginPageContext: () => any;
|
|
@@ -53,7 +53,7 @@ export declare const useFetchConsoleConfig: (forceUpdate: number, appId?: string
|
|
|
53
53
|
loginMethods?: LoginMethods[] | undefined;
|
|
54
54
|
passwordLoginMethods?: string[] | undefined;
|
|
55
55
|
socialConnections?: import("../../Type").SocialConnectionProvider[] | undefined;
|
|
56
|
-
socialConnectionsBtnShape?: "button" | "
|
|
56
|
+
socialConnectionsBtnShape?: "button" | "icon" | "default" | undefined;
|
|
57
57
|
enterpriseConnections?: string[] | undefined;
|
|
58
58
|
qrCodeScanOptions?: {
|
|
59
59
|
extIdpConnId?: string | undefined;
|
|
@@ -49,8 +49,6 @@ export interface IGuardContext {
|
|
|
49
49
|
defaultLanguageConfig: Lang;
|
|
50
50
|
/** 租户信息获取和操作处理相关 */
|
|
51
51
|
tenantInstance?: MultipleTenant;
|
|
52
|
-
/** 特殊浏览器,身份源无法弹窗,非托管模式不显示身份源图标 */
|
|
53
|
-
isSpecialBrowser: boolean;
|
|
54
52
|
}
|
|
55
53
|
export declare const createGuardXContext: () => {
|
|
56
54
|
Provider: React.FC<{
|
|
@@ -78,7 +76,6 @@ export declare const useGuardButtonContext: () => {
|
|
|
78
76
|
export declare const useGuardButtonState: () => IGuardContextProvider;
|
|
79
77
|
export declare const useGuardPublicConfig: () => ApplicationConfig;
|
|
80
78
|
export declare const useGuardHttpClient: () => GuardHttp;
|
|
81
|
-
export declare const useIsSpecialBrowser: () => boolean;
|
|
82
79
|
export declare const useGuardDefaultMergedConfig: () => GuardLocalConfig;
|
|
83
80
|
export declare const useGuardAppId: () => string;
|
|
84
81
|
export declare const useGuardTenantId: () => string | undefined;
|
package/package.json
CHANGED