@elliemae/pui-app-sdk 3.0.0-beta.5 → 3.0.0-beta.9

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 (375) hide show
  1. package/dist/cjs/analytics/index.js +3 -3
  2. package/dist/cjs/analytics/page-view-event.js +2 -2
  3. package/dist/cjs/analytics/user-session-event.js +4 -4
  4. package/dist/cjs/analytics/user-wait-event.js +3 -3
  5. package/dist/cjs/api/auth/index.js +1 -1
  6. package/dist/cjs/api/users/index.js +1 -1
  7. package/dist/cjs/communication/http-client/index.js +5 -5
  8. package/dist/cjs/communication/http-client/request-interceptor.js +1 -1
  9. package/dist/cjs/communication/http-client/retry.js +1 -1
  10. package/dist/cjs/communication/http-client/tests/index.test-disable.js +3 -3
  11. package/dist/cjs/data/auth/reducer.js +1 -1
  12. package/dist/cjs/data/index.js +34 -0
  13. package/dist/cjs/data/reducers.js +4 -4
  14. package/dist/cjs/data/store.js +1 -1
  15. package/dist/cjs/data/wait-message/reducer.js +1 -1
  16. package/dist/cjs/index.js +73 -73
  17. package/dist/cjs/micro-frontend.js +33 -0
  18. package/dist/cjs/route/index.js +2 -1
  19. package/dist/cjs/route/page-view.js +1 -1
  20. package/dist/cjs/route/private-route/index.js +8 -7
  21. package/dist/cjs/sideeffect/auth/index.js +4 -4
  22. package/dist/cjs/sideeffect/error-toast/index.js +4 -4
  23. package/dist/cjs/sideeffect/wait-message/index.js +4 -4
  24. package/dist/cjs/utils/app-config/index.js +4 -4
  25. package/dist/cjs/utils/app-host-integration/react.js +1 -1
  26. package/dist/cjs/utils/auth/helper.js +1 -1
  27. package/dist/cjs/utils/auth/index.js +9 -9
  28. package/dist/cjs/utils/micro-frontend/console-logger.js +1 -1
  29. package/dist/cjs/utils/micro-frontend/guest.js +8 -8
  30. package/dist/cjs/utils/micro-frontend/host.js +14 -14
  31. package/dist/cjs/utils/micro-frontend/index.js +4 -4
  32. package/dist/cjs/utils/service-worker.js +2 -2
  33. package/dist/cjs/utils/session.js +2 -2
  34. package/dist/cjs/utils/storybook/{main.js → cjs/main.js} +11 -3
  35. package/dist/cjs/utils/storybook/{middleware.js → cjs/middleware.js} +0 -0
  36. package/dist/cjs/utils/storybook/{vite.js → cjs/vite.js} +0 -0
  37. package/dist/cjs/utils/storybook/{webpack.js → cjs/webpack.js} +0 -0
  38. package/dist/cjs/utils/storybook/manager.js +1 -1
  39. package/dist/cjs/utils/storybook/preview.js +7 -8
  40. package/dist/cjs/utils/testing/index.js +4 -3
  41. package/dist/cjs/utils/testing/render-with-redux.js +3 -2
  42. package/dist/cjs/utils/testing/render-with-router-redux.js +3 -2
  43. package/dist/cjs/utils/testing/render-with-router.js +1 -0
  44. package/dist/cjs/utils/testing/render-with-state-addons.js +1 -0
  45. package/dist/cjs/view/app-root/hosted-app.js +5 -4
  46. package/dist/cjs/view/app-root/index.js +7 -6
  47. package/dist/cjs/view/app-root/stand-alone-app.js +8 -7
  48. package/dist/cjs/view/error-boundary/default-error-template.js +17 -0
  49. package/dist/cjs/view/error-boundary/index.js +3 -3
  50. package/dist/cjs/view/error-toast/index.js +8 -7
  51. package/dist/cjs/view/fetch-host-app-data/index.js +3 -3
  52. package/dist/cjs/view/fields/check-box/index.js +2 -1
  53. package/dist/cjs/view/fields/combo-box/index.js +2 -1
  54. package/dist/cjs/view/fields/date-input/index.js +2 -1
  55. package/dist/cjs/view/fields/date-picker/index.js +1 -0
  56. package/dist/cjs/view/fields/form-item-layout/index.js +3 -2
  57. package/dist/cjs/view/fields/input-mask/index.js +2 -1
  58. package/dist/cjs/view/fields/large-text-box/index.js +2 -1
  59. package/dist/cjs/view/fields/radio/index.js +2 -1
  60. package/dist/cjs/view/fields/radio-group/index.js +2 -1
  61. package/dist/cjs/view/fields/text-box/index.js +2 -1
  62. package/dist/cjs/view/fields/watch-value.js +1 -0
  63. package/dist/cjs/view/form/index.js +1 -0
  64. package/dist/cjs/view/form/personal-info-section.js +5 -4
  65. package/dist/cjs/view/form/submit-button/index.js +3 -2
  66. package/dist/cjs/view/guest-unload-handlers/index.js +1 -1
  67. package/dist/cjs/view/header/center-region/index.js +1 -0
  68. package/dist/cjs/view/header/index.js +5 -4
  69. package/dist/cjs/view/header/logo-region/index.js +1 -0
  70. package/dist/cjs/view/header/nav-region/index.js +3 -2
  71. package/dist/cjs/view/header/nav-region/notification/index.js +1 -0
  72. package/dist/cjs/view/header/nav-region/user/index.js +1 -0
  73. package/dist/cjs/view/live-message/index.js +2 -1
  74. package/dist/cjs/view/loadable/index.js +2 -1
  75. package/dist/cjs/view/login/index.js +4 -3
  76. package/dist/cjs/view/media-breakpoint/index.js +5 -4
  77. package/dist/cjs/view/message-to-host-app/index.js +1 -1
  78. package/dist/cjs/view/micro-app/app-factory/index.js +11 -9
  79. package/dist/cjs/view/micro-app/index.js +3 -2
  80. package/dist/cjs/view/micro-app/resources/manifest.js +6 -4
  81. package/dist/cjs/view/micro-app/resources/script.js +1 -1
  82. package/dist/cjs/view/micro-app/resources/style.js +1 -1
  83. package/dist/cjs/view/micro-app/use-app-will-render.js +4 -4
  84. package/dist/cjs/view/micro-app/utils.js +1 -1
  85. package/dist/cjs/view/micro-iframe-app/app.js +4 -3
  86. package/dist/cjs/view/micro-iframe-app/iframe/index.js +2 -1
  87. package/dist/cjs/view/micro-iframe-app/index.js +3 -2
  88. package/dist/cjs/view/micro-iframe-app/use-frame-loaded.js +5 -3
  89. package/dist/cjs/view/modals/error/index.js +1 -0
  90. package/dist/cjs/view/modals/navigation-prompt/index.js +3 -2
  91. package/dist/cjs/view/modals/session-expiry/customHooks.js +2 -2
  92. package/dist/cjs/view/modals/session-expiry/index.js +5 -4
  93. package/dist/cjs/view/modals/wait-message/html-wait-message.js +1 -0
  94. package/dist/cjs/view/modals/wait-message/index.js +6 -5
  95. package/dist/cjs/view/modals/wait-message/wait-message-launcher.js +3 -2
  96. package/dist/cjs/view/render-with-delay/index.js +1 -0
  97. package/dist/cjs/view/render-with-host-data/index.js +3 -2
  98. package/dist/cjs/view/session-timeout/index.js +5 -4
  99. package/dist/cjs/view/storybook/decorator.js +3 -2
  100. package/dist/cjs/view/visually-hidden/index.js +1 -0
  101. package/dist/cjs/view/window-size/index.js +2 -1
  102. package/dist/es/analytics/index.js +3 -3
  103. package/dist/es/analytics/page-view-event.js +1 -1
  104. package/dist/es/analytics/user-session-event.js +2 -2
  105. package/dist/es/analytics/user-wait-event.js +1 -1
  106. package/dist/es/api/auth/index.js +1 -1
  107. package/dist/es/api/users/index.js +1 -1
  108. package/dist/es/communication/http-client/index.js +5 -5
  109. package/dist/es/communication/http-client/request-interceptor.js +1 -1
  110. package/dist/es/communication/http-client/retry.js +1 -1
  111. package/dist/es/communication/http-client/tests/index.test-disable.js +3 -3
  112. package/dist/es/data/auth/reducer.js +1 -1
  113. package/dist/es/data/index.js +11 -0
  114. package/dist/es/data/reducers.js +4 -4
  115. package/dist/es/data/store.js +1 -1
  116. package/dist/es/data/wait-message/reducer.js +1 -1
  117. package/dist/es/index.js +83 -73
  118. package/dist/es/micro-frontend.js +10 -0
  119. package/dist/es/route/index.js +2 -1
  120. package/dist/es/route/page-view.js +1 -1
  121. package/dist/es/route/private-route/index.js +8 -7
  122. package/dist/es/sideeffect/auth/index.js +4 -4
  123. package/dist/es/sideeffect/error-toast/index.js +4 -4
  124. package/dist/es/sideeffect/wait-message/index.js +4 -4
  125. package/dist/es/utils/app-config/index.js +4 -4
  126. package/dist/es/utils/app-host-integration/react.js +1 -1
  127. package/dist/es/utils/auth/helper.js +1 -1
  128. package/dist/es/utils/auth/index.js +9 -9
  129. package/dist/es/utils/micro-frontend/console-logger.js +1 -1
  130. package/dist/es/utils/micro-frontend/guest.js +8 -8
  131. package/dist/es/utils/micro-frontend/host.js +14 -14
  132. package/dist/es/utils/micro-frontend/index.js +4 -4
  133. package/dist/es/utils/service-worker.js +2 -2
  134. package/dist/es/utils/session.js +2 -2
  135. package/dist/es/utils/storybook/manager.js +1 -1
  136. package/dist/es/utils/storybook/preview.js +7 -8
  137. package/dist/es/utils/testing/index.js +4 -3
  138. package/dist/es/utils/testing/render-with-redux.js +3 -2
  139. package/dist/es/utils/testing/render-with-router-redux.js +3 -2
  140. package/dist/es/utils/testing/render-with-router.js +1 -0
  141. package/dist/es/utils/testing/render-with-state-addons.js +1 -0
  142. package/dist/es/view/app-root/hosted-app.js +5 -4
  143. package/dist/es/view/app-root/index.js +7 -6
  144. package/dist/es/view/app-root/stand-alone-app.js +8 -7
  145. package/dist/es/view/error-boundary/default-error-template.js +1 -0
  146. package/dist/es/view/error-boundary/index.js +3 -3
  147. package/dist/es/view/error-toast/index.js +4 -8
  148. package/dist/es/view/fetch-host-app-data/index.js +6 -3
  149. package/dist/es/view/fields/check-box/index.js +2 -1
  150. package/dist/es/view/fields/combo-box/index.js +2 -1
  151. package/dist/es/view/fields/date-input/index.js +2 -1
  152. package/dist/es/view/fields/date-picker/index.js +1 -0
  153. package/dist/es/view/fields/form-item-layout/index.js +3 -2
  154. package/dist/es/view/fields/input-mask/index.js +2 -1
  155. package/dist/es/view/fields/large-text-box/index.js +2 -1
  156. package/dist/es/view/fields/radio/index.js +2 -1
  157. package/dist/es/view/fields/radio-group/index.js +2 -1
  158. package/dist/es/view/fields/text-box/index.js +2 -1
  159. package/dist/es/view/fields/watch-value.js +1 -0
  160. package/dist/es/view/form/index.js +1 -0
  161. package/dist/es/view/form/personal-info-section.js +5 -4
  162. package/dist/es/view/form/submit-button/index.js +2 -1
  163. package/dist/es/view/guest-unload-handlers/index.js +1 -1
  164. package/dist/es/view/header/center-region/index.js +1 -0
  165. package/dist/es/view/header/index.js +5 -4
  166. package/dist/es/view/header/logo-region/index.js +1 -0
  167. package/dist/es/view/header/nav-region/index.js +3 -2
  168. package/dist/es/view/header/nav-region/notification/index.js +1 -0
  169. package/dist/es/view/header/nav-region/user/index.js +1 -0
  170. package/dist/es/view/live-message/index.js +2 -1
  171. package/dist/es/view/loadable/index.js +2 -1
  172. package/dist/es/view/login/index.js +4 -3
  173. package/dist/es/view/media-breakpoint/index.js +5 -4
  174. package/dist/es/view/message-to-host-app/index.js +1 -1
  175. package/dist/es/view/micro-app/app-factory/index.js +14 -9
  176. package/dist/es/view/micro-app/index.js +3 -2
  177. package/dist/es/view/micro-app/resources/manifest.js +6 -4
  178. package/dist/es/view/micro-app/resources/script.js +1 -1
  179. package/dist/es/view/micro-app/resources/style.js +1 -1
  180. package/dist/es/view/micro-app/use-app-will-render.js +9 -4
  181. package/dist/es/view/micro-app/utils.js +1 -1
  182. package/dist/es/view/micro-iframe-app/app.js +4 -3
  183. package/dist/es/view/micro-iframe-app/iframe/index.js +2 -1
  184. package/dist/es/view/micro-iframe-app/index.js +3 -2
  185. package/dist/es/view/micro-iframe-app/use-frame-loaded.js +5 -3
  186. package/dist/es/view/modals/error/index.js +1 -0
  187. package/dist/es/view/modals/navigation-prompt/index.js +3 -2
  188. package/dist/es/view/modals/session-expiry/customHooks.js +2 -2
  189. package/dist/es/view/modals/session-expiry/index.js +5 -4
  190. package/dist/es/view/modals/wait-message/html-wait-message.js +1 -0
  191. package/dist/es/view/modals/wait-message/index.js +5 -4
  192. package/dist/es/view/modals/wait-message/wait-message-launcher.js +3 -2
  193. package/dist/es/view/render-with-delay/index.js +1 -0
  194. package/dist/es/view/render-with-host-data/index.js +3 -2
  195. package/dist/es/view/session-timeout/index.js +5 -4
  196. package/dist/es/view/storybook/decorator.js +3 -2
  197. package/dist/es/view/visually-hidden/index.js +1 -0
  198. package/dist/es/view/window-size/index.js +2 -1
  199. package/dist/types/.storybook/main.d.ts +63 -0
  200. package/dist/types/{communication/http-client/tests/index.test-disable.d.ts → .storybook/manager.d.ts} +0 -0
  201. package/dist/types/.storybook/middleware.d.ts +2 -0
  202. package/dist/types/{utils/storybook → .storybook}/preview.d.ts +3 -2
  203. package/dist/types/.storybook/theme.d.ts +4 -0
  204. package/dist/types/{analytics → lib/analytics}/appdynamics.d.ts +0 -0
  205. package/dist/types/{analytics → lib/analytics}/index.d.ts +0 -0
  206. package/dist/types/{analytics → lib/analytics}/page-view-event.d.ts +0 -0
  207. package/dist/types/{analytics → lib/analytics}/user-session-event.d.ts +0 -0
  208. package/dist/types/{analytics → lib/analytics}/user-wait-event.d.ts +0 -0
  209. package/dist/types/{analytics → lib/analytics}/web-analytics.d.ts +0 -0
  210. package/dist/types/{api → lib/api}/auth/index.d.ts +0 -0
  211. package/dist/types/{api → lib/api}/helpers.d.ts +0 -0
  212. package/dist/types/{api → lib/api}/users/index.d.ts +0 -0
  213. package/dist/types/{api → lib/api}/users/index.endpoint.d.ts +0 -0
  214. package/dist/types/{communication → lib/communication}/http-client/index.d.ts +0 -0
  215. package/dist/types/{communication → lib/communication}/http-client/request-interceptor.d.ts +0 -0
  216. package/dist/types/{communication → lib/communication}/http-client/response-interceptor.d.ts +0 -0
  217. package/dist/types/{communication → lib/communication}/http-client/retry-axios.d.ts +0 -0
  218. package/dist/types/{communication → lib/communication}/http-client/retry.d.ts +1 -1
  219. package/dist/types/{communication → lib/communication}/http-client/tests/hello.endpoint.d.ts +0 -0
  220. package/dist/types/{data/tests/store.test.d.ts → lib/communication/http-client/tests/index.test-disable.d.ts} +0 -0
  221. package/dist/types/{communication → lib/communication}/http-client/tests/private.endpoint.d.ts +0 -0
  222. package/dist/types/{data → lib/data}/auth/actions.d.ts +0 -0
  223. package/dist/types/{data → lib/data}/auth/reducer.d.ts +0 -0
  224. package/dist/types/{data → lib/data}/breakpoint/index.d.ts +0 -0
  225. package/dist/types/{data → lib/data}/error/index.d.ts +0 -0
  226. package/dist/types/lib/data/index.d.ts +4 -0
  227. package/dist/types/{data → lib/data}/live-message/index.d.ts +0 -0
  228. package/dist/types/{data → lib/data}/logout/actions.d.ts +0 -0
  229. package/dist/types/{data → lib/data}/navigation-prompt/actions.d.ts +0 -0
  230. package/dist/types/lib/data/react-redux.d.ts +20 -0
  231. package/dist/types/lib/data/reducers.d.ts +16 -0
  232. package/dist/types/{data → lib/data}/saga.d.ts +0 -0
  233. package/dist/types/lib/data/store.d.ts +54 -0
  234. package/dist/types/lib/data/tests/store.test.d.ts +1 -0
  235. package/dist/types/{data → lib/data}/wait-message/actions.d.ts +0 -0
  236. package/dist/types/{data → lib/data}/wait-message/reducer.d.ts +0 -0
  237. package/dist/types/lib/index.d.ts +80 -0
  238. package/dist/types/lib/micro-frontend.d.ts +6 -0
  239. package/dist/types/{route → lib/route}/index.d.ts +0 -0
  240. package/dist/types/{route → lib/route}/page-view.d.ts +0 -0
  241. package/dist/types/{route → lib/route}/private-route/index.d.ts +1 -1
  242. package/dist/types/{sideeffect → lib/sideeffect}/auth/index.d.ts +1 -1
  243. package/dist/types/{sideeffect → lib/sideeffect}/error-toast/index.d.ts +0 -0
  244. package/dist/types/{sideeffect → lib/sideeffect}/wait-message/index.d.ts +0 -0
  245. package/dist/types/{utils → lib/utils}/app-config/config.d.ts +0 -0
  246. package/dist/types/{utils → lib/utils}/app-config/index.d.ts +0 -0
  247. package/dist/types/{utils → lib/utils}/app-host-integration/react.d.ts +1 -1
  248. package/dist/types/{utils → lib/utils}/auth/helper.d.ts +0 -0
  249. package/dist/types/{utils → lib/utils}/auth/index.d.ts +0 -0
  250. package/dist/types/{utils → lib/utils}/await.d.ts +0 -0
  251. package/dist/types/{utils → lib/utils}/constants.d.ts +0 -0
  252. package/dist/types/{utils → lib/utils}/font-size.d.ts +0 -0
  253. package/dist/types/{utils → lib/utils}/guest-with-service.d.ts +0 -0
  254. package/dist/types/{utils → lib/utils}/helpers.d.ts +0 -0
  255. package/dist/types/{utils → lib/utils}/history.d.ts +0 -0
  256. package/dist/types/{utils → lib/utils}/log-records.d.ts +0 -0
  257. package/dist/types/{utils → lib/utils}/micro-frontend/console-logger.d.ts +0 -0
  258. package/dist/types/{utils → lib/utils}/micro-frontend/guest.d.ts +3 -3
  259. package/dist/types/{utils → lib/utils}/micro-frontend/host.d.ts +1 -1
  260. package/dist/types/{utils → lib/utils}/micro-frontend/index.d.ts +2 -2
  261. package/dist/types/{utils → lib/utils}/micro-frontend/types.d.ts +1 -1
  262. package/dist/types/{utils → lib/utils}/redact-pii.d.ts +0 -0
  263. package/dist/types/{utils → lib/utils}/service-worker.d.ts +0 -0
  264. package/dist/types/{utils → lib/utils}/session.d.ts +0 -0
  265. package/dist/types/{utils/storybook/main.d.cts → lib/utils/storybook/cjs/main.d.ts} +15 -1
  266. package/dist/types/{utils/storybook/middleware.d.cts → lib/utils/storybook/cjs/middleware.d.ts} +0 -0
  267. package/dist/types/{utils/storybook/vite.d.cts → lib/utils/storybook/cjs/vite.d.ts} +0 -0
  268. package/dist/types/{utils/storybook/webpack.d.cts → lib/utils/storybook/cjs/webpack.d.ts} +0 -0
  269. package/dist/types/{utils → lib/utils}/storybook/manager.d.ts +0 -0
  270. package/dist/types/lib/utils/storybook/preview.d.ts +30 -0
  271. package/dist/types/{utils → lib/utils}/storybook/theme.d.ts +0 -0
  272. package/dist/types/{utils → lib/utils}/testing/index.d.ts +0 -0
  273. package/dist/types/{utils → lib/utils}/testing/render-with-redux.d.ts +19 -19
  274. package/dist/types/{utils → lib/utils}/testing/render-with-router-redux.d.ts +19 -19
  275. package/dist/types/{utils → lib/utils}/testing/render-with-router.d.ts +0 -0
  276. package/dist/types/{utils → lib/utils}/testing/render-with-state-addons.d.ts +0 -0
  277. package/dist/types/{utils → lib/utils}/types.d.ts +0 -0
  278. package/dist/types/{utils → lib/utils}/url.d.ts +0 -0
  279. package/dist/types/{utils → lib/utils}/web-storage.d.ts +0 -0
  280. package/dist/types/{utils → lib/utils}/window.d.ts +0 -0
  281. package/dist/types/{view → lib/view}/app-root/hosted-app.d.ts +0 -0
  282. package/dist/types/{view → lib/view}/app-root/index.d.ts +1 -1
  283. package/dist/types/{view → lib/view}/app-root/stand-alone-app.d.ts +0 -0
  284. package/dist/types/{view → lib/view}/app-root/style.d.ts +0 -0
  285. package/dist/types/{view → lib/view}/error-boundary/default-error-template.d.ts +0 -0
  286. package/dist/types/{view → lib/view}/error-boundary/index.d.ts +0 -0
  287. package/dist/types/{view → lib/view}/error-toast/index.d.ts +0 -0
  288. package/dist/types/{view → lib/view}/error-toast/index.stories.d.ts +0 -0
  289. package/dist/types/{view → lib/view}/fetch-host-app-data/index.d.ts +0 -0
  290. package/dist/types/{view → lib/view}/fetch-host-app-data/store.d.ts +0 -0
  291. package/dist/types/{view → lib/view}/fields/check-box/index.d.ts +1 -1
  292. package/dist/types/{view → lib/view}/fields/check-box/index.stories.d.ts +1 -1
  293. package/dist/types/{view → lib/view}/fields/check-box/set-value.stories.d.ts +1 -1
  294. package/dist/types/{view → lib/view}/fields/combo-box/index.d.ts +0 -0
  295. package/dist/types/{view → lib/view}/fields/combo-box/index.stories.d.ts +1 -1
  296. package/dist/types/{view → lib/view}/fields/connect-form.d.ts +0 -0
  297. package/dist/types/{view → lib/view}/fields/date-input/index.d.ts +0 -0
  298. package/dist/types/{view → lib/view}/fields/date-input/index.stories.d.ts +1 -1
  299. package/dist/types/{view → lib/view}/fields/date-picker/index.d.ts +0 -0
  300. package/dist/types/{view → lib/view}/fields/date-picker/index.stories.d.ts +1 -1
  301. package/dist/types/{view → lib/view}/fields/form-item-layout/index.d.ts +0 -0
  302. package/dist/types/{view → lib/view}/fields/form-item-layout/index.stories.d.ts +1 -1
  303. package/dist/types/{view → lib/view}/fields/input-mask/index.d.ts +1 -1
  304. package/dist/types/{view → lib/view}/fields/input-mask/index.stories.d.ts +1 -1
  305. package/dist/types/{view → lib/view}/fields/large-text-box/index.d.ts +0 -0
  306. package/dist/types/{view → lib/view}/fields/large-text-box/index.stories.d.ts +1 -1
  307. package/dist/types/{view → lib/view}/fields/radio/index.d.ts +0 -0
  308. package/dist/types/{view → lib/view}/fields/radio/index.stories.d.ts +1 -1
  309. package/dist/types/{view → lib/view}/fields/radio/set-value.stories.d.ts +1 -1
  310. package/dist/types/{view → lib/view}/fields/radio-group/index.d.ts +0 -0
  311. package/dist/types/{view → lib/view}/fields/radio-group/index.stories.d.ts +1 -1
  312. package/dist/types/{view → lib/view}/fields/text-box/index.d.ts +0 -0
  313. package/dist/types/{view → lib/view}/fields/text-box/index.stories.d.ts +1 -1
  314. package/dist/types/{view → lib/view}/fields/watch-value.d.ts +0 -0
  315. package/dist/types/{view → lib/view}/form/index.d.ts +0 -0
  316. package/dist/types/{view → lib/view}/form/index.stories.d.ts +0 -0
  317. package/dist/types/{view → lib/view}/form/personal-info-section.d.ts +0 -0
  318. package/dist/types/{view → lib/view}/form/submit-button/index.d.ts +0 -0
  319. package/dist/types/{view → lib/view}/form/usecases.stories.d.ts +1 -1
  320. package/dist/types/{view → lib/view}/guest-unload-handlers/index.d.ts +0 -0
  321. package/dist/types/{view → lib/view}/header/center-region/index.d.ts +0 -0
  322. package/dist/types/{view → lib/view}/header/index.d.ts +1 -1
  323. package/dist/types/{view → lib/view}/header/index.stories.d.ts +1 -1
  324. package/dist/types/{view → lib/view}/header/logo-region/index.d.ts +0 -0
  325. package/dist/types/{view → lib/view}/header/nav-region/index.d.ts +0 -0
  326. package/dist/types/{view → lib/view}/header/nav-region/notification/index.d.ts +0 -0
  327. package/dist/types/{view → lib/view}/header/nav-region/user/index.d.ts +0 -0
  328. package/dist/types/{view → lib/view}/host-binding-events/index.d.ts +0 -0
  329. package/dist/types/{view → lib/view}/live-message/index.d.ts +0 -0
  330. package/dist/types/{view → lib/view}/live-message/index.stories.d.ts +0 -0
  331. package/dist/types/{view → lib/view}/loadable/index.d.ts +0 -0
  332. package/dist/types/{view → lib/view}/login/index.d.ts +0 -0
  333. package/dist/types/{view → lib/view}/media-breakpoint/index.d.ts +0 -0
  334. package/dist/types/{view → lib/view}/media-breakpoint/index.stories.d.ts +0 -0
  335. package/dist/types/{view → lib/view}/message-to-host-app/index.d.ts +0 -0
  336. package/dist/types/{view → lib/view}/micro-app/app-factory/index.d.ts +3 -3
  337. package/dist/types/{view → lib/view}/micro-app/const.d.ts +0 -0
  338. package/dist/types/{view → lib/view}/micro-app/index.d.ts +1 -1
  339. package/dist/types/{view → lib/view}/micro-app/resources/manifest.d.ts +2 -2
  340. package/dist/types/{view → lib/view}/micro-app/resources/script.d.ts +1 -1
  341. package/dist/types/{view → lib/view}/micro-app/resources/style.d.ts +1 -1
  342. package/dist/types/{view → lib/view}/micro-app/types.d.ts +0 -0
  343. package/dist/types/{view → lib/view}/micro-app/use-app-will-render.d.ts +1 -1
  344. package/dist/types/{view → lib/view}/micro-app/utils.d.ts +0 -0
  345. package/dist/types/{view → lib/view}/micro-iframe-app/app.d.ts +2 -2
  346. package/dist/types/{view → lib/view}/micro-iframe-app/iframe/const.d.ts +0 -0
  347. package/dist/types/{view → lib/view}/micro-iframe-app/iframe/index.d.ts +0 -0
  348. package/dist/types/{view → lib/view}/micro-iframe-app/index.d.ts +1 -1
  349. package/dist/types/{view → lib/view}/micro-iframe-app/types.d.ts +1 -1
  350. package/dist/types/{view → lib/view}/micro-iframe-app/use-frame-loaded.d.ts +1 -1
  351. package/dist/types/{view → lib/view}/modals/error/index.d.ts +0 -0
  352. package/dist/types/{view → lib/view}/modals/error/index.stories.d.ts +1 -1
  353. package/dist/types/{view → lib/view}/modals/navigation-prompt/index.d.ts +0 -0
  354. package/dist/types/{view → lib/view}/modals/navigation-prompt/index.stories.d.ts +1 -1
  355. package/dist/types/{view → lib/view}/modals/session-expiry/customHooks.d.ts +0 -0
  356. package/dist/types/{view → lib/view}/modals/session-expiry/index.d.ts +0 -0
  357. package/dist/types/{view → lib/view}/modals/session-expiry/index.stories.d.ts +1 -1
  358. package/dist/types/{view → lib/view}/modals/wait-message/html-wait-message.d.ts +0 -0
  359. package/dist/types/{view → lib/view}/modals/wait-message/index.d.ts +0 -0
  360. package/dist/types/{view → lib/view}/modals/wait-message/index.stories.d.ts +1 -1
  361. package/dist/types/{view → lib/view}/modals/wait-message/wait-message-launcher.d.ts +0 -0
  362. package/dist/types/{view → lib/view}/render-with-delay/index.d.ts +0 -0
  363. package/dist/types/{view → lib/view}/render-with-host-data/index.d.ts +0 -0
  364. package/dist/types/{view → lib/view}/session-timeout/index.d.ts +0 -0
  365. package/dist/types/{view → lib/view}/session-timeout/index.stories.d.ts +0 -0
  366. package/dist/types/{view → lib/view}/storybook/decorator.d.ts +1 -1
  367. package/dist/types/{view → lib/view}/use-previous.d.ts +0 -0
  368. package/dist/types/{view → lib/view}/useMediaBreakpoints/index.d.ts +0 -0
  369. package/dist/types/{view → lib/view}/visually-hidden/index.d.ts +0 -0
  370. package/dist/types/{view → lib/view}/window-size/index.d.ts +0 -0
  371. package/package.json +28 -11
  372. package/dist/types/data/react-redux.d.ts +0 -20
  373. package/dist/types/data/reducers.d.ts +0 -16
  374. package/dist/types/data/store.d.ts +0 -54
  375. package/dist/types/index.d.ts +0 -80
