@elliemae/pui-logrocket 1.2.0 → 1.2.1

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.
Files changed (32) hide show
  1. package/build/docs/404.html +2 -2
  2. package/build/docs/api/functions/buildLogRocketQueryParams/index.html +2 -2
  3. package/build/docs/api/functions/hasUserConsentedToSessionRecording/index.html +2 -2
  4. package/build/docs/api/functions/initLogRocket/index.html +2 -2
  5. package/build/docs/api/index.html +2 -2
  6. package/build/docs/api/type-aliases/LROptions/index.html +2 -2
  7. package/build/docs/assets/js/04ee7372.de34cb48.js +1 -0
  8. package/build/docs/assets/js/e376fc56.978208a5.js +1 -0
  9. package/build/docs/assets/js/{main.d473335e.js → main.b3a3b38a.js} +2 -2
  10. package/build/docs/assets/js/{runtime~main.f563dceb.js → runtime~main.417a58e7.js} +1 -1
  11. package/build/docs/compliance/index.html +2 -2
  12. package/build/docs/index.html +2 -2
  13. package/build/docs/usage-guide/index.html +4 -4
  14. package/dist/cjs/logrocket.js +29 -10
  15. package/dist/esm/logrocket.js +29 -10
  16. package/dist/public/index.html +1 -1
  17. package/dist/public/js/{emuiLogrocket.a94d5254f9e9cd719b0a.js → emuiLogrocket.76d805f6c3a5ad356e6f.js} +17 -17
  18. package/dist/public/js/emuiLogrocket.76d805f6c3a5ad356e6f.js.br +0 -0
  19. package/dist/public/js/emuiLogrocket.76d805f6c3a5ad356e6f.js.gz +0 -0
  20. package/dist/public/js/emuiLogrocket.76d805f6c3a5ad356e6f.js.map +1 -0
  21. package/dist/types/tsconfig.tsbuildinfo +1 -1
  22. package/dist/umd/index.js +16 -16
  23. package/dist/umd/index.js.br +0 -0
  24. package/dist/umd/index.js.gz +0 -0
  25. package/dist/umd/index.js.map +1 -1
  26. package/package.json +1 -1
  27. package/build/docs/assets/js/04ee7372.167b6465.js +0 -1
  28. package/build/docs/assets/js/e376fc56.b55759b6.js +0 -1
  29. package/dist/public/js/emuiLogrocket.a94d5254f9e9cd719b0a.js.br +0 -0
  30. package/dist/public/js/emuiLogrocket.a94d5254f9e9cd719b0a.js.gz +0 -0
  31. package/dist/public/js/emuiLogrocket.a94d5254f9e9cd719b0a.js.map +0 -1
  32. /package/build/docs/assets/js/{main.d473335e.js.LICENSE.txt → main.b3a3b38a.js.LICENSE.txt} +0 -0
