@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.
- package/dist/devskin.cjs.js +13 -17
- package/dist/devskin.cjs.js.map +1 -1
- package/dist/devskin.esm.js +13 -17
- package/dist/devskin.esm.js.map +1 -1
- package/dist/devskin.umd.js +13 -17
- package/dist/devskin.umd.js.map +1 -1
- package/dist/devskin.umd.min.js +1 -1
- package/dist/devskin.umd.min.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/devskin.esm.js
CHANGED
|
@@ -13867,7 +13867,7 @@ class DevSkinSDK {
|
|
|
13867
13867
|
* Initialize the DevSkin SDK
|
|
13868
13868
|
*/
|
|
13869
13869
|
init(config) {
|
|
13870
|
-
var _a
|
|
13870
|
+
var _a;
|
|
13871
13871
|
if (this.initialized) {
|
|
13872
13872
|
console.warn('[DevSkin] SDK already initialized');
|
|
13873
13873
|
return;
|
|
@@ -13903,24 +13903,20 @@ class DevSkinSDK {
|
|
|
13903
13903
|
this.networkCollector = new NetworkCollector(this.config, this.transport);
|
|
13904
13904
|
this.networkCollector.start();
|
|
13905
13905
|
}
|
|
13906
|
-
// Initialize heatmap collector
|
|
13907
|
-
//
|
|
13908
|
-
const
|
|
13909
|
-
|
|
13910
|
-
|
|
13911
|
-
|
|
13912
|
-
|
|
13913
|
-
|
|
13914
|
-
|
|
13915
|
-
|
|
13916
|
-
|
|
13917
|
-
this.screenshotCollector.captureAndSend(this.sessionId, window.location.href);
|
|
13918
|
-
if (this.config.debug) {
|
|
13919
|
-
console.log('[DevSkin] Heatmap collection enabled', ((_c = this.config.sessionRecording) === null || _c === void 0 ? void 0 : _c.enabled) ? '(auto-enabled with session recording)' : '');
|
|
13920
|
-
}
|
|
13906
|
+
// Initialize heatmap collector - SEMPRE habilitado
|
|
13907
|
+
// Merge default heatmap config with user config
|
|
13908
|
+
const heatmapConfig = Object.assign({ enabled: true, trackClicks: true, trackScroll: true, trackMouseMovement: true, mouseMoveSampling: 0.1 }, this.config.heatmapOptions);
|
|
13909
|
+
this.config.heatmapOptions = heatmapConfig;
|
|
13910
|
+
this.heatmapCollector = new HeatmapCollector(this.config, this.transport);
|
|
13911
|
+
this.heatmapCollector.start();
|
|
13912
|
+
// Initialize screenshot collector and capture page
|
|
13913
|
+
this.screenshotCollector = new ScreenshotCollector(this.config, this.transport);
|
|
13914
|
+
this.screenshotCollector.captureAndSend(this.sessionId, window.location.href);
|
|
13915
|
+
if (this.config.debug) {
|
|
13916
|
+
console.log('[DevSkin] Heatmap collection enabled (always on)');
|
|
13921
13917
|
}
|
|
13922
13918
|
// Initialize session recording with rrweb
|
|
13923
|
-
if ((
|
|
13919
|
+
if ((_a = this.config.sessionRecording) === null || _a === void 0 ? void 0 : _a.enabled) {
|
|
13924
13920
|
// Use RRWebRecorder for complete DOM recording
|
|
13925
13921
|
this.rrwebRecorder = new RRWebRecorder(this.sessionId, {
|
|
13926
13922
|
enabled: true,
|