gatsby-core-theme 44.4.2 → 44.4.4

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,29 @@
1
+ ## [44.4.4](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.4.3...v44.4.4) (2025-07-10)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * add toplist bonus on pick keys ([cc91b91](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/cc91b917f588e20f663ec465868389b722fff130))
7
+ * cookie fix ([74f0fd0](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/74f0fd0bbae215e0f14ef78ce115c38653562e70))
8
+ * get latest changes ([e33235f](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/e33235f8b13b37c0543bd781de2c8f1ad59d927a))
9
+ * remove unecessary console warn ([1a8d298](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/1a8d2988fd28ca594930606d4d43d0e2e0538348))
10
+ * test for undefined string ([80caf93](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/80caf93d73562619d0bdc2b0c67c020e01658a36))
11
+
12
+
13
+ * Merge branch 'cookie-fix-issue' into 'master' ([02257f2](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/02257f2911238a4d8521f4f57170724af387feaf))
14
+ * Merge branch 'tm-5539-promo-code' into 'master' ([856a59c](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/856a59ce0bf5dc59f04300de8e57493418caed06))
15
+
16
+ ## [44.4.3](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.4.2...v44.4.3) (2025-07-09)
17
+
18
+
19
+ ### Bug Fixes
20
+
21
+ * added defaults for rating vars ([2228102](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/22281028680518850f61883f395ac698f3cd602e))
22
+ * schema image ([f9f7e07](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/f9f7e07f56315a137c7ebe0ee45d323d486a4f95))
23
+
24
+
25
+ * Merge branch 'tm-5467-schema-image' into 'master' ([05d6ea0](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/05d6ea0d15613a71de0243ced04ed4379cf26adb))
26
+
1
27
  ## [44.4.2](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.4.1...v44.4.2) (2025-07-09)
2
28
 
3
29
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-core-theme",
3
- "version": "44.4.2",
3
+ "version": "44.4.4",
4
4
  "description": "Gatsby Theme NPM Package",
5
5
  "author": "",
6
6
  "license": "ISC",
