@mappedin/viewer 0.14.2 → 0.14.3-0fc3c2d.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.
Files changed (55) hide show
  1. package/dist/index.js +87648 -109808
  2. package/dist/types/App.d.ts +1 -1
  3. package/dist/types/components/button/index.d.ts +1 -1
  4. package/dist/types/components/common/fullscreen-overlay.d.ts +274 -0
  5. package/dist/types/components/main/index.d.ts +2 -2
  6. package/dist/types/components/metadata-card/carousel.d.ts +6 -0
  7. package/dist/types/components/metadata-card/details-section.d.ts +12 -0
  8. package/dist/types/components/metadata-card/directions-button.d.ts +5 -0
  9. package/dist/types/components/metadata-card/index.d.ts +12 -0
  10. package/dist/types/components/metadata-card/link-item.d.ts +7 -0
  11. package/dist/types/components/metadata-card/metadata-card.stories.d.ts +7 -0
  12. package/dist/types/components/metadata-card/nav-chevrons.d.ts +8 -0
  13. package/dist/types/components/metadata-card/nav-pills.d.ts +9 -0
  14. package/dist/types/components/positioner/index.d.ts +1 -1
  15. package/dist/types/components/search-bar/index.d.ts +2 -2
  16. package/dist/types/components/search-results/index.d.ts +1 -0
  17. package/dist/types/index.d.ts +4 -0
  18. package/dist/types/lib/hooks/use-app-data.test.d.ts +0 -1
  19. package/dist/types/lib/hooks/use-window.d.ts +4 -3
  20. package/dist/types/lib/sdk/index.d.ts +11 -0
  21. package/dist/types/lib/types/options.d.ts +1 -4
  22. package/dist/types/lib/types/state.d.ts +6 -0
  23. package/dist/types/lib/types/theme.d.ts +12 -1
  24. package/dist/types/{stores/map-store/controllers/markers.lib.d.ts → lib/utils/annotation-utils.d.ts} +1 -1
  25. package/dist/types/lib/utils/data-utils.d.ts +20 -14
  26. package/dist/types/lib/utils/data-utils.test.d.ts +0 -1
  27. package/dist/types/lib/utils/not-null.d.ts +1 -0
  28. package/dist/types/stores/feature-flag-store/feature-flag-store.test.d.ts +0 -1
  29. package/dist/types/stores/map-store/controllers/camera.d.ts +4 -5
  30. package/dist/types/stores/map-store/controllers/camera.test.d.ts +0 -1
  31. package/dist/types/stores/map-store/controllers/directions.d.ts +244 -3
  32. package/dist/types/stores/map-store/controllers/directions.test.d.ts +0 -1
  33. package/dist/types/stores/map-store/controllers/hover.d.ts +1 -3
  34. package/dist/types/stores/map-store/controllers/hover.test.d.ts +0 -1
  35. package/dist/types/stores/map-store/controllers/labels.d.ts +4 -5
  36. package/dist/types/stores/map-store/controllers/labels.test.d.ts +0 -1
  37. package/dist/types/stores/map-store/controllers/map.d.ts +1 -1
  38. package/dist/types/stores/map-store/controllers/markers.d.ts +5 -2
  39. package/dist/types/stores/map-store/controllers/markers.test.d.ts +0 -1
  40. package/dist/types/stores/map-store/controllers/polygons.d.ts +3 -3
  41. package/dist/types/stores/map-store/controllers/polygons.test.d.ts +0 -1
  42. package/dist/types/stores/map-store/index.d.ts +4 -6
  43. package/dist/types/stores/map-store/map-store.test.d.ts +0 -1
  44. package/dist/types/stores/root-store/index.d.ts +73 -47
  45. package/dist/types/stores/router-store/index.d.ts +4 -6
  46. package/dist/types/stores/ui-store/index.d.ts +13 -13
  47. package/dist/types/stores/ui-store/ui-store.test.d.ts +0 -1
  48. package/dist/types/test-utils/test-mocks.d.ts +0 -0
  49. package/dist/types/test-utils/test-with-map.d.ts +11 -0
  50. package/package.json +4 -2
  51. package/dist/types/lib/hooks/use-venue-mvf.d.ts +0 -6
  52. package/dist/types/lib/mappedin-js-extensions/mappedin-annotation.d.ts +0 -17
  53. package/dist/types/stores/map-store/controllers/markers.lib.test.d.ts +0 -1
  54. package/dist/types/test-utils/test-with-venue.d.ts +0 -9
  55. /package/dist/types/lib/{mappedin-js-extensions/mappedin-annotation.test.d.ts → utils/annotation-utils.test.d.ts} +0 -0
