@mappedin/viewer 0.42.0 → 0.42.1-8952d39.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.
@@ -1,3 +1,4 @@
1
+ export declare const LOCATION_LINK_ID = "location-link";
1
2
  type TLocationLinkProps = {
2
3
  onClick: () => void;
3
4
  };
@@ -8,6 +8,9 @@ export declare const AUTH_URL_PARAM = "authUrl";
8
8
  export declare const KIOSK_MODE_PARAM = "kiosk";
9
9
  export declare const PITCH_PARAM = "pitch";
10
10
  export declare const BEARING_PARAM = "bearing";
11
+ export declare const CAMERA_MODE_PARAM = "camera-mode";
12
+ export declare const ALLOWED_CAMERA_MODES: readonly ["normal", "pan-only"];
13
+ export type TCameraMode = (typeof ALLOWED_CAMERA_MODES)[number];
11
14
  export declare const tryConvertToUrl: (source: string) => URL | null;
12
15
  type FindVenueError = 'Invalid URL' | 'Missing Venue ID' | 'Invalid Venue ID';
13
16
  export declare const parseVenueIdFromURL: (source?: Location | string) => {
@@ -40,6 +40,7 @@ declare class MapStore {
40
40
  private updateCurrentFloor;
41
41
  private getWatermarkOptions;
42
42
  private setOutdoorViewLoaded;
43
+ private syncCameraInteractions;
43
44
  get mapView(): Omit<MapView, 'on' | 'off'> | null;
44
45
  get interactionMode(): E_MAP_INTERACTION_MODE;
45
46
  get multiFloorViewEnabled(): boolean;
@@ -11,7 +11,7 @@ import SearchStore from '../search-store';
11
11
  import { Feature, ParsedMVF, Point, SpaceProperties, Geometry as MVFGeometry } from '@mappedin/mvf';
12
12
  import AnalyticsStore from '../analytics-store';
13
13
  import { TTheme } from '../../lib/types/theme';
14
- import { YOU_ARE_HERE_ROUTER_PARAM } from '../../lib/utils/url-utils';
14
+ import { YOU_ARE_HERE_ROUTER_PARAM, TCameraMode } from '../../lib/utils/url-utils';
15
15
  import MessageStore from '../message-store';
16
16
  export declare const RootStoreContext: import("react").Context<RootStore>;
17
17
  declare class RootStore {
@@ -132,6 +132,7 @@ declare class RootStore {
132
132
  * the theme, use {@link UIStore.theme.map.initialBearing}.
133
133
  */
134
134
  get initialBearing(): number | undefined;
135
+ get cameraMode(): TCameraMode;
135
136
  get exteriorDoors(): {
136
137
  "__#15@#private": any;
137
138
  readonly __type: "door";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mappedin/viewer",
3
- "version": "0.42.0",
3
+ "version": "0.42.1-8952d39.0",
4
4
  "type": "module",
5
5
  "browser": "./dist/index.js",
6
6
  "license": "UNLICENSED",