@stokr/components-library 2.3.67 → 2.3.68

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.
@@ -67,7 +67,8 @@ function initAnalytics() {
67
67
  let {
68
68
  token,
69
69
  app,
70
- requireConsent = false
70
+ requireConsent = false,
71
+ scroll = true
71
72
  } = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
72
73
  if (initialized) return;
73
74
  if (!token) return;
@@ -75,13 +76,13 @@ function initAnalytics() {
75
76
  api_host: 'https://api-eu.mixpanel.com',
76
77
  autocapture: {
77
78
  pageview: 'full-url',
78
- click: true,
79
- dead_click: true,
80
- input: true,
79
+ click: false,
80
+ dead_click: false,
81
+ input: false,
81
82
  rage_click: true,
82
- scroll: true,
83
+ scroll,
83
84
  submit: true,
84
- capture_text_content: false // never capture visible text
85
+ capture_text_content: false
85
86
  },
86
87
  record_sessions_percent: 100,
87
88
  record_heatmap_data: true,
package/dist/index.js CHANGED
@@ -1169,7 +1169,7 @@ Object.keys(_fixDecimals).forEach(function (key) {
1169
1169
  }
1170
1170
  });
1171
1171
  });
1172
- var _analytics = require("./utils/analytics");
1172
+ var _analytics = require("./analytics");
1173
1173
  Object.keys(_analytics).forEach(function (key) {
1174
1174
  if (key === "default" || key === "__esModule") return;
1175
1175
  if (key in exports && exports[key] === _analytics[key]) return;
@@ -1180,17 +1180,6 @@ Object.keys(_analytics).forEach(function (key) {
1180
1180
  }
1181
1181
  });
1182
1182
  });
1183
- var _analytics2 = require("./analytics");
1184
- Object.keys(_analytics2).forEach(function (key) {
1185
- if (key === "default" || key === "__esModule") return;
1186
- if (key in exports && exports[key] === _analytics2[key]) return;
1187
- Object.defineProperty(exports, key, {
1188
- enumerable: true,
1189
- get: function () {
1190
- return _analytics2[key];
1191
- }
1192
- });
1193
- });
1194
1183
  var _formatCurrencyValue = require("./utils/formatCurrencyValue");
1195
1184
  Object.keys(_formatCurrencyValue).forEach(function (key) {
1196
1185
  if (key === "default" || key === "__esModule") return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stokr/components-library",
3
- "version": "2.3.67",
3
+ "version": "2.3.68",
4
4
  "description": "STOKR - Components Library",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -58,7 +58,6 @@
58
58
  "react-day-picker": "^9.11.1",
59
59
  "react-device-detect": "^2.2.3",
60
60
  "react-dom": "^18.3.1",
61
- "react-ga4": "^2.1.0",
62
61
  "react-helmet": "^6.1.0",
63
62
  "react-otp-input": "^3.1.0",
64
63
  "react-portal": "^4.2.2",