gatsby-core-theme 40.0.27 → 40.0.28
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,15 @@
|
|
|
1
|
+
## [40.0.28](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v40.0.27...v40.0.28) (2024-11-04)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* anchor ([cf562e4](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/cf562e441f86e3614c45f839cd8e69069b20958c))
|
|
7
|
+
* selling points ([2d577f0](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/2d577f0297097964475dec33b90d54540a110f40))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
* Merge branch 'fix-anchor' into 'master' ([d3e8ae8](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/d3e8ae8fa9220364f6ba6ae1c51973745af1f1af))
|
|
11
|
+
* Merge branch 'tm-4923-unique-selling-points' into 'master' ([776391c](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/776391c7ae67648a4c2201f48ca609eb901ee807))
|
|
12
|
+
|
|
1
13
|
## [40.0.27](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v40.0.26...v40.0.27) (2024-11-01)
|
|
2
14
|
|
|
3
15
|
|
package/package.json
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
/* eslint-disable react/no-array-index-key */
|
|
2
|
+
/* eslint-disable react-hooks/rules-of-hooks */
|
|
1
3
|
/* eslint-disable no-nested-ternary */
|
|
2
4
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
3
5
|
/* eslint-disable no-unused-expressions */
|
|
4
6
|
/* eslint-disable prefer-destructuring */
|
|
5
7
|
/* eslint-disable react-hooks/exhaustive-deps */
|
|
6
|
-
import React, { useRef,
|
|
8
|
+
import React, { useRef, useState } from 'react';
|
|
7
9
|
import PropTypes from 'prop-types';
|
|
8
10
|
import { IoIosArrowBack } from '@react-icons/all-files/io/IoIosArrowBack';
|
|
9
11
|
import { IoIosArrowForward } from '@react-icons/all-files/io/IoIosArrowForward';
|
|
@@ -42,7 +44,7 @@ function Anchor({
|
|
|
42
44
|
const anchorList = items.map((anchor) => {
|
|
43
45
|
numberOfCharacters += anchor?.label?.length;
|
|
44
46
|
return {
|
|
45
|
-
id: `${anchor.label && removeSymbols(anchorLink(anchor?.label?.toLowerCase()
|
|
47
|
+
id: `${anchor.label && removeSymbols(anchorLink(anchor?.label?.toLowerCase()))}`,
|
|
46
48
|
label: anchor.label,
|
|
47
49
|
slug: `${anchor.label && anchorLink(anchor?.label?.toLowerCase().trim())}`,
|
|
48
50
|
};
|
|
@@ -354,6 +354,11 @@ export function processTopListModule(
|
|
|
354
354
|
item.ribbon_ids && item.ribbon_ids.length === 0
|
|
355
355
|
? operatorRelation.ribbons
|
|
356
356
|
: item.ribbon_ids;
|
|
357
|
+
|
|
358
|
+
operatorRelation.selling_points =
|
|
359
|
+
item.selling_points && item.selling_points.length === 0
|
|
360
|
+
? operatorRelation.selling_points
|
|
361
|
+
: item.selling_points;
|
|
357
362
|
}
|
|
358
363
|
|
|
359
364
|
const operatorPage =
|
|
@@ -180,6 +180,7 @@ describe('Modules Helper', () => {
|
|
|
180
180
|
expect(toplistData.items[0].items[0].rating_casino).toEqual('4');
|
|
181
181
|
expect(toplistData.items[0].items[0].short_name).toEqual('slotum');
|
|
182
182
|
expect(toplistData.items[0].items[0].bonus.deposit_methods).toHaveLength(2);
|
|
183
|
+
expect(toplistData.items[0].items[0].selling_points).toHaveLength(3);
|
|
183
184
|
});
|
|
184
185
|
|
|
185
186
|
test('Process TopList module multiple market', () => {
|
|
@@ -902,37 +902,13 @@ export const singleToplistItemData = {
|
|
|
902
902
|
{
|
|
903
903
|
items: [
|
|
904
904
|
{
|
|
905
|
-
name: 'Slotum',
|
|
906
|
-
type: 'casino',
|
|
907
905
|
operator_id: 6342,
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
906
|
+
selling_points: [
|
|
907
|
+
"classicslots",
|
|
908
|
+
"bitcoin",
|
|
909
|
+
"bingo"
|
|
910
|
+
],
|
|
911
911
|
short_name: 'slotum',
|
|
912
|
-
logo:{
|
|
913
|
-
filename:'slotum-casino-logo-transparentpng6b10407566-original.png'
|
|
914
|
-
},
|
|
915
|
-
logo_url: 'slotum-casino-logo-transparentpng6b10407566-original.png',
|
|
916
|
-
rating: '4',
|
|
917
|
-
review_link: 'slotum',
|
|
918
|
-
selling_points: ['200% Bonus', 'Nice design'],
|
|
919
|
-
links: {
|
|
920
|
-
main: 'https://media.dunderaffiliates.com/redirect.aspx?pid=630524&bid=1477',
|
|
921
|
-
'PPC Fallback': 'https://media.dunderaffiliates.com/redirect.aspx?pid=740444&bid=1803',
|
|
922
|
-
},
|
|
923
|
-
one_liners: {
|
|
924
|
-
main: {
|
|
925
|
-
one_liner: '90% Bonus + 50 free spins',
|
|
926
|
-
},
|
|
927
|
-
secondary: {
|
|
928
|
-
one_liner: 'Welcome Bonus up to £500',
|
|
929
|
-
},
|
|
930
|
-
},
|
|
931
|
-
extra_fields: {
|
|
932
|
-
ribbon_color: '#17D68A',
|
|
933
|
-
ribbon_text: 'Exclusive Bonus',
|
|
934
|
-
terms_and_conditions_text_enabled: '1',
|
|
935
|
-
},
|
|
936
912
|
},
|
|
937
913
|
],
|
|
938
914
|
tracker: 'main',
|