@elliemae/pui-app-sdk 3.0.0-beta.9 → 3.1.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 +13 -12
- 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 +14 -13
- package/dist/cjs/package.json +7 -1
- package/dist/cjs/sideeffect/auth/index.js +36 -20
- package/dist/cjs/sideeffect/error-toast/index.js +34 -17
- package/dist/cjs/sideeffect/wait-message/index.js +36 -20
- package/dist/cjs/utils/app-config/config.js +14 -8
- package/dist/cjs/utils/app-config/index.js +17 -11
- package/dist/cjs/utils/app-host-integration/react.js +11 -10
- package/dist/cjs/utils/auth/helper.js +13 -7
- package/dist/cjs/utils/auth/index.js +42 -25
- package/dist/cjs/utils/await.js +18 -1
- package/dist/cjs/utils/constants.js +19 -2
- package/dist/cjs/utils/font-size.js +19 -2
- package/dist/cjs/utils/guest-with-service.js +19 -2
- package/dist/cjs/utils/helpers.js +20 -3
- package/dist/cjs/utils/history.js +11 -10
- package/dist/cjs/utils/log-records.js +19 -2
- package/dist/cjs/utils/micro-frontend/console-logger.js +12 -11
- package/dist/cjs/utils/micro-frontend/guest.js +26 -19
- package/dist/cjs/utils/micro-frontend/host.js +30 -29
- package/dist/cjs/utils/micro-frontend/index.js +17 -11
- package/dist/cjs/utils/micro-frontend/types.js +18 -1
- package/dist/cjs/utils/redact-pii.js +19 -2
- package/dist/cjs/utils/service-worker.js +14 -14
- package/dist/cjs/utils/session.js +15 -14
- package/dist/cjs/utils/storybook/manager.js +12 -11
- package/dist/cjs/utils/storybook/preview.js +24 -19
- package/dist/cjs/utils/storybook/theme.js +50 -19
- package/dist/cjs/utils/testing/index.js +34 -14
- package/dist/cjs/utils/testing/render-with-redux.js +37 -15
- package/dist/cjs/utils/testing/render-with-router-redux.js +41 -19
- package/dist/cjs/utils/testing/render-with-router.js +40 -15
- package/dist/cjs/utils/testing/render-with-state-addons.js +56 -21
- package/dist/cjs/utils/types.js +18 -1
- package/dist/cjs/utils/url.js +19 -2
- package/dist/cjs/utils/web-storage.js +13 -7
- package/dist/cjs/utils/window.js +11 -10
- package/dist/cjs/view/app-root/hosted-app.js +26 -15
- package/dist/cjs/view/app-root/index.js +37 -26
- package/dist/cjs/view/app-root/stand-alone-app.js +27 -17
- package/dist/cjs/view/app-root/style.js +11 -10
- package/dist/cjs/view/app-router.js +77 -0
- package/dist/cjs/view/{media-breakpoint/index.js → breakpoint/use-breakpoint.js} +20 -21
- package/dist/cjs/view/{useMediaBreakpoints/index.js → breakpoint/use-media-query-list.js} +15 -14
- package/dist/cjs/view/error-boundary/default-error-template.js +14 -8
- package/dist/cjs/view/error-boundary/index.js +35 -13
- package/dist/cjs/view/error-toast/index.js +36 -20
- package/dist/cjs/view/fetch-host-app-data/index.js +16 -10
- package/dist/cjs/view/fetch-host-app-data/store.js +26 -11
- package/dist/cjs/view/fields/check-box/index.js +57 -26
- package/dist/cjs/view/fields/combo-box/index.js +68 -28
- package/dist/cjs/view/fields/connect-form.js +26 -13
- package/dist/cjs/view/fields/date-input/index.js +58 -23
- package/dist/cjs/view/fields/date-picker/index.js +58 -23
- package/dist/cjs/view/fields/form-item-layout/index.js +56 -25
- package/dist/cjs/view/fields/form-layout-block-item/index.js +84 -0
- package/dist/cjs/view/fields/input-mask/index.js +58 -24
- package/dist/cjs/view/fields/large-text-box/index.js +58 -23
- package/dist/cjs/view/fields/radio/index.js +67 -25
- package/dist/cjs/view/fields/radio-group/index.js +57 -22
- package/dist/cjs/view/fields/text-box/index.js +58 -23
- package/dist/cjs/view/fields/watch-value.js +19 -11
- package/dist/cjs/view/form/index.js +32 -15
- package/dist/cjs/view/form/personal-info-section.js +46 -36
- package/dist/cjs/view/form/submit-button/index.js +48 -15
- package/dist/cjs/view/guest-unload-handlers/index.js +11 -10
- package/dist/cjs/view/host-binding-events/index.js +19 -2
- package/dist/cjs/view/live-message/index.js +15 -9
- package/dist/cjs/view/loadable/index.js +30 -12
- package/dist/cjs/view/login/index.js +16 -20
- package/dist/cjs/view/message-to-host-app/index.js +11 -10
- package/dist/cjs/view/micro-app/app-factory/index.js +38 -20
- package/dist/cjs/view/micro-app/const.js +19 -2
- package/dist/cjs/view/micro-app/index.js +17 -11
- package/dist/cjs/view/micro-app/resources/manifest.js +14 -13
- package/dist/cjs/view/micro-app/resources/script.js +12 -11
- package/dist/cjs/view/micro-app/resources/style.js +11 -10
- package/dist/cjs/view/micro-app/types.js +18 -1
- package/dist/cjs/view/micro-app/use-app-will-render.js +36 -19
- package/dist/cjs/view/micro-app/utils.js +11 -10
- package/dist/cjs/view/micro-iframe-app/app.js +57 -22
- package/dist/cjs/view/micro-iframe-app/iframe/const.js +19 -2
- package/dist/cjs/view/micro-iframe-app/iframe/index.js +37 -14
- package/dist/cjs/view/micro-iframe-app/index.js +49 -14
- package/dist/cjs/view/micro-iframe-app/types.js +18 -1
- package/dist/cjs/view/micro-iframe-app/use-frame-loaded.js +16 -15
- package/dist/cjs/view/modals/error/index.js +31 -22
- package/dist/cjs/view/modals/navigation-prompt/index.js +39 -22
- package/dist/cjs/view/modals/session-expiry/customHooks.js +14 -13
- package/dist/cjs/view/modals/session-expiry/index.js +39 -30
- package/dist/cjs/view/modals/wait-message/index.js +59 -22
- package/dist/cjs/view/modals/wait-message/{html-wait-message.js → use-html-wait-message.js} +14 -15
- package/dist/cjs/view/modals/wait-message/wait-message-launcher.js +14 -14
- package/dist/cjs/view/page.js +51 -0
- package/dist/cjs/view/render-with-delay/index.js +15 -9
- package/dist/cjs/view/render-with-host-data/index.js +16 -10
- package/dist/cjs/view/require-auth.js +58 -0
- package/dist/cjs/view/session-timeout/index.js +23 -13
- package/dist/cjs/view/storybook/decorator.js +15 -9
- package/dist/cjs/view/use-previous.js +11 -10
- package/dist/cjs/view/{window-size/index.js → use-window-size-change.js} +15 -16
- package/dist/cjs/view/visually-hidden/index.js +32 -13
- package/dist/esm/analytics/appdynamics.js +34 -0
- package/dist/esm/analytics/index.js +43 -0
- package/dist/{es → esm}/analytics/page-view-event.js +0 -0
- package/dist/{es → esm}/analytics/user-session-event.js +0 -0
- package/dist/{es → esm}/analytics/user-wait-event.js +0 -0
- package/dist/esm/analytics/web-analytics.js +30 -0
- package/dist/{es → esm}/api/auth/index.js +0 -0
- package/dist/{es → esm}/api/helpers.js +0 -0
- package/dist/{es → esm}/api/users/index.js +0 -0
- package/dist/{es → esm}/api/users/users.json +0 -0
- package/dist/{es → esm}/app.config.json +0 -0
- package/dist/esm/communication/http-client/index.js +70 -0
- package/dist/{es → esm}/communication/http-client/request-interceptor.js +0 -0
- package/dist/{es → esm}/communication/http-client/response-interceptor.js +0 -0
- package/dist/{es → esm}/communication/http-client/retry-axios.js +1 -1
- package/dist/{es → esm}/communication/http-client/retry.js +0 -0
- package/dist/{es → esm}/data/auth/actions.js +0 -0
- package/dist/{es → esm}/data/auth/reducer.js +0 -0
- package/dist/{es → esm}/data/breakpoint/index.js +0 -0
- package/dist/{es → esm}/data/error/index.js +0 -0
- package/dist/{es → esm}/data/index.js +0 -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/{es → esm}/micro-frontend.js +0 -0
- package/dist/esm/package.json +7 -0
- package/dist/esm/sideeffect/auth/index.js +64 -0
- package/dist/esm/sideeffect/error-toast/index.js +43 -0
- package/dist/esm/sideeffect/wait-message/index.js +55 -0
- package/dist/{es → esm}/utils/app-config/config.js +1 -1
- package/dist/{es → esm}/utils/app-config/index.js +0 -0
- package/dist/{es → esm}/utils/app-host-integration/react.js +0 -0
- package/dist/{es → esm}/utils/auth/helper.js +0 -0
- package/dist/{es → esm}/utils/auth/index.js +25 -7
- package/dist/{es → esm}/utils/await.js +0 -0
- package/dist/{es → esm}/utils/constants.js +0 -0
- package/dist/{es → esm}/utils/font-size.js +0 -0
- package/dist/{es → esm}/utils/guest-with-service.js +0 -0
- package/dist/{es → esm}/utils/helpers.js +1 -1
- package/dist/{es → esm}/utils/history.js +0 -0
- package/dist/{es → esm}/utils/log-records.js +0 -0
- package/dist/{es → esm}/utils/micro-frontend/console-logger.js +0 -0
- package/dist/{es → esm}/utils/micro-frontend/guest.js +2 -1
- package/dist/{es → esm}/utils/micro-frontend/host.js +5 -4
- package/dist/{es → esm}/utils/micro-frontend/index.js +0 -0
- package/dist/{es → esm}/utils/micro-frontend/types.js +0 -0
- package/dist/{es → esm}/utils/redact-pii.js +0 -0
- package/dist/{es → esm}/utils/service-worker.js +2 -3
- package/dist/{es → esm}/utils/session.js +2 -2
- package/dist/{es → esm}/utils/storybook/manager.js +0 -0
- package/dist/{es → esm}/utils/storybook/preview.js +7 -3
- package/dist/esm/utils/storybook/theme.js +45 -0
- package/dist/esm/utils/testing/index.js +38 -0
- package/dist/esm/utils/testing/render-with-redux.js +35 -0
- package/dist/esm/utils/testing/render-with-router-redux.js +41 -0
- package/dist/esm/utils/testing/render-with-router.js +37 -0
- package/dist/esm/utils/testing/render-with-state-addons.js +69 -0
- package/dist/{es → esm}/utils/types.js +0 -0
- package/dist/{es → esm}/utils/url.js +0 -0
- package/dist/{es → esm}/utils/web-storage.js +0 -0
- package/dist/{es → esm}/utils/window.js +0 -0
- package/dist/esm/view/app-root/hosted-app.js +20 -0
- package/dist/{es → esm}/view/app-root/index.js +19 -12
- package/dist/esm/view/app-root/stand-alone-app.js +25 -0
- package/dist/{es → esm}/view/app-root/style.js +0 -0
- package/dist/esm/view/app-router.js +50 -0
- package/dist/{es/view/media-breakpoint/index.js → esm/view/breakpoint/use-breakpoint.js} +4 -6
- package/dist/{es/view/useMediaBreakpoints/index.js → esm/view/breakpoint/use-media-query-list.js} +4 -4
- package/dist/esm/view/error-boundary/default-error-template.js +5 -0
- package/dist/esm/view/error-boundary/index.js +54 -0
- package/dist/esm/view/error-toast/index.js +42 -0
- package/dist/{es → esm}/view/fetch-host-app-data/index.js +0 -0
- package/dist/esm/view/fetch-host-app-data/store.js +28 -0
- package/dist/esm/view/fields/check-box/index.js +52 -0
- package/dist/esm/view/fields/combo-box/index.js +64 -0
- package/dist/esm/view/fields/connect-form.js +24 -0
- package/dist/esm/view/fields/date-input/index.js +53 -0
- package/dist/esm/view/fields/date-picker/index.js +53 -0
- package/dist/esm/view/fields/form-item-layout/index.js +50 -0
- package/dist/esm/view/fields/form-layout-block-item/index.js +57 -0
- package/dist/esm/view/fields/input-mask/index.js +59 -0
- package/dist/esm/view/fields/large-text-box/index.js +53 -0
- package/dist/esm/view/fields/radio/index.js +62 -0
- package/dist/esm/view/fields/radio-group/index.js +52 -0
- package/dist/esm/view/fields/text-box/index.js +53 -0
- package/dist/esm/view/fields/watch-value.js +23 -0
- package/dist/esm/view/form/index.js +46 -0
- package/dist/{es → esm}/view/form/personal-info-section.js +29 -25
- package/dist/esm/view/form/submit-button/index.js +48 -0
- package/dist/{es → esm}/view/guest-unload-handlers/index.js +0 -0
- package/dist/{es → esm}/view/host-binding-events/index.js +0 -0
- package/dist/{es → esm}/view/intro.stories.mdx +0 -0
- package/dist/{es → esm}/view/live-message/index.js +0 -0
- package/dist/esm/view/loadable/index.js +28 -0
- package/dist/{es → esm}/view/login/index.js +2 -7
- package/dist/{es → esm}/view/message-to-host-app/index.js +0 -0
- package/dist/{es → esm}/view/micro-app/app-factory/index.js +21 -2
- package/dist/{es → esm}/view/micro-app/const.js +0 -0
- package/dist/{es → esm}/view/micro-app/index.js +0 -0
- package/dist/{es → esm}/view/micro-app/resources/manifest.js +0 -0
- package/dist/{es → esm}/view/micro-app/resources/script.js +1 -1
- package/dist/{es → esm}/view/micro-app/resources/style.js +0 -0
- package/dist/{es → esm}/view/micro-app/types.js +0 -0
- package/dist/{es → esm}/view/micro-app/use-app-will-render.js +21 -3
- package/dist/{es → esm}/view/micro-app/utils.js +0 -0
- package/dist/esm/view/micro-iframe-app/app.js +58 -0
- package/dist/{es → esm}/view/micro-iframe-app/iframe/const.js +0 -0
- package/dist/{es → esm}/view/micro-iframe-app/iframe/index.html +0 -0
- package/dist/esm/view/micro-iframe-app/iframe/index.js +54 -0
- package/dist/esm/view/micro-iframe-app/index.js +57 -0
- package/dist/{es → esm}/view/micro-iframe-app/types.js +0 -0
- package/dist/{es → esm}/view/micro-iframe-app/use-frame-loaded.js +2 -2
- package/dist/esm/view/modals/error/index.js +33 -0
- package/dist/esm/view/modals/navigation-prompt/index.js +40 -0
- package/dist/{es → esm}/view/modals/session-expiry/customHooks.js +0 -0
- package/dist/esm/view/modals/session-expiry/index.js +51 -0
- package/dist/esm/view/modals/wait-message/index.js +69 -0
- package/dist/esm/view/modals/wait-message/use-html-wait-message.js +11 -0
- package/dist/{es → esm}/view/modals/wait-message/wait-message-launcher.js +1 -2
- package/dist/{es/route/page-view.js → esm/view/page.js} +7 -0
- package/dist/{es → esm}/view/render-with-delay/index.js +1 -1
- package/dist/{es → esm}/view/render-with-host-data/index.js +0 -0
- package/dist/esm/view/require-auth.js +29 -0
- package/dist/{es → esm}/view/session-timeout/index.js +5 -1
- package/dist/{es → esm}/view/storybook/decorator.js +0 -0
- package/dist/{es → esm}/view/use-previous.js +0 -0
- package/dist/{es/view/window-size/index.js → esm/view/use-window-size-change.js} +3 -5
- package/dist/esm/view/visually-hidden/index.js +37 -0
- package/dist/types/{lib/analytics → analytics}/appdynamics.d.ts +0 -0
- package/dist/types/{lib/analytics → analytics}/index.d.ts +0 -0
- package/dist/types/{lib/analytics → analytics}/page-view-event.d.ts +0 -0
- package/dist/types/{lib/analytics → analytics}/user-session-event.d.ts +0 -0
- package/dist/types/{lib/analytics → analytics}/user-wait-event.d.ts +0 -0
- package/dist/types/{lib/analytics → analytics}/web-analytics.d.ts +0 -0
- package/dist/types/{lib/api → api}/auth/index.d.ts +0 -0
- package/dist/types/{lib/api → api}/helpers.d.ts +0 -0
- package/dist/types/{lib/api → api}/users/index.d.ts +0 -0
- package/dist/types/{lib/api → api}/users/index.endpoint.d.ts +0 -0
- package/dist/types/{lib/communication → communication}/http-client/index.d.ts +0 -0
- package/dist/types/{lib/communication → communication}/http-client/request-interceptor.d.ts +0 -0
- package/dist/types/{lib/communication → communication}/http-client/response-interceptor.d.ts +0 -0
- package/dist/types/{lib/communication → communication}/http-client/retry-axios.d.ts +0 -0
- package/dist/types/{lib/communication → communication}/http-client/retry.d.ts +0 -0
- package/dist/types/{lib/communication → communication}/http-client/tests/hello.endpoint.d.ts +0 -0
- package/dist/types/{.storybook/manager.d.ts → communication/http-client/tests/index.test.d.ts} +0 -0
- package/dist/types/{lib/communication → communication}/http-client/tests/private.endpoint.d.ts +0 -0
- package/dist/types/{lib/data → data}/auth/actions.d.ts +0 -0
- package/dist/types/{lib/data → data}/auth/reducer.d.ts +0 -0
- package/dist/types/{lib/data → data}/breakpoint/index.d.ts +0 -0
- package/dist/types/{lib/data → data}/error/index.d.ts +0 -0
- package/dist/types/{lib/data → data}/index.d.ts +0 -0
- package/dist/types/{lib/data → data}/live-message/index.d.ts +0 -0
- package/dist/types/{lib/data → data}/logout/actions.d.ts +0 -0
- package/dist/types/{lib/data → data}/navigation-prompt/actions.d.ts +0 -0
- package/dist/types/data/react-redux.d.ts +11 -0
- package/dist/types/{lib/data → data}/reducers.d.ts +0 -0
- package/dist/types/{lib/data → data}/saga.d.ts +0 -0
- package/dist/types/{lib/data → data}/store.d.ts +0 -1
- package/dist/types/{lib/data → data}/tests/store.test.d.ts +0 -0
- package/dist/types/{lib/data → data}/wait-message/actions.d.ts +0 -0
- package/dist/types/{lib/data → data}/wait-message/reducer.d.ts +0 -0
- package/dist/types/data/webpack-hmr.d.ts +1 -0
- package/dist/types/{lib/index.d.ts → index.d.ts} +5 -6
- package/dist/types/{lib/micro-frontend.d.ts → micro-frontend.d.ts} +0 -0
- package/dist/types/{lib/sideeffect → sideeffect}/auth/index.d.ts +0 -0
- package/dist/types/{lib/sideeffect → sideeffect}/error-toast/index.d.ts +0 -0
- package/dist/types/{lib/sideeffect → sideeffect}/wait-message/index.d.ts +0 -0
- package/dist/types/{lib/utils → utils}/app-config/config.d.ts +1 -1
- package/dist/types/{lib/utils → utils}/app-config/index.d.ts +0 -0
- package/dist/types/{lib/utils → utils}/app-host-integration/react.d.ts +0 -0
- package/dist/types/{lib/utils → utils}/auth/helper.d.ts +0 -0
- package/dist/types/{lib/utils → utils}/auth/index.d.ts +0 -0
- package/dist/types/{lib/utils → utils}/await.d.ts +0 -0
- package/dist/types/{lib/utils → utils}/constants.d.ts +0 -0
- package/dist/types/{lib/utils → utils}/font-size.d.ts +0 -0
- package/dist/types/{lib/utils → utils}/guest-with-service.d.ts +0 -0
- package/dist/types/{lib/utils → utils}/helpers.d.ts +0 -0
- package/dist/types/utils/history.d.ts +2 -0
- package/dist/types/{lib/utils → utils}/log-records.d.ts +0 -0
- package/dist/types/{lib/utils → utils}/micro-frontend/console-logger.d.ts +0 -0
- package/dist/types/{lib/utils → utils}/micro-frontend/guest.d.ts +2 -2
- package/dist/types/{lib/utils → utils}/micro-frontend/host.d.ts +2 -2
- package/dist/types/{lib/utils → utils}/micro-frontend/index.d.ts +0 -0
- package/dist/types/{lib/utils → utils}/micro-frontend/types.d.ts +0 -0
- package/dist/types/{lib/utils → utils}/redact-pii.d.ts +0 -0
- package/dist/types/{lib/utils → utils}/service-worker.d.ts +0 -0
- package/dist/types/{lib/utils → utils}/session.d.ts +5 -2
- package/dist/types/{lib/utils → utils}/storybook/cjs/main.d.ts +0 -0
- package/dist/types/{lib/utils → utils}/storybook/cjs/middleware.d.ts +0 -0
- package/dist/types/{lib/utils → utils}/storybook/cjs/vite.d.ts +0 -0
- package/dist/types/{lib/utils → utils}/storybook/cjs/webpack.d.ts +0 -0
- package/dist/types/{lib/utils → utils}/storybook/manager.d.ts +0 -0
- package/dist/types/{lib/utils → utils}/storybook/preview.d.ts +1 -0
- package/dist/types/{lib/utils → utils}/storybook/theme.d.ts +0 -0
- package/dist/types/{lib/utils → utils}/testing/index.d.ts +0 -0
- package/dist/types/{lib/utils → utils}/testing/render-with-redux.d.ts +0 -0
- package/dist/types/{lib/utils → utils}/testing/render-with-router-redux.d.ts +0 -0
- package/dist/types/{lib/utils → utils}/testing/render-with-router.d.ts +1 -1
- package/dist/types/{lib/utils → utils}/testing/render-with-state-addons.d.ts +1 -1
- package/dist/types/{lib/utils → utils}/types.d.ts +0 -0
- package/dist/types/{lib/utils → utils}/url.d.ts +0 -0
- package/dist/types/{lib/utils → utils}/web-storage.d.ts +0 -0
- package/dist/types/{lib/utils → utils}/window.d.ts +0 -0
- package/dist/types/view/app-root/hosted-app.d.ts +7 -0
- package/dist/types/{lib/view → view}/app-root/index.d.ts +1 -1
- package/dist/types/{lib/view → view}/app-root/stand-alone-app.d.ts +1 -1
- package/dist/types/{lib/view → view}/app-root/style.d.ts +0 -0
- package/dist/types/view/app-router.d.ts +9 -0
- package/dist/types/{lib/view/media-breakpoint → view/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/{lib/view → view}/error-boundary/default-error-template.d.ts +1 -1
- package/dist/types/{lib/view → view}/error-boundary/index.d.ts +0 -0
- package/dist/types/{lib/view → view}/error-toast/index.d.ts +0 -0
- package/dist/types/{lib/view → view}/error-toast/index.stories.d.ts +0 -0
- package/dist/types/{lib/view → view}/fetch-host-app-data/index.d.ts +0 -0
- package/dist/types/{lib/view → view}/fetch-host-app-data/store.d.ts +0 -0
- package/dist/types/{lib/view → view}/fields/check-box/index.d.ts +2 -4
- package/dist/types/{lib/view → view}/fields/check-box/index.stories.d.ts +1 -3
- package/dist/types/{lib/view → view}/fields/check-box/set-value.stories.d.ts +0 -0
- package/dist/types/{lib/view → view}/fields/combo-box/index.d.ts +1 -2
- package/dist/types/view/fields/combo-box/index.stories.d.ts +5 -0
- package/dist/types/{lib/view → view}/fields/connect-form.d.ts +1 -1
- package/dist/types/{lib/view → view}/fields/date-input/index.d.ts +1 -1
- package/dist/types/{lib/view → view}/fields/date-input/index.stories.d.ts +0 -0
- package/dist/types/{lib/view → view}/fields/date-picker/index.d.ts +2 -1
- package/dist/types/{lib/view → view}/fields/date-picker/index.stories.d.ts +1 -3
- package/dist/types/{lib/view → view}/fields/form-item-layout/index.d.ts +1 -1
- package/dist/types/{lib/view → view}/fields/form-item-layout/index.stories.d.ts +0 -0
- package/dist/types/view/fields/form-layout-block-item/index.d.ts +8 -0
- package/dist/types/{lib/view/header → view/fields/form-layout-block-item}/index.stories.d.ts +2 -2
- package/dist/types/{lib/view → view}/fields/input-mask/index.d.ts +1 -1
- package/dist/types/{lib/view → view}/fields/input-mask/index.stories.d.ts +1 -3
- package/dist/types/{lib/view → view}/fields/large-text-box/index.d.ts +1 -1
- package/dist/types/{lib/view → view}/fields/large-text-box/index.stories.d.ts +1 -3
- package/dist/types/{lib/view → view}/fields/radio/index.d.ts +2 -2
- package/dist/types/{lib/view → view}/fields/radio/index.stories.d.ts +1 -3
- package/dist/types/{lib/view → view}/fields/radio/set-value.stories.d.ts +0 -0
- package/dist/types/{lib/view → view}/fields/radio-group/index.d.ts +1 -1
- package/dist/types/{lib/view → view}/fields/radio-group/index.stories.d.ts +0 -0
- package/dist/types/{lib/view → view}/fields/text-box/index.d.ts +1 -1
- package/dist/types/{lib/view → view}/fields/text-box/index.stories.d.ts +0 -0
- package/dist/types/view/fields/watch-value.d.ts +6 -0
- package/dist/types/{lib/view → view}/form/index.d.ts +0 -0
- package/dist/types/{lib/view → view}/form/index.stories.d.ts +0 -0
- package/dist/types/view/form/personal-info-section.d.ts +5 -0
- package/dist/types/{lib/view → view}/form/submit-button/index.d.ts +2 -1
- package/dist/types/{lib/view → view}/form/usecases.stories.d.ts +0 -0
- package/dist/types/{lib/view → view}/guest-unload-handlers/index.d.ts +0 -0
- package/dist/types/{lib/view → view}/host-binding-events/index.d.ts +0 -0
- package/dist/types/view/live-message/index.d.ts +2 -0
- package/dist/types/{lib/view → view}/live-message/index.stories.d.ts +0 -0
- package/dist/types/{lib/view → view}/loadable/index.d.ts +0 -0
- package/dist/types/{lib/view → view}/login/index.d.ts +1 -2
- package/dist/types/{lib/view → view}/message-to-host-app/index.d.ts +0 -0
- package/dist/types/{lib/view → view}/micro-app/app-factory/index.d.ts +0 -0
- package/dist/types/{lib/view → view}/micro-app/const.d.ts +0 -0
- package/dist/types/{lib/view → view}/micro-app/index.d.ts +0 -0
- package/dist/types/{lib/view → view}/micro-app/resources/manifest.d.ts +0 -0
- package/dist/types/{lib/view → view}/micro-app/resources/script.d.ts +0 -0
- package/dist/types/{lib/view → view}/micro-app/resources/style.d.ts +0 -0
- package/dist/types/{lib/view → view}/micro-app/types.d.ts +0 -0
- package/dist/types/{lib/view → view}/micro-app/use-app-will-render.d.ts +0 -0
- package/dist/types/{lib/view → view}/micro-app/utils.d.ts +0 -0
- package/dist/types/{lib/view → view}/micro-iframe-app/app.d.ts +0 -0
- package/dist/types/{lib/view → view}/micro-iframe-app/iframe/const.d.ts +0 -0
- package/dist/types/{lib/view → view}/micro-iframe-app/iframe/index.d.ts +0 -0
- package/dist/types/{lib/view → view}/micro-iframe-app/index.d.ts +0 -0
- package/dist/types/{lib/view → view}/micro-iframe-app/types.d.ts +0 -0
- package/dist/types/{lib/view → view}/micro-iframe-app/use-frame-loaded.d.ts +0 -0
- package/dist/types/view/modals/error/index.d.ts +9 -0
- package/dist/types/{lib/view → view}/modals/error/index.stories.d.ts +0 -0
- package/dist/types/{lib/view → view}/modals/navigation-prompt/index.d.ts +0 -1
- package/dist/types/{lib/view → view}/modals/navigation-prompt/index.stories.d.ts +0 -0
- package/dist/types/{lib/view → view}/modals/session-expiry/customHooks.d.ts +0 -0
- package/dist/types/{lib/view → view}/modals/session-expiry/index.d.ts +0 -1
- package/dist/types/{lib/view → view}/modals/session-expiry/index.stories.d.ts +0 -0
- package/dist/types/{lib/view → view}/modals/wait-message/index.d.ts +0 -0
- package/dist/types/{lib/view → 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 -0
- package/dist/types/view/page.d.ts +8 -0
- package/dist/types/{lib/view → view}/render-with-delay/index.d.ts +0 -0
- package/dist/types/{lib/view → view}/render-with-host-data/index.d.ts +0 -0
- package/dist/types/view/require-auth.d.ts +8 -0
- package/dist/types/view/session-timeout/index.d.ts +2 -0
- package/dist/types/{lib/view → view}/session-timeout/index.stories.d.ts +1 -4
- package/dist/types/{lib/view → view}/storybook/decorator.d.ts +0 -0
- package/dist/types/{lib/view → view}/use-previous.d.ts +0 -0
- package/dist/types/view/use-window-size-change.d.ts +1 -0
- package/dist/types/{lib/view → view}/visually-hidden/index.d.ts +0 -0
- package/package.json +60 -46
- package/dist/cjs/communication/http-client/tests/index.test-disable.js +0 -64
- package/dist/cjs/route/index.js +0 -49
- package/dist/cjs/route/page-view.js +0 -38
- package/dist/cjs/route/private-route/index.js +0 -69
- package/dist/cjs/typings/custom.d.js +0 -0
- package/dist/cjs/typings/elliemae.d.js +0 -0
- package/dist/cjs/typings/styled.d.js +0 -19
- package/dist/cjs/typings/thirdparty.d.js +0 -0
- package/dist/cjs/view/header/center-region/index.js +0 -65
- package/dist/cjs/view/header/index.js +0 -44
- package/dist/cjs/view/header/logo-region/index.js +0 -33
- package/dist/cjs/view/header/logo-region/logo.svg +0 -2
- package/dist/cjs/view/header/nav-region/index.js +0 -47
- package/dist/cjs/view/header/nav-region/notification/index.js +0 -32
- package/dist/cjs/view/header/nav-region/notification/index.svg +0 -5
- package/dist/cjs/view/header/nav-region/user/index.js +0 -32
- package/dist/cjs/view/header/nav-region/user/index.svg +0 -4
- package/dist/es/analytics/appdynamics.js +0 -18
- package/dist/es/analytics/index.js +0 -27
- package/dist/es/analytics/web-analytics.js +0 -14
- package/dist/es/communication/http-client/index.js +0 -35
- package/dist/es/communication/http-client/tests/index.test-disable.js +0 -46
- package/dist/es/data/reducers.js +0 -18
- package/dist/es/package.json +0 -1
- package/dist/es/route/index.js +0 -26
- package/dist/es/route/private-route/index.js +0 -46
- package/dist/es/sideeffect/auth/index.js +0 -47
- package/dist/es/sideeffect/error-toast/index.js +0 -25
- package/dist/es/sideeffect/wait-message/index.js +0 -38
- package/dist/es/typings/custom.d.js +0 -0
- package/dist/es/typings/elliemae.d.js +0 -0
- package/dist/es/typings/styled.d.js +0 -1
- package/dist/es/typings/thirdparty.d.js +0 -0
- package/dist/es/utils/storybook/theme.js +0 -13
- package/dist/es/utils/testing/index.js +0 -22
- package/dist/es/utils/testing/render-with-redux.js +0 -17
- package/dist/es/utils/testing/render-with-router-redux.js +0 -23
- package/dist/es/utils/testing/render-with-router.js +0 -16
- package/dist/es/utils/testing/render-with-state-addons.js +0 -38
- package/dist/es/view/app-root/hosted-app.js +0 -15
- package/dist/es/view/app-root/stand-alone-app.js +0 -21
- package/dist/es/view/error-boundary/default-error-template.js +0 -5
- package/dist/es/view/error-boundary/index.js +0 -36
- package/dist/es/view/error-toast/index.js +0 -30
- 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/.storybook/main.d.ts +0 -63
- package/dist/types/.storybook/middleware.d.ts +0 -2
- package/dist/types/.storybook/preview.d.ts +0 -25
- package/dist/types/.storybook/theme.d.ts +0 -4
- package/dist/types/lib/communication/http-client/tests/index.test-disable.d.ts +0 -1
- package/dist/types/lib/data/react-redux.d.ts +0 -20
- package/dist/types/lib/route/index.d.ts +0 -8
- package/dist/types/lib/route/page-view.d.ts +0 -1
- package/dist/types/lib/route/private-route/index.d.ts +0 -8
- package/dist/types/lib/utils/history.d.ts +0 -2
- package/dist/types/lib/view/app-root/hosted-app.d.ts +0 -6
- package/dist/types/lib/view/fields/combo-box/index.stories.d.ts +0 -7
- package/dist/types/lib/view/fields/watch-value.d.ts +0 -6
- package/dist/types/lib/view/form/personal-info-section.d.ts +0 -5
- package/dist/types/lib/view/header/center-region/index.d.ts +0 -9
- package/dist/types/lib/view/header/index.d.ts +0 -7
- package/dist/types/lib/view/header/logo-region/index.d.ts +0 -2
- package/dist/types/lib/view/header/nav-region/index.d.ts +0 -2
- package/dist/types/lib/view/header/nav-region/notification/index.d.ts +0 -2
- package/dist/types/lib/view/header/nav-region/user/index.d.ts +0 -2
- package/dist/types/lib/view/live-message/index.d.ts +0 -2
- package/dist/types/lib/view/media-breakpoint/index.d.ts +0 -2
- package/dist/types/lib/view/modals/error/index.d.ts +0 -8
- package/dist/types/lib/view/modals/wait-message/html-wait-message.d.ts +0 -6
- package/dist/types/lib/view/modals/wait-message/wait-message-launcher.d.ts +0 -2
- package/dist/types/lib/view/session-timeout/index.d.ts +0 -2
- package/dist/types/lib/view/useMediaBreakpoints/index.d.ts +0 -1
- package/dist/types/lib/view/window-size/index.d.ts +0 -2
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
__markAsModule(target);
|
|
10
|
-
for (var name in all)
|
|
11
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
|
-
};
|
|
13
|
-
var __reExport = (target, module2, desc) => {
|
|
14
|
-
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
15
|
-
for (let key of __getOwnPropNames(module2))
|
|
16
|
-
if (!__hasOwnProp.call(target, key) && key !== "default")
|
|
17
|
-
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
18
|
-
}
|
|
19
|
-
return target;
|
|
20
|
-
};
|
|
21
|
-
var __toModule = (module2) => {
|
|
22
|
-
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
23
|
-
};
|
|
24
|
-
__export(exports, {
|
|
25
|
-
Notification: () => Notification
|
|
26
|
-
});
|
|
27
|
-
var React = __toModule(require("react"));
|
|
28
|
-
var import_index = __toModule(require("./index.svg"));
|
|
29
|
-
const Notification = () => /* @__PURE__ */ React.createElement("li", null, /* @__PURE__ */ React.createElement("a", {
|
|
30
|
-
href: "#",
|
|
31
|
-
"aria-label": "Notifications"
|
|
32
|
-
}, /* @__PURE__ */ React.createElement(import_index.default, null)));
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="16px" height="16px" viewBox="0 0 16 16"><g>
|
|
2
|
-
<path data-color="color-2" fill="#ffffff" d="M10,14H6c0,1.1,0.9,2,2,2S10,15.1,10,14z"/>
|
|
3
|
-
<path fill="#ffffff" d="M15,11h-0.5C13.8,10.3,13,9.3,13,8V5c0-2.8-2.2-5-5-5S3,2.2,3,5v3c0,1.3-0.8,2.3-1.5,3H1c-0.6,0-1,0.4-1,1
|
|
4
|
-
s0.4,1,1,1h14c0.6,0,1-0.4,1-1S15.6,11,15,11z"/>
|
|
5
|
-
</g></svg>
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
__markAsModule(target);
|
|
10
|
-
for (var name in all)
|
|
11
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
|
-
};
|
|
13
|
-
var __reExport = (target, module2, desc) => {
|
|
14
|
-
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
15
|
-
for (let key of __getOwnPropNames(module2))
|
|
16
|
-
if (!__hasOwnProp.call(target, key) && key !== "default")
|
|
17
|
-
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
18
|
-
}
|
|
19
|
-
return target;
|
|
20
|
-
};
|
|
21
|
-
var __toModule = (module2) => {
|
|
22
|
-
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
23
|
-
};
|
|
24
|
-
__export(exports, {
|
|
25
|
-
User: () => User
|
|
26
|
-
});
|
|
27
|
-
var React = __toModule(require("react"));
|
|
28
|
-
var import_index = __toModule(require("./index.svg"));
|
|
29
|
-
const User = () => /* @__PURE__ */ React.createElement("li", null, /* @__PURE__ */ React.createElement("a", {
|
|
30
|
-
href: "#",
|
|
31
|
-
"aria-label": "profile"
|
|
32
|
-
}, /* @__PURE__ */ React.createElement(import_index.default, null)));
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="16px" height="16px" viewBox="0 0 16 16"><g><path fill="#ffffff" d="M8,2c1.1,0,2,0.9,2,2v1c0,1.1-0.9,2-2,2S6,6.1,6,5V4C6,2.9,6.9,2,8,2 M8,0C5.8,0,4,1.8,4,4v1
|
|
2
|
-
c0,2.2,1.8,4,4,4s4-1.8,4-4V4C12,1.8,10.2,0,8,0L8,0z"/>
|
|
3
|
-
<path data-color="color-2" fill="#ffffff" d="M9,12c1.5,0,2.8,0.8,3.5,2l-8.9,0c0.7-1.2,2-2,3.5-2H9 M9,10H7c-3.3,0-6,2.7-6,6v0h14v0
|
|
4
|
-
C15,12.7,12.3,10,9,10L9,10z"/></g></svg>
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import * as brum from "@elliemae/pui-user-monitoring";
|
|
2
|
-
let userData = {
|
|
3
|
-
envName: "localhost",
|
|
4
|
-
appId: "",
|
|
5
|
-
instanceId: "",
|
|
6
|
-
userId: ""
|
|
7
|
-
};
|
|
8
|
-
const getAppDynamicsUserData = () => userData;
|
|
9
|
-
const setAppDynamicsUserData = (params) => {
|
|
10
|
-
userData = { ...userData, ...params };
|
|
11
|
-
if (brum) {
|
|
12
|
-
brum.setCustomUserData(() => ({ userData }));
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
export {
|
|
16
|
-
getAppDynamicsUserData,
|
|
17
|
-
setAppDynamicsUserData
|
|
18
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { CMicroAppGuest } from "../utils/micro-frontend/guest.js";
|
|
2
|
-
import { getBAEventParameters } from "./web-analytics.js";
|
|
3
|
-
import { redactPii } from "../utils/redact-pii.js";
|
|
4
|
-
const sendBAEventToSelf = (data) => {
|
|
5
|
-
const redactedData = redactPii(data);
|
|
6
|
-
window.gtmDataLayer = window.gtmDataLayer || [];
|
|
7
|
-
window.gtmDataLayer.push(redactedData);
|
|
8
|
-
};
|
|
9
|
-
const sendBAEvent = ({
|
|
10
|
-
data,
|
|
11
|
-
self = true
|
|
12
|
-
}) => {
|
|
13
|
-
const eventData = { ...getBAEventParameters(), ...data };
|
|
14
|
-
if (!self) {
|
|
15
|
-
const sendEvent = CMicroAppGuest.getInstance()?.getHost()?.sendBAEvent;
|
|
16
|
-
if (sendEvent) {
|
|
17
|
-
sendEvent(eventData);
|
|
18
|
-
} else {
|
|
19
|
-
sendBAEventToSelf(eventData);
|
|
20
|
-
}
|
|
21
|
-
} else {
|
|
22
|
-
sendBAEventToSelf(eventData);
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
export {
|
|
26
|
-
sendBAEvent
|
|
27
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
let baEventParameters = {
|
|
2
|
-
envName: "localhost",
|
|
3
|
-
appId: "",
|
|
4
|
-
instanceId: "",
|
|
5
|
-
userId: ""
|
|
6
|
-
};
|
|
7
|
-
const getBAEventParameters = () => baEventParameters;
|
|
8
|
-
const updateBAEventParameters = (params) => {
|
|
9
|
-
baEventParameters = { ...baEventParameters, ...params };
|
|
10
|
-
};
|
|
11
|
-
export {
|
|
12
|
-
getBAEventParameters,
|
|
13
|
-
updateBAEventParameters
|
|
14
|
-
};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import axios from "axios";
|
|
2
|
-
import { getAppConfigValue } from "../../utils/app-config/config.js";
|
|
3
|
-
import { getAuthorizationHeader } from "../../utils/auth/helper.js";
|
|
4
|
-
import setupRetry from "./retry.js";
|
|
5
|
-
import { requestInterceptor } from "./request-interceptor.js";
|
|
6
|
-
import { handleSuccess, handleFailure } from "./response-interceptor.js";
|
|
7
|
-
const REQUEST_TIMEOUT = 2 * 60 * 1e3;
|
|
8
|
-
const getHTTPClient = ({
|
|
9
|
-
baseURL = getAppConfigValue("serviceEndpoints.api", ""),
|
|
10
|
-
headers = {}
|
|
11
|
-
} = {}) => {
|
|
12
|
-
const client = axios.create({ baseURL, headers });
|
|
13
|
-
if (client?.defaults?.timeout)
|
|
14
|
-
client.defaults.timeout = REQUEST_TIMEOUT;
|
|
15
|
-
setupRetry(client);
|
|
16
|
-
const { request, response } = client?.interceptors || {};
|
|
17
|
-
if (request)
|
|
18
|
-
request.use(requestInterceptor);
|
|
19
|
-
if (response)
|
|
20
|
-
response.use(handleSuccess, handleFailure);
|
|
21
|
-
return client;
|
|
22
|
-
};
|
|
23
|
-
const getAuthHTTPClient = ({
|
|
24
|
-
baseURL,
|
|
25
|
-
headers = {},
|
|
26
|
-
...rest
|
|
27
|
-
} = {}) => getHTTPClient({
|
|
28
|
-
baseURL,
|
|
29
|
-
headers: { ...headers, Authorization: getAuthorizationHeader() },
|
|
30
|
-
...rest
|
|
31
|
-
});
|
|
32
|
-
export {
|
|
33
|
-
getAuthHTTPClient,
|
|
34
|
-
getHTTPClient
|
|
35
|
-
};
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import enums from "../../../utils/constants.js";
|
|
2
|
-
import { getAuthHTTPClient } from "../index.js";
|
|
3
|
-
import { onAuthorizationFailure } from "../response-interceptor.js";
|
|
4
|
-
describe("http client test cases", () => {
|
|
5
|
-
const callApi = ({
|
|
6
|
-
apiUrl,
|
|
7
|
-
options = {},
|
|
8
|
-
baseURL = "http://localhost:3001"
|
|
9
|
-
}) => {
|
|
10
|
-
const httpClient = getAuthHTTPClient({ baseURL });
|
|
11
|
-
return httpClient.get(apiUrl, options);
|
|
12
|
-
};
|
|
13
|
-
const refreshToken = () => new Promise((resolve) => {
|
|
14
|
-
const authorizationHeader = "pui";
|
|
15
|
-
sessionStorage.setItem(enums.AUTHORIZATION, authorizationHeader);
|
|
16
|
-
resolve(authorizationHeader);
|
|
17
|
-
});
|
|
18
|
-
it("should download large file without timing out", async () => {
|
|
19
|
-
jest.setTimeout(3e5);
|
|
20
|
-
const { data } = await callApi({
|
|
21
|
-
apiUrl: "annual_report_2009.pdf",
|
|
22
|
-
options: { timeout: 2e5 },
|
|
23
|
-
baseURL: "https://www.iso.org/files/live/sites/isoorg/files/archive/pdf/en"
|
|
24
|
-
});
|
|
25
|
-
expect(data).toBeDefined();
|
|
26
|
-
});
|
|
27
|
-
it("should throw connection aborted error for large file download", async () => {
|
|
28
|
-
jest.setTimeout(3e5);
|
|
29
|
-
await expect(callApi({
|
|
30
|
-
apiUrl: "annual_report_2009.pdf",
|
|
31
|
-
baseURL: "https://www.iso.org/files/live/sites/isoorg/files/archive/pdf/en"
|
|
32
|
-
})).rejects.toEqual(new Error("timeout of 10000ms exceeded"));
|
|
33
|
-
});
|
|
34
|
-
it("should return success response", async () => {
|
|
35
|
-
const { data } = await callApi({ apiUrl: "/hello" });
|
|
36
|
-
expect(data.name).toEqual("pui-app-sdk");
|
|
37
|
-
});
|
|
38
|
-
it("should return unauthorized 401 response", async () => {
|
|
39
|
-
await expect(callApi({ apiUrl: "/private" })).rejects.toThrow("Request failed with status code 401");
|
|
40
|
-
});
|
|
41
|
-
it("should return success after refreshing authorization token", async () => {
|
|
42
|
-
onAuthorizationFailure(refreshToken);
|
|
43
|
-
const { data } = await callApi({ apiUrl: "/private" });
|
|
44
|
-
expect(data.message).toEqual("you are viewing a private message");
|
|
45
|
-
});
|
|
46
|
-
});
|
package/dist/es/data/reducers.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { combineReducers } from "@reduxjs/toolkit";
|
|
2
|
-
import { waitMessageReducer } from "./wait-message/reducer.js";
|
|
3
|
-
import { errorReducer } from "./error/index.js";
|
|
4
|
-
import { breakpointReducer } from "./breakpoint/index.js";
|
|
5
|
-
import { liveMessageReducer } from "./live-message/index.js";
|
|
6
|
-
const createReducer = (injectedReducers = {}) => {
|
|
7
|
-
const rootReducer = combineReducers({
|
|
8
|
-
waitMessage: waitMessageReducer,
|
|
9
|
-
error: errorReducer,
|
|
10
|
-
breakpoint: breakpointReducer,
|
|
11
|
-
liveMessage: liveMessageReducer,
|
|
12
|
-
...injectedReducers
|
|
13
|
-
});
|
|
14
|
-
return rootReducer;
|
|
15
|
-
};
|
|
16
|
-
export {
|
|
17
|
-
createReducer
|
|
18
|
-
};
|
package/dist/es/package.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"type":"module","sideEffects":["*.css","*.html"]}
|
package/dist/es/route/index.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { Helmet } from "react-helmet";
|
|
3
|
-
import { useCallback } from "react";
|
|
4
|
-
import { Route } from "react-router-dom";
|
|
5
|
-
import { onPageView } from "./page-view.js";
|
|
6
|
-
const AppRoute = ({
|
|
7
|
-
component: Component,
|
|
8
|
-
render,
|
|
9
|
-
children,
|
|
10
|
-
pageTitle = "ICE",
|
|
11
|
-
...rest
|
|
12
|
-
}) => {
|
|
13
|
-
const memoizedRender = useCallback((routeProps) => render && typeof render === "function" ? render(routeProps) : Component && /* @__PURE__ */ React.createElement(Component, {
|
|
14
|
-
...routeProps
|
|
15
|
-
}), [Component, render]);
|
|
16
|
-
return /* @__PURE__ */ React.createElement(Route, {
|
|
17
|
-
...rest,
|
|
18
|
-
render: (routeProps) => {
|
|
19
|
-
onPageView(pageTitle);
|
|
20
|
-
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Helmet, null, /* @__PURE__ */ React.createElement("title", null, pageTitle)), children || memoizedRender(routeProps));
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
};
|
|
24
|
-
export {
|
|
25
|
-
AppRoute
|
|
26
|
-
};
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { useCallback } from "react";
|
|
3
|
-
import { useInjectReducer, useInjectSaga } from "redux-injectors";
|
|
4
|
-
import enums from "../../utils/constants.js";
|
|
5
|
-
import { RenderWithDelay } from "../../view/render-with-delay/index.js";
|
|
6
|
-
import { authReducer } from "../../data/auth/reducer.js";
|
|
7
|
-
import { authentication } from "../../sideeffect/auth/index.js";
|
|
8
|
-
import { Login } from "../../view/login/index.js";
|
|
9
|
-
import { isUserAuthorized } from "../../utils/auth/index.js";
|
|
10
|
-
import { AppRoute } from "../index.js";
|
|
11
|
-
const key = "auth";
|
|
12
|
-
const PrivateRoute = ({
|
|
13
|
-
component: Component,
|
|
14
|
-
render,
|
|
15
|
-
children,
|
|
16
|
-
clientId = enums.CLIENT_ID,
|
|
17
|
-
scope = "loc",
|
|
18
|
-
responseType = "code",
|
|
19
|
-
...rest
|
|
20
|
-
}) => {
|
|
21
|
-
useInjectReducer({ key, reducer: authReducer });
|
|
22
|
-
useInjectSaga({ key, saga: authentication });
|
|
23
|
-
const memoizedRender = useCallback((routeProps) => render && typeof render === "function" ? render(routeProps) : Component && /* @__PURE__ */ React.createElement(Component, {
|
|
24
|
-
...routeProps
|
|
25
|
-
}), [Component, render]);
|
|
26
|
-
return /* @__PURE__ */ React.createElement(AppRoute, {
|
|
27
|
-
...rest,
|
|
28
|
-
render: (routeProps) => {
|
|
29
|
-
const userAuthorized = isUserAuthorized();
|
|
30
|
-
if (userAuthorized) {
|
|
31
|
-
return children || memoizedRender(routeProps);
|
|
32
|
-
}
|
|
33
|
-
const getAuthComp = () => /* @__PURE__ */ React.createElement(Login, {
|
|
34
|
-
clientId,
|
|
35
|
-
scope,
|
|
36
|
-
responseType
|
|
37
|
-
});
|
|
38
|
-
return /* @__PURE__ */ React.createElement(RenderWithDelay, {
|
|
39
|
-
render: getAuthComp
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
|
-
};
|
|
44
|
-
export {
|
|
45
|
-
PrivateRoute
|
|
46
|
-
};
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
call,
|
|
3
|
-
put,
|
|
4
|
-
takeLatest
|
|
5
|
-
} from "redux-saga/effects";
|
|
6
|
-
import {
|
|
7
|
-
LOGIN,
|
|
8
|
-
LOGOUT,
|
|
9
|
-
LOGIN_SUCCESS
|
|
10
|
-
} from "../../data/auth/actions.js";
|
|
11
|
-
import { authorize, endSession } from "../../utils/auth/index.js";
|
|
12
|
-
import { getLogger } from "../../utils/micro-frontend/index.js";
|
|
13
|
-
import { logRecords } from "../../utils/log-records.js";
|
|
14
|
-
function* login({
|
|
15
|
-
payload
|
|
16
|
-
}) {
|
|
17
|
-
try {
|
|
18
|
-
yield call(authorize, payload);
|
|
19
|
-
yield put({ type: LOGIN_SUCCESS });
|
|
20
|
-
} catch (err) {
|
|
21
|
-
getLogger().error({
|
|
22
|
-
...logRecords.LOGIN_FAILED,
|
|
23
|
-
exception: err
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
function* logout({
|
|
28
|
-
payload
|
|
29
|
-
}) {
|
|
30
|
-
try {
|
|
31
|
-
yield call(endSession, payload);
|
|
32
|
-
} catch (err) {
|
|
33
|
-
getLogger().error({
|
|
34
|
-
...logRecords.LOGOUT_FAILED,
|
|
35
|
-
exception: err
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
function* authentication() {
|
|
40
|
-
yield takeLatest(LOGIN, login);
|
|
41
|
-
yield takeLatest(LOGOUT, logout);
|
|
42
|
-
}
|
|
43
|
-
export {
|
|
44
|
-
authentication,
|
|
45
|
-
login,
|
|
46
|
-
logout
|
|
47
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { call, takeLatest } from "redux-saga/effects";
|
|
2
|
-
import { actions } from "../../data/error/index.js";
|
|
3
|
-
import { CMicroAppGuest } from "../../utils/micro-frontend/guest.js";
|
|
4
|
-
import { getLogger } from "../../utils/micro-frontend/index.js";
|
|
5
|
-
import { logRecords } from "../../utils/log-records.js";
|
|
6
|
-
function* openErrorToast(action) {
|
|
7
|
-
try {
|
|
8
|
-
const microApp = yield call(CMicroAppGuest.getInstance.bind(CMicroAppGuest));
|
|
9
|
-
const host = yield call(microApp.getHost.bind(microApp));
|
|
10
|
-
const message = action?.payload?.description || action?.payload?.messageText;
|
|
11
|
-
if (host && message)
|
|
12
|
-
yield call(host.openErrorBanner.bind(host), message);
|
|
13
|
-
} catch (ex) {
|
|
14
|
-
getLogger().error({
|
|
15
|
-
...logRecords.ERR_TOAST_OPEN_FAILED,
|
|
16
|
-
exception: ex
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
function* errorToast() {
|
|
21
|
-
yield takeLatest(actions.set.type, openErrorToast);
|
|
22
|
-
}
|
|
23
|
-
export {
|
|
24
|
-
errorToast
|
|
25
|
-
};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { call, takeLatest } from "redux-saga/effects";
|
|
2
|
-
import { ACTIONS } from "../../data/wait-message/actions.js";
|
|
3
|
-
import { CMicroAppGuest } from "../../utils/micro-frontend/guest.js";
|
|
4
|
-
import { getLogger } from "../../utils/micro-frontend/index.js";
|
|
5
|
-
import { logRecords } from "../../utils/log-records.js";
|
|
6
|
-
function* openWaitMessage() {
|
|
7
|
-
try {
|
|
8
|
-
const microApp = yield call(CMicroAppGuest.getInstance.bind(CMicroAppGuest));
|
|
9
|
-
const host = yield call(microApp.getHost.bind(microApp));
|
|
10
|
-
if (host)
|
|
11
|
-
yield call(host.openWaitMessage.bind(host));
|
|
12
|
-
} catch (ex) {
|
|
13
|
-
getLogger().error({
|
|
14
|
-
...logRecords.WAIT_MSG_OPEN_FAILED,
|
|
15
|
-
exception: ex
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
function* closeWaitMessage() {
|
|
20
|
-
try {
|
|
21
|
-
const microApp = yield call(CMicroAppGuest.getInstance.bind(CMicroAppGuest));
|
|
22
|
-
const host = yield call(microApp.getHost.bind(microApp));
|
|
23
|
-
if (host)
|
|
24
|
-
yield call(host.closeWaitMessage.bind(host));
|
|
25
|
-
} catch (ex) {
|
|
26
|
-
getLogger().error({
|
|
27
|
-
...logRecords.WAIT_MSG_CLOSE_FAILED,
|
|
28
|
-
exception: ex
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
function* waitMessage() {
|
|
33
|
-
yield takeLatest(ACTIONS.OPEN, openWaitMessage);
|
|
34
|
-
yield takeLatest(ACTIONS.CLOSE, closeWaitMessage);
|
|
35
|
-
}
|
|
36
|
-
export {
|
|
37
|
-
waitMessage
|
|
38
|
-
};
|
|
File without changes
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "styled-components";
|
|
File without changes
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { create } from "@storybook/theming/create";
|
|
2
|
-
const createTheme = ({
|
|
3
|
-
base = "light",
|
|
4
|
-
brandTitle = "Platform UI Components",
|
|
5
|
-
...rest
|
|
6
|
-
}) => create({
|
|
7
|
-
base,
|
|
8
|
-
brandTitle: `${brandTitle} ${process.env.STORYBOOK_VERSION || ""}`,
|
|
9
|
-
...rest
|
|
10
|
-
});
|
|
11
|
-
export {
|
|
12
|
-
createTheme
|
|
13
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { render } from "@testing-library/react";
|
|
3
|
-
import { getDefaultTheme } from "@elliemae/pui-theme";
|
|
4
|
-
import { createAppStore } from "../../data/store.js";
|
|
5
|
-
import { AppRoot } from "../../view/app-root/index.js";
|
|
6
|
-
import { browserHistory } from "../history.js";
|
|
7
|
-
const defaultStore = createAppStore({}, browserHistory);
|
|
8
|
-
const defaultTheme = getDefaultTheme();
|
|
9
|
-
const AllTheProviders = ({
|
|
10
|
-
store = defaultStore,
|
|
11
|
-
theme = defaultTheme,
|
|
12
|
-
children
|
|
13
|
-
}) => /* @__PURE__ */ React.createElement(AppRoot, {
|
|
14
|
-
store,
|
|
15
|
-
history: browserHistory,
|
|
16
|
-
theme
|
|
17
|
-
}, children);
|
|
18
|
-
const customRender = (ui, options) => render(ui, { wrapper: AllTheProviders, ...options });
|
|
19
|
-
export * from "@testing-library/react";
|
|
20
|
-
export {
|
|
21
|
-
customRender as render
|
|
22
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { render } from "@testing-library/react";
|
|
3
|
-
import { Provider } from "react-redux";
|
|
4
|
-
import { createAppStore } from "../../data/store.js";
|
|
5
|
-
import { browserHistory } from "../history.js";
|
|
6
|
-
const renderWithRedux = (ui, {
|
|
7
|
-
initialState,
|
|
8
|
-
store = createAppStore(initialState, browserHistory)
|
|
9
|
-
} = {}) => ({
|
|
10
|
-
...render(/* @__PURE__ */ React.createElement(Provider, {
|
|
11
|
-
store
|
|
12
|
-
}, ui)),
|
|
13
|
-
store
|
|
14
|
-
});
|
|
15
|
-
export {
|
|
16
|
-
renderWithRedux
|
|
17
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { render } from "@testing-library/react";
|
|
3
|
-
import { Provider } from "react-redux";
|
|
4
|
-
import { Router } from "react-router-dom";
|
|
5
|
-
import { createMemoryHistory } from "history";
|
|
6
|
-
import { createAppStore } from "../../data/store.js";
|
|
7
|
-
import { browserHistory } from "../history.js";
|
|
8
|
-
const renderWithRouterRedux = (ui, {
|
|
9
|
-
route = "/",
|
|
10
|
-
history = createMemoryHistory({ initialEntries: [route] }),
|
|
11
|
-
initialState,
|
|
12
|
-
store = createAppStore(initialState, browserHistory)
|
|
13
|
-
} = {}) => ({
|
|
14
|
-
...render(/* @__PURE__ */ React.createElement(Provider, {
|
|
15
|
-
store
|
|
16
|
-
}, /* @__PURE__ */ React.createElement(Router, {
|
|
17
|
-
history
|
|
18
|
-
}, ui))),
|
|
19
|
-
store
|
|
20
|
-
});
|
|
21
|
-
export {
|
|
22
|
-
renderWithRouterRedux
|
|
23
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { render } from "@testing-library/react";
|
|
3
|
-
import { Router } from "react-router-dom";
|
|
4
|
-
import { createMemoryHistory } from "history";
|
|
5
|
-
const renderWithRouter = (ui, {
|
|
6
|
-
route = "/",
|
|
7
|
-
history = createMemoryHistory({ initialEntries: [route] })
|
|
8
|
-
} = {}) => ({
|
|
9
|
-
...render(/* @__PURE__ */ React.createElement(Router, {
|
|
10
|
-
history
|
|
11
|
-
}, ui)),
|
|
12
|
-
history
|
|
13
|
-
});
|
|
14
|
-
export {
|
|
15
|
-
renderWithRouter
|
|
16
|
-
};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { useEffect, useState } from "react";
|
|
3
|
-
import { ThemeProvider } from "styled-components";
|
|
4
|
-
import { getDefaultTheme } from "@elliemae/pui-theme";
|
|
5
|
-
import {
|
|
6
|
-
useInjectReducer,
|
|
7
|
-
useInjectSaga
|
|
8
|
-
} from "redux-injectors";
|
|
9
|
-
const RenderWithStateAddOns = ({
|
|
10
|
-
Component,
|
|
11
|
-
reducer,
|
|
12
|
-
saga,
|
|
13
|
-
theme = getDefaultTheme(),
|
|
14
|
-
...rest
|
|
15
|
-
}) => {
|
|
16
|
-
const [ready, setReady] = useState(false);
|
|
17
|
-
if (Array.isArray(reducer)) {
|
|
18
|
-
reducer.forEach((r) => useInjectReducer(r));
|
|
19
|
-
} else {
|
|
20
|
-
useInjectReducer(reducer);
|
|
21
|
-
}
|
|
22
|
-
if (Array.isArray(saga)) {
|
|
23
|
-
saga.forEach((s) => useInjectSaga(s));
|
|
24
|
-
} else if (saga) {
|
|
25
|
-
useInjectSaga(saga);
|
|
26
|
-
}
|
|
27
|
-
useEffect(() => {
|
|
28
|
-
setReady(true);
|
|
29
|
-
}, []);
|
|
30
|
-
return ready ? /* @__PURE__ */ React.createElement(ThemeProvider, {
|
|
31
|
-
theme
|
|
32
|
-
}, /* @__PURE__ */ React.createElement(Component, {
|
|
33
|
-
...rest
|
|
34
|
-
})) : null;
|
|
35
|
-
};
|
|
36
|
-
export {
|
|
37
|
-
RenderWithStateAddOns
|
|
38
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import styled from "styled-components";
|
|
3
|
-
import { MediaBreakpoint } from "../media-breakpoint/index.js";
|
|
4
|
-
import { WindowSize } from "../window-size/index.js";
|
|
5
|
-
import { HTMLWaitMessage } from "../modals/wait-message/html-wait-message.js";
|
|
6
|
-
import GlobalStyle from "./style.js";
|
|
7
|
-
const Div = styled.div`
|
|
8
|
-
height: 100%;
|
|
9
|
-
`;
|
|
10
|
-
const HostedApp = ({ children }) => /* @__PURE__ */ React.createElement(Div, null, /* @__PURE__ */ React.createElement(GlobalStyle, null), /* @__PURE__ */ React.createElement(MediaBreakpoint, null), /* @__PURE__ */ React.createElement(WindowSize, null), /* @__PURE__ */ React.createElement(HTMLWaitMessage, {
|
|
11
|
-
close: true
|
|
12
|
-
}), children);
|
|
13
|
-
export {
|
|
14
|
-
HostedApp
|
|
15
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import styled from "styled-components";
|
|
3
|
-
import { LiveAnnouncer } from "react-aria-live";
|
|
4
|
-
import { MediaBreakpoint } from "../media-breakpoint/index.js";
|
|
5
|
-
import { WindowSize } from "../window-size/index.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
|
-
}) => /* @__PURE__ */ React.createElement(LiveAnnouncer, null, /* @__PURE__ */ React.createElement(Div, null, /* @__PURE__ */ React.createElement(GlobalStyle, null), manageSession && /* @__PURE__ */ React.createElement(SessionTimeout, null), /* @__PURE__ */ React.createElement(MediaBreakpoint, null), /* @__PURE__ */ React.createElement(WindowSize, null), /* @__PURE__ */ React.createElement(LiveMessage, null), WaitMessage || /* @__PURE__ */ React.createElement(DefaultWaitMessage, null), /* @__PURE__ */ React.createElement(ErrorToast, null), children));
|
|
19
|
-
export {
|
|
20
|
-
StandAloneApp
|
|
21
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
const DefaultErrorTemplate = () => /* @__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
|
-
};
|