@minmaps-dev/mm-web-sdk 1.0.0-rc.30 → 1.0.0-rc.32

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/react.d.ts CHANGED
@@ -1,5 +1,54 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
 
3
+ interface POI {
4
+ /** Unique identifier */
5
+ id: string | number;
6
+ /** POI type */
7
+ type: 'amenity' | 'destination' | 'kiosk';
8
+ /** Display name */
9
+ name: string;
10
+ /** Geographic coordinates [longitude, latitude] */
11
+ coordinates: [number, number];
12
+ /** Icon identifier for rendering */
13
+ iconId?: string;
14
+ /** Whether this POI should render its label */
15
+ showLabel?: boolean;
16
+ /** Floor this POI belongs to */
17
+ floorId: string | number;
18
+ /** Category/type of amenity (e.g., 'restroom', 'elevator') */
19
+ amenityType?: string;
20
+ /** Search keywords */
21
+ keywords?: string[];
22
+ /** Additional properties */
23
+ properties?: Record<string, unknown>;
24
+ /** JMap waypoint ID that this POI instance is bound to */
25
+ waypointId?: string | number;
26
+ /** Full waypoint object for this POI instance */
27
+ waypoint?: Waypoint;
28
+ /** Marks this POI as the "You are here" kiosk */
29
+ isYouAreHere?: boolean;
30
+ /** For kiosk POIs only: compass heading the device physically faces, in
31
+ * degrees clockwise from north. Sourced from JACS `Device.heading`. */
32
+ heading?: number | null;
33
+ }
34
+ /**
35
+ * Waypoint - a specific point location
36
+ */
37
+ interface Waypoint {
38
+ /** Geographic coordinates [longitude, latitude] */
39
+ coordinates: number[];
40
+ /** Associated map ID */
41
+ mapId: string | number;
42
+ /** Associated floor ID */
43
+ floorId?: string | number;
44
+ /** Whether this is the primary/default waypoint */
45
+ isPrimary?: boolean;
46
+ /** CMS zone (department) this waypoint belongs to, if any. The only backend
47
+ * link between a location and its department — read at runtime across the
48
+ * data provider (see the package CLAUDE.md zone landmine). */
49
+ zoneId?: string | number;
50
+ }
51
+
3
52
  /**
4
53
  * Padding kept clear inside the viewport when the SDK frames bounds —
5
54
  * the initial venue/floor fit and the wayfinding route fit. A plain
@@ -72,6 +121,12 @@ interface SDKOptions {
72
121
  enableInteractions?: boolean;
73
122
  customSprite?: string;
74
123
  minIndoorZoom?: number;
124
+ /**
125
+ * Interior unit-wall thickness in feet (default 1). Each wall is built by
126
+ * insetting a ring into each unit by `wallThickness / 2`, so adjacent units
127
+ * share a wall (their rings abut at the common edge). Floored at 0.5 — a
128
+ * thinner value collapses the negative buffer and drops the wall.
129
+ */
75
130
  wallThickness?: number;
76
131
  boundsPadding?: BoundsPadding;
77
132
  /**
@@ -168,9 +223,12 @@ type SDKConfig = {
168
223
  options?: SDKOptions;
169
224
  };
170
225
 
171
- declare function MinuteMapsView({ config, className }: {
226
+ declare function MinuteMapsView({ config, className, onSelect, }: {
172
227
  config: SDKConfig;
173
228
  className?: string;
229
+ /** Fired when the user taps a destination/amenity pin. `pois` holds every
230
+ * POI co-located at that point (overlapping pins / a shared suite). */
231
+ onSelect?: (pois: POI[], coordinates: [number, number]) => void;
174
232
  }): react_jsx_runtime.JSX.Element;
175
233
 
176
234
  export { MinuteMapsView };