@usermaven/react 1.5.2 → 1.5.3-rc.95
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/lib/index.es.js +9 -7
- package/package.json +2 -2
package/lib/index.es.js
CHANGED
|
@@ -237,16 +237,16 @@ function $(i) {
|
|
|
237
237
|
function L(i) {
|
|
238
238
|
let e = "";
|
|
239
239
|
return O(i) && !M(i) && i.childNodes && i.childNodes.length && f(i.childNodes, function(t) {
|
|
240
|
-
|
|
240
|
+
q(t) && t.textContent && (e += x(t.textContent).split(/(\s+)/).filter(P).join("").replace(/[\r\n]/g, " ").replace(/[ ]+/g, " ").substring(0, 255));
|
|
241
241
|
}), x(e);
|
|
242
242
|
}
|
|
243
|
-
function
|
|
243
|
+
function B(i) {
|
|
244
244
|
return !!i && i.nodeType === 1;
|
|
245
245
|
}
|
|
246
246
|
function g(i, e) {
|
|
247
247
|
return !!i && !!i.tagName && i.tagName.toLowerCase() === e.toLowerCase();
|
|
248
248
|
}
|
|
249
|
-
function
|
|
249
|
+
function q(i) {
|
|
250
250
|
return !!i && i.nodeType === 3;
|
|
251
251
|
}
|
|
252
252
|
function N(i) {
|
|
@@ -254,7 +254,7 @@ function N(i) {
|
|
|
254
254
|
}
|
|
255
255
|
const b = ["a", "button", "form", "input", "select", "textarea", "label"];
|
|
256
256
|
function re(i, e) {
|
|
257
|
-
if (!i || g(i, "html") || !
|
|
257
|
+
if (!i || g(i, "html") || !B(i))
|
|
258
258
|
return !1;
|
|
259
259
|
let t = i;
|
|
260
260
|
for (; t && !g(t, "body"); ) {
|
|
@@ -439,7 +439,7 @@ const C = class C {
|
|
|
439
439
|
captureEvent(e) {
|
|
440
440
|
var s, n;
|
|
441
441
|
let t = this.getEventTarget(e);
|
|
442
|
-
if (
|
|
442
|
+
if (q(t) && (t = t.parentNode || null), e.type === "scroll")
|
|
443
443
|
return (s = this.scrollDepth) == null || s.track(), !0;
|
|
444
444
|
if (e.type === "visibilitychange" && document.visibilityState === "hidden" || e.type === "popstate")
|
|
445
445
|
return this.isPageRefresh() || (n = this.scrollDepth) == null || n.send(), !0;
|
|
@@ -523,7 +523,7 @@ const C = class C {
|
|
|
523
523
|
let t = e;
|
|
524
524
|
do
|
|
525
525
|
t = t.previousSibling;
|
|
526
|
-
while (t && !
|
|
526
|
+
while (t && !B(t));
|
|
527
527
|
return t;
|
|
528
528
|
}
|
|
529
529
|
}
|
|
@@ -1262,7 +1262,9 @@ function ve(i) {
|
|
|
1262
1262
|
domains: i.getAttribute("data-domains") || void 0,
|
|
1263
1263
|
maskAllText: i.getAttribute("data-mask-all-text") === "true",
|
|
1264
1264
|
maskAllElementAttributes: i.getAttribute("data-mask-all-element-attributes") === "true"
|
|
1265
|
-
}
|
|
1265
|
+
};
|
|
1266
|
+
e.privacyPolicy === "strict" && (e.cookiePolicy = "strict", e.ipPolicy = "strict"), e.cookiePolicy === "comply" && e.useBeaconApi && (e.cookiePolicy = "strict");
|
|
1267
|
+
const t = ke(e), s = e.namespace || "usermaven";
|
|
1266
1268
|
u() && t.pageview(), _e(s, t);
|
|
1267
1269
|
}
|
|
1268
1270
|
function _e(i, e) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@usermaven/react",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.3-rc.95",
|
|
4
4
|
"description": "Usermaven JavaScript SDK for React",
|
|
5
5
|
"author": "Usermaven <hello@usermaven.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"access": "public"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@usermaven/sdk-js": "1.5.
|
|
21
|
+
"@usermaven/sdk-js": "1.5.3-rc.95"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"react": "15.x || 16.x || 17.x || 18.x",
|