@@ -1 +1 @@
1
- (()=>{"use strict";var e,a,r,t,o,c={},f={};function n(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,n),r.loaded=!0,r.exports}n.m=c,n.c=f,e=[],n.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,d=0;d<r.length;d++)(!1&o||c>=o)&&Object.keys(n.O).every(e=>n.O[e](r[d]))?r.splice(d--,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]},n.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return n.d(a,{a:a}),a},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,n.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);n.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,n.d(o,c),o},n.d=(e,a)=>{for(var r in a)n.o(a,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:a[r]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce((a,r)=>(n.f[r](e,a),a),[])),n.u=e=>"assets/js/"+({295:"51c4ceb1",594:"5e8c322a",2076:"common",3361:"c377a04b",3480:"e376fc56",4319:"211c08f1",4804:"7fcbe1af",5742:"aba21aa0",5754:"acaa8c75",5760:"552a934f",5908:"04ee7372",7098:"a7bd4aaa",8401:"17896441",9048:"a94703ab",9647:"5e95c892"}[e]||e)+"."+{200:"0310889b",295:"6fc4ec7b",483:"18c7d7f8",594:"503d46ea",638:"a021b03c",654:"0e97a121",764:"32783b8e",967:"d428fcf6",1138:"aa8c4e98",1370:"c8be4ee0",2076:"6c804366",2180:"31d6ce39",2327:"251d6533",2706:"74774645",3308:"78e397d4",3361:"2361a76f",3480:"b55759b6",3725:"36fa16ca",3767:"2998632d",3899:"94243d47",4167:"eb3f034b",4319:"f5d0523b",4359:"6536c7a0",4390:"744aab40",4413:"e614d609",4453:"ef8b090c",4632:"aa312ff7",4804:"5999b9e8",4860:"cfa79720",5168:"97fb36dd",5179:"ccfc9ebc",5182:"30f41439",5275:"4ed9ae52",5742:"a5d4e000",5754:"70525e75",5760:"b125f196",5820:"2cd5bf53",5908:"167b6465",6143:"8bf840e9",6340:"eaf6d37a",6376:"13262bdb",6603:"cbc20a0f",6761:"0b26728e",6873:"83ee6c7c",7039:"3ca79f91",7098:"ad524078",7204:"1ce9a9b1",7616:"6501b368",7666:"99e92eb2",7876:"3ac89535",8071:"6922ccd8",8401:"dfa22f5b",8907:"4424af8f",9048:"5c63b074",9647:"2d99be36",9748:"cc3f89d3",9845:"d704e0f2"}[e]+".js",n.miniCssF=e=>{},n.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),t={},o="@elliemae/pui-logrocket:",n.l=(e,a,r,c)=>{if(t[e])t[e].push(a);else{var f,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")==o+r){f=l;break}}f||(d=!0,(f=document.createElement("script")).charset="utf-8",n.nc&&f.setAttribute("nonce",n.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),d&&document.head.appendChild(f)}},n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.p="/logrocket/",n.gca=function(e){return e={17896441:"8401","51c4ceb1":"295","5e8c322a":"594",common:"2076",c377a04b:"3361",e376fc56:"3480","211c08f1":"4319","7fcbe1af":"4804",aba21aa0:"5742",acaa8c75:"5754","552a934f":"5760","04ee7372":"5908",a7bd4aaa:"7098",a94703ab:"9048","5e95c892":"9647"}[e]||e,n.p+n.u(e)},(()=>{var e={5354:0,1869:0};n.f.j=(a,r)=>{var t=n.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=n.p+n.u(a),f=new Error;n.l(c,r=>{if(n.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)}},n.O.j=a=>0===e[a];var a=(a,r)=>{var t,o,[c,f,d]=r,b=0;if(c.some(a=>0!==e[a])){for(t in f)n.o(f,t)&&(n.m[t]=f[t]);if(d)var i=d(n)}for(a&&a(r);b<c.length;b++)o=c[b],n.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return n.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))})()})();
1
+ (()=>{"use strict";var e,a,r,t,o,c={},f={};function n(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,n),r.loaded=!0,r.exports}n.m=c,n.c=f,e=[],n.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,d=0;d<r.length;d++)(!1&o||c>=o)&&Object.keys(n.O).every(e=>n.O[e](r[d]))?r.splice(d--,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]},n.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return n.d(a,{a:a}),a},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,n.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);n.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,n.d(o,c),o},n.d=(e,a)=>{for(var r in a)n.o(a,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:a[r]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce((a,r)=>(n.f[r](e,a),a),[])),n.u=e=>"assets/js/"+({295:"51c4ceb1",594:"5e8c322a",2076:"common",3361:"c377a04b",3480:"e376fc56",4319:"211c08f1",4804:"7fcbe1af",5742:"aba21aa0",5754:"acaa8c75",5760:"552a934f",5908:"04ee7372",7098:"a7bd4aaa",8401:"17896441",9048:"a94703ab",9647:"5e95c892"}[e]||e)+"."+{200:"0310889b",295:"6fc4ec7b",483:"18c7d7f8",594:"503d46ea",638:"a021b03c",654:"0e97a121",764:"32783b8e",967:"d428fcf6",1138:"aa8c4e98",1370:"c8be4ee0",2076:"6c804366",2180:"31d6ce39",2327:"251d6533",2706:"74774645",3308:"78e397d4",3361:"2361a76f",3480:"978208a5",3725:"36fa16ca",3767:"2998632d",3899:"94243d47",4167:"eb3f034b",4319:"f5d0523b",4359:"6536c7a0",4390:"744aab40",4413:"e614d609",4453:"ef8b090c",4632:"aa312ff7",4804:"5999b9e8",4860:"cfa79720",5168:"97fb36dd",5179:"ccfc9ebc",5182:"30f41439",5275:"4ed9ae52",5742:"a5d4e000",5754:"70525e75",5760:"b125f196",5820:"2cd5bf53",5908:"de34cb48",6143:"8bf840e9",6340:"eaf6d37a",6376:"13262bdb",6603:"cbc20a0f",6761:"0b26728e",6873:"83ee6c7c",7039:"3ca79f91",7098:"ad524078",7204:"1ce9a9b1",7616:"6501b368",7666:"99e92eb2",7876:"3ac89535",8071:"6922ccd8",8401:"dfa22f5b",8907:"4424af8f",9048:"5c63b074",9647:"2d99be36",9748:"cc3f89d3",9845:"d704e0f2"}[e]+".js",n.miniCssF=e=>{},n.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),t={},o="@elliemae/pui-logrocket:",n.l=(e,a,r,c)=>{if(t[e])t[e].push(a);else{var f,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")==o+r){f=l;break}}f||(d=!0,(f=document.createElement("script")).charset="utf-8",n.nc&&f.setAttribute("nonce",n.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),d&&document.head.appendChild(f)}},n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.p="/logrocket/",n.gca=function(e){return e={17896441:"8401","51c4ceb1":"295","5e8c322a":"594",common:"2076",c377a04b:"3361",e376fc56:"3480","211c08f1":"4319","7fcbe1af":"4804",aba21aa0:"5742",acaa8c75:"5754","552a934f":"5760","04ee7372":"5908",a7bd4aaa:"7098",a94703ab:"9048","5e95c892":"9647"}[e]||e,n.p+n.u(e)},(()=>{var e={5354:0,1869:0};n.f.j=(a,r)=>{var t=n.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=n.p+n.u(a),f=new Error;n.l(c,r=>{if(n.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)}},n.O.j=a=>0===e[a];var a=(a,r)=>{var t,o,[c,f,d]=r,b=0;if(c.some(a=>0!==e[a])){for(t in f)n.o(f,t)&&(n.m[t]=f[t]);if(d)var i=d(n)}for(a&&a(r);b<c.length;b++)o=c[b],n.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return n.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 &amp; 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 &amp; 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.f563dceb.js" defer="defer"></script>
8
- <script src="/logrocket/assets/js/main.d473335e.js" defer="defer"></script>
7
+ <script src="/logrocket/assets/js/runtime~main.417a58e7.js" defer="defer"></script>
8
+ <script src="/logrocket/assets/js/main.b3a3b38a.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">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.f563dceb.js" defer="defer"></script>
8
- <script src="/logrocket/assets/js/main.d473335e.js" defer="defer"></script>
7
+ <script src="/logrocket/assets/js/runtime~main.417a58e7.js" defer="defer"></script>
8
+ <script src="/logrocket/assets/js/main.b3a3b38a.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.f563dceb.js" defer="defer"></script>
8
- <script src="/logrocket/assets/js/main.d473335e.js" defer="defer"></script>
7
+ <script src="/logrocket/assets/js/runtime~main.417a58e7.js" defer="defer"></script>
8
+ <script src="/logrocket/assets/js/main.b3a3b38a.js" defer="defer"></script>
9
9
  </head>
10
10
  <body class="navigation-with-keyboard">
11
11
  <svg style="display: none;"><defs>
@@ -32,8 +32,8 @@
32
32
  <li class=""><code>appId</code> (string): LogRocket application ID allocated to the product.</li>
33
33
  <li class=""><code>enable</code> (boolean): Flag to enable or disable LogRocket in the microapp. Defaults to <code>true</code>. If set to <code>false</code>, LogRocket will not be initialized even if <code>initLogRocket</code> is called. This can be useful for disabling LogRocket in certain environments (e.g., development or staging).</li>
34
34
  <li class=""><code>localhostEnable</code> (boolean): Flag to enable LogRocket when running on localhost. Defaults to <code>false</code>. When set to <code>true</code>, LogRocket will be enabled on localhost even if the <code>LOGROCKET_ENABLE_ON_LOCALHOST</code> environment variable is not set. This is useful for local development and testing.</li>
35
- <li class=""><code>childDomains</code> (array of strings): List of cross-origin child micro application origins (e.g., iframes) the parent should link sessions with. <strong>Each entry must be a full origin including protocol</strong> (e.g. <code>https://child.example.com</code>) bare hostnames like <code>child.example.com</code> are rejected with a console warning because LogRocket matches each candidate frame&#x27;s <code>window.location.origin</code> against this list. When this option is non-empty the LogRocket SDK enters &quot;cross-origin mode&quot; and only stitches frames whose origin appears in the list, including the parent&#x27;s own origin if it has same-origin children. The library automatically appends the current window&#x27;s <code>origin</code> to the list (deduplicated) so same-origin children continue to link alongside cross-origin ones; you only need to supply the cross-origin entries.</li>
36
- <li class=""><code>parentDomain</code> (string): Parent domain of the hosting application. library automatically detects parent domain for cross-origin iframes.</li>
35
+ <li class=""><code>childDomains</code> (array of strings, optional): List of cross-origin child micro application origins (e.g., iframes) the parent should link sessions with. The library <strong>always sends <code>childDomains</code> to LogRocket</strong> with at minimum the current window&#x27;s <code>origin</code>, so the SDK is always in cross-origin frame-stitching mode and same-origin children link automatically. You only need to supply the <strong>additional cross-origin entries</strong> <code>[]</code>, <code>null</code>, or omitting the option produces the same effective configuration: <code>[&lt;current origin&gt;]</code>. Each entry must be a full origin including protocol (e.g. <code>https://child.example.com</code>); bare hostnames or non-array values are rejected with a console warning because LogRocket matches each candidate frame&#x27;s <code>window.location.origin</code> against this list.</li>
36
+ <li class=""><code>parentDomain</code> (string, optional): Parent domain of the hosting application. The library <strong>always auto-detects</strong> this from (1) the <code>lrParentOrigin</code> query parameter set by the parent via <code>buildLogRocketQueryParams</code>, (2) <code>window.parent.location.origin</code> (same-origin parent), or (3) <code>document.referrer</code> (best-effort cross-origin fallback). Setting this option overrides the auto-detected value, but only when it is a valid full origin (e.g. <code>https://parent.example.com</code>); invalid overrides are ignored with a console warning so a misconfiguration cannot disable the auto-detected value.</li>
37
37
  <li class=""><code>rootHostname</code> (string): Cookie scope for stitching sessions across subdomains of the <strong>same site</strong> (see <a href="https://docs.logrocket.com/reference/roothostname" target="_blank" rel="noopener noreferrer" class="">LogRocket docs</a>). Auto-detected from the current window&#x27;s hostname (last two segments, e.g. <code>beta.encompass.elliemae.io</code> → <code>.elliemae.io</code>), so same-site iframes converge on the same value automatically. Set this option to override — accepted only when it ends with the auto-detected value (e.g. narrow <code>.elliemae.io</code> to <code>.shared.elliemae.io</code>, or work around multi-segment public suffixes like <code>.co.uk</code> by passing <code>.example.co.uk</code>). Cross-<strong>site</strong> frame linking uses <code>parentDomain</code>/<code>childDomains</code>, not this option.</li>
38
38
  </ul>
39
39
  <h2 class="anchor anchorTargetStickyNavbar_UXZL" id="proxying-logrocket-calls-through-cdn-domain">Proxying LogRocket Calls Through CDN Domain<a href="#proxying-logrocket-calls-through-cdn-domain" class="hash-link" aria-label="Direct link to Proxying LogRocket Calls Through CDN Domain" title="Direct link to Proxying LogRocket Calls Through CDN Domain" translate="no">​</a></h2>
@@ -113,9 +113,19 @@ const getParentDomain = () => {
113
113
  }
114
114
  return parentDomain;
115
115
  };
116
- const ensureCurrentWindowDomainIncluded = (domains) => {
117
- if (!domains || domains.length === 0) return null;
118
- const { valid, invalid } = domains.reduce(
116
+ const buildChildDomains = () => {
117
+ const currentOrigin = window.location.origin;
118
+ const override = window.emui?.logRocketConfig?.childDomains;
119
+ if (override === void 0 || override === null) {
120
+ return [currentOrigin];
121
+ }
122
+ if (!Array.isArray(override)) {
123
+ getLogger().warn(
124
+ `LogRocket childDomains override ignored: must be an array of full origins. Falling back to [${currentOrigin}].`
125
+ );
126
+ return [currentOrigin];
127
+ }
128
+ const { valid, invalid } = override.reduce(
119
129
  (acc, entry) => {
120
130
  (isValidOrigin(entry) ? acc.valid : acc.invalid).push(entry);
121
131
  return acc;
@@ -128,11 +138,22 @@ const ensureCurrentWindowDomainIncluded = (domains) => {
128
138
  `LogRocket childDomains entries dropped (must be full origins like "https://example.com"): ${dropped}`
129
139
  );
130
140
  }
131
- if (valid.length === 0) return null;
132
- const currentOrigin = window.location.origin;
133
141
  if (valid.includes(currentOrigin)) return valid;
134
142
  return [...valid, currentOrigin];
135
143
  };
144
+ const buildParentDomain = () => {
145
+ const override = window.emui?.logRocketConfig?.parentDomain;
146
+ if (override !== void 0 && override !== null) {
147
+ if (typeof override === "string" && isValidOrigin(override)) {
148
+ return override;
149
+ }
150
+ const overrideLabel = String(override);
151
+ getLogger().warn(
152
+ `LogRocket parentDomain override "${overrideLabel}" ignored: must be a full origin. Using auto-detected value.`
153
+ );
154
+ }
155
+ return getParentDomain();
156
+ };
136
157
  const ROOT_HOSTNAME_RE = /[^.]+\.[^.]+$/;
137
158
  const getRootHostname = () => {
138
159
  const match = ROOT_HOSTNAME_RE.exec(window.location.hostname);
@@ -150,10 +171,8 @@ const getRootHostname = () => {
150
171
  return auto;
151
172
  };
152
173
  const getDefaultOptions = () => {
153
- const filteredChildDomains = ensureCurrentWindowDomainIncluded(
154
- window.emui?.logRocketConfig?.childDomains
155
- );
156
- const parentDomain = window.emui?.logRocketConfig?.parentDomain ?? getParentDomain();
174
+ const childDomains = buildChildDomains();
175
+ const parentDomain = buildParentDomain();
157
176
  return {
158
177
  browser: {
159
178
  urlSanitizer: (url) => {
@@ -205,7 +224,7 @@ const getDefaultOptions = () => {
205
224
  release: process?.env?.APP_VERSION,
206
225
  // app sdk based applications use this env variable to specify the app code version
207
226
  rootHostname: getRootHostname(),
208
- ...filteredChildDomains && filteredChildDomains.length > 0 ? { childDomains: filteredChildDomains } : {},
227
+ childDomains,
209
228
  ...parentDomain ? { parentDomain } : {}
210
229
  };
211
230
  };
@@ -77,9 +77,19 @@ const getParentDomain = () => {
77
77
  }
78
78
  return parentDomain;
79
79
  };
80
- const ensureCurrentWindowDomainIncluded = (domains) => {
81
- if (!domains || domains.length === 0) return null;
82
- const { valid, invalid } = domains.reduce(
80
+ const buildChildDomains = () => {
81
+ const currentOrigin = window.location.origin;
82
+ const override = window.emui?.logRocketConfig?.childDomains;
83
+ if (override === void 0 || override === null) {
84
+ return [currentOrigin];
85
+ }
86
+ if (!Array.isArray(override)) {
87
+ getLogger().warn(
88
+ `LogRocket childDomains override ignored: must be an array of full origins. Falling back to [${currentOrigin}].`
89
+ );
90
+ return [currentOrigin];
91
+ }
92
+ const { valid, invalid } = override.reduce(
83
93
  (acc, entry) => {
84
94
  (isValidOrigin(entry) ? acc.valid : acc.invalid).push(entry);
85
95
  return acc;
@@ -92,11 +102,22 @@ const ensureCurrentWindowDomainIncluded = (domains) => {
92
102
  `LogRocket childDomains entries dropped (must be full origins like "https://example.com"): ${dropped}`
93
103
  );
94
104
  }
95
- if (valid.length === 0) return null;
96
- const currentOrigin = window.location.origin;
97
105
  if (valid.includes(currentOrigin)) return valid;
98
106
  return [...valid, currentOrigin];
99
107
  };
108
+ const buildParentDomain = () => {
109
+ const override = window.emui?.logRocketConfig?.parentDomain;
110
+ if (override !== void 0 && override !== null) {
111
+ if (typeof override === "string" && isValidOrigin(override)) {
112
+ return override;
113
+ }
114
+ const overrideLabel = String(override);
115
+ getLogger().warn(
116
+ `LogRocket parentDomain override "${overrideLabel}" ignored: must be a full origin. Using auto-detected value.`
117
+ );
118
+ }
119
+ return getParentDomain();
120
+ };
100
121
  const ROOT_HOSTNAME_RE = /[^.]+\.[^.]+$/;
101
122
  const getRootHostname = () => {
102
123
  const match = ROOT_HOSTNAME_RE.exec(window.location.hostname);
@@ -114,10 +135,8 @@ const getRootHostname = () => {
114
135
  return auto;
115
136
  };
116
137
  const getDefaultOptions = () => {
117
- const filteredChildDomains = ensureCurrentWindowDomainIncluded(
118
- window.emui?.logRocketConfig?.childDomains
119
- );
120
- const parentDomain = window.emui?.logRocketConfig?.parentDomain ?? getParentDomain();
138
+ const childDomains = buildChildDomains();
139
+ const parentDomain = buildParentDomain();
121
140
  return {
122
141
  browser: {
123
142
  urlSanitizer: (url) => {
@@ -169,7 +188,7 @@ const getDefaultOptions = () => {
169
188
  release: process?.env?.APP_VERSION,
170
189
  // app sdk based applications use this env variable to specify the app code version
171
190
  rootHostname: getRootHostname(),
172
- ...filteredChildDomains && filteredChildDomains.length > 0 ? { childDomains: filteredChildDomains } : {},
191
+ childDomains,
173
192
  ...parentDomain ? { parentDomain } : {}
174
193
  };
175
194
  };
@@ -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.a94d5254f9e9cd719b0a.js"></script></head><body><h1>LogRocket Test</h1><button id="testButton">Click me</button></body></html>
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.76d805f6c3a5ad356e6f.js"></script></head><body><h1>LogRocket Test</h1><button id="testButton">Click me</button></body></html>