@elliemae/pui-app-sdk 3.0.1 → 3.2.0
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/utils/auth/index.js +3 -2
- package/dist/cjs/utils/micro-frontend/guest.js +1 -0
- package/dist/cjs/utils/storybook/preview.css +1 -0
- package/dist/cjs/utils/storybook/preview.js +1 -1
- package/dist/esm/utils/auth/index.js +3 -2
- package/dist/esm/utils/micro-frontend/guest.js +1 -0
- package/dist/esm/utils/storybook/preview.css +1 -0
- package/dist/esm/utils/storybook/preview.js +1 -1
- package/dist/types/utils/storybook/preview.d.ts +1 -1
- package/package.json +31 -31
|
@@ -156,8 +156,9 @@ const authorize = async ({
|
|
|
156
156
|
(0, import_appdynamics.setAppDynamicsUserData)({ instanceId, userId: userName });
|
|
157
157
|
const data = await (0, import_users.getUser)({ userName });
|
|
158
158
|
sessionStorage.setItem("userSettings", JSON.stringify(data));
|
|
159
|
-
|
|
160
|
-
import_history.browserHistory.replace(
|
|
159
|
+
const pathName = new URL(redirectUri).pathname;
|
|
160
|
+
import_history.browserHistory.push(`${pathName.replace(/\/$/, "")}/_rerender`);
|
|
161
|
+
import_history.browserHistory.replace(pathName);
|
|
161
162
|
} catch (err) {
|
|
162
163
|
const code = err?.response?.data?.code;
|
|
163
164
|
await endSession({ clientId, redirectUri, code, scope, responseType });
|
|
@@ -127,6 +127,7 @@ class CMicroAppGuest {
|
|
|
127
127
|
}
|
|
128
128
|
async init(options) {
|
|
129
129
|
this.props = import_lodash.default.merge(this.props, options);
|
|
130
|
+
this.props.history = options?.history || this.props.history;
|
|
130
131
|
if (!this.props.host) {
|
|
131
132
|
const host = await this.getSSFHost();
|
|
132
133
|
if (host)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import url(~@elliemae/ds-basic/css/dimsum.css);
|
|
@@ -32,7 +32,7 @@ var import_decorator = require("../../view/storybook/decorator.js");
|
|
|
32
32
|
var import_app_config = require("../app-config/index.js");
|
|
33
33
|
var import_theme = require("./theme.js");
|
|
34
34
|
var import_history = require("../history.js");
|
|
35
|
-
var
|
|
35
|
+
var import_preview = require("./preview.css");
|
|
36
36
|
const theme = (0, import_pui_theme.getDefaultTheme)();
|
|
37
37
|
const store = (0, import_store.createAppStore)({}, import_history.browserHistory);
|
|
38
38
|
const appDecorator = import_decorator.withAppDecorator.bind(null, theme, store);
|
|
@@ -131,8 +131,9 @@ const authorize = async ({
|
|
|
131
131
|
setAppDynamicsUserData({ instanceId, userId: userName });
|
|
132
132
|
const data = await getUser({ userName });
|
|
133
133
|
sessionStorage.setItem("userSettings", JSON.stringify(data));
|
|
134
|
-
|
|
135
|
-
history.replace(
|
|
134
|
+
const pathName = new URL(redirectUri).pathname;
|
|
135
|
+
history.push(`${pathName.replace(/\/$/, "")}/_rerender`);
|
|
136
|
+
history.replace(pathName);
|
|
136
137
|
} catch (err) {
|
|
137
138
|
const code = err?.response?.data?.code;
|
|
138
139
|
await endSession({ clientId, redirectUri, code, scope, responseType });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import url(~@elliemae/ds-basic/css/dimsum.css);
|
|
@@ -4,7 +4,7 @@ import { withAppDecorator } from "../../view/storybook/decorator.js";
|
|
|
4
4
|
import { loadAppConfig } from "../app-config/index.js";
|
|
5
5
|
import { createTheme } from "./theme.js";
|
|
6
6
|
import { browserHistory } from "../history.js";
|
|
7
|
-
import "
|
|
7
|
+
import "./preview.css";
|
|
8
8
|
const theme = getDefaultTheme();
|
|
9
9
|
const store = createAppStore({}, browserHistory);
|
|
10
10
|
const appDecorator = withAppDecorator.bind(null, theme, store);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/pui-app-sdk",
|
|
3
|
-
"version": "3.0
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"description": "ICE MT UI Platform Application SDK ",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"*.css",
|
|
@@ -103,20 +103,20 @@
|
|
|
103
103
|
"indent": 4
|
|
104
104
|
},
|
|
105
105
|
"peerDependencies": {
|
|
106
|
-
"@elliemae/app-react-dependencies": "^3.
|
|
107
|
-
"@elliemae/ds-basic": "^2.2
|
|
108
|
-
"@elliemae/ds-button": "^2.2
|
|
109
|
-
"@elliemae/ds-controlled-form": "^2.2
|
|
110
|
-
"@elliemae/ds-date-picker": "^2.2
|
|
111
|
-
"@elliemae/ds-date-range-picker": "^2.2
|
|
112
|
-
"@elliemae/ds-dialog": "^2.2
|
|
113
|
-
"@elliemae/ds-form": "^2.2
|
|
114
|
-
"@elliemae/ds-form-layout-blocks": "^2.2
|
|
115
|
-
"@elliemae/ds-grid": "^2.2
|
|
116
|
-
"@elliemae/ds-loading-indicator": "^2.2
|
|
117
|
-
"@elliemae/ds-modal": "^2.2
|
|
118
|
-
"@elliemae/ds-popperjs": "^2.2
|
|
119
|
-
"@elliemae/ds-toast": "^2.2
|
|
106
|
+
"@elliemae/app-react-dependencies": "^3.2.0",
|
|
107
|
+
"@elliemae/ds-basic": "^2.3.2",
|
|
108
|
+
"@elliemae/ds-button": "^2.3.2",
|
|
109
|
+
"@elliemae/ds-controlled-form": "^2.3.2",
|
|
110
|
+
"@elliemae/ds-date-picker": "^2.3.2",
|
|
111
|
+
"@elliemae/ds-date-range-picker": "^2.3.2",
|
|
112
|
+
"@elliemae/ds-dialog": "^2.3.2",
|
|
113
|
+
"@elliemae/ds-form": "^2.3.2",
|
|
114
|
+
"@elliemae/ds-form-layout-blocks": "^2.3.2",
|
|
115
|
+
"@elliemae/ds-grid": "^2.3.2",
|
|
116
|
+
"@elliemae/ds-loading-indicator": "^2.3.2",
|
|
117
|
+
"@elliemae/ds-modal": "^2.3.2",
|
|
118
|
+
"@elliemae/ds-popperjs": "^2.3.2",
|
|
119
|
+
"@elliemae/ds-toast": "^2.3.2",
|
|
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",
|
|
@@ -124,25 +124,25 @@
|
|
|
124
124
|
"@elliemae/pui-user-monitoring": "^1.13.0"
|
|
125
125
|
},
|
|
126
126
|
"devDependencies": {
|
|
127
|
-
"@elliemae/app-react-dependencies": "~3.
|
|
127
|
+
"@elliemae/app-react-dependencies": "~3.2.0",
|
|
128
128
|
"@elliemae/browserslist-config-elliemae-latest-browsers": "~1.3.0",
|
|
129
|
-
"@elliemae/ds-basic": "~2.2
|
|
130
|
-
"@elliemae/ds-button": "~2.2
|
|
131
|
-
"@elliemae/ds-controlled-form": "~2.2
|
|
132
|
-
"@elliemae/ds-date-picker": "~2.2
|
|
133
|
-
"@elliemae/ds-date-range-picker": "~2.2
|
|
134
|
-
"@elliemae/ds-dialog": "~2.2
|
|
135
|
-
"@elliemae/ds-form": "~2.2
|
|
136
|
-
"@elliemae/ds-form-layout-blocks": "~2.2
|
|
137
|
-
"@elliemae/ds-grid": "~2.2
|
|
138
|
-
"@elliemae/ds-loading-indicator": "~2.2
|
|
139
|
-
"@elliemae/ds-modal": "~2.2
|
|
140
|
-
"@elliemae/ds-popperjs": "~2.2
|
|
141
|
-
"@elliemae/ds-toast": "~2.2
|
|
129
|
+
"@elliemae/ds-basic": "~2.3.2",
|
|
130
|
+
"@elliemae/ds-button": "~2.3.2",
|
|
131
|
+
"@elliemae/ds-controlled-form": "~2.3.2",
|
|
132
|
+
"@elliemae/ds-date-picker": "~2.3.2",
|
|
133
|
+
"@elliemae/ds-date-range-picker": "~2.3.2",
|
|
134
|
+
"@elliemae/ds-dialog": "~2.3.2",
|
|
135
|
+
"@elliemae/ds-form": "~2.3.2",
|
|
136
|
+
"@elliemae/ds-form-layout-blocks": "~2.3.2",
|
|
137
|
+
"@elliemae/ds-grid": "~2.3.2",
|
|
138
|
+
"@elliemae/ds-loading-indicator": "~2.3.2",
|
|
139
|
+
"@elliemae/ds-modal": "~2.3.2",
|
|
140
|
+
"@elliemae/ds-popperjs": "~2.3.2",
|
|
141
|
+
"@elliemae/ds-toast": "~2.3.2",
|
|
142
142
|
"@elliemae/em-ssf-guest": "~1.11.1",
|
|
143
|
-
"@elliemae/pui-cli": "~6.
|
|
143
|
+
"@elliemae/pui-cli": "~6.3.1",
|
|
144
144
|
"@elliemae/pui-diagnostics": "~2.7.3",
|
|
145
|
-
"@elliemae/pui-e2e-test-sdk": "~
|
|
145
|
+
"@elliemae/pui-e2e-test-sdk": "~7.0.0",
|
|
146
146
|
"@elliemae/pui-micro-frontend-base": "~1.10.1",
|
|
147
147
|
"@elliemae/pui-theme": "~2.3.0",
|
|
148
148
|
"@elliemae/pui-user-monitoring": "~1.13.0"
|