@omnic/widget-locations 1.1.59 → 1.1.60

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,6 +171,7 @@ 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 |
174
175
 
175
176
  `WidgetInputs` type has the following structure:
176
177
 
@@ -1,4 +1,4 @@
1
- import type { FC, ReactNode } from "react";
1
+ import { type FC, type ReactNode } from "react";
2
2
  export interface GeoCenterProviderProps {
3
3
  children: ReactNode;
4
4
  }
@@ -78,6 +78,7 @@ export interface WidgetConfig {
78
78
  regionName?: string;
79
79
  cityName?: string;
80
80
  warehouseSelection?: boolean;
81
+ enableBrowserGeolocation?: boolean;
81
82
  onPointClick?: PointClickHandler;
82
83
  onLocationSelect?: LocationSelectHandler;
83
84
  onWarehouseSelect?: (point: WarehousePoint) => void;