@elliemae/pui-logrocket 1.1.19 → 1.1.20
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.72d91e94.js +1 -0
- package/build/docs/assets/js/{main.fc3f2988.js → main.24c3f1fb.js} +2 -2
- package/build/docs/assets/js/{runtime~main.b4cf5ceb.js → runtime~main.e17d78e1.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 +4 -4
- package/dist/esm/logrocket.js +4 -4
- package/dist/public/index.html +1 -1
- package/dist/public/js/{emuiLogrocket.0b45a7a2356fd045ea91.js → emuiLogrocket.edfc0cb6b928e1d02f6a.js} +2 -2
- package/dist/public/js/emuiLogrocket.edfc0cb6b928e1d02f6a.js.br +0 -0
- package/dist/public/js/{emuiLogrocket.0b45a7a2356fd045ea91.js.gz → emuiLogrocket.edfc0cb6b928e1d02f6a.js.gz} +0 -0
- package/dist/public/js/emuiLogrocket.edfc0cb6b928e1d02f6a.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/build/docs/assets/js/e376fc56.863a656c.js +0 -1
- package/dist/public/js/emuiLogrocket.0b45a7a2356fd045ea91.js.br +0 -0
- package/dist/public/js/emuiLogrocket.0b45a7a2356fd045ea91.js.map +0 -1
- /package/build/docs/assets/js/{main.fc3f2988.js.LICENSE.txt → main.24c3f1fb.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:"72d91e94",3899:"9ba4046a",4319:"531a7dab",4362:"e67b3c91",4804:"1f6d7351",4860:"aa45023e",4931:"0293910b",5122:"7fe63ad9",5621:"853372b8",5742:"c2c2f2c9",5754:"be91209b",5760:"61bd8d58",5820:"c04e4b12",5908:"2605ea40",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.e17d78e1.js" defer="defer"></script>
|
|
8
|
+
<script src="/logrocket/assets/js/main.24c3f1fb.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.e17d78e1.js" defer="defer"></script>
|
|
8
|
+
<script src="/logrocket/assets/js/main.24c3f1fb.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.e17d78e1.js" defer="defer"></script>
|
|
8
|
+
<script src="/logrocket/assets/js/main.24c3f1fb.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
|
@@ -39,10 +39,10 @@ var import_logrocket_react = __toESM(require("logrocket-react"));
|
|
|
39
39
|
var import_utils = require("./utils.js");
|
|
40
40
|
const setupLogRocketReact = import_logrocket_react.default.default || import_logrocket_react.default;
|
|
41
41
|
const LogRocketLib = LogRocket.default || LogRocket;
|
|
42
|
-
const logger = window.emui?.logger ?? console;
|
|
43
42
|
let lrAppId = null;
|
|
44
43
|
window.emui = window.emui || {};
|
|
45
44
|
window.emui.isLogRocketInitialized = window.emui.isLogRocketInitialized ?? false;
|
|
45
|
+
const getLogger = () => window.emui?.logger ?? console;
|
|
46
46
|
const getParentDomain = () => {
|
|
47
47
|
try {
|
|
48
48
|
return window.parent.location.origin;
|
|
@@ -126,7 +126,7 @@ const isLogRocketDisabled = () => {
|
|
|
126
126
|
};
|
|
127
127
|
const hasUserConsentedToSessionRecording = () => {
|
|
128
128
|
if (typeof window.emui?.dangerouslyOverrideSessionRecordingConsent === "boolean") {
|
|
129
|
-
|
|
129
|
+
getLogger().warn(
|
|
130
130
|
"Using dangerouslyOverrideSessionRecordingConsent - this should only be used for testing purposes"
|
|
131
131
|
);
|
|
132
132
|
return window.emui.dangerouslyOverrideSessionRecordingConsent;
|
|
@@ -176,7 +176,7 @@ const init = (options) => {
|
|
|
176
176
|
}
|
|
177
177
|
if (isLogRocketDisabled()) {
|
|
178
178
|
window.emui.isLogRocketInitialized = false;
|
|
179
|
-
|
|
179
|
+
getLogger().info("LogRocket is disabled in this environment");
|
|
180
180
|
return;
|
|
181
181
|
}
|
|
182
182
|
const defaultOptions = getDefaultOptions();
|
|
@@ -192,7 +192,7 @@ const init = (options) => {
|
|
|
192
192
|
if (isReact) {
|
|
193
193
|
setupLogRocketReact(LogRocketLib);
|
|
194
194
|
}
|
|
195
|
-
|
|
195
|
+
getLogger().info(
|
|
196
196
|
`LogRocket initialized ${finalLogRocketOptions.dom?.isEnabled ? "with" : "without"} session recording`
|
|
197
197
|
);
|
|
198
198
|
};
|
package/dist/esm/logrocket.js
CHANGED
|
@@ -3,10 +3,10 @@ import logRocketReact from "logrocket-react";
|
|
|
3
3
|
import { deepMerge } from "./utils.js";
|
|
4
4
|
const setupLogRocketReact = logRocketReact.default || logRocketReact;
|
|
5
5
|
const LogRocketLib = LogRocket.default || LogRocket;
|
|
6
|
-
const logger = window.emui?.logger ?? console;
|
|
7
6
|
let lrAppId = null;
|
|
8
7
|
window.emui = window.emui || {};
|
|
9
8
|
window.emui.isLogRocketInitialized = window.emui.isLogRocketInitialized ?? false;
|
|
9
|
+
const getLogger = () => window.emui?.logger ?? console;
|
|
10
10
|
const getParentDomain = () => {
|
|
11
11
|
try {
|
|
12
12
|
return window.parent.location.origin;
|
|
@@ -90,7 +90,7 @@ const isLogRocketDisabled = () => {
|
|
|
90
90
|
};
|
|
91
91
|
const hasUserConsentedToSessionRecording = () => {
|
|
92
92
|
if (typeof window.emui?.dangerouslyOverrideSessionRecordingConsent === "boolean") {
|
|
93
|
-
|
|
93
|
+
getLogger().warn(
|
|
94
94
|
"Using dangerouslyOverrideSessionRecordingConsent - this should only be used for testing purposes"
|
|
95
95
|
);
|
|
96
96
|
return window.emui.dangerouslyOverrideSessionRecordingConsent;
|
|
@@ -140,7 +140,7 @@ const init = (options) => {
|
|
|
140
140
|
}
|
|
141
141
|
if (isLogRocketDisabled()) {
|
|
142
142
|
window.emui.isLogRocketInitialized = false;
|
|
143
|
-
|
|
143
|
+
getLogger().info("LogRocket is disabled in this environment");
|
|
144
144
|
return;
|
|
145
145
|
}
|
|
146
146
|
const defaultOptions = getDefaultOptions();
|
|
@@ -156,7 +156,7 @@ const init = (options) => {
|
|
|
156
156
|
if (isReact) {
|
|
157
157
|
setupLogRocketReact(LogRocketLib);
|
|
158
158
|
}
|
|
159
|
-
|
|
159
|
+
getLogger().info(
|
|
160
160
|
`LogRocket initialized ${finalLogRocketOptions.dom?.isEnabled ? "with" : "without"} session recording`
|
|
161
161
|
);
|
|
162
162
|
};
|
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.edfc0cb6b928e1d02f6a.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 ge(y,w){var Y=y.length;y.push(w);e:for(;0<Y;){var ue=Y-1>>>1,c=y[ue];if(0<s(c,w))y[ue]=w,y[Y]=c,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,c=y.length,V=c>>>1;ue<V;){var fe=2*(ue+1)-1,de=y[fe],ee=fe+1,le=y[ee];if(0>s(de,Y))ee<c&&0>s(le,de)?(y[ue]=le,y[ee]=Y,ue=ee):(y[ue]=de,y[fe]=Y,ue=fe);else if(ee<c&&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 d=Date,E=d.now();K.unstable_now=function(){return d.now()-E}}var M=[],O=[],I=1,A=null,z=3,x=!1,U=!1,C=!1,k=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,u=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function _(y){for(var w=Se(O);w!==null;){if(w.callback===null)ye(O);else if(w.startTime<=y)ye(O),w.sortIndex=w.expirationTime,ge(M,w);else break;w=Se(O)}}function D(y){if(C=!1,_(y),!U)if(Se(M)!==null)U=!0,ne(j);else{var w=Se(O);w!==null&&te(D,w.startTime-y)}}function j(y,w){U=!1,C&&(C=!1,v(m),m=-1),x=!0;var Y=z;try{for(_(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 c=ue(A.expirationTime<=w);w=K.unstable_now(),typeof c=="function"?A.callback=c:A===Se(M)&&ye(M),_(w)}else ye(M);A=Se(M)}if(A!==null)var V=!0;else{var fe=Se(O);fe!==null&&te(D,fe.startTime-w),V=!1}return V}finally{A=null,z=Y,x=!1}}var L=!1,N=null,m=-1,S=5,Q=-1;function F(){return!(K.unstable_now()-Q<S)}function q(){if(N!==null){var y=K.unstable_now();Q=y;var w=!0;try{w=N(!0,y)}finally{w?G():(L=!1,N=null)}}else L=!1}var G;if(typeof u=="function")G=function(){u(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){N=y,L||(L=!0,G())}function te(y,w){m=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||x||(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 c=-1;break;case 2:c=250;break;case 5:c=1073741823;break;case 4:c=1e4;break;default:c=5e3}return c=Y+c,y={id:I++,callback:w,priorityLevel:y,startTime:Y,expirationTime:c,sortIndex:-1},Y>ue?(y.sortIndex=Y,ge(O,y),Se(M)===null&&y===Se(O)&&(C?(v(m),m=-1):C=!0,te(D,Y-ue))):(y.sortIndex=c,ge(M,y),U||x||(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,ge)=>{"use strict";var Se;Se={value:!0},K.A=d;var ye=ge(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 d(){const E=M=>{try{const I=s(M.target),A=[];let z=I;for(;z;){var O=typeof z.elementType=="function"&&z.elementType.displayName;O&&A.push(O),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,ge)=>{"use strict";ke.exports=ge(713)},896:(ke,K,ge)=>{"use strict";ke.exports=ge(733)}},zr={};function Fe(ke){var K=zr[ke];if(K!==void 0)return K.exports;var ge=zr[ke]={exports:{}};return Mi[ke].call(ge.exports,ge,ge.exports,Fe),ge.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 ge in K)Fe.o(K,ge)&&!Fe.o(ke,ge)&&Object.defineProperty(ke,ge,{enumerable:!0,get:K[ge]})},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:()=>v});var ke=Fe(353),K=Fe.n(ke),ge=Fe(755);const Se=u=>u!==null&&typeof u=="object"&&!Array.isArray(u),ye=(u,_)=>{const D={...u};return Se(u)&&Se(_)&&Object.keys(_).forEach(j=>{const L=_[j],N=D[j];Se(L)&&Se(N)?D[j]=ye(N,L):D[j]=L}),D},s=ge.A.default||ge.A,h=K()||ke
|
|
43
|
+
*/function ge(y,w){var Y=y.length;y.push(w);e:for(;0<Y;){var ue=Y-1>>>1,c=y[ue];if(0<s(c,w))y[ue]=w,y[Y]=c,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,c=y.length,V=c>>>1;ue<V;){var fe=2*(ue+1)-1,de=y[fe],ee=fe+1,le=y[ee];if(0>s(de,Y))ee<c&&0>s(le,de)?(y[ue]=le,y[ee]=Y,ue=ee):(y[ue]=de,y[fe]=Y,ue=fe);else if(ee<c&&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 d=Date,E=d.now();K.unstable_now=function(){return d.now()-E}}var M=[],O=[],I=1,A=null,z=3,x=!1,U=!1,C=!1,k=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,u=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function _(y){for(var w=Se(O);w!==null;){if(w.callback===null)ye(O);else if(w.startTime<=y)ye(O),w.sortIndex=w.expirationTime,ge(M,w);else break;w=Se(O)}}function D(y){if(C=!1,_(y),!U)if(Se(M)!==null)U=!0,ne(j);else{var w=Se(O);w!==null&&te(D,w.startTime-y)}}function j(y,w){U=!1,C&&(C=!1,v(m),m=-1),x=!0;var Y=z;try{for(_(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 c=ue(A.expirationTime<=w);w=K.unstable_now(),typeof c=="function"?A.callback=c:A===Se(M)&&ye(M),_(w)}else ye(M);A=Se(M)}if(A!==null)var V=!0;else{var fe=Se(O);fe!==null&&te(D,fe.startTime-w),V=!1}return V}finally{A=null,z=Y,x=!1}}var L=!1,N=null,m=-1,S=5,Q=-1;function F(){return!(K.unstable_now()-Q<S)}function q(){if(N!==null){var y=K.unstable_now();Q=y;var w=!0;try{w=N(!0,y)}finally{w?G():(L=!1,N=null)}}else L=!1}var G;if(typeof u=="function")G=function(){u(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){N=y,L||(L=!0,G())}function te(y,w){m=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||x||(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 c=-1;break;case 2:c=250;break;case 5:c=1073741823;break;case 4:c=1e4;break;default:c=5e3}return c=Y+c,y={id:I++,callback:w,priorityLevel:y,startTime:Y,expirationTime:c,sortIndex:-1},Y>ue?(y.sortIndex=Y,ge(O,y),Se(M)===null&&y===Se(O)&&(C?(v(m),m=-1):C=!0,te(D,Y-ue))):(y.sortIndex=c,ge(M,y),U||x||(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,ge)=>{"use strict";var Se;Se={value:!0},K.A=d;var ye=ge(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 d(){const E=M=>{try{const I=s(M.target),A=[];let z=I;for(;z;){var O=typeof z.elementType=="function"&&z.elementType.displayName;O&&A.push(O),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,ge)=>{"use strict";ke.exports=ge(713)},896:(ke,K,ge)=>{"use strict";ke.exports=ge(733)}},zr={};function Fe(ke){var K=zr[ke];if(K!==void 0)return K.exports;var ge=zr[ke]={exports:{}};return Mi[ke].call(ge.exports,ge,ge.exports,Fe),ge.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 ge in K)Fe.o(K,ge)&&!Fe.o(ke,ge)&&Object.defineProperty(ke,ge,{enumerable:!0,get:K[ge]})},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:()=>v});var ke=Fe(353),K=Fe.n(ke),ge=Fe(755);const Se=u=>u!==null&&typeof u=="object"&&!Array.isArray(u),ye=(u,_)=>{const D={...u};return Se(u)&&Se(_)&&Object.keys(_).forEach(j=>{const L=_[j],N=D[j];Se(L)&&Se(N)?D[j]=ye(N,L):D[j]=L}),D},s=ge.A.default||ge.A,h=K()||ke;let d=null;window.emui=window.emui||{},window.emui.isLogRocketInitialized=window.emui.isLogRocketInitialized??!1;const E=()=>window.emui?.logger??console,M=()=>{try{return window.parent.location.origin}catch{try{return new URL(document.referrer).origin}catch{return null}}},O=()=>({browser:{urlSanitizer:u=>{let _=u;return _=_.replace(/code=([^&]*)/,"code=REDACTED"),_}},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:u=>{const _={...u};return u.headers.Authorization&&(_.headers.Authorization="**redacted**"),{..._,body:null}},responseSanitizer:u=>u.headers["x-secret"]?null:{...u,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 u=new URLSearchParams(window.location.search);return window.emui?.logRocketConfig?.enable===!1||u.get("lrEnabled")==="false"},z=()=>{if(typeof window.emui?.dangerouslyOverrideSessionRecordingConsent=="boolean")return E().warn("Using dangerouslyOverrideSessionRecordingConsent - this should only be used for testing purposes"),window.emui.dangerouslyOverrideSessionRecordingConsent;if(window.OnetrustActiveGroups)return window.OnetrustActiveGroups.includes("C0003");if(new URLSearchParams(window.location.search).get("analyticsConsent")==="true")return!0;if(window.frameElement)try{if(new URL(window.frameElement.src).searchParams.get("analyticsConsent")==="true")return!0}catch{}return!1},x=u=>{const D=new URLSearchParams(window.location.search).get("lrAppId"),j=window.emui?.logRocketConfig?.appId;return D||u||j||null},U=()=>{const u=new URLSearchParams;return u.append("analyticsConsent",z()===!0?"true":"false"),u.append("lrEnabled",A()?"false":"true"),u.append("lrAppId",x()??""),u.toString()},C=u=>{const{appId:_,isReact:D=!0,...j}=u??{};if(d=x(_),!d)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,E().info("LogRocket is disabled in this environment");return}const L=O(),N=z();L.dom&&(L.dom.isEnabled=N);const m=ye(L,j);h.init(d,m),D&&s(h),E().info(`LogRocket initialized ${m.dom?.isEnabled?"with":"without"} session recording`)},k=()=>{const u=document.cookie.match(/(^|;\s*)OptanonAlertBoxClosed=([^;]+)/);return u?!!decodeURIComponent(u[2]):!1},v=u=>{if(!window.emui.isLogRocketInitialized)if(window.emui.isLogRocketInitialized=!0,window.hasOneTrust){const _=()=>{C(u)};k()?window.addEventListener("OneTrustGroupsUpdated",_,{once:!0}):window.addEventListener("OTConsentApplied",_,{once:!0})}else C(u)};window.emui.logRocket=window.emui.logRocket??h})(),Xo})());
|
|
44
44
|
|
|
45
|
-
//# sourceMappingURL=emuiLogrocket.
|
|
45
|
+
//# sourceMappingURL=emuiLogrocket.edfc0cb6b928e1d02f6a.js.map
|
|
Binary file
|