@mappedin/react-native-sdk 5.0.0-beta.5 → 5.0.0-beta.6

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.
Files changed (3) hide show
  1. package/dist/index.d.ts +33 -63
  2. package/dist/index.js +194 -194
  3. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -15,7 +15,7 @@ declare module '@mappedin/react-native-sdk' {
15
15
  export type { TMiMiniMapProps } from '@mappedin/react-native-sdk/wrappers/react-native-sdk/src/MiMiniMap';
16
16
  export type { MapViewStore } from '@mappedin/react-native-sdk/wrappers/react-native-sdk/src/MiMapView.store';
17
17
  export { getVenue, getVenueBundle } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
18
- export type { TGetVenueOptions, TGetVenueBundleOptions, TMappedinOfflineSearchResult, TMappedinOfflineSearchSuggestions, TMappedinOfflineSearchOptions } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
18
+ export type { TGetVenueOptions, TGetVenueBundleOptions, TMappedinOfflineSearchResult, TMappedinOfflineSearchSuggestions, TMappedinOfflineSearchOptions, TMappedinOfflineSearchAllOptions, TMappedinOfflineAllSearchMatch } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
19
19
  export { STATE } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
20
20
  export { COLLISION_RANKING_TIERS, MARKER_ANCHOR, E_BLUEDOT_STATE, MappedinCoordinate, labelThemes, E_BLUEDOT_MARKER_STATE, E_BLUEDOT_STATE_REASON, MAP_RENDER_MODE } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
21
21
  export type { TSerializableJourneyOptions, TMiMapViewOptions } from '@mappedin/react-native-sdk/wrappers/common';
@@ -116,7 +116,7 @@ declare module '@mappedin/react-native-sdk/wrappers/react-native-sdk/src/MiMapVi
116
116
  /**
117
117
  * @category Component
118
118
  */
119
- export const MiMapView: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<TMiMapViewProps, "onFirstMapLoaded" | "venueData" | "options" | "style" | "onPolygonClicked" | "onBlueDotStateChanged" | "onBlueDotPositionUpdated" | "onDataLoaded" | "onNothingClicked" | "onMapChanged" | "onStateChanged" | "onVenueLoadError"> & React.RefAttributes<MapViewStore>>>;
119
+ export const MiMapView: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<TMiMapViewProps, "onFirstMapLoaded" | "style" | "options" | "onDataLoaded" | "venueData" | "onPolygonClicked" | "onBlueDotStateChanged" | "onBlueDotPositionUpdated" | "onNothingClicked" | "onMapChanged" | "onStateChanged" | "onVenueLoadError"> & React.RefAttributes<MapViewStore>>>;
120
120
  }
121
121
 
