@elliemae/pui-app-sdk 2.17.0 → 3.0.0-beta.3

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 (342) hide show
  1. package/dist/cjs/analytics/appdynamics.js +34 -30
  2. package/dist/cjs/analytics/index.js +32 -26
  3. package/dist/cjs/analytics/page-view-event.js +42 -29
  4. package/dist/cjs/analytics/user-session-event.js +34 -27
  5. package/dist/cjs/analytics/user-wait-event.js +31 -17
  6. package/dist/cjs/analytics/web-analytics.js +16 -19
  7. package/dist/cjs/api/auth/index.js +41 -39
  8. package/dist/cjs/api/helpers.js +33 -99
  9. package/dist/cjs/api/users/index.js +28 -16
  10. package/dist/cjs/communication/http-client/index.js +44 -48
  11. package/dist/cjs/communication/http-client/request-interceptor.js +28 -12
  12. package/dist/cjs/communication/http-client/response-interceptor.js +41 -38
  13. package/dist/cjs/communication/http-client/retry-axios.js +68 -122
  14. package/dist/cjs/communication/http-client/retry.js +42 -36
  15. package/dist/cjs/communication/http-client/tests/index.test-disable.js +48 -56
  16. package/dist/cjs/data/auth/actions.js +17 -26
  17. package/dist/cjs/data/auth/reducer.js +30 -18
  18. package/dist/cjs/data/breakpoint/index.js +38 -32
  19. package/dist/cjs/data/error/index.js +33 -18
  20. package/dist/cjs/data/live-message/index.js +34 -25
  21. package/dist/cjs/data/logout/actions.js +12 -9
  22. package/dist/cjs/data/navigation-prompt/actions.js +12 -9
  23. package/dist/cjs/data/react-redux.js +29 -13
  24. package/dist/cjs/data/reducers.js +35 -23
  25. package/dist/cjs/data/saga.js +12 -9
  26. package/dist/cjs/data/store.js +53 -60
  27. package/dist/cjs/data/wait-message/actions.js +14 -13
  28. package/dist/cjs/data/wait-message/reducer.js +32 -24
  29. package/dist/cjs/index.js +189 -809
  30. package/dist/cjs/route/index.js +37 -32
  31. package/dist/cjs/route/page-view.js +30 -22
  32. package/dist/cjs/route/private-route/index.js +52 -60
  33. package/dist/cjs/sideeffect/auth/index.js +42 -30
  34. package/dist/cjs/sideeffect/error-toast/index.js +39 -26
  35. package/dist/cjs/sideeffect/wait-message/index.js +45 -29
  36. package/dist/cjs/typings/custom.d.js +0 -1
  37. package/dist/cjs/typings/elliemae.d.js +0 -1
  38. package/dist/cjs/typings/styled.d.js +19 -3
  39. package/dist/cjs/utils/app-config/config.js +33 -33
  40. package/dist/cjs/utils/app-config/index.js +42 -44
  41. package/dist/cjs/utils/app-host-integration/react.js +27 -14
  42. package/dist/cjs/utils/auth/helper.js +30 -18
  43. package/dist/cjs/utils/auth/index.js +76 -116
  44. package/dist/cjs/utils/await.js +3 -0
  45. package/dist/cjs/utils/constants.js +22 -21
  46. package/dist/cjs/utils/font-size.js +13 -14
  47. package/dist/cjs/utils/guest-with-service.js +11 -12
  48. package/dist/cjs/utils/helpers.js +15 -19
  49. package/dist/cjs/utils/history.js +29 -12
  50. package/dist/cjs/utils/log-records.js +38 -35
  51. package/dist/cjs/utils/micro-frontend/console-logger.js +39 -23
  52. package/dist/cjs/utils/micro-frontend/guest.js +80 -128
  53. package/dist/cjs/utils/micro-frontend/host.js +84 -124
  54. package/dist/cjs/utils/micro-frontend/index.js +60 -61
  55. package/dist/cjs/utils/micro-frontend/types.js +3 -5
  56. package/dist/cjs/utils/redact-pii.js +15 -17
  57. package/dist/cjs/utils/service-worker.js +36 -21
  58. package/dist/cjs/utils/session.js +64 -70
  59. package/dist/cjs/utils/storybook/main.js +32 -25
  60. package/dist/cjs/utils/storybook/manager.js +31 -16
  61. package/dist/cjs/utils/storybook/middleware.js +3 -7
  62. package/dist/cjs/utils/storybook/preview.js +57 -48
  63. package/dist/cjs/utils/storybook/theme.js +30 -14
  64. package/dist/cjs/utils/storybook/vite.js +6 -0
  65. package/dist/cjs/utils/storybook/webpack.js +13 -0
  66. package/dist/cjs/utils/testing/index.js +38 -50
  67. package/dist/cjs/utils/testing/render-with-redux.js +34 -27
  68. package/dist/cjs/utils/testing/render-with-router-redux.js +40 -37
  69. package/dist/cjs/utils/testing/render-with-router.js +34 -28
  70. package/dist/cjs/utils/testing/render-with-state-addons.js +40 -36
  71. package/dist/cjs/utils/types.js +3 -0
  72. package/dist/cjs/utils/url.js +12 -13
  73. package/dist/cjs/utils/web-storage.js +40 -30
  74. package/dist/cjs/utils/window.js +36 -28
  75. package/dist/cjs/view/app-root/hosted-app.js +35 -32
  76. package/dist/cjs/view/app-root/index.js +57 -62
  77. package/dist/cjs/view/app-root/stand-alone-app.js +38 -37
  78. package/dist/cjs/view/app-root/style.js +50 -12
  79. package/dist/cjs/view/error-boundary/default-error-template.js +10 -15
  80. package/dist/cjs/view/error-boundary/index.js +41 -43
  81. package/dist/cjs/view/error-toast/index.js +42 -32
  82. package/dist/cjs/view/fetch-host-app-data/index.js +34 -26
  83. package/dist/cjs/view/fetch-host-app-data/store.js +31 -24
  84. package/dist/cjs/view/fields/check-box/index.js +34 -39
  85. package/dist/cjs/view/fields/combo-box/index.js +37 -31
  86. package/dist/cjs/view/fields/connect-form.js +30 -15
  87. package/dist/cjs/view/fields/date-input/index.js +34 -26
  88. package/dist/cjs/view/fields/date-picker/index.js +34 -26
  89. package/dist/cjs/view/fields/form-item-layout/index.js +36 -30
  90. package/dist/cjs/view/fields/input-mask/index.js +35 -41
  91. package/dist/cjs/view/fields/large-text-box/index.js +34 -26
  92. package/dist/cjs/view/fields/radio/index.js +34 -30
  93. package/dist/cjs/view/fields/radio-group/index.js +32 -27
  94. package/dist/cjs/view/fields/text-box/index.js +34 -26
  95. package/dist/cjs/view/fields/watch-value.js +41 -35
  96. package/dist/cjs/view/form/index.js +41 -34
  97. package/dist/cjs/view/form/personal-info-section.js +56 -80
  98. package/dist/cjs/view/form/submit-button/index.js +34 -23
  99. package/dist/cjs/view/guest-unload-handlers/index.js +33 -22
  100. package/dist/cjs/view/header/center-region/index.js +61 -38
  101. package/dist/cjs/view/header/index.js +41 -35
  102. package/dist/cjs/view/header/logo-region/index.js +31 -23
  103. package/dist/cjs/view/header/nav-region/index.js +44 -30
  104. package/dist/cjs/view/header/nav-region/notification/index.js +28 -18
  105. package/dist/cjs/view/header/nav-region/user/index.js +28 -18
  106. package/dist/cjs/view/host-binding-events/index.js +10 -11
  107. package/dist/cjs/view/intro.stories.mdx +1 -1
  108. package/dist/cjs/view/live-message/index.js +33 -34
  109. package/dist/cjs/view/loadable/index.js +33 -27
  110. package/dist/cjs/view/login/index.js +36 -30
  111. package/dist/cjs/view/media-breakpoint/index.js +43 -34
  112. package/dist/cjs/view/message-to-host-app/index.js +31 -20
  113. package/dist/cjs/view/micro-app/app-factory/index.js +98 -134
  114. package/dist/cjs/view/micro-app/const.js +10 -7
  115. package/dist/cjs/view/micro-app/index.js +37 -27
  116. package/dist/cjs/view/micro-app/resources/manifest.js +41 -34
  117. package/dist/cjs/view/micro-app/resources/script.js +56 -53
  118. package/dist/cjs/view/micro-app/resources/style.js +44 -38
  119. package/dist/cjs/view/micro-app/types.js +3 -5
  120. package/dist/cjs/view/micro-app/use-app-will-render.js +58 -50
  121. package/dist/cjs/view/micro-app/utils.js +32 -21
  122. package/dist/cjs/view/micro-iframe-app/app.js +37 -39
  123. package/dist/cjs/view/micro-iframe-app/iframe/const.js +10 -7
  124. package/dist/cjs/view/micro-iframe-app/iframe/index.js +51 -47
  125. package/dist/cjs/view/micro-iframe-app/index.js +36 -24
  126. package/dist/cjs/view/micro-iframe-app/types.js +3 -5
  127. package/dist/cjs/view/micro-iframe-app/use-frame-loaded.js +40 -36
  128. package/dist/cjs/view/modals/error/index.js +35 -28
  129. package/dist/cjs/view/modals/navigation-prompt/index.js +38 -37
  130. package/dist/cjs/view/modals/session-expiry/customHooks.js +40 -35
  131. package/dist/cjs/view/modals/session-expiry/index.js +45 -50
  132. package/dist/cjs/view/modals/wait-message/html-wait-message.js +32 -18
  133. package/dist/cjs/view/modals/wait-message/index.js +50 -53
  134. package/dist/cjs/view/modals/wait-message/wait-message-launcher.js +33 -21
  135. package/dist/cjs/view/render-with-delay/index.js +30 -19
  136. package/dist/cjs/view/render-with-host-data/index.js +35 -30
  137. package/dist/cjs/view/session-timeout/index.js +44 -35
  138. package/dist/cjs/view/storybook/decorator.js +32 -21
  139. package/dist/cjs/view/use-previous.js +29 -13
  140. package/dist/cjs/view/useMediaBreakpoints/index.js +34 -19
  141. package/dist/cjs/view/visually-hidden/index.js +41 -21
  142. package/dist/cjs/view/window-size/index.js +34 -22
  143. package/dist/es/analytics/appdynamics.js +14 -15
  144. package/dist/es/analytics/index.js +11 -17
  145. package/dist/es/analytics/page-view-event.js +20 -20
  146. package/dist/es/analytics/user-session-event.js +13 -15
  147. package/dist/es/analytics/user-wait-event.js +10 -6
  148. package/dist/es/analytics/web-analytics.js +12 -10
  149. package/dist/es/api/auth/index.js +22 -27
  150. package/dist/es/api/helpers.js +8 -81
  151. package/dist/es/api/users/index.js +7 -8
  152. package/dist/es/communication/http-client/index.js +24 -30
  153. package/dist/es/communication/http-client/request-interceptor.js +6 -3
  154. package/dist/es/communication/http-client/response-interceptor.js +20 -21
  155. package/dist/es/communication/http-client/retry-axios.js +45 -105
  156. package/dist/es/communication/http-client/retry.js +22 -25
  157. package/dist/es/communication/http-client/tests/index.test-disable.js +28 -47
  158. package/dist/es/data/auth/actions.js +13 -19
  159. package/dist/es/data/auth/reducer.js +9 -7
  160. package/dist/es/data/breakpoint/index.js +19 -21
  161. package/dist/es/data/error/index.js +11 -9
  162. package/dist/es/data/live-message/index.js +12 -16
  163. package/dist/es/data/logout/actions.js +9 -5
  164. package/dist/es/data/navigation-prompt/actions.js +9 -5
  165. package/dist/es/data/react-redux.js +7 -3
  166. package/dist/es/data/reducers.js +10 -7
  167. package/dist/es/data/saga.js +8 -5
  168. package/dist/es/data/store.js +27 -44
  169. package/dist/es/data/wait-message/actions.js +11 -9
  170. package/dist/es/data/wait-message/reducer.js +10 -10
  171. package/dist/es/index.js +183 -84
  172. package/dist/es/route/index.js +16 -19
  173. package/dist/es/route/page-view.js +9 -9
  174. package/dist/es/route/private-route/index.js +30 -38
  175. package/dist/es/sideeffect/auth/index.js +27 -14
  176. package/dist/es/sideeffect/error-toast/index.js +15 -14
  177. package/dist/es/sideeffect/wait-message/index.js +18 -14
  178. package/dist/es/typings/styled.d.js +1 -1
  179. package/dist/es/utils/app-config/config.js +11 -9
  180. package/dist/es/utils/app-config/index.js +21 -31
  181. package/dist/es/utils/app-host-integration/react.js +8 -6
  182. package/dist/es/utils/auth/helper.js +8 -4
  183. package/dist/es/utils/auth/index.js +59 -83
  184. package/dist/es/utils/constants.js +18 -13
  185. package/dist/es/utils/font-size.js +7 -3
  186. package/dist/es/utils/guest-with-service.js +6 -7
  187. package/dist/es/utils/helpers.js +10 -6
  188. package/dist/es/utils/history.js +7 -3
  189. package/dist/es/utils/log-records.js +34 -31
  190. package/dist/es/utils/micro-frontend/console-logger.js +17 -13
  191. package/dist/es/utils/micro-frontend/guest.js +52 -108
  192. package/dist/es/utils/micro-frontend/host.js +53 -89
  193. package/dist/es/utils/micro-frontend/index.js +39 -37
  194. package/dist/es/utils/micro-frontend/types.js +0 -1
  195. package/dist/es/utils/redact-pii.js +10 -11
  196. package/dist/es/utils/service-worker.js +14 -11
  197. package/dist/es/utils/session.js +47 -48
  198. package/dist/es/utils/storybook/manager.js +8 -5
  199. package/dist/es/utils/storybook/preview.js +30 -26
  200. package/dist/es/utils/storybook/theme.js +9 -6
  201. package/dist/es/utils/testing/index.js +14 -21
  202. package/dist/es/utils/testing/render-with-redux.js +13 -13
  203. package/dist/es/utils/testing/render-with-router-redux.js +19 -21
  204. package/dist/es/utils/testing/render-with-router.js +14 -16
  205. package/dist/es/utils/testing/render-with-state-addons.js +18 -18
  206. package/dist/es/utils/url.js +7 -3
  207. package/dist/es/utils/web-storage.js +21 -17
  208. package/dist/es/utils/window.js +18 -18
  209. package/dist/es/view/app-root/hosted-app.js +13 -17
  210. package/dist/es/view/app-root/index.js +34 -39
  211. package/dist/es/view/app-root/stand-alone-app.js +17 -19
  212. package/dist/es/view/app-root/style.js +30 -5
  213. package/dist/es/view/error-boundary/default-error-template.js +4 -5
  214. package/dist/es/view/error-boundary/index.js +20 -27
  215. package/dist/es/view/error-toast/index.js +21 -16
  216. package/dist/es/view/fetch-host-app-data/index.js +13 -13
  217. package/dist/es/view/fetch-host-app-data/store.js +10 -7
  218. package/dist/es/view/fields/check-box/index.js +16 -18
  219. package/dist/es/view/fields/combo-box/index.js +19 -19
  220. package/dist/es/view/fields/connect-form.js +8 -6
  221. package/dist/es/view/fields/date-input/index.js +16 -14
  222. package/dist/es/view/fields/date-picker/index.js +16 -14
  223. package/dist/es/view/fields/form-item-layout/index.js +15 -16
  224. package/dist/es/view/fields/input-mask/index.js +20 -14
  225. package/dist/es/view/fields/large-text-box/index.js +16 -14
  226. package/dist/es/view/fields/radio/index.js +16 -18
  227. package/dist/es/view/fields/radio-group/index.js +14 -15
  228. package/dist/es/view/fields/text-box/index.js +16 -14
  229. package/dist/es/view/fields/watch-value.js +19 -24
  230. package/dist/es/view/form/index.js +22 -22
  231. package/dist/es/view/form/personal-info-section.js +31 -52
  232. package/dist/es/view/form/submit-button/index.js +12 -10
  233. package/dist/es/view/guest-unload-handlers/index.js +11 -10
  234. package/dist/es/view/header/center-region/index.js +40 -23
  235. package/dist/es/view/header/index.js +19 -19
  236. package/dist/es/view/header/logo-region/index.js +8 -9
  237. package/dist/es/view/header/nav-region/index.js +22 -15
  238. package/dist/es/view/header/nav-region/notification/index.js +5 -6
  239. package/dist/es/view/header/nav-region/user/index.js +5 -6
  240. package/dist/es/view/host-binding-events/index.js +7 -3
  241. package/dist/es/view/intro.stories.mdx +1 -1
  242. package/dist/es/view/live-message/index.js +13 -23
  243. package/dist/es/view/loadable/index.js +12 -15
  244. package/dist/es/view/login/index.js +14 -18
  245. package/dist/es/view/media-breakpoint/index.js +19 -17
  246. package/dist/es/view/message-to-host-app/index.js +11 -10
  247. package/dist/es/view/micro-app/app-factory/index.js +67 -86
  248. package/dist/es/view/micro-app/const.js +4 -1
  249. package/dist/es/view/micro-app/index.js +13 -11
  250. package/dist/es/view/micro-app/resources/manifest.js +19 -19
  251. package/dist/es/view/micro-app/resources/script.js +36 -36
  252. package/dist/es/view/micro-app/resources/style.js +23 -22
  253. package/dist/es/view/micro-app/types.js +0 -1
  254. package/dist/es/view/micro-app/use-app-will-render.js +32 -28
  255. package/dist/es/view/micro-app/utils.js +12 -14
  256. package/dist/es/view/micro-iframe-app/app.js +15 -22
  257. package/dist/es/view/micro-iframe-app/iframe/const.js +4 -1
  258. package/dist/es/view/micro-iframe-app/iframe/index.js +27 -32
  259. package/dist/es/view/micro-iframe-app/index.js +11 -12
  260. package/dist/es/view/micro-iframe-app/types.js +0 -1
  261. package/dist/es/view/micro-iframe-app/use-frame-loaded.js +16 -21
  262. package/dist/es/view/modals/error/index.js +12 -10
  263. package/dist/es/view/modals/navigation-prompt/index.js +12 -16
  264. package/dist/es/view/modals/session-expiry/customHooks.js +13 -15
  265. package/dist/es/view/modals/session-expiry/index.js +16 -24
  266. package/dist/es/view/modals/wait-message/html-wait-message.js +10 -10
  267. package/dist/es/view/modals/wait-message/index.js +31 -39
  268. package/dist/es/view/modals/wait-message/wait-message-launcher.js +9 -8
  269. package/dist/es/view/render-with-delay/index.js +7 -10
  270. package/dist/es/view/render-with-host-data/index.js +11 -15
  271. package/dist/es/view/session-timeout/index.js +21 -12
  272. package/dist/es/view/storybook/decorator.js +9 -7
  273. package/dist/es/view/use-previous.js +6 -3
  274. package/dist/es/view/useMediaBreakpoints/index.js +11 -9
  275. package/dist/es/view/visually-hidden/index.js +19 -10
  276. package/dist/es/view/window-size/index.js +12 -11
  277. package/dist/types/utils/storybook/main.d.cts +41 -0
  278. package/dist/types/utils/storybook/{middleware.d.ts → middleware.d.cts} +0 -0
  279. package/dist/types/utils/storybook/preview.d.ts +2 -2
  280. package/dist/types/utils/storybook/vite.d.cts +4 -0
  281. package/dist/types/utils/storybook/webpack.d.cts +8 -0
  282. package/dist/types/utils/window.d.ts +1 -1
  283. package/dist/types/view/visually-hidden/index.d.ts +1 -3
  284. package/package.json +6 -4
  285. package/dist/cjs/api/users/index.endpoint.js +0 -14
  286. package/dist/cjs/communication/http-client/tests/hello.endpoint.js +0 -14
  287. package/dist/cjs/communication/http-client/tests/private.endpoint.js +0 -14
  288. package/dist/cjs/view/error-toast/index.stories.js +0 -128
  289. package/dist/cjs/view/fields/check-box/index.stories.js +0 -64
  290. package/dist/cjs/view/fields/check-box/set-value.stories.js +0 -83
  291. package/dist/cjs/view/fields/combo-box/index.stories.js +0 -65
  292. package/dist/cjs/view/fields/date-input/index.stories.js +0 -53
  293. package/dist/cjs/view/fields/date-input/index1.stories.js +0 -53
  294. package/dist/cjs/view/fields/date-picker/index.stories.js +0 -53
  295. package/dist/cjs/view/fields/form-item-layout/index.stories.js +0 -43
  296. package/dist/cjs/view/fields/input-mask/index.stories.js +0 -52
  297. package/dist/cjs/view/fields/large-text-box/index.stories.js +0 -47
  298. package/dist/cjs/view/fields/radio/index.stories.js +0 -60
  299. package/dist/cjs/view/fields/radio/set-value.stories.js +0 -81
  300. package/dist/cjs/view/fields/radio-group/index.stories.js +0 -85
  301. package/dist/cjs/view/fields/text-box/index.stories.js +0 -48
  302. package/dist/cjs/view/form/index.stories.js +0 -71
  303. package/dist/cjs/view/form/usecases.stories.js +0 -59
  304. package/dist/cjs/view/header/index.stories.js +0 -24
  305. package/dist/cjs/view/live-message/index.stories.js +0 -53
  306. package/dist/cjs/view/media-breakpoint/index.stories.js +0 -24
  307. package/dist/cjs/view/modals/error/index.stories.js +0 -36
  308. package/dist/cjs/view/modals/navigation-prompt/index.stories.js +0 -32
  309. package/dist/cjs/view/modals/session-expiry/index.stories.js +0 -30
  310. package/dist/cjs/view/modals/wait-message/index.stories.js +0 -47
  311. package/dist/cjs/view/session-timeout/index.stories.js +0 -28
  312. package/dist/es/api/users/index.endpoint.js +0 -14
  313. package/dist/es/communication/http-client/tests/hello.endpoint.js +0 -14
  314. package/dist/es/communication/http-client/tests/private.endpoint.js +0 -14
  315. package/dist/es/utils/storybook/main.js +0 -38
  316. package/dist/es/utils/storybook/middleware.js +0 -9
  317. package/dist/es/view/error-toast/index.stories.js +0 -108
  318. package/dist/es/view/fields/check-box/index.stories.js +0 -47
  319. package/dist/es/view/fields/check-box/set-value.stories.js +0 -65
  320. package/dist/es/view/fields/combo-box/index.stories.js +0 -48
  321. package/dist/es/view/fields/date-input/index.stories.js +0 -35
  322. package/dist/es/view/fields/date-input/index1.stories.js +0 -35
  323. package/dist/es/view/fields/date-picker/index.stories.js +0 -35
  324. package/dist/es/view/fields/form-item-layout/index.stories.js +0 -27
  325. package/dist/es/view/fields/input-mask/index.stories.js +0 -35
  326. package/dist/es/view/fields/large-text-box/index.stories.js +0 -30
  327. package/dist/es/view/fields/radio/index.stories.js +0 -43
  328. package/dist/es/view/fields/radio/set-value.stories.js +0 -63
  329. package/dist/es/view/fields/radio-group/index.stories.js +0 -68
  330. package/dist/es/view/fields/text-box/index.stories.js +0 -31
  331. package/dist/es/view/form/index.stories.js +0 -56
  332. package/dist/es/view/form/usecases.stories.js +0 -43
  333. package/dist/es/view/header/index.stories.js +0 -14
  334. package/dist/es/view/live-message/index.stories.js +0 -32
  335. package/dist/es/view/media-breakpoint/index.stories.js +0 -10
  336. package/dist/es/view/modals/error/index.stories.js +0 -21
  337. package/dist/es/view/modals/navigation-prompt/index.stories.js +0 -18
  338. package/dist/es/view/modals/session-expiry/index.stories.js +0 -18
  339. package/dist/es/view/modals/wait-message/index.stories.js +0 -33
  340. package/dist/es/view/session-timeout/index.stories.js +0 -13
  341. package/dist/types/utils/storybook/main.d.ts +0 -30
  342. package/dist/types/view/fields/date-input/index1.stories.d.ts +0 -24
