@omnic/widget-locations 1.1.21 → 1.1.24

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
@@ -130,40 +130,40 @@ type CallbackPoint = LocationPoint | CourierDeliveryPoint;
130
130
 
131
131
  Then `OMNIC_WIDGET_LOCATIONS_CONFIG` has the following structure:
132
132
 
133
- | Property | Type | Description |
134
- | ------------------------------- | -------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- |
135
- | INN | string | INN of the company that uses the widget |
136
- | font | string | Font family to use |
137
- | radius | number | Border radius of buttons |
138
- | locale | string | Locale of the widget. Currently supported: `en`, `ru` |
139
- | country | string | Country code in ISO 3166-1 Alpha-2 format |
140
- | palette | object | Palette config object |
141
- | palette.primary | string | Primary color of the widget. Example: `#ff0000` |
142
- | palette.primary-dark | string | Darker version of the primary color. Example: `#cc0000` |
143
- | map | object | Map config object. See below for details |
144
- | logo | string | Logo type. Accepts `default` or `llama` |
145
- | map.provider | string | Map provider. Currently supported: `google` |
146
- | map.center | number[] | Coordinates of the map center. Example: `[55.75, 37.57]` |
147
- | map.initialZoom | number | Initial zoom level of the map. Example: `10` |
148
- | hideLogo | boolean | Whether to hide the logo |
149
- | startScreen | string | Start screen of the widget. Currently supported: `map`, `selector` |
150
- | disableDelivery | boolean | Whether to disable delivery option |
151
- | inputs | WidgetInputs | Control over widget inputs |
152
- | handlers | WidgetHandlers | Handlers config object |
153
- | hideHeader | boolean | Whether to hide header |
154
- | hideFilters | boolean | Whether to hide filters |
155
- | hideDetails | boolean | Whether to hide details |
156
- | hideSearchInput | boolean | Whether to hide search input |
157
- | hideMapControls | boolean | Whether to hide map controls |
158
- | hideDeliveryTime | boolean | Whether to hide delivery time |
159
- | hideCloseButtonOnLocationScreen | boolean | Whether to hide close button on location screen |
160
- | disableGeolocation | boolean | Whether to disable geolocation |
161
- | skipPointInfo | boolean | if true - open parcel-locker details window immediately |
162
- | roundedCorners | boolean | if true - rounded corners on map |
163
- | mapTheme | 'omnic', 'google', 'omnic-light' | Change map color scheme. 'google' by default |
164
- | onPointClick | function | Callback that will be called when user clicks on a point on the map. |
165
- | onLocationSelect | function | Callback that will be called when user selects a location Callback will be called with `google.maps.places.PlaceResult` argument |
166
- | onCloseLocationSelector | function | Callback that will be called when user closes location selector |
133
+ | Property | Type | Description |
134
+ | ------------------------------- | ------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- |
135
+ | INN | string | INN of the company that uses the widget |
136
+ | font | string | Font family to use |
137
+ | radius | number | Border radius of buttons |
138
+ | locale | string | Locale of the widget. Currently supported: `en`, `ru` |
139
+ | country | string | Country code in ISO 3166-1 Alpha-2 format |
140
+ | palette | object | Palette config object |
141
+ | palette.primary | string | Primary color of the widget. Example: `#ff0000` |
142
+ | palette.primary-dark | string | Darker version of the primary color. Example: `#cc0000` |
143
+ | map | object | Map config object. See below for details |
144
+ | logo | string | Logo type. Accepts `default` or `llama` |
145
+ | map.provider | string | Map provider. Currently supported: `google` |
146
+ | map.center | number[] | Coordinates of the map center. Example: `[55.75, 37.57]` |
147
+ | map.initialZoom | number | Initial zoom level of the map. Example: `10` |
148
+ | hideLogo | boolean | Whether to hide the logo |
149
+ | startScreen | string | Start screen of the widget. Currently supported: `map`, `selector` |
150
+ | disableDelivery | boolean | Whether to disable delivery option |
151
+ | inputs | WidgetInputs | Control over widget inputs |
152
+ | handlers | WidgetHandlers | Handlers config object |
153
+ | hideHeader | boolean | Whether to hide header |
154
+ | hideFilters | boolean | Whether to hide filters |
155
+ | hideDetails | boolean | Whether to hide details |
156
+ | hideSearchInput | boolean | Whether to hide search input |
157
+ | hideMapControls | boolean | Whether to hide map controls |
158
+ | hideDeliveryTime | boolean | Whether to hide delivery time |
159
+ | hideCloseButtonOnLocationScreen | boolean | Whether to hide close button on location screen |
160
+ | disableGeolocation | boolean | Whether to disable geolocation |
161
+ | skipPointInfo | boolean | if true - open parcel-locker details window immediately |
162
+ | roundedCorners | boolean | if true - rounded corners on map |
163
+ | mapTheme | 'omnic', 'google', 'omnicLight' | Change map color scheme. 'google' by default |
164
+ | onPointClick | function | Callback that will be called when user clicks on a point on the map. |
165
+ | onLocationSelect | function | Callback that will be called when user selects a location Callback will be called with `google.maps.places.PlaceResult` argument |
166
+ | onCloseLocationSelector | function | Callback that will be called when user closes location selector |
167
167
 
168
168
  `WidgetInputs` type has the following structure:
169
169
 
@@ -1,5 +1,6 @@
1
1
  /// <reference types="google.maps" />
2
2
  export declare const omnicStyles: google.maps.MapTypeStyle[];
3
+ export declare const omnicLightStyles: google.maps.MapTypeStyle[];
3
4
  export declare const mapOptions: google.maps.MapOptions;
4
5
  export declare const markerOptions: google.maps.MarkerOptions;
5
6
  export declare const mountTimeout = 1000;
@@ -69,7 +69,7 @@ export interface WidgetConfig {
69
69
  hideCloseButtonOnLocationScreen?: boolean;
70
70
  skipPointInfo?: boolean;
71
71
  roundedCorners?: boolean;
72
- mapTheme?: "omnic" | "google";
72
+ mapTheme?: "omnic" | "google" | "omnicLight";
73
73
  onPointClick?: PointClickHandler;
74
74
  onLocationSelect?: LocationSelectHandler;
75
75
  onCloseLocationSelector?: CloseLocationSelectorHandler;