@minmaps-dev/mm-web-sdk 1.0.0-rc.23 → 1.0.0-rc.25

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.d.ts CHANGED
@@ -115,6 +115,20 @@ interface Destination {
115
115
  category?: string;
116
116
  /** Additional properties */
117
117
  properties?: Record<string, unknown>;
118
+ /** Uploaded image (e.g. brand/store logo). JACS `/all` fullcall serves this
119
+ * as `{ items: [{ resourceType, mimeType, path }] }`; the legacy/basic shape
120
+ * is `[{ locales: [{ uriPath }] }]`. `DestinationIcons.register` handles both. */
121
+ uris?: unknown;
122
+ /** Free-form CMS metadata (reserved for future destination icon options). */
123
+ extensors?: Record<string, unknown>;
124
+ /** Map-manager "Label Display" mode (JACS `displayMode`):
125
+ * `0` Hidden (dot only) · `1` Label (dot + text) · `2` Image (uploaded logo).
126
+ * Undefined → treated as Label (backwards-compatible default). */
127
+ displayMode?: number;
128
+ /** Runtime-assigned map-image id, decorated in place by
129
+ * `DestinationIcons.register` (only for `displayMode === 2`).
130
+ * Read by the POI builder + theme layer. */
131
+ iconId?: string;
118
132
  }
119
133
  /**
120
134
  * Waypoint - a specific point location
@@ -300,6 +314,14 @@ type AmenityBadgeStyle = {
300
314
  /** Ring width in logical px. Default `2`. */
301
315
  ringWidth?: number;
302
316
  };
317
+ type DestinationChipStyle = {
318
+ /** Chip fill colour. Default `'#FFFFFF'`. */
319
+ color?: string;
320
+ /** Chip border colour. Default navy `'#162e51'`. */
321
+ borderColor?: string;
322
+ /** Chip border width in logical px. Default `2`. */
323
+ borderWidth?: number;
324
+ };
303
325
  interface SDKOptions {
304
326
  debug?: boolean;
305
327
  /**
@@ -361,6 +383,14 @@ interface SDKOptions {
361
383
  * the icon hiding while the disc stays painted.
362
384
  */
363
385
  amenityBadge?: AmenityBadgeStyle | false;
386
+ /**
387
+ * Chip composited behind each destination's uploaded logo. Destinations are
388
+ * full-colour brand images (not recoloured), so they get a neutral white
389
+ * rounded chip for legibility instead of the amenity gold badge. Pass `false`
390
+ * to render the logo bare, or an object to tune the chip fill / border.
391
+ * Defaults to a white chip with a 2px navy border.
392
+ */
393
+ destinationChip?: DestinationChipStyle | false;
364
394
  styleMode?: 'venueStyleUrl' | 'sdkTemplate';
365
395
  templateOverrideMode?: 'colorsOnly' | 'colorsAndConstants' | 'all';
366
396
  }
@@ -571,6 +601,17 @@ declare class MinuteMaps {
571
601
  * cone rendered next to the "You are here" marker.
572
602
  */
573
603
  getKioskHeading(): number | null;
604
+ /**
605
+ * Display name of the JACS device the kiosk is anchored to (e.g.
606
+ * "Main Lobby Kiosk", "Information Desk Kiosk"). `null` when the venue
607
+ * has no kiosk anchor or the device record carries no `name`.
608
+ *
609
+ * Distinct from `getYouAreHerePOI()?.name`, which is always the
610
+ * literal "You are here" label rendered on the map. Use this for chrome
611
+ * that needs the kiosk's identity — e.g. the directions overlay's
612
+ * "From <kiosk>" header.
613
+ */
614
+ getKioskName(): string | null;
574
615
  /**
575
616
  * Distance + walking time from the kiosk's anchor waypoint to a target,
576
617
  * computed over the JACS path graph (the same graph the routing engine
@@ -702,6 +743,28 @@ declare class MinuteMaps {
702
743
  * single-venue scale, and avoids a turf dependency on the hot path.
703
744
  */
704
745
  findClosestWaypoint(waypoints: Waypoint[], from?: [number, number]): Waypoint | null;
746
+ /**
747
+ * Route from the kiosk to the closest physical instance of an amenity.
748
+ * Resolves the amenity venue-wide, picks the instance with the smallest
749
+ * path-graph walk time from the kiosk (falling back to planar Euclidean
750
+ * when the walk-time graph can't resolve any waypoint), switches the
751
+ * active floor if needed, and routes via the same plumbing as
752
+ * `navigateFromKioskToPOI` — so step-by-step directions, the
753
+ * `routeReady` event, and the active-floor camera fit all "just work."
754
+ *
755
+ * Pass `accessible` / `avoidStairs` to weight the *route* (the SDK's
756
+ * routing engine reads these per call). Note: closest-instance picking
757
+ * itself is currently distance-based and does not yet honor those
758
+ * weights — the underlying walk-time graph applies pixel-length only.
759
+ * In practice this matters when an amenity has multiple instances and
760
+ * the geometrically closest is reachable only via stairs; the picked
761
+ * instance won't change today, but the *route* to it will avoid stairs
762
+ * (or fail gracefully) if `accessible`/`avoidStairs` is set.
763
+ */
764
+ navigateFromKioskToClosestAmenity(amenityId: string | number, options?: {
765
+ accessible?: boolean;
766
+ avoidStairs?: boolean;
767
+ }): Promise<any>;
705
768
  /**
706
769
  * Highlight + center on the closest physical instance of an amenity.
707
770
  * The amenity is resolved against `amenities.getDistinct()` (venue-wide,
@@ -767,4 +830,4 @@ declare class MinuteMaps {
767
830
  declare function createMinuteMapsSDK(config: SDKConfig): MinuteMaps;
768
831
 
769
832
  export { MinuteMaps, createMinuteMapsSDK };
770
- export type { Amenity, AmenityBadgeStyle, AmenityWithFloor, Bounds, BoundsPadding, CameraState, Destination, EventCallback, Floor, FloorMetadata, JMapAuth, JMapConfig, JacsAuth, JacsConfig, MapEvent, POI, POISearchResult, RoutePoint, RoutingOptions, SDKConfig, SDKOptions, ThemeName, ViewOptions, WayfindCenterMode, WayfindStep, Waypoint };
833
+ export type { Amenity, AmenityBadgeStyle, AmenityWithFloor, Bounds, BoundsPadding, CameraState, Destination, DestinationChipStyle, EventCallback, Floor, FloorMetadata, JMapAuth, JMapConfig, JacsAuth, JacsConfig, MapEvent, POI, POISearchResult, RoutePoint, RoutingOptions, SDKConfig, SDKOptions, ThemeName, ViewOptions, WayfindCenterMode, WayfindStep, Waypoint };