@elliemae/pui-app-sdk 4.0.0-alpha.2 → 4.0.0-alpha.5

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 (189) hide show
  1. package/dist/cjs/utils/app-config/index.js +2 -2
  2. package/dist/cjs/utils/micro-frontend/guest.js +2 -1
  3. package/dist/cjs/utils/micro-frontend/host.js +1 -1
  4. package/dist/cjs/utils/micro-frontend/ssfguest-adapter.js +1 -1
  5. package/dist/cjs/utils/storybook/preview.js +1 -1
  6. package/dist/esm/utils/app-config/index.js +2 -2
  7. package/dist/esm/utils/micro-frontend/guest.js +2 -1
  8. package/dist/esm/utils/micro-frontend/host.js +1 -1
  9. package/dist/esm/utils/micro-frontend/ssfguest-adapter.js +1 -1
  10. package/dist/esm/utils/storybook/preview.js +1 -1
  11. package/dist/types/__mocks__/@elliemae/em-ssf-guest.d.ts +6 -0
  12. package/dist/types/{analytics → lib/analytics}/appdynamics.d.ts +0 -0
  13. package/dist/types/{analytics → lib/analytics}/index.d.ts +0 -0
  14. package/dist/types/{analytics → lib/analytics}/page-view-event.d.ts +0 -0
  15. package/dist/types/{analytics → lib/analytics}/user-session-event.d.ts +0 -0
  16. package/dist/types/{analytics → lib/analytics}/user-wait-event.d.ts +0 -0
  17. package/dist/types/{analytics → lib/analytics}/web-analytics.d.ts +0 -0
  18. package/dist/types/{api → lib/api}/auth/index.d.ts +0 -0
  19. package/dist/types/{api → lib/api}/helpers.d.ts +0 -0
  20. package/dist/types/{api → lib/api}/users/index.d.ts +0 -0
  21. package/dist/types/{api → lib/api}/users/index.endpoint.d.ts +0 -0
  22. package/dist/types/{communication → lib/communication}/http-client/index.d.ts +0 -0
  23. package/dist/types/{communication → lib/communication}/http-client/request-interceptor.d.ts +0 -0
  24. package/dist/types/{communication → lib/communication}/http-client/response-interceptor.d.ts +0 -0
  25. package/dist/types/{communication → lib/communication}/http-client/retry-axios.d.ts +0 -0
  26. package/dist/types/{communication → lib/communication}/http-client/retry.d.ts +0 -0
  27. package/dist/types/{communication → lib/communication}/http-client/tests/hello.endpoint.d.ts +0 -0
  28. package/dist/types/{communication → lib/communication}/http-client/tests/index.test.d.ts +0 -0
  29. package/dist/types/{communication → lib/communication}/http-client/tests/private.endpoint.d.ts +0 -0
  30. package/dist/types/{data → lib/data}/auth/actions.d.ts +0 -0
  31. package/dist/types/{data → lib/data}/auth/reducer.d.ts +0 -0
  32. package/dist/types/{data → lib/data}/breakpoint/index.d.ts +0 -0
  33. package/dist/types/{data → lib/data}/error/index.d.ts +0 -0
  34. package/dist/types/{data → lib/data}/index.d.ts +0 -0
  35. package/dist/types/{data → lib/data}/live-message/index.d.ts +0 -0
  36. package/dist/types/{data → lib/data}/logout/actions.d.ts +0 -0
  37. package/dist/types/{data → lib/data}/navigation-prompt/actions.d.ts +0 -0
  38. package/dist/types/{data → lib/data}/react-redux.d.ts +0 -0
  39. package/dist/types/{data → lib/data}/reducers.d.ts +0 -0
  40. package/dist/types/{data → lib/data}/saga.d.ts +0 -0
  41. package/dist/types/{data → lib/data}/store.d.ts +1 -1
  42. package/dist/types/{data → lib/data}/tests/store.test.d.ts +0 -0
  43. package/dist/types/{data → lib/data}/wait-message/actions.d.ts +0 -0
  44. package/dist/types/{data → lib/data}/wait-message/reducer.d.ts +0 -0
  45. package/dist/types/{data → lib/data}/webpack-hmr.d.ts +0 -0
  46. package/dist/types/{index.d.ts → lib/index.d.ts} +0 -0
  47. package/dist/types/{micro-frontend.d.ts → lib/micro-frontend.d.ts} +0 -0
  48. package/dist/types/{sideeffect → lib/sideeffect}/auth/index.d.ts +0 -0
  49. package/dist/types/{sideeffect → lib/sideeffect}/error-toast/index.d.ts +0 -0
  50. package/dist/types/{sideeffect → lib/sideeffect}/wait-message/index.d.ts +0 -0
  51. package/dist/types/{utils → lib/utils}/app-config/config.d.ts +0 -0
  52. package/dist/types/lib/utils/app-config/index.d.ts +1 -0
  53. package/dist/types/{utils → lib/utils}/app-host-integration/react.d.ts +0 -0
  54. package/dist/types/{utils → lib/utils}/auth/helper.d.ts +0 -0
  55. package/dist/types/{utils → lib/utils}/auth/index.d.ts +0 -0
  56. package/dist/types/{utils → lib/utils}/await.d.ts +0 -0
  57. package/dist/types/{utils → lib/utils}/constants.d.ts +0 -0
  58. package/dist/types/{utils → lib/utils}/font-size.d.ts +0 -0
  59. package/dist/types/{utils → lib/utils}/guest-with-service.d.ts +0 -0
  60. package/dist/types/{utils → lib/utils}/helpers.d.ts +0 -0
  61. package/dist/types/{utils → lib/utils}/history.d.ts +0 -0
  62. package/dist/types/{utils → lib/utils}/log-records.d.ts +0 -0
  63. package/dist/types/{utils → lib/utils}/micro-frontend/console-logger.d.ts +0 -0
  64. package/dist/types/{utils → lib/utils}/micro-frontend/guest.d.ts +0 -0
  65. package/dist/types/{utils → lib/utils}/micro-frontend/host.d.ts +3 -3
  66. package/dist/types/{utils → lib/utils}/micro-frontend/index.d.ts +0 -0
  67. package/dist/types/{utils → lib/utils}/micro-frontend/ssfguest-adapter.d.ts +2 -2
  68. package/dist/types/lib/utils/micro-frontend/tests/guest-ssf-host.test.d.ts +1 -0
  69. package/dist/types/lib/utils/micro-frontend/tests/guest.test.d.ts +1 -0
  70. package/dist/types/{utils → lib/utils}/micro-frontend/types.d.ts +0 -0
  71. package/dist/types/{utils → lib/utils}/redact-pii.d.ts +0 -0
  72. package/dist/types/{utils → lib/utils}/service-worker.d.ts +0 -0
  73. package/dist/types/{utils → lib/utils}/session.d.ts +0 -0
  74. package/dist/types/{utils → lib/utils}/storybook/cjs/main.d.ts +0 -0
  75. package/dist/types/{utils → lib/utils}/storybook/cjs/middleware.d.ts +0 -0
  76. package/dist/types/{utils → lib/utils}/storybook/cjs/vite.d.ts +0 -0
  77. package/dist/types/{utils → lib/utils}/storybook/cjs/webpack.d.ts +0 -0
  78. package/dist/types/{utils → lib/utils}/storybook/manager.d.ts +0 -0
  79. package/dist/types/{utils → lib/utils}/storybook/preview.d.ts +0 -0
  80. package/dist/types/{utils → lib/utils}/storybook/theme.d.ts +0 -0
  81. package/dist/types/lib/utils/testing/index.d.ts +4 -0
  82. package/dist/types/{utils → lib/utils}/testing/render-with-redux.d.ts +0 -0
  83. package/dist/types/{utils → lib/utils}/testing/render-with-router-redux.d.ts +0 -0
  84. package/dist/types/{utils → lib/utils}/testing/render-with-router.d.ts +0 -0
  85. package/dist/types/{utils → lib/utils}/testing/render-with-state-addons.d.ts +0 -0
  86. package/dist/types/{utils → lib/utils}/types.d.ts +0 -0
  87. package/dist/types/{utils → lib/utils}/url.d.ts +0 -0
  88. package/dist/types/{utils → lib/utils}/web-storage.d.ts +0 -0
  89. package/dist/types/{utils → lib/utils}/window.d.ts +0 -0
  90. package/dist/types/{view → lib/view}/app-root/hosted-app.d.ts +0 -0
  91. package/dist/types/{view → lib/view}/app-root/index.d.ts +0 -0
  92. package/dist/types/{view → lib/view}/app-root/stand-alone-app.d.ts +0 -0
  93. package/dist/types/{view → lib/view}/app-root/style.d.ts +0 -0
  94. package/dist/types/{view → lib/view}/app-router.d.ts +0 -0
  95. package/dist/types/{view → lib/view}/breakpoint/index.stories.d.ts +0 -0
  96. package/dist/types/{view → lib/view}/breakpoint/use-breakpoint.d.ts +0 -0
  97. package/dist/types/{view → lib/view}/breakpoint/use-media-query-list.d.ts +0 -0
  98. package/dist/types/{view → lib/view}/error-boundary/default-error-template.d.ts +0 -0
  99. package/dist/types/{view → lib/view}/error-boundary/index.d.ts +0 -0
  100. package/dist/types/{view → lib/view}/error-toast/index.d.ts +0 -0
  101. package/dist/types/{view → lib/view}/error-toast/index.stories.d.ts +0 -0
  102. package/dist/types/{view → lib/view}/fetch-host-app-data/index.d.ts +0 -0
  103. package/dist/types/{view → lib/view}/fetch-host-app-data/store.d.ts +0 -0
  104. package/dist/types/{view → lib/view}/fields/check-box/index.d.ts +0 -0
  105. package/dist/types/{view → lib/view}/fields/check-box/index.stories.d.ts +0 -0
  106. package/dist/types/{view → lib/view}/fields/check-box/set-value.stories.d.ts +0 -0
  107. package/dist/types/{view → lib/view}/fields/combo-box/index.d.ts +0 -0
  108. package/dist/types/{view → lib/view}/fields/combo-box/index.stories.d.ts +0 -0
  109. package/dist/types/{view → lib/view}/fields/connect-form.d.ts +0 -0
  110. package/dist/types/{view → lib/view}/fields/date-input/index.d.ts +0 -0
  111. package/dist/types/{view → lib/view}/fields/date-input/index.stories.d.ts +0 -0
  112. package/dist/types/{view → lib/view}/fields/date-picker/index.d.ts +0 -0
  113. package/dist/types/{view → lib/view}/fields/date-picker/index.stories.d.ts +0 -0
  114. package/dist/types/{view → lib/view}/fields/date-range-picker/index.d.ts +0 -0
  115. package/dist/types/{view → lib/view}/fields/date-range-picker/index.stories.d.ts +0 -0
  116. package/dist/types/{view → lib/view}/fields/date-time-picker/index.d.ts +0 -0
  117. package/dist/types/{view → lib/view}/fields/date-time-picker/index.stories.d.ts +0 -0
  118. package/dist/types/{view → lib/view}/fields/form-item-layout/index.d.ts +0 -0
  119. package/dist/types/{view → lib/view}/fields/form-item-layout/index.stories.d.ts +0 -0
  120. package/dist/types/{view → lib/view}/fields/form-layout-block-item/index.d.ts +0 -0
  121. package/dist/types/{view → lib/view}/fields/form-layout-block-item/index.stories.d.ts +0 -0
  122. package/dist/types/{view → lib/view}/fields/input-mask/index.d.ts +0 -0
  123. package/dist/types/{view → lib/view}/fields/input-mask/index.stories.d.ts +0 -0
  124. package/dist/types/{view → lib/view}/fields/input-text/index.d.ts +0 -0
  125. package/dist/types/{view → lib/view}/fields/input-text/index.stories.d.ts +0 -0
  126. package/dist/types/{view → lib/view}/fields/large-text-box/index.d.ts +0 -0
  127. package/dist/types/{view → lib/view}/fields/large-text-box/index.stories.d.ts +0 -0
  128. package/dist/types/{view → lib/view}/fields/radio/index.d.ts +0 -0
  129. package/dist/types/{view → lib/view}/fields/radio/index.stories.d.ts +0 -0
  130. package/dist/types/{view → lib/view}/fields/radio/set-value.stories.d.ts +0 -0
  131. package/dist/types/{view → lib/view}/fields/radio-group/index.d.ts +0 -0
  132. package/dist/types/{view → lib/view}/fields/radio-group/index.stories.d.ts +0 -0
  133. package/dist/types/{view → lib/view}/fields/text-box/index.d.ts +0 -0
  134. package/dist/types/{view → lib/view}/fields/text-box/index.stories.d.ts +0 -0
  135. package/dist/types/{view → lib/view}/fields/toggle/index.d.ts +0 -0
  136. package/dist/types/{view → lib/view}/fields/toggle/index.stories.d.ts +0 -0
  137. package/dist/types/{view → lib/view}/fields/watch-value.d.ts +0 -0
  138. package/dist/types/{view → lib/view}/form/index.d.ts +0 -0
  139. package/dist/types/{view → lib/view}/form/index.stories.d.ts +0 -0
  140. package/dist/types/{view → lib/view}/form/personal-info-section.d.ts +0 -0
  141. package/dist/types/{view → lib/view}/form/submit-button/index.d.ts +0 -0
  142. package/dist/types/{view → lib/view}/form/usecases.stories.d.ts +0 -0
  143. package/dist/types/{view → lib/view}/guest-unload-handlers/index.d.ts +0 -0
  144. package/dist/types/{view → lib/view}/host-binding-events/index.d.ts +0 -0
  145. package/dist/types/{view → lib/view}/live-message/index.d.ts +0 -0
  146. package/dist/types/{view → lib/view}/live-message/index.stories.d.ts +0 -0
  147. package/dist/types/{view → lib/view}/loadable/index.d.ts +0 -0
  148. package/dist/types/{view → lib/view}/login/index.d.ts +0 -0
  149. package/dist/types/{view → lib/view}/message-to-host-app/index.d.ts +0 -0
  150. package/dist/types/{view → lib/view}/micro-app/app-factory/index.d.ts +0 -0
  151. package/dist/types/{view → lib/view}/micro-app/const.d.ts +0 -0
  152. package/dist/types/{view → lib/view}/micro-app/index.d.ts +0 -0
  153. package/dist/types/{view → lib/view}/micro-app/resources/manifest.d.ts +0 -0
  154. package/dist/types/{view → lib/view}/micro-app/resources/script.d.ts +0 -0
  155. package/dist/types/{view → lib/view}/micro-app/resources/style.d.ts +0 -0
  156. package/dist/types/{view → lib/view}/micro-app/types.d.ts +0 -0
  157. package/dist/types/{view → lib/view}/micro-app/use-app-will-render.d.ts +0 -0
  158. package/dist/types/{view → lib/view}/micro-app/utils.d.ts +0 -0
  159. package/dist/types/{view → lib/view}/micro-iframe-app/app.d.ts +0 -0
  160. package/dist/types/{view → lib/view}/micro-iframe-app/iframe/const.d.ts +0 -0
  161. package/dist/types/{view → lib/view}/micro-iframe-app/iframe/index.d.ts +0 -0
  162. package/dist/types/{view → lib/view}/micro-iframe-app/index.d.ts +0 -0
  163. package/dist/types/{view → lib/view}/micro-iframe-app/types.d.ts +0 -0
  164. package/dist/types/{view → lib/view}/micro-iframe-app/use-frame-loaded.d.ts +0 -0
  165. package/dist/types/{view → lib/view}/modals/error/index.d.ts +0 -0
  166. package/dist/types/{view → lib/view}/modals/error/index.stories.d.ts +0 -0
  167. package/dist/types/{view → lib/view}/modals/navigation-prompt/index.d.ts +0 -0
  168. package/dist/types/{view → lib/view}/modals/navigation-prompt/index.stories.d.ts +0 -0
  169. package/dist/types/{view → lib/view}/modals/session-expiry/customHooks.d.ts +0 -0
  170. package/dist/types/{view → lib/view}/modals/session-expiry/index.d.ts +0 -0
  171. package/dist/types/{view → lib/view}/modals/session-expiry/index.stories.d.ts +0 -0
  172. package/dist/types/{view → lib/view}/modals/wait-message/index.d.ts +0 -0
  173. package/dist/types/{view → lib/view}/modals/wait-message/index.stories.d.ts +0 -0
  174. package/dist/types/{view → lib/view}/modals/wait-message/use-html-wait-message.d.ts +0 -0
  175. package/dist/types/{view → lib/view}/modals/wait-message/wait-message-launcher.d.ts +0 -0
  176. package/dist/types/{view → lib/view}/page.d.ts +0 -0
  177. package/dist/types/{view → lib/view}/render-with-delay/index.d.ts +0 -0
  178. package/dist/types/{view → lib/view}/render-with-host-data/index.d.ts +0 -0
  179. package/dist/types/{view → lib/view}/require-auth.d.ts +0 -0
  180. package/dist/types/{view → lib/view}/session-timeout/index.d.ts +0 -0
  181. package/dist/types/{view → lib/view}/session-timeout/index.stories.d.ts +0 -0
  182. package/dist/types/{view → lib/view}/storybook/decorator.d.ts +0 -0
  183. package/dist/types/{view → lib/view}/use-previous.d.ts +0 -0
  184. package/dist/types/{view → lib/view}/use-window-size-change.d.ts +0 -0
  185. package/dist/types/lib/view/visually-hidden/index.d.ts +4 -0
  186. package/package.json +42 -37
  187. package/dist/types/utils/app-config/index.d.ts +0 -1
  188. package/dist/types/utils/testing/index.d.ts +0 -4
  189. package/dist/types/view/visually-hidden/index.d.ts +0 -2
