@elliemae/pui-app-sdk 4.5.1 → 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.
- package/dist/types/lib/communication/http-client/index.d.ts +2 -2
- package/dist/types/lib/communication/http-client/response-interceptor.d.ts +1 -1
- package/dist/types/lib/communication/http-client/retry-axios.d.ts +2 -2
- package/dist/types/lib/data/error/index.d.ts +1 -1
- package/dist/types/lib/data/live-message/index.d.ts +1 -1
- package/dist/types/lib/data/react-redux.d.ts +1 -1
- package/dist/types/lib/data/reducers.d.ts +1 -1
- package/dist/types/lib/data/saga.d.ts +4 -4
- package/dist/types/lib/data/store.d.ts +4 -4
- package/dist/types/lib/data/wait-message/reducer.d.ts +1 -1
- package/dist/types/lib/utils/app-host-integration/react.d.ts +1 -1
- package/dist/types/lib/utils/await.d.ts +1 -1
- package/dist/types/lib/utils/micro-frontend/console-logger.d.ts +1 -1
- package/dist/types/lib/utils/micro-frontend/guest.d.ts +4 -4
- package/dist/types/lib/utils/micro-frontend/host.d.ts +3 -3
- package/dist/types/lib/utils/micro-frontend/types.d.ts +2 -2
- package/dist/types/lib/utils/session.d.ts +3 -3
- package/dist/types/lib/utils/testing/render-with-redux.d.ts +1 -1
- package/dist/types/lib/utils/testing/render-with-router-redux.d.ts +1 -1
- package/dist/types/lib/utils/types.d.ts +1 -1
- package/dist/types/lib/utils/window.d.ts +1 -1
- package/dist/types/lib/view/app-root/hosted-app.d.ts +1 -1
- package/dist/types/lib/view/app-root/index.d.ts +1 -1
- package/dist/types/lib/view/app-root/stand-alone-app.d.ts +1 -1
- package/dist/types/lib/view/fields/autocomplete/index.d.ts +2 -2
- package/dist/types/lib/view/fields/check-box/index.d.ts +1 -1
- package/dist/types/lib/view/fields/combo-box/index.d.ts +1 -1
- package/dist/types/lib/view/fields/combo-box-v3/index.d.ts +1 -1
- package/dist/types/lib/view/fields/connect-form.d.ts +1 -1
- package/dist/types/lib/view/fields/date-input/index.d.ts +1 -1
- package/dist/types/lib/view/fields/date-picker/index.d.ts +1 -1
- package/dist/types/lib/view/fields/date-range-picker/index.d.ts +1 -1
- package/dist/types/lib/view/fields/date-time-picker/index.d.ts +1 -1
- package/dist/types/lib/view/fields/form-item-layout/index.d.ts +1 -1
- package/dist/types/lib/view/fields/form-layout-block-item/index.d.ts +1 -1
- package/dist/types/lib/view/fields/input-mask/index.d.ts +1 -1
- package/dist/types/lib/view/fields/input-text/index.d.ts +1 -1
- package/dist/types/lib/view/fields/large-text-box/index.d.ts +1 -1
- package/dist/types/lib/view/fields/radio/index.d.ts +1 -1
- package/dist/types/lib/view/fields/radio-group/index.d.ts +1 -1
- package/dist/types/lib/view/fields/text-box/index.d.ts +1 -1
- package/dist/types/lib/view/fields/toggle/index.d.ts +1 -1
- package/dist/types/lib/view/fields/watch-value.d.ts +1 -1
- package/dist/types/lib/view/form/index.d.ts +2 -2
- package/dist/types/lib/view/form/submit-button/index.d.ts +2 -2
- package/dist/types/lib/view/form/usecases.stories.d.ts +1 -1
- package/dist/types/lib/view/message-to-host-app/index.d.ts +1 -1
- package/dist/types/lib/view/micro-app/resources/manifest.d.ts +1 -1
- package/dist/types/lib/view/micro-app/types.d.ts +1 -1
- package/dist/types/lib/view/micro-app/use-app-will-render.d.ts +2 -2
- package/dist/types/lib/view/micro-app/utils.d.ts +1 -1
- package/dist/types/lib/view/micro-iframe-app/app.d.ts +1 -1
- package/dist/types/lib/view/micro-iframe-app/iframe/index.d.ts +1 -1
- package/dist/types/lib/view/micro-iframe-app/index.d.ts +1 -1
- package/dist/types/lib/view/micro-iframe-app/types.d.ts +1 -1
- package/dist/types/lib/view/storybook/decorator.d.ts +1 -1
- package/package.json +38 -38
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AxiosInstance, RawAxiosRequestHeaders, HeadersDefaults } from 'axios';
|
|
2
|
-
|
|
3
|
-
|
|
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 axios, { AxiosInstance, AxiosError, AxiosRequestConfig, AxiosDefaults } from 'axios';
|
|
2
|
-
export
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
8
|
-
export
|
|
9
|
-
export
|
|
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
|
|
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
|
|
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
|
-
|
|
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").
|
|
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
|
|
42
|
+
export type AppStore = ReturnType<typeof createAppStore>;
|
|
43
43
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type Await<T> = T extends PromiseLike<infer U> ? U : T;
|
|
@@ -8,10 +8,10 @@ export interface GuestProps extends InitOptions {
|
|
|
8
8
|
history: History;
|
|
9
9
|
theme: DefaultTheme;
|
|
10
10
|
}
|
|
11
|
-
export
|
|
12
|
-
export
|
|
13
|
-
export
|
|
14
|
-
export
|
|
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
|
-
|
|
5
|
+
type HostOptions = {
|
|
6
6
|
systemVersion: string;
|
|
7
7
|
history: History;
|
|
8
8
|
theme: DefaultTheme;
|
|
9
9
|
};
|
|
10
|
-
export
|
|
11
|
-
|
|
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
|
-
|
|
2
|
+
type EnvConfig = {
|
|
3
3
|
files: Array<string>;
|
|
4
4
|
};
|
|
5
|
-
export
|
|
5
|
+
export type MicroAppConfig = {
|
|
6
6
|
id: string;
|
|
7
7
|
name: string;
|
|
8
8
|
mode?: string;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
type WARNLISTENER = {
|
|
2
2
|
(sessionExpiryWarningNotifiedAt: number | null): void;
|
|
3
3
|
};
|
|
4
|
-
|
|
4
|
+
type RESETLISTENER = {
|
|
5
5
|
(resetWarningModal: unknown): void;
|
|
6
6
|
};
|
|
7
|
-
|
|
7
|
+
type LISTENER = {
|
|
8
8
|
(): void;
|
|
9
9
|
};
|
|
10
10
|
export declare const resetUserIdleTime: (resetWarningModal?: unknown) => 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").
|
|
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").
|
|
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,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
|
|
4
|
+
export type EMUI = {
|
|
5
5
|
[key: string]: IMicroAppGuest;
|
|
6
6
|
} & {
|
|
7
7
|
_BASE_PATH: string;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
2
|
+
type AutocompleteOption = {
|
|
3
3
|
label: string;
|
|
4
4
|
type: string;
|
|
5
5
|
[x: string]: unknown;
|
|
6
6
|
};
|
|
7
|
-
export
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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,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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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,12 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { UseFormProps, FieldValues, SubmitHandler, FormProviderProps } from 'react-hook-form';
|
|
3
|
-
export
|
|
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
|
|
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
|
|
3
|
+
export type CustomFormProviderProps = UseFormReturn & {
|
|
4
4
|
formProps: UseFormProps;
|
|
5
5
|
};
|
|
6
|
-
export
|
|
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
|
-
|
|
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
|
-
|
|
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,6 +1,6 @@
|
|
|
1
1
|
import { MicroAppProps } from './types.js';
|
|
2
|
-
export
|
|
3
|
-
|
|
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,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
|
-
|
|
4
|
+
type AppProps = MicroIFrameAppProps & {
|
|
5
5
|
dispose: boolean;
|
|
6
6
|
onUnloadComplete: OnUnloadCompleteFn;
|
|
7
7
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { MicroIFrameAppProps } from './types.js';
|
|
3
|
-
|
|
3
|
+
type Props = MicroIFrameAppProps & {
|
|
4
4
|
entityId?: string;
|
|
5
5
|
};
|
|
6
6
|
export declare const MicroIFrameApp: import("react").NamedExoticComponent<Props>;
|
|
@@ -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
|
-
|
|
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.
|
|
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.
|
|
115
|
-
"@elliemae/ds-basic": "^3.
|
|
116
|
-
"@elliemae/ds-button": "^3.
|
|
117
|
-
"@elliemae/ds-controlled-form": "^3.
|
|
118
|
-
"@elliemae/ds-date-picker": "^3.
|
|
119
|
-
"@elliemae/ds-date-range-picker": "^3.
|
|
120
|
-
"@elliemae/ds-dialog": "^3.
|
|
121
|
-
"@elliemae/ds-form": "^3.
|
|
122
|
-
"@elliemae/ds-form-layout-blocks": "^3.
|
|
123
|
-
"@elliemae/ds-grid": "^3.
|
|
124
|
-
"@elliemae/ds-loading-indicator": "^3.
|
|
125
|
-
"@elliemae/ds-modal": "^3.
|
|
126
|
-
"@elliemae/ds-popperjs": "^3.
|
|
127
|
-
"@elliemae/ds-toast": "^3.
|
|
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.
|
|
129
|
+
"@elliemae/pui-diagnostics": "^2.7.5",
|
|
130
130
|
"@elliemae/pui-micro-frontend-base": "^1.14.0",
|
|
131
|
-
"@elliemae/pui-scripting-object": "^1.
|
|
131
|
+
"@elliemae/pui-scripting-object": "^1.16.7",
|
|
132
132
|
"@elliemae/pui-theme": "^2.6.0",
|
|
133
|
-
"@elliemae/pui-user-monitoring": "^1.
|
|
133
|
+
"@elliemae/pui-user-monitoring": "^1.18.0"
|
|
134
134
|
},
|
|
135
135
|
"devDependencies": {
|
|
136
|
-
"@elliemae/app-react-dependencies": "~4.
|
|
137
|
-
"@elliemae/browserslist-config-elliemae-latest-browsers": "~1.
|
|
138
|
-
"@elliemae/ds-basic": "~3.
|
|
139
|
-
"@elliemae/ds-button": "~3.
|
|
140
|
-
"@elliemae/ds-controlled-form": "~3.
|
|
141
|
-
"@elliemae/ds-date-picker": "~3.
|
|
142
|
-
"@elliemae/ds-date-range-picker": "~3.
|
|
143
|
-
"@elliemae/ds-dialog": "~3.
|
|
144
|
-
"@elliemae/ds-form": "~3.
|
|
145
|
-
"@elliemae/ds-form-layout-blocks": "~3.
|
|
146
|
-
"@elliemae/ds-grid": "~3.
|
|
147
|
-
"@elliemae/ds-loading-indicator": "~3.
|
|
148
|
-
"@elliemae/ds-modal": "~3.
|
|
149
|
-
"@elliemae/ds-popperjs": "~3.
|
|
150
|
-
"@elliemae/ds-toast": "~3.
|
|
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.
|
|
153
|
-
"@elliemae/pui-diagnostics": "~2.7.
|
|
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.
|
|
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.
|
|
157
|
+
"@elliemae/pui-scripting-object": "~1.16.7",
|
|
158
158
|
"@elliemae/pui-theme": "~2.6.0",
|
|
159
|
-
"@elliemae/pui-user-monitoring": "~1.
|
|
159
|
+
"@elliemae/pui-user-monitoring": "~1.18.1"
|
|
160
160
|
}
|
|
161
161
|
}
|