@elliemae/pui-app-sdk 3.0.0-beta.2 → 3.0.0-beta.23
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/dist/cjs/analytics/appdynamics.js +13 -7
- package/dist/cjs/analytics/index.js +13 -12
- package/dist/cjs/analytics/page-view-event.js +23 -13
- package/dist/cjs/analytics/user-session-event.js +14 -13
- package/dist/cjs/analytics/user-wait-event.js +13 -12
- package/dist/cjs/analytics/web-analytics.js +19 -2
- 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 +18 -12
- 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/communication/http-client/tests/index.test-disable.js +7 -7
- 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 +15 -14
- package/dist/cjs/data/saga.js +19 -2
- package/dist/cjs/data/store.js +17 -24
- package/dist/cjs/data/wait-message/actions.js +19 -2
- package/dist/cjs/data/wait-message/reducer.js +14 -8
- package/dist/cjs/index.js +90 -84
- package/dist/cjs/micro-frontend.js +34 -0
- package/dist/cjs/sideeffect/auth/index.js +15 -14
- package/dist/cjs/sideeffect/error-toast/index.js +15 -14
- package/dist/cjs/sideeffect/wait-message/index.js +15 -14
- package/dist/cjs/typings/styled.d.js +1 -19
- 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 +21 -19
- 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 +12 -11
- 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} +9 -1
- package/dist/cjs/utils/storybook/manager.js +12 -11
- package/dist/cjs/utils/storybook/preview.js +19 -19
- package/dist/cjs/utils/storybook/theme.js +11 -10
- package/dist/cjs/utils/testing/index.js +19 -12
- package/dist/cjs/utils/testing/render-with-redux.js +17 -10
- package/dist/cjs/utils/testing/render-with-router-redux.js +20 -13
- package/dist/cjs/utils/testing/render-with-router.js +24 -14
- package/dist/cjs/utils/testing/render-with-state-addons.js +17 -10
- 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 +24 -14
- package/dist/cjs/view/app-root/index.js +25 -18
- package/dist/cjs/view/app-root/stand-alone-app.js +27 -16
- package/dist/cjs/view/app-root/style.js +11 -10
- package/dist/cjs/view/app-router.js +48 -0
- package/dist/cjs/view/{media-breakpoint/index.js → breakpoint/use-breakpoint.js} +20 -20
- 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 +26 -3
- package/dist/cjs/view/error-boundary/index.js +16 -10
- package/dist/cjs/view/error-toast/index.js +21 -14
- package/dist/cjs/view/fetch-host-app-data/index.js +16 -10
- package/dist/cjs/view/fetch-host-app-data/store.js +11 -10
- package/dist/cjs/view/fields/check-box/index.js +18 -19
- package/dist/cjs/view/fields/combo-box/index.js +18 -13
- package/dist/cjs/view/fields/connect-form.js +11 -10
- package/dist/cjs/view/fields/date-input/index.js +16 -9
- package/dist/cjs/view/fields/date-picker/index.js +16 -9
- package/dist/cjs/view/fields/form-item-layout/index.js +18 -14
- package/dist/cjs/view/fields/form-layout-block-item/index.js +54 -0
- package/dist/cjs/view/fields/input-mask/index.js +16 -9
- package/dist/cjs/view/fields/large-text-box/index.js +16 -9
- package/dist/cjs/view/fields/radio/index.js +16 -9
- package/dist/cjs/view/fields/radio-group/index.js +17 -14
- package/dist/cjs/view/fields/text-box/index.js +16 -9
- package/dist/cjs/view/fields/watch-value.js +19 -10
- package/dist/cjs/view/form/index.js +15 -8
- package/dist/cjs/view/form/personal-info-section.js +46 -35
- package/dist/cjs/view/form/submit-button/index.js +17 -12
- 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 -8
- package/dist/cjs/view/loadable/index.js +15 -8
- package/dist/cjs/view/login/index.js +16 -19
- package/dist/cjs/view/message-to-host-app/index.js +11 -10
- package/dist/cjs/view/micro-app/app-factory/index.js +22 -19
- package/dist/cjs/view/micro-app/const.js +19 -2
- package/dist/cjs/view/micro-app/index.js +17 -10
- 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 +21 -18
- package/dist/cjs/view/micro-app/utils.js +11 -10
- package/dist/cjs/view/micro-iframe-app/app.js +18 -11
- package/dist/cjs/view/micro-iframe-app/iframe/const.js +19 -2
- package/dist/cjs/view/micro-iframe-app/iframe/index.js +16 -9
- package/dist/cjs/view/micro-iframe-app/index.js +16 -9
- 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 -21
- package/dist/cjs/view/modals/navigation-prompt/index.js +39 -21
- package/dist/cjs/view/modals/session-expiry/customHooks.js +14 -13
- package/dist/cjs/view/modals/session-expiry/index.js +39 -29
- package/dist/cjs/view/modals/wait-message/index.js +21 -15
- package/dist/cjs/view/modals/wait-message/{html-wait-message.js → use-html-wait-message.js} +14 -14
- package/dist/cjs/view/modals/wait-message/wait-message-launcher.js +14 -13
- package/dist/cjs/view/page.js +51 -0
- package/dist/cjs/view/render-with-delay/index.js +15 -8
- package/dist/cjs/view/render-with-host-data/index.js +16 -9
- package/dist/cjs/view/require-auth.js +58 -0
- package/dist/cjs/view/session-timeout/index.js +23 -12
- package/dist/cjs/view/storybook/decorator.js +15 -8
- package/dist/cjs/view/use-previous.js +11 -10
- package/dist/cjs/view/use-window-size-change.js +45 -0
- package/dist/cjs/view/visually-hidden/index.js +15 -8
- package/dist/es/analytics/index.js +3 -3
- package/dist/es/analytics/page-view-event.js +12 -3
- package/dist/es/analytics/user-session-event.js +2 -2
- package/dist/es/analytics/user-wait-event.js +1 -1
- package/dist/es/api/auth/index.js +1 -1
- package/dist/es/api/users/index.js +1 -1
- package/dist/es/communication/http-client/index.js +5 -5
- package/dist/es/communication/http-client/request-interceptor.js +1 -1
- package/dist/es/communication/http-client/retry-axios.js +1 -1
- package/dist/es/communication/http-client/retry.js +1 -1
- package/dist/es/communication/http-client/tests/index.test-disable.js +3 -3
- package/dist/es/data/auth/reducer.js +1 -1
- package/dist/es/data/index.js +11 -0
- package/dist/es/data/reducers.js +4 -4
- package/dist/es/data/store.js +5 -15
- package/dist/es/data/wait-message/reducer.js +1 -1
- package/dist/es/index.js +87 -77
- package/dist/es/micro-frontend.js +10 -0
- package/dist/es/sideeffect/auth/index.js +4 -4
- package/dist/es/sideeffect/error-toast/index.js +4 -4
- package/dist/es/sideeffect/wait-message/index.js +4 -4
- package/dist/es/utils/app-config/config.js +1 -1
- package/dist/es/utils/app-config/index.js +4 -4
- package/dist/es/utils/app-host-integration/react.js +1 -1
- package/dist/es/utils/auth/helper.js +1 -1
- package/dist/es/utils/auth/index.js +11 -10
- package/dist/es/utils/helpers.js +1 -1
- package/dist/es/utils/micro-frontend/console-logger.js +1 -1
- package/dist/es/utils/micro-frontend/guest.js +9 -9
- package/dist/es/utils/micro-frontend/host.js +19 -18
- package/dist/es/utils/micro-frontend/index.js +4 -4
- package/dist/es/utils/service-worker.js +2 -2
- package/dist/es/utils/session.js +4 -4
- package/dist/es/utils/storybook/manager.js +1 -1
- package/dist/es/utils/storybook/preview.js +7 -8
- package/dist/es/utils/testing/index.js +4 -3
- package/dist/es/utils/testing/render-with-redux.js +3 -2
- package/dist/es/utils/testing/render-with-router-redux.js +5 -4
- package/dist/es/utils/testing/render-with-router.js +10 -6
- package/dist/es/utils/testing/render-with-state-addons.js +1 -0
- package/dist/es/view/app-root/hosted-app.js +11 -7
- package/dist/es/view/app-root/index.js +9 -8
- package/dist/es/view/app-root/stand-alone-app.js +13 -8
- package/dist/es/view/app-router.js +19 -0
- package/dist/es/view/{media-breakpoint/index.js → breakpoint/use-breakpoint.js} +7 -8
- package/dist/es/view/{useMediaBreakpoints/index.js → breakpoint/use-media-query-list.js} +4 -4
- package/dist/es/view/error-boundary/default-error-template.js +2 -1
- package/dist/es/view/error-boundary/index.js +3 -3
- package/dist/es/view/error-toast/index.js +4 -8
- package/dist/es/view/fetch-host-app-data/index.js +6 -3
- package/dist/es/view/fields/check-box/index.js +5 -12
- package/dist/es/view/fields/combo-box/index.js +4 -5
- package/dist/es/view/fields/date-input/index.js +2 -1
- package/dist/es/view/fields/date-picker/index.js +2 -1
- package/dist/es/view/fields/form-item-layout/index.js +4 -6
- package/dist/es/view/fields/form-layout-block-item/index.js +25 -0
- package/dist/es/view/fields/input-mask/index.js +4 -2
- package/dist/es/view/fields/large-text-box/index.js +2 -1
- package/dist/es/view/fields/radio/index.js +2 -1
- package/dist/es/view/fields/radio-group/index.js +3 -6
- package/dist/es/view/fields/text-box/index.js +2 -1
- package/dist/es/view/fields/watch-value.js +5 -2
- package/dist/es/view/form/index.js +1 -0
- package/dist/es/view/form/personal-info-section.js +33 -28
- package/dist/es/view/form/submit-button/index.js +4 -5
- package/dist/es/view/guest-unload-handlers/index.js +1 -1
- package/dist/es/view/live-message/index.js +2 -1
- package/dist/es/view/loadable/index.js +2 -1
- package/dist/es/view/login/index.js +5 -9
- package/dist/es/view/message-to-host-app/index.js +1 -1
- package/dist/es/view/micro-app/app-factory/index.js +15 -10
- package/dist/es/view/micro-app/index.js +3 -2
- package/dist/es/view/micro-app/resources/manifest.js +6 -4
- package/dist/es/view/micro-app/resources/script.js +2 -2
- package/dist/es/view/micro-app/resources/style.js +1 -1
- package/dist/es/view/micro-app/use-app-will-render.js +13 -6
- package/dist/es/view/micro-app/utils.js +1 -1
- package/dist/es/view/micro-iframe-app/app.js +4 -3
- package/dist/es/view/micro-iframe-app/iframe/index.js +2 -1
- package/dist/es/view/micro-iframe-app/index.js +3 -2
- package/dist/es/view/micro-iframe-app/use-frame-loaded.js +5 -3
- package/dist/es/view/modals/error/index.js +25 -15
- package/dist/es/view/modals/navigation-prompt/index.js +33 -14
- package/dist/es/view/modals/session-expiry/customHooks.js +2 -2
- package/dist/es/view/modals/session-expiry/index.js +35 -23
- package/dist/es/view/modals/wait-message/index.js +8 -8
- package/dist/es/view/modals/wait-message/{html-wait-message.js → use-html-wait-message.js} +4 -5
- package/dist/es/view/modals/wait-message/wait-message-launcher.js +3 -3
- package/dist/es/view/page.js +22 -0
- package/dist/es/view/render-with-delay/index.js +2 -1
- package/dist/es/view/render-with-host-data/index.js +3 -2
- package/dist/es/view/require-auth.js +29 -0
- package/dist/es/view/session-timeout/index.js +10 -5
- package/dist/es/view/storybook/decorator.js +3 -2
- package/dist/es/view/use-window-size-change.js +21 -0
- package/dist/es/view/visually-hidden/index.js +1 -0
- package/dist/types/communication/http-client/retry.d.ts +1 -1
- package/dist/types/data/index.d.ts +4 -0
- package/dist/types/data/react-redux.d.ts +9 -18
- package/dist/types/data/reducers.d.ts +6 -6
- package/dist/types/data/store.d.ts +30 -31
- package/dist/types/index.d.ts +78 -78
- package/dist/types/micro-frontend.d.ts +6 -0
- package/dist/types/sideeffect/auth/index.d.ts +1 -1
- package/dist/types/utils/app-config/config.d.ts +1 -1
- package/dist/types/utils/app-host-integration/react.d.ts +1 -1
- package/dist/types/utils/history.d.ts +2 -2
- package/dist/types/utils/micro-frontend/guest.d.ts +5 -5
- package/dist/types/utils/micro-frontend/host.d.ts +3 -3
- package/dist/types/utils/micro-frontend/index.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} +24 -2
- 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/cjs/webpack.d.ts +16 -0
- package/dist/types/utils/storybook/preview.d.ts +8 -2
- package/dist/types/utils/testing/render-with-redux.d.ts +22 -22
- package/dist/types/utils/testing/render-with-router-redux.d.ts +22 -22
- package/dist/types/utils/testing/render-with-router.d.ts +2 -2
- package/dist/types/utils/testing/render-with-state-addons.d.ts +1 -1
- package/dist/types/view/app-root/hosted-app.d.ts +1 -1
- package/dist/types/view/app-root/index.d.ts +2 -2
- 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 +2 -4
- package/dist/types/view/fields/check-box/set-value.stories.d.ts +1 -1
- 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-input/index.stories.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 +2 -4
- package/dist/types/view/fields/form-item-layout/index.d.ts +1 -1
- package/dist/types/view/fields/form-item-layout/index.stories.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 +2 -4
- 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 +2 -4
- package/dist/types/view/fields/radio/index.d.ts +2 -2
- package/dist/types/view/fields/radio/index.stories.d.ts +2 -4
- package/dist/types/view/fields/radio/set-value.stories.d.ts +1 -1
- package/dist/types/view/fields/radio-group/index.d.ts +1 -1
- package/dist/types/view/fields/radio-group/index.stories.d.ts +1 -1
- package/dist/types/view/fields/text-box/index.d.ts +1 -1
- package/dist/types/view/fields/text-box/index.stories.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/form/usecases.stories.d.ts +1 -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 +3 -3
- package/dist/types/view/micro-app/index.d.ts +1 -1
- package/dist/types/view/micro-app/resources/manifest.d.ts +2 -2
- package/dist/types/view/micro-app/resources/script.d.ts +1 -1
- package/dist/types/view/micro-app/resources/style.d.ts +1 -1
- package/dist/types/view/micro-app/types.d.ts +1 -0
- package/dist/types/view/micro-app/use-app-will-render.d.ts +2 -2
- package/dist/types/view/micro-iframe-app/app.d.ts +2 -2
- package/dist/types/view/micro-iframe-app/index.d.ts +1 -1
- package/dist/types/view/micro-iframe-app/types.d.ts +1 -1
- package/dist/types/view/micro-iframe-app/use-frame-loaded.d.ts +1 -1
- package/dist/types/view/modals/error/index.d.ts +3 -2
- package/dist/types/view/modals/error/index.stories.d.ts +1 -1
- package/dist/types/view/modals/navigation-prompt/index.d.ts +0 -1
- package/dist/types/view/modals/navigation-prompt/index.stories.d.ts +1 -1
- package/dist/types/view/modals/session-expiry/index.d.ts +0 -1
- package/dist/types/view/modals/session-expiry/index.stories.d.ts +1 -1
- package/dist/types/view/modals/wait-message/index.stories.d.ts +7 -3
- 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/storybook/decorator.d.ts +1 -1
- package/dist/types/view/use-window-size-change.d.ts +1 -0
- package/package.json +59 -28
- package/dist/cjs/route/index.js +0 -48
- package/dist/cjs/route/page-view.js +0 -38
- package/dist/cjs/route/private-route/index.js +0 -68
- package/dist/cjs/view/header/center-region/index.js +0 -64
- package/dist/cjs/view/header/index.js +0 -43
- package/dist/cjs/view/header/logo-region/index.js +0 -32
- package/dist/cjs/view/header/logo-region/logo.svg +0 -2
- package/dist/cjs/view/header/nav-region/index.js +0 -46
- package/dist/cjs/view/header/nav-region/notification/index.js +0 -31
- package/dist/cjs/view/header/nav-region/notification/index.svg +0 -5
- package/dist/cjs/view/header/nav-region/user/index.js +0 -31
- package/dist/cjs/view/header/nav-region/user/index.svg +0 -4
- package/dist/cjs/view/window-size/index.js +0 -41
- package/dist/es/route/index.js +0 -25
- package/dist/es/route/page-view.js +0 -15
- package/dist/es/route/private-route/index.js +0 -45
- package/dist/es/view/header/center-region/index.js +0 -41
- package/dist/es/view/header/index.js +0 -20
- package/dist/es/view/header/logo-region/index.js +0 -9
- package/dist/es/view/header/logo-region/logo.svg +0 -2
- package/dist/es/view/header/nav-region/index.js +0 -23
- package/dist/es/view/header/nav-region/notification/index.js +0 -8
- package/dist/es/view/header/nav-region/notification/index.svg +0 -5
- package/dist/es/view/header/nav-region/user/index.js +0 -8
- package/dist/es/view/header/nav-region/user/index.svg +0 -4
- package/dist/es/view/window-size/index.js +0 -18
- 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/utils/storybook/webpack.d.cts +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,58 @@
|
|
|
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
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __reExport = (target, module2, copyDefault, desc) => {
|
|
13
|
+
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
14
|
+
for (let key2 of __getOwnPropNames(module2))
|
|
15
|
+
if (!__hasOwnProp.call(target, key2) && (copyDefault || key2 !== "default"))
|
|
16
|
+
__defProp(target, key2, { get: () => module2[key2], enumerable: !(desc = __getOwnPropDesc(module2, key2)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return target;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (module2, isNodeMode) => {
|
|
21
|
+
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
22
|
+
};
|
|
23
|
+
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
24
|
+
return (module2, temp) => {
|
|
25
|
+
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
26
|
+
};
|
|
27
|
+
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
28
|
+
var require_auth_exports = {};
|
|
29
|
+
__export(require_auth_exports, {
|
|
30
|
+
RequireAuth: () => RequireAuth
|
|
31
|
+
});
|
|
32
|
+
var React = __toESM(require("react"));
|
|
33
|
+
var import_redux_injectors = require("redux-injectors");
|
|
34
|
+
var import_constants = __toESM(require("../utils/constants.js"));
|
|
35
|
+
var import_reducer = require("../data/auth/reducer.js");
|
|
36
|
+
var import_auth = require("../sideeffect/auth/index.js");
|
|
37
|
+
var import_login = require("./login/index.js");
|
|
38
|
+
var import_auth2 = require("../utils/auth/index.js");
|
|
39
|
+
const key = "auth";
|
|
40
|
+
const RequireAuth = ({
|
|
41
|
+
children,
|
|
42
|
+
clientId = import_constants.default.CLIENT_ID,
|
|
43
|
+
scope = "loc",
|
|
44
|
+
responseType = "code"
|
|
45
|
+
}) => {
|
|
46
|
+
(0, import_redux_injectors.useInjectReducer)({ key, reducer: import_reducer.authReducer });
|
|
47
|
+
(0, import_redux_injectors.useInjectSaga)({ key, saga: import_auth.authentication });
|
|
48
|
+
const userAuthorized = (0, import_auth2.isUserAuthorized)();
|
|
49
|
+
if (userAuthorized) {
|
|
50
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, children);
|
|
51
|
+
}
|
|
52
|
+
return /* @__PURE__ */ React.createElement(import_login.Login, {
|
|
53
|
+
clientId,
|
|
54
|
+
scope,
|
|
55
|
+
responseType
|
|
56
|
+
});
|
|
57
|
+
};
|
|
58
|
+
module.exports = __toCommonJS(require_auth_exports);
|
|
@@ -6,29 +6,35 @@ var __getProtoOf = Object.getPrototypeOf;
|
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
7
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
8
|
var __export = (target, all) => {
|
|
9
|
-
__markAsModule(target);
|
|
10
9
|
for (var name in all)
|
|
11
10
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
11
|
};
|
|
13
|
-
var __reExport = (target, module2, desc) => {
|
|
12
|
+
var __reExport = (target, module2, copyDefault, desc) => {
|
|
14
13
|
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
15
14
|
for (let key of __getOwnPropNames(module2))
|
|
16
|
-
if (!__hasOwnProp.call(target, key) && key !== "default")
|
|
15
|
+
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
|
17
16
|
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
18
17
|
}
|
|
19
18
|
return target;
|
|
20
19
|
};
|
|
21
|
-
var
|
|
22
|
-
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default",
|
|
20
|
+
var __toESM = (module2, isNodeMode) => {
|
|
21
|
+
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
23
22
|
};
|
|
24
|
-
|
|
23
|
+
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
24
|
+
return (module2, temp) => {
|
|
25
|
+
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
26
|
+
};
|
|
27
|
+
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
28
|
+
var session_timeout_exports = {};
|
|
29
|
+
__export(session_timeout_exports, {
|
|
25
30
|
SessionTimeout: () => SessionTimeout
|
|
26
31
|
});
|
|
27
|
-
var
|
|
28
|
-
var
|
|
29
|
-
var
|
|
30
|
-
var
|
|
31
|
-
var
|
|
32
|
+
var React = __toESM(require("react"));
|
|
33
|
+
var import_react = require("react");
|
|
34
|
+
var import_react_redux = require("../../data/react-redux.js");
|
|
35
|
+
var import_actions = require("../../data/logout/actions.js");
|
|
36
|
+
var import_session = require("../../utils/session.js");
|
|
37
|
+
var import_session_expiry = require("../modals/session-expiry/index.js");
|
|
32
38
|
const SessionTimeout = () => {
|
|
33
39
|
const dispatch = (0, import_react_redux.useAppDispatch)();
|
|
34
40
|
const [showSessionExpiryWarning, setSessionExpiryWarning] = (0, import_react.useState)(false);
|
|
@@ -41,7 +47,11 @@ const SessionTimeout = () => {
|
|
|
41
47
|
setwarningNotifiedAt(sessionExpiryWarningNotifiedAt);
|
|
42
48
|
setSessionExpiryWarning(true);
|
|
43
49
|
});
|
|
44
|
-
const resetCb = (0, import_session.subscribeToResetSession)(
|
|
50
|
+
const resetCb = (0, import_session.subscribeToResetSession)((resetWarningModal) => {
|
|
51
|
+
if (resetWarningModal === true) {
|
|
52
|
+
setSessionExpiryWarning(false);
|
|
53
|
+
}
|
|
54
|
+
});
|
|
45
55
|
const sessionExpiredCb = (0, import_session.subscribeToSessionExpiry)(() => {
|
|
46
56
|
dispatch(import_actions.logout.confirm());
|
|
47
57
|
setSessionExpiryWarning(false);
|
|
@@ -58,3 +68,4 @@ const SessionTimeout = () => {
|
|
|
58
68
|
warningNotifiedAt
|
|
59
69
|
}));
|
|
60
70
|
};
|
|
71
|
+
module.exports = __toCommonJS(session_timeout_exports);
|
|
@@ -6,28 +6,35 @@ var __getProtoOf = Object.getPrototypeOf;
|
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
7
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
8
|
var __export = (target, all) => {
|
|
9
|
-
__markAsModule(target);
|
|
10
9
|
for (var name in all)
|
|
11
10
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
11
|
};
|
|
13
|
-
var __reExport = (target, module2, desc) => {
|
|
12
|
+
var __reExport = (target, module2, copyDefault, desc) => {
|
|
14
13
|
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
15
14
|
for (let key of __getOwnPropNames(module2))
|
|
16
|
-
if (!__hasOwnProp.call(target, key) && key !== "default")
|
|
15
|
+
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
|
17
16
|
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
18
17
|
}
|
|
19
18
|
return target;
|
|
20
19
|
};
|
|
21
|
-
var
|
|
22
|
-
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default",
|
|
20
|
+
var __toESM = (module2, isNodeMode) => {
|
|
21
|
+
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
23
22
|
};
|
|
24
|
-
|
|
23
|
+
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
24
|
+
return (module2, temp) => {
|
|
25
|
+
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
26
|
+
};
|
|
27
|
+
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
28
|
+
var decorator_exports = {};
|
|
29
|
+
__export(decorator_exports, {
|
|
25
30
|
withAppDecorator: () => withAppDecorator
|
|
26
31
|
});
|
|
27
|
-
var
|
|
28
|
-
var
|
|
32
|
+
var React = __toESM(require("react"));
|
|
33
|
+
var import_history = require("../../utils/history.js");
|
|
34
|
+
var import_app_root = require("../app-root/index.js");
|
|
29
35
|
const withAppDecorator = (theme, store, story) => /* @__PURE__ */ React.createElement(import_app_root.AppRoot, {
|
|
30
36
|
store,
|
|
31
37
|
history: import_history.browserHistory,
|
|
32
38
|
theme
|
|
33
39
|
}, story());
|
|
40
|
+
module.exports = __toCommonJS(decorator_exports);
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
1
|
var __defProp = Object.defineProperty;
|
|
3
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
5
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
6
|
var __export = (target, all) => {
|
|
9
|
-
__markAsModule(target);
|
|
10
7
|
for (var name in all)
|
|
11
8
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
9
|
};
|
|
13
|
-
var __reExport = (target, module2, desc) => {
|
|
10
|
+
var __reExport = (target, module2, copyDefault, desc) => {
|
|
14
11
|
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
15
12
|
for (let key of __getOwnPropNames(module2))
|
|
16
|
-
if (!__hasOwnProp.call(target, key) && key !== "default")
|
|
13
|
+
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
|
17
14
|
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
18
15
|
}
|
|
19
16
|
return target;
|
|
20
17
|
};
|
|
21
|
-
var
|
|
22
|
-
return
|
|
23
|
-
};
|
|
24
|
-
|
|
18
|
+
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
19
|
+
return (module2, temp) => {
|
|
20
|
+
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
21
|
+
};
|
|
22
|
+
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
23
|
+
var use_previous_exports = {};
|
|
24
|
+
__export(use_previous_exports, {
|
|
25
25
|
usePrevious: () => usePrevious
|
|
26
26
|
});
|
|
27
|
-
var import_react =
|
|
27
|
+
var import_react = require("react");
|
|
28
28
|
const usePrevious = (value) => {
|
|
29
29
|
const ref = (0, import_react.useRef)();
|
|
30
30
|
(0, import_react.useEffect)(() => {
|
|
@@ -32,3 +32,4 @@ const usePrevious = (value) => {
|
|
|
32
32
|
}, [value]);
|
|
33
33
|
return ref.current;
|
|
34
34
|
};
|
|
35
|
+
module.exports = __toCommonJS(use_previous_exports);
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __reExport = (target, module2, copyDefault, desc) => {
|
|
11
|
+
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(module2))
|
|
13
|
+
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
|
14
|
+
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return target;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
19
|
+
return (module2, temp) => {
|
|
20
|
+
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
21
|
+
};
|
|
22
|
+
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
23
|
+
var use_window_size_change_exports = {};
|
|
24
|
+
__export(use_window_size_change_exports, {
|
|
25
|
+
useWindowSizeChange: () => useWindowSizeChange
|
|
26
|
+
});
|
|
27
|
+
var import_react = require("react");
|
|
28
|
+
var import_pubsub_js = require("pubsub-js");
|
|
29
|
+
var import_constants = require("../utils/constants.js");
|
|
30
|
+
const useWindowSizeChange = () => {
|
|
31
|
+
(0, import_react.useEffect)(() => {
|
|
32
|
+
if (window.ResizeObserver) {
|
|
33
|
+
const observer = new ResizeObserver((entries) => {
|
|
34
|
+
(0, import_pubsub_js.publish)(import_constants.HOST_WINDOW_RESIZED, entries && entries[0]);
|
|
35
|
+
});
|
|
36
|
+
observer.observe(window.document.documentElement);
|
|
37
|
+
return () => {
|
|
38
|
+
observer.unobserve(window.document.documentElement);
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
return () => {
|
|
42
|
+
};
|
|
43
|
+
}, []);
|
|
44
|
+
};
|
|
45
|
+
module.exports = __toCommonJS(use_window_size_change_exports);
|
|
@@ -6,26 +6,32 @@ var __getProtoOf = Object.getPrototypeOf;
|
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
7
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
8
|
var __export = (target, all) => {
|
|
9
|
-
__markAsModule(target);
|
|
10
9
|
for (var name in all)
|
|
11
10
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
11
|
};
|
|
13
|
-
var __reExport = (target, module2, desc) => {
|
|
12
|
+
var __reExport = (target, module2, copyDefault, desc) => {
|
|
14
13
|
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
15
14
|
for (let key of __getOwnPropNames(module2))
|
|
16
|
-
if (!__hasOwnProp.call(target, key) && key !== "default")
|
|
15
|
+
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
|
17
16
|
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
18
17
|
}
|
|
19
18
|
return target;
|
|
20
19
|
};
|
|
21
|
-
var
|
|
22
|
-
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default",
|
|
20
|
+
var __toESM = (module2, isNodeMode) => {
|
|
21
|
+
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
23
22
|
};
|
|
24
|
-
|
|
23
|
+
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
24
|
+
return (module2, temp) => {
|
|
25
|
+
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
26
|
+
};
|
|
27
|
+
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
28
|
+
var visually_hidden_exports = {};
|
|
29
|
+
__export(visually_hidden_exports, {
|
|
25
30
|
VisuallyHidden: () => VisuallyHidden
|
|
26
31
|
});
|
|
27
|
-
var
|
|
28
|
-
var
|
|
32
|
+
var React = __toESM(require("react"));
|
|
33
|
+
var import_react = require("react");
|
|
34
|
+
var import_styled_components = __toESM(require("styled-components"));
|
|
29
35
|
const Span = import_styled_components.default.span`
|
|
30
36
|
border: 0;
|
|
31
37
|
clip: rect(0 0 0 0);
|
|
@@ -42,3 +48,4 @@ const VisuallyHidden = (0, import_react.forwardRef)((props, ref) => /* @__PURE__
|
|
|
42
48
|
ref,
|
|
43
49
|
...props
|
|
44
50
|
}));
|
|
51
|
+
module.exports = __toCommonJS(visually_hidden_exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { CMicroAppGuest } from "../utils/micro-frontend/guest";
|
|
2
|
-
import { getBAEventParameters } from "./web-analytics";
|
|
3
|
-
import { redactPii } from "../utils/redact-pii";
|
|
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
4
|
const sendBAEventToSelf = (data) => {
|
|
5
5
|
const redactedData = redactPii(data);
|
|
6
6
|
window.gtmDataLayer = window.gtmDataLayer || [];
|
|
@@ -1,7 +1,16 @@
|
|
|
1
|
-
import { sendBAEvent } from ".";
|
|
1
|
+
import { sendBAEvent } from "./index.js";
|
|
2
|
+
const getWindow = () => {
|
|
3
|
+
try {
|
|
4
|
+
window.top?.document;
|
|
5
|
+
return window.top || window.self;
|
|
6
|
+
} catch (e) {
|
|
7
|
+
return window.self;
|
|
8
|
+
}
|
|
9
|
+
};
|
|
2
10
|
const pageViewEvent = ({ pageTitle }) => {
|
|
3
|
-
const
|
|
4
|
-
const {
|
|
11
|
+
const pageWindow = getWindow();
|
|
12
|
+
const { pathname, href } = pageWindow.location;
|
|
13
|
+
const { title } = pageWindow.document;
|
|
5
14
|
const { pathname: guestPagePath, href: guestPageUrl } = window.location;
|
|
6
15
|
const { title: guestPageTitle } = document;
|
|
7
16
|
sendBAEvent({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getAuthHTTPClient } from "../../communication/http-client";
|
|
1
|
+
import { getAuthHTTPClient } from "../../communication/http-client/index.js";
|
|
2
2
|
const getUser = async ({ userName }) => {
|
|
3
3
|
const { data } = await getAuthHTTPClient().get(`/encompass/v1/users/${userName}`);
|
|
4
4
|
return data;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import axios from "axios";
|
|
2
|
-
import { getAppConfigValue } from "../../utils/app-config/config";
|
|
3
|
-
import { getAuthorizationHeader } from "../../utils/auth/helper";
|
|
4
|
-
import setupRetry from "./retry";
|
|
5
|
-
import { requestInterceptor } from "./request-interceptor";
|
|
6
|
-
import { handleSuccess, handleFailure } from "./response-interceptor";
|
|
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
7
|
const REQUEST_TIMEOUT = 2 * 60 * 1e3;
|
|
8
8
|
const getHTTPClient = ({
|
|
9
9
|
baseURL = getAppConfigValue("serviceEndpoints.api", ""),
|
|
@@ -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
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import enums from "../../../utils/constants";
|
|
2
|
-
import { getAuthHTTPClient } from "../index";
|
|
3
|
-
import { onAuthorizationFailure } from "../response-interceptor";
|
|
1
|
+
import enums from "../../../utils/constants.js";
|
|
2
|
+
import { getAuthHTTPClient } from "../index.js";
|
|
3
|
+
import { onAuthorizationFailure } from "../response-interceptor.js";
|
|
4
4
|
describe("http client test cases", () => {
|
|
5
5
|
const callApi = ({
|
|
6
6
|
apiUrl,
|
|
@@ -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
|
+
};
|
package/dist/es/data/reducers.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { combineReducers } from "@reduxjs/toolkit";
|
|
2
|
-
import { waitMessageReducer } from "./wait-message/reducer";
|
|
3
|
-
import { errorReducer } from "./error";
|
|
4
|
-
import { breakpointReducer } from "./breakpoint";
|
|
5
|
-
import { liveMessageReducer } from "./live-message";
|
|
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
6
|
const createReducer = (injectedReducers = {}) => {
|
|
7
7
|
const rootReducer = combineReducers({
|
|
8
8
|
waitMessage: waitMessageReducer,
|
package/dist/es/data/store.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { configureStore } from "@reduxjs/toolkit";
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import {
|
|
3
|
+
createInjectorsEnhancer
|
|
4
|
+
} from "redux-injectors";
|
|
4
5
|
import createSagaMiddleware from "redux-saga";
|
|
5
|
-
import { createReducer } from "./reducers";
|
|
6
|
+
import { createReducer } from "./reducers.js";
|
|
6
7
|
const rootReducer = createReducer();
|
|
7
8
|
let appStore = null;
|
|
8
9
|
const setStore = (store) => {
|
|
@@ -19,22 +20,11 @@ const createStore = (initialState, sagaMiddleware, history, middlewareConfig = {
|
|
|
19
20
|
];
|
|
20
21
|
const baseStore = configureStore({
|
|
21
22
|
reducer: rootReducer,
|
|
22
|
-
middleware: (getDefaultMiddleware) => getDefaultMiddleware(middlewareConfig).concat(sagaMiddleware)
|
|
23
|
+
middleware: (getDefaultMiddleware) => getDefaultMiddleware(middlewareConfig).concat(sagaMiddleware),
|
|
23
24
|
devTools: true,
|
|
24
25
|
preloadedState: initialState,
|
|
25
26
|
enhancers
|
|
26
27
|
});
|
|
27
|
-
let hotModule = null;
|
|
28
|
-
try {
|
|
29
|
-
hotModule = module?.hot;
|
|
30
|
-
} catch (err) {
|
|
31
|
-
hotModule = import.meta?.webpackHot;
|
|
32
|
-
}
|
|
33
|
-
if (hotModule) {
|
|
34
|
-
hotModule.accept("./reducers", () => {
|
|
35
|
-
forceReducerReload(baseStore);
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
28
|
return baseStore;
|
|
39
29
|
};
|
|
40
30
|
const createAppStore = (initialState = {}, history, middlewareConfig) => {
|