@elliemae/pui-app-sdk 3.0.0-beta.7 → 3.0.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 +4 -0
- package/dist/cjs/analytics/appdynamics.js +29 -9
- package/dist/cjs/analytics/index.js +28 -13
- package/dist/cjs/analytics/page-view-event.js +11 -10
- package/dist/cjs/analytics/user-session-event.js +12 -11
- package/dist/cjs/analytics/user-wait-event.js +11 -10
- package/dist/cjs/analytics/web-analytics.js +34 -3
- package/dist/cjs/api/auth/index.js +11 -10
- package/dist/cjs/api/helpers.js +12 -11
- package/dist/cjs/api/users/index.js +11 -10
- package/dist/cjs/communication/http-client/index.js +60 -21
- package/dist/cjs/communication/http-client/request-interceptor.js +11 -10
- package/dist/cjs/communication/http-client/response-interceptor.js +13 -7
- package/dist/cjs/communication/http-client/retry-axios.js +14 -8
- package/dist/cjs/communication/http-client/retry.js +11 -10
- package/dist/cjs/data/auth/actions.js +19 -2
- package/dist/cjs/data/auth/reducer.js +14 -8
- package/dist/cjs/data/breakpoint/index.js +13 -7
- package/dist/cjs/data/error/index.js +11 -10
- package/dist/cjs/data/index.js +35 -0
- package/dist/cjs/data/live-message/index.js +11 -10
- package/dist/cjs/data/logout/actions.js +19 -2
- package/dist/cjs/data/navigation-prompt/actions.js +19 -2
- package/dist/cjs/data/react-redux.js +11 -10
- package/dist/cjs/data/reducers.js +32 -18
- package/dist/cjs/data/saga.js +19 -2
- package/dist/cjs/data/store.js +18 -22
- package/dist/cjs/data/wait-message/actions.js +19 -2
- package/dist/cjs/data/wait-message/reducer.js +14 -8
- package/dist/cjs/data/webpack-hmr.js +42 -0
- package/dist/cjs/index.js +90 -85
- package/dist/cjs/micro-frontend.js +34 -0
- package/dist/cjs/package.json +7 -1
- package/dist/cjs/sideeffect/auth/index.js +36 -20
- package/dist/cjs/sideeffect/error-toast/index.js +34 -17
- package/dist/cjs/sideeffect/wait-message/index.js +36 -20
- package/dist/cjs/utils/app-config/config.js +14 -8
- package/dist/cjs/utils/app-config/index.js +17 -11
- package/dist/cjs/utils/app-host-integration/react.js +11 -10
- package/dist/cjs/utils/auth/helper.js +13 -7
- package/dist/cjs/utils/auth/index.js +42 -25
- package/dist/cjs/utils/await.js +18 -1
- package/dist/cjs/utils/constants.js +19 -2
- package/dist/cjs/utils/font-size.js +19 -2
- package/dist/cjs/utils/guest-with-service.js +19 -2
- package/dist/cjs/utils/helpers.js +20 -3
- package/dist/cjs/utils/history.js +11 -10
- package/dist/cjs/utils/log-records.js +19 -2
- package/dist/cjs/utils/micro-frontend/console-logger.js +12 -11
- package/dist/cjs/utils/micro-frontend/guest.js +25 -19
- package/dist/cjs/utils/micro-frontend/host.js +30 -29
- package/dist/cjs/utils/micro-frontend/index.js +17 -11
- package/dist/cjs/utils/micro-frontend/types.js +18 -1
- package/dist/cjs/utils/redact-pii.js +19 -2
- package/dist/cjs/utils/service-worker.js +14 -14
- package/dist/cjs/utils/session.js +15 -14
- package/dist/cjs/utils/storybook/{main.js → cjs/main.js} +11 -3
- package/dist/cjs/utils/storybook/{middleware.js → cjs/middleware.js} +0 -0
- package/dist/cjs/utils/storybook/{vite.js → cjs/vite.js} +0 -0
- package/dist/cjs/utils/storybook/{webpack.js → cjs/webpack.js} +0 -0
- package/dist/cjs/utils/storybook/manager.js +12 -11
- package/dist/cjs/utils/storybook/preview.js +24 -19
- package/dist/cjs/utils/storybook/theme.js +50 -19
- package/dist/cjs/utils/testing/index.js +34 -14
- package/dist/cjs/utils/testing/render-with-redux.js +37 -15
- package/dist/cjs/utils/testing/render-with-router-redux.js +41 -19
- package/dist/cjs/utils/testing/render-with-router.js +40 -15
- package/dist/cjs/utils/testing/render-with-state-addons.js +56 -21
- package/dist/cjs/utils/types.js +18 -1
- package/dist/cjs/utils/url.js +19 -2
- package/dist/cjs/utils/web-storage.js +13 -7
- package/dist/cjs/utils/window.js +11 -10
- package/dist/cjs/view/app-root/hosted-app.js +26 -15
- package/dist/cjs/view/app-root/index.js +37 -26
- package/dist/cjs/view/app-root/stand-alone-app.js +27 -17
- package/dist/cjs/view/app-root/style.js +11 -10
- package/dist/cjs/view/app-router.js +77 -0
- package/dist/cjs/view/{media-breakpoint/index.js → breakpoint/use-breakpoint.js} +20 -21
- package/dist/cjs/view/{useMediaBreakpoints/index.js → breakpoint/use-media-query-list.js} +15 -14
- package/dist/cjs/view/error-boundary/default-error-template.js +14 -8
- package/dist/cjs/view/error-boundary/index.js +35 -13
- package/dist/cjs/view/error-toast/index.js +37 -21
- package/dist/cjs/view/fetch-host-app-data/index.js +16 -10
- package/dist/cjs/view/fetch-host-app-data/store.js +26 -11
- package/dist/cjs/view/fields/check-box/index.js +57 -26
- package/dist/cjs/view/fields/combo-box/index.js +68 -28
- package/dist/cjs/view/fields/connect-form.js +26 -13
- package/dist/cjs/view/fields/date-input/index.js +58 -23
- package/dist/cjs/view/fields/date-picker/index.js +58 -23
- package/dist/cjs/view/fields/form-item-layout/index.js +56 -25
- package/dist/cjs/view/fields/form-layout-block-item/index.js +84 -0
- package/dist/cjs/view/fields/input-mask/index.js +58 -24
- package/dist/cjs/view/fields/large-text-box/index.js +58 -23
- package/dist/cjs/view/fields/radio/index.js +67 -25
- package/dist/cjs/view/fields/radio-group/index.js +57 -22
- package/dist/cjs/view/fields/text-box/index.js +58 -23
- package/dist/cjs/view/fields/watch-value.js +19 -11
- package/dist/cjs/view/form/index.js +32 -15
- package/dist/cjs/view/form/personal-info-section.js +46 -36
- package/dist/cjs/view/form/submit-button/index.js +48 -15
- package/dist/cjs/view/guest-unload-handlers/index.js +11 -10
- package/dist/cjs/view/host-binding-events/index.js +19 -2
- package/dist/cjs/view/live-message/index.js +15 -9
- package/dist/cjs/view/loadable/index.js +30 -12
- package/dist/cjs/view/login/index.js +16 -20
- package/dist/cjs/view/message-to-host-app/index.js +11 -10
- package/dist/cjs/view/micro-app/app-factory/index.js +40 -20
- package/dist/cjs/view/micro-app/const.js +19 -2
- package/dist/cjs/view/micro-app/index.js +17 -11
- package/dist/cjs/view/micro-app/resources/manifest.js +16 -13
- package/dist/cjs/view/micro-app/resources/script.js +12 -11
- package/dist/cjs/view/micro-app/resources/style.js +11 -10
- package/dist/cjs/view/micro-app/types.js +18 -1
- package/dist/cjs/view/micro-app/use-app-will-render.js +36 -19
- package/dist/cjs/view/micro-app/utils.js +11 -10
- package/dist/cjs/view/micro-iframe-app/app.js +57 -22
- package/dist/cjs/view/micro-iframe-app/iframe/const.js +19 -2
- package/dist/cjs/view/micro-iframe-app/iframe/index.js +37 -14
- package/dist/cjs/view/micro-iframe-app/index.js +49 -14
- package/dist/cjs/view/micro-iframe-app/types.js +18 -1
- package/dist/cjs/view/micro-iframe-app/use-frame-loaded.js +16 -13
- package/dist/cjs/view/modals/error/index.js +31 -22
- package/dist/cjs/view/modals/navigation-prompt/index.js +39 -22
- package/dist/cjs/view/modals/session-expiry/customHooks.js +14 -13
- package/dist/cjs/view/modals/session-expiry/index.js +39 -30
- package/dist/cjs/view/modals/wait-message/index.js +59 -22
- package/dist/cjs/view/modals/wait-message/{html-wait-message.js → use-html-wait-message.js} +14 -15
- package/dist/cjs/view/modals/wait-message/wait-message-launcher.js +14 -14
- package/dist/cjs/view/page.js +51 -0
- package/dist/cjs/view/render-with-delay/index.js +15 -9
- package/dist/cjs/view/render-with-host-data/index.js +16 -10
- package/dist/cjs/view/require-auth.js +58 -0
- package/dist/cjs/view/session-timeout/index.js +23 -13
- package/dist/cjs/view/storybook/decorator.js +15 -9
- package/dist/cjs/view/use-previous.js +11 -10
- package/dist/cjs/view/{window-size/index.js → use-window-size-change.js} +15 -16
- package/dist/cjs/view/visually-hidden/index.js +32 -13
- package/dist/esm/analytics/appdynamics.js +34 -0
- package/dist/esm/analytics/index.js +43 -0
- package/dist/{es → esm}/analytics/page-view-event.js +0 -0
- package/dist/{es → esm}/analytics/user-session-event.js +0 -0
- package/dist/{es → esm}/analytics/user-wait-event.js +0 -0
- package/dist/esm/analytics/web-analytics.js +30 -0
- package/dist/{es → esm}/api/auth/index.js +0 -0
- package/dist/{es → esm}/api/helpers.js +0 -0
- package/dist/{es → esm}/api/users/index.js +0 -0
- package/dist/{es → esm}/api/users/users.json +0 -0
- package/dist/{es → esm}/app.config.json +0 -0
- package/dist/esm/communication/http-client/index.js +70 -0
- package/dist/{es → esm}/communication/http-client/request-interceptor.js +0 -0
- package/dist/{es → esm}/communication/http-client/response-interceptor.js +0 -0
- package/dist/{es → esm}/communication/http-client/retry-axios.js +1 -1
- package/dist/{es → esm}/communication/http-client/retry.js +0 -0
- package/dist/{es → esm}/data/auth/actions.js +0 -0
- package/dist/{es → esm}/data/auth/reducer.js +0 -0
- package/dist/{es → esm}/data/breakpoint/index.js +0 -0
- package/dist/{es → esm}/data/error/index.js +0 -0
- package/dist/esm/data/index.js +11 -0
- package/dist/{es → esm}/data/live-message/index.js +0 -0
- package/dist/{es → esm}/data/logout/actions.js +0 -0
- package/dist/{es → esm}/data/navigation-prompt/actions.js +0 -0
- package/dist/{es → esm}/data/react-redux.js +0 -0
- package/dist/esm/data/reducers.js +33 -0
- package/dist/{es → esm}/data/saga.js +0 -0
- package/dist/{es → esm}/data/store.js +5 -12
- package/dist/{es → esm}/data/wait-message/actions.js +0 -0
- package/dist/{es → esm}/data/wait-message/reducer.js +0 -0
- package/dist/esm/data/webpack-hmr.js +17 -0
- package/dist/{es → esm}/index.js +13 -11
- package/dist/{es → esm}/index.pug +0 -0
- package/dist/esm/micro-frontend.js +10 -0
- package/dist/esm/package.json +7 -0
- package/dist/esm/sideeffect/auth/index.js +64 -0
- package/dist/esm/sideeffect/error-toast/index.js +43 -0
- package/dist/esm/sideeffect/wait-message/index.js +55 -0
- package/dist/{es → esm}/utils/app-config/config.js +1 -1
- package/dist/{es → esm}/utils/app-config/index.js +0 -0
- package/dist/{es → esm}/utils/app-host-integration/react.js +0 -0
- package/dist/{es → esm}/utils/auth/helper.js +0 -0
- package/dist/{es → esm}/utils/auth/index.js +25 -7
- package/dist/{es → esm}/utils/await.js +0 -0
- package/dist/{es → esm}/utils/constants.js +0 -0
- package/dist/{es → esm}/utils/font-size.js +0 -0
- package/dist/{es → esm}/utils/guest-with-service.js +0 -0
- package/dist/{es → esm}/utils/helpers.js +1 -1
- package/dist/{es → esm}/utils/history.js +0 -0
- package/dist/{es → esm}/utils/log-records.js +0 -0
- package/dist/{es → esm}/utils/micro-frontend/console-logger.js +0 -0
- package/dist/{es → esm}/utils/micro-frontend/guest.js +1 -1
- package/dist/{es → esm}/utils/micro-frontend/host.js +5 -4
- package/dist/{es → esm}/utils/micro-frontend/index.js +0 -0
- package/dist/{es → esm}/utils/micro-frontend/types.js +0 -0
- package/dist/{es → esm}/utils/redact-pii.js +0 -0
- package/dist/{es → esm}/utils/service-worker.js +2 -3
- package/dist/{es → esm}/utils/session.js +2 -2
- package/dist/{es → esm}/utils/storybook/manager.js +0 -0
- package/dist/{es → esm}/utils/storybook/preview.js +8 -4
- package/dist/esm/utils/storybook/theme.js +45 -0
- package/dist/esm/utils/testing/index.js +38 -0
- package/dist/esm/utils/testing/render-with-redux.js +35 -0
- package/dist/esm/utils/testing/render-with-router-redux.js +41 -0
- package/dist/esm/utils/testing/render-with-router.js +37 -0
- package/dist/esm/utils/testing/render-with-state-addons.js +69 -0
- package/dist/{es → esm}/utils/types.js +0 -0
- package/dist/{es → esm}/utils/url.js +0 -0
- package/dist/{es → esm}/utils/web-storage.js +0 -0
- package/dist/{es → esm}/utils/window.js +0 -0
- package/dist/esm/view/app-root/hosted-app.js +20 -0
- package/dist/{es → esm}/view/app-root/index.js +19 -12
- package/dist/esm/view/app-root/stand-alone-app.js +25 -0
- package/dist/{es → esm}/view/app-root/style.js +0 -0
- package/dist/esm/view/app-router.js +50 -0
- package/dist/{es/view/media-breakpoint/index.js → esm/view/breakpoint/use-breakpoint.js} +4 -6
- package/dist/{es/view/useMediaBreakpoints/index.js → esm/view/breakpoint/use-media-query-list.js} +4 -4
- package/dist/esm/view/error-boundary/default-error-template.js +5 -0
- package/dist/esm/view/error-boundary/index.js +54 -0
- package/dist/esm/view/error-toast/index.js +42 -0
- package/dist/{es → esm}/view/fetch-host-app-data/index.js +0 -0
- package/dist/esm/view/fetch-host-app-data/store.js +28 -0
- package/dist/esm/view/fields/check-box/index.js +52 -0
- package/dist/esm/view/fields/combo-box/index.js +64 -0
- package/dist/esm/view/fields/connect-form.js +24 -0
- package/dist/esm/view/fields/date-input/index.js +53 -0
- package/dist/esm/view/fields/date-picker/index.js +53 -0
- package/dist/esm/view/fields/form-item-layout/index.js +50 -0
- package/dist/esm/view/fields/form-layout-block-item/index.js +57 -0
- package/dist/esm/view/fields/input-mask/index.js +59 -0
- package/dist/esm/view/fields/large-text-box/index.js +53 -0
- package/dist/esm/view/fields/radio/index.js +62 -0
- package/dist/esm/view/fields/radio-group/index.js +52 -0
- package/dist/esm/view/fields/text-box/index.js +53 -0
- package/dist/esm/view/fields/watch-value.js +23 -0
- package/dist/esm/view/form/index.js +46 -0
- package/dist/{es → esm}/view/form/personal-info-section.js +29 -25
- package/dist/esm/view/form/submit-button/index.js +48 -0
- package/dist/{es → esm}/view/guest-unload-handlers/index.js +0 -0
- package/dist/{es → esm}/view/host-binding-events/index.js +0 -0
- package/dist/{es → esm}/view/intro.stories.mdx +0 -0
- package/dist/{es → esm}/view/live-message/index.js +0 -0
- package/dist/esm/view/loadable/index.js +28 -0
- package/dist/{es → esm}/view/login/index.js +2 -7
- package/dist/{es → esm}/view/message-to-host-app/index.js +0 -0
- package/dist/{es → esm}/view/micro-app/app-factory/index.js +23 -2
- package/dist/{es → esm}/view/micro-app/const.js +0 -0
- package/dist/{es → esm}/view/micro-app/index.js +0 -0
- package/dist/{es → esm}/view/micro-app/resources/manifest.js +2 -0
- package/dist/{es → esm}/view/micro-app/resources/script.js +1 -1
- package/dist/{es → esm}/view/micro-app/resources/style.js +0 -0
- package/dist/{es → esm}/view/micro-app/types.js +0 -0
- package/dist/{es → esm}/view/micro-app/use-app-will-render.js +21 -3
- package/dist/{es → esm}/view/micro-app/utils.js +0 -0
- package/dist/esm/view/micro-iframe-app/app.js +58 -0
- package/dist/{es → esm}/view/micro-iframe-app/iframe/const.js +0 -0
- package/dist/{es → esm}/view/micro-iframe-app/iframe/index.html +0 -0
- package/dist/esm/view/micro-iframe-app/iframe/index.js +54 -0
- package/dist/esm/view/micro-iframe-app/index.js +57 -0
- package/dist/{es → esm}/view/micro-iframe-app/types.js +0 -0
- package/dist/{es → esm}/view/micro-iframe-app/use-frame-loaded.js +2 -0
- package/dist/esm/view/modals/error/index.js +33 -0
- package/dist/esm/view/modals/navigation-prompt/index.js +40 -0
- package/dist/{es → esm}/view/modals/session-expiry/customHooks.js +0 -0
- package/dist/esm/view/modals/session-expiry/index.js +51 -0
- package/dist/esm/view/modals/wait-message/index.js +69 -0
- package/dist/esm/view/modals/wait-message/use-html-wait-message.js +11 -0
- package/dist/{es → esm}/view/modals/wait-message/wait-message-launcher.js +1 -2
- package/dist/{es/route/page-view.js → esm/view/page.js} +7 -0
- package/dist/{es → esm}/view/render-with-delay/index.js +1 -1
- package/dist/{es → esm}/view/render-with-host-data/index.js +0 -0
- package/dist/esm/view/require-auth.js +29 -0
- package/dist/{es → esm}/view/session-timeout/index.js +5 -1
- package/dist/{es → esm}/view/storybook/decorator.js +0 -0
- package/dist/{es → esm}/view/use-previous.js +0 -0
- package/dist/{es/view/window-size/index.js → esm/view/use-window-size-change.js} +3 -5
- package/dist/esm/view/visually-hidden/index.js +37 -0
- package/dist/types/communication/http-client/tests/{index.test-disable.d.ts → index.test.d.ts} +0 -0
- package/dist/types/data/index.d.ts +4 -0
- package/dist/types/data/react-redux.d.ts +8 -17
- package/dist/types/data/store.d.ts +0 -1
- package/dist/types/data/webpack-hmr.d.ts +1 -0
- package/dist/types/index.d.ts +5 -6
- package/dist/types/micro-frontend.d.ts +6 -0
- package/dist/types/utils/app-config/config.d.ts +1 -1
- package/dist/types/utils/history.d.ts +2 -2
- package/dist/types/utils/micro-frontend/guest.d.ts +3 -3
- package/dist/types/utils/micro-frontend/host.d.ts +2 -2
- package/dist/types/utils/micro-frontend/types.d.ts +1 -1
- package/dist/types/utils/session.d.ts +5 -2
- package/dist/types/utils/storybook/{main.d.cts → cjs/main.d.ts} +15 -1
- package/dist/types/utils/storybook/{middleware.d.cts → cjs/middleware.d.ts} +0 -0
- package/dist/types/utils/storybook/{vite.d.cts → cjs/vite.d.ts} +0 -0
- package/dist/types/utils/storybook/{webpack.d.cts → cjs/webpack.d.ts} +0 -0
- package/dist/types/utils/storybook/preview.d.ts +1 -0
- package/dist/types/utils/testing/render-with-router.d.ts +1 -1
- package/dist/types/utils/testing/render-with-state-addons.d.ts +1 -1
- package/dist/types/view/app-root/hosted-app.d.ts +2 -1
- package/dist/types/view/app-root/index.d.ts +1 -1
- package/dist/types/view/app-root/stand-alone-app.d.ts +1 -1
- package/dist/types/view/app-router.d.ts +9 -0
- package/dist/types/view/{media-breakpoint → breakpoint}/index.stories.d.ts +0 -0
- package/dist/types/view/breakpoint/use-breakpoint.d.ts +1 -0
- package/dist/types/view/breakpoint/use-media-query-list.d.ts +1 -0
- package/dist/types/view/error-boundary/default-error-template.d.ts +1 -1
- package/dist/types/view/fields/check-box/index.d.ts +2 -4
- package/dist/types/view/fields/check-box/index.stories.d.ts +1 -3
- package/dist/types/view/fields/combo-box/index.d.ts +1 -2
- package/dist/types/view/fields/combo-box/index.stories.d.ts +2 -4
- package/dist/types/view/fields/connect-form.d.ts +1 -1
- package/dist/types/view/fields/date-input/index.d.ts +1 -1
- package/dist/types/view/fields/date-picker/index.d.ts +2 -1
- package/dist/types/view/fields/date-picker/index.stories.d.ts +1 -3
- package/dist/types/view/fields/form-item-layout/index.d.ts +1 -1
- package/dist/types/view/fields/form-layout-block-item/index.d.ts +8 -0
- package/dist/types/view/{header → fields/form-layout-block-item}/index.stories.d.ts +2 -2
- package/dist/types/view/fields/input-mask/index.d.ts +2 -2
- package/dist/types/view/fields/input-mask/index.stories.d.ts +1 -3
- package/dist/types/view/fields/large-text-box/index.d.ts +1 -1
- package/dist/types/view/fields/large-text-box/index.stories.d.ts +1 -3
- package/dist/types/view/fields/radio/index.d.ts +2 -2
- package/dist/types/view/fields/radio/index.stories.d.ts +1 -3
- package/dist/types/view/fields/radio-group/index.d.ts +1 -1
- package/dist/types/view/fields/text-box/index.d.ts +1 -1
- package/dist/types/view/fields/watch-value.d.ts +2 -2
- package/dist/types/view/form/personal-info-section.d.ts +3 -3
- package/dist/types/view/form/submit-button/index.d.ts +2 -1
- package/dist/types/view/live-message/index.d.ts +1 -1
- package/dist/types/view/login/index.d.ts +1 -2
- package/dist/types/view/micro-app/app-factory/index.d.ts +2 -2
- package/dist/types/view/micro-app/resources/manifest.d.ts +2 -2
- package/dist/types/view/modals/error/index.d.ts +3 -2
- package/dist/types/view/modals/navigation-prompt/index.d.ts +0 -1
- package/dist/types/view/modals/session-expiry/index.d.ts +0 -1
- package/dist/types/view/modals/wait-message/index.stories.d.ts +6 -2
- package/dist/types/view/modals/wait-message/use-html-wait-message.d.ts +1 -0
- package/dist/types/view/modals/wait-message/wait-message-launcher.d.ts +1 -2
- package/dist/types/view/page.d.ts +8 -0
- package/dist/types/view/require-auth.d.ts +8 -0
- package/dist/types/view/session-timeout/index.d.ts +1 -1
- package/dist/types/view/session-timeout/index.stories.d.ts +1 -4
- package/dist/types/view/use-window-size-change.d.ts +1 -0
- package/package.json +67 -36
- package/dist/cjs/communication/http-client/tests/index.test-disable.js +0 -64
- package/dist/cjs/route/index.js +0 -49
- package/dist/cjs/route/page-view.js +0 -38
- package/dist/cjs/route/private-route/index.js +0 -69
- package/dist/cjs/typings/custom.d.js +0 -0
- package/dist/cjs/typings/elliemae.d.js +0 -0
- package/dist/cjs/typings/styled.d.js +0 -19
- package/dist/cjs/typings/thirdparty.d.js +0 -0
- package/dist/cjs/view/header/center-region/index.js +0 -65
- package/dist/cjs/view/header/index.js +0 -44
- package/dist/cjs/view/header/logo-region/index.js +0 -33
- package/dist/cjs/view/header/logo-region/logo.svg +0 -2
- package/dist/cjs/view/header/nav-region/index.js +0 -47
- package/dist/cjs/view/header/nav-region/notification/index.js +0 -32
- package/dist/cjs/view/header/nav-region/notification/index.svg +0 -5
- package/dist/cjs/view/header/nav-region/user/index.js +0 -32
- package/dist/cjs/view/header/nav-region/user/index.svg +0 -4
- package/dist/es/analytics/appdynamics.js +0 -18
- package/dist/es/analytics/index.js +0 -27
- package/dist/es/analytics/web-analytics.js +0 -14
- package/dist/es/communication/http-client/index.js +0 -35
- package/dist/es/communication/http-client/tests/index.test-disable.js +0 -46
- package/dist/es/data/reducers.js +0 -18
- package/dist/es/package.json +0 -1
- package/dist/es/route/index.js +0 -26
- package/dist/es/route/private-route/index.js +0 -46
- package/dist/es/sideeffect/auth/index.js +0 -47
- package/dist/es/sideeffect/error-toast/index.js +0 -25
- package/dist/es/sideeffect/wait-message/index.js +0 -38
- package/dist/es/typings/custom.d.js +0 -0
- package/dist/es/typings/elliemae.d.js +0 -0
- package/dist/es/typings/styled.d.js +0 -1
- package/dist/es/typings/thirdparty.d.js +0 -0
- package/dist/es/utils/storybook/theme.js +0 -13
- package/dist/es/utils/testing/index.js +0 -22
- package/dist/es/utils/testing/render-with-redux.js +0 -17
- package/dist/es/utils/testing/render-with-router-redux.js +0 -23
- package/dist/es/utils/testing/render-with-router.js +0 -16
- package/dist/es/utils/testing/render-with-state-addons.js +0 -38
- package/dist/es/view/app-root/hosted-app.js +0 -15
- package/dist/es/view/app-root/stand-alone-app.js +0 -21
- package/dist/es/view/error-boundary/default-error-template.js +0 -5
- package/dist/es/view/error-boundary/index.js +0 -36
- package/dist/es/view/error-toast/index.js +0 -35
- package/dist/es/view/fetch-host-app-data/store.js +0 -12
- package/dist/es/view/fields/check-box/index.js +0 -25
- package/dist/es/view/fields/combo-box/index.js +0 -28
- package/dist/es/view/fields/connect-form.js +0 -10
- package/dist/es/view/fields/date-input/index.js +0 -22
- package/dist/es/view/fields/date-picker/index.js +0 -22
- package/dist/es/view/fields/form-item-layout/index.js +0 -23
- package/dist/es/view/fields/input-mask/index.js +0 -28
- package/dist/es/view/fields/large-text-box/index.js +0 -22
- package/dist/es/view/fields/radio/index.js +0 -24
- package/dist/es/view/fields/radio-group/index.js +0 -21
- package/dist/es/view/fields/text-box/index.js +0 -22
- package/dist/es/view/fields/watch-value.js +0 -21
- package/dist/es/view/form/index.js +0 -33
- package/dist/es/view/form/submit-button/index.js +0 -19
- package/dist/es/view/header/center-region/index.js +0 -42
- package/dist/es/view/header/index.js +0 -21
- package/dist/es/view/header/logo-region/index.js +0 -10
- package/dist/es/view/header/logo-region/logo.svg +0 -2
- package/dist/es/view/header/nav-region/index.js +0 -24
- package/dist/es/view/header/nav-region/notification/index.js +0 -9
- package/dist/es/view/header/nav-region/notification/index.svg +0 -5
- package/dist/es/view/header/nav-region/user/index.js +0 -9
- package/dist/es/view/header/nav-region/user/index.svg +0 -4
- package/dist/es/view/loadable/index.js +0 -14
- package/dist/es/view/micro-iframe-app/app.js +0 -27
- package/dist/es/view/micro-iframe-app/iframe/index.js +0 -35
- package/dist/es/view/micro-iframe-app/index.js +0 -26
- package/dist/es/view/modals/error/index.js +0 -24
- package/dist/es/view/modals/navigation-prompt/index.js +0 -22
- package/dist/es/view/modals/session-expiry/index.js +0 -40
- package/dist/es/view/modals/wait-message/html-wait-message.js +0 -13
- package/dist/es/view/modals/wait-message/index.js +0 -36
- package/dist/es/view/visually-hidden/index.js +0 -22
- package/dist/types/route/index.d.ts +0 -8
- package/dist/types/route/page-view.d.ts +0 -1
- package/dist/types/route/private-route/index.d.ts +0 -8
- package/dist/types/view/header/center-region/index.d.ts +0 -9
- package/dist/types/view/header/index.d.ts +0 -7
- package/dist/types/view/header/logo-region/index.d.ts +0 -2
- package/dist/types/view/header/nav-region/index.d.ts +0 -2
- package/dist/types/view/header/nav-region/notification/index.d.ts +0 -2
- package/dist/types/view/header/nav-region/user/index.d.ts +0 -2
- package/dist/types/view/media-breakpoint/index.d.ts +0 -2
- package/dist/types/view/modals/wait-message/html-wait-message.d.ts +0 -6
- package/dist/types/view/useMediaBreakpoints/index.d.ts +0 -1
- package/dist/types/view/window-size/index.d.ts +0 -2
|
@@ -0,0 +1,70 @@
|
|
|
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
|
+
import axios from "axios";
|
|
33
|
+
import { getAppConfigValue } from "../../utils/app-config/config.js";
|
|
34
|
+
import { getAuthorizationHeader } from "../../utils/auth/helper.js";
|
|
35
|
+
import setupRetry from "./retry.js";
|
|
36
|
+
import { requestInterceptor } from "./request-interceptor.js";
|
|
37
|
+
import { handleSuccess, handleFailure } from "./response-interceptor.js";
|
|
38
|
+
const REQUEST_TIMEOUT = 2 * 60 * 1e3;
|
|
39
|
+
const getHTTPClient = ({
|
|
40
|
+
baseURL = getAppConfigValue("serviceEndpoints.api", ""),
|
|
41
|
+
headers = {}
|
|
42
|
+
} = {}) => {
|
|
43
|
+
const client = axios.create({ baseURL, headers });
|
|
44
|
+
if (client?.defaults?.timeout)
|
|
45
|
+
client.defaults.timeout = REQUEST_TIMEOUT;
|
|
46
|
+
setupRetry(client);
|
|
47
|
+
const { request, response } = client?.interceptors || {};
|
|
48
|
+
if (request)
|
|
49
|
+
request.use(requestInterceptor);
|
|
50
|
+
if (response)
|
|
51
|
+
response.use(handleSuccess, handleFailure);
|
|
52
|
+
return client;
|
|
53
|
+
};
|
|
54
|
+
const getAuthHTTPClient = (_a = {}) => {
|
|
55
|
+
var _b = _a, {
|
|
56
|
+
baseURL,
|
|
57
|
+
headers = {}
|
|
58
|
+
} = _b, rest = __objRest(_b, [
|
|
59
|
+
"baseURL",
|
|
60
|
+
"headers"
|
|
61
|
+
]);
|
|
62
|
+
return getHTTPClient(__spreadValues({
|
|
63
|
+
baseURL,
|
|
64
|
+
headers: __spreadProps(__spreadValues({}, headers), { Authorization: getAuthorizationHeader() })
|
|
65
|
+
}, rest));
|
|
66
|
+
};
|
|
67
|
+
export {
|
|
68
|
+
getAuthHTTPClient,
|
|
69
|
+
getHTTPClient
|
|
70
|
+
};
|
|
File without changes
|
|
File without changes
|
|
@@ -64,7 +64,7 @@ const onError = (err) => {
|
|
|
64
64
|
return Promise.reject(err);
|
|
65
65
|
}
|
|
66
66
|
const onBackoffPromise = new Promise((resolve) => {
|
|
67
|
-
const delay = (
|
|
67
|
+
const delay = (2 ** config.currentRetryAttempt - 1) / 2 * 1e3;
|
|
68
68
|
err.config.retryConfig.currentRetryAttempt += 1;
|
|
69
69
|
setTimeout(resolve, delay);
|
|
70
70
|
});
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { useInjectReducer, useInjectSaga } from "redux-injectors";
|
|
2
|
+
import { useAppDispatch, useAppSelector } from "./react-redux.js";
|
|
3
|
+
import { createAppStore, getStore } from "./store.js";
|
|
4
|
+
export {
|
|
5
|
+
createAppStore as configureStore,
|
|
6
|
+
getStore,
|
|
7
|
+
useAppDispatch,
|
|
8
|
+
useAppSelector,
|
|
9
|
+
useInjectReducer,
|
|
10
|
+
useInjectSaga
|
|
11
|
+
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
import { combineReducers } from "@reduxjs/toolkit";
|
|
18
|
+
import { waitMessageReducer } from "./wait-message/reducer.js";
|
|
19
|
+
import { errorReducer } from "./error/index.js";
|
|
20
|
+
import { breakpointReducer } from "./breakpoint/index.js";
|
|
21
|
+
import { liveMessageReducer } from "./live-message/index.js";
|
|
22
|
+
const createReducer = (injectedReducers = {}) => {
|
|
23
|
+
const rootReducer = combineReducers(__spreadValues({
|
|
24
|
+
waitMessage: waitMessageReducer,
|
|
25
|
+
error: errorReducer,
|
|
26
|
+
breakpoint: breakpointReducer,
|
|
27
|
+
liveMessage: liveMessageReducer
|
|
28
|
+
}, injectedReducers));
|
|
29
|
+
return rootReducer;
|
|
30
|
+
};
|
|
31
|
+
export {
|
|
32
|
+
createReducer
|
|
33
|
+
};
|
|
File without changes
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { configureStore } from "@reduxjs/toolkit";
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
createInjectorsEnhancer
|
|
4
|
+
} from "redux-injectors";
|
|
3
5
|
import createSagaMiddleware from "redux-saga";
|
|
4
6
|
import { createReducer } from "./reducers.js";
|
|
7
|
+
import { enableHotReloading } from "./webpack-hmr.js";
|
|
5
8
|
const rootReducer = createReducer();
|
|
6
9
|
let appStore = null;
|
|
7
10
|
const setStore = (store) => {
|
|
@@ -23,17 +26,7 @@ const createStore = (initialState, sagaMiddleware, history, middlewareConfig = {
|
|
|
23
26
|
preloadedState: initialState,
|
|
24
27
|
enhancers
|
|
25
28
|
});
|
|
26
|
-
|
|
27
|
-
try {
|
|
28
|
-
hotModule = module?.hot;
|
|
29
|
-
} catch (err) {
|
|
30
|
-
hotModule = import.meta?.webpackHot;
|
|
31
|
-
}
|
|
32
|
-
if (hotModule) {
|
|
33
|
-
hotModule.accept("./reducers", () => {
|
|
34
|
-
forceReducerReload(baseStore);
|
|
35
|
-
});
|
|
36
|
-
}
|
|
29
|
+
enableHotReloading(baseStore);
|
|
37
30
|
return baseStore;
|
|
38
31
|
};
|
|
39
32
|
const createAppStore = (initialState = {}, history, middlewareConfig) => {
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { forceReducerReload } from "redux-injectors";
|
|
2
|
+
const enableHotReloading = (baseStore) => {
|
|
3
|
+
let hotModule = null;
|
|
4
|
+
try {
|
|
5
|
+
hotModule = module?.hot;
|
|
6
|
+
} catch (err) {
|
|
7
|
+
hotModule = import.meta?.webpackHot;
|
|
8
|
+
}
|
|
9
|
+
if (hotModule) {
|
|
10
|
+
hotModule.accept("./reducers", () => {
|
|
11
|
+
forceReducerReload(baseStore);
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
enableHotReloading
|
|
17
|
+
};
|
package/dist/{es → esm}/index.js
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { isUserAuthorized, login, authorize } from "./utils/auth/index.js";
|
|
2
|
-
import { PrivateRoute } from "./route/private-route/index.js";
|
|
3
|
-
import { AppRoute } from "./route/index.js";
|
|
4
2
|
import {
|
|
5
3
|
getHTTPClient,
|
|
6
4
|
getAuthHTTPClient
|
|
7
5
|
} from "./communication/http-client/index.js";
|
|
8
6
|
import { onAuthorizationFailure } from "./communication/http-client/response-interceptor.js";
|
|
9
7
|
import { auth } from "./data/auth/actions.js";
|
|
8
|
+
import { RequireAuth } from "./view/require-auth.js";
|
|
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
12
|
import { useInjectReducer, useInjectSaga } from "redux-injectors";
|
|
@@ -35,7 +35,10 @@ import {
|
|
|
35
35
|
setAppConfigValue,
|
|
36
36
|
setAppConfig
|
|
37
37
|
} from "./utils/app-config/config.js";
|
|
38
|
-
import {
|
|
38
|
+
import {
|
|
39
|
+
getMicroFrontEndAppConfig,
|
|
40
|
+
getLogger
|
|
41
|
+
} from "./utils/micro-frontend/index.js";
|
|
39
42
|
import { loadAppConfig } from "./utils/app-config/index.js";
|
|
40
43
|
import { AppRoot } from "./view/app-root/index.js";
|
|
41
44
|
import { ErrorBoundary } from "./view/error-boundary/index.js";
|
|
@@ -62,13 +65,12 @@ import { renderWithRouter } from "./utils/testing/render-with-router.js";
|
|
|
62
65
|
import { RenderWithStateAddOns } from "./utils/testing/render-with-state-addons.js";
|
|
63
66
|
import { getApiActionCreator, getSelectField } from "./api/helpers.js";
|
|
64
67
|
import { getUser } from "./api/users/index.js";
|
|
65
|
-
import { useMediaBreakpoints } from "./view/useMediaBreakpoints/index.js";
|
|
66
68
|
import { withAppDecorator } from "./view/storybook/decorator.js";
|
|
67
|
-
import { Header } from "./view/header/index.js";
|
|
68
69
|
import { ErrorToast } from "./view/error-toast/index.js";
|
|
69
70
|
import { Form } from "./view/form/index.js";
|
|
70
71
|
import { ConnectForm } from "./view/fields/connect-form.js";
|
|
71
72
|
import { FormItemLayout } from "./view/fields/form-item-layout/index.js";
|
|
73
|
+
import { FormLayoutBlockItem } from "./view/fields/form-layout-block-item/index.js";
|
|
72
74
|
import { TextBox } from "./view/fields/text-box/index.js";
|
|
73
75
|
import { LargeTextBox } from "./view/fields/large-text-box/index.js";
|
|
74
76
|
import {
|
|
@@ -83,7 +85,7 @@ import { RadioGroup } from "./view/fields/radio-group/index.js";
|
|
|
83
85
|
import { DateInput } from "./view/fields/date-input/index.js";
|
|
84
86
|
import { DatePicker } from "./view/fields/date-picker/index.js";
|
|
85
87
|
import { FormSubmitButton } from "./view/form/submit-button/index.js";
|
|
86
|
-
import {
|
|
88
|
+
import { useMediaQueryList } from "./view/breakpoint/use-media-query-list.js";
|
|
87
89
|
import { VisuallyHidden } from "./view/visually-hidden/index.js";
|
|
88
90
|
import { actions } from "./data/live-message/index.js";
|
|
89
91
|
import { actions as actions2 } from "./data/error/index.js";
|
|
@@ -110,22 +112,21 @@ export {
|
|
|
110
112
|
ErrorToast,
|
|
111
113
|
Form,
|
|
112
114
|
FormItemLayout,
|
|
115
|
+
FormLayoutBlockItem,
|
|
113
116
|
FormSubmitButton,
|
|
114
|
-
Header,
|
|
115
117
|
InputMask,
|
|
116
118
|
LargeTextBox,
|
|
117
119
|
MASK_PIPES,
|
|
118
120
|
MASK_TYPES,
|
|
119
|
-
MediaBreakpoint,
|
|
120
121
|
MicroApp,
|
|
121
122
|
MicroIFrameApp,
|
|
122
123
|
ACTIONS as NavigationPromptActions,
|
|
123
|
-
|
|
124
|
+
Page,
|
|
124
125
|
Radio,
|
|
125
126
|
RadioGroup,
|
|
126
127
|
RegisterService,
|
|
127
128
|
RenderWithStateAddOns,
|
|
128
|
-
|
|
129
|
+
RequireAuth,
|
|
129
130
|
SessionTimeout,
|
|
130
131
|
TextBox,
|
|
131
132
|
Themes,
|
|
@@ -145,6 +146,7 @@ export {
|
|
|
145
146
|
getAuthorizationHeader,
|
|
146
147
|
getHTTPClient,
|
|
147
148
|
getHostAppDataByKey,
|
|
149
|
+
getLogger,
|
|
148
150
|
getMicroFrontEndAppConfig,
|
|
149
151
|
getNavigationLinks,
|
|
150
152
|
getRedirectUrl,
|
|
@@ -187,7 +189,7 @@ export {
|
|
|
187
189
|
useAppSelector,
|
|
188
190
|
useInjectReducer,
|
|
189
191
|
useInjectSaga,
|
|
190
|
-
|
|
192
|
+
useMediaQueryList,
|
|
191
193
|
waitMessage as waitMessageAction,
|
|
192
194
|
withAppDecorator
|
|
193
195
|
};
|
|
File without changes
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CMicroAppGuest } from "./utils/micro-frontend/guest.js";
|
|
2
|
+
import { CMicroAppHost } from "./utils/micro-frontend/host.js";
|
|
3
|
+
import { getMicroFrontEndAppConfig } from "./utils/micro-frontend/index.js";
|
|
4
|
+
import { enableReactAppForHostIntegration } from "./utils/app-host-integration/react.js";
|
|
5
|
+
export {
|
|
6
|
+
CMicroAppGuest,
|
|
7
|
+
CMicroAppHost,
|
|
8
|
+
enableReactAppForHostIntegration,
|
|
9
|
+
getMicroFrontEndAppConfig
|
|
10
|
+
};
|
|
@@ -0,0 +1,64 @@
|
|
|
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
|
+
import {
|
|
21
|
+
call,
|
|
22
|
+
put,
|
|
23
|
+
takeLatest
|
|
24
|
+
} from "redux-saga/effects";
|
|
25
|
+
import {
|
|
26
|
+
LOGIN,
|
|
27
|
+
LOGOUT,
|
|
28
|
+
LOGIN_SUCCESS
|
|
29
|
+
} from "../../data/auth/actions.js";
|
|
30
|
+
import { authorize, endSession } from "../../utils/auth/index.js";
|
|
31
|
+
import { getLogger } from "../../utils/micro-frontend/index.js";
|
|
32
|
+
import { logRecords } from "../../utils/log-records.js";
|
|
33
|
+
function* login({
|
|
34
|
+
payload
|
|
35
|
+
}) {
|
|
36
|
+
try {
|
|
37
|
+
yield call(authorize, payload);
|
|
38
|
+
yield put({ type: LOGIN_SUCCESS });
|
|
39
|
+
} catch (err) {
|
|
40
|
+
getLogger().error(__spreadProps(__spreadValues({}, logRecords.LOGIN_FAILED), {
|
|
41
|
+
exception: err
|
|
42
|
+
}));
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
function* logout({
|
|
46
|
+
payload
|
|
47
|
+
}) {
|
|
48
|
+
try {
|
|
49
|
+
yield call(endSession, payload);
|
|
50
|
+
} catch (err) {
|
|
51
|
+
getLogger().error(__spreadProps(__spreadValues({}, logRecords.LOGOUT_FAILED), {
|
|
52
|
+
exception: err
|
|
53
|
+
}));
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
function* authentication() {
|
|
57
|
+
yield takeLatest(LOGIN, login);
|
|
58
|
+
yield takeLatest(LOGOUT, logout);
|
|
59
|
+
}
|
|
60
|
+
export {
|
|
61
|
+
authentication,
|
|
62
|
+
login,
|
|
63
|
+
logout
|
|
64
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
import { call, takeLatest } from "redux-saga/effects";
|
|
21
|
+
import { actions } from "../../data/error/index.js";
|
|
22
|
+
import { CMicroAppGuest } from "../../utils/micro-frontend/guest.js";
|
|
23
|
+
import { getLogger } from "../../utils/micro-frontend/index.js";
|
|
24
|
+
import { logRecords } from "../../utils/log-records.js";
|
|
25
|
+
function* openErrorToast(action) {
|
|
26
|
+
try {
|
|
27
|
+
const microApp = yield call(CMicroAppGuest.getInstance.bind(CMicroAppGuest));
|
|
28
|
+
const host = yield call(microApp.getHost.bind(microApp));
|
|
29
|
+
const message = action?.payload?.description || action?.payload?.messageText;
|
|
30
|
+
if (host && message)
|
|
31
|
+
yield call(host.openErrorBanner.bind(host), message);
|
|
32
|
+
} catch (ex) {
|
|
33
|
+
getLogger().error(__spreadProps(__spreadValues({}, logRecords.ERR_TOAST_OPEN_FAILED), {
|
|
34
|
+
exception: ex
|
|
35
|
+
}));
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
function* errorToast() {
|
|
39
|
+
yield takeLatest(actions.set.type, openErrorToast);
|
|
40
|
+
}
|
|
41
|
+
export {
|
|
42
|
+
errorToast
|
|
43
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
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
|
+
import { call, takeLatest } from "redux-saga/effects";
|
|
21
|
+
import { ACTIONS } from "../../data/wait-message/actions.js";
|
|
22
|
+
import { CMicroAppGuest } from "../../utils/micro-frontend/guest.js";
|
|
23
|
+
import { getLogger } from "../../utils/micro-frontend/index.js";
|
|
24
|
+
import { logRecords } from "../../utils/log-records.js";
|
|
25
|
+
function* openWaitMessage() {
|
|
26
|
+
try {
|
|
27
|
+
const microApp = yield call(CMicroAppGuest.getInstance.bind(CMicroAppGuest));
|
|
28
|
+
const host = yield call(microApp.getHost.bind(microApp));
|
|
29
|
+
if (host)
|
|
30
|
+
yield call(host.openWaitMessage.bind(host));
|
|
31
|
+
} catch (ex) {
|
|
32
|
+
getLogger().error(__spreadProps(__spreadValues({}, logRecords.WAIT_MSG_OPEN_FAILED), {
|
|
33
|
+
exception: ex
|
|
34
|
+
}));
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
function* closeWaitMessage() {
|
|
38
|
+
try {
|
|
39
|
+
const microApp = yield call(CMicroAppGuest.getInstance.bind(CMicroAppGuest));
|
|
40
|
+
const host = yield call(microApp.getHost.bind(microApp));
|
|
41
|
+
if (host)
|
|
42
|
+
yield call(host.closeWaitMessage.bind(host));
|
|
43
|
+
} catch (ex) {
|
|
44
|
+
getLogger().error(__spreadProps(__spreadValues({}, logRecords.WAIT_MSG_CLOSE_FAILED), {
|
|
45
|
+
exception: ex
|
|
46
|
+
}));
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
function* waitMessage() {
|
|
50
|
+
yield takeLatest(ACTIONS.OPEN, openWaitMessage);
|
|
51
|
+
yield takeLatest(ACTIONS.CLOSE, closeWaitMessage);
|
|
52
|
+
}
|
|
53
|
+
export {
|
|
54
|
+
waitMessage
|
|
55
|
+
};
|
|
@@ -4,7 +4,7 @@ const setAppConfig = (config) => {
|
|
|
4
4
|
gAppConfig = config;
|
|
5
5
|
};
|
|
6
6
|
const getAppConfigValue = (key = "", defaultValue = null) => _.clone(_.get(gAppConfig, key, defaultValue));
|
|
7
|
-
const setAppConfigValue = (key
|
|
7
|
+
const setAppConfigValue = (key, value) => _.set(gAppConfig, key, value);
|
|
8
8
|
const hasItem = (key = "") => _.has(gAppConfig, key);
|
|
9
9
|
export {
|
|
10
10
|
getAppConfigValue,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,3 +1,22 @@
|
|
|
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));
|
|
1
20
|
import { browserHistory as history } from "../history.js";
|
|
2
21
|
import {
|
|
3
22
|
getToken,
|
|
@@ -69,10 +88,9 @@ const endSession = async ({
|
|
|
69
88
|
logoutUrl.search = searchParams.toString();
|
|
70
89
|
window.location.replace(logoutUrl.href);
|
|
71
90
|
} catch (err) {
|
|
72
|
-
getLogger().error({
|
|
73
|
-
...logRecords.LOGOUT_FAILED,
|
|
91
|
+
getLogger().error(__spreadProps(__spreadValues({}, logRecords.LOGOUT_FAILED), {
|
|
74
92
|
exception: err
|
|
75
|
-
});
|
|
93
|
+
}));
|
|
76
94
|
}
|
|
77
95
|
};
|
|
78
96
|
const authorize = async ({
|
|
@@ -113,14 +131,14 @@ const authorize = async ({
|
|
|
113
131
|
setAppDynamicsUserData({ instanceId, userId: userName });
|
|
114
132
|
const data = await getUser({ userName });
|
|
115
133
|
sessionStorage.setItem("userSettings", JSON.stringify(data));
|
|
116
|
-
history.push(new URL(redirectUri).pathname);
|
|
134
|
+
history.push(`${new URL(redirectUri).pathname}/rerender`);
|
|
135
|
+
history.replace(new URL(redirectUri).pathname);
|
|
117
136
|
} catch (err) {
|
|
118
137
|
const code = err?.response?.data?.code;
|
|
119
138
|
await endSession({ clientId, redirectUri, code, scope, responseType });
|
|
120
|
-
getLogger().error({
|
|
121
|
-
...logRecords.LOGIN_FAILED,
|
|
139
|
+
getLogger().error(__spreadProps(__spreadValues({}, logRecords.LOGIN_FAILED), {
|
|
122
140
|
exception: err
|
|
123
|
-
});
|
|
141
|
+
}));
|
|
124
142
|
}
|
|
125
143
|
};
|
|
126
144
|
const login = async ({
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const isProd = () => false;
|
|
2
2
|
const isCIBuild = () => process.env.CI === "true";
|
|
3
|
-
const PROTOCOL =
|
|
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;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -82,7 +82,7 @@ class CMicroAppGuest {
|
|
|
82
82
|
if (!isCrossDomain()) {
|
|
83
83
|
host = window.parent?.emui?.MicroAppHost || null;
|
|
84
84
|
} else if (ssfGuest && this.props.hostName) {
|
|
85
|
-
ssfGuest.connect();
|
|
85
|
+
await ssfGuest.connect();
|
|
86
86
|
const timeout = new Promise((resolve) => {
|
|
87
87
|
setTimeout(resolve, 100, null);
|
|
88
88
|
});
|
|
@@ -14,6 +14,7 @@ import {
|
|
|
14
14
|
HOST_WINDOW_BREAKPOINT_CHANGED
|
|
15
15
|
} from "../constants.js";
|
|
16
16
|
import {
|
|
17
|
+
getWindow,
|
|
17
18
|
getCurrentBreakpoint,
|
|
18
19
|
getViewportSize as getWindowViewportSize
|
|
19
20
|
} from "../window.js";
|
|
@@ -64,10 +65,10 @@ class CMicroAppHost {
|
|
|
64
65
|
return this.logger;
|
|
65
66
|
}
|
|
66
67
|
getItem(key) {
|
|
67
|
-
return
|
|
68
|
+
return getWindow().sessionStorage.getItem(key);
|
|
68
69
|
}
|
|
69
70
|
setItem(key, value) {
|
|
70
|
-
|
|
71
|
+
getWindow().sessionStorage.setItem(key, value);
|
|
71
72
|
}
|
|
72
73
|
getGuests() {
|
|
73
74
|
return this.activeGuests;
|
|
@@ -104,10 +105,10 @@ class CMicroAppHost {
|
|
|
104
105
|
store.dispatch(error.set({ description: message }));
|
|
105
106
|
}
|
|
106
107
|
getAuthToken() {
|
|
107
|
-
return
|
|
108
|
+
return getWindow().sessionStorage.getItem("Authorization");
|
|
108
109
|
}
|
|
109
110
|
renewAuthToken() {
|
|
110
|
-
return
|
|
111
|
+
return getWindow().sessionStorage.getItem("Authorization");
|
|
111
112
|
}
|
|
112
113
|
logout() {
|
|
113
114
|
const store = getStore();
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -7,10 +7,9 @@ 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({
|
|
11
|
-
...logRecords.SERVICE_WORKER_FAILED,
|
|
10
|
+
logger.error(__spreadProps(__spreadValues({}, logRecords.SERVICE_WORKER_FAILED), {
|
|
12
11
|
exception: registrationError
|
|
13
|
-
});
|
|
12
|
+
}));
|
|
14
13
|
});
|
|
15
14
|
});
|
|
16
15
|
}
|