@authing/guard-shim-react18 4.4.0-alpha.7 → 4.4.0-alpha.8
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 +2386 -2386
- package/dist/typings/src/CompleteInfo/businessRequest.d.ts +1 -1
- package/dist/typings/src/Guard/Guard.d.ts +2 -1
- package/dist/typings/src/Guard/core/hooks/useMultipleAccounts.d.ts +2 -2
- package/dist/typings/src/Login/hooks/useLoginMultiple.d.ts +1 -1
- package/dist/typings/src/_utils/context.d.ts +1 -1
- package/package.json +1 -1
|
@@ -6,4 +6,4 @@ export declare enum CompleteInfoAuthFlowAction {
|
|
|
6
6
|
}
|
|
7
7
|
export declare const authFlow: (action: CompleteInfoAuthFlowAction, data?: CompleteInfoRequest) => Promise<import("../_utils/http").AuthingGuardResponse<any>>;
|
|
8
8
|
export declare const registerSkipMethod: (fnName: RegisterCompleteInfoInitData['businessRequestName'] | string, content: any) => Promise<import("../_utils/http").AuthingGuardResponse<any>>;
|
|
9
|
-
export declare const registerRequest: (action: CompleteInfoAuthFlowAction, registerFnName: RegisterCompleteInfoInitData['businessRequestName'], registerContent: any, registerProfile?: any) => Promise<import("../_utils/http").AuthingGuardResponse<any> |
|
|
9
|
+
export declare const registerRequest: (action: CompleteInfoAuthFlowAction, registerFnName: RegisterCompleteInfoInitData['businessRequestName'], registerContent: any, registerProfile?: any) => Promise<User | import("../_utils/http").AuthingGuardResponse<any> | undefined>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { React } from 'shim-react';
|
|
1
2
|
import { GuardEvents } from './event';
|
|
2
3
|
import { GuardAppendConfig, IG2FCProps } from '../Type';
|
|
3
4
|
import { GuardLocalConfig } from './config';
|
|
@@ -6,4 +7,4 @@ export interface GuardProps extends GuardEvents, IG2FCProps {
|
|
|
6
7
|
config?: Partial<GuardLocalConfig>;
|
|
7
8
|
appendConfig?: GuardAppendConfig;
|
|
8
9
|
}
|
|
9
|
-
export declare
|
|
10
|
+
export declare const Guard: React.MemoExoticComponent<(props: GuardProps) => JSX.Element>;
|
|
@@ -249,7 +249,7 @@ declare class MultipleAccount {
|
|
|
249
249
|
setUserInfo: (user: Omit<User & {
|
|
250
250
|
id: string;
|
|
251
251
|
loginAccount?: string | undefined;
|
|
252
|
-
}, "
|
|
252
|
+
}, "phoneCountryCode" | "way" | "tab">) => void;
|
|
253
253
|
setLoginWayByHttpData: (account: string, data: {
|
|
254
254
|
username?: string | undefined;
|
|
255
255
|
phone?: string | undefined;
|
|
@@ -292,7 +292,7 @@ declare const useMultipleAccounts: ({ appId, finallyConfig, }: {
|
|
|
292
292
|
setUserInfo: (user: Omit<User & {
|
|
293
293
|
id: string;
|
|
294
294
|
loginAccount?: string | undefined;
|
|
295
|
-
}, "
|
|
295
|
+
}, "phoneCountryCode" | "way" | "tab">) => void;
|
|
296
296
|
setLoginWayByHttpData: (account: string, data: {
|
|
297
297
|
username?: string | undefined;
|
|
298
298
|
phone?: string | undefined;
|
|
@@ -35,7 +35,7 @@ declare function useLoginMultiple(setLoginWay: React.Dispatch<any>): {
|
|
|
35
35
|
setUserInfo: (user: Omit<import("../../Guard/core/hooks/useMultipleAccounts").User & {
|
|
36
36
|
id: string;
|
|
37
37
|
loginAccount?: string | undefined;
|
|
38
|
-
}, "
|
|
38
|
+
}, "phoneCountryCode" | "way" | "tab">) => void;
|
|
39
39
|
setLoginWayByHttpData: (account: string, data: {
|
|
40
40
|
username?: string | undefined;
|
|
41
41
|
phone?: string | undefined;
|
|
@@ -121,7 +121,7 @@ export declare const useGuardMultipleInstance: () => {
|
|
|
121
121
|
setUserInfo: (user: Omit<import("../Guard/core/hooks/useMultipleAccounts").User & {
|
|
122
122
|
id: string;
|
|
123
123
|
loginAccount?: string | undefined;
|
|
124
|
-
}, "
|
|
124
|
+
}, "phoneCountryCode" | "way" | "tab">) => void;
|
|
125
125
|
setLoginWayByHttpData: (account: string, data: {
|
|
126
126
|
username?: string | undefined;
|
|
127
127
|
phone?: string | undefined;
|
package/package.json
CHANGED