@situm/react-native 3.15.0-beta.4 → 3.15.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.
Files changed (65) hide show
  1. package/lib/commonjs/index.js +72 -0
  2. package/lib/commonjs/index.js.map +1 -0
  3. package/lib/commonjs/sdk/index.js +930 -0
  4. package/lib/commonjs/sdk/index.js.map +1 -1
  5. package/lib/commonjs/sdk/internaDelegatedState.js +48 -0
  6. package/lib/commonjs/sdk/internaDelegatedState.js.map +1 -0
  7. package/lib/commonjs/sdk/nativeInterface.js +20 -0
  8. package/lib/commonjs/sdk/nativeInterface.js.map +1 -0
  9. package/lib/commonjs/sdk/types/constants.js +73 -0
  10. package/lib/commonjs/sdk/types/index.js +414 -0
  11. package/lib/commonjs/sdk/types/index.js.map +1 -0
  12. package/lib/commonjs/sdk/utils.js +156 -0
  13. package/lib/commonjs/sdk/utils.js.map +1 -0
  14. package/lib/commonjs/utils/index.js +17 -0
  15. package/lib/commonjs/utils/logError.js +21 -0
  16. package/lib/commonjs/utils/logError.js.map +1 -0
  17. package/lib/commonjs/wayfinding/components/MapView.js +388 -0
  18. package/lib/commonjs/wayfinding/components/MapView.js.map +1 -0
  19. package/lib/commonjs/wayfinding/hooks/index.js +233 -0
  20. package/lib/commonjs/wayfinding/hooks/index.js.map +1 -0
  21. package/lib/commonjs/wayfinding/index.js +57 -0
  22. package/lib/commonjs/wayfinding/store/index.js +246 -0
  23. package/lib/commonjs/wayfinding/store/index.js.map +1 -0
  24. package/lib/commonjs/wayfinding/store/utils.js +49 -0
  25. package/lib/commonjs/wayfinding/types/constants.js +13 -0
  26. package/lib/commonjs/wayfinding/types/index.js +6 -0
  27. package/lib/commonjs/wayfinding/types/index.js.map +1 -0
  28. package/lib/commonjs/wayfinding/utils/index.js +12 -0
  29. package/lib/commonjs/wayfinding/utils/mapper.js +204 -0
  30. package/lib/commonjs/wayfinding/utils/mapper.js.map +1 -0
  31. package/lib/module/index.js +14 -0
  32. package/lib/module/index.js.map +1 -0
  33. package/lib/module/sdk/index.js +904 -0
  34. package/lib/module/sdk/index.js.map +1 -1
  35. package/lib/module/sdk/internaDelegatedState.js +43 -0
  36. package/lib/module/sdk/internaDelegatedState.js.map +1 -0
  37. package/lib/module/sdk/nativeInterface.js +20 -0
  38. package/lib/module/sdk/nativeInterface.js.map +1 -0
  39. package/lib/module/sdk/types/constants.js +70 -0
  40. package/lib/module/sdk/types/index.js +445 -0
  41. package/lib/module/sdk/types/index.js.map +1 -0
  42. package/lib/module/sdk/utils.js +146 -0
  43. package/lib/module/sdk/utils.js.map +1 -0
  44. package/lib/module/utils/index.js +4 -0
  45. package/lib/module/utils/logError.js +17 -0
  46. package/lib/module/utils/logError.js.map +1 -0
  47. package/lib/module/wayfinding/components/MapView.js +381 -0
  48. package/lib/module/wayfinding/components/MapView.js.map +1 -0
  49. package/lib/module/wayfinding/hooks/index.js +226 -0
  50. package/lib/module/wayfinding/hooks/index.js.map +1 -0
  51. package/lib/module/wayfinding/index.js +15 -0
  52. package/lib/module/wayfinding/store/index.js +213 -0
  53. package/lib/module/wayfinding/store/index.js.map +1 -0
  54. package/lib/module/wayfinding/store/utils.js +40 -0
  55. package/lib/module/wayfinding/types/constants.js +9 -0
  56. package/lib/module/wayfinding/types/index.js +4 -0
  57. package/lib/module/wayfinding/types/index.js.map +1 -0
  58. package/lib/module/wayfinding/utils/index.js +7 -0
  59. package/lib/module/wayfinding/utils/index.js.map +1 -0
  60. package/lib/module/wayfinding/utils/mapper.js +195 -0
  61. package/lib/module/wayfinding/utils/mapper.js.map +1 -0
  62. package/lib/typescript/sdk/index.d.ts +2 -2
  63. package/lib/typescript/sdk/index.d.ts.map +1 -1
  64. package/package.json +5 -5
  65. package/src/sdk/index.ts +12 -3
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _exportNames = {
7
+ useSitum: true,
8
+ SitumProvider: true,
9
+ MapView: true
10
+ };
11
+ Object.defineProperty(exports, "MapView", {
12
+ enumerable: true,
13
+ get: function () {
14
+ return _MapView.default;
15
+ }
16
+ });
17
+ Object.defineProperty(exports, "SitumProvider", {
18
+ enumerable: true,
19
+ get: function () {
20
+ return _store.default;
21
+ }
22
+ });
23
+ Object.defineProperty(exports, "useSitum", {
24
+ enumerable: true,
25
+ get: function () {
26
+ return _hooks.default;
27
+ }
28
+ });
29
+ var _types = require("./types");
30
+ Object.keys(_types).forEach(function (key) {
31
+ if (key === "default" || key === "__esModule") return;
32
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
33
+ if (key in exports && exports[key] === _types[key]) return;
34
+ Object.defineProperty(exports, key, {
35
+ enumerable: true,
36
+ get: function () {
37
+ return _types[key];
38
+ }
39
+ });
40
+ });
41
+ var _constants = require("./types/constants");
42
+ Object.keys(_constants).forEach(function (key) {
43
+ if (key === "default" || key === "__esModule") return;
44
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
45
+ if (key in exports && exports[key] === _constants[key]) return;
46
+ Object.defineProperty(exports, key, {
47
+ enumerable: true,
48
+ get: function () {
49
+ return _constants[key];
50
+ }
51
+ });
52
+ });
53
+ var _hooks = _interopRequireDefault(require("./hooks"));
54
+ var _store = _interopRequireDefault(require("./store"));
55
+ var _MapView = _interopRequireDefault(require("./components/MapView"));
56
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
57
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,246 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.setWebViewRef = exports.setSdkInitialized = exports.setPois = exports.setNavigation = exports.setLocationStatus = exports.setLocation = exports.setError = exports.setDirections = exports.setDestinationPoiID = exports.setCurrentBuilding = exports.setBuildings = exports.setBuildingIdentifier = exports.setAuth = exports.selectWebViewRef = exports.selectUser = exports.selectPois = exports.selectNavigation = exports.selectLocationStatus = exports.selectLocation = exports.selectIsSDKInitialized = exports.selectError = exports.selectDirections = exports.selectDestinationPoiID = exports.selectCurrentBuilding = exports.selectBuildings = exports.selectBuildingIdentifier = exports.resetLocation = exports.initialState = exports.default = exports.UseSitumContext = exports.SitumContext = void 0;
7
+ var _react = _interopRequireWildcard(require("react"));
8
+ var _hooks = require("../hooks");
9
+ var _utils = require("./utils");
10
+ var _jsxRuntime = require("react/jsx-runtime");
11
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
12
+ /* eslint-disable @typescript-eslint/no-explicit-any */
13
+
14
+ const initialState = exports.initialState = {
15
+ webViewRef: undefined,
16
+ sdkInitialized: false,
17
+ user: undefined,
18
+ location: undefined,
19
+ locationStatus: undefined,
20
+ buildings: null,
21
+ currentBuilding: undefined,
22
+ pois: [],
23
+ directions: undefined,
24
+ navigation: undefined,
25
+ destinationPoiID: undefined,
26
+ error: undefined,
27
+ buildingIdentifier: "-1"
28
+ };
29
+ const SitumContext = exports.SitumContext = /*#__PURE__*/(0, _react.createContext)(undefined);
30
+ const store = (0, _utils.createStore)({
31
+ initialState,
32
+ reducers: {
33
+ setWebViewRef: (state, payload) => {
34
+ return {
35
+ ...state,
36
+ webViewRef: payload
37
+ };
38
+ },
39
+ setSdkInitialized: (state, payload) => {
40
+ return {
41
+ ...state,
42
+ sdkInitialized: payload
43
+ };
44
+ },
45
+ setAuth: (state, payload) => {
46
+ return {
47
+ ...state,
48
+ user: payload
49
+ };
50
+ },
51
+ setLocation: (state, payload) => {
52
+ return {
53
+ ...state,
54
+ location: payload
55
+ };
56
+ },
57
+ setLocationStatus: (state, payload) => {
58
+ return {
59
+ ...state,
60
+ locationStatus: payload
61
+ };
62
+ },
63
+ resetLocation: state => {
64
+ return {
65
+ ...state,
66
+ location: initialState.location
67
+ };
68
+ },
69
+ setBuildings: (state, payload) => {
70
+ return {
71
+ ...state,
72
+ buildings: payload
73
+ };
74
+ },
75
+ setCurrentBuilding: (state, payload) => {
76
+ return {
77
+ ...state,
78
+ currentBuilding: payload
79
+ };
80
+ },
81
+ setPois: (state, payload) => {
82
+ return {
83
+ ...state,
84
+ pois: payload
85
+ };
86
+ },
87
+ setDirections: (state, payload) => {
88
+ return {
89
+ ...state,
90
+ directions: payload
91
+ };
92
+ },
93
+ setNavigation: (state, payload) => {
94
+ return {
95
+ ...state,
96
+ navigation: payload
97
+ };
98
+ },
99
+ setDestinationPoiID: (state, payload) => {
100
+ return {
101
+ ...state,
102
+ destinationPoiID: payload
103
+ };
104
+ },
105
+ setError: (state, payload) => {
106
+ return {
107
+ ...state,
108
+ error: payload
109
+ };
110
+ },
111
+ setBuildingIdentifier: (state, payload) => {
112
+ return {
113
+ ...state,
114
+ buildingIdentifier: payload
115
+ };
116
+ }
117
+ }
118
+ });
119
+ const selectWebViewRef = state => {
120
+ return state.webViewRef;
121
+ };
122
+ exports.selectWebViewRef = selectWebViewRef;
123
+ const selectIsSDKInitialized = state => {
124
+ return state.sdkInitialized;
125
+ };
126
+ exports.selectIsSDKInitialized = selectIsSDKInitialized;
127
+ const selectUser = state => {
128
+ return state.user;
129
+ };
130
+ exports.selectUser = selectUser;
131
+ const selectLocation = state => {
132
+ return state.location;
133
+ };
134
+ exports.selectLocation = selectLocation;
135
+ const selectLocationStatus = state => {
136
+ return state.locationStatus;
137
+ };
138
+ exports.selectLocationStatus = selectLocationStatus;
139
+ const selectBuildings = state => {
140
+ return state.buildings;
141
+ };
142
+ exports.selectBuildings = selectBuildings;
143
+ const selectCurrentBuilding = state => {
144
+ return state.currentBuilding;
145
+ };
146
+ exports.selectCurrentBuilding = selectCurrentBuilding;
147
+ const selectPois = state => {
148
+ return state.pois;
149
+ };
150
+ exports.selectPois = selectPois;
151
+ const selectDirections = state => {
152
+ return state.directions;
153
+ };
154
+ exports.selectDirections = selectDirections;
155
+ const selectNavigation = state => {
156
+ return state.navigation;
157
+ };
158
+ exports.selectNavigation = selectNavigation;
159
+ const selectDestinationPoiID = state => {
160
+ return state.destinationPoiID;
161
+ };
162
+ exports.selectDestinationPoiID = selectDestinationPoiID;
163
+ const selectError = state => {
164
+ return state.error;
165
+ };
166
+ exports.selectError = selectError;
167
+ const selectBuildingIdentifier = state => {
168
+ return state.buildingIdentifier;
169
+ };
170
+ exports.selectBuildingIdentifier = selectBuildingIdentifier;
171
+ const {
172
+ setWebViewRef,
173
+ setSdkInitialized,
174
+ setAuth,
175
+ setLocation,
176
+ setLocationStatus,
177
+ resetLocation,
178
+ setBuildings,
179
+ setCurrentBuilding,
180
+ setPois,
181
+ setDirections,
182
+ setNavigation,
183
+ setDestinationPoiID,
184
+ setError,
185
+ setBuildingIdentifier
186
+ } = store.actions;
187
+
188
+ /**
189
+ * Context specifically to store the only instance of our hook.
190
+ */
191
+ exports.setBuildingIdentifier = setBuildingIdentifier;
192
+ exports.setError = setError;
193
+ exports.setDestinationPoiID = setDestinationPoiID;
194
+ exports.setNavigation = setNavigation;
195
+ exports.setDirections = setDirections;
196
+ exports.setPois = setPois;
197
+ exports.setCurrentBuilding = setCurrentBuilding;
198
+ exports.setBuildings = setBuildings;
199
+ exports.resetLocation = resetLocation;
200
+ exports.setLocationStatus = setLocationStatus;
201
+ exports.setLocation = setLocation;
202
+ exports.setAuth = setAuth;
203
+ exports.setSdkInitialized = setSdkInitialized;
204
+ exports.setWebViewRef = setWebViewRef;
205
+ const UseSitumContext = exports.UseSitumContext = /*#__PURE__*/(0, _react.createContext)(undefined);
206
+ const UseSitumProvider = ({
207
+ children
208
+ }) => {
209
+ // TODO: if we have this, there is no need to have a context for the rest of the state
210
+ // as there is only one instance of the hook
211
+ const useSitum = (0, _hooks.useSitumInternal)();
212
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(UseSitumContext.Provider, {
213
+ value: {
214
+ useSitum
215
+ },
216
+ children: children
217
+ });
218
+ };
219
+
220
+ /**
221
+ * Main context of the application, stores the plugins' state.
222
+ */
223
+ const SitumProvider = ({
224
+ email,
225
+ apiKey,
226
+ children
227
+ }) => {
228
+ const [state, dispatch] = (0, _react.useReducer)(store.reducer, {
229
+ ...store.initialState,
230
+ user: {
231
+ email,
232
+ apiKey
233
+ }
234
+ });
235
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(SitumContext.Provider, {
236
+ value: {
237
+ state,
238
+ dispatch
239
+ },
240
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(UseSitumProvider, {
241
+ children: children
242
+ })
243
+ });
244
+ };
245
+ var _default = exports.default = SitumProvider;
246
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_hooks","_utils","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","initialState","exports","webViewRef","undefined","sdkInitialized","user","location","locationStatus","buildings","currentBuilding","pois","directions","navigation","destinationPoiID","error","buildingIdentifier","SitumContext","createContext","store","createStore","reducers","setWebViewRef","state","payload","setSdkInitialized","setAuth","setLocation","setLocationStatus","resetLocation","setBuildings","setCurrentBuilding","setPois","setDirections","setNavigation","setDestinationPoiID","setError","setBuildingIdentifier","selectWebViewRef","selectIsSDKInitialized","selectUser","selectLocation","selectLocationStatus","selectBuildings","selectCurrentBuilding","selectPois","selectDirections","selectNavigation","selectDestinationPoiID","selectError","selectBuildingIdentifier","actions","UseSitumContext","UseSitumProvider","children","useSitum","useSitumInternal","jsx","Provider","value","SitumProvider","email","apiKey","dispatch","useReducer","reducer","_default"],"sourceRoot":"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ACF,CAAC;AAED,MAAMiD,gBAAyD,GAAGA,CAAC;EACjEC;AACF,CAAC,KAAK;EACJ;EACA;EACA,MAAMC,QAAQ,GAAG,IAAAC,uBAAgB,EAAC,CAAC;EAEnC,oBACE,IAAA3E,WAAA,CAAA4E,GAAA,EAACL,eAAe,CAACM,QAAQ;IAACC,KAAK,EAAE;MAAEJ;IAAS,CAAE;IAAAD,QAAA,EAC3CA;EAAQ,CACe,CAAC;AAE/B,CAAC;;AAED;AACA;AACA;AACA,MAAMM,aAKL,GAAGA,CAAC;EAAEC,KAAK;EAAEC,MAAM;EAAER;AAAS,CAAC,KAAK;EACnC,MAAM,CAAC/B,KAAK,EAAEwC,QAAQ,CAAC,GAAG,IAAAC,iBAAU,EAAC7C,KAAK,CAAC8C,OAAO,EAAE;IAClD,GAAG9C,KAAK,CAAClB,YAAY;IACrBK,IAAI,EAAE;MAAEuD,KAAK;MAAEC;IAAO;EACxB,CAAC,CAAC;EAEF,oBACE,IAAAjF,WAAA,CAAA4E,GAAA,EAACxC,YAAY,CAACyC,QAAQ;IACpBC,KAAK,EAAE;MACLpC,KAAK;MACLwC;IACF,CAAE;IAAAT,QAAA,eAEF,IAAAzE,WAAA,CAAA4E,GAAA,EAACJ,gBAAgB;MAAAC,QAAA,EAAEA;IAAQ,CAAmB;EAAC,CAC1B,CAAC;AAE5B,CAAC;AAAC,IAAAY,QAAA,GAAAhE,OAAA,CAAAV,OAAA,GAEaoE,aAAa","ignoreList":[]}
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.useSelector = exports.useDispatch = exports.createStore = exports.createReducer = void 0;
7
+ var _react = require("react");
8
+ var _index = require("./index");
9
+ /* eslint-disable @typescript-eslint/no-explicit-any */
10
+
11
+ const createReducer = () => {
12
+ const reducer = (state, action) => {
13
+ return action(state);
14
+ };
15
+ return reducer;
16
+ };
17
+ exports.createReducer = createReducer;
18
+ const createStore = ({
19
+ initialState,
20
+ reducers
21
+ }) => {
22
+ const actions = Object.keys(reducers).reduce((acc, r) => {
23
+ acc[r] = payload => state => reducers[r](state, payload);
24
+ return acc;
25
+ }, {});
26
+ return {
27
+ initialState,
28
+ actions,
29
+ reducer: createReducer()
30
+ };
31
+ };
32
+ exports.createStore = createStore;
33
+ const useSelector = selector => {
34
+ const context = (0, _react.useContext)(_index.SitumContext);
35
+ if (!context) {
36
+ throw new Error("No SitumProvider found.");
37
+ }
38
+ return selector(context.state);
39
+ };
40
+ exports.useSelector = useSelector;
41
+ const useDispatch = () => {
42
+ const context = (0, _react.useContext)(_index.SitumContext);
43
+ if (!context) {
44
+ throw new Error("No SitumProvider found.");
45
+ }
46
+ return context.dispatch;
47
+ };
48
+ exports.useDispatch = useDispatch;
49
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.ErrorName = void 0;
7
+ // Define class that handles errors
8
+ let ErrorName = exports.ErrorName = /*#__PURE__*/function (ErrorName) {
9
+ ErrorName["ERR_INTERNET_DISCONNECTED"] = "ERR_INTERNET_DISCONNECTED";
10
+ ErrorName["ERR_INTERNAL_SERVER_ERROR"] = "ERR_INTERNAL_SERVER_ERROR";
11
+ return ErrorName;
12
+ }({});
13
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["wayfinding/types/index.ts"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.sendMessageToViewer = void 0;
7
+ const sendMessageToViewer = (viewer, message) => {
8
+ if (!viewer) return;
9
+ viewer.injectJavaScript(`window.postMessage(${message})`);
10
+ };
11
+ exports.sendMessageToViewer = sendMessageToViewer;
12
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,204 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = exports.createPoint = exports.createNavigationRequest = exports.createDirectionsRequest = exports.createDirectionsMessage = void 0;
7
+ var _sdk = require("../../sdk");
8
+ /* eslint-disable @typescript-eslint/no-explicit-any */
9
+
10
+ const createPoint = payload => {
11
+ return {
12
+ buildingIdentifier: payload.buildingIdentifier,
13
+ floorIdentifier: payload.floorIdentifier,
14
+ cartesianCoordinate: payload.cartesianCoordinate,
15
+ coordinate: payload.coordinate
16
+ };
17
+ };
18
+ exports.createPoint = createPoint;
19
+ const createDirectionsMessage = payload => {
20
+ return {
21
+ buildingIdentifier: payload.buildingIdentifier,
22
+ originIdentifier: (payload.originIdentifier || -1).toString(),
23
+ originCategory: payload.originCategory,
24
+ destinationIdentifier: (payload.destinationIdentifier || -1).toString(),
25
+ destinationCategory: payload.destinationCategory,
26
+ identifier: (payload.identifier || "").toString()
27
+ };
28
+ };
29
+ exports.createDirectionsMessage = createDirectionsMessage;
30
+ const createDirectionsRequest = payload => {
31
+ return {
32
+ buildingIdentifier: payload.from.buildingIdentifier,
33
+ to: createPoint(payload.to),
34
+ from: createPoint(payload.from),
35
+ bearingFrom: payload.bearingFrom?.radians || 0,
36
+ accessibilityMode: payload.accessibilityMode || _sdk.AccessibilityMode.CHOOSE_SHORTEST,
37
+ minimizeFloorChanges: payload.minimizeFloorChanges || false,
38
+ includedTags: payload.includedTags || [],
39
+ excludedTags: payload.excludedTags || []
40
+ };
41
+ };
42
+ exports.createDirectionsRequest = createDirectionsRequest;
43
+ const createNavigationRequest = payload => {
44
+ const navigationRequest = {
45
+ distanceToGoalThreshold: payload.distanceToGoalThreshold,
46
+ outsideRouteThreshold: payload.outsideRouteThreshold,
47
+ distanceToIgnoreFirstIndication: payload.distanceToIgnoreFirstIndication,
48
+ distanceToFloorChangeThreshold: payload.distanceToFloorChangeThreshold,
49
+ distanceToChangeIndicationThreshold: payload.distanceToChangeIndicationThreshold,
50
+ indicationsInterval: payload.indicationsInterval,
51
+ timeToFirstIndication: payload.timeToFirstIndication,
52
+ roundIndicationsStep: payload.roundIndicationsStep,
53
+ timeToIgnoreUnexpectedFloorChanges: payload.timeToIgnoreUnexpectedFloorChanges,
54
+ ignoreLowQualityLocations: payload.ignoreLowQualityLocations
55
+ };
56
+ return Object.fromEntries(Object.entries(navigationRequest || {}).filter(([_, value]) => value !== undefined));
57
+ };
58
+ exports.createNavigationRequest = createNavigationRequest;
59
+ const mapperWrapper = (type, payload) => {
60
+ return JSON.stringify({
61
+ type,
62
+ payload: payload ?? {}
63
+ });
64
+ };
65
+ const ViewerMapper = {
66
+ // Configuration
67
+ followUser: follow => {
68
+ return mapperWrapper("camera.follow_user", {
69
+ value: follow
70
+ });
71
+ },
72
+ setLanguage: lang => {
73
+ return mapperWrapper("ui.set_language", lang);
74
+ },
75
+ setFavoritePois: poiIds => {
76
+ return mapperWrapper("ui.set_favorite_pois", poiIds);
77
+ },
78
+ initialConfiguration: style => {
79
+ return mapperWrapper("ui.initial_configuration", {
80
+ ...(style && {
81
+ style: style
82
+ })
83
+ });
84
+ },
85
+ // Cartography
86
+ selectPoi: poiId => {
87
+ return mapperWrapper(`cartography.select_poi`, {
88
+ identifier: poiId
89
+ });
90
+ },
91
+ selectCar: () => {
92
+ return mapperWrapper(`cartography.select_car`);
93
+ },
94
+ selectPoiCategory: categoryId => {
95
+ return mapperWrapper(`cartography.select_poi_category`, {
96
+ identifier: categoryId
97
+ });
98
+ },
99
+ selectFloor: (floorIdentifier, options) => {
100
+ return mapperWrapper(`cartography.select_floor`, {
101
+ identifier: floorIdentifier,
102
+ options
103
+ });
104
+ },
105
+ setDirectionsOptions: directionsOptions => {
106
+ return mapperWrapper(`directions.set_options`, {
107
+ includedTags: directionsOptions.includedTags,
108
+ excludedTags: directionsOptions.excludedTags
109
+ });
110
+ },
111
+ // Location
112
+ location: location => {
113
+ return mapperWrapper("location.update", {
114
+ ...(location.position && {
115
+ latitude: location.position.coordinate.latitude,
116
+ longitude: location.position.coordinate.longitude,
117
+ x: location.position.cartesianCoordinate.x,
118
+ y: location.position.cartesianCoordinate.y,
119
+ buildingId: location.position.buildingIdentifier,
120
+ floorId: location.position.floorIdentifier,
121
+ bearing: location.bearing?.degreesClockwise,
122
+ isIndoor: location.position.isIndoor,
123
+ isOutdoor: location.position.isOutdoor,
124
+ accuracy: location.accuracy,
125
+ hasBearing: location.hasBearing
126
+ })
127
+ });
128
+ },
129
+ locationStatus: locationStatus => {
130
+ return mapperWrapper("location.update_status", {
131
+ status: locationStatus
132
+ });
133
+ },
134
+ locationError: errorCode => {
135
+ return mapperWrapper("location.update_status", {
136
+ status: errorCode
137
+ });
138
+ },
139
+ // Directions
140
+ route: directions => {
141
+ return mapperWrapper("directions.update", directions);
142
+ },
143
+ routeToResult: route => {
144
+ return {
145
+ navigation: {
146
+ status: route.status,
147
+ destination: {
148
+ category: route?.destinationId ? "POI" : "COORDINATE",
149
+ identifier: route?.destinationId,
150
+ //name:, //TODO
151
+ point: route.to ? createPoint(route.to) : createPoint(route.TO)
152
+ }
153
+ }
154
+ };
155
+ },
156
+ // Navigation
157
+ navigation: navigation => {
158
+ return mapperWrapper(`navigation.${navigation.status}`, navigation);
159
+ },
160
+ navigateToPoi: navigate => {
161
+ return mapperWrapper(`navigation.start`, {
162
+ navigationTo: navigate?.identifier,
163
+ type: navigate.accessibilityMode
164
+ });
165
+ },
166
+ navigateToCar: params => {
167
+ return mapperWrapper(`navigation.start.to_car`, {
168
+ type: params?.accessibilityMode
169
+ });
170
+ },
171
+ navigateToPoint: ({
172
+ lat,
173
+ lng,
174
+ floorIdentifier,
175
+ navigationName,
176
+ accessibilityMode
177
+ }) => {
178
+ return mapperWrapper(`navigation.start`, {
179
+ lat,
180
+ lng,
181
+ floorIdentifier,
182
+ navigationName,
183
+ type: accessibilityMode
184
+ });
185
+ },
186
+ cancelNavigation: () => {
187
+ return mapperWrapper(`navigation.cancel`, {});
188
+ },
189
+ navigationToResult: navigation => {
190
+ return {
191
+ navigation: {
192
+ status: navigation?.type
193
+ }
194
+ };
195
+ },
196
+ search: searchFilter => {
197
+ return mapperWrapper(`ui.set_search_filter`, {
198
+ text: searchFilter.text,
199
+ poiCategoryIdentifier: searchFilter.poiCategoryIdentifier
200
+ });
201
+ }
202
+ };
203
+ var _default = exports.default = ViewerMapper;
204
+ //# sourceMappingURL=mapper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_sdk","require","createPoint","payload","buildingIdentifier","floorIdentifier","cartesianCoordinate","coordinate","exports","createDirectionsMessage","originIdentifier","toString","originCategory","destinationIdentifier","destinationCategory","identifier","createDirectionsRequest","from","to","bearingFrom","radians","accessibilityMode","AccessibilityMode","CHOOSE_SHORTEST","minimizeFloorChanges","includedTags","excludedTags","createNavigationRequest","navigationRequest","distanceToGoalThreshold","outsideRouteThreshold","distanceToIgnoreFirstIndication","distanceToFloorChangeThreshold","distanceToChangeIndicationThreshold","indicationsInterval","timeToFirstIndication","roundIndicationsStep","timeToIgnoreUnexpectedFloorChanges","ignoreLowQualityLocations","Object","fromEntries","entries","filter","_","value","undefined","mapperWrapper","type","JSON","stringify","ViewerMapper","followUser","follow","setLanguage","lang","setFavoritePois","poiIds","initialConfiguration","style","selectPoi","poiId","selectCar","selectPoiCategory","categoryId","selectFloor","options","setDirectionsOptions","directionsOptions","location","position","latitude","longitude","x","y","buildingId","floorId","bearing","degreesClockwise","isIndoor","isOutdoor","accuracy","hasBearing","locationStatus","status","locationError","errorCode","route","directions","routeToResult","navigation","destination","category","destinationId","point","TO","navigateToPoi","navigate","navigationTo","navigateToCar","params","navigateToPoint","lat","lng","navigationName","cancelNavigation","navigationToResult","search","searchFilter","text","poiCategoryIdentifier","_default","default"],"sourceRoot":"../../../../src","sources":["wayfinding/utils/mapper.ts"],"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C3C8D,IAAI,EAAED,YAAY,CAACC,IAAI;MACvBC,qBAAqB,EAAEF,YAAY,CAACE;IACtC,CAAC,CAAC;EACJ;AACF,CAAC;AAAC,IAAAC,QAAA,GAAAtG,OAAA,CAAAuG,OAAA,GAEa7D,YAAY","ignoreList":[]}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+
3
+ import SitumPlugin from "./sdk";
4
+
5
+ // Definitions
6
+ export * from "./sdk/types";
7
+ export * from "./wayfinding/types";
8
+
9
+ // APIs
10
+ export * from "./sdk";
11
+ export * from "./utils";
12
+ export * from "./wayfinding";
13
+ export default SitumPlugin;
14
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["SitumPlugin"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;AAAA,OAAOA,WAAW,MAAM,OAAO;;AAE/B;AACA,cAAc,aAAa;AAC3B,cAAc,oBAAoB;;AAElC;AACA,cAAc,OAAO;AACrB,cAAc,SAAS;AACvB,cAAc,cAAc;AAE5B,eAAeA,WAAW","ignoreList":[]}