gatsby-core-theme 25.0.0 → 25.0.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/CHANGELOG.md CHANGED
@@ -1,3 +1,25 @@
1
+ ## [25.0.2](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v25.0.1...v25.0.2) (2023-07-14)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * preview ([4255291](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/4255291a28dc9205b77b2fcd8acb862137043faa))
7
+ * sticky on scroll ([a6004eb](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/a6004eb0bf74a5bb353b8a64694f2353aa44760f))
8
+ * update settings js ([f6133a8](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/f6133a8fda69905f0a8960a1123c5773f95defbc))
9
+
10
+
11
+ * Merge branch 'preview-fix' into 'master' ([30d497e](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/30d497ea65cdadb815563a9b13450fd2c97b71ac))
12
+ * Merge branch 'tm-3497-cards-v2' into 'master' ([ff3817d](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/ff3817d511dacc389675f54ec73ed564eecbc171))
13
+ * Merge branch 'tm-3434-sticky-onscroll' into 'master' ([2a80869](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/2a80869edbeb9b03f34228679358d1d85bf101be))
14
+
15
+ ## [25.0.1](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v25.0.0...v25.0.1) (2023-07-12)
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * active market bug ([88c923e](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/88c923e8c9f6e16cac6c9a961a3697720dafdf04))
21
+ * active market bug ([d9c9f67](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/d9c9f674bd77d163780b8801c870c956350b4fe5))
22
+
1
23
  # [25.0.0](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v24.0.4...v25.0.0) (2023-07-12)
2
24
 
3
25
 
package/gatsby-node.mjs CHANGED
@@ -4,7 +4,7 @@
4
4
  /* eslint no-console: ["error", { allow: ["log"] }], no-shadow: ["error", { "allow": ["marketSections", "prefilledModules"] }] */
5
5
  /* eslint-disable dot-notation */
6
6
 
7
- import loadash from 'lodash';
7
+ import loadash from 'lodash/index.js';
8
8
  import chalk from 'chalk';
9
9
  import fs from 'fs';
10
10
  import { dirname } from "path"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-core-theme",
3
- "version": "25.0.0",
3
+ "version": "25.0.2",
4
4
  "description": "Gatsby Theme NPM Package",
5
5
  "main": "index.js",
6
6
  "directories": {
@@ -4,7 +4,7 @@
4
4
  /* eslint-disable react-hooks/exhaustive-deps */
5
5
  import React, { useRef, useContext } from 'react';
6
6
  import PropTypes from 'prop-types';
7
- import { compact } from 'lodash';
7
+ import { compact } from 'lodash/index.js';
8
8
  import isSticky from '~hooks/stickyOnScroll';
9
9
  import ScollX from '../../../hooks/scroll-x';
10
10
  import keygen from '~helpers/keygen';
@@ -48,7 +48,7 @@ const Navigation = ({
48
48
 
49
49
  if (stopScrollOnOpen) toggleScroll('', true);
50
50
 
51
- const activeMarket = pageContext?.allMarkets[pageContext.page.market];
51
+ const activeMarket = pageContext?.allMarkets && pageContext?.allMarkets[pageContext.page.market];
52
52
  if (activeMarket) activeMarket.market = pageContext?.page?.market;
53
53
 
54
54
  const onClickHandler = () => {
@@ -42,7 +42,11 @@ export default {
42
42
  },
43
43
  keep_sections: {
44
44
  software_provider: { 'norskespilleautomater.com': ['header'], 'playcasino.co.za': ['header'] },
45
- payment_method: { 'norskespilleautomater.com': ['header'], 'playcasino.co.za': ['header'] },
45
+ payment_method: {
46
+ 'norskespilleautomater.com': ['header'],
47
+ 'playcasino.co.za': ['header'],
48
+ 'xn--nt-casino-v2a.se': ['header'],
49
+ },
46
50
  operator: { 'Irishluck.ie': ['main'] },
47
51
  article: { 'Irishluck.ie': ['main'] },
48
52
  },
@@ -1,5 +1,5 @@
1
1
  /* eslint-disable import/no-extraneous-dependencies */
2
- import loadash from 'lodash';
2
+ import loadash from 'lodash/index.js';
3
3
  import { pickPageKeys, pickRelationKeys } from '../../constants/pick-keys.mjs';
4
4
  import settings from '../../constants/settings.mjs';
5
5
  // eslint-disable-next-line import/no-cycle
@@ -5,7 +5,7 @@
5
5
  /* eslint-disable no-prototype-builtins */
6
6
  /* eslint-disable no-use-before-define */
7
7
  /* eslint-disable no-shadow */
8
- import loadash from 'lodash';
8
+ import loadash from 'lodash/index.js';
9
9
  import chalk from 'chalk';
10
10
  import ModuleValue from '../../constants/module-value.mjs';
11
11
  import { pickHTMLSitemapPageKeys } from '../../constants/pick-keys.mjs';
@@ -1,5 +1,5 @@
1
1
  /* eslint-disable import/no-extraneous-dependencies */
2
- import loadash from 'lodash';
2
+ import loadash from 'lodash/index.js';
3
3
  import { topListPickKeys } from '../../constants/pick-keys.mjs';
4
4
  import { generatePlaceholderString } from '../generators.mjs';
5
5
  import { clonePageForCards, groupBy, removeDuplicates, removeCurrentPage } from './common.mjs';
@@ -1,5 +1,5 @@
1
1
  /* eslint-disable import/no-extraneous-dependencies */
2
- import loadash from 'lodash';
2
+ import loadash from 'lodash/index.js';
3
3
  import {
4
4
  filterScheduleByTournaments,
5
5
  filterScheduleByTeam,
@@ -24,7 +24,7 @@ export default function StickyOnScroll(stickyOffset = 0, callback, elementRef, d
24
24
  return () => {
25
25
  window.removeEventListener('scroll', handler);
26
26
  };
27
- }, []);
27
+ }, [sticky]);
28
28
 
29
29
  return sticky;
30
30
  }
@@ -1,5 +1,5 @@
1
1
  /* eslint-disable import/no-extraneous-dependencies */
2
- import { clone } from 'lodash';
2
+ import { clone } from 'lodash/index.js';
3
3
 
4
4
  /**
5
5
  * @name getPageData