@elliemae/pui-app-sdk 2.20.0 → 2.20.1
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.
|
@@ -41,6 +41,7 @@ var _appdynamics = require("../../analytics/appdynamics.js");
|
|
|
41
41
|
|
|
42
42
|
var _webAnalytics = require("../../analytics/web-analytics.js");
|
|
43
43
|
|
|
44
|
+
/* eslint-disable max-lines */
|
|
44
45
|
class CMicroAppHost {
|
|
45
46
|
constructor(params) {
|
|
46
47
|
(0, _defineProperty2.default)(this, "logger", void 0);
|
|
@@ -99,11 +100,11 @@ class CMicroAppHost {
|
|
|
99
100
|
}
|
|
100
101
|
|
|
101
102
|
getItem(key) {
|
|
102
|
-
return
|
|
103
|
+
return (0, _window.getWindow)().sessionStorage.getItem(key);
|
|
103
104
|
}
|
|
104
105
|
|
|
105
106
|
setItem(key, value) {
|
|
106
|
-
|
|
107
|
+
(0, _window.getWindow)().sessionStorage.setItem(key, value);
|
|
107
108
|
}
|
|
108
109
|
|
|
109
110
|
getGuests() {
|
|
@@ -149,11 +150,11 @@ class CMicroAppHost {
|
|
|
149
150
|
}
|
|
150
151
|
|
|
151
152
|
getAuthToken() {
|
|
152
|
-
return
|
|
153
|
+
return (0, _window.getWindow)().sessionStorage.getItem('Authorization');
|
|
153
154
|
}
|
|
154
155
|
|
|
155
156
|
renewAuthToken() {
|
|
156
|
-
return
|
|
157
|
+
return (0, _window.getWindow)().sessionStorage.getItem('Authorization');
|
|
157
158
|
}
|
|
158
159
|
|
|
159
160
|
logout() {
|
|
@@ -185,8 +186,7 @@ class CMicroAppHost {
|
|
|
185
186
|
setSystemVersion(version = 'latest') {
|
|
186
187
|
window.emui.version = version;
|
|
187
188
|
this.props.systemVersion = version;
|
|
188
|
-
}
|
|
189
|
-
|
|
189
|
+
}
|
|
190
190
|
|
|
191
191
|
sendBAEvent(data) {
|
|
192
192
|
(0, _index3.sendBAEvent)({
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
+
|
|
3
|
+
/* eslint-disable max-lines */
|
|
2
4
|
import { publish, subscribe, unsubscribe } from 'pubsub-js';
|
|
3
5
|
import { getDefaultTheme } from '@elliemae/pui-theme';
|
|
4
6
|
import { getStore } from "../../data/store.js";
|
|
@@ -11,7 +13,7 @@ import { loadAppConfig } from "../app-config/index.js";
|
|
|
11
13
|
import { browserHistory } from "../history.js";
|
|
12
14
|
import { logger } from "./console-logger.js";
|
|
13
15
|
import { HOST_WINDOW_RESIZED, HOST_WINDOW_BREAKPOINT_CHANGED } from "../constants.js";
|
|
14
|
-
import { getCurrentBreakpoint, getViewportSize as getWindowViewportSize } from "../window.js";
|
|
16
|
+
import { getWindow, getCurrentBreakpoint, getViewportSize as getWindowViewportSize } from "../window.js";
|
|
15
17
|
import { sendBAEvent } from "../../analytics/index.js";
|
|
16
18
|
import { setAppDynamicsUserData } from "../../analytics/appdynamics.js";
|
|
17
19
|
import { updateBAEventParameters } from "../../analytics/web-analytics.js";
|
|
@@ -79,11 +81,11 @@ export class CMicroAppHost {
|
|
|
79
81
|
}
|
|
80
82
|
|
|
81
83
|
getItem(key) {
|
|
82
|
-
return
|
|
84
|
+
return getWindow().sessionStorage.getItem(key);
|
|
83
85
|
}
|
|
84
86
|
|
|
85
87
|
setItem(key, value) {
|
|
86
|
-
|
|
88
|
+
getWindow().sessionStorage.setItem(key, value);
|
|
87
89
|
}
|
|
88
90
|
|
|
89
91
|
getGuests() {
|
|
@@ -129,11 +131,11 @@ export class CMicroAppHost {
|
|
|
129
131
|
}
|
|
130
132
|
|
|
131
133
|
getAuthToken() {
|
|
132
|
-
return
|
|
134
|
+
return getWindow().sessionStorage.getItem('Authorization');
|
|
133
135
|
}
|
|
134
136
|
|
|
135
137
|
renewAuthToken() {
|
|
136
|
-
return
|
|
138
|
+
return getWindow().sessionStorage.getItem('Authorization');
|
|
137
139
|
}
|
|
138
140
|
|
|
139
141
|
logout() {
|
|
@@ -165,8 +167,7 @@ export class CMicroAppHost {
|
|
|
165
167
|
setSystemVersion(version = 'latest') {
|
|
166
168
|
window.emui.version = version;
|
|
167
169
|
this.props.systemVersion = version;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
+
}
|
|
170
171
|
|
|
171
172
|
sendBAEvent(data) {
|
|
172
173
|
sendBAEvent({
|