@elliemae/pui-app-bridge 2.3.1 → 2.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.
Files changed (41) hide show
  1. package/dist/cjs/appBridge.js +0 -11
  2. package/dist/cjs/config/app.js +0 -4
  3. package/dist/cjs/eventManager.js +0 -5
  4. package/dist/cjs/microfeHost.js +0 -8
  5. package/dist/esm/appBridge.js +0 -11
  6. package/dist/esm/config/app.js +0 -4
  7. package/dist/esm/eventManager.js +0 -5
  8. package/dist/esm/microfeHost.js +0 -8
  9. package/dist/public/creditService/latest/creditService.checksum.js.gz +0 -0
  10. package/dist/public/frame.html +1 -1
  11. package/dist/public/guest/businessObjects.js.gz +0 -0
  12. package/dist/public/guest/util.js.gz +0 -0
  13. package/dist/public/index.html +1 -1
  14. package/dist/public/init.js.gz +0 -0
  15. package/dist/public/js/{emuiAppBridge.a90a617911b273467444.js → emuiAppBridge.da937d9d01527da3925b.js} +1 -1
  16. package/dist/public/js/emuiAppBridge.da937d9d01527da3925b.js.br +0 -0
  17. package/dist/public/js/emuiAppBridge.da937d9d01527da3925b.js.gz +0 -0
  18. package/dist/public/js/{emuiAppBridge.a90a617911b273467444.js.map → emuiAppBridge.da937d9d01527da3925b.js.map} +1 -1
  19. package/dist/public/loan-object.js.gz +0 -0
  20. package/dist/public/loanValidation/latest/loanValidation.checksum.js.gz +0 -0
  21. package/dist/public/pricingService/latest/pricingService.checksum.js.gz +0 -0
  22. package/dist/public/utils.js.gz +0 -0
  23. package/dist/types/appBridge.d.ts +0 -14
  24. package/dist/types/config/app.d.ts +0 -4
  25. package/dist/types/eventManager.d.ts +0 -3
  26. package/dist/types/microfeHost.d.ts +0 -9
  27. package/dist/types/typings/guest.d.ts +0 -4
  28. package/dist/types/typings/host.d.ts +0 -8
  29. package/dist/umd/creditService/latest/creditService.checksum.js.gz +0 -0
  30. package/dist/umd/guest/businessObjects.js.gz +0 -0
  31. package/dist/umd/guest/util.js.gz +0 -0
  32. package/dist/umd/index.js.gz +0 -0
  33. package/dist/umd/index.js.map +1 -1
  34. package/dist/umd/init.js.gz +0 -0
  35. package/dist/umd/loan-object.js.gz +0 -0
  36. package/dist/umd/loanValidation/latest/loanValidation.checksum.js.gz +0 -0
  37. package/dist/umd/pricingService/latest/pricingService.checksum.js.gz +0 -0
  38. package/dist/umd/utils.js.gz +0 -0
  39. package/package.json +5 -5
  40. package/dist/public/js/emuiAppBridge.a90a617911b273467444.js.br +0 -0
  41. package/dist/public/js/emuiAppBridge.a90a617911b273467444.js.gz +0 -0
