@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.
- package/dist/cjs/appBridge.js +1 -1
- package/dist/cjs/microfeHost.js +2 -2
- package/dist/cjs/tests/scriptingObjects/analytics.js +13 -0
- package/dist/cjs/tests/scriptingObjects/global.js +1 -1
- package/dist/esm/appBridge.js +1 -1
- package/dist/esm/microfeHost.js +2 -2
- package/dist/esm/tests/scriptingObjects/analytics.js +13 -0
- package/dist/esm/tests/scriptingObjects/global.js +1 -1
- package/dist/public/frame.html +1 -1
- package/dist/public/index.html +1 -1
- package/dist/public/js/{emuiAppBridge.db039dbe47e2ea1b8de8.js → emuiAppBridge.1edf277e9ad51029688c.js} +1 -1
- package/dist/public/js/emuiAppBridge.1edf277e9ad51029688c.js.br +0 -0
- package/dist/public/js/{emuiAppBridge.db039dbe47e2ea1b8de8.js.gz → emuiAppBridge.1edf277e9ad51029688c.js.gz} +0 -0
- package/dist/public/js/{emuiAppBridge.db039dbe47e2ea1b8de8.js.map → emuiAppBridge.1edf277e9ad51029688c.js.map} +1 -1
- package/dist/types/lib/appBridge.d.ts +2 -2
- package/dist/types/lib/microfeHost.d.ts +2 -2
- package/dist/types/lib/tests/scriptingObjects/analytics.d.ts +4 -2
- package/dist/types/lib/tests/scriptingObjects/global.d.ts +2 -2
- package/dist/types/lib/typings/host.d.ts +2 -2
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/dist/umd/index.js.map +1 -1
- package/package.json +9 -9
- package/dist/public/js/emuiAppBridge.db039dbe47e2ea1b8de8.js.br +0 -0
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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:
|
|
8
|
-
get: (key: string) => Promise<
|
|
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
|
|
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
|
|
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
|
}
|