@elliemae/pui-app-sdk 3.8.0 → 3.9.2
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/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/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/modals/navigation-prompt/index.d.ts +1 -1
- package/package.json +41 -41
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
|
}));
|
|
@@ -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
|
}));
|
|
@@ -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
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/pui-app-sdk",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.9.2",
|
|
4
4
|
"description": "ICE MT UI Platform Application SDK ",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"*.css",
|
|
@@ -103,48 +103,48 @@
|
|
|
103
103
|
"indent": 4
|
|
104
104
|
},
|
|
105
105
|
"peerDependencies": {
|
|
106
|
-
"@elliemae/app-react-dependencies": "^3.
|
|
107
|
-
"@elliemae/ds-basic": "^3.
|
|
108
|
-
"@elliemae/ds-button": "^3.
|
|
109
|
-
"@elliemae/ds-controlled-form": "^3.
|
|
110
|
-
"@elliemae/ds-date-picker": "^3.
|
|
111
|
-
"@elliemae/ds-date-range-picker": "^3.
|
|
112
|
-
"@elliemae/ds-dialog": "^3.
|
|
113
|
-
"@elliemae/ds-form": "^3.
|
|
114
|
-
"@elliemae/ds-form-layout-blocks": "^3.
|
|
115
|
-
"@elliemae/ds-grid": "^3.
|
|
116
|
-
"@elliemae/ds-loading-indicator": "^3.
|
|
117
|
-
"@elliemae/ds-modal": "^3.
|
|
118
|
-
"@elliemae/ds-popperjs": "^3.
|
|
119
|
-
"@elliemae/ds-toast": "^3.
|
|
120
|
-
"@elliemae/em-ssf-guest": "^1.11.
|
|
121
|
-
"@elliemae/pui-diagnostics": "^2.7.
|
|
122
|
-
"@elliemae/pui-micro-frontend-base": "^1.
|
|
123
|
-
"@elliemae/pui-theme": "^2.
|
|
124
|
-
"@elliemae/pui-user-monitoring": "^1.15.
|
|
106
|
+
"@elliemae/app-react-dependencies": "^3.7.0",
|
|
107
|
+
"@elliemae/ds-basic": "^3.1.4",
|
|
108
|
+
"@elliemae/ds-button": "^3.1.4",
|
|
109
|
+
"@elliemae/ds-controlled-form": "^3.1.4",
|
|
110
|
+
"@elliemae/ds-date-picker": "^3.1.4",
|
|
111
|
+
"@elliemae/ds-date-range-picker": "^3.1.4",
|
|
112
|
+
"@elliemae/ds-dialog": "^3.1.4",
|
|
113
|
+
"@elliemae/ds-form": "^3.1.4",
|
|
114
|
+
"@elliemae/ds-form-layout-blocks": "^3.1.4",
|
|
115
|
+
"@elliemae/ds-grid": "^3.1.4",
|
|
116
|
+
"@elliemae/ds-loading-indicator": "^3.1.4",
|
|
117
|
+
"@elliemae/ds-modal": "^3.1.4",
|
|
118
|
+
"@elliemae/ds-popperjs": "^3.1.4",
|
|
119
|
+
"@elliemae/ds-toast": "^3.1.4",
|
|
120
|
+
"@elliemae/em-ssf-guest": "^1.11.2",
|
|
121
|
+
"@elliemae/pui-diagnostics": "^2.7.4",
|
|
122
|
+
"@elliemae/pui-micro-frontend-base": "^1.12.2",
|
|
123
|
+
"@elliemae/pui-theme": "^2.6.0",
|
|
124
|
+
"@elliemae/pui-user-monitoring": "^1.15.1"
|
|
125
125
|
},
|
|
126
126
|
"devDependencies": {
|
|
127
|
-
"@elliemae/app-react-dependencies": "~3.
|
|
127
|
+
"@elliemae/app-react-dependencies": "~3.7.0",
|
|
128
128
|
"@elliemae/browserslist-config-elliemae-latest-browsers": "~1.4.2",
|
|
129
|
-
"@elliemae/ds-basic": "~3.
|
|
130
|
-
"@elliemae/ds-button": "~3.
|
|
131
|
-
"@elliemae/ds-controlled-form": "~3.
|
|
132
|
-
"@elliemae/ds-date-picker": "~3.
|
|
133
|
-
"@elliemae/ds-date-range-picker": "~3.
|
|
134
|
-
"@elliemae/ds-dialog": "~3.
|
|
135
|
-
"@elliemae/ds-form": "~3.
|
|
136
|
-
"@elliemae/ds-form-layout-blocks": "~3.
|
|
137
|
-
"@elliemae/ds-grid": "~3.
|
|
138
|
-
"@elliemae/ds-loading-indicator": "~3.
|
|
139
|
-
"@elliemae/ds-modal": "~3.
|
|
140
|
-
"@elliemae/ds-popperjs": "~3.
|
|
141
|
-
"@elliemae/ds-toast": "~3.
|
|
142
|
-
"@elliemae/em-ssf-guest": "~1.11.
|
|
143
|
-
"@elliemae/pui-cli": "~6.
|
|
144
|
-
"@elliemae/pui-diagnostics": "~2.7.
|
|
145
|
-
"@elliemae/pui-e2e-test-sdk": "~7.3.
|
|
146
|
-
"@elliemae/pui-micro-frontend-base": "~1.
|
|
147
|
-
"@elliemae/pui-theme": "2.
|
|
148
|
-
"@elliemae/pui-user-monitoring": "~1.15.
|
|
129
|
+
"@elliemae/ds-basic": "~3.1.4",
|
|
130
|
+
"@elliemae/ds-button": "~3.1.4",
|
|
131
|
+
"@elliemae/ds-controlled-form": "~3.1.4",
|
|
132
|
+
"@elliemae/ds-date-picker": "~3.1.4",
|
|
133
|
+
"@elliemae/ds-date-range-picker": "~3.1.4",
|
|
134
|
+
"@elliemae/ds-dialog": "~3.1.4",
|
|
135
|
+
"@elliemae/ds-form": "~3.1.4",
|
|
136
|
+
"@elliemae/ds-form-layout-blocks": "~3.1.4",
|
|
137
|
+
"@elliemae/ds-grid": "~3.1.4",
|
|
138
|
+
"@elliemae/ds-loading-indicator": "~3.1.4",
|
|
139
|
+
"@elliemae/ds-modal": "~3.1.4",
|
|
140
|
+
"@elliemae/ds-popperjs": "~3.1.4",
|
|
141
|
+
"@elliemae/ds-toast": "~3.1.4",
|
|
142
|
+
"@elliemae/em-ssf-guest": "~1.11.2",
|
|
143
|
+
"@elliemae/pui-cli": "~6.19.0",
|
|
144
|
+
"@elliemae/pui-diagnostics": "~2.7.4",
|
|
145
|
+
"@elliemae/pui-e2e-test-sdk": "~7.3.4",
|
|
146
|
+
"@elliemae/pui-micro-frontend-base": "~1.12.2",
|
|
147
|
+
"@elliemae/pui-theme": "2.6.0",
|
|
148
|
+
"@elliemae/pui-user-monitoring": "~1.15.1"
|
|
149
149
|
}
|
|
150
150
|
}
|