@redneckz/wildless-cms-uni-blocks 0.14.928 → 0.14.929
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 +6 -5
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +1 -1
- package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +1 -1
- package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +1 -1
- package/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.js +3 -2
- package/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
- package/dist/retail/validator/validators.js +1 -1
- package/dist/retail/validator/validators.js.map +1 -1
- package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +1 -1
- package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +1 -1
- package/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.js +3 -2
- package/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
- package/lib/retail/validator/validators.js +1 -1
- package/lib/retail/validator/validators.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +6 -5
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +1 -1
- package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +1 -1
- package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/mobile/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +1 -1
- package/mobile/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.js +3 -2
- package/mobile/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
- package/mobile/dist/retail/validator/validators.js +1 -1
- package/mobile/dist/retail/validator/validators.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/mobile/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +1 -1
- package/mobile/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.js +3 -2
- package/mobile/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
- package/mobile/lib/retail/validator/validators.js +1 -1
- package/mobile/lib/retail/validator/validators.js.map +1 -1
- package/mobile/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +1 -1
- package/mobile/src/retail/components/ConsentBkiDialog/useConsentBkiDialog.tsx +4 -3
- package/mobile/src/retail/validator/validators.ts +1 -1
- package/package.json +1 -1
- package/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +1 -1
- package/src/retail/components/ConsentBkiDialog/useConsentBkiDialog.tsx +4 -3
- package/src/retail/validator/validators.ts +1 -1
package/bundle/bundle.umd.js
CHANGED
|
@@ -3229,7 +3229,7 @@
|
|
|
3229
3229
|
|
|
3230
3230
|
const ERROR_MESSAGE = 'Некорректно заполненное поле';
|
|
3231
3231
|
const ADDRESS_ERROR_MESSAGE = 'Укажите регион, город/населенный пункт, улицу, дом';
|
|
3232
|
-
const codeWordPattern = /^[0-9
|
|
3232
|
+
const codeWordPattern = /^[0-9а-яё]*$/i;
|
|
3233
3233
|
const retailCyrillicPattern = /^[\u0400-\u04FF-\s]+$/u;
|
|
3234
3234
|
const retailNotCyrillicPattern = /^(?!\s*$)[^\p{Script=Cyrillic}]+$/u;
|
|
3235
3235
|
const addressDaDataValidate = (address) => Boolean(address.region && (address.city || address.locality) && address.house);
|
|
@@ -5939,12 +5939,13 @@
|
|
|
5939
5939
|
console.log(ex);
|
|
5940
5940
|
}
|
|
5941
5941
|
};
|
|
5942
|
-
const handleSubmitBkiConstent = (phone, profileId) => async (confirmStatus) => {
|
|
5942
|
+
const handleSubmitBkiConstent = (phone, profileId, onFail) => async (confirmStatus) => {
|
|
5943
5943
|
if (confirmStatus === 'SIGNED' && phone) {
|
|
5944
5944
|
verifyPhoneDialog.open({
|
|
5945
5945
|
phone,
|
|
5946
5946
|
consents: ['согласие на запрос информации в БКИ'],
|
|
5947
5947
|
onSuccess: handleSuccessVerify(profileId),
|
|
5948
|
+
onFail,
|
|
5948
5949
|
});
|
|
5949
5950
|
}
|
|
5950
5951
|
else {
|
|
@@ -5952,7 +5953,7 @@
|
|
|
5952
5953
|
}
|
|
5953
5954
|
};
|
|
5954
5955
|
return {
|
|
5955
|
-
open: (phone, profileId) => open({ onSubmit: handleSubmitBkiConstent(phone, profileId), onClose }),
|
|
5956
|
+
open: (phone, profileId, onFail) => open({ onSubmit: handleSubmitBkiConstent(phone, profileId, onFail), onClose }),
|
|
5956
5957
|
};
|
|
5957
5958
|
};
|
|
5958
5959
|
|
|
@@ -6450,7 +6451,7 @@
|
|
|
6450
6451
|
goToNextStep();
|
|
6451
6452
|
}
|
|
6452
6453
|
else {
|
|
6453
|
-
consentBkiDialog.open(transformedFormData.phone, profileId);
|
|
6454
|
+
consentBkiDialog.open(transformedFormData.phone, profileId, handleFailSendForm);
|
|
6454
6455
|
}
|
|
6455
6456
|
};
|
|
6456
6457
|
const handleSuccessVerify = async () => {
|
|
@@ -12213,7 +12214,7 @@
|
|
|
12213
12214
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
12214
12215
|
});
|
|
12215
12216
|
|
|
12216
|
-
const packageVersion = "0.14.
|
|
12217
|
+
const packageVersion = "0.14.928";
|
|
12217
12218
|
|
|
12218
12219
|
exports.Blocks = Blocks;
|
|
12219
12220
|
exports.ContentPage = ContentPage;
|