@elliemae/pui-app-sdk 4.0.0-beta.5 → 4.1.0
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/README.md +5 -1
- package/dist/cjs/analytics/appdynamics.js +6 -16
- package/dist/cjs/analytics/index.js +2 -15
- package/dist/cjs/analytics/page-view-event.js +1 -0
- package/dist/cjs/analytics/user-session-event.js +1 -0
- package/dist/cjs/analytics/user-wait-event.js +1 -0
- package/dist/cjs/analytics/web-analytics.js +2 -15
- package/dist/cjs/api/auth/index.js +9 -2
- package/dist/cjs/api/helpers.js +8 -1
- package/dist/cjs/api/users/index.js +4 -1
- package/dist/cjs/communication/http-client/index.js +14 -43
- package/dist/cjs/communication/http-client/request-interceptor.js +1 -0
- package/dist/cjs/communication/http-client/response-interceptor.js +5 -1
- package/dist/cjs/communication/http-client/retry-axios.js +5 -1
- package/dist/cjs/communication/http-client/retry.js +1 -0
- package/dist/cjs/data/auth/actions.js +1 -0
- package/dist/cjs/data/auth/reducer.js +15 -8
- package/dist/cjs/data/breakpoint/index.js +5 -1
- package/dist/cjs/data/error/index.js +1 -0
- package/dist/cjs/data/index.js +2 -0
- package/dist/cjs/data/live-message/index.js +1 -0
- package/dist/cjs/data/logout/actions.js +1 -0
- package/dist/cjs/data/navigation-prompt/actions.js +1 -0
- package/dist/cjs/data/react-redux.js +1 -0
- package/dist/cjs/data/reducers.js +5 -17
- package/dist/cjs/data/saga.js +1 -0
- package/dist/cjs/data/store.js +11 -2
- package/dist/cjs/data/wait-message/actions.js +1 -0
- package/dist/cjs/data/wait-message/reducer.js +5 -1
- package/dist/cjs/data/webpack-hmr.js +1 -0
- package/dist/cjs/index.js +13 -1
- package/dist/cjs/micro-frontend.js +1 -0
- package/dist/cjs/sideeffect/auth/index.js +7 -21
- package/dist/cjs/sideeffect/error-toast/index.js +7 -20
- package/dist/cjs/sideeffect/wait-message/index.js +13 -23
- package/dist/cjs/utils/app-config/config.js +5 -1
- package/dist/cjs/utils/app-config/index.js +12 -4
- package/dist/cjs/utils/app-host-integration/react.js +1 -0
- package/dist/cjs/utils/auth/helper.js +5 -1
- package/dist/cjs/utils/auth/index.js +13 -25
- package/dist/cjs/utils/await.js +1 -0
- package/dist/cjs/utils/constants.js +1 -0
- package/dist/cjs/utils/font-size.js +1 -0
- package/dist/cjs/utils/guest-with-service.js +1 -0
- package/dist/cjs/utils/helpers.js +2 -1
- package/dist/cjs/utils/history.js +1 -0
- package/dist/cjs/utils/log-records.js +1 -0
- package/dist/cjs/utils/micro-frontend/console-logger.js +1 -0
- package/dist/cjs/utils/micro-frontend/guest.js +10 -7
- package/dist/cjs/utils/micro-frontend/host.js +10 -3
- package/dist/cjs/utils/micro-frontend/index.js +28 -10
- package/dist/cjs/utils/micro-frontend/ssfguest-adapter.js +11 -3
- package/dist/cjs/utils/micro-frontend/types.js +1 -0
- package/dist/cjs/utils/redact-pii.js +9 -2
- package/dist/cjs/utils/service-worker.js +4 -2
- package/dist/cjs/utils/session.js +15 -4
- package/dist/cjs/utils/storybook/cjs/main.js +1 -0
- package/dist/cjs/utils/storybook/cjs/middleware.js +1 -0
- package/dist/cjs/utils/storybook/cjs/vite.js +1 -0
- package/dist/cjs/utils/storybook/cjs/webpack.js +2 -4
- package/dist/cjs/utils/storybook/manager.js +1 -0
- package/dist/cjs/utils/storybook/preview.js +2 -1
- package/dist/cjs/utils/storybook/theme.js +10 -39
- package/dist/cjs/utils/testing/index.js +7 -22
- package/dist/cjs/utils/testing/render-with-redux.js +7 -24
- package/dist/cjs/utils/testing/render-with-router-redux.js +12 -26
- package/dist/cjs/utils/testing/render-with-router.js +9 -26
- package/dist/cjs/utils/testing/render-with-state-addons.js +15 -45
- package/dist/cjs/utils/types.js +1 -0
- package/dist/cjs/utils/url.js +1 -0
- package/dist/cjs/utils/web-storage.js +5 -1
- package/dist/cjs/utils/window.js +9 -2
- package/dist/cjs/view/app-root/hosted-app.js +14 -3
- package/dist/cjs/view/app-root/index.js +29 -31
- package/dist/cjs/view/app-root/stand-alone-app.js +18 -3
- package/dist/cjs/view/app-root/style.js +1 -0
- package/dist/cjs/view/app-router.js +7 -37
- package/dist/cjs/view/breakpoint/use-breakpoint.js +10 -5
- package/dist/cjs/view/breakpoint/use-media-query-list.js +4 -1
- package/dist/cjs/view/error-boundary/default-error-template.js +12 -5
- package/dist/cjs/view/error-boundary/index.js +10 -21
- package/dist/cjs/view/error-toast/index.js +11 -23
- package/dist/cjs/view/fetch-host-app-data/index.js +5 -1
- package/dist/cjs/view/fetch-host-app-data/store.js +2 -15
- package/dist/cjs/view/fields/autocomplete/index.js +47 -0
- package/dist/cjs/view/fields/check-box/index.js +11 -46
- package/dist/cjs/view/fields/combo-box/index.js +19 -57
- package/dist/cjs/view/fields/combo-box-v3/index.js +42 -0
- package/dist/cjs/view/fields/connect-form.js +4 -15
- package/dist/cjs/view/fields/date-input/index.js +16 -47
- package/dist/cjs/view/fields/date-picker/index.js +20 -45
- package/dist/cjs/view/fields/date-range-picker/index.js +30 -62
- package/dist/cjs/view/fields/date-time-picker/index.js +18 -56
- package/dist/cjs/view/fields/form-item-layout/index.js +10 -38
- package/dist/cjs/view/fields/form-layout-block-item/index.js +14 -44
- package/dist/cjs/view/fields/input-mask/index.js +28 -47
- package/dist/cjs/view/fields/input-text/index.js +16 -47
- package/dist/cjs/view/fields/large-text-box/index.js +16 -47
- package/dist/cjs/view/fields/radio/index.js +18 -56
- package/dist/cjs/view/fields/radio-group/index.js +11 -46
- package/dist/cjs/view/fields/text-box/index.js +16 -47
- package/dist/cjs/view/fields/toggle/index.js +19 -57
- package/dist/cjs/view/fields/watch-value.js +26 -3
- package/dist/cjs/view/form/index.js +14 -19
- package/dist/cjs/view/form/personal-info-section.js +55 -47
- package/dist/cjs/view/form/submit-button/index.js +6 -37
- package/dist/cjs/view/guest-unload-handlers/index.js +1 -0
- package/dist/cjs/view/host-binding-events/index.js +1 -0
- package/dist/cjs/view/live-message/index.js +3 -5
- package/dist/cjs/view/loadable/index.js +9 -22
- package/dist/cjs/view/login/index.js +15 -3
- package/dist/cjs/view/message-to-host-app/index.js +1 -0
- package/dist/cjs/view/micro-app/app-factory/index.js +11 -21
- package/dist/cjs/view/micro-app/const.js +1 -0
- package/dist/cjs/view/micro-app/index.js +7 -3
- package/dist/cjs/view/micro-app/resources/manifest.js +11 -3
- package/dist/cjs/view/micro-app/resources/script.js +8 -2
- package/dist/cjs/view/micro-app/resources/style.js +8 -2
- package/dist/cjs/view/micro-app/types.js +1 -0
- package/dist/cjs/view/micro-app/use-app-will-render.js +38 -44
- package/dist/cjs/view/micro-app/utils.js +1 -0
- package/dist/cjs/view/micro-iframe-app/app.js +24 -47
- package/dist/cjs/view/micro-iframe-app/iframe/const.js +1 -0
- package/dist/cjs/view/micro-iframe-app/iframe/index.js +23 -32
- package/dist/cjs/view/micro-iframe-app/index.js +6 -37
- package/dist/cjs/view/micro-iframe-app/types.js +1 -0
- package/dist/cjs/view/micro-iframe-app/use-frame-loaded.js +1 -0
- package/dist/cjs/view/modals/error/index.js +22 -12
- package/dist/cjs/view/modals/navigation-prompt/index.js +47 -27
- package/dist/cjs/view/modals/session-expiry/customHooks.js +7 -2
- package/dist/cjs/view/modals/session-expiry/index.js +58 -35
- package/dist/cjs/view/modals/wait-message/index.js +26 -58
- package/dist/cjs/view/modals/wait-message/use-html-wait-message.js +1 -0
- package/dist/cjs/view/modals/wait-message/wait-message-launcher.js +1 -0
- package/dist/cjs/view/page.js +16 -3
- package/dist/cjs/view/render-with-delay/index.js +5 -5
- package/dist/cjs/view/render-with-host-data/index.js +3 -5
- package/dist/cjs/view/require-auth.js +22 -9
- package/dist/cjs/view/session-timeout/index.js +16 -14
- package/dist/cjs/view/storybook/decorator.js +6 -7
- package/dist/cjs/view/use-previous.js +1 -0
- package/dist/cjs/view/use-window-size-change.js +1 -0
- package/dist/cjs/view/visually-hidden/index.js +12 -19
- package/dist/esm/analytics/appdynamics.js +1 -17
- package/dist/esm/analytics/index.js +1 -17
- package/dist/esm/analytics/web-analytics.js +1 -17
- package/dist/esm/api/auth/index.js +8 -2
- package/dist/esm/api/helpers.js +7 -1
- package/dist/esm/api/users/index.js +3 -1
- package/dist/esm/communication/http-client/index.js +9 -44
- package/dist/esm/data/auth/reducer.js +10 -7
- package/dist/esm/data/index.js +6 -1
- package/dist/esm/data/reducers.js +4 -19
- package/dist/esm/data/store.js +6 -1
- package/dist/esm/index.js +14 -1
- package/dist/esm/sideeffect/auth/index.js +6 -23
- package/dist/esm/sideeffect/error-toast/index.js +6 -22
- package/dist/esm/sideeffect/wait-message/index.js +12 -25
- package/dist/esm/utils/app-config/index.js +7 -3
- package/dist/esm/utils/auth/index.js +12 -27
- package/dist/esm/utils/helpers.js +1 -1
- package/dist/esm/utils/micro-frontend/guest.js +5 -6
- package/dist/esm/utils/micro-frontend/host.js +9 -3
- package/dist/esm/utils/micro-frontend/index.js +23 -9
- package/dist/esm/utils/micro-frontend/ssfguest-adapter.js +6 -2
- package/dist/esm/utils/redact-pii.js +8 -2
- package/dist/esm/utils/service-worker.js +3 -2
- package/dist/esm/utils/session.js +14 -4
- package/dist/esm/utils/storybook/preview.js +1 -1
- package/dist/esm/utils/storybook/theme.js +9 -41
- package/dist/esm/utils/testing/index.js +6 -21
- package/dist/esm/utils/testing/render-with-redux.js +6 -23
- package/dist/esm/utils/testing/render-with-router-redux.js +11 -25
- package/dist/esm/utils/testing/render-with-router.js +8 -25
- package/dist/esm/utils/testing/render-with-state-addons.js +14 -44
- package/dist/esm/utils/window.js +8 -2
- package/dist/esm/view/app-root/hosted-app.js +9 -2
- package/dist/esm/view/app-root/index.js +28 -30
- package/dist/esm/view/app-root/stand-alone-app.js +13 -2
- package/dist/esm/view/app-router.js +6 -36
- package/dist/esm/view/breakpoint/use-breakpoint.js +9 -5
- package/dist/esm/view/breakpoint/use-media-query-list.js +3 -1
- package/dist/esm/view/error-boundary/default-error-template.js +11 -2
- package/dist/esm/view/error-boundary/index.js +5 -22
- package/dist/esm/view/error-toast/index.js +10 -22
- package/dist/esm/view/fetch-host-app-data/store.js +1 -17
- package/dist/esm/view/fields/autocomplete/index.js +27 -0
- package/dist/esm/view/fields/check-box/index.js +10 -45
- package/dist/esm/view/fields/combo-box/index.js +18 -56
- package/dist/esm/view/fields/combo-box-v3/index.js +24 -0
- package/dist/esm/view/fields/connect-form.js +3 -17
- package/dist/esm/view/fields/date-input/index.js +15 -46
- package/dist/esm/view/fields/date-picker/index.js +15 -46
- package/dist/esm/view/fields/date-range-picker/index.js +29 -61
- package/dist/esm/view/fields/date-time-picker/index.js +17 -55
- package/dist/esm/view/fields/form-item-layout/index.js +9 -37
- package/dist/esm/view/fields/form-layout-block-item/index.js +13 -43
- package/dist/esm/view/fields/input-mask/index.js +27 -46
- package/dist/esm/view/fields/input-text/index.js +15 -46
- package/dist/esm/view/fields/large-text-box/index.js +15 -46
- package/dist/esm/view/fields/radio/index.js +17 -55
- package/dist/esm/view/fields/radio-group/index.js +10 -45
- package/dist/esm/view/fields/text-box/index.js +15 -46
- package/dist/esm/view/fields/toggle/index.js +18 -56
- package/dist/esm/view/fields/watch-value.js +21 -2
- package/dist/esm/view/form/index.js +9 -20
- package/dist/esm/view/form/personal-info-section.js +50 -46
- package/dist/esm/view/form/submit-button/index.js +5 -36
- package/dist/esm/view/live-message/index.js +2 -2
- package/dist/esm/view/loadable/index.js +8 -21
- package/dist/esm/view/login/index.js +15 -4
- package/dist/esm/view/micro-app/app-factory/index.js +10 -23
- package/dist/esm/view/micro-app/index.js +2 -2
- package/dist/esm/view/micro-app/resources/manifest.js +10 -3
- package/dist/esm/view/micro-app/resources/script.js +7 -2
- package/dist/esm/view/micro-app/resources/style.js +7 -2
- package/dist/esm/view/micro-app/use-app-will-render.js +37 -46
- package/dist/esm/view/micro-iframe-app/app.js +19 -48
- package/dist/esm/view/micro-iframe-app/iframe/index.js +18 -33
- package/dist/esm/view/micro-iframe-app/index.js +5 -36
- package/dist/esm/view/modals/error/index.js +21 -9
- package/dist/esm/view/modals/navigation-prompt/index.js +46 -24
- package/dist/esm/view/modals/session-expiry/customHooks.js +6 -2
- package/dist/esm/view/modals/session-expiry/index.js +57 -32
- package/dist/esm/view/modals/wait-message/index.js +25 -57
- package/dist/esm/view/page.js +11 -2
- package/dist/esm/view/render-with-delay/index.js +4 -2
- package/dist/esm/view/render-with-host-data/index.js +2 -2
- package/dist/esm/view/require-auth.js +18 -9
- package/dist/esm/view/session-timeout/index.js +15 -11
- package/dist/esm/view/storybook/decorator.js +5 -4
- package/dist/esm/view/visually-hidden/index.js +7 -20
- package/dist/types/__mocks__/@elliemae/em-ssf-guest.d.ts +6 -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 +0 -0
- package/dist/types/{communication → lib/communication}/http-client/tests/hello.endpoint.d.ts +0 -0
- package/dist/types/{communication → lib/communication}/http-client/tests/index.test.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/{data → lib/data}/index.d.ts +1 -1
- 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/{data → lib/data}/react-redux.d.ts +0 -0
- package/dist/types/{data → lib/data}/reducers.d.ts +0 -0
- package/dist/types/{data → lib/data}/saga.d.ts +0 -0
- package/dist/types/{data → lib/data}/store.d.ts +1 -1
- package/dist/types/{data → lib/data}/tests/store.test.d.ts +0 -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/{data → lib/data}/webpack-hmr.d.ts +0 -0
- package/dist/types/{index.d.ts → lib/index.d.ts} +6 -3
- package/dist/types/{micro-frontend.d.ts → lib/micro-frontend.d.ts} +0 -0
- package/dist/types/{sideeffect → lib/sideeffect}/auth/index.d.ts +0 -0
- 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/lib/utils/app-config/index.d.ts +1 -0
- package/dist/types/{utils → lib/utils}/app-host-integration/react.d.ts +0 -0
- package/dist/types/{utils → lib/utils}/auth/helper.d.ts +0 -0
- package/dist/types/{utils → lib/utils}/auth/index.d.ts +3 -1
- 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 +0 -0
- package/dist/types/{utils → lib/utils}/micro-frontend/host.d.ts +3 -3
- package/dist/types/{utils → lib/utils}/micro-frontend/index.d.ts +0 -0
- package/dist/types/{utils → lib/utils}/micro-frontend/ssfguest-adapter.d.ts +2 -2
- package/dist/types/lib/utils/micro-frontend/tests/guest-ssf-host.test.d.ts +1 -0
- package/dist/types/lib/utils/micro-frontend/tests/guest.test.d.ts +1 -0
- package/dist/types/{utils → lib/utils}/micro-frontend/types.d.ts +0 -0
- 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 → lib/utils}/storybook/cjs/main.d.ts +0 -0
- package/dist/types/{utils → lib/utils}/storybook/cjs/middleware.d.ts +0 -0
- package/dist/types/{utils → lib/utils}/storybook/cjs/vite.d.ts +0 -0
- package/dist/types/{utils → lib/utils}/storybook/cjs/webpack.d.ts +0 -0
- package/dist/types/{utils → lib/utils}/storybook/manager.d.ts +0 -0
- package/dist/types/{utils → lib/utils}/storybook/preview.d.ts +0 -0
- package/dist/types/{utils → lib/utils}/storybook/theme.d.ts +0 -0
- package/dist/types/lib/utils/testing/index.d.ts +4 -0
- package/dist/types/{utils → lib/utils}/testing/render-with-redux.d.ts +0 -0
- package/dist/types/{utils → lib/utils}/testing/render-with-router-redux.d.ts +0 -0
- 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 +2 -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}/app-router.d.ts +1 -1
- package/dist/types/{view → lib/view}/breakpoint/index.stories.d.ts +0 -0
- package/dist/types/{view → lib/view}/breakpoint/use-breakpoint.d.ts +0 -0
- package/dist/types/{view → lib/view}/breakpoint/use-media-query-list.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 +2 -1
- 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/lib/view/fields/autocomplete/index.d.ts +13 -0
- package/dist/types/lib/view/fields/autocomplete/index.stories.d.ts +5 -0
- package/dist/types/{view → lib/view}/fields/check-box/index.d.ts +0 -0
- package/dist/types/{view → lib/view}/fields/check-box/index.stories.d.ts +0 -0
- package/dist/types/{view → lib/view}/fields/check-box/set-value.stories.d.ts +0 -0
- 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 +0 -0
- package/dist/types/lib/view/fields/combo-box-v3/index.d.ts +9 -0
- package/dist/types/lib/view/fields/combo-box-v3/index.stories.d.ts +5 -0
- 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 +0 -0
- 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 +0 -0
- package/dist/types/{view → lib/view}/fields/date-range-picker/index.d.ts +0 -0
- package/dist/types/{view → lib/view}/fields/date-range-picker/index.stories.d.ts +0 -0
- package/dist/types/{view → lib/view}/fields/date-time-picker/index.d.ts +0 -0
- package/dist/types/{view → lib/view}/fields/date-time-picker/index.stories.d.ts +0 -0
- package/dist/types/{view → lib/view}/fields/form-item-layout/index.d.ts +1 -1
- package/dist/types/{view → lib/view}/fields/form-item-layout/index.stories.d.ts +0 -0
- package/dist/types/{view → lib/view}/fields/form-layout-block-item/index.d.ts +0 -0
- package/dist/types/{view → lib/view}/fields/form-layout-block-item/index.stories.d.ts +0 -0
- package/dist/types/{view → lib/view}/fields/input-mask/index.d.ts +3 -1
- package/dist/types/{view → lib/view}/fields/input-mask/index.stories.d.ts +0 -0
- package/dist/types/{view → lib/view}/fields/input-text/index.d.ts +0 -0
- package/dist/types/{view → lib/view}/fields/input-text/index.stories.d.ts +0 -0
- 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 +0 -0
- 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 +0 -0
- package/dist/types/{view → lib/view}/fields/radio/set-value.stories.d.ts +0 -0
- 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 +0 -0
- package/dist/types/lib/view/fields/tests/combo-box-v3.test.d.ts +1 -0
- 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 +0 -0
- package/dist/types/{view → lib/view}/fields/toggle/index.d.ts +0 -0
- package/dist/types/{view → lib/view}/fields/toggle/index.stories.d.ts +0 -0
- 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 +0 -0
- package/dist/types/{view → lib/view}/guest-unload-handlers/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/lib/view/login/index.d.ts +9 -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 +0 -0
- package/dist/types/{view → lib/view}/micro-app/const.d.ts +0 -0
- package/dist/types/{view → lib/view}/micro-app/index.d.ts +0 -0
- package/dist/types/{view → lib/view}/micro-app/resources/manifest.d.ts +0 -0
- package/dist/types/{view → lib/view}/micro-app/resources/script.d.ts +0 -0
- package/dist/types/{view → lib/view}/micro-app/resources/style.d.ts +0 -0
- 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 +0 -0
- 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 +0 -0
- 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 +0 -0
- package/dist/types/{view → lib/view}/micro-iframe-app/types.d.ts +0 -0
- package/dist/types/{view → lib/view}/micro-iframe-app/use-frame-loaded.d.ts +0 -0
- 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 +0 -0
- package/dist/types/{view → lib/view}/modals/navigation-prompt/index.d.ts +1 -1
- package/dist/types/{view → lib/view}/modals/navigation-prompt/index.stories.d.ts +0 -0
- 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 +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 +0 -0
- package/dist/types/{view → lib/view}/modals/wait-message/use-html-wait-message.d.ts +0 -0
- package/dist/types/{view → lib/view}/modals/wait-message/wait-message-launcher.d.ts +0 -0
- package/dist/types/{view → lib/view}/page.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}/require-auth.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 +0 -0
- package/dist/types/{view → lib/view}/use-previous.d.ts +0 -0
- package/dist/types/{view → lib/view}/use-window-size-change.d.ts +0 -0
- package/dist/types/{view → lib/view}/visually-hidden/index.d.ts +0 -0
- package/package.json +55 -50
- package/dist/types/utils/app-config/index.d.ts +0 -1
- package/dist/types/utils/testing/index.d.ts +0 -4
- package/dist/types/view/login/index.d.ts +0 -7
|
@@ -1,19 +1,3 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
-
var __spreadValues = (a, b) => {
|
|
7
|
-
for (var prop in b || (b = {}))
|
|
8
|
-
if (__hasOwnProp.call(b, prop))
|
|
9
|
-
__defNormalProp(a, prop, b[prop]);
|
|
10
|
-
if (__getOwnPropSymbols)
|
|
11
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
12
|
-
if (__propIsEnum.call(b, prop))
|
|
13
|
-
__defNormalProp(a, prop, b[prop]);
|
|
14
|
-
}
|
|
15
|
-
return a;
|
|
16
|
-
};
|
|
17
1
|
let baEventParameters = {
|
|
18
2
|
envName: "localhost",
|
|
19
3
|
appId: "",
|
|
@@ -22,7 +6,7 @@ let baEventParameters = {
|
|
|
22
6
|
};
|
|
23
7
|
const getBAEventParameters = () => baEventParameters;
|
|
24
8
|
const updateBAEventParameters = (params) => {
|
|
25
|
-
baEventParameters =
|
|
9
|
+
baEventParameters = { ...baEventParameters, ...params };
|
|
26
10
|
};
|
|
27
11
|
export {
|
|
28
12
|
getBAEventParameters,
|
|
@@ -9,7 +9,10 @@ const getToken = async ({
|
|
|
9
9
|
params.append("client_id", clientId);
|
|
10
10
|
params.append("redirect_uri", redirectUri);
|
|
11
11
|
params.append("code", idpCode);
|
|
12
|
-
const { data } = await getHTTPClient().post(
|
|
12
|
+
const { data } = await getHTTPClient().post(
|
|
13
|
+
"/oauth2/v1/token",
|
|
14
|
+
params
|
|
15
|
+
);
|
|
13
16
|
return { tokenType: data.token_type, accessToken: data.access_token };
|
|
14
17
|
};
|
|
15
18
|
const revokeToken = async ({ clientId, token }) => {
|
|
@@ -25,7 +28,10 @@ const introspectToken = async ({
|
|
|
25
28
|
const params = new URLSearchParams();
|
|
26
29
|
params.append("token", accessToken);
|
|
27
30
|
params.append("client_id", clientId);
|
|
28
|
-
const { data } = await getHTTPClient().post(
|
|
31
|
+
const { data } = await getHTTPClient().post(
|
|
32
|
+
"/oauth2/v1/token/introspection",
|
|
33
|
+
params
|
|
34
|
+
);
|
|
29
35
|
return data;
|
|
30
36
|
};
|
|
31
37
|
export {
|
package/dist/esm/api/helpers.js
CHANGED
|
@@ -5,7 +5,13 @@ const getApiActionCreator = (api) => (operation) => ({
|
|
|
5
5
|
[`${operation}Success`]: createAction(`${api}/${operation}Success`),
|
|
6
6
|
[`${operation}Error`]: createAction(`${api}/${operation}Error`)
|
|
7
7
|
});
|
|
8
|
-
const getSelectField = (stateName) => (fieldName = "", defaultValue) => (state = {}, stateValue = get(state, stateName)) => Array.isArray(fieldName) ? fieldName.map(
|
|
8
|
+
const getSelectField = (stateName) => (fieldName = "", defaultValue) => (state = {}, stateValue = get(state, stateName)) => Array.isArray(fieldName) ? fieldName.map(
|
|
9
|
+
(field, i) => get(
|
|
10
|
+
stateValue,
|
|
11
|
+
field,
|
|
12
|
+
Array.isArray(defaultValue) ? defaultValue[i] : defaultValue
|
|
13
|
+
)
|
|
14
|
+
) : get(stateValue, fieldName, defaultValue);
|
|
9
15
|
export {
|
|
10
16
|
getApiActionCreator,
|
|
11
17
|
getSelectField
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { getAuthHTTPClient } from "../../communication/http-client/index.js";
|
|
2
2
|
const getUser = async ({ userName }) => {
|
|
3
|
-
const { data } = await getAuthHTTPClient().get(
|
|
3
|
+
const { data } = await getAuthHTTPClient().get(
|
|
4
|
+
`/encompass/v1/users/${userName}`
|
|
5
|
+
);
|
|
4
6
|
return data;
|
|
5
7
|
};
|
|
6
8
|
export {
|
|
@@ -1,34 +1,3 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __defProps = Object.defineProperties;
|
|
3
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
-
var __spreadValues = (a, b) => {
|
|
9
|
-
for (var prop in b || (b = {}))
|
|
10
|
-
if (__hasOwnProp.call(b, prop))
|
|
11
|
-
__defNormalProp(a, prop, b[prop]);
|
|
12
|
-
if (__getOwnPropSymbols)
|
|
13
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
-
if (__propIsEnum.call(b, prop))
|
|
15
|
-
__defNormalProp(a, prop, b[prop]);
|
|
16
|
-
}
|
|
17
|
-
return a;
|
|
18
|
-
};
|
|
19
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
var __objRest = (source, exclude) => {
|
|
21
|
-
var target = {};
|
|
22
|
-
for (var prop in source)
|
|
23
|
-
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
24
|
-
target[prop] = source[prop];
|
|
25
|
-
if (source != null && __getOwnPropSymbols)
|
|
26
|
-
for (var prop of __getOwnPropSymbols(source)) {
|
|
27
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
28
|
-
target[prop] = source[prop];
|
|
29
|
-
}
|
|
30
|
-
return target;
|
|
31
|
-
};
|
|
32
1
|
import axios from "axios";
|
|
33
2
|
import { getAppConfigValue } from "../../utils/app-config/config.js";
|
|
34
3
|
import { getAuthorizationHeader } from "../../utils/auth/helper.js";
|
|
@@ -51,19 +20,15 @@ const getHTTPClient = ({
|
|
|
51
20
|
response.use(handleSuccess, handleFailure);
|
|
52
21
|
return client;
|
|
53
22
|
};
|
|
54
|
-
const getAuthHTTPClient = (
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
baseURL,
|
|
64
|
-
headers: __spreadProps(__spreadValues({}, headers), { Authorization: getAuthorizationHeader() })
|
|
65
|
-
}, rest));
|
|
66
|
-
};
|
|
23
|
+
const getAuthHTTPClient = ({
|
|
24
|
+
baseURL,
|
|
25
|
+
headers = {},
|
|
26
|
+
...rest
|
|
27
|
+
} = {}) => getHTTPClient({
|
|
28
|
+
baseURL,
|
|
29
|
+
headers: { ...headers, Authorization: getAuthorizationHeader() },
|
|
30
|
+
...rest
|
|
31
|
+
});
|
|
67
32
|
export {
|
|
68
33
|
getAuthHTTPClient,
|
|
69
34
|
getHTTPClient
|
|
@@ -3,13 +3,16 @@ import { LOGIN_SUCCESS } from "./actions.js";
|
|
|
3
3
|
const initialState = {
|
|
4
4
|
authenticated: false
|
|
5
5
|
};
|
|
6
|
-
const authReducer = produce(
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
6
|
+
const authReducer = produce(
|
|
7
|
+
(draft, action) => {
|
|
8
|
+
switch (action.type) {
|
|
9
|
+
case LOGIN_SUCCESS:
|
|
10
|
+
draft.authenticated = true;
|
|
11
|
+
break;
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
initialState
|
|
15
|
+
);
|
|
13
16
|
export {
|
|
14
17
|
authReducer,
|
|
15
18
|
initialState
|
package/dist/esm/data/index.js
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
useInjectReducer,
|
|
3
|
+
useInjectSaga,
|
|
4
|
+
createManager
|
|
5
|
+
} from "redux-injectors";
|
|
2
6
|
import { useAppDispatch, useAppSelector } from "./react-redux.js";
|
|
3
7
|
import { createAppStore, getStore } from "./store.js";
|
|
4
8
|
export {
|
|
5
9
|
createAppStore as configureStore,
|
|
10
|
+
createManager,
|
|
6
11
|
getStore,
|
|
7
12
|
useAppDispatch,
|
|
8
13
|
useAppSelector,
|
|
@@ -1,31 +1,16 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
-
var __spreadValues = (a, b) => {
|
|
7
|
-
for (var prop in b || (b = {}))
|
|
8
|
-
if (__hasOwnProp.call(b, prop))
|
|
9
|
-
__defNormalProp(a, prop, b[prop]);
|
|
10
|
-
if (__getOwnPropSymbols)
|
|
11
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
12
|
-
if (__propIsEnum.call(b, prop))
|
|
13
|
-
__defNormalProp(a, prop, b[prop]);
|
|
14
|
-
}
|
|
15
|
-
return a;
|
|
16
|
-
};
|
|
17
1
|
import { combineReducers } from "@reduxjs/toolkit";
|
|
18
2
|
import { waitMessageReducer } from "./wait-message/reducer.js";
|
|
19
3
|
import { errorReducer } from "./error/index.js";
|
|
20
4
|
import { breakpointReducer } from "./breakpoint/index.js";
|
|
21
5
|
import { liveMessageReducer } from "./live-message/index.js";
|
|
22
6
|
const createReducer = (injectedReducers = {}) => {
|
|
23
|
-
const rootReducer = combineReducers(
|
|
7
|
+
const rootReducer = combineReducers({
|
|
24
8
|
waitMessage: waitMessageReducer,
|
|
25
9
|
error: errorReducer,
|
|
26
10
|
breakpoint: breakpointReducer,
|
|
27
|
-
liveMessage: liveMessageReducer
|
|
28
|
-
|
|
11
|
+
liveMessage: liveMessageReducer,
|
|
12
|
+
...injectedReducers
|
|
13
|
+
});
|
|
29
14
|
return rootReducer;
|
|
30
15
|
};
|
|
31
16
|
export {
|
package/dist/esm/data/store.js
CHANGED
|
@@ -31,7 +31,12 @@ const createStore = (initialState, sagaMiddleware, history, middlewareConfig = {
|
|
|
31
31
|
};
|
|
32
32
|
const createAppStore = (initialState = {}, history, middlewareConfig) => {
|
|
33
33
|
const sagaMiddleware = createSagaMiddleware({});
|
|
34
|
-
const store = createStore(
|
|
34
|
+
const store = createStore(
|
|
35
|
+
initialState,
|
|
36
|
+
sagaMiddleware,
|
|
37
|
+
history,
|
|
38
|
+
middlewareConfig
|
|
39
|
+
);
|
|
35
40
|
setStore(store);
|
|
36
41
|
return store;
|
|
37
42
|
};
|
package/dist/esm/index.js
CHANGED
|
@@ -9,7 +9,11 @@ import { RequireAuth } from "./view/require-auth.js";
|
|
|
9
9
|
import { Page } from "./view/page.js";
|
|
10
10
|
import { default as default2 } from "./utils/constants.js";
|
|
11
11
|
import { useAppDispatch, useAppSelector } from "./data/react-redux.js";
|
|
12
|
-
import {
|
|
12
|
+
import {
|
|
13
|
+
useInjectReducer,
|
|
14
|
+
useInjectSaga,
|
|
15
|
+
createManager
|
|
16
|
+
} from "redux-injectors";
|
|
13
17
|
import { getAuthorizationHeader } from "./utils/auth/helper.js";
|
|
14
18
|
import { getRedirectUrl, removeDoubleSlash } from "./utils/url.js";
|
|
15
19
|
import { createAppStore } from "./data/store.js";
|
|
@@ -22,6 +26,7 @@ import { SessionTimeout } from "./view/session-timeout/index.js";
|
|
|
22
26
|
import {
|
|
23
27
|
subscribeToSessionExpiryWarning,
|
|
24
28
|
subscribeToSessionExpiry,
|
|
29
|
+
subscribeToResetSession,
|
|
25
30
|
resetUserIdleTime,
|
|
26
31
|
trackActivity
|
|
27
32
|
} from "./utils/session.js";
|
|
@@ -66,8 +71,11 @@ import { RenderWithStateAddOns } from "./utils/testing/render-with-state-addons.
|
|
|
66
71
|
import { getApiActionCreator, getSelectField } from "./api/helpers.js";
|
|
67
72
|
import { getUser } from "./api/users/index.js";
|
|
68
73
|
import { withAppDecorator } from "./view/storybook/decorator.js";
|
|
74
|
+
import { Autocomplete } from "./view/fields/autocomplete/index.js";
|
|
69
75
|
import { ErrorToast } from "./view/error-toast/index.js";
|
|
76
|
+
import { NavigationPrompt } from "./view/modals/navigation-prompt/index.js";
|
|
70
77
|
import { Form } from "./view/form/index.js";
|
|
78
|
+
import { ComboBoxV3 } from "./view/fields/combo-box-v3/index.js";
|
|
71
79
|
import { ConnectForm } from "./view/fields/connect-form.js";
|
|
72
80
|
import { FormItemLayout } from "./view/fields/form-item-layout/index.js";
|
|
73
81
|
import { FormLayoutBlockItem } from "./view/fields/form-layout-block-item/index.js";
|
|
@@ -101,10 +109,12 @@ import { updateBAEventParameters } from "./analytics/web-analytics.js";
|
|
|
101
109
|
import { redactPii } from "./utils/redact-pii.js";
|
|
102
110
|
export {
|
|
103
111
|
AppRoot,
|
|
112
|
+
Autocomplete,
|
|
104
113
|
CMicroAppGuest,
|
|
105
114
|
CMicroAppHost,
|
|
106
115
|
CheckBox,
|
|
107
116
|
ComboBox,
|
|
117
|
+
ComboBoxV3,
|
|
108
118
|
ConnectForm,
|
|
109
119
|
DateInput,
|
|
110
120
|
DatePicker,
|
|
@@ -120,6 +130,7 @@ export {
|
|
|
120
130
|
MASK_TYPES,
|
|
121
131
|
MicroApp,
|
|
122
132
|
MicroIFrameApp,
|
|
133
|
+
NavigationPrompt,
|
|
123
134
|
ACTIONS as NavigationPromptActions,
|
|
124
135
|
Page,
|
|
125
136
|
Radio,
|
|
@@ -136,6 +147,7 @@ export {
|
|
|
136
147
|
auth,
|
|
137
148
|
authorize,
|
|
138
149
|
createAppStore as configureStore,
|
|
150
|
+
createManager,
|
|
139
151
|
enableReactAppForHostIntegration,
|
|
140
152
|
actions2 as error,
|
|
141
153
|
fetchHostAppData,
|
|
@@ -181,6 +193,7 @@ export {
|
|
|
181
193
|
setAppConfigValue,
|
|
182
194
|
setAppDynamicsUserData,
|
|
183
195
|
setHostAppData,
|
|
196
|
+
subscribeToResetSession,
|
|
184
197
|
subscribeToSessionExpiry,
|
|
185
198
|
subscribeToSessionExpiryWarning,
|
|
186
199
|
trackActivity,
|
|
@@ -1,22 +1,3 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __defProps = Object.defineProperties;
|
|
3
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
-
var __spreadValues = (a, b) => {
|
|
9
|
-
for (var prop in b || (b = {}))
|
|
10
|
-
if (__hasOwnProp.call(b, prop))
|
|
11
|
-
__defNormalProp(a, prop, b[prop]);
|
|
12
|
-
if (__getOwnPropSymbols)
|
|
13
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
-
if (__propIsEnum.call(b, prop))
|
|
15
|
-
__defNormalProp(a, prop, b[prop]);
|
|
16
|
-
}
|
|
17
|
-
return a;
|
|
18
|
-
};
|
|
19
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
1
|
import {
|
|
21
2
|
call,
|
|
22
3
|
put,
|
|
@@ -37,9 +18,10 @@ function* login({
|
|
|
37
18
|
yield call(authorize, payload);
|
|
38
19
|
yield put({ type: LOGIN_SUCCESS });
|
|
39
20
|
} catch (err) {
|
|
40
|
-
getLogger().error(
|
|
21
|
+
getLogger().error({
|
|
22
|
+
...logRecords.LOGIN_FAILED,
|
|
41
23
|
exception: err
|
|
42
|
-
})
|
|
24
|
+
});
|
|
43
25
|
}
|
|
44
26
|
}
|
|
45
27
|
function* logout({
|
|
@@ -48,9 +30,10 @@ function* logout({
|
|
|
48
30
|
try {
|
|
49
31
|
yield call(endSession, payload);
|
|
50
32
|
} catch (err) {
|
|
51
|
-
getLogger().error(
|
|
33
|
+
getLogger().error({
|
|
34
|
+
...logRecords.LOGOUT_FAILED,
|
|
52
35
|
exception: err
|
|
53
|
-
})
|
|
36
|
+
});
|
|
54
37
|
}
|
|
55
38
|
}
|
|
56
39
|
function* authentication() {
|
|
@@ -1,22 +1,3 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __defProps = Object.defineProperties;
|
|
3
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
-
var __spreadValues = (a, b) => {
|
|
9
|
-
for (var prop in b || (b = {}))
|
|
10
|
-
if (__hasOwnProp.call(b, prop))
|
|
11
|
-
__defNormalProp(a, prop, b[prop]);
|
|
12
|
-
if (__getOwnPropSymbols)
|
|
13
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
-
if (__propIsEnum.call(b, prop))
|
|
15
|
-
__defNormalProp(a, prop, b[prop]);
|
|
16
|
-
}
|
|
17
|
-
return a;
|
|
18
|
-
};
|
|
19
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
1
|
import { call, takeLatest } from "redux-saga/effects";
|
|
21
2
|
import { actions } from "../../data/error/index.js";
|
|
22
3
|
import { CMicroAppGuest } from "../../utils/micro-frontend/guest.js";
|
|
@@ -24,15 +5,18 @@ import { getLogger } from "../../utils/micro-frontend/index.js";
|
|
|
24
5
|
import { logRecords } from "../../utils/log-records.js";
|
|
25
6
|
function* openErrorToast(action) {
|
|
26
7
|
try {
|
|
27
|
-
const microApp = yield call(
|
|
8
|
+
const microApp = yield call(
|
|
9
|
+
CMicroAppGuest.getInstance.bind(CMicroAppGuest)
|
|
10
|
+
);
|
|
28
11
|
const host = yield call(microApp.getHost.bind(microApp));
|
|
29
12
|
const message = action?.payload?.description || action?.payload?.messageText;
|
|
30
13
|
if (host && message)
|
|
31
14
|
yield call(host.openErrorBanner.bind(host), message);
|
|
32
15
|
} catch (ex) {
|
|
33
|
-
getLogger().error(
|
|
16
|
+
getLogger().error({
|
|
17
|
+
...logRecords.ERR_TOAST_OPEN_FAILED,
|
|
34
18
|
exception: ex
|
|
35
|
-
})
|
|
19
|
+
});
|
|
36
20
|
}
|
|
37
21
|
}
|
|
38
22
|
function* errorToast() {
|
|
@@ -1,22 +1,3 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __defProps = Object.defineProperties;
|
|
3
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
-
var __spreadValues = (a, b) => {
|
|
9
|
-
for (var prop in b || (b = {}))
|
|
10
|
-
if (__hasOwnProp.call(b, prop))
|
|
11
|
-
__defNormalProp(a, prop, b[prop]);
|
|
12
|
-
if (__getOwnPropSymbols)
|
|
13
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
-
if (__propIsEnum.call(b, prop))
|
|
15
|
-
__defNormalProp(a, prop, b[prop]);
|
|
16
|
-
}
|
|
17
|
-
return a;
|
|
18
|
-
};
|
|
19
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
1
|
import { call, takeLatest } from "redux-saga/effects";
|
|
21
2
|
import { ACTIONS } from "../../data/wait-message/actions.js";
|
|
22
3
|
import { CMicroAppGuest } from "../../utils/micro-frontend/guest.js";
|
|
@@ -24,26 +5,32 @@ import { getLogger } from "../../utils/micro-frontend/index.js";
|
|
|
24
5
|
import { logRecords } from "../../utils/log-records.js";
|
|
25
6
|
function* openWaitMessage() {
|
|
26
7
|
try {
|
|
27
|
-
const microApp = yield call(
|
|
8
|
+
const microApp = yield call(
|
|
9
|
+
CMicroAppGuest.getInstance.bind(CMicroAppGuest)
|
|
10
|
+
);
|
|
28
11
|
const host = yield call(microApp.getHost.bind(microApp));
|
|
29
12
|
if (host)
|
|
30
13
|
yield call(host.openWaitMessage.bind(host));
|
|
31
14
|
} catch (ex) {
|
|
32
|
-
getLogger().error(
|
|
15
|
+
getLogger().error({
|
|
16
|
+
...logRecords.WAIT_MSG_OPEN_FAILED,
|
|
33
17
|
exception: ex
|
|
34
|
-
})
|
|
18
|
+
});
|
|
35
19
|
}
|
|
36
20
|
}
|
|
37
21
|
function* closeWaitMessage() {
|
|
38
22
|
try {
|
|
39
|
-
const microApp = yield call(
|
|
23
|
+
const microApp = yield call(
|
|
24
|
+
CMicroAppGuest.getInstance.bind(CMicroAppGuest)
|
|
25
|
+
);
|
|
40
26
|
const host = yield call(microApp.getHost.bind(microApp));
|
|
41
27
|
if (host)
|
|
42
28
|
yield call(host.closeWaitMessage.bind(host));
|
|
43
29
|
} catch (ex) {
|
|
44
|
-
getLogger().error(
|
|
30
|
+
getLogger().error({
|
|
31
|
+
...logRecords.WAIT_MSG_CLOSE_FAILED,
|
|
45
32
|
exception: ex
|
|
46
|
-
})
|
|
33
|
+
});
|
|
47
34
|
}
|
|
48
35
|
}
|
|
49
36
|
function* waitMessage() {
|
|
@@ -14,12 +14,16 @@ const parseAppConfig = (data) => {
|
|
|
14
14
|
setAppDynamicsUserData({ envName: activeEnv });
|
|
15
15
|
updateBAEventParameters({ envName: activeEnv });
|
|
16
16
|
};
|
|
17
|
-
const loadAppConfig = () => new Promise((resolve, reject) => {
|
|
18
|
-
getHTTPClient().get(`${getAssetPath()}app.config.json`).then(({ data }) => {
|
|
17
|
+
const loadAppConfig = (assetPath = "") => new Promise((resolve, reject) => {
|
|
18
|
+
getHTTPClient().get(`${assetPath || getAssetPath()}app.config.json`).then(({ data }) => {
|
|
19
19
|
parseAppConfig(data);
|
|
20
20
|
resolve();
|
|
21
21
|
}).catch((err) => {
|
|
22
|
-
reject(
|
|
22
|
+
reject(
|
|
23
|
+
new Error(
|
|
24
|
+
`Unable to load application configurtion file. ${err.Message}`
|
|
25
|
+
)
|
|
26
|
+
);
|
|
23
27
|
});
|
|
24
28
|
});
|
|
25
29
|
export {
|
|
@@ -1,22 +1,3 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __defProps = Object.defineProperties;
|
|
3
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
-
var __spreadValues = (a, b) => {
|
|
9
|
-
for (var prop in b || (b = {}))
|
|
10
|
-
if (__hasOwnProp.call(b, prop))
|
|
11
|
-
__defNormalProp(a, prop, b[prop]);
|
|
12
|
-
if (__getOwnPropSymbols)
|
|
13
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
-
if (__propIsEnum.call(b, prop))
|
|
15
|
-
__defNormalProp(a, prop, b[prop]);
|
|
16
|
-
}
|
|
17
|
-
return a;
|
|
18
|
-
};
|
|
19
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
1
|
import { browserHistory as history } from "../history.js";
|
|
21
2
|
import {
|
|
22
3
|
getToken,
|
|
@@ -54,7 +35,9 @@ const navigateToLoginPage = ({
|
|
|
54
35
|
response_type: responseType,
|
|
55
36
|
scope
|
|
56
37
|
};
|
|
57
|
-
const searchParams = new URLSearchParams(
|
|
38
|
+
const searchParams = new URLSearchParams(
|
|
39
|
+
idpErrorCode ? Object.assign(idpOptions, { error_code: idpErrorCode }) : idpOptions
|
|
40
|
+
);
|
|
58
41
|
idpUrl.search = searchParams.toString();
|
|
59
42
|
window.location.replace(idpUrl.href);
|
|
60
43
|
};
|
|
@@ -88,9 +71,10 @@ const endSession = async ({
|
|
|
88
71
|
logoutUrl.search = searchParams.toString();
|
|
89
72
|
window.location.replace(logoutUrl.href);
|
|
90
73
|
} catch (err) {
|
|
91
|
-
getLogger().error(
|
|
74
|
+
getLogger().error({
|
|
75
|
+
...logRecords.LOGOUT_FAILED,
|
|
92
76
|
exception: err
|
|
93
|
-
})
|
|
77
|
+
});
|
|
94
78
|
}
|
|
95
79
|
};
|
|
96
80
|
const authorize = async ({
|
|
@@ -132,14 +116,14 @@ const authorize = async ({
|
|
|
132
116
|
const data = await getUser({ userName });
|
|
133
117
|
sessionStorage.setItem("userSettings", JSON.stringify(data));
|
|
134
118
|
const pathName = new URL(redirectUri).pathname;
|
|
135
|
-
history.push(`${pathName.replace(/\/$/, "")}/_rerender`);
|
|
136
119
|
history.replace(pathName);
|
|
137
120
|
} catch (err) {
|
|
138
121
|
const code = err?.response?.data?.code;
|
|
139
122
|
await endSession({ clientId, redirectUri, code, scope, responseType });
|
|
140
|
-
getLogger().error(
|
|
123
|
+
getLogger().error({
|
|
124
|
+
...logRecords.LOGIN_FAILED,
|
|
141
125
|
exception: err
|
|
142
|
-
})
|
|
126
|
+
});
|
|
143
127
|
}
|
|
144
128
|
};
|
|
145
129
|
const login = async ({
|
|
@@ -158,9 +142,10 @@ const login = async ({
|
|
|
158
142
|
};
|
|
159
143
|
if (idpCode) {
|
|
160
144
|
await authorize(loginInfo);
|
|
161
|
-
|
|
162
|
-
navigateToLoginPage(loginInfo);
|
|
145
|
+
return { authorized: true };
|
|
163
146
|
}
|
|
147
|
+
navigateToLoginPage(loginInfo);
|
|
148
|
+
return { authorized: false };
|
|
164
149
|
};
|
|
165
150
|
export {
|
|
166
151
|
authorize,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const isProd = () => false;
|
|
2
2
|
const isCIBuild = () => process.env.CI === "true";
|
|
3
|
-
const PROTOCOL = /^(?:[a-z]+:)
|
|
3
|
+
const PROTOCOL = /^(?:[a-z]+:)?\/\//;
|
|
4
4
|
const convertRelativeToAbsoluteUrl = (url) => {
|
|
5
5
|
if (!PROTOCOL.test(url)) {
|
|
6
6
|
return new URL(url, document.location.origin).href;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import ReactDOM from "react-dom";
|
|
2
1
|
import _ from "lodash";
|
|
3
2
|
import { getDefaultTheme } from "@elliemae/pui-theme";
|
|
4
3
|
import { getWindow } from "../window.js";
|
|
@@ -81,7 +80,8 @@ class CMicroAppGuest {
|
|
|
81
80
|
if (window.parent !== window) {
|
|
82
81
|
if (!isCrossDomain()) {
|
|
83
82
|
host = window.parent?.emui?.MicroAppHost || null;
|
|
84
|
-
}
|
|
83
|
+
}
|
|
84
|
+
if (!host) {
|
|
85
85
|
const ssfAdapter = new SSFGuestAdapter();
|
|
86
86
|
if (!await ssfAdapter.init())
|
|
87
87
|
return null;
|
|
@@ -116,11 +116,10 @@ class CMicroAppGuest {
|
|
|
116
116
|
});
|
|
117
117
|
}
|
|
118
118
|
unmount(options) {
|
|
119
|
-
const appEle = document.getElementById(this.containerId);
|
|
120
|
-
if (appEle)
|
|
121
|
-
ReactDOM.unmountComponentAtNode(appEle);
|
|
122
119
|
removeStorageEvents();
|
|
123
|
-
return Promise.resolve().then(
|
|
120
|
+
return Promise.resolve().then(
|
|
121
|
+
() => this.onUnmount ? this.onUnmount(options) : null
|
|
122
|
+
);
|
|
124
123
|
}
|
|
125
124
|
getRef() {
|
|
126
125
|
return this.onGetRef ? this.onGetRef() : null;
|
|
@@ -129,10 +129,16 @@ class CMicroAppHost {
|
|
|
129
129
|
return getWindowViewportSize();
|
|
130
130
|
}
|
|
131
131
|
onResizeEvent(eventHandler) {
|
|
132
|
-
return subscribe(
|
|
132
|
+
return subscribe(
|
|
133
|
+
HOST_WINDOW_RESIZED,
|
|
134
|
+
(msg, data) => eventHandler(data)
|
|
135
|
+
);
|
|
133
136
|
}
|
|
134
137
|
onBreakpointChangeEvent(eventHandler) {
|
|
135
|
-
return subscribe(
|
|
138
|
+
return subscribe(
|
|
139
|
+
HOST_WINDOW_BREAKPOINT_CHANGED,
|
|
140
|
+
(msg, data) => eventHandler(data)
|
|
141
|
+
);
|
|
136
142
|
}
|
|
137
143
|
setSystemVersion(version = "latest") {
|
|
138
144
|
window.emui.version = version;
|
|
@@ -141,7 +147,7 @@ class CMicroAppHost {
|
|
|
141
147
|
sendBAEvent(data) {
|
|
142
148
|
sendBAEvent({ data, self: true });
|
|
143
149
|
}
|
|
144
|
-
getObject(name) {
|
|
150
|
+
async getObject(name) {
|
|
145
151
|
return this.domainObjects[name];
|
|
146
152
|
}
|
|
147
153
|
}
|