Binary file
Binary file
@@ -10,14 +10,12 @@ import { ScriptingObjects, DispatchEventParam, ValueOf } from './typings/common.
10
10
  export type AppBridgeParams = {
11
11
  /**
12
12
  * Base url of the application config file
13
- *
14
13
  * @defaultValue document base url
15
14
  * @example https://encompass.ice.com/
16
15
  */
17
16
  appConfigBaseUrl?: string;
18
17
  /**
19
18
  * release version of the product
20
- *
21
19
  * @defaultValue latest
22
20
  */
23
21
  version?: string;
@@ -28,7 +26,6 @@ export type AppBridgeParams = {
28
26
  };
29
27
  /**
30
28
  * AppBridge implementation. This class is responsible for creating & managing the Micro FrontEnd Guest instances. It also exposes scripting objects to all the Micro FrontEnd Guests.
31
- *
32
29
  * @typeParam AppObjects - type of the scripting objects that the application supports
33
30
  * @typeParam AppEvents - type of the events that the application supports
34
31
  */
@@ -36,13 +33,11 @@ export declare class CAppBridge<AppObjects extends ScriptingObjects = Partial<Sc
36
33
  #private;
37
34
  /**
38
35
  * Create a new instance of the AppBridge
39
- *
40
36
  * @param {AppBridgeParams} params - parameter for the constructor
41
37
  */
42
38
  constructor(params: AppBridgeParams);
43
39
  /**
44
40
  * registers scripting object to the host
45
- *
46
41
  * @param {ValueOf<AppObjects>} so scripting object
47
42
  * @param {AddScriptingObjectParams} params params to add scripting object
48
43
  */
@@ -53,26 +48,22 @@ export declare class CAppBridge<AppObjects extends ScriptingObjects = Partial<Sc
53
48
  closeAllApps: () => Promise<void>;
54
49
  /**
55
50
  * Close guest micro frontend application
56
- *
57
51
  * @param id unique id of guest application
58
52
  */
59
53
  closeApp: (id: string) => Promise<void>;
60
54
  /**
61
55
  * dispatch event to guest microfrontend application
62
- *
63
56
  * @param {DispatchEventParams<EventId, Params>} params - event parameters
64
57
  */
65
58
  dispatchEvent: <EventId extends Extract<keyof AppEvents, string>, Params extends Parameters<AppEvents[EventId]>[0]["eventParams"]>(params: DispatchEventParam<EventId, Params>) => Promise<void | any[]>;
66
59
  /**
67
60
  * Get guest by id
68
- *
69
61
  * @param id unique id of guest
70
62
  * @returns guest instance
71
63
  */
72
64
  getGuest: <T extends IMicroFEGuest<Partial<ScriptingObjectTypes>, Events>>(id: string) => T | null;
73
65
  /**
74
66
  * Get list of active guests
75
- *
76
67
  * @returns list of active guests
77
68
  */
78
69
  getGuests: () => IMicroFEGuest<Partial<ScriptingObjectTypes>, Events>[];
@@ -82,20 +73,17 @@ export declare class CAppBridge<AppObjects extends ScriptingObjects = Partial<Sc
82
73
  init: () => Promise<void>;
83
74
  /**
84
75
  * Mount guest micro frontend application into DOM
85
- *
86
76
  * @param id unique id of guest micro frontend application
87
77
  * @throws Error if application with given id is not found in configuration
88
78
  */
89
79
  mountApp: (id: string) => Promise<void>;
90
80
  /**
91
81
  * Open guest micro frontend application
92
- *
93
82
  * @param {OpenAppParams} params - options to open guest application
94
83
  */
95
84
  openApp: (params: OpenAppParams) => Promise<IMicroFEGuest<Partial<ScriptingObjectTypes>, Events> | undefined>;
96
85
  /**
97
86
  * emit event to all subscribers (deprecated)
98
- *
99
87
  * @deprecated use dispatchEvent instead
100
88
  * @param eventId unique id of the event. The format is <scripting object name>.<event name>
101
89
  * @param data data to be sent to the subscribers of the event
@@ -108,13 +96,11 @@ export declare class CAppBridge<AppObjects extends ScriptingObjects = Partial<Sc
108
96
  removeAllEventListeners: () => void;
109
97
  /**
110
98
  * removes scripting object from the host
111
- *
112
99
  * @param objectId unique id of the scripting object
113
100
  */
114
101
  removeScriptingObject: (objectId: Extract<keyof AppObjects, string>) => void;
115
102
  /**
116
103
  * Unmount guest micro frontend application from DOM
117
- *
118
104
  * @param id unique id of guest micro frontend application
119
105
  * @throws Error if application with given id is not found in configuration
120
106
  */
@@ -113,7 +113,6 @@ export declare class CAppConfig {
113
113
  });
114
114
  /**
115
115
  * Get value for the given app config key
116
- *
117
116
  * @param key key to get value for
118
117
  * @param defaultValue default value to return if key is not found
119
118
  * @returns value for the given key
@@ -121,7 +120,6 @@ export declare class CAppConfig {
121
120
  get: <Type>(key?: string, defaultValue?: unknown) => Type;
122
121
  /**
123
122
  * Set value for the given app config key
124
- *
125
123
  * @param key key to set value for
126
124
  * @param value value to set
127
125
  * @returns app config instance
@@ -129,14 +127,12 @@ export declare class CAppConfig {
129
127
  set: <Type>(key: string, value: Type) => IAppConfig;
130
128
  /**
131
129
  * Check if the given key exists in app config
132
- *
133
130
  * @param key key to check
134
131
  * @returns true if key exists
135
132
  */
