@elliemae/pui-app-sdk 5.29.0 → 5.30.0-rc.2
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/communication/http-client/index.js +3 -1
- package/dist/cjs/index.js +0 -2
- package/dist/cjs/utils/app-config/index.js +0 -2
- package/dist/cjs/utils/auth/index.js +25 -4
- package/dist/cjs/utils/micro-frontend/guest.js +7 -2
- package/dist/cjs/utils/micro-frontend/host.js +7 -4
- package/dist/cjs/utils/micro-frontend/scripting-objects/analytics.js +11 -3
- package/dist/cjs/utils/micro-frontend/scripting-objects/logrocket.js +29 -0
- package/dist/cjs/view/fields/masked-input-text/index.js +2 -2
- package/dist/cjs/view/page.js +11 -0
- package/dist/cjs/view/wait-message/index.js +17 -1
- package/dist/esm/communication/http-client/index.js +3 -1
- package/dist/esm/index.js +0 -2
- package/dist/esm/utils/app-config/index.js +0 -2
- package/dist/esm/utils/auth/index.js +28 -4
- package/dist/esm/utils/micro-frontend/guest.js +7 -2
- package/dist/esm/utils/micro-frontend/host.js +7 -4
- package/dist/esm/utils/micro-frontend/scripting-objects/analytics.js +11 -3
- package/dist/esm/utils/micro-frontend/scripting-objects/logrocket.js +9 -0
- package/dist/esm/view/fields/masked-input-text/index.js +2 -2
- package/dist/esm/view/page.js +11 -0
- package/dist/esm/view/wait-message/index.js +17 -1
- package/dist/types/lib/api/auth/index.d.ts +2 -0
- package/dist/types/lib/index.d.ts +0 -1
- package/dist/types/lib/utils/micro-frontend/guest.d.ts +2 -0
- package/dist/types/lib/utils/micro-frontend/host.d.ts +2 -0
- package/dist/types/lib/utils/micro-frontend/scripting-objects/analytics.d.ts +2 -1
- package/dist/types/lib/utils/micro-frontend/scripting-objects/logrocket.d.ts +3 -0
- package/dist/types/lib/utils/window.d.ts +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +43 -41
- package/dist/cjs/analytics/appdynamics.js +0 -48
- package/dist/esm/analytics/appdynamics.js +0 -18
- package/dist/types/lib/analytics/appdynamics.d.ts +0 -10
|
@@ -33,11 +33,13 @@ export interface IntrospectionResponse extends AxiosResponse {
|
|
|
33
33
|
encompass_instance_id: string;
|
|
34
34
|
user_name: string;
|
|
35
35
|
bearer_token: string;
|
|
36
|
+
user_key: string;
|
|
36
37
|
};
|
|
37
38
|
}
|
|
38
39
|
export declare const introspectToken: ({ clientId, accessToken, }: IntrospectRequestParams) => Promise<{
|
|
39
40
|
encompass_instance_id: string;
|
|
40
41
|
user_name: string;
|
|
41
42
|
bearer_token: string;
|
|
43
|
+
user_key: string;
|
|
42
44
|
}>;
|
|
43
45
|
export {};
|
|
@@ -86,7 +86,6 @@ export { MicroIFrameApp } from './view/micro-iframe-app/index.js';
|
|
|
86
86
|
export { getNavigationLinks } from './view/micro-app/utils.js';
|
|
87
87
|
export { getStore } from './data/store.js';
|
|
88
88
|
export { RegisterService } from './utils/guest-with-service.js';
|
|
89
|
-
export { setAppDynamicsUserData } from './analytics/appdynamics.js';
|
|
90
89
|
export { sendBAEvent } from './analytics/index.js';
|
|
91
90
|
export { updateBAEventParameters } from './utils/micro-frontend/scripting-objects/web-analytics.js';
|
|
92
91
|
export { Analytics } from './utils/micro-frontend/scripting-objects/analytics.js';
|
|
@@ -5,6 +5,7 @@ import { ScriptingObjectTypes, Events } from '@elliemae/pui-scripting-object';
|
|
|
5
5
|
import { IMicroFEHost } from '@elliemae/pui-app-bridge';
|
|
6
6
|
import type { ScriptingObjects, EventListeners, SubscribeParam, UnsubscribeParam, DispatchEventParam, EventOptions, AddScriptingObjectParams } from '@elliemae/microfe-common';
|
|
7
7
|
import { SSFGuest } from '@elliemae/ssf-guest';
|
|
8
|
+
import { LogRocket } from '@elliemae/pui-logrocket';
|
|
8
9
|
import { JSONValue, MicroFrontEndLogger } from '../types.js';
|
|
9
10
|
export interface GuestProps<AppObjects extends ScriptingObjects = Partial<ScriptingObjectTypes>, AppEvents extends EventListeners = Events> extends InitOptions<AppObjects, AppEvents> {
|
|
10
11
|
prevState: JSONValue | null;
|
|
@@ -17,6 +18,7 @@ export type OnUnMountCallback = (options: MountOptions) => JSONValue;
|
|
|
17
18
|
export type OnGetRefCallback = <T>() => T | null;
|
|
18
19
|
interface ConstructorParams {
|
|
19
20
|
logger?: MicroFrontEndLogger;
|
|
21
|
+
logRocket?: typeof LogRocket;
|
|
20
22
|
onInit?: OnInitCallback;
|
|
21
23
|
onMount?: OnMountCallback;
|
|
22
24
|
onUnmount?: OnUnMountCallback;
|
|
@@ -4,6 +4,7 @@ import { IMicroAppHost, ResizeEventHandler, BreakpointChangeEventHandler, Subscr
|
|
|
4
4
|
import { SSFHost } from '@elliemae/ssf-host';
|
|
5
5
|
import { BAEvent, ScriptingObjectTypes, Events } from '@elliemae/pui-scripting-object';
|
|
6
6
|
import type { ScriptingObjects, EventListeners, AddScriptingObjectParams, DispatchEventParam, EventOptions } from '@elliemae/microfe-common';
|
|
7
|
+
import { LogRocket } from '@elliemae/pui-logrocket';
|
|
7
8
|
import { MicroFrontEndLogger } from '../types.js';
|
|
8
9
|
import { Analytics } from './scripting-objects/analytics.js';
|
|
9
10
|
type HostOptions = {
|
|
@@ -14,6 +15,7 @@ type HostOptions = {
|
|
|
14
15
|
export type OnInitCallback = (options: HostOptions) => void;
|
|
15
16
|
type ConstructorParams = {
|
|
16
17
|
logger?: MicroFrontEndLogger;
|
|
18
|
+
logRocket?: typeof LogRocket;
|
|
17
19
|
history?: History;
|
|
18
20
|
version?: string;
|
|
19
21
|
theme?: DefaultTheme;
|
|
@@ -29,9 +29,10 @@ export declare class Analytics extends ScriptingObject implements IAnalytics {
|
|
|
29
29
|
/**
|
|
30
30
|
* send business analytics event
|
|
31
31
|
* @param event business analytics event
|
|
32
|
+
* @param eve
|
|
32
33
|
* @returns promise
|
|
33
34
|
*/
|
|
34
|
-
sendBAEvent: (
|
|
35
|
+
sendBAEvent: (eve: BAEvent) => Promise<void>;
|
|
35
36
|
/**
|
|
36
37
|
* start timing measure
|
|
37
38
|
* @param name unique name for the timing measurement. If a measurement with the same name is already running, it will be replaced
|
|
@@ -14,6 +14,7 @@ export type EMUI<AppObjects extends ScriptingObjects = Partial<ScriptingObjectTy
|
|
|
14
14
|
version: string;
|
|
15
15
|
MicroAppHost?: IMicroFEHost<AppObjects, AppEvents> | IMicroAppHost | SSFGuest<AppObjects, AppEvents>;
|
|
16
16
|
logger?: Logger;
|
|
17
|
+
logRocketAppId?: string;
|
|
17
18
|
appId: string;
|
|
18
19
|
uuid: string;
|
|
19
20
|
app?: IMicroAppGuest;
|