gatsby-core-theme 44.12.2 → 44.12.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,22 @@
1
+ ## [44.12.4](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.12.3...v44.12.4) (2026-01-26)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * add validation ([be75fc8](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/be75fc8d5fa7c30cd819b409758281ea26f69dec))
7
+
8
+ ## [44.12.3](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.12.2...v44.12.3) (2026-01-22)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * add authors ([b485c14](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/b485c143a1c03b77d6b817c8bc9ae50ac6c06eeb))
14
+ * fix authors object ([a884b6c](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/a884b6ce90f707c190e05c4383a03361c0b5039f))
15
+ * update authors ([1248b80](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/1248b8093aff061c4c46eef4f86e33859c1d654e))
16
+
17
+
18
+ * Merge branch 'EN-328' into 'master' ([d1d768d](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/d1d768de239a5f0a3a6c15b81035cfbba3e3808b))
19
+
1
20
  ## [44.12.2](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.12.1...v44.12.2) (2026-01-19)
2
21
 
3
22
 
package/gatsby-node.mjs CHANGED
@@ -64,6 +64,8 @@ let templatesData = null;
64
64
  let defaultLanguage = null;
65
65
  const pagesToCreate = [];
66
66
  let commentsData = null;
67
+ let authors = null;
68
+
67
69
 
68
70
  // eslint-disable-next-line import/prefer-default-export
69
71
  export const createPages = async (
@@ -137,6 +139,8 @@ export const createPages = async (
137
139
  processedPage.preconnect_links = preconnectLinks;
138
140
 
139
141
  siteSchema = schemaData[page["market_id"]];
142
+ authors = siteSettingsData.authors;
143
+
140
144
 
141
145
  page.siteInfo = siteGeneralData;
142
146
  page.siteSchema = siteSchema;
@@ -170,6 +174,7 @@ export const createPages = async (
170
174
  page.type,
171
175
  ribbonsData
172
176
  ),
177
+ authors,
173
178
  prefilledModules,
174
179
  siteGeneralData,
175
180
  autogenerated,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-core-theme",
3
- "version": "44.12.2",
3
+ "version": "44.12.4",
4
4
  "description": "Gatsby Theme NPM Package",
5
5
  "author": "",
6
6
  "license": "ISC",
@@ -16,7 +16,7 @@ const Comments = ({ pageContext }) => {
16
16
  key={comment.comment_id}
17
17
  pageContext={pageContext}
18
18
  comment={comment}
19
- authors={authors?.authors}
19
+ authors={authors}
20
20
  depth={0}
21
21
  />
22
22
  ))}
@@ -89,90 +89,97 @@ export function transformOperators(jsonData, relationsData, pages) {
89
89
  markets_data: marketsData = {},
90
90
  } = operatorData;
91
91
 
92
+ // Normalize sitesData to ensure it's an object (handle null/undefined)
93
+ const normalizedSitesData = sitesData && typeof sitesData === 'object' ? sitesData : {};
94
+
92
95
  // Iterate over each market in sites_data
