@redneckz/wildless-cms-uni-blocks 0.10.8 → 0.10.9

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 (51) hide show
  1. package/bundle/bundle.umd.js +5 -4
  2. package/bundle/bundle.umd.min.js +1 -1
  3. package/bundle/utils/appendSlash.d.ts +1 -0
  4. package/dist/ProjectSettings.js +3 -3
  5. package/dist/ProjectSettings.js.map +1 -1
  6. package/dist/components/Calculator/useCreditCalculatorParams.js +1 -1
  7. package/dist/components/Calculator/useCreditCalculatorParams.js.map +1 -1
  8. package/dist/ui-kit/Sitemap/Sitemap.js +2 -1
  9. package/dist/ui-kit/Sitemap/Sitemap.js.map +1 -1
  10. package/dist/utils/appendSlash.d.ts +1 -0
  11. package/dist/utils/appendSlash.js +5 -0
  12. package/dist/utils/appendSlash.js.map +1 -0
  13. package/lib/ProjectSettings.js +1 -1
  14. package/lib/ProjectSettings.js.map +1 -1
  15. package/lib/components/Calculator/useCreditCalculatorParams.js +1 -1
  16. package/lib/components/Calculator/useCreditCalculatorParams.js.map +1 -1
  17. package/lib/ui-kit/Sitemap/Sitemap.js +2 -1
  18. package/lib/ui-kit/Sitemap/Sitemap.js.map +1 -1
  19. package/lib/utils/appendSlash.d.ts +1 -0
  20. package/lib/utils/appendSlash.js +2 -0
  21. package/lib/utils/appendSlash.js.map +1 -0
  22. package/mobile/bundle/bundle.umd.js +4 -3
  23. package/mobile/bundle/bundle.umd.min.js +1 -1
  24. package/mobile/bundle/utils/appendSlash.d.ts +1 -0
  25. package/mobile/dist/ProjectSettings.js +3 -3
  26. package/mobile/dist/ProjectSettings.js.map +1 -1
  27. package/mobile/dist/components/Calculator/useCreditCalculatorParams.js +1 -1
  28. package/mobile/dist/components/Calculator/useCreditCalculatorParams.js.map +1 -1
  29. package/mobile/dist/ui-kit/Sitemap/Sitemap.js +2 -1
  30. package/mobile/dist/ui-kit/Sitemap/Sitemap.js.map +1 -1
  31. package/mobile/dist/utils/appendSlash.d.ts +1 -0
  32. package/mobile/dist/utils/appendSlash.js +5 -0
  33. package/mobile/dist/utils/appendSlash.js.map +1 -0
  34. package/mobile/lib/ProjectSettings.js +1 -1
  35. package/mobile/lib/ProjectSettings.js.map +1 -1
  36. package/mobile/lib/components/Calculator/useCreditCalculatorParams.js +1 -1
  37. package/mobile/lib/components/Calculator/useCreditCalculatorParams.js.map +1 -1
  38. package/mobile/lib/ui-kit/Sitemap/Sitemap.js +2 -1
  39. package/mobile/lib/ui-kit/Sitemap/Sitemap.js.map +1 -1
  40. package/mobile/lib/utils/appendSlash.d.ts +1 -0
  41. package/mobile/lib/utils/appendSlash.js +2 -0
  42. package/mobile/lib/utils/appendSlash.js.map +1 -0
  43. package/mobile/src/ProjectSettings.ts +2 -2
  44. package/mobile/src/components/Calculator/useCreditCalculatorParams.ts +1 -1
  45. package/mobile/src/ui-kit/Sitemap/Sitemap.tsx +2 -1
  46. package/mobile/src/utils/appendSlash.ts +2 -0
  47. package/package.json +6 -1
  48. package/src/ProjectSettings.ts +2 -2
  49. package/src/components/Calculator/useCreditCalculatorParams.ts +1 -1
  50. package/src/ui-kit/Sitemap/Sitemap.tsx +2 -1
  51. package/src/utils/appendSlash.ts +2 -0
@@ -53,6 +53,8 @@
53
53
  };
54
54
  }
55
55
 
56
+ const appendSlash = (url) => url && !url.endsWith('/') ? `${url}/` : url;
57
+
56
58
  const DEFAULT_PROJECT_SETTINGS = { PROD_BRANCH: 'master' };
57
59
  const projectSettings = new (class {
58
60
  _ = DEFAULT_PROJECT_SETTINGS;
@@ -96,7 +98,6 @@
96
98
  return this._.YANDEX_METRIKA_ID;
97
99
  }
98
100
  })();
99
- const appendSlash = (url) => (url && !url.endsWith('/') ? `${url}/` : url);
100
101
 
101
102
  const AUTH_PREFIX = 'guest';
102
103
  const STORAGE_KEY = 'likesToken';
@@ -1628,7 +1629,7 @@
1628
1629
  ...getLimitRangeByKeys(['minMonths', 'maxMonths'], creditCalculatorSourceBookLimitParams, rateRows),
1629
1630
  ...userInputParams,
1630
1631
  monthlyPayment,
1631
- }), [userInputParams]);
1632
+ }), [userInputParams, data]);
1632
1633
  };
1633
1634
  const checkRowCommonParams = (props) => checkRowParam({
1634
1635
  ...props,
@@ -3040,7 +3041,7 @@
3040
3041
  });
3041
3042
  const renderColumn = (menuItem, index) => {
3042
3043
  const { text, items, href, target, onClick } = menuItem;
3043
- return (jsxs("div", { className: "flex flex-col gap-3.5 w-1/4", children: [jsx("a", { className: "leading-5 text-l text-primary-text hover:text-primary-main no-underline", href: href, target: target || '_self', onClick: onClick, children: text || `Раздел ${index}` }), items?.map((_, i) => (jsx(ColumnItem, { ..._, basePath: href, index: i }, String(i))))] }, String(index)));
3044
+ return (jsxs("div", { className: "flex flex-col gap-3.5 w-1/4", children: [jsx("a", { className: "leading-5 text-l text-primary-text hover:text-primary-main no-underline", href: href, target: target || '_self', onClick: onClick, children: text || `Раздел ${index}` }), items?.map((_, i) => (jsx(ColumnItem, { ..._, basePath: appendSlash(href), index: i }, String(i))))] }, String(index)));
3044
3045
  };
3045
3046
  const ColumnItem = JSX(({ text, index, basePath, ...rest }) => {
3046
3047
  const isAnotherPortal = projectSettings.BASE_PATH && basePath ? !projectSettings.BASE_PATH.startsWith(basePath) : false;
@@ -5025,7 +5026,7 @@
5025
5026
  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" }) }));
5026
5027
  }
5027
5028
 
5028
- const packageVersion = "0.10.8";
5029
+ const packageVersion = "0.10.9";
5029
5030
 
5030
5031
  exports.Blocks = Blocks;
5031
5032
  exports.ContentPage = ContentPage;