@redneckz/wildless-cms-uni-blocks 0.14.100 → 0.14.101

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 (143) hide show
  1. package/bin/migration-scripts/0.6.32.js +1 -1
  2. package/bundle/bundle.umd.js +10 -11
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/bundle/components/Header/isHrefActive.d.ts +4 -2
  5. package/bundle/services/sitemap/SitemapData.d.ts +2 -2
  6. package/bundle/ui-kit/LocationDialog/renderForeignOffices.d.ts +2 -4
  7. package/bundle/ui-kit/SVG.d.ts +4 -2
  8. package/dist/api/LeadServiceAPI.js +1 -1
  9. package/dist/api/LeadServiceAPI.js.map +1 -1
  10. package/dist/components/Carousel/Carousel.js +0 -3
  11. package/dist/components/Carousel/Carousel.js.map +1 -1
  12. package/dist/components/Header/isHrefActive.d.ts +4 -2
  13. package/dist/components/Header/isHrefActive.js +2 -3
  14. package/dist/components/Header/isHrefActive.js.map +1 -1
  15. package/dist/components/RollupItem/getIconName.js +1 -1
  16. package/dist/components/RollupItem/getIconName.js.map +1 -1
  17. package/dist/components/RollupItem/getIconName.mobile.js +1 -1
  18. package/dist/components/RollupItem/getIconName.mobile.js.map +1 -1
  19. package/dist/services/sitemap/SitemapData.d.ts +2 -2
  20. package/dist/ui-kit/LinkButton/renderArrows.js +5 -1
  21. package/dist/ui-kit/LinkButton/renderArrows.js.map +1 -1
  22. package/dist/ui-kit/LocationDialog/renderForeignOffices.d.ts +2 -4
  23. package/dist/ui-kit/LocationDialog/renderForeignOffices.js.map +1 -1
  24. package/dist/ui-kit/SVG.d.ts +4 -2
  25. package/dist/ui-kit/SVG.js.map +1 -1
  26. package/dist/utils/getBorderStyle.js +1 -1
  27. package/dist/utils/getBorderStyle.js.map +1 -1
  28. package/lib/api/LeadServiceAPI.js +1 -1
  29. package/lib/api/LeadServiceAPI.js.map +1 -1
  30. package/lib/components/Carousel/Carousel.js +0 -3
  31. package/lib/components/Carousel/Carousel.js.map +1 -1
  32. package/lib/components/Header/isHrefActive.d.ts +4 -2
  33. package/lib/components/Header/isHrefActive.js +2 -3
  34. package/lib/components/Header/isHrefActive.js.map +1 -1
  35. package/lib/components/RollupItem/getIconName.js +1 -1
  36. package/lib/components/RollupItem/getIconName.js.map +1 -1
  37. package/lib/components/RollupItem/getIconName.mobile.js +1 -1
  38. package/lib/components/RollupItem/getIconName.mobile.js.map +1 -1
  39. package/lib/services/sitemap/SitemapData.d.ts +2 -2
  40. package/lib/ui-kit/LinkButton/renderArrows.js +5 -1
  41. package/lib/ui-kit/LinkButton/renderArrows.js.map +1 -1
  42. package/lib/ui-kit/LocationDialog/renderForeignOffices.d.ts +2 -4
  43. package/lib/ui-kit/LocationDialog/renderForeignOffices.js.map +1 -1
  44. package/lib/ui-kit/SVG.d.ts +4 -2
  45. package/lib/ui-kit/SVG.js.map +1 -1
  46. package/lib/utils/getBorderStyle.js +1 -1
  47. package/lib/utils/getBorderStyle.js.map +1 -1
  48. package/mobile/bundle/bundle.umd.js +10 -11
  49. package/mobile/bundle/bundle.umd.min.js +1 -1
  50. package/mobile/bundle/components/Header/isHrefActive.d.ts +4 -2
  51. package/mobile/bundle/services/sitemap/SitemapData.d.ts +2 -2
  52. package/mobile/bundle/ui-kit/LocationDialog/renderForeignOffices.d.ts +2 -4
  53. package/mobile/bundle/ui-kit/SVG.d.ts +4 -2
  54. package/mobile/dist/api/LeadServiceAPI.js +1 -1
  55. package/mobile/dist/api/LeadServiceAPI.js.map +1 -1
  56. package/mobile/dist/components/Carousel/Carousel.js +0 -3
  57. package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
  58. package/mobile/dist/components/Header/isHrefActive.d.ts +4 -2
  59. package/mobile/dist/components/Header/isHrefActive.js +2 -3
  60. package/mobile/dist/components/Header/isHrefActive.js.map +1 -1
  61. package/mobile/dist/components/RollupItem/getIconName.js +1 -1
  62. package/mobile/dist/components/RollupItem/getIconName.js.map +1 -1
  63. package/mobile/dist/services/sitemap/SitemapData.d.ts +2 -2
  64. package/mobile/dist/ui-kit/LinkButton/renderArrows.js +5 -1
  65. package/mobile/dist/ui-kit/LinkButton/renderArrows.js.map +1 -1
  66. package/mobile/dist/ui-kit/LocationDialog/renderForeignOffices.d.ts +2 -4
  67. package/mobile/dist/ui-kit/LocationDialog/renderForeignOffices.js.map +1 -1
  68. package/mobile/dist/ui-kit/SVG.d.ts +4 -2
  69. package/mobile/dist/ui-kit/SVG.js.map +1 -1
  70. package/mobile/dist/utils/getBorderStyle.js +1 -1
  71. package/mobile/dist/utils/getBorderStyle.js.map +1 -1
  72. package/mobile/lib/api/LeadServiceAPI.js +1 -1
  73. package/mobile/lib/api/LeadServiceAPI.js.map +1 -1
  74. package/mobile/lib/components/Carousel/Carousel.js +0 -3
  75. package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
  76. package/mobile/lib/components/Header/isHrefActive.d.ts +4 -2
  77. package/mobile/lib/components/Header/isHrefActive.js +2 -3
  78. package/mobile/lib/components/Header/isHrefActive.js.map +1 -1
  79. package/mobile/lib/components/RollupItem/getIconName.js +1 -1
  80. package/mobile/lib/components/RollupItem/getIconName.js.map +1 -1
  81. package/mobile/lib/services/sitemap/SitemapData.d.ts +2 -2
  82. package/mobile/lib/ui-kit/LinkButton/renderArrows.js +5 -1
  83. package/mobile/lib/ui-kit/LinkButton/renderArrows.js.map +1 -1
  84. package/mobile/lib/ui-kit/LocationDialog/renderForeignOffices.d.ts +2 -4
  85. package/mobile/lib/ui-kit/LocationDialog/renderForeignOffices.js.map +1 -1
  86. package/mobile/lib/ui-kit/SVG.d.ts +4 -2
  87. package/mobile/lib/ui-kit/SVG.js.map +1 -1
  88. package/mobile/lib/utils/getBorderStyle.js +1 -1
  89. package/mobile/lib/utils/getBorderStyle.js.map +1 -1
  90. package/mobile/src/api/LeadServiceAPI.ts +1 -1
  91. package/mobile/src/components/Carousel/Carousel.tsx +0 -3
  92. package/mobile/src/components/Header/isHrefActive.ts +7 -4
  93. package/mobile/src/components/RollupItem/getIconName.tsx +1 -1
  94. package/mobile/src/services/sitemap/SitemapData.ts +2 -2
  95. package/mobile/src/ui-kit/LinkButton/renderArrows.tsx +9 -4
  96. package/mobile/src/ui-kit/LocationDialog/renderForeignOffices.tsx +3 -3
  97. package/mobile/src/ui-kit/SVG.tsx +5 -2
  98. package/mobile/src/utils/getBorderStyle.ts +1 -1
  99. package/package.json +1 -1
  100. package/src/api/LeadServiceAPI.ts +1 -1
  101. package/src/components/Carousel/Carousel.tsx +0 -3
  102. package/src/components/Header/isHrefActive.ts +7 -4
  103. package/src/components/RollupItem/getIconName.mobile.tsx +1 -1
  104. package/src/components/RollupItem/getIconName.tsx +1 -1
  105. package/src/services/sitemap/SitemapData.ts +2 -2
  106. package/src/ui-kit/LinkButton/renderArrows.tsx +9 -4
  107. package/src/ui-kit/LocationDialog/renderForeignOffices.tsx +3 -3
  108. package/src/ui-kit/SVG.tsx +5 -2
  109. package/src/utils/getBorderStyle.ts +1 -1
  110. package/bin/migration-scripts/0.11.0.js +0 -29
  111. package/bin/migration-scripts/0.12.9.js +0 -30
  112. package/bin/migration-scripts/0.13.5.js +0 -36
  113. package/bin/migration-scripts/0.13.6.js +0 -33
  114. package/bin/migration-scripts/0.14.26.js +0 -55
  115. package/bin/migration-scripts/0.14.28.js +0 -28
  116. package/bin/migration-scripts/0.14.29.js +0 -75
  117. package/bin/migration-scripts/0.14.30.js +0 -54
  118. package/bin/migration-scripts/0.14.44.js +0 -103
  119. package/bin/migration-scripts/0.5.14.js +0 -33
  120. package/bin/migration-scripts/0.6.43.js +0 -32
  121. package/bin/migration-scripts/0.7.8.js +0 -32
  122. package/bin/migration-scripts/0.8.10.js +0 -31
  123. package/bin/migration-scripts/0.8.29.js +0 -42
  124. package/bin/migration-scripts/0.8.8.js +0 -124
  125. package/bin/migration-scripts/0.9.1.js +0 -71
  126. package/bin/migration-scripts/0.9.10.js +0 -30
  127. package/bin/migration-scripts/0.9.9.js +0 -111
  128. package/bundle/components/SafeDepositRental/renderClusterer.d.ts +0 -2
  129. package/dist/components/SafeDepositRental/renderClusterer.d.ts +0 -2
  130. package/dist/components/SafeDepositRental/renderClusterer.js +0 -35
  131. package/dist/components/SafeDepositRental/renderClusterer.js.map +0 -1
  132. package/lib/components/SafeDepositRental/renderClusterer.d.ts +0 -2
  133. package/lib/components/SafeDepositRental/renderClusterer.js +0 -32
  134. package/lib/components/SafeDepositRental/renderClusterer.js.map +0 -1
  135. package/mobile/bundle/components/SafeDepositRental/renderClusterer.d.ts +0 -2
  136. package/mobile/dist/components/SafeDepositRental/renderClusterer.d.ts +0 -2
  137. package/mobile/dist/components/SafeDepositRental/renderClusterer.js +0 -35
  138. package/mobile/dist/components/SafeDepositRental/renderClusterer.js.map +0 -1
  139. package/mobile/lib/components/SafeDepositRental/renderClusterer.d.ts +0 -2
  140. package/mobile/lib/components/SafeDepositRental/renderClusterer.js +0 -32
  141. package/mobile/lib/components/SafeDepositRental/renderClusterer.js.map +0 -1
  142. package/mobile/src/components/SafeDepositRental/renderClusterer.ts +0 -51
  143. package/src/components/SafeDepositRental/renderClusterer.ts +0 -51