93
- Object.entries(sitesData).forEach(([market, marketData]) => {
94
- Object.entries(marketData).forEach(([operatorType, affiliate]) => {
95
- const filteredAffiliate = filterNonNullValues(affiliate);
96
- const marketSpecificData = filterNonNullValues(
97
- marketsData ? marketsData[market]?.[operatorType] || {} : {}
98
- );
99
-
100
- // Combining all general, market and sites Data
101
- const newOperatorData = {
102
- ...generalData, // General data
103
- ...marketSpecificData, // Filtered market-specific data
104
- ...filteredAffiliate, // Filtered affiliate data
105
- type: operatorType,
106
- };
107
-
108
- // OPERATOR LOGO (temp fix included and will be removed)
109
- newOperatorData.logo = processLogo(
110
- newOperatorData.logo,
111
- newOperatorData.standardised_logo
112
- );
113
-
114
- // DEPOSIT METHODS
115
- newOperatorData.deposit_methods = processPaymentMethods(
116
- newOperatorData.deposit_method_ids,
117
- newOperatorData.market,
118
- relationsData.payments
119
- );
120
-
121
- // WITHDRAWAL METHODS
122
- newOperatorData.withdrawal_method = processPaymentMethods(
123
- newOperatorData.withdrawal_method_ids,
124
- newOperatorData.market,
125
- relationsData.payments
126
- );
127
-
128
- // CURRENCIES
129
- newOperatorData.currencies = processCurrencies(
130
- newOperatorData.currency_ids,
131
- relationsData.currencies
132
- );
133
-
134
- // GAMBLING COMPANIES
135
- newOperatorData.gambling_company = processGamblingCompanies(
136
- newOperatorData.gambling_company_id,
137
- relationsData.gamblingCompanies
138
- );
139
-
140
- // COUNTRIES
141
- newOperatorData.countries = processCountries(
142
- newOperatorData.country_ids,
143
- relationsData.countries
144
- );
145
-
146
- // // Best_game
147
- if (newOperatorData?.best_game_id) {
148
- const bestGameKey = Object?.keys(relationsData?.games)?.find(
149
- (key) =>
150
- relationsData?.games[key]?.game_id ===
151
- newOperatorData?.best_game_id
96
+ if (Object.keys(normalizedSitesData).length > 0) {
97
+ Object.entries(normalizedSitesData).forEach(([market, marketData]) => {
98
+ // Normalize marketData to ensure it's an object (handle null/undefined)
99
+ const normalizedMarketData = marketData && typeof marketData === 'object' ? marketData : {};
100
+ Object.entries(normalizedMarketData).forEach(([operatorType, affiliate]) => {
101
+ const filteredAffiliate = filterNonNullValues(affiliate);
102
+ const marketSpecificData = filterNonNullValues(
103
+ marketsData ? marketsData[market]?.[operatorType] || {} : {}
104
+ );
105
+
106
+ // Combining all general, market and sites Data
107
+ const newOperatorData = {
108
+ ...generalData, // General data
109
+ ...marketSpecificData, // Filtered market-specific data
110
+ ...filteredAffiliate, // Filtered affiliate data
111
+ type: operatorType,
112
+ };
113
+
114
+ // OPERATOR LOGO (temp fix included and will be removed)
115
+ newOperatorData.logo = processLogo(
116
+ newOperatorData.logo,
117
+ newOperatorData.standardised_logo
118
+ );
119
+
120
+ // DEPOSIT METHODS
121
+ newOperatorData.deposit_methods = processPaymentMethods(
122
+ newOperatorData.deposit_method_ids,
123
+ newOperatorData.market,
124
+ relationsData.payments
152
125
  );
153
- newOperatorData.best_game =
154
- relationsData?.games?.[bestGameKey] || null;
155
- }
156
-
157
- // Providers
158
- newOperatorData.software = processProviders(
159
- newOperatorData.game_provider_ids,
160
- relationsData.providers
161
- );
162
- const operatorPage = Object.values(pages).filter(
163
- (page) =>
164
- page.relation_type === "operator" &&
165
- page.type === "operator" &&
166
- page.relation_id === newOperatorData.id
167
- );
168
-
169
- operators[affiliate.id] = sanitizeOperatorData(
170
- newOperatorData,
171
- operatorPage,
172
- relationsData
173
- );
126
+
127
+ // WITHDRAWAL METHODS
128
+ newOperatorData.withdrawal_method = processPaymentMethods(
129
+ newOperatorData.withdrawal_method_ids,
130
+ newOperatorData.market,
131
+ relationsData.payments
132
+ );
133
+
134
+ // CURRENCIES
135
+ newOperatorData.currencies = processCurrencies(
136
+ newOperatorData.currency_ids,
137
+ relationsData.currencies
138
+ );
139
+
140
+ // GAMBLING COMPANIES
141
+ newOperatorData.gambling_company = processGamblingCompanies(
142
+ newOperatorData.gambling_company_id,
143
+ relationsData.gamblingCompanies
144
+ );
145
+
146
+ // COUNTRIES
147
+ newOperatorData.countries = processCountries(
148
+ newOperatorData.country_ids,
149
+ relationsData.countries
150
+ );
151
+
152
+ // // Best_game
153
+ if (newOperatorData?.best_game_id) {
154
+ const bestGameKey = Object?.keys(relationsData?.games)?.find(
155
+ (key) =>
156
+ relationsData?.games[key]?.game_id ===
157
+ newOperatorData?.best_game_id
158
+ );
159
+ newOperatorData.best_game =
160
+ relationsData?.games?.[bestGameKey] || null;
161
+ }
162
+
163
+ // Providers
164
+ newOperatorData.software = processProviders(
165
+ newOperatorData.game_provider_ids,
166
+ relationsData.providers
167
+ );
168
+ const operatorPage = Object.values(pages).filter(
169
+ (page) =>
170
+ page.relation_type === "operator" &&
171
+ page.type === "operator" &&
172
+ page.relation_id === newOperatorData.id
173
+ );
174
+
175
+ operators[affiliate.id] = sanitizeOperatorData(
176
+ newOperatorData,
177
+ operatorPage,
178
+ relationsData
179
+ );
180
+ });
174
181
  });
175
- });
182
+ }
176
183
  });
177
184
 
178
185
  return operators;