@elliemae/pui-app-sdk 3.15.0 → 4.0.0-alpha.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/appdynamics.js +4 -1
- package/dist/cjs/api/auth/index.js +8 -2
- package/dist/cjs/api/helpers.js +7 -1
- package/dist/cjs/api/users/index.js +3 -1
- package/dist/cjs/app.config.json +42 -25
- package/dist/cjs/communication/http-client/index.js +4 -1
- package/dist/cjs/communication/http-client/response-interceptor.js +4 -1
- package/dist/cjs/communication/http-client/retry-axios.js +4 -1
- package/dist/cjs/data/auth/reducer.js +14 -8
- package/dist/cjs/data/breakpoint/index.js +4 -1
- package/dist/cjs/data/index.js +1 -0
- package/dist/cjs/data/store.js +10 -2
- package/dist/cjs/data/wait-message/reducer.js +4 -1
- package/dist/cjs/index.js +5 -1
- package/dist/cjs/sideeffect/error-toast/index.js +3 -1
- package/dist/cjs/sideeffect/wait-message/index.js +6 -2
- package/dist/cjs/utils/app-config/config.js +6 -2
- package/dist/cjs/utils/app-config/index.js +12 -4
- package/dist/cjs/utils/auth/helper.js +4 -1
- package/dist/cjs/utils/auth/index.js +3 -1
- package/dist/cjs/utils/micro-frontend/guest.js +8 -7
- package/dist/cjs/utils/micro-frontend/host.js +9 -3
- package/dist/cjs/utils/micro-frontend/index.js +27 -10
- package/dist/cjs/utils/micro-frontend/ssfguest-adapter.js +9 -2
- package/dist/cjs/utils/redact-pii.js +8 -2
- package/dist/cjs/utils/session.js +14 -4
- package/dist/cjs/utils/storybook/cjs/webpack.js +1 -4
- package/dist/cjs/utils/storybook/preview.js +1 -1
- package/dist/cjs/utils/testing/index.js +5 -7
- package/dist/cjs/utils/testing/render-with-redux.js +5 -7
- package/dist/cjs/utils/testing/render-with-router-redux.js +10 -9
- package/dist/cjs/utils/testing/render-with-router.js +5 -7
- package/dist/cjs/utils/testing/render-with-state-addons.js +7 -9
- package/dist/cjs/utils/web-storage.js +4 -1
- package/dist/cjs/utils/window.js +10 -2
- package/dist/cjs/view/app-root/hosted-app.js +13 -3
- package/dist/cjs/view/app-root/index.js +24 -19
- package/dist/cjs/view/app-root/stand-alone-app.js +17 -3
- package/dist/cjs/view/app-router.js +2 -5
- package/dist/cjs/view/breakpoint/use-breakpoint.js +9 -5
- package/dist/cjs/view/breakpoint/use-media-query-list.js +3 -1
- package/dist/cjs/view/error-boundary/default-error-template.js +14 -5
- package/dist/cjs/view/error-boundary/index.js +6 -2
- package/dist/cjs/view/error-toast/index.js +2 -5
- package/dist/cjs/view/fetch-host-app-data/index.js +4 -1
- package/dist/cjs/view/fields/autocomplete/index.js +9 -9
- package/dist/cjs/view/fields/check-box/index.js +3 -6
- package/dist/cjs/view/fields/combo-box/index.js +3 -6
- package/dist/cjs/view/fields/combo-box-v3/index.js +3 -6
- package/dist/cjs/view/fields/date-input/index.js +3 -6
- package/dist/cjs/view/fields/date-picker/index.js +7 -4
- package/dist/cjs/view/fields/date-range-picker/index.js +10 -9
- package/dist/cjs/view/fields/date-time-picker/index.js +3 -6
- package/dist/cjs/view/fields/form-item-layout/index.js +15 -16
- package/dist/cjs/view/fields/form-layout-block-item/index.js +16 -17
- package/dist/cjs/view/fields/input-mask/index.js +3 -6
- package/dist/cjs/view/fields/input-text/index.js +3 -6
- package/dist/cjs/view/fields/large-text-box/index.js +3 -6
- package/dist/cjs/view/fields/radio/index.js +3 -6
- package/dist/cjs/view/fields/radio-group/index.js +3 -6
- package/dist/cjs/view/fields/text-box/index.js +3 -6
- package/dist/cjs/view/fields/toggle/index.js +3 -6
- package/dist/cjs/view/fields/watch-value.js +25 -3
- package/dist/cjs/view/form/index.js +13 -8
- package/dist/cjs/view/form/personal-info-section.js +54 -47
- package/dist/cjs/view/form/submit-button/index.js +2 -5
- package/dist/cjs/view/live-message/index.js +2 -5
- package/dist/cjs/view/loadable/index.js +8 -10
- package/dist/cjs/view/login/index.js +4 -5
- package/dist/cjs/view/micro-app/app-factory/index.js +9 -3
- package/dist/cjs/view/micro-app/index.js +6 -3
- package/dist/cjs/view/micro-app/resources/manifest.js +10 -3
- package/dist/cjs/view/micro-app/resources/script.js +24 -15
- package/dist/cjs/view/micro-app/resources/style.js +20 -11
- package/dist/cjs/view/micro-app/use-app-will-render.js +37 -28
- package/dist/cjs/view/micro-iframe-app/app.js +24 -19
- package/dist/cjs/view/micro-iframe-app/iframe/index.js +22 -15
- package/dist/cjs/view/micro-iframe-app/index.js +2 -5
- package/dist/cjs/view/modals/error/index.js +21 -12
- package/dist/cjs/view/modals/navigation-prompt/index.js +46 -27
- package/dist/cjs/view/modals/session-expiry/customHooks.js +6 -2
- package/dist/cjs/view/modals/session-expiry/index.js +57 -35
- package/dist/cjs/view/modals/wait-message/index.js +26 -27
- package/dist/cjs/view/page.js +15 -3
- package/dist/cjs/view/render-with-delay/index.js +4 -5
- package/dist/cjs/view/render-with-host-data/index.js +2 -5
- package/dist/cjs/view/require-auth.js +22 -10
- package/dist/cjs/view/session-timeout/index.js +15 -14
- package/dist/cjs/view/storybook/decorator.js +5 -7
- package/dist/cjs/view/visually-hidden/index.js +11 -6
- package/dist/esm/api/auth/index.js +8 -2
- package/dist/esm/api/helpers.js +7 -1
- package/dist/esm/api/users/index.js +3 -1
- package/dist/esm/app.config.json +42 -25
- package/dist/esm/data/auth/reducer.js +10 -7
- package/dist/esm/data/index.js +6 -1
- package/dist/esm/data/store.js +6 -1
- package/dist/esm/index.js +6 -1
- package/dist/esm/sideeffect/error-toast/index.js +3 -1
- package/dist/esm/sideeffect/wait-message/index.js +6 -2
- package/dist/esm/utils/app-config/config.js +2 -1
- package/dist/esm/utils/app-config/index.js +8 -3
- package/dist/esm/utils/auth/index.js +3 -1
- package/dist/esm/utils/micro-frontend/guest.js +4 -6
- package/dist/esm/utils/micro-frontend/host.js +9 -3
- package/dist/esm/utils/micro-frontend/index.js +23 -9
- package/dist/esm/utils/micro-frontend/ssfguest-adapter.js +5 -1
- package/dist/esm/utils/redact-pii.js +8 -2
- package/dist/esm/utils/session.js +14 -4
- package/dist/esm/utils/storybook/preview.js +1 -1
- package/dist/esm/utils/testing/index.js +5 -4
- package/dist/esm/utils/testing/render-with-redux.js +5 -4
- package/dist/esm/utils/testing/render-with-router-redux.js +10 -6
- package/dist/esm/utils/testing/render-with-router.js +5 -4
- package/dist/esm/utils/testing/render-with-state-addons.js +7 -6
- package/dist/esm/utils/window.js +10 -2
- package/dist/esm/view/app-root/hosted-app.js +9 -2
- package/dist/esm/view/app-root/index.js +24 -16
- package/dist/esm/view/app-root/stand-alone-app.js +13 -2
- package/dist/esm/view/app-router.js +2 -2
- package/dist/esm/view/breakpoint/use-breakpoint.js +9 -5
- package/dist/esm/view/breakpoint/use-media-query-list.js +3 -1
- package/dist/esm/view/error-boundary/default-error-template.js +14 -2
- package/dist/esm/view/error-boundary/index.js +2 -1
- package/dist/esm/view/error-toast/index.js +2 -2
- package/dist/esm/view/fields/autocomplete/index.js +9 -6
- package/dist/esm/view/fields/check-box/index.js +3 -3
- package/dist/esm/view/fields/combo-box/index.js +3 -3
- package/dist/esm/view/fields/combo-box-v3/index.js +3 -3
- package/dist/esm/view/fields/date-input/index.js +3 -3
- package/dist/esm/view/fields/date-picker/index.js +3 -3
- package/dist/esm/view/fields/date-range-picker/index.js +10 -6
- package/dist/esm/view/fields/date-time-picker/index.js +3 -3
- package/dist/esm/view/fields/form-item-layout/index.js +15 -13
- package/dist/esm/view/fields/form-layout-block-item/index.js +16 -14
- package/dist/esm/view/fields/input-mask/index.js +3 -3
- package/dist/esm/view/fields/input-text/index.js +3 -3
- package/dist/esm/view/fields/large-text-box/index.js +3 -3
- package/dist/esm/view/fields/radio/index.js +3 -3
- package/dist/esm/view/fields/radio-group/index.js +3 -3
- package/dist/esm/view/fields/text-box/index.js +3 -3
- package/dist/esm/view/fields/toggle/index.js +3 -3
- package/dist/esm/view/fields/watch-value.js +21 -2
- package/dist/esm/view/form/index.js +9 -7
- package/dist/esm/view/form/personal-info-section.js +50 -46
- package/dist/esm/view/form/submit-button/index.js +2 -2
- package/dist/esm/view/live-message/index.js +2 -2
- package/dist/esm/view/loadable/index.js +8 -7
- package/dist/esm/view/login/index.js +4 -2
- package/dist/esm/view/micro-app/app-factory/index.js +9 -3
- package/dist/esm/view/micro-app/index.js +2 -2
- package/dist/esm/view/micro-app/resources/manifest.js +10 -3
- package/dist/esm/view/micro-app/resources/script.js +24 -15
- package/dist/esm/view/micro-app/resources/style.js +20 -11
- package/dist/esm/view/micro-app/use-app-will-render.js +37 -28
- package/dist/esm/view/micro-iframe-app/app.js +20 -18
- package/dist/esm/view/micro-iframe-app/iframe/index.js +18 -14
- package/dist/esm/view/micro-iframe-app/index.js +2 -2
- package/dist/esm/view/modals/error/index.js +21 -9
- package/dist/esm/view/modals/navigation-prompt/index.js +46 -24
- package/dist/esm/view/modals/session-expiry/customHooks.js +6 -2
- package/dist/esm/view/modals/session-expiry/index.js +57 -32
- package/dist/esm/view/modals/wait-message/index.js +26 -24
- package/dist/esm/view/page.js +11 -2
- package/dist/esm/view/render-with-delay/index.js +4 -2
- package/dist/esm/view/render-with-host-data/index.js +2 -2
- package/dist/esm/view/require-auth.js +19 -10
- package/dist/esm/view/session-timeout/index.js +15 -11
- package/dist/esm/view/storybook/decorator.js +5 -4
- package/dist/esm/view/visually-hidden/index.js +7 -5
- package/dist/types/lib/data/index.d.ts +1 -1
- package/dist/types/lib/index.d.ts +2 -2
- package/dist/types/lib/utils/app-config/config.d.ts +5 -7
- package/dist/types/lib/utils/app-config/index.d.ts +1 -1
- package/dist/types/lib/utils/micro-frontend/host.d.ts +1 -1
- package/dist/types/lib/utils/window.d.ts +3 -0
- package/dist/types/lib/view/error-boundary/default-error-template.d.ts +1 -1
- package/dist/types/lib/view/error-boundary/index.d.ts +2 -1
- package/dist/types/lib/view/fields/form-item-layout/index.d.ts +1 -1
- package/dist/types/lib/view/micro-app/resources/script.d.ts +1 -1
- package/dist/types/lib/view/micro-app/resources/style.d.ts +2 -2
- package/package.json +45 -42
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useEffect } from "react";
|
|
3
3
|
import { fetchHostAppData } from "../fetch-host-app-data/index.js";
|
|
4
4
|
import { WaitMessageLauncher } from "../modals/wait-message/wait-message-launcher.js";
|
|
@@ -20,7 +20,7 @@ const renderWithHostData = (data) => {
|
|
|
20
20
|
setLoading(false);
|
|
21
21
|
}
|
|
22
22
|
}, []);
|
|
23
|
-
return loading ? /* @__PURE__ */
|
|
23
|
+
return loading ? /* @__PURE__ */ jsx(WaitMessageLauncher, {}) : /* @__PURE__ */ jsx(ComponentToRender, {});
|
|
24
24
|
};
|
|
25
25
|
return HostAppDataWrapper;
|
|
26
26
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import { Fragment, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { createManager } from "redux-injectors";
|
|
3
3
|
import enums from "../utils/constants.js";
|
|
4
4
|
import { authReducer } from "../data/auth/reducer.js";
|
|
5
5
|
import { authentication } from "../sideeffect/auth/index.js";
|
|
@@ -12,17 +12,26 @@ const RequireAuth = ({
|
|
|
12
12
|
scope = "loc",
|
|
13
13
|
responseType = "code"
|
|
14
14
|
}) => {
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
const AuthManager = createManager({
|
|
16
|
+
name: "AuthManager",
|
|
17
|
+
key,
|
|
18
|
+
reducer: authReducer,
|
|
19
|
+
saga: authentication
|
|
20
|
+
});
|
|
17
21
|
const userAuthorized = isUserAuthorized();
|
|
18
22
|
if (userAuthorized) {
|
|
19
|
-
return /* @__PURE__ */
|
|
23
|
+
return /* @__PURE__ */ jsx(Fragment, {
|
|
24
|
+
children
|
|
25
|
+
});
|
|
20
26
|
}
|
|
21
|
-
return /* @__PURE__ */
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
27
|
+
return /* @__PURE__ */ jsx(AuthManager, {
|
|
28
|
+
children: /* @__PURE__ */ jsx(Login, {
|
|
29
|
+
clientId,
|
|
30
|
+
scope,
|
|
31
|
+
responseType,
|
|
32
|
+
children
|
|
33
|
+
})
|
|
34
|
+
});
|
|
26
35
|
};
|
|
27
36
|
export {
|
|
28
37
|
RequireAuth
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect, useState } from "react";
|
|
3
3
|
import { useAppDispatch } from "../../data/react-redux.js";
|
|
4
4
|
import { logout } from "../../data/logout/actions.js";
|
|
@@ -16,12 +16,14 @@ const SessionTimeout = () => {
|
|
|
16
16
|
const [warningNotifiedAt, setwarningNotifiedAt] = useState();
|
|
17
17
|
useEffect(() => {
|
|
18
18
|
initSessionMonitoring();
|
|
19
|
-
const warningCb = subscribeToSessionExpiryWarning(
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
19
|
+
const warningCb = subscribeToSessionExpiryWarning(
|
|
20
|
+
(sessionExpiryWarningNotifiedAt) => {
|
|
21
|
+
if (!sessionExpiryWarningNotifiedAt)
|
|
22
|
+
return;
|
|
23
|
+
setwarningNotifiedAt(sessionExpiryWarningNotifiedAt);
|
|
24
|
+
setSessionExpiryWarning(true);
|
|
25
|
+
}
|
|
26
|
+
);
|
|
25
27
|
const resetCb = subscribeToResetSession((resetWarningModal) => {
|
|
26
28
|
if (resetWarningModal === true) {
|
|
27
29
|
setSessionExpiryWarning(false);
|
|
@@ -38,10 +40,12 @@ const SessionTimeout = () => {
|
|
|
38
40
|
stopSessionMonitoring();
|
|
39
41
|
};
|
|
40
42
|
}, [dispatch]);
|
|
41
|
-
return /* @__PURE__ */
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
return /* @__PURE__ */ jsx("div", {
|
|
44
|
+
children: showSessionExpiryWarning && /* @__PURE__ */ jsx(SessionExpiry, {
|
|
45
|
+
open: true,
|
|
46
|
+
warningNotifiedAt
|
|
47
|
+
})
|
|
48
|
+
});
|
|
45
49
|
};
|
|
46
50
|
export {
|
|
47
51
|
SessionTimeout
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { browserHistory } from "../../utils/history.js";
|
|
3
3
|
import { AppRoot } from "../app-root/index.js";
|
|
4
|
-
const withAppDecorator = (theme, store, story) => /* @__PURE__ */
|
|
4
|
+
const withAppDecorator = (theme, store, story) => /* @__PURE__ */ jsx(AppRoot, {
|
|
5
5
|
store,
|
|
6
6
|
history: browserHistory,
|
|
7
|
-
theme
|
|
8
|
-
|
|
7
|
+
theme,
|
|
8
|
+
children: story()
|
|
9
|
+
});
|
|
9
10
|
export {
|
|
10
11
|
withAppDecorator
|
|
11
12
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
3
|
import styled from "styled-components";
|
|
4
4
|
const Span = styled.span`
|
|
@@ -13,10 +13,12 @@ const Span = styled.span`
|
|
|
13
13
|
white-space: nowrap;
|
|
14
14
|
word-wrap: normal;
|
|
15
15
|
`;
|
|
16
|
-
const VisuallyHidden = forwardRef(
|
|
17
|
-
ref,
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
const VisuallyHidden = forwardRef(
|
|
17
|
+
(props, ref) => /* @__PURE__ */ jsx(Span, {
|
|
18
|
+
ref,
|
|
19
|
+
...props
|
|
20
|
+
})
|
|
21
|
+
);
|
|
20
22
|
export {
|
|
21
23
|
VisuallyHidden
|
|
22
24
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { useInjectReducer, useInjectSaga } from 'redux-injectors';
|
|
1
|
+
export { useInjectReducer, useInjectSaga, createManager, } from 'redux-injectors';
|
|
2
2
|
export { useAppDispatch, useAppSelector } from './react-redux.js';
|
|
3
3
|
export { createAppStore as configureStore, getStore } from './store.js';
|
|
4
4
|
export type { RootState, AppStore } from './store.js';
|
|
@@ -6,7 +6,7 @@ export { RequireAuth } from './view/require-auth.js';
|
|
|
6
6
|
export { Page } from './view/page.js';
|
|
7
7
|
export { default as globalConstants } from './utils/constants.js';
|
|
8
8
|
export { useAppDispatch, useAppSelector } from './data/react-redux.js';
|
|
9
|
-
export { useInjectReducer, useInjectSaga } from 'redux-injectors';
|
|
9
|
+
export { useInjectReducer, useInjectSaga, createManager, } from 'redux-injectors';
|
|
10
10
|
export { getAuthorizationHeader } from './utils/auth/helper.js';
|
|
11
11
|
export { getRedirectUrl, removeDoubleSlash } from './utils/url.js';
|
|
12
12
|
export { createAppStore as configureStore } from './data/store.js';
|
|
@@ -78,5 +78,5 @@ export type { EMUI } from './utils/window.js';
|
|
|
78
78
|
export type { Await } from './utils/await.js';
|
|
79
79
|
export type { RootState, AppStore } from './data/store.js';
|
|
80
80
|
export type { AppConfig } from './utils/app-config/config.js';
|
|
81
|
-
export type { OnInitCallback, OnMountCallback, } from './utils/micro-frontend/guest.js';
|
|
81
|
+
export type { OnInitCallback, OnMountCallback, OnUnMountCallback, } from './utils/micro-frontend/guest.js';
|
|
82
82
|
export type { OnInitCallback as OnHostInitCallback } from './utils/micro-frontend/host.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
interface ServiceEndpoints {
|
|
2
|
-
api
|
|
3
|
-
idp
|
|
2
|
+
api?: string;
|
|
3
|
+
idp?: string;
|
|
4
4
|
logger: string;
|
|
5
5
|
}
|
|
6
6
|
interface Env {
|
|
@@ -8,13 +8,11 @@ interface Env {
|
|
|
8
8
|
}
|
|
9
9
|
export interface AppConfig {
|
|
10
10
|
appId: string;
|
|
11
|
-
brand
|
|
11
|
+
brand?: string;
|
|
12
12
|
activeEnv: string;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
sessionTimeoutInterval: string;
|
|
13
|
+
sessionTimeoutWarnInterval?: string;
|
|
14
|
+
sessionTimeoutInterval?: string;
|
|
16
15
|
serviceEndpoints: ServiceEndpoints;
|
|
17
|
-
walkMeUrl: string;
|
|
18
16
|
env: {
|
|
19
17
|
[key: string]: Env;
|
|
20
18
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const loadAppConfig: (
|
|
1
|
+
export declare const loadAppConfig: (assetPath?: string) => Promise<void>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IMicroAppHost, ResizeEventHandler, BreakpointChangeEventHandler, SubscriptionListener, BAEvent } from '@elliemae/pui-micro-frontend-base';
|
|
2
1
|
import { History, To } from 'history';
|
|
3
2
|
import { DefaultTheme } from 'styled-components';
|
|
3
|
+
import { IMicroAppHost, ResizeEventHandler, BreakpointChangeEventHandler, SubscriptionListener, BAEvent } from '@elliemae/pui-micro-frontend-base';
|
|
4
4
|
import { MicroFrontEndLogger } from './console-logger.js';
|
|
5
5
|
declare type HostOptions = {
|
|
6
6
|
systemVersion: string;
|
|
@@ -4,6 +4,8 @@ import { Logger } from '@elliemae/pui-diagnostics';
|
|
|
4
4
|
export declare type EMUI = {
|
|
5
5
|
[key: string]: IMicroAppGuest;
|
|
6
6
|
} & {
|
|
7
|
+
_BASE_PATH: string;
|
|
8
|
+
_ASSET_PATH: string;
|
|
7
9
|
version: string;
|
|
8
10
|
MicroAppHost?: IMicroAppHost;
|
|
9
11
|
logger?: Logger;
|
|
@@ -21,3 +23,4 @@ export declare const getViewportSize: () => {
|
|
|
21
23
|
height: number;
|
|
22
24
|
};
|
|
23
25
|
export declare const getCurrentBreakpoint: () => BreakPoint;
|
|
26
|
+
export declare const getAssetPath: () => string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
interface ErrorBoundaryProps {
|
|
3
|
+
children?: React.ReactNode;
|
|
3
4
|
errorTemplate?: React.ComponentType;
|
|
4
5
|
}
|
|
5
6
|
export declare class ErrorBoundary extends React.Component<ErrorBoundaryProps> {
|
|
@@ -7,6 +8,6 @@ export declare class ErrorBoundary extends React.Component<ErrorBoundaryProps> {
|
|
|
7
8
|
componentDidCatch(error: Error, errorInfo: {
|
|
8
9
|
componentStack: string;
|
|
9
10
|
}): void;
|
|
10
|
-
render(): React.
|
|
11
|
+
render(): string | number | boolean | React.ReactFragment | JSX.Element | null | undefined;
|
|
11
12
|
}
|
|
12
13
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MicroAppConfig } from '../../../utils/micro-frontend/types.js';
|
|
2
2
|
export declare const APP_SCRIPT_ID_PREFIX = "emui-script-";
|
|
3
|
-
export declare const addScriptToDOM: ({ name, hostUrl, documentEle }: MicroAppConfig, fileName: string, index: number) => Promise<string>;
|
|
3
|
+
export declare const addScriptToDOM: ({ name, hostUrl, documentEle, manifestPath }: MicroAppConfig, fileName: string, index: number) => Promise<string>;
|
|
4
4
|
export declare const removeScriptFromDOM: (elementId?: string, documentEle?: Document) => Promise<void>;
|
|
5
5
|
export declare const removeDynamicImportedScripts: (hostUrl: string, documentEle: HTMLDocument) => void;
|
|
6
6
|
export declare const removePrefetchLinks: (hostUrl: string, documentEle: HTMLDocument) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MicroAppConfig } from '../../../utils/micro-frontend/types.js';
|
|
2
2
|
export declare const APP_STYLE_ID_PREFIX = "emui-style-";
|
|
3
|
-
export declare const addStylesToDOM: ({ name, hostUrl, documentEle }: MicroAppConfig, fileName: string, index: number) => Promise<string>;
|
|
3
|
+
export declare const addStylesToDOM: ({ name, hostUrl, documentEle, manifestPath }: MicroAppConfig, fileName: string, index: number) => Promise<string>;
|
|
4
4
|
export declare const removeStyleFromDOM: (elementId?: string, documentEle?: Document) => Promise<void>;
|
|
5
|
-
export declare const removeDynamicImportedStyles: (hostUrl: string, documentEle:
|
|
5
|
+
export declare const removeDynamicImportedStyles: (hostUrl: string, documentEle: Document) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/pui-app-sdk",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0-alpha.10",
|
|
4
4
|
"description": "ICE MT UI Platform Application SDK ",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"*.css",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"types": "./dist/types/lib/index.d.ts",
|
|
12
12
|
"exports": {
|
|
13
13
|
".": {
|
|
14
|
-
"types": "./dist/types/index.d.ts",
|
|
14
|
+
"types": "./dist/types/lib/index.d.ts",
|
|
15
15
|
"import": "./dist/esm/index.js",
|
|
16
16
|
"require": "./dist/cjs/index.js"
|
|
17
17
|
},
|
|
@@ -20,32 +20,32 @@
|
|
|
20
20
|
"require": "./dist/cjs/utils/storybook/*.js"
|
|
21
21
|
},
|
|
22
22
|
"./auth": {
|
|
23
|
-
"types": "./dist/types/utils/auth/index.d.ts",
|
|
23
|
+
"types": "./dist/types/lib/utils/auth/index.d.ts",
|
|
24
24
|
"import": "./dist/esm/utils/auth/index.js",
|
|
25
25
|
"require": "./dist/cjs/utils/auth/index.js"
|
|
26
26
|
},
|
|
27
27
|
"./app-config": {
|
|
28
|
-
"types": "./dist/types/utils/app-config/index.d.ts",
|
|
28
|
+
"types": "./dist/types/lib/utils/app-config/index.d.ts",
|
|
29
29
|
"import": "./dist/esm/utils/app-config/index.js",
|
|
30
30
|
"require": "./dist/cjs/utils/app-config/index.js"
|
|
31
31
|
},
|
|
32
32
|
"./http-client": {
|
|
33
|
-
"types": "./dist/types/communication/http-client/index.d.ts",
|
|
33
|
+
"types": "./dist/types/lib/communication/http-client/index.d.ts",
|
|
34
34
|
"import": "./dist/esm/communication/http-client/index.js",
|
|
35
35
|
"require": "./dist/cjs/communication/http-client/index.js"
|
|
36
36
|
},
|
|
37
37
|
"./analytics": {
|
|
38
|
-
"types": "./dist/types/analytics/index.d.ts",
|
|
38
|
+
"types": "./dist/types/lib/analytics/index.d.ts",
|
|
39
39
|
"import": "./dist/esm/analytics/index.js",
|
|
40
40
|
"require": "./dist/cjs/analytics/index.js"
|
|
41
41
|
},
|
|
42
42
|
"./data": {
|
|
43
|
-
"types": "./dist/types/data/index.d.ts",
|
|
43
|
+
"types": "./dist/types/lib/data/index.d.ts",
|
|
44
44
|
"import": "./dist/esm/data/index.js",
|
|
45
45
|
"require": "./dist/cjs/data/index.js"
|
|
46
46
|
},
|
|
47
47
|
"./micro-frontend": {
|
|
48
|
-
"types": "./dist/types/micro-frontend.d.ts",
|
|
48
|
+
"types": "./dist/types/lib/micro-frontend.d.ts",
|
|
49
49
|
"import": "./dist/esm/micro-frontend.js",
|
|
50
50
|
"require": "./dist/cjs/micro-frontend.js"
|
|
51
51
|
}
|
|
@@ -91,8 +91,11 @@
|
|
|
91
91
|
"setup": "rimraf -r node_modules && rimraf pnpm-lock.yaml && pnpm i",
|
|
92
92
|
"test": "pui-cli test -p",
|
|
93
93
|
"test:fix": "pui-cli test -f",
|
|
94
|
-
"test:watch": "
|
|
94
|
+
"test:watch": "jest --watch",
|
|
95
|
+
"test:debug": "pui-cli test --debug",
|
|
95
96
|
"test:staged": "jest --coverage --passWithNoTests --bail --findRelatedTests",
|
|
97
|
+
"tscheck": "pui-cli tscheck --files",
|
|
98
|
+
"vitest": "pui-cli vitest",
|
|
96
99
|
"upgrade": "ncu -u && npm run setup",
|
|
97
100
|
"prepare": "[ -n \"$CI\" ] || husky install"
|
|
98
101
|
},
|
|
@@ -103,50 +106,50 @@
|
|
|
103
106
|
"indent": 4
|
|
104
107
|
},
|
|
105
108
|
"peerDependencies": {
|
|
106
|
-
"@elliemae/app-react-dependencies": "^
|
|
107
|
-
"@elliemae/ds-basic": "^3.4.
|
|
108
|
-
"@elliemae/ds-button": "^3.4.
|
|
109
|
-
"@elliemae/ds-controlled-form": "^3.4.
|
|
110
|
-
"@elliemae/ds-date-picker": "^3.4.
|
|
111
|
-
"@elliemae/ds-date-range-picker": "^3.4.
|
|
112
|
-
"@elliemae/ds-dialog": "^3.4.
|
|
113
|
-
"@elliemae/ds-form": "^3.4.
|
|
114
|
-
"@elliemae/ds-form-layout-blocks": "^3.4.
|
|
115
|
-
"@elliemae/ds-grid": "^3.4.
|
|
116
|
-
"@elliemae/ds-loading-indicator": "^3.4.
|
|
117
|
-
"@elliemae/ds-modal": "^3.4.
|
|
118
|
-
"@elliemae/ds-popperjs": "^3.4.
|
|
119
|
-
"@elliemae/ds-toast": "^3.4.
|
|
109
|
+
"@elliemae/app-react-dependencies": "^4.0.0-beta.5",
|
|
110
|
+
"@elliemae/ds-basic": "^3.4.4",
|
|
111
|
+
"@elliemae/ds-button": "^3.4.4",
|
|
112
|
+
"@elliemae/ds-controlled-form": "^3.4.4",
|
|
113
|
+
"@elliemae/ds-date-picker": "^3.4.4",
|
|
114
|
+
"@elliemae/ds-date-range-picker": "^3.4.4",
|
|
115
|
+
"@elliemae/ds-dialog": "^3.4.4",
|
|
116
|
+
"@elliemae/ds-form": "^3.4.4",
|
|
117
|
+
"@elliemae/ds-form-layout-blocks": "^3.4.4",
|
|
118
|
+
"@elliemae/ds-grid": "^3.4.4",
|
|
119
|
+
"@elliemae/ds-loading-indicator": "^3.4.4",
|
|
120
|
+
"@elliemae/ds-modal": "^3.4.4",
|
|
121
|
+
"@elliemae/ds-popperjs": "^3.4.4",
|
|
122
|
+
"@elliemae/ds-toast": "^3.4.4",
|
|
120
123
|
"@elliemae/em-ssf-guest": "^1.11.2",
|
|
121
124
|
"@elliemae/pui-diagnostics": "^2.7.4",
|
|
122
125
|
"@elliemae/pui-micro-frontend-base": "^1.13.0",
|
|
123
126
|
"@elliemae/pui-scripting-object": "^1.0.2",
|
|
124
127
|
"@elliemae/pui-theme": "^2.6.0",
|
|
125
|
-
"@elliemae/pui-user-monitoring": "^1.
|
|
128
|
+
"@elliemae/pui-user-monitoring": "^1.16.0"
|
|
126
129
|
},
|
|
127
130
|
"devDependencies": {
|
|
128
|
-
"@elliemae/app-react-dependencies": "
|
|
131
|
+
"@elliemae/app-react-dependencies": "4.0.0-beta.5",
|
|
129
132
|
"@elliemae/browserslist-config-elliemae-latest-browsers": "~1.4.2",
|
|
130
|
-
"@elliemae/ds-basic": "~3.4.
|
|
131
|
-
"@elliemae/ds-button": "~3.4.
|
|
132
|
-
"@elliemae/ds-controlled-form": "~3.4.
|
|
133
|
-
"@elliemae/ds-date-picker": "~3.4.
|
|
134
|
-
"@elliemae/ds-date-range-picker": "~3.4.
|
|
135
|
-
"@elliemae/ds-dialog": "~3.4.
|
|
136
|
-
"@elliemae/ds-form": "~3.4.
|
|
137
|
-
"@elliemae/ds-form-layout-blocks": "~3.4.
|
|
138
|
-
"@elliemae/ds-grid": "~3.4.
|
|
139
|
-
"@elliemae/ds-loading-indicator": "~3.4.
|
|
140
|
-
"@elliemae/ds-modal": "~3.4.
|
|
141
|
-
"@elliemae/ds-popperjs": "~3.4.
|
|
142
|
-
"@elliemae/ds-toast": "~3.4.
|
|
133
|
+
"@elliemae/ds-basic": "~3.4.4",
|
|
134
|
+
"@elliemae/ds-button": "~3.4.4",
|
|
135
|
+
"@elliemae/ds-controlled-form": "~3.4.4",
|
|
136
|
+
"@elliemae/ds-date-picker": "~3.4.4",
|
|
137
|
+
"@elliemae/ds-date-range-picker": "~3.4.4",
|
|
138
|
+
"@elliemae/ds-dialog": "~3.4.4",
|
|
139
|
+
"@elliemae/ds-form": "~3.4.4",
|
|
140
|
+
"@elliemae/ds-form-layout-blocks": "~3.4.4",
|
|
141
|
+
"@elliemae/ds-grid": "~3.4.4",
|
|
142
|
+
"@elliemae/ds-loading-indicator": "~3.4.4",
|
|
143
|
+
"@elliemae/ds-modal": "~3.4.4",
|
|
144
|
+
"@elliemae/ds-popperjs": "~3.4.4",
|
|
145
|
+
"@elliemae/ds-toast": "~3.4.4",
|
|
143
146
|
"@elliemae/em-ssf-guest": "~1.11.2",
|
|
144
|
-
"@elliemae/pui-cli": "
|
|
147
|
+
"@elliemae/pui-cli": "7.0.0-alpha.35",
|
|
145
148
|
"@elliemae/pui-diagnostics": "~2.7.4",
|
|
146
|
-
"@elliemae/pui-e2e-test-sdk": "~7.
|
|
149
|
+
"@elliemae/pui-e2e-test-sdk": "~7.4.0",
|
|
147
150
|
"@elliemae/pui-micro-frontend-base": "~1.13.0",
|
|
148
151
|
"@elliemae/pui-scripting-object": "~1.0.2",
|
|
149
|
-
"@elliemae/pui-theme": "2.6.0",
|
|
150
|
-
"@elliemae/pui-user-monitoring": "~1.
|
|
152
|
+
"@elliemae/pui-theme": "~2.6.0",
|
|
153
|
+
"@elliemae/pui-user-monitoring": "~1.16.0"
|
|
151
154
|
}
|
|
152
155
|
}
|