@omnic/widget-locations 1.1.61 → 1.1.62

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/README.md CHANGED
@@ -171,7 +171,6 @@ Then `OMNIC_WIDGET_LOCATIONS_CONFIG` has the following structure:
171
171
  | cityName | string | used for points loading |
172
172
  | warehouseSelection | boolean | enable/disable select a warehouse on the map |
173
173
  | onWarehouseSelect | function | Callback that will be called when user select on a warehouse on the map. |
174
- | enableBrowserGeolocation | boolean | enable browser geolocation |
175
174
 
176
175
  `WidgetInputs` type has the following structure:
177
176
 
@@ -6,7 +6,6 @@ export * from "./useMergedRef";
6
6
  export * from "./useInputProps";
7
7
  export * from "./useMediaWidthDown";
8
8
  export * from "./useMediaQuery";
9
- export * from "./useGeoCenter";
10
9
  export * from "./useLocaleWatcher";
11
10
  export * from "./usePaletteWatcher";
12
11
  export * from "./useButtonRadiusWatcher";
@@ -42,6 +42,9 @@ interface Action {
42
42
  * @returns A promise that resolves when the place is set.
43
43
  */
44
44
  setPlaceAndPoint(coordinates: Coordinates, config?: Config): Promise<google.maps.places.PlaceResult>;
45
+ setPlaceSimple: (place: Nullable<google.maps.places.PlaceResult>, config?: {
46
+ withNavigation: boolean;
47
+ }) => void;
45
48
  setMapKey(mapKey: string): void;
46
49
  }
47
50
  /**
@@ -78,7 +78,6 @@ export interface WidgetConfig {
78
78
  regionName?: string;
79
79
  cityName?: string;
80
80
  warehouseSelection?: boolean;
81
- enableBrowserGeolocation?: boolean;
82
81
  onPointClick?: PointClickHandler;
83
82
  onLocationSelect?: LocationSelectHandler;
84
83
  onWarehouseSelect?: (point: WarehousePoint) => void;