@elliemae/pui-app-sdk 4.2.6 → 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.
|
|
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
|
}
|
|
@@ -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 {
|
|
@@ -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.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"
|
|
@@ -70,6 +71,10 @@
|
|
|
70
71
|
"scripts": {
|
|
71
72
|
"build": "pui-cli pack -p -t node",
|
|
72
73
|
"build:dev": "pui-cli pack -t node",
|
|
74
|
+
"docs:start": "docusaurus start",
|
|
75
|
+
"docs:build": "docusaurus build --out-dir build/docs",
|
|
76
|
+
"docs:version": "docusaurus docs:version",
|
|
77
|
+
"docs:serve": "docusaurus serve",
|
|
73
78
|
"e2e:test:functional": "cross-env CI=true e2e-test-sdk run --targets desktop mobile --suite functional",
|
|
74
79
|
"e2e:test:visual": "cross-env CI=true e2e-test-sdk run --targets desktop mobile --suite visual",
|
|
75
80
|
"e2e:test": "e2e-test-sdk run",
|
|
@@ -122,7 +127,7 @@
|
|
|
122
127
|
"@elliemae/ds-toast": "^3.9.0",
|
|
123
128
|
"@elliemae/em-ssf-guest": "^1.11.2",
|
|
124
129
|
"@elliemae/pui-diagnostics": "^2.7.4",
|
|
125
|
-
"@elliemae/pui-micro-frontend-base": "^1.
|
|
130
|
+
"@elliemae/pui-micro-frontend-base": "^1.14.0",
|
|
126
131
|
"@elliemae/pui-scripting-object": "^1.7.0",
|
|
127
132
|
"@elliemae/pui-theme": "^2.6.0",
|
|
128
133
|
"@elliemae/pui-user-monitoring": "^1.16.0"
|
|
@@ -144,10 +149,11 @@
|
|
|
144
149
|
"@elliemae/ds-popperjs": "~3.9.0",
|
|
145
150
|
"@elliemae/ds-toast": "~3.9.0",
|
|
146
151
|
"@elliemae/em-ssf-guest": "~1.11.2",
|
|
147
|
-
"@elliemae/pui-cli": "~7.
|
|
152
|
+
"@elliemae/pui-cli": "~7.9.0",
|
|
148
153
|
"@elliemae/pui-diagnostics": "~2.7.4",
|
|
154
|
+
"@elliemae/pui-doc-gen": "~1.3.0",
|
|
149
155
|
"@elliemae/pui-e2e-test-sdk": "~7.5.0",
|
|
150
|
-
"@elliemae/pui-micro-frontend-base": "~1.
|
|
156
|
+
"@elliemae/pui-micro-frontend-base": "~1.14.0",
|
|
151
157
|
"@elliemae/pui-scripting-object": "~1.7.0",
|
|
152
158
|
"@elliemae/pui-theme": "~2.6.0",
|
|
153
159
|
"@elliemae/pui-user-monitoring": "~1.16.0"
|