@@ -1,7 +1,7 @@
1
1
  import { configureStore } from "@reduxjs/toolkit";
2
2
  import { createInjectorsEnhancer, forceReducerReload } from "redux-injectors";
3
3
  import createSagaMiddleware from "redux-saga";
4
- import { createReducer } from "./reducers";
4
+ import { createReducer } from "./reducers.js";
5
5
  const rootReducer = createReducer();
6
6
  let appStore = null;
7
7
  const setStore = (store) => {
@@ -1,5 +1,5 @@
1
1
  import produce from "immer";
2
- import { ACTIONS } from "./actions";
2
+ import { ACTIONS } from "./actions.js";
3
3
  const initialState = {
4
4
  isOpen: null,
5
5
  message: "loading..."
package/dist/es/index.js CHANGED
@@ -1,92 +1,102 @@
1
- import { isUserAuthorized, login, authorize } from "./utils/auth";
2
- import { PrivateRoute } from "./route/private-route";
3
- import { AppRoute } from "./route";
4
- import { getHTTPClient, getAuthHTTPClient } from "./communication/http-client";
5
- import { onAuthorizationFailure } from "./communication/http-client/response-interceptor";
6
- import { auth } from "./data/auth/actions";
7
- import { default as default2 } from "./utils/constants";
8
- import { useAppDispatch, useAppSelector } from "./data/react-redux";
1
+ import { isUserAuthorized, login, authorize } from "./utils/auth/index.js";
2
+ import { PrivateRoute } from "./route/private-route/index.js";
3
+ import { AppRoute } from "./route/index.js";
4
+ import {
5
+ getHTTPClient,
6
+ getAuthHTTPClient
7
+ } from "./communication/http-client/index.js";
8
+ import { onAuthorizationFailure } from "./communication/http-client/response-interceptor.js";
9
+ import { auth } from "./data/auth/actions.js";
10
+ import { default as default2 } from "./utils/constants.js";
11
+ import { useAppDispatch, useAppSelector } from "./data/react-redux.js";
9
12
  import { useInjectReducer, useInjectSaga } from "redux-injectors";
10
- import { getAuthorizationHeader } from "./utils/auth/helper";
11
- import { getRedirectUrl, removeDoubleSlash } from "./utils/url";
12
- import { createAppStore } from "./data/store";
13
- import { browserHistory, memoryHistory } from "./utils/history";
14
- import { Themes } from "./utils/constants";
15
- import { ACTIONS } from "./data/navigation-prompt/actions";
16
- import { loadable } from "./view/loadable";
17
- import { WaitMessage } from "./view/modals/wait-message";
18
- import { SessionTimeout } from "./view/session-timeout";
13
+ import { getAuthorizationHeader } from "./utils/auth/helper.js";
14
+ import { getRedirectUrl, removeDoubleSlash } from "./utils/url.js";
15
+ import { createAppStore } from "./data/store.js";
16
+ import { browserHistory, memoryHistory } from "./utils/history.js";
17
+ import { Themes } from "./utils/constants.js";
18
+ import { ACTIONS } from "./data/navigation-prompt/actions.js";
19
+ import { loadable } from "./view/loadable/index.js";
20
+ import { WaitMessage } from "./view/modals/wait-message/index.js";
21
+ import { SessionTimeout } from "./view/session-timeout/index.js";
19
22
  import {
20
23
  subscribeToSessionExpiryWarning,
21
24
  subscribeToSessionExpiry,
22
25
  resetUserIdleTime,
23
26
  trackActivity
24
- } from "./utils/session";
25
- import { waitMessage } from "./data/wait-message/actions";
26
- import { initServiceWorker } from "./utils/service-worker";
27
- import { CMicroAppGuest } from "./utils/micro-frontend/guest";
28
- import { CMicroAppHost } from "./utils/micro-frontend/host";
29
- import { enableReactAppForHostIntegration } from "./utils/app-host-integration/react";
27
+ } from "./utils/session.js";
28
+ import { waitMessage } from "./data/wait-message/actions.js";
29
+ import { initServiceWorker } from "./utils/service-worker.js";
30
+ import { CMicroAppGuest } from "./utils/micro-frontend/guest.js";
31
+ import { CMicroAppHost } from "./utils/micro-frontend/host.js";
32
+ import { enableReactAppForHostIntegration } from "./utils/app-host-integration/react.js";
30
33
  import {
31
34
  getAppConfigValue,
32
35
  setAppConfigValue,
33
36
  setAppConfig
34
- } from "./utils/app-config/config";
35
- import { getMicroFrontEndAppConfig } from "./utils/micro-frontend";
36
- import { loadAppConfig } from "./utils/app-config";
37
- import { AppRoot } from "./view/app-root";
38
- import { ErrorBoundary } from "./view/error-boundary";
39
- import { isProd, isCIBuild } from "./utils/helpers";
40
- import { listenStorageEvents, removeStorageEvents } from "./utils/web-storage";
37
+ } from "./utils/app-config/config.js";
38
+ import { getMicroFrontEndAppConfig } from "./utils/micro-frontend/index.js";
39
+ import { loadAppConfig } from "./utils/app-config/index.js";
40
+ import { AppRoot } from "./view/app-root/index.js";
41
+ import { ErrorBoundary } from "./view/error-boundary/index.js";
42
+ import { isProd, isCIBuild } from "./utils/helpers.js";
43
+ import {
44
+ listenStorageEvents,
45
+ removeStorageEvents
46
+ } from "./utils/web-storage.js";
41
47
  import {
42
48
  getHostAppDataByKey,
43
49
  setHostAppData
44
- } from "./view/fetch-host-app-data/store";
45
- import { sendMessageToHost } from "./view/message-to-host-app";
50
+ } from "./view/fetch-host-app-data/store.js";
51
+ import { sendMessageToHost } from "./view/message-to-host-app/index.js";
46
52
  import {
47
53
  onGuestUnloadStart,
48
54
  notifyGuestUnloadComplete
49
- } from "./view/guest-unload-handlers";
50
- import { renderWithHostData } from "./view/render-with-host-data";
51
- import { fetchHostAppData } from "./view/fetch-host-app-data";
52
- export * from "./utils/testing";
53
- import { renderWithRouterRedux } from "./utils/testing/render-with-router-redux";
54
- import { renderWithRedux } from "./utils/testing/render-with-redux";
55
- import { renderWithRouter } from "./utils/testing/render-with-router";
56
- import { RenderWithStateAddOns } from "./utils/testing/render-with-state-addons";
57
- import { getApiActionCreator, getSelectField } from "./api/helpers";
58
- import { getUser } from "./api/users";
59
- import { useMediaBreakpoints } from "./view/useMediaBreakpoints";
60
- import { withAppDecorator } from "./view/storybook/decorator";
61
- import { Header } from "./view/header";
62
- import { ErrorToast } from "./view/error-toast";
63
- import { Form } from "./view/form";
64
- import { ConnectForm } from "./view/fields/connect-form";
65
- import { FormItemLayout } from "./view/fields/form-item-layout";
66
- import { TextBox } from "./view/fields/text-box";
67
- import { LargeTextBox } from "./view/fields/large-text-box";
68
- import { InputMask, MASK_TYPES, MASK_PIPES } from "./view/fields/input-mask";
69
- import { ComboBox } from "./view/fields/combo-box";
70
- import { CheckBox } from "./view/fields/check-box";
71
- import { Radio } from "./view/fields/radio";
72
- import { RadioGroup } from "./view/fields/radio-group";
73
- import { DateInput } from "./view/fields/date-input";
74
- import { DatePicker } from "./view/fields/date-picker";
75
- import { FormSubmitButton } from "./view/form/submit-button";
76
- import { MediaBreakpoint } from "./view/media-breakpoint";
77
- import { VisuallyHidden } from "./view/visually-hidden";
78
- import { actions } from "./data/live-message";
79
- import { actions as actions2 } from "./data/error";
80
- import { actions as actions3 } from "./data/logout/actions";
81
- import { MicroApp } from "./view/micro-app";
82
- import { MicroIFrameApp } from "./view/micro-iframe-app";
83
- import { getNavigationLinks } from "./view/micro-app/utils";
84
- import { getStore } from "./data/store";
85
- import { RegisterService } from "./utils/guest-with-service";
86
- import { setAppDynamicsUserData } from "./analytics/appdynamics";
87
- import { sendBAEvent } from "./analytics";
88
- import { updateBAEventParameters } from "./analytics/web-analytics";
89
- import { redactPii } from "./utils/redact-pii";
55
+ } from "./view/guest-unload-handlers/index.js";
56
+ import { renderWithHostData } from "./view/render-with-host-data/index.js";
57
+ import { fetchHostAppData } from "./view/fetch-host-app-data/index.js";
58
+ export * from "./utils/testing/index.js";
59
+ import { renderWithRouterRedux } from "./utils/testing/render-with-router-redux.js";
60
+ import { renderWithRedux } from "./utils/testing/render-with-redux.js";
61
+ import { renderWithRouter } from "./utils/testing/render-with-router.js";
62
+ import { RenderWithStateAddOns } from "./utils/testing/render-with-state-addons.js";
63
+ import { getApiActionCreator, getSelectField } from "./api/helpers.js";
64
+ import { getUser } from "./api/users/index.js";
65
+ import { useMediaBreakpoints } from "./view/useMediaBreakpoints/index.js";
66
+ import { withAppDecorator } from "./view/storybook/decorator.js";
67
+ import { Header } from "./view/header/index.js";
68
+ import { ErrorToast } from "./view/error-toast/index.js";
69
+ import { Form } from "./view/form/index.js";
70
+ import { ConnectForm } from "./view/fields/connect-form.js";
71
+ import { FormItemLayout } from "./view/fields/form-item-layout/index.js";
72
+ import { TextBox } from "./view/fields/text-box/index.js";
73
+ import { LargeTextBox } from "./view/fields/large-text-box/index.js";
74
+ import {
75
+ InputMask,
76
+ MASK_TYPES,
77
+ MASK_PIPES
78
+ } from "./view/fields/input-mask/index.js";
79
+ import { ComboBox } from "./view/fields/combo-box/index.js";
80
+ import { CheckBox } from "./view/fields/check-box/index.js";
81
+ import { Radio } from "./view/fields/radio/index.js";
82
+ import { RadioGroup } from "./view/fields/radio-group/index.js";
83
+ import { DateInput } from "./view/fields/date-input/index.js";
84
+ import { DatePicker } from "./view/fields/date-picker/index.js";
85
+ import { FormSubmitButton } from "./view/form/submit-button/index.js";
86
+ import { MediaBreakpoint } from "./view/media-breakpoint/index.js";
87
+ import { VisuallyHidden } from "./view/visually-hidden/index.js";
88
+ import { actions } from "./data/live-message/index.js";
89
+ import { actions as actions2 } from "./data/error/index.js";
90
+ import { actions as actions3 } from "./data/logout/actions.js";
91
+ import { MicroApp } from "./view/micro-app/index.js";
92
+ import { MicroIFrameApp } from "./view/micro-iframe-app/index.js";
93
+ import { getNavigationLinks } from "./view/micro-app/utils.js";
94
+ import { getStore } from "./data/store.js";
95
+ import { RegisterService } from "./utils/guest-with-service.js";
96
+ import { setAppDynamicsUserData } from "./analytics/appdynamics.js";
97
+ import { sendBAEvent } from "./analytics/index.js";
98
+ import { updateBAEventParameters } from "./analytics/web-analytics.js";
99
+ import { redactPii } from "./utils/redact-pii.js";
90
100
  export {
91
101
  AppRoot,
92
102
  CMicroAppGuest,
@@ -0,0 +1,10 @@
1
+ import { CMicroAppGuest } from "./utils/micro-frontend/guest.js";
2
+ import { CMicroAppHost } from "./utils/micro-frontend/host.js";
3
+ import { getMicroFrontEndAppConfig } from "./utils/micro-frontend/index.js";
4
+ import { enableReactAppForHostIntegration } from "./utils/app-host-integration/react.js";
5
+ export {
6
+ CMicroAppGuest,
7
+ CMicroAppHost,
8
+ enableReactAppForHostIntegration,
9
+ getMicroFrontEndAppConfig
10
+ };
@@ -1,7 +1,8 @@
1
+ import * as React from "react";
1
2
  import { Helmet } from "react-helmet";
2
3
  import { useCallback } from "react";
3
4
  import { Route } from "react-router-dom";
4
- import { onPageView } from "./page-view";
5
+ import { onPageView } from "./page-view.js";
5
6
  const AppRoute = ({
6
7
  component: Component,
7
8
  render,
@@ -1,5 +1,5 @@
1
1
  import * as brum from "@elliemae/pui-user-monitoring";
2
- import { pageViewEvent } from "../analytics/page-view-event";
2
+ import { pageViewEvent } from "../analytics/page-view-event.js";
3
3
  const onPageView = (pageTitle) => {
4
4
  try {
5
5
  if (brum && pageTitle) {
@@ -1,12 +1,13 @@
1
+ import * as React from "react";
1
2
  import { useCallback } from "react";
2
3
  import { useInjectReducer, useInjectSaga } from "redux-injectors";
3
- import enums from "../../utils/constants";
4
- import { RenderWithDelay } from "../../view/render-with-delay";
5
- import { authReducer } from "../../data/auth/reducer";
6
- import { authentication } from "../../sideeffect/auth";
7
- import { Login } from "../../view/login";
8
- import { isUserAuthorized } from "../../utils/auth";
9
- import { AppRoute } from "../index";
4
+ import enums from "../../utils/constants.js";
5
+ import { RenderWithDelay } from "../../view/render-with-delay/index.js";
6
+ import { authReducer } from "../../data/auth/reducer.js";
7
+ import { authentication } from "../../sideeffect/auth/index.js";
8
+ import { Login } from "../../view/login/index.js";
9
+ import { isUserAuthorized } from "../../utils/auth/index.js";
10
+ import { AppRoute } from "../index.js";
10
11
  const key = "auth";
11
12
  const PrivateRoute = ({
12
13
  component: Component,
@@ -7,10 +7,10 @@ import {
7
7
  LOGIN,
8
8
  LOGOUT,
9
9
  LOGIN_SUCCESS
10
- } from "../../data/auth/actions";
11
- import { authorize, endSession } from "../../utils/auth";
12
- import { getLogger } from "../../utils/micro-frontend";
13
- import { logRecords } from "../../utils/log-records";
10
+ } from "../../data/auth/actions.js";
11
+ import { authorize, endSession } from "../../utils/auth/index.js";
12
+ import { getLogger } from "../../utils/micro-frontend/index.js";
13
+ import { logRecords } from "../../utils/log-records.js";
14
14
  function* login({
15
15
  payload
16
16
  }) {
@@ -1,8 +1,8 @@
1
1
  import { call, takeLatest } from "redux-saga/effects";
2
- import { actions } from "../../data/error";
3
- import { CMicroAppGuest } from "../../utils/micro-frontend/guest";
4
- import { getLogger } from "../../utils/micro-frontend";
5
- import { logRecords } from "../../utils/log-records";
2
+ import { actions } from "../../data/error/index.js";
3
+ import { CMicroAppGuest } from "../../utils/micro-frontend/guest.js";
4
+ import { getLogger } from "../../utils/micro-frontend/index.js";
5
+ import { logRecords } from "../../utils/log-records.js";
6
6
  function* openErrorToast(action) {
7
7
  try {
8
8
  const microApp = yield call(CMicroAppGuest.getInstance.bind(CMicroAppGuest));
@@ -1,8 +1,8 @@
1
1
  import { call, takeLatest } from "redux-saga/effects";
2
- import { ACTIONS } from "../../data/wait-message/actions";
3
- import { CMicroAppGuest } from "../../utils/micro-frontend/guest";
4
- import { getLogger } from "../../utils/micro-frontend";
5
- import { logRecords } from "../../utils/log-records";
2
+ import { ACTIONS } from "../../data/wait-message/actions.js";
3
+ import { CMicroAppGuest } from "../../utils/micro-frontend/guest.js";
4
+ import { getLogger } from "../../utils/micro-frontend/index.js";
5
+ import { logRecords } from "../../utils/log-records.js";
6
6
  function* openWaitMessage() {
7
7
  try {
8
8
  const microApp = yield call(CMicroAppGuest.getInstance.bind(CMicroAppGuest));
@@ -1,8 +1,8 @@
1
1
  import _ from "lodash";
2
- import { getHTTPClient } from "../../communication/http-client";
3
- import { setAppConfig } from "./config";
4
- import { setAppDynamicsUserData } from "../../analytics/appdynamics";
5
- import { updateBAEventParameters } from "../../analytics/web-analytics";
2
+ import { getHTTPClient } from "../../communication/http-client/index.js";
3
+ import { setAppConfig } from "./config.js";
4
+ import { setAppDynamicsUserData } from "../../analytics/appdynamics.js";
5
+ import { updateBAEventParameters } from "../../analytics/web-analytics.js";
6
6
  const parseAppConfig = (data) => {
7
7
  const { activeEnv } = data;
8
8
  const activeEnvConfig = data.env[activeEnv] || {};
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  CMicroAppGuest
3
- } from "../micro-frontend/guest";
3
+ } from "../micro-frontend/guest.js";
4
4
  const enableReactAppForHostIntegration = ({
5
5
  onInit,
6
6
  onMount
@@ -1,4 +1,4 @@
1
- import enums from "../constants";
1
+ import enums from "../constants.js";
2
2
  const getAuthorizationHeader = () => sessionStorage.getItem(enums.AUTHORIZATION) || "";
3
3
  const setAuthorizationHeader = (token) => {
4
4
  sessionStorage.setItem(enums.AUTHORIZATION, token);
@@ -1,16 +1,16 @@
1
- import { browserHistory as history } from "../history";
1
+ import { browserHistory as history } from "../history.js";
2
2
  import {
3
3
  getToken,
4
4
  revokeToken,
5
5
  introspectToken
6
- } from "../../api/auth";
7
- import { getUser } from "../../api/users";
8
- import { loginEvent, logoutEvent } from "../../analytics/user-session-event";
9
- import { setAppDynamicsUserData } from "../../analytics/appdynamics";
10
- import { getAuthorizationHeader, setAuthorizationHeader } from "./helper";
11
- import { getAppConfigValue } from "../app-config/config";
12
- import { getLogger } from "../micro-frontend";
13
- import { logRecords } from "../log-records";
6
+ } from "../../api/auth/index.js";
7
+ import { getUser } from "../../api/users/index.js";
8
+ import { loginEvent, logoutEvent } from "../../analytics/user-session-event.js";
9
+ import { setAppDynamicsUserData } from "../../analytics/appdynamics.js";
10
+ import { getAuthorizationHeader, setAuthorizationHeader } from "./helper.js";
11
+ import { getAppConfigValue } from "../app-config/config.js";
12
+ import { getLogger } from "../micro-frontend/index.js";
13
+ import { logRecords } from "../log-records.js";
14
14
  const IDP_ENDPOINT_CONFIG_KEY = "serviceEndpoints.idp";
15
15
  const isUserAuthorized = () => !!getAuthorizationHeader();
16
16
  const getIDPInfoFromUrl = () => {
@@ -1,5 +1,5 @@
1
1
  import { logger as uiLogger, Console } from "@elliemae/pui-diagnostics";
2
- import { getAppConfigValue } from "../app-config/config";
2
+ import { getAppConfigValue } from "../app-config/config.js";
3
3
  const logger = (() => {
4
4
  if (!uiLogger)
5
5
  return console;
@@ -2,14 +2,14 @@ import ReactDOM from "react-dom";
2
2
  import _ from "lodash";
3
3
  import ssfGuest from "@elliemae/em-ssf-guest";
4
4
  import { getDefaultTheme } from "@elliemae/pui-theme";
5
- import { getWindow } from "../window";
6
- import { loadAppConfig } from "../app-config";
7
- import { getAppConfigValue } from "../app-config/config";
8
- import { browserHistory } from "../history";
9
- import { logger } from "./console-logger";
10
- import { removeStorageEvents } from "../web-storage";
11
- import { updateBAEventParameters } from "../../analytics/web-analytics";
12
- import { setAppDynamicsUserData } from "../../analytics/appdynamics";
5
+ import { getWindow } from "../window.js";
6
+ import { loadAppConfig } from "../app-config/index.js";
7
+ import { getAppConfigValue } from "../app-config/config.js";
8
+ import { browserHistory } from "../history.js";
9
+ import { logger } from "./console-logger.js";
10
+ import { removeStorageEvents } from "../web-storage.js";
11
+ import { updateBAEventParameters } from "../../analytics/web-analytics.js";
12
+ import { setAppDynamicsUserData } from "../../analytics/appdynamics.js";
13
13
  const isCrossDomain = () => {
14
14
  try {
15
15
  window.parent.document;
@@ -1,25 +1,25 @@
1
1
  import { publish, subscribe, unsubscribe } from "pubsub-js";
2
2
  import { getDefaultTheme } from "@elliemae/pui-theme";
3
- import { getStore } from "../../data/store";
4
- import { waitMessage } from "../../data/wait-message/actions";
5
- import { actions as error } from "../../data/error";
6
- import { logout } from "../../data/logout/actions";
7
- import { getAppConfigValue } from "../app-config/config";
8
- import { resetUserIdleTime } from "../session";
9
- import { loadAppConfig } from "../app-config";
10
- import { browserHistory } from "../history";
11
- import { logger } from "./console-logger";
3
+ import { getStore } from "../../data/store.js";
4
+ import { waitMessage } from "../../data/wait-message/actions.js";
5
+ import { actions as error } from "../../data/error/index.js";
6
+ import { logout } from "../../data/logout/actions.js";
7
+ import { getAppConfigValue } from "../app-config/config.js";
8
+ import { resetUserIdleTime } from "../session.js";
9
+ import { loadAppConfig } from "../app-config/index.js";
10
+ import { browserHistory } from "../history.js";
11
+ import { logger } from "./console-logger.js";
12
12
  import {
13
13
  HOST_WINDOW_RESIZED,
14
14
  HOST_WINDOW_BREAKPOINT_CHANGED
15
- } from "../constants";
15
+ } from "../constants.js";
16
16
  import {
17
17
  getCurrentBreakpoint,
18
18
  getViewportSize as getWindowViewportSize
19
- } from "../window";
20
- import { sendBAEvent } from "../../analytics";
21
- import { setAppDynamicsUserData } from "../../analytics/appdynamics";
22
- import { updateBAEventParameters } from "../../analytics/web-analytics";
19
+ } from "../window.js";
20
+ import { sendBAEvent } from "../../analytics/index.js";
21
+ import { setAppDynamicsUserData } from "../../analytics/appdynamics.js";
22
+ import { updateBAEventParameters } from "../../analytics/web-analytics.js";
23
23
  class CMicroAppHost {
24
24
  constructor(params) {
25
25
  this.appId = getAppConfigValue("appId");
@@ -1,8 +1,8 @@
1
1
  import _ from "lodash";
2
- import { CMicroAppGuest } from "./guest";
3
- import { CMicroAppHost } from "./host";
4
- import { getAppConfigValue } from "../app-config/config";
5
- import { convertRelativeToAbsoluteUrl, isCIBuild } from "../helpers";
2
+ import { CMicroAppGuest } from "./guest.js";
3
+ import { CMicroAppHost } from "./host.js";
4
+ import { getAppConfigValue } from "../app-config/config.js";
5
+ import { convertRelativeToAbsoluteUrl, isCIBuild } from "../helpers.js";
6
6
  const isHost = () => CMicroAppHost.isInitialized();
7
7
  const isGuest = () => CMicroAppGuest.isInitialized();
8
8
  const isStandAloneGuest = () => isGuest() && window.top === window.self;
@@ -1,5 +1,5 @@
1
- import "./log-records";
2
- import { getLogger } from "./micro-frontend";
1
+ import "./log-records.js";
2
+ import { getLogger } from "./micro-frontend/index.js";
3
3
  const initServiceWorker = (swDest = "") => {
4
4
  const logger = getLogger() || console;
5
5
  if (false) {
@@ -1,6 +1,6 @@
1
1
  import { throttle } from "lodash";
2
- import { getAppConfigValue } from "./app-config/config";
3
- import { SESSION_TIMEOUT_INTERVAL } from "./constants";
2
+ import { getAppConfigValue } from "./app-config/config.js";
3
+ import { SESSION_TIMEOUT_INTERVAL } from "./constants.js";
4
4
  const THROTTLING_TIME = 6e3;
5
5
  let lastUserActivityTimeStamp = Date.now();
6
6
  const warnListeners = [];
@@ -1,5 +1,5 @@
1
1
  import { addons } from "@storybook/addons";
2
- import { createTheme } from "./theme";
2
+ import { createTheme } from "./theme.js";
3
3
  const init = (theme) => {
4
4
  addons.setConfig({
5
5
  panelPosition: "bottom",
@@ -1,13 +1,12 @@
1
1
  import { getDefaultTheme } from "@elliemae/pui-theme";
2
- import { createAppStore } from "../../data/store";
3
- import { withAppDecorator } from "../../view/storybook/decorator";
4
- import { loadAppConfig } from "../app-config";
5
- import { createTheme } from "./theme";
6
- import { browserHistory } from "../history";
2
+ import { createAppStore } from "../../data/store.js";
3
+ import { withAppDecorator } from "../../view/storybook/decorator.js";
4
+ import { loadAppConfig } from "../app-config/index.js";
5
+ import { createTheme } from "./theme.js";
6
+ import { browserHistory } from "../history.js";
7
7
  import "@elliemae/ds-basic/css/dimsum.css";
8
- (async () => {
9
- await loadAppConfig(__webpack_public_path__);
10
- })();
8
+ loadAppConfig(__webpack_public_path__).catch(() => {
9
+ });
11
10
  const theme = getDefaultTheme();
12
11
  const store = createAppStore({}, browserHistory);
13
12
  const appDecorator = withAppDecorator.bind(null, theme, store);
@@ -1,8 +1,9 @@
1
+ import * as React from "react";
1
2
  import { render } from "@testing-library/react";
2
3
  import { getDefaultTheme } from "@elliemae/pui-theme";
3
- import { createAppStore } from "../../data/store";
4
- import { AppRoot } from "../../view/app-root";
5
- import { browserHistory } from "../history";
4
+ import { createAppStore } from "../../data/store.js";
5
+ import { AppRoot } from "../../view/app-root/index.js";
6
+ import { browserHistory } from "../history.js";
6
7
  const defaultStore = createAppStore({}, browserHistory);
7
8
  const defaultTheme = getDefaultTheme();
8
9
  const AllTheProviders = ({
@@ -1,7 +1,8 @@
1
+ import * as React from "react";
1
2
  import { render } from "@testing-library/react";
2
3
  import { Provider } from "react-redux";
3
- import { createAppStore } from "../../data/store";
4
- import { browserHistory } from "../history";
4
+ import { createAppStore } from "../../data/store.js";
5
+ import { browserHistory } from "../history.js";
5
6
  const renderWithRedux = (ui, {
6
7
  initialState,
7
8
  store = createAppStore(initialState, browserHistory)
@@ -1,9 +1,10 @@
1
+ import * as React from "react";
1
2
  import { render } from "@testing-library/react";
2
3
  import { Provider } from "react-redux";
3
4
  import { Router } from "react-router-dom";
4
5
  import { createMemoryHistory } from "history";
5
- import { createAppStore } from "../../data/store";
6
- import { browserHistory } from "../history";
6
+ import { createAppStore } from "../../data/store.js";
7
+ import { browserHistory } from "../history.js";
7
8
  const renderWithRouterRedux = (ui, {
8
9
  route = "/",
9
10
  history = createMemoryHistory({ initialEntries: [route] }),
@@ -1,3 +1,4 @@
1
+ import * as React from "react";
1
2
  import { render } from "@testing-library/react";
2
3
  import { Router } from "react-router-dom";
3
4
  import { createMemoryHistory } from "history";
@@ -1,3 +1,4 @@
1
+ import * as React from "react";
1
2
  import { useEffect, useState } from "react";
2
3
  import { ThemeProvider } from "styled-components";
3
4
  import { getDefaultTheme } from "@elliemae/pui-theme";
@@ -1,8 +1,9 @@
1
+ import * as React from "react";
1
2
  import styled from "styled-components";
2
- import { MediaBreakpoint } from "../media-breakpoint";
3
- import { WindowSize } from "../window-size";
4
- import { HTMLWaitMessage } from "../modals/wait-message/html-wait-message";
5
- import GlobalStyle from "./style";
3
+ import { MediaBreakpoint } from "../media-breakpoint/index.js";
4
+ import { WindowSize } from "../window-size/index.js";
5
+ import { HTMLWaitMessage } from "../modals/wait-message/html-wait-message.js";
6
+ import GlobalStyle from "./style.js";
6
7
  const Div = styled.div`
7
8
  height: 100%;
8
9
  `;
@@ -1,14 +1,15 @@
1
+ import * as React from "react";
1
2
  import { Provider } from "react-redux";
2
3
  import { ThemeProvider } from "styled-components";
3
4
  import { Router } from "react-router-dom";
4
5
  import { getDefaultTheme } from "@elliemae/pui-theme";
5
6
  import { useInjectSaga } from "redux-injectors";
6
- import { isStandAloneGuest, isHost } from "../../utils/micro-frontend";
7
- import { waitMessage } from "../../sideeffect/wait-message";
8
- import { errorToast } from "../../sideeffect/error-toast";
9
- import { ErrorBoundary } from "../error-boundary";
10
- import { StandAloneApp } from "./stand-alone-app";
11
- import { HostedApp } from "./hosted-app";
7
+ import { isStandAloneGuest, isHost } from "../../utils/micro-frontend/index.js";
8
+ import { waitMessage } from "../../sideeffect/wait-message/index.js";
9
+ import { errorToast } from "../../sideeffect/error-toast/index.js";
10
+ import { ErrorBoundary } from "../error-boundary/index.js";
11
+ import { StandAloneApp } from "./stand-alone-app.js";
12
+ import { HostedApp } from "./hosted-app.js";
12
13
  const AppToRender = (props) => {
13
14
  useInjectSaga({ key: "waitMessage", saga: waitMessage });
14
15
  useInjectSaga({ key: "errorToast", saga: errorToast });
@@ -1,12 +1,13 @@
1
+ import * as React from "react";
1
2
  import styled from "styled-components";
2
3
  import { LiveAnnouncer } from "react-aria-live";
3
- import { MediaBreakpoint } from "../media-breakpoint";
4
- import { WindowSize } from "../window-size";
5
- import { SessionTimeout } from "../session-timeout";
6
- import { LiveMessage } from "../live-message";
7
- import { ErrorToast } from "../error-toast";
8
- import { WaitMessage as DefaultWaitMessage } from "../modals/wait-message";
9
- import GlobalStyle from "./style";
4
+ import { MediaBreakpoint } from "../media-breakpoint/index.js";
5
+ import { WindowSize } from "../window-size/index.js";
6
+ import { SessionTimeout } from "../session-timeout/index.js";
7
+ import { LiveMessage } from "../live-message/index.js";
8
+ import { ErrorToast } from "../error-toast/index.js";
9
+ import { WaitMessage as DefaultWaitMessage } from "../modals/wait-message/index.js";
10
+ import GlobalStyle from "./style.js";
10
11
  const Div = styled.div`
11
12
  height: 100%;
12
13
  `;
@@ -1,3 +1,4 @@
1
+ import * as React from "react";
1
2
  const DefaultErrorTemplate = () => /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement("h2", null, "We are unable to process your request"), /* @__PURE__ */ React.createElement("section", null, "Please close your browser and login again"));
2
3
  export {
3
4
  DefaultErrorTemplate