@elliemae/pui-app-sdk 4.12.0-beta.2 → 4.12.0-next.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 +9 -12
- package/dist/cjs/utils/log-records.js +15 -15
- package/dist/cjs/utils/micro-frontend/console-logger.js +1 -2
- 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/login/index.js +2 -2
- package/dist/cjs/view/micro-app/app-factory/index.js +1 -1
- package/dist/cjs/view/micro-app/resources/manifest.js +1 -1
- 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/session-timeout/index.js +2 -2
- package/dist/cjs/view/wait-message/index.js +3 -3
- package/dist/cjs/view/wait-message/wait-message-launcher.js +2 -2
- 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 +5 -14
- package/dist/esm/utils/log-records.js +15 -15
- package/dist/esm/utils/micro-frontend/console-logger.js +1 -2
- 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/login/index.js +1 -1
- package/dist/esm/view/micro-app/app-factory/index.js +1 -1
- package/dist/esm/view/micro-app/resources/manifest.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/session-timeout/index.js +1 -1
- package/dist/esm/view/wait-message/index.js +1 -1
- package/dist/esm/view/wait-message/wait-message-launcher.js +1 -1
- 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 -3
- package/dist/types/lib/utils/log-records.d.ts +36 -16
- 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/package.json +6 -6
- 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/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/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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Fragment, 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 { login } from "../../utils/auth/index.js";
|
|
5
5
|
import { LOGIN_SUCCESS } from "../../data/auth/actions.js";
|
|
6
6
|
const Login = ({
|
|
@@ -103,7 +103,7 @@ const waitAndInitApplication = (appConfig, requests) => (
|
|
|
103
103
|
Promise.all(requests).then(addAppToActiveAppList.bind(null, appConfig.id)).then(initApplication.bind(null, appConfig)).catch((err) => {
|
|
104
104
|
const logRecord = logRecords.APP_INIT_FAILED(appConfig.id, err.message);
|
|
105
105
|
getLogger().error({ ...logRecord, exception: err });
|
|
106
|
-
throw new Error(logRecord.
|
|
106
|
+
throw new Error(logRecord.message);
|
|
107
107
|
})
|
|
108
108
|
);
|
|
109
109
|
const removeAssetsFromDOM = (id, documentEle = document) => {
|
|
@@ -37,7 +37,7 @@ const getFullFileNameofAssetsFromManifest = (manifest, assetNames = []) => asset
|
|
|
37
37
|
else {
|
|
38
38
|
const logRecord = logRecords.ASSET_NOT_FOUND_IN_MANIFEST(assetName);
|
|
39
39
|
getLogger().error(logRecord);
|
|
40
|
-
throw new Error(logRecord.
|
|
40
|
+
throw new Error(logRecord.message);
|
|
41
41
|
}
|
|
42
42
|
return assets;
|
|
43
43
|
}, []);
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
DSDialogSeparator,
|
|
11
11
|
DSDialogAddon
|
|
12
12
|
} from "@elliemae/ds-dialog";
|
|
13
|
-
import { useAppDispatch } from "../../../data/react.js";
|
|
13
|
+
import { useAppDispatch } from "../../../data/react-redux.js";
|
|
14
14
|
import { navigationPrompt } from "../../../data/navigation-prompt/actions.js";
|
|
15
15
|
const NavigationPrompt = memo(
|
|
16
16
|
({ open = false }) => {
|
|
@@ -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,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,
|
|
@@ -3,7 +3,7 @@ import { memo, useEffect } 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";
|
|
6
|
-
import { useAppSelector } from "../../data/react.js";
|
|
6
|
+
import { useAppSelector } from "../../data/react-redux.js";
|
|
7
7
|
import { useHTMLWaitMessage } from "./use-html-wait-message.js";
|
|
8
8
|
import {
|
|
9
9
|
waitStartEvent,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useEffect } from "react";
|
|
2
|
-
import { useAppDispatch } from "../../data/react.js";
|
|
2
|
+
import { useAppDispatch } from "../../data/react-redux.js";
|
|
3
3
|
import { waitMessage } from "../../data/wait-message/actions.js";
|
|
4
4
|
const WaitMessageLauncher = () => {
|
|
5
5
|
const dispatch = useAppDispatch();
|
|
@@ -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,14 @@
|
|
|
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';
|
|
6
|
+
export { authentication as authSaga } from './sideeffect/auth/index.js';
|
|
7
|
+
export { authReducer } from './data/auth/reducer.js';
|
|
7
8
|
export { Page } from './view/page.js';
|
|
8
9
|
export { default as globalConstants } from './utils/constants.js';
|
|
10
|
+
export { useAppDispatch, useAppSelector } from './data/react-redux.js';
|
|
9
11
|
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
12
|
export { getAuthorizationHeader } from './utils/auth/helper.js';
|
|
13
13
|
export { getRedirectUrl, removeDoubleSlash } from './utils/url.js';
|
|
14
14
|
export { createAppStore as configureStore } from './data/store.js';
|
|
@@ -1,42 +1,62 @@
|
|
|
1
|
-
import { InputLogRecord } from '@elliemae/pui-diagnostics';
|
|
2
1
|
export declare const logRecords: {
|
|
3
2
|
ERR_TOAST_OPEN_FAILED: {
|
|
4
3
|
code: string;
|
|
5
|
-
|
|
4
|
+
message: string;
|
|
6
5
|
};
|
|
7
6
|
WAIT_MSG_OPEN_FAILED: {
|
|
8
7
|
code: string;
|
|
9
|
-
|
|
8
|
+
message: string;
|
|
10
9
|
};
|
|
11
10
|
WAIT_MSG_CLOSE_FAILED: {
|
|
12
11
|
code: string;
|
|
13
|
-
|
|
12
|
+
message: string;
|
|
14
13
|
};
|
|
15
14
|
APP_CONFIG_LOAD_FAILED: {
|
|
16
15
|
code: string;
|
|
17
|
-
|
|
16
|
+
message: string;
|
|
17
|
+
};
|
|
18
|
+
ASSET_NOT_FOUND_IN_MANIFEST: (assetName: string) => {
|
|
19
|
+
code: string;
|
|
20
|
+
message: string;
|
|
21
|
+
};
|
|
22
|
+
APP_INIT_FAILED: (appId: string, errMsg: string) => {
|
|
23
|
+
code: string;
|
|
24
|
+
message: string;
|
|
25
|
+
};
|
|
26
|
+
APP_LOADING: (appId: string) => {
|
|
27
|
+
code: string;
|
|
28
|
+
message: string;
|
|
29
|
+
};
|
|
30
|
+
APP_LOADING_COMPLETE: (appId: string) => {
|
|
31
|
+
code: string;
|
|
32
|
+
message: string;
|
|
33
|
+
};
|
|
34
|
+
APP_UNLOADING: (appId: string) => {
|
|
35
|
+
code: string;
|
|
36
|
+
message: string;
|
|
37
|
+
};
|
|
38
|
+
APP_UNLOADING_COMPLETE: (appId: string) => {
|
|
39
|
+
code: string;
|
|
40
|
+
message: string;
|
|
41
|
+
};
|
|
42
|
+
SSF_HOST_OBJECT_NOT_FOUND: (name: string) => {
|
|
43
|
+
code: string;
|
|
44
|
+
message: string;
|
|
18
45
|
};
|
|
19
|
-
ASSET_NOT_FOUND_IN_MANIFEST: (assetName: string) => InputLogRecord;
|
|
20
|
-
APP_INIT_FAILED: (appId: string, errMsg: string) => InputLogRecord;
|
|
21
|
-
APP_LOADING: (appId: string) => InputLogRecord;
|
|
22
|
-
APP_LOADING_COMPLETE: (appId: string) => InputLogRecord;
|
|
23
|
-
APP_UNLOADING: (appId: string) => InputLogRecord;
|
|
24
|
-
APP_UNLOADING_COMPLETE: (appId: string) => InputLogRecord;
|
|
25
|
-
SSF_HOST_OBJECT_NOT_FOUND: (name: string) => InputLogRecord;
|
|
26
46
|
LOGIN_FAILED: {
|
|
27
47
|
code: string;
|
|
28
|
-
|
|
48
|
+
message: string;
|
|
29
49
|
};
|
|
30
50
|
LOGOUT_FAILED: {
|
|
31
51
|
code: string;
|
|
32
|
-
|
|
52
|
+
message: string;
|
|
33
53
|
};
|
|
34
54
|
SERVICE_WORKER_FAILED: {
|
|
35
55
|
code: string;
|
|
36
|
-
|
|
56
|
+
message: string;
|
|
37
57
|
};
|
|
38
58
|
UNHANDLED_ERROR: {
|
|
39
59
|
code: string;
|
|
40
|
-
|
|
60
|
+
message: string;
|
|
41
61
|
};
|
|
42
62
|
};
|
|
@@ -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;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/pui-app-sdk",
|
|
3
|
-
"version": "4.12.0-
|
|
3
|
+
"version": "4.12.0-next.1",
|
|
4
4
|
"description": "ICE MT UI Platform Application SDK ",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"*.css",
|
|
@@ -127,9 +127,9 @@
|
|
|
127
127
|
"@elliemae/ds-popperjs": "^3.13.1",
|
|
128
128
|
"@elliemae/ds-toast": "^3.13.1",
|
|
129
129
|
"@elliemae/em-ssf-guest": "^1.11.2",
|
|
130
|
-
"@elliemae/pui-diagnostics": "^
|
|
130
|
+
"@elliemae/pui-diagnostics": "^3.0.0",
|
|
131
131
|
"@elliemae/pui-micro-frontend-base": "^1.14.0",
|
|
132
|
-
"@elliemae/pui-scripting-object": "^1.
|
|
132
|
+
"@elliemae/pui-scripting-object": "^1.19.0",
|
|
133
133
|
"@elliemae/pui-theme": "^2.6.0",
|
|
134
134
|
"@elliemae/pui-user-monitoring": "^1.18.1"
|
|
135
135
|
},
|
|
@@ -151,12 +151,12 @@
|
|
|
151
151
|
"@elliemae/ds-popperjs": "~3.13.1",
|
|
152
152
|
"@elliemae/ds-toast": "~3.13.1",
|
|
153
153
|
"@elliemae/em-ssf-guest": "~1.11.2",
|
|
154
|
-
"@elliemae/pui-cli": "~7.
|
|
155
|
-
"@elliemae/pui-diagnostics": "~
|
|
154
|
+
"@elliemae/pui-cli": "~7.27.0",
|
|
155
|
+
"@elliemae/pui-diagnostics": "~3.0.0",
|
|
156
156
|
"@elliemae/pui-doc-gen": "~1.4.1",
|
|
157
157
|
"@elliemae/pui-e2e-test-sdk": "~7.7.1",
|
|
158
158
|
"@elliemae/pui-micro-frontend-base": "~1.14.0",
|
|
159
|
-
"@elliemae/pui-scripting-object": "~1.
|
|
159
|
+
"@elliemae/pui-scripting-object": "~1.19.0",
|
|
160
160
|
"@elliemae/pui-theme": "~2.6.0",
|
|
161
161
|
"@elliemae/pui-user-monitoring": "~1.18.1",
|
|
162
162
|
"@types/react-aria-live": "~2.0.2"
|
|
@@ -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]);
|