@authing/react-ui-components 4.4.0-alpha.0 → 4.4.0-alpha.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/dist/esm/guard.min.css +2 -0
- package/dist/esm/guard.min.js +2 -0
- package/dist/esm/guard.min.js.LICENSE.txt +193 -0
- package/dist/typings/index.d.ts +2 -0
- package/package.json +15 -231
- package/README.md +0 -33
- package/dist/asset-manifest.json +0 -26
- package/dist/index.html +0 -1
- package/dist/static/css/2.31681d53.chunk.css +0 -3
- package/dist/static/css/2.31681d53.chunk.css.map +0 -1
- package/dist/static/css/main.5aec6972.chunk.css +0 -2
- package/dist/static/css/main.5aec6972.chunk.css.map +0 -1
- package/dist/static/js/2.d2a1168e.chunk.js +0 -3
- package/dist/static/js/2.d2a1168e.chunk.js.LICENSE.txt +0 -86
- package/dist/static/js/2.d2a1168e.chunk.js.map +0 -1
- package/dist/static/js/3.b3dd7130.chunk.js +0 -2
- package/dist/static/js/3.b3dd7130.chunk.js.map +0 -1
- package/dist/static/js/main.b635a15a.chunk.js +0 -2
- package/dist/static/js/main.b635a15a.chunk.js.map +0 -1
- package/dist/static/js/runtime-main.6f6a6483.js +0 -2
- package/dist/static/js/runtime-main.6f6a6483.js.map +0 -1
- package/dist/static/media/loading.3cf0104f.svg +0 -32
- package/lib/index.min.css +0 -2
- package/lib/index.min.js +0 -2
- package/lib/index.min.js.LICENSE.txt +0 -53
- package/lib/static/media/loading.3cf0104f.svg +0 -32
- package/types/AuthClientProvider/AuthClientProvider.d.ts +0 -6
- package/types/AuthClientProvider/context.d.ts +0 -6
- package/types/AuthClientProvider/index.d.ts +0 -1
- package/types/Back/index.d.ts +0 -12
- package/types/BindTotp/businessRequest.d.ts +0 -5
- package/types/BindTotp/core/bindSuccess.d.ts +0 -6
- package/types/BindTotp/core/securityCode.d.ts +0 -8
- package/types/BindTotp/index.d.ts +0 -3
- package/types/BindTotp/interface.d.ts +0 -20
- package/types/ChangeLanguage/index.d.ts +0 -10
- package/types/ChangePassword/businessRequest.d.ts +0 -9
- package/types/ChangePassword/core/PasswordNotSafeReset.d.ts +0 -6
- package/types/ChangePassword/core/completePassword.d.ts +0 -2
- package/types/ChangePassword/core/firstLoginReset.d.ts +0 -6
- package/types/ChangePassword/core/rotateReset.d.ts +0 -7
- package/types/ChangePassword/index.d.ts +0 -11
- package/types/CompleteInfo/businessRequest.d.ts +0 -9
- package/types/CompleteInfo/core/completeInfo.d.ts +0 -11
- package/types/CompleteInfo/index.d.ts +0 -11
- package/types/CompleteInfo/interface.d.ts +0 -100
- package/types/CompleteInfo/utils.d.ts +0 -22
- package/types/CopyAbleText/index.d.ts +0 -5
- package/types/DownloadAuthenticator/index.d.ts +0 -3
- package/types/DownloadAuthenticator/interface.d.ts +0 -12
- package/types/Error/index.d.ts +0 -6
- package/types/Error/interface.d.ts +0 -8
- package/types/ForgetPassword/InputPassword/index.d.ts +0 -4
- package/types/ForgetPassword/core/inputIdentify.d.ts +0 -7
- package/types/ForgetPassword/core/resetPassword.d.ts +0 -15
- package/types/ForgetPassword/index.d.ts +0 -2
- package/types/ForgetPassword/interface.d.ts +0 -19
- package/types/Guard/Guard.d.ts +0 -10
- package/types/Guard/GuardModule/stateMachine.d.ts +0 -38
- package/types/Guard/authClient.d.ts +0 -14
- package/types/Guard/config.d.ts +0 -17
- package/types/Guard/core/hooks/useMultipleAccounts.d.ts +0 -322
- package/types/Guard/core/index.d.ts +0 -8
- package/types/Guard/core/renderContext.d.ts +0 -8
- package/types/Guard/core/renderModule.d.ts +0 -11
- package/types/Guard/core/useAppendConfig.d.ts +0 -4
- package/types/Guard/core/usePlugin.d.ts +0 -3
- package/types/Guard/event.d.ts +0 -92
- package/types/Guard/index.d.ts +0 -4
- package/types/Guard/module.d.ts +0 -34
- package/types/Guard/sso.d.ts +0 -19
- package/types/GuardButton/GuardButton.d.ts +0 -6
- package/types/GuardButton/index.d.ts +0 -1
- package/types/GuardFace/index.d.ts +0 -16
- package/types/GuardSelect/index.d.ts +0 -29
- package/types/IconFont/iconfont.d.ts +0 -1
- package/types/IconFont/index.d.ts +0 -8
- package/types/IconFont/useGuardIconfont.d.ts +0 -1
- package/types/IdentityBinding/IdentityBinding.d.ts +0 -5
- package/types/IdentityBinding/businessRequest.d.ts +0 -36
- package/types/IdentityBinding/index.d.ts +0 -2
- package/types/IdentityBinding/interface.d.ts +0 -27
- package/types/IdentityBindingAsk/IdentityBindingAsk.d.ts +0 -3
- package/types/IdentityBindingAsk/index.d.ts +0 -2
- package/types/IdentityBindingAsk/interface.d.ts +0 -21
- package/types/ImagePro/index.d.ts +0 -15
- package/types/InputNumber/index.d.ts +0 -5
- package/types/InputPassword/index.d.ts +0 -2
- package/types/Login/codemap.d.ts +0 -2
- package/types/Login/core/withAD.d.ts +0 -21
- package/types/Login/core/withAppQrcode.d.ts +0 -9
- package/types/Login/core/withLDAP.d.ts +0 -22
- package/types/Login/core/withPassword/FormItemAccount.d.ts +0 -6
- package/types/Login/core/withPassword/GraphicVerifyCode.d.ts +0 -7
- package/types/Login/core/withPassword/InputAccount.d.ts +0 -7
- package/types/Login/core/withPassword/index.d.ts +0 -28
- package/types/Login/core/withVerifyCode/FormItemIdentify.d.ts +0 -11
- package/types/Login/core/withVerifyCode/InputInternationPhone.d.ts +0 -7
- package/types/Login/core/withVerifyCode/VirtualDropdown.d.ts +0 -12
- package/types/Login/core/withVerifyCode/index.d.ts +0 -4
- package/types/Login/core/withVerifyCode/inputIdentify.d.ts +0 -7
- package/types/Login/core/withWechatMiniQrcode.d.ts +0 -11
- package/types/Login/core/withWechatmpQrcode.d.ts +0 -14
- package/types/Login/hooks/useLoginMultiple.d.ts +0 -64
- package/types/Login/index.d.ts +0 -5
- package/types/Login/interface.d.ts +0 -41
- package/types/Login/multipleAccounts/index.d.ts +0 -22
- package/types/Login/multipleAccounts/panel.d.ts +0 -45
- package/types/Login/resetAccountName/businessRequest.d.ts +0 -6
- package/types/Login/resetAccountName/index.d.ts +0 -3
- package/types/Login/socialLogin/IdpButton/index.d.ts +0 -2
- package/types/Login/socialLogin/index.d.ts +0 -18
- package/types/Login/socialLogin/postMessage.d.ts +0 -7
- package/types/MFA/VerifyCodeInput/VerifyCodeFormItem.d.ts +0 -8
- package/types/MFA/VerifyCodeInput/index.d.ts +0 -14
- package/types/MFA/businessRequest.d.ts +0 -46
- package/types/MFA/codemap.d.ts +0 -2
- package/types/MFA/core/email.d.ts +0 -23
- package/types/MFA/core/face.d.ts +0 -2
- package/types/MFA/core/face_deps.d.ts +0 -11
- package/types/MFA/core/sms.d.ts +0 -28
- package/types/MFA/core/totp.d.ts +0 -20
- package/types/MFA/index.d.ts +0 -9
- package/types/MFA/interface.d.ts +0 -43
- package/types/MFA/mfaMethods/index.d.ts +0 -8
- package/types/NeedHelpView/core/describeQuestions.d.ts +0 -8
- package/types/NeedHelpView/index.d.ts +0 -2
- package/types/NewSubmitSuccess/index.d.ts +0 -2
- package/types/NewSubmitSuccess/interface.d.ts +0 -19
- package/types/Qrcode/UiQrCode.d.ts +0 -51
- package/types/Qrcode/WorkQrCode.d.ts +0 -41
- package/types/Qrcode/hooks/useImage.d.ts +0 -4
- package/types/Qrcode/hooks/usePostQrCode.d.ts +0 -72
- package/types/Qrcode/hooks/usePreQrCode.d.ts +0 -31
- package/types/Qrcode/hooks/useStatus.d.ts +0 -7
- package/types/Qrcode/index.d.ts +0 -7
- package/types/RecoveryCode/businessRequest.d.ts +0 -5
- package/types/RecoveryCode/core/saveCode.d.ts +0 -5
- package/types/RecoveryCode/core/useCode.d.ts +0 -7
- package/types/RecoveryCode/index.d.ts +0 -5
- package/types/RecoveryCode/interface.d.ts +0 -8
- package/types/Register/codemap.d.ts +0 -2
- package/types/Register/components/Agreements/index.d.ts +0 -11
- package/types/Register/core/WithCode.d.ts +0 -17
- package/types/Register/core/WithEmail.d.ts +0 -13
- package/types/Register/core/WithEmailCode.d.ts +0 -11
- package/types/Register/core/WithPhone.d.ts +0 -10
- package/types/Register/index.d.ts +0 -2
- package/types/Register/interface.d.ts +0 -25
- package/types/Register/utils.d.ts +0 -1
- package/types/SelectAccount/index.d.ts +0 -3
- package/types/SelfUnlock/core/selfUnlock.d.ts +0 -8
- package/types/SelfUnlock/index.d.ts +0 -2
- package/types/SelfUnlock/interface.d.ts +0 -15
- package/types/SendCode/SendCodeBtn.d.ts +0 -10
- package/types/SendCode/SendCodeByEmail.d.ts +0 -13
- package/types/SendCode/SendCodeByPhone.d.ts +0 -15
- package/types/SendCode/index.d.ts +0 -9
- package/types/ShieldSpin/index.d.ts +0 -7
- package/types/SingleComponent/SingleComponent.d.ts +0 -3
- package/types/SingleComponent/index.d.ts +0 -3
- package/types/SubmitButton/index.d.ts +0 -10
- package/types/SubmitSuccess/index.d.ts +0 -2
- package/types/SubmitSuccess/interface.d.ts +0 -17
- package/types/TenantPortalSelect/index.d.ts +0 -3
- package/types/TenantPortalSelect/interface.d.ts +0 -33
- package/types/Type/application.d.ts +0 -316
- package/types/Type/index.d.ts +0 -84
- package/types/UploadImage/index.d.ts +0 -5
- package/types/ValidatorRules/PasswordFormItem.d.ts +0 -6
- package/types/ValidatorRules/ValidatorFormItem.d.ts +0 -8
- package/types/ValidatorRules/index.d.ts +0 -32
- package/types/ValidatorRules/useCheckRepeat.d.ts +0 -1
- package/types/VerifyCodeInput/index.d.ts +0 -10
- package/types/_utils/GuardErrorCode.d.ts +0 -11
- package/types/_utils/appendConfig.d.ts +0 -4
- package/types/_utils/clipboard.d.ts +0 -1
- package/types/_utils/config/index.d.ts +0 -109
- package/types/_utils/context.d.ts +0 -158
- package/types/_utils/corsVerification.d.ts +0 -1
- package/types/_utils/countryList.d.ts +0 -7
- package/types/_utils/errorFace.d.ts +0 -12
- package/types/_utils/facePlugin/index.d.ts +0 -4
- package/types/_utils/facePlugin/interface.d.ts +0 -5
- package/types/_utils/flowHandleStorage.d.ts +0 -4
- package/types/_utils/getCaptchaUrl.d.ts +0 -1
- package/types/_utils/guardDocument.d.ts +0 -3
- package/types/_utils/guardHttp.d.ts +0 -27
- package/types/_utils/hooks/index.d.ts +0 -43
- package/types/_utils/http.d.ts +0 -33
- package/types/_utils/index.d.ts +0 -98
- package/types/_utils/initAppId.d.ts +0 -7
- package/types/_utils/locales/en-us/index.d.ts +0 -4
- package/types/_utils/locales/index.d.ts +0 -8
- package/types/_utils/locales/ja-jp/index.d.ts +0 -4
- package/types/_utils/locales/zh-cn/index.d.ts +0 -4
- package/types/_utils/locales/zh-tw/index.d.ts +0 -4
- package/types/_utils/logger/index.d.ts +0 -15
- package/types/_utils/logger/interface.d.ts +0 -5
- package/types/_utils/popupCenter.d.ts +0 -9
- package/types/_utils/responseManagement/index.d.ts +0 -3
- package/types/_utils/responseManagement/interface.d.ts +0 -25
- package/types/_utils/tenant.d.ts +0 -19
- package/types/_utils/useErrorText.d.ts +0 -5
- package/types/index.d.ts +0 -6
- package/types/version/index.d.ts +0 -2
- package/types/version/version.d.ts +0 -2
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
/*
|
|
2
|
+
object-assign
|
|
3
|
+
(c) Sindre Sorhus
|
|
4
|
+
@license MIT
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/*
|
|
8
|
+
object-assign
|
|
9
|
+
(c) Sindre Sorhus
|
|
10
|
+
@license MIT
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
/*!
|
|
14
|
+
Copyright (c) 2018 Jed Watson.
|
|
15
|
+
Licensed under the MIT License (MIT), see
|
|
16
|
+
http://jedwatson.github.io/classnames
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
/*! ./Component */
|
|
20
|
+
|
|
21
|
+
/*! ./Context */
|
|
22
|
+
|
|
23
|
+
/*! ./checkPropTypes */
|
|
24
|
+
|
|
25
|
+
/*! ./cjs/react-is.development.js */
|
|
26
|
+
|
|
27
|
+
/*! ./factoryWithTypeCheckers */
|
|
28
|
+
|
|
29
|
+
/*! ./lib/ReactPropTypesSecret */
|
|
30
|
+
|
|
31
|
+
/*! ./lib/has */
|
|
32
|
+
|
|
33
|
+
/*! ./mediaQuery */
|
|
34
|
+
|
|
35
|
+
/*! ./toQuery */
|
|
36
|
+
|
|
37
|
+
/*! ./useMediaQuery */
|
|
38
|
+
|
|
39
|
+
/*! For license information please see guard.min.js.LICENSE.txt */
|
|
40
|
+
|
|
41
|
+
/*! css-mediaquery */
|
|
42
|
+
|
|
43
|
+
/*! hyphenate-style-name */
|
|
44
|
+
|
|
45
|
+
/*! matchmediaquery */
|
|
46
|
+
|
|
47
|
+
/*! object-assign */
|
|
48
|
+
|
|
49
|
+
/*! prop-types */
|
|
50
|
+
|
|
51
|
+
/*! react */
|
|
52
|
+
|
|
53
|
+
/*! react-is */
|
|
54
|
+
|
|
55
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
56
|
+
|
|
57
|
+
/*! shallow-equal */
|
|
58
|
+
|
|
59
|
+
/*!**********************!*\
|
|
60
|
+
!*** ./src/index.ts ***!
|
|
61
|
+
\**********************/
|
|
62
|
+
|
|
63
|
+
/*!************************!*\
|
|
64
|
+
!*** ./src/Context.ts ***!
|
|
65
|
+
\************************/
|
|
66
|
+
|
|
67
|
+
/*!************************!*\
|
|
68
|
+
!*** ./src/toQuery.ts ***!
|
|
69
|
+
\************************/
|
|
70
|
+
|
|
71
|
+
/*!**************************!*\
|
|
72
|
+
!*** ./src/Component.ts ***!
|
|
73
|
+
\**************************/
|
|
74
|
+
|
|
75
|
+
/*!***************************!*\
|
|
76
|
+
!*** ./src/mediaQuery.ts ***!
|
|
77
|
+
\***************************/
|
|
78
|
+
|
|
79
|
+
/*!******************************!*\
|
|
80
|
+
!*** ./src/useMediaQuery.ts ***!
|
|
81
|
+
\******************************/
|
|
82
|
+
|
|
83
|
+
/*!****************************************!*\
|
|
84
|
+
!*** ./node_modules/react-is/index.js ***!
|
|
85
|
+
\****************************************/
|
|
86
|
+
|
|
87
|
+
/*!******************************************!*\
|
|
88
|
+
!*** ./node_modules/prop-types/index.js ***!
|
|
89
|
+
\******************************************/
|
|
90
|
+
|
|
91
|
+
/*!********************************************!*\
|
|
92
|
+
!*** ./node_modules/prop-types/lib/has.js ***!
|
|
93
|
+
\********************************************/
|
|
94
|
+
|
|
95
|
+
/*!*********************************************!*\
|
|
96
|
+
!*** ./node_modules/object-assign/index.js ***!
|
|
97
|
+
\*********************************************/
|
|
98
|
+
|
|
99
|
+
/*!**********************************************!*\
|
|
100
|
+
!*** ./node_modules/css-mediaquery/index.js ***!
|
|
101
|
+
\**********************************************/
|
|
102
|
+
|
|
103
|
+
/*!***********************************************!*\
|
|
104
|
+
!*** ./node_modules/matchmediaquery/index.js ***!
|
|
105
|
+
\***********************************************/
|
|
106
|
+
|
|
107
|
+
/*!***************************************************!*\
|
|
108
|
+
!*** ./node_modules/prop-types/checkPropTypes.js ***!
|
|
109
|
+
\***************************************************/
|
|
110
|
+
|
|
111
|
+
/*!****************************************************!*\
|
|
112
|
+
!*** ./node_modules/hyphenate-style-name/index.js ***!
|
|
113
|
+
\****************************************************/
|
|
114
|
+
|
|
115
|
+
/*!******************************************************!*\
|
|
116
|
+
!*** ./node_modules/shallow-equal/dist/index.esm.js ***!
|
|
117
|
+
\******************************************************/
|
|
118
|
+
|
|
119
|
+
/*!***********************************************************!*\
|
|
120
|
+
!*** ./node_modules/react-is/cjs/react-is.development.js ***!
|
|
121
|
+
\***********************************************************/
|
|
122
|
+
|
|
123
|
+
/*!************************************************************!*\
|
|
124
|
+
!*** ./node_modules/prop-types/factoryWithTypeCheckers.js ***!
|
|
125
|
+
\************************************************************/
|
|
126
|
+
|
|
127
|
+
/*!*************************************************************!*\
|
|
128
|
+
!*** ./node_modules/prop-types/lib/ReactPropTypesSecret.js ***!
|
|
129
|
+
\*************************************************************/
|
|
130
|
+
|
|
131
|
+
/*!**************************************************************************************!*\
|
|
132
|
+
!*** external {"commonjs":"react","commonjs2":"react","amd":"react","root":"React"} ***!
|
|
133
|
+
\**************************************************************************************/
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* @license qrcode.react
|
|
137
|
+
* Copyright (c) Paul O'Shannessy
|
|
138
|
+
* SPDX-License-Identifier: ISC
|
|
139
|
+
*/
|
|
140
|
+
|
|
141
|
+
/** @license React v0.19.1
|
|
142
|
+
* scheduler.production.min.js
|
|
143
|
+
*
|
|
144
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
145
|
+
*
|
|
146
|
+
* This source code is licensed under the MIT license found in the
|
|
147
|
+
* LICENSE file in the root directory of this source tree.
|
|
148
|
+
*/
|
|
149
|
+
|
|
150
|
+
/** @license React v16.13.1
|
|
151
|
+
* react-is.production.min.js
|
|
152
|
+
*
|
|
153
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
154
|
+
*
|
|
155
|
+
* This source code is licensed under the MIT license found in the
|
|
156
|
+
* LICENSE file in the root directory of this source tree.
|
|
157
|
+
*/
|
|
158
|
+
|
|
159
|
+
/** @license React v16.14.0
|
|
160
|
+
* react-dom.production.min.js
|
|
161
|
+
*
|
|
162
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
163
|
+
*
|
|
164
|
+
* This source code is licensed under the MIT license found in the
|
|
165
|
+
* LICENSE file in the root directory of this source tree.
|
|
166
|
+
*/
|
|
167
|
+
|
|
168
|
+
/** @license React v16.14.0
|
|
169
|
+
* react.production.min.js
|
|
170
|
+
*
|
|
171
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
172
|
+
*
|
|
173
|
+
* This source code is licensed under the MIT license found in the
|
|
174
|
+
* LICENSE file in the root directory of this source tree.
|
|
175
|
+
*/
|
|
176
|
+
|
|
177
|
+
/** @preserve
|
|
178
|
+
* Counter block mode compatible with Dr Brian Gladman fileenc.c
|
|
179
|
+
* derived from CryptoJS.mode.CTR
|
|
180
|
+
* Jan Hruby jhruby.web@gmail.com
|
|
181
|
+
*/
|
|
182
|
+
|
|
183
|
+
/** @preserve
|
|
184
|
+
(c) 2012 by Cédric Mesnil. All rights reserved.
|
|
185
|
+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
186
|
+
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
187
|
+
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
188
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
189
|
+
*/
|
|
190
|
+
|
|
191
|
+
//! moment.js
|
|
192
|
+
|
|
193
|
+
//! moment.js locale configuration
|
package/package.json
CHANGED
|
@@ -1,239 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@authing/react-ui-components",
|
|
3
|
-
"version": "4.4.0-alpha.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
3
|
+
"version": "4.4.0-alpha.2",
|
|
4
|
+
"description": "Authing Guard for React",
|
|
5
|
+
"module": "dist/esm/guard.min.js",
|
|
6
|
+
"types": "dist/typings/index.d.ts",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"autoinstall": "npm ci",
|
|
9
|
+
"build:lib": "node scripts/build.js",
|
|
10
|
+
"release:official": "npm publish --verbose --access public",
|
|
11
|
+
"release:alpha": "npm publish --verbose --tag=alpha --access public"
|
|
12
|
+
},
|
|
7
13
|
"files": [
|
|
8
14
|
"dist",
|
|
9
|
-
"
|
|
10
|
-
"
|
|
15
|
+
"package.json",
|
|
16
|
+
"package-lock.json"
|
|
11
17
|
],
|
|
18
|
+
"author": "https://github.com/authing",
|
|
19
|
+
"license": "MIT",
|
|
12
20
|
"dependencies": {
|
|
13
|
-
"
|
|
14
|
-
"authing-js-sdk": "4.23.36-alpha.1",
|
|
15
|
-
"classnames": "^2.3.1",
|
|
16
|
-
"fastclick": "^1.0.6",
|
|
17
|
-
"global": "^4.4.0",
|
|
18
|
-
"phone": "^3.1.12",
|
|
19
|
-
"prompt": "^1.3.0",
|
|
20
|
-
"qs": "^6.9.4",
|
|
21
|
-
"react-responsive": "^9.0.0-beta.5",
|
|
22
|
-
"react-use": "^17.3.1",
|
|
23
|
-
"ua-parser-js": "^1.0.2",
|
|
24
|
-
"wildcard": "^1.1.2"
|
|
25
|
-
},
|
|
26
|
-
"peerDependencies": {
|
|
27
|
-
"react": ">=16.9.0",
|
|
28
|
-
"react-dom": ">=16.9.0"
|
|
29
|
-
},
|
|
30
|
-
"scripts": {
|
|
31
|
-
"build": "node ./scripts/build.js",
|
|
32
|
-
"build:types": "npx tsc",
|
|
33
|
-
"build:lib": "clear && npm run build:types && node ./scripts/lib.js",
|
|
34
|
-
"clear": "npm run clear:dist && npm run clear:lib && npm run clear:types",
|
|
35
|
-
"clear:dist": "rm -rf dist",
|
|
36
|
-
"clear:lib": "rm -rf lib",
|
|
37
|
-
"clear:types": "rm -rf types",
|
|
38
|
-
"log-tag": "node ./scripts/tag.js",
|
|
39
|
-
"pretty-quick": "pretty-quick",
|
|
40
|
-
"prestart": "npm run log-tag && npm run generate-version && npm run generate-examples",
|
|
41
|
-
"prebuild:lib": "npm run log-tag && npm run generate-version && npm run generate-examples",
|
|
42
|
-
"prepare": "cd ../.. && husky install packages/react-components/.husky",
|
|
43
|
-
"pub": "npm run build:lib && node ./scripts/publish.js",
|
|
44
|
-
"start": "PORT=1221 node ./scripts/start.js",
|
|
45
|
-
"vite": "vite",
|
|
46
|
-
"generate-version": "node ./scripts/generate-version",
|
|
47
|
-
"generate-examples": "node ./scripts/generate-examples.js",
|
|
48
|
-
"test": "node ./scripts/dev/pre-build.js",
|
|
49
|
-
"lint:fix": "eslint --fix --ext .ts,.tsx,.js ./components"
|
|
50
|
-
},
|
|
51
|
-
"publishConfig": {
|
|
52
|
-
"access": "public",
|
|
53
|
-
"registry": "https://registry.npmjs.org"
|
|
54
|
-
},
|
|
55
|
-
"eslintConfig": {
|
|
56
|
-
"extends": [
|
|
57
|
-
"react-app",
|
|
58
|
-
"react-app/jest"
|
|
59
|
-
]
|
|
60
|
-
},
|
|
61
|
-
"browserslist": {
|
|
62
|
-
"production": [
|
|
63
|
-
">0.2%",
|
|
64
|
-
"not dead",
|
|
65
|
-
"not op_mini all",
|
|
66
|
-
"not ie < 10"
|
|
67
|
-
],
|
|
68
|
-
"development": [
|
|
69
|
-
"last 1 chrome version",
|
|
70
|
-
"last 1 firefox version",
|
|
71
|
-
"last 1 safari version"
|
|
72
|
-
]
|
|
73
|
-
},
|
|
74
|
-
"jest": {
|
|
75
|
-
"roots": [
|
|
76
|
-
"<rootDir>/components"
|
|
77
|
-
],
|
|
78
|
-
"collectCoverageFrom": [
|
|
79
|
-
"components/**/*.{js,jsx,ts,tsx}",
|
|
80
|
-
"!components/**/*.d.ts"
|
|
81
|
-
],
|
|
82
|
-
"setupFiles": [
|
|
83
|
-
"react-app-polyfill/jsdom"
|
|
84
|
-
],
|
|
85
|
-
"setupFilesAfterEnv": [
|
|
86
|
-
"<rootDir>/components/setupTests.ts"
|
|
87
|
-
],
|
|
88
|
-
"testMatch": [
|
|
89
|
-
"<rootDir>/components/**/__tests__/**/*.{js,jsx,ts,tsx}",
|
|
90
|
-
"<rootDir>/components/**/*.{spec,test}.{js,jsx,ts,tsx}"
|
|
91
|
-
],
|
|
92
|
-
"testEnvironment": "jsdom",
|
|
93
|
-
"testRunner": "/Users/lixpng/workspace/authing/ui-components/packages/react-components/node_modules/jest-circus/runner.js",
|
|
94
|
-
"transform": {
|
|
95
|
-
"^.+\\.(js|jsx|mjs|cjs|ts|tsx)$": "<rootDir>/node_modules/babel-jest",
|
|
96
|
-
"^.+\\.css$": "<rootDir>/config/jest/cssTransform.js",
|
|
97
|
-
"^(?!.*\\.(js|jsx|mjs|cjs|ts|tsx|css|json)$)": "<rootDir>/config/jest/fileTransform.js"
|
|
98
|
-
},
|
|
99
|
-
"transformIgnorePatterns": [
|
|
100
|
-
"[/\\\\]node_modules[/\\\\].+\\.(js|jsx|mjs|cjs|ts|tsx)$",
|
|
101
|
-
"^.+\\.module\\.(css|sass|scss)$"
|
|
102
|
-
],
|
|
103
|
-
"modulePaths": [],
|
|
104
|
-
"moduleNameMapper": {
|
|
105
|
-
"^react-native$": "react-native-web",
|
|
106
|
-
"^.+\\.module\\.(css|sass|scss)$": "identity-obj-proxy"
|
|
107
|
-
},
|
|
108
|
-
"moduleFileExtensions": [
|
|
109
|
-
"web.js",
|
|
110
|
-
"js",
|
|
111
|
-
"web.ts",
|
|
112
|
-
"ts",
|
|
113
|
-
"web.tsx",
|
|
114
|
-
"tsx",
|
|
115
|
-
"json",
|
|
116
|
-
"web.jsx",
|
|
117
|
-
"jsx",
|
|
118
|
-
"node"
|
|
119
|
-
],
|
|
120
|
-
"watchPlugins": [
|
|
121
|
-
"jest-watch-typeahead/filename",
|
|
122
|
-
"jest-watch-typeahead/testname"
|
|
123
|
-
],
|
|
124
|
-
"resetMocks": true
|
|
125
|
-
},
|
|
126
|
-
"babel": {
|
|
127
|
-
"presets": [
|
|
128
|
-
"react-app"
|
|
129
|
-
]
|
|
130
|
-
},
|
|
131
|
-
"devDependencies": {
|
|
132
|
-
"@ant-design/icons": "^4.2.2",
|
|
133
|
-
"@babel/core": "^7.17.8",
|
|
134
|
-
"@babel/plugin-proposal-class-properties": "^7.16.7",
|
|
135
|
-
"@babel/plugin-transform-runtime": "^7.17.0",
|
|
136
|
-
"@babel/preset-env": "^7.16.11",
|
|
137
|
-
"@babel/preset-flow": "^7.16.7",
|
|
138
|
-
"@babel/preset-react": "^7.16.7",
|
|
139
|
-
"@babel/preset-typescript": "^7.16.7",
|
|
140
|
-
"@pmmmwh/react-refresh-webpack-plugin": "0.4.2",
|
|
141
|
-
"@svgr/webpack": "5.4.0",
|
|
142
|
-
"@testing-library/jest-dom": "^5.11.4",
|
|
143
|
-
"@testing-library/react": "^11.1.0",
|
|
144
|
-
"@testing-library/user-event": "^12.1.10",
|
|
145
|
-
"@types/jest": "^26.0.15",
|
|
146
|
-
"@types/lodash": "^4.14.175",
|
|
147
|
-
"@types/node": "^12.0.0",
|
|
148
|
-
"@types/qs": "^6.9.5",
|
|
149
|
-
"@types/react": "^16.9.53",
|
|
150
|
-
"@types/react-dom": "^16.9.8",
|
|
151
|
-
"@types/shortid": "^0.0.29",
|
|
152
|
-
"@types/ua-parser-js": "^0.7.36",
|
|
153
|
-
"@typescript-eslint/eslint-plugin": "^4.5.0",
|
|
154
|
-
"@typescript-eslint/parser": "^4.5.0",
|
|
155
|
-
"@vitejs/plugin-react": "1.1.0",
|
|
156
|
-
"axios": "^0.27.2",
|
|
157
|
-
"babel-eslint": "^10.1.0",
|
|
158
|
-
"babel-jest": "^26.6.0",
|
|
159
|
-
"babel-loader": "8.1.0",
|
|
160
|
-
"babel-plugin-import": "^1.13.1",
|
|
161
|
-
"babel-plugin-named-asset-import": "^0.3.7",
|
|
162
|
-
"babel-preset-react-app": "^10.0.0",
|
|
163
|
-
"bfj": "^7.0.2",
|
|
164
|
-
"camelcase": "^6.1.0",
|
|
165
|
-
"case-sensitive-paths-webpack-plugin": "2.3.0",
|
|
166
|
-
"chalk": "^4.1.2",
|
|
167
|
-
"cross-env": "^7.0.3",
|
|
168
|
-
"css-loader": "4.3.0",
|
|
169
|
-
"dotenv": "8.2.0",
|
|
170
|
-
"dotenv-expand": "5.1.0",
|
|
171
|
-
"eslint": "^7.11.0",
|
|
172
|
-
"eslint-config-prettier": "^6.15.0",
|
|
173
|
-
"eslint-config-react-app": "^6.0.0",
|
|
174
|
-
"eslint-plugin-flowtype": "^5.2.0",
|
|
175
|
-
"eslint-plugin-import": "^2.22.1",
|
|
176
|
-
"eslint-plugin-jest": "^24.1.0",
|
|
177
|
-
"eslint-plugin-jsx-a11y": "^6.3.1",
|
|
178
|
-
"eslint-plugin-prettier": "^3.1.4",
|
|
179
|
-
"eslint-plugin-react": "^7.21.5",
|
|
180
|
-
"eslint-plugin-react-hooks": "^4.2.0",
|
|
181
|
-
"eslint-plugin-testing-library": "^3.9.2",
|
|
182
|
-
"eslint-webpack-plugin": "^2.1.0",
|
|
183
|
-
"face-api.js": "^0.22.2",
|
|
184
|
-
"file-loader": "6.1.1",
|
|
185
|
-
"fs-extra": "^9.0.1",
|
|
186
|
-
"html-webpack-plugin": "4.5.0",
|
|
187
|
-
"husky": "^7.0.4",
|
|
188
|
-
"i18next": "^20.1.0",
|
|
189
|
-
"i18next-browser-languagedetector": "^6.1.0",
|
|
190
|
-
"identity-obj-proxy": "3.0.0",
|
|
191
|
-
"jest": "26.6.0",
|
|
192
|
-
"jest-circus": "26.6.0",
|
|
193
|
-
"jest-resolve": "26.6.0",
|
|
194
|
-
"jest-watch-typeahead": "0.6.1",
|
|
195
|
-
"less": "^3.12.2",
|
|
196
|
-
"less-loader": "^7.0.2",
|
|
197
|
-
"mini-css-extract-plugin": "0.11.3",
|
|
198
|
-
"npm-dts-webpack-plugin": "^1.3.5",
|
|
199
|
-
"optimize-css-assets-webpack-plugin": "5.0.4",
|
|
200
|
-
"ora": "^5.4.1",
|
|
201
|
-
"pnp-webpack-plugin": "1.6.4",
|
|
202
|
-
"postcss-flexbugs-fixes": "4.2.1",
|
|
203
|
-
"postcss-loader": "3.0.0",
|
|
204
|
-
"postcss-normalize": "8.0.1",
|
|
205
|
-
"postcss-preset-env": "6.7.0",
|
|
206
|
-
"postcss-rename-selector": "^0.1.1",
|
|
207
|
-
"postcss-safe-parser": "5.0.2",
|
|
208
|
-
"prettier": "^2.1.2",
|
|
209
|
-
"pretty-quick": "^3.0.0",
|
|
210
|
-
"query-string": "^7.0.0",
|
|
211
|
-
"raw-loader": "^4.0.2",
|
|
212
|
-
"react": "16.14.0",
|
|
213
|
-
"react-app-polyfill": "^2.0.0",
|
|
214
|
-
"react-dev-utils": "^11.0.0",
|
|
215
|
-
"react-dom": "16.14.0",
|
|
216
|
-
"react-frame-component": "^5.2.1",
|
|
217
|
-
"react-i18next": "^11.8.12",
|
|
218
|
-
"react-refresh": "^0.8.3",
|
|
219
|
-
"resolve": "1.18.1",
|
|
220
|
-
"resolve-url-loader": "^3.1.2",
|
|
221
|
-
"sass-loader": "8.0.2",
|
|
222
|
-
"semver": "7.3.2",
|
|
223
|
-
"shelljs": "^0.8.4",
|
|
224
|
-
"shortid": "^2.2.16",
|
|
225
|
-
"signale": "^1.4.0",
|
|
226
|
-
"style-loader": "1.3.0",
|
|
227
|
-
"terser-webpack-plugin": "4.2.3",
|
|
228
|
-
"ts-pnp": "1.2.0",
|
|
229
|
-
"typescript": "^4.0.3",
|
|
230
|
-
"url-loader": "4.1.1",
|
|
231
|
-
"vite": "^2.6.14",
|
|
232
|
-
"web-vitals": "^0.2.4",
|
|
233
|
-
"webpack": "4.44.2",
|
|
234
|
-
"webpack-bundle-analyzer": "^4.1.0",
|
|
235
|
-
"webpack-dev-server": "3.11.0",
|
|
236
|
-
"webpack-manifest-plugin": "2.2.0",
|
|
237
|
-
"workbox-webpack-plugin": "5.1.4"
|
|
21
|
+
"@authing/guard-shim-react": "^4.4.0-alpha.2"
|
|
238
22
|
}
|
|
239
23
|
}
|
package/README.md
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
# Authing React UI Components
|
|
2
|
-
|
|
3
|
-
[Authing](https://authing.cn) 是一个企业级身份认证提供商,其集成了 OAuth、LDAP、OIDC 等多种身份认证和授权解决方案。此仓库包含了 Authing 提供的一些 React UI 组件。
|
|
4
|
-
|
|
5
|
-
## Guard
|
|
6
|
-
|
|
7
|
-
Guard 是一种可嵌入的登录表单,可根据你的需求进行配置,建议用于单页面应用程序。 它使你可以轻松添加各种社会化登录方式,以便你的用户可以无缝登录,并且在不同平台拥有一致的登录体验。
|
|
8
|
-
Guard 拥有以下基本功能:
|
|
9
|
-
|
|
10
|
-
- 登录:
|
|
11
|
-
- 账号密码登录(包括手机号 + 密码、邮箱 + 密码、用户名 + 密码);
|
|
12
|
-
- 手机验证码登录;
|
|
13
|
-
- 微信小程序扫码登录(需先在后台配置);
|
|
14
|
-
- APP 扫码登录(需要接入 APP 扫码登录);
|
|
15
|
-
- 小程序扫码登录(需先在后台配置);
|
|
16
|
-
- 社会化登录(需要配置社会化登录);
|
|
17
|
-
- 企业身份源登录(需要配置企业身份源);
|
|
18
|
-
- 注册:
|
|
19
|
-
- 账号密码注册;
|
|
20
|
-
- 手机验证码注册;
|
|
21
|
-
- 忘记密码以及重置密码;
|
|
22
|
-
- MFA 认证;
|
|
23
|
-
- 响应式特性(兼容移动端和 PC 端);
|
|
24
|
-
- 完整的 UI 自定义功能;
|
|
25
|
-
- 兼容主流前端 UI 库:
|
|
26
|
-
- 原生 JavaScript 调用;
|
|
27
|
-
- Vue 组件;
|
|
28
|
-
- React 组件;
|
|
29
|
-
- Angular 组件。
|
|
30
|
-
|
|
31
|
-

|
|
32
|
-
|
|
33
|
-
详细使用文档请查看 [Guard for Web](https://docs.authing.cn/sdk/guard/#guard-for-react)
|
package/dist/asset-manifest.json
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"files": {
|
|
3
|
-
"main.css": "/static/css/main.5aec6972.chunk.css",
|
|
4
|
-
"main.js": "/static/js/main.b635a15a.chunk.js",
|
|
5
|
-
"main.js.map": "/static/js/main.b635a15a.chunk.js.map",
|
|
6
|
-
"runtime-main.js": "/static/js/runtime-main.6f6a6483.js",
|
|
7
|
-
"runtime-main.js.map": "/static/js/runtime-main.6f6a6483.js.map",
|
|
8
|
-
"static/css/2.31681d53.chunk.css": "/static/css/2.31681d53.chunk.css",
|
|
9
|
-
"static/js/2.d2a1168e.chunk.js": "/static/js/2.d2a1168e.chunk.js",
|
|
10
|
-
"static/js/2.d2a1168e.chunk.js.map": "/static/js/2.d2a1168e.chunk.js.map",
|
|
11
|
-
"static/js/3.b3dd7130.chunk.js": "/static/js/3.b3dd7130.chunk.js",
|
|
12
|
-
"static/js/3.b3dd7130.chunk.js.map": "/static/js/3.b3dd7130.chunk.js.map",
|
|
13
|
-
"index.html": "/index.html",
|
|
14
|
-
"static/css/2.31681d53.chunk.css.map": "/static/css/2.31681d53.chunk.css.map",
|
|
15
|
-
"static/css/main.5aec6972.chunk.css.map": "/static/css/main.5aec6972.chunk.css.map",
|
|
16
|
-
"static/js/2.d2a1168e.chunk.js.LICENSE.txt": "/static/js/2.d2a1168e.chunk.js.LICENSE.txt",
|
|
17
|
-
"static/media/loading.3cf0104f.svg": "/static/media/loading.3cf0104f.svg"
|
|
18
|
-
},
|
|
19
|
-
"entrypoints": [
|
|
20
|
-
"static/js/runtime-main.6f6a6483.js",
|
|
21
|
-
"static/css/2.31681d53.chunk.css",
|
|
22
|
-
"static/js/2.d2a1168e.chunk.js",
|
|
23
|
-
"static/css/main.5aec6972.chunk.css",
|
|
24
|
-
"static/js/main.b635a15a.chunk.js"
|
|
25
|
-
]
|
|
26
|
-
}
|
package/dist/index.html
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<!doctype html><html lang="zh-TW"><head><meta charset="utf-8"/><link rel="icon" href="https://files.authing.co/authing-console/login_logo.svg"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><title>Guard Examples</title><link href="/static/css/2.31681d53.chunk.css" rel="stylesheet"><link href="/static/css/main.5aec6972.chunk.css" rel="stylesheet"></head><body><div id="root"></div><script>!function(e){function t(t){for(var n,i,a=t[0],c=t[1],l=t[2],s=0,p=[];s<a.length;s++)i=a[s],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&p.push(o[i][0]),o[i]=0;for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(e[n]=c[n]);for(f&&f(t);p.length;)p.shift()();return u.push.apply(u,l||[]),r()}function r(){for(var e,t=0;t<u.length;t++){for(var r=u[t],n=!0,a=1;a<r.length;a++){var c=r[a];0!==o[c]&&(n=!1)}n&&(u.splice(t--,1),e=i(i.s=r[0]))}return e}var n={},o={1:0},u=[];function i(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.e=function(e){var t=[],r=o[e];if(0!==r)if(r)t.push(r[2]);else{var n=new Promise((function(t,n){r=o[e]=[t,n]}));t.push(r[2]=n);var u,a=document.createElement("script");a.charset="utf-8",a.timeout=120,i.nc&&a.setAttribute("nonce",i.nc),a.src=function(e){return i.p+"static/js/"+({}[e]||e)+"."+{3:"b3dd7130"}[e]+".chunk.js"}(e);var c=new Error;u=function(t){a.onerror=a.onload=null,clearTimeout(l);var r=o[e];if(0!==r){if(r){var n=t&&("load"===t.type?"missing":t.type),u=t&&t.target&&t.target.src;c.message="Loading chunk "+e+" failed.\n("+n+": "+u+")",c.name="ChunkLoadError",c.type=n,c.request=u,r[1](c)}o[e]=void 0}};var l=setTimeout((function(){u({type:"timeout",target:a})}),12e4);a.onerror=a.onload=u,document.head.appendChild(a)}return Promise.all(t)},i.m=e,i.c=n,i.d=function(e,t,r){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)i.d(r,n,function(t){return e[t]}.bind(null,n));return r},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/",i.oe=function(e){throw console.error(e),e};var a=this["webpackJsonp@authing/react-ui-components"]=this["webpackJsonp@authing/react-ui-components"]||[],c=a.push.bind(a);a.push=t,a=a.slice();for(var l=0;l<a.length;l++)t(a[l]);var f=c;r()}([])</script><script src="/static/js/2.d2a1168e.chunk.js"></script><script src="/static/js/main.b635a15a.chunk.js"></script></body></html>
|