@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.
- package/dist/cjs/utils/app-config/index.js +2 -2
- package/dist/cjs/utils/micro-frontend/host.js +5 -5
- package/dist/esm/utils/app-config/index.js +2 -2
- package/dist/esm/utils/micro-frontend/host.js +5 -5
- package/dist/types/lib/utils/app-config/index.d.ts +1 -1
- package/dist/types/lib/utils/micro-frontend/host.d.ts +5 -1
- package/dist/types/lib/view/fields/input-mask/index.d.ts +1 -1
- package/package.json +32 -31
|
@@ -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 = (
|
|
47
|
-
(0, import_http_client.getHTTPClient)().get(`${
|
|
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.
|
|
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.
|
|
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 = (
|
|
18
|
-
getHTTPClient().get(`${
|
|
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.
|
|
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.
|
|
151
|
+
return this.scriptingObjects[name];
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
154
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const loadAppConfig: (
|
|
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
|
-
|
|
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
|
+
"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.
|
|
115
|
-
"@elliemae/ds-button": "^3.
|
|
116
|
-
"@elliemae/ds-controlled-form": "^3.
|
|
117
|
-
"@elliemae/ds-date-picker": "^3.
|
|
118
|
-
"@elliemae/ds-date-range-picker": "^3.
|
|
119
|
-
"@elliemae/ds-dialog": "^3.
|
|
120
|
-
"@elliemae/ds-form": "^3.
|
|
121
|
-
"@elliemae/ds-form-layout-blocks": "^3.
|
|
122
|
-
"@elliemae/ds-grid": "^3.
|
|
123
|
-
"@elliemae/ds-loading-indicator": "^3.
|
|
124
|
-
"@elliemae/ds-modal": "^3.
|
|
125
|
-
"@elliemae/ds-popperjs": "^3.
|
|
126
|
-
"@elliemae/ds-toast": "^3.
|
|
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.
|
|
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.
|
|
138
|
-
"@elliemae/ds-button": "~3.
|
|
139
|
-
"@elliemae/ds-controlled-form": "~3.
|
|
140
|
-
"@elliemae/ds-date-picker": "~3.
|
|
141
|
-
"@elliemae/ds-date-range-picker": "~3.
|
|
142
|
-
"@elliemae/ds-dialog": "~3.
|
|
143
|
-
"@elliemae/ds-form": "~3.
|
|
144
|
-
"@elliemae/ds-form-layout-blocks": "~3.
|
|
145
|
-
"@elliemae/ds-grid": "~3.
|
|
146
|
-
"@elliemae/ds-loading-indicator": "~3.
|
|
147
|
-
"@elliemae/ds-modal": "~3.
|
|
148
|
-
"@elliemae/ds-popperjs": "~3.
|
|
149
|
-
"@elliemae/ds-toast": "~3.
|
|
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.
|
|
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.
|
|
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
|
}
|