@redneckz/wildless-cms-uni-blocks 0.14.999 → 0.14.1001

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 (61) hide show
  1. package/bundle/api/LeadServiceAPI.d.ts +2 -1
  2. package/bundle/bundle.umd.js +11 -7
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
  5. package/dist/api/LeadServiceAPI.d.ts +2 -1
  6. package/dist/api/LeadServiceAPI.js +3 -3
  7. package/dist/api/LeadServiceAPI.js.map +1 -1
  8. package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
  9. package/dist/components/ApplicationForm/constants.js +5 -1
  10. package/dist/components/ApplicationForm/constants.js.map +1 -1
  11. package/dist/components/RkoTariffCardsTable/renderRkoTariffsTableHeader.js +1 -1
  12. package/dist/components/RkoTariffCardsTable/renderRkoTariffsTableHeader.js.map +1 -1
  13. package/dist/ui-kit/Calculator/renderCountInput.js +1 -1
  14. package/dist/ui-kit/Calculator/renderCountInput.js.map +1 -1
  15. package/lib/api/LeadServiceAPI.d.ts +2 -1
  16. package/lib/api/LeadServiceAPI.js +3 -3
  17. package/lib/api/LeadServiceAPI.js.map +1 -1
  18. package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
  19. package/lib/components/ApplicationForm/constants.js +5 -1
  20. package/lib/components/ApplicationForm/constants.js.map +1 -1
  21. package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +1 -1
  22. package/lib/components/RkoTariffCardsTable/renderRkoTariffsTableHeader.js +1 -1
  23. package/lib/components/RkoTariffCardsTable/renderRkoTariffsTableHeader.js.map +1 -1
  24. package/lib/ui-kit/Calculator/renderCountInput.js +1 -1
  25. package/lib/ui-kit/Calculator/renderCountInput.js.map +1 -1
  26. package/mobile/bundle/api/LeadServiceAPI.d.ts +2 -1
  27. package/mobile/bundle/bundle.umd.js +11 -7
  28. package/mobile/bundle/bundle.umd.min.js +1 -1
  29. package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
  30. package/mobile/dist/api/LeadServiceAPI.d.ts +2 -1
  31. package/mobile/dist/api/LeadServiceAPI.js +3 -3
  32. package/mobile/dist/api/LeadServiceAPI.js.map +1 -1
  33. package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
  34. package/mobile/dist/components/ApplicationForm/constants.js +5 -1
  35. package/mobile/dist/components/ApplicationForm/constants.js.map +1 -1
  36. package/mobile/dist/components/RkoTariffCardsTable/renderRkoTariffsTableHeader.js +1 -1
  37. package/mobile/dist/components/RkoTariffCardsTable/renderRkoTariffsTableHeader.js.map +1 -1
  38. package/mobile/dist/ui-kit/Calculator/renderCountInput.js +1 -1
  39. package/mobile/dist/ui-kit/Calculator/renderCountInput.js.map +1 -1
  40. package/mobile/lib/api/LeadServiceAPI.d.ts +2 -1
  41. package/mobile/lib/api/LeadServiceAPI.js +3 -3
  42. package/mobile/lib/api/LeadServiceAPI.js.map +1 -1
  43. package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
  44. package/mobile/lib/components/ApplicationForm/constants.js +5 -1
  45. package/mobile/lib/components/ApplicationForm/constants.js.map +1 -1
  46. package/mobile/lib/components/RkoTariffCardsTable/renderRkoTariffsTableHeader.js +1 -1
  47. package/mobile/lib/components/RkoTariffCardsTable/renderRkoTariffsTableHeader.js.map +1 -1
  48. package/mobile/lib/ui-kit/Calculator/renderCountInput.js +1 -1
  49. package/mobile/lib/ui-kit/Calculator/renderCountInput.js.map +1 -1
  50. package/mobile/src/api/LeadServiceAPI.ts +4 -2
  51. package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +1 -0
  52. package/mobile/src/components/ApplicationForm/constants.ts +5 -1
  53. package/mobile/src/components/RkoTariffCardsTable/renderRkoTariffsTableHeader.tsx +5 -3
  54. package/mobile/src/ui-kit/Calculator/renderCountInput.tsx +1 -1
  55. package/package.json +1 -1
  56. package/src/api/LeadServiceAPI.ts +4 -2
  57. package/src/components/ApplicationForm/ApplicationFormContent.ts +1 -0
  58. package/src/components/ApplicationForm/constants.ts +5 -1
  59. package/src/components/RkoTariffCardsTable/renderRkoTariffsTableHeader.tsx +5 -3
  60. package/src/icons/IconName.ts +4 -4
  61. package/src/ui-kit/Calculator/renderCountInput.tsx +1 -1
@@ -20,6 +20,7 @@ export declare type CheckCodeProps = {
20
20
  code: string;
21
21
  body: LeadRequest;
22
22
  router: Router;
23
+ endpoint?: EndpointType;
23
24
  };
