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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (898) hide show
  1. package/lib/index.d.ts +2867 -8
  2. package/lib/index.min.css +2 -1
  3. package/lib/index.min.js +2 -0
  4. package/{dist → lib}/index.min.js.LICENSE.txt +2 -0
  5. package/{dist → lib}/static/media/loading.4a67a5f3.svg +0 -0
  6. package/package.json +83 -41
  7. package/dist/index.min.css +0 -2
  8. package/dist/index.min.js +0 -2
  9. package/es/AuthingDropdown/index.d.ts +0 -12
  10. package/es/AuthingDropdown/index.js +0 -46
  11. package/es/AuthingDropdown/style/css.js +0 -1
  12. package/es/AuthingDropdown/style/index.css +0 -1
  13. package/es/AuthingDropdown/style/index.d.ts +0 -1
  14. package/es/AuthingDropdown/style/index.js +0 -1
  15. package/es/AuthingDropdown/style/index.less +0 -43
  16. package/es/AuthingGuard/AppMFALayout/index.d.ts +0 -4
  17. package/es/AuthingGuard/AppMFALayout/index.js +0 -75
  18. package/es/AuthingGuard/CompleteUserInfoLayout/index.d.ts +0 -2
  19. package/es/AuthingGuard/CompleteUserInfoLayout/index.js +0 -19
  20. package/es/AuthingGuard/Forms/ADLoginForm/index.d.ts +0 -4
  21. package/es/AuthingGuard/Forms/ADLoginForm/index.js +0 -187
  22. package/es/AuthingGuard/Forms/Agreements/index.d.ts +0 -10
  23. package/es/AuthingGuard/Forms/Agreements/index.js +0 -91
  24. package/es/AuthingGuard/Forms/CompleteUserInfoForm/index.d.ts +0 -3
  25. package/es/AuthingGuard/Forms/CompleteUserInfoForm/index.js +0 -237
  26. package/es/AuthingGuard/Forms/EmailMfaVerifyForm/CheckEmailForm.d.ts +0 -3
  27. package/es/AuthingGuard/Forms/EmailMfaVerifyForm/CheckEmailForm.js +0 -123
  28. package/es/AuthingGuard/Forms/EmailMfaVerifyForm/VerifyCodeForm.d.ts +0 -3
  29. package/es/AuthingGuard/Forms/EmailMfaVerifyForm/VerifyCodeForm.js +0 -184
  30. package/es/AuthingGuard/Forms/EmailMfaVerifyForm/index.d.ts +0 -3
  31. package/es/AuthingGuard/Forms/EmailMfaVerifyForm/index.js +0 -36
  32. package/es/AuthingGuard/Forms/EmailRegisterForm/index.d.ts +0 -4
  33. package/es/AuthingGuard/Forms/EmailRegisterForm/index.js +0 -244
  34. package/es/AuthingGuard/Forms/LdapLoginForm/index.d.ts +0 -4
  35. package/es/AuthingGuard/Forms/LdapLoginForm/index.js +0 -242
  36. package/es/AuthingGuard/Forms/LoginFormFooter/index.d.ts +0 -7
  37. package/es/AuthingGuard/Forms/LoginFormFooter/index.js +0 -53
  38. package/es/AuthingGuard/Forms/MfaResetCodeForm/Step1.d.ts +0 -10
  39. package/es/AuthingGuard/Forms/MfaResetCodeForm/Step1.js +0 -112
  40. package/es/AuthingGuard/Forms/MfaResetCodeForm/Step2.d.ts +0 -6
  41. package/es/AuthingGuard/Forms/MfaResetCodeForm/Step2.js +0 -44
  42. package/es/AuthingGuard/Forms/MfaResetCodeForm/index.d.ts +0 -3
  43. package/es/AuthingGuard/Forms/MfaResetCodeForm/index.js +0 -58
  44. package/es/AuthingGuard/Forms/MfaVerifyForm/index.d.ts +0 -3
  45. package/es/AuthingGuard/Forms/MfaVerifyForm/index.js +0 -137
  46. package/es/AuthingGuard/Forms/PasswordLoginForm/index.d.ts +0 -4
  47. package/es/AuthingGuard/Forms/PasswordLoginForm/index.js +0 -359
  48. package/es/AuthingGuard/Forms/PhoneCodeLoginForm/index.d.ts +0 -4
  49. package/es/AuthingGuard/Forms/PhoneCodeLoginForm/index.js +0 -203
  50. package/es/AuthingGuard/Forms/PhoneRegisterForm/index.d.ts +0 -4
  51. package/es/AuthingGuard/Forms/PhoneRegisterForm/index.js +0 -271
  52. package/es/AuthingGuard/Forms/QrCodeLoginForm/index.d.ts +0 -3
  53. package/es/AuthingGuard/Forms/QrCodeLoginForm/index.js +0 -68
  54. package/es/AuthingGuard/Forms/RegisterFormFooter/index.d.ts +0 -5
  55. package/es/AuthingGuard/Forms/RegisterFormFooter/index.js +0 -38
  56. package/es/AuthingGuard/Forms/ResetPwdForm/Footer.d.ts +0 -2
  57. package/es/AuthingGuard/Forms/ResetPwdForm/Footer.js +0 -22
  58. package/es/AuthingGuard/Forms/ResetPwdForm/Step1.d.ts +0 -3
  59. package/es/AuthingGuard/Forms/ResetPwdForm/Step1.js +0 -132
  60. package/es/AuthingGuard/Forms/ResetPwdForm/Step2.d.ts +0 -3
  61. package/es/AuthingGuard/Forms/ResetPwdForm/Step2.js +0 -198
  62. package/es/AuthingGuard/Forms/ResetPwdForm/Step3.d.ts +0 -3
  63. package/es/AuthingGuard/Forms/ResetPwdForm/Step3.js +0 -235
  64. package/es/AuthingGuard/Forms/ResetPwdForm/Step4.d.ts +0 -2
  65. package/es/AuthingGuard/Forms/ResetPwdForm/Step4.js +0 -56
  66. package/es/AuthingGuard/Forms/ResetPwdForm/index.d.ts +0 -3
  67. package/es/AuthingGuard/Forms/ResetPwdForm/index.js +0 -122
  68. package/es/AuthingGuard/Forms/SendPhoneCode/SendCodeBtn.d.ts +0 -6
  69. package/es/AuthingGuard/Forms/SendPhoneCode/SendCodeBtn.js +0 -130
  70. package/es/AuthingGuard/Forms/SendPhoneCode/index.d.ts +0 -8
  71. package/es/AuthingGuard/Forms/SendPhoneCode/index.js +0 -69
  72. package/es/AuthingGuard/Forms/SmsMfaVerifyForm/CheckPhoneForm.d.ts +0 -3
  73. package/es/AuthingGuard/Forms/SmsMfaVerifyForm/CheckPhoneForm.js +0 -125
  74. package/es/AuthingGuard/Forms/SmsMfaVerifyForm/VerifyCodeForm.d.ts +0 -3
  75. package/es/AuthingGuard/Forms/SmsMfaVerifyForm/VerifyCodeForm.js +0 -183
  76. package/es/AuthingGuard/Forms/SmsMfaVerifyForm/index.d.ts +0 -3
  77. package/es/AuthingGuard/Forms/SmsMfaVerifyForm/index.js +0 -36
  78. package/es/AuthingGuard/Forms/SocialAndIdpLogin/index.d.ts +0 -3
  79. package/es/AuthingGuard/Forms/SocialAndIdpLogin/index.js +0 -378
  80. package/es/AuthingGuard/Forms/UploadImage/index.d.ts +0 -5
  81. package/es/AuthingGuard/Forms/UploadImage/index.js +0 -77
  82. package/es/AuthingGuard/Forms/index.d.ts +0 -13
  83. package/es/AuthingGuard/Forms/index.js +0 -13
  84. package/es/AuthingGuard/GuardLayout/index.d.ts +0 -10
  85. package/es/AuthingGuard/GuardLayout/index.js +0 -405
  86. package/es/AuthingGuard/Header/index.d.ts +0 -4
  87. package/es/AuthingGuard/Header/index.js +0 -25
  88. package/es/AuthingGuard/IconFont/iconfont.d.ts +0 -1
  89. package/es/AuthingGuard/IconFont/iconfont.js +0 -66
  90. package/es/AuthingGuard/IconFont/index.d.ts +0 -7
  91. package/es/AuthingGuard/IconFont/index.js +0 -28
  92. package/es/AuthingGuard/IconFont/svg.d.ts +0 -1
  93. package/es/AuthingGuard/IconFont/svg.js +0 -1
  94. package/es/AuthingGuard/LoginLayout/index.d.ts +0 -2
  95. package/es/AuthingGuard/LoginLayout/index.js +0 -211
  96. package/es/AuthingGuard/MfaLayout/Steps.d.ts +0 -4
  97. package/es/AuthingGuard/MfaLayout/Steps.js +0 -6
  98. package/es/AuthingGuard/MfaLayout/index.d.ts +0 -4
  99. package/es/AuthingGuard/MfaLayout/index.js +0 -55
  100. package/es/AuthingGuard/RegisterLayout/index.d.ts +0 -2
  101. package/es/AuthingGuard/RegisterLayout/index.js +0 -103
  102. package/es/AuthingGuard/ResetPwdLayout/index.d.ts +0 -2
  103. package/es/AuthingGuard/ResetPwdLayout/index.js +0 -26
  104. package/es/AuthingGuard/ToggleLang/index.d.ts +0 -2
  105. package/es/AuthingGuard/ToggleLang/index.js +0 -53
  106. package/es/AuthingGuard/api/appConfig.d.ts +0 -116
  107. package/es/AuthingGuard/api/appConfig.js +0 -20
  108. package/es/AuthingGuard/api/index.d.ts +0 -3
  109. package/es/AuthingGuard/api/index.js +0 -3
  110. package/es/AuthingGuard/api/sso.d.ts +0 -19
  111. package/es/AuthingGuard/api/sso.js +0 -6
  112. package/es/AuthingGuard/api/userPoolConfig.d.ts +0 -81
  113. package/es/AuthingGuard/api/userPoolConfig.js +0 -9
  114. package/es/AuthingGuard/constants.d.ts +0 -32
  115. package/es/AuthingGuard/constants.js +0 -70
  116. package/es/AuthingGuard/hooks/index.d.ts +0 -20
  117. package/es/AuthingGuard/hooks/index.js +0 -52
  118. package/es/AuthingGuard/hooks/useScreenSize.d.ts +0 -10
  119. package/es/AuthingGuard/hooks/useScreenSize.js +0 -74
  120. package/es/AuthingGuard/index.d.ts +0 -12
  121. package/es/AuthingGuard/index.js +0 -135
  122. package/es/AuthingGuard/style/appMFALayout.css +0 -1
  123. package/es/AuthingGuard/style/appMFALayout.less +0 -12
  124. package/es/AuthingGuard/style/completeUserInfoLayout.css +0 -1
  125. package/es/AuthingGuard/style/completeUserInfoLayout.less +0 -8
  126. package/es/AuthingGuard/style/css.js +0 -17
  127. package/es/AuthingGuard/style/emailMfaVerifyForm.css +0 -0
  128. package/es/AuthingGuard/style/emailMfaVerifyForm.less +0 -0
  129. package/es/AuthingGuard/style/formAgreements.css +0 -1
  130. package/es/AuthingGuard/style/formAgreements.less +0 -44
  131. package/es/AuthingGuard/style/formResetPwdForm.css +0 -1
  132. package/es/AuthingGuard/style/formResetPwdForm.less +0 -3
  133. package/es/AuthingGuard/style/guardLayout.css +0 -1
  134. package/es/AuthingGuard/style/guardLayout.less +0 -111
  135. package/es/AuthingGuard/style/header.css +0 -1
  136. package/es/AuthingGuard/style/header.less +0 -64
  137. package/es/AuthingGuard/style/iconFont.css +0 -1
  138. package/es/AuthingGuard/style/iconFont.less +0 -6
  139. package/es/AuthingGuard/style/index.css +0 -1
  140. package/es/AuthingGuard/style/index.d.ts +0 -17
  141. package/es/AuthingGuard/style/index.js +0 -17
  142. package/es/AuthingGuard/style/index.less +0 -106
  143. package/es/AuthingGuard/style/loginFormFooter.css +0 -1
  144. package/es/AuthingGuard/style/loginFormFooter.less +0 -6
  145. package/es/AuthingGuard/style/mfaLayout.css +0 -1
  146. package/es/AuthingGuard/style/mfaLayout.less +0 -3
  147. package/es/AuthingGuard/style/mfaResetCodeForm.css +0 -0
  148. package/es/AuthingGuard/style/mfaResetCodeForm.less +0 -0
  149. package/es/AuthingGuard/style/mfaVerifyForm.css +0 -1
  150. package/es/AuthingGuard/style/mfaVerifyForm.less +0 -12
  151. package/es/AuthingGuard/style/qrCodeLoginForm.css +0 -1
  152. package/es/AuthingGuard/style/qrCodeLoginForm.less +0 -14
  153. package/es/AuthingGuard/style/sendPhoneCode.css +0 -1
  154. package/es/AuthingGuard/style/sendPhoneCode.less +0 -26
  155. package/es/AuthingGuard/style/smsMfaVerifyForm.css +0 -1
  156. package/es/AuthingGuard/style/smsMfaVerifyForm.less +0 -3
  157. package/es/AuthingGuard/style/socialAndIdpLogin.css +0 -0
  158. package/es/AuthingGuard/style/socialAndIdpLogin.less +0 -0
  159. package/es/AuthingGuard/types/Forms.d.ts +0 -79
  160. package/es/AuthingGuard/types/Forms.js +0 -1
  161. package/es/AuthingGuard/types/GuardConfig.d.ts +0 -241
  162. package/es/AuthingGuard/types/GuardConfig.js +0 -179
  163. package/es/AuthingGuard/types/GuardState.d.ts +0 -6
  164. package/es/AuthingGuard/types/GuardState.js +0 -1
  165. package/es/AuthingGuard/types/Locales.d.ts +0 -5
  166. package/es/AuthingGuard/types/Locales.js +0 -7
  167. package/es/AuthingGuard/types/index.d.ts +0 -4
  168. package/es/AuthingGuard/types/index.js +0 -4
  169. package/es/AuthingTabs/index.d.ts +0 -12
  170. package/es/AuthingTabs/index.js +0 -81
  171. package/es/AuthingTabs/style/css.js +0 -1
  172. package/es/AuthingTabs/style/index.css +0 -1
  173. package/es/AuthingTabs/style/index.d.ts +0 -1
  174. package/es/AuthingTabs/style/index.js +0 -1
  175. package/es/AuthingTabs/style/index.less +0 -135
  176. package/es/BindTotp/core/bindSuccess.d.ts +0 -6
  177. package/es/BindTotp/core/bindSuccess.js +0 -111
  178. package/es/BindTotp/core/securityCode.d.ts +0 -8
  179. package/es/BindTotp/core/securityCode.js +0 -139
  180. package/es/BindTotp/index.d.ts +0 -3
  181. package/es/BindTotp/index.js +0 -169
  182. package/es/BindTotp/interface.d.ts +0 -19
  183. package/es/BindTotp/interface.js +0 -21
  184. package/es/BindTotp/style/css.js +0 -1
  185. package/es/BindTotp/style/index.css +0 -1
  186. package/es/BindTotp/style/index.d.ts +0 -1
  187. package/es/BindTotp/style/index.js +0 -1
  188. package/es/BindTotp/style/index.less +0 -57
  189. package/es/ChangeLanguage/index.d.ts +0 -2
  190. package/es/ChangeLanguage/index.js +0 -44
  191. package/es/ChangePassword/core/firstLoginReset.d.ts +0 -8
  192. package/es/ChangePassword/core/firstLoginReset.js +0 -140
  193. package/es/ChangePassword/core/rotateReset.d.ts +0 -8
  194. package/es/ChangePassword/core/rotateReset.js +0 -159
  195. package/es/ChangePassword/index.d.ts +0 -2
  196. package/es/ChangePassword/index.js +0 -78
  197. package/es/CompleteInfo/core/completeInfo.d.ts +0 -16
  198. package/es/CompleteInfo/core/completeInfo.js +0 -582
  199. package/es/CompleteInfo/index.d.ts +0 -3
  200. package/es/CompleteInfo/index.js +0 -52
  201. package/es/CompleteInfo/interface.d.ts +0 -32
  202. package/es/CompleteInfo/interface.js +0 -21
  203. package/es/CompleteInfo/style/css.js +0 -1
  204. package/es/CompleteInfo/style/index.css +0 -1
  205. package/es/CompleteInfo/style/index.d.ts +0 -1
  206. package/es/CompleteInfo/style/index.js +0 -1
  207. package/es/CompleteInfo/style/index.less +0 -7
  208. package/es/CompleteInfo/utils.d.ts +0 -3
  209. package/es/CompleteInfo/utils.js +0 -42
  210. package/es/CopyAbleText/index.d.ts +0 -4
  211. package/es/CopyAbleText/index.js +0 -51
  212. package/es/CopyAbleText/style/css.js +0 -1
  213. package/es/CopyAbleText/style/index.css +0 -1
  214. package/es/CopyAbleText/style/index.d.ts +0 -1
  215. package/es/CopyAbleText/style/index.js +0 -1
  216. package/es/CopyAbleText/style/index.less +0 -13
  217. package/es/DownloadAuthenticator/index.d.ts +0 -3
  218. package/es/DownloadAuthenticator/index.js +0 -92
  219. package/es/DownloadAuthenticator/interface.d.ts +0 -12
  220. package/es/DownloadAuthenticator/interface.js +0 -21
  221. package/es/DownloadAuthenticator/style/css.js +0 -1
  222. package/es/DownloadAuthenticator/style/index.css +0 -1
  223. package/es/DownloadAuthenticator/style/index.d.ts +0 -1
  224. package/es/DownloadAuthenticator/style/index.js +0 -1
  225. package/es/DownloadAuthenticator/style/index.less +0 -58
  226. package/es/Error/index.d.ts +0 -3
  227. package/es/Error/index.js +0 -25
  228. package/es/Error/interface.d.ts +0 -8
  229. package/es/Error/interface.js +0 -1
  230. package/es/Error/style/css.js +0 -1
  231. package/es/Error/style/index.css +0 -1
  232. package/es/Error/style/index.d.ts +0 -1
  233. package/es/Error/style/index.js +0 -1
  234. package/es/Error/style/index.less +0 -12
  235. package/es/ForgetPassword/core/resetPassword.d.ts +0 -9
  236. package/es/ForgetPassword/core/resetPassword.js +0 -224
  237. package/es/ForgetPassword/index.d.ts +0 -3
  238. package/es/ForgetPassword/index.js +0 -107
  239. package/es/ForgetPassword/interface.d.ts +0 -18
  240. package/es/ForgetPassword/interface.js +0 -1
  241. package/es/Guard/Guard.d.ts +0 -10
  242. package/es/Guard/Guard.js +0 -349
  243. package/es/Guard/authClient.d.ts +0 -5
  244. package/es/Guard/authClient.js +0 -38
  245. package/es/Guard/config.d.ts +0 -8
  246. package/es/Guard/config.js +0 -24
  247. package/es/Guard/event.d.ts +0 -8
  248. package/es/Guard/event.js +0 -74
  249. package/es/Guard/index.d.ts +0 -4
  250. package/es/Guard/index.js +0 -4
  251. package/es/Guard/module.d.ts +0 -20
  252. package/es/Guard/module.js +0 -16
  253. package/es/Guard/sso.d.ts +0 -19
  254. package/es/Guard/sso.js +0 -32
  255. package/es/Guard/stateMachine.d.ts +0 -36
  256. package/es/Guard/stateMachine.js +0 -158
  257. package/es/Guard/style/css.js +0 -19
  258. package/es/Guard/style/index.css +0 -1
  259. package/es/Guard/style/index.d.ts +0 -19
  260. package/es/Guard/style/index.js +0 -19
  261. package/es/Guard/style/index.less +0 -615
  262. package/es/IconFont/iconfont.d.ts +0 -1
  263. package/es/IconFont/iconfont.js +0 -66
  264. package/es/IconFont/index.d.ts +0 -7
  265. package/es/IconFont/index.js +0 -28
  266. package/es/IconFont/style/css.js +0 -1
  267. package/es/IconFont/style/index.css +0 -1
  268. package/es/IconFont/style/index.d.ts +0 -1
  269. package/es/IconFont/style/index.js +0 -1
  270. package/es/IconFont/style/index.less +0 -6
  271. package/es/IconFont/svg.d.ts +0 -1
  272. package/es/IconFont/svg.js +0 -1
  273. package/es/ImagePro/index.d.ts +0 -13
  274. package/es/ImagePro/index.js +0 -65
  275. package/es/ImagePro/style/css.js +0 -1
  276. package/es/ImagePro/style/index.css +0 -1
  277. package/es/ImagePro/style/index.d.ts +0 -1
  278. package/es/ImagePro/style/index.js +0 -1
  279. package/es/ImagePro/style/index.less +0 -40
  280. package/es/InputNumber/index.d.ts +0 -5
  281. package/es/InputNumber/index.js +0 -37
  282. package/es/InputPassword/index.d.ts +0 -4
  283. package/es/InputPassword/index.js +0 -24
  284. package/es/Login/codemap.d.ts +0 -2
  285. package/es/Login/codemap.js +0 -46
  286. package/es/Login/core/withAD.d.ts +0 -6
  287. package/es/Login/core/withAD.js +0 -6
  288. package/es/Login/core/withAppQrcode.d.ts +0 -8
  289. package/es/Login/core/withAppQrcode.js +0 -65
  290. package/es/Login/core/withLDAP.d.ts +0 -10
  291. package/es/Login/core/withLDAP.js +0 -210
  292. package/es/Login/core/withPassword/FormItemAccount.d.ts +0 -7
  293. package/es/Login/core/withPassword/FormItemAccount.js +0 -34
  294. package/es/Login/core/withPassword/GraphicVerifyCode.d.ts +0 -7
  295. package/es/Login/core/withPassword/GraphicVerifyCode.js +0 -29
  296. package/es/Login/core/withPassword/InputAccount.d.ts +0 -7
  297. package/es/Login/core/withPassword/InputAccount.js +0 -56
  298. package/es/Login/core/withPassword/index.d.ts +0 -12
  299. package/es/Login/core/withPassword/index.js +0 -221
  300. package/es/Login/core/withPhonecode.d.ts +0 -2
  301. package/es/Login/core/withPhonecode.js +0 -164
  302. package/es/Login/core/withWechatMiniQrcode.d.ts +0 -8
  303. package/es/Login/core/withWechatMiniQrcode.js +0 -76
  304. package/es/Login/core/withWechatmpQrcode.d.ts +0 -8
  305. package/es/Login/core/withWechatmpQrcode.js +0 -66
  306. package/es/Login/index.d.ts +0 -3
  307. package/es/Login/index.js +0 -434
  308. package/es/Login/interface.d.ts +0 -31
  309. package/es/Login/interface.js +0 -30
  310. package/es/Login/socialLogin/index.d.ts +0 -8
  311. package/es/Login/socialLogin/index.js +0 -450
  312. package/es/Login/style/css.js +0 -2
  313. package/es/Login/style/index.css +0 -1
  314. package/es/Login/style/index.d.ts +0 -2
  315. package/es/Login/style/index.js +0 -2
  316. package/es/Login/style/index.less +0 -99
  317. package/es/Login/style/socialLogin.css +0 -1
  318. package/es/Login/style/socialLogin.less +0 -77
  319. package/es/MFA/VerifyCodeInput/VerifyCodeFormItem.d.ts +0 -7
  320. package/es/MFA/VerifyCodeInput/VerifyCodeFormItem.js +0 -37
  321. package/es/MFA/VerifyCodeInput/index.d.ts +0 -13
  322. package/es/MFA/VerifyCodeInput/index.js +0 -175
  323. package/es/MFA/codemap.d.ts +0 -2
  324. package/es/MFA/codemap.js +0 -26
  325. package/es/MFA/core/email.d.ts +0 -23
  326. package/es/MFA/core/email.js +0 -302
  327. package/es/MFA/core/face.d.ts +0 -2
  328. package/es/MFA/core/face.js +0 -358
  329. package/es/MFA/core/face_deps.d.ts +0 -12
  330. package/es/MFA/core/face_deps.js +0 -39
  331. package/es/MFA/core/sms.d.ts +0 -22
  332. package/es/MFA/core/sms.js +0 -296
  333. package/es/MFA/core/totp.d.ts +0 -19
  334. package/es/MFA/core/totp.js +0 -146
  335. package/es/MFA/index.d.ts +0 -3
  336. package/es/MFA/index.js +0 -170
  337. package/es/MFA/interface.d.ts +0 -38
  338. package/es/MFA/interface.js +0 -29
  339. package/es/MFA/mfaMethods/index.d.ts +0 -8
  340. package/es/MFA/mfaMethods/index.js +0 -80
  341. package/es/MFA/style/css.js +0 -3
  342. package/es/MFA/style/index.css +0 -1
  343. package/es/MFA/style/index.d.ts +0 -3
  344. package/es/MFA/style/index.js +0 -3
  345. package/es/MFA/style/index.less +0 -101
  346. package/es/MFA/style/mfaMethods.css +0 -1
  347. package/es/MFA/style/mfaMethods.less +0 -42
  348. package/es/MFA/style/verifyCodeInput.css +0 -1
  349. package/es/MFA/style/verifyCodeInput.less +0 -38
  350. package/es/NeedHelpView/core/describeQuestions.d.ts +0 -8
  351. package/es/NeedHelpView/core/describeQuestions.js +0 -299
  352. package/es/NeedHelpView/index.d.ts +0 -2
  353. package/es/NeedHelpView/index.js +0 -48
  354. package/es/RecoveryCode/core/useCode.d.ts +0 -5
  355. package/es/RecoveryCode/core/useCode.js +0 -93
  356. package/es/RecoveryCode/index.d.ts +0 -3
  357. package/es/RecoveryCode/index.js +0 -28
  358. package/es/RecoveryCode/interface.d.ts +0 -19
  359. package/es/RecoveryCode/interface.js +0 -21
  360. package/es/RecoveryCode/style/css.js +0 -1
  361. package/es/RecoveryCode/style/index.css +0 -1
  362. package/es/RecoveryCode/style/index.d.ts +0 -1
  363. package/es/RecoveryCode/style/index.js +0 -1
  364. package/es/RecoveryCode/style/index.less +0 -13
  365. package/es/Register/codemap.d.ts +0 -2
  366. package/es/Register/codemap.js +0 -10
  367. package/es/Register/components/Agreements/index.d.ts +0 -10
  368. package/es/Register/components/Agreements/index.js +0 -91
  369. package/es/Register/core/WithEmail.d.ts +0 -9
  370. package/es/Register/core/WithEmail.js +0 -262
  371. package/es/Register/core/WithPhone.d.ts +0 -8
  372. package/es/Register/core/WithPhone.js +0 -208
  373. package/es/Register/index.d.ts +0 -3
  374. package/es/Register/index.js +0 -171
  375. package/es/Register/interface.d.ts +0 -25
  376. package/es/Register/interface.js +0 -28
  377. package/es/Register/style/css.js +0 -1
  378. package/es/Register/style/index.css +0 -1
  379. package/es/Register/style/index.d.ts +0 -1
  380. package/es/Register/style/index.js +0 -1
  381. package/es/Register/style/index.less +0 -44
  382. package/es/SendCode/SendCodeBtn.d.ts +0 -9
  383. package/es/SendCode/SendCodeBtn.js +0 -138
  384. package/es/SendCode/index.d.ts +0 -11
  385. package/es/SendCode/index.js +0 -208
  386. package/es/SendCode/style/css.js +0 -1
  387. package/es/SendCode/style/index.css +0 -1
  388. package/es/SendCode/style/index.d.ts +0 -1
  389. package/es/SendCode/style/index.js +0 -1
  390. package/es/SendCode/style/index.less +0 -31
  391. package/es/ShieldSpin/index.d.ts +0 -7
  392. package/es/ShieldSpin/index.js +0 -19
  393. package/es/SubmitButton/index.d.ts +0 -8
  394. package/es/SubmitButton/index.js +0 -58
  395. package/es/SubmitSuccess/index.d.ts +0 -3
  396. package/es/SubmitSuccess/index.js +0 -74
  397. package/es/SubmitSuccess/interface.d.ts +0 -13
  398. package/es/SubmitSuccess/interface.js +0 -1
  399. package/es/Type/index.d.ts +0 -35
  400. package/es/Type/index.js +0 -14
  401. package/es/ValidatorRules/PasswordFormItem.d.ts +0 -3
  402. package/es/ValidatorRules/PasswordFormItem.js +0 -24
  403. package/es/ValidatorRules/ValidatorFormItem.d.ts +0 -5
  404. package/es/ValidatorRules/ValidatorFormItem.js +0 -239
  405. package/es/ValidatorRules/index.d.ts +0 -27
  406. package/es/ValidatorRules/index.js +0 -9
  407. package/es/VerifyCodeInput/index.d.ts +0 -9
  408. package/es/VerifyCodeInput/index.js +0 -89
  409. package/es/VerifyCodeInput/style/css.js +0 -1
  410. package/es/VerifyCodeInput/style/index.css +0 -1
  411. package/es/VerifyCodeInput/style/index.d.ts +0 -1
  412. package/es/VerifyCodeInput/style/index.js +0 -1
  413. package/es/VerifyCodeInput/style/index.less +0 -24
  414. package/es/_utils/GuardErrorCode.d.ts +0 -9
  415. package/es/_utils/GuardErrorCode.js +0 -11
  416. package/es/_utils/clipboard.d.ts +0 -1
  417. package/es/_utils/clipboard.js +0 -35
  418. package/es/_utils/config.d.ts +0 -7
  419. package/es/_utils/config.js +0 -145
  420. package/es/_utils/context.d.ts +0 -8
  421. package/es/_utils/context.js +0 -14
  422. package/es/_utils/errorFace.d.ts +0 -12
  423. package/es/_utils/errorFace.js +0 -32
  424. package/es/_utils/guradHttp.d.ts +0 -21
  425. package/es/_utils/guradHttp.js +0 -178
  426. package/es/_utils/hooks/index.d.ts +0 -4
  427. package/es/_utils/hooks/index.js +0 -60
  428. package/es/_utils/http.d.ts +0 -23
  429. package/es/_utils/http.js +0 -189
  430. package/es/_utils/index.d.ts +0 -60
  431. package/es/_utils/index.js +0 -452
  432. package/es/_utils/locales/en/index.d.ts +0 -5
  433. package/es/_utils/locales/en/index.js +0 -5
  434. package/es/_utils/locales/index.d.ts +0 -5
  435. package/es/_utils/locales/index.js +0 -47
  436. package/es/_utils/locales/zh/index.d.ts +0 -5
  437. package/es/_utils/locales/zh/index.js +0 -5
  438. package/es/_utils/popupCenter.d.ts +0 -9
  439. package/es/_utils/popupCenter.js +0 -28
  440. package/es/context/base.d.ts +0 -12
  441. package/es/context/base.js +0 -15
  442. package/es/context/global/context.d.ts +0 -10
  443. package/es/context/global/context.js +0 -47
  444. package/es/context/global/reducer.d.ts +0 -29
  445. package/es/context/global/reducer.js +0 -32
  446. package/es/context/module/context.d.ts +0 -11
  447. package/es/context/module/context.js +0 -21
  448. package/es/index.d.ts +0 -8
  449. package/es/index.js +0 -8
  450. package/es/version/index.d.ts +0 -2
  451. package/es/version/index.js +0 -2
  452. package/es/version/version.d.ts +0 -2
  453. package/es/version/version.js +0 -1
  454. package/lib/AuthingDropdown/index.d.ts +0 -12
  455. package/lib/AuthingDropdown/index.js +0 -61
  456. package/lib/AuthingDropdown/style/css.js +0 -3
  457. package/lib/AuthingDropdown/style/index.css +0 -1
  458. package/lib/AuthingDropdown/style/index.d.ts +0 -1
  459. package/lib/AuthingDropdown/style/index.js +0 -3
  460. package/lib/AuthingDropdown/style/index.less +0 -43
  461. package/lib/AuthingGuard/AppMFALayout/index.d.ts +0 -4
  462. package/lib/AuthingGuard/AppMFALayout/index.js +0 -89
  463. package/lib/AuthingGuard/CompleteUserInfoLayout/index.d.ts +0 -2
  464. package/lib/AuthingGuard/CompleteUserInfoLayout/index.js +0 -34
  465. package/lib/AuthingGuard/Forms/ADLoginForm/index.d.ts +0 -4
  466. package/lib/AuthingGuard/Forms/ADLoginForm/index.js +0 -203
  467. package/lib/AuthingGuard/Forms/Agreements/index.d.ts +0 -10
  468. package/lib/AuthingGuard/Forms/Agreements/index.js +0 -90
  469. package/lib/AuthingGuard/Forms/CompleteUserInfoForm/index.d.ts +0 -3
  470. package/lib/AuthingGuard/Forms/CompleteUserInfoForm/index.js +0 -237
  471. package/lib/AuthingGuard/Forms/EmailMfaVerifyForm/CheckEmailForm.d.ts +0 -3
  472. package/lib/AuthingGuard/Forms/EmailMfaVerifyForm/CheckEmailForm.js +0 -137
  473. package/lib/AuthingGuard/Forms/EmailMfaVerifyForm/VerifyCodeForm.d.ts +0 -3
  474. package/lib/AuthingGuard/Forms/EmailMfaVerifyForm/VerifyCodeForm.js +0 -199
  475. package/lib/AuthingGuard/Forms/EmailMfaVerifyForm/index.d.ts +0 -3
  476. package/lib/AuthingGuard/Forms/EmailMfaVerifyForm/index.js +0 -54
  477. package/lib/AuthingGuard/Forms/EmailRegisterForm/index.d.ts +0 -4
  478. package/lib/AuthingGuard/Forms/EmailRegisterForm/index.js +0 -258
  479. package/lib/AuthingGuard/Forms/LdapLoginForm/index.d.ts +0 -4
  480. package/lib/AuthingGuard/Forms/LdapLoginForm/index.js +0 -255
  481. package/lib/AuthingGuard/Forms/LoginFormFooter/index.d.ts +0 -7
  482. package/lib/AuthingGuard/Forms/LoginFormFooter/index.js +0 -66
  483. package/lib/AuthingGuard/Forms/MfaResetCodeForm/Step1.d.ts +0 -10
  484. package/lib/AuthingGuard/Forms/MfaResetCodeForm/Step1.js +0 -129
  485. package/lib/AuthingGuard/Forms/MfaResetCodeForm/Step2.d.ts +0 -6
  486. package/lib/AuthingGuard/Forms/MfaResetCodeForm/Step2.js +0 -53
  487. package/lib/AuthingGuard/Forms/MfaResetCodeForm/index.d.ts +0 -3
  488. package/lib/AuthingGuard/Forms/MfaResetCodeForm/index.js +0 -77
  489. package/lib/AuthingGuard/Forms/MfaVerifyForm/index.d.ts +0 -3
  490. package/lib/AuthingGuard/Forms/MfaVerifyForm/index.js +0 -151
  491. package/lib/AuthingGuard/Forms/PasswordLoginForm/index.d.ts +0 -4
  492. package/lib/AuthingGuard/Forms/PasswordLoginForm/index.js +0 -368
  493. package/lib/AuthingGuard/Forms/PhoneCodeLoginForm/index.d.ts +0 -4
  494. package/lib/AuthingGuard/Forms/PhoneCodeLoginForm/index.js +0 -217
  495. package/lib/AuthingGuard/Forms/PhoneRegisterForm/index.d.ts +0 -4
  496. package/lib/AuthingGuard/Forms/PhoneRegisterForm/index.js +0 -286
  497. package/lib/AuthingGuard/Forms/QrCodeLoginForm/index.d.ts +0 -3
  498. package/lib/AuthingGuard/Forms/QrCodeLoginForm/index.js +0 -76
  499. package/lib/AuthingGuard/Forms/RegisterFormFooter/index.d.ts +0 -5
  500. package/lib/AuthingGuard/Forms/RegisterFormFooter/index.js +0 -53
  501. package/lib/AuthingGuard/Forms/ResetPwdForm/Footer.d.ts +0 -2
  502. package/lib/AuthingGuard/Forms/ResetPwdForm/Footer.js +0 -37
  503. package/lib/AuthingGuard/Forms/ResetPwdForm/Step1.d.ts +0 -3
  504. package/lib/AuthingGuard/Forms/ResetPwdForm/Step1.js +0 -147
  505. package/lib/AuthingGuard/Forms/ResetPwdForm/Step2.d.ts +0 -3
  506. package/lib/AuthingGuard/Forms/ResetPwdForm/Step2.js +0 -213
  507. package/lib/AuthingGuard/Forms/ResetPwdForm/Step3.d.ts +0 -3
  508. package/lib/AuthingGuard/Forms/ResetPwdForm/Step3.js +0 -248
  509. package/lib/AuthingGuard/Forms/ResetPwdForm/Step4.d.ts +0 -2
  510. package/lib/AuthingGuard/Forms/ResetPwdForm/Step4.js +0 -74
  511. package/lib/AuthingGuard/Forms/ResetPwdForm/index.d.ts +0 -3
  512. package/lib/AuthingGuard/Forms/ResetPwdForm/index.js +0 -146
  513. package/lib/AuthingGuard/Forms/SendPhoneCode/SendCodeBtn.d.ts +0 -6
  514. package/lib/AuthingGuard/Forms/SendPhoneCode/SendCodeBtn.js +0 -148
  515. package/lib/AuthingGuard/Forms/SendPhoneCode/index.d.ts +0 -8
  516. package/lib/AuthingGuard/Forms/SendPhoneCode/index.js +0 -87
  517. package/lib/AuthingGuard/Forms/SmsMfaVerifyForm/CheckPhoneForm.d.ts +0 -3
  518. package/lib/AuthingGuard/Forms/SmsMfaVerifyForm/CheckPhoneForm.js +0 -139
  519. package/lib/AuthingGuard/Forms/SmsMfaVerifyForm/VerifyCodeForm.d.ts +0 -3
  520. package/lib/AuthingGuard/Forms/SmsMfaVerifyForm/VerifyCodeForm.js +0 -197
  521. package/lib/AuthingGuard/Forms/SmsMfaVerifyForm/index.d.ts +0 -3
  522. package/lib/AuthingGuard/Forms/SmsMfaVerifyForm/index.js +0 -54
  523. package/lib/AuthingGuard/Forms/SocialAndIdpLogin/index.d.ts +0 -3
  524. package/lib/AuthingGuard/Forms/SocialAndIdpLogin/index.js +0 -387
  525. package/lib/AuthingGuard/Forms/UploadImage/index.d.ts +0 -5
  526. package/lib/AuthingGuard/Forms/UploadImage/index.js +0 -92
  527. package/lib/AuthingGuard/Forms/index.d.ts +0 -13
  528. package/lib/AuthingGuard/Forms/index.js +0 -174
  529. package/lib/AuthingGuard/GuardLayout/index.d.ts +0 -10
  530. package/lib/AuthingGuard/GuardLayout/index.js +0 -424
  531. package/lib/AuthingGuard/Header/index.d.ts +0 -4
  532. package/lib/AuthingGuard/Header/index.js +0 -38
  533. package/lib/AuthingGuard/IconFont/iconfont.d.ts +0 -1
  534. package/lib/AuthingGuard/IconFont/iconfont.js +0 -63
  535. package/lib/AuthingGuard/IconFont/index.d.ts +0 -7
  536. package/lib/AuthingGuard/IconFont/index.js +0 -34
  537. package/lib/AuthingGuard/IconFont/svg.d.ts +0 -1
  538. package/lib/AuthingGuard/IconFont/svg.js +0 -8
  539. package/lib/AuthingGuard/LoginLayout/index.d.ts +0 -2
  540. package/lib/AuthingGuard/LoginLayout/index.js +0 -210
  541. package/lib/AuthingGuard/MfaLayout/Steps.d.ts +0 -4
  542. package/lib/AuthingGuard/MfaLayout/Steps.js +0 -13
  543. package/lib/AuthingGuard/MfaLayout/index.d.ts +0 -4
  544. package/lib/AuthingGuard/MfaLayout/index.js +0 -76
  545. package/lib/AuthingGuard/RegisterLayout/index.d.ts +0 -2
  546. package/lib/AuthingGuard/RegisterLayout/index.js +0 -109
  547. package/lib/AuthingGuard/ResetPwdLayout/index.d.ts +0 -2
  548. package/lib/AuthingGuard/ResetPwdLayout/index.js +0 -40
  549. package/lib/AuthingGuard/ToggleLang/index.d.ts +0 -2
  550. package/lib/AuthingGuard/ToggleLang/index.js +0 -64
  551. package/lib/AuthingGuard/api/appConfig.d.ts +0 -116
  552. package/lib/AuthingGuard/api/appConfig.js +0 -38
  553. package/lib/AuthingGuard/api/index.d.ts +0 -3
  554. package/lib/AuthingGuard/api/index.js +0 -44
  555. package/lib/AuthingGuard/api/sso.d.ts +0 -19
  556. package/lib/AuthingGuard/api/sso.js +0 -16
  557. package/lib/AuthingGuard/api/userPoolConfig.d.ts +0 -81
  558. package/lib/AuthingGuard/api/userPoolConfig.js +0 -16
  559. package/lib/AuthingGuard/constants.d.ts +0 -32
  560. package/lib/AuthingGuard/constants.js +0 -96
  561. package/lib/AuthingGuard/hooks/index.d.ts +0 -20
  562. package/lib/AuthingGuard/hooks/index.js +0 -66
  563. package/lib/AuthingGuard/hooks/useScreenSize.d.ts +0 -10
  564. package/lib/AuthingGuard/hooks/useScreenSize.js +0 -89
  565. package/lib/AuthingGuard/index.d.ts +0 -12
  566. package/lib/AuthingGuard/index.js +0 -140
  567. package/lib/AuthingGuard/style/appMFALayout.css +0 -1
  568. package/lib/AuthingGuard/style/appMFALayout.less +0 -12
  569. package/lib/AuthingGuard/style/completeUserInfoLayout.css +0 -1
  570. package/lib/AuthingGuard/style/completeUserInfoLayout.less +0 -8
  571. package/lib/AuthingGuard/style/css.js +0 -35
  572. package/lib/AuthingGuard/style/emailMfaVerifyForm.css +0 -0
  573. package/lib/AuthingGuard/style/emailMfaVerifyForm.less +0 -0
  574. package/lib/AuthingGuard/style/formAgreements.css +0 -1
  575. package/lib/AuthingGuard/style/formAgreements.less +0 -44
  576. package/lib/AuthingGuard/style/formResetPwdForm.css +0 -1
  577. package/lib/AuthingGuard/style/formResetPwdForm.less +0 -3
  578. package/lib/AuthingGuard/style/guardLayout.css +0 -1
  579. package/lib/AuthingGuard/style/guardLayout.less +0 -111
  580. package/lib/AuthingGuard/style/header.css +0 -1
  581. package/lib/AuthingGuard/style/header.less +0 -64
  582. package/lib/AuthingGuard/style/iconFont.css +0 -1
  583. package/lib/AuthingGuard/style/iconFont.less +0 -6
  584. package/lib/AuthingGuard/style/index.css +0 -1
  585. package/lib/AuthingGuard/style/index.d.ts +0 -17
  586. package/lib/AuthingGuard/style/index.js +0 -35
  587. package/lib/AuthingGuard/style/index.less +0 -106
  588. package/lib/AuthingGuard/style/loginFormFooter.css +0 -1
  589. package/lib/AuthingGuard/style/loginFormFooter.less +0 -6
  590. package/lib/AuthingGuard/style/mfaLayout.css +0 -1
  591. package/lib/AuthingGuard/style/mfaLayout.less +0 -3
  592. package/lib/AuthingGuard/style/mfaResetCodeForm.css +0 -0
  593. package/lib/AuthingGuard/style/mfaResetCodeForm.less +0 -0
  594. package/lib/AuthingGuard/style/mfaVerifyForm.css +0 -1
  595. package/lib/AuthingGuard/style/mfaVerifyForm.less +0 -12
  596. package/lib/AuthingGuard/style/qrCodeLoginForm.css +0 -1
  597. package/lib/AuthingGuard/style/qrCodeLoginForm.less +0 -14
  598. package/lib/AuthingGuard/style/sendPhoneCode.css +0 -1
  599. package/lib/AuthingGuard/style/sendPhoneCode.less +0 -26
  600. package/lib/AuthingGuard/style/smsMfaVerifyForm.css +0 -1
  601. package/lib/AuthingGuard/style/smsMfaVerifyForm.less +0 -3
  602. package/lib/AuthingGuard/style/socialAndIdpLogin.css +0 -0
  603. package/lib/AuthingGuard/style/socialAndIdpLogin.less +0 -0
  604. package/lib/AuthingGuard/types/Forms.d.ts +0 -79
  605. package/lib/AuthingGuard/types/Forms.js +0 -5
  606. package/lib/AuthingGuard/types/GuardConfig.d.ts +0 -241
  607. package/lib/AuthingGuard/types/GuardConfig.js +0 -194
  608. package/lib/AuthingGuard/types/GuardState.d.ts +0 -6
  609. package/lib/AuthingGuard/types/GuardState.js +0 -3
  610. package/lib/AuthingGuard/types/Locales.d.ts +0 -5
  611. package/lib/AuthingGuard/types/Locales.js +0 -14
  612. package/lib/AuthingGuard/types/index.d.ts +0 -4
  613. package/lib/AuthingGuard/types/index.js +0 -57
  614. package/lib/AuthingTabs/index.d.ts +0 -12
  615. package/lib/AuthingTabs/index.js +0 -92
  616. package/lib/AuthingTabs/style/css.js +0 -3
  617. package/lib/AuthingTabs/style/index.css +0 -1
  618. package/lib/AuthingTabs/style/index.d.ts +0 -1
  619. package/lib/AuthingTabs/style/index.js +0 -3
  620. package/lib/AuthingTabs/style/index.less +0 -135
  621. package/lib/BindTotp/core/bindSuccess.d.ts +0 -6
  622. package/lib/BindTotp/core/bindSuccess.js +0 -126
  623. package/lib/BindTotp/core/securityCode.d.ts +0 -8
  624. package/lib/BindTotp/core/securityCode.js +0 -162
  625. package/lib/BindTotp/index.d.ts +0 -3
  626. package/lib/BindTotp/index.js +0 -197
  627. package/lib/BindTotp/interface.d.ts +0 -19
  628. package/lib/BindTotp/interface.js +0 -24
  629. package/lib/BindTotp/style/css.js +0 -3
  630. package/lib/BindTotp/style/index.css +0 -1
  631. package/lib/BindTotp/style/index.d.ts +0 -1
  632. package/lib/BindTotp/style/index.js +0 -3
  633. package/lib/BindTotp/style/index.less +0 -57
  634. package/lib/ChangeLanguage/index.d.ts +0 -2
  635. package/lib/ChangeLanguage/index.js +0 -59
  636. package/lib/ChangePassword/core/firstLoginReset.d.ts +0 -8
  637. package/lib/ChangePassword/core/firstLoginReset.js +0 -160
  638. package/lib/ChangePassword/core/rotateReset.d.ts +0 -8
  639. package/lib/ChangePassword/core/rotateReset.js +0 -181
  640. package/lib/ChangePassword/index.d.ts +0 -2
  641. package/lib/ChangePassword/index.js +0 -91
  642. package/lib/CompleteInfo/core/completeInfo.d.ts +0 -16
  643. package/lib/CompleteInfo/core/completeInfo.js +0 -574
  644. package/lib/CompleteInfo/index.d.ts +0 -3
  645. package/lib/CompleteInfo/index.js +0 -68
  646. package/lib/CompleteInfo/interface.d.ts +0 -32
  647. package/lib/CompleteInfo/interface.js +0 -24
  648. package/lib/CompleteInfo/style/css.js +0 -3
  649. package/lib/CompleteInfo/style/index.css +0 -1
  650. package/lib/CompleteInfo/style/index.d.ts +0 -1
  651. package/lib/CompleteInfo/style/index.js +0 -3
  652. package/lib/CompleteInfo/style/index.less +0 -7
  653. package/lib/CompleteInfo/utils.d.ts +0 -3
  654. package/lib/CompleteInfo/utils.js +0 -51
  655. package/lib/CopyAbleText/index.d.ts +0 -4
  656. package/lib/CopyAbleText/index.js +0 -68
  657. package/lib/CopyAbleText/style/css.js +0 -3
  658. package/lib/CopyAbleText/style/index.css +0 -1
  659. package/lib/CopyAbleText/style/index.d.ts +0 -1
  660. package/lib/CopyAbleText/style/index.js +0 -3
  661. package/lib/CopyAbleText/style/index.less +0 -13
  662. package/lib/DownloadAuthenticator/index.d.ts +0 -3
  663. package/lib/DownloadAuthenticator/index.js +0 -106
  664. package/lib/DownloadAuthenticator/interface.d.ts +0 -12
  665. package/lib/DownloadAuthenticator/interface.js +0 -24
  666. package/lib/DownloadAuthenticator/style/css.js +0 -3
  667. package/lib/DownloadAuthenticator/style/index.css +0 -1
  668. package/lib/DownloadAuthenticator/style/index.d.ts +0 -1
  669. package/lib/DownloadAuthenticator/style/index.js +0 -3
  670. package/lib/DownloadAuthenticator/style/index.less +0 -58
  671. package/lib/Error/index.d.ts +0 -3
  672. package/lib/Error/index.js +0 -38
  673. package/lib/Error/interface.d.ts +0 -8
  674. package/lib/Error/interface.js +0 -5
  675. package/lib/Error/style/css.js +0 -3
  676. package/lib/Error/style/index.css +0 -1
  677. package/lib/Error/style/index.d.ts +0 -1
  678. package/lib/Error/style/index.js +0 -3
  679. package/lib/Error/style/index.less +0 -12
  680. package/lib/ForgetPassword/core/resetPassword.d.ts +0 -9
  681. package/lib/ForgetPassword/core/resetPassword.js +0 -246
  682. package/lib/ForgetPassword/index.d.ts +0 -3
  683. package/lib/ForgetPassword/index.js +0 -117
  684. package/lib/ForgetPassword/interface.d.ts +0 -18
  685. package/lib/ForgetPassword/interface.js +0 -5
  686. package/lib/Guard/Guard.d.ts +0 -10
  687. package/lib/Guard/Guard.js +0 -381
  688. package/lib/Guard/authClient.d.ts +0 -5
  689. package/lib/Guard/authClient.js +0 -58
  690. package/lib/Guard/config.d.ts +0 -8
  691. package/lib/Guard/config.js +0 -30
  692. package/lib/Guard/event.d.ts +0 -8
  693. package/lib/Guard/event.js +0 -71
  694. package/lib/Guard/index.d.ts +0 -4
  695. package/lib/Guard/index.js +0 -57
  696. package/lib/Guard/module.d.ts +0 -20
  697. package/lib/Guard/module.js +0 -23
  698. package/lib/Guard/sso.d.ts +0 -19
  699. package/lib/Guard/sso.js +0 -46
  700. package/lib/Guard/stateMachine.d.ts +0 -36
  701. package/lib/Guard/stateMachine.js +0 -155
  702. package/lib/Guard/style/css.js +0 -39
  703. package/lib/Guard/style/index.css +0 -1
  704. package/lib/Guard/style/index.d.ts +0 -19
  705. package/lib/Guard/style/index.js +0 -39
  706. package/lib/Guard/style/index.less +0 -615
  707. package/lib/IconFont/iconfont.d.ts +0 -1
  708. package/lib/IconFont/iconfont.js +0 -63
  709. package/lib/IconFont/index.d.ts +0 -7
  710. package/lib/IconFont/index.js +0 -34
  711. package/lib/IconFont/style/css.js +0 -3
  712. package/lib/IconFont/style/index.css +0 -1
  713. package/lib/IconFont/style/index.d.ts +0 -1
  714. package/lib/IconFont/style/index.js +0 -3
  715. package/lib/IconFont/style/index.less +0 -6
  716. package/lib/IconFont/svg.d.ts +0 -1
  717. package/lib/IconFont/svg.js +0 -8
  718. package/lib/ImagePro/index.d.ts +0 -13
  719. package/lib/ImagePro/index.js +0 -76
  720. package/lib/ImagePro/style/css.js +0 -3
  721. package/lib/ImagePro/style/index.css +0 -1
  722. package/lib/ImagePro/style/index.d.ts +0 -1
  723. package/lib/ImagePro/style/index.js +0 -3
  724. package/lib/ImagePro/style/index.less +0 -40
  725. package/lib/InputNumber/index.d.ts +0 -5
  726. package/lib/InputNumber/index.js +0 -56
  727. package/lib/InputPassword/index.d.ts +0 -4
  728. package/lib/InputPassword/index.js +0 -38
  729. package/lib/Login/codemap.d.ts +0 -2
  730. package/lib/Login/codemap.js +0 -58
  731. package/lib/Login/core/withAD.d.ts +0 -6
  732. package/lib/Login/core/withAD.js +0 -18
  733. package/lib/Login/core/withAppQrcode.d.ts +0 -8
  734. package/lib/Login/core/withAppQrcode.js +0 -74
  735. package/lib/Login/core/withLDAP.d.ts +0 -10
  736. package/lib/Login/core/withLDAP.js +0 -227
  737. package/lib/Login/core/withPassword/FormItemAccount.d.ts +0 -7
  738. package/lib/Login/core/withPassword/FormItemAccount.js +0 -55
  739. package/lib/Login/core/withPassword/GraphicVerifyCode.d.ts +0 -7
  740. package/lib/Login/core/withPassword/GraphicVerifyCode.js +0 -46
  741. package/lib/Login/core/withPassword/InputAccount.d.ts +0 -7
  742. package/lib/Login/core/withPassword/InputAccount.js +0 -72
  743. package/lib/Login/core/withPassword/index.d.ts +0 -12
  744. package/lib/Login/core/withPassword/index.js +0 -243
  745. package/lib/Login/core/withPhonecode.d.ts +0 -2
  746. package/lib/Login/core/withPhonecode.js +0 -189
  747. package/lib/Login/core/withWechatMiniQrcode.d.ts +0 -8
  748. package/lib/Login/core/withWechatMiniQrcode.js +0 -85
  749. package/lib/Login/core/withWechatmpQrcode.d.ts +0 -8
  750. package/lib/Login/core/withWechatmpQrcode.js +0 -75
  751. package/lib/Login/index.d.ts +0 -3
  752. package/lib/Login/index.js +0 -451
  753. package/lib/Login/interface.d.ts +0 -31
  754. package/lib/Login/interface.js +0 -34
  755. package/lib/Login/socialLogin/index.d.ts +0 -8
  756. package/lib/Login/socialLogin/index.js +0 -462
  757. package/lib/Login/style/css.js +0 -5
  758. package/lib/Login/style/index.css +0 -1
  759. package/lib/Login/style/index.d.ts +0 -2
  760. package/lib/Login/style/index.js +0 -5
  761. package/lib/Login/style/index.less +0 -99
  762. package/lib/Login/style/socialLogin.css +0 -1
  763. package/lib/Login/style/socialLogin.less +0 -77
  764. package/lib/MFA/VerifyCodeInput/VerifyCodeFormItem.d.ts +0 -7
  765. package/lib/MFA/VerifyCodeInput/VerifyCodeFormItem.js +0 -53
  766. package/lib/MFA/VerifyCodeInput/index.d.ts +0 -13
  767. package/lib/MFA/VerifyCodeInput/index.js +0 -181
  768. package/lib/MFA/codemap.d.ts +0 -2
  769. package/lib/MFA/codemap.js +0 -35
  770. package/lib/MFA/core/email.d.ts +0 -23
  771. package/lib/MFA/core/email.js +0 -328
  772. package/lib/MFA/core/face.d.ts +0 -2
  773. package/lib/MFA/core/face.js +0 -380
  774. package/lib/MFA/core/face_deps.d.ts +0 -12
  775. package/lib/MFA/core/face_deps.js +0 -55
  776. package/lib/MFA/core/sms.d.ts +0 -22
  777. package/lib/MFA/core/sms.js +0 -324
  778. package/lib/MFA/core/totp.d.ts +0 -19
  779. package/lib/MFA/core/totp.js +0 -177
  780. package/lib/MFA/index.d.ts +0 -3
  781. package/lib/MFA/index.js +0 -196
  782. package/lib/MFA/interface.d.ts +0 -38
  783. package/lib/MFA/interface.js +0 -33
  784. package/lib/MFA/mfaMethods/index.d.ts +0 -8
  785. package/lib/MFA/mfaMethods/index.js +0 -95
  786. package/lib/MFA/style/css.js +0 -7
  787. package/lib/MFA/style/index.css +0 -1
  788. package/lib/MFA/style/index.d.ts +0 -3
  789. package/lib/MFA/style/index.js +0 -7
  790. package/lib/MFA/style/index.less +0 -101
  791. package/lib/MFA/style/mfaMethods.css +0 -1
  792. package/lib/MFA/style/mfaMethods.less +0 -42
  793. package/lib/MFA/style/verifyCodeInput.css +0 -1
  794. package/lib/MFA/style/verifyCodeInput.less +0 -38
  795. package/lib/NeedHelpView/core/describeQuestions.d.ts +0 -8
  796. package/lib/NeedHelpView/core/describeQuestions.js +0 -307
  797. package/lib/NeedHelpView/index.d.ts +0 -2
  798. package/lib/NeedHelpView/index.js +0 -64
  799. package/lib/RecoveryCode/core/useCode.d.ts +0 -5
  800. package/lib/RecoveryCode/core/useCode.js +0 -112
  801. package/lib/RecoveryCode/index.d.ts +0 -3
  802. package/lib/RecoveryCode/index.js +0 -43
  803. package/lib/RecoveryCode/interface.d.ts +0 -19
  804. package/lib/RecoveryCode/interface.js +0 -24
  805. package/lib/RecoveryCode/style/css.js +0 -3
  806. package/lib/RecoveryCode/style/index.css +0 -1
  807. package/lib/RecoveryCode/style/index.d.ts +0 -1
  808. package/lib/RecoveryCode/style/index.js +0 -3
  809. package/lib/RecoveryCode/style/index.less +0 -13
  810. package/lib/Register/codemap.d.ts +0 -2
  811. package/lib/Register/codemap.js +0 -21
  812. package/lib/Register/components/Agreements/index.d.ts +0 -10
  813. package/lib/Register/components/Agreements/index.js +0 -90
  814. package/lib/Register/core/WithEmail.d.ts +0 -9
  815. package/lib/Register/core/WithEmail.js +0 -284
  816. package/lib/Register/core/WithPhone.d.ts +0 -8
  817. package/lib/Register/core/WithPhone.js +0 -231
  818. package/lib/Register/index.d.ts +0 -3
  819. package/lib/Register/index.js +0 -186
  820. package/lib/Register/interface.d.ts +0 -25
  821. package/lib/Register/interface.js +0 -31
  822. package/lib/Register/style/css.js +0 -3
  823. package/lib/Register/style/index.css +0 -1
  824. package/lib/Register/style/index.d.ts +0 -1
  825. package/lib/Register/style/index.js +0 -3
  826. package/lib/Register/style/index.less +0 -44
  827. package/lib/SendCode/SendCodeBtn.d.ts +0 -9
  828. package/lib/SendCode/SendCodeBtn.js +0 -157
  829. package/lib/SendCode/index.d.ts +0 -11
  830. package/lib/SendCode/index.js +0 -227
  831. package/lib/SendCode/style/css.js +0 -3
  832. package/lib/SendCode/style/index.css +0 -1
  833. package/lib/SendCode/style/index.d.ts +0 -1
  834. package/lib/SendCode/style/index.js +0 -3
  835. package/lib/SendCode/style/index.less +0 -31
  836. package/lib/ShieldSpin/index.d.ts +0 -7
  837. package/lib/ShieldSpin/index.js +0 -35
  838. package/lib/SubmitButton/index.d.ts +0 -8
  839. package/lib/SubmitButton/index.js +0 -68
  840. package/lib/SubmitSuccess/index.d.ts +0 -3
  841. package/lib/SubmitSuccess/index.js +0 -92
  842. package/lib/SubmitSuccess/interface.d.ts +0 -13
  843. package/lib/SubmitSuccess/interface.js +0 -5
  844. package/lib/Type/index.d.ts +0 -35
  845. package/lib/Type/index.js +0 -25
  846. package/lib/ValidatorRules/PasswordFormItem.d.ts +0 -3
  847. package/lib/ValidatorRules/PasswordFormItem.js +0 -38
  848. package/lib/ValidatorRules/ValidatorFormItem.d.ts +0 -5
  849. package/lib/ValidatorRules/ValidatorFormItem.js +0 -262
  850. package/lib/ValidatorRules/index.d.ts +0 -27
  851. package/lib/ValidatorRules/index.js +0 -22
  852. package/lib/VerifyCodeInput/index.d.ts +0 -9
  853. package/lib/VerifyCodeInput/index.js +0 -92
  854. package/lib/VerifyCodeInput/style/css.js +0 -3
  855. package/lib/VerifyCodeInput/style/index.css +0 -1
  856. package/lib/VerifyCodeInput/style/index.d.ts +0 -1
  857. package/lib/VerifyCodeInput/style/index.js +0 -3
  858. package/lib/VerifyCodeInput/style/index.less +0 -24
  859. package/lib/_utils/GuardErrorCode.d.ts +0 -9
  860. package/lib/_utils/GuardErrorCode.js +0 -18
  861. package/lib/_utils/clipboard.d.ts +0 -1
  862. package/lib/_utils/clipboard.js +0 -45
  863. package/lib/_utils/config.d.ts +0 -7
  864. package/lib/_utils/config.js +0 -152
  865. package/lib/_utils/context.d.ts +0 -8
  866. package/lib/_utils/context.js +0 -31
  867. package/lib/_utils/errorFace.d.ts +0 -12
  868. package/lib/_utils/errorFace.js +0 -40
  869. package/lib/_utils/guradHttp.d.ts +0 -21
  870. package/lib/_utils/guradHttp.js +0 -190
  871. package/lib/_utils/hooks/index.d.ts +0 -4
  872. package/lib/_utils/hooks/index.js +0 -76
  873. package/lib/_utils/http.d.ts +0 -23
  874. package/lib/_utils/http.js +0 -188
  875. package/lib/_utils/index.d.ts +0 -60
  876. package/lib/_utils/index.js +0 -547
  877. package/lib/_utils/locales/en/index.d.ts +0 -5
  878. package/lib/_utils/locales/en/index.js +0 -39
  879. package/lib/_utils/locales/index.d.ts +0 -5
  880. package/lib/_utils/locales/index.js +0 -72
  881. package/lib/_utils/locales/zh/index.d.ts +0 -5
  882. package/lib/_utils/locales/zh/index.js +0 -39
  883. package/lib/_utils/popupCenter.d.ts +0 -9
  884. package/lib/_utils/popupCenter.js +0 -33
  885. package/lib/context/base.d.ts +0 -12
  886. package/lib/context/base.js +0 -26
  887. package/lib/context/global/context.d.ts +0 -10
  888. package/lib/context/global/context.js +0 -63
  889. package/lib/context/global/reducer.d.ts +0 -29
  890. package/lib/context/global/reducer.js +0 -36
  891. package/lib/context/module/context.d.ts +0 -11
  892. package/lib/context/module/context.js +0 -37
  893. package/lib/index.css +0 -2358
  894. package/lib/index.js +0 -96
  895. package/lib/version/index.d.ts +0 -2
  896. package/lib/version/index.js +0 -13
  897. package/lib/version/version.d.ts +0 -2
  898. package/lib/version/version.js +0 -8
