@elliemae/pui-app-sdk 3.0.0-beta.5 → 3.0.0-beta.6
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/index.js +3 -3
- package/dist/cjs/analytics/page-view-event.js +2 -2
- package/dist/cjs/analytics/user-session-event.js +4 -4
- package/dist/cjs/analytics/user-wait-event.js +3 -3
- package/dist/cjs/api/auth/index.js +1 -1
- package/dist/cjs/api/users/index.js +1 -1
- package/dist/cjs/communication/http-client/index.js +5 -5
- package/dist/cjs/communication/http-client/request-interceptor.js +1 -1
- package/dist/cjs/communication/http-client/retry.js +1 -1
- package/dist/cjs/communication/http-client/tests/index.test-disable.js +3 -3
- package/dist/cjs/data/auth/reducer.js +1 -1
- package/dist/cjs/data/reducers.js +4 -4
- package/dist/cjs/data/store.js +1 -1
- package/dist/cjs/data/wait-message/reducer.js +1 -1
- package/dist/cjs/index.js +73 -73
- package/dist/cjs/route/index.js +2 -1
- package/dist/cjs/route/page-view.js +1 -1
- package/dist/cjs/route/private-route/index.js +8 -7
- package/dist/cjs/sideeffect/auth/index.js +4 -4
- package/dist/cjs/sideeffect/error-toast/index.js +4 -4
- package/dist/cjs/sideeffect/wait-message/index.js +4 -4
- package/dist/cjs/utils/app-config/index.js +4 -4
- package/dist/cjs/utils/app-host-integration/react.js +1 -1
- package/dist/cjs/utils/auth/helper.js +1 -1
- package/dist/cjs/utils/auth/index.js +9 -9
- package/dist/cjs/utils/micro-frontend/console-logger.js +1 -1
- package/dist/cjs/utils/micro-frontend/guest.js +8 -8
- package/dist/cjs/utils/micro-frontend/host.js +14 -14
- package/dist/cjs/utils/micro-frontend/index.js +4 -4
- package/dist/cjs/utils/service-worker.js +2 -2
- package/dist/cjs/utils/session.js +2 -2
- package/dist/cjs/utils/storybook/manager.js +1 -1
- package/dist/cjs/utils/storybook/preview.js +5 -5
- package/dist/cjs/utils/testing/index.js +4 -3
- package/dist/cjs/utils/testing/render-with-redux.js +3 -2
- package/dist/cjs/utils/testing/render-with-router-redux.js +3 -2
- package/dist/cjs/utils/testing/render-with-router.js +1 -0
- package/dist/cjs/utils/testing/render-with-state-addons.js +1 -0
- package/dist/cjs/view/app-root/hosted-app.js +5 -4
- package/dist/cjs/view/app-root/index.js +7 -6
- package/dist/cjs/view/app-root/stand-alone-app.js +8 -7
- package/dist/cjs/view/error-boundary/default-error-template.js +17 -0
- package/dist/cjs/view/error-boundary/index.js +3 -3
- package/dist/cjs/view/error-toast/index.js +3 -2
- package/dist/cjs/view/fetch-host-app-data/index.js +3 -3
- package/dist/cjs/view/fields/check-box/index.js +1 -0
- package/dist/cjs/view/fields/combo-box/index.js +1 -0
- package/dist/cjs/view/fields/date-input/index.js +1 -0
- package/dist/cjs/view/fields/date-picker/index.js +1 -0
- package/dist/cjs/view/fields/form-item-layout/index.js +2 -1
- package/dist/cjs/view/fields/input-mask/index.js +1 -0
- package/dist/cjs/view/fields/large-text-box/index.js +1 -0
- package/dist/cjs/view/fields/radio/index.js +1 -0
- package/dist/cjs/view/fields/radio-group/index.js +1 -0
- package/dist/cjs/view/fields/text-box/index.js +1 -0
- package/dist/cjs/view/fields/watch-value.js +1 -0
- package/dist/cjs/view/form/index.js +1 -0
- package/dist/cjs/view/form/personal-info-section.js +5 -4
- package/dist/cjs/view/form/submit-button/index.js +1 -0
- package/dist/cjs/view/guest-unload-handlers/index.js +1 -1
- package/dist/cjs/view/header/center-region/index.js +1 -0
- package/dist/cjs/view/header/index.js +5 -4
- package/dist/cjs/view/header/logo-region/index.js +1 -0
- package/dist/cjs/view/header/nav-region/index.js +3 -2
- package/dist/cjs/view/header/nav-region/notification/index.js +1 -0
- package/dist/cjs/view/header/nav-region/user/index.js +1 -0
- package/dist/cjs/view/live-message/index.js +2 -1
- package/dist/cjs/view/loadable/index.js +2 -1
- package/dist/cjs/view/login/index.js +4 -3
- package/dist/cjs/view/media-breakpoint/index.js +5 -4
- package/dist/cjs/view/message-to-host-app/index.js +1 -1
- package/dist/cjs/view/micro-app/app-factory/index.js +9 -9
- package/dist/cjs/view/micro-app/index.js +3 -2
- package/dist/cjs/view/micro-app/resources/manifest.js +4 -4
- package/dist/cjs/view/micro-app/resources/script.js +1 -1
- package/dist/cjs/view/micro-app/resources/style.js +1 -1
- package/dist/cjs/view/micro-app/use-app-will-render.js +4 -4
- package/dist/cjs/view/micro-app/utils.js +1 -1
- package/dist/cjs/view/micro-iframe-app/app.js +4 -3
- package/dist/cjs/view/micro-iframe-app/iframe/index.js +2 -1
- package/dist/cjs/view/micro-iframe-app/index.js +3 -2
- package/dist/cjs/view/micro-iframe-app/use-frame-loaded.js +3 -3
- package/dist/cjs/view/modals/error/index.js +1 -0
- package/dist/cjs/view/modals/navigation-prompt/index.js +3 -2
- package/dist/cjs/view/modals/session-expiry/customHooks.js +2 -2
- package/dist/cjs/view/modals/session-expiry/index.js +5 -4
- package/dist/cjs/view/modals/wait-message/html-wait-message.js +1 -0
- package/dist/cjs/view/modals/wait-message/index.js +4 -3
- package/dist/cjs/view/modals/wait-message/wait-message-launcher.js +3 -2
- package/dist/cjs/view/render-with-delay/index.js +1 -0
- package/dist/cjs/view/render-with-host-data/index.js +3 -2
- package/dist/cjs/view/session-timeout/index.js +5 -4
- package/dist/cjs/view/storybook/decorator.js +3 -2
- package/dist/cjs/view/visually-hidden/index.js +1 -0
- package/dist/cjs/view/window-size/index.js +2 -1
- package/dist/es/analytics/index.js +3 -3
- package/dist/es/analytics/page-view-event.js +1 -1
- package/dist/es/analytics/user-session-event.js +2 -2
- package/dist/es/analytics/user-wait-event.js +1 -1
- package/dist/es/api/auth/index.js +1 -1
- package/dist/es/api/users/index.js +1 -1
- package/dist/es/communication/http-client/index.js +5 -5
- package/dist/es/communication/http-client/request-interceptor.js +1 -1
- package/dist/es/communication/http-client/retry.js +1 -1
- package/dist/es/communication/http-client/tests/index.test-disable.js +3 -3
- package/dist/es/data/auth/reducer.js +1 -1
- package/dist/es/data/reducers.js +4 -4
- package/dist/es/data/store.js +1 -1
- package/dist/es/data/wait-message/reducer.js +1 -1
- package/dist/es/index.js +83 -73
- package/dist/es/route/index.js +2 -1
- package/dist/es/route/page-view.js +1 -1
- package/dist/es/route/private-route/index.js +8 -7
- package/dist/es/sideeffect/auth/index.js +4 -4
- package/dist/es/sideeffect/error-toast/index.js +4 -4
- package/dist/es/sideeffect/wait-message/index.js +4 -4
- package/dist/es/utils/app-config/index.js +4 -4
- package/dist/es/utils/app-host-integration/react.js +1 -1
- package/dist/es/utils/auth/helper.js +1 -1
- package/dist/es/utils/auth/index.js +9 -9
- package/dist/es/utils/micro-frontend/console-logger.js +1 -1
- package/dist/es/utils/micro-frontend/guest.js +8 -8
- package/dist/es/utils/micro-frontend/host.js +14 -14
- package/dist/es/utils/micro-frontend/index.js +4 -4
- package/dist/es/utils/service-worker.js +2 -2
- package/dist/es/utils/session.js +2 -2
- package/dist/es/utils/storybook/manager.js +1 -1
- package/dist/es/utils/storybook/preview.js +5 -5
- package/dist/es/utils/testing/index.js +4 -3
- package/dist/es/utils/testing/render-with-redux.js +3 -2
- package/dist/es/utils/testing/render-with-router-redux.js +3 -2
- package/dist/es/utils/testing/render-with-router.js +1 -0
- package/dist/es/utils/testing/render-with-state-addons.js +1 -0
- package/dist/es/view/app-root/hosted-app.js +5 -4
- package/dist/es/view/app-root/index.js +7 -6
- package/dist/es/view/app-root/stand-alone-app.js +8 -7
- package/dist/es/view/error-boundary/default-error-template.js +1 -0
- package/dist/es/view/error-boundary/index.js +3 -3
- package/dist/es/view/error-toast/index.js +3 -2
- package/dist/es/view/fetch-host-app-data/index.js +6 -3
- package/dist/es/view/fields/check-box/index.js +1 -0
- package/dist/es/view/fields/combo-box/index.js +1 -0
- package/dist/es/view/fields/date-input/index.js +1 -0
- package/dist/es/view/fields/date-picker/index.js +1 -0
- package/dist/es/view/fields/form-item-layout/index.js +2 -1
- package/dist/es/view/fields/input-mask/index.js +1 -0
- package/dist/es/view/fields/large-text-box/index.js +1 -0
- package/dist/es/view/fields/radio/index.js +1 -0
- package/dist/es/view/fields/radio-group/index.js +1 -0
- package/dist/es/view/fields/text-box/index.js +1 -0
- package/dist/es/view/fields/watch-value.js +1 -0
- package/dist/es/view/form/index.js +1 -0
- package/dist/es/view/form/personal-info-section.js +5 -4
- package/dist/es/view/form/submit-button/index.js +1 -0
- package/dist/es/view/guest-unload-handlers/index.js +1 -1
- package/dist/es/view/header/center-region/index.js +1 -0
- package/dist/es/view/header/index.js +5 -4
- package/dist/es/view/header/logo-region/index.js +1 -0
- package/dist/es/view/header/nav-region/index.js +3 -2
- package/dist/es/view/header/nav-region/notification/index.js +1 -0
- package/dist/es/view/header/nav-region/user/index.js +1 -0
- package/dist/es/view/live-message/index.js +2 -1
- package/dist/es/view/loadable/index.js +2 -1
- package/dist/es/view/login/index.js +4 -3
- package/dist/es/view/media-breakpoint/index.js +5 -4
- package/dist/es/view/message-to-host-app/index.js +1 -1
- package/dist/es/view/micro-app/app-factory/index.js +12 -9
- package/dist/es/view/micro-app/index.js +3 -2
- package/dist/es/view/micro-app/resources/manifest.js +4 -4
- package/dist/es/view/micro-app/resources/script.js +1 -1
- package/dist/es/view/micro-app/resources/style.js +1 -1
- package/dist/es/view/micro-app/use-app-will-render.js +9 -4
- package/dist/es/view/micro-app/utils.js +1 -1
- package/dist/es/view/micro-iframe-app/app.js +4 -3
- package/dist/es/view/micro-iframe-app/iframe/index.js +2 -1
- package/dist/es/view/micro-iframe-app/index.js +3 -2
- package/dist/es/view/micro-iframe-app/use-frame-loaded.js +3 -3
- package/dist/es/view/modals/error/index.js +1 -0
- package/dist/es/view/modals/navigation-prompt/index.js +3 -2
- package/dist/es/view/modals/session-expiry/customHooks.js +2 -2
- package/dist/es/view/modals/session-expiry/index.js +5 -4
- package/dist/es/view/modals/wait-message/html-wait-message.js +1 -0
- package/dist/es/view/modals/wait-message/index.js +4 -3
- package/dist/es/view/modals/wait-message/wait-message-launcher.js +3 -2
- package/dist/es/view/render-with-delay/index.js +1 -0
- package/dist/es/view/render-with-host-data/index.js +3 -2
- package/dist/es/view/session-timeout/index.js +5 -4
- package/dist/es/view/storybook/decorator.js +3 -2
- package/dist/es/view/visually-hidden/index.js +1 -0
- package/dist/es/view/window-size/index.js +2 -1
- package/dist/types/communication/http-client/retry.d.ts +1 -1
- package/dist/types/data/react-redux.d.ts +11 -11
- package/dist/types/data/reducers.d.ts +6 -6
- package/dist/types/data/store.d.ts +28 -28
- package/dist/types/index.d.ts +79 -79
- package/dist/types/route/private-route/index.d.ts +1 -1
- package/dist/types/sideeffect/auth/index.d.ts +1 -1
- package/dist/types/utils/app-host-integration/react.d.ts +1 -1
- package/dist/types/utils/micro-frontend/guest.d.ts +2 -2
- package/dist/types/utils/micro-frontend/host.d.ts +1 -1
- package/dist/types/utils/micro-frontend/index.d.ts +2 -2
- package/dist/types/utils/testing/render-with-redux.d.ts +19 -19
- package/dist/types/utils/testing/render-with-router-redux.d.ts +19 -19
- package/dist/types/view/app-root/index.d.ts +1 -1
- package/dist/types/view/fields/check-box/index.stories.d.ts +1 -1
- package/dist/types/view/fields/check-box/set-value.stories.d.ts +1 -1
- package/dist/types/view/fields/combo-box/index.stories.d.ts +1 -1
- package/dist/types/view/fields/date-input/index.stories.d.ts +1 -1
- package/dist/types/view/fields/date-picker/index.stories.d.ts +1 -1
- package/dist/types/view/fields/form-item-layout/index.stories.d.ts +1 -1
- package/dist/types/view/fields/input-mask/index.stories.d.ts +1 -1
- package/dist/types/view/fields/large-text-box/index.stories.d.ts +1 -1
- package/dist/types/view/fields/radio/index.stories.d.ts +1 -1
- package/dist/types/view/fields/radio/set-value.stories.d.ts +1 -1
- package/dist/types/view/fields/radio-group/index.stories.d.ts +1 -1
- package/dist/types/view/fields/text-box/index.stories.d.ts +1 -1
- package/dist/types/view/form/usecases.stories.d.ts +1 -1
- package/dist/types/view/header/index.d.ts +1 -1
- package/dist/types/view/header/index.stories.d.ts +1 -1
- package/dist/types/view/micro-app/app-factory/index.d.ts +1 -1
- package/dist/types/view/micro-app/index.d.ts +1 -1
- package/dist/types/view/micro-app/resources/script.d.ts +1 -1
- package/dist/types/view/micro-app/resources/style.d.ts +1 -1
- package/dist/types/view/micro-app/use-app-will-render.d.ts +1 -1
- package/dist/types/view/micro-iframe-app/app.d.ts +2 -2
- package/dist/types/view/micro-iframe-app/index.d.ts +1 -1
- package/dist/types/view/micro-iframe-app/types.d.ts +1 -1
- package/dist/types/view/micro-iframe-app/use-frame-loaded.d.ts +1 -1
- package/dist/types/view/modals/error/index.stories.d.ts +1 -1
- package/dist/types/view/modals/navigation-prompt/index.stories.d.ts +1 -1
- package/dist/types/view/modals/session-expiry/index.stories.d.ts +1 -1
- package/dist/types/view/modals/wait-message/index.stories.d.ts +1 -1
- package/dist/types/view/storybook/decorator.d.ts +1 -1
- package/package.json +2 -2
|
@@ -1,12 +1,13 @@
|
|
|
1
|
+
import * as React from "react";
|
|
1
2
|
import { useCallback } from "react";
|
|
2
3
|
import { useInjectReducer, useInjectSaga } from "redux-injectors";
|
|
3
|
-
import enums from "../../utils/constants";
|
|
4
|
-
import { RenderWithDelay } from "../../view/render-with-delay";
|
|
5
|
-
import { authReducer } from "../../data/auth/reducer";
|
|
6
|
-
import { authentication } from "../../sideeffect/auth";
|
|
7
|
-
import { Login } from "../../view/login";
|
|
8
|
-
import { isUserAuthorized } from "../../utils/auth";
|
|
9
|
-
import { AppRoute } from "../index";
|
|
4
|
+
import enums from "../../utils/constants.js";
|
|
5
|
+
import { RenderWithDelay } from "../../view/render-with-delay/index.js";
|
|
6
|
+
import { authReducer } from "../../data/auth/reducer.js";
|
|
7
|
+
import { authentication } from "../../sideeffect/auth/index.js";
|
|
8
|
+
import { Login } from "../../view/login/index.js";
|
|
9
|
+
import { isUserAuthorized } from "../../utils/auth/index.js";
|
|
10
|
+
import { AppRoute } from "../index.js";
|
|
10
11
|
const key = "auth";
|
|
11
12
|
const PrivateRoute = ({
|
|
12
13
|
component: Component,
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
LOGIN,
|
|
8
8
|
LOGOUT,
|
|
9
9
|
LOGIN_SUCCESS
|
|
10
|
-
} from "../../data/auth/actions";
|
|
11
|
-
import { authorize, endSession } from "../../utils/auth";
|
|
12
|
-
import { getLogger } from "../../utils/micro-frontend";
|
|
13
|
-
import { logRecords } from "../../utils/log-records";
|
|
10
|
+
} from "../../data/auth/actions.js";
|
|
11
|
+
import { authorize, endSession } from "../../utils/auth/index.js";
|
|
12
|
+
import { getLogger } from "../../utils/micro-frontend/index.js";
|
|
13
|
+
import { logRecords } from "../../utils/log-records.js";
|
|
14
14
|
function* login({
|
|
15
15
|
payload
|
|
16
16
|
}) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { call, takeLatest } from "redux-saga/effects";
|
|
2
|
-
import { actions } from "../../data/error";
|
|
3
|
-
import { CMicroAppGuest } from "../../utils/micro-frontend/guest";
|
|
4
|
-
import { getLogger } from "../../utils/micro-frontend";
|
|
5
|
-
import { logRecords } from "../../utils/log-records";
|
|
2
|
+
import { actions } from "../../data/error/index.js";
|
|
3
|
+
import { CMicroAppGuest } from "../../utils/micro-frontend/guest.js";
|
|
4
|
+
import { getLogger } from "../../utils/micro-frontend/index.js";
|
|
5
|
+
import { logRecords } from "../../utils/log-records.js";
|
|
6
6
|
function* openErrorToast(action) {
|
|
7
7
|
try {
|
|
8
8
|
const microApp = yield call(CMicroAppGuest.getInstance.bind(CMicroAppGuest));
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { call, takeLatest } from "redux-saga/effects";
|
|
2
|
-
import { ACTIONS } from "../../data/wait-message/actions";
|
|
3
|
-
import { CMicroAppGuest } from "../../utils/micro-frontend/guest";
|
|
4
|
-
import { getLogger } from "../../utils/micro-frontend";
|
|
5
|
-
import { logRecords } from "../../utils/log-records";
|
|
2
|
+
import { ACTIONS } from "../../data/wait-message/actions.js";
|
|
3
|
+
import { CMicroAppGuest } from "../../utils/micro-frontend/guest.js";
|
|
4
|
+
import { getLogger } from "../../utils/micro-frontend/index.js";
|
|
5
|
+
import { logRecords } from "../../utils/log-records.js";
|
|
6
6
|
function* openWaitMessage() {
|
|
7
7
|
try {
|
|
8
8
|
const microApp = yield call(CMicroAppGuest.getInstance.bind(CMicroAppGuest));
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _ from "lodash";
|
|
2
|
-
import { getHTTPClient } from "../../communication/http-client";
|
|
3
|
-
import { setAppConfig } from "./config";
|
|
4
|
-
import { setAppDynamicsUserData } from "../../analytics/appdynamics";
|
|
5
|
-
import { updateBAEventParameters } from "../../analytics/web-analytics";
|
|
2
|
+
import { getHTTPClient } from "../../communication/http-client/index.js";
|
|
3
|
+
import { setAppConfig } from "./config.js";
|
|
4
|
+
import { setAppDynamicsUserData } from "../../analytics/appdynamics.js";
|
|
5
|
+
import { updateBAEventParameters } from "../../analytics/web-analytics.js";
|
|
6
6
|
const parseAppConfig = (data) => {
|
|
7
7
|
const { activeEnv } = data;
|
|
8
8
|
const activeEnvConfig = data.env[activeEnv] || {};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { browserHistory as history } from "../history";
|
|
1
|
+
import { browserHistory as history } from "../history.js";
|
|
2
2
|
import {
|
|
3
3
|
getToken,
|
|
4
4
|
revokeToken,
|
|
5
5
|
introspectToken
|
|
6
|
-
} from "../../api/auth";
|
|
7
|
-
import { getUser } from "../../api/users";
|
|
8
|
-
import { loginEvent, logoutEvent } from "../../analytics/user-session-event";
|
|
9
|
-
import { setAppDynamicsUserData } from "../../analytics/appdynamics";
|
|
10
|
-
import { getAuthorizationHeader, setAuthorizationHeader } from "./helper";
|
|
11
|
-
import { getAppConfigValue } from "../app-config/config";
|
|
12
|
-
import { getLogger } from "../micro-frontend";
|
|
13
|
-
import { logRecords } from "../log-records";
|
|
6
|
+
} from "../../api/auth/index.js";
|
|
7
|
+
import { getUser } from "../../api/users/index.js";
|
|
8
|
+
import { loginEvent, logoutEvent } from "../../analytics/user-session-event.js";
|
|
9
|
+
import { setAppDynamicsUserData } from "../../analytics/appdynamics.js";
|
|
10
|
+
import { getAuthorizationHeader, setAuthorizationHeader } from "./helper.js";
|
|
11
|
+
import { getAppConfigValue } from "../app-config/config.js";
|
|
12
|
+
import { getLogger } from "../micro-frontend/index.js";
|
|
13
|
+
import { logRecords } from "../log-records.js";
|
|
14
14
|
const IDP_ENDPOINT_CONFIG_KEY = "serviceEndpoints.idp";
|
|
15
15
|
const isUserAuthorized = () => !!getAuthorizationHeader();
|
|
16
16
|
const getIDPInfoFromUrl = () => {
|
|
@@ -2,14 +2,14 @@ import ReactDOM from "react-dom";
|
|
|
2
2
|
import _ from "lodash";
|
|
3
3
|
import ssfGuest from "@elliemae/em-ssf-guest";
|
|
4
4
|
import { getDefaultTheme } from "@elliemae/pui-theme";
|
|
5
|
-
import { getWindow } from "../window";
|
|
6
|
-
import { loadAppConfig } from "../app-config";
|
|
7
|
-
import { getAppConfigValue } from "../app-config/config";
|
|
8
|
-
import { browserHistory } from "../history";
|
|
9
|
-
import { logger } from "./console-logger";
|
|
10
|
-
import { removeStorageEvents } from "../web-storage";
|
|
11
|
-
import { updateBAEventParameters } from "../../analytics/web-analytics";
|
|
12
|
-
import { setAppDynamicsUserData } from "../../analytics/appdynamics";
|
|
5
|
+
import { getWindow } from "../window.js";
|
|
6
|
+
import { loadAppConfig } from "../app-config/index.js";
|
|
7
|
+
import { getAppConfigValue } from "../app-config/config.js";
|
|
8
|
+
import { browserHistory } from "../history.js";
|
|
9
|
+
import { logger } from "./console-logger.js";
|
|
10
|
+
import { removeStorageEvents } from "../web-storage.js";
|
|
11
|
+
import { updateBAEventParameters } from "../../analytics/web-analytics.js";
|
|
12
|
+
import { setAppDynamicsUserData } from "../../analytics/appdynamics.js";
|
|
13
13
|
const isCrossDomain = () => {
|
|
14
14
|
try {
|
|
15
15
|
window.parent.document;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { publish, subscribe, unsubscribe } from "pubsub-js";
|
|
2
2
|
import { getDefaultTheme } from "@elliemae/pui-theme";
|
|
3
|
-
import { getStore } from "../../data/store";
|
|
4
|
-
import { waitMessage } from "../../data/wait-message/actions";
|
|
5
|
-
import { actions as error } from "../../data/error";
|
|
6
|
-
import { logout } from "../../data/logout/actions";
|
|
7
|
-
import { getAppConfigValue } from "../app-config/config";
|
|
8
|
-
import { resetUserIdleTime } from "../session";
|
|
9
|
-
import { loadAppConfig } from "../app-config";
|
|
10
|
-
import { browserHistory } from "../history";
|
|
11
|
-
import { logger } from "./console-logger";
|
|
3
|
+
import { getStore } from "../../data/store.js";
|
|
4
|
+
import { waitMessage } from "../../data/wait-message/actions.js";
|
|
5
|
+
import { actions as error } from "../../data/error/index.js";
|
|
6
|
+
import { logout } from "../../data/logout/actions.js";
|
|
7
|
+
import { getAppConfigValue } from "../app-config/config.js";
|
|
8
|
+
import { resetUserIdleTime } from "../session.js";
|
|
9
|
+
import { loadAppConfig } from "../app-config/index.js";
|
|
10
|
+
import { browserHistory } from "../history.js";
|
|
11
|
+
import { logger } from "./console-logger.js";
|
|
12
12
|
import {
|
|
13
13
|
HOST_WINDOW_RESIZED,
|
|
14
14
|
HOST_WINDOW_BREAKPOINT_CHANGED
|
|
15
|
-
} from "../constants";
|
|
15
|
+
} from "../constants.js";
|
|
16
16
|
import {
|
|
17
17
|
getCurrentBreakpoint,
|
|
18
18
|
getViewportSize as getWindowViewportSize
|
|
19
|
-
} from "../window";
|
|
20
|
-
import { sendBAEvent } from "../../analytics";
|
|
21
|
-
import { setAppDynamicsUserData } from "../../analytics/appdynamics";
|
|
22
|
-
import { updateBAEventParameters } from "../../analytics/web-analytics";
|
|
19
|
+
} from "../window.js";
|
|
20
|
+
import { sendBAEvent } from "../../analytics/index.js";
|
|
21
|
+
import { setAppDynamicsUserData } from "../../analytics/appdynamics.js";
|
|
22
|
+
import { updateBAEventParameters } from "../../analytics/web-analytics.js";
|
|
23
23
|
class CMicroAppHost {
|
|
24
24
|
constructor(params) {
|
|
25
25
|
this.appId = getAppConfigValue("appId");
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _ from "lodash";
|
|
2
|
-
import { CMicroAppGuest } from "./guest";
|
|
3
|
-
import { CMicroAppHost } from "./host";
|
|
4
|
-
import { getAppConfigValue } from "../app-config/config";
|
|
5
|
-
import { convertRelativeToAbsoluteUrl, isCIBuild } from "../helpers";
|
|
2
|
+
import { CMicroAppGuest } from "./guest.js";
|
|
3
|
+
import { CMicroAppHost } from "./host.js";
|
|
4
|
+
import { getAppConfigValue } from "../app-config/config.js";
|
|
5
|
+
import { convertRelativeToAbsoluteUrl, isCIBuild } from "../helpers.js";
|
|
6
6
|
const isHost = () => CMicroAppHost.isInitialized();
|
|
7
7
|
const isGuest = () => CMicroAppGuest.isInitialized();
|
|
8
8
|
const isStandAloneGuest = () => isGuest() && window.top === window.self;
|
package/dist/es/utils/session.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { throttle } from "lodash";
|
|
2
|
-
import { getAppConfigValue } from "./app-config/config";
|
|
3
|
-
import { SESSION_TIMEOUT_INTERVAL } from "./constants";
|
|
2
|
+
import { getAppConfigValue } from "./app-config/config.js";
|
|
3
|
+
import { SESSION_TIMEOUT_INTERVAL } from "./constants.js";
|
|
4
4
|
const THROTTLING_TIME = 6e3;
|
|
5
5
|
let lastUserActivityTimeStamp = Date.now();
|
|
6
6
|
const warnListeners = [];
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { getDefaultTheme } from "@elliemae/pui-theme";
|
|
2
|
-
import { createAppStore } from "../../data/store";
|
|
3
|
-
import { withAppDecorator } from "../../view/storybook/decorator";
|
|
4
|
-
import { loadAppConfig } from "../app-config";
|
|
5
|
-
import { createTheme } from "./theme";
|
|
6
|
-
import { browserHistory } from "../history";
|
|
2
|
+
import { createAppStore } from "../../data/store.js";
|
|
3
|
+
import { withAppDecorator } from "../../view/storybook/decorator.js";
|
|
4
|
+
import { loadAppConfig } from "../app-config/index.js";
|
|
5
|
+
import { createTheme } from "./theme.js";
|
|
6
|
+
import { browserHistory } from "../history.js";
|
|
7
7
|
import "@elliemae/ds-basic/css/dimsum.css";
|
|
8
8
|
(async () => {
|
|
9
9
|
await loadAppConfig(__webpack_public_path__);
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import * as React from "react";
|
|
1
2
|
import { render } from "@testing-library/react";
|
|
2
3
|
import { getDefaultTheme } from "@elliemae/pui-theme";
|
|
3
|
-
import { createAppStore } from "../../data/store";
|
|
4
|
-
import { AppRoot } from "../../view/app-root";
|
|
5
|
-
import { browserHistory } from "../history";
|
|
4
|
+
import { createAppStore } from "../../data/store.js";
|
|
5
|
+
import { AppRoot } from "../../view/app-root/index.js";
|
|
6
|
+
import { browserHistory } from "../history.js";
|
|
6
7
|
const defaultStore = createAppStore({}, browserHistory);
|
|
7
8
|
const defaultTheme = getDefaultTheme();
|
|
8
9
|
const AllTheProviders = ({
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import * as React from "react";
|
|
1
2
|
import { render } from "@testing-library/react";
|
|
2
3
|
import { Provider } from "react-redux";
|
|
3
|
-
import { createAppStore } from "../../data/store";
|
|
4
|
-
import { browserHistory } from "../history";
|
|
4
|
+
import { createAppStore } from "../../data/store.js";
|
|
5
|
+
import { browserHistory } from "../history.js";
|
|
5
6
|
const renderWithRedux = (ui, {
|
|
6
7
|
initialState,
|
|
7
8
|
store = createAppStore(initialState, browserHistory)
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import * as React from "react";
|
|
1
2
|
import { render } from "@testing-library/react";
|
|
2
3
|
import { Provider } from "react-redux";
|
|
3
4
|
import { Router } from "react-router-dom";
|
|
4
5
|
import { createMemoryHistory } from "history";
|
|
5
|
-
import { createAppStore } from "../../data/store";
|
|
6
|
-
import { browserHistory } from "../history";
|
|
6
|
+
import { createAppStore } from "../../data/store.js";
|
|
7
|
+
import { browserHistory } from "../history.js";
|
|
7
8
|
const renderWithRouterRedux = (ui, {
|
|
8
9
|
route = "/",
|
|
9
10
|
history = createMemoryHistory({ initialEntries: [route] }),
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import * as React from "react";
|
|
1
2
|
import styled from "styled-components";
|
|
2
|
-
import { MediaBreakpoint } from "../media-breakpoint";
|
|
3
|
-
import { WindowSize } from "../window-size";
|
|
4
|
-
import { HTMLWaitMessage } from "../modals/wait-message/html-wait-message";
|
|
5
|
-
import GlobalStyle from "./style";
|
|
3
|
+
import { MediaBreakpoint } from "../media-breakpoint/index.js";
|
|
4
|
+
import { WindowSize } from "../window-size/index.js";
|
|
5
|
+
import { HTMLWaitMessage } from "../modals/wait-message/html-wait-message.js";
|
|
6
|
+
import GlobalStyle from "./style.js";
|
|
6
7
|
const Div = styled.div`
|
|
7
8
|
height: 100%;
|
|
8
9
|
`;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
+
import * as React from "react";
|
|
1
2
|
import { Provider } from "react-redux";
|
|
2
3
|
import { ThemeProvider } from "styled-components";
|
|
3
4
|
import { Router } from "react-router-dom";
|
|
4
5
|
import { getDefaultTheme } from "@elliemae/pui-theme";
|
|
5
6
|
import { useInjectSaga } from "redux-injectors";
|
|
6
|
-
import { isStandAloneGuest, isHost } from "../../utils/micro-frontend";
|
|
7
|
-
import { waitMessage } from "../../sideeffect/wait-message";
|
|
8
|
-
import { errorToast } from "../../sideeffect/error-toast";
|
|
9
|
-
import { ErrorBoundary } from "../error-boundary";
|
|
10
|
-
import { StandAloneApp } from "./stand-alone-app";
|
|
11
|
-
import { HostedApp } from "./hosted-app";
|
|
7
|
+
import { isStandAloneGuest, isHost } from "../../utils/micro-frontend/index.js";
|
|
8
|
+
import { waitMessage } from "../../sideeffect/wait-message/index.js";
|
|
9
|
+
import { errorToast } from "../../sideeffect/error-toast/index.js";
|
|
10
|
+
import { ErrorBoundary } from "../error-boundary/index.js";
|
|
11
|
+
import { StandAloneApp } from "./stand-alone-app.js";
|
|
12
|
+
import { HostedApp } from "./hosted-app.js";
|
|
12
13
|
const AppToRender = (props) => {
|
|
13
14
|
useInjectSaga({ key: "waitMessage", saga: waitMessage });
|
|
14
15
|
useInjectSaga({ key: "errorToast", saga: errorToast });
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
+
import * as React from "react";
|
|
1
2
|
import styled from "styled-components";
|
|
2
3
|
import { LiveAnnouncer } from "react-aria-live";
|
|
3
|
-
import { MediaBreakpoint } from "../media-breakpoint";
|
|
4
|
-
import { WindowSize } from "../window-size";
|
|
5
|
-
import { SessionTimeout } from "../session-timeout";
|
|
6
|
-
import { LiveMessage } from "../live-message";
|
|
7
|
-
import { ErrorToast } from "../error-toast";
|
|
8
|
-
import { WaitMessage as DefaultWaitMessage } from "../modals/wait-message";
|
|
9
|
-
import GlobalStyle from "./style";
|
|
4
|
+
import { MediaBreakpoint } from "../media-breakpoint/index.js";
|
|
5
|
+
import { WindowSize } from "../window-size/index.js";
|
|
6
|
+
import { SessionTimeout } from "../session-timeout/index.js";
|
|
7
|
+
import { LiveMessage } from "../live-message/index.js";
|
|
8
|
+
import { ErrorToast } from "../error-toast/index.js";
|
|
9
|
+
import { WaitMessage as DefaultWaitMessage } from "../modals/wait-message/index.js";
|
|
10
|
+
import GlobalStyle from "./style.js";
|
|
10
11
|
const Div = styled.div`
|
|
11
12
|
height: 100%;
|
|
12
13
|
`;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as React from "react";
|
|
1
2
|
const DefaultErrorTemplate = () => /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement("h2", null, "We are unable to process your request"), /* @__PURE__ */ React.createElement("section", null, "Please close your browser and login again"));
|
|
2
3
|
export {
|
|
3
4
|
DefaultErrorTemplate
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import {
|
|
3
3
|
DefaultErrorTemplate
|
|
4
|
-
} from "./default-error-template";
|
|
5
|
-
import { getLogger } from "../../utils/micro-frontend";
|
|
6
|
-
import { logRecords } from "../../utils/log-records";
|
|
4
|
+
} from "./default-error-template.js";
|
|
5
|
+
import { getLogger } from "../../utils/micro-frontend/index.js";
|
|
6
|
+
import { logRecords } from "../../utils/log-records.js";
|
|
7
7
|
class ErrorBoundary extends React.Component {
|
|
8
8
|
constructor(props) {
|
|
9
9
|
super(props);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as React from "react";
|
|
1
2
|
import { useEffect, memo } from "react";
|
|
2
3
|
import {
|
|
3
4
|
ToastPosition,
|
|
@@ -5,8 +6,8 @@ import {
|
|
|
5
6
|
DSToast,
|
|
6
7
|
toast
|
|
7
8
|
} from "@elliemae/ds-basic/Toast";
|
|
8
|
-
import { useAppSelector, useAppDispatch } from "../../data/react-redux";
|
|
9
|
-
import { actions as error } from "../../data/error";
|
|
9
|
+
import { useAppSelector, useAppDispatch } from "../../data/react-redux.js";
|
|
10
|
+
import { actions as error } from "../../data/error/index.js";
|
|
10
11
|
const ErrorToast = memo((props) => {
|
|
11
12
|
const storeError = useAppSelector((state) => state?.error);
|
|
12
13
|
const dispatch = useAppDispatch();
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import _ from "lodash";
|
|
2
|
-
import { isHostAppDataExist, setHostAppData } from "./store";
|
|
3
|
-
import {
|
|
4
|
-
|
|
2
|
+
import { isHostAppDataExist, setHostAppData } from "./store.js";
|
|
3
|
+
import {
|
|
4
|
+
sendMessageToHost,
|
|
5
|
+
getHostAppData
|
|
6
|
+
} from "../message-to-host-app/index.js";
|
|
7
|
+
import { bindEvent } from "../host-binding-events/index.js";
|
|
5
8
|
const fetchHostAppData = (hostedAppUrl, guestAppId) => {
|
|
6
9
|
const isDataExist = isHostAppDataExist();
|
|
7
10
|
return new Promise((resolve) => {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
1
2
|
import DSFormItemLayout from "@elliemae/ds-basic/form/FormItem";
|
|
2
3
|
import { get } from "react-hook-form";
|
|
3
|
-
import { ConnectForm } from "../connect-form";
|
|
4
|
+
import { ConnectForm } from "../connect-form.js";
|
|
4
5
|
const FormItemLayout = ({
|
|
5
6
|
name,
|
|
6
7
|
...rest
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import * as React from "react";
|
|
1
2
|
import moment from "moment";
|
|
2
|
-
import { TextBox } from "../fields/text-box";
|
|
3
|
-
import { ComboBox } from "../fields/combo-box";
|
|
4
|
-
import { DateInput } from "../fields/date-input";
|
|
5
|
-
import { FormItemLayout } from "../fields/form-item-layout";
|
|
3
|
+
import { TextBox } from "../fields/text-box/index.js";
|
|
4
|
+
import { ComboBox } from "../fields/combo-box/index.js";
|
|
5
|
+
import { DateInput } from "../fields/date-input/index.js";
|
|
6
|
+
import { FormItemLayout } from "../fields/form-item-layout/index.js";
|
|
6
7
|
const FirstName = () => /* @__PURE__ */ React.createElement(FormItemLayout, {
|
|
7
8
|
floatingLabel: true,
|
|
8
9
|
inputComponent: TextBox,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { sendMessageToHost } from "../message-to-host-app";
|
|
1
|
+
import { sendMessageToHost } from "../message-to-host-app/index.js";
|
|
2
2
|
const onGuestUnloadStart = () => new Promise((resolve) => {
|
|
3
3
|
window.addEventListener("message", (msg) => {
|
|
4
4
|
if (msg.data.id === "unload-guest" || msg.data.id === "close_loan") {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import * as React from "react";
|
|
1
2
|
import styled from "styled-components";
|
|
2
|
-
import { isStandAloneGuest, isHost } from "../../utils/micro-frontend";
|
|
3
|
-
import { LogoRegion } from "./logo-region";
|
|
4
|
-
import { CenterRegion } from "./center-region";
|
|
5
|
-
import { NavRegion } from "./nav-region";
|
|
3
|
+
import { isStandAloneGuest, isHost } from "../../utils/micro-frontend/index.js";
|
|
4
|
+
import { LogoRegion } from "./logo-region/index.js";
|
|
5
|
+
import { CenterRegion } from "./center-region/index.js";
|
|
6
|
+
import { NavRegion } from "./nav-region/index.js";
|
|
6
7
|
const HeaderContainer = styled.header`
|
|
7
8
|
display: flex;
|
|
8
9
|
height: 56px;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
1
2
|
import styled from "styled-components";
|
|
2
|
-
import { Notification } from "./notification";
|
|
3
|
-
import { User } from "./user";
|
|
3
|
+
import { Notification } from "./notification/index.js";
|
|
4
|
+
import { User } from "./user/index.js";
|
|
4
5
|
const NavContainer = styled.nav`
|
|
5
6
|
display: flex;
|
|
6
7
|
margin: 0;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import * as React from "react";
|
|
1
2
|
import { LiveMessage as AriaLiveMessage } from "react-aria-live";
|
|
2
|
-
import { useAppSelector } from "../../data/react-redux";
|
|
3
|
+
import { useAppSelector } from "../../data/react-redux.js";
|
|
3
4
|
const LiveMessage = () => {
|
|
4
5
|
const message = useAppSelector((state) => state.liveMessage?.message);
|
|
5
6
|
const id = useAppSelector((state) => state.liveMessage?.id);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import * as React from "react";
|
|
1
2
|
import { lazy, Suspense } from "react";
|
|
2
|
-
import { WaitMessageLauncher } from "../modals/wait-message/wait-message-launcher";
|
|
3
|
+
import { WaitMessageLauncher } from "../modals/wait-message/wait-message-launcher.js";
|
|
3
4
|
const loadable = (importFunc, fallback = /* @__PURE__ */ React.createElement(WaitMessageLauncher, null)) => {
|
|
4
5
|
const LazyComponent = lazy(importFunc);
|
|
5
6
|
return (props) => /* @__PURE__ */ React.createElement(Suspense, {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import * as React from "react";
|
|
1
2
|
import { useEffect } from "react";
|
|
2
|
-
import { useAppDispatch } from "../../data/react-redux";
|
|
3
|
-
import { login } from "../../utils/auth";
|
|
4
|
-
import { LOGIN_SUCCESS } from "../../data/auth/actions";
|
|
3
|
+
import { useAppDispatch } from "../../data/react-redux.js";
|
|
4
|
+
import { login } from "../../utils/auth/index.js";
|
|
5
|
+
import { LOGIN_SUCCESS } from "../../data/auth/actions.js";
|
|
5
6
|
const Login = ({
|
|
6
7
|
clientId,
|
|
7
8
|
scope,
|