@elliemae/pui-app-sdk 4.0.0-beta.5 → 4.0.0-beta.6

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.
@@ -23,7 +23,6 @@ __export(guest_exports, {
23
23
  CMicroAppGuest: () => CMicroAppGuest
24
24
  });
25
25
  module.exports = __toCommonJS(guest_exports);
26
- var import_react_dom = __toESM(require("react-dom"));
27
26
  var import_lodash = __toESM(require("lodash"));
28
27
  var import_pui_theme = require("@elliemae/pui-theme");
29
28
  var import_window = require("../window.js");
@@ -141,9 +140,6 @@ class CMicroAppGuest {
141
140
  });
142
141
  }
143
142
  unmount(options) {
144
- const appEle = document.getElementById(this.containerId);
145
- if (appEle)
146
- import_react_dom.default.unmountComponentAtNode(appEle);
147
143
  (0, import_web_storage.removeStorageEvents)();
148
144
  return Promise.resolve().then(() => this.onUnmount ? this.onUnmount(options) : null);
149
145
  }
@@ -38,6 +38,7 @@ __export(app_root_exports, {
38
38
  });
39
39
  module.exports = __toCommonJS(app_root_exports);
40
40
  var React = __toESM(require("react"));
41
+ var import_react = require("react");
41
42
  var import_react_redux = require("react-redux");
42
43
  var import_styled_components = require("styled-components");
43
44
  var import_pui_theme = require("@elliemae/pui-theme");
@@ -58,7 +59,7 @@ const AppRoot = ({
58
59
  WaitMessage,
59
60
  errorTemplate,
60
61
  children
61
- }) => /* @__PURE__ */ React.createElement(import_error_boundary.ErrorBoundary, {
62
+ }) => /* @__PURE__ */ React.createElement(import_react.StrictMode, null, /* @__PURE__ */ React.createElement(import_error_boundary.ErrorBoundary, {
62
63
  errorTemplate
63
64
  }, /* @__PURE__ */ React.createElement(import_react_redux.Provider, {
64
65
  store
@@ -69,4 +70,4 @@ const AppRoot = ({
69
70
  }, /* @__PURE__ */ React.createElement(AppToRender, {
70
71
  manageSession,
71
72
  WaitMessage
72
- }, children)))));
73
+ }, children))))));
@@ -27,4 +27,4 @@ var React = __toESM(require("react"));
27
27
  const DefaultErrorTemplate = ({
28
28
  error = new Error("We are unable to process your request"),
29
29
  errorInfo = { componentStack: "Please close your browser and login again" }
30
- }) => /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement("h2", null, error?.message), /* @__PURE__ */ React.createElement("section", null, errorInfo));
30
+ }) => /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement("h2", null, error?.message), /* @__PURE__ */ React.createElement("section", null, errorInfo?.componentStack));
@@ -1,4 +1,3 @@
1
- import ReactDOM from "react-dom";
2
1
  import _ from "lodash";
3
2
  import { getDefaultTheme } from "@elliemae/pui-theme";
4
3
  import { getWindow } from "../window.js";
@@ -116,9 +115,6 @@ class CMicroAppGuest {
116
115
  });
117
116
  }
118
117
  unmount(options) {
119
- const appEle = document.getElementById(this.containerId);
120
- if (appEle)
121
- ReactDOM.unmountComponentAtNode(appEle);
122
118
  removeStorageEvents();
123
119
  return Promise.resolve().then(() => this.onUnmount ? this.onUnmount(options) : null);
124
120
  }
@@ -15,6 +15,7 @@ var __spreadValues = (a, b) => {
15
15
  return a;
16
16
  };
17
17
  import * as React from "react";
18
+ import { StrictMode } from "react";
18
19
  import { Provider } from "react-redux";
19
20
  import { ThemeProvider } from "styled-components";
20
21
  import { getDefaultTheme } from "@elliemae/pui-theme";
@@ -35,7 +36,7 @@ const AppRoot = ({
35
36
  WaitMessage,
36
37
  errorTemplate,
37
38
  children
38
- }) => /* @__PURE__ */ React.createElement(ErrorBoundary, {
39
+ }) => /* @__PURE__ */ React.createElement(StrictMode, null, /* @__PURE__ */ React.createElement(ErrorBoundary, {
39
40
  errorTemplate
40
41
  }, /* @__PURE__ */ React.createElement(Provider, {
41
42
  store
@@ -46,7 +47,7 @@ const AppRoot = ({
46
47
  }, /* @__PURE__ */ React.createElement(AppToRender, {
47
48
  manageSession,
48
49
  WaitMessage
49
- }, children)))));
50
+ }, children))))));
50
51
  export {
51
52
  AppRoot
52
53
  };
