@mappedin/mappedin-js 5.51.0 → 5.52.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 @@
1
+ import{b as a}from"./chunk-ORJYYHGW.js";var e,c=a((()=>{e={env:{NODE_ENV:"production",npm_package_version:"5.52.0"}}}));export{c as a,e as b};
@@ -225,6 +225,21 @@ declare module '@mappedin/mappedin-js/renderer/public/MapView' {
225
225
  * @param mapOrMapId The {@link MappedinMap} the node should belong to.
226
226
  */
227
227
  getNearestNodeByScreenCoordinates(x: number, y: number, mapOrMapId?: MappedinMap | MappedinMap['id']): MappedinNode;
228
+ /**
229
+ * Get the nearest node by coordinate.
230
+ * If Dynamic Focus is enabled, the nearest node on the base map is returned if it is closer than the current map.
231
+ * @param coordinate - The {@link MappedinCoordinate} to get the nearest node for
232
+ */
233
+ getNearestNodeByCoordinate(coordinate: MappedinCoordinate): MappedinNode;
234
+ /**
235
+ * Get the nearest node by latitude and longitude and map.
236
+ * If no map is provided, the current map is used.
237
+ * If Dynamic Focus is enabled, the nearest node on the base map is returned if it is closer than the current map.
238
+ * @param lat - Latitude
239
+ * @param lon - Longitude
240
+ * @param mapOrMapId The {@link MappedinMap} the node should belong to.
241
+ */
242
+ getNearestNodeByLatLon(lat: number, lon: number, mapOrMapId?: MappedinMap | MappedinMap['id']): MappedinNode;
228
243
  /**
229
244
  * Subscribe a function to an {@link E_SDK_EVENT}.
230
245
  *
@@ -799,7 +814,7 @@ declare module '@mappedin/mappedin-js/get-venue' {
799
814
  *
800
815
  * Export this only so our internal pre-built products can use it. We don't want to document it for external developers.
801
816
  */
802
- export { default as CustomerAnalytics } from '@mappedin/mappedin-js/get-venue/Mappedin.CustomerAnalytics';
817
+ export { default as CustomerAnalytics, type IAnalytics } from '@mappedin/mappedin-js/get-venue/Mappedin.CustomerAnalytics';
803
818
  export type { TMappedinDirective } from '@mappedin/mappedin-js/get-venue/MappedinDirections';
804
819
  export type { IDirectionsResult } from '@mappedin/mappedin-js/navigator';
805
820
  export type { TOperationHoursMap } from '@mappedin/mappedin-js/get-venue/MappedinLocation';
@@ -1111,6 +1126,11 @@ declare module '@mappedin/mappedin-js/renderer/MapView.types' {
1111
1126
  * The minimum altitude of the path in meters.
1112
1127
  */
1113
1128
  minAdjustedAltitude?: number;
1129
+ /**
1130
+ * Whether the path should be dashed style or solid.
1131
+ * @defaultValue false
1132
+ */
1133
+ dashed?: boolean;
1114
1134
  };
1115
1135
  export type TConnectionProps = {
1116
1136
  /**
@@ -4775,6 +4795,7 @@ declare module '@mappedin/mappedin-js/get-venue/Mappedin.types' {
4775
4795
  clientId?: string;
4776
4796
  clientSecret?: string;
4777
4797
  baseUrl?: string;
4798
+ baseUri?: string;
4778
4799
  includeHidden?: boolean;
4779
4800
  noAuth?: boolean;
4780
4801
  perspective?: string;
@@ -6343,6 +6364,11 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.BlueDot/Mappedi
6343
6364
  * @defaultValue false
6344
6365
  */
6345
6366
  useRotationMode?: boolean;
6367
+ /**
6368
+ * The maximum acceptable accuracy in meters. Position updates with accuracy exceeding this value will be dropped.
6369
+ * @default 50
6370
+ */
6371
+ accuracyThreshold?: number;
6346
6372
  };
6347
6373
  export type TUserData = {
6348
6374
  state: E_BLUEDOT_STATE;
@@ -6775,7 +6801,8 @@ declare module '@mappedin/mappedin-js/navigator/Directive' {
6775
6801
  RIGHT = "Right",
6776
6802
  SLIGHTRIGHT = "SlightRight",
6777
6803
  LEFT = "Left",
6778
- SLIGHTLEFT = "SlightLeft"
6804
+ SLIGHTLEFT = "SlightLeft",
6805
+ BACK = "Back"
6779
6806
  }
6780
6807
  export enum VORTEX_DIRECTION_TYPE {
6781
6808
  UP = "up",
@@ -10140,6 +10167,8 @@ declare module '@mappedin/mappedin-js/renderer/private/Core.interface' {
10140
10167
  canvasHeight: number;
10141
10168
  setState(state: STATE): Promise<void>;
10142
10169
  getNearestNodeByScreenCoordinate(x: number, y: number, mapOrMapId?: MappedinMap | MappedinMap['id']): MappedinNode;
10170
+ getNearestNodeByCoordinate(coordinate: MappedinCoordinate): MappedinNode;
10171
+ getNearestNodeByLatLon(lat: number, lon: number, mapOrMapId?: MappedinMap | MappedinMap['id']): MappedinNode;
10143
10172
  destroy(): void;
10144
10173
  }
10145
10174
  }
@@ -10332,6 +10361,17 @@ declare module '@mappedin/mappedin-js/renderer/private/Core' {
10332
10361
  getPolygonsAtScreenCoordinate: (x: number, y: number, options?: TGetPolygonsAtCoordinateOptions) => MappedinPolygon[];
10333
10362
  getPolygonsAtCoordinate: (coordinate: MappedinCoordinate, options?: TGetPolygonsAtCoordinateOptions) => MappedinPolygon[];
10334
10363
  getNearestNodeByScreenCoordinate(x: number, y: number, mapOrMapId?: MappedinMap | MappedinMap['id']): MappedinNode;
10364
+ /**
10365
+ * Get the nearest node by coordinate.
10366
+ * If Dynamic Focus is enabled, the nearest node on the base map is returned if it is closer than the current map.
10367
+ */
10368
+ getNearestNodeByCoordinate: (coordinate: MappedinCoordinate) => MappedinNode;
10369
+ /**
10370
+ * Get the nearest node by latitude and longitude and map.
10371
+ * If no map is provided, the current map is used.
10372
+ * If Dynamic Focus is enabled, the nearest node on the base map is returned if it is closer than the current map.
10373
+ */
10374
+ getNearestNodeByLatLon: (lat: number, lon: number, mapOrMapId?: MappedinMap | MappedinMap['id']) => MappedinNode;
10335
10375
  /**
10336
10376
  * Destroys instance and frees resources
10337
10377
  *
@@ -10679,6 +10719,11 @@ declare module '@mappedin/mappedin-js/get-venue/MappedinNode' {
10679
10719
  */
10680
10720
  operationHours?: TOpeningHours[];
10681
10721
  externalId?: string;
10722
+ /**
10723
+ * @internal
10724
+ * Label identifier for this node. For grouping and filtering nodes.
10725
+ */
10726
+ label: string;
10682
10727
  constructor(mappedin: Mappedin, data: any);
10683
10728
  /**
10684
10729
  * Map Object that this Node is located on.
@@ -10721,6 +10766,11 @@ declare module '@mappedin/mappedin-js/get-venue/MappedinNode' {
10721
10766
  */
10722
10767
  directionsTo(destination: MappedinNode | MappedinLocation | MappedinPolygon, options?: TDirectionToOptions): MappedinDirections;
10723
10768
  directionsTo(destination: MappedinDestinationSet, options?: TDirectionToOptions): MappedinDirections[];
10769
+ /**
10770
+ * @internal
10771
+ * Whether the node is part of a shuttle route.
10772
+ */
10773
+ get isShuttleNode(): boolean;
10724
10774
  /**
10725
10775
  *
10726
10776
  * Calculate walking distance in meters between 2 nodes, polygons or locations
@@ -10940,9 +10990,20 @@ declare module '@mappedin/mappedin-js/get-venue/MappedinCategory' {
10940
10990
  get children(): MappedinCategory[];
10941
10991
  static hydrate(categories: any, mappedin: Mappedin): MappedinCategory[];
10942
10992
  static updateInPlace(mappedin: Mappedin, hydrateData?: any): Promise<void>;
10993
+ static defaultLanguageCategoryControl: {
10994
+ fetchDefaultLanguageCategories(mappedin: Mappedin): Promise<void>;
10995
+ getDefaultLanguageCategory(mappedin: Mappedin, id: string): CategoryFromCMSAPI | undefined;
10996
+ };
10943
10997
  static fetch(mappedin: Mappedin): Promise<MappedinCategory[]>;
10944
10998
  toJSON(): any;
10945
10999
  }
11000
+ type CategoryFromCMSAPI = {
11001
+ id: string;
11002
+ icon: Record<string, never> | {
11003
+ original: string;
11004
+ };
11005
+ };
11006
+ export {};
10946
11007
  }
10947
11008
 
10948
11009
  declare module '@mappedin/mappedin-js/get-venue/MappedinDestinationSet' {
@@ -11408,6 +11469,7 @@ declare module '@mappedin/mappedin-js/get-venue/utils' {
11408
11469
  */
11409
11470
  export const getPrimaryLocationForPolygon: (polygon: MappedinPolygon | string | undefined, venue: Mappedin) => MappedinLocation | null;
11410
11471
  export function mergeThings(thingsOption: ThingsOption | undefined): MergedThings;
11472
+ export function isMappedinUsingDefaultLanguage(mappedin: Mappedin): boolean;
11411
11473
  }
11412
11474
 
11413
11475
  declare module '@mappedin/mappedin-js/get-venue/Mappedin.cache' {