gatsby-core-theme 40.0.20 → 40.0.21

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,11 @@
1
+ ## [40.0.21](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v40.0.20...v40.0.21) (2024-10-30)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * operator data ([ac862fa](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/ac862fa2c379d472356bd12ebaced0f8163a2d42))
7
+ * operator data ([5856a93](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/5856a93897c5e83c51fd72202cd56d93a796c903))
8
+
1
9
  ## [40.0.20](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v40.0.19...v40.0.20) (2024-10-29)
2
10
 
3
11
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-core-theme",
3
- "version": "40.0.20",
3
+ "version": "40.0.21",
4
4
  "description": "Gatsby Theme NPM Package",
5
5
  "author": "",
6
6
  "license": "ISC",
@@ -1,136 +1,146 @@
1
1
  export const pickPageKeys = [
2
- 'id',
3
- 'title',
4
- 'path',
5
- 'relation',
6
- 'type',
7
- 'author',
8
- 'updated_at',
9
- 'created_at',
10
- 'banner',
11
- 'market',
12
- 'sections',
13
- 'description',
14
- 'true_votes',
15
- 'false_votes',
16
- 'reading_time',
2
+ "id",
3
+ "title",
4
+ "path",
5
+ "relation",
6
+ "type",
7
+ "author",
8
+ "updated_at",
9
+ "created_at",
10
+ "banner",
11
+ "market",
12
+ "sections",
13
+ "description",
14
+ "true_votes",
15
+ "false_votes",
16
+ "reading_time",
17
17
  ];
18
18
 
19
19
  export const topListPickKeys = [
20
- 'logo',
21
- 'one_liner',
22
- 'one_liners',
23
- 'market',
24
- 'bonus',
25
- 'links',
26
- 'type',
27
- 'name',
28
- 'rating',
29
- 'rating_casino',
30
- 'rating_games',
31
- 'rating_bonuses',
32
- 'rating_customer',
33
- 'path',
34
- 'extra_fields',
35
- 'selling_points',
36
- 'payout_time',
37
- 'short_name',
38
- 'status',
39
- 'founded',
40
- 'ribbons',
41
- 'owner',
42
- 'support_types',
43
- 'authorName',
44
- 'authorPath',
45
- 'authorImage',
46
- 'updatedAt'
20
+ "logo",
21
+ "one_liner",
22
+ "one_liners",
23
+ "market",
24
+ "bonus",
25
+ "links",
26
+ "type",
27
+ "name",
28
+ "url_fallback",
29
+ "email_fallback",
30
+ "name_fallback",
31
+ "rating",
32
+ "rating_casino",
33
+ "rating_games",
34
+ "rating_bonuses",
35
+ "rating_customer",
36
+ "path",
37
+ "extra_fields",
38
+ "selling_points",
39
+ "payout_time",
40
+ "short_name",
41
+ "status",
42
+ "founded",
43
+ "ribbons",
44
+ "owner",
45
+ "support_types",
46
+ "authorName",
47
+ "authorPath",
48
+ "authorImage",
49
+ "updatedAt",
47
50
  ];
48
51
 
49
52
  export const pickTrackerOperatorKeys = [
50
- 'name',
51
- 'logo',
52
- 'links',
53
- 'market',
54
- 'short_name',
55
- 'type'
56
- ]
53
+ "name",
54
+ "logo",
55
+ "links",
56
+ "market",
57
+ "short_name",
58
+ "type",
59
+ ];
57
60
 
