@authing/react-ui-components 3.0.2-beta.2 → 3.0.2-beta.6
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/build/asset-manifest.json +18 -18
- package/build/index.html +1 -1
- package/build/static/css/{2.9512539b.chunk.css → 2.d6432d93.chunk.css} +3 -3
- package/build/static/css/2.d6432d93.chunk.css.map +1 -0
- package/build/static/css/main.6a8701e8.chunk.css +2 -0
- package/build/static/css/main.6a8701e8.chunk.css.map +1 -0
- package/build/static/js/2.9e599951.chunk.js +3 -0
- package/build/static/js/{2.1105ecfb.chunk.js.LICENSE.txt → 2.9e599951.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/2.9e599951.chunk.js.map +1 -0
- package/build/static/js/{3.fd17f196.chunk.js → 3.ed27e06b.chunk.js} +2 -2
- package/build/static/js/{3.fd17f196.chunk.js.map → 3.ed27e06b.chunk.js.map} +1 -1
- package/build/static/js/main.bdf1d850.chunk.js +2 -0
- package/build/static/js/main.bdf1d850.chunk.js.map +1 -0
- package/build/static/js/{runtime-main.ef138021.js → runtime-main.9a428724.js} +2 -2
- package/build/static/js/{runtime-main.ef138021.js.map → runtime-main.9a428724.js.map} +1 -1
- package/components/BindTotp/interface.ts +1 -1
- package/components/ChangePassword/core/firstLoginReset.tsx +14 -7
- package/components/ChangePassword/core/rotateReset.tsx +19 -8
- package/components/ChangePassword/index.tsx +21 -8
- package/components/CompleteInfo/interface.ts +1 -1
- package/components/Guard/Guard.tsx +99 -59
- package/components/Guard/config.ts +2 -2
- package/components/Guard/event.ts +2 -2
- package/components/Guard/stateMachine.ts +19 -0
- package/components/Login/codemap.ts +3 -1
- package/components/Login/core/withPassword/index.tsx +3 -3
- package/components/Login/index.tsx +6 -5
- package/components/Login/{props.ts → interface.ts} +0 -0
- package/components/Login/socialLogin/index.tsx +1 -1
- package/components/MFA/core/email.tsx +1 -1
- package/components/MFA/core/sms.tsx +1 -1
- package/components/MFA/core/totp.tsx +1 -1
- package/components/MFA/index.tsx +1 -1
- package/components/MFA/{props.ts → interface.ts} +0 -0
- package/components/MFA/mfaMethods/index.tsx +1 -1
- package/components/Register/index.tsx +1 -1
- package/components/Register/{props.ts → interface.ts} +0 -0
- package/components/_utils/config.ts +2 -4
- package/components/_utils/guradHttp.ts +4 -0
- package/components/_utils/index.ts +5 -1
- package/components/_utils/locales/en/common.json +3 -1
- package/components/_utils/locales/zh/common.json +3 -1
- package/components/_utils/locales/zh/user.json +1 -0
- package/components/index.ts +4 -7
- package/examples.tsx +35 -35
- package/lib/index.d.ts +45 -45
- package/lib/index.min.css +2 -2
- package/lib/index.min.js +1 -1
- package/package.json +2 -3
- package/scripts/publish.js +1 -1
- package/build/static/css/2.9512539b.chunk.css.map +0 -1
- package/build/static/css/main.0ff9e24a.chunk.css +0 -2
- package/build/static/css/main.0ff9e24a.chunk.css.map +0 -1
- package/build/static/js/2.1105ecfb.chunk.js +0 -3
- package/build/static/js/2.1105ecfb.chunk.js.map +0 -1
- package/build/static/js/main.a47645ff.chunk.js +0 -2
- package/build/static/js/main.a47645ff.chunk.js.map +0 -1
|
@@ -4,7 +4,7 @@ import { useTranslation } from 'react-i18next'
|
|
|
4
4
|
import { useAsyncFn } from 'react-use'
|
|
5
5
|
import { GuardModuleType } from '../../Guard/module'
|
|
6
6
|
import { useGuardHttp } from '../../_utils/guradHttp'
|
|
7
|
-
import { GuardMFAInitData, MFAConfig } from '../
|
|
7
|
+
import { GuardMFAInitData, MFAConfig } from '../interface'
|
|
8
8
|
import { message as Message } from 'antd'
|
|
9
9
|
import SubmitButton from '../../SubmitButton'
|
|
10
10
|
import { VerifyCodeFormItem } from '../VerifyCodeInput/VerifyCodeFormItem'
|
package/components/MFA/index.tsx
CHANGED
|
@@ -7,7 +7,7 @@ import { MFASms } from './core/sms'
|
|
|
7
7
|
import { MFAFace } from './core/face'
|
|
8
8
|
import { MFATotp } from './core/totp'
|
|
9
9
|
import { MFAMethods } from './mfaMethods'
|
|
10
|
-
import { GuardMFAViewProps, MFAType } from './
|
|
10
|
+
import { GuardMFAViewProps, MFAType } from './interface'
|
|
11
11
|
import { useAuthClient } from '../Guard/authClient'
|
|
12
12
|
import { codeMap } from './codemap'
|
|
13
13
|
import './styles.less'
|
|
File without changes
|
|
@@ -2,7 +2,7 @@ import React, { useMemo, useState } from 'react'
|
|
|
2
2
|
import { useTranslation } from 'react-i18next'
|
|
3
3
|
import { Button } from 'antd'
|
|
4
4
|
import { IconFont } from '../../IconFont'
|
|
5
|
-
import { GuardMFAInitData, MFAType } from '../
|
|
5
|
+
import { GuardMFAInitData, MFAType } from '../interface'
|
|
6
6
|
import { i18n } from '../../_utils/locales'
|
|
7
7
|
import './style.less'
|
|
8
8
|
|
|
@@ -7,7 +7,7 @@ import { useAuthClient } from '../Guard/authClient'
|
|
|
7
7
|
import { GuardModuleType } from '../Guard/module'
|
|
8
8
|
import { RegisterWithEmail } from './core/WithEmail'
|
|
9
9
|
import { RegisterWithPhone } from './core/WithPhone'
|
|
10
|
-
import { GuardRegisterViewProps } from './
|
|
10
|
+
import { GuardRegisterViewProps } from './interface'
|
|
11
11
|
import { codeMap } from './codemap'
|
|
12
12
|
|
|
13
13
|
export const GuardRegisterView: React.FC<GuardRegisterViewProps> = ({
|
|
File without changes
|
|
@@ -18,8 +18,7 @@ export const initConfig = async (
|
|
|
18
18
|
config: Partial<IG2Config>,
|
|
19
19
|
defaultConfig: IG2Config
|
|
20
20
|
): Promise<{ config: GuardLocalConfig; publicConfig: ApplicationConfig }> => {
|
|
21
|
-
if (!getPublicConfig(appId))
|
|
22
|
-
await requestPublicConfig(appId, config.host ?? defaultConfig.host)
|
|
21
|
+
if (!getPublicConfig(appId)) await requestPublicConfig(appId)
|
|
23
22
|
const mergedConfig = mergeConfig(
|
|
24
23
|
config,
|
|
25
24
|
defaultConfig,
|
|
@@ -93,8 +92,7 @@ const mergeConfig = (
|
|
|
93
92
|
}
|
|
94
93
|
|
|
95
94
|
const requestPublicConfig = async (
|
|
96
|
-
appId: string
|
|
97
|
-
host: string
|
|
95
|
+
appId: string
|
|
98
96
|
): Promise<ApplicationConfig> => {
|
|
99
97
|
let res: AuthingResponse<ApplicationConfig>
|
|
100
98
|
|
|
@@ -198,9 +198,13 @@ export const assembledAppHost = (identifier: string, host: string) => {
|
|
|
198
198
|
|
|
199
199
|
const splitHost = hostUrl.hostname.split('.')
|
|
200
200
|
|
|
201
|
+
const port = hostUrl.port
|
|
202
|
+
|
|
201
203
|
splitHost.shift()
|
|
202
204
|
|
|
203
|
-
return `${hostUrl.protocol}//${identifier}.${splitHost.join('.')}
|
|
205
|
+
return `${hostUrl.protocol}//${identifier}.${splitHost.join('.')}${
|
|
206
|
+
port && `:${port}`
|
|
207
|
+
}`
|
|
204
208
|
}
|
|
205
209
|
|
|
206
210
|
export enum PasswordStrength {
|
|
@@ -223,5 +223,7 @@
|
|
|
223
223
|
"pToLogin": "seconds later back",
|
|
224
224
|
"resetSuccess": "Reset successfully",
|
|
225
225
|
"resetSuccessMessage": "The password is reset successfully, you can continue to log in with the new password",
|
|
226
|
-
"totpCode": "Security code"
|
|
226
|
+
"totpCode": "Security code",
|
|
227
|
+
"welcome": "Welcome",
|
|
228
|
+
"initPasswordText": "To ensure account security, please set your initial password."
|
|
227
229
|
}
|
package/components/index.ts
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
|
+
export * from './_utils/config'
|
|
2
|
+
export type { AuthenticationClientOptions } from 'authing-js-sdk'
|
|
3
|
+
|
|
1
4
|
export * from './AuthingGuard/types'
|
|
2
5
|
export * from './AuthingGuard/hooks'
|
|
3
|
-
export
|
|
6
|
+
export * from './AuthingGuard'
|
|
4
7
|
|
|
5
8
|
export * from './Guard'
|
|
6
9
|
export * from './Type'
|
|
7
|
-
export * from './BindTotp/interface'
|
|
8
|
-
export * from './CompleteInfo/interface'
|
|
9
|
-
export * from './DownloadAuthenticator/interface'
|
|
10
|
-
export * from './Error/interface'
|
|
11
|
-
export * from './ForgetPassword/interface'
|
|
12
|
-
export * from './_utils/config'
|
package/examples.tsx
CHANGED
|
@@ -3,7 +3,7 @@ import ReactDOM from 'react-dom'
|
|
|
3
3
|
|
|
4
4
|
import reportWebVitals from './reportWebVitals'
|
|
5
5
|
import { message } from 'antd'
|
|
6
|
-
import { Guard } from './components
|
|
6
|
+
import { Guard } from './components'
|
|
7
7
|
|
|
8
8
|
const App = () => {
|
|
9
9
|
return (
|
|
@@ -15,8 +15,9 @@ const App = () => {
|
|
|
15
15
|
}}
|
|
16
16
|
>
|
|
17
17
|
<Guard
|
|
18
|
-
appId="
|
|
19
|
-
//
|
|
18
|
+
appId="619747787da1b9eb2e9ee7d5"
|
|
19
|
+
// appId="6191cf610f772aa56dc70637"
|
|
20
|
+
// tenantId="6194a41abf23c1d5268b362a1"
|
|
20
21
|
onLogin={(u) => {
|
|
21
22
|
message.info('🏁 用户业务层终点,登录完成。')
|
|
22
23
|
console.log(u)
|
|
@@ -42,38 +43,37 @@ const App = () => {
|
|
|
42
43
|
onRegisterTabChange={(registerMethod) => {
|
|
43
44
|
console.log('📁 onRegisterTabChange 触发', registerMethod)
|
|
44
45
|
}}
|
|
45
|
-
config={
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
}
|
|
46
|
+
config={{
|
|
47
|
+
// host: 'https://core.dev2.authing-inc.co/',
|
|
48
|
+
host: 'http://core.authing.localhost:3000/',
|
|
49
|
+
// registerMethods: [RegisterMethods.Email],
|
|
50
|
+
// autoRegister: true,
|
|
51
|
+
// defaultRegisterMethod: RegisterMethods.Phone,
|
|
52
|
+
// disableRegister: false,
|
|
53
|
+
// disableResetPwd: false,
|
|
54
|
+
// defaultLoginMethod: LoginMethods.WxMinQr, // 指定默认登录方式,如果这个方式不存在于 LoginMethods,那么就当作没有传入
|
|
55
|
+
// loginMethods: [],
|
|
56
|
+
// LoginMethods.Password,
|
|
57
|
+
// LoginMethods.PhoneCode,
|
|
58
|
+
// LoginMethods.WxMinQr,
|
|
59
|
+
// ],
|
|
60
|
+
// socialConnections: [
|
|
61
|
+
// SocialConnectionProvider.ALIPAY,
|
|
62
|
+
// SocialConnectionProvider.APPLE_WEB,
|
|
63
|
+
// ], // 指定可选的社会化登录方式
|
|
64
|
+
// qrCodeScanOptions?: Parameters<QrCodeAuthenticationClient['startScanning']>[1]
|
|
65
|
+
// passwordLoginMethods?: PasswordLoginMethods[]
|
|
66
|
+
// enterpriseConnections: [] // 这个有啥用?
|
|
67
|
+
// publicKey?: string
|
|
68
|
+
// lang: 'en-US',
|
|
69
|
+
// lang: 'zh-CN',
|
|
70
|
+
// mode: GuardMode.Modal,
|
|
71
|
+
// logo: '',
|
|
72
|
+
// clickCloseable: false, // clickCloseable Modal 模式时是否隐藏登录框右上角的关闭按钮
|
|
73
|
+
// escCloseable: true, //
|
|
74
|
+
// target: '#c1',
|
|
75
|
+
// socialConnectionsBtnShape: 'rectangle',
|
|
76
|
+
}}
|
|
77
77
|
/>
|
|
78
78
|
</div>
|
|
79
79
|
)
|
package/lib/index.d.ts
CHANGED
|
@@ -1050,7 +1050,7 @@ declare module '@authing/react-ui-components/components/BindTotp/index' {
|
|
|
1050
1050
|
declare module '@authing/react-ui-components/components/BindTotp/interface' {
|
|
1051
1051
|
import { IG2Config, IG2Events, IG2FCProps } from '@authing/react-ui-components/components/Type/index';
|
|
1052
1052
|
import { AuthenticationClient, User } from '@authing/react-ui-components/components/index';
|
|
1053
|
-
import { GuardMFAInitData } from '@authing/react-ui-components/components/MFA/
|
|
1053
|
+
import { GuardMFAInitData } from '@authing/react-ui-components/components/MFA/interface';
|
|
1054
1054
|
export interface BindTotpConfig extends IG2Config {
|
|
1055
1055
|
}
|
|
1056
1056
|
export const getDefaultMFAConfig: () => BindTotpConfig;
|
|
@@ -1125,7 +1125,7 @@ declare module '@authing/react-ui-components/components/CompleteInfo/interface'
|
|
|
1125
1125
|
import { IG2Config, IG2Events, IG2FCProps } from '@authing/react-ui-components/components/Type/index';
|
|
1126
1126
|
export interface CompleteInfoConfig extends IG2Config {
|
|
1127
1127
|
}
|
|
1128
|
-
export const
|
|
1128
|
+
export const getDefaultCompleteInfoConfig: () => CompleteInfoConfig;
|
|
1129
1129
|
export interface CompleteInfoEvents extends IG2Events {
|
|
1130
1130
|
onRegisterInfoCompleted?: (user: User, udfs: {
|
|
1131
1131
|
definition: any;
|
|
@@ -1254,8 +1254,8 @@ declare module '@authing/react-ui-components/components/Guard/authClient' {
|
|
|
1254
1254
|
|
|
1255
1255
|
}
|
|
1256
1256
|
declare module '@authing/react-ui-components/components/Guard/config' {
|
|
1257
|
-
import { LoginConfig } from '@authing/react-ui-components/components/Login/
|
|
1258
|
-
import { RegisterConfig } from '@authing/react-ui-components/components/Register/
|
|
1257
|
+
import { LoginConfig } from '@authing/react-ui-components/components/Login/interface';
|
|
1258
|
+
import { RegisterConfig } from '@authing/react-ui-components/components/Register/interface';
|
|
1259
1259
|
export interface GuardComponentConifg extends Partial<GuardLocalConfig> {
|
|
1260
1260
|
}
|
|
1261
1261
|
export interface GuardLocalConfig extends RegisterConfig, LoginConfig {
|
|
@@ -1266,8 +1266,8 @@ declare module '@authing/react-ui-components/components/Guard/config' {
|
|
|
1266
1266
|
declare module '@authing/react-ui-components/components/Guard/event' {
|
|
1267
1267
|
import { CompleteInfoEvents } from '@authing/react-ui-components/components/CompleteInfo/interface';
|
|
1268
1268
|
import { ForgetPasswordEvents } from '@authing/react-ui-components/components/ForgetPassword/interface';
|
|
1269
|
-
import { LoginEvents } from '@authing/react-ui-components/components/Login/
|
|
1270
|
-
import { RegisterEvents } from '@authing/react-ui-components/components/Register/
|
|
1269
|
+
import { LoginEvents } from '@authing/react-ui-components/components/Login/interface';
|
|
1270
|
+
import { RegisterEvents } from '@authing/react-ui-components/components/Register/interface';
|
|
1271
1271
|
export interface GuardEvents extends LoginEvents, RegisterEvents, CompleteInfoEvents, ForgetPasswordEvents {
|
|
1272
1272
|
}
|
|
1273
1273
|
export const guardEventsFilter: (props: any) => GuardEvents;
|
|
@@ -1338,6 +1338,9 @@ declare module '@authing/react-ui-components/components/Guard/stateMachine' {
|
|
|
1338
1338
|
setConfig: (config: GuardLocalConfig) => void;
|
|
1339
1339
|
}
|
|
1340
1340
|
export const useHistoryHijack: (back?: (() => void) | undefined) => ((state?: any) => void)[];
|
|
1341
|
+
export const initGuardStateMachine: (changeMouleEvent: ChangeModuleEvent, initData: ModuleState) => GuardStateMachine;
|
|
1342
|
+
export const getGuardStateMachine: () => GuardStateMachine;
|
|
1343
|
+
export const useGuardStateMachine: () => GuardStateMachine;
|
|
1341
1344
|
|
|
1342
1345
|
}
|
|
1343
1346
|
declare module '@authing/react-ui-components/components/IconFont/iconfont' {
|
|
@@ -1496,12 +1499,12 @@ declare module '@authing/react-ui-components/components/Login/core/withWechatmpQ
|
|
|
1496
1499
|
}
|
|
1497
1500
|
declare module '@authing/react-ui-components/components/Login/index' {
|
|
1498
1501
|
/// <reference types="react" />
|
|
1499
|
-
import { GuardLoginViewProps } from '@authing/react-ui-components/components/Login/
|
|
1502
|
+
import { GuardLoginViewProps } from '@authing/react-ui-components/components/Login/interface';
|
|
1500
1503
|
import './styles.less';
|
|
1501
1504
|
export const GuardLoginView: (props: GuardLoginViewProps) => JSX.Element;
|
|
1502
1505
|
|
|
1503
1506
|
}
|
|
1504
|
-
declare module '@authing/react-ui-components/components/Login/
|
|
1507
|
+
declare module '@authing/react-ui-components/components/Login/interface' {
|
|
1505
1508
|
import { IG2Config, IG2Events, IG2FCProps, IG2FCViewProps } from '@authing/react-ui-components/components/Type/index';
|
|
1506
1509
|
import { SocialConnectionProvider } from 'authing-js-sdk';
|
|
1507
1510
|
import { QrCodeAuthenticationClient } from 'authing-js-sdk/build/main/lib/authentication/QrCodeAuthenticationClient';
|
|
@@ -1537,7 +1540,7 @@ declare module '@authing/react-ui-components/components/Login/props' {
|
|
|
1537
1540
|
}
|
|
1538
1541
|
declare module '@authing/react-ui-components/components/Login/socialLogin/index' {
|
|
1539
1542
|
import React from 'react';
|
|
1540
|
-
import { LoginConfig } from '@authing/react-ui-components/components/Login/
|
|
1543
|
+
import { LoginConfig } from '@authing/react-ui-components/components/Login/interface';
|
|
1541
1544
|
import './style.less';
|
|
1542
1545
|
export interface SocialLoginProps {
|
|
1543
1546
|
appId: string;
|
|
@@ -1580,7 +1583,7 @@ declare module '@authing/react-ui-components/components/MFA/codemap' {
|
|
|
1580
1583
|
}
|
|
1581
1584
|
declare module '@authing/react-ui-components/components/MFA/core/email' {
|
|
1582
1585
|
import React from 'react';
|
|
1583
|
-
import { MFAConfig } from '@authing/react-ui-components/components/MFA/
|
|
1586
|
+
import { MFAConfig } from '@authing/react-ui-components/components/MFA/interface';
|
|
1584
1587
|
interface BindMFAEmailProps {
|
|
1585
1588
|
mfaToken: string;
|
|
1586
1589
|
onBind: (email: string) => void;
|
|
@@ -1626,7 +1629,7 @@ declare module '@authing/react-ui-components/components/MFA/core/face_deps' {
|
|
|
1626
1629
|
}
|
|
1627
1630
|
declare module '@authing/react-ui-components/components/MFA/core/sms' {
|
|
1628
1631
|
import React from 'react';
|
|
1629
|
-
import { MFAConfig } from '@authing/react-ui-components/components/MFA/
|
|
1632
|
+
import { MFAConfig } from '@authing/react-ui-components/components/MFA/interface';
|
|
1630
1633
|
export interface BindMFASmsProps {
|
|
1631
1634
|
mfaToken: string;
|
|
1632
1635
|
onBind: (phone: string) => void;
|
|
@@ -1651,7 +1654,7 @@ declare module '@authing/react-ui-components/components/MFA/core/sms' {
|
|
|
1651
1654
|
}
|
|
1652
1655
|
declare module '@authing/react-ui-components/components/MFA/core/totp' {
|
|
1653
1656
|
import React from 'react';
|
|
1654
|
-
import { GuardMFAInitData, MFAConfig } from '@authing/react-ui-components/components/MFA/
|
|
1657
|
+
import { GuardMFAInitData, MFAConfig } from '@authing/react-ui-components/components/MFA/interface';
|
|
1655
1658
|
export interface BindMFATotpProps {
|
|
1656
1659
|
initData: GuardMFAInitData;
|
|
1657
1660
|
changeModule: any;
|
|
@@ -1673,24 +1676,12 @@ declare module '@authing/react-ui-components/components/MFA/core/totp' {
|
|
|
1673
1676
|
}
|
|
1674
1677
|
declare module '@authing/react-ui-components/components/MFA/index' {
|
|
1675
1678
|
import React from 'react';
|
|
1676
|
-
import { GuardMFAViewProps } from '@authing/react-ui-components/components/MFA/
|
|
1679
|
+
import { GuardMFAViewProps } from '@authing/react-ui-components/components/MFA/interface';
|
|
1677
1680
|
import './styles.less';
|
|
1678
1681
|
export const GuardMFAView: React.FC<GuardMFAViewProps>;
|
|
1679
1682
|
|
|
1680
1683
|
}
|
|
1681
|
-
declare module '@authing/react-ui-components/components/MFA/
|
|
1682
|
-
import React from 'react';
|
|
1683
|
-
import { GuardMFAInitData, MFAType } from '@authing/react-ui-components/components/MFA/props';
|
|
1684
|
-
import './style.less';
|
|
1685
|
-
export interface MFAMethodsProps {
|
|
1686
|
-
applicationMfa: GuardMFAInitData['applicationMfa'];
|
|
1687
|
-
method: MFAType;
|
|
1688
|
-
onChangeMethod: (type: MFAType) => void;
|
|
1689
|
-
}
|
|
1690
|
-
export const MFAMethods: React.FC<MFAMethodsProps>;
|
|
1691
|
-
|
|
1692
|
-
}
|
|
1693
|
-
declare module '@authing/react-ui-components/components/MFA/props' {
|
|
1684
|
+
declare module '@authing/react-ui-components/components/MFA/interface' {
|
|
1694
1685
|
import { IG2Config, IG2Events, IG2FCProps } from '@authing/react-ui-components/components/Type/index';
|
|
1695
1686
|
import { AuthenticationClient, User } from '@authing/react-ui-components/components/index';
|
|
1696
1687
|
export interface MFAConfig extends IG2Config {
|
|
@@ -1730,6 +1721,18 @@ declare module '@authing/react-ui-components/components/MFA/props' {
|
|
|
1730
1721
|
initData: GuardMFAInitData;
|
|
1731
1722
|
}
|
|
1732
1723
|
|
|
1724
|
+
}
|
|
1725
|
+
declare module '@authing/react-ui-components/components/MFA/mfaMethods/index' {
|
|
1726
|
+
import React from 'react';
|
|
1727
|
+
import { GuardMFAInitData, MFAType } from '@authing/react-ui-components/components/MFA/interface';
|
|
1728
|
+
import './style.less';
|
|
1729
|
+
export interface MFAMethodsProps {
|
|
1730
|
+
applicationMfa: GuardMFAInitData['applicationMfa'];
|
|
1731
|
+
method: MFAType;
|
|
1732
|
+
onChangeMethod: (type: MFAType) => void;
|
|
1733
|
+
}
|
|
1734
|
+
export const MFAMethods: React.FC<MFAMethodsProps>;
|
|
1735
|
+
|
|
1733
1736
|
}
|
|
1734
1737
|
declare module '@authing/react-ui-components/components/NeedHelpView/core/describeQuestions' {
|
|
1735
1738
|
/// <reference types="react" />
|
|
@@ -1828,11 +1831,11 @@ declare module '@authing/react-ui-components/components/Register/core/WithPhone'
|
|
|
1828
1831
|
}
|
|
1829
1832
|
declare module '@authing/react-ui-components/components/Register/index' {
|
|
1830
1833
|
import React from 'react';
|
|
1831
|
-
import { GuardRegisterViewProps } from '@authing/react-ui-components/components/Register/
|
|
1834
|
+
import { GuardRegisterViewProps } from '@authing/react-ui-components/components/Register/interface';
|
|
1832
1835
|
export const GuardRegisterView: React.FC<GuardRegisterViewProps>;
|
|
1833
1836
|
|
|
1834
1837
|
}
|
|
1835
|
-
declare module '@authing/react-ui-components/components/Register/
|
|
1838
|
+
declare module '@authing/react-ui-components/components/Register/interface' {
|
|
1836
1839
|
import { RegisterMethods } from 'authing-js-sdk';
|
|
1837
1840
|
import { IG2FCProps, IG2Config, IG2Events } from '@authing/react-ui-components/components/Type/index';
|
|
1838
1841
|
import { AuthenticationClient, User, EmailRegisterParams, PhoneRegisterParams } from '@authing/react-ui-components/components/index';
|
|
@@ -1965,15 +1968,10 @@ declare module '@authing/react-ui-components/components/Type/index' {
|
|
|
1965
1968
|
export const getDefaultG2Config: () => IG2Config;
|
|
1966
1969
|
|
|
1967
1970
|
}
|
|
1968
|
-
declare module '@authing/react-ui-components/components/ValidatorRules/
|
|
1971
|
+
declare module '@authing/react-ui-components/components/ValidatorRules/ValidatorFormItem' {
|
|
1969
1972
|
import React from 'react';
|
|
1970
1973
|
import { ICheckProps, ValidatorFormItemProps } from '@authing/react-ui-components/components/ValidatorRules/index';
|
|
1971
1974
|
export const EmailFormItem: React.ForwardRefExoticComponent<ValidatorFormItemProps & React.RefAttributes<ICheckProps>>;
|
|
1972
|
-
|
|
1973
|
-
}
|
|
1974
|
-
declare module '@authing/react-ui-components/components/ValidatorRules/PhoneFormItem' {
|
|
1975
|
-
import React from 'react';
|
|
1976
|
-
import { ICheckProps, ValidatorFormItemProps } from '@authing/react-ui-components/components/ValidatorRules/index';
|
|
1977
1975
|
export const PhoneFormItem: React.ForwardRefExoticComponent<ValidatorFormItemProps & React.RefAttributes<ICheckProps>>;
|
|
1978
1976
|
|
|
1979
1977
|
}
|
|
@@ -1984,11 +1982,16 @@ declare module '@authing/react-ui-components/components/ValidatorRules/index' {
|
|
|
1984
1982
|
form?: FormInstance;
|
|
1985
1983
|
checkRepeat?: boolean;
|
|
1986
1984
|
}
|
|
1985
|
+
export interface ValidatorFormItemMetaProps extends ValidatorFormItemProps {
|
|
1986
|
+
userPoolId?: string;
|
|
1987
|
+
form?: FormInstance;
|
|
1988
|
+
checkRepeat?: boolean;
|
|
1989
|
+
method: 'email' | 'phone';
|
|
1990
|
+
}
|
|
1987
1991
|
export interface ICheckProps {
|
|
1988
|
-
check: () => void;
|
|
1992
|
+
check: (values: any) => void;
|
|
1989
1993
|
}
|
|
1990
|
-
export { EmailFormItem } from '@authing/react-ui-components/components/ValidatorRules/
|
|
1991
|
-
export { PhoneFormItem } from '@authing/react-ui-components/components/ValidatorRules/PhoneFormItem';
|
|
1994
|
+
export { EmailFormItem, PhoneFormItem } from '@authing/react-ui-components/components/ValidatorRules/ValidatorFormItem';
|
|
1992
1995
|
|
|
1993
1996
|
}
|
|
1994
1997
|
declare module '@authing/react-ui-components/components/VerifyCodeInput/index' {
|
|
@@ -2039,6 +2042,7 @@ declare module '@authing/react-ui-components/components/_utils/guradHttp' {
|
|
|
2039
2042
|
setUserpoolId(userpoolId: string): void;
|
|
2040
2043
|
setAppId(appId: string): void;
|
|
2041
2044
|
setTenantId(tenantId: string): void;
|
|
2045
|
+
setBaseUrl(baseUrl: string): void;
|
|
2042
2046
|
getHeaders: () => Record<string, string>;
|
|
2043
2047
|
get: <T>(path: string, query?: Record<string, any>, config?: RequestInit | undefined) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingResponse<T>>;
|
|
2044
2048
|
post: <T>(path: string, data: any, config?: {
|
|
@@ -2057,7 +2061,7 @@ declare module '@authing/react-ui-components/components/_utils/hooks/index' {
|
|
|
2057
2061
|
import { GuardModuleType } from '@authing/react-ui-components/components/Guard/module';
|
|
2058
2062
|
export const useChangeModule: () => (nextModuleType: GuardModuleType, nextData?: any) => void;
|
|
2059
2063
|
export const useAppId: (appId?: string | undefined) => string;
|
|
2060
|
-
export const useDebounce: (fn: any, delay: number) => (...args: any[]) =>
|
|
2064
|
+
export const useDebounce: (fn: any, delay: number) => (...args: any[]) => void;
|
|
2061
2065
|
|
|
2062
2066
|
}
|
|
2063
2067
|
declare module '@authing/react-ui-components/components/_utils/http' {
|
|
@@ -2249,17 +2253,13 @@ declare module '@authing/react-ui-components/components/context/module/context'
|
|
|
2249
2253
|
|
|
2250
2254
|
}
|
|
2251
2255
|
declare module '@authing/react-ui-components/components/index' {
|
|
2256
|
+
export * from '@authing/react-ui-components/components/_utils/config';
|
|
2257
|
+
export type { AuthenticationClientOptions } from 'authing-js-sdk';
|
|
2252
2258
|
export * from '@authing/react-ui-components/components/AuthingGuard/types/index';
|
|
2253
2259
|
export * from '@authing/react-ui-components/components/AuthingGuard/hooks/index';
|
|
2254
|
-
export
|
|
2260
|
+
export * from '@authing/react-ui-components/components/AuthingGuard/index';
|
|
2255
2261
|
export * from '@authing/react-ui-components/components/Guard/index';
|
|
2256
2262
|
export * from '@authing/react-ui-components/components/Type/index';
|
|
2257
|
-
export * from '@authing/react-ui-components/components/BindTotp/interface';
|
|
2258
|
-
export * from '@authing/react-ui-components/components/CompleteInfo/interface';
|
|
2259
|
-
export * from '@authing/react-ui-components/components/DownloadAuthenticator/interface';
|
|
2260
|
-
export * from '@authing/react-ui-components/components/Error/interface';
|
|
2261
|
-
export * from '@authing/react-ui-components/components/ForgetPassword/interface';
|
|
2262
|
-
export * from '@authing/react-ui-components/components/_utils/config';
|
|
2263
2263
|
|
|
2264
2264
|
}
|
|
2265
2265
|
declare module '@authing/react-ui-components/reportWebVitals' {
|