@@ -1,152 +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.initConfig = void 0;
9
-
10
- var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
11
-
12
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
13
-
14
- var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
15
-
16
- var _ = require(".");
17
-
18
- var _guradHttp = require("./guradHttp");
19
-
20
- 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; }
21
-
22
- 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; }
23
-
24
- var publicConfigMap = {};
25
-
26
- var getPublicConfig = function getPublicConfig(appId) {
27
- return publicConfigMap === null || publicConfigMap === void 0 ? void 0 : publicConfigMap[appId];
28
- };
29
-
30
- var setPublicConfig = function setPublicConfig(appId, config) {
31
- return publicConfigMap[appId] = config;
32
- };
33
-
34
- var initConfig = /*#__PURE__*/function () {
35
- var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(appId, config, defaultConfig) {
36
- var mergedConfig;
37
- return _regenerator.default.wrap(function _callee$(_context) {
38
- while (1) {
39
- switch (_context.prev = _context.next) {
40
- case 0:
41
- if (getPublicConfig(appId)) {
42
- _context.next = 3;
43
- break;
44
- }
45
-
46
- _context.next = 3;
47
- return requestPublicConfig(appId);
48
-
49
- case 3:
50
- mergedConfig = mergeConfig(config, defaultConfig, getPublicConfig(appId));
51
- return _context.abrupt("return", {
52
- config: _objectSpread(_objectSpread({}, mergedConfig), {}, {
53
- __publicConfig__: getPublicConfig(appId),
54
- __appHost__: (0, _.assembledAppHost)(getPublicConfig(appId).identifier, mergedConfig === null || mergedConfig === void 0 ? void 0 : mergedConfig.host)
55
- }),
56
- publicConfig: getPublicConfig(appId)
57
- });
58
-
59
- case 5:
60
- case "end":
61
- return _context.stop();
62
- }
63
- }
64
- }, _callee);
65
- }));
66
-
67
- return function initConfig(_x, _x2, _x3) {
68
- return _ref.apply(this, arguments);
69
- };
70
- }();
71
-
72
- exports.initConfig = initConfig;
73
-
74
- var mergeConfig = function mergeConfig(config, defaultConfig, publicConfig) {
75
- var _config$title, _ref2, _config$loginMethods, _publicConfig$loginTa, _ref3, _config$passwordLogin, _publicConfig$passwor, _config$defaultLoginM, _config$disableResetP, _publicConfig$ssoPage, _config$autoRegister, _config$registerMetho, _publicConfig$registe, _config$defaultRegist, _config$disableRegist, _config$publicKey, _config$agreementEnab, _config$agreements, _config$contentCss;
76
-
77
- var mergedPublicConfig = _objectSpread(_objectSpread(_objectSpread({}, defaultConfig), config), {}, {
78
- title: (_config$title = config.title) !== null && _config$title !== void 0 ? _config$title : publicConfig.name,
79
- logo: !!config.logo ? config.logo : publicConfig.logo,
80
- loginMethods: (_ref2 = (_config$loginMethods = config === null || config === void 0 ? void 0 : config.loginMethods) !== null && _config$loginMethods !== void 0 ? _config$loginMethods : (_publicConfig$loginTa = publicConfig.loginTabs) === null || _publicConfig$loginTa === void 0 ? void 0 : _publicConfig$loginTa.list) !== null && _ref2 !== void 0 ? _ref2 : [],
81
- passwordLoginMethods: (_ref3 = (_config$passwordLogin = config === null || config === void 0 ? void 0 : config.passwordLoginMethods) !== null && _config$passwordLogin !== void 0 ? _config$passwordLogin : (_publicConfig$passwor = publicConfig.passwordTabConfig) === null || _publicConfig$passwor === void 0 ? void 0 : _publicConfig$passwor.enabledLoginMethods) !== null && _ref3 !== void 0 ? _ref3 : [],
82
- // 默认登录方式
83
- defaultLoginMethod: (_config$defaultLoginM = config.defaultLoginMethod) !== null && _config$defaultLoginM !== void 0 ? _config$defaultLoginM : publicConfig.loginTabs.default,
84
- // 禁止重制密码
85
- disableResetPwd: !!((_config$disableResetP = config.disableResetPwd) !== null && _config$disableResetP !== void 0 ? _config$disableResetP : !((_publicConfig$ssoPage = publicConfig.ssoPageComponentDisplay) !== null && _publicConfig$ssoPage !== void 0 && _publicConfig$ssoPage.forgetPasswordBtn)),
86
- // 是否自动注册
87
- autoRegister: (_config$autoRegister = config.autoRegister) !== null && _config$autoRegister !== void 0 ? _config$autoRegister : publicConfig.ssoPageComponentDisplay.autoRegisterThenLoginHintInfo,
88
- registerMethods: (_config$registerMetho = config.registerMethods) !== null && _config$registerMetho !== void 0 ? _config$registerMetho : (_publicConfig$registe = publicConfig.registerTabs) === null || _publicConfig$registe === void 0 ? void 0 : _publicConfig$registe.list,
89
- defaultRegisterMethod: (_config$defaultRegist = config.defaultRegisterMethod) !== null && _config$defaultRegist !== void 0 ? _config$defaultRegist : publicConfig.registerTabs.default,
90
- // 禁止注册
91
- disableRegister: !!((_config$disableRegist = config.disableRegister) !== null && _config$disableRegist !== void 0 ? _config$disableRegist : !publicConfig.ssoPageComponentDisplay.registerBtn),
92
- // publicKey
93
- publicKey: (_config$publicKey = config.publicKey) !== null && _config$publicKey !== void 0 ? _config$publicKey : publicConfig.publicKey,
94
- // 注册协议
95
- agreementEnabled: (_config$agreementEnab = config.agreementEnabled) !== null && _config$agreementEnab !== void 0 ? _config$agreementEnab : publicConfig.agreementEnabled,
96
- agreements: (_config$agreements = config.agreements) !== null && _config$agreements !== void 0 ? _config$agreements : publicConfig.agreements,
97
- contentCss: (_config$contentCss = config.contentCss) !== null && _config$contentCss !== void 0 ? _config$contentCss : publicConfig.css
98
- });
99
-
100
- return mergedPublicConfig;
101
- };
102
-
103
- var requestPublicConfig = /*#__PURE__*/function () {
104
- var _ref4 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(appId) {
105
- var _res$message, _res;
106
-
107
- var res, _getGuardHttp, get;
108
-
109
- return _regenerator.default.wrap(function _callee2$(_context2) {
110
- while (1) {
111
- switch (_context2.prev = _context2.next) {
112
- case 0:
113
- _getGuardHttp = (0, _guradHttp.getGuardHttp)(), get = _getGuardHttp.get;
114
- _context2.prev = 1;
115
- _context2.next = 4;
116
- return get("/api/v2/applications/".concat(appId, "/public-config"));
117
-
118
- case 4:
119
- res = _context2.sent;
120
- _context2.next = 11;
121
- break;
122
-
123
- case 7:
124
- _context2.prev = 7;
125
- _context2.t0 = _context2["catch"](1);
126
- console.error('Please check your config or network');
127
- throw new Error('Please check your config or network');
128
-
129
- case 11:
130
- if (!(res.code !== 200 || !res.data)) {
131
- _context2.next = 13;
132
- break;
133
- }
134
-
135
- throw new Error((_res$message = (_res = res) === null || _res === void 0 ? void 0 : _res.message) !== null && _res$message !== void 0 ? _res$message : 'Please check your config');
136
-
137
- case 13:
138
- setPublicConfig(appId, res.data);
139
- return _context2.abrupt("return", getPublicConfig(appId));
140
-
141
- case 15:
142
- case "end":
143
- return _context2.stop();
144
- }
145
- }
146
- }, _callee2, null, [[1, 7]]);
147
- }));
148
-
149
- return function requestPublicConfig(_x4) {
150
- return _ref4.apply(this, arguments);
151
- };
152
- }();
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- import { ApplicationConfig } from '../AuthingGuard/api';
3
- export declare const createGuardContext: () => {
4
- Context: React.Context<ApplicationConfig | undefined>;
5
- Provider: React.Provider<ApplicationConfig | undefined>;
6
- Consumer: React.Consumer<ApplicationConfig | undefined>;
7
- };
8
- export declare const usePublicConfig: () => ApplicationConfig | undefined;
@@ -1,31 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
4
-
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports.usePublicConfig = exports.createGuardContext = void 0;
9
-
10
- var _react = _interopRequireWildcard(require("react"));
11
-
12
- var Context = /*#__PURE__*/_react.default.createContext(undefined);
13
-
14
- var Provider = Context.Provider;
15
- var Consumer = Context.Consumer;
16
-
17
- var createGuardContext = function createGuardContext() {
18
- return {
19
- Context: Context,
20
- Provider: Provider,
21
- Consumer: Consumer
22
- };
23
- };
24
-
25
- exports.createGuardContext = createGuardContext;
26
-
27
- var usePublicConfig = function usePublicConfig() {
28
- return (0, _react.useContext)(Context);
29
- };
30
-
31
- exports.usePublicConfig = usePublicConfig;
@@ -1,12 +0,0 @@
1
- declare enum FaceErrorName {
2
- NotAllowedError = "NotAllowedError",
3
- AbortError = "AbortError",
4
- NotReadableError = "NotReadableError",
5
- OverconstrainedError = "OverconstrainedError",
6
- SecurityError = "SecurityError"
7
- }
8
- export interface FaceErrorMessage extends DOMException {
9
- name: FaceErrorName;
10
- }
11
- export declare const faceErrorMessage: (error: FaceErrorMessage) => string;
12
- export {};
@@ -1,40 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.faceErrorMessage = void 0;
7
- var FaceErrorName;
8
-
9
- (function (FaceErrorName) {
10
- FaceErrorName["NotAllowedError"] = "NotAllowedError";
11
- FaceErrorName["AbortError"] = "AbortError";
12
- FaceErrorName["NotReadableError"] = "NotReadableError";
13
- FaceErrorName["OverconstrainedError"] = "OverconstrainedError";
14
- FaceErrorName["SecurityError"] = "SecurityError";
15
- })(FaceErrorName || (FaceErrorName = {}));
16
-
17
- var faceErrorMessage = function faceErrorMessage(error) {
18
- var message = '';
19
-
20
- switch (error.name) {
21
- case FaceErrorName.NotAllowedError:
22
- message = 'login.AuthorizationCamera';
23
- break;
24
-
25
- case FaceErrorName.SecurityError:
26
- message = 'login.checkPreferences';
27
- break;
28
-
29
- case FaceErrorName.OverconstrainedError:
30
- message = 'login.requireError';
31
- break;
32
-
33
- default:
34
- message = 'login.hardwareSupport';
35
- }
36
-
37
- return message;
38
- };
39
-
40
- exports.faceErrorMessage = faceErrorMessage;
@@ -1,21 +0,0 @@
1
- export declare class GuardHttp {
2
- private requestClient;
3
- private headers;
4
- constructor(baseUrl: string);
5
- private getRequestClient;
6
- setUserpoolId(userpoolId: string): void;
7
- setAppId(appId: string): void;
8
- setTenantId(tenantId: string): void;
9
- setBaseUrl(baseUrl: string): void;
10
- getHeaders: () => Record<string, string>;
11
- get: <T>(path: string, query?: Record<string, any>, config?: RequestInit | undefined) => Promise<import("./http").AuthingResponse<T>>;
12
- post: <T>(path: string, data: any, config?: {
13
- headers: any;
14
- } | undefined) => Promise<import("./http").AuthingResponse<T>>;
15
- postForm: <T>(path: string, formData: any, config?: {
16
- headers: any;
17
- } | undefined) => Promise<import("./http").AuthingResponse<T>>;
18
- }
19
- export declare const initGuardHttp: (baseUrl: string) => GuardHttp;
20
- export declare const getGuardHttp: () => GuardHttp;
21
- export declare const useGuardHttp: () => GuardHttp;
@@ -1,190 +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.useGuardHttp = exports.initGuardHttp = exports.getGuardHttp = exports.GuardHttp = void 0;
9
-
10
- var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
11
-
12
- var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
13
-
14
- var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
15
-
16
- var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
17
-
18
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
19
-
20
- var _version = _interopRequireDefault(require("../version"));
21
-
22
- var _http = require("./http");
23
-
24
- 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; }
25
-
26
- 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; }
27
-
28
- var httpClient;
29
-
30
- var GuardHttp = /*#__PURE__*/function () {
31
- function GuardHttp(baseUrl) {
32
- var _this = this;
33
-
34
- (0, _classCallCheck2.default)(this, GuardHttp);
35
- (0, _defineProperty2.default)(this, "headers", {
36
- 'x-authing-userpool-id': '',
37
- 'x-authing-app-id': '',
38
- 'x-authing-sdk-version': _version.default,
39
- 'x-authing-request-from': "Guard@".concat(_version.default)
40
- });
41
- (0, _defineProperty2.default)(this, "getHeaders", function () {
42
- return _this.headers;
43
- });
44
- (0, _defineProperty2.default)(this, "get", /*#__PURE__*/function () {
45
- var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(path) {
46
- var query,
47
- config,
48
- _args = arguments;
49
- return _regenerator.default.wrap(function _callee$(_context) {
50
- while (1) {
51
- switch (_context.prev = _context.next) {
52
- case 0:
53
- query = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
54
- config = _args.length > 2 ? _args[2] : undefined;
55
- _context.next = 4;
56
- return _http.requestClient.get(path, query, _objectSpread(_objectSpread({}, config), {}, {
57
- headers: _objectSpread(_objectSpread({}, _this.headers), config === null || config === void 0 ? void 0 : config.headers)
58
- }));
59
-
60
- case 4:
61
- return _context.abrupt("return", _context.sent);
62
-
63
- case 5:
64
- case "end":
65
- return _context.stop();
66
- }
67
- }
68
- }, _callee);
69
- }));
70
-
71
- return function (_x) {
72
- return _ref.apply(this, arguments);
73
- };
74
- }());
75
- (0, _defineProperty2.default)(this, "post", /*#__PURE__*/function () {
76
- var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(path, data, config) {
77
- return _regenerator.default.wrap(function _callee2$(_context2) {
78
- while (1) {
79
- switch (_context2.prev = _context2.next) {
80
- case 0:
81
- _context2.next = 2;
82
- return _http.requestClient.post(path, data, {
83
- headers: _objectSpread(_objectSpread({}, _this.headers), config === null || config === void 0 ? void 0 : config.headers)
84
- });
85
-
86
- case 2:
87
- return _context2.abrupt("return", _context2.sent);
88
-
89
- case 3:
90
- case "end":
91
- return _context2.stop();
92
- }
93
- }
94
- }, _callee2);
95
- }));
96
-
97
- return function (_x2, _x3, _x4) {
98
- return _ref2.apply(this, arguments);
99
- };
100
- }());
101
- (0, _defineProperty2.default)(this, "postForm", /*#__PURE__*/function () {
102
- var _ref3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(path, formData, config) {
103
- return _regenerator.default.wrap(function _callee3$(_context3) {
104
- while (1) {
105
- switch (_context3.prev = _context3.next) {
106
- case 0:
107
- _context3.next = 2;
108
- return _http.requestClient.postForm(path, formData, {
109
- headers: _objectSpread(_objectSpread({}, _this.headers), config === null || config === void 0 ? void 0 : config.headers)
110
- });
111
-
112
- case 2:
113
- return _context3.abrupt("return", _context3.sent);
114
-
115
- case 3:
116
- case "end":
117
- return _context3.stop();
118
- }
119
- }
120
- }, _callee3);
121
- }));
122
-
123
- return function (_x5, _x6, _x7) {
124
- return _ref3.apply(this, arguments);
125
- };
126
- }());
127
- this.getRequestClient().setBaseUrl(baseUrl);
128
- }
129
-
130
- (0, _createClass2.default)(GuardHttp, [{
131
- key: "getRequestClient",
132
- value: function getRequestClient() {
133
- if (!this.requestClient) {
134
- this.requestClient = _http.requestClient;
135
- }
136
-
137
- return this.requestClient;
138
- }
139
- }, {
140
- key: "setUserpoolId",
141
- value: function setUserpoolId(userpoolId) {
142
- this.headers['x-authing-userpool-id'] = userpoolId;
143
- }
144
- }, {
145
- key: "setAppId",
146
- value: function setAppId(appId) {
147
- this.headers['x-authing-app-id'] = appId;
148
- }
149
- }, {
150
- key: "setTenantId",
151
- value: function setTenantId(tenantId) {
152
- this.headers['x-authing-app-tenant-id'] = tenantId;
153
- }
154
- }, {
155
- key: "setBaseUrl",
156
- value: function setBaseUrl(baseUrl) {
157
- this.getRequestClient().setBaseUrl(baseUrl);
158
- }
159
- }]);
160
- return GuardHttp;
161
- }();
162
-
163
- exports.GuardHttp = GuardHttp;
164
-
165
- var initGuardHttp = function initGuardHttp(baseUrl) {
166
- if (!httpClient) {
167
- var guardHttp = new GuardHttp(baseUrl);
168
- httpClient = guardHttp;
169
- }
170
-
171
- return httpClient;
172
- };
173
-
174
- exports.initGuardHttp = initGuardHttp;
175
-
176
- var getGuardHttp = function getGuardHttp() {
177
- if (!httpClient) {
178
- throw new Error('Please initialize Http Client');
179
- }
180
-
181
- return httpClient;
182
- };
183
-
184
- exports.getGuardHttp = getGuardHttp;
185
-
186
- var useGuardHttp = function useGuardHttp() {
187
- return getGuardHttp();
188
- };
189
-
190
- exports.useGuardHttp = useGuardHttp;
@@ -1,4 +0,0 @@
1
- import { GuardModuleType } from '../../Guard/module';
2
- export declare const useChangeModule: () => (nextModuleType: GuardModuleType, nextData?: any) => void;
3
- export declare const useAppId: (appId?: string | undefined) => string;
4
- export declare const useDebounce: (fn: any, delay: number) => (...args: any[]) => void;
@@ -1,76 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.useDebounce = exports.useChangeModule = exports.useAppId = void 0;
7
-
8
- var _react = require("react");
9
-
10
- var _context = require("../../context/module/context");
11
-
12
- var useChangeModule = function useChangeModule() {
13
- var _useModule = (0, _context.useModule)(),
14
- module = _useModule.module,
15
- changeModule = _useModule.changeModule,
16
- setInitData = _useModule.setInitData;
17
-
18
- var nextModule = function nextModule(nextModuleType, nextData) {
19
- if (nextModuleType !== module) changeModule(nextModuleType);
20
- setInitData(nextData !== null && nextData !== void 0 ? nextData : {});
21
- };
22
-
23
- return nextModule;
24
- };
25
-
26
- exports.useChangeModule = useChangeModule;
27
- var thisAppId = '';
28
-
29
- var useAppId = function useAppId(appId) {
30
- if (appId) {
31
- thisAppId = appId;
32
- }
33
-
34
- return thisAppId;
35
- };
36
-
37
- exports.useAppId = useAppId;
38
-
39
- var useDebounce = function useDebounce(fn, delay) {
40
- var timer = (0, _react.useRef)({
41
- time: null
42
- });
43
- var errorBody = (0, _react.useRef)({
44
- body: null
45
- });
46
- (0, _react.useEffect)(function () {
47
- return function () {
48
- // eslint-disable-next-line react-hooks/exhaustive-deps
49
- timer.current.time && clearInterval(timer.current.time);
50
- };
51
- }, []);
52
- return (0, _react.useCallback)(function () {
53
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
54
- args[_key] = arguments[_key];
55
- }
56
-
57
- if (timer.current.time) {
58
- clearTimeout(timer.current.time);
59
- timer.current.time = null;
60
- }
61
-
62
- timer.current.time = setTimeout(function () {
63
- // fn.apply(this, args);
64
- var res = fn.apply(void 0, args);
65
- timer.current.time = null;
66
- errorBody.current.body = res;
67
- }, delay); // if (errorBody.current.body) {
68
- // return Promise.reject(errorBody.current.body)
69
- // } else {
70
- // return Promise.resolve()
71
- // }
72
- }, // eslint-disable-next-line react-hooks/exhaustive-deps
73
- [timer.current, delay]);
74
- };
75
-
76
- exports.useDebounce = useDebounce;
@@ -1,23 +0,0 @@
1
- export declare const requestClient: {
2
- (input: RequestInfo, init?: RequestInit | undefined): Promise<any>;
3
- get<T>(path: string, query?: Record<string, any>, init?: RequestInit | undefined): Promise<AuthingResponse<T>>;
4
- post<T_1>(path: string, data: any, config?: {
5
- headers: any;
6
- } | undefined): Promise<AuthingResponse<T_1>>;
7
- postForm<T_2>(path: string, formData: any, config?: {
8
- headers: any;
9
- } | undefined): Promise<AuthingResponse<T_2>>;
10
- baseUrl: string;
11
- setBaseUrl(base: string): void;
12
- langHeader: string;
13
- tenantHeader: string;
14
- tenantId: string;
15
- setLangHeader(key: string | undefined): void;
16
- setTenantHeader(key: string | undefined): void;
17
- setTenantId(tenantId: string): void;
18
- };
19
- export interface AuthingResponse<T = any> {
20
- code: number;
21
- message?: string;
22
- data?: T;
23
- }