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

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 (536) hide show
  1. package/README.md +4 -0
  2. package/dist/cjs/analytics/appdynamics.js +29 -9
  3. package/dist/cjs/analytics/index.js +28 -13
  4. package/dist/cjs/analytics/page-view-event.js +11 -10
  5. package/dist/cjs/analytics/user-session-event.js +12 -11
  6. package/dist/cjs/analytics/user-wait-event.js +11 -10
  7. package/dist/cjs/analytics/web-analytics.js +34 -3
  8. package/dist/cjs/api/auth/index.js +11 -10
  9. package/dist/cjs/api/helpers.js +12 -11
  10. package/dist/cjs/api/users/index.js +11 -10
  11. package/dist/cjs/communication/http-client/index.js +60 -21
  12. package/dist/cjs/communication/http-client/request-interceptor.js +11 -10
  13. package/dist/cjs/communication/http-client/response-interceptor.js +13 -7
  14. package/dist/cjs/communication/http-client/retry-axios.js +14 -8
  15. package/dist/cjs/communication/http-client/retry.js +11 -10
  16. package/dist/cjs/data/auth/actions.js +19 -2
  17. package/dist/cjs/data/auth/reducer.js +14 -8
  18. package/dist/cjs/data/breakpoint/index.js +13 -7
  19. package/dist/cjs/data/error/index.js +11 -10
  20. package/dist/cjs/data/index.js +13 -12
  21. package/dist/cjs/data/live-message/index.js +11 -10
  22. package/dist/cjs/data/logout/actions.js +19 -2
  23. package/dist/cjs/data/navigation-prompt/actions.js +19 -2
  24. package/dist/cjs/data/react-redux.js +11 -10
  25. package/dist/cjs/data/reducers.js +32 -18
  26. package/dist/cjs/data/saga.js +19 -2
  27. package/dist/cjs/data/store.js +18 -22
  28. package/dist/cjs/data/wait-message/actions.js +19 -2
  29. package/dist/cjs/data/wait-message/reducer.js +14 -8
  30. package/dist/cjs/data/webpack-hmr.js +42 -0
  31. package/dist/cjs/index.js +90 -85
  32. package/dist/cjs/micro-frontend.js +14 -13
  33. package/dist/cjs/package.json +7 -1
  34. package/dist/cjs/sideeffect/auth/index.js +36 -20
  35. package/dist/cjs/sideeffect/error-toast/index.js +34 -17
  36. package/dist/cjs/sideeffect/wait-message/index.js +36 -20
  37. package/dist/cjs/typings/styled.d.js +1 -19
  38. package/dist/cjs/utils/app-config/config.js +14 -8
  39. package/dist/cjs/utils/app-config/index.js +17 -11
  40. package/dist/cjs/utils/app-host-integration/react.js +11 -10
  41. package/dist/cjs/utils/auth/helper.js +13 -7
  42. package/dist/cjs/utils/auth/index.js +42 -25
  43. package/dist/cjs/utils/await.js +18 -1
  44. package/dist/cjs/utils/constants.js +19 -2
  45. package/dist/cjs/utils/font-size.js +19 -2
  46. package/dist/cjs/utils/guest-with-service.js +19 -2
  47. package/dist/cjs/utils/helpers.js +20 -3
  48. package/dist/cjs/utils/history.js +11 -10
  49. package/dist/cjs/utils/log-records.js +19 -2
  50. package/dist/cjs/utils/micro-frontend/console-logger.js +12 -11
  51. package/dist/cjs/utils/micro-frontend/guest.js +25 -19
  52. package/dist/cjs/utils/micro-frontend/host.js +30 -29
  53. package/dist/cjs/utils/micro-frontend/index.js +17 -11
  54. package/dist/cjs/utils/micro-frontend/types.js +18 -1
  55. package/dist/cjs/utils/redact-pii.js +19 -2
  56. package/dist/cjs/utils/service-worker.js +14 -14
  57. package/dist/cjs/utils/session.js +15 -14
  58. package/dist/cjs/utils/storybook/manager.js +12 -11
  59. package/dist/cjs/utils/storybook/preview.js +24 -19
  60. package/dist/cjs/utils/storybook/theme.js +50 -19
  61. package/dist/cjs/utils/testing/index.js +34 -14
  62. package/dist/cjs/utils/testing/render-with-redux.js +37 -15
  63. package/dist/cjs/utils/testing/render-with-router-redux.js +41 -19
  64. package/dist/cjs/utils/testing/render-with-router.js +40 -15
  65. package/dist/cjs/utils/testing/render-with-state-addons.js +56 -21
  66. package/dist/cjs/utils/types.js +18 -1
  67. package/dist/cjs/utils/url.js +19 -2
  68. package/dist/cjs/utils/web-storage.js +13 -7
  69. package/dist/cjs/utils/window.js +11 -10
  70. package/dist/cjs/view/app-root/hosted-app.js +24 -15
  71. package/dist/cjs/view/app-root/index.js +40 -24
  72. package/dist/cjs/view/app-root/stand-alone-app.js +27 -17
  73. package/dist/cjs/view/app-root/style.js +11 -10
  74. package/dist/cjs/view/app-router.js +77 -0
  75. package/dist/cjs/view/{media-breakpoint/index.js → breakpoint/use-breakpoint.js} +20 -21
  76. package/dist/cjs/view/{useMediaBreakpoints/index.js → breakpoint/use-media-query-list.js} +15 -14
  77. package/dist/cjs/view/error-boundary/default-error-template.js +14 -8
  78. package/dist/cjs/view/error-boundary/index.js +35 -13
  79. package/dist/cjs/view/error-toast/index.js +36 -20
  80. package/dist/cjs/view/fetch-host-app-data/index.js +16 -10
  81. package/dist/cjs/view/fetch-host-app-data/store.js +26 -11
  82. package/dist/cjs/view/fields/check-box/index.js +57 -26
  83. package/dist/cjs/view/fields/combo-box/index.js +68 -28
  84. package/dist/cjs/view/fields/connect-form.js +26 -13
  85. package/dist/cjs/view/fields/date-input/index.js +58 -23
  86. package/dist/cjs/view/fields/date-picker/index.js +58 -23
  87. package/dist/cjs/view/fields/form-item-layout/index.js +56 -25
  88. package/dist/cjs/view/fields/form-layout-block-item/index.js +84 -0
  89. package/dist/cjs/view/fields/input-mask/index.js +58 -24
  90. package/dist/cjs/view/fields/large-text-box/index.js +58 -23
  91. package/dist/cjs/view/fields/radio/index.js +67 -25
  92. package/dist/cjs/view/fields/radio-group/index.js +57 -22
  93. package/dist/cjs/view/fields/text-box/index.js +58 -23
  94. package/dist/cjs/view/fields/watch-value.js +19 -11
  95. package/dist/cjs/view/form/index.js +32 -15
  96. package/dist/cjs/view/form/personal-info-section.js +46 -36
  97. package/dist/cjs/view/form/submit-button/index.js +48 -15
  98. package/dist/cjs/view/guest-unload-handlers/index.js +11 -10
  99. package/dist/cjs/view/host-binding-events/index.js +19 -2
  100. package/dist/cjs/view/live-message/index.js +15 -9
  101. package/dist/cjs/view/loadable/index.js +30 -12
  102. package/dist/cjs/view/login/index.js +16 -20
  103. package/dist/cjs/view/message-to-host-app/index.js +11 -10
  104. package/dist/cjs/view/micro-app/app-factory/index.js +38 -20
  105. package/dist/cjs/view/micro-app/const.js +19 -2
  106. package/dist/cjs/view/micro-app/index.js +17 -11
  107. package/dist/cjs/view/micro-app/resources/manifest.js +14 -13
  108. package/dist/cjs/view/micro-app/resources/script.js +12 -11
  109. package/dist/cjs/view/micro-app/resources/style.js +11 -10
  110. package/dist/cjs/view/micro-app/types.js +18 -1
  111. package/dist/cjs/view/micro-app/use-app-will-render.js +36 -19
  112. package/dist/cjs/view/micro-app/utils.js +11 -10
  113. package/dist/cjs/view/micro-iframe-app/app.js +57 -22
  114. package/dist/cjs/view/micro-iframe-app/iframe/const.js +19 -2
  115. package/dist/cjs/view/micro-iframe-app/iframe/index.js +37 -14
  116. package/dist/cjs/view/micro-iframe-app/index.js +49 -14
  117. package/dist/cjs/view/micro-iframe-app/types.js +18 -1
  118. package/dist/cjs/view/micro-iframe-app/use-frame-loaded.js +16 -15
  119. package/dist/cjs/view/modals/error/index.js +31 -22
  120. package/dist/cjs/view/modals/navigation-prompt/index.js +39 -22
  121. package/dist/cjs/view/modals/session-expiry/customHooks.js +14 -13
  122. package/dist/cjs/view/modals/session-expiry/index.js +39 -30
  123. package/dist/cjs/view/modals/wait-message/index.js +59 -22
  124. package/dist/cjs/view/modals/wait-message/{html-wait-message.js → use-html-wait-message.js} +14 -15
  125. package/dist/cjs/view/modals/wait-message/wait-message-launcher.js +14 -14
  126. package/dist/cjs/view/page.js +51 -0
  127. package/dist/cjs/view/render-with-delay/index.js +15 -9
  128. package/dist/cjs/view/render-with-host-data/index.js +16 -10
  129. package/dist/cjs/view/require-auth.js +58 -0
  130. package/dist/cjs/view/session-timeout/index.js +23 -13
  131. package/dist/cjs/view/storybook/decorator.js +15 -9
  132. package/dist/cjs/view/use-previous.js +11 -10
  133. package/dist/cjs/view/{window-size/index.js → use-window-size-change.js} +15 -16
  134. package/dist/cjs/view/visually-hidden/index.js +32 -13
  135. package/dist/esm/analytics/appdynamics.js +34 -0
  136. package/dist/esm/analytics/index.js +43 -0
  137. package/dist/{es → esm}/analytics/page-view-event.js +0 -0
  138. package/dist/{es → esm}/analytics/user-session-event.js +0 -0
  139. package/dist/{es → esm}/analytics/user-wait-event.js +0 -0
  140. package/dist/esm/analytics/web-analytics.js +30 -0
  141. package/dist/{es → esm}/api/auth/index.js +0 -0
  142. package/dist/{es → esm}/api/helpers.js +0 -0
  143. package/dist/{es → esm}/api/users/index.js +0 -0
  144. package/dist/{es → esm}/api/users/users.json +0 -0
  145. package/dist/{es → esm}/app.config.json +0 -0
  146. package/dist/esm/communication/http-client/index.js +70 -0
  147. package/dist/{es → esm}/communication/http-client/request-interceptor.js +0 -0
  148. package/dist/{es → esm}/communication/http-client/response-interceptor.js +0 -0
  149. package/dist/{es → esm}/communication/http-client/retry-axios.js +1 -1
  150. package/dist/{es → esm}/communication/http-client/retry.js +0 -0
  151. package/dist/{es → esm}/data/auth/actions.js +0 -0
  152. package/dist/{es → esm}/data/auth/reducer.js +0 -0
  153. package/dist/{es → esm}/data/breakpoint/index.js +0 -0
  154. package/dist/{es → esm}/data/error/index.js +0 -0
  155. package/dist/{es → esm}/data/index.js +0 -0
  156. package/dist/{es → esm}/data/live-message/index.js +0 -0
  157. package/dist/{es → esm}/data/logout/actions.js +0 -0
  158. package/dist/{es → esm}/data/navigation-prompt/actions.js +0 -0
  159. package/dist/{es → esm}/data/react-redux.js +0 -0
  160. package/dist/esm/data/reducers.js +33 -0
  161. package/dist/{es → esm}/data/saga.js +0 -0
  162. package/dist/{es → esm}/data/store.js +5 -12
  163. package/dist/{es → esm}/data/wait-message/actions.js +0 -0
  164. package/dist/{es → esm}/data/wait-message/reducer.js +0 -0
  165. package/dist/esm/data/webpack-hmr.js +17 -0
  166. package/dist/{es → esm}/index.js +13 -11
  167. package/dist/{es → esm}/index.pug +0 -0
  168. package/dist/{es → esm}/micro-frontend.js +0 -0
  169. package/dist/esm/package.json +7 -0
  170. package/dist/esm/sideeffect/auth/index.js +64 -0
  171. package/dist/esm/sideeffect/error-toast/index.js +43 -0
  172. package/dist/esm/sideeffect/wait-message/index.js +55 -0
  173. package/dist/{es → esm}/typings/custom.d.js +0 -0
  174. package/dist/{es → esm}/typings/elliemae.d.js +0 -0
  175. package/dist/{es → esm}/typings/styled.d.js +0 -0
  176. package/dist/{es → esm}/typings/thirdparty.d.js +0 -0
  177. package/dist/{es → esm}/utils/app-config/config.js +1 -1
  178. package/dist/{es → esm}/utils/app-config/index.js +0 -0
  179. package/dist/{es → esm}/utils/app-host-integration/react.js +0 -0
  180. package/dist/{es → esm}/utils/auth/helper.js +0 -0
  181. package/dist/{es → esm}/utils/auth/index.js +25 -7
  182. package/dist/{es → esm}/utils/await.js +0 -0
  183. package/dist/{es → esm}/utils/constants.js +0 -0
  184. package/dist/{es → esm}/utils/font-size.js +0 -0
  185. package/dist/{es → esm}/utils/guest-with-service.js +0 -0
  186. package/dist/{es → esm}/utils/helpers.js +1 -1
  187. package/dist/{es → esm}/utils/history.js +0 -0
  188. package/dist/{es → esm}/utils/log-records.js +0 -0
  189. package/dist/{es → esm}/utils/micro-frontend/console-logger.js +0 -0
  190. package/dist/{es → esm}/utils/micro-frontend/guest.js +1 -1
  191. package/dist/{es → esm}/utils/micro-frontend/host.js +5 -4
  192. package/dist/{es → esm}/utils/micro-frontend/index.js +0 -0
  193. package/dist/{es → esm}/utils/micro-frontend/types.js +0 -0
  194. package/dist/{es → esm}/utils/redact-pii.js +0 -0
  195. package/dist/{es → esm}/utils/service-worker.js +2 -3
  196. package/dist/{es → esm}/utils/session.js +2 -2
  197. package/dist/{es → esm}/utils/storybook/manager.js +0 -0
  198. package/dist/{es → esm}/utils/storybook/preview.js +7 -3
  199. package/dist/esm/utils/storybook/theme.js +45 -0
  200. package/dist/esm/utils/testing/index.js +38 -0
  201. package/dist/esm/utils/testing/render-with-redux.js +35 -0
  202. package/dist/esm/utils/testing/render-with-router-redux.js +41 -0
  203. package/dist/esm/utils/testing/render-with-router.js +37 -0
  204. package/dist/esm/utils/testing/render-with-state-addons.js +69 -0
  205. package/dist/{es → esm}/utils/types.js +0 -0
  206. package/dist/{es → esm}/utils/url.js +0 -0
  207. package/dist/{es → esm}/utils/web-storage.js +0 -0
  208. package/dist/{es → esm}/utils/window.js +0 -0
  209. package/dist/esm/view/app-root/hosted-app.js +18 -0
  210. package/dist/{es → esm}/view/app-root/index.js +19 -7
  211. package/dist/esm/view/app-root/stand-alone-app.js +25 -0
  212. package/dist/{es → esm}/view/app-root/style.js +0 -0
  213. package/dist/esm/view/app-router.js +50 -0
  214. package/dist/{es/view/media-breakpoint/index.js → esm/view/breakpoint/use-breakpoint.js} +4 -6
  215. package/dist/{es/view/useMediaBreakpoints/index.js → esm/view/breakpoint/use-media-query-list.js} +4 -4
  216. package/dist/esm/view/error-boundary/default-error-template.js +5 -0
  217. package/dist/esm/view/error-boundary/index.js +54 -0
  218. package/dist/esm/view/error-toast/index.js +42 -0
  219. package/dist/{es → esm}/view/fetch-host-app-data/index.js +0 -0
  220. package/dist/esm/view/fetch-host-app-data/store.js +28 -0
  221. package/dist/esm/view/fields/check-box/index.js +52 -0
  222. package/dist/esm/view/fields/combo-box/index.js +64 -0
  223. package/dist/esm/view/fields/connect-form.js +24 -0
  224. package/dist/esm/view/fields/date-input/index.js +53 -0
  225. package/dist/esm/view/fields/date-picker/index.js +53 -0
  226. package/dist/esm/view/fields/form-item-layout/index.js +50 -0
  227. package/dist/esm/view/fields/form-layout-block-item/index.js +57 -0
  228. package/dist/esm/view/fields/input-mask/index.js +59 -0
  229. package/dist/esm/view/fields/large-text-box/index.js +53 -0
  230. package/dist/esm/view/fields/radio/index.js +62 -0
  231. package/dist/esm/view/fields/radio-group/index.js +52 -0
  232. package/dist/esm/view/fields/text-box/index.js +53 -0
  233. package/dist/esm/view/fields/watch-value.js +23 -0
  234. package/dist/esm/view/form/index.js +46 -0
  235. package/dist/{es → esm}/view/form/personal-info-section.js +29 -25
  236. package/dist/esm/view/form/submit-button/index.js +48 -0
  237. package/dist/{es → esm}/view/guest-unload-handlers/index.js +0 -0
  238. package/dist/{es → esm}/view/host-binding-events/index.js +0 -0
  239. package/dist/{es → esm}/view/intro.stories.mdx +0 -0
  240. package/dist/{es → esm}/view/live-message/index.js +0 -0
  241. package/dist/esm/view/loadable/index.js +28 -0
  242. package/dist/{es → esm}/view/login/index.js +2 -7
  243. package/dist/{es → esm}/view/message-to-host-app/index.js +0 -0
  244. package/dist/{es → esm}/view/micro-app/app-factory/index.js +21 -2
  245. package/dist/{es → esm}/view/micro-app/const.js +0 -0
  246. package/dist/{es → esm}/view/micro-app/index.js +0 -0
  247. package/dist/{es → esm}/view/micro-app/resources/manifest.js +0 -0
  248. package/dist/{es → esm}/view/micro-app/resources/script.js +1 -1
  249. package/dist/{es → esm}/view/micro-app/resources/style.js +0 -0
  250. package/dist/{es → esm}/view/micro-app/types.js +0 -0
  251. package/dist/{es → esm}/view/micro-app/use-app-will-render.js +21 -3
  252. package/dist/{es → esm}/view/micro-app/utils.js +0 -0
  253. package/dist/esm/view/micro-iframe-app/app.js +58 -0
  254. package/dist/{es → esm}/view/micro-iframe-app/iframe/const.js +0 -0
  255. package/dist/{es → esm}/view/micro-iframe-app/iframe/index.html +0 -0
  256. package/dist/esm/view/micro-iframe-app/iframe/index.js +54 -0
  257. package/dist/esm/view/micro-iframe-app/index.js +57 -0
  258. package/dist/{es → esm}/view/micro-iframe-app/types.js +0 -0
  259. package/dist/{es → esm}/view/micro-iframe-app/use-frame-loaded.js +2 -2
  260. package/dist/esm/view/modals/error/index.js +33 -0
  261. package/dist/esm/view/modals/navigation-prompt/index.js +40 -0
  262. package/dist/{es → esm}/view/modals/session-expiry/customHooks.js +0 -0
  263. package/dist/esm/view/modals/session-expiry/index.js +51 -0
  264. package/dist/esm/view/modals/wait-message/index.js +69 -0
  265. package/dist/esm/view/modals/wait-message/use-html-wait-message.js +11 -0
  266. package/dist/{es → esm}/view/modals/wait-message/wait-message-launcher.js +1 -2
  267. package/dist/{es/route/page-view.js → esm/view/page.js} +7 -0
  268. package/dist/{es → esm}/view/render-with-delay/index.js +1 -1
  269. package/dist/{es → esm}/view/render-with-host-data/index.js +0 -0
  270. package/dist/esm/view/require-auth.js +29 -0
  271. package/dist/{es → esm}/view/session-timeout/index.js +5 -1
  272. package/dist/{es → esm}/view/storybook/decorator.js +0 -0
  273. package/dist/{es → esm}/view/use-previous.js +0 -0
  274. package/dist/{es/view/window-size/index.js → esm/view/use-window-size-change.js} +3 -5
  275. package/dist/esm/view/visually-hidden/index.js +37 -0
  276. package/dist/types/{lib/analytics → analytics}/appdynamics.d.ts +0 -0
  277. package/dist/types/{lib/analytics → analytics}/index.d.ts +0 -0
  278. package/dist/types/{lib/analytics → analytics}/page-view-event.d.ts +0 -0
  279. package/dist/types/{lib/analytics → analytics}/user-session-event.d.ts +0 -0
  280. package/dist/types/{lib/analytics → analytics}/user-wait-event.d.ts +0 -0
  281. package/dist/types/{lib/analytics → analytics}/web-analytics.d.ts +0 -0
  282. package/dist/types/{lib/api → api}/auth/index.d.ts +0 -0
  283. package/dist/types/{lib/api → api}/helpers.d.ts +0 -0
  284. package/dist/types/{lib/api → api}/users/index.d.ts +0 -0
  285. package/dist/types/{lib/api → api}/users/index.endpoint.d.ts +0 -0
  286. package/dist/types/{lib/communication → communication}/http-client/index.d.ts +0 -0
  287. package/dist/types/{lib/communication → communication}/http-client/request-interceptor.d.ts +0 -0
  288. package/dist/types/{lib/communication → communication}/http-client/response-interceptor.d.ts +0 -0
  289. package/dist/types/{lib/communication → communication}/http-client/retry-axios.d.ts +0 -0
  290. package/dist/types/{lib/communication → communication}/http-client/retry.d.ts +0 -0
  291. package/dist/types/{lib/communication → communication}/http-client/tests/hello.endpoint.d.ts +0 -0
  292. package/dist/types/{.storybook/manager.d.ts → communication/http-client/tests/index.test.d.ts} +0 -0
  293. package/dist/types/{lib/communication → communication}/http-client/tests/private.endpoint.d.ts +0 -0
  294. package/dist/types/{lib/data → data}/auth/actions.d.ts +0 -0
  295. package/dist/types/{lib/data → data}/auth/reducer.d.ts +0 -0
  296. package/dist/types/{lib/data → data}/breakpoint/index.d.ts +0 -0
  297. package/dist/types/{lib/data → data}/error/index.d.ts +0 -0
  298. package/dist/types/{lib/data → data}/index.d.ts +0 -0
  299. package/dist/types/{lib/data → data}/live-message/index.d.ts +0 -0
  300. package/dist/types/{lib/data → data}/logout/actions.d.ts +0 -0
  301. package/dist/types/{lib/data → data}/navigation-prompt/actions.d.ts +0 -0
  302. package/dist/types/data/react-redux.d.ts +11 -0
  303. package/dist/types/{lib/data → data}/reducers.d.ts +0 -0
  304. package/dist/types/{lib/data → data}/saga.d.ts +0 -0
  305. package/dist/types/{lib/data → data}/store.d.ts +0 -1
  306. package/dist/types/{lib/data → data}/tests/store.test.d.ts +0 -0
  307. package/dist/types/{lib/data → data}/wait-message/actions.d.ts +0 -0
  308. package/dist/types/{lib/data → data}/wait-message/reducer.d.ts +0 -0
  309. package/dist/types/data/webpack-hmr.d.ts +1 -0
  310. package/dist/types/{lib/index.d.ts → index.d.ts} +5 -6
  311. package/dist/types/{lib/micro-frontend.d.ts → micro-frontend.d.ts} +0 -0
  312. package/dist/types/{lib/sideeffect → sideeffect}/auth/index.d.ts +0 -0
  313. package/dist/types/{lib/sideeffect → sideeffect}/error-toast/index.d.ts +0 -0
  314. package/dist/types/{lib/sideeffect → sideeffect}/wait-message/index.d.ts +0 -0
  315. package/dist/types/{lib/utils → utils}/app-config/config.d.ts +1 -1
  316. package/dist/types/{lib/utils → utils}/app-config/index.d.ts +0 -0
  317. package/dist/types/{lib/utils → utils}/app-host-integration/react.d.ts +0 -0
  318. package/dist/types/{lib/utils → utils}/auth/helper.d.ts +0 -0
  319. package/dist/types/{lib/utils → utils}/auth/index.d.ts +0 -0
  320. package/dist/types/{lib/utils → utils}/await.d.ts +0 -0
  321. package/dist/types/{lib/utils → utils}/constants.d.ts +0 -0
  322. package/dist/types/{lib/utils → utils}/font-size.d.ts +0 -0
  323. package/dist/types/{lib/utils → utils}/guest-with-service.d.ts +0 -0
  324. package/dist/types/{lib/utils → utils}/helpers.d.ts +0 -0
  325. package/dist/types/utils/history.d.ts +2 -0
  326. package/dist/types/{lib/utils → utils}/log-records.d.ts +0 -0
  327. package/dist/types/{lib/utils → utils}/micro-frontend/console-logger.d.ts +0 -0
  328. package/dist/types/{lib/utils → utils}/micro-frontend/guest.d.ts +2 -2
  329. package/dist/types/{lib/utils → utils}/micro-frontend/host.d.ts +2 -2
  330. package/dist/types/{lib/utils → utils}/micro-frontend/index.d.ts +0 -0
  331. package/dist/types/{lib/utils → utils}/micro-frontend/types.d.ts +0 -0
  332. package/dist/types/{lib/utils → utils}/redact-pii.d.ts +0 -0
  333. package/dist/types/{lib/utils → utils}/service-worker.d.ts +0 -0
  334. package/dist/types/{lib/utils → utils}/session.d.ts +5 -2
  335. package/dist/types/{lib/utils → utils}/storybook/cjs/main.d.ts +0 -0
  336. package/dist/types/{lib/utils → utils}/storybook/cjs/middleware.d.ts +0 -0
  337. package/dist/types/{lib/utils → utils}/storybook/cjs/vite.d.ts +0 -0
  338. package/dist/types/{lib/utils → utils}/storybook/cjs/webpack.d.ts +0 -0
  339. package/dist/types/{lib/utils → utils}/storybook/manager.d.ts +0 -0
  340. package/dist/types/{lib/utils → utils}/storybook/preview.d.ts +1 -0
  341. package/dist/types/{lib/utils → utils}/storybook/theme.d.ts +0 -0
  342. package/dist/types/{lib/utils → utils}/testing/index.d.ts +0 -0
  343. package/dist/types/{lib/utils → utils}/testing/render-with-redux.d.ts +0 -0
  344. package/dist/types/{lib/utils → utils}/testing/render-with-router-redux.d.ts +0 -0
  345. package/dist/types/{lib/utils → utils}/testing/render-with-router.d.ts +1 -1
  346. package/dist/types/{lib/utils → utils}/testing/render-with-state-addons.d.ts +1 -1
  347. package/dist/types/{lib/utils → utils}/types.d.ts +0 -0
  348. package/dist/types/{lib/utils → utils}/url.d.ts +0 -0
  349. package/dist/types/{lib/utils → utils}/web-storage.d.ts +0 -0
  350. package/dist/types/{lib/utils → utils}/window.d.ts +0 -0
  351. package/dist/types/{lib/view → view}/app-root/hosted-app.d.ts +1 -1
  352. package/dist/types/{lib/view → view}/app-root/index.d.ts +1 -1
  353. package/dist/types/{lib/view → view}/app-root/stand-alone-app.d.ts +1 -1
  354. package/dist/types/{lib/view → view}/app-root/style.d.ts +0 -0
  355. package/dist/types/view/app-router.d.ts +9 -0
  356. package/dist/types/{lib/view/media-breakpoint → view/breakpoint}/index.stories.d.ts +0 -0
  357. package/dist/types/view/breakpoint/use-breakpoint.d.ts +1 -0
  358. package/dist/types/view/breakpoint/use-media-query-list.d.ts +1 -0
  359. package/dist/types/{lib/view → view}/error-boundary/default-error-template.d.ts +1 -1
  360. package/dist/types/{lib/view → view}/error-boundary/index.d.ts +0 -0
  361. package/dist/types/{lib/view → view}/error-toast/index.d.ts +0 -0
  362. package/dist/types/{lib/view → view}/error-toast/index.stories.d.ts +0 -0
  363. package/dist/types/{lib/view → view}/fetch-host-app-data/index.d.ts +0 -0
  364. package/dist/types/{lib/view → view}/fetch-host-app-data/store.d.ts +0 -0
  365. package/dist/types/{lib/view → view}/fields/check-box/index.d.ts +2 -4
  366. package/dist/types/{lib/view → view}/fields/check-box/index.stories.d.ts +1 -3
  367. package/dist/types/{lib/view → view}/fields/check-box/set-value.stories.d.ts +0 -0
  368. package/dist/types/{lib/view → view}/fields/combo-box/index.d.ts +1 -2
  369. package/dist/types/view/fields/combo-box/index.stories.d.ts +5 -0
  370. package/dist/types/{lib/view → view}/fields/connect-form.d.ts +1 -1
  371. package/dist/types/{lib/view → view}/fields/date-input/index.d.ts +1 -1
  372. package/dist/types/{lib/view → view}/fields/date-input/index.stories.d.ts +0 -0
  373. package/dist/types/{lib/view → view}/fields/date-picker/index.d.ts +2 -1
  374. package/dist/types/{lib/view → view}/fields/date-picker/index.stories.d.ts +1 -3
  375. package/dist/types/{lib/view → view}/fields/form-item-layout/index.d.ts +1 -1
  376. package/dist/types/{lib/view → view}/fields/form-item-layout/index.stories.d.ts +0 -0
  377. package/dist/types/view/fields/form-layout-block-item/index.d.ts +8 -0
  378. package/dist/types/{lib/view/header → view/fields/form-layout-block-item}/index.stories.d.ts +2 -2
  379. package/dist/types/{lib/view → view}/fields/input-mask/index.d.ts +1 -1
  380. package/dist/types/{lib/view → view}/fields/input-mask/index.stories.d.ts +1 -3
  381. package/dist/types/{lib/view → view}/fields/large-text-box/index.d.ts +1 -1
  382. package/dist/types/{lib/view → view}/fields/large-text-box/index.stories.d.ts +1 -3
  383. package/dist/types/{lib/view → view}/fields/radio/index.d.ts +2 -2
  384. package/dist/types/{lib/view → view}/fields/radio/index.stories.d.ts +1 -3
  385. package/dist/types/{lib/view → view}/fields/radio/set-value.stories.d.ts +0 -0
  386. package/dist/types/{lib/view → view}/fields/radio-group/index.d.ts +1 -1
  387. package/dist/types/{lib/view → view}/fields/radio-group/index.stories.d.ts +0 -0
  388. package/dist/types/{lib/view → view}/fields/text-box/index.d.ts +1 -1
  389. package/dist/types/{lib/view → view}/fields/text-box/index.stories.d.ts +0 -0
  390. package/dist/types/view/fields/watch-value.d.ts +6 -0
  391. package/dist/types/{lib/view → view}/form/index.d.ts +0 -0
  392. package/dist/types/{lib/view → view}/form/index.stories.d.ts +0 -0
  393. package/dist/types/view/form/personal-info-section.d.ts +5 -0
  394. package/dist/types/{lib/view → view}/form/submit-button/index.d.ts +2 -1
  395. package/dist/types/{lib/view → view}/form/usecases.stories.d.ts +0 -0
  396. package/dist/types/{lib/view → view}/guest-unload-handlers/index.d.ts +0 -0
  397. package/dist/types/{lib/view → view}/host-binding-events/index.d.ts +0 -0
  398. package/dist/types/view/live-message/index.d.ts +2 -0
  399. package/dist/types/{lib/view → view}/live-message/index.stories.d.ts +0 -0
  400. package/dist/types/{lib/view → view}/loadable/index.d.ts +0 -0
  401. package/dist/types/{lib/view → view}/login/index.d.ts +1 -2
  402. package/dist/types/{lib/view → view}/message-to-host-app/index.d.ts +0 -0
  403. package/dist/types/{lib/view → view}/micro-app/app-factory/index.d.ts +0 -0
  404. package/dist/types/{lib/view → view}/micro-app/const.d.ts +0 -0
  405. package/dist/types/{lib/view → view}/micro-app/index.d.ts +0 -0
  406. package/dist/types/{lib/view → view}/micro-app/resources/manifest.d.ts +0 -0
  407. package/dist/types/{lib/view → view}/micro-app/resources/script.d.ts +0 -0
  408. package/dist/types/{lib/view → view}/micro-app/resources/style.d.ts +0 -0
  409. package/dist/types/{lib/view → view}/micro-app/types.d.ts +0 -0
  410. package/dist/types/{lib/view → view}/micro-app/use-app-will-render.d.ts +0 -0
  411. package/dist/types/{lib/view → view}/micro-app/utils.d.ts +0 -0
  412. package/dist/types/{lib/view → view}/micro-iframe-app/app.d.ts +0 -0
  413. package/dist/types/{lib/view → view}/micro-iframe-app/iframe/const.d.ts +0 -0
  414. package/dist/types/{lib/view → view}/micro-iframe-app/iframe/index.d.ts +0 -0
  415. package/dist/types/{lib/view → view}/micro-iframe-app/index.d.ts +0 -0
  416. package/dist/types/{lib/view → view}/micro-iframe-app/types.d.ts +0 -0
  417. package/dist/types/{lib/view → view}/micro-iframe-app/use-frame-loaded.d.ts +0 -0
  418. package/dist/types/view/modals/error/index.d.ts +9 -0
  419. package/dist/types/{lib/view → view}/modals/error/index.stories.d.ts +0 -0
  420. package/dist/types/{lib/view → view}/modals/navigation-prompt/index.d.ts +0 -1
  421. package/dist/types/{lib/view → view}/modals/navigation-prompt/index.stories.d.ts +0 -0
  422. package/dist/types/{lib/view → view}/modals/session-expiry/customHooks.d.ts +0 -0
  423. package/dist/types/{lib/view → view}/modals/session-expiry/index.d.ts +0 -1
  424. package/dist/types/{lib/view → view}/modals/session-expiry/index.stories.d.ts +0 -0
  425. package/dist/types/{lib/view → view}/modals/wait-message/index.d.ts +0 -0
  426. package/dist/types/{lib/view → view}/modals/wait-message/index.stories.d.ts +6 -2
  427. package/dist/types/view/modals/wait-message/use-html-wait-message.d.ts +1 -0
  428. package/dist/types/view/modals/wait-message/wait-message-launcher.d.ts +1 -0
  429. package/dist/types/view/page.d.ts +8 -0
  430. package/dist/types/{lib/view → view}/render-with-delay/index.d.ts +0 -0
  431. package/dist/types/{lib/view → view}/render-with-host-data/index.d.ts +0 -0
  432. package/dist/types/view/require-auth.d.ts +8 -0
  433. package/dist/types/view/session-timeout/index.d.ts +2 -0
  434. package/dist/types/{lib/view → view}/session-timeout/index.stories.d.ts +1 -4
  435. package/dist/types/{lib/view → view}/storybook/decorator.d.ts +0 -0
  436. package/dist/types/{lib/view → view}/use-previous.d.ts +0 -0
  437. package/dist/types/view/use-window-size-change.d.ts +1 -0
  438. package/dist/types/{lib/view → view}/visually-hidden/index.d.ts +0 -0
  439. package/package.json +60 -46
  440. package/dist/cjs/communication/http-client/tests/index.test-disable.js +0 -64
  441. package/dist/cjs/route/index.js +0 -49
  442. package/dist/cjs/route/page-view.js +0 -38
  443. package/dist/cjs/route/private-route/index.js +0 -69
  444. package/dist/cjs/view/header/center-region/index.js +0 -65
  445. package/dist/cjs/view/header/index.js +0 -44
  446. package/dist/cjs/view/header/logo-region/index.js +0 -33
  447. package/dist/cjs/view/header/logo-region/logo.svg +0 -2
  448. package/dist/cjs/view/header/nav-region/index.js +0 -47
  449. package/dist/cjs/view/header/nav-region/notification/index.js +0 -32
  450. package/dist/cjs/view/header/nav-region/notification/index.svg +0 -5
  451. package/dist/cjs/view/header/nav-region/user/index.js +0 -32
  452. package/dist/cjs/view/header/nav-region/user/index.svg +0 -4
  453. package/dist/es/analytics/appdynamics.js +0 -18
  454. package/dist/es/analytics/index.js +0 -27
  455. package/dist/es/analytics/web-analytics.js +0 -14
  456. package/dist/es/communication/http-client/index.js +0 -35
  457. package/dist/es/communication/http-client/tests/index.test-disable.js +0 -46
  458. package/dist/es/data/reducers.js +0 -18
  459. package/dist/es/package.json +0 -1
  460. package/dist/es/route/index.js +0 -26
  461. package/dist/es/route/private-route/index.js +0 -46
  462. package/dist/es/sideeffect/auth/index.js +0 -47
  463. package/dist/es/sideeffect/error-toast/index.js +0 -25
  464. package/dist/es/sideeffect/wait-message/index.js +0 -38
  465. package/dist/es/utils/storybook/theme.js +0 -13
  466. package/dist/es/utils/testing/index.js +0 -22
  467. package/dist/es/utils/testing/render-with-redux.js +0 -17
  468. package/dist/es/utils/testing/render-with-router-redux.js +0 -23
  469. package/dist/es/utils/testing/render-with-router.js +0 -16
  470. package/dist/es/utils/testing/render-with-state-addons.js +0 -38
  471. package/dist/es/view/app-root/hosted-app.js +0 -15
  472. package/dist/es/view/app-root/stand-alone-app.js +0 -21
  473. package/dist/es/view/error-boundary/default-error-template.js +0 -5
  474. package/dist/es/view/error-boundary/index.js +0 -36
  475. package/dist/es/view/error-toast/index.js +0 -30
  476. package/dist/es/view/fetch-host-app-data/store.js +0 -12
  477. package/dist/es/view/fields/check-box/index.js +0 -25
  478. package/dist/es/view/fields/combo-box/index.js +0 -28
  479. package/dist/es/view/fields/connect-form.js +0 -10
  480. package/dist/es/view/fields/date-input/index.js +0 -22
  481. package/dist/es/view/fields/date-picker/index.js +0 -22
  482. package/dist/es/view/fields/form-item-layout/index.js +0 -23
  483. package/dist/es/view/fields/input-mask/index.js +0 -28
  484. package/dist/es/view/fields/large-text-box/index.js +0 -22
  485. package/dist/es/view/fields/radio/index.js +0 -24
  486. package/dist/es/view/fields/radio-group/index.js +0 -21
  487. package/dist/es/view/fields/text-box/index.js +0 -22
  488. package/dist/es/view/fields/watch-value.js +0 -21
  489. package/dist/es/view/form/index.js +0 -33
  490. package/dist/es/view/form/submit-button/index.js +0 -19
  491. package/dist/es/view/header/center-region/index.js +0 -42
  492. package/dist/es/view/header/index.js +0 -21
  493. package/dist/es/view/header/logo-region/index.js +0 -10
  494. package/dist/es/view/header/logo-region/logo.svg +0 -2
  495. package/dist/es/view/header/nav-region/index.js +0 -24
  496. package/dist/es/view/header/nav-region/notification/index.js +0 -9
  497. package/dist/es/view/header/nav-region/notification/index.svg +0 -5
  498. package/dist/es/view/header/nav-region/user/index.js +0 -9
  499. package/dist/es/view/header/nav-region/user/index.svg +0 -4
  500. package/dist/es/view/loadable/index.js +0 -14
  501. package/dist/es/view/micro-iframe-app/app.js +0 -27
  502. package/dist/es/view/micro-iframe-app/iframe/index.js +0 -35
  503. package/dist/es/view/micro-iframe-app/index.js +0 -26
  504. package/dist/es/view/modals/error/index.js +0 -24
  505. package/dist/es/view/modals/navigation-prompt/index.js +0 -22
  506. package/dist/es/view/modals/session-expiry/index.js +0 -40
  507. package/dist/es/view/modals/wait-message/html-wait-message.js +0 -13
  508. package/dist/es/view/modals/wait-message/index.js +0 -36
  509. package/dist/es/view/visually-hidden/index.js +0 -22
  510. package/dist/types/.storybook/main.d.ts +0 -63
  511. package/dist/types/.storybook/middleware.d.ts +0 -2
  512. package/dist/types/.storybook/preview.d.ts +0 -25
  513. package/dist/types/.storybook/theme.d.ts +0 -4
  514. package/dist/types/lib/communication/http-client/tests/index.test-disable.d.ts +0 -1
  515. package/dist/types/lib/data/react-redux.d.ts +0 -20
  516. package/dist/types/lib/route/index.d.ts +0 -8
  517. package/dist/types/lib/route/page-view.d.ts +0 -1
  518. package/dist/types/lib/route/private-route/index.d.ts +0 -8
  519. package/dist/types/lib/utils/history.d.ts +0 -2
  520. package/dist/types/lib/view/fields/combo-box/index.stories.d.ts +0 -7
  521. package/dist/types/lib/view/fields/watch-value.d.ts +0 -6
  522. package/dist/types/lib/view/form/personal-info-section.d.ts +0 -5
  523. package/dist/types/lib/view/header/center-region/index.d.ts +0 -9
  524. package/dist/types/lib/view/header/index.d.ts +0 -7
  525. package/dist/types/lib/view/header/logo-region/index.d.ts +0 -2
  526. package/dist/types/lib/view/header/nav-region/index.d.ts +0 -2
  527. package/dist/types/lib/view/header/nav-region/notification/index.d.ts +0 -2
  528. package/dist/types/lib/view/header/nav-region/user/index.d.ts +0 -2
  529. package/dist/types/lib/view/live-message/index.d.ts +0 -2
  530. package/dist/types/lib/view/media-breakpoint/index.d.ts +0 -2
  531. package/dist/types/lib/view/modals/error/index.d.ts +0 -8
  532. package/dist/types/lib/view/modals/wait-message/html-wait-message.d.ts +0 -6
  533. package/dist/types/lib/view/modals/wait-message/wait-message-launcher.d.ts +0 -2
  534. package/dist/types/lib/view/session-timeout/index.d.ts +0 -2
  535. package/dist/types/lib/view/useMediaBreakpoints/index.d.ts +0 -1
  536. package/dist/types/lib/view/window-size/index.d.ts +0 -2
