@elliemae/pui-app-sdk 4.6.0 → 4.7.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 (106) hide show
  1. package/dist/cjs/utils/storybook/cjs/vite.js +2 -1
  2. package/dist/cjs/utils/storybook/cjs/webpack.js +2 -1
  3. package/dist/cjs/utils/testing/index.js +1 -6
  4. package/dist/cjs/utils/testing/render-with-redux.js +1 -4
  5. package/dist/cjs/utils/testing/render-with-router-redux.js +1 -7
  6. package/dist/cjs/utils/testing/render-with-router.js +1 -4
  7. package/dist/cjs/utils/testing/render-with-state-addons.js +1 -6
  8. package/dist/cjs/view/app-root/hosted-app.js +6 -8
  9. package/dist/cjs/view/app-root/index.js +9 -25
  10. package/dist/cjs/view/app-root/stand-alone-app.js +8 -12
  11. package/dist/cjs/view/app-router.js +10 -7
  12. package/dist/cjs/view/error-boundary/default-error-template.js +4 -10
  13. package/dist/cjs/view/error-boundary/index.js +1 -4
  14. package/dist/cjs/view/error-toast/index.js +1 -3
  15. package/dist/cjs/view/fields/autocomplete/index.js +17 -11
  16. package/dist/cjs/view/fields/check-box/index.js +15 -9
  17. package/dist/cjs/view/fields/combo-box/index.js +19 -13
  18. package/dist/cjs/view/fields/combo-box-v3/index.js +17 -11
  19. package/dist/cjs/view/fields/date-input/index.js +9 -9
  20. package/dist/cjs/view/fields/date-picker/index.js +9 -9
  21. package/dist/cjs/view/fields/date-range-picker/index.js +20 -17
  22. package/dist/cjs/view/fields/date-time-picker/index.js +17 -11
  23. package/dist/cjs/view/fields/form-item-layout/index.js +12 -11
  24. package/dist/cjs/view/fields/form-layout-block-item/index.js +12 -11
  25. package/dist/cjs/view/fields/input-mask/index.js +25 -19
  26. package/dist/cjs/view/fields/input-text/index.js +9 -9
  27. package/dist/cjs/view/fields/large-text-box/index.js +9 -9
  28. package/dist/cjs/view/fields/radio/index.js +17 -11
  29. package/dist/cjs/view/fields/radio-group/index.js +8 -9
  30. package/dist/cjs/view/fields/text-box/index.js +9 -9
  31. package/dist/cjs/view/fields/toggle/index.js +18 -12
  32. package/dist/cjs/view/fields/watch-value.js +8 -20
  33. package/dist/cjs/view/form/index.js +1 -8
  34. package/dist/cjs/view/form/personal-info-section.js +20 -28
  35. package/dist/cjs/view/form/submit-button/index.js +8 -5
  36. package/dist/cjs/view/live-message/index.js +1 -5
  37. package/dist/cjs/view/loadable/index.js +1 -6
  38. package/dist/cjs/view/login/index.js +1 -3
  39. package/dist/cjs/view/micro-app/index.js +1 -3
  40. package/dist/cjs/view/micro-iframe-app/app.js +9 -6
  41. package/dist/cjs/view/micro-iframe-app/iframe/index.js +5 -4
  42. package/dist/cjs/view/micro-iframe-app/index.js +11 -8
  43. package/dist/cjs/view/modals/error/index.js +5 -22
  44. package/dist/cjs/view/modals/navigation-prompt/index.js +10 -38
  45. package/dist/cjs/view/modals/session-expiry/index.js +12 -37
  46. package/dist/cjs/view/modals/wait-message/index.js +11 -8
  47. package/dist/cjs/view/page.js +4 -10
  48. package/dist/cjs/view/render-with-delay/index.js +1 -3
  49. package/dist/cjs/view/require-auth.js +2 -11
  50. package/dist/cjs/view/session-timeout/index.js +1 -6
  51. package/dist/cjs/view/storybook/decorator.js +1 -6
  52. package/dist/cjs/view/visually-hidden/index.js +1 -4
  53. package/dist/esm/utils/testing/index.js +1 -6
  54. package/dist/esm/utils/testing/render-with-redux.js +1 -4
  55. package/dist/esm/utils/testing/render-with-router-redux.js +1 -7
  56. package/dist/esm/utils/testing/render-with-router.js +1 -4
  57. package/dist/esm/utils/testing/render-with-state-addons.js +1 -6
  58. package/dist/esm/view/app-root/hosted-app.js +6 -8
  59. package/dist/esm/view/app-root/index.js +9 -25
  60. package/dist/esm/view/app-root/stand-alone-app.js +8 -12
  61. package/dist/esm/view/app-router.js +10 -7
  62. package/dist/esm/view/error-boundary/default-error-template.js +4 -10
  63. package/dist/esm/view/error-boundary/index.js +1 -4
  64. package/dist/esm/view/error-toast/index.js +1 -3
  65. package/dist/esm/view/fields/autocomplete/index.js +17 -11
  66. package/dist/esm/view/fields/check-box/index.js +15 -9
  67. package/dist/esm/view/fields/combo-box/index.js +19 -13
  68. package/dist/esm/view/fields/combo-box-v3/index.js +17 -11
  69. package/dist/esm/view/fields/date-input/index.js +9 -9
  70. package/dist/esm/view/fields/date-picker/index.js +9 -9
  71. package/dist/esm/view/fields/date-range-picker/index.js +20 -17
  72. package/dist/esm/view/fields/date-time-picker/index.js +17 -11
  73. package/dist/esm/view/fields/form-item-layout/index.js +12 -11
  74. package/dist/esm/view/fields/form-layout-block-item/index.js +12 -11
  75. package/dist/esm/view/fields/input-mask/index.js +25 -19
  76. package/dist/esm/view/fields/input-text/index.js +9 -9
  77. package/dist/esm/view/fields/large-text-box/index.js +9 -9
  78. package/dist/esm/view/fields/radio/index.js +17 -11
  79. package/dist/esm/view/fields/radio-group/index.js +8 -9
  80. package/dist/esm/view/fields/text-box/index.js +9 -9
  81. package/dist/esm/view/fields/toggle/index.js +18 -12
  82. package/dist/esm/view/fields/watch-value.js +8 -20
  83. package/dist/esm/view/form/index.js +1 -8
  84. package/dist/esm/view/form/personal-info-section.js +20 -28
  85. package/dist/esm/view/form/submit-button/index.js +8 -5
  86. package/dist/esm/view/live-message/index.js +1 -5
  87. package/dist/esm/view/loadable/index.js +1 -6
  88. package/dist/esm/view/login/index.js +1 -3
  89. package/dist/esm/view/micro-app/index.js +1 -3
  90. package/dist/esm/view/micro-iframe-app/app.js +9 -6
  91. package/dist/esm/view/micro-iframe-app/iframe/index.js +5 -4
  92. package/dist/esm/view/micro-iframe-app/index.js +11 -8
  93. package/dist/esm/view/modals/error/index.js +5 -22
  94. package/dist/esm/view/modals/navigation-prompt/index.js +10 -38
  95. package/dist/esm/view/modals/session-expiry/index.js +12 -37
  96. package/dist/esm/view/modals/wait-message/index.js +11 -8
  97. package/dist/esm/view/page.js +4 -10
  98. package/dist/esm/view/render-with-delay/index.js +1 -3
  99. package/dist/esm/view/require-auth.js +2 -11
  100. package/dist/esm/view/session-timeout/index.js +1 -6
  101. package/dist/esm/view/storybook/decorator.js +1 -6
  102. package/dist/esm/view/visually-hidden/index.js +1 -4
  103. package/dist/types/lib/utils/storybook/cjs/main.d.ts +2 -0
  104. package/dist/types/lib/utils/storybook/cjs/vite.d.ts +1 -0
  105. package/dist/types/lib/utils/storybook/cjs/webpack.d.ts +1 -0
  106. package/package.json +32 -32
