@milemaker/milemaker-js 1.0.1 → 1.0.2-alpha.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.
@@ -20,4 +20,4 @@ import { CreateMapProps, MapInstance } from "./types";
20
20
  * });
21
21
  * ```
22
22
  */
23
- export declare const createMap: ({ container, baseApiUrl, accessToken, initialZoom, initialCenter, baseLayer, onReady, onError }: CreateMapProps) => Promise<MapInstance>;
23
+ export declare const createMap: (props: CreateMapProps) => Promise<MapInstance>;
@@ -0,0 +1,9 @@
1
+ import { MapInstance } from "../types";
2
+ import "./styles/errorMap.scss";
3
+ type RenderErrorMapProps = {
4
+ container: HTMLElement | string;
5
+ onRetry(): Promise<MapInstance>;
6
+ error: Error;
7
+ };
8
+ export declare const renderErrorMap: ({ container, onRetry, error }: RenderErrorMapProps) => void;
9
+ export {};
@@ -0,0 +1,13 @@
1
+ export declare enum Mail {
2
+ SUPPORT = "support@milemaker.com"
3
+ }
4
+ /**
5
+ * This helper is used to receive the HrefLink to support
6
+ * @param {string} subject - Email subject
7
+ * @param {string} body - Email body
8
+ * @returns {string} - Support Href Link
9
+ */
10
+ export declare const getMailToSupportHrefLink: ({ subject, body }?: {
11
+ subject?: string | undefined;
12
+ body?: string | undefined;
13
+ }) => string;
@@ -0,0 +1 @@
1
+ export declare const handleAnchorNavigate: (url: string, blank?: boolean) => () => void;
@@ -0,0 +1 @@
1
+ export declare const parseStringAsJson: (stg: string) => any;
@@ -0,0 +1,4 @@
1
+ export declare const triggerMapSdkInitEvent: ({ apiKey, proxyEnv }: {
2
+ apiKey: string;
3
+ proxyEnv: string;
4
+ }) => Promise<void>;