@elliemae/pui-app-sdk 4.9.0 → 4.9.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/view/app-root/index.js +13 -9
- package/dist/cjs/view/error-boundary/index.js +2 -1
- package/dist/cjs/view/live-message/index.js +1 -2
- package/dist/cjs/view/micro-app/resources/manifest.js +1 -1
- package/dist/esm/view/app-root/index.js +14 -10
- package/dist/esm/view/error-boundary/index.js +2 -1
- package/dist/esm/view/live-message/index.js +1 -2
- package/dist/esm/view/micro-app/resources/manifest.js +1 -1
- package/dist/types/lib/data/live-message/index.d.ts +2 -2
- package/dist/types/lib/view/app-root/index.d.ts +2 -1
- package/package.json +34 -33
|
@@ -43,12 +43,16 @@ const AppRoot = ({
|
|
|
43
43
|
manageSession = false,
|
|
44
44
|
WaitMessage,
|
|
45
45
|
errorTemplate,
|
|
46
|
-
children
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
46
|
+
children,
|
|
47
|
+
strictMode = true
|
|
48
|
+
}) => {
|
|
49
|
+
const ParentEle = strictMode ? import_react.StrictMode : import_react.Fragment;
|
|
50
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ParentEle, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_error_boundary.ErrorBoundary, { errorTemplate, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_redux.Provider, { store, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_app_router.AppRouter, { history, basename, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styled_components.ThemeProvider, { theme, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
51
|
+
AppToRender,
|
|
52
|
+
{
|
|
53
|
+
manageSession,
|
|
54
|
+
WaitMessage,
|
|
55
|
+
children
|
|
56
|
+
}
|
|
57
|
+
) }) }) }) }) });
|
|
58
|
+
};
|
|
@@ -26,7 +26,6 @@ var import_react_aria_live = require("react-aria-live");
|
|
|
26
26
|
var import_react_redux = require("../../data/react-redux.js");
|
|
27
27
|
const LiveMessage = () => {
|
|
28
28
|
const message = (0, import_react_redux.useAppSelector)((state) => state.liveMessage?.message);
|
|
29
|
-
const id = (0, import_react_redux.useAppSelector)((state) => state.liveMessage?.id);
|
|
30
29
|
const ariaLive = (0, import_react_redux.useAppSelector)((state) => state.liveMessage?.ariaLive);
|
|
31
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_aria_live.LiveMessage, { message, "aria-live": ariaLive
|
|
30
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_aria_live.LiveMessage, { message, "aria-live": ariaLive });
|
|
32
31
|
};
|
|
@@ -43,7 +43,7 @@ const getAppManifest = async ({
|
|
|
43
43
|
(0, import_url.removeDoubleSlash)(url.href)
|
|
44
44
|
);
|
|
45
45
|
const { headers } = response;
|
|
46
|
-
if (headers["content-type"]
|
|
46
|
+
if (headers["content-type"]?.includes?.("application/json"))
|
|
47
47
|
return response.data;
|
|
48
48
|
const unVersionedManifestPath = getUnVersionedManifestPath(manifestPath);
|
|
49
49
|
if (manifestPath !== unVersionedManifestPath) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { StrictMode } from "react";
|
|
2
|
+
import { StrictMode, Fragment } from "react";
|
|
3
3
|
import { Provider } from "react-redux";
|
|
4
4
|
import { ThemeProvider } from "styled-components";
|
|
5
5
|
import { getDefaultTheme } from "@elliemae/pui-theme";
|
|
@@ -20,15 +20,19 @@ const AppRoot = ({
|
|
|
20
20
|
manageSession = false,
|
|
21
21
|
WaitMessage,
|
|
22
22
|
errorTemplate,
|
|
23
|
-
children
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
23
|
+
children,
|
|
24
|
+
strictMode = true
|
|
25
|
+
}) => {
|
|
26
|
+
const ParentEle = strictMode ? StrictMode : Fragment;
|
|
27
|
+
return /* @__PURE__ */ jsx(ParentEle, { children: /* @__PURE__ */ jsx(ErrorBoundary, { errorTemplate, children: /* @__PURE__ */ jsx(Provider, { store, children: /* @__PURE__ */ jsx(AppRouter, { history, basename, children: /* @__PURE__ */ jsx(ThemeProvider, { theme, children: /* @__PURE__ */ jsx(
|
|
28
|
+
AppToRender,
|
|
29
|
+
{
|
|
30
|
+
manageSession,
|
|
31
|
+
WaitMessage,
|
|
32
|
+
children
|
|
33
|
+
}
|
|
34
|
+
) }) }) }) }) });
|
|
35
|
+
};
|
|
32
36
|
export {
|
|
33
37
|
AppRoot
|
|
34
38
|
};
|
|
@@ -3,9 +3,8 @@ import { LiveMessage as AriaLiveMessage } from "react-aria-live";
|
|
|
3
3
|
import { useAppSelector } from "../../data/react-redux.js";
|
|
4
4
|
const LiveMessage = () => {
|
|
5
5
|
const message = useAppSelector((state) => state.liveMessage?.message);
|
|
6
|
-
const id = useAppSelector((state) => state.liveMessage?.id);
|
|
7
6
|
const ariaLive = useAppSelector((state) => state.liveMessage?.ariaLive);
|
|
8
|
-
return /* @__PURE__ */ jsx(AriaLiveMessage, { message, "aria-live": ariaLive
|
|
7
|
+
return /* @__PURE__ */ jsx(AriaLiveMessage, { message, "aria-live": ariaLive });
|
|
9
8
|
};
|
|
10
9
|
export {
|
|
11
10
|
LiveMessage
|
|
@@ -19,7 +19,7 @@ const getAppManifest = async ({
|
|
|
19
19
|
removeDoubleSlash(url.href)
|
|
20
20
|
);
|
|
21
21
|
const { headers } = response;
|
|
22
|
-
if (headers["content-type"]
|
|
22
|
+
if (headers["content-type"]?.includes?.("application/json"))
|
|
23
23
|
return response.data;
|
|
24
24
|
const unVersionedManifestPath = getUnVersionedManifestPath(manifestPath);
|
|
25
25
|
if (manifestPath !== unVersionedManifestPath) {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
2
|
export interface LiveMessageState {
|
|
3
3
|
message: string;
|
|
4
|
-
ariaLive: 'polite' | 'assertive'
|
|
4
|
+
ariaLive: 'polite' | 'assertive';
|
|
5
5
|
id?: string;
|
|
6
6
|
}
|
|
7
7
|
export declare const actions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
8
8
|
announce: (state: import("immer/dist/internal").WritableDraft<LiveMessageState>, { payload: { message, ariaLive, id } }: PayloadAction<LiveMessageState>) => {
|
|
9
9
|
message: string;
|
|
10
|
-
ariaLive: "polite" | "assertive"
|
|
10
|
+
ariaLive: "polite" | "assertive";
|
|
11
11
|
id: string | undefined;
|
|
12
12
|
};
|
|
13
13
|
}, "liveMessage">;
|
|
@@ -11,6 +11,7 @@ type AppRootProps = {
|
|
|
11
11
|
manageSession?: boolean;
|
|
12
12
|
WaitMessage?: React.ReactNode;
|
|
13
13
|
errorTemplate?: React.ComponentType;
|
|
14
|
+
strictMode?: boolean;
|
|
14
15
|
};
|
|
15
|
-
export declare const AppRoot: ({ store, history, basename, theme, manageSession, WaitMessage, errorTemplate, children, }: AppRootProps) => JSX.Element;
|
|
16
|
+
export declare const AppRoot: ({ store, history, basename, theme, manageSession, WaitMessage, errorTemplate, children, strictMode, }: AppRootProps) => JSX.Element;
|
|
16
17
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/pui-app-sdk",
|
|
3
|
-
"version": "4.9.
|
|
3
|
+
"version": "4.9.1",
|
|
4
4
|
"description": "ICE MT UI Platform Application SDK ",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"*.css",
|
|
@@ -111,51 +111,52 @@
|
|
|
111
111
|
"indent": 4
|
|
112
112
|
},
|
|
113
113
|
"peerDependencies": {
|
|
114
|
-
"@elliemae/app-react-dependencies": "^4.
|
|
115
|
-
"@elliemae/ds-basic": "^3.
|
|
116
|
-
"@elliemae/ds-button": "^3.
|
|
117
|
-
"@elliemae/ds-controlled-form": "^3.
|
|
118
|
-
"@elliemae/ds-date-picker": "^3.
|
|
119
|
-
"@elliemae/ds-date-range-picker": "^3.
|
|
120
|
-
"@elliemae/ds-dialog": "^3.
|
|
121
|
-
"@elliemae/ds-form": "^3.
|
|
122
|
-
"@elliemae/ds-form-layout-blocks": "^3.
|
|
123
|
-
"@elliemae/ds-grid": "^3.
|
|
124
|
-
"@elliemae/ds-loading-indicator": "^3.
|
|
125
|
-
"@elliemae/ds-modal": "^3.
|
|
126
|
-
"@elliemae/ds-popperjs": "^3.
|
|
127
|
-
"@elliemae/ds-toast": "^3.
|
|
114
|
+
"@elliemae/app-react-dependencies": "^4.5.0",
|
|
115
|
+
"@elliemae/ds-basic": "^3.13.0",
|
|
116
|
+
"@elliemae/ds-button": "^3.13.0",
|
|
117
|
+
"@elliemae/ds-controlled-form": "^3.13.0",
|
|
118
|
+
"@elliemae/ds-date-picker": "^3.13.0",
|
|
119
|
+
"@elliemae/ds-date-range-picker": "^3.13.0",
|
|
120
|
+
"@elliemae/ds-dialog": "^3.13.0",
|
|
121
|
+
"@elliemae/ds-form": "^3.13.0",
|
|
122
|
+
"@elliemae/ds-form-layout-blocks": "^3.13.0",
|
|
123
|
+
"@elliemae/ds-grid": "^3.13.0",
|
|
124
|
+
"@elliemae/ds-loading-indicator": "^3.13.0",
|
|
125
|
+
"@elliemae/ds-modal": "^3.13.0",
|
|
126
|
+
"@elliemae/ds-popperjs": "^3.13.0",
|
|
127
|
+
"@elliemae/ds-toast": "^3.13.0",
|
|
128
128
|
"@elliemae/em-ssf-guest": "^1.11.2",
|
|
129
129
|
"@elliemae/pui-diagnostics": "^2.7.5",
|
|
130
130
|
"@elliemae/pui-micro-frontend-base": "^1.14.0",
|
|
131
|
-
"@elliemae/pui-scripting-object": "^1.18.
|
|
131
|
+
"@elliemae/pui-scripting-object": "^1.18.1",
|
|
132
132
|
"@elliemae/pui-theme": "^2.6.0",
|
|
133
133
|
"@elliemae/pui-user-monitoring": "^1.18.1"
|
|
134
134
|
},
|
|
135
135
|
"devDependencies": {
|
|
136
|
-
"@elliemae/app-react-dependencies": "~4.
|
|
136
|
+
"@elliemae/app-react-dependencies": "~4.5.0",
|
|
137
137
|
"@elliemae/browserslist-config-elliemae-latest-browsers": "~1.6.0",
|
|
138
|
-
"@elliemae/ds-basic": "~3.
|
|
139
|
-
"@elliemae/ds-button": "~3.
|
|
140
|
-
"@elliemae/ds-controlled-form": "~3.
|
|
141
|
-
"@elliemae/ds-date-picker": "~3.
|
|
142
|
-
"@elliemae/ds-date-range-picker": "~3.
|
|
143
|
-
"@elliemae/ds-dialog": "~3.
|
|
144
|
-
"@elliemae/ds-form": "~3.
|
|
145
|
-
"@elliemae/ds-form-layout-blocks": "~3.
|
|
146
|
-
"@elliemae/ds-grid": "~3.
|
|
147
|
-
"@elliemae/ds-loading-indicator": "~3.
|
|
148
|
-
"@elliemae/ds-modal": "~3.
|
|
149
|
-
"@elliemae/ds-popperjs": "~3.
|
|
150
|
-
"@elliemae/ds-toast": "~3.
|
|
138
|
+
"@elliemae/ds-basic": "~3.13.0",
|
|
139
|
+
"@elliemae/ds-button": "~3.13.0",
|
|
140
|
+
"@elliemae/ds-controlled-form": "~3.13.0",
|
|
141
|
+
"@elliemae/ds-date-picker": "~3.13.0",
|
|
142
|
+
"@elliemae/ds-date-range-picker": "~3.13.0",
|
|
143
|
+
"@elliemae/ds-dialog": "~3.13.0",
|
|
144
|
+
"@elliemae/ds-form": "~3.13.0",
|
|
145
|
+
"@elliemae/ds-form-layout-blocks": "~3.13.0",
|
|
146
|
+
"@elliemae/ds-grid": "~3.13.0",
|
|
147
|
+
"@elliemae/ds-loading-indicator": "~3.13.0",
|
|
148
|
+
"@elliemae/ds-modal": "~3.13.0",
|
|
149
|
+
"@elliemae/ds-popperjs": "~3.13.0",
|
|
150
|
+
"@elliemae/ds-toast": "~3.13.0",
|
|
151
151
|
"@elliemae/em-ssf-guest": "~1.11.2",
|
|
152
|
-
"@elliemae/pui-cli": "~7.
|
|
152
|
+
"@elliemae/pui-cli": "~7.26.3",
|
|
153
153
|
"@elliemae/pui-diagnostics": "~2.7.5",
|
|
154
154
|
"@elliemae/pui-doc-gen": "~1.4.1",
|
|
155
155
|
"@elliemae/pui-e2e-test-sdk": "~7.7.1",
|
|
156
156
|
"@elliemae/pui-micro-frontend-base": "~1.14.0",
|
|
157
|
-
"@elliemae/pui-scripting-object": "~1.18.
|
|
157
|
+
"@elliemae/pui-scripting-object": "~1.18.1",
|
|
158
158
|
"@elliemae/pui-theme": "~2.6.0",
|
|
159
|
-
"@elliemae/pui-user-monitoring": "~1.18.1"
|
|
159
|
+
"@elliemae/pui-user-monitoring": "~1.18.1",
|
|
160
|
+
"@types/react-aria-live": "~2.0.2"
|
|
160
161
|
}
|
|
161
162
|
}
|