@insforge/react 0.5.10 → 0.6.0
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.
- package/dist/atoms.cjs +3 -2
- package/dist/atoms.cjs.map +1 -1
- package/dist/atoms.js +3 -2
- package/dist/atoms.js.map +1 -1
- package/dist/components.cjs +3 -2
- package/dist/components.cjs.map +1 -1
- package/dist/components.js +3 -2
- package/dist/components.js.map +1 -1
- package/dist/forms.cjs +3 -2
- package/dist/forms.cjs.map +1 -1
- package/dist/forms.js +3 -2
- package/dist/forms.js.map +1 -1
- package/dist/hooks.cjs +2 -1
- package/dist/hooks.cjs.map +1 -1
- package/dist/hooks.js +2 -1
- package/dist/hooks.js.map +1 -1
- package/dist/index.cjs +376 -292
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -4
- package/dist/index.d.ts +8 -4
- package/dist/index.js +377 -293
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/components.js
CHANGED
|
@@ -23,6 +23,7 @@ function useSearchParams() {
|
|
|
23
23
|
return adapter.useSearchParams();
|
|
24
24
|
}
|
|
25
25
|
var InsforgeContext = createContext(void 0);
|
|
26
|
+
InsforgeContext.displayName = "InsforgeContext";
|
|
26
27
|
function useInsforge() {
|
|
27
28
|
const context = useContext(InsforgeContext);
|
|
28
29
|
if (!context) {
|
|
@@ -688,7 +689,7 @@ function AuthEmailVerificationStep({
|
|
|
688
689
|
const isLinkMethod = method === "link";
|
|
689
690
|
const displayDescription = isLinkMethod ? "We've sent an email to {email}. Please check your email to confirm your account before signing in. The confirmation link expires in 10 minutes." : "We've sent a verification code to your inbox at {email}. Enter it below to proceed.";
|
|
690
691
|
useEffect(() => {
|
|
691
|
-
if (
|
|
692
|
+
if (resendDisabled && resendCountdown > 0) {
|
|
692
693
|
const timer = setInterval(() => {
|
|
693
694
|
setResendCountdown((prev) => {
|
|
694
695
|
if (prev <= 1) {
|
|
@@ -700,7 +701,7 @@ function AuthEmailVerificationStep({
|
|
|
700
701
|
}, 1e3);
|
|
701
702
|
return () => clearInterval(timer);
|
|
702
703
|
}
|
|
703
|
-
}, [
|
|
704
|
+
}, [resendDisabled, resendCountdown]);
|
|
704
705
|
const handleResend = async () => {
|
|
705
706
|
setResendDisabled(true);
|
|
706
707
|
setResendCountdown(60);
|