@redneckz/wildless-cms-uni-blocks 0.14.749 → 0.14.751

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 (53) hide show
  1. package/bundle/bundle.umd.js +6 -5
  2. package/bundle/bundle.umd.min.js +1 -1
  3. package/bundle/components/ApplicationForm/getInitialFormState.d.ts +1 -0
  4. package/bundle/ui-kit/FormField/Fields/ProductField.d.ts +1 -1
  5. package/dist/components/ApplicationForm/getFormatData.js +2 -1
  6. package/dist/components/ApplicationForm/getFormatData.js.map +1 -1
  7. package/dist/components/ApplicationForm/getInitialFormState.d.ts +1 -0
  8. package/dist/components/ApplicationForm/getInitialFormState.js.map +1 -1
  9. package/dist/components/CardTransfer/submitCardTransfer.js +2 -2
  10. package/dist/components/CardTransfer/submitCardTransfer.js.map +1 -1
  11. package/dist/ui-kit/FormField/Fields/ProductField.d.ts +1 -1
  12. package/dist/ui-kit/FormField/Fields/ProductField.js +2 -2
  13. package/dist/ui-kit/FormField/Fields/ProductField.js.map +1 -1
  14. package/lib/components/ApplicationForm/getFormatData.js +2 -1
  15. package/lib/components/ApplicationForm/getFormatData.js.map +1 -1
  16. package/lib/components/ApplicationForm/getInitialFormState.d.ts +1 -0
  17. package/lib/components/ApplicationForm/getInitialFormState.js.map +1 -1
  18. package/lib/components/CardTransfer/submitCardTransfer.js +2 -2
  19. package/lib/components/CardTransfer/submitCardTransfer.js.map +1 -1
  20. package/lib/ui-kit/FormField/Fields/ProductField.d.ts +1 -1
  21. package/lib/ui-kit/FormField/Fields/ProductField.js +2 -2
  22. package/lib/ui-kit/FormField/Fields/ProductField.js.map +1 -1
  23. package/mobile/bundle/bundle.umd.js +6 -5
  24. package/mobile/bundle/bundle.umd.min.js +1 -1
  25. package/mobile/bundle/components/ApplicationForm/getInitialFormState.d.ts +1 -0
  26. package/mobile/bundle/ui-kit/FormField/Fields/ProductField.d.ts +1 -1
  27. package/mobile/dist/components/ApplicationForm/getFormatData.js +2 -1
  28. package/mobile/dist/components/ApplicationForm/getFormatData.js.map +1 -1
  29. package/mobile/dist/components/ApplicationForm/getInitialFormState.d.ts +1 -0
  30. package/mobile/dist/components/ApplicationForm/getInitialFormState.js.map +1 -1
  31. package/mobile/dist/components/CardTransfer/submitCardTransfer.js +2 -2
  32. package/mobile/dist/components/CardTransfer/submitCardTransfer.js.map +1 -1
  33. package/mobile/dist/ui-kit/FormField/Fields/ProductField.d.ts +1 -1
  34. package/mobile/dist/ui-kit/FormField/Fields/ProductField.js +2 -2
  35. package/mobile/dist/ui-kit/FormField/Fields/ProductField.js.map +1 -1
  36. package/mobile/lib/components/ApplicationForm/getFormatData.js +2 -1
  37. package/mobile/lib/components/ApplicationForm/getFormatData.js.map +1 -1
  38. package/mobile/lib/components/ApplicationForm/getInitialFormState.d.ts +1 -0
  39. package/mobile/lib/components/ApplicationForm/getInitialFormState.js.map +1 -1
  40. package/mobile/lib/components/CardTransfer/submitCardTransfer.js +2 -2
  41. package/mobile/lib/components/CardTransfer/submitCardTransfer.js.map +1 -1
  42. package/mobile/lib/ui-kit/FormField/Fields/ProductField.d.ts +1 -1
  43. package/mobile/lib/ui-kit/FormField/Fields/ProductField.js +2 -2
  44. package/mobile/lib/ui-kit/FormField/Fields/ProductField.js.map +1 -1
  45. package/mobile/src/components/ApplicationForm/getFormatData.tsx +2 -0
  46. package/mobile/src/components/ApplicationForm/getInitialFormState.tsx +1 -0
  47. package/mobile/src/components/CardTransfer/submitCardTransfer.ts +2 -2
  48. package/mobile/src/ui-kit/FormField/Fields/ProductField.tsx +2 -2
  49. package/package.json +1 -1
  50. package/src/components/ApplicationForm/getFormatData.tsx +2 -0
  51. package/src/components/ApplicationForm/getInitialFormState.tsx +1 -0
  52. package/src/components/CardTransfer/submitCardTransfer.ts +2 -2
  53. package/src/ui-kit/FormField/Fields/ProductField.tsx +2 -2
