@authing/guard-shim-react 4.5.40-hep.2 → 4.5.40-hep.21

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 (40) hide show
  1. package/dist/guard.min.css +1 -1
  2. package/dist/guard.min.js +4777 -4815
  3. package/dist/typings/src/ChangeLanguage/index.d.ts +2 -2
  4. package/dist/typings/src/CompleteInfo/core/components/TreeSelect.d.ts +1 -1
  5. package/dist/typings/src/CompleteInfo/interface.d.ts +1 -1
  6. package/dist/typings/src/Guard/GuardModule/stateMachine.d.ts +1 -1
  7. package/dist/typings/src/Guard/authClient.d.ts +6 -4
  8. package/dist/typings/src/Guard/core/hooks/useMultipleAccounts.d.ts +21 -21
  9. package/dist/typings/src/Guard/module.d.ts +27 -27
  10. package/dist/typings/src/GuardFactory/index.d.ts +83 -0
  11. package/dist/typings/src/ImagePro/index.d.ts +3 -1
  12. package/dist/typings/src/Invitation/interface.d.ts +1 -1
  13. package/dist/typings/src/Login/core/withAuthingOtpPush/types.d.ts +3 -3
  14. package/dist/typings/src/Login/core/withPassword/GraphicVerifyCode.d.ts +1 -0
  15. package/dist/typings/src/Login/hooks/useLoginMultiple.d.ts +1 -1
  16. package/dist/typings/src/MFA/businessRequest.d.ts +1 -1
  17. package/dist/typings/src/MFA/core/passkey.d.ts +1 -1
  18. package/dist/typings/src/Qrcode/UiQrCode.d.ts +1 -1
  19. package/dist/typings/src/Qrcode/WorkQrCode.d.ts +1 -1
  20. package/dist/typings/src/Qrcode/hooks/useImage.d.ts +1 -1
  21. package/dist/typings/src/Qrcode/hooks/usePreQrCode.d.ts +2 -2
  22. package/dist/typings/src/Qrcode/index.d.ts +2 -2
  23. package/dist/typings/src/SelfUnlock/core/selfUnlock.d.ts +1 -1
  24. package/dist/typings/src/SendCode/SendCodeByPhone.d.ts +2 -0
  25. package/dist/typings/src/TenantPortalSelect/interface.d.ts +1 -1
  26. package/dist/typings/src/Type/application.d.ts +20 -18
  27. package/dist/typings/src/ValidatorRules/PasswordFormItem.d.ts +1 -0
  28. package/dist/typings/src/ValidatorRules/index.d.ts +1 -1
  29. package/dist/typings/src/_utils/config/index.d.ts +1 -1
  30. package/dist/typings/src/_utils/context.d.ts +1 -1
  31. package/dist/typings/src/_utils/countryList.d.ts +2 -0
  32. package/dist/typings/src/_utils/hooks/index.d.ts +4 -0
  33. package/dist/typings/src/_utils/http.d.ts +2 -1
  34. package/dist/typings/src/_utils/index.d.ts +1 -1
  35. package/dist/typings/src/_utils/internationalPhone.d.ts +16 -0
  36. package/dist/typings/src/_utils/locales/index.d.ts +1 -0
  37. package/dist/typings/src/_utils/responseManagement/interface.d.ts +2 -2
  38. package/dist/typings/src/_utils/useSmsCaptcha.d.ts +13 -0
  39. package/dist/typings/src/index.cdn.d.ts +4 -0
  40. package/package.json +1 -1
@@ -5,5 +5,6 @@ export interface InitGuardI18nOptions {
5
5
  defaultLanguage?: Lang | 'browser';
6
6
  }
7
7
  export declare const fallbackLng: (code?: string) => string[];
8
+ export declare const detectGuardLanguage: () => string;
8
9
  export declare const initGuardI18n: (options: InitGuardI18nOptions, callback: React.Dispatch<React.SetStateAction<boolean>>) => Promise<void>;
9
10
  export { i18n };
@@ -23,8 +23,8 @@ export declare enum ApiCode {
23
23
  FLOW_SELECT_ACCOUNT = 2921,
24
24
  SELECT_ACCOUNT_2_LOGIN = 2930,
25
25
  TENANT_PORTAL = 1644,
26
- RESET_ACCOUNT_NAME = 1108,// 用户名重复
27
- INVITE_EXPIRE = 4032,// 链接过期
26
+ RESET_ACCOUNT_NAME = 1108,
27
+ INVITE_EXPIRE = 4032,
28
28
  INVITE_PAGE_EXPIRE = 4033
29
29
  }
30
30
  export declare const ChangeModuleApiCodeMapping: Record<string, GuardModuleType>;
@@ -0,0 +1,13 @@
1
+ interface CaptchaForm {
2
+ setFieldsValue: (values: {
3
+ captchaCode: undefined;
4
+ }) => void;
5
+ }
6
+ export declare const useSmsCaptcha: (enabled: boolean, form: CaptchaForm) => {
7
+ verifyCodeUrl: string;
8
+ loading: boolean;
9
+ refreshCaptcha: () => Promise<void>;
10
+ getCaptchaToken: () => string;
11
+ onSendCodeComplete: (token?: string) => void;
12
+ };
13
+ export {};
@@ -0,0 +1,4 @@
1
+ import { GuardFactory as GuardFactoryClass } from './GuardFactory';
2
+ export { GuardFactoryClass as GuardFactory, GuardFactoryClass as Guard };
3
+ export * from './GuardFactory';
4
+ export default GuardFactoryClass;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@authing/guard-shim-react",
3
- "version": "4.5.40-hep.2",
3
+ "version": "4.5.40-hep.21",
4
4
  "description": "Guard shim for react 16 / 17, only be used to internal",
5
5
  "types": "dist/typings/src/index.d.ts",
6
6
  "module": "dist/guard.min.js",