24
25
  declare type CheckCodeResponse = {
25
26
  errorCode?: string;
@@ -38,7 +39,7 @@ export declare type sendProps = {
38
39
  export declare function LeadServiceAPI(): {
39
40
  send: ({ body, router, endpoint }: sendProps) => Promise<any>;
40
41
  sendCode: ({ phone }: PhoneOnly) => Promise<string | null>;
41
- checkCode: ({ reqId, code, body, router, }: CheckCodeProps) => Promise<CheckCodeResponse>;
42
+ checkCode: ({ reqId, code, body, router, endpoint, }: CheckCodeProps) => Promise<CheckCodeResponse>;
42
43
  sendPhoneCallRequest: (body: LeadRequest, endpoint?: EndpointType) => Promise<any>;
43
44
  };
44
45
  export {};
@@ -1803,7 +1803,11 @@
1803
1803
  isNaturalEndpoint: true,
1804
1804
  },
1805
1805
  initcorporatelead: {
1806
- withTypeForm: false,
1806
+ withTypeForm: true,
1807
+ isNaturalEndpoint: false,
1808
+ },
1809
+ confirmCorporateLead: {
1810
+ withTypeForm: true,
1807
1811
  isNaturalEndpoint: false,
1808
1812
  },
1809
1813
  callback: {
@@ -1930,14 +1934,14 @@
1930
1934
  return null;
1931
1935
  }
1932
1936
  }
1933
- async function checkCode({ reqId, code, body, router, }) {
1937
+ async function checkCode({ reqId, code, body, router, endpoint = 'confirmCorporateLead', }) {
1934
1938
  const submitBody = {
1935
1939
  requestId: reqId,
1936
1940
  confimationCode: code,
1937
- leadRequest: getSubmitBody({ body, router }),
1941
+ leadRequest: getSubmitBody({ body, endpoint, router }),
1938
1942
  };
1939
1943
  try {
1940
- const response = await LeadServiceFetch(`${API_BASE_URI}/confirmCorporateLead`, submitBody);
1944
+ const response = await LeadServiceFetch(`${API_BASE_URI}/${endpoint}`, submitBody);
1941
1945
  return await response.json();
1942
1946
  }
1943
1947
  catch (e) {
@@ -9146,7 +9150,7 @@
9146
9150
  const renderCreditParamsForm = (params, field) => (jsxs("div", { className: "space-y-lg sm:space-y-s", children: [params.isShowSalaryClient ? (jsx(Checkbox, { text: "\u041F\u043E\u043B\u0443\u0447\u0430\u044E \u0437\u0430\u0440\u043F\u043B\u0430\u0442\u0443 \u043D\u0430 \u0441\u0447\u0451\u0442 \u0432 \u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A\u0435", ...field('isSalaryClient'), value: params.isSalaryClient })) : null, params.isShowInsurance ? (jsx(Checkbox, { text: "\u041A\u043E\u043C\u043F\u043B\u0435\u043A\u0441\u043D\u0430\u044F \u0441\u0442\u0440\u0430\u0445\u043E\u0432\u0430\u044F \u0437\u0430\u0449\u0438\u0442\u0430", ...field('isInsurance'), value: params.isInsurance })) : null, jsx(Checkbox, { text: "\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0434\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u0443\u044E \u0441\u0443\u043C\u043C\u0443", ...field('isExtraMoney'), value: params.isExtraMoney })] }));
9147
9151
 
9148
9152
  const DEFAULT_AMOUNT_STEP = 1;
9149
- const renderCountInput = ({ min = 0, max = 0, step = DEFAULT_AMOUNT_STEP, ...rest }) => (jsx(InputRange, { items: [`От ${min} шт`, `До ${max} шт`], step: step, ...rest }));
9153
+ const renderCountInput = ({ min = 0, max = 0, step = DEFAULT_AMOUNT_STEP, ...rest }) => (jsx(InputRange, { items: [`От ${min} шт`, `До ${max} шт`], step: step, min: min, max: max, ...rest }));
9150
9154
 
9151
9155
  const capitalize = (text) => text ? `${text.charAt(0).toUpperCase()}${text.slice(1)}` : '';
9152
9156
 
@@ -9228,7 +9232,7 @@
9228
9232
  };
9229
9233
 
9230
9234
  const renderRkoTariffsTableHeader = ({ params, className }) => {
9231
- return params ? (jsxs("div", { className: style(className), children: [jsx(Text, { size: "text-xs", font: "font-medium", className: "col-span-2", children: RKO_COMMISSIONS_TITLE_MAP['tariffName'] }), params.map((param, index) => (jsx("div", { children: jsx(Text, { size: "text-xs", font: "font-medium", children: RKO_COMMISSIONS_TITLE_MAP[param] }) }, index)))] })) : null;
9235
+ return params ? (jsxs("div", { className: style(className), children: [jsx("div", { children: jsx(Text, { size: "text-xs", font: "font-medium", className: "col-span-2", children: RKO_COMMISSIONS_TITLE_MAP['tariffName'] }) }), params.map((param, index) => (jsx("div", { children: jsx(Text, { size: "text-xs", font: "font-medium", children: RKO_COMMISSIONS_TITLE_MAP[param] }) }, index)))] })) : null;
9232
9236
  };
9233
9237
 
9234
9238
  const renderCommissionSum = (value, currency, className) => (jsxs(Text, { className: className, children: [value?.toLocaleString(), "\u00A0", (currency ?? RKO_DEFAULT_CURRENCY).text] }));
@@ -14138,7 +14142,7 @@
14138
14142
  slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
14139
14143
  });
14140
14144
 
14141
- const packageVersion = "0.14.998";
14145
+ const packageVersion = "0.14.1000";
14142
14146
 
14143
14147
  exports.Blocks = Blocks;
14144
14148
  exports.ContentPage = ContentPage;