@elliemae/pui-app-sdk 3.0.0-beta.1 → 3.0.0-beta.10
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 +13 -4
- 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/api/users/users.json +8 -0
- package/dist/cjs/app.config.json +129 -0
- 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/index.js +34 -0
- package/dist/cjs/data/reducers.js +4 -4
- package/dist/cjs/data/store.js +2 -3
- package/dist/cjs/data/wait-message/reducer.js +1 -1
- package/dist/cjs/index.js +74 -72
- package/dist/cjs/index.pug +15 -0
- package/dist/cjs/micro-frontend.js +33 -0
- 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/{main.js → cjs/main.js} +11 -3
- package/dist/cjs/utils/storybook/{middleware.js → cjs/middleware.js} +0 -0
- package/dist/cjs/utils/storybook/{vite.js → cjs/vite.js} +0 -0
- package/dist/cjs/utils/storybook/{webpack.js → cjs/webpack.js} +9 -1
- package/dist/cjs/utils/storybook/manager.js +1 -1
- package/dist/cjs/utils/storybook/preview.js +7 -8
- 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 +8 -7
- package/dist/cjs/view/fetch-host-app-data/index.js +3 -3
- package/dist/cjs/view/fields/check-box/index.js +2 -1
- package/dist/cjs/view/fields/combo-box/index.js +2 -1
- package/dist/cjs/view/fields/date-input/index.js +2 -1
- package/dist/cjs/view/fields/date-picker/index.js +1 -0
- package/dist/cjs/view/fields/form-item-layout/index.js +3 -2
- package/dist/cjs/view/fields/input-mask/index.js +2 -1
- package/dist/cjs/view/fields/large-text-box/index.js +2 -1
- package/dist/cjs/view/fields/radio/index.js +2 -1
- package/dist/cjs/view/fields/radio-group/index.js +2 -1
- package/dist/cjs/view/fields/text-box/index.js +2 -1
- 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 +3 -2
- 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 +2 -1
- package/dist/cjs/view/header/logo-region/logo.svg +2 -0
- package/dist/cjs/view/header/nav-region/index.js +3 -2
- package/dist/cjs/view/header/nav-region/notification/index.js +2 -1
- package/dist/cjs/view/header/nav-region/notification/index.svg +5 -0
- package/dist/cjs/view/header/nav-region/user/index.js +2 -1
- package/dist/cjs/view/header/nav-region/user/index.svg +4 -0
- package/dist/cjs/view/intro.stories.mdx +27 -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 +11 -9
- package/dist/cjs/view/micro-app/index.js +3 -2
- package/dist/cjs/view/micro-app/resources/manifest.js +6 -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 +8 -6
- 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.html +74 -0
- 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 +5 -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 +6 -5
- 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 +11 -6
- package/dist/es/analytics/index.js +3 -3
- package/dist/es/analytics/page-view-event.js +12 -3
- 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/api/users/users.json +8 -0
- package/dist/es/app.config.json +129 -0
- 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/index.js +11 -0
- package/dist/es/data/reducers.js +4 -4
- package/dist/es/data/store.js +2 -3
- package/dist/es/data/wait-message/reducer.js +1 -1
- package/dist/es/index.js +84 -72
- package/dist/es/index.pug +15 -0
- package/dist/es/micro-frontend.js +10 -0
- 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 +7 -8
- 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 +4 -8
- package/dist/es/view/fetch-host-app-data/index.js +6 -3
- package/dist/es/view/fields/check-box/index.js +2 -1
- package/dist/es/view/fields/combo-box/index.js +2 -1
- package/dist/es/view/fields/date-input/index.js +2 -1
- package/dist/es/view/fields/date-picker/index.js +1 -0
- package/dist/es/view/fields/form-item-layout/index.js +3 -2
- package/dist/es/view/fields/input-mask/index.js +2 -1
- package/dist/es/view/fields/large-text-box/index.js +2 -1
- package/dist/es/view/fields/radio/index.js +2 -1
- package/dist/es/view/fields/radio-group/index.js +2 -1
- package/dist/es/view/fields/text-box/index.js +2 -1
- 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 +2 -1
- 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 +2 -1
- package/dist/es/view/header/logo-region/logo.svg +2 -0
- package/dist/es/view/header/nav-region/index.js +3 -2
- package/dist/es/view/header/nav-region/notification/index.js +2 -1
- package/dist/es/view/header/nav-region/notification/index.svg +5 -0
- package/dist/es/view/header/nav-region/user/index.js +2 -1
- package/dist/es/view/header/nav-region/user/index.svg +4 -0
- package/dist/es/view/intro.stories.mdx +27 -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 +14 -9
- package/dist/es/view/micro-app/index.js +3 -2
- package/dist/es/view/micro-app/resources/manifest.js +6 -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 +13 -6
- 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.html +74 -0
- 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 +5 -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 +5 -4
- 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 +11 -6
- package/dist/types/communication/http-client/retry.d.ts +1 -1
- package/dist/types/data/index.d.ts +4 -0
- 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 +29 -29
- package/dist/types/index.d.ts +79 -78
- package/dist/types/micro-frontend.d.ts +6 -0
- 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 +3 -3
- 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/micro-frontend/types.d.ts +1 -1
- package/dist/types/utils/storybook/{main.d.cts → cjs/main.d.ts} +24 -2
- package/dist/types/utils/storybook/{middleware.d.cts → cjs/middleware.d.ts} +0 -0
- package/dist/types/utils/storybook/{vite.d.cts → cjs/vite.d.ts} +0 -0
- package/dist/types/utils/storybook/cjs/webpack.d.ts +16 -0
- package/dist/types/utils/storybook/preview.d.ts +8 -2
- package/dist/types/utils/testing/render-with-redux.d.ts +20 -20
- package/dist/types/utils/testing/render-with-router-redux.d.ts +20 -20
- package/dist/types/view/app-root/index.d.ts +1 -1
- package/dist/types/view/fields/check-box/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.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 +3 -3
- package/dist/types/view/micro-app/index.d.ts +1 -1
- package/dist/types/view/micro-app/resources/manifest.d.ts +2 -2
- 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/types.d.ts +1 -0
- package/dist/types/view/micro-app/use-app-will-render.d.ts +2 -2
- 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 +32 -15
- package/dist/types/utils/storybook/webpack.d.cts +0 -8
|
@@ -24,6 +24,7 @@ var __toModule = (module2) => {
|
|
|
24
24
|
__export(exports, {
|
|
25
25
|
Error: () => Error2
|
|
26
26
|
});
|
|
27
|
+
var React = __toModule(require("react"));
|
|
27
28
|
var import_react = __toModule(require("react"));
|
|
28
29
|
var import_ds_modal = __toModule(require("@elliemae/ds-modal"));
|
|
29
30
|
const Error2 = ({
|
|
@@ -24,10 +24,11 @@ var __toModule = (module2) => {
|
|
|
24
24
|
__export(exports, {
|
|
25
25
|
NavigationPrompt: () => NavigationPrompt
|
|
26
26
|
});
|
|
27
|
+
var React = __toModule(require("react"));
|
|
27
28
|
var import_react = __toModule(require("react"));
|
|
28
29
|
var import_ds_modal = __toModule(require("@elliemae/ds-modal"));
|
|
29
|
-
var import_react_redux = __toModule(require("../../../data/react-redux"));
|
|
30
|
-
var import_actions = __toModule(require("../../../data/navigation-prompt/actions"));
|
|
30
|
+
var import_react_redux = __toModule(require("../../../data/react-redux.js"));
|
|
31
|
+
var import_actions = __toModule(require("../../../data/navigation-prompt/actions.js"));
|
|
31
32
|
const NavigationPrompt = (0, import_react.memo)(({ open, showHeader = false }) => {
|
|
32
33
|
const dispatch = (0, import_react_redux.useAppDispatch)();
|
|
33
34
|
return /* @__PURE__ */ React.createElement(import_ds_modal.default, {
|
|
@@ -26,8 +26,8 @@ __export(exports, {
|
|
|
26
26
|
});
|
|
27
27
|
var import_react = __toModule(require("react"));
|
|
28
28
|
var import_date_fns = __toModule(require("date-fns"));
|
|
29
|
-
var import_constants = __toModule(require("../../../utils/constants"));
|
|
30
|
-
var import_config = __toModule(require("../../../utils/app-config/config"));
|
|
29
|
+
var import_constants = __toModule(require("../../../utils/constants.js"));
|
|
30
|
+
var import_config = __toModule(require("../../../utils/app-config/config.js"));
|
|
31
31
|
const useTrackSessionExpiry = (warningNotifiedAt) => {
|
|
32
32
|
const [timeData, setTimeData] = (0, import_react.useState)();
|
|
33
33
|
(0, import_react.useEffect)(() => {
|
|
@@ -24,12 +24,13 @@ var __toModule = (module2) => {
|
|
|
24
24
|
__export(exports, {
|
|
25
25
|
SessionExpiry: () => SessionExpiry
|
|
26
26
|
});
|
|
27
|
+
var React = __toModule(require("react"));
|
|
27
28
|
var import_react = __toModule(require("react"));
|
|
28
29
|
var import_ds_modal = __toModule(require("@elliemae/ds-modal"));
|
|
29
|
-
var import_react_redux = __toModule(require("../../../data/react-redux"));
|
|
30
|
-
var import_actions = __toModule(require("../../../data/logout/actions"));
|
|
31
|
-
var import_session = __toModule(require("../../../utils/session"));
|
|
32
|
-
var import_customHooks = __toModule(require("./customHooks"));
|
|
30
|
+
var import_react_redux = __toModule(require("../../../data/react-redux.js"));
|
|
31
|
+
var import_actions = __toModule(require("../../../data/logout/actions.js"));
|
|
32
|
+
var import_session = __toModule(require("../../../utils/session.js"));
|
|
33
|
+
var import_customHooks = __toModule(require("./customHooks.js"));
|
|
33
34
|
const SessionExpiry = (0, import_react.memo)(({ open, warningNotifiedAt = 0, showHeader = false }) => {
|
|
34
35
|
const [isOpen, setIsOpen] = (0, import_react.useState)(open);
|
|
35
36
|
const timeLeft = (0, import_customHooks.useTrackSessionExpiry)(warningNotifiedAt);
|
|
@@ -24,6 +24,7 @@ var __toModule = (module2) => {
|
|
|
24
24
|
__export(exports, {
|
|
25
25
|
HTMLWaitMessage: () => HTMLWaitMessage
|
|
26
26
|
});
|
|
27
|
+
var React = __toModule(require("react"));
|
|
27
28
|
var import_react = __toModule(require("react"));
|
|
28
29
|
const HTMLWaitMessage = (0, import_react.memo)(({ close }) => {
|
|
29
30
|
(0, import_react.useEffect)(() => {
|
|
@@ -24,11 +24,12 @@ var __toModule = (module2) => {
|
|
|
24
24
|
__export(exports, {
|
|
25
25
|
WaitMessage: () => WaitMessage
|
|
26
26
|
});
|
|
27
|
+
var React = __toModule(require("react"));
|
|
27
28
|
var import_react = __toModule(require("react"));
|
|
28
|
-
var
|
|
29
|
-
var import_react_redux = __toModule(require("../../../data/react-redux"));
|
|
30
|
-
var import_html_wait_message = __toModule(require("./html-wait-message"));
|
|
31
|
-
var import_user_wait_event = __toModule(require("../../../analytics/user-wait-event"));
|
|
29
|
+
var import_ds_loading_indicator = __toModule(require("@elliemae/ds-loading-indicator"));
|
|
30
|
+
var import_react_redux = __toModule(require("../../../data/react-redux.js"));
|
|
31
|
+
var import_html_wait_message = __toModule(require("./html-wait-message.js"));
|
|
32
|
+
var import_user_wait_event = __toModule(require("../../../analytics/user-wait-event.js"));
|
|
32
33
|
const WaitMessage = (0, import_react.memo)(({
|
|
33
34
|
size = "m",
|
|
34
35
|
style = { color: "white", fontSize: "1.25rem" },
|
|
@@ -44,7 +45,7 @@ const WaitMessage = (0, import_react.memo)(({
|
|
|
44
45
|
}, [isOpen]);
|
|
45
46
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(import_html_wait_message.HTMLWaitMessage, {
|
|
46
47
|
close: isOpen !== null
|
|
47
|
-
}), /* @__PURE__ */ React.createElement(
|
|
48
|
+
}), /* @__PURE__ */ React.createElement(import_ds_loading_indicator.default, {
|
|
48
49
|
id: "em-loading",
|
|
49
50
|
size,
|
|
50
51
|
style,
|
|
@@ -24,9 +24,10 @@ var __toModule = (module2) => {
|
|
|
24
24
|
__export(exports, {
|
|
25
25
|
WaitMessageLauncher: () => WaitMessageLauncher
|
|
26
26
|
});
|
|
27
|
+
var React = __toModule(require("react"));
|
|
27
28
|
var import_react = __toModule(require("react"));
|
|
28
|
-
var import_react_redux = __toModule(require("../../../data/react-redux"));
|
|
29
|
-
var import_actions = __toModule(require("../../../data/wait-message/actions"));
|
|
29
|
+
var import_react_redux = __toModule(require("../../../data/react-redux.js"));
|
|
30
|
+
var import_actions = __toModule(require("../../../data/wait-message/actions.js"));
|
|
30
31
|
const WaitMessageLauncher = () => {
|
|
31
32
|
const dispatch = (0, import_react_redux.useAppDispatch)();
|
|
32
33
|
(0, import_react.useEffect)(() => {
|
|
@@ -24,6 +24,7 @@ var __toModule = (module2) => {
|
|
|
24
24
|
__export(exports, {
|
|
25
25
|
RenderWithDelay: () => RenderWithDelay
|
|
26
26
|
});
|
|
27
|
+
var React = __toModule(require("react"));
|
|
27
28
|
var import_react = __toModule(require("react"));
|
|
28
29
|
const RenderWithDelay = (0, import_react.memo)(({ render }) => {
|
|
29
30
|
const [show, showComponents] = (0, import_react.useState)(false);
|
|
@@ -24,9 +24,10 @@ var __toModule = (module2) => {
|
|
|
24
24
|
__export(exports, {
|
|
25
25
|
renderWithHostData: () => renderWithHostData
|
|
26
26
|
});
|
|
27
|
+
var React = __toModule(require("react"));
|
|
27
28
|
var import_react = __toModule(require("react"));
|
|
28
|
-
var import_fetch_host_app_data = __toModule(require("../fetch-host-app-data"));
|
|
29
|
-
var import_wait_message_launcher = __toModule(require("../modals/wait-message/wait-message-launcher"));
|
|
29
|
+
var import_fetch_host_app_data = __toModule(require("../fetch-host-app-data/index.js"));
|
|
30
|
+
var import_wait_message_launcher = __toModule(require("../modals/wait-message/wait-message-launcher.js"));
|
|
30
31
|
const renderWithHostData = (data) => {
|
|
31
32
|
const {
|
|
32
33
|
ComponentToRender,
|
|
@@ -24,11 +24,12 @@ var __toModule = (module2) => {
|
|
|
24
24
|
__export(exports, {
|
|
25
25
|
SessionTimeout: () => SessionTimeout
|
|
26
26
|
});
|
|
27
|
+
var React = __toModule(require("react"));
|
|
27
28
|
var import_react = __toModule(require("react"));
|
|
28
|
-
var import_react_redux = __toModule(require("../../data/react-redux"));
|
|
29
|
-
var import_actions = __toModule(require("../../data/logout/actions"));
|
|
30
|
-
var import_session = __toModule(require("../../utils/session"));
|
|
31
|
-
var import_session_expiry = __toModule(require("../modals/session-expiry"));
|
|
29
|
+
var import_react_redux = __toModule(require("../../data/react-redux.js"));
|
|
30
|
+
var import_actions = __toModule(require("../../data/logout/actions.js"));
|
|
31
|
+
var import_session = __toModule(require("../../utils/session.js"));
|
|
32
|
+
var import_session_expiry = __toModule(require("../modals/session-expiry/index.js"));
|
|
32
33
|
const SessionTimeout = () => {
|
|
33
34
|
const dispatch = (0, import_react_redux.useAppDispatch)();
|
|
34
35
|
const [showSessionExpiryWarning, setSessionExpiryWarning] = (0, import_react.useState)(false);
|
|
@@ -24,8 +24,9 @@ var __toModule = (module2) => {
|
|
|
24
24
|
__export(exports, {
|
|
25
25
|
withAppDecorator: () => withAppDecorator
|
|
26
26
|
});
|
|
27
|
-
var
|
|
28
|
-
var
|
|
27
|
+
var React = __toModule(require("react"));
|
|
28
|
+
var import_history = __toModule(require("../../utils/history.js"));
|
|
29
|
+
var import_app_root = __toModule(require("../app-root/index.js"));
|
|
29
30
|
const withAppDecorator = (theme, store, story) => /* @__PURE__ */ React.createElement(import_app_root.AppRoot, {
|
|
30
31
|
store,
|
|
31
32
|
history: import_history.browserHistory,
|
|
@@ -24,6 +24,7 @@ var __toModule = (module2) => {
|
|
|
24
24
|
__export(exports, {
|
|
25
25
|
VisuallyHidden: () => VisuallyHidden
|
|
26
26
|
});
|
|
27
|
+
var React = __toModule(require("react"));
|
|
27
28
|
var import_react = __toModule(require("react"));
|
|
28
29
|
var import_styled_components = __toModule(require("styled-components"));
|
|
29
30
|
const Span = import_styled_components.default.span`
|
|
@@ -24,17 +24,22 @@ var __toModule = (module2) => {
|
|
|
24
24
|
__export(exports, {
|
|
25
25
|
WindowSize: () => WindowSize
|
|
26
26
|
});
|
|
27
|
+
var React = __toModule(require("react"));
|
|
27
28
|
var import_react = __toModule(require("react"));
|
|
28
29
|
var import_pubsub_js = __toModule(require("pubsub-js"));
|
|
29
|
-
var import_constants = __toModule(require("../../utils/constants"));
|
|
30
|
+
var import_constants = __toModule(require("../../utils/constants.js"));
|
|
30
31
|
const WindowSize = () => {
|
|
31
32
|
(0, import_react.useEffect)(() => {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
if (window.ResizeObserver) {
|
|
34
|
+
const observer = new ResizeObserver((entries) => {
|
|
35
|
+
(0, import_pubsub_js.publish)(import_constants.HOST_WINDOW_RESIZED, entries && entries[0]);
|
|
36
|
+
});
|
|
37
|
+
observer.observe(window.document.documentElement);
|
|
38
|
+
return () => {
|
|
39
|
+
observer.unobserve(window.document.documentElement);
|
|
40
|
+
};
|
|
41
|
+
}
|
|
36
42
|
return () => {
|
|
37
|
-
observer.unobserve(window.document.documentElement);
|
|
38
43
|
};
|
|
39
44
|
}, []);
|
|
40
45
|
return /* @__PURE__ */ React.createElement(React.Fragment, null);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { CMicroAppGuest } from "../utils/micro-frontend/guest";
|
|
2
|
-
import { getBAEventParameters } from "./web-analytics";
|
|
3
|
-
import { redactPii } from "../utils/redact-pii";
|
|
1
|
+
import { CMicroAppGuest } from "../utils/micro-frontend/guest.js";
|
|
2
|
+
import { getBAEventParameters } from "./web-analytics.js";
|
|
3
|
+
import { redactPii } from "../utils/redact-pii.js";
|
|
4
4
|
const sendBAEventToSelf = (data) => {
|
|
5
5
|
const redactedData = redactPii(data);
|
|
6
6
|
window.gtmDataLayer = window.gtmDataLayer || [];
|
|
@@ -1,7 +1,16 @@
|
|
|
1
|
-
import { sendBAEvent } from ".";
|
|
1
|
+
import { sendBAEvent } from "./index.js";
|
|
2
|
+
const getWindow = () => {
|
|
3
|
+
try {
|
|
4
|
+
window.top?.document;
|
|
5
|
+
return window.top || window.self;
|
|
6
|
+
} catch (e) {
|
|
7
|
+
return window.self;
|
|
8
|
+
}
|
|
9
|
+
};
|
|
2
10
|
const pageViewEvent = ({ pageTitle }) => {
|
|
3
|
-
const
|
|
4
|
-
const {
|
|
11
|
+
const pageWindow = getWindow();
|
|
12
|
+
const { pathname, href } = pageWindow.location;
|
|
13
|
+
const { title } = pageWindow.document;
|
|
5
14
|
const { pathname: guestPagePath, href: guestPageUrl } = window.location;
|
|
6
15
|
const { title: guestPageTitle } = document;
|
|
7
16
|
sendBAEvent({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getAuthHTTPClient } from "../../communication/http-client";
|
|
1
|
+
import { getAuthHTTPClient } from "../../communication/http-client/index.js";
|
|
2
2
|
const getUser = async ({ userName }) => {
|
|
3
3
|
const { data } = await getAuthHTTPClient().get(`/encompass/v1/users/${userName}`);
|
|
4
4
|
return data;
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
{
|
|
2
|
+
"appId": "app-sdk",
|
|
3
|
+
"brand": "primary",
|
|
4
|
+
"activeEnv": "localhost",
|
|
5
|
+
"hosted": true,
|
|
6
|
+
"sessionTimeoutWarnInterval": "60000",
|
|
7
|
+
"sessionTimeoutInterval": "70000",
|
|
8
|
+
"serviceEndpoints": {
|
|
9
|
+
"api": "",
|
|
10
|
+
"idp": ""
|
|
11
|
+
},
|
|
12
|
+
"walkMeUrl": "https://cdn.walkme.com/users/897bcebc13fd48038c790e2866e6a9fb/test/walkme_897bcebc13fd48038c790e2866e6a9fb_https.js",
|
|
13
|
+
"env": {
|
|
14
|
+
"localhost": {
|
|
15
|
+
"serviceEndpoints": {
|
|
16
|
+
"api": "",
|
|
17
|
+
"idp": ""
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"dev": {
|
|
21
|
+
"serviceEndpoints": {
|
|
22
|
+
"api": "https://dev-api.appsdk.rd.elliemae.io",
|
|
23
|
+
"idp": "https://int.idp.ellielabs.com"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"dev2": {
|
|
27
|
+
"serviceEndpoints": {
|
|
28
|
+
"api": "https://int.api.ellielabs.com",
|
|
29
|
+
"idp": "https://int.idp.ellielabs.com"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"qa": {
|
|
33
|
+
"serviceEndpoints": {
|
|
34
|
+
"api": "https://qa-api.appsdk.rd.elliemae.io",
|
|
35
|
+
"idp": "https://int.idp.ellielabs.com"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"qa2": {
|
|
39
|
+
"serviceEndpoints": {
|
|
40
|
+
"api": "https://int.api.ellielabs.com",
|
|
41
|
+
"idp": "https://int.idp.ellielabs.com"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"qa3": {
|
|
45
|
+
"serviceEndpoints": {
|
|
46
|
+
"api": "https://int.api.ellielabs.com",
|
|
47
|
+
"idp": "https://int.idp.ellielabs.com"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"int": {
|
|
51
|
+
"serviceEndpoints": {
|
|
52
|
+
"api": "https://int.api.ellielabs.com",
|
|
53
|
+
"idp": "https://int.idp.ellielabs.com"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"peg-osb1": {
|
|
57
|
+
"serviceEndpoints": {
|
|
58
|
+
"api": "https://encompass-peg-api.elliemae.com",
|
|
59
|
+
"idp": "https://peg.idp.ellielabs.com/authorize"
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"peg-osb2": {
|
|
63
|
+
"serviceEndpoints": {
|
|
64
|
+
"api": "https://encompass-peg2-api.elliemae.com",
|
|
65
|
+
"idp": "https://peg.idp.ellielabs.com/authorize"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"peg": {
|
|
69
|
+
"serviceEndpoints": {
|
|
70
|
+
"api": "https://peg2-west.api.ellielabs.com",
|
|
71
|
+
"idp": "https://peg.idp.ellielabs.com/authorize"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"peg-oapi-west": {
|
|
75
|
+
"serviceEndpoints": {
|
|
76
|
+
"api": "https://peg2-west.api.ellielabs.com",
|
|
77
|
+
"idp": "https://peg.idp.ellielabs.com/authorize"
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"peg-oapi-east": {
|
|
81
|
+
"serviceEndpoints": {
|
|
82
|
+
"api": "https://peg2-east.api.ellielabs.com",
|
|
83
|
+
"idp": "https://peg.idp.ellielabs.com/authorize"
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"peg2-oapi-east": {
|
|
87
|
+
"serviceEndpoints": {
|
|
88
|
+
"api": "https://peg2-east.api.ellielabs.com",
|
|
89
|
+
"idp": "https://peg.idp.ellielabs.com/authorize"
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"peg3": {
|
|
93
|
+
"serviceEndpoints": {
|
|
94
|
+
"api": "https://pel1.api.ellielabs.com",
|
|
95
|
+
"idp": "https://peg3.idp.ellielabs.com/authorize"
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"stage": {
|
|
99
|
+
"serviceEndpoints": {
|
|
100
|
+
"api": "https://stg.api.elliemae.com",
|
|
101
|
+
"idp": "https://stg.idp.elliemae.com/authorize"
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"beta": {
|
|
105
|
+
"serviceEndpoints": {
|
|
106
|
+
"api": "https://concept.api.elliemae.com",
|
|
107
|
+
"idp": "https://concept.idp.elliemae.com/authorize"
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
"demo": {
|
|
111
|
+
"serviceEndpoints": {
|
|
112
|
+
"api": "https://concept.api.elliemae.com",
|
|
113
|
+
"idp": "https://concept.idp.elliemae.com/authorize"
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
"epc": {
|
|
117
|
+
"serviceEndpoints": {
|
|
118
|
+
"api": "https://concept.api.elliemae.com",
|
|
119
|
+
"idp": "https://concept.idp.elliemae.com/authorize"
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
"prod": {
|
|
123
|
+
"serviceEndpoints": {
|
|
124
|
+
"api": "https://api.elliemae.com",
|
|
125
|
+
"idp": "https://idp.elliemae.com/authorize"
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import axios from "axios";
|
|
2
|
-
import { getAppConfigValue } from "../../utils/app-config/config";
|
|
3
|
-
import { getAuthorizationHeader } from "../../utils/auth/helper";
|
|
4
|
-
import setupRetry from "./retry";
|
|
5
|
-
import { requestInterceptor } from "./request-interceptor";
|
|
6
|
-
import { handleSuccess, handleFailure } from "./response-interceptor";
|
|
2
|
+
import { getAppConfigValue } from "../../utils/app-config/config.js";
|
|
3
|
+
import { getAuthorizationHeader } from "../../utils/auth/helper.js";
|
|
4
|
+
import setupRetry from "./retry.js";
|
|
5
|
+
import { requestInterceptor } from "./request-interceptor.js";
|
|
6
|
+
import { handleSuccess, handleFailure } from "./response-interceptor.js";
|
|
7
7
|
const REQUEST_TIMEOUT = 2 * 60 * 1e3;
|
|
8
8
|
const getHTTPClient = ({
|
|
9
9
|
baseURL = getAppConfigValue("serviceEndpoints.api", ""),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import enums from "../../../utils/constants";
|
|
2
|
-
import { getAuthHTTPClient } from "../index";
|
|
3
|
-
import { onAuthorizationFailure } from "../response-interceptor";
|
|
1
|
+
import enums from "../../../utils/constants.js";
|
|
2
|
+
import { getAuthHTTPClient } from "../index.js";
|
|
3
|
+
import { onAuthorizationFailure } from "../response-interceptor.js";
|
|
4
4
|
describe("http client test cases", () => {
|
|
5
5
|
const callApi = ({
|
|
6
6
|
apiUrl,
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { useInjectReducer, useInjectSaga } from "redux-injectors";
|
|
2
|
+
import { useAppDispatch, useAppSelector } from "./react-redux.js";
|
|
3
|
+
import { createAppStore, getStore } from "./store.js";
|
|
4
|
+
export {
|
|
5
|
+
createAppStore as configureStore,
|
|
6
|
+
getStore,
|
|
7
|
+
useAppDispatch,
|
|
8
|
+
useAppSelector,
|
|
9
|
+
useInjectReducer,
|
|
10
|
+
useInjectSaga
|
|
11
|
+
};
|
package/dist/es/data/reducers.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { combineReducers } from "@reduxjs/toolkit";
|
|
2
|
-
import { waitMessageReducer } from "./wait-message/reducer";
|
|
3
|
-
import { errorReducer } from "./error";
|
|
4
|
-
import { breakpointReducer } from "./breakpoint";
|
|
5
|
-
import { liveMessageReducer } from "./live-message";
|
|
2
|
+
import { waitMessageReducer } from "./wait-message/reducer.js";
|
|
3
|
+
import { errorReducer } from "./error/index.js";
|
|
4
|
+
import { breakpointReducer } from "./breakpoint/index.js";
|
|
5
|
+
import { liveMessageReducer } from "./live-message/index.js";
|
|
6
6
|
const createReducer = (injectedReducers = {}) => {
|
|
7
7
|
const rootReducer = combineReducers({
|
|
8
8
|
waitMessage: waitMessageReducer,
|
package/dist/es/data/store.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { configureStore } from "@reduxjs/toolkit";
|
|
2
2
|
import { createInjectorsEnhancer, forceReducerReload } from "redux-injectors";
|
|
3
|
-
import { routerMiddleware } from "connected-react-router";
|
|
4
3
|
import createSagaMiddleware from "redux-saga";
|
|
5
|
-
import { createReducer } from "./reducers";
|
|
4
|
+
import { createReducer } from "./reducers.js";
|
|
6
5
|
const rootReducer = createReducer();
|
|
7
6
|
let appStore = null;
|
|
8
7
|
const setStore = (store) => {
|
|
@@ -19,7 +18,7 @@ const createStore = (initialState, sagaMiddleware, history, middlewareConfig = {
|
|
|
19
18
|
];
|
|
20
19
|
const baseStore = configureStore({
|
|
21
20
|
reducer: rootReducer,
|
|
22
|
-
middleware: (getDefaultMiddleware) => getDefaultMiddleware(middlewareConfig).concat(sagaMiddleware)
|
|
21
|
+
middleware: (getDefaultMiddleware) => getDefaultMiddleware(middlewareConfig).concat(sagaMiddleware),
|
|
23
22
|
devTools: true,
|
|
24
23
|
preloadedState: initialState,
|
|
25
24
|
enhancers
|