@elliemae/pui-app-sdk 4.3.0 → 4.4.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.
@@ -43,8 +43,8 @@ const parseAppConfig = (data) => {
43
43
  (0, import_appdynamics.setAppDynamicsUserData)({ envName: activeEnv });
44
44
  (0, import_web_analytics.updateBAEventParameters)({ envName: activeEnv });
45
45
  };
46
- const loadAppConfig = (assetPath = "") => new Promise((resolve, reject) => {
47
- (0, import_http_client.getHTTPClient)().get(`${assetPath || (0, import_window.getAssetPath)()}app.config.json`).then(({ data }) => {
46
+ const loadAppConfig = (configPath = (0, import_window.getAssetPath)()) => new Promise((resolve, reject) => {
47
+ (0, import_http_client.getHTTPClient)().get(`${configPath.replace(/\/?$/, "/")}app.config.json`).then(({ data }) => {
48
48
  parseAppConfig(data);
49
49
  resolve();
50
50
  }).catch((err) => {
@@ -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
  }
@@ -14,8 +14,8 @@ const parseAppConfig = (data) => {
14
14
  setAppDynamicsUserData({ envName: activeEnv });
15
15
  updateBAEventParameters({ envName: activeEnv });
16
16
  };
17
- const loadAppConfig = (assetPath = "") => new Promise((resolve, reject) => {
18
- getHTTPClient().get(`${assetPath || getAssetPath()}app.config.json`).then(({ data }) => {
17
+ const loadAppConfig = (configPath = getAssetPath()) => new Promise((resolve, reject) => {
18
+ getHTTPClient().get(`${configPath.replace(/\/?$/, "/")}app.config.json`).then(({ data }) => {
19
19
  parseAppConfig(data);
20
20
  resolve();
21
21
  }).catch((err) => {
@@ -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 {
@@ -1 +1 @@
1
- export declare const loadAppConfig: (assetPath?: string) => Promise<void>;
1
+ export declare const loadAppConfig: (configPath?: string) => Promise<void>;
@@ -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.1",
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"
@@ -111,49 +112,49 @@
111
112
  },
112
113
  "peerDependencies": {
113
114
  "@elliemae/app-react-dependencies": "^4.0.0",
114
- "@elliemae/ds-basic": "^3.9.0",
115
- "@elliemae/ds-button": "^3.9.0",
116
- "@elliemae/ds-controlled-form": "^3.9.0",
117
- "@elliemae/ds-date-picker": "^3.9.0",
118
- "@elliemae/ds-date-range-picker": "^3.9.0",
119
- "@elliemae/ds-dialog": "^3.9.0",
120
- "@elliemae/ds-form": "^3.9.0",
121
- "@elliemae/ds-form-layout-blocks": "^3.9.0",
122
- "@elliemae/ds-grid": "^3.9.0",
123
- "@elliemae/ds-loading-indicator": "^3.9.0",
124
- "@elliemae/ds-modal": "^3.9.0",
125
- "@elliemae/ds-popperjs": "^3.9.0",
126
- "@elliemae/ds-toast": "^3.9.0",
115
+ "@elliemae/ds-basic": "^3.10.2",
116
+ "@elliemae/ds-button": "^3.10.2",
117
+ "@elliemae/ds-controlled-form": "^3.10.2",
118
+ "@elliemae/ds-date-picker": "^3.10.2",
119
+ "@elliemae/ds-date-range-picker": "^3.10.2",
120
+ "@elliemae/ds-dialog": "^3.10.2",
121
+ "@elliemae/ds-form": "^3.10.2",
122
+ "@elliemae/ds-form-layout-blocks": "^3.10.2",
123
+ "@elliemae/ds-grid": "^3.10.2",
124
+ "@elliemae/ds-loading-indicator": "^3.10.2",
125
+ "@elliemae/ds-modal": "^3.10.2",
126
+ "@elliemae/ds-popperjs": "^3.10.2",
127
+ "@elliemae/ds-toast": "^3.10.2",
127
128
  "@elliemae/em-ssf-guest": "^1.11.2",
128
129
  "@elliemae/pui-diagnostics": "^2.7.4",
129
130
  "@elliemae/pui-micro-frontend-base": "^1.14.0",
130
- "@elliemae/pui-scripting-object": "^1.7.0",
131
+ "@elliemae/pui-scripting-object": "^1.10.1",
131
132
  "@elliemae/pui-theme": "^2.6.0",
132
133
  "@elliemae/pui-user-monitoring": "^1.16.0"
133
134
  },
134
135
  "devDependencies": {
135
136
  "@elliemae/app-react-dependencies": "~4.0.0",
136
137
  "@elliemae/browserslist-config-elliemae-latest-browsers": "~1.5.0",
137
- "@elliemae/ds-basic": "~3.9.0",
138
- "@elliemae/ds-button": "~3.9.0",
139
- "@elliemae/ds-controlled-form": "~3.9.0",
140
- "@elliemae/ds-date-picker": "~3.9.0",
141
- "@elliemae/ds-date-range-picker": "~3.9.0",
142
- "@elliemae/ds-dialog": "~3.9.0",
143
- "@elliemae/ds-form": "~3.9.0",
144
- "@elliemae/ds-form-layout-blocks": "~3.9.0",
145
- "@elliemae/ds-grid": "~3.9.0",
146
- "@elliemae/ds-loading-indicator": "~3.9.0",
147
- "@elliemae/ds-modal": "~3.9.0",
148
- "@elliemae/ds-popperjs": "~3.9.0",
149
- "@elliemae/ds-toast": "~3.9.0",
138
+ "@elliemae/ds-basic": "~3.10.2",
139
+ "@elliemae/ds-button": "~3.10.2",
140
+ "@elliemae/ds-controlled-form": "~3.10.2",
141
+ "@elliemae/ds-date-picker": "~3.10.2",
142
+ "@elliemae/ds-date-range-picker": "~3.10.2",
143
+ "@elliemae/ds-dialog": "~3.10.2",
144
+ "@elliemae/ds-form": "~3.10.2",
145
+ "@elliemae/ds-form-layout-blocks": "~3.10.2",
146
+ "@elliemae/ds-grid": "~3.10.2",
147
+ "@elliemae/ds-loading-indicator": "~3.10.2",
148
+ "@elliemae/ds-modal": "~3.10.2",
149
+ "@elliemae/ds-popperjs": "~3.10.2",
150
+ "@elliemae/ds-toast": "~3.10.2",
150
151
  "@elliemae/em-ssf-guest": "~1.11.2",
151
- "@elliemae/pui-cli": "~7.8.1",
152
+ "@elliemae/pui-cli": "~7.10.3",
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",
155
156
  "@elliemae/pui-micro-frontend-base": "~1.14.0",
156
- "@elliemae/pui-scripting-object": "~1.7.0",
157
+ "@elliemae/pui-scripting-object": "~1.10.1",
157
158
  "@elliemae/pui-theme": "~2.6.0",
158
159
  "@elliemae/pui-user-monitoring": "~1.16.0"
159
160
  }