@mappedin/viewer 0.14.3-e8ee9a3.0 → 0.15.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.
@@ -0,0 +1,2 @@
1
+ import type { Story } from '@ladle/react';
2
+ export declare const Default: Story;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ type TAsyncImageProps = {
3
+ src?: string;
4
+ alt?: string;
5
+ style?: React.CSSProperties;
6
+ };
7
+ declare const AsyncImage: React.FC<TAsyncImageProps>;
8
+ export default AsyncImage;
@@ -21,6 +21,7 @@ export type TTheme = {
21
21
  connection: string;
22
22
  washroom: string;
23
23
  point: string;
24
+ door: string;
24
25
  };
25
26
  markers: {
26
27
  default: string;
@@ -1 +1,2 @@
1
1
  export declare const openLink: (link: string) => Window | null | undefined;
2
+ export declare const isValidLink: (link: string) => boolean;
@@ -2,7 +2,7 @@ import type RootStore from '../../root-store';
2
2
  import type MapStore from '..';
3
3
  import { MapView, TCameraAnimationOptions, TEvents } from '../../../lib/sdk';
4
4
  export declare const ZOOM_FACTOR = 1.025;
5
- export declare const TILT_FACTOR = 0.025;
5
+ export declare const TILT_FACTOR = 1.025;
6
6
  export declare const CAMERA_ANIMATION_OPTIONS: TCameraAnimationOptions;
7
7
  declare class CameraController {
8
8
  private rootStore;
@@ -13,13 +13,11 @@ declare class DirectionsController {
13
13
  get floorsInDirections(): ({
14
14
  "__#36@#private": any;
15
15
  readonly __type: "floor";
16
- readonly id: string;
17
16
  readonly name: string;
18
17
  readonly elevation: number;
19
18
  readonly spaces: {
20
19
  "__#35@#private": any;
21
20
  readonly __type: "space";
22
- readonly id: string;
23
21
  readonly name: string;
24
22
  readonly type: string;
25
23
  readonly description: string;
@@ -53,12 +51,12 @@ declare class DirectionsController {
53
51
  };
54
52
  };
55
53
  destroy(): void;
54
+ readonly id: string;
56
55
  }[];
57
56
  readonly objects: import("@mappedin/maker-sdk/maker/src/map-data-objects/object").MapObject[];
58
57
  readonly connections: {
59
58
  "__#37@#private": any;
60
59
  readonly __type: "connection";
61
- readonly id: string;
62
60
  readonly name: string;
63
61
  readonly description: string;
64
62
  readonly links: Hyperlink[];
@@ -92,11 +90,11 @@ declare class DirectionsController {
92
90
  floors: string[];
93
91
  };
94
92
  destroy(): void;
93
+ readonly id: string;
95
94
  }[];
96
95
  readonly doors: {
97
96
  "__#34@#private": any;
98
97
  readonly __type: "door";
99
- readonly id: string;
100
98
  readonly name: string;
101
99
  readonly description: string;
102
100
  readonly links: Hyperlink[];
@@ -120,7 +118,6 @@ declare class DirectionsController {
120
118
  readonly adjacentSpaces: {
121
119
  "__#35@#private": any;
122
120
  readonly __type: "space";
123
- readonly id: string;
124
121
  readonly name: string;
125
122
  readonly type: string;
126
123
  readonly description: string;
@@ -154,6 +151,7 @@ declare class DirectionsController {
154
151
  };
155
152
  };
156
153
  destroy(): void;
154
+ readonly id: string;
157
155
  }[];
158
156
  readonly isExterior: boolean;
159
157
  toJSON(): {
@@ -168,11 +166,11 @@ declare class DirectionsController {
168
166
  adjacentSpaces: string[];
169
167
  };
170
168
  destroy(): void;
169
+ readonly id: string;
171
170
  }[];
172
171
  readonly annotations: {
173
172
  "__#41@#private": any;
174
173
  readonly __type: "annotation";
175
- readonly id: string;
176
174
  readonly group: string;
177
175
  readonly type: string;
178
176
  readonly coordinate: {
@@ -202,11 +200,11 @@ declare class DirectionsController {
202
200
  };
203
201
  };
204
202
  destroy(): void;
203
+ readonly id: string;
205
204
  }[];
206
205
  readonly pois: {
207
206
  "__#40@#private": any;
208
207
  readonly __type: "point-of-interest";
209
- readonly id: string;
210
208
  readonly name: string;
211
209
  readonly description: string;
212
210
  readonly links: Hyperlink[];
@@ -238,6 +236,7 @@ declare class DirectionsController {
238
236
  };
239
237
  };
240
238
  destroy(): void;
239
+ readonly id: string;
241
240
  }[];
242
241
  toJSON(): {
243
242
  id: string;
@@ -251,6 +250,7 @@ declare class DirectionsController {
251
250
  pois: string[];
252
251
  };
253
252
  destroy(): void;
253
+ readonly id: string;
254
254
  } | undefined)[];
255
255
  get directions(): import("@mappedin/maker-sdk/maker/src/map-view-objects/directions").Directions | undefined;
256
256
  cleanup(): void;
@@ -12,9 +12,6 @@ declare class MarkersController {
12
12
  rootStore: RootStore;
13
13
  mapStore: MapStore;
14
14
  });
15
- private isVortexAction;
16
- private getActionDirection;
17
- private get directionsConnectionMarkers();
18
15
  private get annotationMarkers();
19
16
  private get selectionMarkers();
20
17
  private get currentMarkers();
@@ -38,12 +38,12 @@ declare class RootStore {
38
38
  get isMakerPreview(): boolean;
39
39
  get isAppEmbedded(): boolean;
40
40
  get placesById(): Record<string, Place>;
41
+ get placesByNames(): Record<string, Place[]>;
41
42
  get places(): Place[];
42
43
  get geometries(): Geometry[];
43
44
  get exteriorDoors(): {
44
45
  "__#34@#private": any;
45
46
  readonly __type: "door";
46
- readonly id: string;
47
47
  readonly name: string;
48
48
  readonly description: string;
49
49
  readonly links: Hyperlink[];
@@ -53,7 +53,6 @@ declare class RootStore {
53
53
  readonly adjacentSpaces: {
54
54
  "__#35@#private": any;
55
55
  readonly __type: "space";
56
- readonly id: string;
57
56
  readonly name: string;
58
57
  readonly type: string;
59
58
  readonly description: string;
@@ -73,6 +72,7 @@ declare class RootStore {
73
72
  };
74
73
  };
75
74
  destroy(): void;
75
+ readonly id: string;
76
76
  }[];
77
77
  readonly isExterior: boolean;
78
78
  toJSON(): {
@@ -87,6 +87,7 @@ declare class RootStore {
87
87
  adjacentSpaces: string[];
88
88
  };
89
89
  destroy(): void;
90
+ readonly id: string;
90
91
  }[];
91
92
  /**
92
93
  * Floors in order from highest to lowest elevation.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mappedin/viewer",
3
- "version": "0.14.3-e8ee9a3.0",
3
+ "version": "0.15.0",
4
4
  "type": "module",
5
5
  "browser": "./dist/index.js",
6
6
  "license": "UNLICENSED",
@@ -19,7 +19,7 @@
19
19
  "devDependencies": {
20
20
  "@ladle/react": "^2.17.2",
21
21
  "@mappedin/maker-icons": "1.0.0-fe4ca2f",
22
- "@mappedin/maker-sdk": "6.0.3-alpha.4",
22
+ "@mappedin/maker-sdk": "6.1.1-v6-internal-release.27.301b490d.3320",
23
23
  "@mappedin/mvf": "2.0.1-c7526c3.0",
24
24
  "@testing-library/react-hooks": "^8.0.1",
25
25
  "@types/react": "^18.2.15",