@elliemae/pui-app-sdk 5.7.1 → 6.0.0-next.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -0
- package/dist/cjs/analytics/appdynamics.js +1 -1
- package/dist/cjs/analytics/page-view-event.js +1 -1
- package/dist/cjs/api/helpers.js +14 -4
- package/dist/cjs/api/users/index.endpoint.cjs +12 -0
- package/dist/cjs/app.config.json +2 -2
- package/dist/cjs/communication/http-client/index.js +2 -2
- package/dist/cjs/communication/http-client/response-interceptor.js +2 -2
- package/dist/cjs/communication/http-client/retry-axios.js +14 -14
- package/dist/cjs/communication/http-client/retry.js +1 -1
- package/dist/cjs/communication/http-client/tests/hello.endpoint.cjs +12 -0
- package/dist/cjs/communication/http-client/tests/private.endpoint.cjs +13 -0
- package/dist/cjs/data/appMiddleware.js +2 -3
- package/dist/cjs/{view/fields/large-text-box/index.js → data/auth-state.js} +24 -20
- package/dist/cjs/data/breakpoint-state.js +46 -0
- package/dist/cjs/data/{error/index.js → error-state.js} +3 -3
- package/dist/cjs/data/errorMiddleware.js +2 -2
- package/dist/cjs/data/listenerMiddleware.js +5 -3
- package/dist/cjs/data/{live-message/index.js → live-message-state.js} +3 -3
- package/dist/cjs/data/{logout/actions.js → logout-actions.js} +6 -16
- package/dist/cjs/data/{navigation-prompt/actions.js → navigation-prompt-actions.js} +6 -16
- package/dist/cjs/data/queryMiddleware.js +3 -1
- package/dist/cjs/data/reducers.js +8 -8
- package/dist/cjs/data/store.js +12 -8
- package/dist/cjs/data/wait-message-state.js +46 -0
- package/dist/cjs/index.js +13 -35
- package/dist/cjs/sideeffect/auth/index.js +4 -4
- package/dist/cjs/sideeffect/error-toast/index.js +3 -3
- package/dist/cjs/sideeffect/wait-message/index.js +3 -3
- package/dist/cjs/utils/app-config/config.js +2 -2
- package/dist/cjs/utils/app-config/index.js +1 -1
- package/dist/cjs/utils/auth/helper.js +2 -2
- package/dist/cjs/utils/auth/index.js +2 -2
- package/dist/cjs/utils/font-size.js +1 -1
- package/dist/cjs/utils/micro-frontend/guest.js +9 -8
- package/dist/cjs/utils/micro-frontend/host.js +10 -8
- package/dist/cjs/utils/micro-frontend/index.js +15 -5
- package/dist/cjs/utils/micro-frontend/ssfguest-adapter.js +1 -1
- package/dist/cjs/utils/session.js +26 -4
- package/dist/cjs/{data/breakpoint/index.js → utils/storybook/main.js} +31 -26
- package/dist/cjs/utils/storybook/manager.js +2 -2
- package/dist/cjs/{data/wait-message/actions.js → utils/storybook/middleware.js} +7 -18
- package/dist/cjs/utils/storybook/preview.js +10 -5
- package/dist/cjs/utils/storybook/theme.js +5 -8
- package/dist/cjs/utils/storybook/vite.js +33 -0
- package/dist/cjs/{view/fields/date-input/index.js → utils/storybook/webpack.js} +22 -20
- package/dist/cjs/utils/testing/index.js +1 -1
- package/dist/cjs/utils/testing/render-with-redux.js +1 -5
- package/dist/cjs/utils/testing/render-with-router-redux.js +1 -2
- package/dist/cjs/utils/url.js +2 -0
- package/dist/cjs/utils/web-storage.js +1 -1
- package/dist/cjs/utils/window.js +1 -1
- package/dist/cjs/view/app-root/hosted-app.js +3 -3
- package/dist/cjs/view/app-root/index.js +2 -0
- package/dist/cjs/view/app-root/stand-alone-app.js +3 -3
- package/dist/cjs/view/app-root/style.js +1 -1
- package/dist/cjs/{data/auth/actions.js → view/app-root/use-prefetch-resources.js} +15 -31
- package/dist/cjs/view/breakpoint/use-breakpoint.js +4 -4
- package/dist/cjs/view/error-boundary/index.js +2 -2
- package/dist/cjs/view/error-toast/index.js +4 -4
- package/dist/cjs/view/fetch-host-app-data/index.js +1 -1
- package/dist/cjs/view/fetch-host-app-data/store.js +12 -2
- package/dist/cjs/view/fields/autocomplete/index.js +4 -1
- package/dist/cjs/view/fields/combo-box-v3/index.js +1 -1
- package/dist/cjs/view/fields/masked-input-text/index.js +1 -1
- package/dist/cjs/view/fields/watch-value.js +1 -1
- package/dist/cjs/view/form/index.js +1 -1
- package/dist/cjs/view/form/personal-info-section.js +5 -7
- package/dist/cjs/view/login/index.js +2 -2
- package/dist/cjs/view/micro-app/app-factory/index.js +17 -7
- package/dist/cjs/view/micro-app/index.js +1 -1
- package/dist/cjs/view/micro-app/resources/script.js +16 -8
- package/dist/cjs/view/micro-app/resources/style.js +14 -1
- package/dist/cjs/view/micro-app/use-app-will-render.js +15 -5
- package/dist/cjs/view/micro-iframe-app/app.js +1 -1
- package/dist/cjs/view/micro-iframe-app/iframe/index.js +1 -2
- package/dist/cjs/view/modals/navigation-prompt/index.js +3 -3
- package/dist/cjs/view/modals/session-expiry/index.js +3 -3
- package/dist/cjs/view/page.js +1 -1
- package/dist/cjs/view/require-auth.js +3 -3
- package/dist/cjs/view/session-timeout/index.js +2 -2
- package/dist/cjs/view/storybook/decorator.js +1 -1
- package/dist/cjs/view/use-window-size-change.js +1 -1
- package/dist/cjs/view/visually-hidden/index.js +2 -1
- package/dist/cjs/view/wait-message/index.js +2 -2
- package/dist/cjs/view/wait-message/wait-message-launcher.js +3 -3
- package/dist/esm/analytics/page-view-event.js +1 -1
- package/dist/esm/api/users/index.endpoint.cjs +12 -0
- package/dist/esm/app.config.json +2 -2
- package/dist/esm/communication/http-client/response-interceptor.js +1 -1
- package/dist/esm/communication/http-client/retry-axios.js +13 -13
- package/dist/esm/communication/http-client/retry.js +1 -1
- package/dist/esm/communication/http-client/tests/hello.endpoint.cjs +12 -0
- package/dist/esm/communication/http-client/tests/private.endpoint.cjs +13 -0
- package/dist/esm/data/appMiddleware.js +2 -3
- package/dist/esm/data/auth-state.js +24 -0
- package/dist/esm/data/breakpoint-state.js +26 -0
- package/dist/esm/data/errorMiddleware.js +2 -2
- package/dist/esm/data/listenerMiddleware.js +5 -3
- package/dist/esm/data/logout-actions.js +8 -0
- package/dist/esm/data/navigation-prompt-actions.js +8 -0
- package/dist/esm/data/queryMiddleware.js +3 -1
- package/dist/esm/data/reducers.js +4 -4
- package/dist/esm/data/store.js +12 -8
- package/dist/esm/data/wait-message-state.js +26 -0
- package/dist/esm/index.js +11 -37
- package/dist/esm/sideeffect/auth/index.js +4 -8
- package/dist/esm/sideeffect/error-toast/index.js +2 -2
- package/dist/esm/sideeffect/wait-message/index.js +3 -3
- package/dist/esm/utils/auth/helper.js +1 -1
- package/dist/esm/utils/auth/index.js +2 -2
- package/dist/esm/utils/font-size.js +1 -1
- package/dist/esm/utils/micro-frontend/guest.js +8 -7
- package/dist/esm/utils/micro-frontend/host.js +6 -4
- package/dist/esm/utils/micro-frontend/index.js +14 -4
- package/dist/esm/utils/session.js +13 -1
- package/dist/esm/utils/storybook/main.js +33 -0
- package/dist/esm/utils/storybook/manager.js +2 -2
- package/dist/esm/utils/storybook/middleware.js +7 -0
- package/dist/esm/utils/storybook/preview.js +10 -5
- package/dist/esm/utils/storybook/theme.js +5 -8
- package/dist/esm/utils/storybook/vite.js +13 -0
- package/dist/esm/utils/storybook/webpack.js +22 -0
- package/dist/esm/utils/testing/index.js +1 -1
- package/dist/esm/utils/testing/render-with-redux.js +1 -5
- package/dist/esm/utils/testing/render-with-router-redux.js +1 -2
- package/dist/esm/utils/url.js +2 -0
- package/dist/esm/utils/window.js +1 -1
- package/dist/esm/view/app-root/hosted-app.js +1 -1
- package/dist/esm/view/app-root/index.js +2 -0
- package/dist/esm/view/app-root/stand-alone-app.js +1 -1
- package/dist/esm/view/app-root/style.js +1 -1
- package/dist/esm/view/app-root/use-prefetch-resources.js +15 -0
- package/dist/esm/view/breakpoint/use-breakpoint.js +7 -4
- package/dist/esm/view/error-boundary/index.js +1 -1
- package/dist/esm/view/error-toast/index.js +3 -3
- package/dist/esm/view/fields/autocomplete/index.js +4 -1
- package/dist/esm/view/fields/combo-box-v3/index.js +1 -1
- package/dist/esm/view/form/personal-info-section.js +5 -7
- package/dist/esm/view/login/index.js +2 -2
- package/dist/esm/view/micro-app/app-factory/index.js +21 -9
- package/dist/esm/view/micro-app/resources/script.js +17 -9
- package/dist/esm/view/micro-app/resources/style.js +15 -2
- package/dist/esm/view/micro-app/use-app-will-render.js +1 -1
- package/dist/esm/view/micro-iframe-app/iframe/index.js +0 -1
- package/dist/esm/view/modals/navigation-prompt/index.js +1 -1
- package/dist/esm/view/modals/session-expiry/index.js +1 -1
- package/dist/esm/view/require-auth.js +1 -1
- package/dist/esm/view/session-timeout/index.js +1 -1
- package/dist/esm/view/storybook/decorator.js +1 -1
- package/dist/esm/view/use-window-size-change.js +1 -1
- package/dist/esm/view/visually-hidden/index.js +1 -0
- package/dist/esm/view/wait-message/index.js +1 -1
- package/dist/esm/view/wait-message/wait-message-launcher.js +1 -1
- package/dist/types/docusaurus.config.d.ts +2 -0
- package/dist/types/lib/api/helpers.d.ts +1 -1
- package/dist/types/lib/communication/http-client/response-interceptor.d.ts +1 -3
- package/dist/types/lib/communication/http-client/retry-axios.d.ts +5 -5
- package/dist/types/lib/data/appMiddleware.d.ts +2 -2
- package/dist/types/lib/data/auth-state.d.ts +28 -0
- package/dist/types/lib/data/breakpoint-state.d.ts +15 -0
- package/dist/types/lib/data/{error/index.d.ts → error-state.d.ts} +5 -1
- package/dist/types/lib/data/listenerMiddleware.d.ts +38 -17
- package/dist/types/lib/data/{live-message/index.d.ts → live-message-state.d.ts} +5 -1
- package/dist/types/lib/data/logout-actions.d.ts +4 -0
- package/dist/types/lib/data/navigation-prompt-actions.d.ts +4 -0
- package/dist/types/lib/data/reducers.d.ts +12 -15
- package/dist/types/lib/data/saga.d.ts +3 -5
- package/dist/types/lib/data/store.d.ts +31 -38
- package/dist/types/lib/data/types.d.ts +6 -6
- package/dist/types/lib/data/wait-message-state.d.ts +17 -0
- package/dist/types/lib/index.d.ts +6 -16
- package/dist/types/lib/sideeffect/auth/index.d.ts +1 -1
- package/dist/types/lib/utils/app-config/config.d.ts +1 -3
- package/dist/types/lib/utils/app-host-integration/react.d.ts +2 -2
- package/dist/types/lib/utils/guest-with-service.d.ts +1 -3
- package/dist/types/lib/utils/micro-frontend/host.d.ts +4 -4
- package/dist/types/lib/utils/micro-frontend/index.d.ts +1 -0
- package/dist/types/lib/utils/micro-frontend/types.d.ts +5 -4
- package/dist/types/lib/utils/session.d.ts +3 -9
- package/dist/types/lib/utils/storybook/main.d.ts +2 -0
- package/dist/types/lib/utils/storybook/manager.d.ts +2 -1
- package/dist/types/lib/utils/storybook/middleware.d.ts +1 -0
- package/dist/types/lib/utils/storybook/preview.d.ts +5 -29
- package/dist/types/lib/utils/storybook/theme.d.ts +2 -5
- package/dist/types/lib/utils/storybook/vite.d.ts +10 -0
- package/dist/types/lib/utils/storybook/webpack.d.ts +17 -0
- package/dist/types/lib/utils/testing/render-with-redux.d.ts +15 -19
- package/dist/types/lib/utils/testing/render-with-router-redux.d.ts +14 -18
- package/dist/types/lib/utils/testing/render-with-router.d.ts +1 -1
- package/dist/types/lib/utils/testing/render-with-state-addons.d.ts +2 -2
- package/dist/types/lib/utils/url.d.ts +1 -0
- package/dist/types/lib/utils/window.d.ts +1 -3
- package/dist/types/lib/view/app-root/hosted-app.d.ts +2 -2
- package/dist/types/lib/view/app-root/index.d.ts +2 -2
- package/dist/types/lib/view/app-root/stand-alone-app.d.ts +2 -2
- package/dist/types/lib/view/app-root/use-prefetch-resources.d.ts +1 -0
- package/dist/types/lib/view/breakpoint/index.stories.d.ts +6 -3
- package/dist/types/lib/view/breakpoint/use-media-query-list.d.ts +1 -1
- package/dist/types/lib/view/error-toast/index.d.ts +1 -4
- package/dist/types/lib/view/error-toast/index.stories.d.ts +12 -5
- package/dist/types/lib/view/fields/autocomplete/advanced-autocomplete.stories.d.ts +6 -5
- package/dist/types/lib/view/fields/autocomplete/async-suggestions-autocomplete.stories.d.ts +6 -5
- package/dist/types/lib/view/fields/autocomplete/index.stories.d.ts +6 -5
- package/dist/types/lib/view/fields/check-box/index.stories.d.ts +8 -5
- package/dist/types/lib/view/fields/check-box/set-value.stories.d.ts +8 -5
- package/dist/types/lib/view/fields/combo-box-v3/index.stories.d.ts +8 -5
- package/dist/types/lib/view/fields/connect-form.d.ts +2 -2
- package/dist/types/lib/view/fields/date-range-picker/index.d.ts +2 -2
- package/dist/types/lib/view/fields/date-range-picker/index.stories.d.ts +8 -7
- package/dist/types/lib/view/fields/date-time-picker/index.stories.d.ts +19 -39
- package/dist/types/lib/view/fields/form-layout-block-item/index.stories.d.ts +8 -4
- package/dist/types/lib/view/fields/input-text/index.stories.d.ts +8 -10
- package/dist/types/lib/view/fields/masked-input-text/index.d.ts +2 -2
- package/dist/types/lib/view/fields/masked-input-text/index.stories.d.ts +10 -0
- package/dist/types/lib/view/fields/toggle/index.stories.d.ts +6 -10
- package/dist/types/lib/view/fields/watch-value.d.ts +2 -2
- package/dist/types/lib/view/form/index.d.ts +2 -2
- package/dist/types/lib/view/form/index.stories.d.ts +7 -3
- package/dist/types/lib/view/form/personal-info-section.d.ts +0 -1
- package/dist/types/lib/view/form/submit-button/index.d.ts +2 -2
- package/dist/types/lib/view/form/usecases.stories.d.ts +9 -12
- package/dist/types/lib/view/live-message/index.stories.d.ts +5 -3
- package/dist/types/lib/view/micro-app/app-factory/index.d.ts +1 -0
- package/dist/types/lib/view/micro-app/resources/manifest.d.ts +1 -1
- package/dist/types/lib/view/micro-app/resources/script.d.ts +4 -0
- package/dist/types/lib/view/micro-app/resources/style.d.ts +4 -0
- package/dist/types/lib/view/micro-app/types.d.ts +2 -2
- package/dist/types/lib/view/micro-app/utils.d.ts +2 -2
- package/dist/types/lib/view/micro-iframe-app/iframe/index.d.ts +2 -2
- package/dist/types/lib/view/modals/error/index.stories.d.ts +9 -6
- package/dist/types/lib/view/modals/navigation-prompt/index.stories.d.ts +9 -10
- package/dist/types/lib/view/modals/session-expiry/index.stories.d.ts +10 -6
- package/dist/types/lib/view/session-timeout/index.stories.d.ts +8 -4
- package/dist/types/lib/view/storybook/decorator.d.ts +1 -1
- package/dist/types/lib/view/visually-hidden/index.d.ts +1 -0
- package/dist/types/lib/view/wait-message/index.stories.d.ts +8 -8
- package/package.json +52 -50
- package/dist/cjs/data/auth/reducer.js +0 -49
- package/dist/cjs/data/wait-message/reducer.js +0 -51
- package/dist/cjs/utils/storybook/cjs/main.js +0 -58
- package/dist/cjs/utils/storybook/cjs/middleware.js +0 -6
- package/dist/cjs/utils/storybook/cjs/vite.js +0 -8
- package/dist/cjs/utils/storybook/cjs/webpack.js +0 -20
- package/dist/cjs/view/fields/combo-box/index.js +0 -50
- package/dist/cjs/view/fields/date-picker/index.js +0 -50
- package/dist/cjs/view/fields/form-item-layout/index.js +0 -43
- package/dist/cjs/view/fields/input-mask/index.js +0 -60
- package/dist/cjs/view/fields/radio/index.js +0 -48
- package/dist/cjs/view/fields/radio-group/index.js +0 -40
- package/dist/cjs/view/fields/text-box/index.js +0 -40
- package/dist/esm/data/auth/actions.js +0 -31
- package/dist/esm/data/auth/reducer.js +0 -19
- package/dist/esm/data/breakpoint/index.js +0 -28
- package/dist/esm/data/logout/actions.js +0 -18
- package/dist/esm/data/navigation-prompt/actions.js +0 -18
- package/dist/esm/data/wait-message/actions.js +0 -18
- package/dist/esm/data/wait-message/reducer.js +0 -21
- package/dist/esm/view/fields/combo-box/index.js +0 -32
- package/dist/esm/view/fields/date-input/index.js +0 -22
- package/dist/esm/view/fields/date-picker/index.js +0 -22
- package/dist/esm/view/fields/form-item-layout/index.js +0 -23
- package/dist/esm/view/fields/input-mask/index.js +0 -42
- package/dist/esm/view/fields/large-text-box/index.js +0 -22
- package/dist/esm/view/fields/radio/index.js +0 -30
- package/dist/esm/view/fields/radio-group/index.js +0 -22
- package/dist/esm/view/fields/text-box/index.js +0 -22
- package/dist/types/lib/data/auth/actions.d.ts +0 -22
- package/dist/types/lib/data/auth/reducer.d.ts +0 -6
- package/dist/types/lib/data/breakpoint/index.d.ts +0 -13
- package/dist/types/lib/data/logout/actions.d.ts +0 -9
- package/dist/types/lib/data/navigation-prompt/actions.d.ts +0 -9
- package/dist/types/lib/data/wait-message/actions.d.ts +0 -14
- package/dist/types/lib/data/wait-message/reducer.d.ts +0 -7
- package/dist/types/lib/utils/storybook/cjs/main.d.ts +0 -66
- package/dist/types/lib/utils/storybook/cjs/middleware.d.ts +0 -2
- package/dist/types/lib/utils/storybook/cjs/vite.d.ts +0 -5
- package/dist/types/lib/utils/storybook/cjs/webpack.d.ts +0 -17
- package/dist/types/lib/view/fields/combo-box/index.d.ts +0 -8
- package/dist/types/lib/view/fields/combo-box/index.stories.d.ts +0 -5
- package/dist/types/lib/view/fields/date-input/index.d.ts +0 -8
- package/dist/types/lib/view/fields/date-input/index.stories.d.ts +0 -7
- package/dist/types/lib/view/fields/date-picker/index.d.ts +0 -9
- package/dist/types/lib/view/fields/date-picker/index.stories.d.ts +0 -5
- package/dist/types/lib/view/fields/form-item-layout/index.d.ts +0 -9
- package/dist/types/lib/view/fields/form-item-layout/index.stories.d.ts +0 -5
- package/dist/types/lib/view/fields/input-mask/index.d.ts +0 -15
- package/dist/types/lib/view/fields/input-mask/index.stories.d.ts +0 -5
- package/dist/types/lib/view/fields/large-text-box/index.d.ts +0 -9
- package/dist/types/lib/view/fields/large-text-box/index.stories.d.ts +0 -5
- package/dist/types/lib/view/fields/masked-input-text/with-money-mask.stories.d.ts +0 -11
- package/dist/types/lib/view/fields/masked-input-text/with-percentage-mask.stories.d.ts +0 -11
- package/dist/types/lib/view/fields/radio/index.d.ts +0 -9
- package/dist/types/lib/view/fields/radio/index.stories.d.ts +0 -5
- package/dist/types/lib/view/fields/radio/set-value.stories.d.ts +0 -5
- package/dist/types/lib/view/fields/radio-group/index.d.ts +0 -8
- package/dist/types/lib/view/fields/radio-group/index.stories.d.ts +0 -5
- package/dist/types/lib/view/fields/text-box/index.d.ts +0 -8
- package/dist/types/lib/view/fields/text-box/index.stories.d.ts +0 -7
- /package/dist/esm/data/{error/index.js → error-state.js} +0 -0
- /package/dist/esm/data/{live-message/index.js → live-message-state.js} +0 -0
- /package/dist/types/lib/api/users/{index.endpoint.d.ts → index.endpoint.d.cts} +0 -0
- /package/dist/types/lib/communication/http-client/tests/{hello.endpoint.d.ts → hello.endpoint.d.cts} +0 -0
- /package/dist/types/lib/communication/http-client/tests/{private.endpoint.d.ts → private.endpoint.d.cts} +0 -0
|
@@ -28,17 +28,21 @@ var import_store = require("../../data/store.js");
|
|
|
28
28
|
var import_decorator = require("../../view/storybook/decorator.js");
|
|
29
29
|
var import_app_config = require("../app-config/index.js");
|
|
30
30
|
var import_theme = require("./theme.js");
|
|
31
|
-
var import_history = require("../history.js");
|
|
32
31
|
var import_preview = require("./preview.css");
|
|
33
32
|
const theme = (0, import_pui_theme.getDefaultTheme)();
|
|
34
|
-
const store = (0, import_store.createAppStore)(
|
|
33
|
+
const store = (0, import_store.createAppStore)();
|
|
35
34
|
const appDecorator = import_decorator.withAppDecorator.bind(null, theme, store);
|
|
36
35
|
const getParameters = (storyBookTheme) => ({
|
|
37
36
|
layout: "fullscreen",
|
|
38
|
-
actions: { argTypesRegex: "^on.*" },
|
|
39
|
-
controls: {
|
|
37
|
+
actions: { argTypesRegex: "^on[A-Z].*" },
|
|
38
|
+
controls: {
|
|
39
|
+
expanded: true,
|
|
40
|
+
matchers: {
|
|
41
|
+
color: /(background|color)$/i,
|
|
42
|
+
date: /Date$/
|
|
43
|
+
}
|
|
44
|
+
},
|
|
40
45
|
docs: {
|
|
41
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
42
46
|
theme: (0, import_theme.createTheme)(storyBookTheme)
|
|
43
47
|
},
|
|
44
48
|
options: {
|
|
@@ -68,5 +72,6 @@ const decorators = [appDecorator];
|
|
|
68
72
|
const loaders = [
|
|
69
73
|
async () => {
|
|
70
74
|
await (0, import_app_config.loadAppConfig)("./");
|
|
75
|
+
return {};
|
|
71
76
|
}
|
|
72
77
|
];
|
|
@@ -26,11 +26,8 @@ const createTheme = ({
|
|
|
26
26
|
base = "light",
|
|
27
27
|
brandTitle = "Platform UI Components",
|
|
28
28
|
...rest
|
|
29
|
-
}) => (
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
...rest
|
|
35
|
-
})
|
|
36
|
-
);
|
|
29
|
+
}) => (0, import_create.create)({
|
|
30
|
+
base,
|
|
31
|
+
brandTitle: `${brandTitle} ${process.env.STORYBOOK_VERSION ?? ""}`,
|
|
32
|
+
...rest
|
|
33
|
+
});
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var vite_exports = {};
|
|
20
|
+
__export(vite_exports, {
|
|
21
|
+
viteConfig: () => viteConfig
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(vite_exports);
|
|
24
|
+
const viteConfig = {
|
|
25
|
+
stories: ["../@(lib|app)/**/*.stories.@(js|jsx|ts|tsx|mdx)"],
|
|
26
|
+
core: {
|
|
27
|
+
disableTelemetry: true
|
|
28
|
+
},
|
|
29
|
+
framework: {
|
|
30
|
+
name: "@storybook/react-vite",
|
|
31
|
+
options: {}
|
|
32
|
+
}
|
|
33
|
+
};
|
|
@@ -16,25 +16,27 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
return to;
|
|
17
17
|
};
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var
|
|
20
|
-
__export(
|
|
21
|
-
|
|
19
|
+
var webpack_exports = {};
|
|
20
|
+
__export(webpack_exports, {
|
|
21
|
+
webpackConfig: () => webpackConfig
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
24
|
-
var
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
23
|
+
module.exports = __toCommonJS(webpack_exports);
|
|
24
|
+
var import_storybook = require("@elliemae/pui-cli/storybook");
|
|
25
|
+
const webpackConfig = {
|
|
26
|
+
stories: ["../@(lib|app)/**/*.stories.@(js|jsx|ts|tsx|mdx)"],
|
|
27
|
+
addons: [
|
|
28
|
+
{
|
|
29
|
+
name: "storybook-addon-turbo-build",
|
|
30
|
+
options: {
|
|
31
|
+
optimizationLevel: 2,
|
|
32
|
+
esbuildMinifyOptions: { target: "es2020" }
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
37
|
+
webpackFinal: import_storybook.webpackFinal,
|
|
38
|
+
framework: {
|
|
39
|
+
name: "@storybook/react-webpack5",
|
|
40
|
+
options: {}
|
|
39
41
|
}
|
|
40
|
-
|
|
42
|
+
};
|
|
@@ -29,7 +29,7 @@ var import_store = require("../../data/store.js");
|
|
|
29
29
|
var import_app_root = require("../../view/app-root/index.js");
|
|
30
30
|
var import_history = require("../history.js");
|
|
31
31
|
__reExport(testing_exports, require("@testing-library/react"), module.exports);
|
|
32
|
-
const defaultStore = (0, import_store.createAppStore)(
|
|
32
|
+
const defaultStore = (0, import_store.createAppStore)();
|
|
33
33
|
const defaultTheme = (0, import_pui_theme.getDefaultTheme)();
|
|
34
34
|
const AllTheProviders = ({
|
|
35
35
|
store = defaultStore,
|
|
@@ -25,11 +25,7 @@ var import_jsx_runtime = require("react/jsx-runtime");
|
|
|
25
25
|
var import_react = require("@testing-library/react");
|
|
26
26
|
var import_react_redux = require("react-redux");
|
|
27
27
|
var import_store = require("../../data/store.js");
|
|
28
|
-
|
|
29
|
-
const renderWithRedux = (ui, {
|
|
30
|
-
initialState,
|
|
31
|
-
store = (0, import_store.createAppStore)(initialState, import_history.browserHistory)
|
|
32
|
-
} = {}) => ({
|
|
28
|
+
const renderWithRedux = (ui, { initialState, store = (0, import_store.createAppStore)({ initialState }) } = {}) => ({
|
|
33
29
|
...(0, import_react.render)(/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_redux.Provider, { store, children: ui })),
|
|
34
30
|
// adding `store` to the returned utilities to allow us
|
|
35
31
|
// to reference it in our tests (just try to avoid using
|
|
@@ -26,13 +26,12 @@ var import_react = require("@testing-library/react");
|
|
|
26
26
|
var import_react_redux = require("react-redux");
|
|
27
27
|
var import_history = require("history");
|
|
28
28
|
var import_store = require("../../data/store.js");
|
|
29
|
-
var import_history2 = require("../history.js");
|
|
30
29
|
var import_app_router = require("../../view/app-router.js");
|
|
31
30
|
const renderWithRouterRedux = (ui, {
|
|
32
31
|
route = "/",
|
|
33
32
|
history = (0, import_history.createMemoryHistory)({ initialEntries: [route] }),
|
|
34
33
|
initialState,
|
|
35
|
-
store = (0, import_store.createAppStore)(initialState
|
|
34
|
+
store = (0, import_store.createAppStore)({ initialState })
|
|
36
35
|
} = {}) => ({
|
|
37
36
|
...(0, import_react.render)(
|
|
38
37
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_redux.Provider, { store, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_app_router.AppRouter, { history, children: ui }) })
|
package/dist/cjs/utils/url.js
CHANGED
|
@@ -19,6 +19,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
19
19
|
var url_exports = {};
|
|
20
20
|
__export(url_exports, {
|
|
21
21
|
getRedirectUrl: () => getRedirectUrl,
|
|
22
|
+
isAbsoluteUrl: () => isAbsoluteUrl,
|
|
22
23
|
removeDoubleSlash: () => removeDoubleSlash
|
|
23
24
|
});
|
|
24
25
|
module.exports = __toCommonJS(url_exports);
|
|
@@ -27,4 +28,5 @@ const getRedirectUrl = () => {
|
|
|
27
28
|
url.search = "";
|
|
28
29
|
return url.href;
|
|
29
30
|
};
|
|
31
|
+
const isAbsoluteUrl = (url) => new URL(document.baseURI).origin !== new URL(url, document.baseURI).origin;
|
|
30
32
|
const removeDoubleSlash = (url) => url.replace(/([^:]\/)\/+/g, "$1");
|
|
@@ -33,7 +33,7 @@ __export(web_storage_exports, {
|
|
|
33
33
|
removeStorageEvents: () => removeStorageEvents
|
|
34
34
|
});
|
|
35
35
|
module.exports = __toCommonJS(web_storage_exports);
|
|
36
|
-
var import_localforage = __toESM(require("localforage"));
|
|
36
|
+
var import_localforage = __toESM(require("localforage"), 1);
|
|
37
37
|
const STORAGE = "storage";
|
|
38
38
|
const GET_SESSION_STORAGE = "getSessionStorage";
|
|
39
39
|
const SESSION_STORAGE = "sessionStorage";
|
package/dist/cjs/utils/window.js
CHANGED
|
@@ -58,5 +58,5 @@ const getAssetPath = () => {
|
|
|
58
58
|
if (!window.emui?.version)
|
|
59
59
|
return assetPath;
|
|
60
60
|
const majorMinorVersion = window.emui?.version.match(/^(?:\d+\.\d+)*/g);
|
|
61
|
-
return majorMinorVersion
|
|
61
|
+
return majorMinorVersion?.[0] ? assetPath.replace("latest/", `${majorMinorVersion[0]}/`) : assetPath;
|
|
62
62
|
};
|
|
@@ -32,13 +32,13 @@ __export(hosted_app_exports, {
|
|
|
32
32
|
});
|
|
33
33
|
module.exports = __toCommonJS(hosted_app_exports);
|
|
34
34
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
35
|
-
var import_styled_components = __toESM(require("styled-components"));
|
|
35
|
+
var import_styled_components = __toESM(require("styled-components"), 1);
|
|
36
36
|
var import_error_toast = require("../error-toast/index.js");
|
|
37
37
|
var import_wait_message = require("../wait-message/index.js");
|
|
38
38
|
var import_use_breakpoint = require("../breakpoint/use-breakpoint.js");
|
|
39
39
|
var import_use_window_size_change = require("../use-window-size-change.js");
|
|
40
40
|
var import_use_html_wait_message = require("../wait-message/use-html-wait-message.js");
|
|
41
|
-
var import_style = __toESM(require("./style.js"));
|
|
41
|
+
var import_style = __toESM(require("./style.js"), 1);
|
|
42
42
|
const Div = import_styled_components.default.div`
|
|
43
43
|
height: 100%;
|
|
44
44
|
`;
|
|
@@ -48,7 +48,7 @@ const HostedApp = ({ WaitMessage, children }) => {
|
|
|
48
48
|
(0, import_use_window_size_change.useWindowSizeChange)();
|
|
49
49
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Div, { children: [
|
|
50
50
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_style.default, {}),
|
|
51
|
-
WaitMessage
|
|
51
|
+
WaitMessage ?? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_wait_message.WaitMessage, {}),
|
|
52
52
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_error_toast.ErrorToast, {}),
|
|
53
53
|
children
|
|
54
54
|
] });
|
|
@@ -31,8 +31,10 @@ var import_micro_frontend = require("../../utils/micro-frontend/index.js");
|
|
|
31
31
|
var import_error_boundary = require("../error-boundary/index.js");
|
|
32
32
|
var import_stand_alone_app = require("./stand-alone-app.js");
|
|
33
33
|
var import_hosted_app = require("./hosted-app.js");
|
|
34
|
+
var import_use_prefetch_resources = require("./use-prefetch-resources.js");
|
|
34
35
|
const AppToRender = (props) => {
|
|
35
36
|
const isParent = (0, import_micro_frontend.isStandAloneGuest)() || (0, import_micro_frontend.isHost)();
|
|
37
|
+
(0, import_use_prefetch_resources.usePrefetchResources)();
|
|
36
38
|
return isParent ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_stand_alone_app.StandAloneApp, { ...props }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_hosted_app.HostedApp, { ...props });
|
|
37
39
|
};
|
|
38
40
|
const AppRoot = ({
|
|
@@ -32,7 +32,7 @@ __export(stand_alone_app_exports, {
|
|
|
32
32
|
});
|
|
33
33
|
module.exports = __toCommonJS(stand_alone_app_exports);
|
|
34
34
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
35
|
-
var import_styled_components = __toESM(require("styled-components"));
|
|
35
|
+
var import_styled_components = __toESM(require("styled-components"), 1);
|
|
36
36
|
var import_react_aria_live = require("react-aria-live");
|
|
37
37
|
var import_use_breakpoint = require("../breakpoint/use-breakpoint.js");
|
|
38
38
|
var import_use_window_size_change = require("../use-window-size-change.js");
|
|
@@ -40,7 +40,7 @@ var import_session_timeout = require("../session-timeout/index.js");
|
|
|
40
40
|
var import_live_message = require("../live-message/index.js");
|
|
41
41
|
var import_error_toast = require("../error-toast/index.js");
|
|
42
42
|
var import_wait_message = require("../wait-message/index.js");
|
|
43
|
-
var import_style = __toESM(require("./style.js"));
|
|
43
|
+
var import_style = __toESM(require("./style.js"), 1);
|
|
44
44
|
const Div = import_styled_components.default.div`
|
|
45
45
|
height: 100%;
|
|
46
46
|
`;
|
|
@@ -55,7 +55,7 @@ const StandAloneApp = ({
|
|
|
55
55
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_style.default, {}),
|
|
56
56
|
manageSession && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_session_timeout.SessionTimeout, {}),
|
|
57
57
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_live_message.LiveMessage, {}),
|
|
58
|
-
WaitMessage
|
|
58
|
+
WaitMessage ?? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_wait_message.WaitMessage, {}),
|
|
59
59
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_error_toast.ErrorToast, {}),
|
|
60
60
|
children
|
|
61
61
|
] }) });
|
|
@@ -16,36 +16,20 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
return to;
|
|
17
17
|
};
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var
|
|
20
|
-
__export(
|
|
21
|
-
|
|
22
|
-
LOGIN_SUCCESS: () => LOGIN_SUCCESS,
|
|
23
|
-
LOGOUT: () => LOGOUT,
|
|
24
|
-
auth: () => auth
|
|
19
|
+
var use_prefetch_resources_exports = {};
|
|
20
|
+
__export(use_prefetch_resources_exports, {
|
|
21
|
+
usePrefetchResources: () => usePrefetchResources
|
|
25
22
|
});
|
|
26
|
-
module.exports = __toCommonJS(
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
const
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
})
|
|
38
|
-
type: LOGIN,
|
|
39
|
-
payload: { idpCode, redirectUri, clientId, responseType, scope }
|
|
40
|
-
}),
|
|
41
|
-
logout: ({
|
|
42
|
-
clientId,
|
|
43
|
-
redirectUri,
|
|
44
|
-
responseType,
|
|
45
|
-
scope,
|
|
46
|
-
code
|
|
47
|
-
}) => ({
|
|
48
|
-
type: LOGOUT,
|
|
49
|
-
payload: { clientId, redirectUri, responseType, scope, code }
|
|
50
|
-
})
|
|
23
|
+
module.exports = __toCommonJS(use_prefetch_resources_exports);
|
|
24
|
+
var import_react = require("react");
|
|
25
|
+
var import_micro_frontend = require("../../utils/micro-frontend/index.js");
|
|
26
|
+
var import_app_factory = require("../micro-app/app-factory/index.js");
|
|
27
|
+
const usePrefetchResources = () => {
|
|
28
|
+
(0, import_react.useEffect)(() => {
|
|
29
|
+
const prefetchableFEs = (0, import_micro_frontend.getPrefetchableAppConfig)();
|
|
30
|
+
prefetchableFEs.forEach((prefetchableFE) => {
|
|
31
|
+
(0, import_app_factory.prefetchMicroFEResources)(prefetchableFE).catch(() => {
|
|
32
|
+
});
|
|
33
|
+
});
|
|
34
|
+
});
|
|
51
35
|
};
|
|
@@ -25,7 +25,7 @@ var import_react = require("react");
|
|
|
25
25
|
var import_styled_components = require("styled-components");
|
|
26
26
|
var import_pubsub_js = require("pubsub-js");
|
|
27
27
|
var import_react2 = require("../../data/react.js");
|
|
28
|
-
var
|
|
28
|
+
var import_breakpoint_state = require("../../data/breakpoint-state.js");
|
|
29
29
|
var import_use_media_query_list = require("./use-media-query-list.js");
|
|
30
30
|
var import_constants = require("../../utils/constants.js");
|
|
31
31
|
const useBreakpoint = () => {
|
|
@@ -36,12 +36,12 @@ const useBreakpoint = () => {
|
|
|
36
36
|
`(max-width: ${theme.breakpoints.medium})`,
|
|
37
37
|
`(max-width: ${theme.breakpoints.large})`
|
|
38
38
|
],
|
|
39
|
-
[
|
|
40
|
-
|
|
39
|
+
[import_breakpoint_state.Breakpoints.SMALL, import_breakpoint_state.Breakpoints.MEDIUM, import_breakpoint_state.Breakpoints.LARGE],
|
|
40
|
+
import_breakpoint_state.Breakpoints.LARGE
|
|
41
41
|
);
|
|
42
42
|
const dispatch = (0, import_react2.useAppDispatch)();
|
|
43
43
|
(0, import_react.useEffect)(() => {
|
|
44
|
-
dispatch(
|
|
44
|
+
dispatch(import_breakpoint_state.actions.change(currentBreakpoint));
|
|
45
45
|
(0, import_pubsub_js.publish)(import_constants.HOST_WINDOW_BREAKPOINT_CHANGED, currentBreakpoint);
|
|
46
46
|
}, [currentBreakpoint, dispatch]);
|
|
47
47
|
};
|
|
@@ -32,7 +32,7 @@ __export(error_boundary_exports, {
|
|
|
32
32
|
});
|
|
33
33
|
module.exports = __toCommonJS(error_boundary_exports);
|
|
34
34
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
35
|
-
var import_react = __toESM(require("react"));
|
|
35
|
+
var import_react = __toESM(require("react"), 1);
|
|
36
36
|
var import_default_error_template = require("./default-error-template.js");
|
|
37
37
|
var import_micro_frontend = require("../../utils/micro-frontend/index.js");
|
|
38
38
|
var import_log_records = require("../../utils/log-records.js");
|
|
@@ -56,7 +56,7 @@ class ErrorBoundary extends import_react.default.Component {
|
|
|
56
56
|
}
|
|
57
57
|
render() {
|
|
58
58
|
const { children, errorTemplate } = this.props;
|
|
59
|
-
const ErrorTemplate = errorTemplate
|
|
59
|
+
const ErrorTemplate = errorTemplate ?? import_default_error_template.DefaultErrorTemplate;
|
|
60
60
|
const { error, errorInfo } = this.state;
|
|
61
61
|
return errorInfo ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ErrorTemplate, { error, errorInfo }) : children;
|
|
62
62
|
}
|
|
@@ -25,12 +25,12 @@ var import_jsx_runtime = require("react/jsx-runtime");
|
|
|
25
25
|
var import_react = require("react");
|
|
26
26
|
var import_ds_toast = require("@elliemae/ds-toast");
|
|
27
27
|
var import_react2 = require("../../data/react.js");
|
|
28
|
-
var
|
|
28
|
+
var import_error_state = require("../../data/error-state.js");
|
|
29
29
|
const ErrorToast = (0, import_react.memo)((props) => {
|
|
30
30
|
const storeError = (0, import_react2.useAppSelector)((state) => state?.error);
|
|
31
31
|
const dispatch = (0, import_react2.useAppDispatch)();
|
|
32
32
|
(0, import_react.useEffect)(() => {
|
|
33
|
-
if (storeError && (storeError?.description
|
|
33
|
+
if (storeError && (storeError?.description ?? storeError?.messageText)) {
|
|
34
34
|
const toastProps = {
|
|
35
35
|
position: import_ds_toast.ToastPosition.TOP_RIGHT,
|
|
36
36
|
messageTitle: "Error",
|
|
@@ -38,10 +38,10 @@ const ErrorToast = (0, import_react.memo)((props) => {
|
|
|
38
38
|
...props,
|
|
39
39
|
...storeError
|
|
40
40
|
};
|
|
41
|
-
const messageText = toastProps.description
|
|
41
|
+
const messageText = toastProps.description ?? toastProps.messageText;
|
|
42
42
|
if (messageText)
|
|
43
43
|
(0, import_ds_toast.toast)({ messageText, ...toastProps });
|
|
44
|
-
dispatch(
|
|
44
|
+
dispatch(import_error_state.actions.clear());
|
|
45
45
|
}
|
|
46
46
|
}, [storeError, props, dispatch]);
|
|
47
47
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_toast.DSToast, { ...props });
|
|
@@ -31,7 +31,7 @@ __export(fetch_host_app_data_exports, {
|
|
|
31
31
|
fetchHostAppData: () => fetchHostAppData
|
|
32
32
|
});
|
|
33
33
|
module.exports = __toCommonJS(fetch_host_app_data_exports);
|
|
34
|
-
var import_lodash = __toESM(require("lodash"));
|
|
34
|
+
var import_lodash = __toESM(require("lodash"), 1);
|
|
35
35
|
var import_store = require("./store.js");
|
|
36
36
|
var import_message_to_host_app = require("../message-to-host-app/index.js");
|
|
37
37
|
var import_host_binding_events = require("../host-binding-events/index.js");
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
5
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
8
|
var __export = (target, all) => {
|
|
7
9
|
for (var name in all)
|
|
@@ -15,6 +17,14 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
17
|
}
|
|
16
18
|
return to;
|
|
17
19
|
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
18
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
29
|
var store_exports = {};
|
|
20
30
|
__export(store_exports, {
|
|
@@ -23,10 +33,10 @@ __export(store_exports, {
|
|
|
23
33
|
setHostAppData: () => setHostAppData
|
|
24
34
|
});
|
|
25
35
|
module.exports = __toCommonJS(store_exports);
|
|
26
|
-
var
|
|
36
|
+
var import_get = __toESM(require("lodash/get"), 1);
|
|
27
37
|
let hostAppData = {};
|
|
28
38
|
const setHostAppData = (appData) => {
|
|
29
39
|
hostAppData = { ...hostAppData, ...appData };
|
|
30
40
|
};
|
|
31
|
-
const getHostAppDataByKey = (key = "", defaultValue = null) => (0,
|
|
41
|
+
const getHostAppDataByKey = (key = "", defaultValue = null) => (0, import_get.default)(hostAppData, key, defaultValue);
|
|
32
42
|
const isHostAppDataExist = () => hostAppData && Object.keys(hostAppData).length > 0;
|
|
@@ -29,7 +29,8 @@ const filterOptions = (allOptions, newFilter) => {
|
|
|
29
29
|
if (!newFilter)
|
|
30
30
|
return allOptions;
|
|
31
31
|
const filtered = allOptions.filter(
|
|
32
|
-
(option) => option.type === "section" ||
|
|
32
|
+
(option) => option.type === "section" || // @ts-expect-error - need to check with dimsum
|
|
33
|
+
option.type !== "separator" && option.label.toLowerCase().includes(newFilter?.toLowerCase())
|
|
33
34
|
);
|
|
34
35
|
return filtered.length === 1 && filtered[0].type === "section" ? [] : filtered;
|
|
35
36
|
};
|
|
@@ -37,6 +38,8 @@ const Autocomplete = ({ children, ...rest }) => {
|
|
|
37
38
|
const { watch, setValue } = (0, import_react_hook_form.useFormContext)();
|
|
38
39
|
const watchedFilter = watch(rest.name);
|
|
39
40
|
const onSelect = (0, import_react.useCallback)(
|
|
41
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
42
|
+
// @ts-ignore
|
|
40
43
|
(newValue, ...otherArgs) => {
|
|
41
44
|
if (rest.onSelect)
|
|
42
45
|
rest.onSelect(newValue, ...otherArgs);
|
|
@@ -26,7 +26,7 @@ var import_ds_controlled_form = require("@elliemae/ds-controlled-form");
|
|
|
26
26
|
var import_react_hook_form = require("react-hook-form");
|
|
27
27
|
const ComboBoxV3 = ({
|
|
28
28
|
name,
|
|
29
|
-
defaultValue =
|
|
29
|
+
defaultValue = {},
|
|
30
30
|
rules = {},
|
|
31
31
|
clearable = true,
|
|
32
32
|
filteredOptions = null,
|
|
@@ -32,7 +32,7 @@ __export(masked_input_text_exports, {
|
|
|
32
32
|
});
|
|
33
33
|
module.exports = __toCommonJS(masked_input_text_exports);
|
|
34
34
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
35
|
-
var import_react = __toESM(require("react"));
|
|
35
|
+
var import_react = __toESM(require("react"), 1);
|
|
36
36
|
var import_ds_controlled_form = require("@elliemae/ds-controlled-form");
|
|
37
37
|
var import_react_hook_form = require("react-hook-form");
|
|
38
38
|
const MaskedInputText = ({
|
|
@@ -32,7 +32,7 @@ __export(watch_value_exports, {
|
|
|
32
32
|
});
|
|
33
33
|
module.exports = __toCommonJS(watch_value_exports);
|
|
34
34
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
35
|
-
var import_styled_components = __toESM(require("styled-components"));
|
|
35
|
+
var import_styled_components = __toESM(require("styled-components"), 1);
|
|
36
36
|
var import_ds_grid = require("@elliemae/ds-grid");
|
|
37
37
|
var import_react_hook_form = require("react-hook-form");
|
|
38
38
|
const Section = import_styled_components.default.section`
|
|
@@ -32,7 +32,7 @@ __export(form_exports, {
|
|
|
32
32
|
});
|
|
33
33
|
module.exports = __toCommonJS(form_exports);
|
|
34
34
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
35
|
-
var import_styled_components = __toESM(require("styled-components"));
|
|
35
|
+
var import_styled_components = __toESM(require("styled-components"), 1);
|
|
36
36
|
var import_react_hook_form = require("react-hook-form");
|
|
37
37
|
const StyledForm = import_styled_components.default.form`
|
|
38
38
|
width: 100%;
|
|
@@ -60,9 +60,8 @@ const State = () => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_form_layo
|
|
|
60
60
|
name: "state",
|
|
61
61
|
rules: { required: { value: true, message: "State is required" } },
|
|
62
62
|
allOptions: [
|
|
63
|
-
{ dsId: "1", type: "option", value: "
|
|
64
|
-
{ dsId: "2", type: "option", value: "
|
|
65
|
-
{ dsId: "3", type: "option", value: "nj", label: "New Jersey" }
|
|
63
|
+
{ dsId: "1", type: "option", value: "ca", label: "California" },
|
|
64
|
+
{ dsId: "2", type: "option", value: "nj", label: "New Jersey" }
|
|
66
65
|
]
|
|
67
66
|
}
|
|
68
67
|
) });
|
|
@@ -75,10 +74,9 @@ const MaritalStatus = () => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_f
|
|
|
75
74
|
required: { value: true, message: "Marital Status is required" }
|
|
76
75
|
},
|
|
77
76
|
allOptions: [
|
|
78
|
-
{ dsId: "1", type: "option", value: "
|
|
79
|
-
{ dsId: "2", type: "option", value: "
|
|
80
|
-
{ dsId: "3", type: "option", value: "
|
|
81
|
-
{ dsId: "4", type: "option", value: "separated", label: "Separated" }
|
|
77
|
+
{ dsId: "1", type: "option", value: "married", label: "Married" },
|
|
78
|
+
{ dsId: "2", type: "option", value: "unmarried", label: "Unmarried" },
|
|
79
|
+
{ dsId: "3", type: "option", value: "separated", label: "Separated" }
|
|
82
80
|
]
|
|
83
81
|
}
|
|
84
82
|
) });
|
|
@@ -25,7 +25,7 @@ var import_jsx_runtime = require("react/jsx-runtime");
|
|
|
25
25
|
var import_react = require("react");
|
|
26
26
|
var import_react2 = require("../../data/react.js");
|
|
27
27
|
var import_auth = require("../../utils/auth/index.js");
|
|
28
|
-
var
|
|
28
|
+
var import_auth_state = require("../../data/auth-state.js");
|
|
29
29
|
const Login = ({
|
|
30
30
|
clientId,
|
|
31
31
|
scope,
|
|
@@ -42,7 +42,7 @@ const Login = ({
|
|
|
42
42
|
(0, import_auth.login)({ clientId, scope, responseType }).then(({ authorized }) => {
|
|
43
43
|
if (authorized)
|
|
44
44
|
setUserAuthorized(true);
|
|
45
|
-
dispatch(
|
|
45
|
+
dispatch(import_auth_state.actions.loginSuccess());
|
|
46
46
|
}).catch(() => {
|
|
47
47
|
}).finally(() => {
|
|
48
48
|
ref.current = false;
|
|
@@ -20,6 +20,7 @@ var app_factory_exports = {};
|
|
|
20
20
|
__export(app_factory_exports, {
|
|
21
21
|
loadApp: () => loadApp,
|
|
22
22
|
mountApp: () => mountApp,
|
|
23
|
+
prefetchMicroFEResources: () => prefetchMicroFEResources,
|
|
23
24
|
unloadApp: () => unloadApp,
|
|
24
25
|
unmountApp: () => unmountApp
|
|
25
26
|
});
|
|
@@ -33,8 +34,7 @@ var import_window = require("../../../utils/window.js");
|
|
|
33
34
|
var import_style = require("../resources/style.js");
|
|
34
35
|
var import_script = require("../resources/script.js");
|
|
35
36
|
var import_manifest = require("../resources/manifest.js");
|
|
36
|
-
const
|
|
37
|
-
const isCss = (fileName) => cssType.test(fileName);
|
|
37
|
+
const isCss = (fileName) => fileName.endsWith(".css");
|
|
38
38
|
const activeApps = {};
|
|
39
39
|
const getPathName = (url) => url ? new URL(url).pathname : "";
|
|
40
40
|
const initApplication = async ({
|
|
@@ -71,7 +71,7 @@ const initApplication = async ({
|
|
|
71
71
|
});
|
|
72
72
|
};
|
|
73
73
|
const mountApp = async ({ id, name }) => {
|
|
74
|
-
const app =
|
|
74
|
+
const app = window.emui?.[id] || {};
|
|
75
75
|
const { mount } = app;
|
|
76
76
|
if (!mount || typeof mount !== "function")
|
|
77
77
|
throw new Error(
|
|
@@ -84,7 +84,7 @@ const mountApp = async ({ id, name }) => {
|
|
|
84
84
|
});
|
|
85
85
|
};
|
|
86
86
|
const unmountApp = async ({ id, name }) => {
|
|
87
|
-
const app =
|
|
87
|
+
const app = window.emui?.[id];
|
|
88
88
|
if (!app)
|
|
89
89
|
return null;
|
|
90
90
|
const { unmount } = app;
|
|
@@ -103,12 +103,12 @@ const unmountApp = async ({ id, name }) => {
|
|
|
103
103
|
return Promise.resolve();
|
|
104
104
|
};
|
|
105
105
|
const addAppToActiveAppList = (id, elementIds) => {
|
|
106
|
-
const app =
|
|
106
|
+
const app = window.emui?.[id] || {};
|
|
107
107
|
const { getRef } = app;
|
|
108
108
|
activeApps[id] = { elementIds };
|
|
109
109
|
const host = import_host.CMicroAppHost.getInstance();
|
|
110
110
|
if (host)
|
|
111
|
-
host.activeGuests[id] = getRef
|
|
111
|
+
host.activeGuests[id] = getRef?.() || {};
|
|
112
112
|
return Promise.resolve();
|
|
113
113
|
};
|
|
114
114
|
const waitAndInitApplication = (appConfig, requests) => (
|
|
@@ -133,6 +133,16 @@ const removeAssetsFromDOM = (id, documentEle = document) => {
|
|
|
133
133
|
delete activeApps[id];
|
|
134
134
|
}
|
|
135
135
|
};
|
|
136
|
+
const prefetchMicroFEResources = async (appConfig) => {
|
|
137
|
+
const manifest = await (0, import_manifest.getAppManifest)(appConfig);
|
|
138
|
+
const assets = (0, import_manifest.getFullFileNameofAssetsFromManifest)(manifest, appConfig.files);
|
|
139
|
+
assets.forEach((fileName) => {
|
|
140
|
+
if (isCss(fileName))
|
|
141
|
+
(0, import_style.prefetchStyle)({ hostUrl: appConfig.hostUrl, fileName });
|
|
142
|
+
else
|
|
143
|
+
(0, import_script.prefetchScript)({ hostUrl: appConfig.hostUrl, fileName });
|
|
144
|
+
});
|
|
145
|
+
};
|
|
136
146
|
const loadApp = async (appConfig) => {
|
|
137
147
|
(0, import_micro_frontend.getLogger)().info(import_log_records.logRecords.APP_LOADING(appConfig.id));
|
|
138
148
|
let assets = appConfig.files;
|
|
@@ -154,7 +164,7 @@ const unloadApp = ({
|
|
|
154
164
|
if (!hostUrl)
|
|
155
165
|
throw new Error("Unable to unload app. hostUrl is required");
|
|
156
166
|
(0, import_micro_frontend.getLogger)().info(import_log_records.logRecords.APP_UNLOADING(id));
|
|
157
|
-
const app =
|
|
167
|
+
const app = window.emui?.[id];
|
|
158
168
|
if (!app)
|
|
159
169
|
return;
|
|
160
170
|
removeAssetsFromDOM(id, documentEle);
|