@authing/react-ui-components 3.0.0-rc.17 → 3.0.0-rc.20
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 -1
- package/lib/index.min.css +1 -1
- package/lib/index.min.js +1 -1
- package/package.json +6 -4
package/lib/index.d.ts
CHANGED
|
@@ -410,6 +410,8 @@ declare module '@authing/react-ui-components/components/AuthingGuard/api/appConf
|
|
|
410
410
|
export type ComplateFiledsPlace = 'register' | 'login';
|
|
411
411
|
export interface ApplicationConfig {
|
|
412
412
|
id: string;
|
|
413
|
+
allowedOrigins: string[];
|
|
414
|
+
corsWhitelist: string[];
|
|
413
415
|
cdnBase: string;
|
|
414
416
|
userPoolId: string;
|
|
415
417
|
rootUserPoolId: string;
|
|
@@ -1319,11 +1321,13 @@ declare module '@authing/react-ui-components/components/Guard/config' {
|
|
|
1319
1321
|
|
|
1320
1322
|
}
|
|
1321
1323
|
declare module '@authing/react-ui-components/components/Guard/event' {
|
|
1324
|
+
import { GuardModuleType } from '@authing/react-ui-components/components/Guard/index';
|
|
1322
1325
|
import { CompleteInfoEvents } from '@authing/react-ui-components/components/CompleteInfo/interface';
|
|
1323
1326
|
import { ForgetPasswordEvents } from '@authing/react-ui-components/components/ForgetPassword/interface';
|
|
1324
1327
|
import { LoginEvents } from '@authing/react-ui-components/components/Login/interface';
|
|
1325
1328
|
import { RegisterEvents } from '@authing/react-ui-components/components/Register/interface';
|
|
1326
1329
|
export interface GuardEvents extends LoginEvents, RegisterEvents, CompleteInfoEvents, ForgetPasswordEvents {
|
|
1330
|
+
onBeforeChangeModule?: (key: GuardModuleType, initData?: any) => boolean | Promise<boolean>;
|
|
1327
1331
|
}
|
|
1328
1332
|
export const guardEventsFilter: (props: any) => GuardEvents;
|
|
1329
1333
|
export const guardEventsHijacking: (events: GuardEvents) => GuardEvents;
|
|
@@ -1919,6 +1923,7 @@ declare module '@authing/react-ui-components/components/Register/core/WithEmail'
|
|
|
1919
1923
|
onBeforeRegister?: Function;
|
|
1920
1924
|
publicConfig?: ApplicationConfig;
|
|
1921
1925
|
agreements: Agreement[];
|
|
1926
|
+
registeContext?: any;
|
|
1922
1927
|
}
|
|
1923
1928
|
export const RegisterWithEmail: React.FC<RegisterWithEmailProps>;
|
|
1924
1929
|
|
|
@@ -1930,6 +1935,7 @@ declare module '@authing/react-ui-components/components/Register/core/WithPhone'
|
|
|
1930
1935
|
onRegister: Function;
|
|
1931
1936
|
agreements: Agreement[];
|
|
1932
1937
|
publicConfig?: ApplicationConfig;
|
|
1938
|
+
registeContext?: any;
|
|
1933
1939
|
}
|
|
1934
1940
|
export const RegisterWithPhone: React.FC<RegisterWithPhoneProps>;
|
|
1935
1941
|
|
|
@@ -1952,6 +1958,7 @@ declare module '@authing/react-ui-components/components/Register/interface' {
|
|
|
1952
1958
|
publicKey?: string;
|
|
1953
1959
|
agreementEnabled?: boolean;
|
|
1954
1960
|
agreements?: Agreement[];
|
|
1961
|
+
registeContext?: any;
|
|
1955
1962
|
}
|
|
1956
1963
|
export interface RegisterEvents extends IG2Events {
|
|
1957
1964
|
onBeforeRegister?: (registerInfo: EmailRegisterParams | PhoneRegisterParams, authClient: AuthenticationClient) => boolean | Promise<boolean>;
|
|
@@ -1983,6 +1990,7 @@ declare module '@authing/react-ui-components/components/SendCode/SendCodeBtn' {
|
|
|
1983
1990
|
}
|
|
1984
1991
|
declare module '@authing/react-ui-components/components/SendCode/index' {
|
|
1985
1992
|
import { FC } from 'react';
|
|
1993
|
+
import { SceneType } from 'authing-js-sdk';
|
|
1986
1994
|
import './style.less';
|
|
1987
1995
|
import { InputProps } from 'antd/lib/input';
|
|
1988
1996
|
export interface SendPhoneCodeProps extends InputProps {
|
|
@@ -1992,6 +2000,7 @@ declare module '@authing/react-ui-components/components/SendCode/index' {
|
|
|
1992
2000
|
onSendCodeBefore?: any;
|
|
1993
2001
|
fieldName?: string;
|
|
1994
2002
|
autoSubmit?: boolean;
|
|
2003
|
+
scene?: SceneType;
|
|
1995
2004
|
}
|
|
1996
2005
|
export const SendCode: FC<SendPhoneCodeProps>;
|
|
1997
2006
|
|
|
@@ -2005,6 +2014,18 @@ declare module '@authing/react-ui-components/components/ShieldSpin/index' {
|
|
|
2005
2014
|
export const Spin: () => JSX.Element;
|
|
2006
2015
|
export {};
|
|
2007
2016
|
|
|
2017
|
+
}
|
|
2018
|
+
declare module '@authing/react-ui-components/components/SingleComponent/SingleComponent' {
|
|
2019
|
+
import React from 'react';
|
|
2020
|
+
import { IG2FCProps } from '@authing/react-ui-components/components/index';
|
|
2021
|
+
export function SingleComponent<T extends IG2FCProps>(props: T, Component: React.FC<any>): JSX.Element;
|
|
2022
|
+
|
|
2023
|
+
}
|
|
2024
|
+
declare module '@authing/react-ui-components/components/SingleComponent/index' {
|
|
2025
|
+
import React from 'react';
|
|
2026
|
+
import { GuardRegisterProps } from '@authing/react-ui-components/components/Register/interface';
|
|
2027
|
+
export const Register: React.FC<GuardRegisterProps>;
|
|
2028
|
+
|
|
2008
2029
|
}
|
|
2009
2030
|
declare module '@authing/react-ui-components/components/SubmitButton/index' {
|
|
2010
2031
|
import React from 'react';
|
|
@@ -2176,6 +2197,10 @@ declare module '@authing/react-ui-components/components/_utils/context' {
|
|
|
2176
2197
|
};
|
|
2177
2198
|
export const usePublicConfig: () => ApplicationConfig | undefined;
|
|
2178
2199
|
|
|
2200
|
+
}
|
|
2201
|
+
declare module '@authing/react-ui-components/components/_utils/corsVerification' {
|
|
2202
|
+
export const corsVerification: (allowedOrigins?: string[], corsWhitelist?: string[]) => void;
|
|
2203
|
+
|
|
2179
2204
|
}
|
|
2180
2205
|
declare module '@authing/react-ui-components/components/_utils/errorFace' {
|
|
2181
2206
|
enum FaceErrorName {
|
|
@@ -2439,7 +2464,7 @@ declare module '@authing/react-ui-components/components/version/index' {
|
|
|
2439
2464
|
|
|
2440
2465
|
}
|
|
2441
2466
|
declare module '@authing/react-ui-components/components/version/version' {
|
|
2442
|
-
const _default: "3.0.0-rc.
|
|
2467
|
+
const _default: "3.0.0-rc.20";
|
|
2443
2468
|
export default _default;
|
|
2444
2469
|
|
|
2445
2470
|
}
|