@minmaps-dev/mm-web-sdk 1.0.0-rc.24 → 1.0.0-rc.26
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/README.md +19 -16
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +31 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/react.cjs +1 -1
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.ts +16 -0
- package/dist/react.js +1 -1
- package/dist/react.js.map +1 -1
- package/package.json +14 -12
- package/src/themes/alt3-hybrid-style.json +33 -3
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
|
}
|
|
@@ -800,4 +830,4 @@ declare class MinuteMaps {
|
|
|
800
830
|
declare function createMinuteMapsSDK(config: SDKConfig): MinuteMaps;
|
|
801
831
|
|
|
802
832
|
export { MinuteMaps, createMinuteMapsSDK };
|
|
803
|
-
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 };
|