@elliemae/pui-app-sdk 2.10.0 → 2.11.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.
- package/dist/cjs/analytics/base-data.js +22 -0
- package/dist/cjs/analytics/index.js +37 -0
- package/dist/cjs/analytics/user-session.js +20 -12
- package/dist/cjs/analytics/user-wait.js +13 -5
- package/dist/cjs/index.js +10 -1
- package/dist/cjs/utils/auth/index.js +1 -6
- package/dist/cjs/utils/micro-frontend/host.js +10 -0
- package/dist/es/analytics/base-data.js +10 -0
- package/dist/es/analytics/index.js +28 -0
- package/dist/es/analytics/user-session.js +19 -12
- package/dist/es/analytics/user-wait.js +12 -5
- package/dist/es/index.js +3 -1
- package/dist/es/utils/auth/index.js +1 -6
- package/dist/es/utils/micro-frontend/host.js +9 -0
- package/dist/public/index.html +1 -1
- package/dist/public/js/{emuiAppSdk.57ed584b664455a8bbb9.js → emuiAppSdk.bdec42736fbd0fbcbe9a.js} +3 -3
- package/dist/public/js/{emuiAppSdk.57ed584b664455a8bbb9.js.LICENSE.txt → emuiAppSdk.bdec42736fbd0fbcbe9a.js.LICENSE.txt} +0 -0
- package/dist/public/js/emuiAppSdk.bdec42736fbd0fbcbe9a.js.gz +0 -0
- package/dist/public/js/emuiAppSdk.bdec42736fbd0fbcbe9a.js.map +1 -0
- package/dist/types/analytics/base-data.d.ts +8 -0
- package/dist/types/analytics/index.d.ts +5 -0
- package/dist/types/analytics/user-session.d.ts +1 -4
- package/dist/types/index.d.ts +1 -1
- package/dist/types/utils/micro-frontend/host.d.ts +2 -1
- package/dist/types/utils/window.d.ts +2 -3
- package/package.json +4 -4
- package/dist/cjs/analytics/utils.js +0 -13
- package/dist/cjs/data/tests/store.test.js +0 -32
- package/dist/es/analytics/utils.js +0 -4
- package/dist/es/data/tests/store.test.js +0 -32
- package/dist/public/js/emuiAppSdk.57ed584b664455a8bbb9.js.gz +0 -0
- package/dist/public/js/emuiAppSdk.57ed584b664455a8bbb9.js.map +0 -1
- package/dist/types/analytics/utils.d.ts +0 -4
|
@@ -2,7 +2,4 @@ export declare const loginEvent: ({ instanceId, userId, }: {
|
|
|
2
2
|
instanceId: string;
|
|
3
3
|
userId: string;
|
|
4
4
|
}) => void;
|
|
5
|
-
export declare const logoutEvent: (
|
|
6
|
-
instanceId: string;
|
|
7
|
-
userId: string;
|
|
8
|
-
}) => void;
|
|
5
|
+
export declare const logoutEvent: () => void;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -68,7 +68,7 @@ export { MicroIFrameApp } from './view/micro-iframe-app';
|
|
|
68
68
|
export { getNavigationLinks } from './view/micro-app/utils';
|
|
69
69
|
export { getStore } from './data/store';
|
|
70
70
|
export { RegisterService } from './utils/guest-with-service';
|
|
71
|
-
export
|
|
71
|
+
export { sendBAEvent } from './analytics';
|
|
72
72
|
export type { EMUI } from './utils/window';
|
|
73
73
|
export type { Await } from './utils/await';
|
|
74
74
|
export type { RootState, AppStore } from './data/store';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IMicroAppHost, ResizeEventHandler, BreakpointChangeEventHandler, SubscriptionListener } from '@elliemae/pui-micro-frontend-base';
|
|
1
|
+
import { IMicroAppHost, ResizeEventHandler, BreakpointChangeEventHandler, SubscriptionListener, BAEvent } from '@elliemae/pui-micro-frontend-base';
|
|
2
2
|
import { History } from 'history';
|
|
3
3
|
import { DefaultTheme } from 'styled-components';
|
|
4
4
|
import { MicroFrontEndLogger } from './console-logger';
|
|
@@ -50,5 +50,6 @@ export declare class CMicroAppHost implements IMicroAppHost {
|
|
|
50
50
|
onResizeEvent(eventHandler: ResizeEventHandler): string;
|
|
51
51
|
onBreakpointChangeEvent(eventHandler: BreakpointChangeEventHandler): string;
|
|
52
52
|
setSystemVersion(version?: string): void;
|
|
53
|
+
sendBAEvent(this: void, event: BAEvent): void;
|
|
53
54
|
}
|
|
54
55
|
export {};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { IMicroAppGuest, IMicroAppHost } from '@elliemae/pui-micro-frontend-base';
|
|
1
|
+
import { IMicroAppGuest, IMicroAppHost, BAEvent } from '@elliemae/pui-micro-frontend-base';
|
|
2
2
|
import { BreakPoint } from '@elliemae/pui-theme';
|
|
3
3
|
import { Logger } from '@elliemae/pui-diagnostics';
|
|
4
|
-
import { GTMEvent } from '../analytics/utils';
|
|
5
4
|
export declare type EMUI = {
|
|
6
5
|
[key: string]: IMicroAppGuest;
|
|
7
6
|
} & {
|
|
@@ -12,7 +11,7 @@ export declare type EMUI = {
|
|
|
12
11
|
};
|
|
13
12
|
declare global {
|
|
14
13
|
interface Window {
|
|
15
|
-
gtmDataLayer: Array<
|
|
14
|
+
gtmDataLayer: Array<BAEvent>;
|
|
16
15
|
emui: EMUI;
|
|
17
16
|
}
|
|
18
17
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/pui-app-sdk",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.11.0",
|
|
4
4
|
"description": "ICE MT UI Platform Application SDK ",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"*.css",
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"@elliemae/ds-popperjs": "^1.58.1",
|
|
92
92
|
"@elliemae/em-ssf-guest": "^1.11.1",
|
|
93
93
|
"@elliemae/pui-diagnostics": "^2.7.0",
|
|
94
|
-
"@elliemae/pui-micro-frontend-base": "^1.
|
|
94
|
+
"@elliemae/pui-micro-frontend-base": "^1.8.0",
|
|
95
95
|
"@elliemae/pui-theme": "^2.2.4",
|
|
96
96
|
"@elliemae/pui-user-monitoring": "^1.10.0"
|
|
97
97
|
},
|
|
@@ -103,10 +103,10 @@
|
|
|
103
103
|
"@elliemae/ds-modal": "~1.58.1",
|
|
104
104
|
"@elliemae/ds-popperjs": "~1.58.1",
|
|
105
105
|
"@elliemae/em-ssf-guest": "~1.11.1",
|
|
106
|
-
"@elliemae/pui-cli": "~5.11.
|
|
106
|
+
"@elliemae/pui-cli": "~5.11.1",
|
|
107
107
|
"@elliemae/pui-diagnostics": "~2.7.0",
|
|
108
108
|
"@elliemae/pui-e2e-test-sdk": "~6.6.0",
|
|
109
|
-
"@elliemae/pui-micro-frontend-base": "~1.
|
|
109
|
+
"@elliemae/pui-micro-frontend-base": "~1.8.0",
|
|
110
110
|
"@elliemae/pui-theme": "~2.2.4",
|
|
111
111
|
"@elliemae/pui-user-monitoring": "~1.10.0"
|
|
112
112
|
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.reportEvent = void 0;
|
|
7
|
-
|
|
8
|
-
const reportEvent = eventParams => {
|
|
9
|
-
window.gtmDataLayer = window.gtmDataLayer || [];
|
|
10
|
-
window.gtmDataLayer.push(eventParams);
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
exports.reportEvent = reportEvent;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Test store addons
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import { browserHistory } from 'react-router-dom';
|
|
6
|
-
import { createAppStore } from '../store';
|
|
7
|
-
|
|
8
|
-
describe('createAppStore', () => {
|
|
9
|
-
let store;
|
|
10
|
-
|
|
11
|
-
beforeAll(() => {
|
|
12
|
-
store = createAppStore({}, browserHistory);
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
describe('injectedReducers', () => {
|
|
16
|
-
it('should contain an object for reducers', () => {
|
|
17
|
-
expect(typeof store.injectedReducers).toBe('object');
|
|
18
|
-
});
|
|
19
|
-
});
|
|
20
|
-
|
|
21
|
-
describe('injectedSagas', () => {
|
|
22
|
-
it('should contain an object for sagas', () => {
|
|
23
|
-
expect(typeof store.injectedSagas).toBe('object');
|
|
24
|
-
});
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
describe('runSaga', () => {
|
|
28
|
-
it('should contain a hook for `sagaMiddleware.run`', () => {
|
|
29
|
-
expect(typeof store.runSaga).toBe('function');
|
|
30
|
-
});
|
|
31
|
-
});
|
|
32
|
-
});
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Test store addons
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import { browserHistory } from 'react-router-dom';
|
|
6
|
-
import { createAppStore } from '../store';
|
|
7
|
-
|
|
8
|
-
describe('createAppStore', () => {
|
|
9
|
-
let store;
|
|
10
|
-
|
|
11
|
-
beforeAll(() => {
|
|
12
|
-
store = createAppStore({}, browserHistory);
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
describe('injectedReducers', () => {
|
|
16
|
-
it('should contain an object for reducers', () => {
|
|
17
|
-
expect(typeof store.injectedReducers).toBe('object');
|
|
18
|
-
});
|
|
19
|
-
});
|
|
20
|
-
|
|
21
|
-
describe('injectedSagas', () => {
|
|
22
|
-
it('should contain an object for sagas', () => {
|
|
23
|
-
expect(typeof store.injectedSagas).toBe('object');
|
|
24
|
-
});
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
describe('runSaga', () => {
|
|
28
|
-
it('should contain a hook for `sagaMiddleware.run`', () => {
|
|
29
|
-
expect(typeof store.runSaga).toBe('function');
|
|
30
|
-
});
|
|
31
|
-
});
|
|
32
|
-
});
|
|
Binary file
|