@authing/react-ui-components 3.0.15-rc.1 → 3.0.15-rc.4

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 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>;
@@ -2561,8 +2566,8 @@ declare module '@authing/react-ui-components/components/_utils/responseManagemen
2561
2566
  RENDER_MESSAGE = "renderMessage"
2562
2567
  }
2563
2568
  export enum ApiCode {
2564
- IDENTITY_BINDING_ASK = "1640",
2565
- IDENTITY_BINDING = "1641"
2569
+ IDENTITY_BINDING_ASK = "1641",
2570
+ IDENTITY_BINDING = "1640"
2566
2571
  }
2567
2572
  export const ChangeModuleApiCodeMapping: Record<string, GuardModuleType>;
2568
2573
 
@@ -2658,7 +2663,7 @@ declare module '@authing/react-ui-components/components/version/index' {
2658
2663
 
2659
2664
  }
2660
2665
  declare module '@authing/react-ui-components/components/version/version' {
2661
- const _default: "3.0.15-rc.1";
2666
+ const _default: "3.0.15-rc.4";
2662
2667
  export default _default;
2663
2668
 
2664
2669
  }