@authing/react-ui-components 3.1.30-beta.0 → 3.1.30-beta.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 +62 -2
- package/lib/index.min.js +1 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -1528,6 +1528,41 @@ declare module '@authing/react-ui-components/components/Error/interface' {
|
|
|
1528
1528
|
export interface GuardErrorViewProps extends GuardErrorProps {
|
|
1529
1529
|
}
|
|
1530
1530
|
|
|
1531
|
+
}
|
|
1532
|
+
declare module '@authing/react-ui-components/components/ForgetPassword/api/constant' {
|
|
1533
|
+
export const resetPasswordUrl: () => string;
|
|
1534
|
+
|
|
1535
|
+
}
|
|
1536
|
+
declare module '@authing/react-ui-components/components/ForgetPassword/api/index' {
|
|
1537
|
+
export * from '@authing/react-ui-components/components/ForgetPassword/api/request';
|
|
1538
|
+
|
|
1539
|
+
}
|
|
1540
|
+
declare module '@authing/react-ui-components/components/ForgetPassword/api/request' {
|
|
1541
|
+
import { AxiosRequestConfig } from 'axios';
|
|
1542
|
+
/**
|
|
1543
|
+
* 忘记密码-重置密码 邮箱
|
|
1544
|
+
* @param data
|
|
1545
|
+
* @param config
|
|
1546
|
+
* @returns
|
|
1547
|
+
*/
|
|
1548
|
+
export const resetPwdEmailByAxios: (data: {
|
|
1549
|
+
email: string;
|
|
1550
|
+
code: string;
|
|
1551
|
+
newPassword: string;
|
|
1552
|
+
}, config?: AxiosRequestConfig<any> | undefined) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
|
|
1553
|
+
/**
|
|
1554
|
+
* 忘记密码-重置密码 手机号
|
|
1555
|
+
* @param data
|
|
1556
|
+
* @param config
|
|
1557
|
+
* @returns
|
|
1558
|
+
*/
|
|
1559
|
+
export const restPwdPhoneByAxios: (data: {
|
|
1560
|
+
phone: string;
|
|
1561
|
+
code: string;
|
|
1562
|
+
newPassword: string;
|
|
1563
|
+
phoneCountryCode?: string;
|
|
1564
|
+
}, config?: AxiosRequestConfig<any> | undefined) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
|
|
1565
|
+
|
|
1531
1566
|
}
|
|
1532
1567
|
declare module '@authing/react-ui-components/components/ForgetPassword/core/resetPassword' {
|
|
1533
1568
|
/// <reference types="react" />
|
|
@@ -3219,7 +3254,7 @@ declare module '@authing/react-ui-components/components/SendCode/SendCodeByEmail
|
|
|
3219
3254
|
}
|
|
3220
3255
|
declare module '@authing/react-ui-components/components/SendCode/SendCodeByPhone' {
|
|
3221
3256
|
import { FC } from 'react';
|
|
3222
|
-
import { SceneType } from 'authing-
|
|
3257
|
+
import { SceneType } from '@authing/react-ui-components/components/Type/interface';
|
|
3223
3258
|
import './style.less';
|
|
3224
3259
|
import { InputProps } from 'antd/lib/input';
|
|
3225
3260
|
export interface SendCodeByPhoneProps extends InputProps {
|
|
@@ -3312,6 +3347,10 @@ declare module '@authing/react-ui-components/components/SubmitSuccess/interface'
|
|
|
3312
3347
|
|
|
3313
3348
|
}
|
|
3314
3349
|
declare module '@authing/react-ui-components/components/Type/index' {
|
|
3350
|
+
export * from '@authing/react-ui-components/components/Type/interface';
|
|
3351
|
+
|
|
3352
|
+
}
|
|
3353
|
+
declare module '@authing/react-ui-components/components/Type/interface' {
|
|
3315
3354
|
import { AuthenticationClient, CommonMessage } from 'authing-js-sdk';
|
|
3316
3355
|
import { Lang } from 'authing-js-sdk/build/main/types';
|
|
3317
3356
|
import { ApplicationConfig } from '@authing/react-ui-components/components/AuthingGuard/api/index';
|
|
@@ -3390,6 +3429,20 @@ declare module '@authing/react-ui-components/components/Type/index' {
|
|
|
3390
3429
|
EMAIL_UNBIND_VERIFY_CODE = "EMAIL_UNBIND_VERIFY_CODE",
|
|
3391
3430
|
SELF_UNLOCKING_VERIFY_CODE = "SELF_UNLOCKING_VERIFY_CODE"
|
|
3392
3431
|
}
|
|
3432
|
+
/**
|
|
3433
|
+
* 验证码场景类型
|
|
3434
|
+
*/
|
|
3435
|
+
export enum SceneType {
|
|
3436
|
+
SCENE_TYPE_LOGIN = "login",
|
|
3437
|
+
SCENE_TYPE_REGISTER = "register",
|
|
3438
|
+
SCENE_TYPE_RESET = "reset",
|
|
3439
|
+
SCENE_TYPE_BIND = "bind",
|
|
3440
|
+
SCENE_TYPE_UNBIND = "unbind",
|
|
3441
|
+
SCENE_TYPE_MFA_BIND = "mfa-bind",
|
|
3442
|
+
SCENE_TYPE_MFA_VERIFY = "mfa-verify",
|
|
3443
|
+
SCENE_TYPE_MFA_UNBIND = "mfa-unbind",
|
|
3444
|
+
SCENE_TYPE_COMPLETE_PHONE = "complete-phone"
|
|
3445
|
+
}
|
|
3393
3446
|
|
|
3394
3447
|
}
|
|
3395
3448
|
declare module '@authing/react-ui-components/components/ValidatorRules/PasswordFormItem' {
|
|
@@ -3818,6 +3871,7 @@ declare module '@authing/react-ui-components/components/_utils/http/api/constant
|
|
|
3818
3871
|
export const countryListsUrl: () => string;
|
|
3819
3872
|
export const validatePhoneCodeUrl: () => string;
|
|
3820
3873
|
export const validateEmailCodeUrl: () => string;
|
|
3874
|
+
export const sendPhoneCodeUrl: () => string;
|
|
3821
3875
|
|
|
3822
3876
|
}
|
|
3823
3877
|
declare module '@authing/react-ui-components/components/_utils/http/api/index' {
|
|
@@ -3827,6 +3881,7 @@ declare module '@authing/react-ui-components/components/_utils/http/api/index' {
|
|
|
3827
3881
|
declare module '@authing/react-ui-components/components/_utils/http/api/request' {
|
|
3828
3882
|
import { AxiosRequestConfig } from 'axios';
|
|
3829
3883
|
import { EmailScene } from 'components/Type';
|
|
3884
|
+
import { SceneType } from '@authing/react-ui-components/components/Type/index';
|
|
3830
3885
|
/**
|
|
3831
3886
|
* AuthFlow 相关请求
|
|
3832
3887
|
* @param data
|
|
@@ -3892,6 +3947,11 @@ declare module '@authing/react-ui-components/components/_utils/http/api/request'
|
|
|
3892
3947
|
email: number | string;
|
|
3893
3948
|
emailCode: number | string;
|
|
3894
3949
|
}, config?: AxiosRequestConfig<any> | undefined) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
|
|
3950
|
+
export const sendSmsCodeByAxios: (data: {
|
|
3951
|
+
phone: string;
|
|
3952
|
+
phoneCountryCode?: string;
|
|
3953
|
+
scene?: SceneType;
|
|
3954
|
+
}, config?: AxiosRequestConfig<any> | undefined) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
|
|
3895
3955
|
|
|
3896
3956
|
}
|
|
3897
3957
|
declare module '@authing/react-ui-components/components/_utils/http/base/index' {
|
|
@@ -4647,7 +4707,7 @@ declare module '@authing/react-ui-components/components/version/index' {
|
|
|
4647
4707
|
|
|
4648
4708
|
}
|
|
4649
4709
|
declare module '@authing/react-ui-components/components/version/version' {
|
|
4650
|
-
const _default: "3.1.30-beta.
|
|
4710
|
+
const _default: "3.1.30-beta.1";
|
|
4651
4711
|
export default _default;
|
|
4652
4712
|
|
|
4653
4713
|
}
|