@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
package/lib/MFA/index.js DELETED
@@ -1,196 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
- var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
6
-
7
- Object.defineProperty(exports, "__esModule", {
8
- value: true
9
- });
10
- exports.GuardMFAView = void 0;
11
-
12
- var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
13
-
14
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
15
-
16
- var _react = _interopRequireWildcard(require("react"));
17
-
18
- var _reactI18next = require("react-i18next");
19
-
20
- var _module = require("../Guard/module");
21
-
22
- var _IconFont = require("../IconFont");
23
-
24
- var _email = require("./core/email");
25
-
26
- var _sms = require("./core/sms");
27
-
28
- var _face = require("./core/face");
29
-
30
- var _totp = require("./core/totp");
31
-
32
- var _mfaMethods = require("./mfaMethods");
33
-
34
- var _interface = require("./interface");
35
-
36
- var _authClient = require("../Guard/authClient");
37
-
38
- var _codemap = require("./codemap");
39
-
40
- var _antd = require("antd");
41
-
42
- var _ComponentsMapping;
43
-
44
- var ComponentsMapping = (_ComponentsMapping = {}, (0, _defineProperty2.default)(_ComponentsMapping, _interface.MFAType.EMAIL, function (_ref) {
45
- var config = _ref.config,
46
- initData = _ref.initData,
47
- mfaLogin = _ref.mfaLogin;
48
- return /*#__PURE__*/_react.default.createElement(_email.MFAEmail, {
49
- config: config,
50
- mfaToken: initData.mfaToken,
51
- email: initData.email,
52
- mfaLogin: mfaLogin
53
- });
54
- }), (0, _defineProperty2.default)(_ComponentsMapping, _interface.MFAType.SMS, function (_ref2) {
55
- var config = _ref2.config,
56
- initData = _ref2.initData,
57
- mfaLogin = _ref2.mfaLogin;
58
- return /*#__PURE__*/_react.default.createElement(_sms.MFASms, {
59
- config: config,
60
- mfaToken: initData.mfaToken,
61
- phone: initData.phone,
62
- mfaLogin: mfaLogin
63
- });
64
- }), (0, _defineProperty2.default)(_ComponentsMapping, _interface.MFAType.TOTP, function (_ref3) {
65
- var initData = _ref3.initData,
66
- config = _ref3.config,
67
- changeModule = _ref3.changeModule,
68
- mfaLogin = _ref3.mfaLogin;
69
- return /*#__PURE__*/_react.default.createElement(_totp.MFATotp, {
70
- changeModule: changeModule,
71
- config: config,
72
- initData: initData,
73
- mfaLogin: mfaLogin
74
- });
75
- }), (0, _defineProperty2.default)(_ComponentsMapping, _interface.MFAType.FACE, function (_ref4) {
76
- var config = _ref4.config,
77
- initData = _ref4.initData,
78
- mfaLogin = _ref4.mfaLogin,
79
- setShowMethods = _ref4.setShowMethods;
80
- return /*#__PURE__*/_react.default.createElement(_face.MFAFace, {
81
- config: config,
82
- initData: initData,
83
- mfaLogin: mfaLogin,
84
- setShowMethods: setShowMethods
85
- });
86
- }), _ComponentsMapping);
87
-
88
- var GuardMFAView = function GuardMFAView(_ref5) {
89
- var _initData$current, _initData$application;
90
-
91
- var initData = _ref5.initData,
92
- config = _ref5.config,
93
- __changeModule = _ref5.__changeModule,
94
- onLogin = _ref5.onLogin;
95
-
96
- var _useState = (0, _react.useState)((_initData$current = initData.current) !== null && _initData$current !== void 0 ? _initData$current : (_initData$application = initData.applicationMfa) === null || _initData$application === void 0 ? void 0 : _initData$application.sort(function (a, b) {
97
- return a.sort - b.sort;
98
- })[0].mfaPolicy),
99
- _useState2 = (0, _slicedToArray2.default)(_useState, 2),
100
- currentMethod = _useState2[0],
101
- setCurrentMethod = _useState2[1];
102
-
103
- var _useState3 = (0, _react.useState)(true),
104
- _useState4 = (0, _slicedToArray2.default)(_useState3, 2),
105
- showMethods = _useState4[0],
106
- setShowMethods = _useState4[1];
107
-
108
- var client = (0, _authClient.useGuardAuthClient)();
109
-
110
- var _useTranslation = (0, _reactI18next.useTranslation)(),
111
- t = _useTranslation.t;
112
-
113
- var onBack = function onBack() {
114
- return window.history.back();
115
- };
116
-
117
- var __codePaser = function __codePaser(code) {
118
- var action = _codemap.codeMap[code];
119
-
120
- if (code === 200) {
121
- return function (data) {
122
- onLogin === null || onLogin === void 0 ? void 0 : onLogin(data, client); // 登录成功
123
- };
124
- }
125
-
126
- if (!action) {
127
- return function (data) {
128
- console.error('not catch code', code);
129
-
130
- _antd.message.error(data.message);
131
- };
132
- } // 解析成功
133
-
134
-
135
- if ((action === null || action === void 0 ? void 0 : action.action) === 'changeModule') {
136
- var m = action.module ? action.module : _module.GuardModuleType.ERROR;
137
- return function (initData) {
138
- return __changeModule === null || __changeModule === void 0 ? void 0 : __changeModule(m, initData);
139
- };
140
- }
141
-
142
- if ((action === null || action === void 0 ? void 0 : action.action) === 'insideFix') {
143
- return function () {};
144
- }
145
-
146
- if ((action === null || action === void 0 ? void 0 : action.action) === 'message') {
147
- return function (data) {
148
- _antd.message.error(data.message);
149
- };
150
- } // 最终结果
151
-
152
-
153
- return function () {
154
- console.error('last action at mfaview');
155
- };
156
- };
157
-
158
- var mfaLogin = function mfaLogin(code, data, message) {
159
- var callback = __codePaser === null || __codePaser === void 0 ? void 0 : __codePaser(code);
160
-
161
- if (!data) {
162
- data = {};
163
- }
164
-
165
- data.__message = message;
166
- callback === null || callback === void 0 ? void 0 : callback(data);
167
- };
168
-
169
- return /*#__PURE__*/_react.default.createElement("div", {
170
- className: "g2-view-container"
171
- }, /*#__PURE__*/_react.default.createElement("div", {
172
- className: "g2-view-back"
173
- }, /*#__PURE__*/_react.default.createElement("div", {
174
- onClick: onBack,
175
- className: "g2-view-back-hover"
176
- }, /*#__PURE__*/_react.default.createElement(_IconFont.IconFont, {
177
- className: "g2-view-back-icon",
178
- type: "authing-arrow-left-s-line"
179
- }), /*#__PURE__*/_react.default.createElement("span", null, t('common.backLoginPage')))), /*#__PURE__*/_react.default.createElement("div", {
180
- className: "g2-mfa-content"
181
- }, ComponentsMapping[currentMethod]({
182
- config: config,
183
- initData: initData,
184
- changeModule: __changeModule,
185
- mfaLogin: mfaLogin,
186
- setShowMethods: setShowMethods
187
- })), showMethods && /*#__PURE__*/_react.default.createElement(_mfaMethods.MFAMethods, {
188
- applicationMfa: initData.applicationMfa,
189
- method: currentMethod,
190
- onChangeMethod: function onChangeMethod(type) {
191
- setCurrentMethod(type);
192
- }
193
- }));
194
- };
195
-
196
- exports.GuardMFAView = GuardMFAView;
@@ -1,38 +0,0 @@
1
- import { IG2Config, IG2Events, IG2FCProps } from '../Type';
2
- import { AuthenticationClient, User } from '..';
3
- export interface MFAConfig extends IG2Config {
4
- }
5
- export declare const getDefaultMFAConfig: () => MFAConfig;
6
- export interface MFAEvents extends IG2Events {
7
- onLogin?: (user: User, authClient: AuthenticationClient) => void;
8
- }
9
- export declare enum MFAType {
10
- SMS = "SMS",
11
- EMAIL = "EMAIL",
12
- TOTP = "OTP",
13
- FACE = "FACE"
14
- }
15
- export interface GuardMFAInitData {
16
- mfaToken: string;
17
- applicationMfa: {
18
- mfaPolicy: MFAType;
19
- sort: number;
20
- status: 0 | 1;
21
- }[];
22
- faceMfaEnabled: boolean;
23
- totpMfaEnabled: boolean;
24
- email?: string;
25
- phone?: string;
26
- avatar?: string;
27
- nickme?: string;
28
- username?: string;
29
- current?: MFAType;
30
- }
31
- export interface GuardMFAProps extends IG2FCProps, MFAEvents {
32
- config: Partial<MFAConfig>;
33
- initData: GuardMFAInitData;
34
- }
35
- export interface GuardMFAViewProps extends GuardMFAProps {
36
- config: MFAConfig;
37
- initData: GuardMFAInitData;
38
- }
@@ -1,33 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports.getDefaultMFAConfig = exports.MFAType = void 0;
9
-
10
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
-
12
- var _Type = require("../Type");
13
-
14
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
15
-
16
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
17
-
18
- var defaultConfig = _objectSpread({}, (0, _Type.getDefaultG2Config)());
19
-
20
- var getDefaultMFAConfig = function getDefaultMFAConfig() {
21
- return _objectSpread(_objectSpread({}, (0, _Type.getDefaultG2Config)()), defaultConfig);
22
- };
23
-
24
- exports.getDefaultMFAConfig = getDefaultMFAConfig;
25
- var MFAType;
26
- exports.MFAType = MFAType;
27
-
28
- (function (MFAType) {
29
- MFAType["SMS"] = "SMS";
30
- MFAType["EMAIL"] = "EMAIL";
31
- MFAType["TOTP"] = "OTP";
32
- MFAType["FACE"] = "FACE";
33
- })(MFAType || (exports.MFAType = MFAType = {}));
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- import { GuardMFAInitData, MFAType } from '../interface';
3
- export interface MFAMethodsProps {
4
- applicationMfa: GuardMFAInitData['applicationMfa'];
5
- method: MFAType;
6
- onChangeMethod: (type: MFAType) => void;
7
- }
8
- export declare const MFAMethods: React.FC<MFAMethodsProps>;
@@ -1,95 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
- var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
6
-
7
- Object.defineProperty(exports, "__esModule", {
8
- value: true
9
- });
10
- exports.MFAMethods = void 0;
11
-
12
- var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
13
-
14
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
15
-
16
- var _react = _interopRequireWildcard(require("react"));
17
-
18
- var _reactI18next = require("react-i18next");
19
-
20
- var _antd = require("antd");
21
-
22
- var _IconFont = require("../../IconFont");
23
-
24
- var _interface = require("../interface");
25
-
26
- var _locales = require("../../_utils/locales");
27
-
28
- var _methodTitleMapping;
29
-
30
- var methodTitleMapping = (_methodTitleMapping = {}, (0, _defineProperty2.default)(_methodTitleMapping, _interface.MFAType.EMAIL, {
31
- title: function title() {
32
- return _locales.i18n.t('common.EmailVerification');
33
- },
34
- icon: 'authing-mail'
35
- }), (0, _defineProperty2.default)(_methodTitleMapping, _interface.MFAType.SMS, {
36
- title: function title() {
37
- return _locales.i18n.t('common.SMS');
38
- },
39
- icon: 'authing-phone'
40
- }), (0, _defineProperty2.default)(_methodTitleMapping, _interface.MFAType.TOTP, {
41
- title: function title() {
42
- return _locales.i18n.t('common.OTPVerification');
43
- },
44
- icon: 'authing-totp'
45
- }), (0, _defineProperty2.default)(_methodTitleMapping, _interface.MFAType.FACE, {
46
- title: function title() {
47
- return _locales.i18n.t('common.faceVerification');
48
- },
49
- icon: 'authing-face'
50
- }), _methodTitleMapping);
51
-
52
- var MFAMethods = function MFAMethods(_ref) {
53
- var _ref$applicationMfa = _ref.applicationMfa,
54
- applicationMfa = _ref$applicationMfa === void 0 ? [] : _ref$applicationMfa,
55
- method = _ref.method,
56
- onChangeMethod = _ref.onChangeMethod;
57
-
58
- var _useState = (0, _react.useState)(method),
59
- _useState2 = (0, _slicedToArray2.default)(_useState, 2),
60
- currentMethod = _useState2[0],
61
- setCurrentMethod = _useState2[1];
62
-
63
- var _useTranslation = (0, _reactI18next.useTranslation)(),
64
- t = _useTranslation.t;
65
-
66
- var otherMethods = (0, _react.useMemo)(function () {
67
- return applicationMfa.filter(function (item) {
68
- return item.mfaPolicy !== currentMethod;
69
- }).sort(function (a, b) {
70
- return a.sort - b.sort;
71
- }).map(function (item) {
72
- return /*#__PURE__*/_react.default.createElement(_antd.Button, {
73
- className: "g2-guard-mfa-methods-btn",
74
- onClick: function onClick(e) {
75
- onChangeMethod(item.mfaPolicy);
76
- setCurrentMethod(item.mfaPolicy);
77
- },
78
- key: item.mfaPolicy
79
- }, /*#__PURE__*/_react.default.createElement(_IconFont.IconFont, {
80
- type: methodTitleMapping[item.mfaPolicy].icon
81
- }), "".concat(methodTitleMapping[item.mfaPolicy].title()));
82
- });
83
- }, [applicationMfa, currentMethod, onChangeMethod]);
84
- return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, otherMethods.length !== 0 && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
85
- style: {
86
- minHeight: 32
87
- }
88
- }), /*#__PURE__*/_react.default.createElement("div", {
89
- className: "g2-mfa-method"
90
- }, /*#__PURE__*/_react.default.createElement("div", {
91
- className: "g2-mfa-method-title"
92
- }, t('login.otherVerifyWay')), otherMethods)));
93
- };
94
-
95
- exports.MFAMethods = MFAMethods;
@@ -1,7 +0,0 @@
1
- "use strict";
2
-
3
- require("./index.css");
4
-
5
- require("./mfaMethods.css");
6
-
7
- require("./verifyCodeInput.css");
@@ -1 +0,0 @@
1
- .authing-g2-mfa-title{color:#282d3c;font-size:18px;font-weight:600;text-align:center;margin-bottom:8px;margin-top:40px}.authing-g2-mfa-tips{font-size:14px;color:#545968;text-align:center;margin-bottom:24px;min-height:23px}.g2-mfa-content{margin:0 38px}.g2-mfa-content .g2-mfa-submit-button{margin-top:32px!important}.g2-mfa-content .bind-totp{margin-top:40px!important}.g2-mfa-content .authing-ant-form-item-control-input-content{display:flex;justify-content:center}.g2-mfa-content .g2-mfa-totp-verify-input{text-align:center}.g2-mfa-content .g2-mfa-totp-verify-input .authing-code-input-item:not(:first-child){margin-left:14px}.g2-mfa-content .authing-ant-form-horizontal{display:flex;justify-content:center;flex-direction:column}.g2-mfa-content .g2-mfa-face-image{margin:0 auto;display:block;margin-bottom:24px}.g2-mfa-content .g2-mfa-face-identifying{display:flex;justify-content:center;align-items:center}.g2-mfa-content .g2-mfa-face-identifying .video-round{width:210px;height:210px;border-radius:50%;vertical-align:middle}.g2-mfa-content .g2-mfa-face-identifying .mesh{z-index:100;-webkit-user-select:none;-ms-user-select:none;user-select:none;color:#fff;position:absolute;display:flex;justify-content:center;align-items:center;cursor:pointer;background:rgba(0,0,0,.4)}.g2-mfa-content .g2-mfa-face-identifying .ring{width:240px;height:240px;position:absolute;transform:rotate(270deg)}.svg-circle-bg{stroke-width:4}.svg-circle-running{stroke-width:4;transition:all .2s linear;stroke:#396aff;stroke-linecap:round}.g2-mfa-verifyCode-formItem .authing-ant-form-item-explain-error{display:flex;justify-content:center}
@@ -1,3 +0,0 @@
1
- import './index.less';
2
- import './mfaMethods.less';
3
- import './verifyCodeInput.less';
@@ -1,7 +0,0 @@
1
- "use strict";
2
-
3
- require("./index.less");
4
-
5
- require("./mfaMethods.less");
6
-
7
- require("./verifyCodeInput.less");
@@ -1,101 +0,0 @@
1
- .authing-g2-mfa-title {
2
- color: #282d3c;
3
- font-size: 18px;
4
- font-weight: 600;
5
- text-align: center;
6
- margin-bottom: 8px;
7
- margin-top: 40px;
8
- }
9
-
10
- .authing-g2-mfa-tips {
11
- font-size: 14px;
12
- color: #545968;
13
- text-align: center;
14
- margin-bottom: 24px;
15
- min-height: 23px;
16
- }
17
-
18
- .g2-mfa-content {
19
- margin: 0 38px;
20
-
21
- .g2-mfa-submit-button {
22
- margin-top: 32px !important;
23
- }
24
-
25
- .bind-totp {
26
- margin-top: 40px !important;
27
- }
28
-
29
- .authing-ant-form-item-control-input-content {
30
- display: flex;
31
- justify-content: center;
32
- }
33
-
34
- .g2-mfa-totp-verify-input {
35
- text-align: center;
36
- .authing-code-input-item {
37
- &:not(:first-child) {
38
- margin-left: 14px;
39
- }
40
- }
41
- }
42
-
43
- .authing-ant-form-horizontal {
44
- display: flex;
45
- justify-content: center;
46
- flex-direction: column;
47
- }
48
-
49
- .g2-mfa-face-image {
50
- margin: 0px auto;
51
- display: block;
52
- margin-bottom: 24px;
53
- }
54
- .g2-mfa-face-identifying {
55
- display: flex;
56
- justify-content: center;
57
- align-items: center;
58
-
59
- .video-round {
60
- width: 210px;
61
- height: 210px;
62
- border-radius: 50%;
63
- vertical-align: middle;
64
- }
65
- .mesh {
66
- z-index: 100;
67
- cursor: pointer;
68
- user-select: none;
69
- color: white;
70
- position: absolute;
71
- display: flex;
72
- justify-content: center;
73
- align-items: center;
74
- cursor: pointer;
75
- background: rgba(0, 0, 0, 0.4);
76
- }
77
- .ring {
78
- width: 240px;
79
- height: 240px;
80
- position: absolute;
81
- transform: rotate(270deg);
82
- }
83
- }
84
- }
85
- .svg-circle-bg {
86
- stroke-width: 4;
87
- // stroke: rgba(255, 161, 39, 1);
88
- }
89
- .svg-circle-running {
90
- stroke-width: 4;
91
- transition: all 0.2s linear;
92
- stroke: #396aff;
93
- stroke-linecap: round;
94
- }
95
-
96
- .g2-mfa-verifyCode-formItem {
97
- .authing-ant-form-item-explain-error {
98
- display: flex;
99
- justify-content: center;
100
- }
101
- }
@@ -1 +0,0 @@
1
- .g2-mfa-method{padding:0 38px}.g2-mfa-method-title{text-align:center;font-size:14px;color:#c8c9cc;margin-bottom:8px;width:100%}.g2-mfa-method-title:after,.g2-mfa-method-title:before{content:"——";color:#eee;margin:0 11px}.g2-guard-mfa-methods-btn{border:none!important;background-color:#f5f6f7!important;border-radius:4px!important;color:#282d3c!important;font-size:14px!important;height:49px!important;margin-top:8px!important;width:100%;justify-content:center;align-items:center;font-size:14px}.g2-guard-mfa-methods-btn:hover{background:rgba(84,89,104,.2)!important}.g2-guard-mfa-methods-btn .g2-icon{font-size:16px;margin-right:8px}
@@ -1,42 +0,0 @@
1
- .g2-mfa-method {
2
- padding: 0 38px;
3
- }
4
-
5
- .g2-mfa-method-title {
6
- text-align: center;
7
- font-size: 14px;
8
- color: #c8c9cc;
9
- margin-bottom: 8px;
10
- width: 100%;
11
- }
12
-
13
- .g2-mfa-method-title::before,
14
- .g2-mfa-method-title::after {
15
- content: '——';
16
- color: #eeeeee;
17
- margin: 0 11px;
18
- }
19
-
20
- .g2-guard-mfa-methods-btn {
21
- border: none !important;
22
- background-color: #f5f6f7 !important;
23
- border-radius: 4px !important;
24
- color: #282d3c !important;
25
- font-size: 14px !important;
26
- height: 49px !important;
27
- margin-top: 8px !important;
28
- width: 100%;
29
-
30
- justify-content: center;
31
- align-items: center;
32
-
33
- font-size: 14px;
34
- &:hover {
35
- background: rgba(84, 89, 104, 0.2) !important;
36
- }
37
-
38
- .g2-icon {
39
- font-size: 16px;
40
- margin-right: 8px;
41
- }
42
- }
@@ -1 +0,0 @@
1
- .authing-g2-code-input-item{text-align:center;width:40px;min-width:40px;min-height:40px;height:40px;line-height:40px;background-color:#f5f6f7;border:unset;border-radius:4px}.authing-g2-code-input-item:not(:first-child){margin-left:18px}.authing-g2-code-input-item input{text-align:center}.authing-g2-code-input-divider{width:14px;min-width:14px;max-width:14px;margin-left:10px}.authing-g2-code-input{display:flex;align-items:center}.authing-ant-form-item-has-error .authing-g2-code-input-item{background-color:#f5f6f7;border:1px solid #ff4d4f}
@@ -1,38 +0,0 @@
1
- .authing-g2-code-input-item {
2
- text-align: center;
3
- width: 40px;
4
- min-width: 40px;
5
- min-height: 40px;
6
- height: 40px;
7
- line-height: 40px;
8
- background-color: #f5f6f7;
9
- border: unset;
10
- border-radius: 4px;
11
-
12
- &:not(:first-child) {
13
- margin-left: 18px;
14
- }
15
- input {
16
- text-align: center;
17
- }
18
- }
19
- .authing-g2-code-input-divider {
20
- width: 14px;
21
- min-width: 14px;
22
- max-width: 14px;
23
- margin-left: 10px;
24
- }
25
- .authing-g2-code-input {
26
- display: flex;
27
- align-items: center;
28
- }
29
-
30
- .authing-ant-form-item-has-error {
31
- .authing-g2-code-input-item {
32
- background-color: #f5f6f7;
33
- border: 1px solid #ff4d4f;
34
- }
35
- }
36
- // .g2-mfa-bindTotp .g2-mfa-bindTotp-securityCode-form .g2-mfa-totp-verify-input {
37
- // margin-bottom: 24px;
38
- // }
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- interface describeQuestionsProps {
3
- appId: string;
4
- host: string;
5
- onSuccess: any;
6
- }
7
- export declare const DescribeQuestions: (props: describeQuestionsProps) => JSX.Element;
8
- export {};