@elliemae/pui-app-sdk 3.0.0-beta.1 → 3.0.0-beta.13
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 +13 -7
- package/dist/cjs/analytics/index.js +13 -12
- package/dist/cjs/analytics/page-view-event.js +23 -13
- package/dist/cjs/analytics/user-session-event.js +14 -13
- package/dist/cjs/analytics/user-wait-event.js +13 -12
- package/dist/cjs/analytics/web-analytics.js +19 -2
- package/dist/cjs/api/auth/index.js +11 -10
- package/dist/cjs/api/helpers.js +12 -11
- package/dist/cjs/api/users/index.js +11 -10
- package/dist/cjs/api/users/users.json +8 -0
- package/dist/cjs/app.config.json +129 -0
- package/dist/cjs/communication/http-client/index.js +18 -12
- package/dist/cjs/communication/http-client/request-interceptor.js +11 -10
- package/dist/cjs/communication/http-client/response-interceptor.js +13 -7
- package/dist/cjs/communication/http-client/retry-axios.js +14 -8
- package/dist/cjs/communication/http-client/retry.js +11 -10
- package/dist/cjs/communication/http-client/tests/index.test-disable.js +7 -7
- package/dist/cjs/data/auth/actions.js +19 -2
- package/dist/cjs/data/auth/reducer.js +14 -8
- package/dist/cjs/data/breakpoint/index.js +13 -7
- package/dist/cjs/data/error/index.js +11 -10
- package/dist/cjs/data/index.js +35 -0
- package/dist/cjs/data/live-message/index.js +11 -10
- package/dist/cjs/data/logout/actions.js +19 -2
- package/dist/cjs/data/navigation-prompt/actions.js +19 -2
- package/dist/cjs/data/react-redux.js +11 -10
- package/dist/cjs/data/reducers.js +15 -14
- package/dist/cjs/data/saga.js +19 -2
- package/dist/cjs/data/store.js +17 -24
- package/dist/cjs/data/wait-message/actions.js +19 -2
- package/dist/cjs/data/wait-message/reducer.js +14 -8
- package/dist/cjs/index.js +88 -82
- package/dist/cjs/index.pug +15 -0
- package/dist/cjs/micro-frontend.js +34 -0
- package/dist/cjs/sideeffect/auth/index.js +15 -14
- package/dist/cjs/sideeffect/error-toast/index.js +15 -14
- package/dist/cjs/sideeffect/wait-message/index.js +15 -14
- package/dist/cjs/typings/styled.d.js +1 -19
- package/dist/cjs/utils/app-config/config.js +14 -8
- package/dist/cjs/utils/app-config/index.js +17 -11
- package/dist/cjs/utils/app-host-integration/react.js +11 -10
- package/dist/cjs/utils/auth/helper.js +13 -7
- package/dist/cjs/utils/auth/index.js +19 -18
- package/dist/cjs/utils/await.js +18 -1
- package/dist/cjs/utils/constants.js +19 -2
- package/dist/cjs/utils/font-size.js +19 -2
- package/dist/cjs/utils/guest-with-service.js +19 -2
- package/dist/cjs/utils/helpers.js +20 -3
- package/dist/cjs/utils/history.js +11 -10
- package/dist/cjs/utils/log-records.js +19 -2
- package/dist/cjs/utils/micro-frontend/console-logger.js +12 -11
- package/dist/cjs/utils/micro-frontend/guest.js +25 -19
- package/dist/cjs/utils/micro-frontend/host.js +30 -29
- package/dist/cjs/utils/micro-frontend/index.js +17 -11
- package/dist/cjs/utils/micro-frontend/types.js +18 -1
- package/dist/cjs/utils/redact-pii.js +19 -2
- package/dist/cjs/utils/service-worker.js +12 -11
- package/dist/cjs/utils/session.js +15 -14
- package/dist/cjs/utils/storybook/{main.js → cjs/main.js} +11 -3
- package/dist/cjs/utils/storybook/{middleware.js → cjs/middleware.js} +0 -0
- package/dist/cjs/utils/storybook/{vite.js → cjs/vite.js} +0 -0
- package/dist/cjs/utils/storybook/{webpack.js → cjs/webpack.js} +9 -1
- package/dist/cjs/utils/storybook/manager.js +12 -11
- package/dist/cjs/utils/storybook/preview.js +19 -19
- package/dist/cjs/utils/storybook/theme.js +11 -10
- package/dist/cjs/utils/testing/index.js +19 -12
- package/dist/cjs/utils/testing/render-with-redux.js +17 -10
- package/dist/cjs/utils/testing/render-with-router-redux.js +20 -13
- package/dist/cjs/utils/testing/render-with-router.js +24 -14
- package/dist/cjs/utils/testing/render-with-state-addons.js +17 -10
- package/dist/cjs/utils/types.js +18 -1
- package/dist/cjs/utils/url.js +19 -2
- package/dist/cjs/utils/web-storage.js +13 -7
- package/dist/cjs/utils/window.js +11 -10
- package/dist/cjs/view/app-root/hosted-app.js +18 -11
- package/dist/cjs/view/app-root/index.js +25 -18
- package/dist/cjs/view/app-root/stand-alone-app.js +22 -15
- package/dist/cjs/view/app-root/style.js +11 -10
- package/dist/cjs/view/app-router.js +48 -0
- package/dist/cjs/view/error-boundary/default-error-template.js +25 -2
- package/dist/cjs/view/error-boundary/index.js +16 -10
- package/dist/cjs/view/error-toast/index.js +21 -14
- package/dist/cjs/view/fetch-host-app-data/index.js +16 -10
- package/dist/cjs/view/fetch-host-app-data/store.js +11 -10
- package/dist/cjs/view/fields/check-box/index.js +16 -9
- package/dist/cjs/view/fields/combo-box/index.js +16 -9
- package/dist/cjs/view/fields/connect-form.js +11 -10
- package/dist/cjs/view/fields/date-input/index.js +16 -9
- package/dist/cjs/view/fields/date-picker/index.js +16 -9
- package/dist/cjs/view/fields/form-item-layout/index.js +17 -10
- package/dist/cjs/view/fields/input-mask/index.js +16 -9
- package/dist/cjs/view/fields/large-text-box/index.js +16 -9
- package/dist/cjs/view/fields/radio/index.js +16 -9
- package/dist/cjs/view/fields/radio-group/index.js +16 -9
- package/dist/cjs/view/fields/text-box/index.js +16 -9
- package/dist/cjs/view/fields/watch-value.js +15 -8
- package/dist/cjs/view/form/index.js +15 -8
- package/dist/cjs/view/form/personal-info-section.js +18 -11
- package/dist/cjs/view/form/submit-button/index.js +16 -9
- package/dist/cjs/view/guest-unload-handlers/index.js +11 -10
- package/dist/cjs/view/host-binding-events/index.js +19 -2
- package/dist/cjs/view/intro.stories.mdx +27 -0
- package/dist/cjs/view/live-message/index.js +15 -8
- package/dist/cjs/view/loadable/index.js +15 -8
- package/dist/cjs/view/login/index.js +15 -14
- package/dist/cjs/view/media-breakpoint/index.js +18 -17
- package/dist/cjs/view/message-to-host-app/index.js +11 -10
- package/dist/cjs/view/micro-app/app-factory/index.js +22 -19
- package/dist/cjs/view/micro-app/const.js +19 -2
- package/dist/cjs/view/micro-app/index.js +17 -10
- package/dist/cjs/view/micro-app/resources/manifest.js +16 -13
- package/dist/cjs/view/micro-app/resources/script.js +12 -11
- package/dist/cjs/view/micro-app/resources/style.js +11 -10
- package/dist/cjs/view/micro-app/types.js +18 -1
- package/dist/cjs/view/micro-app/use-app-will-render.js +21 -18
- package/dist/cjs/view/micro-app/utils.js +11 -10
- package/dist/cjs/view/micro-iframe-app/app.js +18 -11
- package/dist/cjs/view/micro-iframe-app/iframe/const.js +19 -2
- package/dist/cjs/view/micro-iframe-app/iframe/index.html +74 -0
- package/dist/cjs/view/micro-iframe-app/iframe/index.js +16 -9
- package/dist/cjs/view/micro-iframe-app/index.js +16 -9
- package/dist/cjs/view/micro-iframe-app/types.js +18 -1
- package/dist/cjs/view/micro-iframe-app/use-frame-loaded.js +16 -13
- package/dist/cjs/view/modals/error/index.js +16 -9
- package/dist/cjs/view/modals/navigation-prompt/index.js +18 -11
- package/dist/cjs/view/modals/session-expiry/customHooks.js +14 -13
- package/dist/cjs/view/modals/session-expiry/index.js +24 -14
- package/dist/cjs/view/modals/wait-message/html-wait-message.js +12 -11
- package/dist/cjs/view/modals/wait-message/index.js +19 -12
- package/dist/cjs/view/modals/wait-message/wait-message-launcher.js +14 -13
- package/dist/cjs/view/page.js +51 -0
- package/dist/cjs/view/render-with-delay/index.js +15 -8
- package/dist/cjs/view/render-with-host-data/index.js +16 -9
- package/dist/cjs/view/require-auth.js +62 -0
- package/dist/cjs/view/session-timeout/index.js +23 -12
- package/dist/cjs/view/storybook/decorator.js +15 -8
- package/dist/cjs/view/use-previous.js +11 -10
- package/dist/cjs/view/useMediaBreakpoints/index.js +11 -10
- package/dist/cjs/view/visually-hidden/index.js +15 -8
- package/dist/cjs/view/window-size/index.js +23 -18
- package/dist/es/analytics/index.js +3 -3
- package/dist/es/analytics/page-view-event.js +12 -3
- package/dist/es/analytics/user-session-event.js +2 -2
- package/dist/es/analytics/user-wait-event.js +1 -1
- package/dist/es/api/auth/index.js +1 -1
- package/dist/es/api/users/index.js +1 -1
- package/dist/es/api/users/users.json +8 -0
- package/dist/es/app.config.json +129 -0
- package/dist/es/communication/http-client/index.js +5 -5
- package/dist/es/communication/http-client/request-interceptor.js +1 -1
- package/dist/es/communication/http-client/retry-axios.js +1 -1
- package/dist/es/communication/http-client/retry.js +1 -1
- package/dist/es/communication/http-client/tests/index.test-disable.js +3 -3
- package/dist/es/data/auth/reducer.js +1 -1
- package/dist/es/data/index.js +11 -0
- package/dist/es/data/reducers.js +4 -4
- package/dist/es/data/store.js +5 -15
- package/dist/es/data/wait-message/reducer.js +1 -1
- package/dist/es/index.js +85 -75
- package/dist/es/index.pug +15 -0
- package/dist/es/micro-frontend.js +10 -0
- package/dist/es/sideeffect/auth/index.js +4 -4
- package/dist/es/sideeffect/error-toast/index.js +4 -4
- package/dist/es/sideeffect/wait-message/index.js +4 -4
- package/dist/es/utils/app-config/config.js +1 -1
- package/dist/es/utils/app-config/index.js +4 -4
- package/dist/es/utils/app-host-integration/react.js +1 -1
- package/dist/es/utils/auth/helper.js +1 -1
- package/dist/es/utils/auth/index.js +9 -9
- package/dist/es/utils/helpers.js +1 -1
- package/dist/es/utils/micro-frontend/console-logger.js +1 -1
- package/dist/es/utils/micro-frontend/guest.js +9 -9
- package/dist/es/utils/micro-frontend/host.js +19 -18
- package/dist/es/utils/micro-frontend/index.js +4 -4
- package/dist/es/utils/service-worker.js +2 -2
- package/dist/es/utils/session.js +4 -4
- package/dist/es/utils/storybook/manager.js +1 -1
- package/dist/es/utils/storybook/preview.js +7 -8
- package/dist/es/utils/testing/index.js +4 -3
- package/dist/es/utils/testing/render-with-redux.js +3 -2
- package/dist/es/utils/testing/render-with-router-redux.js +5 -4
- package/dist/es/utils/testing/render-with-router.js +10 -6
- package/dist/es/utils/testing/render-with-state-addons.js +1 -0
- package/dist/es/view/app-root/hosted-app.js +5 -4
- package/dist/es/view/app-root/index.js +9 -8
- package/dist/es/view/app-root/stand-alone-app.js +8 -7
- package/dist/es/view/app-router.js +19 -0
- package/dist/es/view/error-boundary/default-error-template.js +1 -0
- package/dist/es/view/error-boundary/index.js +3 -3
- package/dist/es/view/error-toast/index.js +4 -8
- package/dist/es/view/fetch-host-app-data/index.js +6 -3
- package/dist/es/view/fields/check-box/index.js +2 -1
- package/dist/es/view/fields/combo-box/index.js +2 -1
- package/dist/es/view/fields/date-input/index.js +2 -1
- package/dist/es/view/fields/date-picker/index.js +2 -1
- package/dist/es/view/fields/form-item-layout/index.js +3 -2
- package/dist/es/view/fields/input-mask/index.js +4 -2
- package/dist/es/view/fields/large-text-box/index.js +2 -1
- package/dist/es/view/fields/radio/index.js +2 -1
- package/dist/es/view/fields/radio-group/index.js +2 -1
- package/dist/es/view/fields/text-box/index.js +2 -1
- package/dist/es/view/fields/watch-value.js +1 -0
- package/dist/es/view/form/index.js +1 -0
- package/dist/es/view/form/personal-info-section.js +5 -4
- package/dist/es/view/form/submit-button/index.js +2 -1
- package/dist/es/view/guest-unload-handlers/index.js +1 -1
- package/dist/es/view/intro.stories.mdx +27 -0
- package/dist/es/view/live-message/index.js +2 -1
- package/dist/es/view/loadable/index.js +2 -1
- package/dist/es/view/login/index.js +4 -4
- package/dist/es/view/media-breakpoint/index.js +5 -5
- package/dist/es/view/message-to-host-app/index.js +1 -1
- package/dist/es/view/micro-app/app-factory/index.js +15 -10
- package/dist/es/view/micro-app/index.js +3 -2
- package/dist/es/view/micro-app/resources/manifest.js +6 -4
- package/dist/es/view/micro-app/resources/script.js +2 -2
- package/dist/es/view/micro-app/resources/style.js +1 -1
- package/dist/es/view/micro-app/use-app-will-render.js +13 -6
- package/dist/es/view/micro-app/utils.js +1 -1
- package/dist/es/view/micro-iframe-app/app.js +4 -3
- package/dist/es/view/micro-iframe-app/iframe/index.html +74 -0
- package/dist/es/view/micro-iframe-app/iframe/index.js +2 -1
- package/dist/es/view/micro-iframe-app/index.js +3 -2
- package/dist/es/view/micro-iframe-app/use-frame-loaded.js +5 -3
- package/dist/es/view/modals/error/index.js +2 -1
- package/dist/es/view/modals/navigation-prompt/index.js +4 -3
- package/dist/es/view/modals/session-expiry/customHooks.js +2 -2
- package/dist/es/view/modals/session-expiry/index.js +11 -7
- package/dist/es/view/modals/wait-message/html-wait-message.js +1 -1
- package/dist/es/view/modals/wait-message/index.js +5 -4
- package/dist/es/view/modals/wait-message/wait-message-launcher.js +3 -3
- package/dist/es/view/page.js +22 -0
- package/dist/es/view/render-with-delay/index.js +2 -1
- package/dist/es/view/render-with-host-data/index.js +3 -2
- package/dist/es/view/require-auth.js +33 -0
- package/dist/es/view/session-timeout/index.js +10 -5
- package/dist/es/view/storybook/decorator.js +3 -2
- package/dist/es/view/visually-hidden/index.js +1 -0
- package/dist/es/view/window-size/index.js +11 -7
- 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 +15 -15
- package/dist/types/data/reducers.d.ts +6 -6
- package/dist/types/data/store.d.ts +30 -30
- package/dist/types/index.d.ts +78 -78
- package/dist/types/micro-frontend.d.ts +6 -0
- package/dist/types/sideeffect/auth/index.d.ts +1 -1
- package/dist/types/utils/app-config/config.d.ts +1 -1
- package/dist/types/utils/app-host-integration/react.d.ts +1 -1
- package/dist/types/utils/history.d.ts +2 -2
- package/dist/types/utils/micro-frontend/guest.d.ts +3 -3
- package/dist/types/utils/micro-frontend/host.d.ts +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/session.d.ts +5 -2
- package/dist/types/utils/storybook/{main.d.cts → cjs/main.d.ts} +24 -2
- package/dist/types/utils/storybook/{middleware.d.cts → cjs/middleware.d.ts} +0 -0
- package/dist/types/utils/storybook/{vite.d.cts → cjs/vite.d.ts} +0 -0
- package/dist/types/utils/storybook/cjs/webpack.d.ts +16 -0
- package/dist/types/utils/storybook/preview.d.ts +8 -2
- package/dist/types/utils/testing/render-with-redux.d.ts +22 -22
- package/dist/types/utils/testing/render-with-router-redux.d.ts +22 -22
- package/dist/types/utils/testing/render-with-router.d.ts +2 -2
- package/dist/types/view/app-root/index.d.ts +1 -1
- package/dist/types/view/app-router.d.ts +9 -0
- package/dist/types/view/fields/check-box/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.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/micro-app/app-factory/index.d.ts +3 -3
- package/dist/types/view/micro-app/index.d.ts +1 -1
- package/dist/types/view/micro-app/resources/manifest.d.ts +2 -2
- 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/types.d.ts +1 -0
- package/dist/types/view/micro-app/use-app-will-render.d.ts +2 -2
- 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/page.d.ts +8 -0
- package/dist/types/view/require-auth.d.ts +8 -0
- package/dist/types/view/storybook/decorator.d.ts +1 -1
- package/package.json +44 -29
- package/dist/cjs/route/index.js +0 -48
- package/dist/cjs/route/page-view.js +0 -38
- package/dist/cjs/route/private-route/index.js +0 -68
- package/dist/cjs/view/header/center-region/index.js +0 -64
- package/dist/cjs/view/header/index.js +0 -43
- package/dist/cjs/view/header/logo-region/index.js +0 -32
- package/dist/cjs/view/header/nav-region/index.js +0 -46
- package/dist/cjs/view/header/nav-region/notification/index.js +0 -31
- package/dist/cjs/view/header/nav-region/user/index.js +0 -31
- package/dist/es/route/index.js +0 -25
- package/dist/es/route/page-view.js +0 -15
- package/dist/es/route/private-route/index.js +0 -45
- package/dist/es/view/header/center-region/index.js +0 -41
- package/dist/es/view/header/index.js +0 -20
- package/dist/es/view/header/logo-region/index.js +0 -9
- package/dist/es/view/header/nav-region/index.js +0 -23
- package/dist/es/view/header/nav-region/notification/index.js +0 -8
- package/dist/es/view/header/nav-region/user/index.js +0 -8
- package/dist/types/route/index.d.ts +0 -8
- package/dist/types/route/page-view.d.ts +0 -1
- package/dist/types/route/private-route/index.d.ts +0 -8
- package/dist/types/utils/storybook/webpack.d.cts +0 -8
- package/dist/types/view/header/center-region/index.d.ts +0 -9
- package/dist/types/view/header/index.d.ts +0 -7
- package/dist/types/view/header/index.stories.d.ts +0 -5
- package/dist/types/view/header/logo-region/index.d.ts +0 -2
- package/dist/types/view/header/nav-region/index.d.ts +0 -2
- package/dist/types/view/header/nav-region/notification/index.d.ts +0 -2
- package/dist/types/view/header/nav-region/user/index.d.ts +0 -2
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
1
|
var __defProp = Object.defineProperty;
|
|
3
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
5
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
6
|
var __export = (target, all) => {
|
|
9
|
-
__markAsModule(target);
|
|
10
7
|
for (var name in all)
|
|
11
8
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
9
|
};
|
|
13
|
-
var __reExport = (target, module2, desc) => {
|
|
10
|
+
var __reExport = (target, module2, copyDefault, desc) => {
|
|
14
11
|
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
15
12
|
for (let key of __getOwnPropNames(module2))
|
|
16
|
-
if (!__hasOwnProp.call(target, key) && key !== "default")
|
|
13
|
+
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
|
17
14
|
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
18
15
|
}
|
|
19
16
|
return target;
|
|
20
17
|
};
|
|
21
|
-
var
|
|
22
|
-
return
|
|
23
|
-
};
|
|
24
|
-
|
|
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 useMediaBreakpoints_exports = {};
|
|
24
|
+
__export(useMediaBreakpoints_exports, {
|
|
25
25
|
useMediaBreakpoints: () => useMediaBreakpoints
|
|
26
26
|
});
|
|
27
|
-
var import_react =
|
|
27
|
+
var import_react = require("react");
|
|
28
28
|
const useMediaBreakpoints = (queries, values, defaultValue) => {
|
|
29
29
|
const mediaQueryLists = queries.map((q) => window.matchMedia(q));
|
|
30
30
|
const getValue = (0, import_react.useCallback)(() => {
|
|
@@ -39,3 +39,4 @@ const useMediaBreakpoints = (queries, values, defaultValue) => {
|
|
|
39
39
|
}, [getValue, mediaQueryLists]);
|
|
40
40
|
return value;
|
|
41
41
|
};
|
|
42
|
+
module.exports = __toCommonJS(useMediaBreakpoints_exports);
|
|
@@ -6,26 +6,32 @@ var __getProtoOf = Object.getPrototypeOf;
|
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
7
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
8
|
var __export = (target, all) => {
|
|
9
|
-
__markAsModule(target);
|
|
10
9
|
for (var name in all)
|
|
11
10
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
11
|
};
|
|
13
|
-
var __reExport = (target, module2, desc) => {
|
|
12
|
+
var __reExport = (target, module2, copyDefault, desc) => {
|
|
14
13
|
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
15
14
|
for (let key of __getOwnPropNames(module2))
|
|
16
|
-
if (!__hasOwnProp.call(target, key) && key !== "default")
|
|
15
|
+
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
|
17
16
|
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
18
17
|
}
|
|
19
18
|
return target;
|
|
20
19
|
};
|
|
21
|
-
var
|
|
22
|
-
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default",
|
|
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);
|
|
23
22
|
};
|
|
24
|
-
|
|
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 visually_hidden_exports = {};
|
|
29
|
+
__export(visually_hidden_exports, {
|
|
25
30
|
VisuallyHidden: () => VisuallyHidden
|
|
26
31
|
});
|
|
27
|
-
var
|
|
28
|
-
var
|
|
32
|
+
var React = __toESM(require("react"));
|
|
33
|
+
var import_react = require("react");
|
|
34
|
+
var import_styled_components = __toESM(require("styled-components"));
|
|
29
35
|
const Span = import_styled_components.default.span`
|
|
30
36
|
border: 0;
|
|
31
37
|
clip: rect(0 0 0 0);
|
|
@@ -42,3 +48,4 @@ const VisuallyHidden = (0, import_react.forwardRef)((props, ref) => /* @__PURE__
|
|
|
42
48
|
ref,
|
|
43
49
|
...props
|
|
44
50
|
}));
|
|
51
|
+
module.exports = __toCommonJS(visually_hidden_exports);
|
|
@@ -1,41 +1,46 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
1
|
var __defProp = Object.defineProperty;
|
|
3
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
5
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
6
|
var __export = (target, all) => {
|
|
9
|
-
__markAsModule(target);
|
|
10
7
|
for (var name in all)
|
|
11
8
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
9
|
};
|
|
13
|
-
var __reExport = (target, module2, desc) => {
|
|
10
|
+
var __reExport = (target, module2, copyDefault, desc) => {
|
|
14
11
|
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
15
12
|
for (let key of __getOwnPropNames(module2))
|
|
16
|
-
if (!__hasOwnProp.call(target, key) && key !== "default")
|
|
13
|
+
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
|
17
14
|
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
18
15
|
}
|
|
19
16
|
return target;
|
|
20
17
|
};
|
|
21
|
-
var
|
|
22
|
-
return
|
|
23
|
-
};
|
|
24
|
-
|
|
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 window_size_exports = {};
|
|
24
|
+
__export(window_size_exports, {
|
|
25
25
|
WindowSize: () => WindowSize
|
|
26
26
|
});
|
|
27
|
-
var import_react =
|
|
28
|
-
var import_pubsub_js =
|
|
29
|
-
var import_constants =
|
|
27
|
+
var import_react = require("react");
|
|
28
|
+
var import_pubsub_js = require("pubsub-js");
|
|
29
|
+
var import_constants = require("../../utils/constants.js");
|
|
30
30
|
const WindowSize = () => {
|
|
31
31
|
(0, import_react.useEffect)(() => {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
32
|
+
if (window.ResizeObserver) {
|
|
33
|
+
const observer = new ResizeObserver((entries) => {
|
|
34
|
+
(0, import_pubsub_js.publish)(import_constants.HOST_WINDOW_RESIZED, entries && entries[0]);
|
|
35
|
+
});
|
|
36
|
+
observer.observe(window.document.documentElement);
|
|
37
|
+
return () => {
|
|
38
|
+
observer.unobserve(window.document.documentElement);
|
|
39
|
+
};
|
|
40
|
+
}
|
|
36
41
|
return () => {
|
|
37
|
-
observer.unobserve(window.document.documentElement);
|
|
38
42
|
};
|
|
39
43
|
}, []);
|
|
40
|
-
return
|
|
44
|
+
return null;
|
|
41
45
|
};
|
|
46
|
+
module.exports = __toCommonJS(window_size_exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { CMicroAppGuest } from "../utils/micro-frontend/guest";
|
|
2
|
-
import { getBAEventParameters } from "./web-analytics";
|
|
3
|
-
import { redactPii } from "../utils/redact-pii";
|
|
1
|
+
import { CMicroAppGuest } from "../utils/micro-frontend/guest.js";
|
|
2
|
+
import { getBAEventParameters } from "./web-analytics.js";
|
|
3
|
+
import { redactPii } from "../utils/redact-pii.js";
|
|
4
4
|
const sendBAEventToSelf = (data) => {
|
|
5
5
|
const redactedData = redactPii(data);
|
|
6
6
|
window.gtmDataLayer = window.gtmDataLayer || [];
|
|
@@ -1,7 +1,16 @@
|
|
|
1
|
-
import { sendBAEvent } from ".";
|
|
1
|
+
import { sendBAEvent } from "./index.js";
|
|
2
|
+
const getWindow = () => {
|
|
3
|
+
try {
|
|
4
|
+
window.top?.document;
|
|
5
|
+
return window.top || window.self;
|
|
6
|
+
} catch (e) {
|
|
7
|
+
return window.self;
|
|
8
|
+
}
|
|
9
|
+
};
|
|
2
10
|
const pageViewEvent = ({ pageTitle }) => {
|
|
3
|
-
const
|
|
4
|
-
const {
|
|
11
|
+
const pageWindow = getWindow();
|
|
12
|
+
const { pathname, href } = pageWindow.location;
|
|
13
|
+
const { title } = pageWindow.document;
|
|
5
14
|
const { pathname: guestPagePath, href: guestPageUrl } = window.location;
|
|
6
15
|
const { title: guestPageTitle } = document;
|
|
7
16
|
sendBAEvent({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getAuthHTTPClient } from "../../communication/http-client";
|
|
1
|
+
import { getAuthHTTPClient } from "../../communication/http-client/index.js";
|
|
2
2
|
const getUser = async ({ userName }) => {
|
|
3
3
|
const { data } = await getAuthHTTPClient().get(`/encompass/v1/users/${userName}`);
|
|
4
4
|
return data;
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
{
|
|
2
|
+
"appId": "app-sdk",
|
|
3
|
+
"brand": "primary",
|
|
4
|
+
"activeEnv": "localhost",
|
|
5
|
+
"hosted": true,
|
|
6
|
+
"sessionTimeoutWarnInterval": "60000",
|
|
7
|
+
"sessionTimeoutInterval": "70000",
|
|
8
|
+
"serviceEndpoints": {
|
|
9
|
+
"api": "",
|
|
10
|
+
"idp": ""
|
|
11
|
+
},
|
|
12
|
+
"walkMeUrl": "https://cdn.walkme.com/users/897bcebc13fd48038c790e2866e6a9fb/test/walkme_897bcebc13fd48038c790e2866e6a9fb_https.js",
|
|
13
|
+
"env": {
|
|
14
|
+
"localhost": {
|
|
15
|
+
"serviceEndpoints": {
|
|
16
|
+
"api": "",
|
|
17
|
+
"idp": ""
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"dev": {
|
|
21
|
+
"serviceEndpoints": {
|
|
22
|
+
"api": "https://dev-api.appsdk.rd.elliemae.io",
|
|
23
|
+
"idp": "https://int.idp.ellielabs.com"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"dev2": {
|
|
27
|
+
"serviceEndpoints": {
|
|
28
|
+
"api": "https://int.api.ellielabs.com",
|
|
29
|
+
"idp": "https://int.idp.ellielabs.com"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"qa": {
|
|
33
|
+
"serviceEndpoints": {
|
|
34
|
+
"api": "https://qa-api.appsdk.rd.elliemae.io",
|
|
35
|
+
"idp": "https://int.idp.ellielabs.com"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"qa2": {
|
|
39
|
+
"serviceEndpoints": {
|
|
40
|
+
"api": "https://int.api.ellielabs.com",
|
|
41
|
+
"idp": "https://int.idp.ellielabs.com"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"qa3": {
|
|
45
|
+
"serviceEndpoints": {
|
|
46
|
+
"api": "https://int.api.ellielabs.com",
|
|
47
|
+
"idp": "https://int.idp.ellielabs.com"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"int": {
|
|
51
|
+
"serviceEndpoints": {
|
|
52
|
+
"api": "https://int.api.ellielabs.com",
|
|
53
|
+
"idp": "https://int.idp.ellielabs.com"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"peg-osb1": {
|
|
57
|
+
"serviceEndpoints": {
|
|
58
|
+
"api": "https://encompass-peg-api.elliemae.com",
|
|
59
|
+
"idp": "https://peg.idp.ellielabs.com/authorize"
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"peg-osb2": {
|
|
63
|
+
"serviceEndpoints": {
|
|
64
|
+
"api": "https://encompass-peg2-api.elliemae.com",
|
|
65
|
+
"idp": "https://peg.idp.ellielabs.com/authorize"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"peg": {
|
|
69
|
+
"serviceEndpoints": {
|
|
70
|
+
"api": "https://peg2-west.api.ellielabs.com",
|
|
71
|
+
"idp": "https://peg.idp.ellielabs.com/authorize"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"peg-oapi-west": {
|
|
75
|
+
"serviceEndpoints": {
|
|
76
|
+
"api": "https://peg2-west.api.ellielabs.com",
|
|
77
|
+
"idp": "https://peg.idp.ellielabs.com/authorize"
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"peg-oapi-east": {
|
|
81
|
+
"serviceEndpoints": {
|
|
82
|
+
"api": "https://peg2-east.api.ellielabs.com",
|
|
83
|
+
"idp": "https://peg.idp.ellielabs.com/authorize"
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"peg2-oapi-east": {
|
|
87
|
+
"serviceEndpoints": {
|
|
88
|
+
"api": "https://peg2-east.api.ellielabs.com",
|
|
89
|
+
"idp": "https://peg.idp.ellielabs.com/authorize"
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"peg3": {
|
|
93
|
+
"serviceEndpoints": {
|
|
94
|
+
"api": "https://pel1.api.ellielabs.com",
|
|
95
|
+
"idp": "https://peg3.idp.ellielabs.com/authorize"
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"stage": {
|
|
99
|
+
"serviceEndpoints": {
|
|
100
|
+
"api": "https://stg.api.elliemae.com",
|
|
101
|
+
"idp": "https://stg.idp.elliemae.com/authorize"
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"beta": {
|
|
105
|
+
"serviceEndpoints": {
|
|
106
|
+
"api": "https://concept.api.elliemae.com",
|
|
107
|
+
"idp": "https://concept.idp.elliemae.com/authorize"
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
"demo": {
|
|
111
|
+
"serviceEndpoints": {
|
|
112
|
+
"api": "https://concept.api.elliemae.com",
|
|
113
|
+
"idp": "https://concept.idp.elliemae.com/authorize"
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
"epc": {
|
|
117
|
+
"serviceEndpoints": {
|
|
118
|
+
"api": "https://concept.api.elliemae.com",
|
|
119
|
+
"idp": "https://concept.idp.elliemae.com/authorize"
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
"prod": {
|
|
123
|
+
"serviceEndpoints": {
|
|
124
|
+
"api": "https://api.elliemae.com",
|
|
125
|
+
"idp": "https://idp.elliemae.com/authorize"
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import axios from "axios";
|
|
2
|
-
import { getAppConfigValue } from "../../utils/app-config/config";
|
|
3
|
-
import { getAuthorizationHeader } from "../../utils/auth/helper";
|
|
4
|
-
import setupRetry from "./retry";
|
|
5
|
-
import { requestInterceptor } from "./request-interceptor";
|
|
6
|
-
import { handleSuccess, handleFailure } from "./response-interceptor";
|
|
2
|
+
import { getAppConfigValue } from "../../utils/app-config/config.js";
|
|
3
|
+
import { getAuthorizationHeader } from "../../utils/auth/helper.js";
|
|
4
|
+
import setupRetry from "./retry.js";
|
|
5
|
+
import { requestInterceptor } from "./request-interceptor.js";
|
|
6
|
+
import { handleSuccess, handleFailure } from "./response-interceptor.js";
|
|
7
7
|
const REQUEST_TIMEOUT = 2 * 60 * 1e3;
|
|
8
8
|
const getHTTPClient = ({
|
|
9
9
|
baseURL = getAppConfigValue("serviceEndpoints.api", ""),
|
|
@@ -64,7 +64,7 @@ const onError = (err) => {
|
|
|
64
64
|
return Promise.reject(err);
|
|
65
65
|
}
|
|
66
66
|
const onBackoffPromise = new Promise((resolve) => {
|
|
67
|
-
const delay = (
|
|
67
|
+
const delay = (2 ** config.currentRetryAttempt - 1) / 2 * 1e3;
|
|
68
68
|
err.config.retryConfig.currentRetryAttempt += 1;
|
|
69
69
|
setTimeout(resolve, delay);
|
|
70
70
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import enums from "../../../utils/constants";
|
|
2
|
-
import { getAuthHTTPClient } from "../index";
|
|
3
|
-
import { onAuthorizationFailure } from "../response-interceptor";
|
|
1
|
+
import enums from "../../../utils/constants.js";
|
|
2
|
+
import { getAuthHTTPClient } from "../index.js";
|
|
3
|
+
import { onAuthorizationFailure } from "../response-interceptor.js";
|
|
4
4
|
describe("http client test cases", () => {
|
|
5
5
|
const callApi = ({
|
|
6
6
|
apiUrl,
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { useInjectReducer, useInjectSaga } from "redux-injectors";
|
|
2
|
+
import { useAppDispatch, useAppSelector } from "./react-redux.js";
|
|
3
|
+
import { createAppStore, getStore } from "./store.js";
|
|
4
|
+
export {
|
|
5
|
+
createAppStore as configureStore,
|
|
6
|
+
getStore,
|
|
7
|
+
useAppDispatch,
|
|
8
|
+
useAppSelector,
|
|
9
|
+
useInjectReducer,
|
|
10
|
+
useInjectSaga
|
|
11
|
+
};
|
package/dist/es/data/reducers.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { combineReducers } from "@reduxjs/toolkit";
|
|
2
|
-
import { waitMessageReducer } from "./wait-message/reducer";
|
|
3
|
-
import { errorReducer } from "./error";
|
|
4
|
-
import { breakpointReducer } from "./breakpoint";
|
|
5
|
-
import { liveMessageReducer } from "./live-message";
|
|
2
|
+
import { waitMessageReducer } from "./wait-message/reducer.js";
|
|
3
|
+
import { errorReducer } from "./error/index.js";
|
|
4
|
+
import { breakpointReducer } from "./breakpoint/index.js";
|
|
5
|
+
import { liveMessageReducer } from "./live-message/index.js";
|
|
6
6
|
const createReducer = (injectedReducers = {}) => {
|
|
7
7
|
const rootReducer = combineReducers({
|
|
8
8
|
waitMessage: waitMessageReducer,
|
package/dist/es/data/store.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { configureStore } from "@reduxjs/toolkit";
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import {
|
|
3
|
+
createInjectorsEnhancer
|
|
4
|
+
} from "redux-injectors";
|
|
4
5
|
import createSagaMiddleware from "redux-saga";
|
|
5
|
-
import { createReducer } from "./reducers";
|
|
6
|
+
import { createReducer } from "./reducers.js";
|
|
6
7
|
const rootReducer = createReducer();
|
|
7
8
|
let appStore = null;
|
|
8
9
|
const setStore = (store) => {
|
|
@@ -19,22 +20,11 @@ const createStore = (initialState, sagaMiddleware, history, middlewareConfig = {
|
|
|
19
20
|
];
|
|
20
21
|
const baseStore = configureStore({
|
|
21
22
|
reducer: rootReducer,
|
|
22
|
-
middleware: (getDefaultMiddleware) => getDefaultMiddleware(middlewareConfig).concat(sagaMiddleware)
|
|
23
|
+
middleware: (getDefaultMiddleware) => getDefaultMiddleware(middlewareConfig).concat(sagaMiddleware),
|
|
23
24
|
devTools: true,
|
|
24
25
|
preloadedState: initialState,
|
|
25
26
|
enhancers
|
|
26
27
|
});
|
|
27
|
-
let hotModule = null;
|
|
28
|
-
try {
|
|
29
|
-
hotModule = module?.hot;
|
|
30
|
-
} catch (err) {
|
|
31
|
-
hotModule = import.meta?.webpackHot;
|
|
32
|
-
}
|
|
33
|
-
if (hotModule) {
|
|
34
|
-
hotModule.accept("./reducers", () => {
|
|
35
|
-
forceReducerReload(baseStore);
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
28
|
return baseStore;
|
|
39
29
|
};
|
|
40
30
|
const createAppStore = (initialState = {}, history, middlewareConfig) => {
|