@devskin/browser-sdk 1.0.24 → 1.0.25

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.
@@ -13871,7 +13871,7 @@ class DevSkinSDK {
13871
13871
  * Initialize the DevSkin SDK
13872
13872
  */
13873
13873
  init(config) {
13874
- var _a, _b, _c, _d;
13874
+ var _a;
13875
13875
  if (this.initialized) {
13876
13876
  console.warn('[DevSkin] SDK already initialized');
13877
13877
  return;
@@ -13907,24 +13907,20 @@ class DevSkinSDK {
13907
13907
  this.networkCollector = new NetworkCollector(this.config, this.transport);
13908
13908
  this.networkCollector.start();
13909
13909
  }
13910
- // Initialize heatmap collector
13911
- // Auto-enable heatmap if session recording is enabled
13912
- const heatmapEnabled = ((_a = this.config.heatmapOptions) === null || _a === void 0 ? void 0 : _a.enabled) || ((_b = this.config.sessionRecording) === null || _b === void 0 ? void 0 : _b.enabled);
13913
- if (heatmapEnabled) {
13914
- // Merge default heatmap config with user config
13915
- const heatmapConfig = Object.assign({ enabled: true, trackClicks: true, trackScroll: true, trackMouseMovement: true, mouseMoveSampling: 0.05 }, this.config.heatmapOptions);
13916
- this.config.heatmapOptions = heatmapConfig;
13917
- this.heatmapCollector = new HeatmapCollector(this.config, this.transport);
13918
- this.heatmapCollector.start();
13919
- // Initialize screenshot collector and capture page
13920
- this.screenshotCollector = new ScreenshotCollector(this.config, this.transport);
13921
- this.screenshotCollector.captureAndSend(this.sessionId, window.location.href);
13922
- if (this.config.debug) {
13923
- console.log('[DevSkin] Heatmap collection enabled', ((_c = this.config.sessionRecording) === null || _c === void 0 ? void 0 : _c.enabled) ? '(auto-enabled with session recording)' : '');
13924
- }
13910
+ // Initialize heatmap collector - SEMPRE habilitado
13911
+ // Merge default heatmap config with user config
13912
+ const heatmapConfig = Object.assign({ enabled: true, trackClicks: true, trackScroll: true, trackMouseMovement: true, mouseMoveSampling: 0.1 }, this.config.heatmapOptions);
13913
+ this.config.heatmapOptions = heatmapConfig;
13914
+ this.heatmapCollector = new HeatmapCollector(this.config, this.transport);
13915
+ this.heatmapCollector.start();
13916
+ // Initialize screenshot collector and capture page
13917
+ this.screenshotCollector = new ScreenshotCollector(this.config, this.transport);
13918
+ this.screenshotCollector.captureAndSend(this.sessionId, window.location.href);
13919
+ if (this.config.debug) {
13920
+ console.log('[DevSkin] Heatmap collection enabled (always on)');
13925
13921
  }
13926
13922
  // Initialize session recording with rrweb
13927
- if ((_d = this.config.sessionRecording) === null || _d === void 0 ? void 0 : _d.enabled) {
13923
+ if ((_a = this.config.sessionRecording) === null || _a === void 0 ? void 0 : _a.enabled) {
13928
13924
  // Use RRWebRecorder for complete DOM recording
13929
13925
  this.rrwebRecorder = new RRWebRecorder(this.sessionId, {
13930
13926
  enabled: true,