@dynamo-caffeina-dev/locator-frontend 0.0.20 → 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,8 +129,21 @@ 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
 
138
+ declare interface CustomMarkersType {
139
+ markerType: string;
140
+ component: React.FC;
141
+ }
142
+
143
+ declare type CustomZoomLevelsType = null | {
144
+ INITIAL_ZOOM_LEVEL?: number;
145
+ };
146
+
134
147
  declare interface EndpointDefinition {
135
148
  method: "GET" | "POST";
136
149
  path: string;
@@ -140,7 +153,8 @@ declare interface EndpointDefinition {
140
153
  declare enum EndpointId {
141
154
  CLUSTERS = "clusters",
142
155
  MARKERS = "markers",
143
- FIND = "find"
156
+ FIND = "find",
157
+ ALL_MARKERS = "allMarkers"
144
158
  }
145
159
 
146
160
  declare type EndpointMapType = {
@@ -262,6 +276,27 @@ declare type LocatorFeaturesType = {
262
276
  * if false, the share functionality will be disabled
263
277
  */
264
278
  share?: boolean;
279
+ /**
280
+ * Whether to enable clusters visualization;
281
+ * if true (default), markers are grouped into clusters for better performance;
282
+ * if false, all markers are displayed individually and no clustering is performed
283
+ */
284
+ withClusters?: boolean;
285
+ /**
286
+ * Whether to enable custom markers;
287
+ * if true, custom markers can be defined
288
+ */
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;
265
300
  };
266
301
 
267
302
  /**
@@ -298,6 +333,18 @@ export declare interface LocatorProps extends LocatorConfig {
298
333
  * Specifies which events should be tracked and with what tracker functions
299
334
  */
300
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;
301
348
  }
302
349
 
303
350
  /**
@@ -343,6 +390,7 @@ export declare type MarkerType = BaseMapItem & {
343
390
  address?: string;
344
391
  capabilities?: CapabilityGroupType[];
345
392
  on_share?: SocialConfigType[];
393
+ markerType?: string;
346
394
  actions?: ActionDefinition[];
347
395
  };
348
396
 
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-BOmO-tA7.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,