@redneckz/wildless-cms-uni-blocks 0.14.716 → 0.14.717

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 (50) hide show
  1. package/bin/migration-scripts/0.14.716.js +13 -0
  2. package/bundle/bundle.umd.js +3 -9
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
  5. package/bundle/ui-kit/FormField/constants.d.ts +0 -1
  6. package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
  7. package/dist/components/ApplicationForm/getInitialFormState.js +0 -3
  8. package/dist/components/ApplicationForm/getInitialFormState.js.map +1 -1
  9. package/dist/ui-kit/FormField/constants.d.ts +0 -1
  10. package/dist/ui-kit/FormField/constants.js +2 -15
  11. package/dist/ui-kit/FormField/constants.js.map +1 -1
  12. package/dist/ui-kit/FormField/getPremium.js +1 -1
  13. package/dist/ui-kit/FormField/getPremium.js.map +1 -1
  14. package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
  15. package/lib/components/ApplicationForm/getInitialFormState.js +0 -3
  16. package/lib/components/ApplicationForm/getInitialFormState.js.map +1 -1
  17. package/lib/ui-kit/FormField/constants.d.ts +0 -1
  18. package/lib/ui-kit/FormField/constants.js +1 -14
  19. package/lib/ui-kit/FormField/constants.js.map +1 -1
  20. package/lib/ui-kit/FormField/getPremium.js +1 -1
  21. package/lib/ui-kit/FormField/getPremium.js.map +1 -1
  22. package/mobile/bundle/bundle.umd.js +3 -9
  23. package/mobile/bundle/bundle.umd.min.js +1 -1
  24. package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
  25. package/mobile/bundle/ui-kit/FormField/constants.d.ts +0 -1
  26. package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
  27. package/mobile/dist/components/ApplicationForm/getInitialFormState.js +0 -3
  28. package/mobile/dist/components/ApplicationForm/getInitialFormState.js.map +1 -1
  29. package/mobile/dist/ui-kit/FormField/constants.d.ts +0 -1
  30. package/mobile/dist/ui-kit/FormField/constants.js +2 -15
  31. package/mobile/dist/ui-kit/FormField/constants.js.map +1 -1
  32. package/mobile/dist/ui-kit/FormField/getPremium.js +1 -1
  33. package/mobile/dist/ui-kit/FormField/getPremium.js.map +1 -1
  34. package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
  35. package/mobile/lib/components/ApplicationForm/getInitialFormState.js +0 -3
  36. package/mobile/lib/components/ApplicationForm/getInitialFormState.js.map +1 -1
  37. package/mobile/lib/ui-kit/FormField/constants.d.ts +0 -1
  38. package/mobile/lib/ui-kit/FormField/constants.js +1 -14
  39. package/mobile/lib/ui-kit/FormField/constants.js.map +1 -1
  40. package/mobile/lib/ui-kit/FormField/getPremium.js +1 -1
  41. package/mobile/lib/ui-kit/FormField/getPremium.js.map +1 -1
  42. package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +0 -1
  43. package/mobile/src/components/ApplicationForm/getInitialFormState.tsx +0 -4
  44. package/mobile/src/ui-kit/FormField/constants.tsx +1 -15
  45. package/mobile/src/ui-kit/FormField/getPremium.tsx +1 -2
  46. package/package.json +1 -1
  47. package/src/components/ApplicationForm/ApplicationFormContent.ts +0 -1
  48. package/src/components/ApplicationForm/getInitialFormState.tsx +0 -4
  49. package/src/ui-kit/FormField/constants.tsx +1 -15
  50. package/src/ui-kit/FormField/getPremium.tsx +1 -2
@@ -0,0 +1,13 @@
1
+ import { traversePageBlocks } from '../utils.js';
2
+
3
+ export const description = 'v0.14.716';
4
+
5
+ export default traversePageBlocks(adjustDeleteSizeSteps);
6
+
7
+ function adjustDeleteSizeSteps(block) {
8
+ const content = block?.content;
9
+
10
+ if (block?.type === 'ApplicationForm' && content?.typeForm === 'PREMIUMSERVICE') {
11
+ content.typeForm = 'ULTRASERVICE';
12
+ }
13
+ }
@@ -1822,7 +1822,7 @@
1822
1822
  return Array.isArray(data) ? data : [];
1823
1823
  }
1824
1824
 
1825
- const getPremium = (typeForm = '') => typeForm === 'ULTRASERVICE' || typeForm === 'PREMIUMSERVICE';
1825
+ const getPremium = (typeForm = '') => typeForm === 'ULTRASERVICE';
1826
1826
 
1827
1827
  const AddressBranchField = JSX(({ field, input, params }) => {
1828
1828
  const isPremium = getPremium(params?.typeForm);
@@ -3712,10 +3712,7 @@
3712
3712
  return (jsx(SelectField, { field: field, source: familyStatus, label: "\u0421\u0435\u043C\u0435\u0439\u043D\u043E\u0435 \u043F\u043E\u043B\u043E\u0436\u0435\u043D\u0438\u0435", fieldName: "familyStatus", input: input }));
3713
3713
  });
3714
3714
 
3715
- const SERVICE_TYPES = [
3716
- { key: 'ULTRASERVICE', text: 'Ультра' },
3717
- { key: 'PREMIUMSERVICE', text: 'Премиум' },
3718
- ];
3715
+ const SERVICE_TYPES = [{ key: 'ULTRASERVICE', text: 'Ультра' }];
3719
3716
  const SERVICE_DIRECTIONS = [
3720
3717
  { key: 'Физическое лицо' },
3721
3718
  { key: 'Юридическое лицо / ИП' },
@@ -4367,9 +4364,6 @@
4367
4364
  _.name,
4368
4365
  (_.fieldType === 'ved' && _?.defaultValue) || initialFormState$1[_.name || ''],
4369
4366
  ]));
4370
- if (formState?.serviceType && typeForm === 'PREMIUMSERVICE') {
4371
- formState.serviceType = SERVICE_TYPES[1];
4372
- }
4373
4367
  return { ...formState, typeForm: { key: typeForm, text: '' } };
4374
4368
  };
4375
4369
 
@@ -10500,7 +10494,7 @@
10500
10494
  slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
10501
10495
  });
10502
10496
 
10503
- const packageVersion = "0.14.715";
10497
+ const packageVersion = "0.14.716";
10504
10498
 
10505
10499
  exports.Blocks = Blocks;
10506
10500
  exports.ContentPage = ContentPage;