@redneckz/wildless-cms-uni-blocks 0.14.296 → 0.14.298
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/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +6 -6
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +7 -2
- package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -1
- package/bundle/hooks/useAspects/handleAspects.d.ts +1 -3
- package/bundle/model/LinkProps.d.ts +2 -2
- package/dist/api/LeadServiceAPI.js +2 -1
- package/dist/api/LeadServiceAPI.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationForm.js +1 -1
- package/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +7 -2
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -1
- package/dist/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -1
- package/dist/hooks/useAspects/handleAspects.d.ts +1 -3
- package/dist/hooks/useAspects/handleAspects.js +2 -3
- package/dist/hooks/useAspects/handleAspects.js.map +1 -1
- package/dist/model/LinkProps.d.ts +2 -2
- package/lib/api/LeadServiceAPI.js +2 -1
- package/lib/api/LeadServiceAPI.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationForm.js +1 -1
- package/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +7 -2
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -1
- package/lib/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -1
- package/lib/hooks/useAspects/handleAspects.d.ts +1 -3
- package/lib/hooks/useAspects/handleAspects.js +2 -3
- package/lib/hooks/useAspects/handleAspects.js.map +1 -1
- package/lib/model/LinkProps.d.ts +2 -2
- package/mobile/bundle/bundle.umd.js +6 -6
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +7 -2
- package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -1
- package/mobile/bundle/hooks/useAspects/handleAspects.d.ts +1 -3
- package/mobile/bundle/model/LinkProps.d.ts +2 -2
- package/mobile/dist/api/LeadServiceAPI.js +2 -1
- package/mobile/dist/api/LeadServiceAPI.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +7 -2
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -1
- package/mobile/dist/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -1
- package/mobile/dist/hooks/useAspects/handleAspects.d.ts +1 -3
- package/mobile/dist/hooks/useAspects/handleAspects.js +2 -3
- package/mobile/dist/hooks/useAspects/handleAspects.js.map +1 -1
- package/mobile/dist/model/LinkProps.d.ts +2 -2
- package/mobile/lib/api/LeadServiceAPI.js +2 -1
- package/mobile/lib/api/LeadServiceAPI.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +7 -2
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -1
- package/mobile/lib/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -1
- package/mobile/lib/hooks/useAspects/handleAspects.d.ts +1 -3
- package/mobile/lib/hooks/useAspects/handleAspects.js +2 -3
- package/mobile/lib/hooks/useAspects/handleAspects.js.map +1 -1
- package/mobile/lib/model/LinkProps.d.ts +2 -2
- package/mobile/src/api/LeadServiceAPI.ts +3 -1
- package/mobile/src/components/ApplicationForm/ApplicationForm.example.json +4 -2
- package/mobile/src/components/ApplicationForm/ApplicationForm.tsx +1 -1
- package/mobile/src/components/ApplicationForm/ApplicationForm.ui.json +1 -1
- package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +7 -2
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +2 -0
- package/mobile/src/components/StickyBottomMenu/BurgerMenuDialog.tsx +2 -2
- package/mobile/src/hooks/useAspects/handleAspects.ts +2 -6
- package/mobile/src/model/LinkProps.ts +2 -2
- package/package.json +1 -1
- package/src/api/LeadServiceAPI.ts +3 -1
- package/src/components/ApplicationForm/ApplicationForm.example.json +4 -2
- package/src/components/ApplicationForm/ApplicationForm.tsx +1 -1
- package/src/components/ApplicationForm/ApplicationForm.ui.json +1 -1
- package/src/components/ApplicationForm/ApplicationFormContent.ts +7 -2
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +2 -0
- package/src/components/StickyBottomMenu/BurgerMenuDialog.tsx +2 -2
- package/src/hooks/useAspects/handleAspects.ts +2 -6
- package/src/model/LinkProps.ts +2 -2
package/bundle/bundle.umd.js
CHANGED
|
@@ -851,7 +851,7 @@
|
|
|
851
851
|
...getRegion$1(region, isNaturalPerson),
|
|
852
852
|
...getEmail(email, isNaturalPerson),
|
|
853
853
|
...getPhone(phone),
|
|
854
|
-
...(isNaturalPerson ?
|
|
854
|
+
...(isNaturalPerson ? getBirthday(birthday) : { inn, fullName }),
|
|
855
855
|
...(typeForm === 'FEEDBACK'
|
|
856
856
|
? {}
|
|
857
857
|
: {
|
|
@@ -884,6 +884,7 @@
|
|
|
884
884
|
};
|
|
885
885
|
}
|
|
886
886
|
const getPhone = (phone) => (phone ? { phone: formatPhone(phone) } : {});
|
|
887
|
+
const getBirthday = (birthday) => (birthday ? { birthday: formatDate(birthday) } : {});
|
|
887
888
|
const getRegion$1 = (region, isNaturalPerson = true) => ({
|
|
888
889
|
[isNaturalPerson ? 'regionBranch' : 'region']: region,
|
|
889
890
|
});
|
|
@@ -896,10 +897,9 @@
|
|
|
896
897
|
: { secondaryPhoneNumber: formatPhone(secondaryPhone) };
|
|
897
898
|
};
|
|
898
899
|
|
|
899
|
-
const handleAspects = ({ aspectsAttributes, aspects, ev
|
|
900
|
+
const handleAspects = ({ aspectsAttributes, aspects, ev }) => {
|
|
900
901
|
for (const { aspectName, params } of aspectsAttributes) {
|
|
901
|
-
|
|
902
|
-
aspects[aspectName ?? '']?.(ev, paramsData);
|
|
902
|
+
aspects[aspectName ?? '']?.(ev, params);
|
|
903
903
|
}
|
|
904
904
|
};
|
|
905
905
|
|
|
@@ -1869,7 +1869,7 @@
|
|
|
1869
1869
|
setResponseType(status);
|
|
1870
1870
|
if (status === 'OK' && data) {
|
|
1871
1871
|
const aspects = useAspects();
|
|
1872
|
-
handleAspects({ aspectsAttributes: data, aspects, ev
|
|
1872
|
+
handleAspects({ aspectsAttributes: data, aspects, ev });
|
|
1873
1873
|
}
|
|
1874
1874
|
return status;
|
|
1875
1875
|
}, []);
|
|
@@ -6202,7 +6202,7 @@
|
|
|
6202
6202
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
6203
6203
|
});
|
|
6204
6204
|
|
|
6205
|
-
const packageVersion = "0.14.
|
|
6205
|
+
const packageVersion = "0.14.297";
|
|
6206
6206
|
|
|
6207
6207
|
exports.Blocks = Blocks;
|
|
6208
6208
|
exports.ContentPage = ContentPage;
|