@authing/react-ui-components 3.1.17-rc.7 → 3.1.17-rc.8
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 +63 -3
- package/lib/index.min.css +1 -1
- package/lib/index.min.js +1 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -445,6 +445,7 @@ declare module '@authing/react-ui-components/components/AuthingGuard/api/appConf
|
|
|
445
445
|
defaultISOType: string;
|
|
446
446
|
};
|
|
447
447
|
css: string;
|
|
448
|
+
customLoading?: string;
|
|
448
449
|
name: string;
|
|
449
450
|
logo: string;
|
|
450
451
|
description?: string;
|
|
@@ -1663,7 +1664,8 @@ declare module '@authing/react-ui-components/components/Guard/module' {
|
|
|
1663
1664
|
RECOVERY_CODE = "recoveryCode",
|
|
1664
1665
|
SUBMIT_SUCCESS = "submitSuccess",
|
|
1665
1666
|
IDENTITY_BINDING_ASK = "identityBindingAsk",
|
|
1666
|
-
IDENTITY_BINDING = "identityBinding"
|
|
1667
|
+
IDENTITY_BINDING = "identityBinding",
|
|
1668
|
+
SELF_UNLOCK = "selfUnlock"
|
|
1667
1669
|
}
|
|
1668
1670
|
export interface GuardModuleAction {
|
|
1669
1671
|
action: string;
|
|
@@ -2493,6 +2495,46 @@ declare module '@authing/react-ui-components/components/Register/interface' {
|
|
|
2493
2495
|
declare module '@authing/react-ui-components/components/Register/utils' {
|
|
2494
2496
|
export const useIsChangeComplete: (currentMode: 'phone' | 'email') => boolean;
|
|
2495
2497
|
|
|
2498
|
+
}
|
|
2499
|
+
declare module '@authing/react-ui-components/components/SelfUnlock/core/selfUnlock' {
|
|
2500
|
+
/// <reference types="react" />
|
|
2501
|
+
export enum InputMethodMap {
|
|
2502
|
+
email = "email-code",
|
|
2503
|
+
phone = "phone-code"
|
|
2504
|
+
}
|
|
2505
|
+
interface ResetPasswordProps {
|
|
2506
|
+
onReset: any;
|
|
2507
|
+
publicConfig: any;
|
|
2508
|
+
onSend: (type: 'email' | 'phone') => void;
|
|
2509
|
+
onSendError: (type: 'email' | 'phone', error: any) => void;
|
|
2510
|
+
initData: any;
|
|
2511
|
+
}
|
|
2512
|
+
export const SelfUnlock: (props: ResetPasswordProps) => JSX.Element;
|
|
2513
|
+
export {};
|
|
2514
|
+
|
|
2515
|
+
}
|
|
2516
|
+
declare module '@authing/react-ui-components/components/SelfUnlock/index' {
|
|
2517
|
+
import React from 'react';
|
|
2518
|
+
export const GuardUnlockView: React.FC;
|
|
2519
|
+
|
|
2520
|
+
}
|
|
2521
|
+
declare module '@authing/react-ui-components/components/SelfUnlock/interface' {
|
|
2522
|
+
import { AuthenticationClient, CommonMessage } from '@authing/react-ui-components/components/index';
|
|
2523
|
+
import { IG2Config, IG2Events, IG2FCProps } from '@authing/react-ui-components/components/Type/index';
|
|
2524
|
+
export interface ForgetPasswordEvents extends IG2Events {
|
|
2525
|
+
onPwdEmailSend?: (authClient: AuthenticationClient) => void;
|
|
2526
|
+
onPwdEmailSendError?: (error: CommonMessage, authClient: AuthenticationClient) => void;
|
|
2527
|
+
onPwdPhoneSend?: (authClient: AuthenticationClient) => void;
|
|
2528
|
+
onPwdPhoneSendError?: (error: CommonMessage, authClient: AuthenticationClient) => void;
|
|
2529
|
+
onPwdReset?: (authClient: AuthenticationClient) => void;
|
|
2530
|
+
onPwdResetError?: (error: CommonMessage, authClient: AuthenticationClient) => void;
|
|
2531
|
+
}
|
|
2532
|
+
export interface ForgetPasswordConfig extends IG2Config {
|
|
2533
|
+
}
|
|
2534
|
+
export interface ForgetPasswordProps extends IG2FCProps, ForgetPasswordEvents {
|
|
2535
|
+
config: Partial<IG2Config>;
|
|
2536
|
+
}
|
|
2537
|
+
|
|
2496
2538
|
}
|
|
2497
2539
|
declare module '@authing/react-ui-components/components/SendCode/SendCodeBtn' {
|
|
2498
2540
|
import React, { FC } from 'react';
|
|
@@ -2509,9 +2551,9 @@ declare module '@authing/react-ui-components/components/SendCode/SendCodeBtn' {
|
|
|
2509
2551
|
}
|
|
2510
2552
|
declare module '@authing/react-ui-components/components/SendCode/SendCodeByEmail' {
|
|
2511
2553
|
import { FC } from 'react';
|
|
2512
|
-
import { EmailScene } from 'authing-js-sdk';
|
|
2513
2554
|
import './style.less';
|
|
2514
2555
|
import { InputProps } from 'antd/lib/input';
|
|
2556
|
+
import { EmailScene } from '@authing/react-ui-components/components/Type/index';
|
|
2515
2557
|
export interface SendCodeByEmailProps extends InputProps {
|
|
2516
2558
|
data: string;
|
|
2517
2559
|
form?: any;
|
|
@@ -2581,6 +2623,7 @@ declare module '@authing/react-ui-components/components/SubmitButton/index' {
|
|
|
2581
2623
|
text?: string;
|
|
2582
2624
|
className?: string;
|
|
2583
2625
|
onClick?: any;
|
|
2626
|
+
disabled?: boolean;
|
|
2584
2627
|
}
|
|
2585
2628
|
const _default: React.ForwardRefExoticComponent<SubmitButtonProps & React.RefAttributes<unknown>>;
|
|
2586
2629
|
export default _default;
|
|
@@ -2676,6 +2719,19 @@ declare module '@authing/react-ui-components/components/Type/index' {
|
|
|
2676
2719
|
showChangeLanguage: boolean;
|
|
2677
2720
|
};
|
|
2678
2721
|
}
|
|
2722
|
+
export enum EmailScene {
|
|
2723
|
+
WELCOME_EMAIL = "WELCOME_EMAIL",
|
|
2724
|
+
FIRST_CREATED_USER = "FIRST_CREATED_USER",
|
|
2725
|
+
REGISTER_VERIFY_CODE = "REGISTER_VERIFY_CODE",
|
|
2726
|
+
LOGIN_VERIFY_CODE = "LOGIN_VERIFY_CODE",
|
|
2727
|
+
MFA_VERIFY_CODE = "MFA_VERIFY_CODE",
|
|
2728
|
+
INFORMATION_COMPLETION_VERIFY_CODE = "INFORMATION_COMPLETION_VERIFY_CODE",
|
|
2729
|
+
FIRST_EMAIL_LOGIN_VERIFY = "FIRST_EMAIL_LOGIN_VERIFY",
|
|
2730
|
+
CONSOLE_CONDUCTED_VERIFY = "CONSOLE_CONDUCTED_VERIFY",
|
|
2731
|
+
RESET_PASSWORD_VERIFY_CODE = "RESET_PASSWORD_VERIFY_CODE",
|
|
2732
|
+
EMAIL_BIND_VERIFY_CODE = "EMAIL_BIND_VERIFY_CODE",
|
|
2733
|
+
EMAIL_UNBIND_VERIFY_CODE = "EMAIL_UNBIND_VERIFY_CODE"
|
|
2734
|
+
}
|
|
2679
2735
|
|
|
2680
2736
|
}
|
|
2681
2737
|
declare module '@authing/react-ui-components/components/ValidatorRules/PasswordFormItem' {
|
|
@@ -2704,6 +2760,7 @@ declare module '@authing/react-ui-components/components/ValidatorRules/index' {
|
|
|
2704
2760
|
form?: FormInstance;
|
|
2705
2761
|
checkRepeat?: boolean;
|
|
2706
2762
|
areaCode?: string;
|
|
2763
|
+
isCheckI18nSms?: boolean;
|
|
2707
2764
|
}
|
|
2708
2765
|
export interface ValidatorFormItemMetaProps extends ValidatorFormItemProps {
|
|
2709
2766
|
form?: FormInstance;
|
|
@@ -3128,12 +3185,14 @@ declare module '@authing/react-ui-components/components/_utils/index' {
|
|
|
3128
3185
|
export const isXiaomiBrowser: () => boolean | null;
|
|
3129
3186
|
export const isDingtalkBrowser: () => boolean | null;
|
|
3130
3187
|
export const isQQBrowser: () => boolean | null;
|
|
3188
|
+
export const isQQBuiltInBrowser: () => boolean | null;
|
|
3131
3189
|
export const isEdgeBrowser: () => boolean;
|
|
3132
3190
|
export const isWeiboBrowser: () => boolean | null;
|
|
3133
3191
|
export const isAlipayBrowser: () => boolean | null;
|
|
3134
3192
|
export const isBaiduBrowser: () => boolean | null;
|
|
3135
3193
|
export const isWeComeBrowser: () => boolean;
|
|
3136
3194
|
export const isMobile: () => RegExpMatchArray | null;
|
|
3195
|
+
export const isWeWorkBuiltInBrowser: () => boolean | null;
|
|
3137
3196
|
export const isSpecialBrowser: () => boolean;
|
|
3138
3197
|
export const assembledAppHost: (identifier: string, host: string) => string;
|
|
3139
3198
|
export const assembledRequestHost: (requestHostname: string, configHost: string) => string;
|
|
@@ -3252,6 +3311,7 @@ declare module '@authing/react-ui-components/components/_utils/responseManagemen
|
|
|
3252
3311
|
MFA = 1635,
|
|
3253
3312
|
ABORT_FLOW = 1699,
|
|
3254
3313
|
COMPLETE_INFO = 1642,
|
|
3314
|
+
UNLOCK = 1643,
|
|
3255
3315
|
FLOW_END = 1600,
|
|
3256
3316
|
FIRST_LOGIN_PASSWORD = 1639,
|
|
3257
3317
|
FORCED_PASSWORD_RESET = 2058
|
|
@@ -3351,7 +3411,7 @@ declare module '@authing/react-ui-components/components/version/index' {
|
|
|
3351
3411
|
|
|
3352
3412
|
}
|
|
3353
3413
|
declare module '@authing/react-ui-components/components/version/version' {
|
|
3354
|
-
const _default: "3.1.17-rc.
|
|
3414
|
+
const _default: "3.1.17-rc.8";
|
|
3355
3415
|
export default _default;
|
|
3356
3416
|
|
|
3357
3417
|
}
|