@@ -14,25 +14,31 @@ const InputMask = ({
14
14
  onChange: changeHandler,
15
15
  onBlur: onBlurHandler,
16
16
  ...rest
17
- }) => /* @__PURE__ */ jsx(Controller, {
18
- name,
19
- rules,
20
- defaultValue,
21
- render: ({ field: { onChange, onBlur, ...props } }) => /* @__PURE__ */ jsx(DSInputMask, {
22
- ...rest,
23
- ...props,
24
- onChange: (e) => {
25
- onChange(e);
26
- if (changeHandler)
27
- changeHandler(e);
28
- },
29
- onBlur: (e) => {
30
- onBlur();
31
- if (onBlurHandler)
32
- onBlurHandler(e);
33
- }
34
- })
35
- });
17
+ }) => /* @__PURE__ */ jsx(
18
+ Controller,
19
+ {
20
+ name,
21
+ rules,
22
+ defaultValue,
23
+ render: ({ field: { onChange, onBlur, ...props } }) => /* @__PURE__ */ jsx(
24
+ DSInputMask,
25
+ {
26
+ ...rest,
27
+ ...props,
28
+ onChange: (e) => {
29
+ onChange(e);
30
+ if (changeHandler)
31
+ changeHandler(e);
32
+ },
33
+ onBlur: (e) => {
34
+ onBlur();
35
+ if (onBlurHandler)
36
+ onBlurHandler(e);
37
+ }
38
+ }
39
+ )
40
+ }
41
+ );
36
42
  export {
37
43
  InputMask,
38
44
  MASK_PIPES,
@@ -8,15 +8,15 @@ const InputText = ({
8
8
  defaultValue = "",
9
9
  rules = {},
10
10
  ...rest
11
- }) => /* @__PURE__ */ jsx(Controller, {
12
- name,
13
- defaultValue,
14
- rules,
15
- render: ({ field }) => /* @__PURE__ */ jsx(DSInputText, {
16
- ...field,
17
- ...rest
18
- })
19
- });
11
+ }) => /* @__PURE__ */ jsx(
12
+ Controller,
13
+ {
14
+ name,
15
+ defaultValue,
16
+ rules,
17
+ render: ({ field }) => /* @__PURE__ */ jsx(DSInputText, { ...field, ...rest })
18
+ }
19
+ );
20
20
  export {
21
21
  InputText
22
22
  };