@@ -2,7 +2,7 @@ import * as React from "react";
2
2
  const DefaultErrorTemplate = ({
3
3
  error = new Error("We are unable to process your request"),
4
4
  errorInfo = { componentStack: "Please close your browser and login again" }
5
- }) => /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement("h2", null, error?.message), /* @__PURE__ */ React.createElement("section", null, errorInfo));
5
+ }) => /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement("h2", null, error?.message), /* @__PURE__ */ React.createElement("section", null, errorInfo?.componentStack));
6
6
  export {
7
7
  DefaultErrorTemplate
8
8
  };
@@ -75,5 +75,5 @@ export type { EMUI } from './utils/window.js';
75
75
  export type { Await } from './utils/await.js';
76
76
  export type { RootState, AppStore } from './data/store.js';
77
77
  export type { AppConfig } from './utils/app-config/config.js';
78
- export type { OnInitCallback, OnMountCallback, } from './utils/micro-frontend/guest.js';
78
+ export type { OnInitCallback, OnMountCallback, OnUnMountCallback, } from './utils/micro-frontend/guest.js';
79
79
  export type { OnInitCallback as OnHostInitCallback } from './utils/micro-frontend/host.js';
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  interface ErrorBoundaryProps {
3
+ children?: React.ReactNode;
3
4
  errorTemplate?: React.ComponentType;
4
5
  }
5
6
  export declare class ErrorBoundary extends React.Component<ErrorBoundaryProps> {
@@ -7,6 +8,6 @@ export declare class ErrorBoundary extends React.Component<ErrorBoundaryProps> {
7
8
  componentDidCatch(error: Error, errorInfo: {
8
9
  componentStack: string;
9
10
  }): void;
10
- render(): React.ReactNode;
11
+ render(): string | number | boolean | React.ReactFragment | JSX.Element | null | undefined;
11
12
  }
12
13
  export {};
@@ -2,7 +2,7 @@
2
2
  export declare type FormItemLayoutProps = {
3
3
  name: string;
4
4
  floatingLabel?: boolean;
5
- inputComponent: React.ReactNode;
5
+ inputComponent: React.ComponentType<any>;
6
6
  labelText?: string;
7
7
  [x: string]: any;
8
8
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/pui-app-sdk",
3
- "version": "4.0.0-beta.5",
3
+ "version": "4.0.0-beta.6",
4
4
  "description": "ICE MT UI Platform Application SDK ",
5
5
  "sideEffects": [
6
6
  "*.css",
@@ -103,7 +103,7 @@
103
103
  "indent": 4
104
104
  },
105
105
  "peerDependencies": {
106
- "@elliemae/app-react-dependencies": "^3.6.0",
106
+ "@elliemae/app-react-dependencies": "^4.0.0-beta.1",
107
107
  "@elliemae/ds-basic": "^3.0.3",
108
108
  "@elliemae/ds-button": "^3.0.3",
109
109
  "@elliemae/ds-controlled-form": "^3.0.3",
@@ -124,7 +124,7 @@
124
124
  "@elliemae/pui-user-monitoring": "^1.15.1"
125
125
  },
126
126
  "devDependencies": {
127
- "@elliemae/app-react-dependencies": "~3.6.0",
127
+ "@elliemae/app-react-dependencies": "~4.0.0-beta.1",
128
128
  "@elliemae/browserslist-config-elliemae-latest-browsers": "~1.4.2",
129
129
  "@elliemae/ds-basic": "~3.0.3",
130
130
  "@elliemae/ds-button": "~3.0.3",
@@ -140,7 +140,7 @@
140
140
  "@elliemae/ds-popperjs": "~3.0.3",
141
141
  "@elliemae/ds-toast": "~3.0.3",
142
142
  "@elliemae/em-ssf-guest": "~1.11.1",
143
- "@elliemae/pui-cli": "~7.0.0-beta.7",
143
+ "@elliemae/pui-cli": "~7.0.0-beta.12",
144
144
  "@elliemae/pui-diagnostics": "~2.7.4",
145
145
  "@elliemae/pui-e2e-test-sdk": "~7.3.3",
146
146
  "@elliemae/pui-micro-frontend-base": "~1.11.2",