gatsby-core-theme 17.0.10 → 18.0.1

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,26 @@
1
+ ## [18.0.1](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v18.0.0...v18.0.1) (2023-01-12)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * content show more ([bd44d9f](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/bd44d9f8b6e5f4af2127a59b30922e41755e303a))
7
+
8
+
9
+ * Merge branch 'content-fix' into 'master' ([b4e1538](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/b4e1538559c30ce166a7a84df18b029d10c4f1d1))
10
+
11
+ # [18.0.0](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v17.0.10...v18.0.0) (2023-01-12)
12
+
13
+
14
+ ### Code Refactoring
15
+
16
+ * add page styles to other pages ([a7f71a7](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/a7f71a782d2bfb8ab6e30fa5173792fed8ca335e))
17
+ * add page styles to pages ([dd686ee](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/dd686ee2c5e104930ca21bf1204639d4e1444c57))
18
+ * correction to field name ([4478d3e](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/4478d3ed822cdb00123769822db1dcc97e76e053))
19
+
20
+
21
+ * Merge branch 'tm-3252-default-headers' into 'master' ([e12449f](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/e12449f897f378af0d0fa0484dd278aeb983f355))
22
+ * Merge branch 'master' into tm-3252-default-headers ([6c8b063](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/6c8b063a11bea644d0142237d5bbefa6dde7841e))
23
+
1
24
  ## [17.0.10](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v17.0.9...v17.0.10) (2023-01-10)
2
25
 
3
26
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-core-theme",
3
- "version": "17.0.10",
3
+ "version": "18.0.1",
4
4
  "description": "Gatsby Theme NPM Package",
5
5
  "main": "index.js",
6
6
  "GATSBY_RECAPTCHA_SITEKEY": "6LfoyvMUAAAAAO4nl_MQnqHb4XdHxEiu5cXgIqeB",
@@ -79,7 +79,9 @@ const Content = ({ module, isHomepageFirstModule = false, isModuleIntroduction =
79
79
  setShowMore(!showMore);
80
80
  };
81
81
 
82
- const conditionalContent = showMore ? module.value : module.value + module.show_more_content;
82
+ // eslint-disable-next-line no-nested-ternary
83
+ const conditionalContent =
84
+ !showMore && module.show_more_content ? module.value + module.show_more_content : module.value;
83
85
 
84
86
  return (
85
87
  <>
@@ -306,6 +306,12 @@ export default {
306
306
  transformedPages[market][pageType][index].relation.game_provider.path =
307
307
  providerPage.length > 0 ? providerPage[0].path : null;
308
308
  }
309
+
310
+ // add page styles object to page
311
+ if (page.style_id !== null && Object.values(data.page_styles).length) {
312
+ transformedPages[market][pageType][index].page_styles =
313
+ data.page_styles[page.style_id];
314
+ }
309
315
  }
310
316
 
311
317
  // add author object to page
@@ -318,6 +324,11 @@ export default {
318
324
  transformedPages[market][pageType][index].reviewer = data.authors[page.reviewer_id];
319
325
  }
320
326
 
327
+ // add page styles object to page
328
+ if (page.style_id !== null && Object.values(data.page_styles).length) {
329
+ transformedPages[market][pageType][index].page_styles = data.page_styles[page.style_id];
330
+ }
331
+
321
332
  // add breadcrumbs array to page
322
333
  const pageBreadcrumbIds = transformedPages[market][pageType][index].breadcrumb_ids;
323
334
  if (pageBreadcrumbIds) {