@@ -8,15 +8,15 @@ const LargeTextBox = ({
8
8
  defaultValue = "",
9
9
  rules = {},
10
10
  ...rest
11
- }) => /* @__PURE__ */ jsx(Controller, {
12
- name,
13
- rules,
14
- defaultValue,
15
- render: ({ field }) => /* @__PURE__ */ jsx(DSLargeInputText, {
16
- ...rest,
17
- ...field
18
- })
19
- });
11
+ }) => /* @__PURE__ */ jsx(
12
+ Controller,
13
+ {
14
+ name,
15
+ rules,
16
+ defaultValue,
17
+ render: ({ field }) => /* @__PURE__ */ jsx(DSLargeInputText, { ...rest, ...field })
18
+ }
19
+ );
20
20
  export {
21
21
  LargeTextBox
22
22
  };
@@ -8,17 +8,23 @@ const Radio = ({
8
8
  defaultChecked = false,
9
9
  rules = {},
10
10
  ...rest
11
- }) => /* @__PURE__ */ jsx(Controller, {
12
- name,
13
- rules,
14
- render: ({ field: { onChange, value, ...restProps } }) => /* @__PURE__ */ jsx(DSRadio, {
15
- ...rest,
16
- ...restProps,
17
- checked: value,
18
- defaultChecked,
19
- onChange: (e) => onChange(((e || {}).target || {}).checked)
20
- })
21
- });
11
+ }) => /* @__PURE__ */ jsx(
12
+ Controller,
13
+ {
14
+ name,
15
+ rules,
16
+ render: ({ field: { onChange, value, ...restProps } }) => /* @__PURE__ */ jsx(
17
+ DSRadio,
18
+ {
19
+ ...rest,
20
+ ...restProps,
21
+ checked: value,
22
+ defaultChecked,
23
+ onChange: (e) => onChange(((e || {}).target || {}).checked)
24
+ }
25
+ )
26
+ }
27
+ );
22
28
  export {
23
29
  Radio
24
30
  };