@@ -23,7 +23,7 @@ function adjustContactsBlock(block) {
23
23
  block.type !== 'ContactsBlock' ||
24
24
  !block.content ||
25
25
  !block.content.info ||
26
- !block.content.info.length > 0 ||
26
+ block.content.info.length <= 0 ||
27
27
  Array.isArray(block.content.info[0])
28
28
  ) {
29
29
  return;
@@ -870,7 +870,7 @@
870
870
  });
871
871
 
872
872
  function LeadServiceAPI() {
873
- async function send(body, isIndividualType) {
873
+ async function send(body, isIndividualType = false) {
874
874
  const url = isIndividualType ? '/api/v1/lead' : '/api/v1/sendcorporatelead';
875
875
  try {
876
876
  const response = await fetch(url, {
@@ -1844,7 +1844,10 @@
1844
1844
  /** @deprecated */
1845
1845
  function renderArrows({ dec, inc, canDec, canInc, btnClass, className = '', }) {
1846
1846
  const isVisible = canDec || canInc;
1847
- return isVisible ? (jsxs("div", { children: [canDec ? (jsx(ArrowButton, { className: `absolute z-40 ${btnClass[0]} ${className}`, onClick: dec, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043B\u0435\u0432\u043E", "data-block-control": "scroll-left", disabled: !canDec })) : null, canInc ? (jsx(ArrowButton, { className: `absolute z-40 rotate-180 ${btnClass[1]} ${className}`, onClick: inc, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043F\u0440\u0430\u0432\u043E", "data-block-control": "scroll-right", disabled: !canInc })) : null] })) : null;
1847
+ if (!isVisible) {
1848
+ return null;
1849
+ }
1850
+ return (jsxs("div", { children: [canDec ? (jsx(ArrowButton, { className: style('absolute z-40', btnClass[0], className), onClick: dec, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043B\u0435\u0432\u043E", "data-block-control": "scroll-left", disabled: !canDec })) : null, canInc ? (jsx(ArrowButton, { className: style('absolute z-40 rotate-180', btnClass[1], className), onClick: inc, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043F\u0440\u0430\u0432\u043E", "data-block-control": "scroll-right", disabled: !canInc })) : null] }));
1848
1851
  }
1849
1852
 
1850
1853
  const calculatorValueBlockStyle = 'flex justify-between @xl:flex-col';
@@ -2912,7 +2915,7 @@
2912
2915
  : null;
2913
2916
  }
2914
2917
 
2915
- const getBorderStyle = (showBorder) => showBorder
2918
+ const getBorderStyle = (showBorder = false) => showBorder
2916
2919
  ? 'border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider'
2917
2920
  : '';
2918
2921
 
@@ -2967,11 +2970,8 @@
2967
2970
  'CarouselBankHistoryCard',
2968
2971
  'CarouselCatalogCard',
2969
2972
  'CarouselInvestmentCard',
2970
- 'CarouselProductCard',
2971
- 'CarouselProgramsCard',
2972
2973
  'CarouselRecommendationCard',
2973
2974
  'CarouselTariffsCard',
2974
- 'CarouselInvestmentCard',
2975
2975
  'RichTextBlock',
2976
2976
  'ProductBlock',
2977
2977
  ];
@@ -4027,9 +4027,8 @@
4027
4027
  const renderMonthNames = (item, colSize) => item.month?.map((_, i) => (jsx("div", { style: { flexBasis: `${colSize}%` }, children: _.text }, `monthName-${i}`)));
4028
4028
  const renderMonthImages = (item) => item.month?.map((_) => _.image?.src ? (jsx("div", { className: "h-52 border-r pr-s border-main-divider last:border-r-0", children: jsx(Img, { image: _.image, className: "flex" }) }, `monthImage-${_.image.src}`)) : null);
4029
4029
 
4030
- const isHrefActive = (router) => ({ href }) => !href
4031
- ? false
4032
- : withoutQuery(isURL(href) ? router.href : router.pathname).startsWith(withoutQuery(href));
4030
+ const isHrefActive = (router) => ({ href }) => !href ? false : withoutQuery(getRouterHref(href, router)).startsWith(withoutQuery(href));
4031
+ const getRouterHref = (href, router) => isURL(href) ? router.href : router.pathname;
4033
4032
 
4034
4033
  const isTopItemActive = (router) => isHrefActive(projectSettings.BASE_PATH ? { pathname: projectSettings.BASE_PATH } : router);
4035
4034
 
@@ -5059,7 +5058,7 @@
5059
5058
 
5060
5059
  const foldableSectionStyles = 'grid grid-cols-12 [&>*]:pb-m';
5061
5060
 
5062
- const getIconName = (isUnfolded) => (isUnfolded ? 'MinusIcon' : 'PlusIcon');
5061
+ const getIconName = (isUnfolded = false) => (isUnfolded ? 'MinusIcon' : 'PlusIcon');
5063
5062
 
5064
5063
  const rollupItemStyles = 'border-0 border-b border-solid border-main-divider last:border-b-0';
5065
5064
 
@@ -5791,7 +5790,7 @@
5791
5790
  return (jsx("div", { className: "flex items-end absolute bottom-0 right-0 h-full pointer-events-none", children: jsx(LikeControl, { className: "rounded-tl-3xl sticky bottom-0 pointer-events-auto" }) }));
5792
5791
  }
5793
5792
 
5794
- const packageVersion = "0.14.99";
5793
+ const packageVersion = "0.14.100";
5795
5794
 
5796
5795
  exports.Blocks = Blocks;
5797
5796
  exports.ContentPage = ContentPage;