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

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 +2867 -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 +83 -41
  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,237 +0,0 @@
1
- import "antd/lib/spin/style";
2
- import _Spin from "antd/lib/spin";
3
- import "antd/lib/button/style";
4
- import _Button from "antd/lib/button";
5
- import "antd/lib/form/style";
6
- import _Form from "antd/lib/form";
7
- import "antd/lib/input/style";
8
- import _Input from "antd/lib/input";
9
- import "antd/lib/message/style";
10
- import _message from "antd/lib/message";
11
- import _asyncToGenerator from "@babel/runtime-corejs3/helpers/esm/asyncToGenerator";
12
- import _slicedToArray from "@babel/runtime-corejs3/helpers/esm/slicedToArray";
13
- import _regeneratorRuntime from "@babel/runtime-corejs3/regenerator";
14
- import _forEachInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/for-each";
15
- import _Object$entries from "@babel/runtime-corejs3/core-js-stable/object/entries";
16
- import _mapInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/map";
17
- import _findInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/find";
18
- import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/concat";
19
- import { useForm } from 'antd/lib/form/Form';
20
- import React, { useEffect, useState } from 'react';
21
- import { useGuardContext } from '../../../context/global/context';
22
- import { UploadImage } from '../UploadImage';
23
- import { requestClient } from '../../../_utils/http';
24
- import { useTranslation } from 'react-i18next';
25
- import { i18n } from '../../../_utils/locales';
26
- export var CompleteUserInfoForm = function CompleteUserInfoForm(_ref) {
27
- var onSuccess = _ref.onSuccess;
28
-
29
- var _useTranslation = useTranslation(),
30
- t = _useTranslation.t;
31
-
32
- var _useForm = useForm(),
33
- _useForm2 = _slicedToArray(_useForm, 1),
34
- rawForm = _useForm2[0];
35
-
36
- var _useState = useState(false),
37
- _useState2 = _slicedToArray(_useState, 2),
38
- submitting = _useState2[0],
39
- setSubmitting = _useState2[1];
40
-
41
- var _useState3 = useState(false),
42
- _useState4 = _slicedToArray(_useState3, 2),
43
- loading = _useState4[0],
44
- setLoading = _useState4[1];
45
-
46
- var _useGuardContext = useGuardContext(),
47
- _useGuardContext$stat = _useGuardContext.state,
48
- config = _useGuardContext$stat.config,
49
- authClient = _useGuardContext$stat.authClient,
50
- guardEvents = _useGuardContext$stat.guardEvents,
51
- userPoolId = _useGuardContext$stat.userPoolId;
52
-
53
- var extendsFields = config.extendsFields;
54
-
55
- var _useState5 = useState(),
56
- _useState6 = _slicedToArray(_useState5, 2),
57
- setUser = _useState6[1];
58
-
59
- var _useState7 = useState([]),
60
- _useState8 = _slicedToArray(_useState7, 2),
61
- definitions = _useState8[0],
62
- setDefinitions = _useState8[1];
63
-
64
- var onFinish = /*#__PURE__*/function () {
65
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(values) {
66
- var _context;
67
-
68
- var internalFields, userFields, udfs, _guardEvents$onRegist, user, _guardEvents$onRegist2;
69
-
70
- return _regeneratorRuntime.wrap(function _callee$(_context2) {
71
- while (1) {
72
- switch (_context2.prev = _context2.next) {
73
- case 0:
74
- internalFields = {};
75
- userFields = [];
76
-
77
- _forEachInstanceProperty(_context = _Object$entries(values)).call(_context, function (_ref3) {
78
- var _ref4 = _slicedToArray(_ref3, 2),
79
- key = _ref4[0],
80
- value = _ref4[1];
81
-
82
- var _key$split = key.split(' '),
83
- _key$split2 = _slicedToArray(_key$split, 2),
84
- type = _key$split2[0],
85
- nameOrId = _key$split2[1];
86
-
87
- if (type === 'internal') {
88
- internalFields[nameOrId] = value;
89
- } else if (type === 'user') {
90
- userFields.push({
91
- nameOrId: nameOrId,
92
- value: value
93
- });
94
- }
95
- });
96
-
97
- udfs = _mapInstanceProperty(userFields).call(userFields, function (_ref5) {
98
- var nameOrId = _ref5.nameOrId,
99
- value = _ref5.value;
100
- return {
101
- definition: _findInstanceProperty(definitions).call(definitions, function (def) {
102
- return def.id === nameOrId;
103
- }),
104
- value: value
105
- };
106
- });
107
- _context2.prev = 4;
108
- _context2.next = 7;
109
- return authClient.updateProfile(internalFields);
110
-
111
- case 7:
112
- user = _context2.sent;
113
- setUser(user);
114
- _context2.next = 11;
115
- return requestClient.post("/api/v2/udfs/values", {
116
- udfs: udfs
117
- }, {
118
- headers: {
119
- authorization: user === null || user === void 0 ? void 0 : user.token,
120
- 'x-authing-userpool-id': userPoolId
121
- }
122
- });
123
-
124
- case 11:
125
- _message.success(t('common.saveSuccess'));
126
-
127
- (_guardEvents$onRegist = guardEvents.onRegisterInfoCompleted) === null || _guardEvents$onRegist === void 0 ? void 0 : _guardEvents$onRegist.call(guardEvents, user, udfs, authClient);
128
- onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess(user);
129
- _context2.next = 20;
130
- break;
131
-
132
- case 16:
133
- _context2.prev = 16;
134
- _context2.t0 = _context2["catch"](4);
135
- (_guardEvents$onRegist2 = guardEvents.onRegisterInfoCompletedError) === null || _guardEvents$onRegist2 === void 0 ? void 0 : _guardEvents$onRegist2.call(guardEvents, _context2.t0, udfs, authClient);
136
- setSubmitting(false);
137
-
138
- case 20:
139
- _context2.prev = 20;
140
- setSubmitting(false);
141
- return _context2.finish(20);
142
-
143
- case 23:
144
- case "end":
145
- return _context2.stop();
146
- }
147
- }
148
- }, _callee, null, [[4, 16, 20, 23]]);
149
- }));
150
-
151
- return function onFinish(_x) {
152
- return _ref2.apply(this, arguments);
153
- };
154
- }();
155
-
156
- useEffect(function () {
157
- setLoading(true);
158
-
159
- _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
160
- var user, _yield$requestClient$, data;
161
-
162
- return _regeneratorRuntime.wrap(function _callee2$(_context3) {
163
- while (1) {
164
- switch (_context3.prev = _context3.next) {
165
- case 0:
166
- _context3.next = 2;
167
- return authClient.getCurrentUser();
168
-
169
- case 2:
170
- user = _context3.sent;
171
- setUser(user);
172
- _context3.next = 6;
173
- return requestClient.get('/api/v2/udfs/definitions', undefined, {
174
- headers: {
175
- authorization: user === null || user === void 0 ? void 0 : user.token,
176
- 'x-authing-userpool-id': userPoolId
177
- }
178
- });
179
-
180
- case 6:
181
- _yield$requestClient$ = _context3.sent;
182
- data = _yield$requestClient$.data;
183
- setDefinitions(data);
184
- setLoading(false);
185
-
186
- case 10:
187
- case "end":
188
- return _context3.stop();
189
- }
190
- }
191
- }, _callee2);
192
- }))();
193
- }, [authClient, userPoolId]);
194
-
195
- var onFinishFailed = function onFinishFailed() {};
196
-
197
- var INPUT_MAP = {
198
- image: /*#__PURE__*/React.createElement(UploadImage, null)
199
- };
200
-
201
- var formFields = _mapInstanceProperty(extendsFields).call(extendsFields, function (def) {
202
- var _context4;
203
-
204
- var key = _concatInstanceProperty(_context4 = "".concat(def.type, " ")).call(_context4, def.type === 'internal' ? def.name : def.id);
205
-
206
- var label = i18n.language === 'zh-CN' ? def.label : def.name;
207
- return /*#__PURE__*/React.createElement(_Form.Item, {
208
- key: key,
209
- name: key,
210
- label: label,
211
- style: {
212
- marginBottom: 8
213
- }
214
- }, INPUT_MAP[def.inputType] || /*#__PURE__*/React.createElement(_Input, {
215
- type: def.inputType,
216
- size: "large"
217
- }));
218
- });
219
-
220
- return /*#__PURE__*/React.createElement(_Spin, {
221
- spinning: loading
222
- }, /*#__PURE__*/React.createElement(_Form, {
223
- layout: "vertical",
224
- form: rawForm,
225
- onSubmitCapture: function onSubmitCapture() {
226
- return setSubmitting(true);
227
- },
228
- onFinishFailed: onFinishFailed,
229
- onFinish: onFinish
230
- }, formFields, /*#__PURE__*/React.createElement(_Button, {
231
- size: "large",
232
- loading: submitting,
233
- type: "primary",
234
- block: true,
235
- htmlType: "submit"
236
- }, t('common.problem.form.submit'))));
237
- };
@@ -1,3 +0,0 @@
1
- import { FC } from 'react';
2
- import { MFACheckEmailFormProps } from '../../types';
3
- export declare const CheckEmailForm: FC<MFACheckEmailFormProps>;
@@ -1,123 +0,0 @@
1
- import "antd/lib/button/style";
2
- import _Button from "antd/lib/button";
3
- import "antd/lib/input/style";
4
- import _Input from "antd/lib/input";
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 React, { useState } from 'react';
13
- import { useGuardContext } from '../../../context/global/context';
14
- import { useTranslation } from 'react-i18next';
15
- import { VALIDATE_PATTERN } from '../../../_utils';
16
- export var CheckEmailForm = function CheckEmailForm(_ref) {
17
- var onSuccess = _ref.onSuccess,
18
- mfaToken = _ref.mfaToken;
19
-
20
- var _useGuardContext = useGuardContext(),
21
- authClient = _useGuardContext.state.authClient;
22
-
23
- var _useTranslation = useTranslation(),
24
- t = _useTranslation.t;
25
-
26
- var _Form$useForm = _Form.useForm(),
27
- _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
28
- rawForm = _Form$useForm2[0];
29
-
30
- var _useState = useState(false),
31
- _useState2 = _slicedToArray(_useState, 2),
32
- loading = _useState2[0],
33
- setLoading = _useState2[1];
34
-
35
- var onFinish = /*#__PURE__*/function () {
36
- var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(_ref2) {
37
- var email, bindable;
38
- return _regeneratorRuntime.wrap(function _callee$(_context) {
39
- while (1) {
40
- switch (_context.prev = _context.next) {
41
- case 0:
42
- email = _ref2.email;
43
- _context.prev = 1;
44
- _context.next = 4;
45
- return authClient.mfa.phoneOrEmailBindable({
46
- mfaToken: mfaToken,
47
- email: email
48
- });
49
-
50
- case 4:
51
- bindable = _context.sent;
52
-
53
- if (bindable) {
54
- _context.next = 8;
55
- break;
56
- }
57
-
58
- _message.error(t('common.unBindEmaileDoc', {
59
- email: email
60
- }));
61
-
62
- return _context.abrupt("return");
63
-
64
- case 8:
65
- onSuccess(email);
66
- _context.next = 13;
67
- break;
68
-
69
- case 11:
70
- _context.prev = 11;
71
- _context.t0 = _context["catch"](1);
72
-
73
- case 13:
74
- _context.prev = 13;
75
- setLoading(false);
76
- return _context.finish(13);
77
-
78
- case 16:
79
- case "end":
80
- return _context.stop();
81
- }
82
- }
83
- }, _callee, null, [[1, 11, 13, 16]]);
84
- }));
85
-
86
- return function onFinish(_x) {
87
- return _ref3.apply(this, arguments);
88
- };
89
- }();
90
-
91
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("h3", {
92
- className: "authing-guard-mfa-title"
93
- }, t('common.bindEmail')), /*#__PURE__*/React.createElement("p", {
94
- className: "authing-guard-mfa-tips"
95
- }, t('common.bindEmailDoc')), /*#__PURE__*/React.createElement(_Form, {
96
- form: rawForm,
97
- onSubmitCapture: function onSubmitCapture() {
98
- return setLoading(true);
99
- },
100
- onFinish: onFinish,
101
- onFinishFailed: function onFinishFailed() {
102
- return setLoading(false);
103
- }
104
- }, /*#__PURE__*/React.createElement(_Form.Item, {
105
- name: "email",
106
- rules: [{
107
- required: true,
108
- message: t('login.inputEmail')
109
- }, {
110
- pattern: VALIDATE_PATTERN.email,
111
- message: t('login.emailError')
112
- }]
113
- }, /*#__PURE__*/React.createElement(_Input, {
114
- placeholder: t('login.inputEmail')
115
- })), /*#__PURE__*/React.createElement(_Button, {
116
- className: "authing-guard-mfa-confirm-btn",
117
- loading: loading,
118
- block: true,
119
- htmlType: "submit",
120
- type: "primary",
121
- size: "large"
122
- }, t('common.sure'))));
123
- };
@@ -1,3 +0,0 @@
1
- import { FC } from 'react';
2
- import { EmailMFAVerifyFormProps } from '../../../../components/AuthingGuard/types';
3
- export declare const VerifyCodeForm: FC<EmailMFAVerifyFormProps>;
@@ -1,184 +0,0 @@
1
- import "antd/lib/button/style";
2
- import _Button from "antd/lib/button";
3
- import _asyncToGenerator from "@babel/runtime-corejs3/helpers/esm/asyncToGenerator";
4
- import "antd/lib/form/style";
5
- import _Form from "antd/lib/form";
6
- import _slicedToArray from "@babel/runtime-corejs3/helpers/esm/slicedToArray";
7
- import _regeneratorRuntime from "@babel/runtime-corejs3/regenerator";
8
- import _fillInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/fill";
9
- import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/concat";
10
- import _someInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/some";
11
- import _Promise from "@babel/runtime-corejs3/core-js-stable/promise";
12
- import { EmailScene } from 'authing-js-sdk';
13
- import React, { useState } from 'react';
14
- import { VerifyCodeInput } from '../../../VerifyCodeInput';
15
- import { useGuardContext } from '../../../context/global/context';
16
- import { SendCodeBtn } from '../SendPhoneCode/SendCodeBtn';
17
- import { useTranslation } from 'react-i18next';
18
- var CODE_LEN = 4;
19
- export var VerifyCodeForm = function VerifyCodeForm(_ref) {
20
- var _context, _context4;
21
-
22
- var onSuccess = _ref.onSuccess,
23
- onFail = _ref.onFail,
24
- email = _ref.email,
25
- mfaToken = _ref.mfaToken,
26
- sendCodeRef = _ref.sendCodeRef;
27
-
28
- var _useGuardContext = useGuardContext(),
29
- authClient = _useGuardContext.state.authClient;
30
-
31
- var _useTranslation = useTranslation(),
32
- t = _useTranslation.t;
33
-
34
- var _Form$useForm = _Form.useForm(),
35
- _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
36
- rawForm = _Form$useForm2[0];
37
-
38
- var _useState = useState(_fillInstanceProperty(_context = new Array(CODE_LEN)).call(_context, '')),
39
- _useState2 = _slicedToArray(_useState, 2),
40
- MfaCode = _useState2[0],
41
- setMFACode = _useState2[1];
42
-
43
- var _useState3 = useState(false),
44
- _useState4 = _slicedToArray(_useState3, 2),
45
- loading = _useState4[0],
46
- setLoading = _useState4[1];
47
-
48
- var _useState5 = useState(false),
49
- _useState6 = _slicedToArray(_useState5, 2),
50
- sending = _useState6[0],
51
- setSending = _useState6[1];
52
-
53
- var _useState7 = useState(false),
54
- _useState8 = _slicedToArray(_useState7, 2),
55
- sent = _useState8[0],
56
- setSent = _useState8[1];
57
-
58
- var onFinish = /*#__PURE__*/function () {
59
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(values) {
60
- var user;
61
- return _regeneratorRuntime.wrap(function _callee$(_context2) {
62
- while (1) {
63
- switch (_context2.prev = _context2.next) {
64
- case 0:
65
- _context2.prev = 0;
66
- _context2.next = 3;
67
- return authClient.mfa.verifyAppEmailMfa({
68
- mfaToken: mfaToken,
69
- email: email,
70
- code: MfaCode.join('')
71
- });
72
-
73
- case 3:
74
- user = _context2.sent;
75
- onSuccess && onSuccess(user);
76
- _context2.next = 10;
77
- break;
78
-
79
- case 7:
80
- _context2.prev = 7;
81
- _context2.t0 = _context2["catch"](0);
82
- onFail === null || onFail === void 0 ? void 0 : onFail(_context2.t0);
83
-
84
- case 10:
85
- _context2.prev = 10;
86
- setLoading(false);
87
- return _context2.finish(10);
88
-
89
- case 13:
90
- case "end":
91
- return _context2.stop();
92
- }
93
- }
94
- }, _callee, null, [[0, 7, 10, 13]]);
95
- }));
96
-
97
- return function onFinish(_x) {
98
- return _ref2.apply(this, arguments);
99
- };
100
- }();
101
-
102
- var sendVerifyCode = /*#__PURE__*/function () {
103
- var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
104
- return _regeneratorRuntime.wrap(function _callee2$(_context3) {
105
- while (1) {
106
- switch (_context3.prev = _context3.next) {
107
- case 0:
108
- _context3.prev = 0;
109
- setSending(true);
110
- _context3.next = 4;
111
- return authClient.sendEmail(email, EmailScene.MfaVerify);
112
-
113
- case 4:
114
- setSent(true);
115
- return _context3.abrupt("return", true);
116
-
117
- case 8:
118
- _context3.prev = 8;
119
- _context3.t0 = _context3["catch"](0);
120
- return _context3.abrupt("return", false);
121
-
122
- case 11:
123
- _context3.prev = 11;
124
- setSending(false);
125
- return _context3.finish(11);
126
-
127
- case 14:
128
- case "end":
129
- return _context3.stop();
130
- }
131
- }
132
- }, _callee2, null, [[0, 8, 11, 14]]);
133
- }));
134
-
135
- return function sendVerifyCode() {
136
- return _ref3.apply(this, arguments);
137
- };
138
- }();
139
-
140
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("h3", {
141
- className: "authing-guard-mfa-title"
142
- }, t('login.inputEmailCode')), /*#__PURE__*/React.createElement("p", {
143
- className: "authing-guard-mfa-tips"
144
- }, sending ? t('login.sendingVerifyCode') : sent ? _concatInstanceProperty(_context4 = "".concat(t('login.verifyCodeSended'), " ")).call(_context4, email) : t('login.clickSent')), /*#__PURE__*/React.createElement(_Form, {
145
- form: rawForm,
146
- onSubmitCapture: function onSubmitCapture() {
147
- return setLoading(true);
148
- },
149
- onFinish: onFinish,
150
- onFinishFailed: function onFinishFailed() {
151
- return setLoading(false);
152
- }
153
- }, /*#__PURE__*/React.createElement(_Form.Item, {
154
- name: "mfaCode",
155
- rules: [{
156
- validateTrigger: [],
157
- validator: function validator() {
158
- if (_someInstanceProperty(MfaCode).call(MfaCode, function (item) {
159
- return !item;
160
- })) {
161
- return _Promise.reject(t('login.inputFullMfaCode'));
162
- }
163
-
164
- return _Promise.resolve();
165
- }
166
- }]
167
- }, /*#__PURE__*/React.createElement(VerifyCodeInput, {
168
- length: CODE_LEN,
169
- verifyCode: MfaCode,
170
- setVerifyCode: setMFACode
171
- })), /*#__PURE__*/React.createElement(SendCodeBtn, {
172
- btnRef: sendCodeRef,
173
- beforeSend: function beforeSend() {
174
- return sendVerifyCode();
175
- }
176
- }), /*#__PURE__*/React.createElement(_Button, {
177
- className: "authing-guard-mfa-confirm-btn",
178
- loading: loading,
179
- block: true,
180
- htmlType: "submit",
181
- type: "primary",
182
- size: "large"
183
- }, t('common.sure'))));
184
- };
@@ -1,3 +0,0 @@
1
- import { FC } from 'react';
2
- import { SmsMFAFormProps } from '../../types';
3
- export declare const EmailMfaVerifyForm: FC<SmsMFAFormProps>;
@@ -1,36 +0,0 @@
1
- import _slicedToArray from "@babel/runtime-corejs3/helpers/esm/slicedToArray";
2
- import React, { useRef, useState } from 'react';
3
- import { useGuardContext } from '../../../context/global/context';
4
- import { CheckEmailForm } from './CheckEmailForm';
5
- import { VerifyCodeForm } from './VerifyCodeForm';
6
- export var EmailMfaVerifyForm = function EmailMfaVerifyForm(_ref) {
7
- var onSuccess = _ref.onSuccess,
8
- onFail = _ref.onFail;
9
-
10
- var _useGuardContext = useGuardContext(),
11
- _useGuardContext$stat = _useGuardContext.state.mfaData,
12
- mfaToken = _useGuardContext$stat.mfaToken,
13
- userEmail = _useGuardContext$stat.email;
14
-
15
- var _useState = useState(userEmail),
16
- _useState2 = _slicedToArray(_useState, 2),
17
- email = _useState2[0],
18
- setEmail = _useState2[1];
19
-
20
- var sendCodeRef = useRef(null);
21
- return /*#__PURE__*/React.createElement(React.Fragment, null, email ? /*#__PURE__*/React.createElement(VerifyCodeForm, {
22
- sendCodeRef: sendCodeRef,
23
- onSuccess: onSuccess,
24
- onFail: onFail,
25
- email: email,
26
- mfaToken: mfaToken
27
- }) : /*#__PURE__*/React.createElement(CheckEmailForm, {
28
- mfaToken: mfaToken,
29
- onSuccess: function onSuccess(email) {
30
- var _sendCodeRef$current;
31
-
32
- setEmail(email);
33
- (_sendCodeRef$current = sendCodeRef.current) === null || _sendCodeRef$current === void 0 ? void 0 : _sendCodeRef$current.click();
34
- }
35
- }));
36
- };
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import { FormInstance } from 'antd/lib/form';
3
- import { EmailRegisterFormProps } from '../../../../components/AuthingGuard/types';
4
- export declare const EmailRegisterForm: React.ForwardRefExoticComponent<EmailRegisterFormProps & React.RefAttributes<FormInstance<any>>>;