@authing/react-ui-components 3.0.1-beta.1 → 3.0.1-beta.2

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 (88) hide show
  1. package/dist/index.min.js +1 -1
  2. package/es/AuthingGuard/AppMFALayout/index.js +1 -1
  3. package/es/AuthingGuard/Forms/ADLoginForm/index.js +1 -1
  4. package/es/AuthingGuard/Forms/EmailMfaVerifyForm/VerifyCodeForm.d.ts +1 -1
  5. package/es/AuthingGuard/Forms/EmailRegisterForm/index.d.ts +1 -1
  6. package/es/AuthingGuard/Forms/EmailRegisterForm/index.js +2 -2
  7. package/es/AuthingGuard/Forms/LdapLoginForm/index.d.ts +1 -1
  8. package/es/AuthingGuard/Forms/LdapLoginForm/index.js +3 -3
  9. package/es/AuthingGuard/Forms/LoginFormFooter/index.js +1 -1
  10. package/es/AuthingGuard/Forms/MfaResetCodeForm/index.d.ts +1 -1
  11. package/es/AuthingGuard/Forms/MfaVerifyForm/index.d.ts +1 -1
  12. package/es/AuthingGuard/Forms/PasswordLoginForm/index.d.ts +1 -1
  13. package/es/AuthingGuard/Forms/PasswordLoginForm/index.js +3 -3
  14. package/es/AuthingGuard/Forms/PhoneCodeLoginForm/index.d.ts +1 -1
  15. package/es/AuthingGuard/Forms/PhoneCodeLoginForm/index.js +3 -3
  16. package/es/AuthingGuard/Forms/PhoneRegisterForm/index.d.ts +1 -1
  17. package/es/AuthingGuard/Forms/PhoneRegisterForm/index.js +3 -3
  18. package/es/AuthingGuard/Forms/QrCodeLoginForm/index.d.ts +1 -1
  19. package/es/AuthingGuard/Forms/QrCodeLoginForm/index.js +1 -1
  20. package/es/AuthingGuard/Forms/RegisterFormFooter/index.js +1 -1
  21. package/es/AuthingGuard/Forms/ResetPwdForm/Footer.js +1 -1
  22. package/es/AuthingGuard/Forms/ResetPwdForm/Step1.d.ts +1 -1
  23. package/es/AuthingGuard/Forms/ResetPwdForm/Step1.js +1 -1
  24. package/es/AuthingGuard/Forms/ResetPwdForm/Step2.d.ts +1 -1
  25. package/es/AuthingGuard/Forms/ResetPwdForm/Step2.js +1 -1
  26. package/es/AuthingGuard/Forms/ResetPwdForm/Step3.d.ts +1 -1
  27. package/es/AuthingGuard/Forms/ResetPwdForm/Step4.js +1 -1
  28. package/es/AuthingGuard/Forms/ResetPwdForm/index.d.ts +1 -1
  29. package/es/AuthingGuard/Forms/SmsMfaVerifyForm/VerifyCodeForm.d.ts +1 -1
  30. package/es/AuthingGuard/Forms/SocialAndIdpLogin/index.d.ts +1 -1
  31. package/es/AuthingGuard/Forms/SocialAndIdpLogin/index.js +2 -2
  32. package/es/AuthingGuard/GuardLayout/index.d.ts +1 -1
  33. package/es/AuthingGuard/GuardLayout/index.js +8 -8
  34. package/es/AuthingGuard/LoginLayout/index.js +3 -3
  35. package/es/AuthingGuard/MfaLayout/index.js +1 -1
  36. package/es/AuthingGuard/RegisterLayout/index.js +3 -3
  37. package/es/AuthingGuard/ResetPwdLayout/index.js +1 -1
  38. package/es/AuthingGuard/api/appConfig.d.ts +1 -1
  39. package/es/AuthingGuard/constants.d.ts +1 -1
  40. package/es/AuthingGuard/constants.js +1 -1
  41. package/es/AuthingGuard/types/GuardConfig.d.ts +1 -1
  42. package/es/version/version.d.ts +1 -1
  43. package/es/version/version.js +1 -1
  44. package/lib/AuthingGuard/AppMFALayout/index.js +1 -1
  45. package/lib/AuthingGuard/Forms/ADLoginForm/index.js +1 -1
  46. package/lib/AuthingGuard/Forms/EmailMfaVerifyForm/VerifyCodeForm.d.ts +1 -1
  47. package/lib/AuthingGuard/Forms/EmailRegisterForm/index.d.ts +1 -1
  48. package/lib/AuthingGuard/Forms/EmailRegisterForm/index.js +2 -2
  49. package/lib/AuthingGuard/Forms/LdapLoginForm/index.d.ts +1 -1
  50. package/lib/AuthingGuard/Forms/LdapLoginForm/index.js +3 -3
  51. package/lib/AuthingGuard/Forms/LoginFormFooter/index.js +1 -1
  52. package/lib/AuthingGuard/Forms/MfaResetCodeForm/index.d.ts +1 -1
  53. package/lib/AuthingGuard/Forms/MfaVerifyForm/index.d.ts +1 -1
  54. package/lib/AuthingGuard/Forms/PasswordLoginForm/index.d.ts +1 -1
  55. package/lib/AuthingGuard/Forms/PasswordLoginForm/index.js +3 -3
  56. package/lib/AuthingGuard/Forms/PhoneCodeLoginForm/index.d.ts +1 -1
  57. package/lib/AuthingGuard/Forms/PhoneCodeLoginForm/index.js +3 -3
  58. package/lib/AuthingGuard/Forms/PhoneRegisterForm/index.d.ts +1 -1
  59. package/lib/AuthingGuard/Forms/PhoneRegisterForm/index.js +3 -3
  60. package/lib/AuthingGuard/Forms/QrCodeLoginForm/index.d.ts +1 -1
  61. package/lib/AuthingGuard/Forms/QrCodeLoginForm/index.js +1 -1
  62. package/lib/AuthingGuard/Forms/RegisterFormFooter/index.js +1 -1
  63. package/lib/AuthingGuard/Forms/ResetPwdForm/Footer.js +1 -1
  64. package/lib/AuthingGuard/Forms/ResetPwdForm/Step1.d.ts +1 -1
  65. package/lib/AuthingGuard/Forms/ResetPwdForm/Step1.js +1 -1
  66. package/lib/AuthingGuard/Forms/ResetPwdForm/Step2.d.ts +1 -1
  67. package/lib/AuthingGuard/Forms/ResetPwdForm/Step2.js +1 -1
  68. package/lib/AuthingGuard/Forms/ResetPwdForm/Step3.d.ts +1 -1
  69. package/lib/AuthingGuard/Forms/ResetPwdForm/Step4.js +1 -1
  70. package/lib/AuthingGuard/Forms/ResetPwdForm/index.d.ts +1 -1
  71. package/lib/AuthingGuard/Forms/SmsMfaVerifyForm/VerifyCodeForm.d.ts +1 -1
  72. package/lib/AuthingGuard/Forms/SocialAndIdpLogin/index.d.ts +1 -1
  73. package/lib/AuthingGuard/Forms/SocialAndIdpLogin/index.js +2 -2
  74. package/lib/AuthingGuard/GuardLayout/index.d.ts +1 -1
  75. package/lib/AuthingGuard/GuardLayout/index.js +8 -8
  76. package/lib/AuthingGuard/LoginLayout/index.js +3 -3
  77. package/lib/AuthingGuard/MfaLayout/index.js +1 -1
  78. package/lib/AuthingGuard/RegisterLayout/index.js +3 -3
  79. package/lib/AuthingGuard/ResetPwdLayout/index.js +1 -1
  80. package/lib/AuthingGuard/api/appConfig.d.ts +1 -1
  81. package/lib/AuthingGuard/constants.d.ts +1 -1
  82. package/lib/AuthingGuard/constants.js +1 -1
  83. package/lib/AuthingGuard/types/GuardConfig.d.ts +1 -1
  84. package/lib/index.css +188 -188
  85. package/lib/index.min.css +1 -1
  86. package/lib/version/version.d.ts +1 -1
  87. package/lib/version/version.js +1 -1
  88. package/package.json +6 -7
