@situm/react-native 3.0.0-beta.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.
- package/LICENSE +21 -0
- package/README.md +656 -0
- package/ReactNativeSitumPlugin.podspec +22 -0
- package/SECURITY-POLICY.md +9 -0
- package/android/.gradle/5.6.4/fileChanges/last-build.bin +0 -0
- package/android/.gradle/5.6.4/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/5.6.4/gc.properties +0 -0
- package/android/.idea/.name +1 -0
- package/android/.idea/codeStyles/Project.xml +116 -0
- package/android/.idea/encodings.xml +6 -0
- package/android/.idea/misc.xml +31 -0
- package/android/.idea/sonarlint/issuestore/index.pb +15 -0
- package/android/.project +34 -0
- package/android/build.gradle +45 -0
- package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/android/gradle/wrapper/gradle-wrapper.properties +6 -0
- package/android/gradlew +172 -0
- package/android/gradlew.bat +84 -0
- package/android/src/main/AndroidManifest.xml +6 -0
- package/android/src/main/java/com/situm/plugin/PluginHelper.java +989 -0
- package/android/src/main/java/com/situm/plugin/SitumMapper.java +1206 -0
- package/android/src/main/java/com/situm/plugin/SitumPackage.java +29 -0
- package/android/src/main/java/com/situm/plugin/SitumPlugin.java +84 -0
- package/android/src/main/java/com/situm/plugin/SitumPluginImpl.java +344 -0
- package/android/src/main/java/com/situm/plugin/utils/ReactNativeJson.java +122 -0
- package/android/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
- package/android/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
- package/android/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
- package/android/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
- package/android/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
- package/android/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
- package/android/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
- package/android/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
- package/android/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
- package/android/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
- package/android/src/main/res/values/strings.xml +3 -0
- package/android/src/main/res/values/styles.xml +9 -0
- package/ios/Constants.h +14 -0
- package/ios/Constants.m +14 -0
- package/ios/RNSitumReactNativePlugin.xcodeproj/project.pbxproj +272 -0
- package/ios/SitumLocationWrapper.h +112 -0
- package/ios/SitumLocationWrapper.m +1132 -0
- package/ios/SitumPlugin.h +15 -0
- package/ios/SitumPlugin.m +911 -0
- package/lib/commonjs/index.js +25 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/sdk/index.js +399 -0
- package/lib/commonjs/sdk/index.js.map +1 -0
- package/lib/commonjs/sdk/nativeInterface.js +20 -0
- package/lib/commonjs/sdk/nativeInterface.js.map +1 -0
- package/lib/commonjs/sdk/types/index.d.js +6 -0
- package/lib/commonjs/sdk/types/index.d.js.map +1 -0
- package/lib/commonjs/sdk/utils.js +22 -0
- package/lib/commonjs/sdk/utils.js.map +1 -0
- package/lib/commonjs/utils/requestPermission.js +73 -0
- package/lib/commonjs/utils/requestPermission.js.map +1 -0
- package/lib/commonjs/wayfinding/components/MapView.js +220 -0
- package/lib/commonjs/wayfinding/components/MapView.js.map +1 -0
- package/lib/commonjs/wayfinding/hooks/index.js +401 -0
- package/lib/commonjs/wayfinding/hooks/index.js.map +1 -0
- package/lib/commonjs/wayfinding/index.js +45 -0
- package/lib/commonjs/wayfinding/index.js.map +1 -0
- package/lib/commonjs/wayfinding/store/index.js +237 -0
- package/lib/commonjs/wayfinding/store/index.js.map +1 -0
- package/lib/commonjs/wayfinding/store/utils.js +44 -0
- package/lib/commonjs/wayfinding/store/utils.js.map +1 -0
- package/lib/commonjs/wayfinding/styles/colors.js +18 -0
- package/lib/commonjs/wayfinding/styles/colors.js.map +1 -0
- package/lib/commonjs/wayfinding/types/index.d.js +6 -0
- package/lib/commonjs/wayfinding/types/index.d.js.map +1 -0
- package/lib/commonjs/wayfinding/utils/index.js +11 -0
- package/lib/commonjs/wayfinding/utils/index.js.map +1 -0
- package/lib/commonjs/wayfinding/utils/mapper.js +106 -0
- package/lib/commonjs/wayfinding/utils/mapper.js.map +1 -0
- package/lib/module/index.js +6 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/sdk/index.js +390 -0
- package/lib/module/sdk/index.js.map +1 -0
- package/lib/module/sdk/nativeInterface.js +18 -0
- package/lib/module/sdk/nativeInterface.js.map +1 -0
- package/lib/module/sdk/types/index.d.js +2 -0
- package/lib/module/sdk/types/index.d.js.map +1 -0
- package/lib/module/sdk/utils.js +15 -0
- package/lib/module/sdk/utils.js.map +1 -0
- package/lib/module/utils/requestPermission.js +67 -0
- package/lib/module/utils/requestPermission.js.map +1 -0
- package/lib/module/wayfinding/components/MapView.js +207 -0
- package/lib/module/wayfinding/components/MapView.js.map +1 -0
- package/lib/module/wayfinding/hooks/index.js +392 -0
- package/lib/module/wayfinding/hooks/index.js.map +1 -0
- package/lib/module/wayfinding/index.js +12 -0
- package/lib/module/wayfinding/index.js.map +1 -0
- package/lib/module/wayfinding/store/index.js +202 -0
- package/lib/module/wayfinding/store/index.js.map +1 -0
- package/lib/module/wayfinding/store/utils.js +34 -0
- package/lib/module/wayfinding/store/utils.js.map +1 -0
- package/lib/module/wayfinding/styles/colors.js +11 -0
- package/lib/module/wayfinding/styles/colors.js.map +1 -0
- package/lib/module/wayfinding/types/index.d.js +2 -0
- package/lib/module/wayfinding/types/index.d.js.map +1 -0
- package/lib/module/wayfinding/utils/index.js +4 -0
- package/lib/module/wayfinding/utils/index.js.map +1 -0
- package/lib/module/wayfinding/utils/mapper.js +100 -0
- package/lib/module/wayfinding/utils/mapper.js.map +1 -0
- package/lib/typescript/src/index.d.ts +4 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/lib/typescript/src/sdk/index.d.ts +269 -0
- package/lib/typescript/src/sdk/index.d.ts.map +1 -0
- package/lib/typescript/src/sdk/nativeInterface.d.ts +2 -0
- package/lib/typescript/src/sdk/nativeInterface.d.ts.map +1 -0
- package/lib/typescript/src/sdk/utils.d.ts +7 -0
- package/lib/typescript/src/sdk/utils.d.ts.map +1 -0
- package/lib/typescript/src/utils/requestPermission.d.ts +3 -0
- package/lib/typescript/src/utils/requestPermission.d.ts.map +1 -0
- package/lib/typescript/src/wayfinding/components/MapView.d.ts +36 -0
- package/lib/typescript/src/wayfinding/components/MapView.d.ts.map +1 -0
- package/lib/typescript/src/wayfinding/hooks/index.d.ts +53 -0
- package/lib/typescript/src/wayfinding/hooks/index.d.ts.map +1 -0
- package/lib/typescript/src/wayfinding/index.d.ts +5 -0
- package/lib/typescript/src/wayfinding/index.d.ts.map +1 -0
- package/lib/typescript/src/wayfinding/store/index.d.ts +103 -0
- package/lib/typescript/src/wayfinding/store/index.d.ts.map +1 -0
- package/lib/typescript/src/wayfinding/store/utils.d.ts +9 -0
- package/lib/typescript/src/wayfinding/store/utils.d.ts.map +1 -0
- package/lib/typescript/src/wayfinding/styles/colors.d.ts +8 -0
- package/lib/typescript/src/wayfinding/styles/colors.d.ts.map +1 -0
- package/lib/typescript/src/wayfinding/utils/index.d.ts +3 -0
- package/lib/typescript/src/wayfinding/utils/index.d.ts.map +1 -0
- package/lib/typescript/src/wayfinding/utils/mapper.d.ts +17 -0
- package/lib/typescript/src/wayfinding/utils/mapper.d.ts.map +1 -0
- package/package.json +130 -0
- package/security.txt +4 -0
- package/src/index.ts +6 -0
- package/src/sdk/index.ts +656 -0
- package/src/sdk/nativeInterface.ts +18 -0
- package/src/sdk/types/index.d.ts +718 -0
- package/src/sdk/utils.ts +16 -0
- package/src/utils/requestPermission.ts +94 -0
- package/src/wayfinding/components/MapView.tsx +312 -0
- package/src/wayfinding/hooks/index.ts +539 -0
- package/src/wayfinding/index.tsx +11 -0
- package/src/wayfinding/store/index.tsx +254 -0
- package/src/wayfinding/store/utils.ts +40 -0
- package/src/wayfinding/styles/colors.tsx +6 -0
- package/src/wayfinding/types/index.d.ts +56 -0
- package/src/wayfinding/utils/index.ts +5 -0
- package/src/wayfinding/utils/mapper.ts +129 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/index.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACV,QAAQ,EACR,cAAc,EACd,iBAAiB,EACjB,KAAK,EACL,sBAAsB,EACvB,MAAM,oBAAoB,CAAC;;IA2B1B;;;;;;OAMG;wBACwB,IAAI;IAI/B;;;;;;;;;OASG;uBAEM,MAAM,UACL,MAAM,cACF,QAAQ,KACnB,IAAI;IAIP;;;;;;;;;OASG;yBAEM,MAAM,YACH,MAAM,cACJ,QAAQ,KACnB,IAAI;2BAIyB,MAAM,WAAW,QAAQ,KAAG,IAAI;IAIhE;;;;;;;OAOG;wCACiC,MAAM,cAAc,QAAQ,GAAG,IAAI;IAIvE;;;;;;OAMG;+BACiC,MAAM,YAAY,QAAQ,KAAG,IAAI;IAIrE;;OAEG;2BAC2B,IAAI;IAIlC;;;;OAIG;oCAEiB;QAChB,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,YAAY,EAAE,MAAM,CAAC;KACtB,KAAK,IAAI,KACT,IAAI;IAcP;;;;OAIG;4BAC8B,QAAQ,KAAG,IAAI;IAIhD;;;OAGG;gCACgC,IAAI;IAIvC;;;;;OAKG;8BACgC,QAAQ,UAAU,QAAQ,KAAG,IAAI;IASpE;;;;;;;;OAQG;kCAES,QAAQ,WACT,QAAQ,UACT,QAAQ,KACf,IAAI;uCAUK,QAAQ,WACT,QAAQ,UACT,QAAQ;IASlB;;;;;;OAMG;wCAES,QAAQ,WACT,QAAQ,UACT,QAAQ,KACf,IAAI;IAaP;;;;;;OAMG;+BAEM,KAAK,WACH,QAAQ,UACT,QAAQ,KACf,IAAI;IASP;;;;;;OAMG;2CAES,QAAQ,WACT,QAAQ,UACT,QAA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Root":"","sources":["../../../../src/sdk/nativeInterface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Small utility that can be used as an error handler. You cannot just pass
|
|
3
|
+
* `console.error` as a failure callback - it's not properly bound. If passes an
|
|
4
|
+
* `Error` object, it will print the message and stack.
|
|
5
|
+
*/
|
|
6
|
+
export declare const logError: (response: unknown) => void;
|
|
7
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/sdk/utils.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,QAAQ,aACG,OAAO,SAS1B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"requestPermission.d.ts","sourceRoot":"","sources":["../../../../src/utils/requestPermission.ts"],"names":[],"mappings":"AAsEA,QAAA,MAAM,iBAAiB,qBAqBnB,CAAC;AAEL,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { MapViewError, OnFloorChangedResult, OnNavigationResult, OnPoiDeselectedResult, OnPoiSelectedResult, WayfindingResult } from "../types/index.d";
|
|
3
|
+
export declare enum ErrorName {
|
|
4
|
+
ERR_INTERNET_DISCONNECTED = "ERR_INTERNET_DISCONNECTED",
|
|
5
|
+
ERR_INTERNAL_SERVER_ERROR = "ERR_INTERNAL_SERVER_ERROR"
|
|
6
|
+
}
|
|
7
|
+
export interface MapViewProps {
|
|
8
|
+
domain?: string;
|
|
9
|
+
user?: string;
|
|
10
|
+
apikey?: string;
|
|
11
|
+
configuration?: {
|
|
12
|
+
buildingIdentifier?: string;
|
|
13
|
+
enablePoiClustering?: boolean;
|
|
14
|
+
showPoiNames?: boolean;
|
|
15
|
+
useRemoteConfig?: boolean;
|
|
16
|
+
minZoom?: number;
|
|
17
|
+
maxZoom?: number;
|
|
18
|
+
initialZoom?: number;
|
|
19
|
+
useDashboardTheme?: boolean;
|
|
20
|
+
};
|
|
21
|
+
googleApikey?: string;
|
|
22
|
+
onLoadError?: (event: MapViewError) => void;
|
|
23
|
+
onLoad?: (event: WayfindingResult) => void;
|
|
24
|
+
onFloorChanged?: (event: OnFloorChangedResult) => void;
|
|
25
|
+
onPoiSelected?: (event: OnPoiSelectedResult) => void;
|
|
26
|
+
onPoiDeselected?: (event: OnPoiDeselectedResult) => void;
|
|
27
|
+
onNavigationRequested?: (event: OnNavigationResult) => void;
|
|
28
|
+
onNavigationStarted?: (event: OnNavigationResult) => void;
|
|
29
|
+
onNavigationError?: (event: OnNavigationResult) => void;
|
|
30
|
+
onNavigationFinished?: (event: OnNavigationResult) => void;
|
|
31
|
+
style?: any;
|
|
32
|
+
iOSMapViewIndex?: string;
|
|
33
|
+
}
|
|
34
|
+
declare const MapView: React.FC<MapViewProps>;
|
|
35
|
+
export default MapView;
|
|
36
|
+
//# sourceMappingURL=MapView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MapView.d.ts","sourceRoot":"","sources":["../../../../../src/wayfinding/components/MapView.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAgB3D,OAAO,EACL,YAAY,EACZ,oBAAoB,EACpB,kBAAkB,EAClB,qBAAqB,EACrB,mBAAmB,EACnB,gBAAgB,EACjB,MAAM,kBAAkB,CAAC;AAO1B,oBAAY,SAAS;IACnB,yBAAyB,8BAA8B;IACvD,yBAAyB,8BAA8B;CACxD;AAWD,MAAM,WAAW,YAAY;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE;QACd,kBAAkB,CAAC,EAAE,MAAM,CAAC;QAC5B,mBAAmB,CAAC,EAAE,OAAO,CAAC;QAC9B,YAAY,CAAC,EAAE,OAAO,CAAC;QACvB,eAAe,CAAC,EAAE,OAAO,CAAC;QAC1B,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,iBAAiB,CAAC,EAAE,OAAO,CAAC;KAC7B,CAAC;IACF,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,IAAI,CAAC;IAC5C,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAC3C,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,oBAAoB,KAAK,IAAI,CAAC;IACvD,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,IAAI,CAAC;IACrD,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,qBAAqB,KAAK,IAAI,CAAC;IACzD,qBAAqB,CAAC,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,IAAI,CAAC;IAC5D,mBAAmB,CAAC,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,IAAI,CAAC;IAC1D,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,IAAI,CAAC;IACxD,oBAAoB,CAAC,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,IAAI,CAAC;IAC3D,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AASD,QAAA,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAoOnC,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type { Building, Poi } from "../../index";
|
|
2
|
+
import { SDKNavigation } from "../store/index";
|
|
3
|
+
export interface LocationStatus {
|
|
4
|
+
statusName: string;
|
|
5
|
+
statusCode: number;
|
|
6
|
+
}
|
|
7
|
+
declare const useSitum: () => {
|
|
8
|
+
user: any;
|
|
9
|
+
location: any;
|
|
10
|
+
locationStatus: any;
|
|
11
|
+
currentBuilding: any;
|
|
12
|
+
buildings: any;
|
|
13
|
+
pois: any;
|
|
14
|
+
directions: any;
|
|
15
|
+
navigation: any;
|
|
16
|
+
error: any;
|
|
17
|
+
destinationPoiID: any;
|
|
18
|
+
initSitumSdk: ({ email, apiKey, startPositions, fetchCartography, useRemoteConfig, }: {
|
|
19
|
+
email?: string;
|
|
20
|
+
apiKey?: string;
|
|
21
|
+
startPositions?: boolean;
|
|
22
|
+
fetchCartography?: boolean;
|
|
23
|
+
useRemoteConfig?: boolean;
|
|
24
|
+
}) => Promise<void>;
|
|
25
|
+
initializeBuildings: () => Promise<Building[]>;
|
|
26
|
+
initializeBuilding: (b: Building) => Promise<void>;
|
|
27
|
+
initializeBuildingById: (buildingId: string) => Promise<void>;
|
|
28
|
+
startPositioning: () => void;
|
|
29
|
+
stopPositioning: () => Promise<void>;
|
|
30
|
+
calculateRoute: ({ originId, destinationId, directionsOptions, updateRoute, }: {
|
|
31
|
+
originId: number;
|
|
32
|
+
destinationId: number;
|
|
33
|
+
directionsOptions?: any;
|
|
34
|
+
updateRoute?: boolean;
|
|
35
|
+
}) => Promise<any>;
|
|
36
|
+
startNavigation: ({ callback, destinationId, directionsOptions, navigationOptions, originId, }: {
|
|
37
|
+
callback?: (status: string, navigation?: SDKNavigation) => void;
|
|
38
|
+
destinationId: number;
|
|
39
|
+
directionsOptions?: any;
|
|
40
|
+
navigationOptions?: any;
|
|
41
|
+
originId: number;
|
|
42
|
+
updateRoute?: boolean;
|
|
43
|
+
}) => Promise<void>;
|
|
44
|
+
stopNavigation: () => void;
|
|
45
|
+
cancelNavigation: () => void;
|
|
46
|
+
selectPoi: (poiId: number) => void;
|
|
47
|
+
navigateToPoi: ({ poi, poiId, }: {
|
|
48
|
+
poi?: Poi;
|
|
49
|
+
poiId?: number;
|
|
50
|
+
}) => Promise<void>;
|
|
51
|
+
};
|
|
52
|
+
export default useSitum;
|
|
53
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/wayfinding/hooks/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,QAAQ,EAGR,GAAG,EACJ,MAAM,aAAa,CAAC;AAGrB,OAAO,EAQL,aAAa,EAyBd,MAAM,gBAAgB,CAAC;AAUxB,MAAM,WAAW,cAAc;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB;AAgBD,QAAA,MAAM,QAAQ;;;;;;;;;;;;gBAwBF,MAAM;iBACL,MAAM;yBACE,OAAO;2BACL,OAAO;0BACR,OAAO;;;4BAmFU,QAAQ;yCAbK,MAAM;;;;kBAoI5C,MAAM;uBACD,MAAM;4BACD,GAAG;sBACT,OAAO;;;4BA6DD,MAAM,eAAe,aAAa,KAAK,IAAI;uBAChD,MAAM;4BACD,GAAG;4BACH,GAAG;kBACb,MAAM;sBACF,OAAO;;0BA+EI,IAAI;4BAgBF,IAAI;uBAKP,MAAM,KAAG,IAAI;;cA7C/B,GAAG;gBACD,MAAM;;CA4GjB,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/wayfinding/index.tsx"],"names":[],"mappings":"AACA,cAAc,iBAAiB,CAAC;AAGhC,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,SAAS,CAAC;AAG9C,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,SAAS,CAAC;AAGnD,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import React, { MutableRefObject } from "react";
|
|
2
|
+
import { Building, Poi } from "react-native-situm-plugin";
|
|
3
|
+
export interface Location {
|
|
4
|
+
position?: Position;
|
|
5
|
+
accuracy?: number;
|
|
6
|
+
bearing?: {
|
|
7
|
+
degrees: number;
|
|
8
|
+
degreesClockwise: number;
|
|
9
|
+
};
|
|
10
|
+
hasBearing?: boolean;
|
|
11
|
+
status: PositioningStatus;
|
|
12
|
+
}
|
|
13
|
+
export interface Position {
|
|
14
|
+
coordinate: {
|
|
15
|
+
latitude: number;
|
|
16
|
+
longitude: number;
|
|
17
|
+
};
|
|
18
|
+
cartesianCoordinate: {
|
|
19
|
+
x: number;
|
|
20
|
+
y: number;
|
|
21
|
+
};
|
|
22
|
+
isIndoor?: boolean;
|
|
23
|
+
isOutdoor?: boolean;
|
|
24
|
+
buildingIdentifier?: string;
|
|
25
|
+
floorIdentifier?: string;
|
|
26
|
+
}
|
|
27
|
+
export declare enum PositioningStatus {
|
|
28
|
+
STARTING = "STARTING",
|
|
29
|
+
CALCULATING = "CALCULATING",
|
|
30
|
+
POSITIONING = "POSITIONING",
|
|
31
|
+
USER_NOT_IN_BUILDING = "USER_NOT_IN_BUILDING",
|
|
32
|
+
STOPPED = "STOPPED"
|
|
33
|
+
}
|
|
34
|
+
export interface SDKNavigation {
|
|
35
|
+
currentIndication?: any;
|
|
36
|
+
distanceToGoal?: number;
|
|
37
|
+
points?: any;
|
|
38
|
+
routeStep?: any;
|
|
39
|
+
segments?: any;
|
|
40
|
+
route?: Directions;
|
|
41
|
+
type?: NavigationUpdateType;
|
|
42
|
+
status: NavigationStatus;
|
|
43
|
+
}
|
|
44
|
+
export declare enum NavigationStatus {
|
|
45
|
+
START = "start",
|
|
46
|
+
STOP = "stop",
|
|
47
|
+
UPDATE = "update"
|
|
48
|
+
}
|
|
49
|
+
export declare enum NavigationUpdateType {
|
|
50
|
+
progress = "PROGRESS",
|
|
51
|
+
userOutsideRoute = "OUT_OF_ROUTE",
|
|
52
|
+
destinationReached = "DESTINATION_REACHED"
|
|
53
|
+
}
|
|
54
|
+
export type Directions = any;
|
|
55
|
+
export type NavigateToPoiType = {
|
|
56
|
+
navigationTo: number;
|
|
57
|
+
type?: string;
|
|
58
|
+
};
|
|
59
|
+
interface User {
|
|
60
|
+
email?: string;
|
|
61
|
+
apiKey?: string;
|
|
62
|
+
}
|
|
63
|
+
export interface SDKError {
|
|
64
|
+
code?: number;
|
|
65
|
+
message: string;
|
|
66
|
+
}
|
|
67
|
+
export interface State {
|
|
68
|
+
webViewRef: MutableRefObject<undefined>;
|
|
69
|
+
sdkInitialized: boolean;
|
|
70
|
+
user?: User;
|
|
71
|
+
location?: Location;
|
|
72
|
+
buildings: Building[];
|
|
73
|
+
currentBuilding: Building;
|
|
74
|
+
pois: Poi[];
|
|
75
|
+
directions?: Directions;
|
|
76
|
+
navigation?: SDKNavigation;
|
|
77
|
+
destinationPoiID?: number;
|
|
78
|
+
error?: SDKError;
|
|
79
|
+
}
|
|
80
|
+
export declare const initialState: State;
|
|
81
|
+
export declare const SitumContext: React.Context<{
|
|
82
|
+
state: State;
|
|
83
|
+
dispatch: React.Dispatch<(s: State) => State>;
|
|
84
|
+
}>;
|
|
85
|
+
export declare const selectWebViewRef: (state: State) => React.MutableRefObject<undefined>;
|
|
86
|
+
export declare const selectIsSDKInitialized: (state: State) => boolean;
|
|
87
|
+
export declare const selectUser: (state: State) => User;
|
|
88
|
+
export declare const selectLocation: (state: State) => Location;
|
|
89
|
+
export declare const selectLocationStatus: (state: State) => PositioningStatus;
|
|
90
|
+
export declare const selectBuildings: (state: State) => Building[];
|
|
91
|
+
export declare const selectCurrentBuilding: (state: State) => Building;
|
|
92
|
+
export declare const selectPois: (state: State) => Poi[];
|
|
93
|
+
export declare const selectDirections: (state: State) => any;
|
|
94
|
+
export declare const selectNavigation: (state: State) => SDKNavigation;
|
|
95
|
+
export declare const selectDestinationPoiID: (state: State) => number;
|
|
96
|
+
export declare const selectError: (state: State) => SDKError;
|
|
97
|
+
export declare const setWebViewRef: (payload?: any) => (state: State) => State, setSdkInitialized: (payload?: any) => (state: State) => State, setAuth: (payload?: any) => (state: State) => State, setLocation: (payload?: any) => (state: State) => State, setLocationStatus: (payload?: any) => (state: State) => State, resetLocation: (payload?: any) => (state: State) => State, setBuildings: (payload?: any) => (state: State) => State, setCurrentBuilding: (payload?: any) => (state: State) => State, setPois: (payload?: any) => (state: State) => State, setDirections: (payload?: any) => (state: State) => State, setNavigation: (payload?: any) => (state: State) => State, setDestinationPoiID: (payload?: any) => (state: State) => State, setError: (payload?: any) => (state: State) => State;
|
|
98
|
+
declare const SitumProvider: React.FC<React.PropsWithChildren<{
|
|
99
|
+
email?: string;
|
|
100
|
+
apiKey?: string;
|
|
101
|
+
}>>;
|
|
102
|
+
export default SitumProvider;
|
|
103
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/wayfinding/store/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAiB,gBAAgB,EAAc,MAAM,OAAO,CAAC;AAE3E,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,2BAA2B,CAAC;AAI1D,MAAM,WAAW,QAAQ;IACvB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE;QACR,OAAO,EAAE,MAAM,CAAC;QAChB,gBAAgB,EAAE,MAAM,CAAC;KAC1B,CAAC;IACF,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,MAAM,EAAE,iBAAiB,CAAC;CAC3B;AAED,MAAM,WAAW,QAAQ;IACvB,UAAU,EAAE;QACV,QAAQ,EAAE,MAAM,CAAC;QACjB,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;IACF,mBAAmB,EAAE;QACnB,CAAC,EAAE,MAAM,CAAC;QACV,CAAC,EAAE,MAAM,CAAC;KACX,CAAC;IACF,QAAQ,CAAC,EAAE,O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AC;AAEpB,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAC3B,KAAK,CAAC,iBAAiB,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC,CAiBH,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { State } from "./index";
|
|
3
|
+
export declare const createReducer: <T>(reducers: Record<string, (state: T, payload: any) => T>) => {
|
|
4
|
+
actions: Record<string, (payload?: any) => (state: T) => T>;
|
|
5
|
+
reducer: (state: T, action: (state: T) => T) => T;
|
|
6
|
+
};
|
|
7
|
+
export declare const useSelector: (selector: (state: State) => any) => any;
|
|
8
|
+
export declare const useDispatch: () => import("react").Dispatch<(s: State) => State>;
|
|
9
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/wayfinding/store/utils.ts"],"names":[],"mappings":";AAGA,OAAO,EAAgB,KAAK,EAAE,MAAM,SAAS,CAAC;AAE9C,eAAO,MAAM,aAAa,mDACqB,GAAG;uCAMb,GAAG;;CAOvC,CAAC;AAEF,eAAO,MAAM,WAAW,qBAAsB,KAAK,KAAK,GAAG,QAQ1D,CAAC;AAEF,eAAO,MAAM,WAAW,qDAQvB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../../../../src/wayfinding/styles/colors.tsx"],"names":[],"mappings":";;;;;;AAKA,wBAAqD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/wayfinding/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,sBAAsB,CAAC;AAE3C,eAAO,MAAM,mBAAmB,WAAY,OAAO,WAAW,MAAM,SAEnE,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Navigation } from "..";
|
|
2
|
+
import { Directions, Location, NavigateToPoiType, SDKNavigation } from "../store/index";
|
|
3
|
+
declare const Mapper: {
|
|
4
|
+
location: (location: Location) => string;
|
|
5
|
+
locationStatus: (locationStatus: Location["status"]) => string;
|
|
6
|
+
route: (directions: Directions) => string;
|
|
7
|
+
navigation: (navigation: Navigation) => string;
|
|
8
|
+
navigateToPoi: (navigate: NavigateToPoiType) => string;
|
|
9
|
+
cancelNavigation: () => string;
|
|
10
|
+
selectPoi: (poiId: number) => string;
|
|
11
|
+
followUser: (follow: boolean) => string;
|
|
12
|
+
initialConfiguration: (style: any, enablePoiClustering: any, showPoiNames: any, minZoom: any, maxZoom: any, initialZoom: any, useDashboardTheme: any) => string;
|
|
13
|
+
routeToResult: (navigation: any) => Navigation;
|
|
14
|
+
navigationToResult: (navigation: SDKNavigation) => Navigation;
|
|
15
|
+
};
|
|
16
|
+
export default Mapper;
|
|
17
|
+
//# sourceMappingURL=mapper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapper.d.ts","sourceRoot":"","sources":["../../../../../src/wayfinding/utils/mapper.ts"],"names":[],"mappings":"AACA,OAAO,EAAe,UAAU,EAAS,MAAM,IAAI,CAAC;AACpD,OAAO,EACL,UAAU,EACV,QAAQ,EACR,iBAAiB,EACjB,aAAa,EACd,MAAM,gBAAgB,CAAC;AAKxB,QAAA,MAAM,MAAM;yBACW,QAAQ;qCAiBI,QAAQ,CAAC,QAAQ,CAAC;wBAG/B,UAAU;6BAGL,UAAU;8BAGT,iBAAiB;;uBAKxB,MAAM;yBAGJ,OAAO;kCAGnB,GAAG,uBACW,GAAG,gBACV,GAAG,WACR,GAAG,WACH,GAAG,eACC,GAAG,qBACG,GAAG;gCA0BI,GAAG,KAAG,UAAU;qCAyBX,aAAa,KAAG,UAAU;CAmB5D,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@situm/react-native",
|
|
3
|
+
"version": "3.0.0-beta.0",
|
|
4
|
+
"private": false,
|
|
5
|
+
"repository": "https://github.com/situmtech/situm-react-native-plugin",
|
|
6
|
+
"author": "Situm Technologies <mobile@situm.com>",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"bugs": {
|
|
9
|
+
"url": "https://github.com/situmtech/situm-react-native-plugin/issues"
|
|
10
|
+
},
|
|
11
|
+
"homepage": "https://github.com/situmtech/situm-react-native-plugin#readme",
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"registry": "https://registry.npmjs.org/"
|
|
14
|
+
},
|
|
15
|
+
"main": "lib/commonjs/index",
|
|
16
|
+
"module": "lib/module/index",
|
|
17
|
+
"types": "lib/typescript/index.d.ts",
|
|
18
|
+
"react-native": "src/index",
|
|
19
|
+
"source": "src/index.js",
|
|
20
|
+
"files": [
|
|
21
|
+
"src",
|
|
22
|
+
"lib",
|
|
23
|
+
"android",
|
|
24
|
+
"ios",
|
|
25
|
+
"cpp",
|
|
26
|
+
"ReactNativeSitumPlugin.podspec",
|
|
27
|
+
"README.md",
|
|
28
|
+
"LICENSE",
|
|
29
|
+
"SECURITY-POLICY.md",
|
|
30
|
+
"security.txt",
|
|
31
|
+
"!lib/typescript/example",
|
|
32
|
+
"!android/build",
|
|
33
|
+
"!ios/build",
|
|
34
|
+
"!**/__tests__",
|
|
35
|
+
"!**/__fixtures__",
|
|
36
|
+
"!**/__mocks__"
|
|
37
|
+
],
|
|
38
|
+
"scripts": {
|
|
39
|
+
"android": "react-native run-android",
|
|
40
|
+
"ios": "react-native run-ios",
|
|
41
|
+
"test": "yarn lint && yarn test:jest",
|
|
42
|
+
"test:jest": "jest",
|
|
43
|
+
"typescript": "tsc --noEmit",
|
|
44
|
+
"lint:fix": "eslint \"src/**/*.{js,ts,tsx}\" --fix",
|
|
45
|
+
"lint": "eslint \"src/**/*.{js,jsx,ts,tsx}\"",
|
|
46
|
+
"prepare": "bob build",
|
|
47
|
+
"example": "yarn --cwd example",
|
|
48
|
+
"bootstrap": "yarn example && yarn && yarn example pods"
|
|
49
|
+
},
|
|
50
|
+
"keywords": [
|
|
51
|
+
"react-native",
|
|
52
|
+
"situm",
|
|
53
|
+
"indoor positioning",
|
|
54
|
+
"wayfinding",
|
|
55
|
+
"ios",
|
|
56
|
+
"android"
|
|
57
|
+
],
|
|
58
|
+
"peerDependencies": {
|
|
59
|
+
"react": "*",
|
|
60
|
+
"react-native": "*"
|
|
61
|
+
},
|
|
62
|
+
"devDependencies": {
|
|
63
|
+
"@arkweid/lefthook": "^0.7.7",
|
|
64
|
+
"@babel/core": "^7.22.5",
|
|
65
|
+
"@babel/eslint-parser": "^7.22.5",
|
|
66
|
+
"@babel/preset-env": "^7.22.5",
|
|
67
|
+
"@babel/runtime": "^7.22.5",
|
|
68
|
+
"@react-native-community/eslint-config": "^3.2.0",
|
|
69
|
+
"@types/jest": "^29.5.2",
|
|
70
|
+
"@types/react": "^18.2.7",
|
|
71
|
+
"@types/react-native": "0.72.2",
|
|
72
|
+
"@types/react-test-renderer": "^18.0.0",
|
|
73
|
+
"babel-plugin-module-resolver": "^5.0.0",
|
|
74
|
+
"commitlint": "^17.6.6",
|
|
75
|
+
"eslint": "^8.44.0",
|
|
76
|
+
"eslint-config-prettier": "^8.8.0",
|
|
77
|
+
"eslint-plugin-functional": "^5.0.8",
|
|
78
|
+
"eslint-plugin-import": "^2.27.5",
|
|
79
|
+
"eslint-plugin-prettier": "^4.2.1",
|
|
80
|
+
"eslint-plugin-simple-import-sort": "^10.0.0",
|
|
81
|
+
"jest": "^29.5.0",
|
|
82
|
+
"metro-react-native-babel-preset": "0.73.7",
|
|
83
|
+
"prettier": "^2.8.8",
|
|
84
|
+
"react": "^18.2.0",
|
|
85
|
+
"react-native": "^0.72.1",
|
|
86
|
+
"react-native-builder-bob": "^0.20.4",
|
|
87
|
+
"react-test-renderer": "18.2.0",
|
|
88
|
+
"typescript": "^5.0.4"
|
|
89
|
+
},
|
|
90
|
+
"dependencies": {
|
|
91
|
+
"eslint-plugin-import": "^2.27.5",
|
|
92
|
+
"react-dom": "^18.2.0",
|
|
93
|
+
"react-native-permissions": "*",
|
|
94
|
+
"react-native-webview": "*"
|
|
95
|
+
},
|
|
96
|
+
"jest": {
|
|
97
|
+
"preset": "react-native",
|
|
98
|
+
"setupFilesAfterEnv": [
|
|
99
|
+
"<rootDir>/jest.setup.js"
|
|
100
|
+
],
|
|
101
|
+
"modulePathIgnorePatterns": [
|
|
102
|
+
"<rootDir>/example/node_modules",
|
|
103
|
+
"<rootDir>/lib/",
|
|
104
|
+
"<rootDir>/example/"
|
|
105
|
+
]
|
|
106
|
+
},
|
|
107
|
+
"commitlint": {
|
|
108
|
+
"extends": [
|
|
109
|
+
"@commitlint/config-conventional"
|
|
110
|
+
]
|
|
111
|
+
},
|
|
112
|
+
"react-native-builder-bob": {
|
|
113
|
+
"source": "src",
|
|
114
|
+
"output": "lib",
|
|
115
|
+
"targets": [
|
|
116
|
+
"commonjs",
|
|
117
|
+
"module",
|
|
118
|
+
[
|
|
119
|
+
"typescript",
|
|
120
|
+
{
|
|
121
|
+
"project": "tsconfig.build.json"
|
|
122
|
+
}
|
|
123
|
+
]
|
|
124
|
+
]
|
|
125
|
+
},
|
|
126
|
+
"sdkVersions": {
|
|
127
|
+
"android": "2.87.0@aar",
|
|
128
|
+
"ios": "2.60.3"
|
|
129
|
+
}
|
|
130
|
+
}
|
package/security.txt
ADDED