@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
@@ -2,30 +2,24 @@ import _jsx2 from "@babel/runtime/helpers/jsx";
2
2
  import DSRadio from '@elliemae/ds-basic/form/Radio';
3
3
  import { Controller } from 'react-hook-form';
4
4
  import { jsx as _jsx } from "react/jsx-runtime";
5
- export const Radio = _ref => {
6
- let {
7
- name,
8
- defaultChecked = false,
9
- rules = {},
10
- ...rest
11
- } = _ref;
12
- return /*#__PURE__*/_jsx2(Controller, {
13
- name: name,
14
- rules: rules,
15
- render: _ref2 => {
16
- let {
17
- field: {
18
- onChange,
19
- value,
20
- ...restProps
21
- }
22
- } = _ref2;
23
- return /*#__PURE__*/_jsx(DSRadio, { ...rest,
24
- ...restProps,
25
- checked: value,
26
- defaultChecked: defaultChecked,
27
- onChange: e => onChange(((e || {}).target || {}).checked)
28
- });
5
+ export const Radio = ({
6
+ name,
7
+ defaultChecked = false,
8
+ rules = {},
9
+ ...rest
10
+ }) => /*#__PURE__*/_jsx2(Controller, {
11
+ name: name,
12
+ rules: rules,
13
+ render: ({
14
+ field: {
15
+ onChange,
16
+ value,
17
+ ...restProps
29
18
  }
30
- });
31
- };
19
+ }) => /*#__PURE__*/_jsx(DSRadio, { ...rest,
20
+ ...restProps,
21
+ checked: value,
22
+ defaultChecked: defaultChecked,
23
+ onChange: e => onChange(((e || {}).target || {}).checked)
24
+ })
25
+ });
@@ -6,28 +6,24 @@ import { ConnectForm } from "../connect-form.js";
6
6
  import { WatchValue } from "../watch-value.js";
7
7
  import { jsx as _jsx } from "react/jsx-runtime";
8
8
 
9
- const Template = _ref => {
10
- let {
11
- name,
12
- ...rest
13
- } = _ref;
14
- return /*#__PURE__*/_jsx2(Form, {}, void 0, /*#__PURE__*/_jsx2(ConnectForm, {}, void 0, _ref2 => {
15
- let {
16
- formState: {
17
- errors
18
- }
19
- } = _ref2;
20
- const hasError = !!get(errors, name);
21
- return /*#__PURE__*/_jsx(Radio, {
22
- name: name,
23
- ...rest,
24
- hasError: hasError
25
- });
26
- }), /*#__PURE__*/_jsx(WatchValue, {
9
+ const Template = ({
10
+ name,
11
+ ...rest
12
+ }) => /*#__PURE__*/_jsx2(Form, {}, void 0, /*#__PURE__*/_jsx2(ConnectForm, {}, void 0, ({
13
+ formState: {
14
+ errors
15
+ }
16
+ }) => {
17
+ const hasError = !!get(errors, name);
18
+ return /*#__PURE__*/_jsx(Radio, {
27
19
  name: name,
28
- ...rest
29
- }));
30
- };
20
+ ...rest,
21
+ hasError: hasError
22
+ });
23
+ }), /*#__PURE__*/_jsx(WatchValue, {
24
+ name: name,
25
+ ...rest
26
+ }));
31
27
 
32
28
  export default {
33
29
  title: 'Components/Form/Controls/Radio',
@@ -26,25 +26,21 @@ const ToggleValue = () => {
26
26
  });
27
27
  };
28
28
 
29
- const Template = _ref => {
30
- let {
31
- name,
32
- ...rest
33
- } = _ref;
34
- return /*#__PURE__*/_jsx(Form, {}, void 0, /*#__PURE__*/_jsx(ConnectForm, {}, void 0, _ref2 => {
35
- let {
36
- formState: {
37
- errors
38
- }
39
- } = _ref2;
40
- const hasError = !!get(errors, name);
41
- return /*#__PURE__*/_jsx2(Radio, {
42
- name: name,
43
- ...rest,
44
- hasError: hasError
45
- });
46
- }), _ToggleValue || (_ToggleValue = /*#__PURE__*/_jsx(ToggleValue, {})));
47
- };
29
+ const Template = ({
30
+ name,
31
+ ...rest
32
+ }) => /*#__PURE__*/_jsx(Form, {}, void 0, /*#__PURE__*/_jsx(ConnectForm, {}, void 0, ({
33
+ formState: {
34
+ errors
35
+ }
36
+ }) => {
37
+ const hasError = !!get(errors, name);
38
+ return /*#__PURE__*/_jsx2(Radio, {
39
+ name: name,
40
+ ...rest,
41
+ hasError: hasError
42
+ });
43
+ }), _ToggleValue || (_ToggleValue = /*#__PURE__*/_jsx(ToggleValue, {})));
48
44
 
