@elliemae/pui-app-sdk 3.0.0-beta.1 → 3.0.0-beta.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/dist/cjs/analytics/index.js +3 -3
- package/dist/cjs/analytics/page-view-event.js +13 -4
- package/dist/cjs/analytics/user-session-event.js +4 -4
- package/dist/cjs/analytics/user-wait-event.js +3 -3
- package/dist/cjs/api/auth/index.js +1 -1
- package/dist/cjs/api/users/index.js +1 -1
- 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 +5 -5
- package/dist/cjs/communication/http-client/request-interceptor.js +1 -1
- package/dist/cjs/communication/http-client/retry.js +1 -1
- package/dist/cjs/communication/http-client/tests/index.test-disable.js +3 -3
- package/dist/cjs/data/auth/reducer.js +1 -1
- package/dist/cjs/data/index.js +34 -0
- package/dist/cjs/data/reducers.js +4 -4
- package/dist/cjs/data/store.js +2 -3
- package/dist/cjs/data/wait-message/reducer.js +1 -1
- package/dist/cjs/index.js +74 -72
- package/dist/cjs/index.pug +15 -0
- package/dist/cjs/micro-frontend.js +33 -0
- package/dist/cjs/route/index.js +2 -1
- package/dist/cjs/route/page-view.js +1 -1
- package/dist/cjs/route/private-route/index.js +8 -7
- package/dist/cjs/sideeffect/auth/index.js +4 -4
- package/dist/cjs/sideeffect/error-toast/index.js +4 -4
- package/dist/cjs/sideeffect/wait-message/index.js +4 -4
- package/dist/cjs/utils/app-config/index.js +4 -4
- package/dist/cjs/utils/app-host-integration/react.js +1 -1
- package/dist/cjs/utils/auth/helper.js +1 -1
- package/dist/cjs/utils/auth/index.js +9 -9
- package/dist/cjs/utils/micro-frontend/console-logger.js +1 -1
- package/dist/cjs/utils/micro-frontend/guest.js +8 -8
- package/dist/cjs/utils/micro-frontend/host.js +14 -14
- package/dist/cjs/utils/micro-frontend/index.js +4 -4
- package/dist/cjs/utils/service-worker.js +2 -2
- package/dist/cjs/utils/session.js +2 -2
- 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 +1 -1
- package/dist/cjs/utils/storybook/preview.js +7 -8
- package/dist/cjs/utils/testing/index.js +4 -3
- package/dist/cjs/utils/testing/render-with-redux.js +3 -2
- package/dist/cjs/utils/testing/render-with-router-redux.js +3 -2
- package/dist/cjs/utils/testing/render-with-router.js +1 -0
- package/dist/cjs/utils/testing/render-with-state-addons.js +1 -0
- package/dist/cjs/view/app-root/hosted-app.js +5 -4
- package/dist/cjs/view/app-root/index.js +7 -6
- package/dist/cjs/view/app-root/stand-alone-app.js +8 -7
- package/dist/cjs/view/error-boundary/default-error-template.js +17 -0
- package/dist/cjs/view/error-boundary/index.js +3 -3
- package/dist/cjs/view/error-toast/index.js +8 -7
- package/dist/cjs/view/fetch-host-app-data/index.js +3 -3
- package/dist/cjs/view/fields/check-box/index.js +2 -1
- package/dist/cjs/view/fields/combo-box/index.js +2 -1
- package/dist/cjs/view/fields/date-input/index.js +2 -1
- package/dist/cjs/view/fields/date-picker/index.js +1 -0
- package/dist/cjs/view/fields/form-item-layout/index.js +3 -2
- package/dist/cjs/view/fields/input-mask/index.js +2 -1
- package/dist/cjs/view/fields/large-text-box/index.js +2 -1
- package/dist/cjs/view/fields/radio/index.js +2 -1
- package/dist/cjs/view/fields/radio-group/index.js +2 -1
- package/dist/cjs/view/fields/text-box/index.js +2 -1
- package/dist/cjs/view/fields/watch-value.js +1 -0
- package/dist/cjs/view/form/index.js +1 -0
- package/dist/cjs/view/form/personal-info-section.js +5 -4
- package/dist/cjs/view/form/submit-button/index.js +3 -2
- package/dist/cjs/view/guest-unload-handlers/index.js +1 -1
- package/dist/cjs/view/header/center-region/index.js +1 -0
- package/dist/cjs/view/header/index.js +5 -4
- package/dist/cjs/view/header/logo-region/index.js +2 -1
- package/dist/cjs/view/header/logo-region/logo.svg +2 -0
- package/dist/cjs/view/header/nav-region/index.js +3 -2
- package/dist/cjs/view/header/nav-region/notification/index.js +2 -1
- package/dist/cjs/view/header/nav-region/notification/index.svg +5 -0
- package/dist/cjs/view/header/nav-region/user/index.js +2 -1
- package/dist/cjs/view/header/nav-region/user/index.svg +4 -0
- package/dist/cjs/view/intro.stories.mdx +27 -0
- package/dist/cjs/view/live-message/index.js +2 -1
- package/dist/cjs/view/loadable/index.js +2 -1
- package/dist/cjs/view/login/index.js +4 -3
- package/dist/cjs/view/media-breakpoint/index.js +5 -4
- package/dist/cjs/view/message-to-host-app/index.js +1 -1
- package/dist/cjs/view/micro-app/app-factory/index.js +11 -9
- package/dist/cjs/view/micro-app/index.js +3 -2
- package/dist/cjs/view/micro-app/resources/manifest.js +6 -4
- package/dist/cjs/view/micro-app/resources/script.js +1 -1
- package/dist/cjs/view/micro-app/resources/style.js +1 -1
- package/dist/cjs/view/micro-app/use-app-will-render.js +8 -6
- package/dist/cjs/view/micro-app/utils.js +1 -1
- package/dist/cjs/view/micro-iframe-app/app.js +4 -3
- package/dist/cjs/view/micro-iframe-app/iframe/index.html +74 -0
- package/dist/cjs/view/micro-iframe-app/iframe/index.js +2 -1
- package/dist/cjs/view/micro-iframe-app/index.js +3 -2
- package/dist/cjs/view/micro-iframe-app/use-frame-loaded.js +5 -3
- package/dist/cjs/view/modals/error/index.js +1 -0
- package/dist/cjs/view/modals/navigation-prompt/index.js +3 -2
- package/dist/cjs/view/modals/session-expiry/customHooks.js +2 -2
- package/dist/cjs/view/modals/session-expiry/index.js +5 -4
- package/dist/cjs/view/modals/wait-message/html-wait-message.js +1 -0
- package/dist/cjs/view/modals/wait-message/index.js +6 -5
- package/dist/cjs/view/modals/wait-message/wait-message-launcher.js +3 -2
- package/dist/cjs/view/render-with-delay/index.js +1 -0
- package/dist/cjs/view/render-with-host-data/index.js +3 -2
- package/dist/cjs/view/session-timeout/index.js +5 -4
- package/dist/cjs/view/storybook/decorator.js +3 -2
- package/dist/cjs/view/visually-hidden/index.js +1 -0
- package/dist/cjs/view/window-size/index.js +11 -6
- 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.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 +2 -3
- package/dist/es/data/wait-message/reducer.js +1 -1
- package/dist/es/index.js +84 -72
- package/dist/es/index.pug +15 -0
- package/dist/es/micro-frontend.js +10 -0
- package/dist/es/route/index.js +2 -1
- package/dist/es/route/page-view.js +1 -1
- package/dist/es/route/private-route/index.js +8 -7
- 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/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/micro-frontend/console-logger.js +1 -1
- package/dist/es/utils/micro-frontend/guest.js +8 -8
- package/dist/es/utils/micro-frontend/host.js +14 -14
- 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 +2 -2
- 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 +3 -2
- package/dist/es/utils/testing/render-with-router.js +1 -0
- 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 +7 -6
- package/dist/es/view/app-root/stand-alone-app.js +8 -7
- 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 +1 -0
- package/dist/es/view/fields/form-item-layout/index.js +3 -2
- package/dist/es/view/fields/input-mask/index.js +2 -1
- 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/header/center-region/index.js +1 -0
- package/dist/es/view/header/index.js +5 -4
- package/dist/es/view/header/logo-region/index.js +2 -1
- package/dist/es/view/header/logo-region/logo.svg +2 -0
- package/dist/es/view/header/nav-region/index.js +3 -2
- package/dist/es/view/header/nav-region/notification/index.js +2 -1
- package/dist/es/view/header/nav-region/notification/index.svg +5 -0
- package/dist/es/view/header/nav-region/user/index.js +2 -1
- package/dist/es/view/header/nav-region/user/index.svg +4 -0
- 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 -3
- package/dist/es/view/media-breakpoint/index.js +5 -4
- package/dist/es/view/message-to-host-app/index.js +1 -1
- package/dist/es/view/micro-app/app-factory/index.js +14 -9
- 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 +1 -1
- 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 +1 -0
- package/dist/es/view/modals/navigation-prompt/index.js +3 -2
- package/dist/es/view/modals/session-expiry/customHooks.js +2 -2
- package/dist/es/view/modals/session-expiry/index.js +5 -4
- package/dist/es/view/modals/wait-message/html-wait-message.js +1 -0
- package/dist/es/view/modals/wait-message/index.js +5 -4
- package/dist/es/view/modals/wait-message/wait-message-launcher.js +3 -2
- package/dist/es/view/render-with-delay/index.js +1 -0
- package/dist/es/view/render-with-host-data/index.js +3 -2
- package/dist/es/view/session-timeout/index.js +5 -4
- 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 -6
- package/dist/types/communication/http-client/retry.d.ts +1 -1
- package/dist/types/data/index.d.ts +4 -0
- package/dist/types/data/react-redux.d.ts +11 -11
- package/dist/types/data/reducers.d.ts +6 -6
- package/dist/types/data/store.d.ts +29 -29
- package/dist/types/index.d.ts +79 -78
- package/dist/types/micro-frontend.d.ts +6 -0
- package/dist/types/route/private-route/index.d.ts +1 -1
- package/dist/types/sideeffect/auth/index.d.ts +1 -1
- package/dist/types/utils/app-host-integration/react.d.ts +1 -1
- package/dist/types/utils/micro-frontend/guest.d.ts +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/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 +20 -20
- package/dist/types/utils/testing/render-with-router-redux.d.ts +20 -20
- package/dist/types/view/app-root/index.d.ts +1 -1
- 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/header/index.d.ts +1 -1
- package/dist/types/view/header/index.stories.d.ts +1 -1
- package/dist/types/view/micro-app/app-factory/index.d.ts +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/storybook/decorator.d.ts +1 -1
- package/package.json +32 -15
- package/dist/types/utils/storybook/webpack.d.cts +0 -8
|
@@ -24,9 +24,10 @@ var __toModule = (module2) => {
|
|
|
24
24
|
__export(exports, {
|
|
25
25
|
FormItemLayout: () => FormItemLayout
|
|
26
26
|
});
|
|
27
|
-
var
|
|
27
|
+
var React = __toModule(require("react"));
|
|
28
|
+
var import_FormItem = __toModule(require("@elliemae/ds-form/FormItem"));
|
|
28
29
|
var import_react_hook_form = __toModule(require("react-hook-form"));
|
|
29
|
-
var import_connect_form = __toModule(require("../connect-form"));
|
|
30
|
+
var import_connect_form = __toModule(require("../connect-form.js"));
|
|
30
31
|
const FormItemLayout = ({
|
|
31
32
|
name,
|
|
32
33
|
...rest
|
|
@@ -26,7 +26,8 @@ __export(exports, {
|
|
|
26
26
|
MASK_PIPES: () => import_InputMask.MASK_PIPES,
|
|
27
27
|
MASK_TYPES: () => import_InputMask.MASK_TYPES
|
|
28
28
|
});
|
|
29
|
-
var
|
|
29
|
+
var React = __toModule(require("react"));
|
|
30
|
+
var import_InputMask = __toModule(require("@elliemae/ds-form/InputMask"));
|
|
30
31
|
var import_react_hook_form = __toModule(require("react-hook-form"));
|
|
31
32
|
const InputMask = ({
|
|
32
33
|
name,
|
|
@@ -24,7 +24,8 @@ var __toModule = (module2) => {
|
|
|
24
24
|
__export(exports, {
|
|
25
25
|
LargeTextBox: () => LargeTextBox
|
|
26
26
|
});
|
|
27
|
-
var
|
|
27
|
+
var React = __toModule(require("react"));
|
|
28
|
+
var import_LargeInputText = __toModule(require("@elliemae/ds-form/LargeInputText"));
|
|
28
29
|
var import_react_hook_form = __toModule(require("react-hook-form"));
|
|
29
30
|
const LargeTextBox = ({
|
|
30
31
|
name,
|
|
@@ -24,7 +24,8 @@ var __toModule = (module2) => {
|
|
|
24
24
|
__export(exports, {
|
|
25
25
|
Radio: () => Radio
|
|
26
26
|
});
|
|
27
|
-
var
|
|
27
|
+
var React = __toModule(require("react"));
|
|
28
|
+
var import_Radio = __toModule(require("@elliemae/ds-form/Radio"));
|
|
28
29
|
var import_react_hook_form = __toModule(require("react-hook-form"));
|
|
29
30
|
const Radio = ({
|
|
30
31
|
name,
|
|
@@ -24,7 +24,8 @@ var __toModule = (module2) => {
|
|
|
24
24
|
__export(exports, {
|
|
25
25
|
RadioGroup: () => RadioGroup
|
|
26
26
|
});
|
|
27
|
-
var
|
|
27
|
+
var React = __toModule(require("react"));
|
|
28
|
+
var import_RadioGroup = __toModule(require("@elliemae/ds-form/RadioGroup"));
|
|
28
29
|
var import_react_hook_form = __toModule(require("react-hook-form"));
|
|
29
30
|
const RadioGroup = ({
|
|
30
31
|
name,
|
|
@@ -24,7 +24,8 @@ var __toModule = (module2) => {
|
|
|
24
24
|
__export(exports, {
|
|
25
25
|
TextBox: () => TextBox
|
|
26
26
|
});
|
|
27
|
-
var
|
|
27
|
+
var React = __toModule(require("react"));
|
|
28
|
+
var import_TextBox = __toModule(require("@elliemae/ds-form/TextBox"));
|
|
28
29
|
var import_react_hook_form = __toModule(require("react-hook-form"));
|
|
29
30
|
const TextBox = ({
|
|
30
31
|
name,
|
|
@@ -24,6 +24,7 @@ var __toModule = (module2) => {
|
|
|
24
24
|
__export(exports, {
|
|
25
25
|
WatchValue: () => WatchValue
|
|
26
26
|
});
|
|
27
|
+
var React = __toModule(require("react"));
|
|
27
28
|
var import_styled_components = __toModule(require("styled-components"));
|
|
28
29
|
var import_react_hook_form = __toModule(require("react-hook-form"));
|
|
29
30
|
const Section = import_styled_components.default.section`
|
|
@@ -24,6 +24,7 @@ var __toModule = (module2) => {
|
|
|
24
24
|
__export(exports, {
|
|
25
25
|
Form: () => Form
|
|
26
26
|
});
|
|
27
|
+
var React = __toModule(require("react"));
|
|
27
28
|
var import_styled_components = __toModule(require("styled-components"));
|
|
28
29
|
var import_react_hook_form = __toModule(require("react-hook-form"));
|
|
29
30
|
const StyledForm = import_styled_components.default.form`
|
|
@@ -27,11 +27,12 @@ __export(exports, {
|
|
|
27
27
|
MaritalStatus: () => MaritalStatus,
|
|
28
28
|
State: () => State
|
|
29
29
|
});
|
|
30
|
+
var React = __toModule(require("react"));
|
|
30
31
|
var import_moment = __toModule(require("moment"));
|
|
31
|
-
var import_text_box = __toModule(require("../fields/text-box"));
|
|
32
|
-
var import_combo_box = __toModule(require("../fields/combo-box"));
|
|
33
|
-
var import_date_input = __toModule(require("../fields/date-input"));
|
|
34
|
-
var import_form_item_layout = __toModule(require("../fields/form-item-layout"));
|
|
32
|
+
var import_text_box = __toModule(require("../fields/text-box/index.js"));
|
|
33
|
+
var import_combo_box = __toModule(require("../fields/combo-box/index.js"));
|
|
34
|
+
var import_date_input = __toModule(require("../fields/date-input/index.js"));
|
|
35
|
+
var import_form_item_layout = __toModule(require("../fields/form-item-layout/index.js"));
|
|
35
36
|
const FirstName = () => /* @__PURE__ */ React.createElement(import_form_item_layout.FormItemLayout, {
|
|
36
37
|
floatingLabel: true,
|
|
37
38
|
inputComponent: import_text_box.TextBox,
|
|
@@ -24,8 +24,9 @@ var __toModule = (module2) => {
|
|
|
24
24
|
__export(exports, {
|
|
25
25
|
FormSubmitButton: () => FormSubmitButton
|
|
26
26
|
});
|
|
27
|
+
var React = __toModule(require("react"));
|
|
27
28
|
var import_react_hook_form = __toModule(require("react-hook-form"));
|
|
28
|
-
var
|
|
29
|
+
var import_ds_button = __toModule(require("@elliemae/ds-button"));
|
|
29
30
|
const FormSubmitButton = ({
|
|
30
31
|
...rest
|
|
31
32
|
}) => {
|
|
@@ -33,7 +34,7 @@ const FormSubmitButton = ({
|
|
|
33
34
|
formState,
|
|
34
35
|
formProps: { mode }
|
|
35
36
|
} = (0, import_react_hook_form.useFormContext)();
|
|
36
|
-
return /* @__PURE__ */ React.createElement(
|
|
37
|
+
return /* @__PURE__ */ React.createElement(import_ds_button.default, {
|
|
37
38
|
...rest,
|
|
38
39
|
type: "submit",
|
|
39
40
|
disabled: mode !== "onSubmit" && (!formState.isDirty || formState.isDirty && !formState.isValid)
|
|
@@ -25,7 +25,7 @@ __export(exports, {
|
|
|
25
25
|
notifyGuestUnloadComplete: () => notifyGuestUnloadComplete,
|
|
26
26
|
onGuestUnloadStart: () => onGuestUnloadStart
|
|
27
27
|
});
|
|
28
|
-
var import_message_to_host_app = __toModule(require("../message-to-host-app"));
|
|
28
|
+
var import_message_to_host_app = __toModule(require("../message-to-host-app/index.js"));
|
|
29
29
|
const onGuestUnloadStart = () => new Promise((resolve) => {
|
|
30
30
|
window.addEventListener("message", (msg) => {
|
|
31
31
|
if (msg.data.id === "unload-guest" || msg.data.id === "close_loan") {
|
|
@@ -24,6 +24,7 @@ var __toModule = (module2) => {
|
|
|
24
24
|
__export(exports, {
|
|
25
25
|
CenterRegion: () => CenterRegion
|
|
26
26
|
});
|
|
27
|
+
var React = __toModule(require("react"));
|
|
27
28
|
var import_react_router_dom = __toModule(require("react-router-dom"));
|
|
28
29
|
var import_styled_components = __toModule(require("styled-components"));
|
|
29
30
|
const NavList = import_styled_components.default.ul`
|
|
@@ -24,11 +24,12 @@ var __toModule = (module2) => {
|
|
|
24
24
|
__export(exports, {
|
|
25
25
|
Header: () => Header
|
|
26
26
|
});
|
|
27
|
+
var React = __toModule(require("react"));
|
|
27
28
|
var import_styled_components = __toModule(require("styled-components"));
|
|
28
|
-
var import_micro_frontend = __toModule(require("../../utils/micro-frontend"));
|
|
29
|
-
var import_logo_region = __toModule(require("./logo-region"));
|
|
30
|
-
var import_center_region = __toModule(require("./center-region"));
|
|
31
|
-
var import_nav_region = __toModule(require("./nav-region"));
|
|
29
|
+
var import_micro_frontend = __toModule(require("../../utils/micro-frontend/index.js"));
|
|
30
|
+
var import_logo_region = __toModule(require("./logo-region/index.js"));
|
|
31
|
+
var import_center_region = __toModule(require("./center-region/index.js"));
|
|
32
|
+
var import_nav_region = __toModule(require("./nav-region/index.js"));
|
|
32
33
|
const HeaderContainer = import_styled_components.default.header`
|
|
33
34
|
display: flex;
|
|
34
35
|
height: 56px;
|
|
@@ -24,9 +24,10 @@ var __toModule = (module2) => {
|
|
|
24
24
|
__export(exports, {
|
|
25
25
|
LogoRegion: () => LogoRegion
|
|
26
26
|
});
|
|
27
|
+
var React = __toModule(require("react"));
|
|
27
28
|
var import_styled_components = __toModule(require("styled-components"));
|
|
28
29
|
var import_logo = __toModule(require("./logo.svg"));
|
|
29
30
|
const LogoContainer = import_styled_components.default.div`
|
|
30
31
|
align-self: center;
|
|
31
32
|
`;
|
|
32
|
-
const LogoRegion = () => /* @__PURE__ */ React.createElement(LogoContainer, null, /* @__PURE__ */ React.createElement(import_logo.
|
|
33
|
+
const LogoRegion = () => /* @__PURE__ */ React.createElement(LogoContainer, null, /* @__PURE__ */ React.createElement(import_logo.default, null));
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
|
|
2
|
+
<svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" width="195" height="28" viewBox="0 0 195 28"><style>.st0{fill:#dee3e0}.st1{fill:#fff}.st2{fill:#408a90}.st3{fill:#00acdc}.st4{fill:#f7911e}.st5{fill:#0067ab}.st6{fill:#fefefe}</style><g id="Page-1_2_"><g id="brand-assets" transform="translate(-107 -187)"><g id="logo-enc-em-inline-dark" transform="translate(107 187)"><g id="Group-3"><g id="Group" transform="translate(143 14)"><path id="Fill-27" class="st0" d="M1.8 1.9c-.6 0-.9.6-.9 1.1s.3 1.1.9 1.1c.6 0 .8-.7.8-1.1.1-.5-.2-1.1-.8-1.1zM.4.1h.5v1.8c.2-.3.5-.5 1-.5.9 0 1.3.7 1.3 1.5s-.4 1.6-1.3 1.6c-.5 0-.9-.3-1-.5v.4H.4V.1z"/><path id="Fill-29" class="st0" d="M3.7 5.3H4c.5 0 .7-.7.7-.7 0-.1-.1-.2-.1-.3l-1-2.8h.6L5 4l.8-2.5h.6l-1.1 3c-.2.6-.4 1.2-1.1 1.2h-.4l-.1-.4z"/><path id="Fill-31" class="st0" d="M50.5 1.8h.2c.1 0 .2 0 .2-.2 0-.1-.1-.2-.2-.2h-.2v.4zm-.2-.5h.4c.3 0 .4.1.4.3 0 .2-.1.3-.3.3l.3.5h-.2l-.3-.5h-.2v.5h-.2V1.3h.1zm.3 1.4c.5 0 .8-.4.8-.8 0-.5-.3-.8-.8-.8s-.8.4-.8.8.4.8.8.8zm0-1.8c.5 0 1 .4 1 1 0 .5-.4 1-1 1s-1-.4-1-1c.1-.6.5-1 1-1z"/><path id="Fill-33" class="st0" d="M8.8.1h4.8v1.1H10v2.5h3.2v1H10v2.9h3.6v1H8.8z"/><path id="Fill-35" class="st0" d="M14.6 8.6h1.1V0h-1.1z"/><path id="Fill-37" class="st0" d="M17 8.6h1.1V0H17z"/><path id="Fill-38" class="st0" d="M19.4 8.6h1.2V2.3h-1.2v6.3zm-.1-7.2h1.2V0h-1.2v1.4z"/><path id="Fill-39" class="st0" d="M25.7 4.9c0-1-.6-1.7-1.6-1.7-1.1 0-1.6.9-1.7 1.7h3.3zm.7 3.5c-.4.2-.9.4-2 .4-2.2 0-3.2-1.3-3.2-3.4 0-1.9 1.2-3.2 2.9-3.2 2.1 0 2.8 1.5 2.8 3.5h-4.5c0 1.2 1 2.1 2.1 2.1.8 0 1.6-.4 1.9-.6v1.2z"/><path id="Fill-40" class="st0" d="M27.9.1H30l2.6 7.1L35.3.1h2v8.5h-1.2V1.2l-2.9 7.4H32l-2.8-7.4v7.4h-1.3z"/><path id="Fill-41" class="st0" d="M48.2 4.9c0-1-.6-1.7-1.6-1.7-1.1 0-1.6.9-1.7 1.7h3.3zm.8 3.5c-.4.2-.9.4-2 .4-2.2 0-3.2-1.3-3.2-3.4 0-1.9 1.2-3.2 2.9-3.2 2.1 0 2.8 1.5 2.8 3.5H45c0 1.2 1 2.1 2.1 2.1.8 0 1.6-.4 1.9-.6v1.2z"/><path id="Fill-42" class="st0" d="M42.2 5.6h-.7c-.6 0-2.2.1-2.2 1.2 0 .7.6 1 1.2 1 1.1 0 1.7-.7 1.7-1.6v-.6zm-3-1.5l-.9-.2c.3-1.4 1.6-1.7 2.4-1.7 1.8 0 2.5.9 2.5 2.6v2.6c0 .7 0 1 .1 1.2h-1.2v-.8c-.3.4-.9 1-1.9 1-1.3 0-2.3-.6-2.3-1.9 0-1.6 1.7-2.1 2.9-2.1H42c0-1.1-.4-1.8-1.5-1.7-1 .1-1.3 1-1.3 1z"/></g><g id="Page-1"><path id="Fill-1" class="st1" d="M28 14c0 7.7-6.3 14-14 14S0 21.7 0 14 6.3 0 14 0s14 6.3 14 14"/><path id="Fill-3" class="st2" d="M14.1 2.3v-.5H14C7.2 1.8 1.8 7.3 1.8 14h.6c6.5.1 11.7-5.2 11.7-11.7"/><path id="Fill-5" class="st3" d="M2.3 14.1h-.6c.1 6.7 5.5 12.2 12.2 12.2h.1v-.4c.1-6.5-5.1-11.8-11.7-11.8"/><path id="Fill-7" class="st4" d="M25.9 14.1h.3V14c0-6.7-5.4-12.2-12.1-12.2v.5c0 6.5 5.3 11.8 11.8 11.8"/><path id="Fill-9" class="st5" d="M14.1 25.9v.4c6.7-.1 12-5.5 12.1-12.2h-.3c-6.5 0-11.8 5.3-11.8 11.8"/></g><path id="Page-1_1_" class="st6" d="M131.1 20.1c.8.5 2 .8 2.6.8.9 0 2.1-.4 2.1-1.6 0-2-4.9-1.9-4.9-5 0-2.3 1.7-3.5 4-3.5 1 0 1.8.2 2.6.4l-.2 1.8c-.5-.3-1.7-.6-2.2-.6-1.1 0-2 .4-2 1.4 0 2.3 4.9 1.6 4.9 5.2 0 2.4-1.9 3.5-3.9 3.5-1.1 0-2.1-.1-3.1-.6l.1-1.8zm9.4-9.7h.3c.2 0 .4 0 .4-.3 0-.2-.2-.3-.4-.3h-.3v.6zm-.3-.8h.7c.4 0 .6.2.6.5s-.2.5-.5.5l.5.8h-.3l-.5-.8h-.2v.8h-.3V9.6zm.6 2.2c.7 0 1.2-.6 1.2-1.3 0-.7-.5-1.3-1.2-1.3s-1.2.6-1.2 1.3c0 .8.5 1.3 1.2 1.3zm0-2.8c.8 0 1.5.7 1.5 1.5s-.7 1.5-1.5 1.5-1.5-.7-1.5-1.5.7-1.5 1.5-1.5zM123 20.1c.8.5 2 .8 2.6.8.9 0 2.1-.4 2.1-1.6 0-2-4.9-1.9-4.9-5 0-2.3 1.7-3.5 4-3.5 1 0 1.8.2 2.6.4l-.2 1.8c-.5-.3-1.7-.6-2.2-.6-1.1 0-2 .4-2 1.4 0 2.3 4.9 1.6 4.9 5.2 0 2.4-1.9 3.5-3.9 3.5-1.1 0-2.1-.1-3.1-.6l.1-1.8zm-3.8-3.1h-1.3c-1.1 0-3.9.2-3.9 2.2 0 1.2 1.1 1.8 2.1 1.8 2 0 3.1-1.3 3.1-2.9V17zm-6.2-5.1c1-.6 2.3-1.1 3.7-1.1 3.2 0 4.5 1.6 4.5 4.6V20c0 1.3 0 1.9.1 2.2h-1.9v-1.5c-.5.7-1.6 1.7-3.5 1.7-2.4 0-4.1-1.1-4.1-3.5 0-2.8 3.1-3.7 5.2-3.7h2.2c0-1.9-.7-2.9-2.8-2.9-1.2 0-2.4.4-3.3 1.1l-.1-1.5zm-7.7.6c-2.2 0-3.3 2.1-3.3 4.2 0 1.9 1 4.2 3.3 4.2 2.2 0 3.1-2.5 3.1-4.2 0-2-.8-4.2-3.1-4.2zm-5.4-1.4h2v1.6c.5-.8 1.8-1.8 3.8-1.8 3.3 0 4.8 2.7 4.8 5.7 0 3.1-1.4 6.1-4.8 6.1-2 0-3.1-.8-3.7-1.8V26h-2.1V11.1zm-17.3 0h1.9v1.6c.8-1.3 1.9-1.9 3.6-1.9 1.3 0 2.6.7 3.2 2.2.8-1.6 2.5-2.2 3.5-2.2 2.9 0 3.9 1.8 3.9 4.3v7.2h-2.1v-6.7c0-1.4-.3-3.1-2-3.1-2.1 0-2.9 2.1-2.9 4.2v5.7h-2.1v-6.7c0-1.4-.3-3.1-2-3.1-2.1 0-2.9 2.1-2.9 4.2v5.7h-2.1V11.1zm-8 9.8c2.4 0 3.5-2.2 3.5-4.2 0-2.1-1.3-4.2-3.5-4.2s-3.5 2.1-3.5 4.2c-.1 2 1 4.2 3.5 4.2zm0-10c3.4 0 5.7 2.5 5.7 5.9 0 3.2-2.3 5.9-5.7 5.9s-5.7-2.7-5.7-5.9c-.1-3.5 2.2-5.9 5.7-5.9zM67.4 13c-.8-.3-1.6-.5-2.2-.5-2.3 0-3.6 2.1-3.6 4.2 0 2 1.1 4.2 3.7 4.2.7 0 1.6-.2 2.2-.6l.2 1.8c-.9.4-1.8.5-2.6.5-3.4 0-5.7-2.7-5.7-5.9 0-3.4 2.3-5.9 5.7-5.9.8 0 1.9.2 2.5.4l-.2 1.8zm-19.2-1.9h2v1.8c.6-1.3 2.1-2 3.7-2 2.9 0 4.2 1.8 4.2 4.8v6.7H56v-5.8c0-2.6-.6-3.9-2.4-4-2.4 0-3.4 1.9-3.4 4.6v5.2h-2.1V11.1h.1zM38 7h8.6v1.9h-6.4v4.5H46v1.9h-5.8v5.1h6.4v1.9H38V7z"/></g></g></g></g></svg>
|
|
@@ -24,9 +24,10 @@ var __toModule = (module2) => {
|
|
|
24
24
|
__export(exports, {
|
|
25
25
|
NavRegion: () => NavRegion
|
|
26
26
|
});
|
|
27
|
+
var React = __toModule(require("react"));
|
|
27
28
|
var import_styled_components = __toModule(require("styled-components"));
|
|
28
|
-
var import_notification = __toModule(require("./notification"));
|
|
29
|
-
var import_user = __toModule(require("./user"));
|
|
29
|
+
var import_notification = __toModule(require("./notification/index.js"));
|
|
30
|
+
var import_user = __toModule(require("./user/index.js"));
|
|
30
31
|
const NavContainer = import_styled_components.default.nav`
|
|
31
32
|
display: flex;
|
|
32
33
|
margin: 0;
|
|
@@ -24,8 +24,9 @@ var __toModule = (module2) => {
|
|
|
24
24
|
__export(exports, {
|
|
25
25
|
Notification: () => Notification
|
|
26
26
|
});
|
|
27
|
+
var React = __toModule(require("react"));
|
|
27
28
|
var import_index = __toModule(require("./index.svg"));
|
|
28
29
|
const Notification = () => /* @__PURE__ */ React.createElement("li", null, /* @__PURE__ */ React.createElement("a", {
|
|
29
30
|
href: "#",
|
|
30
31
|
"aria-label": "Notifications"
|
|
31
|
-
}, /* @__PURE__ */ React.createElement(import_index.
|
|
32
|
+
}, /* @__PURE__ */ React.createElement(import_index.default, null)));
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="16px" height="16px" viewBox="0 0 16 16"><g>
|
|
2
|
+
<path data-color="color-2" fill="#ffffff" d="M10,14H6c0,1.1,0.9,2,2,2S10,15.1,10,14z"/>
|
|
3
|
+
<path fill="#ffffff" d="M15,11h-0.5C13.8,10.3,13,9.3,13,8V5c0-2.8-2.2-5-5-5S3,2.2,3,5v3c0,1.3-0.8,2.3-1.5,3H1c-0.6,0-1,0.4-1,1
|
|
4
|
+
s0.4,1,1,1h14c0.6,0,1-0.4,1-1S15.6,11,15,11z"/>
|
|
5
|
+
</g></svg>
|
|
@@ -24,8 +24,9 @@ var __toModule = (module2) => {
|
|
|
24
24
|
__export(exports, {
|
|
25
25
|
User: () => User
|
|
26
26
|
});
|
|
27
|
+
var React = __toModule(require("react"));
|
|
27
28
|
var import_index = __toModule(require("./index.svg"));
|
|
28
29
|
const User = () => /* @__PURE__ */ React.createElement("li", null, /* @__PURE__ */ React.createElement("a", {
|
|
29
30
|
href: "#",
|
|
30
31
|
"aria-label": "profile"
|
|
31
|
-
}, /* @__PURE__ */ React.createElement(import_index.
|
|
32
|
+
}, /* @__PURE__ */ React.createElement(import_index.default, null)));
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="16px" height="16px" viewBox="0 0 16 16"><g><path fill="#ffffff" d="M8,2c1.1,0,2,0.9,2,2v1c0,1.1-0.9,2-2,2S6,6.1,6,5V4C6,2.9,6.9,2,8,2 M8,0C5.8,0,4,1.8,4,4v1
|
|
2
|
+
c0,2.2,1.8,4,4,4s4-1.8,4-4V4C12,1.8,10.2,0,8,0L8,0z"/>
|
|
3
|
+
<path data-color="color-2" fill="#ffffff" d="M9,12c1.5,0,2.8,0.8,3.5,2l-8.9,0c0.7-1.2,2-2,3.5-2H9 M9,10H7c-3.3,0-6,2.7-6,6v0h14v0
|
|
4
|
+
C15,12.7,12.3,10,9,10L9,10z"/></g></svg>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Meta } from '@storybook/addon-docs';
|
|
2
|
+
|
|
3
|
+
<Meta title="Intro" />
|
|
4
|
+
|
|
5
|
+
# Get Started
|
|
6
|
+
|
|
7
|
+
Software Development Kit / API for developing React Web applications. Implements cross cutting concerns as reusable APIs
|
|
8
|
+
|
|
9
|
+
## Install
|
|
10
|
+
|
|
11
|
+
`npm install --save @elliemae/app-react-dependencies @elliemae/pui-user-monitoring @elliemae/pui-theme @elliemae/ds-basic @elliemae/ds-modal @elliemae/pui-app-sdk`
|
|
12
|
+
|
|
13
|
+
### **Use**
|
|
14
|
+
|
|
15
|
+
Import react components you want into your UI
|
|
16
|
+
|
|
17
|
+
`import { WaitMessage } from ‘@elliemae/pui-app-sdk’;`
|
|
18
|
+
|
|
19
|
+
and use them like so
|
|
20
|
+
|
|
21
|
+
```
|
|
22
|
+
const LoadingIndicator = () => (
|
|
23
|
+
<div>
|
|
24
|
+
<WaitMessage size='m' isOpen />
|
|
25
|
+
</div>
|
|
26
|
+
)
|
|
27
|
+
```
|
|
@@ -24,8 +24,9 @@ var __toModule = (module2) => {
|
|
|
24
24
|
__export(exports, {
|
|
25
25
|
LiveMessage: () => LiveMessage
|
|
26
26
|
});
|
|
27
|
+
var React = __toModule(require("react"));
|
|
27
28
|
var import_react_aria_live = __toModule(require("react-aria-live"));
|
|
28
|
-
var import_react_redux = __toModule(require("../../data/react-redux"));
|
|
29
|
+
var import_react_redux = __toModule(require("../../data/react-redux.js"));
|
|
29
30
|
const LiveMessage = () => {
|
|
30
31
|
const message = (0, import_react_redux.useAppSelector)((state) => state.liveMessage?.message);
|
|
31
32
|
const id = (0, import_react_redux.useAppSelector)((state) => state.liveMessage?.id);
|
|
@@ -24,8 +24,9 @@ var __toModule = (module2) => {
|
|
|
24
24
|
__export(exports, {
|
|
25
25
|
loadable: () => loadable
|
|
26
26
|
});
|
|
27
|
+
var React = __toModule(require("react"));
|
|
27
28
|
var import_react = __toModule(require("react"));
|
|
28
|
-
var import_wait_message_launcher = __toModule(require("../modals/wait-message/wait-message-launcher"));
|
|
29
|
+
var import_wait_message_launcher = __toModule(require("../modals/wait-message/wait-message-launcher.js"));
|
|
29
30
|
const loadable = (importFunc, fallback = /* @__PURE__ */ React.createElement(import_wait_message_launcher.WaitMessageLauncher, null)) => {
|
|
30
31
|
const LazyComponent = (0, import_react.lazy)(importFunc);
|
|
31
32
|
return (props) => /* @__PURE__ */ React.createElement(import_react.Suspense, {
|
|
@@ -24,10 +24,11 @@ var __toModule = (module2) => {
|
|
|
24
24
|
__export(exports, {
|
|
25
25
|
Login: () => Login
|
|
26
26
|
});
|
|
27
|
+
var React = __toModule(require("react"));
|
|
27
28
|
var import_react = __toModule(require("react"));
|
|
28
|
-
var import_react_redux = __toModule(require("../../data/react-redux"));
|
|
29
|
-
var import_auth = __toModule(require("../../utils/auth"));
|
|
30
|
-
var import_actions = __toModule(require("../../data/auth/actions"));
|
|
29
|
+
var import_react_redux = __toModule(require("../../data/react-redux.js"));
|
|
30
|
+
var import_auth = __toModule(require("../../utils/auth/index.js"));
|
|
31
|
+
var import_actions = __toModule(require("../../data/auth/actions.js"));
|
|
31
32
|
const Login = ({
|
|
32
33
|
clientId,
|
|
33
34
|
scope,
|
|
@@ -24,13 +24,14 @@ var __toModule = (module2) => {
|
|
|
24
24
|
__export(exports, {
|
|
25
25
|
MediaBreakpoint: () => MediaBreakpoint
|
|
26
26
|
});
|
|
27
|
+
var React = __toModule(require("react"));
|
|
27
28
|
var import_react = __toModule(require("react"));
|
|
28
29
|
var import_styled_components = __toModule(require("styled-components"));
|
|
29
30
|
var import_pubsub_js = __toModule(require("pubsub-js"));
|
|
30
|
-
var import_react_redux = __toModule(require("../../data/react-redux"));
|
|
31
|
-
var import_breakpoint = __toModule(require("../../data/breakpoint"));
|
|
32
|
-
var import_useMediaBreakpoints = __toModule(require("../useMediaBreakpoints"));
|
|
33
|
-
var import_constants = __toModule(require("../../utils/constants"));
|
|
31
|
+
var import_react_redux = __toModule(require("../../data/react-redux.js"));
|
|
32
|
+
var import_breakpoint = __toModule(require("../../data/breakpoint/index.js"));
|
|
33
|
+
var import_useMediaBreakpoints = __toModule(require("../useMediaBreakpoints/index.js"));
|
|
34
|
+
var import_constants = __toModule(require("../../utils/constants.js"));
|
|
34
35
|
const MediaBreakpoint = () => {
|
|
35
36
|
const theme = (0, import_react.useContext)(import_styled_components.ThemeContext);
|
|
36
37
|
const currentBreakpoint = (0, import_useMediaBreakpoints.useMediaBreakpoints)([
|
|
@@ -25,7 +25,7 @@ __export(exports, {
|
|
|
25
25
|
getHostAppData: () => getHostAppData,
|
|
26
26
|
sendMessageToHost: () => sendMessageToHost
|
|
27
27
|
});
|
|
28
|
-
var import_host_binding_events = __toModule(require("../host-binding-events"));
|
|
28
|
+
var import_host_binding_events = __toModule(require("../host-binding-events/index.js"));
|
|
29
29
|
const getHostAppData = (action, resolve) => (event) => {
|
|
30
30
|
if (event.data.id === "host-app-data") {
|
|
31
31
|
action(event.data);
|
|
@@ -27,15 +27,15 @@ __export(exports, {
|
|
|
27
27
|
unloadApp: () => unloadApp,
|
|
28
28
|
unmountApp: () => unmountApp
|
|
29
29
|
});
|
|
30
|
-
var import_web_storage = __toModule(require("../../../utils/web-storage"));
|
|
31
|
-
var import_host = __toModule(require("../../../utils/micro-frontend/host"));
|
|
32
|
-
var import_micro_frontend = __toModule(require("../../../utils/micro-frontend"));
|
|
33
|
-
var import_log_records = __toModule(require("../../../utils/log-records"));
|
|
34
|
-
var import_const = __toModule(require("../const"));
|
|
35
|
-
var import_window = __toModule(require("../../../utils/window"));
|
|
36
|
-
var import_style = __toModule(require("../resources/style"));
|
|
37
|
-
var import_script = __toModule(require("../resources/script"));
|
|
38
|
-
var import_manifest = __toModule(require("../resources/manifest"));
|
|
30
|
+
var import_web_storage = __toModule(require("../../../utils/web-storage.js"));
|
|
31
|
+
var import_host = __toModule(require("../../../utils/micro-frontend/host.js"));
|
|
32
|
+
var import_micro_frontend = __toModule(require("../../../utils/micro-frontend/index.js"));
|
|
33
|
+
var import_log_records = __toModule(require("../../../utils/log-records.js"));
|
|
34
|
+
var import_const = __toModule(require("../const.js"));
|
|
35
|
+
var import_window = __toModule(require("../../../utils/window.js"));
|
|
36
|
+
var import_style = __toModule(require("../resources/style.js"));
|
|
37
|
+
var import_script = __toModule(require("../resources/script.js"));
|
|
38
|
+
var import_manifest = __toModule(require("../resources/manifest.js"));
|
|
39
39
|
const cssType = new RegExp(/\.css$/);
|
|
40
40
|
const isCss = (fileName) => cssType.test(fileName);
|
|
41
41
|
const activeApps = {};
|
|
@@ -139,6 +139,8 @@ const unloadApp = ({
|
|
|
139
139
|
hostUrl,
|
|
140
140
|
documentEle
|
|
141
141
|
}) => {
|
|
142
|
+
if (!hostUrl)
|
|
143
|
+
throw new Error("Unable to unload app. hostUrl is required");
|
|
142
144
|
(0, import_micro_frontend.getLogger)().info(import_log_records.logRecords.APP_UNLOADING(id));
|
|
143
145
|
const app = (window.emui || {})[id];
|
|
144
146
|
if (!app)
|
|
@@ -24,10 +24,11 @@ var __toModule = (module2) => {
|
|
|
24
24
|
__export(exports, {
|
|
25
25
|
MicroApp: () => MicroApp
|
|
26
26
|
});
|
|
27
|
+
var React = __toModule(require("react"));
|
|
27
28
|
var import_react = __toModule(require("react"));
|
|
28
29
|
var import_styled_components = __toModule(require("styled-components"));
|
|
29
|
-
var import_const = __toModule(require("./const"));
|
|
30
|
-
var import_use_app_will_render = __toModule(require("./use-app-will-render"));
|
|
30
|
+
var import_const = __toModule(require("./const.js"));
|
|
31
|
+
var import_use_app_will_render = __toModule(require("./use-app-will-render.js"));
|
|
31
32
|
const Div = import_styled_components.default.div`
|
|
32
33
|
height: 100%;
|
|
33
34
|
width: 100%;
|
|
@@ -25,15 +25,17 @@ __export(exports, {
|
|
|
25
25
|
getAppManifest: () => getAppManifest,
|
|
26
26
|
getFullFileNameofAssetsFromManifest: () => getFullFileNameofAssetsFromManifest
|
|
27
27
|
});
|
|
28
|
-
var import_http_client = __toModule(require("../../../communication/http-client"));
|
|
29
|
-
var import_url = __toModule(require("../../../utils/url"));
|
|
30
|
-
var import_micro_frontend = __toModule(require("../../../utils/micro-frontend"));
|
|
31
|
-
var import_log_records = __toModule(require("../../../utils/log-records"));
|
|
28
|
+
var import_http_client = __toModule(require("../../../communication/http-client/index.js"));
|
|
29
|
+
var import_url = __toModule(require("../../../utils/url.js"));
|
|
30
|
+
var import_micro_frontend = __toModule(require("../../../utils/micro-frontend/index.js"));
|
|
31
|
+
var import_log_records = __toModule(require("../../../utils/log-records.js"));
|
|
32
32
|
const getUnVersionedManifestPath = (path) => path.replace(/\/\d+\.\d+/, "/latest");
|
|
33
33
|
const getAppManifest = async ({
|
|
34
34
|
hostUrl,
|
|
35
35
|
manifestPath
|
|
36
36
|
}) => {
|
|
37
|
+
if (!hostUrl || !manifestPath)
|
|
38
|
+
throw new Error("Unable to get app manifest. hostUrl and manifestPath are required.");
|
|
37
39
|
const url = new URL(`${manifestPath.replace(/\/?$/, "/")}manifest.json`, hostUrl);
|
|
38
40
|
const response = await (0, import_http_client.getHTTPClient)().get((0, import_url.removeDoubleSlash)(url.href));
|
|
39
41
|
const { headers } = response;
|
|
@@ -28,7 +28,7 @@ __export(exports, {
|
|
|
28
28
|
removePrefetchLinks: () => removePrefetchLinks,
|
|
29
29
|
removeScriptFromDOM: () => removeScriptFromDOM
|
|
30
30
|
});
|
|
31
|
-
var import_url = __toModule(require("../../../utils/url"));
|
|
31
|
+
var import_url = __toModule(require("../../../utils/url.js"));
|
|
32
32
|
const APP_SCRIPT_ID_PREFIX = "emui-script-";
|
|
33
33
|
const HEAD_SCRIPTS = new RegExp("/(?:emuiDiagnostics|global|global-prod|emuiUserMonitoring)(?:..*)?.js", "i");
|
|
34
34
|
const isHeadScript = (scriptSrc) => HEAD_SCRIPTS.test(scriptSrc);
|
|
@@ -27,7 +27,7 @@ __export(exports, {
|
|
|
27
27
|
removeDynamicImportedStyles: () => removeDynamicImportedStyles,
|
|
28
28
|
removeStyleFromDOM: () => removeStyleFromDOM
|
|
29
29
|
});
|
|
30
|
-
var import_url = __toModule(require("../../../utils/url"));
|
|
30
|
+
var import_url = __toModule(require("../../../utils/url.js"));
|
|
31
31
|
const APP_STYLE_ID_PREFIX = "emui-style-";
|
|
32
32
|
const addStylesToDOM = ({ name, hostUrl, documentEle }, fileName, index) => new Promise((resolve, reject) => {
|
|
33
33
|
const ele = documentEle.createElement("link");
|
|
@@ -27,15 +27,16 @@ __export(exports, {
|
|
|
27
27
|
var import_react = __toModule(require("react"));
|
|
28
28
|
var import_lodash = __toModule(require("lodash"));
|
|
29
29
|
var import_react_redux = __toModule(require("react-redux"));
|
|
30
|
-
var import_actions = __toModule(require("../../data/wait-message/actions"));
|
|
31
|
-
var import_app_factory = __toModule(require("./app-factory"));
|
|
32
|
-
var import_micro_frontend = __toModule(require("../../utils/micro-frontend"));
|
|
33
|
-
var import_log_records = __toModule(require("../../utils/log-records"));
|
|
30
|
+
var import_actions = __toModule(require("../../data/wait-message/actions.js"));
|
|
31
|
+
var import_app_factory = __toModule(require("./app-factory/index.js"));
|
|
32
|
+
var import_micro_frontend = __toModule(require("../../utils/micro-frontend/index.js"));
|
|
33
|
+
var import_log_records = __toModule(require("../../utils/log-records.js"));
|
|
34
34
|
const useAppWillRender = ({
|
|
35
35
|
id,
|
|
36
36
|
documentEle,
|
|
37
37
|
history,
|
|
38
38
|
theme,
|
|
39
|
+
homeRoute,
|
|
39
40
|
onUnloadComplete
|
|
40
41
|
}) => {
|
|
41
42
|
const dispatch = import_react_redux.useDispatch ? (0, import_react_redux.useDispatch)() : null;
|
|
@@ -75,11 +76,12 @@ const useAppWillRender = ({
|
|
|
75
76
|
const appConfig = (0, import_lodash.merge)(getConfig(), {
|
|
76
77
|
documentEle,
|
|
77
78
|
history,
|
|
78
|
-
theme
|
|
79
|
+
theme,
|
|
80
|
+
homeRoute
|
|
79
81
|
});
|
|
80
82
|
load(appConfig);
|
|
81
83
|
return () => {
|
|
82
84
|
ref.current = unload(appConfig);
|
|
83
85
|
};
|
|
84
|
-
}, [documentEle, getConfig, history, theme, load, unload]);
|
|
86
|
+
}, [documentEle, getConfig, history, theme, homeRoute, load, unload]);
|
|
85
87
|
};
|
|
@@ -24,7 +24,7 @@ var __toModule = (module2) => {
|
|
|
24
24
|
__export(exports, {
|
|
25
25
|
getNavigationLinks: () => getNavigationLinks
|
|
26
26
|
});
|
|
27
|
-
var import_config = __toModule(require("../../utils/app-config/config"));
|
|
27
|
+
var import_config = __toModule(require("../../utils/app-config/config.js"));
|
|
28
28
|
const getNavigationLinks = () => {
|
|
29
29
|
const microApps = (0, import_config.getAppConfigValue)("microFrontendApps");
|
|
30
30
|
if (!microApps)
|
|
@@ -24,11 +24,12 @@ var __toModule = (module2) => {
|
|
|
24
24
|
__export(exports, {
|
|
25
25
|
App: () => App
|
|
26
26
|
});
|
|
27
|
+
var React = __toModule(require("react"));
|
|
27
28
|
var import_react = __toModule(require("react"));
|
|
28
29
|
var import_iframe = __toModule(require("file-loader?name=iframe.[contenthash].[ext]!./iframe/index.html"));
|
|
29
|
-
var import_iframe2 = __toModule(require("./iframe"));
|
|
30
|
-
var import_use_frame_loaded = __toModule(require("./use-frame-loaded"));
|
|
31
|
-
var import_use_app_will_render = __toModule(require("../micro-app/use-app-will-render"));
|
|
30
|
+
var import_iframe2 = __toModule(require("./iframe/index.js"));
|
|
31
|
+
var import_use_frame_loaded = __toModule(require("./use-frame-loaded.js"));
|
|
32
|
+
var import_use_app_will_render = __toModule(require("../micro-app/use-app-will-render.js"));
|
|
32
33
|
const App = (0, import_react.memo)(({ id, dispose, onUnloadComplete, ...rest }) => {
|
|
33
34
|
const [documentEle, setDocumentEle] = (0, import_react.useState)(null);
|
|
34
35
|
(0, import_use_frame_loaded.useFrameLoaded)({ id, documentEle, ...rest });
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<!-- The first thing in any HTML file should be the charset -->
|
|
5
|
+
<meta charset="utf-8" />
|
|
6
|
+
<!-- Make the page mobile compatible -->
|
|
7
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
8
|
+
<!-- Allow installing the app to the homescreen -->
|
|
9
|
+
<meta name="mobile-web-app-capable" content="yes" />
|
|
10
|
+
<link rel="icon" href="/favicon.ico" />
|
|
11
|
+
<title>Application</title>
|
|
12
|
+
<!-- Google Tag Manager -->
|
|
13
|
+
<!-- <script nonce="__CSP_NONCE__">
|
|
14
|
+
(function (w, d, s, l, i) {
|
|
15
|
+
w[l] = w[l] || [];
|
|
16
|
+
w[l].push({ 'gtm.start': new Date().getTime(), event: 'gtm.js' });
|
|
17
|
+
var f = d.getElementsByTagName(s)[0],
|
|
18
|
+
j = d.createElement(s),
|
|
19
|
+
dl = l != 'dataLayer' ? '&l=' + l : '';
|
|
20
|
+
j.async = true;
|
|
21
|
+
j.src =
|
|
22
|
+
'https://www.googletagmanager.com/gtm.js?id=' +
|
|
23
|
+
i +
|
|
24
|
+
dl;
|
|
25
|
+
f.parentNode.insertBefore(j, f);
|
|
26
|
+
})(window, document, 'script', 'dataLayer', window.emui.gtm.id);
|
|
27
|
+
</script> -->
|
|
28
|
+
<!-- <script nonce="__CSP_NONCE__">
|
|
29
|
+
window.emuiUserMonitoring = window.parent.emuiUserMonitoring || {
|
|
30
|
+
setCustomVirtualPageName: function () {},
|
|
31
|
+
startVirtualPageMonitoringWithAutoEnd: function () {},
|
|
32
|
+
};
|
|
33
|
+
</script> -->
|
|
34
|
+
<script>
|
|
35
|
+
(function (i, s, o, g, r, a, m) {
|
|
36
|
+
i['GoogleAnalyticsObject'] = r;
|
|
37
|
+
(i[r] =
|
|
38
|
+
i[r] ||
|
|
39
|
+
function () {
|
|
40
|
+
(i[r].q = i[r].q || []).push(arguments);
|
|
41
|
+
}),
|
|
42
|
+
(i[r].l = 1 * new Date());
|
|
43
|
+
(a = s.createElement(o)), (m = s.getElementsByTagName(o)[0]);
|
|
44
|
+
a.async = 1;
|
|
45
|
+
a.src = g;
|
|
46
|
+
m.parentNode.insertBefore(a, m);
|
|
47
|
+
})(
|
|
48
|
+
window,
|
|
49
|
+
document,
|
|
50
|
+
'script',
|
|
51
|
+
'https://www.google-analytics.com/analytics.js',
|
|
52
|
+
'ga',
|
|
53
|
+
);
|
|
54
|
+
</script>
|
|
55
|
+
<style>
|
|
56
|
+
.full-width {
|
|
57
|
+
width: 100%;
|
|
58
|
+
}
|
|
59
|
+
.full-height {
|
|
60
|
+
height: 100%;
|
|
61
|
+
}
|
|
62
|
+
</style>
|
|
63
|
+
</head>
|
|
64
|
+
|
|
65
|
+
<body class="full-width full-height">
|
|
66
|
+
<!-- Display a message if JS has been disabled on the browser. -->
|
|
67
|
+
<noscript
|
|
68
|
+
>If you're seeing this message, that means
|
|
69
|
+
<strong>JavaScript has been disabled on your browser</strong>, please
|
|
70
|
+
<strong>enable JS</strong> to make this app work.</noscript
|
|
71
|
+
>
|
|
72
|
+
<div id="pui-app-container-" class="full-width full-height"></div>
|
|
73
|
+
</body>
|
|
74
|
+
</html>
|
|
@@ -24,9 +24,10 @@ var __toModule = (module2) => {
|
|
|
24
24
|
__export(exports, {
|
|
25
25
|
IFrame: () => IFrame
|
|
26
26
|
});
|
|
27
|
+
var React = __toModule(require("react"));
|
|
27
28
|
var import_react = __toModule(require("react"));
|
|
28
29
|
var import_styled_components = __toModule(require("styled-components"));
|
|
29
|
-
var import_const = __toModule(require("./const"));
|
|
30
|
+
var import_const = __toModule(require("./const.js"));
|
|
30
31
|
const Div = import_styled_components.default.div`
|
|
31
32
|
display: flex;
|
|
32
33
|
width: 100%;
|
|
@@ -24,9 +24,10 @@ var __toModule = (module2) => {
|
|
|
24
24
|
__export(exports, {
|
|
25
25
|
MicroIFrameApp: () => MicroIFrameApp
|
|
26
26
|
});
|
|
27
|
+
var React = __toModule(require("react"));
|
|
27
28
|
var import_react = __toModule(require("react"));
|
|
28
|
-
var import_use_previous = __toModule(require("../use-previous"));
|
|
29
|
-
var import_app = __toModule(require("./app"));
|
|
29
|
+
var import_use_previous = __toModule(require("../use-previous.js"));
|
|
30
|
+
var import_app = __toModule(require("./app.js"));
|
|
30
31
|
const MicroIFrameApp = (0, import_react.memo)(({ entityId = null, ...rest }) => {
|
|
31
32
|
const [disposePrevApp, setDisposePrevApp] = (0, import_react.useState)(false);
|
|
32
33
|
const [appKey, setAppKey] = (0, import_react.useState)(Date.now());
|
|
@@ -25,13 +25,15 @@ __export(exports, {
|
|
|
25
25
|
useFrameLoaded: () => useFrameLoaded
|
|
26
26
|
});
|
|
27
27
|
var import_react = __toModule(require("react"));
|
|
28
|
-
var import_session = __toModule(require("../../utils/session"));
|
|
29
|
-
var import_host = __toModule(require("../../utils/micro-frontend/host"));
|
|
30
|
-
var import_micro_frontend = __toModule(require("../../utils/micro-frontend"));
|
|
28
|
+
var import_session = __toModule(require("../../utils/session.js"));
|
|
29
|
+
var import_host = __toModule(require("../../utils/micro-frontend/host.js"));
|
|
30
|
+
var import_micro_frontend = __toModule(require("../../utils/micro-frontend/index.js"));
|
|
31
31
|
const addBaseTag = (id, documentEle) => {
|
|
32
32
|
const { hostUrl, manifestPath } = (0, import_micro_frontend.getMicroFrontEndAppConfig)({
|
|
33
33
|
id
|
|
34
34
|
});
|
|
35
|
+
if (!manifestPath)
|
|
36
|
+
return;
|
|
35
37
|
const base = documentEle.createElement("base");
|
|
36
38
|
base.href = new URL(manifestPath, hostUrl).href;
|
|
37
39
|
documentEle.getElementsByTagName("head")[0].appendChild(base);
|