@redneckz/wildless-cms-uni-blocks 0.14.969 → 0.14.971
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/bundle/bundle.umd.js +16 -8
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/retail/components/NoConsentDialog/NoConsentDialog.d.ts +2 -0
- package/bundle/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +1 -0
- package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +1 -0
- package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/dist/retail/components/NoConsentDialog/NoConsentDialog.d.ts +2 -0
- package/dist/retail/components/NoConsentDialog/NoConsentDialog.js +7 -2
- package/dist/retail/components/NoConsentDialog/NoConsentDialog.js.map +1 -1
- package/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +7 -5
- package/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/dist/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +1 -0
- package/dist/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +1 -1
- package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +1 -0
- package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/lib/retail/components/NoConsentDialog/NoConsentDialog.d.ts +2 -0
- package/lib/retail/components/NoConsentDialog/NoConsentDialog.js +7 -2
- package/lib/retail/components/NoConsentDialog/NoConsentDialog.js.map +1 -1
- package/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +7 -5
- package/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/lib/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +1 -0
- package/lib/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +16 -8
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/retail/components/NoConsentDialog/NoConsentDialog.d.ts +2 -0
- package/mobile/bundle/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +1 -0
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +1 -0
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/mobile/dist/retail/components/NoConsentDialog/NoConsentDialog.d.ts +2 -0
- package/mobile/dist/retail/components/NoConsentDialog/NoConsentDialog.js +7 -2
- package/mobile/dist/retail/components/NoConsentDialog/NoConsentDialog.js.map +1 -1
- package/mobile/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +7 -5
- package/mobile/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/mobile/dist/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +1 -0
- package/mobile/dist/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +1 -0
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/mobile/lib/retail/components/NoConsentDialog/NoConsentDialog.d.ts +2 -0
- package/mobile/lib/retail/components/NoConsentDialog/NoConsentDialog.js +7 -2
- package/mobile/lib/retail/components/NoConsentDialog/NoConsentDialog.js.map +1 -1
- package/mobile/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +7 -5
- package/mobile/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/mobile/lib/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +1 -0
- package/mobile/lib/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +1 -1
- package/mobile/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +1 -0
- package/mobile/src/retail/components/NoConsentDialog/NoConsentDialog.tsx +42 -32
- package/mobile/src/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.tsx +8 -5
- package/mobile/src/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.tsx +1 -0
- package/package.json +1 -1
- package/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +1 -0
- package/src/retail/components/NoConsentDialog/NoConsentDialog.fixture.tsx +1 -1
- package/src/retail/components/NoConsentDialog/NoConsentDialog.tsx +42 -32
- package/src/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.tsx +8 -5
- package/src/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.tsx +1 -0
|
@@ -68,10 +68,7 @@ export const VerifyPhoneDialog = JSX<VerifyPhoneDialogProps>(
|
|
|
68
68
|
setTimeNextReq(TIME_TO_RESEND);
|
|
69
69
|
restartTimer(TIME_TO_RESEND);
|
|
70
70
|
setErrorText('');
|
|
71
|
-
sessionStore.smsCode =
|
|
72
|
-
sendTime: Date.now(),
|
|
73
|
-
attempts: 0,
|
|
74
|
-
};
|
|
71
|
+
sessionStore.smsCode = getDefaultSmsCodeParams(phoneNumber);
|
|
75
72
|
} else if (response.status === 429) {
|
|
76
73
|
captchaDialog.open({ phoneNumber, sendCode: handleSendCode });
|
|
77
74
|
} else {
|
|
@@ -80,7 +77,7 @@ export const VerifyPhoneDialog = JSX<VerifyPhoneDialogProps>(
|
|
|
80
77
|
}, [phoneNumber, restartTimer]);
|
|
81
78
|
|
|
82
79
|
useEffect(() => {
|
|
83
|
-
if (!sessionStore.smsCode?.sendTime) {
|
|
80
|
+
if (!sessionStore.smsCode?.sendTime || sessionStore.smsCode?.phoneNumber !== phoneNumber) {
|
|
84
81
|
handleSendCode();
|
|
85
82
|
}
|
|
86
83
|
}, []);
|
|
@@ -105,6 +102,12 @@ export const VerifyPhoneDialog = JSX<VerifyPhoneDialogProps>(
|
|
|
105
102
|
},
|
|
106
103
|
);
|
|
107
104
|
|
|
105
|
+
const getDefaultSmsCodeParams = (phoneNumber: string) => ({
|
|
106
|
+
sendTime: Date.now(),
|
|
107
|
+
attempts: 0,
|
|
108
|
+
phoneNumber: phoneNumber,
|
|
109
|
+
});
|
|
110
|
+
|
|
108
111
|
const renderDescription = (consents?: string[], isRender = false) =>
|
|
109
112
|
isRender ? (
|
|
110
113
|
<RichText itemSize="list-s">
|