@authing/react-ui-components 3.1.0-rc.11 → 3.1.0-rc.14
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 +22 -3
- package/lib/index.min.js +1 -1
- package/package.json +2 -2
package/lib/index.d.ts
CHANGED
|
@@ -1116,7 +1116,7 @@ declare module '@authing/react-ui-components/components/BindTotp/interface' {
|
|
|
1116
1116
|
}
|
|
1117
1117
|
declare module '@authing/react-ui-components/components/ChangeLanguage/index' {
|
|
1118
1118
|
/// <reference types="react" />
|
|
1119
|
-
export const ChangeLanguage: (props: any) => JSX.Element;
|
|
1119
|
+
export const ChangeLanguage: (props: any) => JSX.Element | null;
|
|
1120
1120
|
|
|
1121
1121
|
}
|
|
1122
1122
|
declare module '@authing/react-ui-components/components/ChangePassword/businessRequest' {
|
|
@@ -2536,6 +2536,14 @@ declare module '@authing/react-ui-components/components/Type/index' {
|
|
|
2536
2536
|
EmailCode = "email-code",
|
|
2537
2537
|
PhoneCode = "phone-code"
|
|
2538
2538
|
}
|
|
2539
|
+
export enum GuardPageSene {
|
|
2540
|
+
Global = "global"
|
|
2541
|
+
}
|
|
2542
|
+
export interface GuardPageConfig {
|
|
2543
|
+
[GuardPageSene.Global]: {
|
|
2544
|
+
showChangeLanguage: boolean;
|
|
2545
|
+
};
|
|
2546
|
+
}
|
|
2539
2547
|
|
|
2540
2548
|
}
|
|
2541
2549
|
declare module '@authing/react-ui-components/components/ValidatorRules/PasswordFormItem' {
|
|
@@ -2725,7 +2733,7 @@ declare module '@authing/react-ui-components/components/_utils/config' {
|
|
|
2725
2733
|
}
|
|
2726
2734
|
declare module '@authing/react-ui-components/components/_utils/context' {
|
|
2727
2735
|
import React from 'react';
|
|
2728
|
-
import { GuardEvents, GuardLocalConfig, GuardModuleType } from '@authing/react-ui-components/components/index';
|
|
2736
|
+
import { GuardEvents, GuardLocalConfig, GuardModuleType, GuardPageConfig } from '@authing/react-ui-components/components/index';
|
|
2729
2737
|
import { ApplicationConfig } from '@authing/react-ui-components/components/AuthingGuard/api/index';
|
|
2730
2738
|
import { ModuleState } from '@authing/react-ui-components/components/Guard/GuardModule/stateMachine';
|
|
2731
2739
|
import { GuardHttp } from '@authing/react-ui-components/components/_utils/guardHttp';
|
|
@@ -2742,6 +2750,7 @@ declare module '@authing/react-ui-components/components/_utils/context' {
|
|
|
2742
2750
|
backModule?: () => void;
|
|
2743
2751
|
isAuthFlow: boolean;
|
|
2744
2752
|
contextLoaded: boolean;
|
|
2753
|
+
guardPageConfig: Partial<GuardPageConfig>;
|
|
2745
2754
|
}
|
|
2746
2755
|
export const createGuardXContext: () => {
|
|
2747
2756
|
Provider: React.FC<{
|
|
@@ -2763,6 +2772,7 @@ declare module '@authing/react-ui-components/components/_utils/context' {
|
|
|
2763
2772
|
export const useGuardFinallyConfig: () => GuardLocalConfig;
|
|
2764
2773
|
export const useGuardContextLoaded: () => boolean;
|
|
2765
2774
|
export const useGuardIsAuthFlow: () => boolean;
|
|
2775
|
+
export const useGuardPageConfig: () => Partial<GuardPageConfig>;
|
|
2766
2776
|
|
|
2767
2777
|
}
|
|
2768
2778
|
declare module '@authing/react-ui-components/components/_utils/corsVerification' {
|
|
@@ -2823,6 +2833,15 @@ declare module '@authing/react-ui-components/components/_utils/guardHttp' {
|
|
|
2823
2833
|
export const getGuardHttp: () => GuardHttp;
|
|
2824
2834
|
export const useGuardHttp: () => GuardHttp;
|
|
2825
2835
|
|
|
2836
|
+
}
|
|
2837
|
+
declare module '@authing/react-ui-components/components/_utils/guardPageConfig' {
|
|
2838
|
+
import { GuardPageConfig } from '@authing/react-ui-components/components/index';
|
|
2839
|
+
import { GuardHttp } from '@authing/react-ui-components/components/_utils/guardHttp';
|
|
2840
|
+
export const getPageConfig: (appId: string) => GuardPageConfig;
|
|
2841
|
+
export const setPageConfig: (appId: string, config: GuardPageConfig) => GuardPageConfig;
|
|
2842
|
+
export const requestGuardPageConfig: (appId: string, httpClient: GuardHttp) => Promise<GuardPageConfig>;
|
|
2843
|
+
export const useGuardPageConfig: (appId: string, httpClient?: GuardHttp | undefined, serError?: any) => GuardPageConfig | undefined;
|
|
2844
|
+
|
|
2826
2845
|
}
|
|
2827
2846
|
declare module '@authing/react-ui-components/components/_utils/hooks/index' {
|
|
2828
2847
|
import { GuardModuleType } from '@authing/react-ui-components/components/Guard/module';
|
|
@@ -3148,7 +3167,7 @@ declare module '@authing/react-ui-components/components/version/index' {
|
|
|
3148
3167
|
|
|
3149
3168
|
}
|
|
3150
3169
|
declare module '@authing/react-ui-components/components/version/version' {
|
|
3151
|
-
const _default: "3.1.0-rc.
|
|
3170
|
+
const _default: "3.1.0-rc.14";
|
|
3152
3171
|
export default _default;
|
|
3153
3172
|
|
|
3154
3173
|
}
|