@elliemae/pui-app-sdk 3.5.0 → 3.8.0
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 +1 -1
- package/dist/cjs/analytics/appdynamics.js +9 -16
- package/dist/cjs/analytics/index.js +8 -13
- package/dist/cjs/analytics/page-view-event.js +8 -13
- package/dist/cjs/analytics/user-session-event.js +8 -13
- package/dist/cjs/analytics/user-wait-event.js +8 -13
- package/dist/cjs/analytics/web-analytics.js +8 -13
- package/dist/cjs/api/auth/index.js +8 -13
- package/dist/cjs/api/helpers.js +8 -13
- package/dist/cjs/api/users/index.js +8 -13
- package/dist/cjs/communication/http-client/index.js +9 -16
- package/dist/cjs/communication/http-client/request-interceptor.js +8 -13
- package/dist/cjs/communication/http-client/response-interceptor.js +9 -16
- package/dist/cjs/communication/http-client/retry-axios.js +9 -16
- package/dist/cjs/communication/http-client/retry.js +8 -13
- package/dist/cjs/data/auth/actions.js +8 -13
- package/dist/cjs/data/auth/reducer.js +9 -16
- package/dist/cjs/data/breakpoint/index.js +9 -16
- package/dist/cjs/data/error/index.js +8 -13
- package/dist/cjs/data/index.js +8 -13
- package/dist/cjs/data/live-message/index.js +8 -13
- package/dist/cjs/data/logout/actions.js +8 -13
- package/dist/cjs/data/navigation-prompt/actions.js +8 -13
- package/dist/cjs/data/react-redux.js +8 -13
- package/dist/cjs/data/reducers.js +8 -13
- package/dist/cjs/data/saga.js +8 -13
- package/dist/cjs/data/store.js +9 -16
- package/dist/cjs/data/wait-message/actions.js +8 -13
- package/dist/cjs/data/wait-message/reducer.js +9 -16
- package/dist/cjs/data/webpack-hmr.js +8 -13
- package/dist/cjs/index.js +11 -17
- package/dist/cjs/micro-frontend.js +8 -13
- package/dist/cjs/sideeffect/auth/index.js +8 -13
- package/dist/cjs/sideeffect/error-toast/index.js +8 -13
- package/dist/cjs/sideeffect/wait-message/index.js +8 -13
- package/dist/cjs/utils/app-config/config.js +9 -16
- package/dist/cjs/utils/app-config/index.js +9 -16
- package/dist/cjs/utils/app-host-integration/react.js +8 -13
- package/dist/cjs/utils/auth/helper.js +9 -16
- package/dist/cjs/utils/auth/index.js +8 -13
- package/dist/cjs/utils/await.js +7 -12
- package/dist/cjs/utils/constants.js +8 -13
- package/dist/cjs/utils/font-size.js +8 -13
- package/dist/cjs/utils/guest-with-service.js +8 -13
- package/dist/cjs/utils/helpers.js +8 -13
- package/dist/cjs/utils/history.js +8 -13
- package/dist/cjs/utils/log-records.js +8 -13
- package/dist/cjs/utils/micro-frontend/console-logger.js +8 -13
- package/dist/cjs/utils/micro-frontend/guest.js +17 -28
- package/dist/cjs/utils/micro-frontend/host.js +13 -13
- package/dist/cjs/utils/micro-frontend/index.js +9 -16
- package/dist/cjs/utils/micro-frontend/ssfguest-adapter.js +47 -0
- package/dist/cjs/utils/micro-frontend/types.js +7 -12
- package/dist/cjs/utils/redact-pii.js +8 -13
- package/dist/cjs/utils/service-worker.js +8 -13
- package/dist/cjs/utils/session.js +8 -13
- package/dist/cjs/utils/storybook/manager.js +8 -13
- package/dist/cjs/utils/storybook/preview.js +8 -13
- package/dist/cjs/utils/storybook/theme.js +8 -13
- package/dist/cjs/utils/testing/index.js +11 -17
- package/dist/cjs/utils/testing/render-with-redux.js +9 -16
- package/dist/cjs/utils/testing/render-with-router-redux.js +9 -16
- package/dist/cjs/utils/testing/render-with-router.js +9 -16
- package/dist/cjs/utils/testing/render-with-state-addons.js +9 -16
- package/dist/cjs/utils/types.js +7 -12
- package/dist/cjs/utils/url.js +8 -13
- package/dist/cjs/utils/web-storage.js +9 -16
- package/dist/cjs/utils/window.js +8 -13
- package/dist/cjs/view/app-root/hosted-app.js +9 -16
- package/dist/cjs/view/app-root/index.js +9 -16
- package/dist/cjs/view/app-root/stand-alone-app.js +9 -16
- package/dist/cjs/view/app-root/style.js +8 -13
- package/dist/cjs/view/app-router.js +9 -16
- package/dist/cjs/view/breakpoint/use-breakpoint.js +8 -13
- package/dist/cjs/view/breakpoint/use-media-query-list.js +8 -13
- package/dist/cjs/view/error-boundary/default-error-template.js +9 -16
- package/dist/cjs/view/error-boundary/index.js +9 -16
- package/dist/cjs/view/error-toast/index.js +9 -16
- package/dist/cjs/view/fetch-host-app-data/index.js +9 -16
- package/dist/cjs/view/fetch-host-app-data/store.js +8 -13
- package/dist/cjs/view/fields/check-box/index.js +9 -16
- package/dist/cjs/view/fields/combo-box/index.js +9 -16
- package/dist/cjs/view/fields/connect-form.js +8 -13
- package/dist/cjs/view/fields/date-input/index.js +9 -16
- package/dist/cjs/view/fields/date-picker/index.js +9 -16
- package/dist/cjs/view/fields/date-range-picker/index.js +9 -16
- package/dist/cjs/view/fields/date-time-picker/index.js +9 -16
- package/dist/cjs/view/fields/form-item-layout/index.js +9 -16
- package/dist/cjs/view/fields/form-layout-block-item/index.js +9 -16
- package/dist/cjs/view/fields/input-mask/index.js +9 -16
- package/dist/cjs/view/fields/input-text/index.js +9 -16
- package/dist/cjs/view/fields/large-text-box/index.js +9 -16
- package/dist/cjs/view/fields/radio/index.js +9 -16
- package/dist/cjs/view/fields/radio-group/index.js +9 -16
- package/dist/cjs/view/fields/text-box/index.js +9 -16
- package/dist/cjs/view/fields/toggle/index.js +9 -16
- package/dist/cjs/view/fields/watch-value.js +9 -16
- package/dist/cjs/view/form/index.js +9 -16
- package/dist/cjs/view/form/personal-info-section.js +9 -16
- package/dist/cjs/view/form/submit-button/index.js +9 -16
- package/dist/cjs/view/guest-unload-handlers/index.js +8 -13
- package/dist/cjs/view/host-binding-events/index.js +8 -13
- package/dist/cjs/view/live-message/index.js +9 -16
- package/dist/cjs/view/loadable/index.js +9 -16
- package/dist/cjs/view/login/index.js +8 -13
- package/dist/cjs/view/message-to-host-app/index.js +8 -13
- package/dist/cjs/view/micro-app/app-factory/index.js +8 -13
- package/dist/cjs/view/micro-app/const.js +8 -13
- package/dist/cjs/view/micro-app/index.js +9 -16
- package/dist/cjs/view/micro-app/resources/manifest.js +8 -13
- package/dist/cjs/view/micro-app/resources/script.js +8 -13
- package/dist/cjs/view/micro-app/resources/style.js +8 -13
- package/dist/cjs/view/micro-app/types.js +7 -12
- package/dist/cjs/view/micro-app/use-app-will-render.js +8 -13
- package/dist/cjs/view/micro-app/utils.js +8 -13
- package/dist/cjs/view/micro-iframe-app/app.js +9 -16
- package/dist/cjs/view/micro-iframe-app/iframe/const.js +8 -13
- package/dist/cjs/view/micro-iframe-app/iframe/index.js +9 -16
- package/dist/cjs/view/micro-iframe-app/index.js +9 -16
- package/dist/cjs/view/micro-iframe-app/types.js +7 -12
- package/dist/cjs/view/micro-iframe-app/use-frame-loaded.js +8 -13
- package/dist/cjs/view/modals/error/index.js +9 -16
- package/dist/cjs/view/modals/navigation-prompt/index.js +9 -16
- package/dist/cjs/view/modals/session-expiry/customHooks.js +8 -13
- package/dist/cjs/view/modals/session-expiry/index.js +9 -16
- package/dist/cjs/view/modals/wait-message/index.js +9 -16
- package/dist/cjs/view/modals/wait-message/use-html-wait-message.js +8 -13
- package/dist/cjs/view/modals/wait-message/wait-message-launcher.js +8 -13
- package/dist/cjs/view/page.js +9 -16
- package/dist/cjs/view/render-with-delay/index.js +9 -16
- package/dist/cjs/view/render-with-host-data/index.js +9 -16
- package/dist/cjs/view/require-auth.js +9 -16
- package/dist/cjs/view/session-timeout/index.js +9 -16
- package/dist/cjs/view/storybook/decorator.js +9 -16
- package/dist/cjs/view/use-previous.js +8 -13
- package/dist/cjs/view/use-window-size-change.js +8 -13
- package/dist/cjs/view/visually-hidden/index.js +9 -16
- package/dist/esm/utils/micro-frontend/guest.js +8 -12
- package/dist/esm/utils/micro-frontend/host.js +5 -0
- package/dist/esm/utils/micro-frontend/ssfguest-adapter.js +25 -0
- package/dist/types/data/store.d.ts +2 -12
- package/dist/types/utils/micro-frontend/guest.d.ts +1 -1
- package/dist/types/utils/micro-frontend/host.d.ts +3 -1
- package/dist/types/utils/micro-frontend/ssfguest-adapter.d.ts +7 -0
- package/dist/types/utils/testing/index.d.ts +1 -1
- package/dist/types/utils/testing/render-with-redux.d.ts +3 -13
- package/dist/types/utils/testing/render-with-router-redux.d.ts +3 -13
- package/dist/types/utils/testing/render-with-router.d.ts +1 -1
- package/package.json +38 -38
|
@@ -4,31 +4,25 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __getProtoOf = Object.getPrototypeOf;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
7
|
var __export = (target, all) => {
|
|
9
8
|
for (var name in all)
|
|
10
9
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
10
|
};
|
|
12
|
-
var
|
|
13
|
-
if (
|
|
14
|
-
for (let key of __getOwnPropNames(
|
|
15
|
-
if (!__hasOwnProp.call(
|
|
16
|
-
__defProp(
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
16
|
}
|
|
18
|
-
return
|
|
17
|
+
return to;
|
|
19
18
|
};
|
|
20
|
-
var __toESM = (
|
|
21
|
-
|
|
22
|
-
};
|
|
23
|
-
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
24
|
-
return (module2, temp) => {
|
|
25
|
-
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
26
|
-
};
|
|
27
|
-
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
|
|
20
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
21
|
var decorator_exports = {};
|
|
29
22
|
__export(decorator_exports, {
|
|
30
23
|
withAppDecorator: () => withAppDecorator
|
|
31
24
|
});
|
|
25
|
+
module.exports = __toCommonJS(decorator_exports);
|
|
32
26
|
var React = __toESM(require("react"));
|
|
33
27
|
var import_history = require("../../utils/history.js");
|
|
34
28
|
var import_app_root = require("../app-root/index.js");
|
|
@@ -37,4 +31,3 @@ const withAppDecorator = (theme, store, story) => /* @__PURE__ */ React.createEl
|
|
|
37
31
|
history: import_history.browserHistory,
|
|
38
32
|
theme
|
|
39
33
|
}, story());
|
|
40
|
-
module.exports = __toCommonJS(decorator_exports);
|
|
@@ -2,28 +2,24 @@ var __defProp = Object.defineProperty;
|
|
|
2
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
6
5
|
var __export = (target, all) => {
|
|
7
6
|
for (var name in all)
|
|
8
7
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
8
|
};
|
|
10
|
-
var
|
|
11
|
-
if (
|
|
12
|
-
for (let key of __getOwnPropNames(
|
|
13
|
-
if (!__hasOwnProp.call(
|
|
14
|
-
__defProp(
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
14
|
}
|
|
16
|
-
return
|
|
15
|
+
return to;
|
|
17
16
|
};
|
|
18
|
-
var __toCommonJS =
|
|
19
|
-
return (module2, temp) => {
|
|
20
|
-
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
21
|
-
};
|
|
22
|
-
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
23
18
|
var use_previous_exports = {};
|
|
24
19
|
__export(use_previous_exports, {
|
|
25
20
|
usePrevious: () => usePrevious
|
|
26
21
|
});
|
|
22
|
+
module.exports = __toCommonJS(use_previous_exports);
|
|
27
23
|
var import_react = require("react");
|
|
28
24
|
const usePrevious = (value) => {
|
|
29
25
|
const ref = (0, import_react.useRef)();
|
|
@@ -32,4 +28,3 @@ const usePrevious = (value) => {
|
|
|
32
28
|
}, [value]);
|
|
33
29
|
return ref.current;
|
|
34
30
|
};
|
|
35
|
-
module.exports = __toCommonJS(use_previous_exports);
|
|
@@ -2,28 +2,24 @@ var __defProp = Object.defineProperty;
|
|
|
2
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
6
5
|
var __export = (target, all) => {
|
|
7
6
|
for (var name in all)
|
|
8
7
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
8
|
};
|
|
10
|
-
var
|
|
11
|
-
if (
|
|
12
|
-
for (let key of __getOwnPropNames(
|
|
13
|
-
if (!__hasOwnProp.call(
|
|
14
|
-
__defProp(
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
14
|
}
|
|
16
|
-
return
|
|
15
|
+
return to;
|
|
17
16
|
};
|
|
18
|
-
var __toCommonJS =
|
|
19
|
-
return (module2, temp) => {
|
|
20
|
-
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
21
|
-
};
|
|
22
|
-
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
23
18
|
var use_window_size_change_exports = {};
|
|
24
19
|
__export(use_window_size_change_exports, {
|
|
25
20
|
useWindowSizeChange: () => useWindowSizeChange
|
|
26
21
|
});
|
|
22
|
+
module.exports = __toCommonJS(use_window_size_change_exports);
|
|
27
23
|
var import_react = require("react");
|
|
28
24
|
var import_pubsub_js = require("pubsub-js");
|
|
29
25
|
var import_constants = require("../utils/constants.js");
|
|
@@ -42,4 +38,3 @@ const useWindowSizeChange = () => {
|
|
|
42
38
|
};
|
|
43
39
|
}, []);
|
|
44
40
|
};
|
|
45
|
-
module.exports = __toCommonJS(use_window_size_change_exports);
|
|
@@ -18,31 +18,25 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
}
|
|
19
19
|
return a;
|
|
20
20
|
};
|
|
21
|
-
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
22
21
|
var __export = (target, all) => {
|
|
23
22
|
for (var name in all)
|
|
24
23
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
25
24
|
};
|
|
26
|
-
var
|
|
27
|
-
if (
|
|
28
|
-
for (let key of __getOwnPropNames(
|
|
29
|
-
if (!__hasOwnProp.call(
|
|
30
|
-
__defProp(
|
|
25
|
+
var __copyProps = (to, from, except, desc) => {
|
|
26
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
27
|
+
for (let key of __getOwnPropNames(from))
|
|
28
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
29
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
31
30
|
}
|
|
32
|
-
return
|
|
31
|
+
return to;
|
|
33
32
|
};
|
|
34
|
-
var __toESM = (
|
|
35
|
-
|
|
36
|
-
};
|
|
37
|
-
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
38
|
-
return (module2, temp) => {
|
|
39
|
-
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
40
|
-
};
|
|
41
|
-
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
33
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
|
|
34
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
42
35
|
var visually_hidden_exports = {};
|
|
43
36
|
__export(visually_hidden_exports, {
|
|
44
37
|
VisuallyHidden: () => VisuallyHidden
|
|
45
38
|
});
|
|
39
|
+
module.exports = __toCommonJS(visually_hidden_exports);
|
|
46
40
|
var React = __toESM(require("react"));
|
|
47
41
|
var import_react = require("react");
|
|
48
42
|
var import_styled_components = __toESM(require("styled-components"));
|
|
@@ -61,4 +55,3 @@ const Span = import_styled_components.default.span`
|
|
|
61
55
|
const VisuallyHidden = (0, import_react.forwardRef)((props, ref) => /* @__PURE__ */ React.createElement(Span, __spreadValues({
|
|
62
56
|
ref
|
|
63
57
|
}, props)));
|
|
64
|
-
module.exports = __toCommonJS(visually_hidden_exports);
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import ReactDOM from "react-dom";
|
|
2
2
|
import _ from "lodash";
|
|
3
|
-
import ssfGuest from "@elliemae/em-ssf-guest";
|
|
4
3
|
import { getDefaultTheme } from "@elliemae/pui-theme";
|
|
5
4
|
import { getWindow } from "../window.js";
|
|
6
5
|
import { loadAppConfig } from "../app-config/index.js";
|
|
@@ -10,6 +9,7 @@ import { logger } from "./console-logger.js";
|
|
|
10
9
|
import { removeStorageEvents } from "../web-storage.js";
|
|
11
10
|
import { updateBAEventParameters } from "../../analytics/web-analytics.js";
|
|
12
11
|
import { setAppDynamicsUserData } from "../../analytics/appdynamics.js";
|
|
12
|
+
import { SSFGuestAdapter } from "./ssfguest-adapter.js";
|
|
13
13
|
const isCrossDomain = () => {
|
|
14
14
|
try {
|
|
15
15
|
window.parent.document;
|
|
@@ -76,20 +76,16 @@ class CMicroAppGuest {
|
|
|
76
76
|
}
|
|
77
77
|
return value;
|
|
78
78
|
}
|
|
79
|
-
async
|
|
79
|
+
async getSSFAdapter() {
|
|
80
80
|
let host = null;
|
|
81
81
|
if (window.parent !== window) {
|
|
82
82
|
if (!isCrossDomain()) {
|
|
83
83
|
host = window.parent?.emui?.MicroAppHost || null;
|
|
84
|
-
} else
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
host = await Promise.race([
|
|
90
|
-
ssfGuest.getObject(this.props.hostName),
|
|
91
|
-
timeout
|
|
92
|
-
]);
|
|
84
|
+
} else {
|
|
85
|
+
const ssfAdapter = new SSFGuestAdapter();
|
|
86
|
+
if (!await ssfAdapter.init())
|
|
87
|
+
return null;
|
|
88
|
+
host = ssfAdapter;
|
|
93
89
|
}
|
|
94
90
|
}
|
|
95
91
|
return host;
|
|
@@ -98,7 +94,7 @@ class CMicroAppGuest {
|
|
|
98
94
|
this.props = _.merge(this.props, options);
|
|
99
95
|
this.props.history = options?.history || this.props.history;
|
|
100
96
|
if (!this.props.host) {
|
|
101
|
-
const host = await this.
|
|
97
|
+
const host = await this.getSSFAdapter();
|
|
102
98
|
if (host)
|
|
103
99
|
this.props.host = host;
|
|
104
100
|
}
|
|
@@ -33,10 +33,12 @@ class CMicroAppHost {
|
|
|
33
33
|
theme: getDefaultTheme()
|
|
34
34
|
};
|
|
35
35
|
this.activeGuests = {};
|
|
36
|
+
this.domainObjects = {};
|
|
36
37
|
this.getProps = this.getProps.bind(this);
|
|
37
38
|
this.getLogger = this.getLogger.bind(this);
|
|
38
39
|
this.getGuests = this.getGuests.bind(this);
|
|
39
40
|
this.getGuest = this.getGuest.bind(this);
|
|
41
|
+
this.getObject = this.getObject.bind(this);
|
|
40
42
|
this.renewSessionTimer = this.renewSessionTimer.bind(this);
|
|
41
43
|
this.setSystemVersion = this.setSystemVersion.bind(this);
|
|
42
44
|
loadAppConfig(__webpack_public_path__).then(() => {
|
|
@@ -139,6 +141,9 @@ class CMicroAppHost {
|
|
|
139
141
|
sendBAEvent(data) {
|
|
140
142
|
sendBAEvent({ data, self: true });
|
|
141
143
|
}
|
|
144
|
+
getObject(name) {
|
|
145
|
+
return this.domainObjects[name];
|
|
146
|
+
}
|
|
142
147
|
}
|
|
143
148
|
export {
|
|
144
149
|
CMicroAppHost
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import ssfGuest from "@elliemae/em-ssf-guest";
|
|
2
|
+
class SSFGuestAdapter {
|
|
3
|
+
async init() {
|
|
4
|
+
if (!ssfGuest)
|
|
5
|
+
return false;
|
|
6
|
+
await ssfGuest.connect();
|
|
7
|
+
return true;
|
|
8
|
+
}
|
|
9
|
+
async getObject(name) {
|
|
10
|
+
return ssfGuest.getObject(name);
|
|
11
|
+
}
|
|
12
|
+
subscribe(message, func) {
|
|
13
|
+
const callback = (domainObject, eventData) => {
|
|
14
|
+
func(message, eventData);
|
|
15
|
+
};
|
|
16
|
+
const [objectId, eventName] = message.split(".");
|
|
17
|
+
return ssfGuest.subscribe(objectId, eventName || "", callback);
|
|
18
|
+
}
|
|
19
|
+
unsubscribe(token, objectId, eventName) {
|
|
20
|
+
return ssfGuest.unsubscribe(objectId, eventName, token);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
SSFGuestAdapter
|
|
25
|
+
};
|
|
@@ -33,21 +33,11 @@ export declare const createAppStore: (initialState: import("redux").CombinedStat
|
|
|
33
33
|
} | import("redux").AnyAction | {
|
|
34
34
|
payload: import("./breakpoint/index.js").Breakpoints;
|
|
35
35
|
type: string;
|
|
36
|
-
}, import("@reduxjs/toolkit").MiddlewareArray<import("redux-
|
|
36
|
+
}, import("@reduxjs/toolkit").MiddlewareArray<[import("redux-thunk").ThunkMiddleware<import("redux").CombinedState<{
|
|
37
37
|
waitMessage: import("./wait-message/reducer.js").WaitMessageState;
|
|
38
38
|
error: import("./error/index.js").ErrorState;
|
|
39
39
|
breakpoint: import("./breakpoint/index.js").BreakpointState;
|
|
40
40
|
liveMessage: import("./live-message/index.js").LiveMessageState;
|
|
41
|
-
}>, import("redux").AnyAction,
|
|
42
|
-
waitMessage: import("./wait-message/reducer.js").WaitMessageState;
|
|
43
|
-
error: import("./error/index.js").ErrorState;
|
|
44
|
-
breakpoint: import("./breakpoint/index.js").BreakpointState;
|
|
45
|
-
liveMessage: import("./live-message/index.js").LiveMessageState;
|
|
46
|
-
}>, import("redux").AnyAction, undefined> | import("redux").Middleware<{}, import("redux").CombinedState<{
|
|
47
|
-
waitMessage: import("./wait-message/reducer.js").WaitMessageState;
|
|
48
|
-
error: import("./error/index.js").ErrorState;
|
|
49
|
-
breakpoint: import("./breakpoint/index.js").BreakpointState;
|
|
50
|
-
liveMessage: import("./live-message/index.js").LiveMessageState;
|
|
51
|
-
}>, import("redux").Dispatch<import("redux").AnyAction>>>>;
|
|
41
|
+
}>, import("redux").AnyAction, undefined>, import("redux-saga").SagaMiddleware<object>]>>;
|
|
52
42
|
export declare type AppStore = ReturnType<typeof createAppStore>;
|
|
53
43
|
export {};
|
|
@@ -38,7 +38,7 @@ export declare class CMicroAppGuest implements IMicroAppGuest {
|
|
|
38
38
|
getLogger(): MicroFrontEndLogger;
|
|
39
39
|
getProps(): GuestProps;
|
|
40
40
|
private getSessionStorageItem;
|
|
41
|
-
private
|
|
41
|
+
private getSSFAdapter;
|
|
42
42
|
init(this: CMicroAppGuest, options: InitOptions): Promise<void>;
|
|
43
43
|
mount(this: CMicroAppGuest, options?: MountOptions): Promise<void>;
|
|
44
44
|
unmount(this: CMicroAppGuest, options: MountOptions): Promise<JSONValue>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IMicroAppHost, ResizeEventHandler, BreakpointChangeEventHandler, SubscriptionListener, BAEvent } from '@elliemae/pui-micro-frontend-base';
|
|
1
|
+
import { IMicroAppHost, ResizeEventHandler, BreakpointChangeEventHandler, SubscriptionListener, BAEvent, IDomainObject } from '@elliemae/pui-micro-frontend-base';
|
|
2
2
|
import { History, To } from 'history';
|
|
3
3
|
import { DefaultTheme } from 'styled-components';
|
|
4
4
|
import { MicroFrontEndLogger } from './console-logger.js';
|
|
@@ -21,6 +21,7 @@ export declare class CMicroAppHost implements IMicroAppHost {
|
|
|
21
21
|
activeGuests: Record<string, unknown>;
|
|
22
22
|
private readonly onInit?;
|
|
23
23
|
private readonly onRenewSessionTimer?;
|
|
24
|
+
domainObjects: Record<string, IDomainObject>;
|
|
24
25
|
private constructor();
|
|
25
26
|
static getInstance(params?: ConstructorParams): CMicroAppHost;
|
|
26
27
|
static isInitialized(): boolean;
|
|
@@ -50,5 +51,6 @@ export declare class CMicroAppHost implements IMicroAppHost {
|
|
|
50
51
|
onBreakpointChangeEvent(eventHandler: BreakpointChangeEventHandler): string;
|
|
51
52
|
setSystemVersion(version?: string): void;
|
|
52
53
|
sendBAEvent(this: void, data: BAEvent): void;
|
|
54
|
+
getObject<T extends IDomainObject>(name: string): T;
|
|
53
55
|
}
|
|
54
56
|
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SubscriptionListener, IDomainObject } from '@elliemae/pui-micro-frontend-base';
|
|
2
|
+
export declare class SSFGuestAdapter {
|
|
3
|
+
init(): Promise<boolean>;
|
|
4
|
+
getObject<T extends IDomainObject>(name: string): Promise<T>;
|
|
5
|
+
subscribe<T>(message: string, func: SubscriptionListener<T>): string | number;
|
|
6
|
+
unsubscribe(token: string, objectId: string, eventName: string): void;
|
|
7
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { RenderOptions } from '@testing-library/react';
|
|
2
|
-
declare const customRender: (ui: React.ReactElement, options?: Omit<RenderOptions<typeof import("@testing-library/dom/types/queries"), HTMLElement>, "queries"> | undefined) => import("@testing-library/react").RenderResult<typeof import("@testing-library/dom/types/queries"), HTMLElement>;
|
|
2
|
+
declare const customRender: (ui: React.ReactElement, options?: Omit<RenderOptions<typeof import("@testing-library/dom/types/queries"), HTMLElement, HTMLElement>, "queries"> | undefined) => import("@testing-library/react").RenderResult<typeof import("@testing-library/dom/types/queries"), HTMLElement, HTMLElement>;
|
|
3
3
|
export * from '@testing-library/react';
|
|
4
4
|
export { customRender as render };
|
|
@@ -16,24 +16,14 @@ export declare const renderWithRedux: (ui: React.ReactElement, { initialState, s
|
|
|
16
16
|
} | import("redux").AnyAction | {
|
|
17
17
|
payload: import("../../data/breakpoint/index.js").Breakpoints;
|
|
18
18
|
type: string;
|
|
19
|
-
}, import("@reduxjs/toolkit").MiddlewareArray<import("redux-
|
|
19
|
+
}, import("@reduxjs/toolkit").MiddlewareArray<[import("redux-thunk").ThunkMiddleware<import("redux").CombinedState<{
|
|
20
20
|
waitMessage: import("../../data/wait-message/reducer.js").WaitMessageState;
|
|
21
21
|
error: import("../../data/error/index.js").ErrorState;
|
|
22
22
|
breakpoint: import("../../data/breakpoint/index.js").BreakpointState;
|
|
23
23
|
liveMessage: import("../../data/live-message/index.js").LiveMessageState;
|
|
24
|
-
}>, import("redux").AnyAction,
|
|
25
|
-
waitMessage: import("../../data/wait-message/reducer.js").WaitMessageState;
|
|
26
|
-
error: import("../../data/error/index.js").ErrorState;
|
|
27
|
-
breakpoint: import("../../data/breakpoint/index.js").BreakpointState;
|
|
28
|
-
liveMessage: import("../../data/live-message/index.js").LiveMessageState;
|
|
29
|
-
}>, import("redux").AnyAction, undefined> | import("redux").Middleware<{}, import("redux").CombinedState<{
|
|
30
|
-
waitMessage: import("../../data/wait-message/reducer.js").WaitMessageState;
|
|
31
|
-
error: import("../../data/error/index.js").ErrorState;
|
|
32
|
-
breakpoint: import("../../data/breakpoint/index.js").BreakpointState;
|
|
33
|
-
liveMessage: import("../../data/live-message/index.js").LiveMessageState;
|
|
34
|
-
}>, import("redux").Dispatch<import("redux").AnyAction>>>>;
|
|
24
|
+
}>, import("redux").AnyAction, undefined>, import("redux-saga").SagaMiddleware<object>]>>;
|
|
35
25
|
container: HTMLElement;
|
|
36
|
-
baseElement:
|
|
26
|
+
baseElement: HTMLElement;
|
|
37
27
|
debug: (baseElement?: Element | DocumentFragment | (Element | DocumentFragment)[] | undefined, maxLength?: number | undefined, options?: import("pretty-format").PrettyFormatOptions | undefined) => void;
|
|
38
28
|
rerender: (ui: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) => void;
|
|
39
29
|
unmount: () => void;
|
|
@@ -19,24 +19,14 @@ export declare const renderWithRouterRedux: (ui: React.ReactElement, { route, hi
|
|
|
19
19
|
} | import("redux").AnyAction | {
|
|
20
20
|
payload: import("../../data/breakpoint/index.js").Breakpoints;
|
|
21
21
|
type: string;
|
|
22
|
-
}, import("@reduxjs/toolkit").MiddlewareArray<import("redux-
|
|
22
|
+
}, import("@reduxjs/toolkit").MiddlewareArray<[import("redux-thunk").ThunkMiddleware<import("redux").CombinedState<{
|
|
23
23
|
waitMessage: import("../../data/wait-message/reducer.js").WaitMessageState;
|
|
24
24
|
error: import("../../data/error/index.js").ErrorState;
|
|
25
25
|
breakpoint: import("../../data/breakpoint/index.js").BreakpointState;
|
|
26
26
|
liveMessage: import("../../data/live-message/index.js").LiveMessageState;
|
|
27
|
-
}>, import("redux").AnyAction,
|
|
28
|
-
waitMessage: import("../../data/wait-message/reducer.js").WaitMessageState;
|
|
29
|
-
error: import("../../data/error/index.js").ErrorState;
|
|
30
|
-
breakpoint: import("../../data/breakpoint/index.js").BreakpointState;
|
|
31
|
-
liveMessage: import("../../data/live-message/index.js").LiveMessageState;
|
|
32
|
-
}>, import("redux").AnyAction, undefined> | import("redux").Middleware<{}, import("redux").CombinedState<{
|
|
33
|
-
waitMessage: import("../../data/wait-message/reducer.js").WaitMessageState;
|
|
34
|
-
error: import("../../data/error/index.js").ErrorState;
|
|
35
|
-
breakpoint: import("../../data/breakpoint/index.js").BreakpointState;
|
|
36
|
-
liveMessage: import("../../data/live-message/index.js").LiveMessageState;
|
|
37
|
-
}>, import("redux").Dispatch<import("redux").AnyAction>>>>;
|
|
27
|
+
}>, import("redux").AnyAction, undefined>, import("redux-saga").SagaMiddleware<object>]>>;
|
|
38
28
|
container: HTMLElement;
|
|
39
|
-
baseElement:
|
|
29
|
+
baseElement: HTMLElement;
|
|
40
30
|
debug: (baseElement?: Element | DocumentFragment | (Element | DocumentFragment)[] | undefined, maxLength?: number | undefined, options?: import("pretty-format").PrettyFormatOptions | undefined) => void;
|
|
41
31
|
rerender: (ui: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) => void;
|
|
42
32
|
unmount: () => void;
|
|
@@ -7,7 +7,7 @@ interface Args {
|
|
|
7
7
|
export declare const renderWithRouter: (ui: React.ReactElement, { route, history, }?: Args) => {
|
|
8
8
|
history: History;
|
|
9
9
|
container: HTMLElement;
|
|
10
|
-
baseElement:
|
|
10
|
+
baseElement: HTMLElement;
|
|
11
11
|
debug: (baseElement?: Element | DocumentFragment | (Element | DocumentFragment)[] | undefined, maxLength?: number | undefined, options?: import("pretty-format").PrettyFormatOptions | undefined) => void;
|
|
12
12
|
rerender: (ui: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) => void;
|
|
13
13
|
unmount: () => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/pui-app-sdk",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.8.0",
|
|
4
4
|
"description": "ICE MT UI Platform Application SDK ",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"*.css",
|
|
@@ -103,48 +103,48 @@
|
|
|
103
103
|
"indent": 4
|
|
104
104
|
},
|
|
105
105
|
"peerDependencies": {
|
|
106
|
-
"@elliemae/app-react-dependencies": "^3.
|
|
107
|
-
"@elliemae/ds-basic": "^
|
|
108
|
-
"@elliemae/ds-button": "^
|
|
109
|
-
"@elliemae/ds-controlled-form": "^
|
|
110
|
-
"@elliemae/ds-date-picker": "^
|
|
111
|
-
"@elliemae/ds-date-range-picker": "^
|
|
112
|
-
"@elliemae/ds-dialog": "^
|
|
113
|
-
"@elliemae/ds-form": "^
|
|
114
|
-
"@elliemae/ds-form-layout-blocks": "^
|
|
115
|
-
"@elliemae/ds-grid": "^
|
|
116
|
-
"@elliemae/ds-loading-indicator": "^
|
|
117
|
-
"@elliemae/ds-modal": "^
|
|
118
|
-
"@elliemae/ds-popperjs": "^
|
|
119
|
-
"@elliemae/ds-toast": "^
|
|
106
|
+
"@elliemae/app-react-dependencies": "^3.6.0",
|
|
107
|
+
"@elliemae/ds-basic": "^3.0.3",
|
|
108
|
+
"@elliemae/ds-button": "^3.0.3",
|
|
109
|
+
"@elliemae/ds-controlled-form": "^3.0.3",
|
|
110
|
+
"@elliemae/ds-date-picker": "^3.0.3",
|
|
111
|
+
"@elliemae/ds-date-range-picker": "^3.0.3",
|
|
112
|
+
"@elliemae/ds-dialog": "^3.0.3",
|
|
113
|
+
"@elliemae/ds-form": "^3.0.3",
|
|
114
|
+
"@elliemae/ds-form-layout-blocks": "^3.0.3",
|
|
115
|
+
"@elliemae/ds-grid": "^3.0.3",
|
|
116
|
+
"@elliemae/ds-loading-indicator": "^3.0.3",
|
|
117
|
+
"@elliemae/ds-modal": "^3.0.3",
|
|
118
|
+
"@elliemae/ds-popperjs": "^3.0.3",
|
|
119
|
+
"@elliemae/ds-toast": "^3.0.3",
|
|
120
120
|
"@elliemae/em-ssf-guest": "^1.11.1",
|
|
121
121
|
"@elliemae/pui-diagnostics": "^2.7.3",
|
|
122
|
-
"@elliemae/pui-micro-frontend-base": "^1.
|
|
123
|
-
"@elliemae/pui-theme": "^2.
|
|
124
|
-
"@elliemae/pui-user-monitoring": "^1.
|
|
122
|
+
"@elliemae/pui-micro-frontend-base": "^1.11.2",
|
|
123
|
+
"@elliemae/pui-theme": "^2.5.0",
|
|
124
|
+
"@elliemae/pui-user-monitoring": "^1.15.0"
|
|
125
125
|
},
|
|
126
126
|
"devDependencies": {
|
|
127
|
-
"@elliemae/app-react-dependencies": "~3.
|
|
128
|
-
"@elliemae/browserslist-config-elliemae-latest-browsers": "~1.
|
|
129
|
-
"@elliemae/ds-basic": "
|
|
130
|
-
"@elliemae/ds-button": "
|
|
131
|
-
"@elliemae/ds-controlled-form": "
|
|
132
|
-
"@elliemae/ds-date-picker": "
|
|
133
|
-
"@elliemae/ds-date-range-picker": "
|
|
134
|
-
"@elliemae/ds-dialog": "
|
|
135
|
-
"@elliemae/ds-form": "
|
|
136
|
-
"@elliemae/ds-form-layout-blocks": "
|
|
137
|
-
"@elliemae/ds-grid": "
|
|
138
|
-
"@elliemae/ds-loading-indicator": "
|
|
139
|
-
"@elliemae/ds-modal": "
|
|
140
|
-
"@elliemae/ds-popperjs": "
|
|
141
|
-
"@elliemae/ds-toast": "
|
|
127
|
+
"@elliemae/app-react-dependencies": "~3.6.0",
|
|
128
|
+
"@elliemae/browserslist-config-elliemae-latest-browsers": "~1.4.2",
|
|
129
|
+
"@elliemae/ds-basic": "~3.0.3",
|
|
130
|
+
"@elliemae/ds-button": "~3.0.3",
|
|
131
|
+
"@elliemae/ds-controlled-form": "~3.0.3",
|
|
132
|
+
"@elliemae/ds-date-picker": "~3.0.3",
|
|
133
|
+
"@elliemae/ds-date-range-picker": "~3.0.3",
|
|
134
|
+
"@elliemae/ds-dialog": "~3.0.3",
|
|
135
|
+
"@elliemae/ds-form": "~3.0.3",
|
|
136
|
+
"@elliemae/ds-form-layout-blocks": "~3.0.3",
|
|
137
|
+
"@elliemae/ds-grid": "~3.0.3",
|
|
138
|
+
"@elliemae/ds-loading-indicator": "~3.0.3",
|
|
139
|
+
"@elliemae/ds-modal": "~3.0.3",
|
|
140
|
+
"@elliemae/ds-popperjs": "~3.0.3",
|
|
141
|
+
"@elliemae/ds-toast": "~3.0.3",
|
|
142
142
|
"@elliemae/em-ssf-guest": "~1.11.1",
|
|
143
|
-
"@elliemae/pui-cli": "~6.
|
|
143
|
+
"@elliemae/pui-cli": "~6.15.2",
|
|
144
144
|
"@elliemae/pui-diagnostics": "~2.7.3",
|
|
145
|
-
"@elliemae/pui-e2e-test-sdk": "~7.
|
|
146
|
-
"@elliemae/pui-micro-frontend-base": "~1.
|
|
147
|
-
"@elliemae/pui-theme": "2.
|
|
148
|
-
"@elliemae/pui-user-monitoring": "~1.
|
|
145
|
+
"@elliemae/pui-e2e-test-sdk": "~7.3.3",
|
|
146
|
+
"@elliemae/pui-micro-frontend-base": "~1.11.2",
|
|
147
|
+
"@elliemae/pui-theme": "2.5.0",
|
|
148
|
+
"@elliemae/pui-user-monitoring": "~1.15.0"
|
|
149
149
|
}
|
|
150
150
|
}
|