@elliemae/pui-app-sdk 3.0.0-beta.24 → 3.0.0-beta.25
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/dist/cjs/analytics/appdynamics.js +1 -1
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/utils/storybook/preview.js +7 -3
- package/dist/es/analytics/appdynamics.js +1 -1
- package/dist/es/index.js +5 -1
- package/dist/es/utils/storybook/preview.js +7 -3
- package/dist/types/index.d.ts +1 -1
- package/dist/types/utils/storybook/preview.d.ts +1 -0
- package/package.json +4 -4
|
@@ -41,7 +41,7 @@ const getAppDynamicsUserData = () => userData;
|
|
|
41
41
|
const setAppDynamicsUserData = (params) => {
|
|
42
42
|
userData = { ...userData, ...params };
|
|
43
43
|
if (brum) {
|
|
44
|
-
brum.setCustomUserData(() => ({ userData }));
|
|
44
|
+
brum.setCustomUserData?.(() => ({ userData }));
|
|
45
45
|
}
|
|
46
46
|
};
|
|
47
47
|
module.exports = __toCommonJS(appdynamics_exports);
|
package/dist/cjs/index.js
CHANGED
|
@@ -73,6 +73,7 @@ __export(lib_exports, {
|
|
|
73
73
|
getAuthorizationHeader: () => import_helper.getAuthorizationHeader,
|
|
74
74
|
getHTTPClient: () => import_http_client.getHTTPClient,
|
|
75
75
|
getHostAppDataByKey: () => import_store2.getHostAppDataByKey,
|
|
76
|
+
getLogger: () => import_micro_frontend.getLogger,
|
|
76
77
|
getMicroFrontEndAppConfig: () => import_micro_frontend.getMicroFrontEndAppConfig,
|
|
77
78
|
getNavigationLinks: () => import_utils.getNavigationLinks,
|
|
78
79
|
getRedirectUrl: () => import_url.getRedirectUrl,
|
|
@@ -23,7 +23,8 @@ var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
|
23
23
|
var preview_exports = {};
|
|
24
24
|
__export(preview_exports, {
|
|
25
25
|
decorators: () => decorators,
|
|
26
|
-
getParameters: () => getParameters
|
|
26
|
+
getParameters: () => getParameters,
|
|
27
|
+
loaders: () => loaders
|
|
27
28
|
});
|
|
28
29
|
var import_pui_theme = require("@elliemae/pui-theme");
|
|
29
30
|
var import_store = require("../../data/store.js");
|
|
@@ -32,8 +33,6 @@ var import_app_config = require("../app-config/index.js");
|
|
|
32
33
|
var import_theme = require("./theme.js");
|
|
33
34
|
var import_history = require("../history.js");
|
|
34
35
|
var import_dimsum = require("@elliemae/ds-basic/css/dimsum.css");
|
|
35
|
-
(0, import_app_config.loadAppConfig)(__webpack_public_path__).catch(() => {
|
|
36
|
-
});
|
|
37
36
|
const theme = (0, import_pui_theme.getDefaultTheme)();
|
|
38
37
|
const store = (0, import_store.createAppStore)({}, import_history.browserHistory);
|
|
39
38
|
const appDecorator = import_decorator.withAppDecorator.bind(null, theme, store);
|
|
@@ -68,4 +67,9 @@ const getParameters = (storyBookTheme) => ({
|
|
|
68
67
|
}
|
|
69
68
|
});
|
|
70
69
|
const decorators = [appDecorator];
|
|
70
|
+
const loaders = [
|
|
71
|
+
async () => {
|
|
72
|
+
await (0, import_app_config.loadAppConfig)(__webpack_public_path__ || "./");
|
|
73
|
+
}
|
|
74
|
+
];
|
|
71
75
|
module.exports = __toCommonJS(preview_exports);
|
|
@@ -9,7 +9,7 @@ const getAppDynamicsUserData = () => userData;
|
|
|
9
9
|
const setAppDynamicsUserData = (params) => {
|
|
10
10
|
userData = { ...userData, ...params };
|
|
11
11
|
if (brum) {
|
|
12
|
-
brum.setCustomUserData(() => ({ userData }));
|
|
12
|
+
brum.setCustomUserData?.(() => ({ userData }));
|
|
13
13
|
}
|
|
14
14
|
};
|
|
15
15
|
export {
|
package/dist/es/index.js
CHANGED
|
@@ -35,7 +35,10 @@ import {
|
|
|
35
35
|
setAppConfigValue,
|
|
36
36
|
setAppConfig
|
|
37
37
|
} from "./utils/app-config/config.js";
|
|
38
|
-
import {
|
|
38
|
+
import {
|
|
39
|
+
getMicroFrontEndAppConfig,
|
|
40
|
+
getLogger
|
|
41
|
+
} from "./utils/micro-frontend/index.js";
|
|
39
42
|
import { loadAppConfig } from "./utils/app-config/index.js";
|
|
40
43
|
import { AppRoot } from "./view/app-root/index.js";
|
|
41
44
|
import { ErrorBoundary } from "./view/error-boundary/index.js";
|
|
@@ -143,6 +146,7 @@ export {
|
|
|
143
146
|
getAuthorizationHeader,
|
|
144
147
|
getHTTPClient,
|
|
145
148
|
getHostAppDataByKey,
|
|
149
|
+
getLogger,
|
|
146
150
|
getMicroFrontEndAppConfig,
|
|
147
151
|
getNavigationLinks,
|
|
148
152
|
getRedirectUrl,
|
|
@@ -5,8 +5,6 @@ import { loadAppConfig } from "../app-config/index.js";
|
|
|
5
5
|
import { createTheme } from "./theme.js";
|
|
6
6
|
import { browserHistory } from "../history.js";
|
|
7
7
|
import "@elliemae/ds-basic/css/dimsum.css";
|
|
8
|
-
loadAppConfig(__webpack_public_path__).catch(() => {
|
|
9
|
-
});
|
|
10
8
|
const theme = getDefaultTheme();
|
|
11
9
|
const store = createAppStore({}, browserHistory);
|
|
12
10
|
const appDecorator = withAppDecorator.bind(null, theme, store);
|
|
@@ -41,7 +39,13 @@ const getParameters = (storyBookTheme) => ({
|
|
|
41
39
|
}
|
|
42
40
|
});
|
|
43
41
|
const decorators = [appDecorator];
|
|
42
|
+
const loaders = [
|
|
43
|
+
async () => {
|
|
44
|
+
await loadAppConfig(__webpack_public_path__ || "./");
|
|
45
|
+
}
|
|
46
|
+
];
|
|
44
47
|
export {
|
|
45
48
|
decorators,
|
|
46
|
-
getParameters
|
|
49
|
+
getParameters,
|
|
50
|
+
loaders
|
|
47
51
|
};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ export { CMicroAppGuest } from './utils/micro-frontend/guest.js';
|
|
|
23
23
|
export { CMicroAppHost } from './utils/micro-frontend/host.js';
|
|
24
24
|
export { enableReactAppForHostIntegration } from './utils/app-host-integration/react.js';
|
|
25
25
|
export { getAppConfigValue, setAppConfigValue, setAppConfig, } from './utils/app-config/config.js';
|
|
26
|
-
export { getMicroFrontEndAppConfig } from './utils/micro-frontend/index.js';
|
|
26
|
+
export { getMicroFrontEndAppConfig, getLogger, } from './utils/micro-frontend/index.js';
|
|
27
27
|
export { loadAppConfig } from './utils/app-config/index.js';
|
|
28
28
|
export { AppRoot } from './view/app-root/index.js';
|
|
29
29
|
export { ErrorBoundary } from './view/error-boundary/index.js';
|
|
@@ -28,3 +28,4 @@ export declare const getParameters: (storyBookTheme: {
|
|
|
28
28
|
};
|
|
29
29
|
};
|
|
30
30
|
export declare const decorators: ((story: () => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) => JSX.Element)[];
|
|
31
|
+
export declare const loaders: (() => Promise<void>)[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/pui-app-sdk",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.25",
|
|
4
4
|
"description": "ICE MT UI Platform Application SDK ",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"*.css",
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
"@elliemae/pui-diagnostics": "^2.7.3",
|
|
123
123
|
"@elliemae/pui-micro-frontend-base": "^1.10.1",
|
|
124
124
|
"@elliemae/pui-theme": "^2.3.0",
|
|
125
|
-
"@elliemae/pui-user-monitoring": "^1.
|
|
125
|
+
"@elliemae/pui-user-monitoring": "^1.13.0"
|
|
126
126
|
},
|
|
127
127
|
"devDependencies": {
|
|
128
128
|
"@elliemae/app-react-dependencies": "~3.0.0-beta.4",
|
|
@@ -141,11 +141,11 @@
|
|
|
141
141
|
"@elliemae/ds-popperjs": "3.0.0-alpha.0",
|
|
142
142
|
"@elliemae/ds-toast": "3.0.0-alpha.0",
|
|
143
143
|
"@elliemae/em-ssf-guest": "~1.11.1",
|
|
144
|
-
"@elliemae/pui-cli": "~6.0.0-beta.
|
|
144
|
+
"@elliemae/pui-cli": "~6.0.0-beta.44",
|
|
145
145
|
"@elliemae/pui-diagnostics": "~2.7.3",
|
|
146
146
|
"@elliemae/pui-e2e-test-sdk": "~6.10.0",
|
|
147
147
|
"@elliemae/pui-micro-frontend-base": "~1.10.1",
|
|
148
148
|
"@elliemae/pui-theme": "~2.3.0",
|
|
149
|
-
"@elliemae/pui-user-monitoring": "~1.
|
|
149
|
+
"@elliemae/pui-user-monitoring": "~1.13.0"
|
|
150
150
|
}
|
|
151
151
|
}
|