@dynamo-caffeina-dev/locator-frontend 0.3.0 → 0.5.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
@@ -19,6 +19,8 @@ export declare type ActionDefinition = {
19
19
 
20
20
  declare type ActionType = "share" | "directions" | "navigate" | "event" | "calendar" | "email";
21
21
 
22
+ declare type AddressFormats = "ZIP_CITY_PROVINCE" | "STREET_ZIP_CITY_PROVINCE" | "STREET_CITY_PROVINCE" | "ZIP_CITY" | "CITY_PROVINCE" | "STREET_CITY" | "STREET_ZIP_CITY";
23
+
22
24
  /**
23
25
  * Data structure for area search events
24
26
  */
@@ -129,8 +131,10 @@ export declare interface CTATrackingData extends BaseTrackingData {
129
131
  cta_label?: string;
130
132
  }
131
133
 
134
+ declare type CustomInfoWindowProps = Pick<MarkerWithInfoWindowProps, "title" | "actions" | "address"> & Omit<MarkerWithInfoWindowProps, "id" | "coords" | "markerType" | "onClick" | "onRightButtonClick" | "title" | "actions" | "address" | "zip" | "province" | "street" | "city" | "country">;
135
+
132
136
  declare type CustomInfoWindowType = null | {
133
- component: React.FC;
137
+ component: React.FC<CustomInfoWindowProps>;
134
138
  };
135
139
 
136
140
  declare type CustomizableComponents = "locationCard" | "ctaButton";
@@ -297,11 +301,6 @@ declare type LocatorFeaturesType = {
297
301
  * if true, custom info window can be defined
298
302
  */
299
303
  withCustomInfoWindow?: boolean;
300
- /**
301
- * Whether to enable Google marker clustering;
302
- * if true, Google marker clustering can be defined
303
- */
304
- withGoogleClustering?: boolean;
305
304
  };
306
305
 
307
306
  /**
@@ -354,6 +353,12 @@ export declare interface LocatorProps extends LocatorConfig {
354
353
  * Defines clustering provider;
355
354
  */
356
355
  clusteringProvider?: string;
356
+ /**
357
+ * Defines presentation options;
358
+ * these are options that are presentational in nature
359
+ * and do not affect the low-level functionality of the library.
360
+ */
361
+ presentationPrefs?: PresentationOptionsType;
357
362
  }
358
363
 
359
364
  /**
@@ -401,8 +406,22 @@ export declare type MarkerType = BaseMapItem & {
401
406
  on_share?: SocialConfigType[];
402
407
  markerType?: string;
403
408
  actions?: ActionDefinition[];
409
+ zip?: string;
410
+ province?: string;
411
+ street?: string;
412
+ city?: string;
413
+ country?: string;
404
414
  };
405
415
 
416
+ declare type MarkerWithInfoWindowProps = Omit<MarkerType, "on_share" | "capabilities" | "timestamp"> & {
417
+ onClick?: () => void;
418
+ onRightButtonClick?: () => void;
419
+ };
420
+
421
+ declare type PresentationOptionsType = {
422
+ addressFormat?: AddressFormats;
423
+ } | null;
424
+
406
425
  export declare function Search(): default_2.JSX.Element | null;
407
426
 
408
427
  /**
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-QZMGWhO0.js";
1
+ import { M as r, S as s, T as t, L as c, t as i } from "./index-BhpoYiuQ.js";
2
2
  export {
3
3
  r as Map,
4
4
  s as Search,