gatsby-core-theme 21.0.9 → 22.0.0
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/.ci.yml +3 -3
- package/CHANGELOG.md +38 -0
- package/package.json +1 -1
- package/src/components/molecules/link-list/index.js +18 -16
- package/src/helpers/processor/index.js +20 -0
package/.ci.yml
CHANGED
|
@@ -22,7 +22,7 @@ Theme Publish:
|
|
|
22
22
|
image: node:18.0.0
|
|
23
23
|
stage: publish
|
|
24
24
|
tags:
|
|
25
|
-
- gatsby-runner-dev-
|
|
25
|
+
- gatsby-runner-dev-docker
|
|
26
26
|
before_script:
|
|
27
27
|
- git config --global http.sslverify false
|
|
28
28
|
- git config --global user.email "floyd@gig.com"
|
|
@@ -44,7 +44,7 @@ Theme Beta Publish:
|
|
|
44
44
|
image: git.ilcd.rocks:4567/team-floyd/themes/gatsby-themes:node14
|
|
45
45
|
stage: publish-beta
|
|
46
46
|
tags:
|
|
47
|
-
- gatsby-runner-dev-
|
|
47
|
+
- gatsby-runner-dev-docker
|
|
48
48
|
before_script:
|
|
49
49
|
- git config --global http.sslverify false
|
|
50
50
|
- git config --global user.email "floyd@gig.com"
|
|
@@ -60,4 +60,4 @@ Theme Beta Publish:
|
|
|
60
60
|
refs:
|
|
61
61
|
- beta
|
|
62
62
|
variables:
|
|
63
|
-
- $PIPELINE != "content-trigger"
|
|
63
|
+
- $PIPELINE != "content-trigger"
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,41 @@
|
|
|
1
|
+
# [22.0.0](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v21.0.10...v22.0.0) (2023-05-12)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Code Refactoring
|
|
5
|
+
|
|
6
|
+
* add responsible gaming to pages ([8ce1866](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/8ce18661cc721f55f94ebfc52419eeb4377586bf))
|
|
7
|
+
* fix for empty responsible gamings ids ([dc2c554](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/dc2c554845d7a2f548cf3016dbefc730acb9fc5f))
|
|
8
|
+
* remove space ([9695798](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/969579861cc020a6533a7e86d9243122ea7ae592))
|
|
9
|
+
* remove unwanted responsible gaming data ([be9a3db](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/be9a3dba076694d8fe65a5369b1fb5d4c04b2dbf))
|
|
10
|
+
* responsible gaming section ([1e045fe](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/1e045fe4964257f922547e439277b8d259572cae))
|
|
11
|
+
* revert temp ([fb3272b](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/fb3272bb16488b28ad89d78eecd4c33670c8531e))
|
|
12
|
+
* temp ([88762ca](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/88762ca15062425f3a15c29dbff23715cbff15ec))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
* Merge branch 'tm-3395-responsible-gaming' into 'master' ([02c9aba](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/02c9abaf8b281c6b6c3d2cd42dbd60402bf16148))
|
|
16
|
+
* Merge branch 'tm-3395-responsible-gaming' into 'master' ([6241d74](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/6241d746b139fc76e686f0678c189a7812e1a18e))
|
|
17
|
+
* Merge branch 'master' into tm-3395-responsible-gaming ([750b0a0](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/750b0a09edeaf77a2385dee31dcddbc626311005))
|
|
18
|
+
* Merge branch 'master' into tm-3395-responsible-gaming ([61cc8c7](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/61cc8c7f03a113ac20085a096da8231f4427f1d9))
|
|
19
|
+
* Merge branch 'master' into tm-3395-responsible-gaming ([73c3f07](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/73c3f074945b424b4888d088033b10c16b5509c3))
|
|
20
|
+
* Merge branch 'master' into tm-3395-responsible-gaming ([0e80422](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/0e80422938db643b0e47098bcd14d03bf89f0055))
|
|
21
|
+
* Merge branch 'master' into tm-3395-responsible-gaming ([3357b4e](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/3357b4ea97b7df49471186c9ac30652cdbf26b76))
|
|
22
|
+
|
|
23
|
+
## [21.0.10](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v21.0.9...v21.0.10) (2023-05-11)
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### Bug Fixes
|
|
27
|
+
|
|
28
|
+
* deployer ([0bb7ba7](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/0bb7ba7990ce280f4b29e3de3aac3c48371c8c8b))
|
|
29
|
+
* deployer ([b543171](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/b54317156dd798904b0788ceac748d3a998f0021))
|
|
30
|
+
* deployer ([98983f9](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/98983f975ba838fab4f083838742f986ebbf6381))
|
|
31
|
+
* deployer ([0e9c7b5](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/0e9c7b5dc4c06b1aee6aa63e1701f1d522773eff))
|
|
32
|
+
* deployer ([4f413ba](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/4f413baf43c87bb88c596a7f93fdd553babdde09))
|
|
33
|
+
* deployer ([b8ee486](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/b8ee4866d6f84b2420c6569b0b65aadc772f6a6f))
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
* Update .ci.yml ([bcc2767](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/bcc2767dfbd0741c243294edc77548e2d3d7f326))
|
|
37
|
+
* deployer test fix ([a5a2453](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/a5a2453da15ca473c561f413efddcafeb48b11a9))
|
|
38
|
+
|
|
1
39
|
## [21.0.9](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v21.0.8...v21.0.9) (2023-05-11)
|
|
2
40
|
|
|
3
41
|
|
package/package.json
CHANGED
|
@@ -29,13 +29,13 @@ const LinkList = ({
|
|
|
29
29
|
const LinkImage = () => (
|
|
30
30
|
<LazyImage
|
|
31
31
|
src={imagePrettyUrl(
|
|
32
|
-
item.image,
|
|
33
|
-
width || item?.image_object?.width,
|
|
34
|
-
height || item?.image_object?.height
|
|
32
|
+
item.image || item.logo?.url?.split('.com/')[1],
|
|
33
|
+
width || item?.image_object?.width || item.logo?.width,
|
|
34
|
+
height || item?.image_object?.height || item.logo?.height
|
|
35
35
|
)}
|
|
36
|
-
alt={getAltText(item?.image_object, item.title)}
|
|
37
|
-
width={width || item?.image_object?.width}
|
|
38
|
-
height={height || item?.image_object?.height}
|
|
36
|
+
alt={getAltText(item?.image_object || item.logo?.alt, item.title || item.logo.title)}
|
|
37
|
+
width={width || item?.image_object?.width || item.logo?.width}
|
|
38
|
+
height={height || item?.image_object?.height || item.logo?.height}
|
|
39
39
|
loading={disableLazyLoad ? 'eager' : 'lazy'}
|
|
40
40
|
/>
|
|
41
41
|
);
|
|
@@ -46,36 +46,38 @@ const LinkList = ({
|
|
|
46
46
|
<>
|
|
47
47
|
{multiIcon ? icon : listIcon}
|
|
48
48
|
<span>{item.title}</span>
|
|
49
|
-
{item.image && <LinkImage />}
|
|
49
|
+
{item.image || (item.logo && <LinkImage />)}
|
|
50
50
|
</>
|
|
51
51
|
)}
|
|
52
|
-
{item.image && imageOnly && <LinkImage />}
|
|
52
|
+
{(item.image || item.logo) && imageOnly && <LinkImage />}
|
|
53
53
|
</>
|
|
54
54
|
);
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
function renderItems(item, index) {
|
|
58
|
+
const link = item?.value || item?.url;
|
|
59
|
+
|
|
58
60
|
return (
|
|
59
61
|
<li key={keygen()}>
|
|
60
|
-
{
|
|
61
|
-
|
|
62
|
+
{link ? (
|
|
63
|
+
link.includes('http') || link.includes('www') ? (
|
|
62
64
|
<a
|
|
63
|
-
href={
|
|
64
|
-
title={item.title}
|
|
65
|
+
href={link}
|
|
66
|
+
title={item.title || item.name}
|
|
65
67
|
rel={`noreferrer ${item.nofollow && 'nofollow'}`}
|
|
66
68
|
target="_blank"
|
|
67
69
|
className={gtmClass || ''}
|
|
68
|
-
aria-label={`${item.title} Link`}
|
|
70
|
+
aria-label={`${item.title || item.name} Link`}
|
|
69
71
|
>
|
|
70
72
|
{renderLinkContent(item, index)}
|
|
71
73
|
</a>
|
|
72
74
|
) : (
|
|
73
75
|
<Link
|
|
74
|
-
to={
|
|
75
|
-
title={item.title}
|
|
76
|
+
to={link}
|
|
77
|
+
title={item.title || item.name}
|
|
76
78
|
className={gtmClass || ''}
|
|
77
79
|
rel={item.nofollow && 'nofollow'}
|
|
78
|
-
aria-label={`${item.title} Link`}
|
|
80
|
+
aria-label={`${item.title || item.url} Link`}
|
|
79
81
|
>
|
|
80
82
|
{renderLinkContent(item, index)}
|
|
81
83
|
</Link>
|
|
@@ -221,6 +221,7 @@ export default {
|
|
|
221
221
|
const transformedPages = transform(data);
|
|
222
222
|
const languageKey = Object.keys(data.relations.translations)[0];
|
|
223
223
|
const translations = data.relations.translations[languageKey];
|
|
224
|
+
const allResponsibleGaming = data.relations.responsible_gamings || null;
|
|
224
225
|
const searchTemplatesAcitve = [];
|
|
225
226
|
let templateFeadbackCounter = null;
|
|
226
227
|
|
|
@@ -308,6 +309,25 @@ export default {
|
|
|
308
309
|
transformedPages[market][pageType][index].categories = categoryArray;
|
|
309
310
|
}
|
|
310
311
|
|
|
312
|
+
// add responsible gaming to pages
|
|
313
|
+
const gamingIds =
|
|
314
|
+
data.relations.dms_affiliate_settings.markets_data[market] &&
|
|
315
|
+
data.relations.dms_affiliate_settings.markets_data[market].responsible_gaming_ids
|
|
316
|
+
? data.relations.dms_affiliate_settings.markets_data[market].responsible_gaming_ids
|
|
317
|
+
: null;
|
|
318
|
+
let responsibleGaming = [];
|
|
319
|
+
|
|
320
|
+
if (allResponsibleGaming !== null && gamingIds !== null) {
|
|
321
|
+
for (let i = 0; i < gamingIds.length; i += 1) {
|
|
322
|
+
const game = Object.values(allResponsibleGaming).find(
|
|
323
|
+
(item) => item.id === gamingIds[i]
|
|
324
|
+
);
|
|
325
|
+
responsibleGaming = [...responsibleGaming, game];
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
transformedPages[market][pageType][index].responsibleGaming = responsibleGaming;
|
|
330
|
+
|
|
311
331
|
// add sports data
|
|
312
332
|
if (rageSportType) {
|
|
313
333
|
// should be able to check for site type here (type: sport)
|