@@ -1,13 +1,30 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
8
+ var __export = (target, all) => {
9
+ __markAsModule(target);
10
+ for (var name in all)
11
+ __defProp(target, name, { get: all[name], enumerable: true });
12
+ };
13
+ var __reExport = (target, module2, desc) => {
14
+ if (module2 && typeof module2 === "object" || typeof module2 === "function") {
15
+ for (let key of __getOwnPropNames(module2))
16
+ if (!__hasOwnProp.call(target, key) && key !== "default")
17
+ __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
18
+ }
19
+ return target;
20
+ };
21
+ var __toModule = (module2) => {
22
+ return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
23
+ };
24
+ __export(exports, {
25
+ browserHistory: () => browserHistory,
26
+ memoryHistory: () => memoryHistory
5
27
  });
6
- exports.memoryHistory = exports.browserHistory = void 0;
7
-
8
- var _history = require("history");
9
-
10
- const browserHistory = (0, _history.createBrowserHistory)();
11
- exports.browserHistory = browserHistory;
12
- const memoryHistory = (0, _history.createMemoryHistory)();
13
- exports.memoryHistory = memoryHistory;
28
+ var import_history = __toModule(require("history"));
29
+ const browserHistory = (0, import_history.createBrowserHistory)();
30
+ const memoryHistory = (0, import_history.createMemoryHistory)();
@@ -1,69 +1,72 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
1
+ var __defProp = Object.defineProperty;
2
+ var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
3
+ var __export = (target, all) => {
4
+ __markAsModule(target);
5
+ for (var name in all)
6
+ __defProp(target, name, { get: all[name], enumerable: true });
7
+ };
8
+ __export(exports, {
9
+ logRecords: () => logRecords
5
10
  });
