@dotcms/analytics 1.2.5-next.1 → 1.2.5-next.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.
@@ -1,4 +1,4 @@
1
- import { ANALYTICS_JS_DEFAULT_PROPERTIES as p, SESSION_STORAGE_KEY as g, DEFAULT_SESSION_TIMEOUT_MINUTES as T, USER_ID_KEY as f, DEFAULT_IMPRESSION_MUTATION_OBSERVER_DEBOUNCE_MS as I, EXPECTED_UTM_KEYS as D, CONTENTLET_CLASS as h } from "../constants/dot-analytics.constants.js";
1
+ import { ANALYTICS_JS_DEFAULT_PROPERTIES as p, SESSION_STORAGE_KEY as g, DEFAULT_SESSION_TIMEOUT_MINUTES as T, USER_ID_KEY as f, EXPECTED_UTM_KEYS as I, CONTENTLET_CLASS as h, DEFAULT_IMPRESSION_MUTATION_OBSERVER_DEBOUNCE_MS as D } from "../constants/dot-analytics.constants.js";
2
2
  import { DotLogger as y } from "../dot-analytics.logger.js";
3
3
  function P(t) {
4
4
  const e = [];
@@ -114,7 +114,7 @@ const l = (t) => {
114
114
  if (u && u.search === e)
115
115
  return u.params;
116
116
  const n = new URLSearchParams(e), s = {};
117
- return D.forEach((o) => {
117
+ return I.forEach((o) => {
118
118
  const r = n.get(o);
119
119
  if (r) {
120
120
  const c = o.replace("utm_", "");
@@ -178,7 +178,7 @@ function F(t) {
178
178
  baseType: t.dataset.dotBasetype || ""
179
179
  };
180
180
  }
181
- const z = 100, N = () => typeof window < "u" && typeof document < "u", H = () => Array.from(document.querySelectorAll(`.${h}`)), J = (t, e = I) => {
181
+ const z = 100, N = () => typeof window < "u" && typeof document < "u", H = () => Array.from(document.querySelectorAll(`.${h}`)), J = (t, e = D) => {
182
182
  const n = L(t, e), s = new MutationObserver((r) => {
183
183
  r.some((a) => a.addedNodes.length === 0 && a.removedNodes.length === 0 ? !1 : [
184
184
  ...Array.from(a.addedNodes),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dotcms/analytics",
3
- "version": "1.2.5-next.1",
3
+ "version": "1.2.5-next.2",
4
4
  "description": "Official JavaScript library for Content Analytics with DotCMS.",
5
5
  "repository": {
6
6
  "type": "git",