@elliemae/pui-app-sdk 3.0.0-beta.22 → 3.0.0-beta.26

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,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,
@@ -140,7 +140,8 @@ const authorize = async ({
140
140
  (0, import_appdynamics.setAppDynamicsUserData)({ instanceId, userId: userName });
141
141
  const data = await (0, import_users.getUser)({ userName });
142
142
  sessionStorage.setItem("userSettings", JSON.stringify(data));
143
- import_history.browserHistory.push(new URL(redirectUri).pathname);
143
+ import_history.browserHistory.push(`${new URL(redirectUri).pathname}/rerender`);
144
+ import_history.browserHistory.replace(new URL(redirectUri).pathname);
144
145
  } catch (err) {
145
146
  const code = err?.response?.data?.code;
146
147
  await endSession({ clientId, redirectUri, code, scope, responseType });
@@ -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);
@@ -32,7 +32,6 @@ __export(require_auth_exports, {
32
32
  var React = __toESM(require("react"));
33
33
  var import_redux_injectors = require("redux-injectors");
34
34
  var import_constants = __toESM(require("../utils/constants.js"));
35
- var import_render_with_delay = require("./render-with-delay/index.js");
36
35
  var import_reducer = require("../data/auth/reducer.js");
37
36
  var import_auth = require("../sideeffect/auth/index.js");
38
37
  var import_login = require("./login/index.js");
@@ -50,13 +49,10 @@ const RequireAuth = ({
50
49
  if (userAuthorized) {
51
50
  return /* @__PURE__ */ React.createElement(React.Fragment, null, children);
52
51
  }
53
- const renderLogin = () => /* @__PURE__ */ React.createElement(import_login.Login, {
52
+ return /* @__PURE__ */ React.createElement(import_login.Login, {
54
53
  clientId,
55
54
  scope,
56
55
  responseType
57
56
  });
58
- return /* @__PURE__ */ React.createElement(import_render_with_delay.RenderWithDelay, {
59
- render: renderLogin
60
- });
61
57
  };
62
58
  module.exports = __toCommonJS(require_auth_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 { getMicroFrontEndAppConfig } from "./utils/micro-frontend/index.js";
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,
@@ -113,7 +113,8 @@ const authorize = async ({
113
113
  setAppDynamicsUserData({ instanceId, userId: userName });
114
114
  const data = await getUser({ userName });
115
115
  sessionStorage.setItem("userSettings", JSON.stringify(data));
116
- history.push(new URL(redirectUri).pathname);
116
+ history.push(`${new URL(redirectUri).pathname}/rerender`);
117
+ history.replace(new URL(redirectUri).pathname);
117
118
  } catch (err) {
118
119
  const code = err?.response?.data?.code;
119
120
  await endSession({ clientId, redirectUri, code, scope, responseType });
@@ -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
  };
@@ -1,7 +1,6 @@
1
1
  import * as React from "react";
2
2
  import { useInjectReducer, useInjectSaga } from "redux-injectors";
3
3
  import enums from "../utils/constants.js";
4
- import { RenderWithDelay } from "./render-with-delay/index.js";
5
4
  import { authReducer } from "../data/auth/reducer.js";
6
5
  import { authentication } from "../sideeffect/auth/index.js";
7
6
  import { Login } from "./login/index.js";
@@ -19,14 +18,11 @@ const RequireAuth = ({
19
18
  if (userAuthorized) {
20
19
  return /* @__PURE__ */ React.createElement(React.Fragment, null, children);
21
20
  }
22
- const renderLogin = () => /* @__PURE__ */ React.createElement(Login, {
21
+ return /* @__PURE__ */ React.createElement(Login, {
23
22
  clientId,
24
23
  scope,
25
24
  responseType
26
25
  });
27
- return /* @__PURE__ */ React.createElement(RenderWithDelay, {
28
- render: renderLogin
29
- });
30
26
  };
31
27
  export {
32
28
  RequireAuth
@@ -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.22",
3
+ "version": "3.0.0-beta.26",
4
4
  "description": "ICE MT UI Platform Application SDK ",
5
5
  "sideEffects": [
6
6
  "*.css",
@@ -62,7 +62,7 @@
62
62
  "url": "http://git.elliemae.io/platform-ui/pui-app-sdk.git"
63
63
  },
64
64
  "engines": {
65
- "npm": ">=8",
65
+ "pnpm": ">=6",
66
66
  "node": ">=16"
67
67
  },
68
68
  "author": "ICE MT",
@@ -94,7 +94,7 @@
94
94
  "test:watch": "pui-cli test -w",
95
95
  "test:staged": "jest --coverage --passWithNoTests --bail --findRelatedTests",
96
96
  "upgrade": "ncu -u && npm run setup",
97
- "prepare": "husky install"
97
+ "prepare": "[ -n \"$CI\" ] || husky install"
98
98
  },
99
99
  "jestSonar": {
100
100
  "sonar56x": true,
@@ -103,48 +103,48 @@
103
103
  "indent": 4
104
104
  },
105
105
  "peerDependencies": {
106
- "@elliemae/app-react-dependencies": "^3.0.0-beta.3",
107
- "@elliemae/ds-basic": "^2.3.0-alpha.3",
108
- "@elliemae/ds-button": "^2.3.0-alpha.3",
109
- "@elliemae/ds-controlled-form": "^2.3.0-alpha.3",
110
- "@elliemae/ds-date-picker": "^2.3.0-alpha.3",
111
- "@elliemae/ds-date-range-picker": "^2.3.0-alpha.3",
112
- "@elliemae/ds-dialog": "^2.3.0-alpha.3",
113
- "@elliemae/ds-form": "^2.3.0-alpha.3",
114
- "@elliemae/ds-form-layout-blocks": "^2.3.0-alpha.3",
115
- "@elliemae/ds-grid": "^2.3.0-alpha.3",
116
- "@elliemae/ds-loading-indicator": "^2.3.0-alpha.3",
117
- "@elliemae/ds-modal": "^2.3.0-alpha.3",
118
- "@elliemae/ds-popperjs": "^2.3.0-alpha.3",
119
- "@elliemae/ds-toast": "^2.3.0-alpha.3",
106
+ "@elliemae/app-react-dependencies": "^3.0.0-beta.4",
107
+ "@elliemae/ds-basic": "^3.0.0-alpha.0",
108
+ "@elliemae/ds-button": "^3.0.0-alpha.0",
109
+ "@elliemae/ds-controlled-form": "^3.0.0-alpha.0",
110
+ "@elliemae/ds-date-picker": "^3.0.0-alpha.0",
111
+ "@elliemae/ds-date-range-picker": "^3.0.0-alpha.0",
112
+ "@elliemae/ds-dialog": "^3.0.0-alpha.0",
113
+ "@elliemae/ds-form": "^3.0.0-alpha.0",
114
+ "@elliemae/ds-form-layout-blocks": "^3.0.0-alpha.0",
115
+ "@elliemae/ds-grid": "^3.0.0-alpha.0",
116
+ "@elliemae/ds-loading-indicator": "^3.0.0-alpha.0",
117
+ "@elliemae/ds-modal": "^3.0.0-alpha.0",
118
+ "@elliemae/ds-popperjs": "^3.0.0-alpha.0",
119
+ "@elliemae/ds-toast": "^3.0.0-alpha.0",
120
120
  "@elliemae/em-ssf-guest": "^1.11.1",
121
121
  "@elliemae/pui-diagnostics": "^2.7.3",
122
122
  "@elliemae/pui-micro-frontend-base": "^1.10.1",
123
123
  "@elliemae/pui-theme": "^2.3.0",
124
- "@elliemae/pui-user-monitoring": "^1.12.2"
124
+ "@elliemae/pui-user-monitoring": "^1.13.0"
125
125
  },
126
126
  "devDependencies": {
127
- "@elliemae/app-react-dependencies": "~3.0.0-beta.3",
127
+ "@elliemae/app-react-dependencies": "~3.0.0-beta.4",
128
128
  "@elliemae/browserslist-config-elliemae-latest-browsers": "~1.2.1",
129
- "@elliemae/ds-basic": "~2.3.0-alpha.3",
130
- "@elliemae/ds-button": "~2.3.0-alpha.3",
131
- "@elliemae/ds-controlled-form": "~2.3.0-alpha.3",
132
- "@elliemae/ds-date-picker": "~2.3.0-alpha.3",
133
- "@elliemae/ds-date-range-picker": "~2.3.0-alpha.3",
134
- "@elliemae/ds-dialog": "~2.3.0-alpha.3",
135
- "@elliemae/ds-form": "~2.3.0-alpha.3",
136
- "@elliemae/ds-form-layout-blocks": "~2.3.0-alpha.3",
137
- "@elliemae/ds-grid": "~2.3.0-alpha.3",
138
- "@elliemae/ds-loading-indicator": "~2.3.0-alpha.3",
139
- "@elliemae/ds-modal": "~2.3.0-alpha.3",
140
- "@elliemae/ds-popperjs": "~2.3.0-alpha.3",
141
- "@elliemae/ds-toast": "~2.3.0-alpha.3",
129
+ "@elliemae/ds-basic": "3.0.0-alpha.0",
130
+ "@elliemae/ds-button": "3.0.0-alpha.0",
131
+ "@elliemae/ds-controlled-form": "3.0.0-alpha.0",
132
+ "@elliemae/ds-date-picker": "3.0.0-alpha.0",
133
+ "@elliemae/ds-date-range-picker": "3.0.0-alpha.0",
134
+ "@elliemae/ds-dialog": "3.0.0-alpha.0",
135
+ "@elliemae/ds-form": "3.0.0-alpha.0",
136
+ "@elliemae/ds-form-layout-blocks": "3.0.0-alpha.0",
137
+ "@elliemae/ds-grid": "3.0.0-alpha.0",
138
+ "@elliemae/ds-loading-indicator": "3.0.0-alpha.0",
139
+ "@elliemae/ds-modal": "3.0.0-alpha.0",
140
+ "@elliemae/ds-popperjs": "3.0.0-alpha.0",
141
+ "@elliemae/ds-toast": "3.0.0-alpha.0",
142
142
  "@elliemae/em-ssf-guest": "~1.11.1",
143
- "@elliemae/pui-cli": "~6.0.0-beta.37",
143
+ "@elliemae/pui-cli": "~6.0.0-beta.46",
144
144
  "@elliemae/pui-diagnostics": "~2.7.3",
145
- "@elliemae/pui-e2e-test-sdk": "~6.9.0",
145
+ "@elliemae/pui-e2e-test-sdk": "~6.10.0",
146
146
  "@elliemae/pui-micro-frontend-base": "~1.10.1",
147
147
  "@elliemae/pui-theme": "~2.3.0",
148
- "@elliemae/pui-user-monitoring": "~1.12.2"
148
+ "@elliemae/pui-user-monitoring": "~1.13.0"
149
149
  }
150
150
  }