@elliemae/pui-app-bridge 2.6.6 → 2.7.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.
@@ -61,7 +61,7 @@ export declare class CAppBridge<AppObjects extends ScriptingObjects = Partial<Sc
61
61
  * @param id unique id of guest
62
62
  * @returns guest instance
63
63
  */
64
- getGuest: <T extends IMicroFEGuest<Partial<ScriptingObjectTypes>, Events>>(id: string) => T | null;
64
+ getGuest: <T extends IMicroFEGuest>(id: string) => T | null;
65
65
  /**
66
66
  * Get list of active guests
67
67
  * @returns list of active guests
@@ -85,7 +85,7 @@ export declare class CAppBridge<AppObjects extends ScriptingObjects = Partial<Sc
85
85
  /**
86
86
  * emit event to all subscribers (deprecated)
87
87
  * @deprecated use dispatchEvent instead
88
- * @param eventId unique id of the event. The format is <scripting object name>.<event name>
88
+ * @param eventId unique id of the event. The format is [scripting object name].[event name]
89
89
  * @param data data to be sent to the subscribers of the event
90
90
  * @returns true if event is published successfully
91
91
  */
@@ -72,7 +72,7 @@ export declare class CMicroFEHost<AppObjects extends ScriptingObjects = Partial<
72
72
  setAppWindowSize: (appSize: AppWindowSize) => void;
73
73
  /**
74
74
  * subscribe to an scripting object event (deprecated)
75
- * @param eventId unique id of the event. The format is <scripting object name>.<event name>
75
+ * @param eventId unique id of the event. The format is [scripting object name].[event name]
76
76
  * @param listener callback function to be called when the event is fired
77
77
  * @returns token to be used to unsubscribe
78
78
  */
@@ -80,7 +80,7 @@ export declare class CMicroFEHost<AppObjects extends ScriptingObjects = Partial<
80
80
  /**
81
81
  * unsubscribe from an scripting object event (deprecated)
82
82
  * @param token unique token returned by subscribe
83
- * @param eventId unique id of the event. The format is <scripting object name>.<event name>
83
+ * @param eventId unique id of the event. The format is [scripting object name].[event name]
84
84
  */
85
85
  unsubscribe: (token: string) => void;
86
86
  }
@@ -1,6 +1,8 @@
1
- import { IAnalytics, BAEvent } from '@elliemae/pui-scripting-object';
1
+ import { IAnalytics, BAEvent, TimingOptions } from '@elliemae/pui-scripting-object';
2
2
  import { ScriptingObject } from '@elliemae/microfe-common';
3
3
  export declare class Analytics extends ScriptingObject implements IAnalytics {
4
4
  constructor();
5
- sendBAEvent(event: BAEvent): void;
5
+ sendBAEvent(event: BAEvent): Promise<void>;
6
+ startTiming(name: string, options: TimingOptions): Promise<PerformanceMark>;
7
+ endTiming(start: string | PerformanceMeasure, options: TimingOptions): Promise<void>;
6
8
  }
@@ -4,6 +4,6 @@ export declare class Global extends ScriptingObject implements IGlobal {
4
4
  #private;
5
5
  constructor();
6
6
  readonly Change: Event<Events>;
7
- set: (key: string, value: any) => Promise<void>;
8
- get: (key: string) => Promise<unknown>;
7
+ set: (key: string, value: string) => Promise<void>;
8
+ get: (key: string) => Promise<string>;
9
9
  }
@@ -63,7 +63,7 @@ export interface IMicroFEHost<AppObjects extends ScriptingObjects = Partial<Scri
63
63
  /**
64
64
  * subscribe to an scripting object event (deprecated)
65
65
  * @deprecated use addEventListener instead
66
- * @param eventId unique id of the event. The format is <scripting object name>.<event name>
66
+ * @param eventId unique id of the event. The format is [scripting object name].[event name]
67
67
  * @param listener callback function to be called when the event is fired
68
68
  * @returns token to be used to unsubscribe
69
69
  */
@@ -72,7 +72,7 @@ export interface IMicroFEHost<AppObjects extends ScriptingObjects = Partial<Scri
72
72
  * unsubscribe from an scripting object event (deprecated)
73
73
  * @deprecated use removeEventListener instead
74
74
  * @param token unique token returned by subscribe
75
- * @param eventId unique id of the event. The format is <scripting object name>.<event name>
75
+ * @param eventId unique id of the event. The format is [scripting object name].[event name]
76
76
  */
77
77
  unsubscribe(token: string, eventId?: string): void;
78
78
  }