@elliemae/pui-app-sdk 3.0.0-beta.6 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/dist/cjs/analytics/appdynamics.js +29 -9
- package/dist/cjs/analytics/index.js +28 -13
- package/dist/cjs/analytics/page-view-event.js +11 -10
- package/dist/cjs/analytics/user-session-event.js +12 -11
- package/dist/cjs/analytics/user-wait-event.js +11 -10
- package/dist/cjs/analytics/web-analytics.js +34 -3
- package/dist/cjs/api/auth/index.js +11 -10
- package/dist/cjs/api/helpers.js +12 -11
- package/dist/cjs/api/users/index.js +11 -10
- package/dist/cjs/communication/http-client/index.js +60 -21
- package/dist/cjs/communication/http-client/request-interceptor.js +11 -10
- package/dist/cjs/communication/http-client/response-interceptor.js +13 -7
- package/dist/cjs/communication/http-client/retry-axios.js +14 -8
- package/dist/cjs/communication/http-client/retry.js +11 -10
- package/dist/cjs/data/auth/actions.js +19 -2
- package/dist/cjs/data/auth/reducer.js +14 -8
- package/dist/cjs/data/breakpoint/index.js +13 -7
- package/dist/cjs/data/error/index.js +11 -10
- package/dist/cjs/data/index.js +35 -0
- package/dist/cjs/data/live-message/index.js +11 -10
- package/dist/cjs/data/logout/actions.js +19 -2
- package/dist/cjs/data/navigation-prompt/actions.js +19 -2
- package/dist/cjs/data/react-redux.js +11 -10
- package/dist/cjs/data/reducers.js +32 -18
- package/dist/cjs/data/saga.js +19 -2
- package/dist/cjs/data/store.js +18 -22
- package/dist/cjs/data/wait-message/actions.js +19 -2
- package/dist/cjs/data/wait-message/reducer.js +14 -8
- package/dist/cjs/data/webpack-hmr.js +42 -0
- package/dist/cjs/index.js +90 -85
- package/dist/cjs/micro-frontend.js +34 -0
- package/dist/cjs/package.json +7 -1
- package/dist/cjs/sideeffect/auth/index.js +36 -20
- package/dist/cjs/sideeffect/error-toast/index.js +34 -17
- package/dist/cjs/sideeffect/wait-message/index.js +36 -20
- package/dist/cjs/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 +42 -25
- package/dist/cjs/utils/await.js +18 -1
- package/dist/cjs/utils/constants.js +19 -2
- package/dist/cjs/utils/font-size.js +19 -2
- package/dist/cjs/utils/guest-with-service.js +19 -2
- package/dist/cjs/utils/helpers.js +20 -3
- package/dist/cjs/utils/history.js +11 -10
- package/dist/cjs/utils/log-records.js +19 -2
- package/dist/cjs/utils/micro-frontend/console-logger.js +12 -11
- package/dist/cjs/utils/micro-frontend/guest.js +25 -19
- package/dist/cjs/utils/micro-frontend/host.js +30 -29
- package/dist/cjs/utils/micro-frontend/index.js +17 -11
- package/dist/cjs/utils/micro-frontend/types.js +18 -1
- package/dist/cjs/utils/redact-pii.js +19 -2
- package/dist/cjs/utils/service-worker.js +14 -14
- package/dist/cjs/utils/session.js +15 -14
- package/dist/cjs/utils/storybook/{main.js → cjs/main.js} +11 -3
- package/dist/cjs/utils/storybook/{middleware.js → cjs/middleware.js} +0 -0
- package/dist/cjs/utils/storybook/{vite.js → cjs/vite.js} +0 -0
- package/dist/cjs/utils/storybook/{webpack.js → cjs/webpack.js} +0 -0
- package/dist/cjs/utils/storybook/manager.js +12 -11
- package/dist/cjs/utils/storybook/preview.js +24 -20
- package/dist/cjs/utils/storybook/theme.js +50 -19
- package/dist/cjs/utils/testing/index.js +34 -14
- package/dist/cjs/utils/testing/render-with-redux.js +37 -15
- package/dist/cjs/utils/testing/render-with-router-redux.js +41 -19
- package/dist/cjs/utils/testing/render-with-router.js +40 -15
- package/dist/cjs/utils/testing/render-with-state-addons.js +56 -21
- package/dist/cjs/utils/types.js +18 -1
- package/dist/cjs/utils/url.js +19 -2
- package/dist/cjs/utils/web-storage.js +13 -7
- package/dist/cjs/utils/window.js +11 -10
- package/dist/cjs/view/app-root/hosted-app.js +24 -15
- package/dist/cjs/view/app-root/index.js +40 -24
- package/dist/cjs/view/app-root/stand-alone-app.js +27 -17
- package/dist/cjs/view/app-root/style.js +11 -10
- package/dist/cjs/view/app-router.js +77 -0
- package/dist/cjs/view/{media-breakpoint/index.js → breakpoint/use-breakpoint.js} +20 -21
- package/dist/cjs/view/{useMediaBreakpoints/index.js → breakpoint/use-media-query-list.js} +15 -14
- package/dist/cjs/view/error-boundary/default-error-template.js +14 -8
- package/dist/cjs/view/error-boundary/index.js +35 -13
- package/dist/cjs/view/error-toast/index.js +37 -21
- package/dist/cjs/view/fetch-host-app-data/index.js +16 -10
- package/dist/cjs/view/fetch-host-app-data/store.js +26 -11
- package/dist/cjs/view/fields/check-box/index.js +57 -26
- package/dist/cjs/view/fields/combo-box/index.js +68 -28
- package/dist/cjs/view/fields/connect-form.js +26 -13
- package/dist/cjs/view/fields/date-input/index.js +58 -23
- package/dist/cjs/view/fields/date-picker/index.js +58 -23
- package/dist/cjs/view/fields/form-item-layout/index.js +56 -25
- package/dist/cjs/view/fields/form-layout-block-item/index.js +84 -0
- package/dist/cjs/view/fields/input-mask/index.js +58 -24
- package/dist/cjs/view/fields/large-text-box/index.js +58 -23
- package/dist/cjs/view/fields/radio/index.js +67 -25
- package/dist/cjs/view/fields/radio-group/index.js +57 -22
- package/dist/cjs/view/fields/text-box/index.js +58 -23
- package/dist/cjs/view/fields/watch-value.js +19 -11
- package/dist/cjs/view/form/index.js +32 -15
- package/dist/cjs/view/form/personal-info-section.js +46 -36
- package/dist/cjs/view/form/submit-button/index.js +48 -15
- package/dist/cjs/view/guest-unload-handlers/index.js +11 -10
- package/dist/cjs/view/host-binding-events/index.js +19 -2
- package/dist/cjs/view/live-message/index.js +15 -9
- package/dist/cjs/view/loadable/index.js +30 -12
- package/dist/cjs/view/login/index.js +16 -20
- package/dist/cjs/view/message-to-host-app/index.js +11 -10
- package/dist/cjs/view/micro-app/app-factory/index.js +40 -20
- package/dist/cjs/view/micro-app/const.js +19 -2
- package/dist/cjs/view/micro-app/index.js +17 -11
- package/dist/cjs/view/micro-app/resources/manifest.js +16 -13
- package/dist/cjs/view/micro-app/resources/script.js +12 -11
- package/dist/cjs/view/micro-app/resources/style.js +11 -10
- package/dist/cjs/view/micro-app/types.js +18 -1
- package/dist/cjs/view/micro-app/use-app-will-render.js +36 -19
- package/dist/cjs/view/micro-app/utils.js +11 -10
- package/dist/cjs/view/micro-iframe-app/app.js +57 -22
- package/dist/cjs/view/micro-iframe-app/iframe/const.js +19 -2
- package/dist/cjs/view/micro-iframe-app/iframe/index.js +37 -14
- package/dist/cjs/view/micro-iframe-app/index.js +49 -14
- package/dist/cjs/view/micro-iframe-app/types.js +18 -1
- package/dist/cjs/view/micro-iframe-app/use-frame-loaded.js +16 -13
- package/dist/cjs/view/modals/error/index.js +31 -22
- package/dist/cjs/view/modals/navigation-prompt/index.js +39 -22
- package/dist/cjs/view/modals/session-expiry/customHooks.js +14 -13
- package/dist/cjs/view/modals/session-expiry/index.js +39 -30
- package/dist/cjs/view/modals/wait-message/index.js +59 -22
- package/dist/cjs/view/modals/wait-message/{html-wait-message.js → use-html-wait-message.js} +14 -15
- package/dist/cjs/view/modals/wait-message/wait-message-launcher.js +14 -14
- package/dist/cjs/view/page.js +51 -0
- package/dist/cjs/view/render-with-delay/index.js +15 -9
- package/dist/cjs/view/render-with-host-data/index.js +16 -10
- package/dist/cjs/view/require-auth.js +58 -0
- package/dist/cjs/view/session-timeout/index.js +23 -13
- package/dist/cjs/view/storybook/decorator.js +15 -9
- package/dist/cjs/view/use-previous.js +11 -10
- package/dist/cjs/view/{window-size/index.js → use-window-size-change.js} +15 -16
- package/dist/cjs/view/visually-hidden/index.js +32 -13
- package/dist/esm/analytics/appdynamics.js +34 -0
- package/dist/esm/analytics/index.js +43 -0
- package/dist/{es → esm}/analytics/page-view-event.js +0 -0
- package/dist/{es → esm}/analytics/user-session-event.js +0 -0
- package/dist/{es → esm}/analytics/user-wait-event.js +0 -0
- package/dist/esm/analytics/web-analytics.js +30 -0
- package/dist/{es → esm}/api/auth/index.js +0 -0
- package/dist/{es → esm}/api/helpers.js +0 -0
- package/dist/{es → esm}/api/users/index.js +0 -0
- package/dist/{es → esm}/api/users/users.json +0 -0
- package/dist/{es → esm}/app.config.json +0 -0
- package/dist/esm/communication/http-client/index.js +70 -0
- package/dist/{es → esm}/communication/http-client/request-interceptor.js +0 -0
- package/dist/{es → esm}/communication/http-client/response-interceptor.js +0 -0
- package/dist/{es → esm}/communication/http-client/retry-axios.js +1 -1
- package/dist/{es → esm}/communication/http-client/retry.js +0 -0
- package/dist/{es → esm}/data/auth/actions.js +0 -0
- package/dist/{es → esm}/data/auth/reducer.js +0 -0
- package/dist/{es → esm}/data/breakpoint/index.js +0 -0
- package/dist/{es → esm}/data/error/index.js +0 -0
- package/dist/esm/data/index.js +11 -0
- package/dist/{es → esm}/data/live-message/index.js +0 -0
- package/dist/{es → esm}/data/logout/actions.js +0 -0
- package/dist/{es → esm}/data/navigation-prompt/actions.js +0 -0
- package/dist/{es → esm}/data/react-redux.js +0 -0
- package/dist/esm/data/reducers.js +33 -0
- package/dist/{es → esm}/data/saga.js +0 -0
- package/dist/{es → esm}/data/store.js +5 -12
- package/dist/{es → esm}/data/wait-message/actions.js +0 -0
- package/dist/{es → esm}/data/wait-message/reducer.js +0 -0
- package/dist/esm/data/webpack-hmr.js +17 -0
- package/dist/{es → esm}/index.js +13 -11
- package/dist/{es → esm}/index.pug +0 -0
- package/dist/esm/micro-frontend.js +10 -0
- package/dist/esm/package.json +7 -0
- package/dist/esm/sideeffect/auth/index.js +64 -0
- package/dist/esm/sideeffect/error-toast/index.js +43 -0
- package/dist/esm/sideeffect/wait-message/index.js +55 -0
- package/dist/{es → esm}/typings/custom.d.js +0 -0
- package/dist/{es → esm}/typings/elliemae.d.js +0 -0
- package/dist/{es → esm}/typings/styled.d.js +0 -0
- package/dist/{es → esm}/typings/thirdparty.d.js +0 -0
- package/dist/{es → esm}/utils/app-config/config.js +1 -1
- package/dist/{es → esm}/utils/app-config/index.js +0 -0
- package/dist/{es → esm}/utils/app-host-integration/react.js +0 -0
- package/dist/{es → esm}/utils/auth/helper.js +0 -0
- package/dist/{es → esm}/utils/auth/index.js +25 -7
- package/dist/{es → esm}/utils/await.js +0 -0
- package/dist/{es → esm}/utils/constants.js +0 -0
- package/dist/{es → esm}/utils/font-size.js +0 -0
- package/dist/{es → esm}/utils/guest-with-service.js +0 -0
- package/dist/{es → esm}/utils/helpers.js +1 -1
- package/dist/{es → esm}/utils/history.js +0 -0
- package/dist/{es → esm}/utils/log-records.js +0 -0
- package/dist/{es → esm}/utils/micro-frontend/console-logger.js +0 -0
- package/dist/{es → esm}/utils/micro-frontend/guest.js +1 -1
- package/dist/{es → esm}/utils/micro-frontend/host.js +5 -4
- package/dist/{es → esm}/utils/micro-frontend/index.js +0 -0
- package/dist/{es → esm}/utils/micro-frontend/types.js +0 -0
- package/dist/{es → esm}/utils/redact-pii.js +0 -0
- package/dist/{es → esm}/utils/service-worker.js +2 -3
- package/dist/{es → esm}/utils/session.js +2 -2
- package/dist/{es → esm}/utils/storybook/manager.js +0 -0
- package/dist/{es → esm}/utils/storybook/preview.js +7 -4
- package/dist/esm/utils/storybook/theme.js +45 -0
- package/dist/esm/utils/testing/index.js +38 -0
- package/dist/esm/utils/testing/render-with-redux.js +35 -0
- package/dist/esm/utils/testing/render-with-router-redux.js +41 -0
- package/dist/esm/utils/testing/render-with-router.js +37 -0
- package/dist/esm/utils/testing/render-with-state-addons.js +69 -0
- package/dist/{es → esm}/utils/types.js +0 -0
- package/dist/{es → esm}/utils/url.js +0 -0
- package/dist/{es → esm}/utils/web-storage.js +0 -0
- package/dist/{es → esm}/utils/window.js +0 -0
- package/dist/esm/view/app-root/hosted-app.js +18 -0
- package/dist/{es → esm}/view/app-root/index.js +19 -7
- package/dist/esm/view/app-root/stand-alone-app.js +25 -0
- package/dist/{es → esm}/view/app-root/style.js +0 -0
- package/dist/esm/view/app-router.js +50 -0
- package/dist/{es/view/media-breakpoint/index.js → esm/view/breakpoint/use-breakpoint.js} +4 -6
- package/dist/{es/view/useMediaBreakpoints/index.js → esm/view/breakpoint/use-media-query-list.js} +4 -4
- package/dist/esm/view/error-boundary/default-error-template.js +5 -0
- package/dist/esm/view/error-boundary/index.js +54 -0
- package/dist/esm/view/error-toast/index.js +42 -0
- package/dist/{es → esm}/view/fetch-host-app-data/index.js +0 -0
- package/dist/esm/view/fetch-host-app-data/store.js +28 -0
- package/dist/esm/view/fields/check-box/index.js +52 -0
- package/dist/esm/view/fields/combo-box/index.js +64 -0
- package/dist/esm/view/fields/connect-form.js +24 -0
- package/dist/esm/view/fields/date-input/index.js +53 -0
- package/dist/esm/view/fields/date-picker/index.js +53 -0
- package/dist/esm/view/fields/form-item-layout/index.js +50 -0
- package/dist/esm/view/fields/form-layout-block-item/index.js +57 -0
- package/dist/esm/view/fields/input-mask/index.js +59 -0
- package/dist/esm/view/fields/large-text-box/index.js +53 -0
- package/dist/esm/view/fields/radio/index.js +62 -0
- package/dist/esm/view/fields/radio-group/index.js +52 -0
- package/dist/esm/view/fields/text-box/index.js +53 -0
- package/dist/esm/view/fields/watch-value.js +23 -0
- package/dist/esm/view/form/index.js +46 -0
- package/dist/{es → esm}/view/form/personal-info-section.js +29 -25
- package/dist/esm/view/form/submit-button/index.js +48 -0
- package/dist/{es → esm}/view/guest-unload-handlers/index.js +0 -0
- package/dist/{es → esm}/view/host-binding-events/index.js +0 -0
- package/dist/{es → esm}/view/intro.stories.mdx +0 -0
- package/dist/{es → esm}/view/live-message/index.js +0 -0
- package/dist/esm/view/loadable/index.js +28 -0
- package/dist/{es → esm}/view/login/index.js +2 -7
- package/dist/{es → esm}/view/message-to-host-app/index.js +0 -0
- package/dist/{es → esm}/view/micro-app/app-factory/index.js +23 -2
- package/dist/{es → esm}/view/micro-app/const.js +0 -0
- package/dist/{es → esm}/view/micro-app/index.js +0 -0
- package/dist/{es → esm}/view/micro-app/resources/manifest.js +2 -0
- package/dist/{es → esm}/view/micro-app/resources/script.js +1 -1
- package/dist/{es → esm}/view/micro-app/resources/style.js +0 -0
- package/dist/{es → esm}/view/micro-app/types.js +0 -0
- package/dist/{es → esm}/view/micro-app/use-app-will-render.js +21 -3
- package/dist/{es → esm}/view/micro-app/utils.js +0 -0
- package/dist/esm/view/micro-iframe-app/app.js +58 -0
- package/dist/{es → esm}/view/micro-iframe-app/iframe/const.js +0 -0
- package/dist/{es → esm}/view/micro-iframe-app/iframe/index.html +0 -0
- package/dist/esm/view/micro-iframe-app/iframe/index.js +54 -0
- package/dist/esm/view/micro-iframe-app/index.js +57 -0
- package/dist/{es → esm}/view/micro-iframe-app/types.js +0 -0
- package/dist/{es → esm}/view/micro-iframe-app/use-frame-loaded.js +2 -0
- package/dist/esm/view/modals/error/index.js +33 -0
- package/dist/esm/view/modals/navigation-prompt/index.js +40 -0
- package/dist/{es → esm}/view/modals/session-expiry/customHooks.js +0 -0
- package/dist/esm/view/modals/session-expiry/index.js +51 -0
- package/dist/esm/view/modals/wait-message/index.js +69 -0
- package/dist/esm/view/modals/wait-message/use-html-wait-message.js +11 -0
- package/dist/{es → esm}/view/modals/wait-message/wait-message-launcher.js +1 -2
- package/dist/{es/route/page-view.js → esm/view/page.js} +7 -0
- package/dist/{es → esm}/view/render-with-delay/index.js +1 -1
- package/dist/{es → esm}/view/render-with-host-data/index.js +0 -0
- package/dist/esm/view/require-auth.js +29 -0
- package/dist/{es → esm}/view/session-timeout/index.js +5 -1
- package/dist/{es → esm}/view/storybook/decorator.js +0 -0
- package/dist/{es → esm}/view/use-previous.js +0 -0
- package/dist/{es/view/window-size/index.js → esm/view/use-window-size-change.js} +3 -5
- package/dist/esm/view/visually-hidden/index.js +37 -0
- package/dist/types/communication/http-client/tests/{index.test-disable.d.ts → index.test.d.ts} +0 -0
- package/dist/types/data/index.d.ts +4 -0
- package/dist/types/data/react-redux.d.ts +8 -17
- package/dist/types/data/store.d.ts +0 -1
- package/dist/types/data/webpack-hmr.d.ts +1 -0
- package/dist/types/index.d.ts +5 -6
- package/dist/types/micro-frontend.d.ts +6 -0
- package/dist/types/utils/app-config/config.d.ts +1 -1
- package/dist/types/utils/history.d.ts +2 -2
- package/dist/types/utils/micro-frontend/guest.d.ts +3 -3
- package/dist/types/utils/micro-frontend/host.d.ts +2 -2
- package/dist/types/utils/micro-frontend/types.d.ts +1 -1
- package/dist/types/utils/session.d.ts +5 -2
- package/dist/types/utils/storybook/{main.d.cts → cjs/main.d.ts} +15 -1
- package/dist/types/utils/storybook/{middleware.d.cts → cjs/middleware.d.ts} +0 -0
- package/dist/types/utils/storybook/{vite.d.cts → cjs/vite.d.ts} +0 -0
- package/dist/types/utils/storybook/{webpack.d.cts → cjs/webpack.d.ts} +0 -0
- package/dist/types/utils/storybook/preview.d.ts +9 -2
- package/dist/types/utils/testing/render-with-router.d.ts +1 -1
- package/dist/types/utils/testing/render-with-state-addons.d.ts +1 -1
- package/dist/types/view/app-root/hosted-app.d.ts +1 -1
- package/dist/types/view/app-root/index.d.ts +1 -1
- package/dist/types/view/app-root/stand-alone-app.d.ts +1 -1
- package/dist/types/view/app-router.d.ts +9 -0
- package/dist/types/view/{media-breakpoint → breakpoint}/index.stories.d.ts +0 -0
- package/dist/types/view/breakpoint/use-breakpoint.d.ts +1 -0
- package/dist/types/view/breakpoint/use-media-query-list.d.ts +1 -0
- package/dist/types/view/error-boundary/default-error-template.d.ts +1 -1
- package/dist/types/view/fields/check-box/index.d.ts +2 -4
- package/dist/types/view/fields/check-box/index.stories.d.ts +1 -3
- package/dist/types/view/fields/combo-box/index.d.ts +1 -2
- package/dist/types/view/fields/combo-box/index.stories.d.ts +2 -4
- package/dist/types/view/fields/connect-form.d.ts +1 -1
- package/dist/types/view/fields/date-input/index.d.ts +1 -1
- package/dist/types/view/fields/date-picker/index.d.ts +2 -1
- package/dist/types/view/fields/date-picker/index.stories.d.ts +1 -3
- package/dist/types/view/fields/form-item-layout/index.d.ts +1 -1
- package/dist/types/view/fields/form-layout-block-item/index.d.ts +8 -0
- package/dist/types/view/{header → fields/form-layout-block-item}/index.stories.d.ts +2 -2
- package/dist/types/view/fields/input-mask/index.d.ts +2 -2
- package/dist/types/view/fields/input-mask/index.stories.d.ts +1 -3
- package/dist/types/view/fields/large-text-box/index.d.ts +1 -1
- package/dist/types/view/fields/large-text-box/index.stories.d.ts +1 -3
- package/dist/types/view/fields/radio/index.d.ts +2 -2
- package/dist/types/view/fields/radio/index.stories.d.ts +1 -3
- package/dist/types/view/fields/radio-group/index.d.ts +1 -1
- package/dist/types/view/fields/text-box/index.d.ts +1 -1
- package/dist/types/view/fields/watch-value.d.ts +2 -2
- package/dist/types/view/form/personal-info-section.d.ts +3 -3
- package/dist/types/view/form/submit-button/index.d.ts +2 -1
- package/dist/types/view/live-message/index.d.ts +1 -1
- package/dist/types/view/login/index.d.ts +1 -2
- package/dist/types/view/micro-app/app-factory/index.d.ts +2 -2
- package/dist/types/view/micro-app/resources/manifest.d.ts +2 -2
- package/dist/types/view/modals/error/index.d.ts +3 -2
- package/dist/types/view/modals/navigation-prompt/index.d.ts +0 -1
- package/dist/types/view/modals/session-expiry/index.d.ts +0 -1
- package/dist/types/view/modals/wait-message/index.stories.d.ts +6 -2
- package/dist/types/view/modals/wait-message/use-html-wait-message.d.ts +1 -0
- package/dist/types/view/modals/wait-message/wait-message-launcher.d.ts +1 -2
- package/dist/types/view/page.d.ts +8 -0
- package/dist/types/view/require-auth.d.ts +8 -0
- package/dist/types/view/session-timeout/index.d.ts +1 -1
- package/dist/types/view/session-timeout/index.stories.d.ts +1 -4
- package/dist/types/view/use-window-size-change.d.ts +1 -0
- package/package.json +67 -36
- package/dist/cjs/communication/http-client/tests/index.test-disable.js +0 -64
- package/dist/cjs/route/index.js +0 -49
- package/dist/cjs/route/page-view.js +0 -38
- package/dist/cjs/route/private-route/index.js +0 -69
- package/dist/cjs/view/header/center-region/index.js +0 -65
- package/dist/cjs/view/header/index.js +0 -44
- package/dist/cjs/view/header/logo-region/index.js +0 -33
- package/dist/cjs/view/header/logo-region/logo.svg +0 -2
- package/dist/cjs/view/header/nav-region/index.js +0 -47
- package/dist/cjs/view/header/nav-region/notification/index.js +0 -32
- package/dist/cjs/view/header/nav-region/notification/index.svg +0 -5
- package/dist/cjs/view/header/nav-region/user/index.js +0 -32
- package/dist/cjs/view/header/nav-region/user/index.svg +0 -4
- package/dist/es/analytics/appdynamics.js +0 -18
- package/dist/es/analytics/index.js +0 -27
- package/dist/es/analytics/web-analytics.js +0 -14
- package/dist/es/communication/http-client/index.js +0 -35
- package/dist/es/communication/http-client/tests/index.test-disable.js +0 -46
- package/dist/es/data/reducers.js +0 -18
- package/dist/es/package.json +0 -1
- package/dist/es/route/index.js +0 -26
- package/dist/es/route/private-route/index.js +0 -46
- package/dist/es/sideeffect/auth/index.js +0 -47
- package/dist/es/sideeffect/error-toast/index.js +0 -25
- package/dist/es/sideeffect/wait-message/index.js +0 -38
- package/dist/es/utils/storybook/theme.js +0 -13
- package/dist/es/utils/testing/index.js +0 -22
- package/dist/es/utils/testing/render-with-redux.js +0 -17
- package/dist/es/utils/testing/render-with-router-redux.js +0 -23
- package/dist/es/utils/testing/render-with-router.js +0 -16
- package/dist/es/utils/testing/render-with-state-addons.js +0 -38
- package/dist/es/view/app-root/hosted-app.js +0 -15
- package/dist/es/view/app-root/stand-alone-app.js +0 -21
- package/dist/es/view/error-boundary/default-error-template.js +0 -5
- package/dist/es/view/error-boundary/index.js +0 -36
- package/dist/es/view/error-toast/index.js +0 -35
- package/dist/es/view/fetch-host-app-data/store.js +0 -12
- package/dist/es/view/fields/check-box/index.js +0 -25
- package/dist/es/view/fields/combo-box/index.js +0 -28
- package/dist/es/view/fields/connect-form.js +0 -10
- package/dist/es/view/fields/date-input/index.js +0 -22
- package/dist/es/view/fields/date-picker/index.js +0 -22
- package/dist/es/view/fields/form-item-layout/index.js +0 -23
- package/dist/es/view/fields/input-mask/index.js +0 -28
- package/dist/es/view/fields/large-text-box/index.js +0 -22
- package/dist/es/view/fields/radio/index.js +0 -24
- package/dist/es/view/fields/radio-group/index.js +0 -21
- package/dist/es/view/fields/text-box/index.js +0 -22
- package/dist/es/view/fields/watch-value.js +0 -21
- package/dist/es/view/form/index.js +0 -33
- package/dist/es/view/form/submit-button/index.js +0 -19
- package/dist/es/view/header/center-region/index.js +0 -42
- package/dist/es/view/header/index.js +0 -21
- package/dist/es/view/header/logo-region/index.js +0 -10
- package/dist/es/view/header/logo-region/logo.svg +0 -2
- package/dist/es/view/header/nav-region/index.js +0 -24
- package/dist/es/view/header/nav-region/notification/index.js +0 -9
- package/dist/es/view/header/nav-region/notification/index.svg +0 -5
- package/dist/es/view/header/nav-region/user/index.js +0 -9
- package/dist/es/view/header/nav-region/user/index.svg +0 -4
- package/dist/es/view/loadable/index.js +0 -14
- package/dist/es/view/micro-iframe-app/app.js +0 -27
- package/dist/es/view/micro-iframe-app/iframe/index.js +0 -35
- package/dist/es/view/micro-iframe-app/index.js +0 -26
- package/dist/es/view/modals/error/index.js +0 -24
- package/dist/es/view/modals/navigation-prompt/index.js +0 -22
- package/dist/es/view/modals/session-expiry/index.js +0 -40
- package/dist/es/view/modals/wait-message/html-wait-message.js +0 -13
- package/dist/es/view/modals/wait-message/index.js +0 -36
- package/dist/es/view/visually-hidden/index.js +0 -22
- package/dist/types/route/index.d.ts +0 -8
- package/dist/types/route/page-view.d.ts +0 -1
- package/dist/types/route/private-route/index.d.ts +0 -8
- package/dist/types/view/header/center-region/index.d.ts +0 -9
- package/dist/types/view/header/index.d.ts +0 -7
- package/dist/types/view/header/logo-region/index.d.ts +0 -2
- package/dist/types/view/header/nav-region/index.d.ts +0 -2
- package/dist/types/view/header/nav-region/notification/index.d.ts +0 -2
- package/dist/types/view/header/nav-region/user/index.d.ts +0 -2
- package/dist/types/view/media-breakpoint/index.d.ts +0 -2
- package/dist/types/view/modals/wait-message/html-wait-message.d.ts +0 -6
- package/dist/types/view/useMediaBreakpoints/index.d.ts +0 -1
- package/dist/types/view/window-size/index.d.ts +0 -2
|
@@ -7,10 +7,9 @@ const initServiceWorker = (swDest = "") => {
|
|
|
7
7
|
navigator.serviceWorker.register(`${swDest.replace(/\/?$/, "/")}sw.js`).then(() => {
|
|
8
8
|
logger.debug("Service Worker registered");
|
|
9
9
|
}).catch((registrationError) => {
|
|
10
|
-
logger.error({
|
|
11
|
-
...logRecords.SERVICE_WORKER_FAILED,
|
|
10
|
+
logger.error(__spreadProps(__spreadValues({}, logRecords.SERVICE_WORKER_FAILED), {
|
|
12
11
|
exception: registrationError
|
|
13
|
-
});
|
|
12
|
+
}));
|
|
14
13
|
});
|
|
15
14
|
});
|
|
16
15
|
}
|
|
@@ -10,12 +10,12 @@ const userInteractionEvents = ["click", "scroll", "keypress", "touchstart"];
|
|
|
10
10
|
let sessionExpiryWarningNotified = false;
|
|
11
11
|
let timerHandle;
|
|
12
12
|
let sessionExpiryWarningNotifiedAt;
|
|
13
|
-
const resetUserIdleTime = () => {
|
|
13
|
+
const resetUserIdleTime = (resetWarningModal = false) => {
|
|
14
14
|
sessionExpiryWarningNotified = false;
|
|
15
15
|
sessionExpiryWarningNotifiedAt = null;
|
|
16
16
|
lastUserActivityTimeStamp = Date.now();
|
|
17
17
|
Promise.resolve().then(() => {
|
|
18
|
-
resetListeners.forEach((listener) => listener());
|
|
18
|
+
resetListeners.forEach((listener) => listener(resetWarningModal));
|
|
19
19
|
}).catch(() => {
|
|
20
20
|
});
|
|
21
21
|
};
|
|
File without changes
|
|
@@ -5,9 +5,6 @@ import { loadAppConfig } from "../app-config/index.js";
|
|
|
5
5
|
import { createTheme } from "./theme.js";
|
|
6
6
|
import { browserHistory } from "../history.js";
|
|
7
7
|
import "@elliemae/ds-basic/css/dimsum.css";
|
|
8
|
-
(async () => {
|
|
9
|
-
await loadAppConfig(__webpack_public_path__);
|
|
10
|
-
})();
|
|
11
8
|
const theme = getDefaultTheme();
|
|
12
9
|
const store = createAppStore({}, browserHistory);
|
|
13
10
|
const appDecorator = withAppDecorator.bind(null, theme, store);
|
|
@@ -42,7 +39,13 @@ const getParameters = (storyBookTheme) => ({
|
|
|
42
39
|
}
|
|
43
40
|
});
|
|
44
41
|
const decorators = [appDecorator];
|
|
42
|
+
const loaders = [
|
|
43
|
+
async () => {
|
|
44
|
+
await loadAppConfig(__webpack_public_path__ || "./");
|
|
45
|
+
}
|
|
46
|
+
];
|
|
45
47
|
export {
|
|
46
48
|
decorators,
|
|
47
|
-
getParameters
|
|
49
|
+
getParameters,
|
|
50
|
+
loaders
|
|
48
51
|
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
+
var __spreadValues = (a, b) => {
|
|
7
|
+
for (var prop in b || (b = {}))
|
|
8
|
+
if (__hasOwnProp.call(b, prop))
|
|
9
|
+
__defNormalProp(a, prop, b[prop]);
|
|
10
|
+
if (__getOwnPropSymbols)
|
|
11
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
12
|
+
if (__propIsEnum.call(b, prop))
|
|
13
|
+
__defNormalProp(a, prop, b[prop]);
|
|
14
|
+
}
|
|
15
|
+
return a;
|
|
16
|
+
};
|
|
17
|
+
var __objRest = (source, exclude) => {
|
|
18
|
+
var target = {};
|
|
19
|
+
for (var prop in source)
|
|
20
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
21
|
+
target[prop] = source[prop];
|
|
22
|
+
if (source != null && __getOwnPropSymbols)
|
|
23
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
24
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
25
|
+
target[prop] = source[prop];
|
|
26
|
+
}
|
|
27
|
+
return target;
|
|
28
|
+
};
|
|
29
|
+
import { create } from "@storybook/theming/create";
|
|
30
|
+
const createTheme = (_a) => {
|
|
31
|
+
var _b = _a, {
|
|
32
|
+
base = "light",
|
|
33
|
+
brandTitle = "Platform UI Components"
|
|
34
|
+
} = _b, rest = __objRest(_b, [
|
|
35
|
+
"base",
|
|
36
|
+
"brandTitle"
|
|
37
|
+
]);
|
|
38
|
+
return create(__spreadValues({
|
|
39
|
+
base,
|
|
40
|
+
brandTitle: `${brandTitle} ${process.env.STORYBOOK_VERSION || ""}`
|
|
41
|
+
}, rest));
|
|
42
|
+
};
|
|
43
|
+
export {
|
|
44
|
+
createTheme
|
|
45
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
+
var __spreadValues = (a, b) => {
|
|
7
|
+
for (var prop in b || (b = {}))
|
|
8
|
+
if (__hasOwnProp.call(b, prop))
|
|
9
|
+
__defNormalProp(a, prop, b[prop]);
|
|
10
|
+
if (__getOwnPropSymbols)
|
|
11
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
12
|
+
if (__propIsEnum.call(b, prop))
|
|
13
|
+
__defNormalProp(a, prop, b[prop]);
|
|
14
|
+
}
|
|
15
|
+
return a;
|
|
16
|
+
};
|
|
17
|
+
import * as React from "react";
|
|
18
|
+
import { render } from "@testing-library/react";
|
|
19
|
+
import { getDefaultTheme } from "@elliemae/pui-theme";
|
|
20
|
+
import { createAppStore } from "../../data/store.js";
|
|
21
|
+
import { AppRoot } from "../../view/app-root/index.js";
|
|
22
|
+
import { browserHistory } from "../history.js";
|
|
23
|
+
const defaultStore = createAppStore({}, browserHistory);
|
|
24
|
+
const defaultTheme = getDefaultTheme();
|
|
25
|
+
const AllTheProviders = ({
|
|
26
|
+
store = defaultStore,
|
|
27
|
+
theme = defaultTheme,
|
|
28
|
+
children
|
|
29
|
+
}) => /* @__PURE__ */ React.createElement(AppRoot, {
|
|
30
|
+
store,
|
|
31
|
+
history: browserHistory,
|
|
32
|
+
theme
|
|
33
|
+
}, children);
|
|
34
|
+
const customRender = (ui, options) => render(ui, __spreadValues({ wrapper: AllTheProviders }, options));
|
|
35
|
+
export * from "@testing-library/react";
|
|
36
|
+
export {
|
|
37
|
+
customRender as render
|
|
38
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
import * as React from "react";
|
|
21
|
+
import { render } from "@testing-library/react";
|
|
22
|
+
import { Provider } from "react-redux";
|
|
23
|
+
import { createAppStore } from "../../data/store.js";
|
|
24
|
+
import { browserHistory } from "../history.js";
|
|
25
|
+
const renderWithRedux = (ui, {
|
|
26
|
+
initialState,
|
|
27
|
+
store = createAppStore(initialState, browserHistory)
|
|
28
|
+
} = {}) => __spreadProps(__spreadValues({}, render(/* @__PURE__ */ React.createElement(Provider, {
|
|
29
|
+
store
|
|
30
|
+
}, ui))), {
|
|
31
|
+
store
|
|
32
|
+
});
|
|
33
|
+
export {
|
|
34
|
+
renderWithRedux
|
|
35
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
import * as React from "react";
|
|
21
|
+
import { render } from "@testing-library/react";
|
|
22
|
+
import { Provider } from "react-redux";
|
|
23
|
+
import { createMemoryHistory } from "history";
|
|
24
|
+
import { createAppStore } from "../../data/store.js";
|
|
25
|
+
import { browserHistory } from "../history.js";
|
|
26
|
+
import { AppRouter } from "../../view/app-router.js";
|
|
27
|
+
const renderWithRouterRedux = (ui, {
|
|
28
|
+
route = "/",
|
|
29
|
+
history = createMemoryHistory({ initialEntries: [route] }),
|
|
30
|
+
initialState,
|
|
31
|
+
store = createAppStore(initialState, browserHistory)
|
|
32
|
+
} = {}) => __spreadProps(__spreadValues({}, render(/* @__PURE__ */ React.createElement(Provider, {
|
|
33
|
+
store
|
|
34
|
+
}, /* @__PURE__ */ React.createElement(AppRouter, {
|
|
35
|
+
history
|
|
36
|
+
}, ui)))), {
|
|
37
|
+
store
|
|
38
|
+
});
|
|
39
|
+
export {
|
|
40
|
+
renderWithRouterRedux
|
|
41
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
import * as React from "react";
|
|
21
|
+
import { render } from "@testing-library/react";
|
|
22
|
+
import { createMemoryHistory } from "history";
|
|
23
|
+
import { AppRouter } from "../../view/app-router.js";
|
|
24
|
+
const renderWithRouter = (ui, {
|
|
25
|
+
route = "/",
|
|
26
|
+
history = createMemoryHistory({ initialEntries: [route] })
|
|
27
|
+
} = {}) => {
|
|
28
|
+
const renderResult = render(/* @__PURE__ */ React.createElement(AppRouter, {
|
|
29
|
+
history
|
|
30
|
+
}, ui));
|
|
31
|
+
return __spreadProps(__spreadValues({}, renderResult), {
|
|
32
|
+
history
|
|
33
|
+
});
|
|
34
|
+
};
|
|
35
|
+
export {
|
|
36
|
+
renderWithRouter
|
|
37
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
+
var __spreadValues = (a, b) => {
|
|
7
|
+
for (var prop in b || (b = {}))
|
|
8
|
+
if (__hasOwnProp.call(b, prop))
|
|
9
|
+
__defNormalProp(a, prop, b[prop]);
|
|
10
|
+
if (__getOwnPropSymbols)
|
|
11
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
12
|
+
if (__propIsEnum.call(b, prop))
|
|
13
|
+
__defNormalProp(a, prop, b[prop]);
|
|
14
|
+
}
|
|
15
|
+
return a;
|
|
16
|
+
};
|
|
17
|
+
var __objRest = (source, exclude) => {
|
|
18
|
+
var target = {};
|
|
19
|
+
for (var prop in source)
|
|
20
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
21
|
+
target[prop] = source[prop];
|
|
22
|
+
if (source != null && __getOwnPropSymbols)
|
|
23
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
24
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
25
|
+
target[prop] = source[prop];
|
|
26
|
+
}
|
|
27
|
+
return target;
|
|
28
|
+
};
|
|
29
|
+
import * as React from "react";
|
|
30
|
+
import { useEffect, useState } from "react";
|
|
31
|
+
import { ThemeProvider } from "styled-components";
|
|
32
|
+
import { getDefaultTheme } from "@elliemae/pui-theme";
|
|
33
|
+
import {
|
|
34
|
+
useInjectReducer,
|
|
35
|
+
useInjectSaga
|
|
36
|
+
} from "redux-injectors";
|
|
37
|
+
const RenderWithStateAddOns = (_a) => {
|
|
38
|
+
var _b = _a, {
|
|
39
|
+
Component,
|
|
40
|
+
reducer,
|
|
41
|
+
saga,
|
|
42
|
+
theme = getDefaultTheme()
|
|
43
|
+
} = _b, rest = __objRest(_b, [
|
|
44
|
+
"Component",
|
|
45
|
+
"reducer",
|
|
46
|
+
"saga",
|
|
47
|
+
"theme"
|
|
48
|
+
]);
|
|
49
|
+
const [ready, setReady] = useState(false);
|
|
50
|
+
if (Array.isArray(reducer)) {
|
|
51
|
+
reducer.forEach((r) => useInjectReducer(r));
|
|
52
|
+
} else {
|
|
53
|
+
useInjectReducer(reducer);
|
|
54
|
+
}
|
|
55
|
+
if (Array.isArray(saga)) {
|
|
56
|
+
saga.forEach((s) => useInjectSaga(s));
|
|
57
|
+
} else if (saga) {
|
|
58
|
+
useInjectSaga(saga);
|
|
59
|
+
}
|
|
60
|
+
useEffect(() => {
|
|
61
|
+
setReady(true);
|
|
62
|
+
}, []);
|
|
63
|
+
return ready ? /* @__PURE__ */ React.createElement(ThemeProvider, {
|
|
64
|
+
theme
|
|
65
|
+
}, /* @__PURE__ */ React.createElement(Component, __spreadValues({}, rest))) : null;
|
|
66
|
+
};
|
|
67
|
+
export {
|
|
68
|
+
RenderWithStateAddOns
|
|
69
|
+
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import styled from "styled-components";
|
|
3
|
+
import { useBreakpoint } from "../breakpoint/use-breakpoint.js";
|
|
4
|
+
import { useWindowSizeChange } from "../use-window-size-change.js";
|
|
5
|
+
import { useHTMLWaitMessage } from "../modals/wait-message/use-html-wait-message.js";
|
|
6
|
+
import GlobalStyle from "./style.js";
|
|
7
|
+
const Div = styled.div`
|
|
8
|
+
height: 100%;
|
|
9
|
+
`;
|
|
10
|
+
const HostedApp = ({ children }) => {
|
|
11
|
+
useBreakpoint();
|
|
12
|
+
useHTMLWaitMessage(true);
|
|
13
|
+
useWindowSizeChange();
|
|
14
|
+
return /* @__PURE__ */ React.createElement(Div, null, /* @__PURE__ */ React.createElement(GlobalStyle, null), children);
|
|
15
|
+
};
|
|
16
|
+
export {
|
|
17
|
+
HostedApp
|
|
18
|
+
};
|
|
@@ -1,9 +1,25 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
+
var __spreadValues = (a, b) => {
|
|
7
|
+
for (var prop in b || (b = {}))
|
|
8
|
+
if (__hasOwnProp.call(b, prop))
|
|
9
|
+
__defNormalProp(a, prop, b[prop]);
|
|
10
|
+
if (__getOwnPropSymbols)
|
|
11
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
12
|
+
if (__propIsEnum.call(b, prop))
|
|
13
|
+
__defNormalProp(a, prop, b[prop]);
|
|
14
|
+
}
|
|
15
|
+
return a;
|
|
16
|
+
};
|
|
1
17
|
import * as React from "react";
|
|
2
18
|
import { Provider } from "react-redux";
|
|
3
19
|
import { ThemeProvider } from "styled-components";
|
|
4
|
-
import { Router } from "react-router-dom";
|
|
5
20
|
import { getDefaultTheme } from "@elliemae/pui-theme";
|
|
6
21
|
import { useInjectSaga } from "redux-injectors";
|
|
22
|
+
import { AppRouter } from "../app-router.js";
|
|
7
23
|
import { isStandAloneGuest, isHost } from "../../utils/micro-frontend/index.js";
|
|
8
24
|
import { waitMessage } from "../../sideeffect/wait-message/index.js";
|
|
9
25
|
import { errorToast } from "../../sideeffect/error-toast/index.js";
|
|
@@ -14,11 +30,7 @@ const AppToRender = (props) => {
|
|
|
14
30
|
useInjectSaga({ key: "waitMessage", saga: waitMessage });
|
|
15
31
|
useInjectSaga({ key: "errorToast", saga: errorToast });
|
|
16
32
|
const isParent = isStandAloneGuest() || isHost();
|
|
17
|
-
return isParent ? /* @__PURE__ */ React.createElement(StandAloneApp, {
|
|
18
|
-
...props
|
|
19
|
-
}) : /* @__PURE__ */ React.createElement(HostedApp, {
|
|
20
|
-
...props
|
|
21
|
-
});
|
|
33
|
+
return isParent ? /* @__PURE__ */ React.createElement(StandAloneApp, __spreadValues({}, props)) : /* @__PURE__ */ React.createElement(HostedApp, __spreadValues({}, props));
|
|
22
34
|
};
|
|
23
35
|
const AppRoot = ({
|
|
24
36
|
store,
|
|
@@ -32,7 +44,7 @@ const AppRoot = ({
|
|
|
32
44
|
errorTemplate
|
|
33
45
|
}, /* @__PURE__ */ React.createElement(Provider, {
|
|
34
46
|
store
|
|
35
|
-
}, /* @__PURE__ */ React.createElement(
|
|
47
|
+
}, /* @__PURE__ */ React.createElement(AppRouter, {
|
|
36
48
|
history
|
|
37
49
|
}, /* @__PURE__ */ React.createElement(ThemeProvider, {
|
|
38
50
|
theme
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import styled from "styled-components";
|
|
3
|
+
import { LiveAnnouncer } from "react-aria-live";
|
|
4
|
+
import { useBreakpoint } from "../breakpoint/use-breakpoint.js";
|
|
5
|
+
import { useWindowSizeChange } from "../use-window-size-change.js";
|
|
6
|
+
import { SessionTimeout } from "../session-timeout/index.js";
|
|
7
|
+
import { LiveMessage } from "../live-message/index.js";
|
|
8
|
+
import { ErrorToast } from "../error-toast/index.js";
|
|
9
|
+
import { WaitMessage as DefaultWaitMessage } from "../modals/wait-message/index.js";
|
|
10
|
+
import GlobalStyle from "./style.js";
|
|
11
|
+
const Div = styled.div`
|
|
12
|
+
height: 100%;
|
|
13
|
+
`;
|
|
14
|
+
const StandAloneApp = ({
|
|
15
|
+
manageSession,
|
|
16
|
+
WaitMessage,
|
|
17
|
+
children
|
|
18
|
+
}) => {
|
|
19
|
+
useBreakpoint();
|
|
20
|
+
useWindowSizeChange();
|
|
21
|
+
return /* @__PURE__ */ React.createElement(LiveAnnouncer, null, /* @__PURE__ */ React.createElement(Div, null, /* @__PURE__ */ React.createElement(GlobalStyle, null), manageSession && /* @__PURE__ */ React.createElement(SessionTimeout, null), /* @__PURE__ */ React.createElement(LiveMessage, null), WaitMessage || /* @__PURE__ */ React.createElement(DefaultWaitMessage, null), /* @__PURE__ */ React.createElement(ErrorToast, null), children));
|
|
22
|
+
};
|
|
23
|
+
export {
|
|
24
|
+
StandAloneApp
|
|
25
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
var __objRest = (source, exclude) => {
|
|
21
|
+
var target = {};
|
|
22
|
+
for (var prop in source)
|
|
23
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
24
|
+
target[prop] = source[prop];
|
|
25
|
+
if (source != null && __getOwnPropSymbols)
|
|
26
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
27
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
28
|
+
target[prop] = source[prop];
|
|
29
|
+
}
|
|
30
|
+
return target;
|
|
31
|
+
};
|
|
32
|
+
import * as React from "react";
|
|
33
|
+
import { useState, useLayoutEffect } from "react";
|
|
34
|
+
import { Router } from "react-router-dom";
|
|
35
|
+
const AppRouter = (_a) => {
|
|
36
|
+
var _b = _a, { history } = _b, props = __objRest(_b, ["history"]);
|
|
37
|
+
const [state, setState] = useState({
|
|
38
|
+
action: history.action,
|
|
39
|
+
location: history.location
|
|
40
|
+
});
|
|
41
|
+
useLayoutEffect(() => history.listen(setState), [history]);
|
|
42
|
+
return /* @__PURE__ */ React.createElement(Router, __spreadProps(__spreadValues({}, props), {
|
|
43
|
+
location: state.location,
|
|
44
|
+
navigationType: state.action,
|
|
45
|
+
navigator: history
|
|
46
|
+
}));
|
|
47
|
+
};
|
|
48
|
+
export {
|
|
49
|
+
AppRouter
|
|
50
|
+
};
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
1
|
import { useEffect, useContext } from "react";
|
|
3
2
|
import { ThemeContext } from "styled-components";
|
|
4
3
|
import { publish } from "pubsub-js";
|
|
5
4
|
import { useAppDispatch } from "../../data/react-redux.js";
|
|
6
5
|
import { breakpoint } from "../../data/breakpoint/index.js";
|
|
7
|
-
import {
|
|
6
|
+
import { useMediaQueryList } from "./use-media-query-list.js";
|
|
8
7
|
import { HOST_WINDOW_BREAKPOINT_CHANGED } from "../../utils/constants.js";
|
|
9
|
-
const
|
|
8
|
+
const useBreakpoint = () => {
|
|
10
9
|
const theme = useContext(ThemeContext);
|
|
11
|
-
const currentBreakpoint =
|
|
10
|
+
const currentBreakpoint = useMediaQueryList([
|
|
12
11
|
`(max-width: ${theme.breakpoints.small})`,
|
|
13
12
|
`(max-width: ${theme.breakpoints.medium})`,
|
|
14
13
|
`(max-width: ${theme.breakpoints.large})`
|
|
@@ -18,8 +17,7 @@ const MediaBreakpoint = () => {
|
|
|
18
17
|
dispatch({ type: breakpoint.change, payload: currentBreakpoint });
|
|
19
18
|
publish(HOST_WINDOW_BREAKPOINT_CHANGED, currentBreakpoint);
|
|
20
19
|
}, [currentBreakpoint, dispatch]);
|
|
21
|
-
return /* @__PURE__ */ React.createElement(React.Fragment, null);
|
|
22
20
|
};
|
|
23
21
|
export {
|
|
24
|
-
|
|
22
|
+
useBreakpoint
|
|
25
23
|
};
|
package/dist/{es/view/useMediaBreakpoints/index.js → esm/view/breakpoint/use-media-query-list.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useState, useEffect, useCallback } from "react";
|
|
2
|
-
const
|
|
2
|
+
const useMediaQueryList = (queries, values, defaultValue) => {
|
|
3
3
|
const mediaQueryLists = queries.map((q) => window.matchMedia(q));
|
|
4
4
|
const getValue = useCallback(() => {
|
|
5
5
|
const index = mediaQueryLists.findIndex((mql) => mql.matches);
|
|
@@ -8,11 +8,11 @@ const useMediaBreakpoints = (queries, values, defaultValue) => {
|
|
|
8
8
|
const [value, setValue] = useState(getValue);
|
|
9
9
|
useEffect(() => {
|
|
10
10
|
const handler = () => setValue(getValue);
|
|
11
|
-
mediaQueryLists.forEach((mql) => mql.
|
|
12
|
-
return () => mediaQueryLists.forEach((mql) => mql.
|
|
11
|
+
mediaQueryLists.forEach((mql) => mql.addEventListener("change", handler));
|
|
12
|
+
return () => mediaQueryLists.forEach((mql) => mql.removeEventListener("change", handler));
|
|
13
13
|
}, [getValue, mediaQueryLists]);
|
|
14
14
|
return value;
|
|
15
15
|
};
|
|
16
16
|
export {
|
|
17
|
-
|
|
17
|
+
useMediaQueryList
|
|
18
18
|
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
const DefaultErrorTemplate = (props) => /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement("h2", null, "We are unable to process your request"), /* @__PURE__ */ React.createElement("section", null, "Please close your browser and login again"));
|
|
3
|
+
export {
|
|
4
|
+
DefaultErrorTemplate
|
|
5
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
import React from "react";
|
|
21
|
+
import {
|
|
22
|
+
DefaultErrorTemplate
|
|
23
|
+
} from "./default-error-template.js";
|
|
24
|
+
import { getLogger } from "../../utils/micro-frontend/index.js";
|
|
25
|
+
import { logRecords } from "../../utils/log-records.js";
|
|
26
|
+
class ErrorBoundary extends React.Component {
|
|
27
|
+
constructor(props) {
|
|
28
|
+
super(props);
|
|
29
|
+
this.state = { error: null, errorInfo: null };
|
|
30
|
+
}
|
|
31
|
+
componentDidCatch(error, errorInfo) {
|
|
32
|
+
this.setState({
|
|
33
|
+
error,
|
|
34
|
+
errorInfo
|
|
35
|
+
});
|
|
36
|
+
const logger = getLogger();
|
|
37
|
+
if (logger)
|
|
38
|
+
logger.error(__spreadProps(__spreadValues({}, logRecords.UNHANDLED_ERROR), {
|
|
39
|
+
exception: error
|
|
40
|
+
}));
|
|
41
|
+
}
|
|
42
|
+
render() {
|
|
43
|
+
const { children, errorTemplate } = this.props;
|
|
44
|
+
const ErrorTemplate = errorTemplate || DefaultErrorTemplate;
|
|
45
|
+
const { error, errorInfo } = this.state;
|
|
46
|
+
return errorInfo ? /* @__PURE__ */ React.createElement(ErrorTemplate, {
|
|
47
|
+
error,
|
|
48
|
+
errorInfo
|
|
49
|
+
}) : children;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
export {
|
|
53
|
+
ErrorBoundary
|
|
54
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
+
var __spreadValues = (a, b) => {
|
|
7
|
+
for (var prop in b || (b = {}))
|
|
8
|
+
if (__hasOwnProp.call(b, prop))
|
|
9
|
+
__defNormalProp(a, prop, b[prop]);
|
|
10
|
+
if (__getOwnPropSymbols)
|
|
11
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
12
|
+
if (__propIsEnum.call(b, prop))
|
|
13
|
+
__defNormalProp(a, prop, b[prop]);
|
|
14
|
+
}
|
|
15
|
+
return a;
|
|
16
|
+
};
|
|
17
|
+
import * as React from "react";
|
|
18
|
+
import { useEffect, memo } from "react";
|
|
19
|
+
import { ToastPosition, ToastType, DSToast, toast } from "@elliemae/ds-toast";
|
|
20
|
+
import { useAppSelector, useAppDispatch } from "../../data/react-redux.js";
|
|
21
|
+
import { actions as error } from "../../data/error/index.js";
|
|
22
|
+
const ErrorToast = memo((props) => {
|
|
23
|
+
const storeError = useAppSelector((state) => state?.error);
|
|
24
|
+
const dispatch = useAppDispatch();
|
|
25
|
+
useEffect(() => {
|
|
26
|
+
if (storeError && (storeError?.description || storeError?.messageText)) {
|
|
27
|
+
const toastProps = __spreadValues(__spreadValues({
|
|
28
|
+
position: ToastPosition.TOP_RIGHT,
|
|
29
|
+
messageTitle: "Error",
|
|
30
|
+
type: ToastType.ERROR
|
|
31
|
+
}, props), storeError);
|
|
32
|
+
const messageText = toastProps.description || toastProps.messageText;
|
|
33
|
+
if (messageText)
|
|
34
|
+
toast(__spreadValues({ messageText }, toastProps));
|
|
35
|
+
dispatch(error.clear());
|
|
36
|
+
}
|
|
37
|
+
}, [storeError, props, dispatch]);
|
|
38
|
+
return /* @__PURE__ */ React.createElement(DSToast, __spreadValues({}, props));
|
|
39
|
+
});
|
|
40
|
+
export {
|
|
41
|
+
ErrorToast
|
|
42
|
+
};
|
|
File without changes
|