@authing/react-ui-components 3.0.0-rc.11 → 3.0.0-rc.15
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 +39 -6
- package/lib/index.min.css +2 -2
- package/lib/index.min.js +1 -1
- package/lib/index.min.js.LICENSE.txt +2 -0
- package/package.json +2 -2
- package/dist/index.min.css +0 -2
- package/dist/index.min.js +0 -2
- package/dist/index.min.js.LICENSE.txt +0 -71
- package/dist/static/media/loading.4a67a5f3.svg +0 -29
package/lib/index.d.ts
CHANGED
|
@@ -404,6 +404,7 @@ declare module '@authing/react-ui-components/components/AuthingGuard/api/appConf
|
|
|
404
404
|
title: string;
|
|
405
405
|
required: boolean;
|
|
406
406
|
lang: Lang;
|
|
407
|
+
availableAt?: number;
|
|
407
408
|
}
|
|
408
409
|
export type PasswordLoginMethods = 'username-password' | 'email-password' | 'phone-password';
|
|
409
410
|
export type ComplateFiledsPlace = 'register' | 'login';
|
|
@@ -472,6 +473,7 @@ declare module '@authing/react-ui-components/components/AuthingGuard/api/appConf
|
|
|
472
473
|
customPasswordStrength: any;
|
|
473
474
|
passwordStrength: PasswordStrength;
|
|
474
475
|
verifyCodeLength: number;
|
|
476
|
+
websocket: string;
|
|
475
477
|
}
|
|
476
478
|
export const fetchAppConfig: (appId: string) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingResponse<ApplicationConfig>>;
|
|
477
479
|
|
|
@@ -607,6 +609,7 @@ declare module '@authing/react-ui-components/components/AuthingGuard/constants'
|
|
|
607
609
|
phone: string;
|
|
608
610
|
};
|
|
609
611
|
export const HIDE_SOCIALS: string[];
|
|
612
|
+
export const HIDE_SOCIALS_SHOWIN_ENTERPRISE: string[];
|
|
610
613
|
export enum ApplicationMfaType {
|
|
611
614
|
SMS = "SMS",
|
|
612
615
|
EMAIL = "EMAIL"
|
|
@@ -1282,6 +1285,11 @@ declare module '@authing/react-ui-components/components/Guard/Guard' {
|
|
|
1282
1285
|
import { IG2FCProps } from '@authing/react-ui-components/components/Type/index';
|
|
1283
1286
|
import { GuardLocalConfig } from '@authing/react-ui-components/components/Guard/config';
|
|
1284
1287
|
import './styles.less';
|
|
1288
|
+
import 'moment/locale/zh-cn';
|
|
1289
|
+
export enum LangMAP {
|
|
1290
|
+
zhCn = "zh-CN",
|
|
1291
|
+
enUs = "en-US"
|
|
1292
|
+
}
|
|
1285
1293
|
export interface GuardProps extends GuardEvents, IG2FCProps {
|
|
1286
1294
|
tenantId?: string;
|
|
1287
1295
|
config?: Partial<GuardLocalConfig>;
|
|
@@ -1469,8 +1477,13 @@ declare module '@authing/react-ui-components/components/Login/codemap' {
|
|
|
1469
1477
|
}
|
|
1470
1478
|
declare module '@authing/react-ui-components/components/Login/core/withAD' {
|
|
1471
1479
|
/// <reference types="react" />
|
|
1480
|
+
import { Agreement } from '@authing/react-ui-components/components/AuthingGuard/api/index';
|
|
1472
1481
|
interface LoginWithADProps {
|
|
1482
|
+
publicKey: string;
|
|
1483
|
+
autoRegister?: boolean;
|
|
1473
1484
|
onLogin: any;
|
|
1485
|
+
onBeforeLogin: any;
|
|
1486
|
+
agreements: Agreement[];
|
|
1474
1487
|
}
|
|
1475
1488
|
export const LoginWithAD: (props: LoginWithADProps) => JSX.Element;
|
|
1476
1489
|
export {};
|
|
@@ -1489,12 +1502,14 @@ declare module '@authing/react-ui-components/components/Login/core/withAppQrcode
|
|
|
1489
1502
|
}
|
|
1490
1503
|
declare module '@authing/react-ui-components/components/Login/core/withLDAP' {
|
|
1491
1504
|
/// <reference types="react" />
|
|
1505
|
+
import { Agreement } from '@authing/react-ui-components/components/AuthingGuard/api/index';
|
|
1492
1506
|
interface LoginWithLDAPProps {
|
|
1493
1507
|
publicKey: string;
|
|
1494
1508
|
autoRegister?: boolean;
|
|
1495
1509
|
host?: string;
|
|
1496
1510
|
onLogin: any;
|
|
1497
1511
|
onBeforeLogin: any;
|
|
1512
|
+
agreements: Agreement[];
|
|
1498
1513
|
}
|
|
1499
1514
|
export const LoginWithLDAP: (props: LoginWithLDAPProps) => JSX.Element;
|
|
1500
1515
|
export {};
|
|
@@ -1532,7 +1547,8 @@ declare module '@authing/react-ui-components/components/Login/core/withPassword/
|
|
|
1532
1547
|
}
|
|
1533
1548
|
declare module '@authing/react-ui-components/components/Login/core/withPassword/index' {
|
|
1534
1549
|
/// <reference types="react" />
|
|
1535
|
-
import { PasswordLoginMethods } from '@authing/react-ui-components/components/AuthingGuard/api/index';
|
|
1550
|
+
import { Agreement, PasswordLoginMethods } from '@authing/react-ui-components/components/AuthingGuard/api/index';
|
|
1551
|
+
import { LoginMethods } from '@authing/react-ui-components/components/index';
|
|
1536
1552
|
interface LoginWithPasswordProps {
|
|
1537
1553
|
publicKey: string;
|
|
1538
1554
|
autoRegister?: boolean;
|
|
@@ -1540,6 +1556,8 @@ declare module '@authing/react-ui-components/components/Login/core/withPassword/
|
|
|
1540
1556
|
onLogin: any;
|
|
1541
1557
|
onBeforeLogin: any;
|
|
1542
1558
|
passwordLoginMethods: PasswordLoginMethods[];
|
|
1559
|
+
agreements: Agreement[];
|
|
1560
|
+
loginWay?: LoginMethods;
|
|
1543
1561
|
}
|
|
1544
1562
|
export const LoginWithPassword: (props: LoginWithPasswordProps) => JSX.Element;
|
|
1545
1563
|
export {};
|
|
@@ -1583,7 +1601,7 @@ declare module '@authing/react-ui-components/components/Login/interface' {
|
|
|
1583
1601
|
import { IG2Config, IG2Events, IG2FCProps, IG2FCViewProps } from '@authing/react-ui-components/components/Type/index';
|
|
1584
1602
|
import { SocialConnectionProvider } from 'authing-js-sdk';
|
|
1585
1603
|
import { QrCodeAuthenticationClient } from 'authing-js-sdk/build/main/lib/authentication/QrCodeAuthenticationClient';
|
|
1586
|
-
import { PasswordLoginMethods } from '@authing/react-ui-components/components/AuthingGuard/api/index';
|
|
1604
|
+
import { Agreement, PasswordLoginMethods } from '@authing/react-ui-components/components/AuthingGuard/api/index';
|
|
1587
1605
|
import { PasswordLoginParams, LDAPLoginParams, ADLoginParams, PhoneCodeLoginParams, AuthenticationClient, LoginMethods, User } from '@authing/react-ui-components/components/index';
|
|
1588
1606
|
export interface LoginConfig extends IG2Config {
|
|
1589
1607
|
autoRegister: boolean;
|
|
@@ -1597,6 +1615,8 @@ declare module '@authing/react-ui-components/components/Login/interface' {
|
|
|
1597
1615
|
enterpriseConnections?: string[];
|
|
1598
1616
|
qrCodeScanOptions?: Parameters<QrCodeAuthenticationClient['startScanning']>[1];
|
|
1599
1617
|
publicKey?: string;
|
|
1618
|
+
agreementEnabled?: boolean;
|
|
1619
|
+
agreements?: Agreement[];
|
|
1600
1620
|
}
|
|
1601
1621
|
export interface LoginEvents extends IG2Events {
|
|
1602
1622
|
onLogin?: (user: User, authClient: AuthenticationClient) => void;
|
|
@@ -1755,13 +1775,20 @@ declare module '@authing/react-ui-components/components/MFA/index' {
|
|
|
1755
1775
|
import React from 'react';
|
|
1756
1776
|
import { GuardMFAViewProps } from '@authing/react-ui-components/components/MFA/interface';
|
|
1757
1777
|
import './styles.less';
|
|
1778
|
+
interface MFABackStateContextType {
|
|
1779
|
+
setMfaBackState: React.Dispatch<React.SetStateAction<string>>;
|
|
1780
|
+
mfaBackState: string;
|
|
1781
|
+
}
|
|
1782
|
+
export const MFABackStateContext: React.Context<MFABackStateContextType | undefined>;
|
|
1758
1783
|
export const GuardMFAView: React.FC<GuardMFAViewProps>;
|
|
1784
|
+
export {};
|
|
1759
1785
|
|
|
1760
1786
|
}
|
|
1761
1787
|
declare module '@authing/react-ui-components/components/MFA/interface' {
|
|
1762
1788
|
import { IG2Config, IG2Events, IG2FCProps } from '@authing/react-ui-components/components/Type/index';
|
|
1763
1789
|
import { AuthenticationClient, User } from '@authing/react-ui-components/components/index';
|
|
1764
1790
|
export interface MFAConfig extends IG2Config {
|
|
1791
|
+
autoRegister: boolean;
|
|
1765
1792
|
}
|
|
1766
1793
|
export const getDefaultMFAConfig: () => MFAConfig;
|
|
1767
1794
|
export interface MFAEvents extends IG2Events {
|
|
@@ -1996,6 +2023,7 @@ declare module '@authing/react-ui-components/components/SubmitSuccess/index' {
|
|
|
1996
2023
|
|
|
1997
2024
|
}
|
|
1998
2025
|
declare module '@authing/react-ui-components/components/SubmitSuccess/interface' {
|
|
2026
|
+
import { GuardModuleType } from '@authing/react-ui-components/components/Guard/index';
|
|
1999
2027
|
import { IG2Config, IG2Events, IG2FCViewProps } from '@authing/react-ui-components/components/Type/index';
|
|
2000
2028
|
export interface SubmitSuccessEvents extends IG2Events {
|
|
2001
2029
|
}
|
|
@@ -2004,6 +2032,9 @@ declare module '@authing/react-ui-components/components/SubmitSuccess/interface'
|
|
|
2004
2032
|
export interface SubmitSuccessInitData {
|
|
2005
2033
|
title?: string;
|
|
2006
2034
|
message?: string;
|
|
2035
|
+
text?: string;
|
|
2036
|
+
countDesc?: string;
|
|
2037
|
+
changeModule?: GuardModuleType;
|
|
2007
2038
|
}
|
|
2008
2039
|
export interface GuardSubmitSuccessViewProps extends IG2FCViewProps, SubmitSuccessEvents {
|
|
2009
2040
|
config: SubmitSuccessConfig;
|
|
@@ -2114,7 +2145,9 @@ declare module '@authing/react-ui-components/components/_utils/GuardErrorCode' {
|
|
|
2114
2145
|
USER_EXISTENCE = 2026,
|
|
2115
2146
|
LOGIN_INVALID = 2021,
|
|
2116
2147
|
PASSWORD_ERROR = 2333,
|
|
2117
|
-
USER_NOT_EXIST = 2004
|
|
2148
|
+
USER_NOT_EXIST = 2004,
|
|
2149
|
+
MULTIPLE_ERROR_LOCK = 2057,
|
|
2150
|
+
ACCOUNT_LOCK = 2005
|
|
2118
2151
|
}
|
|
2119
2152
|
|
|
2120
2153
|
}
|
|
@@ -2272,7 +2305,7 @@ declare module '@authing/react-ui-components/components/_utils/index' {
|
|
|
2272
2305
|
export const getSymbolTypeLength: (pwd: string) => number;
|
|
2273
2306
|
export const getPasswordValidate: (strength?: PasswordStrength, customPasswordStrength?: any) => Rule[];
|
|
2274
2307
|
export const sleep: (delay: number) => Promise<unknown>;
|
|
2275
|
-
export const shoudGoToComplete: (user: User, contextType: ComplateFiledsPlace, config: ApplicationConfig | undefined) => boolean;
|
|
2308
|
+
export const shoudGoToComplete: (user: User, contextType: ComplateFiledsPlace, config: ApplicationConfig | undefined, autoRegister?: boolean | undefined) => boolean;
|
|
2276
2309
|
export const tabSort: (defaultValue: RegisterMethods, tabList: RegisterMethods[]) => RegisterMethods[];
|
|
2277
2310
|
export const mailDesensitization: (mail: string) => string;
|
|
2278
2311
|
export const phoneDesensitization: (phone: string) => string;
|
|
@@ -2405,7 +2438,7 @@ declare module '@authing/react-ui-components/components/version/index' {
|
|
|
2405
2438
|
|
|
2406
2439
|
}
|
|
2407
2440
|
declare module '@authing/react-ui-components/components/version/version' {
|
|
2408
|
-
const _default: "3.0.0-rc.
|
|
2441
|
+
const _default: "3.0.0-rc.15";
|
|
2409
2442
|
export default _default;
|
|
2410
2443
|
|
|
2411
2444
|
}
|
|
@@ -4060,7 +4093,7 @@ declare module '@authing/react-ui-components/es/version/version' {
|
|
|
4060
4093
|
|
|
4061
4094
|
}
|
|
4062
4095
|
declare module '@authing/react-ui-components/examples' {
|
|
4063
|
-
|
|
4096
|
+
export {};
|
|
4064
4097
|
|
|
4065
4098
|
}
|
|
4066
4099
|
declare module '@authing/react-ui-components/index' {
|