@minmaps-dev/mm-web-sdk 1.0.0-rc.32 → 1.0.0-rc.34
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 +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +366 -37
- 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 +14 -16
- package/dist/react.js +1 -1
- package/dist/react.js.map +1 -1
- package/package.json +2 -1
- package/src/themes/alt3-hybrid-style.json +742 -301
package/dist/react.d.ts
CHANGED
|
@@ -17,6 +17,12 @@ interface POI {
|
|
|
17
17
|
floorId: string | number;
|
|
18
18
|
/** Category/type of amenity (e.g., 'restroom', 'elevator') */
|
|
19
19
|
amenityType?: string;
|
|
20
|
+
/** Which amenity icon layer this POI renders in — `'connector'`,
|
|
21
|
+
* `'entrance'`, `'parking'`, `'bus'` or `'other'`. Derived from the
|
|
22
|
+
* amenity's connector flag, name, type and keywords; emitted as the
|
|
23
|
+
* `amenityCategory` feature property the theme filters on. Amenities
|
|
24
|
+
* only. See `amenityCategoryFor`. */
|
|
25
|
+
amenityCategory?: 'connector' | 'entrance' | 'parking' | 'bus' | 'other';
|
|
20
26
|
/** Search keywords */
|
|
21
27
|
keywords?: string[];
|
|
22
28
|
/** Additional properties */
|
|
@@ -81,16 +87,16 @@ type AmenityBadgeStyle = {
|
|
|
81
87
|
/** Ring width in logical px. Default `2`. */
|
|
82
88
|
ringWidth?: number;
|
|
83
89
|
};
|
|
84
|
-
type DestinationChipStyle = {
|
|
85
|
-
/** Chip fill colour. Default `'#FFFFFF'`. */
|
|
86
|
-
color?: string;
|
|
87
|
-
/** Chip border colour. Default navy `'#162e51'`. */
|
|
88
|
-
borderColor?: string;
|
|
89
|
-
/** Chip border width in logical px. Default `2`. */
|
|
90
|
-
borderWidth?: number;
|
|
91
|
-
};
|
|
92
90
|
interface SDKOptions {
|
|
93
91
|
debug?: boolean;
|
|
92
|
+
/**
|
|
93
|
+
* `window` key the SDK instance is published under while `debug` is on, so
|
|
94
|
+
* a running kiosk can be driven from devtools (`mm.debug.hide('labels')`,
|
|
95
|
+
* `mm.getMap()`). Defaults to `'mm'`. Pass another name to avoid a clash,
|
|
96
|
+
* or `false` to publish nothing even in debug mode. Ignored entirely when
|
|
97
|
+
* `debug` is off.
|
|
98
|
+
*/
|
|
99
|
+
debugGlobal?: string | false;
|
|
94
100
|
/**
|
|
95
101
|
* Initial theme. `'default'` uses the bundled hybrid 3D theme.
|
|
96
102
|
* `'high-contrast'` uses the WCAG-AA tuned theme. Pass a
|
|
@@ -179,14 +185,6 @@ interface SDKOptions {
|
|
|
179
185
|
* unless this is set explicitly.
|
|
180
186
|
*/
|
|
181
187
|
connectorBadge?: AmenityBadgeStyle | false;
|
|
182
|
-
/**
|
|
183
|
-
* Chip composited behind each destination's uploaded logo. Destinations are
|
|
184
|
-
* full-colour brand images (not recoloured), so they get a neutral white
|
|
185
|
-
* rounded chip for legibility instead of the amenity gold badge. Pass `false`
|
|
186
|
-
* to render the logo bare, or an object to tune the chip fill / border.
|
|
187
|
-
* Defaults to a white chip with a 2px navy border.
|
|
188
|
-
*/
|
|
189
|
-
destinationChip?: DestinationChipStyle | false;
|
|
190
188
|
styleMode?: 'venueStyleUrl' | 'sdkTemplate';
|
|
191
189
|
templateOverrideMode?: 'colorsOnly' | 'colorsAndConstants' | 'all';
|
|
192
190
|
}
|