@elliemae/pui-logrocket 1.1.17 → 1.1.18
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 +6 -4
- 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/04ee7372.2605ea40.js +1 -0
- package/build/docs/assets/js/7fcbe1af.1f6d7351.js +1 -0
- package/build/docs/assets/js/e376fc56.aa4c5682.js +1 -0
- package/build/docs/assets/js/{main.aec3bbc3.js → main.e0126434.js} +2 -2
- package/build/docs/assets/js/runtime~main.525896a4.js +1 -0
- package/build/docs/compliance/index.html +7 -3
- package/build/docs/index.html +2 -2
- package/build/docs/usage-guide/index.html +24 -3
- package/dist/cjs/logrocket.js +10 -1
- package/dist/esm/logrocket.js +10 -1
- package/dist/public/index.html +1 -1
- package/dist/public/js/{emuiLogrocket.f167e4f3fdd07d549011.js → emuiLogrocket.c07dfa6c075c28b1067e.js} +17 -17
- package/dist/public/js/emuiLogrocket.c07dfa6c075c28b1067e.js.br +0 -0
- package/dist/public/js/emuiLogrocket.c07dfa6c075c28b1067e.js.gz +0 -0
- package/dist/public/js/emuiLogrocket.c07dfa6c075c28b1067e.js.map +1 -0
- package/dist/types/lib/logrocket.d.ts +4 -2
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/dist/umd/index.js +16 -16
- 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/04ee7372.ff5b8d05.js +0 -1
- package/build/docs/assets/js/7fcbe1af.57ab9f7e.js +0 -1
- package/build/docs/assets/js/e376fc56.9f577545.js +0 -1
- package/build/docs/assets/js/runtime~main.471e2b2b.js +0 -1
- package/dist/public/js/emuiLogrocket.f167e4f3fdd07d549011.js.br +0 -0
- package/dist/public/js/emuiLogrocket.f167e4f3fdd07d549011.js.gz +0 -0
- package/dist/public/js/emuiLogrocket.f167e4f3fdd07d549011.js.map +0 -1
- /package/build/docs/assets/js/{main.aec3bbc3.js.LICENSE.txt → main.e0126434.js.LICENSE.txt} +0 -0
|
@@ -44,9 +44,11 @@ declare const buildLogRocketQueryParams: () => string;
|
|
|
44
44
|
* Initialize LogRocket with optional OneTrust integration
|
|
45
45
|
*
|
|
46
46
|
* This function handles LogRocket initialization with support for OneTrust consent management.
|
|
47
|
-
* The initialization behavior depends on the `window.hasOneTrust` flag:
|
|
48
|
-
* - If `window.hasOneTrust` is true,
|
|
47
|
+
* The initialization behavior depends on the `window.hasOneTrust` flag and consent banner state:
|
|
48
|
+
* - If `window.hasOneTrust` is true and the consent banner hasn't been seen, waits for 'OTConsentApplied' event (until user interacts with banner)
|
|
49
|
+
* - If `window.hasOneTrust` is true and the banner was already seen, initializes immediately
|
|
49
50
|
* - If `window.hasOneTrust` is false or undefined, LogRocket initializes immediately
|
|
51
|
+
* - Prevents duplicate initialization by checking `window.emui.isLogRocketInitialized`
|
|
50
52
|
* @example
|
|
51
53
|
* // With OneTrust (when window.hasOneTrust is true)
|
|
52
54
|
* initLogRocket({
|