@authing/react-ui-components 3.0.0-rc.12 → 3.0.0-rc.16

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 (898) hide show
  1. package/lib/index.d.ts +4164 -8
  2. package/lib/index.min.css +2 -1
  3. package/lib/index.min.js +2 -0
  4. package/{dist → lib}/index.min.js.LICENSE.txt +2 -0
  5. package/{dist → lib}/static/media/loading.4a67a5f3.svg +0 -0
  6. package/package.json +84 -42
  7. package/dist/index.min.css +0 -2
  8. package/dist/index.min.js +0 -2
  9. package/es/AuthingDropdown/index.d.ts +0 -12
  10. package/es/AuthingDropdown/index.js +0 -46
  11. package/es/AuthingDropdown/style/css.js +0 -1
  12. package/es/AuthingDropdown/style/index.css +0 -1
  13. package/es/AuthingDropdown/style/index.d.ts +0 -1
  14. package/es/AuthingDropdown/style/index.js +0 -1
  15. package/es/AuthingDropdown/style/index.less +0 -43
  16. package/es/AuthingGuard/AppMFALayout/index.d.ts +0 -4
  17. package/es/AuthingGuard/AppMFALayout/index.js +0 -75
  18. package/es/AuthingGuard/CompleteUserInfoLayout/index.d.ts +0 -2
  19. package/es/AuthingGuard/CompleteUserInfoLayout/index.js +0 -19
  20. package/es/AuthingGuard/Forms/ADLoginForm/index.d.ts +0 -4
  21. package/es/AuthingGuard/Forms/ADLoginForm/index.js +0 -187
  22. package/es/AuthingGuard/Forms/Agreements/index.d.ts +0 -10
  23. package/es/AuthingGuard/Forms/Agreements/index.js +0 -91
  24. package/es/AuthingGuard/Forms/CompleteUserInfoForm/index.d.ts +0 -3
  25. package/es/AuthingGuard/Forms/CompleteUserInfoForm/index.js +0 -237
  26. package/es/AuthingGuard/Forms/EmailMfaVerifyForm/CheckEmailForm.d.ts +0 -3
  27. package/es/AuthingGuard/Forms/EmailMfaVerifyForm/CheckEmailForm.js +0 -123
  28. package/es/AuthingGuard/Forms/EmailMfaVerifyForm/VerifyCodeForm.d.ts +0 -3
  29. package/es/AuthingGuard/Forms/EmailMfaVerifyForm/VerifyCodeForm.js +0 -184
  30. package/es/AuthingGuard/Forms/EmailMfaVerifyForm/index.d.ts +0 -3
  31. package/es/AuthingGuard/Forms/EmailMfaVerifyForm/index.js +0 -36
  32. package/es/AuthingGuard/Forms/EmailRegisterForm/index.d.ts +0 -4
  33. package/es/AuthingGuard/Forms/EmailRegisterForm/index.js +0 -244
  34. package/es/AuthingGuard/Forms/LdapLoginForm/index.d.ts +0 -4
  35. package/es/AuthingGuard/Forms/LdapLoginForm/index.js +0 -242
  36. package/es/AuthingGuard/Forms/LoginFormFooter/index.d.ts +0 -7
  37. package/es/AuthingGuard/Forms/LoginFormFooter/index.js +0 -53
  38. package/es/AuthingGuard/Forms/MfaResetCodeForm/Step1.d.ts +0 -10
  39. package/es/AuthingGuard/Forms/MfaResetCodeForm/Step1.js +0 -112
  40. package/es/AuthingGuard/Forms/MfaResetCodeForm/Step2.d.ts +0 -6
  41. package/es/AuthingGuard/Forms/MfaResetCodeForm/Step2.js +0 -44
  42. package/es/AuthingGuard/Forms/MfaResetCodeForm/index.d.ts +0 -3
  43. package/es/AuthingGuard/Forms/MfaResetCodeForm/index.js +0 -58
  44. package/es/AuthingGuard/Forms/MfaVerifyForm/index.d.ts +0 -3
  45. package/es/AuthingGuard/Forms/MfaVerifyForm/index.js +0 -137
  46. package/es/AuthingGuard/Forms/PasswordLoginForm/index.d.ts +0 -4
  47. package/es/AuthingGuard/Forms/PasswordLoginForm/index.js +0 -359
  48. package/es/AuthingGuard/Forms/PhoneCodeLoginForm/index.d.ts +0 -4
  49. package/es/AuthingGuard/Forms/PhoneCodeLoginForm/index.js +0 -203
  50. package/es/AuthingGuard/Forms/PhoneRegisterForm/index.d.ts +0 -4
  51. package/es/AuthingGuard/Forms/PhoneRegisterForm/index.js +0 -271
  52. package/es/AuthingGuard/Forms/QrCodeLoginForm/index.d.ts +0 -3
  53. package/es/AuthingGuard/Forms/QrCodeLoginForm/index.js +0 -68
  54. package/es/AuthingGuard/Forms/RegisterFormFooter/index.d.ts +0 -5
  55. package/es/AuthingGuard/Forms/RegisterFormFooter/index.js +0 -38
  56. package/es/AuthingGuard/Forms/ResetPwdForm/Footer.d.ts +0 -2
  57. package/es/AuthingGuard/Forms/ResetPwdForm/Footer.js +0 -22
  58. package/es/AuthingGuard/Forms/ResetPwdForm/Step1.d.ts +0 -3
  59. package/es/AuthingGuard/Forms/ResetPwdForm/Step1.js +0 -132
  60. package/es/AuthingGuard/Forms/ResetPwdForm/Step2.d.ts +0 -3
  61. package/es/AuthingGuard/Forms/ResetPwdForm/Step2.js +0 -198
  62. package/es/AuthingGuard/Forms/ResetPwdForm/Step3.d.ts +0 -3
  63. package/es/AuthingGuard/Forms/ResetPwdForm/Step3.js +0 -235
  64. package/es/AuthingGuard/Forms/ResetPwdForm/Step4.d.ts +0 -2
  65. package/es/AuthingGuard/Forms/ResetPwdForm/Step4.js +0 -56
  66. package/es/AuthingGuard/Forms/ResetPwdForm/index.d.ts +0 -3
  67. package/es/AuthingGuard/Forms/ResetPwdForm/index.js +0 -122
  68. package/es/AuthingGuard/Forms/SendPhoneCode/SendCodeBtn.d.ts +0 -6
  69. package/es/AuthingGuard/Forms/SendPhoneCode/SendCodeBtn.js +0 -130
  70. package/es/AuthingGuard/Forms/SendPhoneCode/index.d.ts +0 -8
  71. package/es/AuthingGuard/Forms/SendPhoneCode/index.js +0 -69
  72. package/es/AuthingGuard/Forms/SmsMfaVerifyForm/CheckPhoneForm.d.ts +0 -3
  73. package/es/AuthingGuard/Forms/SmsMfaVerifyForm/CheckPhoneForm.js +0 -125
  74. package/es/AuthingGuard/Forms/SmsMfaVerifyForm/VerifyCodeForm.d.ts +0 -3
  75. package/es/AuthingGuard/Forms/SmsMfaVerifyForm/VerifyCodeForm.js +0 -183
  76. package/es/AuthingGuard/Forms/SmsMfaVerifyForm/index.d.ts +0 -3
  77. package/es/AuthingGuard/Forms/SmsMfaVerifyForm/index.js +0 -36
  78. package/es/AuthingGuard/Forms/SocialAndIdpLogin/index.d.ts +0 -3
  79. package/es/AuthingGuard/Forms/SocialAndIdpLogin/index.js +0 -378
  80. package/es/AuthingGuard/Forms/UploadImage/index.d.ts +0 -5
  81. package/es/AuthingGuard/Forms/UploadImage/index.js +0 -77
  82. package/es/AuthingGuard/Forms/index.d.ts +0 -13
  83. package/es/AuthingGuard/Forms/index.js +0 -13
  84. package/es/AuthingGuard/GuardLayout/index.d.ts +0 -10
  85. package/es/AuthingGuard/GuardLayout/index.js +0 -405
  86. package/es/AuthingGuard/Header/index.d.ts +0 -4
  87. package/es/AuthingGuard/Header/index.js +0 -25
  88. package/es/AuthingGuard/IconFont/iconfont.d.ts +0 -1
  89. package/es/AuthingGuard/IconFont/iconfont.js +0 -66
  90. package/es/AuthingGuard/IconFont/index.d.ts +0 -7
  91. package/es/AuthingGuard/IconFont/index.js +0 -28
  92. package/es/AuthingGuard/IconFont/svg.d.ts +0 -1
  93. package/es/AuthingGuard/IconFont/svg.js +0 -1
  94. package/es/AuthingGuard/LoginLayout/index.d.ts +0 -2
  95. package/es/AuthingGuard/LoginLayout/index.js +0 -211
  96. package/es/AuthingGuard/MfaLayout/Steps.d.ts +0 -4
  97. package/es/AuthingGuard/MfaLayout/Steps.js +0 -6
  98. package/es/AuthingGuard/MfaLayout/index.d.ts +0 -4
  99. package/es/AuthingGuard/MfaLayout/index.js +0 -55
  100. package/es/AuthingGuard/RegisterLayout/index.d.ts +0 -2
  101. package/es/AuthingGuard/RegisterLayout/index.js +0 -103
  102. package/es/AuthingGuard/ResetPwdLayout/index.d.ts +0 -2
  103. package/es/AuthingGuard/ResetPwdLayout/index.js +0 -26
  104. package/es/AuthingGuard/ToggleLang/index.d.ts +0 -2
  105. package/es/AuthingGuard/ToggleLang/index.js +0 -53
  106. package/es/AuthingGuard/api/appConfig.d.ts +0 -116
  107. package/es/AuthingGuard/api/appConfig.js +0 -20
  108. package/es/AuthingGuard/api/index.d.ts +0 -3
  109. package/es/AuthingGuard/api/index.js +0 -3
  110. package/es/AuthingGuard/api/sso.d.ts +0 -19
  111. package/es/AuthingGuard/api/sso.js +0 -6
  112. package/es/AuthingGuard/api/userPoolConfig.d.ts +0 -81
  113. package/es/AuthingGuard/api/userPoolConfig.js +0 -9
  114. package/es/AuthingGuard/constants.d.ts +0 -32
  115. package/es/AuthingGuard/constants.js +0 -70
  116. package/es/AuthingGuard/hooks/index.d.ts +0 -20
  117. package/es/AuthingGuard/hooks/index.js +0 -52
  118. package/es/AuthingGuard/hooks/useScreenSize.d.ts +0 -10
  119. package/es/AuthingGuard/hooks/useScreenSize.js +0 -74
  120. package/es/AuthingGuard/index.d.ts +0 -12
  121. package/es/AuthingGuard/index.js +0 -135
  122. package/es/AuthingGuard/style/appMFALayout.css +0 -1
  123. package/es/AuthingGuard/style/appMFALayout.less +0 -12
  124. package/es/AuthingGuard/style/completeUserInfoLayout.css +0 -1
  125. package/es/AuthingGuard/style/completeUserInfoLayout.less +0 -8
  126. package/es/AuthingGuard/style/css.js +0 -17
  127. package/es/AuthingGuard/style/emailMfaVerifyForm.css +0 -0
  128. package/es/AuthingGuard/style/emailMfaVerifyForm.less +0 -0
  129. package/es/AuthingGuard/style/formAgreements.css +0 -1
  130. package/es/AuthingGuard/style/formAgreements.less +0 -44
  131. package/es/AuthingGuard/style/formResetPwdForm.css +0 -1
  132. package/es/AuthingGuard/style/formResetPwdForm.less +0 -3
  133. package/es/AuthingGuard/style/guardLayout.css +0 -1
  134. package/es/AuthingGuard/style/guardLayout.less +0 -111
  135. package/es/AuthingGuard/style/header.css +0 -1
  136. package/es/AuthingGuard/style/header.less +0 -64
  137. package/es/AuthingGuard/style/iconFont.css +0 -1
  138. package/es/AuthingGuard/style/iconFont.less +0 -6
  139. package/es/AuthingGuard/style/index.css +0 -1
  140. package/es/AuthingGuard/style/index.d.ts +0 -17
  141. package/es/AuthingGuard/style/index.js +0 -17
  142. package/es/AuthingGuard/style/index.less +0 -106
  143. package/es/AuthingGuard/style/loginFormFooter.css +0 -1
  144. package/es/AuthingGuard/style/loginFormFooter.less +0 -6
  145. package/es/AuthingGuard/style/mfaLayout.css +0 -1
  146. package/es/AuthingGuard/style/mfaLayout.less +0 -3
  147. package/es/AuthingGuard/style/mfaResetCodeForm.css +0 -0
  148. package/es/AuthingGuard/style/mfaResetCodeForm.less +0 -0
  149. package/es/AuthingGuard/style/mfaVerifyForm.css +0 -1
  150. package/es/AuthingGuard/style/mfaVerifyForm.less +0 -12
  151. package/es/AuthingGuard/style/qrCodeLoginForm.css +0 -1
  152. package/es/AuthingGuard/style/qrCodeLoginForm.less +0 -14
  153. package/es/AuthingGuard/style/sendPhoneCode.css +0 -1
  154. package/es/AuthingGuard/style/sendPhoneCode.less +0 -26
  155. package/es/AuthingGuard/style/smsMfaVerifyForm.css +0 -1
  156. package/es/AuthingGuard/style/smsMfaVerifyForm.less +0 -3
  157. package/es/AuthingGuard/style/socialAndIdpLogin.css +0 -0
  158. package/es/AuthingGuard/style/socialAndIdpLogin.less +0 -0
  159. package/es/AuthingGuard/types/Forms.d.ts +0 -79
  160. package/es/AuthingGuard/types/Forms.js +0 -1
  161. package/es/AuthingGuard/types/GuardConfig.d.ts +0 -241
  162. package/es/AuthingGuard/types/GuardConfig.js +0 -179
  163. package/es/AuthingGuard/types/GuardState.d.ts +0 -6
  164. package/es/AuthingGuard/types/GuardState.js +0 -1
  165. package/es/AuthingGuard/types/Locales.d.ts +0 -5
  166. package/es/AuthingGuard/types/Locales.js +0 -7
  167. package/es/AuthingGuard/types/index.d.ts +0 -4
  168. package/es/AuthingGuard/types/index.js +0 -4
  169. package/es/AuthingTabs/index.d.ts +0 -12
  170. package/es/AuthingTabs/index.js +0 -81
  171. package/es/AuthingTabs/style/css.js +0 -1
  172. package/es/AuthingTabs/style/index.css +0 -1
  173. package/es/AuthingTabs/style/index.d.ts +0 -1
  174. package/es/AuthingTabs/style/index.js +0 -1
  175. package/es/AuthingTabs/style/index.less +0 -135
  176. package/es/BindTotp/core/bindSuccess.d.ts +0 -6
  177. package/es/BindTotp/core/bindSuccess.js +0 -111
  178. package/es/BindTotp/core/securityCode.d.ts +0 -8
  179. package/es/BindTotp/core/securityCode.js +0 -139
  180. package/es/BindTotp/index.d.ts +0 -3
  181. package/es/BindTotp/index.js +0 -169
  182. package/es/BindTotp/interface.d.ts +0 -19
  183. package/es/BindTotp/interface.js +0 -21
  184. package/es/BindTotp/style/css.js +0 -1
  185. package/es/BindTotp/style/index.css +0 -1
  186. package/es/BindTotp/style/index.d.ts +0 -1
  187. package/es/BindTotp/style/index.js +0 -1
  188. package/es/BindTotp/style/index.less +0 -57
  189. package/es/ChangeLanguage/index.d.ts +0 -2
  190. package/es/ChangeLanguage/index.js +0 -44
  191. package/es/ChangePassword/core/firstLoginReset.d.ts +0 -8
  192. package/es/ChangePassword/core/firstLoginReset.js +0 -140
  193. package/es/ChangePassword/core/rotateReset.d.ts +0 -8
  194. package/es/ChangePassword/core/rotateReset.js +0 -159
  195. package/es/ChangePassword/index.d.ts +0 -2
  196. package/es/ChangePassword/index.js +0 -78
  197. package/es/CompleteInfo/core/completeInfo.d.ts +0 -16
  198. package/es/CompleteInfo/core/completeInfo.js +0 -582
  199. package/es/CompleteInfo/index.d.ts +0 -3
  200. package/es/CompleteInfo/index.js +0 -52
  201. package/es/CompleteInfo/interface.d.ts +0 -32
  202. package/es/CompleteInfo/interface.js +0 -21
  203. package/es/CompleteInfo/style/css.js +0 -1
  204. package/es/CompleteInfo/style/index.css +0 -1
  205. package/es/CompleteInfo/style/index.d.ts +0 -1
  206. package/es/CompleteInfo/style/index.js +0 -1
  207. package/es/CompleteInfo/style/index.less +0 -7
  208. package/es/CompleteInfo/utils.d.ts +0 -3
  209. package/es/CompleteInfo/utils.js +0 -42
  210. package/es/CopyAbleText/index.d.ts +0 -4
  211. package/es/CopyAbleText/index.js +0 -51
  212. package/es/CopyAbleText/style/css.js +0 -1
  213. package/es/CopyAbleText/style/index.css +0 -1
  214. package/es/CopyAbleText/style/index.d.ts +0 -1
  215. package/es/CopyAbleText/style/index.js +0 -1
  216. package/es/CopyAbleText/style/index.less +0 -13
  217. package/es/DownloadAuthenticator/index.d.ts +0 -3
  218. package/es/DownloadAuthenticator/index.js +0 -92
  219. package/es/DownloadAuthenticator/interface.d.ts +0 -12
  220. package/es/DownloadAuthenticator/interface.js +0 -21
  221. package/es/DownloadAuthenticator/style/css.js +0 -1
  222. package/es/DownloadAuthenticator/style/index.css +0 -1
  223. package/es/DownloadAuthenticator/style/index.d.ts +0 -1
  224. package/es/DownloadAuthenticator/style/index.js +0 -1
  225. package/es/DownloadAuthenticator/style/index.less +0 -58
  226. package/es/Error/index.d.ts +0 -3
  227. package/es/Error/index.js +0 -25
  228. package/es/Error/interface.d.ts +0 -8
  229. package/es/Error/interface.js +0 -1
  230. package/es/Error/style/css.js +0 -1
  231. package/es/Error/style/index.css +0 -1
  232. package/es/Error/style/index.d.ts +0 -1
  233. package/es/Error/style/index.js +0 -1
  234. package/es/Error/style/index.less +0 -12
  235. package/es/ForgetPassword/core/resetPassword.d.ts +0 -9
  236. package/es/ForgetPassword/core/resetPassword.js +0 -224
  237. package/es/ForgetPassword/index.d.ts +0 -3
  238. package/es/ForgetPassword/index.js +0 -107
  239. package/es/ForgetPassword/interface.d.ts +0 -18
  240. package/es/ForgetPassword/interface.js +0 -1
  241. package/es/Guard/Guard.d.ts +0 -10
  242. package/es/Guard/Guard.js +0 -349
  243. package/es/Guard/authClient.d.ts +0 -5
  244. package/es/Guard/authClient.js +0 -38
  245. package/es/Guard/config.d.ts +0 -8
  246. package/es/Guard/config.js +0 -24
  247. package/es/Guard/event.d.ts +0 -8
  248. package/es/Guard/event.js +0 -74
  249. package/es/Guard/index.d.ts +0 -4
  250. package/es/Guard/index.js +0 -4
  251. package/es/Guard/module.d.ts +0 -20
  252. package/es/Guard/module.js +0 -16
  253. package/es/Guard/sso.d.ts +0 -19
  254. package/es/Guard/sso.js +0 -32
  255. package/es/Guard/stateMachine.d.ts +0 -36
  256. package/es/Guard/stateMachine.js +0 -158
  257. package/es/Guard/style/css.js +0 -19
  258. package/es/Guard/style/index.css +0 -1
  259. package/es/Guard/style/index.d.ts +0 -19
  260. package/es/Guard/style/index.js +0 -19
  261. package/es/Guard/style/index.less +0 -615
  262. package/es/IconFont/iconfont.d.ts +0 -1
  263. package/es/IconFont/iconfont.js +0 -66
  264. package/es/IconFont/index.d.ts +0 -7
  265. package/es/IconFont/index.js +0 -28
  266. package/es/IconFont/style/css.js +0 -1
  267. package/es/IconFont/style/index.css +0 -1
  268. package/es/IconFont/style/index.d.ts +0 -1
  269. package/es/IconFont/style/index.js +0 -1
  270. package/es/IconFont/style/index.less +0 -6
  271. package/es/IconFont/svg.d.ts +0 -1
  272. package/es/IconFont/svg.js +0 -1
  273. package/es/ImagePro/index.d.ts +0 -13
  274. package/es/ImagePro/index.js +0 -65
  275. package/es/ImagePro/style/css.js +0 -1
  276. package/es/ImagePro/style/index.css +0 -1
  277. package/es/ImagePro/style/index.d.ts +0 -1
  278. package/es/ImagePro/style/index.js +0 -1
  279. package/es/ImagePro/style/index.less +0 -40
  280. package/es/InputNumber/index.d.ts +0 -5
  281. package/es/InputNumber/index.js +0 -37
  282. package/es/InputPassword/index.d.ts +0 -4
  283. package/es/InputPassword/index.js +0 -24
  284. package/es/Login/codemap.d.ts +0 -2
  285. package/es/Login/codemap.js +0 -46
  286. package/es/Login/core/withAD.d.ts +0 -6
  287. package/es/Login/core/withAD.js +0 -6
  288. package/es/Login/core/withAppQrcode.d.ts +0 -8
  289. package/es/Login/core/withAppQrcode.js +0 -65
  290. package/es/Login/core/withLDAP.d.ts +0 -10
  291. package/es/Login/core/withLDAP.js +0 -210
  292. package/es/Login/core/withPassword/FormItemAccount.d.ts +0 -7
  293. package/es/Login/core/withPassword/FormItemAccount.js +0 -34
  294. package/es/Login/core/withPassword/GraphicVerifyCode.d.ts +0 -7
  295. package/es/Login/core/withPassword/GraphicVerifyCode.js +0 -29
  296. package/es/Login/core/withPassword/InputAccount.d.ts +0 -7
  297. package/es/Login/core/withPassword/InputAccount.js +0 -56
  298. package/es/Login/core/withPassword/index.d.ts +0 -12
  299. package/es/Login/core/withPassword/index.js +0 -221
  300. package/es/Login/core/withPhonecode.d.ts +0 -2
  301. package/es/Login/core/withPhonecode.js +0 -164
  302. package/es/Login/core/withWechatMiniQrcode.d.ts +0 -8
  303. package/es/Login/core/withWechatMiniQrcode.js +0 -76
  304. package/es/Login/core/withWechatmpQrcode.d.ts +0 -8
  305. package/es/Login/core/withWechatmpQrcode.js +0 -66
  306. package/es/Login/index.d.ts +0 -3
  307. package/es/Login/index.js +0 -434
  308. package/es/Login/interface.d.ts +0 -31
  309. package/es/Login/interface.js +0 -30
  310. package/es/Login/socialLogin/index.d.ts +0 -8
  311. package/es/Login/socialLogin/index.js +0 -450
  312. package/es/Login/style/css.js +0 -2
  313. package/es/Login/style/index.css +0 -1
  314. package/es/Login/style/index.d.ts +0 -2
  315. package/es/Login/style/index.js +0 -2
  316. package/es/Login/style/index.less +0 -99
  317. package/es/Login/style/socialLogin.css +0 -1
  318. package/es/Login/style/socialLogin.less +0 -77
  319. package/es/MFA/VerifyCodeInput/VerifyCodeFormItem.d.ts +0 -7
  320. package/es/MFA/VerifyCodeInput/VerifyCodeFormItem.js +0 -37
  321. package/es/MFA/VerifyCodeInput/index.d.ts +0 -13
  322. package/es/MFA/VerifyCodeInput/index.js +0 -175
  323. package/es/MFA/codemap.d.ts +0 -2
  324. package/es/MFA/codemap.js +0 -26
  325. package/es/MFA/core/email.d.ts +0 -23
  326. package/es/MFA/core/email.js +0 -302
  327. package/es/MFA/core/face.d.ts +0 -2
  328. package/es/MFA/core/face.js +0 -358
  329. package/es/MFA/core/face_deps.d.ts +0 -12
  330. package/es/MFA/core/face_deps.js +0 -39
  331. package/es/MFA/core/sms.d.ts +0 -22
  332. package/es/MFA/core/sms.js +0 -296
  333. package/es/MFA/core/totp.d.ts +0 -19
  334. package/es/MFA/core/totp.js +0 -146
  335. package/es/MFA/index.d.ts +0 -3
  336. package/es/MFA/index.js +0 -170
  337. package/es/MFA/interface.d.ts +0 -38
  338. package/es/MFA/interface.js +0 -29
  339. package/es/MFA/mfaMethods/index.d.ts +0 -8
  340. package/es/MFA/mfaMethods/index.js +0 -80
  341. package/es/MFA/style/css.js +0 -3
  342. package/es/MFA/style/index.css +0 -1
  343. package/es/MFA/style/index.d.ts +0 -3
  344. package/es/MFA/style/index.js +0 -3
  345. package/es/MFA/style/index.less +0 -101
  346. package/es/MFA/style/mfaMethods.css +0 -1
  347. package/es/MFA/style/mfaMethods.less +0 -42
  348. package/es/MFA/style/verifyCodeInput.css +0 -1
  349. package/es/MFA/style/verifyCodeInput.less +0 -38
  350. package/es/NeedHelpView/core/describeQuestions.d.ts +0 -8
  351. package/es/NeedHelpView/core/describeQuestions.js +0 -299
  352. package/es/NeedHelpView/index.d.ts +0 -2
  353. package/es/NeedHelpView/index.js +0 -48
  354. package/es/RecoveryCode/core/useCode.d.ts +0 -5
  355. package/es/RecoveryCode/core/useCode.js +0 -93
  356. package/es/RecoveryCode/index.d.ts +0 -3
  357. package/es/RecoveryCode/index.js +0 -28
  358. package/es/RecoveryCode/interface.d.ts +0 -19
  359. package/es/RecoveryCode/interface.js +0 -21
  360. package/es/RecoveryCode/style/css.js +0 -1
  361. package/es/RecoveryCode/style/index.css +0 -1
  362. package/es/RecoveryCode/style/index.d.ts +0 -1
  363. package/es/RecoveryCode/style/index.js +0 -1
  364. package/es/RecoveryCode/style/index.less +0 -13
  365. package/es/Register/codemap.d.ts +0 -2
  366. package/es/Register/codemap.js +0 -10
  367. package/es/Register/components/Agreements/index.d.ts +0 -10
  368. package/es/Register/components/Agreements/index.js +0 -91
  369. package/es/Register/core/WithEmail.d.ts +0 -9
  370. package/es/Register/core/WithEmail.js +0 -262
  371. package/es/Register/core/WithPhone.d.ts +0 -8
  372. package/es/Register/core/WithPhone.js +0 -208
  373. package/es/Register/index.d.ts +0 -3
  374. package/es/Register/index.js +0 -171
  375. package/es/Register/interface.d.ts +0 -25
  376. package/es/Register/interface.js +0 -28
  377. package/es/Register/style/css.js +0 -1
  378. package/es/Register/style/index.css +0 -1
  379. package/es/Register/style/index.d.ts +0 -1
  380. package/es/Register/style/index.js +0 -1
  381. package/es/Register/style/index.less +0 -44
  382. package/es/SendCode/SendCodeBtn.d.ts +0 -9
  383. package/es/SendCode/SendCodeBtn.js +0 -138
  384. package/es/SendCode/index.d.ts +0 -11
  385. package/es/SendCode/index.js +0 -208
  386. package/es/SendCode/style/css.js +0 -1
  387. package/es/SendCode/style/index.css +0 -1
  388. package/es/SendCode/style/index.d.ts +0 -1
  389. package/es/SendCode/style/index.js +0 -1
  390. package/es/SendCode/style/index.less +0 -31
  391. package/es/ShieldSpin/index.d.ts +0 -7
  392. package/es/ShieldSpin/index.js +0 -19
  393. package/es/SubmitButton/index.d.ts +0 -8
  394. package/es/SubmitButton/index.js +0 -58
  395. package/es/SubmitSuccess/index.d.ts +0 -3
  396. package/es/SubmitSuccess/index.js +0 -74
  397. package/es/SubmitSuccess/interface.d.ts +0 -13
  398. package/es/SubmitSuccess/interface.js +0 -1
  399. package/es/Type/index.d.ts +0 -35
  400. package/es/Type/index.js +0 -14
  401. package/es/ValidatorRules/PasswordFormItem.d.ts +0 -3
  402. package/es/ValidatorRules/PasswordFormItem.js +0 -24
  403. package/es/ValidatorRules/ValidatorFormItem.d.ts +0 -5
  404. package/es/ValidatorRules/ValidatorFormItem.js +0 -239
  405. package/es/ValidatorRules/index.d.ts +0 -27
  406. package/es/ValidatorRules/index.js +0 -9
  407. package/es/VerifyCodeInput/index.d.ts +0 -9
  408. package/es/VerifyCodeInput/index.js +0 -89
  409. package/es/VerifyCodeInput/style/css.js +0 -1
  410. package/es/VerifyCodeInput/style/index.css +0 -1
  411. package/es/VerifyCodeInput/style/index.d.ts +0 -1
  412. package/es/VerifyCodeInput/style/index.js +0 -1
  413. package/es/VerifyCodeInput/style/index.less +0 -24
  414. package/es/_utils/GuardErrorCode.d.ts +0 -9
  415. package/es/_utils/GuardErrorCode.js +0 -11
  416. package/es/_utils/clipboard.d.ts +0 -1
  417. package/es/_utils/clipboard.js +0 -35
  418. package/es/_utils/config.d.ts +0 -7
  419. package/es/_utils/config.js +0 -145
  420. package/es/_utils/context.d.ts +0 -8
  421. package/es/_utils/context.js +0 -14
  422. package/es/_utils/errorFace.d.ts +0 -12
  423. package/es/_utils/errorFace.js +0 -32
  424. package/es/_utils/guradHttp.d.ts +0 -21
  425. package/es/_utils/guradHttp.js +0 -178
  426. package/es/_utils/hooks/index.d.ts +0 -4
  427. package/es/_utils/hooks/index.js +0 -60
  428. package/es/_utils/http.d.ts +0 -23
  429. package/es/_utils/http.js +0 -189
  430. package/es/_utils/index.d.ts +0 -60
  431. package/es/_utils/index.js +0 -452
  432. package/es/_utils/locales/en/index.d.ts +0 -5
  433. package/es/_utils/locales/en/index.js +0 -5
  434. package/es/_utils/locales/index.d.ts +0 -5
  435. package/es/_utils/locales/index.js +0 -47
  436. package/es/_utils/locales/zh/index.d.ts +0 -5
  437. package/es/_utils/locales/zh/index.js +0 -5
  438. package/es/_utils/popupCenter.d.ts +0 -9
  439. package/es/_utils/popupCenter.js +0 -28
  440. package/es/context/base.d.ts +0 -12
  441. package/es/context/base.js +0 -15
  442. package/es/context/global/context.d.ts +0 -10
  443. package/es/context/global/context.js +0 -47
  444. package/es/context/global/reducer.d.ts +0 -29
  445. package/es/context/global/reducer.js +0 -32
  446. package/es/context/module/context.d.ts +0 -11
  447. package/es/context/module/context.js +0 -21
  448. package/es/index.d.ts +0 -8
  449. package/es/index.js +0 -8
  450. package/es/version/index.d.ts +0 -2
  451. package/es/version/index.js +0 -2
  452. package/es/version/version.d.ts +0 -2
  453. package/es/version/version.js +0 -1
  454. package/lib/AuthingDropdown/index.d.ts +0 -12
  455. package/lib/AuthingDropdown/index.js +0 -61
  456. package/lib/AuthingDropdown/style/css.js +0 -3
  457. package/lib/AuthingDropdown/style/index.css +0 -1
  458. package/lib/AuthingDropdown/style/index.d.ts +0 -1
  459. package/lib/AuthingDropdown/style/index.js +0 -3
  460. package/lib/AuthingDropdown/style/index.less +0 -43
  461. package/lib/AuthingGuard/AppMFALayout/index.d.ts +0 -4
  462. package/lib/AuthingGuard/AppMFALayout/index.js +0 -89
  463. package/lib/AuthingGuard/CompleteUserInfoLayout/index.d.ts +0 -2
  464. package/lib/AuthingGuard/CompleteUserInfoLayout/index.js +0 -34
  465. package/lib/AuthingGuard/Forms/ADLoginForm/index.d.ts +0 -4
  466. package/lib/AuthingGuard/Forms/ADLoginForm/index.js +0 -203
  467. package/lib/AuthingGuard/Forms/Agreements/index.d.ts +0 -10
  468. package/lib/AuthingGuard/Forms/Agreements/index.js +0 -90
  469. package/lib/AuthingGuard/Forms/CompleteUserInfoForm/index.d.ts +0 -3
  470. package/lib/AuthingGuard/Forms/CompleteUserInfoForm/index.js +0 -237
  471. package/lib/AuthingGuard/Forms/EmailMfaVerifyForm/CheckEmailForm.d.ts +0 -3
  472. package/lib/AuthingGuard/Forms/EmailMfaVerifyForm/CheckEmailForm.js +0 -137
  473. package/lib/AuthingGuard/Forms/EmailMfaVerifyForm/VerifyCodeForm.d.ts +0 -3
  474. package/lib/AuthingGuard/Forms/EmailMfaVerifyForm/VerifyCodeForm.js +0 -199
  475. package/lib/AuthingGuard/Forms/EmailMfaVerifyForm/index.d.ts +0 -3
  476. package/lib/AuthingGuard/Forms/EmailMfaVerifyForm/index.js +0 -54
  477. package/lib/AuthingGuard/Forms/EmailRegisterForm/index.d.ts +0 -4
  478. package/lib/AuthingGuard/Forms/EmailRegisterForm/index.js +0 -258
  479. package/lib/AuthingGuard/Forms/LdapLoginForm/index.d.ts +0 -4
  480. package/lib/AuthingGuard/Forms/LdapLoginForm/index.js +0 -255
  481. package/lib/AuthingGuard/Forms/LoginFormFooter/index.d.ts +0 -7
  482. package/lib/AuthingGuard/Forms/LoginFormFooter/index.js +0 -66
  483. package/lib/AuthingGuard/Forms/MfaResetCodeForm/Step1.d.ts +0 -10
  484. package/lib/AuthingGuard/Forms/MfaResetCodeForm/Step1.js +0 -129
  485. package/lib/AuthingGuard/Forms/MfaResetCodeForm/Step2.d.ts +0 -6
  486. package/lib/AuthingGuard/Forms/MfaResetCodeForm/Step2.js +0 -53
  487. package/lib/AuthingGuard/Forms/MfaResetCodeForm/index.d.ts +0 -3
  488. package/lib/AuthingGuard/Forms/MfaResetCodeForm/index.js +0 -77
  489. package/lib/AuthingGuard/Forms/MfaVerifyForm/index.d.ts +0 -3
  490. package/lib/AuthingGuard/Forms/MfaVerifyForm/index.js +0 -151
  491. package/lib/AuthingGuard/Forms/PasswordLoginForm/index.d.ts +0 -4
  492. package/lib/AuthingGuard/Forms/PasswordLoginForm/index.js +0 -368
  493. package/lib/AuthingGuard/Forms/PhoneCodeLoginForm/index.d.ts +0 -4
  494. package/lib/AuthingGuard/Forms/PhoneCodeLoginForm/index.js +0 -217
  495. package/lib/AuthingGuard/Forms/PhoneRegisterForm/index.d.ts +0 -4
  496. package/lib/AuthingGuard/Forms/PhoneRegisterForm/index.js +0 -286
  497. package/lib/AuthingGuard/Forms/QrCodeLoginForm/index.d.ts +0 -3
  498. package/lib/AuthingGuard/Forms/QrCodeLoginForm/index.js +0 -76
  499. package/lib/AuthingGuard/Forms/RegisterFormFooter/index.d.ts +0 -5
  500. package/lib/AuthingGuard/Forms/RegisterFormFooter/index.js +0 -53
  501. package/lib/AuthingGuard/Forms/ResetPwdForm/Footer.d.ts +0 -2
  502. package/lib/AuthingGuard/Forms/ResetPwdForm/Footer.js +0 -37
  503. package/lib/AuthingGuard/Forms/ResetPwdForm/Step1.d.ts +0 -3
  504. package/lib/AuthingGuard/Forms/ResetPwdForm/Step1.js +0 -147
  505. package/lib/AuthingGuard/Forms/ResetPwdForm/Step2.d.ts +0 -3
  506. package/lib/AuthingGuard/Forms/ResetPwdForm/Step2.js +0 -213
  507. package/lib/AuthingGuard/Forms/ResetPwdForm/Step3.d.ts +0 -3
  508. package/lib/AuthingGuard/Forms/ResetPwdForm/Step3.js +0 -248
  509. package/lib/AuthingGuard/Forms/ResetPwdForm/Step4.d.ts +0 -2
  510. package/lib/AuthingGuard/Forms/ResetPwdForm/Step4.js +0 -74
  511. package/lib/AuthingGuard/Forms/ResetPwdForm/index.d.ts +0 -3
  512. package/lib/AuthingGuard/Forms/ResetPwdForm/index.js +0 -146
  513. package/lib/AuthingGuard/Forms/SendPhoneCode/SendCodeBtn.d.ts +0 -6
  514. package/lib/AuthingGuard/Forms/SendPhoneCode/SendCodeBtn.js +0 -148
  515. package/lib/AuthingGuard/Forms/SendPhoneCode/index.d.ts +0 -8
  516. package/lib/AuthingGuard/Forms/SendPhoneCode/index.js +0 -87
  517. package/lib/AuthingGuard/Forms/SmsMfaVerifyForm/CheckPhoneForm.d.ts +0 -3
  518. package/lib/AuthingGuard/Forms/SmsMfaVerifyForm/CheckPhoneForm.js +0 -139
  519. package/lib/AuthingGuard/Forms/SmsMfaVerifyForm/VerifyCodeForm.d.ts +0 -3
  520. package/lib/AuthingGuard/Forms/SmsMfaVerifyForm/VerifyCodeForm.js +0 -197
  521. package/lib/AuthingGuard/Forms/SmsMfaVerifyForm/index.d.ts +0 -3
  522. package/lib/AuthingGuard/Forms/SmsMfaVerifyForm/index.js +0 -54
  523. package/lib/AuthingGuard/Forms/SocialAndIdpLogin/index.d.ts +0 -3
  524. package/lib/AuthingGuard/Forms/SocialAndIdpLogin/index.js +0 -387
  525. package/lib/AuthingGuard/Forms/UploadImage/index.d.ts +0 -5
  526. package/lib/AuthingGuard/Forms/UploadImage/index.js +0 -92
  527. package/lib/AuthingGuard/Forms/index.d.ts +0 -13
  528. package/lib/AuthingGuard/Forms/index.js +0 -174
  529. package/lib/AuthingGuard/GuardLayout/index.d.ts +0 -10
  530. package/lib/AuthingGuard/GuardLayout/index.js +0 -424
  531. package/lib/AuthingGuard/Header/index.d.ts +0 -4
  532. package/lib/AuthingGuard/Header/index.js +0 -38
  533. package/lib/AuthingGuard/IconFont/iconfont.d.ts +0 -1
  534. package/lib/AuthingGuard/IconFont/iconfont.js +0 -63
  535. package/lib/AuthingGuard/IconFont/index.d.ts +0 -7
  536. package/lib/AuthingGuard/IconFont/index.js +0 -34
  537. package/lib/AuthingGuard/IconFont/svg.d.ts +0 -1
  538. package/lib/AuthingGuard/IconFont/svg.js +0 -8
  539. package/lib/AuthingGuard/LoginLayout/index.d.ts +0 -2
  540. package/lib/AuthingGuard/LoginLayout/index.js +0 -210
  541. package/lib/AuthingGuard/MfaLayout/Steps.d.ts +0 -4
  542. package/lib/AuthingGuard/MfaLayout/Steps.js +0 -13
  543. package/lib/AuthingGuard/MfaLayout/index.d.ts +0 -4
  544. package/lib/AuthingGuard/MfaLayout/index.js +0 -76
  545. package/lib/AuthingGuard/RegisterLayout/index.d.ts +0 -2
  546. package/lib/AuthingGuard/RegisterLayout/index.js +0 -109
  547. package/lib/AuthingGuard/ResetPwdLayout/index.d.ts +0 -2
  548. package/lib/AuthingGuard/ResetPwdLayout/index.js +0 -40
  549. package/lib/AuthingGuard/ToggleLang/index.d.ts +0 -2
  550. package/lib/AuthingGuard/ToggleLang/index.js +0 -64
  551. package/lib/AuthingGuard/api/appConfig.d.ts +0 -116
  552. package/lib/AuthingGuard/api/appConfig.js +0 -38
  553. package/lib/AuthingGuard/api/index.d.ts +0 -3
  554. package/lib/AuthingGuard/api/index.js +0 -44
  555. package/lib/AuthingGuard/api/sso.d.ts +0 -19
  556. package/lib/AuthingGuard/api/sso.js +0 -16
  557. package/lib/AuthingGuard/api/userPoolConfig.d.ts +0 -81
  558. package/lib/AuthingGuard/api/userPoolConfig.js +0 -16
  559. package/lib/AuthingGuard/constants.d.ts +0 -32
  560. package/lib/AuthingGuard/constants.js +0 -96
  561. package/lib/AuthingGuard/hooks/index.d.ts +0 -20
  562. package/lib/AuthingGuard/hooks/index.js +0 -66
  563. package/lib/AuthingGuard/hooks/useScreenSize.d.ts +0 -10
  564. package/lib/AuthingGuard/hooks/useScreenSize.js +0 -89
  565. package/lib/AuthingGuard/index.d.ts +0 -12
  566. package/lib/AuthingGuard/index.js +0 -140
  567. package/lib/AuthingGuard/style/appMFALayout.css +0 -1
  568. package/lib/AuthingGuard/style/appMFALayout.less +0 -12
  569. package/lib/AuthingGuard/style/completeUserInfoLayout.css +0 -1
  570. package/lib/AuthingGuard/style/completeUserInfoLayout.less +0 -8
  571. package/lib/AuthingGuard/style/css.js +0 -35
  572. package/lib/AuthingGuard/style/emailMfaVerifyForm.css +0 -0
  573. package/lib/AuthingGuard/style/emailMfaVerifyForm.less +0 -0
  574. package/lib/AuthingGuard/style/formAgreements.css +0 -1
  575. package/lib/AuthingGuard/style/formAgreements.less +0 -44
  576. package/lib/AuthingGuard/style/formResetPwdForm.css +0 -1
  577. package/lib/AuthingGuard/style/formResetPwdForm.less +0 -3
  578. package/lib/AuthingGuard/style/guardLayout.css +0 -1
  579. package/lib/AuthingGuard/style/guardLayout.less +0 -111
  580. package/lib/AuthingGuard/style/header.css +0 -1
  581. package/lib/AuthingGuard/style/header.less +0 -64
  582. package/lib/AuthingGuard/style/iconFont.css +0 -1
  583. package/lib/AuthingGuard/style/iconFont.less +0 -6
  584. package/lib/AuthingGuard/style/index.css +0 -1
  585. package/lib/AuthingGuard/style/index.d.ts +0 -17
  586. package/lib/AuthingGuard/style/index.js +0 -35
  587. package/lib/AuthingGuard/style/index.less +0 -106
  588. package/lib/AuthingGuard/style/loginFormFooter.css +0 -1
  589. package/lib/AuthingGuard/style/loginFormFooter.less +0 -6
  590. package/lib/AuthingGuard/style/mfaLayout.css +0 -1
  591. package/lib/AuthingGuard/style/mfaLayout.less +0 -3
  592. package/lib/AuthingGuard/style/mfaResetCodeForm.css +0 -0
  593. package/lib/AuthingGuard/style/mfaResetCodeForm.less +0 -0
  594. package/lib/AuthingGuard/style/mfaVerifyForm.css +0 -1
  595. package/lib/AuthingGuard/style/mfaVerifyForm.less +0 -12
  596. package/lib/AuthingGuard/style/qrCodeLoginForm.css +0 -1
  597. package/lib/AuthingGuard/style/qrCodeLoginForm.less +0 -14
  598. package/lib/AuthingGuard/style/sendPhoneCode.css +0 -1
  599. package/lib/AuthingGuard/style/sendPhoneCode.less +0 -26
  600. package/lib/AuthingGuard/style/smsMfaVerifyForm.css +0 -1
  601. package/lib/AuthingGuard/style/smsMfaVerifyForm.less +0 -3
  602. package/lib/AuthingGuard/style/socialAndIdpLogin.css +0 -0
  603. package/lib/AuthingGuard/style/socialAndIdpLogin.less +0 -0
  604. package/lib/AuthingGuard/types/Forms.d.ts +0 -79
  605. package/lib/AuthingGuard/types/Forms.js +0 -5
  606. package/lib/AuthingGuard/types/GuardConfig.d.ts +0 -241
  607. package/lib/AuthingGuard/types/GuardConfig.js +0 -194
  608. package/lib/AuthingGuard/types/GuardState.d.ts +0 -6
  609. package/lib/AuthingGuard/types/GuardState.js +0 -3
  610. package/lib/AuthingGuard/types/Locales.d.ts +0 -5
  611. package/lib/AuthingGuard/types/Locales.js +0 -14
  612. package/lib/AuthingGuard/types/index.d.ts +0 -4
  613. package/lib/AuthingGuard/types/index.js +0 -57
  614. package/lib/AuthingTabs/index.d.ts +0 -12
  615. package/lib/AuthingTabs/index.js +0 -92
  616. package/lib/AuthingTabs/style/css.js +0 -3
  617. package/lib/AuthingTabs/style/index.css +0 -1
  618. package/lib/AuthingTabs/style/index.d.ts +0 -1
  619. package/lib/AuthingTabs/style/index.js +0 -3
  620. package/lib/AuthingTabs/style/index.less +0 -135
  621. package/lib/BindTotp/core/bindSuccess.d.ts +0 -6
  622. package/lib/BindTotp/core/bindSuccess.js +0 -126
  623. package/lib/BindTotp/core/securityCode.d.ts +0 -8
  624. package/lib/BindTotp/core/securityCode.js +0 -162
  625. package/lib/BindTotp/index.d.ts +0 -3
  626. package/lib/BindTotp/index.js +0 -197
  627. package/lib/BindTotp/interface.d.ts +0 -19
  628. package/lib/BindTotp/interface.js +0 -24
  629. package/lib/BindTotp/style/css.js +0 -3
  630. package/lib/BindTotp/style/index.css +0 -1
  631. package/lib/BindTotp/style/index.d.ts +0 -1
  632. package/lib/BindTotp/style/index.js +0 -3
  633. package/lib/BindTotp/style/index.less +0 -57
  634. package/lib/ChangeLanguage/index.d.ts +0 -2
  635. package/lib/ChangeLanguage/index.js +0 -59
  636. package/lib/ChangePassword/core/firstLoginReset.d.ts +0 -8
  637. package/lib/ChangePassword/core/firstLoginReset.js +0 -160
  638. package/lib/ChangePassword/core/rotateReset.d.ts +0 -8
  639. package/lib/ChangePassword/core/rotateReset.js +0 -181
  640. package/lib/ChangePassword/index.d.ts +0 -2
  641. package/lib/ChangePassword/index.js +0 -91
  642. package/lib/CompleteInfo/core/completeInfo.d.ts +0 -16
  643. package/lib/CompleteInfo/core/completeInfo.js +0 -574
  644. package/lib/CompleteInfo/index.d.ts +0 -3
  645. package/lib/CompleteInfo/index.js +0 -68
  646. package/lib/CompleteInfo/interface.d.ts +0 -32
  647. package/lib/CompleteInfo/interface.js +0 -24
  648. package/lib/CompleteInfo/style/css.js +0 -3
  649. package/lib/CompleteInfo/style/index.css +0 -1
  650. package/lib/CompleteInfo/style/index.d.ts +0 -1
  651. package/lib/CompleteInfo/style/index.js +0 -3
  652. package/lib/CompleteInfo/style/index.less +0 -7
  653. package/lib/CompleteInfo/utils.d.ts +0 -3
  654. package/lib/CompleteInfo/utils.js +0 -51
  655. package/lib/CopyAbleText/index.d.ts +0 -4
  656. package/lib/CopyAbleText/index.js +0 -68
  657. package/lib/CopyAbleText/style/css.js +0 -3
  658. package/lib/CopyAbleText/style/index.css +0 -1
  659. package/lib/CopyAbleText/style/index.d.ts +0 -1
  660. package/lib/CopyAbleText/style/index.js +0 -3
  661. package/lib/CopyAbleText/style/index.less +0 -13
  662. package/lib/DownloadAuthenticator/index.d.ts +0 -3
  663. package/lib/DownloadAuthenticator/index.js +0 -106
  664. package/lib/DownloadAuthenticator/interface.d.ts +0 -12
  665. package/lib/DownloadAuthenticator/interface.js +0 -24
  666. package/lib/DownloadAuthenticator/style/css.js +0 -3
  667. package/lib/DownloadAuthenticator/style/index.css +0 -1
  668. package/lib/DownloadAuthenticator/style/index.d.ts +0 -1
  669. package/lib/DownloadAuthenticator/style/index.js +0 -3
  670. package/lib/DownloadAuthenticator/style/index.less +0 -58
  671. package/lib/Error/index.d.ts +0 -3
  672. package/lib/Error/index.js +0 -38
  673. package/lib/Error/interface.d.ts +0 -8
  674. package/lib/Error/interface.js +0 -5
  675. package/lib/Error/style/css.js +0 -3
  676. package/lib/Error/style/index.css +0 -1
  677. package/lib/Error/style/index.d.ts +0 -1
  678. package/lib/Error/style/index.js +0 -3
  679. package/lib/Error/style/index.less +0 -12
  680. package/lib/ForgetPassword/core/resetPassword.d.ts +0 -9
  681. package/lib/ForgetPassword/core/resetPassword.js +0 -246
  682. package/lib/ForgetPassword/index.d.ts +0 -3
  683. package/lib/ForgetPassword/index.js +0 -117
  684. package/lib/ForgetPassword/interface.d.ts +0 -18
  685. package/lib/ForgetPassword/interface.js +0 -5
  686. package/lib/Guard/Guard.d.ts +0 -10
  687. package/lib/Guard/Guard.js +0 -381
  688. package/lib/Guard/authClient.d.ts +0 -5
  689. package/lib/Guard/authClient.js +0 -58
  690. package/lib/Guard/config.d.ts +0 -8
  691. package/lib/Guard/config.js +0 -30
  692. package/lib/Guard/event.d.ts +0 -8
  693. package/lib/Guard/event.js +0 -71
  694. package/lib/Guard/index.d.ts +0 -4
  695. package/lib/Guard/index.js +0 -57
  696. package/lib/Guard/module.d.ts +0 -20
  697. package/lib/Guard/module.js +0 -23
  698. package/lib/Guard/sso.d.ts +0 -19
  699. package/lib/Guard/sso.js +0 -46
  700. package/lib/Guard/stateMachine.d.ts +0 -36
  701. package/lib/Guard/stateMachine.js +0 -155
  702. package/lib/Guard/style/css.js +0 -39
  703. package/lib/Guard/style/index.css +0 -1
  704. package/lib/Guard/style/index.d.ts +0 -19
  705. package/lib/Guard/style/index.js +0 -39
  706. package/lib/Guard/style/index.less +0 -615
  707. package/lib/IconFont/iconfont.d.ts +0 -1
  708. package/lib/IconFont/iconfont.js +0 -63
  709. package/lib/IconFont/index.d.ts +0 -7
  710. package/lib/IconFont/index.js +0 -34
  711. package/lib/IconFont/style/css.js +0 -3
  712. package/lib/IconFont/style/index.css +0 -1
  713. package/lib/IconFont/style/index.d.ts +0 -1
  714. package/lib/IconFont/style/index.js +0 -3
  715. package/lib/IconFont/style/index.less +0 -6
  716. package/lib/IconFont/svg.d.ts +0 -1
  717. package/lib/IconFont/svg.js +0 -8
  718. package/lib/ImagePro/index.d.ts +0 -13
  719. package/lib/ImagePro/index.js +0 -76
  720. package/lib/ImagePro/style/css.js +0 -3
  721. package/lib/ImagePro/style/index.css +0 -1
  722. package/lib/ImagePro/style/index.d.ts +0 -1
  723. package/lib/ImagePro/style/index.js +0 -3
  724. package/lib/ImagePro/style/index.less +0 -40
  725. package/lib/InputNumber/index.d.ts +0 -5
  726. package/lib/InputNumber/index.js +0 -56
  727. package/lib/InputPassword/index.d.ts +0 -4
  728. package/lib/InputPassword/index.js +0 -38
  729. package/lib/Login/codemap.d.ts +0 -2
  730. package/lib/Login/codemap.js +0 -58
  731. package/lib/Login/core/withAD.d.ts +0 -6
  732. package/lib/Login/core/withAD.js +0 -18
  733. package/lib/Login/core/withAppQrcode.d.ts +0 -8
  734. package/lib/Login/core/withAppQrcode.js +0 -74
  735. package/lib/Login/core/withLDAP.d.ts +0 -10
  736. package/lib/Login/core/withLDAP.js +0 -227
  737. package/lib/Login/core/withPassword/FormItemAccount.d.ts +0 -7
  738. package/lib/Login/core/withPassword/FormItemAccount.js +0 -55
  739. package/lib/Login/core/withPassword/GraphicVerifyCode.d.ts +0 -7
  740. package/lib/Login/core/withPassword/GraphicVerifyCode.js +0 -46
  741. package/lib/Login/core/withPassword/InputAccount.d.ts +0 -7
  742. package/lib/Login/core/withPassword/InputAccount.js +0 -72
  743. package/lib/Login/core/withPassword/index.d.ts +0 -12
  744. package/lib/Login/core/withPassword/index.js +0 -243
  745. package/lib/Login/core/withPhonecode.d.ts +0 -2
  746. package/lib/Login/core/withPhonecode.js +0 -189
  747. package/lib/Login/core/withWechatMiniQrcode.d.ts +0 -8
  748. package/lib/Login/core/withWechatMiniQrcode.js +0 -85
  749. package/lib/Login/core/withWechatmpQrcode.d.ts +0 -8
  750. package/lib/Login/core/withWechatmpQrcode.js +0 -75
  751. package/lib/Login/index.d.ts +0 -3
  752. package/lib/Login/index.js +0 -451
  753. package/lib/Login/interface.d.ts +0 -31
  754. package/lib/Login/interface.js +0 -34
  755. package/lib/Login/socialLogin/index.d.ts +0 -8
  756. package/lib/Login/socialLogin/index.js +0 -462
  757. package/lib/Login/style/css.js +0 -5
  758. package/lib/Login/style/index.css +0 -1
  759. package/lib/Login/style/index.d.ts +0 -2
  760. package/lib/Login/style/index.js +0 -5
  761. package/lib/Login/style/index.less +0 -99
  762. package/lib/Login/style/socialLogin.css +0 -1
  763. package/lib/Login/style/socialLogin.less +0 -77
  764. package/lib/MFA/VerifyCodeInput/VerifyCodeFormItem.d.ts +0 -7
  765. package/lib/MFA/VerifyCodeInput/VerifyCodeFormItem.js +0 -53
  766. package/lib/MFA/VerifyCodeInput/index.d.ts +0 -13
  767. package/lib/MFA/VerifyCodeInput/index.js +0 -181
  768. package/lib/MFA/codemap.d.ts +0 -2
  769. package/lib/MFA/codemap.js +0 -35
  770. package/lib/MFA/core/email.d.ts +0 -23
  771. package/lib/MFA/core/email.js +0 -328
  772. package/lib/MFA/core/face.d.ts +0 -2
  773. package/lib/MFA/core/face.js +0 -380
  774. package/lib/MFA/core/face_deps.d.ts +0 -12
  775. package/lib/MFA/core/face_deps.js +0 -55
  776. package/lib/MFA/core/sms.d.ts +0 -22
  777. package/lib/MFA/core/sms.js +0 -324
  778. package/lib/MFA/core/totp.d.ts +0 -19
  779. package/lib/MFA/core/totp.js +0 -177
  780. package/lib/MFA/index.d.ts +0 -3
  781. package/lib/MFA/index.js +0 -196
  782. package/lib/MFA/interface.d.ts +0 -38
  783. package/lib/MFA/interface.js +0 -33
  784. package/lib/MFA/mfaMethods/index.d.ts +0 -8
  785. package/lib/MFA/mfaMethods/index.js +0 -95
  786. package/lib/MFA/style/css.js +0 -7
  787. package/lib/MFA/style/index.css +0 -1
  788. package/lib/MFA/style/index.d.ts +0 -3
  789. package/lib/MFA/style/index.js +0 -7
  790. package/lib/MFA/style/index.less +0 -101
  791. package/lib/MFA/style/mfaMethods.css +0 -1
  792. package/lib/MFA/style/mfaMethods.less +0 -42
  793. package/lib/MFA/style/verifyCodeInput.css +0 -1
  794. package/lib/MFA/style/verifyCodeInput.less +0 -38
  795. package/lib/NeedHelpView/core/describeQuestions.d.ts +0 -8
  796. package/lib/NeedHelpView/core/describeQuestions.js +0 -307
  797. package/lib/NeedHelpView/index.d.ts +0 -2
  798. package/lib/NeedHelpView/index.js +0 -64
  799. package/lib/RecoveryCode/core/useCode.d.ts +0 -5
  800. package/lib/RecoveryCode/core/useCode.js +0 -112
  801. package/lib/RecoveryCode/index.d.ts +0 -3
  802. package/lib/RecoveryCode/index.js +0 -43
  803. package/lib/RecoveryCode/interface.d.ts +0 -19
  804. package/lib/RecoveryCode/interface.js +0 -24
  805. package/lib/RecoveryCode/style/css.js +0 -3
  806. package/lib/RecoveryCode/style/index.css +0 -1
  807. package/lib/RecoveryCode/style/index.d.ts +0 -1
  808. package/lib/RecoveryCode/style/index.js +0 -3
  809. package/lib/RecoveryCode/style/index.less +0 -13
  810. package/lib/Register/codemap.d.ts +0 -2
  811. package/lib/Register/codemap.js +0 -21
  812. package/lib/Register/components/Agreements/index.d.ts +0 -10
  813. package/lib/Register/components/Agreements/index.js +0 -90
  814. package/lib/Register/core/WithEmail.d.ts +0 -9
  815. package/lib/Register/core/WithEmail.js +0 -284
  816. package/lib/Register/core/WithPhone.d.ts +0 -8
  817. package/lib/Register/core/WithPhone.js +0 -231
  818. package/lib/Register/index.d.ts +0 -3
  819. package/lib/Register/index.js +0 -186
  820. package/lib/Register/interface.d.ts +0 -25
  821. package/lib/Register/interface.js +0 -31
  822. package/lib/Register/style/css.js +0 -3
  823. package/lib/Register/style/index.css +0 -1
  824. package/lib/Register/style/index.d.ts +0 -1
  825. package/lib/Register/style/index.js +0 -3
  826. package/lib/Register/style/index.less +0 -44
  827. package/lib/SendCode/SendCodeBtn.d.ts +0 -9
  828. package/lib/SendCode/SendCodeBtn.js +0 -157
  829. package/lib/SendCode/index.d.ts +0 -11
  830. package/lib/SendCode/index.js +0 -227
  831. package/lib/SendCode/style/css.js +0 -3
  832. package/lib/SendCode/style/index.css +0 -1
  833. package/lib/SendCode/style/index.d.ts +0 -1
  834. package/lib/SendCode/style/index.js +0 -3
  835. package/lib/SendCode/style/index.less +0 -31
  836. package/lib/ShieldSpin/index.d.ts +0 -7
  837. package/lib/ShieldSpin/index.js +0 -35
  838. package/lib/SubmitButton/index.d.ts +0 -8
  839. package/lib/SubmitButton/index.js +0 -68
  840. package/lib/SubmitSuccess/index.d.ts +0 -3
  841. package/lib/SubmitSuccess/index.js +0 -92
  842. package/lib/SubmitSuccess/interface.d.ts +0 -13
  843. package/lib/SubmitSuccess/interface.js +0 -5
  844. package/lib/Type/index.d.ts +0 -35
  845. package/lib/Type/index.js +0 -25
  846. package/lib/ValidatorRules/PasswordFormItem.d.ts +0 -3
  847. package/lib/ValidatorRules/PasswordFormItem.js +0 -38
  848. package/lib/ValidatorRules/ValidatorFormItem.d.ts +0 -5
  849. package/lib/ValidatorRules/ValidatorFormItem.js +0 -262
  850. package/lib/ValidatorRules/index.d.ts +0 -27
  851. package/lib/ValidatorRules/index.js +0 -22
  852. package/lib/VerifyCodeInput/index.d.ts +0 -9
  853. package/lib/VerifyCodeInput/index.js +0 -92
  854. package/lib/VerifyCodeInput/style/css.js +0 -3
  855. package/lib/VerifyCodeInput/style/index.css +0 -1
  856. package/lib/VerifyCodeInput/style/index.d.ts +0 -1
  857. package/lib/VerifyCodeInput/style/index.js +0 -3
  858. package/lib/VerifyCodeInput/style/index.less +0 -24
  859. package/lib/_utils/GuardErrorCode.d.ts +0 -9
  860. package/lib/_utils/GuardErrorCode.js +0 -18
  861. package/lib/_utils/clipboard.d.ts +0 -1
  862. package/lib/_utils/clipboard.js +0 -45
  863. package/lib/_utils/config.d.ts +0 -7
  864. package/lib/_utils/config.js +0 -152
  865. package/lib/_utils/context.d.ts +0 -8
  866. package/lib/_utils/context.js +0 -31
  867. package/lib/_utils/errorFace.d.ts +0 -12
  868. package/lib/_utils/errorFace.js +0 -40
  869. package/lib/_utils/guradHttp.d.ts +0 -21
  870. package/lib/_utils/guradHttp.js +0 -190
  871. package/lib/_utils/hooks/index.d.ts +0 -4
  872. package/lib/_utils/hooks/index.js +0 -76
  873. package/lib/_utils/http.d.ts +0 -23
  874. package/lib/_utils/http.js +0 -188
  875. package/lib/_utils/index.d.ts +0 -60
  876. package/lib/_utils/index.js +0 -547
  877. package/lib/_utils/locales/en/index.d.ts +0 -5
  878. package/lib/_utils/locales/en/index.js +0 -39
  879. package/lib/_utils/locales/index.d.ts +0 -5
  880. package/lib/_utils/locales/index.js +0 -72
  881. package/lib/_utils/locales/zh/index.d.ts +0 -5
  882. package/lib/_utils/locales/zh/index.js +0 -39
  883. package/lib/_utils/popupCenter.d.ts +0 -9
  884. package/lib/_utils/popupCenter.js +0 -33
  885. package/lib/context/base.d.ts +0 -12
  886. package/lib/context/base.js +0 -26
  887. package/lib/context/global/context.d.ts +0 -10
  888. package/lib/context/global/context.js +0 -63
  889. package/lib/context/global/reducer.d.ts +0 -29
  890. package/lib/context/global/reducer.js +0 -36
  891. package/lib/context/module/context.d.ts +0 -11
  892. package/lib/context/module/context.js +0 -37
  893. package/lib/index.css +0 -2358
  894. package/lib/index.js +0 -96
  895. package/lib/version/index.d.ts +0 -2
  896. package/lib/version/index.js +0 -13
  897. package/lib/version/version.d.ts +0 -2
  898. package/lib/version/version.js +0 -8
