@dynamo-caffeina-dev/locator-frontend 0.1.0 → 0.2.0

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/index.d.ts CHANGED
@@ -129,6 +129,10 @@ export declare interface CTATrackingData extends BaseTrackingData {
129
129
  cta_label?: string;
130
130
  }
131
131
 
132
+ declare type CustomInfoWindowType = null | {
133
+ component: React.FC;
134
+ };
135
+
132
136
  declare type CustomizableComponents = "locationCard" | "ctaButton";
133
137
 
134
138
  declare interface CustomMarkersType {
@@ -136,6 +140,10 @@ declare interface CustomMarkersType {
136
140
  component: React.FC;
137
141
  }
138
142
 
143
+ declare type CustomZoomLevelsType = null | {
144
+ INITIAL_ZOOM_LEVEL?: number;
145
+ };
146
+
139
147
  declare interface EndpointDefinition {
140
148
  method: "GET" | "POST";
141
149
  path: string;
@@ -250,11 +258,6 @@ declare type LocatorConfig = {
250
258
  * Can be `null`, or a partial value, since the app sets default values.
251
259
  */
252
260
  featureFlags: LocatorFeaturesType | null;
253
- /**
254
- * Whether to enable custom markers;
255
- * if true, custom markers can be defined
256
- */
257
- customMarkers?: CustomMarkersType[];
258
261
  };
259
262
 
260
263
  declare type LocatorFeaturesType = {
@@ -284,6 +287,16 @@ declare type LocatorFeaturesType = {
284
287
  * if true, custom markers can be defined
285
288
  */
286
289
  withCustomMarkers?: boolean;
290
+ /**
291
+ * Whether to enable area search;
292
+ * if true, area search functionality will be enabled
293
+ */
294
+ withAreaSearch?: boolean;
295
+ /**
296
+ * Whether to enable custom info window;
297
+ * if true, custom info window can be defined
298
+ */
299
+ withCustomInfoWindow?: boolean;
287
300
  };
288
301
 
289
302
  /**
@@ -320,6 +333,18 @@ export declare interface LocatorProps extends LocatorConfig {
320
333
  * Specifies which events should be tracked and with what tracker functions
321
334
  */
322
335
  trackingConfig?: TrackingConfig;
336
+ /**
337
+ * Defines custom markers;
338
+ */
339
+ customMarkers?: CustomMarkersType[];
340
+ /**
341
+ * Defines custom info window;
342
+ */
343
+ customInfoWindow?: CustomInfoWindowType;
344
+ /**
345
+ * Defines custom zoom levels;
346
+ */
347
+ customZoomLevels?: CustomZoomLevelsType;
323
348
  }
324
349
 
325
350
  /**
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { M as r, S as s, T as t, L as c, t as i } from "./index-CpZzDYR0.js";
1
+ import { M as r, S as s, T as t, L as c, t as i } from "./index-ByMklYJ4.js";
2
2
  export {
3
3
  r as Map,
4
4
  s as Search,