@elliemae/pui-app-sdk 3.0.0-beta.7 → 3.0.1

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 (431) 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 +35 -0
  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 +34 -0
  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/utils/app-config/config.js +14 -8
  38. package/dist/cjs/utils/app-config/index.js +17 -11
  39. package/dist/cjs/utils/app-host-integration/react.js +11 -10
  40. package/dist/cjs/utils/auth/helper.js +13 -7
  41. package/dist/cjs/utils/auth/index.js +42 -25
  42. package/dist/cjs/utils/await.js +18 -1
  43. package/dist/cjs/utils/constants.js +19 -2
  44. package/dist/cjs/utils/font-size.js +19 -2
  45. package/dist/cjs/utils/guest-with-service.js +19 -2
  46. package/dist/cjs/utils/helpers.js +20 -3
  47. package/dist/cjs/utils/history.js +11 -10
  48. package/dist/cjs/utils/log-records.js +19 -2
  49. package/dist/cjs/utils/micro-frontend/console-logger.js +12 -11
  50. package/dist/cjs/utils/micro-frontend/guest.js +25 -19
  51. package/dist/cjs/utils/micro-frontend/host.js +30 -29
  52. package/dist/cjs/utils/micro-frontend/index.js +17 -11
  53. package/dist/cjs/utils/micro-frontend/types.js +18 -1
  54. package/dist/cjs/utils/redact-pii.js +19 -2
  55. package/dist/cjs/utils/service-worker.js +14 -14
  56. package/dist/cjs/utils/session.js +15 -14
  57. package/dist/cjs/utils/storybook/{main.js → cjs/main.js} +11 -3
  58. package/dist/cjs/utils/storybook/{middleware.js → cjs/middleware.js} +0 -0
  59. package/dist/cjs/utils/storybook/{vite.js → cjs/vite.js} +0 -0
  60. package/dist/cjs/utils/storybook/{webpack.js → cjs/webpack.js} +0 -0
  61. package/dist/cjs/utils/storybook/manager.js +12 -11
  62. package/dist/cjs/utils/storybook/preview.js +24 -19
  63. package/dist/cjs/utils/storybook/theme.js +50 -19
  64. package/dist/cjs/utils/testing/index.js +34 -14
  65. package/dist/cjs/utils/testing/render-with-redux.js +37 -15
  66. package/dist/cjs/utils/testing/render-with-router-redux.js +41 -19
  67. package/dist/cjs/utils/testing/render-with-router.js +40 -15
  68. package/dist/cjs/utils/testing/render-with-state-addons.js +56 -21
  69. package/dist/cjs/utils/types.js +18 -1
  70. package/dist/cjs/utils/url.js +19 -2
  71. package/dist/cjs/utils/web-storage.js +13 -7
  72. package/dist/cjs/utils/window.js +11 -10
  73. package/dist/cjs/view/app-root/hosted-app.js +26 -15
  74. package/dist/cjs/view/app-root/index.js +37 -26
  75. package/dist/cjs/view/app-root/stand-alone-app.js +27 -17
  76. package/dist/cjs/view/app-root/style.js +11 -10
  77. package/dist/cjs/view/app-router.js +77 -0
  78. package/dist/cjs/view/{media-breakpoint/index.js → breakpoint/use-breakpoint.js} +20 -21
  79. package/dist/cjs/view/{useMediaBreakpoints/index.js → breakpoint/use-media-query-list.js} +15 -14
  80. package/dist/cjs/view/error-boundary/default-error-template.js +14 -8
  81. package/dist/cjs/view/error-boundary/index.js +35 -13
  82. package/dist/cjs/view/error-toast/index.js +37 -21
  83. package/dist/cjs/view/fetch-host-app-data/index.js +16 -10
  84. package/dist/cjs/view/fetch-host-app-data/store.js +26 -11
  85. package/dist/cjs/view/fields/check-box/index.js +57 -26
  86. package/dist/cjs/view/fields/combo-box/index.js +68 -28
  87. package/dist/cjs/view/fields/connect-form.js +26 -13
  88. package/dist/cjs/view/fields/date-input/index.js +58 -23
  89. package/dist/cjs/view/fields/date-picker/index.js +58 -23
  90. package/dist/cjs/view/fields/form-item-layout/index.js +56 -25
  91. package/dist/cjs/view/fields/form-layout-block-item/index.js +84 -0
  92. package/dist/cjs/view/fields/input-mask/index.js +58 -24
  93. package/dist/cjs/view/fields/large-text-box/index.js +58 -23
  94. package/dist/cjs/view/fields/radio/index.js +67 -25
  95. package/dist/cjs/view/fields/radio-group/index.js +57 -22
  96. package/dist/cjs/view/fields/text-box/index.js +58 -23
  97. package/dist/cjs/view/fields/watch-value.js +19 -11
  98. package/dist/cjs/view/form/index.js +32 -15
  99. package/dist/cjs/view/form/personal-info-section.js +46 -36
  100. package/dist/cjs/view/form/submit-button/index.js +48 -15
  101. package/dist/cjs/view/guest-unload-handlers/index.js +11 -10
  102. package/dist/cjs/view/host-binding-events/index.js +19 -2
  103. package/dist/cjs/view/live-message/index.js +15 -9
  104. package/dist/cjs/view/loadable/index.js +30 -12
  105. package/dist/cjs/view/login/index.js +16 -20
  106. package/dist/cjs/view/message-to-host-app/index.js +11 -10
  107. package/dist/cjs/view/micro-app/app-factory/index.js +40 -20
  108. package/dist/cjs/view/micro-app/const.js +19 -2
  109. package/dist/cjs/view/micro-app/index.js +17 -11
  110. package/dist/cjs/view/micro-app/resources/manifest.js +16 -13
  111. package/dist/cjs/view/micro-app/resources/script.js +12 -11
  112. package/dist/cjs/view/micro-app/resources/style.js +11 -10
  113. package/dist/cjs/view/micro-app/types.js +18 -1
  114. package/dist/cjs/view/micro-app/use-app-will-render.js +36 -19
  115. package/dist/cjs/view/micro-app/utils.js +11 -10
  116. package/dist/cjs/view/micro-iframe-app/app.js +57 -22
  117. package/dist/cjs/view/micro-iframe-app/iframe/const.js +19 -2
  118. package/dist/cjs/view/micro-iframe-app/iframe/index.js +37 -14
  119. package/dist/cjs/view/micro-iframe-app/index.js +49 -14
  120. package/dist/cjs/view/micro-iframe-app/types.js +18 -1
  121. package/dist/cjs/view/micro-iframe-app/use-frame-loaded.js +16 -13
  122. package/dist/cjs/view/modals/error/index.js +31 -22
  123. package/dist/cjs/view/modals/navigation-prompt/index.js +39 -22
  124. package/dist/cjs/view/modals/session-expiry/customHooks.js +14 -13
  125. package/dist/cjs/view/modals/session-expiry/index.js +39 -30
  126. package/dist/cjs/view/modals/wait-message/index.js +59 -22
  127. package/dist/cjs/view/modals/wait-message/{html-wait-message.js → use-html-wait-message.js} +14 -15
  128. package/dist/cjs/view/modals/wait-message/wait-message-launcher.js +14 -14
  129. package/dist/cjs/view/page.js +51 -0
  130. package/dist/cjs/view/render-with-delay/index.js +15 -9
  131. package/dist/cjs/view/render-with-host-data/index.js +16 -10
  132. package/dist/cjs/view/require-auth.js +58 -0
  133. package/dist/cjs/view/session-timeout/index.js +23 -13
  134. package/dist/cjs/view/storybook/decorator.js +15 -9
  135. package/dist/cjs/view/use-previous.js +11 -10
  136. package/dist/cjs/view/{window-size/index.js → use-window-size-change.js} +15 -16
  137. package/dist/cjs/view/visually-hidden/index.js +32 -13
  138. package/dist/esm/analytics/appdynamics.js +34 -0
  139. package/dist/esm/analytics/index.js +43 -0
  140. package/dist/{es → esm}/analytics/page-view-event.js +0 -0
  141. package/dist/{es → esm}/analytics/user-session-event.js +0 -0
  142. package/dist/{es → esm}/analytics/user-wait-event.js +0 -0
  143. package/dist/esm/analytics/web-analytics.js +30 -0
  144. package/dist/{es → esm}/api/auth/index.js +0 -0
  145. package/dist/{es → esm}/api/helpers.js +0 -0
  146. package/dist/{es → esm}/api/users/index.js +0 -0
  147. package/dist/{es → esm}/api/users/users.json +0 -0
  148. package/dist/{es → esm}/app.config.json +0 -0
  149. package/dist/esm/communication/http-client/index.js +70 -0
  150. package/dist/{es → esm}/communication/http-client/request-interceptor.js +0 -0
  151. package/dist/{es → esm}/communication/http-client/response-interceptor.js +0 -0
  152. package/dist/{es → esm}/communication/http-client/retry-axios.js +1 -1
  153. package/dist/{es → esm}/communication/http-client/retry.js +0 -0
  154. package/dist/{es → esm}/data/auth/actions.js +0 -0
  155. package/dist/{es → esm}/data/auth/reducer.js +0 -0
  156. package/dist/{es → esm}/data/breakpoint/index.js +0 -0
  157. package/dist/{es → esm}/data/error/index.js +0 -0
  158. package/dist/esm/data/index.js +11 -0
  159. package/dist/{es → esm}/data/live-message/index.js +0 -0
  160. package/dist/{es → esm}/data/logout/actions.js +0 -0
  161. package/dist/{es → esm}/data/navigation-prompt/actions.js +0 -0
  162. package/dist/{es → esm}/data/react-redux.js +0 -0
  163. package/dist/esm/data/reducers.js +33 -0
  164. package/dist/{es → esm}/data/saga.js +0 -0
  165. package/dist/{es → esm}/data/store.js +5 -12
  166. package/dist/{es → esm}/data/wait-message/actions.js +0 -0
  167. package/dist/{es → esm}/data/wait-message/reducer.js +0 -0
  168. package/dist/esm/data/webpack-hmr.js +17 -0
  169. package/dist/{es → esm}/index.js +13 -11
  170. package/dist/{es → esm}/index.pug +0 -0
  171. package/dist/esm/micro-frontend.js +10 -0
  172. package/dist/esm/package.json +7 -0
  173. package/dist/esm/sideeffect/auth/index.js +64 -0
  174. package/dist/esm/sideeffect/error-toast/index.js +43 -0
  175. package/dist/esm/sideeffect/wait-message/index.js +55 -0
  176. package/dist/{es → esm}/utils/app-config/config.js +1 -1
  177. package/dist/{es → esm}/utils/app-config/index.js +0 -0
  178. package/dist/{es → esm}/utils/app-host-integration/react.js +0 -0
  179. package/dist/{es → esm}/utils/auth/helper.js +0 -0
  180. package/dist/{es → esm}/utils/auth/index.js +25 -7
  181. package/dist/{es → esm}/utils/await.js +0 -0
  182. package/dist/{es → esm}/utils/constants.js +0 -0
  183. package/dist/{es → esm}/utils/font-size.js +0 -0
  184. package/dist/{es → esm}/utils/guest-with-service.js +0 -0
  185. package/dist/{es → esm}/utils/helpers.js +1 -1
  186. package/dist/{es → esm}/utils/history.js +0 -0
  187. package/dist/{es → esm}/utils/log-records.js +0 -0
  188. package/dist/{es → esm}/utils/micro-frontend/console-logger.js +0 -0
  189. package/dist/{es → esm}/utils/micro-frontend/guest.js +1 -1
  190. package/dist/{es → esm}/utils/micro-frontend/host.js +5 -4
  191. package/dist/{es → esm}/utils/micro-frontend/index.js +0 -0
  192. package/dist/{es → esm}/utils/micro-frontend/types.js +0 -0
  193. package/dist/{es → esm}/utils/redact-pii.js +0 -0
  194. package/dist/{es → esm}/utils/service-worker.js +2 -3
  195. package/dist/{es → esm}/utils/session.js +2 -2
  196. package/dist/{es → esm}/utils/storybook/manager.js +0 -0
  197. package/dist/{es → esm}/utils/storybook/preview.js +8 -4
  198. package/dist/esm/utils/storybook/theme.js +45 -0
  199. package/dist/esm/utils/testing/index.js +38 -0
  200. package/dist/esm/utils/testing/render-with-redux.js +35 -0
  201. package/dist/esm/utils/testing/render-with-router-redux.js +41 -0
  202. package/dist/esm/utils/testing/render-with-router.js +37 -0
  203. package/dist/esm/utils/testing/render-with-state-addons.js +69 -0
  204. package/dist/{es → esm}/utils/types.js +0 -0
  205. package/dist/{es → esm}/utils/url.js +0 -0
  206. package/dist/{es → esm}/utils/web-storage.js +0 -0
  207. package/dist/{es → esm}/utils/window.js +0 -0
  208. package/dist/esm/view/app-root/hosted-app.js +20 -0
  209. package/dist/{es → esm}/view/app-root/index.js +19 -12
  210. package/dist/esm/view/app-root/stand-alone-app.js +25 -0
  211. package/dist/{es → esm}/view/app-root/style.js +0 -0
  212. package/dist/esm/view/app-router.js +50 -0
  213. package/dist/{es/view/media-breakpoint/index.js → esm/view/breakpoint/use-breakpoint.js} +4 -6
  214. package/dist/{es/view/useMediaBreakpoints/index.js → esm/view/breakpoint/use-media-query-list.js} +4 -4
  215. package/dist/esm/view/error-boundary/default-error-template.js +5 -0
  216. package/dist/esm/view/error-boundary/index.js +54 -0
  217. package/dist/esm/view/error-toast/index.js +42 -0
  218. package/dist/{es → esm}/view/fetch-host-app-data/index.js +0 -0
  219. package/dist/esm/view/fetch-host-app-data/store.js +28 -0
  220. package/dist/esm/view/fields/check-box/index.js +52 -0
  221. package/dist/esm/view/fields/combo-box/index.js +64 -0
  222. package/dist/esm/view/fields/connect-form.js +24 -0
  223. package/dist/esm/view/fields/date-input/index.js +53 -0
  224. package/dist/esm/view/fields/date-picker/index.js +53 -0
  225. package/dist/esm/view/fields/form-item-layout/index.js +50 -0
  226. package/dist/esm/view/fields/form-layout-block-item/index.js +57 -0
  227. package/dist/esm/view/fields/input-mask/index.js +59 -0
  228. package/dist/esm/view/fields/large-text-box/index.js +53 -0
  229. package/dist/esm/view/fields/radio/index.js +62 -0
  230. package/dist/esm/view/fields/radio-group/index.js +52 -0
  231. package/dist/esm/view/fields/text-box/index.js +53 -0
  232. package/dist/esm/view/fields/watch-value.js +23 -0
  233. package/dist/esm/view/form/index.js +46 -0
  234. package/dist/{es → esm}/view/form/personal-info-section.js +29 -25
  235. package/dist/esm/view/form/submit-button/index.js +48 -0
  236. package/dist/{es → esm}/view/guest-unload-handlers/index.js +0 -0
  237. package/dist/{es → esm}/view/host-binding-events/index.js +0 -0
  238. package/dist/{es → esm}/view/intro.stories.mdx +0 -0
  239. package/dist/{es → esm}/view/live-message/index.js +0 -0
  240. package/dist/esm/view/loadable/index.js +28 -0
  241. package/dist/{es → esm}/view/login/index.js +2 -7
  242. package/dist/{es → esm}/view/message-to-host-app/index.js +0 -0
  243. package/dist/{es → esm}/view/micro-app/app-factory/index.js +23 -2
  244. package/dist/{es → esm}/view/micro-app/const.js +0 -0
  245. package/dist/{es → esm}/view/micro-app/index.js +0 -0
  246. package/dist/{es → esm}/view/micro-app/resources/manifest.js +2 -0
  247. package/dist/{es → esm}/view/micro-app/resources/script.js +1 -1
  248. package/dist/{es → esm}/view/micro-app/resources/style.js +0 -0
  249. package/dist/{es → esm}/view/micro-app/types.js +0 -0
  250. package/dist/{es → esm}/view/micro-app/use-app-will-render.js +21 -3
  251. package/dist/{es → esm}/view/micro-app/utils.js +0 -0
  252. package/dist/esm/view/micro-iframe-app/app.js +58 -0
  253. package/dist/{es → esm}/view/micro-iframe-app/iframe/const.js +0 -0
  254. package/dist/{es → esm}/view/micro-iframe-app/iframe/index.html +0 -0
  255. package/dist/esm/view/micro-iframe-app/iframe/index.js +54 -0
  256. package/dist/esm/view/micro-iframe-app/index.js +57 -0
  257. package/dist/{es → esm}/view/micro-iframe-app/types.js +0 -0
  258. package/dist/{es → esm}/view/micro-iframe-app/use-frame-loaded.js +2 -0
  259. package/dist/esm/view/modals/error/index.js +33 -0
  260. package/dist/esm/view/modals/navigation-prompt/index.js +40 -0
  261. package/dist/{es → esm}/view/modals/session-expiry/customHooks.js +0 -0
  262. package/dist/esm/view/modals/session-expiry/index.js +51 -0
  263. package/dist/esm/view/modals/wait-message/index.js +69 -0
  264. package/dist/esm/view/modals/wait-message/use-html-wait-message.js +11 -0
  265. package/dist/{es → esm}/view/modals/wait-message/wait-message-launcher.js +1 -2
  266. package/dist/{es/route/page-view.js → esm/view/page.js} +7 -0
  267. package/dist/{es → esm}/view/render-with-delay/index.js +1 -1
  268. package/dist/{es → esm}/view/render-with-host-data/index.js +0 -0
  269. package/dist/esm/view/require-auth.js +29 -0
  270. package/dist/{es → esm}/view/session-timeout/index.js +5 -1
  271. package/dist/{es → esm}/view/storybook/decorator.js +0 -0
  272. package/dist/{es → esm}/view/use-previous.js +0 -0
  273. package/dist/{es/view/window-size/index.js → esm/view/use-window-size-change.js} +3 -5
  274. package/dist/esm/view/visually-hidden/index.js +37 -0
  275. package/dist/types/communication/http-client/tests/{index.test-disable.d.ts → index.test.d.ts} +0 -0
  276. package/dist/types/data/index.d.ts +4 -0
  277. package/dist/types/data/react-redux.d.ts +8 -17
  278. package/dist/types/data/store.d.ts +0 -1
  279. package/dist/types/data/webpack-hmr.d.ts +1 -0
  280. package/dist/types/index.d.ts +5 -6
  281. package/dist/types/micro-frontend.d.ts +6 -0
  282. package/dist/types/utils/app-config/config.d.ts +1 -1
  283. package/dist/types/utils/history.d.ts +2 -2
  284. package/dist/types/utils/micro-frontend/guest.d.ts +3 -3
  285. package/dist/types/utils/micro-frontend/host.d.ts +2 -2
  286. package/dist/types/utils/micro-frontend/types.d.ts +1 -1
  287. package/dist/types/utils/session.d.ts +5 -2
  288. package/dist/types/utils/storybook/{main.d.cts → cjs/main.d.ts} +15 -1
  289. package/dist/types/utils/storybook/{middleware.d.cts → cjs/middleware.d.ts} +0 -0
  290. package/dist/types/utils/storybook/{vite.d.cts → cjs/vite.d.ts} +0 -0
  291. package/dist/types/utils/storybook/{webpack.d.cts → cjs/webpack.d.ts} +0 -0
  292. package/dist/types/utils/storybook/preview.d.ts +1 -0
  293. package/dist/types/utils/testing/render-with-router.d.ts +1 -1
  294. package/dist/types/utils/testing/render-with-state-addons.d.ts +1 -1
  295. package/dist/types/view/app-root/hosted-app.d.ts +2 -1
  296. package/dist/types/view/app-root/index.d.ts +1 -1
  297. package/dist/types/view/app-root/stand-alone-app.d.ts +1 -1
  298. package/dist/types/view/app-router.d.ts +9 -0
  299. package/dist/types/view/{media-breakpoint → breakpoint}/index.stories.d.ts +0 -0
  300. package/dist/types/view/breakpoint/use-breakpoint.d.ts +1 -0
  301. package/dist/types/view/breakpoint/use-media-query-list.d.ts +1 -0
  302. package/dist/types/view/error-boundary/default-error-template.d.ts +1 -1
  303. package/dist/types/view/fields/check-box/index.d.ts +2 -4
  304. package/dist/types/view/fields/check-box/index.stories.d.ts +1 -3
  305. package/dist/types/view/fields/combo-box/index.d.ts +1 -2
  306. package/dist/types/view/fields/combo-box/index.stories.d.ts +2 -4
  307. package/dist/types/view/fields/connect-form.d.ts +1 -1
  308. package/dist/types/view/fields/date-input/index.d.ts +1 -1
  309. package/dist/types/view/fields/date-picker/index.d.ts +2 -1
  310. package/dist/types/view/fields/date-picker/index.stories.d.ts +1 -3
  311. package/dist/types/view/fields/form-item-layout/index.d.ts +1 -1
  312. package/dist/types/view/fields/form-layout-block-item/index.d.ts +8 -0
  313. package/dist/types/view/{header → fields/form-layout-block-item}/index.stories.d.ts +2 -2
  314. package/dist/types/view/fields/input-mask/index.d.ts +2 -2
  315. package/dist/types/view/fields/input-mask/index.stories.d.ts +1 -3
  316. package/dist/types/view/fields/large-text-box/index.d.ts +1 -1
  317. package/dist/types/view/fields/large-text-box/index.stories.d.ts +1 -3
  318. package/dist/types/view/fields/radio/index.d.ts +2 -2
  319. package/dist/types/view/fields/radio/index.stories.d.ts +1 -3
  320. package/dist/types/view/fields/radio-group/index.d.ts +1 -1
  321. package/dist/types/view/fields/text-box/index.d.ts +1 -1
  322. package/dist/types/view/fields/watch-value.d.ts +2 -2
  323. package/dist/types/view/form/personal-info-section.d.ts +3 -3
  324. package/dist/types/view/form/submit-button/index.d.ts +2 -1
  325. package/dist/types/view/live-message/index.d.ts +1 -1
  326. package/dist/types/view/login/index.d.ts +1 -2
  327. package/dist/types/view/micro-app/app-factory/index.d.ts +2 -2
  328. package/dist/types/view/micro-app/resources/manifest.d.ts +2 -2
  329. package/dist/types/view/modals/error/index.d.ts +3 -2
  330. package/dist/types/view/modals/navigation-prompt/index.d.ts +0 -1
  331. package/dist/types/view/modals/session-expiry/index.d.ts +0 -1
  332. package/dist/types/view/modals/wait-message/index.stories.d.ts +6 -2
  333. package/dist/types/view/modals/wait-message/use-html-wait-message.d.ts +1 -0
  334. package/dist/types/view/modals/wait-message/wait-message-launcher.d.ts +1 -2
  335. package/dist/types/view/page.d.ts +8 -0
  336. package/dist/types/view/require-auth.d.ts +8 -0
  337. package/dist/types/view/session-timeout/index.d.ts +1 -1
  338. package/dist/types/view/session-timeout/index.stories.d.ts +1 -4
  339. package/dist/types/view/use-window-size-change.d.ts +1 -0
  340. package/package.json +67 -36
  341. package/dist/cjs/communication/http-client/tests/index.test-disable.js +0 -64
  342. package/dist/cjs/route/index.js +0 -49
  343. package/dist/cjs/route/page-view.js +0 -38
  344. package/dist/cjs/route/private-route/index.js +0 -69
  345. package/dist/cjs/typings/custom.d.js +0 -0
  346. package/dist/cjs/typings/elliemae.d.js +0 -0
  347. package/dist/cjs/typings/styled.d.js +0 -19
  348. package/dist/cjs/typings/thirdparty.d.js +0 -0
  349. package/dist/cjs/view/header/center-region/index.js +0 -65
  350. package/dist/cjs/view/header/index.js +0 -44
  351. package/dist/cjs/view/header/logo-region/index.js +0 -33
  352. package/dist/cjs/view/header/logo-region/logo.svg +0 -2
  353. package/dist/cjs/view/header/nav-region/index.js +0 -47
  354. package/dist/cjs/view/header/nav-region/notification/index.js +0 -32
  355. package/dist/cjs/view/header/nav-region/notification/index.svg +0 -5
  356. package/dist/cjs/view/header/nav-region/user/index.js +0 -32
  357. package/dist/cjs/view/header/nav-region/user/index.svg +0 -4
  358. package/dist/es/analytics/appdynamics.js +0 -18
  359. package/dist/es/analytics/index.js +0 -27
  360. package/dist/es/analytics/web-analytics.js +0 -14
  361. package/dist/es/communication/http-client/index.js +0 -35
  362. package/dist/es/communication/http-client/tests/index.test-disable.js +0 -46
  363. package/dist/es/data/reducers.js +0 -18
  364. package/dist/es/package.json +0 -1
  365. package/dist/es/route/index.js +0 -26
  366. package/dist/es/route/private-route/index.js +0 -46
  367. package/dist/es/sideeffect/auth/index.js +0 -47
  368. package/dist/es/sideeffect/error-toast/index.js +0 -25
  369. package/dist/es/sideeffect/wait-message/index.js +0 -38
  370. package/dist/es/typings/custom.d.js +0 -0
  371. package/dist/es/typings/elliemae.d.js +0 -0
  372. package/dist/es/typings/styled.d.js +0 -1
  373. package/dist/es/typings/thirdparty.d.js +0 -0
  374. package/dist/es/utils/storybook/theme.js +0 -13
  375. package/dist/es/utils/testing/index.js +0 -22
  376. package/dist/es/utils/testing/render-with-redux.js +0 -17
  377. package/dist/es/utils/testing/render-with-router-redux.js +0 -23
  378. package/dist/es/utils/testing/render-with-router.js +0 -16
  379. package/dist/es/utils/testing/render-with-state-addons.js +0 -38
  380. package/dist/es/view/app-root/hosted-app.js +0 -15
  381. package/dist/es/view/app-root/stand-alone-app.js +0 -21
  382. package/dist/es/view/error-boundary/default-error-template.js +0 -5
  383. package/dist/es/view/error-boundary/index.js +0 -36
  384. package/dist/es/view/error-toast/index.js +0 -35
  385. package/dist/es/view/fetch-host-app-data/store.js +0 -12
  386. package/dist/es/view/fields/check-box/index.js +0 -25
  387. package/dist/es/view/fields/combo-box/index.js +0 -28
  388. package/dist/es/view/fields/connect-form.js +0 -10
  389. package/dist/es/view/fields/date-input/index.js +0 -22
  390. package/dist/es/view/fields/date-picker/index.js +0 -22
  391. package/dist/es/view/fields/form-item-layout/index.js +0 -23
  392. package/dist/es/view/fields/input-mask/index.js +0 -28
  393. package/dist/es/view/fields/large-text-box/index.js +0 -22
  394. package/dist/es/view/fields/radio/index.js +0 -24
  395. package/dist/es/view/fields/radio-group/index.js +0 -21
  396. package/dist/es/view/fields/text-box/index.js +0 -22
  397. package/dist/es/view/fields/watch-value.js +0 -21
  398. package/dist/es/view/form/index.js +0 -33
  399. package/dist/es/view/form/submit-button/index.js +0 -19
  400. package/dist/es/view/header/center-region/index.js +0 -42
  401. package/dist/es/view/header/index.js +0 -21
  402. package/dist/es/view/header/logo-region/index.js +0 -10
  403. package/dist/es/view/header/logo-region/logo.svg +0 -2
  404. package/dist/es/view/header/nav-region/index.js +0 -24
  405. package/dist/es/view/header/nav-region/notification/index.js +0 -9
  406. package/dist/es/view/header/nav-region/notification/index.svg +0 -5
  407. package/dist/es/view/header/nav-region/user/index.js +0 -9
  408. package/dist/es/view/header/nav-region/user/index.svg +0 -4
  409. package/dist/es/view/loadable/index.js +0 -14
  410. package/dist/es/view/micro-iframe-app/app.js +0 -27
  411. package/dist/es/view/micro-iframe-app/iframe/index.js +0 -35
  412. package/dist/es/view/micro-iframe-app/index.js +0 -26
  413. package/dist/es/view/modals/error/index.js +0 -24
  414. package/dist/es/view/modals/navigation-prompt/index.js +0 -22
  415. package/dist/es/view/modals/session-expiry/index.js +0 -40
  416. package/dist/es/view/modals/wait-message/html-wait-message.js +0 -13
  417. package/dist/es/view/modals/wait-message/index.js +0 -36
  418. package/dist/es/view/visually-hidden/index.js +0 -22
  419. package/dist/types/route/index.d.ts +0 -8
  420. package/dist/types/route/page-view.d.ts +0 -1
  421. package/dist/types/route/private-route/index.d.ts +0 -8
  422. package/dist/types/view/header/center-region/index.d.ts +0 -9
  423. package/dist/types/view/header/index.d.ts +0 -7
  424. package/dist/types/view/header/logo-region/index.d.ts +0 -2
  425. package/dist/types/view/header/nav-region/index.d.ts +0 -2
  426. package/dist/types/view/header/nav-region/notification/index.d.ts +0 -2
  427. package/dist/types/view/header/nav-region/user/index.d.ts +0 -2
  428. package/dist/types/view/media-breakpoint/index.d.ts +0 -2
  429. package/dist/types/view/modals/wait-message/html-wait-message.d.ts +0 -6
  430. package/dist/types/view/useMediaBreakpoints/index.d.ts +0 -1
  431. package/dist/types/view/window-size/index.d.ts +0 -2
