@elliemae/pui-app-sdk 4.3.0 → 4.4.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.
@@ -44,12 +44,12 @@ class CMicroAppHost {
44
44
  this.logger = params?.logger || import_console_logger.logger;
45
45
  this.onRenewSessionTimer = params?.onRenewSessionTimer;
46
46
  this.props = {
47
- systemVersion: "latest",
48
- history: import_history2.browserHistory,
49
- theme: (0, import_pui_theme.getDefaultTheme)()
47
+ systemVersion: params?.version ?? "latest",
48
+ history: params?.history ?? import_history2.browserHistory,
49
+ theme: params?.theme ?? (0, import_pui_theme.getDefaultTheme)()
50
50
  };
51
51
  this.activeGuests = {};
52
- this.domainObjects = {};
52
+ this.scriptingObjects = params?.scriptingObjects ?? {};
53
53
  this.getProps = this.getProps.bind(this);
54
54
  this.getLogger = this.getLogger.bind(this);
55
55
  this.getGuests = this.getGuests.bind(this);
@@ -164,6 +164,6 @@ class CMicroAppHost {
164
164
  (0, import_analytics.sendBAEvent)({ data, self: true });
165
165
  }
166
166
  async getObject(name) {
167
- return this.domainObjects[name];
167
+ return this.scriptingObjects[name];
168
168
  }
169
169
  }
@@ -28,12 +28,12 @@ class CMicroAppHost {
28
28
  this.logger = params?.logger || logger;
29
29
  this.onRenewSessionTimer = params?.onRenewSessionTimer;
30
30
  this.props = {
31
- systemVersion: "latest",
32
- history: browserHistory,
33
- theme: getDefaultTheme()
31
+ systemVersion: params?.version ?? "latest",
32
+ history: params?.history ?? browserHistory,
33
+ theme: params?.theme ?? getDefaultTheme()
34
34
  };
35
35
  this.activeGuests = {};
36
- this.domainObjects = {};
36
+ this.scriptingObjects = params?.scriptingObjects ?? {};
37
37
  this.getProps = this.getProps.bind(this);
38
38
  this.getLogger = this.getLogger.bind(this);
39
39
  this.getGuests = this.getGuests.bind(this);
@@ -148,7 +148,7 @@ class CMicroAppHost {
148
148
  sendBAEvent({ data, self: true });
149
149
  }
150
150
  async getObject(name) {
151
- return this.domainObjects[name];
151
+ return this.scriptingObjects[name];
152
152
  }
153
153
  }
154
154
  export {
@@ -10,6 +10,10 @@ declare type HostOptions = {
10
10
  export declare type OnInitCallback = (options: HostOptions) => void;
11
11
  declare type ConstructorParams = {
12
12
  logger?: MicroFrontEndLogger;
13
+ history?: History;
14
+ version?: string;
15
+ theme?: DefaultTheme;
16
+ scriptingObjects?: Record<string, any>;
13
17
  onRenewSessionTimer?: () => void;
14
18
  onInit?: OnInitCallback;
15
19
  };
@@ -21,7 +25,7 @@ export declare class CMicroAppHost implements IMicroAppHost {
21
25
  activeGuests: Record<string, unknown>;
22
26
  private readonly onInit?;
23
27
  private readonly onRenewSessionTimer?;
24
- domainObjects: Record<string, any>;
28
+ scriptingObjects: Record<string, any>;
25
29
  private constructor();
26
30
  static getInstance(params?: ConstructorParams): CMicroAppHost;
27
31
  static isInitialized(): boolean;
@@ -10,5 +10,5 @@ export declare type InputMaskProps<TFieldValues extends FieldValues = FieldValue
10
10
  onBlur?: (e: React.BaseSyntheticEvent) => void;
11
11
  [x: string]: any;
12
12
  };
13
- export declare const InputMask: ({ name, defaultValue, rules, onChange, onBlur, ...rest }: InputMaskProps) => JSX.Element;
13
+ export declare const InputMask: ({ name, defaultValue, rules, onChange: changeHandler, onBlur: onBlurHandler, ...rest }: InputMaskProps) => JSX.Element;
14
14
  export { MASK_TYPES, MASK_PIPES };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/pui-app-sdk",
3
- "version": "4.3.0",
3
+ "version": "4.4.0",
4
4
  "description": "ICE MT UI Platform Application SDK ",
5
5
  "sideEffects": [
6
6
  "*.css",
@@ -52,7 +52,8 @@
52
52
  },
53
53
  "files": [
54
54
  "dist",
55
- "demo"
55
+ "demo",
56
+ "build"
56
57
  ],
57
58
  "publishConfig": {
58
59
  "access": "public"
@@ -148,7 +149,7 @@
148
149
  "@elliemae/ds-popperjs": "~3.9.0",
149
150
  "@elliemae/ds-toast": "~3.9.0",
150
151
  "@elliemae/em-ssf-guest": "~1.11.2",
151
- "@elliemae/pui-cli": "~7.8.1",
152
+ "@elliemae/pui-cli": "~7.9.0",
152
153
  "@elliemae/pui-diagnostics": "~2.7.4",
153
154
  "@elliemae/pui-doc-gen": "~1.3.0",
154
155
  "@elliemae/pui-e2e-test-sdk": "~7.5.0",