@authing/react-ui-components 3.0.0-alpha → 3.0.0-rc.0

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.
Files changed (232) hide show
  1. package/lib/index.d.ts +756 -109
  2. package/lib/index.min.css +2 -2
  3. package/lib/index.min.js +1 -1
  4. package/lib/index.min.js.LICENSE.txt +2 -0
  5. package/package.json +32 -10
  6. package/.eslintignore +0 -6
  7. package/.eslintrc.js +0 -7
  8. package/.prettierrc +0 -5
  9. package/.vscode/settings.json +0 -31
  10. package/build/favicon.ico +0 -0
  11. package/build/logo192.png +0 -0
  12. package/build/logo512.png +0 -0
  13. package/build/manifest.json +0 -25
  14. package/build/robots.txt +0 -3
  15. package/components/AuthingDropdown/index.tsx +0 -52
  16. package/components/AuthingDropdown/style.less +0 -43
  17. package/components/AuthingGuard/AppMFALayout/index.tsx +0 -74
  18. package/components/AuthingGuard/AppMFALayout/style.less +0 -12
  19. package/components/AuthingGuard/CompleteUserInfoLayout/index.tsx +0 -29
  20. package/components/AuthingGuard/CompleteUserInfoLayout/style.less +0 -8
  21. package/components/AuthingGuard/Forms/ADLoginForm/index.tsx +0 -117
  22. package/components/AuthingGuard/Forms/Agreements/index.tsx +0 -81
  23. package/components/AuthingGuard/Forms/Agreements/style.less +0 -44
  24. package/components/AuthingGuard/Forms/CompleteUserInfoForm/index.tsx +0 -139
  25. package/components/AuthingGuard/Forms/EmailMfaVerifyForm/CheckEmailForm.tsx +0 -84
  26. package/components/AuthingGuard/Forms/EmailMfaVerifyForm/VerifyCodeForm.tsx +0 -116
  27. package/components/AuthingGuard/Forms/EmailMfaVerifyForm/index.tsx +0 -40
  28. package/components/AuthingGuard/Forms/EmailMfaVerifyForm/style.less +0 -0
  29. package/components/AuthingGuard/Forms/EmailRegisterForm/index.tsx +0 -181
  30. package/components/AuthingGuard/Forms/EmailRegisterForm/style.less +0 -0
  31. package/components/AuthingGuard/Forms/LdapLoginForm/index.tsx +0 -166
  32. package/components/AuthingGuard/Forms/LdapLoginForm/style.less +0 -0
  33. package/components/AuthingGuard/Forms/LoginFormFooter/index.tsx +0 -76
  34. package/components/AuthingGuard/Forms/LoginFormFooter/style.less +0 -6
  35. package/components/AuthingGuard/Forms/MfaResetCodeForm/Step1.tsx +0 -86
  36. package/components/AuthingGuard/Forms/MfaResetCodeForm/Step2.tsx +0 -53
  37. package/components/AuthingGuard/Forms/MfaResetCodeForm/index.tsx +0 -65
  38. package/components/AuthingGuard/Forms/MfaResetCodeForm/style.less +0 -20
  39. package/components/AuthingGuard/Forms/MfaVerifyForm/index.tsx +0 -105
  40. package/components/AuthingGuard/Forms/MfaVerifyForm/style.less +0 -12
  41. package/components/AuthingGuard/Forms/PasswordLoginForm/index.tsx +0 -261
  42. package/components/AuthingGuard/Forms/PhoneCodeLoginForm/index.tsx +0 -133
  43. package/components/AuthingGuard/Forms/PhoneRegisterForm/index.tsx +0 -202
  44. package/components/AuthingGuard/Forms/QrCodeLoginForm/index.tsx +0 -59
  45. package/components/AuthingGuard/Forms/QrCodeLoginForm/style.less +0 -14
  46. package/components/AuthingGuard/Forms/RegisterFormFooter/index.tsx +0 -56
  47. package/components/AuthingGuard/Forms/RegisterFormFooter/style.less +0 -0
  48. package/components/AuthingGuard/Forms/ResetPwdForm/Footer.tsx +0 -21
  49. package/components/AuthingGuard/Forms/ResetPwdForm/Step1.tsx +0 -86
  50. package/components/AuthingGuard/Forms/ResetPwdForm/Step2.tsx +0 -127
  51. package/components/AuthingGuard/Forms/ResetPwdForm/Step3.tsx +0 -141
  52. package/components/AuthingGuard/Forms/ResetPwdForm/Step4.tsx +0 -51
  53. package/components/AuthingGuard/Forms/ResetPwdForm/index.tsx +0 -96
  54. package/components/AuthingGuard/Forms/ResetPwdForm/style.less +0 -3
  55. package/components/AuthingGuard/Forms/SendPhoneCode/SendCodeBtn.tsx +0 -88
  56. package/components/AuthingGuard/Forms/SendPhoneCode/index.tsx +0 -50
  57. package/components/AuthingGuard/Forms/SendPhoneCode/style.less +0 -26
  58. package/components/AuthingGuard/Forms/SmsMfaVerifyForm/CheckPhoneForm.tsx +0 -86
  59. package/components/AuthingGuard/Forms/SmsMfaVerifyForm/VerifyCodeForm.tsx +0 -113
  60. package/components/AuthingGuard/Forms/SmsMfaVerifyForm/index.tsx +0 -40
  61. package/components/AuthingGuard/Forms/SmsMfaVerifyForm/style.less +0 -3
  62. package/components/AuthingGuard/Forms/SocialAndIdpLogin/index.tsx +0 -325
  63. package/components/AuthingGuard/Forms/SocialAndIdpLogin/style.less +0 -75
  64. package/components/AuthingGuard/Forms/UploadImage/index.tsx +0 -70
  65. package/components/AuthingGuard/Forms/index.ts +0 -13
  66. package/components/AuthingGuard/GuardLayout/index.tsx +0 -474
  67. package/components/AuthingGuard/GuardLayout/style.less +0 -111
  68. package/components/AuthingGuard/Header/index.tsx +0 -25
  69. package/components/AuthingGuard/Header/style.less +0 -52
  70. package/components/AuthingGuard/IconFont/iconfont.js +0 -74
  71. package/components/AuthingGuard/IconFont/index.tsx +0 -19
  72. package/components/AuthingGuard/IconFont/style.less +0 -6
  73. package/components/AuthingGuard/IconFont/svg.js +0 -2
  74. package/components/AuthingGuard/LoginLayout/index.tsx +0 -161
  75. package/components/AuthingGuard/LoginLayout/style.less +0 -0
  76. package/components/AuthingGuard/MfaLayout/Steps.ts +0 -4
  77. package/components/AuthingGuard/MfaLayout/index.tsx +0 -49
  78. package/components/AuthingGuard/MfaLayout/style.less +0 -3
  79. package/components/AuthingGuard/RegisterLayout/index.tsx +0 -89
  80. package/components/AuthingGuard/RegisterLayout/style.less +0 -0
  81. package/components/AuthingGuard/ResetPwdLayout/index.tsx +0 -20
  82. package/components/AuthingGuard/ToggleLang/index.tsx +0 -51
  83. package/components/AuthingGuard/api/appConfig.ts +0 -146
  84. package/components/AuthingGuard/api/index.ts +0 -3
  85. package/components/AuthingGuard/api/sso.ts +0 -29
  86. package/components/AuthingGuard/api/userPoolConfig.ts +0 -111
  87. package/components/AuthingGuard/constants.ts +0 -105
  88. package/components/AuthingGuard/hooks/index.tsx +0 -70
  89. package/components/AuthingGuard/hooks/useScreenSize.tsx +0 -68
  90. package/components/AuthingGuard/index.tsx +0 -126
  91. package/components/AuthingGuard/style.less +0 -103
  92. package/components/AuthingGuard/types/Forms.ts +0 -94
  93. package/components/AuthingGuard/types/GuardConfig.ts +0 -420
  94. package/components/AuthingGuard/types/GuardState.ts +0 -7
  95. package/components/AuthingGuard/types/Locales.ts +0 -12
  96. package/components/AuthingGuard/types/index.ts +0 -4
  97. package/components/AuthingTabs/index.tsx +0 -98
  98. package/components/AuthingTabs/style.less +0 -135
  99. package/components/BindTotp/core/bindSuccess.tsx +0 -61
  100. package/components/BindTotp/core/securityCode.tsx +0 -119
  101. package/components/BindTotp/index.tsx +0 -134
  102. package/components/BindTotp/props.ts +0 -30
  103. package/components/BindTotp/styles.less +0 -56
  104. package/components/ChangeLanguage/index.tsx +0 -35
  105. package/components/ChangePassword/core/firstLoginReset.tsx +0 -104
  106. package/components/ChangePassword/core/rotateReset.tsx +0 -114
  107. package/components/ChangePassword/index.tsx +0 -59
  108. package/components/CompleteInfo/core/completeInfo.tsx +0 -155
  109. package/components/CompleteInfo/index.tsx +0 -45
  110. package/components/CompleteInfo/props.ts +0 -40
  111. package/components/CompleteInfo/styles.less +0 -7
  112. package/components/CompleteUserInfo/index.tsx +0 -49
  113. package/components/CompleteUserInfo/props.ts +0 -25
  114. package/components/ComponentsRender/index.back +0 -64
  115. package/components/CopyAbleText/index.tsx +0 -54
  116. package/components/CopyAbleText/style.less +0 -13
  117. package/components/DownloadAuthenticator/index.tsx +0 -97
  118. package/components/DownloadAuthenticator/props.ts +0 -22
  119. package/components/DownloadAuthenticator/styles.less +0 -52
  120. package/components/ForgetPassword/core/resetPassword.tsx +0 -150
  121. package/components/ForgetPassword/index.tsx +0 -51
  122. package/components/Guard/Guard.tsx +0 -226
  123. package/components/Guard/authClient.ts +0 -55
  124. package/components/Guard/config.ts +0 -19
  125. package/components/Guard/event.ts +0 -18
  126. package/components/Guard/index.tsx +0 -10
  127. package/components/Guard/module.ts +0 -19
  128. package/components/Guard/stateMachine.ts +0 -133
  129. package/components/Guard/styles.less +0 -444
  130. package/components/IconFont/iconfont.js +0 -74
  131. package/components/IconFont/index.tsx +0 -16
  132. package/components/IconFont/style.less +0 -6
  133. package/components/IconFont/svg.js +0 -2
  134. package/components/ImagePro/index.tsx +0 -52
  135. package/components/ImagePro/styles.less +0 -40
  136. package/components/Login/codemap.ts +0 -35
  137. package/components/Login/core/withAD.tsx +0 -9
  138. package/components/Login/core/withAppQrcode.tsx +0 -49
  139. package/components/Login/core/withLDAP.tsx +0 -145
  140. package/components/Login/core/withPassword.tsx +0 -176
  141. package/components/Login/core/withPhonecode.tsx +0 -135
  142. package/components/Login/core/withWechatMiniQrcode.tsx +0 -60
  143. package/components/Login/core/withWechatmpQrcode.tsx +0 -53
  144. package/components/Login/index.tsx +0 -359
  145. package/components/Login/props.ts +0 -90
  146. package/components/Login/socialLogin/index.tsx +0 -413
  147. package/components/Login/socialLogin/style.less +0 -61
  148. package/components/Login/styles.less +0 -53
  149. package/components/MFA/codemap.ts +0 -21
  150. package/components/MFA/core/email.tsx +0 -226
  151. package/components/MFA/core/face.tsx +0 -297
  152. package/components/MFA/core/face_deps.tsx +0 -37
  153. package/components/MFA/core/sms.tsx +0 -222
  154. package/components/MFA/core/totp.tsx +0 -137
  155. package/components/MFA/index.tsx +0 -135
  156. package/components/MFA/mfaMethods/index.tsx +0 -81
  157. package/components/MFA/mfaMethods/style.less +0 -39
  158. package/components/MFA/props.ts +0 -51
  159. package/components/MFA/styles.less +0 -92
  160. package/components/NeedHelpView/core/describeQuestions.tsx +0 -227
  161. package/components/NeedHelpView/index.tsx +0 -99
  162. package/components/RecoveryCode/core/useCode.tsx +0 -71
  163. package/components/RecoveryCode/index.tsx +0 -27
  164. package/components/RecoveryCode/interface.ts +0 -31
  165. package/components/RecoveryCode/style.less +0 -13
  166. package/components/Register/codemap.ts +0 -16
  167. package/components/Register/components/Agreements/index.tsx +0 -81
  168. package/components/Register/components/Agreements/style.less +0 -44
  169. package/components/Register/core/WithEmail.tsx +0 -250
  170. package/components/Register/core/WithPhone.tsx +0 -190
  171. package/components/Register/index.tsx +0 -122
  172. package/components/Register/props.ts +0 -50
  173. package/components/SendCode/SendCodeBtn.tsx +0 -96
  174. package/components/SendCode/index.tsx +0 -98
  175. package/components/SendCode/style.less +0 -31
  176. package/components/ShieldSpin/index.tsx +0 -27
  177. package/components/ShieldSpin/loading.svg +0 -29
  178. package/components/SubmitButton/index.tsx +0 -50
  179. package/components/Type/index.ts +0 -61
  180. package/components/VerifyCodeInput/index.tsx +0 -76
  181. package/components/VerifyCodeInput/style.less +0 -24
  182. package/components/_utils/GuardErrorCode.ts +0 -8
  183. package/components/_utils/clipboard.ts +0 -27
  184. package/components/_utils/config.ts +0 -123
  185. package/components/_utils/guradHttp.ts +0 -93
  186. package/components/_utils/hooks/index.ts +0 -56
  187. package/components/_utils/http.ts +0 -85
  188. package/components/_utils/index.ts +0 -310
  189. package/components/_utils/locales/en/common.json +0 -218
  190. package/components/_utils/locales/en/index.ts +0 -6
  191. package/components/_utils/locales/en/login.json +0 -95
  192. package/components/_utils/locales/en/map.json +0 -4
  193. package/components/_utils/locales/en/user.json +0 -82
  194. package/components/_utils/locales/index.ts +0 -45
  195. package/components/_utils/locales/zh/common.json +0 -218
  196. package/components/_utils/locales/zh/index.ts +0 -6
  197. package/components/_utils/locales/zh/login.json +0 -95
  198. package/components/_utils/locales/zh/map.json +0 -4
  199. package/components/_utils/locales/zh/user.json +0 -82
  200. package/components/_utils/popupCenter.ts +0 -48
  201. package/components/context/base.tsx +0 -28
  202. package/components/context/global/context.tsx +0 -39
  203. package/components/context/global/reducer.tsx +0 -56
  204. package/components/context/module/context.tsx +0 -23
  205. package/components/index.ts +0 -10
  206. package/config/antdReplacer.js +0 -51
  207. package/config/env.js +0 -104
  208. package/config/getHttpsConfig.js +0 -66
  209. package/config/jest/cssTransform.js +0 -14
  210. package/config/jest/fileTransform.js +0 -40
  211. package/config/modules.js +0 -134
  212. package/config/paths.js +0 -71
  213. package/config/pnpTs.js +0 -35
  214. package/config/webpack.config.js +0 -835
  215. package/config/webpackDevServer.config.js +0 -130
  216. package/examples.tsx +0 -100
  217. package/index.js +0 -1
  218. package/logo.svg +0 -7
  219. package/public/favicon.ico +0 -0
  220. package/public/index.html +0 -43
  221. package/public/logo192.png +0 -0
  222. package/public/logo512.png +0 -0
  223. package/public/manifest.json +0 -25
  224. package/public/robots.txt +0 -3
  225. package/react-app-env.d.ts +0 -71
  226. package/reportWebVitals.ts +0 -15
  227. package/scripts/build.js +0 -208
  228. package/scripts/lib.js +0 -200
  229. package/scripts/start.js +0 -162
  230. package/scripts/test.js +0 -49
  231. package/setupTests.ts +0 -5
  232. package/tsconfig.json +0 -30
