@elliemae/pui-app-sdk 3.0.0-beta.2 → 3.0.0-beta.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/analytics/appdynamics.js +13 -7
- package/dist/cjs/analytics/index.js +13 -12
- package/dist/cjs/analytics/page-view-event.js +23 -13
- package/dist/cjs/analytics/user-session-event.js +14 -13
- package/dist/cjs/analytics/user-wait-event.js +13 -12
- package/dist/cjs/analytics/web-analytics.js +19 -2
- package/dist/cjs/api/auth/index.js +11 -10
- package/dist/cjs/api/helpers.js +12 -11
- package/dist/cjs/api/users/index.js +11 -10
- package/dist/cjs/communication/http-client/index.js +18 -12
- package/dist/cjs/communication/http-client/request-interceptor.js +11 -10
- package/dist/cjs/communication/http-client/response-interceptor.js +13 -7
- package/dist/cjs/communication/http-client/retry-axios.js +14 -8
- package/dist/cjs/communication/http-client/retry.js +11 -10
- package/dist/cjs/communication/http-client/tests/index.test-disable.js +7 -7
- package/dist/cjs/data/auth/actions.js +19 -2
- package/dist/cjs/data/auth/reducer.js +14 -8
- package/dist/cjs/data/breakpoint/index.js +13 -7
- package/dist/cjs/data/error/index.js +11 -10
- package/dist/cjs/data/index.js +35 -0
- package/dist/cjs/data/live-message/index.js +11 -10
- package/dist/cjs/data/logout/actions.js +19 -2
- package/dist/cjs/data/navigation-prompt/actions.js +19 -2
- package/dist/cjs/data/react-redux.js +11 -10
- package/dist/cjs/data/reducers.js +15 -14
- package/dist/cjs/data/saga.js +19 -2
- package/dist/cjs/data/store.js +17 -24
- package/dist/cjs/data/wait-message/actions.js +19 -2
- package/dist/cjs/data/wait-message/reducer.js +14 -8
- package/dist/cjs/index.js +90 -84
- package/dist/cjs/micro-frontend.js +34 -0
- package/dist/cjs/sideeffect/auth/index.js +15 -14
- package/dist/cjs/sideeffect/error-toast/index.js +15 -14
- package/dist/cjs/sideeffect/wait-message/index.js +15 -14
- package/dist/cjs/typings/styled.d.js +1 -19
- package/dist/cjs/utils/app-config/config.js +14 -8
- package/dist/cjs/utils/app-config/index.js +17 -11
- package/dist/cjs/utils/app-host-integration/react.js +11 -10
- package/dist/cjs/utils/auth/helper.js +13 -7
- package/dist/cjs/utils/auth/index.js +21 -19
- package/dist/cjs/utils/await.js +18 -1
- package/dist/cjs/utils/constants.js +19 -2
- package/dist/cjs/utils/font-size.js +19 -2
- package/dist/cjs/utils/guest-with-service.js +19 -2
- package/dist/cjs/utils/helpers.js +20 -3
- package/dist/cjs/utils/history.js +11 -10
- package/dist/cjs/utils/log-records.js +19 -2
- package/dist/cjs/utils/micro-frontend/console-logger.js +12 -11
- package/dist/cjs/utils/micro-frontend/guest.js +25 -19
- package/dist/cjs/utils/micro-frontend/host.js +30 -29
- package/dist/cjs/utils/micro-frontend/index.js +17 -11
- package/dist/cjs/utils/micro-frontend/types.js +18 -1
- package/dist/cjs/utils/redact-pii.js +19 -2
- package/dist/cjs/utils/service-worker.js +12 -11
- package/dist/cjs/utils/session.js +15 -14
- 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 +12 -11
- package/dist/cjs/utils/storybook/preview.js +19 -19
- package/dist/cjs/utils/storybook/theme.js +11 -10
- package/dist/cjs/utils/testing/index.js +19 -12
- package/dist/cjs/utils/testing/render-with-redux.js +17 -10
- package/dist/cjs/utils/testing/render-with-router-redux.js +20 -13
- package/dist/cjs/utils/testing/render-with-router.js +24 -14
- package/dist/cjs/utils/testing/render-with-state-addons.js +17 -10
- package/dist/cjs/utils/types.js +18 -1
- package/dist/cjs/utils/url.js +19 -2
- package/dist/cjs/utils/web-storage.js +13 -7
- package/dist/cjs/utils/window.js +11 -10
- package/dist/cjs/view/app-root/hosted-app.js +24 -14
- package/dist/cjs/view/app-root/index.js +25 -18
- package/dist/cjs/view/app-root/stand-alone-app.js +27 -16
- package/dist/cjs/view/app-root/style.js +11 -10
- package/dist/cjs/view/app-router.js +48 -0
- package/dist/cjs/view/{media-breakpoint/index.js → breakpoint/use-breakpoint.js} +20 -20
- package/dist/cjs/view/{useMediaBreakpoints/index.js → breakpoint/use-media-query-list.js} +15 -14
- package/dist/cjs/view/error-boundary/default-error-template.js +26 -3
- package/dist/cjs/view/error-boundary/index.js +16 -10
- package/dist/cjs/view/error-toast/index.js +21 -14
- package/dist/cjs/view/fetch-host-app-data/index.js +16 -10
- package/dist/cjs/view/fetch-host-app-data/store.js +11 -10
- package/dist/cjs/view/fields/check-box/index.js +18 -19
- package/dist/cjs/view/fields/combo-box/index.js +18 -13
- package/dist/cjs/view/fields/connect-form.js +11 -10
- package/dist/cjs/view/fields/date-input/index.js +16 -9
- package/dist/cjs/view/fields/date-picker/index.js +16 -9
- package/dist/cjs/view/fields/form-item-layout/index.js +18 -14
- package/dist/cjs/view/fields/form-layout-block-item/index.js +54 -0
- package/dist/cjs/view/fields/input-mask/index.js +16 -9
- package/dist/cjs/view/fields/large-text-box/index.js +16 -9
- package/dist/cjs/view/fields/radio/index.js +16 -9
- package/dist/cjs/view/fields/radio-group/index.js +17 -14
- package/dist/cjs/view/fields/text-box/index.js +16 -9
- package/dist/cjs/view/fields/watch-value.js +19 -10
- package/dist/cjs/view/form/index.js +15 -8
- package/dist/cjs/view/form/personal-info-section.js +46 -35
- package/dist/cjs/view/form/submit-button/index.js +17 -12
- package/dist/cjs/view/guest-unload-handlers/index.js +11 -10
- package/dist/cjs/view/host-binding-events/index.js +19 -2
- package/dist/cjs/view/live-message/index.js +15 -8
- package/dist/cjs/view/loadable/index.js +15 -8
- package/dist/cjs/view/login/index.js +16 -19
- package/dist/cjs/view/message-to-host-app/index.js +11 -10
- package/dist/cjs/view/micro-app/app-factory/index.js +22 -19
- package/dist/cjs/view/micro-app/const.js +19 -2
- package/dist/cjs/view/micro-app/index.js +17 -10
- package/dist/cjs/view/micro-app/resources/manifest.js +16 -13
- package/dist/cjs/view/micro-app/resources/script.js +12 -11
- package/dist/cjs/view/micro-app/resources/style.js +11 -10
- package/dist/cjs/view/micro-app/types.js +18 -1
- package/dist/cjs/view/micro-app/use-app-will-render.js +21 -18
- package/dist/cjs/view/micro-app/utils.js +11 -10
- package/dist/cjs/view/micro-iframe-app/app.js +18 -11
- package/dist/cjs/view/micro-iframe-app/iframe/const.js +19 -2
- package/dist/cjs/view/micro-iframe-app/iframe/index.js +16 -9
- package/dist/cjs/view/micro-iframe-app/index.js +16 -9
- package/dist/cjs/view/micro-iframe-app/types.js +18 -1
- package/dist/cjs/view/micro-iframe-app/use-frame-loaded.js +16 -13
- package/dist/cjs/view/modals/error/index.js +31 -21
- package/dist/cjs/view/modals/navigation-prompt/index.js +39 -21
- package/dist/cjs/view/modals/session-expiry/customHooks.js +14 -13
- package/dist/cjs/view/modals/session-expiry/index.js +39 -29
- package/dist/cjs/view/modals/wait-message/index.js +21 -15
- package/dist/cjs/view/modals/wait-message/{html-wait-message.js → use-html-wait-message.js} +14 -14
- package/dist/cjs/view/modals/wait-message/wait-message-launcher.js +14 -13
- package/dist/cjs/view/page.js +51 -0
- package/dist/cjs/view/render-with-delay/index.js +15 -8
- package/dist/cjs/view/render-with-host-data/index.js +16 -9
- package/dist/cjs/view/require-auth.js +58 -0
- package/dist/cjs/view/session-timeout/index.js +23 -12
- package/dist/cjs/view/storybook/decorator.js +15 -8
- package/dist/cjs/view/use-previous.js +11 -10
- package/dist/cjs/view/use-window-size-change.js +45 -0
- package/dist/cjs/view/visually-hidden/index.js +15 -8
- 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/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-axios.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 +5 -15
- package/dist/es/data/wait-message/reducer.js +1 -1
- package/dist/es/index.js +87 -77
- package/dist/es/micro-frontend.js +10 -0
- 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/config.js +1 -1
- 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 +11 -10
- package/dist/es/utils/helpers.js +1 -1
- package/dist/es/utils/micro-frontend/console-logger.js +1 -1
- package/dist/es/utils/micro-frontend/guest.js +9 -9
- package/dist/es/utils/micro-frontend/host.js +19 -18
- 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 +4 -4
- 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 +5 -4
- package/dist/es/utils/testing/render-with-router.js +10 -6
- package/dist/es/utils/testing/render-with-state-addons.js +1 -0
- package/dist/es/view/app-root/hosted-app.js +11 -7
- package/dist/es/view/app-root/index.js +9 -8
- package/dist/es/view/app-root/stand-alone-app.js +13 -8
- package/dist/es/view/app-router.js +19 -0
- package/dist/es/view/{media-breakpoint/index.js → breakpoint/use-breakpoint.js} +7 -8
- package/dist/es/view/{useMediaBreakpoints/index.js → breakpoint/use-media-query-list.js} +4 -4
- package/dist/es/view/error-boundary/default-error-template.js +2 -1
- 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 +5 -12
- package/dist/es/view/fields/combo-box/index.js +4 -5
- package/dist/es/view/fields/date-input/index.js +2 -1
- package/dist/es/view/fields/date-picker/index.js +2 -1
- package/dist/es/view/fields/form-item-layout/index.js +4 -6
- package/dist/es/view/fields/form-layout-block-item/index.js +25 -0
- package/dist/es/view/fields/input-mask/index.js +4 -2
- 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 +3 -6
- package/dist/es/view/fields/text-box/index.js +2 -1
- package/dist/es/view/fields/watch-value.js +5 -2
- package/dist/es/view/form/index.js +1 -0
- package/dist/es/view/form/personal-info-section.js +33 -28
- package/dist/es/view/form/submit-button/index.js +4 -5
- package/dist/es/view/guest-unload-handlers/index.js +1 -1
- 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 +5 -9
- package/dist/es/view/message-to-host-app/index.js +1 -1
- package/dist/es/view/micro-app/app-factory/index.js +15 -10
- 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 +2 -2
- 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.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 +25 -15
- package/dist/es/view/modals/navigation-prompt/index.js +33 -14
- package/dist/es/view/modals/session-expiry/customHooks.js +2 -2
- package/dist/es/view/modals/session-expiry/index.js +35 -23
- package/dist/es/view/modals/wait-message/index.js +8 -8
- package/dist/es/view/modals/wait-message/{html-wait-message.js → use-html-wait-message.js} +4 -5
- package/dist/es/view/modals/wait-message/wait-message-launcher.js +3 -3
- package/dist/es/view/page.js +22 -0
- package/dist/es/view/render-with-delay/index.js +2 -1
- package/dist/es/view/render-with-host-data/index.js +3 -2
- package/dist/es/view/require-auth.js +29 -0
- package/dist/es/view/session-timeout/index.js +10 -5
- package/dist/es/view/storybook/decorator.js +3 -2
- package/dist/es/view/use-window-size-change.js +21 -0
- package/dist/es/view/visually-hidden/index.js +1 -0
- 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 +9 -18
- package/dist/types/data/reducers.d.ts +6 -6
- package/dist/types/data/store.d.ts +30 -31
- package/dist/types/index.d.ts +78 -78
- package/dist/types/micro-frontend.d.ts +6 -0
- package/dist/types/sideeffect/auth/index.d.ts +1 -1
- package/dist/types/utils/app-config/config.d.ts +1 -1
- package/dist/types/utils/app-host-integration/react.d.ts +1 -1
- package/dist/types/utils/history.d.ts +2 -2
- package/dist/types/utils/micro-frontend/guest.d.ts +5 -5
- package/dist/types/utils/micro-frontend/host.d.ts +3 -3
- 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/session.d.ts +5 -2
- 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 +22 -22
- package/dist/types/utils/testing/render-with-router-redux.d.ts +22 -22
- package/dist/types/utils/testing/render-with-router.d.ts +2 -2
- package/dist/types/utils/testing/render-with-state-addons.d.ts +1 -1
- package/dist/types/view/app-root/hosted-app.d.ts +1 -1
- package/dist/types/view/app-root/index.d.ts +2 -2
- package/dist/types/view/app-root/stand-alone-app.d.ts +1 -1
- package/dist/types/view/app-router.d.ts +9 -0
- package/dist/types/view/{media-breakpoint → breakpoint}/index.stories.d.ts +0 -0
- package/dist/types/view/breakpoint/use-breakpoint.d.ts +1 -0
- package/dist/types/view/breakpoint/use-media-query-list.d.ts +1 -0
- package/dist/types/view/error-boundary/default-error-template.d.ts +1 -1
- package/dist/types/view/fields/check-box/index.d.ts +2 -4
- package/dist/types/view/fields/check-box/index.stories.d.ts +2 -4
- package/dist/types/view/fields/check-box/set-value.stories.d.ts +1 -1
- package/dist/types/view/fields/combo-box/index.d.ts +1 -2
- package/dist/types/view/fields/combo-box/index.stories.d.ts +2 -4
- package/dist/types/view/fields/connect-form.d.ts +1 -1
- package/dist/types/view/fields/date-input/index.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.d.ts +2 -1
- package/dist/types/view/fields/date-picker/index.stories.d.ts +2 -4
- package/dist/types/view/fields/form-item-layout/index.d.ts +1 -1
- package/dist/types/view/fields/form-item-layout/index.stories.d.ts +1 -1
- package/dist/types/view/fields/form-layout-block-item/index.d.ts +8 -0
- package/dist/types/view/{header → fields/form-layout-block-item}/index.stories.d.ts +2 -2
- package/dist/types/view/fields/input-mask/index.d.ts +2 -2
- package/dist/types/view/fields/input-mask/index.stories.d.ts +2 -4
- package/dist/types/view/fields/large-text-box/index.d.ts +1 -1
- package/dist/types/view/fields/large-text-box/index.stories.d.ts +2 -4
- package/dist/types/view/fields/radio/index.d.ts +2 -2
- package/dist/types/view/fields/radio/index.stories.d.ts +2 -4
- package/dist/types/view/fields/radio/set-value.stories.d.ts +1 -1
- package/dist/types/view/fields/radio-group/index.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.d.ts +1 -1
- package/dist/types/view/fields/text-box/index.stories.d.ts +1 -1
- package/dist/types/view/fields/watch-value.d.ts +2 -2
- package/dist/types/view/form/personal-info-section.d.ts +3 -3
- package/dist/types/view/form/submit-button/index.d.ts +2 -1
- package/dist/types/view/form/usecases.stories.d.ts +1 -1
- package/dist/types/view/live-message/index.d.ts +1 -1
- package/dist/types/view/login/index.d.ts +1 -2
- 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.d.ts +3 -2
- package/dist/types/view/modals/error/index.stories.d.ts +1 -1
- package/dist/types/view/modals/navigation-prompt/index.d.ts +0 -1
- package/dist/types/view/modals/navigation-prompt/index.stories.d.ts +1 -1
- package/dist/types/view/modals/session-expiry/index.d.ts +0 -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 +7 -3
- package/dist/types/view/modals/wait-message/use-html-wait-message.d.ts +1 -0
- package/dist/types/view/modals/wait-message/wait-message-launcher.d.ts +1 -2
- package/dist/types/view/page.d.ts +8 -0
- package/dist/types/view/require-auth.d.ts +8 -0
- package/dist/types/view/session-timeout/index.d.ts +1 -1
- package/dist/types/view/session-timeout/index.stories.d.ts +1 -4
- package/dist/types/view/storybook/decorator.d.ts +1 -1
- package/dist/types/view/use-window-size-change.d.ts +1 -0
- package/package.json +59 -28
- package/dist/cjs/route/index.js +0 -48
- package/dist/cjs/route/page-view.js +0 -38
- package/dist/cjs/route/private-route/index.js +0 -68
- package/dist/cjs/view/header/center-region/index.js +0 -64
- package/dist/cjs/view/header/index.js +0 -43
- package/dist/cjs/view/header/logo-region/index.js +0 -32
- package/dist/cjs/view/header/logo-region/logo.svg +0 -2
- package/dist/cjs/view/header/nav-region/index.js +0 -46
- package/dist/cjs/view/header/nav-region/notification/index.js +0 -31
- package/dist/cjs/view/header/nav-region/notification/index.svg +0 -5
- package/dist/cjs/view/header/nav-region/user/index.js +0 -31
- package/dist/cjs/view/header/nav-region/user/index.svg +0 -4
- package/dist/cjs/view/window-size/index.js +0 -41
- package/dist/es/route/index.js +0 -25
- package/dist/es/route/page-view.js +0 -15
- package/dist/es/route/private-route/index.js +0 -45
- package/dist/es/view/header/center-region/index.js +0 -41
- package/dist/es/view/header/index.js +0 -20
- package/dist/es/view/header/logo-region/index.js +0 -9
- package/dist/es/view/header/logo-region/logo.svg +0 -2
- package/dist/es/view/header/nav-region/index.js +0 -23
- package/dist/es/view/header/nav-region/notification/index.js +0 -8
- package/dist/es/view/header/nav-region/notification/index.svg +0 -5
- package/dist/es/view/header/nav-region/user/index.js +0 -8
- package/dist/es/view/header/nav-region/user/index.svg +0 -4
- package/dist/es/view/window-size/index.js +0 -18
- package/dist/types/route/index.d.ts +0 -8
- package/dist/types/route/page-view.d.ts +0 -1
- package/dist/types/route/private-route/index.d.ts +0 -8
- package/dist/types/utils/storybook/webpack.d.cts +0 -8
- package/dist/types/view/header/center-region/index.d.ts +0 -9
- package/dist/types/view/header/index.d.ts +0 -7
- package/dist/types/view/header/logo-region/index.d.ts +0 -2
- package/dist/types/view/header/nav-region/index.d.ts +0 -2
- package/dist/types/view/header/nav-region/notification/index.d.ts +0 -2
- package/dist/types/view/header/nav-region/user/index.d.ts +0 -2
- package/dist/types/view/media-breakpoint/index.d.ts +0 -2
- package/dist/types/view/modals/wait-message/html-wait-message.d.ts +0 -6
- package/dist/types/view/useMediaBreakpoints/index.d.ts +0 -1
- package/dist/types/view/window-size/index.d.ts +0 -2
|
@@ -1,14 +1,18 @@
|
|
|
1
|
+
import * as React from "react";
|
|
1
2
|
import styled from "styled-components";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import GlobalStyle from "./style";
|
|
3
|
+
import { useBreakpoint } from "../breakpoint/use-breakpoint.js";
|
|
4
|
+
import { useWindowSizeChange } from "../use-window-size-change.js";
|
|
5
|
+
import { useHTMLWaitMessage } from "../modals/wait-message/use-html-wait-message.js";
|
|
6
|
+
import GlobalStyle from "./style.js";
|
|
6
7
|
const Div = styled.div`
|
|
7
8
|
height: 100%;
|
|
8
9
|
`;
|
|
9
|
-
const HostedApp = ({ children }) =>
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
const HostedApp = ({ children }) => {
|
|
11
|
+
useBreakpoint();
|
|
12
|
+
useHTMLWaitMessage(true);
|
|
13
|
+
useWindowSizeChange();
|
|
14
|
+
return /* @__PURE__ */ React.createElement(Div, null, /* @__PURE__ */ React.createElement(GlobalStyle, null), children);
|
|
15
|
+
};
|
|
12
16
|
export {
|
|
13
17
|
HostedApp
|
|
14
18
|
};
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
+
import * as React from "react";
|
|
1
2
|
import { Provider } from "react-redux";
|
|
2
3
|
import { ThemeProvider } from "styled-components";
|
|
3
|
-
import { Router } from "react-router-dom";
|
|
4
4
|
import { getDefaultTheme } from "@elliemae/pui-theme";
|
|
5
5
|
import { useInjectSaga } from "redux-injectors";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
6
|
+
import { AppRouter } from "../app-router.js";
|
|
7
|
+
import { isStandAloneGuest, isHost } from "../../utils/micro-frontend/index.js";
|
|
8
|
+
import { waitMessage } from "../../sideeffect/wait-message/index.js";
|
|
9
|
+
import { errorToast } from "../../sideeffect/error-toast/index.js";
|
|
10
|
+
import { ErrorBoundary } from "../error-boundary/index.js";
|
|
11
|
+
import { StandAloneApp } from "./stand-alone-app.js";
|
|
12
|
+
import { HostedApp } from "./hosted-app.js";
|
|
12
13
|
const AppToRender = (props) => {
|
|
13
14
|
useInjectSaga({ key: "waitMessage", saga: waitMessage });
|
|
14
15
|
useInjectSaga({ key: "errorToast", saga: errorToast });
|
|
@@ -31,7 +32,7 @@ const AppRoot = ({
|
|
|
31
32
|
errorTemplate
|
|
32
33
|
}, /* @__PURE__ */ React.createElement(Provider, {
|
|
33
34
|
store
|
|
34
|
-
}, /* @__PURE__ */ React.createElement(
|
|
35
|
+
}, /* @__PURE__ */ React.createElement(AppRouter, {
|
|
35
36
|
history
|
|
36
37
|
}, /* @__PURE__ */ React.createElement(ThemeProvider, {
|
|
37
38
|
theme
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
+
import * as React from "react";
|
|
1
2
|
import styled from "styled-components";
|
|
2
3
|
import { LiveAnnouncer } from "react-aria-live";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { SessionTimeout } from "../session-timeout";
|
|
6
|
-
import { LiveMessage } from "../live-message";
|
|
7
|
-
import { ErrorToast } from "../error-toast";
|
|
8
|
-
import { WaitMessage as DefaultWaitMessage } from "../modals/wait-message";
|
|
9
|
-
import GlobalStyle from "./style";
|
|
4
|
+
import { useBreakpoint } from "../breakpoint/use-breakpoint.js";
|
|
5
|
+
import { useWindowSizeChange } from "../use-window-size-change.js";
|
|
6
|
+
import { SessionTimeout } from "../session-timeout/index.js";
|
|
7
|
+
import { LiveMessage } from "../live-message/index.js";
|
|
8
|
+
import { ErrorToast } from "../error-toast/index.js";
|
|
9
|
+
import { WaitMessage as DefaultWaitMessage } from "../modals/wait-message/index.js";
|
|
10
|
+
import GlobalStyle from "./style.js";
|
|
10
11
|
const Div = styled.div`
|
|
11
12
|
height: 100%;
|
|
12
13
|
`;
|
|
@@ -14,7 +15,11 @@ const StandAloneApp = ({
|
|
|
14
15
|
manageSession,
|
|
15
16
|
WaitMessage,
|
|
16
17
|
children
|
|
17
|
-
}) =>
|
|
18
|
+
}) => {
|
|
19
|
+
useBreakpoint();
|
|
20
|
+
useWindowSizeChange();
|
|
21
|
+
return /* @__PURE__ */ React.createElement(LiveAnnouncer, null, /* @__PURE__ */ React.createElement(Div, null, /* @__PURE__ */ React.createElement(GlobalStyle, null), manageSession && /* @__PURE__ */ React.createElement(SessionTimeout, null), /* @__PURE__ */ React.createElement(LiveMessage, null), WaitMessage || /* @__PURE__ */ React.createElement(DefaultWaitMessage, null), /* @__PURE__ */ React.createElement(ErrorToast, null), children));
|
|
22
|
+
};
|
|
18
23
|
export {
|
|
19
24
|
StandAloneApp
|
|
20
25
|
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { useState, useLayoutEffect } from "react";
|
|
3
|
+
import { Router } from "react-router-dom";
|
|
4
|
+
const AppRouter = ({ history, ...props }) => {
|
|
5
|
+
const [state, setState] = useState({
|
|
6
|
+
action: history.action,
|
|
7
|
+
location: history.location
|
|
8
|
+
});
|
|
9
|
+
useLayoutEffect(() => history.listen(setState), [history]);
|
|
10
|
+
return /* @__PURE__ */ React.createElement(Router, {
|
|
11
|
+
...props,
|
|
12
|
+
location: state.location,
|
|
13
|
+
navigationType: state.action,
|
|
14
|
+
navigator: history
|
|
15
|
+
});
|
|
16
|
+
};
|
|
17
|
+
export {
|
|
18
|
+
AppRouter
|
|
19
|
+
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { useEffect, useContext } from "react";
|
|
2
2
|
import { ThemeContext } from "styled-components";
|
|
3
3
|
import { publish } from "pubsub-js";
|
|
4
|
-
import { useAppDispatch } from "../../data/react-redux";
|
|
5
|
-
import { breakpoint } from "../../data/breakpoint";
|
|
6
|
-
import {
|
|
7
|
-
import { HOST_WINDOW_BREAKPOINT_CHANGED } from "../../utils/constants";
|
|
8
|
-
const
|
|
4
|
+
import { useAppDispatch } from "../../data/react-redux.js";
|
|
5
|
+
import { breakpoint } from "../../data/breakpoint/index.js";
|
|
6
|
+
import { useMediaQueryList } from "./use-media-query-list.js";
|
|
7
|
+
import { HOST_WINDOW_BREAKPOINT_CHANGED } from "../../utils/constants.js";
|
|
8
|
+
const useBreakpoint = () => {
|
|
9
9
|
const theme = useContext(ThemeContext);
|
|
10
|
-
const currentBreakpoint =
|
|
10
|
+
const currentBreakpoint = useMediaQueryList([
|
|
11
11
|
`(max-width: ${theme.breakpoints.small})`,
|
|
12
12
|
`(max-width: ${theme.breakpoints.medium})`,
|
|
13
13
|
`(max-width: ${theme.breakpoints.large})`
|
|
@@ -17,8 +17,7 @@ const MediaBreakpoint = () => {
|
|
|
17
17
|
dispatch({ type: breakpoint.change, payload: currentBreakpoint });
|
|
18
18
|
publish(HOST_WINDOW_BREAKPOINT_CHANGED, currentBreakpoint);
|
|
19
19
|
}, [currentBreakpoint, dispatch]);
|
|
20
|
-
return /* @__PURE__ */ React.createElement(React.Fragment, null);
|
|
21
20
|
};
|
|
22
21
|
export {
|
|
23
|
-
|
|
22
|
+
useBreakpoint
|
|
24
23
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useState, useEffect, useCallback } from "react";
|
|
2
|
-
const
|
|
2
|
+
const useMediaQueryList = (queries, values, defaultValue) => {
|
|
3
3
|
const mediaQueryLists = queries.map((q) => window.matchMedia(q));
|
|
4
4
|
const getValue = useCallback(() => {
|
|
5
5
|
const index = mediaQueryLists.findIndex((mql) => mql.matches);
|
|
@@ -8,11 +8,11 @@ const useMediaBreakpoints = (queries, values, defaultValue) => {
|
|
|
8
8
|
const [value, setValue] = useState(getValue);
|
|
9
9
|
useEffect(() => {
|
|
10
10
|
const handler = () => setValue(getValue);
|
|
11
|
-
mediaQueryLists.forEach((mql) => mql.
|
|
12
|
-
return () => mediaQueryLists.forEach((mql) => mql.
|
|
11
|
+
mediaQueryLists.forEach((mql) => mql.addEventListener("change", handler));
|
|
12
|
+
return () => mediaQueryLists.forEach((mql) => mql.removeEventListener("change", handler));
|
|
13
13
|
}, [getValue, mediaQueryLists]);
|
|
14
14
|
return value;
|
|
15
15
|
};
|
|
16
16
|
export {
|
|
17
|
-
|
|
17
|
+
useMediaQueryList
|
|
18
18
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
const DefaultErrorTemplate = (props) => /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement("h2", null, "We are unable to process your request"), /* @__PURE__ */ React.createElement("section", null, "Please close your browser and login again"));
|
|
2
3
|
export {
|
|
3
4
|
DefaultErrorTemplate
|
|
4
5
|
};
|
|
@@ -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,24 +1,17 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { DSControlledCheckbox } from "@elliemae/ds-controlled-form";
|
|
2
3
|
import {
|
|
3
4
|
Controller
|
|
4
5
|
} from "react-hook-form";
|
|
5
|
-
const CheckBox = ({
|
|
6
|
-
name,
|
|
7
|
-
defaultChecked = false,
|
|
8
|
-
rules = {},
|
|
9
|
-
...rest
|
|
10
|
-
}) => /* @__PURE__ */ React.createElement(Controller, {
|
|
6
|
+
const CheckBox = ({ name, rules = {}, ...rest }) => /* @__PURE__ */ React.createElement(Controller, {
|
|
11
7
|
name,
|
|
12
8
|
rules,
|
|
13
|
-
render: ({ field: {
|
|
9
|
+
render: ({ field: { value = false, ...restProps } }) => /* @__PURE__ */ React.createElement(DSControlledCheckbox, {
|
|
14
10
|
...rest,
|
|
15
11
|
...restProps,
|
|
16
|
-
|
|
17
|
-
checked: value,
|
|
18
|
-
onChange: (e) => onChange(((e || {}).target || {}).checked)
|
|
12
|
+
checked: value
|
|
19
13
|
})
|
|
20
14
|
});
|
|
21
15
|
export {
|
|
22
|
-
CHECKBOX_VARIANT,
|
|
23
16
|
CheckBox
|
|
24
17
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { DSComboBox } from "@elliemae/ds-form/ComboBox";
|
|
2
3
|
import {
|
|
3
4
|
Controller
|
|
4
5
|
} from "react-hook-form";
|
|
@@ -6,7 +7,6 @@ const ComboBox = ({
|
|
|
6
7
|
name,
|
|
7
8
|
defaultValue = "",
|
|
8
9
|
rules = {},
|
|
9
|
-
onChange: changeHandler,
|
|
10
10
|
...rest
|
|
11
11
|
}) => /* @__PURE__ */ React.createElement(Controller, {
|
|
12
12
|
name,
|
|
@@ -16,9 +16,8 @@ const ComboBox = ({
|
|
|
16
16
|
...rest,
|
|
17
17
|
...props,
|
|
18
18
|
onChange: (selected) => {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
changeHandler(selected);
|
|
19
|
+
const { value = selected } = selected;
|
|
20
|
+
onChange(value);
|
|
22
21
|
}
|
|
23
22
|
})
|
|
24
23
|
});
|
|
@@ -1,10 +1,8 @@
|
|
|
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
|
-
const FormItemLayout = ({
|
|
5
|
-
name,
|
|
6
|
-
...rest
|
|
7
|
-
}) => /* @__PURE__ */ React.createElement(ConnectForm, null, ({
|
|
4
|
+
import { ConnectForm } from "../connect-form.js";
|
|
5
|
+
const FormItemLayout = ({ name, ...rest }) => /* @__PURE__ */ React.createElement(ConnectForm, null, ({
|
|
8
6
|
formState: { errors }
|
|
9
7
|
}) => {
|
|
10
8
|
const errorField = get(errors, name);
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { DSFormLayoutBlockItem } from "@elliemae/ds-form-layout-blocks";
|
|
3
|
+
import { get } from "react-hook-form";
|
|
4
|
+
import { ConnectForm } from "../connect-form.js";
|
|
5
|
+
const FormLayoutBlockItem = ({
|
|
6
|
+
inputID,
|
|
7
|
+
label,
|
|
8
|
+
...rest
|
|
9
|
+
}) => /* @__PURE__ */ React.createElement(ConnectForm, null, ({
|
|
10
|
+
formState: { errors }
|
|
11
|
+
}) => {
|
|
12
|
+
const errorField = get(errors, inputID);
|
|
13
|
+
const hasError = !!errorField;
|
|
14
|
+
const validationMessage = errorField?.message;
|
|
15
|
+
return /* @__PURE__ */ React.createElement(DSFormLayoutBlockItem, {
|
|
16
|
+
inputID,
|
|
17
|
+
label,
|
|
18
|
+
hasError,
|
|
19
|
+
validationMessage,
|
|
20
|
+
...rest
|
|
21
|
+
});
|
|
22
|
+
});
|
|
23
|
+
export {
|
|
24
|
+
FormLayoutBlockItem
|
|
25
|
+
};
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { DSRadioGroup } from "@elliemae/ds-form/RadioGroup";
|
|
2
3
|
import {
|
|
3
4
|
Controller
|
|
4
5
|
} from "react-hook-form";
|
|
5
|
-
const RadioGroup = ({
|
|
6
|
-
name,
|
|
7
|
-
rules = {},
|
|
8
|
-
...rest
|
|
9
|
-
}) => /* @__PURE__ */ React.createElement(Controller, {
|
|
6
|
+
const RadioGroup = ({ name, rules = {}, ...rest }) => /* @__PURE__ */ React.createElement(Controller, {
|
|
10
7
|
name,
|
|
11
8
|
rules,
|
|
12
9
|
render: ({ field: { value, ...restProps } }) => /* @__PURE__ */ React.createElement(DSRadioGroup, {
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
import * as React from "react";
|
|
1
2
|
import styled from "styled-components";
|
|
3
|
+
import { Grid } from "@elliemae/ds-grid";
|
|
2
4
|
import { useFormContext } from "react-hook-form";
|
|
3
5
|
const Section = styled.section`
|
|
6
|
+
margin-top: 10px;
|
|
4
7
|
border-top: 2px blue dotted;
|
|
5
8
|
width: 100%;
|
|
6
9
|
`;
|
|
@@ -10,10 +13,10 @@ const Div = styled.div`
|
|
|
10
13
|
padding-left: 10px;
|
|
11
14
|
align-items: flex-start;
|
|
12
15
|
`;
|
|
13
|
-
const WatchValue = ({ name,
|
|
16
|
+
const WatchValue = ({ name, label }) => {
|
|
14
17
|
const { watch } = useFormContext();
|
|
15
18
|
const data = watch(name, false) || "";
|
|
16
|
-
return /* @__PURE__ */ React.createElement(Section, null, /* @__PURE__ */ React.createElement("h4", null, "Form Data:"), /* @__PURE__ */ React.createElement(Div, null, /* @__PURE__ */ React.createElement("div", null,
|
|
19
|
+
return /* @__PURE__ */ React.createElement(Grid, null, /* @__PURE__ */ React.createElement(Section, null, /* @__PURE__ */ React.createElement("h4", null, "Form Data:"), /* @__PURE__ */ React.createElement(Div, null, /* @__PURE__ */ React.createElement("div", null, label, " : ", /* @__PURE__ */ React.createElement("strong", null, JSON.stringify(data))))));
|
|
17
20
|
};
|
|
18
21
|
export {
|
|
19
22
|
WatchValue
|
|
@@ -1,49 +1,54 @@
|
|
|
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 {
|
|
6
|
-
const FirstName = () => /* @__PURE__ */ React.createElement(
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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 { FormLayoutBlockItem } from "../fields/form-layout-block-item/index.js";
|
|
7
|
+
const FirstName = () => /* @__PURE__ */ React.createElement(FormLayoutBlockItem, {
|
|
8
|
+
label: "First Name",
|
|
9
|
+
inputID: "firstname",
|
|
10
|
+
required: true
|
|
11
|
+
}, /* @__PURE__ */ React.createElement(TextBox, {
|
|
12
|
+
id: "firstname",
|
|
10
13
|
name: "firstname",
|
|
11
|
-
required: true,
|
|
12
14
|
rules: {
|
|
13
15
|
required: { value: true, message: "First Name is required" },
|
|
14
16
|
minLength: { value: 2, message: "Minimum 2 characters" },
|
|
15
17
|
maxLength: { value: 50, message: "Maximum 50 characters" }
|
|
16
18
|
}
|
|
17
|
-
});
|
|
18
|
-
const DOB = () => /* @__PURE__ */ React.createElement(
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
}));
|
|
20
|
+
const DOB = () => /* @__PURE__ */ React.createElement(FormLayoutBlockItem, {
|
|
21
|
+
label: "Date of Birth",
|
|
22
|
+
inputID: "dob",
|
|
23
|
+
required: true
|
|
24
|
+
}, /* @__PURE__ */ React.createElement(DateInput, {
|
|
25
|
+
id: "dob",
|
|
22
26
|
name: "dob",
|
|
23
|
-
required: true,
|
|
24
27
|
rules: {
|
|
25
28
|
required: { value: true, message: "Date of Birth is required" },
|
|
26
29
|
validate: (value) => moment() > value || "Date of Birth can not be greater than current date"
|
|
27
30
|
}
|
|
28
|
-
});
|
|
29
|
-
const State = () => /* @__PURE__ */ React.createElement(
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
}));
|
|
32
|
+
const State = () => /* @__PURE__ */ React.createElement(FormLayoutBlockItem, {
|
|
33
|
+
label: "State",
|
|
34
|
+
inputID: "state",
|
|
35
|
+
required: true
|
|
36
|
+
}, /* @__PURE__ */ React.createElement(ComboBox, {
|
|
37
|
+
id: "state",
|
|
33
38
|
name: "state",
|
|
34
|
-
required: true,
|
|
35
39
|
rules: { required: { value: true, message: "State is required" } },
|
|
36
40
|
options: [
|
|
37
41
|
{ value: "ca", label: "California" },
|
|
38
42
|
{ value: "nj", label: "New Jersey" }
|
|
39
43
|
]
|
|
40
|
-
});
|
|
41
|
-
const MaritalStatus = () => /* @__PURE__ */ React.createElement(
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
44
|
+
}));
|
|
45
|
+
const MaritalStatus = () => /* @__PURE__ */ React.createElement(FormLayoutBlockItem, {
|
|
46
|
+
label: "Marital Status",
|
|
47
|
+
inputID: "marital_status",
|
|
48
|
+
required: true
|
|
49
|
+
}, /* @__PURE__ */ React.createElement(ComboBox, {
|
|
50
|
+
id: "marital_status",
|
|
45
51
|
name: "marital_status",
|
|
46
|
-
required: true,
|
|
47
52
|
rules: {
|
|
48
53
|
required: { value: true, message: "Marital Status is required" }
|
|
49
54
|
},
|
|
@@ -51,7 +56,7 @@ const MaritalStatus = () => /* @__PURE__ */ React.createElement(FormItemLayout,
|
|
|
51
56
|
{ value: "married", label: "Married" },
|
|
52
57
|
{ value: "single", label: "Single" }
|
|
53
58
|
]
|
|
54
|
-
});
|
|
59
|
+
}));
|
|
55
60
|
export {
|
|
56
61
|
DOB,
|
|
57
62
|
FirstName,
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
+
import * as React from "react";
|
|
1
2
|
import { useFormContext } from "react-hook-form";
|
|
2
|
-
import
|
|
3
|
-
const FormSubmitButton = ({
|
|
4
|
-
...rest
|
|
5
|
-
}) => {
|
|
3
|
+
import { DSButtonV2 } from "@elliemae/ds-button";
|
|
4
|
+
const FormSubmitButton = ({ ...rest }) => {
|
|
6
5
|
const {
|
|
7
6
|
formState,
|
|
8
7
|
formProps: { mode }
|
|
9
8
|
} = useFormContext();
|
|
10
|
-
return /* @__PURE__ */ React.createElement(
|
|
9
|
+
return /* @__PURE__ */ React.createElement(DSButtonV2, {
|
|
11
10
|
...rest,
|
|
12
11
|
type: "submit",
|
|
13
12
|
disabled: mode !== "onSubmit" && (!formState.isDirty || formState.isDirty && !formState.isValid)
|
|
@@ -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,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,12 +1,8 @@
|
|
|
1
1
|
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";
|
|
5
|
-
const Login = ({
|
|
6
|
-
clientId,
|
|
7
|
-
scope,
|
|
8
|
-
responseType
|
|
9
|
-
}) => {
|
|
2
|
+
import { useAppDispatch } from "../../data/react-redux.js";
|
|
3
|
+
import { login } from "../../utils/auth/index.js";
|
|
4
|
+
import { LOGIN_SUCCESS } from "../../data/auth/actions.js";
|
|
5
|
+
const Login = ({ clientId, scope, responseType }) => {
|
|
10
6
|
const dispatch = useAppDispatch();
|
|
11
7
|
useEffect(() => {
|
|
12
8
|
login({ clientId, scope, responseType }).then(() => {
|
|
@@ -14,7 +10,7 @@ const Login = ({
|
|
|
14
10
|
}).catch(() => {
|
|
15
11
|
});
|
|
16
12
|
}, [dispatch, clientId, scope, responseType]);
|
|
17
|
-
return
|
|
13
|
+
return null;
|
|
18
14
|
};
|
|
19
15
|
export {
|
|
20
16
|
Login
|