@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.
Files changed (76) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +6 -6
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +7 -2
  5. package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -1
  6. package/bundle/hooks/useAspects/handleAspects.d.ts +1 -3
  7. package/bundle/model/LinkProps.d.ts +2 -2
  8. package/dist/api/LeadServiceAPI.js +2 -1
  9. package/dist/api/LeadServiceAPI.js.map +1 -1
  10. package/dist/components/ApplicationForm/ApplicationForm.js +1 -1
  11. package/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
  12. package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +7 -2
  13. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -1
  14. package/dist/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -1
  15. package/dist/hooks/useAspects/handleAspects.d.ts +1 -3
  16. package/dist/hooks/useAspects/handleAspects.js +2 -3
  17. package/dist/hooks/useAspects/handleAspects.js.map +1 -1
  18. package/dist/model/LinkProps.d.ts +2 -2
  19. package/lib/api/LeadServiceAPI.js +2 -1
  20. package/lib/api/LeadServiceAPI.js.map +1 -1
  21. package/lib/components/ApplicationForm/ApplicationForm.js +1 -1
  22. package/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
  23. package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +7 -2
  24. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -1
  25. package/lib/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -1
  26. package/lib/hooks/useAspects/handleAspects.d.ts +1 -3
  27. package/lib/hooks/useAspects/handleAspects.js +2 -3
  28. package/lib/hooks/useAspects/handleAspects.js.map +1 -1
  29. package/lib/model/LinkProps.d.ts +2 -2
  30. package/mobile/bundle/bundle.umd.js +6 -6
  31. package/mobile/bundle/bundle.umd.min.js +1 -1
  32. package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +7 -2
  33. package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -1
  34. package/mobile/bundle/hooks/useAspects/handleAspects.d.ts +1 -3
  35. package/mobile/bundle/model/LinkProps.d.ts +2 -2
  36. package/mobile/dist/api/LeadServiceAPI.js +2 -1
  37. package/mobile/dist/api/LeadServiceAPI.js.map +1 -1
  38. package/mobile/dist/components/ApplicationForm/ApplicationForm.js +1 -1
  39. package/mobile/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
  40. package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +7 -2
  41. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -1
  42. package/mobile/dist/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -1
  43. package/mobile/dist/hooks/useAspects/handleAspects.d.ts +1 -3
  44. package/mobile/dist/hooks/useAspects/handleAspects.js +2 -3
  45. package/mobile/dist/hooks/useAspects/handleAspects.js.map +1 -1
  46. package/mobile/dist/model/LinkProps.d.ts +2 -2
  47. package/mobile/lib/api/LeadServiceAPI.js +2 -1
  48. package/mobile/lib/api/LeadServiceAPI.js.map +1 -1
  49. package/mobile/lib/components/ApplicationForm/ApplicationForm.js +1 -1
  50. package/mobile/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
  51. package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +7 -2
  52. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -1
  53. package/mobile/lib/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -1
  54. package/mobile/lib/hooks/useAspects/handleAspects.d.ts +1 -3
  55. package/mobile/lib/hooks/useAspects/handleAspects.js +2 -3
  56. package/mobile/lib/hooks/useAspects/handleAspects.js.map +1 -1
  57. package/mobile/lib/model/LinkProps.d.ts +2 -2
  58. package/mobile/src/api/LeadServiceAPI.ts +3 -1
  59. package/mobile/src/components/ApplicationForm/ApplicationForm.example.json +4 -2
  60. package/mobile/src/components/ApplicationForm/ApplicationForm.tsx +1 -1
  61. package/mobile/src/components/ApplicationForm/ApplicationForm.ui.json +1 -1
  62. package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +7 -2
  63. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +2 -0
  64. package/mobile/src/components/StickyBottomMenu/BurgerMenuDialog.tsx +2 -2
  65. package/mobile/src/hooks/useAspects/handleAspects.ts +2 -6
  66. package/mobile/src/model/LinkProps.ts +2 -2
  67. package/package.json +1 -1
  68. package/src/api/LeadServiceAPI.ts +3 -1
  69. package/src/components/ApplicationForm/ApplicationForm.example.json +4 -2
  70. package/src/components/ApplicationForm/ApplicationForm.tsx +1 -1
  71. package/src/components/ApplicationForm/ApplicationForm.ui.json +1 -1
  72. package/src/components/ApplicationForm/ApplicationFormContent.ts +7 -2
  73. package/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +2 -0
  74. package/src/components/StickyBottomMenu/BurgerMenuDialog.tsx +2 -2
  75. package/src/hooks/useAspects/handleAspects.ts +2 -6
  76. package/src/model/LinkProps.ts +2 -2
@@ -851,7 +851,7 @@
851
851
  ...getRegion$1(region, isNaturalPerson),
852
852
  ...getEmail(email, isNaturalPerson),
853
853
  ...getPhone(phone),
854
- ...(isNaturalPerson ? { birthday: formatDate(birthday) } : { inn, fullName }),
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, formData }) => {
900
+ const handleAspects = ({ aspectsAttributes, aspects, ev }) => {
900
901
  for (const { aspectName, params } of aspectsAttributes) {
901
- const paramsData = aspectName === 'mindboxEvent' ? { ...params, eventJson: JSON.stringify(formData) } : params;
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, formData: formatData });
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.295";
6205
+ const packageVersion = "0.14.297";
6206
6206
 
6207
6207
  exports.Blocks = Blocks;
6208
6208
  exports.ContentPage = ContentPage;