@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,10 +1,11 @@
|
|
|
1
|
+
import * as React from "react";
|
|
1
2
|
import { useEffect, useContext } from "react";
|
|
2
3
|
import { ThemeContext } from "styled-components";
|
|
3
4
|
import { publish } from "pubsub-js";
|
|
4
|
-
import { useAppDispatch } from "../../data/react-redux";
|
|
5
|
-
import { breakpoint } from "../../data/breakpoint";
|
|
6
|
-
import { useMediaBreakpoints } from "../useMediaBreakpoints";
|
|
7
|
-
import { HOST_WINDOW_BREAKPOINT_CHANGED } from "../../utils/constants";
|
|
5
|
+
import { useAppDispatch } from "../../data/react-redux.js";
|
|
6
|
+
import { breakpoint } from "../../data/breakpoint/index.js";
|
|
7
|
+
import { useMediaBreakpoints } from "../useMediaBreakpoints/index.js";
|
|
8
|
+
import { HOST_WINDOW_BREAKPOINT_CHANGED } from "../../utils/constants.js";
|
|
8
9
|
const MediaBreakpoint = () => {
|
|
9
10
|
const theme = useContext(ThemeContext);
|
|
10
11
|
const currentBreakpoint = useMediaBreakpoints([
|
|
@@ -1,22 +1,25 @@
|
|
|
1
|
-
import { persistentStorage } from "../../../utils/web-storage";
|
|
2
|
-
import { CMicroAppHost } from "../../../utils/micro-frontend/host";
|
|
3
|
-
import { getLogger } from "../../../utils/micro-frontend";
|
|
4
|
-
import { logRecords } from "../../../utils/log-records";
|
|
5
|
-
import { APP_CONTAINER_ID_PREFIX } from "../const";
|
|
6
|
-
import {
|
|
1
|
+
import { persistentStorage } from "../../../utils/web-storage.js";
|
|
2
|
+
import { CMicroAppHost } from "../../../utils/micro-frontend/host.js";
|
|
3
|
+
import { getLogger } from "../../../utils/micro-frontend/index.js";
|
|
4
|
+
import { logRecords } from "../../../utils/log-records.js";
|
|
5
|
+
import { APP_CONTAINER_ID_PREFIX } from "../const.js";
|
|
6
|
+
import {
|
|
7
|
+
getCurrentBreakpoint,
|
|
8
|
+
getViewportSize
|
|
9
|
+
} from "../../../utils/window.js";
|
|
7
10
|
import {
|
|
8
11
|
addStylesToDOM,
|
|
9
12
|
removeDynamicImportedStyles
|
|
10
|
-
} from "../resources/style";
|
|
13
|
+
} from "../resources/style.js";
|
|
11
14
|
import {
|
|
12
15
|
addScriptToDOM,
|
|
13
16
|
removeDynamicImportedScripts,
|
|
14
17
|
removePrefetchLinks
|
|
15
|
-
} from "../resources/script";
|
|
18
|
+
} from "../resources/script.js";
|
|
16
19
|
import {
|
|
17
20
|
getAppManifest,
|
|
18
21
|
getFullFileNameofAssetsFromManifest
|
|
19
|
-
} from "../resources/manifest";
|
|
22
|
+
} from "../resources/manifest.js";
|
|
20
23
|
const cssType = new RegExp(/\.css$/);
|
|
21
24
|
const isCss = (fileName) => cssType.test(fileName);
|
|
22
25
|
const activeApps = {};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import * as React from "react";
|
|
1
2
|
import { memo } from "react";
|
|
2
3
|
import styled from "styled-components";
|
|
3
|
-
import { APP_CONTAINER_ID_PREFIX } from "./const";
|
|
4
|
-
import { useAppWillRender } from "./use-app-will-render";
|
|
4
|
+
import { APP_CONTAINER_ID_PREFIX } from "./const.js";
|
|
5
|
+
import { useAppWillRender } from "./use-app-will-render.js";
|
|
5
6
|
const Div = styled.div`
|
|
6
7
|
height: 100%;
|
|
7
8
|
width: 100%;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { getHTTPClient } from "../../../communication/http-client";
|
|
2
|
-
import { removeDoubleSlash } from "../../../utils/url";
|
|
3
|
-
import { getLogger } from "../../../utils/micro-frontend";
|
|
4
|
-
import { logRecords } from "../../../utils/log-records";
|
|
1
|
+
import { getHTTPClient } from "../../../communication/http-client/index.js";
|
|
2
|
+
import { removeDoubleSlash } from "../../../utils/url.js";
|
|
3
|
+
import { getLogger } from "../../../utils/micro-frontend/index.js";
|
|
4
|
+
import { logRecords } from "../../../utils/log-records.js";
|
|
5
5
|
const getUnVersionedManifestPath = (path) => path.replace(/\/\d+\.\d+/, "/latest");
|
|
6
6
|
const getAppManifest = async ({
|
|
7
7
|
hostUrl,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { removeDoubleSlash } from "../../../utils/url";
|
|
1
|
+
import { removeDoubleSlash } from "../../../utils/url.js";
|
|
2
2
|
const APP_SCRIPT_ID_PREFIX = "emui-script-";
|
|
3
3
|
const HEAD_SCRIPTS = new RegExp("/(?:emuiDiagnostics|global|global-prod|emuiUserMonitoring)(?:..*)?.js", "i");
|
|
4
4
|
const isHeadScript = (scriptSrc) => HEAD_SCRIPTS.test(scriptSrc);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { removeDoubleSlash } from "../../../utils/url";
|
|
1
|
+
import { removeDoubleSlash } from "../../../utils/url.js";
|
|
2
2
|
const APP_STYLE_ID_PREFIX = "emui-style-";
|
|
3
3
|
const addStylesToDOM = ({ name, hostUrl, documentEle }, fileName, index) => new Promise((resolve, reject) => {
|
|
4
4
|
const ele = documentEle.createElement("link");
|
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
import { useRef, useLayoutEffect, useCallback } from "react";
|
|
2
2
|
import { merge } from "lodash";
|
|
3
3
|
import { useDispatch } from "react-redux";
|
|
4
|
-
import { waitMessage } from "../../data/wait-message/actions";
|
|
5
|
-
import {
|
|
4
|
+
import { waitMessage } from "../../data/wait-message/actions.js";
|
|
5
|
+
import {
|
|
6
|
+
loadApp,
|
|
7
|
+
unloadApp,
|
|
8
|
+
mountApp,
|
|
9
|
+
unmountApp
|
|
10
|
+
} from "./app-factory/index.js";
|
|
6
11
|
import {
|
|
7
12
|
getLogger,
|
|
8
13
|
getMicroFrontEndAppConfig
|
|
9
|
-
} from "../../utils/micro-frontend";
|
|
10
|
-
import { logRecords } from "../../utils/log-records";
|
|
14
|
+
} from "../../utils/micro-frontend/index.js";
|
|
15
|
+
import { logRecords } from "../../utils/log-records.js";
|
|
11
16
|
const useAppWillRender = ({
|
|
12
17
|
id,
|
|
13
18
|
documentEle,
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import * as React from "react";
|
|
1
2
|
import { memo, useState } from "react";
|
|
2
3
|
import frameHtml from "file-loader?name=iframe.[contenthash].[ext]!./iframe/index.html";
|
|
3
|
-
import { IFrame } from "./iframe";
|
|
4
|
-
import { useFrameLoaded } from "./use-frame-loaded";
|
|
4
|
+
import { IFrame } from "./iframe/index.js";
|
|
5
|
+
import { useFrameLoaded } from "./use-frame-loaded.js";
|
|
5
6
|
import {
|
|
6
7
|
useAppWillRender
|
|
7
|
-
} from "../micro-app/use-app-will-render";
|
|
8
|
+
} from "../micro-app/use-app-will-render.js";
|
|
8
9
|
const App = memo(({ id, dispose, onUnloadComplete, ...rest }) => {
|
|
9
10
|
const [documentEle, setDocumentEle] = useState(null);
|
|
10
11
|
useFrameLoaded({ id, documentEle, ...rest });
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
1
2
|
import { memo, useRef } from "react";
|
|
2
3
|
import styled from "styled-components";
|
|
3
|
-
import { IFRAME_CONTAINER_ID_PREFIX } from "./const";
|
|
4
|
+
import { IFRAME_CONTAINER_ID_PREFIX } from "./const.js";
|
|
4
5
|
const Div = styled.div`
|
|
5
6
|
display: flex;
|
|
6
7
|
width: 100%;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
1
2
|
import { useEffect, useState, memo } from "react";
|
|
2
|
-
import { usePrevious } from "../use-previous";
|
|
3
|
-
import { App } from "./app";
|
|
3
|
+
import { usePrevious } from "../use-previous.js";
|
|
4
|
+
import { App } from "./app.js";
|
|
4
5
|
const MicroIFrameApp = memo(({ entityId = null, ...rest }) => {
|
|
5
6
|
const [disposePrevApp, setDisposePrevApp] = useState(false);
|
|
6
7
|
const [appKey, setAppKey] = useState(Date.now());
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useEffect } from "react";
|
|
2
|
-
import { trackActivity } from "../../utils/session";
|
|
3
|
-
import { CMicroAppHost } from "../../utils/micro-frontend/host";
|
|
4
|
-
import { getMicroFrontEndAppConfig } from "../../utils/micro-frontend";
|
|
2
|
+
import { trackActivity } from "../../utils/session.js";
|
|
3
|
+
import { CMicroAppHost } from "../../utils/micro-frontend/host.js";
|
|
4
|
+
import { getMicroFrontEndAppConfig } from "../../utils/micro-frontend/index.js";
|
|
5
5
|
const addBaseTag = (id, documentEle) => {
|
|
6
6
|
const { hostUrl, manifestPath } = getMicroFrontEndAppConfig({
|
|
7
7
|
id
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import * as React from "react";
|
|
1
2
|
import { memo } from "react";
|
|
2
3
|
import DSModal, { MODAL_TYPE } from "@elliemae/ds-modal";
|
|
3
|
-
import { useAppDispatch } from "../../../data/react-redux";
|
|
4
|
-
import { navigationPrompt } from "../../../data/navigation-prompt/actions";
|
|
4
|
+
import { useAppDispatch } from "../../../data/react-redux.js";
|
|
5
|
+
import { navigationPrompt } from "../../../data/navigation-prompt/actions.js";
|
|
5
6
|
const NavigationPrompt = memo(({ open, showHeader = false }) => {
|
|
6
7
|
const dispatch = useAppDispatch();
|
|
7
8
|
return /* @__PURE__ */ React.createElement(DSModal, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useEffect, useState } from "react";
|
|
2
2
|
import { getSeconds, differenceInMinutes } from "date-fns";
|
|
3
|
-
import { SESSION_TIMEOUT_INTERVAL } from "../../../utils/constants";
|
|
4
|
-
import { getAppConfigValue } from "../../../utils/app-config/config";
|
|
3
|
+
import { SESSION_TIMEOUT_INTERVAL } from "../../../utils/constants.js";
|
|
4
|
+
import { getAppConfigValue } from "../../../utils/app-config/config.js";
|
|
5
5
|
const useTrackSessionExpiry = (warningNotifiedAt) => {
|
|
6
6
|
const [timeData, setTimeData] = useState();
|
|
7
7
|
useEffect(() => {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import * as React from "react";
|
|
1
2
|
import { memo, useState } from "react";
|
|
2
3
|
import DSModal, { MODAL_SUB_TYPE_V2, MODAL_TYPE_V2 } from "@elliemae/ds-modal";
|
|
3
|
-
import { useAppDispatch } from "../../../data/react-redux";
|
|
4
|
-
import { logout } from "../../../data/logout/actions";
|
|
5
|
-
import { resetUserIdleTime } from "../../../utils/session";
|
|
6
|
-
import { useTrackSessionExpiry } from "./customHooks";
|
|
4
|
+
import { useAppDispatch } from "../../../data/react-redux.js";
|
|
5
|
+
import { logout } from "../../../data/logout/actions.js";
|
|
6
|
+
import { resetUserIdleTime } from "../../../utils/session.js";
|
|
7
|
+
import { useTrackSessionExpiry } from "./customHooks.js";
|
|
7
8
|
const SessionExpiry = memo(({ open, warningNotifiedAt = 0, showHeader = false }) => {
|
|
8
9
|
const [isOpen, setIsOpen] = useState(open);
|
|
9
10
|
const timeLeft = useTrackSessionExpiry(warningNotifiedAt);
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
+
import * as React from "react";
|
|
1
2
|
import { memo, useEffect } from "react";
|
|
2
3
|
import DSLoadingIndicator from "@elliemae/ds-basic/LoadingIndicator";
|
|
3
|
-
import { useAppSelector } from "../../../data/react-redux";
|
|
4
|
-
import { HTMLWaitMessage } from "./html-wait-message";
|
|
4
|
+
import { useAppSelector } from "../../../data/react-redux.js";
|
|
5
|
+
import { HTMLWaitMessage } from "./html-wait-message.js";
|
|
5
6
|
import {
|
|
6
7
|
waitStartEvent,
|
|
7
8
|
waitEndEvent
|
|
8
|
-
} from "../../../analytics/user-wait-event";
|
|
9
|
+
} from "../../../analytics/user-wait-event.js";
|
|
9
10
|
const WaitMessage = memo(({
|
|
10
11
|
size = "m",
|
|
11
12
|
style = { color: "white", fontSize: "1.25rem" },
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
1
2
|
import { useEffect } from "react";
|
|
2
|
-
import { useAppDispatch } from "../../../data/react-redux";
|
|
3
|
-
import { waitMessage } from "../../../data/wait-message/actions";
|
|
3
|
+
import { useAppDispatch } from "../../../data/react-redux.js";
|
|
4
|
+
import { waitMessage } from "../../../data/wait-message/actions.js";
|
|
4
5
|
const WaitMessageLauncher = () => {
|
|
5
6
|
const dispatch = useAppDispatch();
|
|
6
7
|
useEffect(() => {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
1
2
|
import { useState, useEffect } from "react";
|
|
2
|
-
import { fetchHostAppData } from "../fetch-host-app-data";
|
|
3
|
-
import { WaitMessageLauncher } from "../modals/wait-message/wait-message-launcher";
|
|
3
|
+
import { fetchHostAppData } from "../fetch-host-app-data/index.js";
|
|
4
|
+
import { WaitMessageLauncher } from "../modals/wait-message/wait-message-launcher.js";
|
|
4
5
|
const renderWithHostData = (data) => {
|
|
5
6
|
const {
|
|
6
7
|
ComponentToRender,
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
+
import * as React from "react";
|
|
1
2
|
import { useEffect, useState } from "react";
|
|
2
|
-
import { useAppDispatch } from "../../data/react-redux";
|
|
3
|
-
import { logout } from "../../data/logout/actions";
|
|
3
|
+
import { useAppDispatch } from "../../data/react-redux.js";
|
|
4
|
+
import { logout } from "../../data/logout/actions.js";
|
|
4
5
|
import {
|
|
5
6
|
initSessionMonitoring,
|
|
6
7
|
stopSessionMonitoring,
|
|
7
8
|
subscribeToSessionExpiryWarning,
|
|
8
9
|
subscribeToResetSession,
|
|
9
10
|
subscribeToSessionExpiry
|
|
10
|
-
} from "../../utils/session";
|
|
11
|
-
import { SessionExpiry } from "../modals/session-expiry";
|
|
11
|
+
} from "../../utils/session.js";
|
|
12
|
+
import { SessionExpiry } from "../modals/session-expiry/index.js";
|
|
12
13
|
const SessionTimeout = () => {
|
|
13
14
|
const dispatch = useAppDispatch();
|
|
14
15
|
const [showSessionExpiryWarning, setSessionExpiryWarning] = useState(false);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { browserHistory } from "../../utils/history.js";
|
|
3
|
+
import { AppRoot } from "../app-root/index.js";
|
|
3
4
|
const withAppDecorator = (theme, store, story) => /* @__PURE__ */ React.createElement(AppRoot, {
|
|
4
5
|
store,
|
|
5
6
|
history: browserHistory,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
1
2
|
import { useEffect } from "react";
|
|
2
3
|
import { publish } from "pubsub-js";
|
|
3
|
-
import { HOST_WINDOW_RESIZED } from "../../utils/constants";
|
|
4
|
+
import { HOST_WINDOW_RESIZED } from "../../utils/constants.js";
|
|
4
5
|
const WindowSize = () => {
|
|
5
6
|
useEffect(() => {
|
|
6
7
|
if (window.ResizeObserver) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AxiosInstance } from 'axios';
|
|
2
|
-
import { RetryConfig } from './retry-axios';
|
|
2
|
+
import { RetryConfig } from './retry-axios.js';
|
|
3
3
|
export declare const getRaxConfig: (httpClient: AxiosInstance) => Partial<RetryConfig>;
|
|
4
4
|
declare const setupRetry: (httpClient: AxiosInstance) => void;
|
|
5
5
|
export default setupRetry;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { TypedUseSelectorHook } from 'react-redux';
|
|
2
|
-
import { RootState } from './store';
|
|
2
|
+
import { RootState } from './store.js';
|
|
3
3
|
export declare const useAppDispatch: () => import("redux-thunk").ThunkDispatch<import("redux").CombinedState<{
|
|
4
|
-
waitMessage: import("./wait-message/reducer").WaitMessageState;
|
|
5
|
-
error: import("./error").ErrorState;
|
|
6
|
-
breakpoint: import("./breakpoint").BreakpointState;
|
|
7
|
-
liveMessage: import("./live-message").LiveMessageState;
|
|
4
|
+
waitMessage: import("./wait-message/reducer.js").WaitMessageState;
|
|
5
|
+
error: import("./error/index.js").ErrorState;
|
|
6
|
+
breakpoint: import("./breakpoint/index.js").BreakpointState;
|
|
7
|
+
liveMessage: import("./live-message/index.js").LiveMessageState;
|
|
8
8
|
}>, null, import("redux").AnyAction> & import("redux-thunk").ThunkDispatch<import("redux").CombinedState<{
|
|
9
|
-
waitMessage: import("./wait-message/reducer").WaitMessageState;
|
|
10
|
-
error: import("./error").ErrorState;
|
|
11
|
-
breakpoint: import("./breakpoint").BreakpointState;
|
|
12
|
-
liveMessage: import("./live-message").LiveMessageState;
|
|
9
|
+
waitMessage: import("./wait-message/reducer.js").WaitMessageState;
|
|
10
|
+
error: import("./error/index.js").ErrorState;
|
|
11
|
+
breakpoint: import("./breakpoint/index.js").BreakpointState;
|
|
12
|
+
liveMessage: import("./live-message/index.js").LiveMessageState;
|
|
13
13
|
}>, undefined, import("redux").AnyAction> & import("redux").Dispatch<{
|
|
14
|
-
payload: import("./wait-message/reducer").WaitMessageState;
|
|
14
|
+
payload: import("./wait-message/reducer.js").WaitMessageState;
|
|
15
15
|
type: string;
|
|
16
16
|
} | import("redux").AnyAction | {
|
|
17
|
-
payload: import("./breakpoint").Breakpoints;
|
|
17
|
+
payload: import("./breakpoint/index.js").Breakpoints;
|
|
18
18
|
type: string;
|
|
19
19
|
}>;
|
|
20
20
|
export declare const useAppSelector: TypedUseSelectorHook<RootState>;
|
|
@@ -3,14 +3,14 @@ export declare type InjectedReducers = {
|
|
|
3
3
|
[x: string]: Reducer<any, Action>;
|
|
4
4
|
};
|
|
5
5
|
export declare const createReducer: (injectedReducers?: InjectedReducers) => Reducer<import("redux").CombinedState<{
|
|
6
|
-
waitMessage: import("./wait-message/reducer").WaitMessageState;
|
|
7
|
-
error: import("./error").ErrorState;
|
|
8
|
-
breakpoint: import("./breakpoint").BreakpointState;
|
|
9
|
-
liveMessage: import("./live-message").LiveMessageState;
|
|
6
|
+
waitMessage: import("./wait-message/reducer.js").WaitMessageState;
|
|
7
|
+
error: import("./error/index.js").ErrorState;
|
|
8
|
+
breakpoint: import("./breakpoint/index.js").BreakpointState;
|
|
9
|
+
liveMessage: import("./live-message/index.js").LiveMessageState;
|
|
10
10
|
}>, {
|
|
11
|
-
payload: import("./wait-message/reducer").WaitMessageState;
|
|
11
|
+
payload: import("./wait-message/reducer.js").WaitMessageState;
|
|
12
12
|
type: string;
|
|
13
13
|
} | import("redux").AnyAction | {
|
|
14
|
-
payload: import("./breakpoint").Breakpoints;
|
|
14
|
+
payload: import("./breakpoint/index.js").Breakpoints;
|
|
15
15
|
type: string;
|
|
16
16
|
}>;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { History } from 'history';
|
|
2
2
|
declare const rootReducer: import("redux").Reducer<import("redux").CombinedState<{
|
|
3
|
-
waitMessage: import("./wait-message/reducer").WaitMessageState;
|
|
4
|
-
error: import("./error").ErrorState;
|
|
5
|
-
breakpoint: import("./breakpoint").BreakpointState;
|
|
6
|
-
liveMessage: import("./live-message").LiveMessageState;
|
|
3
|
+
waitMessage: import("./wait-message/reducer.js").WaitMessageState;
|
|
4
|
+
error: import("./error/index.js").ErrorState;
|
|
5
|
+
breakpoint: import("./breakpoint/index.js").BreakpointState;
|
|
6
|
+
liveMessage: import("./live-message/index.js").LiveMessageState;
|
|
7
7
|
}>, {
|
|
8
|
-
payload: import("./wait-message/reducer").WaitMessageState;
|
|
8
|
+
payload: import("./wait-message/reducer.js").WaitMessageState;
|
|
9
9
|
type: string;
|
|
10
10
|
} | import("redux").AnyAction | {
|
|
11
|
-
payload: import("./breakpoint").Breakpoints;
|
|
11
|
+
payload: import("./breakpoint/index.js").Breakpoints;
|
|
12
12
|
type: string;
|
|
13
13
|
}>;
|
|
14
14
|
export declare type RootState = ReturnType<typeof rootReducer>;
|
|
@@ -18,36 +18,36 @@ declare type MiddlewareConfig = {
|
|
|
18
18
|
thunk: boolean;
|
|
19
19
|
};
|
|
20
20
|
export declare const createAppStore: (initialState: import("redux").CombinedState<{
|
|
21
|
-
waitMessage: import("./wait-message/reducer").WaitMessageState;
|
|
22
|
-
error: import("./error").ErrorState;
|
|
23
|
-
breakpoint: import("./breakpoint").BreakpointState;
|
|
24
|
-
liveMessage: import("./live-message").LiveMessageState;
|
|
21
|
+
waitMessage: import("./wait-message/reducer.js").WaitMessageState;
|
|
22
|
+
error: import("./error/index.js").ErrorState;
|
|
23
|
+
breakpoint: import("./breakpoint/index.js").BreakpointState;
|
|
24
|
+
liveMessage: import("./live-message/index.js").LiveMessageState;
|
|
25
25
|
}> | undefined, history: History, middlewareConfig?: MiddlewareConfig | undefined) => import("@reduxjs/toolkit").EnhancedStore<import("redux").CombinedState<{
|
|
26
|
-
waitMessage: import("./wait-message/reducer").WaitMessageState;
|
|
27
|
-
error: import("./error").ErrorState;
|
|
28
|
-
breakpoint: import("./breakpoint").BreakpointState;
|
|
29
|
-
liveMessage: import("./live-message").LiveMessageState;
|
|
26
|
+
waitMessage: import("./wait-message/reducer.js").WaitMessageState;
|
|
27
|
+
error: import("./error/index.js").ErrorState;
|
|
28
|
+
breakpoint: import("./breakpoint/index.js").BreakpointState;
|
|
29
|
+
liveMessage: import("./live-message/index.js").LiveMessageState;
|
|
30
30
|
}>, {
|
|
31
|
-
payload: import("./wait-message/reducer").WaitMessageState;
|
|
31
|
+
payload: import("./wait-message/reducer.js").WaitMessageState;
|
|
32
32
|
type: string;
|
|
33
33
|
} | import("redux").AnyAction | {
|
|
34
|
-
payload: import("./breakpoint").Breakpoints;
|
|
34
|
+
payload: import("./breakpoint/index.js").Breakpoints;
|
|
35
35
|
type: string;
|
|
36
36
|
}, import("@reduxjs/toolkit").MiddlewareArray<import("redux-saga").SagaMiddleware<object> | import("redux-thunk").ThunkMiddleware<import("redux").CombinedState<{
|
|
37
|
-
waitMessage: import("./wait-message/reducer").WaitMessageState;
|
|
38
|
-
error: import("./error").ErrorState;
|
|
39
|
-
breakpoint: import("./breakpoint").BreakpointState;
|
|
40
|
-
liveMessage: import("./live-message").LiveMessageState;
|
|
37
|
+
waitMessage: import("./wait-message/reducer.js").WaitMessageState;
|
|
38
|
+
error: import("./error/index.js").ErrorState;
|
|
39
|
+
breakpoint: import("./breakpoint/index.js").BreakpointState;
|
|
40
|
+
liveMessage: import("./live-message/index.js").LiveMessageState;
|
|
41
41
|
}>, import("redux").AnyAction, null> | import("redux-thunk").ThunkMiddleware<import("redux").CombinedState<{
|
|
42
|
-
waitMessage: import("./wait-message/reducer").WaitMessageState;
|
|
43
|
-
error: import("./error").ErrorState;
|
|
44
|
-
breakpoint: import("./breakpoint").BreakpointState;
|
|
45
|
-
liveMessage: import("./live-message").LiveMessageState;
|
|
42
|
+
waitMessage: import("./wait-message/reducer.js").WaitMessageState;
|
|
43
|
+
error: import("./error/index.js").ErrorState;
|
|
44
|
+
breakpoint: import("./breakpoint/index.js").BreakpointState;
|
|
45
|
+
liveMessage: import("./live-message/index.js").LiveMessageState;
|
|
46
46
|
}>, import("redux").AnyAction, undefined> | import("redux").Middleware<{}, import("redux").CombinedState<{
|
|
47
|
-
waitMessage: import("./wait-message/reducer").WaitMessageState;
|
|
48
|
-
error: import("./error").ErrorState;
|
|
49
|
-
breakpoint: import("./breakpoint").BreakpointState;
|
|
50
|
-
liveMessage: import("./live-message").LiveMessageState;
|
|
47
|
+
waitMessage: import("./wait-message/reducer.js").WaitMessageState;
|
|
48
|
+
error: import("./error/index.js").ErrorState;
|
|
49
|
+
breakpoint: import("./breakpoint/index.js").BreakpointState;
|
|
50
|
+
liveMessage: import("./live-message/index.js").LiveMessageState;
|
|
51
51
|
}>, import("redux").Dispatch<import("redux").AnyAction>>>>;
|
|
52
52
|
export declare type AppStore = ReturnType<typeof createAppStore>;
|
|
53
53
|
export declare type AppDispatch = AppStore['dispatch'];
|