@authing/react-ui-components 3.1.0-hep.4 → 3.1.0-hep.5
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/lib/index.d.ts +26 -4
- package/lib/index.min.css +2 -2
- package/lib/index.min.js +1 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -1165,7 +1165,7 @@ declare module '@authing/react-ui-components/components/BindTotp/interface' {
|
|
|
1165
1165
|
}
|
|
1166
1166
|
declare module '@authing/react-ui-components/components/ChangeLanguage/index' {
|
|
1167
1167
|
/// <reference types="react" />
|
|
1168
|
-
export const ChangeLanguage: (props: any) => JSX.Element;
|
|
1168
|
+
export const ChangeLanguage: (props: any) => JSX.Element | null;
|
|
1169
1169
|
|
|
1170
1170
|
}
|
|
1171
1171
|
declare module '@authing/react-ui-components/components/ChangePassword/businessRequest' {
|
|
@@ -1461,7 +1461,7 @@ declare module '@authing/react-ui-components/components/Guard/Guard' {
|
|
|
1461
1461
|
export interface GuardProps extends GuardEvents, IG2FCProps {
|
|
1462
1462
|
config?: Partial<GuardLocalConfig>;
|
|
1463
1463
|
}
|
|
1464
|
-
export const Guard: (props: GuardProps) => JSX.Element
|
|
1464
|
+
export const Guard: import("react").MemoExoticComponent<(props: GuardProps) => JSX.Element>;
|
|
1465
1465
|
|
|
1466
1466
|
}
|
|
1467
1467
|
declare module '@authing/react-ui-components/components/Guard/GuardModule/stateMachine' {
|
|
@@ -2185,6 +2185,7 @@ declare module '@authing/react-ui-components/components/MFA/core/sms' {
|
|
|
2185
2185
|
areaCode: string;
|
|
2186
2186
|
phoneCountryCode?: string;
|
|
2187
2187
|
isInternationSms: boolean;
|
|
2188
|
+
userPhone?: string;
|
|
2188
2189
|
}
|
|
2189
2190
|
export const VerifyMFASms: React.FC<VerifyMFASmsProps>;
|
|
2190
2191
|
export const MFASms: React.FC<{
|
|
@@ -2591,6 +2592,14 @@ declare module '@authing/react-ui-components/components/Type/index' {
|
|
|
2591
2592
|
EmailCode = "email-code",
|
|
2592
2593
|
PhoneCode = "phone-code"
|
|
2593
2594
|
}
|
|
2595
|
+
export enum GuardPageSene {
|
|
2596
|
+
Global = "global"
|
|
2597
|
+
}
|
|
2598
|
+
export interface GuardPageConfig {
|
|
2599
|
+
[GuardPageSene.Global]: {
|
|
2600
|
+
showChangeLanguage: boolean;
|
|
2601
|
+
};
|
|
2602
|
+
}
|
|
2594
2603
|
|
|
2595
2604
|
}
|
|
2596
2605
|
declare module '@authing/react-ui-components/components/ValidatorRules/PasswordFormItem' {
|
|
@@ -2780,7 +2789,7 @@ declare module '@authing/react-ui-components/components/_utils/config' {
|
|
|
2780
2789
|
}
|
|
2781
2790
|
declare module '@authing/react-ui-components/components/_utils/context' {
|
|
2782
2791
|
import React from 'react';
|
|
2783
|
-
import { GuardEvents, GuardLocalConfig, GuardModuleType } from '@authing/react-ui-components/components/index';
|
|
2792
|
+
import { GuardEvents, GuardLocalConfig, GuardModuleType, GuardPageConfig } from '@authing/react-ui-components/components/index';
|
|
2784
2793
|
import { ApplicationConfig } from '@authing/react-ui-components/components/AuthingGuard/api/index';
|
|
2785
2794
|
import { ModuleState } from '@authing/react-ui-components/components/Guard/GuardModule/stateMachine';
|
|
2786
2795
|
import { GuardHttp } from '@authing/react-ui-components/components/_utils/guardHttp';
|
|
@@ -2797,6 +2806,7 @@ declare module '@authing/react-ui-components/components/_utils/context' {
|
|
|
2797
2806
|
backModule?: () => void;
|
|
2798
2807
|
isAuthFlow: boolean;
|
|
2799
2808
|
contextLoaded: boolean;
|
|
2809
|
+
guardPageConfig: Partial<GuardPageConfig>;
|
|
2800
2810
|
}
|
|
2801
2811
|
export const createGuardXContext: () => {
|
|
2802
2812
|
Provider: React.FC<{
|
|
@@ -2818,6 +2828,7 @@ declare module '@authing/react-ui-components/components/_utils/context' {
|
|
|
2818
2828
|
export const useGuardFinallyConfig: () => GuardLocalConfig;
|
|
2819
2829
|
export const useGuardContextLoaded: () => boolean;
|
|
2820
2830
|
export const useGuardIsAuthFlow: () => boolean;
|
|
2831
|
+
export const useGuardPageConfig: () => Partial<GuardPageConfig>;
|
|
2821
2832
|
|
|
2822
2833
|
}
|
|
2823
2834
|
declare module '@authing/react-ui-components/components/_utils/corsVerification' {
|
|
@@ -2878,6 +2889,15 @@ declare module '@authing/react-ui-components/components/_utils/guardHttp' {
|
|
|
2878
2889
|
export const getGuardHttp: () => GuardHttp;
|
|
2879
2890
|
export const useGuardHttp: () => GuardHttp;
|
|
2880
2891
|
|
|
2892
|
+
}
|
|
2893
|
+
declare module '@authing/react-ui-components/components/_utils/guardPageConfig' {
|
|
2894
|
+
import { GuardPageConfig } from '@authing/react-ui-components/components/index';
|
|
2895
|
+
import { GuardHttp } from '@authing/react-ui-components/components/_utils/guardHttp';
|
|
2896
|
+
export const getPageConfig: (appId: string) => GuardPageConfig;
|
|
2897
|
+
export const setPageConfig: (appId: string, config: GuardPageConfig) => GuardPageConfig;
|
|
2898
|
+
export const requestGuardPageConfig: (appId: string, httpClient: GuardHttp) => Promise<GuardPageConfig>;
|
|
2899
|
+
export const useGuardPageConfig: (appId: string, httpClient?: GuardHttp | undefined, serError?: any) => GuardPageConfig | undefined;
|
|
2900
|
+
|
|
2881
2901
|
}
|
|
2882
2902
|
declare module '@authing/react-ui-components/components/_utils/hooks/index' {
|
|
2883
2903
|
import { GuardModuleType } from '@authing/react-ui-components/components/Guard/module';
|
|
@@ -2961,6 +2981,7 @@ declare module '@authing/react-ui-components/components/_utils/index' {
|
|
|
2961
2981
|
import qs from 'qs';
|
|
2962
2982
|
import { RegisterMethods, User } from 'authing-js-sdk';
|
|
2963
2983
|
import { ApplicationConfig, ComplateFiledsPlace } from '@authing/react-ui-components/components/AuthingGuard/api/index';
|
|
2984
|
+
import { GuardProps } from '@authing/react-ui-components/components/Guard/index';
|
|
2964
2985
|
export * from '@authing/react-ui-components/components/_utils/popupCenter';
|
|
2965
2986
|
export * from '@authing/react-ui-components/components/_utils/clipboard';
|
|
2966
2987
|
export const VALIDATE_PATTERN: {
|
|
@@ -3020,6 +3041,7 @@ declare module '@authing/react-ui-components/components/_utils/index' {
|
|
|
3020
3041
|
export const mailDesensitization: (mail: string) => string;
|
|
3021
3042
|
export const phoneDesensitization: (phone: string) => string;
|
|
3022
3043
|
export const getHundreds: (num: number) => number;
|
|
3044
|
+
export const GuardPropsFilter: (pre: GuardProps, current: GuardProps) => boolean;
|
|
3023
3045
|
|
|
3024
3046
|
}
|
|
3025
3047
|
declare module '@authing/react-ui-components/components/_utils/locales/en/index' {
|
|
@@ -3205,7 +3227,7 @@ declare module '@authing/react-ui-components/components/version/index' {
|
|
|
3205
3227
|
|
|
3206
3228
|
}
|
|
3207
3229
|
declare module '@authing/react-ui-components/components/version/version' {
|
|
3208
|
-
const _default: "3.1.0-hep.
|
|
3230
|
+
const _default: "3.1.0-hep.5";
|
|
3209
3231
|
export default _default;
|
|
3210
3232
|
|
|
3211
3233
|
}
|