@elliemae/pui-app-bridge 2.29.1 → 2.30.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.
@@ -9,6 +9,10 @@ type EventListenerDetails = {
9
9
  * filter criteria for the event listener
10
10
  */
11
11
  criteria?: FilterCriteria;
12
+ /**
13
+ * guest instance id when subscribed via a guest iframe host
14
+ */
15
+ guestId?: string;
12
16
  /**
13
17
  * event listener
14
18
  */
@@ -55,7 +59,9 @@ export declare class EventManager<AppEvents extends EventListeners = Events> {
55
59
  * Subscribe to an event
56
60
  * @param {SubscribeParam<EventId, AppEvents[EventId]>} param - parameters for subscribing to an event
57
61
  */
58
- subscribe: <EventId extends Extract<keyof AppEvents, string>>(param: SubscribeParam<EventId, AppEvents[EventId]>) => string;
62
+ subscribe: <EventId extends Extract<keyof AppEvents, string>>(param: SubscribeParam<EventId, AppEvents[EventId]> & {
63
+ guestId?: string;
64
+ }) => string;
59
65
  /**
60
66
  * Unsubscribe from an event
61
67
  * @param {UnsubscribeParam<EventId>} param - parameters for unsubscribing from an event
@@ -16,6 +16,10 @@ export type CMicroFEHostParams<AppObjects extends ScriptingObjects, AppEvents ex
16
16
  * unique id of the guest application
17
17
  */
18
18
  guest: GuestContext;
19
+ /**
20
+ * unique instance id for this open guest (openApp uuid / iframe id)
21
+ */
22
+ instanceId: string;
19
23
  /**
20
24
  * release version of the host application
21
25
  */