@authing/guard-shim-react 4.5.40-hep.20 → 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.
@@ -12,4 +12,6 @@ export interface ImageProProps extends React.ImgHTMLAttributes<HTMLImageElement>
12
12
  noSpin?: boolean;
13
13
  }
14
14
  export declare const ImagePro: (props: ImageProProps) => JSX.Element;
15
- export declare const ImagePro2: (props: ImageProProps) => JSX.Element;
15
+ export declare const ImagePro2: (props: ImageProProps & {
16
+ imageLoading?: boolean | undefined;
17
+ }) => JSX.Element;
@@ -3,5 +3,6 @@ import { React } from 'shim-react';
3
3
  export interface GraphicVerifyCodeProps extends InputProps {
4
4
  verifyCodeUrl: string;
5
5
  changeCode: () => void;
6
+ loading?: boolean;
6
7
  }
7
8
  export declare const GraphicVerifyCode: React.FC<GraphicVerifyCodeProps>;
@@ -13,5 +13,7 @@ export interface SendCodeByPhoneProps extends InputProps {
13
13
  isInternationSms?: boolean;
14
14
  codeFieldName?: string;
15
15
  captchaCode?: string;
16
+ getCaptchaToken?: () => string;
17
+ onSendCodeComplete?: (captchaToken?: string) => void;
16
18
  }
17
19
  export declare const SendCodeByPhone: React.FC<SendCodeByPhoneProps>;
@@ -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 {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@authing/guard-shim-react",
3
- "version": "4.5.40-hep.20",
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",