@elliemae/pui-app-sdk 3.9.0 → 3.9.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/index.js +2 -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/modals/navigation-prompt/index.js +1 -1
- package/dist/esm/index.js +2 -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/modals/navigation-prompt/index.js +1 -1
- package/dist/types/index.d.ts +1 -0
- 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 +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,
|
|
@@ -160,6 +161,7 @@ var import_helpers2 = require("./api/helpers.js");
|
|
|
160
161
|
var import_users = require("./api/users/index.js");
|
|
161
162
|
var import_decorator = require("./view/storybook/decorator.js");
|
|
162
163
|
var import_error_toast = require("./view/error-toast/index.js");
|
|
164
|
+
var import_navigation_prompt = require("./view/modals/navigation-prompt/index.js");
|
|
163
165
|
var import_form = require("./view/form/index.js");
|
|
164
166
|
var import_connect_form = require("./view/fields/connect-form.js");
|
|
165
167
|
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(".");
|
|
@@ -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
|
@@ -67,6 +67,7 @@ import { getApiActionCreator, getSelectField } from "./api/helpers.js";
|
|
|
67
67
|
import { getUser } from "./api/users/index.js";
|
|
68
68
|
import { withAppDecorator } from "./view/storybook/decorator.js";
|
|
69
69
|
import { ErrorToast } from "./view/error-toast/index.js";
|
|
70
|
+
import { NavigationPrompt } from "./view/modals/navigation-prompt/index.js";
|
|
70
71
|
import { Form } from "./view/form/index.js";
|
|
71
72
|
import { ConnectForm } from "./view/fields/connect-form.js";
|
|
72
73
|
import { FormItemLayout } from "./view/fields/form-item-layout/index.js";
|
|
@@ -120,6 +121,7 @@ export {
|
|
|
120
121
|
MASK_TYPES,
|
|
121
122
|
MicroApp,
|
|
122
123
|
MicroIFrameApp,
|
|
124
|
+
NavigationPrompt,
|
|
123
125
|
ACTIONS as NavigationPromptActions,
|
|
124
126
|
Page,
|
|
125
127
|
Radio,
|
|
@@ -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(".");
|
|
@@ -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
|
@@ -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.9.
|
|
3
|
+
"version": "3.9.1",
|
|
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
|
}
|