@elliemae/pui-cli 8.55.7-alpha.1 → 8.55.7-alpha.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/testing/jest.config.cjs +1 -0
- package/dist/cjs/testing/mocks/pui-logrocket.js +45 -0
- package/dist/cjs/testing/setup-tests.js +2 -0
- package/dist/cjs/webpack/webpack.base.babel.js +2 -1
- package/dist/cjs/webpack/webpack.lib.base.babel.js +2 -1
- package/dist/cjs/webpack/webpack.storybook.js +1 -0
- package/dist/esm/testing/jest.config.cjs +1 -0
- package/dist/esm/testing/mocks/pui-logrocket.js +25 -0
- package/dist/esm/testing/setup-tests.js +2 -0
- package/dist/esm/webpack/webpack.base.babel.js +2 -1
- package/dist/esm/webpack/webpack.lib.base.babel.js +2 -1
- package/dist/esm/webpack/webpack.storybook.js +1 -0
- package/dist/types/lib/testing/jest.config.d.cts +1 -0
- package/dist/types/lib/testing/jest.node.config.d.cts +1 -0
- package/dist/types/lib/testing/mocks/pui-logrocket.d.ts +12 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +13 -13
|
@@ -70,6 +70,7 @@ const jestConfig = {
|
|
|
70
70
|
'@elliemae/pui-user-monitoring': getMockFilePath('pui-user-monitoring.js'),
|
|
71
71
|
'@elliemae/pui-app-loader': getMockFilePath('pui-app-loader.js'),
|
|
72
72
|
'@elliemae/pui-diagnostics': getMockFilePath('pui-diagnostics.js'),
|
|
73
|
+
'@elliemae/pui-logrocket': getMockFilePath('pui-logrocket.js'),
|
|
73
74
|
'react-spring/web': getNodeModulesPath('react-spring/web.cjs.js'),
|
|
74
75
|
'react-spring/renderprops': getNodeModulesPath(
|
|
75
76
|
'react-spring/renderprops.cjs.js',
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var pui_logrocket_exports = {};
|
|
20
|
+
__export(pui_logrocket_exports, {
|
|
21
|
+
buildLogRocketQueryParams: () => buildLogRocketQueryParams,
|
|
22
|
+
hasUserConsentedToSessionRecording: () => hasUserConsentedToSessionRecording,
|
|
23
|
+
initLogRocket: () => initLogRocket,
|
|
24
|
+
logRocket: () => logRocket
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(pui_logrocket_exports);
|
|
27
|
+
const initLogRocket = () => {
|
|
28
|
+
};
|
|
29
|
+
const hasUserConsentedToSessionRecording = () => true;
|
|
30
|
+
const buildLogRocketQueryParams = () => {
|
|
31
|
+
};
|
|
32
|
+
const logRocket = {
|
|
33
|
+
init: () => {
|
|
34
|
+
},
|
|
35
|
+
identify: () => {
|
|
36
|
+
},
|
|
37
|
+
track: () => {
|
|
38
|
+
},
|
|
39
|
+
getSessionURL: () => "",
|
|
40
|
+
sessionURL: "",
|
|
41
|
+
captureMessage: () => {
|
|
42
|
+
},
|
|
43
|
+
captureException: () => {
|
|
44
|
+
}
|
|
45
|
+
};
|
|
@@ -29,6 +29,7 @@ var import_resize_observer_polyfill = __toESM(require("resize-observer-polyfill"
|
|
|
29
29
|
var import_matchMedia = require("./mocks/matchMedia.js");
|
|
30
30
|
var import_worker = require("./mocks/worker.js");
|
|
31
31
|
var import_pui_diagnostics = require("./mocks/pui-diagnostics.js");
|
|
32
|
+
var import_pui_logrocket = require("./mocks/pui-logrocket.js");
|
|
32
33
|
Object.defineProperty(globalThis, "crypto", {
|
|
33
34
|
value: import_node_crypto.webcrypto
|
|
34
35
|
});
|
|
@@ -70,6 +71,7 @@ addRootElement("root");
|
|
|
70
71
|
window.ResizeObserver = import_resize_observer_polyfill.default;
|
|
71
72
|
window.emui = {
|
|
72
73
|
logger: (0, import_pui_diagnostics.logger)(),
|
|
74
|
+
logRocket: import_pui_logrocket.logRocket,
|
|
73
75
|
_BASE_PATH: new URL(document.baseURI).pathname
|
|
74
76
|
};
|
|
75
77
|
let showCorejsWarn = false;
|
|
@@ -314,7 +314,8 @@ const baseConfig = (options) => ({
|
|
|
314
314
|
externals: {
|
|
315
315
|
"@elliemae/pui-user-monitoring": "emuiUserMonitoring",
|
|
316
316
|
"@elliemae/pui-app-loader": "emuiAppLoader",
|
|
317
|
-
"@elliemae/pui-diagnostics": "emuiDiagnostics"
|
|
317
|
+
"@elliemae/pui-diagnostics": "emuiDiagnostics",
|
|
318
|
+
"@elliemae/pui-logrocket": "emuiLogrocket"
|
|
318
319
|
},
|
|
319
320
|
devtool: options.devtool || "eval-source-map",
|
|
320
321
|
performance: options.performance || {},
|
|
@@ -213,7 +213,8 @@ const baseConfig = (options) => ({
|
|
|
213
213
|
externals: {
|
|
214
214
|
"@elliemae/pui-user-monitoring": "emuiUserMonitoring",
|
|
215
215
|
"@elliemae/pui-app-loader": "emuiAppLoader",
|
|
216
|
-
"@elliemae/pui-diagnostics": "emuiDiagnostics"
|
|
216
|
+
"@elliemae/pui-diagnostics": "emuiDiagnostics",
|
|
217
|
+
"@elliemae/pui-logrocket": "emuiLogrocket"
|
|
217
218
|
},
|
|
218
219
|
devtool: options.devtool || "eval-source-map",
|
|
219
220
|
performance: options.performance || {},
|
|
@@ -116,6 +116,7 @@ const webpackFinal = (config, { configType }) => {
|
|
|
116
116
|
config.externals["@elliemae/pui-user-monitoring"] = "emuiUserMonitoring";
|
|
117
117
|
config.externals["@elliemae/pui-app-loader"] = "emuiAppLoader";
|
|
118
118
|
config.externals["@elliemae/pui-diagnostics"] = "emuiDiagnostics";
|
|
119
|
+
config.externals["@elliemae/pui-logrocket"] = "emuiLogrocket";
|
|
119
120
|
}
|
|
120
121
|
return config;
|
|
121
122
|
};
|
|
@@ -70,6 +70,7 @@ const jestConfig = {
|
|
|
70
70
|
'@elliemae/pui-user-monitoring': getMockFilePath('pui-user-monitoring.js'),
|
|
71
71
|
'@elliemae/pui-app-loader': getMockFilePath('pui-app-loader.js'),
|
|
72
72
|
'@elliemae/pui-diagnostics': getMockFilePath('pui-diagnostics.js'),
|
|
73
|
+
'@elliemae/pui-logrocket': getMockFilePath('pui-logrocket.js'),
|
|
73
74
|
'react-spring/web': getNodeModulesPath('react-spring/web.cjs.js'),
|
|
74
75
|
'react-spring/renderprops': getNodeModulesPath(
|
|
75
76
|
'react-spring/renderprops.cjs.js',
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
const initLogRocket = () => {
|
|
2
|
+
};
|
|
3
|
+
const hasUserConsentedToSessionRecording = () => true;
|
|
4
|
+
const buildLogRocketQueryParams = () => {
|
|
5
|
+
};
|
|
6
|
+
const logRocket = {
|
|
7
|
+
init: () => {
|
|
8
|
+
},
|
|
9
|
+
identify: () => {
|
|
10
|
+
},
|
|
11
|
+
track: () => {
|
|
12
|
+
},
|
|
13
|
+
getSessionURL: () => "",
|
|
14
|
+
sessionURL: "",
|
|
15
|
+
captureMessage: () => {
|
|
16
|
+
},
|
|
17
|
+
captureException: () => {
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
export {
|
|
21
|
+
buildLogRocketQueryParams,
|
|
22
|
+
hasUserConsentedToSessionRecording,
|
|
23
|
+
initLogRocket,
|
|
24
|
+
logRocket
|
|
25
|
+
};
|
|
@@ -6,6 +6,7 @@ import ResizeObserver from "resize-observer-polyfill";
|
|
|
6
6
|
import { addMatchMedia } from "./mocks/matchMedia.js";
|
|
7
7
|
import { WorkerMock } from "./mocks/worker.js";
|
|
8
8
|
import { logger } from "./mocks/pui-diagnostics.js";
|
|
9
|
+
import { logRocket } from "./mocks/pui-logrocket.js";
|
|
9
10
|
Object.defineProperty(globalThis, "crypto", {
|
|
10
11
|
value: webcrypto
|
|
11
12
|
});
|
|
@@ -47,6 +48,7 @@ addMatchMedia();
|
|
|
47
48
|
window.ResizeObserver = ResizeObserver;
|
|
48
49
|
window.emui = {
|
|
49
50
|
logger: logger(),
|
|
51
|
+
logRocket,
|
|
50
52
|
_BASE_PATH: new URL(document.baseURI).pathname
|
|
51
53
|
};
|
|
52
54
|
let showCorejsWarn = false;
|
|
@@ -288,7 +288,8 @@ const baseConfig = (options) => ({
|
|
|
288
288
|
externals: {
|
|
289
289
|
"@elliemae/pui-user-monitoring": "emuiUserMonitoring",
|
|
290
290
|
"@elliemae/pui-app-loader": "emuiAppLoader",
|
|
291
|
-
"@elliemae/pui-diagnostics": "emuiDiagnostics"
|
|
291
|
+
"@elliemae/pui-diagnostics": "emuiDiagnostics",
|
|
292
|
+
"@elliemae/pui-logrocket": "emuiLogrocket"
|
|
292
293
|
},
|
|
293
294
|
devtool: options.devtool || "eval-source-map",
|
|
294
295
|
performance: options.performance || {},
|
|
@@ -186,7 +186,8 @@ const baseConfig = (options) => ({
|
|
|
186
186
|
externals: {
|
|
187
187
|
"@elliemae/pui-user-monitoring": "emuiUserMonitoring",
|
|
188
188
|
"@elliemae/pui-app-loader": "emuiAppLoader",
|
|
189
|
-
"@elliemae/pui-diagnostics": "emuiDiagnostics"
|
|
189
|
+
"@elliemae/pui-diagnostics": "emuiDiagnostics",
|
|
190
|
+
"@elliemae/pui-logrocket": "emuiLogrocket"
|
|
190
191
|
},
|
|
191
192
|
devtool: options.devtool || "eval-source-map",
|
|
192
193
|
performance: options.performance || {},
|
|
@@ -82,6 +82,7 @@ const webpackFinal = (config, { configType }) => {
|
|
|
82
82
|
config.externals["@elliemae/pui-user-monitoring"] = "emuiUserMonitoring";
|
|
83
83
|
config.externals["@elliemae/pui-app-loader"] = "emuiAppLoader";
|
|
84
84
|
config.externals["@elliemae/pui-diagnostics"] = "emuiDiagnostics";
|
|
85
|
+
config.externals["@elliemae/pui-logrocket"] = "emuiLogrocket";
|
|
85
86
|
}
|
|
86
87
|
return config;
|
|
87
88
|
};
|
|
@@ -17,6 +17,7 @@ export namespace jestConfig {
|
|
|
17
17
|
'@elliemae/pui-user-monitoring': string;
|
|
18
18
|
'@elliemae/pui-app-loader': string;
|
|
19
19
|
'@elliemae/pui-diagnostics': string;
|
|
20
|
+
'@elliemae/pui-logrocket': string;
|
|
20
21
|
'react-spring/web': string;
|
|
21
22
|
'react-spring/renderprops': string;
|
|
22
23
|
};
|
|
@@ -21,6 +21,7 @@ export const jestNodeConfig: {
|
|
|
21
21
|
'@elliemae/pui-user-monitoring': string;
|
|
22
22
|
'@elliemae/pui-app-loader': string;
|
|
23
23
|
'@elliemae/pui-diagnostics': string;
|
|
24
|
+
'@elliemae/pui-logrocket': string;
|
|
24
25
|
'react-spring/web': string;
|
|
25
26
|
'react-spring/renderprops': string;
|
|
26
27
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export function initLogRocket(): void;
|
|
2
|
+
export function hasUserConsentedToSessionRecording(): boolean;
|
|
3
|
+
export function buildLogRocketQueryParams(): void;
|
|
4
|
+
export namespace logRocket {
|
|
5
|
+
function init(): void;
|
|
6
|
+
function identify(): void;
|
|
7
|
+
function track(): void;
|
|
8
|
+
function getSessionURL(): string;
|
|
9
|
+
let sessionURL: string;
|
|
10
|
+
function captureMessage(): void;
|
|
11
|
+
function captureException(): void;
|
|
12
|
+
}
|