@elliemae/pui-app-sdk 3.9.0 → 3.10.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.
- package/dist/cjs/index.js +3 -0
- package/dist/cjs/utils/micro-frontend/host.js +1 -1
- package/dist/cjs/utils/micro-frontend/ssfguest-adapter.js +1 -1
- package/dist/cjs/view/fields/combo-box/index.js +1 -1
- package/dist/cjs/view/fields/input-mask/index.js +17 -3
- package/dist/cjs/view/modals/navigation-prompt/index.js +1 -1
- package/dist/esm/index.js +4 -0
- package/dist/esm/utils/micro-frontend/host.js +1 -1
- package/dist/esm/utils/micro-frontend/ssfguest-adapter.js +1 -1
- package/dist/esm/view/fields/combo-box/index.js +1 -1
- package/dist/esm/view/fields/input-mask/index.js +17 -3
- package/dist/esm/view/modals/navigation-prompt/index.js +1 -1
- package/dist/types/index.d.ts +2 -1
- package/dist/types/utils/micro-frontend/host.d.ts +3 -3
- package/dist/types/utils/micro-frontend/ssfguest-adapter.d.ts +2 -2
- package/dist/types/view/fields/input-mask/index.d.ts +2 -1
- package/dist/types/view/modals/navigation-prompt/index.d.ts +1 -1
- package/package.json +3 -3
package/dist/cjs/index.js
CHANGED
|
@@ -41,6 +41,7 @@ __export(lib_exports, {
|
|
|
41
41
|
MASK_TYPES: () => import_input_mask.MASK_TYPES,
|
|
42
42
|
MicroApp: () => import_micro_app.MicroApp,
|
|
43
43
|
MicroIFrameApp: () => import_micro_iframe_app.MicroIFrameApp,
|
|
44
|
+
NavigationPrompt: () => import_navigation_prompt.NavigationPrompt,
|
|
44
45
|
NavigationPromptActions: () => import_actions2.ACTIONS,
|
|
45
46
|
Page: () => import_page.Page,
|
|
46
47
|
Radio: () => import_radio.Radio,
|
|
@@ -102,6 +103,7 @@ __export(lib_exports, {
|
|
|
102
103
|
setAppConfigValue: () => import_config.setAppConfigValue,
|
|
103
104
|
setAppDynamicsUserData: () => import_appdynamics.setAppDynamicsUserData,
|
|
104
105
|
setHostAppData: () => import_store2.setHostAppData,
|
|
106
|
+
subscribeToResetSession: () => import_session.subscribeToResetSession,
|
|
105
107
|
subscribeToSessionExpiry: () => import_session.subscribeToSessionExpiry,
|
|
106
108
|
subscribeToSessionExpiryWarning: () => import_session.subscribeToSessionExpiryWarning,
|
|
107
109
|
trackActivity: () => import_session.trackActivity,
|
|
@@ -160,6 +162,7 @@ var import_helpers2 = require("./api/helpers.js");
|
|
|
160
162
|
var import_users = require("./api/users/index.js");
|
|
161
163
|
var import_decorator = require("./view/storybook/decorator.js");
|
|
162
164
|
var import_error_toast = require("./view/error-toast/index.js");
|
|
165
|
+
var import_navigation_prompt = require("./view/modals/navigation-prompt/index.js");
|
|
163
166
|
var import_form = require("./view/form/index.js");
|
|
164
167
|
var import_connect_form = require("./view/fields/connect-form.js");
|
|
165
168
|
var import_form_item_layout = require("./view/fields/form-item-layout/index.js");
|
|
@@ -35,7 +35,7 @@ class SSFGuestAdapter {
|
|
|
35
35
|
return import_em_ssf_guest.default.getObject(name);
|
|
36
36
|
}
|
|
37
37
|
subscribe(message, func) {
|
|
38
|
-
const callback = (
|
|
38
|
+
const callback = (scriptingObj, eventData) => {
|
|
39
39
|
func(message, eventData);
|
|
40
40
|
};
|
|
41
41
|
const [objectId, eventName] = message.split(".");
|
|
@@ -73,7 +73,7 @@ const ComboBox = (_a) => {
|
|
|
73
73
|
var { field: _b2 } = _a2, _c = _b2, { onChange } = _c, props = __objRest(_c, ["onChange"]);
|
|
74
74
|
return /* @__PURE__ */ React.createElement(import_ds_form.DSComboBox, __spreadProps(__spreadValues(__spreadValues({}, rest), props), {
|
|
75
75
|
onChange: (selected) => {
|
|
76
|
-
const { value = selected } = selected;
|
|
76
|
+
const { value = selected } = selected || {};
|
|
77
77
|
onChange(value);
|
|
78
78
|
}
|
|
79
79
|
}));
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
var __create = Object.create;
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
|
+
var __defProps = Object.defineProperties;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
7
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
6
8
|
var __getProtoOf = Object.getPrototypeOf;
|
|
@@ -18,6 +20,7 @@ var __spreadValues = (a, b) => {
|
|
|
18
20
|
}
|
|
19
21
|
return a;
|
|
20
22
|
};
|
|
23
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
21
24
|
var __objRest = (source, exclude) => {
|
|
22
25
|
var target = {};
|
|
23
26
|
for (var prop in source)
|
|
@@ -58,16 +61,27 @@ const InputMask = (_a) => {
|
|
|
58
61
|
var _b = _a, {
|
|
59
62
|
name,
|
|
60
63
|
defaultValue = "",
|
|
61
|
-
rules = {}
|
|
64
|
+
rules = {},
|
|
65
|
+
onChange: changeHandler
|
|
62
66
|
} = _b, rest = __objRest(_b, [
|
|
63
67
|
"name",
|
|
64
68
|
"defaultValue",
|
|
65
|
-
"rules"
|
|
69
|
+
"rules",
|
|
70
|
+
"onChange"
|
|
66
71
|
]);
|
|
67
72
|
return /* @__PURE__ */ React.createElement(import_react_hook_form.Controller, {
|
|
68
73
|
name,
|
|
69
74
|
rules,
|
|
70
75
|
defaultValue,
|
|
71
|
-
render: (
|
|
76
|
+
render: (_a2) => {
|
|
77
|
+
var { field: _b2 } = _a2, _c = _b2, { onChange } = _c, props = __objRest(_c, ["onChange"]);
|
|
78
|
+
return /* @__PURE__ */ React.createElement(import_InputMask.DSInputMask, __spreadProps(__spreadValues(__spreadValues({}, rest), props), {
|
|
79
|
+
onChange: (e) => {
|
|
80
|
+
onChange(e);
|
|
81
|
+
if (changeHandler)
|
|
82
|
+
changeHandler(e);
|
|
83
|
+
}
|
|
84
|
+
}));
|
|
85
|
+
}
|
|
72
86
|
});
|
|
73
87
|
};
|
|
@@ -30,7 +30,7 @@ var import_ds_button = require("@elliemae/ds-button");
|
|
|
30
30
|
var import_ds_dialog = require("@elliemae/ds-dialog");
|
|
31
31
|
var import_react_redux = require("../../../data/react-redux.js");
|
|
32
32
|
var import_actions = require("../../../data/navigation-prompt/actions.js");
|
|
33
|
-
const NavigationPrompt = (0, import_react.memo)(({ open }) => {
|
|
33
|
+
const NavigationPrompt = (0, import_react.memo)(({ open = false }) => {
|
|
34
34
|
const dispatch = (0, import_react_redux.useAppDispatch)();
|
|
35
35
|
const cancelDialog = () => dispatch(import_actions.navigationPrompt.cancel());
|
|
36
36
|
const confirmDialog = () => dispatch(import_actions.navigationPrompt.confirm());
|
package/dist/esm/index.js
CHANGED
|
@@ -22,6 +22,7 @@ import { SessionTimeout } from "./view/session-timeout/index.js";
|
|
|
22
22
|
import {
|
|
23
23
|
subscribeToSessionExpiryWarning,
|
|
24
24
|
subscribeToSessionExpiry,
|
|
25
|
+
subscribeToResetSession,
|
|
25
26
|
resetUserIdleTime,
|
|
26
27
|
trackActivity
|
|
27
28
|
} from "./utils/session.js";
|
|
@@ -67,6 +68,7 @@ import { getApiActionCreator, getSelectField } from "./api/helpers.js";
|
|
|
67
68
|
import { getUser } from "./api/users/index.js";
|
|
68
69
|
import { withAppDecorator } from "./view/storybook/decorator.js";
|
|
69
70
|
import { ErrorToast } from "./view/error-toast/index.js";
|
|
71
|
+
import { NavigationPrompt } from "./view/modals/navigation-prompt/index.js";
|
|
70
72
|
import { Form } from "./view/form/index.js";
|
|
71
73
|
import { ConnectForm } from "./view/fields/connect-form.js";
|
|
72
74
|
import { FormItemLayout } from "./view/fields/form-item-layout/index.js";
|
|
@@ -120,6 +122,7 @@ export {
|
|
|
120
122
|
MASK_TYPES,
|
|
121
123
|
MicroApp,
|
|
122
124
|
MicroIFrameApp,
|
|
125
|
+
NavigationPrompt,
|
|
123
126
|
ACTIONS as NavigationPromptActions,
|
|
124
127
|
Page,
|
|
125
128
|
Radio,
|
|
@@ -181,6 +184,7 @@ export {
|
|
|
181
184
|
setAppConfigValue,
|
|
182
185
|
setAppDynamicsUserData,
|
|
183
186
|
setHostAppData,
|
|
187
|
+
subscribeToResetSession,
|
|
184
188
|
subscribeToSessionExpiry,
|
|
185
189
|
subscribeToSessionExpiryWarning,
|
|
186
190
|
trackActivity,
|
|
@@ -10,7 +10,7 @@ class SSFGuestAdapter {
|
|
|
10
10
|
return ssfGuest.getObject(name);
|
|
11
11
|
}
|
|
12
12
|
subscribe(message, func) {
|
|
13
|
-
const callback = (
|
|
13
|
+
const callback = (scriptingObj, eventData) => {
|
|
14
14
|
func(message, eventData);
|
|
15
15
|
};
|
|
16
16
|
const [objectId, eventName] = message.split(".");
|
|
@@ -52,7 +52,7 @@ const ComboBox = (_a) => {
|
|
|
52
52
|
var { field: _b2 } = _a2, _c = _b2, { onChange } = _c, props = __objRest(_c, ["onChange"]);
|
|
53
53
|
return /* @__PURE__ */ React.createElement(DSComboBox, __spreadProps(__spreadValues(__spreadValues({}, rest), props), {
|
|
54
54
|
onChange: (selected) => {
|
|
55
|
-
const { value = selected } = selected;
|
|
55
|
+
const { value = selected } = selected || {};
|
|
56
56
|
onChange(value);
|
|
57
57
|
}
|
|
58
58
|
}));
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
2
4
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
6
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
@@ -14,6 +16,7 @@ var __spreadValues = (a, b) => {
|
|
|
14
16
|
}
|
|
15
17
|
return a;
|
|
16
18
|
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
17
20
|
var __objRest = (source, exclude) => {
|
|
18
21
|
var target = {};
|
|
19
22
|
for (var prop in source)
|
|
@@ -39,17 +42,28 @@ const InputMask = (_a) => {
|
|
|
39
42
|
var _b = _a, {
|
|
40
43
|
name,
|
|
41
44
|
defaultValue = "",
|
|
42
|
-
rules = {}
|
|
45
|
+
rules = {},
|
|
46
|
+
onChange: changeHandler
|
|
43
47
|
} = _b, rest = __objRest(_b, [
|
|
44
48
|
"name",
|
|
45
49
|
"defaultValue",
|
|
46
|
-
"rules"
|
|
50
|
+
"rules",
|
|
51
|
+
"onChange"
|
|
47
52
|
]);
|
|
48
53
|
return /* @__PURE__ */ React.createElement(Controller, {
|
|
49
54
|
name,
|
|
50
55
|
rules,
|
|
51
56
|
defaultValue,
|
|
52
|
-
render: (
|
|
57
|
+
render: (_a2) => {
|
|
58
|
+
var { field: _b2 } = _a2, _c = _b2, { onChange } = _c, props = __objRest(_c, ["onChange"]);
|
|
59
|
+
return /* @__PURE__ */ React.createElement(DSInputMask, __spreadProps(__spreadValues(__spreadValues({}, rest), props), {
|
|
60
|
+
onChange: (e) => {
|
|
61
|
+
onChange(e);
|
|
62
|
+
if (changeHandler)
|
|
63
|
+
changeHandler(e);
|
|
64
|
+
}
|
|
65
|
+
}));
|
|
66
|
+
}
|
|
53
67
|
});
|
|
54
68
|
};
|
|
55
69
|
export {
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
} from "@elliemae/ds-dialog";
|
|
13
13
|
import { useAppDispatch } from "../../../data/react-redux.js";
|
|
14
14
|
import { navigationPrompt } from "../../../data/navigation-prompt/actions.js";
|
|
15
|
-
const NavigationPrompt = memo(({ open }) => {
|
|
15
|
+
const NavigationPrompt = memo(({ open = false }) => {
|
|
16
16
|
const dispatch = useAppDispatch();
|
|
17
17
|
const cancelDialog = () => dispatch(navigationPrompt.cancel());
|
|
18
18
|
const confirmDialog = () => dispatch(navigationPrompt.confirm());
|
package/dist/types/index.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export { ACTIONS as NavigationPromptActions } from './data/navigation-prompt/act
|
|
|
16
16
|
export { loadable } from './view/loadable/index.js';
|
|
17
17
|
export { WaitMessage } from './view/modals/wait-message/index.js';
|
|
18
18
|
export { SessionTimeout } from './view/session-timeout/index.js';
|
|
19
|
-
export { subscribeToSessionExpiryWarning, subscribeToSessionExpiry, resetUserIdleTime, trackActivity, } from './utils/session.js';
|
|
19
|
+
export { subscribeToSessionExpiryWarning, subscribeToSessionExpiry, subscribeToResetSession, resetUserIdleTime, trackActivity, } from './utils/session.js';
|
|
20
20
|
export { waitMessage as waitMessageAction } from './data/wait-message/actions.js';
|
|
21
21
|
export { initServiceWorker } from './utils/service-worker.js';
|
|
22
22
|
export { CMicroAppGuest } from './utils/micro-frontend/guest.js';
|
|
@@ -43,6 +43,7 @@ export { getApiActionCreator, getSelectField } from './api/helpers.js';
|
|
|
43
43
|
export { getUser as fetchUserSettings } from './api/users/index.js';
|
|
44
44
|
export { withAppDecorator } from './view/storybook/decorator.js';
|
|
45
45
|
export { ErrorToast } from './view/error-toast/index.js';
|
|
46
|
+
export { NavigationPrompt } from './view/modals/navigation-prompt/index.js';
|
|
46
47
|
export { Form } from './view/form/index.js';
|
|
47
48
|
export { ConnectForm } from './view/fields/connect-form.js';
|
|
48
49
|
export { FormItemLayout } from './view/fields/form-item-layout/index.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IMicroAppHost, ResizeEventHandler, BreakpointChangeEventHandler, SubscriptionListener, BAEvent
|
|
1
|
+
import { IMicroAppHost, ResizeEventHandler, BreakpointChangeEventHandler, SubscriptionListener, BAEvent } from '@elliemae/pui-micro-frontend-base';
|
|
2
2
|
import { History, To } from 'history';
|
|
3
3
|
import { DefaultTheme } from 'styled-components';
|
|
4
4
|
import { MicroFrontEndLogger } from './console-logger.js';
|
|
@@ -21,7 +21,7 @@ export declare class CMicroAppHost implements IMicroAppHost {
|
|
|
21
21
|
activeGuests: Record<string, unknown>;
|
|
22
22
|
private readonly onInit?;
|
|
23
23
|
private readonly onRenewSessionTimer?;
|
|
24
|
-
domainObjects: Record<string,
|
|
24
|
+
domainObjects: Record<string, any>;
|
|
25
25
|
private constructor();
|
|
26
26
|
static getInstance(params?: ConstructorParams): CMicroAppHost;
|
|
27
27
|
static isInitialized(): boolean;
|
|
@@ -51,6 +51,6 @@ export declare class CMicroAppHost implements IMicroAppHost {
|
|
|
51
51
|
onBreakpointChangeEvent(eventHandler: BreakpointChangeEventHandler): string;
|
|
52
52
|
setSystemVersion(version?: string): void;
|
|
53
53
|
sendBAEvent(this: void, data: BAEvent): void;
|
|
54
|
-
getObject<T
|
|
54
|
+
getObject<T>(name: string): Promise<T>;
|
|
55
55
|
}
|
|
56
56
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { SubscriptionListener
|
|
1
|
+
import { SubscriptionListener } from '@elliemae/pui-micro-frontend-base';
|
|
2
2
|
export declare class SSFGuestAdapter {
|
|
3
3
|
init(): Promise<boolean>;
|
|
4
|
-
getObject<T
|
|
4
|
+
getObject<T>(name: string): Promise<T>;
|
|
5
5
|
subscribe<T>(message: string, func: SubscriptionListener<T>): string | number;
|
|
6
6
|
unsubscribe(token: string, objectId: string, eventName: string): void;
|
|
7
7
|
}
|
|
@@ -6,7 +6,8 @@ export declare type InputMaskProps<TFieldValues extends FieldValues = FieldValue
|
|
|
6
6
|
defaultValue?: string;
|
|
7
7
|
rules?: Omit<RegisterOptions<TFieldValues, TName>, 'valueAsNumber' | 'valueAsDate' | 'setValueAs'>;
|
|
8
8
|
mask: <T>(value: T) => T;
|
|
9
|
+
onChange?: (e: React.BaseSyntheticEvent) => void;
|
|
9
10
|
[x: string]: any;
|
|
10
11
|
};
|
|
11
|
-
export declare const InputMask: ({ name, defaultValue, rules, ...rest }: InputMaskProps) => JSX.Element;
|
|
12
|
+
export declare const InputMask: ({ name, defaultValue, rules, onChange: changeHandler, ...rest }: InputMaskProps) => JSX.Element;
|
|
12
13
|
export { MASK_TYPES, MASK_PIPES };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/pui-app-sdk",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.10.0",
|
|
4
4
|
"description": "ICE MT UI Platform Application SDK ",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"*.css",
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
"@elliemae/ds-toast": "^3.1.4",
|
|
120
120
|
"@elliemae/em-ssf-guest": "^1.11.2",
|
|
121
121
|
"@elliemae/pui-diagnostics": "^2.7.4",
|
|
122
|
-
"@elliemae/pui-micro-frontend-base": "^1.
|
|
122
|
+
"@elliemae/pui-micro-frontend-base": "^1.12.2",
|
|
123
123
|
"@elliemae/pui-theme": "^2.6.0",
|
|
124
124
|
"@elliemae/pui-user-monitoring": "^1.15.1"
|
|
125
125
|
},
|
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
"@elliemae/pui-cli": "~6.19.0",
|
|
144
144
|
"@elliemae/pui-diagnostics": "~2.7.4",
|
|
145
145
|
"@elliemae/pui-e2e-test-sdk": "~7.3.4",
|
|
146
|
-
"@elliemae/pui-micro-frontend-base": "~1.
|
|
146
|
+
"@elliemae/pui-micro-frontend-base": "~1.12.2",
|
|
147
147
|
"@elliemae/pui-theme": "2.6.0",
|
|
148
148
|
"@elliemae/pui-user-monitoring": "~1.15.1"
|
|
149
149
|
}
|