gatsby-core-theme 44.1.0 → 44.1.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
+ ## [44.1.2](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.1.1...v44.1.2) (2025-05-28)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * fix meta data for region and country ([98a1285](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/98a1285d8bd1dc60a818f7f98d8f88cbc0a2c4d7))
7
+ * toplist module review link ([8714fc1](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/8714fc1f12c4d13718feddfa3f5150ff184fa8f9))
8
+
9
+ ## [44.1.1](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.1.0...v44.1.1) (2025-05-27)
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * add extra checkers for topsearches and recommended casinos ([1ecb28c](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/1ecb28cc786b6d8f91fa3f6ebb744f84eed60009))
15
+ * add extra checkers for topsearches and recommended casinos ([25e4265](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/25e42650eb94dba68c0984f760a52752bbdbe90e))
16
+ * add extra fields for search ([22322d1](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/22322d14b3e4f6995109e470c89af7e2e3bbfd7c))
17
+ * update ip server for storybook ([4d9ac60](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/4d9ac60cc8ac8748cfbd4ee5bdcaba2425f6a94a))
18
+
19
+
20
+ * Merge branch 'tm-5458-payment-custom-text' into 'master' ([d126d85](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/d126d850df231769de0477536b3f57b731fc37c2))
21
+ * Merge branch 'add-extra-checkers' into 'master' ([ca2e22a](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/ca2e22a554ea7ec25d879189899e75165d61f376))
22
+
1
23
  # [44.1.0](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.0.42...v44.1.0) (2025-05-21)
2
24
 
3
25
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-core-theme",
3
- "version": "44.1.0",
3
+ "version": "44.1.2",
4
4
  "description": "Gatsby Theme NPM Package",
5
5
  "author": "",
6
6
  "license": "ISC",
@@ -28,9 +28,8 @@ const SearchForm = ({
28
28
  autoCompleteIcon = <IoIosArrowForward title="Search Icon" />,
29
29
  }) => {
30
30
  const { market, template } = pageContext.page;
31
- const recommendedCasinos = pageContext?.marketSections?.recommended_casinos?.modules[0]?.items[0].items
32
- const topSearches = pageContext?.marketSections?.top_searches?.modules[0]?.items
33
-
31
+ const recommendedCasinos = pageContext?.marketSections?.recommended_casinos?.modules?.[0]?.items?.[0]?.items
32
+ const topSearches = pageContext?.marketSections?.top_searches?.modules?.[0]?.items
34
33
  const [localSearch, setLocalSearch] = useState(false);
35
34
 
36
35
  const loadedCounts = {
@@ -46,8 +46,8 @@ export default (page, isTracker) => {
46
46
  ? "en_GB"
47
47
  : getLanguage(page.language),
48
48
  },
49
- { type: "meta", content: process.env.PLACENAME },
50
- { type: "region", content: process.env.COUNTRY },
49
+ { type: "meta", name:'geo.placename', content: process.env.PLACENAME },
50
+ { type: "meta", name:'geo.region', content: process.env.COUNTRY },
51
51
  {
52
52
  type: "meta",
53
53
  name: "facebook-domain-verification",
@@ -496,6 +496,7 @@ export default {
496
496
  path,
497
497
  banner,
498
498
  type,
499
+ extra_fields,
499
500
  ...(relation?.short_name && { short_name: relation.short_name }),
500
501
  ...(relation?.logo && { logo: relation.logo.filename }),
501
502
  ...(relation?.game_id && { game_id: relation.game_id }),
@@ -13,7 +13,11 @@ import {
13
13
  import { sanitizeOperatorData } from "./operators.mjs";
14
14
  import settings from "../../constants/settings.mjs";
15
15
  import ModuleValue from "../../constants/module-value.mjs";
16
- import { shiftFirstOperator, getModuleTitle, trailingSlash } from "../getters.mjs";
16
+ import {
17
+ shiftFirstOperator,
18
+ getModuleTitle,
19
+ trailingSlash,
20
+ } from "../getters.mjs";
17
21
 
18
22
  const pagesGroupedByTemplateId = [];
19
23
  const cardItems = {};
@@ -267,7 +271,9 @@ export function processCardsV2(
267
271
  }
268
272
  return 0;
269
273
  });
270
- module.items = module.cards_selector_filters_limit ? cardItems[b64].slice(0, module.cards_selector_filters_limit) : cardItems[b64];
274
+ module.items = module.cards_selector_filters_limit
275
+ ? cardItems[b64].slice(0, module.cards_selector_filters_limit)
276
+ : cardItems[b64];
271
277
  }
272
278
  }
273
279
  }
