@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,135 +0,0 @@
1
- .authing-tabs {
2
- display: flex;
3
- margin-bottom: 36px;
4
- align-items: center;
5
- }
6
- .authing-tabs-inner {
7
- display: flex;
8
- justify-content: space-around;
9
- align-items: center;
10
- flex: 1;
11
- }
12
- .authing-tabs-inner--more {
13
- box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, 0.08);
14
- }
15
- .authing-tab-item {
16
- color: #aeb9d4;
17
- font-size: 16px;
18
- transition: all 0.3s ease-out;
19
- white-space: nowrap;
20
- cursor: pointer;
21
- position: relative;
22
- height: 28px;
23
- margin-right: 32px;
24
- &:last-child {
25
- margin-right: 12px;
26
- }
27
- &:only-child {
28
- margin-right: 0;
29
- }
30
- &::after {
31
- content: '';
32
- width: 0;
33
- height: 2px;
34
- display: block;
35
- position: absolute;
36
- left: 50%;
37
- bottom: -4px;
38
- transform: translateX(-50%);
39
- background-color: transparent;
40
- transition: all 0.3s ease-out;
41
- }
42
- }
43
- .authing-tab-item__active {
44
- color: #396aff;
45
- font-size: 18px;
46
- &::after {
47
- width: 26px;
48
- background-color: #396aff;
49
- }
50
- }
51
- .authing-tabs-show-more {
52
- position: relative;
53
- z-index: 2;
54
- &.ant-btn {
55
- padding: 0 12px;
56
- }
57
- &:hover,
58
- &:focus,
59
- &:active {
60
- background-color: #fff;
61
- }
62
- &:hover {
63
- .authing-tabs-more-panel {
64
- height: auto;
65
- opacity: 1;
66
- padding: 4px 0;
67
- }
68
- }
69
-
70
- &:after {
71
- content: '';
72
- display: block;
73
- width: 100%;
74
- height: 6px;
75
- top: 100%;
76
- left: 0;
77
- position: absolute;
78
- }
79
- }
80
- .authing-tabs-more-panel {
81
- position: absolute;
82
- box-sizing: border-box;
83
- transition: all 0.3s;
84
- height: 0;
85
- opacity: 0;
86
- right: 0;
87
- top: 100%;
88
- transform: translateY(6px);
89
- background-color: #fff;
90
- max-height: 200px;
91
- margin: 0;
92
- padding: 0;
93
- overflow-x: hidden;
94
- overflow-y: auto;
95
- text-align: left;
96
- list-style-type: none;
97
- background-clip: padding-box;
98
- border-radius: 2px;
99
- outline: none;
100
- box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12),
101
- 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
102
- }
103
- .authing-tabs-more-panel-item {
104
- min-width: 120px;
105
- margin: 0;
106
- padding: 5px 12px;
107
- overflow: hidden;
108
- color: rgba(0, 0, 0, 0.85);
109
- font-weight: 400;
110
- font-size: 14px;
111
- line-height: 22px;
112
- white-space: nowrap;
113
- text-overflow: ellipsis;
114
- cursor: pointer;
115
- transition: all 0.3s;
116
- &:hover {
117
- background-color: #f5f5f5;
118
- }
119
- }
120
-
121
- @media only screen and (max-width: 719px) {
122
- .authing-tabs-inner {
123
- justify-content: flex-start;
124
- }
125
- .authing-tab-item {
126
- margin-right: 40px;
127
- font-size: 14px;
128
- }
129
- .authing-tab-item__active {
130
- font-size: 16px;
131
- }
132
- .authing-tab-pane {
133
- padding-bottom: 70px;
134
- }
135
- }
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- export interface BindSuccessProps {
3
- onBind: any;
4
- secret: string;
5
- }
6
- export declare const BindSuccess: React.FC<BindSuccessProps>;
@@ -1,111 +0,0 @@
1
- import "antd/lib/checkbox/style";
2
- import _Checkbox from "antd/lib/checkbox";
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 "antd/lib/typography/style";
8
- import _Typography from "antd/lib/typography";
9
- import _Promise from "@babel/runtime-corejs3/core-js-stable/promise";
10
- import _regeneratorRuntime from "@babel/runtime-corejs3/regenerator";
11
- import React, { useRef } from 'react';
12
- import { useTranslation } from 'react-i18next';
13
- import SubmitButton from '../../SubmitButton';
14
- var Paragraph = _Typography.Paragraph;
15
- export var BindSuccess = function BindSuccess(_ref) {
16
- var secret = _ref.secret,
17
- onBind = _ref.onBind;
18
- // const [isSaved, setIsSaved] = useState(false)
19
- var submitButtonRef = useRef(null);
20
-
21
- var _Form$useForm = _Form.useForm(),
22
- _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
23
- form = _Form$useForm2[0];
24
-
25
- var _useTranslation = useTranslation(),
26
- t = _useTranslation.t;
27
-
28
- var bindSuccess = /*#__PURE__*/function () {
29
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
30
- var _submitButtonRef$curr;
31
-
32
- var _submitButtonRef$curr2, _submitButtonRef$curr3;
33
-
34
- return _regeneratorRuntime.wrap(function _callee$(_context) {
35
- while (1) {
36
- switch (_context.prev = _context.next) {
37
- case 0:
38
- (_submitButtonRef$curr = submitButtonRef.current) === null || _submitButtonRef$curr === void 0 ? void 0 : _submitButtonRef$curr.onSpin(true);
39
- _context.prev = 1;
40
- _context.next = 4;
41
- return form.validateFields();
42
-
43
- case 4:
44
- onBind();
45
- _context.next = 10;
46
- break;
47
-
48
- case 7:
49
- _context.prev = 7;
50
- _context.t0 = _context["catch"](1);
51
- (_submitButtonRef$curr2 = submitButtonRef.current) === null || _submitButtonRef$curr2 === void 0 ? void 0 : _submitButtonRef$curr2.onError();
52
-
53
- case 10:
54
- _context.prev = 10;
55
- (_submitButtonRef$curr3 = submitButtonRef.current) === null || _submitButtonRef$curr3 === void 0 ? void 0 : _submitButtonRef$curr3.onSpin(false);
56
- return _context.finish(10);
57
-
58
- case 13:
59
- case "end":
60
- return _context.stop();
61
- }
62
- }
63
- }, _callee, null, [[1, 7, 10, 13]]);
64
- }));
65
-
66
- return function bindSuccess() {
67
- return _ref2.apply(this, arguments);
68
- };
69
- }();
70
-
71
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("p", {
72
- className: "authing-g2-mfa-title"
73
- }, t('common.totpText1')), /*#__PURE__*/React.createElement("p", {
74
- className: "authing-g2-mfa-tips"
75
- }, t('common.totpText2')), /*#__PURE__*/React.createElement("div", {
76
- className: "g2-mfa-bindTotp-copySecret"
77
- }, /*#__PURE__*/React.createElement(Paragraph, {
78
- copyable: true
79
- }, secret)), /*#__PURE__*/React.createElement(_Form, {
80
- form: form,
81
- onFinish: bindSuccess,
82
- style: {
83
- width: '100%'
84
- },
85
- onFinishFailed: function onFinishFailed() {
86
- var _submitButtonRef$curr4;
87
-
88
- return (_submitButtonRef$curr4 = submitButtonRef.current) === null || _submitButtonRef$curr4 === void 0 ? void 0 : _submitButtonRef$curr4.onError();
89
- }
90
- }, /*#__PURE__*/React.createElement(_Form.Item, {
91
- className: "authing-g2-input-form g2-mfa-totp-verify-input",
92
- name: "remember",
93
- rules: [{
94
- validator: function validator(_, value) {
95
- console.log(value);
96
-
97
- if (!value) {
98
- return _Promise.reject(t('common.pleaseRecordKey'));
99
- }
100
-
101
- return _Promise.resolve();
102
- }
103
- }],
104
- valuePropName: "checked"
105
- }, /*#__PURE__*/React.createElement(_Checkbox, {
106
- className: "g2-mfa-bindTotp-secretSave"
107
- }, t('login.rememberedSecret'))), /*#__PURE__*/React.createElement(SubmitButton, {
108
- text: t('common.bindSuccess'),
109
- ref: submitButtonRef
110
- })));
111
- };
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- export interface SecurityCodeProps {
3
- mfaToken: string;
4
- qrcode: string;
5
- onNext: any;
6
- changeModule: any;
7
- }
8
- export declare const SecurityCode: React.FC<SecurityCodeProps>;
@@ -1,139 +0,0 @@
1
- import "antd/lib/message/style";
2
- import _message from "antd/lib/message";
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 React, { useRef } from 'react';
9
- import { useTranslation } from 'react-i18next';
10
- import { useAsyncFn } from 'react-use';
11
- import { GuardModuleType } from '../../Guard/module';
12
- import { useGuardHttp } from '../../_utils/guradHttp';
13
- import SubmitButton from '../../SubmitButton';
14
- import { ImagePro } from '../../ImagePro';
15
- import { VerifyCodeFormItem } from '../../MFA/VerifyCodeInput/VerifyCodeFormItem';
16
- import { VerifyCodeInput } from '../../MFA/VerifyCodeInput';
17
- export var SecurityCode = function SecurityCode(_ref) {
18
- var mfaToken = _ref.mfaToken,
19
- qrcode = _ref.qrcode,
20
- onNext = _ref.onNext,
21
- changeModule = _ref.changeModule;
22
-
23
- var _Form$useForm = _Form.useForm(),
24
- _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
25
- form = _Form$useForm2[0];
26
-
27
- var submitButtonRef = useRef(null);
28
-
29
- var _useTranslation = useTranslation(),
30
- t = _useTranslation.t;
31
-
32
- var _useGuardHttp = useGuardHttp(),
33
- post = _useGuardHttp.post;
34
-
35
- var onJump = function onJump() {
36
- changeModule === null || changeModule === void 0 ? void 0 : changeModule(GuardModuleType.DOWNLOAD_AT);
37
- };
38
-
39
- var _useAsyncFn = useAsyncFn( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
40
- var saftyCode, _yield$post, code, data, resMessage, _submitButtonRef$curr;
41
-
42
- return _regeneratorRuntime.wrap(function _callee$(_context) {
43
- while (1) {
44
- switch (_context.prev = _context.next) {
45
- case 0:
46
- submitButtonRef.current.onSpin(true);
47
- _context.prev = 1;
48
- _context.next = 4;
49
- return form.validateFields();
50
-
51
- case 4:
52
- saftyCode = form.getFieldValue('saftyCode');
53
- _context.next = 7;
54
- return post('/api/v2/mfa/totp/associate/confirm', {
55
- authenticator_type: 'totp',
56
- totp: saftyCode.join(''),
57
- source: 'APPLICATION'
58
- }, {
59
- headers: {
60
- authorization: mfaToken
61
- }
62
- });
63
-
64
- case 7:
65
- _yield$post = _context.sent;
66
- code = _yield$post.code;
67
- data = _yield$post.data;
68
- resMessage = _yield$post.message;
69
-
70
- if (code !== 200) {
71
- submitButtonRef.current.onError();
72
-
73
- _message.error(resMessage);
74
- } else {
75
- onNext(data);
76
- }
77
-
78
- _context.next = 17;
79
- break;
80
-
81
- case 14:
82
- _context.prev = 14;
83
- _context.t0 = _context["catch"](1);
84
- submitButtonRef.current.onError();
85
-
86
- case 17:
87
- _context.prev = 17;
88
- (_submitButtonRef$curr = submitButtonRef.current) === null || _submitButtonRef$curr === void 0 ? void 0 : _submitButtonRef$curr.onSpin(false);
89
- return _context.finish(17);
90
-
91
- case 20:
92
- case "end":
93
- return _context.stop();
94
- }
95
- }
96
- }, _callee, null, [[1, 14, 17, 20]]);
97
- })), [mfaToken]),
98
- _useAsyncFn2 = _slicedToArray(_useAsyncFn, 2),
99
- bindTotp = _useAsyncFn2[1];
100
-
101
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("p", {
102
- className: "authing-g2-mfa-title"
103
- }, t('user.mfaBind')), /*#__PURE__*/React.createElement("p", {
104
- className: "authing-g2-mfa-tips",
105
- style: {
106
- textAlign: 'left'
107
- }
108
- }, t('common.usePhoneOpen'), "\uFF08", t('common.noValidator'), ' ', /*#__PURE__*/React.createElement("span", {
109
- style: {
110
- color: '#396AFF',
111
- cursor: 'pointer'
112
- },
113
- onClick: onJump
114
- }, t('common.clickTodownload')), "\uFF09 ", t('common.mfaText1')), /*#__PURE__*/React.createElement(ImagePro, {
115
- className: "g2-mfa-bindTotp-qrcode",
116
- src: qrcode,
117
- alt: "qrcode"
118
- }), /*#__PURE__*/React.createElement(_Form, {
119
- className: "g2-mfa-bindTotp-securityCode-form",
120
- form: form,
121
- onSubmitCapture: function onSubmitCapture() {},
122
- onFinish: bindTotp,
123
- onFinishFailed: function onFinishFailed(e) {
124
- submitButtonRef.current.onError();
125
- }
126
- }, /*#__PURE__*/React.createElement(VerifyCodeFormItem, {
127
- codeLength: 6,
128
- name: "saftyCode",
129
- ruleKeyword: t('user.numberSafteyCode')
130
- }, /*#__PURE__*/React.createElement(VerifyCodeInput, {
131
- length: 6,
132
- showDivider: true,
133
- gutter: '10px',
134
- onFinish: bindTotp
135
- })), /*#__PURE__*/React.createElement(SubmitButton, {
136
- text: t('user.nextStep'),
137
- ref: submitButtonRef
138
- })));
139
- };
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- import { GuardBindTotpViewProps } from './interface';
3
- export declare const GuardBindTotpView: React.FC<GuardBindTotpViewProps>;
@@ -1,169 +0,0 @@
1
- import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
2
- import "antd/lib/message/style";
3
- import _message from "antd/lib/message";
4
- import _asyncToGenerator from "@babel/runtime-corejs3/helpers/esm/asyncToGenerator";
5
- import _slicedToArray from "@babel/runtime-corejs3/helpers/esm/slicedToArray";
6
- import _regeneratorRuntime from "@babel/runtime-corejs3/regenerator";
7
- import React, { useEffect, useMemo, useState } from 'react';
8
- import { useAsyncFn } from 'react-use';
9
- import { ErrorCode } from '../_utils/GuardErrorCode';
10
- import { useGuardHttp } from '../_utils/guradHttp';
11
- import { useGuardAuthClient } from '../Guard/authClient';
12
- import { GuardModuleType } from '../Guard/module';
13
- import { IconFont } from '../IconFont';
14
- import { ShieldSpin, Spin } from '../ShieldSpin';
15
- import { BindSuccess } from './core/bindSuccess';
16
- import { SecurityCode } from './core/securityCode';
17
- import { useTranslation } from 'react-i18next';
18
- var BindTotpType;
19
-
20
- (function (BindTotpType) {
21
- BindTotpType["SECURITY_CODE"] = "securityCode";
22
- BindTotpType["BIND_SUCCESS"] = "bindSuccess";
23
- })(BindTotpType || (BindTotpType = {}));
24
-
25
- export var GuardBindTotpView = function GuardBindTotpView(_ref) {
26
- var GuardLocalConfig = _ref.config,
27
- initData = _ref.initData,
28
- onLogin = _ref.onLogin,
29
- __changeModule = _ref.__changeModule;
30
-
31
- var _useGuardHttp = useGuardHttp(),
32
- get = _useGuardHttp.get,
33
- post = _useGuardHttp.post;
34
-
35
- var _useTranslation = useTranslation(),
36
- t = _useTranslation.t;
37
-
38
- var _useState = useState(''),
39
- _useState2 = _slicedToArray(_useState, 2),
40
- secret = _useState2[0],
41
- setSecret = _useState2[1];
42
-
43
- var _useState3 = useState(''),
44
- _useState4 = _slicedToArray(_useState3, 2),
45
- qrcode = _useState4[0],
46
- setQrcode = _useState4[1];
47
-
48
- var _useState5 = useState(),
49
- _useState6 = _slicedToArray(_useState5, 2),
50
- user = _useState6[0],
51
- setUser = _useState6[1];
52
-
53
- var _useState7 = useState(BindTotpType.SECURITY_CODE),
54
- _useState8 = _slicedToArray(_useState7, 2),
55
- bindTotpType = _useState8[0],
56
- setBindTotpType = _useState8[1];
57
-
58
- var authClient = useGuardAuthClient();
59
-
60
- var _useAsyncFn = useAsyncFn( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
61
- var query, config, _yield$get, _data, _yield$post, data;
62
-
63
- return _regeneratorRuntime.wrap(function _callee$(_context) {
64
- while (1) {
65
- switch (_context.prev = _context.next) {
66
- case 0:
67
- query = {
68
- type: 'totp',
69
- source: 'APPLICATION'
70
- };
71
- config = {
72
- headers: {
73
- authorization: initData.mfaToken
74
- }
75
- };
76
- _context.prev = 2;
77
- _context.next = 5;
78
- return get("/api/v2/mfa/authenticator", query, config);
79
-
80
- case 5:
81
- _yield$get = _context.sent;
82
- _data = _yield$get.data;
83
-
84
- if (!(_data.code === ErrorCode.LOGIN_INVALID)) {
85
- _context.next = 11;
86
- break;
87
- }
88
-
89
- _message.error(_data.message);
90
-
91
- __changeModule === null || __changeModule === void 0 ? void 0 : __changeModule(GuardModuleType.LOGIN, {});
92
- return _context.abrupt("return");
93
-
94
- case 11:
95
- _context.next = 16;
96
- break;
97
-
98
- case 13:
99
- _context.prev = 13;
100
- _context.t0 = _context["catch"](2);
101
-
102
- _message.error(_context.t0 === null || _context.t0 === void 0 ? void 0 : _context.t0.message);
103
-
104
- case 16:
105
- _context.next = 18;
106
- return post('/api/v2/mfa/totp/associate', query, config);
107
-
108
- case 18:
109
- _yield$post = _context.sent;
110
- data = _yield$post.data;
111
- setSecret(data.recovery_code);
112
- setQrcode(data.qrcode_data_url);
113
-
114
- case 22:
115
- case "end":
116
- return _context.stop();
117
- }
118
- }
119
- }, _callee, null, [[2, 13]]);
120
- })), [initData.mfaToken]),
121
- _useAsyncFn2 = _slicedToArray(_useAsyncFn, 2),
122
- bindInfo = _useAsyncFn2[0],
123
- fetchBindInfo = _useAsyncFn2[1];
124
-
125
- var onBind = function onBind() {
126
- if (user) onLogin === null || onLogin === void 0 ? void 0 : onLogin(user, authClient);
127
- };
128
-
129
- var onNext = function onNext(user) {
130
- setUser(user);
131
- setBindTotpType(BindTotpType.BIND_SUCCESS);
132
- };
133
-
134
- useEffect(function () {
135
- fetchBindInfo();
136
- }, [fetchBindInfo]);
137
- var renderContent = useMemo(function () {
138
- var _ref3;
139
-
140
- return _ref3 = {}, _defineProperty(_ref3, BindTotpType.SECURITY_CODE, function (props) {
141
- return /*#__PURE__*/React.createElement(SecurityCode, props);
142
- }), _defineProperty(_ref3, BindTotpType.BIND_SUCCESS, function (props) {
143
- return /*#__PURE__*/React.createElement(BindSuccess, props);
144
- }), _ref3;
145
- }, []);
146
-
147
- var onBack = function onBack() {
148
- window.history.back();
149
- };
150
-
151
- return /*#__PURE__*/React.createElement(React.Fragment, null, bindInfo.loading ? /*#__PURE__*/React.createElement(Spin, null) : /*#__PURE__*/React.createElement("div", {
152
- className: "g2-view-container"
153
- }, /*#__PURE__*/React.createElement("div", {
154
- className: "g2-view-back"
155
- }, /*#__PURE__*/React.createElement("span", {
156
- onClick: onBack
157
- }, /*#__PURE__*/React.createElement(IconFont, {
158
- type: "authing-back"
159
- }), /*#__PURE__*/React.createElement("span", null, t('common.backToVerify')))), /*#__PURE__*/React.createElement("div", {
160
- className: "g2-mfa-content g2-mfa-bindTotp"
161
- }, bindInfo.loading ? /*#__PURE__*/React.createElement(ShieldSpin, null) : renderContent[bindTotpType]({
162
- mfaToken: initData.mfaToken,
163
- qrcode: qrcode,
164
- secret: secret,
165
- onBind: onBind,
166
- onNext: onNext,
167
- changeModule: __changeModule
168
- }))));
169
- };
@@ -1,19 +0,0 @@
1
- import { IG2Config, IG2Events, IG2FCProps } from '../Type';
2
- import { AuthenticationClient, User } from '..';
3
- import { GuardMFAInitData } from '../MFA/interface';
4
- export interface BindTotpConfig extends IG2Config {
5
- }
6
- export declare const getDefaultMFAConfig: () => BindTotpConfig;
7
- export interface BindTotpEvents extends IG2Events {
8
- onLogin?: (user: User, authClient: AuthenticationClient) => void;
9
- }
10
- export interface GuardBindTotpInitData extends GuardMFAInitData {
11
- }
12
- export interface GuardBindTotpProps extends IG2FCProps, BindTotpEvents {
13
- config: Partial<BindTotpConfig>;
14
- initData: GuardBindTotpInitData;
15
- }
16
- export interface GuardBindTotpViewProps extends GuardBindTotpProps {
17
- config: BindTotpConfig;
18
- initData: GuardBindTotpInitData;
19
- }
@@ -1,21 +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 _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
10
-
11
- 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; }
12
-
13
- 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; }
14
-
15
- import { getDefaultG2Config } from '../Type';
16
-
17
- var defaultConfig = _objectSpread({}, getDefaultG2Config());
18
-
19
- export var getDefaultMFAConfig = function getDefaultMFAConfig() {
20
- return _objectSpread(_objectSpread({}, getDefaultG2Config()), defaultConfig);
21
- };
@@ -1 +0,0 @@
1
- import './index.css';
@@ -1 +0,0 @@
1
- .g2-mfa-bindTotp{display:flex;flex-direction:column;align-items:center;height:100%}.g2-mfa-bindTotp .g2-mfa-bindTotp-copySecret{width:100%;height:48px;display:flex;justify-content:center;align-items:center;background:#f5f6f7;border-radius:4px}.g2-mfa-bindTotp .g2-mfa-bindTotp-copySecret .authing-ant-typography{margin:0}.g2-mfa-bindTotp .g2-mfa-bindTotp-copySecret .authing-ant-typography svg{color:#878a95!important;margin-left:30px}.g2-mfa-bindTotp .g2-mfa-bindTotp-secretSave{margin-top:16px}.g2-mfa-bindTotp .g2-mfa-submit-button{margin-top:80px!important}.g2-mfa-bindTotp .g2-mfa-bindTotp-qrcode{box-shadow:0 0 30px rgba(84,89,104,.15);border-radius:4px}.g2-mfa-bindTotp .g2-mfa-bindTotp-securityCode-form{display:flex;flex-direction:column;align-items:center}.g2-mfa-bindTotp .g2-mfa-bindTotp-securityCode-form .g2-mfa-submit-button{margin-top:64px!important}.g2-mfa-bindTotp .g2-mfa-bindTotp-securityCode-form .g2-mfa-totp-verify-input{text-align:center;margin-top:40px!important}.g2-mfa-bindTotp .g2-mfa-bindTotp-securityCode-form p{color:#878a95}
@@ -1 +0,0 @@
1
- import './index.less';
@@ -1 +0,0 @@
1
- import './index.less';
@@ -1,57 +0,0 @@
1
- .g2-mfa-bindTotp {
2
- display: flex;
3
- flex-direction: column;
4
- align-items: center;
5
- height: 100%;
6
-
7
- .g2-mfa-bindTotp-copySecret {
8
- width: 100%;
9
- height: 48px;
10
- display: flex;
11
- justify-content: center;
12
- align-items: center;
13
- background: #f5f6f7;
14
- border-radius: 4px;
15
-
16
- .authing-ant-typography {
17
- margin: 0;
18
-
19
- svg {
20
- color: #878a95 !important;
21
- margin-left: 30px;
22
- }
23
- }
24
- }
25
- .g2-mfa-bindTotp-secretSave {
26
- margin-top: 16px;
27
- }
28
-
29
- .g2-mfa-submit-button {
30
- margin-top: 80px !important;
31
- }
32
-
33
- .g2-mfa-bindTotp-qrcode {
34
- box-shadow: 0px 0px 30px rgba(84, 89, 104, 0.15);
35
- border-radius: 4px;
36
- }
37
-
38
- .g2-mfa-bindTotp-securityCode-form {
39
- display: flex;
40
- flex-direction: column;
41
- align-items: center;
42
-
43
- .g2-mfa-submit-button {
44
- margin-top: 64px !important;
45
- }
46
-
47
- .g2-mfa-totp-verify-input {
48
- text-align: center;
49
- // margin-bottom: 8px !important;
50
- margin-top: 40px !important;
51
- }
52
-
53
- p {
54
- color: #878a95;
55
- }
56
- }
57
- }