@omnic/widget-locations 1.0.13 → 1.0.14

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,5 +1,4 @@
1
1
  /// <reference types="google.maps" />
2
- export declare const center: google.maps.LatLngLiteral;
3
2
  export declare const zoom = 10;
4
3
  export declare const mapOptions: google.maps.MapOptions;
5
4
  export declare const markerOptions: google.maps.MarkerOptions;
@@ -5,7 +5,6 @@ import { Locale } from '../../types/i18n';
5
5
  type YMapsQuery = NonNullable<React.ComponentProps<typeof YMaps>["query"]>;
6
6
  export declare const localesMap: Record<Locale, YMapsQuery["lang"]>;
7
7
  export declare const query: YMapsQuery;
8
- export declare const mapState: ymaps.IMapState;
9
8
  export declare const mapModules: YMapsModules;
10
9
  export declare const objectManagerModules: YMapsModules;
11
10
  export declare const placemarkModules: YMapsModules;
@@ -4,8 +4,9 @@ import { CourierPoint, LocationPoint } from '../types/points';
4
4
  interface UsePointsParams {
5
5
  city?: City;
6
6
  filter: Filter;
7
+ center?: Coordinates;
7
8
  }
8
- export declare const usePoints: ({ city, filter }: UsePointsParams) => {
9
+ export declare const usePoints: ({ city, filter, center }: UsePointsParams) => {
9
10
  error: boolean;
10
11
  points: LocationPoint[];
11
12
  loaded: boolean;
@@ -7,13 +7,14 @@ interface Palette {
7
7
  "primary-dark"?: HexColor;
8
8
  }
9
9
  interface MapConfig {
10
+ center?: Coordinates;
10
11
  provider?: MapProvider;
11
12
  }
12
13
  export interface WidgetConfig {
13
14
  font?: string;
14
- locale?: Locale;
15
- radius?: number;
16
15
  map?: MapConfig;
16
+ radius?: number;
17
+ locale?: Locale;
17
18
  palette?: Palette;
18
19
  INN: number | string;
19
20
  onPointClick: (point: LocationPoint | CourierDeliveryPoint) => void;
@@ -0,0 +1,2 @@
1
+ import { HoursMinutes } from '../types/filters';
2
+ export declare const fromHoursMinutesToMinutes: (value: HoursMinutes) => number;
@@ -0,0 +1,2 @@
1
+ import { HoursMinutes } from '../types/filters';
2
+ export declare const fromMinutesToHoursMinutes: (value: number) => HoursMinutes;
@@ -0,0 +1 @@
1
+ export declare const getBoundsFromPoint: (point: Coordinates, offset: number) => Bounds;
@@ -0,0 +1,3 @@
1
+ export * from "./fromHoursMinutesToMinutes";
2
+ export * from "./fromMinutesToHoursMinutes";
3
+ export * from "./getBoundsFromPoint";