@elliemae/pui-app-sdk 3.15.0 → 4.0.0-alpha.10

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 (182) hide show
  1. package/dist/cjs/analytics/appdynamics.js +4 -1
  2. package/dist/cjs/api/auth/index.js +8 -2
  3. package/dist/cjs/api/helpers.js +7 -1
  4. package/dist/cjs/api/users/index.js +3 -1
  5. package/dist/cjs/app.config.json +42 -25
  6. package/dist/cjs/communication/http-client/index.js +4 -1
  7. package/dist/cjs/communication/http-client/response-interceptor.js +4 -1
  8. package/dist/cjs/communication/http-client/retry-axios.js +4 -1
  9. package/dist/cjs/data/auth/reducer.js +14 -8
  10. package/dist/cjs/data/breakpoint/index.js +4 -1
  11. package/dist/cjs/data/index.js +1 -0
  12. package/dist/cjs/data/store.js +10 -2
  13. package/dist/cjs/data/wait-message/reducer.js +4 -1
  14. package/dist/cjs/index.js +5 -1
  15. package/dist/cjs/sideeffect/error-toast/index.js +3 -1
  16. package/dist/cjs/sideeffect/wait-message/index.js +6 -2
  17. package/dist/cjs/utils/app-config/config.js +6 -2
  18. package/dist/cjs/utils/app-config/index.js +12 -4
  19. package/dist/cjs/utils/auth/helper.js +4 -1
  20. package/dist/cjs/utils/auth/index.js +3 -1
  21. package/dist/cjs/utils/micro-frontend/guest.js +8 -7
  22. package/dist/cjs/utils/micro-frontend/host.js +9 -3
  23. package/dist/cjs/utils/micro-frontend/index.js +27 -10
  24. package/dist/cjs/utils/micro-frontend/ssfguest-adapter.js +9 -2
  25. package/dist/cjs/utils/redact-pii.js +8 -2
  26. package/dist/cjs/utils/session.js +14 -4
  27. package/dist/cjs/utils/storybook/cjs/webpack.js +1 -4
  28. package/dist/cjs/utils/storybook/preview.js +1 -1
  29. package/dist/cjs/utils/testing/index.js +5 -7
  30. package/dist/cjs/utils/testing/render-with-redux.js +5 -7
  31. package/dist/cjs/utils/testing/render-with-router-redux.js +10 -9
  32. package/dist/cjs/utils/testing/render-with-router.js +5 -7
  33. package/dist/cjs/utils/testing/render-with-state-addons.js +7 -9
  34. package/dist/cjs/utils/web-storage.js +4 -1
  35. package/dist/cjs/utils/window.js +10 -2
  36. package/dist/cjs/view/app-root/hosted-app.js +13 -3
  37. package/dist/cjs/view/app-root/index.js +24 -19
  38. package/dist/cjs/view/app-root/stand-alone-app.js +17 -3
  39. package/dist/cjs/view/app-router.js +2 -5
  40. package/dist/cjs/view/breakpoint/use-breakpoint.js +9 -5
  41. package/dist/cjs/view/breakpoint/use-media-query-list.js +3 -1
  42. package/dist/cjs/view/error-boundary/default-error-template.js +14 -5
  43. package/dist/cjs/view/error-boundary/index.js +6 -2
  44. package/dist/cjs/view/error-toast/index.js +2 -5
  45. package/dist/cjs/view/fetch-host-app-data/index.js +4 -1
  46. package/dist/cjs/view/fields/autocomplete/index.js +9 -9
  47. package/dist/cjs/view/fields/check-box/index.js +3 -6
  48. package/dist/cjs/view/fields/combo-box/index.js +3 -6
  49. package/dist/cjs/view/fields/combo-box-v3/index.js +3 -6
  50. package/dist/cjs/view/fields/date-input/index.js +3 -6
  51. package/dist/cjs/view/fields/date-picker/index.js +7 -4
  52. package/dist/cjs/view/fields/date-range-picker/index.js +10 -9
  53. package/dist/cjs/view/fields/date-time-picker/index.js +3 -6
  54. package/dist/cjs/view/fields/form-item-layout/index.js +15 -16
  55. package/dist/cjs/view/fields/form-layout-block-item/index.js +16 -17
  56. package/dist/cjs/view/fields/input-mask/index.js +3 -6
  57. package/dist/cjs/view/fields/input-text/index.js +3 -6
  58. package/dist/cjs/view/fields/large-text-box/index.js +3 -6
  59. package/dist/cjs/view/fields/radio/index.js +3 -6
  60. package/dist/cjs/view/fields/radio-group/index.js +3 -6
  61. package/dist/cjs/view/fields/text-box/index.js +3 -6
  62. package/dist/cjs/view/fields/toggle/index.js +3 -6
  63. package/dist/cjs/view/fields/watch-value.js +25 -3
  64. package/dist/cjs/view/form/index.js +13 -8
  65. package/dist/cjs/view/form/personal-info-section.js +54 -47
  66. package/dist/cjs/view/form/submit-button/index.js +2 -5
  67. package/dist/cjs/view/live-message/index.js +2 -5
  68. package/dist/cjs/view/loadable/index.js +8 -10
  69. package/dist/cjs/view/login/index.js +4 -5
  70. package/dist/cjs/view/micro-app/app-factory/index.js +9 -3
  71. package/dist/cjs/view/micro-app/index.js +6 -3
  72. package/dist/cjs/view/micro-app/resources/manifest.js +10 -3
  73. package/dist/cjs/view/micro-app/resources/script.js +24 -15
  74. package/dist/cjs/view/micro-app/resources/style.js +20 -11
  75. package/dist/cjs/view/micro-app/use-app-will-render.js +37 -28
  76. package/dist/cjs/view/micro-iframe-app/app.js +24 -19
  77. package/dist/cjs/view/micro-iframe-app/iframe/index.js +22 -15
  78. package/dist/cjs/view/micro-iframe-app/index.js +2 -5
  79. package/dist/cjs/view/modals/error/index.js +21 -12
  80. package/dist/cjs/view/modals/navigation-prompt/index.js +46 -27
  81. package/dist/cjs/view/modals/session-expiry/customHooks.js +6 -2
  82. package/dist/cjs/view/modals/session-expiry/index.js +57 -35
  83. package/dist/cjs/view/modals/wait-message/index.js +26 -27
  84. package/dist/cjs/view/page.js +15 -3
  85. package/dist/cjs/view/render-with-delay/index.js +4 -5
  86. package/dist/cjs/view/render-with-host-data/index.js +2 -5
  87. package/dist/cjs/view/require-auth.js +22 -10
  88. package/dist/cjs/view/session-timeout/index.js +15 -14
  89. package/dist/cjs/view/storybook/decorator.js +5 -7
  90. package/dist/cjs/view/visually-hidden/index.js +11 -6
  91. package/dist/esm/api/auth/index.js +8 -2
  92. package/dist/esm/api/helpers.js +7 -1
  93. package/dist/esm/api/users/index.js +3 -1
  94. package/dist/esm/app.config.json +42 -25
  95. package/dist/esm/data/auth/reducer.js +10 -7
  96. package/dist/esm/data/index.js +6 -1
  97. package/dist/esm/data/store.js +6 -1
  98. package/dist/esm/index.js +6 -1
  99. package/dist/esm/sideeffect/error-toast/index.js +3 -1
  100. package/dist/esm/sideeffect/wait-message/index.js +6 -2
  101. package/dist/esm/utils/app-config/config.js +2 -1
  102. package/dist/esm/utils/app-config/index.js +8 -3
  103. package/dist/esm/utils/auth/index.js +3 -1
  104. package/dist/esm/utils/micro-frontend/guest.js +4 -6
  105. package/dist/esm/utils/micro-frontend/host.js +9 -3
  106. package/dist/esm/utils/micro-frontend/index.js +23 -9
  107. package/dist/esm/utils/micro-frontend/ssfguest-adapter.js +5 -1
  108. package/dist/esm/utils/redact-pii.js +8 -2
  109. package/dist/esm/utils/session.js +14 -4
  110. package/dist/esm/utils/storybook/preview.js +1 -1
  111. package/dist/esm/utils/testing/index.js +5 -4
  112. package/dist/esm/utils/testing/render-with-redux.js +5 -4
  113. package/dist/esm/utils/testing/render-with-router-redux.js +10 -6
  114. package/dist/esm/utils/testing/render-with-router.js +5 -4
  115. package/dist/esm/utils/testing/render-with-state-addons.js +7 -6
  116. package/dist/esm/utils/window.js +10 -2
  117. package/dist/esm/view/app-root/hosted-app.js +9 -2
  118. package/dist/esm/view/app-root/index.js +24 -16
  119. package/dist/esm/view/app-root/stand-alone-app.js +13 -2
  120. package/dist/esm/view/app-router.js +2 -2
  121. package/dist/esm/view/breakpoint/use-breakpoint.js +9 -5
  122. package/dist/esm/view/breakpoint/use-media-query-list.js +3 -1
  123. package/dist/esm/view/error-boundary/default-error-template.js +14 -2
  124. package/dist/esm/view/error-boundary/index.js +2 -1
  125. package/dist/esm/view/error-toast/index.js +2 -2
  126. package/dist/esm/view/fields/autocomplete/index.js +9 -6
  127. package/dist/esm/view/fields/check-box/index.js +3 -3
  128. package/dist/esm/view/fields/combo-box/index.js +3 -3
  129. package/dist/esm/view/fields/combo-box-v3/index.js +3 -3
  130. package/dist/esm/view/fields/date-input/index.js +3 -3
  131. package/dist/esm/view/fields/date-picker/index.js +3 -3
  132. package/dist/esm/view/fields/date-range-picker/index.js +10 -6
  133. package/dist/esm/view/fields/date-time-picker/index.js +3 -3
  134. package/dist/esm/view/fields/form-item-layout/index.js +15 -13
  135. package/dist/esm/view/fields/form-layout-block-item/index.js +16 -14
  136. package/dist/esm/view/fields/input-mask/index.js +3 -3
  137. package/dist/esm/view/fields/input-text/index.js +3 -3
  138. package/dist/esm/view/fields/large-text-box/index.js +3 -3
  139. package/dist/esm/view/fields/radio/index.js +3 -3
  140. package/dist/esm/view/fields/radio-group/index.js +3 -3
  141. package/dist/esm/view/fields/text-box/index.js +3 -3
  142. package/dist/esm/view/fields/toggle/index.js +3 -3
  143. package/dist/esm/view/fields/watch-value.js +21 -2
  144. package/dist/esm/view/form/index.js +9 -7
  145. package/dist/esm/view/form/personal-info-section.js +50 -46
  146. package/dist/esm/view/form/submit-button/index.js +2 -2
  147. package/dist/esm/view/live-message/index.js +2 -2
  148. package/dist/esm/view/loadable/index.js +8 -7
  149. package/dist/esm/view/login/index.js +4 -2
  150. package/dist/esm/view/micro-app/app-factory/index.js +9 -3
  151. package/dist/esm/view/micro-app/index.js +2 -2
  152. package/dist/esm/view/micro-app/resources/manifest.js +10 -3
  153. package/dist/esm/view/micro-app/resources/script.js +24 -15
  154. package/dist/esm/view/micro-app/resources/style.js +20 -11
  155. package/dist/esm/view/micro-app/use-app-will-render.js +37 -28
  156. package/dist/esm/view/micro-iframe-app/app.js +20 -18
  157. package/dist/esm/view/micro-iframe-app/iframe/index.js +18 -14
  158. package/dist/esm/view/micro-iframe-app/index.js +2 -2
  159. package/dist/esm/view/modals/error/index.js +21 -9
  160. package/dist/esm/view/modals/navigation-prompt/index.js +46 -24
  161. package/dist/esm/view/modals/session-expiry/customHooks.js +6 -2
  162. package/dist/esm/view/modals/session-expiry/index.js +57 -32
  163. package/dist/esm/view/modals/wait-message/index.js +26 -24
  164. package/dist/esm/view/page.js +11 -2
  165. package/dist/esm/view/render-with-delay/index.js +4 -2
  166. package/dist/esm/view/render-with-host-data/index.js +2 -2
  167. package/dist/esm/view/require-auth.js +19 -10
  168. package/dist/esm/view/session-timeout/index.js +15 -11
  169. package/dist/esm/view/storybook/decorator.js +5 -4
  170. package/dist/esm/view/visually-hidden/index.js +7 -5
  171. package/dist/types/lib/data/index.d.ts +1 -1
  172. package/dist/types/lib/index.d.ts +2 -2
  173. package/dist/types/lib/utils/app-config/config.d.ts +5 -7
  174. package/dist/types/lib/utils/app-config/index.d.ts +1 -1
  175. package/dist/types/lib/utils/micro-frontend/host.d.ts +1 -1
  176. package/dist/types/lib/utils/window.d.ts +3 -0
  177. package/dist/types/lib/view/error-boundary/default-error-template.d.ts +1 -1
  178. package/dist/types/lib/view/error-boundary/index.d.ts +2 -1
  179. package/dist/types/lib/view/fields/form-item-layout/index.d.ts +1 -1
  180. package/dist/types/lib/view/micro-app/resources/script.d.ts +1 -1
  181. package/dist/types/lib/view/micro-app/resources/style.d.ts +2 -2
  182. package/package.json +45 -42
