@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.
Files changed (41) hide show
  1. package/bundle/bundle.umd.js +6 -5
  2. package/bundle/bundle.umd.min.js +1 -1
  3. package/bundle/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +1 -1
  4. package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +1 -1
  5. package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  6. package/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +1 -1
  7. package/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.js +3 -2
  8. package/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
  9. package/dist/retail/validator/validators.js +1 -1
  10. package/dist/retail/validator/validators.js.map +1 -1
  11. package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +1 -1
  12. package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  13. package/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +1 -1
  14. package/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.js +3 -2
  15. package/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
  16. package/lib/retail/validator/validators.js +1 -1
  17. package/lib/retail/validator/validators.js.map +1 -1
  18. package/mobile/bundle/bundle.umd.js +6 -5
  19. package/mobile/bundle/bundle.umd.min.js +1 -1
  20. package/mobile/bundle/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +1 -1
  21. package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +1 -1
  22. package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  23. package/mobile/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +1 -1
  24. package/mobile/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.js +3 -2
  25. package/mobile/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
  26. package/mobile/dist/retail/validator/validators.js +1 -1
  27. package/mobile/dist/retail/validator/validators.js.map +1 -1
  28. package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +1 -1
  29. package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  30. package/mobile/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +1 -1
  31. package/mobile/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.js +3 -2
  32. package/mobile/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
  33. package/mobile/lib/retail/validator/validators.js +1 -1
  34. package/mobile/lib/retail/validator/validators.js.map +1 -1
  35. package/mobile/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +1 -1
  36. package/mobile/src/retail/components/ConsentBkiDialog/useConsentBkiDialog.tsx +4 -3
  37. package/mobile/src/retail/validator/validators.ts +1 -1
  38. package/package.json +1 -1
  39. package/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +1 -1
  40. package/src/retail/components/ConsentBkiDialog/useConsentBkiDialog.tsx +4 -3
  41. package/src/retail/validator/validators.ts +1 -1
@@ -3229,7 +3229,7 @@
3229
3229
 
3230
3230
  const ERROR_MESSAGE = 'Некорректно заполненное поле';
3231
3231
  const ADDRESS_ERROR_MESSAGE = 'Укажите регион, город/населенный пункт, улицу, дом';
3232
- const codeWordPattern = /^[0-9\u0400-\u04FF-\s]+$/u;
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.927";
12217
+ const packageVersion = "0.14.928";
12217
12218
 
12218
12219
  exports.Blocks = Blocks;
12219
12220
  exports.ContentPage = ContentPage;