@elliemae/pui-logrocket 1.1.22 → 1.1.24
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/build/docs/404.html +2 -2
- package/build/docs/api/functions/buildLogRocketQueryParams/index.html +2 -2
- package/build/docs/api/functions/hasUserConsentedToSessionRecording/index.html +2 -2
- package/build/docs/api/functions/initLogRocket/index.html +2 -2
- package/build/docs/api/index.html +2 -2
- package/build/docs/api/type-aliases/LROptions/index.html +2 -2
- package/build/docs/api/variables/LogRocket/index.html +2 -2
- package/build/docs/assets/js/7876.fa67dc5d.js +1 -0
- package/build/docs/assets/js/e376fc56.9a666ff8.js +1 -0
- package/build/docs/assets/js/{main.8c79b174.js → main.5d92fee2.js} +2 -2
- package/build/docs/assets/js/runtime~main.2cd86db9.js +1 -0
- package/build/docs/compliance/index.html +2 -2
- package/build/docs/index.html +2 -2
- package/build/docs/usage-guide/index.html +2 -2
- package/dist/cjs/logrocket.js +54 -48
- package/dist/esm/logrocket.js +54 -48
- package/dist/public/index.html +1 -1
- package/dist/public/js/{emuiLogrocket.ae5d2d6ed12138c19c6a.js → emuiLogrocket.cdfd912944a1099322a6.js} +15 -15
- package/dist/public/js/emuiLogrocket.cdfd912944a1099322a6.js.br +0 -0
- package/dist/public/js/emuiLogrocket.cdfd912944a1099322a6.js.gz +0 -0
- package/dist/public/js/emuiLogrocket.cdfd912944a1099322a6.js.map +1 -0
- 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/build/docs/assets/js/7876.2b2a5258.js +0 -1
- package/build/docs/assets/js/e376fc56.26bfdc88.js +0 -1
- package/build/docs/assets/js/runtime~main.610299af.js +0 -1
- package/dist/public/js/emuiLogrocket.ae5d2d6ed12138c19c6a.js.br +0 -0
- package/dist/public/js/emuiLogrocket.ae5d2d6ed12138c19c6a.js.gz +0 -0
- package/dist/public/js/emuiLogrocket.ae5d2d6ed12138c19c6a.js.map +0 -1
- /package/build/docs/assets/js/{main.8c79b174.js.LICENSE.txt → main.5d92fee2.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{"use strict";var e,a,r,t,c,o={},n={};function f(e){var a=n[e];if(void 0!==a)return a.exports;var r=n[e]={id:e,loaded:!1,exports:{}};return o[e].call(r.exports,r,r.exports,f),r.loaded=!0,r.exports}f.m=o,f.c=n,e=[],f.O=(a,r,t,c)=>{if(!r){var o=1/0;for(i=0;i<e.length;i++){for(var[r,t,c]=e[i],n=!0,d=0;d<r.length;d++)(!1&c||o>=c)&&Object.keys(f.O).every(e=>f.O[e](r[d]))?r.splice(d--,1):(n=!1,c<o&&(o=c));if(n){e.splice(i--,1);var b=t();void 0!==b&&(a=b)}}return a}c=c||0;for(var i=e.length;i>0&&e[i-1][2]>c;i--)e[i]=e[i-1];e[i]=[r,t,c]},f.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return f.d(a,{a:a}),a},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,f.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var c=Object.create(null);f.r(c);var o={};a=a||[null,r({}),r([]),r(r)];for(var n=2&t&&e;("object"==typeof n||"function"==typeof n)&&!~a.indexOf(n);n=r(n))Object.getOwnPropertyNames(n).forEach(a=>o[a]=()=>e[a]);return o.default=()=>e,f.d(c,o),c},f.d=(e,a)=>{for(var r in a)f.o(a,r)&&!f.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:a[r]})},f.f={},f.e=e=>Promise.all(Object.keys(f.f).reduce((a,r)=>(f.f[r](e,a),a),[])),f.u=e=>"assets/js/"+({295:"51c4ceb1",594:"5e8c322a",2076:"common",3361:"c377a04b",3365:"ed616b60",3480:"e376fc56",4319:"211c08f1",4804:"7fcbe1af",5742:"aba21aa0",5754:"acaa8c75",5760:"552a934f",5908:"04ee7372",7098:"a7bd4aaa",8401:"17896441",9048:"a94703ab",9647:"5e95c892"}[e]||e)+"."+{295:"093ba7f1",483:"18c7d7f8",594:"c664acf5",638:"c0cb1214",654:"0e97a121",764:"32783b8e",967:"d428fcf6",1138:"0146d568",1370:"6030438c",2076:"8547976e",2180:"f0da5316",2327:"71c63b25",2706:"74774645",3308:"d74e7457",3346:"2d02191e",3361:"52a5f214",3365:"d40b0073",3480:"9a666ff8",3725:"32111a5b",3767:"901af261",3899:"94243d47",4167:"30874822",4319:"f5d0523b",4359:"6536c7a0",4390:"744aab40",4413:"e614d609",4437:"d20bf1a5",4453:"ef8b090c",4632:"022dd4fb",4804:"5999b9e8",4860:"cfa79720",4885:"c75ea3d3",5168:"6a540b12",5179:"602553d7",5182:"a25782fe",5742:"a5d4e000",5754:"8cf880ff",5760:"ae3440c0",5820:"2cd5bf53",5908:"f01cb88f",6143:"8bf840e9",6340:"82ac9c75",6376:"0670e68d",6603:"cbc20a0f",6761:"534633c6",6873:"44d5e277",7039:"3ca79f91",7098:"e4116c2b",7204:"1ce9a9b1",7616:"ead36533",7666:"b5b42a91",7876:"fa67dc5d",8071:"d2fbda84",8401:"3bfd4ac7",8907:"4424af8f",9048:"3a26dd85",9647:"dfb02a97",9748:"cc3f89d3"}[e]+".js",f.miniCssF=e=>{},f.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),t={},c="@elliemae/pui-logrocket:",f.l=(e,a,r,o)=>{if(t[e])t[e].push(a);else{var n,d;if(void 0!==r)for(var b=document.getElementsByTagName("script"),i=0;i<b.length;i++){var l=b[i];if(l.getAttribute("src")==e||l.getAttribute("data-webpack")==c+r){n=l;break}}n||(d=!0,(n=document.createElement("script")).charset="utf-8",f.nc&&n.setAttribute("nonce",f.nc),n.setAttribute("data-webpack",c+r),n.src=e),t[e]=[a];var u=(a,r)=>{n.onerror=n.onload=null,clearTimeout(s);var c=t[e];if(delete t[e],n.parentNode&&n.parentNode.removeChild(n),c&&c.forEach(e=>e(r)),a)return a(r)},s=setTimeout(u.bind(null,void 0,{type:"timeout",target:n}),12e4);n.onerror=u.bind(null,n.onerror),n.onload=u.bind(null,n.onload),d&&document.head.appendChild(n)}},f.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},f.p="/logrocket/",f.gca=function(e){return e={17896441:"8401","51c4ceb1":"295","5e8c322a":"594",common:"2076",c377a04b:"3361",ed616b60:"3365",e376fc56:"3480","211c08f1":"4319","7fcbe1af":"4804",aba21aa0:"5742",acaa8c75:"5754","552a934f":"5760","04ee7372":"5908",a7bd4aaa:"7098",a94703ab:"9048","5e95c892":"9647"}[e]||e,f.p+f.u(e)},(()=>{var e={5354:0,1869:0};f.f.j=(a,r)=>{var t=f.o(e,a)?e[a]:void 0;if(0!==t)if(t)r.push(t[2]);else if(/^(1869|5354)$/.test(a))e[a]=0;else{var c=new Promise((r,c)=>t=e[a]=[r,c]);r.push(t[2]=c);var o=f.p+f.u(a),n=new Error;f.l(o,r=>{if(f.o(e,a)&&(0!==(t=e[a])&&(e[a]=void 0),t)){var c=r&&("load"===r.type?"missing":r.type),o=r&&r.target&&r.target.src;n.message="Loading chunk "+a+" failed.\n("+c+": "+o+")",n.name="ChunkLoadError",n.type=c,n.request=o,t[1](n)}},"chunk-"+a,a)}},f.O.j=a=>0===e[a];var a=(a,r)=>{var t,c,[o,n,d]=r,b=0;if(o.some(a=>0!==e[a])){for(t in n)f.o(n,t)&&(f.m[t]=n[t]);if(d)var i=d(f)}for(a&&a(r);b<o.length;b++)c=o[b],f.o(e,c)&&e[c]&&e[c][0](),e[c]=0;return f.O(i)},r=globalThis.webpackChunk_elliemae_pui_logrocket=globalThis.webpackChunk_elliemae_pui_logrocket||[];r.forEach(a.bind(null,0)),r.push=a.bind(null,r.push.bind(r))})()})();
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
<meta charset="UTF-8">
|
|
5
5
|
<meta name="generator" content="Docusaurus v3.9.2">
|
|
6
6
|
<title data-rh="true">Compliance Requirements | LogRocket</title><meta data-rh="true" name="viewport" content="width=device-width,initial-scale=1"><meta data-rh="true" name="twitter:card" content="summary_large_image"><meta data-rh="true" property="og:url" content="https://pui.ice.com/logrocket/compliance"><meta data-rh="true" property="og:locale" content="en"><meta data-rh="true" name="docusaurus_locale" content="en"><meta data-rh="true" name="docsearch:language" content="en"><meta data-rh="true" name="docusaurus_version" content="current"><meta data-rh="true" name="docusaurus_tag" content="docs-default-current"><meta data-rh="true" name="docsearch:version" content="current"><meta data-rh="true" name="docsearch:docusaurus_tag" content="docs-default-current"><meta data-rh="true" property="og:title" content="Compliance Requirements | LogRocket"><meta data-rh="true" name="description" content="Due to wiretapping & privacy laws in certain jurisdictions, it is essential to ensure that our session recording practices comply with local regulations. Below are the key compliance requirements we need to adhere to when using LogRocket for recording user sessions and activities,"><meta data-rh="true" property="og:description" content="Due to wiretapping & privacy laws in certain jurisdictions, it is essential to ensure that our session recording practices comply with local regulations. Below are the key compliance requirements we need to adhere to when using LogRocket for recording user sessions and activities,"><link data-rh="true" rel="icon" href="/logrocket/img/favicon.ico"><link data-rh="true" rel="canonical" href="https://pui.ice.com/logrocket/compliance"><link data-rh="true" rel="alternate" href="https://pui.ice.com/logrocket/compliance" hreflang="en"><link data-rh="true" rel="alternate" href="https://pui.ice.com/logrocket/compliance" hreflang="x-default"><script data-rh="true" type="application/ld+json">{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Compliance Requirements","item":"https://pui.ice.com/logrocket/compliance"}]}</script><link rel="stylesheet" href="/logrocket/assets/css/styles.48d5ef50.css">
|
|
7
|
-
<script src="/logrocket/assets/js/runtime~main.
|
|
8
|
-
<script src="/logrocket/assets/js/main.
|
|
7
|
+
<script src="/logrocket/assets/js/runtime~main.2cd86db9.js" defer="defer"></script>
|
|
8
|
+
<script src="/logrocket/assets/js/main.5d92fee2.js" defer="defer"></script>
|
|
9
9
|
</head>
|
|
10
10
|
<body class="navigation-with-keyboard">
|
|
11
11
|
<svg style="display: none;"><defs>
|
package/build/docs/index.html
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
<meta charset="UTF-8">
|
|
5
5
|
<meta name="generator" content="Docusaurus v3.9.2">
|
|
6
6
|
<title data-rh="true">Getting Started | LogRocket</title><meta data-rh="true" name="viewport" content="width=device-width,initial-scale=1"><meta data-rh="true" name="twitter:card" content="summary_large_image"><meta data-rh="true" property="og:url" content="https://pui.ice.com/logrocket/"><meta data-rh="true" property="og:locale" content="en"><meta data-rh="true" name="docusaurus_locale" content="en"><meta data-rh="true" name="docsearch:language" content="en"><meta data-rh="true" name="docusaurus_version" content="current"><meta data-rh="true" name="docusaurus_tag" content="docs-default-current"><meta data-rh="true" name="docsearch:version" content="current"><meta data-rh="true" name="docsearch:docusaurus_tag" content="docs-default-current"><meta data-rh="true" property="og:title" content="Getting Started | LogRocket"><meta data-rh="true" name="description" content="UI Platform LogRocket library standardizes the way we integrate LogRocket into our applications."><meta data-rh="true" property="og:description" content="UI Platform LogRocket library standardizes the way we integrate LogRocket into our applications."><link data-rh="true" rel="icon" href="/logrocket/img/favicon.ico"><link data-rh="true" rel="canonical" href="https://pui.ice.com/logrocket/"><link data-rh="true" rel="alternate" href="https://pui.ice.com/logrocket/" hreflang="en"><link data-rh="true" rel="alternate" href="https://pui.ice.com/logrocket/" hreflang="x-default"><script data-rh="true">function insertBanner(){var n=document.createElement("div");n.id="__docusaurus-base-url-issue-banner-container";n.innerHTML='\n<div id="__docusaurus-base-url-issue-banner" style="border: thick solid red; background-color: rgb(255, 230, 179); margin: 20px; padding: 20px; font-size: 20px;">\n <p style="font-weight: bold; font-size: 30px;">Your Docusaurus site did not load properly.</p>\n <p>A very common reason is a wrong site <a href="https://docusaurus.io/docs/docusaurus.config.js/#baseUrl" style="font-weight: bold;">baseUrl configuration</a>.</p>\n <p>Current configured baseUrl = <span style="font-weight: bold; color: red;">/logrocket/</span> </p>\n <p>We suggest trying baseUrl = <span id="__docusaurus-base-url-issue-banner-suggestion-container" style="font-weight: bold; color: green;"></span></p>\n</div>\n',document.body.prepend(n);var e=document.getElementById("__docusaurus-base-url-issue-banner-suggestion-container"),o=window.location.pathname,s="/"===o.substr(-1)?o:o+"/";e.innerHTML=s}document.addEventListener("DOMContentLoaded",function(){void 0===window.docusaurus&&insertBanner()})</script><script data-rh="true" type="application/ld+json">{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Getting Started","item":"https://pui.ice.com/logrocket/"}]}</script><link rel="stylesheet" href="/logrocket/assets/css/styles.48d5ef50.css">
|
|
7
|
-
<script src="/logrocket/assets/js/runtime~main.
|
|
8
|
-
<script src="/logrocket/assets/js/main.
|
|
7
|
+
<script src="/logrocket/assets/js/runtime~main.2cd86db9.js" defer="defer"></script>
|
|
8
|
+
<script src="/logrocket/assets/js/main.5d92fee2.js" defer="defer"></script>
|
|
9
9
|
</head>
|
|
10
10
|
<body class="navigation-with-keyboard">
|
|
11
11
|
<svg style="display: none;"><defs>
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
<meta charset="UTF-8">
|
|
5
5
|
<meta name="generator" content="Docusaurus v3.9.2">
|
|
6
6
|
<title data-rh="true">Usage Guide | LogRocket</title><meta data-rh="true" name="viewport" content="width=device-width,initial-scale=1"><meta data-rh="true" name="twitter:card" content="summary_large_image"><meta data-rh="true" property="og:url" content="https://pui.ice.com/logrocket/usage-guide"><meta data-rh="true" property="og:locale" content="en"><meta data-rh="true" name="docusaurus_locale" content="en"><meta data-rh="true" name="docsearch:language" content="en"><meta data-rh="true" name="docusaurus_version" content="current"><meta data-rh="true" name="docusaurus_tag" content="docs-default-current"><meta data-rh="true" name="docsearch:version" content="current"><meta data-rh="true" name="docsearch:docusaurus_tag" content="docs-default-current"><meta data-rh="true" property="og:title" content="Usage Guide | LogRocket"><meta data-rh="true" name="description" content="UI Platform LogRocket library standardizes the way we integrate LogRocket into our applications."><meta data-rh="true" property="og:description" content="UI Platform LogRocket library standardizes the way we integrate LogRocket into our applications."><link data-rh="true" rel="icon" href="/logrocket/img/favicon.ico"><link data-rh="true" rel="canonical" href="https://pui.ice.com/logrocket/usage-guide"><link data-rh="true" rel="alternate" href="https://pui.ice.com/logrocket/usage-guide" hreflang="en"><link data-rh="true" rel="alternate" href="https://pui.ice.com/logrocket/usage-guide" hreflang="x-default"><script data-rh="true" type="application/ld+json">{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Usage Guide","item":"https://pui.ice.com/logrocket/usage-guide"}]}</script><link rel="stylesheet" href="/logrocket/assets/css/styles.48d5ef50.css">
|
|
7
|
-
<script src="/logrocket/assets/js/runtime~main.
|
|
8
|
-
<script src="/logrocket/assets/js/main.
|
|
7
|
+
<script src="/logrocket/assets/js/runtime~main.2cd86db9.js" defer="defer"></script>
|
|
8
|
+
<script src="/logrocket/assets/js/main.5d92fee2.js" defer="defer"></script>
|
|
9
9
|
</head>
|
|
10
10
|
<body class="navigation-with-keyboard">
|
|
11
11
|
<svg style="display: none;"><defs>
|
package/dist/cjs/logrocket.js
CHANGED
|
@@ -60,59 +60,65 @@ const getParentDomain = () => {
|
|
|
60
60
|
return parentDomain;
|
|
61
61
|
};
|
|
62
62
|
const removeCurrentWindowDomain = (domains) => {
|
|
63
|
-
if (!domains) return null;
|
|
63
|
+
if (!domains || domains.length === 0) return null;
|
|
64
64
|
return domains.filter((domain) => domain !== window.location.origin);
|
|
65
65
|
};
|
|
66
|
-
const getDefaultOptions = () =>
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
"aria-labelledby",
|
|
78
|
-
"aria-describedby",
|
|
79
|
-
"aria-details",
|
|
80
|
-
"aria-errormessage",
|
|
81
|
-
"aria-valuetext",
|
|
82
|
-
"aria-placeholder"
|
|
83
|
-
],
|
|
84
|
-
inputSanitizer: "lipsum",
|
|
85
|
-
isEnabled: false,
|
|
86
|
-
textSanitizer: true
|
|
87
|
-
},
|
|
88
|
-
mergeIframes: true,
|
|
89
|
-
network: {
|
|
90
|
-
requestSanitizer: (request) => {
|
|
91
|
-
const sanitizedRequest = { ...request };
|
|
92
|
-
if (request.headers.Authorization) {
|
|
93
|
-
sanitizedRequest.headers.Authorization = "**redacted**";
|
|
66
|
+
const getDefaultOptions = () => {
|
|
67
|
+
const filteredChildDomains = removeCurrentWindowDomain(
|
|
68
|
+
window.emui?.logRocketConfig?.childDomains
|
|
69
|
+
);
|
|
70
|
+
const parentDomain = window.emui?.logRocketConfig?.parentDomain ?? getParentDomain();
|
|
71
|
+
return {
|
|
72
|
+
browser: {
|
|
73
|
+
urlSanitizer: (url) => {
|
|
74
|
+
let sanitizedUrl = url;
|
|
75
|
+
sanitizedUrl = sanitizedUrl.replace(/code=([^&]*)/, "code=REDACTED");
|
|
76
|
+
return sanitizedUrl;
|
|
94
77
|
}
|
|
95
|
-
return {
|
|
96
|
-
...sanitizedRequest,
|
|
97
|
-
body: null
|
|
98
|
-
};
|
|
99
78
|
},
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
79
|
+
dom: {
|
|
80
|
+
hiddenAttributes: [
|
|
81
|
+
"aria-label",
|
|
82
|
+
"aria-labelledby",
|
|
83
|
+
"aria-describedby",
|
|
84
|
+
"aria-details",
|
|
85
|
+
"aria-errormessage",
|
|
86
|
+
"aria-valuetext",
|
|
87
|
+
"aria-placeholder"
|
|
88
|
+
],
|
|
89
|
+
inputSanitizer: "lipsum",
|
|
90
|
+
isEnabled: false,
|
|
91
|
+
textSanitizer: true
|
|
92
|
+
},
|
|
93
|
+
mergeIframes: true,
|
|
94
|
+
network: {
|
|
95
|
+
requestSanitizer: (request) => {
|
|
96
|
+
const sanitizedRequest = { ...request };
|
|
97
|
+
if (request.headers.Authorization) {
|
|
98
|
+
sanitizedRequest.headers.Authorization = "**redacted**";
|
|
99
|
+
}
|
|
100
|
+
return {
|
|
101
|
+
...sanitizedRequest,
|
|
102
|
+
body: null
|
|
103
|
+
};
|
|
104
|
+
},
|
|
105
|
+
responseSanitizer: (response) => {
|
|
106
|
+
if (response.headers["x-secret"]) {
|
|
107
|
+
return null;
|
|
108
|
+
}
|
|
109
|
+
return {
|
|
110
|
+
...response,
|
|
111
|
+
body: null
|
|
112
|
+
};
|
|
103
113
|
}
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
rootHostname: window.emui?.logRocketConfig?.rootHostname ?? ".ice.com",
|
|
113
|
-
childDomains: removeCurrentWindowDomain(window.emui?.logRocketConfig?.childDomains) ?? null,
|
|
114
|
-
parentDomain: window.emui?.logRocketConfig?.parentDomain ?? getParentDomain()
|
|
115
|
-
});
|
|
114
|
+
},
|
|
115
|
+
release: process?.env?.APP_VERSION,
|
|
116
|
+
// app sdk based applications use this env variable to specify the app code version
|
|
117
|
+
rootHostname: window.emui?.logRocketConfig?.rootHostname ?? ".ice.com",
|
|
118
|
+
...filteredChildDomains && filteredChildDomains.length > 0 ? { childDomains: filteredChildDomains } : {},
|
|
119
|
+
...parentDomain ? { parentDomain } : {}
|
|
120
|
+
};
|
|
121
|
+
};
|
|
116
122
|
const hasUserConsentedForLogRocketInit = () => {
|
|
117
123
|
if (window.OnetrustActiveGroups) {
|
|
118
124
|
return window.OnetrustActiveGroups.includes("C0002");
|
package/dist/esm/logrocket.js
CHANGED
|
@@ -24,59 +24,65 @@ const getParentDomain = () => {
|
|
|
24
24
|
return parentDomain;
|
|
25
25
|
};
|
|
26
26
|
const removeCurrentWindowDomain = (domains) => {
|
|
27
|
-
if (!domains) return null;
|
|
27
|
+
if (!domains || domains.length === 0) return null;
|
|
28
28
|
return domains.filter((domain) => domain !== window.location.origin);
|
|
29
29
|
};
|
|
30
|
-
const getDefaultOptions = () =>
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
"aria-labelledby",
|
|
42
|
-
"aria-describedby",
|
|
43
|
-
"aria-details",
|
|
44
|
-
"aria-errormessage",
|
|
45
|
-
"aria-valuetext",
|
|
46
|
-
"aria-placeholder"
|
|
47
|
-
],
|
|
48
|
-
inputSanitizer: "lipsum",
|
|
49
|
-
isEnabled: false,
|
|
50
|
-
textSanitizer: true
|
|
51
|
-
},
|
|
52
|
-
mergeIframes: true,
|
|
53
|
-
network: {
|
|
54
|
-
requestSanitizer: (request) => {
|
|
55
|
-
const sanitizedRequest = { ...request };
|
|
56
|
-
if (request.headers.Authorization) {
|
|
57
|
-
sanitizedRequest.headers.Authorization = "**redacted**";
|
|
30
|
+
const getDefaultOptions = () => {
|
|
31
|
+
const filteredChildDomains = removeCurrentWindowDomain(
|
|
32
|
+
window.emui?.logRocketConfig?.childDomains
|
|
33
|
+
);
|
|
34
|
+
const parentDomain = window.emui?.logRocketConfig?.parentDomain ?? getParentDomain();
|
|
35
|
+
return {
|
|
36
|
+
browser: {
|
|
37
|
+
urlSanitizer: (url) => {
|
|
38
|
+
let sanitizedUrl = url;
|
|
39
|
+
sanitizedUrl = sanitizedUrl.replace(/code=([^&]*)/, "code=REDACTED");
|
|
40
|
+
return sanitizedUrl;
|
|
58
41
|
}
|
|
59
|
-
return {
|
|
60
|
-
...sanitizedRequest,
|
|
61
|
-
body: null
|
|
62
|
-
};
|
|
63
42
|
},
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
43
|
+
dom: {
|
|
44
|
+
hiddenAttributes: [
|
|
45
|
+
"aria-label",
|
|
46
|
+
"aria-labelledby",
|
|
47
|
+
"aria-describedby",
|
|
48
|
+
"aria-details",
|
|
49
|
+
"aria-errormessage",
|
|
50
|
+
"aria-valuetext",
|
|
51
|
+
"aria-placeholder"
|
|
52
|
+
],
|
|
53
|
+
inputSanitizer: "lipsum",
|
|
54
|
+
isEnabled: false,
|
|
55
|
+
textSanitizer: true
|
|
56
|
+
},
|
|
57
|
+
mergeIframes: true,
|
|
58
|
+
network: {
|
|
59
|
+
requestSanitizer: (request) => {
|
|
60
|
+
const sanitizedRequest = { ...request };
|
|
61
|
+
if (request.headers.Authorization) {
|
|
62
|
+
sanitizedRequest.headers.Authorization = "**redacted**";
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
...sanitizedRequest,
|
|
66
|
+
body: null
|
|
67
|
+
};
|
|
68
|
+
},
|
|
69
|
+
responseSanitizer: (response) => {
|
|
70
|
+
if (response.headers["x-secret"]) {
|
|
71
|
+
return null;
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
...response,
|
|
75
|
+
body: null
|
|
76
|
+
};
|
|
67
77
|
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
rootHostname: window.emui?.logRocketConfig?.rootHostname ?? ".ice.com",
|
|
77
|
-
childDomains: removeCurrentWindowDomain(window.emui?.logRocketConfig?.childDomains) ?? null,
|
|
78
|
-
parentDomain: window.emui?.logRocketConfig?.parentDomain ?? getParentDomain()
|
|
79
|
-
});
|
|
78
|
+
},
|
|
79
|
+
release: process?.env?.APP_VERSION,
|
|
80
|
+
// app sdk based applications use this env variable to specify the app code version
|
|
81
|
+
rootHostname: window.emui?.logRocketConfig?.rootHostname ?? ".ice.com",
|
|
82
|
+
...filteredChildDomains && filteredChildDomains.length > 0 ? { childDomains: filteredChildDomains } : {},
|
|
83
|
+
...parentDomain ? { parentDomain } : {}
|
|
84
|
+
};
|
|
85
|
+
};
|
|
80
86
|
const hasUserConsentedForLogRocketInit = () => {
|
|
81
87
|
if (window.OnetrustActiveGroups) {
|
|
82
88
|
return window.OnetrustActiveGroups.includes("C0002");
|
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>LogRocket Test</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>LogRocket Test</title><script defer="defer" src="js/emuiLogrocket.cdfd912944a1099322a6.js"></script></head><body><h1>LogRocket Test</h1><button id="testButton">Click me</button></body></html>
|