@redneckz/wildless-cms-uni-blocks 0.8.25 → 0.8.27

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 (39) hide show
  1. package/bin/migration-scripts/0.6.43.js +4 -1
  2. package/bin/migration-scripts/0.7.8.js +4 -1
  3. package/bin/migration-scripts/0.8.15.js +4 -1
  4. package/bin/migration-scripts/0.8.17.js +4 -2
  5. package/bundle/bundle.umd.js +7 -7
  6. package/bundle/bundle.umd.min.js +1 -1
  7. package/bundle/ui-kit/BenefitItem/BenefitItemProps.d.ts +1 -1
  8. package/dist/components/ApplicationForm/ApplicationFormAcquiring.js +2 -2
  9. package/dist/components/ApplicationForm/ApplicationFormCredit.js +2 -2
  10. package/dist/components/ApplicationForm/ApplicationFormWed.js +2 -2
  11. package/dist/ui-kit/BenefitItem/BenefitItemProps.d.ts +1 -1
  12. package/lib/components/ApplicationForm/ApplicationFormAcquiring.js +2 -2
  13. package/lib/components/ApplicationForm/ApplicationFormCredit.js +2 -2
  14. package/lib/components/ApplicationForm/ApplicationFormWed.js +2 -2
  15. package/lib/ui-kit/BenefitItem/BenefitItemProps.d.ts +1 -1
  16. package/mobile/bundle/bundle.umd.js +1 -1
  17. package/mobile/bundle/bundle.umd.min.js +1 -1
  18. package/mobile/bundle/ui-kit/BenefitItem/BenefitItemProps.d.ts +1 -1
  19. package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js +2 -2
  20. package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js +2 -2
  21. package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js +2 -2
  22. package/mobile/dist/ui-kit/BenefitItem/BenefitItemProps.d.ts +1 -1
  23. package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js +2 -2
  24. package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js +2 -2
  25. package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js +2 -2
  26. package/mobile/lib/ui-kit/BenefitItem/BenefitItemProps.d.ts +1 -1
  27. package/mobile/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +2 -2
  28. package/mobile/src/components/ApplicationForm/ApplicationFormCredit.tsx +2 -2
  29. package/mobile/src/components/ApplicationForm/ApplicationFormWed.tsx +2 -2
  30. package/mobile/src/components/PictureText/PictureText.example.json +2 -0
  31. package/mobile/src/components/StepsBlock/StepsBlock.example.json +4 -1
  32. package/mobile/src/ui-kit/BenefitItem/BenefitItemProps.ts +1 -1
  33. package/package.json +1 -1
  34. package/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +2 -2
  35. package/src/components/ApplicationForm/ApplicationFormCredit.tsx +2 -2
  36. package/src/components/ApplicationForm/ApplicationFormWed.tsx +2 -2
  37. package/src/components/PictureText/PictureText.example.json +2 -0
  38. package/src/components/StepsBlock/StepsBlock.example.json +4 -1
  39. package/src/ui-kit/BenefitItem/BenefitItemProps.ts +1 -1
@@ -24,6 +24,9 @@ function adjustProductTile(block) {
24
24
  }
25
25
 
26
26
  if (block.content?.benefits?.length) {
27
- block.content.benefits = block.content.benefits.map((b) => ({ ...b, type: 'default' }));
27
+ block.content.benefits = block.content.benefits.map((b) => ({
28
+ ...b,
29
+ type: b.type ? b.type : 'default',
30
+ }));
28
31
  }
29
32
  }
@@ -24,6 +24,9 @@ function adjustPictureText(block) {
24
24
  }
25
25
 
26
26
  if (block.content?.benefits?.length) {
27
- block.content.benefits = block.content.benefits.map((b) => ({ ...b, type: 'default' }));
27
+ block.content.benefits = block.content.benefits.map((b) => ({
28
+ ...b,
29
+ type: b.type ? b.type : 'default',
30
+ }));
28
31
  }
29
32
  }
@@ -24,6 +24,9 @@ function adjustStepsBlock(block) {
24
24
  }
25
25
 
26
26
  if (block.content?.steps?.length) {
27
- block.content.steps = block.content.steps.map((s) => ({ ...s, type: 'default' }));
27
+ block.content.steps = block.content.steps.map((s) => ({
28
+ ...s,
29
+ type: s.type ? s.type : 'default',
30
+ }));
28
31
  }
29
32
  }
@@ -19,8 +19,10 @@ function adjustBonusBenefitsBlock(block) {
19
19
  const bonusBenefits = block?.content?.bonusBenefits;
20
20
  if (bonusBenefits) {
21
21
  for (const benefit of bonusBenefits) {
22
- renameProp(benefit, 'description', 'title');
23
- renameProp(benefit, 'label', 'description');
22
+ if (benefit.label) {
23
+ renameProp(benefit, 'description', 'title');
24
+ renameProp(benefit, 'label', 'description');
25
+ }
24
26
  }
25
27
  }
26
28
  }
