@mappedin/viewer 0.21.4 → 0.21.5-801044.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.js +17 -16
- package/dist/types/src/components/button/index.d.ts +7 -7
- package/dist/types/src/components/common/fullscreen-overlay.d.ts +7 -7
- package/dist/types/src/components/metadata-card/nav-chevrons.d.ts +7 -7
- package/dist/types/src/components/positioner/index.d.ts +3 -3
- package/dist/types/src/components/search-results/search-result.d.ts +7 -7
- package/dist/types/src/lib/types/options.d.ts +2 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -78178,37 +78178,38 @@ const pCt = (i) => !("data" in i), SR = (i) => "data" in i, mCt = (i) => {
|
|
|
78178
78178
|
};
|
|
78179
78179
|
throw new Error(`Unknown format specified: ${g}`);
|
|
78180
78180
|
}, d = async () => {
|
|
78181
|
+
var x;
|
|
78181
78182
|
let g = 0;
|
|
78182
78183
|
SR(i) && (g = 1);
|
|
78183
78184
|
try {
|
|
78184
78185
|
r(!0);
|
|
78185
|
-
let
|
|
78186
|
+
let y;
|
|
78186
78187
|
switch (g) {
|
|
78187
78188
|
case 1:
|
|
78188
|
-
|
|
78189
|
+
y = await h();
|
|
78189
78190
|
break;
|
|
78190
78191
|
default:
|
|
78191
|
-
|
|
78192
|
+
y = await u();
|
|
78192
78193
|
break;
|
|
78193
78194
|
}
|
|
78194
|
-
if (
|
|
78195
|
+
if (y == null)
|
|
78195
78196
|
throw new Error("Failed to fetch data!");
|
|
78196
78197
|
globalThis.RootStore instanceof o2e && h2.warn("RootStore already exists, overwriting it"), SR(i) && (i.format ?? "mvf") === "mvf" && (Nbe.validateMvf(i.data) || h2.warn("An problem was detected with the MVF data provided! This may cause issues rendering."));
|
|
78197
|
-
const
|
|
78198
|
+
const b = i.venue ?? TV(), v = new Pet({
|
|
78198
78199
|
history: l,
|
|
78199
|
-
base: i.baseUrl ?? `/map/${
|
|
78200
|
-
}),
|
|
78201
|
-
...
|
|
78202
|
-
router:
|
|
78200
|
+
base: i.baseUrl ?? `/map/${b}`
|
|
78201
|
+
}), q = new o2e({
|
|
78202
|
+
...y,
|
|
78203
|
+
router: v,
|
|
78203
78204
|
startupOptions: i,
|
|
78204
|
-
mapId: typeof
|
|
78205
|
+
mapId: typeof b == "string" ? b : void 0,
|
|
78205
78206
|
isMobile: e
|
|
78206
78207
|
});
|
|
78207
|
-
typeof i.overrideShareButtonHandler == "function" &&
|
|
78208
|
-
let
|
|
78209
|
-
i.themeOverride != null && (
|
|
78210
|
-
} catch (
|
|
78211
|
-
h2.error(
|
|
78208
|
+
typeof i.overrideShareButtonHandler == "function" && q.uiStore.setOverrideShareButtonHandler(i.overrideShareButtonHandler);
|
|
78209
|
+
let C = q.isAppEmbedded ? DJe : O7, S = q.isAppEmbedded ? RJe : Py;
|
|
78210
|
+
i.themeOverride != null && (C = KE({}, C, i.themeOverride), S = KE({}, S, i.themeOverride)), q.uiStore.setLightTheme(C), q.uiStore.setDarkTheme(S), s(q), (x = i.onRootStore) == null || x.call(i, q);
|
|
78211
|
+
} catch (y) {
|
|
78212
|
+
h2.error(y), a(!0);
|
|
78212
78213
|
} finally {
|
|
78213
78214
|
r(!1);
|
|
78214
78215
|
}
|
|
@@ -83065,7 +83066,7 @@ const uqe = iP((i) => {
|
|
|
83065
83066
|
/* @__PURE__ */ te.jsx(hle, { children: /* @__PURE__ */ te.jsx(pW, { ...e }) })
|
|
83066
83067
|
), t;
|
|
83067
83068
|
}, hqe = (i, e = {}) => {
|
|
83068
|
-
const t = "
|
|
83069
|
+
const t = "phc_vZrwt3z6JmdPnErvTgZoazTAGlCRMiz6c2NqWtBt8qz", r = "https://ph-api.mappedin.com";
|
|
83069
83070
|
cit(e.captureEnabled ?? !0);
|
|
83070
83071
|
const n = sM();
|
|
83071
83072
|
if (!n.__loaded && t != null && r != null) {
|
|
@@ -8,12 +8,11 @@ export declare const clickableStyle: import("styled-components").RuleSet<object>
|
|
|
8
8
|
*/
|
|
9
9
|
declare const Button: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<{
|
|
10
10
|
hidden?: boolean | undefined;
|
|
11
|
-
children?: import("react").ReactNode;
|
|
12
|
-
slot?: string | undefined;
|
|
13
|
-
style?: import("react").CSSProperties | undefined;
|
|
14
|
-
title?: string | undefined;
|
|
15
11
|
key?: import("react").Key | null | undefined;
|
|
16
12
|
security?: string | undefined;
|
|
13
|
+
style?: import("react").CSSProperties | undefined;
|
|
14
|
+
slot?: string | undefined;
|
|
15
|
+
title?: string | undefined;
|
|
17
16
|
defaultChecked?: boolean | undefined;
|
|
18
17
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
19
18
|
suppressContentEditableWarning?: boolean | undefined;
|
|
@@ -56,8 +55,9 @@ declare const Button: import("styled-components").IStyledComponent<"web", import
|
|
|
56
55
|
itemRef?: string | undefined;
|
|
57
56
|
results?: number | undefined;
|
|
58
57
|
unselectable?: "on" | "off" | undefined;
|
|
59
|
-
inputMode?: "search" | "
|
|
58
|
+
inputMode?: "search" | "url" | "none" | "text" | "tel" | "email" | "numeric" | "decimal" | undefined;
|
|
60
59
|
is?: string | undefined;
|
|
60
|
+
children?: import("react").ReactNode;
|
|
61
61
|
'aria-activedescendant'?: string | undefined;
|
|
62
62
|
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
63
63
|
'aria-autocomplete'?: "none" | "list" | "inline" | "both" | undefined;
|
|
@@ -70,7 +70,7 @@ declare const Button: import("styled-components").IStyledComponent<"web", import
|
|
|
70
70
|
'aria-colindextext'?: string | undefined;
|
|
71
71
|
'aria-colspan'?: number | undefined;
|
|
72
72
|
'aria-controls'?: string | undefined;
|
|
73
|
-
'aria-current'?: boolean | "
|
|
73
|
+
'aria-current'?: boolean | "location" | "true" | "time" | "step" | "false" | "page" | "date" | undefined;
|
|
74
74
|
'aria-describedby'?: string | undefined;
|
|
75
75
|
'aria-description'?: string | undefined;
|
|
76
76
|
'aria-details'?: string | undefined;
|
|
@@ -80,7 +80,7 @@ declare const Button: import("styled-components").IStyledComponent<"web", import
|
|
|
80
80
|
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
81
81
|
'aria-flowto'?: string | undefined;
|
|
82
82
|
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
83
|
-
'aria-haspopup'?: boolean | "
|
|
83
|
+
'aria-haspopup'?: boolean | "true" | "dialog" | "menu" | "false" | "grid" | "listbox" | "tree" | undefined;
|
|
84
84
|
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
85
85
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
86
86
|
'aria-keyshortcuts'?: string | undefined;
|
|
@@ -2,12 +2,11 @@
|
|
|
2
2
|
export declare const FULLSCREEN_OVERLAY_ID = "mappedin-viewer-fullscreen-overlay";
|
|
3
3
|
export declare const FullscreenOverlay: import("styled-components").IStyledComponent<"web", {
|
|
4
4
|
hidden?: boolean | undefined;
|
|
5
|
-
children?: import("react").ReactNode;
|
|
6
|
-
slot?: string | undefined;
|
|
7
|
-
style?: import("react").CSSProperties | undefined;
|
|
8
|
-
title?: string | undefined;
|
|
9
5
|
key?: import("react").Key | null | undefined;
|
|
10
6
|
security?: string | undefined;
|
|
7
|
+
style?: import("react").CSSProperties | undefined;
|
|
8
|
+
slot?: string | undefined;
|
|
9
|
+
title?: string | undefined;
|
|
11
10
|
defaultChecked?: boolean | undefined;
|
|
12
11
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
13
12
|
suppressContentEditableWarning?: boolean | undefined;
|
|
@@ -50,8 +49,9 @@ export declare const FullscreenOverlay: import("styled-components").IStyledCompo
|
|
|
50
49
|
itemRef?: string | undefined;
|
|
51
50
|
results?: number | undefined;
|
|
52
51
|
unselectable?: "on" | "off" | undefined;
|
|
53
|
-
inputMode?: "search" | "
|
|
52
|
+
inputMode?: "search" | "url" | "none" | "text" | "tel" | "email" | "numeric" | "decimal" | undefined;
|
|
54
53
|
is?: string | undefined;
|
|
54
|
+
children?: import("react").ReactNode;
|
|
55
55
|
'aria-activedescendant'?: string | undefined;
|
|
56
56
|
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
57
57
|
'aria-autocomplete'?: "none" | "list" | "inline" | "both" | undefined;
|
|
@@ -64,7 +64,7 @@ export declare const FullscreenOverlay: import("styled-components").IStyledCompo
|
|
|
64
64
|
'aria-colindextext'?: string | undefined;
|
|
65
65
|
'aria-colspan'?: number | undefined;
|
|
66
66
|
'aria-controls'?: string | undefined;
|
|
67
|
-
'aria-current'?: boolean | "
|
|
67
|
+
'aria-current'?: boolean | "location" | "true" | "time" | "step" | "false" | "page" | "date" | undefined;
|
|
68
68
|
'aria-describedby'?: string | undefined;
|
|
69
69
|
'aria-description'?: string | undefined;
|
|
70
70
|
'aria-details'?: string | undefined;
|
|
@@ -74,7 +74,7 @@ export declare const FullscreenOverlay: import("styled-components").IStyledCompo
|
|
|
74
74
|
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
75
75
|
'aria-flowto'?: string | undefined;
|
|
76
76
|
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
77
|
-
'aria-haspopup'?: boolean | "
|
|
77
|
+
'aria-haspopup'?: boolean | "true" | "dialog" | "menu" | "false" | "grid" | "listbox" | "tree" | undefined;
|
|
78
78
|
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
79
79
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
80
80
|
'aria-keyshortcuts'?: string | undefined;
|
|
@@ -2,12 +2,11 @@
|
|
|
2
2
|
import { TTheme } from '../../lib/types/theme';
|
|
3
3
|
export declare const SideNavButton: import("styled-components").IStyledComponent<"web", {
|
|
4
4
|
hidden?: boolean | undefined;
|
|
5
|
-
children?: import("react").ReactNode;
|
|
6
|
-
slot?: string | undefined;
|
|
7
|
-
style?: import("react").CSSProperties | undefined;
|
|
8
|
-
title?: string | undefined;
|
|
9
5
|
key?: import("react").Key | null | undefined;
|
|
10
6
|
security?: string | undefined;
|
|
7
|
+
style?: import("react").CSSProperties | undefined;
|
|
8
|
+
slot?: string | undefined;
|
|
9
|
+
title?: string | undefined;
|
|
11
10
|
defaultChecked?: boolean | undefined;
|
|
12
11
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
13
12
|
suppressContentEditableWarning?: boolean | undefined;
|
|
@@ -50,8 +49,9 @@ export declare const SideNavButton: import("styled-components").IStyledComponent
|
|
|
50
49
|
itemRef?: string | undefined;
|
|
51
50
|
results?: number | undefined;
|
|
52
51
|
unselectable?: "on" | "off" | undefined;
|
|
53
|
-
inputMode?: "search" | "
|
|
52
|
+
inputMode?: "search" | "url" | "none" | "text" | "tel" | "email" | "numeric" | "decimal" | undefined;
|
|
54
53
|
is?: string | undefined;
|
|
54
|
+
children?: import("react").ReactNode;
|
|
55
55
|
'aria-activedescendant'?: string | undefined;
|
|
56
56
|
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
57
57
|
'aria-autocomplete'?: "none" | "list" | "inline" | "both" | undefined;
|
|
@@ -64,7 +64,7 @@ export declare const SideNavButton: import("styled-components").IStyledComponent
|
|
|
64
64
|
'aria-colindextext'?: string | undefined;
|
|
65
65
|
'aria-colspan'?: number | undefined;
|
|
66
66
|
'aria-controls'?: string | undefined;
|
|
67
|
-
'aria-current'?: boolean | "
|
|
67
|
+
'aria-current'?: boolean | "location" | "true" | "time" | "step" | "false" | "page" | "date" | undefined;
|
|
68
68
|
'aria-describedby'?: string | undefined;
|
|
69
69
|
'aria-description'?: string | undefined;
|
|
70
70
|
'aria-details'?: string | undefined;
|
|
@@ -74,7 +74,7 @@ export declare const SideNavButton: import("styled-components").IStyledComponent
|
|
|
74
74
|
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
75
75
|
'aria-flowto'?: string | undefined;
|
|
76
76
|
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
77
|
-
'aria-haspopup'?: boolean | "
|
|
77
|
+
'aria-haspopup'?: boolean | "true" | "dialog" | "menu" | "false" | "grid" | "listbox" | "tree" | undefined;
|
|
78
78
|
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
79
79
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
80
80
|
'aria-keyshortcuts'?: string | undefined;
|
|
@@ -49,7 +49,7 @@ declare const Positioner: import("styled-components").IStyledComponent<"web", {
|
|
|
49
49
|
results?: number | undefined;
|
|
50
50
|
security?: string | undefined;
|
|
51
51
|
unselectable?: "on" | "off" | undefined;
|
|
52
|
-
inputMode?: "search" | "
|
|
52
|
+
inputMode?: "search" | "url" | "none" | "text" | "tel" | "email" | "numeric" | "decimal" | undefined;
|
|
53
53
|
is?: string | undefined;
|
|
54
54
|
children?: import("react").ReactNode;
|
|
55
55
|
'aria-activedescendant'?: string | undefined;
|
|
@@ -64,7 +64,7 @@ declare const Positioner: import("styled-components").IStyledComponent<"web", {
|
|
|
64
64
|
'aria-colindextext'?: string | undefined;
|
|
65
65
|
'aria-colspan'?: number | undefined;
|
|
66
66
|
'aria-controls'?: string | undefined;
|
|
67
|
-
'aria-current'?: boolean | "
|
|
67
|
+
'aria-current'?: boolean | "location" | "true" | "time" | "step" | "false" | "page" | "date" | undefined;
|
|
68
68
|
'aria-describedby'?: string | undefined;
|
|
69
69
|
'aria-description'?: string | undefined;
|
|
70
70
|
'aria-details'?: string | undefined;
|
|
@@ -74,7 +74,7 @@ declare const Positioner: import("styled-components").IStyledComponent<"web", {
|
|
|
74
74
|
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
75
75
|
'aria-flowto'?: string | undefined;
|
|
76
76
|
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
77
|
-
'aria-haspopup'?: boolean | "
|
|
77
|
+
'aria-haspopup'?: boolean | "true" | "dialog" | "menu" | "false" | "grid" | "listbox" | "tree" | undefined;
|
|
78
78
|
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
79
79
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
80
80
|
'aria-keyshortcuts'?: string | undefined;
|
|
@@ -6,12 +6,11 @@ export declare const SEARCH_RESULT_HEIGHT: 38;
|
|
|
6
6
|
export declare const SEARCH_RESULT_HEIGHT_WITH_MATCH_DETAILS: 48;
|
|
7
7
|
export declare const ResultWrapper: import("styled-components").IStyledComponent<"web", {
|
|
8
8
|
hidden?: boolean | undefined;
|
|
9
|
-
children?: import("react").ReactNode;
|
|
10
|
-
slot?: string | undefined;
|
|
11
|
-
style?: import("react").CSSProperties | undefined;
|
|
12
|
-
title?: string | undefined;
|
|
13
9
|
key?: import("react").Key | null | undefined;
|
|
14
10
|
security?: string | undefined;
|
|
11
|
+
style?: import("react").CSSProperties | undefined;
|
|
12
|
+
slot?: string | undefined;
|
|
13
|
+
title?: string | undefined;
|
|
15
14
|
defaultChecked?: boolean | undefined;
|
|
16
15
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
17
16
|
suppressContentEditableWarning?: boolean | undefined;
|
|
@@ -54,8 +53,9 @@ export declare const ResultWrapper: import("styled-components").IStyledComponent
|
|
|
54
53
|
itemRef?: string | undefined;
|
|
55
54
|
results?: number | undefined;
|
|
56
55
|
unselectable?: "on" | "off" | undefined;
|
|
57
|
-
inputMode?: "search" | "
|
|
56
|
+
inputMode?: "search" | "url" | "none" | "text" | "tel" | "email" | "numeric" | "decimal" | undefined;
|
|
58
57
|
is?: string | undefined;
|
|
58
|
+
children?: import("react").ReactNode;
|
|
59
59
|
'aria-activedescendant'?: string | undefined;
|
|
60
60
|
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
61
61
|
'aria-autocomplete'?: "none" | "list" | "inline" | "both" | undefined;
|
|
@@ -68,7 +68,7 @@ export declare const ResultWrapper: import("styled-components").IStyledComponent
|
|
|
68
68
|
'aria-colindextext'?: string | undefined;
|
|
69
69
|
'aria-colspan'?: number | undefined;
|
|
70
70
|
'aria-controls'?: string | undefined;
|
|
71
|
-
'aria-current'?: boolean | "
|
|
71
|
+
'aria-current'?: boolean | "location" | "true" | "time" | "step" | "false" | "page" | "date" | undefined;
|
|
72
72
|
'aria-describedby'?: string | undefined;
|
|
73
73
|
'aria-description'?: string | undefined;
|
|
74
74
|
'aria-details'?: string | undefined;
|
|
@@ -78,7 +78,7 @@ export declare const ResultWrapper: import("styled-components").IStyledComponent
|
|
|
78
78
|
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
79
79
|
'aria-flowto'?: string | undefined;
|
|
80
80
|
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
81
|
-
'aria-haspopup'?: boolean | "
|
|
81
|
+
'aria-haspopup'?: boolean | "true" | "dialog" | "menu" | "false" | "grid" | "listbox" | "tree" | undefined;
|
|
82
82
|
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
83
83
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
84
84
|
'aria-keyshortcuts'?: string | undefined;
|
|
@@ -2,11 +2,13 @@ import { TTheme } from 'lib/types/theme';
|
|
|
2
2
|
import { DeepPartial } from './utils';
|
|
3
3
|
import type { PostHog } from 'posthog-js';
|
|
4
4
|
import { ParsedMVF } from '@mappedin/mvf';
|
|
5
|
+
import type RootStore from '../../stores/root-store';
|
|
5
6
|
export type TStartViewerCommonOptions = {
|
|
6
7
|
root?: HTMLElement;
|
|
7
8
|
baseUrl?: string;
|
|
8
9
|
themeOverride?: DeepPartial<TTheme>;
|
|
9
10
|
overrideShareButtonHandler?: () => void;
|
|
11
|
+
onRootStore?: (rootStore: RootStore) => void;
|
|
10
12
|
disableAnalytics?: boolean;
|
|
11
13
|
outdoorMapsKey?: string;
|
|
12
14
|
isMakerPreview?: boolean;
|