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