@@ -1,6 +1,6 @@
1
+ /// <reference types="@mappedin/maker-sdk" />
1
2
  import type RootStore from '../../root-store';
2
3
  import type MapStore from '..';
3
- import { MappedinDirections } from '@mappedin/mappedin-js';
4
4
  declare class DirectionsController {
5
5
  private rootStore;
6
6
  private mapStore;
@@ -10,8 +10,249 @@ declare class DirectionsController {
10
10
  mapStore: MapStore;
11
11
  });
12
12
  private updateJourney;
13
- get mapsInDirections(): import("@mappedin/mappedin-js").MappedinMap[];
14
- get directions(): MappedinDirections | undefined;
13
+ get floorsInDirections(): ({
14
+ "__#36@#private": any;
15
+ readonly __type: "floor";
16
+ readonly id: string;
17
+ readonly name: string;
18
+ readonly elevation: number;
19
+ readonly spaces: {
20
+ "__#35@#private": any;
21
+ readonly __type: "space";
22
+ readonly id: string;
23
+ readonly name: string;
24
+ readonly type: string;
25
+ readonly description: string;
26
+ readonly links: Hyperlink[];
27
+ readonly images: Image[];
28
+ readonly floor: any;
29
+ readonly center: {
30
+ "__#39@#private": any;
31
+ readonly __type: "coordinate";
32
+ id: string;
33
+ readonly latitude: number;
34
+ readonly longitude: number;
35
+ isEqual(coordinate: any): boolean;
36
+ readonly floor: any | undefined;
37
+ toJSON(): {
38
+ latitude: number;
39
+ longitude: number;
40
+ floor: string | undefined;
41
+ };
42
+ destroy(): void;
43
+ };
44
+ toJSON(): {
45
+ id: string;
46
+ name: string;
47
+ type: string;
48
+ floor: string;
49
+ center: {
50
+ latitude: number;
51
+ longitude: number;
52
+ floor: string | undefined;
53
+ };
54
+ };
55
+ destroy(): void;
56
+ }[];
57
+ readonly objects: import("@mappedin/maker-sdk/maker/src/map-data-objects/object").MapObject[];
58
+ readonly connections: {
59
+ "__#37@#private": any;
60
+ readonly __type: "connection";
61
+ readonly id: string;
62
+ readonly name: string;
63
+ readonly description: string;
64
+ readonly links: Hyperlink[];
65
+ readonly images: Image[];
66
+ readonly type: string;
67
+ readonly coordinates: {
68
+ "__#39@#private": any;
69
+ readonly __type: "coordinate";
70
+ id: string;
71
+ readonly latitude: number;
72
+ readonly longitude: number;
73
+ isEqual(coordinate: any): boolean;
74
+ readonly floor: any | undefined;
75
+ toJSON(): {
76
+ latitude: number;
77
+ longitude: number;
78
+ floor: string | undefined;
79
+ };
80
+ destroy(): void;
81
+ }[];
82
+ readonly floors: any[];
83
+ toJSON(): {
84
+ id: string;
85
+ name: string;
86
+ type: string;
87
+ coordinates: {
88
+ latitude: number;
89
+ longitude: number;
90
+ floor: string | undefined;
91
+ }[];
92
+ floors: string[];
93
+ };
94
+ destroy(): void;
95
+ }[];
96
+ readonly doors: {
97
+ "__#34@#private": any;
98
+ readonly __type: "door";
99
+ readonly id: string;
100
+ readonly name: string;
101
+ readonly description: string;
102
+ readonly links: Hyperlink[];
103
+ readonly images: Image[];
104
+ readonly floor: any;
105
+ readonly center: {
106
+ "__#39@#private": any;
107
+ readonly __type: "coordinate";
108
+ id: string;
109
+ readonly latitude: number;
110
+ readonly longitude: number;
111
+ isEqual(coordinate: any): boolean;
112
+ readonly floor: any | undefined;
113
+ toJSON(): {
114
+ latitude: number;
115
+ longitude: number;
116
+ floor: string | undefined;
117
+ };
118
+ destroy(): void;
119
+ };
120
+ readonly adjacentSpaces: {
121
+ "__#35@#private": any;
122
+ readonly __type: "space";
123
+ readonly id: string;
124
+ readonly name: string;
125
+ readonly type: string;
126
+ readonly description: string;
127
+ readonly links: Hyperlink[];
128
+ readonly images: Image[];
129
+ readonly floor: any;
130
+ readonly center: {
131
+ "__#39@#private": any;
132
+ readonly __type: "coordinate";
133
+ id: string;
134
+ readonly latitude: number;
135
+ readonly longitude: number;
136
+ isEqual(coordinate: any): boolean;
137
+ readonly floor: any | undefined;
138
+ toJSON(): {
139
+ latitude: number;
140
+ longitude: number;
141
+ floor: string | undefined;
142
+ };
143
+ destroy(): void;
144
+ };
145
+ toJSON(): {
146
+ id: string;
147
+ name: string;
148
+ type: string;
149
+ floor: string;
150
+ center: {
151
+ latitude: number;
152
+ longitude: number;
153
+ floor: string | undefined;
154
+ };
155
+ };
156
+ destroy(): void;
157
+ }[];
158
+ readonly isExterior: boolean;
159
+ toJSON(): {
160
+ id: string;
161
+ name: string;
162
+ floor: string;
163
+ center: {
164
+ latitude: number;
165
+ longitude: number;
166
+ floor: string | undefined;
167
+ };
168
+ adjacentSpaces: string[];
169
+ };
170
+ destroy(): void;
171
+ }[];
172
+ readonly annotations: {
173
+ "__#41@#private": any;
174
+ readonly __type: "annotation";
175
+ readonly id: string;
176
+ readonly group: string;
177
+ readonly type: string;
178
+ readonly coordinate: {
179
+ "__#39@#private": any;
180
+ readonly __type: "coordinate";
181
+ id: string;
182
+ readonly latitude: number;
183
+ readonly longitude: number;
184
+ isEqual(coordinate: any): boolean;
185
+ readonly floor: any | undefined;
186
+ toJSON(): {
187
+ latitude: number;
188
+ longitude: number;
189
+ floor: string | undefined;
190
+ };
191
+ destroy(): void;
192
+ };
193
+ readonly floor: any;
194
+ toJSON(): {
195
+ id: string;
196
+ group: string;
197
+ type: string;
198
+ coordinate: {
199
+ latitude: number;
200
+ longitude: number;
201
+ floor: string | undefined;
202
+ };
203
+ };
204
+ destroy(): void;
205
+ }[];
206
+ readonly pois: {
207
+ "__#40@#private": any;
208
+ readonly __type: "point-of-interest";
209
+ readonly id: string;
210
+ readonly name: string;
211
+ readonly description: string;
212
+ readonly links: Hyperlink[];
213
+ readonly images: Image[];
214
+ readonly floor: any;
215
+ readonly coordinate: {
216
+ "__#39@#private": any;
217
+ readonly __type: "coordinate";
218
+ id: string;
219
+ readonly latitude: number;
220
+ readonly longitude: number;
221
+ isEqual(coordinate: any): boolean;
222
+ readonly floor: any | undefined;
223
+ toJSON(): {
224
+ latitude: number;
225
+ longitude: number;
226
+ floor: string | undefined;
227
+ };
228
+ destroy(): void;
229
+ };
230
+ toJSON(): {
231
+ id: string;
232
+ name: string;
233
+ floor: string;
234
+ coordinate: {
235
+ latitude: number;
236
+ longitude: number;
237
+ floor: string | undefined;
238
+ };
239
+ };
240
+ destroy(): void;
241
+ }[];
242
+ toJSON(): {
243
+ id: string;
244
+ name: string;
245
+ elevation: number;
246
+ spaces: string[];
247
+ objects: string[];
248
+ connections: string[];
249
+ doors: string[];
250
+ annotations: string[];
251
+ pois: string[];
252
+ };
253
+ destroy(): void;
254
+ } | undefined)[];
255
+ get directions(): import("@mappedin/maker-sdk/maker/src/map-view-objects/directions").Directions | undefined;
15
256
  cleanup(): void;