49
45
  export default {
50
46
  title: 'Components/Form/Controls/Radio'
@@ -2,26 +2,20 @@ import _jsx2 from "@babel/runtime/helpers/jsx";
2
2
  import DSRadioGroup from '@elliemae/ds-basic/form/RadioGroup';
3
3
  import { Controller } from 'react-hook-form';
4
4
  import { jsx as _jsx } from "react/jsx-runtime";
5
- export const RadioGroup = _ref => {
6
- let {
7
- name,
8
- rules = {},
9
- ...rest
10
- } = _ref;
11
- return /*#__PURE__*/_jsx2(Controller, {
12
- name: name,
13
- rules: rules,
14
- render: _ref2 => {
15
- let {
16
- field: {
17
- value,
18
- ...restProps
19
- }
20
- } = _ref2;
21
- return /*#__PURE__*/_jsx(DSRadioGroup, { ...rest,
22
- ...restProps,
23
- activeValue: value
24
- });
5
+ export const RadioGroup = ({
6
+ name,
7
+ rules = {},
8
+ ...rest
9
+ }) => /*#__PURE__*/_jsx2(Controller, {
10
+ name: name,
11
+ rules: rules,
12
+ render: ({
13
+ field: {
14
+ value,
15
+ ...restProps
25
16
  }
26
- });
27
- };
17
+ }) => /*#__PURE__*/_jsx(DSRadioGroup, { ...rest,
18
+ ...restProps,
19
+ activeValue: value
20
+ })
21
+ });
@@ -12,53 +12,46 @@ import { jsxs as _jsxs } from "react/jsx-runtime";
12
12
  import { jsx as _jsx2 } from "react/jsx-runtime";
13
13
  const radioName = 'gender';
14
14
 
15
- const Gender = _ref => {
16
- let {
17
- feedbackMessage,
18
- ...rest
19
- } = _ref;
20
- return /*#__PURE__*/_jsxs(RadioGroup, {
15
+ const Gender = ({
16
+ feedbackMessage,
17
+ ...rest
18
+ }) => /*#__PURE__*/_jsxs(RadioGroup, {
19
+ name: radioName,
20
+ labelProps: {
21
+ labelText: 'Gender',
22
+ required: true,
23
+ feedbackMessage
24
+ },
25
+ orientation: "horizontal",
26
+ ...rest,
27
+ children: [_DSRadio || (_DSRadio = /*#__PURE__*/_jsx(DSRadio, {
21
28
  name: radioName,
22
- labelProps: {
23
- labelText: 'Gender',
24
- required: true,
25
- feedbackMessage
26
- },
27
- orientation: "horizontal",
28
- ...rest,
29
- children: [_DSRadio || (_DSRadio = /*#__PURE__*/_jsx(DSRadio, {
30
- name: radioName,
31
- value: "male",
32
- labelText: "Male"
33
- })), _DSRadio2 || (_DSRadio2 = /*#__PURE__*/_jsx(DSRadio, {
34
- name: radioName,
35
- value: "female",
36
- labelText: "Female"
37
- }))]
38
- });
39
- };
40
-
41
- const Template = _ref2 => {
42
- let {
43
- props
44
- } = _ref2;
45
- return /*#__PURE__*/_jsx(Form, {}, void 0, /*#__PURE__*/_jsx(ConnectForm, {}, void 0, _ref3 => {
46
- let {
47
- formState: {
48
- errors
49
- }
50
- } = _ref3;
51
- const errField = get(errors, radioName);
52
- const feedbackMessage = errField === null || errField === void 0 ? void 0 : errField.message;
53
- return /*#__PURE__*/_jsx2(Gender, {
54
- feedbackMessage: feedbackMessage,
55
- ...props
56
- });
57
- }), /*#__PURE__*/_jsx2(WatchValue, {
29
+ value: "male",
30
+ labelText: "Male"
31
+ })), _DSRadio2 || (_DSRadio2 = /*#__PURE__*/_jsx(DSRadio, {
58
32
  name: radioName,
33
+ value: "female",
34
+ labelText: "Female"
35
+ }))]
36
+ });
37
+
38
+ const Template = ({
39
+ props
40
+ }) => /*#__PURE__*/_jsx(Form, {}, void 0, /*#__PURE__*/_jsx(ConnectForm, {}, void 0, ({
41
+ formState: {
42
+ errors
43
+ }
44
+ }) => {
45
+ const errField = get(errors, radioName);
46
+ const feedbackMessage = errField === null || errField === void 0 ? void 0 : errField.message;
47
+ return /*#__PURE__*/_jsx2(Gender, {
48
+ feedbackMessage: feedbackMessage,
59
49
  ...props
60
- }));
61
- };
50
+ });
51
+ }), /*#__PURE__*/_jsx2(WatchValue, {
52
+ name: radioName,
53
+ ...props
54
+ }));
62
55
 
63
56
  export default {
64
57
  title: 'Components/Form/Controls/RadioGroup',
@@ -2,24 +2,18 @@ import _jsx2 from "@babel/runtime/helpers/jsx";
2
2
  import DSTextBox from '@elliemae/ds-basic/form/TextBox';
3
3
  import { Controller } from 'react-hook-form';
4
4
  import { jsx as _jsx } from "react/jsx-runtime";
5
- export const TextBox = _ref => {
6
- let {
7
- name,
8
- defaultValue = '',
9
- rules = {},
10
- ...rest
11
- } = _ref;
12
- return /*#__PURE__*/_jsx2(Controller, {
13
- name: name,
14
- defaultValue: defaultValue,
15
- rules: rules,
16
- render: _ref2 => {
17
- let {
18
- field
19
- } = _ref2;
20
- return /*#__PURE__*/_jsx(DSTextBox, { ...rest,
21
- ...field
22
- });
23
- }
24
- });
25
- };
5
+ export const TextBox = ({
6
+ name,
7
+ defaultValue = '',
8
+ rules = {},
9
+ ...rest
10
+ }) => /*#__PURE__*/_jsx2(Controller, {
11
+ name: name,
12
+ defaultValue: defaultValue,
13
+ rules: rules,
14
+ render: ({
15
+ field
16
+ }) => /*#__PURE__*/_jsx(DSTextBox, { ...rest,
17
+ ...field
18
+ })
19
+ });
@@ -5,11 +5,10 @@ import _styled from "styled-components";
5
5
  var _h;
6
6
 
7
7
  import { useFormContext } from 'react-hook-form';
8
- export const WatchValue = _ref => {
9
- let {
10
- name,
11
- labelText
12
- } = _ref;
8
+ export const WatchValue = ({
9
+ name,
10
+ labelText
11
+ }) => {
13
12
  const {
14
13
  watch
15
14
  } = useFormContext();
@@ -2,16 +2,15 @@ import _styled from "styled-components";
2
2
  import { useForm, FormProvider } from 'react-hook-form'; // eslint-disable-next-line @typescript-eslint/ban-types
3
3
 
4
4
  import { jsx as _jsx } from "react/jsx-runtime";
5
- export const Form = _ref => {
6
- let {
7
- /* eslint-disable indent */
8
- classname,
9
- reactHookFormProps = {
10
- mode: 'onBlur'
11
- },
12
- children,
13
- onSubmit
14
- } = _ref;
5
+ export const Form = ({
6
+ /* eslint-disable indent */
7
+ classname,
8
+ reactHookFormProps = {
9
+ mode: 'onBlur'
10
+ },
11
+ children,
12
+ onSubmit
13
+ }) => {
15
14
  const methods = useForm(reactHookFormProps);
16
15
  const formProps = {};
17
16
  if (onSubmit) formProps.onSubmit = methods.handleSubmit(onSubmit);
@@ -23,12 +23,9 @@ export default {
23
23
  };
24
24
  const StyledButton = /*#__PURE__*/styled(FormSubmitButton).withConfig({
25
25
  componentId: "sc-1mzmcta-0"
26
- })(["margin-top:", ";"], _ref => {
27
- let {
28
- theme
29
- } = _ref;
30
- return theme.space.xs;
31
- });
26
+ })(["margin-top:", ";"], ({
27
+ theme
28
+ }) => theme.space.xs);
32
29
 
33
30
  const WatchDashBoard = () => {
34
31
  const {
@@ -1,9 +1,8 @@
1
1
  import { useFormContext } from 'react-hook-form';
2
2
  import DSButton from '@elliemae/ds-basic/Button';
3
3
  import { jsx as _jsx } from "react/jsx-runtime";
4
- export const FormSubmitButton = _ref => {
5
- let { ...rest
6
- } = _ref;
4
+ export const FormSubmitButton = ({ ...rest
5
+ }) => {
7
6
  const {
8
7
  formState,
9
8
  formProps: {
@@ -21,12 +21,9 @@ export default {
21
21
  };
22
22
  const StyledButton = /*#__PURE__*/styled(FormSubmitButton).withConfig({
23
23
  componentId: "sc-1wwguuk-0"
24
- })(["margin-top:", ";"], _ref => {
25
- let {
26
- theme
27
- } = _ref;
28
- return theme.space.xs;
29
- });
24
+ })(["margin-top:", ";"], ({
25
+ theme
26
+ }) => theme.space.xs);
30
27
 
31
28
  const Template = args => /*#__PURE__*/_jsxs(Form, { ...args,
32
29
  children: [_FirstName || (_FirstName = /*#__PURE__*/_jsx(FirstName, {})), _DOB || (_DOB = /*#__PURE__*/_jsx(DOB, {})), _State || (_State = /*#__PURE__*/_jsx(State, {})), _MaritalStatus || (_MaritalStatus = /*#__PURE__*/_jsx(MaritalStatus, {})), /*#__PURE__*/_jsx2(StyledButton, { ...btnProps
@@ -6,8 +6,7 @@ export const onGuestUnloadStart = () => new Promise(resolve => {
6
6
  }
7
7
  });
8
8
  });
9
- export const notifyGuestUnloadComplete = function (guestAppConfirmation, guestAppId) {
10
- let unloadType = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'close_loan';
9
+ export const notifyGuestUnloadComplete = (guestAppConfirmation, guestAppId, unloadType = 'close_loan') => {
11
10
  sendMessageToHost({
12
11
  guestAppId,
13
12
  message: {
@@ -1,7 +1,4 @@
1
1
  import _jsx from "@babel/runtime/helpers/jsx";
2
- import "core-js/modules/es.string.replace.js";
3
- import "core-js/modules/esnext.async-iterator.map.js";
4
- import "core-js/modules/esnext.iterator.map.js";
5
2
  import { NavLink } from 'react-router-dom';
6
3
  import styled from 'styled-components';
7
4
  const NavList = /*#__PURE__*/styled.ul.withConfig({
@@ -17,17 +14,11 @@ const StyledNavLink = /*#__PURE__*/styled(NavLink).attrs({
17
14
  componentId: "sc-ztmnvf-2"
18
15
  })(["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);
19
16
  const publicPath = (process.env.ASSET_PATH || '/').replace(/\/?$/, '');
20
- export const CenterRegion = _ref => {
21
- let {
22
- links = []
23
- } = _ref;
24
- return /*#__PURE__*/_jsx(NavList, {}, void 0, links.map(_ref2 => {
25
- let {
26
- name = '',
27
- path = ''
28
- } = _ref2;
29
- return /*#__PURE__*/_jsx(NavListItem, {}, path, /*#__PURE__*/_jsx(StyledNavLink, {
30
- to: "".concat(publicPath).concat(path.replace(/^\/?/, '/'))
31
- }, void 0, name));
32
- }));
33
- };
17
+ export const CenterRegion = ({
18
+ links = []
19
+ }) => /*#__PURE__*/_jsx(NavList, {}, void 0, links.map(({
20
+ name = '',
21
+ path = ''
22
+ }) => /*#__PURE__*/_jsx(NavListItem, {}, path, /*#__PURE__*/_jsx(StyledNavLink, {
23
+ to: `${publicPath}${path.replace(/^\/?/, '/')}`
24
+ }, void 0, name))));
@@ -10,14 +10,11 @@ import { NavRegion } from "./nav-region/index.js";
10
10
  const HeaderContainer = /*#__PURE__*/styled.header.withConfig({
11
11
  componentId: "sc-cvwjlr-0"
12
12
  })(["display:flex;height:56px;background-color:#2080cd;padding:0px ", " 0px ", ";"], props => props.theme.space.xs, props => props.theme.space.xxs);
13
- export const Header = _ref => {
14
- let {
15
- links = [],
16
- show = false
17
- } = _ref;
18
- return isStandAloneGuest() || isHost() || show ? /*#__PURE__*/_jsx(HeaderContainer, {
19
- role: "banner"
20
- }, void 0, _LogoRegion || (_LogoRegion = /*#__PURE__*/_jsx(LogoRegion, {})), /*#__PURE__*/_jsx(CenterRegion, {
21
- links: links
22
- }), _NavRegion || (_NavRegion = /*#__PURE__*/_jsx(NavRegion, {}))) : null;
23
- };
13
+ export const Header = ({
14
+ links = [],
15
+ show = false
16
+ }) => isStandAloneGuest() || isHost() || show ? /*#__PURE__*/_jsx(HeaderContainer, {
17
+ role: "banner"
18
+ }, void 0, _LogoRegion || (_LogoRegion = /*#__PURE__*/_jsx(LogoRegion, {})), /*#__PURE__*/_jsx(CenterRegion, {
19
+ links: links
20
+ }), _NavRegion || (_NavRegion = /*#__PURE__*/_jsx(NavRegion, {}))) : null;
@@ -2,13 +2,13 @@ export const bindEvent = (element, eventName, eventHandler) => {
2
2
  if (element.addEventListener) {
3
3
  element.addEventListener(eventName, eventHandler, false);
4
4
  } else if (element.attachEvent) {
5
- element.attachEvent("on".concat(eventName), eventHandler);
5
+ element.attachEvent(`on${eventName}`, eventHandler);
6
6
  }
7
7
  };
8
8
  export const removeEvent = (element, eventName, eventHandler) => {
9
9
  if (element.removeEventListener) {
10
10
  element.removeEventListener(eventName, eventHandler);
11
11
  } else if (element.detachEvent) {
12
- element.detachEvent("on".concat(eventName), eventHandler);
12
+ element.detachEvent(`on${eventName}`, eventHandler);
13
13
  }
14
14
  };
@@ -2,7 +2,6 @@ import _jsx from "@babel/runtime/helpers/jsx";
2
2
 
3
3
  var _LiveMessage, _LiveMessageStory;
4
4
 
5
- import "core-js/modules/web.dom-collections.iterator.js";
6
5
  import React, { useState, useEffect } from 'react';
7
6
  import { LiveAnnouncer } from 'react-aria-live';
8
7
  import { useAppDispatch } from "../../data/react-redux.js";
@@ -6,8 +6,7 @@ import { lazy, Suspense } from 'react';
6
6
  import { WaitMessageLauncher } from "../modals/wait-message/wait-message-launcher.js"; // eslint-disable-next-line @typescript-eslint/no-explicit-any
7
7
 
8
8
  import { jsx as _jsx2 } from "react/jsx-runtime";
9
- export const loadable = function (importFunc) {
10
- let fallback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _WaitMessageLauncher || (_WaitMessageLauncher = /*#__PURE__*/_jsx(WaitMessageLauncher, {}));
9
+ export const loadable = (importFunc, fallback = _WaitMessageLauncher || (_WaitMessageLauncher = /*#__PURE__*/_jsx(WaitMessageLauncher, {}))) => {
11
10
  const LazyComponent = /*#__PURE__*/lazy(importFunc); // eslint-disable-next-line @typescript-eslint/no-explicit-any
12
11
 
13
12
  return props => /*#__PURE__*/_jsx(Suspense, {
@@ -4,12 +4,11 @@ import { login } from "../../utils/auth/index.js";
4
4
  import { LOGIN_SUCCESS } from "../../data/auth/actions.js";
5
5
  import { Fragment as _Fragment } from "react/jsx-runtime";
6
6
  import { jsx as _jsx } from "react/jsx-runtime";
7
- export const Login = _ref => {
8
- let {
9
- clientId,
10
- scope,
11
- responseType
12
- } = _ref;
7
+ export const Login = ({
8
+ clientId,
9
+ scope,
10
+ responseType
11
+ }) => {
13
12
  const dispatch = useAppDispatch();
14
13
  useEffect(() => {
15
14
  login({
@@ -9,7 +9,7 @@ import { Fragment as _Fragment } from "react/jsx-runtime";
9
9
  import { jsx as _jsx } from "react/jsx-runtime";
10
10
  export const MediaBreakpoint = () => {
11
11
  const theme = useContext(ThemeContext);
12
- const currentBreakpoint = useMediaBreakpoints(["(max-width: ".concat(theme.breakpoints.small, ")"), "(max-width: ".concat(theme.breakpoints.medium, ")"), "(max-width: ".concat(theme.breakpoints.large, ")")], ['small', 'medium', 'large'], 'large');
12
+ const currentBreakpoint = useMediaBreakpoints([`(max-width: ${theme.breakpoints.small})`, `(max-width: ${theme.breakpoints.medium})`, `(max-width: ${theme.breakpoints.large})`], ['small', 'medium', 'large'], 'large');
13
13
  const dispatch = useAppDispatch();
14
14
  useEffect(() => {
15
15
  dispatch({
@@ -9,7 +9,6 @@ export const getHostAppData = (action, resolve) => event => {
9
9
 
10
10
  resolve();
11
11
  };
12
- export const sendMessageToHost = function (message) {
13
- let hostedAppUrl = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : document.referrer;
12
+ export const sendMessageToHost = (message, hostedAppUrl = document.referrer) => {
14
13
  window.parent.postMessage(message, hostedAppUrl);
15
14
  };