@elliemae/pui-logrocket 1.1.16 → 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 +5 -4
- 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/{211c08f1.da35d82d.js → 211c08f1.531a7dab.js} +1 -1
- 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.df60512c.js → main.e0126434.js} +2 -2
- package/build/docs/assets/js/{runtime~main.430abecc.js → runtime~main.525896a4.js} +1 -1
- package/build/docs/compliance/index.html +15 -3
- package/build/docs/index.html +2 -2
- package/build/docs/usage-guide/index.html +36 -3
- package/dist/cjs/logrocket.js +19 -1
- package/dist/esm/logrocket.js +19 -1
- package/dist/public/index.html +1 -1
- package/dist/public/js/{emuiLogrocket.dbc52447421309982993.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 +8 -5
- 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.b9517d64.js +0 -1
- package/build/docs/assets/js/7fcbe1af.57ab9f7e.js +0 -1
- package/build/docs/assets/js/e376fc56.b068d96b.js +0 -1
- package/dist/public/js/emuiLogrocket.dbc52447421309982993.js.br +0 -0
- package/dist/public/js/emuiLogrocket.dbc52447421309982993.js.gz +0 -0
- package/dist/public/js/emuiLogrocket.dbc52447421309982993.js.map +0 -1
- /package/build/docs/assets/js/{main.df60512c.js.LICENSE.txt → main.e0126434.js.LICENSE.txt} +0 -0
|
@@ -21,10 +21,11 @@ export type LROptions = Parameters<typeof LogRocket.init>[1] & {
|
|
|
21
21
|
* This function checks for user consent using multiple strategies, in the following order:
|
|
22
22
|
* 1. Checks for a manual override via `window.emui.dangerouslyOverrideSessionRecordingConsent`.
|
|
23
23
|
* 2. If OneTrust is loaded, checks if `window.OnetrustActiveGroups` contains the session recording group ID ('C0003').
|
|
24
|
-
* 3. If OneTrust is not loaded, checks the `analyticsConsent` query parameter in the URL.
|
|
25
|
-
* 4.
|
|
24
|
+
* 3. If OneTrust is not loaded, checks the `analyticsConsent` query parameter in the current URL.
|
|
25
|
+
* 4. If running in an iframe, checks the `analyticsConsent` query parameter in the iframe's src URL.
|
|
26
|
+
* 5. Defaults to `false` if no consent can be determined.
|
|
26
27
|
*
|
|
27
|
-
* Note: When OneTrust is present, the OneTrust consent groups take precedence over
|
|
28
|
+
* Note: When OneTrust is present, the OneTrust consent groups take precedence over URL parameters.
|
|
28
29
|
* The `analyticsConsent` URL parameter only applies when OneTrust is not loaded.
|
|
29
30
|
* @returns {boolean} `true` if the user has consented to session recording, `false` otherwise.
|
|
30
31
|
*/
|
|
@@ -43,9 +44,11 @@ declare const buildLogRocketQueryParams: () => string;
|
|
|
43
44
|
* Initialize LogRocket with optional OneTrust integration
|
|
44
45
|
*
|
|
45
46
|
* This function handles LogRocket initialization with support for OneTrust consent management.
|
|
46
|
-
* The initialization behavior depends on the `window.hasOneTrust` flag:
|
|
47
|
-
* - 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
|
|
48
50
|
* - If `window.hasOneTrust` is false or undefined, LogRocket initializes immediately
|
|
51
|
+
* - Prevents duplicate initialization by checking `window.emui.isLogRocketInitialized`
|
|
49
52
|
* @example
|
|
50
53
|
* // With OneTrust (when window.hasOneTrust is true)
|
|
51
54
|
* initLogRocket({
|