@@ -0,0 +1,70 @@
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 axios from "axios";
33
+ import { getAppConfigValue } from "../../utils/app-config/config.js";
34
+ import { getAuthorizationHeader } from "../../utils/auth/helper.js";
35
+ import setupRetry from "./retry.js";
36
+ import { requestInterceptor } from "./request-interceptor.js";
37
+ import { handleSuccess, handleFailure } from "./response-interceptor.js";
38
+ const REQUEST_TIMEOUT = 2 * 60 * 1e3;
39
+ const getHTTPClient = ({
40
+ baseURL = getAppConfigValue("serviceEndpoints.api", ""),
41
+ headers = {}
42
+ } = {}) => {
43
+ const client = axios.create({ baseURL, headers });
44
+ if (client?.defaults?.timeout)
45
+ client.defaults.timeout = REQUEST_TIMEOUT;
46
+ setupRetry(client);
47
+ const { request, response } = client?.interceptors || {};
48
+ if (request)
49
+ request.use(requestInterceptor);
50
+ if (response)
51
+ response.use(handleSuccess, handleFailure);
52
+ return client;
53
+ };
54
+ const getAuthHTTPClient = (_a = {}) => {
55
+ var _b = _a, {
56
+ baseURL,
57
+ headers = {}
58
+ } = _b, rest = __objRest(_b, [
59
+ "baseURL",
60
+ "headers"
61
+ ]);
62
+ return getHTTPClient(__spreadValues({
63
+ baseURL,
64
+ headers: __spreadProps(__spreadValues({}, headers), { Authorization: getAuthorizationHeader() })
65
+ }, rest));
66
+ };
67
+ export {
68
+ getAuthHTTPClient,
69
+ getHTTPClient
70
+ };
@@ -64,7 +64,7 @@ const onError = (err) => {
64
64
  return Promise.reject(err);
65
65
  }