@@ -807,12 +807,12 @@
807
807
  }, []);
808
808
  const onSubmit = async (e) => {
809
809
  e.preventDefault();
810
- const PartnerComments = `Вид эквайринга=${acquiringType}/Онлайн касса=${onlineСheckout}/POS-терминал=${posTerminal}`;
810
+ const partnerComments = `Вид эквайринга=${acquiringType}/Онлайн касса=${onlineСheckout}/POS-терминал=${posTerminal}`;
811
811
  handleSubmit &&
812
812
  (await handleSubmit({
813
813
  typeForm: 'acqr',
814
814
  region: regions.find((_) => _.code === selectedRegion)?.name || '',
815
- PartnerComments,
815
+ partnerComments,
816
816
  fullName,
817
817
  inn,
818
818
  name,
@@ -960,7 +960,7 @@
960
960
  }, [formState.region, handleChange]);
961
961
  const onSubmit = async (e) => {
962
962
  e.preventDefault();
963
- const PartnerComments = `Сумма=${amount}/Срок=${term}/Выручка=${annualRevenue}`;
963
+ const partnerComments = `Сумма=${amount}/Срок=${term}/Выручка=${annualRevenue}`;
964
964
  handleSubmit &&
965
965
  (await handleSubmit({
966
966
  typeForm: 'cred',
@@ -971,7 +971,7 @@
971
971
  mail,
972
972
  region: regions.find((_) => _.code === selectedRegion)?.name || '',
973
973
  department: branches.find((_) => _.branchCode === department)?.address || '',
974
- PartnerComments,
974
+ partnerComments,
975
975
  }));
976
976
  };
977
977
  return (jsxs("form", { onSubmit: onSubmit, className: "container", children: [jsx(Heading, { headingType: "h6", title: "\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B \u043A\u0440\u0435\u0434\u0438\u0442\u0430", className: "text-center mb-4" }), renderCreditParameters({ amount, term, handleChange }), jsx(Heading, { headingType: "h6", title: "\u0414\u0430\u043D\u043D\u044B\u0435 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", className: "text-center mb-4" }), renderDataOrganization$2({ fullName, inn, name, phone, mail, annualRevenue, handleChange }), jsx(Heading, { headingType: "h6", title: "\u041E\u0444\u0438\u0441 \u0431\u0430\u043D\u043A\u0430", className: "text-center mb-4" }), renderBankOffices({
@@ -1079,7 +1079,7 @@
1079
1079
  });
1080
1080
  const onSubmit = async (e) => {
1081
1081
  e.preventDefault();
1082
- const PartnerComments = `Валютный контроль=${currencyControl}/Документарные операции=${documentaryOperations}/Конверсионные операции=${conversionOperations}/Доп инф=${text}`;
1082
+ const partnerComments = `Валютный контроль=${currencyControl}/Документарные операции=${documentaryOperations}/Конверсионные операции=${conversionOperations}/Доп инф=${text}`;
1083
1083
  handleSubmit &&
1084
1084
  (await handleSubmit({
1085
1085
  typeForm: 'kved',
@@ -1087,7 +1087,7 @@
1087
1087
  name,
1088
1088
  phone,
1089
1089
  mail,
1090
- PartnerComments,
1090
+ partnerComments,
1091
1091
  }));
1092
1092
  };
1093
1093
  return (jsxs("form", { onSubmit: onSubmit, className: "container", children: [jsx(Heading, { headingType: "h6", title: "\u0414\u0430\u043D\u043D\u044B\u0435 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", className: "text-center mb-4" }), renderDataOrganization({ fullName, name, phone, mail, handleChange }), jsx(Heading, { headingType: "h6", title: "\u0418\u043D\u0442\u0435\u0440\u0435\u0441\u0443\u044E\u0449\u0438\u0439 \u0432\u043E\u043F\u0440\u043E\u0441", className: "text-center mb-4" }), renderQuestionsInterested({
@@ -4547,7 +4547,7 @@
4547
4547
  return (jsx("div", { className: "flex items-end absolute bottom-0 right-0 h-full pointer-events-none", children: jsx(LikeControl, { className: "rounded-tl-lg sticky bottom-0 pointer-events-auto" }) }));
4548
4548
  }
4549
4549
 
4550
- const packageVersion = "0.8.25";
4550
+ const packageVersion = "0.8.27";
4551
4551
 
4552
4552
  exports.Blocks = Blocks;
4553
4553
  exports.ContentPage = ContentPage;