gatsby-core-theme 41.1.10 → 41.1.11

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/CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
1
+ ## [41.1.11](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v41.1.10...v41.1.11) (2024-12-13)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * remove crazy egg and fix anchor ([abf6c5e](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/abf6c5e812eecd70353b90899be7696a8155d63d))
7
+
8
+
9
+ * Merge branch 'tm-4999-remove-crazyegg' into 'master' ([0df1e13](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/0df1e13a0967577ec99bf4d999e8e2631beb6db6))
10
+
1
11
  ## [41.1.10](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v41.1.9...v41.1.10) (2024-12-12)
2
12
 
3
13
 
package/gatsby-browser.js CHANGED
@@ -61,13 +61,6 @@ function optinMonster() {
61
61
  document.head.appendChild(script);
62
62
  }
63
63
 
64
- function crazyEgg() {
65
- const script = document.createElement('script');
66
- script.id = 'crazy-egg';
67
- script.src = 'https://script.crazyegg.com/pages/scripts/0120/2543.js';
68
- script.async = true;
69
- document.head.appendChild(script);
70
- }
71
64
 
72
65
  const loadFacebookPixel = () => {
73
66
  !(function (f, b, e, v, n, t, s) {
@@ -169,8 +162,6 @@ function scrollEvent(event) {
169
162
  }
170
163
  }
171
164
 
172
- if (process.env.ENABLE_CRAZYEGG === 'true' && !document.getElementById('crazy-egg')) crazyEgg();
173
-
174
165
  if (event) {
175
166
  event.currentTarget.removeEventListener(event.type, scrollEvent); // remove the event listener that got triggered
176
167
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-core-theme",
3
- "version": "41.1.10",
3
+ "version": "41.1.11",
4
4
  "description": "Gatsby Theme NPM Package",
5
5
  "author": "",
6
6
  "license": "ISC",
@@ -72,7 +72,7 @@ function Anchor({
72
72
  };
73
73
 
74
74
  const setActiveAnchor = () => {
75
- const elements = document.querySelectorAll("[data-track='true']");
75
+ const elements = document.querySelectorAll("[data-track='true'], [data-anchor-label]");
76
76
  const { innerHeight, scrollY } = window;
77
77
  const scrollHeight = document.body.scrollHeight;
78
78