@@ -3,15 +3,14 @@ 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__ */ jsx(Controller, {
7
- name,
8
- rules,
9
- render: ({ field: { value, ...restProps } }) => /* @__PURE__ */ jsx(DSRadioGroup, {
10
- ...rest,
11
- ...restProps,
12
- activeValue: value
13
- })
14
- });
6
+ const RadioGroup = ({ name, rules = {}, ...rest }) => /* @__PURE__ */ jsx(
7
+ Controller,
8
+ {
9
+ name,
10
+ rules,
11
+ render: ({ field: { value, ...restProps } }) => /* @__PURE__ */ jsx(DSRadioGroup, { ...rest, ...restProps, activeValue: value })
12
+ }
13
+ );
15
14
  export {
16
15
  RadioGroup
17
16
  };
@@ -8,15 +8,15 @@ const TextBox = ({
8
8
  defaultValue = "",
9
9
  rules = {},
10
10
  ...rest
11
- }) => /* @__PURE__ */ jsx(Controller, {
12
- name,
13
- defaultValue,
14
- rules,
15
- render: ({ field }) => /* @__PURE__ */ jsx(DSTextBox, {
16
- ...rest,
17
- ...field
18
- })
19
- });
11
+ }) => /* @__PURE__ */ jsx(
12
+ Controller,
13
+ {
14
+ name,
15
+ defaultValue,
16
+ rules,
17
+ render: ({ field }) => /* @__PURE__ */ jsx(DSTextBox, { ...rest, ...field })
18
+ }
19
+ );
20
20
  export {
21
21
  TextBox
22
22
  };
@@ -8,18 +8,24 @@ const Toggle = ({
8
8
  defaultValue = false,
9
9
  rules = {},
10
10
  ...rest
11
- }) => /* @__PURE__ */ jsx(Controller, {
12
- name,
13
- rules,
14
- defaultValue,
15
- render: ({ field: { value, onChange, ...restProps } }) => /* @__PURE__ */ jsx(DSControlledToggle, {
16
- ...rest,
17
- ...restProps,
18
- checked: value,
19
- value: value.toString(),
20
- onChange: () => onChange(!value)
21
- })
22
- });
11
+ }) => /* @__PURE__ */ jsx(
12
+ Controller,
13
+ {
14
+ name,
15
+ rules,
16
+ defaultValue,
17
+ render: ({ field: { value, onChange, ...restProps } }) => /* @__PURE__ */ jsx(
18
+ DSControlledToggle,
19
+ {
20
+ ...rest,
21
+ ...restProps,
22
+ checked: value,
23
+ value: value.toString(),
24
+ onChange: () => onChange(!value)
25
+ }
26
+ )
27
+ }
28
+ );
23
29
  export {
24
30
  Toggle
25
31
  };
@@ -16,26 +16,14 @@ 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__ */ 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
- });
19
+ return /* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsxs(Section, { children: [
20
+ /* @__PURE__ */ jsx("h4", { children: "Form Data:" }),
21
+ /* @__PURE__ */ jsx(Div, { children: /* @__PURE__ */ jsxs("div", { children: [
22
+ label,
23
+ " : ",
24
+ /* @__PURE__ */ jsx("strong", { children: JSON.stringify(data) })
25
+ ] }) })
26
+ ] }) });
39
27
  };
