@authing/react-ui-components 3.0.1-beta.0 → 3.0.1-beta.4

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 (103) 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/Error/ErrorSVG.d.ts +2 -0
  43. package/es/Error/ErrorSVG.js +9 -0
  44. package/es/Error/index.js +2 -8
  45. package/es/ShieldSpin/LoadingSVG.d.ts +2 -0
  46. package/es/ShieldSpin/LoadingSVG.js +9 -0
  47. package/es/ShieldSpin/index.js +3 -4
  48. package/es/version/version.d.ts +1 -1
  49. package/es/version/version.js +1 -1
  50. package/lib/AuthingGuard/AppMFALayout/index.js +1 -1
  51. package/lib/AuthingGuard/Forms/ADLoginForm/index.js +1 -1
  52. package/lib/AuthingGuard/Forms/EmailMfaVerifyForm/VerifyCodeForm.d.ts +1 -1
  53. package/lib/AuthingGuard/Forms/EmailRegisterForm/index.d.ts +1 -1
  54. package/lib/AuthingGuard/Forms/EmailRegisterForm/index.js +2 -2
  55. package/lib/AuthingGuard/Forms/LdapLoginForm/index.d.ts +1 -1
  56. package/lib/AuthingGuard/Forms/LdapLoginForm/index.js +3 -3
  57. package/lib/AuthingGuard/Forms/LoginFormFooter/index.js +1 -1
  58. package/lib/AuthingGuard/Forms/MfaResetCodeForm/index.d.ts +1 -1
  59. package/lib/AuthingGuard/Forms/MfaVerifyForm/index.d.ts +1 -1
  60. package/lib/AuthingGuard/Forms/PasswordLoginForm/index.d.ts +1 -1
  61. package/lib/AuthingGuard/Forms/PasswordLoginForm/index.js +3 -3
  62. package/lib/AuthingGuard/Forms/PhoneCodeLoginForm/index.d.ts +1 -1
  63. package/lib/AuthingGuard/Forms/PhoneCodeLoginForm/index.js +3 -3
  64. package/lib/AuthingGuard/Forms/PhoneRegisterForm/index.d.ts +1 -1
  65. package/lib/AuthingGuard/Forms/PhoneRegisterForm/index.js +3 -3
  66. package/lib/AuthingGuard/Forms/QrCodeLoginForm/index.d.ts +1 -1
  67. package/lib/AuthingGuard/Forms/QrCodeLoginForm/index.js +1 -1
  68. package/lib/AuthingGuard/Forms/RegisterFormFooter/index.js +1 -1
  69. package/lib/AuthingGuard/Forms/ResetPwdForm/Footer.js +1 -1
  70. package/lib/AuthingGuard/Forms/ResetPwdForm/Step1.d.ts +1 -1
  71. package/lib/AuthingGuard/Forms/ResetPwdForm/Step1.js +1 -1
  72. package/lib/AuthingGuard/Forms/ResetPwdForm/Step2.d.ts +1 -1
  73. package/lib/AuthingGuard/Forms/ResetPwdForm/Step2.js +1 -1
  74. package/lib/AuthingGuard/Forms/ResetPwdForm/Step3.d.ts +1 -1
  75. package/lib/AuthingGuard/Forms/ResetPwdForm/Step4.js +1 -1
  76. package/lib/AuthingGuard/Forms/ResetPwdForm/index.d.ts +1 -1
  77. package/lib/AuthingGuard/Forms/SmsMfaVerifyForm/VerifyCodeForm.d.ts +1 -1
  78. package/lib/AuthingGuard/Forms/SocialAndIdpLogin/index.d.ts +1 -1
  79. package/lib/AuthingGuard/Forms/SocialAndIdpLogin/index.js +2 -2
  80. package/lib/AuthingGuard/GuardLayout/index.d.ts +1 -1
  81. package/lib/AuthingGuard/GuardLayout/index.js +8 -8
  82. package/lib/AuthingGuard/LoginLayout/index.js +3 -3
  83. package/lib/AuthingGuard/MfaLayout/index.js +1 -1
  84. package/lib/AuthingGuard/RegisterLayout/index.js +3 -3
  85. package/lib/AuthingGuard/ResetPwdLayout/index.js +1 -1
  86. package/lib/AuthingGuard/api/appConfig.d.ts +1 -1
  87. package/lib/AuthingGuard/constants.d.ts +1 -1
  88. package/lib/AuthingGuard/constants.js +1 -1
  89. package/lib/AuthingGuard/types/GuardConfig.d.ts +1 -1
  90. package/lib/Error/ErrorSVG.d.ts +2 -0
  91. package/lib/Error/ErrorSVG.js +21 -0
  92. package/lib/Error/index.js +2 -8
  93. package/lib/ShieldSpin/LoadingSVG.d.ts +2 -0
  94. package/lib/ShieldSpin/LoadingSVG.js +21 -0
  95. package/lib/ShieldSpin/index.js +2 -3
  96. package/lib/index.css +253 -253
  97. package/lib/index.min.css +1 -1
  98. package/lib/version/version.d.ts +1 -1
  99. package/lib/version/version.js +1 -1
  100. package/package.json +9 -8
  101. package/dist/static/media/loading.4a67a5f3.svg +0 -29
  102. package/es/ShieldSpin/loading.svg +0 -29
  103. package/lib/ShieldSpin/loading.svg +0 -29
