@elliemae/pui-app-sdk 2.21.1 → 3.0.0-beta.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/analytics/appdynamics.js +40 -30
- package/dist/cjs/analytics/index.js +33 -26
- package/dist/cjs/analytics/page-view-event.js +35 -34
- package/dist/cjs/analytics/user-session-event.js +35 -27
- package/dist/cjs/analytics/user-wait-event.js +32 -17
- package/dist/cjs/analytics/web-analytics.js +33 -19
- package/dist/cjs/api/auth/index.js +42 -39
- package/dist/cjs/api/helpers.js +34 -99
- package/dist/cjs/api/users/index.js +29 -16
- package/dist/cjs/communication/http-client/index.js +50 -48
- package/dist/cjs/communication/http-client/request-interceptor.js +29 -12
- package/dist/cjs/communication/http-client/response-interceptor.js +47 -38
- package/dist/cjs/communication/http-client/retry-axios.js +74 -122
- package/dist/cjs/communication/http-client/retry.js +43 -36
- package/dist/cjs/communication/http-client/tests/index.test-disable.js +48 -56
- package/dist/cjs/data/auth/actions.js +34 -26
- package/dist/cjs/data/auth/reducer.js +36 -18
- package/dist/cjs/data/breakpoint/index.js +44 -32
- package/dist/cjs/data/error/index.js +34 -18
- package/dist/cjs/data/index.js +35 -0
- package/dist/cjs/data/live-message/index.js +35 -25
- package/dist/cjs/data/logout/actions.js +29 -9
- package/dist/cjs/data/navigation-prompt/actions.js +29 -9
- package/dist/cjs/data/react-redux.js +30 -13
- package/dist/cjs/data/reducers.js +36 -23
- package/dist/cjs/data/saga.js +29 -9
- package/dist/cjs/data/store.js +51 -65
- package/dist/cjs/data/wait-message/actions.js +31 -13
- package/dist/cjs/data/wait-message/reducer.js +38 -24
- package/dist/cjs/index.js +195 -809
- package/dist/cjs/micro-frontend.js +34 -0
- package/dist/cjs/route/index.js +44 -32
- package/dist/cjs/route/page-view.js +36 -22
- package/dist/cjs/route/private-route/index.js +59 -60
- package/dist/cjs/sideeffect/auth/index.js +43 -30
- package/dist/cjs/sideeffect/error-toast/index.js +40 -26
- package/dist/cjs/sideeffect/wait-message/index.js +46 -29
- package/dist/cjs/typings/custom.d.js +0 -0
- package/dist/cjs/typings/elliemae.d.js +0 -0
- package/dist/cjs/typings/styled.d.js +1 -0
- package/dist/cjs/typings/thirdparty.d.js +0 -0
- package/dist/cjs/utils/app-config/config.js +39 -33
- package/dist/cjs/utils/app-config/index.js +48 -44
- package/dist/cjs/utils/app-host-integration/react.js +28 -14
- package/dist/cjs/utils/auth/helper.js +36 -18
- package/dist/cjs/utils/auth/index.js +77 -116
- package/dist/cjs/utils/await.js +20 -0
- package/dist/cjs/utils/constants.js +39 -21
- package/dist/cjs/utils/font-size.js +30 -14
- package/dist/cjs/utils/guest-with-service.js +28 -12
- package/dist/cjs/utils/helpers.js +32 -19
- package/dist/cjs/utils/history.js +30 -12
- package/dist/cjs/utils/log-records.js +55 -35
- package/dist/cjs/utils/micro-frontend/console-logger.js +40 -23
- package/dist/cjs/utils/micro-frontend/guest.js +86 -127
- package/dist/cjs/utils/micro-frontend/host.js +86 -125
- package/dist/cjs/utils/micro-frontend/index.js +66 -61
- package/dist/cjs/utils/micro-frontend/types.js +20 -5
- package/dist/cjs/utils/redact-pii.js +32 -17
- package/dist/cjs/utils/service-worker.js +37 -21
- package/dist/cjs/utils/session.js +65 -70
- package/dist/cjs/utils/storybook/cjs/main.js +53 -0
- package/dist/cjs/utils/storybook/cjs/middleware.js +5 -0
- package/dist/cjs/utils/storybook/cjs/vite.js +6 -0
- package/dist/cjs/utils/storybook/cjs/webpack.js +21 -0
- package/dist/cjs/utils/storybook/manager.js +32 -16
- package/dist/cjs/utils/storybook/preview.js +59 -50
- package/dist/cjs/utils/storybook/theme.js +31 -14
- package/dist/cjs/utils/testing/index.js +45 -50
- package/dist/cjs/utils/testing/render-with-redux.js +41 -27
- package/dist/cjs/utils/testing/render-with-router-redux.js +47 -37
- package/dist/cjs/utils/testing/render-with-router.js +41 -28
- package/dist/cjs/utils/testing/render-with-state-addons.js +47 -36
- package/dist/cjs/utils/types.js +20 -0
- package/dist/cjs/utils/url.js +29 -13
- package/dist/cjs/utils/web-storage.js +46 -30
- package/dist/cjs/utils/window.js +37 -28
- package/dist/cjs/view/app-root/hosted-app.js +42 -32
- package/dist/cjs/view/app-root/index.js +64 -62
- package/dist/cjs/view/app-root/stand-alone-app.js +45 -37
- package/dist/cjs/view/app-root/style.js +51 -12
- package/dist/cjs/view/error-boundary/default-error-template.js +33 -15
- package/dist/cjs/view/error-boundary/index.js +47 -43
- package/dist/cjs/view/error-toast/index.js +49 -32
- package/dist/cjs/view/fetch-host-app-data/index.js +40 -26
- package/dist/cjs/view/fetch-host-app-data/store.js +32 -24
- package/dist/cjs/view/fields/check-box/index.js +41 -39
- package/dist/cjs/view/fields/combo-box/index.js +44 -31
- package/dist/cjs/view/fields/connect-form.js +31 -15
- package/dist/cjs/view/fields/date-input/index.js +41 -26
- package/dist/cjs/view/fields/date-picker/index.js +41 -26
- package/dist/cjs/view/fields/form-item-layout/index.js +43 -30
- package/dist/cjs/view/fields/input-mask/index.js +42 -41
- package/dist/cjs/view/fields/large-text-box/index.js +41 -26
- package/dist/cjs/view/fields/radio/index.js +41 -30
- package/dist/cjs/view/fields/radio-group/index.js +39 -27
- package/dist/cjs/view/fields/text-box/index.js +41 -26
- package/dist/cjs/view/fields/watch-value.js +48 -35
- package/dist/cjs/view/form/index.js +48 -34
- package/dist/cjs/view/form/personal-info-section.js +63 -80
- package/dist/cjs/view/form/submit-button/index.js +41 -23
- package/dist/cjs/view/guest-unload-handlers/index.js +34 -22
- package/dist/cjs/view/header/center-region/index.js +68 -38
- package/dist/cjs/view/header/index.js +48 -35
- package/dist/cjs/view/header/logo-region/index.js +38 -23
- package/dist/cjs/view/header/nav-region/index.js +51 -30
- package/dist/cjs/view/header/nav-region/notification/index.js +35 -18
- package/dist/cjs/view/header/nav-region/user/index.js +35 -18
- package/dist/cjs/view/host-binding-events/index.js +27 -11
- package/dist/cjs/view/intro.stories.mdx +1 -1
- package/dist/cjs/view/live-message/index.js +40 -34
- package/dist/cjs/view/loadable/index.js +40 -27
- package/dist/cjs/view/login/index.js +43 -30
- package/dist/cjs/view/media-breakpoint/index.js +50 -34
- package/dist/cjs/view/message-to-host-app/index.js +32 -20
- package/dist/cjs/view/micro-app/app-factory/index.js +101 -135
- package/dist/cjs/view/micro-app/const.js +27 -7
- package/dist/cjs/view/micro-app/index.js +44 -27
- package/dist/cjs/view/micro-app/resources/manifest.js +44 -35
- package/dist/cjs/view/micro-app/resources/script.js +57 -53
- package/dist/cjs/view/micro-app/resources/style.js +45 -38
- package/dist/cjs/view/micro-app/types.js +20 -5
- package/dist/cjs/view/micro-app/use-app-will-render.js +59 -50
- package/dist/cjs/view/micro-app/utils.js +33 -21
- package/dist/cjs/view/micro-iframe-app/app.js +44 -39
- package/dist/cjs/view/micro-iframe-app/iframe/const.js +27 -7
- package/dist/cjs/view/micro-iframe-app/iframe/index.js +58 -47
- package/dist/cjs/view/micro-iframe-app/index.js +43 -24
- package/dist/cjs/view/micro-iframe-app/types.js +20 -5
- package/dist/cjs/view/micro-iframe-app/use-frame-loaded.js +43 -37
- package/dist/cjs/view/modals/error/index.js +42 -28
- package/dist/cjs/view/modals/navigation-prompt/index.js +45 -37
- package/dist/cjs/view/modals/session-expiry/customHooks.js +41 -35
- package/dist/cjs/view/modals/session-expiry/index.js +53 -51
- package/dist/cjs/view/modals/wait-message/html-wait-message.js +39 -18
- package/dist/cjs/view/modals/wait-message/index.js +57 -53
- package/dist/cjs/view/modals/wait-message/wait-message-launcher.js +40 -21
- package/dist/cjs/view/render-with-delay/index.js +37 -19
- package/dist/cjs/view/render-with-host-data/index.js +42 -30
- package/dist/cjs/view/session-timeout/index.js +51 -35
- package/dist/cjs/view/storybook/decorator.js +39 -21
- package/dist/cjs/view/use-previous.js +30 -13
- package/dist/cjs/view/useMediaBreakpoints/index.js +35 -19
- package/dist/cjs/view/visually-hidden/index.js +48 -21
- package/dist/cjs/view/window-size/index.js +41 -22
- package/dist/es/analytics/appdynamics.js +14 -15
- package/dist/es/analytics/index.js +8 -14
- package/dist/es/analytics/page-view-event.js +11 -25
- package/dist/es/analytics/user-session-event.js +11 -13
- package/dist/es/analytics/user-wait-event.js +9 -5
- package/dist/es/analytics/web-analytics.js +12 -10
- package/dist/es/api/auth/index.js +21 -26
- package/dist/es/api/helpers.js +8 -81
- package/dist/es/api/users/index.js +6 -7
- package/dist/es/communication/http-client/index.js +19 -25
- package/dist/es/communication/http-client/request-interceptor.js +5 -2
- package/dist/es/communication/http-client/response-interceptor.js +20 -21
- package/dist/es/communication/http-client/retry-axios.js +45 -105
- package/dist/es/communication/http-client/retry.js +22 -25
- package/dist/es/communication/http-client/tests/index.test-disable.js +25 -44
- package/dist/es/data/auth/actions.js +13 -19
- package/dist/es/data/auth/reducer.js +8 -6
- package/dist/es/data/breakpoint/index.js +19 -21
- package/dist/es/data/error/index.js +11 -9
- package/dist/es/data/index.js +11 -0
- package/dist/es/data/live-message/index.js +12 -16
- package/dist/es/data/logout/actions.js +9 -5
- package/dist/es/data/navigation-prompt/actions.js +9 -5
- package/dist/es/data/react-redux.js +7 -3
- package/dist/es/data/reducers.js +6 -3
- package/dist/es/data/saga.js +8 -5
- package/dist/es/data/store.js +24 -51
- package/dist/es/data/wait-message/actions.js +11 -9
- package/dist/es/data/wait-message/reducer.js +9 -9
- package/dist/es/index.js +192 -83
- package/dist/es/micro-frontend.js +10 -0
- package/dist/es/route/index.js +16 -18
- package/dist/es/route/page-view.js +8 -8
- package/dist/es/route/private-route/index.js +24 -31
- package/dist/es/sideeffect/auth/index.js +24 -11
- package/dist/es/sideeffect/error-toast/index.js +11 -10
- package/dist/es/sideeffect/wait-message/index.js +14 -10
- package/dist/es/typings/custom.d.js +0 -0
- package/dist/es/typings/elliemae.d.js +0 -0
- package/dist/es/typings/styled.d.js +1 -0
- package/dist/es/typings/thirdparty.d.js +0 -0
- package/dist/es/utils/app-config/config.js +11 -9
- package/dist/es/utils/app-config/index.js +17 -27
- package/dist/es/utils/app-host-integration/react.js +8 -6
- package/dist/es/utils/auth/helper.js +7 -3
- package/dist/es/utils/auth/index.js +51 -75
- package/dist/es/utils/constants.js +18 -13
- package/dist/es/utils/font-size.js +7 -3
- package/dist/es/utils/guest-with-service.js +6 -7
- package/dist/es/utils/helpers.js +10 -6
- package/dist/es/utils/history.js +7 -3
- package/dist/es/utils/log-records.js +34 -31
- package/dist/es/utils/micro-frontend/console-logger.js +16 -12
- package/dist/es/utils/micro-frontend/guest.js +44 -100
- package/dist/es/utils/micro-frontend/host.js +41 -77
- package/dist/es/utils/micro-frontend/index.js +35 -33
- package/dist/es/utils/micro-frontend/types.js +0 -1
- package/dist/es/utils/redact-pii.js +10 -11
- package/dist/es/utils/service-worker.js +13 -10
- package/dist/es/utils/session.js +45 -46
- package/dist/es/utils/storybook/manager.js +7 -4
- package/dist/es/utils/storybook/preview.js +27 -24
- package/dist/es/utils/storybook/theme.js +9 -6
- package/dist/es/utils/testing/index.js +12 -18
- package/dist/es/utils/testing/render-with-redux.js +12 -11
- package/dist/es/utils/testing/render-with-router-redux.js +18 -19
- package/dist/es/utils/testing/render-with-router.js +15 -16
- package/dist/es/utils/testing/render-with-state-addons.js +19 -18
- package/dist/es/utils/url.js +7 -3
- package/dist/es/utils/web-storage.js +21 -17
- package/dist/es/utils/window.js +18 -18
- package/dist/es/view/app-root/hosted-app.js +10 -13
- package/dist/es/view/app-root/index.js +29 -33
- package/dist/es/view/app-root/stand-alone-app.js +11 -12
- package/dist/es/view/app-root/style.js +30 -5
- package/dist/es/view/error-boundary/default-error-template.js +5 -5
- package/dist/es/view/error-boundary/index.js +18 -25
- package/dist/es/view/error-toast/index.js +15 -14
- package/dist/es/view/fetch-host-app-data/index.js +14 -11
- package/dist/es/view/fetch-host-app-data/store.js +10 -7
- package/dist/es/view/fields/check-box/index.js +17 -18
- package/dist/es/view/fields/combo-box/index.js +20 -19
- package/dist/es/view/fields/connect-form.js +8 -6
- package/dist/es/view/fields/date-input/index.js +17 -14
- package/dist/es/view/fields/date-picker/index.js +17 -14
- package/dist/es/view/fields/form-item-layout/index.js +15 -15
- package/dist/es/view/fields/input-mask/index.js +22 -14
- package/dist/es/view/fields/large-text-box/index.js +17 -14
- package/dist/es/view/fields/radio/index.js +17 -18
- package/dist/es/view/fields/radio-group/index.js +15 -15
- package/dist/es/view/fields/text-box/index.js +17 -14
- package/dist/es/view/fields/watch-value.js +20 -24
- package/dist/es/view/form/index.js +23 -22
- package/dist/es/view/form/personal-info-section.js +28 -48
- package/dist/es/view/form/submit-button/index.js +13 -10
- package/dist/es/view/guest-unload-handlers/index.js +10 -9
- package/dist/es/view/header/center-region/index.js +41 -23
- package/dist/es/view/header/index.js +16 -15
- package/dist/es/view/header/logo-region/index.js +9 -9
- package/dist/es/view/header/nav-region/index.js +21 -13
- package/dist/es/view/header/nav-region/notification/index.js +6 -6
- package/dist/es/view/header/nav-region/user/index.js +6 -6
- package/dist/es/view/host-binding-events/index.js +7 -3
- package/dist/es/view/intro.stories.mdx +1 -1
- package/dist/es/view/live-message/index.js +13 -22
- package/dist/es/view/loadable/index.js +13 -15
- package/dist/es/view/login/index.js +12 -15
- package/dist/es/view/media-breakpoint/index.js +16 -13
- package/dist/es/view/message-to-host-app/index.js +10 -9
- package/dist/es/view/micro-app/app-factory/index.js +67 -82
- package/dist/es/view/micro-app/const.js +4 -1
- package/dist/es/view/micro-app/index.js +12 -9
- package/dist/es/view/micro-app/resources/manifest.js +17 -16
- package/dist/es/view/micro-app/resources/script.js +35 -35
- package/dist/es/view/micro-app/resources/style.js +22 -21
- package/dist/es/view/micro-app/types.js +0 -1
- package/dist/es/view/micro-app/use-app-will-render.js +35 -26
- package/dist/es/view/micro-app/utils.js +11 -13
- package/dist/es/view/micro-iframe-app/app.js +14 -20
- package/dist/es/view/micro-iframe-app/iframe/const.js +4 -1
- package/dist/es/view/micro-iframe-app/iframe/index.js +27 -31
- package/dist/es/view/micro-iframe-app/index.js +10 -10
- package/dist/es/view/micro-iframe-app/types.js +0 -1
- package/dist/es/view/micro-iframe-app/use-frame-loaded.js +15 -19
- package/dist/es/view/modals/error/index.js +13 -10
- package/dist/es/view/modals/navigation-prompt/index.js +11 -14
- package/dist/es/view/modals/session-expiry/customHooks.js +11 -13
- package/dist/es/view/modals/session-expiry/index.js +13 -20
- package/dist/es/view/modals/wait-message/html-wait-message.js +11 -10
- package/dist/es/view/modals/wait-message/index.js +30 -37
- package/dist/es/view/modals/wait-message/wait-message-launcher.js +8 -6
- package/dist/es/view/render-with-delay/index.js +8 -10
- package/dist/es/view/render-with-host-data/index.js +10 -13
- package/dist/es/view/session-timeout/index.js +20 -10
- package/dist/es/view/storybook/decorator.js +8 -5
- package/dist/es/view/use-previous.js +6 -3
- package/dist/es/view/useMediaBreakpoints/index.js +11 -9
- package/dist/es/view/visually-hidden/index.js +20 -10
- package/dist/es/view/window-size/index.js +12 -10
- package/dist/types/communication/http-client/retry.d.ts +1 -1
- package/dist/types/data/index.d.ts +4 -0
- package/dist/types/data/react-redux.d.ts +11 -11
- package/dist/types/data/reducers.d.ts +6 -6
- package/dist/types/data/store.d.ts +29 -29
- package/dist/types/index.d.ts +79 -79
- package/dist/types/micro-frontend.d.ts +6 -0
- package/dist/types/route/private-route/index.d.ts +1 -1
- package/dist/types/sideeffect/auth/index.d.ts +1 -1
- package/dist/types/utils/app-host-integration/react.d.ts +1 -1
- package/dist/types/utils/micro-frontend/guest.d.ts +2 -2
- package/dist/types/utils/micro-frontend/host.d.ts +1 -1
- package/dist/types/utils/micro-frontend/index.d.ts +2 -2
- package/dist/types/utils/micro-frontend/types.d.ts +1 -1
- package/dist/types/utils/storybook/cjs/main.d.ts +63 -0
- package/dist/types/utils/storybook/{middleware.d.ts → cjs/middleware.d.ts} +0 -0
- package/dist/types/utils/storybook/cjs/vite.d.ts +4 -0
- package/dist/types/utils/storybook/cjs/webpack.d.ts +16 -0
- package/dist/types/utils/storybook/preview.d.ts +9 -3
- package/dist/types/utils/testing/render-with-redux.d.ts +20 -20
- package/dist/types/utils/testing/render-with-router-redux.d.ts +20 -20
- package/dist/types/utils/window.d.ts +1 -1
- package/dist/types/view/app-root/index.d.ts +1 -1
- package/dist/types/view/fields/check-box/index.stories.d.ts +1 -1
- package/dist/types/view/fields/check-box/set-value.stories.d.ts +1 -1
- package/dist/types/view/fields/combo-box/index.stories.d.ts +1 -1
- package/dist/types/view/fields/date-input/index.stories.d.ts +1 -1
- package/dist/types/view/fields/date-picker/index.stories.d.ts +1 -1
- package/dist/types/view/fields/form-item-layout/index.stories.d.ts +1 -1
- package/dist/types/view/fields/input-mask/index.stories.d.ts +1 -1
- package/dist/types/view/fields/large-text-box/index.stories.d.ts +1 -1
- package/dist/types/view/fields/radio/index.stories.d.ts +1 -1
- package/dist/types/view/fields/radio/set-value.stories.d.ts +1 -1
- package/dist/types/view/fields/radio-group/index.stories.d.ts +1 -1
- package/dist/types/view/fields/text-box/index.stories.d.ts +1 -1
- package/dist/types/view/form/usecases.stories.d.ts +1 -1
- package/dist/types/view/header/index.d.ts +1 -1
- package/dist/types/view/header/index.stories.d.ts +1 -1
- package/dist/types/view/micro-app/app-factory/index.d.ts +2 -2
- package/dist/types/view/micro-app/index.d.ts +1 -1
- package/dist/types/view/micro-app/resources/script.d.ts +1 -1
- package/dist/types/view/micro-app/resources/style.d.ts +1 -1
- package/dist/types/view/micro-app/use-app-will-render.d.ts +1 -1
- package/dist/types/view/micro-iframe-app/app.d.ts +2 -2
- package/dist/types/view/micro-iframe-app/index.d.ts +1 -1
- package/dist/types/view/micro-iframe-app/types.d.ts +1 -1
- package/dist/types/view/micro-iframe-app/use-frame-loaded.d.ts +1 -1
- package/dist/types/view/modals/error/index.stories.d.ts +1 -1
- package/dist/types/view/modals/navigation-prompt/index.stories.d.ts +1 -1
- package/dist/types/view/modals/session-expiry/index.stories.d.ts +1 -1
- package/dist/types/view/modals/wait-message/index.stories.d.ts +1 -1
- package/dist/types/view/storybook/decorator.d.ts +1 -1
- package/dist/types/view/visually-hidden/index.d.ts +1 -3
- package/package.json +36 -25
- package/dist/cjs/api/users/index.endpoint.js +0 -14
- package/dist/cjs/communication/http-client/tests/hello.endpoint.js +0 -14
- package/dist/cjs/communication/http-client/tests/private.endpoint.js +0 -14
- package/dist/cjs/utils/storybook/main.js +0 -38
- package/dist/cjs/utils/storybook/middleware.js +0 -9
- package/dist/cjs/view/error-toast/index.stories.js +0 -128
- package/dist/cjs/view/fields/check-box/index.stories.js +0 -64
- package/dist/cjs/view/fields/check-box/set-value.stories.js +0 -83
- package/dist/cjs/view/fields/combo-box/index.stories.js +0 -65
- package/dist/cjs/view/fields/date-input/index.stories.js +0 -53
- package/dist/cjs/view/fields/date-input/index1.stories.js +0 -53
- package/dist/cjs/view/fields/date-picker/index.stories.js +0 -53
- package/dist/cjs/view/fields/form-item-layout/index.stories.js +0 -43
- package/dist/cjs/view/fields/input-mask/index.stories.js +0 -52
- package/dist/cjs/view/fields/large-text-box/index.stories.js +0 -47
- package/dist/cjs/view/fields/radio/index.stories.js +0 -60
- package/dist/cjs/view/fields/radio/set-value.stories.js +0 -81
- package/dist/cjs/view/fields/radio-group/index.stories.js +0 -85
- package/dist/cjs/view/fields/text-box/index.stories.js +0 -48
- package/dist/cjs/view/form/index.stories.js +0 -71
- package/dist/cjs/view/form/usecases.stories.js +0 -59
- package/dist/cjs/view/header/index.stories.js +0 -24
- package/dist/cjs/view/live-message/index.stories.js +0 -53
- package/dist/cjs/view/media-breakpoint/index.stories.js +0 -24
- package/dist/cjs/view/modals/error/index.stories.js +0 -36
- package/dist/cjs/view/modals/navigation-prompt/index.stories.js +0 -32
- package/dist/cjs/view/modals/session-expiry/index.stories.js +0 -30
- package/dist/cjs/view/modals/wait-message/index.stories.js +0 -47
- package/dist/cjs/view/session-timeout/index.stories.js +0 -28
- package/dist/es/api/users/index.endpoint.js +0 -14
- package/dist/es/communication/http-client/tests/hello.endpoint.js +0 -14
- package/dist/es/communication/http-client/tests/private.endpoint.js +0 -14
- package/dist/es/utils/storybook/main.js +0 -38
- package/dist/es/utils/storybook/middleware.js +0 -9
- package/dist/es/view/error-toast/index.stories.js +0 -108
- package/dist/es/view/fields/check-box/index.stories.js +0 -47
- package/dist/es/view/fields/check-box/set-value.stories.js +0 -65
- package/dist/es/view/fields/combo-box/index.stories.js +0 -48
- package/dist/es/view/fields/date-input/index.stories.js +0 -35
- package/dist/es/view/fields/date-input/index1.stories.js +0 -35
- package/dist/es/view/fields/date-picker/index.stories.js +0 -35
- package/dist/es/view/fields/form-item-layout/index.stories.js +0 -27
- package/dist/es/view/fields/input-mask/index.stories.js +0 -35
- package/dist/es/view/fields/large-text-box/index.stories.js +0 -30
- package/dist/es/view/fields/radio/index.stories.js +0 -43
- package/dist/es/view/fields/radio/set-value.stories.js +0 -63
- package/dist/es/view/fields/radio-group/index.stories.js +0 -68
- package/dist/es/view/fields/text-box/index.stories.js +0 -31
- package/dist/es/view/form/index.stories.js +0 -56
- package/dist/es/view/form/usecases.stories.js +0 -43
- package/dist/es/view/header/index.stories.js +0 -14
- package/dist/es/view/live-message/index.stories.js +0 -32
- package/dist/es/view/media-breakpoint/index.stories.js +0 -10
- package/dist/es/view/modals/error/index.stories.js +0 -21
- package/dist/es/view/modals/navigation-prompt/index.stories.js +0 -18
- package/dist/es/view/modals/session-expiry/index.stories.js +0 -18
- package/dist/es/view/modals/wait-message/index.stories.js +0 -33
- package/dist/es/view/session-timeout/index.stories.js +0 -13
- package/dist/types/utils/storybook/main.d.ts +0 -30
- package/dist/types/view/fields/date-input/index1.stories.d.ts +0 -24
|
@@ -1,208 +1,167 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
Object.
|
|
6
|
-
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __reExport = (target, module2, copyDefault, desc) => {
|
|
13
|
+
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(module2))
|
|
15
|
+
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
|
16
|
+
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return target;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (module2, isNodeMode) => {
|
|
21
|
+
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
22
|
+
};
|
|
23
|
+
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
24
|
+
return (module2, temp) => {
|
|
25
|
+
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
26
|
+
};
|
|
27
|
+
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
28
|
+
var guest_exports = {};
|
|
29
|
+
__export(guest_exports, {
|
|
30
|
+
CMicroAppGuest: () => CMicroAppGuest
|
|
7
31
|
});
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
var
|
|
11
|
-
|
|
12
|
-
var
|
|
13
|
-
|
|
14
|
-
var
|
|
15
|
-
|
|
16
|
-
var
|
|
17
|
-
|
|
18
|
-
var
|
|
19
|
-
|
|
20
|
-
var _window = require("../window.js");
|
|
21
|
-
|
|
22
|
-
var _index = require("../app-config/index.js");
|
|
23
|
-
|
|
24
|
-
var _config = require("../app-config/config.js");
|
|
25
|
-
|
|
26
|
-
var _history = require("../history.js");
|
|
27
|
-
|
|
28
|
-
var _consoleLogger = require("./console-logger.js");
|
|
29
|
-
|
|
30
|
-
var _webStorage = require("../web-storage.js");
|
|
31
|
-
|
|
32
|
-
var _webAnalytics = require("../../analytics/web-analytics.js");
|
|
33
|
-
|
|
34
|
-
var _appdynamics = require("../../analytics/appdynamics.js");
|
|
35
|
-
|
|
32
|
+
var import_react_dom = __toESM(require("react-dom"));
|
|
33
|
+
var import_lodash = __toESM(require("lodash"));
|
|
34
|
+
var import_em_ssf_guest = __toESM(require("@elliemae/em-ssf-guest"));
|
|
35
|
+
var import_pui_theme = require("@elliemae/pui-theme");
|
|
36
|
+
var import_window = require("../window.js");
|
|
37
|
+
var import_app_config = require("../app-config/index.js");
|
|
38
|
+
var import_config = require("../app-config/config.js");
|
|
39
|
+
var import_history2 = require("../history.js");
|
|
40
|
+
var import_console_logger = require("./console-logger.js");
|
|
41
|
+
var import_web_storage = require("../web-storage.js");
|
|
42
|
+
var import_web_analytics = require("../../analytics/web-analytics.js");
|
|
43
|
+
var import_appdynamics = require("../../analytics/appdynamics.js");
|
|
36
44
|
const isCrossDomain = () => {
|
|
37
45
|
try {
|
|
38
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
|
|
39
46
|
window.parent.document;
|
|
40
47
|
return false;
|
|
41
48
|
} catch (ex) {
|
|
42
49
|
return true;
|
|
43
50
|
}
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
|
|
51
|
+
};
|
|
47
52
|
class CMicroAppGuest {
|
|
48
53
|
constructor(params) {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
(0, _defineProperty2.default)(this, "logger", void 0);
|
|
52
|
-
(0, _defineProperty2.default)(this, "appId", void 0);
|
|
53
|
-
(0, _defineProperty2.default)(this, "props", void 0);
|
|
54
|
-
(0, _defineProperty2.default)(this, "containerId", void 0);
|
|
55
|
-
(0, _defineProperty2.default)(this, "onInit", void 0);
|
|
56
|
-
(0, _defineProperty2.default)(this, "onMount", void 0);
|
|
57
|
-
(0, _defineProperty2.default)(this, "onUnmount", void 0);
|
|
58
|
-
(0, _defineProperty2.default)(this, "onGetRef", void 0);
|
|
59
|
-
this.containerId = 'app-container';
|
|
60
|
-
this.appId = ((_window$emui = window.emui) === null || _window$emui === void 0 ? void 0 : _window$emui.appId) || (0, _config.getAppConfigValue)('appId');
|
|
54
|
+
this.containerId = "app-container";
|
|
55
|
+
this.appId = window.emui?.appId || (0, import_config.getAppConfigValue)("appId");
|
|
61
56
|
this.props = {
|
|
62
57
|
host: null,
|
|
63
58
|
hostUrl: null,
|
|
64
59
|
prevState: null,
|
|
65
|
-
history:
|
|
66
|
-
theme: (0,
|
|
67
|
-
manifestPath:
|
|
60
|
+
history: import_history2.browserHistory,
|
|
61
|
+
theme: (0, import_pui_theme.getDefaultTheme)(),
|
|
62
|
+
manifestPath: "./latest"
|
|
68
63
|
};
|
|
69
|
-
this.logger =
|
|
70
|
-
this.onInit = params
|
|
71
|
-
this.onMount = params
|
|
72
|
-
this.onUnmount = params
|
|
73
|
-
this.onGetRef = params
|
|
64
|
+
this.logger = params?.logger || import_console_logger.logger;
|
|
65
|
+
this.onInit = params?.onInit;
|
|
66
|
+
this.onMount = params?.onMount;
|
|
67
|
+
this.onUnmount = params?.onUnmount;
|
|
68
|
+
this.onGetRef = params?.onGetRef;
|
|
74
69
|
this.getHost = this.getHost.bind(this);
|
|
75
70
|
this.getLogger = this.getLogger.bind(this);
|
|
76
71
|
this.getProps = this.getProps.bind(this);
|
|
77
|
-
const browserWindow = (0,
|
|
78
|
-
|
|
72
|
+
const browserWindow = (0, import_window.getWindow)();
|
|
79
73
|
if (browserWindow) {
|
|
80
74
|
browserWindow.emui = browserWindow.emui || {};
|
|
81
|
-
browserWindow.emui[this.appId] = browserWindow.emui[this.appId] || {};
|
|
82
|
-
|
|
75
|
+
browserWindow.emui[this.appId] = browserWindow.emui[this.appId] || {};
|
|
83
76
|
browserWindow.emui[this.appId].init = this.init.bind(this);
|
|
84
77
|
browserWindow.emui[this.appId].mount = this.mount.bind(this);
|
|
85
78
|
browserWindow.emui[this.appId].unmount = this.unmount.bind(this);
|
|
86
79
|
browserWindow.emui[this.appId].getRef = this.getRef.bind(this);
|
|
87
80
|
}
|
|
88
81
|
}
|
|
89
|
-
|
|
90
82
|
static getInstance(params) {
|
|
91
83
|
if (!this.instance) {
|
|
92
84
|
this.instance = new this(params);
|
|
93
85
|
}
|
|
94
|
-
|
|
95
86
|
return this.instance;
|
|
96
87
|
}
|
|
97
|
-
|
|
98
88
|
static isInitialized() {
|
|
99
89
|
return !!this.instance;
|
|
100
90
|
}
|
|
101
|
-
|
|
102
91
|
static isHosted() {
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
return !!((_this$instance = this.instance) !== null && _this$instance !== void 0 && (_this$instance$props = _this$instance.props) !== null && _this$instance$props !== void 0 && _this$instance$props.host);
|
|
92
|
+
return !!this.instance?.props?.host;
|
|
106
93
|
}
|
|
107
|
-
|
|
108
94
|
getHost() {
|
|
109
95
|
return this.props.host;
|
|
110
96
|
}
|
|
111
|
-
|
|
112
97
|
getLogger() {
|
|
113
98
|
return this.logger;
|
|
114
99
|
}
|
|
115
|
-
|
|
116
100
|
getProps() {
|
|
117
101
|
return this.props;
|
|
118
102
|
}
|
|
119
|
-
|
|
120
103
|
getSessionStorageItem(key) {
|
|
121
|
-
var _this$props$host;
|
|
122
|
-
|
|
123
104
|
let value = sessionStorage.getItem(key);
|
|
124
|
-
|
|
125
|
-
if (!value && (_this$props$host = this.props.host) !== null && _this$props$host !== void 0 && _this$props$host.getItem) {
|
|
105
|
+
if (!value && this.props.host?.getItem) {
|
|
126
106
|
value = this.props.host.getItem(key);
|
|
127
107
|
}
|
|
128
|
-
|
|
129
108
|
return value;
|
|
130
109
|
}
|
|
131
|
-
|
|
132
110
|
async getSSFHost() {
|
|
133
111
|
let host = null;
|
|
134
|
-
|
|
135
112
|
if (window.parent !== window) {
|
|
136
|
-
// not a standalone app
|
|
137
113
|
if (!isCrossDomain()) {
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
await _emSsfGuest.default.connect();
|
|
143
|
-
const timeout = new Promise(resolve => {
|
|
114
|
+
host = window.parent?.emui?.MicroAppHost || null;
|
|
115
|
+
} else if (import_em_ssf_guest.default && this.props.hostName) {
|
|
116
|
+
await import_em_ssf_guest.default.connect();
|
|
117
|
+
const timeout = new Promise((resolve) => {
|
|
144
118
|
setTimeout(resolve, 100, null);
|
|
145
119
|
});
|
|
146
|
-
host = await Promise.race([
|
|
120
|
+
host = await Promise.race([
|
|
121
|
+
import_em_ssf_guest.default.getObject(this.props.hostName),
|
|
122
|
+
timeout
|
|
123
|
+
]);
|
|
147
124
|
}
|
|
148
125
|
}
|
|
149
|
-
|
|
150
126
|
return host;
|
|
151
127
|
}
|
|
152
|
-
|
|
153
128
|
async init(options) {
|
|
154
|
-
this.props =
|
|
155
|
-
|
|
129
|
+
this.props = import_lodash.default.merge(this.props, options);
|
|
156
130
|
if (!this.props.host) {
|
|
157
131
|
const host = await this.getSSFHost();
|
|
158
|
-
if (host)
|
|
132
|
+
if (host)
|
|
133
|
+
this.props.host = host;
|
|
159
134
|
}
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
appId: this.appId,
|
|
169
|
-
instanceId,
|
|
170
|
-
userId
|
|
171
|
-
});
|
|
172
|
-
(0, _appdynamics.setAppDynamicsUserData)({
|
|
173
|
-
appId: this.appId,
|
|
174
|
-
instanceId,
|
|
175
|
-
userId
|
|
176
|
-
});
|
|
177
|
-
if (this.onInit) this.onInit(this.props);
|
|
135
|
+
__webpack_public_path__ = __webpack_public_path__.replace(/\/?$/, "/");
|
|
136
|
+
return (0, import_app_config.loadAppConfig)(__webpack_public_path__).then(() => {
|
|
137
|
+
const instanceId = this.getSessionStorageItem("instanceId") || "";
|
|
138
|
+
const userId = this.getSessionStorageItem("userId") || "";
|
|
139
|
+
(0, import_web_analytics.updateBAEventParameters)({ appId: this.appId, instanceId, userId });
|
|
140
|
+
(0, import_appdynamics.setAppDynamicsUserData)({ appId: this.appId, instanceId, userId });
|
|
141
|
+
if (this.onInit)
|
|
142
|
+
this.onInit(this.props);
|
|
178
143
|
});
|
|
179
144
|
}
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
containerId: 'app-container'
|
|
183
|
-
}) {
|
|
184
|
-
this.containerId = options === null || options === void 0 ? void 0 : options.containerId;
|
|
145
|
+
mount(options = { containerId: "app-container" }) {
|
|
146
|
+
this.containerId = options?.containerId;
|
|
185
147
|
return Promise.resolve().then(() => {
|
|
186
|
-
if (this.onMount)
|
|
148
|
+
if (this.onMount)
|
|
149
|
+
this.onMount(options);
|
|
187
150
|
});
|
|
188
151
|
}
|
|
189
|
-
|
|
190
152
|
unmount(options) {
|
|
191
153
|
const appEle = document.getElementById(this.containerId);
|
|
192
|
-
if (appEle)
|
|
193
|
-
|
|
154
|
+
if (appEle)
|
|
155
|
+
import_react_dom.default.unmountComponentAtNode(appEle);
|
|
156
|
+
(0, import_web_storage.removeStorageEvents)();
|
|
194
157
|
return Promise.resolve().then(() => this.onUnmount ? this.onUnmount(options) : null);
|
|
195
158
|
}
|
|
196
|
-
|
|
197
159
|
getRef() {
|
|
198
160
|
return this.onGetRef ? this.onGetRef() : null;
|
|
199
161
|
}
|
|
200
|
-
|
|
201
162
|
navigate(url, state) {
|
|
202
|
-
if (url)
|
|
163
|
+
if (url)
|
|
164
|
+
this.props.history.push(url, state);
|
|
203
165
|
}
|
|
204
|
-
|
|
205
166
|
}
|
|
206
|
-
|
|
207
|
-
exports.CMicroAppGuest = CMicroAppGuest;
|
|
208
|
-
(0, _defineProperty2.default)(CMicroAppGuest, "instance", void 0);
|
|
167
|
+
module.exports = __toCommonJS(guest_exports);
|
|
@@ -1,63 +1,55 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __reExport = (target, module2, copyDefault, desc) => {
|
|
11
|
+
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(module2))
|
|
13
|
+
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
|
14
|
+
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return target;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
19
|
+
return (module2, temp) => {
|
|
20
|
+
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
21
|
+
};
|
|
22
|
+
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
23
|
+
var host_exports = {};
|
|
24
|
+
__export(host_exports, {
|
|
25
|
+
CMicroAppHost: () => CMicroAppHost
|
|
7
26
|
});
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
var
|
|
11
|
-
|
|
12
|
-
var
|
|
13
|
-
|
|
14
|
-
var
|
|
15
|
-
|
|
16
|
-
var
|
|
17
|
-
|
|
18
|
-
var
|
|
19
|
-
|
|
20
|
-
var
|
|
21
|
-
|
|
22
|
-
var
|
|
23
|
-
|
|
24
|
-
var _config = require("../app-config/config.js");
|
|
25
|
-
|
|
26
|
-
var _session = require("../session.js");
|
|
27
|
-
|
|
28
|
-
var _index2 = require("../app-config/index.js");
|
|
29
|
-
|
|
30
|
-
var _history = require("../history.js");
|
|
31
|
-
|
|
32
|
-
var _consoleLogger = require("./console-logger.js");
|
|
33
|
-
|
|
34
|
-
var _constants = require("../constants.js");
|
|
35
|
-
|
|
36
|
-
var _window = require("../window.js");
|
|
37
|
-
|
|
38
|
-
var _index3 = require("../../analytics/index.js");
|
|
39
|
-
|
|
40
|
-
var _appdynamics = require("../../analytics/appdynamics.js");
|
|
41
|
-
|
|
42
|
-
var _webAnalytics = require("../../analytics/web-analytics.js");
|
|
43
|
-
|
|
44
|
-
/* eslint-disable max-lines */
|
|
27
|
+
var import_pubsub_js = require("pubsub-js");
|
|
28
|
+
var import_pui_theme = require("@elliemae/pui-theme");
|
|
29
|
+
var import_store = require("../../data/store.js");
|
|
30
|
+
var import_actions = require("../../data/wait-message/actions.js");
|
|
31
|
+
var import_error = require("../../data/error/index.js");
|
|
32
|
+
var import_actions2 = require("../../data/logout/actions.js");
|
|
33
|
+
var import_config = require("../app-config/config.js");
|
|
34
|
+
var import_session = require("../session.js");
|
|
35
|
+
var import_app_config = require("../app-config/index.js");
|
|
36
|
+
var import_history2 = require("../history.js");
|
|
37
|
+
var import_console_logger = require("./console-logger.js");
|
|
38
|
+
var import_constants = require("../constants.js");
|
|
39
|
+
var import_window = require("../window.js");
|
|
40
|
+
var import_analytics = require("../../analytics/index.js");
|
|
41
|
+
var import_appdynamics = require("../../analytics/appdynamics.js");
|
|
42
|
+
var import_web_analytics = require("../../analytics/web-analytics.js");
|
|
45
43
|
class CMicroAppHost {
|
|
46
44
|
constructor(params) {
|
|
47
|
-
(0,
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
(0, _defineProperty2.default)(this, "onInit", void 0);
|
|
52
|
-
(0, _defineProperty2.default)(this, "onRenewSessionTimer", void 0);
|
|
53
|
-
this.appId = (0, _config.getAppConfigValue)('appId');
|
|
54
|
-
this.onInit = params === null || params === void 0 ? void 0 : params.onInit;
|
|
55
|
-
this.logger = (params === null || params === void 0 ? void 0 : params.logger) || _consoleLogger.logger;
|
|
56
|
-
this.onRenewSessionTimer = params === null || params === void 0 ? void 0 : params.onRenewSessionTimer;
|
|
45
|
+
this.appId = (0, import_config.getAppConfigValue)("appId");
|
|
46
|
+
this.onInit = params?.onInit;
|
|
47
|
+
this.logger = params?.logger || import_console_logger.logger;
|
|
48
|
+
this.onRenewSessionTimer = params?.onRenewSessionTimer;
|
|
57
49
|
this.props = {
|
|
58
|
-
systemVersion:
|
|
59
|
-
history:
|
|
60
|
-
theme: (0,
|
|
50
|
+
systemVersion: "latest",
|
|
51
|
+
history: import_history2.browserHistory,
|
|
52
|
+
theme: (0, import_pui_theme.getDefaultTheme)()
|
|
61
53
|
};
|
|
62
54
|
this.activeGuests = {};
|
|
63
55
|
this.getProps = this.getProps.bind(this);
|
|
@@ -66,136 +58,105 @@ class CMicroAppHost {
|
|
|
66
58
|
this.getGuest = this.getGuest.bind(this);
|
|
67
59
|
this.renewSessionTimer = this.renewSessionTimer.bind(this);
|
|
68
60
|
this.setSystemVersion = this.setSystemVersion.bind(this);
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
}).catch(() => {});
|
|
74
|
-
(0, _webAnalytics.updateBAEventParameters)({
|
|
75
|
-
appId: this.appId
|
|
61
|
+
(0, import_app_config.loadAppConfig)(__webpack_public_path__).then(() => {
|
|
62
|
+
if (this.onInit)
|
|
63
|
+
this.onInit(this.props);
|
|
64
|
+
}).catch(() => {
|
|
76
65
|
});
|
|
77
|
-
(0,
|
|
66
|
+
(0, import_web_analytics.updateBAEventParameters)({ appId: this.appId });
|
|
67
|
+
(0, import_appdynamics.setAppDynamicsUserData)({
|
|
78
68
|
appId: this.appId
|
|
79
69
|
});
|
|
80
70
|
}
|
|
81
|
-
|
|
82
71
|
static getInstance(params) {
|
|
83
72
|
if (!this.instance) {
|
|
84
73
|
this.instance = new this(params);
|
|
85
74
|
}
|
|
86
|
-
|
|
87
75
|
return this.instance;
|
|
88
76
|
}
|
|
89
|
-
|
|
90
77
|
static isInitialized() {
|
|
91
78
|
return !!this.instance;
|
|
92
79
|
}
|
|
93
|
-
|
|
94
80
|
getProps() {
|
|
95
81
|
return this.props;
|
|
96
82
|
}
|
|
97
|
-
|
|
98
83
|
getLogger() {
|
|
99
84
|
return this.logger;
|
|
100
85
|
}
|
|
101
|
-
|
|
102
86
|
getItem(key) {
|
|
103
|
-
return (0,
|
|
87
|
+
return (0, import_window.getWindow)().sessionStorage.getItem(key);
|
|
104
88
|
}
|
|
105
|
-
|
|
106
89
|
setItem(key, value) {
|
|
107
|
-
(0,
|
|
90
|
+
(0, import_window.getWindow)().sessionStorage.setItem(key, value);
|
|
108
91
|
}
|
|
109
|
-
|
|
110
92
|
getGuests() {
|
|
111
93
|
return this.activeGuests;
|
|
112
94
|
}
|
|
113
|
-
|
|
114
95
|
getGuest(id) {
|
|
115
96
|
return this.activeGuests[id] ? this.activeGuests[id] : null;
|
|
116
97
|
}
|
|
117
|
-
|
|
118
98
|
publish(message, data) {
|
|
119
|
-
return (0,
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
|
|
99
|
+
return (0, import_pubsub_js.publish)(message, data);
|
|
100
|
+
}
|
|
123
101
|
subscribe(message, func) {
|
|
124
|
-
return (0,
|
|
102
|
+
return (0, import_pubsub_js.subscribe)(message, func);
|
|
125
103
|
}
|
|
126
|
-
|
|
127
104
|
unsubscribe(token) {
|
|
128
|
-
(0,
|
|
105
|
+
(0, import_pubsub_js.unsubscribe)(token);
|
|
129
106
|
}
|
|
130
|
-
|
|
131
107
|
navigate(url, state) {
|
|
132
|
-
if (url)
|
|
108
|
+
if (url)
|
|
109
|
+
this.props.history.push(url, state);
|
|
133
110
|
}
|
|
134
|
-
|
|
135
111
|
openWaitMessage() {
|
|
136
|
-
const store = (0,
|
|
137
|
-
if (store)
|
|
112
|
+
const store = (0, import_store.getStore)();
|
|
113
|
+
if (store)
|
|
114
|
+
store.dispatch(import_actions.waitMessage.open());
|
|
138
115
|
}
|
|
139
|
-
|
|
140
116
|
closeWaitMessage() {
|
|
141
|
-
const store = (0,
|
|
142
|
-
if (store)
|
|
117
|
+
const store = (0, import_store.getStore)();
|
|
118
|
+
if (store)
|
|
119
|
+
store.dispatch(import_actions.waitMessage.close());
|
|
143
120
|
}
|
|
144
|
-
|
|
145
121
|
openErrorBanner(message) {
|
|
146
|
-
const store = (0,
|
|
147
|
-
if (store)
|
|
148
|
-
description: message
|
|
149
|
-
}));
|
|
122
|
+
const store = (0, import_store.getStore)();
|
|
123
|
+
if (store)
|
|
124
|
+
store.dispatch(import_error.actions.set({ description: message }));
|
|
150
125
|
}
|
|
151
|
-
|
|
152
126
|
getAuthToken() {
|
|
153
|
-
return (0,
|
|
127
|
+
return (0, import_window.getWindow)().sessionStorage.getItem("Authorization");
|
|
154
128
|
}
|
|
155
|
-
|
|
156
129
|
renewAuthToken() {
|
|
157
|
-
return (0,
|
|
130
|
+
return (0, import_window.getWindow)().sessionStorage.getItem("Authorization");
|
|
158
131
|
}
|
|
159
|
-
|
|
160
132
|
logout() {
|
|
161
|
-
const store = (0,
|
|
162
|
-
if (store)
|
|
133
|
+
const store = (0, import_store.getStore)();
|
|
134
|
+
if (store)
|
|
135
|
+
store.dispatch(import_actions2.logout.confirm());
|
|
163
136
|
}
|
|
164
|
-
|
|
165
137
|
renewSessionTimer() {
|
|
166
|
-
(0,
|
|
167
|
-
if (this.onRenewSessionTimer)
|
|
138
|
+
(0, import_session.resetUserIdleTime)();
|
|
139
|
+
if (this.onRenewSessionTimer)
|
|
140
|
+
this.onRenewSessionTimer();
|
|
168
141
|
}
|
|
169
|
-
|
|
170
142
|
getBreakpoint() {
|
|
171
|
-
return (0,
|
|
143
|
+
return (0, import_window.getCurrentBreakpoint)();
|
|
172
144
|
}
|
|
173
|
-
|
|
174
145
|
getViewportSize() {
|
|
175
|
-
return (0,
|
|
146
|
+
return (0, import_window.getViewportSize)();
|
|
176
147
|
}
|
|
177
|
-
|
|
178
148
|
onResizeEvent(eventHandler) {
|
|
179
|
-
return (0,
|
|
149
|
+
return (0, import_pubsub_js.subscribe)(import_constants.HOST_WINDOW_RESIZED, (msg, data) => eventHandler(data));
|
|
180
150
|
}
|
|
181
|
-
|
|
182
151
|
onBreakpointChangeEvent(eventHandler) {
|
|
183
|
-
return (0,
|
|
152
|
+
return (0, import_pubsub_js.subscribe)(import_constants.HOST_WINDOW_BREAKPOINT_CHANGED, (msg, data) => eventHandler(data));
|
|
184
153
|
}
|
|
185
|
-
|
|
186
|
-
setSystemVersion(version = 'latest') {
|
|
154
|
+
setSystemVersion(version = "latest") {
|
|
187
155
|
window.emui.version = version;
|
|
188
156
|
this.props.systemVersion = version;
|
|
189
157
|
}
|
|
190
|
-
|
|
191
158
|
sendBAEvent(data) {
|
|
192
|
-
(0,
|
|
193
|
-
data,
|
|
194
|
-
self: true
|
|
195
|
-
});
|
|
159
|
+
(0, import_analytics.sendBAEvent)({ data, self: true });
|
|
196
160
|
}
|
|
197
|
-
|
|
198
161
|
}
|
|
199
|
-
|
|
200
|
-
exports.CMicroAppHost = CMicroAppHost;
|
|
201
|
-
(0, _defineProperty2.default)(CMicroAppHost, "instance", void 0);
|
|
162
|
+
module.exports = __toCommonJS(host_exports);
|