16
257
  }
17
258
  export default DirectionsController;
@@ -8,7 +8,6 @@ declare class HoverController {
8
8
  x: number;
9
9
  y: number;
10
10
  } | undefined;
11
- private isPinHoveringOverPolygons;
12
11
  private pressTimeout;
13
12
  private currentPinScreenPosition;
14
13
  constructor({ rootStore, mapStore }: {
@@ -18,9 +17,8 @@ declare class HoverController {
18
17
  private clearPressTimeout;
19
18
  private attachListener;
20
19
  private handleDocumentMouseMove;
21
- private handleDocumentClick;
22
20
  private handleDocumentTouchStart;
23
- private getPolygonsUnderHoverPin;
21
+ private handleDocumentClick;
24
22
  private clearPin;
25
23
  private dropPin;
26
24
  private dropOrRemovePin;
@@ -1,23 +1,22 @@
1
1
  import type MapStore from '..';
2
2
  import type RootStore from '../../root-store';
3
- import { MappedinLocation } from '@mappedin/mappedin-js';
3
+ import { Place } from '../../../lib/sdk';
4
4
  declare class LabelsController {
5
5
  private rootStore;
6
6
  private mapStore;
7
7
  private reactionDisposers;
8
8
  state: 'locations' | 'venue-name';
9
- locationByLabelId: Record<string, MappedinLocation>;
9
+ locationByLabelId: Record<string, Place>;
10
10
  constructor({ rootStore, mapStore }: {
11
11
  rootStore: RootStore;
12
12
  mapStore: MapStore;
13
13
  });
14
- private getLabelName;
15
14
  private getDefaultLabelRank;
16
- private labelLocationsOfCategory;
15
+ private labelPlace;
17
16
  private handleZoomChange;
18
17
  private clearLabels;
19
18
  private labelVenueName;
20
- private labelLocations;
19
+ private labelPlaces;
21
20
  updateLabels(): void;
22
21
  cleanup(): void;
23
22
  }
@@ -8,7 +8,7 @@ declare class MapsController {
8
8
  rootStore: RootStore;
9
9
  mapStore: MapStore;
10
10
  });
11
- private updateCurrentMap;
11
+ private updateCurrentFloor;
12
12
  cleanup(): void;
13
13
  }
14
14
  export default MapsController;
@@ -1,11 +1,13 @@
1
1
  import type RootStore from '../../root-store';
2
2
  import type MapStore from '..';
3
+ import { ReactPortal } from 'react';
3
4
  declare class MarkersController {
4
5
  private rootStore;
5
6
  private mapStore;
6
7
  private reactionDisposers;
7
8
  markersVisible: boolean;
8
9
  private sdkMarkersByKey;
10
+ private portalsByMarker;
9
11
  constructor({ rootStore, mapStore }: {
10
12
  rootStore: RootStore;
11
13
  mapStore: MapStore;
@@ -14,11 +16,12 @@ declare class MarkersController {
14
16
  private getActionDirection;
15
17
  private get directionsConnectionMarkers();
16
18
  private get annotationMarkers();
17
- private get selectedLocationMarkers();
18
- private get markers();
19
+ private get selectionMarkers();
20
+ private get currentMarkers();
19
21
  private handleZoomChange;
20
22
  private attemptUpdatingMarkerDimensions;
21
23
  private updateMarkers;
24
+ get markers(): ReactPortal[];
22
25
  cleanup(): void;
23
26
  }
24
27
  export default MarkersController;
@@ -8,9 +8,9 @@ declare class PolygonsController {
8
8
  rootStore: RootStore;
9
9
  mapStore: MapStore;
10
10
  });
11
- private get highlightedPolygons();
12
- private makeLocationsOfCategoryInteractive;
13
- private updateInteractivePolygons;
11
+ private get highlightedLocations();
12
+ private setInteractivityForGeometry;
13
+ private updateInteractivity;
14
14
  private updateHighlightedPolygons;
15
15
  cleanup(): void;
16
16
  }
@@ -1,5 +1,4 @@
1
1
  import type RootStore from '../root-store';
2
- import { E_SDK_EVENT, E_SDK_EVENT_PAYLOAD, MapView } from '@mappedin/mappedin-js';
3
2
  import MarkersReaction from './controllers/markers';
4
3
  import { E_MAP_INTERACTION_MODE } from '../../lib/types/map';
5
4
  import PolygonsController from './controllers/polygons';
@@ -8,6 +7,7 @@ import CameraController from './controllers/camera';
8
7
  import MapsController from './controllers/map';
9
8
  import LabelsController from './controllers/labels';
10
9
  import HoverController from './controllers/hover';
10
+ import { MapView, TEvents } from '../../lib/sdk';
11
11
  declare class MapStore {
12
12
  private rootStore;
13
13
  container: HTMLElement | null;
@@ -23,14 +23,12 @@ declare class MapStore {
23
23
  rootStore: RootStore;
24
24
  });
25
25
  private handleClickEventForLocation;
26
- private handlePolygonsClicked;
26
+ private handleLocationsClicked;
27
27
  private handleLabelsClicked;
28
- private getAOSettings;
29
- private showWatermark;
30
28
  get interactionMode(): E_MAP_INTERACTION_MODE;
31
29
  init(container: HTMLElement): Promise<void>;
32
- handleResize(): void;
33
- handleMapClick({ polygons, floatingLabels }: E_SDK_EVENT_PAYLOAD[E_SDK_EVENT.CLICK]): void;
30
+ handleFloorChange(payload?: TEvents['floor-change']): void;
31
+ handleFloorClick(payload?: TEvents['click']): void;
34
32
  cleanup(): void;
35
33
  }
36
34
  export default MapStore;
@@ -1 +0,0 @@
1
- export {};
@@ -1,16 +1,13 @@
1
1
  /// <reference types="react" />
2
- import { Mappedin, MappedinCoordinate, MappedinLocation, MappedinMap, MappedinNode, MappedinPolygon } from '@mappedin/mappedin-js';
3
2
  import UIStore from '../ui-store';
4
3
  import MapStore from '../map-store';
5
4
  import { E_DEPARTURE_MODE } from '../../lib/types/directions';
6
5
  import { E_APP_STATE } from '../../lib/types/state';
7
6
  import RouterStore from '../router-store';
8
- import { Map, ObstructionCollection, ParsedMVF, SpaceCollection } from '@mappedin/mvf';
9
7
  import { TStartViewerOptions, TStartViewerWithLocalDataOptions } from '../../lib/types/options';
10
- import MappedinAnnotation from '../../lib/mappedin-js-extensions/mappedin-annotation';
11
8
  import FeatureFlagStore from '../feature-flag-store';
9
+ import { MapData, Place, Floor, Coordinate, Geometry } from '../../lib/sdk';
12
10
  export declare const RootStoreContext: import("react").Context<RootStore>;
13
- type SpaceOrObstruction = SpaceCollection['features'][number] | ObstructionCollection['features'][number];
14
11
  declare class RootStore {
15
12
  private reactionDisposers;
16
13
  /**
@@ -22,64 +19,93 @@ declare class RootStore {
22
19
  * Simple caching for a MappedinCoordinate so we aren't recreating the same coordinate every time.
23
20
  */
24
21
  private cachedCoordinate;
25
- readonly data: Mappedin;
22
+ readonly data: MapData;
26
23
  readonly startupOptions: TStartViewerOptions | TStartViewerWithLocalDataOptions;
27
- readonly mvf: ParsedMVF | undefined;
28
- readonly mvfFeatureById: Record<string, SpaceOrObstruction>;
29
- /**
30
- * If you have a MappedinLocation, it's probably better to call `getMvfFeaturesForLocation`.
31
- */
32
- readonly mvfFeaturesByExternalId: Record<string, SpaceOrObstruction[]>;
33
- readonly mvfMapByFeatureId: Record<string, Map>;
34
24
  featureFlagStore: FeatureFlagStore;
35
25
  uiStore: UIStore;
36
26
  mapStore: MapStore;
37
27
  departureMode: E_DEPARTURE_MODE;
38
28
  isAppMobile: boolean;
39
- constructor({ router, data, mvf, startupOptions, }: {
29
+ constructor({ router, data, startupOptions, }: {
40
30
  router: RouterStore;
41
- data: Mappedin;
42
- mvf?: ParsedMVF;
31
+ data: MapData;
43
32
  startupOptions: TStartViewerOptions | TStartViewerWithLocalDataOptions;
44
33
  });
45
- private createMVFDictionaries;
46
34
  private getInitialDepartureMode;
47
35
  private syncState;
48
- private syncCurrentMap;
49
- get locationsByName(): Record<string, MappedinLocation>;
50
- get orgId(): string | undefined;
51
- get isMakerPreview(): boolean;
52
- get mapClosestToGroundLevel(): MappedinMap;
53
- get mapsSortedByElevation(): MappedinMap[];
54
- get areNodesAvailable(): boolean;
55
- get exteriorEntrancesLocation(): MappedinLocation | null;
56
- get selectedLocation(): MappedinLocation | undefined;
57
- get departure(): MappedinLocation | MappedinCoordinate | null | undefined;
58
- get me(): MappedinCoordinate | undefined;
59
- get currentMapName(): string | undefined;
60
- get currentMap(): MappedinMap | undefined;
61
- get interactivePolygons(): MappedinPolygon[];
62
- get departureAndSelectedLocationSharedNodes(): MappedinNode[];
63
- get poiLocations(): MappedinLocation[];
64
- get annotationsById(): never[] | {
65
- [id: string]: MappedinAnnotation;
66
- };
67
- get annotations(): MappedinAnnotation[];
36
+ private syncCurrentFloor;
68
37
  private syncDeparture;
38
+ get isMakerPreview(): boolean;
69
39
  get isAppEmbedded(): boolean;
40
+ get placesById(): Record<string, Place>;
41
+ get places(): Place[];
42
+ get geometries(): Geometry[];
43
+ get exteriorDoors(): {
44
+ "__#34@#private": any;
45
+ readonly __type: "door";
46
+ readonly id: string;
47
+ readonly name: string;
48
+ readonly description: string;
49
+ readonly links: Hyperlink[];
50
+ readonly images: Image[];
51
+ readonly floor: Floor;
52
+ readonly center: Coordinate;
53
+ readonly adjacentSpaces: {
54
+ "__#35@#private": any;
55
+ readonly __type: "space";
56
+ readonly id: string;
57
+ readonly name: string;
58
+ readonly type: string;
59
+ readonly description: string;
60
+ readonly links: Hyperlink[];
61
+ readonly images: Image[];
62
+ readonly floor: Floor;
63
+ readonly center: Coordinate;
64
+ toJSON(): {
65
+ id: string;
66
+ name: string;
67
+ type: string;
68
+ floor: string;
69
+ center: {
70
+ latitude: number;
71
+ longitude: number;
72
+ floor: string | undefined;
73
+ };
74
+ };
75
+ destroy(): void;
76
+ }[];
77
+ readonly isExterior: boolean;
78
+ toJSON(): {
79
+ id: string;
80
+ name: string;
81
+ floor: string;
82
+ center: {
83
+ latitude: number;
84
+ longitude: number;
85
+ floor: string | undefined;
86
+ };
87
+ adjacentSpaces: string[];
88
+ };
89
+ destroy(): void;
90
+ }[];
91
+ /**
92
+ * Floors in order from highest to lowest elevation.
93
+ */
94
+ get floorsSortedByElevation(): Floor[];
95
+ get floorClosestToGroundLevel(): Floor;
96
+ get selectedPlaces(): Place[] | undefined;
97
+ get departures(): Place[] | undefined;
98
+ get me(): Coordinate | undefined;
99
+ get currentFloor(): Floor | undefined;
70
100
  get state(): E_APP_STATE;
71
- getCoordinateForMVFFeature(feature: SpaceCollection['features'][number] | ObstructionCollection['features'][number]): MappedinCoordinate | undefined;
72
- getMvfFeaturesForLocation(location: MappedinLocation): SpaceOrObstruction[];
73
- serializeCoordinate(coordinate: MappedinCoordinate): string[];
74
- deserializeCoordinate(urlCoordinate: string[]): MappedinCoordinate | undefined;
75
- setMe(coordinate: MappedinCoordinate | undefined): void;
101
+ serializeCoordinate(coordinate: Coordinate): string;
102
+ deserializeCoordinate(urlCoordinate: string): Coordinate | undefined;
103
+ setMe(coordinate: Coordinate | undefined): void;
76
104
  setState(state: E_APP_STATE): void;
77
- isLocationOnMap(location: MappedinLocation, map: MappedinMap): boolean;
78
- setSelectedLocationId(id: string | undefined): void;
79
- clearDeparture(): void;
80
- setDepartureLocationId(id: string): void;
81
- setDepartureCoordinate(coordinate: MappedinCoordinate): void;
82
- setCurrentMap(map: MappedinMap | undefined): void;
105
+ isLocationOnFloor(location: Place, floor: Floor | undefined): boolean;
106
+ setSelectedPlaces(locations: Place[] | undefined): void;
107
+ setDepartures(departures: Place[] | undefined): void;
108
+ setCurrentFloor(floor: Floor | undefined): void;
83
109
  setDepartureMode(mode: E_DEPARTURE_MODE): void;
84
110
  setIsAppMobile(isMobile: boolean): void;
85
111
  cleanup(): void;
@@ -6,8 +6,8 @@ type TRouterGoOptions = {
6
6
  };
7
7
  declare class RouterStore {
8
8
  private base;
9
- private path;
10
- private params;
9
+ private _path;
10
+ private _params;
11
11
  private history;
12
12
  private disposer;
13
13
  constructor({ history, base }: {
@@ -20,10 +20,8 @@ declare class RouterStore {
20
20
  private parseSearch;
21
21
  private update;
22
22
  private getPath;
23
- get state(): {
24
- path: string;
25
- params: Record<string, string | string[]>;
26
- };
23
+ get path(): string;
24
+ get params(): Record<string, string | string[]>;
27
25
  go(state: string, newParams: Record<string, string | string[] | undefined>, options?: TRouterGoOptions): void;
28
26
  back(): void;
29
27
  cleanup(): void;
@@ -3,7 +3,7 @@ import { TCategory, TSearchResult } from 'lib/types/search';
3
3
  import { TLevelSelectorLevel } from '../../components/level-selector/utils';
4
4
  import { TTheme } from 'lib/types/theme';
5
5
  import { E_DEPARTURE_MODE } from '../../lib/types/directions';
6
- import { MappedinLocation, MappedinVortex } from '@mappedin/mappedin-js';
6
+ import { Place } from '../../lib/sdk';
7
7
  declare class UIStore {
8
8
  private rootStore;
9
9
  private reactionDisposers;
@@ -16,10 +16,10 @@ declare class UIStore {
16
16
  constructor({ rootStore }: {
17
17
  rootStore: RootStore;
18
18
  });
19
- private get searchableLocations();
20
- private get searchResultsById();
21
- private get searchCategoriesById();
22
- private syncSearchQueryWithSelectedLocation;
19
+ private get searchablePlaces();
20
+ private get searchResultsByName();
21
+ private get searchCategoriesByName();
22
+ private syncSearchQueryWithSelectedPlaces;
23
23
  private syncDepartureSearchQueryWithDepartureLocation;
24
24
  private syncDroppedPinNotification;
25
25
  get searchResults(): TSearchResult[];
@@ -30,22 +30,21 @@ declare class UIStore {
30
30
  get directionsButtonVisible(): boolean;
31
31
  get directionsButtonDisabled(): boolean;
32
32
  get directionsUIVisible(): boolean;
33
- get directionsWarning(): "directions.adjacent" | "directions.not-found" | undefined;
33
+ get directionsWarning(): "directions.not-found" | "directions.adjacent" | undefined;
34
34
  get openAppLink(): string;
35
35
  get openAppButtonVisible(): boolean;
36
36
  get tiltControlsVisible(): boolean;
37
37
  get zoomControlsVisible(): boolean;
38
38
  get shareButtonVisible(): boolean;
39
39
  get mainUIVisible(): boolean;
40
- get namePosition(): "bottom-left" | "bottom-center";
41
- get logoPosition(): "bottom-left" | "top-left";
42
- get appPadding(): 0 | 20 | 12;
40
+ get appPadding(): 20 | 12 | 0;
43
41
  get makerPopUpVisible(): boolean;
42
+ get metadataCardVisible(): boolean;
44
43
  attemptIconNameForConnection(type: string): string;
45
- attemptIconNameForLocation(location: MappedinLocation): string;
46
- attemptIconForLocation(location: MappedinLocation): string | undefined;
47
- getLabelColor(target: MappedinVortex | MappedinLocation): string;
48
- getMarkerColor(target: MappedinVortex | MappedinLocation): string;
44
+ attemptIconNameForLocation(location: Place): string;
45
+ attemptIconForLocation(location: Place): string | undefined;
46
+ getLabelColor(target: Place): string;
47
+ getMarkerColor(target: Place): string;
49
48
  dismissMakerPopUp(): void;
50
49
  setTheme(theme: TTheme): void;
51
50
  setOverrideShareButtonHandler(handler?: () => void): void;
@@ -58,6 +57,7 @@ declare class UIStore {
58
57
  handleDirectionsButtonClick(): void;
59
58
  handleDepartureModeSelected(mode: E_DEPARTURE_MODE): void;
60
59
  handleResetDepartureClick(): void;
60
+ handleMetadataCardClose(): void;
61
61
  hideDroppedPinNotification(): void;
62
62
  cleanup(): void;
63
63
  }
@@ -1 +0,0 @@
1
- export {};
File without changes
@@ -0,0 +1,11 @@
1
+ /// <reference types="@mappedin/maker-sdk" />
2
+ import RootStore from '../stores/root-store';
3
+ import { ParsedMVF } from '@mappedin/mvf';
4
+ import { MapData } from '../lib/sdk';
5
+ export declare const testWithMap: (venueFileName?: string) => Promise<{
6
+ rootStore: RootStore;
7
+ mapView: import("@mappedin/maker-sdk/maker/src/map-view").MapView;
8
+ mapEl: HTMLDivElement;
9
+ data: MapData;
10
+ mvf: ParsedMVF;
11
+ }>;