@elliemae/pui-app-sdk 4.0.0-beta.6 → 4.1.1
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 +12 -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 -3
- 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 +28 -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 +11 -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 -2
- 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 +27 -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} +5 -2
- 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 +0 -0
- package/dist/types/{view → lib/view}/error-toast/index.d.ts +0 -0
- package/dist/types/{view → lib/view}/error-toast/index.stories.d.ts +0 -0
- package/dist/types/{view → lib/view}/fetch-host-app-data/index.d.ts +0 -0
- package/dist/types/{view → lib/view}/fetch-host-app-data/store.d.ts +0 -0
- package/dist/types/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 +0 -0
- 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,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;
|
|
@@ -80,7 +80,8 @@ class CMicroAppGuest {
|
|
|
80
80
|
if (window.parent !== window) {
|
|
81
81
|
if (!isCrossDomain()) {
|
|
82
82
|
host = window.parent?.emui?.MicroAppHost || null;
|
|
83
|
-
}
|
|
83
|
+
}
|
|
84
|
+
if (!host) {
|
|
84
85
|
const ssfAdapter = new SSFGuestAdapter();
|
|
85
86
|
if (!await ssfAdapter.init())
|
|
86
87
|
return null;
|
|
@@ -116,7 +117,9 @@ class CMicroAppGuest {
|
|
|
116
117
|
}
|
|
117
118
|
unmount(options) {
|
|
118
119
|
removeStorageEvents();
|
|
119
|
-
return Promise.resolve().then(
|
|
120
|
+
return Promise.resolve().then(
|
|
121
|
+
() => this.onUnmount ? this.onUnmount(options) : null
|
|
122
|
+
);
|
|
120
123
|
}
|
|
121
124
|
getRef() {
|
|
122
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
|
}
|
|
@@ -17,24 +17,38 @@ const isProduction = (mode) => {
|
|
|
17
17
|
const getVersionedPath = (path) => {
|
|
18
18
|
const { systemVersion } = CMicroAppHost.getInstance().getProps();
|
|
19
19
|
const majorMinorVersion = systemVersion.match(/^(?:\d+\.\d+)*/g);
|
|
20
|
-
return path.replace(
|
|
20
|
+
return path.replace(
|
|
21
|
+
/{SYSTEM_VERSION}/,
|
|
22
|
+
majorMinorVersion && majorMinorVersion[0] || "latest"
|
|
23
|
+
);
|
|
21
24
|
};
|
|
22
25
|
const getMicroFrontEndAppConfig = (appInfo) => {
|
|
23
|
-
const microFEAppConfig = getAppConfigValue(
|
|
26
|
+
const microFEAppConfig = getAppConfigValue(
|
|
27
|
+
`microFrontendApps.${appInfo.id}`
|
|
28
|
+
);
|
|
24
29
|
if (!microFEAppConfig)
|
|
25
|
-
throw new Error(
|
|
30
|
+
throw new Error(
|
|
31
|
+
`unable to locate application configuraiton for ${appInfo.id} under microFrontendApps section of app.config.json`
|
|
32
|
+
);
|
|
26
33
|
const { mode = "production" } = microFEAppConfig;
|
|
27
34
|
const envConfig = isProduction(mode) ? microFEAppConfig.production : microFEAppConfig.development;
|
|
28
35
|
if (microFEAppConfig.production)
|
|
29
36
|
delete microFEAppConfig.production;
|
|
30
37
|
if (microFEAppConfig.development)
|
|
31
38
|
delete microFEAppConfig.development;
|
|
32
|
-
const microFEConfig = _.merge(
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
39
|
+
const microFEConfig = _.merge(
|
|
40
|
+
appInfo,
|
|
41
|
+
{
|
|
42
|
+
mode: "production",
|
|
43
|
+
hostUrl: "./",
|
|
44
|
+
manifestPath: "./{SYSTEM_VERSION}"
|
|
45
|
+
},
|
|
46
|
+
microFEAppConfig,
|
|
47
|
+
envConfig
|
|
48
|
+
);
|
|
49
|
+
microFEConfig.hostUrl = convertRelativeToAbsoluteUrl(
|
|
50
|
+
microFEConfig.hostUrl.replace(/\/?$/, "/")
|
|
51
|
+
);
|
|
38
52
|
microFEConfig.manifestPath = getVersionedPath(microFEConfig.manifestPath);
|
|
39
53
|
return microFEConfig;
|
|
40
54
|
};
|
|
@@ -10,11 +10,15 @@ class SSFGuestAdapter {
|
|
|
10
10
|
return ssfGuest.getObject(name);
|
|
11
11
|
}
|
|
12
12
|
subscribe(message, func) {
|
|
13
|
-
const callback = (
|
|
13
|
+
const callback = (scriptingObj, eventData) => {
|
|
14
14
|
func(message, eventData);
|
|
15
15
|
};
|
|
16
16
|
const [objectId, eventName] = message.split(".");
|
|
17
|
-
return ssfGuest.subscribe(
|
|
17
|
+
return ssfGuest.subscribe(
|
|
18
|
+
objectId,
|
|
19
|
+
eventName || "",
|
|
20
|
+
callback
|
|
21
|
+
);
|
|
18
22
|
}
|
|
19
23
|
unsubscribe(token, objectId, eventName) {
|
|
20
24
|
return ssfGuest.unsubscribe(objectId, eventName, token);
|
|
@@ -3,7 +3,10 @@ const poBoxRegex = /P\.? ?O\.? *Box +\d+/gi;
|
|
|
3
3
|
const roadRegex = /(street|st|road|rd|avenue|ave|drive|dr|loop|court|ct|circle|cir|lane|ln|boulevard|blvd|way)\.?\b/gi;
|
|
4
4
|
const piiPatterns = {
|
|
5
5
|
creditCardNumber: /\d{4}[ -]?\d{4}[ -]?\d{4}[ -]?\d{4}|\d{4}[ -]?\d{6}[ -]?\d{4}\d?/g,
|
|
6
|
-
streetAddress: new RegExp(
|
|
6
|
+
streetAddress: new RegExp(
|
|
7
|
+
`(\\d+\\s*(\\w+ ){1,2}${roadRegex.source}(\\s+${aptRegex.source})?)|(${poBoxRegex.source})`,
|
|
8
|
+
"gi"
|
|
9
|
+
),
|
|
7
10
|
zipcode: /\b\d{5}\b(-\d{4})?\b/g,
|
|
8
11
|
phoneNumber: /(\(?\+?[0-9]{1,2}\)?[-. ]?)?(\(?[0-9]{3}\)?|[0-9]{3})[-. ]?([0-9]{3}[-. ]?[0-9]{4}|\b[A-Z0-9]{7}\b)/g,
|
|
9
12
|
ipAddress: /(\d{1,3}(\.\d{1,3}){3}|[0-9A-F]{4}(:[0-9A-F]{4}){5}(::|(:0000)+))/gi,
|
|
@@ -15,7 +18,10 @@ const piiPatterns = {
|
|
|
15
18
|
const replacer = (key, value) => {
|
|
16
19
|
if (!key || typeof value !== "string" || key === "correlationId")
|
|
17
20
|
return value;
|
|
18
|
-
return Object.values(piiPatterns).reduce(
|
|
21
|
+
return Object.values(piiPatterns).reduce(
|
|
22
|
+
(redactedString, piiPattern) => redactedString.replace(piiPattern, "****"),
|
|
23
|
+
value
|
|
24
|
+
);
|
|
19
25
|
};
|
|
20
26
|
const redactPii = (data) => {
|
|
21
27
|
try {
|
|
@@ -7,9 +7,10 @@ const initServiceWorker = (swDest = "") => {
|
|
|
7
7
|
navigator.serviceWorker.register(`${swDest.replace(/\/?$/, "/")}sw.js`).then(() => {
|
|
8
8
|
logger.debug("Service Worker registered");
|
|
9
9
|
}).catch((registrationError) => {
|
|
10
|
-
logger.error(
|
|
10
|
+
logger.error({
|
|
11
|
+
...logRecords.SERVICE_WORKER_FAILED,
|
|
11
12
|
exception: registrationError
|
|
12
|
-
})
|
|
13
|
+
});
|
|
13
14
|
});
|
|
14
15
|
});
|
|
15
16
|
}
|