@@ -10,7 +10,7 @@ import _mapInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance
10
10
  import React, { useState } from 'react';
11
11
  import { useTranslation } from 'react-i18next';
12
12
  import { AuthingDropdown } from '../../AuthingDropdown';
13
- import { EmailMfaVerifyForm, SmsMfaVerifyForm } from '../../../components/AuthingGuard/Forms';
13
+ import { EmailMfaVerifyForm, SmsMfaVerifyForm } from '../Forms';
14
14
  import { useGuardContext } from '../../context/global/context';
15
15
  import { ApplicationMfaType, ApplicationMfaTypeLabel } from '../api';
16
16
  export var AppMfaLayout = function AppMfaLayout() {
@@ -12,7 +12,7 @@ import { UserOutlined, LockOutlined } from '@ant-design/icons';
12
12
  import React, { forwardRef, useImperativeHandle, useState } from 'react';
13
13
  import { useGuardContext } from '../../../context/global/context';
14
14
  import { LoginMethods } from '../../types';
15
- import { LoginFormFooter } from '../../../../components/AuthingGuard/Forms/LoginFormFooter';
15
+ import { LoginFormFooter } from '../LoginFormFooter';
16
16
  import { useTranslation } from 'react-i18next';
17
17
  import { getRequiredRules } from '../../../_utils';
18
18
  export var ADLoginForm = /*#__PURE__*/forwardRef(function (_ref, ref) {
@@ -1,3 +1,3 @@
1
1
  import { FC } from 'react';
2
- import { EmailMFAVerifyFormProps } from '../../../../components/AuthingGuard/types';
2
+ import { EmailMFAVerifyFormProps } from '../../types';
3
3
  export declare const VerifyCodeForm: FC<EmailMFAVerifyFormProps>;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import { FormInstance } from 'antd/lib/form';
3
- import { EmailRegisterFormProps } from '../../../../components/AuthingGuard/types';
3
+ import { EmailRegisterFormProps } from '../../types';
4
4
  export declare const EmailRegisterForm: React.ForwardRefExoticComponent<EmailRegisterFormProps & React.RefAttributes<FormInstance<any>>>;
@@ -14,8 +14,8 @@ import React, { forwardRef, useImperativeHandle, useState } from 'react';
14
14
  import { UserOutlined, LockOutlined } from '@ant-design/icons';
15
15
  import { getDeviceName, getRequiredRules, getUserRegisterParams, VALIDATE_PATTERN } from '../../../_utils';
16
16
  import { useGuardContext } from '../../../context/global/context';
17
- import { RegisterMethods } from '../../../../components/AuthingGuard/types';
18
- import { RegisterFormFooter } from '../../../../components/AuthingGuard/Forms/RegisterFormFooter';
17
+ import { RegisterMethods } from '../../types';
18
+ import { RegisterFormFooter } from '../RegisterFormFooter';
19
19
  import { useTranslation } from 'react-i18next';
20
20
  import { Agreements } from '../Agreements';
21
21
  export var EmailRegisterForm = /*#__PURE__*/forwardRef(function (_ref, ref) {
@@ -1,4 +1,4 @@
1
1
  import { FormInstance } from 'antd/lib/form';
2
2
  import React from 'react';
3
- import { PasswordLoginFormProps } from '../../../../components/AuthingGuard/types';
3
+ import { PasswordLoginFormProps } from '../../types';
4
4
  export declare const LdapLoginForm: React.ForwardRefExoticComponent<PasswordLoginFormProps & React.RefAttributes<FormInstance<any>>>;
@@ -14,9 +14,9 @@ import { UserOutlined, LockOutlined } from '@ant-design/icons';
14
14
  import React, { forwardRef, useImperativeHandle, useState } from 'react';
15
15
  import { getRequiredRules } from '../../../_utils';
16
16
  import { useGuardContext } from '../../../context/global/context';
17
- import { NEED_CAPTCHA } from '../../../../components/AuthingGuard/constants';
18
- import { LoginMethods } from '../../../../components/AuthingGuard/types';
19
- import { LoginFormFooter } from '../../../../components/AuthingGuard/Forms/LoginFormFooter';
17
+ import { NEED_CAPTCHA } from '../../constants';
18
+ import { LoginMethods } from '../../types';
19
+ import { LoginFormFooter } from '../LoginFormFooter';
20
20
  import { useTranslation } from 'react-i18next';
21
21
  export var LdapLoginForm = /*#__PURE__*/forwardRef(function (_ref, ref) {
22
22
  var onSuccess = _ref.onSuccess,
@@ -4,7 +4,7 @@ import "antd/lib/button/style";
4
4
  import _Button from "antd/lib/button";
5
5
  import React from 'react';
6
6
  import { useGuardContext } from '../../../context/global/context';
7
- import { GuardScenes } from '../../../../components/AuthingGuard/types';
7
+ import { GuardScenes } from '../../types';
8
8
  import { useTranslation } from 'react-i18next';
9
9
  export var LoginFormFooter = function LoginFormFooter(_ref) {
10
10
  var _config$text, _config$text$loginBtn, _config$text2, _config$text2$loginBt, _config$text3, _config$text3$loginBt, _config$text4, _config$text4$loginBt;
@@ -1,3 +1,3 @@
1
1
  import { FC } from 'react';
2
- import { MfaResetForm } from '../../../../components/AuthingGuard/types';
2
+ import { MfaResetForm } from '../../types';
3
3
  export declare const MfaResetCodeForm: FC<MfaResetForm>;
@@ -1,3 +1,3 @@
1
1
  import { FC } from 'react';
2
- import { MfaVerifyForm } from '../../../../components/AuthingGuard/types';
2
+ import { MfaVerifyForm } from '../../types';
3
3
  export declare const MFAVerifyForm: FC<MfaVerifyForm>;
@@ -1,4 +1,4 @@
1
1
  import { FormInstance } from 'antd/lib/form';
2
2
  import React from 'react';
3
- import { PasswordLoginFormProps } from '../../../../components/AuthingGuard/types';
3
+ import { PasswordLoginFormProps } from '../../types';
4
4
  export declare const PasswordLoginForm: React.ForwardRefExoticComponent<PasswordLoginFormProps & React.RefAttributes<FormInstance<any>>>;
@@ -18,9 +18,9 @@ import { UserOutlined, LockOutlined } from '@ant-design/icons';
18
18
  import React, { forwardRef, useImperativeHandle, useMemo, useState } from 'react';
19
19
  import { getRequiredRules, getUserRegisterParams } from '../../../_utils';
20
20
  import { useGuardContext } from '../../../context/global/context';
21
- import { NEED_CAPTCHA } from '../../../../components/AuthingGuard/constants';
22
- import { LoginMethods } from '../../../../components/AuthingGuard/types';
23
- import { LoginFormFooter } from '../../../../components/AuthingGuard/Forms/LoginFormFooter';
21
+ import { NEED_CAPTCHA } from '../../constants';
22
+ import { LoginMethods } from '../../types';
23
+ import { LoginFormFooter } from '../LoginFormFooter';
24
24
  import { useTranslation } from 'react-i18next';
25
25
  import { requestClient } from '../../../_utils/http';
26
26
  export var PasswordLoginForm = /*#__PURE__*/forwardRef(function (_ref, ref) {
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import { FormInstance } from 'antd/lib/form';
3
- import { PhoneCodeLoginFormProps } from '../../../../components/AuthingGuard/types';
3
+ import { PhoneCodeLoginFormProps } from '../../types';
4
4
  export declare const PhoneCodeLoginForm: React.ForwardRefExoticComponent<PhoneCodeLoginFormProps & React.RefAttributes<FormInstance<any>>>;
@@ -14,9 +14,9 @@ import React, { forwardRef, useImperativeHandle, useState } from 'react';
14
14
  import { UserOutlined, SafetyOutlined } from '@ant-design/icons';
15
15
  import { getRequiredRules, getUserRegisterParams, VALIDATE_PATTERN } from '../../../_utils';
16
16
  import { useGuardContext } from '../../../context/global/context';
17
- import { LoginMethods } from '../../../../components/AuthingGuard/types';
18
- import { SendPhoneCode } from '../../../../components/AuthingGuard/Forms/SendPhoneCode';
19
- import { LoginFormFooter } from '../../../../components/AuthingGuard/Forms/LoginFormFooter';
17
+ import { LoginMethods } from '../../types';
18
+ import { SendPhoneCode } from '../SendPhoneCode';
19
+ import { LoginFormFooter } from '../LoginFormFooter';
20
20
  import { useTranslation } from 'react-i18next';
21
21
  export var PhoneCodeLoginForm = /*#__PURE__*/forwardRef(function (_ref, ref) {
22
22
  var _context;
@@ -1,4 +1,4 @@
1
1
  import { FormInstance } from 'antd/lib/form';
2
2
  import React from 'react';
3
- import { PhoneRegisterFormProps } from '../../../../components/AuthingGuard/types';
3
+ import { PhoneRegisterFormProps } from '../../types';
4
4
  export declare const PhoneRegisterForm: React.ForwardRefExoticComponent<PhoneRegisterFormProps & React.RefAttributes<FormInstance<any>>>;
@@ -13,10 +13,10 @@ import _regeneratorRuntime from "@babel/runtime-corejs3/regenerator";
13
13
  import React, { forwardRef, useImperativeHandle, useState } from 'react';
14
14
  import { UserOutlined, LockOutlined, SafetyOutlined } from '@ant-design/icons';
15
15
  import { useGuardContext } from '../../../context/global/context';
16
- import { RegisterMethods } from '../../../../components/AuthingGuard/types';
16
+ import { RegisterMethods } from '../../types';
17
17
  import { getDeviceName, getRequiredRules, getUserRegisterParams, VALIDATE_PATTERN } from '../../../_utils';
18
- import { SendPhoneCode } from '../../../../components/AuthingGuard/Forms/SendPhoneCode';
19
- import { RegisterFormFooter } from '../../../../components/AuthingGuard/Forms/RegisterFormFooter';
18
+ import { SendPhoneCode } from '../SendPhoneCode';
19
+ import { RegisterFormFooter } from '../RegisterFormFooter';
20
20
  import { useTranslation } from 'react-i18next';
21
21
  import { Agreements } from '../Agreements';
22
22
  export var PhoneRegisterForm = /*#__PURE__*/forwardRef(function (_ref, ref) {
@@ -1,3 +1,3 @@
1
1
  import { FC } from 'react';
2
- import { QrLoginFormProps } from '../../../../components/AuthingGuard/types';
2
+ import { QrLoginFormProps } from '../../types';
3
3
  export declare const QrCodeLoginForm: FC<QrLoginFormProps>;
@@ -16,7 +16,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
16
16
 
17
17
  import React, { useEffect, useMemo, useRef } from 'react';
18
18
  import { useGuardContext } from '../../../context/global/context';
19
- import { LoginMethods } from '../../../../components/AuthingGuard/types';
19
+ import { LoginMethods } from '../../types';
20
20
  export var QrCodeLoginForm = function QrCodeLoginForm(_ref) {
21
21
  var onFail = _ref.onFail,
22
22
  _onSuccess = _ref.onSuccess,
@@ -2,7 +2,7 @@ import "antd/lib/button/style";
2
2
  import _Button from "antd/lib/button";
3
3
  import React from 'react';
4
4
  import { useGuardContext } from '../../../context/global/context';
5
- import { GuardScenes } from '../../../../components/AuthingGuard/types';
5
+ import { GuardScenes } from '../../types';
6
6
  import { useTranslation } from 'react-i18next';
7
7
  export var RegisterFormFooter = function RegisterFormFooter(_ref) {
8
8
  var _config$text, _config$text$register, _config$text2, _config$text2$registe, _config$text3, _config$text3$registe, _config$text4, _config$text4$registe;
@@ -2,7 +2,7 @@ import "antd/lib/button/style";
2
2
  import _Button from "antd/lib/button";
3
3
  import React from 'react';
4
4
  import { useGuardContext } from '../../../context/global/context';
5
- import { GuardScenes } from '../../../../components/AuthingGuard/types';
5
+ import { GuardScenes } from '../../types';
6
6
  import { useTranslation } from 'react-i18next';
7
7
  export var ResetPwdFormFooter = function ResetPwdFormFooter() {
8
8
  var _useGuardContext = useGuardContext(),
@@ -1,3 +1,3 @@
1
1
  import { FC } from 'react';
2
- import { ResetPasswordStep1Props } from '../../../../components/AuthingGuard/types';
2
+ import { ResetPasswordStep1Props } from '../../types';
3
3
  export declare const ResetPasswordStep1: FC<ResetPasswordStep1Props>;
@@ -12,7 +12,7 @@ import _Promise from "@babel/runtime-corejs3/core-js-stable/promise";
12
12
  import _regeneratorRuntime from "@babel/runtime-corejs3/regenerator";
13
13
  import React, { useState } from 'react';
14
14
  import { validate } from '../../../_utils';
15
- import { ResetPwdMethods } from '../../../../components/AuthingGuard/types';
15
+ import { ResetPwdMethods } from '../../types';
16
16
  import { useGuardContext } from '../../../context/global/context';
17
17
  import { EmailScene } from 'authing-js-sdk';
18
18
  import { useTranslation } from 'react-i18next';
@@ -1,3 +1,3 @@
1
1
  import { FC } from 'react';
2
- import { ResetPasswordStep2Props } from '../../../../components/AuthingGuard/types';
2
+ import { ResetPasswordStep2Props } from '../../types';
3
3
  export declare const ResetPasswordStep2: FC<ResetPasswordStep2Props>;
@@ -12,7 +12,7 @@ import React, { useState } from 'react';
12
12
  import { SafetyOutlined, LockOutlined, UserOutlined } from '@ant-design/icons';
13
13
  import { getRequiredRules } from '../../../_utils';
14
14
  import { useGuardContext } from '../../../context/global/context';
15
- import { SendPhoneCode } from '../../../../components/AuthingGuard/Forms/SendPhoneCode';
15
+ import { SendPhoneCode } from '../SendPhoneCode';
16
16
  import { useTranslation } from 'react-i18next';
17
17
  export var ResetPasswordStep2 = function ResetPasswordStep2(_ref) {
18
18
  var _context2, _context3;
@@ -1,3 +1,3 @@
1
1
  import { FC } from 'react';
2
- import { ResetPasswordStep3Props } from '../../../../components/AuthingGuard/types';
2
+ import { ResetPasswordStep3Props } from '../../types';
3
3
  export declare const ResetPasswordStep3: FC<ResetPasswordStep3Props>;
@@ -2,7 +2,7 @@ import _slicedToArray from "@babel/runtime-corejs3/helpers/esm/slicedToArray";
2
2
  import _setInterval from "@babel/runtime-corejs3/core-js-stable/set-interval";
3
3
  import { useGuardContext } from '../../../context/global/context';
4
4
  import React, { useEffect, useRef, useState } from 'react';
5
- import { GuardScenes } from '../../../../components/AuthingGuard/types';
5
+ import { GuardScenes } from '../../types';
6
6
  import { useTranslation } from 'react-i18next';
7
7
  var TIME = 3;
8
8
  export var ResetPasswordStep4 = function ResetPasswordStep4() {
@@ -1,3 +1,3 @@
1
1
  import { FC } from 'react';
2
- import { ResetPasswordFormProps } from '../../../../components/AuthingGuard/types';
2
+ import { ResetPasswordFormProps } from '../../types';
3
3
  export declare const ResetPasswordForm: FC<ResetPasswordFormProps>;
@@ -1,3 +1,3 @@
1
1
  import { FC } from 'react';
2
- import { SmsMFAVerifyFormProps } from '../../../../components/AuthingGuard/types';
2
+ import { SmsMFAVerifyFormProps } from '../../types';
3
3
  export declare const VerifyCodeForm: FC<SmsMFAVerifyFormProps>;
@@ -1,3 +1,3 @@
1
1
  import { FC } from 'react';
2
- import { SocialAndIdpLoginProps } from '../../../../components/AuthingGuard/types';
2
+ import { SocialAndIdpLoginProps } from '../../types';
3
3
  export declare const SocialAndIdpLogin: FC<SocialAndIdpLoginProps>;
@@ -20,8 +20,8 @@ import shortid from 'shortid';
20
20
  import React, { useEffect } from 'react';
21
21
  import { isWechatBrowser, popupCenter } from '../../../_utils';
22
22
  import { useGuardContext } from '../../../context/global/context';
23
- import { APP_MFA_CODE, OTP_MFA_CODE } from '../../../../components/AuthingGuard/constants';
24
- import { Protocol } from '../../../../components/AuthingGuard/types';
23
+ import { APP_MFA_CODE, OTP_MFA_CODE } from '../../constants';
24
+ import { Protocol } from '../../types';
25
25
  import { requestClient } from '../../../_utils/http';
26
26
  import { IconFont } from '../../IconFont';
27
27
  import { useScreenSize } from '../../hooks/useScreenSize';
@@ -1,5 +1,5 @@
1
1
  import React, { FC } from 'react';
2
- import { UserConfig, Lang } from '../../../components/AuthingGuard/types';
2
+ import { UserConfig, Lang } from '../types';
3
3
  export declare const GuardLayout: FC<{
4
4
  visible?: boolean;
5
5
  className?: string;
@@ -22,14 +22,14 @@ import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object
22
22
  import React, { useCallback, useEffect, useMemo, useState } from 'react';
23
23
  import { getClassnames, insertStyles, deepMerge, removeStyles } from '../../_utils';
24
24
  import { useGuardContext } from '../../context/global/context';
25
- import { GuardHeader } from '../../../components/AuthingGuard/Header';
26
- import { MfaLayout } from '../../../components/AuthingGuard/MfaLayout';
27
- import { LoginLayout } from '../../../components/AuthingGuard/LoginLayout';
28
- import { defaultGuardConfig, HIDE_SOCIALS } from '../../../components/AuthingGuard/constants';
29
- import { RegisterLayout } from '../../../components/AuthingGuard/RegisterLayout';
30
- import { ResetPwdLayout } from '../../../components/AuthingGuard/ResetPwdLayout';
31
- import { trackSession, fetchAppConfig } from '../../../components/AuthingGuard/api';
32
- import { GuardMode, GuardScenes } from '../../../components/AuthingGuard/types';
25
+ import { GuardHeader } from '../Header';
26
+ import { MfaLayout } from '../MfaLayout';
27
+ import { LoginLayout } from '../LoginLayout';
28
+ import { defaultGuardConfig, HIDE_SOCIALS } from '../constants';
29
+ import { RegisterLayout } from '../RegisterLayout';
30
+ import { ResetPwdLayout } from '../ResetPwdLayout';
31
+ import { trackSession, fetchAppConfig } from '../api';
32
+ import { GuardMode, GuardScenes } from '../types';
33
33
  import { CompleteUserInfoLayout } from '../CompleteUserInfoLayout';
34
34
  import { AppMfaLayout } from '../AppMFALayout';
35
35
  import { IconFont } from '../IconFont';
@@ -23,10 +23,10 @@ import _mapInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance
23
23
  import _findInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/find";
24
24
  import React, { useCallback, useMemo, useRef } from 'react';
25
25
  import { useGuardContext } from '../../context/global/context';
26
- import { ADLoginForm, LdapLoginForm, QrCodeLoginForm, SocialAndIdpLogin, PasswordLoginForm, PhoneCodeLoginForm } from '../../../components/AuthingGuard/Forms';
27
- import { OTP_MFA_CODE, APP_MFA_CODE, LOGIN_METHODS_MAP } from '../../../components/AuthingGuard/constants';
26
+ import { ADLoginForm, LdapLoginForm, QrCodeLoginForm, SocialAndIdpLogin, PasswordLoginForm, PhoneCodeLoginForm } from '../Forms';
27
+ import { OTP_MFA_CODE, APP_MFA_CODE, LOGIN_METHODS_MAP } from '../constants';
28
28
  import { AuthingTabs } from '../../AuthingTabs';
29
- import { GuardScenes, LoginMethods } from '../../../components/AuthingGuard/types';
29
+ import { GuardScenes, LoginMethods } from '../types';
30
30
  import { useTranslation } from 'react-i18next';
31
31
 
32
32
  var useFormActions = function useFormActions() {
@@ -5,7 +5,7 @@ import _message from "antd/lib/message";
5
5
  import _slicedToArray from "@babel/runtime-corejs3/helpers/esm/slicedToArray";
6
6
  import React, { useState } from 'react';
7
7
  import { Steps } from './Steps';
8
- import { MfaResetCodeForm, MFAVerifyForm } from '../../../components/AuthingGuard/Forms';
8
+ import { MfaResetCodeForm, MFAVerifyForm } from '../Forms';
9
9
  import { useGuardContext } from '../../context/global/context';
10
10
  import { useTranslation } from 'react-i18next';
11
11
  export var MfaLayout = function MfaLayout() {
@@ -18,10 +18,10 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
18
18
 
19
19
  import React from 'react';
20
20
  import { useGuardContext } from '../../context/global/context';
21
- import { GuardScenes, LoginMethods, RegisterMethods } from '../../../components/AuthingGuard/types';
21
+ import { GuardScenes, LoginMethods, RegisterMethods } from '../types';
22
22
  import { AuthingTabs } from '../../AuthingTabs';
23
- import { REGISTER_METHODS_MAP } from '../../../components/AuthingGuard/constants';
24
- import { EmailRegisterForm, PhoneRegisterForm } from '../../../components/AuthingGuard/Forms';
23
+ import { REGISTER_METHODS_MAP } from '../constants';
24
+ import { EmailRegisterForm, PhoneRegisterForm } from '../Forms';
25
25
  import { useTranslation } from 'react-i18next';
26
26
  export var RegisterLayout = function RegisterLayout() {
27
27
  var _REGISTER_FORM_MAP, _context;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { useGuardContext } from '../../context/global/context';
3
- import { ResetPasswordForm } from '../../../components/AuthingGuard/Forms';
3
+ import { ResetPasswordForm } from '../Forms';
4
4
  export var ResetPwdLayout = function ResetPwdLayout() {
5
5
  var _useGuardContext = useGuardContext(),
6
6
  _useGuardContext$stat = _useGuardContext.state,
@@ -1,4 +1,4 @@
1
- import { Lang, LoginMethods, Protocol } from '../../../components/AuthingGuard/types';
1
+ import { Lang, LoginMethods, Protocol } from '../types';
2
2
  import { IAzureAdConnectionConfig, ICasConnectionConfig, IOAuthConnectionConfig, ISamlConnectionConfig, OIDCConnectionConfig, SocialConnectionItem } from './userPoolConfig';
3
3
  import { PasswordStrength } from '../../_utils';
4
4
  export declare enum ApplicationMfaType {
@@ -1,4 +1,4 @@
1
- import { UserConfig, LoginMethods, RegisterMethods, LocalesConfig } from '../../components/AuthingGuard/types';
1
+ import { UserConfig, LoginMethods, RegisterMethods, LocalesConfig } from './types';
2
2
  export declare const OTP_MFA_CODE = 1635;
3
3
  export declare const APP_MFA_CODE = 1636;
4
4
  export declare const NEED_CAPTCHA = 2000;
@@ -1,5 +1,5 @@
1
1
  import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
2
- import { GuardMode, GuardScenes, LoginMethods, RegisterMethods } from '../../components/AuthingGuard/types';
2
+ import { GuardMode, GuardScenes, LoginMethods, RegisterMethods } from './types';
3
3
  import { i18n } from '../_utils/locales'; // 个人版 OTP MFA 的 error code
4
4
 
5
5
  export var OTP_MFA_CODE = 1635; // 企业版手机和短信验证吗 MFA 的 error code
@@ -1,6 +1,6 @@
1
1
  import { AuthenticationClient, AuthenticationClientOptions, CommonMessage, SocialConnectionProvider, User } from 'authing-js-sdk';
2
2
  import { QrCodeAuthenticationClient } from 'authing-js-sdk/build/main/lib/authentication/QrCodeAuthenticationClient';
3
- import { SocialConnectionItem, EnterpriseConnectionItem, ApplicationConfig, PasswordLoginMethods, Agreement, QrcodeTabsSettings } from '../../../components/AuthingGuard/api';
3
+ import { SocialConnectionItem, EnterpriseConnectionItem, ApplicationConfig, PasswordLoginMethods, Agreement, QrcodeTabsSettings } from '../api';
4
4
  import { Lang } from './Locales';
5
5
  export type { AuthenticationClient, CommonMessage, User } from 'authing-js-sdk';
6
6
  export declare enum GuardMode {
@@ -1,2 +1,2 @@
1
- declare const _default: "3.0.1-beta.1";
1
+ declare const _default: "3.0.1-beta.2";
2
2
  export default _default;
@@ -1 +1 @@
1
- export default '3.0.1-beta.1';
1
+ export default '3.0.1-beta.2';
@@ -21,7 +21,7 @@ var _reactI18next = require("react-i18next");
21
21
 
22
22
  var _AuthingDropdown = require("../../AuthingDropdown");
23
23
 
24
- var _Forms = require("../../../components/AuthingGuard/Forms");
24
+ var _Forms = require("../Forms");
25
25
 
26
26
  var _context = require("../../context/global/context");
27
27
 
@@ -25,7 +25,7 @@ var _context2 = require("../../../context/global/context");
25
25
 
26
26
  var _types = require("../../types");
27
27
 
28
- var _LoginFormFooter = require("../../../../components/AuthingGuard/Forms/LoginFormFooter");
28
+ var _LoginFormFooter = require("../LoginFormFooter");
29
29
 
30
30
  var _reactI18next = require("react-i18next");
31
31
 
@@ -1,3 +1,3 @@
1
1
  import { FC } from 'react';
2
- import { EmailMFAVerifyFormProps } from '../../../../components/AuthingGuard/types';
2
+ import { EmailMFAVerifyFormProps } from '../../types';
3
3
  export declare const VerifyCodeForm: FC<EmailMFAVerifyFormProps>;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import { FormInstance } from 'antd/lib/form';
3
- import { EmailRegisterFormProps } from '../../../../components/AuthingGuard/types';
3
+ import { EmailRegisterFormProps } from '../../types';
4
4
  export declare const EmailRegisterForm: React.ForwardRefExoticComponent<EmailRegisterFormProps & React.RefAttributes<FormInstance<any>>>;
@@ -25,9 +25,9 @@ var _utils = require("../../../_utils");
25
25
 
26
26
  var _context2 = require("../../../context/global/context");
27
27
 
28
- var _types = require("../../../../components/AuthingGuard/types");
28
+ var _types = require("../../types");
29
29
 
30
- var _RegisterFormFooter = require("../../../../components/AuthingGuard/Forms/RegisterFormFooter");
30
+ var _RegisterFormFooter = require("../RegisterFormFooter");
31
31
 
32
32
  var _reactI18next = require("react-i18next");
33
33
 
@@ -1,4 +1,4 @@
1
1
  import { FormInstance } from 'antd/lib/form';
2
2
  import React from 'react';
3
- import { PasswordLoginFormProps } from '../../../../components/AuthingGuard/types';
3
+ import { PasswordLoginFormProps } from '../../types';
4
4
  export declare const LdapLoginForm: React.ForwardRefExoticComponent<PasswordLoginFormProps & React.RefAttributes<FormInstance<any>>>;
@@ -25,11 +25,11 @@ var _utils = require("../../../_utils");
25
25
 
26
26
  var _context2 = require("../../../context/global/context");
27
27
 
28
- var _constants = require("../../../../components/AuthingGuard/constants");
28
+ var _constants = require("../../constants");
29
29
 
30
- var _types = require("../../../../components/AuthingGuard/types");
30
+ var _types = require("../../types");
31
31
 
32
- var _LoginFormFooter = require("../../../../components/AuthingGuard/Forms/LoginFormFooter");
32
+ var _LoginFormFooter = require("../LoginFormFooter");
33
33
 
34
34
  var _reactI18next = require("react-i18next");
35
35
 
@@ -13,7 +13,7 @@ var _react = _interopRequireDefault(require("react"));
13
13
 
14
14
  var _context = require("../../../context/global/context");
15
15
 
16
- var _types = require("../../../../components/AuthingGuard/types");
16
+ var _types = require("../../types");
17
17
 
18
18
  var _reactI18next = require("react-i18next");
19
19
 
@@ -1,3 +1,3 @@
1
1
  import { FC } from 'react';
2
- import { MfaResetForm } from '../../../../components/AuthingGuard/types';
2
+ import { MfaResetForm } from '../../types';
3
3
  export declare const MfaResetCodeForm: FC<MfaResetForm>;
@@ -1,3 +1,3 @@
1
1
  import { FC } from 'react';
2
- import { MfaVerifyForm } from '../../../../components/AuthingGuard/types';
2
+ import { MfaVerifyForm } from '../../types';
3
3
  export declare const MFAVerifyForm: FC<MfaVerifyForm>;
@@ -1,4 +1,4 @@
1
1
  import { FormInstance } from 'antd/lib/form';
2
2
  import React from 'react';
3
- import { PasswordLoginFormProps } from '../../../../components/AuthingGuard/types';
3
+ import { PasswordLoginFormProps } from '../../types';
4
4
  export declare const PasswordLoginForm: React.ForwardRefExoticComponent<PasswordLoginFormProps & React.RefAttributes<FormInstance<any>>>;
@@ -25,11 +25,11 @@ var _utils = require("../../../_utils");
25
25
 
26
26
  var _context3 = require("../../../context/global/context");
27
27
 
28
- var _constants = require("../../../../components/AuthingGuard/constants");
28
+ var _constants = require("../../constants");
29
29
 
30
- var _types = require("../../../../components/AuthingGuard/types");
30
+ var _types = require("../../types");
31
31
 
32
- var _LoginFormFooter = require("../../../../components/AuthingGuard/Forms/LoginFormFooter");
32
+ var _LoginFormFooter = require("../LoginFormFooter");
33
33
 
34
34
  var _reactI18next = require("react-i18next");
35
35
 
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import { FormInstance } from 'antd/lib/form';
3
- import { PhoneCodeLoginFormProps } from '../../../../components/AuthingGuard/types';
3
+ import { PhoneCodeLoginFormProps } from '../../types';
4
4
  export declare const PhoneCodeLoginForm: React.ForwardRefExoticComponent<PhoneCodeLoginFormProps & React.RefAttributes<FormInstance<any>>>;
@@ -25,11 +25,11 @@ var _utils = require("../../../_utils");
25
25
 
26
26
  var _context2 = require("../../../context/global/context");
27
27
 
28
- var _types = require("../../../../components/AuthingGuard/types");
28
+ var _types = require("../../types");
29
29
 
30
- var _SendPhoneCode = require("../../../../components/AuthingGuard/Forms/SendPhoneCode");
30
+ var _SendPhoneCode = require("../SendPhoneCode");
31
31
 
32
- var _LoginFormFooter = require("../../../../components/AuthingGuard/Forms/LoginFormFooter");
32
+ var _LoginFormFooter = require("../LoginFormFooter");
33
33
 
34
34
  var _reactI18next = require("react-i18next");
35
35
 
@@ -1,4 +1,4 @@
1
1
  import { FormInstance } from 'antd/lib/form';
2
2
  import React from 'react';
3
- import { PhoneRegisterFormProps } from '../../../../components/AuthingGuard/types';
3
+ import { PhoneRegisterFormProps } from '../../types';
4
4
  export declare const PhoneRegisterForm: React.ForwardRefExoticComponent<PhoneRegisterFormProps & React.RefAttributes<FormInstance<any>>>;
@@ -23,13 +23,13 @@ var _icons = require("@ant-design/icons");
23
23
 
24
24
  var _context2 = require("../../../context/global/context");
25
25
 
26
- var _types = require("../../../../components/AuthingGuard/types");
26
+ var _types = require("../../types");
27
27
 
28
28
  var _utils = require("../../../_utils");
29
29
 
30
- var _SendPhoneCode = require("../../../../components/AuthingGuard/Forms/SendPhoneCode");
30
+ var _SendPhoneCode = require("../SendPhoneCode");
31
31
 
32
- var _RegisterFormFooter = require("../../../../components/AuthingGuard/Forms/RegisterFormFooter");
32
+ var _RegisterFormFooter = require("../RegisterFormFooter");
33
33
 
34
34
  var _reactI18next = require("react-i18next");
35
35
 
@@ -1,3 +1,3 @@
1
1
  import { FC } from 'react';
2
- import { QrLoginFormProps } from '../../../../components/AuthingGuard/types';
2
+ import { QrLoginFormProps } from '../../types';
3
3
  export declare const QrCodeLoginForm: FC<QrLoginFormProps>;
@@ -17,7 +17,7 @@ var _react = _interopRequireWildcard(require("react"));
17
17
 
18
18
  var _context = require("../../../context/global/context");
19
19
 
20
- var _types = require("../../../../components/AuthingGuard/types");
20
+ var _types = require("../../types");
21
21
 
22
22
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
23
23