@elliemae/pui-logrocket 1.0.2 → 1.0.4
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/logrocket.js +21 -3
- package/dist/esm/logrocket.js +21 -3
- package/dist/public/index.html +1 -1
- package/dist/public/js/{emuiLogrocket.86ccf84c21fc8954ce9e.js → emuiLogrocket.75581de58a3e54d84a91.js} +15 -15
- package/dist/public/js/emuiLogrocket.75581de58a3e54d84a91.js.br +0 -0
- package/dist/public/js/emuiLogrocket.75581de58a3e54d84a91.js.gz +0 -0
- package/dist/public/js/emuiLogrocket.75581de58a3e54d84a91.js.map +1 -0
- package/dist/types/lib/logrocket.d.ts +27 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/dist/umd/index.js +14 -14
- package/dist/umd/index.js.br +0 -0
- package/dist/umd/index.js.gz +0 -0
- package/dist/umd/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/public/js/emuiLogrocket.86ccf84c21fc8954ce9e.js.br +0 -0
- package/dist/public/js/emuiLogrocket.86ccf84c21fc8954ce9e.js.gz +0 -0
- package/dist/public/js/emuiLogrocket.86ccf84c21fc8954ce9e.js.map +0 -1
package/dist/cjs/logrocket.js
CHANGED
|
@@ -44,6 +44,15 @@ const defaultOptions = {
|
|
|
44
44
|
}
|
|
45
45
|
},
|
|
46
46
|
dom: {
|
|
47
|
+
hiddenAttributes: [
|
|
48
|
+
"aria-label",
|
|
49
|
+
"aria-labelledby",
|
|
50
|
+
"aria-describedby",
|
|
51
|
+
"aria-details",
|
|
52
|
+
"aria-errormessage",
|
|
53
|
+
"aria-valuetext",
|
|
54
|
+
"aria-placeholder"
|
|
55
|
+
],
|
|
47
56
|
inputSanitizer: "lipsum"
|
|
48
57
|
},
|
|
49
58
|
mergeIframes: true,
|
|
@@ -74,13 +83,22 @@ const defaultOptions = {
|
|
|
74
83
|
childDomains: window.emui?.logRocketConfig?.childDomains ?? null,
|
|
75
84
|
parentDomain: window.emui?.logRocketConfig?.parentDomain ?? null
|
|
76
85
|
};
|
|
77
|
-
const initLogRocket = (
|
|
78
|
-
const {
|
|
86
|
+
const initLogRocket = (options) => {
|
|
87
|
+
const {
|
|
88
|
+
appId = window.emui?.logRocketConfig?.appId,
|
|
89
|
+
isReact = true,
|
|
90
|
+
...rest
|
|
91
|
+
} = options ?? {};
|
|
92
|
+
if (!appId) {
|
|
93
|
+
throw new Error(
|
|
94
|
+
"LogRocket appId is required to initialize LogRocket. Either pass it as parameter or set window.emui.logRocketConfig.appId"
|
|
95
|
+
);
|
|
96
|
+
}
|
|
79
97
|
if (window.location.hostname === "localhost" && process.env.LOGROCKET_ENABLE_ON_LOCALHOST !== "true") {
|
|
80
98
|
console.info("LogRocket is not initialized in localhost");
|
|
81
99
|
return;
|
|
82
100
|
}
|
|
83
|
-
import_logrocket.default.init(
|
|
101
|
+
import_logrocket.default.init(appId, { ...defaultOptions, ...rest });
|
|
84
102
|
if (isReact) {
|
|
85
103
|
setupLogRocketReact(import_logrocket.default);
|
|
86
104
|
}
|
package/dist/esm/logrocket.js
CHANGED
|
@@ -10,6 +10,15 @@ const defaultOptions = {
|
|
|
10
10
|
}
|
|
11
11
|
},
|
|
12
12
|
dom: {
|
|
13
|
+
hiddenAttributes: [
|
|
14
|
+
"aria-label",
|
|
15
|
+
"aria-labelledby",
|
|
16
|
+
"aria-describedby",
|
|
17
|
+
"aria-details",
|
|
18
|
+
"aria-errormessage",
|
|
19
|
+
"aria-valuetext",
|
|
20
|
+
"aria-placeholder"
|
|
21
|
+
],
|
|
13
22
|
inputSanitizer: "lipsum"
|
|
14
23
|
},
|
|
15
24
|
mergeIframes: true,
|
|
@@ -40,13 +49,22 @@ const defaultOptions = {
|
|
|
40
49
|
childDomains: window.emui?.logRocketConfig?.childDomains ?? null,
|
|
41
50
|
parentDomain: window.emui?.logRocketConfig?.parentDomain ?? null
|
|
42
51
|
};
|
|
43
|
-
const initLogRocket = (
|
|
44
|
-
const {
|
|
52
|
+
const initLogRocket = (options) => {
|
|
53
|
+
const {
|
|
54
|
+
appId = window.emui?.logRocketConfig?.appId,
|
|
55
|
+
isReact = true,
|
|
56
|
+
...rest
|
|
57
|
+
} = options ?? {};
|
|
58
|
+
if (!appId) {
|
|
59
|
+
throw new Error(
|
|
60
|
+
"LogRocket appId is required to initialize LogRocket. Either pass it as parameter or set window.emui.logRocketConfig.appId"
|
|
61
|
+
);
|
|
62
|
+
}
|
|
45
63
|
if (window.location.hostname === "localhost" && process.env.LOGROCKET_ENABLE_ON_LOCALHOST !== "true") {
|
|
46
64
|
console.info("LogRocket is not initialized in localhost");
|
|
47
65
|
return;
|
|
48
66
|
}
|
|
49
|
-
LogRocket.init(
|
|
67
|
+
LogRocket.init(appId, { ...defaultOptions, ...rest });
|
|
50
68
|
if (isReact) {
|
|
51
69
|
setupLogRocketReact(LogRocket);
|
|
52
70
|
}
|
package/dist/public/index.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!doctype html><html lang="en"><head><meta charset="UTF-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width,initial-scale=1"/><title>Library Boilerplate</title><script defer="defer" src="js/emuiLogrocket.
|
|
1
|
+
<!doctype html><html lang="en"><head><meta charset="UTF-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width,initial-scale=1"/><title>Library Boilerplate</title><script defer="defer" src="js/emuiLogrocket.75581de58a3e54d84a91.js"></script></head><body></body></html>
|