@authing/react-ui-components 3.0.15-rc.1 → 3.0.15-rc.10
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 +12 -4
- package/lib/index.min.css +1 -1
- package/lib/index.min.js +1 -1
- package/package.json +2 -2
package/lib/index.d.ts
CHANGED
|
@@ -1479,6 +1479,7 @@ declare module '@authing/react-ui-components/components/IdentityBinding/interfac
|
|
|
1479
1479
|
import { IG2Config, IG2Events, IG2FCProps, IG2FCViewProps } from '@authing/react-ui-components/components/index';
|
|
1480
1480
|
import { Agreement } from '@authing/react-ui-components/components/AuthingGuard/api/index';
|
|
1481
1481
|
import { AuthenticationClient, User } from '@authing/react-ui-components/components/index';
|
|
1482
|
+
import { GuardModuleType } from '@authing/react-ui-components/components/Guard/index';
|
|
1482
1483
|
export interface IdentityBindingConfig extends IG2Config {
|
|
1483
1484
|
autoRegister?: boolean;
|
|
1484
1485
|
publicKey?: string;
|
|
@@ -1496,6 +1497,7 @@ declare module '@authing/react-ui-components/components/IdentityBinding/interfac
|
|
|
1496
1497
|
}
|
|
1497
1498
|
export interface GuardIdentityBindingInitData {
|
|
1498
1499
|
methods: Array<'email' | 'username' | 'phone' | 'phone-code' | 'email-code'>;
|
|
1500
|
+
source?: GuardModuleType;
|
|
1499
1501
|
}
|
|
1500
1502
|
export interface GuardIdentityBindingViewProps extends GuardIdentityBindingProps, IG2FCViewProps {
|
|
1501
1503
|
config: IdentityBindingConfig;
|
|
@@ -1522,6 +1524,9 @@ declare module '@authing/react-ui-components/components/IdentityBindingAsk/inter
|
|
|
1522
1524
|
}
|
|
1523
1525
|
export interface IdentityBindingAskEvents extends IG2Events {
|
|
1524
1526
|
onLogin?: (user: User, authClient: AuthenticationClient) => void;
|
|
1527
|
+
onLoginError?: (errorMessages: any) => void;
|
|
1528
|
+
onCreate?: (user: User, authClient: AuthenticationClient) => void;
|
|
1529
|
+
onCreateError?: (errorMessages: any) => void;
|
|
1525
1530
|
}
|
|
1526
1531
|
export interface GuardIdentityBindingAskProps extends IG2FCProps, IdentityBindingAskEvents {
|
|
1527
1532
|
config?: Partial<IdentityBindingAskConfig>;
|
|
@@ -1647,15 +1652,18 @@ declare module '@authing/react-ui-components/components/Login/core/withPassword/
|
|
|
1647
1652
|
/// <reference types="react" />
|
|
1648
1653
|
import { Agreement, PasswordLoginMethods } from '@authing/react-ui-components/components/AuthingGuard/api/index';
|
|
1649
1654
|
import { LoginMethods } from '@authing/react-ui-components/components/index';
|
|
1655
|
+
import { AuthingResponse } from '@authing/react-ui-components/components/_utils/http';
|
|
1650
1656
|
interface LoginWithPasswordProps {
|
|
1651
1657
|
publicKey: string;
|
|
1652
1658
|
autoRegister?: boolean;
|
|
1653
1659
|
host?: string;
|
|
1654
1660
|
onLogin: any;
|
|
1655
|
-
onBeforeLogin
|
|
1661
|
+
onBeforeLogin?: any;
|
|
1662
|
+
onLoginRequest?: (loginInfo: any) => Promise<AuthingResponse>;
|
|
1656
1663
|
passwordLoginMethods: PasswordLoginMethods[];
|
|
1657
1664
|
agreements: Agreement[];
|
|
1658
1665
|
loginWay?: LoginMethods;
|
|
1666
|
+
submitButText?: string;
|
|
1659
1667
|
}
|
|
1660
1668
|
export const LoginWithPassword: (props: LoginWithPasswordProps) => JSX.Element;
|
|
1661
1669
|
export {};
|
|
@@ -2561,8 +2569,8 @@ declare module '@authing/react-ui-components/components/_utils/responseManagemen
|
|
|
2561
2569
|
RENDER_MESSAGE = "renderMessage"
|
|
2562
2570
|
}
|
|
2563
2571
|
export enum ApiCode {
|
|
2564
|
-
IDENTITY_BINDING_ASK = "
|
|
2565
|
-
IDENTITY_BINDING = "
|
|
2572
|
+
IDENTITY_BINDING_ASK = "1641",
|
|
2573
|
+
IDENTITY_BINDING = "1640"
|
|
2566
2574
|
}
|
|
2567
2575
|
export const ChangeModuleApiCodeMapping: Record<string, GuardModuleType>;
|
|
2568
2576
|
|
|
@@ -2658,7 +2666,7 @@ declare module '@authing/react-ui-components/components/version/index' {
|
|
|
2658
2666
|
|
|
2659
2667
|
}
|
|
2660
2668
|
declare module '@authing/react-ui-components/components/version/version' {
|
|
2661
|
-
const _default: "3.0.15-rc.
|
|
2669
|
+
const _default: "3.0.15-rc.10";
|
|
2662
2670
|
export default _default;
|
|
2663
2671
|
|
|
2664
2672
|
}
|