@@ -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 {
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const ErrorSVG: () => JSX.Element;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ export var ErrorSVG = function ErrorSVG() {
3
+ var svg = "<svg t=\"1640331051299\" class=\"icon\" viewBox=\"0 0 1544 1024\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" p-id=\"3426\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"301.5625\" height=\"200\"><defs><style type=\"text/css\"></style></defs><path d=\"M942.30126 120.481223h280.176653l-6.448906 31.256959c-3.669671 17.76957-19.315689 30.517628-37.460322 30.517628H929.551852c-14.190292 0-25.693091-11.502798-25.69309-25.693091 0-1.744443 0.178087-3.484838 0.530213-5.194203 3.711494-17.984084 19.549091-30.887294 37.912285-30.887293z\" fill=\"#3954FF\" p-id=\"3427\"></path><path d=\"M1190.590904 141.870545a1.319462 1.319462 0 0 1 0.153802 2.629481l-0.153802 0.008095h-40.741439a1.319462 1.319462 0 0 1-0.153802-2.628132l0.153802-0.009444h40.741439zM1190.590904 156.743505a1.319462 1.319462 0 0 1 0.153802 2.628131l-0.153802 0.009444h-85.171436a1.319462 1.319462 0 0 1-0.153803-2.629481l0.153803-0.008094h85.171436zM1184.187868 990.855589v2.549881l-1169.70751 1.048285a1.274941 1.274941 0 0 1-0.149755-2.541787l0.148406-0.008094 1169.708859-1.048285z m252.778245-0.226656a1.274941 1.274941 0 0 1 0.151104 2.541786l-0.148405 0.008095-169.13404 0.151104v-2.549881l169.131341-0.151104zM1541.713623 990.628933a1.274941 1.274941 0 0 1 0.148406 2.541786l-0.148406 0.008095h-58.980511a1.274941 1.274941 0 0 1-0.148406-2.541786l0.148406-0.008095h58.980511zM1469.719273 990.628933a1.274941 1.274941 0 0 1 0.148406 2.541786l-0.148406 0.008095H1451.257592a1.274941 1.274941 0 0 1-0.148406-2.541786l0.148406-0.008095h18.461681zM434.654946 968.612258a1.274941 1.274941 0 0 1 1.048285 1.331605l-0.017539 0.148406-3.370161 18.824601a1.274941 1.274941 0 0 1-2.526946-0.300859l0.017539-0.148406 3.368811-18.824601a1.274941 1.274941 0 0 1 1.331605-1.048285l0.148406 0.017539z m586.822155 10.763468a1.274941 1.274941 0 1 1 1.315415 2.184263 58.481328 58.481328 0 0 1-18.123046 7.143716 1.274941 1.274941 0 1 1-0.526166-2.494567 55.931447 55.931447 0 0 0 17.333797-6.833412z m23.546604-28.252416a1.274941 1.274941 0 1 1 2.387984 0.898529 58.444901 58.444901 0 0 1-9.812321 16.833265 1.274941 1.274941 0 0 1-1.958957-1.632464 55.89502 55.89502 0 0 0 9.383294-16.09933z m-605.109797-19.130857a1.274941 1.274941 0 0 1 2.528295 0.302208l-0.017539 0.148406-3.370161 18.824601a1.274941 1.274941 0 0 1-2.526946-0.302208l0.017539-0.148406 3.368812-18.824601z m8.218983-38.679947a1.274941 1.274941 0 0 1 1.048284 1.331605l-0.017539 0.148405-3.37016 18.824601a1.274941 1.274941 0 0 1-2.528295-0.300859l0.018888-0.148406 3.368811-18.8246a1.274941 1.274941 0 0 1 1.331605-1.048285l0.148406 0.017539z m5.258961-36.619805a1.274941 1.274941 0 0 1 2.528296 0.302208l-0.018888 0.148406-3.368812 18.824601a1.274941 1.274941 0 0 1-2.528295-0.302208l0.018888-0.148406 3.368811-18.824601z m8.218983-38.679947a1.274941 1.274941 0 0 1 1.048285 1.331604l-0.018888 0.148406-3.368812 18.824601a1.274941 1.274941 0 0 1-2.528295-0.300859l0.017539-0.148406 3.370161-18.824601a1.274941 1.274941 0 0 1 1.331605-1.048284l0.148405 0.017539z m5.258962-36.619805a1.274941 1.274941 0 0 1 2.526946 0.302208l-0.017539 0.148406-3.368811 18.823251a1.274941 1.274941 0 0 1-2.528296-0.300859l0.017539-0.148406 3.370161-18.8246z m8.218983-38.679948a1.274941 1.274941 0 0 1 1.046935 1.331605l-0.017538 0.148406-3.368812 18.824601a1.274941 1.274941 0 0 1-2.528295-0.300859l0.017539-0.148406 3.37016-18.824601a1.274941 1.274941 0 0 1 1.331605-1.048285l0.148406 0.017539z m5.258962-36.619805a1.274941 1.274941 0 0 1 2.526946 0.302208l-0.017539 0.148406-3.368812 18.823252a1.274941 1.274941 0 0 1-2.528295-0.300859l0.017539-0.148406 3.370161-18.824601z m614.754825-17.719652a1.274941 1.274941 0 0 1 2.525596 0.322445l-0.018888 0.148406-1.233117 8.040896a1.274941 1.274941 0 0 1-2.525597-0.322445l0.018888-0.148406 1.233118-8.040896z m-606.537192-20.960295a1.274941 1.274941 0 0 1 1.048285 1.331605l-0.017539 0.148406-3.368811 18.8246a1.274941 1.274941 0 0 1-2.528296-0.300859l0.017539-0.148405 3.370161-18.824601a1.274941 1.274941 0 0 1 1.331605-1.048285l0.148406 0.017539z m613.577023-16.634941a1.274941 1.274941 0 0 1 2.526946 0.322446l-0.020237 0.148405-3.519916 18.796269a1.274941 1.274941 0 0 1-2.525597-0.321096l0.020237-0.148406 3.519916-18.796269z m-608.316712-19.984864a1.274941 1.274941 0 0 1 2.526946 0.302208l-0.017538 0.148406-3.368812 18.823252a1.274941 1.274941 0 0 1-2.528295-0.300859l0.017539-0.148406 3.37016-18.824601zM1109.182229 613.185771a1.274941 1.274941 0 0 1 2.525597 0.321096l-0.018888 0.148406-3.521265 18.797618a1.274941 1.274941 0 0 1-2.524247-0.322446l0.018888-0.148405 3.521264-18.796269z m-607.140258-21.070925a1.274941 1.274941 0 0 1 1.048285 1.331605l-0.017539 0.148405-3.368812 18.824601a1.274941 1.274941 0 0 1-2.528295-0.300859l0.017539-0.148406 3.370161-18.8246a1.274941 1.274941 0 0 1 1.331604-1.048285l0.148406 0.017539z m614.181439-16.524311a1.274941 1.274941 0 0 1 2.525597 0.322445l-0.020238 0.148406-3.519915 18.796269a1.274941 1.274941 0 0 1-2.525597-0.321096l0.020237-0.148406 3.519916-18.797618z m-608.922477-20.095494a1.274941 1.274941 0 0 1 2.528295 0.302208l-0.017539 0.148406-3.370161 18.823251a1.274941 1.274941 0 0 1-2.526946-0.300859l0.017539-0.148405 3.368812-18.824601z m615.962308-17.498393a1.274941 1.274941 0 0 1 2.525597 0.321096l-0.018888 0.148406-3.521265 18.797618a1.274941 1.274941 0 0 1-2.524248-0.322445l0.018888-0.148406 3.521265-18.796269z m-607.743325-21.181554a1.274941 1.274941 0 0 1 1.048284 1.331604l-0.017539 0.148406-3.37016 18.824601a1.274941 1.274941 0 0 1-2.526946-0.300859l0.017539-0.148406 3.368811-18.824601a1.274941 1.274941 0 0 1 1.332954-1.048284l0.148406 0.017539z m614.784506-16.413682a1.274941 1.274941 0 0 1 2.525596 0.322446l-0.018888 0.148406-3.521264 18.796268a1.274941 1.274941 0 0 1-2.524248-0.321096l0.018888-0.148406 3.519916-18.797618zM520.780227 480.193939a1.274941 1.274941 0 0 1 2.528295 0.302209l-0.017539 0.148405-3.370161 18.823252a1.274941 1.274941 0 0 1-2.526946-0.300859l0.017539-0.148406 3.368812-18.824601z m616.565375-17.387762a1.274941 1.274941 0 0 1 2.525597 0.321096l-0.018888 0.148406-3.521265 18.796268a1.274941 1.274941 0 0 1-2.524248-0.321096l0.018888-0.148406 3.521265-18.796268z m-608.346393-21.292185a1.274941 1.274941 0 0 1 1.048285 1.331605l-0.017539 0.148406-3.370161 18.8246a1.274941 1.274941 0 0 1-2.526946-0.300859l0.017539-0.148405 3.368812-18.824601a1.274941 1.274941 0 0 1 1.331605-1.048285l0.148405 0.017539z m616.155236-20.404448a1.274941 1.274941 0 0 1 2.525597 0.322445l-0.018888 0.147057-2.954624 15.782282a1.274941 1.274941 0 0 1-2.526946-0.321096l0.018888-0.148406 2.955973-15.782282zM534.258171 404.894187a1.274941 1.274941 0 0 1 2.528295 0.302208l-0.017538 0.148406-3.370161 18.823252a1.274941 1.274941 0 0 1-2.526946-0.300859l0.017539-0.148406 3.368811-18.824601z m617.937455-21.37853a1.274941 1.274941 0 0 1 2.524248 0.321097l-0.018888 0.148405-3.519916 18.796269a1.274941 1.274941 0 0 1-2.525597-0.321096l0.018888-0.148406 3.521265-18.796269z m-609.718472-17.301417a1.274941 1.274941 0 0 1 1.048285 1.331605l-0.017539 0.148405-3.370161 18.824601a1.274941 1.274941 0 0 1-2.528295-0.300859l0.018888-0.148406 3.368812-18.8246a1.274941 1.274941 0 0 1 1.331604-1.048285l0.148406 0.017539z m619.296042-33.841919a1.274941 1.274941 0 0 1 2.525597 0.321097l-0.018888 0.148405-3.521265 18.796269a1.274941 1.274941 0 0 1-2.524247-0.321096l0.018888-0.148406 3.519915-18.796269zM547.736116 329.594435a1.274941 1.274941 0 0 1 2.528295 0.302208l-0.018888 0.148406-3.368812 18.823251a1.274941 1.274941 0 0 1-2.528295-0.300859l0.018888-0.148405L547.736116 329.595784z m621.078261-34.817349a1.274941 1.274941 0 0 1 2.524248 0.321096l-0.018889 0.148406-3.521264 18.797618a1.274941 1.274941 0 0 1-2.522899-0.322446l0.017539-0.148406 3.521265-18.796268z m-612.859278-3.862599a1.274941 1.274941 0 0 1 1.048284 1.331605l-0.018888 0.148406-3.368811 18.824601a1.274941 1.274941 0 0 1-2.528295-0.302208l0.018888-0.148406 3.368811-18.823252a1.274941 1.274941 0 0 1 1.331605-1.048284l0.148406 0.017538z m619.899109-33.732637a1.274941 1.274941 0 0 1 2.525597 0.322445l-0.018888 0.148406-3.521265 18.796269a1.274941 1.274941 0 0 1-2.524248-0.321096l0.018888-0.148406 3.519916-18.797618z m-610.31884-2.103315a1.274941 1.274941 0 0 1 2.208548 1.27629 71.117407 71.117407 0 0 0-7.170699 17.366176 1.274941 1.274941 0 1 1-2.463536-0.654334 73.667289 73.667289 0 0 1 7.425687-17.988132z m27.286429-27.1758a1.274941 1.274941 0 1 1 1.268195 2.212596 71.642224 71.642224 0 0 0-14.932321 11.402961 1.274941 1.274941 0 1 1-1.799758-1.805154 74.192105 74.192105 0 0 1 15.463884-11.810403z m590.072243-8.314772a1.274941 1.274941 0 0 1 2.525596 0.321096l-0.018888 0.148406-3.521264 18.797618a1.274941 1.274941 0 0 1-2.522899-0.322445l0.017539-0.148406 3.521265-18.796269z m-552.838578-1.459773a1.274941 1.274941 0 0 1 0.148406 2.540437l-0.148406 0.009444h-0.48839a71.39668 71.39668 0 0 0-18.166218 2.340764 1.274941 1.274941 0 1 1-0.647589-2.466234 73.899341 73.899341 0 0 1 17.614419-2.414967l1.200738-0.009444h0.485691z m38.248222 0a1.274941 1.274941 0 0 1 0.148406 2.540437l-0.148406 0.009444H649.178224a1.274941 1.274941 0 0 1-0.148406-2.541786l0.148406-0.008095h19.124111z m38.248221 0a1.274941 1.274941 0 0 1 0.148406 2.540437l-0.148406 0.009444H687.426445a1.274941 1.274941 0 0 1-0.148405-2.541786l0.148405-0.008095h19.124111z m38.248221 0a1.274941 1.274941 0 0 1 0.148406 2.540437l-0.148406 0.009444H725.674667a1.274941 1.274941 0 0 1-0.148406-2.541786l0.148406-0.008095h19.12411z m38.248222 0a1.274941 1.274941 0 0 1 0.148406 2.540437l-0.148406 0.009444H763.922888a1.274941 1.274941 0 0 1-0.148406-2.541786l0.148406-0.008095h19.124111z m38.248221 0a1.274941 1.274941 0 0 1 0.148406 2.540437l-0.148406 0.009444H802.171109a1.274941 1.274941 0 0 1-0.148405-2.541786l0.148405-0.008095h19.124111z m38.248222 0a1.274941 1.274941 0 0 1 0.148405 2.540437l-0.148405 0.009444H840.419331a1.274941 1.274941 0 0 1-0.148406-2.541786l0.148406-0.008095h19.12411z m38.248221 0a1.274941 1.274941 0 0 1 0.148406 2.540437l-0.148406 0.009444H878.667552a1.274941 1.274941 0 0 1-0.148406-2.541786l0.148406-0.008095h19.124111z m38.248221 0a1.274941 1.274941 0 0 1 0.148406 2.540437l-0.148406 0.009444H916.915773a1.274941 1.274941 0 0 1-0.148405-2.541786l0.148405-0.008095h19.124111z m38.248222 0a1.274941 1.274941 0 0 1 0.148405 2.540437l-0.148405 0.009444H955.163995a1.274941 1.274941 0 0 1-0.148406-2.541786l0.148406-0.008095h19.12411z m38.248221 0a1.274941 1.274941 0 0 1 0.148406 2.540437l-0.148406 0.009444H993.412216a1.274941 1.274941 0 0 1-0.148406-2.541786l0.148406-0.008095h19.124111z m38.248221 0a1.274941 1.274941 0 0 1 0.148406 2.540437l-0.148406 0.009444H1031.660437a1.274941 1.274941 0 0 1-0.148405-2.541786l0.148405-0.008095h19.124111z m38.248222 0a1.274941 1.274941 0 0 1 0.148405 2.540437l-0.148405 0.009444H1069.908659a1.274941 1.274941 0 0 1-0.148406-2.541786l0.148406-0.008095h19.12411z m38.248221 0a1.274941 1.274941 0 0 1 0.148406 2.540437l-0.148406 0.009444H1108.15688a1.274941 1.274941 0 0 1-0.148406-2.541786l0.148406-0.008095h19.124111z m38.248221 0a1.274941 1.274941 0 0 1 0.148406 2.540437l-0.148406 0.009444H1146.405101a1.274941 1.274941 0 0 1-0.148405-2.541786l0.148405-0.008095h19.124111zM555.295368 625.518292a1.046935 1.046935 0 0 0-0.14166 2.084427l0.14166 0.009444H1061.206682a1.046935 1.046935 0 0 0 0.141661-2.083077l-0.141661-0.010794H555.295368zM548.920664 667.282382a1.046935 1.046935 0 0 0-0.14166 2.083078l0.14166 0.009444h505.911315a1.046935 1.046935 0 0 0 0.14166-2.083078l-0.14166-0.009444H548.920664zM561.670071 583.755552a1.046935 1.046935 0 0 0-0.14166 2.083078l0.14166 0.009444h507.774482a1.046935 1.046935 0 0 0 0.14166-2.083078l-0.14166-0.009444H561.670071zM568.044775 541.991462a1.046935 1.046935 0 0 0-0.14166 2.083078l0.14166 0.009444h333.759241a1.046935 1.046935 0 0 0 0.14166-2.083078l-0.14166-0.009444H568.044775z\" fill=\"#000000\" p-id=\"3428\"></path><path d=\"M689.559441 398.456074m-76.496442 0a76.496443 76.496443 0 1 0 152.992885 0 76.496443 76.496443 0 1 0-152.992885 0Z\" fill=\"#FFDE86\" opacity=\".974\" p-id=\"3429\"></path><path d=\"M675.535094 309.210224c42.248432 0 76.496443 34.248011 76.496442 76.496443 0 42.247083-34.248011 76.496443-76.496442 76.496442-42.247083 0-76.496443-34.24936-76.496443-76.496442 0-42.248432 34.24936-76.496443 76.496443-76.496443z m0 2.549881c-40.838577 0-73.946561 33.106635-73.946562 73.946562 0 40.838577 33.107984 73.946561 73.946562 73.946561 40.838577 0 73.946561-33.107984 73.946561-73.946561 0-40.839926-33.107984-73.946561-73.946561-73.946562z\" fill=\"#000000\" p-id=\"3430\"></path><path d=\"M888.586456 783.563721a172.099457 172.099457 0 0 0-4.373924 34.816c-1.722856 75.326735 45.220596 140.453945 112.090899 165.299773l2.908753 5.856632H465.567874c-92.848063 0-168.118134-75.268722-168.118135-168.118134 0-12.741312 1.447631-25.440801 4.31726-37.854271z\" fill=\"#3954FF\" p-id=\"3431\"></path><path d=\"M202.511852 0h184.166198c11.969602 0 21.673992 9.70439 21.673992 21.673992v230.078904c0 11.970951-9.70439 21.673992-21.673992 21.673992H202.511852c-11.969602 0-21.673992-9.703041-21.673992-21.673992V21.673992C180.83786 9.70439 190.54225 0 202.511852 0z\" fill=\"#F3F3F3\" p-id=\"3432\"></path><path d=\"M259.908469 193.042213l68.151989-90.561264L398.246957 193.042213z\" fill=\"#D8D8D8\" p-id=\"3433\"></path><path d=\"M191.054925 180.706993L259.204216 90.145729l70.186498 90.561264z\" fill=\"#D8D8D8\" p-id=\"3434\"></path><path d=\"M250.136622 63.764574m-13.386203 0a13.386203 13.386203 0 1 0 26.772406 0 13.386203 13.386203 0 1 0-26.772406 0Z\" fill=\"#D8D8D8\" p-id=\"3435\"></path><path d=\"M1185.738034 907.852227l62.010688 82.289665c6.799684 9.023072 4.997228 21.848032-4.025845 28.647715-9.023072 6.799684-21.848032 4.995879-28.647715-4.025844l-62.354719-82.749723a88.533502 88.533502 0 0 0 2.039905-0.891784l62.047114 82.336885c6.077892 8.06653 17.544264 9.677407 25.610794 3.599515 8.067879-6.079241 9.678756-17.545613 3.599515-25.612142l-61.73951-81.933492c0.493787-0.546403 0.980827-1.100901 1.459773-1.662145z\" fill=\"#000000\" p-id=\"3436\"></path><path d=\"M1099.206661 696.754424c23.632949 0 46.29991 6.583821 65.921855 18.820554a1.274941 1.274941 0 0 1-1.349143 2.164026c-19.2199-11.985792-41.418709-18.433349-64.572712-18.433349-67.492258 0-122.205428 54.71317-122.205428 122.205428 0 67.492258 54.71317 122.205428 122.205428 122.205428 67.492258 0 122.205428-54.71317 122.205429-122.205428 0-19.889075-4.754382-39.090087-13.735632-56.344285a1.274941 1.274941 0 0 1 2.261165-1.177802c9.170129 17.615768 14.024348 37.221523 14.024348 57.522087 0 68.900764-55.854545 124.75531-124.75531 124.75531s-124.75531-55.854545-124.755309-124.75531 55.854545-124.75531 124.755309-124.75531z m78.978867 28.179563a125.43258 125.43258 0 0 1 25.210098 27.932669 1.274941 1.274941 0 0 1-2.128949 1.404459 122.882698 122.882698 0 0 0-24.696074-27.36468 1.274941 1.274941 0 1 1 1.614925-1.972448zM317.310482 319.825286a76.071462 76.071462 0 0 0-4.105444 9.157987l-2.390682-0.886388a78.621344 78.621344 0 0 1 4.243056-9.465591l2.25307 1.193992z m-6.952137 18.769286a75.968928 75.968928 0 0 0-1.542071 9.906761l-2.540437-0.225307c0.307605-3.453808 0.837818-6.869839 1.594687-10.24l2.487821 0.558546z m-1.794361 19.980817c0.12547 3.321592 0.453312 6.660722 0.97678 10.0039l-2.518851 0.395299c-0.539657-3.440316-0.876943-6.880632-1.005112-10.30341l2.548532-0.095789z m3.085492 19.852648a99.02849 99.02849 0 0 0 3.131362 9.569476l-2.379889 0.914719a101.577022 101.577022 0 0 1-3.21366-9.817718l2.462187-0.666477z m7.19903 18.798967a109.021597 109.021597 0 0 0 4.916279 8.80586l-2.166724 1.345096a111.571478 111.571478 0 0 1-5.032306-9.012279l2.282751-1.138677z m10.60292 17.097697a106.316564 106.316564 0 0 0 6.444859 7.744084l-1.879357 1.724206a108.866445 108.866445 0 0 1-6.600011-7.931616l2.034509-1.536674z m13.65738 14.854071a85.554593 85.554593 0 0 0 7.885745 6.226298l-1.457075 2.092522a88.101776 88.101776 0 0 1-8.121845-6.41248l1.693175-1.907689z m16.520264 11.381376c3.128664 1.560959 6.233043 2.776538 9.272664 3.625148l-0.685365 2.455442c-3.200169-0.893133-6.457001-2.166725-9.725976-3.797839l1.138677-2.282751z m19.039114 5.07143c3.40254 0.020237 6.622946-0.512675 9.615347-1.605481l0.874245 2.39473c-3.283816 1.200738-6.80508 1.783568-10.504432 1.760633l0.01484-2.549882z m17.953054-6.462397c2.745507-2.154582 5.036353-4.516933 6.873887-7.051974l2.06419 1.497549c-1.977845 2.727968-4.434635 5.26166-7.364975 7.559252l-1.573102-2.004827z m11.211384-15.791726c0.933607-3.170487 1.268195-6.442161 1.024-9.685502l2.541786-0.192928a29.555689 29.555689 0 0 1-1.119789 10.598872l-2.447346-0.720442z m-1.430092-19.120064c-1.40176-3.034224-3.331036-5.73386-5.642119-7.905981l1.747141-1.85912c2.551231 2.398777 4.672084 5.368242 6.210108 8.693881l-2.313781 1.07122z m-13.824675-12.708933a17.908532 17.908532 0 0 0-9.441307-0.202371l-0.607115-2.478377a20.458414 20.458414 0 0 1 10.771563 0.2361l-0.723141 2.444648z m-18.202646 4.189091c-1.655399 1.278988-3.27707 2.80487-4.856917 4.578994a46.013892 46.013892 0 0 0-2.003478 2.414967l-2.01562-1.562308c0.679968-0.876943 1.384221-1.726904 2.114108-2.547184 1.682382-1.89015 3.420079-3.525312 5.203647-4.902787l1.55826 2.018318z m-12.126102 15.451742a55.285207 55.285207 0 0 0-3.575231 9.305044l-2.452743-0.698857a57.835088 57.835088 0 0 1 3.741175-9.73542l2.286799 1.129233z m-5.496411 19.122762a63.367926 63.367926 0 0 0-0.306256 9.995805l-2.547183 0.121423c-0.167294-3.507773-0.058013-6.985866 0.319747-10.39785l2.533692 0.280622z m0.930909 19.947088c0.652986 3.237945 1.546119 6.461049 2.683446 9.650424l-2.401475 0.855357a72.353223 72.353223 0 0 1-2.780585-10.00255l2.499963-0.503231z m6.655325 18.780079a79.208221 79.208221 0 0 0 5.169918 8.60214l-2.097918 1.447631a81.756754 81.756754 0 0 1-5.337212-8.877365l2.265212-1.172406z m11.386772 16.55804a94.889318 94.889318 0 0 0 7.045228 7.190935l-1.726904 1.878008a97.43785 97.43785 0 0 1-7.231409-7.385212l1.914434-1.683731z m14.837882 13.684363a118.046018 118.046018 0 0 0 8.306677 5.731162l-1.358588 2.15863a120.5959 120.5959 0 0 1-8.486113-5.855283l1.538024-2.034509z m17.104442 10.802593c2.918198 1.538024 5.952422 3.007241 9.104021 4.403605l-1.033444 2.33132a151.232253 151.232253 0 0 1-9.259172-4.479157l1.188595-2.255768z m18.473824 8.214936c3.100332 1.154867 6.295104 2.244975 9.587014 3.270324l-0.759568 2.435204a188.785665 188.785665 0 0 1-9.717881-3.316195l0.890435-2.389333z m19.325133 6.042814c3.210962 0.831072 6.502872 1.605481 9.874382 2.320527l-0.530213 2.494566a232.76235 232.76235 0 0 1-9.983663-2.34751l0.639494-2.468932zM653.058361 15.299289c16.807631 0 30.432632 13.625001 30.432632 30.431283 0 16.807631-13.62635 30.432632-30.432632 30.432632-16.806282 0-30.431283-13.62635-30.431283-30.432632 0-16.806282 13.625001-30.431283 30.431283-30.431283z m0 2.180216c-15.602846 0-28.251067 12.648221-28.251067 28.251067 0 15.602846 12.648221 28.251067 28.251067 28.251067 15.602846 0 28.251067-12.648221 28.251067-28.251067 0-15.602846-12.648221-28.251067-28.251067-28.251067z\" fill=\"#000000\" p-id=\"3437\"></path><path d=\"M665.049549 49.000896m-30.431283 0a30.431283 30.431283 0 1 0 60.862567 0 30.431283 30.431283 0 1 0-60.862567 0Z\" fill=\"#FFDF8A\" p-id=\"3438\"></path><path d=\"M1301.309723 703.152063c16.807631 0 30.432632 13.625001 30.432633 30.432633 0 16.806282-13.62635 30.431283-30.432633 30.431283-16.806282 0-30.431283-13.625001-30.431283-30.431283 0-16.807631 13.625001-30.432632 30.431283-30.432633z m0 2.180216c-15.602846 0-28.251067 12.648221-28.251067 28.251068 0 15.604195 12.648221 28.251067 28.251067 28.251067 15.602846 0 28.251067-12.646872 28.251068-28.251067 0-15.602846-12.648221-28.251067-28.251068-28.251068z\" fill=\"#000000\" p-id=\"3439\"></path><path d=\"M1313.300912 736.853671m-30.431284 0a30.431283 30.431283 0 1 0 60.862567 0 30.431283 30.431283 0 1 0-60.862567 0Z\" fill=\"#35BCBA\" p-id=\"3440\"></path><path d=\"M562.772321 92.099289a1.274941 1.274941 0 0 1 1.430093 0.907973l0.032379 0.145708 11.953413 73.582292a1.274941 1.274941 0 0 1-2.483774 0.555847l-0.032379-0.145707-11.953413-73.582293a1.274941 1.274941 0 0 1 1.052332-1.46382zM545.642245 196.438008a1.274941 1.274941 0 0 0-0.948448-1.533976l-82.718693-19.485682a1.274941 1.274941 0 1 0-0.585528 2.482425l82.720042 19.485681a1.274941 1.274941 0 0 0 1.532627-0.948448zM502.162045 116.454029l0.113328 0.113328 47.338751 52.841908a1.274941 1.274941 0 0 1-1.784917 1.814598l-0.114677-0.113328-47.338751-52.841908a1.274941 1.274941 0 0 1 1.648653-1.917133l0.136264 0.102535z m-12.019521-13.414535l0.114678 0.111979 5.443794 6.077892a1.274941 1.274941 0 0 1-1.784917 1.814598l-0.113328-0.113328-5.445144-6.077892a1.274941 1.274941 0 0 1 1.648654-1.915784l0.136263 0.102535z m-18.69913-20.87395l0.113328 0.113328 11.8158 13.189228a1.274941 1.274941 0 0 1-1.784917 1.813249l-0.114677-0.111979-11.814451-13.189228a1.274941 1.274941 0 0 1 1.648653-1.917133l0.134915 0.102535z\" fill=\"#000000\" p-id=\"3441\"></path></svg>";
4
+ return /*#__PURE__*/React.createElement("div", {
5
+ dangerouslySetInnerHTML: {
6
+ __html: svg
7
+ }
8
+ });
9
+ };
package/es/Error/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/concat";
2
2
  import React from 'react';
3
3
  import { i18n } from '../_utils/locales';
4
- import { IconFont } from '../IconFont';
4
+ import { ErrorSVG } from './ErrorSVG';
5
5
  export var GuardErrorView = function GuardErrorView(props) {
6
6
  var _props$initData, _context, _props$initData2;
7
7
 
@@ -15,11 +15,5 @@ export var GuardErrorView = function GuardErrorView(props) {
15
15
  display: 'flex',
16
16
  justifyContent: 'center'
17
17
  }
18
- }, /*#__PURE__*/React.createElement(IconFont, {
19
- type: "authing-bianzu",
20
- style: {
21
- width: 240,
22
- height: 160
23
- }
24
- })), /*#__PURE__*/React.createElement("span", null, messages)));
18
+ }, /*#__PURE__*/React.createElement(ErrorSVG, null)), /*#__PURE__*/React.createElement("span", null, messages)));
25
19
  };
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const LoadingSVG: () => JSX.Element;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ export var LoadingSVG = function LoadingSVG() {
3
+ var svg = "\n<svg width=\"100%\" height=\"100%\"\n viewBox=\"0 0 150 150\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n <style>\n #path-f {\n fill: none;\n stroke: #eaebee;\n stroke-width: 10;\n stroke-dasharray: 100 220;\n animation: dash 40s infinite linear forwards;\n }\n #path-b {\n fill: none;\n stroke: #0080ff;\n stroke-width: 8;\n stroke-linecap: round;\n stroke-linejoin: round;\n }\n @keyframes dash {\n to {\n stroke-dashoffset: 12000;\n }\n }\n </style>\n <title>Loading</title>\n <g id=\"\u5355\u72EC\" transform=\"translate(25.000000, 16.000000)\" fill-rule=\"nonzero\" stroke-width=\"2\" >\n <path d=\"M50,0 L0,30 C0,31 0,32 0,33 C0,69 20,100 50,116 C79,100 100,69 100,33 C100,32 99,31 99,30 L50,0 Z\" id=\"path-b\"/>\n <path d=\"M50,0 L0,30 C0,31 0,32 0,33 C0,69 20,100 50,116 C79,100 100,69 100,33 C100,32 99,31 99,30 L50,0 Z\" id=\"path-f\"/>\n </g>\n</svg>\n ";
4
+ return /*#__PURE__*/React.createElement("div", {
5
+ dangerouslySetInnerHTML: {
6
+ __html: svg
7
+ }
8
+ });
9
+ };
@@ -1,6 +1,5 @@
1
- import React from 'react'; //@ts-ignore
2
-
3
- import { ReactComponent as ShieldSpinLoading } from './loading.svg';
1
+ import React from 'react';
2
+ import { LoadingSVG } from './LoadingSVG';
4
3
  export var ShieldSpin = function ShieldSpin(props) {
5
4
  var size = props.size ? props.size : 50;
6
5
  return /*#__PURE__*/React.createElement("div", {
@@ -8,7 +7,7 @@ export var ShieldSpin = function ShieldSpin(props) {
8
7
  width: size,
9
8
  height: size
10
9
  }
11
- }, /*#__PURE__*/React.createElement(ShieldSpinLoading, null));
10
+ }, /*#__PURE__*/React.createElement(LoadingSVG, null));
12
11
  };
13
12
  export var Spin = function Spin() {
14
13
  return /*#__PURE__*/React.createElement("div", {
@@ -1,2 +1,2 @@
1
- declare const _default: "3.0.1-beta.0";
1
+ declare const _default: "3.0.1-beta.4";
2
2
  export default _default;
@@ -1 +1 @@
1
- export default '3.0.1-beta.0';
1
+ export default '3.0.1-beta.4';
@@ -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>>>;