@elliemae/pui-app-sdk 4.0.0-beta.6 → 4.0.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 -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 +29 -61
- 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 -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 +28 -60
- 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/{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,24 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
2
|
-
var __defProps = Object.defineProperties;
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
5
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
7
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
9
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
10
|
-
var __spreadValues = (a, b) => {
|
|
11
|
-
for (var prop in b || (b = {}))
|
|
12
|
-
if (__hasOwnProp.call(b, prop))
|
|
13
|
-
__defNormalProp(a, prop, b[prop]);
|
|
14
|
-
if (__getOwnPropSymbols)
|
|
15
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
16
|
-
if (__propIsEnum.call(b, prop))
|
|
17
|
-
__defNormalProp(a, prop, b[prop]);
|
|
18
|
-
}
|
|
19
|
-
return a;
|
|
20
|
-
};
|
|
21
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
22
6
|
var __export = (target, all) => {
|
|
23
7
|
for (var name in all)
|
|
24
8
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -51,9 +35,10 @@ function* login({
|
|
|
51
35
|
yield (0, import_effects.call)(import_auth.authorize, payload);
|
|
52
36
|
yield (0, import_effects.put)({ type: import_actions.LOGIN_SUCCESS });
|
|
53
37
|
} catch (err) {
|
|
54
|
-
(0, import_micro_frontend.getLogger)().error(
|
|
38
|
+
(0, import_micro_frontend.getLogger)().error({
|
|
39
|
+
...import_log_records.logRecords.LOGIN_FAILED,
|
|
55
40
|
exception: err
|
|
56
|
-
})
|
|
41
|
+
});
|
|
57
42
|
}
|
|
58
43
|
}
|
|
59
44
|
function* logout({
|
|
@@ -62,9 +47,10 @@ function* logout({
|
|
|
62
47
|
try {
|
|
63
48
|
yield (0, import_effects.call)(import_auth.endSession, payload);
|
|
64
49
|
} catch (err) {
|
|
65
|
-
(0, import_micro_frontend.getLogger)().error(
|
|
50
|
+
(0, import_micro_frontend.getLogger)().error({
|
|
51
|
+
...import_log_records.logRecords.LOGOUT_FAILED,
|
|
66
52
|
exception: err
|
|
67
|
-
})
|
|
53
|
+
});
|
|
68
54
|
}
|
|
69
55
|
}
|
|
70
56
|
function* authentication() {
|
|
@@ -1,24 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
2
|
-
var __defProps = Object.defineProperties;
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
5
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
7
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
9
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
10
|
-
var __spreadValues = (a, b) => {
|
|
11
|
-
for (var prop in b || (b = {}))
|
|
12
|
-
if (__hasOwnProp.call(b, prop))
|
|
13
|
-
__defNormalProp(a, prop, b[prop]);
|
|
14
|
-
if (__getOwnPropSymbols)
|
|
15
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
16
|
-
if (__propIsEnum.call(b, prop))
|
|
17
|
-
__defNormalProp(a, prop, b[prop]);
|
|
18
|
-
}
|
|
19
|
-
return a;
|
|
20
|
-
};
|
|
21
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
22
6
|
var __export = (target, all) => {
|
|
23
7
|
for (var name in all)
|
|
24
8
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -44,15 +28,18 @@ var import_micro_frontend = require("../../utils/micro-frontend/index.js");
|
|
|
44
28
|
var import_log_records = require("../../utils/log-records.js");
|
|
45
29
|
function* openErrorToast(action) {
|
|
46
30
|
try {
|
|
47
|
-
const microApp = yield (0, import_effects.call)(
|
|
31
|
+
const microApp = yield (0, import_effects.call)(
|
|
32
|
+
import_guest.CMicroAppGuest.getInstance.bind(import_guest.CMicroAppGuest)
|
|
33
|
+
);
|
|
48
34
|
const host = yield (0, import_effects.call)(microApp.getHost.bind(microApp));
|
|
49
35
|
const message = action?.payload?.description || action?.payload?.messageText;
|
|
50
36
|
if (host && message)
|
|
51
37
|
yield (0, import_effects.call)(host.openErrorBanner.bind(host), message);
|
|
52
38
|
} catch (ex) {
|
|
53
|
-
(0, import_micro_frontend.getLogger)().error(
|
|
39
|
+
(0, import_micro_frontend.getLogger)().error({
|
|
40
|
+
...import_log_records.logRecords.ERR_TOAST_OPEN_FAILED,
|
|
54
41
|
exception: ex
|
|
55
|
-
})
|
|
42
|
+
});
|
|
56
43
|
}
|
|
57
44
|
}
|
|
58
45
|
function* errorToast() {
|
|
@@ -1,24 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
2
|
-
var __defProps = Object.defineProperties;
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
5
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
7
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
9
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
10
|
-
var __spreadValues = (a, b) => {
|
|
11
|
-
for (var prop in b || (b = {}))
|
|
12
|
-
if (__hasOwnProp.call(b, prop))
|
|
13
|
-
__defNormalProp(a, prop, b[prop]);
|
|
14
|
-
if (__getOwnPropSymbols)
|
|
15
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
16
|
-
if (__propIsEnum.call(b, prop))
|
|
17
|
-
__defNormalProp(a, prop, b[prop]);
|
|
18
|
-
}
|
|
19
|
-
return a;
|
|
20
|
-
};
|
|
21
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
22
6
|
var __export = (target, all) => {
|
|
23
7
|
for (var name in all)
|
|
24
8
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -44,26 +28,32 @@ var import_micro_frontend = require("../../utils/micro-frontend/index.js");
|
|
|
44
28
|
var import_log_records = require("../../utils/log-records.js");
|
|
45
29
|
function* openWaitMessage() {
|
|
46
30
|
try {
|
|
47
|
-
const microApp = yield (0, import_effects.call)(
|
|
31
|
+
const microApp = yield (0, import_effects.call)(
|
|
32
|
+
import_guest.CMicroAppGuest.getInstance.bind(import_guest.CMicroAppGuest)
|
|
33
|
+
);
|
|
48
34
|
const host = yield (0, import_effects.call)(microApp.getHost.bind(microApp));
|
|
49
35
|
if (host)
|
|
50
36
|
yield (0, import_effects.call)(host.openWaitMessage.bind(host));
|
|
51
37
|
} catch (ex) {
|
|
52
|
-
(0, import_micro_frontend.getLogger)().error(
|
|
38
|
+
(0, import_micro_frontend.getLogger)().error({
|
|
39
|
+
...import_log_records.logRecords.WAIT_MSG_OPEN_FAILED,
|
|
53
40
|
exception: ex
|
|
54
|
-
})
|
|
41
|
+
});
|
|
55
42
|
}
|
|
56
43
|
}
|
|
57
44
|
function* closeWaitMessage() {
|
|
58
45
|
try {
|
|
59
|
-
const microApp = yield (0, import_effects.call)(
|
|
46
|
+
const microApp = yield (0, import_effects.call)(
|
|
47
|
+
import_guest.CMicroAppGuest.getInstance.bind(import_guest.CMicroAppGuest)
|
|
48
|
+
);
|
|
60
49
|
const host = yield (0, import_effects.call)(microApp.getHost.bind(microApp));
|
|
61
50
|
if (host)
|
|
62
51
|
yield (0, import_effects.call)(host.closeWaitMessage.bind(host));
|
|
63
52
|
} catch (ex) {
|
|
64
|
-
(0, import_micro_frontend.getLogger)().error(
|
|
53
|
+
(0, import_micro_frontend.getLogger)().error({
|
|
54
|
+
...import_log_records.logRecords.WAIT_MSG_CLOSE_FAILED,
|
|
65
55
|
exception: ex
|
|
66
|
-
})
|
|
56
|
+
});
|
|
67
57
|
}
|
|
68
58
|
}
|
|
69
59
|
function* waitMessage() {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __create = Object.create;
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -16,7 +17,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
17
|
}
|
|
17
18
|
return to;
|
|
18
19
|
};
|
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
22
|
+
mod
|
|
23
|
+
));
|
|
20
24
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
21
25
|
var config_exports = {};
|
|
22
26
|
__export(config_exports, {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __create = Object.create;
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -16,7 +17,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
17
|
}
|
|
17
18
|
return to;
|
|
18
19
|
};
|
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
22
|
+
mod
|
|
23
|
+
));
|
|
20
24
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
21
25
|
var app_config_exports = {};
|
|
22
26
|
__export(app_config_exports, {
|
|
@@ -39,11 +43,15 @@ const parseAppConfig = (data) => {
|
|
|
39
43
|
(0, import_appdynamics.setAppDynamicsUserData)({ envName: activeEnv });
|
|
40
44
|
(0, import_web_analytics.updateBAEventParameters)({ envName: activeEnv });
|
|
41
45
|
};
|
|
42
|
-
const loadAppConfig = () => new Promise((resolve, reject) => {
|
|
43
|
-
(0, import_http_client.getHTTPClient)().get(`${(0, import_window.getAssetPath)()}app.config.json`).then(({ data }) => {
|
|
46
|
+
const loadAppConfig = (assetPath = "") => new Promise((resolve, reject) => {
|
|
47
|
+
(0, import_http_client.getHTTPClient)().get(`${assetPath || (0, import_window.getAssetPath)()}app.config.json`).then(({ data }) => {
|
|
44
48
|
parseAppConfig(data);
|
|
45
49
|
resolve();
|
|
46
50
|
}).catch((err) => {
|
|
47
|
-
reject(
|
|
51
|
+
reject(
|
|
52
|
+
new Error(
|
|
53
|
+
`Unable to load application configurtion file. ${err.Message}`
|
|
54
|
+
)
|
|
55
|
+
);
|
|
48
56
|
});
|
|
49
57
|
});
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __create = Object.create;
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -16,7 +17,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
17
|
}
|
|
17
18
|
return to;
|
|
18
19
|
};
|
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
22
|
+
mod
|
|
23
|
+
));
|
|
20
24
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
21
25
|
var helper_exports = {};
|
|
22
26
|
__export(helper_exports, {
|
|
@@ -1,24 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
2
|
-
var __defProps = Object.defineProperties;
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
5
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
7
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
9
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
10
|
-
var __spreadValues = (a, b) => {
|
|
11
|
-
for (var prop in b || (b = {}))
|
|
12
|
-
if (__hasOwnProp.call(b, prop))
|
|
13
|
-
__defNormalProp(a, prop, b[prop]);
|
|
14
|
-
if (__getOwnPropSymbols)
|
|
15
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
16
|
-
if (__propIsEnum.call(b, prop))
|
|
17
|
-
__defNormalProp(a, prop, b[prop]);
|
|
18
|
-
}
|
|
19
|
-
return a;
|
|
20
|
-
};
|
|
21
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
22
6
|
var __export = (target, all) => {
|
|
23
7
|
for (var name in all)
|
|
24
8
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -75,7 +59,9 @@ const navigateToLoginPage = ({
|
|
|
75
59
|
response_type: responseType,
|
|
76
60
|
scope
|
|
77
61
|
};
|
|
78
|
-
const searchParams = new URLSearchParams(
|
|
62
|
+
const searchParams = new URLSearchParams(
|
|
63
|
+
idpErrorCode ? Object.assign(idpOptions, { error_code: idpErrorCode }) : idpOptions
|
|
64
|
+
);
|
|
79
65
|
idpUrl.search = searchParams.toString();
|
|
80
66
|
window.location.replace(idpUrl.href);
|
|
81
67
|
};
|
|
@@ -109,9 +95,10 @@ const endSession = async ({
|
|
|
109
95
|
logoutUrl.search = searchParams.toString();
|
|
110
96
|
window.location.replace(logoutUrl.href);
|
|
111
97
|
} catch (err) {
|
|
112
|
-
(0, import_micro_frontend.getLogger)().error(
|
|
98
|
+
(0, import_micro_frontend.getLogger)().error({
|
|
99
|
+
...import_log_records.logRecords.LOGOUT_FAILED,
|
|
113
100
|
exception: err
|
|
114
|
-
})
|
|
101
|
+
});
|
|
115
102
|
}
|
|
116
103
|
};
|
|
117
104
|
const authorize = async ({
|
|
@@ -153,14 +140,14 @@ const authorize = async ({
|
|
|
153
140
|
const data = await (0, import_users.getUser)({ userName });
|
|
154
141
|
sessionStorage.setItem("userSettings", JSON.stringify(data));
|
|
155
142
|
const pathName = new URL(redirectUri).pathname;
|
|
156
|
-
import_history.browserHistory.push(`${pathName.replace(/\/$/, "")}/_rerender`);
|
|
157
143
|
import_history.browserHistory.replace(pathName);
|
|
158
144
|
} catch (err) {
|
|
159
145
|
const code = err?.response?.data?.code;
|
|
160
146
|
await endSession({ clientId, redirectUri, code, scope, responseType });
|
|
161
|
-
(0, import_micro_frontend.getLogger)().error(
|
|
147
|
+
(0, import_micro_frontend.getLogger)().error({
|
|
148
|
+
...import_log_records.logRecords.LOGIN_FAILED,
|
|
162
149
|
exception: err
|
|
163
|
-
})
|
|
150
|
+
});
|
|
164
151
|
}
|
|
165
152
|
};
|
|
166
153
|
const login = async ({
|
|
@@ -179,7 +166,8 @@ const login = async ({
|
|
|
179
166
|
};
|
|
180
167
|
if (idpCode) {
|
|
181
168
|
await authorize(loginInfo);
|
|
182
|
-
|
|
183
|
-
navigateToLoginPage(loginInfo);
|
|
169
|
+
return { authorized: true };
|
|
184
170
|
}
|
|
171
|
+
navigateToLoginPage(loginInfo);
|
|
172
|
+
return { authorized: false };
|
|
185
173
|
};
|
package/dist/cjs/utils/await.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
2
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
@@ -24,7 +25,7 @@ __export(helpers_exports, {
|
|
|
24
25
|
module.exports = __toCommonJS(helpers_exports);
|
|
25
26
|
const isProd = () => false;
|
|
26
27
|
const isCIBuild = () => process.env.CI === "true";
|
|
27
|
-
const PROTOCOL = /^(?:[a-z]+:)
|
|
28
|
+
const PROTOCOL = /^(?:[a-z]+:)?\/\//;
|
|
28
29
|
const convertRelativeToAbsoluteUrl = (url) => {
|
|
29
30
|
if (!PROTOCOL.test(url)) {
|
|
30
31
|
return new URL(url, document.location.origin).href;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __create = Object.create;
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -16,7 +17,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
17
|
}
|
|
17
18
|
return to;
|
|
18
19
|
};
|
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
22
|
+
mod
|
|
23
|
+
));
|
|
20
24
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
21
25
|
var guest_exports = {};
|
|
22
26
|
__export(guest_exports, {
|
|
@@ -105,7 +109,8 @@ class CMicroAppGuest {
|
|
|
105
109
|
if (window.parent !== window) {
|
|
106
110
|
if (!isCrossDomain()) {
|
|
107
111
|
host = window.parent?.emui?.MicroAppHost || null;
|
|
108
|
-
}
|
|
112
|
+
}
|
|
113
|
+
if (!host) {
|
|
109
114
|
const ssfAdapter = new import_ssfguest_adapter.SSFGuestAdapter();
|
|
110
115
|
if (!await ssfAdapter.init())
|
|
111
116
|
return null;
|
|
@@ -141,7 +146,9 @@ class CMicroAppGuest {
|
|
|
141
146
|
}
|
|
142
147
|
unmount(options) {
|
|
143
148
|
(0, import_web_storage.removeStorageEvents)();
|
|
144
|
-
return Promise.resolve().then(
|
|
149
|
+
return Promise.resolve().then(
|
|
150
|
+
() => this.onUnmount ? this.onUnmount(options) : null
|
|
151
|
+
);
|
|
145
152
|
}
|
|
146
153
|
getRef() {
|
|
147
154
|
return this.onGetRef ? this.onGetRef() : null;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
2
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
@@ -144,10 +145,16 @@ class CMicroAppHost {
|
|
|
144
145
|
return (0, import_window.getViewportSize)();
|
|
145
146
|
}
|
|
146
147
|
onResizeEvent(eventHandler) {
|
|
147
|
-
return (0, import_pubsub_js.subscribe)(
|
|
148
|
+
return (0, import_pubsub_js.subscribe)(
|
|
149
|
+
import_constants.HOST_WINDOW_RESIZED,
|
|
150
|
+
(msg, data) => eventHandler(data)
|
|
151
|
+
);
|
|
148
152
|
}
|
|
149
153
|
onBreakpointChangeEvent(eventHandler) {
|
|
150
|
-
return (0, import_pubsub_js.subscribe)(
|
|
154
|
+
return (0, import_pubsub_js.subscribe)(
|
|
155
|
+
import_constants.HOST_WINDOW_BREAKPOINT_CHANGED,
|
|
156
|
+
(msg, data) => eventHandler(data)
|
|
157
|
+
);
|
|
151
158
|
}
|
|
152
159
|
setSystemVersion(version = "latest") {
|
|
153
160
|
window.emui.version = version;
|
|
@@ -156,7 +163,7 @@ class CMicroAppHost {
|
|
|
156
163
|
sendBAEvent(data) {
|
|
157
164
|
(0, import_analytics.sendBAEvent)({ data, self: true });
|
|
158
165
|
}
|
|
159
|
-
getObject(name) {
|
|
166
|
+
async getObject(name) {
|
|
160
167
|
return this.domainObjects[name];
|
|
161
168
|
}
|
|
162
169
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __create = Object.create;
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -16,7 +17,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
17
|
}
|
|
17
18
|
return to;
|
|
18
19
|
};
|
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
22
|
+
mod
|
|
23
|
+
));
|
|
20
24
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
21
25
|
var micro_frontend_exports = {};
|
|
22
26
|
__export(micro_frontend_exports, {
|
|
@@ -46,24 +50,38 @@ const isProduction = (mode) => {
|
|
|
46
50
|
const getVersionedPath = (path) => {
|
|
47
51
|
const { systemVersion } = import_host.CMicroAppHost.getInstance().getProps();
|
|
48
52
|
const majorMinorVersion = systemVersion.match(/^(?:\d+\.\d+)*/g);
|
|
49
|
-
return path.replace(
|
|
53
|
+
return path.replace(
|
|
54
|
+
/{SYSTEM_VERSION}/,
|
|
55
|
+
majorMinorVersion && majorMinorVersion[0] || "latest"
|
|
56
|
+
);
|
|
50
57
|
};
|
|
51
58
|
const getMicroFrontEndAppConfig = (appInfo) => {
|
|
52
|
-
const microFEAppConfig = (0, import_config.getAppConfigValue)(
|
|
59
|
+
const microFEAppConfig = (0, import_config.getAppConfigValue)(
|
|
60
|
+
`microFrontendApps.${appInfo.id}`
|
|
61
|
+
);
|
|
53
62
|
if (!microFEAppConfig)
|
|
54
|
-
throw new Error(
|
|
63
|
+
throw new Error(
|
|
64
|
+
`unable to locate application configuraiton for ${appInfo.id} under microFrontendApps section of app.config.json`
|
|
65
|
+
);
|
|
55
66
|
const { mode = "production" } = microFEAppConfig;
|
|
56
67
|
const envConfig = isProduction(mode) ? microFEAppConfig.production : microFEAppConfig.development;
|
|
57
68
|
if (microFEAppConfig.production)
|
|
58
69
|
delete microFEAppConfig.production;
|
|
59
70
|
if (microFEAppConfig.development)
|
|
60
71
|
delete microFEAppConfig.development;
|
|
61
|
-
const microFEConfig = import_lodash.default.merge(
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
72
|
+
const microFEConfig = import_lodash.default.merge(
|
|
73
|
+
appInfo,
|
|
74
|
+
{
|
|
75
|
+
mode: "production",
|
|
76
|
+
hostUrl: "./",
|
|
77
|
+
manifestPath: "./{SYSTEM_VERSION}"
|
|
78
|
+
},
|
|
79
|
+
microFEAppConfig,
|
|
80
|
+
envConfig
|
|
81
|
+
);
|
|
82
|
+
microFEConfig.hostUrl = (0, import_helpers.convertRelativeToAbsoluteUrl)(
|
|
83
|
+
microFEConfig.hostUrl.replace(/\/?$/, "/")
|
|
84
|
+
);
|
|
67
85
|
microFEConfig.manifestPath = getVersionedPath(microFEConfig.manifestPath);
|
|
68
86
|
return microFEConfig;
|
|
69
87
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __create = Object.create;
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -16,7 +17,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
17
|
}
|
|
17
18
|
return to;
|
|
18
19
|
};
|
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
22
|
+
mod
|
|
23
|
+
));
|
|
20
24
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
21
25
|
var ssfguest_adapter_exports = {};
|
|
22
26
|
__export(ssfguest_adapter_exports, {
|
|
@@ -35,11 +39,15 @@ class SSFGuestAdapter {
|
|
|
35
39
|
return import_em_ssf_guest.default.getObject(name);
|
|
36
40
|
}
|
|
37
41
|
subscribe(message, func) {
|
|
38
|
-
const callback = (
|
|
42
|
+
const callback = (scriptingObj, eventData) => {
|
|
39
43
|
func(message, eventData);
|
|
40
44
|
};
|
|
41
45
|
const [objectId, eventName] = message.split(".");
|
|
42
|
-
return import_em_ssf_guest.default.subscribe(
|
|
46
|
+
return import_em_ssf_guest.default.subscribe(
|
|
47
|
+
objectId,
|
|
48
|
+
eventName || "",
|
|
49
|
+
callback
|
|
50
|
+
);
|
|
43
51
|
}
|
|
44
52
|
unsubscribe(token, objectId, eventName) {
|
|
45
53
|
return import_em_ssf_guest.default.unsubscribe(objectId, eventName, token);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
2
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
@@ -25,7 +26,10 @@ const poBoxRegex = /P\.? ?O\.? *Box +\d+/gi;
|
|
|
25
26
|
const roadRegex = /(street|st|road|rd|avenue|ave|drive|dr|loop|court|ct|circle|cir|lane|ln|boulevard|blvd|way)\.?\b/gi;
|
|
26
27
|
const piiPatterns = {
|
|
27
28
|
creditCardNumber: /\d{4}[ -]?\d{4}[ -]?\d{4}[ -]?\d{4}|\d{4}[ -]?\d{6}[ -]?\d{4}\d?/g,
|
|
28
|
-
streetAddress: new RegExp(
|
|
29
|
+
streetAddress: new RegExp(
|
|
30
|
+
`(\\d+\\s*(\\w+ ){1,2}${roadRegex.source}(\\s+${aptRegex.source})?)|(${poBoxRegex.source})`,
|
|
31
|
+
"gi"
|
|
32
|
+
),
|
|
29
33
|
zipcode: /\b\d{5}\b(-\d{4})?\b/g,
|
|
30
34
|
phoneNumber: /(\(?\+?[0-9]{1,2}\)?[-. ]?)?(\(?[0-9]{3}\)?|[0-9]{3})[-. ]?([0-9]{3}[-. ]?[0-9]{4}|\b[A-Z0-9]{7}\b)/g,
|
|
31
35
|
ipAddress: /(\d{1,3}(\.\d{1,3}){3}|[0-9A-F]{4}(:[0-9A-F]{4}){5}(::|(:0000)+))/gi,
|
|
@@ -37,7 +41,10 @@ const piiPatterns = {
|
|
|
37
41
|
const replacer = (key, value) => {
|
|
38
42
|
if (!key || typeof value !== "string" || key === "correlationId")
|
|
39
43
|
return value;
|
|
40
|
-
return Object.values(piiPatterns).reduce(
|
|
44
|
+
return Object.values(piiPatterns).reduce(
|
|
45
|
+
(redactedString, piiPattern) => redactedString.replace(piiPattern, "****"),
|
|
46
|
+
value
|
|
47
|
+
);
|
|
41
48
|
};
|
|
42
49
|
const redactPii = (data) => {
|
|
43
50
|
try {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
2
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
@@ -29,9 +30,10 @@ const initServiceWorker = (swDest = "") => {
|
|
|
29
30
|
navigator.serviceWorker.register(`${swDest.replace(/\/?$/, "/")}sw.js`).then(() => {
|
|
30
31
|
logger.debug("Service Worker registered");
|
|
31
32
|
}).catch((registrationError) => {
|
|
32
|
-
logger.error(
|
|
33
|
+
logger.error({
|
|
34
|
+
...logRecords.SERVICE_WORKER_FAILED,
|
|
33
35
|
exception: registrationError
|
|
34
|
-
})
|
|
36
|
+
});
|
|
35
37
|
});
|
|
36
38
|
});
|
|
37
39
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
2
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
@@ -47,14 +48,20 @@ const resetUserIdleTime = (resetWarningModal = false) => {
|
|
|
47
48
|
}).catch(() => {
|
|
48
49
|
});
|
|
49
50
|
};
|
|
50
|
-
const throttledResetUserIdleTime = (0, import_lodash.throttle)(
|
|
51
|
+
const throttledResetUserIdleTime = (0, import_lodash.throttle)(
|
|
52
|
+
resetUserIdleTime,
|
|
53
|
+
THROTTLING_TIME,
|
|
54
|
+
{ leading: true }
|
|
55
|
+
);
|
|
51
56
|
const isPastWarningTime = (warnInterval = (0, import_config.getAppConfigValue)("sessionTimeoutWarnInterval") || import_constants.SESSION_TIMEOUT_INTERVAL.WARN) => Date.now() - lastUserActivityTimeStamp > warnInterval;
|
|
52
57
|
const isPastSessionTimeoutTime = (sessionTimeout = (0, import_config.getAppConfigValue)("sessionTimeoutInterval") || import_constants.SESSION_TIMEOUT_INTERVAL.EXPIRY) => Date.now() - lastUserActivityTimeStamp > sessionTimeout;
|
|
53
58
|
const notifySessionExpiryWarning = () => {
|
|
54
59
|
sessionExpiryWarningNotified = true;
|
|
55
60
|
sessionExpiryWarningNotifiedAt = Date.now();
|
|
56
61
|
Promise.resolve().then(() => {
|
|
57
|
-
warnListeners.forEach(
|
|
62
|
+
warnListeners.forEach(
|
|
63
|
+
(listener) => listener(sessionExpiryWarningNotifiedAt)
|
|
64
|
+
);
|
|
58
65
|
}).catch(() => {
|
|
59
66
|
});
|
|
60
67
|
};
|
|
@@ -107,9 +114,13 @@ const trackActivity = (element, cb) => {
|
|
|
107
114
|
return () => {
|
|
108
115
|
};
|
|
109
116
|
const thorttledCb = (0, import_lodash.throttle)(cb, THROTTLING_TIME, { leading: true });
|
|
110
|
-
userInteractionEvents.forEach(
|
|
117
|
+
userInteractionEvents.forEach(
|
|
118
|
+
(r) => element.addEventListener(r, thorttledCb)
|
|
119
|
+
);
|
|
111
120
|
return () => {
|
|
112
121
|
userInteractionEvents.forEach((r) => element.removeEventListener(r, cb));
|
|
113
|
-
userInteractionEvents.forEach(
|
|
122
|
+
userInteractionEvents.forEach(
|
|
123
|
+
(r) => element.removeEventListener(r, thorttledCb)
|
|
124
|
+
);
|
|
114
125
|
};
|
|
115
126
|
};
|