@elliemae/pui-app-sdk 2.21.0 → 3.0.0-beta.11
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 +40 -30
- package/dist/cjs/analytics/index.js +33 -26
- package/dist/cjs/analytics/page-view-event.js +35 -34
- package/dist/cjs/analytics/user-session-event.js +35 -27
- package/dist/cjs/analytics/user-wait-event.js +32 -17
- package/dist/cjs/analytics/web-analytics.js +33 -19
- package/dist/cjs/api/auth/index.js +42 -39
- package/dist/cjs/api/helpers.js +34 -99
- package/dist/cjs/api/users/index.js +29 -16
- package/dist/cjs/communication/http-client/index.js +50 -48
- package/dist/cjs/communication/http-client/request-interceptor.js +29 -12
- package/dist/cjs/communication/http-client/response-interceptor.js +47 -38
- package/dist/cjs/communication/http-client/retry-axios.js +74 -122
- package/dist/cjs/communication/http-client/retry.js +43 -36
- package/dist/cjs/communication/http-client/tests/index.test-disable.js +48 -56
- package/dist/cjs/data/auth/actions.js +34 -26
- package/dist/cjs/data/auth/reducer.js +36 -18
- package/dist/cjs/data/breakpoint/index.js +44 -32
- package/dist/cjs/data/error/index.js +34 -18
- package/dist/cjs/data/index.js +35 -0
- package/dist/cjs/data/live-message/index.js +35 -25
- package/dist/cjs/data/logout/actions.js +29 -9
- package/dist/cjs/data/navigation-prompt/actions.js +29 -9
- package/dist/cjs/data/react-redux.js +30 -13
- package/dist/cjs/data/reducers.js +36 -23
- package/dist/cjs/data/saga.js +29 -9
- package/dist/cjs/data/store.js +51 -65
- package/dist/cjs/data/wait-message/actions.js +31 -13
- package/dist/cjs/data/wait-message/reducer.js +38 -24
- package/dist/cjs/index.js +195 -809
- package/dist/cjs/micro-frontend.js +34 -0
- package/dist/cjs/route/index.js +44 -32
- package/dist/cjs/route/page-view.js +36 -22
- package/dist/cjs/route/private-route/index.js +59 -60
- package/dist/cjs/sideeffect/auth/index.js +43 -30
- package/dist/cjs/sideeffect/error-toast/index.js +40 -26
- package/dist/cjs/sideeffect/wait-message/index.js +46 -29
- 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 +1 -0
- package/dist/cjs/typings/thirdparty.d.js +0 -0
- package/dist/cjs/utils/app-config/config.js +39 -33
- package/dist/cjs/utils/app-config/index.js +48 -44
- package/dist/cjs/utils/app-host-integration/react.js +28 -14
- package/dist/cjs/utils/auth/helper.js +36 -18
- package/dist/cjs/utils/auth/index.js +77 -116
- package/dist/cjs/utils/await.js +20 -0
- package/dist/cjs/utils/constants.js +39 -21
- package/dist/cjs/utils/font-size.js +30 -14
- package/dist/cjs/utils/guest-with-service.js +28 -12
- package/dist/cjs/utils/helpers.js +32 -19
- package/dist/cjs/utils/history.js +30 -12
- package/dist/cjs/utils/log-records.js +55 -35
- package/dist/cjs/utils/micro-frontend/console-logger.js +40 -23
- package/dist/cjs/utils/micro-frontend/guest.js +86 -127
- package/dist/cjs/utils/micro-frontend/host.js +86 -125
- package/dist/cjs/utils/micro-frontend/index.js +66 -61
- package/dist/cjs/utils/micro-frontend/types.js +20 -5
- package/dist/cjs/utils/redact-pii.js +32 -17
- package/dist/cjs/utils/service-worker.js +37 -21
- package/dist/cjs/utils/session.js +66 -71
- package/dist/cjs/utils/storybook/cjs/main.js +53 -0
- package/dist/cjs/utils/storybook/cjs/middleware.js +5 -0
- package/dist/cjs/utils/storybook/cjs/vite.js +6 -0
- package/dist/cjs/utils/storybook/cjs/webpack.js +21 -0
- package/dist/cjs/utils/storybook/manager.js +32 -16
- package/dist/cjs/utils/storybook/preview.js +59 -50
- package/dist/cjs/utils/storybook/theme.js +31 -14
- package/dist/cjs/utils/testing/index.js +45 -50
- package/dist/cjs/utils/testing/render-with-redux.js +41 -27
- package/dist/cjs/utils/testing/render-with-router-redux.js +47 -37
- package/dist/cjs/utils/testing/render-with-router.js +41 -28
- package/dist/cjs/utils/testing/render-with-state-addons.js +47 -36
- package/dist/cjs/utils/types.js +20 -0
- package/dist/cjs/utils/url.js +29 -13
- package/dist/cjs/utils/web-storage.js +46 -30
- package/dist/cjs/utils/window.js +37 -28
- package/dist/cjs/view/app-root/hosted-app.js +42 -32
- package/dist/cjs/view/app-root/index.js +64 -62
- package/dist/cjs/view/app-root/stand-alone-app.js +45 -37
- package/dist/cjs/view/app-root/style.js +51 -12
- package/dist/cjs/view/error-boundary/default-error-template.js +33 -15
- package/dist/cjs/view/error-boundary/index.js +47 -43
- package/dist/cjs/view/error-toast/index.js +49 -32
- package/dist/cjs/view/fetch-host-app-data/index.js +40 -26
- package/dist/cjs/view/fetch-host-app-data/store.js +32 -24
- package/dist/cjs/view/fields/check-box/index.js +41 -39
- package/dist/cjs/view/fields/combo-box/index.js +44 -31
- package/dist/cjs/view/fields/connect-form.js +31 -15
- package/dist/cjs/view/fields/date-input/index.js +41 -26
- package/dist/cjs/view/fields/date-picker/index.js +41 -26
- package/dist/cjs/view/fields/form-item-layout/index.js +43 -30
- package/dist/cjs/view/fields/input-mask/index.js +42 -41
- package/dist/cjs/view/fields/large-text-box/index.js +41 -26
- package/dist/cjs/view/fields/radio/index.js +41 -30
- package/dist/cjs/view/fields/radio-group/index.js +39 -27
- package/dist/cjs/view/fields/text-box/index.js +41 -26
- package/dist/cjs/view/fields/watch-value.js +48 -35
- package/dist/cjs/view/form/index.js +48 -34
- package/dist/cjs/view/form/personal-info-section.js +63 -80
- package/dist/cjs/view/form/submit-button/index.js +41 -23
- package/dist/cjs/view/guest-unload-handlers/index.js +34 -22
- package/dist/cjs/view/header/center-region/index.js +68 -38
- package/dist/cjs/view/header/index.js +48 -35
- package/dist/cjs/view/header/logo-region/index.js +38 -23
- package/dist/cjs/view/header/nav-region/index.js +51 -30
- package/dist/cjs/view/header/nav-region/notification/index.js +35 -18
- package/dist/cjs/view/header/nav-region/user/index.js +35 -18
- package/dist/cjs/view/host-binding-events/index.js +27 -11
- package/dist/cjs/view/intro.stories.mdx +1 -1
- package/dist/cjs/view/live-message/index.js +40 -34
- package/dist/cjs/view/loadable/index.js +40 -27
- package/dist/cjs/view/login/index.js +43 -30
- package/dist/cjs/view/media-breakpoint/index.js +50 -34
- package/dist/cjs/view/message-to-host-app/index.js +32 -20
- package/dist/cjs/view/micro-app/app-factory/index.js +101 -135
- package/dist/cjs/view/micro-app/const.js +27 -7
- package/dist/cjs/view/micro-app/index.js +44 -27
- package/dist/cjs/view/micro-app/resources/manifest.js +44 -35
- package/dist/cjs/view/micro-app/resources/script.js +57 -53
- package/dist/cjs/view/micro-app/resources/style.js +45 -38
- package/dist/cjs/view/micro-app/types.js +20 -5
- package/dist/cjs/view/micro-app/use-app-will-render.js +59 -50
- package/dist/cjs/view/micro-app/utils.js +33 -21
- package/dist/cjs/view/micro-iframe-app/app.js +44 -39
- package/dist/cjs/view/micro-iframe-app/iframe/const.js +27 -7
- package/dist/cjs/view/micro-iframe-app/iframe/index.js +58 -47
- package/dist/cjs/view/micro-iframe-app/index.js +43 -24
- package/dist/cjs/view/micro-iframe-app/types.js +20 -5
- package/dist/cjs/view/micro-iframe-app/use-frame-loaded.js +43 -37
- package/dist/cjs/view/modals/error/index.js +42 -28
- package/dist/cjs/view/modals/navigation-prompt/index.js +45 -37
- package/dist/cjs/view/modals/session-expiry/customHooks.js +41 -35
- package/dist/cjs/view/modals/session-expiry/index.js +55 -50
- package/dist/cjs/view/modals/wait-message/html-wait-message.js +39 -18
- package/dist/cjs/view/modals/wait-message/index.js +57 -53
- package/dist/cjs/view/modals/wait-message/wait-message-launcher.js +40 -21
- package/dist/cjs/view/render-with-delay/index.js +37 -19
- package/dist/cjs/view/render-with-host-data/index.js +42 -30
- package/dist/cjs/view/session-timeout/index.js +55 -35
- package/dist/cjs/view/storybook/decorator.js +39 -21
- package/dist/cjs/view/use-previous.js +30 -13
- package/dist/cjs/view/useMediaBreakpoints/index.js +35 -19
- package/dist/cjs/view/visually-hidden/index.js +48 -21
- package/dist/cjs/view/window-size/index.js +41 -22
- package/dist/es/analytics/appdynamics.js +14 -15
- package/dist/es/analytics/index.js +8 -14
- package/dist/es/analytics/page-view-event.js +11 -25
- package/dist/es/analytics/user-session-event.js +11 -13
- package/dist/es/analytics/user-wait-event.js +9 -5
- package/dist/es/analytics/web-analytics.js +12 -10
- package/dist/es/api/auth/index.js +21 -26
- package/dist/es/api/helpers.js +8 -81
- package/dist/es/api/users/index.js +6 -7
- package/dist/es/communication/http-client/index.js +19 -25
- package/dist/es/communication/http-client/request-interceptor.js +5 -2
- package/dist/es/communication/http-client/response-interceptor.js +20 -21
- package/dist/es/communication/http-client/retry-axios.js +45 -105
- package/dist/es/communication/http-client/retry.js +22 -25
- package/dist/es/communication/http-client/tests/index.test-disable.js +25 -44
- package/dist/es/data/auth/actions.js +13 -19
- package/dist/es/data/auth/reducer.js +8 -6
- package/dist/es/data/breakpoint/index.js +19 -21
- package/dist/es/data/error/index.js +11 -9
- package/dist/es/data/index.js +11 -0
- package/dist/es/data/live-message/index.js +12 -16
- package/dist/es/data/logout/actions.js +9 -5
- package/dist/es/data/navigation-prompt/actions.js +9 -5
- package/dist/es/data/react-redux.js +7 -3
- package/dist/es/data/reducers.js +6 -3
- package/dist/es/data/saga.js +8 -5
- package/dist/es/data/store.js +24 -51
- package/dist/es/data/wait-message/actions.js +11 -9
- package/dist/es/data/wait-message/reducer.js +9 -9
- package/dist/es/index.js +192 -83
- package/dist/es/micro-frontend.js +10 -0
- package/dist/es/route/index.js +16 -18
- package/dist/es/route/page-view.js +8 -8
- package/dist/es/route/private-route/index.js +24 -31
- package/dist/es/sideeffect/auth/index.js +24 -11
- package/dist/es/sideeffect/error-toast/index.js +11 -10
- package/dist/es/sideeffect/wait-message/index.js +14 -10
- 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 +1 -0
- package/dist/es/typings/thirdparty.d.js +0 -0
- package/dist/es/utils/app-config/config.js +11 -9
- package/dist/es/utils/app-config/index.js +17 -27
- package/dist/es/utils/app-host-integration/react.js +8 -6
- package/dist/es/utils/auth/helper.js +7 -3
- package/dist/es/utils/auth/index.js +51 -75
- package/dist/es/utils/constants.js +18 -13
- package/dist/es/utils/font-size.js +7 -3
- package/dist/es/utils/guest-with-service.js +6 -7
- package/dist/es/utils/helpers.js +10 -6
- package/dist/es/utils/history.js +7 -3
- package/dist/es/utils/log-records.js +34 -31
- package/dist/es/utils/micro-frontend/console-logger.js +16 -12
- package/dist/es/utils/micro-frontend/guest.js +44 -100
- package/dist/es/utils/micro-frontend/host.js +41 -77
- package/dist/es/utils/micro-frontend/index.js +35 -33
- package/dist/es/utils/micro-frontend/types.js +0 -1
- package/dist/es/utils/redact-pii.js +10 -11
- package/dist/es/utils/service-worker.js +13 -10
- package/dist/es/utils/session.js +45 -46
- package/dist/es/utils/storybook/manager.js +7 -4
- package/dist/es/utils/storybook/preview.js +27 -24
- package/dist/es/utils/storybook/theme.js +9 -6
- package/dist/es/utils/testing/index.js +12 -18
- package/dist/es/utils/testing/render-with-redux.js +12 -11
- package/dist/es/utils/testing/render-with-router-redux.js +18 -19
- package/dist/es/utils/testing/render-with-router.js +15 -16
- package/dist/es/utils/testing/render-with-state-addons.js +19 -18
- package/dist/es/utils/url.js +7 -3
- package/dist/es/utils/web-storage.js +21 -17
- package/dist/es/utils/window.js +18 -18
- package/dist/es/view/app-root/hosted-app.js +10 -13
- package/dist/es/view/app-root/index.js +29 -33
- package/dist/es/view/app-root/stand-alone-app.js +11 -12
- package/dist/es/view/app-root/style.js +30 -5
- package/dist/es/view/error-boundary/default-error-template.js +5 -5
- package/dist/es/view/error-boundary/index.js +18 -25
- package/dist/es/view/error-toast/index.js +15 -14
- package/dist/es/view/fetch-host-app-data/index.js +14 -11
- package/dist/es/view/fetch-host-app-data/store.js +10 -7
- package/dist/es/view/fields/check-box/index.js +17 -18
- package/dist/es/view/fields/combo-box/index.js +20 -19
- package/dist/es/view/fields/connect-form.js +8 -6
- package/dist/es/view/fields/date-input/index.js +17 -14
- package/dist/es/view/fields/date-picker/index.js +17 -14
- package/dist/es/view/fields/form-item-layout/index.js +15 -15
- package/dist/es/view/fields/input-mask/index.js +21 -14
- package/dist/es/view/fields/large-text-box/index.js +17 -14
- package/dist/es/view/fields/radio/index.js +17 -18
- package/dist/es/view/fields/radio-group/index.js +15 -15
- package/dist/es/view/fields/text-box/index.js +17 -14
- package/dist/es/view/fields/watch-value.js +20 -24
- package/dist/es/view/form/index.js +23 -22
- package/dist/es/view/form/personal-info-section.js +28 -48
- package/dist/es/view/form/submit-button/index.js +13 -10
- package/dist/es/view/guest-unload-handlers/index.js +10 -9
- package/dist/es/view/header/center-region/index.js +41 -23
- package/dist/es/view/header/index.js +16 -15
- package/dist/es/view/header/logo-region/index.js +9 -9
- package/dist/es/view/header/nav-region/index.js +21 -13
- package/dist/es/view/header/nav-region/notification/index.js +6 -6
- package/dist/es/view/header/nav-region/user/index.js +6 -6
- package/dist/es/view/host-binding-events/index.js +7 -3
- package/dist/es/view/intro.stories.mdx +1 -1
- package/dist/es/view/live-message/index.js +13 -22
- package/dist/es/view/loadable/index.js +13 -15
- package/dist/es/view/login/index.js +12 -15
- package/dist/es/view/media-breakpoint/index.js +16 -13
- package/dist/es/view/message-to-host-app/index.js +10 -9
- package/dist/es/view/micro-app/app-factory/index.js +67 -82
- package/dist/es/view/micro-app/const.js +4 -1
- package/dist/es/view/micro-app/index.js +12 -9
- package/dist/es/view/micro-app/resources/manifest.js +17 -16
- package/dist/es/view/micro-app/resources/script.js +35 -35
- package/dist/es/view/micro-app/resources/style.js +22 -21
- package/dist/es/view/micro-app/types.js +0 -1
- package/dist/es/view/micro-app/use-app-will-render.js +35 -26
- package/dist/es/view/micro-app/utils.js +11 -13
- package/dist/es/view/micro-iframe-app/app.js +14 -20
- package/dist/es/view/micro-iframe-app/iframe/const.js +4 -1
- package/dist/es/view/micro-iframe-app/iframe/index.js +27 -31
- package/dist/es/view/micro-iframe-app/index.js +10 -10
- package/dist/es/view/micro-iframe-app/types.js +0 -1
- package/dist/es/view/micro-iframe-app/use-frame-loaded.js +15 -19
- package/dist/es/view/modals/error/index.js +13 -10
- package/dist/es/view/modals/navigation-prompt/index.js +11 -14
- package/dist/es/view/modals/session-expiry/customHooks.js +11 -13
- package/dist/es/view/modals/session-expiry/index.js +17 -21
- package/dist/es/view/modals/wait-message/html-wait-message.js +11 -10
- package/dist/es/view/modals/wait-message/index.js +30 -37
- package/dist/es/view/modals/wait-message/wait-message-launcher.js +8 -6
- package/dist/es/view/render-with-delay/index.js +8 -10
- package/dist/es/view/render-with-host-data/index.js +10 -13
- package/dist/es/view/session-timeout/index.js +24 -10
- package/dist/es/view/storybook/decorator.js +8 -5
- package/dist/es/view/use-previous.js +6 -3
- package/dist/es/view/useMediaBreakpoints/index.js +11 -9
- package/dist/es/view/visually-hidden/index.js +20 -10
- package/dist/es/view/window-size/index.js +12 -10
- 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 +11 -11
- package/dist/types/data/reducers.d.ts +6 -6
- package/dist/types/data/store.d.ts +29 -29
- package/dist/types/index.d.ts +79 -79
- package/dist/types/micro-frontend.d.ts +6 -0
- package/dist/types/route/private-route/index.d.ts +1 -1
- package/dist/types/sideeffect/auth/index.d.ts +1 -1
- package/dist/types/utils/app-host-integration/react.d.ts +1 -1
- package/dist/types/utils/micro-frontend/guest.d.ts +2 -2
- package/dist/types/utils/micro-frontend/host.d.ts +1 -1
- 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/cjs/main.d.ts +63 -0
- package/dist/types/utils/storybook/{middleware.d.ts → cjs/middleware.d.ts} +0 -0
- package/dist/types/utils/storybook/cjs/vite.d.ts +4 -0
- package/dist/types/utils/storybook/cjs/webpack.d.ts +16 -0
- package/dist/types/utils/storybook/preview.d.ts +9 -3
- package/dist/types/utils/testing/render-with-redux.d.ts +20 -20
- package/dist/types/utils/testing/render-with-router-redux.d.ts +20 -20
- package/dist/types/utils/window.d.ts +1 -1
- package/dist/types/view/app-root/index.d.ts +1 -1
- package/dist/types/view/fields/check-box/index.stories.d.ts +1 -1
- package/dist/types/view/fields/check-box/set-value.stories.d.ts +1 -1
- package/dist/types/view/fields/combo-box/index.stories.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.stories.d.ts +1 -1
- package/dist/types/view/fields/form-item-layout/index.stories.d.ts +1 -1
- package/dist/types/view/fields/input-mask/index.stories.d.ts +1 -1
- package/dist/types/view/fields/large-text-box/index.stories.d.ts +1 -1
- package/dist/types/view/fields/radio/index.stories.d.ts +1 -1
- package/dist/types/view/fields/radio/set-value.stories.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.stories.d.ts +1 -1
- package/dist/types/view/form/usecases.stories.d.ts +1 -1
- package/dist/types/view/header/index.d.ts +1 -1
- package/dist/types/view/header/index.stories.d.ts +1 -1
- package/dist/types/view/micro-app/app-factory/index.d.ts +2 -2
- package/dist/types/view/micro-app/index.d.ts +1 -1
- 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/use-app-will-render.d.ts +1 -1
- 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.stories.d.ts +1 -1
- package/dist/types/view/modals/navigation-prompt/index.stories.d.ts +1 -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 +1 -1
- package/dist/types/view/storybook/decorator.d.ts +1 -1
- package/dist/types/view/visually-hidden/index.d.ts +1 -3
- package/package.json +36 -25
- package/dist/cjs/api/users/index.endpoint.js +0 -14
- package/dist/cjs/communication/http-client/tests/hello.endpoint.js +0 -14
- package/dist/cjs/communication/http-client/tests/private.endpoint.js +0 -14
- package/dist/cjs/utils/storybook/main.js +0 -38
- package/dist/cjs/utils/storybook/middleware.js +0 -9
- package/dist/cjs/view/error-toast/index.stories.js +0 -128
- package/dist/cjs/view/fields/check-box/index.stories.js +0 -64
- package/dist/cjs/view/fields/check-box/set-value.stories.js +0 -83
- package/dist/cjs/view/fields/combo-box/index.stories.js +0 -65
- package/dist/cjs/view/fields/date-input/index.stories.js +0 -53
- package/dist/cjs/view/fields/date-input/index1.stories.js +0 -53
- package/dist/cjs/view/fields/date-picker/index.stories.js +0 -53
- package/dist/cjs/view/fields/form-item-layout/index.stories.js +0 -43
- package/dist/cjs/view/fields/input-mask/index.stories.js +0 -52
- package/dist/cjs/view/fields/large-text-box/index.stories.js +0 -47
- package/dist/cjs/view/fields/radio/index.stories.js +0 -60
- package/dist/cjs/view/fields/radio/set-value.stories.js +0 -81
- package/dist/cjs/view/fields/radio-group/index.stories.js +0 -85
- package/dist/cjs/view/fields/text-box/index.stories.js +0 -48
- package/dist/cjs/view/form/index.stories.js +0 -71
- package/dist/cjs/view/form/usecases.stories.js +0 -59
- package/dist/cjs/view/header/index.stories.js +0 -24
- package/dist/cjs/view/live-message/index.stories.js +0 -53
- package/dist/cjs/view/media-breakpoint/index.stories.js +0 -24
- package/dist/cjs/view/modals/error/index.stories.js +0 -36
- package/dist/cjs/view/modals/navigation-prompt/index.stories.js +0 -32
- package/dist/cjs/view/modals/session-expiry/index.stories.js +0 -30
- package/dist/cjs/view/modals/wait-message/index.stories.js +0 -47
- package/dist/cjs/view/session-timeout/index.stories.js +0 -28
- package/dist/es/api/users/index.endpoint.js +0 -14
- package/dist/es/communication/http-client/tests/hello.endpoint.js +0 -14
- package/dist/es/communication/http-client/tests/private.endpoint.js +0 -14
- package/dist/es/utils/storybook/main.js +0 -38
- package/dist/es/utils/storybook/middleware.js +0 -9
- package/dist/es/view/error-toast/index.stories.js +0 -108
- package/dist/es/view/fields/check-box/index.stories.js +0 -47
- package/dist/es/view/fields/check-box/set-value.stories.js +0 -65
- package/dist/es/view/fields/combo-box/index.stories.js +0 -48
- package/dist/es/view/fields/date-input/index.stories.js +0 -35
- package/dist/es/view/fields/date-input/index1.stories.js +0 -35
- package/dist/es/view/fields/date-picker/index.stories.js +0 -35
- package/dist/es/view/fields/form-item-layout/index.stories.js +0 -27
- package/dist/es/view/fields/input-mask/index.stories.js +0 -35
- package/dist/es/view/fields/large-text-box/index.stories.js +0 -30
- package/dist/es/view/fields/radio/index.stories.js +0 -43
- package/dist/es/view/fields/radio/set-value.stories.js +0 -63
- package/dist/es/view/fields/radio-group/index.stories.js +0 -68
- package/dist/es/view/fields/text-box/index.stories.js +0 -31
- package/dist/es/view/form/index.stories.js +0 -56
- package/dist/es/view/form/usecases.stories.js +0 -43
- package/dist/es/view/header/index.stories.js +0 -14
- package/dist/es/view/live-message/index.stories.js +0 -32
- package/dist/es/view/media-breakpoint/index.stories.js +0 -10
- package/dist/es/view/modals/error/index.stories.js +0 -21
- package/dist/es/view/modals/navigation-prompt/index.stories.js +0 -18
- package/dist/es/view/modals/session-expiry/index.stories.js +0 -18
- package/dist/es/view/modals/wait-message/index.stories.js +0 -33
- package/dist/es/view/session-timeout/index.stories.js +0 -13
- package/dist/types/utils/storybook/main.d.ts +0 -30
- package/dist/types/view/fields/date-input/index1.stories.d.ts +0 -24
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export const RenderWithDelay = /*#__PURE__*/memo(({
|
|
5
|
-
render
|
|
6
|
-
}) => {
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { useEffect, useState, memo } from "react";
|
|
3
|
+
const RenderWithDelay = memo(({ render }) => {
|
|
7
4
|
const [show, showComponents] = useState(false);
|
|
8
5
|
useEffect(() => {
|
|
9
6
|
const timeoutId = setTimeout(showComponents.bind(null, true), 0);
|
|
@@ -11,7 +8,8 @@ export const RenderWithDelay = /*#__PURE__*/memo(({
|
|
|
11
8
|
clearTimeout(timeoutId);
|
|
12
9
|
};
|
|
13
10
|
}, []);
|
|
14
|
-
return show ?
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
11
|
+
return show ? /* @__PURE__ */ React.createElement(React.Fragment, null, render()) : /* @__PURE__ */ React.createElement(React.Fragment, null);
|
|
12
|
+
});
|
|
13
|
+
export {
|
|
14
|
+
RenderWithDelay
|
|
15
|
+
};
|
|
@@ -1,32 +1,29 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
var _WaitMessageLauncher;
|
|
4
|
-
|
|
5
|
-
import { useState, useEffect } from 'react';
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { useState, useEffect } from "react";
|
|
6
3
|
import { fetchHostAppData } from "../fetch-host-app-data/index.js";
|
|
7
4
|
import { WaitMessageLauncher } from "../modals/wait-message/wait-message-launcher.js";
|
|
8
|
-
|
|
9
|
-
var _ComponentToRender;
|
|
10
|
-
|
|
5
|
+
const renderWithHostData = (data) => {
|
|
11
6
|
const {
|
|
12
7
|
ComponentToRender,
|
|
13
8
|
guestAppId,
|
|
14
9
|
hostedAppUrl = document.referrer
|
|
15
10
|
} = data;
|
|
16
|
-
|
|
17
11
|
const HostAppDataWrapper = () => {
|
|
18
12
|
const [loading, setLoading] = useState(true);
|
|
19
13
|
useEffect(() => {
|
|
20
14
|
if (hostedAppUrl) {
|
|
21
15
|
fetchHostAppData(hostedAppUrl, guestAppId).then(() => {
|
|
22
16
|
setLoading(false);
|
|
23
|
-
}).catch(() => {
|
|
17
|
+
}).catch(() => {
|
|
18
|
+
});
|
|
24
19
|
} else {
|
|
25
20
|
setLoading(false);
|
|
26
21
|
}
|
|
27
22
|
}, []);
|
|
28
|
-
return loading ?
|
|
23
|
+
return loading ? /* @__PURE__ */ React.createElement(WaitMessageLauncher, null) : /* @__PURE__ */ React.createElement(ComponentToRender, null);
|
|
29
24
|
};
|
|
30
|
-
|
|
31
25
|
return HostAppDataWrapper;
|
|
32
|
-
};
|
|
26
|
+
};
|
|
27
|
+
export {
|
|
28
|
+
renderWithHostData
|
|
29
|
+
};
|
|
@@ -1,21 +1,32 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { useEffect, useState } from
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { useEffect, useState } from "react";
|
|
3
3
|
import { useAppDispatch } from "../../data/react-redux.js";
|
|
4
4
|
import { logout } from "../../data/logout/actions.js";
|
|
5
|
-
import {
|
|
5
|
+
import {
|
|
6
|
+
initSessionMonitoring,
|
|
7
|
+
stopSessionMonitoring,
|
|
8
|
+
subscribeToSessionExpiryWarning,
|
|
9
|
+
subscribeToResetSession,
|
|
10
|
+
subscribeToSessionExpiry
|
|
11
|
+
} from "../../utils/session.js";
|
|
6
12
|
import { SessionExpiry } from "../modals/session-expiry/index.js";
|
|
7
|
-
|
|
13
|
+
const SessionTimeout = () => {
|
|
8
14
|
const dispatch = useAppDispatch();
|
|
9
15
|
const [showSessionExpiryWarning, setSessionExpiryWarning] = useState(false);
|
|
10
16
|
const [warningNotifiedAt, setwarningNotifiedAt] = useState();
|
|
11
17
|
useEffect(() => {
|
|
12
18
|
initSessionMonitoring();
|
|
13
|
-
const warningCb = subscribeToSessionExpiryWarning(sessionExpiryWarningNotifiedAt => {
|
|
14
|
-
if (!sessionExpiryWarningNotifiedAt)
|
|
19
|
+
const warningCb = subscribeToSessionExpiryWarning((sessionExpiryWarningNotifiedAt) => {
|
|
20
|
+
if (!sessionExpiryWarningNotifiedAt)
|
|
21
|
+
return;
|
|
15
22
|
setwarningNotifiedAt(sessionExpiryWarningNotifiedAt);
|
|
16
23
|
setSessionExpiryWarning(true);
|
|
17
24
|
});
|
|
18
|
-
const resetCb = subscribeToResetSession(
|
|
25
|
+
const resetCb = subscribeToResetSession((resetWarningModal) => {
|
|
26
|
+
if (resetWarningModal === true) {
|
|
27
|
+
setSessionExpiryWarning(false);
|
|
28
|
+
}
|
|
29
|
+
});
|
|
19
30
|
const sessionExpiredCb = subscribeToSessionExpiry(() => {
|
|
20
31
|
dispatch(logout.confirm());
|
|
21
32
|
setSessionExpiryWarning(false);
|
|
@@ -27,8 +38,11 @@ export const SessionTimeout = () => {
|
|
|
27
38
|
stopSessionMonitoring();
|
|
28
39
|
};
|
|
29
40
|
}, [dispatch]);
|
|
30
|
-
return
|
|
41
|
+
return /* @__PURE__ */ React.createElement("div", null, showSessionExpiryWarning && /* @__PURE__ */ React.createElement(SessionExpiry, {
|
|
31
42
|
open: true,
|
|
32
|
-
warningNotifiedAt
|
|
43
|
+
warningNotifiedAt
|
|
33
44
|
}));
|
|
34
|
-
};
|
|
45
|
+
};
|
|
46
|
+
export {
|
|
47
|
+
SessionTimeout
|
|
48
|
+
};
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
import { browserHistory } from "../../utils/history.js";
|
|
3
3
|
import { AppRoot } from "../app-root/index.js";
|
|
4
|
-
|
|
5
|
-
store
|
|
4
|
+
const withAppDecorator = (theme, store, story) => /* @__PURE__ */ React.createElement(AppRoot, {
|
|
5
|
+
store,
|
|
6
6
|
history: browserHistory,
|
|
7
|
-
theme
|
|
8
|
-
},
|
|
7
|
+
theme
|
|
8
|
+
}, story());
|
|
9
|
+
export {
|
|
10
|
+
withAppDecorator
|
|
11
|
+
};
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import { useRef, useEffect } from
|
|
2
|
-
|
|
1
|
+
import { useRef, useEffect } from "react";
|
|
2
|
+
const usePrevious = (value) => {
|
|
3
3
|
const ref = useRef();
|
|
4
4
|
useEffect(() => {
|
|
5
5
|
ref.current = value;
|
|
6
6
|
}, [value]);
|
|
7
7
|
return ref.current;
|
|
8
|
-
};
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
usePrevious
|
|
11
|
+
};
|
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
import { useState, useEffect, useCallback } from
|
|
2
|
-
|
|
3
|
-
const mediaQueryLists = queries.map(q => window.matchMedia(q));
|
|
1
|
+
import { useState, useEffect, useCallback } from "react";
|
|
2
|
+
const useMediaBreakpoints = (queries, values, defaultValue) => {
|
|
3
|
+
const mediaQueryLists = queries.map((q) => window.matchMedia(q));
|
|
4
4
|
const getValue = useCallback(() => {
|
|
5
|
-
const index = mediaQueryLists.findIndex(mql => mql.matches);
|
|
6
|
-
return typeof values[index] !==
|
|
5
|
+
const index = mediaQueryLists.findIndex((mql) => mql.matches);
|
|
6
|
+
return typeof values[index] !== "undefined" ? values[index] : defaultValue;
|
|
7
7
|
}, [defaultValue, mediaQueryLists, values]);
|
|
8
8
|
const [value, setValue] = useState(getValue);
|
|
9
9
|
useEffect(() => {
|
|
10
10
|
const handler = () => setValue(getValue);
|
|
11
|
-
|
|
12
|
-
mediaQueryLists.forEach(mql => mql.
|
|
13
|
-
return () => mediaQueryLists.forEach(mql => mql.removeListener(handler));
|
|
11
|
+
mediaQueryLists.forEach((mql) => mql.addListener(handler));
|
|
12
|
+
return () => mediaQueryLists.forEach((mql) => mql.removeListener(handler));
|
|
14
13
|
}, [getValue, mediaQueryLists]);
|
|
15
14
|
return value;
|
|
16
|
-
};
|
|
15
|
+
};
|
|
16
|
+
export {
|
|
17
|
+
useMediaBreakpoints
|
|
18
|
+
};
|
|
@@ -1,12 +1,22 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { forwardRef } from
|
|
3
|
-
import
|
|
4
|
-
const
|
|
5
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { forwardRef } from "react";
|
|
3
|
+
import styled from "styled-components";
|
|
4
|
+
const Span = styled.span`
|
|
5
|
+
border: 0;
|
|
6
|
+
clip: rect(0 0 0 0);
|
|
7
|
+
height: 1px;
|
|
8
|
+
margin: -1px;
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
padding: 0;
|
|
11
|
+
position: absolute;
|
|
12
|
+
width: 1px;
|
|
13
|
+
white-space: nowrap;
|
|
14
|
+
word-wrap: normal;
|
|
15
|
+
`;
|
|
16
|
+
const VisuallyHidden = forwardRef((props, ref) => /* @__PURE__ */ React.createElement(Span, {
|
|
17
|
+
ref,
|
|
6
18
|
...props
|
|
7
19
|
}));
|
|
8
|
-
export {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
componentId: "sc-h2hrxk-0"
|
|
12
|
-
})(["border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;word-wrap:normal;"]);
|
|
20
|
+
export {
|
|
21
|
+
VisuallyHidden
|
|
22
|
+
};
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { useEffect } from "react";
|
|
3
|
+
import { publish } from "pubsub-js";
|
|
3
4
|
import { HOST_WINDOW_RESIZED } from "../../utils/constants.js";
|
|
4
|
-
|
|
5
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
-
export const WindowSize = () => {
|
|
5
|
+
const WindowSize = () => {
|
|
7
6
|
useEffect(() => {
|
|
8
7
|
if (window.ResizeObserver) {
|
|
9
|
-
const observer = new ResizeObserver(entries => {
|
|
8
|
+
const observer = new ResizeObserver((entries) => {
|
|
10
9
|
publish(HOST_WINDOW_RESIZED, entries && entries[0]);
|
|
11
10
|
});
|
|
12
11
|
observer.observe(window.document.documentElement);
|
|
@@ -14,8 +13,11 @@ export const WindowSize = () => {
|
|
|
14
13
|
observer.unobserve(window.document.documentElement);
|
|
15
14
|
};
|
|
16
15
|
}
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
return () => {
|
|
17
|
+
};
|
|
19
18
|
}, []);
|
|
20
|
-
return
|
|
21
|
-
};
|
|
19
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null);
|
|
20
|
+
};
|
|
21
|
+
export {
|
|
22
|
+
WindowSize
|
|
23
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AxiosInstance } from 'axios';
|
|
2
|
-
import { RetryConfig } from './retry-axios';
|
|
2
|
+
import { RetryConfig } from './retry-axios.js';
|
|
3
3
|
export declare const getRaxConfig: (httpClient: AxiosInstance) => Partial<RetryConfig>;
|
|
4
4
|
declare const setupRetry: (httpClient: AxiosInstance) => void;
|
|
5
5
|
export default setupRetry;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { TypedUseSelectorHook } from 'react-redux';
|
|
2
|
-
import { RootState } from './store';
|
|
2
|
+
import { RootState } from './store.js';
|
|
3
3
|
export declare const useAppDispatch: () => import("redux").Dispatch<{
|
|
4
|
-
payload: import("./wait-message/reducer").WaitMessageState;
|
|
4
|
+
payload: import("./wait-message/reducer.js").WaitMessageState;
|
|
5
5
|
type: string;
|
|
6
6
|
} | import("redux").AnyAction | {
|
|
7
|
-
payload: import("./breakpoint").Breakpoints;
|
|
7
|
+
payload: import("./breakpoint/index.js").Breakpoints;
|
|
8
8
|
type: string;
|
|
9
9
|
}> & import("redux-thunk").ThunkDispatch<import("redux").CombinedState<{
|
|
10
|
-
waitMessage: import("./wait-message/reducer").WaitMessageState;
|
|
11
|
-
error: import("./error").ErrorState;
|
|
12
|
-
breakpoint: import("./breakpoint").BreakpointState;
|
|
13
|
-
liveMessage: import("./live-message").LiveMessageState;
|
|
10
|
+
waitMessage: import("./wait-message/reducer.js").WaitMessageState;
|
|
11
|
+
error: import("./error/index.js").ErrorState;
|
|
12
|
+
breakpoint: import("./breakpoint/index.js").BreakpointState;
|
|
13
|
+
liveMessage: import("./live-message/index.js").LiveMessageState;
|
|
14
14
|
}>, null, import("redux").AnyAction> & import("redux-thunk").ThunkDispatch<import("redux").CombinedState<{
|
|
15
|
-
waitMessage: import("./wait-message/reducer").WaitMessageState;
|
|
16
|
-
error: import("./error").ErrorState;
|
|
17
|
-
breakpoint: import("./breakpoint").BreakpointState;
|
|
18
|
-
liveMessage: import("./live-message").LiveMessageState;
|
|
15
|
+
waitMessage: import("./wait-message/reducer.js").WaitMessageState;
|
|
16
|
+
error: import("./error/index.js").ErrorState;
|
|
17
|
+
breakpoint: import("./breakpoint/index.js").BreakpointState;
|
|
18
|
+
liveMessage: import("./live-message/index.js").LiveMessageState;
|
|
19
19
|
}>, undefined, import("redux").AnyAction>;
|
|
20
20
|
export declare const useAppSelector: TypedUseSelectorHook<RootState>;
|
|
@@ -3,14 +3,14 @@ export declare type InjectedReducers = {
|
|
|
3
3
|
[x: string]: Reducer<any, Action>;
|
|
4
4
|
};
|
|
5
5
|
export declare const createReducer: (injectedReducers?: InjectedReducers) => Reducer<import("redux").CombinedState<{
|
|
6
|
-
waitMessage: import("./wait-message/reducer").WaitMessageState;
|
|
7
|
-
error: import("./error").ErrorState;
|
|
8
|
-
breakpoint: import("./breakpoint").BreakpointState;
|
|
9
|
-
liveMessage: import("./live-message").LiveMessageState;
|
|
6
|
+
waitMessage: import("./wait-message/reducer.js").WaitMessageState;
|
|
7
|
+
error: import("./error/index.js").ErrorState;
|
|
8
|
+
breakpoint: import("./breakpoint/index.js").BreakpointState;
|
|
9
|
+
liveMessage: import("./live-message/index.js").LiveMessageState;
|
|
10
10
|
}>, {
|
|
11
|
-
payload: import("./wait-message/reducer").WaitMessageState;
|
|
11
|
+
payload: import("./wait-message/reducer.js").WaitMessageState;
|
|
12
12
|
type: string;
|
|
13
13
|
} | import("redux").AnyAction | {
|
|
14
|
-
payload: import("./breakpoint").Breakpoints;
|
|
14
|
+
payload: import("./breakpoint/index.js").Breakpoints;
|
|
15
15
|
type: string;
|
|
16
16
|
}>;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { History } from 'history';
|
|
2
2
|
declare const rootReducer: import("redux").Reducer<import("redux").CombinedState<{
|
|
3
|
-
waitMessage: import("./wait-message/reducer").WaitMessageState;
|
|
4
|
-
error: import("./error").ErrorState;
|
|
5
|
-
breakpoint: import("./breakpoint").BreakpointState;
|
|
6
|
-
liveMessage: import("./live-message").LiveMessageState;
|
|
3
|
+
waitMessage: import("./wait-message/reducer.js").WaitMessageState;
|
|
4
|
+
error: import("./error/index.js").ErrorState;
|
|
5
|
+
breakpoint: import("./breakpoint/index.js").BreakpointState;
|
|
6
|
+
liveMessage: import("./live-message/index.js").LiveMessageState;
|
|
7
7
|
}>, {
|
|
8
|
-
payload: import("./wait-message/reducer").WaitMessageState;
|
|
8
|
+
payload: import("./wait-message/reducer.js").WaitMessageState;
|
|
9
9
|
type: string;
|
|
10
10
|
} | import("redux").AnyAction | {
|
|
11
|
-
payload: import("./breakpoint").Breakpoints;
|
|
11
|
+
payload: import("./breakpoint/index.js").Breakpoints;
|
|
12
12
|
type: string;
|
|
13
13
|
}>;
|
|
14
14
|
export declare type RootState = ReturnType<typeof rootReducer>;
|
|
@@ -18,36 +18,36 @@ declare type MiddlewareConfig = {
|
|
|
18
18
|
thunk: boolean;
|
|
19
19
|
};
|
|
20
20
|
export declare const createAppStore: (initialState: import("redux").CombinedState<{
|
|
21
|
-
waitMessage: import("./wait-message/reducer").WaitMessageState;
|
|
22
|
-
error: import("./error").ErrorState;
|
|
23
|
-
breakpoint: import("./breakpoint").BreakpointState;
|
|
24
|
-
liveMessage: import("./live-message").LiveMessageState;
|
|
21
|
+
waitMessage: import("./wait-message/reducer.js").WaitMessageState;
|
|
22
|
+
error: import("./error/index.js").ErrorState;
|
|
23
|
+
breakpoint: import("./breakpoint/index.js").BreakpointState;
|
|
24
|
+
liveMessage: import("./live-message/index.js").LiveMessageState;
|
|
25
25
|
}> | undefined, history: History, middlewareConfig?: MiddlewareConfig | undefined) => import("@reduxjs/toolkit").EnhancedStore<import("redux").CombinedState<{
|
|
26
|
-
waitMessage: import("./wait-message/reducer").WaitMessageState;
|
|
27
|
-
error: import("./error").ErrorState;
|
|
28
|
-
breakpoint: import("./breakpoint").BreakpointState;
|
|
29
|
-
liveMessage: import("./live-message").LiveMessageState;
|
|
26
|
+
waitMessage: import("./wait-message/reducer.js").WaitMessageState;
|
|
27
|
+
error: import("./error/index.js").ErrorState;
|
|
28
|
+
breakpoint: import("./breakpoint/index.js").BreakpointState;
|
|
29
|
+
liveMessage: import("./live-message/index.js").LiveMessageState;
|
|
30
30
|
}>, {
|
|
31
|
-
payload: import("./wait-message/reducer").WaitMessageState;
|
|
31
|
+
payload: import("./wait-message/reducer.js").WaitMessageState;
|
|
32
32
|
type: string;
|
|
33
33
|
} | import("redux").AnyAction | {
|
|
34
|
-
payload: import("./breakpoint").Breakpoints;
|
|
34
|
+
payload: import("./breakpoint/index.js").Breakpoints;
|
|
35
35
|
type: string;
|
|
36
|
-
}, import("@reduxjs/toolkit").MiddlewareArray<import("redux-saga").SagaMiddleware<object> | import("redux
|
|
37
|
-
waitMessage: import("./wait-message/reducer").WaitMessageState;
|
|
38
|
-
error: import("./error").ErrorState;
|
|
39
|
-
breakpoint: import("./breakpoint").BreakpointState;
|
|
40
|
-
liveMessage: import("./live-message").LiveMessageState;
|
|
36
|
+
}, import("@reduxjs/toolkit").MiddlewareArray<import("redux-saga").SagaMiddleware<object> | import("redux-thunk").ThunkMiddleware<import("redux").CombinedState<{
|
|
37
|
+
waitMessage: import("./wait-message/reducer.js").WaitMessageState;
|
|
38
|
+
error: import("./error/index.js").ErrorState;
|
|
39
|
+
breakpoint: import("./breakpoint/index.js").BreakpointState;
|
|
40
|
+
liveMessage: import("./live-message/index.js").LiveMessageState;
|
|
41
41
|
}>, import("redux").AnyAction, null> | import("redux-thunk").ThunkMiddleware<import("redux").CombinedState<{
|
|
42
|
-
waitMessage: import("./wait-message/reducer").WaitMessageState;
|
|
43
|
-
error: import("./error").ErrorState;
|
|
44
|
-
breakpoint: import("./breakpoint").BreakpointState;
|
|
45
|
-
liveMessage: import("./live-message").LiveMessageState;
|
|
42
|
+
waitMessage: import("./wait-message/reducer.js").WaitMessageState;
|
|
43
|
+
error: import("./error/index.js").ErrorState;
|
|
44
|
+
breakpoint: import("./breakpoint/index.js").BreakpointState;
|
|
45
|
+
liveMessage: import("./live-message/index.js").LiveMessageState;
|
|
46
46
|
}>, import("redux").AnyAction, undefined> | import("redux").Middleware<{}, import("redux").CombinedState<{
|
|
47
|
-
waitMessage: import("./wait-message/reducer").WaitMessageState;
|
|
48
|
-
error: import("./error").ErrorState;
|
|
49
|
-
breakpoint: import("./breakpoint").BreakpointState;
|
|
50
|
-
liveMessage: import("./live-message").LiveMessageState;
|
|
47
|
+
waitMessage: import("./wait-message/reducer.js").WaitMessageState;
|
|
48
|
+
error: import("./error/index.js").ErrorState;
|
|
49
|
+
breakpoint: import("./breakpoint/index.js").BreakpointState;
|
|
50
|
+
liveMessage: import("./live-message/index.js").LiveMessageState;
|
|
51
51
|
}>, import("redux").Dispatch<import("redux").AnyAction>>>>;
|
|
52
52
|
export declare type AppStore = ReturnType<typeof createAppStore>;
|
|
53
53
|
export declare type AppDispatch = AppStore['dispatch'];
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,80 +1,80 @@
|
|
|
1
|
-
export { isUserAuthorized, login, authorize } from './utils/auth';
|
|
2
|
-
export { PrivateRoute } from './route/private-route';
|
|
3
|
-
export { AppRoute as Route } from './route';
|
|
4
|
-
export { getHTTPClient, getAuthHTTPClient } from './communication/http-client';
|
|
5
|
-
export { onAuthorizationFailure } from './communication/http-client/response-interceptor';
|
|
6
|
-
export { auth } from './data/auth/actions';
|
|
7
|
-
export { default as globalConstants } from './utils/constants';
|
|
8
|
-
export { useAppDispatch, useAppSelector } from './data/react-redux';
|
|
1
|
+
export { isUserAuthorized, login, authorize } from './utils/auth/index.js';
|
|
2
|
+
export { PrivateRoute } from './route/private-route/index.js';
|
|
3
|
+
export { AppRoute as Route } from './route/index.js';
|
|
4
|
+
export { getHTTPClient, getAuthHTTPClient, } from './communication/http-client/index.js';
|
|
5
|
+
export { onAuthorizationFailure } from './communication/http-client/response-interceptor.js';
|
|
6
|
+
export { auth } from './data/auth/actions.js';
|
|
7
|
+
export { default as globalConstants } from './utils/constants.js';
|
|
8
|
+
export { useAppDispatch, useAppSelector } from './data/react-redux.js';
|
|
9
9
|
export { useInjectReducer, useInjectSaga } from 'redux-injectors';
|
|
10
|
-
export { getAuthorizationHeader } from './utils/auth/helper';
|
|
11
|
-
export { getRedirectUrl, removeDoubleSlash } from './utils/url';
|
|
12
|
-
export { createAppStore as configureStore } from './data/store';
|
|
13
|
-
export { browserHistory as history, memoryHistory } from './utils/history';
|
|
14
|
-
export { Themes } from './utils/constants';
|
|
15
|
-
export { ACTIONS as NavigationPromptActions } from './data/navigation-prompt/actions';
|
|
16
|
-
export { loadable } from './view/loadable';
|
|
17
|
-
export { WaitMessage } from './view/modals/wait-message';
|
|
18
|
-
export { SessionTimeout } from './view/session-timeout';
|
|
19
|
-
export { subscribeToSessionExpiryWarning, subscribeToSessionExpiry, resetUserIdleTime, trackActivity, } from './utils/session';
|
|
20
|
-
export { waitMessage as waitMessageAction } from './data/wait-message/actions';
|
|
21
|
-
export { initServiceWorker } from './utils/service-worker';
|
|
22
|
-
export { CMicroAppGuest } from './utils/micro-frontend/guest';
|
|
23
|
-
export { CMicroAppHost } from './utils/micro-frontend/host';
|
|
24
|
-
export { enableReactAppForHostIntegration } from './utils/app-host-integration/react';
|
|
25
|
-
export { getAppConfigValue, setAppConfigValue, setAppConfig, } from './utils/app-config/config';
|
|
26
|
-
export { getMicroFrontEndAppConfig } from './utils/micro-frontend';
|
|
27
|
-
export { loadAppConfig } from './utils/app-config';
|
|
28
|
-
export { AppRoot } from './view/app-root';
|
|
29
|
-
export { ErrorBoundary } from './view/error-boundary';
|
|
30
|
-
export { isProd, isCIBuild } from './utils/helpers';
|
|
31
|
-
export { listenStorageEvents, removeStorageEvents } from './utils/web-storage';
|
|
32
|
-
export { getHostAppDataByKey, setHostAppData, } from './view/fetch-host-app-data/store';
|
|
33
|
-
export { sendMessageToHost } from './view/message-to-host-app';
|
|
34
|
-
export { onGuestUnloadStart, notifyGuestUnloadComplete, } from './view/guest-unload-handlers';
|
|
35
|
-
export { renderWithHostData } from './view/render-with-host-data';
|
|
36
|
-
export { fetchHostAppData } from './view/fetch-host-app-data';
|
|
37
|
-
export * from './utils/testing';
|
|
38
|
-
export { renderWithRouterRedux } from './utils/testing/render-with-router-redux';
|
|
39
|
-
export { renderWithRedux } from './utils/testing/render-with-redux';
|
|
40
|
-
export { renderWithRouter } from './utils/testing/render-with-router';
|
|
41
|
-
export { RenderWithStateAddOns } from './utils/testing/render-with-state-addons';
|
|
42
|
-
export { getApiActionCreator, getSelectField } from './api/helpers';
|
|
43
|
-
export { getUser as fetchUserSettings } from './api/users';
|
|
44
|
-
export { useMediaBreakpoints } from './view/useMediaBreakpoints';
|
|
45
|
-
export { withAppDecorator } from './view/storybook/decorator';
|
|
46
|
-
export { Header } from './view/header';
|
|
47
|
-
export { ErrorToast } from './view/error-toast';
|
|
48
|
-
export { Form } from './view/form';
|
|
49
|
-
export { ConnectForm } from './view/fields/connect-form';
|
|
50
|
-
export { FormItemLayout } from './view/fields/form-item-layout';
|
|
51
|
-
export { TextBox } from './view/fields/text-box';
|
|
52
|
-
export { LargeTextBox } from './view/fields/large-text-box';
|
|
53
|
-
export { InputMask, MASK_TYPES, MASK_PIPES } from './view/fields/input-mask';
|
|
54
|
-
export { ComboBox } from './view/fields/combo-box';
|
|
55
|
-
export { CheckBox } from './view/fields/check-box';
|
|
56
|
-
export { Radio } from './view/fields/radio';
|
|
57
|
-
export { RadioGroup } from './view/fields/radio-group';
|
|
58
|
-
export { DateInput } from './view/fields/date-input';
|
|
59
|
-
export { DatePicker } from './view/fields/date-picker';
|
|
60
|
-
export { FormSubmitButton } from './view/form/submit-button';
|
|
61
|
-
export { MediaBreakpoint } from './view/media-breakpoint';
|
|
62
|
-
export { VisuallyHidden } from './view/visually-hidden';
|
|
63
|
-
export { actions as ariaLive } from './data/live-message';
|
|
64
|
-
export { actions as error } from './data/error';
|
|
65
|
-
export { actions as logout } from './data/logout/actions';
|
|
66
|
-
export { MicroApp } from './view/micro-app';
|
|
67
|
-
export { MicroIFrameApp } from './view/micro-iframe-app';
|
|
68
|
-
export { getNavigationLinks } from './view/micro-app/utils';
|
|
69
|
-
export { getStore } from './data/store';
|
|
70
|
-
export { RegisterService } from './utils/guest-with-service';
|
|
71
|
-
export { setAppDynamicsUserData } from './analytics/appdynamics';
|
|
72
|
-
export { sendBAEvent } from './analytics';
|
|
73
|
-
export { updateBAEventParameters } from './analytics/web-analytics';
|
|
74
|
-
export { redactPii } from './utils/redact-pii';
|
|
75
|
-
export type { EMUI } from './utils/window';
|
|
76
|
-
export type { Await } from './utils/await';
|
|
77
|
-
export type { RootState, AppStore } from './data/store';
|
|
78
|
-
export type { AppConfig } from './utils/app-config/config';
|
|
79
|
-
export type { OnInitCallback, OnMountCallback, } from './utils/micro-frontend/guest';
|
|
80
|
-
export type { OnInitCallback as OnHostInitCallback } from './utils/micro-frontend/host';
|
|
10
|
+
export { getAuthorizationHeader } from './utils/auth/helper.js';
|
|
11
|
+
export { getRedirectUrl, removeDoubleSlash } from './utils/url.js';
|
|
12
|
+
export { createAppStore as configureStore } from './data/store.js';
|
|
13
|
+
export { browserHistory as history, memoryHistory } from './utils/history.js';
|
|
14
|
+
export { Themes } from './utils/constants.js';
|
|
15
|
+
export { ACTIONS as NavigationPromptActions } from './data/navigation-prompt/actions.js';
|
|
16
|
+
export { loadable } from './view/loadable/index.js';
|
|
17
|
+
export { WaitMessage } from './view/modals/wait-message/index.js';
|
|
18
|
+
export { SessionTimeout } from './view/session-timeout/index.js';
|
|
19
|
+
export { subscribeToSessionExpiryWarning, subscribeToSessionExpiry, resetUserIdleTime, trackActivity, } from './utils/session.js';
|
|
20
|
+
export { waitMessage as waitMessageAction } from './data/wait-message/actions.js';
|
|
21
|
+
export { initServiceWorker } from './utils/service-worker.js';
|
|
22
|
+
export { CMicroAppGuest } from './utils/micro-frontend/guest.js';
|
|
23
|
+
export { CMicroAppHost } from './utils/micro-frontend/host.js';
|
|
24
|
+
export { enableReactAppForHostIntegration } from './utils/app-host-integration/react.js';
|
|
25
|
+
export { getAppConfigValue, setAppConfigValue, setAppConfig, } from './utils/app-config/config.js';
|
|
26
|
+
export { getMicroFrontEndAppConfig } from './utils/micro-frontend/index.js';
|
|
27
|
+
export { loadAppConfig } from './utils/app-config/index.js';
|
|
28
|
+
export { AppRoot } from './view/app-root/index.js';
|
|
29
|
+
export { ErrorBoundary } from './view/error-boundary/index.js';
|
|
30
|
+
export { isProd, isCIBuild } from './utils/helpers.js';
|
|
31
|
+
export { listenStorageEvents, removeStorageEvents, } from './utils/web-storage.js';
|
|
32
|
+
export { getHostAppDataByKey, setHostAppData, } from './view/fetch-host-app-data/store.js';
|
|
33
|
+
export { sendMessageToHost } from './view/message-to-host-app/index.js';
|
|
34
|
+
export { onGuestUnloadStart, notifyGuestUnloadComplete, } from './view/guest-unload-handlers/index.js';
|
|
35
|
+
export { renderWithHostData } from './view/render-with-host-data/index.js';
|
|
36
|
+
export { fetchHostAppData } from './view/fetch-host-app-data/index.js';
|
|
37
|
+
export * from './utils/testing/index.js';
|
|
38
|
+
export { renderWithRouterRedux } from './utils/testing/render-with-router-redux.js';
|
|
39
|
+
export { renderWithRedux } from './utils/testing/render-with-redux.js';
|
|
40
|
+
export { renderWithRouter } from './utils/testing/render-with-router.js';
|
|
41
|
+
export { RenderWithStateAddOns } from './utils/testing/render-with-state-addons.js';
|
|
42
|
+
export { getApiActionCreator, getSelectField } from './api/helpers.js';
|
|
43
|
+
export { getUser as fetchUserSettings } from './api/users/index.js';
|
|
44
|
+
export { useMediaBreakpoints } from './view/useMediaBreakpoints/index.js';
|
|
45
|
+
export { withAppDecorator } from './view/storybook/decorator.js';
|
|
46
|
+
export { Header } from './view/header/index.js';
|
|
47
|
+
export { ErrorToast } from './view/error-toast/index.js';
|
|
48
|
+
export { Form } from './view/form/index.js';
|
|
49
|
+
export { ConnectForm } from './view/fields/connect-form.js';
|
|
50
|
+
export { FormItemLayout } from './view/fields/form-item-layout/index.js';
|
|
51
|
+
export { TextBox } from './view/fields/text-box/index.js';
|
|
52
|
+
export { LargeTextBox } from './view/fields/large-text-box/index.js';
|
|
53
|
+
export { InputMask, MASK_TYPES, MASK_PIPES, } from './view/fields/input-mask/index.js';
|
|
54
|
+
export { ComboBox } from './view/fields/combo-box/index.js';
|
|
55
|
+
export { CheckBox } from './view/fields/check-box/index.js';
|
|
56
|
+
export { Radio } from './view/fields/radio/index.js';
|
|
57
|
+
export { RadioGroup } from './view/fields/radio-group/index.js';
|
|
58
|
+
export { DateInput } from './view/fields/date-input/index.js';
|
|
59
|
+
export { DatePicker } from './view/fields/date-picker/index.js';
|
|
60
|
+
export { FormSubmitButton } from './view/form/submit-button/index.js';
|
|
61
|
+
export { MediaBreakpoint } from './view/media-breakpoint/index.js';
|
|
62
|
+
export { VisuallyHidden } from './view/visually-hidden/index.js';
|
|
63
|
+
export { actions as ariaLive } from './data/live-message/index.js';
|
|
64
|
+
export { actions as error } from './data/error/index.js';
|
|
65
|
+
export { actions as logout } from './data/logout/actions.js';
|
|
66
|
+
export { MicroApp } from './view/micro-app/index.js';
|
|
67
|
+
export { MicroIFrameApp } from './view/micro-iframe-app/index.js';
|
|
68
|
+
export { getNavigationLinks } from './view/micro-app/utils.js';
|
|
69
|
+
export { getStore } from './data/store.js';
|
|
70
|
+
export { RegisterService } from './utils/guest-with-service.js';
|
|
71
|
+
export { setAppDynamicsUserData } from './analytics/appdynamics.js';
|
|
72
|
+
export { sendBAEvent } from './analytics/index.js';
|
|
73
|
+
export { updateBAEventParameters } from './analytics/web-analytics.js';
|
|
74
|
+
export { redactPii } from './utils/redact-pii.js';
|
|
75
|
+
export type { EMUI } from './utils/window.js';
|
|
76
|
+
export type { Await } from './utils/await.js';
|
|
77
|
+
export type { RootState, AppStore } from './data/store.js';
|
|
78
|
+
export type { AppConfig } from './utils/app-config/config.js';
|
|
79
|
+
export type { OnInitCallback, OnMountCallback, } from './utils/micro-frontend/guest.js';
|
|
80
|
+
export type { OnInitCallback as OnHostInitCallback } from './utils/micro-frontend/host.js';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { CMicroAppGuest } from './utils/micro-frontend/guest.js';
|
|
2
|
+
export { CMicroAppHost } from './utils/micro-frontend/host.js';
|
|
3
|
+
export { getMicroFrontEndAppConfig } from './utils/micro-frontend/index.js';
|
|
4
|
+
export { enableReactAppForHostIntegration } from './utils/app-host-integration/react.js';
|
|
5
|
+
export type { OnInitCallback, OnMountCallback, } from './utils/micro-frontend/guest.js';
|
|
6
|
+
export type { OnInitCallback as OnHostInitCallback } from './utils/micro-frontend/host.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ForkEffect, StrictEffect } from 'redux-saga/effects';
|
|
2
2
|
import { PayloadAction } from '@reduxjs/toolkit';
|
|
3
|
-
import { LoginParms, LogoutParams } from '../../data/auth/actions';
|
|
3
|
+
import { LoginParms, LogoutParams } from '../../data/auth/actions.js';
|
|
4
4
|
export declare function login({ payload, }: PayloadAction<LoginParms>): Generator<StrictEffect, void>;
|
|
5
5
|
export declare function logout({ payload, }: PayloadAction<LogoutParams>): Generator<StrictEffect, void, void>;
|
|
6
6
|
export declare function authentication(): Generator<ForkEffect, void, unknown>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { DefaultTheme } from 'styled-components';
|
|
2
2
|
import { History, Path } from 'history';
|
|
3
3
|
import type { IMicroAppGuest, IMicroAppHost, InitOptions, MountOptions } from '@elliemae/pui-micro-frontend-base';
|
|
4
|
-
import { MicroFrontEndLogger } from './console-logger';
|
|
5
|
-
import { JSONValue } from '../types';
|
|
4
|
+
import { MicroFrontEndLogger } from './console-logger.js';
|
|
5
|
+
import { JSONValue } from '../types.js';
|
|
6
6
|
export interface GuestProps extends InitOptions {
|
|
7
7
|
prevState: JSONValue | null;
|
|
8
8
|
history: History;
|