@elliemae/pui-app-sdk 4.5.0 → 4.6.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 (61) hide show
  1. package/dist/cjs/utils/session.js +8 -1
  2. package/dist/cjs/view/modals/session-expiry/index.js +1 -0
  3. package/dist/esm/utils/session.js +8 -1
  4. package/dist/esm/view/modals/session-expiry/index.js +5 -1
  5. package/dist/types/lib/communication/http-client/index.d.ts +2 -2
  6. package/dist/types/lib/communication/http-client/response-interceptor.d.ts +1 -1
  7. package/dist/types/lib/communication/http-client/retry-axios.d.ts +2 -2
  8. package/dist/types/lib/data/error/index.d.ts +1 -1
  9. package/dist/types/lib/data/live-message/index.d.ts +1 -1
  10. package/dist/types/lib/data/react-redux.d.ts +1 -1
  11. package/dist/types/lib/data/reducers.d.ts +1 -1
  12. package/dist/types/lib/data/saga.d.ts +4 -4
  13. package/dist/types/lib/data/store.d.ts +4 -4
  14. package/dist/types/lib/data/wait-message/reducer.d.ts +1 -1
  15. package/dist/types/lib/utils/app-host-integration/react.d.ts +1 -1
  16. package/dist/types/lib/utils/await.d.ts +1 -1
  17. package/dist/types/lib/utils/micro-frontend/console-logger.d.ts +1 -1
  18. package/dist/types/lib/utils/micro-frontend/guest.d.ts +4 -4
  19. package/dist/types/lib/utils/micro-frontend/host.d.ts +3 -3
  20. package/dist/types/lib/utils/micro-frontend/types.d.ts +2 -2
  21. package/dist/types/lib/utils/session.d.ts +4 -3
  22. package/dist/types/lib/utils/testing/render-with-redux.d.ts +1 -1
  23. package/dist/types/lib/utils/testing/render-with-router-redux.d.ts +1 -1
  24. package/dist/types/lib/utils/types.d.ts +1 -1
  25. package/dist/types/lib/utils/window.d.ts +1 -1
  26. package/dist/types/lib/view/app-root/hosted-app.d.ts +1 -1
  27. package/dist/types/lib/view/app-root/index.d.ts +1 -1
  28. package/dist/types/lib/view/app-root/stand-alone-app.d.ts +1 -1
  29. package/dist/types/lib/view/fields/autocomplete/index.d.ts +2 -2
  30. package/dist/types/lib/view/fields/check-box/index.d.ts +1 -1
  31. package/dist/types/lib/view/fields/combo-box/index.d.ts +1 -1
  32. package/dist/types/lib/view/fields/combo-box-v3/index.d.ts +1 -1
  33. package/dist/types/lib/view/fields/connect-form.d.ts +1 -1
  34. package/dist/types/lib/view/fields/date-input/index.d.ts +1 -1
  35. package/dist/types/lib/view/fields/date-picker/index.d.ts +1 -1
  36. package/dist/types/lib/view/fields/date-range-picker/index.d.ts +1 -1
  37. package/dist/types/lib/view/fields/date-time-picker/index.d.ts +1 -1
  38. package/dist/types/lib/view/fields/form-item-layout/index.d.ts +1 -1
  39. package/dist/types/lib/view/fields/form-layout-block-item/index.d.ts +1 -1
  40. package/dist/types/lib/view/fields/input-mask/index.d.ts +1 -1
  41. package/dist/types/lib/view/fields/input-text/index.d.ts +1 -1
  42. package/dist/types/lib/view/fields/large-text-box/index.d.ts +1 -1
  43. package/dist/types/lib/view/fields/radio/index.d.ts +1 -1
  44. package/dist/types/lib/view/fields/radio-group/index.d.ts +1 -1
  45. package/dist/types/lib/view/fields/text-box/index.d.ts +1 -1
  46. package/dist/types/lib/view/fields/toggle/index.d.ts +1 -1
  47. package/dist/types/lib/view/fields/watch-value.d.ts +1 -1
  48. package/dist/types/lib/view/form/index.d.ts +2 -2
  49. package/dist/types/lib/view/form/submit-button/index.d.ts +2 -2
  50. package/dist/types/lib/view/form/usecases.stories.d.ts +1 -1
  51. package/dist/types/lib/view/message-to-host-app/index.d.ts +1 -1
  52. package/dist/types/lib/view/micro-app/resources/manifest.d.ts +1 -1
  53. package/dist/types/lib/view/micro-app/types.d.ts +1 -1
  54. package/dist/types/lib/view/micro-app/use-app-will-render.d.ts +2 -2
  55. package/dist/types/lib/view/micro-app/utils.d.ts +1 -1
  56. package/dist/types/lib/view/micro-iframe-app/app.d.ts +1 -1
  57. package/dist/types/lib/view/micro-iframe-app/iframe/index.d.ts +1 -1
  58. package/dist/types/lib/view/micro-iframe-app/index.d.ts +1 -1
  59. package/dist/types/lib/view/micro-iframe-app/types.d.ts +1 -1
  60. package/dist/types/lib/view/storybook/decorator.d.ts +1 -1
  61. package/package.json +38 -38
