@swype-org/react-sdk 0.1.52 → 0.1.53

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/index.js CHANGED
@@ -1905,8 +1905,7 @@ var inputStyle = (tokens, filled) => ({
1905
1905
  textAlign: "center",
1906
1906
  outline: "none",
1907
1907
  caretColor: tokens.borderFocus,
1908
- transition: "border-color 0.15s ease",
1909
- flexShrink: 0
1908
+ transition: "border-color 0.15s ease"
1910
1909
  });
1911
1910
  function LimitSlider({
1912
1911
  value,
@@ -4227,6 +4226,11 @@ function SwypePaymentInner({
4227
4226
  setError(err instanceof Error ? err.message : "Failed to verify code");
4228
4227
  }
4229
4228
  }, [verificationTarget, otpCode, loginWithEmailCode, loginWithSmsCode]);
4229
+ useEffect(() => {
4230
+ if (step === "otp-verify" && /^\d{6}$/.test(otpCode.trim()) && activeOtpStatus !== "submitting-code") {
4231
+ handleVerifyLoginCode();
4232
+ }
4233
+ }, [otpCode, step, activeOtpStatus, handleVerifyLoginCode]);
4230
4234
  const handleResendLoginCode = useCallback(async () => {
4231
4235
  if (!verificationTarget) return;
4232
4236
  setError(null);