@authing/react-ui-components 3.1.6 → 3.1.7-rc.1

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
@@ -1173,14 +1173,15 @@ declare module '@authing/react-ui-components/components/ChangePassword/index' {
1173
1173
 
1174
1174
  }
1175
1175
  declare module '@authing/react-ui-components/components/CompleteInfo/businessRequest' {
1176
- import { CompleteInfoRequest } from '@authing/react-ui-components/components/CompleteInfo/interface';
1176
+ import { User } from 'authing-js-sdk';
1177
+ import { CompleteInfoRequest, RegisterCompleteInfoInitData } from '@authing/react-ui-components/components/CompleteInfo/interface';
1177
1178
  export enum CompleteInfoAuthFlowAction {
1178
1179
  Complete = "complete-completion",
1179
1180
  Skip = "skip-completion"
1180
1181
  }
1181
1182
  export const authFlow: (action: CompleteInfoAuthFlowAction, data?: CompleteInfoRequest | undefined) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
1182
- export const registerSkipMethod: (fnName: 'registerByEmail' | 'registerByPhoneCode', content: any) => Promise<import("authing-js-sdk").User> | undefined;
1183
- export const registerRequest: (action: CompleteInfoAuthFlowAction, registerFnName: 'registerByEmail' | 'registerByPhoneCode', registerContent: any, registerProfile?: any) => Promise<import("authing-js-sdk").User | undefined>;
1183
+ export const registerSkipMethod: (fnName: RegisterCompleteInfoInitData['businessRequestName'], content: any) => Promise<User> | undefined;
1184
+ export const registerRequest: (action: CompleteInfoAuthFlowAction, registerFnName: RegisterCompleteInfoInitData['businessRequestName'], registerContent: any, registerProfile?: any) => Promise<User | undefined>;
1184
1185
 
1185
1186
  }
1186
1187
  declare module '@authing/react-ui-components/components/CompleteInfo/core/completeInfo' {
@@ -1292,7 +1293,7 @@ declare module '@authing/react-ui-components/components/CompleteInfo/interface'
1292
1293
  }
1293
1294
  export interface RegisterCompleteInfoInitData {
1294
1295
  content: any;
1295
- businessRequestName: 'registerByEmail' | 'registerByPhoneCode';
1296
+ businessRequestName: 'registerByEmail' | 'registerByPhoneCode' | 'registerByEmailCode';
1296
1297
  }
1297
1298
  export interface CompleteInfoRequest {
1298
1299
  fieldValues: {
@@ -1303,7 +1304,8 @@ declare module '@authing/react-ui-components/components/CompleteInfo/interface'
1303
1304
  }
1304
1305
  export enum OmitCompleteInfo {
1305
1306
  'registerByEmail' = "email",
1306
- 'registerByPhoneCode' = "phone"
1307
+ 'registerByPhoneCode' = "phone",
1308
+ 'registerByEmailCode' = "email"
1307
1309
  }
1308
1310
 
1309
1311
  }
@@ -2337,6 +2339,20 @@ declare module '@authing/react-ui-components/components/Register/core/WithEmail'
2337
2339
  }
2338
2340
  export const RegisterWithEmail: React.FC<RegisterWithEmailProps>;
2339
2341
 
2342
+ }
2343
+ declare module '@authing/react-ui-components/components/Register/core/WithEmailCode' {
2344
+ import React from 'react';
2345
+ import { Agreement, ApplicationConfig } from '@authing/react-ui-components/components/AuthingGuard/api/index';
2346
+ export interface RegisterWithEmailCodeProps {
2347
+ onRegisterSuccess: Function;
2348
+ onRegisterFailed: Function;
2349
+ onBeforeRegister?: Function;
2350
+ agreements: Agreement[];
2351
+ publicConfig?: ApplicationConfig;
2352
+ registeContext?: any;
2353
+ }
2354
+ export const RegisterWithEmailCode: React.FC<RegisterWithEmailCodeProps>;
2355
+
2340
2356
  }
2341
2357
  declare module '@authing/react-ui-components/components/Register/core/WithPhone' {
2342
2358
  import React from 'react';
@@ -2408,7 +2424,7 @@ declare module '@authing/react-ui-components/components/SendCode/SendCodeByEmail
2408
2424
  import './style.less';
2409
2425
  import { InputProps } from 'antd/lib/input';
2410
2426
  export interface SendCodeByEmailProps extends InputProps {
2411
- data: string;
2427
+ data?: string;
2412
2428
  form?: any;
2413
2429
  onSendCodeBefore?: any;
2414
2430
  fieldName?: string;
@@ -3188,7 +3204,7 @@ declare module '@authing/react-ui-components/components/version/index' {
3188
3204
 
3189
3205
  }
3190
3206
  declare module '@authing/react-ui-components/components/version/version' {
3191
- const _default: "3.1.6";
3207
+ const _default: "3.1.7-rc.1";
3192
3208
  export default _default;
3193
3209
 
3194
3210
  }