@elliemae/pui-app-sdk 1.85.2 → 1.86.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.
Files changed (83) hide show
  1. package/dist/cjs/analytics/user-wait.js +1 -1
  2. package/dist/cjs/communication/http-client/index.js +1 -1
  3. package/dist/cjs/communication/http-client/response-interceptor.js +1 -1
  4. package/dist/cjs/communication/http-client/retry-axios.js +1 -1
  5. package/dist/cjs/communication/http-client/retry.js +1 -1
  6. package/dist/cjs/data/auth/reducer.js +1 -1
  7. package/dist/cjs/data/configureStore.js +1 -0
  8. package/dist/cjs/data/reducerInjectors.js +3 -2
  9. package/dist/cjs/data/wait-message/reducer.js +1 -1
  10. package/dist/cjs/index.js +165 -165
  11. package/dist/cjs/services/login/api.js +1 -1
  12. package/dist/cjs/sideeffect/auth/index.js +1 -1
  13. package/dist/cjs/sideeffect/constants.js +1 -1
  14. package/dist/cjs/sideeffect/sagaInjectors.js +2 -2
  15. package/dist/cjs/utils/app-config/config.js +1 -1
  16. package/dist/cjs/utils/auth/index.js +9 -4
  17. package/dist/cjs/utils/constants.js +1 -1
  18. package/dist/cjs/utils/font-size.js +1 -1
  19. package/dist/cjs/utils/helpers.js +1 -1
  20. package/dist/cjs/utils/history.js +1 -1
  21. package/dist/cjs/utils/micro-frontend/host.js +6 -6
  22. package/dist/cjs/utils/micro-frontend/index.js +1 -1
  23. package/dist/cjs/utils/session.js +1 -1
  24. package/dist/cjs/utils/store.js +1 -1
  25. package/dist/cjs/utils/storybook/preview.js +1 -1
  26. package/dist/cjs/utils/web-storage.js +1 -1
  27. package/dist/cjs/utils/window.js +4 -2
  28. package/dist/cjs/view/error-toast/index.stories.js +1 -1
  29. package/dist/cjs/view/fetch-host-app-data/store.js +1 -1
  30. package/dist/cjs/view/fields/check-box/index.stories.js +1 -1
  31. package/dist/cjs/view/fields/check-box/set-value.stories.js +1 -1
  32. package/dist/cjs/view/fields/combo-box/index.stories.js +1 -1
  33. package/dist/cjs/view/fields/date-input/index.stories.js +1 -1
  34. package/dist/cjs/view/fields/date-picker/index.stories.js +1 -1
  35. package/dist/cjs/view/fields/form-item-layout/index.stories.js +1 -1
  36. package/dist/cjs/view/fields/input-mask/index.js +4 -4
  37. package/dist/cjs/view/fields/input-mask/index.stories.js +1 -1
  38. package/dist/cjs/view/fields/large-text-box/index.stories.js +1 -1
  39. package/dist/cjs/view/fields/radio/index.stories.js +1 -1
  40. package/dist/cjs/view/fields/radio/set-value.stories.js +1 -1
  41. package/dist/cjs/view/fields/radio-group/index.stories.js +1 -1
  42. package/dist/cjs/view/fields/text-box/index.stories.js +1 -1
  43. package/dist/cjs/view/form/index.stories.js +1 -1
  44. package/dist/cjs/view/form/personal-info-section.js +1 -1
  45. package/dist/cjs/view/form/usecases.stories.js +1 -1
  46. package/dist/cjs/view/guest-unload-handlers/index.js +1 -1
  47. package/dist/cjs/view/header/index.stories.js +1 -1
  48. package/dist/cjs/view/host-binding-events/index.js +1 -1
  49. package/dist/cjs/view/live-message/index.stories.js +1 -1
  50. package/dist/cjs/view/media-breakpoint/index.stories.js +1 -1
  51. package/dist/cjs/view/micro-app/app-factory/index.js +1 -1
  52. package/dist/cjs/view/micro-app/resources/script.js +1 -1
  53. package/dist/cjs/view/micro-app/resources/style.js +1 -1
  54. package/dist/cjs/view/micro-app/use-app-will-render.js +4 -2
  55. package/dist/cjs/view/micro-iframe-app/app.js +49 -0
  56. package/dist/cjs/view/micro-iframe-app/index.js +21 -28
  57. package/dist/cjs/view/modals/error/index.stories.js +1 -1
  58. package/dist/cjs/view/modals/navigation-prompt/index.stories.js +1 -1
  59. package/dist/cjs/view/modals/session-expiry/index.stories.js +1 -1
  60. package/dist/cjs/view/modals/wait-message/index.stories.js +1 -1
  61. package/dist/cjs/view/session-timeout/index.stories.js +1 -1
  62. package/dist/cjs/view/use-previous.js +18 -0
  63. package/dist/es/data/configureStore.js +1 -0
  64. package/dist/es/data/reducerInjectors.js +2 -1
  65. package/dist/es/index.js +1 -1
  66. package/dist/es/utils/auth/index.js +8 -3
  67. package/dist/es/utils/micro-frontend/host.js +7 -7
  68. package/dist/es/utils/window.js +3 -2
  69. package/dist/es/view/micro-app/use-app-will-render.js +4 -2
  70. package/dist/es/view/micro-iframe-app/app.js +32 -0
  71. package/dist/es/view/micro-iframe-app/index.js +24 -27
  72. package/dist/es/view/use-previous.js +8 -0
  73. package/dist/types/index.d.ts +1 -1
  74. package/dist/types/utils/auth/index.d.ts +4 -3
  75. package/dist/types/utils/micro-frontend/host.d.ts +2 -2
  76. package/dist/types/utils/testing/render-with-redux.d.ts +49 -49
  77. package/dist/types/utils/testing/render-with-router.d.ts +49 -49
  78. package/dist/types/utils/window.d.ts +2 -2
  79. package/dist/types/view/micro-app/use-app-will-render.d.ts +2 -1
  80. package/dist/types/view/micro-iframe-app/app.d.ts +1 -0
  81. package/dist/types/view/micro-iframe-app/index.d.ts +1 -2
  82. package/dist/types/view/use-previous.d.ts +1 -0
  83. package/package.json +14 -14
