@elliemae/pui-app-sdk 4.0.0-beta.6 → 4.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 (415) hide show
  1. package/README.md +5 -1
  2. package/dist/cjs/analytics/appdynamics.js +6 -16
  3. package/dist/cjs/analytics/index.js +2 -15
  4. package/dist/cjs/analytics/page-view-event.js +1 -0
  5. package/dist/cjs/analytics/user-session-event.js +1 -0
  6. package/dist/cjs/analytics/user-wait-event.js +1 -0
  7. package/dist/cjs/analytics/web-analytics.js +2 -15
  8. package/dist/cjs/api/auth/index.js +9 -2
  9. package/dist/cjs/api/helpers.js +8 -1
  10. package/dist/cjs/api/users/index.js +4 -1
  11. package/dist/cjs/communication/http-client/index.js +14 -43
  12. package/dist/cjs/communication/http-client/request-interceptor.js +1 -0
  13. package/dist/cjs/communication/http-client/response-interceptor.js +5 -1
  14. package/dist/cjs/communication/http-client/retry-axios.js +5 -1
  15. package/dist/cjs/communication/http-client/retry.js +1 -0
  16. package/dist/cjs/data/auth/actions.js +1 -0
  17. package/dist/cjs/data/auth/reducer.js +15 -8
  18. package/dist/cjs/data/breakpoint/index.js +5 -1
  19. package/dist/cjs/data/error/index.js +1 -0
  20. package/dist/cjs/data/index.js +2 -0
  21. package/dist/cjs/data/live-message/index.js +1 -0
  22. package/dist/cjs/data/logout/actions.js +1 -0
  23. package/dist/cjs/data/navigation-prompt/actions.js +1 -0
  24. package/dist/cjs/data/react-redux.js +1 -0
  25. package/dist/cjs/data/reducers.js +5 -17
  26. package/dist/cjs/data/saga.js +1 -0
  27. package/dist/cjs/data/store.js +11 -2
  28. package/dist/cjs/data/wait-message/actions.js +1 -0
  29. package/dist/cjs/data/wait-message/reducer.js +5 -1
  30. package/dist/cjs/data/webpack-hmr.js +1 -0
  31. package/dist/cjs/index.js +13 -1
  32. package/dist/cjs/micro-frontend.js +1 -0
  33. package/dist/cjs/sideeffect/auth/index.js +7 -21
  34. package/dist/cjs/sideeffect/error-toast/index.js +7 -20
  35. package/dist/cjs/sideeffect/wait-message/index.js +13 -23
  36. package/dist/cjs/utils/app-config/config.js +5 -1
  37. package/dist/cjs/utils/app-config/index.js +12 -4
  38. package/dist/cjs/utils/app-host-integration/react.js +1 -0
  39. package/dist/cjs/utils/auth/helper.js +5 -1
  40. package/dist/cjs/utils/auth/index.js +13 -25
  41. package/dist/cjs/utils/await.js +1 -0
  42. package/dist/cjs/utils/constants.js +1 -0
  43. package/dist/cjs/utils/font-size.js +1 -0
  44. package/dist/cjs/utils/guest-with-service.js +1 -0
  45. package/dist/cjs/utils/helpers.js +2 -1
  46. package/dist/cjs/utils/history.js +1 -0
  47. package/dist/cjs/utils/log-records.js +1 -0
  48. package/dist/cjs/utils/micro-frontend/console-logger.js +1 -0
  49. package/dist/cjs/utils/micro-frontend/guest.js +10 -3
  50. package/dist/cjs/utils/micro-frontend/host.js +10 -3
  51. package/dist/cjs/utils/micro-frontend/index.js +28 -10
  52. package/dist/cjs/utils/micro-frontend/ssfguest-adapter.js +11 -3
  53. package/dist/cjs/utils/micro-frontend/types.js +1 -0
  54. package/dist/cjs/utils/redact-pii.js +9 -2
  55. package/dist/cjs/utils/service-worker.js +4 -2
  56. package/dist/cjs/utils/session.js +15 -4
  57. package/dist/cjs/utils/storybook/cjs/main.js +1 -0
  58. package/dist/cjs/utils/storybook/cjs/middleware.js +1 -0
  59. package/dist/cjs/utils/storybook/cjs/vite.js +1 -0
  60. package/dist/cjs/utils/storybook/cjs/webpack.js +2 -4
  61. package/dist/cjs/utils/storybook/manager.js +1 -0
  62. package/dist/cjs/utils/storybook/preview.js +2 -1
  63. package/dist/cjs/utils/storybook/theme.js +10 -39
  64. package/dist/cjs/utils/testing/index.js +7 -22
  65. package/dist/cjs/utils/testing/render-with-redux.js +7 -24
  66. package/dist/cjs/utils/testing/render-with-router-redux.js +12 -26
  67. package/dist/cjs/utils/testing/render-with-router.js +9 -26
  68. package/dist/cjs/utils/testing/render-with-state-addons.js +15 -45
  69. package/dist/cjs/utils/types.js +1 -0
  70. package/dist/cjs/utils/url.js +1 -0
  71. package/dist/cjs/utils/web-storage.js +5 -1
  72. package/dist/cjs/utils/window.js +9 -2
  73. package/dist/cjs/view/app-root/hosted-app.js +14 -3
  74. package/dist/cjs/view/app-root/index.js +28 -31
  75. package/dist/cjs/view/app-root/stand-alone-app.js +18 -3
  76. package/dist/cjs/view/app-root/style.js +1 -0
  77. package/dist/cjs/view/app-router.js +7 -37
  78. package/dist/cjs/view/breakpoint/use-breakpoint.js +10 -5
  79. package/dist/cjs/view/breakpoint/use-media-query-list.js +4 -1
  80. package/dist/cjs/view/error-boundary/default-error-template.js +12 -5
  81. package/dist/cjs/view/error-boundary/index.js +10 -21
  82. package/dist/cjs/view/error-toast/index.js +11 -23
  83. package/dist/cjs/view/fetch-host-app-data/index.js +5 -1
  84. package/dist/cjs/view/fetch-host-app-data/store.js +2 -15
  85. package/dist/cjs/view/fields/autocomplete/index.js +47 -0
  86. package/dist/cjs/view/fields/check-box/index.js +11 -46
  87. package/dist/cjs/view/fields/combo-box/index.js +19 -57
  88. package/dist/cjs/view/fields/combo-box-v3/index.js +42 -0
  89. package/dist/cjs/view/fields/connect-form.js +4 -15
  90. package/dist/cjs/view/fields/date-input/index.js +16 -47
  91. package/dist/cjs/view/fields/date-picker/index.js +20 -45
  92. package/dist/cjs/view/fields/date-range-picker/index.js +29 -61
  93. package/dist/cjs/view/fields/date-time-picker/index.js +18 -56
  94. package/dist/cjs/view/fields/form-item-layout/index.js +10 -38
  95. package/dist/cjs/view/fields/form-layout-block-item/index.js +14 -44
  96. package/dist/cjs/view/fields/input-mask/index.js +28 -47
  97. package/dist/cjs/view/fields/input-text/index.js +16 -47
  98. package/dist/cjs/view/fields/large-text-box/index.js +16 -47
  99. package/dist/cjs/view/fields/radio/index.js +18 -56
  100. package/dist/cjs/view/fields/radio-group/index.js +11 -46
  101. package/dist/cjs/view/fields/text-box/index.js +16 -47
  102. package/dist/cjs/view/fields/toggle/index.js +19 -57
  103. package/dist/cjs/view/fields/watch-value.js +26 -3
  104. package/dist/cjs/view/form/index.js +14 -19
  105. package/dist/cjs/view/form/personal-info-section.js +55 -47
  106. package/dist/cjs/view/form/submit-button/index.js +6 -37
  107. package/dist/cjs/view/guest-unload-handlers/index.js +1 -0
  108. package/dist/cjs/view/host-binding-events/index.js +1 -0
  109. package/dist/cjs/view/live-message/index.js +3 -5
  110. package/dist/cjs/view/loadable/index.js +9 -22
  111. package/dist/cjs/view/login/index.js +15 -3
  112. package/dist/cjs/view/message-to-host-app/index.js +1 -0
  113. package/dist/cjs/view/micro-app/app-factory/index.js +11 -21
  114. package/dist/cjs/view/micro-app/const.js +1 -0
  115. package/dist/cjs/view/micro-app/index.js +7 -3
  116. package/dist/cjs/view/micro-app/resources/manifest.js +11 -3
  117. package/dist/cjs/view/micro-app/resources/script.js +8 -2
  118. package/dist/cjs/view/micro-app/resources/style.js +8 -2
  119. package/dist/cjs/view/micro-app/types.js +1 -0
  120. package/dist/cjs/view/micro-app/use-app-will-render.js +38 -44
  121. package/dist/cjs/view/micro-app/utils.js +1 -0
  122. package/dist/cjs/view/micro-iframe-app/app.js +24 -47
  123. package/dist/cjs/view/micro-iframe-app/iframe/const.js +1 -0
  124. package/dist/cjs/view/micro-iframe-app/iframe/index.js +23 -32
  125. package/dist/cjs/view/micro-iframe-app/index.js +6 -37
  126. package/dist/cjs/view/micro-iframe-app/types.js +1 -0
  127. package/dist/cjs/view/micro-iframe-app/use-frame-loaded.js +1 -0
  128. package/dist/cjs/view/modals/error/index.js +22 -12
  129. package/dist/cjs/view/modals/navigation-prompt/index.js +47 -27
  130. package/dist/cjs/view/modals/session-expiry/customHooks.js +7 -2
  131. package/dist/cjs/view/modals/session-expiry/index.js +58 -35
  132. package/dist/cjs/view/modals/wait-message/index.js +26 -58
  133. package/dist/cjs/view/modals/wait-message/use-html-wait-message.js +1 -0
  134. package/dist/cjs/view/modals/wait-message/wait-message-launcher.js +1 -0
  135. package/dist/cjs/view/page.js +16 -3
  136. package/dist/cjs/view/render-with-delay/index.js +5 -5
  137. package/dist/cjs/view/render-with-host-data/index.js +3 -5
  138. package/dist/cjs/view/require-auth.js +22 -9
  139. package/dist/cjs/view/session-timeout/index.js +16 -14
  140. package/dist/cjs/view/storybook/decorator.js +6 -7
  141. package/dist/cjs/view/use-previous.js +1 -0
  142. package/dist/cjs/view/use-window-size-change.js +1 -0
  143. package/dist/cjs/view/visually-hidden/index.js +12 -19
  144. package/dist/esm/analytics/appdynamics.js +1 -17
  145. package/dist/esm/analytics/index.js +1 -17
  146. package/dist/esm/analytics/web-analytics.js +1 -17
  147. package/dist/esm/api/auth/index.js +8 -2
  148. package/dist/esm/api/helpers.js +7 -1
  149. package/dist/esm/api/users/index.js +3 -1
  150. package/dist/esm/communication/http-client/index.js +9 -44
  151. package/dist/esm/data/auth/reducer.js +10 -7
  152. package/dist/esm/data/index.js +6 -1
  153. package/dist/esm/data/reducers.js +4 -19
  154. package/dist/esm/data/store.js +6 -1
  155. package/dist/esm/index.js +14 -1
  156. package/dist/esm/sideeffect/auth/index.js +6 -23
  157. package/dist/esm/sideeffect/error-toast/index.js +6 -22
  158. package/dist/esm/sideeffect/wait-message/index.js +12 -25
  159. package/dist/esm/utils/app-config/index.js +7 -3
  160. package/dist/esm/utils/auth/index.js +12 -27
  161. package/dist/esm/utils/helpers.js +1 -1
  162. package/dist/esm/utils/micro-frontend/guest.js +5 -2
  163. package/dist/esm/utils/micro-frontend/host.js +9 -3
  164. package/dist/esm/utils/micro-frontend/index.js +23 -9
  165. package/dist/esm/utils/micro-frontend/ssfguest-adapter.js +6 -2
  166. package/dist/esm/utils/redact-pii.js +8 -2
  167. package/dist/esm/utils/service-worker.js +3 -2
  168. package/dist/esm/utils/session.js +14 -4
  169. package/dist/esm/utils/storybook/preview.js +1 -1
  170. package/dist/esm/utils/storybook/theme.js +9 -41
  171. package/dist/esm/utils/testing/index.js +6 -21
  172. package/dist/esm/utils/testing/render-with-redux.js +6 -23
  173. package/dist/esm/utils/testing/render-with-router-redux.js +11 -25
  174. package/dist/esm/utils/testing/render-with-router.js +8 -25
  175. package/dist/esm/utils/testing/render-with-state-addons.js +14 -44
  176. package/dist/esm/utils/window.js +8 -2
  177. package/dist/esm/view/app-root/hosted-app.js +9 -2
  178. package/dist/esm/view/app-root/index.js +27 -30
  179. package/dist/esm/view/app-root/stand-alone-app.js +13 -2
  180. package/dist/esm/view/app-router.js +6 -36
  181. package/dist/esm/view/breakpoint/use-breakpoint.js +9 -5
  182. package/dist/esm/view/breakpoint/use-media-query-list.js +3 -1
  183. package/dist/esm/view/error-boundary/default-error-template.js +11 -2
  184. package/dist/esm/view/error-boundary/index.js +5 -22
  185. package/dist/esm/view/error-toast/index.js +10 -22
  186. package/dist/esm/view/fetch-host-app-data/store.js +1 -17
  187. package/dist/esm/view/fields/autocomplete/index.js +27 -0
  188. package/dist/esm/view/fields/check-box/index.js +10 -45
  189. package/dist/esm/view/fields/combo-box/index.js +18 -56
  190. package/dist/esm/view/fields/combo-box-v3/index.js +24 -0
  191. package/dist/esm/view/fields/connect-form.js +3 -17
  192. package/dist/esm/view/fields/date-input/index.js +15 -46
  193. package/dist/esm/view/fields/date-picker/index.js +15 -46
  194. package/dist/esm/view/fields/date-range-picker/index.js +28 -60
  195. package/dist/esm/view/fields/date-time-picker/index.js +17 -55
  196. package/dist/esm/view/fields/form-item-layout/index.js +9 -37
  197. package/dist/esm/view/fields/form-layout-block-item/index.js +13 -43
  198. package/dist/esm/view/fields/input-mask/index.js +27 -46
  199. package/dist/esm/view/fields/input-text/index.js +15 -46
  200. package/dist/esm/view/fields/large-text-box/index.js +15 -46
  201. package/dist/esm/view/fields/radio/index.js +17 -55
  202. package/dist/esm/view/fields/radio-group/index.js +10 -45
  203. package/dist/esm/view/fields/text-box/index.js +15 -46
  204. package/dist/esm/view/fields/toggle/index.js +18 -56
  205. package/dist/esm/view/fields/watch-value.js +21 -2
  206. package/dist/esm/view/form/index.js +9 -20
  207. package/dist/esm/view/form/personal-info-section.js +50 -46
  208. package/dist/esm/view/form/submit-button/index.js +5 -36
  209. package/dist/esm/view/live-message/index.js +2 -2
  210. package/dist/esm/view/loadable/index.js +8 -21
  211. package/dist/esm/view/login/index.js +15 -4
  212. package/dist/esm/view/micro-app/app-factory/index.js +10 -23
  213. package/dist/esm/view/micro-app/index.js +2 -2
  214. package/dist/esm/view/micro-app/resources/manifest.js +10 -3
  215. package/dist/esm/view/micro-app/resources/script.js +7 -2
  216. package/dist/esm/view/micro-app/resources/style.js +7 -2
  217. package/dist/esm/view/micro-app/use-app-will-render.js +37 -46
  218. package/dist/esm/view/micro-iframe-app/app.js +19 -48
  219. package/dist/esm/view/micro-iframe-app/iframe/index.js +18 -33
  220. package/dist/esm/view/micro-iframe-app/index.js +5 -36
  221. package/dist/esm/view/modals/error/index.js +21 -9
  222. package/dist/esm/view/modals/navigation-prompt/index.js +46 -24
  223. package/dist/esm/view/modals/session-expiry/customHooks.js +6 -2
  224. package/dist/esm/view/modals/session-expiry/index.js +57 -32
  225. package/dist/esm/view/modals/wait-message/index.js +25 -57
  226. package/dist/esm/view/page.js +11 -2
  227. package/dist/esm/view/render-with-delay/index.js +4 -2
  228. package/dist/esm/view/render-with-host-data/index.js +2 -2
  229. package/dist/esm/view/require-auth.js +18 -9
  230. package/dist/esm/view/session-timeout/index.js +15 -11
  231. package/dist/esm/view/storybook/decorator.js +5 -4
  232. package/dist/esm/view/visually-hidden/index.js +7 -20
  233. package/dist/types/__mocks__/@elliemae/em-ssf-guest.d.ts +6 -0
  234. package/dist/types/{analytics → lib/analytics}/appdynamics.d.ts +0 -0
  235. package/dist/types/{analytics → lib/analytics}/index.d.ts +0 -0
  236. package/dist/types/{analytics → lib/analytics}/page-view-event.d.ts +0 -0
  237. package/dist/types/{analytics → lib/analytics}/user-session-event.d.ts +0 -0
  238. package/dist/types/{analytics → lib/analytics}/user-wait-event.d.ts +0 -0
  239. package/dist/types/{analytics → lib/analytics}/web-analytics.d.ts +0 -0
  240. package/dist/types/{api → lib/api}/auth/index.d.ts +0 -0
  241. package/dist/types/{api → lib/api}/helpers.d.ts +0 -0
  242. package/dist/types/{api → lib/api}/users/index.d.ts +0 -0
  243. package/dist/types/{api → lib/api}/users/index.endpoint.d.ts +0 -0
  244. package/dist/types/{communication → lib/communication}/http-client/index.d.ts +0 -0
  245. package/dist/types/{communication → lib/communication}/http-client/request-interceptor.d.ts +0 -0
  246. package/dist/types/{communication → lib/communication}/http-client/response-interceptor.d.ts +0 -0
  247. package/dist/types/{communication → lib/communication}/http-client/retry-axios.d.ts +0 -0
  248. package/dist/types/{communication → lib/communication}/http-client/retry.d.ts +0 -0
  249. package/dist/types/{communication → lib/communication}/http-client/tests/hello.endpoint.d.ts +0 -0
  250. package/dist/types/{communication → lib/communication}/http-client/tests/index.test.d.ts +0 -0
  251. package/dist/types/{communication → lib/communication}/http-client/tests/private.endpoint.d.ts +0 -0
  252. package/dist/types/{data → lib/data}/auth/actions.d.ts +0 -0
  253. package/dist/types/{data → lib/data}/auth/reducer.d.ts +0 -0
  254. package/dist/types/{data → lib/data}/breakpoint/index.d.ts +0 -0
  255. package/dist/types/{data → lib/data}/error/index.d.ts +0 -0
  256. package/dist/types/{data → lib/data}/index.d.ts +1 -1
  257. package/dist/types/{data → lib/data}/live-message/index.d.ts +0 -0
  258. package/dist/types/{data → lib/data}/logout/actions.d.ts +0 -0
  259. package/dist/types/{data → lib/data}/navigation-prompt/actions.d.ts +0 -0
  260. package/dist/types/{data → lib/data}/react-redux.d.ts +0 -0
  261. package/dist/types/{data → lib/data}/reducers.d.ts +0 -0
  262. package/dist/types/{data → lib/data}/saga.d.ts +0 -0
  263. package/dist/types/{data → lib/data}/store.d.ts +1 -1
  264. package/dist/types/{data → lib/data}/tests/store.test.d.ts +0 -0
  265. package/dist/types/{data → lib/data}/wait-message/actions.d.ts +0 -0
  266. package/dist/types/{data → lib/data}/wait-message/reducer.d.ts +0 -0
  267. package/dist/types/{data → lib/data}/webpack-hmr.d.ts +0 -0
  268. package/dist/types/{index.d.ts → lib/index.d.ts} +5 -2
  269. package/dist/types/{micro-frontend.d.ts → lib/micro-frontend.d.ts} +0 -0
  270. package/dist/types/{sideeffect → lib/sideeffect}/auth/index.d.ts +0 -0
  271. package/dist/types/{sideeffect → lib/sideeffect}/error-toast/index.d.ts +0 -0
  272. package/dist/types/{sideeffect → lib/sideeffect}/wait-message/index.d.ts +0 -0
  273. package/dist/types/{utils → lib/utils}/app-config/config.d.ts +0 -0
  274. package/dist/types/lib/utils/app-config/index.d.ts +1 -0
  275. package/dist/types/{utils → lib/utils}/app-host-integration/react.d.ts +0 -0
  276. package/dist/types/{utils → lib/utils}/auth/helper.d.ts +0 -0
  277. package/dist/types/{utils → lib/utils}/auth/index.d.ts +3 -1
  278. package/dist/types/{utils → lib/utils}/await.d.ts +0 -0
  279. package/dist/types/{utils → lib/utils}/constants.d.ts +0 -0
  280. package/dist/types/{utils → lib/utils}/font-size.d.ts +0 -0
  281. package/dist/types/{utils → lib/utils}/guest-with-service.d.ts +0 -0
  282. package/dist/types/{utils → lib/utils}/helpers.d.ts +0 -0
  283. package/dist/types/{utils → lib/utils}/history.d.ts +0 -0
  284. package/dist/types/{utils → lib/utils}/log-records.d.ts +0 -0
  285. package/dist/types/{utils → lib/utils}/micro-frontend/console-logger.d.ts +0 -0
  286. package/dist/types/{utils → lib/utils}/micro-frontend/guest.d.ts +0 -0
  287. package/dist/types/{utils → lib/utils}/micro-frontend/host.d.ts +3 -3
  288. package/dist/types/{utils → lib/utils}/micro-frontend/index.d.ts +0 -0
  289. package/dist/types/{utils → lib/utils}/micro-frontend/ssfguest-adapter.d.ts +2 -2
  290. package/dist/types/lib/utils/micro-frontend/tests/guest-ssf-host.test.d.ts +1 -0
  291. package/dist/types/lib/utils/micro-frontend/tests/guest.test.d.ts +1 -0
  292. package/dist/types/{utils → lib/utils}/micro-frontend/types.d.ts +0 -0
  293. package/dist/types/{utils → lib/utils}/redact-pii.d.ts +0 -0
  294. package/dist/types/{utils → lib/utils}/service-worker.d.ts +0 -0
  295. package/dist/types/{utils → lib/utils}/session.d.ts +0 -0
  296. package/dist/types/{utils → lib/utils}/storybook/cjs/main.d.ts +0 -0
  297. package/dist/types/{utils → lib/utils}/storybook/cjs/middleware.d.ts +0 -0
  298. package/dist/types/{utils → lib/utils}/storybook/cjs/vite.d.ts +0 -0
  299. package/dist/types/{utils → lib/utils}/storybook/cjs/webpack.d.ts +0 -0
  300. package/dist/types/{utils → lib/utils}/storybook/manager.d.ts +0 -0
  301. package/dist/types/{utils → lib/utils}/storybook/preview.d.ts +0 -0
  302. package/dist/types/{utils → lib/utils}/storybook/theme.d.ts +0 -0
  303. package/dist/types/lib/utils/testing/index.d.ts +4 -0
  304. package/dist/types/{utils → lib/utils}/testing/render-with-redux.d.ts +0 -0
  305. package/dist/types/{utils → lib/utils}/testing/render-with-router-redux.d.ts +0 -0
  306. package/dist/types/{utils → lib/utils}/testing/render-with-router.d.ts +0 -0
  307. package/dist/types/{utils → lib/utils}/testing/render-with-state-addons.d.ts +0 -0
  308. package/dist/types/{utils → lib/utils}/types.d.ts +0 -0
  309. package/dist/types/{utils → lib/utils}/url.d.ts +0 -0
  310. package/dist/types/{utils → lib/utils}/web-storage.d.ts +0 -0
  311. package/dist/types/{utils → lib/utils}/window.d.ts +0 -0
  312. package/dist/types/{view → lib/view}/app-root/hosted-app.d.ts +0 -0
  313. package/dist/types/{view → lib/view}/app-root/index.d.ts +2 -1
  314. package/dist/types/{view → lib/view}/app-root/stand-alone-app.d.ts +0 -0
  315. package/dist/types/{view → lib/view}/app-root/style.d.ts +0 -0
  316. package/dist/types/{view → lib/view}/app-router.d.ts +1 -1
  317. package/dist/types/{view → lib/view}/breakpoint/index.stories.d.ts +0 -0
  318. package/dist/types/{view → lib/view}/breakpoint/use-breakpoint.d.ts +0 -0
  319. package/dist/types/{view → lib/view}/breakpoint/use-media-query-list.d.ts +0 -0
  320. package/dist/types/{view → lib/view}/error-boundary/default-error-template.d.ts +0 -0
  321. package/dist/types/{view → lib/view}/error-boundary/index.d.ts +0 -0
  322. package/dist/types/{view → lib/view}/error-toast/index.d.ts +0 -0
  323. package/dist/types/{view → lib/view}/error-toast/index.stories.d.ts +0 -0
  324. package/dist/types/{view → lib/view}/fetch-host-app-data/index.d.ts +0 -0
  325. package/dist/types/{view → lib/view}/fetch-host-app-data/store.d.ts +0 -0
  326. package/dist/types/lib/view/fields/autocomplete/index.d.ts +13 -0
  327. package/dist/types/lib/view/fields/autocomplete/index.stories.d.ts +5 -0
  328. package/dist/types/{view → lib/view}/fields/check-box/index.d.ts +0 -0
  329. package/dist/types/{view → lib/view}/fields/check-box/index.stories.d.ts +0 -0
  330. package/dist/types/{view → lib/view}/fields/check-box/set-value.stories.d.ts +0 -0
  331. package/dist/types/{view → lib/view}/fields/combo-box/index.d.ts +0 -0
  332. package/dist/types/{view → lib/view}/fields/combo-box/index.stories.d.ts +0 -0
  333. package/dist/types/lib/view/fields/combo-box-v3/index.d.ts +9 -0
  334. package/dist/types/lib/view/fields/combo-box-v3/index.stories.d.ts +5 -0
  335. package/dist/types/{view → lib/view}/fields/connect-form.d.ts +0 -0
  336. package/dist/types/{view → lib/view}/fields/date-input/index.d.ts +0 -0
  337. package/dist/types/{view → lib/view}/fields/date-input/index.stories.d.ts +0 -0
  338. package/dist/types/{view → lib/view}/fields/date-picker/index.d.ts +0 -0
  339. package/dist/types/{view → lib/view}/fields/date-picker/index.stories.d.ts +0 -0
  340. package/dist/types/{view → lib/view}/fields/date-range-picker/index.d.ts +0 -0
  341. package/dist/types/{view → lib/view}/fields/date-range-picker/index.stories.d.ts +0 -0
  342. package/dist/types/{view → lib/view}/fields/date-time-picker/index.d.ts +0 -0
  343. package/dist/types/{view → lib/view}/fields/date-time-picker/index.stories.d.ts +0 -0
  344. package/dist/types/{view → lib/view}/fields/form-item-layout/index.d.ts +0 -0
  345. package/dist/types/{view → lib/view}/fields/form-item-layout/index.stories.d.ts +0 -0
  346. package/dist/types/{view → lib/view}/fields/form-layout-block-item/index.d.ts +0 -0
  347. package/dist/types/{view → lib/view}/fields/form-layout-block-item/index.stories.d.ts +0 -0
  348. package/dist/types/{view → lib/view}/fields/input-mask/index.d.ts +3 -1
  349. package/dist/types/{view → lib/view}/fields/input-mask/index.stories.d.ts +0 -0
  350. package/dist/types/{view → lib/view}/fields/input-text/index.d.ts +0 -0
  351. package/dist/types/{view → lib/view}/fields/input-text/index.stories.d.ts +0 -0
  352. package/dist/types/{view → lib/view}/fields/large-text-box/index.d.ts +0 -0
  353. package/dist/types/{view → lib/view}/fields/large-text-box/index.stories.d.ts +0 -0
  354. package/dist/types/{view → lib/view}/fields/radio/index.d.ts +0 -0
  355. package/dist/types/{view → lib/view}/fields/radio/index.stories.d.ts +0 -0
  356. package/dist/types/{view → lib/view}/fields/radio/set-value.stories.d.ts +0 -0
  357. package/dist/types/{view → lib/view}/fields/radio-group/index.d.ts +0 -0
  358. package/dist/types/{view → lib/view}/fields/radio-group/index.stories.d.ts +0 -0
  359. package/dist/types/{view → lib/view}/fields/text-box/index.d.ts +0 -0
  360. package/dist/types/{view → lib/view}/fields/text-box/index.stories.d.ts +0 -0
  361. package/dist/types/{view → lib/view}/fields/toggle/index.d.ts +0 -0
  362. package/dist/types/{view → lib/view}/fields/toggle/index.stories.d.ts +0 -0
  363. package/dist/types/{view → lib/view}/fields/watch-value.d.ts +0 -0
  364. package/dist/types/{view → lib/view}/form/index.d.ts +0 -0
  365. package/dist/types/{view → lib/view}/form/index.stories.d.ts +0 -0
  366. package/dist/types/{view → lib/view}/form/personal-info-section.d.ts +0 -0
  367. package/dist/types/{view → lib/view}/form/submit-button/index.d.ts +0 -0
  368. package/dist/types/{view → lib/view}/form/usecases.stories.d.ts +0 -0
  369. package/dist/types/{view → lib/view}/guest-unload-handlers/index.d.ts +0 -0
  370. package/dist/types/{view → lib/view}/host-binding-events/index.d.ts +0 -0
  371. package/dist/types/{view → lib/view}/live-message/index.d.ts +0 -0
  372. package/dist/types/{view → lib/view}/live-message/index.stories.d.ts +0 -0
  373. package/dist/types/{view → lib/view}/loadable/index.d.ts +0 -0
  374. package/dist/types/lib/view/login/index.d.ts +9 -0
  375. package/dist/types/{view → lib/view}/message-to-host-app/index.d.ts +0 -0
  376. package/dist/types/{view → lib/view}/micro-app/app-factory/index.d.ts +0 -0
  377. package/dist/types/{view → lib/view}/micro-app/const.d.ts +0 -0
  378. package/dist/types/{view → lib/view}/micro-app/index.d.ts +0 -0
  379. package/dist/types/{view → lib/view}/micro-app/resources/manifest.d.ts +0 -0
  380. package/dist/types/{view → lib/view}/micro-app/resources/script.d.ts +0 -0
  381. package/dist/types/{view → lib/view}/micro-app/resources/style.d.ts +0 -0
  382. package/dist/types/{view → lib/view}/micro-app/types.d.ts +0 -0
  383. package/dist/types/{view → lib/view}/micro-app/use-app-will-render.d.ts +0 -0
  384. package/dist/types/{view → lib/view}/micro-app/utils.d.ts +0 -0
  385. package/dist/types/{view → lib/view}/micro-iframe-app/app.d.ts +0 -0
  386. package/dist/types/{view → lib/view}/micro-iframe-app/iframe/const.d.ts +0 -0
  387. package/dist/types/{view → lib/view}/micro-iframe-app/iframe/index.d.ts +0 -0
  388. package/dist/types/{view → lib/view}/micro-iframe-app/index.d.ts +0 -0
  389. package/dist/types/{view → lib/view}/micro-iframe-app/types.d.ts +0 -0
  390. package/dist/types/{view → lib/view}/micro-iframe-app/use-frame-loaded.d.ts +0 -0
  391. package/dist/types/{view → lib/view}/modals/error/index.d.ts +0 -0
  392. package/dist/types/{view → lib/view}/modals/error/index.stories.d.ts +0 -0
  393. package/dist/types/{view → lib/view}/modals/navigation-prompt/index.d.ts +1 -1
  394. package/dist/types/{view → lib/view}/modals/navigation-prompt/index.stories.d.ts +0 -0
  395. package/dist/types/{view → lib/view}/modals/session-expiry/customHooks.d.ts +0 -0
  396. package/dist/types/{view → lib/view}/modals/session-expiry/index.d.ts +0 -0
  397. package/dist/types/{view → lib/view}/modals/session-expiry/index.stories.d.ts +0 -0
  398. package/dist/types/{view → lib/view}/modals/wait-message/index.d.ts +0 -0
  399. package/dist/types/{view → lib/view}/modals/wait-message/index.stories.d.ts +0 -0
  400. package/dist/types/{view → lib/view}/modals/wait-message/use-html-wait-message.d.ts +0 -0
  401. package/dist/types/{view → lib/view}/modals/wait-message/wait-message-launcher.d.ts +0 -0
  402. package/dist/types/{view → lib/view}/page.d.ts +0 -0
  403. package/dist/types/{view → lib/view}/render-with-delay/index.d.ts +0 -0
  404. package/dist/types/{view → lib/view}/render-with-host-data/index.d.ts +0 -0
  405. package/dist/types/{view → lib/view}/require-auth.d.ts +0 -0
  406. package/dist/types/{view → lib/view}/session-timeout/index.d.ts +0 -0
  407. package/dist/types/{view → lib/view}/session-timeout/index.stories.d.ts +0 -0
  408. package/dist/types/{view → lib/view}/storybook/decorator.d.ts +0 -0
  409. package/dist/types/{view → lib/view}/use-previous.d.ts +0 -0
  410. package/dist/types/{view → lib/view}/use-window-size-change.d.ts +0 -0
  411. package/dist/types/{view → lib/view}/visually-hidden/index.d.ts +0 -0
  412. package/package.json +55 -50
  413. package/dist/types/utils/app-config/index.d.ts +0 -1
  414. package/dist/types/utils/testing/index.d.ts +0 -4
  415. package/dist/types/view/login/index.d.ts +0 -7
