@elliemae/pui-app-sdk 3.15.0 → 3.16.0

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 (158) hide show
  1. package/dist/cjs/analytics/appdynamics.js +4 -1
  2. package/dist/cjs/api/auth/index.js +8 -2
  3. package/dist/cjs/api/helpers.js +7 -1
  4. package/dist/cjs/api/users/index.js +3 -1
  5. package/dist/cjs/communication/http-client/index.js +4 -1
  6. package/dist/cjs/communication/http-client/response-interceptor.js +4 -1
  7. package/dist/cjs/communication/http-client/retry-axios.js +4 -1
  8. package/dist/cjs/data/auth/reducer.js +14 -8
  9. package/dist/cjs/data/breakpoint/index.js +4 -1
  10. package/dist/cjs/data/store.js +10 -2
  11. package/dist/cjs/data/wait-message/reducer.js +4 -1
  12. package/dist/cjs/index.js +4 -1
  13. package/dist/cjs/sideeffect/error-toast/index.js +3 -1
  14. package/dist/cjs/sideeffect/wait-message/index.js +6 -2
  15. package/dist/cjs/utils/app-config/config.js +4 -1
  16. package/dist/cjs/utils/app-config/index.js +9 -2
  17. package/dist/cjs/utils/auth/helper.js +4 -1
  18. package/dist/cjs/utils/auth/index.js +3 -1
  19. package/dist/cjs/utils/micro-frontend/guest.js +7 -2
  20. package/dist/cjs/utils/micro-frontend/host.js +8 -2
  21. package/dist/cjs/utils/micro-frontend/index.js +27 -10
  22. package/dist/cjs/utils/micro-frontend/ssfguest-adapter.js +9 -2
  23. package/dist/cjs/utils/redact-pii.js +8 -2
  24. package/dist/cjs/utils/session.js +14 -4
  25. package/dist/cjs/utils/testing/index.js +5 -7
  26. package/dist/cjs/utils/testing/render-with-redux.js +5 -7
  27. package/dist/cjs/utils/testing/render-with-router-redux.js +10 -9
  28. package/dist/cjs/utils/testing/render-with-router.js +5 -7
  29. package/dist/cjs/utils/testing/render-with-state-addons.js +7 -9
  30. package/dist/cjs/utils/web-storage.js +4 -1
  31. package/dist/cjs/utils/window.js +8 -2
  32. package/dist/cjs/view/app-root/hosted-app.js +13 -3
  33. package/dist/cjs/view/app-root/index.js +21 -19
  34. package/dist/cjs/view/app-root/stand-alone-app.js +17 -3
  35. package/dist/cjs/view/app-router.js +2 -5
  36. package/dist/cjs/view/breakpoint/use-breakpoint.js +9 -5
  37. package/dist/cjs/view/breakpoint/use-media-query-list.js +3 -1
  38. package/dist/cjs/view/error-boundary/default-error-template.js +11 -5
  39. package/dist/cjs/view/error-boundary/index.js +6 -2
  40. package/dist/cjs/view/error-toast/index.js +2 -5
  41. package/dist/cjs/view/fetch-host-app-data/index.js +4 -1
  42. package/dist/cjs/view/fields/autocomplete/index.js +9 -9
  43. package/dist/cjs/view/fields/check-box/index.js +3 -6
  44. package/dist/cjs/view/fields/combo-box/index.js +3 -6
  45. package/dist/cjs/view/fields/combo-box-v3/index.js +3 -6
  46. package/dist/cjs/view/fields/date-input/index.js +3 -6
  47. package/dist/cjs/view/fields/date-picker/index.js +7 -4
  48. package/dist/cjs/view/fields/date-range-picker/index.js +10 -9
  49. package/dist/cjs/view/fields/date-time-picker/index.js +3 -6
  50. package/dist/cjs/view/fields/form-item-layout/index.js +15 -16
  51. package/dist/cjs/view/fields/form-layout-block-item/index.js +16 -17
  52. package/dist/cjs/view/fields/input-mask/index.js +3 -6
  53. package/dist/cjs/view/fields/input-text/index.js +3 -6
  54. package/dist/cjs/view/fields/large-text-box/index.js +3 -6
  55. package/dist/cjs/view/fields/radio/index.js +3 -6
  56. package/dist/cjs/view/fields/radio-group/index.js +3 -6
  57. package/dist/cjs/view/fields/text-box/index.js +3 -6
  58. package/dist/cjs/view/fields/toggle/index.js +3 -6
  59. package/dist/cjs/view/fields/watch-value.js +25 -3
  60. package/dist/cjs/view/form/index.js +13 -8
  61. package/dist/cjs/view/form/personal-info-section.js +54 -47
  62. package/dist/cjs/view/form/submit-button/index.js +2 -5
  63. package/dist/cjs/view/live-message/index.js +2 -5
  64. package/dist/cjs/view/loadable/index.js +8 -10
  65. package/dist/cjs/view/login/index.js +4 -5
  66. package/dist/cjs/view/micro-app/app-factory/index.js +9 -3
  67. package/dist/cjs/view/micro-app/index.js +6 -3
  68. package/dist/cjs/view/micro-app/resources/manifest.js +10 -3
  69. package/dist/cjs/view/micro-app/use-app-will-render.js +37 -28
  70. package/dist/cjs/view/micro-iframe-app/app.js +23 -18
  71. package/dist/cjs/view/micro-iframe-app/iframe/index.js +22 -15
  72. package/dist/cjs/view/micro-iframe-app/index.js +2 -5
  73. package/dist/cjs/view/modals/error/index.js +21 -12
  74. package/dist/cjs/view/modals/navigation-prompt/index.js +46 -27
  75. package/dist/cjs/view/modals/session-expiry/customHooks.js +6 -2
  76. package/dist/cjs/view/modals/session-expiry/index.js +57 -35
  77. package/dist/cjs/view/modals/wait-message/index.js +26 -27
  78. package/dist/cjs/view/page.js +15 -3
  79. package/dist/cjs/view/render-with-delay/index.js +4 -5
  80. package/dist/cjs/view/render-with-host-data/index.js +2 -5
  81. package/dist/cjs/view/require-auth.js +12 -6
  82. package/dist/cjs/view/session-timeout/index.js +15 -14
  83. package/dist/cjs/view/storybook/decorator.js +5 -7
  84. package/dist/cjs/view/visually-hidden/index.js +11 -6
  85. package/dist/esm/api/auth/index.js +8 -2
  86. package/dist/esm/api/helpers.js +7 -1
  87. package/dist/esm/api/users/index.js +3 -1
  88. package/dist/esm/data/auth/reducer.js +10 -7
  89. package/dist/esm/data/store.js +6 -1
  90. package/dist/esm/sideeffect/error-toast/index.js +3 -1
  91. package/dist/esm/sideeffect/wait-message/index.js +6 -2
  92. package/dist/esm/utils/app-config/index.js +5 -1
  93. package/dist/esm/utils/auth/index.js +3 -1
  94. package/dist/esm/utils/micro-frontend/guest.js +3 -1
  95. package/dist/esm/utils/micro-frontend/host.js +8 -2
  96. package/dist/esm/utils/micro-frontend/index.js +23 -9
  97. package/dist/esm/utils/micro-frontend/ssfguest-adapter.js +5 -1
  98. package/dist/esm/utils/redact-pii.js +8 -2
  99. package/dist/esm/utils/session.js +14 -4
  100. package/dist/esm/utils/testing/index.js +5 -4
  101. package/dist/esm/utils/testing/render-with-redux.js +5 -4
  102. package/dist/esm/utils/testing/render-with-router-redux.js +10 -6
  103. package/dist/esm/utils/testing/render-with-router.js +5 -4
  104. package/dist/esm/utils/testing/render-with-state-addons.js +7 -6
  105. package/dist/esm/utils/window.js +8 -2
  106. package/dist/esm/view/app-root/hosted-app.js +9 -2
  107. package/dist/esm/view/app-root/index.js +21 -16
  108. package/dist/esm/view/app-root/stand-alone-app.js +13 -2
  109. package/dist/esm/view/app-router.js +2 -2
  110. package/dist/esm/view/breakpoint/use-breakpoint.js +9 -5
  111. package/dist/esm/view/breakpoint/use-media-query-list.js +3 -1
  112. package/dist/esm/view/error-boundary/default-error-template.js +11 -2
  113. package/dist/esm/view/error-boundary/index.js +2 -1
  114. package/dist/esm/view/error-toast/index.js +2 -2
  115. package/dist/esm/view/fields/autocomplete/index.js +9 -6
  116. package/dist/esm/view/fields/check-box/index.js +3 -3
  117. package/dist/esm/view/fields/combo-box/index.js +3 -3
  118. package/dist/esm/view/fields/combo-box-v3/index.js +3 -3
  119. package/dist/esm/view/fields/date-input/index.js +3 -3
  120. package/dist/esm/view/fields/date-picker/index.js +3 -3
  121. package/dist/esm/view/fields/date-range-picker/index.js +10 -6
  122. package/dist/esm/view/fields/date-time-picker/index.js +3 -3
  123. package/dist/esm/view/fields/form-item-layout/index.js +15 -13
  124. package/dist/esm/view/fields/form-layout-block-item/index.js +16 -14
  125. package/dist/esm/view/fields/input-mask/index.js +3 -3
  126. package/dist/esm/view/fields/input-text/index.js +3 -3
  127. package/dist/esm/view/fields/large-text-box/index.js +3 -3
  128. package/dist/esm/view/fields/radio/index.js +3 -3
  129. package/dist/esm/view/fields/radio-group/index.js +3 -3
  130. package/dist/esm/view/fields/text-box/index.js +3 -3
  131. package/dist/esm/view/fields/toggle/index.js +3 -3
  132. package/dist/esm/view/fields/watch-value.js +21 -2
  133. package/dist/esm/view/form/index.js +9 -7
  134. package/dist/esm/view/form/personal-info-section.js +50 -46
  135. package/dist/esm/view/form/submit-button/index.js +2 -2
  136. package/dist/esm/view/live-message/index.js +2 -2
  137. package/dist/esm/view/loadable/index.js +8 -7
  138. package/dist/esm/view/login/index.js +4 -2
  139. package/dist/esm/view/micro-app/app-factory/index.js +9 -3
  140. package/dist/esm/view/micro-app/index.js +2 -2
  141. package/dist/esm/view/micro-app/resources/manifest.js +10 -3
  142. package/dist/esm/view/micro-app/use-app-will-render.js +37 -28
  143. package/dist/esm/view/micro-iframe-app/app.js +19 -17
  144. package/dist/esm/view/micro-iframe-app/iframe/index.js +18 -14
  145. package/dist/esm/view/micro-iframe-app/index.js +2 -2
  146. package/dist/esm/view/modals/error/index.js +21 -9
  147. package/dist/esm/view/modals/navigation-prompt/index.js +46 -24
  148. package/dist/esm/view/modals/session-expiry/customHooks.js +6 -2
  149. package/dist/esm/view/modals/session-expiry/index.js +57 -32
  150. package/dist/esm/view/modals/wait-message/index.js +26 -24
  151. package/dist/esm/view/page.js +11 -2
  152. package/dist/esm/view/render-with-delay/index.js +4 -2
  153. package/dist/esm/view/render-with-host-data/index.js +2 -2
  154. package/dist/esm/view/require-auth.js +8 -5
  155. package/dist/esm/view/session-timeout/index.js +15 -11
  156. package/dist/esm/view/storybook/decorator.js +5 -4
  157. package/dist/esm/view/visually-hidden/index.js +7 -5
  158. package/package.json +33 -33
