@elliemae/pui-app-sdk 5.2.5 → 5.3.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/dist/cjs/communication/http-client/index.js +4 -1
- package/dist/cjs/data/listenerMiddleware.js +8 -34
- package/dist/cjs/data/store.js +1 -1
- package/dist/cjs/index.js +5 -0
- package/dist/cjs/view/wait-message/index.js +13 -4
- package/dist/esm/communication/http-client/index.js +4 -1
- package/dist/esm/data/listenerMiddleware.js +13 -35
- package/dist/esm/data/store.js +1 -1
- package/dist/esm/index.js +10 -0
- package/dist/esm/view/wait-message/index.js +14 -5
- package/dist/types/lib/api/helpers.d.ts +0 -1
- package/dist/types/lib/communication/http-client/retry-axios.d.ts +0 -3
- package/dist/types/lib/data/listenerMiddleware.d.ts +18 -9
- package/dist/types/lib/data/store.d.ts +3 -3
- package/dist/types/lib/data/types.d.ts +1 -0
- package/dist/types/lib/data/useInjectSideEffect.d.ts +2 -2
- package/dist/types/lib/index.d.ts +2 -2
- package/dist/types/lib/utils/testing/render-with-redux.d.ts +3 -3
- package/dist/types/lib/utils/testing/render-with-router-redux.d.ts +3 -3
- package/package.json +38 -38
|
@@ -43,7 +43,10 @@ const getHTTPClient = ({
|
|
|
43
43
|
baseURL = (0, import_config.getAppConfigValue)("serviceEndpoints.api", ""),
|
|
44
44
|
headers = {}
|
|
45
45
|
} = {}) => {
|
|
46
|
-
const client = import_axios.default.create({
|
|
46
|
+
const client = import_axios.default.create({
|
|
47
|
+
baseURL,
|
|
48
|
+
headers: { "Content-Type": "application/json", ...headers }
|
|
49
|
+
});
|
|
47
50
|
if (client?.defaults?.timeout)
|
|
48
51
|
client.defaults.timeout = REQUEST_TIMEOUT;
|
|
49
52
|
(0, import_retry.default)(client);
|
|
@@ -18,42 +18,16 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
var listenerMiddleware_exports = {};
|
|
20
20
|
__export(listenerMiddleware_exports, {
|
|
21
|
-
|
|
21
|
+
clearSideEffects: () => clearSideEffects,
|
|
22
|
+
createSideEffect: () => createSideEffect,
|
|
22
23
|
listenerMiddleware: () => listenerMiddleware,
|
|
23
24
|
removeSideEffect: () => removeSideEffect,
|
|
24
|
-
|
|
25
|
+
startSideEffect: () => startSideEffect
|
|
25
26
|
});
|
|
26
27
|
module.exports = __toCommonJS(listenerMiddleware_exports);
|
|
27
28
|
var import_toolkit = require("@reduxjs/toolkit");
|
|
28
|
-
|
|
29
|
-
const
|
|
30
|
-
const
|
|
31
|
-
const
|
|
32
|
-
|
|
33
|
-
return rtkListenerMiddleware.middleware(listenerAPI);
|
|
34
|
-
};
|
|
35
|
-
const addSideEffect = ({
|
|
36
|
-
key,
|
|
37
|
-
listener
|
|
38
|
-
}) => {
|
|
39
|
-
if (!listenerDispatchFns.has(key) && listenerAPI) {
|
|
40
|
-
const unsubscribe = listenerAPI.dispatch(listener);
|
|
41
|
-
listenerDispatchFns.set(key, unsubscribe);
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
const removeSideEffect = (key) => {
|
|
45
|
-
const unsubscribe = listenerDispatchFns.get(key);
|
|
46
|
-
if (unsubscribe && listenerAPI) {
|
|
47
|
-
listenerDispatchFns.delete(key);
|
|
48
|
-
listenerAPI.dispatch(unsubscribe);
|
|
49
|
-
}
|
|
50
|
-
return true;
|
|
51
|
-
};
|
|
52
|
-
const resetSideEffects = () => {
|
|
53
|
-
if (listenerAPI) {
|
|
54
|
-
listenerDispatchFns.forEach((unsubscribe) => {
|
|
55
|
-
listenerAPI.dispatch(unsubscribe);
|
|
56
|
-
});
|
|
57
|
-
listenerDispatchFns.clear();
|
|
58
|
-
}
|
|
59
|
-
};
|
|
29
|
+
const listenerMiddleware = (0, import_toolkit.createListenerMiddleware)();
|
|
30
|
+
const startSideEffect = listenerMiddleware.startListening;
|
|
31
|
+
const createSideEffect = import_toolkit.addListener;
|
|
32
|
+
const removeSideEffect = import_toolkit.removeListener;
|
|
33
|
+
const clearSideEffects = listenerMiddleware.clearListeners;
|
package/dist/cjs/data/store.js
CHANGED
|
@@ -57,7 +57,7 @@ const createStore = (initialState, sagaMiddleware, history, middlewareConfig = {
|
|
|
57
57
|
];
|
|
58
58
|
const baseStore = (0, import_toolkit.configureStore)({
|
|
59
59
|
reducer: rootReducer,
|
|
60
|
-
middleware: (getDefaultMiddleware) => getDefaultMiddleware(middlewareConfig).prepend(import_listenerMiddleware.listenerMiddleware).concat([sagaMiddleware, import_queryMiddleware.queryMiddleware]),
|
|
60
|
+
middleware: (getDefaultMiddleware) => getDefaultMiddleware(middlewareConfig).prepend(import_listenerMiddleware.listenerMiddleware.middleware).concat([sagaMiddleware, import_queryMiddleware.queryMiddleware]),
|
|
61
61
|
devTools: true,
|
|
62
62
|
preloadedState: initialState,
|
|
63
63
|
enhancers
|
package/dist/cjs/index.js
CHANGED
|
@@ -74,8 +74,10 @@ __export(lib_exports, {
|
|
|
74
74
|
authReducer: () => import_reducer.authReducer,
|
|
75
75
|
authSaga: () => import_auth2.authentication,
|
|
76
76
|
authorize: () => import_auth.authorize,
|
|
77
|
+
clearSideEffects: () => import_listenerMiddleware.clearSideEffects,
|
|
77
78
|
configureStore: () => import_store.createAppStore,
|
|
78
79
|
createManager: () => import_redux_injectors.createManager,
|
|
80
|
+
createSideEffect: () => import_listenerMiddleware.createSideEffect,
|
|
79
81
|
enableReactAppForHostIntegration: () => import_react2.enableReactAppForHostIntegration,
|
|
80
82
|
error: () => import_error.actions,
|
|
81
83
|
errorMiddleware: () => import_errorMiddleware.errorMiddleware,
|
|
@@ -110,6 +112,7 @@ __export(lib_exports, {
|
|
|
110
112
|
onGuestUnloadStart: () => import_guest_unload_handlers.onGuestUnloadStart,
|
|
111
113
|
redactPii: () => import_redact_pii.redactPii,
|
|
112
114
|
removeDoubleSlash: () => import_url.removeDoubleSlash,
|
|
115
|
+
removeSideEffect: () => import_listenerMiddleware.removeSideEffect,
|
|
113
116
|
removeStorageEvents: () => import_web_storage.removeStorageEvents,
|
|
114
117
|
renderWithHostData: () => import_render_with_host_data.renderWithHostData,
|
|
115
118
|
renderWithRedux: () => import_render_with_redux.renderWithRedux,
|
|
@@ -123,6 +126,7 @@ __export(lib_exports, {
|
|
|
123
126
|
setAppConfigValue: () => import_config.setAppConfigValue,
|
|
124
127
|
setAppDynamicsUserData: () => import_appdynamics.setAppDynamicsUserData,
|
|
125
128
|
setHostAppData: () => import_store2.setHostAppData,
|
|
129
|
+
startSideEffect: () => import_listenerMiddleware.startSideEffect,
|
|
126
130
|
subscribeToResetSession: () => import_session.subscribeToResetSession,
|
|
127
131
|
subscribeToSessionExpiry: () => import_session.subscribeToSessionExpiry,
|
|
128
132
|
subscribeToSessionExpiryWarning: () => import_session.subscribeToSessionExpiryWarning,
|
|
@@ -153,6 +157,7 @@ var import_constants = __toESM(require("./utils/constants.js"));
|
|
|
153
157
|
var import_redux_injectors = require("redux-injectors");
|
|
154
158
|
var import_react = require("./data/react.js");
|
|
155
159
|
var import_errorMiddleware = require("./data/errorMiddleware.js");
|
|
160
|
+
var import_listenerMiddleware = require("./data/listenerMiddleware.js");
|
|
156
161
|
var import_helper = require("./utils/auth/helper.js");
|
|
157
162
|
var import_url = require("./utils/url.js");
|
|
158
163
|
var import_store = require("./data/store.js");
|
|
@@ -54,16 +54,25 @@ const WaitMessage = (0, import_react.memo)(
|
|
|
54
54
|
tooltipStartPlacementPreference = "center",
|
|
55
55
|
...rest
|
|
56
56
|
}) => {
|
|
57
|
+
const ref = (0, import_react.useRef)(false);
|
|
58
|
+
const [show, setShow] = (0, import_react.useState)(false);
|
|
57
59
|
const isOpen = (0, import_react2.useAppSelector)((state) => state.waitMessage?.isOpen);
|
|
60
|
+
ref.current = isOpen ?? false;
|
|
58
61
|
const message = (0, import_react2.useAppSelector)((state) => state.waitMessage?.message);
|
|
59
62
|
(0, import_react.useEffect)(() => {
|
|
60
|
-
|
|
61
|
-
(
|
|
62
|
-
|
|
63
|
+
setTimeout(() => {
|
|
64
|
+
if (isOpen && ref.current) {
|
|
65
|
+
setShow(true);
|
|
66
|
+
(0, import_user_wait_event.waitStartEvent)();
|
|
67
|
+
}
|
|
68
|
+
}, 1e3);
|
|
69
|
+
if (!isOpen) {
|
|
70
|
+
setShow(false);
|
|
63
71
|
(0, import_user_wait_event.waitEndEvent)();
|
|
72
|
+
}
|
|
64
73
|
}, [isOpen]);
|
|
65
74
|
(0, import_use_html_wait_message.useHTMLWaitMessage)(isOpen !== null);
|
|
66
|
-
return
|
|
75
|
+
return show ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
67
76
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_backdrop.DSBackdrop, {}),
|
|
68
77
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
69
78
|
StyledCircularIndicator,
|
|
@@ -9,7 +9,10 @@ const getHTTPClient = ({
|
|
|
9
9
|
baseURL = getAppConfigValue("serviceEndpoints.api", ""),
|
|
10
10
|
headers = {}
|
|
11
11
|
} = {}) => {
|
|
12
|
-
const client = axios.create({
|
|
12
|
+
const client = axios.create({
|
|
13
|
+
baseURL,
|
|
14
|
+
headers: { "Content-Type": "application/json", ...headers }
|
|
15
|
+
});
|
|
13
16
|
if (client?.defaults?.timeout)
|
|
14
17
|
client.defaults.timeout = REQUEST_TIMEOUT;
|
|
15
18
|
setupRetry(client);
|
|
@@ -1,39 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
listener
|
|
12
|
-
}) => {
|
|
13
|
-
if (!listenerDispatchFns.has(key) && listenerAPI) {
|
|
14
|
-
const unsubscribe = listenerAPI.dispatch(listener);
|
|
15
|
-
listenerDispatchFns.set(key, unsubscribe);
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
const removeSideEffect = (key) => {
|
|
19
|
-
const unsubscribe = listenerDispatchFns.get(key);
|
|
20
|
-
if (unsubscribe && listenerAPI) {
|
|
21
|
-
listenerDispatchFns.delete(key);
|
|
22
|
-
listenerAPI.dispatch(unsubscribe);
|
|
23
|
-
}
|
|
24
|
-
return true;
|
|
25
|
-
};
|
|
26
|
-
const resetSideEffects = () => {
|
|
27
|
-
if (listenerAPI) {
|
|
28
|
-
listenerDispatchFns.forEach((unsubscribe) => {
|
|
29
|
-
listenerAPI.dispatch(unsubscribe);
|
|
30
|
-
});
|
|
31
|
-
listenerDispatchFns.clear();
|
|
32
|
-
}
|
|
33
|
-
};
|
|
1
|
+
import {
|
|
2
|
+
createListenerMiddleware,
|
|
3
|
+
addListener,
|
|
4
|
+
removeListener
|
|
5
|
+
} from "@reduxjs/toolkit";
|
|
6
|
+
const listenerMiddleware = createListenerMiddleware();
|
|
7
|
+
const startSideEffect = listenerMiddleware.startListening;
|
|
8
|
+
const createSideEffect = addListener;
|
|
9
|
+
const removeSideEffect = removeListener;
|
|
10
|
+
const clearSideEffects = listenerMiddleware.clearListeners;
|
|
34
11
|
export {
|
|
35
|
-
|
|
12
|
+
clearSideEffects,
|
|
13
|
+
createSideEffect,
|
|
36
14
|
listenerMiddleware,
|
|
37
15
|
removeSideEffect,
|
|
38
|
-
|
|
16
|
+
startSideEffect
|
|
39
17
|
};
|
package/dist/esm/data/store.js
CHANGED
|
@@ -22,7 +22,7 @@ const createStore = (initialState, sagaMiddleware, history, middlewareConfig = {
|
|
|
22
22
|
];
|
|
23
23
|
const baseStore = configureStore({
|
|
24
24
|
reducer: rootReducer,
|
|
25
|
-
middleware: (getDefaultMiddleware) => getDefaultMiddleware(middlewareConfig).prepend(listenerMiddleware).concat([sagaMiddleware, queryMiddleware]),
|
|
25
|
+
middleware: (getDefaultMiddleware) => getDefaultMiddleware(middlewareConfig).prepend(listenerMiddleware.middleware).concat([sagaMiddleware, queryMiddleware]),
|
|
26
26
|
devTools: true,
|
|
27
27
|
preloadedState: initialState,
|
|
28
28
|
enhancers
|
package/dist/esm/index.js
CHANGED
|
@@ -24,6 +24,12 @@ import {
|
|
|
24
24
|
useAppMiddleware
|
|
25
25
|
} from "./data/react.js";
|
|
26
26
|
import { errorMiddleware } from "./data/errorMiddleware.js";
|
|
27
|
+
import {
|
|
28
|
+
startSideEffect,
|
|
29
|
+
createSideEffect,
|
|
30
|
+
removeSideEffect,
|
|
31
|
+
clearSideEffects
|
|
32
|
+
} from "./data/listenerMiddleware.js";
|
|
27
33
|
import { getAuthorizationHeader } from "./utils/auth/helper.js";
|
|
28
34
|
import { getRedirectUrl, removeDoubleSlash } from "./utils/url.js";
|
|
29
35
|
import { createAppStore } from "./data/store.js";
|
|
@@ -168,8 +174,10 @@ export {
|
|
|
168
174
|
authReducer,
|
|
169
175
|
authentication as authSaga,
|
|
170
176
|
authorize,
|
|
177
|
+
clearSideEffects,
|
|
171
178
|
createAppStore as configureStore,
|
|
172
179
|
createManager,
|
|
180
|
+
createSideEffect,
|
|
173
181
|
enableReactAppForHostIntegration,
|
|
174
182
|
actions2 as error,
|
|
175
183
|
errorMiddleware,
|
|
@@ -204,6 +212,7 @@ export {
|
|
|
204
212
|
onGuestUnloadStart,
|
|
205
213
|
redactPii,
|
|
206
214
|
removeDoubleSlash,
|
|
215
|
+
removeSideEffect,
|
|
207
216
|
removeStorageEvents,
|
|
208
217
|
renderWithHostData,
|
|
209
218
|
renderWithRedux,
|
|
@@ -217,6 +226,7 @@ export {
|
|
|
217
226
|
setAppConfigValue,
|
|
218
227
|
setAppDynamicsUserData,
|
|
219
228
|
setHostAppData,
|
|
229
|
+
startSideEffect,
|
|
220
230
|
subscribeToResetSession,
|
|
221
231
|
subscribeToSessionExpiry,
|
|
222
232
|
subscribeToSessionExpiryWarning,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { memo, useEffect } from "react";
|
|
2
|
+
import { memo, useEffect, useState, useRef } from "react";
|
|
3
3
|
import styled from "styled-components";
|
|
4
4
|
import { DSBackdrop } from "@elliemae/ds-backdrop";
|
|
5
5
|
import { DSCircularIndeterminateIndicator } from "@elliemae/ds-circular-progress-indicator";
|
|
@@ -24,16 +24,25 @@ const WaitMessage = memo(
|
|
|
24
24
|
tooltipStartPlacementPreference = "center",
|
|
25
25
|
...rest
|
|
26
26
|
}) => {
|
|
27
|
+
const ref = useRef(false);
|
|
28
|
+
const [show, setShow] = useState(false);
|
|
27
29
|
const isOpen = useAppSelector((state) => state.waitMessage?.isOpen);
|
|
30
|
+
ref.current = isOpen ?? false;
|
|
28
31
|
const message = useAppSelector((state) => state.waitMessage?.message);
|
|
29
32
|
useEffect(() => {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
+
setTimeout(() => {
|
|
34
|
+
if (isOpen && ref.current) {
|
|
35
|
+
setShow(true);
|
|
36
|
+
waitStartEvent();
|
|
37
|
+
}
|
|
38
|
+
}, 1e3);
|
|
39
|
+
if (!isOpen) {
|
|
40
|
+
setShow(false);
|
|
33
41
|
waitEndEvent();
|
|
42
|
+
}
|
|
34
43
|
}, [isOpen]);
|
|
35
44
|
useHTMLWaitMessage(isOpen !== null);
|
|
36
|
-
return
|
|
45
|
+
return show ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
37
46
|
/* @__PURE__ */ jsx(DSBackdrop, {}),
|
|
38
47
|
/* @__PURE__ */ jsx(
|
|
39
48
|
StyledCircularIndicator,
|
|
@@ -37,7 +37,6 @@ export declare const getApiActionCreator: (api: string) => (operation: string) =
|
|
|
37
37
|
*
|
|
38
38
|
* For this to work as expected, ensure you always select ONLY what you need. Don't select state objects that contain fields that you won't use, if you do so
|
|
39
39
|
* then everytime any of those gets updated it will trigger a rerender even though you're not actually using that field.
|
|
40
|
-
*
|
|
41
40
|
* @description Generic Redux State Selector Helper.
|
|
42
41
|
* ### Example
|
|
43
42
|
* ```javascript
|
|
@@ -25,14 +25,12 @@ export interface SDKAxiosInstance extends Omit<AxiosInstance, 'defaults'> {
|
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
27
27
|
* Eject the Axios interceptor that is providing retry capabilities.
|
|
28
|
-
*
|
|
29
28
|
* @param interceptorId The interceptorId provided in the config.
|
|
30
29
|
* @param instance The axios instance using this interceptor.
|
|
31
30
|
*/
|
|
32
31
|
export declare const detach: (interceptorId: number, instance: typeof axios) => void;
|
|
33
32
|
/**
|
|
34
33
|
* Attach the interceptor to the Axios instance.
|
|
35
|
-
*
|
|
36
34
|
* @param instance The optional Axios instance on which to attach the
|
|
37
35
|
* interceptor.
|
|
38
36
|
* @returns The id of the interceptor attached to the axios instance.
|
|
@@ -40,7 +38,6 @@ export declare const detach: (interceptorId: number, instance: typeof axios) =>
|
|
|
40
38
|
export declare const attach: (instance: AxiosInstance) => number | null;
|
|
41
39
|
/**
|
|
42
40
|
* Acquire the retryConfig object from an AxiosError if available.
|
|
43
|
-
*
|
|
44
41
|
* @param err The Axios error with a config object.
|
|
45
42
|
*/
|
|
46
43
|
export declare const getConfig: (err: SDKAxiosError) => RetryConfig | Partial<RetryConfig> | null;
|
|
@@ -1,9 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
export declare const listenerMiddleware:
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { TypedAddListener, TypedRemoveListener, TypedStartListening } from '@reduxjs/toolkit';
|
|
2
|
+
import type { RootState, AppDispatch } from './types.js';
|
|
3
|
+
export declare const listenerMiddleware: import("@reduxjs/toolkit").ListenerMiddlewareInstance<unknown, import("@reduxjs/toolkit").ThunkDispatch<unknown, unknown, import("redux").AnyAction>, unknown>;
|
|
4
|
+
export type AppStartListening = TypedStartListening<RootState, AppDispatch>;
|
|
5
|
+
export declare const startSideEffect: AppStartListening;
|
|
6
|
+
export declare const createSideEffect: TypedAddListener<import("redux").CombinedState<{
|
|
7
|
+
waitMessage: import("./wait-message/reducer.js").WaitMessageState;
|
|
8
|
+
error: import("./error/index.js").ErrorState;
|
|
9
|
+
breakpoint: import("./breakpoint/index.js").BreakpointState;
|
|
10
|
+
liveMessage: import("./live-message/index.js").LiveMessageState;
|
|
11
|
+
}>, AppDispatch>;
|
|
12
|
+
export declare const removeSideEffect: TypedRemoveListener<import("redux").CombinedState<{
|
|
13
|
+
waitMessage: import("./wait-message/reducer.js").WaitMessageState;
|
|
14
|
+
error: import("./error/index.js").ErrorState;
|
|
15
|
+
breakpoint: import("./breakpoint/index.js").BreakpointState;
|
|
16
|
+
liveMessage: import("./live-message/index.js").LiveMessageState;
|
|
17
|
+
}>, AppDispatch>;
|
|
18
|
+
export declare const clearSideEffects: () => void;
|
|
@@ -23,18 +23,18 @@ export declare const createAppStore: (initialState: import("redux").CombinedStat
|
|
|
23
23
|
error: import("./error/index.js").ErrorState;
|
|
24
24
|
breakpoint: import("./breakpoint/index.js").BreakpointState;
|
|
25
25
|
liveMessage: import("./live-message/index.js").LiveMessageState;
|
|
26
|
-
}> | undefined, history: History, middlewareConfig?: MiddlewareConfig) => import("@reduxjs/toolkit/dist/configureStore.js").ToolkitStore<import("redux").
|
|
26
|
+
}> | undefined, history: History, middlewareConfig?: MiddlewareConfig) => import("@reduxjs/toolkit/dist/configureStore.js").ToolkitStore<import("redux").EmptyObject & {
|
|
27
27
|
waitMessage: import("./wait-message/reducer.js").WaitMessageState;
|
|
28
28
|
error: import("./error/index.js").ErrorState;
|
|
29
29
|
breakpoint: import("./breakpoint/index.js").BreakpointState;
|
|
30
30
|
liveMessage: import("./live-message/index.js").LiveMessageState;
|
|
31
|
-
}
|
|
31
|
+
}, {
|
|
32
32
|
payload: import("./wait-message/reducer.js").WaitMessageState;
|
|
33
33
|
type: string;
|
|
34
34
|
} | import("redux").AnyAction | {
|
|
35
35
|
payload: import("./breakpoint/index.js").Breakpoints;
|
|
36
36
|
type: string;
|
|
37
|
-
}, import("@reduxjs/toolkit").MiddlewareArray<[
|
|
37
|
+
}, import("@reduxjs/toolkit").MiddlewareArray<[import("@reduxjs/toolkit").ListenerMiddleware<unknown, import("@reduxjs/toolkit").ThunkDispatch<unknown, unknown, import("redux").AnyAction>, unknown>, import("@reduxjs/toolkit").ThunkMiddleware<import("redux").CombinedState<{
|
|
38
38
|
waitMessage: import("./wait-message/reducer.js").WaitMessageState;
|
|
39
39
|
error: import("./error/index.js").ErrorState;
|
|
40
40
|
breakpoint: import("./breakpoint/index.js").BreakpointState;
|
|
@@ -3,4 +3,5 @@ import { WaitMessageState } from './wait-message/reducer.js';
|
|
|
3
3
|
import { BreakpointState } from './breakpoint/index.js';
|
|
4
4
|
import { ErrorState } from './error/index.js';
|
|
5
5
|
import { LiveMessageState } from './live-message/index.js';
|
|
6
|
+
export type { RootState, AppStore } from './store.js';
|
|
6
7
|
export type AppDispatch = Dispatch<PayloadAction<WaitMessageState> | PayloadAction<BreakpointState> | PayloadAction<ErrorState> | PayloadAction<LiveMessageState> | AnyAction>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const useInjectSideEffect: (listener:
|
|
1
|
+
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
+
export declare const useInjectSideEffect: (listener: PayloadAction<unknown, string>) => void;
|
|
@@ -10,8 +10,8 @@ export { Page } from './view/page.js';
|
|
|
10
10
|
export { default as globalConstants } from './utils/constants.js';
|
|
11
11
|
export { useInjectReducer, useInjectSaga, createManager, } from 'redux-injectors';
|
|
12
12
|
export { useInjectQuery, useInjectSideEffect, useAppDispatch, useAppSelector, useAppMiddleware, } from './data/react.js';
|
|
13
|
-
export type { AppDispatch } from './data/types.js';
|
|
14
13
|
export { errorMiddleware } from './data/errorMiddleware.js';
|
|
14
|
+
export { startSideEffect, createSideEffect, removeSideEffect, clearSideEffects, } from './data/listenerMiddleware.js';
|
|
15
15
|
export { getAuthorizationHeader } from './utils/auth/helper.js';
|
|
16
16
|
export { getRedirectUrl, removeDoubleSlash } from './utils/url.js';
|
|
17
17
|
export { createAppStore as configureStore } from './data/store.js';
|
|
@@ -86,7 +86,7 @@ export { updateBAEventParameters } from './analytics/web-analytics.js';
|
|
|
86
86
|
export { redactPii } from './utils/redact-pii.js';
|
|
87
87
|
export type { EMUI } from './utils/window.js';
|
|
88
88
|
export type { Await } from './utils/await.js';
|
|
89
|
-
export type { RootState, AppStore } from './data/
|
|
89
|
+
export type { RootState, AppStore, AppDispatch } from './data/types.js';
|
|
90
90
|
export type { AppConfig } from './utils/app-config/config.js';
|
|
91
91
|
export type { OnInitCallback, OnMountCallback, OnUnMountCallback, } from './utils/micro-frontend/guest.js';
|
|
92
92
|
export type { OnInitCallback as OnHostInitCallback } from './utils/micro-frontend/host.js';
|
|
@@ -5,18 +5,18 @@ interface Args {
|
|
|
5
5
|
store: AppStore;
|
|
6
6
|
}
|
|
7
7
|
export declare const renderWithRedux: (ui: React.ReactElement, { initialState, store, }?: Args) => {
|
|
8
|
-
store: import("@reduxjs/toolkit/dist/configureStore.js").ToolkitStore<import("redux").
|
|
8
|
+
store: import("@reduxjs/toolkit/dist/configureStore.js").ToolkitStore<import("redux").EmptyObject & {
|
|
9
9
|
waitMessage: import("../../data/wait-message/reducer.js").WaitMessageState;
|
|
10
10
|
error: import("../../data/error/index.js").ErrorState;
|
|
11
11
|
breakpoint: import("../../data/breakpoint/index.js").BreakpointState;
|
|
12
12
|
liveMessage: import("../../data/live-message/index.js").LiveMessageState;
|
|
13
|
-
}
|
|
13
|
+
}, {
|
|
14
14
|
payload: import("../../data/wait-message/reducer.js").WaitMessageState;
|
|
15
15
|
type: string;
|
|
16
16
|
} | import("redux").AnyAction | {
|
|
17
17
|
payload: import("../../data/breakpoint/index.js").Breakpoints;
|
|
18
18
|
type: string;
|
|
19
|
-
}, import("@reduxjs/toolkit").MiddlewareArray<[import("
|
|
19
|
+
}, import("@reduxjs/toolkit").MiddlewareArray<[import("@reduxjs/toolkit").ListenerMiddleware<unknown, import("redux-thunk").ThunkDispatch<unknown, unknown, import("redux").AnyAction>, unknown>, 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;
|
|
@@ -8,18 +8,18 @@ interface Args {
|
|
|
8
8
|
history: History;
|
|
9
9
|
}
|
|
10
10
|
export declare const renderWithRouterRedux: (ui: React.ReactElement, { route, history, initialState, store, }?: Args) => {
|
|
11
|
-
store: import("@reduxjs/toolkit/dist/configureStore.js").ToolkitStore<import("redux").
|
|
11
|
+
store: import("@reduxjs/toolkit/dist/configureStore.js").ToolkitStore<import("redux").EmptyObject & {
|
|
12
12
|
waitMessage: import("../../data/wait-message/reducer.js").WaitMessageState;
|
|
13
13
|
error: import("../../data/error/index.js").ErrorState;
|
|
14
14
|
breakpoint: import("../../data/breakpoint/index.js").BreakpointState;
|
|
15
15
|
liveMessage: import("../../data/live-message/index.js").LiveMessageState;
|
|
16
|
-
}
|
|
16
|
+
}, {
|
|
17
17
|
payload: import("../../data/wait-message/reducer.js").WaitMessageState;
|
|
18
18
|
type: string;
|
|
19
19
|
} | import("redux").AnyAction | {
|
|
20
20
|
payload: import("../../data/breakpoint/index.js").Breakpoints;
|
|
21
21
|
type: string;
|
|
22
|
-
}, import("@reduxjs/toolkit").MiddlewareArray<[import("
|
|
22
|
+
}, import("@reduxjs/toolkit").MiddlewareArray<[import("@reduxjs/toolkit").ListenerMiddleware<unknown, import("redux-thunk").ThunkDispatch<unknown, unknown, import("redux").AnyAction>, unknown>, 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;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/pui-app-sdk",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.3.0",
|
|
4
4
|
"description": "ICE MT UI Platform Application SDK ",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"*.css",
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
"url": "https://git.elliemae.io/platform-ui/pui-app-sdk.git"
|
|
64
64
|
},
|
|
65
65
|
"engines": {
|
|
66
|
-
"pnpm": ">=
|
|
67
|
-
"node": ">=
|
|
66
|
+
"pnpm": ">=8",
|
|
67
|
+
"node": ">=18"
|
|
68
68
|
},
|
|
69
69
|
"author": "ICE MT",
|
|
70
70
|
"license": "MIT",
|
|
@@ -112,53 +112,53 @@
|
|
|
112
112
|
},
|
|
113
113
|
"peerDependencies": {
|
|
114
114
|
"@elliemae/app-react-dependencies": "^4.9.0",
|
|
115
|
-
"@elliemae/ds-backdrop": "^3.14.
|
|
116
|
-
"@elliemae/ds-basic": "^3.14.
|
|
117
|
-
"@elliemae/ds-button": "^3.14.
|
|
118
|
-
"@elliemae/ds-circular-progress-indicator": "^3.14.
|
|
119
|
-
"@elliemae/ds-controlled-form": "^3.14.
|
|
120
|
-
"@elliemae/ds-date-picker": "^3.14.
|
|
121
|
-
"@elliemae/ds-date-range-picker": "^3.14.
|
|
122
|
-
"@elliemae/ds-dialog": "^3.14.
|
|
123
|
-
"@elliemae/ds-form": "^3.14.
|
|
124
|
-
"@elliemae/ds-form-layout-blocks": "^3.14.
|
|
125
|
-
"@elliemae/ds-grid": "^3.14.
|
|
126
|
-
"@elliemae/ds-modal": "^3.14.
|
|
127
|
-
"@elliemae/ds-popperjs": "^3.14.
|
|
128
|
-
"@elliemae/ds-toast": "^3.14.
|
|
115
|
+
"@elliemae/ds-backdrop": "^3.14.16",
|
|
116
|
+
"@elliemae/ds-basic": "^3.14.16",
|
|
117
|
+
"@elliemae/ds-button": "^3.14.16",
|
|
118
|
+
"@elliemae/ds-circular-progress-indicator": "^3.14.16",
|
|
119
|
+
"@elliemae/ds-controlled-form": "^3.14.16",
|
|
120
|
+
"@elliemae/ds-date-picker": "^3.14.16",
|
|
121
|
+
"@elliemae/ds-date-range-picker": "^3.14.16",
|
|
122
|
+
"@elliemae/ds-dialog": "^3.14.16",
|
|
123
|
+
"@elliemae/ds-form": "^3.14.16",
|
|
124
|
+
"@elliemae/ds-form-layout-blocks": "^3.14.16",
|
|
125
|
+
"@elliemae/ds-grid": "^3.14.16",
|
|
126
|
+
"@elliemae/ds-modal": "^3.14.16",
|
|
127
|
+
"@elliemae/ds-popperjs": "^3.14.16",
|
|
128
|
+
"@elliemae/ds-toast": "^3.14.16",
|
|
129
129
|
"@elliemae/em-ssf-guest": "^1.11.3",
|
|
130
|
-
"@elliemae/pui-diagnostics": "^3.
|
|
130
|
+
"@elliemae/pui-diagnostics": "^3.2.0",
|
|
131
131
|
"@elliemae/pui-micro-frontend-base": "^1.14.0",
|
|
132
|
-
"@elliemae/pui-scripting-object": "^1.
|
|
132
|
+
"@elliemae/pui-scripting-object": "^1.20.0",
|
|
133
133
|
"@elliemae/pui-theme": "^2.7.0",
|
|
134
|
-
"@elliemae/pui-user-monitoring": "^1.
|
|
134
|
+
"@elliemae/pui-user-monitoring": "^1.20.0"
|
|
135
135
|
},
|
|
136
136
|
"devDependencies": {
|
|
137
137
|
"@elliemae/app-react-dependencies": "~4.9.0",
|
|
138
138
|
"@elliemae/browserslist-config-elliemae-latest-browsers": "~1.7.0",
|
|
139
|
-
"@elliemae/ds-backdrop": "~3.14.
|
|
140
|
-
"@elliemae/ds-basic": "~3.14.
|
|
141
|
-
"@elliemae/ds-button": "~3.14.
|
|
142
|
-
"@elliemae/ds-circular-progress-indicator": "~3.14.
|
|
143
|
-
"@elliemae/ds-controlled-form": "~3.14.
|
|
144
|
-
"@elliemae/ds-date-picker": "~3.14.
|
|
145
|
-
"@elliemae/ds-date-range-picker": "~3.14.
|
|
146
|
-
"@elliemae/ds-dialog": "~3.14.
|
|
147
|
-
"@elliemae/ds-form": "~3.14.
|
|
148
|
-
"@elliemae/ds-form-layout-blocks": "~3.14.
|
|
149
|
-
"@elliemae/ds-grid": "~3.14.
|
|
150
|
-
"@elliemae/ds-modal": "~3.14.
|
|
151
|
-
"@elliemae/ds-popperjs": "~3.14.
|
|
152
|
-
"@elliemae/ds-toast": "~3.14.
|
|
139
|
+
"@elliemae/ds-backdrop": "~3.14.16",
|
|
140
|
+
"@elliemae/ds-basic": "~3.14.16",
|
|
141
|
+
"@elliemae/ds-button": "~3.14.16",
|
|
142
|
+
"@elliemae/ds-circular-progress-indicator": "~3.14.16",
|
|
143
|
+
"@elliemae/ds-controlled-form": "~3.14.16",
|
|
144
|
+
"@elliemae/ds-date-picker": "~3.14.16",
|
|
145
|
+
"@elliemae/ds-date-range-picker": "~3.14.16",
|
|
146
|
+
"@elliemae/ds-dialog": "~3.14.16",
|
|
147
|
+
"@elliemae/ds-form": "~3.14.16",
|
|
148
|
+
"@elliemae/ds-form-layout-blocks": "~3.14.16",
|
|
149
|
+
"@elliemae/ds-grid": "~3.14.16",
|
|
150
|
+
"@elliemae/ds-modal": "~3.14.16",
|
|
151
|
+
"@elliemae/ds-popperjs": "~3.14.16",
|
|
152
|
+
"@elliemae/ds-toast": "~3.14.16",
|
|
153
153
|
"@elliemae/em-ssf-guest": "~1.11.3",
|
|
154
|
-
"@elliemae/pui-cli": "~8.
|
|
155
|
-
"@elliemae/pui-diagnostics": "~3.
|
|
154
|
+
"@elliemae/pui-cli": "~8.6.0",
|
|
155
|
+
"@elliemae/pui-diagnostics": "~3.2.0",
|
|
156
156
|
"@elliemae/pui-doc-gen": "~1.6.4",
|
|
157
157
|
"@elliemae/pui-e2e-test-sdk": "~8.0.0",
|
|
158
158
|
"@elliemae/pui-micro-frontend-base": "~1.14.0",
|
|
159
|
-
"@elliemae/pui-scripting-object": "~1.
|
|
159
|
+
"@elliemae/pui-scripting-object": "~1.20.0",
|
|
160
160
|
"@elliemae/pui-theme": "~2.7.0",
|
|
161
|
-
"@elliemae/pui-user-monitoring": "~1.
|
|
161
|
+
"@elliemae/pui-user-monitoring": "~1.20.0",
|
|
162
162
|
"@types/react-aria-live": "~2.0.2"
|
|
163
163
|
}
|
|
164
164
|
}
|