@elliemae/pui-app-sdk 3.7.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/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Software Development Kit / API for developing React Web applications. Implements cross cutting concerns as reusable APIs
4
4
 
5
- Build: [![Build Status](https://jenkins.dco.elmae/job/Platform%20UI/job/App%20SDK/job/build/job/master/badge/icon)](https://jenkins.dco.elmae/job/Platform%20UI/job/App%20SDK/job/build/job/master/) Deploy: [![Deploy Status](https://jenkins.dco.elmae/job/Platform%20UI/job/App%20SDK/job/deploy/badge/icon)](https://jenkins.dco.elmae/job/Platform%20UI/job/App%20SDK/job/deploy/) Test: [![Test Status](https://jenkins.dco.elmae/job/Platform%20UI/job/App%20SDK/job/test/badge/icon)](https://jenkins.dco.elmae/job/Platform%20UI/job/App%20SDK/job/test/) Infra: [![Infra Status](https://jenkins.dco.elmae/job/Platform%20UI/job/App%20SDK/job/infra/badge/icon)](https://jenkins.dco.elmae/job/Platform%20UI/job/App%20SDK/job/infra/)
5
+ Build: [![Build Status](https://jenkins.dco.elmae/buildStatus/icon?job=UIPlatform/Dev/AppSDK/build/master)](https://jenkins.dco.elmae/job/UIPlatform/job/Dev/job/AppSDK/job/build/job/master/) Deploy: [![Build Status](https://jenkins.dco.elmae/buildStatus/icon?job=UIPlatform/Dev/AppSDK/deploy)](https://jenkins.dco.elmae/job/UIPlatform/Dev/AppSDK/deploy) Test: [![Build Status](https://jenkins.dco.elmae/buildStatus/icon?job=UIPlatform/QA/AppSDK/test)](https://jenkins.dco.elmae/job/UIPlatform/QA/AppSDK/test) SecScan: [![Build Status](https://jenkins.dco.elmae/buildStatus/icon?job=UIPlatform/Dev/AppSDK/secscan)](https://jenkins.dco.elmae/job/UIPlatform/job/Dev/job/AppSDK/job/secscan/)
6
6
 
7
7
  [SonarQube Report](https://sonar.ellielabs.com/overview?id=elliemae.pui.app.sdk-master)
8
8
 
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");
@@ -156,7 +156,7 @@ class CMicroAppHost {
156
156
  sendBAEvent(data) {
157
157
  (0, import_analytics.sendBAEvent)({ data, self: true });
158
158
  }
159
- getObject(name) {
159
+ async getObject(name) {
160
160
  return this.domainObjects[name];
161
161
  }
162
162
  }
@@ -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 = (domainObject, eventData) => {
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,
@@ -141,7 +141,7 @@ class CMicroAppHost {
141
141
  sendBAEvent(data) {
142
142
  sendBAEvent({ data, self: true });
143
143
  }
144
- getObject(name) {
144
+ async getObject(name) {
145
145
  return this.domainObjects[name];
146
146
  }
147
147
  }
@@ -10,7 +10,7 @@ class SSFGuestAdapter {
10
10
  return ssfGuest.getObject(name);
11
11
  }
12
12
  subscribe(message, func) {
13
- const callback = (domainObject, eventData) => {
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());
@@ -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, IDomainObject } from '@elliemae/pui-micro-frontend-base';
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, IDomainObject>;
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 extends IDomainObject>(name: string): T;
54
+ getObject<T>(name: string): Promise<T>;
55
55
  }
56
56
  export {};
@@ -1,7 +1,7 @@
1
- import { SubscriptionListener, IDomainObject } from '@elliemae/pui-micro-frontend-base';
1
+ import { SubscriptionListener } from '@elliemae/pui-micro-frontend-base';
2
2
  export declare class SSFGuestAdapter {
3
3
  init(): Promise<boolean>;
4
- getObject<T extends IDomainObject>(name: string): Promise<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
  }
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  export interface NavigationPromptProps {
3
- open: boolean;
3
+ open?: boolean;
4
4
  }
5
5
  export declare const NavigationPrompt: import("react").NamedExoticComponent<NavigationPromptProps>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/pui-app-sdk",
3
- "version": "3.7.0",
3
+ "version": "3.9.1",
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.5.0",
107
- "@elliemae/ds-basic": "^2.4.21",
108
- "@elliemae/ds-button": "^2.4.21",
109
- "@elliemae/ds-controlled-form": "^2.4.21",
110
- "@elliemae/ds-date-picker": "^2.4.21",
111
- "@elliemae/ds-date-range-picker": "^2.4.21",
112
- "@elliemae/ds-dialog": "^2.4.21",
113
- "@elliemae/ds-form": "^2.4.21",
114
- "@elliemae/ds-form-layout-blocks": "^2.4.21",
115
- "@elliemae/ds-grid": "^2.4.21",
116
- "@elliemae/ds-loading-indicator": "^2.4.21",
117
- "@elliemae/ds-modal": "^2.4.21",
118
- "@elliemae/ds-popperjs": "^2.4.21",
119
- "@elliemae/ds-toast": "^2.4.21",
120
- "@elliemae/em-ssf-guest": "^1.11.1",
121
- "@elliemae/pui-diagnostics": "^2.7.3",
122
- "@elliemae/pui-micro-frontend-base": "^1.11.1",
123
- "@elliemae/pui-theme": "^2.4.1",
124
- "@elliemae/pui-user-monitoring": "^1.15.0"
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.5.0",
127
+ "@elliemae/app-react-dependencies": "~3.7.0",
128
128
  "@elliemae/browserslist-config-elliemae-latest-browsers": "~1.4.2",
129
- "@elliemae/ds-basic": "2.4.21",
130
- "@elliemae/ds-button": "2.4.21",
131
- "@elliemae/ds-controlled-form": "2.4.21",
132
- "@elliemae/ds-date-picker": "2.4.21",
133
- "@elliemae/ds-date-range-picker": "2.4.21",
134
- "@elliemae/ds-dialog": "2.4.21",
135
- "@elliemae/ds-form": "2.4.21",
136
- "@elliemae/ds-form-layout-blocks": "2.4.21",
137
- "@elliemae/ds-grid": "2.4.21",
138
- "@elliemae/ds-loading-indicator": "2.4.21",
139
- "@elliemae/ds-modal": "2.4.21",
140
- "@elliemae/ds-popperjs": "2.4.21",
141
- "@elliemae/ds-toast": "2.4.21",
142
- "@elliemae/em-ssf-guest": "~1.11.1",
143
- "@elliemae/pui-cli": "~6.14.2",
144
- "@elliemae/pui-diagnostics": "~2.7.3",
145
- "@elliemae/pui-e2e-test-sdk": "~7.3.3",
146
- "@elliemae/pui-micro-frontend-base": "~1.11.2",
147
- "@elliemae/pui-theme": "2.4.1",
148
- "@elliemae/pui-user-monitoring": "~1.15.0"
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
  }