@insforge/react 0.5.8 → 0.5.10

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.
@@ -1,6 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { UserSchema } from '@insforge/sdk';
3
- import * as react from 'react';
4
3
  import { ReactNode } from 'react';
5
4
  import { InsforgeUser } from './types.cjs';
6
5
  export { ForgotPasswordForm, ForgotPasswordFormProps, ResetPasswordForm, ResetPasswordFormProps, SignInForm, SignInFormProps, SignUpForm, SignUpFormProps, VerifyEmailStatus, VerifyEmailStatusProps } from './forms.cjs';
@@ -215,7 +214,7 @@ interface ProtectProps {
215
214
  * @param {function} [condition] - Custom access condition
216
215
  * @param {function} [onRedirect] - Custom redirect handler (default: window.location)
217
216
  */
218
- declare function Protect({ children, fallback, redirectTo, condition, onRedirect, }: ProtectProps): string | number | bigint | true | Iterable<ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | react_jsx_runtime.JSX.Element | null;
217
+ declare function Protect({ children, fallback, redirectTo, condition, onRedirect, }: ProtectProps): ReactNode;
219
218
 
220
219
  interface ConditionalProps$1 {
221
220
  children: ReactNode;
@@ -1,6 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { UserSchema } from '@insforge/sdk';
3
- import * as react from 'react';
4
3
  import { ReactNode } from 'react';
5
4
  import { InsforgeUser } from './types.js';
6
5
  export { ForgotPasswordForm, ForgotPasswordFormProps, ResetPasswordForm, ResetPasswordFormProps, SignInForm, SignInFormProps, SignUpForm, SignUpFormProps, VerifyEmailStatus, VerifyEmailStatusProps } from './forms.js';
@@ -215,7 +214,7 @@ interface ProtectProps {
215
214
  * @param {function} [condition] - Custom access condition
216
215
  * @param {function} [onRedirect] - Custom redirect handler (default: window.location)
217
216
  */
218
- declare function Protect({ children, fallback, redirectTo, condition, onRedirect, }: ProtectProps): string | number | bigint | true | Iterable<ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | react_jsx_runtime.JSX.Element | null;
217
+ declare function Protect({ children, fallback, redirectTo, condition, onRedirect, }: ProtectProps): ReactNode;
219
218
 
220
219
  interface ConditionalProps$1 {
221
220
  children: ReactNode;
@@ -680,7 +680,7 @@ function AuthEmailVerificationStep({
680
680
  emailSent = false
681
681
  }) {
682
682
  const { sendVerificationEmail } = useInsforge();
683
- const [resendDisabled, setResendDisabled] = useState(true);
683
+ const [resendDisabled, setResendDisabled] = useState(emailSent ? true : false);
684
684
  const [resendCountdown, setResendCountdown] = useState(emailSent ? 60 : 0);
685
685
  const [isSending, setIsSending] = useState(false);
686
686
  const [verificationCode, setVerificationCode] = useState("");