@elliemae/pui-app-sdk 2.12.3 → 2.13.2

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 (231) hide show
  1. package/dist/cjs/analytics/appdynamics.js +36 -0
  2. package/dist/cjs/analytics/index.js +15 -13
  3. package/dist/cjs/analytics/page-view-event.js +16 -19
  4. package/dist/cjs/analytics/user-session-event.js +13 -14
  5. package/dist/cjs/analytics/user-wait-event.js +4 -4
  6. package/dist/cjs/analytics/{ba-event-parameters.js → web-analytics.js} +2 -2
  7. package/dist/cjs/api/auth/index.js +13 -20
  8. package/dist/cjs/api/helpers.js +4 -16
  9. package/dist/cjs/api/users/index.js +4 -5
  10. package/dist/cjs/communication/http-client/index.js +16 -21
  11. package/dist/cjs/communication/http-client/retry-axios.js +0 -2
  12. package/dist/cjs/communication/http-client/tests/index.test-disable.js +5 -6
  13. package/dist/cjs/data/auth/actions.js +22 -28
  14. package/dist/cjs/data/breakpoint/index.js +1 -3
  15. package/dist/cjs/data/live-message/index.js +8 -11
  16. package/dist/cjs/data/reducers.js +1 -2
  17. package/dist/cjs/data/store.js +4 -8
  18. package/dist/cjs/data/wait-message/actions.js +6 -9
  19. package/dist/cjs/data/wait-message/reducer.js +13 -17
  20. package/dist/cjs/index.js +21 -15
  21. package/dist/cjs/route/index.js +23 -12
  22. package/dist/cjs/route/{usePageView.js → page-view.js} +12 -22
  23. package/dist/cjs/route/private-route/index.js +9 -10
  24. package/dist/cjs/sideeffect/auth/index.js +6 -10
  25. package/dist/cjs/utils/app-config/config.js +3 -14
  26. package/dist/cjs/utils/app-config/index.js +11 -15
  27. package/dist/cjs/utils/app-host-integration/react.js +7 -10
  28. package/dist/cjs/utils/auth/index.js +40 -44
  29. package/dist/cjs/utils/font-size.js +1 -1
  30. package/dist/cjs/utils/helpers.js +0 -6
  31. package/dist/cjs/utils/log-records.js +7 -7
  32. package/dist/cjs/utils/micro-frontend/guest.js +31 -8
  33. package/dist/cjs/utils/micro-frontend/host.js +14 -7
  34. package/dist/cjs/utils/micro-frontend/index.js +2 -4
  35. package/dist/cjs/utils/redact-pii.js +39 -0
  36. package/dist/cjs/utils/service-worker.js +2 -5
  37. package/dist/cjs/utils/session.js +2 -8
  38. package/dist/cjs/utils/storybook/theme.js +9 -12
  39. package/dist/cjs/utils/testing/index.js +9 -18
  40. package/dist/cjs/utils/testing/render-with-redux.js +11 -14
  41. package/dist/cjs/utils/testing/render-with-router-redux.js +17 -20
  42. package/dist/cjs/utils/testing/render-with-router.js +13 -16
  43. package/dist/cjs/utils/testing/render-with-state-addons.js +7 -16
  44. package/dist/cjs/utils/url.js +0 -8
  45. package/dist/cjs/utils/web-storage.js +1 -7
  46. package/dist/cjs/utils/window.js +0 -2
  47. package/dist/cjs/view/app-root/hosted-app.js +5 -8
  48. package/dist/cjs/view/app-root/index.js +20 -23
  49. package/dist/cjs/view/app-root/stand-alone-app.js +5 -8
  50. package/dist/cjs/view/app-root/style.js +5 -12
  51. package/dist/cjs/view/error-toast/index.stories.js +22 -31
  52. package/dist/cjs/view/fetch-host-app-data/store.js +1 -5
  53. package/dist/cjs/view/fields/check-box/index.js +20 -32
  54. package/dist/cjs/view/fields/check-box/index.stories.js +20 -24
  55. package/dist/cjs/view/fields/check-box/set-value.stories.js +17 -21
  56. package/dist/cjs/view/fields/combo-box/index.js +22 -28
  57. package/dist/cjs/view/fields/connect-form.js +3 -4
  58. package/dist/cjs/view/fields/date-input/index.js +15 -21
  59. package/dist/cjs/view/fields/date-picker/index.js +15 -21
  60. package/dist/cjs/view/fields/form-item-layout/index.js +16 -20
  61. package/dist/cjs/view/fields/input-mask/index.js +16 -28
  62. package/dist/cjs/view/fields/large-text-box/index.js +15 -21
  63. package/dist/cjs/view/fields/radio/index.js +20 -26
  64. package/dist/cjs/view/fields/radio/index.stories.js +17 -21
  65. package/dist/cjs/view/fields/radio/set-value.stories.js +15 -19
  66. package/dist/cjs/view/fields/radio-group/index.js +16 -22
  67. package/dist/cjs/view/fields/radio-group/index.stories.js +37 -44
  68. package/dist/cjs/view/fields/text-box/index.js +15 -21
  69. package/dist/cjs/view/fields/watch-value.js +4 -5
  70. package/dist/cjs/view/form/index.js +9 -10
  71. package/dist/cjs/view/form/index.stories.js +3 -6
  72. package/dist/cjs/view/form/submit-button/index.js +2 -3
  73. package/dist/cjs/view/form/usecases.stories.js +3 -6
  74. package/dist/cjs/view/guest-unload-handlers/index.js +1 -2
  75. package/dist/cjs/view/header/center-region/index.js +8 -20
  76. package/dist/cjs/view/header/index.js +8 -11
  77. package/dist/cjs/view/host-binding-events/index.js +2 -2
  78. package/dist/cjs/view/live-message/index.stories.js +0 -6
  79. package/dist/cjs/view/loadable/index.js +1 -2
  80. package/dist/cjs/view/login/index.js +5 -6
  81. package/dist/cjs/view/media-breakpoint/index.js +1 -1
  82. package/dist/cjs/view/message-to-host-app/index.js +1 -2
  83. package/dist/cjs/view/micro-app/app-factory/index.js +30 -48
  84. package/dist/cjs/view/micro-app/index.js +1 -1
  85. package/dist/cjs/view/micro-app/resources/manifest.js +27 -39
  86. package/dist/cjs/view/micro-app/resources/script.js +22 -35
  87. package/dist/cjs/view/micro-app/resources/style.js +20 -33
  88. package/dist/cjs/view/micro-app/use-app-will-render.js +12 -12
  89. package/dist/cjs/view/micro-app/utils.js +0 -6
  90. package/dist/cjs/view/micro-iframe-app/app.js +6 -9
  91. package/dist/cjs/view/micro-iframe-app/iframe/index.js +8 -9
  92. package/dist/cjs/view/micro-iframe-app/index.js +4 -7
  93. package/dist/cjs/view/micro-iframe-app/use-frame-loaded.js +5 -12
  94. package/dist/cjs/view/modals/error/index.js +6 -13
  95. package/dist/cjs/view/modals/navigation-prompt/index.js +4 -11
  96. package/dist/cjs/view/modals/session-expiry/customHooks.js +3 -5
  97. package/dist/cjs/view/modals/session-expiry/index.js +6 -13
  98. package/dist/cjs/view/modals/wait-message/html-wait-message.js +3 -4
  99. package/dist/cjs/view/modals/wait-message/index.js +8 -9
  100. package/dist/cjs/view/modals/wait-message/index.stories.js +4 -5
  101. package/dist/cjs/view/render-with-delay/index.js +3 -6
  102. package/dist/cjs/view/render-with-host-data/index.js +0 -2
  103. package/dist/cjs/view/session-timeout/index.js +0 -2
  104. package/dist/cjs/view/useMediaBreakpoints/index.js +0 -12
  105. package/dist/es/analytics/appdynamics.js +18 -0
  106. package/dist/es/analytics/index.js +14 -13
  107. package/dist/es/analytics/page-view-event.js +16 -19
  108. package/dist/es/analytics/user-session-event.js +12 -13
  109. package/dist/es/analytics/user-wait-event.js +4 -4
  110. package/dist/es/analytics/{ba-event-parameters.js → web-analytics.js} +2 -2
  111. package/dist/es/api/auth/index.js +13 -18
  112. package/dist/es/api/helpers.js +4 -14
  113. package/dist/es/api/users/index.js +4 -5
  114. package/dist/es/communication/http-client/index.js +16 -20
  115. package/dist/es/communication/http-client/retry-axios.js +0 -2
  116. package/dist/es/communication/http-client/tests/index.test-disable.js +5 -6
  117. package/dist/es/data/auth/actions.js +22 -28
  118. package/dist/es/data/breakpoint/index.js +1 -3
  119. package/dist/es/data/live-message/index.js +8 -11
  120. package/dist/es/data/reducers.js +1 -2
  121. package/dist/es/data/store.js +4 -8
  122. package/dist/es/data/wait-message/actions.js +6 -9
  123. package/dist/es/data/wait-message/reducer.js +12 -16
  124. package/dist/es/index.js +4 -1
  125. package/dist/es/route/index.js +23 -13
  126. package/dist/es/route/page-view.js +15 -0
  127. package/dist/es/route/private-route/index.js +9 -10
  128. package/dist/es/sideeffect/auth/index.js +6 -10
  129. package/dist/es/utils/app-config/config.js +3 -14
  130. package/dist/es/utils/app-config/index.js +11 -15
  131. package/dist/es/utils/app-host-integration/react.js +7 -10
  132. package/dist/es/utils/auth/index.js +39 -41
  133. package/dist/es/utils/font-size.js +1 -1
  134. package/dist/es/utils/helpers.js +0 -3
  135. package/dist/es/utils/log-records.js +7 -7
  136. package/dist/es/utils/micro-frontend/guest.js +29 -6
  137. package/dist/es/utils/micro-frontend/host.js +13 -7
  138. package/dist/es/utils/micro-frontend/index.js +2 -3
  139. package/dist/es/utils/redact-pii.js +31 -0
  140. package/dist/es/utils/service-worker.js +2 -4
  141. package/dist/es/utils/session.js +2 -8
  142. package/dist/es/utils/storybook/theme.js +9 -12
  143. package/dist/es/utils/testing/index.js +9 -12
  144. package/dist/es/utils/testing/render-with-redux.js +11 -14
  145. package/dist/es/utils/testing/render-with-router-redux.js +17 -20
  146. package/dist/es/utils/testing/render-with-router.js +13 -16
  147. package/dist/es/utils/testing/render-with-state-addons.js +7 -12
  148. package/dist/es/utils/url.js +0 -4
  149. package/dist/es/utils/web-storage.js +1 -4
  150. package/dist/es/utils/window.js +0 -1
  151. package/dist/es/view/app-root/hosted-app.js +5 -8
  152. package/dist/es/view/app-root/index.js +20 -23
  153. package/dist/es/view/app-root/stand-alone-app.js +5 -8
  154. package/dist/es/view/app-root/style.js +5 -10
  155. package/dist/es/view/error-toast/index.stories.js +22 -30
  156. package/dist/es/view/fetch-host-app-data/store.js +1 -5
  157. package/dist/es/view/fields/check-box/index.js +20 -26
  158. package/dist/es/view/fields/check-box/index.stories.js +20 -24
  159. package/dist/es/view/fields/check-box/set-value.stories.js +17 -21
  160. package/dist/es/view/fields/combo-box/index.js +22 -28
  161. package/dist/es/view/fields/connect-form.js +3 -4
  162. package/dist/es/view/fields/date-input/index.js +15 -21
  163. package/dist/es/view/fields/date-picker/index.js +15 -21
  164. package/dist/es/view/fields/form-item-layout/index.js +16 -20
  165. package/dist/es/view/fields/input-mask/index.js +16 -22
  166. package/dist/es/view/fields/large-text-box/index.js +15 -21
  167. package/dist/es/view/fields/radio/index.js +20 -26
  168. package/dist/es/view/fields/radio/index.stories.js +17 -21
  169. package/dist/es/view/fields/radio/set-value.stories.js +15 -19
  170. package/dist/es/view/fields/radio-group/index.js +16 -22
  171. package/dist/es/view/fields/radio-group/index.stories.js +37 -44
  172. package/dist/es/view/fields/text-box/index.js +15 -21
  173. package/dist/es/view/fields/watch-value.js +4 -5
  174. package/dist/es/view/form/index.js +9 -10
  175. package/dist/es/view/form/index.stories.js +3 -6
  176. package/dist/es/view/form/submit-button/index.js +2 -3
  177. package/dist/es/view/form/usecases.stories.js +3 -6
  178. package/dist/es/view/guest-unload-handlers/index.js +1 -2
  179. package/dist/es/view/header/center-region/index.js +8 -17
  180. package/dist/es/view/header/index.js +8 -11
  181. package/dist/es/view/host-binding-events/index.js +2 -2
  182. package/dist/es/view/live-message/index.stories.js +0 -1
  183. package/dist/es/view/loadable/index.js +1 -2
  184. package/dist/es/view/login/index.js +5 -6
  185. package/dist/es/view/media-breakpoint/index.js +1 -1
  186. package/dist/es/view/message-to-host-app/index.js +1 -2
  187. package/dist/es/view/micro-app/app-factory/index.js +30 -42
  188. package/dist/es/view/micro-app/index.js +1 -1
  189. package/dist/es/view/micro-app/resources/manifest.js +26 -31
  190. package/dist/es/view/micro-app/resources/script.js +21 -31
  191. package/dist/es/view/micro-app/resources/style.js +20 -30
  192. package/dist/es/view/micro-app/use-app-will-render.js +12 -12
  193. package/dist/es/view/micro-app/utils.js +0 -3
  194. package/dist/es/view/micro-iframe-app/app.js +6 -8
  195. package/dist/es/view/micro-iframe-app/iframe/index.js +8 -9
  196. package/dist/es/view/micro-iframe-app/index.js +4 -6
  197. package/dist/es/view/micro-iframe-app/use-frame-loaded.js +5 -9
  198. package/dist/es/view/modals/error/index.js +6 -8
  199. package/dist/es/view/modals/navigation-prompt/index.js +4 -5
  200. package/dist/es/view/modals/session-expiry/customHooks.js +3 -4
  201. package/dist/es/view/modals/session-expiry/index.js +6 -8
  202. package/dist/es/view/modals/wait-message/html-wait-message.js +3 -4
  203. package/dist/es/view/modals/wait-message/index.js +8 -9
  204. package/dist/es/view/modals/wait-message/index.stories.js +4 -5
  205. package/dist/es/view/render-with-delay/index.js +3 -5
  206. package/dist/es/view/render-with-host-data/index.js +0 -1
  207. package/dist/es/view/session-timeout/index.js +0 -1
  208. package/dist/es/view/useMediaBreakpoints/index.js +0 -6
  209. package/dist/types/analytics/appdynamics.d.ts +9 -0
  210. package/dist/types/analytics/index.d.ts +2 -2
  211. package/dist/types/analytics/web-analytics.d.ts +8 -0
  212. package/dist/types/index.d.ts +3 -1
  213. package/dist/types/route/page-view.d.ts +1 -0
  214. package/dist/types/utils/micro-frontend/guest.d.ts +1 -0
  215. package/dist/types/utils/micro-frontend/host.d.ts +1 -1
  216. package/dist/types/utils/redact-pii.d.ts +1 -0
  217. package/dist/types/view/visually-hidden/index.d.ts +1 -1
  218. package/package.json +7 -3
  219. package/dist/es/route/usePageView.js +0 -18
  220. package/dist/public/app.config.json +0 -129
  221. package/dist/public/assets/index.ad459dcebaa616bff55e77d860405729.svg +0 -1
  222. package/dist/public/assets/index.dae17c8817fd9c5ab29e7c3a8925a1f4.svg +0 -1
  223. package/dist/public/assets/logo.0cbd33c5006f8ea6d106f8ab13f6e6dc.svg +0 -1
  224. package/dist/public/iframe.b3911eaf1a99a53ef7b10a1e1f0bdfc4.html +0 -8
  225. package/dist/public/index.html +0 -5
  226. package/dist/public/js/emuiAppSdk.e28a62497e211b4c6132.js +0 -3
  227. package/dist/public/js/emuiAppSdk.e28a62497e211b4c6132.js.LICENSE.txt +0 -95
  228. package/dist/public/js/emuiAppSdk.e28a62497e211b4c6132.js.gz +0 -0
  229. package/dist/public/js/emuiAppSdk.e28a62497e211b4c6132.js.map +0 -1
  230. package/dist/types/analytics/ba-event-parameters.d.ts +0 -8
  231. package/dist/types/route/usePageView.d.ts +0 -1
