gatsby-matrix-theme 53.3.7 → 53.3.9
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 +21 -0
- package/package.json +2 -2
- package/src/components/atoms/info-grid/grid-item/index.js +9 -2
- package/src/components/atoms/info-grid/template-one/info-grid.test.js +3 -3
- package/src/components/molecules/header/variants/operator/template-four/template-four.test.js +2 -1
- package/src/components/molecules/header/variants/operator/template-three/template-three.test.js +2 -1
- package/src/components/molecules/header/variants/slot/template-one/template-one.stories.js +1 -0
- package/src/components/molecules/header/variants/slot/template-two/template-two.stories.js +3 -0
- package/src/constants/info-grid.js +2 -5
- package/storybook/public/{384.fb6afb39.iframe.bundle.js → 384.928e1cab.iframe.bundle.js} +4 -4
- package/storybook/public/{384.fb6afb39.iframe.bundle.js.map → 384.928e1cab.iframe.bundle.js.map} +1 -1
- package/storybook/public/iframe.html +1 -1
- package/storybook/public/main.dd71570f.iframe.bundle.js +1 -0
- package/storybook/public/project.json +1 -1
- package/storybook/public/main.38b6d998.iframe.bundle.js +0 -1
- /package/storybook/public/{384.fb6afb39.iframe.bundle.js.LICENSE.txt → 384.928e1cab.iframe.bundle.js.LICENSE.txt} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,24 @@
|
|
|
1
|
+
## [53.3.9](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/compare/v53.3.8...v53.3.9) (2025-10-28)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* update storybook ([f9ec311](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/f9ec311601e38220a627713b9c64c0355bf1ba06))
|
|
7
|
+
* update theme ([c2a51ac](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/c2a51ac81a716c0a872aacaa53fbe6cafd5c25ab))
|
|
8
|
+
|
|
9
|
+
## [53.3.8](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/compare/v53.3.7...v53.3.8) (2025-10-21)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* update info grid constant and grid item component ([1e13f80](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/1e13f80cea07d3ce95dabca8fe37c77b04de612d))
|
|
15
|
+
* update tests ([fe2d7c5](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/fe2d7c5861fb8528f36002b9ed7e45a4a5606f8e))
|
|
16
|
+
* update theme ([618ee36](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/618ee360f70ca2dff4573bc7ae97d6f5c7b953a9))
|
|
17
|
+
* update theme ([2ddc658](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/2ddc658de836ff06e4f1afca93fbe0b5d6a9fa12))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
* Merge branch 'en-140-payout-time' into 'master' ([5b4cd38](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/5b4cd380e3ff2cf254ac038b89f0096d1552e490))
|
|
21
|
+
|
|
1
22
|
## [53.3.7](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/compare/v53.3.6...v53.3.7) (2025-10-14)
|
|
2
23
|
|
|
3
24
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gatsby-matrix-theme",
|
|
3
|
-
"version": "53.3.
|
|
3
|
+
"version": "53.3.9",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"description": "Matrix Theme NPM Package",
|
|
6
6
|
"author": "",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@react-icons/all-files": "^4.1.0",
|
|
27
27
|
"gatsby": "^5.11.0",
|
|
28
|
-
"gatsby-core-theme": "44.
|
|
28
|
+
"gatsby-core-theme": "44.5.2",
|
|
29
29
|
"gatsby-plugin-sharp": "^5.11.0",
|
|
30
30
|
"gatsby-transformer-sharp": "^5.11.0",
|
|
31
31
|
"gatsby-plugin-sitemap": "^6.13.1",
|
|
@@ -19,13 +19,20 @@ const InfoGridItem = ({
|
|
|
19
19
|
const [showMore, setShowMore] = useState(false);
|
|
20
20
|
|
|
21
21
|
const title = useTranslate(gridKey, gridLabels[gridKey][1]);
|
|
22
|
-
const
|
|
22
|
+
const label = generateLabel(gridKey, gridItems[gridKey], gridLabels[gridKey][2], {
|
|
23
23
|
template,
|
|
24
24
|
showAll: showMore,
|
|
25
25
|
setShowMore,
|
|
26
26
|
modulePosition,
|
|
27
|
-
module:'info_grid'
|
|
27
|
+
module:'info_grid',
|
|
28
28
|
});
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
const value =
|
|
32
|
+
gridKey === 'payout_time'
|
|
33
|
+
? useTranslate(label?.toLowerCase()?.replace(/[–\s]/g, '_'), label)
|
|
34
|
+
: label;
|
|
35
|
+
|
|
29
36
|
const showGrid = (templateThree && value) || !templateThree; // hide entire cell if empty on author info grid only
|
|
30
37
|
|
|
31
38
|
return (
|
|
@@ -41,7 +41,7 @@ describe('Show Info Grid Component', () => {
|
|
|
41
41
|
const { container } = render(<InfoGrid page={data} showEmojis showTwoColumns={false} />);
|
|
42
42
|
|
|
43
43
|
expect(container).toBeInTheDocument();
|
|
44
|
-
expect(container.querySelectorAll('.gridItem')).toHaveLength(
|
|
44
|
+
expect(container.querySelectorAll('.gridItem')).toHaveLength(9);
|
|
45
45
|
expect(container.querySelector('.gridItem span')).toHaveTextContent(
|
|
46
46
|
Object.values(gridLabels)[0][1]
|
|
47
47
|
);
|
|
@@ -114,7 +114,7 @@ describe('Show Info Grid Component', () => {
|
|
|
114
114
|
const { container } = render(<InfoGrid page={data} showEmojis showTwoColumns={false} />);
|
|
115
115
|
|
|
116
116
|
expect(container).toBeInTheDocument();
|
|
117
|
-
expect(container.querySelectorAll('.gridItem')).toHaveLength(
|
|
117
|
+
expect(container.querySelectorAll('.gridItem')).toHaveLength(9);
|
|
118
118
|
expect(container.querySelector('.gridItem span')).toHaveTextContent(
|
|
119
119
|
Object.values(gridLabels)[0][1]
|
|
120
120
|
);
|
|
@@ -297,7 +297,7 @@ describe('Show Info Grid Component', () => {
|
|
|
297
297
|
fireEvent.click(button);
|
|
298
298
|
|
|
299
299
|
// test after click
|
|
300
|
-
expect(container.querySelectorAll('.columnItem')).toHaveLength(
|
|
300
|
+
expect(container.querySelectorAll('.columnItem')).toHaveLength(9);
|
|
301
301
|
expect(button).toHaveTextContent('Show less items');
|
|
302
302
|
});
|
|
303
303
|
test('Show how many remaining as button where there is too many items to display in each block', () => {
|
package/src/components/molecules/header/variants/operator/template-four/template-four.test.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* eslint-disable no-restricted-syntax */
|
|
1
2
|
/* eslint-disable no-multi-assign */
|
|
2
3
|
import React from 'react';
|
|
3
4
|
import { render, cleanup } from '@testing-library/react';
|
|
@@ -16,7 +17,7 @@ describe('Operator template four component', () => {
|
|
|
16
17
|
expect(getByText('100% Bonus')).toBeTruthy();
|
|
17
18
|
expect(getByText('+ Big Promotions')).toBeTruthy();
|
|
18
19
|
expect(container.querySelectorAll('ul')).toHaveLength(1);
|
|
19
|
-
expect(container.querySelectorAll('li')).toHaveLength(
|
|
20
|
+
expect(container.querySelectorAll('li')).toHaveLength(7);
|
|
20
21
|
});
|
|
21
22
|
});
|
|
22
23
|
|
package/src/components/molecules/header/variants/operator/template-three/template-three.test.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* eslint-disable no-restricted-syntax */
|
|
1
2
|
/* eslint-disable no-multi-assign */
|
|
2
3
|
import React from 'react';
|
|
3
4
|
import { render, cleanup, waitFor } from '@testing-library/react';
|
|
@@ -16,7 +17,7 @@ describe('Operator template three component', () => {
|
|
|
16
17
|
expect(getByText('100% Bonus')).toBeTruthy();
|
|
17
18
|
expect(getByText('+ Big Promotions')).toBeTruthy();
|
|
18
19
|
expect(container.querySelectorAll('ul')).toHaveLength(1);
|
|
19
|
-
expect(container.querySelectorAll('li')).toHaveLength(
|
|
20
|
+
expect(container.querySelectorAll('li')).toHaveLength(7);
|
|
20
21
|
});
|
|
21
22
|
test('Template Three variable component', async () => {
|
|
22
23
|
const { container } = render(<TemplateThree {...data} hasVariableComponent type="operator" />);
|
|
@@ -23,6 +23,9 @@ const Template = (args) => {
|
|
|
23
23
|
{...rest}
|
|
24
24
|
page={{
|
|
25
25
|
...args.page,
|
|
26
|
+
relation: {
|
|
27
|
+
logo: { filename: '1651670485/davincis-gold-casino-logo.png' },
|
|
28
|
+
},
|
|
26
29
|
sections: {
|
|
27
30
|
...args.page.sections,
|
|
28
31
|
header: { ...args.page.sections.header, modules: filteredModules },
|
|
@@ -44,11 +44,7 @@ export const defaultInfoGrid = {
|
|
|
44
44
|
(value, props) => latestItems(value, { ...props, showMore: true, tooltip: false }, 2),
|
|
45
45
|
],
|
|
46
46
|
launch_date: ['launch_date', 'Release Date'],
|
|
47
|
-
licenses: [
|
|
48
|
-
'license_objects',
|
|
49
|
-
'✅ License',
|
|
50
|
-
(value, props) => latestItems(value, props, 3),
|
|
51
|
-
],
|
|
47
|
+
licenses: ['license_objects', '✅ License', (value, props) => latestItems(value, props, 3)],
|
|
52
48
|
no_games: ['games_amount || games_amount', 'No. of Games'],
|
|
53
49
|
game_providers: [
|
|
54
50
|
'software',
|
|
@@ -65,6 +61,7 @@ export const defaultInfoGrid = {
|
|
|
65
61
|
5
|
|
66
62
|
),
|
|
67
63
|
],
|
|
64
|
+
payout_time: ['payout_time', 'Payout time', (value) => value],
|
|
68
65
|
},
|
|
69
66
|
game_review: {
|
|
70
67
|
launch_date: ['launch_date', 'Launched'],
|