@elliemae/pui-app-sdk 3.0.0-beta.22 → 3.0.0-beta.23
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.
|
@@ -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 });
|
|
@@ -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
|
-
|
|
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);
|
|
@@ -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 });
|
|
@@ -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
|
-
|
|
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
|
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.23",
|
|
4
4
|
"description": "ICE MT UI Platform Application SDK ",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"*.css",
|
|
@@ -104,19 +104,19 @@
|
|
|
104
104
|
},
|
|
105
105
|
"peerDependencies": {
|
|
106
106
|
"@elliemae/app-react-dependencies": "^3.0.0-beta.3",
|
|
107
|
-
"@elliemae/ds-basic": "^2.3.0-alpha.
|
|
108
|
-
"@elliemae/ds-button": "^2.3.0-alpha.
|
|
109
|
-
"@elliemae/ds-controlled-form": "^2.3.0-alpha.
|
|
110
|
-
"@elliemae/ds-date-picker": "^2.3.0-alpha.
|
|
111
|
-
"@elliemae/ds-date-range-picker": "^2.3.0-alpha.
|
|
112
|
-
"@elliemae/ds-dialog": "^2.3.0-alpha.
|
|
113
|
-
"@elliemae/ds-form": "^2.3.0-alpha.
|
|
114
|
-
"@elliemae/ds-form-layout-blocks": "^2.3.0-alpha.
|
|
115
|
-
"@elliemae/ds-grid": "^2.3.0-alpha.
|
|
116
|
-
"@elliemae/ds-loading-indicator": "^2.3.0-alpha.
|
|
117
|
-
"@elliemae/ds-modal": "^2.3.0-alpha.
|
|
118
|
-
"@elliemae/ds-popperjs": "^2.3.0-alpha.
|
|
119
|
-
"@elliemae/ds-toast": "^2.3.0-alpha.
|
|
107
|
+
"@elliemae/ds-basic": "^2.3.0-alpha.4",
|
|
108
|
+
"@elliemae/ds-button": "^2.3.0-alpha.4",
|
|
109
|
+
"@elliemae/ds-controlled-form": "^2.3.0-alpha.4",
|
|
110
|
+
"@elliemae/ds-date-picker": "^2.3.0-alpha.4",
|
|
111
|
+
"@elliemae/ds-date-range-picker": "^2.3.0-alpha.4",
|
|
112
|
+
"@elliemae/ds-dialog": "^2.3.0-alpha.4",
|
|
113
|
+
"@elliemae/ds-form": "^2.3.0-alpha.4",
|
|
114
|
+
"@elliemae/ds-form-layout-blocks": "^2.3.0-alpha.4",
|
|
115
|
+
"@elliemae/ds-grid": "^2.3.0-alpha.4",
|
|
116
|
+
"@elliemae/ds-loading-indicator": "^2.3.0-alpha.4",
|
|
117
|
+
"@elliemae/ds-modal": "^2.3.0-alpha.4",
|
|
118
|
+
"@elliemae/ds-popperjs": "^2.3.0-alpha.4",
|
|
119
|
+
"@elliemae/ds-toast": "^2.3.0-alpha.4",
|
|
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",
|
|
@@ -126,21 +126,21 @@
|
|
|
126
126
|
"devDependencies": {
|
|
127
127
|
"@elliemae/app-react-dependencies": "~3.0.0-beta.3",
|
|
128
128
|
"@elliemae/browserslist-config-elliemae-latest-browsers": "~1.2.1",
|
|
129
|
-
"@elliemae/ds-basic": "~2.3.0-alpha.
|
|
130
|
-
"@elliemae/ds-button": "~2.3.0-alpha.
|
|
131
|
-
"@elliemae/ds-controlled-form": "~2.3.0-alpha.
|
|
132
|
-
"@elliemae/ds-date-picker": "~2.3.0-alpha.
|
|
133
|
-
"@elliemae/ds-date-range-picker": "~2.3.0-alpha.
|
|
134
|
-
"@elliemae/ds-dialog": "~2.3.0-alpha.
|
|
135
|
-
"@elliemae/ds-form": "~2.3.0-alpha.
|
|
136
|
-
"@elliemae/ds-form-layout-blocks": "~2.3.0-alpha.
|
|
137
|
-
"@elliemae/ds-grid": "~2.3.0-alpha.
|
|
138
|
-
"@elliemae/ds-loading-indicator": "~2.3.0-alpha.
|
|
139
|
-
"@elliemae/ds-modal": "~2.3.0-alpha.
|
|
140
|
-
"@elliemae/ds-popperjs": "~2.3.0-alpha.
|
|
141
|
-
"@elliemae/ds-toast": "~2.3.0-alpha.
|
|
129
|
+
"@elliemae/ds-basic": "~2.3.0-alpha.4",
|
|
130
|
+
"@elliemae/ds-button": "~2.3.0-alpha.4",
|
|
131
|
+
"@elliemae/ds-controlled-form": "~2.3.0-alpha.4",
|
|
132
|
+
"@elliemae/ds-date-picker": "~2.3.0-alpha.4",
|
|
133
|
+
"@elliemae/ds-date-range-picker": "~2.3.0-alpha.4",
|
|
134
|
+
"@elliemae/ds-dialog": "~2.3.0-alpha.4",
|
|
135
|
+
"@elliemae/ds-form": "~2.3.0-alpha.4",
|
|
136
|
+
"@elliemae/ds-form-layout-blocks": "~2.3.0-alpha.4",
|
|
137
|
+
"@elliemae/ds-grid": "~2.3.0-alpha.4",
|
|
138
|
+
"@elliemae/ds-loading-indicator": "~2.3.0-alpha.4",
|
|
139
|
+
"@elliemae/ds-modal": "~2.3.0-alpha.4",
|
|
140
|
+
"@elliemae/ds-popperjs": "~2.3.0-alpha.4",
|
|
141
|
+
"@elliemae/ds-toast": "~2.3.0-alpha.4",
|
|
142
142
|
"@elliemae/em-ssf-guest": "~1.11.1",
|
|
143
|
-
"@elliemae/pui-cli": "~6.0.0-beta.
|
|
143
|
+
"@elliemae/pui-cli": "~6.0.0-beta.38",
|
|
144
144
|
"@elliemae/pui-diagnostics": "~2.7.3",
|
|
145
145
|
"@elliemae/pui-e2e-test-sdk": "~6.9.0",
|
|
146
146
|
"@elliemae/pui-micro-frontend-base": "~1.10.1",
|