@elliemae/pui-app-sdk 3.0.0-beta.16 → 3.0.0-beta.17

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 (39) hide show
  1. package/dist/cjs/view/error-boundary/default-error-template.js +1 -1
  2. package/dist/cjs/view/fields/form-item-layout/index.js +1 -4
  3. package/dist/cjs/view/fields/radio-group/index.js +1 -5
  4. package/dist/cjs/view/form/submit-button/index.js +1 -3
  5. package/dist/cjs/view/login/index.js +1 -5
  6. package/dist/es/view/error-boundary/default-error-template.js +1 -1
  7. package/dist/es/view/fields/form-item-layout/index.js +1 -4
  8. package/dist/es/view/fields/radio-group/index.js +1 -5
  9. package/dist/es/view/form/submit-button/index.js +1 -3
  10. package/dist/es/view/login/index.js +1 -5
  11. package/dist/types/data/react-redux.d.ts +8 -17
  12. package/dist/types/data/store.d.ts +0 -1
  13. package/dist/types/utils/testing/render-with-state-addons.d.ts +1 -1
  14. package/dist/types/view/app-root/hosted-app.d.ts +1 -1
  15. package/dist/types/view/app-root/index.d.ts +1 -1
  16. package/dist/types/view/app-root/stand-alone-app.d.ts +1 -1
  17. package/dist/types/view/error-boundary/default-error-template.d.ts +1 -1
  18. package/dist/types/view/fields/check-box/index.d.ts +1 -1
  19. package/dist/types/view/fields/combo-box/index.d.ts +1 -1
  20. package/dist/types/view/fields/connect-form.d.ts +1 -1
  21. package/dist/types/view/fields/date-input/index.d.ts +1 -1
  22. package/dist/types/view/fields/date-picker/index.d.ts +1 -1
  23. package/dist/types/view/fields/form-item-layout/index.d.ts +1 -1
  24. package/dist/types/view/fields/input-mask/index.d.ts +1 -1
  25. package/dist/types/view/fields/large-text-box/index.d.ts +1 -1
  26. package/dist/types/view/fields/radio/index.d.ts +1 -1
  27. package/dist/types/view/fields/radio-group/index.d.ts +1 -1
  28. package/dist/types/view/fields/text-box/index.d.ts +1 -1
  29. package/dist/types/view/fields/watch-value.d.ts +1 -1
  30. package/dist/types/view/form/personal-info-section.d.ts +3 -3
  31. package/dist/types/view/form/submit-button/index.d.ts +1 -1
  32. package/dist/types/view/live-message/index.d.ts +1 -1
  33. package/dist/types/view/login/index.d.ts +1 -2
  34. package/dist/types/view/media-breakpoint/index.d.ts +1 -2
  35. package/dist/types/view/modals/error/index.d.ts +1 -1
  36. package/dist/types/view/modals/wait-message/wait-message-launcher.d.ts +1 -2
  37. package/dist/types/view/session-timeout/index.d.ts +1 -1
  38. package/dist/types/view/window-size/index.d.ts +1 -2
  39. package/package.json +3 -3
@@ -30,5 +30,5 @@ __export(default_error_template_exports, {
30
30
  DefaultErrorTemplate: () => DefaultErrorTemplate
31
31
  });
32
32
  var React = __toESM(require("react"));
33
- const DefaultErrorTemplate = () => /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement("h2", null, "We are unable to process your request"), /* @__PURE__ */ React.createElement("section", null, "Please close your browser and login again"));
33
+ const DefaultErrorTemplate = (props) => /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement("h2", null, "We are unable to process your request"), /* @__PURE__ */ React.createElement("section", null, "Please close your browser and login again"));
34
34
  module.exports = __toCommonJS(default_error_template_exports);
@@ -33,10 +33,7 @@ var React = __toESM(require("react"));
33
33
  var import_FormItem = require("@elliemae/ds-form/FormItem");
34
34
  var import_react_hook_form = require("react-hook-form");
35
35
  var import_connect_form = require("../connect-form.js");