@@ -39,8 +39,8 @@ const parseAppConfig = (data) => {
39
39
  (0, import_appdynamics.setAppDynamicsUserData)({ envName: activeEnv });
40
40
  (0, import_web_analytics.updateBAEventParameters)({ envName: activeEnv });
41
41
  };
42
- const loadAppConfig = () => new Promise((resolve, reject) => {
43
- (0, import_http_client.getHTTPClient)().get(`${(0, import_window.getAssetPath)()}app.config.json`).then(({ data }) => {
42
+ const loadAppConfig = (assetPath = "") => new Promise((resolve, reject) => {
43
+ (0, import_http_client.getHTTPClient)().get(`${assetPath || (0, import_window.getAssetPath)()}app.config.json`).then(({ data }) => {
44
44
  parseAppConfig(data);
45
45
  resolve();
46
46
  }).catch((err) => {
@@ -105,7 +105,8 @@ class CMicroAppGuest {
105
105
  if (window.parent !== window) {
106
106
  if (!isCrossDomain()) {
107
107
  host = window.parent?.emui?.MicroAppHost || null;
108
- } else {
108
+ }
109
+ if (!host) {
109
110
  const ssfAdapter = new import_ssfguest_adapter.SSFGuestAdapter();
110
111
  if (!await ssfAdapter.init())
111
112
  return null;
@@ -156,7 +156,7 @@ class CMicroAppHost {
156
156
  sendBAEvent(data) {
157
157
  (0, import_analytics.sendBAEvent)({ data, self: true });
158
158
  }
159
- getObject(name) {
159
+ async getObject(name) {
160
160
  return this.domainObjects[name];
161
161
  }
162
162
  }
@@ -35,7 +35,7 @@ class SSFGuestAdapter {
35
35
  return import_em_ssf_guest.default.getObject(name);
36
36
  }
37
37
  subscribe(message, func) {
38
- const callback = (domainObject, eventData) => {
38
+ const callback = (scriptingObj, eventData) => {
39
39
  func(message, eventData);
40
40
  };
41
41
  const [objectId, eventName] = message.split(".");
@@ -65,6 +65,6 @@ const getParameters = (storyBookTheme) => ({
65
65
  const decorators = [appDecorator];
66
66
  const loaders = [
67
67
  async () => {
68
- await (0, import_app_config.loadAppConfig)();
68
+ await (0, import_app_config.loadAppConfig)("/");
69
69
  }
70
70
  ];
@@ -14,8 +14,8 @@ const parseAppConfig = (data) => {
14
14
  setAppDynamicsUserData({ envName: activeEnv });
15
15
  updateBAEventParameters({ envName: activeEnv });
16
16
  };
17
- const loadAppConfig = () => new Promise((resolve, reject) => {
18
- getHTTPClient().get(`${getAssetPath()}app.config.json`).then(({ data }) => {
17
+ const loadAppConfig = (assetPath = "") => new Promise((resolve, reject) => {
18
+ getHTTPClient().get(`${assetPath || getAssetPath()}app.config.json`).then(({ data }) => {
19
19
  parseAppConfig(data);
20
20
  resolve();
21
21
  }).catch((err) => {
@@ -80,7 +80,8 @@ class CMicroAppGuest {
80
80
  if (window.parent !== window) {
81
81
  if (!isCrossDomain()) {
82
82
  host = window.parent?.emui?.MicroAppHost || null;
83
- } else {
83
+ }
84
+ if (!host) {
84
85
  const ssfAdapter = new SSFGuestAdapter();
85
86
  if (!await ssfAdapter.init())
86
87
  return null;
@@ -141,7 +141,7 @@ class CMicroAppHost {
141
141
  sendBAEvent(data) {
142
142
  sendBAEvent({ data, self: true });
143
143
  }
144
- getObject(name) {
144
+ async getObject(name) {
145
145
  return this.domainObjects[name];
146
146
  }
147
147
  }
@@ -10,7 +10,7 @@ class SSFGuestAdapter {
10
10
  return ssfGuest.getObject(name);
11
11
  }
12
12
  subscribe(message, func) {
13
- const callback = (domainObject, eventData) => {
13
+ const callback = (scriptingObj, eventData) => {
14
14
  func(message, eventData);
15
15
  };
16
16
  const [objectId, eventName] = message.split(".");
@@ -41,7 +41,7 @@ const getParameters = (storyBookTheme) => ({
41
41
  const decorators = [appDecorator];
42
42
  const loaders = [
43
43
  async () => {
44
- await loadAppConfig();
44
+ await loadAppConfig("/");
45
45
  }
46
46
  ];
47
47
  export {
@@ -0,0 +1,6 @@
1
+ import { IAuth } from '@elliemae/pui-scripting-object';
2
+ declare const _default: {
3
+ connect: () => Promise<void>;
4
+ getObject: (objectId: string) => Promise<IAuth>;
5
+ };
6
+ export default _default;
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -22,7 +22,7 @@ export declare const createAppStore: (initialState: import("redux").CombinedStat
22
22
  error: import("./error/index.js").ErrorState;
23
23
  breakpoint: import("./breakpoint/index.js").BreakpointState;
24
24
  liveMessage: import("./live-message/index.js").LiveMessageState;
25
- }> | undefined, history: History, middlewareConfig?: MiddlewareConfig | undefined) => import("@reduxjs/toolkit").EnhancedStore<import("redux").CombinedState<{
25
+ }> | undefined, history: History, middlewareConfig?: MiddlewareConfig) => import("@reduxjs/toolkit").EnhancedStore<import("redux").CombinedState<{
26
26
  waitMessage: import("./wait-message/reducer.js").WaitMessageState;
27
27
  error: import("./error/index.js").ErrorState;
28
28
  breakpoint: import("./breakpoint/index.js").BreakpointState;
File without changes
File without changes
@@ -0,0 +1 @@
1
+ export declare const loadAppConfig: (assetPath?: string) => Promise<void>;
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,6 +1,6 @@
1
- import { IMicroAppHost, ResizeEventHandler, BreakpointChangeEventHandler, SubscriptionListener, BAEvent, IDomainObject } 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;
@@ -21,7 +21,7 @@ export declare class CMicroAppHost implements IMicroAppHost {
21
21
  activeGuests: Record<string, unknown>;
22
22
  private readonly onInit?;
23
23
  private readonly onRenewSessionTimer?;
24
- domainObjects: Record<string, IDomainObject>;
24
+ domainObjects: Record<string, any>;
25
25
  private constructor();
26
26
  static getInstance(params?: ConstructorParams): CMicroAppHost;
27
27
  static isInitialized(): boolean;
@@ -51,6 +51,6 @@ export declare class CMicroAppHost implements IMicroAppHost {
51
51
  onBreakpointChangeEvent(eventHandler: BreakpointChangeEventHandler): string;
52
52
  setSystemVersion(version?: string): void;
53
53
  sendBAEvent(this: void, data: BAEvent): void;
54
- getObject<T extends IDomainObject>(name: string): T;
54
+ getObject<T>(name: string): Promise<T>;
55
55
  }
56
56
  export {};
@@ -1,7 +1,7 @@
1
- import { SubscriptionListener, IDomainObject } from '@elliemae/pui-micro-frontend-base';
1
+ import { SubscriptionListener } from '@elliemae/pui-micro-frontend-base';
2
2
  export declare class SSFGuestAdapter {
3
3
  init(): Promise<boolean>;
4
- getObject<T extends IDomainObject>(name: string): Promise<T>;
4
+ getObject<T>(name: string): Promise<T>;
5
5
  subscribe<T>(message: string, func: SubscriptionListener<T>): string | number;
6
6
  unsubscribe(token: string, objectId: string, eventName: string): void;
7
7
  }
File without changes
File without changes
@@ -0,0 +1,4 @@
1
+ import { RenderOptions } from '@testing-library/react';
2
+ declare const customRender: (ui: React.ReactElement, options?: Omit<RenderOptions, 'queries'>) => import("@testing-library/react").RenderResult<typeof import("@testing-library/dom/types/queries.js"), HTMLElement, HTMLElement>;
3
+ export * from '@testing-library/react';
4
+ export { customRender as render };
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ export declare const VisuallyHidden: import("react").ForwardRefExoticComponent<{
3
+ children: React.ReactNode;
4
+ } & import("react").RefAttributes<HTMLSpanElement>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/pui-app-sdk",
3
- "version": "4.0.0-alpha.2",
3
+ "version": "4.0.0-alpha.5",
4
4
  "description": "ICE MT UI Platform Application SDK ",
5
5
  "sideEffects": [
6
6
  "*.css",
@@ -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,48 +106,50 @@
103
106
  "indent": 4
104
107
  },
105
108
  "peerDependencies": {
106
- "@elliemae/app-react-dependencies": "^4.0.0-beta.1",
107
- "@elliemae/ds-basic": "^3.0.3",
108
- "@elliemae/ds-button": "^3.0.3",
109
- "@elliemae/ds-controlled-form": "^3.0.3",
110
- "@elliemae/ds-date-picker": "^3.0.3",
111
- "@elliemae/ds-date-range-picker": "^3.0.3",
112
- "@elliemae/ds-dialog": "^3.0.3",
113
- "@elliemae/ds-form": "^3.0.3",
114
- "@elliemae/ds-form-layout-blocks": "^3.0.3",
115
- "@elliemae/ds-grid": "^3.0.3",
116
- "@elliemae/ds-loading-indicator": "^3.0.3",
117
- "@elliemae/ds-modal": "^3.0.3",
118
- "@elliemae/ds-popperjs": "^3.0.3",
119
- "@elliemae/ds-toast": "^3.0.3",
120
- "@elliemae/em-ssf-guest": "^1.11.1",
109
+ "@elliemae/app-react-dependencies": "^4.0.0-beta.2",
110
+ "@elliemae/ds-basic": "^3.2.0",
111
+ "@elliemae/ds-button": "^3.2.0",
112
+ "@elliemae/ds-controlled-form": "^3.2.0",
113
+ "@elliemae/ds-date-picker": "^3.2.0",
114
+ "@elliemae/ds-date-range-picker": "^3.2.0",
115
+ "@elliemae/ds-dialog": "^3.2.0",
116
+ "@elliemae/ds-form": "^3.2.0",
117
+ "@elliemae/ds-form-layout-blocks": "^3.2.0",
118
+ "@elliemae/ds-grid": "^3.2.0",
119
+ "@elliemae/ds-loading-indicator": "^3.2.0",
120
+ "@elliemae/ds-modal": "^3.2.0",
121
+ "@elliemae/ds-popperjs": "^3.2.0",
122
+ "@elliemae/ds-toast": "^3.2.0",
123
+ "@elliemae/em-ssf-guest": "^1.11.2",
121
124
  "@elliemae/pui-diagnostics": "^2.7.4",
122
- "@elliemae/pui-micro-frontend-base": "^1.11.2",
123
- "@elliemae/pui-theme": "^2.5.0",
125
+ "@elliemae/pui-micro-frontend-base": "^1.12.2",
126
+ "@elliemae/pui-scripting-object": "^1.0.2",
127
+ "@elliemae/pui-theme": "^2.6.0",
124
128
  "@elliemae/pui-user-monitoring": "^1.15.1"
125
129
  },
126
130
  "devDependencies": {
127
- "@elliemae/app-react-dependencies": "4.0.0-beta.1",
131
+ "@elliemae/app-react-dependencies": "4.0.0-beta.2",
128
132
  "@elliemae/browserslist-config-elliemae-latest-browsers": "~1.4.2",
129
- "@elliemae/ds-basic": "~3.0.3",
130
- "@elliemae/ds-button": "~3.0.3",
131
- "@elliemae/ds-controlled-form": "~3.0.3",
132
- "@elliemae/ds-date-picker": "~3.0.3",
133
- "@elliemae/ds-date-range-picker": "~3.0.3",
134
- "@elliemae/ds-dialog": "~3.0.3",
135
- "@elliemae/ds-form": "~3.0.3",
136
- "@elliemae/ds-form-layout-blocks": "~3.0.3",
137
- "@elliemae/ds-grid": "~3.0.3",
138
- "@elliemae/ds-loading-indicator": "~3.0.3",
139
- "@elliemae/ds-modal": "~3.0.3",
140
- "@elliemae/ds-popperjs": "~3.0.3",
141
- "@elliemae/ds-toast": "~3.0.3",
142
- "@elliemae/em-ssf-guest": "~1.11.1",
143
- "@elliemae/pui-cli": "7.0.0-alpha.10",
133
+ "@elliemae/ds-basic": "~3.2.0",
134
+ "@elliemae/ds-button": "~3.2.0",
135
+ "@elliemae/ds-controlled-form": "~3.2.0",
136
+ "@elliemae/ds-date-picker": "~3.2.0",
137
+ "@elliemae/ds-date-range-picker": "~3.2.0",
138
+ "@elliemae/ds-dialog": "~3.2.0",
139
+ "@elliemae/ds-form": "~3.2.0",
140
+ "@elliemae/ds-form-layout-blocks": "~3.2.0",
141
+ "@elliemae/ds-grid": "~3.2.0",
142
+ "@elliemae/ds-loading-indicator": "~3.2.0",
143
+ "@elliemae/ds-modal": "~3.2.0",
144
+ "@elliemae/ds-popperjs": "~3.2.0",
145
+ "@elliemae/ds-toast": "~3.2.0",
146
+ "@elliemae/em-ssf-guest": "~1.11.2",
147
+ "@elliemae/pui-cli": "7.0.0-alpha.22",
144
148
  "@elliemae/pui-diagnostics": "~2.7.4",
145
149
  "@elliemae/pui-e2e-test-sdk": "~7.3.4",
146
- "@elliemae/pui-micro-frontend-base": "~1.11.2",
147
- "@elliemae/pui-theme": "~2.5.0",
150
+ "@elliemae/pui-micro-frontend-base": "~1.12.2",
151
+ "@elliemae/pui-scripting-object": "~1.0.2",
152
+ "@elliemae/pui-theme": "~2.6.0",
148
153
  "@elliemae/pui-user-monitoring": "~1.15.1"
149
154
  }
150
155
  }
@@ -1 +0,0 @@
1
- export declare const loadAppConfig: () => Promise<void>;
@@ -1,4 +0,0 @@
1
- import { RenderOptions } from '@testing-library/react';
2
- declare const customRender: (ui: React.ReactElement, options?: Omit<RenderOptions<typeof import("@testing-library/dom/types/queries"), HTMLElement, HTMLElement>, "queries"> | undefined) => import("@testing-library/react").RenderResult<typeof import("@testing-library/dom/types/queries"), HTMLElement, HTMLElement>;
3
- export * from '@testing-library/react';
4
- export { customRender as render };
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const VisuallyHidden: import("react").ForwardRefExoticComponent<Pick<import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>, string | number | symbol> & import("react").RefAttributes<HTMLSpanElement>>;