@@ -311,7 +317,7 @@ export function processTopListModule(
311
317
  pages,
312
318
  markets,
313
319
  data,
314
- toplists,
320
+ toplists
315
321
  ) {
316
322
  module.items = module.items.map((listItem) => {
317
323
  const { type } = listItem;
@@ -326,7 +332,6 @@ export function processTopListModule(
326
332
  : [];
327
333
  }
328
334
 
329
-
330
335
  if (listItem.id && toplists && toplists[listItem.id.toString()]) {
331
336
  listItem.market = toplists[listItem.id].market?.short_code;
332
337
  listItem.items = toplists[listItem.id].items;
@@ -336,12 +341,14 @@ export function processTopListModule(
336
341
 
337
342
  listItem.items = listItem.items
338
343
  ? listItem.items.map((item) => {
339
- const operatorRelation = cloneDeep(Object.values(relations.operator).find(
340
- (operator) =>
341
- operator.operator_id === item.operator_id &&
342
- operator.market === listItem.market &&
343
- type === operator.type
344
- ));
344
+ const operatorRelation = cloneDeep(
345
+ Object.values(relations.operator).find(
346
+ (operator) =>
347
+ operator.operator_id === item.operator_id &&
348
+ operator.market === listItem.market &&
349
+ type === operator.type
350
+ )
351
+ );
345
352
 
346
353
  if (operatorRelation) {
347
354
  operatorRelation.ribbons =
@@ -355,19 +362,29 @@ export function processTopListModule(
355
362
  : item.selling_points;
356
363
  }
357
364
 
358
- operatorRelation.updated_at = item.updated_at;
359
- operatorRelation.toplist_bonus = item.bonus_name
365
+ operatorRelation.updated_at = item.updated_at;
366
+ operatorRelation.toplist_bonus = item.bonus_name;
360
367
 
361
- const operatorPage =
362
- pages && pages.operator && operatorRelation
363
- ? pages.operator.filter(
364
- (page) => page.relation && page.relation.operator_id === operatorRelation.operator_id)
365
- : [];
368
+ const operatorPage =
369
+ pages && pages.operator && operatorRelation
370
+ ? pages.operator.filter(
371
+ (page) =>
372
+ page.relation &&
373
+ page.relation.operator_id ===
374
+ operatorRelation.operator_id &&
375
+ page.relation.type === operatorRelation.type
376
+ )
377
+ : [];
366
378
 
367
379
  const reviewLink =
368
380
  operatorPage.length > 0 ? operatorPage[0].path : null;
369
381
 
370
- const clone = sanitizeOperatorData(cloneDeep(operatorRelation), operatorPage, data, toplists && toplists[listItem.id].label);
382
+ const clone = sanitizeOperatorData(
383
+ cloneDeep(operatorRelation),
384
+ operatorPage,
385
+ data,
386
+ toplists && toplists[listItem.id].label
387
+ );
371
388
 
372
389
  return Object.assign(clone, { review_link: reviewLink });
373
390
  })
@@ -451,12 +468,13 @@ export function shouldSavePrefilled(module = {}, siteName) {
451
468
  }
452
469
 
453
470
  export function processSpotlightModule(module = {}, content) {
454
-
455
- module.items.forEach((item) => {
456
- item.content = trailingSlash((content && content[item.content]) || item.content);
471
+ module.items.forEach((item) => {
472
+ item.content = trailingSlash(
473
+ (content && content[item.content]) || item.content
474
+ );
457
475
  item.text = trailingSlash((content && content[item.text]) || item.text);
458
476
  });
459
-
477
+
460
478
  return module;
461
479
  }
462
480
 
@@ -472,8 +490,18 @@ export function processFaq(module = {}, content, relationData) {
472
490
  module.items &&
473
491
  // eslint-disable-next-line array-callback-return
474
492
  module.items.map((item) => {
475
- item.question = trailingSlash((content && generatePlaceholderString(content[item.question],null,relationData)) || item.question);
476
- item.answer = trailingSlash((content && content[item.answer]) || item.answer);
493
+ item.question = trailingSlash(
494
+ (content &&
495
+ generatePlaceholderString(
496
+ content[item.question],
497
+ null,
498
+ relationData
499
+ )) ||
500
+ item.question
501
+ );
502
+ item.answer = trailingSlash(
503
+ (content && content[item.answer]) || item.answer
504
+ );
477
505
  });
478
506
  }
479
507
 
@@ -481,9 +509,12 @@ export function processAnchor(module = {}, relationData, translations) {
481
509
  // eslint-disable-next-line no-unused-expressions
482
510
  module.items &&
483
511
  module.items.forEach((anchor) => {
484
-
485
- const generatedLabel = generatePlaceholderString(anchor?.label?.trim(), translations, relationData);
486
- const anchorLinkText = anchorLink(generatedLabel);
512
+ const generatedLabel = generatePlaceholderString(
513
+ anchor?.label?.trim(),
514
+ translations,
515
+ relationData
516
+ );
517
+ const anchorLinkText = anchorLink(generatedLabel);
487
518
 
488
519
  anchor.id = `${anchor.label && removeSymbols(anchorLinkText)}`;
489
520
  anchor.label = generatedLabel;
@@ -238,7 +238,7 @@ describe("Modules Helper", () => {
238
238
  relation_id: 6342,
239
239
  market: "en_za",
240
240
  path: "en/slotum",
241
- relation: { operator_id: 6342 },
241
+ relation: { operator_id: 6342, type: "casino" },
242
242
  },
243
243
  ],
244
244
  });
@@ -13,7 +13,7 @@ set('default_timeout', 960);
13
13
  set('allow_anonymous_stats', false);
14
14
 
15
15
  $hostNames = [
16
- 'storybook' => '167.99.18.218',
16
+ 'storybook' => '82.196.10.160',
17
17
  ];
18
18
 
19
19
  // Storybook