@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.
Files changed (37) 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 +6 -4
  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/api/variables/LogRocket/index.html +2 -2
  8. package/build/docs/assets/js/04ee7372.2605ea40.js +1 -0
  9. package/build/docs/assets/js/7fcbe1af.1f6d7351.js +1 -0
  10. package/build/docs/assets/js/e376fc56.aa4c5682.js +1 -0
  11. package/build/docs/assets/js/{main.aec3bbc3.js → main.e0126434.js} +2 -2
  12. package/build/docs/assets/js/runtime~main.525896a4.js +1 -0
  13. package/build/docs/compliance/index.html +7 -3
  14. package/build/docs/index.html +2 -2
  15. package/build/docs/usage-guide/index.html +24 -3
  16. package/dist/cjs/logrocket.js +10 -1
  17. package/dist/esm/logrocket.js +10 -1
  18. package/dist/public/index.html +1 -1
  19. package/dist/public/js/{emuiLogrocket.f167e4f3fdd07d549011.js → emuiLogrocket.c07dfa6c075c28b1067e.js} +17 -17
  20. package/dist/public/js/emuiLogrocket.c07dfa6c075c28b1067e.js.br +0 -0
  21. package/dist/public/js/emuiLogrocket.c07dfa6c075c28b1067e.js.gz +0 -0
  22. package/dist/public/js/emuiLogrocket.c07dfa6c075c28b1067e.js.map +1 -0
  23. package/dist/types/lib/logrocket.d.ts +4 -2
  24. package/dist/types/tsconfig.tsbuildinfo +1 -1
  25. package/dist/umd/index.js +16 -16
  26. package/dist/umd/index.js.br +0 -0
  27. package/dist/umd/index.js.gz +0 -0
  28. package/dist/umd/index.js.map +1 -1
  29. package/package.json +1 -1
  30. package/build/docs/assets/js/04ee7372.ff5b8d05.js +0 -1
  31. package/build/docs/assets/js/7fcbe1af.57ab9f7e.js +0 -1
  32. package/build/docs/assets/js/e376fc56.9f577545.js +0 -1
  33. package/build/docs/assets/js/runtime~main.471e2b2b.js +0 -1
  34. package/dist/public/js/emuiLogrocket.f167e4f3fdd07d549011.js.br +0 -0
  35. package/dist/public/js/emuiLogrocket.f167e4f3fdd07d549011.js.gz +0 -0
  36. package/dist/public/js/emuiLogrocket.f167e4f3fdd07d549011.js.map +0 -1
  37. /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, initialization is deferred until OneTrust SDK calls `window.onetrustCallback`
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({