@elliemae/pui-app-sdk 5.11.0 → 5.11.1

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 (51) hide show
  1. package/dist/cjs/index.js +2 -0
  2. package/dist/cjs/utils/micro-frontend/scripting-objects/analytics.js +34 -10
  3. package/dist/esm/index.js +2 -0
  4. package/dist/esm/utils/micro-frontend/scripting-objects/analytics.js +34 -10
  5. package/dist/types/lib/api/helpers.d.ts +1 -1
  6. package/dist/types/lib/data/listenerMiddleware.d.ts +2 -12
  7. package/dist/types/lib/data/store.d.ts +1 -6
  8. package/dist/types/lib/index.d.ts +1 -0
  9. package/dist/types/lib/utils/auth/loginParams.d.ts +1 -1
  10. package/dist/types/lib/utils/micro-frontend/host.d.ts +0 -1
  11. package/dist/types/lib/utils/micro-frontend/scripting-objects/analytics.d.ts +22 -7
  12. package/dist/types/lib/utils/storybook/preview.d.ts +1 -2
  13. package/dist/types/lib/utils/testing/index.d.ts +1 -1
  14. package/dist/types/lib/utils/testing/render-with-redux.d.ts +2 -3
  15. package/dist/types/lib/utils/testing/render-with-router-redux.d.ts +2 -3
  16. package/dist/types/lib/utils/testing/render-with-router.d.ts +2 -3
  17. package/dist/types/lib/utils/testing/render-with-state-addons.d.ts +0 -1
  18. package/dist/types/lib/utils/web-storage.d.ts +1 -1
  19. package/dist/types/lib/view/app-root/hosted-app.d.ts +0 -1
  20. package/dist/types/lib/view/app-root/index.d.ts +0 -1
  21. package/dist/types/lib/view/app-root/stand-alone-app.d.ts +0 -1
  22. package/dist/types/lib/view/app-router.d.ts +0 -1
  23. package/dist/types/lib/view/error-toast/index.d.ts +0 -1
  24. package/dist/types/lib/view/fields/connect-form.d.ts +0 -1
  25. package/dist/types/lib/view/fields/form-item-layout/index.d.ts +0 -1
  26. package/dist/types/lib/view/fields/input-mask/index.d.ts +0 -2
  27. package/dist/types/lib/view/fields/input-text/index.stories.d.ts +1 -1
  28. package/dist/types/lib/view/fields/masked-input-text/with-money-mask.stories.d.ts +1 -1
  29. package/dist/types/lib/view/fields/masked-input-text/with-percentage-mask.stories.d.ts +1 -1
  30. package/dist/types/lib/view/fields/toggle/index.stories.d.ts +1 -1
  31. package/dist/types/lib/view/form/index.d.ts +0 -1
  32. package/dist/types/lib/view/form/personal-info-section.d.ts +0 -1
  33. package/dist/types/lib/view/form/submit-button/index.d.ts +0 -1
  34. package/dist/types/lib/view/loadable/index.d.ts +1 -1
  35. package/dist/types/lib/view/login/index.d.ts +0 -1
  36. package/dist/types/lib/view/micro-app/index.d.ts +0 -1
  37. package/dist/types/lib/view/micro-iframe-app/app.d.ts +0 -1
  38. package/dist/types/lib/view/micro-iframe-app/iframe/index.d.ts +0 -1
  39. package/dist/types/lib/view/micro-iframe-app/index.d.ts +0 -1
  40. package/dist/types/lib/view/modals/error/index.d.ts +0 -1
  41. package/dist/types/lib/view/modals/navigation-prompt/index.d.ts +0 -1
  42. package/dist/types/lib/view/modals/session-expiry/index.d.ts +0 -1
  43. package/dist/types/lib/view/page.d.ts +0 -1
  44. package/dist/types/lib/view/render-with-delay/index.d.ts +0 -1
  45. package/dist/types/lib/view/render-with-host-data/index.d.ts +0 -1
  46. package/dist/types/lib/view/require-auth.d.ts +0 -1
  47. package/dist/types/lib/view/storybook/decorator.d.ts +0 -1
  48. package/dist/types/lib/view/visually-hidden/index.d.ts +0 -1
  49. package/dist/types/lib/view/wait-message/index.d.ts +0 -1
  50. package/dist/types/tsconfig.tsbuildinfo +1 -1
  51. package/package.json +6 -6
