@elliemae/pui-app-sdk 2.17.0 → 3.0.0-beta.3
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 +34 -30
- package/dist/cjs/analytics/index.js +32 -26
- package/dist/cjs/analytics/page-view-event.js +42 -29
- package/dist/cjs/analytics/user-session-event.js +34 -27
- package/dist/cjs/analytics/user-wait-event.js +31 -17
- package/dist/cjs/analytics/web-analytics.js +16 -19
- package/dist/cjs/api/auth/index.js +41 -39
- package/dist/cjs/api/helpers.js +33 -99
- package/dist/cjs/api/users/index.js +28 -16
- package/dist/cjs/communication/http-client/index.js +44 -48
- package/dist/cjs/communication/http-client/request-interceptor.js +28 -12
- package/dist/cjs/communication/http-client/response-interceptor.js +41 -38
- package/dist/cjs/communication/http-client/retry-axios.js +68 -122
- package/dist/cjs/communication/http-client/retry.js +42 -36
- package/dist/cjs/communication/http-client/tests/index.test-disable.js +48 -56
- package/dist/cjs/data/auth/actions.js +17 -26
- package/dist/cjs/data/auth/reducer.js +30 -18
- package/dist/cjs/data/breakpoint/index.js +38 -32
- package/dist/cjs/data/error/index.js +33 -18
- package/dist/cjs/data/live-message/index.js +34 -25
- package/dist/cjs/data/logout/actions.js +12 -9
- package/dist/cjs/data/navigation-prompt/actions.js +12 -9
- package/dist/cjs/data/react-redux.js +29 -13
- package/dist/cjs/data/reducers.js +35 -23
- package/dist/cjs/data/saga.js +12 -9
- package/dist/cjs/data/store.js +53 -60
- package/dist/cjs/data/wait-message/actions.js +14 -13
- package/dist/cjs/data/wait-message/reducer.js +32 -24
- package/dist/cjs/index.js +189 -809
- package/dist/cjs/route/index.js +37 -32
- package/dist/cjs/route/page-view.js +30 -22
- package/dist/cjs/route/private-route/index.js +52 -60
- package/dist/cjs/sideeffect/auth/index.js +42 -30
- package/dist/cjs/sideeffect/error-toast/index.js +39 -26
- package/dist/cjs/sideeffect/wait-message/index.js +45 -29
- package/dist/cjs/typings/custom.d.js +0 -1
- package/dist/cjs/typings/elliemae.d.js +0 -1
- package/dist/cjs/typings/styled.d.js +19 -3
- package/dist/cjs/utils/app-config/config.js +33 -33
- package/dist/cjs/utils/app-config/index.js +42 -44
- package/dist/cjs/utils/app-host-integration/react.js +27 -14
- package/dist/cjs/utils/auth/helper.js +30 -18
- package/dist/cjs/utils/auth/index.js +76 -116
- package/dist/cjs/utils/await.js +3 -0
- package/dist/cjs/utils/constants.js +22 -21
- package/dist/cjs/utils/font-size.js +13 -14
- package/dist/cjs/utils/guest-with-service.js +11 -12
- package/dist/cjs/utils/helpers.js +15 -19
- package/dist/cjs/utils/history.js +29 -12
- package/dist/cjs/utils/log-records.js +38 -35
- package/dist/cjs/utils/micro-frontend/console-logger.js +39 -23
- package/dist/cjs/utils/micro-frontend/guest.js +80 -128
- package/dist/cjs/utils/micro-frontend/host.js +84 -124
- package/dist/cjs/utils/micro-frontend/index.js +60 -61
- package/dist/cjs/utils/micro-frontend/types.js +3 -5
- package/dist/cjs/utils/redact-pii.js +15 -17
- package/dist/cjs/utils/service-worker.js +36 -21
- package/dist/cjs/utils/session.js +64 -70
- package/dist/cjs/utils/storybook/main.js +32 -25
- package/dist/cjs/utils/storybook/manager.js +31 -16
- package/dist/cjs/utils/storybook/middleware.js +3 -7
- package/dist/cjs/utils/storybook/preview.js +57 -48
- package/dist/cjs/utils/storybook/theme.js +30 -14
- package/dist/cjs/utils/storybook/vite.js +6 -0
- package/dist/cjs/utils/storybook/webpack.js +13 -0
- package/dist/cjs/utils/testing/index.js +38 -50
- package/dist/cjs/utils/testing/render-with-redux.js +34 -27
- package/dist/cjs/utils/testing/render-with-router-redux.js +40 -37
- package/dist/cjs/utils/testing/render-with-router.js +34 -28
- package/dist/cjs/utils/testing/render-with-state-addons.js +40 -36
- package/dist/cjs/utils/types.js +3 -0
- package/dist/cjs/utils/url.js +12 -13
- package/dist/cjs/utils/web-storage.js +40 -30
- package/dist/cjs/utils/window.js +36 -28
- package/dist/cjs/view/app-root/hosted-app.js +35 -32
- package/dist/cjs/view/app-root/index.js +57 -62
- package/dist/cjs/view/app-root/stand-alone-app.js +38 -37
- package/dist/cjs/view/app-root/style.js +50 -12
- package/dist/cjs/view/error-boundary/default-error-template.js +10 -15
- package/dist/cjs/view/error-boundary/index.js +41 -43
- package/dist/cjs/view/error-toast/index.js +42 -32
- package/dist/cjs/view/fetch-host-app-data/index.js +34 -26
- package/dist/cjs/view/fetch-host-app-data/store.js +31 -24
- package/dist/cjs/view/fields/check-box/index.js +34 -39
- package/dist/cjs/view/fields/combo-box/index.js +37 -31
- package/dist/cjs/view/fields/connect-form.js +30 -15
- package/dist/cjs/view/fields/date-input/index.js +34 -26
- package/dist/cjs/view/fields/date-picker/index.js +34 -26
- package/dist/cjs/view/fields/form-item-layout/index.js +36 -30
- package/dist/cjs/view/fields/input-mask/index.js +35 -41
- package/dist/cjs/view/fields/large-text-box/index.js +34 -26
- package/dist/cjs/view/fields/radio/index.js +34 -30
- package/dist/cjs/view/fields/radio-group/index.js +32 -27
- package/dist/cjs/view/fields/text-box/index.js +34 -26
- package/dist/cjs/view/fields/watch-value.js +41 -35
- package/dist/cjs/view/form/index.js +41 -34
- package/dist/cjs/view/form/personal-info-section.js +56 -80
- package/dist/cjs/view/form/submit-button/index.js +34 -23
- package/dist/cjs/view/guest-unload-handlers/index.js +33 -22
- package/dist/cjs/view/header/center-region/index.js +61 -38
- package/dist/cjs/view/header/index.js +41 -35
- package/dist/cjs/view/header/logo-region/index.js +31 -23
- package/dist/cjs/view/header/nav-region/index.js +44 -30
- package/dist/cjs/view/header/nav-region/notification/index.js +28 -18
- package/dist/cjs/view/header/nav-region/user/index.js +28 -18
- package/dist/cjs/view/host-binding-events/index.js +10 -11
- package/dist/cjs/view/intro.stories.mdx +1 -1
- package/dist/cjs/view/live-message/index.js +33 -34
- package/dist/cjs/view/loadable/index.js +33 -27
- package/dist/cjs/view/login/index.js +36 -30
- package/dist/cjs/view/media-breakpoint/index.js +43 -34
- package/dist/cjs/view/message-to-host-app/index.js +31 -20
- package/dist/cjs/view/micro-app/app-factory/index.js +98 -134
- package/dist/cjs/view/micro-app/const.js +10 -7
- package/dist/cjs/view/micro-app/index.js +37 -27
- package/dist/cjs/view/micro-app/resources/manifest.js +41 -34
- package/dist/cjs/view/micro-app/resources/script.js +56 -53
- package/dist/cjs/view/micro-app/resources/style.js +44 -38
- package/dist/cjs/view/micro-app/types.js +3 -5
- package/dist/cjs/view/micro-app/use-app-will-render.js +58 -50
- package/dist/cjs/view/micro-app/utils.js +32 -21
- package/dist/cjs/view/micro-iframe-app/app.js +37 -39
- package/dist/cjs/view/micro-iframe-app/iframe/const.js +10 -7
- package/dist/cjs/view/micro-iframe-app/iframe/index.js +51 -47
- package/dist/cjs/view/micro-iframe-app/index.js +36 -24
- package/dist/cjs/view/micro-iframe-app/types.js +3 -5
- package/dist/cjs/view/micro-iframe-app/use-frame-loaded.js +40 -36
- package/dist/cjs/view/modals/error/index.js +35 -28
- package/dist/cjs/view/modals/navigation-prompt/index.js +38 -37
- package/dist/cjs/view/modals/session-expiry/customHooks.js +40 -35
- package/dist/cjs/view/modals/session-expiry/index.js +45 -50
- package/dist/cjs/view/modals/wait-message/html-wait-message.js +32 -18
- package/dist/cjs/view/modals/wait-message/index.js +50 -53
- package/dist/cjs/view/modals/wait-message/wait-message-launcher.js +33 -21
- package/dist/cjs/view/render-with-delay/index.js +30 -19
- package/dist/cjs/view/render-with-host-data/index.js +35 -30
- package/dist/cjs/view/session-timeout/index.js +44 -35
- package/dist/cjs/view/storybook/decorator.js +32 -21
- package/dist/cjs/view/use-previous.js +29 -13
- package/dist/cjs/view/useMediaBreakpoints/index.js +34 -19
- package/dist/cjs/view/visually-hidden/index.js +41 -21
- package/dist/cjs/view/window-size/index.js +34 -22
- package/dist/es/analytics/appdynamics.js +14 -15
- package/dist/es/analytics/index.js +11 -17
- package/dist/es/analytics/page-view-event.js +20 -20
- package/dist/es/analytics/user-session-event.js +13 -15
- package/dist/es/analytics/user-wait-event.js +10 -6
- package/dist/es/analytics/web-analytics.js +12 -10
- package/dist/es/api/auth/index.js +22 -27
- package/dist/es/api/helpers.js +8 -81
- package/dist/es/api/users/index.js +7 -8
- package/dist/es/communication/http-client/index.js +24 -30
- package/dist/es/communication/http-client/request-interceptor.js +6 -3
- 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 +28 -47
- package/dist/es/data/auth/actions.js +13 -19
- package/dist/es/data/auth/reducer.js +9 -7
- package/dist/es/data/breakpoint/index.js +19 -21
- package/dist/es/data/error/index.js +11 -9
- 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 +10 -7
- package/dist/es/data/saga.js +8 -5
- package/dist/es/data/store.js +27 -44
- package/dist/es/data/wait-message/actions.js +11 -9
- package/dist/es/data/wait-message/reducer.js +10 -10
- package/dist/es/index.js +183 -84
- package/dist/es/route/index.js +16 -19
- package/dist/es/route/page-view.js +9 -9
- package/dist/es/route/private-route/index.js +30 -38
- package/dist/es/sideeffect/auth/index.js +27 -14
- package/dist/es/sideeffect/error-toast/index.js +15 -14
- package/dist/es/sideeffect/wait-message/index.js +18 -14
- package/dist/es/typings/styled.d.js +1 -1
- package/dist/es/utils/app-config/config.js +11 -9
- package/dist/es/utils/app-config/index.js +21 -31
- package/dist/es/utils/app-host-integration/react.js +8 -6
- package/dist/es/utils/auth/helper.js +8 -4
- package/dist/es/utils/auth/index.js +59 -83
- 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 +17 -13
- package/dist/es/utils/micro-frontend/guest.js +52 -108
- package/dist/es/utils/micro-frontend/host.js +53 -89
- package/dist/es/utils/micro-frontend/index.js +39 -37
- 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 +14 -11
- package/dist/es/utils/session.js +47 -48
- package/dist/es/utils/storybook/manager.js +8 -5
- package/dist/es/utils/storybook/preview.js +30 -26
- package/dist/es/utils/storybook/theme.js +9 -6
- package/dist/es/utils/testing/index.js +14 -21
- package/dist/es/utils/testing/render-with-redux.js +13 -13
- package/dist/es/utils/testing/render-with-router-redux.js +19 -21
- package/dist/es/utils/testing/render-with-router.js +14 -16
- package/dist/es/utils/testing/render-with-state-addons.js +18 -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 +13 -17
- package/dist/es/view/app-root/index.js +34 -39
- package/dist/es/view/app-root/stand-alone-app.js +17 -19
- package/dist/es/view/app-root/style.js +30 -5
- package/dist/es/view/error-boundary/default-error-template.js +4 -5
- package/dist/es/view/error-boundary/index.js +20 -27
- package/dist/es/view/error-toast/index.js +21 -16
- package/dist/es/view/fetch-host-app-data/index.js +13 -13
- package/dist/es/view/fetch-host-app-data/store.js +10 -7
- package/dist/es/view/fields/check-box/index.js +16 -18
- package/dist/es/view/fields/combo-box/index.js +19 -19
- package/dist/es/view/fields/connect-form.js +8 -6
- package/dist/es/view/fields/date-input/index.js +16 -14
- package/dist/es/view/fields/date-picker/index.js +16 -14
- package/dist/es/view/fields/form-item-layout/index.js +15 -16
- package/dist/es/view/fields/input-mask/index.js +20 -14
- package/dist/es/view/fields/large-text-box/index.js +16 -14
- package/dist/es/view/fields/radio/index.js +16 -18
- package/dist/es/view/fields/radio-group/index.js +14 -15
- package/dist/es/view/fields/text-box/index.js +16 -14
- package/dist/es/view/fields/watch-value.js +19 -24
- package/dist/es/view/form/index.js +22 -22
- package/dist/es/view/form/personal-info-section.js +31 -52
- package/dist/es/view/form/submit-button/index.js +12 -10
- package/dist/es/view/guest-unload-handlers/index.js +11 -10
- package/dist/es/view/header/center-region/index.js +40 -23
- package/dist/es/view/header/index.js +19 -19
- package/dist/es/view/header/logo-region/index.js +8 -9
- package/dist/es/view/header/nav-region/index.js +22 -15
- package/dist/es/view/header/nav-region/notification/index.js +5 -6
- package/dist/es/view/header/nav-region/user/index.js +5 -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 -23
- package/dist/es/view/loadable/index.js +12 -15
- package/dist/es/view/login/index.js +14 -18
- package/dist/es/view/media-breakpoint/index.js +19 -17
- package/dist/es/view/message-to-host-app/index.js +11 -10
- package/dist/es/view/micro-app/app-factory/index.js +67 -86
- package/dist/es/view/micro-app/const.js +4 -1
- package/dist/es/view/micro-app/index.js +13 -11
- package/dist/es/view/micro-app/resources/manifest.js +19 -19
- package/dist/es/view/micro-app/resources/script.js +36 -36
- package/dist/es/view/micro-app/resources/style.js +23 -22
- package/dist/es/view/micro-app/types.js +0 -1
- package/dist/es/view/micro-app/use-app-will-render.js +32 -28
- package/dist/es/view/micro-app/utils.js +12 -14
- package/dist/es/view/micro-iframe-app/app.js +15 -22
- package/dist/es/view/micro-iframe-app/iframe/const.js +4 -1
- package/dist/es/view/micro-iframe-app/iframe/index.js +27 -32
- package/dist/es/view/micro-iframe-app/index.js +11 -12
- package/dist/es/view/micro-iframe-app/types.js +0 -1
- package/dist/es/view/micro-iframe-app/use-frame-loaded.js +16 -21
- package/dist/es/view/modals/error/index.js +12 -10
- package/dist/es/view/modals/navigation-prompt/index.js +12 -16
- package/dist/es/view/modals/session-expiry/customHooks.js +13 -15
- package/dist/es/view/modals/session-expiry/index.js +16 -24
- package/dist/es/view/modals/wait-message/html-wait-message.js +10 -10
- package/dist/es/view/modals/wait-message/index.js +31 -39
- package/dist/es/view/modals/wait-message/wait-message-launcher.js +9 -8
- package/dist/es/view/render-with-delay/index.js +7 -10
- package/dist/es/view/render-with-host-data/index.js +11 -15
- package/dist/es/view/session-timeout/index.js +21 -12
- package/dist/es/view/storybook/decorator.js +9 -7
- 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 +19 -10
- package/dist/es/view/window-size/index.js +12 -11
- package/dist/types/utils/storybook/main.d.cts +41 -0
- package/dist/types/utils/storybook/{middleware.d.ts → middleware.d.cts} +0 -0
- package/dist/types/utils/storybook/preview.d.ts +2 -2
- package/dist/types/utils/storybook/vite.d.cts +4 -0
- package/dist/types/utils/storybook/webpack.d.cts +8 -0
- package/dist/types/utils/window.d.ts +1 -1
- package/dist/types/view/visually-hidden/index.d.ts +1 -3
- package/package.json +6 -4
- 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/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,13 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.
|
|
4
|
-
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
__markAsModule(target);
|
|
10
|
+
for (var name in all)
|
|
11
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
|
+
};
|
|
13
|
+
var __reExport = (target, module2, desc) => {
|
|
14
|
+
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(module2))
|
|
16
|
+
if (!__hasOwnProp.call(target, key) && key !== "default")
|
|
17
|
+
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
18
|
+
}
|
|
19
|
+
return target;
|
|
20
|
+
};
|
|
21
|
+
var __toModule = (module2) => {
|
|
22
|
+
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
23
|
+
};
|
|
24
|
+
__export(exports, {
|
|
25
|
+
browserHistory: () => browserHistory,
|
|
26
|
+
memoryHistory: () => memoryHistory
|
|
5
27
|
});
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
const browserHistory = (0, _history.createBrowserHistory)();
|
|
11
|
-
exports.browserHistory = browserHistory;
|
|
12
|
-
const memoryHistory = (0, _history.createMemoryHistory)();
|
|
13
|
-
exports.memoryHistory = memoryHistory;
|
|
28
|
+
var import_history = __toModule(require("history"));
|
|
29
|
+
const browserHistory = (0, import_history.createBrowserHistory)();
|
|
30
|
+
const memoryHistory = (0, import_history.createMemoryHistory)();
|
|
@@ -1,69 +1,72 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
3
|
+
var __export = (target, all) => {
|
|
4
|
+
__markAsModule(target);
|
|
5
|
+
for (var name in all)
|
|
6
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
7
|
+
};
|
|
8
|
+
__export(exports, {
|
|
9
|
+
logRecords: () => logRecords
|
|
5
10
|
});
|
|
6
|
-
exports.logRecords = void 0;
|
|
7
11
|
const logRecords = {
|
|
8
12
|
ERR_TOAST_OPEN_FAILED: {
|
|
9
|
-
code:
|
|
10
|
-
msg:
|
|
13
|
+
code: "appsdk001",
|
|
14
|
+
msg: "Unable to open Error Toast"
|
|
11
15
|
},
|
|
12
16
|
WAIT_MSG_OPEN_FAILED: {
|
|
13
|
-
code:
|
|
14
|
-
msg:
|
|
17
|
+
code: "appsdk02",
|
|
18
|
+
msg: "Unable to open Wait message"
|
|
15
19
|
},
|
|
16
20
|
WAIT_MSG_CLOSE_FAILED: {
|
|
17
|
-
code:
|
|
18
|
-
msg:
|
|
21
|
+
code: "appsdk03",
|
|
22
|
+
msg: "Unable to close Wait message"
|
|
19
23
|
},
|
|
20
24
|
APP_CONFIG_LOAD_FAILED: {
|
|
21
|
-
code:
|
|
22
|
-
msg:
|
|
25
|
+
code: "appsdk04",
|
|
26
|
+
msg: "Unable to load application configuration"
|
|
23
27
|
},
|
|
24
|
-
ASSET_NOT_FOUND_IN_MANIFEST: assetName => ({
|
|
25
|
-
code:
|
|
28
|
+
ASSET_NOT_FOUND_IN_MANIFEST: (assetName) => ({
|
|
29
|
+
code: "appsdk05",
|
|
26
30
|
msg: `Application load failed. unable to locate ${assetName} in the manifest`
|
|
27
31
|
}),
|
|
28
32
|
APP_INIT_FAILED: (appId, errMsg) => ({
|
|
29
|
-
code:
|
|
33
|
+
code: "appsdk06",
|
|
30
34
|
msg: `Application load failed. Unable to load one or more application resources for appId: ${appId}. ${errMsg}`
|
|
31
35
|
}),
|
|
32
|
-
APP_LOADING: appId => ({
|
|
33
|
-
code:
|
|
36
|
+
APP_LOADING: (appId) => ({
|
|
37
|
+
code: "appsdk07",
|
|
34
38
|
msg: `Application ${appId} is loading...`
|
|
35
39
|
}),
|
|
36
|
-
APP_LOADING_COMPLETE: appId => ({
|
|
37
|
-
code:
|
|
40
|
+
APP_LOADING_COMPLETE: (appId) => ({
|
|
41
|
+
code: "appsdk08",
|
|
38
42
|
msg: `Application ${appId} loaded`
|
|
39
43
|
}),
|
|
40
|
-
APP_UNLOADING: appId => ({
|
|
41
|
-
code:
|
|
44
|
+
APP_UNLOADING: (appId) => ({
|
|
45
|
+
code: "appsdk09",
|
|
42
46
|
msg: `Application ${appId} unloading...`
|
|
43
47
|
}),
|
|
44
|
-
APP_UNLOADING_COMPLETE: appId => ({
|
|
45
|
-
code:
|
|
48
|
+
APP_UNLOADING_COMPLETE: (appId) => ({
|
|
49
|
+
code: "appsdk10",
|
|
46
50
|
msg: `Application ${appId} unloaded`
|
|
47
51
|
}),
|
|
48
|
-
SSF_HOST_OBJECT_NOT_FOUND: name => ({
|
|
49
|
-
code:
|
|
52
|
+
SSF_HOST_OBJECT_NOT_FOUND: (name) => ({
|
|
53
|
+
code: "appsdk11",
|
|
50
54
|
msg: `Parent window doesn't expose SSF Object named ${name}`
|
|
51
55
|
}),
|
|
52
56
|
LOGIN_FAILED: {
|
|
53
|
-
code:
|
|
54
|
-
msg:
|
|
57
|
+
code: "appsdk12",
|
|
58
|
+
msg: "Unable to login the user."
|
|
55
59
|
},
|
|
56
60
|
LOGOUT_FAILED: {
|
|
57
|
-
code:
|
|
58
|
-
msg:
|
|
61
|
+
code: "appsdk13",
|
|
62
|
+
msg: "Unable to logout the user."
|
|
59
63
|
},
|
|
60
64
|
SERVICE_WORKER_FAILED: {
|
|
61
|
-
code:
|
|
62
|
-
msg:
|
|
65
|
+
code: "appsdk14",
|
|
66
|
+
msg: "Service Worker Registration Failed"
|
|
63
67
|
},
|
|
64
68
|
UNHANDLED_ERROR: {
|
|
65
|
-
code:
|
|
66
|
-
msg:
|
|
69
|
+
code: "appsdk15",
|
|
70
|
+
msg: "Unhandled error in react component"
|
|
67
71
|
}
|
|
68
72
|
};
|
|
69
|
-
exports.logRecords = logRecords;
|
|
@@ -1,27 +1,43 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.
|
|
4
|
-
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
__markAsModule(target);
|
|
10
|
+
for (var name in all)
|
|
11
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
|
+
};
|
|
13
|
+
var __reExport = (target, module2, desc) => {
|
|
14
|
+
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(module2))
|
|
16
|
+
if (!__hasOwnProp.call(target, key) && key !== "default")
|
|
17
|
+
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
18
|
+
}
|
|
19
|
+
return target;
|
|
20
|
+
};
|
|
21
|
+
var __toModule = (module2) => {
|
|
22
|
+
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
23
|
+
};
|
|
24
|
+
__export(exports, {
|
|
25
|
+
logger: () => logger
|
|
5
26
|
});
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
var _puiDiagnostics = require("@elliemae/pui-diagnostics");
|
|
9
|
-
|
|
10
|
-
var _config = require("../app-config/config.js");
|
|
11
|
-
|
|
27
|
+
var import_pui_diagnostics = __toModule(require("@elliemae/pui-diagnostics"));
|
|
28
|
+
var import_config = __toModule(require("../app-config/config"));
|
|
12
29
|
const logger = (() => {
|
|
13
|
-
if (!
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
30
|
+
if (!import_pui_diagnostics.logger)
|
|
31
|
+
return console;
|
|
32
|
+
return (0, import_pui_diagnostics.logger)({
|
|
33
|
+
transport: (0, import_pui_diagnostics.Console)(),
|
|
34
|
+
index: "app",
|
|
35
|
+
environment: (0, import_config.getAppConfigValue)("activeEnv"),
|
|
36
|
+
logger: "icemt.app.logger",
|
|
37
|
+
team: "app team",
|
|
38
|
+
appName: "ICEMT App",
|
|
39
|
+
appVersion: "latest",
|
|
40
|
+
tenantId: "",
|
|
41
|
+
userId: ""
|
|
24
42
|
});
|
|
25
43
|
})();
|
|
26
|
-
|
|
27
|
-
exports.logger = logger;
|
|
@@ -1,209 +1,161 @@
|
|
|
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
|
+
__markAsModule(target);
|
|
10
|
+
for (var name in all)
|
|
11
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
|
+
};
|
|
13
|
+
var __reExport = (target, module2, desc) => {
|
|
14
|
+
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(module2))
|
|
16
|
+
if (!__hasOwnProp.call(target, key) && key !== "default")
|
|
17
|
+
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
18
|
+
}
|
|
19
|
+
return target;
|
|
20
|
+
};
|
|
21
|
+
var __toModule = (module2) => {
|
|
22
|
+
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
23
|
+
};
|
|
24
|
+
__export(exports, {
|
|
25
|
+
CMicroAppGuest: () => CMicroAppGuest
|
|
7
26
|
});
|
|
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
|
-
|
|
27
|
+
var import_react_dom = __toModule(require("react-dom"));
|
|
28
|
+
var import_lodash = __toModule(require("lodash"));
|
|
29
|
+
var import_em_ssf_guest = __toModule(require("@elliemae/em-ssf-guest"));
|
|
30
|
+
var import_pui_theme = __toModule(require("@elliemae/pui-theme"));
|
|
31
|
+
var import_window = __toModule(require("../window"));
|
|
32
|
+
var import_app_config = __toModule(require("../app-config"));
|
|
33
|
+
var import_config = __toModule(require("../app-config/config"));
|
|
34
|
+
var import_history2 = __toModule(require("../history"));
|
|
35
|
+
var import_console_logger = __toModule(require("./console-logger"));
|
|
36
|
+
var import_web_storage = __toModule(require("../web-storage"));
|
|
37
|
+
var import_web_analytics = __toModule(require("../../analytics/web-analytics"));
|
|
38
|
+
var import_appdynamics = __toModule(require("../../analytics/appdynamics"));
|
|
36
39
|
const isCrossDomain = () => {
|
|
37
40
|
try {
|
|
38
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
|
|
39
41
|
window.parent.document;
|
|
40
42
|
return false;
|
|
41
43
|
} catch (ex) {
|
|
42
44
|
return true;
|
|
43
45
|
}
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
|
|
46
|
+
};
|
|
47
47
|
class CMicroAppGuest {
|
|
48
48
|
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');
|
|
49
|
+
this.containerId = "app-container";
|
|
50
|
+
this.appId = window.emui?.appId || (0, import_config.getAppConfigValue)("appId");
|
|
61
51
|
this.props = {
|
|
62
52
|
host: null,
|
|
63
53
|
hostUrl: null,
|
|
64
54
|
prevState: null,
|
|
65
|
-
history:
|
|
66
|
-
theme: (0,
|
|
67
|
-
manifestPath:
|
|
55
|
+
history: import_history2.browserHistory,
|
|
56
|
+
theme: (0, import_pui_theme.getDefaultTheme)(),
|
|
57
|
+
manifestPath: "./latest"
|
|
68
58
|
};
|
|
69
|
-
this.logger =
|
|
70
|
-
this.onInit = params
|
|
71
|
-
this.onMount = params
|
|
72
|
-
this.onUnmount = params
|
|
73
|
-
this.onGetRef = params
|
|
59
|
+
this.logger = params?.logger || import_console_logger.logger;
|
|
60
|
+
this.onInit = params?.onInit;
|
|
61
|
+
this.onMount = params?.onMount;
|
|
62
|
+
this.onUnmount = params?.onUnmount;
|
|
63
|
+
this.onGetRef = params?.onGetRef;
|
|
74
64
|
this.getHost = this.getHost.bind(this);
|
|
75
65
|
this.getLogger = this.getLogger.bind(this);
|
|
76
66
|
this.getProps = this.getProps.bind(this);
|
|
77
|
-
const browserWindow = (0,
|
|
78
|
-
|
|
67
|
+
const browserWindow = (0, import_window.getWindow)();
|
|
79
68
|
if (browserWindow) {
|
|
80
69
|
browserWindow.emui = browserWindow.emui || {};
|
|
81
|
-
browserWindow.emui[this.appId] = browserWindow.emui[this.appId] || {};
|
|
82
|
-
|
|
70
|
+
browserWindow.emui[this.appId] = browserWindow.emui[this.appId] || {};
|
|
83
71
|
browserWindow.emui[this.appId].init = this.init.bind(this);
|
|
84
72
|
browserWindow.emui[this.appId].mount = this.mount.bind(this);
|
|
85
73
|
browserWindow.emui[this.appId].unmount = this.unmount.bind(this);
|
|
86
74
|
browserWindow.emui[this.appId].getRef = this.getRef.bind(this);
|
|
87
75
|
}
|
|
88
76
|
}
|
|
89
|
-
|
|
90
77
|
static getInstance(params) {
|
|
91
78
|
if (!this.instance) {
|
|
92
79
|
this.instance = new this(params);
|
|
93
80
|
}
|
|
94
|
-
|
|
95
81
|
return this.instance;
|
|
96
82
|
}
|
|
97
|
-
|
|
98
83
|
static isInitialized() {
|
|
99
84
|
return !!this.instance;
|
|
100
85
|
}
|
|
101
|
-
|
|
102
86
|
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);
|
|
87
|
+
return !!this.instance?.props?.host;
|
|
106
88
|
}
|
|
107
|
-
|
|
108
89
|
getHost() {
|
|
109
90
|
return this.props.host;
|
|
110
91
|
}
|
|
111
|
-
|
|
112
92
|
getLogger() {
|
|
113
93
|
return this.logger;
|
|
114
94
|
}
|
|
115
|
-
|
|
116
95
|
getProps() {
|
|
117
96
|
return this.props;
|
|
118
97
|
}
|
|
119
|
-
|
|
120
98
|
getSessionStorageItem(key) {
|
|
121
|
-
var _this$props$host;
|
|
122
|
-
|
|
123
99
|
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) {
|
|
100
|
+
if (!value && this.props.host?.getItem) {
|
|
126
101
|
value = this.props.host.getItem(key);
|
|
127
102
|
}
|
|
128
|
-
|
|
129
103
|
return value;
|
|
130
104
|
}
|
|
131
|
-
|
|
132
105
|
async getSSFHost() {
|
|
133
106
|
let host = null;
|
|
134
|
-
|
|
135
107
|
if (window.parent !== window) {
|
|
136
|
-
// not a standalone app
|
|
137
108
|
if (!isCrossDomain()) {
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
_emSsfGuest.default.connect();
|
|
143
|
-
|
|
144
|
-
const timeout = new Promise(resolve => {
|
|
109
|
+
host = window.parent?.emui?.MicroAppHost || null;
|
|
110
|
+
} else if (import_em_ssf_guest.default && this.props.hostName) {
|
|
111
|
+
import_em_ssf_guest.default.connect();
|
|
112
|
+
const timeout = new Promise((resolve) => {
|
|
145
113
|
setTimeout(resolve, 100, null);
|
|
146
114
|
});
|
|
147
|
-
host = await Promise.race([
|
|
115
|
+
host = await Promise.race([
|
|
116
|
+
import_em_ssf_guest.default.getObject(this.props.hostName),
|
|
117
|
+
timeout
|
|
118
|
+
]);
|
|
148
119
|
}
|
|
149
120
|
}
|
|
150
|
-
|
|
151
121
|
return host;
|
|
152
122
|
}
|
|
153
|
-
|
|
154
123
|
async init(options) {
|
|
155
|
-
this.props =
|
|
156
|
-
|
|
124
|
+
this.props = import_lodash.default.merge(this.props, options);
|
|
157
125
|
if (!this.props.host) {
|
|
158
126
|
const host = await this.getSSFHost();
|
|
159
|
-
if (host)
|
|
127
|
+
if (host)
|
|
128
|
+
this.props.host = host;
|
|
160
129
|
}
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
appId: this.appId,
|
|
170
|
-
instanceId,
|
|
171
|
-
userId
|
|
172
|
-
});
|
|
173
|
-
(0, _appdynamics.setAppDynamicsUserData)({
|
|
174
|
-
appId: this.appId,
|
|
175
|
-
instanceId,
|
|
176
|
-
userId
|
|
177
|
-
});
|
|
178
|
-
if (this.onInit) this.onInit(this.props);
|
|
130
|
+
__webpack_public_path__ = __webpack_public_path__.replace(/\/?$/, "/");
|
|
131
|
+
return (0, import_app_config.loadAppConfig)(__webpack_public_path__).then(() => {
|
|
132
|
+
const instanceId = this.getSessionStorageItem("instanceId") || "";
|
|
133
|
+
const userId = this.getSessionStorageItem("userId") || "";
|
|
134
|
+
(0, import_web_analytics.updateBAEventParameters)({ appId: this.appId, instanceId, userId });
|
|
135
|
+
(0, import_appdynamics.setAppDynamicsUserData)({ appId: this.appId, instanceId, userId });
|
|
136
|
+
if (this.onInit)
|
|
137
|
+
this.onInit(this.props);
|
|
179
138
|
});
|
|
180
139
|
}
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
containerId: 'app-container'
|
|
184
|
-
}) {
|
|
185
|
-
this.containerId = options === null || options === void 0 ? void 0 : options.containerId;
|
|
140
|
+
mount(options = { containerId: "app-container" }) {
|
|
141
|
+
this.containerId = options?.containerId;
|
|
186
142
|
return Promise.resolve().then(() => {
|
|
187
|
-
if (this.onMount)
|
|
143
|
+
if (this.onMount)
|
|
144
|
+
this.onMount(options);
|
|
188
145
|
});
|
|
189
146
|
}
|
|
190
|
-
|
|
191
147
|
unmount(options) {
|
|
192
148
|
const appEle = document.getElementById(this.containerId);
|
|
193
|
-
if (appEle)
|
|
194
|
-
|
|
149
|
+
if (appEle)
|
|
150
|
+
import_react_dom.default.unmountComponentAtNode(appEle);
|
|
151
|
+
(0, import_web_storage.removeStorageEvents)();
|
|
195
152
|
return Promise.resolve().then(() => this.onUnmount ? this.onUnmount(options) : null);
|
|
196
153
|
}
|
|
197
|
-
|
|
198
154
|
getRef() {
|
|
199
155
|
return this.onGetRef ? this.onGetRef() : null;
|
|
200
156
|
}
|
|
201
|
-
|
|
202
157
|
navigate(url, state) {
|
|
203
|
-
if (url)
|
|
158
|
+
if (url)
|
|
159
|
+
this.props.history.push(url, state);
|
|
204
160
|
}
|
|
205
|
-
|
|
206
161
|
}
|
|
207
|
-
|
|
208
|
-
exports.CMicroAppGuest = CMicroAppGuest;
|
|
209
|
-
(0, _defineProperty2.default)(CMicroAppGuest, "instance", void 0);
|