@@ -5,43 +5,36 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.default = void 0;
8
+ exports.MicroIFrameApp = void 0;
9
9
 
10
10
  var _react = require("react");
11
11
 
12
12
  var _propTypes = _interopRequireDefault(require("prop-types"));
13
13
 
14
- var _index = _interopRequireDefault(require("file-loader?name=iframe.[contenthash].[ext]!./iframe/index.html"));
14
+ var _usePrevious = require("../use-previous.js");
15
15
 
16
- var _index2 = require("./iframe/index.js");
17
-
18
- var _useFrameLoaded = require("./iframe/use-frame-loaded.js");
19
-
20
- var _useAppWillRender = require("../micro-app/use-app-will-render.js");
21
-
22
- var _jsxRuntime = require("react/jsx-runtime");
16
+ var _app = require("./app.js");
23
17
 
24
18
  const MicroIFrameApp = /*#__PURE__*/(0, _react.memo)(({
25
- id: appId,
19
+ entityId = null,
26
20
  ...rest
27
21
  }) => {
28
- const [frameDocument, setFrameDocument] = (0, _react.useState)(null);
29
- (0, _useFrameLoaded.useFrameLoaded)({
30
- appId,
31
- frameDocument,
32
- ...rest
33
- });
34
- (0, _useAppWillRender.useAppWillRender)({
35
- appId,
36
- documentEle: frameDocument,
37
- ...rest
38
- });
39
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.IFrame, {
40
- appId: appId,
41
- src: _index.default,
42
- ...rest,
43
- onFrameReady: setFrameDocument
22
+ const [disposePrevApp, setDisposePrevApp] = (0, _react.useState)(false);
23
+ const [appKey, setAppKey] = (0, _react.useState)(Date.now());
24
+ const prevEntityId = (0, _usePrevious.usePrevious)(entityId);
25
+ (0, _react.useEffect)(() => {
26
+ if (prevEntityId !== entityId && prevEntityId) {
27
+ setDisposePrevApp(true);
28
+ } // eslint-disable-next-line react-hooks/exhaustive-deps
29
+
30
+ }, [entityId]);
31
+ return /*#__PURE__*/(0, _react.createElement)(_app.App, { ...rest,
32
+ key: appKey,
33
+ dispose: disposePrevApp,
34
+ onUnloadComplete: () => {
35
+ setAppKey(Date.now());
36
+ setDisposePrevApp(false);
37
+ }
44
38
  });
45
39
  });
46
- var _default = MicroIFrameApp;
47
- exports.default = _default;
40
+ exports.MicroIFrameApp = MicroIFrameApp;
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.CloseModal = exports.Basic = exports.default = void 0;
8
+ exports.default = exports.CloseModal = exports.Basic = void 0;
9
9
 
10
10
  var _jsx3 = _interopRequireDefault(require("@babel/runtime/helpers/jsx"));
11
11
 
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.Close = exports.Basic = exports.default = void 0;
8
+ exports.default = exports.Close = exports.Basic = void 0;
9
9
 
10
10
  var _react = _interopRequireDefault(require("react"));
11
11
 
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.Close = exports.Basic = exports.default = void 0;
8
+ exports.default = exports.Close = exports.Basic = void 0;
9
9
 
10
10
  var _react = _interopRequireDefault(require("react"));
11
11
 
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.Close = exports.Basic = exports.default = void 0;
8
+ exports.default = exports.Close = exports.Basic = void 0;
9
9
 
10
10
  var _react = _interopRequireWildcard(require("react"));
11
11
 
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.Basic = exports.default = void 0;
8
+ exports.default = exports.Basic = void 0;
9
9
 
10
10
  var _jsx2 = _interopRequireDefault(require("@babel/runtime/helpers/jsx"));
11
11
 
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.usePrevious = void 0;
7
+
8
+ var _react = require("react");
9
+
10
+ const usePrevious = value => {
11
+ const ref = (0, _react.useRef)();
12
+ (0, _react.useEffect)(() => {
13
+ ref.current = value;
14
+ }, [value]);
15
+ return ref.current;
16
+ };
17
+
18
+ exports.usePrevious = usePrevious;
@@ -35,6 +35,7 @@ export default function configureStore(initialState = {}, history) {
35
35
  const enhancers = [applyMiddleware(...middlewares)];
36
36
  const store = createStore(createReducer(), initialState, composeEnhancers(...enhancers)); // Extensions
37
37
 
38
+ store.createRootReducer = createReducer;
38
39
  store.runSaga = sagaMiddleware.run;
39
40
  store.injectedReducers = {}; // Reducer registry
40
41
 
@@ -10,7 +10,8 @@ export function injectReducerFactory(store, isValid) {
10
10
  if (Reflect.has(store.injectedReducers, key) && store.injectedReducers[key] === reducer) return;
11
11
  store.injectedReducers[key] = reducer; // eslint-disable-line no-param-reassign
12
12
 
13
- store.replaceReducer(createReducer(store.injectedReducers));
13
+ const createRootReducer = store.createRootReducer || createReducer;
14
+ store.replaceReducer(createRootReducer(store.injectedReducers));
14
15
  };
15
16
  }
16
17
  export default function getInjectors(store) {
package/dist/es/index.js CHANGED
@@ -69,7 +69,7 @@ export { actions as error } from "./data/error/index.js";
69
69
  export { actions as logout } from "./data/logout/actions.js"; // micro apps
70
70
 
71
71
  export { default as MicroApp } from "./view/micro-app/index.js";
72
- export { default as MicroIFrameApp } from "./view/micro-iframe-app/index.js";
72
+ export { MicroIFrameApp } from "./view/micro-iframe-app/index.js";
73
73
  export { getNavigationLinks } from "./view/micro-app/utils.js"; // app host
74
74
 
75
75
  export { getStore } from "./utils/store.js";
@@ -89,9 +89,13 @@ export const authorize = async ({
89
89
  sessionStorage.setItem('userSettings', JSON.stringify(data));
90
90
  history.push(new URL(redirectUri).pathname);
91
91
  } catch (err) {
92
+ var _err$response, _err$response$data;
93
+
94
+ const code = err === null || err === void 0 ? void 0 : (_err$response = err.response) === null || _err$response === void 0 ? void 0 : (_err$response$data = _err$response.data) === null || _err$response$data === void 0 ? void 0 : _err$response$data.code;
92
95
  await endSession({
93
96
  clientId,
94
97
  redirectUri,
98
+ code,
95
99
  scope,
96
100
  responseType
97
101
  }); // eslint-disable-next-line no-console
@@ -102,8 +106,9 @@ export const authorize = async ({
102
106
  export const endSession = async ({
103
107
  clientId,
104
108
  redirectUri,
105
- responseType,
106
- scope
109
+ code = 1004,
110
+ responseType = 'code',
111
+ scope = 'loc'
107
112
  }) => {
108
113
  try {
109
114
  const authorization = getAuthorizationHeader();
@@ -125,7 +130,7 @@ export const endSession = async ({
125
130
  const params = {
126
131
  client_id: clientId,
127
132
  redirect_uri: redirectUri,
128
- error_code: 1004,
133
+ error_code: code,
129
134
  response_type: responseType,
130
135
  scope
131
136
  };
@@ -14,7 +14,7 @@ import { loadAppConfig } from "../app-config/index.js";
14
14
  import browserHistory from "../history.js";
15
15
  import { logger } from "./console-logger.js";
16
16
  import { HOST_WINDOW_RESIZED, HOST_WINDOW_BREAKPOINT_CHANGED } from "../constants.js";
17
- import { getCurrentBreakpoint, getViewportSize as getWindowViewportSize } from "../window.js";
17
+ import { getCurrentBreakpoint, getViewportSize as getWindowViewportSize, getWindow } from "../window.js";
18
18
  export class CMicroAppHost {
19
19
  constructor(params) {
20
20
  _defineProperty(this, "logger", void 0);
@@ -72,11 +72,11 @@ export class CMicroAppHost {
72
72
  }
73
73
 
74
74
  getItem(key) {
75
- return window.parent.sessionStorage.getItem(key);
75
+ return getWindow().sessionStorage.getItem(key);
76
76
  }
77
77
 
78
78
  setItem(key, value) {
79
- window.parent.sessionStorage.setItem(key, value);
79
+ getWindow().sessionStorage.setItem(key, value);
80
80
  }
81
81
 
82
82
  getGuests() {
@@ -123,11 +123,11 @@ export class CMicroAppHost {
123
123
  }
124
124
 
125
125
  getAuthToken() {
126
- return window.parent.sessionStorage.getItem('Authorization');
126
+ return getWindow().sessionStorage.getItem('Authorization');
127
127
  }
128
128
 
129
129
  renewAuthToken() {
130
- return window.parent.sessionStorage.getItem('Authorization');
130
+ return getWindow().sessionStorage.getItem('Authorization');
131
131
  }
132
132
 
133
133
  logout() {
@@ -149,11 +149,11 @@ export class CMicroAppHost {
149
149
  }
150
150
 
151
151
  onResizeEvent(eventHandler) {
152
- return subscribe(HOST_WINDOW_RESIZED, eventHandler);
152
+ return subscribe(HOST_WINDOW_RESIZED, (msg, data) => eventHandler(data));
153
153
  }
154
154
 
155
155
  onBreakpointChangeEvent(eventHandler) {
156
- return subscribe(HOST_WINDOW_BREAKPOINT_CHANGED, eventHandler);
156
+ return subscribe(HOST_WINDOW_BREAKPOINT_CHANGED, (msg, data) => eventHandler(data));
157
157
  }
158
158
 
159
159
  setSystemVersion(version = 'latest') {
@@ -1,5 +1,5 @@
1
1
  import { getDefaultTheme } from '@elliemae/pui-theme';
2
- export default (() => {
2
+ export const getWindow = () => {
3
3
  try {
4
4
  // eslint-disable-next-line @typescript-eslint/no-unused-expressions
5
5
  window.parent.document;
@@ -7,7 +7,8 @@ export default (() => {
7
7
  } catch (err) {
8
8
  return window;
9
9
  }
10
- });
10
+ };
11
+ export default getWindow;
11
12
  export const getViewportSize = () => ({
12
13
  width: Math.max(document.documentElement.clientWidth || 0, window.innerWidth || 0),
13
14
  height: Math.max(document.documentElement.clientHeight || 0, window.innerHeight || 0)
@@ -9,18 +9,20 @@ export const useAppWillRender = ({
9
9
  appId,
10
10
  documentEle,
11
11
  history,
12
- theme
12
+ theme,
13
+ onUnloadComplete
13
14
  }) => {
14
15
  // ToDo: Since ecc app is using older version of react-redux we need this undefined check. once ECC upgrades to react-redux v6 or later, this check can be removed
15
16
  // eslint-disable-next-line react-hooks/rules-of-hooks
16
17
  const dispatch = useDispatch ? useDispatch() : null;
17
- const ref = useRef(Promise.resolve());
18
+ const ref = useRef(null);
18
19
  const getConfig = useCallback(() => getMicroFrontEndAppConfig({
19
20
  id: appId
20
21
  }), [appId]);
21
22
  const unload = useCallback(async appConfig => {
22
23
  await unmountApp(appConfig);
23
24
  unloadApp(appConfig);
25
+ if (onUnloadComplete) onUnloadComplete(); // eslint-disable-next-line react-hooks/exhaustive-deps
24
26
  }, []);
25
27
  const load = useCallback(async appConfig => {
26
28
  if (dispatch) dispatch(waitMessageAction.open());
@@ -0,0 +1,32 @@
1
+ import { memo, useState } from 'react';
2
+ import Proptype from 'prop-types';
3
+ import frameHtml from 'file-loader?name=iframe.[contenthash].[ext]!./iframe/index.html';
4
+ import { IFrame } from "./iframe/index.js";
5
+ import { useFrameLoaded } from "./iframe/use-frame-loaded.js";
6
+ import { useAppWillRender } from "../micro-app/use-app-will-render.js";
7
+ import { jsx as _jsx } from "react/jsx-runtime";
8
+ export const App = /*#__PURE__*/memo(({
9
+ id: appId,
10
+ dispose,
11
+ onUnloadComplete,
12
+ ...rest
13
+ }) => {
14
+ const [frameDocument, setFrameDocument] = useState(null);
15
+ useFrameLoaded({
16
+ appId,
17
+ frameDocument,
18
+ ...rest
19
+ });
20
+ useAppWillRender({
21
+ appId,
22
+ documentEle: dispose ? null : frameDocument,
23
+ onUnloadComplete,
24
+ ...rest
25
+ });
26
+ return /*#__PURE__*/_jsx(IFrame, {
27
+ appId: appId,
28
+ src: frameHtml,
29
+ ...rest,
30
+ onFrameReady: setFrameDocument
31
+ });
32
+ });
@@ -1,30 +1,27 @@
1
- import { memo, useState } from 'react';
2
- import Proptype from 'prop-types';
3
- import frameHtml from 'file-loader?name=iframe.[contenthash].[ext]!./iframe/index.html';
4
- import { IFrame } from "./iframe/index.js";
5
- import { useFrameLoaded } from "./iframe/use-frame-loaded.js";
6
- import { useAppWillRender } from "../micro-app/use-app-will-render.js";
7
- import { jsx as _jsx } from "react/jsx-runtime";
8
- const MicroIFrameApp = /*#__PURE__*/memo(({
9
- id: appId,
1
+ import { useEffect, useState, memo } from 'react';
2
+ import PropType from 'prop-types';
3
+ import { usePrevious } from "../use-previous.js";
4
+ import { App } from "./app.js";
5
+ import { createElement as _createElement } from "react";
6
+ export const MicroIFrameApp = /*#__PURE__*/memo(({
7
+ entityId = null,
10
8
  ...rest
11
9
  }) => {
12
- const [frameDocument, setFrameDocument] = useState(null);
13
- useFrameLoaded({
14
- appId,
15
- frameDocument,
16
- ...rest
10
+ const [disposePrevApp, setDisposePrevApp] = useState(false);
11
+ const [appKey, setAppKey] = useState(Date.now());
12
+ const prevEntityId = usePrevious(entityId);
13
+ useEffect(() => {
14
+ if (prevEntityId !== entityId && prevEntityId) {
15
+ setDisposePrevApp(true);
16
+ } // eslint-disable-next-line react-hooks/exhaustive-deps
17
+
18
+ }, [entityId]);
19
+ return /*#__PURE__*/_createElement(App, { ...rest,
20
+ key: appKey,
21
+ dispose: disposePrevApp,
22
+ onUnloadComplete: () => {
23
+ setAppKey(Date.now());
24
+ setDisposePrevApp(false);
25
+ }
17
26
  });
18
- useAppWillRender({
19
- appId,
20
- documentEle: frameDocument,
21
- ...rest
22
- });
23
- return /*#__PURE__*/_jsx(IFrame, {
24
- appId: appId,
25
- src: frameHtml,
26
- ...rest,
27
- onFrameReady: setFrameDocument
28
- });
29
- });
30
- export default MicroIFrameApp;
27
+ });
@@ -0,0 +1,8 @@
1
+ import { useRef, useEffect } from 'react';
2
+ export const usePrevious = value => {
3
+ const ref = useRef();
4
+ useEffect(() => {
5
+ ref.current = value;
6
+ }, [value]);
7
+ return ref.current;
8
+ };
@@ -62,7 +62,7 @@ export { actions as ariaLive } from './data/live-message';
62
62
  export { actions as error } from './data/error';
63
63
  export { actions as logout } from './data/logout/actions';
64
64
  export { default as MicroApp } from './view/micro-app';
65
- export { default as MicroIFrameApp } from './view/micro-iframe-app';
65
+ export { MicroIFrameApp } from './view/micro-iframe-app';
66
66
  export { getNavigationLinks } from './view/micro-app/utils';
67
67
  export { getStore } from './utils/store';
68
68
  export { RegisterService } from './utils/app-host/service';
@@ -18,11 +18,12 @@ export function authorize({ idpCode, redirectUri, clientId, scope, responseType,
18
18
  scope: any;
19
19
  responseType: any;
20
20
  }): Promise<void>;
21
- export function endSession({ clientId, redirectUri, responseType, scope, }: {
21
+ export function endSession({ clientId, redirectUri, code, responseType, scope, }: {
22
22
  clientId: any;
23
23
  redirectUri: any;
24
- responseType: any;
25
- scope: any;
24
+ code?: number | undefined;
25
+ responseType?: string | undefined;
26
+ scope?: string | undefined;
26
27
  }): Promise<void>;
27
28
  export function login({ clientId, scope, responseType }: {
28
29
  clientId: any;
@@ -1,4 +1,4 @@
1
- import { IMicroAppHost, ResizeEventHandler, BreakpointChangeEventHandler } from '@elliemae/pui-micro-frontend-base';
1
+ import { IMicroAppHost, ResizeEventHandler, BreakpointChangeEventHandler, SubscriptionListener } from '@elliemae/pui-micro-frontend-base';
2
2
  import { History } from 'history';
3
3
  import { DefaultTheme } from 'styled-components';
4
4
  import { MicroFrontEndLogger } from './console-logger';
@@ -32,7 +32,7 @@ export declare class CMicroAppHost implements IMicroAppHost {
32
32
  getGuests(this: CMicroAppHost): Record<string, unknown>;
33
33
  getGuest<T>(this: CMicroAppHost, id: string): T | null;
34
34
  publish<Type>(this: CMicroAppHost, message: string | symbol, data?: Type): boolean;
35
- subscribe<Type extends Function>(this: CMicroAppHost, message: string | symbol, func: Type): string;
35
+ subscribe<T>(message: string | symbol, func: SubscriptionListener<T>): string;
36
36
  unsubscribe(token: string): void;
37
37
  navigate<S = LocationState>(this: CMicroAppHost, url: string, state?: S): void;
38
38
  openWaitMessage(this: CMicroAppHost): void;
@@ -5,57 +5,57 @@ export function renderWithRedux(ui: any, { initialState, store }?: {
5
5
  store: any;
6
6
  container: HTMLElement;
7
7
  baseElement: Element;
8
- debug: (baseElement?: Element | DocumentFragment | (Element | DocumentFragment)[] | undefined, maxLength?: number | undefined, options?: import("pretty-format/build/types").PrettyFormatOptions | undefined) => void;
8
+ debug: (baseElement?: Element | DocumentFragment | (Element | DocumentFragment)[] | undefined, maxLength?: number | undefined, options?: import("pretty-format").PrettyFormatOptions | undefined) => void;
9
9
  rerender: (ui: React.ReactElement<any, string | React.JSXElementConstructor<any>>) => void;
10
10
  unmount: () => void;
11
11
  asFragment: () => DocumentFragment;
12
- getByLabelText: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: unknown) => HTMLElement;
13
- getAllByLabelText: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: unknown) => HTMLElement[];
14
- queryByLabelText: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: unknown) => HTMLElement | null;
15
- queryAllByLabelText: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: unknown) => HTMLElement[];
16
- findByLabelText: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
17
- findAllByLabelText: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
18
- getByPlaceholderText: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: unknown) => HTMLElement;
19
- getAllByPlaceholderText: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: unknown) => HTMLElement[];
20
- queryByPlaceholderText: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: unknown) => HTMLElement | null;
21
- queryAllByPlaceholderText: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: unknown) => HTMLElement[];
22
- findByPlaceholderText: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
23
- findAllByPlaceholderText: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
24
- getByText: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: unknown) => HTMLElement;
25
- getAllByText: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: unknown) => HTMLElement[];
26
- queryByText: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: unknown) => HTMLElement | null;
27
- queryAllByText: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: unknown) => HTMLElement[];
28
- findByText: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
29
- findAllByText: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
30
- getByAltText: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: unknown) => HTMLElement;
31
- getAllByAltText: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: unknown) => HTMLElement[];
32
- queryByAltText: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: unknown) => HTMLElement | null;
33
- queryAllByAltText: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: unknown) => HTMLElement[];
34
- findByAltText: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
35
- findAllByAltText: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
36
- getByTitle: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: unknown) => HTMLElement;
37
- getAllByTitle: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: unknown) => HTMLElement[];
38
- queryByTitle: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: unknown) => HTMLElement | null;
39
- queryAllByTitle: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: unknown) => HTMLElement[];
40
- findByTitle: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
41
- findAllByTitle: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
42
- getByDisplayValue: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: unknown) => HTMLElement;
43
- getAllByDisplayValue: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: unknown) => HTMLElement[];
44
- queryByDisplayValue: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: unknown) => HTMLElement | null;
45
- queryAllByDisplayValue: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: unknown) => HTMLElement[];
46
- findByDisplayValue: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
47
- findAllByDisplayValue: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
48
- getByRole: (text: import("@testing-library/react").ByRoleMatcher, options?: import("@testing-library/react").ByRoleOptions | undefined, waitForElementOptions?: unknown) => HTMLElement;
49
- getAllByRole: (text: import("@testing-library/react").ByRoleMatcher, options?: import("@testing-library/react").ByRoleOptions | undefined, waitForElementOptions?: unknown) => HTMLElement[];
50
- queryByRole: (text: import("@testing-library/react").ByRoleMatcher, options?: import("@testing-library/react").ByRoleOptions | undefined, waitForElementOptions?: unknown) => HTMLElement | null;
51
- queryAllByRole: (text: import("@testing-library/react").ByRoleMatcher, options?: import("@testing-library/react").ByRoleOptions | undefined, waitForElementOptions?: unknown) => HTMLElement[];
52
- findByRole: (text: import("@testing-library/react").ByRoleMatcher, options?: import("@testing-library/react").ByRoleOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
53
- findAllByRole: (text: import("@testing-library/react").ByRoleMatcher, options?: import("@testing-library/react").ByRoleOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
54
- getByTestId: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: unknown) => HTMLElement;
55
- getAllByTestId: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: unknown) => HTMLElement[];
56
- queryByTestId: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: unknown) => HTMLElement | null;
57
- queryAllByTestId: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: unknown) => HTMLElement[];
58
- findByTestId: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
59
- findAllByTestId: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
12
+ getByLabelText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement;
13
+ getAllByLabelText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement[];
14
+ queryByLabelText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement | null;
15
+ queryAllByLabelText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement[];
16
+ findByLabelText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
17
+ findAllByLabelText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
18
+ getByPlaceholderText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement;
19
+ getAllByPlaceholderText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
20
+ queryByPlaceholderText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement | null;
21
+ queryAllByPlaceholderText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
22
+ findByPlaceholderText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
23
+ findAllByPlaceholderText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
24
+ getByText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement;
25
+ getAllByText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement[];
26
+ queryByText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement | null;
27
+ queryAllByText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement[];
28
+ findByText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
29
+ findAllByText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
30
+ getByAltText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement;
31
+ getAllByAltText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
32
+ queryByAltText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement | null;
33
+ queryAllByAltText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
34
+ findByAltText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
35
+ findAllByAltText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
36
+ getByTitle: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement;
37
+ getAllByTitle: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
38
+ queryByTitle: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement | null;
39
+ queryAllByTitle: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
40
+ findByTitle: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
41
+ findAllByTitle: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
42
+ getByDisplayValue: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement;
43
+ getAllByDisplayValue: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
44
+ queryByDisplayValue: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement | null;
45
+ queryAllByDisplayValue: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
46
+ findByDisplayValue: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
47
+ findAllByDisplayValue: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
48
+ getByRole: (role: import("@testing-library/react").ByRoleMatcher, options?: import("@testing-library/react").ByRoleOptions | undefined) => HTMLElement;
49
+ getAllByRole: (role: import("@testing-library/react").ByRoleMatcher, options?: import("@testing-library/react").ByRoleOptions | undefined) => HTMLElement[];
50
+ queryByRole: (role: import("@testing-library/react").ByRoleMatcher, options?: import("@testing-library/react").ByRoleOptions | undefined) => HTMLElement | null;
51
+ queryAllByRole: (role: import("@testing-library/react").ByRoleMatcher, options?: import("@testing-library/react").ByRoleOptions | undefined) => HTMLElement[];
52
+ findByRole: (role: import("@testing-library/react").ByRoleMatcher, options?: import("@testing-library/react").ByRoleOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
53
+ findAllByRole: (role: import("@testing-library/react").ByRoleMatcher, options?: import("@testing-library/react").ByRoleOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
54
+ getByTestId: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement;
55
+ getAllByTestId: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
56
+ queryByTestId: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement | null;
57
+ queryAllByTestId: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
58
+ findByTestId: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
59
+ findAllByTestId: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
60
60
  };
61
61
  import React from "react";