@authing/react-ui-components 2.4.59 → 3.0.0-rc.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.
- package/lib/index.d.ts +1758 -203
- package/lib/index.min.css +2 -1
- package/lib/index.min.js +1 -1
- package/lib/index.min.js.LICENSE.txt +34 -0
- package/lib/static/media/loading.4a67a5f3.svg +29 -0
- package/package.json +41 -14
- package/.eslintignore +0 -6
- package/.eslintrc.js +0 -7
- package/.prettierrc +0 -5
- package/.vscode/settings.json +0 -31
- package/config/antdReplacer.js +0 -51
- package/config/env.js +0 -106
- package/config/getHttpsConfig.js +0 -66
- package/config/jest/cssTransform.js +0 -14
- package/config/jest/fileTransform.js +0 -40
- package/config/modules.js +0 -134
- package/config/paths.js +0 -71
- package/config/pnpTs.js +0 -35
- package/config/webpack.config.js +0 -857
- package/config/webpackDevServer.config.js +0 -130
- package/public/favicon.ico +0 -0
- package/public/index.html +0 -43
- package/public/logo192.png +0 -0
- package/public/logo512.png +0 -0
- package/public/manifest.json +0 -25
- package/public/robots.txt +0 -3
- package/scripts/build.js +0 -212
- package/scripts/lib.js +0 -200
- package/scripts/start.js +0 -166
- package/scripts/test.js +0 -53
- package/src/common/AuthingDropdown/index.tsx +0 -52
- package/src/common/AuthingDropdown/style.less +0 -43
- package/src/common/AuthingTabs/index.tsx +0 -98
- package/src/common/AuthingTabs/style.less +0 -135
- package/src/common/CopyAbleText/index.tsx +0 -54
- package/src/common/CopyAbleText/style.less +0 -13
- package/src/common/VerifyCodeInput/index.tsx +0 -76
- package/src/common/VerifyCodeInput/style.less +0 -24
- package/src/components/AuthingGuard/AppMFALayout/index.tsx +0 -74
- package/src/components/AuthingGuard/AppMFALayout/style.less +0 -12
- package/src/components/AuthingGuard/CompleteUserInfoLayout/index.tsx +0 -29
- package/src/components/AuthingGuard/CompleteUserInfoLayout/style.less +0 -8
- package/src/components/AuthingGuard/Forms/ADLoginForm/index.tsx +0 -117
- package/src/components/AuthingGuard/Forms/Agreements/index.tsx +0 -81
- package/src/components/AuthingGuard/Forms/Agreements/style.less +0 -44
- package/src/components/AuthingGuard/Forms/CompleteUserInfoForm/index.tsx +0 -139
- package/src/components/AuthingGuard/Forms/EmailMfaVerifyForm/CheckEmailForm.tsx +0 -86
- package/src/components/AuthingGuard/Forms/EmailMfaVerifyForm/VerifyCodeForm.tsx +0 -116
- package/src/components/AuthingGuard/Forms/EmailMfaVerifyForm/index.tsx +0 -40
- package/src/components/AuthingGuard/Forms/EmailMfaVerifyForm/style.less +0 -0
- package/src/components/AuthingGuard/Forms/EmailRegisterForm/index.tsx +0 -181
- package/src/components/AuthingGuard/Forms/EmailRegisterForm/style.less +0 -0
- package/src/components/AuthingGuard/Forms/LdapLoginForm/index.tsx +0 -162
- package/src/components/AuthingGuard/Forms/LdapLoginForm/style.less +0 -0
- package/src/components/AuthingGuard/Forms/LoginFormFooter/index.tsx +0 -76
- package/src/components/AuthingGuard/Forms/LoginFormFooter/style.less +0 -6
- package/src/components/AuthingGuard/Forms/MfaResetCodeForm/Step1.tsx +0 -86
- package/src/components/AuthingGuard/Forms/MfaResetCodeForm/Step2.tsx +0 -53
- package/src/components/AuthingGuard/Forms/MfaResetCodeForm/index.tsx +0 -65
- package/src/components/AuthingGuard/Forms/MfaResetCodeForm/style.less +0 -20
- package/src/components/AuthingGuard/Forms/MfaVerifyForm/index.tsx +0 -105
- package/src/components/AuthingGuard/Forms/MfaVerifyForm/style.less +0 -12
- package/src/components/AuthingGuard/Forms/PasswordLoginForm/index.tsx +0 -261
- package/src/components/AuthingGuard/Forms/PhoneCodeLoginForm/index.tsx +0 -133
- package/src/components/AuthingGuard/Forms/PhoneRegisterForm/index.tsx +0 -202
- package/src/components/AuthingGuard/Forms/QrCodeLoginForm/index.tsx +0 -61
- package/src/components/AuthingGuard/Forms/QrCodeLoginForm/style.less +0 -14
- package/src/components/AuthingGuard/Forms/RegisterFormFooter/index.tsx +0 -56
- package/src/components/AuthingGuard/Forms/RegisterFormFooter/style.less +0 -0
- package/src/components/AuthingGuard/Forms/ResetPwdForm/Footer.tsx +0 -21
- package/src/components/AuthingGuard/Forms/ResetPwdForm/Step1.tsx +0 -86
- package/src/components/AuthingGuard/Forms/ResetPwdForm/Step2.tsx +0 -127
- package/src/components/AuthingGuard/Forms/ResetPwdForm/Step3.tsx +0 -141
- package/src/components/AuthingGuard/Forms/ResetPwdForm/Step4.tsx +0 -51
- package/src/components/AuthingGuard/Forms/ResetPwdForm/index.tsx +0 -96
- package/src/components/AuthingGuard/Forms/ResetPwdForm/style.less +0 -3
- package/src/components/AuthingGuard/Forms/SendPhoneCode/SendCodeBtn.tsx +0 -88
- package/src/components/AuthingGuard/Forms/SendPhoneCode/index.tsx +0 -50
- package/src/components/AuthingGuard/Forms/SendPhoneCode/style.less +0 -26
- package/src/components/AuthingGuard/Forms/SmsMfaVerifyForm/CheckPhoneForm.tsx +0 -86
- package/src/components/AuthingGuard/Forms/SmsMfaVerifyForm/VerifyCodeForm.tsx +0 -113
- package/src/components/AuthingGuard/Forms/SmsMfaVerifyForm/index.tsx +0 -40
- package/src/components/AuthingGuard/Forms/SmsMfaVerifyForm/style.less +0 -3
- package/src/components/AuthingGuard/Forms/SocialAndIdpLogin/index.tsx +0 -325
- package/src/components/AuthingGuard/Forms/SocialAndIdpLogin/style.less +0 -75
- package/src/components/AuthingGuard/Forms/UploadImage/index.tsx +0 -70
- package/src/components/AuthingGuard/Forms/index.ts +0 -13
- package/src/components/AuthingGuard/GuardLayout/index.tsx +0 -488
- package/src/components/AuthingGuard/GuardLayout/style.less +0 -111
- package/src/components/AuthingGuard/Header/index.tsx +0 -28
- package/src/components/AuthingGuard/Header/style.less +0 -64
- package/src/components/AuthingGuard/IconFont/iconfont.js +0 -74
- package/src/components/AuthingGuard/IconFont/index.tsx +0 -19
- package/src/components/AuthingGuard/IconFont/style.less +0 -6
- package/src/components/AuthingGuard/IconFont/svg.js +0 -2
- package/src/components/AuthingGuard/LoginLayout/index.tsx +0 -205
- package/src/components/AuthingGuard/LoginLayout/style.less +0 -0
- package/src/components/AuthingGuard/MfaLayout/Steps.ts +0 -4
- package/src/components/AuthingGuard/MfaLayout/index.tsx +0 -49
- package/src/components/AuthingGuard/MfaLayout/style.less +0 -3
- package/src/components/AuthingGuard/RegisterLayout/index.tsx +0 -89
- package/src/components/AuthingGuard/RegisterLayout/style.less +0 -0
- package/src/components/AuthingGuard/ResetPwdLayout/index.tsx +0 -20
- package/src/components/AuthingGuard/ToggleLang/index.tsx +0 -51
- package/src/components/AuthingGuard/api/appConfig.ts +0 -154
- package/src/components/AuthingGuard/api/http.ts +0 -88
- package/src/components/AuthingGuard/api/index.ts +0 -3
- package/src/components/AuthingGuard/api/sso.ts +0 -29
- package/src/components/AuthingGuard/api/userPoolConfig.ts +0 -112
- package/src/components/AuthingGuard/constants.ts +0 -107
- package/src/components/AuthingGuard/hooks/index.tsx +0 -70
- package/src/components/AuthingGuard/hooks/useScreenSize.tsx +0 -68
- package/src/components/AuthingGuard/index.tsx +0 -134
- package/src/components/AuthingGuard/locales/en/common.json +0 -185
- package/src/components/AuthingGuard/locales/en/index.ts +0 -6
- package/src/components/AuthingGuard/locales/en/login.json +0 -94
- package/src/components/AuthingGuard/locales/en/map.json +0 -4
- package/src/components/AuthingGuard/locales/en/user.json +0 -81
- package/src/components/AuthingGuard/locales/index.ts +0 -45
- package/src/components/AuthingGuard/locales/zh/common.json +0 -185
- package/src/components/AuthingGuard/locales/zh/index.ts +0 -6
- package/src/components/AuthingGuard/locales/zh/login.json +0 -94
- package/src/components/AuthingGuard/locales/zh/map.json +0 -4
- package/src/components/AuthingGuard/locales/zh/user.json +0 -81
- package/src/components/AuthingGuard/style.less +0 -104
- package/src/components/AuthingGuard/types/Forms.ts +0 -95
- package/src/components/AuthingGuard/types/GuardConfig.ts +0 -424
- package/src/components/AuthingGuard/types/GuardState.ts +0 -7
- package/src/components/AuthingGuard/types/Locales.ts +0 -12
- package/src/components/AuthingGuard/types/index.ts +0 -4
- package/src/components/index.ts +0 -7
- package/src/context/base.tsx +0 -28
- package/src/context/global/context.tsx +0 -39
- package/src/context/global/reducer.tsx +0 -56
- package/src/index.tsx +0 -142
- package/src/logo.svg +0 -7
- package/src/react-app-env.d.ts +0 -71
- package/src/reportWebVitals.ts +0 -15
- package/src/setupTests.ts +0 -5
- package/src/utils/clipboard.ts +0 -27
- package/src/utils/index.ts +0 -180
- package/src/utils/popupCenter.ts +0 -48
- package/tsconfig.json +0 -24
- package/yarn-error.log +0 -20371
package/config/paths.js
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
const path = require('path')
|
|
2
|
-
const fs = require('fs')
|
|
3
|
-
const getPublicUrlOrPath = require('react-dev-utils/getPublicUrlOrPath')
|
|
4
|
-
|
|
5
|
-
// Make sure any symlinks in the project folder are resolved:
|
|
6
|
-
// https://github.com/facebook/create-react-app/issues/637
|
|
7
|
-
const appDirectory = fs.realpathSync(process.cwd())
|
|
8
|
-
const resolveApp = (relativePath) => path.resolve(appDirectory, relativePath)
|
|
9
|
-
|
|
10
|
-
// We use `PUBLIC_URL` environment variable or "homepage" field to infer
|
|
11
|
-
// "public path" at which the app is served.
|
|
12
|
-
// webpack needs to know it to put the right <script> hrefs into HTML even in
|
|
13
|
-
// single-page apps that may serve index.html for nested URLs like /todos/42.
|
|
14
|
-
// We can't use a relative path in HTML because we don't want to load something
|
|
15
|
-
// like /todos/42/static/js/bundle.7289d.js. We have to know the root.
|
|
16
|
-
const publicUrlOrPath = getPublicUrlOrPath(
|
|
17
|
-
process.env.NODE_ENV === 'development',
|
|
18
|
-
require(resolveApp('package.json')).homepage,
|
|
19
|
-
process.env.PUBLIC_URL
|
|
20
|
-
)
|
|
21
|
-
|
|
22
|
-
const moduleFileExtensions = [
|
|
23
|
-
'web.mjs',
|
|
24
|
-
'mjs',
|
|
25
|
-
'web.js',
|
|
26
|
-
'js',
|
|
27
|
-
'web.ts',
|
|
28
|
-
'ts',
|
|
29
|
-
'web.tsx',
|
|
30
|
-
'tsx',
|
|
31
|
-
'json',
|
|
32
|
-
'web.jsx',
|
|
33
|
-
'jsx',
|
|
34
|
-
]
|
|
35
|
-
|
|
36
|
-
// Resolve file paths in the same order as webpack
|
|
37
|
-
const resolveModule = (resolveFn, filePath) => {
|
|
38
|
-
const extension = moduleFileExtensions.find((extension) =>
|
|
39
|
-
fs.existsSync(resolveFn(`${filePath}.${extension}`))
|
|
40
|
-
)
|
|
41
|
-
|
|
42
|
-
if (extension) {
|
|
43
|
-
return resolveFn(`${filePath}.${extension}`)
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
return resolveFn(`${filePath}.js`)
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
// config after eject: we're in ./config/
|
|
50
|
-
module.exports = {
|
|
51
|
-
dotenv: resolveApp('.env'),
|
|
52
|
-
appPath: resolveApp('.'),
|
|
53
|
-
appBuild: resolveApp('build'),
|
|
54
|
-
appPublic: resolveApp('public'),
|
|
55
|
-
appHtml: resolveApp('public/index.html'),
|
|
56
|
-
appIndexJs: resolveModule(resolveApp, 'src/index'),
|
|
57
|
-
appPackageJson: resolveApp('package.json'),
|
|
58
|
-
appSrc: resolveApp('src'),
|
|
59
|
-
appTsConfig: resolveApp('tsconfig.json'),
|
|
60
|
-
appJsConfig: resolveApp('jsconfig.json'),
|
|
61
|
-
yarnLockFile: resolveApp('yarn.lock'),
|
|
62
|
-
testsSetup: resolveModule(resolveApp, 'src/setupTests'),
|
|
63
|
-
proxySetup: resolveApp('src/setupProxy.js'),
|
|
64
|
-
appNodeModules: resolveApp('node_modules'),
|
|
65
|
-
swSrc: resolveModule(resolveApp, 'src/service-worker'),
|
|
66
|
-
componentsIndexJs: resolveApp('src/components/index'),
|
|
67
|
-
libBuild: resolveApp('lib'),
|
|
68
|
-
publicUrlOrPath,
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
module.exports.moduleFileExtensions = moduleFileExtensions
|
package/config/pnpTs.js
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const { resolveModuleName } = require('ts-pnp');
|
|
4
|
-
|
|
5
|
-
exports.resolveModuleName = (
|
|
6
|
-
typescript,
|
|
7
|
-
moduleName,
|
|
8
|
-
containingFile,
|
|
9
|
-
compilerOptions,
|
|
10
|
-
resolutionHost
|
|
11
|
-
) => {
|
|
12
|
-
return resolveModuleName(
|
|
13
|
-
moduleName,
|
|
14
|
-
containingFile,
|
|
15
|
-
compilerOptions,
|
|
16
|
-
resolutionHost,
|
|
17
|
-
typescript.resolveModuleName
|
|
18
|
-
);
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
exports.resolveTypeReferenceDirective = (
|
|
22
|
-
typescript,
|
|
23
|
-
moduleName,
|
|
24
|
-
containingFile,
|
|
25
|
-
compilerOptions,
|
|
26
|
-
resolutionHost
|
|
27
|
-
) => {
|
|
28
|
-
return resolveModuleName(
|
|
29
|
-
moduleName,
|
|
30
|
-
containingFile,
|
|
31
|
-
compilerOptions,
|
|
32
|
-
resolutionHost,
|
|
33
|
-
typescript.resolveTypeReferenceDirective
|
|
34
|
-
);
|
|
35
|
-
};
|