@@ -0,0 +1,51 @@
1
+ import * as React from "react";
2
+ import { memo, useEffect, useState } from "react";
3
+ import { DSButtonV2 } from "@elliemae/ds-button";
4
+ import { WarningCircle } from "@elliemae/ds-icons";
5
+ import {
6
+ DSDialog,
7
+ DSDialogDefaultLayout,
8
+ DSDialogPrimaryMessage,
9
+ DSDialogSecondaryMessage,
10
+ DSDialogBody,
11
+ DSDialogFooter,
12
+ DSDialogSeparator
13
+ } from "@elliemae/ds-dialog";
14
+ import { useAppDispatch } from "../../../data/react-redux.js";
15
+ import { logout } from "../../../data/logout/actions.js";
16
+ import { resetUserIdleTime } from "../../../utils/session.js";
17
+ import { useTrackSessionExpiry } from "./customHooks.js";
18
+ const SessionExpiry = memo(({ open, warningNotifiedAt = 0 }) => {
19
+ const [isOpen, setIsOpen] = useState(open);
20
+ const timeLeft = useTrackSessionExpiry(warningNotifiedAt);
21
+ const dispatch = useAppDispatch();
22
+ useEffect(() => {
23
+ setIsOpen(open);
24
+ }, [open]);
25
+ const resetSession = () => {
26
+ setIsOpen(false);
27
+ resetUserIdleTime(true);
28
+ dispatch(logout.cancel());
29
+ };
30
+ const logoutSession = () => {
31
+ setIsOpen(false);
32
+ dispatch(logout.confirm());
33
+ };
34
+ return timeLeft ? /* @__PURE__ */ React.createElement(DSDialog, {
35
+ isOpen,
36
+ size: "small"
37
+ }, /* @__PURE__ */ React.createElement(DSDialogBody, {
38
+ p: "s"
39
+ }, /* @__PURE__ */ React.createElement(DSDialogDefaultLayout, null, /* @__PURE__ */ React.createElement(WarningCircle, {
40
+ size: "xl",
41
+ color: ["warning", "900"]
42
+ }), /* @__PURE__ */ React.createElement(DSDialogPrimaryMessage, null, `Your session will expire in ${timeLeft}`), /* @__PURE__ */ React.createElement(DSDialogSecondaryMessage, null, "Please logout or reset your session"))), /* @__PURE__ */ React.createElement(DSDialogSeparator, null), /* @__PURE__ */ React.createElement(DSDialogFooter, null, /* @__PURE__ */ React.createElement(DSButtonV2, {
43
+ buttonType: "outline",
44
+ onClick: logoutSession
45
+ }, "Logout"), /* @__PURE__ */ React.createElement(DSButtonV2, {
46
+ onClick: resetSession
47
+ }, "Reset"))) : null;
48
+ });
49
+ export {
50
+ SessionExpiry
51
+ };
@@ -0,0 +1,69 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __defProps = Object.defineProperties;
3
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
+ var __spreadValues = (a, b) => {
9
+ for (var prop in b || (b = {}))
10
+ if (__hasOwnProp.call(b, prop))
11
+ __defNormalProp(a, prop, b[prop]);
12
+ if (__getOwnPropSymbols)
13
+ for (var prop of __getOwnPropSymbols(b)) {
14
+ if (__propIsEnum.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
+ }
17
+ return a;
18
+ };
19
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
+ var __objRest = (source, exclude) => {
21
+ var target = {};
22
+ for (var prop in source)
23
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
24
+ target[prop] = source[prop];
25
+ if (source != null && __getOwnPropSymbols)
26
+ for (var prop of __getOwnPropSymbols(source)) {
27
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
28
+ target[prop] = source[prop];
29
+ }
30
+ return target;
31
+ };
32
+ import * as React from "react";
33
+ import { memo, useEffect } from "react";
34
+ import { DSLoadingIndicator } from "@elliemae/ds-loading-indicator";
35
+ import { useAppSelector } from "../../../data/react-redux.js";
36
+ import { useHTMLWaitMessage } from "./use-html-wait-message.js";
37
+ import {
38
+ waitStartEvent,
39
+ waitEndEvent
40
+ } from "../../../analytics/user-wait-event.js";
41
+ const WaitMessage = memo((_a) => {
42
+ var _b = _a, {
43
+ size = "m",
44
+ style = { color: "white", fontSize: "1.25rem" }
45
+ } = _b, rest = __objRest(_b, [
46
+ "size",
47
+ "style"
48
+ ]);
49
+ const isOpen = useAppSelector((state) => state.waitMessage?.isOpen);
50
+ const message = useAppSelector((state) => state.waitMessage?.message);
51
+ useEffect(() => {
52
+ if (isOpen)
53
+ waitStartEvent();
54
+ else
55
+ waitEndEvent();
56
+ }, [isOpen]);
57
+ useHTMLWaitMessage(isOpen !== null);
58
+ return /* @__PURE__ */ React.createElement(DSLoadingIndicator, __spreadProps(__spreadValues({
59
+ id: "em-loading",
60
+ size,
61
+ style
62
+ }, rest), {
63
+ loading: isOpen,
64
+ message
65
+ }));
66
+ });
67
+ export {
68
+ WaitMessage
69
+ };
@@ -0,0 +1,11 @@
1
+ import { useEffect } from "react";
2
+ const useHTMLWaitMessage = (close) => {
3
+ useEffect(() => {
4
+ const htmlWaitMsgElement = document.getElementById("em-wait-message");
5
+ if (htmlWaitMsgElement && close)
6
+ htmlWaitMsgElement.remove();
7
+ }, [close]);
8
+ };
9
+ export {
10
+ useHTMLWaitMessage
11
+ };
@@ -1,4 +1,3 @@
1
- import * as React from "react";
2
1
  import { useEffect } from "react";
3
2
  import { useAppDispatch } from "../../../data/react-redux.js";
4
3
  import { waitMessage } from "../../../data/wait-message/actions.js";
@@ -10,7 +9,7 @@ const WaitMessageLauncher = () => {
10
9
  dispatch(waitMessage.close());
11
10
  };
12
11
  }, [dispatch]);
