@aranova/tracking-react 0.20.0 → 0.20.2
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.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2775,7 +2775,7 @@ function describeElement(el) {
|
|
|
2775
2775
|
function resolveCtaName(el) {
|
|
2776
2776
|
const explicit = el.getAttribute("data-aranova-cta");
|
|
2777
2777
|
if (explicit && explicit.trim().length > 0) return explicit.trim();
|
|
2778
|
-
const text = (el.textContent ?? "").trim().
|
|
2778
|
+
const text = (el.textContent ?? "").trim().replaceAll(/\s+/g, " ");
|
|
2779
2779
|
if (text.length > 0) return text.slice(0, CTA_NAME_MAX_LENGTH);
|
|
2780
2780
|
return describeElement(el);
|
|
2781
2781
|
}
|
|
@@ -3555,7 +3555,7 @@ function GoogleAdsTracking(props) {
|
|
|
3555
3555
|
import { createContext as createContext2, useContext as useContext2, useEffect as useEffect5, useMemo as useMemo4 } from "react";
|
|
3556
3556
|
|
|
3557
3557
|
// package.json
|
|
3558
|
-
var version = "0.20.
|
|
3558
|
+
var version = "0.20.2";
|
|
3559
3559
|
|
|
3560
3560
|
// ../tracking-core/src/phone-react.tsx
|
|
3561
3561
|
import {
|