@@ -18,6 +18,7 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var session_exports = {};
20
20
  __export(session_exports, {
21
+ addEventListeners: () => addEventListeners,
21
22
  initSessionMonitoring: () => initSessionMonitoring,
22
23
  resetUserIdleTime: () => resetUserIdleTime,
23
24
  stopSessionMonitoring: () => stopSessionMonitoring,
@@ -62,6 +63,9 @@ const notifySessionExpiryWarning = () => {
62
63
  warnListeners.forEach(
63
64
  (listener) => listener(sessionExpiryWarningNotifiedAt)
64
65
  );
66
+ userInteractionEvents.forEach((eventType) => {
67
+ document.removeEventListener(eventType, throttledResetUserIdleTime);
68
+ });
65
69
  }).catch(() => {
66
70
  });
67
71
  };
@@ -91,10 +95,13 @@ const removeListeners = (arr, cb) => {
91
95
  arr.splice(idx, 1);
92
96
  }
93
97
  };
94
- const initSessionMonitoring = () => {
98
+ const addEventListeners = () => {
95
99
  userInteractionEvents.forEach((eventType) => {
96
100
  document.addEventListener(eventType, throttledResetUserIdleTime);
97
101
  });
102
+ };
103
+ const initSessionMonitoring = () => {
104
+ addEventListeners();
98
105
  timerHandle = setInterval(monitorSessionEvents, 1e3);
99
106
  };
100
107
  const subscribeToSessionExpiryWarning = (onSessionExpiryWarn) => {
@@ -41,6 +41,7 @@ const SessionExpiry = (0, import_react.memo)(
41
41
  const resetSession = () => {
42
42
  setIsOpen(false);
43
43
  (0, import_session.resetUserIdleTime)(true);
44
+ (0, import_session.addEventListeners)();
44
45
  dispatch(import_actions.logout.cancel());
45
46
  };
46
47
  const logoutSession = () => {
@@ -33,6 +33,9 @@ const notifySessionExpiryWarning = () => {
33
33
  warnListeners.forEach(
34
34
  (listener) => listener(sessionExpiryWarningNotifiedAt)
35
35
  );
36
+ userInteractionEvents.forEach((eventType) => {
37
+ document.removeEventListener(eventType, throttledResetUserIdleTime);
38
+ });
36
39
  }).catch(() => {
37
40
  });
38
41
  };
@@ -62,10 +65,13 @@ const removeListeners = (arr, cb) => {
62
65
  arr.splice(idx, 1);
63
66
  }
64
67
  };
65
- const initSessionMonitoring = () => {
68
+ const addEventListeners = () => {
66
69
  userInteractionEvents.forEach((eventType) => {
67
70
  document.addEventListener(eventType, throttledResetUserIdleTime);
68
71
  });
72
+ };
73
+ const initSessionMonitoring = () => {
74
+ addEventListeners();
69
75
  timerHandle = setInterval(monitorSessionEvents, 1e3);
70
76
  };
71
77
  const subscribeToSessionExpiryWarning = (onSessionExpiryWarn) => {
@@ -96,6 +102,7 @@ const trackActivity = (element, cb) => {
96
102
  };
97
103
  };
98
104
  export {
105
+ addEventListeners,
99
106
  initSessionMonitoring,
100
107
  resetUserIdleTime,
101
108
  stopSessionMonitoring,
@@ -13,7 +13,10 @@ import {
13
13
  } from "@elliemae/ds-dialog";
14
14
  import { useAppDispatch } from "../../../data/react-redux.js";
15
15
  import { logout } from "../../../data/logout/actions.js";
16
- import { resetUserIdleTime } from "../../../utils/session.js";
16
+ import {
17
+ resetUserIdleTime,
18
+ addEventListeners
19
+ } from "../../../utils/session.js";
17
20
  import { useTrackSessionExpiry } from "./customHooks.js";
18
21
  const SessionExpiry = memo(
19
22
  ({ open, warningNotifiedAt = 0 }) => {
@@ -26,6 +29,7 @@ const SessionExpiry = memo(
26
29
  const resetSession = () => {
27
30
  setIsOpen(false);
28
31
  resetUserIdleTime(true);
32
+ addEventListeners();
29
33
  dispatch(logout.cancel());
30
34
  };
31
35
  const logoutSession = () => {
@@ -1,6 +1,6 @@
1
1
  import { AxiosInstance, RawAxiosRequestHeaders, HeadersDefaults } from 'axios';
2
- declare type AxiosRequestHeaders = RawAxiosRequestHeaders | Partial<HeadersDefaults>;
3
- declare type RequestConfig = {
2
+ type AxiosRequestHeaders = RawAxiosRequestHeaders | Partial<HeadersDefaults>;
3
+ type RequestConfig = {
4
4
  Authorization?: string;
5
5
  } & AxiosRequestHeaders;
6
6
  export declare const getHTTPClient: ({ baseURL, headers, }?: {
@@ -1,5 +1,5 @@
1
1
  import { AxiosError, AxiosResponse } from 'axios';
2
- declare type FailureCallback = {
2
+ type FailureCallback = {
3
3
  (error: AxiosError): Promise<string>;
4
4
  };
5
5
  export declare const onAuthorizationFailure: (callback: FailureCallback) => void;
@@ -1,5 +1,5 @@
1
1
  import axios, { AxiosInstance, AxiosError, AxiosRequestConfig, AxiosDefaults } from 'axios';
2
- export declare type RetryConfig = {
2
+ export type RetryConfig = {
3
3
  currentRetryAttempt: number;
4
4
  retry: number;
5
5
  retryDelay: number;
@@ -11,7 +11,7 @@ export declare type RetryConfig = {
11
11
  shouldRetry?: (err: SDKAxiosError) => boolean;
12
12
  onRetryAttempt: (err: SDKAxiosError) => void;
13
13
  };
14
- export declare type SDKAxiosDefaults<D = any> = {
14
+ export type SDKAxiosDefaults<D = any> = {
15
15
  retryConfig: RetryConfig | Partial<RetryConfig>;
16
16
  } & AxiosDefaults<D>;
17
17
  export interface SDKAxiosRequestConfig extends AxiosRequestConfig {
@@ -7,5 +7,5 @@ export interface ErrorState {
7
7
  export declare const actions: import("@reduxjs/toolkit").CaseReducerActions<{
8
8
  set: (_: import("immer/dist/internal").WritableDraft<ErrorState>, actions: PayloadAction<ErrorState>) => ErrorState;
9
9
  clear: () => ErrorState;
10
- }>;
10
+ }, "error">;
11
11
  export declare const errorReducer: import("redux").Reducer<ErrorState, import("redux").AnyAction>;
@@ -10,5 +10,5 @@ export declare const actions: import("@reduxjs/toolkit").CaseReducerActions<{
10
10
  ariaLive: "polite" | "assertive" | "alert" | "off";
11
11
  id: string | undefined;
12
12
  };
13
- }>;
13
+ }, "liveMessage">;
14
14
  export declare const liveMessageReducer: import("redux").Reducer<LiveMessageState, import("redux").AnyAction>;
@@ -5,7 +5,7 @@ import { WaitMessageState } from './wait-message/reducer.js';
5
5
  import { BreakpointState } from './breakpoint/index.js';
6
6
  import { ErrorState } from './error/index.js';
7
7
  import { LiveMessageState } from './live-message/index.js';
8
- declare type AppDispatch = Dispatch<PayloadAction<WaitMessageState> | PayloadAction<BreakpointState> | PayloadAction<ErrorState> | PayloadAction<LiveMessageState> | AnyAction>;
8
+ type AppDispatch = Dispatch<PayloadAction<WaitMessageState> | PayloadAction<BreakpointState> | PayloadAction<ErrorState> | PayloadAction<LiveMessageState> | AnyAction>;
9
9
  export declare const useAppDispatch: () => AppDispatch;
10
10
  export declare const useAppSelector: TypedUseSelectorHook<RootState>;
11
11
  export {};
@@ -1,5 +1,5 @@
1
1
  import { Reducer, Action } from 'redux';
2
- export declare type InjectedReducers = {
2
+ export type InjectedReducers = {
3
3
  [x: string]: Reducer<any, Action>;
4
4
  };
5
5
  export declare const createReducer: (injectedReducers?: InjectedReducers) => Reducer<import("redux").CombinedState<{
@@ -4,14 +4,14 @@ export declare const AllowedModes: {
4
4
  Daemon: string;
5
5
  OnceTillUnmount: string;
6
6
  };
7
- declare type Keys = keyof typeof AllowedModes;
8
- export declare type AllowedModeValues = typeof AllowedModes[Keys];
9
- export declare type SagaDescription = {
7
+ type Keys = keyof typeof AllowedModes;
8
+ export type AllowedModeValues = typeof AllowedModes[Keys];
9
+ export type SagaDescription = {
10
10
  mode?: AllowedModeValues;
11
11
  saga: Saga;
12
12
  task?: Task;
13
13
  };
14
- export declare type InjectedSagas = {
14
+ export type InjectedSagas = {
15
15
  [x: string]: SagaDescription;
16
16
  };
17
17
  export {};
@@ -11,10 +11,10 @@ declare const rootReducer: import("redux").Reducer<import("redux").CombinedState
11
11
  payload: import("./breakpoint/index.js").Breakpoints;
12
12
  type: string;
13
13
  }>;
14
- export declare type RootState = ReturnType<typeof rootReducer>;
14
+ export type RootState = ReturnType<typeof rootReducer>;
15
15
  export declare const setStore: <T>(store: T) => void;
16
16
  export declare const getStore: () => unknown;
17
- declare type MiddlewareConfig = {
17
+ type MiddlewareConfig = {
18
18
  thunk: boolean;
19
19
  };
20
20
  export declare const createAppStore: (initialState: import("redux").CombinedState<{
@@ -22,7 +22,7 @@ export declare const createAppStore: (initialState: import("redux").CombinedStat
22
22
  error: import("./error/index.js").ErrorState;
23
23
  breakpoint: import("./breakpoint/index.js").BreakpointState;
24
24
  liveMessage: import("./live-message/index.js").LiveMessageState;
25
- }> | undefined, history: History, middlewareConfig?: MiddlewareConfig) => import("@reduxjs/toolkit").EnhancedStore<import("redux").CombinedState<{
25
+ }> | undefined, history: History, middlewareConfig?: MiddlewareConfig) => import("@reduxjs/toolkit/dist/configureStore.js").ToolkitStore<import("redux").CombinedState<{
26
26
  waitMessage: import("./wait-message/reducer.js").WaitMessageState;
27
27
  error: import("./error/index.js").ErrorState;
28
28
  breakpoint: import("./breakpoint/index.js").BreakpointState;
@@ -39,5 +39,5 @@ export declare const createAppStore: (initialState: import("redux").CombinedStat
39
39
  breakpoint: import("./breakpoint/index.js").BreakpointState;
40
40
  liveMessage: import("./live-message/index.js").LiveMessageState;
41
41
  }>, import("redux").AnyAction, undefined>, import("redux-saga").SagaMiddleware<object>]>>;
42
- export declare type AppStore = ReturnType<typeof createAppStore>;
42
+ export type AppStore = ReturnType<typeof createAppStore>;
43
43
  export {};
@@ -1,5 +1,5 @@
1
1
  import { PayloadAction } from '@reduxjs/toolkit';
2
- export declare type WaitMessageState = {
2
+ export type WaitMessageState = {
3
3
  isOpen: boolean | null;
4
4
  message: string;
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import { CMicroAppGuest, OnInitCallback, OnMountCallback } from '../micro-frontend/guest.js';
2
- declare type Options = {
2
+ type Options = {
3
3
  onInit: OnInitCallback;
4
4
  onMount: OnMountCallback;
5
5
  };
@@ -1 +1 @@
1
- export declare type Await<T> = T extends PromiseLike<infer U> ? U : T;
1
+ export type Await<T> = T extends PromiseLike<infer U> ? U : T;
@@ -1,3 +1,3 @@
1
1
  import { Logger } from '@elliemae/pui-diagnostics';
2
2
  export declare const logger: Console | Logger;
3
- export declare type MicroFrontEndLogger = Logger | typeof console;
3
+ export type MicroFrontEndLogger = Logger | typeof console;
@@ -8,10 +8,10 @@ export interface GuestProps extends InitOptions {
8
8
  history: History;
9
9
  theme: DefaultTheme;
10
10
  }
11
- export declare type OnInitCallback = (options: GuestProps) => void;
12
- export declare type OnMountCallback = (options: MountOptions) => void;
13
- export declare type OnUnMountCallback = (options: MountOptions) => JSONValue;
14
- export declare type OnGetRefCallback = <T>() => T | null;
11
+ export type OnInitCallback = (options: GuestProps) => void;
12
+ export type OnMountCallback = (options: MountOptions) => void;
13
+ export type OnUnMountCallback = (options: MountOptions) => JSONValue;
14
+ export type OnGetRefCallback = <T>() => T | null;
15
15
  interface ConstructorParams {
16
16
  logger?: MicroFrontEndLogger;
17
17
  onInit?: OnInitCallback;
@@ -2,13 +2,13 @@ import { History, To } from 'history';
2
2
  import { DefaultTheme } from 'styled-components';
3
3
  import { IMicroAppHost, ResizeEventHandler, BreakpointChangeEventHandler, SubscriptionListener, BAEvent } from '@elliemae/pui-micro-frontend-base';
4
4
  import { MicroFrontEndLogger } from './console-logger.js';
5
- declare type HostOptions = {
5
+ type HostOptions = {
6
6
  systemVersion: string;
7
7
  history: History;
8
8
  theme: DefaultTheme;
9
9
  };
10
- export declare type OnInitCallback = (options: HostOptions) => void;
11
- declare type ConstructorParams = {
10
+ export type OnInitCallback = (options: HostOptions) => void;
11
+ type ConstructorParams = {
12
12
  logger?: MicroFrontEndLogger;
13
13
  history?: History;
14
14
  version?: string;
@@ -1,8 +1,8 @@
1
1
  import { InitOptions } from '@elliemae/pui-micro-frontend-base';
2
- declare type EnvConfig = {
2
+ type EnvConfig = {
3
3
  files: Array<string>;
4
4
  };
5
- export declare type MicroAppConfig = {
5
+ export type MicroAppConfig = {
6
6
  id: string;
7
7
  name: string;
8
8
  mode?: string;
@@ -1,14 +1,15 @@
1
- declare type WARNLISTENER = {
1
+ type WARNLISTENER = {
2
2
  (sessionExpiryWarningNotifiedAt: number | null): void;
3
3
  };
4
- declare type RESETLISTENER = {
4
+ type RESETLISTENER = {
5
5
  (resetWarningModal: unknown): void;
6
6
  };
7
- declare type LISTENER = {
7
+ type LISTENER = {
8
8
  (): void;
9
9
  };
10
10
  export declare const resetUserIdleTime: (resetWarningModal?: unknown) => void;
11
11
  export declare const stopSessionMonitoring: () => void;
12
+ export declare const addEventListeners: () => void;
12
13
  export declare const initSessionMonitoring: () => void;
13
14
  export declare const subscribeToSessionExpiryWarning: (onSessionExpiryWarn: WARNLISTENER) => () => void;
14
15
  export declare const subscribeToSessionExpiry: (onSessionExpiry: LISTENER) => () => void;
@@ -5,7 +5,7 @@ interface Args {
5
5
  store: AppStore;
6
6
  }
7
7
  export declare const renderWithRedux: (ui: React.ReactElement, { initialState, store, }?: Args) => {
8
- store: import("@reduxjs/toolkit").EnhancedStore<import("redux").CombinedState<{
8
+ store: import("@reduxjs/toolkit/dist/configureStore.js").ToolkitStore<import("redux").CombinedState<{
9
9
  waitMessage: import("../../data/wait-message/reducer.js").WaitMessageState;
10
10
  error: import("../../data/error/index.js").ErrorState;
11
11
  breakpoint: import("../../data/breakpoint/index.js").BreakpointState;
@@ -8,7 +8,7 @@ interface Args {
8
8
  history: History;
9
9
  }
10
10
  export declare const renderWithRouterRedux: (ui: React.ReactElement, { route, history, initialState, store, }?: Args) => {
11
- store: import("@reduxjs/toolkit").EnhancedStore<import("redux").CombinedState<{
11
+ store: import("@reduxjs/toolkit/dist/configureStore.js").ToolkitStore<import("redux").CombinedState<{
12
12
  waitMessage: import("../../data/wait-message/reducer.js").WaitMessageState;
13
13
  error: import("../../data/error/index.js").ErrorState;
14
14
  breakpoint: import("../../data/breakpoint/index.js").BreakpointState;
@@ -1,3 +1,3 @@
1
- export declare type JSONValue = Partial<{
1
+ export type JSONValue = Partial<{
2
2
  [key: string]: JSONValue;
3
3
  }> | JSONValue[] | string | number | boolean | null;
@@ -1,7 +1,7 @@
1
1
  import { IMicroAppGuest, IMicroAppHost, BAEvent } from '@elliemae/pui-micro-frontend-base';
2
2
  import { BreakPoint } from '@elliemae/pui-theme';
3
3
  import { Logger } from '@elliemae/pui-diagnostics';
4
- export declare type EMUI = {
4
+ export type EMUI = {
5
5
  [key: string]: IMicroAppGuest;
6
6
  } & {
7
7
  _BASE_PATH: string;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- declare type HostedAppProps = {
2
+ type HostedAppProps = {
3
3
  WaitMessage: React.ReactNode;
4
4
  children: React.ReactNode;
5
5
  };
@@ -2,7 +2,7 @@
2
2
  import { History } from 'history';
3
3
  import { Theme } from '@elliemae/pui-theme';
4
4
  import { AppStore } from '../../data/store.js';
5
- declare type AppRootProps = {
5
+ type AppRootProps = {
6
6
  store: AppStore;
7
7
  history: History;
8
8
  basename?: string;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- declare type StandAloneAppProps = {
2
+ type StandAloneAppProps = {
3
3
  manageSession: boolean;
4
4
  WaitMessage: React.ReactNode;
5
5
  children: React.ReactNode;
@@ -1,10 +1,10 @@
1
1
  /// <reference types="react" />
2
- declare type AutocompleteOption = {
2
+ type AutocompleteOption = {
3
3
  label: string;
4
4
  type: string;
5
5
  [x: string]: unknown;
6
6
  };
7
- export declare type AutocompleteProps = {
7
+ export type AutocompleteProps = {
8
8
  name: string;
9
9
  options: AutocompleteOption[];
10
10
  [x: string]: any;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { RegisterOptions, FieldValues, FieldPath } from 'react-hook-form';
3
- export declare type CheckBoxProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> = {
3
+ export type CheckBoxProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> = {
4
4
  name: string;
5
5
  label: string;
6
6
  rules?: Omit<RegisterOptions<TFieldValues, TName>, 'valueAsNumber' | 'valueAsDate' | 'setValueAs'>;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { RegisterOptions, FieldValues, FieldPath } from 'react-hook-form';
3
- export declare type ComboBoxProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> = {
3
+ export type ComboBoxProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> = {
4
4
  name: string;
5
5
  defaultValue?: string;
6
6
  rules?: Omit<RegisterOptions<TFieldValues, TName>, 'valueAsNumber' | 'valueAsDate' | 'setValueAs'>;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { RegisterOptions, FieldValues, FieldPath } from 'react-hook-form';
3
- export declare type ComboBoxV3Props<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> = {
3
+ export type ComboBoxV3Props<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> = {
4
4
  name: string;
5
5
  defaultValue?: Record<string, unknown>[] | Record<string, unknown> | null;
6
6
  rules?: Omit<RegisterOptions<TFieldValues, TName>, 'valueAsNumber' | 'valueAsDate' | 'setValueAs'>;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { UseFormReturn, FieldValues } from 'react-hook-form';
3
- export declare type ConnectFormProps = {
3
+ export type ConnectFormProps = {
4
4
  children: <TFieldValues extends FieldValues>(methods: UseFormReturn<TFieldValues>) => JSX.Element;
5
5
  };
6
6
  export declare const ConnectForm: ({ children }: ConnectFormProps) => JSX.Element;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { RegisterOptions, FieldValues, FieldPath } from 'react-hook-form';
3
- export declare type DateInputProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> = {
3
+ export type DateInputProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> = {
4
4
  name: string;
5
5
  defaultValue?: string;
6
6
  rules?: Omit<RegisterOptions<TFieldValues, TName>, 'valueAsNumber' | 'valueAsDate' | 'setValueAs'>;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { RegisterOptions, FieldValues, FieldPath } from 'react-hook-form';
3
- export declare type DatePickerProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> = {
3
+ export type DatePickerProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> = {
4
4
  name: string;
5
5
  labelText: string;
6
6
  defaultValue?: string;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { RegisterOptions, FieldValues, FieldPath } from 'react-hook-form';
3
- export declare type DateRangePickerProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> = {
3
+ export type DateRangePickerProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> = {
4
4
  name: string;
5
5
  defaultValue?: [string, string];
6
6
  rules?: Omit<RegisterOptions<TFieldValues, TName>, 'valueAsNumber' | 'valueAsDate' | 'setValueAs'>;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { RegisterOptions, FieldValues, FieldPath } from 'react-hook-form';
3
- export declare type DateTimePickerProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> = {
3
+ export type DateTimePickerProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> = {
4
4
  name: string;
5
5
  defaultValue?: string;
6
6
  rules?: Omit<RegisterOptions<TFieldValues, TName>, 'valueAsNumber' | 'valueAsDate' | 'setValueAs'>;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- export declare type FormItemLayoutProps = {
2
+ export type FormItemLayoutProps = {
3
3
  name: string;
4
4
  floatingLabel?: boolean;
5
5
  inputComponent: React.ComponentType<any>;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- export declare type FormLayoutBlockItemProps = {
2
+ export type FormLayoutBlockItemProps = {
3
3
  inputID: string;
4
4
  label: string;
5
5
  children: React.ReactNode;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { MASK_TYPES, MASK_PIPES } from '@elliemae/ds-form/InputMask';
3
3
  import { RegisterOptions, FieldValues, FieldPath } from 'react-hook-form';
4
- export declare type InputMaskProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> = {
4
+ export type InputMaskProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> = {
5
5
  name: string;
6
6
  defaultValue?: string;
7
7
  rules?: Omit<RegisterOptions<TFieldValues, TName>, 'valueAsNumber' | 'valueAsDate' | 'setValueAs'>;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { RegisterOptions, FieldValues, FieldPath } from 'react-hook-form';
3
- export declare type InputTextProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> = {
3
+ export type InputTextProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> = {
4
4
  name: string;
5
5
  defaultValue?: string;
6
6
  rules?: Omit<RegisterOptions<TFieldValues, TName>, 'valueAsNumber' | 'valueAsDate' | 'setValueAs'>;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { RegisterOptions, FieldValues, FieldPath } from 'react-hook-form';
3
- export declare type LargeTextBoxProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> = {
3
+ export type LargeTextBoxProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> = {
4
4
  name: string;
5
5
  defaultValue?: string;
6
6
  rules?: Omit<RegisterOptions<TFieldValues, TName>, 'valueAsNumber' | 'valueAsDate' | 'setValueAs'>;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { RegisterOptions, FieldValues, FieldPath } from 'react-hook-form';
3
- export declare type RadioProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> = {
3
+ export type RadioProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> = {
4
4
  name: string;
5
5
  labelText: string;
6
6
  defaultChecked?: boolean;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { RegisterOptions, FieldValues, FieldPath } from 'react-hook-form';
3
- export declare type RadioGroupProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> = {
3
+ export type RadioGroupProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> = {
4
4
  name: string;
5
5
  rules?: Omit<RegisterOptions<TFieldValues, TName>, 'valueAsNumber' | 'valueAsDate' | 'setValueAs'>;
6
6
  [x: string]: any;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { RegisterOptions, FieldValues, FieldPath } from 'react-hook-form';
3
- export declare type TextBoxProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> = {
3
+ export type TextBoxProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> = {
4
4
  name: string;
5
5
  defaultValue?: string;
6
6
  rules?: Omit<RegisterOptions<TFieldValues, TName>, 'valueAsNumber' | 'valueAsDate' | 'setValueAs'>;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { RegisterOptions, FieldValues, FieldPath } from 'react-hook-form';
3
- export declare type ToggleProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> = {
3
+ export type ToggleProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> = {
4
4
  name: string;
5
5
  defaultValue?: boolean;
6
6
  rules?: Omit<RegisterOptions<TFieldValues, TName>, 'valueAsNumber' | 'valueAsDate' | 'setValueAs'>;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- export declare type WatchValueProps = {
2
+ export type WatchValueProps = {
3
3
  name: string;
4
4
  label: string;
5
5
  };
@@ -1,12 +1,12 @@
1
1
  /// <reference types="react" />
2
2
  import { UseFormProps, FieldValues, SubmitHandler, FormProviderProps } from 'react-hook-form';
3
- export declare type FormProps<TFieldValues extends FieldValues, TContext extends object = object> = {
3
+ export type FormProps<TFieldValues extends FieldValues, TContext extends object = object> = {
4
4
  classname?: string;
5
5
  reactHookFormProps?: UseFormProps<TFieldValues, TContext>;
6
6
  children: React.ReactNode;
7
7
  onSubmit?: SubmitHandler<TFieldValues>;
8
8
  };
9
- export declare type CustomFormProviderProps = FormProviderProps & {
9
+ export type CustomFormProviderProps = FormProviderProps & {
10
10
  formProps: UseFormProps;
11
11
  };
12
12
  export declare const Form: <TFieldValues extends FieldValues = FieldValues, TContext extends object = object>({ classname, reactHookFormProps, children, onSubmit, }: FormProps<TFieldValues, TContext>) => JSX.Element;
@@ -1,9 +1,9 @@
1
1
  /// <reference types="react" />
2
2
  import { UseFormReturn, UseFormProps } from 'react-hook-form';
3
- export declare type CustomFormProviderProps = UseFormReturn & {
3
+ export type CustomFormProviderProps = UseFormReturn & {
4
4
  formProps: UseFormProps;
5
5
  };
6
- export declare type FormSubmitButtonProps = {
6
+ export type FormSubmitButtonProps = {
7
7
  children: React.ReactNode;
8
8
  [x: string]: any;
9
9
  };
@@ -2,7 +2,7 @@ import { Story, Meta } from '@storybook/react';
2
2
  import { FormProps } from './index.js';
3
3
  declare const _default: Meta<import("@storybook/react").Args>;
4
4
  export default _default;
5
- declare type FormFields = {
5
+ type FormFields = {
6
6
  firstname: string;
7
7
  dob: string;
8
8
  state: string;
@@ -4,7 +4,7 @@ interface HostEvent extends Event {
4
4
  [x: string]: any;
5
5
  };
6
6
  }
7
- declare type ActionFn = (data: HostEvent['data']) => void;
7
+ type ActionFn = (data: HostEvent['data']) => void;
8
8
  export declare const getHostAppData: (action: ActionFn, resolve: () => void) => (event: Event) => void;
9
9
  interface MessageArgs {
10
10
  guestAppId: string;
@@ -1,4 +1,4 @@
1
- declare type Manifest = Record<string, string>;
1
+ type Manifest = Record<string, string>;
2
2
  export declare const getAppManifest: ({ hostUrl, manifestPath, }: {
3
3
  hostUrl?: string | undefined;
4
4
  manifestPath?: string | undefined;
@@ -1,6 +1,6 @@
1
1
  import { Theme } from '@elliemae/pui-theme';
2
2
  import { History } from 'history';
3
- export declare type MicroAppProps = {
3
+ export type MicroAppProps = {
4
4
  id: string;
5
5
  documentEle?: HTMLDocument | null;
6
6
  history?: History;
@@ -1,6 +1,6 @@
1
1
  import { MicroAppProps } from './types.js';
2
- export declare type OnUnloadCompleteFn = () => void;
3
- declare type UseAppWillRenderArgs = MicroAppProps & {
2
+ export type OnUnloadCompleteFn = () => void;
3
+ type UseAppWillRenderArgs = MicroAppProps & {
4
4
  onUnloadComplete?: OnUnloadCompleteFn;
5
5
  };
6
6
  export declare const useAppWillRender: ({ id, documentEle, history, theme, homeRoute, onUnloadComplete, }: UseAppWillRenderArgs) => void;
@@ -1,4 +1,4 @@
1
- declare type NavLinks = Array<{
1
+ type NavLinks = Array<{
2
2
  id: string;
3
3
  name: string;
4
4
  path: string;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { OnUnloadCompleteFn } from '../micro-app/use-app-will-render.js';
3
3
  import { MicroIFrameAppProps } from './types.js';
4
- declare type AppProps = MicroIFrameAppProps & {
4
+ type AppProps = MicroIFrameAppProps & {
5
5
  dispose: boolean;
6
6
  onUnloadComplete: OnUnloadCompleteFn;
7
7
  };
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- declare type IFrameProps = {
2
+ type IFrameProps = {
3
3
  id: string;
4
4
  name?: string;
5
5
  src: string;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { MicroIFrameAppProps } from './types.js';
3
- declare type Props = MicroIFrameAppProps & {
3
+ type Props = MicroIFrameAppProps & {
4
4
  entityId?: string;
5
5
  };
6
6
  export declare const MicroIFrameApp: import("react").NamedExoticComponent<Props>;
@@ -1,5 +1,5 @@
1
1
  import { MicroAppProps } from '../micro-app/types.js';
2
- export declare type MicroIFrameAppProps = {
2
+ export type MicroIFrameAppProps = {
3
3
  name?: string;
4
4
  sandbox?: string;
5
5
  } & MicroAppProps;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { Theme } from '@elliemae/pui-theme';
3
3
  import { AppStore } from '../../data/store.js';
4
- declare type StoreFn = () => React.ReactElement;
4
+ type StoreFn = () => React.ReactElement;
5
5
  export declare const withAppDecorator: (theme: Theme, store: AppStore, story: StoreFn) => JSX.Element;
6
6
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/pui-app-sdk",
3
- "version": "4.5.0",
3
+ "version": "4.6.0",
4
4
  "description": "ICE MT UI Platform Application SDK ",
5
5
  "sideEffects": [
6
6
  "*.css",
@@ -111,51 +111,51 @@
111
111
  "indent": 4
112
112
  },
113
113
  "peerDependencies": {
114
- "@elliemae/app-react-dependencies": "^4.1.0",
115
- "@elliemae/ds-basic": "^3.10.7",
116
- "@elliemae/ds-button": "^3.10.7",
117
- "@elliemae/ds-controlled-form": "^3.10.7",
118
- "@elliemae/ds-date-picker": "^3.10.7",
119
- "@elliemae/ds-date-range-picker": "^3.10.7",
120
- "@elliemae/ds-dialog": "^3.10.7",
121
- "@elliemae/ds-form": "^3.10.7",
122
- "@elliemae/ds-form-layout-blocks": "^3.10.7",
123
- "@elliemae/ds-grid": "^3.10.7",
124
- "@elliemae/ds-loading-indicator": "^3.10.7",
125
- "@elliemae/ds-modal": "^3.10.7",
126
- "@elliemae/ds-popperjs": "^3.10.7",
127
- "@elliemae/ds-toast": "^3.10.7",
114
+ "@elliemae/app-react-dependencies": "^4.2.0",
115
+ "@elliemae/ds-basic": "^3.11.0",
116
+ "@elliemae/ds-button": "^3.11.0",
117
+ "@elliemae/ds-controlled-form": "^3.11.0",
118
+ "@elliemae/ds-date-picker": "^3.11.0",
119
+ "@elliemae/ds-date-range-picker": "^3.11.0",
120
+ "@elliemae/ds-dialog": "^3.11.0",
121
+ "@elliemae/ds-form": "^3.11.0",
122
+ "@elliemae/ds-form-layout-blocks": "^3.11.0",
123
+ "@elliemae/ds-grid": "^3.11.0",
124
+ "@elliemae/ds-loading-indicator": "^3.11.0",
125
+ "@elliemae/ds-modal": "^3.11.0",
126
+ "@elliemae/ds-popperjs": "^3.11.0",
127
+ "@elliemae/ds-toast": "^3.11.0",
128
128
  "@elliemae/em-ssf-guest": "^1.11.2",
129
- "@elliemae/pui-diagnostics": "^2.7.4",
129
+ "@elliemae/pui-diagnostics": "^2.7.5",
130
130
  "@elliemae/pui-micro-frontend-base": "^1.14.0",
131
- "@elliemae/pui-scripting-object": "^1.12.0",
131
+ "@elliemae/pui-scripting-object": "^1.16.7",
132
132
  "@elliemae/pui-theme": "^2.6.0",
133
- "@elliemae/pui-user-monitoring": "^1.16.0"
133
+ "@elliemae/pui-user-monitoring": "^1.18.0"
134
134
  },
135
135
  "devDependencies": {
136
- "@elliemae/app-react-dependencies": "~4.1.0",
137
- "@elliemae/browserslist-config-elliemae-latest-browsers": "~1.5.0",
138
- "@elliemae/ds-basic": "~3.10.7",
139
- "@elliemae/ds-button": "~3.10.7",
140
- "@elliemae/ds-controlled-form": "~3.10.7",
141
- "@elliemae/ds-date-picker": "~3.10.7",
142
- "@elliemae/ds-date-range-picker": "~3.10.7",
143
- "@elliemae/ds-dialog": "~3.10.7",
144
- "@elliemae/ds-form": "~3.10.7",
145
- "@elliemae/ds-form-layout-blocks": "~3.10.7",
146
- "@elliemae/ds-grid": "~3.10.7",
147
- "@elliemae/ds-loading-indicator": "~3.10.7",
148
- "@elliemae/ds-modal": "~3.10.7",
149
- "@elliemae/ds-popperjs": "~3.10.7",
150
- "@elliemae/ds-toast": "~3.10.7",
136
+ "@elliemae/app-react-dependencies": "~4.2.0",
137
+ "@elliemae/browserslist-config-elliemae-latest-browsers": "~1.6.0",
138
+ "@elliemae/ds-basic": "~3.11.0",
139
+ "@elliemae/ds-button": "~3.11.0",
140
+ "@elliemae/ds-controlled-form": "~3.11.0",
141
+ "@elliemae/ds-date-picker": "~3.11.0",
142
+ "@elliemae/ds-date-range-picker": "~3.11.0",
143
+ "@elliemae/ds-dialog": "~3.11.0",
144
+ "@elliemae/ds-form": "~3.11.0",
145
+ "@elliemae/ds-form-layout-blocks": "~3.11.0",
146
+ "@elliemae/ds-grid": "~3.11.0",
147
+ "@elliemae/ds-loading-indicator": "~3.11.0",
148
+ "@elliemae/ds-modal": "~3.11.0",
149
+ "@elliemae/ds-popperjs": "~3.11.0",
150
+ "@elliemae/ds-toast": "~3.11.0",
151
151
  "@elliemae/em-ssf-guest": "~1.11.2",
152
- "@elliemae/pui-cli": "~7.12.1",
153
- "@elliemae/pui-diagnostics": "~2.7.4",
152
+ "@elliemae/pui-cli": "~7.18.0",
153
+ "@elliemae/pui-diagnostics": "~2.7.5",
154
154
  "@elliemae/pui-doc-gen": "~1.3.0",
155
- "@elliemae/pui-e2e-test-sdk": "~7.5.0",
155
+ "@elliemae/pui-e2e-test-sdk": "~7.7.0",
156
156
  "@elliemae/pui-micro-frontend-base": "~1.14.0",
157
- "@elliemae/pui-scripting-object": "~1.12.0",
157
+ "@elliemae/pui-scripting-object": "~1.16.7",
158
158
  "@elliemae/pui-theme": "~2.6.0",
159
- "@elliemae/pui-user-monitoring": "~1.16.0"
159
+ "@elliemae/pui-user-monitoring": "~1.18.1"
160
160
  }
161
161
  }