13
- return /* @__PURE__ */ React.createElement(React.Fragment, null);
12
+ return null;
14
13
  };
15
14
  export {
16
15
  WaitMessageLauncher
@@ -1,3 +1,5 @@
1
+ import * as React from "react";
2
+ import { Helmet } from "react-helmet";
1
3
  import * as brum from "@elliemae/pui-user-monitoring";
2
4
  import { pageViewEvent } from "../analytics/page-view-event.js";
3
5
  const onPageView = (pageTitle) => {
@@ -10,6 +12,11 @@ const onPageView = (pageTitle) => {
10
12
  }
11
13
  pageViewEvent({ pageTitle });
12
14
  };
15
+ const Page = ({ pageTitle = "ICE", children }) => {
16
+ onPageView(pageTitle);
17
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Helmet, null, /* @__PURE__ */ React.createElement("title", null, pageTitle)), children);
18
+ };
13
19
  export {
20
+ Page,
14
21
  onPageView
15
22
  };
@@ -8,7 +8,7 @@ const RenderWithDelay = memo(({ render }) => {
8
8
  clearTimeout(timeoutId);
9
9
  };
10
10
  }, []);
11
- return show ? /* @__PURE__ */ React.createElement(React.Fragment, null, render()) : /* @__PURE__ */ React.createElement(React.Fragment, null);
11
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, show ? render() : "");
12
12
  });