66
66
  const onBackoffPromise = new Promise((resolve) => {
67
- const delay = (Math.pow(2, config.currentRetryAttempt) - 1) / 2 * 1e3;
67
+ const delay = (2 ** config.currentRetryAttempt - 1) / 2 * 1e3;
68
68
  err.config.retryConfig.currentRetryAttempt += 1;
69
69
  setTimeout(resolve, delay);
70
70
  });
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,11 @@
1
+ import { useInjectReducer, useInjectSaga } from "redux-injectors";
2
+ import { useAppDispatch, useAppSelector } from "./react-redux.js";
3
+ import { createAppStore, getStore } from "./store.js";
4
+ export {
5
+ createAppStore as configureStore,
6
+ getStore,
7
+ useAppDispatch,
8
+ useAppSelector,
9
+ useInjectReducer,
10
+ useInjectSaga
11
+ };
File without changes
File without changes
File without changes
@@ -0,0 +1,33 @@
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 { combineReducers } from "@reduxjs/toolkit";
18
+ import { waitMessageReducer } from "./wait-message/reducer.js";
19
+ import { errorReducer } from "./error/index.js";
20
+ import { breakpointReducer } from "./breakpoint/index.js";
21
+ import { liveMessageReducer } from "./live-message/index.js";
22
+ const createReducer = (injectedReducers = {}) => {
23
+ const rootReducer = combineReducers(__spreadValues({
24
+ waitMessage: waitMessageReducer,
25
+ error: errorReducer,
26
+ breakpoint: breakpointReducer,
27
+ liveMessage: liveMessageReducer
28
+ }, injectedReducers));
29
+ return rootReducer;
30
+ };
31
+ export {
32
+ createReducer
33
+ };
File without changes
@@ -1,7 +1,10 @@
1
1
  import { configureStore } from "@reduxjs/toolkit";
