@checkflow/sdk 1.0.9 → 1.1.0
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/dist/index.esm.js +14 -13
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +14 -13
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -14958,14 +14958,14 @@ const DEFAULT_CONFIG$1 = {
|
|
|
14958
14958
|
headMetaAuthorship: true,
|
|
14959
14959
|
headMetaVerification: true,
|
|
14960
14960
|
},
|
|
14961
|
-
recordCanvas:
|
|
14961
|
+
recordCanvas: false, // Disable canvas recording (performance intensive)
|
|
14962
14962
|
collectFonts: false,
|
|
14963
14963
|
sampling: {
|
|
14964
|
-
mousemove:
|
|
14965
|
-
mouseInteraction:
|
|
14966
|
-
scroll:
|
|
14967
|
-
media:
|
|
14968
|
-
input: 'last',
|
|
14964
|
+
mousemove: 500, // Sample every 500ms (10x less frequent)
|
|
14965
|
+
mouseInteraction: false, // Disable mouse interaction sampling
|
|
14966
|
+
scroll: 1000, // Sample every 1000ms (much less frequent)
|
|
14967
|
+
media: 2000, // Reduce media sampling
|
|
14968
|
+
input: 'last', // Keep only last input
|
|
14969
14969
|
},
|
|
14970
14970
|
};
|
|
14971
14971
|
class SessionRecordingRRWeb {
|
|
@@ -15588,9 +15588,9 @@ class AnalyticsTracker {
|
|
|
15588
15588
|
this.scrollEvents = 0;
|
|
15589
15589
|
this.lastScrollTime = 0;
|
|
15590
15590
|
this.isFirstPageView = true;
|
|
15591
|
-
// Session recording upload timer (every
|
|
15591
|
+
// Session recording upload timer (every 30 minutes for better performance)
|
|
15592
15592
|
this.recordingUploadTimer = null;
|
|
15593
|
-
this.RECORDING_UPLOAD_INTERVAL =
|
|
15593
|
+
this.RECORDING_UPLOAD_INTERVAL = 30 * 60 * 1000; // 30 minutes
|
|
15594
15594
|
// ==================== Private Methods - Event Handlers ====================
|
|
15595
15595
|
this.handleClick = (event) => {
|
|
15596
15596
|
const target = event.target;
|
|
@@ -15855,7 +15855,7 @@ class AnalyticsTracker {
|
|
|
15855
15855
|
}
|
|
15856
15856
|
// ==================== Private Methods - Session Management ====================
|
|
15857
15857
|
setupPeriodicRecordingUpload() {
|
|
15858
|
-
console.log('🎬 [AnalyticsTracker] Setting up periodic recording upload (every
|
|
15858
|
+
console.log('🎬 [AnalyticsTracker] Setting up periodic recording upload (every 30 minutes)');
|
|
15859
15859
|
this.recordingUploadTimer = window.setInterval(async () => {
|
|
15860
15860
|
try {
|
|
15861
15861
|
console.log('🎬 [AnalyticsTracker] Periodic upload triggered');
|
|
@@ -16016,10 +16016,11 @@ class AnalyticsTracker {
|
|
|
16016
16016
|
this.isFirstPageView = false;
|
|
16017
16017
|
// Reset scroll tracking for new page
|
|
16018
16018
|
this.scrollEvents = 0;
|
|
16019
|
-
//
|
|
16020
|
-
this
|
|
16021
|
-
|
|
16022
|
-
|
|
16019
|
+
// DISABLED: Screenshot capture causes performance issues
|
|
16020
|
+
// TODO: Make this opt-in for enterprise customers only
|
|
16021
|
+
// this.capturePageScreenshotForHeatmap().catch(error => {
|
|
16022
|
+
// console.warn('🖼️ [AnalyticsTracker] Page screenshot capture failed:', error);
|
|
16023
|
+
// });
|
|
16023
16024
|
}
|
|
16024
16025
|
async capturePageScreenshotForHeatmap() {
|
|
16025
16026
|
try {
|