@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.
@@ -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> | User | undefined>;
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 function Guard(props: GuardProps): JSX.Element;
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
- }, "tab" | "way" | "phoneCountryCode">) => void;
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
- }, "tab" | "way" | "phoneCountryCode">) => void;
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
- }, "tab" | "way" | "phoneCountryCode">) => void;
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
- }, "tab" | "way" | "phoneCountryCode">) => void;
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@authing/guard-shim-react18",
3
- "version": "4.4.0-alpha.7",
3
+ "version": "4.4.0-alpha.8",
4
4
  "description": "Guard shim for react 18, only be used to internal",
5
5
  "types": "dist/typings/src/index.d.ts",
6
6
  "module": "dist/guard.min.js",