@dynamo-caffeina-dev/locator-frontend 0.1.0 → 0.3.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/{GoogleMapsProvider-CuAw3EcK.js → GoogleMapsProvider-Cr9-hc7W.js} +2 -2
- package/dist/{GoogleMapsProvider-CuAw3EcK.js.map → GoogleMapsProvider-Cr9-hc7W.js.map} +1 -1
- package/dist/index-QZMGWhO0.js +10043 -0
- package/dist/index-QZMGWhO0.js.map +1 -0
- package/dist/index.d.ts +39 -5
- package/dist/index.es.js +1 -1
- package/dist/index.umd.js +61 -56
- package/dist/index.umd.js.map +1 -1
- package/package.json +3 -2
- package/dist/index-CpZzDYR0.js +0 -8905
- package/dist/index-CpZzDYR0.js.map +0 -1
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,21 @@ 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;
|
|
300
|
+
/**
|
|
301
|
+
* Whether to enable Google marker clustering;
|
|
302
|
+
* if true, Google marker clustering can be defined
|
|
303
|
+
*/
|
|
304
|
+
withGoogleClustering?: boolean;
|
|
287
305
|
};
|
|
288
306
|
|
|
289
307
|
/**
|
|
@@ -320,6 +338,22 @@ export declare interface LocatorProps extends LocatorConfig {
|
|
|
320
338
|
* Specifies which events should be tracked and with what tracker functions
|
|
321
339
|
*/
|
|
322
340
|
trackingConfig?: TrackingConfig;
|
|
341
|
+
/**
|
|
342
|
+
* Defines custom markers;
|
|
343
|
+
*/
|
|
344
|
+
customMarkers?: CustomMarkersType[];
|
|
345
|
+
/**
|
|
346
|
+
* Defines custom info window;
|
|
347
|
+
*/
|
|
348
|
+
customInfoWindow?: CustomInfoWindowType;
|
|
349
|
+
/**
|
|
350
|
+
* Defines custom zoom levels;
|
|
351
|
+
*/
|
|
352
|
+
customZoomLevels?: CustomZoomLevelsType;
|
|
353
|
+
/**
|
|
354
|
+
* Defines clustering provider;
|
|
355
|
+
*/
|
|
356
|
+
clusteringProvider?: string;
|
|
323
357
|
}
|
|
324
358
|
|
|
325
359
|
/**
|
package/dist/index.es.js
CHANGED