136
133
  has: (key?: string) => boolean;
137
134
  /**
138
135
  * load application configuration from the given asset path
139
- *
140
136
  * @param assetPath url path to load app config from
141
137
  * @param configUrl
142
138
  */
@@ -42,19 +42,16 @@ export declare class EventManager<AppEvents extends EventListeners = Events> {
42
42
  #private;
43
43
  /**
44
44
  * dispatch an event
45
- *
46
45
  * @param {DispatchEventParam<EventId, Params>} param - parameters for dispatching an event
47
46
  */
48
47
  dispatchEvent: <EventId extends Extract<keyof AppEvents, string>, Params extends Parameters<AppEvents[EventId]>[0]["eventParams"]>(param: DispatchEventParam<EventId, Params>) => Promise<void | any[]>;
49
48
  /**
50
49
  * Subscribe to an event
51
- *
52
50
  * @param {SubscribeParam<EventId, AppEvents[EventId]>} param - parameters for subscribing to an event
53
51
  */
54
52
  subscribe: <EventId extends Extract<keyof AppEvents, string>>(param: SubscribeParam<EventId, AppEvents[EventId]>) => string;
55
53
  /**
56
54
  * Unsubscribe from an event
57
- *
58
55
  * @param {UnsubscribeParam<EventId>} param - parameters for unsubscribing from an event
59
56
  */
60
57
  unsubscribe: <EventId extends Extract<keyof AppEvents, string>>(param: UnsubscribeParam<EventId>) => void;
@@ -32,7 +32,6 @@ export type CMicroFEHostParams<AppObjects extends ScriptingObjects, AppEvents ex
32
32
  };
33
33
  /**
34
34
  * Represents a host micro frontend application
35
- *
36
35
  * @typeParam AppObjects - scripting objects that are published by the host application
37
36
  * @typeParam AppEvents - events that are published by the host application
38
37
  */
@@ -40,26 +39,22 @@ export declare class CMicroFEHost<AppObjects extends ScriptingObjects = Partial<
40
39
  #private;
41
40
  /**
42
41
  * Create new instance of the host frontend application
43
- *
44
42
  * @param {CMicroFEHostParams} params - constructor parameters
45
43
  */
46
44
  constructor(params: CMicroFEHostParams<AppObjects, AppEvents>);
47
45
  /**
48
46
  * add listener to the scripting object event
49
- *
50
47
  * @param {SubscribeParam<EventId, EventListener>} params - parameters to add event listener
51
48
  * @returns subscription id
52
49
  */
53
50
  addEventListener: <EventId extends Extract<keyof AppEvents, string>>(params: SubscribeParam<EventId, AppEvents[EventId]>) => string;
54
51
  /**
55
52
  * application release version
56
- *
57
53
  * @returns release version
58
54
  */
59
55
  get version(): string;
60
56
  /**
61
57
  * Get reference to the scripting object (or proxy) by name
62
- *
63
58
  * @param name unique name of the scripting object
64
59
  * @param objectId
65
60
  * @returns scripting object reference
@@ -67,19 +62,16 @@ export declare class CMicroFEHost<AppObjects extends ScriptingObjects = Partial<
67
62
  getObject: <ObjectId extends Extract<keyof AppObjects, string>>(objectId: ObjectId) => Promise<Awaited<AppObjects[ObjectId]> | null>;
68
63
  /**
69
64
  * removes listener from the scripting object event
70
- *
71
65
  * @param {UnsubscribeParam<EventId>} params - parameters to remove event listener
72
66
  */
73
67
  removeEventListener: <EventId extends Extract<keyof AppEvents, string>>(params: UnsubscribeParam<EventId>) => void;
74
68
  /**
75
69
  * set the size of the guest application iframe window
76
- *
77
70
  * @param {AppWindowSize} appSize window size of the application
78
71
  */
79
72
  setAppWindowSize: (appSize: AppWindowSize) => void;
80
73
  /**
81
74
  * subscribe to an scripting object event (deprecated)
82
- *
83
75
  * @param eventId unique id of the event. The format is <scripting object name>.<event name>
84
76
  * @param listener callback function to be called when the event is fired
85
77
  * @returns token to be used to unsubscribe
@@ -87,7 +79,6 @@ export declare class CMicroFEHost<AppObjects extends ScriptingObjects = Partial<
87
79
  subscribe: <T>(eventId: string | symbol, listener: SubscriptionListener<T>) => string;
88
80
  /**
89
81
  * unsubscribe from an scripting object event (deprecated)
90
- *
91
82
  * @param token unique token returned by subscribe
92
83
  * @param eventId unique id of the event. The format is <scripting object name>.<event name>
93
84
  */
