@elliemae/pui-app-sdk 3.0.0-beta.21 → 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 +3 -0
- package/dist/cjs/utils/auth/index.js +2 -1
- package/dist/cjs/utils/storybook/preview.js +7 -3
- package/dist/cjs/view/require-auth.js +1 -5
- package/dist/es/analytics/appdynamics.js +1 -1
- package/dist/es/index.js +7 -1
- package/dist/es/utils/auth/index.js +2 -1
- package/dist/es/utils/storybook/preview.js +7 -3
- package/dist/es/view/require-auth.js +1 -5
- package/dist/types/index.d.ts +2 -1
- package/dist/types/utils/storybook/preview.d.ts +1 -0
- package/package.json +36 -35
|
@@ -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
|
@@ -39,6 +39,7 @@ __export(lib_exports, {
|
|
|
39
39
|
ErrorToast: () => import_error_toast.ErrorToast,
|
|
40
40
|
Form: () => import_form.Form,
|
|
41
41
|
FormItemLayout: () => import_form_item_layout.FormItemLayout,
|
|
42
|
+
FormLayoutBlockItem: () => import_form_layout_block_item.FormLayoutBlockItem,
|
|
42
43
|
FormSubmitButton: () => import_submit_button.FormSubmitButton,
|
|
43
44
|
InputMask: () => import_input_mask.InputMask,
|
|
44
45
|
LargeTextBox: () => import_large_text_box.LargeTextBox,
|
|
@@ -72,6 +73,7 @@ __export(lib_exports, {
|
|
|
72
73
|
getAuthorizationHeader: () => import_helper.getAuthorizationHeader,
|
|
73
74
|
getHTTPClient: () => import_http_client.getHTTPClient,
|
|
74
75
|
getHostAppDataByKey: () => import_store2.getHostAppDataByKey,
|
|
76
|
+
getLogger: () => import_micro_frontend.getLogger,
|
|
75
77
|
getMicroFrontEndAppConfig: () => import_micro_frontend.getMicroFrontEndAppConfig,
|
|
76
78
|
getNavigationLinks: () => import_utils.getNavigationLinks,
|
|
77
79
|
getRedirectUrl: () => import_url.getRedirectUrl,
|
|
@@ -166,6 +168,7 @@ var import_error_toast = require("./view/error-toast/index.js");
|
|
|
166
168
|
var import_form = require("./view/form/index.js");
|
|
167
169
|
var import_connect_form = require("./view/fields/connect-form.js");
|
|
168
170
|
var import_form_item_layout = require("./view/fields/form-item-layout/index.js");
|
|
171
|
+
var import_form_layout_block_item = require("./view/fields/form-layout-block-item/index.js");
|
|
169
172
|
var import_text_box = require("./view/fields/text-box/index.js");
|
|
170
173
|
var import_large_text_box = require("./view/fields/large-text-box/index.js");
|
|
171
174
|
var import_input_mask = require("./view/fields/input-mask/index.js");
|
|
@@ -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
|
-
|
|
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 {
|
|
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";
|
|
@@ -67,6 +70,7 @@ import { ErrorToast } from "./view/error-toast/index.js";
|
|
|
67
70
|
import { Form } from "./view/form/index.js";
|
|
68
71
|
import { ConnectForm } from "./view/fields/connect-form.js";
|
|
69
72
|
import { FormItemLayout } from "./view/fields/form-item-layout/index.js";
|
|
73
|
+
import { FormLayoutBlockItem } from "./view/fields/form-layout-block-item/index.js";
|
|
70
74
|
import { TextBox } from "./view/fields/text-box/index.js";
|
|
71
75
|
import { LargeTextBox } from "./view/fields/large-text-box/index.js";
|
|
72
76
|
import {
|
|
@@ -108,6 +112,7 @@ export {
|
|
|
108
112
|
ErrorToast,
|
|
109
113
|
Form,
|
|
110
114
|
FormItemLayout,
|
|
115
|
+
FormLayoutBlockItem,
|
|
111
116
|
FormSubmitButton,
|
|
112
117
|
InputMask,
|
|
113
118
|
LargeTextBox,
|
|
@@ -141,6 +146,7 @@ export {
|
|
|
141
146
|
getAuthorizationHeader,
|
|
142
147
|
getHTTPClient,
|
|
143
148
|
getHostAppDataByKey,
|
|
149
|
+
getLogger,
|
|
144
150
|
getMicroFrontEndAppConfig,
|
|
145
151
|
getNavigationLinks,
|
|
146
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
|
-
|
|
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/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';
|
|
@@ -46,6 +46,7 @@ export { ErrorToast } from './view/error-toast/index.js';
|
|
|
46
46
|
export { Form } from './view/form/index.js';
|
|
47
47
|
export { ConnectForm } from './view/fields/connect-form.js';
|
|
48
48
|
export { FormItemLayout } from './view/fields/form-item-layout/index.js';
|
|
49
|
+
export { FormLayoutBlockItem } from './view/fields/form-layout-block-item/index.js';
|
|
49
50
|
export { TextBox } from './view/fields/text-box/index.js';
|
|
50
51
|
export { LargeTextBox } from './view/fields/large-text-box/index.js';
|
|
51
52
|
export { InputMask, MASK_TYPES, MASK_PIPES, } from './view/fields/input-mask/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",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"url": "http://git.elliemae.io/platform-ui/pui-app-sdk.git"
|
|
63
63
|
},
|
|
64
64
|
"engines": {
|
|
65
|
-
"
|
|
65
|
+
"pnpm": ">=6",
|
|
66
66
|
"node": ">=16"
|
|
67
67
|
},
|
|
68
68
|
"author": "ICE MT",
|
|
@@ -94,7 +94,8 @@
|
|
|
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
|
-
"
|
|
97
|
+
"preinstall": "npx only-allow pnpm",
|
|
98
|
+
"prepare": "[ -n \"$CI\" ] || husky install"
|
|
98
99
|
},
|
|
99
100
|
"jestSonar": {
|
|
100
101
|
"sonar56x": true,
|
|
@@ -103,48 +104,48 @@
|
|
|
103
104
|
"indent": 4
|
|
104
105
|
},
|
|
105
106
|
"peerDependencies": {
|
|
106
|
-
"@elliemae/app-react-dependencies": "^3.0.0-beta.
|
|
107
|
-
"@elliemae/ds-basic": "^
|
|
108
|
-
"@elliemae/ds-button": "^
|
|
109
|
-
"@elliemae/ds-controlled-form": "^
|
|
110
|
-
"@elliemae/ds-date-picker": "^
|
|
111
|
-
"@elliemae/ds-date-range-picker": "^
|
|
112
|
-
"@elliemae/ds-dialog": "^
|
|
113
|
-
"@elliemae/ds-form": "^
|
|
114
|
-
"@elliemae/ds-form-layout-blocks": "^
|
|
115
|
-
"@elliemae/ds-grid": "^
|
|
116
|
-
"@elliemae/ds-loading-indicator": "^
|
|
117
|
-
"@elliemae/ds-modal": "^
|
|
118
|
-
"@elliemae/ds-popperjs": "^
|
|
119
|
-
"@elliemae/ds-toast": "^
|
|
107
|
+
"@elliemae/app-react-dependencies": "^3.0.0-beta.4",
|
|
108
|
+
"@elliemae/ds-basic": "^3.0.0-alpha.0",
|
|
109
|
+
"@elliemae/ds-button": "^3.0.0-alpha.0",
|
|
110
|
+
"@elliemae/ds-controlled-form": "^3.0.0-alpha.0",
|
|
111
|
+
"@elliemae/ds-date-picker": "^3.0.0-alpha.0",
|
|
112
|
+
"@elliemae/ds-date-range-picker": "^3.0.0-alpha.0",
|
|
113
|
+
"@elliemae/ds-dialog": "^3.0.0-alpha.0",
|
|
114
|
+
"@elliemae/ds-form": "^3.0.0-alpha.0",
|
|
115
|
+
"@elliemae/ds-form-layout-blocks": "^3.0.0-alpha.0",
|
|
116
|
+
"@elliemae/ds-grid": "^3.0.0-alpha.0",
|
|
117
|
+
"@elliemae/ds-loading-indicator": "^3.0.0-alpha.0",
|
|
118
|
+
"@elliemae/ds-modal": "^3.0.0-alpha.0",
|
|
119
|
+
"@elliemae/ds-popperjs": "^3.0.0-alpha.0",
|
|
120
|
+
"@elliemae/ds-toast": "^3.0.0-alpha.0",
|
|
120
121
|
"@elliemae/em-ssf-guest": "^1.11.1",
|
|
121
122
|
"@elliemae/pui-diagnostics": "^2.7.3",
|
|
122
123
|
"@elliemae/pui-micro-frontend-base": "^1.10.1",
|
|
123
124
|
"@elliemae/pui-theme": "^2.3.0",
|
|
124
|
-
"@elliemae/pui-user-monitoring": "^1.
|
|
125
|
+
"@elliemae/pui-user-monitoring": "^1.13.0"
|
|
125
126
|
},
|
|
126
127
|
"devDependencies": {
|
|
127
|
-
"@elliemae/app-react-dependencies": "~3.0.0-beta.
|
|
128
|
+
"@elliemae/app-react-dependencies": "~3.0.0-beta.4",
|
|
128
129
|
"@elliemae/browserslist-config-elliemae-latest-browsers": "~1.2.1",
|
|
129
|
-
"@elliemae/ds-basic": "
|
|
130
|
-
"@elliemae/ds-button": "
|
|
131
|
-
"@elliemae/ds-controlled-form": "
|
|
132
|
-
"@elliemae/ds-date-picker": "
|
|
133
|
-
"@elliemae/ds-date-range-picker": "
|
|
134
|
-
"@elliemae/ds-dialog": "
|
|
135
|
-
"@elliemae/ds-form": "
|
|
136
|
-
"@elliemae/ds-form-layout-blocks": "
|
|
137
|
-
"@elliemae/ds-grid": "
|
|
138
|
-
"@elliemae/ds-loading-indicator": "
|
|
139
|
-
"@elliemae/ds-modal": "
|
|
140
|
-
"@elliemae/ds-popperjs": "
|
|
141
|
-
"@elliemae/ds-toast": "
|
|
130
|
+
"@elliemae/ds-basic": "3.0.0-alpha.0",
|
|
131
|
+
"@elliemae/ds-button": "3.0.0-alpha.0",
|
|
132
|
+
"@elliemae/ds-controlled-form": "3.0.0-alpha.0",
|
|
133
|
+
"@elliemae/ds-date-picker": "3.0.0-alpha.0",
|
|
134
|
+
"@elliemae/ds-date-range-picker": "3.0.0-alpha.0",
|
|
135
|
+
"@elliemae/ds-dialog": "3.0.0-alpha.0",
|
|
136
|
+
"@elliemae/ds-form": "3.0.0-alpha.0",
|
|
137
|
+
"@elliemae/ds-form-layout-blocks": "3.0.0-alpha.0",
|
|
138
|
+
"@elliemae/ds-grid": "3.0.0-alpha.0",
|
|
139
|
+
"@elliemae/ds-loading-indicator": "3.0.0-alpha.0",
|
|
140
|
+
"@elliemae/ds-modal": "3.0.0-alpha.0",
|
|
141
|
+
"@elliemae/ds-popperjs": "3.0.0-alpha.0",
|
|
142
|
+
"@elliemae/ds-toast": "3.0.0-alpha.0",
|
|
142
143
|
"@elliemae/em-ssf-guest": "~1.11.1",
|
|
143
|
-
"@elliemae/pui-cli": "~6.0.0-beta.
|
|
144
|
+
"@elliemae/pui-cli": "~6.0.0-beta.44",
|
|
144
145
|
"@elliemae/pui-diagnostics": "~2.7.3",
|
|
145
|
-
"@elliemae/pui-e2e-test-sdk": "~6.
|
|
146
|
+
"@elliemae/pui-e2e-test-sdk": "~6.10.0",
|
|
146
147
|
"@elliemae/pui-micro-frontend-base": "~1.10.1",
|
|
147
148
|
"@elliemae/pui-theme": "~2.3.0",
|
|
148
|
-
"@elliemae/pui-user-monitoring": "~1.
|
|
149
|
+
"@elliemae/pui-user-monitoring": "~1.13.0"
|
|
149
150
|
}
|
|
150
151
|
}
|