@@ -27,53 +27,46 @@ var _DSRadio, _DSRadio2;
27
27
 
28
28
  const radioName = 'gender';
29
29
 
30
- const Gender = _ref => {
31
- let {
32
- feedbackMessage,
33
- ...rest
34
- } = _ref;
35
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_index.RadioGroup, {
30
+ const Gender = ({
31
+ feedbackMessage,
32
+ ...rest
33
+ }) => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_index.RadioGroup, {
34
+ name: radioName,
35
+ labelProps: {
36
+ labelText: 'Gender',
37
+ required: true,
38
+ feedbackMessage
39
+ },
40
+ orientation: "horizontal",
41
+ ...rest,
42
+ children: [_DSRadio || (_DSRadio = /*#__PURE__*/(0, _jsx3.default)(_Radio.default, {
36
43
  name: radioName,
37
- labelProps: {
38
- labelText: 'Gender',
39
- required: true,
40
- feedbackMessage
41
- },
42
- orientation: "horizontal",
43
- ...rest,
44
- children: [_DSRadio || (_DSRadio = /*#__PURE__*/(0, _jsx3.default)(_Radio.default, {
45
- name: radioName,
46
- value: "male",
47
- labelText: "Male"
48
- })), _DSRadio2 || (_DSRadio2 = /*#__PURE__*/(0, _jsx3.default)(_Radio.default, {
49
- name: radioName,
50
- value: "female",
51
- labelText: "Female"
52
- }))]
53
- });
54
- };
55
-
56
- const Template = _ref2 => {
57
- let {
58
- props
59
- } = _ref2;
60
- return /*#__PURE__*/(0, _jsx3.default)(_index2.Form, {}, void 0, /*#__PURE__*/(0, _jsx3.default)(_connectForm.ConnectForm, {}, void 0, _ref3 => {
61
- let {
62
- formState: {
63
- errors
64
- }
65
- } = _ref3;
66
- const errField = (0, _reactHookForm.get)(errors, radioName);
67
- const feedbackMessage = errField === null || errField === void 0 ? void 0 : errField.message;
68
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(Gender, {
69
- feedbackMessage: feedbackMessage,
70
- ...props
71
- });
72
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_watchValue.WatchValue, {
44
+ value: "male",
45
+ labelText: "Male"
46
+ })), _DSRadio2 || (_DSRadio2 = /*#__PURE__*/(0, _jsx3.default)(_Radio.default, {
73
47
  name: radioName,
48
+ value: "female",
49
+ labelText: "Female"
50
+ }))]
51
+ });
52
+
53
+ const Template = ({
54
+ props
55
+ }) => /*#__PURE__*/(0, _jsx3.default)(_index2.Form, {}, void 0, /*#__PURE__*/(0, _jsx3.default)(_connectForm.ConnectForm, {}, void 0, ({
56
+ formState: {
57
+ errors
58
+ }
59
+ }) => {
60
+ const errField = (0, _reactHookForm.get)(errors, radioName);
61
+ const feedbackMessage = errField === null || errField === void 0 ? void 0 : errField.message;
62
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(Gender, {
63
+ feedbackMessage: feedbackMessage,
74
64
  ...props
75
- }));
76
- };
65
+ });
66
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_watchValue.WatchValue, {
67
+ name: radioName,
68
+ ...props
69
+ }));
77
70
 