@@ -1,4 +1,4 @@
1
- import * as React from "react";
1
+ import { jsx } from "react/jsx-runtime";
2
2
  import { DSComboBox } from "@elliemae/ds-form";
3
3
  import {
4
4
  Controller
@@ -8,11 +8,11 @@ const ComboBox = ({
8
8
  defaultValue = "",
9
9
  rules = {},
10
10
  ...rest
11
- }) => /* @__PURE__ */ React.createElement(Controller, {
11
+ }) => /* @__PURE__ */ jsx(Controller, {
12
12
  name,
13
13
  rules,
14
14
  defaultValue,
15
- render: ({ field: { onChange, ...props } }) => /* @__PURE__ */ React.createElement(DSComboBox, {
15
+ render: ({ field: { onChange, ...props } }) => /* @__PURE__ */ jsx(DSComboBox, {
16
16
  ...rest,
17
17
  ...props,
18
18
  onChange: (selected) => {
@@ -1,4 +1,4 @@
1
- import * as React from "react";
1
+ import { jsx } from "react/jsx-runtime";
2
2
  import { DSComboBox } from "@elliemae/ds-controlled-form";
3
3
  import {
4
4
  Controller
@@ -8,11 +8,11 @@ const ComboBoxV3 = ({
8
8
  defaultValue = null,
9
9
  rules = {},
10
10
  ...rest
11
- }) => /* @__PURE__ */ React.createElement(Controller, {
11
+ }) => /* @__PURE__ */ jsx(Controller, {
12
12
  name,
13
13
  rules,
14
14
  defaultValue,
15
- render: ({ field: { onChange, value, ...props } }) => /* @__PURE__ */ React.createElement(DSComboBox, {
15
+ render: ({ field: { onChange, value, ...props } }) => /* @__PURE__ */ jsx(DSComboBox, {
16
16
  ...rest,
17
17
  ...props,
18
18
  selectedValues: value,
@@ -1,4 +1,4 @@
1
- import * as React from "react";
1
+ import { jsx } from "react/jsx-runtime";
2
2
  import { DSDateInput } from "@elliemae/ds-form";
3
3
  import {
4
4
  Controller
@@ -8,11 +8,11 @@ const DateInput = ({
8
8
  defaultValue = "",
9
9
  rules = {},
10
10
  ...rest
11
- }) => /* @__PURE__ */ React.createElement(Controller, {
11
+ }) => /* @__PURE__ */ jsx(Controller, {
12
12
  name,
13
13
  rules,
14
14
  defaultValue,
15
- render: ({ field }) => /* @__PURE__ */ React.createElement(DSDateInput, {
15
+ render: ({ field }) => /* @__PURE__ */ jsx(DSDateInput, {
16
16
  ...rest,
17
17
  ...field
18
18
  })
@@ -1,4 +1,4 @@
1
- import * as React from "react";
1
+ import { jsx } from "react/jsx-runtime";
2
2
  import DSDatePicker from "@elliemae/ds-date-picker";
3
3
  import {
4
4
  Controller
@@ -8,11 +8,11 @@ const DatePicker = ({
8
8
  defaultValue = "",
9
9
  rules = {},
10
10
  ...rest
11
- }) => /* @__PURE__ */ React.createElement(Controller, {
11
+ }) => /* @__PURE__ */ jsx(Controller, {
12
12
  name,
13
13
  defaultValue,
14
14
  rules,
15
- render: ({ field }) => /* @__PURE__ */ React.createElement(DSDatePicker, {
15
+ render: ({ field }) => /* @__PURE__ */ jsx(DSDatePicker, {
16
16
  ...rest,
17
17
  ...field
18
18
  })
@@ -1,4 +1,4 @@
1
- import * as React from "react";
1
+ import { jsx } from "react/jsx-runtime";
2
2
  import { useState, useEffect } from "react";
3
3
  import { DSControlledDateRangePicker } from "@elliemae/ds-controlled-form";
4
4
  import {
@@ -8,12 +8,16 @@ const WrappedDateRangePicker = ({
8
8
  field: { value, onChange, ...restProps },
9
9
  ...rest
10
10
  }) => {
11
- const [fromDateString, setFromDateString] = useState(value[0]);
12
- const [toDateString, setToDateString] = useState(value[1]);
11
+ const [fromDateString, setFromDateString] = useState(
12
+ value[0]
13
+ );
14
+ const [toDateString, setToDateString] = useState(
15
+ value[1]
16
+ );
13
17
  useEffect(() => {
14
18
  onChange([fromDateString, toDateString]);
15
19
  }, [fromDateString, toDateString]);
16
- return /* @__PURE__ */ React.createElement(DSControlledDateRangePicker, {
20
+ return /* @__PURE__ */ jsx(DSControlledDateRangePicker, {
17
21
  ...rest,
18
22
  ...restProps,
19
23
  fromDate: fromDateString,
@@ -27,11 +31,11 @@ const DateRangePicker = ({
27
31
  defaultValue = ["", ""],
28
32
  rules = {},
29
33
  ...rest
30
- }) => /* @__PURE__ */ React.createElement(Controller, {
34
+ }) => /* @__PURE__ */ jsx(Controller, {
31
35
  name,
32
36
  defaultValue,
33
37
  rules,
34
- render: ({ field }) => /* @__PURE__ */ React.createElement(WrappedDateRangePicker, {
38
+ render: ({ field }) => /* @__PURE__ */ jsx(WrappedDateRangePicker, {
35
39
  field,
36
40
  ...rest
37
41
  })
@@ -1,4 +1,4 @@
1
- import * as React from "react";
1
+ import { jsx } from "react/jsx-runtime";
2
2
  import { DSControlledDateTimePicker } from "@elliemae/ds-controlled-form";
3
3
  import {
4
4
  Controller
@@ -8,11 +8,11 @@ const DateTimePicker = ({
8
8
  defaultValue = "",
9
9
  rules = {},
10
10
  ...rest
11
- }) => /* @__PURE__ */ React.createElement(Controller, {
11
+ }) => /* @__PURE__ */ jsx(Controller, {
12
12
  name,
13
13
  defaultValue,
14
14
  rules,
15
- render: ({ field: { value, onChange, ...restProps } }) => /* @__PURE__ */ React.createElement(DSControlledDateTimePicker, {
15
+ render: ({ field: { value, onChange, ...restProps } }) => /* @__PURE__ */ jsx(DSControlledDateTimePicker, {
16
16
  ...rest,
17
17
  ...restProps,
18
18
  dateTime: value,
@@ -1,19 +1,21 @@
1
- import * as React from "react";
1
+ import { jsx } from "react/jsx-runtime";
2
2
  import { DSFormItemLayout } from "@elliemae/ds-form";
3
3
  import { get } from "react-hook-form";
4
4
  import { ConnectForm } from "../connect-form.js";
5
- const FormItemLayout = ({ name, ...rest }) => /* @__PURE__ */ React.createElement(ConnectForm, null, ({
6
- formState: { errors }
7
- }) => {
8
- const errorField = get(errors, name);
9
- const hasError = !!errorField;
10
- const validationMessage = errorField?.message;
11
- return /* @__PURE__ */ React.createElement(DSFormItemLayout, {
12
- name,
13
- hasError,
14
- validationMessage,
15
- ...rest
16
- });
5
+ const FormItemLayout = ({ name, ...rest }) => /* @__PURE__ */ jsx(ConnectForm, {
6
+ children: ({
7
+ formState: { errors }
8
+ }) => {
9
+ const errorField = get(errors, name);
10
+ const hasError = !!errorField;
11
+ const validationMessage = errorField?.message;
12
+ return /* @__PURE__ */ jsx(DSFormItemLayout, {
13
+ name,
14
+ hasError,
15
+ validationMessage,
16
+ ...rest
17
+ });
18
+ }
17
19
  });
18
20
  export {
19
21
  FormItemLayout
@@ -1,4 +1,4 @@
1
- import * as React from "react";
1
+ import { jsx } from "react/jsx-runtime";
2
2
  import { DSFormLayoutBlockItem } from "@elliemae/ds-form-layout-blocks";
3
3
  import { get } from "react-hook-form";
4
4
  import { ConnectForm } from "../connect-form.js";
@@ -6,19 +6,21 @@ const FormLayoutBlockItem = ({
6
6
  inputID,
7
7
  label,
8
8
  ...rest
9
- }) => /* @__PURE__ */ React.createElement(ConnectForm, null, ({
10
- formState: { errors }
11
- }) => {
12
- const errorField = get(errors, inputID);
13
- const hasError = !!errorField;
14
- const validationMessage = errorField?.message;
15
- return /* @__PURE__ */ React.createElement(DSFormLayoutBlockItem, {
16
- inputID,
17
- label,
18
- hasError,
19
- validationMessage,
20
- ...rest
21
- });
9
+ }) => /* @__PURE__ */ jsx(ConnectForm, {
10
+ children: ({
11
+ formState: { errors }
12
+ }) => {
13
+ const errorField = get(errors, inputID);
14
+ const hasError = !!errorField;
15
+ const validationMessage = errorField?.message;
16
+ return /* @__PURE__ */ jsx(DSFormLayoutBlockItem, {
17
+ inputID,
18
+ label,
19
+ hasError,
20
+ validationMessage,
21
+ ...rest
22
+ });
23
+ }
22
24
  });
23
25
  export {
24
26
  FormLayoutBlockItem
@@ -1,4 +1,4 @@
1
- import * as React from "react";
1
+ import { jsx } from "react/jsx-runtime";
2
2
  import {
3
3
  DSInputMask,
4
4
  MASK_TYPES,
@@ -14,11 +14,11 @@ const InputMask = ({
14
14
  onChange: changeHandler,
15
15
  onBlur: onBlurHandler,
16
16
  ...rest
17
- }) => /* @__PURE__ */ React.createElement(Controller, {
17
+ }) => /* @__PURE__ */ jsx(Controller, {
18
18
  name,
19
19
  rules,
20
20
  defaultValue,
21
- render: ({ field: { onChange, onBlur, ...props } }) => /* @__PURE__ */ React.createElement(DSInputMask, {
21
+ render: ({ field: { onChange, onBlur, ...props } }) => /* @__PURE__ */ jsx(DSInputMask, {
22
22
  ...rest,
23
23
  ...props,
24
24
  onChange: (e) => {
@@ -1,4 +1,4 @@
1
- import * as React from "react";
1
+ import { jsx } from "react/jsx-runtime";
2
2
  import { DSInputText } from "@elliemae/ds-controlled-form";
3
3
  import {
4
4
  Controller
@@ -8,11 +8,11 @@ const InputText = ({
8
8
  defaultValue = "",
9
9
  rules = {},
10
10
  ...rest
11
- }) => /* @__PURE__ */ React.createElement(Controller, {
11
+ }) => /* @__PURE__ */ jsx(Controller, {
12
12
  name,
13
13
  defaultValue,
14
14
  rules,
15
- render: ({ field }) => /* @__PURE__ */ React.createElement(DSInputText, {
15
+ render: ({ field }) => /* @__PURE__ */ jsx(DSInputText, {
16
16
  ...rest,
17
17
  ...field
18
18
  })
@@ -1,4 +1,4 @@
1
- import * as React from "react";
1
+ import { jsx } from "react/jsx-runtime";
2
2
  import { DSLargeInputText } from "@elliemae/ds-form";
3
3
  import {
4
4
  Controller
@@ -8,11 +8,11 @@ const LargeTextBox = ({
8
8
  defaultValue = "",
9
9
  rules = {},
10
10
  ...rest
11
- }) => /* @__PURE__ */ React.createElement(Controller, {
11
+ }) => /* @__PURE__ */ jsx(Controller, {
12
12
  name,
13
13
  rules,
14
14
  defaultValue,
15
- render: ({ field }) => /* @__PURE__ */ React.createElement(DSLargeInputText, {
15
+ render: ({ field }) => /* @__PURE__ */ jsx(DSLargeInputText, {
16
16
  ...rest,
17
17
  ...field
18
18
  })
@@ -1,4 +1,4 @@
1
- import * as React from "react";
1
+ import { jsx } from "react/jsx-runtime";
2
2
  import { DSRadio } from "@elliemae/ds-form";
3
3
  import {
4
4
  Controller
@@ -8,10 +8,10 @@ const Radio = ({
8
8
  defaultChecked = false,
9
9
  rules = {},
10
10
  ...rest
11
- }) => /* @__PURE__ */ React.createElement(Controller, {
11
+ }) => /* @__PURE__ */ jsx(Controller, {
12
12
  name,
13
13
  rules,
14
- render: ({ field: { onChange, value, ...restProps } }) => /* @__PURE__ */ React.createElement(DSRadio, {
14
+ render: ({ field: { onChange, value, ...restProps } }) => /* @__PURE__ */ jsx(DSRadio, {
15
15
  ...rest,
16
16
  ...restProps,
17
17
  checked: value,
@@ -1,12 +1,12 @@
1
- import * as React from "react";
1
+ import { jsx } from "react/jsx-runtime";
2
2
  import { DSRadioGroup } from "@elliemae/ds-form";
3
3
  import {
4
4
  Controller
5
5
  } from "react-hook-form";
6
- const RadioGroup = ({ name, rules = {}, ...rest }) => /* @__PURE__ */ React.createElement(Controller, {
6
+ const RadioGroup = ({ name, rules = {}, ...rest }) => /* @__PURE__ */ jsx(Controller, {
7
7
  name,
8
8
  rules,
9
- render: ({ field: { value, ...restProps } }) => /* @__PURE__ */ React.createElement(DSRadioGroup, {
9
+ render: ({ field: { value, ...restProps } }) => /* @__PURE__ */ jsx(DSRadioGroup, {
10
10
  ...rest,
11
11
  ...restProps,
12
12
  activeValue: value
@@ -1,4 +1,4 @@
1
- import * as React from "react";
1
+ import { jsx } from "react/jsx-runtime";
2
2
  import { DSTextBox } from "@elliemae/ds-form";
3
3
  import {
4
4
  Controller
@@ -8,11 +8,11 @@ const TextBox = ({
8
8
  defaultValue = "",
9
9
  rules = {},
10
10
  ...rest
11
- }) => /* @__PURE__ */ React.createElement(Controller, {
11
+ }) => /* @__PURE__ */ jsx(Controller, {
12
12
  name,
13
13
  defaultValue,
14
14
  rules,
15
- render: ({ field }) => /* @__PURE__ */ React.createElement(DSTextBox, {
15
+ render: ({ field }) => /* @__PURE__ */ jsx(DSTextBox, {
16
16
  ...rest,
17
17
  ...field
18
18
  })
@@ -1,4 +1,4 @@
1
- import * as React from "react";
1
+ import { jsx } from "react/jsx-runtime";
2
2
  import { DSControlledToggle } from "@elliemae/ds-controlled-form";
3
3
  import {
4
4
  Controller
@@ -8,11 +8,11 @@ const Toggle = ({
8
8
  defaultValue = false,
9
9
  rules = {},
10
10
  ...rest
11
- }) => /* @__PURE__ */ React.createElement(Controller, {
11
+ }) => /* @__PURE__ */ jsx(Controller, {
12
12
  name,
13
13
  rules,
14
14
  defaultValue,
15
- render: ({ field: { value, onChange, ...restProps } }) => /* @__PURE__ */ React.createElement(DSControlledToggle, {
15
+ render: ({ field: { value, onChange, ...restProps } }) => /* @__PURE__ */ jsx(DSControlledToggle, {
16
16
  ...rest,
17
17
  ...restProps,
18
18
  checked: value,
@@ -1,4 +1,4 @@
1
- import * as React from "react";
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import styled from "styled-components";
3
3
  import { Grid } from "@elliemae/ds-grid";
4
4
  import { useFormContext } from "react-hook-form";
@@ -16,7 +16,26 @@ const Div = styled.div`
16
16
  const WatchValue = ({ name, label }) => {
17
17
  const { watch } = useFormContext();
18
18
  const data = watch(name, false) || "";
19
- return /* @__PURE__ */ React.createElement(Grid, null, /* @__PURE__ */ React.createElement(Section, null, /* @__PURE__ */ React.createElement("h4", null, "Form Data:"), /* @__PURE__ */ React.createElement(Div, null, /* @__PURE__ */ React.createElement("div", null, label, " : ", /* @__PURE__ */ React.createElement("strong", null, JSON.stringify(data))))));
19
+ return /* @__PURE__ */ jsx(Grid, {
20
+ children: /* @__PURE__ */ jsxs(Section, {
21
+ children: [
22
+ /* @__PURE__ */ jsx("h4", {
23
+ children: "Form Data:"
24
+ }),
25
+ /* @__PURE__ */ jsx(Div, {
26
+ children: /* @__PURE__ */ jsxs("div", {
27
+ children: [
28
+ label,
29
+ " : ",
30
+ /* @__PURE__ */ jsx("strong", {
31
+ children: JSON.stringify(data)
32
+ })
33
+ ]
34
+ })
35
+ })
36
+ ]
37
+ })
38
+ });
20
39
  };
21
40
  export {
22
41
  WatchValue
@@ -1,4 +1,4 @@
1
- import * as React from "react";
1
+ import { jsx } from "react/jsx-runtime";
2
2
  import styled from "styled-components";
3
3
  import {
4
4
  useForm,
@@ -21,12 +21,14 @@ const Form = ({
21
21
  const providerProps = Object.assign(methods, {
22
22
  formProps: reactHookFormProps
23
23
  });
24
- return /* @__PURE__ */ React.createElement(FormProvider, {
25
- ...providerProps
26
- }, /* @__PURE__ */ React.createElement(StyledForm, {
27
- className: classname,
28
- ...formProps
29
- }, children));
24
+ return /* @__PURE__ */ jsx(FormProvider, {
25
+ ...providerProps,
26
+ children: /* @__PURE__ */ jsx(StyledForm, {
27
+ className: classname,
28
+ ...formProps,
29
+ children
30
+ })
31
+ });
30
32
  };
31
33
  export {
32
34
  Form
@@ -1,62 +1,66 @@
1
- import * as React from "react";
1
+ import { jsx } from "react/jsx-runtime";
2
2
  import moment from "moment";
3
3
  import { TextBox } from "../fields/text-box/index.js";
4
4
  import { ComboBox } from "../fields/combo-box/index.js";
5
5
  import { DateInput } from "../fields/date-input/index.js";
6
6
  import { FormLayoutBlockItem } from "../fields/form-layout-block-item/index.js";
7
- const FirstName = () => /* @__PURE__ */ React.createElement(FormLayoutBlockItem, {
7
+ const FirstName = () => /* @__PURE__ */ jsx(FormLayoutBlockItem, {
8
8
  label: "First Name",
9
9
  inputID: "firstname",
10
- required: true
11
- }, /* @__PURE__ */ React.createElement(TextBox, {
12
- id: "firstname",
13
- name: "firstname",
14
- rules: {
15
- required: { value: true, message: "First Name is required" },
16
- minLength: { value: 2, message: "Minimum 2 characters" },
17
- maxLength: { value: 50, message: "Maximum 50 characters" }
18
- }
19
- }));
20
- const DOB = () => /* @__PURE__ */ React.createElement(FormLayoutBlockItem, {
10
+ required: true,
11
+ children: /* @__PURE__ */ jsx(TextBox, {
12
+ id: "firstname",
13
+ name: "firstname",
14
+ rules: {
15
+ required: { value: true, message: "First Name is required" },
16
+ minLength: { value: 2, message: "Minimum 2 characters" },
17
+ maxLength: { value: 50, message: "Maximum 50 characters" }
18
+ }
19
+ })
20
+ });
21
+ const DOB = () => /* @__PURE__ */ jsx(FormLayoutBlockItem, {
21
22
  label: "Date of Birth",
22
23
  inputID: "dob",
23
- required: true
24
- }, /* @__PURE__ */ React.createElement(DateInput, {
25
- id: "dob",
26
- name: "dob",
27
- rules: {
28
- required: { value: true, message: "Date of Birth is required" },
29
- validate: (value) => moment() > value || "Date of Birth can not be greater than current date"
30
- }
31
- }));
32
- const State = () => /* @__PURE__ */ React.createElement(FormLayoutBlockItem, {
24
+ required: true,
25
+ children: /* @__PURE__ */ jsx(DateInput, {
26
+ id: "dob",
27
+ name: "dob",
28
+ rules: {
29
+ required: { value: true, message: "Date of Birth is required" },
30
+ validate: (value) => moment() > value || "Date of Birth can not be greater than current date"
31
+ }
32
+ })
33
+ });
34
+ const State = () => /* @__PURE__ */ jsx(FormLayoutBlockItem, {
33
35
  label: "State",
34
36
  inputID: "state",
35
- required: true
36
- }, /* @__PURE__ */ React.createElement(ComboBox, {
37
- id: "state",
38
- name: "state",
39
- rules: { required: { value: true, message: "State is required" } },
40
- options: [
41
- { value: "ca", label: "California" },
42
- { value: "nj", label: "New Jersey" }
43
- ]
44
- }));
45
- const MaritalStatus = () => /* @__PURE__ */ React.createElement(FormLayoutBlockItem, {
37
+ required: true,
38
+ children: /* @__PURE__ */ jsx(ComboBox, {
39
+ id: "state",
40
+ name: "state",
41
+ rules: { required: { value: true, message: "State is required" } },
42
+ options: [
43
+ { value: "ca", label: "California" },
44
+ { value: "nj", label: "New Jersey" }
45
+ ]
46
+ })
47
+ });
48
+ const MaritalStatus = () => /* @__PURE__ */ jsx(FormLayoutBlockItem, {
46
49
  label: "Marital Status",
47
50
  inputID: "marital_status",
48
- required: true
49
- }, /* @__PURE__ */ React.createElement(ComboBox, {
50
- id: "marital_status",
51
- name: "marital_status",
52
- rules: {
53
- required: { value: true, message: "Marital Status is required" }
54
- },
55
- options: [
56
- { value: "married", label: "Married" },
57
- { value: "single", label: "Single" }
58
- ]
59
- }));
51
+ required: true,
52
+ children: /* @__PURE__ */ jsx(ComboBox, {
53
+ id: "marital_status",
54
+ name: "marital_status",
55
+ rules: {
56
+ required: { value: true, message: "Marital Status is required" }
57
+ },
58
+ options: [
59
+ { value: "married", label: "Married" },
60
+ { value: "single", label: "Single" }
61
+ ]
62
+ })
63
+ });
60
64
  export {
61
65
  DOB,
62
66
  FirstName,
@@ -1,4 +1,4 @@
1
- import * as React from "react";
1
+ import { jsx } from "react/jsx-runtime";
2
2
  import { useFormContext } from "react-hook-form";
3
3
  import { DSButtonV2 } from "@elliemae/ds-button";
4
4
  const FormSubmitButton = ({ ...rest }) => {
@@ -6,7 +6,7 @@ const FormSubmitButton = ({ ...rest }) => {
6
6
  formState,
7
7
  formProps: { mode }
8
8
  } = useFormContext();
9
- return /* @__PURE__ */ React.createElement(DSButtonV2, {
9
+ return /* @__PURE__ */ jsx(DSButtonV2, {
10
10
  ...rest,
11
11
  type: "submit",
12
12
  disabled: mode !== "onSubmit" && (!formState.isDirty || formState.isDirty && !formState.isValid)
@@ -1,11 +1,11 @@
1
- import * as React from "react";
1
+ import { jsx } from "react/jsx-runtime";
2
2
  import { LiveMessage as AriaLiveMessage } from "react-aria-live";
3
3
  import { useAppSelector } from "../../data/react-redux.js";
4
4
  const LiveMessage = () => {
5
5
  const message = useAppSelector((state) => state.liveMessage?.message);
6
6
  const id = useAppSelector((state) => state.liveMessage?.id);
7
7
  const ariaLive = useAppSelector((state) => state.liveMessage?.ariaLive);
8
- return /* @__PURE__ */ React.createElement(AriaLiveMessage, {
8
+ return /* @__PURE__ */ jsx(AriaLiveMessage, {
9
9
  message,
10
10
  "aria-live": ariaLive,
11
11
  id
@@ -1,13 +1,14 @@
1
- import * as React from "react";
1
+ import { jsx } from "react/jsx-runtime";
2
2
  import { lazy, Suspense } from "react";
3
3
  import { WaitMessageLauncher } from "../modals/wait-message/wait-message-launcher.js";
4
- const loadable = (importFunc, fallback = /* @__PURE__ */ React.createElement(WaitMessageLauncher, null)) => {
4
+ const loadable = (importFunc, fallback = /* @__PURE__ */ jsx(WaitMessageLauncher, {})) => {
5
5
  const LazyComponent = lazy(importFunc);
6
- return (props) => /* @__PURE__ */ React.createElement(Suspense, {
7
- fallback
8
- }, /* @__PURE__ */ React.createElement(LazyComponent, {
9
- ...props
10
- }));
6
+ return (props) => /* @__PURE__ */ jsx(Suspense, {
7
+ fallback,
8
+ children: /* @__PURE__ */ jsx(LazyComponent, {
9
+ ...props
10
+ })
11
+ });
11
12
  };
12
13
  export {
13
14
  loadable
@@ -1,4 +1,4 @@
1
- import * as React from "react";
1
+ import { Fragment, jsx } from "react/jsx-runtime";
2
2
  import { useEffect, useState } from "react";
3
3
  import { useAppDispatch } from "../../data/react-redux.js";
4
4
  import { login } from "../../utils/auth/index.js";
@@ -19,7 +19,9 @@ const Login = ({
19
19
  }).catch(() => {
20
20
  });
21
21
  }, [dispatch, clientId, scope, responseType]);
22
- return userAuthorized ? /* @__PURE__ */ React.createElement(React.Fragment, null, children) : null;
22
+ return userAuthorized ? /* @__PURE__ */ jsx(Fragment, {
23
+ children
24
+ }) : null;
23
25
  };
24
26
  export {
25
27
  Login
@@ -35,7 +35,9 @@ const initApplication = async ({
35
35
  const app = (window.emui || {})[id] || {};
36
36
  const { init } = app;
37
37
  if (!init || typeof init !== "function")
38
- throw new Error(`Application ${name} with id ${id} doesn't expose init method.`);
38
+ throw new Error(
39
+ `Application ${name} with id ${id} doesn't expose init method.`
40
+ );
39
41
  const prevState = await persistentStorage.get(`state-${id}`);
40
42
  return init({
41
43
  host: CMicroAppHost.getInstance(),
@@ -53,7 +55,9 @@ const mountApp = async ({ id, name }) => {
53
55
  const app = (window.emui || {})[id] || {};
54
56
  const { mount } = app;
55
57
  if (!mount || typeof mount !== "function")
56
- throw new Error(`Application ${name} with id ${id} doesn't expose mount method.`);
58
+ throw new Error(
59
+ `Application ${name} with id ${id} doesn't expose mount method.`
60
+ );
57
61
  return mount({
58
62
  containerId: `${APP_CONTAINER_ID_PREFIX}${id}`,
59
63
  hostBreakpoint: getCurrentBreakpoint(),
@@ -68,7 +72,9 @@ const unmountApp = async ({ id, name }) => {
68
72
  if (!unmount)
69
73
  return null;
70
74
  if (typeof unmount !== "function")
71
- throw new Error(`unmount failed for application ${name} with id ${id}. unmount is not a valid function`);
75
+ throw new Error(
76
+ `unmount failed for application ${name} with id ${id}. unmount is not a valid function`
77
+ );
72
78
  const currentState = await unmount({
73
79
  containerId: `${APP_CONTAINER_ID_PREFIX}${id}`
74
80
  });