package/lib/index.d.ts CHANGED
@@ -358,7 +358,7 @@ declare module '@authing/react-ui-components/components/AuthingGuard/ToggleLang/
358
358
 
359
359
  }
360
360
  declare module '@authing/react-ui-components/components/AuthingGuard/api/appConfig' {
361
- import { Lang, Protocol } from '@authing/react-ui-components/components/AuthingGuard/types/index';
361
+ import { Lang, LoginMethods, Protocol } from '@authing/react-ui-components/components/AuthingGuard/types/index';
362
362
  import { IAzureAdConnectionConfig, ICasConnectionConfig, IOAuthConnectionConfig, ISamlConnectionConfig, OIDCConnectionConfig, SocialConnectionItem } from '@authing/react-ui-components/components/AuthingGuard/api/userPoolConfig';
363
363
  import { PasswordStrength } from '@authing/react-ui-components/components/_utils/index';
364
364
  export enum ApplicationMfaType {
@@ -366,6 +366,11 @@ declare module '@authing/react-ui-components/components/AuthingGuard/api/appConf
366
366
  EMAIL = "EMAIL"
367
367
  }
368
368
  export const ApplicationMfaTypeLabel: () => Record<ApplicationMfaType, string>;
369
+ export type QrcodeTabsSettings = Record<LoginMethods, Array<{
370
+ id: string;
371
+ title: string;
372
+ isDefault?: boolean;
373
+ }>>;
369
374
  export interface OidcClientMetadata {
370
375
  grant_types: string[];
371
376
  client_id: string;
@@ -378,6 +383,8 @@ declare module '@authing/react-ui-components/components/AuthingGuard/api/appConf
378
383
  name: string;
379
384
  label: string;
380
385
  inputType: string;
386
+ required: boolean;
387
+ validateRules: any[];
381
388
  }
382
389
  export interface UserExtendsField {
383
390
  type: 'user';
@@ -385,6 +392,8 @@ declare module '@authing/react-ui-components/components/AuthingGuard/api/appConf
385
392
  name: string;
386
393
  label: string;
387
394
  inputType: string;
395
+ required: boolean;
396
+ validateRules: any[];
388
397
  }
389
398
  export type ExtendsField = InternalExtendsField | UserExtendsField;
390
399
  export interface ApplicationPasswordTabConfig {
@@ -397,6 +406,7 @@ declare module '@authing/react-ui-components/components/AuthingGuard/api/appConf
397
406
  lang: Lang;
398
407
  }
399
408
  export type PasswordLoginMethods = 'username-password' | 'email-password' | 'phone-password';
409
+ export type ComplateFiledsPlace = 'register' | 'login';
400
410
  export interface ApplicationConfig {
401
411
  id: string;
402
412
  cdnBase: string;
@@ -406,6 +416,7 @@ declare module '@authing/react-ui-components/components/AuthingGuard/api/appConf
406
416
  css: string;
407
417
  name: string;
408
418
  logo: string;
419
+ description?: string;
409
420
  redirectUris: string[];
410
421
  registerDisabled: boolean;
411
422
  registerTabs: {
@@ -415,14 +426,17 @@ declare module '@authing/react-ui-components/components/AuthingGuard/api/appConf
415
426
  [x: string]: string;
416
427
  };
417
428
  };
429
+ qrcodeTabsSettings: QrcodeTabsSettings;
418
430
  loginTabs: {
419
431
  list: string[];
420
432
  default: string;
433
+ defaultV2?: string;
421
434
  title: {
422
435
  [x: string]: string;
423
436
  };
424
437
  };
425
438
  socialConnections: SocialConnectionItem[];
439
+ complateFiledsPlace: ComplateFiledsPlace[];
426
440
  extendsFieldsEnabled: boolean;
427
441
  extendsFields: ExtendsField[];
428
442
  identifier: string;
@@ -546,8 +560,10 @@ declare module '@authing/react-ui-components/components/AuthingGuard/api/userPoo
546
560
  export interface SocialConnectionItem {
547
561
  name: string;
548
562
  name_en: string;
563
+ displayName: string;
549
564
  logo: string;
550
565
  description: string;
566
+ identifier: string;
551
567
  provider: SocialConnectionProvider;
552
568
  authorizationUrl: string;
553
569
  tooltip: Record<Lang, string>;
@@ -600,6 +616,7 @@ declare module '@authing/react-ui-components/components/AuthingGuard/constants'
600
616
  export const defaultHeaders: {
601
617
  'userpool-id': string;
602
618
  'app-id': string;
619
+ 'tenant-id': string;
603
620
  'sdk-version': string;
604
621
  'request-from': string;
605
622
  lang: string;
@@ -648,6 +665,7 @@ declare module '@authing/react-ui-components/components/AuthingGuard/index' {
648
665
  import './style.less';
649
666
  interface AuthingGuardProps extends GuardEventsHandler {
650
667
  appId: string;
668
+ tenantId?: string;
651
669
  config?: UserConfig;
652
670
  visible?: boolean;
653
671
  className?: string;
@@ -682,6 +700,7 @@ declare module '@authing/react-ui-components/components/AuthingGuard/types/Forms
682
700
  }
683
701
  export interface QrLoginFormProps extends BaseFormProps {
684
702
  type: LoginMethods.AppQr | LoginMethods.WxMinQr | LoginMethods.WechatMpQrcode;
703
+ idpId?: string;
685
704
  }
686
705
  export interface EmailRegisterFormProps extends BaseFormProps {
687
706
  onValidateFail?: (error: any) => void;
@@ -741,7 +760,7 @@ declare module '@authing/react-ui-components/components/AuthingGuard/types/Forms
741
760
  declare module '@authing/react-ui-components/components/AuthingGuard/types/GuardConfig' {
742
761
  import { AuthenticationClient, AuthenticationClientOptions, CommonMessage, SocialConnectionProvider, User } from 'authing-js-sdk';
743
762
  import { QrCodeAuthenticationClient } from 'authing-js-sdk/build/main/lib/authentication/QrCodeAuthenticationClient';
744
- import { SocialConnectionItem, EnterpriseConnectionItem, ApplicationConfig, PasswordLoginMethods, Agreement } from '@authing/react-ui-components/components/AuthingGuard/api/index';
763
+ import { SocialConnectionItem, EnterpriseConnectionItem, ApplicationConfig, PasswordLoginMethods, Agreement, QrcodeTabsSettings } from '@authing/react-ui-components/components/AuthingGuard/api/index';
745
764
  import { Lang } from '@authing/react-ui-components/components/AuthingGuard/types/Locales';
746
765
  export type { AuthenticationClient, CommonMessage, User } from 'authing-js-sdk';
747
766
  export enum GuardMode {
@@ -915,6 +934,7 @@ declare module '@authing/react-ui-components/components/AuthingGuard/types/Guard
915
934
  export interface UserConfig {
916
935
  logo?: string;
917
936
  title?: string;
937
+ description?: string;
918
938
  zIndex?: number;
919
939
  isSSO?: boolean;
920
940
  mode?: GuardMode;
@@ -971,6 +991,8 @@ declare module '@authing/react-ui-components/components/AuthingGuard/types/Guard
971
991
  publicKey: ApplicationConfig['publicKey'];
972
992
  agreementEnabled: boolean;
973
993
  agreements: Agreement[];
994
+ loginMethodTitleMapping: Record<string, string>;
995
+ qrcodeTabsSettings: QrcodeTabsSettings;
974
996
  }
975
997
  export interface LocalesConfig {
976
998
  defaultLang?: Lang;
@@ -1041,15 +1063,15 @@ declare module '@authing/react-ui-components/components/BindTotp/core/securityCo
1041
1063
  }
1042
1064
  declare module '@authing/react-ui-components/components/BindTotp/index' {
1043
1065
  import React from 'react';
1044
- import { GuardBindTotpViewProps } from '@authing/react-ui-components/components/BindTotp/props';
1066
+ import { GuardBindTotpViewProps } from '@authing/react-ui-components/components/BindTotp/interface';
1045
1067
  import './styles.less';
1046
1068
  export const GuardBindTotpView: React.FC<GuardBindTotpViewProps>;
1047
1069
 
1048
1070
  }
1049
- declare module '@authing/react-ui-components/components/BindTotp/props' {
1071
+ declare module '@authing/react-ui-components/components/BindTotp/interface' {
1050
1072
  import { IG2Config, IG2Events, IG2FCProps } from '@authing/react-ui-components/components/Type/index';
1051
1073
  import { AuthenticationClient, User } from '@authing/react-ui-components/components/index';
1052
- import { GuardMFAInitData } from '@authing/react-ui-components/components/MFA/props';
1074
+ import { GuardMFAInitData } from '@authing/react-ui-components/components/MFA/interface';
1053
1075
  export interface BindTotpConfig extends IG2Config {
1054
1076
  }
1055
1077
  export const getDefaultMFAConfig: () => BindTotpConfig;
@@ -1103,28 +1125,35 @@ declare module '@authing/react-ui-components/components/ChangePassword/index' {
1103
1125
  declare module '@authing/react-ui-components/components/CompleteInfo/core/completeInfo' {
1104
1126
  import React from 'react';
1105
1127
  import { ExtendsField } from '@authing/react-ui-components/components/AuthingGuard/api/index';
1106
- import { GuardCompleteInfoViewProps } from '@authing/react-ui-components/components/CompleteInfo/props';
1128
+ import { GuardCompleteInfoViewProps } from '@authing/react-ui-components/components/CompleteInfo/interface';
1129
+ import { User } from 'authing-js-sdk';
1107
1130
  export interface CompleteInfoProps {
1131
+ user: User;
1132
+ verifyCodeLength: number | undefined;
1108
1133
  extendsFields: ExtendsField[];
1109
1134
  onRegisterInfoCompleted?: GuardCompleteInfoViewProps['onRegisterInfoCompleted'];
1110
1135
  onRegisterInfoCompletedError?: GuardCompleteInfoViewProps['onRegisterInfoCompletedError'];
1111
1136
  }
1137
+ export interface FieldMetadata {
1138
+ key: string;
1139
+ options: any;
1140
+ }
1112
1141
  export const CompleteInfo: React.FC<CompleteInfoProps>;
1113
1142
 
1114
1143
  }
1115
1144
  declare module '@authing/react-ui-components/components/CompleteInfo/index' {
1116
1145
  import React from 'react';
1117
- import { GuardCompleteInfoViewProps } from '@authing/react-ui-components/components/CompleteInfo/props';
1146
+ import { GuardCompleteInfoViewProps } from '@authing/react-ui-components/components/CompleteInfo/interface';
1118
1147
  import './styles.less';
1119
1148
  export const GuardCompleteInfoView: React.FC<GuardCompleteInfoViewProps>;
1120
1149
 
1121
1150
  }
1122
- declare module '@authing/react-ui-components/components/CompleteInfo/props' {
1151
+ declare module '@authing/react-ui-components/components/CompleteInfo/interface' {
1123
1152
  import { AuthenticationClient, CommonMessage, User } from 'authing-js-sdk';
1124
1153
  import { IG2Config, IG2Events, IG2FCProps } from '@authing/react-ui-components/components/Type/index';
1125
1154
  export interface CompleteInfoConfig extends IG2Config {
1126
1155
  }
1127
- export const getDefaultLoginConfig: () => CompleteInfoConfig;
1156
+ export const getDefaultCompleteInfoConfig: () => CompleteInfoConfig;
1128
1157
  export interface CompleteInfoEvents extends IG2Events {
1129
1158
  onRegisterInfoCompleted?: (user: User, udfs: {
1130
1159
  definition: any;
@@ -1140,27 +1169,24 @@ declare module '@authing/react-ui-components/components/CompleteInfo/props' {
1140
1169
  }
1141
1170
  export interface GuardCompleteInfoViewProps extends GuardCompleteInfoProps {
1142
1171
  config: CompleteInfoConfig;
1172
+ initData: any;
1173
+ onLogin?: any;
1174
+ }
1175
+ export type ExtendsFieldType = 'user' | 'internal';
1176
+ export interface ExtendsField {
1177
+ type: ExtendsFieldType;
1178
+ name: string;
1179
+ label: string;
1180
+ inputType: string;
1181
+ required: boolean;
1182
+ validateRules: any[];
1143
1183
  }
1144
1184
 
1145
1185
  }
1146
- declare module '@authing/react-ui-components/components/CompleteUserInfo/index' {
1147
- import React from 'react';
1148
- import { CompleteUserInfoProps } from '@authing/react-ui-components/components/CompleteUserInfo/props';
1149
- export const GuardCompleteUserInfo: React.FC<CompleteUserInfoProps>;
1150
-
1151
- }
1152
- declare module '@authing/react-ui-components/components/CompleteUserInfo/props' {
1153
- import { IG2Config, IG2Events, IG2FCProps } from '@authing/react-ui-components/components/Type/index';
1154
- import { ExtendsField } from '@authing/react-ui-components/components/AuthingGuard/api/index';
1155
- export interface CompleteUserInfoConfig extends IG2Config {
1156
- extendsFields?: ExtendsField[];
1157
- }
1158
- export const getDefaultCompleteUserInfoConfig: () => CompleteUserInfoConfig;
1159
- export interface CompleteUserInfoEvents extends IG2Events {
1160
- }
1161
- export interface CompleteUserInfoProps extends IG2FCProps, CompleteUserInfoEvents {
1162
- config?: CompleteUserInfoConfig;
1163
- }
1186
+ declare module '@authing/react-ui-components/components/CompleteInfo/utils' {
1187
+ import { User } from 'authing-js-sdk';
1188
+ import { ExtendsField } from '@authing/react-ui-components/components/CompleteInfo/interface';
1189
+ export const completeFieldsFilter: (user: User, field: ExtendsField) => boolean;
1164
1190
 
1165
1191
  }
1166
1192
  declare module '@authing/react-ui-components/components/CopyAbleText/index' {
@@ -1173,16 +1199,16 @@ declare module '@authing/react-ui-components/components/CopyAbleText/index' {
1173
1199
  }
1174
1200
  declare module '@authing/react-ui-components/components/DownloadAuthenticator/index' {
1175
1201
  import React from 'react';
1176
- import { GuardDownloadATViewProps } from '@authing/react-ui-components/components/DownloadAuthenticator/props';
1202
+ import { GuardDownloadATViewProps } from '@authing/react-ui-components/components/DownloadAuthenticator/interface';
1177
1203
  import './styles.less';
1178
1204
  export const GuardDownloadATView: React.FC<GuardDownloadATViewProps>;
1179
1205
 
1180
1206
  }
1181
- declare module '@authing/react-ui-components/components/DownloadAuthenticator/props' {
1207
+ declare module '@authing/react-ui-components/components/DownloadAuthenticator/interface' {
1182
1208
  import { IG2Config, IG2Events, IG2FCProps } from '@authing/react-ui-components/components/Type/index';
1183
1209
  export interface DownloadATConfig extends IG2Config {
1184
1210
  }
1185
- export const getDefaultLoginConfig: () => DownloadATConfig;
1211
+ export const getDefaultDownloadAuthenticatorConfig: () => DownloadATConfig;
1186
1212
  export interface DownloadATEvents extends IG2Events {
1187
1213
  }
1188
1214
  export interface GuardDownloadATProps extends IG2FCProps, DownloadATEvents {
@@ -1192,30 +1218,73 @@ declare module '@authing/react-ui-components/components/DownloadAuthenticator/pr
1192
1218
  config: DownloadATConfig;
1193
1219
  }
1194
1220
 
1221
+ }
1222
+ declare module '@authing/react-ui-components/components/Error/index' {
1223
+ import React from 'react';
1224
+ import { GuardErrorViewProps } from '@authing/react-ui-components/components/Error/interface';
1225
+ import './styles.less';
1226
+ export const GuardErrorView: React.FC<GuardErrorViewProps>;
1227
+
1228
+ }
1229
+ declare module '@authing/react-ui-components/components/Error/interface' {
1230
+ export interface ErrorInitData {
1231
+ messages?: string;
1232
+ }
1233
+ export interface GuardErrorProps {
1234
+ initData?: ErrorInitData;
1235
+ }
1236
+ export interface GuardErrorViewProps extends GuardErrorProps {
1237
+ }
1238
+
1195
1239
  }
1196
1240
  declare module '@authing/react-ui-components/components/ForgetPassword/core/resetPassword' {
1197
1241
  /// <reference types="react" />
1198
1242
  interface ResetPasswordProps {
1199
1243
  onReset: any;
1200
1244
  publicConfig: any;
1245
+ onSend: (type: 'email' | 'phone') => void;
1246
+ onSendError: (type: 'email' | 'phone', error: any) => void;
1201
1247
  }
1202
1248
  export const ResetPassword: (props: ResetPasswordProps) => JSX.Element;
1203
1249
  export {};
1204
1250
 
1205
1251
  }
1206
1252
  declare module '@authing/react-ui-components/components/ForgetPassword/index' {
1207
- /// <reference types="react" />
1208
- export const GuardForgetPassword: (props: any) => JSX.Element;
1253
+ import React from 'react';
1254
+ import { ForgetPasswordViewProps } from '@authing/react-ui-components/components/ForgetPassword/interface';
1255
+ export const GuardForgetPassword: React.FC<ForgetPasswordViewProps>;
1256
+
1257
+ }
1258
+ declare module '@authing/react-ui-components/components/ForgetPassword/interface' {
1259
+ import { AuthenticationClient, CommonMessage } from '@authing/react-ui-components/components/index';
1260
+ import { IG2Config, IG2Events, IG2FCProps, IG2FCViewProps } from '@authing/react-ui-components/components/Type/index';
1261
+ export interface ForgetPasswordEvents extends IG2Events {
1262
+ onPwdEmailSend?: (authClient: AuthenticationClient) => void;
1263
+ onPwdEmailSendError?: (error: CommonMessage, authClient: AuthenticationClient) => void;
1264
+ onPwdPhoneSend?: (authClient: AuthenticationClient) => void;
1265
+ onPwdPhoneSendError?: (error: CommonMessage, authClient: AuthenticationClient) => void;
1266
+ onPwdReset?: (authClient: AuthenticationClient) => void;
1267
+ onPwdResetError?: (error: CommonMessage, authClient: AuthenticationClient) => void;
1268
+ }
1269
+ export interface ForgetPasswordConfig extends IG2Config {
1270
+ }
1271
+ export interface ForgetPasswordProps extends IG2FCProps, ForgetPasswordEvents {
1272
+ config: Partial<IG2Config>;
1273
+ }
1274
+ export interface ForgetPasswordViewProps extends ForgetPasswordProps, IG2FCViewProps {
1275
+ config: IG2Config;
1276
+ }
1209
1277
 
1210
1278
  }
1211
1279
  declare module '@authing/react-ui-components/components/Guard/Guard' {
1212
1280
  /// <reference types="react" />
1213
1281
  import { GuardEvents } from '@authing/react-ui-components/components/Guard/event';
1214
- import { GuardConfig } from '@authing/react-ui-components/components/_utils/config';
1215
1282
  import { IG2FCProps } from '@authing/react-ui-components/components/Type/index';
1283
+ import { GuardLocalConfig } from '@authing/react-ui-components/components/Guard/config';
1216
1284
  import './styles.less';
1217
1285
  export interface GuardProps extends GuardEvents, IG2FCProps {
1218
- config?: Partial<GuardConfig>;
1286
+ tenantId?: string;
1287
+ config?: Partial<GuardLocalConfig>;
1219
1288
  visible?: boolean;
1220
1289
  }
1221
1290
  export const Guard: (props: GuardProps) => JSX.Element;
@@ -1223,39 +1292,38 @@ declare module '@authing/react-ui-components/components/Guard/Guard' {
1223
1292
  }
1224
1293
  declare module '@authing/react-ui-components/components/Guard/authClient' {
1225
1294
  import { AuthenticationClient } from 'authing-js-sdk';
1226
- import { GuardConfig } from '@authing/react-ui-components/components/Guard/config';
1227
- export const initAuthClient: (config: GuardConfig, appId: string) => AuthenticationClient;
1295
+ import { GuardLocalConfig } from '@authing/react-ui-components/components/Guard/config';
1296
+ export const initAuthClient: (config: GuardLocalConfig, appId: string, tenantId?: string | undefined) => AuthenticationClient;
1228
1297
  export const getAuthClient: () => AuthenticationClient;
1229
1298
  export const useAuthClient: () => AuthenticationClient;
1230
1299
 
1231
1300
  }
1232
1301
  declare module '@authing/react-ui-components/components/Guard/config' {
1233
- import { LoginConfig } from '@authing/react-ui-components/components/Login/props';
1234
- import { RegisterConfig } from '@authing/react-ui-components/components/Register/props';
1235
- export interface GuardComponentConifg extends Partial<GuardConfig> {
1302
+ import { LoginConfig } from '@authing/react-ui-components/components/Login/interface';
1303
+ import { RegisterConfig } from '@authing/react-ui-components/components/Register/interface';
1304
+ export interface GuardComponentConifg extends Partial<GuardLocalConfig> {
1236
1305
  }
1237
- export interface GuardConfig extends RegisterConfig, LoginConfig {
1306
+ export interface GuardLocalConfig extends RegisterConfig, LoginConfig {
1238
1307
  }
1239
- export const getDefaultGuardConfig: () => GuardConfig;
1308
+ export const getDefaultGuardLocalConfig: () => GuardLocalConfig;
1240
1309
 
1241
1310
  }
1242
1311
  declare module '@authing/react-ui-components/components/Guard/event' {
1243
- import { CompleteInfoEvents } from '@authing/react-ui-components/components/CompleteInfo/props';
1244
- import { LoginEvents } from '@authing/react-ui-components/components/Login/props';
1245
- import { RegisterEvents } from '@authing/react-ui-components/components/Register/props';
1246
- export interface GuardEvents extends LoginEvents, RegisterEvents, CompleteInfoEvents {
1312
+ import { CompleteInfoEvents } from '@authing/react-ui-components/components/CompleteInfo/interface';
1313
+ import { ForgetPasswordEvents } from '@authing/react-ui-components/components/ForgetPassword/interface';
1314
+ import { LoginEvents } from '@authing/react-ui-components/components/Login/interface';
1315
+ import { RegisterEvents } from '@authing/react-ui-components/components/Register/interface';
1316
+ export interface GuardEvents extends LoginEvents, RegisterEvents, CompleteInfoEvents, ForgetPasswordEvents {
1247
1317
  }
1248
1318
  export const guardEventsFilter: (props: any) => GuardEvents;
1319
+ export const guardEventsHijacking: (events: GuardEvents) => GuardEvents;
1249
1320
 
1250
1321
  }
1251
1322
  declare module '@authing/react-ui-components/components/Guard/index' {
1252
- import { Guard, GuardProps } from '@authing/react-ui-components/components/Guard/Guard';
1253
- import { GuardModuleType } from '@authing/react-ui-components/components/Guard/module';
1254
- import { GuardComponentConifg } from '@authing/react-ui-components/components/Guard/config';
1255
- import { GuardEvents } from '@authing/react-ui-components/components/Guard/event';
1256
- export type { GuardProps, GuardModuleType, GuardComponentConifg, GuardEvents };
1257
- export { Guard };
1258
- export default Guard;
1323
+ export * from '@authing/react-ui-components/components/Guard/Guard';
1324
+ export * from '@authing/react-ui-components/components/Guard/module';
1325
+ export * from '@authing/react-ui-components/components/Guard/event';
1326
+ export * from '@authing/react-ui-components/components/Guard/config';
1259
1327
 
1260
1328
  }
1261
1329
  declare module '@authing/react-ui-components/components/Guard/module' {
@@ -1270,7 +1338,8 @@ declare module '@authing/react-ui-components/components/Guard/module' {
1270
1338
  BIND_TOTP = "bindTotp",
1271
1339
  ANY_QUESTIONS = "anyQuestions",
1272
1340
  COMPLETE_INFO = "completeInfo",
1273
- RECOVERY_CODE = "recoveryCode"
1341
+ RECOVERY_CODE = "recoveryCode",
1342
+ SUBMIT_SUCCESS = "submitSuccess"
1274
1343
  }
1275
1344
  export interface GuardModuleAction {
1276
1345
  action: string;
@@ -1281,7 +1350,7 @@ declare module '@authing/react-ui-components/components/Guard/module' {
1281
1350
 
1282
1351
  }
1283
1352
  declare module '@authing/react-ui-components/components/Guard/stateMachine' {
1284
- import { GuardConfig } from '@authing/react-ui-components/components/Guard/config';
1353
+ import { GuardLocalConfig } from '@authing/react-ui-components/components/Guard/config';
1285
1354
  import { GuardModuleType } from '@authing/react-ui-components/components/Guard/module';
1286
1355
  export interface ModuleState {
1287
1356
  moduleName: GuardModuleType;
@@ -1311,9 +1380,12 @@ declare module '@authing/react-ui-components/components/Guard/stateMachine' {
1311
1380
  end: () => void;
1312
1381
  historyPush: (data: ModuleState, actionType?: ActionType) => void;
1313
1382
  historyBack: (data: ModuleState) => void;
1314
- setConfig: (config: GuardConfig) => void;
1383
+ setConfig: (config: GuardLocalConfig) => void;
1315
1384
  }
1316
1385
  export const useHistoryHijack: (back?: (() => void) | undefined) => ((state?: any) => void)[];
1386
+ export const initGuardStateMachine: (changeMouleEvent: ChangeModuleEvent, initData: ModuleState) => GuardStateMachine;
1387
+ export const getGuardStateMachine: () => GuardStateMachine;
1388
+ export const useGuardStateMachine: () => GuardStateMachine;
1317
1389
 
1318
1390
  }
1319
1391
  declare module '@authing/react-ui-components/components/IconFont/iconfont' {
@@ -1336,9 +1408,9 @@ declare module '@authing/react-ui-components/components/IconFont/svg' {
1336
1408
 
1337
1409
  }
1338
1410
  declare module '@authing/react-ui-components/components/ImagePro/index' {
1339
- /// <reference types="react" />
1411
+ import React from 'react';
1340
1412
  import './styles.less';
1341
- export interface ImageProProps {
1413
+ export interface ImageProProps extends React.ImgHTMLAttributes<HTMLImageElement> {
1342
1414
  src: string;
1343
1415
  className?: string;
1344
1416
  alt?: string;
@@ -1351,6 +1423,14 @@ declare module '@authing/react-ui-components/components/ImagePro/index' {
1351
1423
  }
1352
1424
  export const ImagePro: (props: ImageProProps) => JSX.Element;
1353
1425
 
1426
+ }
1427
+ declare module '@authing/react-ui-components/components/InputNumber/index' {
1428
+ import { InputProps } from 'antd/lib/input';
1429
+ import React from 'react';
1430
+ export interface InputNumberProps extends InputProps {
1431
+ }
1432
+ export const InputNumber: React.FC<InputNumberProps>;
1433
+
1354
1434
  }
1355
1435
  declare module '@authing/react-ui-components/components/Login/codemap' {
1356
1436
  import { GuardModuleAction } from '@authing/react-ui-components/components/Guard/module';
@@ -1390,14 +1470,46 @@ declare module '@authing/react-ui-components/components/Login/core/withLDAP' {
1390
1470
  export {};
1391
1471
 
1392
1472
  }
1393
- declare module '@authing/react-ui-components/components/Login/core/withPassword' {
1473
+ declare module '@authing/react-ui-components/components/Login/core/withPassword/FormItemAccount' {
1474
+ import { FormItemProps } from 'antd/lib/form';
1475
+ import React from 'react';
1476
+ import { PasswordLoginMethods } from '@authing/react-ui-components/components/AuthingGuard/api/index';
1477
+ export interface FormItemAccountProps extends FormItemProps {
1478
+ passwordLoginMethods: PasswordLoginMethods[];
1479
+ }
1480
+ export const FormItemAccount: React.FC<FormItemAccountProps>;
1481
+
1482
+ }
1483
+ declare module '@authing/react-ui-components/components/Login/core/withPassword/GraphicVerifyCode' {
1484
+ import { InputProps } from 'antd/lib/input';
1485
+ import React from 'react';
1486
+ export interface GraphicVerifyCodeProps extends InputProps {
1487
+ verifyCodeUrl: string;
1488
+ changeCode: () => void;
1489
+ }
1490
+ export const GraphicVerifyCode: React.FC<GraphicVerifyCodeProps>;
1491
+
1492
+ }
1493
+ declare module '@authing/react-ui-components/components/Login/core/withPassword/InputAccount' {
1494
+ import { InputProps } from 'antd/lib/input';
1495
+ import React from 'react';
1496
+ import { PasswordLoginMethods } from '@authing/react-ui-components/components/AuthingGuard/api/index';
1497
+ export interface InputAccountProps extends InputProps {
1498
+ passwordLoginMethods: PasswordLoginMethods[];
1499
+ }
1500
+ export const InputAccount: React.FC<InputAccountProps>;
1501
+
1502
+ }
1503
+ declare module '@authing/react-ui-components/components/Login/core/withPassword/index' {
1394
1504
  /// <reference types="react" />
1505
+ import { PasswordLoginMethods } from '@authing/react-ui-components/components/AuthingGuard/api/index';
1395
1506
  interface LoginWithPasswordProps {
1396
1507
  publicKey: string;
1397
1508
  autoRegister?: boolean;
1398
1509
  host?: string;
1399
1510
  onLogin: any;
1400
1511
  onBeforeLogin: any;
1512
+ passwordLoginMethods: PasswordLoginMethods[];
1401
1513
  }
1402
1514
  export const LoginWithPassword: (props: LoginWithPasswordProps) => JSX.Element;
1403
1515
  export {};
@@ -1432,14 +1544,14 @@ declare module '@authing/react-ui-components/components/Login/core/withWechatmpQ
1432
1544
  }
1433
1545
  declare module '@authing/react-ui-components/components/Login/index' {
1434
1546
  /// <reference types="react" />
1435
- import { GuardLoginViewProps } from '@authing/react-ui-components/components/Login/props';
1547
+ import { GuardLoginViewProps } from '@authing/react-ui-components/components/Login/interface';
1436
1548
  import './styles.less';
1437
1549
  export const GuardLoginView: (props: GuardLoginViewProps) => JSX.Element;
1438
1550
 
1439
1551
  }
1440
- declare module '@authing/react-ui-components/components/Login/props' {
1552
+ declare module '@authing/react-ui-components/components/Login/interface' {
1441
1553
  import { IG2Config, IG2Events, IG2FCProps, IG2FCViewProps } from '@authing/react-ui-components/components/Type/index';
1442
- import { CommonMessage, SocialConnectionProvider } from 'authing-js-sdk';
1554
+ import { SocialConnectionProvider } from 'authing-js-sdk';
1443
1555
  import { QrCodeAuthenticationClient } from 'authing-js-sdk/build/main/lib/authentication/QrCodeAuthenticationClient';
1444
1556
  import { PasswordLoginMethods } from '@authing/react-ui-components/components/AuthingGuard/api/index';
1445
1557
  import { PasswordLoginParams, LDAPLoginParams, ADLoginParams, PhoneCodeLoginParams, AuthenticationClient, LoginMethods, User } from '@authing/react-ui-components/components/index';
@@ -1451,22 +1563,16 @@ declare module '@authing/react-ui-components/components/Login/props' {
1451
1563
  loginMethods: LoginMethods[];
1452
1564
  passwordLoginMethods: PasswordLoginMethods[];
1453
1565
  socialConnections?: SocialConnectionProvider[];
1454
- socialConnectionsBtnShape?: 'default' | 'rectangle' | 'round';
1566
+ socialConnectionsBtnShape?: 'default' | 'button' | 'icon';
1455
1567
  enterpriseConnections?: string[];
1456
1568
  qrCodeScanOptions?: Parameters<QrCodeAuthenticationClient['startScanning']>[1];
1457
1569
  publicKey?: string;
1458
1570
  }
1459
1571
  export interface LoginEvents extends IG2Events {
1460
1572
  onLogin?: (user: User, authClient: AuthenticationClient) => void;
1461
- onLoginError?: (user: User, authClient: AuthenticationClient) => void;
1573
+ onLoginError?: (errorMessages: any) => void;
1462
1574
  onLoginTabChange?: (activeTab: LoginMethods) => void;
1463
1575
  onBeforeLogin?: (loginInfo: PasswordLoginParams | LDAPLoginParams | ADLoginParams | PhoneCodeLoginParams, authClient: AuthenticationClient) => boolean | Promise<boolean>;
1464
- onPwdEmailSend?: (authClient: AuthenticationClient) => void;
1465
- onPwdEmailSendError?: (error: CommonMessage, authClient: AuthenticationClient) => void;
1466
- onPwdPhoneSend?: (authClient: AuthenticationClient) => void;
1467
- onPwdPhoneSendError?: (error: CommonMessage, authClient: AuthenticationClient) => void;
1468
- onPwdReset?: (authClient: AuthenticationClient) => void;
1469
- onPwdResetError?: (error: CommonMessage, authClient: AuthenticationClient) => void;
1470
1576
  }
1471
1577
  export interface GuardLoginProps extends IG2FCProps, LoginEvents {
1472
1578
  config?: Partial<LoginConfig>;
@@ -1479,7 +1585,7 @@ declare module '@authing/react-ui-components/components/Login/props' {
1479
1585
  }
1480
1586
  declare module '@authing/react-ui-components/components/Login/socialLogin/index' {
1481
1587
  import React from 'react';
1482
- import { LoginConfig } from '@authing/react-ui-components/components/Login/props';
1588
+ import { LoginConfig } from '@authing/react-ui-components/components/Login/interface';
1483
1589
  import './style.less';
1484
1590
  export interface SocialLoginProps {
1485
1591
  appId: string;
@@ -1488,6 +1594,32 @@ declare module '@authing/react-ui-components/components/Login/socialLogin/index'
1488
1594
  }
1489
1595
  export const SocialLogin: React.FC<SocialLoginProps>;
1490
1596
 
1597
+ }
1598
+ declare module '@authing/react-ui-components/components/MFA/VerifyCodeInput/VerifyCodeFormItem' {
1599
+ import { FormItemProps } from 'antd/lib/form';
1600
+ import React from 'react';
1601
+ export interface VerifyCodeFormItemProps extends FormItemProps {
1602
+ codeLength: number;
1603
+ ruleKeyword?: string;
1604
+ }
1605
+ export const VerifyCodeFormItem: React.FC<VerifyCodeFormItemProps>;
1606
+
1607
+ }
1608
+ declare module '@authing/react-ui-components/components/MFA/VerifyCodeInput/index' {
1609
+ import React, { FC } from 'react';
1610
+ import './style.less';
1611
+ interface VerifyCodeInputProps extends React.HTMLAttributes<HTMLDivElement> {
1612
+ length?: number;
1613
+ size?: string;
1614
+ gutter?: string;
1615
+ onEenter?: Function;
1616
+ showDivider?: boolean;
1617
+ onChange?: any;
1618
+ value?: Array<number | string>;
1619
+ }
1620
+ export const VerifyCodeInput: FC<VerifyCodeInputProps>;
1621
+ export {};
1622
+
1491
1623
  }
1492
1624
  declare module '@authing/react-ui-components/components/MFA/codemap' {
1493
1625
  import { GuardModuleAction } from '@authing/react-ui-components/components/Guard/module';
@@ -1496,9 +1628,11 @@ declare module '@authing/react-ui-components/components/MFA/codemap' {
1496
1628
  }
1497
1629
  declare module '@authing/react-ui-components/components/MFA/core/email' {
1498
1630
  import React from 'react';
1631
+ import { MFAConfig } from '@authing/react-ui-components/components/MFA/interface';
1499
1632
  interface BindMFAEmailProps {
1500
1633
  mfaToken: string;
1501
1634
  onBind: (email: string) => void;
1635
+ config: any;
1502
1636
  }
1503
1637
  export const BindMFAEmail: React.FC<BindMFAEmailProps>;
1504
1638
  interface VerifyMFAEmailProps {
@@ -1506,12 +1640,14 @@ declare module '@authing/react-ui-components/components/MFA/core/email' {
1506
1640
  mfaToken: string;
1507
1641
  onVerify: (code: number, data: any) => void;
1508
1642
  sendCodeRef: React.RefObject<HTMLButtonElement>;
1643
+ codeLength: number;
1509
1644
  }
1510
1645
  export const VerifyMFAEmail: React.FC<VerifyMFAEmailProps>;
1511
1646
  export const MFAEmail: React.FC<{
1512
1647
  mfaToken: string;
1513
1648
  email?: string;
1514
1649
  mfaLogin: any;
1650
+ config: MFAConfig;
1515
1651
  }>;
1516
1652
  export {};
1517
1653
 
@@ -1538,9 +1674,11 @@ declare module '@authing/react-ui-components/components/MFA/core/face_deps' {
1538
1674
  }
1539
1675
  declare module '@authing/react-ui-components/components/MFA/core/sms' {
1540
1676
  import React from 'react';
1677
+ import { MFAConfig } from '@authing/react-ui-components/components/MFA/interface';
1541
1678
  export interface BindMFASmsProps {
1542
1679
  mfaToken: string;
1543
1680
  onBind: (phone: string) => void;
1681
+ config: any;
1544
1682
  }
1545
1683
  export const BindMFASms: React.FC<BindMFASmsProps>;
1546
1684
  export interface VerifyMFASmsProps {
@@ -1548,18 +1686,20 @@ declare module '@authing/react-ui-components/components/MFA/core/sms' {
1548
1686
  phone: string;
1549
1687
  onVerify: (code: number, data: any) => void;
1550
1688
  sendCodeRef: React.RefObject<HTMLButtonElement>;
1689
+ codeLength: number;
1551
1690
  }
1552
1691
  export const VerifyMFASms: React.FC<VerifyMFASmsProps>;
1553
1692
  export const MFASms: React.FC<{
1554
1693
  mfaToken: string;
1555
1694
  phone?: string;
1556
1695
  mfaLogin: any;
1696
+ config: MFAConfig;
1557
1697
  }>;
1558
1698
 
1559
1699
  }
1560
1700
  declare module '@authing/react-ui-components/components/MFA/core/totp' {
1561
1701
  import React from 'react';
1562
- import { GuardMFAInitData, MFAConfig } from '@authing/react-ui-components/components/MFA/props';
1702
+ import { GuardMFAInitData, MFAConfig } from '@authing/react-ui-components/components/MFA/interface';
1563
1703
  export interface BindMFATotpProps {
1564
1704
  initData: GuardMFAInitData;
1565
1705
  changeModule: any;
@@ -1581,24 +1721,12 @@ declare module '@authing/react-ui-components/components/MFA/core/totp' {
1581
1721
  }
1582
1722
  declare module '@authing/react-ui-components/components/MFA/index' {
1583
1723
  import React from 'react';
1584
- import { GuardMFAViewProps } from '@authing/react-ui-components/components/MFA/props';
1724
+ import { GuardMFAViewProps } from '@authing/react-ui-components/components/MFA/interface';
1585
1725
  import './styles.less';
1586
1726
  export const GuardMFAView: React.FC<GuardMFAViewProps>;
1587
1727
 
1588
1728
  }
1589
- declare module '@authing/react-ui-components/components/MFA/mfaMethods/index' {
1590
- import React from 'react';
1591
- import { GuardMFAInitData, MFAType } from '@authing/react-ui-components/components/MFA/props';
1592
- import './style.less';
1593
- export interface MFAMethodsProps {
1594
- applicationMfa: GuardMFAInitData['applicationMfa'];
1595
- method: MFAType;
1596
- onChangeMethod: (type: MFAType) => void;
1597
- }
1598
- export const MFAMethods: React.FC<MFAMethodsProps>;
1599
-
1600
- }
1601
- declare module '@authing/react-ui-components/components/MFA/props' {
1729
+ declare module '@authing/react-ui-components/components/MFA/interface' {
1602
1730
  import { IG2Config, IG2Events, IG2FCProps } from '@authing/react-ui-components/components/Type/index';
1603
1731
  import { AuthenticationClient, User } from '@authing/react-ui-components/components/index';
1604
1732
  export interface MFAConfig extends IG2Config {
@@ -1638,6 +1766,18 @@ declare module '@authing/react-ui-components/components/MFA/props' {
1638
1766
  initData: GuardMFAInitData;
1639
1767
  }
1640
1768
 
1769
+ }
1770
+ declare module '@authing/react-ui-components/components/MFA/mfaMethods/index' {
1771
+ import React from 'react';
1772
+ import { GuardMFAInitData, MFAType } from '@authing/react-ui-components/components/MFA/interface';
1773
+ import './style.less';
1774
+ export interface MFAMethodsProps {
1775
+ applicationMfa: GuardMFAInitData['applicationMfa'];
1776
+ method: MFAType;
1777
+ onChangeMethod: (type: MFAType) => void;
1778
+ }
1779
+ export const MFAMethods: React.FC<MFAMethodsProps>;
1780
+
1641
1781
  }
1642
1782
  declare module '@authing/react-ui-components/components/NeedHelpView/core/describeQuestions' {
1643
1783
  /// <reference types="react" />
@@ -1736,11 +1876,11 @@ declare module '@authing/react-ui-components/components/Register/core/WithPhone'
1736
1876
  }
1737
1877
  declare module '@authing/react-ui-components/components/Register/index' {
1738
1878
  import React from 'react';
1739
- import { GuardRegisterViewProps } from '@authing/react-ui-components/components/Register/props';
1879
+ import { GuardRegisterViewProps } from '@authing/react-ui-components/components/Register/interface';
1740
1880
  export const GuardRegisterView: React.FC<GuardRegisterViewProps>;
1741
1881
 
1742
1882
  }
1743
- declare module '@authing/react-ui-components/components/Register/props' {
1883
+ declare module '@authing/react-ui-components/components/Register/interface' {
1744
1884
  import { RegisterMethods } from 'authing-js-sdk';
1745
1885
  import { IG2FCProps, IG2Config, IG2Events } from '@authing/react-ui-components/components/Type/index';
1746
1886
  import { AuthenticationClient, User, EmailRegisterParams, PhoneRegisterParams } from '@authing/react-ui-components/components/index';
@@ -1788,6 +1928,7 @@ declare module '@authing/react-ui-components/components/SendCode/index' {
1788
1928
  data: string;
1789
1929
  form?: any;
1790
1930
  onSendCodeBefore?: any;
1931
+ fieldName?: string;
1791
1932
  }
1792
1933
  export const SendCode: FC<SendPhoneCodeProps>;
1793
1934
 
@@ -1812,20 +1953,35 @@ declare module '@authing/react-ui-components/components/SubmitButton/index' {
1812
1953
  const _default: React.ForwardRefExoticComponent<SubmitButtonProps & React.RefAttributes<unknown>>;
1813
1954
  export default _default;
1814
1955
 
1956
+ }
1957
+ declare module '@authing/react-ui-components/components/SubmitSuccess/index' {
1958
+ import React from 'react';
1959
+ import { GuardSubmitSuccessViewProps } from '@authing/react-ui-components/components/SubmitSuccess/interface';
1960
+ export const GuardSubmitSuccessView: React.FC<GuardSubmitSuccessViewProps>;
1961
+
1962
+ }
1963
+ declare module '@authing/react-ui-components/components/SubmitSuccess/interface' {
1964
+ import { IG2Config, IG2Events, IG2FCViewProps } from '@authing/react-ui-components/components/Type/index';
1965
+ export interface SubmitSuccessEvents extends IG2Events {
1966
+ }
1967
+ export interface SubmitSuccessConfig extends IG2Config {
1968
+ }
1969
+ export interface SubmitSuccessInitData {
1970
+ title?: string;
1971
+ message?: string;
1972
+ }
1973
+ export interface GuardSubmitSuccessViewProps extends IG2FCViewProps, SubmitSuccessEvents {
1974
+ config: SubmitSuccessConfig;
1975
+ initData?: SubmitSuccessInitData;
1976
+ }
1977
+
1815
1978
  }
1816
1979
  declare module '@authing/react-ui-components/components/Type/index' {
1817
1980
  import { AuthenticationClient, CommonMessage } from 'authing-js-sdk';
1818
1981
  import { Lang } from 'authing-js-sdk/build/main/types';
1982
+ import { GuardMode } from '@authing/react-ui-components/components/index';
1819
1983
  import { ApplicationConfig } from '@authing/react-ui-components/components/AuthingGuard/api/index';
1820
1984
  import { GuardModuleType } from '@authing/react-ui-components/components/Guard/module';
1821
- export enum GuardMode {
1822
- Modal = "modal",
1823
- Normal = "normal"
1824
- }
1825
- export enum GuardScenes {
1826
- Login = "login",
1827
- Register = "register"
1828
- }
1829
1985
  export interface IG2FCProps extends IG2Events {
1830
1986
  appId: string;
1831
1987
  config?: Partial<IG2Config>;
@@ -1853,10 +2009,54 @@ declare module '@authing/react-ui-components/components/Type/index' {
1853
2009
  onLoadError?: (error: CommonMessage) => void;
1854
2010
  onClose?: () => void;
1855
2011
  onLangChange?: (lang: Lang) => void;
1856
- __changeModule?: (moduleName: GuardModuleType, initData: any) => void;
2012
+ __changeModule?: (moduleName: GuardModuleType, initData?: any) => void;
1857
2013
  }
1858
2014
  export const getDefaultG2Config: () => IG2Config;
1859
2015
 
2016
+ }
2017
+ declare module '@authing/react-ui-components/components/ValidatorRules/PasswordFormItem' {
2018
+ import React from 'react';
2019
+ import { PasswordFormItemProps } from '@authing/react-ui-components/components/ValidatorRules/index';
2020
+ export const PasswordFormItem: React.FC<PasswordFormItemProps>;
2021
+
2022
+ }
2023
+ declare module '@authing/react-ui-components/components/ValidatorRules/ValidatorFormItem' {
2024
+ import React from 'react';
2025
+ import { ICheckProps, ValidatorFormItemProps } from '@authing/react-ui-components/components/ValidatorRules/index';
2026
+ export const EmailFormItem: React.ForwardRefExoticComponent<ValidatorFormItemProps & React.RefAttributes<ICheckProps>>;
2027
+ export const PhoneFormItem: React.ForwardRefExoticComponent<ValidatorFormItemProps & React.RefAttributes<ICheckProps>>;
2028
+ export const UserNameFormItem: React.ForwardRefExoticComponent<ValidatorFormItemProps & React.RefAttributes<ICheckProps>>;
2029
+
2030
+ }
2031
+ declare module '@authing/react-ui-components/components/ValidatorRules/index' {
2032
+ import { FormInstance, FormItemProps } from 'antd/lib/form';
2033
+ import FormItem from 'antd/lib/form/FormItem';
2034
+ import { PasswordFormItem } from '@authing/react-ui-components/components/ValidatorRules/PasswordFormItem';
2035
+ import { EmailFormItem, PhoneFormItem, UserNameFormItem } from '@authing/react-ui-components/components/ValidatorRules/ValidatorFormItem';
2036
+ export interface ValidatorFormItemProps extends FormItemProps {
2037
+ form?: FormInstance;
2038
+ checkRepeat?: boolean;
2039
+ }
2040
+ export interface ValidatorFormItemMetaProps extends ValidatorFormItemProps {
2041
+ form?: FormInstance;
2042
+ checkRepeat?: boolean;
2043
+ method: 'email' | 'phone' | 'username';
2044
+ }
2045
+ export interface PasswordFormItemProps extends FormItemProps {
2046
+ }
2047
+ export interface ICheckProps {
2048
+ check: (values: any) => void;
2049
+ }
2050
+ type InternalFormItemType = typeof FormItem;
2051
+ interface FormItemInterface extends InternalFormItemType {
2052
+ Password: typeof PasswordFormItem;
2053
+ Email: typeof EmailFormItem;
2054
+ Phone: typeof PhoneFormItem;
2055
+ UserName: typeof UserNameFormItem;
2056
+ }
2057
+ const CustomFormItem: FormItemInterface;
2058
+ export default CustomFormItem;
2059
+
1860
2060
  }
1861
2061
  declare module '@authing/react-ui-components/components/VerifyCodeInput/index' {
1862
2062
  import React, { FC } from 'react';
@@ -1878,7 +2078,8 @@ declare module '@authing/react-ui-components/components/_utils/GuardErrorCode' {
1878
2078
  INPUT_CAPTCHACODE = 2000,
1879
2079
  USER_EXISTENCE = 2026,
1880
2080
  LOGIN_INVALID = 2021,
1881
- PASSWORD_ERROR = 2333
2081
+ PASSWORD_ERROR = 2333,
2082
+ USER_NOT_EXIST = 2004
1882
2083
  }
1883
2084
 
1884
2085
  }
@@ -1889,15 +2090,23 @@ declare module '@authing/react-ui-components/components/_utils/clipboard' {
1889
2090
  declare module '@authing/react-ui-components/components/_utils/config' {
1890
2091
  import { IG2Config } from '@authing/react-ui-components/components/Type/index';
1891
2092
  import { ApplicationConfig } from '@authing/react-ui-components/components/AuthingGuard/api/index';
1892
- import { LoginConfig } from '@authing/react-ui-components/components/Login/props';
1893
- import { RegisterConfig } from '@authing/react-ui-components/components/Register/props';
1894
- export interface GuardConfig extends RegisterConfig, LoginConfig {
1895
- }
2093
+ import { GuardLocalConfig } from '@authing/react-ui-components/components/Guard/config';
1896
2094
  export const initConfig: (appId: string, config: Partial<IG2Config>, defaultConfig: IG2Config) => Promise<{
1897
- config: GuardConfig;
2095
+ config: GuardLocalConfig;
1898
2096
  publicConfig: ApplicationConfig;
1899
2097
  }>;
1900
2098
 
2099
+ }
2100
+ declare module '@authing/react-ui-components/components/_utils/context' {
2101
+ import React from 'react';
2102
+ import { ApplicationConfig } from '@authing/react-ui-components/components/AuthingGuard/api/index';
2103
+ export const createGuardContext: () => {
2104
+ Context: React.Context<ApplicationConfig | undefined>;
2105
+ Provider: React.Provider<ApplicationConfig | undefined>;
2106
+ Consumer: React.Consumer<ApplicationConfig | undefined>;
2107
+ };
2108
+ export const usePublicConfig: () => ApplicationConfig | undefined;
2109
+
1901
2110
  }
1902
2111
  declare module '@authing/react-ui-components/components/_utils/guradHttp' {
1903
2112
  export class GuardHttp {
@@ -1907,6 +2116,8 @@ declare module '@authing/react-ui-components/components/_utils/guradHttp' {
1907
2116
  private getRequestClient;
1908
2117
  setUserpoolId(userpoolId: string): void;
1909
2118
  setAppId(appId: string): void;
2119
+ setTenantId(tenantId: string): void;
2120
+ setBaseUrl(baseUrl: string): void;
1910
2121
  getHeaders: () => Record<string, string>;
1911
2122
  get: <T>(path: string, query?: Record<string, any>, config?: RequestInit | undefined) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingResponse<T>>;
1912
2123
  post: <T>(path: string, data: any, config?: {
@@ -1925,7 +2136,7 @@ declare module '@authing/react-ui-components/components/_utils/hooks/index' {
1925
2136
  import { GuardModuleType } from '@authing/react-ui-components/components/Guard/module';
1926
2137
  export const useChangeModule: () => (nextModuleType: GuardModuleType, nextData?: any) => void;
1927
2138
  export const useAppId: (appId?: string | undefined) => string;
1928
- export const useDebounce: (fn: any, delay: number) => (...args: any[]) => Promise<void>;
2139
+ export const useDebounce: (fn: any, delay: number) => (...args: any[]) => void;
1929
2140
 
1930
2141
  }
1931
2142
  declare module '@authing/react-ui-components/components/_utils/http' {
@@ -1941,7 +2152,11 @@ declare module '@authing/react-ui-components/components/_utils/http' {
1941
2152
  baseUrl: string;
1942
2153
  setBaseUrl(base: string): void;
1943
2154
  langHeader: string;
2155
+ tenantHeader: string;
2156
+ tenantId: string;
1944
2157
  setLangHeader(key: string | undefined): void;
2158
+ setTenantHeader(key: string | undefined): void;
2159
+ setTenantId(tenantId: string): void;
1945
2160
  };
1946
2161
  export interface AuthingResponse<T = any> {
1947
2162
  code: number;
@@ -1953,6 +2168,8 @@ declare module '@authing/react-ui-components/components/_utils/http' {
1953
2168
  declare module '@authing/react-ui-components/components/_utils/index' {
1954
2169
  import { Rule } from 'antd/lib/form';
1955
2170
  import qs from 'qs';
2171
+ import { User } from 'authing-js-sdk';
2172
+ import { ApplicationConfig, ComplateFiledsPlace } from '@authing/react-ui-components/components/AuthingGuard/api/index';
1956
2173
  export * from '@authing/react-ui-components/components/_utils/popupCenter';
1957
2174
  export * from '@authing/react-ui-components/components/_utils/clipboard';
1958
2175
  export const VALIDATE_PATTERN: {
@@ -1960,12 +2177,14 @@ declare module '@authing/react-ui-components/components/_utils/index' {
1960
2177
  readonly phone: RegExp;
1961
2178
  readonly ip: RegExp;
1962
2179
  readonly host: RegExp;
2180
+ readonly username: RegExp;
1963
2181
  };
1964
2182
  export const validate: (type: keyof typeof VALIDATE_PATTERN, val: string) => boolean;
1965
2183
  export const getRequiredRules: (msg: string) => Rule[];
2184
+ export const fieldRequiredRule: (fieldRequiredRule: string) => Rule[];
1966
2185
  export function getDeviceName(): string | null;
1967
2186
  export type STYLE_RECORD_KEY = 'appConfig' | 'userConfig';
1968
- export const insertStyles: (styles: string | any, recordKey: STYLE_RECORD_KEY) => void;
2187
+ export const insertStyles: (styles: string | any, recordKey?: "userConfig" | "appConfig" | undefined) => void;
1969
2188
  export const removeStyles: (recordKey: STYLE_RECORD_KEY) => void;
1970
2189
  export const useTitle: (title: string, prefix?: string | undefined) => void;
1971
2190
  export const getClassnames: (classnames: (string | boolean | undefined)[]) => string;
@@ -2002,6 +2221,8 @@ declare module '@authing/react-ui-components/components/_utils/index' {
2002
2221
  }>;
2003
2222
  export const getSymbolTypeLength: (pwd: string) => number;
2004
2223
  export const getPasswordValidate: (strength?: PasswordStrength, customPasswordStrength?: any) => Rule[];
2224
+ export const sleep: (delay: number) => Promise<unknown>;
2225
+ export const shoudGoToComplete: (user: User, contextType: ComplateFiledsPlace, config: ApplicationConfig | undefined) => boolean;
2005
2226
 
2006
2227
  }
2007
2228
  declare module '@authing/react-ui-components/components/_utils/locales/en/index' {
@@ -2115,13 +2336,397 @@ declare module '@authing/react-ui-components/components/context/module/context'
2115
2336
 
2116
2337
  }
2117
2338
  declare module '@authing/react-ui-components/components/index' {
2118
- import { AuthingGuard } from '@authing/react-ui-components/components/AuthingGuard/index';
2339
+ export * from '@authing/react-ui-components/components/_utils/config';
2340
+ export type { AuthenticationClientOptions } from 'authing-js-sdk';
2119
2341
  export * from '@authing/react-ui-components/components/AuthingGuard/types/index';
2120
2342
  export * from '@authing/react-ui-components/components/AuthingGuard/hooks/index';
2121
- export type { AuthenticationClientOptions } from 'authing-js-sdk';
2122
- export { AuthingGuard };
2123
- export type { GuardProps } from '@authing/react-ui-components/components/Guard/index';
2124
- export { default as Guard } from '@authing/react-ui-components/components/Guard/index';
2343
+ export * from '@authing/react-ui-components/components/AuthingGuard/index';
2344
+ export * from '@authing/react-ui-components/components/Guard/index';
2345
+ export * from '@authing/react-ui-components/components/Type/index';
2346
+ export * from '@authing/react-ui-components/components/version/index';
2347
+
2348
+ }
2349
+ declare module '@authing/react-ui-components/components/version/index' {
2350
+ import version from '@authing/react-ui-components/components/version/version';
2351
+ export default version;
2352
+
2353
+ }
2354
+ declare module '@authing/react-ui-components/components/version/version' {
2355
+ const _default: "3.0.0-rc.0";
2356
+ export default _default;
2357
+
2358
+ }
2359
+ declare module '@authing/react-ui-components/config/antdReplacer' {
2360
+ export function antdScopeReplacerFn(node: any): void;
2361
+
2362
+ }
2363
+ declare module '@authing/react-ui-components/config/env' {
2364
+ export = getClientEnvironment;
2365
+ function getClientEnvironment(publicUrl: any): {
2366
+ raw: {
2367
+ NODE_ENV: "development" | "production" | "test";
2368
+ PUBLIC_URL: any;
2369
+ WDS_SOCKET_HOST: string | undefined;
2370
+ WDS_SOCKET_PATH: string | undefined;
2371
+ WDS_SOCKET_PORT: string | undefined;
2372
+ FAST_REFRESH: boolean;
2373
+ };
2374
+ stringified: {
2375
+ 'process.env': {};
2376
+ };
2377
+ };
2378
+
2379
+ }
2380
+ declare module '@authing/react-ui-components/config/getHttpsConfig' {
2381
+ export = getHttpsConfig;
2382
+ function getHttpsConfig(): boolean | {
2383
+ cert: Buffer;
2384
+ key: Buffer;
2385
+ };
2386
+
2387
+ }
2388
+ declare module '@authing/react-ui-components/config/jest/cssTransform' {
2389
+ export function process(): string;
2390
+ export function process(): string;
2391
+ export function getCacheKey(): string;
2392
+ export function getCacheKey(): string;
2393
+
2394
+ }
2395
+ declare module '@authing/react-ui-components/config/jest/fileTransform' {
2396
+ export function process(src: any, filename: any): string;
2397
+ export function process(src: any, filename: any): string;
2398
+
2399
+ }
2400
+ declare module '@authing/react-ui-components/config/modules' {
2401
+ export const additionalModulePaths: string[] | "" | null;
2402
+ export const hasTsConfig: boolean;
2403
+ export const webpackAliases: {
2404
+ src?: undefined;
2405
+ } | {
2406
+ src: string;
2407
+ } | undefined;
2408
+ export const jestAliases: {
2409
+ '^src/(.*)$'?: undefined;
2410
+ } | {
2411
+ '^src/(.*)$': string;
2412
+ } | undefined;
2413
+
2414
+ }
2415
+ declare module '@authing/react-ui-components/config/paths' {
2416
+ export const publicUrlOrPath: any;
2417
+ export const moduleFileExtensions: string[];
2418
+ export const dotenv: string;
2419
+ export const appPath: string;
2420
+ export const appBuild: string;
2421
+ export const appPublic: string;
2422
+ export const appHtml: string;
2423
+ export const appIndexJs: any;
2424
+ export const appPackageJson: string;
2425
+ export const appSrc: string;
2426
+ export const appTsConfig: string;
2427
+ export const appJsConfig: string;
2428
+ export const yarnLockFile: string;
2429
+ export const testsSetup: any;
2430
+ export const proxySetup: string;
2431
+ export const appNodeModules: string;
2432
+ export const swSrc: any;
2433
+ export const componentsIndexJs: string;
2434
+ export const libBuild: string;
2435
+
2436
+ }
2437
+ declare module '@authing/react-ui-components/config/pnpTs' {
2438
+ export function resolveModuleName(typescript: any, moduleName: any, containingFile: any, compilerOptions: any, resolutionHost: any): import("typescript").ResolvedModuleWithFailedLookupLocations;
2439
+ export function resolveTypeReferenceDirective(typescript: any, moduleName: any, containingFile: any, compilerOptions: any, resolutionHost: any): import("typescript").ResolvedModuleWithFailedLookupLocations;
2440
+
2441
+ }
2442
+ declare module '@authing/react-ui-components/config/webpack.config' {
2443
+ function _exports(webpackEnv: any): {
2444
+ mode: string | false;
2445
+ bail: boolean;
2446
+ devtool: string | boolean;
2447
+ externals: string[] | undefined;
2448
+ entry: any;
2449
+ output: {
2450
+ library: string | undefined;
2451
+ libraryTarget: string | undefined;
2452
+ path: string | undefined;
2453
+ pathinfo: boolean;
2454
+ filename: (chunkData: any) => false | "index.min.js" | "static/js/[name].[contenthash:8].js" | "static/js/bundle.js";
2455
+ futureEmitAssets: boolean;
2456
+ chunkFilename: string | false | undefined;
2457
+ publicPath: any;
2458
+ devtoolModuleFilenameTemplate: false | ((info: any) => string) | undefined;
2459
+ jsonpFunction: string | undefined;
2460
+ globalObject: string;
2461
+ };
2462
+ optimization: {
2463
+ minimize: boolean;
2464
+ minimizer: any[];
2465
+ splitChunks: {
2466
+ cacheGroups: {
2467
+ default: boolean;
2468
+ };
2469
+ chunks?: undefined;
2470
+ name?: undefined;
2471
+ } | {
2472
+ chunks: string;
2473
+ name: boolean;
2474
+ cacheGroups?: undefined;
2475
+ };
2476
+ runtimeChunk: false | {
2477
+ name: (entrypoint: any) => string;
2478
+ };
2479
+ };
2480
+ resolve: {
2481
+ modules: string[];
2482
+ extensions: string[];
2483
+ alias: {
2484
+ src?: undefined;
2485
+ 'react-dom$'?: string;
2486
+ 'scheduler/tracing'?: string;
2487
+ 'react-native': string;
2488
+ } | {
2489
+ src: string;
2490
+ 'react-dom$'?: string;
2491
+ 'scheduler/tracing'?: string;
2492
+ 'react-native': string;
2493
+ };
2494
+ plugins: any[];
2495
+ };
2496
+ resolveLoader: {
2497
+ plugins: any[];
2498
+ };
2499
+ module: {
2500
+ strictExportPresence: boolean;
2501
+ rules: ({
2502
+ parser: {
2503
+ requireEnsure: boolean;
2504
+ };
2505
+ oneOf?: undefined;
2506
+ } | {
2507
+ oneOf: ({
2508
+ test: RegExp[];
2509
+ loader: string;
2510
+ options: {
2511
+ limit: number;
2512
+ mimetype: string;
2513
+ name: string;
2514
+ customize?: undefined;
2515
+ plugins?: undefined;
2516
+ cacheDirectory?: undefined;
2517
+ cacheCompression?: undefined;
2518
+ compact?: undefined;
2519
+ babelrc?: undefined;
2520
+ configFile?: undefined;
2521
+ presets?: undefined;
2522
+ sourceMaps?: undefined;
2523
+ inputSourceMap?: undefined;
2524
+ };
2525
+ include?: undefined;
2526
+ exclude?: undefined;
2527
+ use?: undefined;
2528
+ sideEffects?: undefined;
2529
+ } | {
2530
+ test: RegExp[];
2531
+ loader: string;
2532
+ options: {
2533
+ limit: number;
2534
+ name: string;
2535
+ mimetype?: undefined;
2536
+ customize?: undefined;
2537
+ plugins?: undefined;
2538
+ cacheDirectory?: undefined;
2539
+ cacheCompression?: undefined;
2540
+ compact?: undefined;
2541
+ babelrc?: undefined;
2542
+ configFile?: undefined;
2543
+ presets?: undefined;
2544
+ sourceMaps?: undefined;
2545
+ inputSourceMap?: undefined;
2546
+ };
2547
+ include?: undefined;
2548
+ exclude?: undefined;
2549
+ use?: undefined;
2550
+ sideEffects?: undefined;
2551
+ } | {
2552
+ test: RegExp;
2553
+ include: string;
2554
+ loader: string;
2555
+ options: {
2556
+ customize: string;
2557
+ plugins: (string | false | (string | {
2558
+ loaderMap: {
2559
+ svg: {
2560
+ ReactComponent: string;
2561
+ };
2562
+ };
2563
+ })[] | (string | {
2564
+ libraryName: string;
2565
+ style: boolean;
2566
+ })[])[];
2567
+ cacheDirectory: boolean;
2568
+ cacheCompression: boolean;
2569
+ compact: boolean;
2570
+ limit?: undefined;
2571
+ mimetype?: undefined;
2572
+ name?: undefined;
2573
+ babelrc?: undefined;
2574
+ configFile?: undefined;
2575
+ presets?: undefined;
2576
+ sourceMaps?: undefined;
2577
+ inputSourceMap?: undefined;
2578
+ };
2579
+ exclude?: undefined;
2580
+ use?: undefined;
2581
+ sideEffects?: undefined;
2582
+ } | {
2583
+ test: RegExp;
2584
+ exclude: RegExp;
2585
+ loader: string;
2586
+ options: {
2587
+ babelrc: boolean;
2588
+ configFile: boolean;
2589
+ compact: boolean;
2590
+ presets: (string | {
2591
+ helpers: boolean;
2592
+ })[][];
2593
+ cacheDirectory: boolean;
2594
+ cacheCompression: boolean;
2595
+ sourceMaps: boolean;
2596
+ inputSourceMap: boolean;
2597
+ limit?: undefined;
2598
+ mimetype?: undefined;
2599
+ name?: undefined;
2600
+ customize?: undefined;
2601
+ plugins?: undefined;
2602
+ };
2603
+ include?: undefined;
2604
+ use?: undefined;
2605
+ sideEffects?: undefined;
2606
+ } | {
2607
+ test: RegExp;
2608
+ exclude: RegExp;
2609
+ use: (string | false | {
2610
+ loader: any;
2611
+ options: {
2612
+ publicPath: string;
2613
+ } | {
2614
+ publicPath?: undefined;
2615
+ };
2616
+ } | {
2617
+ loader: string;
2618
+ options: any;
2619
+ })[];
2620
+ sideEffects: boolean;
2621
+ loader?: undefined;
2622
+ options?: undefined;
2623
+ include?: undefined;
2624
+ } | {
2625
+ test: RegExp;
2626
+ use: (string | false | {
2627
+ loader: any;
2628
+ options: {
2629
+ publicPath: string;
2630
+ } | {
2631
+ publicPath?: undefined;
2632
+ };
2633
+ } | {
2634
+ loader: string;
2635
+ options: any;
2636
+ })[];
2637
+ loader?: undefined;
2638
+ options?: undefined;
2639
+ include?: undefined;
2640
+ exclude?: undefined;
2641
+ sideEffects?: undefined;
2642
+ } | {
2643
+ loader: string;
2644
+ exclude: RegExp[];
2645
+ options: {
2646
+ name: string;
2647
+ limit?: undefined;
2648
+ mimetype?: undefined;
2649
+ customize?: undefined;
2650
+ plugins?: undefined;
2651
+ cacheDirectory?: undefined;
2652
+ cacheCompression?: undefined;
2653
+ compact?: undefined;
2654
+ babelrc?: undefined;
2655
+ configFile?: undefined;
2656
+ presets?: undefined;
2657
+ sourceMaps?: undefined;
2658
+ inputSourceMap?: undefined;
2659
+ };
2660
+ test?: undefined;
2661
+ include?: undefined;
2662
+ use?: undefined;
2663
+ sideEffects?: undefined;
2664
+ })[];
2665
+ parser?: undefined;
2666
+ })[];
2667
+ };
2668
+ plugins: any[];
2669
+ node: {
2670
+ module: string;
2671
+ dgram: string;
2672
+ dns: string;
2673
+ fs: string;
2674
+ http2: string;
2675
+ net: string;
2676
+ tls: string;
2677
+ child_process: string;
2678
+ crypto: string;
2679
+ Buffer: boolean;
2680
+ };
2681
+ performance: boolean;
2682
+ };
2683
+ export = _exports;
2684
+
2685
+ }
2686
+ declare module '@authing/react-ui-components/config/webpackDevServer.config' {
2687
+ function _exports(proxy: any, allowedHost: any): {
2688
+ disableHostCheck: boolean;
2689
+ compress: boolean;
2690
+ clientLogLevel: string;
2691
+ contentBase: string;
2692
+ contentBasePublicPath: any;
2693
+ watchContentBase: boolean;
2694
+ hot: boolean;
2695
+ transportMode: string;
2696
+ injectClient: boolean;
2697
+ sockHost: string | undefined;
2698
+ sockPath: string | undefined;
2699
+ sockPort: string | undefined;
2700
+ publicPath: any;
2701
+ quiet: boolean;
2702
+ watchOptions: {
2703
+ ignored: any;
2704
+ };
2705
+ https: boolean | {
2706
+ cert: Buffer;
2707
+ key: Buffer;
2708
+ };
2709
+ host: string;
2710
+ overlay: boolean;
2711
+ historyApiFallback: {
2712
+ disableDotRule: boolean;
2713
+ index: any;
2714
+ };
2715
+ public: any;
2716
+ proxy: any;
2717
+ before(app: any, server: any): void;
2718
+ after(app: any): void;
2719
+ };
2720
+ export = _exports;
2721
+
2722
+ }
2723
+ declare module '@authing/react-ui-components/examples' {
2724
+ export {};
2725
+
2726
+ }
2727
+ declare module '@authing/react-ui-components/index' {
2728
+ const _exports: typeof import("@authing/react-ui-components/components/index");
2729
+ export = _exports;
2125
2730
 
2126
2731
  }
2127
2732
  declare module '@authing/react-ui-components/reportWebVitals' {
@@ -2129,10 +2734,52 @@ declare module '@authing/react-ui-components/reportWebVitals' {
2129
2734
  const reportWebVitals: (onPerfEntry?: ReportHandler | undefined) => void;
2130
2735
  export default reportWebVitals;
2131
2736
 
2737
+ }
2738
+ declare module '@authing/react-ui-components/scripts/build' {
2739
+ export {};
2740
+
2741
+ }
2742
+ declare module '@authing/react-ui-components/scripts/generate-version' {
2743
+ export {};
2744
+
2745
+ }
2746
+ declare module '@authing/react-ui-components/scripts/lib' {
2747
+ export {};
2748
+
2749
+ }
2750
+ declare module '@authing/react-ui-components/scripts/pre-publish' {
2751
+ export {};
2752
+
2753
+ }
2754
+ declare module '@authing/react-ui-components/scripts/publish' {
2755
+ export {};
2756
+
2757
+ }
2758
+ declare module '@authing/react-ui-components/scripts/start' {
2759
+ export {};
2760
+
2761
+ }
2762
+ declare module '@authing/react-ui-components/scripts/tag' {
2763
+ export {};
2764
+
2765
+ }
2766
+ declare module '@authing/react-ui-components/scripts/test' {
2767
+ export {};
2768
+
2769
+ }
2770
+ declare module '@authing/react-ui-components/scripts/utils/is-guard-publish' {
2771
+ function _exports(): any;
2772
+ export = _exports;
2773
+
2132
2774
  }
2133
2775
  declare module '@authing/react-ui-components/setupTests' {
2134
2776
  import '@testing-library/jest-dom';
2135
2777
 
2778
+ }
2779
+ declare module '@authing/react-ui-components/vite.config' {
2780
+ const _default: import("vite").UserConfigExport;
2781
+ export default _default;
2782
+
2136
2783
  }
2137
2784
  declare module '@authing/react-ui-components' {
2138
2785
  import main = require('@authing/react-ui-components/components/index');