@@ -52,7 +52,7 @@ const CookieConsent = ({
52
52
  };
53
53
 
54
54
  useEffect(() => {
55
- if (typeof window !== `undefined` && getCookie('showCookie') !== false) {
55
+ if (typeof window !== `undefined` && getCookie('showCookie') !== "false") {
56
56
  setShowCookieConsent(true);
57
57
  }
58
58
  }, []);
@@ -42,8 +42,8 @@
42
42
  }
43
43
 
44
44
  .rating {
45
- block-size: var(--starsize);
46
- inline-size: var(--w);
45
+ block-size: var(--starsize, 2.8rem);
46
+ inline-size: var(--w, calc(var(--stars, 5) * var(--starsize, 2.8rem)));
47
47
  position: relative;
48
48
  touch-action: manipulation;
49
49
  appearance: none;
@@ -53,37 +53,36 @@
53
53
  }
54
54
 
55
55
  .rating::-moz-range-track {
56
- background: var(--fillbg);
56
+ background: var(--fillbg, #CBD5E1);
57
57
  block-size: 100%;
58
- mask: repeat left center/var(--starsize) var(--symbol);
58
+ mask: repeat left center/var(--starsize, 2.8rem) url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 17.25l-6.188 3.75 1.641-7.031-5.438-4.734 7.172-0.609 2.813-6.609 2.813 6.609 7.172 0.609-5.438 4.734 1.641 7.031z"/></svg>');
59
59
  }
60
60
 
61
61
  .rating::-webkit-slider-runnable-track {
62
62
  block-size: 100%;
63
- mask: repeat left center/var(--starsize) var(--symbol);
64
- background: var(--fillbg);
65
- mask: repeat left center/var(--starsize) var(--symbol);
63
+ background: var(--fillbg, #CBD5E1);
64
+ mask: repeat left center/var(--starsize, 2.8rem) url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 17.25l-6.188 3.75 1.641-7.031-5.438-4.734 7.172-0.609 2.813-6.609 2.813 6.609 7.172 0.609-5.438 4.734 1.641 7.031z"/></svg>');
66
65
  }
67
66
 
68
67
  .rating::-moz-range-thumb {
69
- height: var(--starsize);
68
+ height: var(--starsize, 2.8rem);
70
69
  opacity: 0;
71
- width: var(--starsize);
70
+ width: var(--starsize, 2.8rem);
72
71
  }
73
72
 
74
73
  .rating::-webkit-slider-thumb {
75
- height: var(--starsize);
74
+ height: var(--starsize, 2.8rem);
76
75
  appearance: none;
77
- background-color: var(--fill);
78
- box-shadow: calc(0rem - var(--w)) 0 0 var(--w) var(--fill);
76
+ background-color: var(--fill, #F59E0B);
77
+ box-shadow: calc(0rem - var(--w, calc(var(--stars, 5) * var(--starsize, 2.8rem)))) 0 0 var(--w, calc(var(--stars, 5) * var(--starsize, 2.8rem))) var(--fill, #F59E0B);
79
78
  opacity: 1;
80
79
  width: 1px;
81
80
  }
82
81
 
83
82
  .rating::-moz-range-progress {
84
- background: var(--fill);
83
+ background: var(--fill, #F59E0B);
85
84
  block-size: 100%;
86
- mask: repeat left center/var(--starsize) var(--star);
85
+ mask: repeat left center/var(--starsize, 2.8rem) url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 17.25l-6.188 3.75 1.641-7.031-5.438-4.734 7.172-0.609 2.813-6.609 2.813 6.609 7.172 0.609-5.438 4.734 1.641 7.031z"/></svg>');
87
86
  }
88
87
 
89
88
  .switch {
@@ -106,7 +105,6 @@
106
105
  inset: 0;
107
106
  background-color: #ccc;
108
107
  transition: .4s;
109
- transition: .4s;
110
108
  border-radius: 3.4rem;
111
109
  }
112
110
 
@@ -120,7 +118,6 @@
120
118
  bottom: .4rem;
121
119
  background-color: #fff;
122
120
  transition: .4s;
123
- transition: .4s;
124
121
  }
125
122
 
126
123
  input:checked + .slider {
@@ -133,8 +130,6 @@ input:focus + .slider {
133
130
 
134
131
  input:checked + .slider::before {
135
132
  transform: translateX(26px);
136
- transform: translateX(26px);
137
- transform: translateX(26px);
138
133
  }
139
134
 
140
135
  .switchLabel{
@@ -131,6 +131,7 @@ export const pickRelationKeys = {
131
131
  'average_withdrawal_times',
132
132
  'best_game',
133
133
  'rating_comments',
134
+ 'toplist_bonus'
134
135
  ],
135
136
  operator_simplified: [
136
137
  "short_name",
@@ -0,0 +1,5 @@
1
+ /* eslint-disable import/prefer-default-export */
2
+ export const SchemaConstant = {
3
+ operatorHeaderWidth: "",
4
+ operatorHeaderHeight: "",
5
+ }
@@ -1,5 +1,6 @@
1
1
  import { getGameRating, getUrl, getLanguage, imagePrettyUrl } from './getters';
2
2
  import { cleanHTML } from './strings';
3
+ import {SchemaConstant} from '../constants/schema';
3
4
 
4
5
  /* HardCoded Start */
5
6
  export const customSchema = {
@@ -437,7 +438,7 @@ export function templateSchemas(page, pageImage) {
437
438
  '@type': 'Organization',
438
439
  url: getUrl(page.path),
439
440
  name: page.title || '',
440
- image: imagePrettyUrl(page.relation?.logo?.filename),
441
+ image: imagePrettyUrl(page.relation?.logo?.filename, SchemaConstant.operatorHeaderWidth, SchemaConstant.operatorHeaderHeight),
441
442
  },
442
443
  reviewRating: {
443
444
  '@type': 'Rating',
@@ -208,16 +208,8 @@
208
208
 
209
209
  // NOTE -- Rating
210
210
  --dir: right;
211
- --fill: #F59E0B;
212
- --fillbg: #CBD5E1;
213
- --heart: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 21.328l-1.453-1.313q-2.484-2.25-3.609-3.328t-2.508-2.672-1.898-2.883-0.516-2.648q0-2.297 1.57-3.891t3.914-1.594q2.719 0 4.5 2.109 1.781-2.109 4.5-2.109 2.344 0 3.914 1.594t1.57 3.891q0 1.828-1.219 3.797t-2.648 3.422-4.664 4.359z"/></svg>');
214
- --star: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 17.25l-6.188 3.75 1.641-7.031-5.438-4.734 7.172-0.609 2.813-6.609 2.813 6.609 7.172 0.609-5.438 4.734 1.641 7.031z"/></svg>');
215
211
  --stars: 5;
216
- --starsize: 2.8rem;
217
- --symbol: var(--star);
218
212
  --value: 1;
219
- --w: calc(var(--stars) * var(--starsize));
220
- --x: calc(100% * (var(--value) / var(--stars)));
221
213
  }
222
214
 
223
215