@elliemae/pui-app-sdk 3.0.0-beta.5 → 3.0.0-beta.9
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/index.js +34 -0
- 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/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} +0 -0
- 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 +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 +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 +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 +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 +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/index.js +11 -0
- 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/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 +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 +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 +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 +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 +2 -1
- package/dist/types/.storybook/main.d.ts +63 -0
- package/dist/types/{communication/http-client/tests/index.test-disable.d.ts → .storybook/manager.d.ts} +0 -0
- package/dist/types/.storybook/middleware.d.ts +2 -0
- package/dist/types/{utils/storybook → .storybook}/preview.d.ts +3 -2
- package/dist/types/.storybook/theme.d.ts +4 -0
- package/dist/types/{analytics → lib/analytics}/appdynamics.d.ts +0 -0
- package/dist/types/{analytics → lib/analytics}/index.d.ts +0 -0
- package/dist/types/{analytics → lib/analytics}/page-view-event.d.ts +0 -0
- package/dist/types/{analytics → lib/analytics}/user-session-event.d.ts +0 -0
- package/dist/types/{analytics → lib/analytics}/user-wait-event.d.ts +0 -0
- package/dist/types/{analytics → lib/analytics}/web-analytics.d.ts +0 -0
- package/dist/types/{api → lib/api}/auth/index.d.ts +0 -0
- package/dist/types/{api → lib/api}/helpers.d.ts +0 -0
- package/dist/types/{api → lib/api}/users/index.d.ts +0 -0
- package/dist/types/{api → lib/api}/users/index.endpoint.d.ts +0 -0
- package/dist/types/{communication → lib/communication}/http-client/index.d.ts +0 -0
- package/dist/types/{communication → lib/communication}/http-client/request-interceptor.d.ts +0 -0
- package/dist/types/{communication → lib/communication}/http-client/response-interceptor.d.ts +0 -0
- package/dist/types/{communication → lib/communication}/http-client/retry-axios.d.ts +0 -0
- package/dist/types/{communication → lib/communication}/http-client/retry.d.ts +1 -1
- package/dist/types/{communication → lib/communication}/http-client/tests/hello.endpoint.d.ts +0 -0
- package/dist/types/{data/tests/store.test.d.ts → lib/communication/http-client/tests/index.test-disable.d.ts} +0 -0
- package/dist/types/{communication → lib/communication}/http-client/tests/private.endpoint.d.ts +0 -0
- package/dist/types/{data → lib/data}/auth/actions.d.ts +0 -0
- package/dist/types/{data → lib/data}/auth/reducer.d.ts +0 -0
- package/dist/types/{data → lib/data}/breakpoint/index.d.ts +0 -0
- package/dist/types/{data → lib/data}/error/index.d.ts +0 -0
- package/dist/types/lib/data/index.d.ts +4 -0
- package/dist/types/{data → lib/data}/live-message/index.d.ts +0 -0
- package/dist/types/{data → lib/data}/logout/actions.d.ts +0 -0
- package/dist/types/{data → lib/data}/navigation-prompt/actions.d.ts +0 -0
- package/dist/types/lib/data/react-redux.d.ts +20 -0
- package/dist/types/lib/data/reducers.d.ts +16 -0
- package/dist/types/{data → lib/data}/saga.d.ts +0 -0
- package/dist/types/lib/data/store.d.ts +54 -0
- package/dist/types/lib/data/tests/store.test.d.ts +1 -0
- package/dist/types/{data → lib/data}/wait-message/actions.d.ts +0 -0
- package/dist/types/{data → lib/data}/wait-message/reducer.d.ts +0 -0
- package/dist/types/lib/index.d.ts +80 -0
- package/dist/types/lib/micro-frontend.d.ts +6 -0
- package/dist/types/{route → lib/route}/index.d.ts +0 -0
- package/dist/types/{route → lib/route}/page-view.d.ts +0 -0
- package/dist/types/{route → lib/route}/private-route/index.d.ts +1 -1
- package/dist/types/{sideeffect → lib/sideeffect}/auth/index.d.ts +1 -1
- package/dist/types/{sideeffect → lib/sideeffect}/error-toast/index.d.ts +0 -0
- package/dist/types/{sideeffect → lib/sideeffect}/wait-message/index.d.ts +0 -0
- package/dist/types/{utils → lib/utils}/app-config/config.d.ts +0 -0
- package/dist/types/{utils → lib/utils}/app-config/index.d.ts +0 -0
- package/dist/types/{utils → lib/utils}/app-host-integration/react.d.ts +1 -1
- package/dist/types/{utils → lib/utils}/auth/helper.d.ts +0 -0
- package/dist/types/{utils → lib/utils}/auth/index.d.ts +0 -0
- package/dist/types/{utils → lib/utils}/await.d.ts +0 -0
- package/dist/types/{utils → lib/utils}/constants.d.ts +0 -0
- package/dist/types/{utils → lib/utils}/font-size.d.ts +0 -0
- package/dist/types/{utils → lib/utils}/guest-with-service.d.ts +0 -0
- package/dist/types/{utils → lib/utils}/helpers.d.ts +0 -0
- package/dist/types/{utils → lib/utils}/history.d.ts +0 -0
- package/dist/types/{utils → lib/utils}/log-records.d.ts +0 -0
- package/dist/types/{utils → lib/utils}/micro-frontend/console-logger.d.ts +0 -0
- package/dist/types/{utils → lib/utils}/micro-frontend/guest.d.ts +3 -3
- package/dist/types/{utils → lib/utils}/micro-frontend/host.d.ts +1 -1
- package/dist/types/{utils → lib/utils}/micro-frontend/index.d.ts +2 -2
- package/dist/types/{utils → lib/utils}/micro-frontend/types.d.ts +1 -1
- package/dist/types/{utils → lib/utils}/redact-pii.d.ts +0 -0
- package/dist/types/{utils → lib/utils}/service-worker.d.ts +0 -0
- package/dist/types/{utils → lib/utils}/session.d.ts +0 -0
- package/dist/types/{utils/storybook/main.d.cts → lib/utils/storybook/cjs/main.d.ts} +15 -1
- package/dist/types/{utils/storybook/middleware.d.cts → lib/utils/storybook/cjs/middleware.d.ts} +0 -0
- package/dist/types/{utils/storybook/vite.d.cts → lib/utils/storybook/cjs/vite.d.ts} +0 -0
- package/dist/types/{utils/storybook/webpack.d.cts → lib/utils/storybook/cjs/webpack.d.ts} +0 -0
- package/dist/types/{utils → lib/utils}/storybook/manager.d.ts +0 -0
- package/dist/types/lib/utils/storybook/preview.d.ts +30 -0
- package/dist/types/{utils → lib/utils}/storybook/theme.d.ts +0 -0
- package/dist/types/{utils → lib/utils}/testing/index.d.ts +0 -0
- package/dist/types/{utils → lib/utils}/testing/render-with-redux.d.ts +19 -19
- package/dist/types/{utils → lib/utils}/testing/render-with-router-redux.d.ts +19 -19
- package/dist/types/{utils → lib/utils}/testing/render-with-router.d.ts +0 -0
- package/dist/types/{utils → lib/utils}/testing/render-with-state-addons.d.ts +0 -0
- package/dist/types/{utils → lib/utils}/types.d.ts +0 -0
- package/dist/types/{utils → lib/utils}/url.d.ts +0 -0
- package/dist/types/{utils → lib/utils}/web-storage.d.ts +0 -0
- package/dist/types/{utils → lib/utils}/window.d.ts +0 -0
- package/dist/types/{view → lib/view}/app-root/hosted-app.d.ts +0 -0
- package/dist/types/{view → lib/view}/app-root/index.d.ts +1 -1
- package/dist/types/{view → lib/view}/app-root/stand-alone-app.d.ts +0 -0
- package/dist/types/{view → lib/view}/app-root/style.d.ts +0 -0
- package/dist/types/{view → lib/view}/error-boundary/default-error-template.d.ts +0 -0
- package/dist/types/{view → lib/view}/error-boundary/index.d.ts +0 -0
- package/dist/types/{view → lib/view}/error-toast/index.d.ts +0 -0
- package/dist/types/{view → lib/view}/error-toast/index.stories.d.ts +0 -0
- package/dist/types/{view → lib/view}/fetch-host-app-data/index.d.ts +0 -0
- package/dist/types/{view → lib/view}/fetch-host-app-data/store.d.ts +0 -0
- package/dist/types/{view → lib/view}/fields/check-box/index.d.ts +1 -1
- package/dist/types/{view → lib/view}/fields/check-box/index.stories.d.ts +1 -1
- package/dist/types/{view → lib/view}/fields/check-box/set-value.stories.d.ts +1 -1
- package/dist/types/{view → lib/view}/fields/combo-box/index.d.ts +0 -0
- package/dist/types/{view → lib/view}/fields/combo-box/index.stories.d.ts +1 -1
- package/dist/types/{view → lib/view}/fields/connect-form.d.ts +0 -0
- package/dist/types/{view → lib/view}/fields/date-input/index.d.ts +0 -0
- package/dist/types/{view → lib/view}/fields/date-input/index.stories.d.ts +1 -1
- package/dist/types/{view → lib/view}/fields/date-picker/index.d.ts +0 -0
- package/dist/types/{view → lib/view}/fields/date-picker/index.stories.d.ts +1 -1
- package/dist/types/{view → lib/view}/fields/form-item-layout/index.d.ts +0 -0
- package/dist/types/{view → lib/view}/fields/form-item-layout/index.stories.d.ts +1 -1
- package/dist/types/{view → lib/view}/fields/input-mask/index.d.ts +1 -1
- package/dist/types/{view → lib/view}/fields/input-mask/index.stories.d.ts +1 -1
- package/dist/types/{view → lib/view}/fields/large-text-box/index.d.ts +0 -0
- package/dist/types/{view → lib/view}/fields/large-text-box/index.stories.d.ts +1 -1
- package/dist/types/{view → lib/view}/fields/radio/index.d.ts +0 -0
- package/dist/types/{view → lib/view}/fields/radio/index.stories.d.ts +1 -1
- package/dist/types/{view → lib/view}/fields/radio/set-value.stories.d.ts +1 -1
- package/dist/types/{view → lib/view}/fields/radio-group/index.d.ts +0 -0
- package/dist/types/{view → lib/view}/fields/radio-group/index.stories.d.ts +1 -1
- package/dist/types/{view → lib/view}/fields/text-box/index.d.ts +0 -0
- package/dist/types/{view → lib/view}/fields/text-box/index.stories.d.ts +1 -1
- package/dist/types/{view → lib/view}/fields/watch-value.d.ts +0 -0
- package/dist/types/{view → lib/view}/form/index.d.ts +0 -0
- package/dist/types/{view → lib/view}/form/index.stories.d.ts +0 -0
- package/dist/types/{view → lib/view}/form/personal-info-section.d.ts +0 -0
- package/dist/types/{view → lib/view}/form/submit-button/index.d.ts +0 -0
- package/dist/types/{view → lib/view}/form/usecases.stories.d.ts +1 -1
- package/dist/types/{view → lib/view}/guest-unload-handlers/index.d.ts +0 -0
- package/dist/types/{view → lib/view}/header/center-region/index.d.ts +0 -0
- package/dist/types/{view → lib/view}/header/index.d.ts +1 -1
- package/dist/types/{view → lib/view}/header/index.stories.d.ts +1 -1
- package/dist/types/{view → lib/view}/header/logo-region/index.d.ts +0 -0
- package/dist/types/{view → lib/view}/header/nav-region/index.d.ts +0 -0
- package/dist/types/{view → lib/view}/header/nav-region/notification/index.d.ts +0 -0
- package/dist/types/{view → lib/view}/header/nav-region/user/index.d.ts +0 -0
- package/dist/types/{view → lib/view}/host-binding-events/index.d.ts +0 -0
- package/dist/types/{view → lib/view}/live-message/index.d.ts +0 -0
- package/dist/types/{view → lib/view}/live-message/index.stories.d.ts +0 -0
- package/dist/types/{view → lib/view}/loadable/index.d.ts +0 -0
- package/dist/types/{view → lib/view}/login/index.d.ts +0 -0
- package/dist/types/{view → lib/view}/media-breakpoint/index.d.ts +0 -0
- package/dist/types/{view → lib/view}/media-breakpoint/index.stories.d.ts +0 -0
- package/dist/types/{view → lib/view}/message-to-host-app/index.d.ts +0 -0
- package/dist/types/{view → lib/view}/micro-app/app-factory/index.d.ts +3 -3
- package/dist/types/{view → lib/view}/micro-app/const.d.ts +0 -0
- package/dist/types/{view → lib/view}/micro-app/index.d.ts +1 -1
- package/dist/types/{view → lib/view}/micro-app/resources/manifest.d.ts +2 -2
- package/dist/types/{view → lib/view}/micro-app/resources/script.d.ts +1 -1
- package/dist/types/{view → lib/view}/micro-app/resources/style.d.ts +1 -1
- package/dist/types/{view → lib/view}/micro-app/types.d.ts +0 -0
- package/dist/types/{view → lib/view}/micro-app/use-app-will-render.d.ts +1 -1
- package/dist/types/{view → lib/view}/micro-app/utils.d.ts +0 -0
- package/dist/types/{view → lib/view}/micro-iframe-app/app.d.ts +2 -2
- package/dist/types/{view → lib/view}/micro-iframe-app/iframe/const.d.ts +0 -0
- package/dist/types/{view → lib/view}/micro-iframe-app/iframe/index.d.ts +0 -0
- package/dist/types/{view → lib/view}/micro-iframe-app/index.d.ts +1 -1
- package/dist/types/{view → lib/view}/micro-iframe-app/types.d.ts +1 -1
- package/dist/types/{view → lib/view}/micro-iframe-app/use-frame-loaded.d.ts +1 -1
- package/dist/types/{view → lib/view}/modals/error/index.d.ts +0 -0
- package/dist/types/{view → lib/view}/modals/error/index.stories.d.ts +1 -1
- package/dist/types/{view → lib/view}/modals/navigation-prompt/index.d.ts +0 -0
- package/dist/types/{view → lib/view}/modals/navigation-prompt/index.stories.d.ts +1 -1
- package/dist/types/{view → lib/view}/modals/session-expiry/customHooks.d.ts +0 -0
- package/dist/types/{view → lib/view}/modals/session-expiry/index.d.ts +0 -0
- package/dist/types/{view → lib/view}/modals/session-expiry/index.stories.d.ts +1 -1
- package/dist/types/{view → lib/view}/modals/wait-message/html-wait-message.d.ts +0 -0
- package/dist/types/{view → lib/view}/modals/wait-message/index.d.ts +0 -0
- package/dist/types/{view → lib/view}/modals/wait-message/index.stories.d.ts +1 -1
- package/dist/types/{view → lib/view}/modals/wait-message/wait-message-launcher.d.ts +0 -0
- package/dist/types/{view → lib/view}/render-with-delay/index.d.ts +0 -0
- package/dist/types/{view → lib/view}/render-with-host-data/index.d.ts +0 -0
- package/dist/types/{view → lib/view}/session-timeout/index.d.ts +0 -0
- package/dist/types/{view → lib/view}/session-timeout/index.stories.d.ts +0 -0
- package/dist/types/{view → lib/view}/storybook/decorator.d.ts +1 -1
- package/dist/types/{view → lib/view}/use-previous.d.ts +0 -0
- package/dist/types/{view → lib/view}/useMediaBreakpoints/index.d.ts +0 -0
- package/dist/types/{view → lib/view}/visually-hidden/index.d.ts +0 -0
- package/dist/types/{view → lib/view}/window-size/index.d.ts +0 -0
- package/package.json +28 -11
- package/dist/types/data/react-redux.d.ts +0 -20
- package/dist/types/data/reducers.d.ts +0 -16
- package/dist/types/data/store.d.ts +0 -54
- package/dist/types/index.d.ts +0 -80
|
@@ -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,12 +1,8 @@
|
|
|
1
|
+
import * as React from "react";
|
|
1
2
|
import { useEffect, memo } from "react";
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
DSToast,
|
|
6
|
-
toast
|
|
7
|
-
} from "@elliemae/ds-basic/Toast";
|
|
8
|
-
import { useAppSelector, useAppDispatch } from "../../data/react-redux";
|
|
9
|
-
import { actions as error } from "../../data/error";
|
|
3
|
+
import { ToastPosition, ToastType, DSToast, toast } from "@elliemae/ds-toast";
|
|
4
|
+
import { useAppSelector, useAppDispatch } from "../../data/react-redux.js";
|
|
5
|
+
import { actions as error } from "../../data/error/index.js";
|
|
10
6
|
const ErrorToast = memo((props) => {
|
|
11
7
|
const storeError = useAppSelector((state) => state?.error);
|
|
12
8
|
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
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import DSFormItemLayout from "@elliemae/ds-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,
|
|
@@ -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 = {};
|
|
@@ -120,6 +123,8 @@ const unloadApp = ({
|
|
|
120
123
|
hostUrl,
|
|
121
124
|
documentEle
|
|
122
125
|
}) => {
|
|
126
|
+
if (!hostUrl)
|
|
127
|
+
throw new Error("Unable to unload app. hostUrl is required");
|
|
123
128
|
getLogger().info(logRecords.APP_UNLOADING(id));
|
|
124
129
|
const app = (window.emui || {})[id];
|
|
125
130
|
if (!app)
|
|
@@ -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,12 +1,14 @@
|
|
|
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,
|
|
8
8
|
manifestPath
|
|
9
9
|
}) => {
|
|
10
|
+
if (!hostUrl || !manifestPath)
|
|
11
|
+
throw new Error("Unable to get app manifest. hostUrl and manifestPath are required.");
|
|
10
12
|
const url = new URL(`${manifestPath.replace(/\/?$/, "/")}manifest.json`, hostUrl);
|
|
11
13
|
const response = await getHTTPClient().get(removeDoubleSlash(url.href));
|
|
12
14
|
const { headers } = response;
|
|
@@ -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,11 +1,13 @@
|
|
|
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
|
|
8
8
|
});
|
|
9
|
+
if (!manifestPath)
|
|
10
|
+
return;
|
|
9
11
|
const base = documentEle.createElement("base");
|
|
10
12
|
base.href = new URL(manifestPath, hostUrl).href;
|
|
11
13
|
documentEle.getElementsByTagName("head")[0].appendChild(base);
|
|
@@ -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
|
-
import DSLoadingIndicator from "@elliemae/ds-
|
|
3
|
-
import { useAppSelector } from "../../../data/react-redux";
|
|
4
|
-
import { HTMLWaitMessage } from "./html-wait-message";
|
|
3
|
+
import DSLoadingIndicator from "@elliemae/ds-loading-indicator";
|
|
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) {
|