@checkflow/sdk 1.0.9 → 1.1.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.
- 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/dist/optimized-recorder.d.ts +94 -0
- package/package.json +3 -1
package/dist/index.js
CHANGED
|
@@ -14962,14 +14962,14 @@ const DEFAULT_CONFIG$1 = {
|
|
|
14962
14962
|
headMetaAuthorship: true,
|
|
14963
14963
|
headMetaVerification: true,
|
|
14964
14964
|
},
|
|
14965
|
-
recordCanvas:
|
|
14965
|
+
recordCanvas: false, // Disable canvas recording (performance intensive)
|
|
14966
14966
|
collectFonts: false,
|
|
14967
14967
|
sampling: {
|
|
14968
|
-
mousemove:
|
|
14969
|
-
mouseInteraction:
|
|
14970
|
-
scroll:
|
|
14971
|
-
media:
|
|
14972
|
-
input: 'last',
|
|
14968
|
+
mousemove: 500, // Sample every 500ms (10x less frequent)
|
|
14969
|
+
mouseInteraction: false, // Disable mouse interaction sampling
|
|
14970
|
+
scroll: 1000, // Sample every 1000ms (much less frequent)
|
|
14971
|
+
media: 2000, // Reduce media sampling
|
|
14972
|
+
input: 'last', // Keep only last input
|
|
14973
14973
|
},
|
|
14974
14974
|
};
|
|
14975
14975
|
class SessionRecordingRRWeb {
|
|
@@ -15592,9 +15592,9 @@ class AnalyticsTracker {
|
|
|
15592
15592
|
this.scrollEvents = 0;
|
|
15593
15593
|
this.lastScrollTime = 0;
|
|
15594
15594
|
this.isFirstPageView = true;
|
|
15595
|
-
// Session recording upload timer (every
|
|
15595
|
+
// Session recording upload timer (every 30 minutes for better performance)
|
|
15596
15596
|
this.recordingUploadTimer = null;
|
|
15597
|
-
this.RECORDING_UPLOAD_INTERVAL =
|
|
15597
|
+
this.RECORDING_UPLOAD_INTERVAL = 30 * 60 * 1000; // 30 minutes
|
|
15598
15598
|
// ==================== Private Methods - Event Handlers ====================
|
|
15599
15599
|
this.handleClick = (event) => {
|
|
15600
15600
|
const target = event.target;
|
|
@@ -15859,7 +15859,7 @@ class AnalyticsTracker {
|
|
|
15859
15859
|
}
|
|
15860
15860
|
// ==================== Private Methods - Session Management ====================
|
|
15861
15861
|
setupPeriodicRecordingUpload() {
|
|
15862
|
-
console.log('🎬 [AnalyticsTracker] Setting up periodic recording upload (every
|
|
15862
|
+
console.log('🎬 [AnalyticsTracker] Setting up periodic recording upload (every 30 minutes)');
|
|
15863
15863
|
this.recordingUploadTimer = window.setInterval(async () => {
|
|
15864
15864
|
try {
|
|
15865
15865
|
console.log('🎬 [AnalyticsTracker] Periodic upload triggered');
|
|
@@ -16020,10 +16020,11 @@ class AnalyticsTracker {
|
|
|
16020
16020
|
this.isFirstPageView = false;
|
|
16021
16021
|
// Reset scroll tracking for new page
|
|
16022
16022
|
this.scrollEvents = 0;
|
|
16023
|
-
//
|
|
16024
|
-
this
|
|
16025
|
-
|
|
16026
|
-
|
|
16023
|
+
// DISABLED: Screenshot capture causes performance issues
|
|
16024
|
+
// TODO: Make this opt-in for enterprise customers only
|
|
16025
|
+
// this.capturePageScreenshotForHeatmap().catch(error => {
|
|
16026
|
+
// console.warn('🖼️ [AnalyticsTracker] Page screenshot capture failed:', error);
|
|
16027
|
+
// });
|
|
16027
16028
|
}
|
|
16028
16029
|
async capturePageScreenshotForHeatmap() {
|
|
16029
16030
|
try {
|