@@ -1,4 +1,4 @@
1
- import * as React from "react";
1
+ import { jsx } from "react/jsx-runtime";
2
2
  import { useState, useEffect } from "react";
3
3
  import { fetchHostAppData } from "../fetch-host-app-data/index.js";
4
4
  import { WaitMessageLauncher } from "../modals/wait-message/wait-message-launcher.js";
@@ -20,7 +20,7 @@ const renderWithHostData = (data) => {
20
20
  setLoading(false);
21
21
  }
22
22
  }, []);
23
- return loading ? /* @__PURE__ */ React.createElement(WaitMessageLauncher, null) : /* @__PURE__ */ React.createElement(ComponentToRender, null);
23
+ return loading ? /* @__PURE__ */ jsx(WaitMessageLauncher, {}) : /* @__PURE__ */ jsx(ComponentToRender, {});
24
24
  };
25
25
  return HostAppDataWrapper;
26
26
  };
@@ -1,5 +1,5 @@
1
- import * as React from "react";
2
- import { useInjectReducer, useInjectSaga } from "redux-injectors";
1
+ import { Fragment, jsx } from "react/jsx-runtime";
2
+ import { createManager } from "redux-injectors";
3
3
  import enums from "../utils/constants.js";
4
4
  import { authReducer } from "../data/auth/reducer.js";
