@redneckz/wildless-cms-uni-blocks 0.14.970 → 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 +8 -6
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +1 -0
- 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/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 +8 -6
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +1 -0
- 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/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/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.tsx +8 -5
- package/mobile/src/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.tsx +1 -0
- package/package.json +1 -1
- package/src/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.tsx +8 -5
- package/src/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.tsx +1 -0
package/bundle/bundle.umd.js
CHANGED
|
@@ -6135,10 +6135,7 @@
|
|
|
6135
6135
|
setTimeNextReq(TIME_TO_RESEND);
|
|
6136
6136
|
restartTimer(TIME_TO_RESEND);
|
|
6137
6137
|
setErrorText('');
|
|
6138
|
-
sessionStore.smsCode =
|
|
6139
|
-
sendTime: Date.now(),
|
|
6140
|
-
attempts: 0,
|
|
6141
|
-
};
|
|
6138
|
+
sessionStore.smsCode = getDefaultSmsCodeParams(phoneNumber);
|
|
6142
6139
|
}
|
|
6143
6140
|
else if (response.status === 429) {
|
|
6144
6141
|
captchaDialog.open({ phoneNumber, sendCode: handleSendCode });
|
|
@@ -6148,12 +6145,17 @@
|
|
|
6148
6145
|
}
|
|
6149
6146
|
}, [phoneNumber, restartTimer]);
|
|
6150
6147
|
useEffect(() => {
|
|
6151
|
-
if (!sessionStore.smsCode?.sendTime) {
|
|
6148
|
+
if (!sessionStore.smsCode?.sendTime || sessionStore.smsCode?.phoneNumber !== phoneNumber) {
|
|
6152
6149
|
handleSendCode();
|
|
6153
6150
|
}
|
|
6154
6151
|
}, []);
|
|
6155
6152
|
return (jsx(VerifyPhoneDialogLayout, { isSubmitButtonDisabled: isSubmitButtonDisabled, onSubmit: handleSubmit, onSendCode: handleSendCode, timeNextReq: timeNextReq, values: values, onChange: setValues, phone: phone, isLoading: isLoading, errorText: errorText, hasError: hasError, onClose: onClose, children: renderDescription$2(consents, withDescription) }));
|
|
6156
6153
|
});
|
|
6154
|
+
const getDefaultSmsCodeParams = (phoneNumber) => ({
|
|
6155
|
+
sendTime: Date.now(),
|
|
6156
|
+
attempts: 0,
|
|
6157
|
+
phoneNumber: phoneNumber,
|
|
6158
|
+
});
|
|
6157
6159
|
const renderDescription$2 = (consents, isRender = false) => isRender ? (jsxs(RichText, { itemSize: "list-s", children: [jsx("span", { children: "\u0412\u0432\u043E\u0434\u044F \u043A\u043E\u0434, \u044F \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u044E, \u0447\u0442\u043E \u043E\u0437\u043D\u0430\u043A\u043E\u043C\u043B\u0435\u043D \u0438 \u043F\u043E\u0434\u043F\u0438\u0441\u044B\u0432\u0430\u044E: " }), jsx("ul", { children: consents?.map((_, i) => (jsx("li", { children: _ }, `${_}-${i}`))) })] })) : null;
|
|
6158
6160
|
|
|
6159
6161
|
const defaultConsentText = {
|
|
@@ -13057,7 +13059,7 @@
|
|
|
13057
13059
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
13058
13060
|
});
|
|
13059
13061
|
|
|
13060
|
-
const packageVersion = "0.14.
|
|
13062
|
+
const packageVersion = "0.14.970";
|
|
13061
13063
|
|
|
13062
13064
|
exports.Blocks = Blocks;
|
|
13063
13065
|
exports.ContentPage = ContentPage;
|