40
28
  export {
41
29
  WatchValue
@@ -21,14 +21,7 @@ const Form = ({
21
21
  const providerProps = Object.assign(methods, {
22
22
  formProps: reactHookFormProps
23
23
  });
24
- return /* @__PURE__ */ jsx(FormProvider, {
25
- ...providerProps,
26
- children: /* @__PURE__ */ jsx(StyledForm, {
27
- className: classname,
28
- ...formProps,
29
- children
30
- })
31
- });
24
+ return /* @__PURE__ */ jsx(FormProvider, { ...providerProps, children: /* @__PURE__ */ jsx(StyledForm, { className: classname, ...formProps, children }) });
32
25
  };
33
26
  export {
34
27
  Form
@@ -4,11 +4,9 @@ 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__ */ jsx(FormLayoutBlockItem, {
8
- label: "First Name",
9
- inputID: "firstname",
10
- required: true,
11
- children: /* @__PURE__ */ jsx(TextBox, {
7
+ const FirstName = () => /* @__PURE__ */ jsx(FormLayoutBlockItem, { label: "First Name", inputID: "firstname", required: true, children: /* @__PURE__ */ jsx(
8
+ TextBox,
9
+ {
12
10
  id: "firstname",
13
11
  name: "firstname",
14
12
  rules: {
@@ -16,26 +14,22 @@ const FirstName = () => /* @__PURE__ */ jsx(FormLayoutBlockItem, {
16
14
  minLength: { value: 2, message: "Minimum 2 characters" },
17
15
  maxLength: { value: 50, message: "Maximum 50 characters" }
18
16
  }
19
- })
20
- });
21
- const DOB = () => /* @__PURE__ */ jsx(FormLayoutBlockItem, {
22
- label: "Date of Birth",
23
- inputID: "dob",
24
- required: true,
25
- children: /* @__PURE__ */ jsx(DateInput, {
17
+ }
18
+ ) });
19
+ const DOB = () => /* @__PURE__ */ jsx(FormLayoutBlockItem, { label: "Date of Birth", inputID: "dob", required: true, children: /* @__PURE__ */ jsx(
20
+ DateInput,
21
+ {
26
22
  id: "dob",
27
23
  name: "dob",
28
24
  rules: {
29
25
  required: { value: true, message: "Date of Birth is required" },
30
26
  validate: (value) => moment() > value || "Date of Birth can not be greater than current date"
31
27
  }
32
- })
33
- });
34
- const State = () => /* @__PURE__ */ jsx(FormLayoutBlockItem, {
35
- label: "State",
36
- inputID: "state",
37
- required: true,
38
- children: /* @__PURE__ */ jsx(ComboBox, {
28
+ }
29
+ ) });
30
+ const State = () => /* @__PURE__ */ jsx(FormLayoutBlockItem, { label: "State", inputID: "state", required: true, children: /* @__PURE__ */ jsx(
31
+ ComboBox,
32
+ {
39
33
  id: "state",
40
34
  name: "state",
41
35
  rules: { required: { value: true, message: "State is required" } },
@@ -43,13 +37,11 @@ const State = () => /* @__PURE__ */ jsx(FormLayoutBlockItem, {
43
37
  { value: "ca", label: "California" },
44
38
  { value: "nj", label: "New Jersey" }
45
39
  ]
46
- })
47
- });
48
- const MaritalStatus = () => /* @__PURE__ */ jsx(FormLayoutBlockItem, {
49
- label: "Marital Status",
50
- inputID: "marital_status",
51
- required: true,
52
- children: /* @__PURE__ */ jsx(ComboBox, {
40
+ }
41
+ ) });
42
+ const MaritalStatus = () => /* @__PURE__ */ jsx(FormLayoutBlockItem, { label: "Marital Status", inputID: "marital_status", required: true, children: /* @__PURE__ */ jsx(
43
+ ComboBox,
44
+ {
53
45
  id: "marital_status",
54
46
  name: "marital_status",
55
47
  rules: {
@@ -59,8 +51,8 @@ const MaritalStatus = () => /* @__PURE__ */ jsx(FormLayoutBlockItem, {
59
51
  { value: "married", label: "Married" },
60
52
  { value: "single", label: "Single" }
61
53
  ]
62
- })
63
- });
54
+ }
55
+ ) });
64
56
  export {
65
57
  DOB,
66
58
  FirstName,
@@ -6,11 +6,14 @@ const FormSubmitButton = ({ ...rest }) => {
6
6
  formState,
7
7
  formProps: { mode }
8
8
  } = useFormContext();
9
- return /* @__PURE__ */ jsx(DSButtonV2, {
10
- ...rest,
11
- type: "submit",
12
- disabled: mode !== "onSubmit" && (!formState.isDirty || formState.isDirty && !formState.isValid)
13
- });
9
+ return /* @__PURE__ */ jsx(
10
+ DSButtonV2,
11
+ {
12
+ ...rest,
13
+ type: "submit",
14
+ disabled: mode !== "onSubmit" && (!formState.isDirty || formState.isDirty && !formState.isValid)
15
+ }
16
+ );
14
17
  };
15
18
  export {
16
19
  FormSubmitButton
@@ -5,11 +5,7 @@ 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__ */ jsx(AriaLiveMessage, {
9
- message,
10
- "aria-live": ariaLive,
11
- id
12
- });
8
+ return /* @__PURE__ */ jsx(AriaLiveMessage, { message, "aria-live": ariaLive, id });
13
9
  };
14
10
  export {
15
11
  LiveMessage
@@ -3,12 +3,7 @@ import { lazy, Suspense } from "react";
3
3
  import { WaitMessageLauncher } from "../modals/wait-message/wait-message-launcher.js";
4
4
  const loadable = (importFunc, fallback = /* @__PURE__ */ jsx(WaitMessageLauncher, {})) => {
5
5
  const LazyComponent = lazy(importFunc);
6
- return (props) => /* @__PURE__ */ jsx(Suspense, {
7
- fallback,
8
- children: /* @__PURE__ */ jsx(LazyComponent, {
9
- ...props
10
- })
11
- });
6
+ return (props) => /* @__PURE__ */ jsx(Suspense, { fallback, children: /* @__PURE__ */ jsx(LazyComponent, { ...props }) });
12
7
  };
13
8
  export {
14
9
  loadable
@@ -19,9 +19,7 @@ const Login = ({
19
19
  }).catch(() => {
20
20
  });
21
21
  }, [dispatch, clientId, scope, responseType]);
22
- return userAuthorized ? /* @__PURE__ */ jsx(Fragment, {
23
- children
24
- }) : null;
22
+ return userAuthorized ? /* @__PURE__ */ jsx(Fragment, { children }) : null;
25
23
  };
26
24
  export {
27
25
  Login
@@ -9,9 +9,7 @@ const Div = styled.div`
9
9
  `;
10
10
  const MicroApp = memo((props) => {
11
11
  useAppWillRender(props);
12
- return /* @__PURE__ */ jsx(Div, {
13
- id: `${APP_CONTAINER_ID_PREFIX}${props.id}`
14
- });
12
+ return /* @__PURE__ */ jsx(Div, { id: `${APP_CONTAINER_ID_PREFIX}${props.id}` });
15
13
  });
16
14
  export {
17
15
  MicroApp
@@ -16,12 +16,15 @@ const App = memo(
16
16
  onUnloadComplete,
17
17
  ...rest
18
18
  });
19
- return /* @__PURE__ */ jsx(IFrame, {
20
- id,
21
- src: frameHtml,
22
- ...rest,
23
- onFrameReady: setDocumentEle
24
- });
19
+ return /* @__PURE__ */ jsx(
20
+ IFrame,
21
+ {
22
+ id,
23
+ src: frameHtml,
24
+ ...rest,
25
+ onFrameReady: setDocumentEle
26
+ }
27
+ );
25
28
  }
26
29
  );
27
30
  export {
@@ -21,8 +21,9 @@ const IFrame = memo(
21
21
  ({ id, name: title, src, sandbox, onFrameReady }) => {
22
22
  const frameRef = useRef(null);
23
23
  const sandboxProps = sandbox ? { sandbox } : {};
24
- return /* @__PURE__ */ jsx(Div, {
25
- children: /* @__PURE__ */ jsx(Iframe, {
24
+ return /* @__PURE__ */ jsx(Div, { children: /* @__PURE__ */ jsx(
25
+ Iframe,
26
+ {
26
27
  id: `${IFRAME_CONTAINER_ID_PREFIX}${id}`,
27
28
  ref: frameRef,
28
29
  title,
@@ -30,8 +31,8 @@ const IFrame = memo(
30
31
  scrolling: "no",
31
32
  ...sandboxProps,
32
33
  onLoad: () => frameRef?.current?.contentDocument && onFrameReady(frameRef.current.contentDocument)
33
- })
34
- });
34
+ }
35
+ ) });
35
36
  }
36
37
  );
37
38
  export {
@@ -11,15 +11,18 @@ const MicroIFrameApp = memo(({ entityId = null, ...rest }) => {
11
11
  setDisposePrevApp(true);
12
12
  }
13
13
  }, [entityId]);
14
- return /* @__PURE__ */ createElement(App, {
15
- ...rest,
16
- key: appKey,
17
- dispose: disposePrevApp,
18
- onUnloadComplete: () => {
19
- setAppKey(Date.now());
20
- setDisposePrevApp(false);
14
+ return /* @__PURE__ */ createElement(
15
+ App,
16
+ {
17
+ ...rest,
18
+ key: appKey,
19
+ dispose: disposePrevApp,
20
+ onUnloadComplete: () => {
21
+ setAppKey(Date.now());
22
+ setDisposePrevApp(false);
23
+ }
21
24
  }
22
- });
25
+ );
23
26
  });
24
27
  export {
25
28
  MicroIFrameApp
@@ -17,28 +17,11 @@ const Error = ({
17
17
  const handleClick = useCallback(() => {
18
18
  setOpen((prev) => !prev);
19
19
  }, []);
20
- return /* @__PURE__ */ jsx(DSDialog, {
21
- isOpen,
22
- onClickOutside: handleClick,
23
- size: "small",
24
- children: /* @__PURE__ */ jsx(DSDialogBody, {
25
- p: "s",
26
- children: /* @__PURE__ */ jsxs(DSDialogDefaultLayout, {
27
- children: [
28
- /* @__PURE__ */ jsx(ErrorHexegon, {
29
- size: "xxl",
30
- color: ["danger", "900"]
31
- }),
32
- /* @__PURE__ */ jsx(DSDialogPrimaryMessage, {
33
- children: primaryMessage
34
- }),
35
- secondaryMessage && /* @__PURE__ */ jsx(DSDialogSecondaryMessage, {
36
- children: secondaryMessage
37
- })
38
- ]
39
- })
40
- })
41
- });
20
+ return /* @__PURE__ */ jsx(DSDialog, { isOpen, onClickOutside: handleClick, size: "small", children: /* @__PURE__ */ jsx(DSDialogBody, { p: "s", children: /* @__PURE__ */ jsxs(DSDialogDefaultLayout, { children: [
21
+ /* @__PURE__ */ jsx(ErrorHexegon, { size: "xxl", color: ["danger", "900"] }),
22
+ /* @__PURE__ */ jsx(DSDialogPrimaryMessage, { children: primaryMessage }),
23
+ secondaryMessage && /* @__PURE__ */ jsx(DSDialogSecondaryMessage, { children: secondaryMessage })
24
+ ] }) }) });
42
25
  };
43
26
  export {
44
27
  Error
@@ -17,44 +17,16 @@ const NavigationPrompt = memo(
17
17
  const dispatch = useAppDispatch();
18
18
  const cancelDialog = () => dispatch(navigationPrompt.cancel());
19
19
  const confirmDialog = () => dispatch(navigationPrompt.confirm());
20
- return /* @__PURE__ */ jsxs(DSDialog, {
21
- isOpen: open,
22
- onClickOutside: cancelDialog,
23
- centered: true,
24
- children: [
25
- /* @__PURE__ */ jsx(DSDialogHeader, {
26
- children: /* @__PURE__ */ jsx(DSDialogAddon, {
27
- children: /* @__PURE__ */ jsx(DSButtonV2, {
28
- buttonType: "icon",
29
- onClick: cancelDialog,
30
- children: /* @__PURE__ */ jsx(Close, {
31
- color: ["neutral", "900"]
32
- })
33
- })
34
- })
35
- }),
36
- /* @__PURE__ */ jsx(DSDialogSeparator, {}),
37
- /* @__PURE__ */ jsx(DSDialogBody, {
38
- px: 24,
39
- mb: 16,
40
- children: "You currently have unsaved changes. Are you sure you want to proceed without saving?"
41
- }),
42
- /* @__PURE__ */ jsx(DSDialogSeparator, {}),
43
- /* @__PURE__ */ jsxs(DSDialogFooter, {
44
- children: [
45
- /* @__PURE__ */ jsx(DSButtonV2, {
46
- buttonType: "outline",
47
- onClick: cancelDialog,
48
- children: "Continue without saving"
49
- }),
50
- /* @__PURE__ */ jsx(DSButtonV2, {
51
- onClick: confirmDialog,
52
- children: "Save & Continue"
53
- })
54
- ]
55
- })
56
- ]
57
- });
20
+ return /* @__PURE__ */ jsxs(DSDialog, { isOpen: open, onClickOutside: cancelDialog, centered: true, children: [
21
+ /* @__PURE__ */ jsx(DSDialogHeader, { children: /* @__PURE__ */ jsx(DSDialogAddon, { children: /* @__PURE__ */ jsx(DSButtonV2, { buttonType: "icon", onClick: cancelDialog, children: /* @__PURE__ */ jsx(Close, { color: ["neutral", "900"] }) }) }) }),
22
+ /* @__PURE__ */ jsx(DSDialogSeparator, {}),
23
+ /* @__PURE__ */ jsx(DSDialogBody, { px: 24, mb: 16, children: "You currently have unsaved changes. Are you sure you want to proceed without saving?" }),
24
+ /* @__PURE__ */ jsx(DSDialogSeparator, {}),
25
+ /* @__PURE__ */ jsxs(DSDialogFooter, { children: [
26
+ /* @__PURE__ */ jsx(DSButtonV2, { buttonType: "outline", onClick: cancelDialog, children: "Continue without saving" }),
27
+ /* @__PURE__ */ jsx(DSButtonV2, { onClick: confirmDialog, children: "Save & Continue" })
28
+ ] })
29
+ ] });
58
30
  }
59
31
  );
60
32
  export {
@@ -36,43 +36,18 @@ const SessionExpiry = memo(
36
36
  setIsOpen(false);
37
37
  dispatch(logout.confirm());
38
38
  };
39
- return timeLeft ? /* @__PURE__ */ jsxs(DSDialog, {
40
- isOpen,
41
- size: "small",
42
- children: [
43
- /* @__PURE__ */ jsx(DSDialogBody, {
44
- p: "s",
45
- children: /* @__PURE__ */ jsxs(DSDialogDefaultLayout, {
46
- children: [
47
- /* @__PURE__ */ jsx(WarningCircle, {
48
- size: "xl",
49
- color: ["warning", "900"]
50
- }),
51
- /* @__PURE__ */ jsx(DSDialogPrimaryMessage, {
52
- children: `Your session will expire in ${timeLeft}`
53
- }),
54
- /* @__PURE__ */ jsx(DSDialogSecondaryMessage, {
55
- children: "Please logout or reset your session"
56
- })
57
- ]
58
- })
59
- }),
60
- /* @__PURE__ */ jsx(DSDialogSeparator, {}),
61
- /* @__PURE__ */ jsxs(DSDialogFooter, {
62
- children: [
63
- /* @__PURE__ */ jsx(DSButtonV2, {
64
- buttonType: "outline",
65
- onClick: logoutSession,
66
- children: "Logout"
67
- }),
68
- /* @__PURE__ */ jsx(DSButtonV2, {
69
- onClick: resetSession,
70
- children: "Reset"
71
- })
72
- ]
73
- })
74
- ]
75
- }) : null;
39
+ return timeLeft ? /* @__PURE__ */ jsxs(DSDialog, { isOpen, size: "small", children: [
40
+ /* @__PURE__ */ jsx(DSDialogBody, { p: "s", children: /* @__PURE__ */ jsxs(DSDialogDefaultLayout, { children: [
41
+ /* @__PURE__ */ jsx(WarningCircle, { size: "xl", color: ["warning", "900"] }),
42
+ /* @__PURE__ */ jsx(DSDialogPrimaryMessage, { children: `Your session will expire in ${timeLeft}` }),
43
+ /* @__PURE__ */ jsx(DSDialogSecondaryMessage, { children: "Please logout or reset your session" })
44
+ ] }) }),
45
+ /* @__PURE__ */ jsx(DSDialogSeparator, {}),
46
+ /* @__PURE__ */ jsxs(DSDialogFooter, { children: [
47
+ /* @__PURE__ */ jsx(DSButtonV2, { buttonType: "outline", onClick: logoutSession, children: "Logout" }),
48
+ /* @__PURE__ */ jsx(DSButtonV2, { onClick: resetSession, children: "Reset" })
49
+ ] })
50
+ ] }) : null;
76
51
  }
77
52
  );
78
53
  export {