gatsby-core-theme 41.1.19 → 41.1.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,23 @@
1
+ ## [41.1.21](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v41.1.20...v41.1.21) (2025-01-15)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * clenaed html to remove tags on spotlight text with icons template three ([78a0cde](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/78a0cdeb3935ee10a6f3d9bfcca2e2be4607ff79))
7
+ * fix tests ([c2fef70](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/c2fef70cc306bdaf9c18d76307c5d67eb68a1bcf))
8
+ * update props icon spotlight ([846cb9d](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/846cb9da9db58573b08f1d7d930b59305404487a))
9
+
10
+
11
+ * Merge branch 'tm-5087-remove-extra-characters-spotlight' into 'master' ([4d375f0](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/4d375f0e37305caafa7cab73a1406cb2d192b1ee))
12
+ * Merge branch 'tm-4988-spotligts-icon-header' into 'master' ([b71c6ca](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/b71c6ca0c295ece4b4999d6993ae8ab8eb8fc9cd))
13
+
14
+ ## [41.1.20](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v41.1.19...v41.1.20) (2025-01-09)
15
+
16
+
17
+ ### Code Refactoring
18
+
19
+ * add game categories ([d860a35](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/d860a35af3ab1d1001bdce79e146dbabae112cb4))
20
+
1
21
  ## [41.1.19](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v41.1.18...v41.1.19) (2025-01-07)
2
22
 
3
23
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-core-theme",
3
- "version": "41.1.19",
3
+ "version": "41.1.21",
4
4
  "description": "Gatsby Theme NPM Package",
5
5
  "author": "",
6
6
  "license": "ISC",
@@ -6,7 +6,7 @@ import { getAltText, imagePrettyUrl } from '../../../../../helpers/getters.mjs';
6
6
  import styles from './template-one.module.scss';
7
7
  import useTranslate from '~hooks/useTranslate/useTranslate';
8
8
 
9
- export default function TemplateOne({ module, width = 106, height = 106 }) {
9
+ export default function TemplateOne({ module, width = 106, height = 106, loadingImg='lazy'}) {
10
10
  const { items } = module;
11
11
 
12
12
  const content = (res) => (
@@ -17,6 +17,7 @@ export default function TemplateOne({ module, width = 106, height = 106 }) {
17
17
  width={width}
18
18
  src={imagePrettyUrl(res?.icon, width, height)}
19
19
  alt={getAltText(res?.image_object || res?.icon_object, res?.label)}
20
+ loading={loadingImg}
20
21
  />
21
22
  )}
22
23
  {/* eslint-disable-next-line react-hooks/rules-of-hooks */}
@@ -50,4 +51,5 @@ TemplateOne.propTypes = {
50
51
  }).isRequired,
51
52
  width: PropTypes.string,
52
53
  height: PropTypes.string,
54
+ loadingImg: PropTypes.string
53
55
  };
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
+ import { cleanHTML } from '../../../../../helpers/strings';
3
4
  import styles from './template-three.module.scss';
4
5
  import Item from './item';
5
6
 
@@ -20,7 +21,9 @@ export default function TemplateOne({
20
21
  // eslint-disable-next-line react/prop-types
21
22
  items?.map((res) => {
22
23
  // if text is shorter no need to show the button
23
- const readMoreCheck = res?.text?.length > characterMaxReadMore;
24
+ const plainText = cleanHTML(res?.text || "");
25
+
26
+ const readMoreCheck = plainText.length > characterMaxReadMore;
24
27
  return (
25
28
  <Item
26
29
  item={res}
@@ -109,7 +109,8 @@ export const pickRelationKeys = {
109
109
  "min_deposit",
110
110
  "max_withdrawal",
111
111
  "license_objects",
112
- "launch_date"
112
+ "launch_date",
113
+ "game_categories",
113
114
  ],
114
115
  operator_simplified: [
115
116
  "short_name",