@elliemae/pui-app-sdk 4.0.0-beta.4 → 4.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 +6 -2
- package/dist/cjs/analytics/appdynamics.js +6 -16
- package/dist/cjs/analytics/index.js +2 -15
- package/dist/cjs/analytics/page-view-event.js +1 -0
- package/dist/cjs/analytics/user-session-event.js +1 -0
- package/dist/cjs/analytics/user-wait-event.js +1 -0
- package/dist/cjs/analytics/web-analytics.js +2 -15
- package/dist/cjs/api/auth/index.js +9 -2
- package/dist/cjs/api/helpers.js +8 -1
- package/dist/cjs/api/users/index.js +4 -1
- package/dist/cjs/communication/http-client/index.js +14 -43
- package/dist/cjs/communication/http-client/request-interceptor.js +1 -0
- package/dist/cjs/communication/http-client/response-interceptor.js +5 -1
- package/dist/cjs/communication/http-client/retry-axios.js +5 -1
- package/dist/cjs/communication/http-client/retry.js +1 -0
- package/dist/cjs/data/auth/actions.js +1 -0
- package/dist/cjs/data/auth/reducer.js +15 -8
- package/dist/cjs/data/breakpoint/index.js +5 -1
- package/dist/cjs/data/error/index.js +1 -0
- package/dist/cjs/data/index.js +2 -0
- package/dist/cjs/data/live-message/index.js +1 -0
- package/dist/cjs/data/logout/actions.js +1 -0
- package/dist/cjs/data/navigation-prompt/actions.js +1 -0
- package/dist/cjs/data/react-redux.js +1 -0
- package/dist/cjs/data/reducers.js +5 -17
- package/dist/cjs/data/saga.js +1 -0
- package/dist/cjs/data/store.js +11 -2
- package/dist/cjs/data/wait-message/actions.js +1 -0
- package/dist/cjs/data/wait-message/reducer.js +5 -1
- package/dist/cjs/data/webpack-hmr.js +1 -0
- package/dist/cjs/index.js +13 -1
- package/dist/cjs/micro-frontend.js +1 -0
- package/dist/cjs/sideeffect/auth/index.js +7 -21
- package/dist/cjs/sideeffect/error-toast/index.js +7 -20
- package/dist/cjs/sideeffect/wait-message/index.js +13 -23
- package/dist/cjs/utils/app-config/config.js +5 -1
- package/dist/cjs/utils/app-config/index.js +12 -4
- package/dist/cjs/utils/app-host-integration/react.js +1 -0
- package/dist/cjs/utils/auth/helper.js +5 -1
- package/dist/cjs/utils/auth/index.js +13 -25
- package/dist/cjs/utils/await.js +1 -0
- package/dist/cjs/utils/constants.js +1 -0
- package/dist/cjs/utils/font-size.js +1 -0
- package/dist/cjs/utils/guest-with-service.js +1 -0
- package/dist/cjs/utils/helpers.js +2 -1
- package/dist/cjs/utils/history.js +1 -0
- package/dist/cjs/utils/log-records.js +1 -0
- package/dist/cjs/utils/micro-frontend/console-logger.js +1 -0
- package/dist/cjs/utils/micro-frontend/guest.js +17 -18
- package/dist/cjs/utils/micro-frontend/host.js +14 -2
- package/dist/cjs/utils/micro-frontend/index.js +28 -10
- package/dist/cjs/utils/micro-frontend/ssfguest-adapter.js +55 -0
- package/dist/cjs/utils/micro-frontend/types.js +1 -0
- package/dist/cjs/utils/redact-pii.js +9 -2
- package/dist/cjs/utils/service-worker.js +4 -2
- package/dist/cjs/utils/session.js +15 -4
- package/dist/cjs/utils/storybook/cjs/main.js +1 -0
- package/dist/cjs/utils/storybook/cjs/middleware.js +1 -0
- package/dist/cjs/utils/storybook/cjs/vite.js +1 -0
- package/dist/cjs/utils/storybook/cjs/webpack.js +2 -4
- package/dist/cjs/utils/storybook/manager.js +1 -0
- package/dist/cjs/utils/storybook/preview.js +2 -1
- package/dist/cjs/utils/storybook/theme.js +10 -39
- package/dist/cjs/utils/testing/index.js +7 -22
- package/dist/cjs/utils/testing/render-with-redux.js +7 -24
- package/dist/cjs/utils/testing/render-with-router-redux.js +12 -26
- package/dist/cjs/utils/testing/render-with-router.js +9 -26
- package/dist/cjs/utils/testing/render-with-state-addons.js +15 -45
- package/dist/cjs/utils/types.js +1 -0
- package/dist/cjs/utils/url.js +1 -0
- package/dist/cjs/utils/web-storage.js +5 -1
- package/dist/cjs/utils/window.js +9 -2
- package/dist/cjs/view/app-root/hosted-app.js +14 -3
- package/dist/cjs/view/app-root/index.js +29 -31
- package/dist/cjs/view/app-root/stand-alone-app.js +18 -3
- package/dist/cjs/view/app-root/style.js +1 -0
- package/dist/cjs/view/app-router.js +7 -37
- package/dist/cjs/view/breakpoint/use-breakpoint.js +10 -5
- package/dist/cjs/view/breakpoint/use-media-query-list.js +4 -1
- package/dist/cjs/view/error-boundary/default-error-template.js +12 -5
- package/dist/cjs/view/error-boundary/index.js +10 -21
- package/dist/cjs/view/error-toast/index.js +11 -23
- package/dist/cjs/view/fetch-host-app-data/index.js +5 -1
- package/dist/cjs/view/fetch-host-app-data/store.js +2 -15
- package/dist/cjs/view/fields/autocomplete/index.js +47 -0
- package/dist/cjs/view/fields/check-box/index.js +11 -46
- package/dist/cjs/view/fields/combo-box/index.js +19 -57
- package/dist/cjs/view/fields/combo-box-v3/index.js +42 -0
- package/dist/cjs/view/fields/connect-form.js +4 -15
- package/dist/cjs/view/fields/date-input/index.js +16 -47
- package/dist/cjs/view/fields/date-picker/index.js +20 -45
- package/dist/cjs/view/fields/date-range-picker/index.js +63 -0
- package/dist/cjs/view/fields/date-time-picker/index.js +42 -0
- package/dist/cjs/view/fields/form-item-layout/index.js +10 -38
- package/dist/cjs/view/fields/form-layout-block-item/index.js +14 -44
- package/dist/cjs/view/fields/input-mask/index.js +28 -47
- package/dist/cjs/view/fields/input-text/index.js +40 -0
- package/dist/cjs/view/fields/large-text-box/index.js +16 -47
- package/dist/cjs/view/fields/radio/index.js +18 -56
- package/dist/cjs/view/fields/radio-group/index.js +11 -46
- package/dist/cjs/view/fields/text-box/index.js +16 -47
- package/dist/cjs/view/fields/toggle/index.js +43 -0
- package/dist/cjs/view/fields/watch-value.js +26 -3
- package/dist/cjs/view/form/index.js +14 -19
- package/dist/cjs/view/form/personal-info-section.js +55 -47
- package/dist/cjs/view/form/submit-button/index.js +6 -37
- package/dist/cjs/view/guest-unload-handlers/index.js +1 -0
- package/dist/cjs/view/host-binding-events/index.js +1 -0
- package/dist/cjs/view/live-message/index.js +3 -5
- package/dist/cjs/view/loadable/index.js +9 -22
- package/dist/cjs/view/login/index.js +15 -3
- package/dist/cjs/view/message-to-host-app/index.js +1 -0
- package/dist/cjs/view/micro-app/app-factory/index.js +11 -21
- package/dist/cjs/view/micro-app/const.js +1 -0
- package/dist/cjs/view/micro-app/index.js +7 -3
- package/dist/cjs/view/micro-app/resources/manifest.js +11 -3
- package/dist/cjs/view/micro-app/resources/script.js +8 -2
- package/dist/cjs/view/micro-app/resources/style.js +8 -2
- package/dist/cjs/view/micro-app/types.js +1 -0
- package/dist/cjs/view/micro-app/use-app-will-render.js +38 -44
- package/dist/cjs/view/micro-app/utils.js +1 -0
- package/dist/cjs/view/micro-iframe-app/app.js +24 -47
- package/dist/cjs/view/micro-iframe-app/iframe/const.js +1 -0
- package/dist/cjs/view/micro-iframe-app/iframe/index.js +23 -32
- package/dist/cjs/view/micro-iframe-app/index.js +6 -37
- package/dist/cjs/view/micro-iframe-app/types.js +1 -0
- package/dist/cjs/view/micro-iframe-app/use-frame-loaded.js +1 -0
- package/dist/cjs/view/modals/error/index.js +22 -12
- package/dist/cjs/view/modals/navigation-prompt/index.js +47 -27
- package/dist/cjs/view/modals/session-expiry/customHooks.js +7 -2
- package/dist/cjs/view/modals/session-expiry/index.js +58 -35
- package/dist/cjs/view/modals/wait-message/index.js +26 -58
- package/dist/cjs/view/modals/wait-message/use-html-wait-message.js +1 -0
- package/dist/cjs/view/modals/wait-message/wait-message-launcher.js +1 -0
- package/dist/cjs/view/page.js +16 -3
- package/dist/cjs/view/render-with-delay/index.js +5 -5
- package/dist/cjs/view/render-with-host-data/index.js +3 -5
- package/dist/cjs/view/require-auth.js +22 -9
- package/dist/cjs/view/session-timeout/index.js +16 -14
- package/dist/cjs/view/storybook/decorator.js +6 -7
- package/dist/cjs/view/use-previous.js +1 -0
- package/dist/cjs/view/use-window-size-change.js +1 -0
- package/dist/cjs/view/visually-hidden/index.js +12 -19
- package/dist/esm/analytics/appdynamics.js +1 -17
- package/dist/esm/analytics/index.js +1 -17
- package/dist/esm/analytics/web-analytics.js +1 -17
- package/dist/esm/api/auth/index.js +8 -2
- package/dist/esm/api/helpers.js +7 -1
- package/dist/esm/api/users/index.js +3 -1
- package/dist/esm/communication/http-client/index.js +9 -44
- package/dist/esm/data/auth/reducer.js +10 -7
- package/dist/esm/data/index.js +6 -1
- package/dist/esm/data/reducers.js +4 -19
- package/dist/esm/data/store.js +6 -1
- package/dist/esm/index.js +14 -1
- package/dist/esm/sideeffect/auth/index.js +6 -23
- package/dist/esm/sideeffect/error-toast/index.js +6 -22
- package/dist/esm/sideeffect/wait-message/index.js +12 -25
- package/dist/esm/utils/app-config/index.js +7 -3
- package/dist/esm/utils/auth/index.js +12 -27
- package/dist/esm/utils/helpers.js +1 -1
- package/dist/esm/utils/micro-frontend/guest.js +12 -17
- package/dist/esm/utils/micro-frontend/host.js +13 -2
- package/dist/esm/utils/micro-frontend/index.js +23 -9
- package/dist/esm/utils/micro-frontend/ssfguest-adapter.js +29 -0
- package/dist/esm/utils/redact-pii.js +8 -2
- package/dist/esm/utils/service-worker.js +3 -2
- package/dist/esm/utils/session.js +14 -4
- package/dist/esm/utils/storybook/preview.js +1 -1
- package/dist/esm/utils/storybook/theme.js +9 -41
- package/dist/esm/utils/testing/index.js +6 -21
- package/dist/esm/utils/testing/render-with-redux.js +6 -23
- package/dist/esm/utils/testing/render-with-router-redux.js +11 -25
- package/dist/esm/utils/testing/render-with-router.js +8 -25
- package/dist/esm/utils/testing/render-with-state-addons.js +14 -44
- package/dist/esm/utils/window.js +8 -2
- package/dist/esm/view/app-root/hosted-app.js +9 -2
- package/dist/esm/view/app-root/index.js +28 -30
- package/dist/esm/view/app-root/stand-alone-app.js +13 -2
- package/dist/esm/view/app-router.js +6 -36
- package/dist/esm/view/breakpoint/use-breakpoint.js +9 -5
- package/dist/esm/view/breakpoint/use-media-query-list.js +3 -1
- package/dist/esm/view/error-boundary/default-error-template.js +11 -2
- package/dist/esm/view/error-boundary/index.js +5 -22
- package/dist/esm/view/error-toast/index.js +10 -22
- package/dist/esm/view/fetch-host-app-data/store.js +1 -17
- package/dist/esm/view/fields/autocomplete/index.js +27 -0
- package/dist/esm/view/fields/check-box/index.js +10 -45
- package/dist/esm/view/fields/combo-box/index.js +18 -56
- package/dist/esm/view/fields/combo-box-v3/index.js +24 -0
- package/dist/esm/view/fields/connect-form.js +3 -17
- package/dist/esm/view/fields/date-input/index.js +15 -46
- package/dist/esm/view/fields/date-picker/index.js +15 -46
- package/dist/esm/view/fields/date-range-picker/index.js +45 -0
- package/dist/esm/view/fields/date-time-picker/index.js +24 -0
- package/dist/esm/view/fields/form-item-layout/index.js +9 -37
- package/dist/esm/view/fields/form-layout-block-item/index.js +13 -43
- package/dist/esm/view/fields/input-mask/index.js +27 -46
- package/dist/esm/view/fields/input-text/index.js +22 -0
- package/dist/esm/view/fields/large-text-box/index.js +15 -46
- package/dist/esm/view/fields/radio/index.js +17 -55
- package/dist/esm/view/fields/radio-group/index.js +10 -45
- package/dist/esm/view/fields/text-box/index.js +15 -46
- package/dist/esm/view/fields/toggle/index.js +25 -0
- package/dist/esm/view/fields/watch-value.js +21 -2
- package/dist/esm/view/form/index.js +9 -20
- package/dist/esm/view/form/personal-info-section.js +50 -46
- package/dist/esm/view/form/submit-button/index.js +5 -36
- package/dist/esm/view/live-message/index.js +2 -2
- package/dist/esm/view/loadable/index.js +8 -21
- package/dist/esm/view/login/index.js +15 -4
- package/dist/esm/view/micro-app/app-factory/index.js +10 -23
- package/dist/esm/view/micro-app/index.js +2 -2
- package/dist/esm/view/micro-app/resources/manifest.js +10 -3
- package/dist/esm/view/micro-app/resources/script.js +7 -2
- package/dist/esm/view/micro-app/resources/style.js +7 -2
- package/dist/esm/view/micro-app/use-app-will-render.js +37 -46
- package/dist/esm/view/micro-iframe-app/app.js +19 -48
- package/dist/esm/view/micro-iframe-app/iframe/index.js +18 -33
- package/dist/esm/view/micro-iframe-app/index.js +5 -36
- package/dist/esm/view/modals/error/index.js +21 -9
- package/dist/esm/view/modals/navigation-prompt/index.js +46 -24
- package/dist/esm/view/modals/session-expiry/customHooks.js +6 -2
- package/dist/esm/view/modals/session-expiry/index.js +57 -32
- package/dist/esm/view/modals/wait-message/index.js +25 -57
- package/dist/esm/view/page.js +11 -2
- package/dist/esm/view/render-with-delay/index.js +4 -2
- package/dist/esm/view/render-with-host-data/index.js +2 -2
- package/dist/esm/view/require-auth.js +18 -9
- package/dist/esm/view/session-timeout/index.js +15 -11
- package/dist/esm/view/storybook/decorator.js +5 -4
- package/dist/esm/view/visually-hidden/index.js +7 -20
- package/dist/types/__mocks__/@elliemae/em-ssf-guest.d.ts +6 -0
- package/dist/types/{analytics → lib/analytics}/appdynamics.d.ts +0 -0
- package/dist/types/{analytics → lib/analytics}/index.d.ts +0 -0
- package/dist/types/{analytics → lib/analytics}/page-view-event.d.ts +0 -0
- package/dist/types/{analytics → lib/analytics}/user-session-event.d.ts +0 -0
- package/dist/types/{analytics → lib/analytics}/user-wait-event.d.ts +0 -0
- package/dist/types/{analytics → lib/analytics}/web-analytics.d.ts +0 -0
- package/dist/types/{api → lib/api}/auth/index.d.ts +0 -0
- package/dist/types/{api → lib/api}/helpers.d.ts +0 -0
- package/dist/types/{api → lib/api}/users/index.d.ts +0 -0
- package/dist/types/{api → lib/api}/users/index.endpoint.d.ts +0 -0
- package/dist/types/{communication → lib/communication}/http-client/index.d.ts +0 -0
- package/dist/types/{communication → lib/communication}/http-client/request-interceptor.d.ts +0 -0
- package/dist/types/{communication → lib/communication}/http-client/response-interceptor.d.ts +0 -0
- package/dist/types/{communication → lib/communication}/http-client/retry-axios.d.ts +0 -0
- package/dist/types/{communication → lib/communication}/http-client/retry.d.ts +0 -0
- package/dist/types/{communication → lib/communication}/http-client/tests/hello.endpoint.d.ts +0 -0
- package/dist/types/{communication → lib/communication}/http-client/tests/index.test.d.ts +0 -0
- package/dist/types/{communication → lib/communication}/http-client/tests/private.endpoint.d.ts +0 -0
- package/dist/types/{data → lib/data}/auth/actions.d.ts +0 -0
- package/dist/types/{data → lib/data}/auth/reducer.d.ts +0 -0
- package/dist/types/{data → lib/data}/breakpoint/index.d.ts +0 -0
- package/dist/types/{data → lib/data}/error/index.d.ts +0 -0
- package/dist/types/{data → lib/data}/index.d.ts +1 -1
- package/dist/types/{data → lib/data}/live-message/index.d.ts +0 -0
- package/dist/types/{data → lib/data}/logout/actions.d.ts +0 -0
- package/dist/types/{data → lib/data}/navigation-prompt/actions.d.ts +0 -0
- package/dist/types/{data → lib/data}/react-redux.d.ts +0 -0
- package/dist/types/{data → lib/data}/reducers.d.ts +0 -0
- package/dist/types/{data → lib/data}/saga.d.ts +0 -0
- package/dist/types/{data → lib/data}/store.d.ts +1 -1
- package/dist/types/{data → lib/data}/tests/store.test.d.ts +0 -0
- package/dist/types/{data → lib/data}/wait-message/actions.d.ts +0 -0
- package/dist/types/{data → lib/data}/wait-message/reducer.d.ts +0 -0
- package/dist/types/{data → lib/data}/webpack-hmr.d.ts +0 -0
- package/dist/types/{index.d.ts → lib/index.d.ts} +6 -3
- package/dist/types/{micro-frontend.d.ts → lib/micro-frontend.d.ts} +0 -0
- package/dist/types/{sideeffect → lib/sideeffect}/auth/index.d.ts +0 -0
- package/dist/types/{sideeffect → lib/sideeffect}/error-toast/index.d.ts +0 -0
- package/dist/types/{sideeffect → lib/sideeffect}/wait-message/index.d.ts +0 -0
- package/dist/types/{utils → lib/utils}/app-config/config.d.ts +0 -0
- package/dist/types/lib/utils/app-config/index.d.ts +1 -0
- package/dist/types/{utils → lib/utils}/app-host-integration/react.d.ts +0 -0
- package/dist/types/{utils → lib/utils}/auth/helper.d.ts +0 -0
- package/dist/types/{utils → lib/utils}/auth/index.d.ts +3 -1
- package/dist/types/{utils → lib/utils}/await.d.ts +0 -0
- package/dist/types/{utils → lib/utils}/constants.d.ts +0 -0
- package/dist/types/{utils → lib/utils}/font-size.d.ts +0 -0
- package/dist/types/{utils → lib/utils}/guest-with-service.d.ts +0 -0
- package/dist/types/{utils → lib/utils}/helpers.d.ts +0 -0
- package/dist/types/{utils → lib/utils}/history.d.ts +0 -0
- package/dist/types/{utils → lib/utils}/log-records.d.ts +0 -0
- package/dist/types/{utils → lib/utils}/micro-frontend/console-logger.d.ts +0 -0
- package/dist/types/{utils → lib/utils}/micro-frontend/guest.d.ts +1 -1
- package/dist/types/{utils → lib/utils}/micro-frontend/host.d.ts +3 -1
- package/dist/types/{utils → lib/utils}/micro-frontend/index.d.ts +0 -0
- package/dist/types/lib/utils/micro-frontend/ssfguest-adapter.d.ts +7 -0
- package/dist/types/lib/utils/micro-frontend/tests/guest-ssf-host.test.d.ts +1 -0
- package/dist/types/lib/utils/micro-frontend/tests/guest.test.d.ts +1 -0
- package/dist/types/{utils → lib/utils}/micro-frontend/types.d.ts +0 -0
- package/dist/types/{utils → lib/utils}/redact-pii.d.ts +0 -0
- package/dist/types/{utils → lib/utils}/service-worker.d.ts +0 -0
- package/dist/types/{utils → lib/utils}/session.d.ts +0 -0
- package/dist/types/{utils → lib/utils}/storybook/cjs/main.d.ts +0 -0
- package/dist/types/{utils → lib/utils}/storybook/cjs/middleware.d.ts +0 -0
- package/dist/types/{utils → lib/utils}/storybook/cjs/vite.d.ts +0 -0
- package/dist/types/{utils → lib/utils}/storybook/cjs/webpack.d.ts +0 -0
- package/dist/types/{utils → lib/utils}/storybook/manager.d.ts +0 -0
- package/dist/types/{utils → lib/utils}/storybook/preview.d.ts +0 -0
- package/dist/types/{utils → lib/utils}/storybook/theme.d.ts +0 -0
- package/dist/types/lib/utils/testing/index.d.ts +4 -0
- package/dist/types/{utils → lib/utils}/testing/render-with-redux.d.ts +0 -0
- package/dist/types/{utils → lib/utils}/testing/render-with-router-redux.d.ts +0 -0
- package/dist/types/{utils → lib/utils}/testing/render-with-router.d.ts +0 -0
- package/dist/types/{utils → lib/utils}/testing/render-with-state-addons.d.ts +0 -0
- package/dist/types/{utils → lib/utils}/types.d.ts +0 -0
- package/dist/types/{utils → lib/utils}/url.d.ts +0 -0
- package/dist/types/{utils → lib/utils}/web-storage.d.ts +0 -0
- package/dist/types/{utils → lib/utils}/window.d.ts +0 -0
- package/dist/types/{view → lib/view}/app-root/hosted-app.d.ts +0 -0
- package/dist/types/{view → lib/view}/app-root/index.d.ts +2 -1
- package/dist/types/{view → lib/view}/app-root/stand-alone-app.d.ts +0 -0
- package/dist/types/{view → lib/view}/app-root/style.d.ts +0 -0
- package/dist/types/{view → lib/view}/app-router.d.ts +1 -1
- package/dist/types/{view → lib/view}/breakpoint/index.stories.d.ts +0 -0
- package/dist/types/{view → lib/view}/breakpoint/use-breakpoint.d.ts +0 -0
- package/dist/types/{view → lib/view}/breakpoint/use-media-query-list.d.ts +0 -0
- package/dist/types/{view → lib/view}/error-boundary/default-error-template.d.ts +0 -0
- package/dist/types/{view → lib/view}/error-boundary/index.d.ts +2 -1
- package/dist/types/{view → lib/view}/error-toast/index.d.ts +0 -0
- package/dist/types/{view → lib/view}/error-toast/index.stories.d.ts +0 -0
- package/dist/types/{view → lib/view}/fetch-host-app-data/index.d.ts +0 -0
- package/dist/types/{view → lib/view}/fetch-host-app-data/store.d.ts +0 -0
- package/dist/types/lib/view/fields/autocomplete/index.d.ts +13 -0
- package/dist/types/lib/view/fields/autocomplete/index.stories.d.ts +5 -0
- package/dist/types/{view → lib/view}/fields/check-box/index.d.ts +0 -0
- package/dist/types/{view → lib/view}/fields/check-box/index.stories.d.ts +0 -0
- package/dist/types/{view → lib/view}/fields/check-box/set-value.stories.d.ts +0 -0
- package/dist/types/{view → lib/view}/fields/combo-box/index.d.ts +0 -0
- package/dist/types/{view → lib/view}/fields/combo-box/index.stories.d.ts +0 -0
- package/dist/types/lib/view/fields/combo-box-v3/index.d.ts +9 -0
- package/dist/types/lib/view/fields/combo-box-v3/index.stories.d.ts +5 -0
- package/dist/types/{view → lib/view}/fields/connect-form.d.ts +0 -0
- package/dist/types/{view → lib/view}/fields/date-input/index.d.ts +0 -0
- package/dist/types/{view → lib/view}/fields/date-input/index.stories.d.ts +0 -0
- package/dist/types/{view → lib/view}/fields/date-picker/index.d.ts +0 -0
- package/dist/types/{view → lib/view}/fields/date-picker/index.stories.d.ts +0 -0
- package/dist/types/lib/view/fields/date-range-picker/index.d.ts +9 -0
- package/dist/types/lib/view/fields/date-range-picker/index.stories.d.ts +7 -0
- package/dist/types/lib/view/fields/date-time-picker/index.d.ts +9 -0
- package/dist/types/lib/view/fields/date-time-picker/index.stories.d.ts +7 -0
- package/dist/types/{view → lib/view}/fields/form-item-layout/index.d.ts +1 -1
- package/dist/types/{view → lib/view}/fields/form-item-layout/index.stories.d.ts +0 -0
- package/dist/types/{view → lib/view}/fields/form-layout-block-item/index.d.ts +0 -0
- package/dist/types/{view → lib/view}/fields/form-layout-block-item/index.stories.d.ts +0 -0
- package/dist/types/{view → lib/view}/fields/input-mask/index.d.ts +3 -1
- package/dist/types/{view → lib/view}/fields/input-mask/index.stories.d.ts +0 -0
- package/dist/types/lib/view/fields/input-text/index.d.ts +9 -0
- package/dist/types/lib/view/fields/input-text/index.stories.d.ts +7 -0
- package/dist/types/{view → lib/view}/fields/large-text-box/index.d.ts +0 -0
- package/dist/types/{view → lib/view}/fields/large-text-box/index.stories.d.ts +0 -0
- package/dist/types/{view → lib/view}/fields/radio/index.d.ts +0 -0
- package/dist/types/{view → lib/view}/fields/radio/index.stories.d.ts +0 -0
- package/dist/types/{view → lib/view}/fields/radio/set-value.stories.d.ts +0 -0
- package/dist/types/{view → lib/view}/fields/radio-group/index.d.ts +0 -0
- package/dist/types/{view → lib/view}/fields/radio-group/index.stories.d.ts +0 -0
- package/dist/types/{view → lib/view}/fields/text-box/index.d.ts +0 -0
- package/dist/types/{view → lib/view}/fields/text-box/index.stories.d.ts +0 -0
- package/dist/types/lib/view/fields/toggle/index.d.ts +9 -0
- package/dist/types/lib/view/fields/toggle/index.stories.d.ts +7 -0
- package/dist/types/{view → lib/view}/fields/watch-value.d.ts +0 -0
- package/dist/types/{view → lib/view}/form/index.d.ts +0 -0
- package/dist/types/{view → lib/view}/form/index.stories.d.ts +0 -0
- package/dist/types/{view → lib/view}/form/personal-info-section.d.ts +0 -0
- package/dist/types/{view → lib/view}/form/submit-button/index.d.ts +0 -0
- package/dist/types/{view → lib/view}/form/usecases.stories.d.ts +0 -0
- package/dist/types/{view → lib/view}/guest-unload-handlers/index.d.ts +0 -0
- package/dist/types/{view → lib/view}/host-binding-events/index.d.ts +0 -0
- package/dist/types/{view → lib/view}/live-message/index.d.ts +0 -0
- package/dist/types/{view → lib/view}/live-message/index.stories.d.ts +0 -0
- package/dist/types/{view → lib/view}/loadable/index.d.ts +0 -0
- package/dist/types/lib/view/login/index.d.ts +9 -0
- package/dist/types/{view → lib/view}/message-to-host-app/index.d.ts +0 -0
- package/dist/types/{view → lib/view}/micro-app/app-factory/index.d.ts +0 -0
- package/dist/types/{view → lib/view}/micro-app/const.d.ts +0 -0
- package/dist/types/{view → lib/view}/micro-app/index.d.ts +0 -0
- package/dist/types/{view → lib/view}/micro-app/resources/manifest.d.ts +0 -0
- package/dist/types/{view → lib/view}/micro-app/resources/script.d.ts +0 -0
- package/dist/types/{view → lib/view}/micro-app/resources/style.d.ts +0 -0
- package/dist/types/{view → lib/view}/micro-app/types.d.ts +0 -0
- package/dist/types/{view → lib/view}/micro-app/use-app-will-render.d.ts +0 -0
- package/dist/types/{view → lib/view}/micro-app/utils.d.ts +0 -0
- package/dist/types/{view → lib/view}/micro-iframe-app/app.d.ts +0 -0
- package/dist/types/{view → lib/view}/micro-iframe-app/iframe/const.d.ts +0 -0
- package/dist/types/{view → lib/view}/micro-iframe-app/iframe/index.d.ts +0 -0
- package/dist/types/{view → lib/view}/micro-iframe-app/index.d.ts +0 -0
- package/dist/types/{view → lib/view}/micro-iframe-app/types.d.ts +0 -0
- package/dist/types/{view → lib/view}/micro-iframe-app/use-frame-loaded.d.ts +0 -0
- package/dist/types/{view → lib/view}/modals/error/index.d.ts +2 -0
- package/dist/types/{view → lib/view}/modals/error/index.stories.d.ts +0 -0
- package/dist/types/{view → lib/view}/modals/navigation-prompt/index.d.ts +1 -1
- package/dist/types/{view → lib/view}/modals/navigation-prompt/index.stories.d.ts +0 -0
- package/dist/types/{view → lib/view}/modals/session-expiry/customHooks.d.ts +0 -0
- package/dist/types/{view → lib/view}/modals/session-expiry/index.d.ts +0 -0
- package/dist/types/{view → lib/view}/modals/session-expiry/index.stories.d.ts +0 -0
- package/dist/types/{view → lib/view}/modals/wait-message/index.d.ts +0 -0
- package/dist/types/{view → lib/view}/modals/wait-message/index.stories.d.ts +0 -0
- package/dist/types/{view → lib/view}/modals/wait-message/use-html-wait-message.d.ts +0 -0
- package/dist/types/{view → lib/view}/modals/wait-message/wait-message-launcher.d.ts +0 -0
- package/dist/types/{view → lib/view}/page.d.ts +0 -0
- package/dist/types/{view → lib/view}/render-with-delay/index.d.ts +0 -0
- package/dist/types/{view → lib/view}/render-with-host-data/index.d.ts +0 -0
- package/dist/types/{view → lib/view}/require-auth.d.ts +0 -0
- package/dist/types/{view → lib/view}/session-timeout/index.d.ts +0 -0
- package/dist/types/{view → lib/view}/session-timeout/index.stories.d.ts +0 -0
- package/dist/types/{view → lib/view}/storybook/decorator.d.ts +0 -0
- package/dist/types/{view → lib/view}/use-previous.d.ts +0 -0
- package/dist/types/{view → lib/view}/use-window-size-change.d.ts +0 -0
- package/dist/types/{view → lib/view}/visually-hidden/index.d.ts +0 -0
- package/package.json +57 -52
- package/dist/types/utils/app-config/index.d.ts +0 -1
- package/dist/types/utils/testing/index.d.ts +0 -4
- package/dist/types/view/login/index.d.ts +0 -7
|
@@ -19,14 +19,20 @@ const resetUserIdleTime = (resetWarningModal = false) => {
|
|
|
19
19
|
}).catch(() => {
|
|
20
20
|
});
|
|
21
21
|
};
|
|
22
|
-
const throttledResetUserIdleTime = throttle(
|
|
22
|
+
const throttledResetUserIdleTime = throttle(
|
|
23
|
+
resetUserIdleTime,
|
|
24
|
+
THROTTLING_TIME,
|
|
25
|
+
{ leading: true }
|
|
26
|
+
);
|
|
23
27
|
const isPastWarningTime = (warnInterval = getAppConfigValue("sessionTimeoutWarnInterval") || SESSION_TIMEOUT_INTERVAL.WARN) => Date.now() - lastUserActivityTimeStamp > warnInterval;
|
|
24
28
|
const isPastSessionTimeoutTime = (sessionTimeout = getAppConfigValue("sessionTimeoutInterval") || SESSION_TIMEOUT_INTERVAL.EXPIRY) => Date.now() - lastUserActivityTimeStamp > sessionTimeout;
|
|
25
29
|
const notifySessionExpiryWarning = () => {
|
|
26
30
|
sessionExpiryWarningNotified = true;
|
|
27
31
|
sessionExpiryWarningNotifiedAt = Date.now();
|
|
28
32
|
Promise.resolve().then(() => {
|
|
29
|
-
warnListeners.forEach(
|
|
33
|
+
warnListeners.forEach(
|
|
34
|
+
(listener) => listener(sessionExpiryWarningNotifiedAt)
|
|
35
|
+
);
|
|
30
36
|
}).catch(() => {
|
|
31
37
|
});
|
|
32
38
|
};
|
|
@@ -79,10 +85,14 @@ const trackActivity = (element, cb) => {
|
|
|
79
85
|
return () => {
|
|
80
86
|
};
|
|
81
87
|
const thorttledCb = throttle(cb, THROTTLING_TIME, { leading: true });
|
|
82
|
-
userInteractionEvents.forEach(
|
|
88
|
+
userInteractionEvents.forEach(
|
|
89
|
+
(r) => element.addEventListener(r, thorttledCb)
|
|
90
|
+
);
|
|
83
91
|
return () => {
|
|
84
92
|
userInteractionEvents.forEach((r) => element.removeEventListener(r, cb));
|
|
85
|
-
userInteractionEvents.forEach(
|
|
93
|
+
userInteractionEvents.forEach(
|
|
94
|
+
(r) => element.removeEventListener(r, thorttledCb)
|
|
95
|
+
);
|
|
86
96
|
};
|
|
87
97
|
};
|
|
88
98
|
export {
|
|
@@ -1,45 +1,13 @@
|
|
|
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
1
|
import { create } from "@storybook/theming/create";
|
|
30
|
-
const createTheme = (
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
base,
|
|
40
|
-
brandTitle: `${brandTitle} ${process.env.STORYBOOK_VERSION || ""}`
|
|
41
|
-
}, rest));
|
|
42
|
-
};
|
|
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
|
+
});
|
|
43
11
|
export {
|
|
44
12
|
createTheme
|
|
45
13
|
};
|
|
@@ -1,20 +1,4 @@
|
|
|
1
|
-
|
|
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";
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
18
2
|
import { render } from "@testing-library/react";
|
|
19
3
|
import { getDefaultTheme } from "@elliemae/pui-theme";
|
|
20
4
|
import { createAppStore } from "../../data/store.js";
|
|
@@ -26,12 +10,13 @@ const AllTheProviders = ({
|
|
|
26
10
|
store = defaultStore,
|
|
27
11
|
theme = defaultTheme,
|
|
28
12
|
children
|
|
29
|
-
}) => /* @__PURE__ */
|
|
13
|
+
}) => /* @__PURE__ */ jsx(AppRoot, {
|
|
30
14
|
store,
|
|
31
15
|
history: browserHistory,
|
|
32
|
-
theme
|
|
33
|
-
|
|
34
|
-
|
|
16
|
+
theme,
|
|
17
|
+
children
|
|
18
|
+
});
|
|
19
|
+
const customRender = (ui, options) => render(ui, { wrapper: AllTheProviders, ...options });
|
|
35
20
|
export * from "@testing-library/react";
|
|
36
21
|
export {
|
|
37
22
|
customRender as render
|
|
@@ -1,23 +1,4 @@
|
|
|
1
|
-
|
|
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";
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
21
2
|
import { render } from "@testing-library/react";
|
|
22
3
|
import { Provider } from "react-redux";
|
|
23
4
|
import { createAppStore } from "../../data/store.js";
|
|
@@ -25,9 +6,11 @@ import { browserHistory } from "../history.js";
|
|
|
25
6
|
const renderWithRedux = (ui, {
|
|
26
7
|
initialState,
|
|
27
8
|
store = createAppStore(initialState, browserHistory)
|
|
28
|
-
} = {}) =>
|
|
29
|
-
|
|
30
|
-
|
|
9
|
+
} = {}) => ({
|
|
10
|
+
...render(/* @__PURE__ */ jsx(Provider, {
|
|
11
|
+
store,
|
|
12
|
+
children: ui
|
|
13
|
+
})),
|
|
31
14
|
store
|
|
32
15
|
});
|
|
33
16
|
export {
|
|
@@ -1,23 +1,4 @@
|
|
|
1
|
-
|
|
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";
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
21
2
|
import { render } from "@testing-library/react";
|
|
22
3
|
import { Provider } from "react-redux";
|
|
23
4
|
import { createMemoryHistory } from "history";
|
|
@@ -29,11 +10,16 @@ const renderWithRouterRedux = (ui, {
|
|
|
29
10
|
history = createMemoryHistory({ initialEntries: [route] }),
|
|
30
11
|
initialState,
|
|
31
12
|
store = createAppStore(initialState, browserHistory)
|
|
32
|
-
} = {}) =>
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
13
|
+
} = {}) => ({
|
|
14
|
+
...render(
|
|
15
|
+
/* @__PURE__ */ jsx(Provider, {
|
|
16
|
+
store,
|
|
17
|
+
children: /* @__PURE__ */ jsx(AppRouter, {
|
|
18
|
+
history,
|
|
19
|
+
children: ui
|
|
20
|
+
})
|
|
21
|
+
})
|
|
22
|
+
),
|
|
37
23
|
store
|
|
38
24
|
});
|
|
39
25
|
export {
|
|
@@ -1,23 +1,4 @@
|
|
|
1
|
-
|
|
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";
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
21
2
|
import { render } from "@testing-library/react";
|
|
22
3
|
import { createMemoryHistory } from "history";
|
|
23
4
|
import { AppRouter } from "../../view/app-router.js";
|
|
@@ -25,12 +6,14 @@ const renderWithRouter = (ui, {
|
|
|
25
6
|
route = "/",
|
|
26
7
|
history = createMemoryHistory({ initialEntries: [route] })
|
|
27
8
|
} = {}) => {
|
|
28
|
-
const renderResult = render(/* @__PURE__ */
|
|
29
|
-
history
|
|
30
|
-
|
|
31
|
-
|
|
9
|
+
const renderResult = render(/* @__PURE__ */ jsx(AppRouter, {
|
|
10
|
+
history,
|
|
11
|
+
children: ui
|
|
12
|
+
}));
|
|
13
|
+
return {
|
|
14
|
+
...renderResult,
|
|
32
15
|
history
|
|
33
|
-
}
|
|
16
|
+
};
|
|
34
17
|
};
|
|
35
18
|
export {
|
|
36
19
|
renderWithRouter
|
|
@@ -1,32 +1,4 @@
|
|
|
1
|
-
|
|
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";
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
30
2
|
import { useEffect, useState } from "react";
|
|
31
3
|
import { ThemeProvider } from "styled-components";
|
|
32
4
|
import { getDefaultTheme } from "@elliemae/pui-theme";
|
|
@@ -34,18 +6,13 @@ import {
|
|
|
34
6
|
useInjectReducer,
|
|
35
7
|
useInjectSaga
|
|
36
8
|
} from "redux-injectors";
|
|
37
|
-
const RenderWithStateAddOns = (
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
"Component",
|
|
45
|
-
"reducer",
|
|
46
|
-
"saga",
|
|
47
|
-
"theme"
|
|
48
|
-
]);
|
|
9
|
+
const RenderWithStateAddOns = ({
|
|
10
|
+
Component,
|
|
11
|
+
reducer,
|
|
12
|
+
saga,
|
|
13
|
+
theme = getDefaultTheme(),
|
|
14
|
+
...rest
|
|
15
|
+
}) => {
|
|
49
16
|
const [ready, setReady] = useState(false);
|
|
50
17
|
if (Array.isArray(reducer)) {
|
|
51
18
|
reducer.forEach((r) => useInjectReducer(r));
|
|
@@ -60,9 +27,12 @@ const RenderWithStateAddOns = (_a) => {
|
|
|
60
27
|
useEffect(() => {
|
|
61
28
|
setReady(true);
|
|
62
29
|
}, []);
|
|
63
|
-
return ready ? /* @__PURE__ */
|
|
64
|
-
theme
|
|
65
|
-
|
|
30
|
+
return ready ? /* @__PURE__ */ jsx(ThemeProvider, {
|
|
31
|
+
theme,
|
|
32
|
+
children: /* @__PURE__ */ jsx(Component, {
|
|
33
|
+
...rest
|
|
34
|
+
})
|
|
35
|
+
}) : null;
|
|
66
36
|
};
|
|
67
37
|
export {
|
|
68
38
|
RenderWithStateAddOns
|
package/dist/esm/utils/window.js
CHANGED
|
@@ -8,8 +8,14 @@ const getWindow = () => {
|
|
|
8
8
|
}
|
|
9
9
|
};
|
|
10
10
|
const getViewportSize = () => ({
|
|
11
|
-
width: Math.max(
|
|
12
|
-
|
|
11
|
+
width: Math.max(
|
|
12
|
+
document.documentElement.clientWidth || 0,
|
|
13
|
+
window.innerWidth || 0
|
|
14
|
+
),
|
|
15
|
+
height: Math.max(
|
|
16
|
+
document.documentElement.clientHeight || 0,
|
|
17
|
+
window.innerHeight || 0
|
|
18
|
+
)
|
|
13
19
|
});
|
|
14
20
|
const convertBreakpointToNumber = (breakpoint) => Number(breakpoint.replace("px", ""));
|
|
15
21
|
const getCurrentBreakpoint = () => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import styled from "styled-components";
|
|
3
3
|
import { ErrorToast } from "../error-toast/index.js";
|
|
4
4
|
import { WaitMessage as DefaultWaitMessage } from "../modals/wait-message/index.js";
|
|
@@ -13,7 +13,14 @@ const HostedApp = ({ WaitMessage, children }) => {
|
|
|
13
13
|
useBreakpoint();
|
|
14
14
|
useHTMLWaitMessage(true);
|
|
15
15
|
useWindowSizeChange();
|
|
16
|
-
return /* @__PURE__ */
|
|
16
|
+
return /* @__PURE__ */ jsxs(Div, {
|
|
17
|
+
children: [
|
|
18
|
+
/* @__PURE__ */ jsx(GlobalStyle, {}),
|
|
19
|
+
WaitMessage || /* @__PURE__ */ jsx(DefaultWaitMessage, {}),
|
|
20
|
+
/* @__PURE__ */ jsx(ErrorToast, {}),
|
|
21
|
+
children
|
|
22
|
+
]
|
|
23
|
+
});
|
|
17
24
|
};
|
|
18
25
|
export {
|
|
19
26
|
HostedApp
|
|
@@ -1,20 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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";
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { StrictMode } from "react";
|
|
18
3
|
import { Provider } from "react-redux";
|
|
19
4
|
import { ThemeProvider } from "styled-components";
|
|
20
5
|
import { getDefaultTheme } from "@elliemae/pui-theme";
|
|
@@ -25,28 +10,41 @@ import { StandAloneApp } from "./stand-alone-app.js";
|
|
|
25
10
|
import { HostedApp } from "./hosted-app.js";
|
|
26
11
|
const AppToRender = (props) => {
|
|
27
12
|
const isParent = isStandAloneGuest() || isHost();
|
|
28
|
-
return isParent ? /* @__PURE__ */
|
|
13
|
+
return isParent ? /* @__PURE__ */ jsx(StandAloneApp, {
|
|
14
|
+
...props
|
|
15
|
+
}) : /* @__PURE__ */ jsx(HostedApp, {
|
|
16
|
+
...props
|
|
17
|
+
});
|
|
29
18
|
};
|
|
30
19
|
const AppRoot = ({
|
|
31
20
|
store,
|
|
32
21
|
history,
|
|
22
|
+
basename,
|
|
33
23
|
theme = getDefaultTheme(),
|
|
34
24
|
manageSession = false,
|
|
35
25
|
WaitMessage,
|
|
36
26
|
errorTemplate,
|
|
37
27
|
children
|
|
38
|
-
}) => /* @__PURE__ */
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
28
|
+
}) => /* @__PURE__ */ jsx(StrictMode, {
|
|
29
|
+
children: /* @__PURE__ */ jsx(ErrorBoundary, {
|
|
30
|
+
errorTemplate,
|
|
31
|
+
children: /* @__PURE__ */ jsx(Provider, {
|
|
32
|
+
store,
|
|
33
|
+
children: /* @__PURE__ */ jsx(AppRouter, {
|
|
34
|
+
history,
|
|
35
|
+
basename,
|
|
36
|
+
children: /* @__PURE__ */ jsx(ThemeProvider, {
|
|
37
|
+
theme,
|
|
38
|
+
children: /* @__PURE__ */ jsx(AppToRender, {
|
|
39
|
+
manageSession,
|
|
40
|
+
WaitMessage,
|
|
41
|
+
children
|
|
42
|
+
})
|
|
43
|
+
})
|
|
44
|
+
})
|
|
45
|
+
})
|
|
46
|
+
})
|
|
47
|
+
});
|
|
50
48
|
export {
|
|
51
49
|
AppRoot
|
|
52
50
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import styled from "styled-components";
|
|
3
3
|
import { LiveAnnouncer } from "react-aria-live";
|
|
4
4
|
import { useBreakpoint } from "../breakpoint/use-breakpoint.js";
|
|
@@ -18,7 +18,18 @@ const StandAloneApp = ({
|
|
|
18
18
|
}) => {
|
|
19
19
|
useBreakpoint();
|
|
20
20
|
useWindowSizeChange();
|
|
21
|
-
return /* @__PURE__ */
|
|
21
|
+
return /* @__PURE__ */ jsx(LiveAnnouncer, {
|
|
22
|
+
children: /* @__PURE__ */ jsxs(Div, {
|
|
23
|
+
children: [
|
|
24
|
+
/* @__PURE__ */ jsx(GlobalStyle, {}),
|
|
25
|
+
manageSession && /* @__PURE__ */ jsx(SessionTimeout, {}),
|
|
26
|
+
/* @__PURE__ */ jsx(LiveMessage, {}),
|
|
27
|
+
WaitMessage || /* @__PURE__ */ jsx(DefaultWaitMessage, {}),
|
|
28
|
+
/* @__PURE__ */ jsx(ErrorToast, {}),
|
|
29
|
+
children
|
|
30
|
+
]
|
|
31
|
+
})
|
|
32
|
+
});
|
|
22
33
|
};
|
|
23
34
|
export {
|
|
24
35
|
StandAloneApp
|
|
@@ -1,39 +1,7 @@
|
|
|
1
|
-
|
|
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";
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
33
2
|
import { useState, useLayoutEffect } from "react";
|
|
34
3
|
import { Router } from "react-router-dom";
|
|
35
|
-
const AppRouter = (
|
|
36
|
-
var _b = _a, { history } = _b, props = __objRest(_b, ["history"]);
|
|
4
|
+
const AppRouter = ({ history, basename, ...props }) => {
|
|
37
5
|
const [state, setState] = useState({
|
|
38
6
|
action: history.action,
|
|
39
7
|
location: history.location
|
|
@@ -53,11 +21,13 @@ const AppRouter = (_a) => {
|
|
|
53
21
|
unlisten();
|
|
54
22
|
};
|
|
55
23
|
}, [history]);
|
|
56
|
-
return /* @__PURE__ */
|
|
24
|
+
return /* @__PURE__ */ jsx(Router, {
|
|
25
|
+
...props,
|
|
26
|
+
basename,
|
|
57
27
|
location: state.location,
|
|
58
28
|
navigationType: state.action,
|
|
59
29
|
navigator: history
|
|
60
|
-
})
|
|
30
|
+
});
|
|
61
31
|
};
|
|
62
32
|
export {
|
|
63
33
|
AppRouter
|
|
@@ -7,11 +7,15 @@ import { useMediaQueryList } from "./use-media-query-list.js";
|
|
|
7
7
|
import { HOST_WINDOW_BREAKPOINT_CHANGED } from "../../utils/constants.js";
|
|
8
8
|
const useBreakpoint = () => {
|
|
9
9
|
const theme = useContext(ThemeContext);
|
|
10
|
-
const currentBreakpoint = useMediaQueryList(
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
const currentBreakpoint = useMediaQueryList(
|
|
11
|
+
[
|
|
12
|
+
`(max-width: ${theme.breakpoints.small})`,
|
|
13
|
+
`(max-width: ${theme.breakpoints.medium})`,
|
|
14
|
+
`(max-width: ${theme.breakpoints.large})`
|
|
15
|
+
],
|
|
16
|
+
["small", "medium", "large"],
|
|
17
|
+
"large"
|
|
18
|
+
);
|
|
15
19
|
const dispatch = useAppDispatch();
|
|
16
20
|
useEffect(() => {
|
|
17
21
|
dispatch({ type: breakpoint.change, payload: currentBreakpoint });
|
|
@@ -9,7 +9,9 @@ const useMediaQueryList = (queries, values, defaultValue) => {
|
|
|
9
9
|
useEffect(() => {
|
|
10
10
|
const handler = () => setValue(getValue);
|
|
11
11
|
mediaQueryLists.forEach((mql) => mql.addEventListener("change", handler));
|
|
12
|
-
return () => mediaQueryLists.forEach(
|
|
12
|
+
return () => mediaQueryLists.forEach(
|
|
13
|
+
(mql) => mql.removeEventListener("change", handler)
|
|
14
|
+
);
|
|
13
15
|
}, [getValue, mediaQueryLists]);
|
|
14
16
|
return value;
|
|
15
17
|
};
|
|
@@ -1,8 +1,17 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
const DefaultErrorTemplate = ({
|
|
3
3
|
error = new Error("We are unable to process your request"),
|
|
4
4
|
errorInfo = { componentStack: "Please close your browser and login again" }
|
|
5
|
-
}) => /* @__PURE__ */
|
|
5
|
+
}) => /* @__PURE__ */ jsxs("div", {
|
|
6
|
+
children: [
|
|
7
|
+
/* @__PURE__ */ jsx("h2", {
|
|
8
|
+
children: error?.message
|
|
9
|
+
}),
|
|
10
|
+
/* @__PURE__ */ jsx("section", {
|
|
11
|
+
children: errorInfo?.componentStack
|
|
12
|
+
})
|
|
13
|
+
]
|
|
14
|
+
});
|
|
6
15
|
export {
|
|
7
16
|
DefaultErrorTemplate
|
|
8
17
|
};
|
|
@@ -1,22 +1,4 @@
|
|
|
1
|
-
|
|
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));
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
20
2
|
import React from "react";
|
|
21
3
|
import {
|
|
22
4
|
DefaultErrorTemplate
|
|
@@ -35,15 +17,16 @@ class ErrorBoundary extends React.Component {
|
|
|
35
17
|
});
|
|
36
18
|
const logger = getLogger();
|
|
37
19
|
if (logger)
|
|
38
|
-
logger.error(
|
|
20
|
+
logger.error({
|
|
21
|
+
...logRecords.UNHANDLED_ERROR,
|
|
39
22
|
exception: error
|
|
40
|
-
})
|
|
23
|
+
});
|
|
41
24
|
}
|
|
42
25
|
render() {
|
|
43
26
|
const { children, errorTemplate } = this.props;
|
|
44
27
|
const ErrorTemplate = errorTemplate || DefaultErrorTemplate;
|
|
45
28
|
const { error, errorInfo } = this.state;
|
|
46
|
-
return errorInfo ? /* @__PURE__ */
|
|
29
|
+
return errorInfo ? /* @__PURE__ */ jsx(ErrorTemplate, {
|
|
47
30
|
error,
|
|
48
31
|
errorInfo
|
|
49
32
|
}) : children;
|