@elliemae/pui-app-sdk 3.0.0-beta.8 → 3.0.2
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 +26 -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} +3 -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 +38 -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 +14 -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 -15
- 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 +2 -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 +21 -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 +0 -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 -2
- 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 +2 -2
- package/dist/types/utils/micro-frontend/host.d.ts +2 -2
- package/dist/types/utils/session.d.ts +5 -2
- package/dist/types/utils/storybook/{main.d.cts → cjs/main.d.ts} +6 -6
- 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/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 +65 -34
- 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
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
__markAsModule(target);
|
|
10
|
-
for (var name in all)
|
|
11
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
|
-
};
|
|
13
|
-
var __reExport = (target, module2, desc) => {
|
|
14
|
-
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
15
|
-
for (let key2 of __getOwnPropNames(module2))
|
|
16
|
-
if (!__hasOwnProp.call(target, key2) && key2 !== "default")
|
|
17
|
-
__defProp(target, key2, { get: () => module2[key2], enumerable: !(desc = __getOwnPropDesc(module2, key2)) || desc.enumerable });
|
|
18
|
-
}
|
|
19
|
-
return target;
|
|
20
|
-
};
|
|
21
|
-
var __toModule = (module2) => {
|
|
22
|
-
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
23
|
-
};
|
|
24
|
-
__export(exports, {
|
|
25
|
-
PrivateRoute: () => PrivateRoute
|
|
26
|
-
});
|
|
27
|
-
var React = __toModule(require("react"));
|
|
28
|
-
var import_react = __toModule(require("react"));
|
|
29
|
-
var import_redux_injectors = __toModule(require("redux-injectors"));
|
|
30
|
-
var import_constants = __toModule(require("../../utils/constants.js"));
|
|
31
|
-
var import_render_with_delay = __toModule(require("../../view/render-with-delay/index.js"));
|
|
32
|
-
var import_reducer = __toModule(require("../../data/auth/reducer.js"));
|
|
33
|
-
var import_auth = __toModule(require("../../sideeffect/auth/index.js"));
|
|
34
|
-
var import_login = __toModule(require("../../view/login/index.js"));
|
|
35
|
-
var import_auth2 = __toModule(require("../../utils/auth/index.js"));
|
|
36
|
-
var import__ = __toModule(require("../index.js"));
|
|
37
|
-
const key = "auth";
|
|
38
|
-
const PrivateRoute = ({
|
|
39
|
-
component: Component,
|
|
40
|
-
render,
|
|
41
|
-
children,
|
|
42
|
-
clientId = import_constants.default.CLIENT_ID,
|
|
43
|
-
scope = "loc",
|
|
44
|
-
responseType = "code",
|
|
45
|
-
...rest
|
|
46
|
-
}) => {
|
|
47
|
-
(0, import_redux_injectors.useInjectReducer)({ key, reducer: import_reducer.authReducer });
|
|
48
|
-
(0, import_redux_injectors.useInjectSaga)({ key, saga: import_auth.authentication });
|
|
49
|
-
const memoizedRender = (0, import_react.useCallback)((routeProps) => render && typeof render === "function" ? render(routeProps) : Component && /* @__PURE__ */ React.createElement(Component, {
|
|
50
|
-
...routeProps
|
|
51
|
-
}), [Component, render]);
|
|
52
|
-
return /* @__PURE__ */ React.createElement(import__.AppRoute, {
|
|
53
|
-
...rest,
|
|
54
|
-
render: (routeProps) => {
|
|
55
|
-
const userAuthorized = (0, import_auth2.isUserAuthorized)();
|
|
56
|
-
if (userAuthorized) {
|
|
57
|
-
return children || memoizedRender(routeProps);
|
|
58
|
-
}
|
|
59
|
-
const getAuthComp = () => /* @__PURE__ */ React.createElement(import_login.Login, {
|
|
60
|
-
clientId,
|
|
61
|
-
scope,
|
|
62
|
-
responseType
|
|
63
|
-
});
|
|
64
|
-
return /* @__PURE__ */ React.createElement(import_render_with_delay.RenderWithDelay, {
|
|
65
|
-
render: getAuthComp
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
});
|
|
69
|
-
};
|
|
File without changes
|
|
File without changes
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
|
-
var __reExport = (target, module2, desc) => {
|
|
9
|
-
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
10
|
-
for (let key of __getOwnPropNames(module2))
|
|
11
|
-
if (!__hasOwnProp.call(target, key) && key !== "default")
|
|
12
|
-
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
13
|
-
}
|
|
14
|
-
return target;
|
|
15
|
-
};
|
|
16
|
-
var __toModule = (module2) => {
|
|
17
|
-
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
18
|
-
};
|
|
19
|
-
var import_styled_components = __toModule(require("styled-components"));
|
|
File without changes
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
__markAsModule(target);
|
|
10
|
-
for (var name in all)
|
|
11
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
|
-
};
|
|
13
|
-
var __reExport = (target, module2, desc) => {
|
|
14
|
-
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
15
|
-
for (let key of __getOwnPropNames(module2))
|
|
16
|
-
if (!__hasOwnProp.call(target, key) && key !== "default")
|
|
17
|
-
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
18
|
-
}
|
|
19
|
-
return target;
|
|
20
|
-
};
|
|
21
|
-
var __toModule = (module2) => {
|
|
22
|
-
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
23
|
-
};
|
|
24
|
-
__export(exports, {
|
|
25
|
-
CenterRegion: () => CenterRegion
|
|
26
|
-
});
|
|
27
|
-
var React = __toModule(require("react"));
|
|
28
|
-
var import_react_router_dom = __toModule(require("react-router-dom"));
|
|
29
|
-
var import_styled_components = __toModule(require("styled-components"));
|
|
30
|
-
const NavList = import_styled_components.default.ul`
|
|
31
|
-
display: flex;
|
|
32
|
-
flex: auto;
|
|
33
|
-
align-items: center;
|
|
34
|
-
list-style: none;
|
|
35
|
-
margin: 0px 0px 0px 10px;
|
|
36
|
-
padding: 0;
|
|
37
|
-
height: 100%;
|
|
38
|
-
`;
|
|
39
|
-
const NavListItem = import_styled_components.default.li`
|
|
40
|
-
height: 100%;
|
|
41
|
-
text-align: center;
|
|
42
|
-
`;
|
|
43
|
-
const activeClassName = "nav-item-active";
|
|
44
|
-
const StyledNavLink = (0, import_styled_components.default)(import_react_router_dom.NavLink).attrs({
|
|
45
|
-
activeClassName
|
|
46
|
-
})`
|
|
47
|
-
display: flex;
|
|
48
|
-
align-items: center;
|
|
49
|
-
color: ${(props) => props.theme.colors.neutral["000"]};
|
|
50
|
-
text-decoration: none;
|
|
51
|
-
text-transform: uppercase;
|
|
52
|
-
height: 100%;
|
|
53
|
-
padding: 0 ${(props) => props.theme.space.xs} 0
|
|
54
|
-
${(props) => props.theme.space.xs};
|
|
55
|
-
|
|
56
|
-
&.${activeClassName} {
|
|
57
|
-
background-color: #48acff;
|
|
58
|
-
}
|
|
59
|
-
`;
|
|
60
|
-
const publicPath = (process.env.ASSET_PATH || "/").replace(/\/?$/, "");
|
|
61
|
-
const CenterRegion = ({ links = [] }) => /* @__PURE__ */ React.createElement(NavList, null, links.map(({ name = "", path = "" }) => /* @__PURE__ */ React.createElement(NavListItem, {
|
|
62
|
-
key: path
|
|
63
|
-
}, /* @__PURE__ */ React.createElement(StyledNavLink, {
|
|
64
|
-
to: `${publicPath}${path.replace(/^\/?/, "/")}`
|
|
65
|
-
}, name))));
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
__markAsModule(target);
|
|
10
|
-
for (var name in all)
|
|
11
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
|
-
};
|
|
13
|
-
var __reExport = (target, module2, desc) => {
|
|
14
|
-
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
15
|
-
for (let key of __getOwnPropNames(module2))
|
|
16
|
-
if (!__hasOwnProp.call(target, key) && key !== "default")
|
|
17
|
-
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
18
|
-
}
|
|
19
|
-
return target;
|
|
20
|
-
};
|
|
21
|
-
var __toModule = (module2) => {
|
|
22
|
-
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
23
|
-
};
|
|
24
|
-
__export(exports, {
|
|
25
|
-
Header: () => Header
|
|
26
|
-
});
|
|
27
|
-
var React = __toModule(require("react"));
|
|
28
|
-
var import_styled_components = __toModule(require("styled-components"));
|
|
29
|
-
var import_micro_frontend = __toModule(require("../../utils/micro-frontend/index.js"));
|
|
30
|
-
var import_logo_region = __toModule(require("./logo-region/index.js"));
|
|
31
|
-
var import_center_region = __toModule(require("./center-region/index.js"));
|
|
32
|
-
var import_nav_region = __toModule(require("./nav-region/index.js"));
|
|
33
|
-
const HeaderContainer = import_styled_components.default.header`
|
|
34
|
-
display: flex;
|
|
35
|
-
height: 56px;
|
|
36
|
-
background-color: #2080cd;
|
|
37
|
-
padding: 0px ${(props) => props.theme.space.xs} 0px
|
|
38
|
-
${(props) => props.theme.space.xxs};
|
|
39
|
-
`;
|
|
40
|
-
const Header = ({ links = [], show = false }) => (0, import_micro_frontend.isStandAloneGuest)() || (0, import_micro_frontend.isHost)() || show ? /* @__PURE__ */ React.createElement(HeaderContainer, {
|
|
41
|
-
role: "banner"
|
|
42
|
-
}, /* @__PURE__ */ React.createElement(import_logo_region.LogoRegion, null), /* @__PURE__ */ React.createElement(import_center_region.CenterRegion, {
|
|
43
|
-
links
|
|
44
|
-
}), /* @__PURE__ */ React.createElement(import_nav_region.NavRegion, null)) : null;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
__markAsModule(target);
|
|
10
|
-
for (var name in all)
|
|
11
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
|
-
};
|
|
13
|
-
var __reExport = (target, module2, desc) => {
|
|
14
|
-
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
15
|
-
for (let key of __getOwnPropNames(module2))
|
|
16
|
-
if (!__hasOwnProp.call(target, key) && key !== "default")
|
|
17
|
-
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
18
|
-
}
|
|
19
|
-
return target;
|
|
20
|
-
};
|
|
21
|
-
var __toModule = (module2) => {
|
|
22
|
-
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
23
|
-
};
|
|
24
|
-
__export(exports, {
|
|
25
|
-
LogoRegion: () => LogoRegion
|
|
26
|
-
});
|
|
27
|
-
var React = __toModule(require("react"));
|
|
28
|
-
var import_styled_components = __toModule(require("styled-components"));
|
|
29
|
-
var import_logo = __toModule(require("./logo.svg"));
|
|
30
|
-
const LogoContainer = import_styled_components.default.div`
|
|
31
|
-
align-self: center;
|
|
32
|
-
`;
|
|
33
|
-
const LogoRegion = () => /* @__PURE__ */ React.createElement(LogoContainer, null, /* @__PURE__ */ React.createElement(import_logo.default, null));
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
<svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" width="195" height="28" viewBox="0 0 195 28"><style>.st0{fill:#dee3e0}.st1{fill:#fff}.st2{fill:#408a90}.st3{fill:#00acdc}.st4{fill:#f7911e}.st5{fill:#0067ab}.st6{fill:#fefefe}</style><g id="Page-1_2_"><g id="brand-assets" transform="translate(-107 -187)"><g id="logo-enc-em-inline-dark" transform="translate(107 187)"><g id="Group-3"><g id="Group" transform="translate(143 14)"><path id="Fill-27" class="st0" d="M1.8 1.9c-.6 0-.9.6-.9 1.1s.3 1.1.9 1.1c.6 0 .8-.7.8-1.1.1-.5-.2-1.1-.8-1.1zM.4.1h.5v1.8c.2-.3.5-.5 1-.5.9 0 1.3.7 1.3 1.5s-.4 1.6-1.3 1.6c-.5 0-.9-.3-1-.5v.4H.4V.1z"/><path id="Fill-29" class="st0" d="M3.7 5.3H4c.5 0 .7-.7.7-.7 0-.1-.1-.2-.1-.3l-1-2.8h.6L5 4l.8-2.5h.6l-1.1 3c-.2.6-.4 1.2-1.1 1.2h-.4l-.1-.4z"/><path id="Fill-31" class="st0" d="M50.5 1.8h.2c.1 0 .2 0 .2-.2 0-.1-.1-.2-.2-.2h-.2v.4zm-.2-.5h.4c.3 0 .4.1.4.3 0 .2-.1.3-.3.3l.3.5h-.2l-.3-.5h-.2v.5h-.2V1.3h.1zm.3 1.4c.5 0 .8-.4.8-.8 0-.5-.3-.8-.8-.8s-.8.4-.8.8.4.8.8.8zm0-1.8c.5 0 1 .4 1 1 0 .5-.4 1-1 1s-1-.4-1-1c.1-.6.5-1 1-1z"/><path id="Fill-33" class="st0" d="M8.8.1h4.8v1.1H10v2.5h3.2v1H10v2.9h3.6v1H8.8z"/><path id="Fill-35" class="st0" d="M14.6 8.6h1.1V0h-1.1z"/><path id="Fill-37" class="st0" d="M17 8.6h1.1V0H17z"/><path id="Fill-38" class="st0" d="M19.4 8.6h1.2V2.3h-1.2v6.3zm-.1-7.2h1.2V0h-1.2v1.4z"/><path id="Fill-39" class="st0" d="M25.7 4.9c0-1-.6-1.7-1.6-1.7-1.1 0-1.6.9-1.7 1.7h3.3zm.7 3.5c-.4.2-.9.4-2 .4-2.2 0-3.2-1.3-3.2-3.4 0-1.9 1.2-3.2 2.9-3.2 2.1 0 2.8 1.5 2.8 3.5h-4.5c0 1.2 1 2.1 2.1 2.1.8 0 1.6-.4 1.9-.6v1.2z"/><path id="Fill-40" class="st0" d="M27.9.1H30l2.6 7.1L35.3.1h2v8.5h-1.2V1.2l-2.9 7.4H32l-2.8-7.4v7.4h-1.3z"/><path id="Fill-41" class="st0" d="M48.2 4.9c0-1-.6-1.7-1.6-1.7-1.1 0-1.6.9-1.7 1.7h3.3zm.8 3.5c-.4.2-.9.4-2 .4-2.2 0-3.2-1.3-3.2-3.4 0-1.9 1.2-3.2 2.9-3.2 2.1 0 2.8 1.5 2.8 3.5H45c0 1.2 1 2.1 2.1 2.1.8 0 1.6-.4 1.9-.6v1.2z"/><path id="Fill-42" class="st0" d="M42.2 5.6h-.7c-.6 0-2.2.1-2.2 1.2 0 .7.6 1 1.2 1 1.1 0 1.7-.7 1.7-1.6v-.6zm-3-1.5l-.9-.2c.3-1.4 1.6-1.7 2.4-1.7 1.8 0 2.5.9 2.5 2.6v2.6c0 .7 0 1 .1 1.2h-1.2v-.8c-.3.4-.9 1-1.9 1-1.3 0-2.3-.6-2.3-1.9 0-1.6 1.7-2.1 2.9-2.1H42c0-1.1-.4-1.8-1.5-1.7-1 .1-1.3 1-1.3 1z"/></g><g id="Page-1"><path id="Fill-1" class="st1" d="M28 14c0 7.7-6.3 14-14 14S0 21.7 0 14 6.3 0 14 0s14 6.3 14 14"/><path id="Fill-3" class="st2" d="M14.1 2.3v-.5H14C7.2 1.8 1.8 7.3 1.8 14h.6c6.5.1 11.7-5.2 11.7-11.7"/><path id="Fill-5" class="st3" d="M2.3 14.1h-.6c.1 6.7 5.5 12.2 12.2 12.2h.1v-.4c.1-6.5-5.1-11.8-11.7-11.8"/><path id="Fill-7" class="st4" d="M25.9 14.1h.3V14c0-6.7-5.4-12.2-12.1-12.2v.5c0 6.5 5.3 11.8 11.8 11.8"/><path id="Fill-9" class="st5" d="M14.1 25.9v.4c6.7-.1 12-5.5 12.1-12.2h-.3c-6.5 0-11.8 5.3-11.8 11.8"/></g><path id="Page-1_1_" class="st6" d="M131.1 20.1c.8.5 2 .8 2.6.8.9 0 2.1-.4 2.1-1.6 0-2-4.9-1.9-4.9-5 0-2.3 1.7-3.5 4-3.5 1 0 1.8.2 2.6.4l-.2 1.8c-.5-.3-1.7-.6-2.2-.6-1.1 0-2 .4-2 1.4 0 2.3 4.9 1.6 4.9 5.2 0 2.4-1.9 3.5-3.9 3.5-1.1 0-2.1-.1-3.1-.6l.1-1.8zm9.4-9.7h.3c.2 0 .4 0 .4-.3 0-.2-.2-.3-.4-.3h-.3v.6zm-.3-.8h.7c.4 0 .6.2.6.5s-.2.5-.5.5l.5.8h-.3l-.5-.8h-.2v.8h-.3V9.6zm.6 2.2c.7 0 1.2-.6 1.2-1.3 0-.7-.5-1.3-1.2-1.3s-1.2.6-1.2 1.3c0 .8.5 1.3 1.2 1.3zm0-2.8c.8 0 1.5.7 1.5 1.5s-.7 1.5-1.5 1.5-1.5-.7-1.5-1.5.7-1.5 1.5-1.5zM123 20.1c.8.5 2 .8 2.6.8.9 0 2.1-.4 2.1-1.6 0-2-4.9-1.9-4.9-5 0-2.3 1.7-3.5 4-3.5 1 0 1.8.2 2.6.4l-.2 1.8c-.5-.3-1.7-.6-2.2-.6-1.1 0-2 .4-2 1.4 0 2.3 4.9 1.6 4.9 5.2 0 2.4-1.9 3.5-3.9 3.5-1.1 0-2.1-.1-3.1-.6l.1-1.8zm-3.8-3.1h-1.3c-1.1 0-3.9.2-3.9 2.2 0 1.2 1.1 1.8 2.1 1.8 2 0 3.1-1.3 3.1-2.9V17zm-6.2-5.1c1-.6 2.3-1.1 3.7-1.1 3.2 0 4.5 1.6 4.5 4.6V20c0 1.3 0 1.9.1 2.2h-1.9v-1.5c-.5.7-1.6 1.7-3.5 1.7-2.4 0-4.1-1.1-4.1-3.5 0-2.8 3.1-3.7 5.2-3.7h2.2c0-1.9-.7-2.9-2.8-2.9-1.2 0-2.4.4-3.3 1.1l-.1-1.5zm-7.7.6c-2.2 0-3.3 2.1-3.3 4.2 0 1.9 1 4.2 3.3 4.2 2.2 0 3.1-2.5 3.1-4.2 0-2-.8-4.2-3.1-4.2zm-5.4-1.4h2v1.6c.5-.8 1.8-1.8 3.8-1.8 3.3 0 4.8 2.7 4.8 5.7 0 3.1-1.4 6.1-4.8 6.1-2 0-3.1-.8-3.7-1.8V26h-2.1V11.1zm-17.3 0h1.9v1.6c.8-1.3 1.9-1.9 3.6-1.9 1.3 0 2.6.7 3.2 2.2.8-1.6 2.5-2.2 3.5-2.2 2.9 0 3.9 1.8 3.9 4.3v7.2h-2.1v-6.7c0-1.4-.3-3.1-2-3.1-2.1 0-2.9 2.1-2.9 4.2v5.7h-2.1v-6.7c0-1.4-.3-3.1-2-3.1-2.1 0-2.9 2.1-2.9 4.2v5.7h-2.1V11.1zm-8 9.8c2.4 0 3.5-2.2 3.5-4.2 0-2.1-1.3-4.2-3.5-4.2s-3.5 2.1-3.5 4.2c-.1 2 1 4.2 3.5 4.2zm0-10c3.4 0 5.7 2.5 5.7 5.9 0 3.2-2.3 5.9-5.7 5.9s-5.7-2.7-5.7-5.9c-.1-3.5 2.2-5.9 5.7-5.9zM67.4 13c-.8-.3-1.6-.5-2.2-.5-2.3 0-3.6 2.1-3.6 4.2 0 2 1.1 4.2 3.7 4.2.7 0 1.6-.2 2.2-.6l.2 1.8c-.9.4-1.8.5-2.6.5-3.4 0-5.7-2.7-5.7-5.9 0-3.4 2.3-5.9 5.7-5.9.8 0 1.9.2 2.5.4l-.2 1.8zm-19.2-1.9h2v1.8c.6-1.3 2.1-2 3.7-2 2.9 0 4.2 1.8 4.2 4.8v6.7H56v-5.8c0-2.6-.6-3.9-2.4-4-2.4 0-3.4 1.9-3.4 4.6v5.2h-2.1V11.1h.1zM38 7h8.6v1.9h-6.4v4.5H46v1.9h-5.8v5.1h6.4v1.9H38V7z"/></g></g></g></g></svg>
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
__markAsModule(target);
|
|
10
|
-
for (var name in all)
|
|
11
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
|
-
};
|
|
13
|
-
var __reExport = (target, module2, desc) => {
|
|
14
|
-
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
15
|
-
for (let key of __getOwnPropNames(module2))
|
|
16
|
-
if (!__hasOwnProp.call(target, key) && key !== "default")
|
|
17
|
-
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
18
|
-
}
|
|
19
|
-
return target;
|
|
20
|
-
};
|
|
21
|
-
var __toModule = (module2) => {
|
|
22
|
-
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
23
|
-
};
|
|
24
|
-
__export(exports, {
|
|
25
|
-
NavRegion: () => NavRegion
|
|
26
|
-
});
|
|
27
|
-
var React = __toModule(require("react"));
|
|
28
|
-
var import_styled_components = __toModule(require("styled-components"));
|
|
29
|
-
var import_notification = __toModule(require("./notification/index.js"));
|
|
30
|
-
var import_user = __toModule(require("./user/index.js"));
|
|
31
|
-
const NavContainer = import_styled_components.default.nav`
|
|
32
|
-
display: flex;
|
|
33
|
-
margin: 0;
|
|
34
|
-
height: 100%;
|
|
35
|
-
align-self: flex-end;
|
|
36
|
-
`;
|
|
37
|
-
const NavList = import_styled_components.default.ul`
|
|
38
|
-
margin: 0;
|
|
39
|
-
display: flex;
|
|
40
|
-
align-items: center;
|
|
41
|
-
> li {
|
|
42
|
-
margin-left: ${(props) => props.theme.space.xs};
|
|
43
|
-
}
|
|
44
|
-
`;
|
|
45
|
-
const NavRegion = () => /* @__PURE__ */ React.createElement(NavContainer, {
|
|
46
|
-
role: "navigation"
|
|
47
|
-
}, /* @__PURE__ */ React.createElement(NavList, null, /* @__PURE__ */ React.createElement(import_notification.Notification, null), /* @__PURE__ */ React.createElement(import_user.User, null)));
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
__markAsModule(target);
|
|
10
|
-
for (var name in all)
|
|
11
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
|
-
};
|
|
13
|
-
var __reExport = (target, module2, desc) => {
|
|
14
|
-
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
15
|
-
for (let key of __getOwnPropNames(module2))
|
|
16
|
-
if (!__hasOwnProp.call(target, key) && key !== "default")
|
|
17
|
-
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
18
|
-
}
|
|
19
|
-
return target;
|
|
20
|
-
};
|
|
21
|
-
var __toModule = (module2) => {
|
|
22
|
-
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
23
|
-
};
|
|
24
|
-
__export(exports, {
|
|
25
|
-
Notification: () => Notification
|
|
26
|
-
});
|
|
27
|
-
var React = __toModule(require("react"));
|
|
28
|
-
var import_index = __toModule(require("./index.svg"));
|
|
29
|
-
const Notification = () => /* @__PURE__ */ React.createElement("li", null, /* @__PURE__ */ React.createElement("a", {
|
|
30
|
-
href: "#",
|
|
31
|
-
"aria-label": "Notifications"
|
|
32
|
-
}, /* @__PURE__ */ React.createElement(import_index.default, null)));
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="16px" height="16px" viewBox="0 0 16 16"><g>
|
|
2
|
-
<path data-color="color-2" fill="#ffffff" d="M10,14H6c0,1.1,0.9,2,2,2S10,15.1,10,14z"/>
|
|
3
|
-
<path fill="#ffffff" d="M15,11h-0.5C13.8,10.3,13,9.3,13,8V5c0-2.8-2.2-5-5-5S3,2.2,3,5v3c0,1.3-0.8,2.3-1.5,3H1c-0.6,0-1,0.4-1,1
|
|
4
|
-
s0.4,1,1,1h14c0.6,0,1-0.4,1-1S15.6,11,15,11z"/>
|
|
5
|
-
</g></svg>
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
__markAsModule(target);
|
|
10
|
-
for (var name in all)
|
|
11
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
|
-
};
|
|
13
|
-
var __reExport = (target, module2, desc) => {
|
|
14
|
-
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
15
|
-
for (let key of __getOwnPropNames(module2))
|
|
16
|
-
if (!__hasOwnProp.call(target, key) && key !== "default")
|
|
17
|
-
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
18
|
-
}
|
|
19
|
-
return target;
|
|
20
|
-
};
|
|
21
|
-
var __toModule = (module2) => {
|
|
22
|
-
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
23
|
-
};
|
|
24
|
-
__export(exports, {
|
|
25
|
-
User: () => User
|
|
26
|
-
});
|
|
27
|
-
var React = __toModule(require("react"));
|
|
28
|
-
var import_index = __toModule(require("./index.svg"));
|
|
29
|
-
const User = () => /* @__PURE__ */ React.createElement("li", null, /* @__PURE__ */ React.createElement("a", {
|
|
30
|
-
href: "#",
|
|
31
|
-
"aria-label": "profile"
|
|
32
|
-
}, /* @__PURE__ */ React.createElement(import_index.default, null)));
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="16px" height="16px" viewBox="0 0 16 16"><g><path fill="#ffffff" d="M8,2c1.1,0,2,0.9,2,2v1c0,1.1-0.9,2-2,2S6,6.1,6,5V4C6,2.9,6.9,2,8,2 M8,0C5.8,0,4,1.8,4,4v1
|
|
2
|
-
c0,2.2,1.8,4,4,4s4-1.8,4-4V4C12,1.8,10.2,0,8,0L8,0z"/>
|
|
3
|
-
<path data-color="color-2" fill="#ffffff" d="M9,12c1.5,0,2.8,0.8,3.5,2l-8.9,0c0.7-1.2,2-2,3.5-2H9 M9,10H7c-3.3,0-6,2.7-6,6v0h14v0
|
|
4
|
-
C15,12.7,12.3,10,9,10L9,10z"/></g></svg>
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import * as brum from "@elliemae/pui-user-monitoring";
|
|
2
|
-
let userData = {
|
|
3
|
-
envName: "localhost",
|
|
4
|
-
appId: "",
|
|
5
|
-
instanceId: "",
|
|
6
|
-
userId: ""
|
|
7
|
-
};
|
|
8
|
-
const getAppDynamicsUserData = () => userData;
|
|
9
|
-
const setAppDynamicsUserData = (params) => {
|
|
10
|
-
userData = { ...userData, ...params };
|
|
11
|
-
if (brum) {
|
|
12
|
-
brum.setCustomUserData(() => ({ userData }));
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
export {
|
|
16
|
-
getAppDynamicsUserData,
|
|
17
|
-
setAppDynamicsUserData
|
|
18
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { CMicroAppGuest } from "../utils/micro-frontend/guest.js";
|
|
2
|
-
import { getBAEventParameters } from "./web-analytics.js";
|
|
3
|
-
import { redactPii } from "../utils/redact-pii.js";
|
|
4
|
-
const sendBAEventToSelf = (data) => {
|
|
5
|
-
const redactedData = redactPii(data);
|
|
6
|
-
window.gtmDataLayer = window.gtmDataLayer || [];
|
|
7
|
-
window.gtmDataLayer.push(redactedData);
|
|
8
|
-
};
|
|
9
|
-
const sendBAEvent = ({
|
|
10
|
-
data,
|
|
11
|
-
self = true
|
|
12
|
-
}) => {
|
|
13
|
-
const eventData = { ...getBAEventParameters(), ...data };
|
|
14
|
-
if (!self) {
|
|
15
|
-
const sendEvent = CMicroAppGuest.getInstance()?.getHost()?.sendBAEvent;
|
|
16
|
-
if (sendEvent) {
|
|
17
|
-
sendEvent(eventData);
|
|
18
|
-
} else {
|
|
19
|
-
sendBAEventToSelf(eventData);
|
|
20
|
-
}
|
|
21
|
-
} else {
|
|
22
|
-
sendBAEventToSelf(eventData);
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
export {
|
|
26
|
-
sendBAEvent
|
|
27
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
let baEventParameters = {
|
|
2
|
-
envName: "localhost",
|
|
3
|
-
appId: "",
|
|
4
|
-
instanceId: "",
|
|
5
|
-
userId: ""
|
|
6
|
-
};
|
|
7
|
-
const getBAEventParameters = () => baEventParameters;
|
|
8
|
-
const updateBAEventParameters = (params) => {
|
|
9
|
-
baEventParameters = { ...baEventParameters, ...params };
|
|
10
|
-
};
|
|
11
|
-
export {
|
|
12
|
-
getBAEventParameters,
|
|
13
|
-
updateBAEventParameters
|
|
14
|
-
};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import axios from "axios";
|
|
2
|
-
import { getAppConfigValue } from "../../utils/app-config/config.js";
|
|
3
|
-
import { getAuthorizationHeader } from "../../utils/auth/helper.js";
|
|
4
|
-
import setupRetry from "./retry.js";
|
|
5
|
-
import { requestInterceptor } from "./request-interceptor.js";
|
|
6
|
-
import { handleSuccess, handleFailure } from "./response-interceptor.js";
|
|
7
|
-
const REQUEST_TIMEOUT = 2 * 60 * 1e3;
|
|
8
|
-
const getHTTPClient = ({
|
|
9
|
-
baseURL = getAppConfigValue("serviceEndpoints.api", ""),
|
|
10
|
-
headers = {}
|
|
11
|
-
} = {}) => {
|
|
12
|
-
const client = axios.create({ baseURL, headers });
|
|
13
|
-
if (client?.defaults?.timeout)
|
|
14
|
-
client.defaults.timeout = REQUEST_TIMEOUT;
|
|
15
|
-
setupRetry(client);
|
|
16
|
-
const { request, response } = client?.interceptors || {};
|
|
17
|
-
if (request)
|
|
18
|
-
request.use(requestInterceptor);
|
|
19
|
-
if (response)
|
|
20
|
-
response.use(handleSuccess, handleFailure);
|
|
21
|
-
return client;
|
|
22
|
-
};
|
|
23
|
-
const getAuthHTTPClient = ({
|
|
24
|
-
baseURL,
|
|
25
|
-
headers = {},
|
|
26
|
-
...rest
|
|
27
|
-
} = {}) => getHTTPClient({
|
|
28
|
-
baseURL,
|
|
29
|
-
headers: { ...headers, Authorization: getAuthorizationHeader() },
|
|
30
|
-
...rest
|
|
31
|
-
});
|
|
32
|
-
export {
|
|
33
|
-
getAuthHTTPClient,
|
|
34
|
-
getHTTPClient
|
|
35
|
-
};
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import enums from "../../../utils/constants.js";
|
|
2
|
-
import { getAuthHTTPClient } from "../index.js";
|
|
3
|
-
import { onAuthorizationFailure } from "../response-interceptor.js";
|
|
4
|
-
describe("http client test cases", () => {
|
|
5
|
-
const callApi = ({
|
|
6
|
-
apiUrl,
|
|
7
|
-
options = {},
|
|
8
|
-
baseURL = "http://localhost:3001"
|
|
9
|
-
}) => {
|
|
10
|
-
const httpClient = getAuthHTTPClient({ baseURL });
|
|
11
|
-
return httpClient.get(apiUrl, options);
|
|
12
|
-
};
|
|
13
|
-
const refreshToken = () => new Promise((resolve) => {
|
|
14
|
-
const authorizationHeader = "pui";
|
|
15
|
-
sessionStorage.setItem(enums.AUTHORIZATION, authorizationHeader);
|
|
16
|
-
resolve(authorizationHeader);
|
|
17
|
-
});
|
|
18
|
-
it("should download large file without timing out", async () => {
|
|
19
|
-
jest.setTimeout(3e5);
|
|
20
|
-
const { data } = await callApi({
|
|
21
|
-
apiUrl: "annual_report_2009.pdf",
|
|
22
|
-
options: { timeout: 2e5 },
|
|
23
|
-
baseURL: "https://www.iso.org/files/live/sites/isoorg/files/archive/pdf/en"
|
|
24
|
-
});
|
|
25
|
-
expect(data).toBeDefined();
|
|
26
|
-
});
|
|
27
|
-
it("should throw connection aborted error for large file download", async () => {
|
|
28
|
-
jest.setTimeout(3e5);
|
|
29
|
-
await expect(callApi({
|
|
30
|
-
apiUrl: "annual_report_2009.pdf",
|
|
31
|
-
baseURL: "https://www.iso.org/files/live/sites/isoorg/files/archive/pdf/en"
|
|
32
|
-
})).rejects.toEqual(new Error("timeout of 10000ms exceeded"));
|
|
33
|
-
});
|
|
34
|
-
it("should return success response", async () => {
|
|
35
|
-
const { data } = await callApi({ apiUrl: "/hello" });
|
|
36
|
-
expect(data.name).toEqual("pui-app-sdk");
|
|
37
|
-
});
|
|
38
|
-
it("should return unauthorized 401 response", async () => {
|
|
39
|
-
await expect(callApi({ apiUrl: "/private" })).rejects.toThrow("Request failed with status code 401");
|
|
40
|
-
});
|
|
41
|
-
it("should return success after refreshing authorization token", async () => {
|
|
42
|
-
onAuthorizationFailure(refreshToken);
|
|
43
|
-
const { data } = await callApi({ apiUrl: "/private" });
|
|
44
|
-
expect(data.message).toEqual("you are viewing a private message");
|
|
45
|
-
});
|
|
46
|
-
});
|
package/dist/es/data/reducers.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { combineReducers } from "@reduxjs/toolkit";
|
|
2
|
-
import { waitMessageReducer } from "./wait-message/reducer.js";
|
|
3
|
-
import { errorReducer } from "./error/index.js";
|
|
4
|
-
import { breakpointReducer } from "./breakpoint/index.js";
|
|
5
|
-
import { liveMessageReducer } from "./live-message/index.js";
|
|
6
|
-
const createReducer = (injectedReducers = {}) => {
|
|
7
|
-
const rootReducer = combineReducers({
|
|
8
|
-
waitMessage: waitMessageReducer,
|
|
9
|
-
error: errorReducer,
|
|
10
|
-
breakpoint: breakpointReducer,
|
|
11
|
-
liveMessage: liveMessageReducer,
|
|
12
|
-
...injectedReducers
|
|
13
|
-
});
|
|
14
|
-
return rootReducer;
|
|
15
|
-
};
|
|
16
|
-
export {
|
|
17
|
-
createReducer
|
|
18
|
-
};
|
package/dist/es/package.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"type":"module","sideEffects":["*.css","*.html"]}
|
package/dist/es/route/index.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { Helmet } from "react-helmet";
|
|
3
|
-
import { useCallback } from "react";
|
|
4
|
-
import { Route } from "react-router-dom";
|
|
5
|
-
import { onPageView } from "./page-view.js";
|
|
6
|
-
const AppRoute = ({
|
|
7
|
-
component: Component,
|
|
8
|
-
render,
|
|
9
|
-
children,
|
|
10
|
-
pageTitle = "ICE",
|
|
11
|
-
...rest
|
|
12
|
-
}) => {
|
|
13
|
-
const memoizedRender = useCallback((routeProps) => render && typeof render === "function" ? render(routeProps) : Component && /* @__PURE__ */ React.createElement(Component, {
|
|
14
|
-
...routeProps
|
|
15
|
-
}), [Component, render]);
|
|
16
|
-
return /* @__PURE__ */ React.createElement(Route, {
|
|
17
|
-
...rest,
|
|
18
|
-
render: (routeProps) => {
|
|
19
|
-
onPageView(pageTitle);
|
|
20
|
-
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Helmet, null, /* @__PURE__ */ React.createElement("title", null, pageTitle)), children || memoizedRender(routeProps));
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
};
|
|
24
|
-
export {
|
|
25
|
-
AppRoute
|
|
26
|
-
};
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { useCallback } from "react";
|
|
3
|
-
import { useInjectReducer, useInjectSaga } from "redux-injectors";
|
|
4
|
-
import enums from "../../utils/constants.js";
|
|
5
|
-
import { RenderWithDelay } from "../../view/render-with-delay/index.js";
|
|
6
|
-
import { authReducer } from "../../data/auth/reducer.js";
|
|
7
|
-
import { authentication } from "../../sideeffect/auth/index.js";
|
|
8
|
-
import { Login } from "../../view/login/index.js";
|
|
9
|
-
import { isUserAuthorized } from "../../utils/auth/index.js";
|
|
10
|
-
import { AppRoute } from "../index.js";
|
|
11
|
-
const key = "auth";
|
|
12
|
-
const PrivateRoute = ({
|
|
13
|
-
component: Component,
|
|
14
|
-
render,
|
|
15
|
-
children,
|
|
16
|
-
clientId = enums.CLIENT_ID,
|
|
17
|
-
scope = "loc",
|
|
18
|
-
responseType = "code",
|
|
19
|
-
...rest
|
|
20
|
-
}) => {
|
|
21
|
-
useInjectReducer({ key, reducer: authReducer });
|
|
22
|
-
useInjectSaga({ key, saga: authentication });
|
|
23
|
-
const memoizedRender = useCallback((routeProps) => render && typeof render === "function" ? render(routeProps) : Component && /* @__PURE__ */ React.createElement(Component, {
|
|
24
|
-
...routeProps
|
|
25
|
-
}), [Component, render]);
|
|
26
|
-
return /* @__PURE__ */ React.createElement(AppRoute, {
|
|
27
|
-
...rest,
|
|
28
|
-
render: (routeProps) => {
|
|
29
|
-
const userAuthorized = isUserAuthorized();
|
|
30
|
-
if (userAuthorized) {
|
|
31
|
-
return children || memoizedRender(routeProps);
|
|
32
|
-
}
|
|
33
|
-
const getAuthComp = () => /* @__PURE__ */ React.createElement(Login, {
|
|
34
|
-
clientId,
|
|
35
|
-
scope,
|
|
36
|
-
responseType
|
|
37
|
-
});
|
|
38
|
-
return /* @__PURE__ */ React.createElement(RenderWithDelay, {
|
|
39
|
-
render: getAuthComp
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
|
-
};
|
|
44
|
-
export {
|
|
45
|
-
PrivateRoute
|
|
46
|
-
};
|