@elliemae/pui-app-sdk 5.13.1 → 5.13.2
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.
|
@@ -44,6 +44,8 @@ const parseAppConfig = (data) => {
|
|
|
44
44
|
if (data.env) delete data.env;
|
|
45
45
|
(0, import_config.setAppConfig)(import_lodash.default.merge(data, activeEnvConfig));
|
|
46
46
|
sessionStorage.setItem("envName", activeEnv);
|
|
47
|
+
window.emui = window.emui || {};
|
|
48
|
+
window.emui.appId = (0, import_config.getAppConfigValue)("appId") ?? window.emui.appId ?? "";
|
|
47
49
|
(0, import_appdynamics.setAppDynamicsUserData)({ envName: activeEnv });
|
|
48
50
|
(0, import_web_analytics.updateBAEventParameters)({ envName: activeEnv });
|
|
49
51
|
};
|
|
@@ -39,6 +39,7 @@ const getProductAppDetails = () => {
|
|
|
39
39
|
const { title: productPageTitle } = pageWindow.document;
|
|
40
40
|
const { title: appPageTitle } = document;
|
|
41
41
|
const productId = pageWindow?.emui?.appId ?? "";
|
|
42
|
+
const version = pageWindow?.emui?.version ?? "";
|
|
42
43
|
const appId = window?.emui?.appId ?? "";
|
|
43
44
|
const { pathname: productPath, href: productUrl } = pageWindow.location;
|
|
44
45
|
const { pathname: appPath, href: appUrl } = window.location;
|
|
@@ -47,6 +48,7 @@ const getProductAppDetails = () => {
|
|
|
47
48
|
productPath,
|
|
48
49
|
productUrl,
|
|
49
50
|
productPageTitle,
|
|
51
|
+
version,
|
|
50
52
|
appId,
|
|
51
53
|
appPath,
|
|
52
54
|
appUrl,
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import _ from "lodash";
|
|
2
|
-
import { setAppConfig } from "./config.js";
|
|
2
|
+
import { getAppConfigValue, setAppConfig } from "./config.js";
|
|
3
3
|
import { setAppDynamicsUserData } from "../../analytics/appdynamics.js";
|
|
4
4
|
import { updateBAEventParameters } from "../micro-frontend/scripting-objects/web-analytics.js";
|
|
5
5
|
import { getAssetPath } from "../window.js";
|
|
6
|
-
import { getAppConfigValue } from "./config.js";
|
|
6
|
+
import { getAppConfigValue as getAppConfigValue2 } from "./config.js";
|
|
7
7
|
const parseAppConfig = (data) => {
|
|
8
8
|
const { activeEnv } = data;
|
|
9
9
|
const activeEnvConfig = data.env[activeEnv] || {};
|
|
10
10
|
if (data.env) delete data.env;
|
|
11
11
|
setAppConfig(_.merge(data, activeEnvConfig));
|
|
12
12
|
sessionStorage.setItem("envName", activeEnv);
|
|
13
|
+
window.emui = window.emui || {};
|
|
14
|
+
window.emui.appId = getAppConfigValue("appId") ?? window.emui.appId ?? "";
|
|
13
15
|
setAppDynamicsUserData({ envName: activeEnv });
|
|
14
16
|
updateBAEventParameters({ envName: activeEnv });
|
|
15
17
|
};
|
|
@@ -41,6 +43,6 @@ const loadAppConfig = async (configPath = getAssetPath()) => {
|
|
|
41
43
|
}
|
|
42
44
|
};
|
|
43
45
|
export {
|
|
44
|
-
getAppConfigValue,
|
|
46
|
+
getAppConfigValue2 as getAppConfigValue,
|
|
45
47
|
loadAppConfig
|
|
46
48
|
};
|
|
@@ -13,6 +13,7 @@ const getProductAppDetails = () => {
|
|
|
13
13
|
const { title: productPageTitle } = pageWindow.document;
|
|
14
14
|
const { title: appPageTitle } = document;
|
|
15
15
|
const productId = pageWindow?.emui?.appId ?? "";
|
|
16
|
+
const version = pageWindow?.emui?.version ?? "";
|
|
16
17
|
const appId = window?.emui?.appId ?? "";
|
|
17
18
|
const { pathname: productPath, href: productUrl } = pageWindow.location;
|
|
18
19
|
const { pathname: appPath, href: appUrl } = window.location;
|
|
@@ -21,6 +22,7 @@ const getProductAppDetails = () => {
|
|
|
21
22
|
productPath,
|
|
22
23
|
productUrl,
|
|
23
24
|
productPageTitle,
|
|
25
|
+
version,
|
|
24
26
|
appId,
|
|
25
27
|
appPath,
|
|
26
28
|
appUrl,
|