@elliemae/pui-app-sdk 5.7.1 → 6.0.0-next.10

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 (304) hide show
  1. package/README.md +8 -0
  2. package/dist/cjs/analytics/appdynamics.js +1 -1
  3. package/dist/cjs/analytics/page-view-event.js +1 -1
  4. package/dist/cjs/api/helpers.js +14 -4
  5. package/dist/cjs/api/users/index.endpoint.cjs +12 -0
  6. package/dist/cjs/app.config.json +2 -2
  7. package/dist/cjs/communication/http-client/index.js +2 -2
  8. package/dist/cjs/communication/http-client/response-interceptor.js +2 -2
  9. package/dist/cjs/communication/http-client/retry-axios.js +14 -14
  10. package/dist/cjs/communication/http-client/retry.js +1 -1
  11. package/dist/cjs/communication/http-client/tests/hello.endpoint.cjs +12 -0
  12. package/dist/cjs/communication/http-client/tests/private.endpoint.cjs +13 -0
  13. package/dist/cjs/data/appMiddleware.js +2 -3
  14. package/dist/cjs/{view/fields/large-text-box/index.js → data/auth-state.js} +24 -20
  15. package/dist/cjs/data/breakpoint-state.js +46 -0
  16. package/dist/cjs/data/{error/index.js → error-state.js} +3 -3
  17. package/dist/cjs/data/errorMiddleware.js +2 -2
  18. package/dist/cjs/data/listenerMiddleware.js +5 -3
  19. package/dist/cjs/data/{live-message/index.js → live-message-state.js} +3 -3
  20. package/dist/cjs/data/{logout/actions.js → logout-actions.js} +6 -16
  21. package/dist/cjs/data/{navigation-prompt/actions.js → navigation-prompt-actions.js} +6 -16
  22. package/dist/cjs/data/queryMiddleware.js +3 -1
  23. package/dist/cjs/data/reducers.js +8 -8
  24. package/dist/cjs/data/store.js +12 -8
  25. package/dist/cjs/data/wait-message-state.js +46 -0
  26. package/dist/cjs/index.js +13 -35
  27. package/dist/cjs/sideeffect/auth/index.js +4 -4
  28. package/dist/cjs/sideeffect/error-toast/index.js +3 -3
  29. package/dist/cjs/sideeffect/wait-message/index.js +3 -3
  30. package/dist/cjs/utils/app-config/config.js +2 -2
  31. package/dist/cjs/utils/app-config/index.js +1 -1
  32. package/dist/cjs/utils/auth/helper.js +2 -2
  33. package/dist/cjs/utils/auth/index.js +2 -2
  34. package/dist/cjs/utils/font-size.js +1 -1
  35. package/dist/cjs/utils/micro-frontend/guest.js +9 -8
  36. package/dist/cjs/utils/micro-frontend/host.js +10 -8
  37. package/dist/cjs/utils/micro-frontend/index.js +15 -5
  38. package/dist/cjs/utils/micro-frontend/ssfguest-adapter.js +1 -1
  39. package/dist/cjs/utils/session.js +26 -4
  40. package/dist/cjs/{data/breakpoint/index.js → utils/storybook/main.js} +31 -26
  41. package/dist/cjs/utils/storybook/manager.js +2 -2
  42. package/dist/cjs/{data/wait-message/actions.js → utils/storybook/middleware.js} +7 -18
  43. package/dist/cjs/utils/storybook/preview.js +10 -5
  44. package/dist/cjs/utils/storybook/theme.js +5 -8
  45. package/dist/cjs/utils/storybook/vite.js +33 -0
  46. package/dist/cjs/{view/fields/date-input/index.js → utils/storybook/webpack.js} +22 -20
  47. package/dist/cjs/utils/testing/index.js +1 -1
  48. package/dist/cjs/utils/testing/render-with-redux.js +1 -5
  49. package/dist/cjs/utils/testing/render-with-router-redux.js +1 -2
  50. package/dist/cjs/utils/url.js +2 -0
  51. package/dist/cjs/utils/web-storage.js +1 -1
  52. package/dist/cjs/utils/window.js +1 -1
  53. package/dist/cjs/view/app-root/hosted-app.js +3 -3
  54. package/dist/cjs/view/app-root/index.js +2 -0
  55. package/dist/cjs/view/app-root/stand-alone-app.js +3 -3
  56. package/dist/cjs/view/app-root/style.js +1 -1
  57. package/dist/cjs/{data/auth/actions.js → view/app-root/use-prefetch-resources.js} +15 -31
  58. package/dist/cjs/view/breakpoint/use-breakpoint.js +4 -4
  59. package/dist/cjs/view/error-boundary/index.js +2 -2
  60. package/dist/cjs/view/error-toast/index.js +4 -4
  61. package/dist/cjs/view/fetch-host-app-data/index.js +1 -1
  62. package/dist/cjs/view/fetch-host-app-data/store.js +12 -2
  63. package/dist/cjs/view/fields/autocomplete/index.js +4 -1
  64. package/dist/cjs/view/fields/combo-box-v3/index.js +1 -1
  65. package/dist/cjs/view/fields/masked-input-text/index.js +1 -1
  66. package/dist/cjs/view/fields/watch-value.js +1 -1
  67. package/dist/cjs/view/form/index.js +1 -1
  68. package/dist/cjs/view/form/personal-info-section.js +5 -7
  69. package/dist/cjs/view/login/index.js +2 -2
  70. package/dist/cjs/view/micro-app/app-factory/index.js +17 -7
  71. package/dist/cjs/view/micro-app/index.js +1 -1
  72. package/dist/cjs/view/micro-app/resources/script.js +16 -8
  73. package/dist/cjs/view/micro-app/resources/style.js +14 -1
  74. package/dist/cjs/view/micro-app/use-app-will-render.js +15 -5
  75. package/dist/cjs/view/micro-iframe-app/app.js +1 -1
  76. package/dist/cjs/view/micro-iframe-app/iframe/index.js +1 -2
  77. package/dist/cjs/view/modals/navigation-prompt/index.js +3 -3
  78. package/dist/cjs/view/modals/session-expiry/index.js +3 -3
  79. package/dist/cjs/view/page.js +1 -1
  80. package/dist/cjs/view/require-auth.js +3 -3
  81. package/dist/cjs/view/session-timeout/index.js +2 -2
  82. package/dist/cjs/view/storybook/decorator.js +1 -1
  83. package/dist/cjs/view/use-window-size-change.js +1 -1
  84. package/dist/cjs/view/visually-hidden/index.js +2 -1
  85. package/dist/cjs/view/wait-message/index.js +2 -2
  86. package/dist/cjs/view/wait-message/wait-message-launcher.js +3 -3
  87. package/dist/esm/analytics/page-view-event.js +1 -1
  88. package/dist/esm/api/users/index.endpoint.cjs +12 -0
  89. package/dist/esm/app.config.json +2 -2
  90. package/dist/esm/communication/http-client/response-interceptor.js +1 -1
  91. package/dist/esm/communication/http-client/retry-axios.js +13 -13
  92. package/dist/esm/communication/http-client/retry.js +1 -1
  93. package/dist/esm/communication/http-client/tests/hello.endpoint.cjs +12 -0
  94. package/dist/esm/communication/http-client/tests/private.endpoint.cjs +13 -0
  95. package/dist/esm/data/appMiddleware.js +2 -3
  96. package/dist/esm/data/auth-state.js +24 -0
  97. package/dist/esm/data/breakpoint-state.js +26 -0
  98. package/dist/esm/data/errorMiddleware.js +2 -2
  99. package/dist/esm/data/listenerMiddleware.js +5 -3
  100. package/dist/esm/data/logout-actions.js +8 -0
  101. package/dist/esm/data/navigation-prompt-actions.js +8 -0
  102. package/dist/esm/data/queryMiddleware.js +3 -1
  103. package/dist/esm/data/reducers.js +4 -4
  104. package/dist/esm/data/store.js +12 -8
  105. package/dist/esm/data/wait-message-state.js +26 -0
  106. package/dist/esm/index.js +11 -37
  107. package/dist/esm/sideeffect/auth/index.js +4 -8
  108. package/dist/esm/sideeffect/error-toast/index.js +2 -2
  109. package/dist/esm/sideeffect/wait-message/index.js +3 -3
  110. package/dist/esm/utils/auth/helper.js +1 -1
  111. package/dist/esm/utils/auth/index.js +2 -2
  112. package/dist/esm/utils/font-size.js +1 -1
  113. package/dist/esm/utils/micro-frontend/guest.js +8 -7
  114. package/dist/esm/utils/micro-frontend/host.js +6 -4
  115. package/dist/esm/utils/micro-frontend/index.js +14 -4
  116. package/dist/esm/utils/session.js +13 -1
  117. package/dist/esm/utils/storybook/main.js +33 -0
  118. package/dist/esm/utils/storybook/manager.js +2 -2
  119. package/dist/esm/utils/storybook/middleware.js +7 -0
  120. package/dist/esm/utils/storybook/preview.js +10 -5
  121. package/dist/esm/utils/storybook/theme.js +5 -8
  122. package/dist/esm/utils/storybook/vite.js +13 -0
  123. package/dist/esm/utils/storybook/webpack.js +22 -0
  124. package/dist/esm/utils/testing/index.js +1 -1
  125. package/dist/esm/utils/testing/render-with-redux.js +1 -5
  126. package/dist/esm/utils/testing/render-with-router-redux.js +1 -2
  127. package/dist/esm/utils/url.js +2 -0
  128. package/dist/esm/utils/window.js +1 -1
  129. package/dist/esm/view/app-root/hosted-app.js +1 -1
  130. package/dist/esm/view/app-root/index.js +2 -0
  131. package/dist/esm/view/app-root/stand-alone-app.js +1 -1
  132. package/dist/esm/view/app-root/style.js +1 -1
  133. package/dist/esm/view/app-root/use-prefetch-resources.js +15 -0
  134. package/dist/esm/view/breakpoint/use-breakpoint.js +7 -4
  135. package/dist/esm/view/error-boundary/index.js +1 -1
  136. package/dist/esm/view/error-toast/index.js +3 -3
  137. package/dist/esm/view/fields/autocomplete/index.js +4 -1
  138. package/dist/esm/view/fields/combo-box-v3/index.js +1 -1
  139. package/dist/esm/view/form/personal-info-section.js +5 -7
  140. package/dist/esm/view/login/index.js +2 -2
  141. package/dist/esm/view/micro-app/app-factory/index.js +21 -9
  142. package/dist/esm/view/micro-app/resources/script.js +17 -9
  143. package/dist/esm/view/micro-app/resources/style.js +15 -2
  144. package/dist/esm/view/micro-app/use-app-will-render.js +1 -1
  145. package/dist/esm/view/micro-iframe-app/iframe/index.js +0 -1
  146. package/dist/esm/view/modals/navigation-prompt/index.js +1 -1
  147. package/dist/esm/view/modals/session-expiry/index.js +1 -1
  148. package/dist/esm/view/require-auth.js +1 -1
  149. package/dist/esm/view/session-timeout/index.js +1 -1
  150. package/dist/esm/view/storybook/decorator.js +1 -1
  151. package/dist/esm/view/use-window-size-change.js +1 -1
  152. package/dist/esm/view/visually-hidden/index.js +1 -0
  153. package/dist/esm/view/wait-message/index.js +1 -1
  154. package/dist/esm/view/wait-message/wait-message-launcher.js +1 -1
  155. package/dist/types/docusaurus.config.d.ts +2 -0
  156. package/dist/types/lib/api/helpers.d.ts +1 -1
  157. package/dist/types/lib/communication/http-client/response-interceptor.d.ts +1 -3
  158. package/dist/types/lib/communication/http-client/retry-axios.d.ts +5 -5
  159. package/dist/types/lib/data/appMiddleware.d.ts +2 -2
  160. package/dist/types/lib/data/auth-state.d.ts +28 -0
  161. package/dist/types/lib/data/breakpoint-state.d.ts +15 -0
  162. package/dist/types/lib/data/{error/index.d.ts → error-state.d.ts} +5 -1
  163. package/dist/types/lib/data/listenerMiddleware.d.ts +38 -17
  164. package/dist/types/lib/data/{live-message/index.d.ts → live-message-state.d.ts} +5 -1
  165. package/dist/types/lib/data/logout-actions.d.ts +4 -0
  166. package/dist/types/lib/data/navigation-prompt-actions.d.ts +4 -0
  167. package/dist/types/lib/data/reducers.d.ts +12 -15
  168. package/dist/types/lib/data/saga.d.ts +3 -5
  169. package/dist/types/lib/data/store.d.ts +31 -38
  170. package/dist/types/lib/data/types.d.ts +6 -6
  171. package/dist/types/lib/data/wait-message-state.d.ts +17 -0
  172. package/dist/types/lib/index.d.ts +6 -16
  173. package/dist/types/lib/sideeffect/auth/index.d.ts +1 -1
  174. package/dist/types/lib/utils/app-config/config.d.ts +1 -3
  175. package/dist/types/lib/utils/app-host-integration/react.d.ts +2 -2
  176. package/dist/types/lib/utils/guest-with-service.d.ts +1 -3
  177. package/dist/types/lib/utils/micro-frontend/host.d.ts +4 -4
  178. package/dist/types/lib/utils/micro-frontend/index.d.ts +1 -0
  179. package/dist/types/lib/utils/micro-frontend/types.d.ts +5 -4
  180. package/dist/types/lib/utils/session.d.ts +3 -9
  181. package/dist/types/lib/utils/storybook/main.d.ts +2 -0
  182. package/dist/types/lib/utils/storybook/manager.d.ts +2 -1
  183. package/dist/types/lib/utils/storybook/middleware.d.ts +1 -0
  184. package/dist/types/lib/utils/storybook/preview.d.ts +5 -29
  185. package/dist/types/lib/utils/storybook/theme.d.ts +2 -5
  186. package/dist/types/lib/utils/storybook/vite.d.ts +10 -0
  187. package/dist/types/lib/utils/storybook/webpack.d.ts +17 -0
  188. package/dist/types/lib/utils/testing/render-with-redux.d.ts +15 -19
  189. package/dist/types/lib/utils/testing/render-with-router-redux.d.ts +14 -18
  190. package/dist/types/lib/utils/testing/render-with-router.d.ts +1 -1
  191. package/dist/types/lib/utils/testing/render-with-state-addons.d.ts +2 -2
  192. package/dist/types/lib/utils/url.d.ts +1 -0
  193. package/dist/types/lib/utils/window.d.ts +1 -3
  194. package/dist/types/lib/view/app-root/hosted-app.d.ts +2 -2
  195. package/dist/types/lib/view/app-root/index.d.ts +2 -2
  196. package/dist/types/lib/view/app-root/stand-alone-app.d.ts +2 -2
  197. package/dist/types/lib/view/app-root/use-prefetch-resources.d.ts +1 -0
  198. package/dist/types/lib/view/breakpoint/index.stories.d.ts +6 -3
  199. package/dist/types/lib/view/breakpoint/use-media-query-list.d.ts +1 -1
  200. package/dist/types/lib/view/error-toast/index.d.ts +1 -4
  201. package/dist/types/lib/view/error-toast/index.stories.d.ts +12 -5
  202. package/dist/types/lib/view/fields/autocomplete/advanced-autocomplete.stories.d.ts +6 -5
  203. package/dist/types/lib/view/fields/autocomplete/async-suggestions-autocomplete.stories.d.ts +6 -5
  204. package/dist/types/lib/view/fields/autocomplete/index.stories.d.ts +6 -5
  205. package/dist/types/lib/view/fields/check-box/index.stories.d.ts +8 -5
  206. package/dist/types/lib/view/fields/check-box/set-value.stories.d.ts +8 -5
  207. package/dist/types/lib/view/fields/combo-box-v3/index.stories.d.ts +8 -5
  208. package/dist/types/lib/view/fields/connect-form.d.ts +2 -2
  209. package/dist/types/lib/view/fields/date-range-picker/index.d.ts +2 -2
  210. package/dist/types/lib/view/fields/date-range-picker/index.stories.d.ts +8 -7
  211. package/dist/types/lib/view/fields/date-time-picker/index.stories.d.ts +19 -39
  212. package/dist/types/lib/view/fields/form-layout-block-item/index.stories.d.ts +8 -4
  213. package/dist/types/lib/view/fields/input-text/index.stories.d.ts +8 -10
  214. package/dist/types/lib/view/fields/masked-input-text/index.d.ts +2 -2
  215. package/dist/types/lib/view/fields/masked-input-text/index.stories.d.ts +10 -0
  216. package/dist/types/lib/view/fields/toggle/index.stories.d.ts +6 -10
  217. package/dist/types/lib/view/fields/watch-value.d.ts +2 -2
  218. package/dist/types/lib/view/form/index.d.ts +2 -2
  219. package/dist/types/lib/view/form/index.stories.d.ts +7 -3
  220. package/dist/types/lib/view/form/personal-info-section.d.ts +0 -1
  221. package/dist/types/lib/view/form/submit-button/index.d.ts +2 -2
  222. package/dist/types/lib/view/form/usecases.stories.d.ts +9 -12
  223. package/dist/types/lib/view/live-message/index.stories.d.ts +5 -3
  224. package/dist/types/lib/view/micro-app/app-factory/index.d.ts +1 -0
  225. package/dist/types/lib/view/micro-app/resources/manifest.d.ts +1 -1
  226. package/dist/types/lib/view/micro-app/resources/script.d.ts +4 -0
  227. package/dist/types/lib/view/micro-app/resources/style.d.ts +4 -0
  228. package/dist/types/lib/view/micro-app/types.d.ts +2 -2
  229. package/dist/types/lib/view/micro-app/utils.d.ts +2 -2
  230. package/dist/types/lib/view/micro-iframe-app/iframe/index.d.ts +2 -2
  231. package/dist/types/lib/view/modals/error/index.stories.d.ts +9 -6
  232. package/dist/types/lib/view/modals/navigation-prompt/index.stories.d.ts +9 -10
  233. package/dist/types/lib/view/modals/session-expiry/index.stories.d.ts +10 -6
  234. package/dist/types/lib/view/session-timeout/index.stories.d.ts +8 -4
  235. package/dist/types/lib/view/storybook/decorator.d.ts +1 -1
  236. package/dist/types/lib/view/visually-hidden/index.d.ts +1 -0
  237. package/dist/types/lib/view/wait-message/index.stories.d.ts +8 -8
  238. package/package.json +52 -50
  239. package/dist/cjs/data/auth/reducer.js +0 -49
  240. package/dist/cjs/data/wait-message/reducer.js +0 -51
  241. package/dist/cjs/utils/storybook/cjs/main.js +0 -58
  242. package/dist/cjs/utils/storybook/cjs/middleware.js +0 -6
  243. package/dist/cjs/utils/storybook/cjs/vite.js +0 -8
  244. package/dist/cjs/utils/storybook/cjs/webpack.js +0 -20
  245. package/dist/cjs/view/fields/combo-box/index.js +0 -50
  246. package/dist/cjs/view/fields/date-picker/index.js +0 -50
  247. package/dist/cjs/view/fields/form-item-layout/index.js +0 -43
  248. package/dist/cjs/view/fields/input-mask/index.js +0 -60
  249. package/dist/cjs/view/fields/radio/index.js +0 -48
  250. package/dist/cjs/view/fields/radio-group/index.js +0 -40
  251. package/dist/cjs/view/fields/text-box/index.js +0 -40
  252. package/dist/esm/data/auth/actions.js +0 -31
  253. package/dist/esm/data/auth/reducer.js +0 -19
  254. package/dist/esm/data/breakpoint/index.js +0 -28
  255. package/dist/esm/data/logout/actions.js +0 -18
  256. package/dist/esm/data/navigation-prompt/actions.js +0 -18
  257. package/dist/esm/data/wait-message/actions.js +0 -18
  258. package/dist/esm/data/wait-message/reducer.js +0 -21
  259. package/dist/esm/view/fields/combo-box/index.js +0 -32
  260. package/dist/esm/view/fields/date-input/index.js +0 -22
  261. package/dist/esm/view/fields/date-picker/index.js +0 -22
  262. package/dist/esm/view/fields/form-item-layout/index.js +0 -23
  263. package/dist/esm/view/fields/input-mask/index.js +0 -42
  264. package/dist/esm/view/fields/large-text-box/index.js +0 -22
  265. package/dist/esm/view/fields/radio/index.js +0 -30
  266. package/dist/esm/view/fields/radio-group/index.js +0 -22
  267. package/dist/esm/view/fields/text-box/index.js +0 -22
  268. package/dist/types/lib/data/auth/actions.d.ts +0 -22
  269. package/dist/types/lib/data/auth/reducer.d.ts +0 -6
  270. package/dist/types/lib/data/breakpoint/index.d.ts +0 -13
  271. package/dist/types/lib/data/logout/actions.d.ts +0 -9
  272. package/dist/types/lib/data/navigation-prompt/actions.d.ts +0 -9
  273. package/dist/types/lib/data/wait-message/actions.d.ts +0 -14
  274. package/dist/types/lib/data/wait-message/reducer.d.ts +0 -7
  275. package/dist/types/lib/utils/storybook/cjs/main.d.ts +0 -66
  276. package/dist/types/lib/utils/storybook/cjs/middleware.d.ts +0 -2
  277. package/dist/types/lib/utils/storybook/cjs/vite.d.ts +0 -5
  278. package/dist/types/lib/utils/storybook/cjs/webpack.d.ts +0 -17
  279. package/dist/types/lib/view/fields/combo-box/index.d.ts +0 -8
  280. package/dist/types/lib/view/fields/combo-box/index.stories.d.ts +0 -5
  281. package/dist/types/lib/view/fields/date-input/index.d.ts +0 -8
  282. package/dist/types/lib/view/fields/date-input/index.stories.d.ts +0 -7
  283. package/dist/types/lib/view/fields/date-picker/index.d.ts +0 -9
  284. package/dist/types/lib/view/fields/date-picker/index.stories.d.ts +0 -5
  285. package/dist/types/lib/view/fields/form-item-layout/index.d.ts +0 -9
  286. package/dist/types/lib/view/fields/form-item-layout/index.stories.d.ts +0 -5
  287. package/dist/types/lib/view/fields/input-mask/index.d.ts +0 -15
  288. package/dist/types/lib/view/fields/input-mask/index.stories.d.ts +0 -5
  289. package/dist/types/lib/view/fields/large-text-box/index.d.ts +0 -9
  290. package/dist/types/lib/view/fields/large-text-box/index.stories.d.ts +0 -5
  291. package/dist/types/lib/view/fields/masked-input-text/with-money-mask.stories.d.ts +0 -11
  292. package/dist/types/lib/view/fields/masked-input-text/with-percentage-mask.stories.d.ts +0 -11
  293. package/dist/types/lib/view/fields/radio/index.d.ts +0 -9
  294. package/dist/types/lib/view/fields/radio/index.stories.d.ts +0 -5
  295. package/dist/types/lib/view/fields/radio/set-value.stories.d.ts +0 -5
  296. package/dist/types/lib/view/fields/radio-group/index.d.ts +0 -8
  297. package/dist/types/lib/view/fields/radio-group/index.stories.d.ts +0 -5
  298. package/dist/types/lib/view/fields/text-box/index.d.ts +0 -8
  299. package/dist/types/lib/view/fields/text-box/index.stories.d.ts +0 -7
  300. /package/dist/esm/data/{error/index.js → error-state.js} +0 -0
  301. /package/dist/esm/data/{live-message/index.js → live-message-state.js} +0 -0
  302. /package/dist/types/lib/api/users/{index.endpoint.d.ts → index.endpoint.d.cts} +0 -0
  303. /package/dist/types/lib/communication/http-client/tests/{hello.endpoint.d.ts → hello.endpoint.d.cts} +0 -0
  304. /package/dist/types/lib/communication/http-client/tests/{private.endpoint.d.ts → private.endpoint.d.cts} +0 -0
