@elliemae/pui-app-sdk 3.11.1 → 3.12.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/analytics/appdynamics.js +2 -15
- package/dist/cjs/analytics/index.js +2 -15
- package/dist/cjs/analytics/page-view-event.js +1 -0
- package/dist/cjs/analytics/user-session-event.js +1 -0
- package/dist/cjs/analytics/user-wait-event.js +1 -0
- package/dist/cjs/analytics/web-analytics.js +2 -15
- package/dist/cjs/api/auth/index.js +1 -0
- package/dist/cjs/api/helpers.js +1 -0
- package/dist/cjs/api/users/index.js +1 -0
- package/dist/cjs/communication/http-client/index.js +10 -42
- package/dist/cjs/communication/http-client/request-interceptor.js +1 -0
- package/dist/cjs/communication/http-client/response-interceptor.js +1 -0
- package/dist/cjs/communication/http-client/retry-axios.js +1 -0
- package/dist/cjs/communication/http-client/retry.js +1 -0
- package/dist/cjs/data/auth/actions.js +1 -0
- package/dist/cjs/data/auth/reducer.js +1 -0
- package/dist/cjs/data/breakpoint/index.js +1 -0
- package/dist/cjs/data/error/index.js +1 -0
- package/dist/cjs/data/index.js +1 -0
- package/dist/cjs/data/live-message/index.js +1 -0
- package/dist/cjs/data/logout/actions.js +1 -0
- package/dist/cjs/data/navigation-prompt/actions.js +1 -0
- package/dist/cjs/data/react-redux.js +1 -0
- package/dist/cjs/data/reducers.js +5 -17
- package/dist/cjs/data/saga.js +1 -0
- package/dist/cjs/data/store.js +1 -0
- package/dist/cjs/data/wait-message/actions.js +1 -0
- package/dist/cjs/data/wait-message/reducer.js +1 -0
- package/dist/cjs/data/webpack-hmr.js +1 -0
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/micro-frontend.js +1 -0
- package/dist/cjs/sideeffect/auth/index.js +7 -21
- package/dist/cjs/sideeffect/error-toast/index.js +4 -19
- package/dist/cjs/sideeffect/wait-message/index.js +7 -21
- package/dist/cjs/utils/app-config/config.js +1 -0
- package/dist/cjs/utils/app-config/index.js +1 -0
- package/dist/cjs/utils/app-host-integration/react.js +1 -0
- package/dist/cjs/utils/auth/helper.js +1 -0
- package/dist/cjs/utils/auth/index.js +10 -24
- package/dist/cjs/utils/await.js +1 -0
- package/dist/cjs/utils/constants.js +1 -0
- package/dist/cjs/utils/font-size.js +1 -0
- package/dist/cjs/utils/guest-with-service.js +1 -0
- package/dist/cjs/utils/helpers.js +1 -0
- package/dist/cjs/utils/history.js +1 -0
- package/dist/cjs/utils/log-records.js +1 -0
- package/dist/cjs/utils/micro-frontend/console-logger.js +1 -0
- package/dist/cjs/utils/micro-frontend/guest.js +3 -1
- package/dist/cjs/utils/micro-frontend/host.js +1 -0
- package/dist/cjs/utils/micro-frontend/index.js +1 -0
- package/dist/cjs/utils/micro-frontend/ssfguest-adapter.js +1 -0
- package/dist/cjs/utils/micro-frontend/types.js +1 -0
- package/dist/cjs/utils/redact-pii.js +1 -0
- package/dist/cjs/utils/service-worker.js +4 -2
- package/dist/cjs/utils/session.js +1 -0
- package/dist/cjs/utils/storybook/cjs/main.js +1 -0
- package/dist/cjs/utils/storybook/cjs/middleware.js +1 -0
- package/dist/cjs/utils/storybook/cjs/vite.js +1 -0
- package/dist/cjs/utils/storybook/cjs/webpack.js +1 -0
- package/dist/cjs/utils/storybook/manager.js +1 -0
- package/dist/cjs/utils/storybook/preview.js +1 -0
- package/dist/cjs/utils/storybook/theme.js +10 -39
- package/dist/cjs/utils/testing/index.js +2 -15
- package/dist/cjs/utils/testing/render-with-redux.js +5 -20
- package/dist/cjs/utils/testing/render-with-router-redux.js +7 -22
- package/dist/cjs/utils/testing/render-with-router.js +4 -19
- package/dist/cjs/utils/testing/render-with-state-addons.js +11 -39
- package/dist/cjs/utils/types.js +1 -0
- package/dist/cjs/utils/url.js +1 -0
- package/dist/cjs/utils/web-storage.js +1 -0
- package/dist/cjs/utils/window.js +1 -0
- package/dist/cjs/view/app-root/hosted-app.js +1 -0
- package/dist/cjs/view/app-root/index.js +9 -16
- package/dist/cjs/view/app-root/stand-alone-app.js +1 -0
- package/dist/cjs/view/app-root/style.js +1 -0
- package/dist/cjs/view/app-router.js +6 -33
- package/dist/cjs/view/breakpoint/use-breakpoint.js +1 -0
- package/dist/cjs/view/breakpoint/use-media-query-list.js +1 -0
- package/dist/cjs/view/error-boundary/default-error-template.js +1 -0
- package/dist/cjs/view/error-boundary/index.js +4 -19
- package/dist/cjs/view/error-toast/index.js +10 -19
- package/dist/cjs/view/fetch-host-app-data/index.js +1 -0
- package/dist/cjs/view/fetch-host-app-data/store.js +2 -15
- package/dist/cjs/view/fields/check-box/index.js +10 -42
- package/dist/cjs/view/fields/combo-box/index.js +18 -53
- package/dist/cjs/view/fields/connect-form.js +4 -15
- package/dist/cjs/view/fields/date-input/index.js +15 -43
- package/dist/cjs/view/fields/date-picker/index.js +15 -43
- package/dist/cjs/view/fields/date-range-picker/index.js +22 -55
- package/dist/cjs/view/fields/date-time-picker/index.js +17 -52
- package/dist/cjs/view/fields/form-item-layout/index.js +13 -40
- package/dist/cjs/view/fields/form-layout-block-item/index.js +17 -46
- package/dist/cjs/view/fields/input-mask/index.js +26 -63
- package/dist/cjs/view/fields/input-text/index.js +15 -43
- package/dist/cjs/view/fields/large-text-box/index.js +15 -43
- package/dist/cjs/view/fields/radio/index.js +17 -52
- package/dist/cjs/view/fields/radio-group/index.js +10 -42
- package/dist/cjs/view/fields/text-box/index.js +15 -43
- package/dist/cjs/view/fields/toggle/index.js +18 -53
- package/dist/cjs/view/fields/watch-value.js +1 -0
- package/dist/cjs/view/form/index.js +7 -17
- package/dist/cjs/view/form/personal-info-section.js +1 -0
- package/dist/cjs/view/form/submit-button/index.js +5 -33
- package/dist/cjs/view/guest-unload-handlers/index.js +1 -0
- package/dist/cjs/view/host-binding-events/index.js +1 -0
- package/dist/cjs/view/live-message/index.js +1 -0
- package/dist/cjs/view/loadable/index.js +4 -15
- package/dist/cjs/view/login/index.js +16 -3
- package/dist/cjs/view/message-to-host-app/index.js +1 -0
- package/dist/cjs/view/micro-app/app-factory/index.js +2 -18
- package/dist/cjs/view/micro-app/const.js +1 -0
- package/dist/cjs/view/micro-app/index.js +1 -0
- package/dist/cjs/view/micro-app/resources/manifest.js +1 -0
- package/dist/cjs/view/micro-app/resources/script.js +1 -0
- package/dist/cjs/view/micro-app/resources/style.js +1 -0
- package/dist/cjs/view/micro-app/types.js +1 -0
- package/dist/cjs/view/micro-app/use-app-will-render.js +4 -19
- package/dist/cjs/view/micro-app/utils.js +1 -0
- package/dist/cjs/view/micro-iframe-app/app.js +11 -39
- package/dist/cjs/view/micro-iframe-app/iframe/const.js +1 -0
- package/dist/cjs/view/micro-iframe-app/iframe/index.js +5 -21
- package/dist/cjs/view/micro-iframe-app/index.js +5 -33
- package/dist/cjs/view/micro-iframe-app/types.js +1 -0
- package/dist/cjs/view/micro-iframe-app/use-frame-loaded.js +1 -0
- package/dist/cjs/view/modals/error/index.js +1 -0
- package/dist/cjs/view/modals/navigation-prompt/index.js +1 -0
- package/dist/cjs/view/modals/session-expiry/customHooks.js +1 -0
- package/dist/cjs/view/modals/session-expiry/index.js +1 -0
- package/dist/cjs/view/modals/wait-message/index.js +10 -41
- package/dist/cjs/view/modals/wait-message/use-html-wait-message.js +1 -0
- package/dist/cjs/view/modals/wait-message/wait-message-launcher.js +1 -0
- package/dist/cjs/view/page.js +1 -0
- package/dist/cjs/view/render-with-delay/index.js +1 -0
- package/dist/cjs/view/render-with-host-data/index.js +1 -0
- package/dist/cjs/view/require-auth.js +2 -1
- package/dist/cjs/view/session-timeout/index.js +1 -0
- package/dist/cjs/view/storybook/decorator.js +1 -0
- package/dist/cjs/view/use-previous.js +1 -0
- package/dist/cjs/view/use-window-size-change.js +1 -0
- package/dist/cjs/view/visually-hidden/index.js +5 -17
- package/dist/esm/analytics/appdynamics.js +2 -17
- package/dist/esm/analytics/index.js +2 -17
- package/dist/esm/analytics/page-view-event.js +1 -0
- package/dist/esm/analytics/user-session-event.js +1 -0
- package/dist/esm/analytics/user-wait-event.js +1 -0
- package/dist/esm/analytics/web-analytics.js +2 -17
- package/dist/esm/api/auth/index.js +1 -0
- package/dist/esm/api/helpers.js +1 -0
- package/dist/esm/api/users/index.js +1 -0
- package/dist/esm/communication/http-client/index.js +10 -44
- package/dist/esm/communication/http-client/request-interceptor.js +1 -0
- package/dist/esm/communication/http-client/response-interceptor.js +1 -0
- package/dist/esm/communication/http-client/retry-axios.js +1 -0
- package/dist/esm/communication/http-client/retry.js +1 -0
- package/dist/esm/data/auth/actions.js +1 -0
- package/dist/esm/data/auth/reducer.js +1 -0
- package/dist/esm/data/breakpoint/index.js +1 -0
- package/dist/esm/data/error/index.js +1 -0
- package/dist/esm/data/index.js +1 -0
- package/dist/esm/data/live-message/index.js +1 -0
- package/dist/esm/data/logout/actions.js +1 -0
- package/dist/esm/data/navigation-prompt/actions.js +1 -0
- package/dist/esm/data/react-redux.js +1 -0
- package/dist/esm/data/reducers.js +5 -19
- package/dist/esm/data/saga.js +1 -0
- package/dist/esm/data/store.js +1 -0
- package/dist/esm/data/wait-message/actions.js +1 -0
- package/dist/esm/data/wait-message/reducer.js +1 -0
- package/dist/esm/data/webpack-hmr.js +1 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/micro-frontend.js +1 -0
- package/dist/esm/sideeffect/auth/index.js +7 -23
- package/dist/esm/sideeffect/error-toast/index.js +4 -21
- package/dist/esm/sideeffect/wait-message/index.js +7 -23
- package/dist/esm/utils/app-config/config.js +1 -0
- package/dist/esm/utils/app-config/index.js +1 -0
- package/dist/esm/utils/app-host-integration/react.js +1 -0
- package/dist/esm/utils/auth/helper.js +1 -0
- package/dist/esm/utils/auth/index.js +10 -26
- package/dist/esm/utils/await.js +1 -0
- package/dist/esm/utils/constants.js +1 -0
- package/dist/esm/utils/font-size.js +1 -0
- package/dist/esm/utils/guest-with-service.js +1 -0
- package/dist/esm/utils/helpers.js +1 -0
- package/dist/esm/utils/history.js +1 -0
- package/dist/esm/utils/log-records.js +1 -0
- package/dist/esm/utils/micro-frontend/console-logger.js +1 -0
- package/dist/esm/utils/micro-frontend/guest.js +3 -1
- package/dist/esm/utils/micro-frontend/host.js +1 -0
- package/dist/esm/utils/micro-frontend/index.js +1 -0
- package/dist/esm/utils/micro-frontend/ssfguest-adapter.js +1 -0
- package/dist/esm/utils/micro-frontend/types.js +1 -0
- package/dist/esm/utils/redact-pii.js +1 -0
- package/dist/esm/utils/service-worker.js +4 -2
- package/dist/esm/utils/session.js +1 -0
- package/dist/esm/utils/storybook/manager.js +1 -0
- package/dist/esm/utils/storybook/preview.js +1 -0
- package/dist/esm/utils/storybook/theme.js +10 -41
- package/dist/esm/utils/testing/index.js +2 -17
- package/dist/esm/utils/testing/render-with-redux.js +5 -22
- package/dist/esm/utils/testing/render-with-router-redux.js +7 -24
- package/dist/esm/utils/testing/render-with-router.js +4 -21
- package/dist/esm/utils/testing/render-with-state-addons.js +11 -41
- package/dist/esm/utils/types.js +1 -0
- package/dist/esm/utils/url.js +1 -0
- package/dist/esm/utils/web-storage.js +1 -0
- package/dist/esm/utils/window.js +1 -0
- package/dist/esm/view/app-root/hosted-app.js +1 -0
- package/dist/esm/view/app-root/index.js +9 -18
- package/dist/esm/view/app-root/stand-alone-app.js +1 -0
- package/dist/esm/view/app-root/style.js +1 -0
- package/dist/esm/view/app-router.js +6 -35
- package/dist/esm/view/breakpoint/use-breakpoint.js +1 -0
- package/dist/esm/view/breakpoint/use-media-query-list.js +1 -0
- package/dist/esm/view/error-boundary/default-error-template.js +1 -0
- package/dist/esm/view/error-boundary/index.js +4 -21
- package/dist/esm/view/error-toast/index.js +10 -21
- package/dist/esm/view/fetch-host-app-data/index.js +1 -0
- package/dist/esm/view/fetch-host-app-data/store.js +2 -17
- package/dist/esm/view/fields/check-box/index.js +10 -44
- package/dist/esm/view/fields/combo-box/index.js +18 -55
- package/dist/esm/view/fields/connect-form.js +4 -17
- package/dist/esm/view/fields/date-input/index.js +15 -45
- package/dist/esm/view/fields/date-picker/index.js +15 -45
- package/dist/esm/view/fields/date-range-picker/index.js +22 -57
- package/dist/esm/view/fields/date-time-picker/index.js +17 -54
- package/dist/esm/view/fields/form-item-layout/index.js +13 -42
- package/dist/esm/view/fields/form-layout-block-item/index.js +17 -48
- package/dist/esm/view/fields/input-mask/index.js +26 -65
- package/dist/esm/view/fields/input-text/index.js +15 -45
- package/dist/esm/view/fields/large-text-box/index.js +15 -45
- package/dist/esm/view/fields/radio/index.js +17 -54
- package/dist/esm/view/fields/radio-group/index.js +10 -44
- package/dist/esm/view/fields/text-box/index.js +15 -45
- package/dist/esm/view/fields/toggle/index.js +18 -55
- package/dist/esm/view/fields/watch-value.js +1 -0
- package/dist/esm/view/form/index.js +7 -19
- package/dist/esm/view/form/personal-info-section.js +1 -0
- package/dist/esm/view/form/submit-button/index.js +5 -35
- package/dist/esm/view/guest-unload-handlers/index.js +1 -0
- package/dist/esm/view/host-binding-events/index.js +1 -0
- package/dist/esm/view/live-message/index.js +1 -0
- package/dist/esm/view/loadable/index.js +4 -17
- package/dist/esm/view/login/index.js +14 -4
- package/dist/esm/view/message-to-host-app/index.js +1 -0
- package/dist/esm/view/micro-app/app-factory/index.js +2 -20
- package/dist/esm/view/micro-app/const.js +1 -0
- package/dist/esm/view/micro-app/index.js +1 -0
- package/dist/esm/view/micro-app/resources/manifest.js +1 -0
- package/dist/esm/view/micro-app/resources/script.js +1 -0
- package/dist/esm/view/micro-app/resources/style.js +1 -0
- package/dist/esm/view/micro-app/types.js +1 -0
- package/dist/esm/view/micro-app/use-app-will-render.js +4 -21
- package/dist/esm/view/micro-app/utils.js +1 -0
- package/dist/esm/view/micro-iframe-app/app.js +11 -41
- package/dist/esm/view/micro-iframe-app/iframe/const.js +1 -0
- package/dist/esm/view/micro-iframe-app/iframe/index.js +5 -23
- package/dist/esm/view/micro-iframe-app/index.js +5 -35
- package/dist/esm/view/micro-iframe-app/types.js +1 -0
- package/dist/esm/view/micro-iframe-app/use-frame-loaded.js +1 -0
- package/dist/esm/view/modals/error/index.js +1 -0
- package/dist/esm/view/modals/navigation-prompt/index.js +1 -0
- package/dist/esm/view/modals/session-expiry/customHooks.js +1 -0
- package/dist/esm/view/modals/session-expiry/index.js +1 -0
- package/dist/esm/view/modals/wait-message/index.js +10 -43
- package/dist/esm/view/modals/wait-message/use-html-wait-message.js +1 -0
- package/dist/esm/view/modals/wait-message/wait-message-launcher.js +1 -0
- package/dist/esm/view/page.js +1 -0
- package/dist/esm/view/render-with-delay/index.js +1 -0
- package/dist/esm/view/render-with-host-data/index.js +1 -0
- package/dist/esm/view/require-auth.js +2 -1
- package/dist/esm/view/session-timeout/index.js +1 -0
- package/dist/esm/view/storybook/decorator.js +1 -0
- package/dist/esm/view/use-previous.js +1 -0
- package/dist/esm/view/use-window-size-change.js +1 -0
- package/dist/esm/view/visually-hidden/index.js +5 -19
- package/dist/types/data/store.d.ts +1 -1
- package/dist/types/utils/auth/index.d.ts +3 -1
- package/dist/types/utils/micro-frontend/tests/guest-ssf-host.test.d.ts +1 -0
- package/dist/types/utils/micro-frontend/tests/guest.test.d.ts +1 -0
- package/dist/types/utils/testing/index.d.ts +1 -1
- package/dist/types/view/app-root/index.d.ts +2 -1
- package/dist/types/view/app-router.d.ts +1 -1
- package/dist/types/view/login/index.d.ts +3 -1
- package/package.json +6 -4
|
@@ -1,19 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
-
var __spreadValues = (a, b) => {
|
|
7
|
-
for (var prop in b || (b = {}))
|
|
8
|
-
if (__hasOwnProp.call(b, prop))
|
|
9
|
-
__defNormalProp(a, prop, b[prop]);
|
|
10
|
-
if (__getOwnPropSymbols)
|
|
11
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
12
|
-
if (__propIsEnum.call(b, prop))
|
|
13
|
-
__defNormalProp(a, prop, b[prop]);
|
|
14
|
-
}
|
|
15
|
-
return a;
|
|
16
|
-
};
|
|
1
|
+
"use strict";
|
|
17
2
|
import * as React from "react";
|
|
18
3
|
import styled from "styled-components";
|
|
19
4
|
import {
|
|
@@ -37,9 +22,12 @@ const Form = ({
|
|
|
37
22
|
const providerProps = Object.assign(methods, {
|
|
38
23
|
formProps: reactHookFormProps
|
|
39
24
|
});
|
|
40
|
-
return /* @__PURE__ */ React.createElement(FormProvider,
|
|
41
|
-
|
|
42
|
-
},
|
|
25
|
+
return /* @__PURE__ */ React.createElement(FormProvider, {
|
|
26
|
+
...providerProps
|
|
27
|
+
}, /* @__PURE__ */ React.createElement(StyledForm, {
|
|
28
|
+
className: classname,
|
|
29
|
+
...formProps
|
|
30
|
+
}, children));
|
|
43
31
|
};
|
|
44
32
|
export {
|
|
45
33
|
Form
|
|
@@ -1,47 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
var __defProps = Object.defineProperties;
|
|
3
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
-
var __spreadValues = (a, b) => {
|
|
9
|
-
for (var prop in b || (b = {}))
|
|
10
|
-
if (__hasOwnProp.call(b, prop))
|
|
11
|
-
__defNormalProp(a, prop, b[prop]);
|
|
12
|
-
if (__getOwnPropSymbols)
|
|
13
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
-
if (__propIsEnum.call(b, prop))
|
|
15
|
-
__defNormalProp(a, prop, b[prop]);
|
|
16
|
-
}
|
|
17
|
-
return a;
|
|
18
|
-
};
|
|
19
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
var __objRest = (source, exclude) => {
|
|
21
|
-
var target = {};
|
|
22
|
-
for (var prop in source)
|
|
23
|
-
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
24
|
-
target[prop] = source[prop];
|
|
25
|
-
if (source != null && __getOwnPropSymbols)
|
|
26
|
-
for (var prop of __getOwnPropSymbols(source)) {
|
|
27
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
28
|
-
target[prop] = source[prop];
|
|
29
|
-
}
|
|
30
|
-
return target;
|
|
31
|
-
};
|
|
1
|
+
"use strict";
|
|
32
2
|
import * as React from "react";
|
|
33
3
|
import { useFormContext } from "react-hook-form";
|
|
34
4
|
import { DSButtonV2 } from "@elliemae/ds-button";
|
|
35
|
-
const FormSubmitButton = (
|
|
36
|
-
var rest = __objRest(_a, []);
|
|
5
|
+
const FormSubmitButton = ({ ...rest }) => {
|
|
37
6
|
const {
|
|
38
7
|
formState,
|
|
39
8
|
formProps: { mode }
|
|
40
9
|
} = useFormContext();
|
|
41
|
-
return /* @__PURE__ */ React.createElement(DSButtonV2,
|
|
10
|
+
return /* @__PURE__ */ React.createElement(DSButtonV2, {
|
|
11
|
+
...rest,
|
|
42
12
|
type: "submit",
|
|
43
13
|
disabled: mode !== "onSubmit" && (!formState.isDirty || formState.isDirty && !formState.isValid)
|
|
44
|
-
})
|
|
14
|
+
});
|
|
45
15
|
};
|
|
46
16
|
export {
|
|
47
17
|
FormSubmitButton
|
|
@@ -1,19 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
-
var __spreadValues = (a, b) => {
|
|
7
|
-
for (var prop in b || (b = {}))
|
|
8
|
-
if (__hasOwnProp.call(b, prop))
|
|
9
|
-
__defNormalProp(a, prop, b[prop]);
|
|
10
|
-
if (__getOwnPropSymbols)
|
|
11
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
12
|
-
if (__propIsEnum.call(b, prop))
|
|
13
|
-
__defNormalProp(a, prop, b[prop]);
|
|
14
|
-
}
|
|
15
|
-
return a;
|
|
16
|
-
};
|
|
1
|
+
"use strict";
|
|
17
2
|
import * as React from "react";
|
|
18
3
|
import { lazy, Suspense } from "react";
|
|
19
4
|
import { WaitMessageLauncher } from "../modals/wait-message/wait-message-launcher.js";
|
|
@@ -21,7 +6,9 @@ const loadable = (importFunc, fallback = /* @__PURE__ */ React.createElement(Wai
|
|
|
21
6
|
const LazyComponent = lazy(importFunc);
|
|
22
7
|
return (props) => /* @__PURE__ */ React.createElement(Suspense, {
|
|
23
8
|
fallback
|
|
24
|
-
}, /* @__PURE__ */ React.createElement(LazyComponent,
|
|
9
|
+
}, /* @__PURE__ */ React.createElement(LazyComponent, {
|
|
10
|
+
...props
|
|
11
|
+
}));
|
|
25
12
|
};
|
|
26
13
|
export {
|
|
27
14
|
loadable
|
|
@@ -1,16 +1,26 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { useEffect, useState } from "react";
|
|
2
4
|
import { useAppDispatch } from "../../data/react-redux.js";
|
|
3
5
|
import { login } from "../../utils/auth/index.js";
|
|
4
6
|
import { LOGIN_SUCCESS } from "../../data/auth/actions.js";
|
|
5
|
-
const Login = ({
|
|
7
|
+
const Login = ({
|
|
8
|
+
clientId,
|
|
9
|
+
scope,
|
|
10
|
+
responseType,
|
|
11
|
+
children
|
|
12
|
+
}) => {
|
|
13
|
+
const [userAuthorized, setUserAuthorized] = useState(false);
|
|
6
14
|
const dispatch = useAppDispatch();
|
|
7
15
|
useEffect(() => {
|
|
8
|
-
login({ clientId, scope, responseType }).then(() => {
|
|
16
|
+
login({ clientId, scope, responseType }).then(({ authorized }) => {
|
|
17
|
+
if (authorized)
|
|
18
|
+
setUserAuthorized(true);
|
|
9
19
|
dispatch({ type: LOGIN_SUCCESS });
|
|
10
20
|
}).catch(() => {
|
|
11
21
|
});
|
|
12
22
|
}, [dispatch, clientId, scope, responseType]);
|
|
13
|
-
return null;
|
|
23
|
+
return userAuthorized ? /* @__PURE__ */ React.createElement(React.Fragment, null, children) : null;
|
|
14
24
|
};
|
|
15
25
|
export {
|
|
16
26
|
Login
|
|
@@ -1,22 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
var __defProps = Object.defineProperties;
|
|
3
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
-
var __spreadValues = (a, b) => {
|
|
9
|
-
for (var prop in b || (b = {}))
|
|
10
|
-
if (__hasOwnProp.call(b, prop))
|
|
11
|
-
__defNormalProp(a, prop, b[prop]);
|
|
12
|
-
if (__getOwnPropSymbols)
|
|
13
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
-
if (__propIsEnum.call(b, prop))
|
|
15
|
-
__defNormalProp(a, prop, b[prop]);
|
|
16
|
-
}
|
|
17
|
-
return a;
|
|
18
|
-
};
|
|
19
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
1
|
+
"use strict";
|
|
20
2
|
import { persistentStorage } from "../../../utils/web-storage.js";
|
|
21
3
|
import { CMicroAppHost } from "../../../utils/micro-frontend/host.js";
|
|
22
4
|
import { getLogger } from "../../../utils/micro-frontend/index.js";
|
|
@@ -107,7 +89,7 @@ const addAppToActiveAppList = (id, elementIds) => {
|
|
|
107
89
|
};
|
|
108
90
|
const waitAndInitApplication = (appConfig, requests) => Promise.all(requests).then(addAppToActiveAppList.bind(null, appConfig.id)).then(initApplication.bind(null, appConfig)).catch((err) => {
|
|
109
91
|
const logRecord = logRecords.APP_INIT_FAILED(appConfig.id, err.message);
|
|
110
|
-
getLogger().error(
|
|
92
|
+
getLogger().error({ ...logRecord, exception: err });
|
|
111
93
|
throw new Error(logRecord.msg);
|
|
112
94
|
});
|
|
113
95
|
const removeAssetsFromDOM = (id, documentEle = document) => {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -1,22 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
var __defProps = Object.defineProperties;
|
|
3
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
-
var __spreadValues = (a, b) => {
|
|
9
|
-
for (var prop in b || (b = {}))
|
|
10
|
-
if (__hasOwnProp.call(b, prop))
|
|
11
|
-
__defNormalProp(a, prop, b[prop]);
|
|
12
|
-
if (__getOwnPropSymbols)
|
|
13
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
-
if (__propIsEnum.call(b, prop))
|
|
15
|
-
__defNormalProp(a, prop, b[prop]);
|
|
16
|
-
}
|
|
17
|
-
return a;
|
|
18
|
-
};
|
|
19
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
1
|
+
"use strict";
|
|
20
2
|
import { useRef, useLayoutEffect, useCallback } from "react";
|
|
21
3
|
import { merge } from "lodash";
|
|
22
4
|
import { useDispatch } from "react-redux";
|
|
@@ -60,9 +42,10 @@ const useAppWillRender = ({
|
|
|
60
42
|
await loadApp(appConfig);
|
|
61
43
|
await mountApp(appConfig);
|
|
62
44
|
} catch (ex) {
|
|
63
|
-
getLogger().error(
|
|
45
|
+
getLogger().error({
|
|
46
|
+
...logRecords.APP_CONFIG_LOAD_FAILED,
|
|
64
47
|
exception: ex
|
|
65
|
-
})
|
|
48
|
+
});
|
|
66
49
|
await unload(appConfig, true);
|
|
67
50
|
throw ex;
|
|
68
51
|
}
|
|
@@ -1,34 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
var __defProps = Object.defineProperties;
|
|
3
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
-
var __spreadValues = (a, b) => {
|
|
9
|
-
for (var prop in b || (b = {}))
|
|
10
|
-
if (__hasOwnProp.call(b, prop))
|
|
11
|
-
__defNormalProp(a, prop, b[prop]);
|
|
12
|
-
if (__getOwnPropSymbols)
|
|
13
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
-
if (__propIsEnum.call(b, prop))
|
|
15
|
-
__defNormalProp(a, prop, b[prop]);
|
|
16
|
-
}
|
|
17
|
-
return a;
|
|
18
|
-
};
|
|
19
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
var __objRest = (source, exclude) => {
|
|
21
|
-
var target = {};
|
|
22
|
-
for (var prop in source)
|
|
23
|
-
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
24
|
-
target[prop] = source[prop];
|
|
25
|
-
if (source != null && __getOwnPropSymbols)
|
|
26
|
-
for (var prop of __getOwnPropSymbols(source)) {
|
|
27
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
28
|
-
target[prop] = source[prop];
|
|
29
|
-
}
|
|
30
|
-
return target;
|
|
31
|
-
};
|
|
1
|
+
"use strict";
|
|
32
2
|
import * as React from "react";
|
|
33
3
|
import { memo, useState } from "react";
|
|
34
4
|
import frameHtml from "file-loader?name=iframe.[contenthash].[ext]!./iframe/index.html";
|
|
@@ -37,21 +7,21 @@ import { useFrameLoaded } from "./use-frame-loaded.js";
|
|
|
37
7
|
import {
|
|
38
8
|
useAppWillRender
|
|
39
9
|
} from "../micro-app/use-app-will-render.js";
|
|
40
|
-
const App = memo((
|
|
41
|
-
var _b = _a, { id, dispose, onUnloadComplete } = _b, rest = __objRest(_b, ["id", "dispose", "onUnloadComplete"]);
|
|
10
|
+
const App = memo(({ id, dispose, onUnloadComplete, ...rest }) => {
|
|
42
11
|
const [documentEle, setDocumentEle] = useState(null);
|
|
43
|
-
useFrameLoaded(
|
|
44
|
-
useAppWillRender(
|
|
12
|
+
useFrameLoaded({ id, documentEle, ...rest });
|
|
13
|
+
useAppWillRender({
|
|
45
14
|
id,
|
|
46
15
|
documentEle: dispose ? null : documentEle,
|
|
47
|
-
onUnloadComplete
|
|
48
|
-
|
|
49
|
-
|
|
16
|
+
onUnloadComplete,
|
|
17
|
+
...rest
|
|
18
|
+
});
|
|
19
|
+
return /* @__PURE__ */ React.createElement(IFrame, {
|
|
50
20
|
id,
|
|
51
|
-
src: frameHtml
|
|
52
|
-
|
|
21
|
+
src: frameHtml,
|
|
22
|
+
...rest,
|
|
53
23
|
onFrameReady: setDocumentEle
|
|
54
|
-
})
|
|
24
|
+
});
|
|
55
25
|
});
|
|
56
26
|
export {
|
|
57
27
|
App
|
|
@@ -1,22 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
var __defProps = Object.defineProperties;
|
|
3
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
-
var __spreadValues = (a, b) => {
|
|
9
|
-
for (var prop in b || (b = {}))
|
|
10
|
-
if (__hasOwnProp.call(b, prop))
|
|
11
|
-
__defNormalProp(a, prop, b[prop]);
|
|
12
|
-
if (__getOwnPropSymbols)
|
|
13
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
-
if (__propIsEnum.call(b, prop))
|
|
15
|
-
__defNormalProp(a, prop, b[prop]);
|
|
16
|
-
}
|
|
17
|
-
return a;
|
|
18
|
-
};
|
|
19
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
1
|
+
"use strict";
|
|
20
2
|
import * as React from "react";
|
|
21
3
|
import { memo, useRef } from "react";
|
|
22
4
|
import styled from "styled-components";
|
|
@@ -39,15 +21,15 @@ const Iframe = styled.iframe`
|
|
|
39
21
|
const IFrame = memo(({ id, name: title, src, sandbox, onFrameReady }) => {
|
|
40
22
|
const frameRef = useRef(null);
|
|
41
23
|
const sandboxProps = sandbox ? { sandbox } : {};
|
|
42
|
-
return /* @__PURE__ */ React.createElement(Div, null, /* @__PURE__ */ React.createElement(Iframe,
|
|
24
|
+
return /* @__PURE__ */ React.createElement(Div, null, /* @__PURE__ */ React.createElement(Iframe, {
|
|
43
25
|
id: `${IFRAME_CONTAINER_ID_PREFIX}${id}`,
|
|
44
26
|
ref: frameRef,
|
|
45
27
|
title,
|
|
46
28
|
src,
|
|
47
|
-
scrolling: "no"
|
|
48
|
-
|
|
29
|
+
scrolling: "no",
|
|
30
|
+
...sandboxProps,
|
|
49
31
|
onLoad: () => frameRef?.current?.contentDocument && onFrameReady(frameRef.current.contentDocument)
|
|
50
|
-
}))
|
|
32
|
+
}));
|
|
51
33
|
});
|
|
52
34
|
export {
|
|
53
35
|
IFrame
|
|
@@ -1,40 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
var __defProps = Object.defineProperties;
|
|
3
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
-
var __spreadValues = (a, b) => {
|
|
9
|
-
for (var prop in b || (b = {}))
|
|
10
|
-
if (__hasOwnProp.call(b, prop))
|
|
11
|
-
__defNormalProp(a, prop, b[prop]);
|
|
12
|
-
if (__getOwnPropSymbols)
|
|
13
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
-
if (__propIsEnum.call(b, prop))
|
|
15
|
-
__defNormalProp(a, prop, b[prop]);
|
|
16
|
-
}
|
|
17
|
-
return a;
|
|
18
|
-
};
|
|
19
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
var __objRest = (source, exclude) => {
|
|
21
|
-
var target = {};
|
|
22
|
-
for (var prop in source)
|
|
23
|
-
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
24
|
-
target[prop] = source[prop];
|
|
25
|
-
if (source != null && __getOwnPropSymbols)
|
|
26
|
-
for (var prop of __getOwnPropSymbols(source)) {
|
|
27
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
28
|
-
target[prop] = source[prop];
|
|
29
|
-
}
|
|
30
|
-
return target;
|
|
31
|
-
};
|
|
1
|
+
"use strict";
|
|
32
2
|
import * as React from "react";
|
|
33
3
|
import { useEffect, useState, memo } from "react";
|
|
34
4
|
import { usePrevious } from "../use-previous.js";
|
|
35
5
|
import { App } from "./app.js";
|
|
36
|
-
const MicroIFrameApp = memo((
|
|
37
|
-
var _b = _a, { entityId = null } = _b, rest = __objRest(_b, ["entityId"]);
|
|
6
|
+
const MicroIFrameApp = memo(({ entityId = null, ...rest }) => {
|
|
38
7
|
const [disposePrevApp, setDisposePrevApp] = useState(false);
|
|
39
8
|
const [appKey, setAppKey] = useState(Date.now());
|
|
40
9
|
const prevEntityId = usePrevious(entityId);
|
|
@@ -43,14 +12,15 @@ const MicroIFrameApp = memo((_a) => {
|
|
|
43
12
|
setDisposePrevApp(true);
|
|
44
13
|
}
|
|
45
14
|
}, [entityId]);
|
|
46
|
-
return /* @__PURE__ */ React.createElement(App,
|
|
15
|
+
return /* @__PURE__ */ React.createElement(App, {
|
|
16
|
+
...rest,
|
|
47
17
|
key: appKey,
|
|
48
18
|
dispose: disposePrevApp,
|
|
49
19
|
onUnloadComplete: () => {
|
|
50
20
|
setAppKey(Date.now());
|
|
51
21
|
setDisposePrevApp(false);
|
|
52
22
|
}
|
|
53
|
-
})
|
|
23
|
+
});
|
|
54
24
|
});
|
|
55
25
|
export {
|
|
56
26
|
MicroIFrameApp
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -1,34 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
var __defProps = Object.defineProperties;
|
|
3
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
-
var __spreadValues = (a, b) => {
|
|
9
|
-
for (var prop in b || (b = {}))
|
|
10
|
-
if (__hasOwnProp.call(b, prop))
|
|
11
|
-
__defNormalProp(a, prop, b[prop]);
|
|
12
|
-
if (__getOwnPropSymbols)
|
|
13
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
-
if (__propIsEnum.call(b, prop))
|
|
15
|
-
__defNormalProp(a, prop, b[prop]);
|
|
16
|
-
}
|
|
17
|
-
return a;
|
|
18
|
-
};
|
|
19
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
var __objRest = (source, exclude) => {
|
|
21
|
-
var target = {};
|
|
22
|
-
for (var prop in source)
|
|
23
|
-
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
24
|
-
target[prop] = source[prop];
|
|
25
|
-
if (source != null && __getOwnPropSymbols)
|
|
26
|
-
for (var prop of __getOwnPropSymbols(source)) {
|
|
27
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
28
|
-
target[prop] = source[prop];
|
|
29
|
-
}
|
|
30
|
-
return target;
|
|
31
|
-
};
|
|
1
|
+
"use strict";
|
|
32
2
|
import * as React from "react";
|
|
33
3
|
import { memo, useEffect } from "react";
|
|
34
4
|
import { DSLoadingIndicator } from "@elliemae/ds-loading-indicator";
|
|
@@ -38,14 +8,11 @@ import {
|
|
|
38
8
|
waitStartEvent,
|
|
39
9
|
waitEndEvent
|
|
40
10
|
} from "../../../analytics/user-wait-event.js";
|
|
41
|
-
const WaitMessage = memo((
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
"size",
|
|
47
|
-
"style"
|
|
48
|
-
]);
|
|
11
|
+
const WaitMessage = memo(({
|
|
12
|
+
size = "m",
|
|
13
|
+
style = { color: "white", fontSize: "1.25rem" },
|
|
14
|
+
...rest
|
|
15
|
+
}) => {
|
|
49
16
|
const isOpen = useAppSelector((state) => state.waitMessage?.isOpen);
|
|
50
17
|
const message = useAppSelector((state) => state.waitMessage?.message);
|
|
51
18
|
useEffect(() => {
|
|
@@ -55,14 +22,14 @@ const WaitMessage = memo((_a) => {
|
|
|
55
22
|
waitEndEvent();
|
|
56
23
|
}, [isOpen]);
|
|
57
24
|
useHTMLWaitMessage(isOpen !== null);
|
|
58
|
-
return /* @__PURE__ */ React.createElement(DSLoadingIndicator,
|
|
25
|
+
return /* @__PURE__ */ React.createElement(DSLoadingIndicator, {
|
|
59
26
|
id: "em-loading",
|
|
60
27
|
size,
|
|
61
|
-
style
|
|
62
|
-
|
|
28
|
+
style,
|
|
29
|
+
...rest,
|
|
63
30
|
loading: isOpen,
|
|
64
31
|
message
|
|
65
|
-
})
|
|
32
|
+
});
|
|
66
33
|
});
|
|
67
34
|
export {
|
|
68
35
|
WaitMessage
|
package/dist/esm/view/page.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
import * as React from "react";
|
|
2
3
|
import { useInjectReducer, useInjectSaga } from "redux-injectors";
|
|
3
4
|
import enums from "../utils/constants.js";
|
|
@@ -22,7 +23,7 @@ const RequireAuth = ({
|
|
|
22
23
|
clientId,
|
|
23
24
|
scope,
|
|
24
25
|
responseType
|
|
25
|
-
});
|
|
26
|
+
}, children);
|
|
26
27
|
};
|
|
27
28
|
export {
|
|
28
29
|
RequireAuth
|