5
5
  import { authentication } from "../sideeffect/auth/index.js";
@@ -12,17 +12,26 @@ const RequireAuth = ({
12
12
  scope = "loc",
13
13
  responseType = "code"
14
14
  }) => {
15
- useInjectReducer({ key, reducer: authReducer });
16
- useInjectSaga({ key, saga: authentication });
15
+ const AuthManager = createManager({
16
+ name: "AuthManager",
17
+ key,
18
+ reducer: authReducer,
19
+ saga: authentication
20
+ });
17
21
  const userAuthorized = isUserAuthorized();
18
22
  if (userAuthorized) {
19
- return /* @__PURE__ */ React.createElement(React.Fragment, null, children);
23
+ return /* @__PURE__ */ jsx(Fragment, {
24
+ children
25
+ });
20
26
  }
21
- return /* @__PURE__ */ React.createElement(Login, {
22
- clientId,
23
- scope,
24
- responseType
25
- }, children);
27
+ return /* @__PURE__ */ jsx(AuthManager, {
28
+ children: /* @__PURE__ */ jsx(Login, {
29
+ clientId,
30
+ scope,
31
+ responseType,
32
+ children
33
+ })
34
+ });
26
35
  };
27
36
  export {
28
37
  RequireAuth
@@ -1,4 +1,4 @@
1
- import * as React from "react";
1
+ import { jsx } from "react/jsx-runtime";
2
2
  import { useEffect, useState } from "react";
3
3
  import { useAppDispatch } from "../../data/react-redux.js";
4
4
  import { logout } from "../../data/logout/actions.js";
@@ -16,12 +16,14 @@ const SessionTimeout = () => {
16
16
  const [warningNotifiedAt, setwarningNotifiedAt] = useState();
17
17
  useEffect(() => {
18
18
  initSessionMonitoring();
19
- const warningCb = subscribeToSessionExpiryWarning((sessionExpiryWarningNotifiedAt) => {
20
- if (!sessionExpiryWarningNotifiedAt)
21
- return;
22
- setwarningNotifiedAt(sessionExpiryWarningNotifiedAt);
23
- setSessionExpiryWarning(true);
24
- });
19
+ const warningCb = subscribeToSessionExpiryWarning(
20
+ (sessionExpiryWarningNotifiedAt) => {
21
+ if (!sessionExpiryWarningNotifiedAt)
22
+ return;
23
+ setwarningNotifiedAt(sessionExpiryWarningNotifiedAt);
24
+ setSessionExpiryWarning(true);
25
+ }
26
+ );
25
27
  const resetCb = subscribeToResetSession((resetWarningModal) => {
26
28
  if (resetWarningModal === true) {
27
29
  setSessionExpiryWarning(false);
@@ -38,10 +40,12 @@ const SessionTimeout = () => {
38
40
  stopSessionMonitoring();
39
41
  };
40
42
  }, [dispatch]);
41
- return /* @__PURE__ */ React.createElement("div", null, showSessionExpiryWarning && /* @__PURE__ */ React.createElement(SessionExpiry, {
42
- open: true,
43
- warningNotifiedAt
44
- }));
43
+ return /* @__PURE__ */ jsx("div", {
44
+ children: showSessionExpiryWarning && /* @__PURE__ */ jsx(SessionExpiry, {
45
+ open: true,
46
+ warningNotifiedAt
47
+ })
48
+ });
45
49
  };
46
50
  export {
47
51
  SessionTimeout
@@ -1,11 +1,12 @@
1
- import * as React from "react";
1
+ import { jsx } from "react/jsx-runtime";
2
2
  import { browserHistory } from "../../utils/history.js";
3
3
  import { AppRoot } from "../app-root/index.js";
4
- const withAppDecorator = (theme, store, story) => /* @__PURE__ */ React.createElement(AppRoot, {
4
+ const withAppDecorator = (theme, store, story) => /* @__PURE__ */ jsx(AppRoot, {
5
5
  store,
6
6
  history: browserHistory,
7
- theme
8
- }, story());
7
+ theme,
8
+ children: story()
9
+ });
9
10
  export {
10
11
  withAppDecorator
11
12
  };
@@ -1,4 +1,4 @@
1
- import * as React from "react";
1
+ import { jsx } from "react/jsx-runtime";
2
2
  import { forwardRef } from "react";
3
3
  import styled from "styled-components";
4
4
  const Span = styled.span`
@@ -13,10 +13,12 @@ const Span = styled.span`
13
13
  white-space: nowrap;
14
14
  word-wrap: normal;
15
15
  `;
16
- const VisuallyHidden = forwardRef((props, ref) => /* @__PURE__ */ React.createElement(Span, {
17
- ref,
18
- ...props
19
- }));
16
+ const VisuallyHidden = forwardRef(
17
+ (props, ref) => /* @__PURE__ */ jsx(Span, {
18
+ ref,
19
+ ...props
20
+ })
21
+ );
20
22
  export {
21
23
  VisuallyHidden
22
24
  };
@@ -1,4 +1,4 @@
1
- export { useInjectReducer, useInjectSaga } from 'redux-injectors';
1
+ export { useInjectReducer, useInjectSaga, createManager, } from 'redux-injectors';
2
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';
@@ -6,7 +6,7 @@ export { RequireAuth } from './view/require-auth.js';
6
6
  export { Page } from './view/page.js';
7
7
  export { default as globalConstants } from './utils/constants.js';
8
8
  export { useAppDispatch, useAppSelector } from './data/react-redux.js';
9
- export { useInjectReducer, useInjectSaga } from 'redux-injectors';
9
+ export { useInjectReducer, useInjectSaga, createManager, } from 'redux-injectors';
10
10
  export { getAuthorizationHeader } from './utils/auth/helper.js';
11
11
  export { getRedirectUrl, removeDoubleSlash } from './utils/url.js';
12
12
  export { createAppStore as configureStore } from './data/store.js';
@@ -78,5 +78,5 @@ export type { EMUI } from './utils/window.js';
78
78
  export type { Await } from './utils/await.js';
79
79
  export type { RootState, AppStore } from './data/store.js';
80
80
  export type { AppConfig } from './utils/app-config/config.js';
81
- export type { OnInitCallback, OnMountCallback, } from './utils/micro-frontend/guest.js';
81
+ export type { OnInitCallback, OnMountCallback, OnUnMountCallback, } from './utils/micro-frontend/guest.js';
82
82
  export type { OnInitCallback as OnHostInitCallback } from './utils/micro-frontend/host.js';
@@ -1,6 +1,6 @@
1
1
  interface ServiceEndpoints {
2
- api: string;
3
- idp: string;
2
+ api?: string;
3
+ idp?: string;
4
4
  logger: string;
5
5
  }
6
6
  interface Env {
@@ -8,13 +8,11 @@ interface Env {
8
8
  }
9
9
  export interface AppConfig {
10
10
  appId: string;
11
- brand: string;
11
+ brand?: string;
12
12
  activeEnv: string;
13
- hosted: boolean;
14
- sessionTimeoutWarnInterval: string;
15
- sessionTimeoutInterval: string;
13
+ sessionTimeoutWarnInterval?: string;
14
+ sessionTimeoutInterval?: string;
16
15
  serviceEndpoints: ServiceEndpoints;
17
- walkMeUrl: string;
18
16
  env: {
19
17
  [key: string]: Env;
20
18
  };
@@ -1 +1 @@
1
- export declare const loadAppConfig: (hostUrl?: string) => Promise<void>;
1
+ export declare const loadAppConfig: (assetPath?: string) => Promise<void>;
@@ -1,6 +1,6 @@
1
- import { IMicroAppHost, ResizeEventHandler, BreakpointChangeEventHandler, SubscriptionListener, BAEvent } from '@elliemae/pui-micro-frontend-base';
2
1
  import { History, To } from 'history';
3
2
  import { DefaultTheme } from 'styled-components';
3
+ import { IMicroAppHost, ResizeEventHandler, BreakpointChangeEventHandler, SubscriptionListener, BAEvent } from '@elliemae/pui-micro-frontend-base';
4
4
  import { MicroFrontEndLogger } from './console-logger.js';
5
5
  declare type HostOptions = {
6
6
  systemVersion: string;
@@ -4,6 +4,8 @@ import { Logger } from '@elliemae/pui-diagnostics';
4
4
  export declare type EMUI = {
5
5
  [key: string]: IMicroAppGuest;
6
6
  } & {
7
+ _BASE_PATH: string;
8
+ _ASSET_PATH: string;
7
9
  version: string;
8
10
  MicroAppHost?: IMicroAppHost;
9
11
  logger?: Logger;
@@ -21,3 +23,4 @@ export declare const getViewportSize: () => {
21
23
  height: number;
22
24
  };
23
25
  export declare const getCurrentBreakpoint: () => BreakPoint;
26
+ export declare const getAssetPath: () => string;
@@ -5,4 +5,4 @@ export interface ErrorTemplateProps {
5
5
  componentStack: string;
6
6
  } | null;
7
7
  }
8
- export declare const DefaultErrorTemplate: (props: ErrorTemplateProps) => JSX.Element;
8
+ export declare const DefaultErrorTemplate: ({ error, errorInfo, }: ErrorTemplateProps) => JSX.Element;
@@ -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
  };
@@ -1,6 +1,6 @@
1
1
  import { MicroAppConfig } from '../../../utils/micro-frontend/types.js';
2
2
  export declare const APP_SCRIPT_ID_PREFIX = "emui-script-";
3
- export declare const addScriptToDOM: ({ name, hostUrl, documentEle }: MicroAppConfig, fileName: string, index: number) => Promise<string>;
3
+ export declare const addScriptToDOM: ({ name, hostUrl, documentEle, manifestPath }: MicroAppConfig, fileName: string, index: number) => Promise<string>;
4
4
  export declare const removeScriptFromDOM: (elementId?: string, documentEle?: Document) => Promise<void>;
5
5
  export declare const removeDynamicImportedScripts: (hostUrl: string, documentEle: HTMLDocument) => void;
6
6
  export declare const removePrefetchLinks: (hostUrl: string, documentEle: HTMLDocument) => void;
@@ -1,5 +1,5 @@
1
1
  import { MicroAppConfig } from '../../../utils/micro-frontend/types.js';
2
2
  export declare const APP_STYLE_ID_PREFIX = "emui-style-";
3
- export declare const addStylesToDOM: ({ name, hostUrl, documentEle }: MicroAppConfig, fileName: string, index: number) => Promise<string>;
3
+ export declare const addStylesToDOM: ({ name, hostUrl, documentEle, manifestPath }: MicroAppConfig, fileName: string, index: number) => Promise<string>;
4
4
  export declare const removeStyleFromDOM: (elementId?: string, documentEle?: Document) => Promise<void>;
5
- export declare const removeDynamicImportedStyles: (hostUrl: string, documentEle: HTMLDocument) => void;
5
+ export declare const removeDynamicImportedStyles: (hostUrl: string, documentEle: Document) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/pui-app-sdk",
3
- "version": "3.15.0",
3
+ "version": "4.0.0-alpha.10",
4
4
  "description": "ICE MT UI Platform Application SDK ",
5
5
  "sideEffects": [
6
6
  "*.css",
@@ -11,7 +11,7 @@
11
11
  "types": "./dist/types/lib/index.d.ts",
12
12
  "exports": {
13
13
  ".": {
14
- "types": "./dist/types/index.d.ts",
14
+ "types": "./dist/types/lib/index.d.ts",
15
15
  "import": "./dist/esm/index.js",
16
16
  "require": "./dist/cjs/index.js"
17
17
  },
@@ -20,32 +20,32 @@
20
20
  "require": "./dist/cjs/utils/storybook/*.js"
21
21
  },
22
22
  "./auth": {
23
- "types": "./dist/types/utils/auth/index.d.ts",
23
+ "types": "./dist/types/lib/utils/auth/index.d.ts",
24
24
  "import": "./dist/esm/utils/auth/index.js",
25
25
  "require": "./dist/cjs/utils/auth/index.js"
26
26
  },
27
27
  "./app-config": {
28
- "types": "./dist/types/utils/app-config/index.d.ts",
28
+ "types": "./dist/types/lib/utils/app-config/index.d.ts",
29
29
  "import": "./dist/esm/utils/app-config/index.js",
30
30
  "require": "./dist/cjs/utils/app-config/index.js"
31
31
  },
32
32
  "./http-client": {
33
- "types": "./dist/types/communication/http-client/index.d.ts",
33
+ "types": "./dist/types/lib/communication/http-client/index.d.ts",
34
34
  "import": "./dist/esm/communication/http-client/index.js",
35
35
  "require": "./dist/cjs/communication/http-client/index.js"
36
36
  },
37
37
  "./analytics": {
38
- "types": "./dist/types/analytics/index.d.ts",
38
+ "types": "./dist/types/lib/analytics/index.d.ts",
39
39
  "import": "./dist/esm/analytics/index.js",
40
40
  "require": "./dist/cjs/analytics/index.js"
41
41
  },
42
42
  "./data": {
43
- "types": "./dist/types/data/index.d.ts",
43
+ "types": "./dist/types/lib/data/index.d.ts",
44
44
  "import": "./dist/esm/data/index.js",
45
45
  "require": "./dist/cjs/data/index.js"
46
46
  },
47
47
  "./micro-frontend": {
48
- "types": "./dist/types/micro-frontend.d.ts",
48
+ "types": "./dist/types/lib/micro-frontend.d.ts",
49
49
  "import": "./dist/esm/micro-frontend.js",
50
50
  "require": "./dist/cjs/micro-frontend.js"
51
51
  }
@@ -91,8 +91,11 @@
91
91
  "setup": "rimraf -r node_modules && rimraf pnpm-lock.yaml && pnpm i",
92
92
  "test": "pui-cli test -p",
93
93
  "test:fix": "pui-cli test -f",
94
- "test:watch": "pui-cli test -w",
94
+ "test:watch": "jest --watch",
95
+ "test:debug": "pui-cli test --debug",
95
96
  "test:staged": "jest --coverage --passWithNoTests --bail --findRelatedTests",
97
+ "tscheck": "pui-cli tscheck --files",
98
+ "vitest": "pui-cli vitest",
96
99
  "upgrade": "ncu -u && npm run setup",
97
100
  "prepare": "[ -n \"$CI\" ] || husky install"
98
101
  },
@@ -103,50 +106,50 @@
103
106
  "indent": 4
104
107
  },
105
108
  "peerDependencies": {
106
- "@elliemae/app-react-dependencies": "^3.8.0",
107
- "@elliemae/ds-basic": "^3.4.2",
108
- "@elliemae/ds-button": "^3.4.2",
109
- "@elliemae/ds-controlled-form": "^3.4.2",
110
- "@elliemae/ds-date-picker": "^3.4.2",
111
- "@elliemae/ds-date-range-picker": "^3.4.2",
112
- "@elliemae/ds-dialog": "^3.4.2",
113
- "@elliemae/ds-form": "^3.4.2",
114
- "@elliemae/ds-form-layout-blocks": "^3.4.2",
115
- "@elliemae/ds-grid": "^3.4.2",
116
- "@elliemae/ds-loading-indicator": "^3.4.2",
117
- "@elliemae/ds-modal": "^3.4.2",
118
- "@elliemae/ds-popperjs": "^3.4.2",
119
- "@elliemae/ds-toast": "^3.4.2",
109
+ "@elliemae/app-react-dependencies": "^4.0.0-beta.5",
110
+ "@elliemae/ds-basic": "^3.4.4",
111
+ "@elliemae/ds-button": "^3.4.4",
112
+ "@elliemae/ds-controlled-form": "^3.4.4",
113
+ "@elliemae/ds-date-picker": "^3.4.4",
114
+ "@elliemae/ds-date-range-picker": "^3.4.4",
115
+ "@elliemae/ds-dialog": "^3.4.4",
116
+ "@elliemae/ds-form": "^3.4.4",
117
+ "@elliemae/ds-form-layout-blocks": "^3.4.4",
118
+ "@elliemae/ds-grid": "^3.4.4",
119
+ "@elliemae/ds-loading-indicator": "^3.4.4",
120
+ "@elliemae/ds-modal": "^3.4.4",
121
+ "@elliemae/ds-popperjs": "^3.4.4",
122
+ "@elliemae/ds-toast": "^3.4.4",
120
123
  "@elliemae/em-ssf-guest": "^1.11.2",
121
124
  "@elliemae/pui-diagnostics": "^2.7.4",
122
125
  "@elliemae/pui-micro-frontend-base": "^1.13.0",
123
126
  "@elliemae/pui-scripting-object": "^1.0.2",
124
127
  "@elliemae/pui-theme": "^2.6.0",
125
- "@elliemae/pui-user-monitoring": "^1.15.1"
128
+ "@elliemae/pui-user-monitoring": "^1.16.0"
126
129
  },
127
130
  "devDependencies": {
128
- "@elliemae/app-react-dependencies": "~3.8.0",
131
+ "@elliemae/app-react-dependencies": "4.0.0-beta.5",
129
132
  "@elliemae/browserslist-config-elliemae-latest-browsers": "~1.4.2",
130
- "@elliemae/ds-basic": "~3.4.2",
131
- "@elliemae/ds-button": "~3.4.2",
132
- "@elliemae/ds-controlled-form": "~3.4.2",
133
- "@elliemae/ds-date-picker": "~3.4.2",
134
- "@elliemae/ds-date-range-picker": "~3.4.2",
135
- "@elliemae/ds-dialog": "~3.4.2",
136
- "@elliemae/ds-form": "~3.4.2",
137
- "@elliemae/ds-form-layout-blocks": "~3.4.2",
138
- "@elliemae/ds-grid": "~3.4.2",
139
- "@elliemae/ds-loading-indicator": "~3.4.2",
140
- "@elliemae/ds-modal": "~3.4.2",
141
- "@elliemae/ds-popperjs": "~3.4.2",
142
- "@elliemae/ds-toast": "~3.4.2",
133
+ "@elliemae/ds-basic": "~3.4.4",
134
+ "@elliemae/ds-button": "~3.4.4",
135
+ "@elliemae/ds-controlled-form": "~3.4.4",
136
+ "@elliemae/ds-date-picker": "~3.4.4",
137
+ "@elliemae/ds-date-range-picker": "~3.4.4",
138
+ "@elliemae/ds-dialog": "~3.4.4",
139
+ "@elliemae/ds-form": "~3.4.4",
140
+ "@elliemae/ds-form-layout-blocks": "~3.4.4",
141
+ "@elliemae/ds-grid": "~3.4.4",
142
+ "@elliemae/ds-loading-indicator": "~3.4.4",
143
+ "@elliemae/ds-modal": "~3.4.4",
144
+ "@elliemae/ds-popperjs": "~3.4.4",
145
+ "@elliemae/ds-toast": "~3.4.4",
143
146
  "@elliemae/em-ssf-guest": "~1.11.2",
144
- "@elliemae/pui-cli": "~6.22.0",
147
+ "@elliemae/pui-cli": "7.0.0-alpha.35",
145
148
  "@elliemae/pui-diagnostics": "~2.7.4",
146
- "@elliemae/pui-e2e-test-sdk": "~7.3.4",
149
+ "@elliemae/pui-e2e-test-sdk": "~7.4.0",
147
150
  "@elliemae/pui-micro-frontend-base": "~1.13.0",
148
151
  "@elliemae/pui-scripting-object": "~1.0.2",
149
- "@elliemae/pui-theme": "2.6.0",
150
- "@elliemae/pui-user-monitoring": "~1.15.1"
152
+ "@elliemae/pui-theme": "~2.6.0",
153
+ "@elliemae/pui-user-monitoring": "~1.16.0"
151
154
  }
152
155
  }