gatsby-core-theme 40.0.25 → 40.0.27

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,18 @@
1
+ ## [40.0.27](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v40.0.26...v40.0.27) (2024-11-01)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * added operator id in toplist items ([c24279f](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/c24279fb206049bd356926bb216ee04dfa260855))
7
+ * added operator id in toplist items ([cd58744](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/cd5874466349662cafc26c2a0abed613391081fd))
8
+
9
+ ## [40.0.26](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v40.0.25...v40.0.26) (2024-10-31)
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * update alt tag for icon spotlight ([6d075bb](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/6d075bb355ee10fc52a6e11e61f0a391f7267b4b))
15
+
1
16
  ## [40.0.25](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v40.0.24...v40.0.25) (2024-10-31)
2
17
 
3
18
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-core-theme",
3
- "version": "40.0.25",
3
+ "version": "40.0.27",
4
4
  "description": "Gatsby Theme NPM Package",
5
5
  "author": "",
6
6
  "license": "ISC",
@@ -5,6 +5,7 @@ import { FaGripHorizontal } from "@react-icons/all-files/fa/FaGripHorizontal";
5
5
  import styles from "./button.module.scss";
6
6
 
7
7
  const getDMSLink = (module) => {
8
+
8
9
  let hercLink = `${process.env.HERCULES_BACKEND_URL}`;
9
10
  let linkText = ``;
10
11
 
@@ -13,6 +14,10 @@ const getDMSLink = (module) => {
13
14
  hercLink += `toplists/${module.items ? module.items[0].id : ""}/items`;
14
15
  linkText = "Edit Toplist";
15
16
  break;
17
+ case "bonus":
18
+ hercLink += `operators/${module.value?.operator_id}/sites-data?site=${process.env.GATSBY_SITE_NAME}`;
19
+ linkText = "Edit Operator";
20
+ break;
16
21
  default:
17
22
  return null;
18
23
  }
@@ -16,10 +16,11 @@ export default function TemplateOne({ module, width = 106, height = 106 }) {
16
16
  height={height}
17
17
  width={width}
18
18
  src={imagePrettyUrl(res?.icon, width, height)}
19
- alt={getAltText(res?.image_object, res?.label)}
19
+ alt={getAltText(res?.image_object || res?.icon_object, res?.label)}
20
20
  />
21
21
  )}
22
- <p>{res?.link_text || useTranslate('read_more', 'Read more')}</p>
22
+ {/* eslint-disable-next-line react-hooks/rules-of-hooks */}
23
+ <p>{res?.link_text || useTranslate("read_more", "Read more")}</p>
23
24
  {res.subtitle && <span>{res.subtitle}</span>}
24
25
  </>
25
26
  );
@@ -47,6 +47,7 @@ export const topListPickKeys = [
47
47
  "authorPath",
48
48
  "authorImage",
49
49
  "updatedAt",
50
+ "operator_id"
50
51
  ];
51
52
 
52
53
  export const pickTrackerOperatorKeys = [