chayns-api 1.0.21 → 1.0.22
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.
|
@@ -23,12 +23,14 @@ class AppWrapper {
|
|
|
23
23
|
values = null;
|
|
24
24
|
accessToken = '';
|
|
25
25
|
mapOldApiToNew(retVal) {
|
|
26
|
-
var _window, _window2, _AppInfo$TappSelected;
|
|
26
|
+
var _window, _urlParamsLowerCase$g, _window2, _AppInfo$TappSelected;
|
|
27
27
|
const {
|
|
28
28
|
AppInfo,
|
|
29
29
|
AppUser
|
|
30
30
|
} = retVal;
|
|
31
31
|
this.accessToken = AppUser.TobitAccessToken;
|
|
32
|
+
const urlParams = new URLSearchParams(location.search);
|
|
33
|
+
const urlParamsLowerCase = new URLSearchParams(location.search.toLowerCase());
|
|
32
34
|
return {
|
|
33
35
|
device: (0, _deviceHelper.default)(navigator.userAgent, 'image/webp'),
|
|
34
36
|
environment: {
|
|
@@ -56,7 +58,7 @@ class AppWrapper {
|
|
|
56
58
|
docked: false
|
|
57
59
|
},
|
|
58
60
|
title: AppInfo.Title,
|
|
59
|
-
colorMode: AppInfo.colorMode,
|
|
61
|
+
colorMode: (_urlParamsLowerCase$g = urlParamsLowerCase.get('colormode')) !== null && _urlParamsLowerCase$g !== void 0 ? _urlParamsLowerCase$g : AppInfo.colorMode,
|
|
60
62
|
color: AppInfo.color,
|
|
61
63
|
domain: AppInfo.domain,
|
|
62
64
|
font: {
|
|
@@ -68,7 +70,7 @@ class AppWrapper {
|
|
|
68
70
|
locationPersonId: AppInfo.LocationPersonId,
|
|
69
71
|
urlHash: (_window2 = window) === null || _window2 === void 0 ? void 0 : _window2.location.hash.replace('#', '')
|
|
70
72
|
},
|
|
71
|
-
parameters: Object.fromEntries(
|
|
73
|
+
parameters: Object.fromEntries(urlParams),
|
|
72
74
|
user: {
|
|
73
75
|
firstName: AppUser.FirstName,
|
|
74
76
|
lastName: AppUser.LastName,
|
|
@@ -15,12 +15,14 @@ import { addApiListener, dispatchApiEvent, removeApiListener } from '../helper/a
|
|
|
15
15
|
let appWrapperDialogId = 0;
|
|
16
16
|
export class AppWrapper {
|
|
17
17
|
mapOldApiToNew(retVal) {
|
|
18
|
-
var _window, _window2, _AppInfo$TappSelected;
|
|
18
|
+
var _window, _urlParamsLowerCase$g, _window2, _AppInfo$TappSelected;
|
|
19
19
|
const {
|
|
20
20
|
AppInfo,
|
|
21
21
|
AppUser
|
|
22
22
|
} = retVal;
|
|
23
23
|
this.accessToken = AppUser.TobitAccessToken;
|
|
24
|
+
const urlParams = new URLSearchParams(location.search);
|
|
25
|
+
const urlParamsLowerCase = new URLSearchParams(location.search.toLowerCase());
|
|
24
26
|
return {
|
|
25
27
|
device: getDeviceInfo(navigator.userAgent, 'image/webp'),
|
|
26
28
|
environment: {
|
|
@@ -48,7 +50,7 @@ export class AppWrapper {
|
|
|
48
50
|
docked: false
|
|
49
51
|
},
|
|
50
52
|
title: AppInfo.Title,
|
|
51
|
-
colorMode: AppInfo.colorMode,
|
|
53
|
+
colorMode: (_urlParamsLowerCase$g = urlParamsLowerCase.get('colormode')) !== null && _urlParamsLowerCase$g !== void 0 ? _urlParamsLowerCase$g : AppInfo.colorMode,
|
|
52
54
|
color: AppInfo.color,
|
|
53
55
|
domain: AppInfo.domain,
|
|
54
56
|
font: {
|
|
@@ -60,7 +62,7 @@ export class AppWrapper {
|
|
|
60
62
|
locationPersonId: AppInfo.LocationPersonId,
|
|
61
63
|
urlHash: (_window2 = window) === null || _window2 === void 0 ? void 0 : _window2.location.hash.replace('#', '')
|
|
62
64
|
},
|
|
63
|
-
parameters: Object.fromEntries(
|
|
65
|
+
parameters: Object.fromEntries(urlParams),
|
|
64
66
|
user: {
|
|
65
67
|
firstName: AppUser.FirstName,
|
|
66
68
|
lastName: AppUser.LastName,
|
|
@@ -209,8 +209,8 @@ export declare const getLanguage: () => {
|
|
|
209
209
|
active: import("../types/IChaynsReact").Language;
|
|
210
210
|
};
|
|
211
211
|
export declare const getParameters: () => {
|
|
212
|
-
[key: string]: string;
|
|
213
|
-
[key: symbol]: string;
|
|
212
|
+
[key: string]: string | string[];
|
|
213
|
+
[key: symbol]: string | string[];
|
|
214
214
|
};
|
|
215
215
|
export declare const getPages: () => import("../types/IChaynsReact").Page[];
|
|
216
216
|
export declare const getEnvironment: () => {
|
|
@@ -227,8 +227,8 @@ export declare const language: {
|
|
|
227
227
|
active: import("../types/IChaynsReact").Language;
|
|
228
228
|
};
|
|
229
229
|
export declare const parameters: {
|
|
230
|
-
[key: string]: string;
|
|
231
|
-
[key: symbol]: string;
|
|
230
|
+
[key: string]: string | string[];
|
|
231
|
+
[key: symbol]: string | string[];
|
|
232
232
|
};
|
|
233
233
|
export declare const pages: import("../types/IChaynsReact").Page[];
|
|
234
234
|
export declare const environment: {
|