@@ -87,7 +87,6 @@ export type MountParams = {
87
87
  };
88
88
  /**
89
89
  * Interface to connect and communicate with microfrontend guest application
90
- *
91
90
  * @typeParam AppObjects - scripting object types
92
91
  * @typeParam AppEvents - scripting object events
93
92
  */
@@ -98,19 +97,16 @@ export interface IMicroFEGuest<AppObjects extends ScriptingObjects = Partial<Scr
98
97
  readonly guestWindow: Window;
99
98
  /**
100
99
  * initialize the guest micro frontend application
101
- *
102
100
  * @param {InitParams} params guest initailization options
103
101
  */
104
102
  init(params: InitParams<AppObjects, AppEvents>): Promise<void>;
105
103
  /**
106
104
  * mount application to the window DOM
107
- *
108
105
  * @param {MountParams} params application dom mount options
109
106
  */
110
107
  mount(params: MountParams): Promise<void>;
111
108
  /**
112
109
  * unmount application from the DOM
113
- *
114
110
  * @param {MountParams} params DOM unmount options
115
111
  * @returns application state serialized as JSON
116
112
  */
@@ -6,7 +6,6 @@ import { ScriptingObjects, SubscribeParam, UnsubscribeParam } from './common.js'
6
6
  import { FrameOptions } from '../frame.js';
7
7
  /**
8
8
  * event listner callback function
9
- *
10
9
  * @typeParam T - type of the data
11
10
  * @param message - message
12
11
  * @param data - data
@@ -31,7 +30,6 @@ export type OpenAppParams = {
31
30
  };
32
31
  /**
33
32
  * Interface to connect and communicate with parent host
34
- *
35
33
  * @typeParam AppObjects - type of the scripting objects that the application supports
36
34
  * @typeParam AppEvents - type of the events that the application supports
37
35
  */
@@ -42,33 +40,28 @@ export interface IMicroFEHost<AppObjects extends ScriptingObjects = Partial<Scri
42
40
  version: string;
43
41
  /**
44
42
  * add listener to the scripting object event
45
- *
46
43
  * @param {SubscribeParam<EventId, EventType>} params - parameters to add event listener
47
44
  * @returns subscription id
48
45
  */
49
46
  addEventListener: <EventId extends Extract<keyof AppEvents, string>>(params: SubscribeParam<EventId, AppEvents[EventId]>) => string;
50
47
  /**
51
48
  * Get reference to the scripting object (or proxy) by name
52
- *
53
49
  * @param name unique name of the scripting object
54
50
  * @returns scripting object reference
55
51
  */
56
52
  getObject<ObjectId extends Extract<keyof AppObjects, string>>(objectId: ObjectId): Promise<AppObjects[ObjectId] | null>;
57
53
  /**
58
54
  * removes listener from the scripting object event
59
- *
60
55
  * @param {UnsubscribeParam<EventId>} params - parameters to remove event listener
61
56
  */
62
57
  removeEventListener: <EventId extends Extract<keyof AppEvents, string>>(params: UnsubscribeParam<EventId>) => void;
63
58
  /**
64
59
  * set the size of the guest application iframe window
65
- *
66
60
  * @param {AppWindowSize} appSize window size of the application
67
61
  */
68
62
  setAppWindowSize(appSize: AppWindowSize): void;
69
63
  /**
70
64
  * subscribe to an scripting object event (deprecated)
71
- *
72
65
  * @deprecated use addEventListener instead
73
66
  * @param eventId unique id of the event. The format is <scripting object name>.<event name>
74
67
  * @param listener callback function to be called when the event is fired
@@ -77,7 +70,6 @@ export interface IMicroFEHost<AppObjects extends ScriptingObjects = Partial<Scri
77
70
  subscribe<T>(eventId: string | symbol, listener: SubscriptionListener<T>): string;
78
71
  /**
79
72
  * unsubscribe from an scripting object event (deprecated)
80
- *
81
73
  * @deprecated use removeEventListener instead
82
74
  * @param token unique token returned by subscribe
83
75
  * @param eventId unique id of the event. The format is <scripting object name>.<event name>
Binary file
Binary file