@redneckz/wildless-cms-uni-blocks 0.14.580 → 0.14.581
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 -3
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/hooks/useLeadFormData.d.ts +4 -1
- package/dist/hooks/useLeadFormData.d.ts +4 -1
- package/dist/hooks/useLeadFormData.js +4 -1
- package/dist/hooks/useLeadFormData.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/DesiredMeetingDateField.js +1 -1
- package/dist/ui-kit/FormField/Fields/DesiredMeetingDateField.js.map +1 -1
- package/lib/hooks/useLeadFormData.d.ts +4 -1
- package/lib/hooks/useLeadFormData.js +4 -1
- package/lib/hooks/useLeadFormData.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/DesiredMeetingDateField.js +1 -1
- package/lib/ui-kit/FormField/Fields/DesiredMeetingDateField.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +6 -3
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/hooks/useLeadFormData.d.ts +4 -1
- package/mobile/dist/hooks/useLeadFormData.d.ts +4 -1
- package/mobile/dist/hooks/useLeadFormData.js +4 -1
- package/mobile/dist/hooks/useLeadFormData.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/DesiredMeetingDateField.js +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/DesiredMeetingDateField.js.map +1 -1
- package/mobile/lib/hooks/useLeadFormData.d.ts +4 -1
- package/mobile/lib/hooks/useLeadFormData.js +4 -1
- package/mobile/lib/hooks/useLeadFormData.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/DesiredMeetingDateField.js +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/DesiredMeetingDateField.js.map +1 -1
- package/mobile/src/hooks/useLeadFormData.ts +10 -3
- package/mobile/src/ui-kit/FormField/Fields/DesiredMeetingDateField.tsx +2 -2
- package/package.json +1 -1
- package/src/hooks/useLeadFormData.ts +10 -3
- package/src/ui-kit/FormField/Fields/DesiredMeetingDateField.tsx +2 -2
package/bundle/bundle.umd.js
CHANGED
|
@@ -1677,7 +1677,10 @@
|
|
|
1677
1677
|
|
|
1678
1678
|
const useLeadFormData = (typeField) => {
|
|
1679
1679
|
const { data, error } = useAsyncData(`https://portal-ui-cc.cprb.dev.rshbdev.ru/light-api-cash/v1/dictionary?dictionaryType=${typeField}`, fetchData);
|
|
1680
|
-
|
|
1680
|
+
if (data && 'errorMessage' in data) {
|
|
1681
|
+
return { error };
|
|
1682
|
+
}
|
|
1683
|
+
return { data: data, error };
|
|
1681
1684
|
};
|
|
1682
1685
|
const fetchData = async (url) => {
|
|
1683
1686
|
const result = await fetchJSON(url, { method: 'POST' });
|
|
@@ -1863,7 +1866,7 @@
|
|
|
1863
1866
|
|
|
1864
1867
|
const ConsentToReceiveMaterialsField = JSX(({ field, input }) => (jsx(CheckboxWithError, { text: "\u0421\u043E\u0433\u043B\u0430\u0441\u0435\u043D \u043D\u0430 \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u0438\u0435 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u043E\u043D\u043D\u044B\u0445 \u0438 \u0430\u043D\u0430\u043B\u0438\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0445 \u043C\u0430\u0442\u0435\u0440\u0438\u0430\u043B\u043E\u0432 \u043F\u043E \u044D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0439 \u043F\u043E\u0447\u0442\u0435", ...getValidation(field('consentToReceiveMaterials'), validatorObj.consentToReceiveMaterials, input?.required) })));
|
|
1865
1868
|
|
|
1866
|
-
const DesiredMeetingDateField = JSX(({ field, input }) => (jsx(DatePickerControl, { label: "\
|
|
1869
|
+
const DesiredMeetingDateField = JSX(({ field, input }) => (jsx(DatePickerControl, { label: "\u0416\u0435\u043B\u0430\u0435\u043C\u0430\u044F \u0434\u0430\u0442\u0430 \u0432\u0441\u0442\u0440\u0435\u0447\u0438", ...getValidation(field('desiredMeetingDate'), validatorObj.meetingDay, input?.required) })));
|
|
1867
1870
|
|
|
1868
1871
|
const EducationField = JSX(({ field, input }) => {
|
|
1869
1872
|
const { data: education } = useLeadFormData('EDUCATION_LEVEL');
|
|
@@ -6941,7 +6944,7 @@
|
|
|
6941
6944
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
6942
6945
|
});
|
|
6943
6946
|
|
|
6944
|
-
const packageVersion = "0.14.
|
|
6947
|
+
const packageVersion = "0.14.580";
|
|
6945
6948
|
|
|
6946
6949
|
exports.Blocks = Blocks;
|
|
6947
6950
|
exports.ContentPage = ContentPage;
|