78
71
  var _default = {
79
72
  title: 'Components/Form/Controls/RadioGroup',
@@ -15,26 +15,20 @@ var _reactHookForm = require("react-hook-form");
15
15
 
16
16
  var _jsxRuntime = require("react/jsx-runtime");
17
17
 
18
- const TextBox = _ref => {
19
- let {
20
- name,
21
- defaultValue = '',
22
- rules = {},
23
- ...rest
24
- } = _ref;
25
- return /*#__PURE__*/(0, _jsx3.default)(_reactHookForm.Controller, {
26
- name: name,
27
- defaultValue: defaultValue,
28
- rules: rules,
29
- render: _ref2 => {
30
- let {
31
- field
32
- } = _ref2;
33
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_TextBox.default, { ...rest,
34
- ...field
35
- });
36
- }
37
- });
38
- };
18
+ const TextBox = ({
19
+ name,
20
+ defaultValue = '',
21
+ rules = {},
22
+ ...rest
23
+ }) => /*#__PURE__*/(0, _jsx3.default)(_reactHookForm.Controller, {
24
+ name: name,
25
+ defaultValue: defaultValue,
26
+ rules: rules,
27
+ render: ({
28
+ field
29
+ }) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_TextBox.default, { ...rest,
30
+ ...field
31
+ })
32
+ });
39
33
 