36
- const FormItemLayout = ({
37
- name,
38
- ...rest
39
- }) => /* @__PURE__ */ React.createElement(import_connect_form.ConnectForm, null, ({
36
+ const FormItemLayout = ({ name, ...rest }) => /* @__PURE__ */ React.createElement(import_connect_form.ConnectForm, null, ({
40
37
  formState: { errors }
41
38
  }) => {
42
39
  const errorField = (0, import_react_hook_form.get)(errors, name);
@@ -32,11 +32,7 @@ __export(radio_group_exports, {
32
32
  var React = __toESM(require("react"));
33
33
  var import_RadioGroup = require("@elliemae/ds-form/RadioGroup");
34
34
  var import_react_hook_form = require("react-hook-form");
35
- const RadioGroup = ({
36
- name,
37
- rules = {},
38
- ...rest
39
- }) => /* @__PURE__ */ React.createElement(import_react_hook_form.Controller, {
35
+ const RadioGroup = ({ name, rules = {}, ...rest }) => /* @__PURE__ */ React.createElement(import_react_hook_form.Controller, {
40
36
  name,
41
37
  rules,
42
38
  render: ({ field: { value, ...restProps } }) => /* @__PURE__ */ React.createElement(import_RadioGroup.DSRadioGroup, {
@@ -32,9 +32,7 @@ __export(submit_button_exports, {
32
32
  var React = __toESM(require("react"));
33
33
  var import_react_hook_form = require("react-hook-form");
34
34
  var import_ds_button = require("@elliemae/ds-button");
35
- const FormSubmitButton = ({
36
- ...rest
37
- }) => {
35
+ const FormSubmitButton = ({ ...rest }) => {
38
36
  const {
39
37
  formState,
40
38
  formProps: { mode }
@@ -28,11 +28,7 @@ var import_react = require("react");
28
28
  var import_react_redux = require("../../data/react-redux.js");
29
29
  var import_auth = require("../../utils/auth/index.js");
30
30
  var import_actions = require("../../data/auth/actions.js");
31
- const Login = ({
32
- clientId,
33
- scope,
34
- responseType
35
- }) => {
31
+ const Login = ({ clientId, scope, responseType }) => {
36
32
  const dispatch = (0, import_react_redux.useAppDispatch)();
37
33
  (0, import_react.useEffect)(() => {
38
34
  (0, import_auth.login)({ clientId, scope, responseType }).then(() => {
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- const DefaultErrorTemplate = () => /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement("h2", null, "We are unable to process your request"), /* @__PURE__ */ React.createElement("section", null, "Please close your browser and login again"));
2
+ const DefaultErrorTemplate = (props) => /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement("h2", null, "We are unable to process your request"), /* @__PURE__ */ React.createElement("section", null, "Please close your browser and login again"));
3
3
  export {
4
4
  DefaultErrorTemplate
5
5
  };
@@ -2,10 +2,7 @@ import * as React from "react";
2
2
  import { DSFormItemLayout } from "@elliemae/ds-form/FormItem";
3
3
  import { get } from "react-hook-form";
4
4
  import { ConnectForm } from "../connect-form.js";
5
- const FormItemLayout = ({
6
- name,
7
- ...rest
8
- }) => /* @__PURE__ */ React.createElement(ConnectForm, null, ({
5
+ const FormItemLayout = ({ name, ...rest }) => /* @__PURE__ */ React.createElement(ConnectForm, null, ({
9
6
  formState: { errors }
10
7
  }) => {
11
8
  const errorField = get(errors, name);
@@ -3,11 +3,7 @@ import { DSRadioGroup } from "@elliemae/ds-form/RadioGroup";
3
3
  import {
4
4
  Controller
5
5
  } from "react-hook-form";
6
- const RadioGroup = ({
7
- name,
8
- rules = {},
9
- ...rest
10
- }) => /* @__PURE__ */ React.createElement(Controller, {
6
+ const RadioGroup = ({ name, rules = {}, ...rest }) => /* @__PURE__ */ React.createElement(Controller, {
11
7
  name,
12
8
  rules,
13
9
  render: ({ field: { value, ...restProps } }) => /* @__PURE__ */ React.createElement(DSRadioGroup, {
@@ -1,9 +1,7 @@
1
1
  import * as React from "react";
2
2
  import { useFormContext } from "react-hook-form";
3
3
  import { DSButton } from "@elliemae/ds-button";
4
- const FormSubmitButton = ({
5
- ...rest
6
- }) => {
4
+ const FormSubmitButton = ({ ...rest }) => {
7
5
  const {
8
6
  formState,
9
7
  formProps: { mode }
@@ -2,11 +2,7 @@ import { useEffect } from "react";
2
2
  import { useAppDispatch } from "../../data/react-redux.js";
3
3
  import { login } from "../../utils/auth/index.js";
4
4
  import { LOGIN_SUCCESS } from "../../data/auth/actions.js";
5
- const Login = ({
6
- clientId,
7
- scope,
8
- responseType
9
- }) => {
5
+ const Login = ({ clientId, scope, responseType }) => {
10
6
  const dispatch = useAppDispatch();
11
7
  useEffect(() => {
12
8
  login({ clientId, scope, responseType }).then(() => {
@@ -1,20 +1,11 @@
1
+ import { Dispatch, PayloadAction, AnyAction } from '@reduxjs/toolkit';
1
2
  import { TypedUseSelectorHook } from 'react-redux';
2
3
  import { RootState } from './store.js';
3
- export declare const useAppDispatch: () => import("redux").Dispatch<{
4
- payload: import("./wait-message/reducer.js").WaitMessageState;
5
- type: string;
6
- } | import("redux").AnyAction | {
7
- payload: import("./breakpoint/index.js").Breakpoints;
8
- type: string;
9
- }> & import("..").ThunkDispatch<import("redux").CombinedState<{
10
- waitMessage: import("./wait-message/reducer.js").WaitMessageState;
11
- error: import("./error/index.js").ErrorState;
12
- breakpoint: import("./breakpoint/index.js").BreakpointState;
13
- liveMessage: import("./live-message/index.js").LiveMessageState;
14
- }>, null, import("redux").AnyAction> & import("..").ThunkDispatch<import("redux").CombinedState<{
15
- waitMessage: import("./wait-message/reducer.js").WaitMessageState;
16
- error: import("./error/index.js").ErrorState;
17
- breakpoint: import("./breakpoint/index.js").BreakpointState;
18
- liveMessage: import("./live-message/index.js").LiveMessageState;
19
- }>, undefined, import("redux").AnyAction>;
4
+ import { WaitMessageState } from './wait-message/reducer.js';
5
+ import { BreakpointState } from './breakpoint/index.js';
6
+ import { ErrorState } from './error/index.js';
7
+ import { LiveMessageState } from './live-message/index.js';
8
+ declare type AppDispatch = Dispatch<PayloadAction<WaitMessageState> | PayloadAction<BreakpointState> | PayloadAction<ErrorState> | PayloadAction<LiveMessageState> | AnyAction>;
9
+ export declare const useAppDispatch: () => AppDispatch;
20
10
  export declare const useAppSelector: TypedUseSelectorHook<RootState>;
11
+ export {};
@@ -50,5 +50,4 @@ export declare const createAppStore: (initialState: import("redux").CombinedStat
50
50
  liveMessage: import("./live-message/index.js").LiveMessageState;
51
51
  }>, import("redux").Dispatch<import("redux").AnyAction>>>>;
52
52
  export declare type AppStore = ReturnType<typeof createAppStore>;
53
- export declare type AppDispatch = AppStore['dispatch'];
54
53
  export {};
@@ -19,5 +19,5 @@ interface RenderWithStateAddOnsProps {
19
19
  theme?: Theme;
20
20
  [x: string]: any;
21
21
  }
22
- export declare const RenderWithStateAddOns: React.FC<RenderWithStateAddOnsProps>;
22
+ export declare const RenderWithStateAddOns: ({ Component, reducer, saga, theme, ...rest }: RenderWithStateAddOnsProps) => JSX.Element | null;
23
23
  export {};
@@ -2,5 +2,5 @@
2
2
  declare type HostedAppProps = {
3
3
  children: React.ReactNode;
4
4
  };
5
- export declare const HostedApp: React.FC<HostedAppProps>;
5
+ export declare const HostedApp: ({ children }: HostedAppProps) => JSX.Element;
6
6
  export {};
@@ -11,5 +11,5 @@ declare type AppRootProps = {
11
11
  WaitMessage?: React.ReactNode;
12
12
  errorTemplate?: React.ComponentType;
13
13
  };
14
- export declare const AppRoot: React.FC<AppRootProps>;
14
+ export declare const AppRoot: ({ store, history, theme, manageSession, WaitMessage, errorTemplate, children, }: AppRootProps) => JSX.Element;
15
15
  export {};
@@ -4,5 +4,5 @@ declare type StandAloneAppProps = {
4
4
  WaitMessage: React.ReactNode;
5
5
  children: React.ReactNode;
6
6
  };
7
- export declare const StandAloneApp: React.FC<StandAloneAppProps>;
7
+ export declare const StandAloneApp: ({ manageSession, WaitMessage, children, }: StandAloneAppProps) => JSX.Element;
8
8
  export {};
@@ -5,4 +5,4 @@ export interface ErrorTemplateProps {
5
5
  componentStack: string;
6
6
  } | null;
7
7
  }
8
- export declare const DefaultErrorTemplate: React.FC<ErrorTemplateProps>;
8
+ export declare const DefaultErrorTemplate: (props: ErrorTemplateProps) => JSX.Element;
@@ -7,5 +7,5 @@ export declare type CheckBoxProps<TFieldValues extends FieldValues = FieldValues
7
7
  rules?: Omit<RegisterOptions<TFieldValues, TName>, 'valueAsNumber' | 'valueAsDate' | 'setValueAs'>;
8
8
  [x: string]: any;
9
9
  };
10
- export declare const CheckBox: React.FC<CheckBoxProps>;
10
+ export declare const CheckBox: ({ name, defaultChecked, rules, ...rest }: CheckBoxProps) => JSX.Element;
11
11
  export { CHECKBOX_VARIANT };
@@ -7,4 +7,4 @@ export declare type ComboBoxProps<TFieldValues extends FieldValues = FieldValues
7
7
  onChange: (e: React.BaseSyntheticEvent) => void;
8
8
  [x: string]: any;
9
9
  };
10
- export declare const ComboBox: React.FC<ComboBoxProps>;
10
+ export declare const ComboBox: ({ name, defaultValue, rules, onChange: changeHandler, ...rest }: ComboBoxProps) => JSX.Element;
@@ -3,4 +3,4 @@ import { UseFormReturn, FieldValues } from 'react-hook-form';
3
3
  export declare type ConnectFormProps = {
4
4
  children: <TFieldValues extends FieldValues>(methods: UseFormReturn<TFieldValues>) => JSX.Element;
5
5
  };
6
- export declare const ConnectForm: React.FC<ConnectFormProps>;
6
+ export declare const ConnectForm: ({ children }: ConnectFormProps) => JSX.Element;
@@ -6,4 +6,4 @@ export declare type DateInputProps<TFieldValues extends FieldValues = FieldValue
6
6
  rules?: Omit<RegisterOptions<TFieldValues, TName>, 'valueAsNumber' | 'valueAsDate' | 'setValueAs'>;
7
7
  [x: string]: any;
8
8
  };
9
- export declare const DateInput: React.FC<DateInputProps>;
9
+ export declare const DateInput: ({ name, defaultValue, rules, ...rest }: DateInputProps) => JSX.Element;
@@ -6,4 +6,4 @@ export declare type DatePickerProps<TFieldValues extends FieldValues = FieldValu
6
6
  rules?: Omit<RegisterOptions<TFieldValues, TName>, 'valueAsNumber' | 'valueAsDate' | 'setValueAs'>;
7
7
  [x: string]: any;
8
8
  };
9
- export declare const DatePicker: React.FC<DatePickerProps>;
9
+ export declare const DatePicker: ({ name, defaultValue, rules, ...rest }: DatePickerProps) => JSX.Element;
@@ -6,4 +6,4 @@ export declare type FormItemLayoutProps = {
6
6
  labelText?: string;
7
7
  [x: string]: any;
8
8
  };
9
- export declare const FormItemLayout: React.FC<FormItemLayoutProps>;
9
+ export declare const FormItemLayout: ({ name, ...rest }: FormItemLayoutProps) => JSX.Element;
@@ -8,5 +8,5 @@ export declare type InputMaskProps<TFieldValues extends FieldValues = FieldValue
8
8
  mask: <T>(value: T) => T;
9
9
  [x: string]: any;
10
10
  };
11
- export declare const InputMask: React.FC<InputMaskProps>;
11
+ export declare const InputMask: ({ name, defaultValue, rules, mask, ...rest }: InputMaskProps) => JSX.Element;
12
12
  export { MASK_TYPES, MASK_PIPES };
@@ -7,4 +7,4 @@ export declare type LargeTextBoxProps<TFieldValues extends FieldValues = FieldVa
7
7
  mask: <T>(value: T) => T;
8
8
  [x: string]: any;
9
9
  };
10
- export declare const LargeTextBox: React.FC<LargeTextBoxProps>;
10
+ export declare const LargeTextBox: ({ name, defaultValue, rules, ...rest }: LargeTextBoxProps) => JSX.Element;
@@ -7,4 +7,4 @@ export declare type RadioProps<TFieldValues extends FieldValues = FieldValues, T
7
7
  mask: <T>(value: T) => T;
8
8
  [x: string]: any;
9
9
  };
10
- export declare const Radio: React.FC<RadioProps>;
10
+ export declare const Radio: ({ name, defaultChecked, rules, ...rest }: RadioProps) => JSX.Element;
@@ -5,4 +5,4 @@ export declare type RadioGroupProps<TFieldValues extends FieldValues = FieldValu
5
5
  rules?: Omit<RegisterOptions<TFieldValues, TName>, 'valueAsNumber' | 'valueAsDate' | 'setValueAs'>;
6
6
  [x: string]: any;
7
7
  };
8
- export declare const RadioGroup: React.FC<RadioGroupProps>;
8
+ export declare const RadioGroup: ({ name, rules, ...rest }: RadioGroupProps) => JSX.Element;
@@ -6,4 +6,4 @@ export declare type TextBoxProps<TFieldValues extends FieldValues = FieldValues,
6
6
  rules?: Omit<RegisterOptions<TFieldValues, TName>, 'valueAsNumber' | 'valueAsDate' | 'setValueAs'>;
7
7
  [x: string]: any;
8
8
  };
9
- export declare const TextBox: React.FC<TextBoxProps>;
9
+ export declare const TextBox: ({ name, defaultValue, rules, ...rest }: TextBoxProps) => JSX.Element;
@@ -3,4 +3,4 @@ export declare type WatchValueProps = {
3
3
  name: string;
4
4
  labelText: string;
5
5
  };
6
- export declare const WatchValue: React.FC<WatchValueProps>;
6
+ export declare const WatchValue: ({ name, labelText }: WatchValueProps) => JSX.Element;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  export declare const FirstName: () => JSX.Element;
3
- export declare const DOB: React.FC;
4
- export declare const State: React.FC;
5
- export declare const MaritalStatus: React.FC;
3
+ export declare const DOB: () => JSX.Element;
4
+ export declare const State: () => JSX.Element;
5
+ export declare const MaritalStatus: () => JSX.Element;
@@ -6,4 +6,4 @@ export declare type CustomFormProviderProps = UseFormReturn & {
6
6
  export declare type FormSubmitButtonProps = {
7
7
  [x: string]: any;
8
8
  };
9
- export declare const FormSubmitButton: React.FC<FormSubmitButtonProps>;
9
+ export declare const FormSubmitButton: ({ ...rest }: FormSubmitButtonProps) => JSX.Element;
@@ -1,2 +1,2 @@
1
1
  /// <reference types="react" />
2
- export declare const LiveMessage: React.FC;
2
+ export declare const LiveMessage: () => JSX.Element;
@@ -1,8 +1,7 @@
1
- /// <reference types="react" />
2
1
  interface LoginParams {
3
2
  clientId: string;
4
3
  scope: string;
5
4
  responseType: string;
6
5
  }
7
- export declare const Login: React.FC<LoginParams>;
6
+ export declare const Login: ({ clientId, scope, responseType }: LoginParams) => null;
8
7
  export {};
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
- export declare const MediaBreakpoint: React.FC;
1
+ export declare const MediaBreakpoint: () => null;
@@ -5,4 +5,4 @@ export interface ErrorProps {
5
5
  showHeader?: boolean;
6
6
  children: React.ReactNode;
7
7
  }
8
- export declare const Error: React.FC<ErrorProps>;
8
+ export declare const Error: ({ open, name, showHeader, children, }: ErrorProps) => JSX.Element;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
- export declare const WaitMessageLauncher: React.FC;
1
+ export declare const WaitMessageLauncher: () => null;
@@ -1,2 +1,2 @@
1
1
  /// <reference types="react" />
2
- export declare const SessionTimeout: React.FC;
2
+ export declare const SessionTimeout: () => JSX.Element;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
- export declare const WindowSize: React.FC;
1
+ export declare const WindowSize: () => null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/pui-app-sdk",
3
- "version": "3.0.0-beta.16",
3
+ "version": "3.0.0-beta.17",
4
4
  "description": "ICE MT UI Platform Application SDK ",
5
5
  "sideEffects": [
6
6
  "*.css",
@@ -97,7 +97,7 @@
97
97
  "indent": 4
98
98
  },
99
99
  "peerDependencies": {
100
- "@elliemae/app-react-dependencies": "^3.0.0-beta.2",
100
+ "@elliemae/app-react-dependencies": "^3.0.0-beta.3",
101
101
  "@elliemae/ds-basic": "^2.3.0-alpha.2",
102
102
  "@elliemae/ds-button": "^2.3.0-alpha.2",
103
103
  "@elliemae/ds-date-picker": "^2.3.0-alpha.2",
@@ -113,7 +113,7 @@
113
113
  "@elliemae/pui-user-monitoring": "^1.12.2"
114
114
  },
115
115
  "devDependencies": {
116
- "@elliemae/app-react-dependencies": "~3.0.0-beta.2",
116
+ "@elliemae/app-react-dependencies": "~3.0.0-beta.3",
117
117
  "@elliemae/browserslist-config-elliemae-latest-browsers": "~1.2.1",
118
118
  "@elliemae/ds-basic": "~2.3.0-alpha.2",
119
119
  "@elliemae/ds-button": "~2.3.0-alpha.2",