@@ -3,13 +3,12 @@ import { render } from "@testing-library/react";
3
3
  import { Provider } from "react-redux";
4
4
  import { createMemoryHistory } from "history";
5
5
  import { createAppStore } from "../../data/store.js";
6
- import { browserHistory } from "../history.js";
7
6
  import { AppRouter } from "../../view/app-router.js";
8
7
  const renderWithRouterRedux = (ui, {
9
8
  route = "/",
10
9
  history = createMemoryHistory({ initialEntries: [route] }),
11
10
  initialState,
12
- store = createAppStore(initialState, browserHistory)
11
+ store = createAppStore({ initialState })
13
12
  } = {}) => ({
14
13
  ...render(
15
14
  /* @__PURE__ */ jsx(Provider, { store, children: /* @__PURE__ */ jsx(AppRouter, { history, children: ui }) })
@@ -3,8 +3,10 @@ const getRedirectUrl = () => {
3
3
  url.search = "";
4
4
  return url.href;
5
5
  };
6
+ const isAbsoluteUrl = (url) => new URL(document.baseURI).origin !== new URL(url, document.baseURI).origin;
6
7
  const removeDoubleSlash = (url) => url.replace(/([^:]\/)\/+/g, "$1");
7
8
  export {
8
9
  getRedirectUrl,
10
+ isAbsoluteUrl,
9
11
  removeDoubleSlash
10
12
  };
@@ -32,7 +32,7 @@ const getAssetPath = () => {
32
32
  if (!window.emui?.version)
33
33
  return assetPath;
34
34
  const majorMinorVersion = window.emui?.version.match(/^(?:\d+\.\d+)*/g);
35
- return majorMinorVersion && majorMinorVersion[0] ? assetPath.replace("latest/", `${majorMinorVersion[0]}/`) : assetPath;
35
+ return majorMinorVersion?.[0] ? assetPath.replace("latest/", `${majorMinorVersion[0]}/`) : assetPath;
36
36
  };
37
37
  export {
38
38
  getAssetPath,
@@ -15,7 +15,7 @@ const HostedApp = ({ WaitMessage, children }) => {
15
15
  useWindowSizeChange();
16
16
  return /* @__PURE__ */ jsxs(Div, { children: [
17
17
  /* @__PURE__ */ jsx(GlobalStyle, {}),
18
- WaitMessage || /* @__PURE__ */ jsx(DefaultWaitMessage, {}),
18
+ WaitMessage ?? /* @__PURE__ */ jsx(DefaultWaitMessage, {}),
19
19
  /* @__PURE__ */ jsx(ErrorToast, {}),
20
20
  children
21
21
  ] });
@@ -8,8 +8,10 @@ import { isStandAloneGuest, isHost } from "../../utils/micro-frontend/index.js";
8
8
  import { ErrorBoundary } from "../error-boundary/index.js";
9
9
  import { StandAloneApp } from "./stand-alone-app.js";
10
10
  import { HostedApp } from "./hosted-app.js";
11
+ import { usePrefetchResources } from "./use-prefetch-resources.js";
11
12
  const AppToRender = (props) => {
12
13
  const isParent = isStandAloneGuest() || isHost();
14
+ usePrefetchResources();
13
15
  return isParent ? /* @__PURE__ */ jsx(StandAloneApp, { ...props }) : /* @__PURE__ */ jsx(HostedApp, { ...props });
14
16
  };
15
17
  const AppRoot = ({
@@ -22,7 +22,7 @@ const StandAloneApp = ({
22
22
  /* @__PURE__ */ jsx(GlobalStyle, {}),
23
23
  manageSession && /* @__PURE__ */ jsx(SessionTimeout, {}),
24
24
  /* @__PURE__ */ jsx(LiveMessage, {}),
25
- WaitMessage || /* @__PURE__ */ jsx(DefaultWaitMessage, {}),
25
+ WaitMessage ?? /* @__PURE__ */ jsx(DefaultWaitMessage, {}),
26
26
  /* @__PURE__ */ jsx(ErrorToast, {}),
27
27
  children
28
28
  ] }) });
@@ -6,7 +6,7 @@ var style_default = createGlobalStyle`
6
6
  font-size: 100%;
7
7
  `};
8
8
  }
9
-
9
+
10
10
  html,
11
11
  body {
12
12
  height: 100%;
@@ -0,0 +1,15 @@
1
+ import { useEffect } from "react";
2
+ import { getPrefetchableAppConfig } from "../../utils/micro-frontend/index.js";
3
+ import { prefetchMicroFEResources } from "../micro-app/app-factory/index.js";
4
+ const usePrefetchResources = () => {
5
+ useEffect(() => {
6
+ const prefetchableFEs = getPrefetchableAppConfig();
7
+ prefetchableFEs.forEach((prefetchableFE) => {
8
+ prefetchMicroFEResources(prefetchableFE).catch(() => {
9
+ });
10
+ });
11
+ });
12
+ };
13
+ export {
14
+ usePrefetchResources
15
+ };
@@ -2,7 +2,10 @@ import { useEffect, useContext } from "react";
2
2
  import { ThemeContext } from "styled-components";
3
3
  import { publish } from "pubsub-js";
4
4
  import { useAppDispatch } from "../../data/react.js";
5
- import { breakpoint } from "../../data/breakpoint/index.js";
5
+ import {
6
+ actions as breakpoint,
7
+ Breakpoints
8
+ } from "../../data/breakpoint-state.js";
6
9
  import { useMediaQueryList } from "./use-media-query-list.js";
7
10
  import { HOST_WINDOW_BREAKPOINT_CHANGED } from "../../utils/constants.js";
8
11
  const useBreakpoint = () => {
@@ -13,12 +16,12 @@ const useBreakpoint = () => {
13
16
  `(max-width: ${theme.breakpoints.medium})`,
14
17
  `(max-width: ${theme.breakpoints.large})`
15
18
  ],
16
- ["small", "medium", "large"],
17
- "large"
19
+ [Breakpoints.SMALL, Breakpoints.MEDIUM, Breakpoints.LARGE],
20
+ Breakpoints.LARGE
18
21
  );
19
22
  const dispatch = useAppDispatch();
20
23
  useEffect(() => {
21
- dispatch({ type: breakpoint.change, payload: currentBreakpoint });
24
+ dispatch(breakpoint.change(currentBreakpoint));
22
25
  publish(HOST_WINDOW_BREAKPOINT_CHANGED, currentBreakpoint);
23
26
  }, [currentBreakpoint, dispatch]);
24
27
  };
@@ -25,7 +25,7 @@ class ErrorBoundary extends React.Component {
25
25
  }
26
26
  render() {
27
27
  const { children, errorTemplate } = this.props;
28
- const ErrorTemplate = errorTemplate || DefaultErrorTemplate;
28
+ const ErrorTemplate = errorTemplate ?? DefaultErrorTemplate;
29
29
  const { error, errorInfo } = this.state;
30
30
  return errorInfo ? /* @__PURE__ */ jsx(ErrorTemplate, { error, errorInfo }) : children;
31
31
  }
@@ -2,12 +2,12 @@ import { jsx } from "react/jsx-runtime";
2
2
  import { useEffect, memo } from "react";
3
3
  import { ToastPosition, ToastType, DSToast, toast } from "@elliemae/ds-toast";
4
4
  import { useAppSelector, useAppDispatch } from "../../data/react.js";
5
- import { actions as error } from "../../data/error/index.js";
5
+ import { actions as error } from "../../data/error-state.js";
6
6
  const ErrorToast = memo((props) => {
7
7
  const storeError = useAppSelector((state) => state?.error);
8
8
  const dispatch = useAppDispatch();
9
9
  useEffect(() => {
10
- if (storeError && (storeError?.description || storeError?.messageText)) {
10
+ if (storeError && (storeError?.description ?? storeError?.messageText)) {
11
11
  const toastProps = {
12
12
  position: ToastPosition.TOP_RIGHT,
13
13
  messageTitle: "Error",
@@ -15,7 +15,7 @@ const ErrorToast = memo((props) => {
15
15
  ...props,
16
16
  ...storeError
17
17
  };
18
- const messageText = toastProps.description || toastProps.messageText;
18
+ const messageText = toastProps.description ?? toastProps.messageText;
19
19
  if (messageText)
20
20
  toast({ messageText, ...toastProps });
21
21
  dispatch(error.clear());
@@ -6,7 +6,8 @@ const filterOptions = (allOptions, newFilter) => {
6
6
  if (!newFilter)
7
7
  return allOptions;
8
8
  const filtered = allOptions.filter(
9
- (option) => option.type === "section" || option.type !== "separator" && option.label.toLowerCase().includes(newFilter?.toLowerCase())
9
+ (option) => option.type === "section" || // @ts-expect-error - need to check with dimsum
10
+ option.type !== "separator" && option.label.toLowerCase().includes(newFilter?.toLowerCase())
10
11
  );
11
12
  return filtered.length === 1 && filtered[0].type === "section" ? [] : filtered;
12
13
  };
@@ -14,6 +15,8 @@ const Autocomplete = ({ children, ...rest }) => {
14
15
  const { watch, setValue } = useFormContext();
15
16
  const watchedFilter = watch(rest.name);
16
17
  const onSelect = useCallback(
18
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
19
+ // @ts-ignore
17
20
  (newValue, ...otherArgs) => {
18
21
  if (rest.onSelect)
19
22
  rest.onSelect(newValue, ...otherArgs);
@@ -5,7 +5,7 @@ import {
5
5
  } from "react-hook-form";
6
6
  const ComboBoxV3 = ({
7
7
  name,
8
- defaultValue = null,
8
+ defaultValue = {},
9
9
  rules = {},
10
10
  clearable = true,
11
11
  filteredOptions = null,
@@ -34,9 +34,8 @@ const State = () => /* @__PURE__ */ jsx(FormLayoutBlockItem, { label: "State", i
34
34
  name: "state",
35
35
  rules: { required: { value: true, message: "State is required" } },
36
36
  allOptions: [
37
- { dsId: "1", type: "option", value: "--select--", label: "--Select--" },
38
- { dsId: "2", type: "option", value: "ca", label: "California" },
39
- { dsId: "3", type: "option", value: "nj", label: "New Jersey" }
37
+ { dsId: "1", type: "option", value: "ca", label: "California" },
38
+ { dsId: "2", type: "option", value: "nj", label: "New Jersey" }
40
39
  ]
41
40
  }
42
41
  ) });
@@ -49,10 +48,9 @@ const MaritalStatus = () => /* @__PURE__ */ jsx(FormLayoutBlockItem, { label: "M
49
48
  required: { value: true, message: "Marital Status is required" }
50
49
  },
51
50
  allOptions: [
52
- { dsId: "1", type: "option", value: "--select--", label: "--Select--" },
53
- { dsId: "2", type: "option", value: "married", label: "Married" },
54
- { dsId: "3", type: "option", value: "unmarried", label: "Unmarried" },
55
- { dsId: "4", type: "option", value: "separated", label: "Separated" }
51
+ { dsId: "1", type: "option", value: "married", label: "Married" },
52
+ { dsId: "2", type: "option", value: "unmarried", label: "Unmarried" },
53
+ { dsId: "3", type: "option", value: "separated", label: "Separated" }
56
54
  ]
57
55
  }
58
56
  ) });
@@ -2,7 +2,7 @@ import { Fragment, jsx } from "react/jsx-runtime";
2
2
  import { useEffect, useState, useRef } from "react";
3
3
  import { useAppDispatch } from "../../data/react.js";
4
4
  import { login } from "../../utils/auth/index.js";
5
- import { LOGIN_SUCCESS } from "../../data/auth/actions.js";
5
+ import { actions } from "../../data/auth-state.js";
6
6
  const Login = ({
7
7
  clientId,
8
8
  scope,
@@ -19,7 +19,7 @@ const Login = ({
19
19
  login({ clientId, scope, responseType }).then(({ authorized }) => {
20
20
  if (authorized)
21
21
  setUserAuthorized(true);
22
- dispatch({ type: LOGIN_SUCCESS });
22
+ dispatch(actions.loginSuccess());
23
23
  }).catch(() => {
24
24
  }).finally(() => {
25
25
  ref.current = false;
@@ -9,19 +9,20 @@ import {
9
9
  } from "../../../utils/window.js";
10
10
  import {
11
11
  addStylesToDOM,
12
- removeDynamicImportedStyles
12
+ removeDynamicImportedStyles,
13
+ prefetchStyle
13
14
  } from "../resources/style.js";
14
15
  import {
15
16
  addScriptToDOM,
16
17
  removeDynamicImportedScripts,
17
- removePrefetchLinks
18
+ removePrefetchLinks,
19
+ prefetchScript
18
20
  } from "../resources/script.js";
19
21
  import {
20
22
  getAppManifest,
21
23
  getFullFileNameofAssetsFromManifest
22
24
  } from "../resources/manifest.js";
23
- const cssType = /\.css$/;
24
- const isCss = (fileName) => cssType.test(fileName);
25
+ const isCss = (fileName) => fileName.endsWith(".css");
25
26
  const activeApps = {};
26
27
  const getPathName = (url) => url ? new URL(url).pathname : "";
27
28
  const initApplication = async ({
@@ -58,7 +59,7 @@ const initApplication = async ({
58
59
  });
59
60
  };
60
61
  const mountApp = async ({ id, name }) => {
61
- const app = (window.emui || {})[id] || {};
62
+ const app = window.emui?.[id] || {};
62
63
  const { mount } = app;
63
64
  if (!mount || typeof mount !== "function")
64
65
  throw new Error(
@@ -71,7 +72,7 @@ const mountApp = async ({ id, name }) => {
71
72
  });
72
73
  };
73
74
  const unmountApp = async ({ id, name }) => {
74
- const app = (window.emui || {})[id];
75
+ const app = window.emui?.[id];
75
76
  if (!app)
76
77
  return null;
77
78
  const { unmount } = app;
@@ -90,12 +91,12 @@ const unmountApp = async ({ id, name }) => {
90
91
  return Promise.resolve();
91
92
  };
92
93
  const addAppToActiveAppList = (id, elementIds) => {
93
- const app = (window.emui || {})[id] || {};
94
+ const app = window.emui?.[id] || {};
94
95
  const { getRef } = app;
95
96
  activeApps[id] = { elementIds };
96
97
  const host = CMicroAppHost.getInstance();
97
98
  if (host)
98
- host.activeGuests[id] = getRef && getRef() || {};
99
+ host.activeGuests[id] = getRef?.() || {};
99
100
  return Promise.resolve();
100
101
  };
101
102
  const waitAndInitApplication = (appConfig, requests) => (
@@ -120,6 +121,16 @@ const removeAssetsFromDOM = (id, documentEle = document) => {
120
121
  delete activeApps[id];
121
122
  }
122
123
  };
124
+ const prefetchMicroFEResources = async (appConfig) => {
125
+ const manifest = await getAppManifest(appConfig);
126
+ const assets = getFullFileNameofAssetsFromManifest(manifest, appConfig.files);
127
+ assets.forEach((fileName) => {
128
+ if (isCss(fileName))
129
+ prefetchStyle({ hostUrl: appConfig.hostUrl, fileName });
130
+ else
131
+ prefetchScript({ hostUrl: appConfig.hostUrl, fileName });
132
+ });
133
+ };
123
134
  const loadApp = async (appConfig) => {
124
135
  getLogger().info(logRecords.APP_LOADING(appConfig.id));
125
136
  let assets = appConfig.files;
@@ -141,7 +152,7 @@ const unloadApp = ({
141
152
  if (!hostUrl)
142
153
  throw new Error("Unable to unload app. hostUrl is required");
143
154
  getLogger().info(logRecords.APP_UNLOADING(id));
144
- const app = (window.emui || {})[id];
155
+ const app = window.emui?.[id];
145
156
  if (!app)
146
157
  return;
147
158
  removeAssetsFromDOM(id, documentEle);
@@ -155,6 +166,7 @@ const unloadApp = ({
155
166
  export {
156
167
  loadApp,
157
168
  mountApp,
169
+ prefetchMicroFEResources,
158
170
  unloadApp,
159
171
  unmountApp
160
172
  };
@@ -1,7 +1,5 @@
1
- import { removeDoubleSlash } from "../../../utils/url.js";
1
+ import { removeDoubleSlash, isAbsoluteUrl } from "../../../utils/url.js";
2
2
  const APP_SCRIPT_ID_PREFIX = "emui-script-";
3
- const HEAD_SCRIPTS = /(?:emuiDiagnostics|global|global-prod|emuiUserMonitoring)(?:..*)?.js/;
4
- const isHeadScript = (scriptSrc) => HEAD_SCRIPTS.test(scriptSrc);
5
3
  const addScriptToDOM = ({ name, hostUrl, documentEle }, fileName, index) => {
6
4
  if (!hostUrl)
7
5
  throw new Error("Unable to add scripts to DOM. hostUrl is required.");
@@ -10,15 +8,12 @@ const addScriptToDOM = ({ name, hostUrl, documentEle }, fileName, index) => {
10
8
  if (!ele)
11
9
  reject(new Error("Unable to insert Application scripts."));
12
10
  ele.id = `${APP_SCRIPT_ID_PREFIX}${name}-${index}`;
13
- const url = new URL(fileName, hostUrl);
11
+ const url = isAbsoluteUrl(fileName) ? new URL(fileName) : new URL(fileName, hostUrl);
14
12
  ele.src = removeDoubleSlash(url.href);
15
13
  ele.onload = resolve.bind(null, ele.id);
16
14
  ele.onerror = reject.bind(null, ele.id);
17
- ele.async = false;
18
- if (isHeadScript(ele.src))
19
- documentEle.head.appendChild(ele);
20
- else
21
- documentEle.body.appendChild(ele);
15
+ ele.defer = true;
16
+ documentEle.head.appendChild(ele);
22
17
  });
23
18
  };
24
19
  const removeScriptFromDOM = (elementId = "", documentEle = document) => new Promise((resolve) => {
@@ -48,9 +43,22 @@ const removePrefetchLinks = (hostUrl, documentEle) => {
48
43
  ele.remove();
49
44
  }
50
45
  };
46
+ const prefetchScript = ({
47
+ hostUrl,
48
+ fileName
49
+ }) => {
50
+ if (hostUrl && fileName) {
51
+ const url = new URL(fileName, hostUrl);
52
+ const link = document.createElement("link");
53
+ link.rel = "prefetch";
54
+ link.href = removeDoubleSlash(url.href);
55
+ document.head.appendChild(link);
56
+ }
57
+ };
51
58
  export {
52
59
  APP_SCRIPT_ID_PREFIX,
53
60
  addScriptToDOM,
61
+ prefetchScript,
54
62
  removeDynamicImportedScripts,
55
63
  removePrefetchLinks,
56
64
  removeScriptFromDOM
@@ -1,4 +1,4 @@
1
- import { removeDoubleSlash } from "../../../utils/url.js";
1
+ import { removeDoubleSlash, isAbsoluteUrl } from "../../../utils/url.js";
2
2
  const APP_STYLE_ID_PREFIX = "emui-style-";
3
3
  const addStylesToDOM = ({ name, hostUrl, documentEle }, fileName, index) => {
4
4
  if (!hostUrl)
@@ -9,7 +9,7 @@ const addStylesToDOM = ({ name, hostUrl, documentEle }, fileName, index) => {
9
9
  reject(new Error("Unable to insert Application styles."));
10
10
  ele.id = `${APP_STYLE_ID_PREFIX}${name}-${index}`;
11
11
  ele.rel = "stylesheet";
12
- const url = new URL(fileName, hostUrl);
12
+ const url = isAbsoluteUrl(fileName) ? new URL(fileName) : new URL(fileName, hostUrl);
13
13
  ele.href = removeDoubleSlash(url.href);
14
14
  ele.onload = resolve.bind(null, ele.id);
15
15
  documentEle.head.appendChild(ele);
@@ -32,9 +32,22 @@ const removeDynamicImportedStyles = (hostUrl, documentEle) => {
32
32
  ele.remove();
33
33
  }
34
34
  };
35
+ const prefetchStyle = ({
36
+ hostUrl,
37
+ fileName
38
+ }) => {
39
+ if (hostUrl && fileName) {
40
+ const url = new URL(fileName, hostUrl);
41
+ const link = document.createElement("link");
42
+ link.rel = "prefetch";
43
+ link.href = removeDoubleSlash(url.href);
44
+ document.head.appendChild(link);
45
+ }
46
+ };
35
47
  export {
36
48
  APP_STYLE_ID_PREFIX,
37
49
  addStylesToDOM,
50
+ prefetchStyle,
38
51
  removeDynamicImportedStyles,
39
52
  removeStyleFromDOM
40
53
  };
@@ -1,7 +1,7 @@
1
1
  import { useRef, useLayoutEffect, useCallback } from "react";
2
2
  import { merge } from "lodash";
3
3
  import { useDispatch } from "react-redux";
4
- import { waitMessage } from "../../data/wait-message/actions.js";
4
+ import { actions as waitMessage } from "../../data/wait-message-state.js";
5
5
  import {
6
6
  loadApp,
7
7
  unloadApp,
@@ -28,7 +28,6 @@ const IFrame = memo(
28
28
  ref: frameRef,
29
29
  title,
30
30
  src,
31
- scrolling: "no",
32
31
  ...sandboxProps,
33
32
  onLoad: () => frameRef?.current?.contentDocument && onFrameReady(frameRef.current.contentDocument)
34
33
  }
@@ -11,7 +11,7 @@ import {
11
11
  DSDialogAddon
12
12
  } from "@elliemae/ds-dialog";
13
13
  import { useAppDispatch } from "../../../data/react.js";
14
- import { navigationPrompt } from "../../../data/navigation-prompt/actions.js";
14
+ import { navigationPrompt } from "../../../data/navigation-prompt-actions.js";
15
15
  const NavigationPrompt = memo(
16
16
  ({ open = false }) => {
17
17
  const dispatch = useAppDispatch();
@@ -13,7 +13,7 @@ import {
13
13
  DSDialogSeparator
14
14
  } from "@elliemae/ds-dialog";
15
15
  import { useAppDispatch } from "../../../data/react.js";
16
- import { logout } from "../../../data/logout/actions.js";
16
+ import { logout } from "../../../data/logout-actions.js";
17
17
  import {
18
18
  resetUserIdleTime,
19
19
  addEventListeners
@@ -1,7 +1,7 @@
1
1
  import { Fragment, jsx } from "react/jsx-runtime";
2
2
  import { createManager } from "redux-injectors";
3
3
  import enums from "../utils/constants.js";
4
- import { authReducer } from "../data/auth/reducer.js";
4
+ import { authReducer } from "../data/auth-state.js";
5
5
  import { authentication } from "../sideeffect/auth/index.js";
6
6
  import { Login } from "./login/index.js";
7
7
  import { isUserAuthorized } from "../utils/auth/index.js";
@@ -1,7 +1,7 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { useEffect, useState } from "react";
3
3
  import { useAppDispatch } from "../../data/react.js";
4
- import { logout } from "../../data/logout/actions.js";
4
+ import { logout } from "../../data/logout-actions.js";
5
5
  import {
6
6
  initSessionMonitoring,
7
7
  stopSessionMonitoring,
@@ -1,7 +1,7 @@
1
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__ */ jsx(AppRoot, { store, history: browserHistory, theme, children: story() });
4
+ const withAppDecorator = (theme, store, Story) => /* @__PURE__ */ jsx(AppRoot, { store, history: browserHistory, theme, children: /* @__PURE__ */ jsx(Story, {}) });
5
5
  export {
6
6
  withAppDecorator
7
7
  };
@@ -5,7 +5,7 @@ const useWindowSizeChange = () => {
5
5
  useEffect(() => {
6
6
  if (window.ResizeObserver) {
7
7
  const observer = new ResizeObserver((entries) => {
8
- publish(HOST_WINDOW_RESIZED, entries && entries[0]);
8
+ publish(HOST_WINDOW_RESIZED, entries?.[0]);
9
9
  });
10
10
  observer.observe(window.document.documentElement);
11
11
  return () => {
@@ -1,6 +1,7 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { forwardRef } from "react";
3
3
  import styled from "styled-components";
4
+ import "@emotion/core";
4
5
  const Span = styled.span`
5
6
  border: 0;
6
7
  clip: rect(0 0 0 0);
@@ -44,7 +44,7 @@ const WaitMessage = memo(
44
44
  }, [isOpen]);
45
45
  useHTMLWaitMessage(isOpen !== null);
46
46
  return show ? /* @__PURE__ */ jsxs(Fragment, { children: [
47
- /* @__PURE__ */ jsx(DSBackdrop, { zIndex: theme.zIndex.loader }),
47
+ /* @__PURE__ */ jsx(DSBackdrop, { zIndex: theme?.zIndex?.loader }),
48
48
  /* @__PURE__ */ jsx(
49
49
  StyledCircularIndicator,
50
50
  {
@@ -1,6 +1,6 @@
1
1
  import { useEffect } from "react";
2
2
  import { useAppDispatch } from "../../data/react.js";
3
- import { waitMessage } from "../../data/wait-message/actions.js";
3
+ import { actions as waitMessage } from "../../data/wait-message-state.js";
4
4
  const WaitMessageLauncher = () => {
5
5
  const dispatch = useAppDispatch();
6
6
  useEffect(() => {
@@ -0,0 +1,2 @@
1
+ declare const _default: import("@docusaurus/types").Config;
2
+ export default _default;
@@ -75,4 +75,4 @@ export declare const getApiActionCreator: (api: string) => (operation: string) =
75
75
  * @param {string} stateName the redux store's state name of the state you want to access.
76
76
  * @returns {Function} A *selectField* function that returns a selector function to be used inside a *useSelector* hook or a *select* side effect
77
77
  */
78
- export declare const getSelectField: (stateName: string) => (fieldName: string | string[] | undefined, defaultValue: unknown | Array<unknown>) => (state?: {}, stateValue?: unknown) => Array<unknown> | unknown;
78
+ export declare const getSelectField: (stateName: string) => (fieldName: string | string[] | undefined, defaultValue: unknown) => (state?: {}, stateValue?: unknown) => unknown;
@@ -1,7 +1,5 @@
1
1
  import { AxiosError, AxiosResponse } from 'axios';
2
- type FailureCallback = {
3
- (error: AxiosError): Promise<string>;
4
- };
2
+ type FailureCallback = (error: AxiosError) => Promise<string>;
5
3
  export declare const onAuthorizationFailure: (callback: FailureCallback) => void;
6
4
  export declare const handleSuccess: (response: AxiosResponse) => AxiosResponse;
7
5
  export declare const handleFailure: (error: AxiosError) => Promise<unknown>;
@@ -1,16 +1,16 @@
1
1
  import axios, { AxiosInstance, AxiosError, AxiosRequestConfig, AxiosDefaults } from 'axios';
2
- export type RetryConfig = {
2
+ export interface RetryConfig {
3
3
  currentRetryAttempt: number;
4
4
  retry: number;
5
5
  retryDelay: number;
6
6
  instance: AxiosInstance;
7
- httpMethodsToRetry: Array<string>;
7
+ httpMethodsToRetry: string[];
8
8
  noResponseRetries: number;
9
- retryRanges?: Array<Array<number>>;
10
- statusCodesToRetry: Array<Array<number>>;
9
+ retryRanges?: number[][];
10
+ statusCodesToRetry: number[][];
11
11
  shouldRetry?: (err: SDKAxiosError) => boolean;
12
12
  onRetryAttempt: (err: SDKAxiosError) => void;
13
- };
13
+ }
14
14
  export type SDKAxiosDefaults<D = any> = {
15
15
  retryConfig: RetryConfig | Partial<RetryConfig>;
16
16
  } & AxiosDefaults<D>;
@@ -1,8 +1,8 @@
1
1
  import { Middleware } from 'redux';
2
- export declare const appMiddleware: Middleware<any, any>;
2
+ export declare const appMiddleware: Middleware;
3
3
  export declare const addMiddleware: ({ key, middleware, }: {
4
4
  key: string;
5
- middleware: Middleware<any, any>;
5
+ middleware: Middleware;
6
6
  }) => void;
7
7
  export declare const removeMiddleware: (key: string) => void;
8
8
  export declare const resetMiddlewares: () => void;
@@ -0,0 +1,28 @@
1
+ export interface LoginParms {
2
+ idpCode: string;
3
+ redirectUri: string;
4
+ clientId: string;
5
+ responseType: string;
6
+ scope: string;
7
+ }
8
+ export interface LogoutParams {
9
+ redirectUri: string;
10
+ clientId: string;
11
+ responseType: string;
12
+ scope: string;
13
+ code: string;
14
+ }
15
+ export interface AuthState {
16
+ authenticated: boolean;
17
+ }
18
+ export declare const initialState: AuthState;
19
+ declare const authActions: import("@reduxjs/toolkit").CaseReducerActions<{
20
+ loginSuccess: (state: {
21
+ authenticated: boolean;
22
+ }) => void;
23
+ }, "auth"> & {
24
+ login: import("@reduxjs/toolkit").ActionCreatorWithPayload<LoginParms, string>;
25
+ logout: import("@reduxjs/toolkit").ActionCreatorWithPayload<LoginParms, string>;
26
+ };
27
+ export { authActions as actions };
28
+ export declare const authReducer: import("redux").Reducer<AuthState>;
@@ -0,0 +1,15 @@
1
+ import { PayloadAction } from '@reduxjs/toolkit';
2
+ export declare enum Breakpoints {
3
+ LARGE = "large",
4
+ MEDIUM = "medium",
5
+ SMALL = "small"
6
+ }
7
+ export interface BreakpointState {
8
+ value: Breakpoints;
9
+ }
10
+ export declare const actions: import("@reduxjs/toolkit").CaseReducerActions<{
11
+ change: (state: {
12
+ value: Breakpoints;
13
+ }, action: PayloadAction<Breakpoints>) => void;
14
+ }, "breakpoint">;
15
+ export declare const breakpointReducer: import("redux").Reducer<BreakpointState>;
@@ -5,7 +5,11 @@ export interface ErrorState {
5
5
  [x: string]: any;
6
6
  }
7
7
  export declare const actions: import("@reduxjs/toolkit").CaseReducerActions<{
8
- set: (_: import("immer/dist/internal").WritableDraft<ErrorState>, actions: PayloadAction<ErrorState>) => ErrorState;
8
+ set: (_: {
9
+ [x: string]: any;
10
+ description?: string | undefined;
11
+ messageText?: string | undefined;
12
+ }, actions: PayloadAction<ErrorState>) => ErrorState;
9
13
  clear: () => ErrorState;
10
14
  }, "error">;
11
15
  export declare const errorReducer: import("redux").Reducer<ErrorState>;