gatsby-core-theme 44.16.2 → 44.17.0

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,25 @@
1
+ # [44.17.0](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.16.3...v44.17.0) (2026-03-06)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * default value ([c8ecab6](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/c8ecab6e0c7b93e36ff3fbe24f16ac8aa8eb7ee0))
7
+
8
+
9
+ * Merge branch 'EN-380/template-two-author' into 'master' ([78279ca](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/78279ca9bdb2d7b6626d3ababffbb382b026bc3b))
10
+
11
+
12
+ ### Features
13
+
14
+ * template two author ([75b177a](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/75b177ad34072f9be772121a688040b02f162993))
15
+
16
+ ## [44.16.3](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.16.2...v44.16.3) (2026-03-05)
17
+
18
+
19
+ ### Bug Fixes
20
+
21
+ * add status data to the game object ([42f0156](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/42f0156a987d6299f91ac7f40b5132b6560a5cbc))
22
+
1
23
  ## [44.16.2](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.16.1...v44.16.2) (2026-02-27)
2
24
 
3
25
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-core-theme",
3
- "version": "44.16.2",
3
+ "version": "44.17.0",
4
4
  "description": "Gatsby Theme NPM Package",
5
5
  "author": "",
6
6
  "license": "ISC",
@@ -0,0 +1,37 @@
1
+ .expertion {
2
+ @include min(tablet){
3
+ @include flex-direction(row);
4
+
5
+ gap: .8rem;
6
+ }
7
+
8
+ > p {
9
+ color: #3c3c40;
10
+ font-size: 1.4rem;
11
+ font-style: normal;
12
+ font-weight: 700;
13
+ line-height: 2.2rem;
14
+ }
15
+
16
+ > span {
17
+ @include flex-direction(row);
18
+ @include flex-align(center, center);
19
+
20
+ padding: 0.2rem 0.8rem;
21
+ border-radius: 100px;
22
+ border: 1px solid #ececec;
23
+ background: #f4f4f4;
24
+ margin-bottom: 0.8rem;
25
+ margin-right: 0.8rem;
26
+ color: #3c3c40;
27
+ font-size: 1.2rem;
28
+ font-style: normal;
29
+ font-weight: 500;
30
+ line-height: 2rem;
31
+
32
+ >svg{
33
+ margin-right: .5rem;
34
+ }
35
+
36
+ }
37
+ }
@@ -0,0 +1,29 @@
1
+ import React from 'react';
2
+ import { render, cleanup } from '@testing-library/react';
3
+ import '@testing-library/jest-dom/extend-expect';
4
+
5
+ import { authorObject } from '~tests/factories/modules/author-box.factory';
6
+ import Expertion from '.';
7
+
8
+ describe('expertise component', () => {
9
+ test('render component', () => {
10
+ const author = authorObject;
11
+ const { container } = render(<Expertion expertise={author?.expertise} />);
12
+
13
+ expect(container).toBeInTheDocument();
14
+ });
15
+
16
+ test('render all expertise lists', () => {
17
+ const author = authorObject;
18
+ const { container, getByText } = render(<Expertion expertise={author?.expertise} />);
19
+
20
+ expect(container).toBeInTheDocument();
21
+ expect(getByText('Expert on:')).toBeInTheDocument();
22
+ expect(container.querySelectorAll('span')).toHaveLength(3);
23
+ expect(container.querySelector('span')).toHaveTextContent('Online Casinos');
24
+ });
25
+ });
26
+
27
+ afterEach(() => {
28
+ cleanup();
29
+ });
@@ -0,0 +1,30 @@
1
+ import React from 'react';
2
+ import PropTypes from 'prop-types';
3
+ import Check from '~images/icons/check';
4
+ import keygen from '~helpers/keygen';
5
+ import useTranslate from '~hooks/useTranslate/useTranslate';
6
+ import styles from './expertion.module.scss';
7
+
8
+ export default function Expertion({ expertise }) {
9
+ const expertOnText = useTranslate('expert_on', 'Expert on:');
10
+
11
+ return (
12
+ <>
13
+ {expertise && (
14
+ <div className={styles.expertion}>
15
+ <p>{expertOnText}</p>
16
+ {expertise?.map((res) => (
17
+ <span key={keygen()}>
18
+ <Check />
19
+ {res}
20
+ </span>
21
+ ))}
22
+ </div>
23
+ )}
24
+ </>
25
+ );
26
+ }
27
+
28
+ Expertion.propTypes = {
29
+ expertise: PropTypes.arrayOf(PropTypes.string),
30
+ };
@@ -4,20 +4,27 @@ import styles from './author-box.module.scss';
4
4
  import AuthorDetails from '../details';
5
5
  import AuthorDescription from '../description';
6
6
  import FactCheck from './fact-check';
7
+ import Expertion from './expertion';
7
8
 
8
- export default function AuthorBox({ author, reviewer = {}, readingTime, date = '' }) {
9
+ export default function AuthorBox({ author = {}, reviewer = {}, readingTime, date = '', expertion = false }) {
9
10
  return (
10
11
  <div className={styles.container || ''} id="authorbox">
11
12
  <AuthorDetails template="templateTwo" ribbon author={author} extraInfo />
12
13
  <AuthorDescription template="templateTwo" author={author} />
13
- {reviewer && <FactCheck author={author} reviewer={reviewer} readingTime={readingTime} date={date} />}
14
+ {reviewer && (
15
+ <FactCheck author={author} reviewer={reviewer} readingTime={readingTime} date={date} />
16
+ )}
17
+ {expertion && <Expertion expertise={author?.expertise} />}
14
18
  </div>
15
19
  );
16
20
  }
17
21
 
18
22
  AuthorBox.propTypes = {
19
- author: PropTypes.shape({}),
20
- reviewer: PropTypes.string,
23
+ author: PropTypes.shape({
24
+ expertise: PropTypes.arrayOf(PropTypes.string),
25
+ }),
26
+ reviewer: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
21
27
  readingTime: PropTypes.number,
22
28
  date: PropTypes.string,
23
- };
29
+ expertion: PropTypes.bool,
30
+ };
@@ -181,8 +181,8 @@ export const pickRelationKeys = {
181
181
  "game_categories",
182
182
  'maximum_bet',
183
183
  "game_themes",
184
- 'jackpot'
185
-
184
+ 'jackpot',
185
+ "status"
186
186
  ],
187
187
  software_provider: [
188
188
  "logo_filename_object",