6
- exports.logRecords = void 0;
7
11
  const logRecords = {
8
12
  ERR_TOAST_OPEN_FAILED: {
9
- code: 'appsdk001',
10
- msg: 'Unable to open Error Toast'
13
+ code: "appsdk001",
14
+ msg: "Unable to open Error Toast"
11
15
  },
12
16
  WAIT_MSG_OPEN_FAILED: {
13
- code: 'appsdk02',
14
- msg: 'Unable to open Wait message'
17
+ code: "appsdk02",
18
+ msg: "Unable to open Wait message"
15
19
  },
16
20
  WAIT_MSG_CLOSE_FAILED: {
17
- code: 'appsdk03',
18
- msg: 'Unable to close Wait message'
21
+ code: "appsdk03",
22
+ msg: "Unable to close Wait message"
19
23
  },
20
24
  APP_CONFIG_LOAD_FAILED: {
21
- code: 'appsdk04',
22
- msg: 'Unable to load application configuration'
25
+ code: "appsdk04",
26
+ msg: "Unable to load application configuration"
23
27
  },
24
- ASSET_NOT_FOUND_IN_MANIFEST: assetName => ({
25
- code: 'appsdk05',
28
+ ASSET_NOT_FOUND_IN_MANIFEST: (assetName) => ({
29
+ code: "appsdk05",
26
30
  msg: `Application load failed. unable to locate ${assetName} in the manifest`
27
31
  }),
28
32
  APP_INIT_FAILED: (appId, errMsg) => ({
29
- code: 'appsdk06',
33
+ code: "appsdk06",
30
34
  msg: `Application load failed. Unable to load one or more application resources for appId: ${appId}. ${errMsg}`
31
35
  }),
32
- APP_LOADING: appId => ({
33
- code: 'appsdk07',
36
+ APP_LOADING: (appId) => ({
37
+ code: "appsdk07",
34
38
  msg: `Application ${appId} is loading...`
35
39
  }),
36
- APP_LOADING_COMPLETE: appId => ({
37
- code: 'appsdk08',
40
+ APP_LOADING_COMPLETE: (appId) => ({
41
+ code: "appsdk08",
38
42
  msg: `Application ${appId} loaded`
39
43
  }),
40
- APP_UNLOADING: appId => ({
41
- code: 'appsdk09',
44
+ APP_UNLOADING: (appId) => ({
45
+ code: "appsdk09",
42
46
  msg: `Application ${appId} unloading...`
43
47
  }),
44
- APP_UNLOADING_COMPLETE: appId => ({
45
- code: 'appsdk10',
48
+ APP_UNLOADING_COMPLETE: (appId) => ({
49
+ code: "appsdk10",
46
50
  msg: `Application ${appId} unloaded`
47
51
  }),
48
- SSF_HOST_OBJECT_NOT_FOUND: name => ({
49
- code: 'appsdk11',
52
+ SSF_HOST_OBJECT_NOT_FOUND: (name) => ({
53
+ code: "appsdk11",
50
54
  msg: `Parent window doesn't expose SSF Object named ${name}`
51
55
  }),
52
56
  LOGIN_FAILED: {
53
- code: 'appsdk12',
54
- msg: 'Unable to login the user.'
57
+ code: "appsdk12",
58
+ msg: "Unable to login the user."
55
59
  },
56
60
  LOGOUT_FAILED: {
57
- code: 'appsdk13',
58
- msg: 'Unable to logout the user.'
61
+ code: "appsdk13",
62
+ msg: "Unable to logout the user."
59
63
  },
60
64
  SERVICE_WORKER_FAILED: {
61
- code: 'appsdk14',
62
- msg: 'Service Worker Registration Failed'
65
+ code: "appsdk14",
66
+ msg: "Service Worker Registration Failed"
63
67
  },
64
68
  UNHANDLED_ERROR: {
65
- code: 'appsdk15',
66
- msg: 'Unhandled error in react component'
69
+ code: "appsdk15",
70
+ msg: "Unhandled error in react component"
67
71
  }
68
72
  };
69
- exports.logRecords = logRecords;
@@ -1,27 +1,43 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
8
+ var __export = (target, all) => {
9
+ __markAsModule(target);
10
+ for (var name in all)
11
+ __defProp(target, name, { get: all[name], enumerable: true });
12
+ };
13
+ var __reExport = (target, module2, desc) => {
14
+ if (module2 && typeof module2 === "object" || typeof module2 === "function") {
15
+ for (let key of __getOwnPropNames(module2))
16
+ if (!__hasOwnProp.call(target, key) && key !== "default")
17
+ __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
18
+ }
19
+ return target;
20
+ };
21
+ var __toModule = (module2) => {
22
+ return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
23
+ };
24
+ __export(exports, {
25
+ logger: () => logger
5
26
  });
6
- exports.logger = void 0;
7
-
8
- var _puiDiagnostics = require("@elliemae/pui-diagnostics");
9
-
10
- var _config = require("../app-config/config.js");
11
-
27
+ var import_pui_diagnostics = __toModule(require("@elliemae/pui-diagnostics"));
28
+ var import_config = __toModule(require("../app-config/config"));
12
29
  const logger = (() => {
13
- if (!_puiDiagnostics.logger) return console;
14
- return (0, _puiDiagnostics.logger)({
15
- transport: (0, _puiDiagnostics.Console)(),
16
- index: 'app',
17
- environment: (0, _config.getAppConfigValue)('activeEnv'),
18
- logger: 'icemt.app.logger',
19
- team: 'app team',
20
- appName: 'ICEMT App',
21
- appVersion: 'latest',
22
- tenantId: '',
23
- userId: ''
30
+ if (!import_pui_diagnostics.logger)
31
+ return console;
32
+ return (0, import_pui_diagnostics.logger)({
33
+ transport: (0, import_pui_diagnostics.Console)(),
34
+ index: "app",
35
+ environment: (0, import_config.getAppConfigValue)("activeEnv"),
36
+ logger: "icemt.app.logger",
37
+ team: "app team",
38
+ appName: "ICEMT App",
39
+ appVersion: "latest",
40
+ tenantId: "",
41
+ userId: ""
24
42
  });
25
43
  })();
26
-
27
- exports.logger = logger;
@@ -1,209 +1,161 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
8
+ var __export = (target, all) => {
9
+ __markAsModule(target);
10
+ for (var name in all)
11
+ __defProp(target, name, { get: all[name], enumerable: true });
12
+ };
13
+ var __reExport = (target, module2, desc) => {
14
+ if (module2 && typeof module2 === "object" || typeof module2 === "function") {
15
+ for (let key of __getOwnPropNames(module2))
16
+ if (!__hasOwnProp.call(target, key) && key !== "default")
17
+ __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
18
+ }
19
+ return target;
20
+ };
21
+ var __toModule = (module2) => {
22
+ return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
23
+ };
24
+ __export(exports, {
25
+ CMicroAppGuest: () => CMicroAppGuest
7
26
  });
8
- exports.CMicroAppGuest = void 0;
9
-
10
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
-
12
- var _merge2 = _interopRequireDefault(require("lodash/merge"));
13
-
14
- var _reactDom = _interopRequireDefault(require("react-dom"));
15
-
16
- var _emSsfGuest = _interopRequireDefault(require("@elliemae/em-ssf-guest"));
17
-
18
- var _puiTheme = require("@elliemae/pui-theme");
19
-
20
- var _window = require("../window.js");
21
-
22
- var _index = require("../app-config/index.js");
23
-
24
- var _config = require("../app-config/config.js");
25
-
26
- var _history = require("../history.js");
27
-
28
- var _consoleLogger = require("./console-logger.js");
29
-
30
- var _webStorage = require("../web-storage.js");
31
-
32
- var _webAnalytics = require("../../analytics/web-analytics.js");
33
-
34
- var _appdynamics = require("../../analytics/appdynamics.js");
35
-
27
+ var import_react_dom = __toModule(require("react-dom"));
28
+ var import_lodash = __toModule(require("lodash"));
29
+ var import_em_ssf_guest = __toModule(require("@elliemae/em-ssf-guest"));
30
+ var import_pui_theme = __toModule(require("@elliemae/pui-theme"));
31
+ var import_window = __toModule(require("../window"));
32
+ var import_app_config = __toModule(require("../app-config"));
33
+ var import_config = __toModule(require("../app-config/config"));
34
+ var import_history2 = __toModule(require("../history"));
35
+ var import_console_logger = __toModule(require("./console-logger"));
36
+ var import_web_storage = __toModule(require("../web-storage"));
37
+ var import_web_analytics = __toModule(require("../../analytics/web-analytics"));
38
+ var import_appdynamics = __toModule(require("../../analytics/appdynamics"));
36
39
  const isCrossDomain = () => {
37
40
  try {
38
- // eslint-disable-next-line @typescript-eslint/no-unused-expressions
39
41
  window.parent.document;
40
42
  return false;
41
43
  } catch (ex) {
42
44
  return true;
43
45
  }
44
- }; // singleton class
45
-
46
-
46
+ };
47
47
  class CMicroAppGuest {
48
48
  constructor(params) {
49
- var _window$emui;
50
-
51
- (0, _defineProperty2.default)(this, "logger", void 0);
52
- (0, _defineProperty2.default)(this, "appId", void 0);
53
- (0, _defineProperty2.default)(this, "props", void 0);
54
- (0, _defineProperty2.default)(this, "containerId", void 0);
55
- (0, _defineProperty2.default)(this, "onInit", void 0);
56
- (0, _defineProperty2.default)(this, "onMount", void 0);
57
- (0, _defineProperty2.default)(this, "onUnmount", void 0);
58
- (0, _defineProperty2.default)(this, "onGetRef", void 0);
59
- this.containerId = 'app-container';
60
- this.appId = ((_window$emui = window.emui) === null || _window$emui === void 0 ? void 0 : _window$emui.appId) || (0, _config.getAppConfigValue)('appId');
49
+ this.containerId = "app-container";
50
+ this.appId = window.emui?.appId || (0, import_config.getAppConfigValue)("appId");
61
51
  this.props = {
62
52
  host: null,
63
53
  hostUrl: null,
64
54
  prevState: null,
65
- history: _history.browserHistory,
66
- theme: (0, _puiTheme.getDefaultTheme)(),
67
- manifestPath: './latest'
55
+ history: import_history2.browserHistory,
56
+ theme: (0, import_pui_theme.getDefaultTheme)(),
57
+ manifestPath: "./latest"
68
58
  };
69
- this.logger = (params === null || params === void 0 ? void 0 : params.logger) || _consoleLogger.logger;
70
- this.onInit = params === null || params === void 0 ? void 0 : params.onInit;
71
- this.onMount = params === null || params === void 0 ? void 0 : params.onMount;
72
- this.onUnmount = params === null || params === void 0 ? void 0 : params.onUnmount;
73
- this.onGetRef = params === null || params === void 0 ? void 0 : params.onGetRef;
59
+ this.logger = params?.logger || import_console_logger.logger;
60
+ this.onInit = params?.onInit;
61
+ this.onMount = params?.onMount;
62
+ this.onUnmount = params?.onUnmount;
63
+ this.onGetRef = params?.onGetRef;
74
64
  this.getHost = this.getHost.bind(this);
75
65
  this.getLogger = this.getLogger.bind(this);
76
66
  this.getProps = this.getProps.bind(this);
77
- const browserWindow = (0, _window.getWindow)();
78
-
67
+ const browserWindow = (0, import_window.getWindow)();
79
68
  if (browserWindow) {
80
69
  browserWindow.emui = browserWindow.emui || {};
81
- browserWindow.emui[this.appId] = browserWindow.emui[this.appId] || {}; // expose init mount & unmount methods
82
-
70
+ browserWindow.emui[this.appId] = browserWindow.emui[this.appId] || {};
83
71
  browserWindow.emui[this.appId].init = this.init.bind(this);
84
72
  browserWindow.emui[this.appId].mount = this.mount.bind(this);
85
73
  browserWindow.emui[this.appId].unmount = this.unmount.bind(this);
86
74
  browserWindow.emui[this.appId].getRef = this.getRef.bind(this);
87
75
  }
88
76
  }
89
-
90
77
  static getInstance(params) {
91
78
  if (!this.instance) {
92
79
  this.instance = new this(params);
93
80
  }
94
-
95
81
  return this.instance;
96
82
  }
97
-
98
83
  static isInitialized() {
99
84
  return !!this.instance;
100
85
  }
101
-
102
86
  static isHosted() {
103
- var _this$instance, _this$instance$props;
104
-
105
- return !!((_this$instance = this.instance) !== null && _this$instance !== void 0 && (_this$instance$props = _this$instance.props) !== null && _this$instance$props !== void 0 && _this$instance$props.host);
87
+ return !!this.instance?.props?.host;
106
88
  }
107
-
108
89
  getHost() {
109
90
  return this.props.host;
110
91
  }
111
-
112
92
  getLogger() {
113
93
  return this.logger;
114
94
  }
115
-
116
95
  getProps() {
117
96
  return this.props;
118
97
  }
119
-
120
98
  getSessionStorageItem(key) {
121
- var _this$props$host;
122
-
123
99
  let value = sessionStorage.getItem(key);
124
-
125
- if (!value && (_this$props$host = this.props.host) !== null && _this$props$host !== void 0 && _this$props$host.getItem) {
100
+ if (!value && this.props.host?.getItem) {
126
101
  value = this.props.host.getItem(key);
127
102
  }
128
-
129
103
  return value;
130
104
  }
131
-
132
105
  async getSSFHost() {
133
106
  let host = null;
134
-
135
107
  if (window.parent !== window) {
136
- // not a standalone app
137
108
  if (!isCrossDomain()) {
138
- var _window$parent, _window$parent$emui;
139
-
140
- host = ((_window$parent = window.parent) === null || _window$parent === void 0 ? void 0 : (_window$parent$emui = _window$parent.emui) === null || _window$parent$emui === void 0 ? void 0 : _window$parent$emui.MicroAppHost) || null;
141
- } else if (_emSsfGuest.default && this.props.hostName) {
142
- _emSsfGuest.default.connect();
143
-
144
- const timeout = new Promise(resolve => {
109
+ host = window.parent?.emui?.MicroAppHost || null;
110
+ } else if (import_em_ssf_guest.default && this.props.hostName) {
111
+ import_em_ssf_guest.default.connect();
112
+ const timeout = new Promise((resolve) => {
145
113
  setTimeout(resolve, 100, null);
146
114
  });
147
- host = await Promise.race([_emSsfGuest.default.getObject(this.props.hostName), timeout]);
115
+ host = await Promise.race([
116
+ import_em_ssf_guest.default.getObject(this.props.hostName),
117
+ timeout
118
+ ]);
148
119
  }
149
120
  }
150
-
151
121
  return host;
152
122
  }
153
-
154
123
  async init(options) {
155
- this.props = (0, _merge2.default)(this.props, options);
156
-
124
+ this.props = import_lodash.default.merge(this.props, options);
157
125
  if (!this.props.host) {
158
126
  const host = await this.getSSFHost();
159
- if (host) this.props.host = host;
127
+ if (host)
128
+ this.props.host = host;
160
129
  }
161
- /* eslint-disable camelcase, no-undef */
162
-
163
-
164
- __webpack_public_path__ = __webpack_public_path__.replace(/\/?$/, '/');
165
- return (0, _index.loadAppConfig)(__webpack_public_path__).then(() => {
166
- const instanceId = this.getSessionStorageItem('instanceId') || '';
167
- const userId = this.getSessionStorageItem('userId') || '';
168
- (0, _webAnalytics.updateBAEventParameters)({
169
- appId: this.appId,
170
- instanceId,
171
- userId
172
- });
173
- (0, _appdynamics.setAppDynamicsUserData)({
174
- appId: this.appId,
175
- instanceId,
176
- userId
177
- });
178
- if (this.onInit) this.onInit(this.props);
130
+ __webpack_public_path__ = __webpack_public_path__.replace(/\/?$/, "/");
131
+ return (0, import_app_config.loadAppConfig)(__webpack_public_path__).then(() => {
132
+ const instanceId = this.getSessionStorageItem("instanceId") || "";
133
+ const userId = this.getSessionStorageItem("userId") || "";
134
+ (0, import_web_analytics.updateBAEventParameters)({ appId: this.appId, instanceId, userId });
135
+ (0, import_appdynamics.setAppDynamicsUserData)({ appId: this.appId, instanceId, userId });
136
+ if (this.onInit)
137
+ this.onInit(this.props);
179
138
  });
180
139
  }
181
-
182
- mount(options = {
183
- containerId: 'app-container'
184
- }) {
185
- this.containerId = options === null || options === void 0 ? void 0 : options.containerId;
140
+ mount(options = { containerId: "app-container" }) {
141
+ this.containerId = options?.containerId;
186
142
  return Promise.resolve().then(() => {
187
- if (this.onMount) this.onMount(options);
143
+ if (this.onMount)
144
+ this.onMount(options);
188
145
  });
189
146
  }
190
-
191
147
  unmount(options) {
192
148
  const appEle = document.getElementById(this.containerId);
193
- if (appEle) _reactDom.default.unmountComponentAtNode(appEle);
194
- (0, _webStorage.removeStorageEvents)();
149
+ if (appEle)
150
+ import_react_dom.default.unmountComponentAtNode(appEle);
151
+ (0, import_web_storage.removeStorageEvents)();
195
152
  return Promise.resolve().then(() => this.onUnmount ? this.onUnmount(options) : null);
196
153
  }
197
-
198
154
  getRef() {
199
155
  return this.onGetRef ? this.onGetRef() : null;
200
156
  }
201
-
202
157
  navigate(url, state) {
203
- if (url) this.props.history.push(url, state);
158
+ if (url)
159
+ this.props.history.push(url, state);
204
160
  }
205
-
206
161
  }
207
-
208
- exports.CMicroAppGuest = CMicroAppGuest;
209
- (0, _defineProperty2.default)(CMicroAppGuest, "instance", void 0);