@elliemae/pui-logrocket 1.1.13 → 1.1.15
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/{e376fc56.9ff7097f.js → e376fc56.f1721c2d.js} +1 -1
- package/build/docs/assets/js/{main.895a7088.js → main.2b591930.js} +2 -2
- package/build/docs/assets/js/{runtime~main.98746855.js → runtime~main.9d15ff5d.js} +1 -1
- 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 +8 -8
- package/dist/esm/logrocket.js +8 -8
- package/dist/public/index.html +1 -1
- package/dist/public/js/{emuiLogrocket.1acc11e5f19822159f92.js → emuiLogrocket.62c31029c170ae19a379.js} +2 -2
- package/dist/public/js/emuiLogrocket.62c31029c170ae19a379.js.br +0 -0
- package/dist/public/js/{emuiLogrocket.1acc11e5f19822159f92.js.gz → emuiLogrocket.62c31029c170ae19a379.js.gz} +0 -0
- package/dist/public/js/emuiLogrocket.62c31029c170ae19a379.js.map +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/dist/umd/index.js +1 -1
- 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.1acc11e5f19822159f92.js.br +0 -0
- package/dist/public/js/emuiLogrocket.1acc11e5f19822159f92.js.map +0 -1
- /package/build/docs/assets/js/{main.895a7088.js.LICENSE.txt → main.2b591930.js.LICENSE.txt} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e,a,r,t,o,c={},f={};function d(e){var a=f[e];if(void 0!==a)return a.exports;var r=f[e]={id:e,loaded:!1,exports:{}};return c[e].call(r.exports,r,r.exports,d),r.loaded=!0,r.exports}d.m=c,d.c=f,e=[],d.O=(a,r,t,o)=>{if(!r){var c=1/0;for(i=0;i<e.length;i++){for(var[r,t,o]=e[i],f=!0,n=0;n<r.length;n++)(!1&o||c>=o)&&Object.keys(d.O).every(e=>d.O[e](r[n]))?r.splice(n--,1):(f=!1,o<c&&(c=o));if(f){e.splice(i--,1);var b=t();void 0!==b&&(a=b)}}return a}o=o||0;for(var i=e.length;i>0&&e[i-1][2]>o;i--)e[i]=e[i-1];e[i]=[r,t,o]},d.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return d.d(a,{a:a}),a},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,d.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 o=Object.create(null);d.r(o);var c={};a=a||[null,r({}),r([]),r(r)];for(var f=2&t&&e;("object"==typeof f||"function"==typeof f)&&!~a.indexOf(f);f=r(f))Object.getOwnPropertyNames(f).forEach(a=>c[a]=()=>e[a]);return c.default=()=>e,d.d(o,c),o},d.d=(e,a)=>{for(var r in a)d.o(a,r)&&!d.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:a[r]})},d.f={},d.e=e=>Promise.all(Object.keys(d.f).reduce((a,r)=>(d.f[r](e,a),a),[])),d.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)+"."+{33:"26b2760e",295:"e88fb182",407:"1609258d",459:"0ef6028a",594:"86d2fc4a",638:"a490f71f",654:"d3bf8f92",967:"54c4bee1",1519:"382051d0",1653:"0f512a56",1784:"d8d3eb6f",1945:"f17ce4cb",1991:"7f866f21",2045:"1bebedee",2076:"783bea07",2776:"108cd80f",3038:"002397e7",3070:"7cbc892b",3361:"e8bab181",3365:"5ce87321",3480:"
|
|
1
|
+
(()=>{"use strict";var e,a,r,t,o,c={},f={};function d(e){var a=f[e];if(void 0!==a)return a.exports;var r=f[e]={id:e,loaded:!1,exports:{}};return c[e].call(r.exports,r,r.exports,d),r.loaded=!0,r.exports}d.m=c,d.c=f,e=[],d.O=(a,r,t,o)=>{if(!r){var c=1/0;for(i=0;i<e.length;i++){for(var[r,t,o]=e[i],f=!0,n=0;n<r.length;n++)(!1&o||c>=o)&&Object.keys(d.O).every(e=>d.O[e](r[n]))?r.splice(n--,1):(f=!1,o<c&&(c=o));if(f){e.splice(i--,1);var b=t();void 0!==b&&(a=b)}}return a}o=o||0;for(var i=e.length;i>0&&e[i-1][2]>o;i--)e[i]=e[i-1];e[i]=[r,t,o]},d.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return d.d(a,{a:a}),a},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,d.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 o=Object.create(null);d.r(o);var c={};a=a||[null,r({}),r([]),r(r)];for(var f=2&t&&e;("object"==typeof f||"function"==typeof f)&&!~a.indexOf(f);f=r(f))Object.getOwnPropertyNames(f).forEach(a=>c[a]=()=>e[a]);return c.default=()=>e,d.d(o,c),o},d.d=(e,a)=>{for(var r in a)d.o(a,r)&&!d.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:a[r]})},d.f={},d.e=e=>Promise.all(Object.keys(d.f).reduce((a,r)=>(d.f[r](e,a),a),[])),d.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)+"."+{33:"26b2760e",295:"e88fb182",407:"1609258d",459:"0ef6028a",594:"86d2fc4a",638:"a490f71f",654:"d3bf8f92",967:"54c4bee1",1519:"382051d0",1653:"0f512a56",1784:"d8d3eb6f",1945:"f17ce4cb",1991:"7f866f21",2045:"1bebedee",2076:"783bea07",2776:"108cd80f",3038:"002397e7",3070:"7cbc892b",3361:"e8bab181",3365:"5ce87321",3480:"f1721c2d",3899:"9ba4046a",4319:"d133fc82",4362:"e67b3c91",4804:"57ab9f7e",4860:"aa45023e",4931:"0293910b",5122:"7fe63ad9",5621:"853372b8",5742:"c2c2f2c9",5754:"be91209b",5760:"61bd8d58",5820:"c04e4b12",5908:"ce5efa70",6409:"6f06126b",6959:"110f49dd",7039:"0493dc3c",7098:"6aa43433",7299:"909bd2d8",7666:"f71add4d",7685:"feb9b2b8",7807:"9aa70b38",7860:"d45cb0c2",7868:"0076697f",7968:"92fc7d89",7997:"2ae474c8",8130:"4423e15c",8182:"16116f9a",8257:"8e164d61",8401:"6f8fb109",8587:"8653f695",8796:"163faa83",8907:"6cf12a5a",9048:"53aa43ca",9176:"d6ec3115",9647:"add994c9",9839:"6a9eb650"}[e]+".js",d.miniCssF=e=>{},d.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),t={},o="@elliemae/pui-logrocket:",d.l=(e,a,r,c)=>{if(t[e])t[e].push(a);else{var f,n;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")==o+r){f=l;break}}f||(n=!0,(f=document.createElement("script")).charset="utf-8",d.nc&&f.setAttribute("nonce",d.nc),f.setAttribute("data-webpack",o+r),f.src=e),t[e]=[a];var u=(a,r)=>{f.onerror=f.onload=null,clearTimeout(s);var o=t[e];if(delete t[e],f.parentNode&&f.parentNode.removeChild(f),o&&o.forEach(e=>e(r)),a)return a(r)},s=setTimeout(u.bind(null,void 0,{type:"timeout",target:f}),12e4);f.onerror=u.bind(null,f.onerror),f.onload=u.bind(null,f.onload),n&&document.head.appendChild(f)}},d.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},d.p="/logrocket/",d.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,d.p+d.u(e)},(()=>{var e={5354:0,1869:0};d.f.j=(a,r)=>{var t=d.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 o=new Promise((r,o)=>t=e[a]=[r,o]);r.push(t[2]=o);var c=d.p+d.u(a),f=new Error;d.l(c,r=>{if(d.o(e,a)&&(0!==(t=e[a])&&(e[a]=void 0),t)){var o=r&&("load"===r.type?"missing":r.type),c=r&&r.target&&r.target.src;f.message="Loading chunk "+a+" failed.\n("+o+": "+c+")",f.name="ChunkLoadError",f.type=o,f.request=c,t[1](f)}},"chunk-"+a,a)}},d.O.j=a=>0===e[a];var a=(a,r)=>{var t,o,[c,f,n]=r,b=0;if(c.some(a=>0!==e[a])){for(t in f)d.o(f,t)&&(d.m[t]=f[t]);if(n)var i=n(d)}for(a&&a(r);b<c.length;b++)o=c[b],d.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return d.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.9d15ff5d.js" defer="defer"></script>
|
|
8
|
+
<script src="/logrocket/assets/js/main.2b591930.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.9d15ff5d.js" defer="defer"></script>
|
|
8
|
+
<script src="/logrocket/assets/js/main.2b591930.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.9d15ff5d.js" defer="defer"></script>
|
|
8
|
+
<script src="/logrocket/assets/js/main.2b591930.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
|
@@ -140,6 +140,12 @@ const hasUserConsentedToSessionRecording = () => {
|
|
|
140
140
|
}
|
|
141
141
|
return false;
|
|
142
142
|
};
|
|
143
|
+
const getLRAppId = (appId) => {
|
|
144
|
+
const urlParams = new URLSearchParams(window.location.search);
|
|
145
|
+
const lrAppIdFromUrl = urlParams.get("lrAppId");
|
|
146
|
+
const lrAppIdFromWindow = window.emui?.logRocketConfig?.appId;
|
|
147
|
+
return lrAppIdFromUrl || appId || lrAppIdFromWindow || null;
|
|
148
|
+
};
|
|
143
149
|
const buildLogRocketQueryParams = () => {
|
|
144
150
|
const urlParams = new URLSearchParams();
|
|
145
151
|
urlParams.append(
|
|
@@ -147,15 +153,9 @@ const buildLogRocketQueryParams = () => {
|
|
|
147
153
|
hasUserConsentedToSessionRecording() === true ? "true" : "false"
|
|
148
154
|
);
|
|
149
155
|
urlParams.append("lrEnabled", isLogRocketDisabled() ? "false" : "true");
|
|
150
|
-
urlParams.append("lrAppId",
|
|
156
|
+
urlParams.append("lrAppId", getLRAppId() ?? "");
|
|
151
157
|
return urlParams.toString();
|
|
152
158
|
};
|
|
153
|
-
const getLRAppId = (appId) => {
|
|
154
|
-
const urlParams = new URLSearchParams(window.location.search);
|
|
155
|
-
const lrAppIdFromUrl = urlParams.get("lrAppId");
|
|
156
|
-
const lrAppIdFromWindow = window.emui?.logRocketConfig?.appId;
|
|
157
|
-
return lrAppIdFromUrl || appId || lrAppIdFromWindow || null;
|
|
158
|
-
};
|
|
159
159
|
const init = (options) => {
|
|
160
160
|
const { appId, isReact = true, ...rest } = options ?? {};
|
|
161
161
|
lrAppId = getLRAppId(appId);
|
|
@@ -198,4 +198,4 @@ const initLogRocket = (options) => {
|
|
|
198
198
|
init(options);
|
|
199
199
|
}
|
|
200
200
|
};
|
|
201
|
-
window.emui.logRocket = LogRocketLib;
|
|
201
|
+
window.emui.logRocket = window.emui.logRocket ?? LogRocketLib;
|
package/dist/esm/logrocket.js
CHANGED
|
@@ -104,6 +104,12 @@ const hasUserConsentedToSessionRecording = () => {
|
|
|
104
104
|
}
|
|
105
105
|
return false;
|
|
106
106
|
};
|
|
107
|
+
const getLRAppId = (appId) => {
|
|
108
|
+
const urlParams = new URLSearchParams(window.location.search);
|
|
109
|
+
const lrAppIdFromUrl = urlParams.get("lrAppId");
|
|
110
|
+
const lrAppIdFromWindow = window.emui?.logRocketConfig?.appId;
|
|
111
|
+
return lrAppIdFromUrl || appId || lrAppIdFromWindow || null;
|
|
112
|
+
};
|
|
107
113
|
const buildLogRocketQueryParams = () => {
|
|
108
114
|
const urlParams = new URLSearchParams();
|
|
109
115
|
urlParams.append(
|
|
@@ -111,15 +117,9 @@ const buildLogRocketQueryParams = () => {
|
|
|
111
117
|
hasUserConsentedToSessionRecording() === true ? "true" : "false"
|
|
112
118
|
);
|
|
113
119
|
urlParams.append("lrEnabled", isLogRocketDisabled() ? "false" : "true");
|
|
114
|
-
urlParams.append("lrAppId",
|
|
120
|
+
urlParams.append("lrAppId", getLRAppId() ?? "");
|
|
115
121
|
return urlParams.toString();
|
|
116
122
|
};
|
|
117
|
-
const getLRAppId = (appId) => {
|
|
118
|
-
const urlParams = new URLSearchParams(window.location.search);
|
|
119
|
-
const lrAppIdFromUrl = urlParams.get("lrAppId");
|
|
120
|
-
const lrAppIdFromWindow = window.emui?.logRocketConfig?.appId;
|
|
121
|
-
return lrAppIdFromUrl || appId || lrAppIdFromWindow || null;
|
|
122
|
-
};
|
|
123
123
|
const init = (options) => {
|
|
124
124
|
const { appId, isReact = true, ...rest } = options ?? {};
|
|
125
125
|
lrAppId = getLRAppId(appId);
|
|
@@ -162,7 +162,7 @@ const initLogRocket = (options) => {
|
|
|
162
162
|
init(options);
|
|
163
163
|
}
|
|
164
164
|
};
|
|
165
|
-
window.emui.logRocket = LogRocketLib;
|
|
165
|
+
window.emui.logRocket = window.emui.logRocket ?? LogRocketLib;
|
|
166
166
|
export {
|
|
167
167
|
LogRocket,
|
|
168
168
|
buildLogRocketQueryParams,
|
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.62c31029c170ae19a379.js"></script></head><body><h1>LogRocket Test</h1><button id="testButton">Click me</button></body></html>
|
|
@@ -40,6 +40,6 @@ Error generating stack: `+l.message+`
|
|
|
40
40
|
*
|
|
41
41
|
* This source code is licensed under the MIT license found in the
|
|
42
42
|
* LICENSE file in the root directory of this source tree.
|
|
43
|
-
*/function me(y,w){var Y=y.length;y.push(w);e:for(;0<Y;){var ue=Y-1>>>1,f=y[ue];if(0<s(f,w))y[ue]=w,y[Y]=f,Y=ue;else break e}}function Se(y){return y.length===0?null:y[0]}function ye(y){if(y.length===0)return null;var w=y[0],Y=y.pop();if(Y!==w){y[0]=Y;e:for(var ue=0,f=y.length,V=f>>>1;ue<V;){var fe=2*(ue+1)-1,de=y[fe],ee=fe+1,le=y[ee];if(0>s(de,Y))ee<f&&0>s(le,de)?(y[ue]=le,y[ee]=Y,ue=ee):(y[ue]=de,y[fe]=Y,ue=fe);else if(ee<f&&0>s(le,Y))y[ue]=le,y[ee]=Y,ue=ee;else break e}}return w}function s(y,w){var Y=y.sortIndex-w.sortIndex;return Y!==0?Y:y.id-w.id}if(typeof performance=="object"&&typeof performance.now=="function"){var h=performance;K.unstable_now=function(){return h.now()}}else{var p=Date,E=p.now();K.unstable_now=function(){return p.now()-E}}var M=[],P=[],I=1,A=null,z=3,L=!1,U=!1,C=!1,k=typeof setTimeout=="function"?setTimeout:null,c=typeof clearTimeout=="function"?clearTimeout:null,a=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function O(y){for(var w=Se(P);w!==null;){if(w.callback===null)ye(P);else if(w.startTime<=y)ye(P),w.sortIndex=w.expirationTime,me(M,w);else break;w=Se(P)}}function x(y){if(C=!1,O(y),!U)if(Se(M)!==null)U=!0,ne(j);else{var w=Se(P);w!==null&&te(x,w.startTime-y)}}function j(y,w){U=!1,C&&(C=!1,c(g),g=-1),L=!0;var Y=z;try{for(O(w),A=Se(M);A!==null&&(!(A.expirationTime>w)||y&&!F());){var ue=A.callback;if(typeof ue=="function"){A.callback=null,z=A.priorityLevel;var f=ue(A.expirationTime<=w);w=K.unstable_now(),typeof f=="function"?A.callback=f:A===Se(M)&&ye(M),O(w)}else ye(M);A=Se(M)}if(A!==null)var V=!0;else{var fe=Se(P);fe!==null&&te(x,fe.startTime-w),V=!1}return V}finally{A=null,z=Y,L=!1}}var N=!1,D=null,g=-1,S=5,Q=-1;function F(){return!(K.unstable_now()-Q<S)}function q(){if(D!==null){var y=K.unstable_now();Q=y;var w=!0;try{w=D(!0,y)}finally{w?G():(N=!1,D=null)}}else N=!1}var G;if(typeof a=="function")G=function(){a(q)};else if(typeof MessageChannel<"u"){var b=new MessageChannel,J=b.port2;b.port1.onmessage=q,G=function(){J.postMessage(null)}}else G=function(){k(q,0)};function ne(y){D=y,N||(N=!0,G())}function te(y,w){g=k(function(){y(K.unstable_now())},w)}K.unstable_IdlePriority=5,K.unstable_ImmediatePriority=1,K.unstable_LowPriority=4,K.unstable_NormalPriority=3,K.unstable_Profiling=null,K.unstable_UserBlockingPriority=2,K.unstable_cancelCallback=function(y){y.callback=null},K.unstable_continueExecution=function(){U||L||(U=!0,ne(j))},K.unstable_forceFrameRate=function(y){0>y||125<y?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):S=0<y?Math.floor(1e3/y):5},K.unstable_getCurrentPriorityLevel=function(){return z},K.unstable_getFirstCallbackNode=function(){return Se(M)},K.unstable_next=function(y){switch(z){case 1:case 2:case 3:var w=3;break;default:w=z}var Y=z;z=w;try{return y()}finally{z=Y}},K.unstable_pauseExecution=function(){},K.unstable_requestPaint=function(){},K.unstable_runWithPriority=function(y,w){switch(y){case 1:case 2:case 3:case 4:case 5:break;default:y=3}var Y=z;z=y;try{return w()}finally{z=Y}},K.unstable_scheduleCallback=function(y,w,Y){var ue=K.unstable_now();switch(typeof Y=="object"&&Y!==null?(Y=Y.delay,Y=typeof Y=="number"&&0<Y?ue+Y:ue):Y=ue,y){case 1:var f=-1;break;case 2:f=250;break;case 5:f=1073741823;break;case 4:f=1e4;break;default:f=5e3}return f=Y+f,y={id:I++,callback:w,priorityLevel:y,startTime:Y,expirationTime:f,sortIndex:-1},Y>ue?(y.sortIndex=Y,me(P,y),Se(M)===null&&y===Se(P)&&(C?(c(g),g=-1):C=!0,te(x,Y-ue))):(y.sortIndex=f,me(M,y),U||L||(U=!0,ne(j))),y},K.unstable_shouldYield=F,K.unstable_wrapCallback=function(y){var w=z;return function(){var Y=z;z=w;try{return y.apply(this,arguments)}finally{z=Y}}}},755:(ke,K,me)=>{"use strict";var Se;Se={value:!0},K.A=p;var ye=me(143);let s;const h=ye.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;h&&h.Events&&h.Events[0]&&(s=h.Events[0]);function p(){const E=M=>{try{const I=s(M.target),A=[];let z=I;for(;z;){var P=typeof z.elementType=="function"&&z.elementType.displayName;P&&A.push(P),z=z.return}M.__lrName=A}catch{console.error("logrocket-react caught an error while hooking into React. Please make sure you are using the correct version of logrocket-react for your version of react-dom.")}};document.body.addEventListener("click",E,{capture:!0,passive:!0})}},758:(ke,K,me)=>{"use strict";ke.exports=me(713)},896:(ke,K,me)=>{"use strict";ke.exports=me(733)}},zr={};function Fe(ke){var K=zr[ke];if(K!==void 0)return K.exports;var me=zr[ke]={exports:{}};return Mi[ke].call(me.exports,me,me.exports,Fe),me.exports}Fe.n=ke=>{var K=ke&&ke.__esModule?()=>ke.default:()=>ke;return Fe.d(K,{a:K}),K},Fe.d=(ke,K)=>{for(var me in K)Fe.o(K,me)&&!Fe.o(ke,me)&&Object.defineProperty(ke,me,{enumerable:!0,get:K[me]})},Fe.o=(ke,K)=>Object.prototype.hasOwnProperty.call(ke,K),Fe.r=ke=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(ke,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(ke,"__esModule",{value:!0})};var Xo={};return(()=>{"use strict";Fe.r(Xo),Fe.d(Xo,{LogRocket:()=>ke,buildLogRocketQueryParams:()=>
|
|
43
|
+
*/function me(y,w){var Y=y.length;y.push(w);e:for(;0<Y;){var ue=Y-1>>>1,f=y[ue];if(0<s(f,w))y[ue]=w,y[Y]=f,Y=ue;else break e}}function Se(y){return y.length===0?null:y[0]}function ye(y){if(y.length===0)return null;var w=y[0],Y=y.pop();if(Y!==w){y[0]=Y;e:for(var ue=0,f=y.length,V=f>>>1;ue<V;){var fe=2*(ue+1)-1,de=y[fe],ee=fe+1,le=y[ee];if(0>s(de,Y))ee<f&&0>s(le,de)?(y[ue]=le,y[ee]=Y,ue=ee):(y[ue]=de,y[fe]=Y,ue=fe);else if(ee<f&&0>s(le,Y))y[ue]=le,y[ee]=Y,ue=ee;else break e}}return w}function s(y,w){var Y=y.sortIndex-w.sortIndex;return Y!==0?Y:y.id-w.id}if(typeof performance=="object"&&typeof performance.now=="function"){var h=performance;K.unstable_now=function(){return h.now()}}else{var p=Date,E=p.now();K.unstable_now=function(){return p.now()-E}}var M=[],P=[],I=1,A=null,z=3,L=!1,U=!1,C=!1,k=typeof setTimeout=="function"?setTimeout:null,c=typeof clearTimeout=="function"?clearTimeout:null,a=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function O(y){for(var w=Se(P);w!==null;){if(w.callback===null)ye(P);else if(w.startTime<=y)ye(P),w.sortIndex=w.expirationTime,me(M,w);else break;w=Se(P)}}function x(y){if(C=!1,O(y),!U)if(Se(M)!==null)U=!0,ne(j);else{var w=Se(P);w!==null&&te(x,w.startTime-y)}}function j(y,w){U=!1,C&&(C=!1,c(g),g=-1),L=!0;var Y=z;try{for(O(w),A=Se(M);A!==null&&(!(A.expirationTime>w)||y&&!F());){var ue=A.callback;if(typeof ue=="function"){A.callback=null,z=A.priorityLevel;var f=ue(A.expirationTime<=w);w=K.unstable_now(),typeof f=="function"?A.callback=f:A===Se(M)&&ye(M),O(w)}else ye(M);A=Se(M)}if(A!==null)var V=!0;else{var fe=Se(P);fe!==null&&te(x,fe.startTime-w),V=!1}return V}finally{A=null,z=Y,L=!1}}var N=!1,D=null,g=-1,S=5,Q=-1;function F(){return!(K.unstable_now()-Q<S)}function q(){if(D!==null){var y=K.unstable_now();Q=y;var w=!0;try{w=D(!0,y)}finally{w?G():(N=!1,D=null)}}else N=!1}var G;if(typeof a=="function")G=function(){a(q)};else if(typeof MessageChannel<"u"){var b=new MessageChannel,J=b.port2;b.port1.onmessage=q,G=function(){J.postMessage(null)}}else G=function(){k(q,0)};function ne(y){D=y,N||(N=!0,G())}function te(y,w){g=k(function(){y(K.unstable_now())},w)}K.unstable_IdlePriority=5,K.unstable_ImmediatePriority=1,K.unstable_LowPriority=4,K.unstable_NormalPriority=3,K.unstable_Profiling=null,K.unstable_UserBlockingPriority=2,K.unstable_cancelCallback=function(y){y.callback=null},K.unstable_continueExecution=function(){U||L||(U=!0,ne(j))},K.unstable_forceFrameRate=function(y){0>y||125<y?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):S=0<y?Math.floor(1e3/y):5},K.unstable_getCurrentPriorityLevel=function(){return z},K.unstable_getFirstCallbackNode=function(){return Se(M)},K.unstable_next=function(y){switch(z){case 1:case 2:case 3:var w=3;break;default:w=z}var Y=z;z=w;try{return y()}finally{z=Y}},K.unstable_pauseExecution=function(){},K.unstable_requestPaint=function(){},K.unstable_runWithPriority=function(y,w){switch(y){case 1:case 2:case 3:case 4:case 5:break;default:y=3}var Y=z;z=y;try{return w()}finally{z=Y}},K.unstable_scheduleCallback=function(y,w,Y){var ue=K.unstable_now();switch(typeof Y=="object"&&Y!==null?(Y=Y.delay,Y=typeof Y=="number"&&0<Y?ue+Y:ue):Y=ue,y){case 1:var f=-1;break;case 2:f=250;break;case 5:f=1073741823;break;case 4:f=1e4;break;default:f=5e3}return f=Y+f,y={id:I++,callback:w,priorityLevel:y,startTime:Y,expirationTime:f,sortIndex:-1},Y>ue?(y.sortIndex=Y,me(P,y),Se(M)===null&&y===Se(P)&&(C?(c(g),g=-1):C=!0,te(x,Y-ue))):(y.sortIndex=f,me(M,y),U||L||(U=!0,ne(j))),y},K.unstable_shouldYield=F,K.unstable_wrapCallback=function(y){var w=z;return function(){var Y=z;z=w;try{return y.apply(this,arguments)}finally{z=Y}}}},755:(ke,K,me)=>{"use strict";var Se;Se={value:!0},K.A=p;var ye=me(143);let s;const h=ye.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;h&&h.Events&&h.Events[0]&&(s=h.Events[0]);function p(){const E=M=>{try{const I=s(M.target),A=[];let z=I;for(;z;){var P=typeof z.elementType=="function"&&z.elementType.displayName;P&&A.push(P),z=z.return}M.__lrName=A}catch{console.error("logrocket-react caught an error while hooking into React. Please make sure you are using the correct version of logrocket-react for your version of react-dom.")}};document.body.addEventListener("click",E,{capture:!0,passive:!0})}},758:(ke,K,me)=>{"use strict";ke.exports=me(713)},896:(ke,K,me)=>{"use strict";ke.exports=me(733)}},zr={};function Fe(ke){var K=zr[ke];if(K!==void 0)return K.exports;var me=zr[ke]={exports:{}};return Mi[ke].call(me.exports,me,me.exports,Fe),me.exports}Fe.n=ke=>{var K=ke&&ke.__esModule?()=>ke.default:()=>ke;return Fe.d(K,{a:K}),K},Fe.d=(ke,K)=>{for(var me in K)Fe.o(K,me)&&!Fe.o(ke,me)&&Object.defineProperty(ke,me,{enumerable:!0,get:K[me]})},Fe.o=(ke,K)=>Object.prototype.hasOwnProperty.call(ke,K),Fe.r=ke=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(ke,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(ke,"__esModule",{value:!0})};var Xo={};return(()=>{"use strict";Fe.r(Xo),Fe.d(Xo,{LogRocket:()=>ke,buildLogRocketQueryParams:()=>U,hasUserConsentedToSessionRecording:()=>z,initLogRocket:()=>k});var ke=Fe(353),K=Fe.n(ke),me=Fe(755);const Se=c=>c!==null&&typeof c=="object"&&!Array.isArray(c),ye=(c,a)=>{const O={...c};return Se(c)&&Se(a)&&Object.keys(a).forEach(x=>{const j=a[x],N=O[x];Se(j)&&Se(N)?O[x]=ye(N,j):O[x]=j}),O},s=me.A.default,h=K()||ke,p=window.emui?.logger??console;let E=null;window.emui=window.emui||{},window.emui.isLogRocketInitialized=window.emui.isLogRocketInitialized??!1;const M=()=>{try{return window.parent.location.origin}catch{try{return new URL(document.referrer).origin}catch{return null}}},P=()=>({browser:{urlSanitizer:c=>{let a=c;return a=a.replace(/code=([^&]*)/,"code=REDACTED"),a}},dom:{hiddenAttributes:["aria-label","aria-labelledby","aria-describedby","aria-details","aria-errormessage","aria-valuetext","aria-placeholder"],inputSanitizer:"lipsum",isEnabled:!1,textSanitizer:!0},mergeIframes:!0,network:{requestSanitizer:c=>{const a={...c};return c.headers.Authorization&&(a.headers.Authorization="**redacted**"),{...a,body:null}},responseSanitizer:c=>c.headers["x-secret"]?null:{...c,body:null}},release:"MISSING_ENV_VAR".APP_VERSION,rootHostname:window.emui?.logRocketConfig?.rootHostname??".ice.com",childDomains:window.emui?.logRocketConfig?.childDomains??null,parentDomain:M()??window.emui?.logRocketConfig?.parentDomain??null}),I=()=>window.OnetrustActiveGroups?window.OnetrustActiveGroups.includes("C0002"):!0,A=()=>{if(!I())return!0;window.location.hostname;const c=new URLSearchParams(window.location.search);return window.emui?.logRocketConfig?.enable===!1||c.get("lrEnabled")==="false"},z=()=>typeof window.emui?.dangerouslyOverrideSessionRecordingConsent=="boolean"?(p.warn("Using dangerouslyOverrideSessionRecordingConsent - this should only be used for testing purposes"),window.emui.dangerouslyOverrideSessionRecordingConsent):window.OnetrustActiveGroups?window.OnetrustActiveGroups.includes("C0004"):new URLSearchParams(window.location.search).get("analyticsConsent")==="true",L=c=>{const O=new URLSearchParams(window.location.search).get("lrAppId"),x=window.emui?.logRocketConfig?.appId;return O||c||x||null},U=()=>{const c=new URLSearchParams;return c.append("analyticsConsent",z()===!0?"true":"false"),c.append("lrEnabled",A()?"false":"true"),c.append("lrAppId",L()??""),c.toString()},C=c=>{const{appId:a,isReact:O=!0,...x}=c??{};if(E=L(a),!E)throw window.emui.isLogRocketInitialized=!1,new Error("LogRocket appId is required to initialize LogRocket. Either pass it as parameter or set window.emui.logRocketConfig.appId");if(A()){window.emui.isLogRocketInitialized=!1,p.info("LogRocket is disabled in this environment");return}const j=P(),N=z();j.dom&&(j.dom.isEnabled=N);const D=ye(j,x);h.init(E,D),O&&s(h),p.info(`LogRocket initialized ${D.dom?.isEnabled?"with":"without"} session recording`)},k=c=>{window.emui.isLogRocketInitialized||(window.emui.isLogRocketInitialized=!0,window.hasOneTrust?window.onetrustCallback=()=>{C(c)}:C(c))};window.emui.logRocket=window.emui.logRocket??h})(),Xo})());
|
|
44
44
|
|
|
45
|
-
//# sourceMappingURL=emuiLogrocket.
|
|
45
|
+
//# sourceMappingURL=emuiLogrocket.62c31029c170ae19a379.js.map
|
|
Binary file
|