13
13
  export {
14
14
  RenderWithDelay
@@ -0,0 +1,29 @@
1
+ import * as React from "react";
2
+ import { useInjectReducer, useInjectSaga } from "redux-injectors";
3
+ import enums from "../utils/constants.js";
4
+ import { authReducer } from "../data/auth/reducer.js";
5
+ import { authentication } from "../sideeffect/auth/index.js";
6
+ import { Login } from "./login/index.js";
7
+ import { isUserAuthorized } from "../utils/auth/index.js";
8
+ const key = "auth";
9
+ const RequireAuth = ({
10
+ children,
11
+ clientId = enums.CLIENT_ID,
12
+ scope = "loc",
13
+ responseType = "code"
14
+ }) => {
15
+ useInjectReducer({ key, reducer: authReducer });
16
+ useInjectSaga({ key, saga: authentication });
17
+ const userAuthorized = isUserAuthorized();
18
+ if (userAuthorized) {
19
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, children);
20
+ }
21
+ return /* @__PURE__ */ React.createElement(Login, {
22
+ clientId,
23
+ scope,
24
+ responseType
25
+ });
26
+ };
27
+ export {
28
+ RequireAuth
29
+ };
@@ -22,7 +22,11 @@ const SessionTimeout = () => {
22
22
  setwarningNotifiedAt(sessionExpiryWarningNotifiedAt);
23
23
  setSessionExpiryWarning(true);
24
24
  });
