@elliemae/pui-app-sdk 4.11.0-beta.1 → 4.11.1
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/data/index.js +3 -3
- package/dist/cjs/data/{useAppSelector.js → react-redux.js} +5 -3
- package/dist/cjs/data/store.js +2 -6
- package/dist/cjs/index.js +8 -13
- package/dist/cjs/view/app-root/hosted-app.js +2 -2
- package/dist/cjs/view/app-root/stand-alone-app.js +1 -1
- package/dist/cjs/view/breakpoint/use-breakpoint.js +2 -2
- package/dist/cjs/view/error-toast/index.js +3 -3
- package/dist/cjs/view/live-message/index.js +3 -3
- package/dist/cjs/view/loadable/index.js +1 -1
- package/dist/cjs/view/login/index.js +2 -2
- package/dist/cjs/view/modals/navigation-prompt/index.js +2 -2
- package/dist/cjs/view/modals/session-expiry/index.js +2 -2
- package/dist/cjs/view/render-with-host-data/index.js +1 -1
- package/dist/cjs/view/session-timeout/index.js +2 -2
- package/dist/cjs/view/wait-message/index.js +83 -0
- package/dist/cjs/view/{modals/wait-message → wait-message}/use-html-wait-message.js +0 -0
- package/dist/cjs/view/{modals/wait-message → wait-message}/wait-message-launcher.js +3 -3
- package/dist/esm/data/index.js +1 -1
- package/dist/esm/data/react-redux.js +7 -0
- package/dist/esm/data/store.js +5 -7
- package/dist/esm/index.js +4 -15
- package/dist/esm/view/app-root/hosted-app.js +2 -2
- package/dist/esm/view/app-root/stand-alone-app.js +1 -1
- package/dist/esm/view/breakpoint/use-breakpoint.js +1 -1
- package/dist/esm/view/error-toast/index.js +1 -1
- package/dist/esm/view/live-message/index.js +1 -1
- package/dist/esm/view/loadable/index.js +1 -1
- package/dist/esm/view/login/index.js +1 -1
- package/dist/esm/view/modals/navigation-prompt/index.js +1 -1
- package/dist/esm/view/modals/session-expiry/index.js +1 -1
- package/dist/esm/view/render-with-host-data/index.js +1 -1
- package/dist/esm/view/session-timeout/index.js +1 -1
- package/dist/esm/view/wait-message/index.js +56 -0
- package/dist/esm/view/{modals/wait-message → wait-message}/use-html-wait-message.js +0 -0
- package/dist/esm/view/{modals/wait-message → wait-message}/wait-message-launcher.js +2 -2
- package/dist/types/lib/communication/http-client/index.d.ts +1 -1
- package/dist/types/lib/data/index.d.ts +1 -1
- package/dist/types/lib/data/{useAppDispatch.d.ts → react-redux.d.ts} +3 -0
- package/dist/types/lib/data/store.d.ts +3 -4
- package/dist/types/lib/index.d.ts +3 -4
- package/dist/types/lib/utils/testing/render-with-redux.d.ts +2 -2
- package/dist/types/lib/utils/testing/render-with-router-redux.d.ts +2 -2
- package/dist/types/lib/view/wait-message/index.d.ts +13 -0
- package/dist/types/lib/view/{modals/wait-message → wait-message}/index.stories.d.ts +0 -0
- package/dist/types/lib/view/{modals/wait-message → wait-message}/use-html-wait-message.d.ts +0 -0
- package/dist/types/lib/view/{modals/wait-message → wait-message}/wait-message-launcher.d.ts +0 -0
- package/package.json +5 -3
- package/dist/cjs/communication/http-client/baseQuery.js +0 -42
- package/dist/cjs/data/appMiddleware.js +0 -51
- package/dist/cjs/data/errorMiddleware.js +0 -31
- package/dist/cjs/data/listenerMiddleware.js +0 -58
- package/dist/cjs/data/queryMiddleware.js +0 -50
- package/dist/cjs/data/react.js +0 -32
- package/dist/cjs/data/useAppDispatch.js +0 -25
- package/dist/cjs/data/useAppMiddleware.js +0 -34
- package/dist/cjs/data/useInjectListener.js +0 -34
- package/dist/cjs/data/useInjectQuery.js +0 -33
- package/dist/cjs/view/modals/wait-message/index.js +0 -57
- package/dist/esm/communication/http-client/baseQuery.js +0 -22
- package/dist/esm/data/appMiddleware.js +0 -31
- package/dist/esm/data/errorMiddleware.js +0 -11
- package/dist/esm/data/listenerMiddleware.js +0 -38
- package/dist/esm/data/queryMiddleware.js +0 -30
- package/dist/esm/data/react.js +0 -12
- package/dist/esm/data/useAppDispatch.js +0 -5
- package/dist/esm/data/useAppMiddleware.js +0 -14
- package/dist/esm/data/useAppSelector.js +0 -5
- package/dist/esm/data/useInjectListener.js +0 -17
- package/dist/esm/data/useInjectQuery.js +0 -15
- package/dist/esm/view/modals/wait-message/index.js +0 -40
- package/dist/types/lib/communication/http-client/baseQuery.d.ts +0 -14
- package/dist/types/lib/data/appMiddleware.d.ts +0 -8
- package/dist/types/lib/data/errorMiddleware.d.ts +0 -2
- package/dist/types/lib/data/listenerMiddleware.d.ts +0 -11
- package/dist/types/lib/data/queryMiddleware.d.ts +0 -11
- package/dist/types/lib/data/react.d.ts +0 -5
- package/dist/types/lib/data/useAppMiddleware.d.ts +0 -5
- package/dist/types/lib/data/useAppSelector.d.ts +0 -3
- package/dist/types/lib/data/useInjectListener.d.ts +0 -5
- package/dist/types/lib/data/useInjectQuery.d.ts +0 -7
- package/dist/types/lib/view/modals/wait-message/index.d.ts +0 -7
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
DSDialogFooter,
|
|
12
12
|
DSDialogSeparator
|
|
13
13
|
} from "@elliemae/ds-dialog";
|
|
14
|
-
import { useAppDispatch } from "../../../data/react.js";
|
|
14
|
+
import { useAppDispatch } from "../../../data/react-redux.js";
|
|
15
15
|
import { logout } from "../../../data/logout/actions.js";
|
|
16
16
|
import {
|
|
17
17
|
resetUserIdleTime,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
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
|
-
import { WaitMessageLauncher } from "../
|
|
4
|
+
import { WaitMessageLauncher } from "../wait-message/wait-message-launcher.js";
|
|
5
5
|
const renderWithHostData = (data) => {
|
|
6
6
|
const {
|
|
7
7
|
ComponentToRender,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect, useState } from "react";
|
|
3
|
-
import { useAppDispatch } from "../../data/react.js";
|
|
3
|
+
import { useAppDispatch } from "../../data/react-redux.js";
|
|
4
4
|
import { logout } from "../../data/logout/actions.js";
|
|
5
5
|
import {
|
|
6
6
|
initSessionMonitoring,
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { memo, useEffect } from "react";
|
|
3
|
+
import styled from "styled-components";
|
|
4
|
+
import { DSBackdrop } from "@elliemae/ds-backdrop";
|
|
5
|
+
import { DSCircularIndeterminateIndicator } from "@elliemae/ds-circular-progress-indicator";
|
|
6
|
+
import { useAppSelector } from "../../data/react-redux.js";
|
|
7
|
+
import { useHTMLWaitMessage } from "./use-html-wait-message.js";
|
|
8
|
+
import {
|
|
9
|
+
waitStartEvent,
|
|
10
|
+
waitEndEvent
|
|
11
|
+
} from "../../analytics/user-wait-event.js";
|
|
12
|
+
const StyledCircularIndicator = styled(DSCircularIndeterminateIndicator)`
|
|
13
|
+
position: absolute;
|
|
14
|
+
left: 50%;
|
|
15
|
+
top: 50%;
|
|
16
|
+
transform: translate(-50%, -50%);
|
|
17
|
+
`;
|
|
18
|
+
const WaitMessage = memo(
|
|
19
|
+
({
|
|
20
|
+
size = "xl",
|
|
21
|
+
color = "light",
|
|
22
|
+
showText = true,
|
|
23
|
+
withTooltip = false,
|
|
24
|
+
tooltipStartPlacementPreference = "center",
|
|
25
|
+
...rest
|
|
26
|
+
}) => {
|
|
27
|
+
const isOpen = useAppSelector((state) => state.waitMessage?.isOpen);
|
|
28
|
+
const message = useAppSelector((state) => state.waitMessage?.message);
|
|
29
|
+
useEffect(() => {
|
|
30
|
+
if (isOpen)
|
|
31
|
+
waitStartEvent();
|
|
32
|
+
else
|
|
33
|
+
waitEndEvent();
|
|
34
|
+
}, [isOpen]);
|
|
35
|
+
useHTMLWaitMessage(isOpen !== null);
|
|
36
|
+
return isOpen ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
37
|
+
/* @__PURE__ */ jsx(DSBackdrop, {}),
|
|
38
|
+
/* @__PURE__ */ jsx(
|
|
39
|
+
StyledCircularIndicator,
|
|
40
|
+
{
|
|
41
|
+
id: "em-loading",
|
|
42
|
+
size,
|
|
43
|
+
color,
|
|
44
|
+
showText,
|
|
45
|
+
withTooltip,
|
|
46
|
+
tooltipStartPlacementPreference,
|
|
47
|
+
...rest,
|
|
48
|
+
text: message
|
|
49
|
+
}
|
|
50
|
+
)
|
|
51
|
+
] }) : null;
|
|
52
|
+
}
|
|
53
|
+
);
|
|
54
|
+
export {
|
|
55
|
+
WaitMessage
|
|
56
|
+
};
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useEffect } from "react";
|
|
2
|
-
import { useAppDispatch } from "
|
|
3
|
-
import { waitMessage } from "
|
|
2
|
+
import { useAppDispatch } from "../../data/react-redux.js";
|
|
3
|
+
import { waitMessage } from "../../data/wait-message/actions.js";
|
|
4
4
|
const WaitMessageLauncher = () => {
|
|
5
5
|
const dispatch = useAppDispatch();
|
|
6
6
|
useEffect(() => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AxiosInstance, RawAxiosRequestHeaders, HeadersDefaults } from 'axios';
|
|
2
2
|
type AxiosRequestHeaders = RawAxiosRequestHeaders | Partial<HeadersDefaults>;
|
|
3
|
-
|
|
3
|
+
type RequestConfig = {
|
|
4
4
|
Authorization?: string;
|
|
5
5
|
} & AxiosRequestHeaders;
|
|
6
6
|
export declare const getHTTPClient: ({ baseURL, headers, }?: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { useInjectReducer, useInjectSaga, createManager, } from 'redux-injectors';
|
|
2
|
-
export { useAppDispatch, useAppSelector } from './react.js';
|
|
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';
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { Dispatch, PayloadAction, AnyAction } from '@reduxjs/toolkit';
|
|
2
|
+
import { TypedUseSelectorHook } from 'react-redux';
|
|
3
|
+
import { RootState } from './store.js';
|
|
2
4
|
import { WaitMessageState } from './wait-message/reducer.js';
|
|
3
5
|
import { BreakpointState } from './breakpoint/index.js';
|
|
4
6
|
import { ErrorState } from './error/index.js';
|
|
5
7
|
import { LiveMessageState } from './live-message/index.js';
|
|
6
8
|
type AppDispatch = Dispatch<PayloadAction<WaitMessageState> | PayloadAction<BreakpointState> | PayloadAction<ErrorState> | PayloadAction<LiveMessageState> | AnyAction>;
|
|
7
9
|
export declare const useAppDispatch: () => AppDispatch;
|
|
10
|
+
export declare const useAppSelector: TypedUseSelectorHook<RootState>;
|
|
8
11
|
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Middleware } from 'redux';
|
|
2
1
|
import { History } from 'history';
|
|
3
2
|
declare const rootReducer: import("redux").Reducer<import("redux").CombinedState<{
|
|
4
3
|
waitMessage: import("./wait-message/reducer.js").WaitMessageState;
|
|
@@ -16,7 +15,7 @@ export type RootState = ReturnType<typeof rootReducer>;
|
|
|
16
15
|
export declare const setStore: <T>(store: T) => void;
|
|
17
16
|
export declare const getStore: () => unknown;
|
|
18
17
|
type MiddlewareConfig = {
|
|
19
|
-
thunk
|
|
18
|
+
thunk: boolean;
|
|
20
19
|
};
|
|
21
20
|
export declare const createAppStore: (initialState: import("redux").CombinedState<{
|
|
22
21
|
waitMessage: import("./wait-message/reducer.js").WaitMessageState;
|
|
@@ -34,11 +33,11 @@ export declare const createAppStore: (initialState: import("redux").CombinedStat
|
|
|
34
33
|
} | import("redux").AnyAction | {
|
|
35
34
|
payload: import("./breakpoint/index.js").Breakpoints;
|
|
36
35
|
type: string;
|
|
37
|
-
}, import("@reduxjs/toolkit").MiddlewareArray<[
|
|
36
|
+
}, import("@reduxjs/toolkit").MiddlewareArray<[import("@reduxjs/toolkit").ThunkMiddleware<import("redux").CombinedState<{
|
|
38
37
|
waitMessage: import("./wait-message/reducer.js").WaitMessageState;
|
|
39
38
|
error: import("./error/index.js").ErrorState;
|
|
40
39
|
breakpoint: import("./breakpoint/index.js").BreakpointState;
|
|
41
40
|
liveMessage: import("./live-message/index.js").LiveMessageState;
|
|
42
|
-
}>, import("redux").AnyAction, undefined>,
|
|
41
|
+
}>, import("redux").AnyAction, undefined>, import("redux-saga").SagaMiddleware<object>]>>;
|
|
43
42
|
export type AppStore = ReturnType<typeof createAppStore>;
|
|
44
43
|
export {};
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
export { isUserAuthorized, login, authorize } from './utils/auth/index.js';
|
|
2
2
|
export { getHTTPClient, getAuthHTTPClient, } from './communication/http-client/index.js';
|
|
3
|
-
export { sdkBaseQuery } from './communication/http-client/baseQuery.js';
|
|
4
3
|
export { onAuthorizationFailure } from './communication/http-client/response-interceptor.js';
|
|
5
4
|
export { auth } from './data/auth/actions.js';
|
|
6
5
|
export { RequireAuth } from './view/require-auth.js';
|
|
7
6
|
export { Page } from './view/page.js';
|
|
8
7
|
export { default as globalConstants } from './utils/constants.js';
|
|
8
|
+
export { useAppDispatch, useAppSelector } from './data/react-redux.js';
|
|
9
9
|
export { useInjectReducer, useInjectSaga, createManager, } from 'redux-injectors';
|
|
10
|
-
export { useInjectQuery, useInjectListener, useAppDispatch, useAppSelector, useAppMiddleware, } from './data/react.js';
|
|
11
|
-
export { errorMiddleware } from './data/errorMiddleware.js';
|
|
12
10
|
export { getAuthorizationHeader } from './utils/auth/helper.js';
|
|
13
11
|
export { getRedirectUrl, removeDoubleSlash } from './utils/url.js';
|
|
14
12
|
export { createAppStore as configureStore } from './data/store.js';
|
|
@@ -16,7 +14,7 @@ export { browserHistory as history, memoryHistory } from './utils/history.js';
|
|
|
16
14
|
export { Themes } from './utils/constants.js';
|
|
17
15
|
export { ACTIONS as NavigationPromptActions } from './data/navigation-prompt/actions.js';
|
|
18
16
|
export { loadable } from './view/loadable/index.js';
|
|
19
|
-
export { WaitMessage } from './view/
|
|
17
|
+
export { WaitMessage } from './view/wait-message/index.js';
|
|
20
18
|
export { SessionTimeout } from './view/session-timeout/index.js';
|
|
21
19
|
export { subscribeToSessionExpiryWarning, subscribeToSessionExpiry, subscribeToResetSession, resetUserIdleTime, trackActivity, } from './utils/session.js';
|
|
22
20
|
export { waitMessage as waitMessageAction } from './data/wait-message/actions.js';
|
|
@@ -54,6 +52,7 @@ export { TextBox } from './view/fields/text-box/index.js';
|
|
|
54
52
|
export { InputText } from './view/fields/input-text/index.js';
|
|
55
53
|
export { LargeTextBox } from './view/fields/large-text-box/index.js';
|
|
56
54
|
export { InputMask, MASK_TYPES, MASK_PIPES, } from './view/fields/input-mask/index.js';
|
|
55
|
+
export { MaskedInputText } from './view/fields/masked-input-text/index.js';
|
|
57
56
|
export { ComboBox } from './view/fields/combo-box/index.js';
|
|
58
57
|
export { ComboBoxV3 } from './view/fields/combo-box-v3/index.js';
|
|
59
58
|
export { CheckBox } from './view/fields/check-box/index.js';
|
|
@@ -16,12 +16,12 @@ 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, undefined>,
|
|
24
|
+
}>, import("redux").AnyAction, undefined>, import("redux-saga").SagaMiddleware<object>]>>;
|
|
25
25
|
container: HTMLElement;
|
|
26
26
|
baseElement: HTMLElement;
|
|
27
27
|
debug: (baseElement?: Element | DocumentFragment | (Element | DocumentFragment)[] | undefined, maxLength?: number | undefined, options?: import("pretty-format").PrettyFormatOptions | undefined) => void;
|
|
@@ -19,12 +19,12 @@ 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, undefined>,
|
|
27
|
+
}>, import("redux").AnyAction, undefined>, import("redux-saga").SagaMiddleware<object>]>>;
|
|
28
28
|
container: HTMLElement;
|
|
29
29
|
baseElement: HTMLElement;
|
|
30
30
|
debug: (baseElement?: Element | DocumentFragment | (Element | DocumentFragment)[] | undefined, maxLength?: number | undefined, options?: import("pretty-format").PrettyFormatOptions | undefined) => void;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { DSCircularIndeterminateIndicator } from '@elliemae/ds-circular-progress-indicator';
|
|
3
|
+
type CircularIndicatorProps = React.ComponentProps<typeof DSCircularIndeterminateIndicator>;
|
|
4
|
+
export interface WaitMessageProps {
|
|
5
|
+
size?: CircularIndicatorProps['size'];
|
|
6
|
+
color?: CircularIndicatorProps['color'];
|
|
7
|
+
showText?: CircularIndicatorProps['showText'];
|
|
8
|
+
withTooltip?: CircularIndicatorProps['withTooltip'];
|
|
9
|
+
tooltipStartPlacementPreference?: CircularIndicatorProps['tooltipStartPlacementPreference'];
|
|
10
|
+
[x: string]: any;
|
|
11
|
+
}
|
|
12
|
+
export declare const WaitMessage: import("react").NamedExoticComponent<WaitMessageProps>;
|
|
13
|
+
export {};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/pui-app-sdk",
|
|
3
|
-
"version": "4.11.
|
|
3
|
+
"version": "4.11.1",
|
|
4
4
|
"description": "ICE MT UI Platform Application SDK ",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"*.css",
|
|
@@ -112,8 +112,10 @@
|
|
|
112
112
|
},
|
|
113
113
|
"peerDependencies": {
|
|
114
114
|
"@elliemae/app-react-dependencies": "^4.6.1",
|
|
115
|
+
"@elliemae/ds-backdrop": "^3.13.1",
|
|
115
116
|
"@elliemae/ds-basic": "^3.13.1",
|
|
116
117
|
"@elliemae/ds-button": "^3.13.1",
|
|
118
|
+
"@elliemae/ds-circular-progress-indicator": "^3.13.1",
|
|
117
119
|
"@elliemae/ds-controlled-form": "^3.13.1",
|
|
118
120
|
"@elliemae/ds-date-picker": "^3.13.1",
|
|
119
121
|
"@elliemae/ds-date-range-picker": "^3.13.1",
|
|
@@ -121,7 +123,6 @@
|
|
|
121
123
|
"@elliemae/ds-form": "^3.13.1",
|
|
122
124
|
"@elliemae/ds-form-layout-blocks": "^3.13.1",
|
|
123
125
|
"@elliemae/ds-grid": "^3.13.1",
|
|
124
|
-
"@elliemae/ds-loading-indicator": "^3.13.1",
|
|
125
126
|
"@elliemae/ds-modal": "^3.13.1",
|
|
126
127
|
"@elliemae/ds-popperjs": "^3.13.1",
|
|
127
128
|
"@elliemae/ds-toast": "^3.13.1",
|
|
@@ -135,8 +136,10 @@
|
|
|
135
136
|
"devDependencies": {
|
|
136
137
|
"@elliemae/app-react-dependencies": "~4.6.1",
|
|
137
138
|
"@elliemae/browserslist-config-elliemae-latest-browsers": "~1.6.0",
|
|
139
|
+
"@elliemae/ds-backdrop": "~3.13.1",
|
|
138
140
|
"@elliemae/ds-basic": "~3.13.1",
|
|
139
141
|
"@elliemae/ds-button": "~3.13.1",
|
|
142
|
+
"@elliemae/ds-circular-progress-indicator": "~3.13.1",
|
|
140
143
|
"@elliemae/ds-controlled-form": "~3.13.1",
|
|
141
144
|
"@elliemae/ds-date-picker": "~3.13.1",
|
|
142
145
|
"@elliemae/ds-date-range-picker": "~3.13.1",
|
|
@@ -144,7 +147,6 @@
|
|
|
144
147
|
"@elliemae/ds-form": "~3.13.1",
|
|
145
148
|
"@elliemae/ds-form-layout-blocks": "~3.13.1",
|
|
146
149
|
"@elliemae/ds-grid": "~3.13.1",
|
|
147
|
-
"@elliemae/ds-loading-indicator": "~3.13.1",
|
|
148
150
|
"@elliemae/ds-modal": "~3.13.1",
|
|
149
151
|
"@elliemae/ds-popperjs": "~3.13.1",
|
|
150
152
|
"@elliemae/ds-toast": "~3.13.1",
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var baseQuery_exports = {};
|
|
20
|
-
__export(baseQuery_exports, {
|
|
21
|
-
sdkBaseQuery: () => sdkBaseQuery
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(baseQuery_exports);
|
|
24
|
-
var import_index = require("./index.js");
|
|
25
|
-
const sdkBaseQuery = ({ baseUrl } = {}) => async ({ url, method, data, params, headers }) => {
|
|
26
|
-
try {
|
|
27
|
-
const result = await (0, import_index.getAuthHTTPClient)({
|
|
28
|
-
baseURL: baseUrl,
|
|
29
|
-
headers
|
|
30
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
31
|
-
}).request({ url, method, data, params });
|
|
32
|
-
return { data: result.data };
|
|
33
|
-
} catch (axiosError) {
|
|
34
|
-
const err = axiosError;
|
|
35
|
-
return {
|
|
36
|
-
error: {
|
|
37
|
-
status: err.response?.status,
|
|
38
|
-
data: err.response?.data || err.message
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
};
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var appMiddleware_exports = {};
|
|
20
|
-
__export(appMiddleware_exports, {
|
|
21
|
-
addMiddleware: () => addMiddleware,
|
|
22
|
-
appMiddleware: () => appMiddleware,
|
|
23
|
-
removeMiddleware: () => removeMiddleware,
|
|
24
|
-
resetMiddlewares: () => resetMiddlewares
|
|
25
|
-
});
|
|
26
|
-
module.exports = __toCommonJS(appMiddleware_exports);
|
|
27
|
-
var import_redux = require("redux");
|
|
28
|
-
const middlewareDispatchFns = /* @__PURE__ */ new Map();
|
|
29
|
-
let store;
|
|
30
|
-
const appMiddleware = (_store) => {
|
|
31
|
-
store = _store;
|
|
32
|
-
const dispatchFns = Array.from(middlewareDispatchFns.values());
|
|
33
|
-
return (next) => (action) => (
|
|
34
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
35
|
-
(0, import_redux.compose)(...dispatchFns)(next)(action)
|
|
36
|
-
);
|
|
37
|
-
};
|
|
38
|
-
const addMiddleware = ({
|
|
39
|
-
key,
|
|
40
|
-
middleware
|
|
41
|
-
}) => {
|
|
42
|
-
if (middlewareDispatchFns.has(key) || !store)
|
|
43
|
-
return;
|
|
44
|
-
middlewareDispatchFns.set(key, middleware(store));
|
|
45
|
-
};
|
|
46
|
-
const removeMiddleware = (key) => {
|
|
47
|
-
middlewareDispatchFns.delete(key);
|
|
48
|
-
};
|
|
49
|
-
const resetMiddlewares = () => {
|
|
50
|
-
middlewareDispatchFns.clear();
|
|
51
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var errorMiddleware_exports = {};
|
|
20
|
-
__export(errorMiddleware_exports, {
|
|
21
|
-
errorMiddleware: () => errorMiddleware
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(errorMiddleware_exports);
|
|
24
|
-
var import_toolkit = require("@reduxjs/toolkit");
|
|
25
|
-
var import_error = require("./error/index.js");
|
|
26
|
-
const errorMiddleware = (api) => (next) => (action) => {
|
|
27
|
-
if ((0, import_toolkit.isRejectedWithValue)(action)) {
|
|
28
|
-
api.dispatch(import_error.actions.set({ messageText: action?.error?.data?.message }));
|
|
29
|
-
}
|
|
30
|
-
return next(action);
|
|
31
|
-
};
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var listenerMiddleware_exports = {};
|
|
20
|
-
__export(listenerMiddleware_exports, {
|
|
21
|
-
addListener: () => addListener,
|
|
22
|
-
listenerMiddleware: () => listenerMiddleware,
|
|
23
|
-
removeListener: () => removeListener,
|
|
24
|
-
resetListeners: () => resetListeners
|
|
25
|
-
});
|
|
26
|
-
module.exports = __toCommonJS(listenerMiddleware_exports);
|
|
27
|
-
var import_toolkit = require("@reduxjs/toolkit");
|
|
28
|
-
let listenerAPI;
|
|
29
|
-
const rtkListenerMiddleware = (0, import_toolkit.createListenerMiddleware)();
|
|
30
|
-
const listenerDispatchFns = /* @__PURE__ */ new Map();
|
|
31
|
-
const listenerMiddleware = (_listenerAPI) => {
|
|
32
|
-
listenerAPI = _listenerAPI;
|
|
33
|
-
return rtkListenerMiddleware.middleware(listenerAPI);
|
|
34
|
-
};
|
|
35
|
-
const addListener = ({
|
|
36
|
-
key,
|
|
37
|
-
listener
|
|
38
|
-
}) => {
|
|
39
|
-
if (listenerDispatchFns.has(key) && listenerAPI) {
|
|
40
|
-
listenerDispatchFns.set(key, listener);
|
|
41
|
-
return rtkListenerMiddleware.startListening(listener);
|
|
42
|
-
}
|
|
43
|
-
return null;
|
|
44
|
-
};
|
|
45
|
-
const removeListener = (key) => {
|
|
46
|
-
const listener = listenerDispatchFns.get(key);
|
|
47
|
-
if (listener) {
|
|
48
|
-
listenerDispatchFns.delete(key);
|
|
49
|
-
return rtkListenerMiddleware.stopListening(listener);
|
|
50
|
-
}
|
|
51
|
-
return true;
|
|
52
|
-
};
|
|
53
|
-
const resetListeners = () => {
|
|
54
|
-
listenerDispatchFns.forEach((listener) => {
|
|
55
|
-
rtkListenerMiddleware.stopListening(listener);
|
|
56
|
-
});
|
|
57
|
-
listenerDispatchFns.clear();
|
|
58
|
-
};
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var queryMiddleware_exports = {};
|
|
20
|
-
__export(queryMiddleware_exports, {
|
|
21
|
-
addMiddleware: () => addMiddleware,
|
|
22
|
-
queryMiddleware: () => queryMiddleware,
|
|
23
|
-
removeMiddleware: () => removeMiddleware,
|
|
24
|
-
resetMiddlewares: () => resetMiddlewares
|
|
25
|
-
});
|
|
26
|
-
module.exports = __toCommonJS(queryMiddleware_exports);
|
|
27
|
-
var import_redux = require("redux");
|
|
28
|
-
const middlewareDispatchFns = /* @__PURE__ */ new Map();
|
|
29
|
-
let store;
|
|
30
|
-
const queryMiddleware = (_store) => {
|
|
31
|
-
store = _store;
|
|
32
|
-
return (next) => (action) => (
|
|
33
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
34
|
-
(0, import_redux.compose)(...middlewareDispatchFns.values())(next)(action)
|
|
35
|
-
);
|
|
36
|
-
};
|
|
37
|
-
const addMiddleware = ({
|
|
38
|
-
reducerPath,
|
|
39
|
-
middleware
|
|
40
|
-
}) => {
|
|
41
|
-
if (middlewareDispatchFns.has(reducerPath) || !store)
|
|
42
|
-
return;
|
|
43
|
-
middlewareDispatchFns.set(reducerPath, middleware(store));
|
|
44
|
-
};
|
|
45
|
-
const removeMiddleware = (reducerPath) => {
|
|
46
|
-
middlewareDispatchFns.delete(reducerPath);
|
|
47
|
-
};
|
|
48
|
-
const resetMiddlewares = () => {
|
|
49
|
-
middlewareDispatchFns.clear();
|
|
50
|
-
};
|
package/dist/cjs/data/react.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var react_exports = {};
|
|
20
|
-
__export(react_exports, {
|
|
21
|
-
useAppDispatch: () => import_useAppDispatch.useAppDispatch,
|
|
22
|
-
useAppMiddleware: () => import_useAppMiddleware.useAppMiddleware,
|
|
23
|
-
useAppSelector: () => import_useAppSelector.useAppSelector,
|
|
24
|
-
useInjectListener: () => import_useInjectListener.useInjectListener,
|
|
25
|
-
useInjectQuery: () => import_useInjectQuery.useInjectQuery
|
|
26
|
-
});
|
|
27
|
-
module.exports = __toCommonJS(react_exports);
|
|
28
|
-
var import_useInjectQuery = require("./useInjectQuery.js");
|
|
29
|
-
var import_useInjectListener = require("./useInjectListener.js");
|
|
30
|
-
var import_useAppDispatch = require("./useAppDispatch.js");
|
|
31
|
-
var import_useAppSelector = require("./useAppSelector.js");
|
|
32
|
-
var import_useAppMiddleware = require("./useAppMiddleware.js");
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var useAppDispatch_exports = {};
|
|
20
|
-
__export(useAppDispatch_exports, {
|
|
21
|
-
useAppDispatch: () => useAppDispatch
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(useAppDispatch_exports);
|
|
24
|
-
var import_react_redux = require("react-redux");
|
|
25
|
-
const useAppDispatch = () => (0, import_react_redux.useDispatch)();
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var useAppMiddleware_exports = {};
|
|
20
|
-
__export(useAppMiddleware_exports, {
|
|
21
|
-
useAppMiddleware: () => useAppMiddleware
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(useAppMiddleware_exports);
|
|
24
|
-
var import_react = require("react");
|
|
25
|
-
var import_appMiddleware = require("./appMiddleware.js");
|
|
26
|
-
const useAppMiddleware = ({
|
|
27
|
-
key,
|
|
28
|
-
middleware
|
|
29
|
-
}) => (0, import_react.useEffect)(() => {
|
|
30
|
-
(0, import_appMiddleware.addMiddleware)({ key, middleware });
|
|
31
|
-
return () => {
|
|
32
|
-
(0, import_appMiddleware.removeMiddleware)(key);
|
|
33
|
-
};
|
|
34
|
-
}, [key, middleware]);
|