@@ -1,40 +1,8 @@
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";
1
+ import { createElement } from "react";
33
2
  import { useEffect, useState, memo } from "react";
34
3
  import { usePrevious } from "../use-previous.js";
35
4
  import { App } from "./app.js";
36
- const MicroIFrameApp = memo((_a) => {
37
- var _b = _a, { entityId = null } = _b, rest = __objRest(_b, ["entityId"]);
5
+ const MicroIFrameApp = memo(({ entityId = null, ...rest }) => {
38
6
  const [disposePrevApp, setDisposePrevApp] = useState(false);
39
7
  const [appKey, setAppKey] = useState(Date.now());
40
8
  const prevEntityId = usePrevious(entityId);
@@ -43,14 +11,15 @@ const MicroIFrameApp = memo((_a) => {
43
11
  setDisposePrevApp(true);
44
12
  }
45
13
  }, [entityId]);
46
- return /* @__PURE__ */ React.createElement(App, __spreadProps(__spreadValues({}, rest), {
14
+ return /* @__PURE__ */ createElement(App, {
15
+ ...rest,
47
16
  key: appKey,
48
17
  dispose: disposePrevApp,
49
18
  onUnloadComplete: () => {
50
19
  setAppKey(Date.now());
51
20
  setDisposePrevApp(false);
52
21
  }
53
- }));
22
+ });
54
23
  });
55
24
  export {
56
25
  MicroIFrameApp
@@ -1,4 +1,4 @@
1
- import * as React from "react";
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { useState, useCallback } from "react";
3
3
  import {
4
4
  DSDialog,
@@ -17,16 +17,28 @@ const Error = ({
17
17
  const handleClick = useCallback(() => {
18
18
  setOpen((prev) => !prev);
19
19
  }, []);
20
- return /* @__PURE__ */ React.createElement(DSDialog, {
20
+ return /* @__PURE__ */ jsx(DSDialog, {
21
21
  isOpen,
22
22
  onClickOutside: handleClick,
23
- size: "small"
24
- }, /* @__PURE__ */ React.createElement(DSDialogBody, {
25
- p: "s"
26
- }, /* @__PURE__ */ React.createElement(DSDialogDefaultLayout, null, /* @__PURE__ */ React.createElement(ErrorHexegon, {
27
- size: "xxl",
28
- color: ["danger", "900"]
29
- }), /* @__PURE__ */ React.createElement(DSDialogPrimaryMessage, null, primaryMessage), secondaryMessage && /* @__PURE__ */ React.createElement(DSDialogSecondaryMessage, null, secondaryMessage))));
23
+ size: "small",
24
+ children: /* @__PURE__ */ jsx(DSDialogBody, {
25
+ p: "s",
26
+ children: /* @__PURE__ */ jsxs(DSDialogDefaultLayout, {
27
+ children: [
28
+ /* @__PURE__ */ jsx(ErrorHexegon, {
29
+ size: "xxl",
30
+ color: ["danger", "900"]
31
+ }),
32
+ /* @__PURE__ */ jsx(DSDialogPrimaryMessage, {
33
+ children: primaryMessage
34
+ }),
35
+ secondaryMessage && /* @__PURE__ */ jsx(DSDialogSecondaryMessage, {
36
+ children: secondaryMessage
37
+ })
38
+ ]
39
+ })
40
+ })
41
+ });
30
42
  };
31
43
  export {
32
44
  Error
@@ -1,4 +1,4 @@
1
- import * as React from "react";
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { memo } from "react";
3
3
  import { Close } from "@elliemae/ds-icons";
4
4
  import { DSButtonV2 } from "@elliemae/ds-button";
@@ -12,29 +12,51 @@ import {
12
12
  } from "@elliemae/ds-dialog";
13
13
  import { useAppDispatch } from "../../../data/react-redux.js";
14
14
  import { navigationPrompt } from "../../../data/navigation-prompt/actions.js";
15
- const NavigationPrompt = memo(({ open }) => {
16
- const dispatch = useAppDispatch();
17
- const cancelDialog = () => dispatch(navigationPrompt.cancel());
18
- const confirmDialog = () => dispatch(navigationPrompt.confirm());
19
- return /* @__PURE__ */ React.createElement(DSDialog, {
20
- isOpen: open,
21
- onClickOutside: cancelDialog,
22
- centered: true
23
- }, /* @__PURE__ */ React.createElement(DSDialogHeader, null, /* @__PURE__ */ React.createElement(DSDialogAddon, null, /* @__PURE__ */ React.createElement(DSButtonV2, {
24
- buttonType: "icon",
25
- onClick: cancelDialog
26
- }, /* @__PURE__ */ React.createElement(Close, {
27
- color: ["neutral", "900"]
28
- })))), /* @__PURE__ */ React.createElement(DSDialogSeparator, null), /* @__PURE__ */ React.createElement(DSDialogBody, {
29
- px: 24,
30
- mb: 16
31
- }, "You currently have unsaved changes. Are you sure you want to proceed without saving?"), /* @__PURE__ */ React.createElement(DSDialogSeparator, null), /* @__PURE__ */ React.createElement(DSDialogFooter, null, /* @__PURE__ */ React.createElement(DSButtonV2, {
32
- buttonType: "outline",
33
- onClick: cancelDialog
34
- }, "Continue without saving"), /* @__PURE__ */ React.createElement(DSButtonV2, {
35
- onClick: confirmDialog
36
- }, "Save & Continue")));
37
- });
15
+ const NavigationPrompt = memo(
16
+ ({ open = false }) => {
17
+ const dispatch = useAppDispatch();
18
+ const cancelDialog = () => dispatch(navigationPrompt.cancel());
19
+ const confirmDialog = () => dispatch(navigationPrompt.confirm());
20
+ return /* @__PURE__ */ jsxs(DSDialog, {
21
+ isOpen: open,
22
+ onClickOutside: cancelDialog,
23
+ centered: true,
24
+ children: [
25
+ /* @__PURE__ */ jsx(DSDialogHeader, {
26
+ children: /* @__PURE__ */ jsx(DSDialogAddon, {
27
+ children: /* @__PURE__ */ jsx(DSButtonV2, {
28
+ buttonType: "icon",
29
+ onClick: cancelDialog,
30
+ children: /* @__PURE__ */ jsx(Close, {
31
+ color: ["neutral", "900"]
32
+ })
33
+ })
34
+ })
35
+ }),
36
+ /* @__PURE__ */ jsx(DSDialogSeparator, {}),
37
+ /* @__PURE__ */ jsx(DSDialogBody, {
38
+ px: 24,
39
+ mb: 16,
40
+ children: "You currently have unsaved changes. Are you sure you want to proceed without saving?"
41
+ }),
42
+ /* @__PURE__ */ jsx(DSDialogSeparator, {}),
43
+ /* @__PURE__ */ jsxs(DSDialogFooter, {
44
+ children: [
45
+ /* @__PURE__ */ jsx(DSButtonV2, {
46
+ buttonType: "outline",
47
+ onClick: cancelDialog,
48
+ children: "Continue without saving"
49
+ }),
50
+ /* @__PURE__ */ jsx(DSButtonV2, {
51
+ onClick: confirmDialog,
52
+ children: "Save & Continue"
53
+ })
54
+ ]
55
+ })
56
+ ]
57
+ });
58
+ }
59
+ );
38
60
  export {
39
61
  NavigationPrompt
40
62
  };
@@ -6,8 +6,12 @@ const useTrackSessionExpiry = (warningNotifiedAt) => {
6
6
  const [timeData, setTimeData] = useState();
7
7
  useEffect(() => {
8
8
  const timeLeftForExpiryAfterWarning = () => {
9
- const userWarnInterval = getAppConfigValue("sessionTimeoutWarnInterval");
10
- const userTimeoutInterval = getAppConfigValue("sessionTimeoutInterval");
9
+ const userWarnInterval = getAppConfigValue(
10
+ "sessionTimeoutWarnInterval"
11
+ );
12
+ const userTimeoutInterval = getAppConfigValue(
13
+ "sessionTimeoutInterval"
14
+ );
11
15
  const warnInterval = userWarnInterval ? parseFloat(userWarnInterval) : SESSION_TIMEOUT_INTERVAL.WARN;
12
16
  const sessionTimeout = userTimeoutInterval ? parseFloat(userTimeoutInterval) : SESSION_TIMEOUT_INTERVAL.EXPIRY;
13
17
  const diffTime = sessionTimeout - warnInterval;
@@ -1,4 +1,4 @@
1
- import * as React from "react";
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { memo, useEffect, useState } from "react";
3
3
  import { DSButtonV2 } from "@elliemae/ds-button";
4
4
  import { WarningCircle } from "@elliemae/ds-icons";
@@ -15,37 +15,62 @@ import { useAppDispatch } from "../../../data/react-redux.js";
15
15
  import { logout } from "../../../data/logout/actions.js";
16
16
  import { resetUserIdleTime } from "../../../utils/session.js";
17
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
- });
18
+ const SessionExpiry = memo(
19
+ ({ open, warningNotifiedAt = 0 }) => {
20
+ const [isOpen, setIsOpen] = useState(open);
21
+ const timeLeft = useTrackSessionExpiry(warningNotifiedAt);
22
+ const dispatch = useAppDispatch();
23
+ useEffect(() => {
24
+ setIsOpen(open);
25
+ }, [open]);
26
+ const resetSession = () => {
27
+ setIsOpen(false);
28
+ resetUserIdleTime(true);
29
+ dispatch(logout.cancel());
30
+ };
31
+ const logoutSession = () => {
32
+ setIsOpen(false);
33
+ dispatch(logout.confirm());
34
+ };
35
+ return timeLeft ? /* @__PURE__ */ jsxs(DSDialog, {
36
+ isOpen,
37
+ size: "small",
38
+ children: [
39
+ /* @__PURE__ */ jsx(DSDialogBody, {
40
+ p: "s",
41
+ children: /* @__PURE__ */ jsxs(DSDialogDefaultLayout, {
42
+ children: [
43
+ /* @__PURE__ */ jsx(WarningCircle, {
44
+ size: "xl",
45
+ color: ["warning", "900"]
46
+ }),
47
+ /* @__PURE__ */ jsx(DSDialogPrimaryMessage, {
48
+ children: `Your session will expire in ${timeLeft}`
49
+ }),
50
+ /* @__PURE__ */ jsx(DSDialogSecondaryMessage, {
51
+ children: "Please logout or reset your session"
52
+ })
53
+ ]
54
+ })
55
+ }),
56
+ /* @__PURE__ */ jsx(DSDialogSeparator, {}),
57
+ /* @__PURE__ */ jsxs(DSDialogFooter, {
58
+ children: [
59
+ /* @__PURE__ */ jsx(DSButtonV2, {
60
+ buttonType: "outline",
61
+ onClick: logoutSession,
62
+ children: "Logout"
63
+ }),
64
+ /* @__PURE__ */ jsx(DSButtonV2, {
65
+ onClick: resetSession,
66
+ children: "Reset"
67
+ })
68
+ ]
69
+ })
70
+ ]
71
+ }) : null;
72
+ }
73
+ );
49
74
  export {
50
75
  SessionExpiry
51
76
  };
@@ -1,35 +1,4 @@
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";
1
+ import { jsx } from "react/jsx-runtime";
33
2
  import { memo, useEffect } from "react";
34
3
  import { DSLoadingIndicator } from "@elliemae/ds-loading-indicator";
35
4
  import { useAppSelector } from "../../../data/react-redux.js";
@@ -38,32 +7,31 @@ import {
38
7
  waitStartEvent,
39
8
  waitEndEvent
40
9
  } from "../../../analytics/user-wait-event.js";
41
- const WaitMessage = memo((_a) => {
42
- var _b = _a, {
10
+ const WaitMessage = memo(
11
+ ({
43
12
  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
- });
13
+ style = { color: "white", fontSize: "1.25rem" },
14
+ ...rest
15
+ }) => {
16
+ const isOpen = useAppSelector((state) => state.waitMessage?.isOpen);
17
+ const message = useAppSelector((state) => state.waitMessage?.message);
18
+ useEffect(() => {
19
+ if (isOpen)
20
+ waitStartEvent();
21
+ else
22
+ waitEndEvent();
23
+ }, [isOpen]);
24
+ useHTMLWaitMessage(isOpen !== null);
25
+ return /* @__PURE__ */ jsx(DSLoadingIndicator, {
26
+ id: "em-loading",
27
+ size,
28
+ style,
29
+ ...rest,
30
+ loading: isOpen,
31
+ message
32
+ });
33
+ }
34
+ );
67
35
  export {
68
36
  WaitMessage
69
37
  };
@@ -1,4 +1,4 @@
1
- import * as React from "react";
1
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
2
2
  import { Helmet } from "react-helmet";
3
3
  import * as brum from "@elliemae/pui-user-monitoring";
4
4
  import { pageViewEvent } from "../analytics/page-view-event.js";
@@ -14,7 +14,16 @@ const onPageView = (pageTitle) => {
14
14
  };
15
15
  const Page = ({ pageTitle = "ICE", children }) => {
16
16
  onPageView(pageTitle);
17
- return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Helmet, null, /* @__PURE__ */ React.createElement("title", null, pageTitle)), children);
17
+ return /* @__PURE__ */ jsxs(Fragment, {
18
+ children: [
19
+ /* @__PURE__ */ jsx(Helmet, {
20
+ children: /* @__PURE__ */ jsx("title", {
21
+ children: pageTitle
22
+ })
23
+ }),
24
+ children
25
+ ]
26
+ });
18
27
  };
19
28
  export {
20
29
  Page,
@@ -1,4 +1,4 @@
1
- import * as React from "react";
1
+ import { Fragment, jsx } from "react/jsx-runtime";
2
2
  import { useEffect, useState, memo } from "react";
3
3
  const RenderWithDelay = memo(({ render }) => {
4
4
  const [show, showComponents] = useState(false);
@@ -8,7 +8,9 @@ const RenderWithDelay = memo(({ render }) => {
8
8
  clearTimeout(timeoutId);
9
9
  };
10
10
  }, []);
11
- return /* @__PURE__ */ React.createElement(React.Fragment, null, show ? render() : "");
11
+ return /* @__PURE__ */ jsx(Fragment, {
12
+ children: show ? render() : ""
13
+ });
12
14
  });
13
15
  export {
14
16
  RenderWithDelay
@@ -1,4 +1,4 @@
1
- import * as React from "react";
1
+ import { jsx } from "react/jsx-runtime";
2
2
  import { useState, useEffect } from "react";
3
3
  import { fetchHostAppData } from "../fetch-host-app-data/index.js";
4
4
  import { WaitMessageLauncher } from "../modals/wait-message/wait-message-launcher.js";
@@ -20,7 +20,7 @@ const renderWithHostData = (data) => {
20
20
  setLoading(false);
21
21
  }
22
22
  }, []);
23
- return loading ? /* @__PURE__ */ React.createElement(WaitMessageLauncher, null) : /* @__PURE__ */ React.createElement(ComponentToRender, null);
23
+ return loading ? /* @__PURE__ */ jsx(WaitMessageLauncher, {}) : /* @__PURE__ */ jsx(ComponentToRender, {});
24
24
  };
25
25
  return HostAppDataWrapper;
26
26
  };
@@ -1,5 +1,5 @@
1
- import * as React from "react";
2
- import { useInjectReducer, useInjectSaga } from "redux-injectors";
1
+ import { Fragment, jsx } from "react/jsx-runtime";
2
+ import { createManager } from "redux-injectors";
3
3
  import enums from "../utils/constants.js";
4
4
  import { authReducer } from "../data/auth/reducer.js";
5
5
  import { authentication } from "../sideeffect/auth/index.js";
@@ -12,16 +12,25 @@ const RequireAuth = ({
12
12
  scope = "loc",
13
13
  responseType = "code"
14
14
  }) => {
15
- useInjectReducer({ key, reducer: authReducer });
16
- useInjectSaga({ key, saga: authentication });
15
+ const AuthManager = createManager({
16
+ name: "AuthManager",
17
+ key,
18
+ reducer: authReducer,
19
+ saga: authentication
20
+ });
17
21
  const userAuthorized = isUserAuthorized();
18
22
  if (userAuthorized) {
19
- return /* @__PURE__ */ React.createElement(React.Fragment, null, children);
23
+ return /* @__PURE__ */ jsx(Fragment, {
24
+ children
25
+ });
20
26
  }
21
- return /* @__PURE__ */ React.createElement(Login, {
22
- clientId,
23
- scope,
24
- responseType
27
+ return /* @__PURE__ */ jsx(AuthManager, {
28
+ children: /* @__PURE__ */ jsx(Login, {
29
+ clientId,
30
+ scope,
31
+ responseType,
32
+ children
33
+ })
25
34
  });
26
35
  };
27
36
  export {
@@ -1,4 +1,4 @@
1
- import * as React from "react";
1
+ import { jsx } from "react/jsx-runtime";
2
2
  import { useEffect, useState } from "react";
3
3
  import { useAppDispatch } from "../../data/react-redux.js";
4
4
  import { logout } from "../../data/logout/actions.js";
@@ -16,12 +16,14 @@ const SessionTimeout = () => {
16
16
  const [warningNotifiedAt, setwarningNotifiedAt] = useState();
17
17
  useEffect(() => {
18
18
  initSessionMonitoring();
19
- const warningCb = subscribeToSessionExpiryWarning((sessionExpiryWarningNotifiedAt) => {
20
- if (!sessionExpiryWarningNotifiedAt)
21
- return;
22
- setwarningNotifiedAt(sessionExpiryWarningNotifiedAt);
23
- setSessionExpiryWarning(true);
24
- });
19
+ const warningCb = subscribeToSessionExpiryWarning(
20
+ (sessionExpiryWarningNotifiedAt) => {
21
+ if (!sessionExpiryWarningNotifiedAt)
22
+ return;
23
+ setwarningNotifiedAt(sessionExpiryWarningNotifiedAt);
24
+ setSessionExpiryWarning(true);
25
+ }
26
+ );
25
27
  const resetCb = subscribeToResetSession((resetWarningModal) => {
26
28
  if (resetWarningModal === true) {
27
29
  setSessionExpiryWarning(false);
@@ -38,10 +40,12 @@ const SessionTimeout = () => {
38
40
  stopSessionMonitoring();
39
41
  };
40
42
  }, [dispatch]);
41
- return /* @__PURE__ */ React.createElement("div", null, showSessionExpiryWarning && /* @__PURE__ */ React.createElement(SessionExpiry, {
42
- open: true,
43
- warningNotifiedAt
44
- }));
43
+ return /* @__PURE__ */ jsx("div", {
44
+ children: showSessionExpiryWarning && /* @__PURE__ */ jsx(SessionExpiry, {
45
+ open: true,
46
+ warningNotifiedAt
47
+ })
48
+ });
45
49
  };
46
50
  export {
47
51
  SessionTimeout
@@ -1,11 +1,12 @@
1
- import * as React from "react";
1
+ import { jsx } from "react/jsx-runtime";
2
2
  import { browserHistory } from "../../utils/history.js";
3
3
  import { AppRoot } from "../app-root/index.js";
4
- const withAppDecorator = (theme, store, story) => /* @__PURE__ */ React.createElement(AppRoot, {
4
+ const withAppDecorator = (theme, store, story) => /* @__PURE__ */ jsx(AppRoot, {
5
5
  store,
6
6
  history: browserHistory,
7
- theme
8
- }, story());
7
+ theme,
8
+ children: story()
9
+ });
9
10
  export {
10
11
  withAppDecorator
11
12
  };
@@ -1,20 +1,4 @@
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";
1
+ import { jsx } from "react/jsx-runtime";
18
2
  import { forwardRef } from "react";
19
3
  import styled from "styled-components";
20
4
  const Span = styled.span`
@@ -29,9 +13,12 @@ const Span = styled.span`
29
13
  white-space: nowrap;
30
14
  word-wrap: normal;
31
15
  `;
32
- const VisuallyHidden = forwardRef((props, ref) => /* @__PURE__ */ React.createElement(Span, __spreadValues({
33
- ref
34
- }, props)));
16
+ const VisuallyHidden = forwardRef(
17
+ (props, ref) => /* @__PURE__ */ jsx(Span, {
18
+ ref,
19
+ ...props
20
+ })
21
+ );
35
22
  export {
36
23
  VisuallyHidden
37
24
  };
@@ -0,0 +1,6 @@
1
+ import { IAuth } from '@elliemae/pui-scripting-object';
2
+ declare const _default: {
3
+ connect: () => Promise<void>;
4
+ getObject: (objectId: string) => Promise<IAuth>;
5
+ };
6
+ export default _default;
File without changes
File without changes
File without changes