@dynamo-caffeina-dev/locator-frontend 0.0.19 → 0.1.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
@@ -131,6 +131,11 @@ export declare interface CTATrackingData extends BaseTrackingData {
131
131
 
132
132
  declare type CustomizableComponents = "locationCard" | "ctaButton";
133
133
 
134
+ declare interface CustomMarkersType {
135
+ markerType: string;
136
+ component: React.FC;
137
+ }
138
+
134
139
  declare interface EndpointDefinition {
135
140
  method: "GET" | "POST";
136
141
  path: string;
@@ -140,7 +145,8 @@ declare interface EndpointDefinition {
140
145
  declare enum EndpointId {
141
146
  CLUSTERS = "clusters",
142
147
  MARKERS = "markers",
143
- FIND = "find"
148
+ FIND = "find",
149
+ ALL_MARKERS = "allMarkers"
144
150
  }
145
151
 
146
152
  declare type EndpointMapType = {
@@ -244,6 +250,11 @@ declare type LocatorConfig = {
244
250
  * Can be `null`, or a partial value, since the app sets default values.
245
251
  */
246
252
  featureFlags: LocatorFeaturesType | null;
253
+ /**
254
+ * Whether to enable custom markers;
255
+ * if true, custom markers can be defined
256
+ */
257
+ customMarkers?: CustomMarkersType[];
247
258
  };
248
259
 
249
260
  declare type LocatorFeaturesType = {
@@ -262,6 +273,17 @@ declare type LocatorFeaturesType = {
262
273
  * if false, the share functionality will be disabled
263
274
  */
264
275
  share?: boolean;
276
+ /**
277
+ * Whether to enable clusters visualization;
278
+ * if true (default), markers are grouped into clusters for better performance;
279
+ * if false, all markers are displayed individually and no clustering is performed
280
+ */
281
+ withClusters?: boolean;
282
+ /**
283
+ * Whether to enable custom markers;
284
+ * if true, custom markers can be defined
285
+ */
286
+ withCustomMarkers?: boolean;
265
287
  };
266
288
 
267
289
  /**
@@ -343,6 +365,7 @@ export declare type MarkerType = BaseMapItem & {
343
365
  address?: string;
344
366
  capabilities?: CapabilityGroupType[];
345
367
  on_share?: SocialConfigType[];
368
+ markerType?: string;
346
369
  actions?: ActionDefinition[];
347
370
  };
348
371
 
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-CpZzDYR0.js";
2
2
  export {
3
3
  r as Map,
4
4
  s as Search,