25
- const resetCb = subscribeToResetSession(setSessionExpiryWarning.bind(null, false));
25
+ const resetCb = subscribeToResetSession((resetWarningModal) => {
26
+ if (resetWarningModal === true) {
27
+ setSessionExpiryWarning(false);
28
+ }
29
+ });
26
30
  const sessionExpiredCb = subscribeToSessionExpiry(() => {
27
31
  dispatch(logout.confirm());
28
32
  setSessionExpiryWarning(false);
File without changes
File without changes
@@ -1,8 +1,7 @@
1
- import * as React from "react";
2
1
  import { useEffect } from "react";
3
2
  import { publish } from "pubsub-js";
4
- import { HOST_WINDOW_RESIZED } from "../../utils/constants.js";
5
- const WindowSize = () => {
3
+ import { HOST_WINDOW_RESIZED } from "../utils/constants.js";
4
+ const useWindowSizeChange = () => {
6
5
  useEffect(() => {
7
6
  if (window.ResizeObserver) {
8
7
  const observer = new ResizeObserver((entries) => {
@@ -16,8 +15,7 @@ const WindowSize = () => {
16
15
  return () => {
17
16
  };
18
17
  }, []);
19
- return /* @__PURE__ */ React.createElement(React.Fragment, null);
20
18
  };
21
19
  export {
22
- WindowSize
20
+ useWindowSizeChange
23
21
  };
@@ -0,0 +1,37 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
3
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
4
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
5
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6
+ var __spreadValues = (a, b) => {
7
+ for (var prop in b || (b = {}))
8
+ if (__hasOwnProp.call(b, prop))
9
+ __defNormalProp(a, prop, b[prop]);
10
+ if (__getOwnPropSymbols)
11
+ for (var prop of __getOwnPropSymbols(b)) {
12
+ if (__propIsEnum.call(b, prop))
13
+ __defNormalProp(a, prop, b[prop]);
14
+ }
15
+ return a;
16
+ };
17
+ import * as React from "react";
18
+ import { forwardRef } from "react";
19
+ import styled from "styled-components";
20
+ const Span = styled.span`
21
+ border: 0;
22
+ clip: rect(0 0 0 0);
23
+ height: 1px;
24
+ margin: -1px;
25
+ overflow: hidden;
26
+ padding: 0;
27
+ position: absolute;
28
+ width: 1px;
29
+ white-space: nowrap;
30
+ word-wrap: normal;
31
+ `;
32
+ const VisuallyHidden = forwardRef((props, ref) => /* @__PURE__ */ React.createElement(Span, __spreadValues({
33
+ ref
34
+ }, props)));
35
+ export {
36
+ VisuallyHidden
37
+ };
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,11 @@
1
+ import { Dispatch, PayloadAction, AnyAction } from '@reduxjs/toolkit';
2
+ import { TypedUseSelectorHook } from 'react-redux';
3
+ import { RootState } from './store.js';
4
+ import { WaitMessageState } from './wait-message/reducer.js';
5
+ import { BreakpointState } from './breakpoint/index.js';
6
+ import { ErrorState } from './error/index.js';
7
+ import { LiveMessageState } from './live-message/index.js';
8
+ declare type AppDispatch = Dispatch<PayloadAction<WaitMessageState> | PayloadAction<BreakpointState> | PayloadAction<ErrorState> | PayloadAction<LiveMessageState> | AnyAction>;
9
+ export declare const useAppDispatch: () => AppDispatch;
10
+ export declare const useAppSelector: TypedUseSelectorHook<RootState>;
11
+ export {};
File without changes
File without changes
@@ -50,5 +50,4 @@ export declare const createAppStore: (initialState: import("redux").CombinedStat
50
50
  liveMessage: import("./live-message/index.js").LiveMessageState;
51
51
  }>, import("redux").Dispatch<import("redux").AnyAction>>>>;
52
52
  export declare type AppStore = ReturnType<typeof createAppStore>;
53
- export declare type AppDispatch = AppStore['dispatch'];
54
53
  export {};
@@ -0,0 +1 @@
1
+ export declare const enableHotReloading: (baseStore: {}) => void;
@@ -1,9 +1,9 @@
1
1
  export { isUserAuthorized, login, authorize } from './utils/auth/index.js';
2
- export { PrivateRoute } from './route/private-route/index.js';
3
- export { AppRoute as Route } from './route/index.js';
4
2
  export { getHTTPClient, getAuthHTTPClient, } from './communication/http-client/index.js';
5
3
  export { onAuthorizationFailure } from './communication/http-client/response-interceptor.js';
6
4
  export { auth } from './data/auth/actions.js';
5
+ export { RequireAuth } from './view/require-auth.js';
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
9
  export { useInjectReducer, useInjectSaga } from 'redux-injectors';
@@ -23,7 +23,7 @@ export { CMicroAppGuest } from './utils/micro-frontend/guest.js';
23
23
  export { CMicroAppHost } from './utils/micro-frontend/host.js';
24
24
  export { enableReactAppForHostIntegration } from './utils/app-host-integration/react.js';
25
25
  export { getAppConfigValue, setAppConfigValue, setAppConfig, } from './utils/app-config/config.js';
26
- export { getMicroFrontEndAppConfig } from './utils/micro-frontend/index.js';
26
+ export { getMicroFrontEndAppConfig, getLogger, } from './utils/micro-frontend/index.js';
27
27
  export { loadAppConfig } from './utils/app-config/index.js';
28
28
  export { AppRoot } from './view/app-root/index.js';
29
29
  export { ErrorBoundary } from './view/error-boundary/index.js';
@@ -41,13 +41,12 @@ export { renderWithRouter } from './utils/testing/render-with-router.js';
41
41
  export { RenderWithStateAddOns } from './utils/testing/render-with-state-addons.js';
42
42
  export { getApiActionCreator, getSelectField } from './api/helpers.js';
43
43
  export { getUser as fetchUserSettings } from './api/users/index.js';
44
- export { useMediaBreakpoints } from './view/useMediaBreakpoints/index.js';
45
44
  export { withAppDecorator } from './view/storybook/decorator.js';
46
- export { Header } from './view/header/index.js';
47
45
  export { ErrorToast } from './view/error-toast/index.js';
48
46
  export { Form } from './view/form/index.js';
49
47
  export { ConnectForm } from './view/fields/connect-form.js';
50
48
  export { FormItemLayout } from './view/fields/form-item-layout/index.js';
49
+ export { FormLayoutBlockItem } from './view/fields/form-layout-block-item/index.js';
51
50
  export { TextBox } from './view/fields/text-box/index.js';
52
51
  export { LargeTextBox } from './view/fields/large-text-box/index.js';
53
52
  export { InputMask, MASK_TYPES, MASK_PIPES, } from './view/fields/input-mask/index.js';
@@ -58,7 +57,7 @@ export { RadioGroup } from './view/fields/radio-group/index.js';
58
57
  export { DateInput } from './view/fields/date-input/index.js';
59
58
  export { DatePicker } from './view/fields/date-picker/index.js';
60
59
  export { FormSubmitButton } from './view/form/submit-button/index.js';
61
- export { MediaBreakpoint } from './view/media-breakpoint/index.js';
60
+ export { useMediaQueryList } from './view/breakpoint/use-media-query-list.js';
62
61
  export { VisuallyHidden } from './view/visually-hidden/index.js';
63
62
  export { actions as ariaLive } from './data/live-message/index.js';
64
63
  export { actions as error } from './data/error/index.js';
@@ -21,6 +21,6 @@ export interface AppConfig {
21
21
  }
22
22
  export declare const setAppConfig: (config: AppConfig) => void;
23
23
  export declare const getAppConfigValue: <Type>(key?: string, defaultValue?: unknown) => Type;
24
- export declare const setAppConfigValue: <Type>(key: string | undefined, value: Type) => AppConfig;
24
+ export declare const setAppConfigValue: <Type>(key: string, value: Type) => AppConfig;
25
25
  export declare const hasItem: (key?: string) => boolean;
26
26
  export {};
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,2 @@
1
+ export declare const browserHistory: import("history").BrowserHistory;
2
+ export declare const memoryHistory: import("history").MemoryHistory;
File without changes
@@ -1,5 +1,5 @@
1
1
  import { DefaultTheme } from 'styled-components';
2
- import { History, Path } from 'history';
2
+ import { History, To } from 'history';
3
3
  import type { IMicroAppGuest, IMicroAppHost, InitOptions, MountOptions } from '@elliemae/pui-micro-frontend-base';
4
4
  import { MicroFrontEndLogger } from './console-logger.js';
5
5
  import { JSONValue } from '../types.js';
@@ -42,6 +42,6 @@ export declare class CMicroAppGuest implements IMicroAppGuest {
42
42
  mount(this: CMicroAppGuest, options?: MountOptions): Promise<void>;
43
43
  unmount(this: CMicroAppGuest, options: MountOptions): Promise<JSONValue>;
44
44
  getRef<T>(this: CMicroAppGuest): T | null;
45
- navigate(this: CMicroAppGuest, url: Path, state?: any): void;
45
+ navigate(this: CMicroAppGuest, url: To, state?: any): void;
46
46
  }
47
47
  export {};
@@ -1,5 +1,5 @@
1
1
  import { IMicroAppHost, ResizeEventHandler, BreakpointChangeEventHandler, SubscriptionListener, BAEvent } from '@elliemae/pui-micro-frontend-base';
2
- import { History, Path } from 'history';
2
+ import { History, To } from 'history';
3
3
  import { DefaultTheme } from 'styled-components';
4
4
  import { MicroFrontEndLogger } from './console-logger.js';
5
5
  declare type HostOptions = {
@@ -33,7 +33,7 @@ export declare class CMicroAppHost implements IMicroAppHost {
33
33
  publish<Type>(message: string | symbol, data?: Type): boolean;
34
34
  subscribe<T>(message: string | symbol, func: SubscriptionListener<T>): string;
35
35
  unsubscribe(token: string): void;
36
- navigate(this: CMicroAppHost, url: Path, state?: any): void;
36
+ navigate(this: CMicroAppHost, url: To, state?: any): void;
37
37
  openWaitMessage(): void;
38
38
  closeWaitMessage(): void;
39
39
  openErrorBanner(message: string): void;
File without changes
@@ -1,14 +1,17 @@
1
1
  declare type WARNLISTENER = {
2
2
  (sessionExpiryWarningNotifiedAt: number | null): void;
3
3
  };
4
+ declare type RESETLISTENER = {
5
+ (resetWarningModal: unknown): void;
6
+ };
4
7
  declare type LISTENER = {
5
8
  (): void;
6
9
  };
7
- export declare const resetUserIdleTime: () => void;
10
+ export declare const resetUserIdleTime: (resetWarningModal?: unknown) => void;
8
11
  export declare const stopSessionMonitoring: () => void;
9
12
  export declare const initSessionMonitoring: () => void;
10
13
  export declare const subscribeToSessionExpiryWarning: (onSessionExpiryWarn: WARNLISTENER) => () => void;
11
14
  export declare const subscribeToSessionExpiry: (onSessionExpiry: LISTENER) => () => void;
12
- export declare const subscribeToResetSession: (onResetListener: LISTENER) => () => void;
15
+ export declare const subscribeToResetSession: (onResetListener: RESETLISTENER) => () => void;
13
16
  export declare const trackActivity: (element: Document | null, cb: (...args: unknown[]) => void) => () => void;
14
17
  export {};
@@ -28,3 +28,4 @@ export declare const getParameters: (storyBookTheme: {
28
28
  };
29
29
  };
30
30
  export declare const decorators: ((story: () => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) => JSX.Element)[];
31
+ export declare const loaders: (() => Promise<void>)[];
@@ -5,7 +5,7 @@ interface Args {
5
5
  history: History;
6
6
  }
7
7
  export declare const renderWithRouter: (ui: React.ReactElement, { route, history, }?: Args) => {
8
- history: History<unknown>;
8
+ history: History;
9
9
  container: HTMLElement;
10
10
  baseElement: Element;
11
11
  debug: (baseElement?: Element | DocumentFragment | (Element | DocumentFragment)[] | undefined, maxLength?: number | undefined, options?: import("pretty-format").PrettyFormatOptions | undefined) => void;
@@ -19,5 +19,5 @@ interface RenderWithStateAddOnsProps {
19
19
  theme?: Theme;
20
20
  [x: string]: any;
21
21
  }
22
- export declare const RenderWithStateAddOns: React.FC<RenderWithStateAddOnsProps>;
22
+ export declare const RenderWithStateAddOns: ({ Component, reducer, saga, theme, ...rest }: RenderWithStateAddOnsProps) => JSX.Element | null;
23
23
  export {};
File without changes
File without changes
File without changes
File without changes
@@ -2,5 +2,5 @@
2
2
  declare type HostedAppProps = {
3
3
  children: React.ReactNode;
4
4
  };
5
- export declare const HostedApp: React.FC<HostedAppProps>;
5
+ export declare const HostedApp: ({ children }: HostedAppProps) => JSX.Element;
6
6
  export {};
@@ -11,5 +11,5 @@ declare type AppRootProps = {
11
11
  WaitMessage?: React.ReactNode;
12
12
  errorTemplate?: React.ComponentType;
13
13
  };
14
- export declare const AppRoot: React.FC<AppRootProps>;
14
+ export declare const AppRoot: ({ store, history, theme, manageSession, WaitMessage, errorTemplate, children, }: AppRootProps) => JSX.Element;
15
15
  export {};