gatsby-core-theme 41.1.10 → 41.1.12

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,21 @@
1
+ ## [41.1.12](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v41.1.11...v41.1.12) (2024-12-17)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * preview feature for multimarket ([cc02473](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/cc02473d64aa622c3426c3ebf3ac05bc5488a8c8))
7
+ * preview feature for multimarket ([cd1eb8f](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/cd1eb8f26e4daa961c2637f2ec387ac6f40fb970))
8
+
9
+ ## [41.1.11](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v41.1.10...v41.1.11) (2024-12-13)
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * remove crazy egg and fix anchor ([abf6c5e](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/abf6c5e812eecd70353b90899be7696a8155d63d))
15
+
16
+
17
+ * Merge branch 'tm-4999-remove-crazyegg' into 'master' ([0df1e13](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/0df1e13a0967577ec99bf4d999e8e2631beb6db6))
18
+
1
19
  ## [41.1.10](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v41.1.9...v41.1.10) (2024-12-12)
2
20
 
3
21
 
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.12",
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
 
@@ -30,7 +30,8 @@ export async function getAPIData(page, url, headers, preview) {
30
30
  providersData
31
31
  } = await fetchSiteSettings(siteName, true);
32
32
 
33
- const pagePath = `${params?.market && allMarketsData[params?.market].path_prefix ? `${allMarketsData[params?.market].path_prefix}/` : '' }${params?.path}`
33
+ const pagePathPrefix = `${params?.market && allMarketsData[params?.market].path_prefix ? `${allMarketsData[params?.market].path_prefix}` : '' }`
34
+ const pagePath = `${pagePathPrefix}${params?.path === '/' && params?.market && allMarketsData[params?.market].path_prefix ? '' : params?.path}`
34
35
 
35
36
  const processed = processor.run(
36
37
  {
@@ -55,6 +56,9 @@ export async function getAPIData(page, url, headers, preview) {
55
56
  pagePath
56
57
  );
57
58
 
59
+ console.log(pagePath);
60
+
61
+
58
62
  const pagePreviewProcessed = Object.values(pagesData).filter(
59
63
  (value) => (value.path === pagePath)
60
64
  );
@@ -18,6 +18,7 @@ $hostNames = [
18
18
 
19
19
  // Storybook
20
20
  host('www.storybook-gatsby.gigmedia.com')
21
+ ->user('root')
21
22
  ->hostname($hostNames['storybook'])
22
23
  ->stage('storybook')
23
24
  ->set('deploy_path', '/var/www/storybook-gatsby.gigmedia.com')