@@ -2511,7 +2511,7 @@
2511
2511
 
2512
2512
  const PosTerminalField = JSX(({ field }) => isAcquiringTrade(field('acquiringType')?.value?.key) ? (jsx(SlideCheckbox, { type: "radio", text: "\u0425\u043E\u0447\u0443 POS-\u0442\u0435\u0440\u043C\u0438\u043D\u0430\u043B", ...field('posTerminal') })) : null);
2513
2513
 
2514
- const ProductField = JSX(({ field, input, source }) => (jsx(SelectControl, { placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043F\u0440\u043E\u0434\u0443\u043A\u0442", label: "\u041F\u0440\u043E\u0434\u0443\u043A\u0442", options: arrayToOptions(source?.productList), ...field(input?.name ?? '') })));
2514
+ const ProductField = UniBlock(({ field, input, source }) => (jsx(SelectControl, { placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043F\u0440\u043E\u0434\u0443\u043A\u0442", label: "\u041F\u0440\u043E\u0434\u0443\u043A\u0442", options: arrayToOptions(source?.productList), ...field(input?.name ?? '') })));
2515
2515
  const arrayToOptions = (array) => (array ?? []).map((_) => ({ key: _, value: _ }));
2516
2516
 
2517
2517
  const REGIONS_URL = `${API_BASE_URI}/regions`;
@@ -2882,12 +2882,13 @@
2882
2882
 
2883
2883
  /* eslint-disable @typescript-eslint/no-unused-vars */
2884
2884
  const getFormatData = (data) => {
2885
- const { acquiringType, onlineCheckout, posTerminal, amount, term, annualRevenue, serviceType, vedTypes, region, ...usedData } = data;
2885
+ const { acquiringType, onlineCheckout, posTerminal, amount, term, annualRevenue, serviceType, vedTypes, region, inn, ...usedData } = data;
2886
2886
  const partnerComments = acquiringType || annualRevenue ? getPartnerComments(data) : null;
2887
2887
  const formatData = {
2888
2888
  ...usedData,
2889
2889
  ...getVedTypes(vedTypes),
2890
2890
  ...getRegion(region),
2891
+ ...(inn && { inn }),
2891
2892
  ...(partnerComments ? { partnerComments } : {}),
2892
2893
  ...(serviceType ? { typeForm: serviceType } : {}),
2893
2894
  };
@@ -6508,7 +6509,7 @@
6508
6509
  business: 'b2c/registerB2C',
6509
6510
  };
6510
6511
  const SUCCESS_URL = '/p2p/success';
6511
- const FAIL_URL = '/p2p/success';
6512
+ const FAILED_URL = '/p2p/failed';
6512
6513
  const CURRENCY_CODE = '643';
6513
6514
  const LANGUAGE = 'ru';
6514
6515
  const submitCardTransfer = async (typeForm, amount) => {
@@ -6517,7 +6518,7 @@
6517
6518
  amount: String(amount),
6518
6519
  currency: CURRENCY_CODE,
6519
6520
  returnUrl: `${navigator.origin}${SUCCESS_URL}`,
6520
- failUrl: `${navigator.origin}${FAIL_URL}`,
6521
+ failUrl: `${navigator.origin}${FAILED_URL}`,
6521
6522
  language: LANGUAGE,
6522
6523
  };
6523
6524
  const url = `${API_BASE_URI}/payment/${paymentURLMap[typeForm]}`;
@@ -10468,7 +10469,7 @@
10468
10469
  slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
10469
10470
  });
10470
10471
 
10471
- const packageVersion = "0.14.748";
10472
+ const packageVersion = "0.14.750";
10472
10473
 
10473
10474
  exports.Blocks = Blocks;
10474
10475
  exports.ContentPage = ContentPage;