@redneckz/wildless-cms-uni-blocks 0.14.669 → 0.14.670

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.
@@ -1977,6 +1977,7 @@
1977
1977
  // TODO: На макетах также когда есть поле поиска нет кнопки открыть на карте.
1978
1978
  const YandexMap = JSX(({ points, className = '', zoom = 5, isLoad }) => {
1979
1979
  const map = useRef(null);
1980
+ const parentDiv = useRef(null);
1980
1981
  const yandexMaps = useYandexMaps();
1981
1982
  useEffect(() => {
1982
1983
  if (map.current) {
@@ -1989,7 +1990,7 @@
1989
1990
  renderClusterer({ yandexMaps, map: map.current, points, isLoad });
1990
1991
  return;
1991
1992
  }
1992
- map.current = new yandexMaps.Map('map', {
1993
+ map.current = new yandexMaps.Map(parentDiv.current, {
1993
1994
  center: getCenterPoint(points),
1994
1995
  zoom,
1995
1996
  controls: [],
@@ -2003,7 +2004,7 @@
2003
2004
  return null;
2004
2005
  }
2005
2006
  const zIndex = 'z-10';
2006
- return (jsxs("div", { id: "map", className: style('relative', 'w-full', className), children: [isLoad ? jsx(Loader, {}) : null, jsxs("div", { className: style('absolute right-2 top-52 z-10 w-12 overflow-hidden border border-transparent rounded-md', zIndex), children: [jsx(ZoomButton, { yandexMaps: map }), jsx(ZoomButton, { yandexMaps: map, direction: "out" })] }), renderUserGeolocation(map, yandexMaps, style('right-2 top-80', zIndex))] }));
2007
+ return (jsxs("div", { ref: parentDiv, className: style('relative', 'w-full', className), children: [isLoad ? jsx(Loader, {}) : null, jsxs("div", { className: style('absolute right-2 top-52 z-10 w-12 overflow-hidden border border-transparent rounded-md', zIndex), children: [jsx(ZoomButton, { yandexMaps: map }), jsx(ZoomButton, { yandexMaps: map, direction: "out" })] }), renderUserGeolocation(map, yandexMaps, style('right-2 top-80', zIndex))] }));
2007
2008
  });
2008
2009
  const getCenterPoint = (points) => {
2009
2010
  const centerCoords = [
@@ -9984,7 +9985,7 @@
9984
9985
  slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
9985
9986
  });
9986
9987
 
9987
- const packageVersion = "0.14.668";
9988
+ const packageVersion = "0.14.669";
9988
9989
 
9989
9990
  exports.Blocks = Blocks;
9990
9991
  exports.ContentPage = ContentPage;