58
61
  export const pickRelationKeys = {
59
- event: ['event'],
60
- tournament: ['tournaments'],
62
+ event: ["event"],
63
+ tournament: ["tournaments"],
61
64
  operator: [
62
- 'software',
63
- 'market',
64
- 'logo',
65
- 'one_liner',
66
- 'operator_id',
67
- 'one_liners',
68
- 'bonus',
69
- 'selling_points',
70
- 'founded',
71
- 'name',
72
- 'rating',
73
- 'rating_casino',
74
- 'rating_games',
75
- 'rating_bonuses',
76
- 'rating_customer',
77
- 'rating_payout',
78
- 'type',
79
- 'types',
80
- 'path',
81
- 'short_name',
82
- 'links',
83
- 'extra_fields',
84
- 'status',
85
- 'ribbons',
86
- 'email',
87
- 'url',
88
- 'games_amount',
89
- 'review_link',
90
- 'payout_time',
91
- 'support_types'
65
+ "software",
66
+ "market",
67
+ "logo",
68
+ "one_liner",
69
+ "operator_id",
70
+ "one_liners",
71
+ "bonus",
72
+ "selling_points",
73
+ "founded",
74
+ "name",
75
+ "rating",
76
+ "rating_casino",
77
+ "rating_games",
78
+ "rating_bonuses",
79
+ "rating_customer",
80
+ "rating_payout",
81
+ "type",
82
+ "types",
83
+ "path",
84
+ "short_name",
85
+ "links",
86
+ "extra_fields",
87
+ "status",
88
+ "ribbons",
89
+ "email",
90
+ "url",
91
+ "games_amount",
92
+ "review_link",
93
+ "payout_time",
94
+ "support_types",
95
+ "url_fallback",
96
+ "email_fallback",
97
+ "name_fallback",
92
98
  ],
93
99
  game: [
94
- 'id',
95
- 'game_provider',
96
- 'first_rating',
97
- 'second_rating',
98
- 'third_rating',
99
- 'fourth_rating',
100
- 'standardised_logo_filename_object',
101
- 'thumbnail_filename',
102
- 'thumbnail_filename_object',
103
- 'name',
104
- 'iframe',
105
- 'average_rating',
106
- 'maximum_bet',
107
- 'volatility',
108
- 'rtp',
109
- 'freespins',
110
- 'number_of_reels',
111
- 'winning_lines',
112
- 'affiliate_games',
113
- 'minimum_bet',
114
- 'jackpots',
115
- 'launch_date'
100
+ "id",
101
+ "game_provider",
102
+ "first_rating",
103
+ "second_rating",
104
+ "third_rating",
105
+ "fourth_rating",
106
+ "standardised_logo_filename_object",
107
+ "thumbnail_filename",
108
+ "thumbnail_filename_object",
109
+ "name",
110
+ "iframe",
111
+ "average_rating",
112
+ "maximum_bet",
113
+ "volatility",
114
+ "rtp",
115
+ "freespins",
116
+ "number_of_reels",
117
+ "winning_lines",
118
+ "affiliate_games",
119
+ "minimum_bet",
120
+ "jackpots",
121
+ "launch_date",
116
122
  ],
117
123
  software_provider: [
118
- 'logo_filename_object',
119
- 'logo_filename',
120
- 'games_count',
121
- 'name',
122
- 'standardised_logo_filename_object',
124
+ "logo_filename_object",
125
+ "logo_filename",
126
+ "games_count",
127
+ "name",
128
+ "standardised_logo_filename_object",
123
129
  ],
124
130
  payment_method: [
125
- 'logo_filename_object',
126
- 'logo_filename',
127
- 'name',
128
- 'rating',
129
- 'standardised_logo_filename_object',
130
- 'selling_points',
131
+ "logo_filename_object",
132
+ "logo_filename",
133
+ "name",
134
+ "rating",
135
+ "standardised_logo_filename_object",
136
+ "selling_points",
131
137
  ],
132
138
  };
133
139
 
134
- export const pickHTMLSitemapPageKeys = ['title', 'path', 'template_id'];
140
+ export const pickHTMLSitemapPageKeys = ["title", "path", "template_id"];
135
141
 
136
- export const pickAuthorsPageKeys = ['name', 'email_address', 'profile_page_path'];
142
+ export const pickAuthorsPageKeys = [
143
+ "name",
144
+ "email_address",
145
+ "profile_page_path",
146
+ ];
@@ -19,9 +19,10 @@ export function sanitizeOperatorData(
19
19
 
20
20
 
21
21
  // Set Fallbacks
22
- clone.url = operator?.bonus?.operator_url || operator.url;
22
+ clone.url_fallback = operator?.bonus?.operator_url || operator.url;
23
+ clone.email_fallback = operator?.bonus?.support_email || operator.email;
23
24
  clone.email = operator?.bonus?.support_email || operator.email;
24
- clone.name = operator?.bonus?.operator_name || operator.name;
25
+ clone.name_fallback = operator?.bonus?.operator_name || operator.name;
25
26
 
26
27
  // Set Ribbons
27
28
  if (ribbons && ribbons.length && data && data.ribbons) {
@@ -93,7 +94,7 @@ export function sanitizeOperatorData(
93
94
  operatorClone.standardised_logo_url_object ||
94
95
  operatorClone.default_logo_url_object;
95
96
 
96
- return Object.assign(operator, clone);
97
+ return Object.assign(clone, operator);
97
98
  }
98
99
 
99
100
  // NOTE: To add tests once we start using it