@authing/guard-shim-react 4.5.43-rc.3 → 4.5.43-sfrz.1

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.
@@ -0,0 +1 @@
1
+ export declare const useDeviceId: () => string | null;
@@ -39,7 +39,7 @@ declare function useLoginSelectAccount(setLoginWay: React.Dispatch<any>): {
39
39
  id: string;
40
40
  loginAccount?: string | undefined;
41
41
  usertype?: string | undefined;
42
- }, "way" | "tab" | "phoneCountryCode">) => void;
42
+ }, "tab" | "way" | "phoneCountryCode">) => void;
43
43
  setLoginWayByHttpData: (account: string, data: {
44
44
  username?: string | undefined;
45
45
  phone?: string | undefined;
@@ -61,7 +61,7 @@ declare function useLoginSelectAccount(setLoginWay: React.Dispatch<any>): {
61
61
  getOriginAccount: () => string;
62
62
  getOriginWay: () => string;
63
63
  } | undefined;
64
- referMultipleState: ((type: "login" | "multiple") => void) | undefined;
64
+ referMultipleState: ((type: "multiple" | "login") => void) | undefined;
65
65
  backfillData: BackFillMultipleState | undefined;
66
66
  defaultQrWay: string | undefined;
67
67
  };
@@ -0,0 +1,3 @@
1
+ import { React } from 'shim-react';
2
+ import './styles.less';
3
+ export declare const CheckRules: React.FC<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" | "default" | "icon" | undefined;
56
+ socialConnectionsBtnShape?: "button" | "icon" | "default" | undefined;
57
57
  enterpriseConnections?: string[] | undefined;
58
58
  qrCodeScanOptions?: {
59
59
  extIdpConnId?: string | undefined;
@@ -123,7 +123,7 @@ export declare const useGuardAccountSelectInstance: () => {
123
123
  id: string;
124
124
  loginAccount?: string | undefined;
125
125
  usertype?: string | undefined;
126
- }, "way" | "tab" | "phoneCountryCode">) => void;
126
+ }, "tab" | "way" | "phoneCountryCode">) => void;
127
127
  setLoginWayByHttpData: (account: string, data: {
128
128
  username?: string | undefined;
129
129
  phone?: string | undefined;
@@ -52,8 +52,8 @@ export declare const PASSWORD_STRENGTH_TEXT_MAP: Record<PasswordStrength, {
52
52
  validateMessage: () => string;
53
53
  }>;
54
54
  export declare const getSymbolTypeLength: (pwd: string) => number;
55
- export declare const getPasswordValidate: (strength?: PasswordStrength, customPasswordStrength?: any, fieldRequiredRuleMessage?: string, userId?: string) => Rule[];
56
- export declare const getPasswordValidateRules: (strength?: PasswordStrength, customPasswordStrength?: any, customValidateTrigger?: string, fieldRequiredRuleMessage?: string, userId?: string) => Rule[];
55
+ export declare const getPasswordValidate: (strength?: PasswordStrength, customPasswordStrength?: any, fieldRequiredRuleMessage?: string, userId?: string, setRuleResults?: any) => Rule[];
56
+ export declare const getPasswordValidateRules: (strength?: PasswordStrength, customPasswordStrength?: any, customValidateTrigger?: string, fieldRequiredRuleMessage?: string, userId?: string, setRuleResults?: any) => Rule[];
57
57
  export declare const sleep: (delay: number) => Promise<unknown>;
58
58
  export declare const shoudGoToComplete: (user: User, contextType: ComplateFiledsPlace, config: ApplicationConfig | undefined, autoRegister?: boolean) => boolean;
59
59
  export declare const transformMethod: (method: RegisterMethods | string) => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@authing/guard-shim-react",
3
- "version": "4.5.43-rc.3",
3
+ "version": "4.5.43-sfrz.1",
4
4
  "description": "Guard shim for react 16 / 17, only be used to internal",
5
5
  "types": "dist/typings/src/index.d.ts",
6
6
  "module": "dist/guard.min.js",