package/dist/cjs/index.js CHANGED
@@ -29,6 +29,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
29
29
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
30
30
  var lib_exports = {};
31
31
  __export(lib_exports, {
32
+ Analytics: () => import_analytics2.Analytics,
32
33
  AppRoot: () => import_app_root.AppRoot,
33
34
  Autocomplete: () => import_autocomplete.Autocomplete,
34
35
  CMicroAppGuest: () => import_guest.CMicroAppGuest,
@@ -234,4 +235,5 @@ var import_guest_with_service = require("./utils/guest-with-service.js");
234
235
  var import_appdynamics = require("./analytics/appdynamics.js");
235
236
  var import_analytics = require("./analytics/index.js");
236
237
  var import_web_analytics = require("./utils/micro-frontend/scripting-objects/web-analytics.js");
238
+ var import_analytics2 = require("./utils/micro-frontend/scripting-objects/analytics.js");
237
239
  var import_redact_pii = require("./utils/redact-pii.js");
@@ -35,7 +35,14 @@ var import_em_ssf_host = __toESM(require("@elliemae/em-ssf-host"));
35
35
  var import_redact_pii = require("../../redact-pii.js");
36
36
  var import_web_analytics = require("./web-analytics.js");
37
37
  class Analytics extends import_em_ssf_host.default.ScriptingObject {
38
+ /**
39
+ * logger instance
40
+ */
38
41
  #logger;
42
+ /**
43
+ * Creates new instance of Analytics scripting object
44
+ * @param logger instance of PUI Diagnostics logger
45
+ */
39
46
  constructor(logger) {
40
47
  super("analytics");
41
48
  this.#logger = logger;
@@ -87,21 +94,38 @@ class Analytics extends import_em_ssf_host.default.ScriptingObject {
87
94
  };
88
95
  /**
89
96
  * start a performance mark
90
- * @param name name of the performance mark
91
- * @returns start performance mark
97
+ * @param markName name of the performance mark
98
+ * @param markOptions
99
+ * @returns a promise that resolves to a PerformanceMeasure object
92
100
  */
93
- perfMarkStart = (name) => {
94
- if (!name) throw new Error("name is required");
95
- return Promise.resolve(performance.mark(name));
101
+ perfMarkStart = (markName, markOptions) => {
102
+ if (!markName) throw new Error("markName is required");
103
+ return Promise.resolve(performance.mark(markName, markOptions));
96
104
  };
97
105
  /**
98
106
  * end a performance mark
99
- * @param startMark start mark
100
- * @returns promise
107
+ * @param startMarkNameorMark start mark name or start PerformanceMeasure object
108
+ * @returns a promise that resolves when the mark is ended
109
+ * @example
110
+ * ```typescript
111
+ * const startMark = await analytics.perfMarkStart('LongTask');
112
+ * // do some work
113
+ * await analytics.perfMarkEnd(startMark);
114
+ * ```
115
+ * ```typescript
116
+ * const startMark = await analytics.perfMarkStart('LongTask');
117
+ * // do some work
118
+ * await analytics.perfMarkEnd('LongTask');
119
+ * ```
101
120
  */
102
- perfMarkEnd = (startMark) => {
103
- if (!startMark) throw new Error("startMark is required");
104
- performance.measure(startMark.name, { start: startMark.startTime });
121
+ perfMarkEnd = (startMarkNameorMark) => {
122
+ if (!startMarkNameorMark) throw new Error("startMark is required");
123
+ if (typeof startMarkNameorMark === "string")
124
+ performance.measure(startMarkNameorMark, { start: startMarkNameorMark });
125
+ else
126
+ performance.measure(startMarkNameorMark.name, {
127
+ start: startMarkNameorMark.startTime
128
+ });
105
129
  return Promise.resolve();
106
130
  };
107
131
  }
package/dist/esm/index.js CHANGED
@@ -132,8 +132,10 @@ import { RegisterService } from "./utils/guest-with-service.js";
132
132
  import { setAppDynamicsUserData } from "./analytics/appdynamics.js";
133
133
  import { sendBAEvent } from "./analytics/index.js";
134
134
  import { updateBAEventParameters } from "./utils/micro-frontend/scripting-objects/web-analytics.js";
135
+ import { Analytics } from "./utils/micro-frontend/scripting-objects/analytics.js";
135
136
  import { redactPii } from "./utils/redact-pii.js";
136
137
  export {
138
+ Analytics,
137
139
  AppRoot,
138
140
  Autocomplete,
139
141
  CMicroAppGuest,
@@ -2,7 +2,14 @@ import ssfHost from "@elliemae/em-ssf-host";
2
2
  import { redactPii } from "../../redact-pii.js";
3
3
  import { getBAEventParameters } from "./web-analytics.js";
4
4
  class Analytics extends ssfHost.ScriptingObject {
5
+ /**
6
+ * logger instance
7
+ */
5
8
  #logger;
9
+ /**
10
+ * Creates new instance of Analytics scripting object
11
+ * @param logger instance of PUI Diagnostics logger
12
+ */
6
13
  constructor(logger) {
7
14
  super("analytics");
8
15
  this.#logger = logger;
@@ -54,21 +61,38 @@ class Analytics extends ssfHost.ScriptingObject {
54
61
  };
55
62
  /**
56
63
  * start a performance mark
57
- * @param name name of the performance mark
58
- * @returns start performance mark
64
+ * @param markName name of the performance mark
65
+ * @param markOptions
66
+ * @returns a promise that resolves to a PerformanceMeasure object
59
67
  */
60
- perfMarkStart = (name) => {
61
- if (!name) throw new Error("name is required");
62
- return Promise.resolve(performance.mark(name));
68
+ perfMarkStart = (markName, markOptions) => {
69
+ if (!markName) throw new Error("markName is required");
70
+ return Promise.resolve(performance.mark(markName, markOptions));
63
71
  };
64
72
  /**
65
73
  * end a performance mark
66
- * @param startMark start mark
67
- * @returns promise
74
+ * @param startMarkNameorMark start mark name or start PerformanceMeasure object
75
+ * @returns a promise that resolves when the mark is ended
76
+ * @example
77
+ * ```typescript
78
+ * const startMark = await analytics.perfMarkStart('LongTask');
79
+ * // do some work
80
+ * await analytics.perfMarkEnd(startMark);
81
+ * ```
82
+ * ```typescript
83
+ * const startMark = await analytics.perfMarkStart('LongTask');
84
+ * // do some work
85
+ * await analytics.perfMarkEnd('LongTask');
86
+ * ```
68
87
  */
69
- perfMarkEnd = (startMark) => {
70
- if (!startMark) throw new Error("startMark is required");
71
- performance.measure(startMark.name, { start: startMark.startTime });
88
+ perfMarkEnd = (startMarkNameorMark) => {
89
+ if (!startMarkNameorMark) throw new Error("startMark is required");
90
+ if (typeof startMarkNameorMark === "string")
91
+ performance.measure(startMarkNameorMark, { start: startMarkNameorMark });
92
+ else
93
+ performance.measure(startMarkNameorMark.name, {
94
+ start: startMarkNameorMark.startTime
95
+ });
72
96
  return Promise.resolve();
73
97
  };
74
98
  }
@@ -75,4 +75,4 @@ export declare const getApiActionCreator: (api: string) => (operation: string) =
75
75
  * @param {string} stateName the redux store's state name of the state you want to access.
76
76
  * @returns {Function} A *selectField* function that returns a selector function to be used inside a *useSelector* hook or a *select* side effect
77
77
  */
78
- export declare const getSelectField: (stateName: string) => (fieldName: string | string[] | undefined, defaultValue: unknown | Array<unknown>) => (state?: {}, stateValue?: unknown) => Array<unknown> | unknown;
78
+ export declare const getSelectField: (stateName: string) => (fieldName: (string | Array<string>) | undefined, defaultValue: unknown | Array<unknown>) => (state?: {}, stateValue?: unknown) => Array<unknown> | unknown;
@@ -3,16 +3,6 @@ import type { RootState, AppDispatch } from './types.js';
3
3
  export declare const listenerMiddleware: import("@reduxjs/toolkit").ListenerMiddlewareInstance<unknown, import("@reduxjs/toolkit").ThunkDispatch<unknown, unknown, import("redux").AnyAction>, unknown>;
4
4
  export type AppStartListening = TypedStartListening<RootState, AppDispatch>;
5
5
  export declare const startSideEffect: AppStartListening;
6
- export declare const createSideEffect: TypedAddListener<import("redux").CombinedState<{
7
- waitMessage: import("./wait-message/reducer.js").WaitMessageState;
8
- error: import("./error/index.js").ErrorState;
9
- breakpoint: import("./breakpoint/index.js").BreakpointState;
10
- liveMessage: import("./live-message/index.js").LiveMessageState;
11
- }>, AppDispatch>;
12
- export declare const removeSideEffect: TypedRemoveListener<import("redux").CombinedState<{
13
- waitMessage: import("./wait-message/reducer.js").WaitMessageState;
14
- error: import("./error/index.js").ErrorState;
15
- breakpoint: import("./breakpoint/index.js").BreakpointState;
16
- liveMessage: import("./live-message/index.js").LiveMessageState;
17
- }>, AppDispatch>;
6
+ export declare const createSideEffect: TypedAddListener<RootState, AppDispatch>;
7
+ export declare const removeSideEffect: TypedRemoveListener<RootState, AppDispatch>;
18
8
  export declare const clearSideEffects: () => void;
@@ -19,12 +19,7 @@ export declare const getStore: () => unknown;
19
19
  type MiddlewareConfig = {
20
20
  thunk?: boolean;
21
21
  };
22
- export declare const createAppStore: (initialState: import("redux").CombinedState<{
23
- waitMessage: import("./wait-message/reducer.js").WaitMessageState;
24
- error: import("./error/index.js").ErrorState;
25
- breakpoint: import("./breakpoint/index.js").BreakpointState;
26
- liveMessage: import("./live-message/index.js").LiveMessageState;
27
- }> | undefined, history: History, middlewareConfig?: MiddlewareConfig, injectedReducers?: InjectedReducers) => import("@reduxjs/toolkit/dist/configureStore.js").ToolkitStore<import("redux").EmptyObject & {
22
+ export declare const createAppStore: (initialState: RootState | undefined, history: History, middlewareConfig?: MiddlewareConfig, injectedReducers?: InjectedReducers) => import("@reduxjs/toolkit/dist/configureStore.js").ToolkitStore<import("redux").EmptyObject & {
28
23
  waitMessage: import("./wait-message/reducer.js").WaitMessageState;
29
24
  error: import("./error/index.js").ErrorState;
30
25
  breakpoint: import("./breakpoint/index.js").BreakpointState;
@@ -86,6 +86,7 @@ export { RegisterService } from './utils/guest-with-service.js';
86
86
  export { setAppDynamicsUserData } from './analytics/appdynamics.js';
87
87
  export { sendBAEvent } from './analytics/index.js';
88
88
  export { updateBAEventParameters } from './utils/micro-frontend/scripting-objects/web-analytics.js';
89
+ export { Analytics } from './utils/micro-frontend/scripting-objects/analytics.js';
89
90
  export { redactPii } from './utils/redact-pii.js';
90
91
  export type { EMUI } from './utils/window.js';
91
92
  export type { Await } from './utils/await.js';
@@ -4,7 +4,7 @@ type LoginParams = {
4
4
  responseType: string;
5
5
  redirectUri: string;
6
6
  };
7
- export declare const setLoginParams: (params: Omit<LoginParams, 'redirectUri'> & {
7
+ export declare const setLoginParams: (params: Omit<LoginParams, "redirectUri"> & {
8
8
  redirectUri?: string;
9
9
  }) => void;
10
10
  export declare const getLoginParams: () => LoginParams;
@@ -1,4 +1,3 @@
1
- /// <reference types="lib/typings/elliemae.js" />
2
1
  import { History, To } from 'history';
3
2
  import { DefaultTheme } from 'styled-components';
4
3
  import { IMicroAppHost, ResizeEventHandler, BreakpointChangeEventHandler, SubscriptionListener } from '@elliemae/pui-micro-frontend-base';
@@ -1,4 +1,3 @@
1
- /// <reference types="lib/typings/elliemae.js" />
2
1
  import ssfHost from '@elliemae/em-ssf-host';
3
2
  import { IAnalytics, BAEvent } from '@elliemae/pui-scripting-object';
4
3
  import { MicroFrontEndLogger } from '../../types.js';
@@ -7,6 +6,10 @@ import { MicroFrontEndLogger } from '../../types.js';
7
6
  */
8
7
  export declare class Analytics extends ssfHost.ScriptingObject implements IAnalytics {
9
8
  #private;
9
+ /**
10
+ * Creates new instance of Analytics scripting object
11
+ * @param logger instance of PUI Diagnostics logger
12
+ */
10
13
  constructor(logger: MicroFrontEndLogger);
11
14
  /**
12
15
  * send business analytics event
@@ -16,14 +19,26 @@ export declare class Analytics extends ssfHost.ScriptingObject implements IAnaly
16
19
  sendBAEvent: (event: BAEvent) => Promise<void>;
17
20
  /**
18
21
  * start a performance mark
19
- * @param name name of the performance mark
20
- * @returns start performance mark
22
+ * @param markName name of the performance mark
23
+ * @param markOptions
24
+ * @returns a promise that resolves to a PerformanceMeasure object
21
25
  */
22
- perfMarkStart: (name: string) => Promise<PerformanceMark>;
26
+ perfMarkStart: (markName: string, markOptions?: PerformanceMarkOptions) => Promise<PerformanceMark>;
23
27
  /**
24
28
  * end a performance mark
25
- * @param startMark start mark
26
- * @returns promise
29
+ * @param startMarkNameorMark start mark name or start PerformanceMeasure object
30
+ * @returns a promise that resolves when the mark is ended
31
+ * @example
32
+ * ```typescript
33
+ * const startMark = await analytics.perfMarkStart('LongTask');
34
+ * // do some work
35
+ * await analytics.perfMarkEnd(startMark);
36
+ * ```
37
+ * ```typescript
38
+ * const startMark = await analytics.perfMarkStart('LongTask');
39
+ * // do some work
40
+ * await analytics.perfMarkEnd('LongTask');
41
+ * ```
27
42
  */
28
- perfMarkEnd: (startMark: PerformanceMeasure) => Promise<void>;
43
+ perfMarkEnd: (startMarkNameorMark: string | PerformanceMeasure) => Promise<void>;
29
44
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './preview.css';
3
2
  export declare const getParameters: (storyBookTheme: {
4
3
  [x: string]: any;
@@ -27,5 +26,5 @@ export declare const getParameters: (storyBookTheme: {
27
26
  hideEmpty: boolean;
28
27
  };
29
28
  };
30
- export declare const decorators: ((story: () => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) => import("react/jsx-runtime.js").JSX.Element)[];
29
+ export declare const decorators: ((story: () => React.ReactElement) => import("react/jsx-runtime.js").JSX.Element)[];
31
30
  export declare const loaders: (() => Promise<void>)[];
@@ -1,4 +1,4 @@
1
1
  import { RenderOptions } from '@testing-library/react';
2
- declare const customRender: (ui: React.ReactElement, options?: Omit<RenderOptions, 'queries'>) => import("@testing-library/react").RenderResult<typeof import("@testing-library/dom/types/queries.js"), HTMLElement, HTMLElement>;
2
+ declare const customRender: (ui: React.ReactElement, options?: Omit<RenderOptions, "queries">) => import("@testing-library/react").RenderResult<typeof import("@testing-library/dom/types/queries.js"), HTMLElement, HTMLElement>;
3
3
  export * from '@testing-library/react';
4
4
  export { customRender as render };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { AppStore, RootState } from '../../data/store.js';
3
2
  interface Args {
4
3
  initialState: RootState;
@@ -24,8 +23,8 @@ export declare const renderWithRedux: (ui: React.ReactElement, { initialState, s
24
23
  }>, import("redux").AnyAction>, ...(import("redux-saga").SagaMiddleware<object> | import("redux").Middleware<any, any, import("redux").Dispatch<import("redux").AnyAction>>)[]]>>;
25
24
  container: HTMLElement;
26
25
  baseElement: HTMLElement;
27
- debug: (baseElement?: Element | DocumentFragment | (Element | DocumentFragment)[] | undefined, maxLength?: number | undefined, options?: import("pretty-format").PrettyFormatOptions | undefined) => void;
28
- rerender: (ui: import("react").ReactNode) => void;
26
+ debug: (baseElement?: Element | DocumentFragment | Array<Element | DocumentFragment>, maxLength?: number, options?: import("pretty-format").OptionsReceived) => void;
27
+ rerender: (ui: React.ReactNode) => void;
29
28
  unmount: () => void;
30
29
  asFragment: () => DocumentFragment;
31
30
  getByLabelText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { History } from 'history';
3
2
  import { AppStore, RootState } from '../../data/store.js';
4
3
  interface Args {
@@ -27,8 +26,8 @@ export declare const renderWithRouterRedux: (ui: React.ReactElement, { route, hi
27
26
  }>, import("redux").AnyAction>, ...(import("redux-saga").SagaMiddleware<object> | import("redux").Middleware<any, any, import("redux").Dispatch<import("redux").AnyAction>>)[]]>>;
28
27
  container: HTMLElement;
29
28
  baseElement: HTMLElement;
30
- debug: (baseElement?: Element | DocumentFragment | (Element | DocumentFragment)[] | undefined, maxLength?: number | undefined, options?: import("pretty-format").PrettyFormatOptions | undefined) => void;
31
- rerender: (ui: import("react").ReactNode) => void;
29
+ debug: (baseElement?: Element | DocumentFragment | Array<Element | DocumentFragment>, maxLength?: number, options?: import("pretty-format").OptionsReceived) => void;
30
+ rerender: (ui: React.ReactNode) => void;
32
31
  unmount: () => void;
33
32
  asFragment: () => DocumentFragment;
34
33
  getByLabelText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { History } from 'history';
3
2
  interface Args {
4
3
  route: string;
@@ -8,8 +7,8 @@ export declare const renderWithRouter: (ui: React.ReactElement, { route, history
8
7
  history: History;
9
8
  container: HTMLElement;
10
9
  baseElement: HTMLElement;
11
- debug: (baseElement?: Element | DocumentFragment | (Element | DocumentFragment)[] | undefined, maxLength?: number | undefined, options?: import("pretty-format").PrettyFormatOptions | undefined) => void;
12
- rerender: (ui: import("react").ReactNode) => void;
10
+ debug: (baseElement?: Element | DocumentFragment | Array<Element | DocumentFragment>, maxLength?: number, options?: import("pretty-format").OptionsReceived) => void;
11
+ rerender: (ui: React.ReactNode) => void;
13
12
  unmount: () => void;
14
13
  asFragment: () => DocumentFragment;
15
14
  getByLabelText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Theme } from '@elliemae/pui-theme';
3
2
  import { Saga } from 'redux-saga';
4
3
  import { Reducer } from 'redux';
@@ -1,6 +1,6 @@
1
1
  export declare const persistentStorage: {
2
2
  get: <T>(key: string) => Promise<T | null>;
3
- set: <T_1>(key: string, value: T_1) => Promise<void>;
3
+ set: <T>(key: string, value: T) => Promise<void>;
4
4
  };
5
5
  export declare const listenStorageEvents: () => void;
6
6
  export declare const removeStorageEvents: () => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  type HostedAppProps = {
3
2
  WaitMessage: React.ReactNode;
4
3
  children: React.ReactNode;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { History } from 'history';
3
2
  import { Theme } from '@elliemae/pui-theme';
4
3
  import { AppStore } from '../../data/store.js';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  type StandAloneAppProps = {
3
2
  manageSession: boolean;
4
3
  WaitMessage: React.ReactNode;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { History } from 'history';
3
2
  interface AppRouterProps {
4
3
  history: History;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface ErrorToastProps {
3
2
  [x: string]: unknown;
4
3
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { UseFormReturn, FieldValues } from 'react-hook-form';
3
2
  export type ConnectFormProps = {
4
3
  children: <TFieldValues extends FieldValues>(methods: UseFormReturn<TFieldValues>) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export type FormItemLayoutProps = {
3
2
  name: string;
4
3
  floatingLabel?: boolean;
@@ -1,5 +1,3 @@
1
- /// <reference types="react" />
2
- /// <reference types="lib/typings/elliemae" />
3
1
  import { MASK_TYPES, MASK_PIPES } from '@elliemae/ds-form';
4
2
  import { RegisterOptions, FieldValues, FieldPath } from 'react-hook-form';
5
3
  export type InputMaskProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> = {
@@ -3,7 +3,7 @@ declare const _default: Meta;
3
3
  export default _default;
4
4
  export declare const Basic: Story<{
5
5
  name: string;
6
- defaultValue?: string | undefined;
6
+ defaultValue?: string;
7
7
  rules?: Omit<import("react-hook-form").RegisterOptions<import("react-hook-form").FieldValues, string>, "setValueAs" | "valueAsNumber" | "valueAsDate"> | undefined;
8
8
  } & import("@elliemae/ds-controlled-form").DSInputTextT.Props & {
9
9
  labelText: string;
@@ -3,7 +3,7 @@ declare const _default: Meta;
3
3
  export default _default;
4
4
  export declare const WithMoneyMask: Story<{
5
5
  name: string;
6
- defaultValue?: string | undefined;
6
+ defaultValue?: string;
7
7
  rules?: Omit<import("react-hook-form").RegisterOptions<import("react-hook-form").FieldValues, string>, "setValueAs" | "valueAsNumber" | "valueAsDate"> | undefined;
8
8
  } & import("@elliemae/ds-controlled-form").DSInputTextT.Props & {
9
9
  labelText: string;
@@ -3,7 +3,7 @@ declare const _default: Meta;
3
3
  export default _default;
4
4
  export declare const WithPercentageMask: Story<{
5
5
  name: string;
6
- defaultValue?: string | undefined;
6
+ defaultValue?: string;
7
7
  rules?: Omit<import("react-hook-form").RegisterOptions<import("react-hook-form").FieldValues, string>, "setValueAs" | "valueAsNumber" | "valueAsDate"> | undefined;
8
8
  } & import("@elliemae/ds-controlled-form").DSInputTextT.Props & {
9
9
  labelText: string;
@@ -3,7 +3,7 @@ declare const _default: Meta;
3
3
  export default _default;
4
4
  export declare const Basic: Story<{
5
5
  name: string;
6
- defaultValue?: boolean | undefined;
6
+ defaultValue?: boolean;
7
7
  rules?: Omit<import("react-hook-form").RegisterOptions<import("react-hook-form").FieldValues, string>, "setValueAs" | "valueAsNumber" | "valueAsDate"> | undefined;
8
8
  } & Omit<import("@elliemae/ds-controlled-form").DSControlledToggleT.Props, "defaultValue" | "onChange" | "selectedValues"> & {
9
9
  label: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { UseFormProps, FieldValues, SubmitHandler, FormProviderProps } from 'react-hook-form';
3
2
  export type FormProps<TFieldValues extends FieldValues, TContext extends object = object> = {
4
3
  classname?: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const FirstName: () => JSX.Element;
3
2
  export declare const DOB: () => import("react/jsx-runtime.js").JSX.Element;
4
3
  export declare const State: () => import("react/jsx-runtime.js").JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { UseFormReturn, UseFormProps } from 'react-hook-form';
3
2
  export type CustomFormProviderProps = UseFormReturn & {
4
3
  formProps: UseFormProps;
@@ -1,4 +1,4 @@
1
1
  import { SuspenseProps, ComponentType } from 'react';
2
2
  export declare const loadable: <T extends ComponentType<any>>(importFunc: () => Promise<{
3
3
  default: T;
4
- }>, fallback?: SuspenseProps['fallback']) => (props: any) => import("react/jsx-runtime.js").JSX.Element;
4
+ }>, fallback?: SuspenseProps["fallback"]) => (props: any) => import("react/jsx-runtime.js").JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface LoginParams {
3
2
  clientId: string;
4
3
  scope: string;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { MicroAppProps } from './types.js';
3
2
  export declare const MicroApp: import("react").NamedExoticComponent<MicroAppProps>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { OnUnloadCompleteFn } from '../micro-app/use-app-will-render.js';
3
2
  import { MicroIFrameAppProps } from './types.js';
4
3
  type AppProps = MicroIFrameAppProps & {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  type IFrameProps = {
3
2
  id: string;
4
3
  name?: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { MicroIFrameAppProps } from './types.js';
3
2
  type Props = MicroIFrameAppProps & {
4
3
  entityId?: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface ErrorProps {
3
2
  open: boolean;
4
3
  name: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface NavigationPromptProps {
3
2
  open?: boolean;
4
3
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface SessionExpiryProps {
3
2
  open: boolean;
4
3
  warningNotifiedAt?: number;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const onPageView: (pageTitle: string) => void;
3
2
  interface PageProps {
4
3
  pageTitle: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface RenderWithDelayProps {
3
2
  render: () => React.ReactNode;
4
3
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface DataProps {
3
2
  ComponentToRender: React.ComponentType;
4
3
  guestAppId: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface RequireAuthProps {
3
2
  clientId?: string;
4
3
  scope?: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Theme } from '@elliemae/pui-theme';
3
2
  import { AppStore } from '../../data/store.js';
4
3
  type StoreFn = () => React.ReactElement;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare const VisuallyHidden: import("react").ForwardRefExoticComponent<Omit<import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DSCircularIndeterminateIndicator } from '@elliemae/ds-circular-progress-indicator';
3
2
  type CircularIndicatorProps = React.ComponentProps<typeof DSCircularIndeterminateIndicator>;
4
3
  export interface WaitMessageProps {