40
34
  exports.TextBox = TextBox;
@@ -15,11 +15,10 @@ var _reactHookForm = require("react-hook-form");
15
15
 
16
16
  var _h;
17
17
 
18
- const WatchValue = _ref => {
19
- let {
20
- name,
21
- labelText
22
- } = _ref;
18
+ const WatchValue = ({
19
+ name,
20
+ labelText
21
+ }) => {
23
22
  const {
24
23
  watch
25
24
  } = (0, _reactHookForm.useFormContext)();
@@ -13,16 +13,15 @@ var _reactHookForm = require("react-hook-form");
13
13
 
14
14
  var _jsxRuntime = require("react/jsx-runtime");
15
15
 
16
- const Form = _ref => {
17
- let {
18
- /* eslint-disable indent */
19
- classname,
20
- reactHookFormProps = {
21
- mode: 'onBlur'
22
- },
23
- children,
24
- onSubmit
25
- } = _ref;
16
+ const Form = ({
17
+ /* eslint-disable indent */
18
+ classname,
19
+ reactHookFormProps = {
20
+ mode: 'onBlur'
21
+ },
22
+ children,
23
+ onSubmit
24
+ }) => {
26
25
  const methods = (0, _reactHookForm.useForm)(reactHookFormProps);
27
26
  const formProps = {};
28
27
  if (onSubmit) formProps.onSubmit = methods.handleSubmit(onSubmit);
@@ -37,12 +37,9 @@ var _default = {
37
37
  exports.default = _default;
38
38
  const StyledButton = /*#__PURE__*/(0, _styledComponents.default)(_index.FormSubmitButton).withConfig({
39
39
  componentId: "sc-1mzmcta-0"
40
- })(["margin-top:", ";"], _ref => {
41
- let {
42
- theme
43
- } = _ref;
44
- return theme.space.xs;
45
- });
40
+ })(["margin-top:", ";"], ({
41
+ theme
42
+ }) => theme.space.xs);
46
43
 
47
44
  const WatchDashBoard = () => {
48
45
  const {
@@ -13,9 +13,8 @@ var _Button = _interopRequireDefault(require("@elliemae/ds-basic/Button"));
13
13
 
14
14
  var _jsxRuntime = require("react/jsx-runtime");
15
15
 
16
- const FormSubmitButton = _ref => {
17
- let { ...rest
18
- } = _ref;
16
+ const FormSubmitButton = ({ ...rest
17
+ }) => {
19
18
  const {
20
19
  formState,
21
20
  formProps: {
@@ -35,12 +35,9 @@ var _default = {
35
35
  exports.default = _default;
36
36
  const StyledButton = /*#__PURE__*/(0, _styledComponents.default)(_index.FormSubmitButton).withConfig({
37
37
  componentId: "sc-1wwguuk-0"
38
- })(["margin-top:", ";"], _ref => {
39
- let {
40
- theme
41
- } = _ref;
42
- return theme.space.xs;
43
- });
38
+ })(["margin-top:", ";"], ({
39
+ theme
40
+ }) => theme.space.xs);
44
41
 
45
42
  const Template = args => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_index2.Form, { ...args,
46
43
  children: [_FirstName || (_FirstName = /*#__PURE__*/(0, _jsx3.default)(_personalInfoSection.FirstName, {})), _DOB || (_DOB = /*#__PURE__*/(0, _jsx3.default)(_personalInfoSection.DOB, {})), _State || (_State = /*#__PURE__*/(0, _jsx3.default)(_personalInfoSection.State, {})), _MaritalStatus || (_MaritalStatus = /*#__PURE__*/(0, _jsx3.default)(_personalInfoSection.MaritalStatus, {})), /*#__PURE__*/(0, _jsxRuntime.jsx)(StyledButton, { ...btnProps
@@ -17,8 +17,7 @@ const onGuestUnloadStart = () => new Promise(resolve => {
17
17
 
18
18
  exports.onGuestUnloadStart = onGuestUnloadStart;
19
19
 
20
- const notifyGuestUnloadComplete = function (guestAppConfirmation, guestAppId) {
21
- let unloadType = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'close_loan';
20
+ const notifyGuestUnloadComplete = (guestAppConfirmation, guestAppId, unloadType = 'close_loan') => {
22
21
  (0, _index.sendMessageToHost)({
23
22
  guestAppId,
24
23
  message: {
@@ -9,12 +9,6 @@ exports.CenterRegion = void 0;
9
9
 
10
10
  var _jsx2 = _interopRequireDefault(require("@babel/runtime/helpers/jsx"));
11
11
 
12
- require("core-js/modules/es.string.replace.js");
13
-
14
- require("core-js/modules/esnext.async-iterator.map.js");
15
-
16
- require("core-js/modules/esnext.iterator.map.js");
17
-
18
12
  var _reactRouterDom = require("react-router-dom");
19
13
 
20
14
  var _styledComponents = _interopRequireDefault(require("styled-components"));
@@ -35,19 +29,13 @@ const StyledNavLink = /*#__PURE__*/(0, _styledComponents.default)(_reactRouterDo
35
29
  })(["display:flex;align-items:center;color:", ";text-decoration:none;text-transform:uppercase;height:100%;padding:0 ", " 0 ", ";&.", "{background-color:#48acff;}"], props => props.theme.colors.neutral['000'], props => props.theme.space.xs, props => props.theme.space.xs, activeClassName);
36
30
  const publicPath = (process.env.ASSET_PATH || '/').replace(/\/?$/, '');
37
31
 
38
- const CenterRegion = _ref => {
39
- let {
40
- links = []
41
- } = _ref;
42
- return /*#__PURE__*/(0, _jsx2.default)(NavList, {}, void 0, links.map(_ref2 => {
43
- let {
44
- name = '',
45
- path = ''
46
- } = _ref2;
47
- return /*#__PURE__*/(0, _jsx2.default)(NavListItem, {}, path, /*#__PURE__*/(0, _jsx2.default)(StyledNavLink, {
48
- to: "".concat(publicPath).concat(path.replace(/^\/?/, '/'))
49
- }, void 0, name));
50
- }));
51
- };
32
+ const CenterRegion = ({
33
+ links = []
34
+ }) => /*#__PURE__*/(0, _jsx2.default)(NavList, {}, void 0, links.map(({
35
+ name = '',
36
+ path = ''
37
+ }) => /*#__PURE__*/(0, _jsx2.default)(NavListItem, {}, path, /*#__PURE__*/(0, _jsx2.default)(StyledNavLink, {
38
+ to: `${publicPath}${path.replace(/^\/?/, '/')}`
39
+ }, void 0, name))));
52
40
 
53
41
  exports.CenterRegion = CenterRegion;
@@ -25,16 +25,13 @@ const HeaderContainer = /*#__PURE__*/_styledComponents.default.header.withConfig
25
25
  componentId: "sc-cvwjlr-0"
26
26
  })(["display:flex;height:56px;background-color:#2080cd;padding:0px ", " 0px ", ";"], props => props.theme.space.xs, props => props.theme.space.xxs);
27
27
 
28
- const Header = _ref => {
29
- let {
30
- links = [],
31
- show = false
32
- } = _ref;
33
- return (0, _index.isStandAloneGuest)() || (0, _index.isHost)() || show ? /*#__PURE__*/(0, _jsx2.default)(HeaderContainer, {
34
- role: "banner"
35
- }, void 0, _LogoRegion || (_LogoRegion = /*#__PURE__*/(0, _jsx2.default)(_index2.LogoRegion, {})), /*#__PURE__*/(0, _jsx2.default)(_index3.CenterRegion, {
36
- links: links
37
- }), _NavRegion || (_NavRegion = /*#__PURE__*/(0, _jsx2.default)(_index4.NavRegion, {}))) : null;
38
- };
28
+ const Header = ({
29
+ links = [],
30
+ show = false
31
+ }) => (0, _index.isStandAloneGuest)() || (0, _index.isHost)() || show ? /*#__PURE__*/(0, _jsx2.default)(HeaderContainer, {
32
+ role: "banner"
33
+ }, void 0, _LogoRegion || (_LogoRegion = /*#__PURE__*/(0, _jsx2.default)(_index2.LogoRegion, {})), /*#__PURE__*/(0, _jsx2.default)(_index3.CenterRegion, {
34
+ links: links
35
+ }), _NavRegion || (_NavRegion = /*#__PURE__*/(0, _jsx2.default)(_index4.NavRegion, {}))) : null;
39
36
 
40
37
  exports.Header = Header;
@@ -9,7 +9,7 @@ const bindEvent = (element, eventName, eventHandler) => {
9
9
  if (element.addEventListener) {
10
10
  element.addEventListener(eventName, eventHandler, false);
11
11
  } else if (element.attachEvent) {
12
- element.attachEvent("on".concat(eventName), eventHandler);
12
+ element.attachEvent(`on${eventName}`, eventHandler);
13
13
  }
14
14
  };
15
15
 
@@ -19,7 +19,7 @@ const removeEvent = (element, eventName, eventHandler) => {
19
19
  if (element.removeEventListener) {
20
20
  element.removeEventListener(eventName, eventHandler);
21
21
  } else if (element.detachEvent) {
22
- element.detachEvent("on".concat(eventName), eventHandler);
22
+ element.detachEvent(`on${eventName}`, eventHandler);
23
23
  }
24
24
  };
25
25
 
@@ -1,9 +1,5 @@
1
1
  "use strict";
2
2
 
3
- require("core-js/modules/esnext.weak-map.delete-all.js");
4
-
5
- require("core-js/modules/esnext.weak-map.emplace.js");
6
-
7
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
8
4
 
9
5
  Object.defineProperty(exports, "__esModule", {
@@ -11,8 +7,6 @@ Object.defineProperty(exports, "__esModule", {
11
7
  });
12
8
  exports.default = exports.Basic = void 0;
13
9
 
14
- require("core-js/modules/web.dom-collections.iterator.js");
15
-
16
10
  var _jsx2 = _interopRequireDefault(require("@babel/runtime/helpers/jsx"));
17
11
 
18
12
  var _react = _interopRequireWildcard(require("react"));
@@ -18,8 +18,7 @@ var _jsxRuntime = require("react/jsx-runtime");
18
18
  var _WaitMessageLauncher;
19
19
 
20
20
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
21
- const loadable = function (importFunc) {
22
- let fallback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _WaitMessageLauncher || (_WaitMessageLauncher = /*#__PURE__*/(0, _jsx3.default)(_waitMessageLauncher.WaitMessageLauncher, {}));
21
+ const loadable = (importFunc, fallback = _WaitMessageLauncher || (_WaitMessageLauncher = /*#__PURE__*/(0, _jsx3.default)(_waitMessageLauncher.WaitMessageLauncher, {}))) => {
23
22
  const LazyComponent = /*#__PURE__*/(0, _react.lazy)(importFunc); // eslint-disable-next-line @typescript-eslint/no-explicit-any
24
23
 
25
24
  return props => /*#__PURE__*/(0, _jsx3.default)(_react.Suspense, {
@@ -15,12 +15,11 @@ var _actions = require("../../data/auth/actions.js");
15
15
 
16
16
  var _jsxRuntime = require("react/jsx-runtime");
17
17
 
18
- const Login = _ref => {
19
- let {
20
- clientId,
21
- scope,
22
- responseType
23
- } = _ref;
18
+ const Login = ({
19
+ clientId,
20
+ scope,
21
+ responseType
22
+ }) => {
24
23
  const dispatch = (0, _reactRedux.useAppDispatch)();
25
24
  (0, _react.useEffect)(() => {
26
25
  (0, _index.login)({
@@ -23,7 +23,7 @@ var _jsxRuntime = require("react/jsx-runtime");
23
23
 
24
24
  const MediaBreakpoint = () => {
25
25
  const theme = (0, _react.useContext)(_styledComponents.ThemeContext);
26
- const currentBreakpoint = (0, _index2.useMediaBreakpoints)(["(max-width: ".concat(theme.breakpoints.small, ")"), "(max-width: ".concat(theme.breakpoints.medium, ")"), "(max-width: ".concat(theme.breakpoints.large, ")")], ['small', 'medium', 'large'], 'large');
26
+ const currentBreakpoint = (0, _index2.useMediaBreakpoints)([`(max-width: ${theme.breakpoints.small})`, `(max-width: ${theme.breakpoints.medium})`, `(max-width: ${theme.breakpoints.large})`], ['small', 'medium', 'large'], 'large');
27
27
  const dispatch = (0, _reactRedux.useAppDispatch)();
28
28
  (0, _react.useEffect)(() => {
29
29
  dispatch({
@@ -20,8 +20,7 @@ const getHostAppData = (action, resolve) => event => {
20
20
 
21
21
  exports.getHostAppData = getHostAppData;
22
22
 
23
- const sendMessageToHost = function (message) {
24
- let hostedAppUrl = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : document.referrer;
23
+ const sendMessageToHost = (message, hostedAppUrl = document.referrer) => {
25
24
  window.parent.postMessage(message, hostedAppUrl);
26
25
  };
27
26
 
@@ -5,18 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.unmountApp = exports.unloadApp = exports.mountApp = exports.loadApp = void 0;
7
7
 
8
- require("core-js/modules/web.dom-collections.iterator.js");
9
-
10
- require("core-js/modules/esnext.async-iterator.for-each.js");
11
-
12
- require("core-js/modules/esnext.iterator.constructor.js");
13
-
14
- require("core-js/modules/esnext.iterator.for-each.js");
15
-
16
- require("core-js/modules/esnext.async-iterator.map.js");
17
-
18
- require("core-js/modules/esnext.iterator.map.js");
19
-
20
8
  var _webStorage = require("../../../utils/web-storage.js");
21
9
 
22
10
  var _host = require("../../../utils/micro-frontend/host.js");
@@ -42,23 +30,22 @@ const isCss = fileName => cssType.test(fileName);
42
30
 
43
31
  const activeApps = {};
44
32
 
45
- const initApplication = async _ref => {
46
- let {
47
- id,
48
- name,
49
- hostUrl,
50
- history,
51
- theme,
52
- manifestPath,
53
- homeRoute
54
- } = _ref;
33
+ const initApplication = async ({
34
+ id,
35
+ name,
36
+ hostUrl,
37
+ history,
38
+ theme,
39
+ manifestPath,
40
+ homeRoute
41
+ }) => {
55
42
  const app = (window.emui || {})[id] || {}; // eslint-disable-next-line @typescript-eslint/unbound-method
56
43
 
57
44
  const {
58
45
  init
59
46
  } = app;
60
- if (!init || typeof init !== 'function') throw new Error("Application ".concat(name, " with id ").concat(id, " doesn't expose init method."));
61
- const prevState = await _webStorage.persistentStorage.get("state-".concat(id));
47
+ if (!init || typeof init !== 'function') throw new Error(`Application ${name} with id ${id} doesn't expose init method.`);
48
+ const prevState = await _webStorage.persistentStorage.get(`state-${id}`);
62
49
  return init({
63
50
  host: _host.CMicroAppHost.getInstance(),
64
51
  hostUrl,
@@ -72,19 +59,18 @@ const initApplication = async _ref => {
72
59
  });
73
60
  };
74
61
 
75
- const mountApp = async _ref2 => {
76
- let {
77
- id,
78
- name
79
- } = _ref2;
62
+ const mountApp = async ({
63
+ id,
64
+ name
65
+ }) => {
80
66
  const app = (window.emui || {})[id] || {}; // eslint-disable-next-line @typescript-eslint/unbound-method
81
67
 
82
68
  const {
83
69
  mount
84
70
  } = app;
85
- if (!mount || typeof mount !== 'function') throw new Error("Application ".concat(name, " with id ").concat(id, " doesn't expose mount method."));
71
+ if (!mount || typeof mount !== 'function') throw new Error(`Application ${name} with id ${id} doesn't expose mount method.`);
86
72
  return mount({
87
- containerId: "".concat(_const.APP_CONTAINER_ID_PREFIX).concat(id),
73
+ containerId: `${_const.APP_CONTAINER_ID_PREFIX}${id}`,
88
74
  hostBreakpoint: (0, _window.getCurrentBreakpoint)(),
89
75
  hostViewportSize: (0, _window.getViewportSize)()
90
76
  });
@@ -92,11 +78,10 @@ const mountApp = async _ref2 => {
92
78
 
93
79
  exports.mountApp = mountApp;
94
80
 
95
- const unmountApp = async _ref3 => {
96
- let {
97
- id,
98
- name
99
- } = _ref3;
81
+ const unmountApp = async ({
82
+ id,
83
+ name
84
+ }) => {
100
85
  const app = (window.emui || {})[id];
101
86
  if (!app) return null; // eslint-disable-next-line @typescript-eslint/unbound-method
102
87
 
@@ -104,13 +89,13 @@ const unmountApp = async _ref3 => {
104
89
  unmount
105
90
  } = app;
106
91
  if (!unmount) return null;
107
- if (typeof unmount !== 'function') throw new Error("unmount failed for application ".concat(name, " with id ").concat(id, ". unmount is not a valid function"));
92
+ if (typeof unmount !== 'function') throw new Error(`unmount failed for application ${name} with id ${id}. unmount is not a valid function`);
108
93
  const currentState = await unmount({
109
- containerId: "".concat(_const.APP_CONTAINER_ID_PREFIX).concat(id)
94
+ containerId: `${_const.APP_CONTAINER_ID_PREFIX}${id}`
110
95
  });
111
96
 
112
97
  if (currentState) {
113
- await _webStorage.persistentStorage.set("state-".concat(id), currentState);
98
+ await _webStorage.persistentStorage.set(`state-${id}`, currentState);
114
99
  }
115
100
 
116
101
  return Promise.resolve();
@@ -144,9 +129,7 @@ Promise.all(requests).then(addAppToActiveAppList.bind(null, appConfig.id)).then(
144
129
  throw new Error(logRecord.msg);
145
130
  });
146
131
 
147
- const removeAssetsFromDOM = function (id) {
148
- let documentEle = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : document;
149
-
132
+ const removeAssetsFromDOM = (id, documentEle = document) => {
150
133
  const host = _host.CMicroAppHost.getInstance();
151
134
 
152
135
  if (host) delete host.activeGuests[id];
@@ -187,12 +170,11 @@ const loadApp = async appConfig => {
187
170
 
188
171
  exports.loadApp = loadApp;
189
172
 
190
- const unloadApp = _ref4 => {
191
- let {
192
- id,
193
- hostUrl,
194
- documentEle
195
- } = _ref4;
173
+ const unloadApp = ({
174
+ id,
175
+ hostUrl,
176
+ documentEle
177
+ }) => {
196
178
  (0, _index.getLogger)().info(_logRecords.logRecords.APP_UNLOADING(id));
197
179
  const app = (window.emui || {})[id];
198
180
  if (!app) return;
@@ -20,7 +20,7 @@ var _useAppWillRender = require("./use-app-will-render.js");
20
20
  const MicroApp = /*#__PURE__*/(0, _react.memo)(props => {
21
21
  (0, _useAppWillRender.useAppWillRender)(props);
22
22
  return /*#__PURE__*/(0, _jsx2.default)(_StyledDiv, {
23
- id: "".concat(_const.APP_CONTAINER_ID_PREFIX).concat(props.id)
23
+ id: `${_const.APP_CONTAINER_ID_PREFIX}${props.id}`
24
24
  });
25
25
  });
26
26
  exports.MicroApp = MicroApp;
@@ -5,20 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.getFullFileNameofAssetsFromManifest = exports.getAppManifest = void 0;
7
7
 
8
- require("core-js/modules/es.string.replace.js");
9
-
10
- require("core-js/modules/web.dom-collections.iterator.js");
11
-
12
- require("core-js/modules/web.url.js");
13
-
14
- require("core-js/modules/web.url-search-params.js");
15
-
16
- require("core-js/modules/esnext.async-iterator.reduce.js");
17
-
18
- require("core-js/modules/esnext.iterator.constructor.js");
19
-
20
- require("core-js/modules/esnext.iterator.reduce.js");
21
-
22
8
  var _index = require("../../../communication/http-client/index.js");
23
9
 
24
10
  var _url = require("../../../utils/url.js");
@@ -27,40 +13,42 @@ var _index2 = require("../../../utils/micro-frontend/index.js");
27
13
 
28
14
  var _logRecords = require("../../../utils/log-records.js");
29
15
 
30
- const getUnVersionedManifestPath = path => path.replace(/\/\d+\.\d+\//, '/latest/');
16
+ const getUnVersionedManifestPath = path => path.replace(/\/\d+\.\d+/, '/latest');
31
17
 
32
- const getAppManifest = async _ref => {
33
- let {
34
- hostUrl,
35
- manifestPath
36
- } = _ref;
37
- const url = new URL("".concat(manifestPath.replace(/\/?$/, '/'), "manifest.json"), hostUrl);
18
+ const getAppManifest = async ({
19
+ hostUrl,
20
+ manifestPath
21
+ }) => {
22
+ const url = new URL(`${manifestPath.replace(/\/?$/, '/')}manifest.json`, hostUrl);
38
23
  const response = await (0, _index.getHTTPClient)().get((0, _url.removeDoubleSlash)(url.href));
39
24
  const {
40
25
  headers
41
26
  } = response;
42
27
  if (headers['content-type'] && headers['content-type'].includes('application/json')) return response.data;
43
- return getAppManifest({
44
- hostUrl,
45
- manifestPath: getUnVersionedManifestPath(manifestPath)
46
- });
28
+ const unVersionedManifestPath = getUnVersionedManifestPath(manifestPath);
29
+
30
+ if (manifestPath !== unVersionedManifestPath) {
31
+ return getAppManifest({
32
+ hostUrl,
33
+ manifestPath: getUnVersionedManifestPath(manifestPath)
34
+ });
35
+ }
36
+
37
+ throw new Error('manifest.json is not available for the application');
47
38
  };
48
39
 
49
40
  exports.getAppManifest = getAppManifest;
50
41
 
51
- const getFullFileNameofAssetsFromManifest = function (manifest) {
52
- let assetNames = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
53
- return assetNames.reduce((assets, assetName) => {
54
- const fullFileName = manifest[assetName];
55
- if (fullFileName) assets.push(fullFileName); // eslint-disable-next-line no-console
56
- else {
57
- const logRecord = _logRecords.logRecords.ASSET_NOT_FOUND_IN_MANIFEST(assetName);
58
-
59
- (0, _index2.getLogger)().error(logRecord);
60
- throw new Error(logRecord.msg);
61
- }
62
- return assets;
63
- }, []);
64
- };
42
+ const getFullFileNameofAssetsFromManifest = (manifest, assetNames = []) => assetNames.reduce((assets, assetName) => {
43
+ const fullFileName = manifest[assetName];
44
+ if (fullFileName) assets.push(fullFileName); // eslint-disable-next-line no-console
45
+ else {
46
+ const logRecord = _logRecords.logRecords.ASSET_NOT_FOUND_IN_MANIFEST(assetName);
47
+
48
+ (0, _index2.getLogger)().error(logRecord);
49
+ throw new Error(logRecord.msg);
50
+ }
51
+ return assets;
52
+ }, []);
65
53
 
66
54
  exports.getFullFileNameofAssetsFromManifest = getFullFileNameofAssetsFromManifest;