@@ -1,203 +0,0 @@
1
- import "antd/lib/input/style";
2
- import _Input from "antd/lib/input";
3
- import "antd/lib/alert/style";
4
- import _Alert from "antd/lib/alert";
5
- import "antd/lib/message/style";
6
- import _message from "antd/lib/message";
7
- import _asyncToGenerator from "@babel/runtime-corejs3/helpers/esm/asyncToGenerator";
8
- import "antd/lib/form/style";
9
- import _Form from "antd/lib/form";
10
- import _slicedToArray from "@babel/runtime-corejs3/helpers/esm/slicedToArray";
11
- import _regeneratorRuntime from "@babel/runtime-corejs3/regenerator";
12
- import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/concat";
13
- import React, { forwardRef, useImperativeHandle, useState } from 'react';
14
- import { UserOutlined, SafetyOutlined } from '@ant-design/icons';
15
- import { getRequiredRules, getUserRegisterParams, VALIDATE_PATTERN } from '../../../_utils';
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';
20
- import { useTranslation } from 'react-i18next';
21
- export var PhoneCodeLoginForm = /*#__PURE__*/forwardRef(function (_ref, ref) {
22
- var _context;
23
-
24
- var onSuccess = _ref.onSuccess,
25
- onFail = _ref.onFail,
26
- onValidateFail = _ref.onValidateFail;
27
-
28
- var _useGuardContext = useGuardContext(),
29
- _useGuardContext$stat = _useGuardContext.state,
30
- authClient = _useGuardContext$stat.authClient,
31
- config = _useGuardContext$stat.config,
32
- guardEvents = _useGuardContext$stat.guardEvents;
33
-
34
- var _useTranslation = useTranslation(),
35
- t = _useTranslation.t;
36
-
37
- var rulesMap = {
38
- phone: _concatInstanceProperty(_context = getRequiredRules(t('login.inputPhone'))).call(_context, {
39
- pattern: VALIDATE_PATTERN.phone,
40
- message: t('common.phoneFormateError')
41
- }),
42
- code: getRequiredRules(t('common.inputVerifyCode'))
43
- };
44
-
45
- var _Form$useForm = _Form.useForm(),
46
- _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
47
- rawForm = _Form$useForm2[0];
48
-
49
- var _useState = useState(''),
50
- _useState2 = _slicedToArray(_useState, 2),
51
- phone = _useState2[0],
52
- setPhone = _useState2[1];
53
-
54
- var _useState3 = useState(false),
55
- _useState4 = _slicedToArray(_useState3, 2),
56
- loading = _useState4[0],
57
- setLoading = _useState4[1];
58
-
59
- var onFinishFailed = function onFinishFailed(errorInfo) {
60
- setLoading(false);
61
- onValidateFail && onValidateFail(errorInfo);
62
- };
63
-
64
- var onFinish = /*#__PURE__*/function () {
65
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(values) {
66
- var canLogin, _phone, code, user;
67
-
68
- return _regeneratorRuntime.wrap(function _callee$(_context2) {
69
- while (1) {
70
- switch (_context2.prev = _context2.next) {
71
- case 0:
72
- if (!guardEvents.onBeforeLogin) {
73
- _context2.next = 15;
74
- break;
75
- }
76
-
77
- _context2.prev = 1;
78
- _context2.next = 4;
79
- return guardEvents.onBeforeLogin({
80
- type: LoginMethods.PhoneCode,
81
- data: {
82
- phone: values.phone,
83
- code: values.code
84
- }
85
- }, authClient);
86
-
87
- case 4:
88
- canLogin = _context2.sent;
89
-
90
- if (canLogin) {
91
- _context2.next = 8;
92
- break;
93
- }
94
-
95
- setLoading(false);
96
- return _context2.abrupt("return");
97
-
98
- case 8:
99
- _context2.next = 15;
100
- break;
101
-
102
- case 10:
103
- _context2.prev = 10;
104
- _context2.t0 = _context2["catch"](1);
105
-
106
- if (typeof _context2.t0 === 'string') {
107
- _message.error(_context2.t0);
108
- } else {
109
- _message.error(_context2.t0.message);
110
- }
111
-
112
- setLoading(false);
113
- return _context2.abrupt("return");
114
-
115
- case 15:
116
- _context2.prev = 15;
117
- _phone = values.phone, code = values.code;
118
- _context2.next = 19;
119
- return authClient.loginByPhoneCode(_phone, code, {
120
- params: getUserRegisterParams()
121
- });
122
-
123
- case 19:
124
- user = _context2.sent;
125
- onSuccess && onSuccess(user);
126
- _context2.next = 26;
127
- break;
128
-
129
- case 23:
130
- _context2.prev = 23;
131
- _context2.t1 = _context2["catch"](15);
132
- onFail && onFail(_context2.t1);
133
-
134
- case 26:
135
- _context2.prev = 26;
136
- setLoading(false);
137
- return _context2.finish(26);
138
-
139
- case 29:
140
- case "end":
141
- return _context2.stop();
142
- }
143
- }
144
- }, _callee, null, [[1, 10], [15, 23, 26, 29]]);
145
- }));
146
-
147
- return function onFinish(_x) {
148
- return _ref2.apply(this, arguments);
149
- };
150
- }();
151
-
152
- useImperativeHandle(ref, function () {
153
- return rawForm;
154
- });
155
- return /*#__PURE__*/React.createElement(_Form, {
156
- form: rawForm,
157
- onSubmitCapture: function onSubmitCapture() {
158
- return setLoading(true);
159
- },
160
- onFinishFailed: onFinishFailed,
161
- onFinish: onFinish
162
- }, config.autoRegister && /*#__PURE__*/React.createElement(_Alert, {
163
- message: t('login.phoneAutoRegister'),
164
- style: {
165
- marginBottom: 24
166
- }
167
- }), /*#__PURE__*/React.createElement(_Form.Item, {
168
- name: "phone",
169
- rules: rulesMap.phone
170
- }, /*#__PURE__*/React.createElement(_Input, {
171
- autoComplete: "tel",
172
- onChange: function onChange(e) {
173
- setPhone(e.target.value);
174
- },
175
- size: "large",
176
- placeholder: t('login.inputPhone'),
177
- prefix: /*#__PURE__*/React.createElement(UserOutlined, {
178
- style: {
179
- color: '#ddd'
180
- }
181
- })
182
- })), /*#__PURE__*/React.createElement(_Form.Item, {
183
- name: "code",
184
- rules: rulesMap.code
185
- }, /*#__PURE__*/React.createElement(_Input, {
186
- size: "large",
187
- placeholder: t('common.inputFourVerifyCode', {
188
- length: 4
189
- }),
190
- prefix: /*#__PURE__*/React.createElement(SafetyOutlined, {
191
- style: {
192
- color: '#ddd'
193
- }
194
- }),
195
- suffix: /*#__PURE__*/React.createElement(SendPhoneCode, {
196
- phone: phone
197
- })
198
- })), /*#__PURE__*/React.createElement(LoginFormFooter, {
199
- needRestPwd: true,
200
- needRegister: true,
201
- loading: loading
202
- }));
203
- });
@@ -1,4 +0,0 @@
1
- import { FormInstance } from 'antd/lib/form';
2
- import React from 'react';
3
- import { PhoneRegisterFormProps } from '../../../../components/AuthingGuard/types';
4
- export declare const PhoneRegisterForm: React.ForwardRefExoticComponent<PhoneRegisterFormProps & React.RefAttributes<FormInstance<any>>>;
@@ -1,271 +0,0 @@
1
- import "antd/lib/input/style";
2
- import _Input from "antd/lib/input";
3
- import "antd/lib/message/style";
4
- import _message from "antd/lib/message";
5
- import _asyncToGenerator from "@babel/runtime-corejs3/helpers/esm/asyncToGenerator";
6
- import "antd/lib/form/style";
7
- import _Form from "antd/lib/form";
8
- import _slicedToArray from "@babel/runtime-corejs3/helpers/esm/slicedToArray";
9
- import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/concat";
10
- import _Promise from "@babel/runtime-corejs3/core-js-stable/promise";
11
- import _mapInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/map";
12
- import _regeneratorRuntime from "@babel/runtime-corejs3/regenerator";
13
- import React, { forwardRef, useImperativeHandle, useState } from 'react';
14
- import { UserOutlined, LockOutlined, SafetyOutlined } from '@ant-design/icons';
15
- import { useGuardContext } from '../../../context/global/context';
16
- import { RegisterMethods } from '../../../../components/AuthingGuard/types';
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';
20
- import { useTranslation } from 'react-i18next';
21
- import { Agreements } from '../Agreements';
22
- export var PhoneRegisterForm = /*#__PURE__*/forwardRef(function (_ref, ref) {
23
- var _context2, _context3;
24
-
25
- var onSuccess = _ref.onSuccess,
26
- onFail = _ref.onFail,
27
- onValidateFail = _ref.onValidateFail;
28
-
29
- var _useGuardContext = useGuardContext(),
30
- _useGuardContext$stat = _useGuardContext.state,
31
- authClient = _useGuardContext$stat.authClient,
32
- config = _useGuardContext$stat.config,
33
- guardEvents = _useGuardContext$stat.guardEvents;
34
-
35
- var _useTranslation = useTranslation(),
36
- t = _useTranslation.t;
37
-
38
- var _Form$useForm = _Form.useForm(),
39
- _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
40
- rawForm = _Form$useForm2[0];
41
-
42
- var agreements = config.agreements,
43
- agreementEnabled = config.agreementEnabled;
44
- /** 表单是否被提交校验过 */
45
-
46
- var _useState = useState(false),
47
- _useState2 = _slicedToArray(_useState, 2),
48
- validated = _useState2[0],
49
- setValidated = _useState2[1];
50
-
51
- var _useState3 = useState(''),
52
- _useState4 = _slicedToArray(_useState3, 2),
53
- phone = _useState4[0],
54
- setPhone = _useState4[1];
55
-
56
- var _useState5 = useState(false),
57
- _useState6 = _slicedToArray(_useState5, 2),
58
- loading = _useState6[0],
59
- setLoading = _useState6[1];
60
-
61
- var onFinishFailed = function onFinishFailed(errorInfo) {
62
- setLoading(false);
63
- onValidateFail && onValidateFail(errorInfo);
64
- };
65
-
66
- var _useState7 = useState(false),
67
- _useState8 = _slicedToArray(_useState7, 2),
68
- acceptedAgreements = _useState8[0],
69
- setAcceptedAgreements = _useState8[1];
70
-
71
- var onFinish = /*#__PURE__*/function () {
72
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(values) {
73
- var canRegister, _phone, code, password, user;
74
-
75
- return _regeneratorRuntime.wrap(function _callee$(_context) {
76
- while (1) {
77
- switch (_context.prev = _context.next) {
78
- case 0:
79
- if (!guardEvents.onBeforeRegister) {
80
- _context.next = 15;
81
- break;
82
- }
83
-
84
- _context.prev = 1;
85
- _context.next = 4;
86
- return guardEvents.onBeforeRegister({
87
- type: RegisterMethods.Phone,
88
- data: {
89
- phone: values.phone,
90
- password: values.password,
91
- code: values.code
92
- }
93
- }, authClient);
94
-
95
- case 4:
96
- canRegister = _context.sent;
97
-
98
- if (canRegister) {
99
- _context.next = 8;
100
- break;
101
- }
102
-
103
- setLoading(false);
104
- return _context.abrupt("return");
105
-
106
- case 8:
107
- _context.next = 15;
108
- break;
109
-
110
- case 10:
111
- _context.prev = 10;
112
- _context.t0 = _context["catch"](1);
113
-
114
- if (typeof _context.t0 === 'string') {
115
- _message.error(_context.t0);
116
- } else {
117
- _message.error(_context.t0.message);
118
- }
119
-
120
- setLoading(false);
121
- return _context.abrupt("return");
122
-
123
- case 15:
124
- _context.prev = 15;
125
- _context.next = 18;
126
- return rawForm.validateFields();
127
-
128
- case 18:
129
- setValidated(true);
130
-
131
- if (!(agreementEnabled && agreements !== null && agreements !== void 0 && agreements.length && !acceptedAgreements)) {
132
- _context.next = 21;
133
- break;
134
- }
135
-
136
- return _context.abrupt("return");
137
-
138
- case 21:
139
- _phone = values.phone, code = values.code, password = values.password;
140
- _context.next = 24;
141
- return authClient.registerByPhoneCode(_phone, code, password, {
142
- browser: typeof navigator !== 'undefined' ? navigator.userAgent : null,
143
- device: getDeviceName()
144
- }, {
145
- generateToken: true,
146
- params: getUserRegisterParams()
147
- });
148
-
149
- case 24:
150
- user = _context.sent;
151
- onSuccess && onSuccess(user);
152
- _context.next = 31;
153
- break;
154
-
155
- case 28:
156
- _context.prev = 28;
157
- _context.t1 = _context["catch"](15);
158
- onFail && onFail(_context.t1);
159
-
160
- case 31:
161
- _context.prev = 31;
162
- setLoading(false);
163
- return _context.finish(31);
164
-
165
- case 34:
166
- case "end":
167
- return _context.stop();
168
- }
169
- }
170
- }, _callee, null, [[1, 10], [15, 28, 31, 34]]);
171
- }));
172
-
173
- return function onFinish(_x) {
174
- return _ref2.apply(this, arguments);
175
- };
176
- }();
177
-
178
- useImperativeHandle(ref, function () {
179
- return rawForm;
180
- });
181
- var formItems = [{
182
- component: /*#__PURE__*/React.createElement(_Input, {
183
- autoComplete: "tel",
184
- onChange: function onChange(e) {
185
- setPhone(e.target.value);
186
- },
187
- size: "large",
188
- placeholder: t('login.inputPhone'),
189
- prefix: /*#__PURE__*/React.createElement(UserOutlined, {
190
- style: {
191
- color: '#ddd'
192
- }
193
- })
194
- }),
195
- name: 'phone',
196
- rules: _concatInstanceProperty(_context2 = getRequiredRules(t('common.phoneNotNull'))).call(_context2, {
197
- pattern: VALIDATE_PATTERN.phone,
198
- message: t('login.phoneError')
199
- })
200
- }, {
201
- component: /*#__PURE__*/React.createElement(_Input.Password, {
202
- size: "large",
203
- placeholder: t('common.setPassword'),
204
- prefix: /*#__PURE__*/React.createElement(LockOutlined, {
205
- style: {
206
- color: '#ddd'
207
- }
208
- })
209
- }),
210
- name: 'password',
211
- rules: getRequiredRules(t('common.passwordNotNull'))
212
- }, {
213
- component: /*#__PURE__*/React.createElement(_Input.Password, {
214
- size: "large",
215
- placeholder: t('login.inputPwdAgain'),
216
- prefix: /*#__PURE__*/React.createElement(LockOutlined, {
217
- style: {
218
- color: '#ddd'
219
- }
220
- })
221
- }),
222
- name: 'new-password',
223
- rules: _concatInstanceProperty(_context3 = getRequiredRules(t('common.repeatPassword'))).call(_context3, {
224
- validator: function validator(rule, value) {
225
- if (value !== rawForm.getFieldValue('password')) {
226
- return _Promise.reject(t('common.repeatPasswordDoc'));
227
- } else {
228
- return _Promise.resolve();
229
- }
230
- }
231
- })
232
- }, {
233
- component: /*#__PURE__*/React.createElement(_Input, {
234
- autoComplete: "one-time-code",
235
- size: "large",
236
- placeholder: t('common.inputFourVerifyCode', {
237
- length: 4
238
- }),
239
- prefix: /*#__PURE__*/React.createElement(SafetyOutlined, {
240
- style: {
241
- color: '#ddd'
242
- }
243
- }),
244
- addonAfter: /*#__PURE__*/React.createElement(SendPhoneCode, {
245
- phone: phone
246
- })
247
- }),
248
- name: 'code',
249
- rules: getRequiredRules(t('common.captchaCodeNotNull'))
250
- }];
251
- return /*#__PURE__*/React.createElement(_Form, {
252
- form: rawForm,
253
- onSubmitCapture: function onSubmitCapture() {
254
- return setLoading(true);
255
- },
256
- onFinishFailed: onFinishFailed,
257
- onFinish: onFinish
258
- }, _mapInstanceProperty(formItems).call(formItems, function (item) {
259
- return /*#__PURE__*/React.createElement(_Form.Item, {
260
- name: item.name,
261
- key: item.name,
262
- rules: item.rules
263
- }, item.component);
264
- }), config.agreementEnabled && Boolean(agreements === null || agreements === void 0 ? void 0 : agreements.length) && /*#__PURE__*/React.createElement(Agreements, {
265
- onChange: setAcceptedAgreements,
266
- agreements: agreements,
267
- showError: validated
268
- }), /*#__PURE__*/React.createElement(RegisterFormFooter, {
269
- loading: loading
270
- }));
271
- });
@@ -1,3 +0,0 @@
1
- import { FC } from 'react';
2
- import { QrLoginFormProps } from '../../../../components/AuthingGuard/types';
3
- export declare const QrCodeLoginForm: FC<QrLoginFormProps>;
@@ -1,68 +0,0 @@
1
- import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys";
2
- import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";
3
- import _filterInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/filter";
4
- import _Object$getOwnPropertyDescriptor from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";
5
- import _forEachInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/for-each";
6
- import _Object$getOwnPropertyDescriptors from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";
7
- import _Object$defineProperties from "@babel/runtime-corejs3/core-js-stable/object/define-properties";
8
- import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object/define-property";
9
- import "antd/lib/spin/style";
10
- import _Spin from "antd/lib/spin";
11
- import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
12
-
13
- function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); if (enumerableOnly) symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
14
-
15
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { var _context; _forEachInstanceProperty(_context = ownKeys(Object(source), true)).call(_context, function (key) { _defineProperty(target, key, source[key]); }); } else if (_Object$getOwnPropertyDescriptors) { _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)); } else { var _context2; _forEachInstanceProperty(_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } } return target; }
16
-
17
- import React, { useEffect, useMemo, useRef } from 'react';
18
- import { useGuardContext } from '../../../context/global/context';
19
- import { LoginMethods } from '../../../../components/AuthingGuard/types';
20
- export var QrCodeLoginForm = function QrCodeLoginForm(_ref) {
21
- var onFail = _ref.onFail,
22
- _onSuccess = _ref.onSuccess,
23
- type = _ref.type,
24
- idpId = _ref.idpId;
25
-
26
- var _useGuardContext = useGuardContext(),
27
- _useGuardContext$stat = _useGuardContext.state,
28
- authClient = _useGuardContext$stat.authClient,
29
- config = _useGuardContext$stat.config;
30
-
31
- var timerRef = useRef();
32
- var client = useMemo(function () {
33
- var _LoginMethods$AppQr$L;
34
-
35
- return (_LoginMethods$AppQr$L = {}, _defineProperty(_LoginMethods$AppQr$L, LoginMethods.AppQr, authClient.qrcode), _defineProperty(_LoginMethods$AppQr$L, LoginMethods.WxMinQr, authClient.wxqrcode), _defineProperty(_LoginMethods$AppQr$L, LoginMethods.WechatMpQrcode, authClient.wechatmpqrcode), _LoginMethods$AppQr$L)[type];
36
- }, [type, authClient]);
37
- useEffect(function () {
38
- client.startScanning('authingGuardQrcode', _objectSpread(_objectSpread({
39
- extIdpConnId: idpId,
40
- autoExchangeUserInfo: true
41
- }, config.qrCodeScanOptions), {}, {
42
- onStart: function onStart(timer) {
43
- timerRef.current = timer;
44
- },
45
- onSuccess: function onSuccess(user) {
46
- _onSuccess && _onSuccess(user);
47
- },
48
- onError: function onError(message) {
49
- var _config$qrCodeScanOpt, _config$qrCodeScanOpt2;
50
-
51
- (_config$qrCodeScanOpt = config.qrCodeScanOptions) === null || _config$qrCodeScanOpt === void 0 ? void 0 : (_config$qrCodeScanOpt2 = _config$qrCodeScanOpt.onError) === null || _config$qrCodeScanOpt2 === void 0 ? void 0 : _config$qrCodeScanOpt2.call(_config$qrCodeScanOpt, message);
52
- onFail && onFail("".concat(message));
53
- }
54
- }));
55
- return function () {
56
- return clearInterval(timerRef.current);
57
- };
58
- }, [client, config.qrCodeScanOptions, idpId, onFail, _onSuccess]);
59
- return /*#__PURE__*/React.createElement("div", {
60
- className: "authing-guard-qr-form"
61
- }, /*#__PURE__*/React.createElement("div", {
62
- className: "authing-guard-qr-loading"
63
- }, /*#__PURE__*/React.createElement(_Spin, {
64
- size: "large"
65
- })), /*#__PURE__*/React.createElement("div", {
66
- id: "authingGuardQrcode"
67
- }));
68
- };
@@ -1,5 +0,0 @@
1
- import { FC } from 'react';
2
- export interface RegisterFormFooterProps {
3
- loading: boolean;
4
- }
5
- export declare const RegisterFormFooter: FC<RegisterFormFooterProps>;
@@ -1,38 +0,0 @@
1
- import "antd/lib/button/style";
2
- import _Button from "antd/lib/button";
3
- import React from 'react';
4
- import { useGuardContext } from '../../../context/global/context';
5
- import { GuardScenes } from '../../../../components/AuthingGuard/types';
6
- import { useTranslation } from 'react-i18next';
7
- export var RegisterFormFooter = function RegisterFormFooter(_ref) {
8
- var _config$text, _config$text$register, _config$text2, _config$text2$registe, _config$text3, _config$text3$registe, _config$text4, _config$text4$registe;
9
-
10
- var loading = _ref.loading;
11
-
12
- var _useGuardContext = useGuardContext(),
13
- setValue = _useGuardContext.setValue,
14
- config = _useGuardContext.state.config;
15
-
16
- var _useTranslation = useTranslation(),
17
- t = _useTranslation.t;
18
-
19
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_Button, {
20
- htmlType: "submit",
21
- size: "large",
22
- type: "primary",
23
- loading: loading,
24
- block: true
25
- }, loading ? t("map.".concat((_config$text = config.text) === null || _config$text === void 0 ? void 0 : (_config$text$register = _config$text.registerBtn) === null || _config$text$register === void 0 ? void 0 : _config$text$register.loading), (_config$text2 = config.text) === null || _config$text2 === void 0 ? void 0 : (_config$text2$registe = _config$text2.registerBtn) === null || _config$text2$registe === void 0 ? void 0 : _config$text2$registe.loading) : t("map.".concat((_config$text3 = config.text) === null || _config$text3 === void 0 ? void 0 : (_config$text3$registe = _config$text3.registerBtn) === null || _config$text3$registe === void 0 ? void 0 : _config$text3$registe.normal), (_config$text4 = config.text) === null || _config$text4 === void 0 ? void 0 : (_config$text4$registe = _config$text4.registerBtn) === null || _config$text4$registe === void 0 ? void 0 : _config$text4$registe.normal)), /*#__PURE__*/React.createElement("div", {
26
- className: "authing-guard-form-actions"
27
- }, /*#__PURE__*/React.createElement("div", {
28
- className: "authing-guard-tip-btn-comb"
29
- }, /*#__PURE__*/React.createElement("span", {
30
- className: "authing-guard-tip"
31
- }, t('common.alreadyHasAcc')), /*#__PURE__*/React.createElement(_Button, {
32
- onClick: function onClick() {
33
- return setValue('guardScenes', GuardScenes.Login);
34
- },
35
- className: "authing-guard-text-btn authing-guard-to-login-btn",
36
- type: "text"
37
- }, t('common.loginImmediate')))));
38
- };
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const ResetPwdFormFooter: () => JSX.Element;
@@ -1,22 +0,0 @@
1
- import "antd/lib/button/style";
2
- import _Button from "antd/lib/button";
3
- import React from 'react';
4
- import { useGuardContext } from '../../../context/global/context';
5
- import { GuardScenes } from '../../../../components/AuthingGuard/types';
6
- import { useTranslation } from 'react-i18next';
7
- export var ResetPwdFormFooter = function ResetPwdFormFooter() {
8
- var _useGuardContext = useGuardContext(),
9
- setValue = _useGuardContext.setValue;
10
-
11
- var _useTranslation = useTranslation(),
12
- t = _useTranslation.t;
13
-
14
- return /*#__PURE__*/React.createElement(_Button, {
15
- onClick: function onClick() {
16
- return setValue('guardScenes', GuardScenes.Login);
17
- },
18
- className: "authing-guard-text-btn authing-guard-form-actions",
19
- type: "text",
20
- htmlType: "button"
21
- }, t('login.otherAccLogin'));
22
- };
@@ -1,3 +0,0 @@
1
- import { FC } from 'react';
2
- import { ResetPasswordStep1Props } from '../../../../components/AuthingGuard/types';
3
- export declare const ResetPasswordStep1: FC<ResetPasswordStep1Props>;