@tracktor/map 0.5.5 → 0.5.7

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.
@@ -1,3 +1,4 @@
1
+ import { ReactElement } from 'react';
1
2
  import { MarkerMapProps } from '../../types/MarkerMapProps.ts';
2
3
  /**
3
4
  * MarkerMap is a reusable React component that displays an interactive Mapbox map
@@ -35,7 +36,7 @@ import { MarkerMapProps } from '../../types/MarkerMapProps.ts';
35
36
  * @param {(lng: number, lat: number) => void} [props.onMapClick] - Callback triggered when the map is clicked.
36
37
  * @param {"light" | "dark" | ThemeOptions} [props.theme] - Optional theme override for map rendering.
37
38
  *
38
- * @returns {JSX.Element} The rendered map component with optional markers and behavior.
39
+ * @returns {ReactElement} The rendered map component with optional markers and behavior.
39
40
  *
40
41
  * @example
41
42
  * ```tsx
@@ -54,5 +55,5 @@ import { MarkerMapProps } from '../../types/MarkerMapProps.ts';
54
55
  * />
55
56
  * ```
56
57
  */
57
- declare const MarkerMap: ({ containerStyle, square, theme, height, width, ...props }: MarkerMapProps) => import("react/jsx-runtime").JSX.Element;
58
+ declare const MarkerMap: ({ containerStyle, square, theme, height, width, ...props }: MarkerMapProps) => ReactElement;
58
59
  export default MarkerMap;
@@ -14,11 +14,10 @@ export declare const DEFAULT_CENTER_LAT = 46.8677;
14
14
  * - Handles map click events with a provided callback
15
15
  * - Supports customizable flyTo behavior, zoom levels, and map style
16
16
  */
17
- declare const useMarkerMap: ({ markers, loading, center, openPopup, onMapClick, flyToDuration, fitBoundDuration, fitBounds, disableFlyTo, fitBoundsPadding, projection, mapStyle, baseMapView, zoom, zoomFlyFrom, isScrollZoomRestricted, }: MarkerMapProps) => {
17
+ declare const useMarkerMap: ({ markers, loading, center, openPopup, onMapClick, flyToDuration, fitBoundDuration, fitBounds, disableFlyTo, fitBoundsPadding, projection, mapStyle, baseMapView, zoom, zoomFlyFrom, cooperativeGestures, doubleClickZoom, }: MarkerMapProps) => {
18
18
  loading: boolean | undefined;
19
19
  map: import('react').RefObject<Map | null>;
20
20
  mapContainer: import('react').RefObject<HTMLDivElement | null>;
21
21
  markers: import('../../main').MarkerProps[] | undefined;
22
- webGLSupported: boolean;
23
22
  };
24
23
  export default useMarkerMap;
package/dist/main.d.ts CHANGED
@@ -6,7 +6,5 @@ export { default as MarkerMap } from './components/MarkerMap/MarkerMap';
6
6
  export * from './components/MarkerMap/MarkerMap';
7
7
  export { default as isValidLatLng } from './utils/isValidLatLng';
8
8
  export * from './utils/isValidLatLng';
9
- export { default as isWebGLSupported } from './utils/isWebGLSupported';
10
- export * from './utils/isWebGLSupported';
11
9
  export * from './types/MarkerProps';
12
10
  export * from './types/MarkerMapProps';