gatsby-core-theme 22.0.7 → 22.0.8

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,17 @@
1
+ ## [22.0.8](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v22.0.7...v22.0.8) (2023-06-09)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * add the author image on the item, to use in toplist ([9aaccee](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/9aaccee6e411e67a38a3f4bef8ad7cb58e3fd4ff))
7
+ * feedback module bug fix ([f681982](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/f68198282a8902136f60b7c2c9bcee832691bcf4))
8
+ * inverted style ([6c0d4da](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/6c0d4da76fd052d576ab46e664c1527d287151e1))
9
+
10
+
11
+ * Merge branch 'inverted_style' into 'master' ([6f32469](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/6f324695b3a54a8c4a86c3e6cf999907de0d2800))
12
+ * Merge branch 'tm-3223-toplist' into 'master' ([e0b3a80](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/e0b3a80f30a9a011bd5aaafe13eba7d57505f03e))
13
+ * Merge branch 'feedback-module-bug-fix' into 'master' ([c8c3482](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/c8c34829c05f6bd33a6f7b2d8ddcac63d84546c7))
14
+
1
15
  ## [22.0.7](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v22.0.6...v22.0.7) (2023-06-05)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-core-theme",
3
- "version": "22.0.7",
3
+ "version": "22.0.8",
4
4
  "description": "Gatsby Theme NPM Package",
5
5
  "main": "index.js",
6
6
  "GATSBY_RECAPTCHA_SITEKEY": "6LfoyvMUAAAAAO4nl_MQnqHb4XdHxEiu5cXgIqeB",
@@ -73,7 +73,15 @@ const App = ({ pageContext }) => {
73
73
  </>
74
74
  ) : (
75
75
  <MainProvider value={{ translations }}>
76
- <Body pageContext={isPreview ? previewContext : pageContext} />
76
+ <div
77
+ dir={
78
+ (isPreview ? previewContext.page?.language === 'ar' : pageContext.page?.language === 'ar')
79
+ ? 'rtl'
80
+ : 'ltr'
81
+ }
82
+ >
83
+ <Body pageContext={isPreview ? previewContext : pageContext} />
84
+ </div>
77
85
  </MainProvider>
78
86
  );
79
87
  };
@@ -382,14 +382,16 @@ export default {
382
382
  sectionList &&
383
383
  sectionList.forEach((res) => {
384
384
  if (data.market_sections[market][res]) {
385
+ if (page.sections.main) {
386
+ page.sections.main.feedbackCounter =
387
+ templateFeadbackCounter.includes(`${page.template_id}`) || null;
388
+ }
389
+
385
390
  const postSectionModules = data.market_sections[market][res].modules || [];
386
391
  postSectionModules.forEach((item) => {
387
392
  if (!page.sections.main) {
388
393
  return;
389
394
  }
390
- page.sections.main.feedbackCounter = templateFeadbackCounter.includes(
391
- `${page.template_id}`
392
- );
393
395
 
394
396
  if (item.value_type === ModuleValue.VALUE_TYPE_PREFILLED_MODULE_MARKET) {
395
397
  page.sections.main.modules.push(
@@ -281,6 +281,11 @@ export function processTopListModule(module, relations, pages, markets) {
281
281
  clone.authorName = operatorPage[0].author.name && operatorPage[0].author.name;
282
282
  clone.authorPath =
283
283
  operatorPage[0].author.profile_page_path && operatorPage[0].author.profile_page_path;
284
+
285
+ clone.authorImage = operatorPage[0].author.image && operatorPage[0].author.image;
286
+
287
+ clone.authorImageObject =
288
+ operatorPage[0].author.image_object && operatorPage[0].author.image_object;
284
289
  }
285
290
 
286
291
  // Multiple market fix