@partbot/stockist-map 0.1.10 → 0.1.12

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.
@@ -0,0 +1,7 @@
1
+ import type { StockistHit, StockistMapConfig } from "./types";
2
+ export type StockistComponent = "map" | "search";
3
+ export type StockistEventName = "stockist locator viewed" | "stockist search completed" | "stockist result viewed" | "stockist selected" | "stockist action clicked" | "stockist view all clicked" | "stockist search failed" | "stockist location failed";
4
+ export type AnalyticsProperties = Record<string, boolean | number | string | string[] | null | undefined>;
5
+ export declare function analyticsId(): string;
6
+ export declare function stockistProperties(hit: StockistHit, rank?: number): AnalyticsProperties;
7
+ export declare function captureStockistEvent(config: StockistMapConfig | null, event: StockistEventName, component: StockistComponent, locatorSessionId: string, properties?: AnalyticsProperties, fetchImplementation?: typeof fetch): void;
package/dist/links.d.ts CHANGED
@@ -3,3 +3,4 @@ export declare function googleMapsDirectionsUrl(coordinate: {
3
3
  lat: number;
4
4
  lng: number;
5
5
  }): string;
6
+ export declare function phoneLinkText(phone: string, display?: "call_now" | "number"): string;