2
- import { createInjectorsEnhancer, forceReducerReload } from "redux-injectors";
2
+ import {
3
+ createInjectorsEnhancer
4
+ } from "redux-injectors";
3
5
  import createSagaMiddleware from "redux-saga";
4
6
  import { createReducer } from "./reducers.js";
7
+ import { enableHotReloading } from "./webpack-hmr.js";
5
8
  const rootReducer = createReducer();
6
9
  let appStore = null;
7
10
  const setStore = (store) => {
@@ -23,17 +26,7 @@ const createStore = (initialState, sagaMiddleware, history, middlewareConfig = {
23
26
  preloadedState: initialState,
24
27
  enhancers
25
28
  });
26
- let hotModule = null;
27
- try {
28
- hotModule = module?.hot;
29
- } catch (err) {
30
- hotModule = import.meta?.webpackHot;
31
- }
32
- if (hotModule) {
33
- hotModule.accept("./reducers", () => {
34
- forceReducerReload(baseStore);
35
- });
36
- }
29
+ enableHotReloading(baseStore);
37
30
  return baseStore;
38
31
  };
39
32
  const createAppStore = (initialState = {}, history, middlewareConfig) => {
File without changes
File without changes
@@ -0,0 +1,17 @@
1
+ import { forceReducerReload } from "redux-injectors";
2
+ const enableHotReloading = (baseStore) => {
3
+ let hotModule = null;
4
+ try {
5
+ hotModule = module?.hot;
6
+ } catch (err) {
7
+ hotModule = import.meta?.webpackHot;
8
+ }
9
+ if (hotModule) {
10
+ hotModule.accept("./reducers", () => {
11
+ forceReducerReload(baseStore);
12
+ });
13
+ }
14
+ };
15
+ export {
16
+ enableHotReloading
17
+ };
@@ -1,12 +1,12 @@
1
1
  import { isUserAuthorized, login, authorize } from "./utils/auth/index.js";
2
- import { PrivateRoute } from "./route/private-route/index.js";
3
- import { AppRoute } from "./route/index.js";
4
2
  import {
5
3
  getHTTPClient,
6
4
  getAuthHTTPClient
7
5
  } from "./communication/http-client/index.js";
8
6
  import { onAuthorizationFailure } from "./communication/http-client/response-interceptor.js";
9
7
  import { auth } from "./data/auth/actions.js";
8
+ import { RequireAuth } from "./view/require-auth.js";
9
+ import { Page } from "./view/page.js";
10
10
  import { default as default2 } from "./utils/constants.js";
11
11
  import { useAppDispatch, useAppSelector } from "./data/react-redux.js";
12
12
  import { useInjectReducer, useInjectSaga } from "redux-injectors";
@@ -35,7 +35,10 @@ import {
35
35
  setAppConfigValue,
36
36
  setAppConfig
37
37
  } from "./utils/app-config/config.js";
38
- import { getMicroFrontEndAppConfig } from "./utils/micro-frontend/index.js";
38
+ import {
39
+ getMicroFrontEndAppConfig,
40
+ getLogger
41
+ } from "./utils/micro-frontend/index.js";
39
42
  import { loadAppConfig } from "./utils/app-config/index.js";
40
43
  import { AppRoot } from "./view/app-root/index.js";
41
44
  import { ErrorBoundary } from "./view/error-boundary/index.js";
@@ -62,13 +65,12 @@ import { renderWithRouter } from "./utils/testing/render-with-router.js";
62
65
  import { RenderWithStateAddOns } from "./utils/testing/render-with-state-addons.js";
63
66
  import { getApiActionCreator, getSelectField } from "./api/helpers.js";
64
67
  import { getUser } from "./api/users/index.js";
65
- import { useMediaBreakpoints } from "./view/useMediaBreakpoints/index.js";
66
68
  import { withAppDecorator } from "./view/storybook/decorator.js";
67
- import { Header } from "./view/header/index.js";
68
69
  import { ErrorToast } from "./view/error-toast/index.js";
69
70
  import { Form } from "./view/form/index.js";
70
71
  import { ConnectForm } from "./view/fields/connect-form.js";
71
72
  import { FormItemLayout } from "./view/fields/form-item-layout/index.js";
73
+ import { FormLayoutBlockItem } from "./view/fields/form-layout-block-item/index.js";
72
74
  import { TextBox } from "./view/fields/text-box/index.js";
73
75
  import { LargeTextBox } from "./view/fields/large-text-box/index.js";
74
76
  import {
@@ -83,7 +85,7 @@ import { RadioGroup } from "./view/fields/radio-group/index.js";
83
85
  import { DateInput } from "./view/fields/date-input/index.js";
84
86
  import { DatePicker } from "./view/fields/date-picker/index.js";
85
87
  import { FormSubmitButton } from "./view/form/submit-button/index.js";
86
- import { MediaBreakpoint } from "./view/media-breakpoint/index.js";
88
+ import { useMediaQueryList } from "./view/breakpoint/use-media-query-list.js";
87
89
  import { VisuallyHidden } from "./view/visually-hidden/index.js";
88
90
  import { actions } from "./data/live-message/index.js";
89
91
  import { actions as actions2 } from "./data/error/index.js";
@@ -110,22 +112,21 @@ export {
110
112
  ErrorToast,
111
113
  Form,
112
114
  FormItemLayout,
115
+ FormLayoutBlockItem,
113
116
  FormSubmitButton,
114
- Header,
115
117
  InputMask,
116
118
  LargeTextBox,
117
119
  MASK_PIPES,
118
120
  MASK_TYPES,
119
- MediaBreakpoint,
120
121
  MicroApp,
121
122
  MicroIFrameApp,
122
123
  ACTIONS as NavigationPromptActions,
123
- PrivateRoute,
124
+ Page,
124
125
  Radio,
125
126
  RadioGroup,
126
127
  RegisterService,
127
128
  RenderWithStateAddOns,
128
- AppRoute as Route,
129
+ RequireAuth,
129
130
  SessionTimeout,
130
131
  TextBox,
131
132
  Themes,
@@ -145,6 +146,7 @@ export {
145
146
  getAuthorizationHeader,
146
147
  getHTTPClient,
147
148
  getHostAppDataByKey,
149
+ getLogger,
148
150
  getMicroFrontEndAppConfig,
149
151
  getNavigationLinks,
150
152
  getRedirectUrl,
@@ -187,7 +189,7 @@ export {
187
189
  useAppSelector,
188
190
  useInjectReducer,
189
191
  useInjectSaga,
190
- useMediaBreakpoints,
192
+ useMediaQueryList,
191
193
  waitMessage as waitMessageAction,
192
194
  withAppDecorator
193
195
  };
File without changes
@@ -0,0 +1,10 @@
1
+ import { CMicroAppGuest } from "./utils/micro-frontend/guest.js";
2
+ import { CMicroAppHost } from "./utils/micro-frontend/host.js";
3
+ import { getMicroFrontEndAppConfig } from "./utils/micro-frontend/index.js";
4
+ import { enableReactAppForHostIntegration } from "./utils/app-host-integration/react.js";
5
+ export {
6
+ CMicroAppGuest,
7
+ CMicroAppHost,
8
+ enableReactAppForHostIntegration,
9
+ getMicroFrontEndAppConfig
10
+ };
@@ -0,0 +1,7 @@
1
+ {
2
+ "type": "module",
3
+ "sideEffects": [
4
+ "*.css",
5
+ "*.html"
6
+ ]
7
+ }
@@ -0,0 +1,64 @@
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
+ import {
21
+ call,
22
+ put,
23
+ takeLatest
24
+ } from "redux-saga/effects";
25
+ import {
26
+ LOGIN,
27
+ LOGOUT,
28
+ LOGIN_SUCCESS
29
+ } from "../../data/auth/actions.js";
30
+ import { authorize, endSession } from "../../utils/auth/index.js";
31
+ import { getLogger } from "../../utils/micro-frontend/index.js";
32
+ import { logRecords } from "../../utils/log-records.js";
33
+ function* login({
34
+ payload
35
+ }) {
36
+ try {
37
+ yield call(authorize, payload);
38
+ yield put({ type: LOGIN_SUCCESS });
39
+ } catch (err) {
40
+ getLogger().error(__spreadProps(__spreadValues({}, logRecords.LOGIN_FAILED), {
41
+ exception: err
42
+ }));
43
+ }
44
+ }
45
+ function* logout({
46
+ payload
47
+ }) {
48
+ try {
49
+ yield call(endSession, payload);
50
+ } catch (err) {
51
+ getLogger().error(__spreadProps(__spreadValues({}, logRecords.LOGOUT_FAILED), {
52
+ exception: err
53
+ }));
54
+ }
55
+ }
56
+ function* authentication() {
57
+ yield takeLatest(LOGIN, login);
58
+ yield takeLatest(LOGOUT, logout);
59
+ }
60
+ export {
61
+ authentication,
62
+ login,
63
+ logout
64
+ };
@@ -0,0 +1,43 @@
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
+ import { call, takeLatest } from "redux-saga/effects";
21
+ import { actions } from "../../data/error/index.js";
22
+ import { CMicroAppGuest } from "../../utils/micro-frontend/guest.js";
23
+ import { getLogger } from "../../utils/micro-frontend/index.js";
24
+ import { logRecords } from "../../utils/log-records.js";
25
+ function* openErrorToast(action) {
26
+ try {
27
+ const microApp = yield call(CMicroAppGuest.getInstance.bind(CMicroAppGuest));
28
+ const host = yield call(microApp.getHost.bind(microApp));
29
+ const message = action?.payload?.description || action?.payload?.messageText;
30
+ if (host && message)
31
+ yield call(host.openErrorBanner.bind(host), message);
32
+ } catch (ex) {
33
+ getLogger().error(__spreadProps(__spreadValues({}, logRecords.ERR_TOAST_OPEN_FAILED), {
34
+ exception: ex
35
+ }));
36
+ }
37
+ }
38
+ function* errorToast() {
39
+ yield takeLatest(actions.set.type, openErrorToast);
40
+ }
41
+ export {
42
+ errorToast
43
+ };
@@ -0,0 +1,55 @@
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
+ import { call, takeLatest } from "redux-saga/effects";
21
+ import { ACTIONS } from "../../data/wait-message/actions.js";
22
+ import { CMicroAppGuest } from "../../utils/micro-frontend/guest.js";
23
+ import { getLogger } from "../../utils/micro-frontend/index.js";
24
+ import { logRecords } from "../../utils/log-records.js";
25
+ function* openWaitMessage() {
26
+ try {
27
+ const microApp = yield call(CMicroAppGuest.getInstance.bind(CMicroAppGuest));
28
+ const host = yield call(microApp.getHost.bind(microApp));
29
+ if (host)
30
+ yield call(host.openWaitMessage.bind(host));
31
+ } catch (ex) {
32
+ getLogger().error(__spreadProps(__spreadValues({}, logRecords.WAIT_MSG_OPEN_FAILED), {
33
+ exception: ex
34
+ }));
35
+ }
36
+ }
37
+ function* closeWaitMessage() {
38
+ try {
39
+ const microApp = yield call(CMicroAppGuest.getInstance.bind(CMicroAppGuest));
40
+ const host = yield call(microApp.getHost.bind(microApp));
41
+ if (host)
42
+ yield call(host.closeWaitMessage.bind(host));
43
+ } catch (ex) {
44
+ getLogger().error(__spreadProps(__spreadValues({}, logRecords.WAIT_MSG_CLOSE_FAILED), {
45
+ exception: ex
46
+ }));
47
+ }
48
+ }
49
+ function* waitMessage() {
50
+ yield takeLatest(ACTIONS.OPEN, openWaitMessage);
51
+ yield takeLatest(ACTIONS.CLOSE, closeWaitMessage);
52
+ }
53
+ export {
54
+ waitMessage
55
+ };
@@ -4,7 +4,7 @@ const setAppConfig = (config) => {
4
4
  gAppConfig = config;
5
5
  };
6
6
  const getAppConfigValue = (key = "", defaultValue = null) => _.clone(_.get(gAppConfig, key, defaultValue));
7
- const setAppConfigValue = (key = "", value) => _.set(gAppConfig, key, value);
7
+ const setAppConfigValue = (key, value) => _.set(gAppConfig, key, value);
8
8
  const hasItem = (key = "") => _.has(gAppConfig, key);
9
9
  export {
10
10
  getAppConfigValue,
File without changes
File without changes
@@ -1,3 +1,22 @@
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));
1
20
  import { browserHistory as history } from "../history.js";
2
21
  import {
3
22
  getToken,
@@ -69,10 +88,9 @@ const endSession = async ({
69
88
  logoutUrl.search = searchParams.toString();
70
89
  window.location.replace(logoutUrl.href);
71
90
  } catch (err) {
72
- getLogger().error({
73
- ...logRecords.LOGOUT_FAILED,
91
+ getLogger().error(__spreadProps(__spreadValues({}, logRecords.LOGOUT_FAILED), {
74
92
  exception: err
75
- });
93
+ }));
76
94
  }
77
95
  };
78
96
  const authorize = async ({
@@ -113,14 +131,14 @@ const authorize = async ({
113
131
  setAppDynamicsUserData({ instanceId, userId: userName });
114
132
  const data = await getUser({ userName });
115
133
  sessionStorage.setItem("userSettings", JSON.stringify(data));
116
- history.push(new URL(redirectUri).pathname);
134
+ history.push(`${new URL(redirectUri).pathname}/rerender`);
135
+ history.replace(new URL(redirectUri).pathname);
117
136
  } catch (err) {
118
137
  const code = err?.response?.data?.code;
119
138
  await endSession({ clientId, redirectUri, code, scope, responseType });
120
- getLogger().error({
121
- ...logRecords.LOGIN_FAILED,
139
+ getLogger().error(__spreadProps(__spreadValues({}, logRecords.LOGIN_FAILED), {
122
140
  exception: err
123
- });
141
+ }));
124
142
  }
125
143
  };
126
144
  const login = async ({
File without changes
File without changes
File without changes
File without changes
@@ -1,6 +1,6 @@
1
1
  const isProd = () => false;
2
2
  const isCIBuild = () => process.env.CI === "true";
3
- const PROTOCOL = new RegExp("^(?:[a-z]+:)?//", "i");
3
+ const PROTOCOL = /^(?:[a-z]+:)?/;
4
4
  const convertRelativeToAbsoluteUrl = (url) => {
5
5
  if (!PROTOCOL.test(url)) {
6
6
  return new URL(url, document.location.origin).href;
File without changes
File without changes
@@ -82,7 +82,7 @@ class CMicroAppGuest {
82
82
  if (!isCrossDomain()) {
83
83
  host = window.parent?.emui?.MicroAppHost || null;
84
84
  } else if (ssfGuest && this.props.hostName) {
85
- ssfGuest.connect();
85
+ await ssfGuest.connect();
86
86
  const timeout = new Promise((resolve) => {
87
87
  setTimeout(resolve, 100, null);
88
88
  });
@@ -14,6 +14,7 @@ import {
14
14
  HOST_WINDOW_BREAKPOINT_CHANGED
15
15
  } from "../constants.js";
16
16
  import {
17
+ getWindow,
17
18
  getCurrentBreakpoint,
18
19
  getViewportSize as getWindowViewportSize
19
20
  } from "../window.js";
@@ -64,10 +65,10 @@ class CMicroAppHost {
64
65
  return this.logger;
65
66
  }
66
67
  getItem(key) {
67
- return window.parent.sessionStorage.getItem(key);
68
+ return getWindow().sessionStorage.getItem(key);
68
69
  }
69
70
  setItem(key, value) {
70
- window.parent.sessionStorage.setItem(key, value);
71
+ getWindow().sessionStorage.setItem(key, value);
71
72
  }
72
73
  getGuests() {
73
74
  return this.activeGuests;
@@ -104,10 +105,10 @@ class CMicroAppHost {
104
105
  store.dispatch(error.set({ description: message }));
105
106
  }
106
107
  getAuthToken() {
107
- return window.parent.sessionStorage.getItem("Authorization");
108
+ return getWindow().sessionStorage.getItem("Authorization");
108
109
  }
109
110
  renewAuthToken() {
110
- return window.parent.sessionStorage.getItem("Authorization");
111
+ return getWindow().sessionStorage.getItem("Authorization");
111
112
  }
112
113
  logout() {
113
114
  const store = getStore();
File without changes
File without changes
File without changes
@@ -7,10 +7,9 @@ const initServiceWorker = (swDest = "") => {
7
7
  navigator.serviceWorker.register(`${swDest.replace(/\/?$/, "/")}sw.js`).then(() => {
8
8
  logger.debug("Service Worker registered");
9
9
  }).catch((registrationError) => {
10
- logger.error({
11
- ...logRecords.SERVICE_WORKER_FAILED,
10
+ logger.error(__spreadProps(__spreadValues({}, logRecords.SERVICE_WORKER_FAILED), {
12
11
  exception: registrationError
13
- });
12
+ }));
14
13
  });
15
14
  });
16
15
  }