122
122
  declare module '@mappedin/react-native-sdk/wrappers/react-native-sdk/src/MiMiniMap' {
@@ -431,7 +431,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/index.rn' {
431
431
  export type { TBlueDotPositionUpdate, TBlueDotStateChange, TJourneyOptions, TMapViewOptions, TCreateMarkerOptions, TGeolocationObject, TPathOptions, TCommonLabelOptions, TFlatLabelOptions, TFlatLabelPolygonOptions, TFloatingLabelPolygonOptions, TLabelAllLocationCommonOptions, TLabelAllLocationFloatingLabelOptions, TLabelAllLocationFlatLabelOptions, TEnableBlueDotOptions, TFloatingLabelAppearance, TFlatLabelAppearance } from '@mappedin/react-native-sdk/core/packages/renderer/MapView.types';
432
432
  export { BEARING_TYPE, ACTION_TYPE } from '@mappedin/react-native-sdk/core/packages/navigator';
433
433
  export type { IDirectionsResult, E_MESSAGES as E_GET_DIRECTIONS_MESSAGES } from '@mappedin/react-native-sdk/core/packages/navigator';
434
- export type { TGetVenueBundleOptions, TGetVenueOptions, TMappedinDirective, TShowVenueOptions, TMappedinOfflineSearchOptions, TMappedinOfflineSearchResult, TMappedinOfflineSearchSuggestions } from '@mappedin/react-native-sdk/core/packages/get-venue';
434
+ export type { TGetVenueBundleOptions, TGetVenueOptions, TMappedinDirective, TShowVenueOptions, TMappedinOfflineSearchOptions, TMappedinOfflineSearchResult, TMappedinOfflineSearchSuggestions, TMappedinOfflineSearchAllOptions, TMappedinOfflineAllSearchMatch } from '@mappedin/react-native-sdk/core/packages/get-venue';
435
435
  export { MappedinLocation, MappedinPolygon, MappedinNode, MappedinCategory, MappedinMap, MappedinEvent, MappedinMapGroup, MappedinVenue, MappedinVortex, MappedinDirections, MappedinNavigatable, MappedinCoordinate, MappedinRankings, MAP_RENDER_MODE, OfflineSearch, MappedinCollectionType } from '@mappedin/react-native-sdk/core/packages/get-venue';
436
436
  export type { TSafeAreaInsets, TFocusOnTargets, TFocusOnCameraOptions, TAnimatePositionOptions, TCameraAnimationOptions, TFocusOnOptions } from '@mappedin/react-native-sdk/core/packages/renderer/Camera';
437
437
  export { SAFE_AREA_INSET_TYPE, ANIMATION_TWEENS, CAMERA_EASING_MODE } from '@mappedin/react-native-sdk/core/packages/renderer/Camera';
@@ -512,7 +512,7 @@ declare module '@mappedin/react-native-sdk/wrappers/react-native-sdk/src' {
512
512
  export type { TMiMiniMapProps } from '@mappedin/react-native-sdk/wrappers/react-native-sdk/src/MiMiniMap';
513
513
  export type { MapViewStore } from '@mappedin/react-native-sdk/wrappers/react-native-sdk/src/MiMapView.store';
514
514
  export { getVenue, getVenueBundle } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
515
- export type { TGetVenueOptions, TGetVenueBundleOptions, TMappedinOfflineSearchResult, TMappedinOfflineSearchSuggestions, TMappedinOfflineSearchOptions } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
515
+ export type { TGetVenueOptions, TGetVenueBundleOptions, TMappedinOfflineSearchResult, TMappedinOfflineSearchSuggestions, TMappedinOfflineSearchOptions, TMappedinOfflineSearchAllOptions, TMappedinOfflineAllSearchMatch } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
516
516
  export { STATE } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
517
517
  export { COLLISION_RANKING_TIERS, MARKER_ANCHOR, E_BLUEDOT_STATE, MappedinCoordinate, labelThemes, E_BLUEDOT_MARKER_STATE, E_BLUEDOT_STATE_REASON, MAP_RENDER_MODE } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
518
518
  export type { TSerializableJourneyOptions, TMiMapViewOptions } from '@mappedin/react-native-sdk/wrappers/common';
@@ -598,7 +598,7 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue' {
598
598
  export type { TOperationHoursMap } from '@mappedin/react-native-sdk/core/packages/get-venue/MappedinLocation';
599
599
  export type { TDirectionToOptions } from '@mappedin/react-native-sdk/core/packages/get-venue/MappedinNavigatable';
600
600
  export { OfflineSearch } from '@mappedin/react-native-sdk/core/packages/get-venue/Mappedin.OfflineSearch';
601
- export type { TMappedinOfflineSearchOptions, TMappedinOfflineSearchResult, TMappedinOfflineSearchSuggestions, TMappedinOfflineAllSearchMatch } from '@mappedin/react-native-sdk/core/packages/get-venue/Mappedin.OfflineSearch';
601
+ export type { TMappedinOfflineSearchOptions, TMappedinOfflineSearchResult, TMappedinOfflineSearchSuggestions, TMappedinOfflineAllSearchMatch, TMappedinOfflineSearchAllOptions } from '@mappedin/react-native-sdk/core/packages/get-venue/Mappedin.OfflineSearch';
602
602
  /** API data types */
603
603
  export type { TLocationType, TNode, TImage, TLogo, TGalleryImage, TPhone, TSocial, TColor, TVortex, TPicture, TOpeningHours, TSiblingGroup, TState, TCategory, TEvent, TGeoReference, TMap, TMapGroup, TBuilding, TLocation, TPolygon, TPolygonRanking, TVenue, TMappedinAPI } from '@mappedin/react-native-sdk/core/packages/get-venue/Mappedin.API.types';
604
604
  export type { TGetVenueOptions } from '@mappedin/react-native-sdk/core/packages/get-venue/Mappedin.types';
@@ -1505,7 +1505,10 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/Camera' {
1505
1505
  */
1506
1506
  get rotation(): number;
1507
1507
  /**
1508
- * Current Camera tilt between 0 (top-down) to 1 (from the side)
1508
+ * Current camera tilt angle (in radians), relative to a top-down view.
1509
+ *
1510
+ * ex: 0 means the camera is facing top-down, π/2 means the camera is
1511
+ * facing directly from the side.
1509
1512
  */
1510
1513
  get tilt(): number;
1511
1514
  /**
@@ -1524,6 +1527,20 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/Camera' {
1524
1527
  * Set the maximum distance (in meters) the camera is allowed to get from the ground.
1525
1528
  */
1526
1529
  set maxZoom(meters: number);
1530
+ /**
1531
+ * Get the current maximum tilt angle (in radians) the camera is allowed to use.
1532
+ */
1533
+ get maxTilt(): number;
1534
+ /**
1535
+ * Sets the maximum tilt angle (in radians) the camera is allowed to use.
1536
+ *
1537
+ * Tilt angle must be between 0 and π/2 radians. It will be clamped within
1538
+ * this range if it exceeds it on either end.
1539
+ *
1540
+ * As tilt angle approaches π/2 radians, this will impact overall touch controls
1541
+ * and should be used sparingly.
1542
+ */
1543
+ set maxTilt(radians: number);
1527
1544
  /**
1528
1545
  * Get the current camera position, which is at the center of the map.
1529
1546
  * @returns the position as a coordinate
@@ -2385,32 +2402,7 @@ declare module '@mappedin/react-native-sdk/wrappers/common/controller' {
2385
2402
  };
2386
2403
  showVenueOptions: import("../react-native-sdk/src").TShowVenueOptions & {
2387
2404
  prepareSearch?: boolean | undefined;
2388
- searchOptions?: Partial<{
2389
- stopWords?: string[] | undefined;
2390
- searchTags?: boolean | undefined;
2391
- searchDescriptions?: boolean | undefined;
2392
- searchTagsInCategories?: boolean | undefined; /**
2393
- * Handle rejection from the other side, typically when the request results in an error
2394
- * @hidden
2395
- searchDescriptionsInCategories?: boolean | undefined;
2396
- jsonIndex?: string | undefined;
2397
- useLocationRank?: boolean | undefined;
2398
- emitAnalyticsEvents?: boolean | undefined;
2399
- constants: {
2400
- PRIMARY_INDEX_FUZZYNESS: number;
2401
- PRIMARY_INDEX_WEIGHT: number;
2402
- SECONDARY_INDEX_WEIGHT: number;
2403
- LOCATION_NAME_WEIGHT: number;
2404
- CATEGORY_NAME_WEIGHT: number;
2405
- CATEGORY_LOCATION_DESCRIPTION_WEIGHT: number;
2406
- CATEGORY_LOCATION_TAGS_WEIGHT: number;
2407
- CATEGORY_LOCATION_NAME_WEIGHT: number;
2408
- PRIMARY_INDEX_TAGS_NAME_WEIGHT: number;
2409
- LOCATION_DEFAULT_RANK: number;
2410
- RATIO_OF_FUZZY_TO_EXACT: number;
2411
- RATIO_OF_PREFIX_TO_EXACT: number;
2412
- };
2413
- }> | undefined;
2405
+ searchOptions?: Partial<import("../react-native-sdk/src").TMappedinOfflineSearchAllOptions> | undefined;
2414
2406
  };
2415
2407
  };
2416
2408
  };
@@ -2421,32 +2413,7 @@ declare module '@mappedin/react-native-sdk/wrappers/common/controller' {
2421
2413
  format: "jsonstring";
2422
2414
  showVenueOptions: import("../react-native-sdk/src").TShowVenueOptions & {
2423
2415
  prepareSearch?: boolean | undefined;
2424
- searchOptions?: Partial<{
2425
- stopWords?: string[] | undefined;
2426
- searchTags?: boolean | undefined;
2427
- searchDescriptions?: boolean | undefined;
2428
- searchTagsInCategories?: boolean | undefined; /**
2429
- * Handle rejection from the other side, typically when the request results in an error
2430
- * @hidden
2431
- searchDescriptionsInCategories?: boolean | undefined;
2432
- jsonIndex?: string | undefined;
2433
- useLocationRank?: boolean | undefined;
2434
- emitAnalyticsEvents?: boolean | undefined;
2435
- constants: {
2436
- PRIMARY_INDEX_FUZZYNESS: number;
2437
- PRIMARY_INDEX_WEIGHT: number;
2438
- SECONDARY_INDEX_WEIGHT: number;
2439
- LOCATION_NAME_WEIGHT: number;
2440
- CATEGORY_NAME_WEIGHT: number;
2441
- CATEGORY_LOCATION_DESCRIPTION_WEIGHT: number;
2442
- CATEGORY_LOCATION_TAGS_WEIGHT: number;
2443
- CATEGORY_LOCATION_NAME_WEIGHT: number;
2444
- PRIMARY_INDEX_TAGS_NAME_WEIGHT: number;
2445
- LOCATION_DEFAULT_RANK: number;
2446
- RATIO_OF_FUZZY_TO_EXACT: number;
2447
- RATIO_OF_PREFIX_TO_EXACT: number;
2448
- };
2449
- }> | undefined;
2416
+ searchOptions?: Partial<import("../react-native-sdk/src").TMappedinOfflineSearchAllOptions> | undefined;
2450
2417
  };
2451
2418
  };
2452
2419
  };
@@ -2550,7 +2517,7 @@ declare module '@mappedin/react-native-sdk/wrappers/common/controller' {
2550
2517
  msgID?: string | undefined;
2551
2518
  data: {
2552
2519
  polygonId: string;
2553
- options: (import("../react-native-sdk/src").TFloatingLabelPolygonOptions | import("../react-native-sdk/src").TFlatLabelPolygonOptions) & {
2520
+ options: (import("../react-native-sdk/src").TFlatLabelPolygonOptions | import("../react-native-sdk/src").TFloatingLabelPolygonOptions) & {
2554
2521
  legacyLabels?: boolean | undefined;
2555
2522
  };
2556
2523
  };
@@ -2766,6 +2733,8 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue/Mappedin.type
2766
2733
  };
2767
2734
  venue: string;
2768
2735
  things?: any;
2736
+ useDraftData?: boolean;
2737
+ platformString?: string;
2769
2738
  };
2770
2739
  export type TGetVenueOptionsInternal = {
2771
2740
  baseUrl?: string;
@@ -3850,7 +3819,7 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue/Mappedin.Offl
3850
3819
  *
3851
3820
  * @class Mappedin.OfflineSearch
3852
3821
  */
3853
- type TOfflineSearchAllOptions = {
3822
+ export type TMappedinOfflineSearchAllOptions = {
3854
3823
  /**
3855
3824
  * Array of stopwords to ignore when searching, default: english stopwords
3856
3825
  */
@@ -3972,7 +3941,7 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue/Mappedin.Offl
3972
3941
  */
3973
3942
  value?: string;
3974
3943
  };
3975
- export type TMappedinOfflineSearchOptions = Partial<TOfflineSearchAllOptions>;
3944
+ export type TMappedinOfflineSearchOptions = Partial<TMappedinOfflineSearchAllOptions>;
3976
3945
  export type TMappedinOfflineSearchResult = {
3977
3946
  /**
3978
3947
  * Type describing the object
@@ -4007,7 +3976,7 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue/Mappedin.Offl
4007
3976
  }[];
4008
3977
  };
4009
3978
  /**
4010
- * A {@link OfflineSearch} is an offline search module. It can be initialized at any time by passing the {@link Mappedin} object and a set of {@link TMappedinOfflineAllSearchOptions} options.
3979
+ * A {@link OfflineSearch} is an offline search module. It can be initialized at any time by passing the {@link Mappedin} object and a set of {@link TMappedinOfflineSearchOptions} options.
4011
3980
  *
4012
3981
  *
4013
3982
  * @class Mappedin.OfflineSearch
@@ -5398,7 +5367,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer' {
5398
5367
  export type { MapView } from '@mappedin/react-native-sdk/core/packages/renderer/MapView';
5399
5368
  export type { TSafeAreaInsets, TFocusOnTargets, TFocusOnCameraOptions, TAnimatePositionOptions, TCameraAnimationOptions, TFocusOnOptions, default as Camera } from '@mappedin/react-native-sdk/core/packages/renderer/Camera';
5400
5369
  export { SAFE_AREA_INSET_TYPE, ANIMATION_TWEENS, CAMERA_EASING_MODE } from '@mappedin/react-native-sdk/core/packages/renderer/Camera';
5401
- export type { TGetVenueOptions, TShowVenueOptions, TMappedinOfflineSearchOptions, TMappedinOfflineSearchResult, TMappedinOfflineSearchSuggestions, TMappedinOfflineAllSearchMatch } from '@mappedin/react-native-sdk/core/packages/get-venue';
5370
+ export type { TGetVenueOptions, TShowVenueOptions, TMappedinOfflineSearchOptions, TMappedinOfflineSearchResult, TMappedinOfflineSearchSuggestions, TMappedinOfflineAllSearchMatch, TMappedinOfflineSearchAllOptions } from '@mappedin/react-native-sdk/core/packages/get-venue';
5402
5371
  export { Mappedin, MappedinDirections, MappedinLocation, MappedinPolygon, MappedinNode, MappedinCategory, MappedinMap, MappedinEvent, MappedinMapGroup, MappedinVenue, MappedinVortex, MappedinNavigatable, MappedinCoordinate, OfflineSearch, MAP_RENDER_MODE } from '@mappedin/react-native-sdk/core/packages/get-venue';
5403
5372
  export { BundleAssetManager } from '@mappedin/react-native-sdk/core/packages/renderer/bundle-asset-manager';
5404
5373
  }
@@ -5686,6 +5655,7 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue/Mappedin.Anal
5686
5655
  venue: string;
5687
5656
  testMode?: boolean | string;
5688
5657
  context?: string;
5658
+ platformString?: string;
5689
5659
  };
5690
5660
  /**
5691
5661
  * A class to access the Mappedin Analytics platform. Correct usage will improve Smart Search results, and lead to more accurate insights.