@omnic/widget-locations 1.1.41 → 1.1.43
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.
- package/dist/lib/context/WidgetLocations/WidgetLocations.d.ts +3 -0
- package/dist/lib/context/WidgetLocations/components/MapPlaceholder/MapPlaceholder.d.ts +1 -0
- package/dist/lib/context/WidgetLocations/components/MapPlaceholder/index.d.ts +1 -0
- package/dist/lib/context/WidgetLocations/index.d.ts +1 -0
- package/dist/lib/context/WidgetLocations/type.d.ts +15 -0
- package/dist/lib/index.d.ts +2 -0
- package/dist/lib/widget.cjs.js +31 -31
- package/dist/lib/widget.esm.js +1758 -1703
- package/package.json +2 -2
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { WidgetLocationsContextProps, WidgetLocationsContextValue } from "./type";
|
|
2
|
+
export declare const WidgetLocationsProvider: ({ children, widgetConfig, widgetOptions }: WidgetLocationsContextProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare function useWidgetLocationsContext(): WidgetLocationsContextValue;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const MapPlaceholder: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { MapPlaceholder } from "./MapPlaceholder";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useWidgetLocationsContext, WidgetLocationsProvider } from "./WidgetLocations";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { WidgetConfig, WidgetOptions } from '../../types/config';
|
|
3
|
+
import type { PointClickHandler } from '../../types/map';
|
|
4
|
+
import type { LocationPoint } from '../../types/points';
|
|
5
|
+
export type OnSamePointsClick = (data: LocationPoint[]) => void;
|
|
6
|
+
export interface WidgetLocationsContextValue {
|
|
7
|
+
widgetLocationsRef: React.RefObject<HTMLDivElement>;
|
|
8
|
+
onPointClickProxy: React.MutableRefObject<PointClickHandler | null>;
|
|
9
|
+
onSamePointsClusterClickProxy: React.MutableRefObject<OnSamePointsClick | null>;
|
|
10
|
+
}
|
|
11
|
+
export interface WidgetLocationsContextProps {
|
|
12
|
+
children: React.ReactNode;
|
|
13
|
+
widgetConfig?: WidgetConfig;
|
|
14
|
+
widgetOptions?: WidgetOptions;
|
|
15
|
+
}
|
package/dist/lib/index.d.ts
CHANGED